@syncfusion/ej2-navigations 19.3.54 → 19.4.40

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 (256) hide show
  1. package/.github/PULL_REQUEST_TEMPLATE/Bug.md +63 -0
  2. package/.github/PULL_REQUEST_TEMPLATE/feature.md +39 -0
  3. package/CHANGELOG.md +58 -0
  4. package/dist/ej2-navigations.umd.min.js +2 -2
  5. package/dist/ej2-navigations.umd.min.js.map +1 -1
  6. package/dist/es6/ej2-navigations.es2015.js +525 -147
  7. package/dist/es6/ej2-navigations.es2015.js.map +1 -1
  8. package/dist/es6/ej2-navigations.es5.js +532 -148
  9. package/dist/es6/ej2-navigations.es5.js.map +1 -1
  10. package/dist/global/ej2-navigations.min.js +2 -2
  11. package/dist/global/ej2-navigations.min.js.map +1 -1
  12. package/dist/global/index.d.ts +1 -1
  13. package/package.json +11 -12
  14. package/src/accordion/accordion-model.d.ts +5 -5
  15. package/src/accordion/accordion.d.ts +5 -5
  16. package/src/accordion/accordion.js +2 -19
  17. package/src/breadcrumb/breadcrumb-model.d.ts +23 -11
  18. package/src/breadcrumb/breadcrumb.d.ts +33 -10
  19. package/src/breadcrumb/breadcrumb.js +320 -78
  20. package/src/common/menu-base.js +2 -2
  21. package/src/common/v-scroll.js +1 -1
  22. package/src/sidebar/sidebar.js +4 -4
  23. package/src/tab/tab-model.d.ts +14 -6
  24. package/src/tab/tab.d.ts +26 -15
  25. package/src/tab/tab.js +56 -27
  26. package/src/toolbar/toolbar-model.d.ts +7 -7
  27. package/src/toolbar/toolbar.d.ts +6 -6
  28. package/src/toolbar/toolbar.js +81 -13
  29. package/src/treeview/treeview-model.d.ts +10 -0
  30. package/src/treeview/treeview.d.ts +13 -0
  31. package/src/treeview/treeview.js +68 -5
  32. package/styles/accordion/_bootstrap-dark-definition.scss +4 -0
  33. package/styles/accordion/_bootstrap-definition.scss +4 -0
  34. package/styles/accordion/_bootstrap4-definition.scss +4 -0
  35. package/styles/accordion/_bootstrap5-definition.scss +39 -35
  36. package/styles/accordion/_fabric-dark-definition.scss +4 -0
  37. package/styles/accordion/_fabric-definition.scss +4 -0
  38. package/styles/accordion/_fluent-definition.scss +85 -0
  39. package/styles/accordion/_highcontrast-definition.scss +5 -1
  40. package/styles/accordion/_highcontrast-light-definition.scss +4 -0
  41. package/styles/accordion/_layout.scss +6 -14
  42. package/styles/accordion/_material-dark-definition.scss +4 -0
  43. package/styles/accordion/_material-definition.scss +4 -0
  44. package/styles/accordion/_tailwind-definition.scss +83 -79
  45. package/styles/accordion/_theme.scss +12 -11
  46. package/styles/accordion/bootstrap4.css +1 -2
  47. package/styles/accordion/bootstrap5-dark.css +11 -2
  48. package/styles/accordion/bootstrap5.css +11 -2
  49. package/styles/accordion/highcontrast-light.css +0 -4
  50. package/styles/accordion/highcontrast.css +1 -5
  51. package/styles/accordion/icons/_fluent.scss +17 -0
  52. package/styles/accordion/icons/_tailwind.scss +17 -17
  53. package/styles/bootstrap-dark.css +317 -84
  54. package/styles/bootstrap.css +316 -83
  55. package/styles/bootstrap4.css +317 -76
  56. package/styles/bootstrap5-dark.css +339 -75
  57. package/styles/bootstrap5.css +341 -77
  58. package/styles/breadcrumb/_bootstrap-dark-definition.scss +14 -0
  59. package/styles/breadcrumb/_bootstrap-definition.scss +13 -0
  60. package/styles/breadcrumb/_bootstrap4-definition.scss +13 -0
  61. package/styles/breadcrumb/_bootstrap5-definition.scss +15 -2
  62. package/styles/breadcrumb/_fabric-dark-definition.scss +13 -0
  63. package/styles/breadcrumb/_fabric-definition.scss +13 -0
  64. package/styles/breadcrumb/_fluent-definition.scss +59 -0
  65. package/styles/breadcrumb/_highcontrast-definition.scss +13 -0
  66. package/styles/breadcrumb/_highcontrast-light-definition.scss +13 -0
  67. package/styles/breadcrumb/_layout.scss +171 -22
  68. package/styles/breadcrumb/_material-dark-definition.scss +13 -0
  69. package/styles/breadcrumb/_material-definition.scss +13 -0
  70. package/styles/breadcrumb/_tailwind-dark-definition.scss +13 -0
  71. package/styles/breadcrumb/_tailwind-definition.scss +13 -0
  72. package/styles/breadcrumb/_theme.scss +27 -8
  73. package/styles/breadcrumb/bootstrap-dark.css +194 -17
  74. package/styles/breadcrumb/bootstrap.css +194 -17
  75. package/styles/breadcrumb/bootstrap4.css +194 -17
  76. package/styles/breadcrumb/bootstrap5-dark.css +198 -24
  77. package/styles/breadcrumb/bootstrap5.css +198 -24
  78. package/styles/breadcrumb/fabric-dark.css +197 -20
  79. package/styles/breadcrumb/fabric.css +197 -20
  80. package/styles/breadcrumb/highcontrast-light.css +200 -22
  81. package/styles/breadcrumb/highcontrast.css +200 -22
  82. package/styles/breadcrumb/icons/_bootstrap-dark.scss +2 -1
  83. package/styles/breadcrumb/icons/_bootstrap.scss +2 -1
  84. package/styles/breadcrumb/icons/_bootstrap4.scss +2 -1
  85. package/styles/breadcrumb/icons/_bootstrap5.scss +2 -1
  86. package/styles/breadcrumb/icons/_fabric-dark.scss +2 -1
  87. package/styles/breadcrumb/icons/_fabric.scss +2 -1
  88. package/styles/breadcrumb/icons/_fluent.scss +25 -0
  89. package/styles/breadcrumb/icons/_highcontrast-light.scss +2 -1
  90. package/styles/breadcrumb/icons/_highcontrast.scss +2 -1
  91. package/styles/breadcrumb/icons/_material-dark.scss +2 -1
  92. package/styles/breadcrumb/icons/_material.scss +2 -1
  93. package/styles/breadcrumb/icons/_tailwind-dark.scss +2 -1
  94. package/styles/breadcrumb/icons/_tailwind.scss +2 -1
  95. package/styles/breadcrumb/material-dark.css +186 -13
  96. package/styles/breadcrumb/material.css +186 -13
  97. package/styles/breadcrumb/tailwind-dark.css +195 -22
  98. package/styles/breadcrumb/tailwind.css +195 -22
  99. package/styles/context-menu/_bootstrap-dark-definition.scss +1 -1
  100. package/styles/context-menu/_bootstrap-definition.scss +1 -1
  101. package/styles/context-menu/_bootstrap4-definition.scss +1 -1
  102. package/styles/context-menu/_bootstrap5-definition.scss +5 -5
  103. package/styles/context-menu/_fluent-definition.scss +52 -0
  104. package/styles/context-menu/_material-dark-definition.scss +1 -1
  105. package/styles/context-menu/_material-definition.scss +1 -1
  106. package/styles/context-menu/_tailwind-definition.scss +1 -1
  107. package/styles/context-menu/bootstrap-dark.css +1 -1
  108. package/styles/context-menu/bootstrap.css +1 -1
  109. package/styles/context-menu/bootstrap4.css +1 -1
  110. package/styles/context-menu/bootstrap5-dark.css +5 -5
  111. package/styles/context-menu/bootstrap5.css +6 -6
  112. package/styles/context-menu/icons/_fluent.scss +32 -0
  113. package/styles/context-menu/material-dark.css +1 -1
  114. package/styles/context-menu/material.css +1 -1
  115. package/styles/context-menu/tailwind-dark.css +1 -1
  116. package/styles/context-menu/tailwind.css +1 -1
  117. package/styles/fabric-dark.css +305 -41
  118. package/styles/fabric.css +308 -44
  119. package/styles/h-scroll/_fluent-definition.scss +78 -0
  120. package/styles/h-scroll/_tailwind-definition.scss +78 -78
  121. package/styles/h-scroll/_theme.scss +1 -1
  122. package/styles/h-scroll/bootstrap-dark.css +1 -1
  123. package/styles/h-scroll/bootstrap.css +1 -1
  124. package/styles/h-scroll/bootstrap4.css +1 -1
  125. package/styles/h-scroll/bootstrap5-dark.css +1 -1
  126. package/styles/h-scroll/bootstrap5.css +1 -1
  127. package/styles/h-scroll/fabric-dark.css +1 -1
  128. package/styles/h-scroll/fabric.css +1 -1
  129. package/styles/h-scroll/highcontrast-light.css +1 -1
  130. package/styles/h-scroll/highcontrast.css +1 -1
  131. package/styles/h-scroll/icons/_fluent.scss +49 -0
  132. package/styles/h-scroll/icons/_tailwind.scss +49 -49
  133. package/styles/h-scroll/material-dark.css +1 -1
  134. package/styles/h-scroll/material.css +1 -1
  135. package/styles/h-scroll/tailwind-dark.css +1 -1
  136. package/styles/h-scroll/tailwind.css +1 -1
  137. package/styles/highcontrast-light.css +317 -47
  138. package/styles/highcontrast.css +322 -52
  139. package/styles/material-dark.css +295 -32
  140. package/styles/material.css +296 -33
  141. package/styles/menu/_fluent-definition.scss +68 -0
  142. package/styles/menu/_layout.scss +1 -1
  143. package/styles/menu/_theme.scss +9 -0
  144. package/styles/menu/bootstrap-dark.css +1 -1
  145. package/styles/menu/bootstrap.css +1 -1
  146. package/styles/menu/bootstrap4.css +1 -1
  147. package/styles/menu/bootstrap5-dark.css +4 -4
  148. package/styles/menu/bootstrap5.css +5 -5
  149. package/styles/menu/icons/_fluent.scss +133 -0
  150. package/styles/menu/material-dark.css +1 -1
  151. package/styles/menu/material.css +1 -1
  152. package/styles/menu/tailwind-dark.css +1 -1
  153. package/styles/menu/tailwind.css +1 -1
  154. package/styles/sidebar/_bootstrap5-definition.scss +5 -5
  155. package/styles/sidebar/_fluent-definition.scss +5 -0
  156. package/styles/sidebar/_theme.scss +4 -2
  157. package/styles/sidebar/bootstrap5-dark.css +0 -1
  158. package/styles/sidebar/bootstrap5.css +0 -1
  159. package/styles/sidebar/tailwind-dark.css +0 -1
  160. package/styles/sidebar/tailwind.css +0 -1
  161. package/styles/tab/_bootstrap-dark-definition.scss +10 -1
  162. package/styles/tab/_bootstrap-definition.scss +10 -1
  163. package/styles/tab/_bootstrap4-definition.scss +9 -1
  164. package/styles/tab/_bootstrap5-definition.scss +401 -401
  165. package/styles/tab/_fabric-dark-definition.scss +10 -0
  166. package/styles/tab/_fabric-definition.scss +10 -0
  167. package/styles/tab/_fluent-definition.scss +409 -0
  168. package/styles/tab/_highcontrast-definition.scss +10 -0
  169. package/styles/tab/_highcontrast-light-definition.scss +10 -0
  170. package/styles/tab/_layout.scss +145 -0
  171. package/styles/tab/_material-dark-definition.scss +10 -0
  172. package/styles/tab/_material-definition.scss +10 -0
  173. package/styles/tab/_tailwind-definition.scss +431 -420
  174. package/styles/tab/_theme.scss +188 -113
  175. package/styles/tab/bootstrap-dark.css +43 -18
  176. package/styles/tab/bootstrap.css +42 -17
  177. package/styles/tab/bootstrap4.css +47 -28
  178. package/styles/tab/bootstrap5-dark.css +53 -30
  179. package/styles/tab/bootstrap5.css +53 -30
  180. package/styles/tab/fabric-dark.css +43 -20
  181. package/styles/tab/fabric.css +46 -23
  182. package/styles/tab/highcontrast-light.css +52 -19
  183. package/styles/tab/highcontrast.css +56 -23
  184. package/styles/tab/icons/_bootstrap-dark.scss +2 -2
  185. package/styles/tab/icons/_fabric-dark.scss +2 -2
  186. package/styles/tab/icons/_fluent.scss +140 -0
  187. package/styles/tab/icons/_tailwind.scss +140 -140
  188. package/styles/tab/material-dark.css +42 -15
  189. package/styles/tab/material.css +42 -15
  190. package/styles/tab/tailwind-dark.css +42 -17
  191. package/styles/tab/tailwind.css +42 -17
  192. package/styles/tailwind-dark.css +313 -50
  193. package/styles/tailwind.css +313 -50
  194. package/styles/toolbar/_bootstrap-dark-definition.scss +7 -1
  195. package/styles/toolbar/_bootstrap-definition.scss +7 -1
  196. package/styles/toolbar/_bootstrap4-definition.scss +8 -2
  197. package/styles/toolbar/_bootstrap5-definition.scss +104 -86
  198. package/styles/toolbar/_fabric-dark-definition.scss +7 -0
  199. package/styles/toolbar/_fabric-definition.scss +7 -0
  200. package/styles/toolbar/_fluent-definition.scss +149 -0
  201. package/styles/toolbar/_highcontrast-definition.scss +7 -0
  202. package/styles/toolbar/_highcontrast-light-definition.scss +7 -0
  203. package/styles/toolbar/_layout.scss +27 -72
  204. package/styles/toolbar/_material-dark-definition.scss +7 -1
  205. package/styles/toolbar/_material-definition.scss +7 -1
  206. package/styles/toolbar/_tailwind-definition.scss +149 -143
  207. package/styles/toolbar/_theme.scss +12 -15
  208. package/styles/toolbar/bootstrap-dark.css +17 -46
  209. package/styles/toolbar/bootstrap.css +17 -46
  210. package/styles/toolbar/bootstrap4.css +12 -26
  211. package/styles/toolbar/bootstrap5-dark.css +6 -7
  212. package/styles/toolbar/bootstrap5.css +6 -7
  213. package/styles/toolbar/fabric-dark.css +4 -0
  214. package/styles/toolbar/fabric.css +4 -0
  215. package/styles/toolbar/highcontrast-light.css +4 -1
  216. package/styles/toolbar/highcontrast.css +4 -1
  217. package/styles/toolbar/icons/_fluent.scss +16 -0
  218. package/styles/toolbar/icons/_tailwind.scss +16 -16
  219. package/styles/toolbar/material-dark.css +4 -1
  220. package/styles/toolbar/material.css +5 -2
  221. package/styles/toolbar/tailwind-dark.css +8 -6
  222. package/styles/toolbar/tailwind.css +8 -6
  223. package/styles/treeview/_bootstrap-dark-definition.scss +11 -0
  224. package/styles/treeview/_bootstrap-definition.scss +11 -0
  225. package/styles/treeview/_bootstrap4-definition.scss +11 -0
  226. package/styles/treeview/_bootstrap5-definition.scss +120 -109
  227. package/styles/treeview/_fabric-dark-definition.scss +11 -0
  228. package/styles/treeview/_fabric-definition.scss +11 -0
  229. package/styles/treeview/_fluent-definition.scss +120 -0
  230. package/styles/treeview/_highcontrast-definition.scss +11 -0
  231. package/styles/treeview/_highcontrast-light-definition.scss +11 -0
  232. package/styles/treeview/_layout.scss +116 -20
  233. package/styles/treeview/_material-dark-definition.scss +13 -0
  234. package/styles/treeview/_material-definition.scss +11 -0
  235. package/styles/treeview/_tailwind-definition.scss +12 -0
  236. package/styles/treeview/_theme.scss +5 -5
  237. package/styles/treeview/bootstrap-dark.css +60 -0
  238. package/styles/treeview/bootstrap.css +60 -0
  239. package/styles/treeview/bootstrap4.css +60 -0
  240. package/styles/treeview/bootstrap5-dark.css +61 -1
  241. package/styles/treeview/bootstrap5.css +61 -1
  242. package/styles/treeview/fabric-dark.css +60 -0
  243. package/styles/treeview/fabric.css +60 -0
  244. package/styles/treeview/highcontrast-light.css +60 -0
  245. package/styles/treeview/highcontrast.css +60 -0
  246. package/styles/treeview/icons/_bootstrap5.scss +43 -43
  247. package/styles/treeview/icons/_fluent.scss +43 -0
  248. package/styles/treeview/icons/_tailwind-dark.scss +43 -43
  249. package/styles/treeview/material-dark.css +60 -0
  250. package/styles/treeview/material.css +60 -0
  251. package/styles/treeview/tailwind-dark.css +65 -1
  252. package/styles/treeview/tailwind.css +65 -1
  253. package/styles/v-scroll/_fluent-definition.scss +49 -0
  254. package/styles/v-scroll/_tailwind-definition.scss +49 -49
  255. package/styles/v-scroll/icons/_fluent.scss +26 -0
  256. package/styles/v-scroll/icons/_tailwind.scss +26 -26
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 19.3.54
3
+ * version : 19.4.40
4
4
  * Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-navigations@*",
