survey-creator-core 1.12.6 → 1.12.7

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 (130) hide show
  1. package/fonts.fontless.css +1 -1
  2. package/fonts.fontless.min.css +1 -1
  3. package/i18n/arabic.js +1 -1
  4. package/i18n/arabic.min.js.LICENSE.txt +1 -1
  5. package/i18n/bulgarian.js +1 -1
  6. package/i18n/bulgarian.min.js.LICENSE.txt +1 -1
  7. package/i18n/croatian.js +1 -1
  8. package/i18n/croatian.min.js.LICENSE.txt +1 -1
  9. package/i18n/czech.js +1 -1
  10. package/i18n/czech.min.js.LICENSE.txt +1 -1
  11. package/i18n/danish.js +1 -1
  12. package/i18n/danish.min.js.LICENSE.txt +1 -1
  13. package/i18n/dutch.js +1 -1
  14. package/i18n/dutch.min.js.LICENSE.txt +1 -1
  15. package/i18n/english.js +16 -2
  16. package/i18n/english.js.map +1 -1
  17. package/i18n/english.min.js +1 -1
  18. package/i18n/english.min.js.LICENSE.txt +1 -1
  19. package/i18n/finnish.js +1 -1
  20. package/i18n/finnish.min.js.LICENSE.txt +1 -1
  21. package/i18n/french.js +1 -1
  22. package/i18n/french.min.js.LICENSE.txt +1 -1
  23. package/i18n/german.js +1 -1
  24. package/i18n/german.min.js.LICENSE.txt +1 -1
  25. package/i18n/hebrew.js +1 -1
  26. package/i18n/hebrew.min.js.LICENSE.txt +1 -1
  27. package/i18n/hungarian.js +1 -1
  28. package/i18n/hungarian.min.js.LICENSE.txt +1 -1
  29. package/i18n/index.js +1 -1
  30. package/i18n/index.min.js.LICENSE.txt +1 -1
  31. package/i18n/indonesian.js +1 -1
  32. package/i18n/indonesian.min.js.LICENSE.txt +1 -1
  33. package/i18n/italian.js +1 -1
  34. package/i18n/italian.min.js.LICENSE.txt +1 -1
  35. package/i18n/japanese.js +1 -1
  36. package/i18n/japanese.min.js.LICENSE.txt +1 -1
  37. package/i18n/korean.js +1 -1
  38. package/i18n/korean.min.js.LICENSE.txt +1 -1
  39. package/i18n/malay.js +1 -1
  40. package/i18n/malay.min.js.LICENSE.txt +1 -1
  41. package/i18n/mongolian.js +1 -1
  42. package/i18n/mongolian.min.js.LICENSE.txt +1 -1
  43. package/i18n/norwegian.js +1 -1
  44. package/i18n/norwegian.min.js.LICENSE.txt +1 -1
  45. package/i18n/persian.js +1 -1
  46. package/i18n/persian.min.js.LICENSE.txt +1 -1
  47. package/i18n/polish.js +1 -1
  48. package/i18n/polish.min.js.LICENSE.txt +1 -1
  49. package/i18n/portuguese.js +1 -1
  50. package/i18n/portuguese.min.js.LICENSE.txt +1 -1
  51. package/i18n/romanian.js +1 -1
  52. package/i18n/romanian.min.js.LICENSE.txt +1 -1
  53. package/i18n/russian.js +1 -1
  54. package/i18n/russian.min.js.LICENSE.txt +1 -1
  55. package/i18n/simplified-chinese.js +1 -1
  56. package/i18n/simplified-chinese.min.js.LICENSE.txt +1 -1
  57. package/i18n/slovak.js +1 -1
  58. package/i18n/slovak.min.js.LICENSE.txt +1 -1
  59. package/i18n/spanish.js +1 -1
  60. package/i18n/spanish.min.js.LICENSE.txt +1 -1
  61. package/i18n/swedish.js +1 -1
  62. package/i18n/swedish.min.js.LICENSE.txt +1 -1
  63. package/i18n/tajik.js +1 -1
  64. package/i18n/tajik.min.js.LICENSE.txt +1 -1
  65. package/i18n/thai.js +1 -1
  66. package/i18n/thai.min.js.LICENSE.txt +1 -1
  67. package/i18n/traditional-chinese.js +1 -1
  68. package/i18n/traditional-chinese.min.js.LICENSE.txt +1 -1
  69. package/i18n/turkish.js +1 -1
  70. package/i18n/turkish.min.js.LICENSE.txt +1 -1
  71. package/package.json +2 -2
  72. package/survey-creator-core.css +523 -401
  73. package/survey-creator-core.fontless.css +522 -400
  74. package/survey-creator-core.fontless.css.map +1 -1
  75. package/survey-creator-core.fontless.min.css +23 -22
  76. package/survey-creator-core.i18n.js +1 -1
  77. package/survey-creator-core.i18n.min.js.LICENSE.txt +1 -1
  78. package/survey-creator-core.js +724 -101
  79. package/survey-creator-core.js.map +1 -1
  80. package/survey-creator-core.min.css +24 -23
  81. package/survey-creator-core.min.js +1 -1
  82. package/survey-creator-core.min.js.LICENSE.txt +1 -1
  83. package/themes/default-contrast.js +827 -0
  84. package/themes/default-contrast.js.map +1 -0
  85. package/themes/default-contrast.min.js +2 -0
  86. package/themes/default-contrast.min.js.LICENSE.txt +6 -0
  87. package/themes/default-dark.js +827 -0
  88. package/themes/default-dark.js.map +1 -0
  89. package/themes/default-dark.min.js +2 -0
  90. package/themes/default-dark.min.js.LICENSE.txt +6 -0
  91. package/themes/default-light.js +827 -0
  92. package/themes/default-light.js.map +1 -0
  93. package/themes/default-light.min.js +2 -0
  94. package/themes/default-light.min.js.LICENSE.txt +6 -0
  95. package/themes/entries/helpers.d.ts +5 -0
  96. package/themes/index.js +1018 -0
  97. package/themes/index.js.map +1 -0
  98. package/themes/index.min.js +2 -0
  99. package/themes/index.min.js.LICENSE.txt +6 -0
  100. package/themes/themes/default-contrast.d.ts +119 -0
  101. package/themes/themes/default-dark.d.ts +119 -0
  102. package/themes/themes/default-light.d.ts +119 -0
  103. package/themes/themes/default.d.ts +1215 -0
  104. package/themes/themes/index.d.ts +177 -0
  105. package/themes/themes/utils.d.ts +4 -0
  106. package/typings/components/action-container-view-model.d.ts +2 -1
  107. package/typings/components/page.d.ts +1 -2
  108. package/typings/components/side-bar/side-bar-header-model.d.ts +1 -1
  109. package/typings/components/side-bar/side-bar-model.d.ts +1 -0
  110. package/typings/components/side-bar/side-bar-page-model.d.ts +1 -0
  111. package/typings/components/tabs/designer-plugin.d.ts +8 -0
  112. package/typings/components/tabs/theme-plugin.d.ts +1 -1
  113. package/typings/components/tabs/themes.d.ts +2 -1
  114. package/typings/creator-base.d.ts +8 -1
  115. package/typings/creator-options.d.ts +1 -0
  116. package/typings/creator-theme/creator-theme-model-definition.d.ts +5 -0
  117. package/typings/creator-theme/creator-theme-model.d.ts +43 -0
  118. package/typings/creator-theme/creator-themes.d.ts +10 -0
  119. package/typings/editorLocalization.d.ts +14 -0
  120. package/typings/entries/index.d.ts +2 -0
  121. package/typings/localization/english.d.ts +14 -0
  122. package/typings/property-grid/index.d.ts +3 -0
  123. package/typings/property-grid/property-grid-view-model.d.ts +1 -0
  124. package/typings/themes/default-contrast.d.ts +119 -0
  125. package/typings/themes/default-dark.d.ts +119 -0
  126. package/typings/themes/default-light.d.ts +119 -0
  127. package/typings/themes/default.d.ts +1215 -0
  128. package/typings/themes/index.d.ts +177 -0
  129. package/typings/themes/utils.d.ts +4 -0
  130. package/typings/toolbox.d.ts +10 -2
