@syncfusion/ej2-navigations 30.2.7 → 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 (162) hide show
  1. package/dist/ej2-navigations.min.js +1 -1
  2. package/dist/ej2-navigations.umd.min.js +1 -1
  3. package/dist/ej2-navigations.umd.min.js.map +1 -1
  4. package/dist/es6/ej2-navigations.es2015.js.map +1 -1
  5. package/dist/es6/ej2-navigations.es5.js.map +1 -1
  6. package/dist/global/ej2-navigations.min.js +1 -1
  7. package/dist/global/ej2-navigations.min.js.map +1 -1
  8. package/dist/global/index.d.ts +1 -1
  9. package/dist/ts/accordion/accordion-model.d.ts +285 -0
  10. package/dist/ts/accordion/accordion.d.ts +458 -0
  11. package/dist/ts/accordion/accordion.ts +1580 -0
  12. package/dist/ts/accordion/index.d.ts +5 -0
  13. package/dist/ts/accordion/index.ts +5 -0
  14. package/dist/ts/appbar/appbar-model.d.ts +76 -0
  15. package/dist/ts/appbar/appbar.d.ts +115 -0
  16. package/dist/ts/appbar/appbar.ts +281 -0
  17. package/dist/ts/appbar/index.d.ts +3 -0
  18. package/dist/ts/appbar/index.ts +3 -0
  19. package/dist/ts/breadcrumb/breadcrumb-model.d.ts +170 -0
  20. package/dist/ts/breadcrumb/breadcrumb.d.ts +297 -0
  21. package/dist/ts/breadcrumb/breadcrumb.ts +959 -0
  22. package/dist/ts/breadcrumb/index.d.ts +5 -0
  23. package/dist/ts/breadcrumb/index.ts +5 -0
  24. package/dist/ts/carousel/carousel-model.d.ts +282 -0
  25. package/dist/ts/carousel/carousel.d.ts +439 -0
  26. package/dist/ts/carousel/carousel.ts +1633 -0
  27. package/dist/ts/carousel/index.d.ts +3 -0
  28. package/dist/ts/carousel/index.ts +3 -0
  29. package/dist/ts/common/h-scroll-model.d.ts +16 -0
  30. package/dist/ts/common/h-scroll.d.ts +105 -0
  31. package/dist/ts/common/h-scroll.ts +481 -0
  32. package/dist/ts/common/index.d.ts +9 -0
  33. package/dist/ts/common/index.ts +10 -0
  34. package/dist/ts/common/menu-base-model.d.ts +308 -0
  35. package/dist/ts/common/menu-base.d.ts +558 -0
  36. package/dist/ts/common/menu-base.ts +2736 -0
  37. package/dist/ts/common/menu-scroll.d.ts +29 -0
  38. package/dist/ts/common/menu-scroll.ts +105 -0
  39. package/dist/ts/common/v-scroll-model.d.ts +16 -0
  40. package/dist/ts/common/v-scroll.d.ts +106 -0
  41. package/dist/ts/common/v-scroll.ts +454 -0
  42. package/dist/ts/context-menu/context-menu-model.d.ts +47 -0
  43. package/dist/ts/context-menu/context-menu.d.ts +102 -0
  44. package/dist/ts/context-menu/context-menu.ts +165 -0
  45. package/dist/ts/context-menu/index.d.ts +5 -0
  46. package/dist/ts/context-menu/index.ts +5 -0
  47. package/dist/ts/index.d.ts +16 -0
  48. package/dist/ts/index.ts +16 -0
  49. package/dist/ts/menu/index.d.ts +5 -0
  50. package/dist/ts/menu/index.ts +5 -0
  51. package/dist/ts/menu/menu-model.d.ts +70 -0
  52. package/dist/ts/menu/menu.d.ts +127 -0
  53. package/dist/ts/menu/menu.ts +313 -0
  54. package/dist/ts/sidebar/index.d.ts +5 -0
  55. package/dist/ts/sidebar/index.ts +5 -0
  56. package/dist/ts/sidebar/sidebar-model.d.ts +200 -0
  57. package/dist/ts/sidebar/sidebar.d.ts +336 -0
  58. package/dist/ts/sidebar/sidebar.ts +907 -0
  59. package/dist/ts/stepper/index.d.ts +3 -0
  60. package/dist/ts/stepper/index.ts +3 -0
  61. package/dist/ts/stepper/stepper-model.d.ts +159 -0
  62. package/dist/ts/stepper/stepper.d.ts +381 -0
  63. package/dist/ts/stepper/stepper.ts +1350 -0
  64. package/dist/ts/stepper-base/index.d.ts +5 -0
  65. package/dist/ts/stepper-base/index.ts +6 -0
  66. package/dist/ts/stepper-base/stepper-base-model.d.ts +124 -0
  67. package/dist/ts/stepper-base/stepper-base.d.ts +187 -0
  68. package/dist/ts/stepper-base/stepper-base.ts +290 -0
  69. package/dist/ts/tab/index.d.ts +5 -0
  70. package/dist/ts/tab/index.ts +5 -0
  71. package/dist/ts/tab/tab-model.d.ts +408 -0
  72. package/dist/ts/tab/tab.d.ts +715 -0
  73. package/dist/ts/tab/tab.ts +2842 -0
  74. package/dist/ts/toolbar/index.d.ts +5 -0
  75. package/dist/ts/toolbar/index.ts +5 -0
  76. package/dist/ts/toolbar/toolbar-model.d.ts +294 -0
  77. package/dist/ts/toolbar/toolbar.d.ts +541 -0
  78. package/dist/ts/toolbar/toolbar.ts +2646 -0
  79. package/dist/ts/treeview/index.d.ts +5 -0
  80. package/dist/ts/treeview/index.ts +5 -0
  81. package/dist/ts/treeview/treeview-model.d.ts +637 -0
  82. package/dist/ts/treeview/treeview.d.ts +1518 -0
  83. package/dist/ts/treeview/treeview.ts +6780 -0
  84. package/package.json +70 -17
  85. package/src/context-menu/context-menu-model.d.ts +1 -1
  86. package/src/context-menu/context-menu.js +1 -1
  87. package/styles/accordion/_bootstrap-dark-definition.scss +1 -1
  88. package/styles/accordion/_bootstrap-definition.scss +1 -1
  89. package/styles/accordion/bootstrap-dark.css +1 -1
  90. package/styles/accordion/bootstrap.css +1 -1
  91. package/styles/bds-lite.css +1 -1
  92. package/styles/bds.css +1 -1
  93. package/styles/bootstrap-dark-lite.css +2 -2
  94. package/styles/bootstrap-dark.css +2 -2
  95. package/styles/bootstrap-lite.css +2 -2
  96. package/styles/bootstrap.css +2 -2
  97. package/styles/bootstrap4-lite.css +1 -1
  98. package/styles/bootstrap4.css +1 -1
  99. package/styles/bootstrap5-dark-lite.css +1 -1
  100. package/styles/bootstrap5-dark.css +1 -1
  101. package/styles/bootstrap5-lite.css +1 -1
  102. package/styles/bootstrap5.3-lite.css +1 -1
  103. package/styles/bootstrap5.3.css +9 -1
  104. package/styles/bootstrap5.css +1 -1
  105. package/styles/fabric-dark-lite.css +1 -1
  106. package/styles/fabric-dark.css +1 -1
  107. package/styles/fabric-lite.css +1 -1
  108. package/styles/fabric.css +1 -1
  109. package/styles/fluent-dark-lite.css +1 -1
  110. package/styles/fluent-dark.css +1 -1
  111. package/styles/fluent-lite.css +1 -1
  112. package/styles/fluent.css +1 -1
  113. package/styles/fluent2-lite.css +4 -1
  114. package/styles/fluent2.css +4 -1
  115. package/styles/h-scroll/_layout.scss +1 -1
  116. package/styles/h-scroll/bds.css +1 -1
  117. package/styles/h-scroll/bootstrap-dark.css +1 -1
  118. package/styles/h-scroll/bootstrap.css +1 -1
  119. package/styles/h-scroll/bootstrap4.css +1 -1
  120. package/styles/h-scroll/bootstrap5-dark.css +1 -1
  121. package/styles/h-scroll/bootstrap5.3.css +1 -1
  122. package/styles/h-scroll/bootstrap5.css +1 -1
  123. package/styles/h-scroll/fabric-dark.css +1 -1
  124. package/styles/h-scroll/fabric.css +1 -1
  125. package/styles/h-scroll/fluent-dark.css +1 -1
  126. package/styles/h-scroll/fluent.css +1 -1
  127. package/styles/h-scroll/fluent2.css +1 -1
  128. package/styles/h-scroll/highcontrast-light.css +1 -1
  129. package/styles/h-scroll/highcontrast.css +1 -1
  130. package/styles/h-scroll/material-dark.css +1 -1
  131. package/styles/h-scroll/material.css +1 -1
  132. package/styles/h-scroll/material3-dark.css +1 -1
  133. package/styles/h-scroll/material3.css +1 -1
  134. package/styles/h-scroll/tailwind-dark.css +1 -1
  135. package/styles/h-scroll/tailwind.css +1 -1
  136. package/styles/h-scroll/tailwind3.css +1 -1
  137. package/styles/highcontrast-light-lite.css +1 -1
  138. package/styles/highcontrast-light.css +1 -1
  139. package/styles/highcontrast-lite.css +1 -1
  140. package/styles/highcontrast.css +1 -1
  141. package/styles/material-dark-lite.css +1 -1
  142. package/styles/material-dark.css +1 -1
  143. package/styles/material-lite.css +1 -1
  144. package/styles/material.css +1 -1
  145. package/styles/material3-dark-lite.css +1 -1
  146. package/styles/material3-dark.css +1 -7
  147. package/styles/material3-lite.css +1 -1
  148. package/styles/material3.css +1 -7
  149. package/styles/tailwind-dark-lite.css +1 -1
  150. package/styles/tailwind-dark.css +1 -1
  151. package/styles/tailwind-lite.css +1 -1
  152. package/styles/tailwind.css +1 -1
  153. package/styles/tailwind3-lite.css +1 -1
  154. package/styles/tailwind3.css +1 -1
  155. package/styles/toolbar/_layout.scss +1 -1
  156. package/styles/treeview/_bigger.scss +2 -2
  157. package/styles/treeview/_bootstrap5.3-definition.scss +1 -0
  158. package/styles/treeview/_layout.scss +3 -0
  159. package/styles/treeview/bootstrap5.3.css +8 -0
  160. package/styles/treeview/fluent2.css +3 -0
  161. package/styles/treeview/material3-dark.css +0 -6
  162. package/styles/treeview/material3.css +0 -6
