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,327 @@
1
+ export declare var logicCss: {
2
+ root: string;
3
+ container: string;
4
+ header: string;
5
+ body: string;
6
+ bodyEmpty: string;
7
+ footer: string;
8
+ title: string;
9
+ description: string;
10
+ logo: string;
11
+ logoImage: string;
12
+ headerText: string;
13
+ navigationButton: string;
14
+ completedPage: string;
15
+ navigation: {
16
+ complete: string;
17
+ prev: string;
18
+ next: string;
19
+ start: string;
20
+ preview: string;
21
+ edit: string;
22
+ };
23
+ panel: {
24
+ title: string;
25
+ titleExpandable: string;
26
+ titleOnExpand: string;
27
+ titleOnError: string;
28
+ description: string;
29
+ container: string;
30
+ content: string;
31
+ icon: string;
32
+ iconExpanded: string;
33
+ footer: string;
34
+ requiredText: string;
35
+ };
36
+ paneldynamic: {
37
+ mainRoot: string;
38
+ root: string;
39
+ navigation: string;
40
+ title: string;
41
+ button: string;
42
+ buttonRemove: string;
43
+ buttonAdd: string;
44
+ progressTop: string;
45
+ progressBottom: string;
46
+ buttonPrev: string;
47
+ buttonNext: string;
48
+ progressContainer: string;
49
+ progress: string;
50
+ progressBar: string;
51
+ progressText: string;
52
+ separator: string;
53
+ panelWrapper: string;
54
+ panelWrapperInRow: string;
55
+ };
56
+ progress: string;
57
+ progressBar: string;
58
+ progressText: string;
59
+ progressTextInBar: string;
60
+ page: {
61
+ root: string;
62
+ title: string;
63
+ description: string;
64
+ };
65
+ pageTitle: string;
66
+ pageDescription: string;
67
+ row: string;
68
+ rowMultiple: string;
69
+ question: {
70
+ mainRoot: string;
71
+ flowRoot: string;
72
+ asCell: string;
73
+ header: string;
74
+ headerLeft: string;
75
+ headerTop: string;
76
+ headerBottom: string;
77
+ content: string;
78
+ contentLeft: string;
79
+ titleLeftRoot: string;
80
+ titleOnAnswer: string;
81
+ titleOnError: string;
82
+ title: string;
83
+ requiredText: string;
84
+ number: string;
85
+ description: string;
86
+ descriptionUnderInput: string;
87
+ comment: string;
88
+ required: string;
89
+ titleRequired: string;
90
+ indent: number;
91
+ footer: string;
92
+ formGroup: string;
93
+ hasError: string;
94
+ disabled: string;
95
+ };
96
+ image: {
97
+ root: string;
98
+ };
99
+ error: {
100
+ root: string;
101
+ icon: string;
102
+ item: string;
103
+ locationTop: string;
104
+ locationBottom: string;
105
+ };
106
+ checkbox: {
107
+ root: string;
108
+ item: string;
109
+ itemSelectAll: string;
110
+ itemNone: string;
111
+ itemDisabled: string;
112
+ itemChecked: string;
113
+ itemHover: string;
114
+ itemInline: string;
115
+ label: string;
116
+ labelChecked: string;
117
+ itemControl: string;
118
+ itemDecorator: string;
119
+ controlLabel: string;
120
+ materialDecorator: string;
121
+ other: string;
122
+ column: string;
123
+ };
124
+ radiogroup: {
125
+ root: string;
126
+ item: string;
127
+ itemInline: string;
128
+ label: string;
129
+ labelChecked: string;
130
+ itemDisabled: string;
131
+ itemChecked: string;
132
+ itemHover: string;
133
+ itemControl: string;
134
+ itemDecorator: string;
135
+ controlLabel: string;
136
+ materialDecorator: string;
137
+ other: string;
138
+ clearButton: string;
139
+ column: string;
140
+ };
141
+ boolean: {
142
+ mainRoot: string;
143
+ root: string;
144
+ item: string;
145
+ control: string;
146
+ itemChecked: string;
147
+ itemIndeterminate: string;
148
+ itemDisabled: string;
149
+ label: string;
150
+ switch: string;
151
+ disabledLabel: string;
152
+ itemDecorator: string;
153
+ materialDecorator: string;
154
+ sliderText: string;
155
+ slider: string;
156
+ };
157
+ text: {
158
+ root: string;
159
+ small: string;
160
+ controlDisabled: string;
161
+ onError: string;
162
+ };
163
+ multipletext: {
164
+ root: string;
165
+ item: string;
166
+ itemTitle: string;
167
+ row: string;
168
+ cell: string;
169
+ };
170
+ dropdown: {
171
+ root: string;
172
+ popup: string;
173
+ small: string;
174
+ control: string;
175
+ selectWrapper: string;
176
+ other: string;
177
+ onError: string;
178
+ label: string;
179
+ item: string;
180
+ itemDisabled: string;
181
+ itemChecked: string;
182
+ itemHover: string;
183
+ itemControl: string;
184
+ itemDecorator: string;
185
+ controlDisabled: string;
186
+ controlLabel: string;
187
+ materialDecorator: string;
188
+ controlValue: string;
189
+ };
190
+ imagepicker: {
191
+ root: string;
192
+ item: string;
193
+ itemInline: string;
194
+ itemChecked: string;
195
+ itemDisabled: string;
196
+ itemHover: string;
197
+ label: string;
198
+ itemControl: string;
199
+ image: string;
200
+ itemText: string;
201
+ clearButton: string;
202
+ other: string;
203
+ };
204
+ matrix: {
205
+ mainRoot: string;
206
+ tableWrapper: string;
207
+ root: string;
208
+ row: string;
209
+ rowAdditional: string;
210
+ rowError: string;
211
+ cell: string;
212
+ headerCell: string;
213
+ label: string;
214
+ itemValue: string;
215
+ itemChecked: string;
216
+ itemDisabled: string;
217
+ itemHover: string;
218
+ materialDecorator: string;
219
+ itemDecorator: string;
220
+ cellText: string;
221
+ cellTextSelected: string;
222
+ cellTextDisabled: string;
223
+ };
224
+ matrixdropdown: {
225
+ tableWrapper: string;
226
+ mainRoot: string;
227
+ root: string;
228
+ row: string;
229
+ rowAdditional: string;
230
+ cell: string;
231
+ headerCell: string;
232
+ };
233
+ matrixdynamic: {
234
+ tableWrapper: string;
235
+ mainRoot: string;
236
+ root: string;
237
+ row: string;
238
+ rowAdditional: string;
239
+ cell: string;
240
+ headerCell: string;
241
+ button: string;
242
+ detailRow: string;
243
+ detailButton: string;
244
+ detailButtonExpanded: string;
245
+ detailIcon: string;
246
+ detailIconExpanded: string;
247
+ detailPanelCell: string;
248
+ actionsCell: string;
249
+ buttonAdd: string;
250
+ buttonRemove: string;
251
+ iconAdd: string;
252
+ iconRemove: string;
253
+ };
254
+ rating: {
255
+ root: string;
256
+ item: string;
257
+ itemHover: string;
258
+ selected: string;
259
+ minText: string;
260
+ itemText: string;
261
+ maxText: string;
262
+ itemDisabled: string;
263
+ };
264
+ comment: {
265
+ mainRoot: string;
266
+ root: string;
267
+ small: string;
268
+ };
269
+ expression: string;
270
+ file: {
271
+ root: string;
272
+ other: string;
273
+ placeholderInput: string;
274
+ preview: string;
275
+ fileSign: string;
276
+ fileSignBottom: string;
277
+ fileDecorator: string;
278
+ fileInput: string;
279
+ noFileChosen: string;
280
+ chooseFile: string;
281
+ disabled: string;
282
+ removeButton: string;
283
+ removeButtonBottom: string;
284
+ removeFile: string;
285
+ removeFileSvg: string;
286
+ wrapper: string;
287
+ };
288
+ signaturepad: {
289
+ root: string;
290
+ small: string;
291
+ controls: string;
292
+ placeholder: string;
293
+ clearButton: string;
294
+ };
295
+ saveData: {
296
+ root: string;
297
+ saving: string;
298
+ error: string;
299
+ success: string;
300
+ saveAgainButton: string;
301
+ };
302
+ window: {
303
+ root: string;
304
+ body: string;
305
+ header: {
306
+ root: string;
307
+ title: string;
308
+ button: string;
309
+ buttonExpanded: string;
310
+ buttonCollapsed: string;
311
+ };
312
+ };
313
+ embeddedsurvey: {
314
+ mainRoot: string;
315
+ };
316
+ actionBar: {
317
+ root: string;
318
+ defaultSizeMode: string;
319
+ smallSizeMode: string;
320
+ item: string;
321
+ itemActive: string;
322
+ itemPressed: string;
323
+ itemIcon: string;
324
+ itemTitle: string;
325
+ itemTitleWithIcon: string;
326
+ };
327
+ };
@@ -0,0 +1,77 @@
1
+ import { SurveyModel, Base, Question, SurveyElement } from "survey-core";
2
+ import { ISurveyCreatorOptions } from "../../creator-settings";
3
+ export declare function getLogicString(name: string): string;
4
+ export interface ISurveyLogicType {
5
+ name: string;
6
+ baseClass: string;
7
+ propertyName: string;
8
+ dynamicPropertyName?: string;
9
+ dependedOnPropertyName?: string;
10
+ isInvisible?: boolean;
11
+ showInUI?: boolean;
12
+ showIf?: (survey: SurveyModel) => boolean;
13
+ getCollection?: (survey: SurveyModel) => Array<Base>;
14
+ isUniqueItem?: boolean;
15
+ questionNames?: Array<string>;
16
+ getDisplayText?: (element: Base, formatStr: string, lt: SurveyLogicType) => string;
17
+ getElementName?: (element: Base) => string;
18
+ getSelectorChoices?: (survey: SurveyModel, context: Question) => Array<SurveyElement<any>>;
19
+ supportContext?: (question: Base) => boolean;
20
+ getParentElement?(element: Base): Base;
21
+ }
22
+ export declare class SurveyLogicType {
23
+ private logicType;
24
+ survey: SurveyModel;
25
+ options: ISurveyCreatorOptions;
26
+ static expressionToDisplayText(survey: SurveyModel, options: ISurveyCreatorOptions, expression: string): string;
27
+ constructor(logicType: ISurveyLogicType, survey: SurveyModel, options?: ISurveyCreatorOptions);
28
+ private mergeWithBaseClass;
29
+ get name(): string;
30
+ get baseClass(): string;
31
+ get propertyName(): string;
32
+ get hasVisibleElements(): boolean;
33
+ get dynamicPropertyName(): string;
34
+ get dependedOnPropertyName(): string;
35
+ get visible(): boolean;
36
+ get showTitlesInExpression(): boolean;
37
+ createNewObj(srcObj: Base): Base;
38
+ cloneElement(el: Base): Base;
39
+ areElementsEqual(el1: Base, el2: Base): boolean;
40
+ saveNewElement(el: Base): void;
41
+ get showInUI(): boolean;
42
+ get isUniqueItem(): boolean;
43
+ get questionNames(): Array<string>;
44
+ get displayName(): string;
45
+ get description(): string;
46
+ getParentElement(element: Base): Base;
47
+ get hasSelectorChoices(): boolean;
48
+ getSelectorChoices(survey: SurveyModel, context: Question): Array<SurveyElement<any>>;
49
+ getDisplayText(element: Base): string;
50
+ private getElementDisplayName;
51
+ private getElementByName;
52
+ formatElName(name: string): string;
53
+ formatExpression(expression: string): string;
54
+ supportContext(context: Base): boolean;
55
+ private get isTrigger();
56
+ }
57
+ export declare class SurveyLogicTypes {
58
+ static baseTypes: {
59
+ panel: {
60
+ showIf: (survey: SurveyModel) => boolean;
61
+ getSelectorChoices(survey: SurveyModel, context: Question): Array<SurveyElement<any>>;
62
+ };
63
+ question: {
64
+ showIf: (survey: SurveyModel) => boolean;
65
+ supportContext(context: Base): boolean;
66
+ getParentElement(element: Base): Base;
67
+ getSelectorChoices(survey: SurveyModel, context: Question): Array<SurveyElement<any>>;
68
+ };
69
+ matrixdropdowncolumn: {
70
+ showIf: (survey: SurveyModel) => boolean;
71
+ supportContext(context: Base): boolean;
72
+ getParentElement(element: Base): Base;
73
+ getSelectorChoices(survey: SurveyModel, context: Question): Array<SurveyElement<any>>;
74
+ };
75
+ };
76
+ static types: Array<ISurveyLogicType>;
77
+ }
@@ -0,0 +1,68 @@
1
+ import { SurveyModel, Action, QuestionMatrixDynamicModel } from "survey-core";
2
+ import { ConditionEditor } from "../../property-grid/condition-survey";
3
+ import { ISurveyCreatorOptions } from "../../creator-settings";
4
+ import { LogicItemEditor } from "./logic-item-editor";
5
+ import { SurveyLogicAction, SurveyLogicItem } from "./logic-items";
6
+ import { SurveyLogic } from "./logic";
7
+ export declare class SurveyLogicUI extends SurveyLogic {
8
+ survey: SurveyModel;
9
+ options: ISurveyCreatorOptions;
10
+ private expressionEditorValue;
11
+ private itemEditorValue;
12
+ itemsSurveyValue: SurveyModel;
13
+ expressionEditorIsFastEntry: boolean;
14
+ expressionEditorCanShowBuilder: boolean;
15
+ private visibleItems;
16
+ private itemUIHash;
17
+ addNewButton: Action;
18
+ constructor(survey: SurveyModel, options?: ISurveyCreatorOptions);
19
+ update(survey?: SurveyModel, options?: ISurveyCreatorOptions): void;
20
+ questionFilter: string;
21
+ actionTypeFilter: string;
22
+ dispose(): void;
23
+ addNewUI(): void;
24
+ toggleExpressionEditorIsFastEntry(): void;
25
+ updateEditableItemIsModifiedState(): void;
26
+ private getUnsavedItems;
27
+ private getErroredItem;
28
+ private isErroredItem;
29
+ private showErroredItem;
30
+ private saveItem;
31
+ tryLeaveUI(resultFunc?: (res: boolean) => void): boolean | undefined;
32
+ protected confirmLeavingOnError(onLeaving: () => void, onStaying: () => void): boolean;
33
+ protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
34
+ protected onReadOnlyChanged(): void;
35
+ get expressionEditor(): ConditionEditor;
36
+ get itemEditor(): LogicItemEditor;
37
+ getExpressionEditor(item: SurveyLogicItem): ConditionEditor;
38
+ getLogicItemEditor(item: SurveyLogicItem): LogicItemEditor;
39
+ private updateEditModeLogicItem;
40
+ private getLogicItemUI;
41
+ private findLogicItemUI;
42
+ get expressionSurvey(): SurveyModel;
43
+ get itemEditorSurvey(): SurveyModel;
44
+ get itemsSurvey(): SurveyModel;
45
+ get hasItems(): boolean;
46
+ get matrixItems(): QuestionMatrixDynamicModel;
47
+ protected onStartEditing(): void;
48
+ protected onEndEditing(): void;
49
+ protected onEditableItemApply(): void;
50
+ private doItemApply;
51
+ protected hasErrorInUI(): boolean;
52
+ protected getExpressionText(): string;
53
+ protected getEditingActions(): Array<SurveyLogicAction>;
54
+ protected getLogicItemSurveyJSON(): any;
55
+ private getTwoColumnsLayout;
56
+ private getOneColumnLayout;
57
+ private createExpressionPropertyEditor;
58
+ private getVisibleItems;
59
+ private getDataFromItem;
60
+ private getLogicItemDisplayText;
61
+ private updateItemsSurveyData;
62
+ private updateRenderedRows;
63
+ private updateRowIsAdditionalClasses;
64
+ private updateNewActionState;
65
+ private setupToolbarItems;
66
+ get addNewText(): string;
67
+ get emptyTabPlaceholder(): string;
68
+ }
@@ -0,0 +1,102 @@
1
+ import { SurveyModel, Base, Question, ItemValue, MatrixDropdownColumn, QuestionDropdownModel, EventBase } from "survey-core";
2
+ import { ISurveyCreatorOptions } from "../../creator-settings";
3
+ import { ISurveyLogicItemOwner, SurveyLogicItem, SurveyLogicAction } from "./logic-items";
4
+ import { SurveyLogicType } from "./logic-types";
5
+ export declare function initLogicOperator(question: QuestionDropdownModel): void;
6
+ export declare class LogicEvent extends EventBase<SurveyLogic, any> {
7
+ }
8
+ export declare class SurveyLogic extends Base implements ISurveyLogicItemOwner {
9
+ survey: SurveyModel;
10
+ options: ISurveyCreatorOptions;
11
+ private editableItemValue;
12
+ static get visibleActions(): Array<string>;
13
+ static set visibleActions(val: Array<string>);
14
+ static get types(): import("./logic-types").ISurveyLogicType[];
15
+ invisibleItems: Array<SurveyLogicItem>;
16
+ onChangedCallback: (item: SurveyLogicItem, changeType: string) => void;
17
+ /**
18
+ * The event is called when logic item is saved.
19
+ * options.item is the saved logic item.
20
+ */
21
+ onLogicItemSaved: LogicEvent;
22
+ /**
23
+ * The event is called before logic item is saved. You can set options.error to non empty string to show error instead of saving the item.
24
+ * You can use options.item.actions to access actions and optionally set errorText to a particular action.
25
+ * options.item is the editing logic item. options.item.actions contains the old actions.
26
+ * options.actions is the array of logic actions that user edit and create.
27
+ * usedNamesInExpression - the string list of all variables (questions, calculatedValues, and so on) that are used in expression
28
+ * error - the error string. It is empty by default. You have to set it to non-empty string to show the error on saving.
29
+ */
30
+ onLogicItemValidation: LogicEvent;
31
+ /**
32
+ * The event is called before logic item is being removed.
33
+ * options.allowRemove is the option you can set to false and prevent removing.
34
+ * options.item is the logic item to remove.
35
+ */
36
+ onLogicItemRemoving: LogicEvent;
37
+ /**
38
+ * The event is called when logic item is removed.
39
+ * options.item is the removed logic item.
40
+ */
41
+ onLogicItemRemoved: LogicEvent;
42
+ constructor(survey: SurveyModel, options?: ISurveyCreatorOptions);
43
+ dispose(): void;
44
+ items: Array<SurveyLogicItem>;
45
+ logicTypes: Array<SurveyLogicType>;
46
+ errorText: string;
47
+ readOnly: boolean;
48
+ placeholderHtml: string;
49
+ get editableItem(): SurveyLogicItem;
50
+ private modeValue;
51
+ /**
52
+ * There are 3 modes: view, new, edit
53
+ */
54
+ get mode(): string;
55
+ set mode(val: string);
56
+ getLocString(name: string): string;
57
+ getTypeByName(name: string): SurveyLogicType;
58
+ update(survey?: SurveyModel, options?: ISurveyCreatorOptions): void;
59
+ private updateVisibleItems;
60
+ get optionsReadOnly(): boolean;
61
+ saveEditableItem(): boolean;
62
+ saveEditableItemAndBack(): boolean;
63
+ protected onEditableItemApply(): void;
64
+ protected onItemChanged(item: SurveyLogicItem, changeType: string): void;
65
+ renameQuestion(oldName: string, newName: string): void;
66
+ renameItemValue(item: ItemValue, oldValue: any): void;
67
+ renameRowValue(item: ItemValue, oldValue: any): void;
68
+ renameColumn(column: MatrixDropdownColumn, oldName: string): void;
69
+ private getItemValueQuestion;
70
+ removeQuestion(name: string): void;
71
+ hasError(): boolean;
72
+ getUsedQuestions(): Question[];
73
+ getUsedActionTypes(): SurveyLogicType[];
74
+ protected hasErrorInUI(): boolean;
75
+ protected getExpressionText(): string;
76
+ protected getEditingActions(): Array<SurveyLogicAction>;
77
+ protected onReadOnlyChanged(): void;
78
+ private removeQuestionCore;
79
+ addNew(): void;
80
+ editItem(item: SurveyLogicItem): void;
81
+ private editItemCore;
82
+ protected onStartEditing(): void;
83
+ protected onEndEditing(): void;
84
+ protected canRemoveItem(item: SurveyLogicItem): boolean;
85
+ removeItem(item: SurveyLogicItem, checkCanRemove?: boolean): void;
86
+ addAction(lt: SurveyLogicType, element?: Base): SurveyLogicAction;
87
+ addNewAction(): SurveyLogicAction;
88
+ private createNewAction;
89
+ getVisibleLogicTypes(): Array<SurveyLogicType>;
90
+ removeAction(action: SurveyLogicAction): void;
91
+ getExpressionAsDisplayText(expression: string): string;
92
+ protected buildItems(showInUI: boolean): Array<SurveyLogicItem>;
93
+ protected getAllElements(): Array<Base>;
94
+ private getValidators;
95
+ private getItemValues;
96
+ private AddElements;
97
+ private buildItemsByElement;
98
+ private getLogicItemHashKey;
99
+ private getParentQuestion;
100
+ private getElementAllTypes;
101
+ protected createLogicTypes(): Array<SurveyLogicType>;
102
+ }
@@ -0,0 +1,33 @@
1
+ import { Action } from "survey-core";
2
+ import { CreatorBase, ICreatorPlugin } from "../../creator-base";
3
+ import { TestSurveyTabViewModel } from "./test";
4
+ export declare class TabTestPlugin implements ICreatorPlugin {
5
+ private creator;
6
+ private languageSelectorAction;
7
+ private changeThemePopupModel;
8
+ private changeThemeModel;
9
+ protected changeThemeAction: Action;
10
+ private deviceSelectorAction;
11
+ private orientationSelectorAction;
12
+ private invisibleToggleAction;
13
+ private testAgainAction;
14
+ private designerAction;
15
+ private prevPageAction;
16
+ private nextPageAction;
17
+ private simulatorTheme;
18
+ model: TestSurveyTabViewModel;
19
+ private getSimulatorDevicesTitle;
20
+ private setDevice;
21
+ private setDefaultLanguageOption;
22
+ private getLanguages;
23
+ private updateActions;
24
+ private setPreviewTheme;
25
+ constructor(creator: CreatorBase);
26
+ activate(): void;
27
+ update(): void;
28
+ deactivate(): boolean;
29
+ private getAvailableThemes;
30
+ private getThemeLocName;
31
+ createActions(): Array<Action>;
32
+ addFooterActions(): void;
33
+ }
@@ -0,0 +1,43 @@
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 class TestSurveyTabViewModel extends Base {
5
+ private surveyProvider;
6
+ private startTheme;
7
+ private json;
8
+ pages: ActionContainer;
9
+ prevPageAction: Action;
10
+ testAgainAction: Action;
11
+ nextPageAction: Action;
12
+ private selectPageAction;
13
+ onSurveyCreatedCallback: (survey: SurveyModel) => any;
14
+ simulator: SurveySimulatorModel;
15
+ showInvisibleElements: any;
16
+ showPagesInTestSurveyTab: any;
17
+ isRunning: boolean;
18
+ pageListItems: Array<IAction>;
19
+ activePage: PageModel;
20
+ get activeLanguage(): string;
21
+ set activeLanguage(val: string);
22
+ get survey(): SurveyModel;
23
+ get pageActions(): Array<Action>;
24
+ get isPageToolbarVisible(): boolean;
25
+ constructor(surveyProvider: CreatorBase, startTheme?: any);
26
+ updateSimulatorSurvey(json: any, theme: any): void;
27
+ setJSON(json: any, currTheme: any): void;
28
+ initialize(json: any, options: any): void;
29
+ private updatePageItem;
30
+ private getCurrentPageItem;
31
+ private getSelectPageTitle;
32
+ private getPageTitle;
33
+ private updatePageList;
34
+ show(): void;
35
+ testAgain(): void;
36
+ buildActions(): void;
37
+ private setActivePageItem;
38
+ private getPageItemByPage;
39
+ private updateResultsTemplate;
40
+ setTheme(themeName: string, themeMapper: any): void;
41
+ protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
42
+ private updatePrevNextPageActionState;
43
+ }
@@ -0,0 +1,33 @@
1
+ import { Action } from "survey-core";
2
+ import { CreatorBase, ICreatorPlugin } from "../../creator-base";
3
+ import { Translation } from "./translation";
4
+ export declare class TabTranslationPlugin implements ICreatorPlugin {
5
+ private creator;
6
+ private filterStringsAction;
7
+ private filterPageAction;
8
+ private mergeLocaleWithDefaultAction;
9
+ private importCsvAction;
10
+ private exportCsvAction;
11
+ private inputFileElement;
12
+ private sidebarTab;
13
+ model: Translation;
14
+ constructor(creator: CreatorBase);
15
+ activate(): void;
16
+ update(): void;
17
+ deactivate(): boolean;
18
+ private createMergeLocaleWithDefaultActionTitleUpdater;
19
+ get selectLanguageOptionsCaption(): string;
20
+ get showAllStringsText(): string;
21
+ get showUsedStringsOnlyText(): string;
22
+ get showAllPagesText(): string;
23
+ get exportToCSVText(): string;
24
+ get importFromCSVText(): string;
25
+ createActions(): Array<Action>;
26
+ private createFilterPageAction;
27
+ private createFilterStringsAction;
28
+ private updateFilterStrigsAction;
29
+ private updateFilterPageAction;
30
+ private getFilterPageActionTitle;
31
+ private getFilterStringsActionTitle;
32
+ private getPageDisplayText;
33
+ }