survey-creator-core 1.9.107 → 1.9.109

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 (32) 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 +112 -30
  5. package/survey-creator-core.fontless.css +111 -29
  6. package/survey-creator-core.fontless.css.map +1 -1
  7. package/survey-creator-core.fontless.min.css +37 -37
  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 +14586 -9895
  11. package/survey-creator-core.js.map +1 -1
  12. package/survey-creator-core.min.css +38 -38
  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/tabs/logic-theme.d.ts +3 -0
  18. package/typings/components/tabs/test.d.ts +1 -0
  19. package/typings/components/tabs/theme-builder.d.ts +81 -0
  20. package/typings/components/tabs/theme-plugin.d.ts +24 -12
  21. package/typings/components/tabs/theme.d.ts +100 -100
  22. package/typings/components/tabs/themes.d.ts +26 -0
  23. package/typings/creator-base.d.ts +18 -17
  24. package/typings/creator-settings.d.ts +2 -2
  25. package/typings/custom-questions/question-color.d.ts +2 -1
  26. package/typings/editorLocalization.d.ts +2 -0
  27. package/typings/entries/index.d.ts +2 -1
  28. package/typings/localization/english.d.ts +2 -0
  29. package/typings/property-grid/index.d.ts +4 -0
  30. package/typings/property-grid-theme/property-grid.d.ts +1 -0
  31. package/typings/survey-helper.d.ts +3 -1
  32. 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;
@@ -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
+ };
@@ -538,45 +538,45 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
538
538
  *
539
539
  * Depending on the `options.type` value, the `options` object contains parameters listed below:
540
540
  *
541
- * `options.type`: `"ADDED_FROM_TOOLBOX"`\
541
+ * `options.type`: `"ADDED_FROM_TOOLBOX"`
542
542
  * - `options.question` - An added question.
543
543
  *
544
- * `options.type`: `"PAGE_ADDED"`\
544
+ * `options.type`: `"PAGE_ADDED"`
545
545
  * - `options.newValue` - An added page.
546
546
  *
547
- * `options.type`: `"PAGE_MOVED"`\
547
+ * `options.type`: `"PAGE_MOVED"`
548
548
  * - `options.page` - A moved page.
549
549
  * - `options.indexFrom` - A previous index.
550
550
  * - `options.indexTo` - A current index.
551
551
  *
552
- * `options.type`: `"QUESTION_CONVERTED"`\
552
+ * `options.type`: `"QUESTION_CONVERTED"`
553
553
  * - `options.className` - The name of a class to which a question has been converted.
554
554
  * - `options.oldValue` - An object of a previous class.
555
555
  * - `options.newValue` - An object of a class specified by `options.className`.
556
556
  *
557
- * `options.type`: `"QUESTION_CHANGED_BY_EDITOR"`\
557
+ * `options.type`: `"QUESTION_CHANGED_BY_EDITOR"`
558
558
  * - `options.question` - A question that has been edited in a pop-up editor.
559
559
  *
560
- * `options.type`: `"PROPERTY_CHANGED"`\
560
+ * `options.type`: `"PROPERTY_CHANGED"`
561
561
  * - `options.name` - The name of the changed property.
562
562
  * - `options.target` - An object that contains the changed property.
563
563
  * - `options.oldValue` - A previous value of the changed property.
564
564
  * - `options.newValue` - A new value of the changed property.
565
565
  *
566
- * `options.type`: `"ELEMENT_REORDERED"`\
566
+ * `options.type`: `"ELEMENT_REORDERED"`
567
567
  * - `options.arrayName` - The name of the changed array.
568
568
  * - `options.parent` - An object that contains the changed array.
569
569
  * - `options.element` - A reordered element.
570
570
  * - `options.indexFrom` - A previous index.
571
571
  * - `options.indexTo` - A current index.
572
572
  *
573
- * `options.type`: `"OBJECT_DELETED"`\
573
+ * `options.type`: `"OBJECT_DELETED"`
574
574
  * - `options.target` - A deleted object.
575
575
  *
576
- * `options.type`: `"VIEW_TYPE_CHANGED"`\
576
+ * `options.type`: `"VIEW_TYPE_CHANGED"`
577
577
  * - `options.newType` - A current view: `"editor"` or `"designer"`.
578
578
  *
579
- * `options.type`: `"DO_DROP"`\
579
+ * `options.type`: `"DO_DROP"`
580
580
  * - `options.page` - A parent page of the dragged element.
581
581
  * - `options.source` - A dragged element.
582
582
  * - `options.target` - A drop target.
@@ -1007,7 +1007,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
1007
1007
  showToolboxValue: boolean;
1008
1008
  get showToolbox(): boolean;
1009
1009
  set showToolbox(val: boolean);
1010
- private showSidebarValue;
1010
+ showSidebarValue: boolean;
1011
1011
  onShowSidebarVisibilityChanged: CreatorEvent;
1012
1012
  /**
1013
1013
  * Specifies whether to show the sidebar that displays Property Grid.
@@ -1182,7 +1182,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
1182
1182
  set text(value: string);
1183
1183
  getSurveyJSON(): any;
1184
1184
  getObjectDisplayName(obj: Base, area: string, reason?: string, displayName?: string): string;
1185
- createSurvey(json?: any, reason?: string): SurveyModel;
1185
+ createSurvey(json?: any, reason?: string, model?: any): SurveyModel;
1186
1186
  protected createSurveyCore(json: any, reason: string): SurveyModel;
1187
1187
  private _stateValue;
1188
1188
  /**
@@ -1216,9 +1216,9 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
1216
1216
  private addElemenMultiline;
1217
1217
  setNewNames(element: ISurveyElement): void;
1218
1218
  private updateNewElementExpressions;
1219
- protected getAllQuestions(): Array<any>;
1220
- protected getAllPanels(): Array<any>;
1221
- 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;
1222
1222
  protected getNewName(type: string, isPanel?: boolean): string;
1223
1223
  protected getNewQuestionName(): string;
1224
1224
  protected getNewPanelName(): string;
@@ -1361,7 +1361,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
1361
1361
  protected canDeleteItem(object: any, item: Base, allowDelete: boolean): boolean;
1362
1362
  private getErrorOnPropertyChanging;
1363
1363
  protected generateUniqueName(el: Base, newName: string): string;
1364
- protected isNameUnique(el: Base, newName: string): boolean;
1364
+ protected isNameUnique(el: Base, newName: string, includeNewItems?: boolean): boolean;
1365
1365
  private isNameUniqueInArray;
1366
1366
  protected doPropertyGridChanged(): void;
1367
1367
  get alwaySaveTextInPropertyEditors(): boolean;
@@ -1439,7 +1439,8 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
1439
1439
  showTabs: any;
1440
1440
  showToolbar: any;
1441
1441
  allowCollapseSidebar: any;
1442
- isMobileView: any;
1442
+ isMobileView: boolean;
1443
+ isTouch: any;
1443
1444
  /**
1444
1445
  * Specifies Toolbox location.
1445
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;
@@ -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
  }