survey-creator-core 1.9.106 → 1.9.108

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.
Files changed (34) hide show
  1. package/fonts.fontless.css +1 -1
  2. package/fonts.fontless.min.css +1 -1
  3. package/package.json +2 -2
  4. package/survey-creator-core.css +182 -13
  5. package/survey-creator-core.fontless.css +181 -12
  6. package/survey-creator-core.fontless.css.map +1 -1
  7. package/survey-creator-core.fontless.min.css +12 -12
  8. package/survey-creator-core.i18n.js +1 -1
  9. package/survey-creator-core.i18n.min.js +1 -1
  10. package/survey-creator-core.js +14329 -9576
  11. package/survey-creator-core.js.map +1 -1
  12. package/survey-creator-core.min.css +13 -13
  13. package/survey-creator-core.min.js +173 -3
  14. package/typings/components/action-container-view-model.d.ts +7 -1
  15. package/typings/components/matrix-cell.d.ts +1 -1
  16. package/typings/components/page.d.ts +1 -0
  17. package/typings/components/question-image.d.ts +1 -0
  18. package/typings/components/tabs/logic-theme.d.ts +3 -0
  19. package/typings/components/tabs/test.d.ts +1 -0
  20. package/typings/components/tabs/theme-builder.d.ts +81 -0
  21. package/typings/components/tabs/theme-plugin.d.ts +24 -12
  22. package/typings/components/tabs/theme.d.ts +100 -100
  23. package/typings/components/tabs/themes.d.ts +26 -0
  24. package/typings/creator-base.d.ts +11 -8
  25. package/typings/creator-settings.d.ts +2 -2
  26. package/typings/custom-questions/question-color.d.ts +2 -1
  27. package/typings/editorLocalization.d.ts +2 -0
  28. package/typings/entries/index.d.ts +2 -1
  29. package/typings/localization/english.d.ts +2 -0
  30. package/typings/property-grid/index.d.ts +4 -0
  31. package/typings/property-grid-theme/property-grid.d.ts +1 -0
  32. package/typings/survey-elements.d.ts +2 -0
  33. package/typings/survey-helper.d.ts +3 -1
  34. package/typings/toolbox.d.ts +0 -1
@@ -1,9 +1,15 @@
1
1
  import { Base, AdaptiveActionContainer, Action, SurveyElement } from "survey-core";
2
2
  import { CreatorBase } from "../creator-base";
