@syncfusion/ej2-navigations 31.1.17 → 31.1.20

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 (188) 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/package.json +14 -67
  12. package/src/treeview/treeview.js +1 -0
  13. package/styles/bds-lite.css +7 -6
  14. package/styles/bds.css +7 -6
  15. package/styles/bootstrap-dark-lite.css +6 -3
  16. package/styles/bootstrap-dark.css +6 -3
  17. package/styles/bootstrap-lite.css +6 -3
  18. package/styles/bootstrap.css +6 -3
  19. package/styles/bootstrap4-lite.css +13 -9
  20. package/styles/bootstrap4.css +24 -13
  21. package/styles/bootstrap5-dark-lite.css +6 -5
  22. package/styles/bootstrap5-dark.css +16 -7
  23. package/styles/bootstrap5-lite.css +6 -5
  24. package/styles/bootstrap5.3-lite.css +23 -10
  25. package/styles/bootstrap5.3.css +34 -13
  26. package/styles/bootstrap5.css +16 -7
  27. package/styles/fabric-dark-lite.css +6 -3
  28. package/styles/fabric-dark.css +6 -3
  29. package/styles/fabric-lite.css +6 -3
  30. package/styles/fabric.css +6 -3
  31. package/styles/fluent-dark-lite.css +16 -12
  32. package/styles/fluent-dark.css +26 -15
  33. package/styles/fluent-lite.css +16 -12
  34. package/styles/fluent.css +26 -15
  35. package/styles/fluent2-lite.css +6 -4
  36. package/styles/fluent2.css +6 -4
  37. package/styles/highcontrast-light-lite.css +4 -4
  38. package/styles/highcontrast-light.css +4 -4
  39. package/styles/highcontrast-lite.css +14 -10
  40. package/styles/highcontrast.css +26 -13
  41. package/styles/material-dark-lite.css +19 -13
  42. package/styles/material-dark.css +39 -17
  43. package/styles/material-lite.css +19 -10
  44. package/styles/material.css +36 -13
  45. package/styles/material3-dark-lite.css +4 -4
  46. package/styles/material3-dark.css +5 -4
  47. package/styles/material3-lite.css +4 -4
  48. package/styles/material3.css +5 -4
  49. package/styles/menu/_bootstrap-dark-definition.scss +1 -0
  50. package/styles/menu/_bootstrap-definition.scss +1 -0
  51. package/styles/menu/_fluent-definition.scss +1 -1
  52. package/styles/menu/_fluent2-definition.scss +1 -1
  53. package/styles/menu/_layout.scss +7 -1
  54. package/styles/menu/bds.css +1 -0
  55. package/styles/menu/bootstrap-dark.css +1 -0
  56. package/styles/menu/bootstrap.css +1 -0
  57. package/styles/menu/bootstrap4.css +1 -0
  58. package/styles/menu/bootstrap5-dark.css +1 -0
  59. package/styles/menu/bootstrap5.3.css +1 -0
  60. package/styles/menu/bootstrap5.css +1 -0
  61. package/styles/menu/fabric-dark.css +1 -0
  62. package/styles/menu/fabric.css +1 -0
  63. package/styles/menu/fluent-dark.css +2 -1
  64. package/styles/menu/fluent.css +2 -1
  65. package/styles/menu/fluent2.css +2 -1
  66. package/styles/menu/highcontrast-light.css +1 -0
  67. package/styles/menu/highcontrast.css +1 -0
  68. package/styles/menu/material-dark.css +1 -0
  69. package/styles/menu/material.css +1 -0
  70. package/styles/menu/material3-dark.css +1 -0
  71. package/styles/menu/material3.css +1 -0
  72. package/styles/menu/tailwind-dark.css +1 -0
  73. package/styles/menu/tailwind.css +1 -0
  74. package/styles/menu/tailwind3.css +1 -0
  75. package/styles/tailwind-dark-lite.css +6 -5
  76. package/styles/tailwind-dark.css +6 -5
  77. package/styles/tailwind-lite.css +6 -5
  78. package/styles/tailwind.css +6 -5
  79. package/styles/tailwind3-lite.css +11 -5
  80. package/styles/tailwind3.css +18 -5
  81. package/styles/treeview/_bds-definition.scss +1 -1
  82. package/styles/treeview/_bigger.scss +91 -0
  83. package/styles/treeview/_bootstrap4-definition.scss +7 -7
  84. package/styles/treeview/_bootstrap5-definition.scss +2 -2
  85. package/styles/treeview/_bootstrap5.3-definition.scss +8 -8
  86. package/styles/treeview/_fluent-definition.scss +6 -6
  87. package/styles/treeview/_highcontrast-definition.scss +6 -6
  88. package/styles/treeview/_layout.scss +67 -16
  89. package/styles/treeview/_material-dark-definition.scss +7 -7
  90. package/styles/treeview/_material-definition.scss +6 -6
  91. package/styles/treeview/_tailwind3-definition.scss +1 -1
  92. package/styles/treeview/_theme.scss +7 -2
  93. package/styles/treeview/bds.css +6 -6
  94. package/styles/treeview/bootstrap-dark.css +5 -3
  95. package/styles/treeview/bootstrap.css +5 -3
  96. package/styles/treeview/bootstrap4.css +23 -13
  97. package/styles/treeview/bootstrap5-dark.css +15 -7
  98. package/styles/treeview/bootstrap5.3.css +33 -13
  99. package/styles/treeview/bootstrap5.css +15 -7
  100. package/styles/treeview/fabric-dark.css +5 -3
  101. package/styles/treeview/fabric.css +5 -3
  102. package/styles/treeview/fluent-dark.css +24 -14
  103. package/styles/treeview/fluent.css +24 -14
  104. package/styles/treeview/fluent2.css +4 -3
  105. package/styles/treeview/highcontrast-light.css +3 -4
  106. package/styles/treeview/highcontrast.css +25 -13
  107. package/styles/treeview/material-dark.css +38 -17
  108. package/styles/treeview/material.css +35 -13
  109. package/styles/treeview/material3-dark.css +4 -4
  110. package/styles/treeview/material3.css +4 -4
  111. package/styles/treeview/tailwind-dark.css +5 -5
  112. package/styles/treeview/tailwind.css +5 -5
  113. package/styles/treeview/tailwind3.css +17 -5
  114. package/dist/ts/accordion/accordion-model.d.ts +0 -285
  115. package/dist/ts/accordion/accordion.d.ts +0 -458
  116. package/dist/ts/accordion/accordion.ts +0 -1580
  117. package/dist/ts/accordion/index.d.ts +0 -5
  118. package/dist/ts/accordion/index.ts +0 -5
  119. package/dist/ts/appbar/appbar-model.d.ts +0 -76
  120. package/dist/ts/appbar/appbar.d.ts +0 -115
  121. package/dist/ts/appbar/appbar.ts +0 -281
  122. package/dist/ts/appbar/index.d.ts +0 -3
  123. package/dist/ts/appbar/index.ts +0 -3
  124. package/dist/ts/breadcrumb/breadcrumb-model.d.ts +0 -170
  125. package/dist/ts/breadcrumb/breadcrumb.d.ts +0 -297
  126. package/dist/ts/breadcrumb/breadcrumb.ts +0 -959
  127. package/dist/ts/breadcrumb/index.d.ts +0 -5
  128. package/dist/ts/breadcrumb/index.ts +0 -5
  129. package/dist/ts/carousel/carousel-model.d.ts +0 -282
  130. package/dist/ts/carousel/carousel.d.ts +0 -439
  131. package/dist/ts/carousel/carousel.ts +0 -1633
  132. package/dist/ts/carousel/index.d.ts +0 -3
  133. package/dist/ts/carousel/index.ts +0 -3
  134. package/dist/ts/common/h-scroll-model.d.ts +0 -16
  135. package/dist/ts/common/h-scroll.d.ts +0 -105
  136. package/dist/ts/common/h-scroll.ts +0 -481
  137. package/dist/ts/common/index.d.ts +0 -9
  138. package/dist/ts/common/index.ts +0 -10
  139. package/dist/ts/common/menu-base-model.d.ts +0 -308
  140. package/dist/ts/common/menu-base.d.ts +0 -558
  141. package/dist/ts/common/menu-base.ts +0 -2736
  142. package/dist/ts/common/menu-scroll.d.ts +0 -29
  143. package/dist/ts/common/menu-scroll.ts +0 -105
  144. package/dist/ts/common/v-scroll-model.d.ts +0 -16
  145. package/dist/ts/common/v-scroll.d.ts +0 -106
  146. package/dist/ts/common/v-scroll.ts +0 -454
  147. package/dist/ts/context-menu/context-menu-model.d.ts +0 -47
  148. package/dist/ts/context-menu/context-menu.d.ts +0 -102
  149. package/dist/ts/context-menu/context-menu.ts +0 -165
  150. package/dist/ts/context-menu/index.d.ts +0 -5
  151. package/dist/ts/context-menu/index.ts +0 -5
  152. package/dist/ts/index.d.ts +0 -16
  153. package/dist/ts/index.ts +0 -16
  154. package/dist/ts/menu/index.d.ts +0 -5
  155. package/dist/ts/menu/index.ts +0 -5
  156. package/dist/ts/menu/menu-model.d.ts +0 -70
  157. package/dist/ts/menu/menu.d.ts +0 -127
  158. package/dist/ts/menu/menu.ts +0 -313
  159. package/dist/ts/sidebar/index.d.ts +0 -5
  160. package/dist/ts/sidebar/index.ts +0 -5
  161. package/dist/ts/sidebar/sidebar-model.d.ts +0 -200
  162. package/dist/ts/sidebar/sidebar.d.ts +0 -336
  163. package/dist/ts/sidebar/sidebar.ts +0 -907
  164. package/dist/ts/stepper/index.d.ts +0 -3
  165. package/dist/ts/stepper/index.ts +0 -3
  166. package/dist/ts/stepper/stepper-model.d.ts +0 -159
  167. package/dist/ts/stepper/stepper.d.ts +0 -381
  168. package/dist/ts/stepper/stepper.ts +0 -1350
  169. package/dist/ts/stepper-base/index.d.ts +0 -5
  170. package/dist/ts/stepper-base/index.ts +0 -6
  171. package/dist/ts/stepper-base/stepper-base-model.d.ts +0 -124
  172. package/dist/ts/stepper-base/stepper-base.d.ts +0 -187
  173. package/dist/ts/stepper-base/stepper-base.ts +0 -290
  174. package/dist/ts/tab/index.d.ts +0 -5
  175. package/dist/ts/tab/index.ts +0 -5
  176. package/dist/ts/tab/tab-model.d.ts +0 -408
  177. package/dist/ts/tab/tab.d.ts +0 -715
  178. package/dist/ts/tab/tab.ts +0 -2842
  179. package/dist/ts/toolbar/index.d.ts +0 -5
  180. package/dist/ts/toolbar/index.ts +0 -5
  181. package/dist/ts/toolbar/toolbar-model.d.ts +0 -294
  182. package/dist/ts/toolbar/toolbar.d.ts +0 -541
  183. package/dist/ts/toolbar/toolbar.ts +0 -2646
  184. package/dist/ts/treeview/index.d.ts +0 -5
  185. package/dist/ts/treeview/index.ts +0 -5
  186. package/dist/ts/treeview/treeview-model.d.ts +0 -637
  187. package/dist/ts/treeview/treeview.d.ts +0 -1518
  188. package/dist/ts/treeview/treeview.ts +0 -6780
