survey-creator-core 1.9.112 → 1.9.113
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 +5 -2
- package/i18n/english.js.map +1 -1
- package/i18n/english.min.js +2 -2
- 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/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 +6 -9
- package/survey-creator-core.fontless.css +5 -8
- package/survey-creator-core.fontless.css.map +1 -1
- package/survey-creator-core.fontless.min.css +4 -4
- package/survey-creator-core.i18n.js +1 -1
- package/survey-creator-core.i18n.min.js +1 -1
- package/survey-creator-core.js +618 -533
- package/survey-creator-core.js.map +1 -1
- package/survey-creator-core.min.css +5 -5
- package/survey-creator-core.min.js +45 -45
- package/typings/components/tabs/json-editor-plugin.d.ts +12 -2
- package/typings/components/tabs/test.d.ts +2 -0
- package/typings/components/tabs/theme-builder.d.ts +22 -2
- package/typings/components/tabs/theme-custom-questions/element-settings.d.ts +4 -4
- package/typings/components/tabs/theme-custom-questions/font-settings.d.ts +4 -4
- package/typings/components/tabs/theme-plugin.d.ts +6 -3
- package/typings/creator-base.d.ts +167 -137
- package/typings/creator-options.d.ts +0 -6
- package/typings/creator-settings.d.ts +3 -0
- package/typings/custom-questions/question-file.d.ts +3 -0
- package/typings/editorLocalization.d.ts +5 -1
- package/typings/localization/english.d.ts +4 -1
- package/typings/plugins/undo-redo/undo-redo-controller.d.ts +0 -10
- package/typings/property-grid-theme/property-grid.d.ts +1 -0
- package/typings/survey-helper.d.ts +6 -6
- package/typings/utils/utils.d.ts +1 -0
|
@@ -148,6 +148,7 @@ export declare var settings: {
|
|
|
148
148
|
};
|
|
149
149
|
jsonEditor: {
|
|
150
150
|
indentation: number;
|
|
151
|
+
exportFileName: string;
|
|
151
152
|
};
|
|
152
153
|
};
|
|
153
154
|
export interface ICollectionItemAllowOperations {
|
|
@@ -200,6 +201,7 @@ export interface ISurveyCreatorOptions {
|
|
|
200
201
|
uploadFiles(files: File[], question: Question, uploadingCallback: (status: string, data: any) => any): void;
|
|
201
202
|
getHasMachineTranslation(): boolean;
|
|
202
203
|
doMachineTranslation(fromLocale: string, toLocale: string, strings: Array<string>, callback: (translated: Array<string>) => void): void;
|
|
204
|
+
chooseFiles(input: HTMLInputElement, onFilesChosen: (files: File[]) => void): void;
|
|
203
205
|
}
|
|
204
206
|
export declare class EmptySurveyCreatorOptions implements ISurveyCreatorOptions {
|
|
205
207
|
rootElement: HTMLElement;
|
|
@@ -247,4 +249,5 @@ export declare class EmptySurveyCreatorOptions implements ISurveyCreatorOptions
|
|
|
247
249
|
uploadFiles(files: File[], question: Question, uploadingCallback: (status: string, data: any) => any): void;
|
|
248
250
|
getHasMachineTranslation(): boolean;
|
|
249
251
|
doMachineTranslation(fromLocale: string, toLocale: string, strings: Array<string>, callback: (translated: Array<string>) => void): void;
|
|
252
|
+
chooseFiles(input: HTMLInputElement, onFilesChosen: (files: File[]) => void): void;
|
|
250
253
|
}
|
|
@@ -19,4 +19,7 @@ export declare class QuestionFileEditorModel extends QuestionFileModel {
|
|
|
19
19
|
getIsClearButtonDisabled(): boolean;
|
|
20
20
|
getChooseButtonCss(): string;
|
|
21
21
|
onKeyDown: (event: KeyboardEvent) => void;
|
|
22
|
+
onFileInputChange: (event: Event) => boolean;
|
|
23
|
+
onChooseFilesCallback: (input: HTMLInputElement, onFilesChosen: (files: File[]) => void) => void;
|
|
24
|
+
chooseFiles(event: Event): boolean;
|
|
22
25
|
}
|
|
@@ -25,6 +25,7 @@ export declare class EditorLocalization {
|
|
|
25
25
|
getLocale(locale?: string): any;
|
|
26
26
|
private getValueInternal;
|
|
27
27
|
getLocales(): Array<string>;
|
|
28
|
+
private stringsDiff;
|
|
28
29
|
}
|
|
29
30
|
export declare var editorLocalization: EditorLocalization;
|
|
30
31
|
export declare function getLocString(strName: string, locale?: string): string;
|
|
@@ -168,6 +169,9 @@ export declare var defaultStrings: {
|
|
|
168
169
|
translationPlaceHolder: string;
|
|
169
170
|
themeExportButton: string;
|
|
170
171
|
themeImportButton: string;
|
|
172
|
+
surveyJsonExportButton: string;
|
|
173
|
+
surveyJsonImportButton: string;
|
|
174
|
+
surveyJsonCopyButton: string;
|
|
171
175
|
themeResetButton: string;
|
|
172
176
|
bold: string;
|
|
173
177
|
italic: string;
|
|
@@ -1098,7 +1102,7 @@ export declare var defaultStrings: {
|
|
|
1098
1102
|
headerViewAdvanced: string;
|
|
1099
1103
|
coverInheritWidthFrom: string;
|
|
1100
1104
|
coverInheritWidthFromSurvey: string;
|
|
1101
|
-
|
|
1105
|
+
coverInheritWidthFromContainer: string;
|
|
1102
1106
|
coverTextAreaWidth: string;
|
|
1103
1107
|
coverBackgroundColorSwitch: string;
|
|
1104
1108
|
coverBackgroundColorNone: string;
|
|
@@ -138,6 +138,9 @@ export declare var enStrings: {
|
|
|
138
138
|
translationPlaceHolder: string;
|
|
139
139
|
themeExportButton: string;
|
|
140
140
|
themeImportButton: string;
|
|
141
|
+
surveyJsonExportButton: string;
|
|
142
|
+
surveyJsonImportButton: string;
|
|
143
|
+
surveyJsonCopyButton: string;
|
|
141
144
|
themeResetButton: string;
|
|
142
145
|
bold: string;
|
|
143
146
|
italic: string;
|
|
@@ -1068,7 +1071,7 @@ export declare var enStrings: {
|
|
|
1068
1071
|
headerViewAdvanced: string;
|
|
1069
1072
|
coverInheritWidthFrom: string;
|
|
1070
1073
|
coverInheritWidthFromSurvey: string;
|
|
1071
|
-
|
|
1074
|
+
coverInheritWidthFromContainer: string;
|
|
1072
1075
|
coverTextAreaWidth: string;
|
|
1073
1076
|
coverBackgroundColorSwitch: string;
|
|
1074
1077
|
coverBackgroundColorNone: string;
|
|
@@ -28,14 +28,4 @@ export declare class UndoRedoController extends Base {
|
|
|
28
28
|
* options.canRedo a boolean value. It is true by default. Set it false to hide prevent redo operation.
|
|
29
29
|
*/
|
|
30
30
|
onBeforeRedo: CreatorEvent;
|
|
31
|
-
/**
|
|
32
|
-
* The event is called after undo happens.
|
|
33
|
-
* options.state is an undo/redo item.
|
|
34
|
-
*/
|
|
35
|
-
onAfterUndo: CreatorEvent;
|
|
36
|
-
/**
|
|
37
|
-
* The event is called after redo happens.
|
|
38
|
-
* options.state is an undo/redo item.
|
|
39
|
-
*/
|
|
40
|
-
onAfterRedo: CreatorEvent;
|
|
41
31
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Base, ISurveyElement, ItemValue, JsonObjectProperty, SurveyElement, SurveyModel } from "survey-core";
|
|
2
2
|
import { ISurveyCreatorOptions } from "./creator-settings";
|
|
3
3
|
export declare enum ObjType {
|
|
4
|
-
Unknown =
|
|
5
|
-
Survey =
|
|
6
|
-
Page =
|
|
7
|
-
Panel =
|
|
8
|
-
Question =
|
|
9
|
-
Column =
|
|
4
|
+
Unknown = "unknown",
|
|
5
|
+
Survey = "survey",
|
|
6
|
+
Page = "page",
|
|
7
|
+
Panel = "panel",
|
|
8
|
+
Question = "question",
|
|
9
|
+
Column = "column"
|
|
10
10
|
}
|
|
11
11
|
export declare class SurveyHelper {
|
|
12
12
|
static getNewElementName(el: ISurveyElement): string;
|
package/typings/utils/utils.d.ts
CHANGED