@syncfusion/ej2-navigations 30.2.5 → 31.1.17

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 (165) hide show
  1. package/dist/ej2-navigations.min.js +2 -2
  2. package/dist/ej2-navigations.umd.min.js +2 -2
  3. package/dist/ej2-navigations.umd.min.js.map +1 -1
  4. package/dist/es6/ej2-navigations.es2015.js +1 -0
  5. package/dist/es6/ej2-navigations.es2015.js.map +1 -1
  6. package/dist/es6/ej2-navigations.es5.js +1 -0
  7. package/dist/es6/ej2-navigations.es5.js.map +1 -1
  8. package/dist/global/ej2-navigations.min.js +2 -2
  9. package/dist/global/ej2-navigations.min.js.map +1 -1
  10. package/dist/global/index.d.ts +1 -1
  11. package/dist/ts/accordion/accordion-model.d.ts +285 -0
  12. package/dist/ts/accordion/accordion.d.ts +458 -0
  13. package/dist/ts/accordion/accordion.ts +1580 -0
  14. package/dist/ts/accordion/index.d.ts +5 -0
  15. package/dist/ts/accordion/index.ts +5 -0
  16. package/dist/ts/appbar/appbar-model.d.ts +76 -0
  17. package/dist/ts/appbar/appbar.d.ts +115 -0
  18. package/dist/ts/appbar/appbar.ts +281 -0
  19. package/dist/ts/appbar/index.d.ts +3 -0
  20. package/dist/ts/appbar/index.ts +3 -0
  21. package/dist/ts/breadcrumb/breadcrumb-model.d.ts +170 -0
  22. package/dist/ts/breadcrumb/breadcrumb.d.ts +297 -0
  23. package/dist/ts/breadcrumb/breadcrumb.ts +959 -0
  24. package/dist/ts/breadcrumb/index.d.ts +5 -0
  25. package/dist/ts/breadcrumb/index.ts +5 -0
  26. package/dist/ts/carousel/carousel-model.d.ts +282 -0
  27. package/dist/ts/carousel/carousel.d.ts +439 -0
  28. package/dist/ts/carousel/carousel.ts +1633 -0
  29. package/dist/ts/carousel/index.d.ts +3 -0
  30. package/dist/ts/carousel/index.ts +3 -0
  31. package/dist/ts/common/h-scroll-model.d.ts +16 -0
  32. package/dist/ts/common/h-scroll.d.ts +105 -0
  33. package/dist/ts/common/h-scroll.ts +481 -0
  34. package/dist/ts/common/index.d.ts +9 -0
  35. package/dist/ts/common/index.ts +10 -0
  36. package/dist/ts/common/menu-base-model.d.ts +308 -0
  37. package/dist/ts/common/menu-base.d.ts +558 -0
  38. package/dist/ts/common/menu-base.ts +2736 -0
  39. package/dist/ts/common/menu-scroll.d.ts +29 -0
  40. package/dist/ts/common/menu-scroll.ts +105 -0
  41. package/dist/ts/common/v-scroll-model.d.ts +16 -0
  42. package/dist/ts/common/v-scroll.d.ts +106 -0
  43. package/dist/ts/common/v-scroll.ts +454 -0
  44. package/dist/ts/context-menu/context-menu-model.d.ts +47 -0
  45. package/dist/ts/context-menu/context-menu.d.ts +102 -0
  46. package/dist/ts/context-menu/context-menu.ts +165 -0
  47. package/dist/ts/context-menu/index.d.ts +5 -0
  48. package/dist/ts/context-menu/index.ts +5 -0
  49. package/dist/ts/index.d.ts +16 -0
  50. package/dist/ts/index.ts +16 -0
  51. package/dist/ts/menu/index.d.ts +5 -0
  52. package/dist/ts/menu/index.ts +5 -0
  53. package/dist/ts/menu/menu-model.d.ts +70 -0
  54. package/dist/ts/menu/menu.d.ts +127 -0
  55. package/dist/ts/menu/menu.ts +313 -0
  56. package/dist/ts/sidebar/index.d.ts +5 -0
  57. package/dist/ts/sidebar/index.ts +5 -0
  58. package/dist/ts/sidebar/sidebar-model.d.ts +200 -0
  59. package/dist/ts/sidebar/sidebar.d.ts +336 -0
  60. package/dist/ts/sidebar/sidebar.ts +907 -0
  61. package/dist/ts/stepper/index.d.ts +3 -0
  62. package/dist/ts/stepper/index.ts +3 -0
  63. package/dist/ts/stepper/stepper-model.d.ts +159 -0
  64. package/dist/ts/stepper/stepper.d.ts +381 -0
  65. package/dist/ts/stepper/stepper.ts +1350 -0
  66. package/dist/ts/stepper-base/index.d.ts +5 -0
  67. package/dist/ts/stepper-base/index.ts +6 -0
  68. package/dist/ts/stepper-base/stepper-base-model.d.ts +124 -0
  69. package/dist/ts/stepper-base/stepper-base.d.ts +187 -0
  70. package/dist/ts/stepper-base/stepper-base.ts +290 -0
  71. package/dist/ts/tab/index.d.ts +5 -0
  72. package/dist/ts/tab/index.ts +5 -0
  73. package/dist/ts/tab/tab-model.d.ts +408 -0
  74. package/dist/ts/tab/tab.d.ts +715 -0
  75. package/dist/ts/tab/tab.ts +2842 -0
  76. package/dist/ts/toolbar/index.d.ts +5 -0
  77. package/dist/ts/toolbar/index.ts +5 -0
  78. package/dist/ts/toolbar/toolbar-model.d.ts +294 -0
  79. package/dist/ts/toolbar/toolbar.d.ts +541 -0
  80. package/dist/ts/toolbar/toolbar.ts +2646 -0
  81. package/dist/ts/treeview/index.d.ts +5 -0
  82. package/dist/ts/treeview/index.ts +5 -0
  83. package/dist/ts/treeview/treeview-model.d.ts +637 -0
  84. package/dist/ts/treeview/treeview.d.ts +1518 -0
  85. package/dist/ts/treeview/treeview.ts +6780 -0
  86. package/package.json +70 -17
  87. package/src/context-menu/context-menu-model.d.ts +1 -1
  88. package/src/context-menu/context-menu.js +1 -1
  89. package/src/tab/tab.js +1 -0
  90. package/styles/accordion/_bootstrap-dark-definition.scss +1 -1
  91. package/styles/accordion/_bootstrap-definition.scss +1 -1
  92. package/styles/accordion/bootstrap-dark.css +1 -1
  93. package/styles/accordion/bootstrap.css +1 -1
  94. package/styles/bds-lite.css +1 -1
  95. package/styles/bds.css +1 -1
  96. package/styles/bootstrap-dark-lite.css +2 -2
  97. package/styles/bootstrap-dark.css +2 -2
  98. package/styles/bootstrap-lite.css +2 -2
  99. package/styles/bootstrap.css +2 -2
  100. package/styles/bootstrap4-lite.css +1 -1
  101. package/styles/bootstrap4.css +1 -1
  102. package/styles/bootstrap5-dark-lite.css +1 -1
  103. package/styles/bootstrap5-dark.css +1 -1
  104. package/styles/bootstrap5-lite.css +1 -1
  105. package/styles/bootstrap5.3-lite.css +1 -1
  106. package/styles/bootstrap5.3.css +9 -1
  107. package/styles/bootstrap5.css +1 -1
  108. package/styles/fabric-dark-lite.css +1 -1
  109. package/styles/fabric-dark.css +1 -1
  110. package/styles/fabric-lite.css +1 -1
  111. package/styles/fabric.css +1 -1
  112. package/styles/fluent-dark-lite.css +1 -1
  113. package/styles/fluent-dark.css +1 -1
  114. package/styles/fluent-lite.css +1 -1
  115. package/styles/fluent.css +1 -1
  116. package/styles/fluent2-lite.css +4 -1
  117. package/styles/fluent2.css +4 -1
  118. package/styles/h-scroll/_layout.scss +1 -1
  119. package/styles/h-scroll/bds.css +1 -1
  120. package/styles/h-scroll/bootstrap-dark.css +1 -1
  121. package/styles/h-scroll/bootstrap.css +1 -1
  122. package/styles/h-scroll/bootstrap4.css +1 -1
  123. package/styles/h-scroll/bootstrap5-dark.css +1 -1
  124. package/styles/h-scroll/bootstrap5.3.css +1 -1
  125. package/styles/h-scroll/bootstrap5.css +1 -1
  126. package/styles/h-scroll/fabric-dark.css +1 -1
  127. package/styles/h-scroll/fabric.css +1 -1
  128. package/styles/h-scroll/fluent-dark.css +1 -1
  129. package/styles/h-scroll/fluent.css +1 -1
  130. package/styles/h-scroll/fluent2.css +1 -1
  131. package/styles/h-scroll/highcontrast-light.css +1 -1
  132. package/styles/h-scroll/highcontrast.css +1 -1
  133. package/styles/h-scroll/material-dark.css +1 -1
  134. package/styles/h-scroll/material.css +1 -1
  135. package/styles/h-scroll/material3-dark.css +1 -1
  136. package/styles/h-scroll/material3.css +1 -1
  137. package/styles/h-scroll/tailwind-dark.css +1 -1
  138. package/styles/h-scroll/tailwind.css +1 -1
  139. package/styles/h-scroll/tailwind3.css +1 -1
  140. package/styles/highcontrast-light-lite.css +1 -1
  141. package/styles/highcontrast-light.css +1 -1
  142. package/styles/highcontrast-lite.css +1 -1
  143. package/styles/highcontrast.css +1 -1
  144. package/styles/material-dark-lite.css +1 -1
  145. package/styles/material-dark.css +1 -1
  146. package/styles/material-lite.css +1 -1
  147. package/styles/material.css +1 -1
  148. package/styles/material3-dark-lite.css +1 -1
  149. package/styles/material3-dark.css +1 -7
  150. package/styles/material3-lite.css +1 -1
  151. package/styles/material3.css +1 -7
  152. package/styles/tailwind-dark-lite.css +1 -1
  153. package/styles/tailwind-dark.css +1 -1
  154. package/styles/tailwind-lite.css +1 -1
  155. package/styles/tailwind.css +1 -1
  156. package/styles/tailwind3-lite.css +1 -1
  157. package/styles/tailwind3.css +1 -1
  158. package/styles/toolbar/_layout.scss +1 -1
  159. package/styles/treeview/_bigger.scss +2 -2
  160. package/styles/treeview/_bootstrap5.3-definition.scss +1 -0
  161. package/styles/treeview/_layout.scss +3 -0
  162. package/styles/treeview/bootstrap5.3.css +8 -0
  163. package/styles/treeview/fluent2.css +3 -0
  164. package/styles/treeview/material3-dark.css +0 -6
  165. package/styles/treeview/material3.css +0 -6