@@ -1,715 +0,0 @@
1
- import { Component, EmitType } from '@syncfusion/ej2-base';
2
- import { INotifyPropertyChanged, ChildProperty } from '@syncfusion/ej2-base';
3
- import { Effect } from '@syncfusion/ej2-base';
4
- import { BaseEventArgs } from '@syncfusion/ej2-base';
5
- import { OverflowMode } from '../toolbar/toolbar';
6
- import { TabModel, TabItemModel, HeaderModel, TabActionSettingsModel, TabAnimationSettingsModel } from './tab-model';
7
- declare type HTEle = HTMLElement;
8
- /**
9
- * Specifies the orientation of the Tab header.
10
- * ```props
11
- * Top :- Places the Tab header on the top.
12
- * Bottom :- Places the Tab header on the bottom.
13
- * Left :- Places the Tab header on the left.
14
- * Right :- Places the Tab header on the right.
15
- * ```
16
- */
17
- export declare type HeaderPosition = 'Top' | 'Bottom' | 'Left' | 'Right';
18
- /**
19
- * Options to set the content element height adjust modes.
20
- * ```props
21
- * None :- Based on the given height property, the content panel height is set.
22
- * Auto :- Tallest panel height of a given Tab content is set to all the other panels.
23
- * Content :- Based on the corresponding content height, the content panel height is set.
24
- * Fill :- Content element take height based on the parent height.
25
- * ```
26
- */
27
- export declare type HeightStyles = 'None' | 'Auto' | 'Content' | 'Fill';
28
- /**
29
- * Enables or disables the tab swiping action through Touch and Mouse.
30
- * - `Both`: Enables swiping for both touch and mouse input.
31
- * - `Touch`: Enables swiping only for touch input.
32
- * - `Mouse`: Enables swiping only for mouse input.
33
- * - `None`: Disables swiping for both touch and mouse input.
34
- */
35
- export declare type TabSwipeMode = 'Both' | 'Touch' | 'Mouse' | 'None';
36
- /**
37
- * Specifies the options of Tab content display mode.
38
- * ```props
39
- * Demand :- The content of the selected tab alone is loaded initially. The content of the tabs which were loaded once will be maintained in the DOM.
40
- * Dynamic :- Only the content of the selected tab is loaded and available in the DOM, and it will be replaced with the corresponding content if the tab is selected dynamically.
41
- * Init :- The content of all the tabs are rendered on the initial load and maintained in the DOM.
42
- * ```
43
- */
44
- export declare type ContentLoad = 'Dynamic' | 'Init' | 'Demand';
45
- /** An interface that holds options to control the selected item action. */
46
- export interface SelectEventArgs extends BaseEventArgs {
47
- /** Defines the previous Tab item element. */
48
- previousItem: HTMLElement;
49
- /** Defines the previous Tab item index. */
50
- previousIndex: number;
51
- /** Defines the selected Tab item element. */
52
- selectedItem: HTMLElement;
53
- /** Defines the selected Tab item index. */
54
- selectedIndex: number;
55
- /** Defines the content selection done through swiping. */
56
- isSwiped: boolean;
57
- /** Defines the prevent action. */
58
- cancel?: boolean;
59
- /** Defines the selected content. */
60
- selectedContent: HTMLElement;
61
- /** Determines whether the event is triggered via user interaction or programmatic way. True, if the event is triggered by user interaction. */
62
- isInteracted?: boolean;
63
- /** Determines whether the Tab item needs to focus or not after it is selected */
64
- preventFocus?: boolean;
65
- }
66
- /** An interface that holds options to control the selecting item action. */
67
- export interface SelectingEventArgs extends SelectEventArgs {
68
- /** Defines the selecting Tab item element. */
69
- selectingItem: HTMLElement;
70
- /** Defines the selecting Tab item index. */
71
- selectingIndex: number;
72
- /** Defines the selecting Tab item content. */
73
- selectingContent: HTMLElement;
74
- /** Defines the type of the event. */
75
- event?: Event;
76
- }
77
- /** An interface that holds options to control the removing and removed item action. */
78
- export interface RemoveEventArgs extends BaseEventArgs {
79
- /** Defines the removed Tab item element. */
80
- removedItem: HTMLElement;
81
- /** Defines the removed Tab item index. */
82
- removedIndex: number;
83
- /** Defines the prevent action. */
84
- cancel?: boolean;
85
- }
86
- /** An interface that holds options to control the adding and added item action. */
87
- export interface AddEventArgs extends BaseEventArgs {
88
- /** Defines the added Tab item element */
89
- addedItems: TabItemModel[];
90
- /** Defines the prevent action. */
91
- cancel?: boolean;
92
- }
93
- /** An interface that holds option to control the dragging and dragged item action. */
94
- export interface DragEventArgs extends BaseEventArgs {
95
- /** Defines the current dragged Tab item. */
96
- draggedItem: HTMLElement;
97
- /** Defines the dropped Tab item. */
98
- droppedItem: HTMLElement;
99
- /** defines the Dragged Tab item index. */
100
- index: number;
101
- /** Return the actual event. */
102
- event: MouseEvent;
103
- /** Return the target element */
104
- target: HTMLElement;
105
- /** Return the clone element */
106
- clonedElement: HTMLElement;
107
- /** Defines the prevent action. */
108
- cancel?: boolean;
109
- }
110
- /**
111
- * Objects used for configuring the Tab selecting item action properties.
112
- */
113
- export declare class TabActionSettings extends ChildProperty<TabActionSettings> {
114
- /**
115
- * Specifies the animation effect for displaying Tab content.
116
- *
117
- * @default 'SlideLeftIn'
118
- * @aspType string
119
- */
120
- effect: 'None' | Effect;
121
- /**
122
- * Specifies the time duration to transform content.
123
- *
124
- * @default 600
125
- */
126
- duration: number;
127
- /**
128
- * Specifies easing effect applied while transforming content.
129
- *
130
- * @default 'ease'
131
- */
132
- easing: string;
133
- }
134
- /**
135
- * Objects used for configuring the Tab animation properties.
136
- */
137
- export declare class TabAnimationSettings extends ChildProperty<TabAnimationSettings> {
138
- /**
139
- * Specifies the animation to appear while moving to previous Tab content.
140
- *
141
- * @default { effect: 'SlideLeftIn', duration: 600, easing: 'ease' }
142
- */
143
- previous: TabActionSettingsModel;
144
- /**
145
- * Specifies the animation to appear while moving to next Tab content.
146
- *
147
- * @default { effect: 'SlideRightIn', duration: 600, easing: 'ease' }
148
- */
149
- next: TabActionSettingsModel;
150
- }
151
- /**
152
- * Objects used for configuring the Tab item header properties.
153
- */
154
- export declare class Header extends ChildProperty<Header> {
155
- /**
156
- * Specifies the display text of the Tab item header.
157
- *
158
- * @default ''
159
- */
160
- text: string | HTMLElement;
161
- /**
162
- * Specifies the icon class that is used to render an icon in the Tab header.
163
- *
164
- * @default ''
165
- */
166
- iconCss: string;
167
- /**
168
- * Options for positioning the icon in the Tab item header. This property depends on `iconCss` property.
169
- * The possible values for this property as follows
170
- * * `Left`: Places the icon to the left of the item.
171
- * * `Top`: Places the icon on the top of the item.
172
- * * `Right`: Places the icon to the right end of the item.
173
- * * `Bottom`: Places the icon at the bottom of the item.
174
- *
175
- * @default 'left'
176
- */
177
- iconPosition: string;
178
- }
179
- /**
180
- * An array of object that is used to configure the Tab.
181
- */
182
- export declare class TabItem extends ChildProperty<TabItem> {
183
- /**
184
- * The object used for configuring the Tab item header properties.
185
- *
186
- * @default {}
187
- */
188
- header: HeaderModel;
189
- /**
190
- * Specifies the header text of Tab item.
191
- *
192
- * @default null
193
- * @angularType string | object
194
- * @reactType string | function | JSX.Element
195
- * @vueType string | function
196
- * @aspType string
197
- */
198
- headerTemplate: string | Function;
199
- /**
200
- * Specifies the content of Tab item, that is displayed when concern item header is selected.
201
- *
202
- * @default ''
203
- * @angularType string | object
204
- * @reactType string | function | JSX.Element
205
- * @vueType string | function
206
- * @aspType string
207
- */
208
- content: string | HTMLElement | Function;
209
- /**
210
- * Sets the CSS classes to the Tab item to customize its styles.
211
- *
212
- * @default ''
213
- */
214
- cssClass: string;
215
- /**
216
- * Sets true to disable user interactions of the Tab item.
217
- *
218
- * @default false
219
- */
220
- disabled: boolean;
221
- /**
222
- * Sets false to hide the Tab item.
223
- *
224
- * @default true
225
- */
226
- visible: boolean;
227
- /**
228
- * Sets unique ID to Tab item.
229
- *
230
- * @default null
231
- */
232
- id: string;
233
- /**
234
- * Specifies the tab order of the Tabs items. When positive values assigned, it allows to switch focus to the next/previous tabs items with Tab/ShiftTab keys.
235
- * By default, user can able to switch between items only via arrow keys.
236
- * If the value is set to 0 for all tabs items, then tab switches based on element order.
237
- *
238
- * @default -1
239
- */
240
- tabIndex: number;
241
- }
242
- /**
243
- * Tab is a content panel to show multiple contents in a single space, one at a time.
244
- * Each Tab item has an associated content, that will be displayed based on the active Tab header item.
245
- * ```html
246
- * <div id="tab"></div>
247
- * <script>
248
- * var tabObj = new Tab();
249
- * tab.appendTo("#tab");
250
- * </script>
251
- * ```
252
- */
253
- export declare class Tab extends Component<HTMLElement> implements INotifyPropertyChanged {
254
- private hdrEle;
255
- private cntEle;
256
- private tbObj;
257
- tabId: string;
258
- private tbItems;
259
- private tbItem;
260
- private tbPop;
261
- private isTemplate;
262
- private isPopup;
263
- private isReplace;
264
- private prevIndex;
265
- private prevItem;
266
- private popEle;
267
- private actEleId;
268
- private bdrLine;
269
- private popObj;
270
- private btnCls;
271
- private cnt;
272
- private show;
273
- private hide;
274
- private enableAnimation;
275
- private keyModule;
276
- private tabKeyModule;
277
- private touchModule;
278
- private maxHeight;
279
- private title;
280
- private initRender;
281
- private isInteracted;
282
- private prevActiveEle;
283
- private lastIndex;
284
- private isSwiped;
285
- private isNested;
286
- private itemIndexArray;
287
- private templateEle;
288
- private scrCntClass;
289
- private isAdd;
290
- private content;
291
- private selectedID;
292
- private selectingID;
293
- private isIconAlone;
294
- private dragItem;
295
- private cloneElement;
296
- private droppedIndex;
297
- private draggingItems;
298
- private draggableItems;
299
- private tbId;
300
- private resizeContext;
301
- /**
302
- * Contains the keyboard configuration of the Tab.
303
- */
304
- private keyConfigs;
305
- /**
306
- * An array of object that is used to configure the Tab component.
307
- *
308
- * {% codeBlock src='tab/items/index.md' %}{% endcodeBlock %}
309
- *
310
- * @default []
311
- */
312
- items: TabItemModel[];
313
- /**
314
- * Specifies the width of the Tab component. Default, Tab width sets based on the width of its parent.
315
- *
316
- * @default '100%'
317
- */
318
- width: string | number;
319
- /**
320
- * Defines whether the tab transition should occur or not when performing Touch/Mouse swipe action.
321
- *
322
- * @remarks
323
- * - `Both`: Enables swiping for both touch and mouse input.
324
- * - `Touch`: Enables swiping only for touch input.
325
- * - `Mouse`: Enables swiping only for mouse input.
326
- * - `None`: Disables swiping for both touch and mouse input.
327
- *
328
- * @default "Both"
329
- */
330
- swipeMode: TabSwipeMode;
331
- /**
332
- * Specifies the height of the Tab component. By default, Tab height is set based on the height of its parent.
333
- * To use height property, heightAdjustMode must be set to 'None'.
334
- *
335
- * @default 'auto'
336
- */
337
- height: string | number;
338
- /**
339
- * Sets the CSS classes to root element of the Tab that helps to customize component styles.
340
- *
341
- * @default ''
342
- */
343
- cssClass: string;
344
- /**
345
- * Specifies the index for activating the current Tab item.
346
- *
347
- * {% codeBlock src='tab/selectedItem/index.md' %}{% endcodeBlock %}
348
- *
349
- * @default 0
350
- */
351
- selectedItem: number;
352
- /**
353
- * Specifies the orientation of Tab header.
354
- * The possible values for this property as follows
355
- * * `Top`: Places the Tab header on the top.
356
- * * `Bottom`: Places the Tab header at the bottom.
357
- * * `Left`: Places the Tab header on the left.
358
- * * `Right`: Places the Tab header at the right.
359
- *
360
- * @default 'Top'
361
- */
362
- headerPlacement: HeaderPosition;
363
- /**
364
- * Specifies the height style for Tab content.
365
- * The possible values for this property as follows
366
- * * `None`: Based on the given height property, the content panel height is set.
367
- * * `Auto`: Tallest panel height of a given Tab content is set to all the other panels.
368
- * * `Content`: Based on the corresponding content height, the content panel height is set.
369
- * * `Fill`: Based on the parent height, the content panel height is set.
370
- *
371
- * @default 'Content'
372
- */
373
- heightAdjustMode: HeightStyles;
374
- /**
375
- * Specifies the Tab display mode when Tab content exceeds the viewing area.
376
- * The possible modes are:
377
- * * `Scrollable`: All the elements are displayed in a single line with horizontal scrolling enabled.
378
- * * `Popup`: Tab container holds the items that can be placed within the available space and rest of the items are moved to the popup.
379
- * If the popup content overflows the height of the page, the rest of the elements can be viewed by scrolling the popup.
380
- *
381
- * @default 'Scrollable'
382
- */
383
- overflowMode: OverflowMode;
384
- /**
385
- * Specifies the modes for Tab content.
386
- * The possible modes are:
387
- * * `Demand` - The content of the selected tab alone is loaded initially. The content of the tabs which were loaded once will be maintained in the DOM.
388
- * * `Dynamic` - Only the content of the selected tab is loaded and available in the DOM, and it will be replaced with the corresponding content if the tab is selected dynamically.
389
- * * `Init` - The content of all the tabs are rendered on the initial load and maintained in the DOM.
390
- *
391
- * @default 'Demand'
392
- */
393
- loadOn: ContentLoad;
394
- /**
395
- * Enable or disable persisting component's state between page reloads.
396
- * If enabled, following list of states will be persisted.
397
- * 1. selectedItem
398
- *
399
- * @default false
400
- */
401
- enablePersistence: boolean;
402
- /**
403
- * Specifies whether to enable the rendering of untrusted HTML values in the Tab component.
404
- * When this property is enabled, the component will sanitize any suspected untrusted strings and scripts before rendering them.
405
- *
406
- * @default true
407
- */
408
- enableHtmlSanitizer: boolean;
409
- /**
410
- * Specifies whether to show the close button for header items to remove the item from the Tab.
411
- *
412
- * @default false
413
- */
414
- showCloseButton: boolean;
415
- /**
416
- * Determines whether to re-order tab items to show active tab item in the header area or popup when OverflowMode is Popup.
417
- * True, if active tab item should be visible in header area instead of pop-up. The default value is true.
418
- *
419
- * @default true
420
- */
421
- reorderActiveTab: boolean;
422
- /**
423
- * Specifies the scrolling distance in scroller.
424
- *
425
- * @default null
426
- */
427
- scrollStep: number;
428
- /**
429
- * Defines the area in which the draggable element movement will be occurring. Outside that area will be restricted
430
- * for the draggable element movement. By default, the draggable element movement occurs in the toolbar.
431
- *
432
- * @default null
433
- */
434
- dragArea: string;
435
- /**
436
- * Sets true to allow drag and drop the Tab items
437
- *
438
- * @default false
439
- */
440
- allowDragAndDrop: boolean;
441
- /**
442
- * Specifies whether the templates need to be cleared or not while changing the Tab items dynamically.
443
- * @default true
444
- */
445
- clearTemplates: boolean;
446
- /**
447
- * Specifies the animation configuration settings while showing the content of the Tab.
448
- *
449
- * @default
450
- * { previous: { effect: 'SlideLeftIn', duration: 600, easing: 'ease' },
451
- * next: { effect: 'SlideRightIn', duration: 600, easing: 'ease' } }
452
- */
453
- animation: TabAnimationSettingsModel;
454
- /**
455
- * The event will be fired once the component rendering is completed.
456
- *
457
- * @event
458
- */
459
- created: EmitType<Event>;
460
- /**
461
- * The event will be fired before adding the item to the Tab.
462
- *
463
- * @event
464
- */
465
- adding: EmitType<AddEventArgs>;
466
- /**
467
- * The event will be fired after adding the item to the Tab.
468
- *
469
- * @event
470
- */
471
- added: EmitType<AddEventArgs>;
472
- /**
473
- * The event will be fired before the item gets selected.
474
- *
475
- * @event
476
- */
477
- selecting: EmitType<SelectingEventArgs>;
478
- /**
479
- * The event will be fired after the item gets selected.
480
- *
481
- * @event
482
- */
483
- selected: EmitType<SelectEventArgs>;
484
- /**
485
- * The event will be fired before removing the item from the Tab.
486
- *
487
- * @event
488
- */
489
- removing: EmitType<RemoveEventArgs>;
490
- /**
491
- * The event will be fired after removing the item from the Tab.
492
- *
493
- * @event
494
- */
495
- removed: EmitType<RemoveEventArgs>;
496
- /**
497
- * The event will be fired before dragging the item from Tab
498
- * @event
499
- */
500
- onDragStart: EmitType<DragEventArgs>;
501
- /**
502
- * The event will be fired while dragging the Tab item
503
- * @event
504
- */
505
- dragging: EmitType<DragEventArgs>;
506
- /**
507
- * The event will be fired after dropping the Tab item
508
- * @event
509
- */
510
- dragged: EmitType<DragEventArgs>;
511
- /**
512
- * The event will be fired when the component gets destroyed.
513
- *
514
- * @event
515
- */
516
- destroyed: EmitType<Event>;
517
- /**
518
- * Removes the component from the DOM and detaches all its related event handlers, attributes and classes.
519
- *
520
- * @returns {void}
521
- */
522
- destroy(): void;
523
- /**
524
- * Refresh the tab component
525
- *
526
- * @returns {void}
527
- */
528
- refresh(): void;
529
- /**
530
- * Reorganizes and adjusts the Tab headers to fit the available width without re-rendering the entire Tab component.
531
- *
532
- * This method is useful for optimizing the layout when:
533
- * - A hidden tab item becomes visible.
534
- * - The number of tab items changes dynamically.
535
- *
536
- * @returns {void} This method does not return a value.
537
- */
538
- refreshOverflow(): void;
539
- /**
540
- * Initialize component
541
- *
542
- * @private
543
- * @returns {void}
544
- */
545
- protected preRender(): void;
546
- /**
547
- * Initializes a new instance of the Tab class.
548
- *
549
- * @param {TabModel} options - Specifies Tab model properties as options.
550
- * @param {string | HTMLElement} element - Specifies the element that is rendered as a Tab.
551
- */
552
- constructor(options?: TabModel, element?: string | HTMLElement);
553
- /**
554
- * Initialize the component rendering
555
- *
556
- * @private
557
- * @returns {void}
558
- */
559
- protected render(): void;
560
- private renderContainer;
561
- private renderHeader;
562
- private createContentElement;
563
- private renderContent;
564
- private reRenderItems;
565
- private parseObject;
566
- private removeActiveClass;
567
- private checkPopupOverflow;
568
- private popupHandler;
569
- private setCloseButton;
570
- private prevCtnAnimation;
571
- private triggerPrevAnimation;
572
- private triggerAnimation;
573
- private keyPressed;
574
- private getTabHeader;
575
- private getEleIndex;
576
- private extIndex;
577
- private getMaxIndicesFromItems;
578
- private expTemplateContent;
579
- private templateCompile;
580
- private compileElement;
581
- private headerTextCompile;
582
- private getContent;
583
- private getTrgContent;
584
- private findEle;
585
- private isVertical;
586
- private addVerticalClass;
587
- private updatePopAnimationConfig;
588
- private changeOrientation;
589
- private focusItem;
590
- private changeToolbarOrientation;
591
- private setOrientation;
592
- private setCssClass;
593
- private loadContentInitMode;
594
- private loadContentElement;
595
- private setContentHeight;
596
- private getHeight;
597
- private setActiveBorder;
598
- private setActive;
599
- private setItems;
600
- private setRTL;
601
- private refreshActiveBorder;
602
- private showPopup;
603
- private bindDraggable;
604
- private bindSwipeEvents;
605
- private wireEvents;
606
- private unWireEvents;
607
- private clickHandler;
608
- private swipeHandler;
609
- private spaceKeyDown;
610
- private keyHandler;
611
- private refreshItemVisibility;
612
- private getIndexFromEle;
613
- private hoverHandler;
614
- private evalOnPropertyChangeItems;
615
- private clearTabTemplate;
616
- private initializeDrag;
617
- private helper;
618
- private itemDragStart;
619
- private dragAction;
620
- private itemDragStop;
621
- /**
622
- * Enables or disables the specified Tab item. On passing value as `false`, the item will be disabled.
623
- *
624
- * @param {number} index - Index value of target Tab item.
625
- * @param {boolean} value - Boolean value that determines whether the command should be enabled or disabled.
626
- * By default, isEnable is true.
627
- * @returns {void}.
628
- */
629
- enableTab(index: number, value: boolean): void;
630
- /**
631
- * Adds new items to the Tab that accepts an array as Tab items.
632
- *
633
- * @param {TabItemModel[]} items - An array of item that is added to the Tab.
634
- * @param {number} index - Number value that determines where the items to be added. By default, index is 0.
635
- * @returns {void}.
636
- */
637
- addTab(items: TabItemModel[], index?: number): void;
638
- private addingTabContent;
639
- /**
640
- * Removes the items in the Tab from the specified index.
641
- *
642
- * @param {number} index - Index of target item that is going to be removed.
643
- * @returns {void}.
644
- */
645
- removeTab(index: number): void;
646
- /**
647
- * Shows or hides the Tab that is in the specified index.
648
- *
649
- * @param {number} index - Index value of target item.
650
- * @param {boolean} value - Based on this Boolean value, item will be hide (true) or show (false). By default, value is true.
651
- * @returns {void}.
652
- */
653
- hideTab(index: number, value?: boolean): void;
654
- private selectTab;
655
- /**
656
- * Specifies the index or HTMLElement to select an item from the Tab.
657
- *
658
- * @param {number | HTMLElement} args - Index or DOM element is used for selecting an item from the Tab.
659
- * @param {Event} event - An event which takes place in DOM.
660
- * @returns {void}
661
- */
662
- select(args: number | HTEle, event?: Event): void;
663
- private getSelectingTabIndex;
664
- private selectingContent;
665
- /**
666
- * Gets the item index from the Tab.
667
- *
668
- * @param {string} tabItemId - Item ID is used for getting index from the Tab.
669
- * @returns {number} - It returns item index.
670
- */
671
- getItemIndex(tabItemId: string): number;
672
- /**
673
- * Specifies the value to disable/enable the Tab component.
674
- * When set to `true`, the component will be disabled.
675
- *
676
- * @param {boolean} value - Based on this Boolean value, Tab will be enabled (false) or disabled (true).
677
- * @returns {void}.
678
- */
679
- disable(value: boolean): void;
680
- /**
681
- * Get the properties to be maintained in the persisted state.
682
- *
683
- * @returns {string} - It returns the persisted state.
684
- */
685
- protected getPersistData(): string;
686
- /**
687
- * Returns the current module name.
688
- *
689
- * @returns {string} - It returns the current module name.
690
- * @private
691
- */
692
- protected getModuleName(): string;
693
- /**
694
- * Gets called when the model property changes.The data that describes the old and new values of the property that changed.
695
- *
696
- * @param {TabModel} newProp - It contains the new value of data.
697
- * @param {TabModel} oldProp - It contains the old value of data.
698
- * @returns {void}
699
- * @private
700
- */
701
- onPropertyChanged(newProp: TabModel, oldProp: TabModel): void;
702
- /**
703
- * To refresh the active tab contents.
704
- *
705
- * @returns {void}
706
- */
707
- refreshActiveTab(): void;
708
- /**
709
- * To refresh the active tab indicator.
710
- *
711
- * @returns {void}
712
- */
713
- refreshActiveTabBorder(): void;
714
- }
715
- export {};