survey-creator-core 1.11.5 → 1.11.7
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.
- package/fonts.fontless.css +1 -1
- package/fonts.fontless.min.css +1 -1
- package/i18n/arabic.js +1 -1
- package/i18n/arabic.min.js +1 -1
- package/i18n/bulgarian.js +1 -1
- package/i18n/bulgarian.min.js +1 -1
- package/i18n/croatian.js +1 -1
- package/i18n/croatian.min.js +1 -1
- package/i18n/czech.js +1 -1
- package/i18n/czech.min.js +1 -1
- package/i18n/danish.js +1 -1
- package/i18n/danish.min.js +1 -1
- package/i18n/dutch.js +1 -1
- package/i18n/dutch.min.js +1 -1
- package/i18n/english.js +7 -3
- package/i18n/english.js.map +1 -1
- package/i18n/english.min.js +2 -2
- package/i18n/finnish.js +1 -1
- package/i18n/finnish.min.js +1 -1
- package/i18n/french.js +1 -1
- package/i18n/french.min.js +1 -1
- package/i18n/german.js +1 -1
- package/i18n/german.min.js +1 -1
- package/i18n/hebrew.js +1 -1
- package/i18n/hebrew.min.js +1 -1
- package/i18n/hungarian.js +1 -1
- package/i18n/hungarian.min.js +1 -1
- package/i18n/index.js +1 -1
- package/i18n/index.min.js +1 -1
- package/i18n/indonesian.js +1 -1
- package/i18n/indonesian.min.js +1 -1
- package/i18n/italian.js +1 -1
- package/i18n/italian.min.js +1 -1
- package/i18n/japanese.js +1 -1
- package/i18n/japanese.min.js +1 -1
- package/i18n/korean.js +1 -1
- package/i18n/korean.min.js +1 -1
- package/i18n/malay.js +1 -1
- package/i18n/malay.min.js +1 -1
- package/i18n/mongolian.js +1 -1
- package/i18n/mongolian.min.js +1 -1
- package/i18n/norwegian.js +1 -1
- package/i18n/norwegian.min.js +1 -1
- package/i18n/persian.js +1 -1
- package/i18n/persian.min.js +1 -1
- package/i18n/polish.js +1 -1
- package/i18n/polish.min.js +1 -1
- package/i18n/portuguese.js +1 -1
- package/i18n/portuguese.min.js +1 -1
- package/i18n/russian.js +1 -1
- package/i18n/russian.min.js +1 -1
- package/i18n/simplified-chinese.js +1 -1
- package/i18n/simplified-chinese.min.js +1 -1
- package/i18n/slovak.js +1 -1
- package/i18n/slovak.min.js +1 -1
- package/i18n/spanish.js +1 -1
- package/i18n/spanish.min.js +1 -1
- package/i18n/swedish.js +1 -1
- package/i18n/swedish.min.js +1 -1
- package/i18n/tajik.js +1 -1
- package/i18n/tajik.min.js +1 -1
- package/i18n/traditional-chinese.js +1 -1
- package/i18n/traditional-chinese.min.js +1 -1
- package/i18n/turkish.js +1 -1
- package/i18n/turkish.min.js +1 -1
- package/package.json +2 -2
- package/survey-creator-core.css +247 -39
- package/survey-creator-core.fontless.css +246 -38
- package/survey-creator-core.fontless.css.map +1 -1
- package/survey-creator-core.fontless.min.css +10 -10
- package/survey-creator-core.i18n.js +1 -1
- package/survey-creator-core.i18n.min.js +1 -1
- package/survey-creator-core.js +653 -186
- package/survey-creator-core.js.map +1 -1
- package/survey-creator-core.min.css +11 -11
- package/survey-creator-core.min.js +4 -4
- package/typings/components/action-container-view-model.d.ts +9 -1
- package/typings/components/question.d.ts +4 -2
- package/typings/components/tabs/designer-plugin.d.ts +2 -0
- package/typings/components/tabs/designer-state-manager.d.ts +17 -0
- package/typings/components/tabs/theme-plugin.d.ts +2 -0
- package/typings/components/toolbox/toolbox-tool.d.ts +8 -4
- package/typings/creator-base.d.ts +30 -6
- package/typings/creator-events-api.d.ts +21 -20
- package/typings/creator-options.d.ts +12 -0
- package/typings/editorLocalization.d.ts +4 -0
- package/typings/localization/english.d.ts +4 -0
- package/typings/property-grid/index.d.ts +6 -0
- package/typings/questionconverter.d.ts +2 -1
- package/typings/survey-helper.d.ts +1 -0
- package/typings/toolbox.d.ts +133 -86
package/typings/toolbox.d.ts
CHANGED
|
@@ -3,38 +3,58 @@ import { SurveyCreatorModel, toolboxLocationType } from "./creator-base";
|
|
|
3
3
|
import { SearchManagerToolbox } from "./property-grid/search-manager";
|
|
4
4
|
export declare type overflowBehaviorType = "hideInMenu" | "scroll";
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* A toolbox item configuration.
|
|
7
|
+
*
|
|
8
|
+
* `IQuestionToolboxItem` objects are used in such Toolbox API methods as [`getItemByName(name)`](https://surveyjs.io/survey-creator/documentation/api-reference/questiontoolbox#getItemByName), [`addItem(name, index)`](https://surveyjs.io/survey-creator/documentation/api-reference/questiontoolbox#addItem), [`replaceItem(name)`](https://surveyjs.io/survey-creator/documentation/api-reference/questiontoolbox#replaceItem), and others.
|
|
9
|
+
*
|
|
10
|
+
* [Toolbox Customization](https://surveyjs.io/survey-creator/documentation/toolbox-customization (linkStyle))
|
|
7
11
|
*/
|
|
8
12
|
export interface IQuestionToolboxItem extends IAction {
|
|
9
13
|
/**
|
|
10
|
-
* A
|
|
14
|
+
* A toolbox item identifier.
|
|
15
|
+
*
|
|
16
|
+
* > Toolbox item names must be unique.
|
|
11
17
|
*/
|
|
12
18
|
name: string;
|
|
13
19
|
/**
|
|
14
|
-
*
|
|
20
|
+
* An icon name.
|
|
21
|
+
*
|
|
22
|
+
* [UI Icons](https://surveyjs.io/form-library/documentation/icons (linkStyle))
|
|
15
23
|
*/
|
|
16
24
|
iconName: string;
|
|
17
25
|
/**
|
|
18
|
-
*
|
|
26
|
+
* A JSON object used to create a new question or panel when users click this toolbox item. It must contain the `type` property.
|
|
27
|
+
*
|
|
28
|
+
* [View Toolbox Customization Demo](https://surveyjs.io/survey-creator/examples/survey-toolbox-customization/ (linkStyle))
|
|
19
29
|
*/
|
|
20
30
|
json: any;
|
|
21
31
|
/**
|
|
22
|
-
*
|
|
32
|
+
* A user-friendly toolbox item title.
|
|
23
33
|
*/
|
|
24
34
|
title: string;
|
|
25
35
|
className: string;
|
|
26
36
|
/**
|
|
27
|
-
*
|
|
37
|
+
* A toolbox item tooltip.
|
|
38
|
+
*
|
|
39
|
+
* If `tooltip` is undefined, the [`title`](https://surveyjs.io/survey-creator/documentation/api-reference/iquestiontoolboxitem#title) property value is used instead.
|
|
28
40
|
*/
|
|
29
41
|
tooltip?: string;
|
|
30
|
-
/**
|
|
31
|
-
* True, if an end user added this item into Toolbox from the survey.
|
|
32
|
-
*/
|
|
33
42
|
isCopied: boolean;
|
|
34
43
|
/**
|
|
35
|
-
*
|
|
44
|
+
* A category to which this toolbox item belongs.
|
|
45
|
+
*
|
|
46
|
+
* Out-of-the-box categories include `"general"`, `"choice"`, `"text"`, `"containers"`, `"matrix"`, and `"misc"`.
|
|
47
|
+
*
|
|
48
|
+
* Default value: `"general"`
|
|
36
49
|
*/
|
|
37
50
|
category: string;
|
|
51
|
+
/**
|
|
52
|
+
* Specifies whether users can interact with the toolbox item.
|
|
53
|
+
*
|
|
54
|
+
* Default value: `true`
|
|
55
|
+
*/
|
|
56
|
+
enabled?: boolean;
|
|
57
|
+
getArea?: (el: HTMLElement) => HTMLElement;
|
|
38
58
|
}
|
|
39
59
|
export interface IQuestionToolbox {
|
|
40
60
|
toggleCategoryState(name: string): any;
|
|
@@ -73,10 +93,26 @@ export declare class QuestionToolboxItem extends Action implements IQuestionTool
|
|
|
73
93
|
toJSON(): IQuestionToolboxItem;
|
|
74
94
|
get typeName(): string;
|
|
75
95
|
get isPanel(): boolean;
|
|
96
|
+
getArea(target: HTMLElement): HTMLElement;
|
|
76
97
|
hasText(text: string): boolean;
|
|
77
98
|
}
|
|
78
99
|
/**
|
|
79
|
-
*
|
|
100
|
+
* An object that enables you to modify Survey Creator's Toolbox. To access this object, use the [`toolbox`](https://surveyjs.io/survey-creator/documentation/api-reference/survey-creator#toolbox) property on a Survey Creator instance:
|
|
101
|
+
*
|
|
102
|
+
* ```js
|
|
103
|
+
* const creatorOptions = { ... };
|
|
104
|
+
* const creator = new SurveyCreator.SurveyCreator(creatorOptions);
|
|
105
|
+
* creator.toolbox.settingName = "value";
|
|
106
|
+
*
|
|
107
|
+
* // In modular applications:
|
|
108
|
+
* import { SurveyCreatorModel } from "survey-creator-core";
|
|
109
|
+
*
|
|
110
|
+
* const creatorOptions = { ... };
|
|
111
|
+
* const creator = new SurveyCreatorModel(creatorOptions);
|
|
112
|
+
* creator.toolbox.settingName = "value";
|
|
113
|
+
* ```
|
|
114
|
+
*
|
|
115
|
+
* [Toolbox Customization](https://surveyjs.io/survey-creator/documentation/toolbox-customization (linkStyle))
|
|
80
116
|
*/
|
|
81
117
|
export declare class QuestionToolbox extends AdaptiveActionContainer<QuestionToolboxItem> implements IQuestionToolbox {
|
|
82
118
|
private supportedQuestions;
|
|
@@ -95,14 +131,9 @@ export declare class QuestionToolbox extends AdaptiveActionContainer<QuestionToo
|
|
|
95
131
|
get itemSelector(): string;
|
|
96
132
|
get containerSelector(): string;
|
|
97
133
|
static getQuestionDefaultSettings(questionType: string): any;
|
|
98
|
-
|
|
99
|
-
* Modify this array to change the toolbox items order.
|
|
100
|
-
*/
|
|
134
|
+
static getSubTypePropertyName(questionType: string): string;
|
|
101
135
|
get orderedQuestions(): string[];
|
|
102
136
|
set orderedQuestions(questions: string[]);
|
|
103
|
-
/**
|
|
104
|
-
* The maximum number of copied toolbox items. If an user adding copiedItemMaxCount + 1 item, the first added item will be removed.
|
|
105
|
-
*/
|
|
106
137
|
copiedItemMaxCount: number;
|
|
107
138
|
private allowExpandMultipleCategoriesValue;
|
|
108
139
|
private keepAllCategoriesExpandedValue;
|
|
@@ -113,11 +144,14 @@ export declare class QuestionToolbox extends AdaptiveActionContainer<QuestionToo
|
|
|
113
144
|
* Contains toolbox categories and allows you to modify them.
|
|
114
145
|
*
|
|
115
146
|
* [View Demo](https://surveyjs.io/Examples/Survey-Creator?id=toolboxcategories (linkStyle))
|
|
147
|
+
* @see defineCategories
|
|
148
|
+
* @see showCategoryTitles
|
|
116
149
|
*/
|
|
117
150
|
categories: Array<QuestionToolboxCategory>;
|
|
118
151
|
/**
|
|
119
|
-
*
|
|
120
|
-
*
|
|
152
|
+
* Gets or sets the currently expanded category. Applies only if [`allowExpandMultipleCategories`](https://surveyjs.io/survey-creator/documentation/api-reference/questiontoolbox#allowExpandMultipleCategories) and [`keepAllCategoriesExpanded`](https://surveyjs.io/survey-creator/documentation/api-reference/questiontoolbox#keepAllCategoriesExpanded) are `false` and [`showCategoryTitles`](https://surveyjs.io/survey-creator/documentation/api-reference/questiontoolbox#showCategoryTitles) is `true`.
|
|
153
|
+
*
|
|
154
|
+
* Default value: `""`
|
|
121
155
|
* @see expandCategory
|
|
122
156
|
* @see collapseCategory
|
|
123
157
|
*/
|
|
@@ -126,27 +160,35 @@ export declare class QuestionToolbox extends AdaptiveActionContainer<QuestionToo
|
|
|
126
160
|
canCollapseCategories: boolean;
|
|
127
161
|
updateResponsiveness(isCompact: boolean, overflowBehavior: overflowBehaviorType): void;
|
|
128
162
|
/**
|
|
129
|
-
* Indicates whether the
|
|
130
|
-
* @see forceCompact
|
|
163
|
+
* Indicates whether the Toolbox is currently in [compact mode](https://surveyjs.io/survey-creator/documentation/api-reference/questiontoolbox#forceCompact).
|
|
131
164
|
*/
|
|
132
165
|
isCompact: boolean;
|
|
133
166
|
isFocused: boolean;
|
|
134
167
|
/**
|
|
135
|
-
*
|
|
168
|
+
* Specifies how the Toolbox behaves when it contains more items than can fit on the screen.
|
|
169
|
+
*
|
|
170
|
+
* Possible values:
|
|
171
|
+
*
|
|
172
|
+
* - `"scroll"` (default) - Enables scrolling to help users reach the items that do not fit on the screen.
|
|
173
|
+
* - `"hideInMenu"` - Hides the overflow items in a three-dot menu.
|
|
136
174
|
*/
|
|
137
175
|
overflowBehavior: overflowBehaviorType;
|
|
138
176
|
/**
|
|
139
|
-
* Specifies whether the
|
|
140
|
-
*
|
|
177
|
+
* Specifies whether the Toolbox should be in compact or full mode.
|
|
178
|
+
*
|
|
179
|
+
* Possible values:
|
|
180
|
+
*
|
|
141
181
|
* - `true` - Toolbox is always in compact mode.
|
|
142
182
|
* - `false` - Toolbox is always in full mode.
|
|
143
|
-
* - `undefined` - Toolbox switches between the full and compact modes automatically based on available width.
|
|
183
|
+
* - `undefined` (default) - Toolbox switches between the full and compact modes automatically based on available width.
|
|
184
|
+
*
|
|
185
|
+
* [View Toolbox Customization Demo](https://surveyjs.io/survey-creator/examples/survey-toolbox-customization/ (linkStyle))
|
|
144
186
|
* @see isCompact
|
|
145
187
|
*/
|
|
146
188
|
forceCompact: boolean;
|
|
147
189
|
private categoriesTitles;
|
|
148
190
|
/**
|
|
149
|
-
* Specifies whether to display a search field that allows users to find question and panel types within the
|
|
191
|
+
* Specifies whether to display a search field that allows users to find question and panel types within the Toolbox.
|
|
150
192
|
*
|
|
151
193
|
* Default value: `true`
|
|
152
194
|
*/
|
|
@@ -169,88 +211,87 @@ export declare class QuestionToolbox extends AdaptiveActionContainer<QuestionToo
|
|
|
169
211
|
searchItem: IAction;
|
|
170
212
|
get classNames(): string;
|
|
171
213
|
setLocation(toolboxLocation: toolboxLocationType): void;
|
|
172
|
-
/**
|
|
173
|
-
* The Array of Toolbox items as Text JSON.
|
|
174
|
-
*/
|
|
175
214
|
get jsonText(): string;
|
|
176
215
|
set jsonText(value: string);
|
|
177
|
-
/**
|
|
178
|
-
* The Array of copied Toolbox items as Text JSON.
|
|
179
|
-
*/
|
|
180
216
|
get copiedJsonText(): string;
|
|
181
217
|
set copiedJsonText(value: string);
|
|
182
218
|
/**
|
|
183
|
-
*
|
|
219
|
+
* An array of toolbox items.
|
|
220
|
+
* @see getItemByName
|
|
221
|
+
* @see addItem
|
|
222
|
+
* @see removeItem
|
|
184
223
|
*/
|
|
185
224
|
get items(): Array<QuestionToolboxItem>;
|
|
186
225
|
get itemNames(): Array<string>;
|
|
187
|
-
/**
|
|
188
|
-
* The Array of copied Toolbox items
|
|
189
|
-
*/
|
|
190
226
|
get copiedItems(): Array<QuestionToolboxItem>;
|
|
191
|
-
/**
|
|
192
|
-
* Add toolbox items into the Toolbox
|
|
193
|
-
* @param items the list of new items
|
|
194
|
-
* @param clearAll set it to true to clear all previous items.
|
|
195
|
-
*/
|
|
196
227
|
addItems(items: Array<IQuestionToolboxItem>, clearAll?: boolean): void;
|
|
197
|
-
/**
|
|
198
|
-
* Add a copied Question into Toolbox
|
|
199
|
-
* @param question a copied Survey.Question
|
|
200
|
-
* @param options a json object that allows you to override question properties. Attributes are: name, title, tooltip, isCopied, iconName, json and category.
|
|
201
|
-
*/
|
|
202
228
|
addCopiedItem(question: Question, options?: any): void;
|
|
229
|
+
private getActionByItem;
|
|
230
|
+
private addSubTypes;
|
|
203
231
|
/**
|
|
204
|
-
*
|
|
205
|
-
* @param item
|
|
206
|
-
* @param index
|
|
207
|
-
* @see
|
|
232
|
+
* Adds a new item to the Toolbox.
|
|
233
|
+
* @param item A [toolbox item configuration](https://surveyjs.io/survey-creator/documentation/api-reference/iquestiontoolboxitem).
|
|
234
|
+
* @param index *(Optional)* A zero-based index at which to insert the item. If you do not specify this parameter, the item is added to the end.
|
|
235
|
+
* @see removeItem
|
|
236
|
+
* @see replaceItem
|
|
237
|
+
* @see items
|
|
208
238
|
*/
|
|
209
|
-
private getActionByItem;
|
|
210
239
|
addItem(item: IQuestionToolboxItem, index?: number): void;
|
|
211
240
|
private correctItem;
|
|
212
241
|
private get dragDropHelper();
|
|
213
242
|
/**
|
|
214
|
-
*
|
|
215
|
-
* @param item
|
|
216
|
-
* @see
|
|
243
|
+
* Adds a new toolbox item and deletes an existing item with the same name (if there is any).
|
|
244
|
+
* @param item A [toolbox item configuration](https://surveyjs.io/survey-creator/documentation/api-reference/iquestiontoolboxitem).
|
|
245
|
+
* @see addItem
|
|
217
246
|
*/
|
|
218
247
|
replaceItem(item: IQuestionToolboxItem): boolean;
|
|
219
248
|
/**
|
|
220
|
-
*
|
|
221
|
-
* @param name toolbox item name
|
|
222
|
-
* @
|
|
249
|
+
* Removes a [toolbox item](https://surveyjs.io/survey-creator/documentation/api-reference/iquestiontoolboxitem) with a specified name.
|
|
250
|
+
* @param name A toolbox item's [`name`](https://surveyjs.io/survey-creator/documentation/api-reference/iquestiontoolboxitem#name).
|
|
251
|
+
* @returns `true` if the item is successfully deleted or `false` otherwise.
|
|
252
|
+
* @see clearItems
|
|
253
|
+
* @see addItem
|
|
254
|
+
* @see items
|
|
223
255
|
*/
|
|
224
256
|
removeItem(name: string): boolean;
|
|
225
257
|
/**
|
|
226
|
-
*
|
|
258
|
+
* Removes all items from the Toolbox.
|
|
259
|
+
* @see removeItem
|
|
260
|
+
* @see addItem
|
|
261
|
+
* @see items
|
|
227
262
|
*/
|
|
228
263
|
clearItems(): void;
|
|
229
|
-
/**
|
|
230
|
-
* Remove all copied toolbox items.
|
|
231
|
-
*/
|
|
232
264
|
clearCopiedItems(): void;
|
|
233
265
|
/**
|
|
234
|
-
* Returns toolbox item
|
|
235
|
-
* @param name
|
|
266
|
+
* Returns a [toolbox item](https://surveyjs.io/survey-creator/documentation/api-reference/iquestiontoolboxitem) with a specified name.
|
|
267
|
+
* @param name A toolbox item's [`name`](https://surveyjs.io/survey-creator/documentation/api-reference/iquestiontoolboxitem#name).
|
|
268
|
+
* @returns A toolbox item or `null` if a toolbox item with the specified name isn't found.
|
|
236
269
|
*/
|
|
237
270
|
getItemByName(name: string): IQuestionToolboxItem;
|
|
238
271
|
/**
|
|
239
|
-
*
|
|
240
|
-
*
|
|
272
|
+
* Specifies whether more than one category can be in the expanded state at a time. Applies only if [`showCategoryTitles`](https://surveyjs.io/survey-creator/documentation/api-reference/questiontoolbox#showCategoryTitles) is `true`.
|
|
273
|
+
*
|
|
274
|
+
* If this property is `false`, the currently expanded category collapses when a user expands another category.
|
|
275
|
+
*
|
|
276
|
+
* Default value: `false`
|
|
277
|
+
* @see keepAllCategoriesExpanded
|
|
241
278
|
*/
|
|
242
279
|
get allowExpandMultipleCategories(): boolean;
|
|
243
280
|
set allowExpandMultipleCategories(val: boolean);
|
|
244
281
|
/**
|
|
245
|
-
*
|
|
282
|
+
* Specifies whether to expand all categories without the capability to collapse any of them. Applies only if [`showCategoryTitles`](https://surveyjs.io/survey-creator/documentation/api-reference/questiontoolbox#showCategoryTitles) is `true`.
|
|
283
|
+
* @see allowExpandMultipleCategories
|
|
246
284
|
*/
|
|
247
285
|
get keepAllCategoriesExpanded(): boolean;
|
|
248
286
|
set keepAllCategoriesExpanded(val: boolean);
|
|
249
287
|
/**
|
|
250
288
|
* Specifies whether to display category titles in the Toolbox.
|
|
251
289
|
*
|
|
252
|
-
*
|
|
253
|
-
*
|
|
290
|
+
* Default value: `false`
|
|
291
|
+
*
|
|
292
|
+
* If this property is disabled, the Toolbox hides the titles but continues to display horizontal lines that divide categories. To remove these lines as well, call the [`removeCategories()`](https://surveyjs.io/survey-creator/documentation/api-reference/questiontoolbox#removeCategories) method.
|
|
293
|
+
* @see allowExpandMultipleCategories
|
|
294
|
+
* @see keepAllCategoriesExpanded
|
|
254
295
|
*/
|
|
255
296
|
get showCategoryTitles(): boolean;
|
|
256
297
|
set showCategoryTitles(val: boolean);
|
|
@@ -258,16 +299,18 @@ export declare class QuestionToolbox extends AdaptiveActionContainer<QuestionToo
|
|
|
258
299
|
private updateActionTitle;
|
|
259
300
|
private updateCategoriesState;
|
|
260
301
|
/**
|
|
261
|
-
*
|
|
262
|
-
* @param
|
|
263
|
-
* @param
|
|
302
|
+
* Changes the category of a toolbox item.
|
|
303
|
+
* @param itemName A toolbox item's [`name`](https://surveyjs.io/survey-creator/documentation/api-reference/iquestiontoolboxitem#name).
|
|
304
|
+
* @param categoryName A new category name. Out-of-the-box category names include `"general"`, `"choice"`, `"text"`, `"containers"`, `"matrix"`, and `"misc"`.
|
|
305
|
+
* @see defineCategories
|
|
264
306
|
*/
|
|
265
|
-
changeCategory(
|
|
307
|
+
changeCategory(itemName: string, categoryName: string): void;
|
|
266
308
|
/**
|
|
267
|
-
*
|
|
268
|
-
* @param
|
|
309
|
+
* Changes the categories of multiple toolbox items.
|
|
310
|
+
* @param items An array of objects with the following structure: `{ name: "toolboxItemName", category: "newCategoryName" }`.
|
|
311
|
+
* @see defineCategories
|
|
269
312
|
*/
|
|
270
|
-
changeCategories(
|
|
313
|
+
changeCategories(items: Array<any>): void;
|
|
271
314
|
/**
|
|
272
315
|
* Defines toolbox categories from scratch.
|
|
273
316
|
*
|
|
@@ -298,31 +341,32 @@ export declare class QuestionToolbox extends AdaptiveActionContainer<QuestionToo
|
|
|
298
341
|
*/
|
|
299
342
|
defineCategories(categories: Array<IToolboxCategoryDefinition>, displayMisc?: boolean): void;
|
|
300
343
|
/**
|
|
301
|
-
* Removes categories from the Toolbox.
|
|
344
|
+
* Removes all categories from the Toolbox.
|
|
302
345
|
*/
|
|
303
346
|
removeCategories(): void;
|
|
304
347
|
toggleCategoryState(categoryName: string): void;
|
|
305
348
|
/**
|
|
306
|
-
*
|
|
307
|
-
*
|
|
308
|
-
*
|
|
349
|
+
* Expands a category with a specified name. Applies only if [`showCategoryTitles`](https://surveyjs.io/survey-creator/documentation/api-reference/questiontoolbox#showCategoryTitles) is `true`.
|
|
350
|
+
*
|
|
351
|
+
* If [`allowExpandMultipleCategories`](https://surveyjs.io/survey-creator/documentation/api-reference/questiontoolbox#allowExpandMultipleCategories) is `false`, all other categories become collapsed.
|
|
352
|
+
* @param categoryName A category name. Out-of-the-box category names include `"general"`, `"choice"`, `"text"`, `"containers"`, `"matrix"`, and `"misc"`.
|
|
309
353
|
* @see collapseCategory
|
|
310
354
|
*/
|
|
311
355
|
expandCategory(categoryName: string): void;
|
|
312
356
|
/**
|
|
313
|
-
*
|
|
314
|
-
* @param categoryName the category
|
|
315
|
-
* @see
|
|
357
|
+
* Collapses a category with a specified name. Applies only if [`showCategoryTitles`](https://surveyjs.io/survey-creator/documentation/api-reference/questiontoolbox#showCategoryTitles) and [`allowExpandMultipleCategories`](https://surveyjs.io/survey-creator/documentation/api-reference/questiontoolbox#allowExpandMultipleCategories) are `true`.
|
|
358
|
+
* @param categoryName A category name. Out-of-the-box category names include `"general"`, `"choice"`, `"text"`, `"containers"`, `"matrix"`, and `"misc"`.
|
|
359
|
+
* @see expandCategory
|
|
316
360
|
*/
|
|
317
361
|
collapseCategory(categoryName: string): void;
|
|
318
362
|
/**
|
|
319
|
-
*
|
|
320
|
-
* @see
|
|
363
|
+
* Expands all categories. Applies only if [`showCategoryTitles`](https://surveyjs.io/survey-creator/documentation/api-reference/questiontoolbox#showCategoryTitles) and [`allowExpandMultipleCategories`](https://surveyjs.io/survey-creator/documentation/api-reference/questiontoolbox#allowExpandMultipleCategories) are `true`.
|
|
364
|
+
* @see collapseAllCategories
|
|
321
365
|
*/
|
|
322
366
|
expandAllCategories(): void;
|
|
323
367
|
/**
|
|
324
|
-
*
|
|
325
|
-
* @see
|
|
368
|
+
* Collapses all categories. Applies only if [`showCategoryTitles`](https://surveyjs.io/survey-creator/documentation/api-reference/questiontoolbox#showCategoryTitles) and [`allowExpandMultipleCategories`](https://surveyjs.io/survey-creator/documentation/api-reference/questiontoolbox#allowExpandMultipleCategories) are `true`.
|
|
369
|
+
* @see expandAllCategories
|
|
326
370
|
*/
|
|
327
371
|
collapseAllCategories(): void;
|
|
328
372
|
private expandCollapseAllCategories;
|
|
@@ -341,8 +385,11 @@ export declare class QuestionToolbox extends AdaptiveActionContainer<QuestionToo
|
|
|
341
385
|
private registerCustomWidgets;
|
|
342
386
|
private registerComponentQuestions;
|
|
343
387
|
private getComponentItems;
|
|
388
|
+
private getItemClassNames;
|
|
344
389
|
private addItemFromJSON;
|
|
345
390
|
private getQuestionJSON;
|
|
346
391
|
private isHiddenCustomWidget;
|
|
347
392
|
private getQuestionTypes;
|
|
393
|
+
hideAllInnerPopups(): void;
|
|
394
|
+
onScroll(model: any, event: any): void;
|
|
348
395
|
}
|