@syncfusion/ej2-navigations 19.4.56 → 20.1.51

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 (371) hide show
  1. package/CHANGELOG.md +53 -2
  2. package/README.md +16 -1
  3. package/carousel.d.ts +4 -0
  4. package/carousel.js +4 -0
  5. package/dist/ej2-navigations.umd.min.js +2 -2
  6. package/dist/ej2-navigations.umd.min.js.map +1 -1
  7. package/dist/es6/ej2-navigations.es2015.js +1065 -30
  8. package/dist/es6/ej2-navigations.es2015.js.map +1 -1
  9. package/dist/es6/ej2-navigations.es5.js +1106 -33
  10. package/dist/es6/ej2-navigations.es5.js.map +1 -1
  11. package/dist/global/ej2-navigations.min.js +2 -2
  12. package/dist/global/ej2-navigations.min.js.map +1 -1
  13. package/dist/global/index.d.ts +1 -1
  14. package/package.json +11 -11
  15. package/src/accordion/accordion.js +11 -3
  16. package/src/breadcrumb/breadcrumb.js +6 -0
  17. package/src/carousel/carousel-model.d.ts +227 -0
  18. package/src/carousel/carousel.d.ts +338 -0
  19. package/src/carousel/carousel.js +988 -0
  20. package/src/carousel/index.d.ts +3 -0
  21. package/src/carousel/index.js +2 -0
  22. package/src/common/h-scroll.js +5 -3
  23. package/src/common/menu-base.js +11 -13
  24. package/src/index.d.ts +1 -0
  25. package/src/index.js +1 -0
  26. package/src/tab/tab-model.d.ts +1 -1
  27. package/src/tab/tab.js +72 -11
  28. package/src/toolbar/toolbar.js +11 -0
  29. package/src/treeview/treeview.js +5 -2
  30. package/styles/accordion/_bootstrap-dark-definition.scss +4 -4
  31. package/styles/accordion/_bootstrap-definition.scss +4 -4
  32. package/styles/accordion/_bootstrap4-definition.scss +4 -4
  33. package/styles/accordion/_bootstrap5-definition.scss +10 -10
  34. package/styles/accordion/_fabric-dark-definition.scss +9 -9
  35. package/styles/accordion/_fabric-definition.scss +9 -9
  36. package/styles/accordion/_fluent-dark-definition.scss +1 -0
  37. package/styles/accordion/_fluent-definition.scss +10 -10
  38. package/styles/accordion/_highcontrast-definition.scss +8 -8
  39. package/styles/accordion/_highcontrast-light-definition.scss +8 -8
  40. package/styles/accordion/_layout.scss +56 -86
  41. package/styles/accordion/_material-dark-definition.scss +8 -8
  42. package/styles/accordion/_material-definition.scss +8 -8
  43. package/styles/accordion/_tailwind-definition.scss +10 -10
  44. package/styles/accordion/_theme.scss +14 -1
  45. package/styles/accordion/bootstrap-dark.css +48 -63
  46. package/styles/accordion/bootstrap.css +48 -63
  47. package/styles/accordion/bootstrap4.css +48 -63
  48. package/styles/accordion/bootstrap5-dark.css +51 -66
  49. package/styles/accordion/bootstrap5.css +51 -66
  50. package/styles/accordion/fabric-dark.css +50 -65
  51. package/styles/accordion/fabric.css +50 -65
  52. package/styles/accordion/fluent-dark.css +395 -0
  53. package/styles/accordion/fluent-dark.scss +4 -0
  54. package/styles/accordion/fluent.css +395 -0
  55. package/styles/accordion/fluent.scss +4 -0
  56. package/styles/accordion/highcontrast-light.css +49 -64
  57. package/styles/accordion/highcontrast.css +49 -64
  58. package/styles/accordion/icons/_fluent-dark.scss +1 -0
  59. package/styles/accordion/icons/_fluent.scss +2 -1
  60. package/styles/accordion/icons/_tailwind.scss +2 -1
  61. package/styles/accordion/material-dark.css +49 -64
  62. package/styles/accordion/material.css +49 -64
  63. package/styles/accordion/tailwind-dark.css +52 -67
  64. package/styles/accordion/tailwind.css +52 -67
  65. package/styles/bootstrap-dark.css +309 -68
  66. package/styles/bootstrap-dark.scss +1 -0
  67. package/styles/bootstrap.css +309 -68
  68. package/styles/bootstrap.scss +1 -0
  69. package/styles/bootstrap4.css +309 -68
  70. package/styles/bootstrap4.scss +1 -0
  71. package/styles/bootstrap5-dark.css +414 -170
  72. package/styles/bootstrap5-dark.scss +1 -0
  73. package/styles/bootstrap5.css +414 -170
  74. package/styles/bootstrap5.scss +1 -0
  75. package/styles/breadcrumb/_bootstrap5-definition.scss +2 -2
  76. package/styles/breadcrumb/_fluent-dark-definition.scss +1 -0
  77. package/styles/breadcrumb/_fluent-definition.scss +4 -1
  78. package/styles/breadcrumb/_layout.scss +42 -5
  79. package/styles/breadcrumb/_tailwind-dark-definition.scss +1 -60
  80. package/styles/breadcrumb/_tailwind-definition.scss +2 -2
  81. package/styles/breadcrumb/_theme.scss +11 -5
  82. package/styles/breadcrumb/bootstrap-dark.css +9 -1
  83. package/styles/breadcrumb/bootstrap.css +9 -1
  84. package/styles/breadcrumb/bootstrap4.css +9 -1
  85. package/styles/breadcrumb/bootstrap5-dark.css +11 -3
  86. package/styles/breadcrumb/bootstrap5.css +11 -3
  87. package/styles/breadcrumb/fabric-dark.css +9 -3
  88. package/styles/breadcrumb/fabric.css +9 -3
  89. package/styles/breadcrumb/fluent-dark.css +444 -0
  90. package/styles/breadcrumb/fluent-dark.scss +4 -0
  91. package/styles/breadcrumb/fluent.css +444 -0
  92. package/styles/breadcrumb/fluent.scss +4 -0
  93. package/styles/breadcrumb/highcontrast-light.css +9 -3
  94. package/styles/breadcrumb/highcontrast.css +9 -3
  95. package/styles/breadcrumb/icons/_fluent-dark.scss +1 -0
  96. package/styles/breadcrumb/icons/_fluent.scss +4 -4
  97. package/styles/breadcrumb/icons/_tailwind-dark.scss +13 -2
  98. package/styles/breadcrumb/icons/_tailwind.scss +13 -2
  99. package/styles/breadcrumb/material-dark.css +9 -1
  100. package/styles/breadcrumb/material.css +9 -1
  101. package/styles/breadcrumb/tailwind-dark.css +27 -10
  102. package/styles/breadcrumb/tailwind.css +26 -9
  103. package/styles/carousel/_all.scss +2 -0
  104. package/styles/carousel/_bootstrap-dark-definition.scss +22 -0
  105. package/styles/carousel/_bootstrap-definition.scss +22 -0
  106. package/styles/carousel/_bootstrap4-definition.scss +22 -0
  107. package/styles/carousel/_bootstrap5-dark-definition.scss +1 -0
  108. package/styles/carousel/_bootstrap5-definition.scss +22 -0
  109. package/styles/carousel/_fabric-dark-definition.scss +22 -0
  110. package/styles/carousel/_fabric-definition.scss +22 -0
  111. package/styles/carousel/_fluent-dark-definition.scss +1 -0
  112. package/styles/carousel/_fluent-definition.scss +22 -0
  113. package/styles/carousel/_highcontrast-definition.scss +22 -0
  114. package/styles/carousel/_highcontrast-light-definition.scss +22 -0
  115. package/styles/carousel/_layout.scss +150 -0
  116. package/styles/carousel/_material-dark-definition.scss +22 -0
  117. package/styles/carousel/_material-definition.scss +22 -0
  118. package/styles/carousel/_tailwind-dark-definition.scss +1 -0
  119. package/styles/carousel/_tailwind-definition.scss +22 -0
  120. package/styles/carousel/_theme.scss +56 -0
  121. package/styles/carousel/bootstrap-dark.css +236 -0
  122. package/styles/carousel/bootstrap-dark.scss +5 -0
  123. package/styles/carousel/bootstrap.css +236 -0
  124. package/styles/carousel/bootstrap.scss +5 -0
  125. package/styles/carousel/bootstrap4.css +236 -0
  126. package/styles/carousel/bootstrap4.scss +5 -0
  127. package/styles/carousel/bootstrap5-dark.css +236 -0
  128. package/styles/carousel/bootstrap5-dark.scss +5 -0
  129. package/styles/carousel/bootstrap5.css +236 -0
  130. package/styles/carousel/bootstrap5.scss +5 -0
  131. package/styles/carousel/fabric-dark.css +236 -0
  132. package/styles/carousel/fabric-dark.scss +5 -0
  133. package/styles/carousel/fabric.css +236 -0
  134. package/styles/carousel/fabric.scss +5 -0
  135. package/styles/carousel/fluent-dark.css +236 -0
  136. package/styles/carousel/fluent-dark.scss +5 -0
  137. package/styles/carousel/fluent.css +236 -0
  138. package/styles/carousel/fluent.scss +5 -0
  139. package/styles/carousel/highcontrast-light.css +236 -0
  140. package/styles/carousel/highcontrast-light.scss +5 -0
  141. package/styles/carousel/highcontrast.css +236 -0
  142. package/styles/carousel/highcontrast.scss +5 -0
  143. package/styles/carousel/icons/_bootstrap-dark.scss +30 -0
  144. package/styles/carousel/icons/_bootstrap.scss +30 -0
  145. package/styles/carousel/icons/_bootstrap4.scss +30 -0
  146. package/styles/carousel/icons/_bootstrap5-dark.scss +1 -0
  147. package/styles/carousel/icons/_bootstrap5.scss +30 -0
  148. package/styles/carousel/icons/_fabric-dark.scss +30 -0
  149. package/styles/carousel/icons/_fabric.scss +30 -0
  150. package/styles/carousel/icons/_fluent-dark.scss +1 -0
  151. package/styles/carousel/icons/_fluent.scss +30 -0
  152. package/styles/carousel/icons/_highcontrast-light.scss +30 -0
  153. package/styles/carousel/icons/_highcontrast.scss +30 -0
  154. package/styles/carousel/icons/_material-dark.scss +30 -0
  155. package/styles/carousel/icons/_material.scss +30 -0
  156. package/styles/carousel/icons/_tailwind-dark.scss +1 -0
  157. package/styles/carousel/icons/_tailwind.scss +30 -0
  158. package/styles/carousel/material-dark.css +237 -0
  159. package/styles/carousel/material-dark.scss +5 -0
  160. package/styles/carousel/material.css +237 -0
  161. package/styles/carousel/material.scss +5 -0
  162. package/styles/carousel/tailwind-dark.css +237 -0
  163. package/styles/carousel/tailwind-dark.scss +5 -0
  164. package/styles/carousel/tailwind.css +237 -0
  165. package/styles/carousel/tailwind.scss +5 -0
  166. package/styles/context-menu/_bootstrap5-definition.scss +2 -2
  167. package/styles/context-menu/_fluent-dark-definition.scss +1 -0
  168. package/styles/context-menu/_fluent-definition.scss +10 -10
  169. package/styles/context-menu/_layout-mixin.scss +3 -0
  170. package/styles/context-menu/_layout.scss +11 -1
  171. package/styles/context-menu/_tailwind-definition.scss +2 -1
  172. package/styles/context-menu/bootstrap-dark.css +5 -0
  173. package/styles/context-menu/bootstrap.css +5 -0
  174. package/styles/context-menu/bootstrap4.css +5 -0
  175. package/styles/context-menu/bootstrap5-dark.css +16 -8
  176. package/styles/context-menu/bootstrap5.css +16 -8
  177. package/styles/context-menu/fabric-dark.css +5 -0
  178. package/styles/context-menu/fabric.css +5 -0
  179. package/styles/context-menu/fluent-dark.css +388 -0
  180. package/styles/context-menu/fluent-dark.scss +4 -0
  181. package/styles/context-menu/fluent.css +388 -0
  182. package/styles/context-menu/fluent.scss +4 -0
  183. package/styles/context-menu/highcontrast-light.css +5 -0
  184. package/styles/context-menu/highcontrast.css +5 -0
  185. package/styles/context-menu/icons/_fluent-dark.scss +1 -0
  186. package/styles/context-menu/icons/_fluent.scss +3 -3
  187. package/styles/context-menu/icons/_tailwind-dark.scss +3 -3
  188. package/styles/context-menu/icons/_tailwind.scss +3 -3
  189. package/styles/context-menu/material-dark.css +5 -0
  190. package/styles/context-menu/material.css +5 -0
  191. package/styles/context-menu/tailwind-dark.css +11 -4
  192. package/styles/context-menu/tailwind.css +11 -4
  193. package/styles/fabric-dark.css +311 -72
  194. package/styles/fabric-dark.scss +1 -0
  195. package/styles/fabric.css +311 -72
  196. package/styles/fabric.scss +1 -0
  197. package/styles/fluent-dark.css +10263 -0
  198. package/styles/fluent-dark.scss +11 -0
  199. package/styles/fluent.css +10263 -0
  200. package/styles/fluent.scss +11 -0
  201. package/styles/h-scroll/_bootstrap5-definition.scss +3 -3
  202. package/styles/h-scroll/_fluent-dark-definition.scss +1 -0
  203. package/styles/h-scroll/_layout.scss +0 -1
  204. package/styles/h-scroll/_material-dark-definition.scss +3 -3
  205. package/styles/h-scroll/bootstrap-dark.css +0 -1
  206. package/styles/h-scroll/bootstrap.css +0 -1
  207. package/styles/h-scroll/bootstrap4.css +0 -1
  208. package/styles/h-scroll/bootstrap5-dark.css +10 -11
  209. package/styles/h-scroll/bootstrap5.css +10 -11
  210. package/styles/h-scroll/fabric-dark.css +0 -1
  211. package/styles/h-scroll/fabric.css +0 -1
  212. package/styles/h-scroll/fluent-dark.css +326 -0
  213. package/styles/h-scroll/fluent-dark.scss +4 -0
  214. package/styles/h-scroll/fluent.css +326 -0
  215. package/styles/h-scroll/fluent.scss +4 -0
  216. package/styles/h-scroll/highcontrast-light.css +0 -1
  217. package/styles/h-scroll/highcontrast.css +0 -1
  218. package/styles/h-scroll/icons/_fluent-dark.scss +1 -0
  219. package/styles/h-scroll/icons/_fluent.scss +9 -9
  220. package/styles/h-scroll/icons/_tailwind.scss +8 -8
  221. package/styles/h-scroll/material-dark.css +3 -4
  222. package/styles/h-scroll/material.css +0 -1
  223. package/styles/h-scroll/tailwind-dark.css +8 -9
  224. package/styles/h-scroll/tailwind.css +8 -9
  225. package/styles/highcontrast-light.css +310 -71
  226. package/styles/highcontrast-light.scss +1 -0
  227. package/styles/highcontrast.css +311 -72
  228. package/styles/highcontrast.scss +1 -0
  229. package/styles/material-dark.css +313 -72
  230. package/styles/material-dark.scss +1 -0
  231. package/styles/material.css +310 -69
  232. package/styles/material.scss +1 -0
  233. package/styles/menu/_bootstrap5-definition.scss +4 -5
  234. package/styles/menu/_fluent-dark-definition.scss +1 -0
  235. package/styles/menu/_fluent-definition.scss +9 -9
  236. package/styles/menu/_layout.scss +8 -4
  237. package/styles/menu/_tailwind-definition.scss +1 -0
  238. package/styles/menu/_theme.scss +9 -0
  239. package/styles/menu/bootstrap-dark.css +1 -2
  240. package/styles/menu/bootstrap.css +1 -2
  241. package/styles/menu/bootstrap4.css +1 -2
  242. package/styles/menu/bootstrap5-dark.css +23 -24
  243. package/styles/menu/bootstrap5.css +23 -24
  244. package/styles/menu/fabric-dark.css +1 -2
  245. package/styles/menu/fabric.css +1 -2
  246. package/styles/menu/fluent-dark.css +1261 -0
  247. package/styles/menu/fluent-dark.scss +8 -0
  248. package/styles/menu/fluent.css +1261 -0
  249. package/styles/menu/fluent.scss +8 -0
  250. package/styles/menu/highcontrast-light.css +1 -2
  251. package/styles/menu/highcontrast.css +1 -2
  252. package/styles/menu/icons/_fluent-dark.scss +1 -0
  253. package/styles/menu/icons/_fluent.scss +14 -14
  254. package/styles/menu/icons/_tailwind-dark.scss +14 -14
  255. package/styles/menu/icons/_tailwind.scss +15 -15
  256. package/styles/menu/material-dark.css +1 -2
  257. package/styles/menu/material.css +1 -2
  258. package/styles/menu/tailwind-dark.css +18 -18
  259. package/styles/menu/tailwind.css +18 -18
  260. package/styles/sidebar/_fluent-dark-definition.scss +1 -0
  261. package/styles/sidebar/_theme.scss +5 -0
  262. package/styles/sidebar/bootstrap-dark.css +4 -0
  263. package/styles/sidebar/bootstrap.css +4 -0
  264. package/styles/sidebar/bootstrap4.css +4 -0
  265. package/styles/sidebar/bootstrap5-dark.css +4 -0
  266. package/styles/sidebar/bootstrap5.css +4 -0
  267. package/styles/sidebar/fabric-dark.css +4 -0
  268. package/styles/sidebar/fabric.css +4 -0
  269. package/styles/sidebar/fluent-dark.css +158 -0
  270. package/styles/sidebar/fluent-dark.scss +3 -0
  271. package/styles/sidebar/fluent.css +158 -0
  272. package/styles/sidebar/fluent.scss +3 -0
  273. package/styles/sidebar/highcontrast-light.css +4 -0
  274. package/styles/sidebar/highcontrast.css +4 -0
  275. package/styles/sidebar/material-dark.css +4 -0
  276. package/styles/sidebar/material.css +4 -0
  277. package/styles/sidebar/tailwind-dark.css +4 -0
  278. package/styles/sidebar/tailwind.css +4 -0
  279. package/styles/tab/_bootstrap5-definition.scss +7 -7
  280. package/styles/tab/_fluent-dark-definition.scss +1 -0
  281. package/styles/tab/_fluent-definition.scss +20 -20
  282. package/styles/tab/_highcontrast-definition.scss +1 -1
  283. package/styles/tab/_layout.scss +68 -12
  284. package/styles/tab/_tailwind-definition.scss +7 -7
  285. package/styles/tab/_theme.scss +12 -6
  286. package/styles/tab/bootstrap-dark.css +1 -1
  287. package/styles/tab/bootstrap.css +1 -1
  288. package/styles/tab/bootstrap4.css +1 -1
  289. package/styles/tab/bootstrap5-dark.css +23 -23
  290. package/styles/tab/bootstrap5.css +23 -23
  291. package/styles/tab/fabric-dark.css +1 -1
  292. package/styles/tab/fabric.css +1 -1
  293. package/styles/tab/fluent-dark.css +4394 -0
  294. package/styles/tab/fluent-dark.scss +5 -0
  295. package/styles/tab/fluent.css +4394 -0
  296. package/styles/tab/fluent.scss +5 -0
  297. package/styles/tab/highcontrast-light.css +1 -1
  298. package/styles/tab/highcontrast.css +2 -2
  299. package/styles/tab/icons/_fluent-dark.scss +1 -0
  300. package/styles/tab/icons/_fluent.scss +19 -18
  301. package/styles/tab/icons/_tailwind.scss +19 -18
  302. package/styles/tab/material-dark.css +1 -1
  303. package/styles/tab/material.css +1 -1
  304. package/styles/tab/tailwind-dark.css +43 -45
  305. package/styles/tab/tailwind.css +43 -45
  306. package/styles/tailwind-dark.css +428 -177
  307. package/styles/tailwind-dark.scss +1 -0
  308. package/styles/tailwind.css +427 -176
  309. package/styles/tailwind.scss +1 -0
  310. package/styles/toolbar/_bootstrap-dark-definition.scss +1 -0
  311. package/styles/toolbar/_bootstrap-definition.scss +1 -0
  312. package/styles/toolbar/_bootstrap4-definition.scss +1 -0
  313. package/styles/toolbar/_bootstrap5-definition.scss +12 -11
  314. package/styles/toolbar/_fabric-dark-definition.scss +1 -0
  315. package/styles/toolbar/_fabric-definition.scss +1 -0
  316. package/styles/toolbar/_fluent-dark-definition.scss +1 -0
  317. package/styles/toolbar/_fluent-definition.scss +14 -13
  318. package/styles/toolbar/_highcontrast-definition.scss +1 -0
  319. package/styles/toolbar/_highcontrast-light-definition.scss +1 -0
  320. package/styles/toolbar/_layout.scss +13 -5
  321. package/styles/toolbar/_material-dark-definition.scss +1 -0
  322. package/styles/toolbar/_material-definition.scss +1 -0
  323. package/styles/toolbar/_tailwind-definition.scss +4 -3
  324. package/styles/toolbar/_theme.scss +5 -1
  325. package/styles/toolbar/bootstrap-dark.css +4 -0
  326. package/styles/toolbar/bootstrap.css +4 -0
  327. package/styles/toolbar/bootstrap4.css +4 -0
  328. package/styles/toolbar/bootstrap5-dark.css +35 -31
  329. package/styles/toolbar/bootstrap5.css +35 -31
  330. package/styles/toolbar/fabric-dark.css +4 -0
  331. package/styles/toolbar/fabric.css +4 -0
  332. package/styles/toolbar/fluent-dark.css +1365 -0
  333. package/styles/toolbar/fluent-dark.scss +8 -0
  334. package/styles/toolbar/fluent.css +1365 -0
  335. package/styles/toolbar/fluent.scss +8 -0
  336. package/styles/toolbar/highcontrast-light.css +4 -0
  337. package/styles/toolbar/highcontrast.css +4 -0
  338. package/styles/toolbar/icons/_fluent-dark.scss +1 -0
  339. package/styles/toolbar/icons/_fluent.scss +3 -2
  340. package/styles/toolbar/icons/_tailwind.scss +3 -2
  341. package/styles/toolbar/material-dark.css +4 -0
  342. package/styles/toolbar/material.css +4 -0
  343. package/styles/toolbar/tailwind-dark.css +10 -6
  344. package/styles/toolbar/tailwind.css +10 -6
  345. package/styles/treeview/_bootstrap5-definition.scss +2 -2
  346. package/styles/treeview/_fluent-dark-definition.scss +1 -0
  347. package/styles/treeview/_fluent-definition.scss +2 -2
  348. package/styles/treeview/_layout.scss +8 -3
  349. package/styles/treeview/_tailwind-definition.scss +5 -5
  350. package/styles/treeview/bootstrap5-dark.css +4 -4
  351. package/styles/treeview/bootstrap5.css +4 -4
  352. package/styles/treeview/fluent-dark.css +1039 -0
  353. package/styles/treeview/fluent-dark.scss +6 -0
  354. package/styles/treeview/fluent.css +1039 -0
  355. package/styles/treeview/fluent.scss +6 -0
  356. package/styles/treeview/icons/_fluent-dark.scss +1 -0
  357. package/styles/treeview/icons/_fluent.scss +5 -5
  358. package/styles/treeview/icons/_tailwind-dark.scss +5 -5
  359. package/styles/treeview/icons/_tailwind.scss +5 -5
  360. package/styles/treeview/tailwind-dark.css +13 -14
  361. package/styles/treeview/tailwind.css +13 -14
  362. package/styles/v-scroll/_fluent-dark-definition.scss +1 -0
  363. package/styles/v-scroll/fluent-dark.css +247 -0
  364. package/styles/v-scroll/fluent-dark.scss +4 -0
  365. package/styles/v-scroll/fluent.css +247 -0
  366. package/styles/v-scroll/fluent.scss +4 -0
  367. package/styles/v-scroll/icons/_fluent-dark.scss +1 -0
  368. package/styles/v-scroll/icons/_fluent.scss +5 -4
  369. package/styles/v-scroll/icons/_tailwind.scss +5 -4
  370. package/styles/v-scroll/tailwind-dark.css +4 -4
  371. package/styles/v-scroll/tailwind.css +4 -4
