survey-creator-core 1.9.92 → 1.9.94

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.
@@ -39,5 +39,5 @@ export declare class ItemValueWrapperViewModel extends Base {
39
39
  get tooltip(): string;
40
40
  get dragTooltip(): string;
41
41
  get allowAdd(): boolean;
42
- select(model: ItemValueWrapperViewModel, event: Event): void;
42
+ select(model: ItemValueWrapperViewModel, event: Event | undefined): void;
43
43
  }
@@ -5,6 +5,7 @@ export declare class MatrixCellWrapperEditSurvey {
5
5
  private surveyValue;
6
6
  constructor(creator: CreatorBase, cellQuestion: Question);
7
7
  get survey(): SurveyModel;
8
+ get question(): Question;
8
9
  apply(): void;
9
10
  }
10
11
  export declare class MatrixCellWrapperViewModel extends Base {
@@ -1 +1 @@
1
- export {};
1
+ export declare const DefaultFonts: string[];
@@ -10,6 +10,7 @@ export declare class TabThemePlugin implements ICreatorPlugin {
10
10
  private designerAction;
11
11
  private prevPageAction;
12
12
  private nextPageAction;
13
+ private resetTheme;
13
14
  private importAction;
14
15
  private exportAction;
15
16
  private inputFileElement;
@@ -2,6 +2,27 @@ import { SurveySimulatorModel } from "../simulator";
2
2
  import { Base, PageModel, SurveyModel, Action, IAction, ActionContainer, ITheme } from "survey-core";
3
3
  import { CreatorBase } from "../../creator-base";
4
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
+ };
5
26
  export declare class ThemeSurveyTabViewModel extends Base {
6
27
  private surveyProvider;
7
28
  private startTheme;
@@ -35,6 +56,7 @@ export declare class ThemeSurveyTabViewModel extends Base {
35
56
  get isPageToolbarVisible(): boolean;
36
57
  get themeEditorSurvey(): SurveyModel;
37
58
  get currentTheme(): ITheme;
59
+ applySelectedTheme(saveChanges?: boolean): void;
38
60
  constructor(surveyProvider: CreatorBase, startTheme?: any);
39
61
  private loadTheme;
40
62
  updateSimulatorSurvey(json: any, theme: any): void;
@@ -645,6 +645,8 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
645
645
  * - `sender` - the survey creator object that fires the event
646
646
  * - `options.files` - the Javascript File objects array
647
647
  * - `options.callback(status, imageLink)` - called on upload complete
648
+ *
649
+ * [View Demo](https://surveyjs.io/survey-creator/examples/file-upload/ (linkStyle))
648
650
  * @see uploadFiles
649
651
  */
650
652
  onUploadFile: CreatorEvent;
@@ -149,7 +149,7 @@ export declare var defaultStrings: {
149
149
  propertyEditorError: string;
150
150
  saveError: string;
151
151
  translationPropertyGridTitle: string;
152
- previewPropertyGridTitle: string;
152
+ themePropertyGridTitle: string;
153
153
  translationLanguages: string;
154
154
  translationAddLanguage: string;
155
155
  translationShowAllStrings: string;
@@ -1035,5 +1035,26 @@ export declare var defaultStrings: {
1035
1035
  boxShadowSpread: string;
1036
1036
  questionShadow: string;
1037
1037
  editorShadow: string;
1038
+ names: {
1039
+ default: string;
1040
+ contrast: string;
1041
+ plain: string;
1042
+ simple: string;
1043
+ blank: string;
1044
+ double: string;
1045
+ bulk: string;
1046
+ "pseudo-3d": string;
1047
+ playful: string;
1048
+ ultra: string;
1049
+ };
1050
+ colors: {
1051
+ teal: string;
1052
+ blue: string;
1053
+ purple: string;
1054
+ orchid: string;
1055
+ tulip: string;
1056
+ brown: string;
1057
+ green: string;
1058
+ };
1038
1059
  };
1039
1060
  };
@@ -120,7 +120,7 @@ export declare var enStrings: {
120
120
  propertyEditorError: string;
121
121
  saveError: string;
122
122
  translationPropertyGridTitle: string;
123
- previewPropertyGridTitle: string;
123
+ themePropertyGridTitle: string;
124
124
  translationLanguages: string;
125
125
  translationAddLanguage: string;
126
126
  translationShowAllStrings: string;
@@ -1006,5 +1006,26 @@ export declare var enStrings: {
1006
1006
  boxShadowSpread: string;
1007
1007
  questionShadow: string;
1008
1008
  editorShadow: string;
1009
+ names: {
1010
+ default: string;
1011
+ contrast: string;
1012
+ plain: string;
1013
+ simple: string;
1014
+ blank: string;
1015
+ double: string;
1016
+ bulk: string;
1017
+ "pseudo-3d": string;
1018
+ playful: string;
1019
+ ultra: string;
1020
+ };
1021
+ colors: {
1022
+ teal: string;
1023
+ blue: string;
1024
+ purple: string;
1025
+ orchid: string;
1026
+ tulip: string;
1027
+ brown: string;
1028
+ green: string;
1029
+ };
1009
1030
  };
1010
1031
  };
@@ -34,7 +34,7 @@ export declare class UndoRedoManager {
34
34
  redo(): void;
35
35
  suspend(): void;
36
36
  resume(): void;
37
- changesFinishedCallback: (changes: IUndoRedoChange) => void;
37
+ changesFinishedCallback: (changes: UndoRedoAction[], isUndo: boolean) => void;
38
38
  }
39
39
  export declare class Transaction {
40
40
  private _name;
@@ -102,7 +102,7 @@ export declare class ConditionEditor extends PropertyEditorSetupValue {
102
102
  private canShowQuestionValue;
103
103
  private getConditionQuestion;
104
104
  private getQuestionConditionJson;
105
- private: any;
105
+ private updateChoicesFromQuestion;
106
106
  private updateOperatorEnables;
107
107
  private updateQuestionsWidth;
108
108
  private get defaultOperator();
@@ -1,4 +1,4 @@
1
- import { Base, JsonObjectProperty, PanelModel, PanelModelBase, Question, SurveyModel, MatrixDynamicRowModel } from "survey-core";
1
+ import { Base, JsonObjectProperty, PanelModel, PanelModelBase, Question, SurveyModel, MatrixDynamicRowModel, QuestionTextBase } from "survey-core";
2
2
  import { ISurveyCreatorOptions } from "../creator-settings";
3
3
  import { QuestionFileEditorModel } from "../custom-questions/question-file";
4
4
  export interface IPropertyEditorSetup {
@@ -167,6 +167,7 @@ export declare class PropertyGridEditorBoolean extends PropertyGridEditor {
167
167
  }
168
168
  export declare abstract class PropertyGridEditorStringBase extends PropertyGridEditor {
169
169
  protected updateMaxLength(prop: JsonObjectProperty, json: any): any;
170
+ onCreated(obj: Base, question: QuestionTextBase, prop: JsonObjectProperty, options: ISurveyCreatorOptions): void;
170
171
  }
171
172
  export declare class PropertyGridEditorString extends PropertyGridEditorStringBase {
172
173
  fit(prop: JsonObjectProperty): boolean;
@@ -10,4 +10,5 @@ export declare class QuestionConverter {
10
10
  private static updateJSONForRating;
11
11
  private static updateJSONForBarrating;
12
12
  private static updateJSONForPanels;
13
+ private static removeValidators;
13
14
  }
@@ -1,5 +1,5 @@
1
- import { QuestionMatrixDynamicModel, IAction, MatrixDynamicRowModel } from "survey-core";
1
+ import { QuestionMatrixDynamicModel, IAction, MatrixDynamicRowModel, MatrixDropdownRowModelBase } from "survey-core";
2
2
  export declare function findAction(actions: Array<IAction>, id: string): IAction;
3
- export declare function updateMatrixLogicExpandAction(question: QuestionMatrixDynamicModel, actions: Array<IAction>, row: MatrixDynamicRowModel): void;
3
+ export declare function updateMatrixLogicExpandAction(question: QuestionMatrixDynamicModel, actions: Array<IAction>, row: MatrixDropdownRowModelBase): void;
4
4
  export declare function updateMatrixLogicRemoveAction(question: QuestionMatrixDynamicModel, actions: Array<IAction>, row: MatrixDynamicRowModel): void;
5
5
  export declare function updateMatrixRemoveAction(question: QuestionMatrixDynamicModel, actions: Array<IAction>, row: MatrixDynamicRowModel): void;