survey-creator-core 1.9.88 → 1.9.90

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 (36) 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 +285 -74
  5. package/survey-creator-core.fontless.css +284 -73
  6. package/survey-creator-core.fontless.css.map +1 -1
  7. package/survey-creator-core.fontless.min.css +19 -15
  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 +2693 -261
  11. package/survey-creator-core.js.map +1 -1
  12. package/survey-creator-core.min.css +20 -16
  13. package/survey-creator-core.min.js +3 -3
  14. package/typings/components/header/logo-image.d.ts +1 -0
  15. package/typings/components/image-item-value.d.ts +1 -0
  16. package/typings/components/item-value.d.ts +1 -0
  17. package/typings/components/matrix-cell.d.ts +1 -1
  18. package/typings/components/page.d.ts +5 -2
  19. package/typings/components/question-image.d.ts +1 -0
  20. package/typings/components/question-rating.d.ts +1 -0
  21. package/typings/components/question.d.ts +1 -1
  22. package/typings/components/simulator.d.ts +1 -0
  23. package/typings/components/tabs/theme-custom-questions/boxshadow-settings.d.ts +2 -0
  24. package/typings/components/tabs/theme-custom-questions/color-settings.d.ts +5 -0
  25. package/typings/components/tabs/theme-plugin.d.ts +25 -0
  26. package/typings/components/tabs/theme.d.ts +92 -0
  27. package/typings/creator-base.d.ts +26 -1
  28. package/typings/creator-options.d.ts +1 -0
  29. package/typings/creator-settings.d.ts +4 -1
  30. package/typings/editorLocalization.d.ts +73 -0
  31. package/typings/entries/index.d.ts +4 -0
  32. package/typings/localization/english.d.ts +73 -0
  33. package/typings/property-grid/index.d.ts +7 -0
  34. package/typings/property-grid/matrices.d.ts +2 -0
  35. package/typings/survey-elements.d.ts +44 -0
  36. package/typings/utils/utils.d.ts +23 -1
@@ -12,4 +12,5 @@ export declare class LogoImageViewModel extends Base {
12
12
  chooseFile(model: LogoImageViewModel): void;
13
13
  remove(model: LogoImageViewModel): void;
14
14
  get chooseLogoPlaceholder(): string;
15
+ get acceptedTypes(): string;
15
16
  }
@@ -18,4 +18,5 @@ export declare class ImageItemValueWrapperViewModel extends ItemValueWrapperView
18
18
  onDragOver: (event: any) => void;
19
19
  onDrop: (event: any) => void;
20
20
  onDragLeave: (event: any) => void;
21
+ get acceptedTypes(): "" | "image/png, image/gif, image/jpeg, image/apng, image/avif, image/svg+xml, image/webp" | "video/*";
21
22
  }
