survey-creator-core 1.9.125 → 1.9.127
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 +2 -2
- 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 +12 -12
- 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 +18 -35
- package/i18n/german.js.map +1 -1
- package/i18n/german.min.js +2 -2
- package/i18n/hebrew.js +1209 -0
- package/i18n/hebrew.js.map +1 -0
- package/i18n/hebrew.min.js +7 -0
- package/i18n/hungarian.js +1 -1
- package/i18n/hungarian.min.js +2 -2
- package/i18n/index.js +1131 -55
- package/i18n/index.js.map +1 -1
- package/i18n/index.min.js +2 -2
- package/i18n/indonesian.js +1 -1
- package/i18n/indonesian.min.js +2 -2
- package/i18n/italian.js +1 -1
- package/i18n/italian.min.js +2 -2
- package/i18n/japanese.js +1 -1
- package/i18n/japanese.min.js +2 -2
- package/i18n/korean.js +1 -1
- package/i18n/korean.min.js +2 -2
- package/i18n/malay.js +1 -1
- package/i18n/malay.min.js +2 -2
- package/i18n/mongolian.js +1 -1
- package/i18n/mongolian.min.js +2 -2
- package/i18n/norwegian.js +1 -1
- package/i18n/norwegian.min.js +2 -2
- package/i18n/persian.js +1 -1
- package/i18n/persian.min.js +2 -2
- package/i18n/polish.js +1 -1
- package/i18n/polish.min.js +2 -2
- package/i18n/portuguese.js +1 -1
- package/i18n/portuguese.min.js +2 -2
- package/i18n/russian.js +1 -1
- package/i18n/russian.min.js +2 -2
- package/i18n/simplified-chinese.js +1 -1
- package/i18n/simplified-chinese.min.js +2 -2
- package/i18n/slovak.js +1 -1
- package/i18n/slovak.min.js +2 -2
- package/i18n/spanish.js +1 -1
- package/i18n/spanish.min.js +2 -2
- package/i18n/swedish.js +1 -1
- package/i18n/swedish.min.js +2 -2
- package/i18n/tajik.js +1 -1
- package/i18n/tajik.min.js +2 -2
- package/i18n/traditional-chinese.js +1 -1
- package/i18n/traditional-chinese.min.js +2 -2
- package/i18n/turkish.js +1 -1
- package/i18n/turkish.min.js +2 -2
- package/package.json +2 -2
- package/survey-creator-core.css +195 -20
- package/survey-creator-core.fontless.css +194 -19
- package/survey-creator-core.fontless.css.map +1 -1
- package/survey-creator-core.fontless.min.css +10 -9
- package/survey-creator-core.i18n.js +1131 -55
- package/survey-creator-core.i18n.js.map +1 -1
- package/survey-creator-core.i18n.min.js +2 -2
- package/survey-creator-core.js +676 -344
- package/survey-creator-core.js.map +1 -1
- package/survey-creator-core.min.css +11 -10
- package/survey-creator-core.min.js +6 -6
- package/typings/components/image-item-value.d.ts +1 -0
- package/typings/components/question.d.ts +2 -0
- package/typings/components/switcher/switcher.d.ts +6 -0
- package/typings/components/tabs/theme-builder.d.ts +2 -0
- package/typings/creator-base.d.ts +309 -153
- package/typings/creator-settings.d.ts +5 -4
- package/typings/custom-questions/question-file.d.ts +1 -1
- package/typings/editorLocalization.d.ts +8 -8
- package/typings/entries/index.d.ts +1 -0
- package/typings/localization/english.d.ts +8 -8
- package/typings/question-editor/properties.d.ts +7 -5
|
@@ -50,6 +50,7 @@ export declare var settings: {
|
|
|
50
50
|
showAddQuestionButton: boolean;
|
|
51
51
|
};
|
|
52
52
|
logic: {
|
|
53
|
+
questionSortOrder: string;
|
|
53
54
|
defaultOperator: string;
|
|
54
55
|
defaultOperators: {
|
|
55
56
|
default: string;
|
|
@@ -205,10 +206,10 @@ export interface ISurveyCreatorOptions {
|
|
|
205
206
|
onLogicGetTitleCallback(expression: string, displayExpression: string, text: string, logicItem: any): string;
|
|
206
207
|
getProcessedTranslationItemText(locale: string, locString: ILocalizableString, newText: string, obj: any): string;
|
|
207
208
|
getTranslationExportedText(obj: Base, name: string, locString: ILocalizableString, locale: string, text: string): string;
|
|
208
|
-
uploadFiles(files: File[], question: Question,
|
|
209
|
+
uploadFiles(files: File[], question: Question, callback: (status: string, data: any) => any): void;
|
|
209
210
|
getHasMachineTranslation(): boolean;
|
|
210
211
|
doMachineTranslation(fromLocale: string, toLocale: string, strings: Array<string>, callback: (translated: Array<string>) => void): void;
|
|
211
|
-
chooseFiles(input: HTMLInputElement,
|
|
212
|
+
chooseFiles(input: HTMLInputElement, callback: (files: File[]) => void, context?: {
|
|
212
213
|
element: SurveyElement;
|
|
213
214
|
item?: ItemValue;
|
|
214
215
|
}): void;
|
|
@@ -256,10 +257,10 @@ export declare class EmptySurveyCreatorOptions implements ISurveyCreatorOptions
|
|
|
256
257
|
isConditionOperatorEnabled(questionName: string, question: Question, operator: string, isEnabled: boolean): boolean;
|
|
257
258
|
onLogicGetTitleCallback(expression: string, displayExpression: string, text: string, logicItem: any): string;
|
|
258
259
|
getTranslationExportedText(obj: Base, name: string, locString: ILocalizableString, locale: string, text: string): string;
|
|
259
|
-
uploadFiles(files: File[], question: Question,
|
|
260
|
+
uploadFiles(files: File[], question: Question, callback: (status: string, data: any) => any): void;
|
|
260
261
|
getHasMachineTranslation(): boolean;
|
|
261
262
|
doMachineTranslation(fromLocale: string, toLocale: string, strings: Array<string>, callback: (translated: Array<string>) => void): void;
|
|
262
|
-
chooseFiles(input: HTMLInputElement,
|
|
263
|
+
chooseFiles(input: HTMLInputElement, callback: (files: File[]) => void, context?: {
|
|
263
264
|
element: SurveyElement;
|
|
264
265
|
item?: ItemValue;
|
|
265
266
|
}): void;
|
|
@@ -20,6 +20,6 @@ export declare class QuestionFileEditorModel extends QuestionFileModel {
|
|
|
20
20
|
getChooseButtonCss(): string;
|
|
21
21
|
onKeyDown: (event: KeyboardEvent) => void;
|
|
22
22
|
onFileInputChange: (event: Event) => boolean;
|
|
23
|
-
onChooseFilesCallback: (input: HTMLInputElement,
|
|
23
|
+
onChooseFilesCallback: (input: HTMLInputElement, callback: (files: File[]) => void) => void;
|
|
24
24
|
chooseFiles(event: Event): boolean;
|
|
25
25
|
}
|
|
@@ -1058,8 +1058,8 @@ export declare var defaultStrings: {
|
|
|
1058
1058
|
"--primary-foreground": string;
|
|
1059
1059
|
"--foreground": string;
|
|
1060
1060
|
"--base-unit": string;
|
|
1061
|
+
advancedMode: string;
|
|
1061
1062
|
groupGeneral: string;
|
|
1062
|
-
groupAdvanced: string;
|
|
1063
1063
|
groupHeader: string;
|
|
1064
1064
|
groupBackground: string;
|
|
1065
1065
|
groupAppearance: string;
|
|
@@ -1088,11 +1088,9 @@ export declare var defaultStrings: {
|
|
|
1088
1088
|
backgroundImageAttachmentScroll: string;
|
|
1089
1089
|
panelBackgroundTransparency: string;
|
|
1090
1090
|
questionBackgroundTransparency: string;
|
|
1091
|
-
questionPanel: string;
|
|
1092
1091
|
questionTitle: string;
|
|
1093
|
-
questionDescription: string;
|
|
1094
1092
|
editorPanel: string;
|
|
1095
|
-
|
|
1093
|
+
backgroundCornerRadius: string;
|
|
1096
1094
|
backcolor: string;
|
|
1097
1095
|
hovercolor: string;
|
|
1098
1096
|
borderDecoration: string;
|
|
@@ -1100,7 +1098,9 @@ export declare var defaultStrings: {
|
|
|
1100
1098
|
accentForeground: string;
|
|
1101
1099
|
primaryForecolor: string;
|
|
1102
1100
|
primaryForecolorLight: string;
|
|
1103
|
-
|
|
1101
|
+
colorsTitle: string;
|
|
1102
|
+
font: string;
|
|
1103
|
+
lines: string;
|
|
1104
1104
|
borderDefault: string;
|
|
1105
1105
|
borderLight: string;
|
|
1106
1106
|
fontFamily: string;
|
|
@@ -1117,7 +1117,8 @@ export declare var defaultStrings: {
|
|
|
1117
1117
|
surveyTitle: string;
|
|
1118
1118
|
surveyDescription: string;
|
|
1119
1119
|
pageTitle: string;
|
|
1120
|
-
|
|
1120
|
+
titleFont: string;
|
|
1121
|
+
descriptionFont: string;
|
|
1121
1122
|
boxShadowX: string;
|
|
1122
1123
|
boxShadowY: string;
|
|
1123
1124
|
boxShadowAddRule: string;
|
|
@@ -1126,8 +1127,7 @@ export declare var defaultStrings: {
|
|
|
1126
1127
|
boxShadowSpread: string;
|
|
1127
1128
|
boxShadowDrop: string;
|
|
1128
1129
|
boxShadowInner: string;
|
|
1129
|
-
|
|
1130
|
-
editorShadow: string;
|
|
1130
|
+
shadow: string;
|
|
1131
1131
|
headerView: string;
|
|
1132
1132
|
headerViewBasic: string;
|
|
1133
1133
|
headerViewAdvanced: string;
|
|
@@ -66,6 +66,7 @@ export * from "../textWorker";
|
|
|
66
66
|
export * from "../toolbox";
|
|
67
67
|
export * from "../components/side-bar/side-bar-model";
|
|
68
68
|
export * from "../components/side-bar/side-bar-tab-model";
|
|
69
|
+
export * from "../components/switcher/switcher";
|
|
69
70
|
export * from "../utils/events";
|
|
70
71
|
export * from "../utils/utils";
|
|
71
72
|
export * from "../question-editor/definition";
|
|
@@ -1027,8 +1027,8 @@ export declare var enStrings: {
|
|
|
1027
1027
|
"--primary-foreground": string;
|
|
1028
1028
|
"--foreground": string;
|
|
1029
1029
|
"--base-unit": string;
|
|
1030
|
+
advancedMode: string;
|
|
1030
1031
|
groupGeneral: string;
|
|
1031
|
-
groupAdvanced: string;
|
|
1032
1032
|
groupHeader: string;
|
|
1033
1033
|
groupBackground: string;
|
|
1034
1034
|
groupAppearance: string;
|
|
@@ -1057,11 +1057,9 @@ export declare var enStrings: {
|
|
|
1057
1057
|
backgroundImageAttachmentScroll: string;
|
|
1058
1058
|
panelBackgroundTransparency: string;
|
|
1059
1059
|
questionBackgroundTransparency: string;
|
|
1060
|
-
questionPanel: string;
|
|
1061
1060
|
questionTitle: string;
|
|
1062
|
-
questionDescription: string;
|
|
1063
1061
|
editorPanel: string;
|
|
1064
|
-
|
|
1062
|
+
backgroundCornerRadius: string;
|
|
1065
1063
|
backcolor: string;
|
|
1066
1064
|
hovercolor: string;
|
|
1067
1065
|
borderDecoration: string;
|
|
@@ -1069,7 +1067,9 @@ export declare var enStrings: {
|
|
|
1069
1067
|
accentForeground: string;
|
|
1070
1068
|
primaryForecolor: string;
|
|
1071
1069
|
primaryForecolorLight: string;
|
|
1072
|
-
|
|
1070
|
+
colorsTitle: string;
|
|
1071
|
+
font: string;
|
|
1072
|
+
lines: string;
|
|
1073
1073
|
borderDefault: string;
|
|
1074
1074
|
borderLight: string;
|
|
1075
1075
|
fontFamily: string;
|
|
@@ -1086,7 +1086,8 @@ export declare var enStrings: {
|
|
|
1086
1086
|
surveyTitle: string;
|
|
1087
1087
|
surveyDescription: string;
|
|
1088
1088
|
pageTitle: string;
|
|
1089
|
-
|
|
1089
|
+
titleFont: string;
|
|
1090
|
+
descriptionFont: string;
|
|
1090
1091
|
boxShadowX: string;
|
|
1091
1092
|
boxShadowY: string;
|
|
1092
1093
|
boxShadowAddRule: string;
|
|
@@ -1095,8 +1096,7 @@ export declare var enStrings: {
|
|
|
1095
1096
|
boxShadowSpread: string;
|
|
1096
1097
|
boxShadowDrop: string;
|
|
1097
1098
|
boxShadowInner: string;
|
|
1098
|
-
|
|
1099
|
-
editorShadow: string;
|
|
1099
|
+
shadow: string;
|
|
1100
1100
|
headerView: string;
|
|
1101
1101
|
headerViewBasic: string;
|
|
1102
1102
|
headerViewAdvanced: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { JsonObjectProperty } from "survey-core";
|
|
2
2
|
import { ISurveyCreatorOptions } from "../creator-settings";
|
|
3
3
|
export declare class SurveyQuestionEditorPropertyDefinition {
|
|
4
|
-
property:
|
|
4
|
+
property: JsonObjectProperty;
|
|
5
5
|
title: string;
|
|
6
6
|
category: string;
|
|
7
7
|
createdFromTabName: boolean;
|
|
@@ -24,15 +24,15 @@ export declare class SurveyQuestionProperties {
|
|
|
24
24
|
private properties;
|
|
25
25
|
private propertiesHash;
|
|
26
26
|
private tabs;
|
|
27
|
-
constructor(obj: any, options?: ISurveyCreatorOptions, className?: string, showMode?: string, parentObj?: any, parentProperty?:
|
|
28
|
-
getProperty(propertyName: string):
|
|
27
|
+
constructor(obj: any, options?: ISurveyCreatorOptions, className?: string, showMode?: string, parentObj?: any, parentProperty?: JsonObjectProperty);
|
|
28
|
+
getProperty(propertyName: string): JsonObjectProperty;
|
|
29
29
|
get showMode(): string;
|
|
30
30
|
get isEmpty(): boolean;
|
|
31
31
|
private fillPropertiesHash;
|
|
32
32
|
private isJSONPropertyVisible;
|
|
33
33
|
getTabByName(tabName: string): SurveyQuestionEditorTabDefinition;
|
|
34
34
|
getTabs(): Array<SurveyQuestionEditorTabDefinition>;
|
|
35
|
-
getProperties(tab: SurveyQuestionEditorTabDefinition): Array<
|
|
35
|
+
getProperties(tab: SurveyQuestionEditorTabDefinition): Array<JsonObjectProperty>;
|
|
36
36
|
private buildTabs;
|
|
37
37
|
private addPropertyIntoTab;
|
|
38
38
|
private movePropertiesToNextProperties;
|
|
@@ -43,6 +43,8 @@ export declare class SurveyQuestionProperties {
|
|
|
43
43
|
private getTabOrCreate;
|
|
44
44
|
private setUsedProperties;
|
|
45
45
|
private getAllDefinitionsByClass;
|
|
46
|
+
private getAllDefinitionsByClassCore;
|
|
47
|
+
private getAllDefinitionsByClassSingleCore;
|
|
46
48
|
private getJsonPropertyCategory;
|
|
47
49
|
private addNonTabProperties;
|
|
48
50
|
private sortProperties;
|