@@ -0,0 +1,408 @@
1
+ import { Component, Property, Event, EmitType, closest, Collection, Complex, attributes, detach, Instance, isNullOrUndefined, animationMode } from '@syncfusion/ej2-base';import { INotifyPropertyChanged, NotifyPropertyChanges, ChildProperty, select, isVisible } from '@syncfusion/ej2-base';import { KeyboardEvents, KeyboardEventArgs, MouseEventArgs, Effect, Browser, formatUnit, DomElements, L10n } from '@syncfusion/ej2-base';import { setStyleAttribute as setStyle, isNullOrUndefined as isNOU, selectAll, addClass, removeClass, remove } from '@syncfusion/ej2-base';import { EventHandler, rippleEffect, Touch, SwipeEventArgs, compile, Animation, AnimationModel, BaseEventArgs } from '@syncfusion/ej2-base';import { getRandomId, SanitizeHtmlHelper, Draggable, DragEventArgs as DragArgs, DropEventArgs } from '@syncfusion/ej2-base';import { Base } from '@syncfusion/ej2-base';import { Popup, PopupModel } from '@syncfusion/ej2-popups';import { Toolbar, OverflowMode, ClickEventArgs } from '../toolbar/toolbar';
2
+ import {TabSwipeMode,HeaderPosition,HeightStyles,ContentLoad,AddEventArgs,SelectingEventArgs,SelectEventArgs,RemoveEventArgs,DragEventArgs} from "./tab";
3
+ import {ComponentModel} from '@syncfusion/ej2-base';
4
+
5
+ /**
6
+ * Interface for a class TabActionSettings
7
+ */
8
+ export interface TabActionSettingsModel {
9
+
10
+ /**
11
+ * Specifies the animation effect for displaying Tab content.
12
+ *
13
+ * @default 'SlideLeftIn'
14
+ * @aspType string
15
+ */
16
+ effect?: 'None' | Effect;
17
+
18
+ /**
19
+ * Specifies the time duration to transform content.
20
+ *
21
+ * @default 600
22
+ */
23
+ duration?: number;
24
+
25
+ /**
26
+ * Specifies easing effect applied while transforming content.
27
+ *
28
+ * @default 'ease'
29
+ */
30
+ easing?: string;
31
+
32
+ }
33
+
34
+ /**
35
+ * Interface for a class TabAnimationSettings
36
+ */
37
+ export interface TabAnimationSettingsModel {
38
+
39
+ /**
40
+ * Specifies the animation to appear while moving to previous Tab content.
41
+ *
42
+ * @default { effect: 'SlideLeftIn', duration: 600, easing: 'ease' }
43
+ */
44
+ previous?: TabActionSettingsModel;
45
+
46
+ /**
47
+ * Specifies the animation to appear while moving to next Tab content.
48
+ *
49
+ * @default { effect: 'SlideRightIn', duration: 600, easing: 'ease' }
50
+ */
51
+ next?: TabActionSettingsModel;
52
+
53
+ }
54
+
55
+ /**
56
+ * Interface for a class Header
57
+ */
58
+ export interface HeaderModel {
59
+
60
+ /**
61
+ * Specifies the display text of the Tab item header.
62
+ *
63
+ * @default ''
64
+ */
65
+ text?: string | HTMLElement;
66
+
67
+ /**
68
+ * Specifies the icon class that is used to render an icon in the Tab header.
69
+ *
70
+ * @default ''
71
+ */
72
+ iconCss?: string;
73
+
74
+ /**
75
+ * Options for positioning the icon in the Tab item header. This property depends on `iconCss` property.
76
+ * The possible values for this property as follows
77
+ * * `Left`: Places the icon to the left of the item.
78
+ * * `Top`: Places the icon on the top of the item.
79
+ * * `Right`: Places the icon to the right end of the item.
80
+ * * `Bottom`: Places the icon at the bottom of the item.
81
+ *
82
+ * @default 'left'
83
+ */
84
+ iconPosition?: string;
85
+
86
+ }
87
+
88
+ /**
89
+ * Interface for a class TabItem
90
+ */
91
+ export interface TabItemModel {
92
+
93
+ /**
94
+ * The object used for configuring the Tab item header properties.
95
+ *
96
+ * @default {}
97
+ */
98
+ header?: HeaderModel;
99
+
100
+ /**
101
+ * Specifies the header text of Tab item.
102
+ *
103
+ * @default null
104
+ * @angularType string | object
105
+ * @reactType string | function | JSX.Element
106
+ * @vueType string | function
107
+ * @aspType string
108
+ */
109
+ headerTemplate?: string | Function;
110
+
111
+ /**
112
+ * Specifies the content of Tab item, that is displayed when concern item header is selected.
113
+ *
114
+ * @default ''
115
+ * @angularType string | object
116
+ * @reactType string | function | JSX.Element
117
+ * @vueType string | function
118
+ * @aspType string
119
+ */
120
+ content?: string | HTMLElement | Function;
121
+
122
+ /**
123
+ * Sets the CSS classes to the Tab item to customize its styles.
124
+ *
125
+ * @default ''
126
+ */
127
+ cssClass?: string;
128
+
129
+ /**
130
+ * Sets true to disable user interactions of the Tab item.
131
+ *
132
+ * @default false
133
+ */
134
+ disabled?: boolean;
135
+
136
+ /**
137
+ * Sets false to hide the Tab item.
138
+ *
139
+ * @default true
140
+ */
141
+ visible?: boolean;
142
+
143
+ /**
144
+ * Sets unique ID to Tab item.
145
+ *
146
+ * @default null
147
+ */
148
+ id?: string;
149
+
150
+ /**
151
+ * 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.
152
+ * By default, user can able to switch between items only via arrow keys.
153
+ * If the value is set to 0 for all tabs items, then tab switches based on element order.
154
+ *
155
+ * @default -1
156
+ */
157
+ tabIndex?: number;
158
+
159
+ }
160
+
161
+ /**
162
+ * Interface for a class Tab
163
+ */
164
+ export interface TabModel extends ComponentModel{
165
+
166
+ /**
167
+ * An array of object that is used to configure the Tab component.
168
+ *
169
+ * {% codeBlock src='tab/items/index.md' %}{% endcodeBlock %}
170
+ *
171
+ * @default []
172
+ */
173
+ items?: TabItemModel[];
174
+
175
+ /**
176
+ * Specifies the width of the Tab component. Default, Tab width sets based on the width of its parent.
177
+ *
178
+ * @default '100%'
179
+ */
180
+ width?: string | number;
181
+
182
+ /**
183
+ * Defines whether the tab transition should occur or not when performing Touch/Mouse swipe action.
184
+ *
185
+ * @remarks
186
+ * - `Both`: Enables swiping for both touch and mouse input.
187
+ * - `Touch`: Enables swiping only for touch input.
188
+ * - `Mouse`: Enables swiping only for mouse input.
189
+ * - `None`: Disables swiping for both touch and mouse input.
190
+ *
191
+ * @default "Both"
192
+ */
193
+ swipeMode?: TabSwipeMode;
194
+
195
+ /**
196
+ * Specifies the height of the Tab component. By default, Tab height is set based on the height of its parent.
197
+ * To use height property, heightAdjustMode must be set to 'None'.
198
+ *
199
+ * @default 'auto'
200
+ */
201
+ height?: string | number;
202
+
203
+ /**
204
+ * Sets the CSS classes to root element of the Tab that helps to customize component styles.
205
+ *
206
+ * @default ''
207
+ */
208
+ cssClass?: string;
209
+
210
+ /**
211
+ * Specifies the index for activating the current Tab item.
212
+ *
213
+ * {% codeBlock src='tab/selectedItem/index.md' %}{% endcodeBlock %}
214
+ *
215
+ * @default 0
216
+ */
217
+ selectedItem?: number;
218
+
219
+ /**
220
+ * Specifies the orientation of Tab header.
221
+ * The possible values for this property as follows
222
+ * * `Top`: Places the Tab header on the top.
223
+ * * `Bottom`: Places the Tab header at the bottom.
224
+ * * `Left`: Places the Tab header on the left.
225
+ * * `Right`: Places the Tab header at the right.
226
+ *
227
+ * @default 'Top'
228
+ */
229
+ headerPlacement?: HeaderPosition;
230
+
231
+ /**
232
+ * Specifies the height style for Tab content.
233
+ * The possible values for this property as follows
234
+ * * `None`: Based on the given height property, the content panel height is set.
235
+ * * `Auto`: Tallest panel height of a given Tab content is set to all the other panels.
236
+ * * `Content`: Based on the corresponding content height, the content panel height is set.
237
+ * * `Fill`: Based on the parent height, the content panel height is set.
238
+ *
239
+ * @default 'Content'
240
+ */
241
+ heightAdjustMode?: HeightStyles;
242
+
243
+ /**
244
+ * Specifies the Tab display mode when Tab content exceeds the viewing area.
245
+ * The possible modes are:
246
+ * * `Scrollable`: All the elements are displayed in a single line with horizontal scrolling enabled.
247
+ * * `Popup`: Tab container holds the items that can be placed within the available space and rest of the items are moved to the popup.
248
+ * If the popup content overflows the height of the page, the rest of the elements can be viewed by scrolling the popup.
249
+ *
250
+ * @default 'Scrollable'
251
+ */
252
+ overflowMode?: OverflowMode;
253
+
254
+ /**
255
+ * Specifies the modes for Tab content.
256
+ * The possible modes are:
257
+ * * `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.
258
+ * * `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.
259
+ * * `Init` - The content of all the tabs are rendered on the initial load and maintained in the DOM.
260
+ *
261
+ * @default 'Demand'
262
+ */
263
+ loadOn?: ContentLoad;
264
+
265
+ /**
266
+ * Enable or disable persisting component's state between page reloads.
267
+ * If enabled, following list of states will be persisted.
268
+ * 1. selectedItem
269
+ *
270
+ * @default false
271
+ */
272
+ enablePersistence?: boolean;
273
+
274
+ /**
275
+ * Specifies whether to enable the rendering of untrusted HTML values in the Tab component.
276
+ * When this property is enabled, the component will sanitize any suspected untrusted strings and scripts before rendering them.
277
+ *
278
+ * @default true
279
+ */
280
+ enableHtmlSanitizer?: boolean;
281
+
282
+ /**
283
+ * Specifies whether to show the close button for header items to remove the item from the Tab.
284
+ *
285
+ * @default false
286
+ */
287
+ showCloseButton?: boolean;
288
+
289
+ /**
290
+ * Determines whether to re-order tab items to show active tab item in the header area or popup when OverflowMode is Popup.
291
+ * True, if active tab item should be visible in header area instead of pop-up. The default value is true.
292
+ *
293
+ * @default true
294
+ */
295
+ reorderActiveTab?: boolean;
296
+
297
+ /**
298
+ * Specifies the scrolling distance in scroller.
299
+ *
300
+ * @default null
301
+ */
302
+ scrollStep?: number;
303
+
304
+ /**
305
+ * Defines the area in which the draggable element movement will be occurring. Outside that area will be restricted
306
+ * for the draggable element movement. By default, the draggable element movement occurs in the toolbar.
307
+ *
308
+ * @default null
309
+ */
310
+ dragArea?: string;
311
+
312
+ /**
313
+ * Sets true to allow drag and drop the Tab items
314
+ *
315
+ * @default false
316
+ */
317
+ allowDragAndDrop?: boolean;
318
+
319
+ /**
320
+ * Specifies whether the templates need to be cleared or not while changing the Tab items dynamically.
321
+ * @default true
322
+ */
323
+ clearTemplates?: boolean;
324
+
325
+ /**
326
+ * Specifies the animation configuration settings while showing the content of the Tab.
327
+ *
328
+ * @default
329
+ * { previous: { effect: 'SlideLeftIn', duration: 600, easing: 'ease' },
330
+ * next: { effect: 'SlideRightIn', duration: 600, easing: 'ease' } }
331
+ */
332
+ animation?: TabAnimationSettingsModel;
333
+
334
+ /**
335
+ * The event will be fired once the component rendering is completed.
336
+ *
337
+ * @event
338
+ */
339
+ created?: EmitType<Event>;
340
+
341
+ /**
342
+ * The event will be fired before adding the item to the Tab.
343
+ *
344
+ * @event
345
+ */
346
+ adding?: EmitType<AddEventArgs>;
347
+
348
+ /**
349
+ * The event will be fired after adding the item to the Tab.
350
+ *
351
+ * @event
352
+ */
353
+ added?: EmitType<AddEventArgs>;
354
+
355
+ /**
356
+ * The event will be fired before the item gets selected.
357
+ *
358
+ * @event
359
+ */
360
+ selecting?: EmitType<SelectingEventArgs>;
361
+
362
+ /**
363
+ * The event will be fired after the item gets selected.
364
+ *
365
+ * @event
366
+ */
367
+ selected?: EmitType<SelectEventArgs>;
368
+
369
+ /**
370
+ * The event will be fired before removing the item from the Tab.
371
+ *
372
+ * @event
373
+ */
374
+ removing?: EmitType<RemoveEventArgs>;
375
+
376
+ /**
377
+ * The event will be fired after removing the item from the Tab.
378
+ *
379
+ * @event
380
+ */
381
+ removed?: EmitType<RemoveEventArgs>;
382
+
383
+ /**
384
+ * The event will be fired before dragging the item from Tab
385
+ * @event
386
+ */
387
+ onDragStart?: EmitType<DragEventArgs>;
388
+
389
+ /**
390
+ * The event will be fired while dragging the Tab item
391
+ * @event
392
+ */
393
+ dragging?: EmitType<DragEventArgs>;
394
+
395
+ /**
396
+ * The event will be fired after dropping the Tab item
397
+ * @event
398
+ */
399
+ dragged?: EmitType<DragEventArgs>;
400
+
401
+ /**
402
+ * The event will be fired when the component gets destroyed.
403
+ *
404
+ * @event
405
+ */
406
+ destroyed?: EmitType<Event>;
407
+
408
+ }