3
- "_id": "@syncfusion/ej2-navigations@19.3.53",
3
+ "_id": "@syncfusion/ej2-navigations@19.4.38",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-W+iY46QKyyO2BsX/Bbso1/57mqqNxh2AQOifeI9Xpy08QlAy9b3VzRwCXyUfnxjXxCch+OOaVFW67+Dz6cteYw==",
5
+ "_integrity": "sha512-V1MWh85d2OGxWxp8RoXCR/YWybolm9vsDEQi8xDwE51CHbHTbVtttMpk5HKp0rm/Th2cCGD0wE7D/PKTQlTC1Q==",
6
6
  "_location": "/@syncfusion/ej2-navigations",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -24,7 +24,6 @@
24
24
  "/@syncfusion/ej2-diagrams",
25
25
  "/@syncfusion/ej2-documenteditor",
26
26
  "/@syncfusion/ej2-dropdowns",
27
- "/@syncfusion/ej2-filemanager",
28
27
  "/@syncfusion/ej2-gantt",
29
28
  "/@syncfusion/ej2-grids",
30
29
  "/@syncfusion/ej2-inplace-editor",
@@ -37,8 +36,8 @@
37
36
  "/@syncfusion/ej2-spreadsheet",
38
37
  "/@syncfusion/ej2-vue-navigations"
