survey-creator-core 1.9.135 → 1.9.136
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fonts.fontless.css +1 -1
- package/fonts.fontless.min.css +1 -1
- package/i18n/arabic.js +1 -1
- package/i18n/arabic.min.js +1 -1
- package/i18n/bulgarian.js +1 -1
- package/i18n/bulgarian.min.js +1 -1
- package/i18n/croatian.js +1 -1
- package/i18n/croatian.min.js +1 -1
- package/i18n/czech.js +1 -1
- package/i18n/czech.min.js +1 -1
- package/i18n/danish.js +1 -1
- package/i18n/danish.min.js +1 -1
- package/i18n/dutch.js +1 -1
- package/i18n/dutch.min.js +1 -1
- package/i18n/english.js +1 -1
- package/i18n/english.min.js +1 -1
- package/i18n/finnish.js +1 -1
- package/i18n/finnish.min.js +1 -1
- package/i18n/french.js +1 -1
- package/i18n/french.min.js +1 -1
- package/i18n/german.js +1 -1
- package/i18n/german.min.js +1 -1
- package/i18n/hebrew.js +1 -1
- package/i18n/hebrew.min.js +1 -1
- package/i18n/hungarian.js +1 -1
- package/i18n/hungarian.min.js +1 -1
- package/i18n/index.js +1 -1
- package/i18n/index.min.js +1 -1
- package/i18n/indonesian.js +1 -1
- package/i18n/indonesian.min.js +1 -1
- package/i18n/italian.js +1 -1
- package/i18n/italian.min.js +1 -1
- package/i18n/japanese.js +1 -1
- package/i18n/japanese.min.js +1 -1
- package/i18n/korean.js +1 -1
- package/i18n/korean.min.js +1 -1
- package/i18n/malay.js +1 -1
- package/i18n/malay.min.js +1 -1
- package/i18n/mongolian.js +1 -1
- package/i18n/mongolian.min.js +1 -1
- package/i18n/norwegian.js +1 -1
- package/i18n/norwegian.min.js +1 -1
- package/i18n/persian.js +1 -1
- package/i18n/persian.min.js +1 -1
- package/i18n/polish.js +1 -1
- package/i18n/polish.min.js +1 -1
- package/i18n/portuguese.js +1 -1
- package/i18n/portuguese.min.js +1 -1
- package/i18n/russian.js +1 -1
- package/i18n/russian.min.js +1 -1
- package/i18n/simplified-chinese.js +1 -1
- package/i18n/simplified-chinese.min.js +1 -1
- package/i18n/slovak.js +1 -1
- package/i18n/slovak.min.js +1 -1
- package/i18n/spanish.js +1 -1
- package/i18n/spanish.min.js +1 -1
- package/i18n/swedish.js +1 -1
- package/i18n/swedish.min.js +1 -1
- package/i18n/tajik.js +1 -1
- package/i18n/tajik.min.js +1 -1
- package/i18n/traditional-chinese.js +1 -1
- package/i18n/traditional-chinese.min.js +1 -1
- package/i18n/turkish.js +1 -1
- package/i18n/turkish.min.js +1 -1
- package/package.json +2 -2
- package/survey-creator-core.css +5 -2
- package/survey-creator-core.fontless.css +4 -1
- package/survey-creator-core.fontless.css.map +1 -1
- package/survey-creator-core.fontless.min.css +2 -2
- package/survey-creator-core.i18n.js +1 -1
- package/survey-creator-core.i18n.min.js +1 -1
- package/survey-creator-core.js +51 -22
- package/survey-creator-core.js.map +1 -1
- package/survey-creator-core.min.css +3 -3
- package/survey-creator-core.min.js +5 -5
- package/typings/components/question-rating.d.ts +1 -0
- package/typings/creator-base.d.ts +7 -1
- package/typings/creator-events-api.d.ts +15 -2
- package/typings/creator-settings.d.ts +6 -1
|
@@ -18,6 +18,7 @@ export declare class QuestionRatingAdornerViewModel extends Base {
|
|
|
18
18
|
get allowRemove(): boolean;
|
|
19
19
|
get enableRemove(): boolean;
|
|
20
20
|
get removeClassNames(): string;
|
|
21
|
+
get hasTopLabel(): boolean;
|
|
21
22
|
get controlsClassNames(): string;
|
|
22
23
|
get addTooltip(): string;
|
|
23
24
|
get removeTooltip(): string;
|
|
@@ -134,6 +134,7 @@ export declare class SurveyCreatorModel extends Base implements ISurveyCreatorOp
|
|
|
134
134
|
get haveCommercialLicense(): boolean;
|
|
135
135
|
set haveCommercialLicense(val: boolean);
|
|
136
136
|
get licenseText(): string;
|
|
137
|
+
slk(val: string): void;
|
|
137
138
|
/**
|
|
138
139
|
* Specifies whether to automatically save a survey or theme JSON schema each time survey or theme settings are changed.
|
|
139
140
|
*
|
|
@@ -1170,7 +1171,12 @@ export declare class SurveyCreatorModel extends Base implements ISurveyCreatorOp
|
|
|
1170
1171
|
* @param callback A callback function that indicates the upload status—"success" or "error"—as the first argument. If a file is uploaded successfully, the second argument contains the file's URL.
|
|
1171
1172
|
* @see onUploadFile
|
|
1172
1173
|
*/
|
|
1173
|
-
uploadFiles(files: File[], question: Question, callback: (status: string, data: any) => any
|
|
1174
|
+
uploadFiles(files: File[], question: Question, callback: (status: string, data: any) => any, context?: {
|
|
1175
|
+
element: Base;
|
|
1176
|
+
item?: any;
|
|
1177
|
+
elementType?: string;
|
|
1178
|
+
propertyName?: string;
|
|
1179
|
+
}): void;
|
|
1174
1180
|
private _rootElementValue;
|
|
1175
1181
|
get rootElement(): HTMLElement;
|
|
1176
1182
|
setRootElement(element: HTMLElement): void;
|
|
@@ -617,9 +617,18 @@ export interface OpenFileChooserEvent {
|
|
|
617
617
|
}
|
|
618
618
|
export interface UploadFileEvent {
|
|
619
619
|
/**
|
|
620
|
-
* A question for which
|
|
620
|
+
* A survey element (question, panel, page, or survey) or a theme JSON schema for which this event is raised.
|
|
621
621
|
*/
|
|
622
|
-
|
|
622
|
+
element: Base | ITheme;
|
|
623
|
+
/**
|
|
624
|
+
* The type of the element passed as the `options.element` parameter.\
|
|
625
|
+
* Possible values: `"theme"`, `"header"`, or any value returned from the [`getType()`](https://surveyjs.io/form-library/documentation/api-reference/question#getType) method.
|
|
626
|
+
*/
|
|
627
|
+
elementType: String;
|
|
628
|
+
/**
|
|
629
|
+
* The name of the survey element property or theme property for which files are being uploaded.
|
|
630
|
+
*/
|
|
631
|
+
propertyName: String;
|
|
623
632
|
/**
|
|
624
633
|
* Files to upload.
|
|
625
634
|
*/
|
|
@@ -630,6 +639,10 @@ export interface UploadFileEvent {
|
|
|
630
639
|
* @param fileUrl The URL of a successfully uploaded file.
|
|
631
640
|
*/
|
|
632
641
|
callback: (status: string, fileUrl: string) => void;
|
|
642
|
+
/**
|
|
643
|
+
* Obsolete. Use the `options.element` parameter instead.
|
|
644
|
+
*/
|
|
645
|
+
question: Question;
|
|
633
646
|
}
|
|
634
647
|
export interface TranslationStringVisibilityEvent {
|
|
635
648
|
/**
|
|
@@ -217,7 +217,12 @@ export interface ISurveyCreatorOptions {
|
|
|
217
217
|
onLogicGetTitleCallback(expression: string, displayExpression: string, text: string, logicItem: any): string;
|
|
218
218
|
getProcessedTranslationItemText(locale: string, locString: ILocalizableString, newText: string, obj: any): string;
|
|
219
219
|
getTranslationExportedText(obj: Base, name: string, locString: ILocalizableString, locale: string, text: string): string;
|
|
220
|
-
uploadFiles(files: File[], question: Question, callback: (status: string, data: any) => any
|
|
220
|
+
uploadFiles(files: File[], question: Question, callback: (status: string, data: any) => any, context?: {
|
|
221
|
+
element: Base;
|
|
222
|
+
item?: any;
|
|
223
|
+
elementType?: string;
|
|
224
|
+
propertyName?: string;
|
|
225
|
+
}): void;
|
|
221
226
|
getHasMachineTranslation(): boolean;
|
|
222
227
|
doMachineTranslation(fromLocale: string, toLocale: string, strings: Array<string>, callback: (translated: Array<string>) => void): void;
|
|
223
228
|
chooseFiles(input: HTMLInputElement, callback: (files: File[]) => void, context?: {
|