@@ -0,0 +1,177 @@
1
+ export declare const DefaultLight: {
2
+ themeName: string;
3
+ isLight: boolean;
4
+ cssVariables: {
5
+ "--sjs-layer-1-background-500": string;
6
+ "--sjs-layer-1-background-400": string;
7
+ "--sjs-layer-1-foreground-100": string;
8
+ "--sjs-layer-1-foreground-50": string;
9
+ "--sjs-layer-3-background-500": string;
10
+ "--sjs-layer-3-foreground-100": string;
11
+ "--sjs-layer-3-foreground-50": string;
12
+ "--sjs-layer-2-background-500": string;
13
+ "--sjs-layer-2-background-400": string;
14
+ "--sjs-special-haze": string;
15
+ "--sjs-border-25": string;
16
+ "--sjs-border-10": string;
17
+ "--sjs-primary-background-500": string;
18
+ "--sjs-primary-background-10": string;
19
+ "--sjs-primary-background-400": string;
20
+ "--sjs-primary-foreground-100": string;
21
+ "--sjs-primary-foreground-25": string;
22
+ "--sjs-secondary-background-500": string;
23
+ "--sjs-secondary-background-25": string;
24
+ "--sjs-secondary-background-10": string;
25
+ "--sjs-secondary-foreground-100": string;
26
+ "--sjs-secondary-forecolor-25": string;
27
+ "--sjs-semantic-red-background-500": string;
28
+ "--sjs-semantic-red-background-10": string;
29
+ "--sjs-semantic-red-foreground-100": string;
30
+ "--sjs-semantic-green-background-500": string;
31
+ "--sjs-semantic-green-background-10": string;
32
+ "--sjs-semantic-green-foreground-100": string;
33
+ "--sjs-semantic-blue-background-500": string;
34
+ "--sjs-semantic-blue-background-10": string;
35
+ "--sjs-semantic-blue-foreground-100": string;
36
+ "--sjs-semantic-yellow-background-500": string;
37
+ "--sjs-semantic-yellow-background-10": string;
38
+ "--sjs-semantic-yellow-foreground-100": string;
39
+ "--sjs-semantic-white-background-500": string;
40
+ "--sjs-code-gray-700": string;
41
+ "--sjs-code-blue-500": string;
42
+ "--sjs-code-gray-300": string;
43
+ "--sjs-code-green-500": string;
44
+ "--sjs-code-red-500": string;
45
+ "--sjs-code-purple-500": string;
46
+ "--sjs-code-yellow-500": string;
47
+ "--sjs-code-gray-500": string;
48
+ "--sjs-special-background": string;
49
+ "--sjs-layer-1-foreground-75": string;
50
+ "--sjs-layer-3-background-400": string;
51
+ "--sjs-special-glow": string;
52
+ "--sjs-special-shadow": string;
53
+ "--sjs-layer-3-foreground-75": string;
54
+ "--sjs-layer-2-foreground-100": string;
55
+ "--sjs-layer-2-foreground-75": string;
56
+ "--sjs-layer-2-foreground-50": string;
57
+ "--sjs-border-25-overlay": string;
58
+ };
59
+ };
60
+ export declare const DefaultDark: {
61
+ themeName: string;
62
+ isLight: boolean;
63
+ cssVariables: {
64
+ "--sjs-layer-1-background-500": string;
65
+ "--sjs-layer-1-background-400": string;
66
+ "--sjs-layer-1-foreground-100": string;
67
+ "--sjs-layer-1-foreground-50": string;
68
+ "--sjs-layer-3-background-500": string;
69
+ "--sjs-layer-3-foreground-100": string;
70
+ "--sjs-layer-3-foreground-50": string;
71
+ "--sjs-layer-2-background-500": string;
72
+ "--sjs-layer-2-background-400": string;
73
+ "--sjs-special-haze": string;
74
+ "--sjs-border-25": string;
75
+ "--sjs-border-10": string;
76
+ "--sjs-primary-background-500": string;
77
+ "--sjs-primary-background-10": string;
78
+ "--sjs-primary-background-400": string;
79
+ "--sjs-primary-foreground-100": string;
80
+ "--sjs-primary-foreground-25": string;
81
+ "--sjs-secondary-background-500": string;
82
+ "--sjs-secondary-background-25": string;
83
+ "--sjs-secondary-background-10": string;
84
+ "--sjs-secondary-foreground-100": string;
85
+ "--sjs-secondary-forecolor-25": string;
86
+ "--sjs-semantic-red-background-500": string;
87
+ "--sjs-semantic-red-background-10": string;
88
+ "--sjs-semantic-red-foreground-100": string;
89
+ "--sjs-semantic-green-background-500": string;
90
+ "--sjs-semantic-green-background-10": string;
91
+ "--sjs-semantic-green-foreground-100": string;
92
+ "--sjs-semantic-blue-background-500": string;
93
+ "--sjs-semantic-blue-background-10": string;
94
+ "--sjs-semantic-blue-foreground-100": string;
95
+ "--sjs-semantic-yellow-background-500": string;
96
+ "--sjs-semantic-yellow-background-10": string;
97
+ "--sjs-semantic-yellow-foreground-100": string;
98
+ "--sjs-semantic-white-background-500": string;
99
+ "--sjs-code-gray-700": string;
100
+ "--sjs-code-blue-500": string;
101
+ "--sjs-code-gray-300": string;
102
+ "--sjs-code-green-500": string;
103
+ "--sjs-code-red-500": string;
104
+ "--sjs-code-purple-500": string;
105
+ "--sjs-code-yellow-500": string;
106
+ "--sjs-code-gray-500": string;
107
+ "--sjs-special-background": string;
108
+ "--sjs-layer-1-foreground-75": string;
109
+ "--sjs-layer-3-background-400": string;
110
+ "--sjs-special-glow": string;
111
+ "--sjs-special-shadow": string;
112
+ "--sjs-layer-3-foreground-75": string;
113
+ "--sjs-layer-2-foreground-100": string;
114
+ "--sjs-layer-2-foreground-75": string;
115
+ "--sjs-layer-2-foreground-50": string;
116
+ "--sjs-border-25-overlay": string;
117
+ };
118
+ };
119
+ export declare const DefaultContrast: {
120
+ themeName: string;
121
+ isLight: boolean;
122
+ cssVariables: {
123
+ "--sjs-layer-1-background-500": string;
124
+ "--sjs-layer-1-background-400": string;
125
+ "--sjs-layer-1-foreground-100": string;
126
+ "--sjs-layer-1-foreground-50": string;
127
+ "--sjs-layer-3-background-500": string;
128
+ "--sjs-layer-3-foreground-100": string;
129
+ "--sjs-layer-3-foreground-50": string;
130
+ "--sjs-layer-2-background-500": string;
131
+ "--sjs-layer-2-background-400": string;
132
+ "--sjs-special-haze": string;
133
+ "--sjs-border-25": string;
134
+ "--sjs-border-10": string;
135
+ "--sjs-primary-background-500": string;
136
+ "--sjs-primary-background-10": string;
137
+ "--sjs-primary-background-400": string;
138
+ "--sjs-primary-foreground-100": string;
139
+ "--sjs-primary-foreground-25": string;
140
+ "--sjs-secondary-background-500": string;
141
+ "--sjs-secondary-background-25": string;
142
+ "--sjs-secondary-background-10": string;
143
+ "--sjs-secondary-foreground-100": string;
144
+ "--sjs-secondary-forecolor-25": string;
145
+ "--sjs-semantic-red-background-500": string;
146
+ "--sjs-semantic-red-background-10": string;
147
+ "--sjs-semantic-red-foreground-100": string;
148
+ "--sjs-semantic-green-background-500": string;
149
+ "--sjs-semantic-green-background-10": string;
150
+ "--sjs-semantic-green-foreground-100": string;
151
+ "--sjs-semantic-blue-background-500": string;
152
+ "--sjs-semantic-blue-background-10": string;
153
+ "--sjs-semantic-blue-foreground-100": string;
154
+ "--sjs-semantic-yellow-background-500": string;
155
+ "--sjs-semantic-yellow-background-10": string;
156
+ "--sjs-semantic-yellow-foreground-100": string;
157
+ "--sjs-semantic-white-background-500": string;
158
+ "--sjs-code-gray-700": string;
159
+ "--sjs-code-blue-500": string;
160
+ "--sjs-code-gray-300": string;
161
+ "--sjs-code-green-500": string;
162
+ "--sjs-code-red-500": string;
163
+ "--sjs-code-purple-500": string;
164
+ "--sjs-code-yellow-500": string;
165
+ "--sjs-code-gray-500": string;
166
+ "--sjs-special-background": string;
167
+ "--sjs-layer-1-foreground-75": string;
168
+ "--sjs-layer-3-background-400": string;
169
+ "--sjs-special-glow": string;
170
+ "--sjs-special-shadow": string;
171
+ "--sjs-layer-3-foreground-75": string;
172
+ "--sjs-layer-2-foreground-100": string;
173
+ "--sjs-layer-2-foreground-75": string;
174
+ "--sjs-layer-2-foreground-50": string;
175
+ "--sjs-border-25-overlay": string;
176
+ };
177
+ };
@@ -0,0 +1,4 @@
1
+ export declare function trimEmptyFields(object: {
2
+ [index: string]: string;
3
+ }): void;
4
+ export declare function assign(...inputs: Array<any>): void;
@@ -57,7 +57,8 @@ export declare class SurveyElementAdornerBase<T extends SurveyElement = SurveyEl
57
57
  dispose(): void;
