From 7984103b2c112f420e87266334bbf40fbcc91184 Mon Sep 17 00:00:00 2001 From: Andrew Telnov Date: Tue, 10 Oct 2023 09:01:58 +0300 Subject: [PATCH] Change properties type from "url" to "file" --- src/cover.ts | 2 +- src/question_image.ts | 2 +- src/question_imagepicker.ts | 2 +- src/question_signaturepad.ts | 2 +- src/survey.ts | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/cover.ts b/src/cover.ts index 1e2c787e07..8ce015776a 100644 --- a/src/cover.ts +++ b/src/cover.ts @@ -199,7 +199,7 @@ Serializer.addClass( { name: "textAreaWidth:number", minValue: 0, default: 512 }, { name: "textGlowEnabled:boolean" }, { name: "overlapEnabled:boolean" }, - { name: "backgroundImage:url" }, + { name: "backgroundImage:file" }, { name: "backgroundImageOpacity:number", minValue: 0, maxValue: 1, default: 1 }, { name: "backgroundImageFit", default: "cover", choices: ["cover", "fill", "contain"] }, { name: "logoPositionX", default: "right" }, diff --git a/src/question_image.ts b/src/question_image.ts index 597e3d0c7e..5d27506642 100644 --- a/src/question_image.ts +++ b/src/question_image.ts @@ -218,7 +218,7 @@ function getCorrectImageLink(val: string): string { Serializer.addClass( "image", [ - { name: "imageLink:url", serializationProperty: "locImageLink" }, + { name: "imageLink:file", serializationProperty: "locImageLink" }, { name: "altText", serializationProperty: "locAltText", alternativeName: "text", category: "general" }, { name: "contentMode", diff --git a/src/question_imagepicker.ts b/src/question_imagepicker.ts index c457c8eddc..a5ca900e27 100644 --- a/src/question_imagepicker.ts +++ b/src/question_imagepicker.ts @@ -423,7 +423,7 @@ export class QuestionImagePickerModel extends QuestionCheckboxBase { } Serializer.addClass( "imageitemvalue", - [{ name: "imageLink:url", serializationProperty: "locImageLink" }], + [{ name: "imageLink:file", serializationProperty: "locImageLink" }], (value: any) => new ImageItemValue(value), "itemvalue" ); diff --git a/src/question_signaturepad.ts b/src/question_signaturepad.ts index 5561d48365..ce2a461c87 100644 --- a/src/question_signaturepad.ts +++ b/src/question_signaturepad.ts @@ -321,7 +321,7 @@ Serializer.addClass( default: true, }, { - name: "backgroundImage:url", + name: "backgroundImage:file", category: "general", }, { diff --git a/src/survey.ts b/src/survey.ts index 95b1f28037..d189f86b7f 100644 --- a/src/survey.ts +++ b/src/survey.ts @@ -7438,7 +7438,7 @@ Serializer.addClass("survey", [ serializationProperty: "locDescription", dependsOn: "locale", }, - { name: "logo:url", serializationProperty: "locLogo" }, + { name: "logo:file", serializationProperty: "locLogo" }, { name: "logoWidth", default: "300px", minValue: 0 }, { name: "logoHeight", default: "200px", minValue: 0 }, { @@ -7654,7 +7654,7 @@ Serializer.addClass("survey", [ { name: "width", visibleIf: (obj: any) => { return obj.widthMode === "static"; } }, { name: "fitToContainer:boolean", default: false }, { name: "headerView", default: "basic", choices: ["basic", "advanced"], visible: false }, - { name: "backgroundImage:url", visible: false }, + { name: "backgroundImage:file", visible: false }, { name: "backgroundImageFit", default: "cover", choices: ["auto", "contain", "cover"], visible: false }, { name: "backgroundImageAttachment", default: "scroll", choices: ["scroll", "fixed"], visible: false }, { name: "backgroundOpacity:number", minValue: 0, maxValue: 1, default: 1, visible: false },