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,49 @@
1
+ import * as Survey from "survey-core";
2
+ import { ISurveyCreatorOptions } from "../creator-settings";
3
+ export declare class SurveyQuestionEditorPropertyDefinition {
4
+ property: Survey.JsonObjectProperty;
5
+ title: string;
6
+ category: string;
7
+ createdFromTabName: boolean;
8
+ onSameLine: boolean;
9
+ get name(): string;
10
+ }
11
+ export declare class SurveyQuestionEditorTabDefinition {
12
+ name: string;
13
+ title: string;
14
+ visible: boolean;
15
+ index: number;
16
+ properties: Array<SurveyQuestionEditorPropertyDefinition>;
17
+ }
18
+ export declare class SurveyQuestionProperties {
19
+ obj: any;
20
+ options: ISurveyCreatorOptions;
21
+ private parentObj;
22
+ private parentProperty;
23
+ private showModeValue;
24
+ private properties;
25
+ private propertiesHash;
26
+ private tabs;
27
+ constructor(obj: any, options?: ISurveyCreatorOptions, className?: string, showMode?: string, parentObj?: any, parentProperty?: Survey.JsonObjectProperty);
28
+ getProperty(propertyName: string): Survey.JsonObjectProperty;
29
+ get showMode(): string;
30
+ get isEmpty(): boolean;
31
+ private fillPropertiesHash;
32
+ private isJSONPropertyVisible;
33
+ getTabByName(tabName: string): SurveyQuestionEditorTabDefinition;
34
+ getTabs(): Array<SurveyQuestionEditorTabDefinition>;
35
+ getProperties(tab: SurveyQuestionEditorTabDefinition): Array<Survey.JsonObjectProperty>;
36
+ private buildTabs;
37
+ private addPropertyIntoTab;
38
+ private movePropertiesToNextProperties;
39
+ private getTabByPropertyName;
40
+ private getNextToNameProperty;
41
+ private isPropertyOnSameLine;
42
+ private getPropertyByNameInTab;
43
+ private getTabOrCreate;
44
+ private setUsedProperties;
45
+ private getAllDefinitionsByClass;
46
+ private getJsonPropertyCategory;
47
+ private addNonTabProperties;
48
+ private sortProperties;
49
+ }
@@ -0,0 +1,12 @@
1
+ import { Question } from "survey-core";
2
+ export declare class QuestionConverter {
3
+ static convertInfo: {};
4
+ static addConvertInfo(className: string, convertToClassName: string): void;
5
+ static getConvertToClasses(className: string, availableTypes?: Array<string>, includeCurrent?: boolean): Array<string>;
6
+ static convertObject(obj: Question, convertToClass: string, defaultJSON?: any): Question;
7
+ private static updateJSON;
8
+ private static updateJSONFromQuestionDefaultSettings;
9
+ private static updateJSONForMatrices;
10
+ private static updateJSONForRating;
11
+ private static updateJSONForPanels;
12
+ }
@@ -0,0 +1,20 @@
1
+ import { Base } from "survey-core";
2
+ import { ICreatorSelectionOwner } from "./selection-owner";
3
+ export declare class SelectionHistory extends Base {
4
+ creator: ICreatorSelectionOwner;
5
+ private items;
6
+ private isChangingInternally;
7
+ constructor(creator: ICreatorSelectionOwner);
8
+ get hasPrev(): boolean;
9
+ get hasNext(): boolean;
10
+ hasInHistory(obj: Base): boolean;
11
+ prev(): void;
12
+ next(): void;
13
+ reset(): void;
14
+ selectFromAction(obj: Base, propertyName: string): void;
15
+ onObjSelected(obj: Base): void;
16
+ private get currentIndex();
17
+ private getIndex;
18
+ private selectElement;
19
+ private updateItems;
20
+ }
@@ -0,0 +1,7 @@
1
+ import { Base, SurveyModel } from "survey-core";
2
+ export interface ICreatorSelectionOwner {
3
+ survey: SurveyModel;
4
+ selectElement(el: Base, propertyName?: string): any;
5
+ selectedElement: Base;
6
+ getObjectDisplayName(el: Base, area: string): string;
7
+ }
@@ -0,0 +1,43 @@
1
+ import { Base, ItemValue, JsonObjectProperty } from "survey-core";
2
+ import { ISurveyCreatorOptions } from "./creator-settings";
3
+ export declare enum ObjType {
4
+ Unknown = 0,
5
+ Survey = 1,
6
+ Page = 2,
7
+ Panel = 3,
8
+ Question = 4,
9
+ Column = 5
10
+ }
11
+ export declare class SurveyHelper {
12
+ static getNewPageName(objs: Array<any>): string;
13
+ static isPageNameAutoGenerated(name: string): boolean;
14
+ static getNewQuestionName(objs: Array<any>): string;
15
+ static getNewPanelName(objs: Array<any>): string;
16
+ static generateNewName(name: string): string;
17
+ static getNewName(objs: Array<any>, baseName: string): string;
18
+ static isNameAutoGenerated(name: string, baseName: string): boolean;
19
+ static getObjectType(obj: any): ObjType;
20
+ static getObjectTypeStr(obj: any): string;
21
+ static getObjectName(obj: any, showObjectTitle?: boolean): string;
22
+ static getElements(element: any, includeHidden?: boolean): Array<any>;
23
+ static isPropertyVisible(obj: any, property: JsonObjectProperty, options?: ISurveyCreatorOptions, showMode?: string, parentObj?: any, parentProperty?: JsonObjectProperty): boolean;
24
+ static scrollIntoViewIfNeeded(el: HTMLElement): void;
25
+ static getScrollableDiv(el: HTMLElement): HTMLElement;
26
+ static moveItemInArray(list: Array<any>, obj: any, newIndex: number): boolean;
27
+ static applyItemValueArray(dest: Array<ItemValue>, src: Array<ItemValue>): void;
28
+ static disableSelectingObj(obj: Base): void;
29
+ static enableSelectingObj(obj: Base): void;
30
+ static canSelectObj(obj: Base): boolean;
31
+ static warnNonSupported(name: string, newPropertyName?: string): void;
32
+ static warnText(text: string): void;
33
+ private static deleteConditionProperties;
34
+ static updateQuestionJson(questionJson: any): void;
35
+ static convertMatrixRowsToText(rows: any): string;
36
+ static convertItemValuesToText(items: ItemValue[]): string;
37
+ static convertTextToItemValues(text: string, properties: JsonObjectProperty[], className: string): ItemValue[];
38
+ static sortItems(items: Array<any>, propertyName?: string): void;
39
+ static getQuestionContextIndexInfo(name: string, prefix?: string): {
40
+ index: number;
41
+ name: string;
42
+ };
43
+ }
@@ -0,0 +1 @@
1
+ export declare var svgBundle: any;
@@ -0,0 +1,18 @@
1
+ import { SurveyModel } from "survey-core";
2
+ export declare class SurveyTextWorker {
3
+ text: string;
4
+ static newLineChar: string;
5
+ errors: Array<any>;
6
+ private surveyValue;
7
+ private jsonValue;
8
+ private surveyObjects;
9
+ constructor(text: string);
10
+ get survey(): SurveyModel;
11
+ get isJsonCorrect(): boolean;
12
+ protected process(): void;
13
+ private updateJsonPositions;
14
+ private createSurveyObjects;
15
+ private setEditorPositionByChartAt;
16
+ private getPostionByChartAt;
17
+ private getAtArray;
18
+ }
@@ -0,0 +1,269 @@
1
+ import { Action, AdaptiveActionContainer, Base, IAction, Question } from "survey-core";
2
+ import { CreatorBase, toolboxLocationType } from "./creator-base";
3
+ /**
4
+ * The Toolbox item description.
5
+ */
6
+ export interface IQuestionToolboxItem extends IAction {
7
+ /**
8
+ * A unique name
9
+ */
10
+ name: string;
11
+ /**
12
+ * Icon name
13
+ */
14
+ iconName: string;
15
+ /**
16
+ * The JSON that used to create a new question/panel. The 'type' attribute is required.
17
+ */
18
+ json: any;
19
+ /**
20
+ * Toolbox item title
21
+ */
22
+ title: string;
23
+ /**
24
+ * Toolbox item tooltip. It equals to title if it is empty
25
+ */
26
+ tooltip?: string;
27
+ /**
28
+ * True, if an end user added this item into Toolbox from the survey.
29
+ */
30
+ isCopied: boolean;
31
+ /**
32
+ * Toolbox item category. If it is empty, it goes to 'General' category.
33
+ */
34
+ category: string;
35
+ }
36
+ export interface IQuestionToolbox {
37
+ toggleCategoryState(name: string): any;
38
+ }
39
+ export declare class QuestionToolboxCategory extends Base {
40
+ private toolbox;
41
+ constructor(toolbox: IQuestionToolbox);
42
+ name: string;
43
+ items: Array<QuestionToolboxItem>;
44
+ collapsed: boolean;
45
+ toggleState(): void;
46
+ }
47
+ export declare class QuestionToolboxItem extends Action implements IQuestionToolboxItem {
48
+ private item;
49
+ constructor(item: IQuestionToolboxItem);
50
+ iconName: string;
51
+ name: string;
52
+ json: any;
53
+ tooltip: string;
54
+ isCopied: boolean;
55
+ category: string;
56
+ toJSON(): IQuestionToolboxItem;
57
+ }
58
+ /**
59
+ * The list of Toolbox items.
60
+ */
61
+ export declare class QuestionToolbox extends AdaptiveActionContainer<QuestionToolboxItem> implements IQuestionToolbox {
62
+ private supportedQuestions;
63
+ creator: CreatorBase;
64
+ static hiddenTypes: string[];
65
+ static defaultIconName: string;
66
+ static defaultCategories: {
67
+ toolboxChoiceCategory: string[];
68
+ toolboxTextCategory: string[];
69
+ toolboxContainersCategory: string[];
70
+ toolboxMatrixCategory: string[];
71
+ toolboxMiscCategory: string[];
72
+ };
73
+ private _orderedQuestions;
74
+ static getQuestionDefaultSettings(questionType: string): any;
75
+ /**
76
+ * Modify this array to change the toolbox items order.
77
+ */
78
+ get orderedQuestions(): string[];
79
+ set orderedQuestions(questions: string[]);
80
+ /**
81
+ * The maximum number of copied toolbox items. If an user adding copiedItemMaxCount + 1 item, the first added item will be removed.
82
+ */
83
+ copiedItemMaxCount: number;
84
+ private allowExpandMultipleCategoriesValue;
85
+ private keepAllCategoriesExpandedValue;
86
+ private showCategoryTitlesValue;
87
+ private dragOrClickHelper;
88
+ /**
89
+ * Contains toolbox categories and allows you to modify them.
90
+ *
91
+ * [View Demo](https://surveyjs.io/Examples/Survey-Creator?id=toolboxcategories)
92
+ */
93
+ categories: Array<QuestionToolboxCategory>;
94
+ /**
95
+ * Set and get and active category. This property doesn't work if allowExpandMultipleCategories is true. Its default value is empty.
96
+ * @see allowExpandMultipleCategories
97
+ * @see expandCategory
98
+ * @see collapseCategory
99
+ */
100
+ activeCategory: string;
101
+ hasCategories: boolean;
102
+ canCollapseCategories: boolean;
103
+ /**
104
+ * Indicates whether the toolbox is currently in compact mode.
105
+ * @see forceCompact
106
+ */
107
+ isCompact: boolean;
108
+ /**
109
+ * Specifies whether the toolbox should be in compact or full mode.
110
+ * Accepts the following values:
111
+ * - `true` - Toolbox is always in compact mode.
112
+ * - `false` - Toolbox is always in full mode.
113
+ * - `undefined` - Toolbox switches between the full and compact modes automatically based on available width.
114
+ * @see isCompact
115
+ */
116
+ forceCompact: boolean;
117
+ constructor(supportedQuestions?: Array<string>, creator?: CreatorBase, useDefaultCategories?: boolean);
118
+ private initDotsItem;
119
+ private getDefaultQuestionCategories;
120
+ private onActiveCategoryChanged;
121
+ setLocation(toolboxLocation: toolboxLocationType): void;
122
+ /**
123
+ * The Array of Toolbox items as Text JSON.
124
+ */
125
+ get jsonText(): string;
126
+ set jsonText(value: string);
127
+ /**
128
+ * The Array of copied Toolbox items as Text JSON.
129
+ */
130
+ get copiedJsonText(): string;
131
+ set copiedJsonText(value: string);
132
+ /**
133
+ * The Array of Toolbox items.
134
+ */
135
+ get items(): Array<QuestionToolboxItem>;
136
+ get itemNames(): Array<string>;
137
+ /**
138
+ * The Array of copied Toolbox items
139
+ */
140
+ get copiedItems(): Array<QuestionToolboxItem>;
141
+ /**
142
+ * Add toolbox items into the Toolbox
143
+ * @param items the list of new items
144
+ * @param clearAll set it to true to clear all previous items.
145
+ */
146
+ addItems(items: Array<IQuestionToolboxItem>, clearAll?: boolean): void;
147
+ /**
148
+ * Add a copied Question into Toolbox
149
+ * @param question a copied Survey.Question
150
+ * @param options a json object that allows you to override question properties. Attributes are: name, title, tooltip, isCopied, iconName, json and category.
151
+ */
152
+ addCopiedItem(question: Question, options?: any): void;
153
+ /**
154
+ * Add a toolbox item
155
+ * @param item the toolbox item description
156
+ * @param index the toolbox index to place the item, the item is added to the end if index not passed
157
+ * @see IQuestionToolboxItem
158
+ */
159
+ private getActionByItem;
160
+ addItem(item: IQuestionToolboxItem, index?: number): void;
161
+ private correctItem;
162
+ private get dragDropHelper();
163
+ /**
164
+ * Add a new toolbox item, add delete the old item with the same name
165
+ * @param item the toolbox item description
166
+ * @see IQuestionToolboxItem
167
+ */
168
+ replaceItem(item: IQuestionToolboxItem): boolean;
169
+ /**
170
+ * Remove a toolbox item by its name
171
+ * @param name toolbox item name
172
+ * @see IQuestionToolboxItem
173
+ */
174
+ removeItem(name: string): boolean;
175
+ /**
176
+ * Remove all toolbox items.
177
+ */
178
+ clearItems(): void;
179
+ /**
180
+ * Remove all copied toolbox items.
181
+ */
182
+ clearCopiedItems(): void;
183
+ /**
184
+ * Returns toolbox item by its name. Returns null if there is no toolbox item with this name
185
+ * @param name
186
+ */
187
+ getItemByName(name: string): IQuestionToolboxItem;
188
+ /**
189
+ * Set it to true, to allow end-user to expand more than one category. There will no active category in this case
190
+ * @see activeCategory
191
+ */
192
+ get allowExpandMultipleCategories(): boolean;
193
+ set allowExpandMultipleCategories(val: boolean);
194
+ /**
195
+ * Set it to true to expand all categories and hide expand/collapse category buttons
196
+ */
197
+ get keepAllCategoriesExpanded(): boolean;
198
+ set keepAllCategoriesExpanded(val: boolean);
199
+ /**
200
+ * Specifies whether to display category titles in the Toolbox.
201
+ *
202
+ * If you disable this property, the Toolbox hides the titles but continues to display horizontal lines that divide categories. To remove these lines as well, call the `removeCategories()` method.
203
+ * @see removeCategories
204
+ */
205
+ get showCategoryTitles(): boolean;
206
+ set showCategoryTitles(val: boolean);
207
+ updateTitles(): void;
208
+ private updateCategoriesState;
209
+ /**
210
+ * Change the category of the toolbox item
211
+ * @param name the toolbox item name
212
+ * @param category new category name
213
+ */
214
+ changeCategory(name: string, category: string): void;
215
+ /**
216
+ * Change categories for several toolbox items.
217
+ * @param changedItems the array of objects {name: "your toolbox item name", category: "new category name"}
218
+ */
219
+ changeCategories(changedItems: Array<any>): void;
220
+ /**
221
+ * Removes categories from the Toolbox.
222
+ */
223
+ removeCategories(): void;
224
+ toggleCategoryState(categoryName: string): void;
225
+ /**
226
+ * Expand a category by its name. If allowExpandMultipleCategories is false (default value), all other categories become collapsed
227
+ * @param categoryName the category name
228
+ * @see allowExpandMultipleCategories
229
+ * @see collapseCategory
230
+ */
231
+ expandCategory(categoryName: string): void;
232
+ /**
233
+ * Collapse a category by its name. If allowExpandMultipleCategories is false (default value) this function does nothing
234
+ * @param categoryName the category name
235
+ * @see allowExpandMultipleCategories
236
+ */
237
+ collapseCategory(categoryName: string): void;
238
+ /**
239
+ * Expand all categories. If allowExpandMultipleCategories is false (default value) this function does nothing
240
+ * @see allowExpandMultipleCategories
241
+ */
242
+ expandAllCategories(): void;
243
+ /**
244
+ * Collapse all categories. If allowExpandMultipleCategories is false (default value) this function does nothing
245
+ * @see allowExpandMultipleCategories
246
+ */
247
+ collapseAllCategories(): void;
248
+ hiddenItemSelected(model: Action): void;
249
+ private expandCollapseAllCategories;
250
+ private getCategoryByName;
251
+ protected onItemsChanged(): void;
252
+ protected createCategory(): QuestionToolboxCategory;
253
+ private indexOf;
254
+ private updateItemSeparators;
255
+ private reorderItems;
256
+ /**
257
+ * Adds default items to the Toolbox. If the Toolbox contains any items before you call this method, they will be removed.
258
+ * @param supportedQuestions Specifies which question and panel types to include in the Toolbox.
259
+ * @param useDefaultCategories Pass `true` if you want to create default categories.
260
+ */
261
+ createDefaultItems(supportedQuestions: Array<string>, useDefaultCategories: boolean): void;
262
+ private registerCustomWidgets;
263
+ private registerComponentQuestions;
264
+ private getComponentItems;
265
+ private addItemFromJSON;
266
+ private getQuestionJSON;
267
+ private getQuestionTypes;
268
+ dispose(): void;
269
+ }
@@ -0,0 +1,5 @@
1
+ import { QuestionMatrixDynamicModel, IAction, MatrixDynamicRowModel } from "survey-core";
2
+ export declare function findAction(actions: Array<IAction>, id: string): IAction;
3
+ export declare function updateMatrixLogicExpandAction(question: QuestionMatrixDynamicModel, actions: Array<IAction>, row: MatrixDynamicRowModel): void;
4
+ export declare function updateMatrixLogicRemoveAction(question: QuestionMatrixDynamicModel, actions: Array<IAction>, row: MatrixDynamicRowModel): void;
5
+ export declare function updateMatrixRemoveAction(question: QuestionMatrixDynamicModel, actions: Array<IAction>, row: MatrixDynamicRowModel): void;
@@ -0,0 +1,14 @@
1
+ export interface IPortableMouseEvent {
2
+ stopPropagation(): any;
3
+ preventDefault(): any;
4
+ cancelBubble: boolean;
5
+ readonly target: EventTarget | null;
6
+ readonly currentTarget: EventTarget | null;
7
+ readonly clientX: number;
8
+ readonly clientY: number;
9
+ readonly offsetX: number;
10
+ readonly offsetY: number;
11
+ }
12
+ export interface IPortableDragEvent extends IPortableMouseEvent {
13
+ readonly dataTransfer: DataTransfer;
14
+ }
@@ -0,0 +1,24 @@
1
+ export declare class ResizeManager {
2
+ private container;
3
+ private originalMouseX;
4
+ private originalWidth;
5
+ private minWidth;
6
+ private maxWidth;
7
+ private westResizer;
8
+ private eastResizer;
9
+ private currentResizer;
10
+ private mouseDevice;
11
+ private events;
12
+ constructor(container: HTMLElement, handles: string);
13
+ setHandles(newVal: string): void;
14
+ private getStyleValue;
15
+ private isEventSupported;
16
+ private getEventPrefix;
17
+ private getMouseEvent;
18
+ private onMouseDownListener;
19
+ private resize;
20
+ private stopResize;
21
+ private init;
22
+ private createrResizerElement;
23
+ dispose(): void;
24
+ }
@@ -0,0 +1,19 @@
1
+ import { ItemValue } from "survey-core";
2
+ export declare function getNextItemValue(prefix: string, choices: ItemValue[]): string | number;
3
+ export declare function getNextItemText(choices: ItemValue[]): string;
4
+ export declare function getNextValue(prefix: string, values: any[]): string | number;
5
+ export declare function findParentNode(className: string, sourceNode: HTMLElement): HTMLElement;
6
+ export declare function focusFirstControl(renderedElements: HTMLElement[]): void;
7
+ export declare function getFirstNonTextElement(elements: any): any;
8
+ export declare function getNodesFromKoComponentInfo(componentInfo: any): any;
9
+ export declare function propertyExists(obj: any, propertyName: string): boolean;
10
+ export declare function isPropertyVisible(obj: any, propertyName: string): boolean;
11
+ export declare function toggleHovered(e: MouseEvent, element: HTMLElement, timeout?: number): void;
12
+ export declare function clearNewLines(text: string): string;
13
+ export declare function select(element: any): void;
14
+ export declare function copyObject(dst: any, src: any): void;
15
+ export declare function copyCssClasses(dest: any, source: any): void;
16
+ export declare function assignDefaultV2Classes(destination: any, questionType: string): void;
17
+ export declare function wrapTextByCurlyBraces(text: string): string;
18
+ export declare function capitalize(str: string): string;
19
+ export declare function notShortCircuitAnd(...args: Array<boolean>): boolean;