39
38
  ],
40
- "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix/@syncfusion/ej2-navigations/-/ej2-navigations-19.3.53.tgz",
41
- "_shasum": "384c384d332aaeba0e4cc90439c4a65ac5f62c5c",
39
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-navigations/-/ej2-navigations-19.4.38.tgz",
40
+ "_shasum": "7fa223bf7f8cfb9b9bd16719c61286e3452a7dbe",
42
41
  "_spec": "@syncfusion/ej2-navigations@*",
43
42
  "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
44
43
  "author": {
@@ -49,12 +48,12 @@
49
48
  },
50
49
  "bundleDependencies": false,
51
50
  "dependencies": {
52
- "@syncfusion/ej2-base": "~19.3.54",
53
- "@syncfusion/ej2-buttons": "~19.3.53",
54
- "@syncfusion/ej2-data": "~19.3.53",
55
- "@syncfusion/ej2-inputs": "~19.3.53",
56
- "@syncfusion/ej2-lists": "~19.3.53",
57
- "@syncfusion/ej2-popups": "~19.3.53"
51
+ "@syncfusion/ej2-base": "~19.4.38",
52
+ "@syncfusion/ej2-buttons": "~19.4.38",
53
+ "@syncfusion/ej2-data": "~19.4.38",
54
+ "@syncfusion/ej2-inputs": "~19.4.38",
55
+ "@syncfusion/ej2-lists": "~19.4.38",
56
+ "@syncfusion/ej2-popups": "~19.4.38"
58
57
  },
