survey-creator-core 1.9.108 → 1.9.110

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.
@@ -316,6 +316,7 @@ export declare var logicCss: {
316
316
  };
317
317
  list: {
318
318
  root: string;
319
+ itemBody: string;
319
320
  };
320
321
  embeddedsurvey: {
321
322
  mainRoot: string;
@@ -325,6 +326,7 @@ export declare var logicCss: {
325
326
  defaultSizeMode: string;
326
327
  smallSizeMode: string;
327
328
  item: string;
329
+ itemWithTitle: string;
328
330
  itemAsIcon: string;
329
331
  itemActive: string;
330
332
  itemPressed: string;
@@ -1,17 +1,21 @@
1
1
  import { SurveySimulatorModel } from "../simulator";
2
2
  import { Base, PageModel, SurveyModel, Action, IAction, ActionContainer, ITheme, EventBase } from "survey-core";
3
3
  import { CreatorBase } from "../../creator-base";
4
+ import { UndoRedoManager } from "../../plugins/undo-redo/undo-redo-manager";
4
5
  export declare class ThemeBuilder extends Base {
5
6
  private surveyProvider;
6
7
  private startThemeClasses;
7
8
  private json;
8
9
  pages: ActionContainer;
9
10
  testAgainAction: Action;
11
+ nextPageAction: Action;
12
+ undoRedoManager: UndoRedoManager;
10
13
  private themeEditorSurveyValue;
11
14
  private themeCssVariablesChanges;
12
15
  private colorCalculator;
13
16
  private blockChanges;
14
17
  private _availableThemes;
18
+ private prevQuestionValues;
15
19
  onSurveyCreatedCallback: (survey: SurveyModel) => any;
16
20
  get themeCssCustomizations(): {
17
21
  [index: string]: string;
@@ -25,6 +29,7 @@ export declare class ThemeBuilder extends Base {
25
29
  backgroundImage: any;
26
30
  backgroundImageFit: any;
27
31
  backgroundImageAttachment: any;
32
+ backgroundOpacity: any;
28
33
  themeName: any;
29
34
  themePalette: any;
30
35
  themeMode: any;
@@ -36,6 +41,9 @@ export declare class ThemeBuilder extends Base {
36
41
  get isPageToolbarVisible(): boolean;
37
42
  get themeEditorSurvey(): SurveyModel;
38
43
  get currentTheme(): ITheme;
44
+ get currentThemeCssVariables(): {
45
+ [index: string]: string;
46
+ };
39
47
  onThemeSelected: EventBase<ThemeBuilder, {
40
48
  theme: ITheme;
41
49
  }>;
@@ -68,6 +76,10 @@ export declare class ThemeBuilder extends Base {
68
76
  private setActivePageItem;
69
77
  private getPageItemByPage;
70
78
  private initializeColorCalculator;
79
+ private generalPropertiesChanged;
80
+ private cssVariablePropertiesChanged;
81
+ private updateDependentQuestionValues;
82
+ private setThemeCssVariablesChanges;
71
83
  protected createThemeEditorSurvey(): SurveyModel;
72
84
  findSuitableTheme(themeName: string): ITheme;
73
85
  private loadThemeIntoPropertyGrid;
@@ -8,6 +8,8 @@ export declare class ThemeTabPlugin implements ICreatorPlugin {
8
8
  private resetTheme;
9
9
  private importAction;
10
10
  private exportAction;
11
+ private undoAction;
12
+ private redoAction;
11
13
  private inputFileElement;
12
14
  private simulatorTheme;
13
15
  private sidebarTab;
@@ -21,6 +23,9 @@ export declare class ThemeTabPlugin implements ICreatorPlugin {
21
23
  exportToFile(fileName: string): void;
22
24
  importFromFile(file: File, callback?: (theme: ITheme) => void): void;
23
25
  createActions(): Array<Action>;
26
+ undo(): void;
27
+ redo(): void;
28
+ private updateUndeRedoActions;
24
29
  addFooterActions(): void;
25
30
  get availableThemes(): string[];
26
31
  set availableThemes(availebleThemes: string[]);
@@ -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.
@@ -669,6 +669,9 @@ export declare var defaultStrings: {
669
669
  pv: {
670
670
  true: string;
671
671
  false: string;
672
+ file: string;
673
+ camera: string;
674
+ "file-camera": string;
672
675
  inherit: string;
673
676
  show: string;
674
677
  hide: string;
@@ -639,6 +639,9 @@ export declare var enStrings: {
639
639
  pv: {
640
640
  true: string;
641
641
  false: string;
642
+ file: string;
643
+ camera: string;
644
+ "file-camera": string;
642
645
  inherit: string;
643
646
  show: string;
644
647
  hide: string;