@@ -214,11 +214,13 @@ var HScroll = /** @__PURE__ @class */ (function (_super) {
214
214
  HScroll.prototype.createNavIcon = function (element) {
215
215
  var id = element.id.concat('_nav');
216
216
  var clsRight = 'e-' + element.id.concat('_nav ' + CLS_HSCROLLNAV + ' ' + CLS_HSCROLLNAVRIGHT);
217
- var nav = this.createElement('div', { id: id.concat('_right'), className: clsRight });
217
+ var rightAttributes = { 'role': 'button', 'id': id.concat('_right'), 'aria-label': 'Scroll right' };
218
+ var nav = this.createElement('div', { className: clsRight, attrs: rightAttributes });
218
219
  nav.setAttribute('aria-disabled', 'false');
219
220
  var navItem = this.createElement('div', { className: CLS_NAVRIGHTARROW + ' ' + CLS_NAVARROW + ' e-icons' });
220
221
  var clsLeft = 'e-' + element.id.concat('_nav ' + CLS_HSCROLLNAV + ' ' + CLS_HSCROLLNAVLEFT);
221
- var navEle = this.createElement('div', { id: id.concat('_left'), className: clsLeft + ' ' + CLS_DISABLE });
222
+ var leftAttributes = { 'role': 'button', 'id': id.concat('_left'), 'aria-label': 'Scroll left' };
223
+ var navEle = this.createElement('div', { className: clsLeft + ' ' + CLS_DISABLE, attrs: leftAttributes });
222
224
  navEle.setAttribute('aria-disabled', 'true');
223
225
  var navLeftItem = this.createElement('div', { className: CLS_NAVLEFTARROW + ' ' + CLS_NAVARROW + ' e-icons' });
224
226
  navEle.appendChild(navLeftItem);
@@ -410,7 +412,7 @@ var HScroll = /** @__PURE__ @class */ (function (_super) {
410
412
  classList(arrowIcon, [CLS_NAVLEFTARROW], [CLS_NAVRIGHTARROW]);
411
413
  }
412
414
  }
413
- else {
415
+ else if (addDisable && removeDisable) {
414
416
  addDisable.classList.add(CLS_DISABLE);
415
417
  addDisable.setAttribute('aria-disabled', 'true');
416
418
  addDisable.removeAttribute('tabindex');
@@ -1587,14 +1589,14 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
1587
1589
  if (this.isMenuVisible()) {
1588
1590
  var sli = void 0;
1589
1591
  var item_1;
1590
- var wrapper = this.getWrapper();
1592
+ var wrapper_1 = this.getWrapper();
1591
1593
  var beforeCloseArgs = void 0;
1592
1594
  var items_1;
1593
1595
  var popups = this.getPopups();
1594
1596
  var isClose = false;
1595
- var cnt = this.isMenu ? popups.length + 1 : wrapper.childElementCount;
1597
+ var cnt = this.isMenu ? popups.length + 1 : wrapper_1.childElementCount;
1596
1598
  var ul_1 = this.isMenu && cnt !== 1 ? select('.e-ul', popups[cnt - 2])
1597
- : selectAll('.e-menu-parent', wrapper)[cnt - 1];
1599
+ : selectAll('.e-menu-parent', wrapper_1)[cnt - 1];
1598
1600
  if (this.isMenu && ul_1.classList.contains('e-menu')) {
1599
1601
  sli = this.getLIByClass(ul_1, SELECTED);
1600
1602
  if (sli) {
@@ -1683,6 +1685,9 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
1683
1685
  _this.navIdx.length !== 0 && closest(e.target, '.e-menu-parent.e-control')) {
1684
1686
  _this.closeMenu(0, e);
1685
1687
  }
1688
+ else if (isOpen && !_this.isMenu && selectAll('.e-menu-parent', wrapper_1)[ulIndex - 1] && e.which === 3) {
1689
+ _this.closeMenu(null, e);
1690
+ }
1686
1691
  else {
1687
1692
  if (isOpen && (_this.keyType === 'right' || _this.keyType === 'click')) {
1688
1693
  _this.afterCloseMenu(e);
@@ -2015,14 +2020,8 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
2015
2020
  _this.setBlankIconStyle(_this.popupWrapper);
2016
2021
  _this.wireKeyboardEvent(_this.popupWrapper);
2017
2022
  rippleEffect(_this.popupWrapper, { selector: '.' + ITEM });
2018
- if (_this.popupWrapper.style.position === 'fixed' && _this.top > 0) {
2019
- _this.popupWrapper.style.left = _this.left + 'px';
2020
- _this.popupWrapper.style.top = _this.top + scrollY + 'px';
2021
- }
2022
- else {
2023
- _this.popupWrapper.style.left = _this.left + 'px';
2024
- _this.popupWrapper.style.top = _this.top + 'px';
2025
- }
2023
+ _this.popupWrapper.style.left = _this.left + 'px';
2024
+ _this.popupWrapper.style.top = _this.top + 'px';
2026
2025
  var animationOptions = _this.animationSettings.effect !== 'None' ? {
2027
2026
  name: _this.animationSettings.effect, duration: _this.animationSettings.duration,
2028
2027
  timingFunction: _this.animationSettings.easing
@@ -2749,8 +2748,9 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
2749
2748
  MenuBase.prototype.removeItem = function (item, navIdx, idx) {
2750
2749
  item.splice(idx, 1);
2751
2750
  var uls = this.getWrapper().children;
2752
- if (navIdx.length < uls.length) {
2753
- detach(uls[navIdx.length].children[idx]);
2751
+ var uls_length = this.hamburgerMode ? 1 : uls.length;
2752
+ if (navIdx.length < uls_length) {
2753
+ detach(uls[this.hamburgerMode ? 1 : navIdx.length].children[idx]);
2754
2754
  }
2755
2755
  };
2756
2756
  /**
@@ -3472,6 +3472,7 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
3472
3472
  }
3473
3473
  this.popObj = null;
3474
3474
  this.tbarAlign = null;
3475
+ this.tbarItemsCol = [];
3475
3476
  this.remove(this.element, 'e-toolpop');
3476
3477
  if (this.cssClass) {
3477
3478
  removeClass([this.element], this.cssClass.split(' '));
@@ -4956,6 +4957,9 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
4956
4957
  innerItems[0].parentNode.insertBefore(innerEle, innerItems[index]);
4957
4958
  }
4958
4959
  this.items.splice(index, 0, item);
4960
+ if (item.template) {
4961
+ this.tbarEle.splice(this.tbarEle.length - 1, 1);
4962
+ }
4959
4963
  this.tbarEle.splice(index, 0, innerEle);
4960
4964
  index++;
4961
4965
  this.offsetWid = itemsDiv.offsetWidth;
@@ -5028,11 +5032,15 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
5028
5032
  if (typeof (templateProp) === 'string' || !isComponent) {
5029
5033
  var templateFn = void 0;
5030
5034
  var val = templateProp;
5035
+ var regEx = new RegExp(/<(?=.*? .*?\/ ?>|br|hr|input|!--|wbr)[a-z]+.*?>|<([a-z]+).*?<\/\1>/i);
5031
5036
  val = (typeof (templateProp) === 'string') ? templateProp.trim() : templateProp;
5032
5037
  try {
5033
5038
  if (typeof (templateProp) === 'object' && !isNullOrUndefined(templateProp.tagName)) {
5034
5039
  innerEle.appendChild(templateProp);
5035
5040
  }
5041
+ else if (typeof (templateProp) === 'string' && regEx.test(val)) {
5042
+ innerEle.innerHTML = val;
5043
+ }
5036
5044
  else if (document.querySelectorAll(val).length) {
5037
5045
  var ele = document.querySelector(val);
5038
5046
  var tempStr = ele.outerHTML.trim();
@@ -5042,6 +5050,9 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
5042
5050
  this.tempId.push(val);
5043
5051
  }
5044
5052
  }
5053
+ else {
5054
+ templateFn = compile(val);
5055
+ }
5045
5056
  }
5046
5057
  catch (e) {
5047
5058
  templateFn = compile(val);
@@ -5718,9 +5729,11 @@ var Accordion = /** @__PURE__ @class */ (function (_super) {
5718
5729
  if (!this.isDestroy) {
5719
5730
  this.isDestroy = false;
5720
5731
  }
5721
- if (!isNullOrUndefined(nested)) {
5722
- nested.classList.add(CLS_NEST);
5723
- this.isNested = true;
5732
+ if (nested && nested.firstElementChild && nested.firstElementChild.firstElementChild) {
5733
+ if (nested.firstElementChild.firstElementChild.classList.contains(CLS_ROOT$2)) {
5734
+ nested.classList.add(CLS_NEST);
5735
+ this.isNested = true;
5736
+ }
5724
5737
  }
5725
5738
  else {
5726
5739
  this.element.classList.add(CLS_ACRDN_ROOT);
@@ -5809,6 +5822,9 @@ var Accordion = /** @__PURE__ @class */ (function (_super) {
5809
5822
  if (document.querySelectorAll(template).length) {
5810
5823
  return compile(document.querySelector(template).innerHTML.trim());
5811
5824
  }
5825
+ else {
5826
+ return compile(template);
5827
+ }
5812
5828
  }
5813
5829
  catch (error) {
5814
5830
  return compile(template);
@@ -6176,6 +6192,9 @@ var Accordion = /** @__PURE__ @class */ (function (_super) {
6176
6192
  ele.appendChild(eleVal);
6177
6193
  eleVal.style.display = '';
6178
6194
  }
6195
+ else {
6196
+ templateFn = compile(value);
6197
+ }
6179
6198
  }
6180
6199
  catch (e) {
6181
6200
  if (typeof (value) === 'string') {
@@ -7528,11 +7547,12 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
7528
7547
  */
7529
7548
  Tab.prototype.destroy = function () {
7530
7549
  var _this = this;
7531
- if (this.isReact) {
7550
+ if (this.isReact || this.isAngular) {
7532
7551
  this.clearTemplate();
7533
7552
  }
7534
7553
  if (!isNullOrUndefined(this.tbObj)) {
7535
7554
  this.tbObj.destroy();
7555
+ this.tbObj = null;
7536
7556
  }
7537
7557
  this.unWireEvents();
7538
7558
  ['role', 'aria-disabled', 'aria-activedescendant', 'tabindex', 'aria-orientation'].forEach(function (val) {
@@ -7551,6 +7571,28 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
7551
7571
  cntEle.innerHTML = this.cnt;
7552
7572
  }
7553
7573
  }
7574
+ if (this.btnCls) {
7575
+ this.btnCls = null;
7576
+ }
7577
+ this.hdrEle = null;
7578
+ this.cntEle = null;
7579
+ this.tbItems = null;
7580
+ this.tbItem = null;
7581
+ this.tbPop = null;
7582
+ this.prevItem = null;
7583
+ this.popEle = null;
7584
+ this.bdrLine = null;
7585
+ this.content = null;
7586
+ this.dragItem = null;
7587
+ this.cloneElement = null;
7588
+ this.draggingItems = [];
7589
+ if (this.draggableItems && this.draggableItems.length > 0) {
7590
+ for (var i = 0; i < this.draggableItems.length; i++) {
7591
+ this.draggableItems[i].destroy();
7592
+ this.draggableItems[i] = null;
7593
+ }
7594
+ this.draggableItems = [];
7595
+ }
7554
7596
  _super.prototype.destroy.call(this);
7555
7597
  this.trigger('destroyed');
7556
7598
  };
@@ -7583,6 +7625,9 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
7583
7625
  this.isSwipeed = false;
7584
7626
  this.itemIndexArray = [];
7585
7627
  this.templateEle = [];
7628
+ if (this.allowDragAndDrop) {
7629
+ this.dragArea = !isNullOrUndefined(this.dragArea) ? this.dragArea : '#' + this.element.id + ' ' + ('.' + CLS_HEADER$1);
7630
+ }
7586
7631
  if (!isNullOrUndefined(nested)) {
7587
7632
  nested.parentElement.classList.add(CLS_NEST$1);
7588
7633
  this.isNested = true;
@@ -7800,7 +7845,15 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
7800
7845
  };
7801
7846
  Tab.prototype.parseObject = function (items, index) {
7802
7847
  var _this = this;
7803
- var tbCount = selectAll('.e-tab-header .' + CLS_TB_ITEM, this.element).length;
7848
+ var tbItems = selectAll('.e-tab-header .' + CLS_TB_ITEM, this.element);
7849
+ var maxId = this.lastIndex;
7850
+ if (!this.isReplace && tbItems.length > 0) {
7851
+ var idList_1 = [];
7852
+ tbItems.forEach(function (item) {
7853
+ idList_1.push(parseInt(item.id.slice(item.id.indexOf('_') + 1), 10));
7854
+ });
7855
+ maxId = Math.max.apply(Math, idList_1);
7856
+ }
7804
7857
  var tItems = [];
7805
7858
  var txtWrapEle;
7806
7859
  var spliceArray = [];
@@ -7825,8 +7878,7 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
7825
7878
  else {
7826
7879
  itemIndex = index + i;
7827
7880
  }
7828
- var addIndex = _this.isAdd ? tbCount + i : _this.lastIndex + 1;
7829
- _this.lastIndex = ((tbCount === 0) ? i : ((_this.isReplace) ? (itemIndex) : (addIndex)));
7881
+ _this.lastIndex = ((tbItems.length === 0) ? i : ((_this.isReplace) ? (itemIndex) : (maxId + 1 + i)));
7830
7882
  var disabled = (item.disabled) ? ' ' + CLS_DISABLE$4 + ' ' + CLS_OVERLAY$2 : '';
7831
7883
  var hidden = (item.visible === false) ? ' ' + CLS_HIDDEN$1 : '';
7832
7884
  txtWrapEle = _this.createElement('div', { className: CLS_TEXT, attrs: { 'role': 'presentation' } });
@@ -8134,7 +8186,12 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
8134
8186
  var templateFn;
8135
8187
  if (typeof val === 'string') {
8136
8188
  val = val.trim();
8137
- ele.innerHTML = SanitizeHtmlHelper.sanitize(val);
8189
+ if (this.isVue) {
8190
+ templateFn = compile(SanitizeHtmlHelper.sanitize(val));
8191
+ }
8192
+ else {
8193
+ ele.innerHTML = SanitizeHtmlHelper.sanitize(val);
8194
+ }
8138
8195
  }
8139
8196
  else {
8140
8197
  templateFn = compile(val);
@@ -8553,6 +8610,7 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
8553
8610
  }
8554
8611
  if (!isNullOrUndefined(this.cntEle) && !isNullOrUndefined(this.touchModule)) {
8555
8612
  this.touchModule.destroy();
8613
+ this.touchModule = null;
8556
8614
  }
8557
8615
  window.removeEventListener('resize', this.resizeContext);
8558
8616
  EventHandler.remove(this.element, 'mouseover', this.hoverHandler);
@@ -8582,8 +8640,13 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
8582
8640
  if (e.velocity < 3 && isNullOrUndefined(e.originalEvent.changedTouches)) {
8583
8641
  return;
8584
8642
  }
8585
- if (e.originalEvent && this.isNested) {
8586
- e.originalEvent.stopPropagation();
8643
+ if (this.isNested) {
8644
+ this.element.setAttribute('data-swipe', 'true');
8645
+ }
8646
+ var nestedTab = this.element.querySelector('[data-swipe="true"]');
8647
+ if (nestedTab) {
8648
+ nestedTab.removeAttribute('data-swipe');
8649
+ return;
8587
8650
  }
8588
8651
  this.isSwipeed = true;
8589
8652
  if (e.swipeDirection === 'Right' && this.selectedItem !== 0) {
@@ -8804,7 +8867,7 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
8804
8867
  this.reRenderItems();
8805
8868
  }
8806
8869
  else {
8807
- if (this.isRect) {
8870
+ if (this.isReact || this.isAngular) {
8808
8871
  this.clearTemplate();
8809
8872
  }
8810
8873
  this.setItems(newProp.items);
@@ -8817,12 +8880,13 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
8817
8880
  detach(selectElement.firstElementChild);
8818
8881
  }
8819
8882
  this.select(this.selectedItem);
8883
+ this.draggableItems = [];
8884
+ this.bindDraggable();
8820
8885
  }
8821
8886
  }
8822
8887
  };
8823
8888
  Tab.prototype.initializeDrag = function (target) {
8824
8889
  var _this = this;
8825
- this.dragArea = !isNullOrUndefined(this.dragArea) ? this.dragArea : '#' + this.element.id + ' ' + ('.' + CLS_HEADER$1);
8826
8890
  var dragObj = new Draggable(target, {
8827
8891
  dragArea: this.dragArea,
8828
8892
  dragTarget: '.' + CLS_TB_ITEM,
@@ -9000,6 +9064,7 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
9000
9064
  Tab.prototype.itemDragStop = function (e) {
9001
9065
  var _this = this;
9002
9066
  detach(this.cloneElement);
9067
+ this.cloneElement = null;
9003
9068
  this.dragItem.querySelector('.' + CLS_WRAP).style.visibility = 'visible';
9004
9069
  document.body.style.cursor = '';
9005
9070
  var dragStopArgs = {
@@ -9028,6 +9093,7 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
9028
9093
  }
9029
9094
  }
9030
9095
  });
9096
+ this.dragItem = null;
9031
9097
  };
9032
9098
  /**
9033
9099
  * Enables or disables the specified Tab item. On passing value as `false`, the item will be disabled.
@@ -9116,8 +9182,8 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
9116
9182
  var textValue_1;
9117
9183
  items.forEach(function (item, place) {
9118
9184
  textValue_1 = item.headerTemplate || item.header.text;
9119
- if (!(isNullOrUndefined(item.headerTemplate || item.header) ||
9120
- isNullOrUndefined(textValue_1) || (textValue_1.length === 0) && isNullOrUndefined(item.header.iconCss))) {
9185
+ if (!(isNullOrUndefined(item.headerTemplate || item.header) || isNullOrUndefined(textValue_1) ||
9186
+ (textValue_1.length === 0) && !isNullOrUndefined(item.header) && isNullOrUndefined(item.header.iconCss))) {
9121
9187
  _this.items.splice((index + i_1), 0, item);
9122
9188
  i_1++;
9123
9189
  }
@@ -9172,12 +9238,25 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
9172
9238
  detach(cntTrg);
9173
9239
  }
9174
9240
  _this.trigger('removed', tabRemovingArgs);
9241
+ if (_this.draggableItems && _this.draggableItems.length > 0) {
9242
+ _this.draggableItems[index].destroy();
9243
+ _this.draggableItems[index] = null;
9244
+ _this.draggableItems.splice(index, 1);
9245
+ }
9175
9246
  if (trg.classList.contains(CLS_ACTIVE$1)) {
9176
9247
  index = (index > selectAll('.' + CLS_TB_ITEM + ':not(.' + CLS_TB_POPUP + ')', _this.element).length - 1) ? index - 1 : index;
9177
9248
  _this.enableAnimation = false;
9178
9249
  _this.selectedItem = index;
9179
9250
  _this.select(index);
9180
9251
  }
9252
+ else if (index !== _this.selectedItem) {
9253
+ if (index < _this.selectedItem) {
9254
+ index = _this.itemIndexArray.indexOf(_this.tbItem[_this.selectedItem].id);
9255
+ _this.setProperties({ selectedItem: index > -1 ? index : _this.selectedItem }, true);
9256
+ _this.prevIndex = _this.selectedItem;
9257
+ }
9258
+ _this.tbItem = selectAll('.' + CLS_TB_ITEM, _this.getTabHeader());
9259
+ }
9181
9260
  if (selectAll('.' + CLS_TB_ITEM, _this.element).length === 0) {
9182
9261
  _this.hdrEle.style.display = 'none';
9183
9262
  }
@@ -9329,6 +9408,7 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
9329
9408
  }
9330
9409
  if (this.tbItem.length > args && args >= 0 && !isNaN(args)) {
9331
9410
  this.prevIndex = this.selectedItem;
9411
+ this.prevItem = this.tbItem[this.prevIndex];
9332
9412
  if (this.tbItem[args].classList.contains(CLS_TB_POPUP) && this.reorderActiveTab) {
9333
9413
  this.setActive(this.popupHandler(this.tbItem[args]), null, isInteracted);
9334
9414
  if ((!isNullOrUndefined(this.items) && this.items.length > 0) && this.allowDragAndDrop) {
@@ -10053,6 +10133,9 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
10053
10133
  if (document.querySelectorAll(template).length) {
10054
10134
  return compile(document.querySelector(template).innerHTML.trim());
10055
10135
  }
10136
+ else {
10137
+ return compile(template);
10138
+ }
10056
10139
  }
10057
10140
  catch (e) {
10058
10141
  return compile(template);
@@ -10381,7 +10464,7 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
10381
10464
  this.validNodes.push(checkedChild);
10382
10465
  }
10383
10466
  var subChildItems = getValue(this.fields.child.toString(), childItems[index]);
10384
- if (subChildItems) {
10467
+ if (subChildItems && subChildItems.length) {
10385
10468
  this.parentCheckData.push(treeData);
10386
10469
  this.updateChildCheckState(subChildItems, childItems[index]);
10387
10470
  }
@@ -12338,7 +12421,7 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
12338
12421
  return { cancel: false, isInteracted: isNullOrUndefined(e) ? false : true, node: currLi, nodeData: nodeData, event: e };
12339
12422
  };
12340
12423
  TreeView.prototype.renderNodeTemplate = function (data, textEle, dataId) {
12341
- var tempArr = this.nodeTemplateFn(data, this, 'nodeTemplate' + dataId, this.element.id + 'nodeTemplate', this.isStringTemplate, undefined, textEle);
12424
+ var tempArr = this.nodeTemplateFn(data, this, 'nodeTemplate' + dataId, this.element.id + 'nodeTemplate', this.isStringTemplate, undefined, textEle, this.root);
12342
12425
  if (tempArr) {
12343
12426
  tempArr = Array.prototype.slice.call(tempArr);
12344
12427
  append(tempArr, textEle);
@@ -15795,6 +15878,12 @@ var Breadcrumb = /** @__PURE__ @class */ (function (_super) {
15795
15878
  }
15796
15879
  if (!(this.overflowMode === 'Menu' && liElems[i].classList.contains(MENUCLASS))) {
15797
15880
  liWidth += liElems[i].offsetWidth;
15881
+ if (liWidth > width) {
15882
+ maxItems = Math.ceil((i) / 2) + (this.overflowMode === 'Menu' && i <= 2 ? 0 : 1);
15883
+ this._maxItems = maxItems;
15884
+ this.initPvtProps();
15885
+ return this.reRenderItems();
15886
+ }
15798
15887
  }
15799
15888
  }
15800
15889
  }
@@ -16166,9 +16255,993 @@ var Breadcrumb = /** @__PURE__ @class */ (function (_super) {
16166
16255
  * Breadcrumb modules
16167
16256
  */
16168
16257
 
16258
+ var __extends$11 = (undefined && undefined.__extends) || (function () {
16259
+ var extendStatics = function (d, b) {
16260
+ extendStatics = Object.setPrototypeOf ||
16261
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
16262
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
16263
+ return extendStatics(d, b);
16264
+ };
16265
+ return function (d, b) {
16266
+ extendStatics(d, b);
16267
+ function __() { this.constructor = d; }
16268
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
16269
+ };
16270
+ })();
16271
+ var __decorate$11 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
16272
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16273
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
16274
+ 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;
16275
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
16276
+ };
16277
+ /* eslint-disable @typescript-eslint/no-explicit-any */
16278
+ // Constant variables
16279
+ var CLS_CAROUSEL = 'e-carousel';
16280
+ var CLS_ACTIVE$2 = 'e-active';
16281
+ var CLS_RTL$5 = 'e-rtl';
16282
+ var CLS_ITEMS$2 = 'e-carousel-items';
16283
+ var CLS_ITEM$3 = 'e-carousel-item';
16284
+ var CLS_PREVIOUS = 'e-previous';
16285
+ var CLS_NEXT = 'e-next';
16286
+ var CLS_PREV_ICON = 'e-previous-icon';
16287
+ var CLS_NEXT_ICON = 'e-next-icon';
16288
+ var CLS_NAVIGATORS = 'e-carousel-navigators';
16289
+ var CLS_INDICATORS = 'e-carousel-indicators';
16290
+ var CLS_INDICATOR_BARS = 'e-indicator-bars';
16291
+ var CLS_INDICATOR_BAR = 'e-indicator-bar';
16292
+ var CLS_INDICATOR$1 = 'e-indicator';
16293
+ var CLS_ICON$1 = 'e-icons';
16294
+ var CLS_PLAY_PAUSE = 'e-play-pause';
16295
+ var CLS_PLAY_ICON = 'e-play-icon';
16296
+ var CLS_PAUSE_ICON = 'e-pause-icon';
16297
+ var CLS_PREV_BUTTON = 'e-previous-button';
16298
+ var CLS_NEXT_BUTTON = 'e-next-button';
16299
+ var CLS_PLAY_BUTTON = 'e-play-button';
16300
+ var CLS_FLAT = 'e-flat';
16301
+ var CLS_ROUND = 'e-round';
16302
+ var CLS_HOVER_ARROWS = 'e-hover-arrows';
16303
+ var CLS_HOVER = 'e-carousel-hover';
16304
+ var CLS_TEMPLATE$2 = 'e-template';
16305
+ var CLS_SLIDE_ANIMATION = 'e-carousel-slide-animation';
16306
+ var CLS_FADE_ANIMATION = 'e-carousel-fade-animation';
16307
+ var CLS_PREV_SLIDE = 'e-prev';
16308
+ var CLS_NEXT_SLIDE = 'e-next';
16309
+ var CLS_TRANSITION_START = 'e-transition-start';
16310
+ var CLS_TRANSITION_END = 'e-transition-end';
16311
+ /** Specifies the carousel individual item. */
16312
+ var CarouselItem = /** @__PURE__ @class */ (function (_super) {
16313
+ __extends$11(CarouselItem, _super);
16314
+ function CarouselItem() {
16315
+ return _super !== null && _super.apply(this, arguments) || this;
16316
+ }
16317
+ __decorate$11([
16318
+ Property()
16319
+ ], CarouselItem.prototype, "cssClass", void 0);
16320
+ __decorate$11([
16321
+ Property()
16322
+ ], CarouselItem.prototype, "interval", void 0);
16323
+ __decorate$11([
16324
+ Property()
16325
+ ], CarouselItem.prototype, "template", void 0);
16326
+ __decorate$11([
16327
+ Property()
16328
+ ], CarouselItem.prototype, "htmlAttributes", void 0);
16329
+ return CarouselItem;
16330
+ }(ChildProperty));
16331
+ /** Specifies the animation configuration for carousel items. */
16332
+ var CarouselAnimationSettings = /** @__PURE__ @class */ (function (_super) {
16333
+ __extends$11(CarouselAnimationSettings, _super);
16334
+ function CarouselAnimationSettings() {
16335
+ return _super !== null && _super.apply(this, arguments) || this;
16336
+ }
16337
+ __decorate$11([
16338
+ Property('Slide')
16339
+ ], CarouselAnimationSettings.prototype, "effect", void 0);
16340
+ __decorate$11([
16341
+ Property()
16342
+ ], CarouselAnimationSettings.prototype, "customEffect", void 0);
16343
+ return CarouselAnimationSettings;
16344
+ }(ChildProperty));
16345
+ var Carousel = /** @__PURE__ @class */ (function (_super) {
16346
+ __extends$11(Carousel, _super);
16347
+ /**
16348
+ * Constructor for creating the Carousel widget
16349
+ *
16350
+ * @param {CarouselModel} options Accepts the carousel model properties to initiate the rendering
16351
+ * @param {string | HTMLElement} element Accepts the DOM element reference
16352
+ */
16353
+ function Carousel(options, element) {
16354
+ return _super.call(this, options, element) || this;
16355
+ }
16356
+ Carousel.prototype.getModuleName = function () {
16357
+ return CLS_CAROUSEL.replace('e-', '');
16358
+ };
16359
+ Carousel.prototype.getPersistData = function () {
16360
+ return this.addOnPersist(['selectedIndex']);
16361
+ };
16362
+ Carousel.prototype.preRender = function () {
16363
+ this.keyConfigs = {
16364
+ home: 'home',
16365
+ end: 'end',
16366
+ space: 'space',
16367
+ moveLeft: 'leftarrow',
16368
+ moveRight: 'rightarrow',
16369
+ moveUp: 'uparrow',
16370
+ moveDown: 'downarrow'
16371
+ };
16372
+ var defaultLocale = {
16373
+ nextSlide: 'Next slide',
16374
+ of: 'of',
16375
+ pauseSlideTransition: 'Pause slide transition',
16376
+ playSlideTransition: 'Play slide transition',
16377
+ previousSlide: 'Previous slide',
16378
+ slide: 'Slide',
16379
+ slideShow: 'Slide show'
16380
+ };
16381
+ this.localeObj = new L10n(this.getModuleName(), defaultLocale, this.locale);
16382
+ };
16383
+ Carousel.prototype.render = function () {
16384
+ this.initialize();
16385
+ this.renderSlides();
16386
+ this.renderNavigators();
16387
+ this.renderPlayButton();
16388
+ this.renderIndicators();
16389
+ this.applyAnimation();
16390
+ this.wireEvents();
16391
+ };
16392
+ Carousel.prototype.onPropertyChanged = function (newProp, oldProp) {
16393
+ var target;
16394
+ for (var _i = 0, _a = Object.keys(newProp); _i < _a.length; _i++) {
16395
+ var prop = _a[_i];
16396
+ switch (prop) {
16397
+ case 'animation':
16398
+ for (var _b = 0, _c = Object.keys(newProp.animation); _b < _c.length; _b++) {
16399
+ var propName = _c[_b];
16400
+ if (propName === 'customEffect' && !isNullOrUndefined(oldProp.animation.customEffect)) {
16401
+ removeClass([this.element.querySelector("." + CLS_ITEMS$2)], oldProp.animation.customEffect);
16402
+ }
16403
+ }
16404
+ this.applyAnimation();
16405
+ break;
16406
+ case 'cssClass':
16407
+ classList(this.element, [newProp.cssClass], [oldProp.cssClass]);
16408
+ break;
16409
+ case 'selectedIndex':
16410
+ this.setActiveSlide(this.selectedIndex, oldProp.selectedIndex > this.selectedIndex ? 'Previous' : 'Next');
16411
+ this.autoSlide();
16412
+ break;
16413
+ case 'htmlAttributes':
16414
+ if (!isNullOrUndefined(this.htmlAttributes)) {
16415
+ this.setHtmlAttributes(this.htmlAttributes, this.element);
16416
+ }
16417
+ break;
16418
+ case 'enableTouchSwipe':
16419
+ if (!this.enableTouchSwipe && this.touchModule) {
16420
+ this.touchModule.destroy();
16421
+ }
16422
+ if (this.element.querySelector("." + CLS_ITEMS$2)) {
16423
+ this.renderTouchActions();
16424
+ }
16425
+ break;
16426
+ case 'loop':
16427
+ if (this.loop && isNullOrUndefined(this.autoSlideInterval)) {
16428
+ this.applySlideInterval();
16429
+ }
16430
+ this.handleNavigatorsActions(this.selectedIndex);
16431
+ break;
16432
+ case 'enableRtl':
16433
+ if (this.enableRtl) {
16434
+ addClass([this.element], CLS_RTL$5);
16435
+ }
16436
+ else {
16437
+ removeClass([this.element], CLS_RTL$5);
16438
+ }
16439
+ break;
16440
+ case 'buttonsVisibility':
16441
+ target = this.element.querySelector("." + CLS_NAVIGATORS);
16442
+ if (target) {
16443
+ switch (this.buttonsVisibility) {
16444
+ case 'Hidden':
16445
+ this.resetTemplates(['previousButtonTemplate', 'nextButtonTemplate']);
16446
+ remove(target);
16447
+ break;
16448
+ case 'VisibleOnHover':
16449
+ addClass([].slice.call(target.childNodes), CLS_HOVER_ARROWS);
16450
+ break;
16451
+ case 'Visible':
16452
+ removeClass([].slice.call(target.childNodes), CLS_HOVER_ARROWS);
16453
+ break;
16454
+ }
16455
+ }
16456
+ else {
16457
+ this.renderNavigators();
16458
+ this.renderPlayButton();
16459
+ }
16460
+ break;
16461
+ case 'width':
16462
+ setStyleAttribute(this.element, { 'width': formatUnit(this.width) });
16463
+ break;
16464
+ case 'height':
16465
+ setStyleAttribute(this.element, { 'height': formatUnit(this.height) });
16466
+ break;
16467
+ case 'autoPlay':
16468
+ if (this.showPlayButton && isNullOrUndefined(this.playButtonTemplate)) {
16469
+ this.playButtonClickHandler(null, true);
16470
+ }
16471
+ this.autoSlide();
16472
+ break;
16473
+ case 'interval':
16474
+ this.autoSlide();
16475
+ break;
16476
+ case 'showIndicators':
16477
+ target = this.element.querySelector("." + CLS_INDICATORS);
16478
+ if (!this.showIndicators && target) {
16479
+ this.resetTemplates(['indicatorsTemplate']);
16480
+ remove(target);
16481
+ }
16482
+ this.renderIndicators();
16483
+ break;
16484
+ case 'showPlayButton':
16485
+ target = this.element.querySelector("." + CLS_PLAY_PAUSE);
16486
+ if (!this.showPlayButton && target) {
16487
+ remove(target);
16488
+ this.resetTemplates(['playButtonTemplate']);
16489
+ }
16490
+ this.renderPlayButton();
16491
+ break;
16492
+ case 'items':
16493
+ case 'dataSource':
16494
+ target = this.element.querySelector("." + CLS_ITEMS$2);
16495
+ if (target) {
16496
+ this.resetTemplates(['itemTemplate']);
16497
+ remove(target);
16498
+ }
16499
+ this.renderSlides();
16500
+ break;
16501
+ }
16502
+ }
16503
+ };
16504
+ Carousel.prototype.initialize = function () {
16505
+ var carouselClasses = [];
16506
+ if (this.cssClass) {
16507
+ carouselClasses.push(this.cssClass);
16508
+ }
16509
+ if (this.enableRtl) {
16510
+ carouselClasses.push(CLS_RTL$5);
16511
+ }
16512
+ addClass([this.element], carouselClasses);
16513
+ setStyleAttribute(this.element, { 'width': formatUnit(this.width), 'height': formatUnit(this.height) });
16514
+ attributes(this.element, { 'tabindex': '0', 'aria-roledescription': 'carousel', 'aria-label': this.localeObj.getConstant('slideShow') });
16515
+ if (!isNullOrUndefined(this.htmlAttributes)) {
16516
+ this.setHtmlAttributes(this.htmlAttributes, this.element);
16517
+ }
16518
+ };
16519
+ Carousel.prototype.renderSlides = function () {
16520
+ var _this = this;
16521
+ var itemsContainer = this.createElement('div', { className: CLS_ITEMS$2, attrs: { 'aria-live': this.autoPlay ? 'off' : 'polite' } });
16522
+ this.element.appendChild(itemsContainer);
16523
+ if (this.items.length > 0) {
16524
+ this.slideItems = this.items;
16525
+ this.items.forEach(function (item, index) {
16526
+ _this.renderSlide(item, item.template, index, itemsContainer);
16527
+ });
16528
+ }
16529
+ else if (this.dataSource.length > 0) {
16530
+ this.slideItems = this.dataSource;
16531
+ this.dataSource.forEach(function (item, index) {
16532
+ _this.renderSlide(item, _this.itemTemplate, index, itemsContainer);
16533
+ });
16534
+ }
16535
+ this.renderTemplates();
16536
+ this.autoSlide();
16537
+ this.renderTouchActions();
16538
+ this.renderKeyboardActions();
16539
+ };
16540
+ Carousel.prototype.renderSlide = function (item, itemTemplate, index, container) {
16541
+ var itemEle = this.createElement('div', {
16542
+ id: getUniqueID('carousel_item'),
16543
+ className: CLS_ITEM$3 + " " + (item.cssClass ? item.cssClass : '') + " " + (this.selectedIndex === index ? CLS_ACTIVE$2 : ''),
16544
+ attrs: {
16545
+ 'aria-hidden': this.selectedIndex === index ? 'false' : 'true', 'data-index': index.toString(),
16546
+ 'aria-role': 'group', 'aria-roledescription': 'slide'
16547
+ }
16548
+ });
16549
+ if (!isNullOrUndefined(item.htmlAttributes)) {
16550
+ this.setHtmlAttributes(item.htmlAttributes, itemEle);
16551
+ }
16552
+ var templateId = this.element.id + '_template';
16553
+ var template = this.templateParser(itemTemplate)(item, this, 'itemTemplate', templateId, false);
16554
+ append(template, itemEle);
16555
+ container.appendChild(itemEle);
16556
+ };
16557
+ Carousel.prototype.renderNavigators = function () {
16558
+ if (this.buttonsVisibility === 'Hidden') {
16559
+ return;
16560
+ }
16561
+ var navigators = this.createElement('div', { className: CLS_NAVIGATORS });
16562
+ var itemsContainer = this.element.querySelector("." + CLS_ITEMS$2);
16563
+ itemsContainer.insertAdjacentElement('afterend', navigators);
16564
+ this.renderNavigatorButton('Previous');
16565
+ this.renderNavigatorButton('Next');
16566
+ this.renderTemplates();
16567
+ };
16568
+ Carousel.prototype.renderNavigatorButton = function (direction) {
16569
+ var buttonContainer = this.createElement('div', {
16570
+ className: (direction === 'Previous' ? CLS_PREVIOUS : CLS_NEXT) + ' ' + (this.buttonsVisibility === 'VisibleOnHover' ? CLS_HOVER_ARROWS : ''),
16571
+ attrs: { 'aria-label': this.localeObj.getConstant(direction === 'Previous' ? 'previousSlide' : 'nextSlide') }
16572
+ });
16573
+ if (direction === 'Previous' && this.previousButtonTemplate) {
16574
+ addClass([buttonContainer], CLS_TEMPLATE$2);
16575
+ var templateId = this.element.id + '_previousButtonTemplate';
16576
+ var template = this.templateParser(this.previousButtonTemplate)({ type: 'Previous' }, this, 'previousButtonTemplate', templateId, false);
16577
+ append(template, buttonContainer);
16578
+ }
16579
+ else if (direction === 'Next' && this.nextButtonTemplate) {
16580
+ addClass([buttonContainer], CLS_TEMPLATE$2);
16581
+ var templateId = this.element.id + '_nextButtonTemplate';
16582
+ var template = this.templateParser(this.nextButtonTemplate)({ type: 'Next' }, this, 'nextButtonTemplate', templateId, false);
16583
+ append(template, buttonContainer);
16584
+ }
16585
+ else {
16586
+ var button = this.createElement('button');
16587
+ var buttonObj = new Button({
16588
+ cssClass: CLS_FLAT + ' ' + CLS_ROUND + ' ' + (direction === 'Previous' ? CLS_PREV_BUTTON : CLS_NEXT_BUTTON),
16589
+ iconCss: CLS_ICON$1 + ' ' + (direction === 'Previous' ? CLS_PREV_ICON : CLS_NEXT_ICON),
16590
+ enableRtl: this.enableRtl,
16591
+ disabled: !this.loop && this.selectedIndex === (direction === 'Previous' ? 0 : this.slideItems.length - 1)
16592
+ });
16593
+ buttonObj.appendTo(button);
16594
+ buttonContainer.appendChild(button);
16595
+ }
16596
+ this.element.querySelector('.' + CLS_NAVIGATORS).appendChild(buttonContainer);
16597
+ EventHandler.add(buttonContainer, 'click', this.navigatorClickHandler, this);
16598
+ };
16599
+ Carousel.prototype.renderPlayButton = function () {
16600
+ if (this.buttonsVisibility === 'Hidden' || !this.showPlayButton) {
16601
+ return;
16602
+ }
16603
+ var playPauseWrap = this.createElement('div', {
16604
+ className: CLS_PLAY_PAUSE + ' ' + (this.buttonsVisibility === 'VisibleOnHover' ? CLS_HOVER_ARROWS : '')
16605
+ });
16606
+ if (this.playButtonTemplate) {
16607
+ addClass([playPauseWrap], CLS_TEMPLATE$2);
16608
+ var templateId = this.element.id + '_playButtonTemplate';
16609
+ var template = this.templateParser(this.playButtonTemplate)({}, this, 'playButtonTemplate', templateId, false);
16610
+ append(template, playPauseWrap);
16611
+ }
16612
+ else {
16613
+ var playButton = this.createElement('button', {
16614
+ attrs: { 'aria-label': this.localeObj.getConstant(this.autoPlay ? 'pauseSlideTransition' : 'playSlideTransition') }
16615
+ });
16616
+ var isLastSlide = this.selectedIndex === this.slideItems.length - 1 && !this.loop;
16617
+ var buttonObj = new Button({
16618
+ cssClass: CLS_FLAT + ' ' + CLS_ROUND + ' ' + CLS_PLAY_BUTTON,
16619
+ iconCss: CLS_ICON$1 + ' ' + (this.autoPlay && !isLastSlide ? CLS_PAUSE_ICON : CLS_PLAY_ICON),
16620
+ isToggle: true,
16621
+ enableRtl: this.enableRtl
16622
+ });
16623
+ if (isLastSlide) {
16624
+ this.setProperties({ autoPlay: false }, true);
16625
+ playButton.setAttribute('aria-label', this.localeObj.getConstant('playSlideTransition'));
16626
+ var itemsContainer = this.element.querySelector("." + CLS_ITEMS$2);
16627
+ itemsContainer.setAttribute('aria-live', 'polite');
16628
+ }
16629
+ buttonObj.appendTo(playButton);
16630
+ playPauseWrap.appendChild(playButton);
16631
+ }
16632
+ var navigators = this.element.querySelector("." + CLS_NAVIGATORS);
16633
+ navigators.insertBefore(playPauseWrap, navigators.lastElementChild);
16634
+ this.renderTemplates();
16635
+ EventHandler.add(playPauseWrap, 'click', this.playButtonClickHandler, this);
16636
+ };
16637
+ Carousel.prototype.renderIndicators = function () {
16638
+ var _this = this;
16639
+ if (!this.showIndicators) {
16640
+ return;
16641
+ }
16642
+ var indicatorWrap = this.createElement('div', { className: CLS_INDICATORS });
16643
+ var indicatorBars = this.createElement('div', { className: CLS_INDICATOR_BARS });
16644
+ indicatorWrap.appendChild(indicatorBars);
16645
+ if (this.slideItems) {
16646
+ this.slideItems.forEach(function (item, index) {
16647
+ var indicatorBar = _this.createElement('div', {
16648
+ className: CLS_INDICATOR_BAR + ' ' + (_this.selectedIndex === index ? CLS_ACTIVE$2 : ''),
16649
+ attrs: { 'data-index': index.toString(), 'aria-current': _this.selectedIndex === index ? 'true' : 'false' }
16650
+ });
16651
+ if (_this.indicatorsTemplate) {
16652
+ addClass([indicatorBar], CLS_TEMPLATE$2);
16653
+ var templateId = _this.element.id + '_indicatorsTemplate';
16654
+ var template = _this.templateParser(_this.indicatorsTemplate)({ index: index, selectedIndex: _this.selectedIndex }, _this, 'indicatorsTemplate', templateId, false);
16655
+ append(template, indicatorBar);
16656
+ }
16657
+ else {
16658
+ var indicator = _this.createElement('button', { className: CLS_INDICATOR$1 });
16659
+ indicatorBar.appendChild(indicator);
16660
+ indicator.appendChild(_this.createElement('div', {
16661
+ attrs: {
16662
+ 'aria-label': _this.localeObj.getConstant('slide') + ' ' + (index + 1) + ' ' + _this.localeObj.getConstant('of') + ' ' + _this.slideItems.length
16663
+ }
16664
+ }));
16665
+ var buttonObj = new Button({ cssClass: 'e-flat e-small' });
16666
+ buttonObj.appendTo(indicator);
16667
+ }
16668
+ indicatorBars.appendChild(indicatorBar);
16669
+ EventHandler.add(indicatorBar, 'click', _this.indicatorClickHandler, _this);
16670
+ });
16671
+ }
16672
+ this.element.appendChild(indicatorWrap);
16673
+ };
16674
+ Carousel.prototype.renderKeyboardActions = function () {
16675
+ this.keyModule = new KeyboardEvents(this.element, { keyAction: this.keyHandler.bind(this), keyConfigs: this.keyConfigs });
16676
+ };
16677
+ Carousel.prototype.renderTouchActions = function () {
16678
+ if (!this.enableTouchSwipe) {
16679
+ return;
16680
+ }
16681
+ this.touchModule = new Touch(this.element, { swipe: this.swipeHandler.bind(this) });
16682
+ };
16683
+ Carousel.prototype.applyAnimation = function () {
16684
+ var animationTarget = this.element.querySelector("." + CLS_ITEMS$2);
16685
+ removeClass([animationTarget], [CLS_FADE_ANIMATION, CLS_SLIDE_ANIMATION]);
16686
+ if (this.animation.customEffect) {
16687
+ addClass([animationTarget], this.animation.customEffect);
16688
+ }
16689
+ else if (this.animation.effect !== 'None') {
16690
+ var animationClass = this.animation.effect === 'Fade' ? CLS_FADE_ANIMATION : CLS_SLIDE_ANIMATION;
16691
+ addClass([animationTarget], animationClass);
16692
+ }
16693
+ };
16694
+ Carousel.prototype.autoSlide = function () {
16695
+ this.resetSlideInterval();
16696
+ this.applySlideInterval();
16697
+ };
16698
+ Carousel.prototype.autoSlideChange = function () {
16699
+ var activeSlide = this.element.querySelector("." + CLS_ACTIVE$2);
16700
+ if (isNullOrUndefined(activeSlide)) {
16701
+ return;
16702
+ }
16703
+ var activeIndex = parseInt(activeSlide.dataset.index, 10);
16704
+ if (!this.loop && activeIndex === this.slideItems.length - 1) {
16705
+ this.resetSlideInterval();
16706
+ }
16707
+ else {
16708
+ var index = (activeIndex + 1) % this.slideItems.length;
16709
+ if (!this.element.classList.contains(CLS_HOVER)) {
16710
+ this.setActiveSlide(index, 'Next');
16711
+ }
16712
+ this.autoSlide();
16713
+ }
16714
+ };
16715
+ Carousel.prototype.applySlideInterval = function () {
16716
+ var _this = this;
16717
+ if (!this.autoPlay || this.element.classList.contains(CLS_HOVER)) {
16718
+ return;
16719
+ }
16720
+ var itemInterval = this.interval;
16721
+ if (this.items.length > 0 && !isNullOrUndefined(this.items[this.selectedIndex].interval)) {
16722
+ itemInterval = this.items[this.selectedIndex].interval;
16723
+ }
16724
+ this.autoSlideInterval = setInterval(function () { return _this.autoSlideChange(); }, itemInterval);
16725
+ };
16726
+ Carousel.prototype.resetSlideInterval = function () {
16727
+ clearInterval(this.autoSlideInterval);
16728
+ this.autoSlideInterval = null;
16729
+ };
16730
+ Carousel.prototype.getSlideIndex = function (direction) {
16731
+ var currentIndex = this.selectedIndex;
16732
+ if (direction === 'Previous') {
16733
+ currentIndex--;
16734
+ if (currentIndex < 0) {
16735
+ currentIndex = this.slideItems.length - 1;
16736
+ }
16737
+ }
16738
+ else {
16739
+ currentIndex++;
16740
+ if (currentIndex === this.slideItems.length) {
16741
+ currentIndex = 0;
16742
+ }
16743
+ }
16744
+ return currentIndex;
16745
+ };
16746
+ Carousel.prototype.setActiveSlide = function (currentIndex, direction, isSwiped) {
16747
+ var _this = this;
16748
+ if (isSwiped === void 0) { isSwiped = false; }
16749
+ if (this.element.querySelectorAll("." + CLS_ITEM$3 + "." + CLS_PREV_SLIDE + ",." + CLS_ITEM$3 + "." + CLS_NEXT_SLIDE).length > 0) {
16750
+ return;
16751
+ }
16752
+ var allSlides = [].slice.call(this.element.querySelectorAll("." + CLS_ITEM$3));
16753
+ var activeSlide = this.element.querySelector("." + CLS_ITEM$3 + "." + CLS_ACTIVE$2);
16754
+ if (isNullOrUndefined(activeSlide) && this.showIndicators) {
16755
+ var activeIndicator = this.element.querySelector("." + CLS_INDICATOR_BAR + "." + CLS_ACTIVE$2);
16756
+ var activeIndex_1 = parseInt(activeIndicator.dataset.index, 10);
16757
+ addClass([allSlides[activeIndex_1]], CLS_ACTIVE$2);
16758
+ return;
16759
+ }
16760
+ else if (isNullOrUndefined(activeSlide)) {
16761
+ addClass([allSlides[currentIndex]], CLS_ACTIVE$2);
16762
+ return;
16763
+ }
16764
+ var activeIndex = parseInt(activeSlide.dataset.index, 10);
16765
+ var currentSlide = allSlides[currentIndex];
16766
+ var eventArgs = {
16767
+ currentIndex: activeIndex,
16768
+ nextIndex: currentIndex,
16769
+ currentSlide: activeSlide,
16770
+ nextSlide: currentSlide,
16771
+ slideDirection: direction,
16772
+ isSwiped: isSwiped,
16773
+ cancel: false
16774
+ };
16775
+ this.trigger('slideChanging', eventArgs, function (args) {
16776
+ if (args.cancel) {
16777
+ return;
16778
+ }
16779
+ _this.setProperties({ selectedIndex: currentIndex }, true);
16780
+ attributes(args.currentSlide, { 'aria-hidden': 'true' });
16781
+ attributes(args.nextSlide, { 'aria-hidden': 'false' });
16782
+ var slideIndicators = [].slice.call(_this.element.querySelectorAll("." + CLS_INDICATOR_BAR));
16783
+ if (slideIndicators.length > 0) {
16784
+ attributes(slideIndicators[activeIndex], { 'aria-current': 'false' });
16785
+ attributes(slideIndicators[currentIndex], { 'aria-current': 'true' });
16786
+ removeClass(slideIndicators, CLS_ACTIVE$2);
16787
+ addClass([slideIndicators[currentIndex]], CLS_ACTIVE$2);
16788
+ }
16789
+ _this.slideChangedEventArgs = {
16790
+ currentIndex: args.nextIndex,
16791
+ previousIndex: args.currentIndex,
16792
+ currentSlide: args.nextSlide,
16793
+ previousSlide: args.currentSlide,
16794
+ slideDirection: direction,
16795
+ isSwiped: isSwiped
16796
+ };
16797
+ var slideHeight;
16798
+ if (_this.animation.effect === 'None' || _this.animation.customEffect) {
16799
+ _this.onTransitionEnd();
16800
+ }
16801
+ else if (_this.animation.effect === 'Slide') {
16802
+ if (direction === 'Previous') {
16803
+ addClass([args.nextSlide], CLS_PREV_SLIDE);
16804
+ slideHeight = args.nextSlide.offsetHeight;
16805
+ addClass([args.currentSlide, args.nextSlide], CLS_TRANSITION_END);
16806
+ }
16807
+ else {
16808
+ addClass([args.nextSlide], CLS_NEXT_SLIDE);
16809
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
16810
+ slideHeight = args.nextSlide.offsetHeight;
16811
+ addClass([args.currentSlide, args.nextSlide], CLS_TRANSITION_START);
16812
+ }
16813
+ }
16814
+ else if (_this.animation.effect === 'Fade') {
16815
+ removeClass([args.currentSlide], CLS_ACTIVE$2);
16816
+ addClass([args.nextSlide], CLS_ACTIVE$2);
16817
+ }
16818
+ _this.handleNavigatorsActions(currentIndex);
16819
+ });
16820
+ };
16821
+ Carousel.prototype.onTransitionEnd = function () {
16822
+ var _this = this;
16823
+ if (this.slideChangedEventArgs) {
16824
+ addClass([this.slideChangedEventArgs.currentSlide], CLS_ACTIVE$2);
16825
+ removeClass([this.slideChangedEventArgs.previousSlide], CLS_ACTIVE$2);
16826
+ this.trigger('slideChanged', this.slideChangedEventArgs, function () {
16827
+ removeClass(_this.element.querySelectorAll("." + CLS_ITEM$3), [CLS_PREV_SLIDE, CLS_NEXT_SLIDE, CLS_TRANSITION_START, CLS_TRANSITION_END]);
16828
+ _this.slideChangedEventArgs = null;
16829
+ });
16830
+ }
16831
+ };
16832
+ Carousel.prototype.setHtmlAttributes = function (attribute, element) {
16833
+ var keys = Object.keys(attribute);
16834
+ for (var _i = 0, keys_1 = keys; _i < keys_1.length; _i++) {
16835
+ var key = keys_1[_i];
16836
+ if (key === 'class') {
16837
+ addClass([element], attribute[key]);
16838
+ }
16839
+ else {
16840
+ element.setAttribute(key, attribute[key]);
16841
+ }
16842
+ }
16843
+ };
16844
+ Carousel.prototype.templateParser = function (template) {
16845
+ if (template) {
16846
+ try {
16847
+ if (document.querySelectorAll(template).length) {
16848
+ return compile(document.querySelector(template).innerHTML.trim());
16849
+ }
16850
+ else {
16851
+ return compile(template);
16852
+ }
16853
+ }
16854
+ catch (error) {
16855
+ return compile(template);
16856
+ }
16857
+ }
16858
+ return undefined;
16859
+ };
16860
+ Carousel.prototype.getNavigatorState = function (target, isPrevious) {
16861
+ var button = target.querySelector("." + (isPrevious ? CLS_PREV_BUTTON : CLS_NEXT_BUTTON));
16862
+ if (button) {
16863
+ var buttonObj = getInstance(button, Button);
16864
+ return buttonObj.disabled;
16865
+ }
16866
+ return false;
16867
+ };
16868
+ Carousel.prototype.navigatorClickHandler = function (e) {
16869
+ var target = e.currentTarget;
16870
+ var isDisabled = this.getNavigatorState(target, target.classList.contains(CLS_PREVIOUS));
16871
+ if (isDisabled) {
16872
+ return;
16873
+ }
16874
+ var direction = target.classList.contains(CLS_PREVIOUS) ? 'Previous' : 'Next';
16875
+ this.setActiveSlide(this.getSlideIndex(direction), direction);
16876
+ this.autoSlide();
16877
+ };
16878
+ Carousel.prototype.indicatorClickHandler = function (e) {
16879
+ var target = closest(e.target, "." + CLS_INDICATOR_BAR);
16880
+ var index = parseInt(target.dataset.index, 10);
16881
+ if (this.selectedIndex !== index) {
16882
+ this.setActiveSlide(index, this.selectedIndex > index ? 'Previous' : 'Next');
16883
+ this.autoSlide();
16884
+ }
16885
+ };
16886
+ Carousel.prototype.playButtonClickHandler = function (e, isPropertyChange) {
16887
+ if (isPropertyChange === void 0) { isPropertyChange = false; }
16888
+ var playButton = this.element.querySelector("." + CLS_PLAY_BUTTON);
16889
+ if (playButton) {
16890
+ var buttonObj = getInstance(playButton, Button);
16891
+ if (!isPropertyChange) {
16892
+ this.setProperties({ autoPlay: !this.autoPlay }, true);
16893
+ }
16894
+ playButton.setAttribute('aria-label', this.localeObj.getConstant(this.autoPlay ? 'pauseSlideTransition' : 'playSlideTransition'));
16895
+ buttonObj.iconCss = CLS_ICON$1 + ' ' + (this.autoPlay ? CLS_PAUSE_ICON : CLS_PLAY_ICON);
16896
+ buttonObj.dataBind();
16897
+ var itemsContainer = this.element.querySelector("." + CLS_ITEMS$2);
16898
+ itemsContainer.setAttribute('aria-live', this.autoPlay ? 'off' : 'polite');
16899
+ if (this.autoPlay && !this.loop && this.selectedIndex === this.slideItems.length - 1) {
16900
+ this.setActiveSlide(0, 'Next');
16901
+ }
16902
+ this.autoSlide();
16903
+ }
16904
+ };
16905
+ Carousel.prototype.keyHandler = function (e) {
16906
+ var direction;
16907
+ var slideIndex;
16908
+ var isSlideTransition = false;
16909
+ var target = e.target;
16910
+ e.preventDefault();
16911
+ switch (e.action) {
16912
+ case 'space':
16913
+ if (this.showIndicators && target.classList.contains(CLS_INDICATOR$1)) {
16914
+ target.click();
16915
+ }
16916
+ else if (target.classList.contains(CLS_CAROUSEL) || target.classList.contains(CLS_PLAY_BUTTON)) {
16917
+ this.playButtonClickHandler(e);
16918
+ }
16919
+ else if (target.classList.contains(CLS_NEXT_BUTTON)) {
16920
+ this.next();
16921
+ }
16922
+ else if (target.classList.contains(CLS_PREV_BUTTON)) {
16923
+ this.prev();
16924
+ }
16925
+ break;
16926
+ case 'end':
16927
+ slideIndex = this.slideItems.length - 1;
16928
+ direction = 'Next';
16929
+ isSlideTransition = true;
16930
+ break;
16931
+ case 'home':
16932
+ slideIndex = 0;
16933
+ direction = 'Previous';
16934
+ isSlideTransition = true;
16935
+ break;
16936
+ case 'moveUp':
16937
+ case 'moveLeft':
16938
+ case 'moveDown':
16939
+ case 'moveRight':
16940
+ if (this.showIndicators && isNullOrUndefined(this.indicatorsTemplate)) {
16941
+ this.element.focus();
16942
+ }
16943
+ direction = (e.action === 'moveUp' || e.action === 'moveLeft') ? 'Previous' : 'Next';
16944
+ slideIndex = this.getSlideIndex(direction);
16945
+ isSlideTransition = !this.isSuspendSlideTransition(slideIndex, direction);
16946
+ break;
16947
+ }
16948
+ if (isSlideTransition) {
16949
+ this.setActiveSlide(slideIndex, direction);
16950
+ this.autoSlide();
16951
+ isSlideTransition = false;
16952
+ }
16953
+ };
16954
+ Carousel.prototype.swipeHandler = function (e) {
16955
+ if (this.element.classList.contains(CLS_HOVER)) {
16956
+ return;
16957
+ }
16958
+ var direction = (e.swipeDirection === 'Right') ? 'Previous' : 'Next';
16959
+ var slideIndex = this.getSlideIndex(direction);
16960
+ if (!this.isSuspendSlideTransition(slideIndex, direction)) {
16961
+ this.setActiveSlide(slideIndex, direction, true);
16962
+ this.autoSlide();
16963
+ }
16964
+ };
16965
+ Carousel.prototype.isSuspendSlideTransition = function (index, direction) {
16966
+ return !this.loop && (direction === 'Next' && index === 0 || direction === 'Previous' && index === this.slideItems.length - 1);
16967
+ };
16968
+ Carousel.prototype.handleNavigatorsActions = function (index) {
16969
+ if (this.buttonsVisibility === 'Hidden') {
16970
+ return;
16971
+ }
16972
+ if (this.showPlayButton) {
16973
+ var playButton = this.element.querySelector("." + CLS_PLAY_BUTTON);
16974
+ var isLastSlide = this.selectedIndex === this.slideItems.length - 1 && !this.loop;
16975
+ var isButtonUpdate = isNullOrUndefined(this.playButtonTemplate) && playButton && isLastSlide;
16976
+ if (isNullOrUndefined(this.playButtonTemplate) && playButton && !isLastSlide) {
16977
+ isButtonUpdate = !playButton.classList.contains(CLS_ACTIVE$2);
16978
+ }
16979
+ if (isButtonUpdate) {
16980
+ this.setProperties({ autoPlay: !isLastSlide }, true);
16981
+ playButton.setAttribute('aria-label', this.localeObj.getConstant(this.autoPlay ? 'pauseSlideTransition' : 'playSlideTransition'));
16982
+ var itemsContainer = this.element.querySelector("." + CLS_ITEMS$2);
16983
+ itemsContainer.setAttribute('aria-live', this.autoPlay ? 'off' : 'polite');
16984
+ var buttonObj = getInstance(playButton, Button);
16985
+ buttonObj.iconCss = CLS_ICON$1 + ' ' + (this.autoPlay ? CLS_PAUSE_ICON : CLS_PLAY_ICON);
16986
+ buttonObj.dataBind();
16987
+ }
16988
+ }
16989
+ var prevButton = this.element.querySelector("." + CLS_PREV_BUTTON);
16990
+ if (prevButton && isNullOrUndefined(this.previousButtonTemplate)) {
16991
+ var buttonObj = getInstance(prevButton, Button);
16992
+ buttonObj.disabled = !this.loop && index === 0;
16993
+ buttonObj.dataBind();
16994
+ }
16995
+ var nextButton = this.element.querySelector("." + CLS_NEXT_BUTTON);
16996
+ if (nextButton && isNullOrUndefined(this.nextButtonTemplate)) {
16997
+ var buttonObj = getInstance(nextButton, Button);
16998
+ buttonObj.disabled = !this.loop && index === this.slideItems.length - 1;
16999
+ buttonObj.dataBind();
17000
+ }
17001
+ };
17002
+ Carousel.prototype.onHoverActions = function (e) {
17003
+ var navigator = this.element.querySelector("." + CLS_NAVIGATORS);
17004
+ switch (e.type) {
17005
+ case 'mouseenter':
17006
+ if (this.buttonsVisibility === 'VisibleOnHover' && navigator) {
17007
+ removeClass([].slice.call(navigator.childNodes), CLS_HOVER_ARROWS);
17008
+ }
17009
+ addClass([this.element], CLS_HOVER);
17010
+ break;
17011
+ case 'mouseleave':
17012
+ if (this.buttonsVisibility === 'VisibleOnHover' && navigator) {
17013
+ addClass([].slice.call(navigator.childNodes), CLS_HOVER_ARROWS);
17014
+ }
17015
+ removeClass([this.element], CLS_HOVER);
17016
+ break;
17017
+ }
17018
+ this.autoSlide();
17019
+ };
17020
+ Carousel.prototype.onFocusActions = function (e) {
17021
+ switch (e.type) {
17022
+ case 'focusin':
17023
+ addClass([this.element], CLS_HOVER);
17024
+ break;
17025
+ case 'focusout':
17026
+ removeClass([this.element], CLS_HOVER);
17027
+ break;
17028
+ }
17029
+ this.autoSlide();
17030
+ };
17031
+ Carousel.prototype.destroyButtons = function () {
17032
+ var buttonCollections = [].slice.call(this.element.querySelectorAll('.e-control.e-btn'));
17033
+ for (var _i = 0, buttonCollections_1 = buttonCollections; _i < buttonCollections_1.length; _i++) {
17034
+ var button = buttonCollections_1[_i];
17035
+ var instance = getInstance(button, Button);
17036
+ if (instance) {
17037
+ instance.destroy();
17038
+ }
17039
+ }
17040
+ };
17041
+ Carousel.prototype.wireEvents = function () {
17042
+ EventHandler.add(this.element, 'focusin focusout', this.onFocusActions, this);
17043
+ EventHandler.add(this.element, 'mouseenter mouseleave', this.onHoverActions, this);
17044
+ EventHandler.add(this.element.firstElementChild, 'transitionend', this.onTransitionEnd, this);
17045
+ };
17046
+ Carousel.prototype.unWireEvents = function () {
17047
+ var _this = this;
17048
+ var indicators = [].slice.call(this.element.querySelectorAll("." + CLS_INDICATOR_BAR));
17049
+ indicators.forEach(function (indicator) {
17050
+ EventHandler.remove(indicator, 'click', _this.indicatorClickHandler);
17051
+ });
17052
+ var navigators = [].slice.call(this.element.querySelectorAll("." + CLS_PREVIOUS + ",." + CLS_NEXT));
17053
+ navigators.forEach(function (navigator) {
17054
+ EventHandler.remove(navigator, 'click', _this.navigatorClickHandler);
17055
+ });
17056
+ var playIcon = this.element.querySelector("." + CLS_PLAY_PAUSE);
17057
+ if (playIcon) {
17058
+ EventHandler.remove(playIcon, 'click', this.playButtonClickHandler);
17059
+ }
17060
+ EventHandler.remove(this.element.firstElementChild, 'transitionend', this.onTransitionEnd);
17061
+ EventHandler.clearEvents(this.element);
17062
+ };
17063
+ /**
17064
+ * Method to transit from the current slide to the previous slide.
17065
+ *
17066
+ * @returns {void}
17067
+ */
17068
+ Carousel.prototype.prev = function () {
17069
+ if (!this.loop && this.selectedIndex === 0) {
17070
+ return;
17071
+ }
17072
+ var index = (this.selectedIndex === 0) ? this.slideItems.length - 1 : this.selectedIndex - 1;
17073
+ this.setActiveSlide(index, 'Previous');
17074
+ this.autoSlide();
17075
+ };
17076
+ /**
17077
+ * Method to transit from the current slide to the next slide.
17078
+ *
17079
+ * @returns {void}
17080
+ */
17081
+ Carousel.prototype.next = function () {
17082
+ if (!this.loop && this.selectedIndex === this.slideItems.length - 1) {
17083
+ return;
17084
+ }
17085
+ var index = (this.selectedIndex === this.slideItems.length - 1) ? 0 : this.selectedIndex + 1;
17086
+ this.setActiveSlide(index, 'Next');
17087
+ this.autoSlide();
17088
+ };
17089
+ /**
17090
+ * Method to play the slides programmatically.
17091
+ *
17092
+ * @returns {void}
17093
+ */
17094
+ Carousel.prototype.play = function () {
17095
+ var playIcon = this.element.querySelector("." + CLS_PLAY_ICON);
17096
+ if (this.showPlayButton && playIcon) {
17097
+ classList(playIcon, [CLS_PAUSE_ICON], [CLS_PLAY_ICON]);
17098
+ var playButton = this.element.querySelector("." + CLS_PLAY_BUTTON);
17099
+ playButton.setAttribute('aria-label', this.localeObj.getConstant('pauseSlideTransition'));
17100
+ }
17101
+ this.setProperties({ autoPlay: true }, true);
17102
+ var itemsContainer = this.element.querySelector("." + CLS_ITEMS$2);
17103
+ itemsContainer.setAttribute('aria-live', 'off');
17104
+ this.applySlideInterval();
17105
+ };
17106
+ /**
17107
+ * Method to pause the slides programmatically.
17108
+ *
17109
+ * @returns {void}
17110
+ */
17111
+ Carousel.prototype.pause = function () {
17112
+ var pauseIcon = this.element.querySelector("." + CLS_PAUSE_ICON);
17113
+ if (this.showPlayButton && pauseIcon) {
17114
+ var playButton = this.element.querySelector("." + CLS_PLAY_BUTTON);
17115
+ playButton.setAttribute('aria-label', this.localeObj.getConstant('playSlideTransition'));
17116
+ classList(pauseIcon, [CLS_PLAY_ICON], [CLS_PAUSE_ICON]);
17117
+ }
17118
+ this.setProperties({ autoPlay: false }, true);
17119
+ var itemsContainer = this.element.querySelector("." + CLS_ITEMS$2);
17120
+ itemsContainer.setAttribute('aria-live', 'off');
17121
+ this.resetSlideInterval();
17122
+ };
17123
+ /**
17124
+ * Method to render react and angular templates
17125
+ *
17126
+ * @returns {void}
17127
+ * @private
17128
+ */
17129
+ Carousel.prototype.renderTemplates = function () {
17130
+ if (this.isAngular || this.isReact) {
17131
+ this.renderReactTemplates();
17132
+ }
17133
+ };
17134
+ /**
17135
+ * Method to reset react and angular templates
17136
+ *
17137
+ * @param {string[]} templates Accepts the template ID
17138
+ * @returns {void}
17139
+ * @private
17140
+ */
17141
+ Carousel.prototype.resetTemplates = function (templates) {
17142
+ if (this.isAngular || this.isReact) {
17143
+ this.clearTemplate(templates);
17144
+ }
17145
+ };
17146
+ /**
17147
+ * Method for destroy the carousel component.
17148
+ *
17149
+ * @returns {void}
17150
+ */
17151
+ Carousel.prototype.destroy = function () {
17152
+ var _this = this;
17153
+ this.resetTemplates();
17154
+ if (this.touchModule) {
17155
+ this.touchModule.destroy();
17156
+ this.touchModule = null;
17157
+ }
17158
+ this.keyModule.destroy();
17159
+ this.keyModule = null;
17160
+ this.resetSlideInterval();
17161
+ this.destroyButtons();
17162
+ this.unWireEvents();
17163
+ [].slice.call(this.element.children).forEach(function (ele) { _this.element.removeChild(ele); });
17164
+ removeClass([this.element], [CLS_CAROUSEL, this.cssClass, CLS_RTL$5]);
17165
+ ['tabindex', 'role', 'style'].forEach(function (attr) { _this.element.removeAttribute(attr); });
17166
+ _super.prototype.destroy.call(this);
17167
+ };
17168
+ __decorate$11([
17169
+ Collection([], CarouselItem)
17170
+ ], Carousel.prototype, "items", void 0);
17171
+ __decorate$11([
17172
+ Complex({}, CarouselAnimationSettings)
17173
+ ], Carousel.prototype, "animation", void 0);
17174
+ __decorate$11([
17175
+ Property()
17176
+ ], Carousel.prototype, "previousButtonTemplate", void 0);
17177
+ __decorate$11([
17178
+ Property()
17179
+ ], Carousel.prototype, "nextButtonTemplate", void 0);
17180
+ __decorate$11([
17181
+ Property()
17182
+ ], Carousel.prototype, "indicatorsTemplate", void 0);
17183
+ __decorate$11([
17184
+ Property()
17185
+ ], Carousel.prototype, "playButtonTemplate", void 0);
17186
+ __decorate$11([
17187
+ Property()
17188
+ ], Carousel.prototype, "cssClass", void 0);
17189
+ __decorate$11([
17190
+ Property([])
17191
+ ], Carousel.prototype, "dataSource", void 0);
17192
+ __decorate$11([
17193
+ Property()
17194
+ ], Carousel.prototype, "itemTemplate", void 0);
17195
+ __decorate$11([
17196
+ Property(0)
17197
+ ], Carousel.prototype, "selectedIndex", void 0);
17198
+ __decorate$11([
17199
+ Property('100%')
17200
+ ], Carousel.prototype, "width", void 0);
17201
+ __decorate$11([
17202
+ Property('100%')
17203
+ ], Carousel.prototype, "height", void 0);
17204
+ __decorate$11([
17205
+ Property(5000)
17206
+ ], Carousel.prototype, "interval", void 0);
17207
+ __decorate$11([
17208
+ Property(true)
17209
+ ], Carousel.prototype, "autoPlay", void 0);
17210
+ __decorate$11([
17211
+ Property(true)
17212
+ ], Carousel.prototype, "loop", void 0);
17213
+ __decorate$11([
17214
+ Property(false)
17215
+ ], Carousel.prototype, "showPlayButton", void 0);
17216
+ __decorate$11([
17217
+ Property(true)
17218
+ ], Carousel.prototype, "enableTouchSwipe", void 0);
17219
+ __decorate$11([
17220
+ Property(true)
17221
+ ], Carousel.prototype, "showIndicators", void 0);
17222
+ __decorate$11([
17223
+ Property('Visible')
17224
+ ], Carousel.prototype, "buttonsVisibility", void 0);
17225
+ __decorate$11([
17226
+ Property()
17227
+ ], Carousel.prototype, "htmlAttributes", void 0);
17228
+ __decorate$11([
17229
+ Event()
17230
+ ], Carousel.prototype, "slideChanging", void 0);
17231
+ __decorate$11([
17232
+ Event()
17233
+ ], Carousel.prototype, "slideChanged", void 0);
17234
+ Carousel = __decorate$11([
17235
+ NotifyPropertyChanges
17236
+ ], Carousel);
17237
+ return Carousel;
17238
+ }(Component));
17239
+
17240
+ /** Carousel export modules */
17241
+
16169
17242
  /**
16170
17243
  * Navigation all modules
16171
17244
  */
16172
17245
 
16173
- export { MenuAnimationSettings, MenuItem, HScroll, VScroll, addScrolling, destroyScroll, Item, Toolbar, AccordionActionSettings, AccordionAnimationSettings, AccordionItem, Accordion, ContextMenu, Menu, TabActionSettings, TabAnimationSettings, Header, TabItem, Tab, FieldsSettings, ActionSettings, NodeAnimationSettings, TreeView, Sidebar, BreadcrumbItem, Breadcrumb };
17246
+ export { MenuAnimationSettings, MenuItem, HScroll, VScroll, addScrolling, destroyScroll, Item, Toolbar, AccordionActionSettings, AccordionAnimationSettings, AccordionItem, Accordion, ContextMenu, Menu, TabActionSettings, TabAnimationSettings, Header, TabItem, Tab, FieldsSettings, ActionSettings, NodeAnimationSettings, TreeView, Sidebar, BreadcrumbItem, Breadcrumb, CarouselItem, CarouselAnimationSettings, Carousel };
16174
17247
  //# sourceMappingURL=ej2-navigations.es5.js.map