3
+ export declare class SurveyElementActionContainer extends AdaptiveActionContainer {
4
+ private setModeForActions;
5
+ private skipInputType;
6
+ private skipQuestionType;
7
+ fit(dimension: number, dotsItemSize: number): void;
8
+ }
3
9
  export declare class SurveyElementAdornerBase<T extends SurveyElement = SurveyElement> extends Base {
4
10
  creator: CreatorBase;
5
11
  protected surveyElement: T;
6
- actionContainer: AdaptiveActionContainer;
12
+ actionContainer: SurveyElementActionContainer;
7
13
  allowDragging: boolean;
8
14
  private allowEditOption;
9
15
  private selectedPropPageFunc;
@@ -4,7 +4,7 @@ export declare class MatrixCellWrapperEditSurvey {
4
4
  private cellQuestion;
5
5
  private surveyValue;
6
6
  private creator;
7
- constructor(creator: CreatorBase, cellQuestion: Question);
7
+ constructor(creator: CreatorBase, cellQuestion: Question, model?: Base);
8
8
  get survey(): SurveyModel;
9
9
  get question(): Question;
10
10
  apply(): void;
@@ -16,6 +16,7 @@ export declare class PageAdorner extends SurveyElementAdornerBase<PageModel> {
16
16
  protected onElementSelectedChanged(isSelected: boolean): void;
17
17
  private patchPageForDragDrop;
18
18
  dispose(): void;
19
+ protected calcIsGhostPage(page: PageModel): boolean;
19
20
  get isGhost(): boolean;
20
21
  protected isOperationsAllow(): boolean;
21
22
  protected getPage(): PageModel;
@@ -15,5 +15,6 @@ export declare class QuestionImageAdornerViewModel extends QuestionAdornerViewMo
15
15
  get question(): QuestionImageModel;
16
16
  get placeholderText(): string;
17
17
  get chooseImageText(): string;
18
+ css(): string;
18
19
  dispose(): void;
19
20
  }
@@ -314,6 +314,9 @@ export declare var logicCss: {
314
314
  buttonCollapsed: string;
315
315
  };
316
316
  };
317
+ list: {
318
+ root: string;
319
+ };
317
320
  embeddedsurvey: {
318
321
  mainRoot: string;
319
322
  };
@@ -5,6 +5,7 @@ export declare class TestSurveyTabViewModel extends Base {
5
5
  private surveyProvider;
6
6
  private startTheme;
7
7
  static tagRegex: RegExp;
8
+ enableInvisiblePages: boolean;
8
9
  private json;
9
10
  pages: ActionContainer;
10
11
  prevPageAction: Action;
@@ -0,0 +1,81 @@
1
+ import { SurveySimulatorModel } from "../simulator";
2
+ import { Base, PageModel, SurveyModel, Action, IAction, ActionContainer, ITheme, EventBase } from "survey-core";
3
+ import { CreatorBase } from "../../creator-base";
4
+ export declare class ThemeBuilder extends Base {
5
+ private surveyProvider;
6
+ private startThemeClasses;
7
+ private json;
8
+ pages: ActionContainer;
9
+ testAgainAction: Action;
10
+ private themeEditorSurveyValue;
11
+ private themeCssVariablesChanges;
12
+ private colorCalculator;
13
+ private blockChanges;
14
+ private _availableThemes;
15
+ onSurveyCreatedCallback: (survey: SurveyModel) => any;
16
+ get themeCssCustomizations(): {
17
+ [index: string]: string;
18
+ };
19
+ simulator: SurveySimulatorModel;
20
+ showInvisibleElements: any;
21
+ showPagesInTestSurveyTab: any;
22
+ isRunning: boolean;
23
+ pageListItems: Array<IAction>;
24
+ activePage: PageModel;
25
+ backgroundImage: any;
26
+ backgroundImageFit: any;
27
+ backgroundImageAttachment: any;
28
+ themeName: any;
29
+ themePalette: any;
30
+ themeMode: any;
31
+ getFullThemeName(_themeName?: string): any;
32
+ get activeLanguage(): string;
33
+ set activeLanguage(val: string);
34
+ get survey(): SurveyModel;
35
+ get pageActions(): Array<Action>;
36
+ get isPageToolbarVisible(): boolean;
37
+ get themeEditorSurvey(): SurveyModel;
38
+ get currentTheme(): ITheme;
39
+ onThemeSelected: EventBase<ThemeBuilder, {
40
+ theme: ITheme;
41
+ }>;
42
+ onThemeModified: EventBase<ThemeBuilder, {
43
+ name: string;
44
+ value: any;
45
+ }>;
46
+ onCanModifyTheme: EventBase<ThemeBuilder, {
47
+ theme: ITheme;
48
+ canModify: boolean;
49
+ }>;
50
+ constructor(surveyProvider: CreatorBase, startThemeClasses?: any);
51
+ loadTheme(theme: ITheme): void;
52
+ resetTheme(): void;
53
+ setTheme(theme: ITheme): void;
54
+ selectTheme(themeName: string, themePalette?: string, themeMode?: string): void;
55
+ updateSimulatorSurvey(json: any, theme: any): void;
56
+ setJSON(json: any, currTheme: any): void;
57
+ private blockThemeChangedNotifications;
58
+ initialize(json: any, options: any): void;
59
+ private updatePageItem;
60
+ private getCurrentPageItem;
61
+ private getSelectPageTitle;
62
+ private getPageTitle;
63
+ private updatePageList;
64
+ show(): void;
65
+ testAgain(): void;
66
+ get availableThemes(): string[];
67
+ set availableThemes(availebleThemes: string[]);
68
+ private setActivePageItem;
69
+ private getPageItemByPage;
70
+ private initializeColorCalculator;
71
+ protected createThemeEditorSurvey(): SurveyModel;
72
+ findSuitableTheme(themeName: string): ITheme;
73
+ private loadThemeIntoPropertyGrid;
74
+ private updatePropertyGridEditorsAvailability;
75
+ private updatePropertyGridEditors;
76
+ private raiseThemeChanged;
77
+ private raiseThemeModified;
78
+ private updateSimulatorTheme;
79
+ private getThemeEditorSurveyJSON;
80
+ dispose(): void;
81
+ }
@@ -1,28 +1,40 @@
1
- import { Action } from "survey-core";
1
+ import { Action, ITheme, EventBase } from "survey-core";
2
2
  import { CreatorBase, ICreatorPlugin } from "../../creator-base";
3
- import { ThemeSurveyTabViewModel } from "./theme";
4
- export declare class TabThemePlugin implements ICreatorPlugin {
3
+ import { ThemeBuilder } from "./theme-builder";
4
+ export declare class ThemeTabPlugin implements ICreatorPlugin {
5
5
  private creator;
6
- private deviceSelectorAction;
7
- private orientationSelectorAction;
8
- private invisibleToggleAction;
9
6
  private testAgainAction;
10
- private designerAction;
11
- private prevPageAction;
12
- private nextPageAction;
7
+ private themeSettingsAction;
13
8
  private resetTheme;
14
9
  private importAction;
15
10
  private exportAction;
16
11
  private inputFileElement;
17
12
  private simulatorTheme;
18
13
  private sidebarTab;
19
- model: ThemeSurveyTabViewModel;
20
- private setDevice;
21
- private updateActions;
14
+ private _availableThemes;
15
+ model: ThemeBuilder;
22
16
  constructor(creator: CreatorBase);
23
17
  activate(): void;
24
18
  update(): void;
25
19
  deactivate(): boolean;
20
+ saveToFileHandler: (fileName: string, blob: Blob) => void;
21
+ exportToFile(fileName: string): void;
22
+ importFromFile(file: File, callback?: (theme: ITheme) => void): void;
26
23
  createActions(): Array<Action>;
27
24
  addFooterActions(): void;
25
+ get availableThemes(): string[];
26
+ set availableThemes(availebleThemes: string[]);
27
+ addTheme(theme: ITheme): string;
28
+ removeTheme(fullThemeName: string): void;
29
+ onThemeSelected: EventBase<ThemeTabPlugin, {
30
+ theme: ITheme;
31
+ }>;
32
+ onThemeModified: EventBase<ThemeTabPlugin, {
33
+ name: string;
34
+ value: any;
35
+ }>;
36
+ onCanModifyTheme: EventBase<ThemeTabPlugin, {
37
+ theme: ITheme;
38
+ canModify: boolean;
39
+ }>;
28
40
  }
@@ -1,100 +1,100 @@
1
- import { SurveySimulatorModel } from "../simulator";
2
- import { Base, PageModel, SurveyModel, Action, IAction, ActionContainer, ITheme } from "survey-core";
3
- import { CreatorBase } from "../../creator-base";
4
- export declare const Themes: any;
5
- export declare const PredefinedThemes: string[];
6
- export declare const PredefinedColors: {
7
- light: {
8
- teal: string;
9
- blue: string;
10
- purple: string;
11
- orchid: string;
12
- tulip: string;
13
- brown: string;
14
- green: string;
15
- };
16
- dark: {
17
- teal: string;
18
- blue: string;
19
- purple: string;
20
- orchid: string;
21
- tulip: string;
22
- brown: string;
23
- green: string;
24
- };
25
- };
26
- export interface ICreatorTheme extends ITheme {
27
- themeName?: string;
28
- colorPalette?: string;
29
- }
30
- export declare class ThemeSurveyTabViewModel extends Base {
31
- private surveyProvider;
32
- private startTheme;
33
- private json;
34
- exportToFileUI: any;
35
- importFromFileUI: any;
36
- pages: ActionContainer;
37
- prevPageAction: Action;
38
- testAgainAction: Action;
39
- nextPageAction: Action;
40
- private selectPageAction;
41
- private themeEditorSurveyValue;
42
- private themeChanges;
43
- private colorCalculator;
44
- private blockChanges;
45
- onSurveyCreatedCallback: (survey: SurveyModel) => any;
46
- simulator: SurveySimulatorModel;
47
- showInvisibleElements: any;
48
- showPagesInTestSurveyTab: any;
49
- isRunning: boolean;
50
- pageListItems: Array<IAction>;
51
- activePage: PageModel;
52
- backgroundImage: any;
53
- backgroundImageFit: any;
54
- backgroundImageAttachment: any;
55
- themeName: any;
56
- themePalette: any;
57
- themeMode: any;
58
- getFullThemeName(_themeName?: string): any;
59
- get themeVariables(): any;
60
- get activeLanguage(): string;
61
- set activeLanguage(val: string);
62
- get survey(): SurveyModel;
63
- get pageActions(): Array<Action>;
64
- get isPageToolbarVisible(): boolean;
65
- get themeEditorSurvey(): SurveyModel;
66
- get currentTheme(): ICreatorTheme;
67
- applySelectedTheme(): void;
68
- constructor(surveyProvider: CreatorBase, startTheme?: any);
69
- private loadTheme;
70
- updateSimulatorSurvey(json: any, theme: any): void;
71
- exportToFile(fileName: string): void;
72
- importFromFile(file: File): void;
73
- setThemeFromFile(theme: ITheme): void;
74
- setJSON(json: any, currTheme: any): void;
75
- private blockThemeChangedNotifications;
76
- initialize(json: any, options: any): void;
77
- private updatePageItem;
78
- private getCurrentPageItem;
79
- private getSelectPageTitle;
80
- private getPageTitle;
81
- private updatePageList;
82
- resetTheme(): void;
83
- show(): void;
84
- testAgain(): void;
85
- buildActions(): void;
86
- private setActivePageItem;
87
- private getPageItemByPage;
88
- private updateResultsTemplate;
89
- setTheme(themeName: string, themeMapper: any): void;
90
- protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
91
- private updatePrevNextPageActionState;
92
- initializeColorCalculator(): void;
93
- protected createThemeEditorSurvey(): SurveyModel;
94
- private loadThemeIntoPropertyGrid;
95
- private updatePGEditors;
96
- private raiseThemeChanged;
97
- private setThemeToSurvey;
98
- private getThemeEditorSurveyJSON;
99
- dispose(): void;
100
- }
1
+ import { SurveySimulatorModel } from "../simulator";
2
+ import { Base, PageModel, SurveyModel, Action, IAction, ActionContainer, ITheme } from "survey-core";
3
+ import { CreatorBase } from "../../creator-base";
4
+ export declare const Themes: any;
5
+ export declare const PredefinedThemes: string[];
6
+ export declare const PredefinedColors: {
7
+ light: {
8
+ teal: string;
9
+ blue: string;
10
+ purple: string;
11
+ orchid: string;
12
+ tulip: string;
13
+ brown: string;
14
+ green: string;
15
+ };
16
+ dark: {
17
+ teal: string;
18
+ blue: string;
19
+ purple: string;
20
+ orchid: string;
21
+ tulip: string;
22
+ brown: string;
23
+ green: string;
24
+ };
25
+ };
26
+ export interface ICreatorTheme extends ITheme {
27
+ themeName?: string;
28
+ colorPalette?: string;
29
+ }
30
+ export declare class ThemeSurveyTabViewModel extends Base {
31
+ private surveyProvider;
32
+ private startTheme;
33
+ private json;
34
+ exportToFileUI: any;
35
+ importFromFileUI: any;
36
+ pages: ActionContainer;
37
+ prevPageAction: Action;
38
+ testAgainAction: Action;
39
+ nextPageAction: Action;
40
+ private selectPageAction;
41
+ private themeEditorSurveyValue;
42
+ private themeChanges;
43
+ private colorCalculator;
44
+ private blockChanges;
45
+ onSurveyCreatedCallback: (survey: SurveyModel) => any;
46
+ simulator: SurveySimulatorModel;
47
+ showInvisibleElements: any;
48
+ showPagesInTestSurveyTab: any;
49
+ isRunning: boolean;
50
+ pageListItems: Array<IAction>;
51
+ activePage: PageModel;
52
+ backgroundImage: any;
53
+ backgroundImageFit: any;
54
+ backgroundImageAttachment: any;
55
+ themeName: any;
56
+ themePalette: any;
57
+ themeMode: any;
58
+ getFullThemeName(_themeName?: string): any;
59
+ get themeVariables(): any;
60
+ get activeLanguage(): string;
61
+ set activeLanguage(val: string);
62
+ get survey(): SurveyModel;
63
+ get pageActions(): Array<Action>;
64
+ get isPageToolbarVisible(): boolean;
65
+ get themeEditorSurvey(): SurveyModel;
66
+ get currentTheme(): ICreatorTheme;
67
+ applySelectedTheme(): void;
68
+ constructor(surveyProvider: CreatorBase, startTheme?: any);
69
+ private loadTheme;
70
+ updateSimulatorSurvey(json: any, theme: any): void;
71
+ exportToFile(fileName: string): void;
72
+ importFromFile(file: File): void;
73
+ setThemeFromFile(theme: ITheme): void;
74
+ setJSON(json: any, currTheme: any): void;
75
+ private blockThemeChangedNotifications;
76
+ initialize(json: any, options: any): void;
77
+ private updatePageItem;
78
+ private getCurrentPageItem;
79
+ private getSelectPageTitle;
80
+ private getPageTitle;
81
+ private updatePageList;
82
+ resetTheme(): void;
83
+ show(): void;
84
+ testAgain(): void;
85
+ buildActions(): void;
86
+ private setActivePageItem;
87
+ private getPageItemByPage;
88
+ private updateResultsTemplate;
89
+ setTheme(themeName: string, themeMapper: any): void;
90
+ protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
91
+ private updatePrevNextPageActionState;
92
+ initializeColorCalculator(): void;
93
+ protected createThemeEditorSurvey(): SurveyModel;
94
+ private loadThemeIntoPropertyGrid;
95
+ private updatePGEditors;
96
+ private raiseThemeChanged;
97
+ private setThemeToSurvey;
98
+ private getThemeEditorSurveyJSON;
99
+ dispose(): void;
100
+ }
@@ -0,0 +1,26 @@
1
+ import { ITheme } from "survey-core";
2
+ export declare const Themes: {
3
+ [index: string]: ITheme;
4
+ };
5
+ export declare const PredefinedThemes: string[];
6
+ export declare function getThemeFullName(theme: ITheme): string;
7
+ export declare const PredefinedColors: {
8
+ light: {
9
+ teal: string;
10
+ blue: string;
11
+ purple: string;
12
+ orchid: string;
13
+ tulip: string;
14
+ brown: string;
15
+ green: string;
16
+ };
17
+ dark: {
18
+ teal: string;
19
+ blue: string;
20
+ purple: string;
21
+ orchid: string;
22
+ tulip: string;
23
+ brown: string;
24
+ green: string;
25
+ };
26
+ };
@@ -151,7 +151,9 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
151
151
  * - `"portrait"`
152
152
  */
153
153
  previewOrientation: "landscape" | "portrait";
154
- startEditTitleOnQuestionAdded: boolean;
154
+ set startEditTitleOnQuestionAdded(value: boolean);
155
+ get startEditTitleOnQuestionAdded(): boolean;
156
+ private startEditTitleOnQuestionAddedValue;
155
157
  private isRTLValue;
156
158
  private alwaySaveTextInPropertyEditorsValue;
157
159
  private toolbarValue;
@@ -1005,7 +1007,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
1005
1007
  showToolboxValue: boolean;
1006
1008
  get showToolbox(): boolean;
1007
1009
  set showToolbox(val: boolean);
1008
- private showSidebarValue;
1010
+ showSidebarValue: boolean;
1009
1011
  onShowSidebarVisibilityChanged: CreatorEvent;
1010
1012
  /**
1011
1013
  * Specifies whether to show the sidebar that displays Property Grid.
@@ -1180,7 +1182,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
1180
1182
  set text(value: string);
1181
1183
  getSurveyJSON(): any;
1182
1184
  getObjectDisplayName(obj: Base, area: string, reason?: string, displayName?: string): string;
1183
- createSurvey(json?: any, reason?: string): SurveyModel;
1185
+ createSurvey(json?: any, reason?: string, model?: any): SurveyModel;
1184
1186
  protected createSurveyCore(json: any, reason: string): SurveyModel;
1185
1187
  private _stateValue;
1186
1188
  /**
@@ -1214,9 +1216,9 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
1214
1216
  private addElemenMultiline;
1215
1217
  setNewNames(element: ISurveyElement): void;
1216
1218
  private updateNewElementExpressions;
1217
- protected getAllQuestions(): Array<any>;
1218
- protected getAllPanels(): Array<any>;
1219
- protected addElements(elements: Array<any>, isPanel: boolean, result: Array<any>): void;
1219
+ protected getAllQuestions(includeNewItems?: boolean): Array<any>;
1220
+ protected getAllPanels(includeNewItems?: boolean): Array<any>;
1221
+ private getAllElements;
1220
1222
  protected getNewName(type: string, isPanel?: boolean): string;
1221
1223
  protected getNewQuestionName(): string;
1222
1224
  protected getNewPanelName(): string;
@@ -1359,7 +1361,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
1359
1361
  protected canDeleteItem(object: any, item: Base, allowDelete: boolean): boolean;
1360
1362
  private getErrorOnPropertyChanging;
1361
1363
  protected generateUniqueName(el: Base, newName: string): string;
1362
- protected isNameUnique(el: Base, newName: string): boolean;
1364
+ protected isNameUnique(el: Base, newName: string, includeNewItems?: boolean): boolean;
1363
1365
  private isNameUniqueInArray;
1364
1366
  protected doPropertyGridChanged(): void;
1365
1367
  get alwaySaveTextInPropertyEditors(): boolean;
@@ -1437,7 +1439,8 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
1437
1439
  showTabs: any;
1438
1440
  showToolbar: any;
1439
1441
  allowCollapseSidebar: any;
1440
- isMobileView: any;
1442
+ isMobileView: boolean;
1443
+ isTouch: any;
1441
1444
  /**
1442
1445
  * Specifies Toolbox location.
1443
1446
  *
@@ -185,7 +185,7 @@ export interface ISurveyCreatorOptions {
185
185
  onGetElementEditorTitleCallback(obj: Base, title: string): string;
186
186
  startUndoRedoTransaction(): any;
187
187
  stopUndoRedoTransaction(): any;
188
- createSurvey(json: any, reason: string, surveyType?: new (json: any) => SurveyModel): any;
188
+ createSurvey(json: any, reason: string, model?: any): any;
189
189
  onConditionQuestionsGetListCallback(propertyName: string, obj: Base, editor: any, list: any[]): string;
190
190
  onConditionGetTitleCallback(expression: string, title: string): string;
191
191
  isConditionOperatorEnabled(questionName: string, question: Question, operator: string, isEnabled: boolean): boolean;
@@ -227,7 +227,7 @@ export declare class EmptySurveyCreatorOptions implements ISurveyCreatorOptions
227
227
  onGetElementEditorTitleCallback(obj: Base, title: string): string;
228
228
  startUndoRedoTransaction(): void;
229
229
  stopUndoRedoTransaction(): void;
230
- createSurvey(json: any, reason: string, surveyType?: new (json: any) => SurveyModel): SurveyModel;
230
+ createSurvey(json: any, reason: string, model?: any): SurveyModel;
231
231
  onConditionQuestionsGetListCallback(propertyName: string, obj: Base, editor: any, list: any[]): string;
232
232
  onConditionGetTitleCallback(expression: string, title: string): string;
233
233
  isConditionOperatorEnabled(questionName: string, question: Question, operator: string, isEnabled: boolean): boolean;
@@ -1,6 +1,6 @@
1
1
  import { Action, ItemValue, QuestionTextModel } from "survey-core";
2
2
  export declare class QuestionColorModel extends QuestionTextModel {
3
- unit: string;
3
+ allowEmptyValue: boolean;
4
4
  constructor(name: string);
5
5
  private getCorrectedValue;
6
6
  protected setNewValue(newValue: string): void;
@@ -15,6 +15,7 @@ export declare class QuestionColorModel extends QuestionTextModel {
15
15
  getSwatchStyle(): {
16
16
  [index: string]: string;
17
17
  };
18
+ get renderedColorValue(): string;
18
19
  get isInputTextUpdate(): boolean;
19
20
  onSurveyValueChanged(newValue: any): void;
20
21
  private _dropdownAction;
@@ -76,6 +76,8 @@ export declare var defaultStrings: {
76
76
  settingsTooltip: string;
77
77
  surveySettings: string;
78
78
  surveySettingsTooltip: string;
79
+ themeSettings: string;
80
+ themeSettingsTooltip: string;
79
81
  showPanel: string;
80
82
  hidePanel: string;
81
83
  prevSelected: string;
@@ -15,7 +15,8 @@ export * from "../components/tabs/theme-custom-questions/color-settings";
15
15
  export * from "../components/tabs/theme-custom-questions/boxshadow-settings";
16
16
  export * from "../components/tabs/theme-custom-questions/font-settings";
17
17
  export * from "../components/tabs/theme-custom-questions/element-settings";
18
- export * from "../components/tabs/theme";
18
+ export * from "../components/tabs/themes";
19
+ export * from "../components/tabs/theme-builder";
19
20
  export * from "../components/tabs/theme-plugin";
20
21
  export * from "../components/tabs/logic";
21
22
  export * from "../components/tabs/translation";
@@ -46,6 +46,8 @@ export declare var enStrings: {
46
46
  settingsTooltip: string;
47
47
  surveySettings: string;
48
48
  surveySettingsTooltip: string;
49
+ themeSettings: string;
50
+ themeSettingsTooltip: string;
49
51
  showPanel: string;
50
52
  hidePanel: string;
51
53
  prevSelected: string;
@@ -183,6 +183,10 @@ export declare class PropertyGridLinkEditor extends PropertyGridEditor {
183
183
  getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
184
184
  onCreated(obj: Base, question: QuestionFileEditorModel, prop: JsonObjectProperty, options: ISurveyCreatorOptions): void;
185
185
  }
186
+ export declare class PropertyGridColorEditor extends PropertyGridEditor {
187
+ fit(prop: JsonObjectProperty): boolean;
188
+ getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
189
+ }
186
190
  export declare class PropertyGridEditorNumber extends PropertyGridEditor {
187
191
  fit(prop: JsonObjectProperty): boolean;
188
192
  getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
@@ -329,6 +329,7 @@ export declare var propertyGridCss: {
329
329
  color: {
330
330
  root: string;
331
331
  swatch: string;
332
+ swatchDefault: string;
332
333
  swatchDisabled: string;
333
334
  colorInput: string;
334
335
  control: string;
@@ -31,7 +31,9 @@ export declare class DragDropSurveyElements extends DragDropCore<any> {
31
31
  private shouldRestricDragQuestionBetweenPages;
32
32
  private getPanelDropTarget;
33
33
  protected findDeepestDropTargetChild(parent: HTMLElement): HTMLElement;
34
+ private isAllowDragOver;
34
35
  dragOverCore(dropTarget: ISurveyElement, dragOverLocation: DragTypeOverMeEnum, isEdge?: boolean, isSide?: boolean): void;
36
+ private isSameElement;
35
37
  dragOver(event: PointerEvent): void;
36
38
  protected onStartDrag(): void;
37
39
  private getElementIndexInPanel;
@@ -1,4 +1,4 @@
1
- import { Base, ISurveyElement, ItemValue, JsonObjectProperty } from "survey-core";
1
+ import { Base, ISurveyElement, ItemValue, JsonObjectProperty, SurveyModel } from "survey-core";
2
2
  import { ISurveyCreatorOptions } from "./creator-settings";
3
3
  export declare enum ObjType {
4
4
  Unknown = 0,
@@ -21,6 +21,8 @@ export declare class SurveyHelper {
21
21
  static getObjectTypeStr(obj: any): string;
22
22
  static getObjectName(obj: any, showObjectTitle?: boolean): string;
23
23
  static getElements(element: any, includeHidden?: boolean): Array<any>;
24
+ static addElements(elements: Array<any>, isPanel: boolean, result: Array<any>): void;
25
+ static getAllElements(survey: SurveyModel, isPanel: boolean): Array<any>;
24
26
  static isPropertyVisible(obj: any, property: JsonObjectProperty, options?: ISurveyCreatorOptions, showMode?: string, parentObj?: any, parentProperty?: JsonObjectProperty): boolean;
25
27
  static scrollIntoViewIfNeeded(el: HTMLElement): void;
26
28
  static getScrollableDiv(el: HTMLElement): HTMLElement;
@@ -268,5 +268,4 @@ export declare class QuestionToolbox extends AdaptiveActionContainer<QuestionToo
268
268
  private getQuestionJSON;
269
269
  private isHiddenCustomWidget;
270
270
  private getQuestionTypes;
271
- dispose(): void;
272
271
  }