@@ -24,6 +24,7 @@ export declare class ItemValueWrapperViewModel extends Base {
24
24
  startDragItemValue: (pointerDownEvent: PointerEvent, currentTarget: any) => void;
25
25
  private get dragDropHelper();
26
26
  dispose(): void;
27
+ private getGhostPosition;
27
28
  private handleDragDropGhostPositionChanged;
28
29
  get isDraggable(): boolean;
29
30
  isDraggableItem(item: ItemValue): boolean;
@@ -16,7 +16,7 @@ export declare class MatrixCellWrapperViewModel extends Base {
16
16
  constructor(creator: CreatorBase, templateData: any, question: Question, row: any, column: any);
17
17
  isSelected: boolean;
18
18
  private onSelectionChanged;
19
- editQuestion(model: MatrixCellWrapperViewModel): void;
19
+ editQuestion(model: MatrixCellWrapperViewModel, event: MouseEvent): void;
20
20
  get context(): any;
21
21
  selectContext(model: MatrixCellWrapperViewModel, event: MouseEvent): void;
22
22
  get isSupportCellEditor(): boolean;
@@ -1,4 +1,4 @@
1
- import { PageModel } from "survey-core";
1
+ import { ActionContainer, DragTypeOverMeEnum, PageModel } from "survey-core";
2
2
  import { CreatorBase } from "../creator-base";
3
3
  import { IPortableMouseEvent } from "../utils/events";
4
4
  import { SurveyElementAdornerBase } from "./action-container-view-model";
@@ -8,6 +8,7 @@ export declare class PageAdorner extends SurveyElementAdornerBase<PageModel> {
8
8
  onPageSelectedCallback: () => void;
9
9
  questionTypeSelectorModel: any;
10
10
  currentAddQuestionType: string;
11
+ dragTypeOverMe: DragTypeOverMeEnum;
11
12
  constructor(creator: CreatorBase, page: PageModel);
12
13
  protected attachElement(surveyElement: PageModel): void;
13
14
  protected onElementSelectedChanged(isSelected: boolean): void;
@@ -18,11 +19,13 @@ export declare class PageAdorner extends SurveyElementAdornerBase<PageModel> {
18
19
  protected getPage(): PageModel;
19
20
  get page(): PageModel;
20
21
  private addGhostPage;
21
- addNewQuestion(model: PageAdorner, event: IPortableMouseEvent): void;
22
+ addNewQuestion(model: PageAdorner, event: IPortableMouseEvent, type?: string): void;
22
23
  select(model: PageAdorner, event: IPortableMouseEvent): void;
23
24
  get css(): string;
24
25
  hover(event: MouseEvent, element: HTMLElement | any): void;
25
26
  hoverStopper(event: MouseEvent, element: HTMLElement | any): void;
26
27
  protected duplicate(): void;
27
28
  get addNewQuestionText(): string;
29
+ private _footerActionsBar;
30
+ get footerActionsBar(): ActionContainer;
28
31
  }
@@ -9,6 +9,7 @@ export declare class QuestionImageAdornerViewModel extends QuestionAdornerViewMo
9
9
  isUploading: any;
10
10
  isEmptyImageLink: any;
11
11
  chooseFile(model: QuestionImageAdornerViewModel): void;
12
+ get acceptedTypes(): string;
12
13
  imageLinkValueChangedHandler(): void;
13
14
  get isEmptyElement(): boolean;
14
15
  get question(): QuestionImageModel;
@@ -14,6 +14,7 @@ export declare class QuestionRatingAdornerViewModel extends Base {
14
14
  get enableAdd(): boolean;
15
15
  get addClassNames(): string;
16
16
  static allowRemoveForElement(element: QuestionRatingModel): boolean;
17
+ private canAddOrRemove;
17
18
  get allowRemove(): boolean;
18
19
  get enableRemove(): boolean;
19
20
  get removeClassNames(): string;
@@ -15,7 +15,7 @@ export declare class QuestionAdornerViewModel extends SurveyElementAdornerBase {
15
15
  rootCss(): "" | " svc-question__adorner--start-with-new-line";
16
16
  css(): string;
17
17
  get isDragMe(): boolean;
18
- dragTypeOverMe: DragTypeOverMeEnum;
18
+ get dragTypeOverMe(): DragTypeOverMeEnum;
19
19
  dispose(): void;
20
20
  get isDraggable(): boolean;
21
21
  hover(event: MouseEvent, element: HTMLElement | any): void;
@@ -9,6 +9,7 @@ export declare class SurveySimulatorModel extends Base {
9
9
  isRunning: boolean;
10
10
  simulatorEnabled: boolean;
11
11
  simulatorScaleEnabled: boolean;
12
+ themeVariables: any;
12
13
  private currZoomScale;
13
14
  get zoomScale(): number;
14
15
  activateZoom: () => void;
@@ -0,0 +1,2 @@
1
+ export declare function createBoxShadow(value: Array<any>): string;
2
+ export declare function parseBoxShadow(value: string): Array<Object>;
@@ -0,0 +1,5 @@
1
+ export declare function createColor(value: any): string;
2
+ export declare function parseColor(value: string): {
3
+ color: string;
4
+ opacity: number;
5
+ };
@@ -0,0 +1,25 @@
1
+ import { Action } from "survey-core";
2
+ import { CreatorBase, ICreatorPlugin } from "../../creator-base";
3
+ import { ThemeSurveyTabViewModel } from "./theme";
4
+ export declare class TabThemePlugin implements ICreatorPlugin {
5
+ private creator;
6
+ private deviceSelectorAction;
7
+ private orientationSelectorAction;
8
+ private invisibleToggleAction;
9
+ private testAgainAction;
10
+ private designerAction;
11
+ private prevPageAction;
12
+ private nextPageAction;
13
+ private simulatorTheme;
14
+ private sidebarTab;
15
+ model: ThemeSurveyTabViewModel;
16
+ private getSimulatorDevicesTitle;
17
+ private setDevice;
18
+ private updateActions;
19
+ constructor(creator: CreatorBase);
20
+ activate(): void;
21
+ update(): void;
22
+ deactivate(): boolean;
23
+ createActions(): Array<Action>;
24
+ addFooterActions(): void;
25
+ }
@@ -0,0 +1,92 @@
1
+ import { SurveySimulatorModel } from "../simulator";
2
+ import { Base, PageModel, SurveyModel, Action, IAction, ActionContainer } from "survey-core";
3
+ import { CreatorBase } from "../../creator-base";
4
+ export declare const Themes: {
5
+ "default-light": {
6
+ "--sjs-primary-backcolor": string;
7
+ "--sjs-primary-backcolor-light": string;
8
+ "--sjs-primary-backcolor-dark": string;
9
+ "--background": string;
10
+ "--background-dim": string;
11
+ "--background-dim-light": string;
12
+ "--sjs-general-forecolor": string;
13
+ "--sjs-general-forecolor-light": string;
14
+ "--sjs-general-dim-forecolor": string;
15
+ "--sjs-general-dim-forecolor-light": string;
16
+ "--sjs-editor-background": string;
17
+ "--sjs-question-background": string;
18
+ "--sjs-primary-forecolor": string;
19
+ "--foreground": string;
20
+ "--base-unit": string;
21
+ "--sjs-corner-radius": string;
22
+ };
23
+ "default-dark": {
24
+ "--sjs-primary-backcolor": string;
25
+ "--sjs-primary-backcolor-light": string;
26
+ "--sjs-primary-backcolor-dark": string;
27
+ "--background": string;
28
+ "--background-dim": string;
29
+ "--background-dim-light": string;
30
+ "--sjs-general-forecolor": string;
31
+ "--sjs-general-forecolor-light": string;
32
+ "--sjs-general-dim-forecolor": string;
33
+ "--sjs-general-dim-forecolor-light": string;
34
+ "--sjs-editor-background": string;
35
+ "--sjs-question-background": string;
36
+ "--sjs-primary-forecolor": string;
37
+ "--foreground": string;
38
+ "--base-unit": string;
39
+ "--sjs-corner-radius": string;
40
+ };
41
+ };
42
+ export declare class ThemeSurveyTabViewModel extends Base {
43
+ private surveyProvider;
44
+ private startTheme;
45
+ private json;
46
+ pages: ActionContainer;
47
+ prevPageAction: Action;
48
+ testAgainAction: Action;
49
+ nextPageAction: Action;
50
+ private selectPageAction;
51
+ private themeEditorSurveyValue;
52
+ private themeChanges;
53
+ private colorCalculator;
54
+ onSurveyCreatedCallback: (survey: SurveyModel) => any;
55
+ simulator: SurveySimulatorModel;
56
+ showInvisibleElements: any;
57
+ showPagesInTestSurveyTab: any;
58
+ isRunning: boolean;
59
+ pageListItems: Array<IAction>;
60
+ activePage: PageModel;
61
+ themeName: any;
62
+ themePalette: any;
63
+ themeMode: any;
64
+ get themeVariables(): any;
65
+ get activeLanguage(): string;
66
+ set activeLanguage(val: string);
67
+ get survey(): SurveyModel;
68
+ get pageActions(): Array<Action>;
69
+ get isPageToolbarVisible(): boolean;
70
+ get themeEditorSurvey(): SurveyModel;
71
+ constructor(surveyProvider: CreatorBase, startTheme?: any);
72
+ updateSimulatorSurvey(json: any, theme: any): void;
73
+ setJSON(json: any, currTheme: any): void;
74
+ initialize(json: any, options: any): void;
75
+ private updatePageItem;
76
+ private getCurrentPageItem;
77
+ private getSelectPageTitle;
78
+ private getPageTitle;
79
+ private updatePageList;
80
+ show(): void;
81
+ testAgain(): void;
82
+ buildActions(): void;
83
+ private setActivePageItem;
84
+ private getPageItemByPage;
85
+ private updateResultsTemplate;
86
+ setTheme(themeName: string, themeMapper: any): void;
87
+ protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
88
+ private updatePrevNextPageActionState;
89
+ initializeColorCalculator(): void;
90
+ protected createThemeEditorSurvey(): SurveyModel;
91
+ private getThemeEditorSurveyJSON;
92
+ }
@@ -1,7 +1,7 @@
1
1
  import * as Survey from "survey-core";
2
2
  import { Base, SurveyModel, Question, PageModel, IElement, JsonObjectProperty, ActionContainer, AdaptiveActionContainer, IAction, Action, IPanel, SurveyElement, ItemValue, QuestionSelectBase, LocalizableString, ILocalizableString, ILocalizableOwner, PopupBaseViewModel, EventBase } from "survey-core";
3
3
  import { ISurveyCreatorOptions, ICollectionItemAllowOperations } from "./creator-settings";
4
- import { DragDropSurveyElements, DragDropChoices } from "survey-core";
4
+ import { DragDropChoices } from "survey-core";
5
5
  import { QuestionToolbox } from "./toolbox";
6
6
  import { PropertyGridModel } from "./property-grid";
7
7
  import { ICreatorSelectionOwner } from "./selection-owner";
@@ -11,6 +11,8 @@ import { UndoRedoManager } from "./plugins/undo-redo/undo-redo-manager";
11
11
  import { UndoRedoController } from "./plugins/undo-redo/undo-redo-controller";
12
12
  import { SidebarModel } from "./components/side-bar/side-bar-model";
13
13
  import { ICreatorOptions } from "./creator-options";
14
+ import { DragDropSurveyElements } from "./survey-elements";
15
+ import { PageAdorner } from "./components/page";
14
16
  export interface IKeyboardShortcut {
15
17
  name?: string;
16
18
  hotKey: {
@@ -88,6 +90,12 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
88
90
  */
89
91
  get showPreviewTab(): boolean;
90
92
  set showPreviewTab(val: boolean);
93
+ /**
94
+ * Specifies whether to display the Theme tab.
95
+ *
96
+ * Default value: `false`
97
+ */
98
+ showThemeTab: boolean;
91
99
  /**
92
100
  * Specifies whether to display the Embed Survey tab.
93
101
  *
@@ -574,6 +582,21 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
574
582
  *- options.page the new survey Page object.
575
583
  */
576
584
  onPageAdded: CreatorEvent;
585
+ /**
586
+ * An event that is raised when Survey Creator renders action buttons under each page on the design surface. Use this event to add, remove, or modify the buttons.
587
+ *
588
+ * Parameters:
589
+ *
590
+ * - `sender`: `CreatorBase`\
591
+ * A Survey Creator instance that raised the event.
592
+ * - `options.actions`: [`IAction[]`](/form-library/documentation/api-reference/iaction)\
593
+ * An array of actions. You can add or remove actions from this array.
594
+ * - `options.page`: [`PageModel`](/form-library/documentation/api-reference/page-model)\
595
+ * A page for which the event is raised.
596
+ * - `options.addNewQuestion(type)`: Method\
597
+ * Adds a new question of a specified [`type`](/form-library/documentation/api-reference/question#getType) to the page.
598
+ */
599
+ onGetPageActions: CreatorEvent;
577
600
  /**
578
601
  * The event is fired when the survey creator is initialized and a survey object (Survey.Survey) is created.
579
602
  *- sender the survey creator object that fires the event
@@ -1333,6 +1356,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
1333
1356
  getAddNewQuestionText(currentAddQuestionType?: string): any;
1334
1357
  get addNewQuestionText(): any;
1335
1358
  getQuestionTypeSelectorModel(beforeAdd: (type: string) => void, panel?: IPanel): any;
1359
+ getUpdatedPageAdornerFooterActions(pageAdorner: PageAdorner, actions: Array<IAction>): Survey.IAction[];
1336
1360
  addNewQuestionInPage(beforeAdd: (string: any) => void, panel?: IPanel, type?: string): void;
1337
1361
  createIActionBarItemByClass(className: string, title: string, iconName: string, needSeparator: boolean): Action;
1338
1362
  onElementMenuItemsChanged(element: any, items: Action[]): void;
@@ -1372,6 +1396,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
1372
1396
  selectFromStringEditor: boolean;
1373
1397
  isCreatorDisposed: boolean;
1374
1398
  dispose(): void;
1399
+ enableLinkFileEditor: boolean;
1375
1400
  }
1376
1401
  export declare class SurveyCreatorModel extends CreatorBase {
1377
1402
  }
@@ -244,4 +244,5 @@ export interface ICreatorOptions {
244
244
  * Questions and panels are divided between pages. Users can use the page navigator to switch to a required page.
245
245
  */
246
246
  pageEditMode?: "standard" | "single" | "bypage";
247
+ enableLinkFileEditor?: boolean;
247
248
  }
@@ -106,7 +106,6 @@ export declare var settings: {
106
106
  }[];
107
107
  };
108
108
  image: {
109
- imageLink: string;
110
109
  imageFit: string;
111
110
  imageHeight: string;
112
111
  imageWidth: string;
@@ -160,6 +159,7 @@ export interface ISurveyCreatorOptions {
160
159
  maximumChoicesCount: number;
161
160
  maximumRowsCount: number;
162
161
  maximumRateValues: number;
162
+ enableLinkFileEditor: boolean;
163
163
  getObjectDisplayName(obj: Base, area: string, reason: string, displayName: string): string;
164
164
  onCanShowPropertyCallback(object: any, property: JsonObjectProperty, showMode: string, parentObj: any, parentProperty: JsonObjectProperty): boolean;
165
165
  onPropertyEditorCreatedCallback(object: any, property: JsonObjectProperty, editor: Question): any;
@@ -184,8 +184,10 @@ export interface ISurveyCreatorOptions {
184
184
  onLogicGetTitleCallback(expression: string, displayExpression: string, text: string, logicItem: any): string;
185
185
  getProcessedTranslationItemText(locale: string, locString: ILocalizableString, newText: string, obj: any): string;
186
186
  getTranslationExportedText(obj: Base, name: string, locString: ILocalizableString, locale: string, text: string): string;
187
+ uploadFiles(files: File[], question: Question, uploadingCallback: (status: string, data: any) => any): void;
187
188
  }
188
189
  export declare class EmptySurveyCreatorOptions implements ISurveyCreatorOptions {
190
+ enableLinkFileEditor: boolean;
189
191
  getProcessedTranslationItemText(locale: string, locString: ILocalizableString, newText: string, obj: any): string;
190
192
  isMobileView: boolean;
191
193
  alwaySaveTextInPropertyEditors: boolean;
@@ -221,4 +223,5 @@ export declare class EmptySurveyCreatorOptions implements ISurveyCreatorOptions
221
223
  onConditionGetTitleCallback(expression: string, title: string): string;
222
224
  onLogicGetTitleCallback(expression: string, displayExpression: string, text: string, logicItem: any): string;
223
225
  getTranslationExportedText(obj: Base, name: string, locString: ILocalizableString, locale: string, text: string): string;
226
+ uploadFiles(files: File[], question: Question, uploadingCallback: (status: string, data: any) => any): void;
224
227
  }
@@ -95,6 +95,7 @@ export declare var defaultStrings: {
95
95
  newPanelName: string;
96
96
  newTextItemName: string;
97
97
  testSurvey: string;
98
+ themeSurvey: string;
98
99
  defaultV2Theme: string;
99
100
  modernTheme: string;
100
101
  defaultTheme: string;
@@ -148,6 +149,7 @@ export declare var defaultStrings: {
148
149
  propertyEditorError: string;
149
150
  saveError: string;
150
151
  translationPropertyGridTitle: string;
152
+ previewPropertyGridTitle: string;
151
153
  translationLanguages: string;
152
154
  translationAddLanguage: string;
153
155
  translationShowAllStrings: string;
@@ -297,6 +299,7 @@ export declare var defaultStrings: {
297
299
  propertyIsEmpty: string;
298
300
  propertyIsNoUnique: string;
299
301
  propertyNameIsNotUnique: string;
302
+ propertyNameIsIncorrect: string;
300
303
  listIsEmpty: string;
301
304
  "listIsEmpty@choices": string;
302
305
  "addNew@choices": string;
@@ -468,6 +471,7 @@ export declare var defaultStrings: {
468
471
  maxTextLength: string;
469
472
  maxOthersLength: string;
470
473
  autoGrowComment: string;
474
+ allowResizeComment: string;
471
475
  textUpdateMode: string;
472
476
  focusOnFirstError: string;
473
477
  checkErrorsMode: string;
@@ -677,6 +681,7 @@ export declare var defaultStrings: {
677
681
  progressTop: string;
678
682
  progressBottom: string;
679
683
  progressTopBottom: string;
684
+ tab: string;
680
685
  horizontal: string;
681
686
  vertical: string;
682
687
  top: string;
@@ -800,6 +805,11 @@ export declare var defaultStrings: {
800
805
  true: string;
801
806
  false: string;
802
807
  };
808
+ rateType: {
809
+ labels: string;
810
+ stars: string;
811
+ smileys: string;
812
+ };
803
813
  };
804
814
  op: {
805
815
  empty: string;
@@ -939,6 +949,7 @@ export declare var defaultStrings: {
939
949
  navigationDescription: string;
940
950
  longTap: string;
941
951
  autoGrow: string;
952
+ allowResize: string;
942
953
  acceptCarriageReturn: string;
943
954
  displayMode: string;
944
955
  rateType: string;
@@ -957,4 +968,66 @@ export declare var defaultStrings: {
957
968
  iconName: string;
958
969
  iconSize: string;
959
970
  };
971
+ theme: {
972
+ "--background": string;
973
+ "--background-dim-light": string;
974
+ "--primary-foreground": string;
975
+ "--foreground": string;
976
+ "--base-unit": string;
977
+ groupGeneral: string;
978
+ groupAdvanced: string;
979
+ themeName: string;
980
+ themeMode: string;
981
+ themeModePanels: string;
982
+ themeModeLightweight: string;
983
+ themePaletteLight: string;
984
+ themePaletteDark: string;
985
+ primaryColor: string;
986
+ primaryDefaultColor: string;
987
+ primaryDarkColor: string;
988
+ primaryLightColor: string;
989
+ backgroundDimColor: string;
990
+ backgroundImage: string;
991
+ backgroundImageFitAuto: string;
992
+ backgroundImageFitCover: string;
993
+ backgroundImageFitContain: string;
994
+ backgroundOpacity: string;
995
+ panelBackgroundTransparency: string;
996
+ questionBackgroundTransparency: string;
997
+ questionPanel: string;
998
+ questionTitle: string;
999
+ questionDescription: string;
1000
+ editorPanel: string;
1001
+ editorFont: string;
1002
+ backcolor: string;
1003
+ hovercolor: string;
1004
+ borderDecoration: string;
1005
+ accentBackground: string;
1006
+ accentForeground: string;
1007
+ primaryForecolor: string;
1008
+ primaryForecolorLight: string;
1009
+ linesColors: string;
1010
+ borderDefault: string;
1011
+ borderLight: string;
1012
+ fontFamily: string;
1013
+ fontSize: string;
1014
+ color: string;
1015
+ size: string;
1016
+ fontWeightRegular: string;
1017
+ fontWeightHeavy: string;
1018
+ fontWeightSemiBold: string;
1019
+ fontWeightBold: string;
1020
+ scale: string;
1021
+ cornerRadius: string;
1022
+ surveyTitle: string;
1023
+ pageTitle: string;
1024
+ pageDescription: string;
1025
+ boxShadowX: string;
1026
+ boxShadowY: string;
1027
+ opacity: string;
1028
+ boxShadowBlur: string;
1029
+ boxShadowSpread: string;
1030
+ questionShadow: string;
1031
+ editorShadow: string;
1032
+ };
960
1033
  };
@@ -12,6 +12,10 @@ export * from "../components/tabs/json-editor-plugin";
12
12
  export * from "../components/tabs/json-editor-textarea";
13
13
  export * from "../components/tabs/test";
14
14
  export * from "../components/tabs/test-plugin";
15
+ export * from "../components/tabs/theme-custom-questions/color-settings";
16
+ export * from "../components/tabs/theme-custom-questions/boxshadow-settings";
17
+ export * from "../components/tabs/theme";
18
+ export * from "../components/tabs/theme-plugin";
15
19
  export * from "../components/tabs/logic";
16
20
  export * from "../components/tabs/translation";
17
21
  export * from "../components/tabs/translation-theme";
@@ -66,6 +66,7 @@ export declare var enStrings: {
66
66
  newPanelName: string;
67
67
  newTextItemName: string;
68
68
  testSurvey: string;
69
+ themeSurvey: string;
69
70
  defaultV2Theme: string;
70
71
  modernTheme: string;
71
72
  defaultTheme: string;
@@ -119,6 +120,7 @@ export declare var enStrings: {
119
120
  propertyEditorError: string;
120
121
  saveError: string;
121
122
  translationPropertyGridTitle: string;
123
+ previewPropertyGridTitle: string;
122
124
  translationLanguages: string;
123
125
  translationAddLanguage: string;
124
126
  translationShowAllStrings: string;
@@ -268,6 +270,7 @@ export declare var enStrings: {
268
270
  propertyIsEmpty: string;
269
271
  propertyIsNoUnique: string;
270
272
  propertyNameIsNotUnique: string;
273
+ propertyNameIsIncorrect: string;
271
274
  listIsEmpty: string;
272
275
  "listIsEmpty@choices": string;
273
276
  "addNew@choices": string;
@@ -439,6 +442,7 @@ export declare var enStrings: {
439
442
  maxTextLength: string;
440
443
  maxOthersLength: string;
441
444
  autoGrowComment: string;
445
+ allowResizeComment: string;
442
446
  textUpdateMode: string;
443
447
  focusOnFirstError: string;
444
448
  checkErrorsMode: string;
@@ -648,6 +652,7 @@ export declare var enStrings: {
648
652
  progressTop: string;
649
653
  progressBottom: string;
650
654
  progressTopBottom: string;
655
+ tab: string;
651
656
  horizontal: string;
652
657
  vertical: string;
653
658
  top: string;
@@ -771,6 +776,11 @@ export declare var enStrings: {
771
776
  true: string;
772
777
  false: string;
773
778
  };
779
+ rateType: {
780
+ labels: string;
781
+ stars: string;
782
+ smileys: string;
783
+ };
774
784
  };
775
785
  op: {
776
786
  empty: string;
@@ -910,6 +920,7 @@ export declare var enStrings: {
910
920
  navigationDescription: string;
911
921
  longTap: string;
912
922
  autoGrow: string;
923
+ allowResize: string;
913
924
  acceptCarriageReturn: string;
914
925
  displayMode: string;
915
926
  rateType: string;
@@ -928,4 +939,66 @@ export declare var enStrings: {
928
939
  iconName: string;
929
940
  iconSize: string;
930
941
  };
942
+ theme: {
943
+ "--background": string;
944
+ "--background-dim-light": string;
945
+ "--primary-foreground": string;
946
+ "--foreground": string;
947
+ "--base-unit": string;
948
+ groupGeneral: string;
949
+ groupAdvanced: string;
950
+ themeName: string;
951
+ themeMode: string;
952
+ themeModePanels: string;
953
+ themeModeLightweight: string;
954
+ themePaletteLight: string;
955
+ themePaletteDark: string;
956
+ primaryColor: string;
957
+ primaryDefaultColor: string;
958
+ primaryDarkColor: string;
959
+ primaryLightColor: string;
960
+ backgroundDimColor: string;
961
+ backgroundImage: string;
962
+ backgroundImageFitAuto: string;
963
+ backgroundImageFitCover: string;
964
+ backgroundImageFitContain: string;
965
+ backgroundOpacity: string;
966
+ panelBackgroundTransparency: string;
967
+ questionBackgroundTransparency: string;
968
+ questionPanel: string;
969
+ questionTitle: string;
970
+ questionDescription: string;
971
+ editorPanel: string;
972
+ editorFont: string;
973
+ backcolor: string;
974
+ hovercolor: string;
975
+ borderDecoration: string;
976
+ accentBackground: string;
977
+ accentForeground: string;
978
+ primaryForecolor: string;
979
+ primaryForecolorLight: string;
980
+ linesColors: string;
981
+ borderDefault: string;
982
+ borderLight: string;
983
+ fontFamily: string;
984
+ fontSize: string;
985
+ color: string;
986
+ size: string;
987
+ fontWeightRegular: string;
988
+ fontWeightHeavy: string;
989
+ fontWeightSemiBold: string;
990
+ fontWeightBold: string;
991
+ scale: string;
992
+ cornerRadius: string;
993
+ surveyTitle: string;
994
+ pageTitle: string;
995
+ pageDescription: string;
996
+ boxShadowX: string;
997
+ boxShadowY: string;
998
+ opacity: string;
999
+ boxShadowBlur: string;
1000
+ boxShadowSpread: string;
1001
+ questionShadow: string;
1002
+ editorShadow: string;
1003
+ };
931
1004
  };
@@ -1,5 +1,6 @@
1
1
  import { Base, JsonObjectProperty, PanelModel, PanelModelBase, Question, SurveyModel, MatrixDynamicRowModel } from "survey-core";
2
2
  import { ISurveyCreatorOptions } from "../creator-settings";
3
+ import { QuestionFileEditorModel } from "../custom-questions/question-file";
3
4
  export interface IPropertyEditorSetup {
4
5
  editSurvey: SurveyModel;
5
6
  apply(): boolean;
@@ -126,6 +127,7 @@ export declare class PropertyGridModel {
126
127
  private validateQuestionValue;
127
128
  private onValidateQuestion;
128
129
  private onValueChanging;
130
+ private isPropNameInValid;
129
131
  private onValueChanged;
130
132
  private changeDependedProperties;
131
133
  private updateDependedPropertiesEditor;
@@ -169,6 +171,11 @@ export declare class PropertyGridEditorString extends PropertyGridEditorStringBa
169
171
  isDefault(): boolean;
170
172
  getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
171
173
  }
174
+ export declare class PropertyGridLinkEditor extends PropertyGridEditor {
175
+ fit(prop: JsonObjectProperty): boolean;
176
+ getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
177
+ onCreated(obj: Base, question: QuestionFileEditorModel, prop: JsonObjectProperty, options: ISurveyCreatorOptions): void;
178
+ }
172
179
  export declare class PropertyGridEditorNumber extends PropertyGridEditor {
173
180
  fit(prop: JsonObjectProperty): boolean;
174
181
  getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
@@ -4,8 +4,10 @@ import { IPropertyEditorSetup, PropertyGridEditor } from "./index";
4
4
  export declare abstract class PropertyGridEditorMatrix extends PropertyGridEditor {
5
5
  static getNewColumnName(objs: Array<any>, keyPropName: string, baseName: string): string | number;
6
6
  onCreated(obj: Base, question: Question, prop: JsonObjectProperty): void;
7
+ private initializeAcceptedTypes;
7
8
  private initializePlaceholder;
8
9
  onMatrixCellCreated(obj: Base, options: any): void;
10
+ onMatrixCellValueChanged(obj: Base, options: any): void;
9
11
  private updateMatixActionsClasses;
10
12
  onGetMatrixRowAction(obj: Base, options: any, setObjFunc: (obj: Base) => void): void;
11
13
  private getShowDetailActionIconName;