59
58
  "deprecated": false,
60
59
  "description": "A package of Essential JS 2 navigation components such as Tree-view, Tab, Toolbar, Context-menu, and Accordion which is used to navigate from one page to another",
@@ -159,6 +158,6 @@
159
158
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
160
159
  },
161
160
  "typings": "index.d.ts",
162
- "version": "19.3.54",
161
+ "version": "19.4.40",
163
162
  "sideEffects": false
164
163
  }
@@ -241,35 +241,35 @@ export interface AccordionModel extends ComponentModel{
241
241
  /**
242
242
  * The event will be fired while clicking anywhere within the Accordion.
243
243
  *
244
- * @event
244
+ * @event clicked
245
245
  */
246
246
  clicked?: EmitType<AccordionClickArgs>;
247
247
 
248
248
  /**
249
249
  * The event will be fired before the item gets collapsed/expanded.
250
250
  *
251
- * @event
251
+ * @event expanding
252
252
  */
253
253
  expanding?: EmitType<ExpandEventArgs>;
254
254
 
255
255
  /**
256
256
  * The event will be fired after the item gets collapsed/expanded.
257
257
  *
258
- * @event
258
+ * @event expanded
259
259
  */
260
260
  expanded?: EmitType<ExpandedEventArgs>;
261
261
 
262
262
  /**
263
263
  * The event will be fired once the control rendering is completed.
264
264
  *
265
- * @event
265
+ * @event created
266
266
  */
267
267
  created?: EmitType<Event>;
268
268
 
269
269
  /**
270
270
  * The event will be fired when the control gets destroyed.
271
271
  *
272
- * @event
272
+ * @event destroyed
273
273
  */
274
274
  destroyed?: EmitType<Event>;
275
275
 
@@ -275,31 +275,31 @@ export declare class Accordion extends Component<HTMLElement> implements INotify
275
275
  /**
276
276
  * The event will be fired while clicking anywhere within the Accordion.
277
277
  *
278
- * @event
278
+ * @event clicked
279
279
  */
280
280
  clicked: EmitType<AccordionClickArgs>;
281
281
  /**
282
282
  * The event will be fired before the item gets collapsed/expanded.
283
283
  *
284
- * @event
284
+ * @event expanding
285
285
  */
286
286
  expanding: EmitType<ExpandEventArgs>;
287
287
  /**
288
288
  * The event will be fired after the item gets collapsed/expanded.
289
289
  *
290
- * @event
290
+ * @event expanded
291
291
  */
292
292
  expanded: EmitType<ExpandedEventArgs>;
293
293
  /**
294
294
  * The event will be fired once the control rendering is completed.
295
295
  *
296
- * @event
296
+ * @event created
297
297
  */
298
298
  created: EmitType<Event>;
299
299
  /**
300
300
  * The event will be fired when the control gets destroyed.
301
301
  *
302
- * @event
302
+ * @event destroyed
303
303
  */
304
304
  destroyed: EmitType<Event>;
305
305
  /**
@@ -17,6 +17,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
17
17
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
18
18
  return c > 3 && r && Object.defineProperty(target, key, r), r;
19
19
  };
20
+ /* eslint-disable @typescript-eslint/no-explicit-any */
20
21
  import { Component, EventHandler, Property, Event, KeyboardEvents, rippleEffect } from '@syncfusion/ej2-base';
21
22
  import { getUniqueID, compile as templateCompiler } from '@syncfusion/ej2-base';
22
23
  import { isVisible, closest, attributes, detach, select, addClass, append } from '@syncfusion/ej2-base';
@@ -299,11 +300,9 @@ var Accordion = /** @class */ (function (_super) {
299
300
  this.itemTemplateFn = this.templateParser(this.itemTemplate);
300
301
  }
301
302
  };
302
- /* eslint-disable */
303
303
  Accordion.prototype.getHeaderTemplate = function () {
304
304
  return this.headerTemplateFn;
305
305
  };
306
- /* eslint-disable */
307
306
  Accordion.prototype.getItemTemplate = function () {
308
307
  return this.itemTemplateFn;
309
308
  };
@@ -324,7 +323,6 @@ var Accordion = /** @class */ (function (_super) {
324
323
  innerEles = this.element.children;
325
324
  }
326
325
  var items = [];
327
- /* eslint-disable */
328
326
  [].slice.call(innerEles).forEach(function (el) {
329
327
  items.push({
330
328
  header: (el.childElementCount > 0 && el.children[0]) ? (el.children[0]) : '',
@@ -332,7 +330,6 @@ var Accordion = /** @class */ (function (_super) {
332
330
  });
333
331
  el.parentNode.removeChild(el);
334
332
  });
335
- /* eslint-enable */
336
333
  if (rootEle) {
337
334
  this.element.removeChild(rootEle);
338
335
  }
@@ -357,7 +354,6 @@ var Accordion = /** @class */ (function (_super) {
357
354
  this.expandItem(true, this.initExpand[i]);
358
355
  }
359
356
  }
360
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
361
357
  if (this.isReact) {
362
358
  this.renderReactTemplates();
363
359
  }
@@ -393,7 +389,6 @@ var Accordion = /** @class */ (function (_super) {
393
389
  });
394
390
  }
395
391
  }
396
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
397
392
  if (this.isReact) {
398
393
  this.renderReactTemplates();
399
394
  }
@@ -439,7 +434,6 @@ var Accordion = /** @class */ (function (_super) {
439
434
  else {
440
435
  this.afterContentRender(trgt, eventArgs, acrdnItem, acrdnHdr, acrdnCtn, acrdnCtnItem);
441
436
  }
442
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
443
437
  if (this.isReact) {
444
438
  this.renderReactTemplates();
445
439
  }
@@ -647,7 +641,6 @@ var Accordion = /** @class */ (function (_super) {
647
641
  };
648
642
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
649
643
  Accordion.prototype.fetchElement = function (ele, value, index, isHeader) {
650
- /* eslint-disable */
651
644
  var templateFn;
652
645
  var temString;
653
646
  try {
@@ -661,12 +654,10 @@ var Accordion = /** @class */ (function (_super) {
661
654
  catch (e) {
662
655
  if (typeof (value) === 'string') {
663
656
  ele.innerHTML = SanitizeHtmlHelper.sanitize(value);
664
- /* eslint-disable */
665
657
  }
666
658
  else if (!isNOU(this.trgtEle) && (value instanceof (HTMLElement))) {
667
659
  ele.appendChild(value);
668
660
  ele.firstElementChild.style.display = '';
669
- /* eslint-enable */
670
661
  }
671
662
  else {
672
663
  templateFn = templateCompiler(value);
@@ -674,7 +665,6 @@ var Accordion = /** @class */ (function (_super) {
674
665
  }
675
666
  var tempArray;
676
667
  if (!isNOU(templateFn)) {
677
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
678
668
  if (this.isReact) {
679
669
  this.renderReactTemplates();
680
670
  }
@@ -720,7 +710,6 @@ var Accordion = /** @class */ (function (_super) {
720
710
  attributes(itemcnt, { 'aria-hidden': 'true' });
721
711
  var ctn = this.createElement('div', { className: CLS_CTENT });
722
712
  if (this.dataSource.length > 0) {
723
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
724
713
  if (this.isReact) {
725
714
  this.renderReactTemplates();
726
715
  }
@@ -870,7 +859,7 @@ var Accordion = /** @class */ (function (_super) {
870
859
  this.trigger('expanding', eventArgs, function (expandArgs) {
871
860
  if (!expandArgs.cancel) {
872
861
  _this.expandedItemsPop(trgtItemEle);
873
- trgtItemEle.classList.add(CLS_EXPANDSTATE);
862
+ trgtItemEle.classList.remove(CLS_EXPANDSTATE);
874
863
  icon.classList.add(CLS_TOGANIMATE);
875
864
  if ((animation.name === 'None')) {
876
865
  _this.collapseProgress('begin', icon, trgt, trgtItemEle, expandArgs);
@@ -1000,7 +989,6 @@ var Accordion = /** @class */ (function (_super) {
1000
989
  }
1001
990
  });
1002
991
  }
1003
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
1004
992
  if (this.isReact) {
1005
993
  this.renderReactTemplates();
1006
994
  }
@@ -1022,7 +1010,6 @@ var Accordion = /** @class */ (function (_super) {
1022
1010
  * @returns {void}.
1023
1011
  */
1024
1012
  Accordion.prototype.removeItem = function (index) {
1025
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
1026
1013
  if (this.isReact) {
1027
1014
  this.clearTemplate(['headerTemplate', 'itemTemplate'], index);
1028
1015
  }
@@ -1170,14 +1157,12 @@ var Accordion = /** @class */ (function (_super) {
1170
1157
  this.collapse(ctn);
1171
1158
  }
1172
1159
  }
1173
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
1174
1160
  if (this.isReact) {
1175
1161
  this.renderReactTemplates();
1176
1162
  }
1177
1163
  };
1178
1164
  Accordion.prototype.destroyItems = function () {
1179
1165
  this.restoreContent(null);
1180
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
1181
1166
  if (this.isReact) {
1182
1167
  this.clearTemplate();
1183
1168
  }
@@ -1212,12 +1197,10 @@ var Accordion = /** @class */ (function (_super) {
1212
1197
  Accordion.prototype.setTemplate = function (template, toElement, index) {
1213
1198
  toElement.innerHTML = '';
1214
1199
  this.templateCompile(toElement, template, index);
1215
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
1216
1200
  if (this.isReact) {
1217
1201
  this.renderReactTemplates();
1218
1202
  }
1219
1203
  };
1220
- // eslint-disable-next-line
1221
1204
  Accordion.prototype.templateCompile = function (ele, cnt, index) {
1222
1205
  var tempEle = this.createElement('div');
1223
1206
  this.fetchElement(tempEle, cnt, index, false);
@@ -1,4 +1,4 @@
1
- import { Component, NotifyPropertyChanges, INotifyPropertyChanged, ChildProperty, Property, Collection, append, extend, Event, EmitType, BaseEventArgs, EventHandler, closest, addClass, removeClass } from '@syncfusion/ej2-base';import { ListBase, ListBaseOptions } from '@syncfusion/ej2-lists';
1
+ import { Component, NotifyPropertyChanges, INotifyPropertyChanged, ChildProperty, Property, Collection, append, extend, Event, EmitType, BaseEventArgs, EventHandler, closest, addClass, removeClass, detach, remove } from '@syncfusion/ej2-base';import { ListBase, ListBaseOptions } from '@syncfusion/ej2-lists';import { Popup } from '@syncfusion/ej2-popups';
2
2
  import {BreadcrumbOverflowMode,BreadcrumbBeforeItemRenderEventArgs,BreadcrumbClickEventArgs} from "./breadcrumb";
3
3
  import {ComponentModel} from '@syncfusion/ej2-base';
4
4
 
@@ -28,6 +28,13 @@ export interface BreadcrumbItemModel {
28
28
  */
29
29
  iconCss?: string;
30
30
 
31
+ /**
32
+ * Enable or disable the breadcrumb item, when set to true, the breadcrumb item will be disabled.
33
+ *
34
+ * @default false
35
+ */
36
+ disabled?: boolean;
37
+
31
38
  }
32
39
 
33
40
  /**
@@ -59,7 +66,8 @@ export interface BreadcrumbModel extends ComponentModel{
59
66
  /**
60
67
  * Specifies an integer to enable overflow behavior when the Breadcrumb items count exceeds and it is based on the overflowMode property.
61
68
  *
62
- * @default 0
69
+ * @default -1
70
+ * @aspType int
63
71
  */
64
72
  maxItems?: number;
65
73
 
@@ -67,8 +75,12 @@ export interface BreadcrumbModel extends ComponentModel{
67
75
  * Specifies the overflow mode of the Breadcrumb item when it exceeds maxItems count. The possible values are,
68
76
  * - Default: Specified maxItems count will be visible and the remaining items will be hidden. While clicking on the previous item, the hidden item will become visible.
69
77
  * - Collapsed: Only the first and last items will be visible, and the remaining items will be hidden in the collapsed icon. When the collapsed icon is clicked, all items become visible.
70
- *
71
- * @default 'Default'
78
+ * - Menu: Shows the number of breadcrumb items that can be accommodated within the container space, and creates a sub menu with the remaining items.
79
+ * - Wrap: Wraps the items on multiple lines when the Breadcrumb’s width exceeds the container space.
80
+ * - Scroll: Shows an HTML scroll bar when the Breadcrumb’s width exceeds the container space.
81
+ * - None: Shows all the items on a single line.
82
+ *
83
+ * @default 'Menu'
72
84
  */
73
85
  overflowMode?: BreadcrumbOverflowMode;
74
86
 
@@ -79,13 +91,6 @@ export interface BreadcrumbModel extends ComponentModel{
79
91
  */
80
92
  cssClass?: string;
81
93
 
82
- /**
83
- * Specifies the width for the Breadcrumb component container element. If the Breadcrumb items overflow, the browsers horizontal scroll will be activated based on the device.
84
- *
85
- * @default ''
86
- */
87
- width?: string;
88
-
89
94
  /**
90
95
  * Specifies the template for Breadcrumb item.
91
96
  *
@@ -114,6 +119,13 @@ export interface BreadcrumbModel extends ComponentModel{
114
119
  */
115
120
  enableActiveItemNavigation?: boolean;
116
121
 
122
+ /**
123
+ * Enable or disable the breadcrumb, when set to true, the breadcrumb will be disabled.
124
+ *
125
+ * @default false
126
+ */
127
+ disabled?: boolean;
128
+
117
129
  /**
118
130
  * Overrides the global culture and localization value for this component. Default global culture is 'en-US'.
119
131
  *
@@ -3,7 +3,7 @@ import { BreadcrumbModel, BreadcrumbItemModel } from './breadcrumb-model';
3
3
  /**
4
4
  * Defines the Breadcrumb overflow modes.
5
5
  */
6
- export declare type BreadcrumbOverflowMode = 'Default' | 'Collapsed';
6
+ export declare type BreadcrumbOverflowMode = 'Hidden' | 'Collapsed' | 'Menu' | 'Wrap' | 'Scroll' | 'None';
7
7
  export declare class BreadcrumbItem extends ChildProperty<BreadcrumbItem> {
8
8
  /**
9
9
  * Specifies the text content of the Breadcrumb item.
@@ -23,6 +23,12 @@ export declare class BreadcrumbItem extends ChildProperty<BreadcrumbItem> {
23
23
  * @default null
24
24
  */
25
25
  iconCss: string;
26
+ /**
27
+ * Enable or disable the breadcrumb item, when set to true, the breadcrumb item will be disabled.
28
+ *
29
+ * @default false
30
+ */
31
+ disabled: boolean;
26
32
  }
27
33
  /**
28
34
  * Interface for item click event.
@@ -53,6 +59,10 @@ export interface BreadcrumbBeforeItemRenderEventArgs extends BaseEventArgs {
53
59
  * Specifies the Breadcrumb item.
54
60
  */
55
61
  item: BreadcrumbItemModel;
62
+ /**
63
+ * Cancels the Breadcrumb item rendering.
64
+ */
65
+ cancel: boolean;
56
66
  }
57
67
  /**
58
68
  * Breadcrumb is a graphical user interface that helps to identify or highlight the current location within a hierarchical structure of websites.
@@ -72,6 +82,9 @@ export declare class Breadcrumb extends Component<HTMLElement> implements INotif
72
82
  private startIndex;
73
83
  private endIndex;
74
84
  private _maxItems;
85
+ private popupObj;
86
+ private popupUl;
87
+ private delegateClickHanlder;
75
88
  /**
76
89
  * Defines the Url based on which the Breadcrumb items are generated.
77
90
  *
@@ -93,15 +106,20 @@ export declare class Breadcrumb extends Component<HTMLElement> implements INotif
93
106
  /**
94
107
  * Specifies an integer to enable overflow behavior when the Breadcrumb items count exceeds and it is based on the overflowMode property.
95
108
  *
96
- * @default 0
109
+ * @default -1
110
+ * @aspType int
97
111
  */
98
112
  maxItems: number;
99
113
  /**
100
114
  * Specifies the overflow mode of the Breadcrumb item when it exceeds maxItems count. The possible values are,
101
115
  * - Default: Specified maxItems count will be visible and the remaining items will be hidden. While clicking on the previous item, the hidden item will become visible.
102
116
  * - Collapsed: Only the first and last items will be visible, and the remaining items will be hidden in the collapsed icon. When the collapsed icon is clicked, all items become visible.
117
+ * - Menu: Shows the number of breadcrumb items that can be accommodated within the container space, and creates a sub menu with the remaining items.
118
+ * - Wrap: Wraps the items on multiple lines when the Breadcrumb’s width exceeds the container space.
119
+ * - Scroll: Shows an HTML scroll bar when the Breadcrumb’s width exceeds the container space.
120
+ * - None: Shows all the items on a single line.
103
121
  *
104
- * @default 'Default'
122
+ * @default 'Menu'
105
123
  */
106
124
  overflowMode: BreadcrumbOverflowMode;
107
125
  /**
@@ -110,12 +128,6 @@ export declare class Breadcrumb extends Component<HTMLElement> implements INotif
110
128
  * @default ''
111
129
  */
112
130
  cssClass: string;
113
- /**
114
- * Specifies the width for the Breadcrumb component container element. If the Breadcrumb items overflow, the browsers horizontal scroll will be activated based on the device.
115
- *
116
- * @default ''
117
- */
118
- width: string;
119
131
  /**
120
132
  * Specifies the template for Breadcrumb item.
121
133
  *
@@ -140,6 +152,12 @@ export declare class Breadcrumb extends Component<HTMLElement> implements INotif
140
152
  * @default false
141
153
  */
142
154
  enableActiveItemNavigation: boolean;
155
+ /**
156
+ * Enable or disable the breadcrumb, when set to true, the breadcrumb will be disabled.
157
+ *
158
+ * @default false
159
+ */
160
+ disabled: boolean;
143
161
  /**
144
162
  * Overrides the global culture and localization value for this component. Default global culture is 'en-US'.
145
163
  *
@@ -188,17 +206,21 @@ export declare class Breadcrumb extends Component<HTMLElement> implements INotif
188
206
  protected render(): void;
189
207
  private initialize;
190
208
  private initPvtProps;
191
- private setWidth;
209
+ private getEndIndex;
192
210
  private initItems;
193
211
  private renderItems;
194
212
  private calculateMaxItems;
195
213
  private hasField;
214
+ private getMenuElement;
196
215
  private beforeItemRenderChanges;
197
216
  private reRenderItems;
198
217
  private clickHandler;
218
+ private renderPopup;
219
+ private documentClickHandler;
199
220
  private resize;
200
221
  private expandHandler;
201
222
  private keyDownHandler;
223
+ private popupKeyDownHandler;
202
224
  /**
203
225
  * Called internally if any of the property value changed.
204
226
  *
@@ -209,6 +231,7 @@ export declare class Breadcrumb extends Component<HTMLElement> implements INotif
209
231
  */
210
232
  onPropertyChanged(newProp: BreadcrumbModel, oldProp: BreadcrumbModel): void;
211
233
  private wireEvents;
234
+ private popupWireEvents;
212
235
  private unWireEvents;
213
236
  /**
214
237
  * Get the properties to be maintained in the persisted state.