survey-creator-core 1.9.82 → 1.9.84

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 (100) 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 +75 -14
  5. package/survey-creator-core.d.ts +1 -8046
  6. package/survey-creator-core.fontless.css +74 -13
  7. package/survey-creator-core.fontless.css.map +1 -1
  8. package/survey-creator-core.fontless.min.css +4 -4
  9. package/survey-creator-core.i18n.js +126 -128
  10. package/survey-creator-core.i18n.js.map +1 -1
  11. package/survey-creator-core.i18n.min.js +2 -2
  12. package/survey-creator-core.js +447 -152
  13. package/survey-creator-core.js.map +1 -1
  14. package/survey-creator-core.min.css +5 -5
  15. package/survey-creator-core.min.js +2 -2
  16. package/typings/components/action-container-view-model.d.ts +27 -0
  17. package/typings/components/embedded-survey.d.ts +9 -0
  18. package/typings/components/header/logo-image.d.ts +15 -0
  19. package/typings/components/image-item-value.d.ts +21 -0
  20. package/typings/components/item-value.d.ts +42 -0
  21. package/typings/components/link-value.d.ts +27 -0
  22. package/typings/components/matrix-cell.d.ts +25 -0
  23. package/typings/components/page-navigator/page-navigator.d.ts +39 -0
  24. package/typings/components/page.d.ts +28 -0
  25. package/typings/components/question-dropdown.d.ts +18 -0
  26. package/typings/components/question-image.d.ts +9 -0
  27. package/typings/components/question-rating.d.ts +15 -0
  28. package/typings/components/question.d.ts +41 -0
  29. package/typings/components/results.d.ts +40 -0
  30. package/typings/components/row.d.ts +9 -0
  31. package/typings/components/side-bar/side-bar-model.d.ts +34 -0
  32. package/typings/components/side-bar/side-bar-tab-model.d.ts +11 -0
  33. package/typings/components/simulator.d.ts +205 -0
  34. package/typings/components/string-editor.d.ts +68 -0
  35. package/typings/components/tabs/designer-plugin.d.ts +26 -0
  36. package/typings/components/tabs/designer.d.ts +29 -0
  37. package/typings/components/tabs/embed-json.d.ts +1 -0
  38. package/typings/components/tabs/embed.d.ts +13 -0
  39. package/typings/components/tabs/json-editor-ace.d.ts +22 -0
  40. package/typings/components/tabs/json-editor-plugin.d.ts +28 -0
  41. package/typings/components/tabs/json-editor-textarea.d.ts +22 -0
  42. package/typings/components/tabs/logic-actions-model.d.ts +49 -0
  43. package/typings/components/tabs/logic-expression.d.ts +32 -0
  44. package/typings/components/tabs/logic-item-editor.d.ts +53 -0
  45. package/typings/components/tabs/logic-items.d.ts +96 -0
  46. package/typings/components/tabs/logic-plugin.d.ts +22 -0
  47. package/typings/components/tabs/logic-theme.d.ts +327 -0
  48. package/typings/components/tabs/logic-types.d.ts +77 -0
  49. package/typings/components/tabs/logic-ui.d.ts +68 -0
  50. package/typings/components/tabs/logic.d.ts +102 -0
  51. package/typings/components/tabs/test-plugin.d.ts +33 -0
  52. package/typings/components/tabs/test.d.ts +43 -0
  53. package/typings/components/tabs/translation-plugin.d.ts +33 -0
  54. package/typings/components/tabs/translation-theme.d.ts +301 -0
  55. package/typings/components/tabs/translation.d.ts +199 -0
  56. package/typings/components/toolbox/toolbox-tool.d.ts +16 -0
  57. package/typings/creator-base.d.ts +1375 -0
  58. package/typings/creator-options.d.ts +247 -0
  59. package/typings/creator-responsivity-manager.d.ts +22 -0
  60. package/typings/creator-settings.d.ts +216 -0
  61. package/typings/custom-questions/question-color.d.ts +15 -0
  62. package/typings/custom-questions/question-file.d.ts +15 -0
  63. package/typings/custom-questions/question-spin-editor.d.ts +25 -0
  64. package/typings/editable-object.d.ts +20 -0
  65. package/typings/editorLocalization.d.ts +951 -0
  66. package/typings/entries/index.d.ts +68 -0
  67. package/typings/expressionToDisplayText.d.ts +46 -0
  68. package/typings/json5.d.ts +46 -0
  69. package/typings/localization/english.d.ts +922 -0
  70. package/typings/pages-controller.d.ts +21 -0
  71. package/typings/plugins/undo-redo/index.d.ts +12 -0
  72. package/typings/plugins/undo-redo/undo-redo-controller.d.ts +40 -0
  73. package/typings/plugins/undo-redo/undo-redo-manager.d.ts +78 -0
  74. package/typings/property-grid/bindings.d.ts +10 -0
  75. package/typings/property-grid/cells-survey.d.ts +14 -0
  76. package/typings/property-grid/condition-survey.d.ts +117 -0
  77. package/typings/property-grid/condition.d.ts +13 -0
  78. package/typings/property-grid/description-parser.d.ts +10 -0
  79. package/typings/property-grid/fast-entry.d.ts +32 -0
  80. package/typings/property-grid/index.d.ts +239 -0
  81. package/typings/property-grid/matrices.d.ts +132 -0
  82. package/typings/property-grid/object-selector.d.ts +42 -0
  83. package/typings/property-grid/property-grid-view-model.d.ts +23 -0
  84. package/typings/property-grid/restfull.d.ts +8 -0
  85. package/typings/property-grid/values-survey.d.ts +42 -0
  86. package/typings/property-grid/values.d.ts +37 -0
  87. package/typings/property-grid-theme/property-grid.d.ts +346 -0
  88. package/typings/question-editor/definition.d.ts +22 -0
  89. package/typings/question-editor/properties.d.ts +49 -0
  90. package/typings/questionconverter.d.ts +12 -0
  91. package/typings/selection-history.d.ts +20 -0
  92. package/typings/selection-owner.d.ts +7 -0
  93. package/typings/survey-helper.d.ts +43 -0
  94. package/typings/svgbundle.d.ts +1 -0
  95. package/typings/textWorker.d.ts +18 -0
  96. package/typings/toolbox.d.ts +269 -0
  97. package/typings/utils/actions.d.ts +5 -0
  98. package/typings/utils/events.d.ts +14 -0
  99. package/typings/utils/resizer.d.ts +24 -0
  100. package/typings/utils/utils.d.ts +19 -0
