@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,308 @@
1
+ import { Component, Property, ChildProperty, NotifyPropertyChanges, INotifyPropertyChanged, AnimationModel, isBlazor } from '@syncfusion/ej2-base';import { Event, EventHandler, EmitType, BaseEventArgs, KeyboardEvents, KeyboardEventArgs, Touch, TapEventArgs } from '@syncfusion/ej2-base';import { Animation, AnimationOptions, TouchEventArgs, MouseEventArgs } from '@syncfusion/ej2-base';import { Browser, Collection, setValue, getValue, getUniqueID, getInstance, isNullOrUndefined } from '@syncfusion/ej2-base';import { select, selectAll, closest, detach, append, rippleEffect, isVisible, Complex, addClass, removeClass } from '@syncfusion/ej2-base';import { ListBase, ListBaseOptions } from '@syncfusion/ej2-lists';import { getZindexPartial, calculatePosition, OffsetPosition, isCollide, fit, Popup } from '@syncfusion/ej2-popups';import { SanitizeHtmlHelper } from '@syncfusion/ej2-base';import { getScrollableParent } from '@syncfusion/ej2-popups';import { HScroll } from '../common/h-scroll';import { VScroll } from '../common/v-scroll';import { addScrolling, destroyScroll } from '../common/menu-scroll';
2
+ import {MenuEffect,MenuEventArgs,BeforeOpenCloseMenuEventArgs,OpenCloseMenuEventArgs} from "./menu-base";
3
+ import {ComponentModel} from '@syncfusion/ej2-base';
4
+
5
+ /**
6
+ * Interface for a class FieldSettings
7
+ */
8
+ export interface FieldSettingsModel {
9
+
10
+ /**
11
+ * Specifies the itemId field for Menu item.
12
+ *
13
+ * @default 'id'
14
+ */
15
+ itemId?: string | string[];
16
+
17
+ /**
18
+ * Specifies the parentId field for Menu item.
19
+ *
20
+ * @default 'parentId'
21
+ */
22
+ parentId?: string | string[];
23
+
24
+ /**
25
+ * Specifies the text field for Menu item.
26
+ *
27
+ * @default 'text'
28
+ */
29
+ text?: string | string[];
30
+
31
+ /**
32
+ * Specifies the css icon field for Menu item.
33
+ *
34
+ * @default 'iconCss'
35
+ */
36
+ iconCss?: string | string[];
37
+
38
+ /**
39
+ * Specifies the Url field for Menu item.
40
+ *
41
+ * @default 'url'
42
+ */
43
+ url?: string | string[];
44
+
45
+ /**
46
+ * Specifies the separator field for Menu item.
47
+ *
48
+ * @default 'separator'
49
+ */
50
+ separator?: string | string[];
51
+
52
+ /**
53
+ * Specifies the children field for Menu item.
54
+ *
55
+ * @default 'items'
56
+ */
57
+ children?: string | string[];
58
+
59
+ }
60
+
61
+ /**
62
+ * Interface for a class MenuItem
63
+ */
64
+ export interface MenuItemModel {
65
+
66
+ /**
67
+ * Defines class/multiple classes separated by a space for the menu Item that is used to include an icon.
68
+ * Menu Item can include font icon and sprite image.
69
+ *
70
+ * @default null
71
+ */
72
+ iconCss?: string;
73
+
74
+ /**
75
+ * Specifies the id for menu item.
76
+ *
77
+ * @default ''
78
+ */
79
+ id?: string;
80
+
81
+ /**
82
+ * Specifies separator between the menu items. Separator are either horizontal or vertical lines used to group menu items.
83
+ *
84
+ * @default false
85
+ */
86
+ separator?: boolean;
87
+
88
+ /**
89
+ * Specifies the sub menu items that is the array of MenuItem model.
90
+ *
91
+ * @default []
92
+ */
93
+ items?: MenuItemModel[];
94
+
95
+ /**
96
+ * Specifies text for menu item.
97
+ *
98
+ * @default ''
99
+ */
100
+ text?: string;
101
+
102
+ /**
103
+ * Specifies url for menu item that creates the anchor link to navigate to the url provided.
104
+ *
105
+ * @default ''
106
+ */
107
+ url?: string;
108
+
109
+ /**
110
+ * Specifies the htmlAttributes property to support adding custom attributes to the menu items in the menu component.
111
+ *
112
+ * @default null
113
+ */
114
+ htmlAttributes?: Record<string, string>;
115
+
116
+ }
117
+
118
+ /**
119
+ * Interface for a class MenuAnimationSettings
120
+ */
121
+ export interface MenuAnimationSettingsModel {
122
+
123
+ /**
124
+ * Specifies the effect that shown in the sub menu transform.
125
+ * The possible effects are:
126
+ * * None: Specifies the sub menu transform with no animation effect.
127
+ * * SlideDown: Specifies the sub menu transform with slide down effect.
128
+ * * ZoomIn: Specifies the sub menu transform with zoom in effect.
129
+ * * FadeIn: Specifies the sub menu transform with fade in effect.
130
+ *
131
+ * @default 'SlideDown'
132
+ * @aspType Syncfusion.EJ2.Navigations.MenuEffect
133
+ * @blazorType Syncfusion.EJ2.Navigations.MenuEffect
134
+ * @isEnumeration true
135
+ */
136
+ effect?: MenuEffect;
137
+
138
+ /**
139
+ * Specifies the time duration to transform object.
140
+ *
141
+ * @default 400
142
+ */
143
+ duration?: number;
144
+
145
+ /**
146
+ * Specifies the easing effect applied while transform.
147
+ *
148
+ * @default 'ease'
149
+ */
150
+ easing?: string;
151
+
152
+ }
153
+
154
+ /**
155
+ * Interface for a class MenuBase
156
+ * @private
157
+ */
158
+ export interface MenuBaseModel extends ComponentModel{
159
+
160
+ /**
161
+ * Triggers while rendering each menu item.
162
+ *
163
+ * @event beforeItemRender
164
+ * @blazorProperty 'OnItemRender'
165
+ */
166
+ beforeItemRender?: EmitType<MenuEventArgs>;
167
+
168
+ /**
169
+ * Triggers before opening the menu item.
170
+ *
171
+ * @event beforeOpen
172
+ * @blazorProperty 'OnOpen'
173
+ */
174
+ beforeOpen?: EmitType<BeforeOpenCloseMenuEventArgs>;
175
+
176
+ /**
177
+ * Triggers while opening the menu item.
178
+ *
179
+ * @event onOpen
180
+ * @blazorProperty 'Opened'
181
+ */
182
+ onOpen?: EmitType<OpenCloseMenuEventArgs>;
183
+
184
+ /**
185
+ * Triggers before closing the menu.
186
+ *
187
+ * @event beforeClose
188
+ * @blazorProperty 'OnClose'
189
+ */
190
+ beforeClose?: EmitType<BeforeOpenCloseMenuEventArgs>;
191
+
192
+ /**
193
+ * Triggers while closing the menu.
194
+ *
195
+ * @event onClose
196
+ * @blazorProperty 'Closed'
197
+ */
198
+ onClose?: EmitType<OpenCloseMenuEventArgs>;
199
+
200
+ /**
201
+ * Triggers while selecting menu item.
202
+ *
203
+ * @event select
204
+ * @blazorProperty 'ItemSelected'
205
+ */
206
+ select?: EmitType<MenuEventArgs>;
207
+
208
+ /**
209
+ * Triggers once the component rendering is completed.
210
+ *
211
+ * @event created
212
+ * @blazorProperty 'Created'
213
+ */
214
+ created?: EmitType<Event>;
215
+
216
+ /**
217
+ * Defines class/multiple classes separated by a space in the Menu wrapper.
218
+ *
219
+ * @default ''
220
+ */
221
+ cssClass?: string;
222
+
223
+ /**
224
+ * If hoverDelay is set by particular number, the menu will open after that period.
225
+ *
226
+ * @default 0
227
+ */
228
+ hoverDelay?: number;
229
+
230
+ /**
231
+ * Specifies whether to show the sub menu or not on click.
232
+ * When set to true, the sub menu will open only on mouse click.
233
+ *
234
+ * @default false
235
+ */
236
+ showItemOnClick?: boolean;
237
+
238
+ /**
239
+ * Specifies target element selector in which the ContextMenu should be opened.
240
+ * Specifies target element to open/close Menu while click in Hamburger mode.
241
+ *
242
+ * @default ''
243
+ * @private
244
+ */
245
+ target?: string;
246
+
247
+ /**
248
+ * Specifies the filter selector for elements inside the target in that the context menu will be opened.
249
+ * Not applicable to Menu component.
250
+ *
251
+ * @default ''
252
+ * @private
253
+ */
254
+ filter?: string;
255
+
256
+ /**
257
+ * Specifies the template for Menu item.
258
+ * Not applicable to ContextMenu component.
259
+ *
260
+ * @default null
261
+ * @aspType string
262
+ * @private
263
+ */
264
+ template?: string | Function;
265
+
266
+ /**
267
+ * Specifies whether to enable / disable the scrollable option in Menu.
268
+ * Not applicable to ContextMenu component.
269
+ *
270
+ * @default false
271
+ * @private
272
+ */
273
+ enableScrolling?: boolean;
274
+
275
+ /**
276
+ * Specifies whether to enable the rendering of untrusted HTML values in the Context Menu component.
277
+ * If 'enableHtmlSanitizer' set to true, the component will sanitize any suspected untrusted strings and scripts before rendering them.
278
+ *
279
+ * @default true
280
+ */
281
+ enableHtmlSanitizer?: boolean;
282
+
283
+ /**
284
+ * Specifies mapping fields from the dataSource.
285
+ * Not applicable to ContextMenu component.
286
+ *
287
+ * @default { itemId: "id", text: "text", parentId: "parentId", iconCss: "iconCss", url: "url", separator: "separator",
288
+ * children: "items" }
289
+ * @private
290
+ */
291
+ // eslint:disable-next-line
292
+ fields?: FieldSettingsModel;
293
+
294
+ /**
295
+ * Specifies menu items with its properties which will be rendered as Menu.
296
+ *
297
+ * @default []
298
+ */
299
+ items?: MenuItemModel[] | { [key: string]: Object }[];
300
+
301
+ /**
302
+ * Specifies the animation settings for the sub menu open.
303
+ *
304
+ * @default { duration: 400, easing: 'ease', effect: 'SlideDown' }
305
+ */
306
+ animationSettings?: MenuAnimationSettingsModel;
307
+
308
+ }