58
58
  protected onElementSelectedChanged(isSelected: boolean): void;
59
59
  protected getExpandCollapseAction(): IAction;
60
- protected updateActionsContainer(surveyElement: SurveyElement, clear?: boolean): void;
60
+ protected cleanActionsContainer(): void;
61
+ protected updateActionsContainer(surveyElement: SurveyElement): void;
61
62
  protected updateActionsProperties(): void;
62
63
  protected getAllowDragging(options: any): boolean;
63
64
  protected getAllowExpandCollapse(options: any): boolean;
@@ -16,14 +16,13 @@ export declare class PageAdorner extends SurveyElementAdornerBase<PageModel> {
16
16
  private updateShowPlaceholder;
17
17
  constructor(creator: SurveyCreatorModel, page: PageModel);
18
18
  protected updateActionVisibility(id: string, isVisible: boolean): void;
19
- protected updateActionsContainer(surveyElement: SurveyElement, clear?: boolean): void;
19
+ protected updateActionsContainer(surveyElement: SurveyElement): void;
20
20
  protected get dragInsideCollapsedContainer(): boolean;
21
21
  protected getAllowExpandCollapse(options: any): boolean;
22
22
  protected attachElement(surveyElement: PageModel): void;
23
23
  protected detachElement(surveyElement: PageModel): void;
24
24
  protected onElementSelectedChanged(isSelected: boolean): void;
25
25
  private patchPageForDragDrop;
26
- dispose(): void;
27
26
  protected calcIsGhostPage(page: PageModel): boolean;
28
27
  get isGhost(): boolean;
29
28
  get placeholderText(): string;
@@ -6,6 +6,6 @@ export declare class SidebarHeaderModel extends Base {
6
6
  componentData: any;
7
7
  componentName: string;
8
8
  get component(): string;
9
- get componentModel(): string;
9
+ get componentModel(): any;
10
10
  reset(): void;
11
11
  }
@@ -50,4 +50,5 @@ export declare class SidebarModel extends Base {
50
50
  dispose(): void;
51
51
  initResizeManager(container: HTMLDivElement): void;
52
52
  resetResizeManager(): void;
53
+ get toolbar(): import("survey-core").AdaptiveActionContainer<Action>;
53
54
  }
@@ -7,5 +7,6 @@ export declare class SidebarPageModel extends Base {
7
7
  visible: boolean;
8
8
  componentData: any;
9
9
  componentName: string;
10
+ deactivateCallback: () => void;
10
11
  constructor(id: string, sidePanel: SidebarModel, componentName?: string, componentData?: any);
11
12
  }
@@ -13,6 +13,9 @@ export declare class TabDesignerPlugin implements ICreatorPlugin {
13
13
  private propertyGridTab;
14
14
  private toolboxTab;
15
15
  private propertyGridPlaceholderPage;
16
+ private themeModel;
17
+ private themePropertyGrid;
18
+ private themePropertyGridTab;
16
19
  private surveySettingsAction;
17
20
  private saveSurveyAction;
18
21
  previewAction: Action;
@@ -27,8 +30,13 @@ export declare class TabDesignerPlugin implements ICreatorPlugin {
27
30
  private updateHeaderComponent;
28
31
  private updateActivePage;
29
32
  private setPropertyGridIsActivePage;
33
+ private setActivePage;
30
34
  get showOneCategoryInPropertyGrid(): boolean;
31
35
  set showOneCategoryInPropertyGrid(newValue: boolean);
36
+ private syncTheme;
37
+ private updatePredefinedColorChoices;
38
+ updateThemeSettings(): void;
39
+ private createCreatorThemeSettingsPage;
32
40
  constructor(creator: SurveyCreatorModel);
33
41
  private updateTabControlActions;
34
42
  activate(): void;
@@ -59,7 +59,6 @@ export declare class ThemeTabPlugin implements ICreatorPlugin {
59
59
  private addSubGroupTitle;
60
60
  private updateSubGroups;
61
61
  private updatePropertyGridEditorsAvailability;
62
- private getPredefinedColorsItemValues;
63
62
  private updatePropertyGridColorEditorWithPredefinedColors;
64
63
  private _setPGEditorPropertyValue;
65
64
  private setCoverPropertiesFromSurvey;
@@ -69,6 +68,7 @@ export declare class ThemeTabPlugin implements ICreatorPlugin {
69
68
  private updateTabControl;
70
69
  constructor(creator: SurveyCreatorModel);
71
70
  activate(): void;
71
+ private expandCategoryIfNeeded;
72
72
  private updateTabControlActions;
73
73
  update(): void;
74
74
  private updateAllowModifyTheme;
@@ -1,4 +1,4 @@
1
- import { ITheme } from "survey-core";
1
+ import { ItemValue, ITheme } from "survey-core";
2
2
  export declare const Themes: {
3
3
  [index: string]: ITheme;
4
4
  };
@@ -23,3 +23,4 @@ export declare const PredefinedColors: {
23
23
  green: string;
24
24
  };
25
25
  };
26
+ export declare function getPredefinedColorsItemValues(colorPalette?: string): ItemValue[];
@@ -16,6 +16,7 @@ import { DragDropSurveyElements } from "./survey-elements";
16
16
  import { PageAdorner } from "./components/page";
17
17
  import { ElementDeletingEvent, PropertyGetReadOnlyEvent, ElementGetDisplayNameEvent, HtmlToMarkdownEvent, ElementAllowOperationsEvent, ElementGetActionsEvent, PropertyAddingEvent, PropertyGridSurveyCreatedEvent, PropertyEditorCreatedEvent, PropertyEditorUpdateTitleActionsEvent, PropertyGridShowPopupEvent, CollectionItemAllowOperationsEvent, CollectionItemAddedEvent, FastEntryItemsEvent as FastEntryFinishedEvent, MatrixColumnAddedEvent, ConfigureTablePropertyEditorEvent, PropertyDisplayCustomErrorEvent, PropertyValueChangingEvent, PropertyValueChangedEvent, ConditionGetQuestionListEvent, GetConditionOperatorEvent, LogicRuleGetDisplayTextEvent, ModifiedEvent, QuestionAddedEvent, PanelAddedEvent, PageAddedEvent, QuestionConvertingEvent, PageGetFooterActionsEvent, SurveyInstanceCreatedEvent, DesignerSurveyCreatedEvent, PreviewSurveyCreatedEvent, NotifyEvent, ElementFocusingEvent, ElementFocusedEvent, OpenFileChooserEvent, UploadFileEvent, TranslationStringVisibilityEvent, TranslationImportItemEvent, TranslationImportedEvent, TranslationExportItemEvent, MachineTranslateEvent, TranslationItemChangingEvent, DragDropAllowEvent, CreateCustomMessagePanelEvent, ActiveTabChangingEvent, ActiveTabChangedEvent, BeforeUndoEvent, BeforeRedoEvent, PageAddingEvent, DragStartEndEvent } from "./creator-events-api";
18
18
  import { ExpandCollapseManager } from "./expand-collapse-manager";
19
+ import { ICreatorTheme } from "./creator-theme/creator-themes";
19
20
  import { TabbedMenuContainer, TabbedMenuItem } from "./tabbed-menu";
20
21
  export interface IKeyboardShortcut {
21
22
  name?: string;
@@ -87,6 +88,7 @@ export declare class SurveyCreatorModel extends Base implements ISurveyCreatorOp
87
88
  * @see saveThemeFunc
88
89
  */
89
90
  showThemeTab: boolean;
91
+ showCreatorThemeSettings: boolean;
90
92
  /**
91
93
  * Specifies whether to display the Translation tab.
92
94
  *
@@ -1223,7 +1225,6 @@ export declare class SurveyCreatorModel extends Base implements ISurveyCreatorOp
1223
1225
  private propertyGridDefinition;
1224
1226
  getPropertyGridDefinition(): any;
1225
1227
  setPropertyGridDefinition(val: any): void;
1226
- private getPropertyGridExpandedCategory;
1227
1228
  expandCategoryIfNeeded(): void;
1228
1229
  private selectionChanged;
1229
1230
  private getCurrentPageByElement;
@@ -1419,6 +1420,12 @@ export declare class SurveyCreatorModel extends Base implements ISurveyCreatorOp
1419
1420
  dispose(): void;
1420
1421
  enableLinkFileEditor: boolean;
1421
1422
  getRootCss(): string;
1423
+ themeVariables: {
1424
+ [index: string]: string;
1425
+ };
1426
+ creatorTheme: ICreatorTheme;
1427
+ applyTheme(theme: ICreatorTheme): void;
1428
+ syncTheme(theme: ICreatorTheme): void;
1422
1429
  allowDragPages: boolean;
1423
1430
  collapsePagesOnDrag: boolean;
1424
1431
  }
@@ -52,6 +52,7 @@ export interface ICreatorOptions {
52
52
  * [Theme Editor](https://surveyjs.io/survey-creator/documentation/theme-editor (linkStyle))
53
53
  */
54
54
  showThemeTab?: boolean;
55
+ showCreatorThemeSettings?: boolean;
55
56
  /**
56
57
  * Specifies whether to call the [`saveSurveyFunc`](https://surveyjs.io/Documentation/Survey-Creator?id=surveycreator#saveSurveyFunc) and [`saveThemeFunc`](https://surveyjs.io/survey-creator/documentation/api-reference/survey-creator#saveThemeFunc) functions each time survey or theme settings are changed.
57
58
  *
@@ -0,0 +1,5 @@
1
+ import { ISurveyPropertiesDefinition, ISurveyPropertyGridDefinition } from "../question-editor/definition";
2
+ export declare const creatorThemeModelPropertyGridDefinition: ISurveyPropertyGridDefinition;
3
+ export declare class creatorThemeModelEditorDefinition {
4
+ static definition: ISurveyPropertiesDefinition;
5
+ }
@@ -0,0 +1,43 @@
1
+ import { Base, EventBase, ILoadFromJSONOptions, ISaveToJSONOptions } from "survey-core";
2
+ import { ICreatorTheme } from "./creator-themes";
3
+ export declare class CreatorThemeModel extends Base implements ICreatorTheme {
4
+ static defautlThemeName: string;
5
+ initialCssVariables: {
6
+ [index: string]: string;
7
+ };
8
+ themeCssVariablesChanges?: {
9
+ [index: string]: string;
10
+ };
11
+ unitDictionary: {
12
+ [index: string]: number;
13
+ };
14
+ themeName: string;
15
+ scale: number;
16
+ fontScale: number;
17
+ surfaceScale: number;
18
+ isLight: boolean;
19
+ onThemeSelected: EventBase<CreatorThemeModel, {
20
+ theme: ICreatorTheme;
21
+ }>;
22
+ onThemePropertyChanged: EventBase<CreatorThemeModel, {
23
+ name: string;
24
+ value: any;
25
+ }>;
26
+ constructor();
27
+ getType(): string;
28
+ get cssVariables(): {
29
+ [index: string]: string;
30
+ };
31
+ private setThemeCssVariablesChanges;
32
+ private onThemePropertyValueChangedCallback;
33
+ private scalePropertiesChanged;
34
+ private scalingProperties;
35
+ private scaleValue;
36
+ private scaleCssVariables;
37
+ private getScaleFactor;
38
+ private updateScaleProperties;
39
+ private blockThemeChangedNotifications;
40
+ loadTheme(theme?: ICreatorTheme): void;
41
+ fromJSON(json: ICreatorTheme, options?: ILoadFromJSONOptions): void;
42
+ toJSON(options?: ISaveToJSONOptions): ICreatorTheme;
43
+ }
@@ -0,0 +1,10 @@
1
+ export interface ICreatorTheme {
2
+ themeName?: string;
3
+ cssVariables?: {
4
+ [index: string]: string;
5
+ };
6
+ }
7
+ export declare const PredefinedCreatorThemes: string[];
8
+ export declare const CreatorThemes: {
9
+ [index: string]: ICreatorTheme;
10
+ };
@@ -112,6 +112,7 @@ export declare var defaultStrings: {
112
112
  surveySettingsTooltip: string;
113
113
  themeSettings: string;
114
114
  themeSettingsTooltip: string;
115
+ creatorSettingTitle: string;
115
116
  showPanel: string;
116
117
  hidePanel: string;
117
118
  prevSelected: string;
@@ -1730,4 +1731,17 @@ export declare var defaultStrings: {
1730
1731
  green: string;
1731
1732
  };
1732
1733
  };
1734
+ creatortheme: {
1735
+ "--sjs-special-background": string;
1736
+ "--sjs-primary-background-500": string;
1737
+ surfaceScale: string;
1738
+ userInterfaceBaseUnit: string;
1739
+ fontScale: string;
1740
+ names: {
1741
+ sc2020: string;
1742
+ "default-light": string;
1743
+ "default-dark": string;
1744
+ "default-contrast": string;
1745
+ };
1746
+ };
1733
1747
  };
@@ -85,6 +85,8 @@ export * from "../utils/resizer";
85
85
  export * from "../plugins/undo-redo";
86
86
  export * from "../plugins/undo-redo/undo-redo-manager";
87
87
  export * from "../pages-controller";
88
+ export * from "../creator-theme/creator-theme-model-definition";
89
+ export * from "../creator-theme/creator-theme-model";
88
90
  export * from "../presets/presets-base";
89
91
  export * from "../presets/presets";
90
92
  export * from "../presets/presets-properties";
@@ -64,6 +64,7 @@ export declare var enStrings: {
64
64
  surveySettingsTooltip: string;
65
65
  themeSettings: string;
66
66
  themeSettingsTooltip: string;
67
+ creatorSettingTitle: string;
67
68
  showPanel: string;
68
69
  hidePanel: string;
69
70
  prevSelected: string;
@@ -1682,4 +1683,17 @@ export declare var enStrings: {
1682
1683
  green: string;
1683
1684
  };
1684
1685
  };
1686
+ creatortheme: {
1687
+ "--sjs-special-background": string;
1688
+ "--sjs-primary-background-500": string;
1689
+ surfaceScale: string;
1690
+ userInterfaceBaseUnit: string;
1691
+ fontScale: string;
1692
+ names: {
1693
+ sc2020: string;
1694
+ "default-light": string;
1695
+ "default-dark": string;
1696
+ "default-contrast": string;
1697
+ };
1698
+ };
1685
1699
  };
@@ -139,6 +139,8 @@ export declare class PropertyGridModel {
139
139
  expandCategory(name: string): void;
140
140
  collapseAllCategories(): void;
141
141
  expandAllCategories(): void;
142
+ expandCategoryIfNeeded(): void;
143
+ private getPropertyGridExpandedCategory;
142
144
  private collapseOtherPanels;
143
145
  private collapseAllCategoriesExcept;
144
146
  surveyInstanceCreatedArea: string;
@@ -219,6 +221,7 @@ export declare class PropertyGridLinkEditor extends PropertyGridEditor {
219
221
  export declare class PropertyGridEditorColor extends PropertyGridEditor {
220
222
  fit(prop: JsonObjectProperty): boolean;
221
223
  getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
224
+ onCreated(obj: Base, question: Question, prop: JsonObjectProperty): void;
222
225
  }
223
226
  export declare class PropertyGridEditorColorWithAlpha extends PropertyGridEditor {
224
227
  fit(prop: JsonObjectProperty): boolean;
@@ -18,6 +18,7 @@ export declare class PropertyGridViewModel extends Base {
18
18
  searchEnabled: boolean;
19
19
  showPlaceholder: boolean;
20
20
  constructor(propertyGridModel: PropertyGridModel, creator: SurveyCreatorModel);
21
+ get rootCss(): string;
21
22
  protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
22
23
  private get selectionController();
23
24
  private onSurveyChanged;
@@ -0,0 +1,119 @@
1
+ declare const Theme: {
2
+ themeName: string;
3
+ isLight: boolean;
4
+ cssVariables: {
5
+ "--sjs-layer-1-background-500": string;
6
+ "--sjs-layer-1-background-400": string;
7
+ "--sjs-layer-1-foreground-100": string;
8
+ "--sjs-layer-1-foreground-50": string;
9
+ "--sjs-layer-3-background-500": string;
10
+ "--sjs-layer-3-foreground-100": string;
11
+ "--sjs-layer-3-foreground-50": string;
12
+ "--sjs-layer-2-background-500": string;
13
+ "--sjs-layer-2-background-400": string;
14
+ "--sjs-special-haze": string;
15
+ "--sjs-border-25": string;
16
+ "--sjs-border-10": string;
17
+ "--sjs-primary-background-500": string;
18
+ "--sjs-primary-background-10": string;
19
+ "--sjs-primary-background-400": string;
20
+ "--sjs-primary-foreground-100": string;
21
+ "--sjs-primary-foreground-25": string;
22
+ "--sjs-secondary-background-500": string;
23
+ "--sjs-secondary-background-25": string;
24
+ "--sjs-secondary-background-10": string;
25
+ "--sjs-secondary-foreground-100": string;
26
+ "--sjs-secondary-forecolor-25": string;
27
+ "--sjs-semantic-red-background-500": string;
28
+ "--sjs-semantic-red-background-10": string;
29
+ "--sjs-semantic-red-foreground-100": string;
30
+ "--sjs-semantic-green-background-500": string;
31
+ "--sjs-semantic-green-background-10": string;
32
+ "--sjs-semantic-green-foreground-100": string;
33
+ "--sjs-semantic-blue-background-500": string;
34
+ "--sjs-semantic-blue-background-10": string;
35
+ "--sjs-semantic-blue-foreground-100": string;
36
+ "--sjs-semantic-yellow-background-500": string;
37
+ "--sjs-semantic-yellow-background-10": string;
38
+ "--sjs-semantic-yellow-foreground-100": string;
39
+ "--sjs-semantic-white-background-500": string;
40
+ "--sjs-code-gray-700": string;
41
+ "--sjs-code-blue-500": string;
42
+ "--sjs-code-gray-300": string;
43
+ "--sjs-code-green-500": string;
44
+ "--sjs-code-red-500": string;
45
+ "--sjs-code-purple-500": string;
46
+ "--sjs-code-yellow-500": string;
47
+ "--sjs-code-gray-500": string;
48
+ "--sjs-special-background": string;
49
+ "--sjs-layer-1-foreground-75": string;
50
+ "--sjs-layer-3-background-400": string;
51
+ "--sjs-special-glow": string;
52
+ "--sjs-special-shadow": string;
53
+ "--sjs-layer-3-foreground-75": string;
54
+ "--sjs-layer-2-foreground-100": string;
55
+ "--sjs-layer-2-foreground-75": string;
56
+ "--sjs-layer-2-foreground-50": string;
57
+ "--sjs-border-25-overlay": string;
58
+ };
59
+ };
60
+ export default Theme;
61
+ export declare const DefaultContrast: {
62
+ themeName: string;
63
+ isLight: boolean;
64
+ cssVariables: {
65
+ "--sjs-layer-1-background-500": string;
66
+ "--sjs-layer-1-background-400": string;
67
+ "--sjs-layer-1-foreground-100": string;
68
+ "--sjs-layer-1-foreground-50": string;
69
+ "--sjs-layer-3-background-500": string;
70
+ "--sjs-layer-3-foreground-100": string;
71
+ "--sjs-layer-3-foreground-50": string;
72
+ "--sjs-layer-2-background-500": string;
73
+ "--sjs-layer-2-background-400": string;
74
+ "--sjs-special-haze": string;
75
+ "--sjs-border-25": string;
76
+ "--sjs-border-10": string;
77
+ "--sjs-primary-background-500": string;
78
+ "--sjs-primary-background-10": string;
79
+ "--sjs-primary-background-400": string;
80
+ "--sjs-primary-foreground-100": string;
81
+ "--sjs-primary-foreground-25": string;
82
+ "--sjs-secondary-background-500": string;
83
+ "--sjs-secondary-background-25": string;
84
+ "--sjs-secondary-background-10": string;
85
+ "--sjs-secondary-foreground-100": string;
86
+ "--sjs-secondary-forecolor-25": string;
87
+ "--sjs-semantic-red-background-500": string;
88
+ "--sjs-semantic-red-background-10": string;
89
+ "--sjs-semantic-red-foreground-100": string;
90
+ "--sjs-semantic-green-background-500": string;
91
+ "--sjs-semantic-green-background-10": string;
92
+ "--sjs-semantic-green-foreground-100": string;
93
+ "--sjs-semantic-blue-background-500": string;
94
+ "--sjs-semantic-blue-background-10": string;
95
+ "--sjs-semantic-blue-foreground-100": string;
96
+ "--sjs-semantic-yellow-background-500": string;
97
+ "--sjs-semantic-yellow-background-10": string;
98
+ "--sjs-semantic-yellow-foreground-100": string;
99
+ "--sjs-semantic-white-background-500": string;
100
+ "--sjs-code-gray-700": string;
101
+ "--sjs-code-blue-500": string;
102
+ "--sjs-code-gray-300": string;
103
+ "--sjs-code-green-500": string;
104
+ "--sjs-code-red-500": string;
105
+ "--sjs-code-purple-500": string;
106
+ "--sjs-code-yellow-500": string;
107
+ "--sjs-code-gray-500": string;
108
+ "--sjs-special-background": string;
109
+ "--sjs-layer-1-foreground-75": string;
110
+ "--sjs-layer-3-background-400": string;
111
+ "--sjs-special-glow": string;
112
+ "--sjs-special-shadow": string;
113
+ "--sjs-layer-3-foreground-75": string;
114
+ "--sjs-layer-2-foreground-100": string;
115
+ "--sjs-layer-2-foreground-75": string;
116
+ "--sjs-layer-2-foreground-50": string;
117
+ "--sjs-border-25-overlay": string;
118
+ };
119
+ };