@@ -0,0 +1,247 @@
1
+ /**
2
+ * Survey Creator configuration. Pass it as an argument to the `SurveyCreator` constructor:
3
+ *
4
+ * ```js
5
+ * const creator = new SurveyCreator.SurveyCreator(creatorOptions);
6
+ * ```
7
+ */
8
+ export interface ICreatorOptions {
9
+ [index: string]: any;
10
+ /**
11
+ * Specifies whether to display the Designer tab.
12
+ *
13
+ * Default value: `true`
14
+ */
15
+ showDesignerTab?: boolean;
16
+ /**
17
+ * Specifies whether to display the Preview tab.
18
+ *
19
+ * Default value: `true`
20
+ */
21
+ showPreviewTab?: boolean;
22
+ /**
23
+ * Specifies whether to display the JSON Editor tab.
24
+ *
25
+ * Default value: `true`
26
+ */
27
+ showJSONEditorTab?: boolean;
28
+ /**
29
+ * Specifies whether to display the Logic tab.
30
+ *
31
+ * Default value: `false`
32
+ */
33
+ showLogicTab?: boolean;
34
+ /**
35
+ * Specifies whether to display the Embed Survey tab.
36
+ *
37
+ * Default value: `false`
38
+ */
39
+ showEmbeddedSurveyTab?: boolean;
40
+ /**
41
+ * Specifies whether to display the Translation tab.
42
+ *
43
+ * Default value: `false`
44
+ */
45
+ showTranslationTab?: boolean;
46
+ /**
47
+ * Removes the Free Trial bar.
48
+ *
49
+ * Default value: `false`
50
+ *
51
+ * > You can enable this property only if you have a Survey Creator commercial license. It is illegal to enable this property without a license.
52
+ */
53
+ haveCommercialLicense?: boolean;
54
+ /**
55
+ * Specifies whether to call the [saveSurveyFunc](https://surveyjs.io/Documentation/Survey-Creator?id=surveycreator#saveSurveyFunc) each time survey settings are changed.
56
+ *
57
+ * Default value: `false`
58
+ */
59
+ isAutoSave?: boolean;
60
+ /**
61
+ * Specifies whether to enable support for right-to-left languages.
62
+ *
63
+ * Default value: `false`
64
+ */
65
+ isRTL?: boolean;
66
+ /**
67
+ * Specifies whether users can see and edit the survey title and related survey properties.
68
+ *
69
+ * Default value: `true`
70
+ */
71
+ showSurveyTitle?: boolean;
72
+ /**
73
+ * Specifies whether users can edit expressions in the Logic tab as plain text.
74
+ *
75
+ * If you set this property to `false`, users can only use UI elements to edit logical expressions.
76
+ *
77
+ * Default value: `true`
78
+ *
79
+ * @see showLogicTab
80
+ */
81
+ allowEditExpressionsInTextEditor?: boolean;
82
+ /**
83
+ * Specifies whether to display question titles instead of names when users edit logical expressions.
84
+ *
85
+ * Default value: `false`
86
+ */
87
+ showTitlesInExpressions?: boolean;
88
+ /**
89
+ * Specifies whether to show an error message if a survey is not saved in the database.
90
+ *
91
+ * Default value: `true`
92
+ */
93
+ showErrorOnFailedSave?: boolean;
94
+ /**
95
+ * Specifies whether the Survey Creator generates the survey definition as a valid JSON object or JavaScript object.
96
+ *
97
+ * Default value: `true`
98
+ *
99
+ * Refer to the following MDN topic for information on differences between JSON and JavaScript objects: [JavaScript and JSON Differences](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON#javascript_and_json_differences)
100
+ */
101
+ generateValidJSON?: boolean;
102
+ /**
103
+ * Enables the read-only mode. If you set this property to `true`, users cannot change the initial survey configuration.
104
+ *
105
+ * Default value: `false`
106
+ */
107
+ readOnly?: boolean;
108
+ /**
109
+ * Specifies whether to show the page selector at the bottom of the Preview tab.
110
+ *
111
+ * Default value: `true`
112
+ */
113
+ showPagesInPreviewTab?: boolean;
114
+ /**
115
+ * A [UI theme](https://surveyjs.io/Documentation/Library?id=get-started-react#configure-styles) used to display the survey in the Preview tab.
116
+ *
117
+ * Accepted values: `"modern"`, `"default"`, `"defaultV2"`
118
+ *
119
+ * Default value: `"defaultV2"`
120
+ */
121
+ themeForPreview?: string;
122
+ /**
123
+ * Specifies whether the Preview tab displays the Device button that allows users to preview the survey on different device types.
124
+ *
125
+ * Default value: `true`
126
+ */
127
+ showSimulatorInPreviewTab?: boolean;
128
+ /**
129
+ * Specifies whether the Preview tab displays the language selector.
130
+ *
131
+ * Accepted values:
132
+ *
133
+ * - `"auto"` (default)
134
+ * Display the language selector only if the survey is translated into more than one language.
135
+ *
136
+ * - `true`
137
+ * Always display the language selector regardless of how many languages are used in the survey.
138
+ *
139
+ * - `false`
140
+ * Never display the language selector.
141
+ *
142
+ * - `"all"`
143
+ * Always display the language selector with [all supported languages](https://github.com/surveyjs/survey-creator/tree/master/packages/survey-creator-core/src/localization).
144
+ *
145
+ * **See also**: [Localization & Globalization](https://surveyjs.io/Documentation/Survey-Creator?id=localization)
146
+ */
147
+ showDefaultLanguageInPreviewTab?: boolean | string;
148
+ /**
149
+ * Specifies whether the Preview tab displays a checkbox that allows users to show or hide invisible survey elements.
150
+ *
151
+ * Default value: `true`
152
+ */
153
+ showInvisibleElementsInPreviewTab?: boolean;
154
+ /**
155
+ * Specifies whether UI elements display survey, page, and question titles instead of their names.
156
+ *
157
+ * Default value: `false`
158
+ */
159
+ showObjectTitles?: boolean;
160
+ /**
161
+ * Limits the number of visible choices. Users can click "Show more" to view hidden choices.
162
+ *
163
+ * Set this property to -1 if you do not want to hide any choices.
164
+ *
165
+ * Default value: 10
166
+ */
167
+ maxVisibleChoices?: number;
168
+ /**
169
+ * Specifies whether the design surface displays the survey title and description when the survey does not contain any elements.
170
+ *
171
+ * Default value: `false`
172
+ */
173
+ showHeaderInEmptySurvey?: boolean;
174
+ /**
175
+ * Specifies whether users can add, edit, and delete survey pages.
176
+ *
177
+ * Default value: `true`
178
+ */
179
+ allowModifyPages?: boolean;
180
+ /**
181
+ * Limits the number of columns that users can add to [Matrix](https://surveyjs.io/Documentation/Library?id=questionmatrixmodel), [Matrix Dynamic](https://surveyjs.io/Documentation/Library?id=questionmatrixdynamicmodel), and [Matrix Dropdown](https://surveyjs.io/Documentation/Library?id=questionmatrixdropdownmodel) questions.
182
+ *
183
+ * Default value: 0 (unlimited, taken from `settings.propertyGrid.maximumColumnsCount`)
184
+ */
185
+ maximumColumnsCount?: number;
186
+ /**
187
+ * Limits the number of choices that users can add to [Checkbox](https://surveyjs.io/Documentation/Library?id=questioncheckboxmodel), [Dropdown](https://surveyjs.io/Documentation/Library?id=questiondropdownmodel), and [Radiogroup](https://surveyjs.io/Documentation/Library?id=questionradiogroupmodel) questions.
188
+ *
189
+ * Default value: 0 (unlimited, taken from `settings.propertyGrid.maximumChoicesCount`)
190
+ */
191
+ maximumChoicesCount?: number;
192
+ /**
193
+ * Limits the number of rows that users can add to [Matrix](https://surveyjs.io/Documentation/Library?id=questionmatrixmodel) and [Matrix Dropdown](https://surveyjs.io/Documentation/Library?id=questionmatrixdropdownmodel) questions.
194
+ *
195
+ * Default value: 0 (unlimited, taken from `settings.propertyGrid.maximumRowsCount`)
196
+ */
197
+ maximumRowsCount?: number;
198
+ /**
199
+ * Limits the number of rate value that users can add to [Rating](https://surveyjs.io/Documentation/Library?id=questionratingmodel) questions.
200
+ *
201
+ * Default value: 0 (unlimited, taken from `settings.propertyGrid.maximumRateValues`)
202
+ */
203
+ maximumRateValues?: number;
204
+ /**
205
+ * Limits the number of items in a logical expression.
206
+ *
207
+ * Default value: -1 (unlimited)
208
+ */
209
+ maxLogicItemsInCondition?: number;
210
+ /**
211
+ * Specifies whether users can switch between UI themes in the Preview tab.
212
+ *
213
+ * Default value: `true`
214
+ *
215
+ * [View Demo](https://surveyjs.io/Examples/Creator?id=theme-switcher (linkStyle))
216
+ */
217
+ allowChangeThemeInPreview?: boolean;
218
+ /**
219
+ * Specifies the orientation of the selected device in the Preview tab.
220
+ *
221
+ * Possible values:
222
+ * - `"landscape"` (default)
223
+ * - `"portrait"`
224
+ */
225
+ previewOrientation?: "landscape" | "portrait";
226
+ /**
227
+ * Limits question and panels types available in the Toolbox and Add Question menu.
228
+ *
229
+ * Refer to the [Limit Available Question and Panel Types](https://surveyjs.io/Documentation/Survey-Creator?id=toolbox#limit-available-question-and-panel-types) help topic for more information.
230
+ */
231
+ questionTypes?: Array<string>;
232
+ /**
233
+ * Specifies how Survey Creator users edit survey pages.
234
+ *
235
+ * Accepted values:
236
+ *
237
+ * - `"standard"` (default)
238
+ * Questions and panels are divided between pages. Users can scroll the design surface to reach a required page.
239
+ *
240
+ * - `"single"`
241
+ * All questions and panels belong to a single page. Users cannot add or remove pages.
242
+ *
243
+ * - `"bypage"`
244
+ * Questions and panels are divided between pages. Users can use the page navigator to switch to a required page.
245
+ */
246
+ pageEditMode?: "standard" | "single" | "bypage";
247
+ }
@@ -0,0 +1,22 @@
1
+ import { CreatorBase } from "./creator-base";
2
+ export declare class CreatorResponsivityManager {
3
+ protected container: HTMLDivElement;
4
+ private creator;
5
+ private resizeObserver;
6
+ private currentWidth;
7
+ private prevShowToolbox;
8
+ private prevShowPageNavigator;
9
+ static screenSizeBreakpoints: {
10
+ [key: string]: number;
11
+ };
12
+ private getScreenWidth;
13
+ private initMobileView;
14
+ private resetMobileView;
15
+ private procesShowToolbox;
16
+ private procesShowPageNavigator;
17
+ private findCorrectParent;
18
+ constructor(container: HTMLDivElement, creator: CreatorBase);
19
+ private _process;
20
+ process(): void;
21
+ dispose(): void;
22
+ }
@@ -0,0 +1,216 @@
1
+ import { Base, IAction, ItemValue, JsonObjectProperty, MatrixDropdownColumn, Question, SurveyModel, ILocalizableString, PopupBaseViewModel } from "survey-core";
2
+ /**
3
+ * List available question convert modes
4
+ */
5
+ export declare enum QuestionConvertMode {
6
+ AllTypes = 0,
7
+ CompatibleTypes = 1
8
+ }
9
+ export declare var settings: {
10
+ translation: {
11
+ sortByName: boolean;
12
+ exportPrefix: string;
13
+ /**
14
+ * The maximum number of locales that user can select at once for translation
15
+ */
16
+ maximumSelectedLocales: number;
17
+ /**
18
+ * The name of the translation export file in csv format
19
+ */
20
+ exportFileName: string;
21
+ };
22
+ operators: {
23
+ empty: any[];
24
+ notempty: any[];
25
+ equal: string[];
26
+ notequal: string[];
27
+ contains: string[];
28
+ notcontains: string[];
29
+ anyof: string[];
30
+ allof: string[];
31
+ greater: string[];
32
+ less: string[];
33
+ greaterorequal: string[];
34
+ lessorequal: string[];
35
+ };
36
+ defaultNewSurveyJSON: {};
37
+ designer: {
38
+ /**
39
+ * The default question type on clicking Add Question button.
40
+ */
41
+ defaultAddQuestionType: string;
42
+ /**
43
+ * Set this property to false, to hide "Add Question" button on designer surface
44
+ */
45
+ showAddQuestionButton: boolean;
46
+ };
47
+ logic: {
48
+ defaultOperator: string;
49
+ visibleActions: any[];
50
+ logicItemTitleMaxChars: number;
51
+ openBracket: string;
52
+ closeBracket: string;
53
+ /**
54
+ * Set these properties to false if you don't want to update expressions on changing question and column names and on changing choices values
55
+ */
56
+ updateExpressionsOnChanging: {
57
+ questionName: boolean;
58
+ columnName: boolean;
59
+ choiceValue: boolean;
60
+ };
61
+ };
62
+ /**
63
+ * Determines which types of questions the conversion will be available for.
64
+ */
65
+ questionConvertMode: QuestionConvertMode;
66
+ propertyGrid: {
67
+ useButtonGroup: boolean;
68
+ maxCharsInButtonGroup: number;
69
+ showNavigationButtons: boolean;
70
+ maximumColumnsCount: number;
71
+ maximumChoicesCount: number;
72
+ maximumRowsCount: number;
73
+ maximumRateValues: number;
74
+ generalTabName: string;
75
+ defaultExpandedTabName: string;
76
+ };
77
+ toolbox: {
78
+ /**
79
+ * Use it to change the default question JSON on dropping it into designer or converting questions
80
+ */
81
+ defaultJSON: {
82
+ dropdown: {
83
+ choices: string[];
84
+ };
85
+ tagbox: {
86
+ choices: string[];
87
+ };
88
+ checkbox: {
89
+ choices: string[];
90
+ };
91
+ radiogroup: {
92
+ choices: string[];
93
+ };
94
+ ranking: {
95
+ choices: string[];
96
+ };
97
+ imagepicker: {
98
+ choices: {
99
+ value: string;
100
+ imageLink: string;
101
+ }[];
102
+ };
103
+ image: {
104
+ imageLink: string;
105
+ };
106
+ };
107
+ };
108
+ /**
109
+ * Notification settings
110
+ */
111
+ notifications: {
112
+ lifetime: number;
113
+ };
114
+ /**
115
+ * Auto save parameters
116
+ */
117
+ autoSave: {
118
+ delay: number;
119
+ };
120
+ /**
121
+ * Drag Drop Settings
122
+ */
123
+ dragDrop: {
124
+ restrictDragQuestionBetweenPages: boolean;
125
+ };
126
+ /**
127
+ * Creator layout settings
128
+ */
129
+ layout: {
130
+ showTabs: boolean;
131
+ showToolbar: boolean;
132
+ allowCollapseSidebar: boolean;
133
+ };
134
+ jsonEditor: {
135
+ indentation: number;
136
+ };
137
+ };
138
+ export interface ICollectionItemAllowOperations {
139
+ allowDelete: boolean;
140
+ allowEdit: boolean;
141
+ allowAdd: boolean;
142
+ }
143
+ export interface ISurveyCreatorOptions {
144
+ isMobileView: boolean;
145
+ alwaySaveTextInPropertyEditors: boolean;
146
+ readOnly: boolean;
147
+ maxLogicItemsInCondition: number;
148
+ showTitlesInExpressions: boolean;
149
+ showObjectTitles: boolean;
150
+ allowEditExpressionsInTextEditor: boolean;
151
+ maximumColumnsCount: number;
152
+ maximumChoicesCount: number;
153
+ maximumRowsCount: number;
154
+ maximumRateValues: number;
155
+ getObjectDisplayName(obj: Base, area: string, reason: string, displayName: string): string;
156
+ onCanShowPropertyCallback(object: any, property: JsonObjectProperty, showMode: string, parentObj: any, parentProperty: JsonObjectProperty): boolean;
157
+ onPropertyEditorCreatedCallback(object: any, property: JsonObjectProperty, editor: Question): any;
158
+ onPropertyGridSurveyCreatedCallback(object: any, survey: SurveyModel): any;
159
+ onPropertyEditorUpdateTitleActionsCallback(object: any, property: JsonObjectProperty, editor: Question, titleActions: IAction[]): any;
160
+ onPropertyGridShowModalCallback(object: any, property: JsonObjectProperty, editor: Question, popupEditor: any, popupModel: PopupBaseViewModel): any;
161
+ onIsPropertyReadOnlyCallback(obj: Base, property: JsonObjectProperty, readOnly: boolean, parentObj: Base, parentProperty: JsonObjectProperty): boolean;
162
+ onCanDeleteItemCallback(object: any, item: Base, allowDelete: boolean): boolean;
163
+ onCollectionItemDeletingCallback(obj: Base, property: JsonObjectProperty, collection: Array<Base>, item: Base): boolean;
164
+ onCollectionItemAllowingCallback(obj: Base, property: JsonObjectProperty, collection: Array<Base>, item: Base, options: ICollectionItemAllowOperations): void;
165
+ onItemValueAddedCallback(obj: Base, propertyName: string, itemValue: ItemValue, itemValues: Array<ItemValue>): any;
166
+ onMatrixDropdownColumnAddedCallback(matrix: Question, column: MatrixDropdownColumn, columns: Array<MatrixDropdownColumn>): any;
167
+ onSetPropertyEditorOptionsCallback(propertyName: string, obj: Base, editorOptions: any): any;
168
+ onGetErrorTextOnValidationCallback(propertyName: string, obj: Base, value: any): string;
169
+ onValueChangingCallback(options: any): any;
170
+ onGetElementEditorTitleCallback(obj: Base, title: string): string;
171
+ startUndoRedoTransaction(): any;
172
+ stopUndoRedoTransaction(): any;
173
+ createSurvey(json: any, reason: string, surveyType?: new (json: any) => SurveyModel): any;
174
+ onConditionQuestionsGetListCallback(propertyName: string, obj: Base, editor: any, list: any[]): string;
175
+ onConditionGetTitleCallback(expression: string, title: string): string;
176
+ onLogicGetTitleCallback(expression: string, displayExpression: string, text: string, logicItem: any): string;
177
+ getProcessedTranslationItemText(locale: string, locString: ILocalizableString, newText: string, obj: any): string;
178
+ getTranslationExportedText(obj: Base, name: string, locString: ILocalizableString, locale: string, text: string): string;
179
+ }
180
+ export declare class EmptySurveyCreatorOptions implements ISurveyCreatorOptions {
181
+ getProcessedTranslationItemText(locale: string, locString: ILocalizableString, newText: string, obj: any): string;
182
+ isMobileView: boolean;
183
+ alwaySaveTextInPropertyEditors: boolean;
184
+ readOnly: boolean;
185
+ maxLogicItemsInCondition: number;
186
+ showTitlesInExpressions: boolean;
187
+ showObjectTitles: boolean;
188
+ allowEditExpressionsInTextEditor: boolean;
189
+ maximumColumnsCount: number;
190
+ maximumChoicesCount: number;
191
+ maximumRowsCount: number;
192
+ maximumRateValues: number;
193
+ getObjectDisplayName(obj: Base, area: string, reason: string, displayName: string): string;
194
+ onCanShowPropertyCallback(object: any, property: JsonObjectProperty, showMode: string, parentObj: any, parentProperty: JsonObjectProperty): boolean;
195
+ onPropertyGridSurveyCreatedCallback(object: any, survey: SurveyModel): void;
196
+ onPropertyEditorCreatedCallback(object: any, property: JsonObjectProperty, editor: Question): void;
197
+ onPropertyEditorUpdateTitleActionsCallback(object: any, property: JsonObjectProperty, editor: Question, titleActions: IAction[]): void;
198
+ onPropertyGridShowModalCallback(object: any, property: JsonObjectProperty, editor: Question, popupEditor: any, popupModel: PopupBaseViewModel): void;
199
+ onIsPropertyReadOnlyCallback(obj: Base, property: JsonObjectProperty, readOnly: boolean, parentObj: Base, parentProperty: JsonObjectProperty): boolean;
200
+ onCanDeleteItemCallback(object: any, item: Base, allowDelete: boolean): boolean;
201
+ onCollectionItemDeletingCallback(obj: Base, property: JsonObjectProperty, collection: Array<Base>, item: Base): boolean;
202
+ onCollectionItemAllowingCallback(obj: Base, property: JsonObjectProperty, collection: Array<Base>, item: Base, options: ICollectionItemAllowOperations): void;
203
+ onItemValueAddedCallback(obj: Base, propertyName: string, itemValue: ItemValue, itemValues: Array<ItemValue>): void;
204
+ onMatrixDropdownColumnAddedCallback(matrix: Question, column: MatrixDropdownColumn, columns: Array<MatrixDropdownColumn>): void;
205
+ onSetPropertyEditorOptionsCallback(propertyName: string, obj: Base, editorOptions: any): void;
206
+ onGetErrorTextOnValidationCallback(propertyName: string, obj: Base, value: any): string;
207
+ onValueChangingCallback(options: any): void;
208
+ onGetElementEditorTitleCallback(obj: Base, title: string): string;
209
+ startUndoRedoTransaction(): void;
210
+ stopUndoRedoTransaction(): void;
211
+ createSurvey(json: any, reason: string, surveyType?: new (json: any) => SurveyModel): SurveyModel;
212
+ onConditionQuestionsGetListCallback(propertyName: string, obj: Base, editor: any, list: any[]): string;
213
+ onConditionGetTitleCallback(expression: string, title: string): string;
214
+ onLogicGetTitleCallback(expression: string, displayExpression: string, text: string, logicItem: any): string;
215
+ getTranslationExportedText(obj: Base, name: string, locString: ILocalizableString, locale: string, text: string): string;
216
+ }
@@ -0,0 +1,15 @@
1
+ import { QuestionTextModel } from "survey-core";
2
+ export declare class QuestionColorModel extends QuestionTextModel {
3
+ unit: string;
4
+ private getCorrectedValue;
5
+ protected setNewValue(newValue: string): void;
6
+ onBeforeInput(event: InputEvent): void;
7
+ onColorInputChange(event: Event): void;
8
+ getType(): string;
9
+ _renderedValue: string;
10
+ get renderedValue(): string;
11
+ getSwatchStyle(): {
12
+ [index: string]: string;
13
+ };
14
+ get isInputTextUpdate(): boolean;
15
+ }
@@ -0,0 +1,15 @@
1
+ import { QuestionFileModel } from "survey-core";
2
+ export declare class QuestionFileEditorModel extends QuestionFileModel {
3
+ protected loadedFilesValue: any;
4
+ protected onChangeQuestionValue(newValue: any): void;
5
+ protected setNewValue(newValue: any): void;
6
+ protected loadPreview(newValue: any): void;
7
+ get allowMultiple(): boolean;
8
+ set allowMultiple(val: boolean);
9
+ clear(doneCallback?: () => void, shouldClearValue?: boolean): void;
10
+ protected updateValueFromInputEvent(event: Event): void;
11
+ onInputChange(event: Event): void;
12
+ onInputBlur(event: Event): void;
13
+ getType(): string;
14
+ getIsClearButtonDisabled(): boolean;
15
+ }
@@ -0,0 +1,25 @@
1
+ import { QuestionTextModel } from "survey-core";
2
+ export declare class QuestionSpinEditorModel extends QuestionTextModel {
3
+ unit: string;
4
+ private _showUnitsInEditor;
5
+ private parseValue;
6
+ private changeValue;
7
+ private get showUnitsInEditor();
8
+ private correctValue;
9
+ protected setNewValue(newValue: string | number): void;
10
+ get renderedValue(): string;
11
+ private increase;
12
+ decrease(): void;
13
+ private increaseTimer;
14
+ private decreaseTimer;
15
+ onUpButtonMouseDown: () => void;
16
+ onDownButtonMouseDown: () => void;
17
+ onButtonMouseUp: () => void;
18
+ onKeyDown: (event: KeyboardEvent) => void;
19
+ onInputKeyDown: (event: KeyboardEvent) => void;
20
+ onBeforeInput(event: InputEvent): void;
21
+ onFocus: (event: Event) => void;
22
+ onBlur: (event: Event) => void;
23
+ getType(): string;
24
+ get isInputTextUpdate(): boolean;
25
+ }
@@ -0,0 +1,20 @@
1
+ import { Base, SurveyModel } from "survey-core";
2
+ export declare class EditableObject {
3
+ static isCopyObject(obj: any): boolean;
4
+ static getSurvey(object: any): SurveyModel;
5
+ static getOriginalObject(object: any): any;
6
+ static getOriginalSurvey(survey: SurveyModel): SurveyModel;
7
+ private objValue;
8
+ private editableObjValue;
9
+ constructor(obj: Base);
10
+ get obj(): Base;
11
+ get editableObj(): Base;
12
+ isPropertyChanged(propertyName: string): boolean;
13
+ apply(propertyName: string): void;
14
+ reset(): void;
15
+ applyAll(excludedProps?: Array<string>): void;
16
+ private getProperties;
17
+ protected createEditableObj(): Base;
18
+ private assignProperties;
19
+ private getObjJson;
20
+ }