@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,558 +0,0 @@
1
- import { Component, ChildProperty, INotifyPropertyChanged } from '@syncfusion/ej2-base';
2
- import { EmitType, BaseEventArgs } from '@syncfusion/ej2-base';
3
- import { MenuItemModel, MenuBaseModel, FieldSettingsModel, MenuAnimationSettingsModel } from './menu-base-model';
4
- /**
5
- * Defines the different types of options available for opening a submenu.
6
- * ```props
7
- * Auto - The submenu opens automatically when clicked or hovered over, depending on the 'showItemOnClick' property.
8
- * Click - The submenu opens when clicked the menu item.
9
- * Hover - The submenu opens when the user hovers over the menu item with the mouse cursor.
10
- * ```
11
- */
12
- export declare type MenuOpenType = 'Auto' | 'Click' | 'Hover';
13
- /**
14
- * Defines the different types of animation effects available for opening the sub menu.
15
- * ```props
16
- * None - The sub menu is opened / closed without any animation effect.
17
- * SlideDown - The submenu is opened / closed with a slide down effect.
18
- * ZoomIn - The submenu is opened / closed with a zoom in effect.
19
- * FadeIn - The sub menu is opened / closed with a fade in effect.
20
- * ```
21
- */
22
- export declare type MenuEffect = 'None' | 'SlideDown' | 'ZoomIn' | 'FadeIn';
23
- /**
24
- * Configures the field options of the Menu.
25
- */
26
- export declare class FieldSettings extends ChildProperty<FieldSettings> {
27
- /**
28
- * Specifies the itemId field for Menu item.
29
- *
30
- * @default 'id'
31
- */
32
- itemId: string | string[];
33
- /**
34
- * Specifies the parentId field for Menu item.
35
- *
36
- * @default 'parentId'
37
- */
38
- parentId: string | string[];
39
- /**
40
- * Specifies the text field for Menu item.
41
- *
42
- * @default 'text'
43
- */
44
- text: string | string[];
45
- /**
46
- * Specifies the css icon field for Menu item.
47
- *
48
- * @default 'iconCss'
49
- */
50
- iconCss: string | string[];
51
- /**
52
- * Specifies the Url field for Menu item.
53
- *
54
- * @default 'url'
55
- */
56
- url: string | string[];
57
- /**
58
- * Specifies the separator field for Menu item.
59
- *
60
- * @default 'separator'
61
- */
62
- separator: string | string[];
63
- /**
64
- * Specifies the children field for Menu item.
65
- *
66
- * @default 'items'
67
- */
68
- children: string | string[];
69
- }
70
- /**
71
- * Specifies menu items.
72
- */
73
- export declare class MenuItem extends ChildProperty<MenuItem> {
74
- /**
75
- * Defines class/multiple classes separated by a space for the menu Item that is used to include an icon.
76
- * Menu Item can include font icon and sprite image.
77
- *
78
- * @default null
79
- */
80
- iconCss: string;
81
- /**
82
- * Specifies the id for menu item.
83
- *
84
- * @default ''
85
- */
86
- id: string;
87
- /**
88
- * Specifies separator between the menu items. Separator are either horizontal or vertical lines used to group menu items.
89
- *
90
- * @default false
91
- */
92
- separator: boolean;
93
- /**
94
- * Specifies the sub menu items that is the array of MenuItem model.
95
- *
96
- * @default []
97
- */
98
- items: MenuItemModel[];
99
- /**
100
- * Specifies text for menu item.
101
- *
102
- * @default ''
103
- */
104
- text: string;
105
- /**
106
- * Specifies url for menu item that creates the anchor link to navigate to the url provided.
107
- *
108
- * @default ''
109
- */
110
- url: string;
111
- /**
112
- * Specifies the htmlAttributes property to support adding custom attributes to the menu items in the menu component.
113
- *
114
- * @default null
115
- */
116
- htmlAttributes: Record<string, string>;
117
- }
118
- /**
119
- * Animation configuration settings.
120
- */
121
- export declare class MenuAnimationSettings extends ChildProperty<MenuAnimationSettings> {
122
- /**
123
- * Specifies the effect that shown in the sub menu transform.
124
- * The possible effects are:
125
- * * None: Specifies the sub menu transform with no animation effect.
126
- * * SlideDown: Specifies the sub menu transform with slide down effect.
127
- * * ZoomIn: Specifies the sub menu transform with zoom in effect.
128
- * * FadeIn: Specifies the sub menu transform with fade in effect.
129
- *
130
- * @default 'SlideDown'
131
- * @aspType Syncfusion.EJ2.Navigations.MenuEffect
132
- * @blazorType Syncfusion.EJ2.Navigations.MenuEffect
133
- * @isEnumeration true
134
- */
135
- effect: MenuEffect;
136
- /**
137
- * Specifies the time duration to transform object.
138
- *
139
- * @default 400
140
- */
141
- duration: number;
142
- /**
143
- * Specifies the easing effect applied while transform.
144
- *
145
- * @default 'ease'
146
- */
147
- easing: string;
148
- }
149
- /**
150
- * Base class for Menu and ContextMenu components.
151
- *
152
- * @private
153
- */
154
- export declare abstract class MenuBase extends Component<HTMLUListElement> implements INotifyPropertyChanged {
155
- private clonedElement;
156
- private targetElement;
157
- private delegateClickHandler;
158
- private delegateMoverHandler;
159
- private delegateMouseDownHandler;
160
- private navIdx;
161
- private animation;
162
- private isTapHold;
163
- protected isMenu: boolean;
164
- protected hamburgerMode: boolean;
165
- protected title: string;
166
- private rippleFn;
167
- private uList;
168
- private lItem;
169
- private popupObj;
170
- private popupWrapper;
171
- private isNestedOrVertical;
172
- private top;
173
- private left;
174
- private keyType;
175
- private showSubMenu;
176
- private action;
177
- private cli;
178
- private cliIdx;
179
- private isClosed;
180
- private liTrgt;
181
- private isMenusClosed;
182
- private isContextMenuClosed;
183
- private isCMenu;
184
- private pageX;
185
- private pageY;
186
- private tempItem;
187
- private showSubMenuOn;
188
- private defaultOption;
189
- private timer;
190
- private currentTarget;
191
- private isCmenuHover;
192
- private isAnimationNone;
193
- private isKBDAction;
194
- private touchStartFn;
195
- private touchMoveFn;
196
- /**
197
- * Triggers while rendering each menu item.
198
- *
199
- * @event beforeItemRender
200
- * @blazorProperty 'OnItemRender'
201
- */
202
- beforeItemRender: EmitType<MenuEventArgs>;
203
- /**
204
- * Triggers before opening the menu item.
205
- *
206
- * @event beforeOpen
207
- * @blazorProperty 'OnOpen'
208
- */
209
- beforeOpen: EmitType<BeforeOpenCloseMenuEventArgs>;
210
- /**
211
- * Triggers while opening the menu item.
212
- *
213
- * @event onOpen
214
- * @blazorProperty 'Opened'
215
- */
216
- onOpen: EmitType<OpenCloseMenuEventArgs>;
217
- /**
218
- * Triggers before closing the menu.
219
- *
220
- * @event beforeClose
221
- * @blazorProperty 'OnClose'
222
- */
223
- beforeClose: EmitType<BeforeOpenCloseMenuEventArgs>;
224
- /**
225
- * Triggers while closing the menu.
226
- *
227
- * @event onClose
228
- * @blazorProperty 'Closed'
229
- */
230
- onClose: EmitType<OpenCloseMenuEventArgs>;
231
- /**
232
- * Triggers while selecting menu item.
233
- *
234
- * @event select
235
- * @blazorProperty 'ItemSelected'
236
- */
237
- select: EmitType<MenuEventArgs>;
238
- /**
239
- * Triggers once the component rendering is completed.
240
- *
241
- * @event created
242
- * @blazorProperty 'Created'
243
- */
244
- created: EmitType<Event>;
245
- /**
246
- * Defines class/multiple classes separated by a space in the Menu wrapper.
247
- *
248
- * @default ''
249
- */
250
- cssClass: string;
251
- /**
252
- * If hoverDelay is set by particular number, the menu will open after that period.
253
- *
254
- * @default 0
255
- */
256
- hoverDelay: number;
257
- /**
258
- * Specifies whether to show the sub menu or not on click.
259
- * When set to true, the sub menu will open only on mouse click.
260
- *
261
- * @default false
262
- */
263
- showItemOnClick: boolean;
264
- /**
265
- * Specifies target element selector in which the ContextMenu should be opened.
266
- * Specifies target element to open/close Menu while click in Hamburger mode.
267
- *
268
- * @default ''
269
- * @private
270
- */
271
- target: string;
272
- /**
273
- * Specifies the filter selector for elements inside the target in that the context menu will be opened.
274
- * Not applicable to Menu component.
275
- *
276
- * @default ''
277
- * @private
278
- */
279
- filter: string;
280
- /**
281
- * Specifies the template for Menu item.
282
- * Not applicable to ContextMenu component.
283
- *
284
- * @default null
285
- * @aspType string
286
- * @private
287
- */
288
- template: string | Function;
289
- /**
290
- * Specifies whether to enable / disable the scrollable option in Menu.
291
- * Not applicable to ContextMenu component.
292
- *
293
- * @default false
294
- * @private
295
- */
296
- enableScrolling: boolean;
297
- /**
298
- * Specifies whether to enable the rendering of untrusted HTML values in the Context Menu component.
299
- * If 'enableHtmlSanitizer' set to true, the component will sanitize any suspected untrusted strings and scripts before rendering them.
300
- *
301
- * @default true
302
- */
303
- enableHtmlSanitizer: boolean;
304
- /**
305
- * Specifies mapping fields from the dataSource.
306
- * Not applicable to ContextMenu component.
307
- *
308
- * @default { itemId: "id", text: "text", parentId: "parentId", iconCss: "iconCss", url: "url", separator: "separator",
309
- * children: "items" }
310
- * @private
311
- */
312
- fields: FieldSettingsModel;
313
- /**
314
- * Specifies menu items with its properties which will be rendered as Menu.
315
- *
316
- * @default []
317
- */
318
- items: MenuItemModel[] | {
319
- [key: string]: Object;
320
- }[];
321
- /**
322
- * Specifies the animation settings for the sub menu open.
323
- *
324
- * @default { duration: 400, easing: 'ease', effect: 'SlideDown' }
325
- */
326
- animationSettings: MenuAnimationSettingsModel;
327
- /**
328
- * Constructor for creating the widget.
329
- *
330
- * @private
331
- * @param {MenuBaseModel} options - Specifies the menu base model
332
- * @param {string | HTMLUListElement} element - Specifies the element
333
- */
334
- constructor(options?: MenuBaseModel, element?: string | HTMLUListElement);
335
- /**
336
- * Initialized third party configuration settings.
337
- *
338
- * @private
339
- * @returns {void}
340
- */
341
- protected preRender(): void;
342
- /**
343
- * Initialize the control rendering.
344
- *
345
- * @private
346
- * @returns {void}
347
- */
348
- protected render(): void;
349
- private enableTouchScroll;
350
- private touchOutsideHandler;
351
- protected initialize(): void;
352
- private renderItems;
353
- protected wireEvents(): void;
354
- private wireKeyboardEvent;
355
- private mouseDownHandler;
356
- private keyHandler;
357
- private domKeyHandler;
358
- private keyBoardHandler;
359
- private upDownKeyHandler;
360
- private isValidLI;
361
- private getUlByNavIdx;
362
- private rightEnterKeyHandler;
363
- private leftEscKeyHandler;
364
- private scrollHandler;
365
- private touchHandler;
366
- private cmenuHandler;
367
- protected closeMenu(ulIndex?: number, e?: MouseEvent | KeyboardEvent, isIterated?: boolean): void;
368
- private updateReactTemplate;
369
- private getMenuItemModel;
370
- private getPopups;
371
- private isMenuVisible;
372
- private canOpen;
373
- protected openMenu(li: Element, item: MenuItemModel | {
374
- [key: string]: Object;
375
- }, top?: number, left?: number, e?: MouseEvent | KeyboardEvent, target?: HTMLElement): void;
376
- private copyObject;
377
- private calculateIndentSize;
378
- private generatePopup;
379
- protected createHeaderContainer(wrapper?: Element): void;
380
- protected openHamburgerMenu(e?: MouseEvent | KeyboardEvent): void;
381
- protected closeHamburgerMenu(e?: MouseEvent | KeyboardEvent): void;
382
- private callFit;
383
- private triggerBeforeOpen;
384
- private collision;
385
- protected setBlankIconStyle(menu: HTMLElement): void;
386
- private checkScrollOffset;
387
- private setPosition;
388
- getMenuWidth(menuElement: Element, width: number, isRtl: boolean): number;
389
- private toggleVisiblity;
390
- private createItems;
391
- private moverHandler;
392
- private removeStateWrapper;
393
- private removeLIStateByClass;
394
- protected getField(propName: string, level?: number): string;
395
- private getFields;
396
- private hasField;
397
- private menuHeaderClickHandler;
398
- private clickHandler;
399
- private afterCloseMenu;
400
- private setLISelected;
401
- private getLIByClass;
402
- /**
403
- * This method is used to get the index of the menu item in the Menu based on the argument.
404
- *
405
- * @param {MenuItem | string} item - item be passed to get the index | id to be passed to get the item index.
406
- * @param {boolean} isUniqueId - Set `true` if it is a unique id.
407
- * @returns {void}
408
- */
409
- getItemIndex(item: MenuItem | string, isUniqueId?: boolean): number[];
410
- /**
411
- * This method is used to set the menu item in the Menu based on the argument.
412
- *
413
- * @param {MenuItem} item - item need to be updated.
414
- * @param {string} id - id / text to be passed to update the item.
415
- * @param {boolean} isUniqueId - Set `true` if it is a unique id.
416
- * @returns {void}
417
- */
418
- setItem(item: MenuItem, id?: string, isUniqueId?: boolean): void;
419
- private getItem;
420
- private getItems;
421
- private setItems;
422
- private getIdx;
423
- private getLI;
424
- private updateItemsByNavIdx;
425
- private removeChildElement;
426
- /**
427
- * Called internally if any of the property value changed.
428
- *
429
- * @private
430
- * @param {MenuBaseModel} newProp - Specifies the new properties
431
- * @param {MenuBaseModel} oldProp - Specifies the old properties
432
- * @returns {void}
433
- */
434
- onPropertyChanged(newProp: MenuBaseModel, oldProp: MenuBaseModel): void;
435
- private updateItem;
436
- private getChangedItemIndex;
437
- private removeItem;
438
- /**
439
- * Used to unwire the bind events.
440
- *
441
- * @private
442
- * @param {string} targetSelctor - Specifies the target selector
443
- * @returns {void}
444
- */
445
- protected unWireEvents(targetSelctor?: string): void;
446
- private unWireKeyboardEvent;
447
- private toggleAnimation;
448
- private triggerOpen;
449
- private end;
450
- /**
451
- * Get the properties to be maintained in the persisted state.
452
- *
453
- * @returns {string} - Persist data
454
- */
455
- protected getPersistData(): string;
456
- /**
457
- * Get wrapper element.
458
- *
459
- * @returns {Element} - Wrapper element
460
- * @private
461
- */
462
- private getWrapper;
463
- protected getIndex(data: string, isUniqueId?: boolean, items?: MenuItemModel[] | {
464
- [key: string]: Object;
465
- }[], nIndex?: number[], isCallBack?: boolean, level?: number): number[];
466
- /**
467
- * This method is used to enable or disable the menu items in the Menu based on the items and enable argument.
468
- *
469
- * @param {string[]} items - Text items that needs to be enabled/disabled.
470
- * @param {boolean} enable - Set `true`/`false` to enable/disable the list items.
471
- * @param {boolean} isUniqueId - Set `true` if it is a unique id.
472
- * @returns {void}
473
- */
474
- enableItems(items: string[], enable?: boolean, isUniqueId?: boolean): void;
475
- /**
476
- * This method is used to show the menu items in the Menu based on the items text.
477
- *
478
- * @param {string[]} items - Text items that needs to be shown.
479
- * @param {boolean} isUniqueId - Set `true` if it is a unique id.
480
- * @returns {void}
481
- */
482
- showItems(items: string[], isUniqueId?: boolean): void;
483
- /**
484
- * This method is used to hide the menu items in the Menu based on the items text.
485
- *
486
- * @param {string[]} items - Text items that needs to be hidden.
487
- * @param {boolean} isUniqueId - Set `true` if it is a unique id.
488
- * @returns {void}
489
- */
490
- hideItems(items: string[], isUniqueId?: boolean): void;
491
- private showHideItems;
492
- /**
493
- * It is used to remove the menu items from the Menu based on the items text.
494
- *
495
- * @param {string[]} items Text items that needs to be removed.
496
- * @param {boolean} isUniqueId - Set `true` if it is a unique id.
497
- * @returns {void}
498
- */
499
- removeItems(items: string[], isUniqueId?: boolean): void;
500
- /**
501
- * It is used to insert the menu items after the specified menu item text.
502
- *
503
- * @param {MenuItemModel[]} items - Items that needs to be inserted.
504
- * @param {string} text - Text item after that the element to be inserted.
505
- * @param {boolean} isUniqueId - Set `true` if it is a unique id.
506
- * @returns {void}
507
- */
508
- insertAfter(items: MenuItemModel[], text: string, isUniqueId?: boolean): void;
509
- /**
510
- * It is used to insert the menu items before the specified menu item text.
511
- *
512
- * @param {MenuItemModel[]} items - Items that needs to be inserted.
513
- * @param {string} text - Text item before that the element to be inserted.
514
- * @param {boolean} isUniqueId - Set `true` if it is a unique id.
515
- * @returns {void}
516
- */
517
- insertBefore(items: MenuItemModel[], text: string, isUniqueId?: boolean): void;
518
- private insertItems;
519
- private removeAttributes;
520
- /**
521
- * Destroys the widget.
522
- *
523
- * @returns {void}
524
- */
525
- destroy(): void;
526
- }
527
- /**
528
- * Interface for before item render/select event.
529
- */
530
- export interface MenuEventArgs extends BaseEventArgs {
531
- element: HTMLElement;
532
- item: MenuItemModel;
533
- event?: Event;
534
- }
535
- /**
536
- * Interface for before open/close event.
537
- */
538
- export interface BeforeOpenCloseMenuEventArgs extends BaseEventArgs {
539
- element: HTMLElement;
540
- items: MenuItemModel[];
541
- parentItem: MenuItemModel;
542
- event: Event;
543
- cancel: boolean;
544
- top?: number;
545
- left?: number;
546
- isFocused?: boolean;
547
- showSubMenuOn?: MenuOpenType;
548
- }
549
- /**
550
- * Interface for open/close event.
551
- */
552
- export interface OpenCloseMenuEventArgs extends BaseEventArgs {
553
- element: HTMLElement;
554
- items: MenuItemModel[] | {
555
- [key: string]: Object;
556
- }[];
557
- parentItem: MenuItemModel;
558
- }