@@ -0,0 +1,541 @@
1
+ import { Component, EmitType, BaseEventArgs } from '@syncfusion/ej2-base';
2
+ import { KeyboardEventArgs } from '@syncfusion/ej2-base';
3
+ import { INotifyPropertyChanged, ChildProperty } from '@syncfusion/ej2-base';
4
+ import { ToolbarModel, ItemModel } from './toolbar-model';
5
+ /**
6
+ * Specifies the options for supporting element types of Toolbar command.
7
+ * ```props
8
+ * Button :- Creates the Button control with its given properties like text, prefixIcon, etc.
9
+ * Separator :- Adds a horizontal line that separates the Toolbar commands.
10
+ * Input :- Creates an input element that is applicable to template rendering with Syncfusion controls like DropDownList, AutoComplete, etc.
11
+ * ```
12
+ */
13
+ export declare type ItemType = 'Button' | 'Separator' | 'Input';
14
+ /**
15
+ * Specifies the options of where the text will be displayed in popup mode of the Toolbar.
16
+ * ```props
17
+ * Toolbar :- Text will be displayed on Toolbar only.
18
+ * Overflow :- Text will be displayed only when content overflows to popup.
19
+ * Both :- Text will be displayed on popup and Toolbar.
20
+ * ```
21
+ */
22
+ export declare type DisplayMode = 'Both' | 'Overflow' | 'Toolbar';
23
+ /**
24
+ * Specifies the options of the Toolbar item display area when the Toolbar content overflows to available space.Applicable to `popup` mode.
25
+ * ```props
26
+ * Show :- Always shows the item as the primary priority on the *Toolbar*.
27
+ * Hide :- Always shows the item as the secondary priority on the *popup*.
28
+ * None :- No priority for display, and as per normal order moves to popup when content exceeds.
29
+ * ```
30
+ */
31
+ export declare type OverflowOption = 'None' | 'Show' | 'Hide';
32
+ /**
33
+ * Specifies the options of Toolbar display mode. Display option is considered when Toolbar content exceeds the available space.
34
+ * ```props
35
+ * Scrollable :- All the elements are displayed in a single line with horizontal scrolling enabled.
36
+ * Popup :- Prioritized elements are displayed on the Toolbar and the rest of elements are moved to the popup.
37
+ * MultiRow :- Displays the overflow toolbar items as an in-line of a toolbar.
38
+ * Extended :- Hide the overflowing toolbar items in the next row. Show the overflowing toolbar items when you click the expand icons, if the popup content overflows the height of the page, the rest of the elements will be hidden.
39
+ * ```
40
+ */
41
+ export declare type OverflowMode = 'Scrollable' | 'Popup' | 'MultiRow' | 'Extended';
42
+ /**
43
+ * Specifies the options for aligning the Toolbar items.
44
+ * ```props
45
+ * Left :- To align commands to the left side of the Toolbar.
46
+ * Center :- To align commands at the center of the Toolbar.
47
+ * Right :- To align commands to the right side of the Toolbar.
48
+ * ```
49
+ */
50
+ export declare type ItemAlign = 'Left' | 'Center' | 'Right';
51
+ /** An interface that holds options to control the toolbar clicked action. */
52
+ export interface ClickEventArgs extends BaseEventArgs {
53
+ /** Defines the current Toolbar Item Object. */
54
+ item: ItemModel;
55
+ /**
56
+ * Defines the current Event arguments.
57
+ */
58
+ originalEvent: Event;
59
+ /** Defines the prevent action. */
60
+ cancel?: boolean;
61
+ }
62
+ /** An interface that holds options to control before the toolbar create. */
63
+ export interface BeforeCreateArgs extends BaseEventArgs {
64
+ /** Enable or disable the popup collision. */
65
+ enableCollision: boolean;
66
+ /** Specifies the scrolling distance in scroller. */
67
+ scrollStep: number;
68
+ }
69
+ /** An interface that holds options to control keyDown event in the toolbar. */
70
+ export interface KeyDownEventArgs extends BaseEventArgs {
71
+ /** Defines the keyboard event arguments. */
72
+ originalEvent: KeyboardEventArgs;
73
+ /** Defines the prevent action. */
74
+ cancel?: boolean;
75
+ /** Defines the current Toolbar item. */
76
+ currentItem?: HTMLElement;
77
+ /** Defines the next Toolbar item. */
78
+ nextItem?: HTMLElement;
79
+ }
80
+ /**
81
+ * An item object that is used to configure Toolbar commands.
82
+ */
83
+ export declare class Item extends ChildProperty<Item> {
84
+ /**
85
+ * Specifies the unique ID to be used with button or input element of Toolbar items.
86
+ *
87
+ * @default ""
88
+ */
89
+ id: string;
90
+ /**
91
+ * Specifies the text to be displayed on the Toolbar button.
92
+ *
93
+ * @default ""
94
+ */
95
+ text: string;
96
+ /**
97
+ * Specifies the width of the Toolbar button commands.
98
+ *
99
+ * @default 'auto'
100
+ */
101
+ width: number | string;
102
+ /**
103
+ * Defines single/multiple classes (separated by space) to be used for customization of commands.
104
+ *
105
+ * @default ""
106
+ */
107
+ cssClass: string;
108
+ /**
109
+ * Defines the priority of items to display it in popup always.
110
+ * It allows to maintain toolbar item on popup always but it does not work for toolbar priority items.
111
+ *
112
+ * @default false
113
+ */
114
+ showAlwaysInPopup: boolean;
115
+ /**
116
+ * Specifies whether an item should be disabled or not.
117
+ *
118
+ * @default false
119
+ */
120
+ disabled: boolean;
121
+ /**
122
+ * Defines single/multiple classes separated by space used to specify an icon for the button.
123
+ * The icon will be positioned before the text content if text is available, otherwise the icon alone will be rendered.
124
+ *
125
+ * @default ""
126
+ */
127
+ prefixIcon: string;
128
+ /**
129
+ * Defines single/multiple classes separated by space used to specify an icon for the button.
130
+ * The icon will be positioned after the text content if text is available.
131
+ *
132
+ * @default ""
133
+ */
134
+ suffixIcon: string;
135
+ /**
136
+ * Specifies whether an item should be hidden or not.
137
+ *
138
+ * @default true
139
+ */
140
+ visible: boolean;
141
+ /**
142
+ * Specifies the Toolbar command display area when an element's content is too large to fit available space.
143
+ * This is applicable only to `popup` mode. The possible values for this property as follows
144
+ * * `Show`: Always shows the item as the primary priority on the *Toolbar*.
145
+ * * `Hide`: Always shows the item as the secondary priority on the *popup*.
146
+ * * `None`: No priority for display, and as per normal order moves to popup when content exceeds.
147
+ *
148
+ * @default 'None'
149
+ */
150
+ overflow: OverflowOption;
151
+ /**
152
+ * Specifies the HTML element/element ID as a string that can be added as a Toolbar command.
153
+ * ```
154
+ * E.g - items: [{ template: '<input placeholder="Search"/>' },{ template: '#checkbox1' }]
155
+ * ```
156
+ *
157
+ * @default ""
158
+ * @angularType string | object
159
+ * @reactType string | function | JSX.Element
160
+ * @vueType string | function
161
+ * @aspType string
162
+ */
163
+ template: string | Object | Function;
164
+ /**
165
+ * Specifies the types of command to be rendered in the Toolbar.
166
+ * Supported types are:
167
+ * * `Button`: Creates the Button control with its given properties like text, prefixIcon, etc.
168
+ * * `Separator`: Adds a horizontal line that separates the Toolbar commands.
169
+ * * `Input`: Creates an input element that is applicable to template rendering with Syncfusion controls like DropDownList,
170
+ * AutoComplete, etc.
171
+ *
172
+ * @default 'Button'
173
+ */
174
+ type: ItemType;
175
+ /**
176
+ * Specifies where the button text will be displayed on *popup mode* of the Toolbar.
177
+ * The possible values for this property as follows
178
+ * * `Toolbar`: Text will be displayed on *Toolbar* only.
179
+ * * `Overflow`: Text will be displayed only when content overflows to *popup*.
180
+ * * `Both`: Text will be displayed on *popup* and *Toolbar*.
181
+ *
182
+ * @default 'Both'
183
+ */
184
+ showTextOn: DisplayMode;
185
+ /**
186
+ * Defines htmlAttributes used to add custom attributes to Toolbar command.
187
+ * Supports HTML attributes such as style, class, etc.
188
+ *
189
+ * @default null
190
+ */
191
+ htmlAttributes: {
192
+ [key: string]: string;
193
+ };
194
+ /**
195
+ * Specifies the text to be displayed on hovering the Toolbar button.
196
+ *
197
+ * @default ""
198
+ */
199
+ tooltipText: string;
200
+ /**
201
+ * Specifies the location for aligning Toolbar items on the Toolbar. Each command will be aligned according to the `align` property.
202
+ * The possible values for this property as follows
203
+ * * `Left`: To align commands to the left side of the Toolbar.
204
+ * * `Center`: To align commands at the center of the Toolbar.
205
+ * * `Right`: To align commands to the right side of the Toolbar.
206
+ * ```html
207
+ * <div id="element"> </div>
208
+ * ```
209
+ * ```typescript
210
+ * let toolbar: Toolbar = new Toolbar({
211
+ * items: [
212
+ * { text: "Home" },
213
+ * { text: "My Home Page" , align: 'Center' },
214
+ * { text: "Search", align: 'Right' }
215
+ * { text: "Settings", align: 'Right' }
216
+ * ]
217
+ * });
218
+ * toolbar.appendTo('#element');
219
+ * ```
220
+ *
221
+ * @default "Left"
222
+ * @aspPopulateDefaultValue
223
+ */
224
+ align: ItemAlign;
225
+ /**
226
+ * Event triggers when `click` the toolbar item.
227
+ *
228
+ * @event click
229
+ */
230
+ click: EmitType<ClickEventArgs>;
231
+ /**
232
+ * Specifies the tab order of the Toolbar items. When positive values assigned, it allows to switch focus to the next/previous toolbar items with Tab/ShiftTab keys.
233
+ * By default, user can able to switch between items only via arrow keys.
234
+ * If the value is set to 0 for all tool bar items, then tab switches based on element order.
235
+ *
236
+ * @default -1
237
+ */
238
+ tabIndex: number;
239
+ }
240
+ /**
241
+ * The Toolbar control contains a group of commands that are aligned horizontally.
242
+ * ```html
243
+ * <div id="toolbar"/>
244
+ * <script>
245
+ * var toolbarObj = new Toolbar();
246
+ * toolbarObj.appendTo("#toolbar");
247
+ * </script>
248
+ * ```
249
+ */
250
+ export declare class Toolbar extends Component<HTMLElement> implements INotifyPropertyChanged {
251
+ private trgtEle;
252
+ private ctrlTem;
253
+ private popObj;
254
+ private tbarEle;
255
+ private tbarAlgEle;
256
+ private tbarAlign;
257
+ private tbarEleMrgn;
258
+ private tbResize;
259
+ private offsetWid;
260
+ private keyModule;
261
+ private scrollModule;
262
+ private activeEle;
263
+ private popupPriCount;
264
+ private tbarItemsCol;
265
+ private isVertical;
266
+ private tempId;
267
+ private isExtendedOpen;
268
+ private clickEvent;
269
+ private scrollEvent;
270
+ private resizeContext;
271
+ private orientationChangeContext;
272
+ /**
273
+ * Contains the keyboard configuration of the Toolbar.
274
+ */
275
+ private keyConfigs;
276
+ /**
277
+ * An array of items that is used to configure Toolbar commands.
278
+ *
279
+ * @default []
280
+ */
281
+ items: ItemModel[];
282
+ /**
283
+ * Specifies the width of the Toolbar in pixels/numbers/percentage. Number value is considered as pixels.
284
+ *
285
+ * @default 'auto'
286
+ */
287
+ width: string | number;
288
+ /**
289
+ * Specifies the height of the Toolbar in pixels/number/percentage. Number value is considered as pixels.
290
+ *
291
+ * @default 'auto'
292
+ */
293
+ height: string | number;
294
+ /**
295
+ * Sets the CSS classes to root element of the Tab that helps to customize component styles.
296
+ *
297
+ * @default ''
298
+ */
299
+ cssClass: string;
300
+ /**
301
+ * Specifies the Toolbar display mode when Toolbar content exceeds the viewing area.
302
+ * The possible values for this property as follows
303
+ * - Scrollable: All the elements are displayed in a single line with horizontal scrolling enabled.
304
+ * - Popup: Prioritized elements are displayed on the Toolbar and the rest of elements are moved to the *popup*.
305
+ * - MultiRow: Displays the overflow toolbar items as an in-line of a toolbar.
306
+ * - Extended: Hide the overflowing toolbar items in the next row. Show the overflowing toolbar items when you click the expand icons.
307
+ * If the popup content overflows the height of the page, the rest of the elements will be hidden.
308
+ *
309
+ * @default 'Scrollable'
310
+ */
311
+ overflowMode: OverflowMode;
312
+ /**
313
+ * Specifies the scrolling distance in scroller.
314
+ *
315
+ * {% codeBlock src='toolbar/scrollStep/index.md' %}{% endcodeBlock %}
316
+ *
317
+ * @default null
318
+ */
319
+ scrollStep: number;
320
+ /**
321
+ * Enable or disable the popup collision.
322
+ *
323
+ * @default true
324
+ */
325
+ enableCollision: boolean;
326
+ /**
327
+ * Defines whether to allow the cross-scripting site or not.
328
+ *
329
+ * @default true
330
+ */
331
+ enableHtmlSanitizer: boolean;
332
+ /**
333
+ * When this property is set to true, it allows the keyboard interaction in toolbar.
334
+ *
335
+ * @default true
336
+ */
337
+ allowKeyboard: boolean;
338
+ /**
339
+ * The event will be fired on clicking the Toolbar elements.
340
+ *
341
+ * @event clicked
342
+ */
343
+ clicked: EmitType<ClickEventArgs>;
344
+ /**
345
+ * The event will be fired when the control is rendered.
346
+ *
347
+ * @event created
348
+ */
349
+ created: EmitType<Event>;
350
+ /**
351
+ * The event will be fired when the control gets destroyed.
352
+ *
353
+ * @event destroyed
354
+ */
355
+ destroyed: EmitType<Event>;
356
+ /**
357
+ * The event will be fired before the control is rendered on a page.
358
+ *
359
+ * @event beforeCreate
360
+ */
361
+ beforeCreate: EmitType<BeforeCreateArgs>;
362
+ /**
363
+ * The event will be fired when the keyboard interaction occurs on the Toolbar.
364
+ *
365
+ * @event keyDown
366
+ */
367
+ keyDown: EmitType<KeyDownEventArgs>;
368
+ /**
369
+ * Removes the control from the DOM and also removes all its related events.
370
+ *
371
+ * @returns {void}.
372
+ */
373
+ destroy(): void;
374
+ /**
375
+ * Initialize the event handler
376
+ *
377
+ * @private
378
+ * @returns {void}
379
+ */
380
+ protected preRender(): void;
381
+ /**
382
+ * Initializes a new instance of the Toolbar class.
383
+ *
384
+ * @param {ToolbarModel} options - Specifies Toolbar model properties as options.
385
+ * @param { string | HTMLElement} element - Specifies the element that is rendered as a Toolbar.
386
+ */
387
+ constructor(options?: ToolbarModel, element?: string | HTMLElement);
388
+ private wireEvents;
389
+ private wireKeyboardEvent;
390
+ private updateTabIndex;
391
+ private unwireKeyboardEvent;
392
+ private docKeyDown;
393
+ private unwireEvents;
394
+ private clearProperty;
395
+ private docEvent;
396
+ private destroyScroll;
397
+ private destroyItems;
398
+ private destroyMode;
399
+ private add;
400
+ private remove;
401
+ private elementFocus;
402
+ private clstElement;
403
+ private getNextFocusableItem;
404
+ private keyHandling;
405
+ private keyActionHandler;
406
+ /**
407
+ * Specifies the value to disable/enable the Toolbar component.
408
+ * When set to `true`, the component will be disabled.
409
+ *
410
+ * @param {boolean} value - Based on this Boolean value, Toolbar will be enabled (false) or disabled (true).
411
+ * @returns {void}.
412
+ */
413
+ disable(value: boolean): void;
414
+ private eleContains;
415
+ private focusFirstVisibleEle;
416
+ private focusLastVisibleEle;
417
+ private eleFocus;
418
+ private clickHandler;
419
+ private popupClickHandler;
420
+ private getToolbarPopupWidth;
421
+ /**
422
+ * To Initialize the control rendering
423
+ *
424
+ * @private
425
+ * @returns {void}
426
+ */
427
+ protected render(): void;
428
+ private initialize;
429
+ private renderControl;
430
+ private renderLayout;
431
+ private itemsAlign;
432
+ /**
433
+ * @hidden
434
+ * @returns {void}
435
+ */
436
+ changeOrientation(): void;
437
+ private initScroll;
438
+ private itemWidthCal;
439
+ private getScrollCntEle;
440
+ private checkOverflow;
441
+ /**
442
+ * Refresh the whole Toolbar component without re-rendering.
443
+ * - It is used to manually refresh the Toolbar overflow modes such as scrollable, popup, multi row, and extended.
444
+ * - It will refresh the Toolbar component after loading items dynamically.
445
+ *
446
+ * @returns {void}.
447
+ */
448
+ refreshOverflow(): void;
449
+ private toolbarAlign;
450
+ private renderOverflowMode;
451
+ private setOverflowAttributes;
452
+ private separator;
453
+ private createPopupEle;
454
+ private pushingPoppedEle;
455
+ private createPopup;
456
+ private getElementOffsetY;
457
+ private popupInit;
458
+ private tbarPopupHandler;
459
+ private popupOpen;
460
+ private popupClose;
461
+ private checkPriority;
462
+ private createPopupIcon;
463
+ private tbarPriRef;
464
+ private popupRefresh;
465
+ private ignoreEleFetch;
466
+ private checkPopupRefresh;
467
+ private popupEleWidth;
468
+ private popupEleRefresh;
469
+ private removePositioning;
470
+ private refreshPositioning;
471
+ private itemPositioning;
472
+ private tbarItemAlign;
473
+ private ctrlTemplate;
474
+ private renderItems;
475
+ private setAttr;
476
+ /**
477
+ * Enables or disables the specified Toolbar item.
478
+ *
479
+ * @param {number|HTMLElement|NodeList} items - DOM element or an array of items to be enabled or disabled.
480
+ * @param {boolean} isEnable - Boolean value that determines whether the command should be enabled or disabled.
481
+ * By default, `isEnable` is set to true.
482
+ * @returns {void}.
483
+ */
484
+ enableItems(items: number | HTMLElement | NodeList, isEnable?: boolean): void;
485
+ private getElementByIndex;
486
+ /**
487
+ * Adds new items to the Toolbar that accepts an array as Toolbar items.
488
+ *
489
+ * @param {ItemModel[]} items - DOM element or an array of items to be added to the Toolbar.
490
+ * @param {number} index - Number value that determines where the command is to be added. By default, index is 0.
491
+ * @returns {void}.
492
+ */
493
+ addItems(items: ItemModel[], index?: number): void;
494
+ /**
495
+ * Removes the items from the Toolbar. Acceptable arguments are index of item/HTMLElement/node list.
496
+ *
497
+ * @param {number|HTMLElement|NodeList|HTMLElement[]} args
498
+ * Index or DOM element or an Array of item which is to be removed from the Toolbar.
499
+ * @returns {void}.
500
+ */
501
+ removeItems(args: number | HTMLElement | NodeList | Element | HTMLElement[]): void;
502
+ private removeItemByIndex;
503
+ private templateRender;
504
+ private buttonRendering;
505
+ private renderSubComponent;
506
+ private getDataTabindex;
507
+ private itemClick;
508
+ private activeEleSwitch;
509
+ private activeEleRemove;
510
+ protected getPersistData(): string;
511
+ /**
512
+ * Returns the current module name.
513
+ *
514
+ * @returns {string} - Returns the module name as string.
515
+ * @private
516
+ */
517
+ protected getModuleName(): string;
518
+ private itemsRerender;
519
+ private resize;
520
+ private orientationChange;
521
+ private extendedOpen;
522
+ private updateHideEleTabIndex;
523
+ private clearToolbarTemplate;
524
+ /**
525
+ * Gets called when the model property changes.The data that describes the old and new values of the property that changed.
526
+ *
527
+ * @param {ToolbarModel} newProp - It contains new value of the data.
528
+ * @param {ToolbarModel} oldProp - It contains old value of the data.
529
+ * @returns {void}
530
+ * @private
531
+ */
532
+ onPropertyChanged(newProp: ToolbarModel, oldProp: ToolbarModel): void;
533
+ /**
534
+ * Shows or hides the Toolbar item that is in the specified index.
535
+ *
536
+ * @param {number | HTMLElement} index - Index value of target item or DOM element of items to be hidden or shown.
537
+ * @param {boolean} value - Based on this Boolean value, item will be hide (true) or show (false). By default, value is false.
538
+ * @returns {void}.
539
+ */
540
+ hideItem(index: number | HTMLElement | Element, value?: boolean): void;
541
+ }