survey-creator-core 1.9.87 → 1.9.89
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/package.json +2 -2
- package/survey-creator-core.css +209 -68
- package/survey-creator-core.fontless.css +208 -67
- package/survey-creator-core.fontless.css.map +1 -1
- package/survey-creator-core.fontless.min.css +15 -11
- package/survey-creator-core.i18n.js +5 -1
- package/survey-creator-core.i18n.js.map +1 -1
- package/survey-creator-core.i18n.min.js +2 -2
- package/survey-creator-core.js +1747 -295
- package/survey-creator-core.js.map +1 -1
- package/survey-creator-core.min.css +16 -12
- package/survey-creator-core.min.js +3 -3
- package/typings/components/header/logo-image.d.ts +1 -0
- package/typings/components/image-item-value.d.ts +1 -0
- package/typings/components/matrix-cell.d.ts +1 -1
- package/typings/components/question-image.d.ts +10 -1
- package/typings/components/question.d.ts +2 -0
- package/typings/components/simulator.d.ts +1 -0
- package/typings/components/tabs/theme-plugin.d.ts +25 -0
- package/typings/components/tabs/theme.d.ts +85 -0
- package/typings/creator-base.d.ts +7 -0
- package/typings/creator-options.d.ts +1 -0
- package/typings/creator-settings.d.ts +4 -1
- package/typings/editorLocalization.d.ts +69 -0
- package/typings/entries/index.d.ts +2 -0
- package/typings/localization/english.d.ts +69 -0
- package/typings/plugins/undo-redo/undo-redo-manager.d.ts +2 -0
- package/typings/property-grid/index.d.ts +7 -0
- package/typings/property-grid/matrices.d.ts +1 -0
- package/typings/toolbox.d.ts +1 -0
- package/typings/utils/utils.d.ts +4 -1
|
@@ -18,4 +18,5 @@ export declare class ImageItemValueWrapperViewModel extends ItemValueWrapperView
|
|
|
18
18
|
onDragOver: (event: any) => void;
|
|
19
19
|
onDrop: (event: any) => void;
|
|
20
20
|
onDragLeave: (event: any) => void;
|
|
21
|
+
get acceptedTypes(): "" | "image/png, image/gif, image/jpeg, image/apng, image/avif, image/svg+xml, image/webp" | "video/*";
|
|
21
22
|
}
|
|
@@ -16,7 +16,7 @@ export declare class MatrixCellWrapperViewModel extends Base {
|
|
|
16
16
|
constructor(creator: CreatorBase, templateData: any, question: Question, row: any, column: any);
|
|
17
17
|
isSelected: boolean;
|
|
18
18
|
private onSelectionChanged;
|
|
19
|
-
editQuestion(model: MatrixCellWrapperViewModel): void;
|
|
19
|
+
editQuestion(model: MatrixCellWrapperViewModel, event: MouseEvent): void;
|
|
20
20
|
get context(): any;
|
|
21
21
|
selectContext(model: MatrixCellWrapperViewModel, event: MouseEvent): void;
|
|
22
22
|
get isSupportCellEditor(): boolean;
|
|
@@ -1,9 +1,18 @@
|
|
|
1
|
-
import { SurveyElement, SurveyTemplateRendererTemplateData } from "survey-core";
|
|
1
|
+
import { QuestionImageModel, SurveyElement, SurveyTemplateRendererTemplateData, QuestionFileModel } from "survey-core";
|
|
2
2
|
import { CreatorBase } from "../creator-base";
|
|
3
3
|
import { QuestionAdornerViewModel } from "./question";
|
|
4
4
|
export declare class QuestionImageAdornerViewModel extends QuestionAdornerViewModel {
|
|
5
5
|
questionRoot: HTMLElement;
|
|
6
|
+
filePresentationModel: QuestionFileModel;
|
|
7
|
+
private initFilePresentationModel;
|
|
6
8
|
constructor(creator: CreatorBase, surveyElement: SurveyElement, templateData: SurveyTemplateRendererTemplateData, questionRoot: HTMLElement);
|
|
7
9
|
isUploading: any;
|
|
10
|
+
isEmptyImageLink: any;
|
|
8
11
|
chooseFile(model: QuestionImageAdornerViewModel): void;
|
|
12
|
+
get acceptedTypes(): string;
|
|
13
|
+
imageLinkValueChangedHandler(): void;
|
|
14
|
+
get isEmptyElement(): boolean;
|
|
15
|
+
get question(): QuestionImageModel;
|
|
16
|
+
get placeholderText(): string;
|
|
17
|
+
get chooseImageText(): string;
|
|
9
18
|
}
|
|
@@ -6,6 +6,8 @@ export declare class QuestionAdornerViewModel extends SurveyElementAdornerBase {
|
|
|
6
6
|
templateData: SurveyTemplateRendererTemplateData;
|
|
7
7
|
isDragged: boolean;
|
|
8
8
|
currentAddQuestionType: string;
|
|
9
|
+
placeholderComponent: string;
|
|
10
|
+
placeholderComponentData: any;
|
|
9
11
|
private dragOrClickHelper;
|
|
10
12
|
constructor(creator: CreatorBase, surveyElement: SurveyElement, templateData: SurveyTemplateRendererTemplateData);
|
|
11
13
|
get element(): SurveyElement<any>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Action } from "survey-core";
|
|
2
|
+
import { CreatorBase, ICreatorPlugin } from "../../creator-base";
|
|
3
|
+
import { ThemeSurveyTabViewModel } from "./theme";
|
|
4
|
+
export declare class TabThemePlugin implements ICreatorPlugin {
|
|
5
|
+
private creator;
|
|
6
|
+
private deviceSelectorAction;
|
|
7
|
+
private orientationSelectorAction;
|
|
8
|
+
private invisibleToggleAction;
|
|
9
|
+
private testAgainAction;
|
|
10
|
+
private designerAction;
|
|
11
|
+
private prevPageAction;
|
|
12
|
+
private nextPageAction;
|
|
13
|
+
private simulatorTheme;
|
|
14
|
+
private sidebarTab;
|
|
15
|
+
model: ThemeSurveyTabViewModel;
|
|
16
|
+
private getSimulatorDevicesTitle;
|
|
17
|
+
private setDevice;
|
|
18
|
+
private updateActions;
|
|
19
|
+
constructor(creator: CreatorBase);
|
|
20
|
+
activate(): void;
|
|
21
|
+
update(): void;
|
|
22
|
+
deactivate(): boolean;
|
|
23
|
+
createActions(): Array<Action>;
|
|
24
|
+
addFooterActions(): void;
|
|
25
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { SurveySimulatorModel } from "../simulator";
|
|
2
|
+
import { Base, PageModel, SurveyModel, Action, IAction, ActionContainer } from "survey-core";
|
|
3
|
+
import { CreatorBase } from "../../creator-base";
|
|
4
|
+
export declare const Themes: {
|
|
5
|
+
"default-light": {
|
|
6
|
+
"--sjs-primary-backcolor": string;
|
|
7
|
+
"--background": string;
|
|
8
|
+
"--background-dim": string;
|
|
9
|
+
"--background-dim-light": string;
|
|
10
|
+
"--sjs-general-forecolor": string;
|
|
11
|
+
"--sjs-general-forecolor-light": string;
|
|
12
|
+
"--sjs-general-dim-forecolor": string;
|
|
13
|
+
"--sjs-general-dim-forecolor-light": string;
|
|
14
|
+
"--sjs-editor-background": string;
|
|
15
|
+
"--sjs-question-background": string;
|
|
16
|
+
"--sjs-primary-forecolor": string;
|
|
17
|
+
"--foreground": string;
|
|
18
|
+
"--base-unit": string;
|
|
19
|
+
"--sjs-corner-radius": string;
|
|
20
|
+
};
|
|
21
|
+
"default-dark": {
|
|
22
|
+
"--sjs-primary-backcolor": string;
|
|
23
|
+
"--background": string;
|
|
24
|
+
"--background-dim": string;
|
|
25
|
+
"--background-dim-light": string;
|
|
26
|
+
"--sjs-general-forecolor": string;
|
|
27
|
+
"--sjs-general-forecolor-light": string;
|
|
28
|
+
"--sjs-general-dim-forecolor": string;
|
|
29
|
+
"--sjs-general-dim-forecolor-light": string;
|
|
30
|
+
"--sjs-editor-background": string;
|
|
31
|
+
"--sjs-question-background": string;
|
|
32
|
+
"--sjs-primary-forecolor": string;
|
|
33
|
+
"--foreground": string;
|
|
34
|
+
"--base-unit": string;
|
|
35
|
+
"--sjs-corner-radius": string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
export declare class ThemeSurveyTabViewModel extends Base {
|
|
39
|
+
private surveyProvider;
|
|
40
|
+
private startTheme;
|
|
41
|
+
private json;
|
|
42
|
+
pages: ActionContainer;
|
|
43
|
+
prevPageAction: Action;
|
|
44
|
+
testAgainAction: Action;
|
|
45
|
+
nextPageAction: Action;
|
|
46
|
+
private selectPageAction;
|
|
47
|
+
private themeEditorSurveyValue;
|
|
48
|
+
onSurveyCreatedCallback: (survey: SurveyModel) => any;
|
|
49
|
+
simulator: SurveySimulatorModel;
|
|
50
|
+
showInvisibleElements: any;
|
|
51
|
+
showPagesInTestSurveyTab: any;
|
|
52
|
+
isRunning: boolean;
|
|
53
|
+
pageListItems: Array<IAction>;
|
|
54
|
+
activePage: PageModel;
|
|
55
|
+
get activeLanguage(): string;
|
|
56
|
+
set activeLanguage(val: string);
|
|
57
|
+
get survey(): SurveyModel;
|
|
58
|
+
get pageActions(): Array<Action>;
|
|
59
|
+
get isPageToolbarVisible(): boolean;
|
|
60
|
+
get themeEditorSurvey(): SurveyModel;
|
|
61
|
+
constructor(surveyProvider: CreatorBase, startTheme?: any);
|
|
62
|
+
updateSimulatorSurvey(json: any, theme: any): void;
|
|
63
|
+
setJSON(json: any, currTheme: any): void;
|
|
64
|
+
initialize(json: any, options: any): void;
|
|
65
|
+
private updatePageItem;
|
|
66
|
+
private getCurrentPageItem;
|
|
67
|
+
private getSelectPageTitle;
|
|
68
|
+
private getPageTitle;
|
|
69
|
+
private updatePageList;
|
|
70
|
+
show(): void;
|
|
71
|
+
testAgain(): void;
|
|
72
|
+
buildActions(): void;
|
|
73
|
+
private setActivePageItem;
|
|
74
|
+
private getPageItemByPage;
|
|
75
|
+
private updateResultsTemplate;
|
|
76
|
+
setTheme(themeName: string, themeMapper: any): void;
|
|
77
|
+
protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
|
78
|
+
private updatePrevNextPageActionState;
|
|
79
|
+
protected createThemeEditorSurvey(): SurveyModel;
|
|
80
|
+
themeName: any;
|
|
81
|
+
themePalette: any;
|
|
82
|
+
themeMode: any;
|
|
83
|
+
get themeVariables(): any;
|
|
84
|
+
private getThemeEditorSurveyJSON;
|
|
85
|
+
}
|
|
@@ -88,6 +88,12 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
88
88
|
*/
|
|
89
89
|
get showPreviewTab(): boolean;
|
|
90
90
|
set showPreviewTab(val: boolean);
|
|
91
|
+
/**
|
|
92
|
+
* Specifies whether to display the Theme tab.
|
|
93
|
+
*
|
|
94
|
+
* Default value: `false`
|
|
95
|
+
*/
|
|
96
|
+
showThemeTab: boolean;
|
|
91
97
|
/**
|
|
92
98
|
* Specifies whether to display the Embed Survey tab.
|
|
93
99
|
*
|
|
@@ -1372,6 +1378,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
1372
1378
|
selectFromStringEditor: boolean;
|
|
1373
1379
|
isCreatorDisposed: boolean;
|
|
1374
1380
|
dispose(): void;
|
|
1381
|
+
enableLinkFileEditor: boolean;
|
|
1375
1382
|
}
|
|
1376
1383
|
export declare class SurveyCreatorModel extends CreatorBase {
|
|
1377
1384
|
}
|
|
@@ -106,7 +106,6 @@ export declare var settings: {
|
|
|
106
106
|
}[];
|
|
107
107
|
};
|
|
108
108
|
image: {
|
|
109
|
-
imageLink: string;
|
|
110
109
|
imageFit: string;
|
|
111
110
|
imageHeight: string;
|
|
112
111
|
imageWidth: string;
|
|
@@ -160,6 +159,7 @@ export interface ISurveyCreatorOptions {
|
|
|
160
159
|
maximumChoicesCount: number;
|
|
161
160
|
maximumRowsCount: number;
|
|
162
161
|
maximumRateValues: number;
|
|
162
|
+
enableLinkFileEditor: boolean;
|
|
163
163
|
getObjectDisplayName(obj: Base, area: string, reason: string, displayName: string): string;
|
|
164
164
|
onCanShowPropertyCallback(object: any, property: JsonObjectProperty, showMode: string, parentObj: any, parentProperty: JsonObjectProperty): boolean;
|
|
165
165
|
onPropertyEditorCreatedCallback(object: any, property: JsonObjectProperty, editor: Question): any;
|
|
@@ -184,8 +184,10 @@ export interface ISurveyCreatorOptions {
|
|
|
184
184
|
onLogicGetTitleCallback(expression: string, displayExpression: string, text: string, logicItem: any): string;
|
|
185
185
|
getProcessedTranslationItemText(locale: string, locString: ILocalizableString, newText: string, obj: any): string;
|
|
186
186
|
getTranslationExportedText(obj: Base, name: string, locString: ILocalizableString, locale: string, text: string): string;
|
|
187
|
+
uploadFiles(files: File[], question: Question, uploadingCallback: (status: string, data: any) => any): void;
|
|
187
188
|
}
|
|
188
189
|
export declare class EmptySurveyCreatorOptions implements ISurveyCreatorOptions {
|
|
190
|
+
enableLinkFileEditor: boolean;
|
|
189
191
|
getProcessedTranslationItemText(locale: string, locString: ILocalizableString, newText: string, obj: any): string;
|
|
190
192
|
isMobileView: boolean;
|
|
191
193
|
alwaySaveTextInPropertyEditors: boolean;
|
|
@@ -221,4 +223,5 @@ export declare class EmptySurveyCreatorOptions implements ISurveyCreatorOptions
|
|
|
221
223
|
onConditionGetTitleCallback(expression: string, title: string): string;
|
|
222
224
|
onLogicGetTitleCallback(expression: string, displayExpression: string, text: string, logicItem: any): string;
|
|
223
225
|
getTranslationExportedText(obj: Base, name: string, locString: ILocalizableString, locale: string, text: string): string;
|
|
226
|
+
uploadFiles(files: File[], question: Question, uploadingCallback: (status: string, data: any) => any): void;
|
|
224
227
|
}
|
|
@@ -95,6 +95,7 @@ export declare var defaultStrings: {
|
|
|
95
95
|
newPanelName: string;
|
|
96
96
|
newTextItemName: string;
|
|
97
97
|
testSurvey: string;
|
|
98
|
+
themeSurvey: string;
|
|
98
99
|
defaultV2Theme: string;
|
|
99
100
|
modernTheme: string;
|
|
100
101
|
defaultTheme: string;
|
|
@@ -148,6 +149,7 @@ export declare var defaultStrings: {
|
|
|
148
149
|
propertyEditorError: string;
|
|
149
150
|
saveError: string;
|
|
150
151
|
translationPropertyGridTitle: string;
|
|
152
|
+
previewPropertyGridTitle: string;
|
|
151
153
|
translationLanguages: string;
|
|
152
154
|
translationAddLanguage: string;
|
|
153
155
|
translationShowAllStrings: string;
|
|
@@ -166,6 +168,8 @@ export declare var defaultStrings: {
|
|
|
166
168
|
htmlPlaceHolder: string;
|
|
167
169
|
panelPlaceHolder: string;
|
|
168
170
|
surveyPlaceHolder: string;
|
|
171
|
+
imagePlaceHolder: string;
|
|
172
|
+
imageChooseImage: string;
|
|
169
173
|
addNewTypeQuestion: string;
|
|
170
174
|
chooseLogoPlaceholder: string;
|
|
171
175
|
auto: string;
|
|
@@ -295,6 +299,7 @@ export declare var defaultStrings: {
|
|
|
295
299
|
propertyIsEmpty: string;
|
|
296
300
|
propertyIsNoUnique: string;
|
|
297
301
|
propertyNameIsNotUnique: string;
|
|
302
|
+
propertyNameIsIncorrect: string;
|
|
298
303
|
listIsEmpty: string;
|
|
299
304
|
"listIsEmpty@choices": string;
|
|
300
305
|
"addNew@choices": string;
|
|
@@ -675,6 +680,7 @@ export declare var defaultStrings: {
|
|
|
675
680
|
progressTop: string;
|
|
676
681
|
progressBottom: string;
|
|
677
682
|
progressTopBottom: string;
|
|
683
|
+
tab: string;
|
|
678
684
|
horizontal: string;
|
|
679
685
|
vertical: string;
|
|
680
686
|
top: string;
|
|
@@ -794,6 +800,15 @@ export declare var defaultStrings: {
|
|
|
794
800
|
rateColorMode: {
|
|
795
801
|
default: string;
|
|
796
802
|
};
|
|
803
|
+
autoGenerate: {
|
|
804
|
+
true: string;
|
|
805
|
+
false: string;
|
|
806
|
+
};
|
|
807
|
+
rateType: {
|
|
808
|
+
labels: string;
|
|
809
|
+
stars: string;
|
|
810
|
+
smileys: string;
|
|
811
|
+
};
|
|
797
812
|
};
|
|
798
813
|
op: {
|
|
799
814
|
empty: string;
|
|
@@ -951,4 +966,58 @@ export declare var defaultStrings: {
|
|
|
951
966
|
iconName: string;
|
|
952
967
|
iconSize: string;
|
|
953
968
|
};
|
|
969
|
+
theme: {
|
|
970
|
+
"--background": string;
|
|
971
|
+
"--background-dim-light": string;
|
|
972
|
+
"--primary-foreground": string;
|
|
973
|
+
"--foreground": string;
|
|
974
|
+
"--base-unit": string;
|
|
975
|
+
groupGeneral: string;
|
|
976
|
+
groupAdvanced: string;
|
|
977
|
+
themeName: string;
|
|
978
|
+
themeMode: string;
|
|
979
|
+
themeModePanels: string;
|
|
980
|
+
themeModeLightweight: string;
|
|
981
|
+
themePaletteLight: string;
|
|
982
|
+
themePaletteDark: string;
|
|
983
|
+
primaryColor: string;
|
|
984
|
+
primaryDefaultColor: string;
|
|
985
|
+
primaryDarkColor: string;
|
|
986
|
+
primaryLightColor: string;
|
|
987
|
+
backgroundDimColor: string;
|
|
988
|
+
backgroundImage: string;
|
|
989
|
+
backgroundImageFitAuto: string;
|
|
990
|
+
backgroundImageFitCover: string;
|
|
991
|
+
backgroundImageFitContain: string;
|
|
992
|
+
backgroundOpacity: string;
|
|
993
|
+
panelBackgroundTransparency: string;
|
|
994
|
+
questionBackgroundTransparency: string;
|
|
995
|
+
questionPanel: string;
|
|
996
|
+
questionTitle: string;
|
|
997
|
+
questionDescription: string;
|
|
998
|
+
editorPanel: string;
|
|
999
|
+
editorFont: string;
|
|
1000
|
+
backcolor: string;
|
|
1001
|
+
hovercolor: string;
|
|
1002
|
+
borderDecoration: string;
|
|
1003
|
+
accentBackground: string;
|
|
1004
|
+
accentForeground: string;
|
|
1005
|
+
primaryForecolor: string;
|
|
1006
|
+
primaryForecolorLight: string;
|
|
1007
|
+
linesColors: string;
|
|
1008
|
+
borderDefault: string;
|
|
1009
|
+
borderLight: string;
|
|
1010
|
+
fontFamily: string;
|
|
1011
|
+
fontSize: string;
|
|
1012
|
+
color: string;
|
|
1013
|
+
size: string;
|
|
1014
|
+
fontWeightRegular: string;
|
|
1015
|
+
fontWeightSemiBold: string;
|
|
1016
|
+
fontWeightBold: string;
|
|
1017
|
+
scale: string;
|
|
1018
|
+
cornerRadius: string;
|
|
1019
|
+
surveyTitle: string;
|
|
1020
|
+
pageTitle: string;
|
|
1021
|
+
pageDescription: string;
|
|
1022
|
+
};
|
|
954
1023
|
};
|
|
@@ -12,6 +12,8 @@ export * from "../components/tabs/json-editor-plugin";
|
|
|
12
12
|
export * from "../components/tabs/json-editor-textarea";
|
|
13
13
|
export * from "../components/tabs/test";
|
|
14
14
|
export * from "../components/tabs/test-plugin";
|
|
15
|
+
export * from "../components/tabs/theme";
|
|
16
|
+
export * from "../components/tabs/theme-plugin";
|
|
15
17
|
export * from "../components/tabs/logic";
|
|
16
18
|
export * from "../components/tabs/translation";
|
|
17
19
|
export * from "../components/tabs/translation-theme";
|
|
@@ -66,6 +66,7 @@ export declare var enStrings: {
|
|
|
66
66
|
newPanelName: string;
|
|
67
67
|
newTextItemName: string;
|
|
68
68
|
testSurvey: string;
|
|
69
|
+
themeSurvey: string;
|
|
69
70
|
defaultV2Theme: string;
|
|
70
71
|
modernTheme: string;
|
|
71
72
|
defaultTheme: string;
|
|
@@ -119,6 +120,7 @@ export declare var enStrings: {
|
|
|
119
120
|
propertyEditorError: string;
|
|
120
121
|
saveError: string;
|
|
121
122
|
translationPropertyGridTitle: string;
|
|
123
|
+
previewPropertyGridTitle: string;
|
|
122
124
|
translationLanguages: string;
|
|
123
125
|
translationAddLanguage: string;
|
|
124
126
|
translationShowAllStrings: string;
|
|
@@ -137,6 +139,8 @@ export declare var enStrings: {
|
|
|
137
139
|
htmlPlaceHolder: string;
|
|
138
140
|
panelPlaceHolder: string;
|
|
139
141
|
surveyPlaceHolder: string;
|
|
142
|
+
imagePlaceHolder: string;
|
|
143
|
+
imageChooseImage: string;
|
|
140
144
|
addNewTypeQuestion: string;
|
|
141
145
|
chooseLogoPlaceholder: string;
|
|
142
146
|
auto: string;
|
|
@@ -266,6 +270,7 @@ export declare var enStrings: {
|
|
|
266
270
|
propertyIsEmpty: string;
|
|
267
271
|
propertyIsNoUnique: string;
|
|
268
272
|
propertyNameIsNotUnique: string;
|
|
273
|
+
propertyNameIsIncorrect: string;
|
|
269
274
|
listIsEmpty: string;
|
|
270
275
|
"listIsEmpty@choices": string;
|
|
271
276
|
"addNew@choices": string;
|
|
@@ -646,6 +651,7 @@ export declare var enStrings: {
|
|
|
646
651
|
progressTop: string;
|
|
647
652
|
progressBottom: string;
|
|
648
653
|
progressTopBottom: string;
|
|
654
|
+
tab: string;
|
|
649
655
|
horizontal: string;
|
|
650
656
|
vertical: string;
|
|
651
657
|
top: string;
|
|
@@ -765,6 +771,15 @@ export declare var enStrings: {
|
|
|
765
771
|
rateColorMode: {
|
|
766
772
|
default: string;
|
|
767
773
|
};
|
|
774
|
+
autoGenerate: {
|
|
775
|
+
true: string;
|
|
776
|
+
false: string;
|
|
777
|
+
};
|
|
778
|
+
rateType: {
|
|
779
|
+
labels: string;
|
|
780
|
+
stars: string;
|
|
781
|
+
smileys: string;
|
|
782
|
+
};
|
|
768
783
|
};
|
|
769
784
|
op: {
|
|
770
785
|
empty: string;
|
|
@@ -922,4 +937,58 @@ export declare var enStrings: {
|
|
|
922
937
|
iconName: string;
|
|
923
938
|
iconSize: string;
|
|
924
939
|
};
|
|
940
|
+
theme: {
|
|
941
|
+
"--background": string;
|
|
942
|
+
"--background-dim-light": string;
|
|
943
|
+
"--primary-foreground": string;
|
|
944
|
+
"--foreground": string;
|
|
945
|
+
"--base-unit": string;
|
|
946
|
+
groupGeneral: string;
|
|
947
|
+
groupAdvanced: string;
|
|
948
|
+
themeName: string;
|
|
949
|
+
themeMode: string;
|
|
950
|
+
themeModePanels: string;
|
|
951
|
+
themeModeLightweight: string;
|
|
952
|
+
themePaletteLight: string;
|
|
953
|
+
themePaletteDark: string;
|
|
954
|
+
primaryColor: string;
|
|
955
|
+
primaryDefaultColor: string;
|
|
956
|
+
primaryDarkColor: string;
|
|
957
|
+
primaryLightColor: string;
|
|
958
|
+
backgroundDimColor: string;
|
|
959
|
+
backgroundImage: string;
|
|
960
|
+
backgroundImageFitAuto: string;
|
|
961
|
+
backgroundImageFitCover: string;
|
|
962
|
+
backgroundImageFitContain: string;
|
|
963
|
+
backgroundOpacity: string;
|
|
964
|
+
panelBackgroundTransparency: string;
|
|
965
|
+
questionBackgroundTransparency: string;
|
|
966
|
+
questionPanel: string;
|
|
967
|
+
questionTitle: string;
|
|
968
|
+
questionDescription: string;
|
|
969
|
+
editorPanel: string;
|
|
970
|
+
editorFont: string;
|
|
971
|
+
backcolor: string;
|
|
972
|
+
hovercolor: string;
|
|
973
|
+
borderDecoration: string;
|
|
974
|
+
accentBackground: string;
|
|
975
|
+
accentForeground: string;
|
|
976
|
+
primaryForecolor: string;
|
|
977
|
+
primaryForecolorLight: string;
|
|
978
|
+
linesColors: string;
|
|
979
|
+
borderDefault: string;
|
|
980
|
+
borderLight: string;
|
|
981
|
+
fontFamily: string;
|
|
982
|
+
fontSize: string;
|
|
983
|
+
color: string;
|
|
984
|
+
size: string;
|
|
985
|
+
fontWeightRegular: string;
|
|
986
|
+
fontWeightSemiBold: string;
|
|
987
|
+
fontWeightBold: string;
|
|
988
|
+
scale: string;
|
|
989
|
+
cornerRadius: string;
|
|
990
|
+
surveyTitle: string;
|
|
991
|
+
pageTitle: string;
|
|
992
|
+
pageDescription: string;
|
|
993
|
+
};
|
|
925
994
|
};
|
|
@@ -58,6 +58,8 @@ export declare class UndoRedoAction implements IUndoRedoAction {
|
|
|
58
58
|
private _oldValue;
|
|
59
59
|
private _newValue;
|
|
60
60
|
private _sender;
|
|
61
|
+
static maximumMergeTime: number;
|
|
62
|
+
private tickCount;
|
|
61
63
|
constructor(_propertyName: string, _oldValue: any, _newValue: any, _sender: Base);
|
|
62
64
|
apply(): void;
|
|
63
65
|
rollback(): void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Base, JsonObjectProperty, PanelModel, PanelModelBase, Question, SurveyModel, MatrixDynamicRowModel } from "survey-core";
|
|
2
2
|
import { ISurveyCreatorOptions } from "../creator-settings";
|
|
3
|
+
import { QuestionFileEditorModel } from "../custom-questions/question-file";
|
|
3
4
|
export interface IPropertyEditorSetup {
|
|
4
5
|
editSurvey: SurveyModel;
|
|
5
6
|
apply(): boolean;
|
|
@@ -126,6 +127,7 @@ export declare class PropertyGridModel {
|
|
|
126
127
|
private validateQuestionValue;
|
|
127
128
|
private onValidateQuestion;
|
|
128
129
|
private onValueChanging;
|
|
130
|
+
private isPropNameInValid;
|
|
129
131
|
private onValueChanged;
|
|
130
132
|
private changeDependedProperties;
|
|
131
133
|
private updateDependedPropertiesEditor;
|
|
@@ -169,6 +171,11 @@ export declare class PropertyGridEditorString extends PropertyGridEditorStringBa
|
|
|
169
171
|
isDefault(): boolean;
|
|
170
172
|
getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
|
|
171
173
|
}
|
|
174
|
+
export declare class PropertyGridLinkEditor extends PropertyGridEditor {
|
|
175
|
+
fit(prop: JsonObjectProperty): boolean;
|
|
176
|
+
getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
|
|
177
|
+
onCreated(obj: Base, question: QuestionFileEditorModel, prop: JsonObjectProperty, options: ISurveyCreatorOptions): void;
|
|
178
|
+
}
|
|
172
179
|
export declare class PropertyGridEditorNumber extends PropertyGridEditor {
|
|
173
180
|
fit(prop: JsonObjectProperty): boolean;
|
|
174
181
|
getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
|
|
@@ -4,6 +4,7 @@ import { IPropertyEditorSetup, PropertyGridEditor } from "./index";
|
|
|
4
4
|
export declare abstract class PropertyGridEditorMatrix extends PropertyGridEditor {
|
|
5
5
|
static getNewColumnName(objs: Array<any>, keyPropName: string, baseName: string): string | number;
|
|
6
6
|
onCreated(obj: Base, question: Question, prop: JsonObjectProperty): void;
|
|
7
|
+
private initializeAcceptedTypes;
|
|
7
8
|
private initializePlaceholder;
|
|
8
9
|
onMatrixCellCreated(obj: Base, options: any): void;
|
|
9
10
|
private updateMatixActionsClasses;
|
package/typings/toolbox.d.ts
CHANGED
|
@@ -264,6 +264,7 @@ export declare class QuestionToolbox extends AdaptiveActionContainer<QuestionToo
|
|
|
264
264
|
private getComponentItems;
|
|
265
265
|
private addItemFromJSON;
|
|
266
266
|
private getQuestionJSON;
|
|
267
|
+
private isHiddenCustomWidget;
|
|
267
268
|
private getQuestionTypes;
|
|
268
269
|
dispose(): void;
|
|
269
270
|
}
|
package/typings/utils/utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ItemValue } from "survey-core";
|
|
1
|
+
import { ItemValue, Question, SurveyElement } from "survey-core";
|
|
2
2
|
export declare function getNextItemValue(prefix: string, choices: ItemValue[]): string | number;
|
|
3
3
|
export declare function getNextItemText(choices: ItemValue[]): string;
|
|
4
4
|
export declare function getNextValue(prefix: string, values: any[]): string | number;
|
|
@@ -17,3 +17,6 @@ export declare function assignDefaultV2Classes(destination: any, questionType: s
|
|
|
17
17
|
export declare function wrapTextByCurlyBraces(text: string): string;
|
|
18
18
|
export declare function capitalize(str: string): string;
|
|
19
19
|
export declare function notShortCircuitAnd(...args: Array<boolean>): boolean;
|
|
20
|
+
export declare const imageMimeTypes = "image/png, image/gif, image/jpeg, image/apng, image/avif, image/svg+xml, image/webp";
|
|
21
|
+
export declare function getAcceptedTypesByContentMode(contentMode: string): "" | "image/png, image/gif, image/jpeg, image/apng, image/avif, image/svg+xml, image/webp" | "video/*";
|
|
22
|
+
export declare function getQuestionFromObj(obj: SurveyElement): Question;
|