@syncfusion/ej2-navigations 22.2.7 → 22.2.8-184993

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 +84 -0
  2. package/README.md +1 -1
  3. package/dist/ej2-navigations.min.js +1 -10
  4. package/dist/ej2-navigations.umd.min.js +1 -10
  5. package/dist/ej2-navigations.umd.min.js.map +1 -1
  6. package/dist/es6/ej2-navigations.es2015.js +183 -95
  7. package/dist/es6/ej2-navigations.es2015.js.map +1 -1
  8. package/dist/es6/ej2-navigations.es5.js +185 -93
  9. package/dist/es6/ej2-navigations.es5.js.map +1 -1
  10. package/dist/global/ej2-navigations.min.js +1 -10
  11. package/dist/global/ej2-navigations.min.js.map +1 -1
  12. package/dist/global/index.d.ts +0 -9
  13. package/package.json +165 -165
  14. package/src/accordion/accordion-model.d.ts +1 -1
  15. package/src/accordion/accordion.d.ts +3 -2
  16. package/src/accordion/accordion.js +34 -31
  17. package/src/appbar/appbar.js +1 -0
  18. package/src/breadcrumb/breadcrumb-model.d.ts +1 -1
  19. package/src/breadcrumb/breadcrumb.js +10 -2
  20. package/src/carousel/carousel.d.ts +1 -0
  21. package/src/carousel/carousel.js +12 -2
  22. package/src/common/menu-base.js +21 -10
  23. package/src/menu/menu-model.d.ts +1 -1
  24. package/src/sidebar/sidebar.js +2 -2
  25. package/src/tab/tab-model.d.ts +10 -2
  26. package/src/tab/tab.d.ts +10 -0
  27. package/src/tab/tab.js +26 -15
  28. package/src/toolbar/toolbar-model.d.ts +2 -0
  29. package/src/toolbar/toolbar.d.ts +3 -0
  30. package/src/toolbar/toolbar.js +63 -29
  31. package/src/treeview/treeview-model.d.ts +2 -2
  32. package/src/treeview/treeview.d.ts +2 -2
  33. package/src/treeview/treeview.js +19 -5
  34. package/styles/accordion/_theme.scss +1 -0
  35. package/styles/accordion/bootstrap-dark.scss +1 -1
  36. package/styles/accordion/bootstrap.scss +1 -1
  37. package/styles/accordion/bootstrap4.scss +1 -1
  38. package/styles/accordion/bootstrap5-dark.scss +1 -1
  39. package/styles/accordion/bootstrap5.scss +1 -1
  40. package/styles/accordion/fabric-dark.scss +1 -1
  41. package/styles/accordion/fabric.scss +1 -1
  42. package/styles/accordion/fluent-dark.scss +1 -1
  43. package/styles/accordion/fluent.scss +1 -1
  44. package/styles/accordion/highcontrast-light.scss +1 -1
  45. package/styles/accordion/highcontrast.scss +1 -1
  46. package/styles/accordion/material-dark.css +0 -1
  47. package/styles/accordion/material-dark.scss +1 -1
  48. package/styles/accordion/material.css +0 -1
  49. package/styles/accordion/material.scss +1 -1
  50. package/styles/accordion/material3-dark.css +0 -1
  51. package/styles/accordion/material3-dark.scss +1 -1
  52. package/styles/accordion/material3.css +0 -1
  53. package/styles/accordion/material3.scss +1 -1
  54. package/styles/accordion/tailwind-dark.css +0 -1
  55. package/styles/accordion/tailwind-dark.scss +1 -1
  56. package/styles/accordion/tailwind.css +0 -1
  57. package/styles/accordion/tailwind.scss +1 -1
  58. package/styles/appbar/bootstrap-dark.scss +1 -1
  59. package/styles/appbar/bootstrap.scss +1 -1
  60. package/styles/appbar/bootstrap4.scss +1 -1
  61. package/styles/appbar/bootstrap5-dark.scss +1 -1
  62. package/styles/appbar/bootstrap5.scss +1 -1
  63. package/styles/appbar/fabric-dark.scss +1 -1
  64. package/styles/appbar/fabric.scss +1 -1
  65. package/styles/appbar/fluent-dark.scss +1 -1
  66. package/styles/appbar/fluent.scss +1 -1
  67. package/styles/appbar/highcontrast-light.scss +1 -1
  68. package/styles/appbar/highcontrast.scss +1 -1
  69. package/styles/appbar/material-dark.css +0 -1
  70. package/styles/appbar/material-dark.scss +1 -1
  71. package/styles/appbar/material.css +0 -1
  72. package/styles/appbar/material.scss +1 -1
  73. package/styles/appbar/material3-dark.css +0 -1
  74. package/styles/appbar/material3-dark.scss +1 -1
  75. package/styles/appbar/material3.css +0 -1
  76. package/styles/appbar/material3.scss +1 -1
  77. package/styles/appbar/tailwind-dark.css +0 -1
  78. package/styles/appbar/tailwind-dark.scss +1 -1
  79. package/styles/appbar/tailwind.css +0 -1
  80. package/styles/appbar/tailwind.scss +1 -1
  81. package/styles/bootstrap-dark.css +14 -9
  82. package/styles/bootstrap.css +14 -9
  83. package/styles/bootstrap4.css +22 -14
  84. package/styles/bootstrap5-dark.css +18 -13
  85. package/styles/bootstrap5.css +18 -13
  86. package/styles/breadcrumb/bootstrap-dark.scss +1 -1
  87. package/styles/breadcrumb/bootstrap.scss +1 -1
  88. package/styles/breadcrumb/bootstrap4.scss +1 -1
  89. package/styles/breadcrumb/bootstrap5-dark.scss +1 -1
  90. package/styles/breadcrumb/bootstrap5.scss +1 -1
  91. package/styles/breadcrumb/fabric-dark.scss +1 -1
  92. package/styles/breadcrumb/fabric.scss +1 -1
  93. package/styles/breadcrumb/fluent-dark.scss +1 -1
  94. package/styles/breadcrumb/fluent.scss +1 -1
  95. package/styles/breadcrumb/highcontrast-light.scss +1 -1
  96. package/styles/breadcrumb/highcontrast.scss +1 -1
  97. package/styles/breadcrumb/material-dark.css +0 -1
  98. package/styles/breadcrumb/material-dark.scss +1 -1
  99. package/styles/breadcrumb/material.css +0 -1
  100. package/styles/breadcrumb/material.scss +1 -1
  101. package/styles/breadcrumb/material3-dark.css +0 -1
  102. package/styles/breadcrumb/material3-dark.scss +1 -1
  103. package/styles/breadcrumb/material3.css +0 -1
  104. package/styles/breadcrumb/material3.scss +1 -1
  105. package/styles/breadcrumb/tailwind-dark.css +0 -1
  106. package/styles/breadcrumb/tailwind-dark.scss +1 -1
  107. package/styles/breadcrumb/tailwind.css +0 -1
  108. package/styles/breadcrumb/tailwind.scss +1 -1
  109. package/styles/carousel/bootstrap-dark.scss +1 -1
  110. package/styles/carousel/bootstrap.scss +1 -1
  111. package/styles/carousel/bootstrap4.scss +1 -1
  112. package/styles/carousel/bootstrap5-dark.scss +1 -1
  113. package/styles/carousel/bootstrap5.scss +1 -1
  114. package/styles/carousel/fabric-dark.scss +1 -1
  115. package/styles/carousel/fabric.scss +1 -1
  116. package/styles/carousel/fluent-dark.scss +1 -1
  117. package/styles/carousel/fluent.scss +1 -1
  118. package/styles/carousel/highcontrast-light.scss +1 -1
  119. package/styles/carousel/highcontrast.scss +1 -1
  120. package/styles/carousel/material-dark.css +0 -1
  121. package/styles/carousel/material-dark.scss +1 -1
  122. package/styles/carousel/material.css +0 -1
  123. package/styles/carousel/material.scss +1 -1
  124. package/styles/carousel/material3-dark.css +0 -1
  125. package/styles/carousel/material3-dark.scss +1 -1
  126. package/styles/carousel/material3.css +0 -1
  127. package/styles/carousel/material3.scss +1 -1
  128. package/styles/carousel/tailwind-dark.css +0 -1
  129. package/styles/carousel/tailwind-dark.scss +1 -1
  130. package/styles/carousel/tailwind.css +0 -1
  131. package/styles/carousel/tailwind.scss +1 -1
  132. package/styles/context-menu/bootstrap-dark.scss +1 -1
  133. package/styles/context-menu/bootstrap.scss +1 -1
  134. package/styles/context-menu/bootstrap4.scss +1 -1
  135. package/styles/context-menu/bootstrap5-dark.scss +1 -1
  136. package/styles/context-menu/bootstrap5.scss +1 -1
  137. package/styles/context-menu/fabric-dark.scss +1 -1
  138. package/styles/context-menu/fabric.scss +1 -1
  139. package/styles/context-menu/fluent-dark.scss +1 -1
  140. package/styles/context-menu/fluent.scss +1 -1
  141. package/styles/context-menu/highcontrast-light.scss +1 -1
  142. package/styles/context-menu/highcontrast.scss +1 -1
  143. package/styles/context-menu/material-dark.css +0 -1
  144. package/styles/context-menu/material-dark.scss +1 -1
  145. package/styles/context-menu/material.css +0 -1
  146. package/styles/context-menu/material.scss +1 -1
  147. package/styles/context-menu/material3-dark.css +0 -1
  148. package/styles/context-menu/material3-dark.scss +1 -1
  149. package/styles/context-menu/material3.css +0 -1
  150. package/styles/context-menu/material3.scss +1 -1
  151. package/styles/context-menu/tailwind-dark.css +0 -1
  152. package/styles/context-menu/tailwind-dark.scss +1 -1
  153. package/styles/context-menu/tailwind.css +0 -1
  154. package/styles/context-menu/tailwind.scss +1 -1
  155. package/styles/fabric-dark.css +14 -9
  156. package/styles/fabric.css +14 -9
  157. package/styles/fluent-dark.css +14 -9
  158. package/styles/fluent.css +14 -9
  159. package/styles/h-scroll/bootstrap-dark.scss +1 -1
  160. package/styles/h-scroll/bootstrap.scss +1 -1
  161. package/styles/h-scroll/bootstrap4.scss +1 -1
  162. package/styles/h-scroll/bootstrap5-dark.scss +1 -1
  163. package/styles/h-scroll/bootstrap5.scss +1 -1
  164. package/styles/h-scroll/fabric-dark.scss +1 -1
  165. package/styles/h-scroll/fabric.scss +1 -1
  166. package/styles/h-scroll/fluent-dark.scss +1 -1
  167. package/styles/h-scroll/fluent.scss +1 -1
  168. package/styles/h-scroll/highcontrast-light.scss +1 -1
  169. package/styles/h-scroll/highcontrast.scss +1 -1
  170. package/styles/h-scroll/material-dark.css +0 -1
  171. package/styles/h-scroll/material-dark.scss +1 -1
  172. package/styles/h-scroll/material.css +0 -1
  173. package/styles/h-scroll/material.scss +1 -1
  174. package/styles/h-scroll/material3-dark.css +0 -1
  175. package/styles/h-scroll/material3-dark.scss +1 -1
  176. package/styles/h-scroll/material3.css +0 -1
  177. package/styles/h-scroll/material3.scss +1 -1
  178. package/styles/h-scroll/tailwind-dark.css +0 -1
  179. package/styles/h-scroll/tailwind-dark.scss +1 -1
  180. package/styles/h-scroll/tailwind.css +0 -1
  181. package/styles/h-scroll/tailwind.scss +1 -1
  182. package/styles/highcontrast-light.css +14 -9
  183. package/styles/highcontrast.css +14 -9
  184. package/styles/material-dark.css +14 -10
  185. package/styles/material.css +14 -10
  186. package/styles/material3-dark.css +16 -12
  187. package/styles/material3-dark.scss +1 -1
  188. package/styles/material3.css +16 -12
  189. package/styles/material3.scss +1 -1
  190. package/styles/menu/_theme.scss +8 -3
  191. package/styles/menu/bootstrap-dark.css +14 -9
  192. package/styles/menu/bootstrap-dark.scss +1 -1
  193. package/styles/menu/bootstrap.css +14 -9
  194. package/styles/menu/bootstrap.scss +1 -1
  195. package/styles/menu/bootstrap4.css +22 -14
  196. package/styles/menu/bootstrap4.scss +1 -1
  197. package/styles/menu/bootstrap5-dark.css +14 -9
  198. package/styles/menu/bootstrap5-dark.scss +1 -1
  199. package/styles/menu/bootstrap5.css +14 -9
  200. package/styles/menu/bootstrap5.scss +1 -1
  201. package/styles/menu/fabric-dark.css +14 -9
  202. package/styles/menu/fabric-dark.scss +1 -1
  203. package/styles/menu/fabric.css +14 -9
  204. package/styles/menu/fabric.scss +1 -1
  205. package/styles/menu/fluent-dark.css +14 -9
  206. package/styles/menu/fluent-dark.scss +1 -1
  207. package/styles/menu/fluent.css +14 -9
  208. package/styles/menu/fluent.scss +1 -1
  209. package/styles/menu/highcontrast-light.css +14 -9
  210. package/styles/menu/highcontrast-light.scss +1 -1
  211. package/styles/menu/highcontrast.css +14 -9
  212. package/styles/menu/highcontrast.scss +1 -1
  213. package/styles/menu/material-dark.css +14 -10
  214. package/styles/menu/material-dark.scss +1 -1
  215. package/styles/menu/material.css +14 -10
  216. package/styles/menu/material.scss +1 -1
  217. package/styles/menu/material3-dark.css +14 -10
  218. package/styles/menu/material3-dark.scss +1 -1
  219. package/styles/menu/material3.css +14 -10
  220. package/styles/menu/material3.scss +1 -1
  221. package/styles/menu/tailwind-dark.css +14 -10
  222. package/styles/menu/tailwind-dark.scss +1 -1
  223. package/styles/menu/tailwind.css +14 -10
  224. package/styles/menu/tailwind.scss +1 -1
  225. package/styles/pager/bootstrap-dark.scss +1 -1
  226. package/styles/pager/bootstrap.scss +1 -1
  227. package/styles/pager/bootstrap4.scss +1 -1
  228. package/styles/pager/bootstrap5-dark.scss +1 -1
  229. package/styles/pager/bootstrap5.scss +1 -1
  230. package/styles/pager/fabric-dark.scss +1 -1
  231. package/styles/pager/fabric.scss +1 -1
  232. package/styles/pager/fluent-dark.scss +1 -1
  233. package/styles/pager/fluent.scss +1 -1
  234. package/styles/pager/highcontrast-light.scss +1 -1
  235. package/styles/pager/highcontrast.scss +1 -1
  236. package/styles/pager/material-dark.css +0 -1
  237. package/styles/pager/material-dark.scss +1 -1
  238. package/styles/pager/material.css +0 -1
  239. package/styles/pager/material.scss +1 -1
  240. package/styles/pager/material3-dark.css +0 -1
  241. package/styles/pager/material3-dark.scss +1 -1
  242. package/styles/pager/material3.css +0 -1
  243. package/styles/pager/material3.scss +1 -1
  244. package/styles/pager/tailwind-dark.css +0 -1
  245. package/styles/pager/tailwind-dark.scss +1 -1
  246. package/styles/pager/tailwind.css +0 -1
  247. package/styles/pager/tailwind.scss +1 -1
  248. package/styles/sidebar/bootstrap-dark.scss +1 -1
  249. package/styles/sidebar/bootstrap.scss +1 -1
  250. package/styles/sidebar/bootstrap4.scss +1 -1
  251. package/styles/sidebar/bootstrap5-dark.scss +1 -1
  252. package/styles/sidebar/bootstrap5.scss +1 -1
  253. package/styles/sidebar/fabric-dark.scss +1 -1
  254. package/styles/sidebar/fabric.scss +1 -1
  255. package/styles/sidebar/fluent-dark.scss +1 -1
  256. package/styles/sidebar/fluent.scss +1 -1
  257. package/styles/sidebar/highcontrast-light.scss +1 -1
  258. package/styles/sidebar/highcontrast.scss +1 -1
  259. package/styles/sidebar/material-dark.css +0 -1
  260. package/styles/sidebar/material-dark.scss +1 -1
  261. package/styles/sidebar/material.css +0 -1
  262. package/styles/sidebar/material.scss +1 -1
  263. package/styles/sidebar/material3-dark.css +0 -1
  264. package/styles/sidebar/material3-dark.scss +1 -1
  265. package/styles/sidebar/material3.css +0 -1
  266. package/styles/sidebar/material3.scss +1 -1
  267. package/styles/sidebar/tailwind-dark.css +0 -1
  268. package/styles/sidebar/tailwind-dark.scss +1 -1
  269. package/styles/sidebar/tailwind.css +0 -1
  270. package/styles/sidebar/tailwind.scss +1 -1
  271. package/styles/tab/_tailwind-definition.scss +2 -2
  272. package/styles/tab/bootstrap-dark.scss +1 -1
  273. package/styles/tab/bootstrap.scss +1 -1
  274. package/styles/tab/bootstrap4.scss +1 -1
  275. package/styles/tab/bootstrap5-dark.scss +1 -1
  276. package/styles/tab/bootstrap5.scss +1 -1
  277. package/styles/tab/fabric-dark.scss +1 -1
  278. package/styles/tab/fabric.scss +1 -1
  279. package/styles/tab/fluent-dark.scss +1 -1
  280. package/styles/tab/fluent.scss +1 -1
  281. package/styles/tab/highcontrast-light.scss +1 -1
  282. package/styles/tab/highcontrast.scss +1 -1
  283. package/styles/tab/material-dark.css +0 -1
  284. package/styles/tab/material-dark.scss +1 -1
  285. package/styles/tab/material.css +0 -1
  286. package/styles/tab/material.scss +1 -1
  287. package/styles/tab/material3-dark.css +0 -1
  288. package/styles/tab/material3-dark.scss +1 -1
  289. package/styles/tab/material3.css +0 -1
  290. package/styles/tab/material3.scss +1 -1
  291. package/styles/tab/tailwind-dark.css +2 -3
  292. package/styles/tab/tailwind-dark.scss +1 -1
  293. package/styles/tab/tailwind.css +2 -3
  294. package/styles/tab/tailwind.scss +1 -1
  295. package/styles/tailwind-dark.css +18 -26
  296. package/styles/tailwind.css +18 -26
  297. package/styles/toolbar/_bootstrap5-definition.scss +4 -4
  298. package/styles/toolbar/_material3-definition.scss +1 -1
  299. package/styles/toolbar/_tailwind-definition.scss +2 -2
  300. package/styles/toolbar/bootstrap-dark.scss +1 -1
  301. package/styles/toolbar/bootstrap.scss +1 -1
  302. package/styles/toolbar/bootstrap4.scss +1 -1
  303. package/styles/toolbar/bootstrap5-dark.css +4 -4
  304. package/styles/toolbar/bootstrap5-dark.scss +1 -1
  305. package/styles/toolbar/bootstrap5.css +4 -4
  306. package/styles/toolbar/bootstrap5.scss +1 -1
  307. package/styles/toolbar/fabric-dark.scss +1 -1
  308. package/styles/toolbar/fabric.scss +1 -1
  309. package/styles/toolbar/fluent-dark.scss +1 -1
  310. package/styles/toolbar/fluent.scss +1 -1
  311. package/styles/toolbar/highcontrast-light.scss +1 -1
  312. package/styles/toolbar/highcontrast.scss +1 -1
  313. package/styles/toolbar/material-dark.css +0 -1
  314. package/styles/toolbar/material-dark.scss +1 -1
  315. package/styles/toolbar/material.css +0 -1
  316. package/styles/toolbar/material.scss +1 -1
  317. package/styles/toolbar/material3-dark.css +1 -2
  318. package/styles/toolbar/material3-dark.scss +1 -1
  319. package/styles/toolbar/material3.css +1 -2
  320. package/styles/toolbar/material3.scss +1 -1
  321. package/styles/toolbar/tailwind-dark.css +2 -3
  322. package/styles/toolbar/tailwind-dark.scss +1 -1
  323. package/styles/toolbar/tailwind.css +2 -3
  324. package/styles/toolbar/tailwind.scss +1 -1
  325. package/styles/treeview/_layout.scss +4 -1
  326. package/styles/treeview/bootstrap-dark.scss +1 -1
  327. package/styles/treeview/bootstrap.scss +1 -1
  328. package/styles/treeview/bootstrap4.scss +1 -1
  329. package/styles/treeview/bootstrap5-dark.scss +1 -1
  330. package/styles/treeview/bootstrap5.scss +1 -1
  331. package/styles/treeview/fabric-dark.scss +1 -1
  332. package/styles/treeview/fabric.scss +1 -1
  333. package/styles/treeview/fluent-dark.scss +1 -1
  334. package/styles/treeview/fluent.scss +1 -1
  335. package/styles/treeview/highcontrast-light.scss +1 -1
  336. package/styles/treeview/highcontrast.scss +1 -1
  337. package/styles/treeview/material-dark.css +0 -1
  338. package/styles/treeview/material-dark.scss +1 -1
  339. package/styles/treeview/material.css +0 -1
  340. package/styles/treeview/material.scss +1 -1
  341. package/styles/treeview/material3-dark.css +1 -2
  342. package/styles/treeview/material3-dark.scss +1 -1
  343. package/styles/treeview/material3.css +1 -2
  344. package/styles/treeview/material3.scss +1 -1
  345. package/styles/treeview/tailwind-dark.css +0 -1
  346. package/styles/treeview/tailwind-dark.scss +1 -1
  347. package/styles/treeview/tailwind.css +0 -1
  348. package/styles/treeview/tailwind.scss +1 -1
  349. package/styles/v-scroll/bootstrap-dark.scss +1 -1
  350. package/styles/v-scroll/bootstrap.scss +1 -1
  351. package/styles/v-scroll/bootstrap4.scss +1 -1
  352. package/styles/v-scroll/bootstrap5-dark.scss +1 -1
  353. package/styles/v-scroll/bootstrap5.scss +1 -1
  354. package/styles/v-scroll/fabric-dark.scss +1 -1
  355. package/styles/v-scroll/fabric.scss +1 -1
  356. package/styles/v-scroll/fluent-dark.scss +1 -1
  357. package/styles/v-scroll/fluent.scss +1 -1
  358. package/styles/v-scroll/highcontrast-light.scss +1 -1
  359. package/styles/v-scroll/highcontrast.scss +1 -1
  360. package/styles/v-scroll/material-dark.css +0 -1
  361. package/styles/v-scroll/material-dark.scss +1 -1
  362. package/styles/v-scroll/material.css +0 -1
  363. package/styles/v-scroll/material.scss +1 -1
  364. package/styles/v-scroll/material3-dark.css +0 -1
  365. package/styles/v-scroll/material3-dark.scss +1 -1
  366. package/styles/v-scroll/material3.css +0 -1
  367. package/styles/v-scroll/material3.scss +1 -1
  368. package/styles/v-scroll/tailwind-dark.css +0 -1
  369. package/styles/v-scroll/tailwind-dark.scss +1 -1
  370. package/styles/v-scroll/tailwind.css +0 -1
  371. package/styles/v-scroll/tailwind.scss +1 -1
@@ -1,4 +1,4 @@
1
- import { Animation, Browser, ChildProperty, Collection, Complex, Component, Draggable, Droppable, Event, EventHandler, KeyboardEvents, L10n, NotifyPropertyChanges, Property, SanitizeHtmlHelper, Touch, addClass, append, attributes, classList, closest, compile, createElement, detach, extend, formatUnit, getElement, getInstance, getRandomId, getUniqueID, getValue, isBlazor, isNullOrUndefined, isRippleEnabled, isUndefined, isVisible, matches, merge, remove, removeClass, rippleEffect, select, selectAll, setStyleAttribute, setValue } from '@syncfusion/ej2-base';
1
+ import { Animation, Browser, ChildProperty, Collection, Complex, Component, Draggable, Droppable, Event, EventHandler, KeyboardEvents, L10n, NotifyPropertyChanges, Property, SanitizeHtmlHelper, Touch, addClass, animationMode, append, attributes, classList, closest, compile, createElement, detach, extend, formatUnit, getElement, getInstance, getRandomId, getUniqueID, getValue, initializeCSPTemplate, isBlazor, isNullOrUndefined, isRippleEnabled, isUndefined, isVisible, matches, merge, remove, removeClass, rippleEffect, select, selectAll, setStyleAttribute, setValue } from '@syncfusion/ej2-base';
2
2
  import { ListBase } from '@syncfusion/ej2-lists';
3
3
  import { Popup, calculatePosition, createSpinner, fit, getScrollableParent, getZindexPartial, hideSpinner, isCollide, showSpinner } from '@syncfusion/ej2-popups';
4
4
  import { Button, createCheckBox, rippleMouseHandler } from '@syncfusion/ej2-buttons';
@@ -1284,9 +1284,9 @@ let MenuBase = class MenuBase extends Component {
1284
1284
  }
1285
1285
  this.targetElement = target;
1286
1286
  if (!this.isMenu) {
1287
- EventHandler.add(this.targetElement, 'scroll', this.scrollHandler, this);
1287
+ EventHandler.add(this.targetElement, 'mousewheel DOMMouseScroll', this.scrollHandler, this);
1288
1288
  for (const parent of getScrollableParent(this.targetElement)) {
1289
- EventHandler.add(parent, 'scroll', this.scrollHandler, this);
1289
+ EventHandler.add(parent, 'mousewheel DOMMouseScroll', this.scrollHandler, this);
1290
1290
  }
1291
1291
  }
1292
1292
  }
@@ -1462,7 +1462,7 @@ let MenuBase = class MenuBase extends Component {
1462
1462
  const popups = [];
1463
1463
  const allPopup = selectAll('.' + POPUP);
1464
1464
  allPopup.forEach((elem) => {
1465
- if (this.element.id === elem.id.split('-')[2] || elem.id.split('-')[2] + "-" + elem.id.split('-')[3]) {
1465
+ if (this.element.id === elem.id.split('-')[2] || elem.id.split('-')[2] + '-' + elem.id.split('-')[3]) {
1466
1466
  popups.push(elem);
1467
1467
  }
1468
1468
  });
@@ -1626,7 +1626,7 @@ let MenuBase = class MenuBase extends Component {
1626
1626
  this.afterCloseMenu(e);
1627
1627
  }
1628
1628
  else if (isOpen && !this.hamburgerMode && closedLi && !trgtLi && this.keyType !== 'left' && (this.navIdx.length || !this.isMenu && this.navIdx.length === 0)) {
1629
- let ele = (e && e.target.classList.contains('e-vscroll'))
1629
+ let ele = (e && (e.target.classList.contains('e-vscroll') || e.target.classList.contains('e-scroll-nav')))
1630
1630
  ? closest(e.target, '.e-menu-wrapper') : null;
1631
1631
  if (ele) {
1632
1632
  ele = ele.querySelector('.e-menu-item');
@@ -1635,7 +1635,9 @@ let MenuBase = class MenuBase extends Component {
1635
1635
  }
1636
1636
  }
1637
1637
  else {
1638
- this.closeMenu(this.navIdx[this.navIdx.length - 1], e);
1638
+ if (!(e && e.target.classList.contains('e-nav-arrow'))) {
1639
+ this.closeMenu(this.navIdx[this.navIdx.length - 1], e);
1640
+ }
1639
1641
  }
1640
1642
  }
1641
1643
  else if (isOpen && !isIterated && !ulIndex && ((this.hamburgerMode && this.navIdx.length) ||
@@ -1821,9 +1823,9 @@ let MenuBase = class MenuBase extends Component {
1821
1823
  if (isNullOrUndefined(e)) {
1822
1824
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1823
1825
  const ev = document.createEvent('MouseEvents');
1824
- ev.initEvent("click", true, false);
1826
+ ev.initEvent('click', true, false);
1825
1827
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1826
- let targetEvent = this.copyObject(ev, {});
1828
+ const targetEvent = this.copyObject(ev, {});
1827
1829
  targetEvent.target = targetEvent.srcElement = target;
1828
1830
  targetEvent.currentTarget = target;
1829
1831
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -1834,6 +1836,7 @@ let MenuBase = class MenuBase extends Component {
1834
1836
  }
1835
1837
  }
1836
1838
  }
1839
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1837
1840
  copyObject(source, destination) {
1838
1841
  for (const prop in source) {
1839
1842
  destination[`${prop}`] = source[`${prop}`];
@@ -2391,6 +2394,9 @@ let MenuBase = class MenuBase extends Component {
2391
2394
  if (!cli.classList.contains(SEPARATOR)) {
2392
2395
  this.showSubMenu = true;
2393
2396
  const cul = cli.parentNode;
2397
+ if (isNullOrUndefined(cul)) {
2398
+ return;
2399
+ }
2394
2400
  this.cliIdx = this.getIdx(cul, cli);
2395
2401
  if (this.isMenu || !Browser.isDevice) {
2396
2402
  const culIdx = this.isMenu ? Array.prototype.indexOf.call([wrapper].concat(this.getPopups()), closest(cul, '.' + 'e-' + this.getModuleName() + '-wrapper'))
@@ -2624,7 +2630,12 @@ let MenuBase = class MenuBase extends Component {
2624
2630
  }
2625
2631
  break;
2626
2632
  case 'enableRtl':
2627
- wrapper.classList.toggle(RTL);
2633
+ if (this.enableRtl) {
2634
+ wrapper.classList.add(RTL);
2635
+ }
2636
+ else {
2637
+ wrapper.classList.remove(RTL);
2638
+ }
2628
2639
  break;
2629
2640
  case 'showItemOnClick':
2630
2641
  this.unWireEvents();
@@ -2783,9 +2794,9 @@ let MenuBase = class MenuBase extends Component {
2783
2794
  }
2784
2795
  }
2785
2796
  if (!this.isMenu) {
2786
- EventHandler.remove(this.targetElement, 'scroll', this.scrollHandler);
2797
+ EventHandler.remove(this.targetElement, 'mousewheel DOMMouseScroll', this.scrollHandler);
2787
2798
  for (const parent of getScrollableParent(this.targetElement)) {
2788
- EventHandler.remove(parent, 'scroll', this.scrollHandler);
2799
+ EventHandler.remove(parent, 'mousewheel DOMMouseScroll', this.scrollHandler);
2789
2800
  }
2790
2801
  }
2791
2802
  }
@@ -3050,11 +3061,11 @@ let MenuBase = class MenuBase extends Component {
3050
3061
  index = navIdx.pop();
3051
3062
  ul = this.getUlByNavIdx(navIdx.length);
3052
3063
  if (ul) {
3053
- let validUl = isUniqueId ? ul.children[index].id : ul.children[index].textContent;
3064
+ const validUl = isUniqueId ? ul.children[index].id : ul.children[index].textContent;
3054
3065
  if (ishide && validUl === items[i]) {
3055
3066
  ul.children[index].classList.add(HIDE);
3056
3067
  }
3057
- else {
3068
+ else if (!ishide && validUl === items[i]) {
3058
3069
  ul.children[index].classList.remove(HIDE);
3059
3070
  }
3060
3071
  }
@@ -3924,6 +3935,11 @@ let Toolbar = class Toolbar extends Component {
3924
3935
  this.renderControl();
3925
3936
  this.wireEvents();
3926
3937
  this.renderComplete();
3938
+ if (this.isReact && this.portals && this.portals.length > 0) {
3939
+ this.renderReactTemplates(() => {
3940
+ this.refreshOverflow();
3941
+ });
3942
+ }
3927
3943
  }
3928
3944
  initialize() {
3929
3945
  const width = formatUnit(this.width);
@@ -5038,7 +5054,7 @@ let Toolbar = class Toolbar extends Component {
5038
5054
  this.tbarAlgEle[(this.items[parseInt(eleIdx.toString(), 10)].align + 's').toLowerCase()].splice(parseInt(indexAgn.toString(), 10), 1);
5039
5055
  }
5040
5056
  if (this.isReact) {
5041
- this.clearTemplate();
5057
+ this.clearToolbarTemplate(innerItems[parseInt(index.toString(), 10)]);
5042
5058
  }
5043
5059
  const btnItem = innerItems[parseInt(index.toString(), 10)].querySelector('.e-control.e-btn');
5044
5060
  if (!isNullOrUndefined(btnItem) && !isNullOrUndefined(btnItem.ej2_instances[0]) && !(btnItem.ej2_instances[0].isDestroyed)) {
@@ -5087,7 +5103,7 @@ let Toolbar = class Toolbar extends Component {
5087
5103
  let tempArray;
5088
5104
  if (!isNullOrUndefined(templateFn)) {
5089
5105
  const toolbarTemplateID = this.element.id + index + '_template';
5090
- tempArray = templateFn({}, this, 'template', toolbarTemplateID, this.isStringTemplate);
5106
+ tempArray = templateFn({}, this, 'template', toolbarTemplateID, this.isStringTemplate, undefined, undefined, this.root);
5091
5107
  }
5092
5108
  if (!isNullOrUndefined(tempArray) && tempArray.length > 0) {
5093
5109
  [].slice.call(tempArray).forEach((ele) => {
@@ -5155,7 +5171,8 @@ let Toolbar = class Toolbar extends Component {
5155
5171
  let dom;
5156
5172
  const innerEle = this.createElement('div', { className: CLS_ITEM });
5157
5173
  const tempDom = this.createElement('div', {
5158
- innerHTML: this.enableHtmlSanitizer ? SanitizeHtmlHelper.sanitize(item.tooltipText) : item.tooltipText
5174
+ innerHTML: this.enableHtmlSanitizer && !isNullOrUndefined(item.tooltipText) ?
5175
+ SanitizeHtmlHelper.sanitize(item.tooltipText) : item.tooltipText
5159
5176
  });
5160
5177
  if (!this.tbarEle) {
5161
5178
  this.tbarEle = [];
@@ -5233,7 +5250,12 @@ let Toolbar = class Toolbar extends Component {
5233
5250
  }
5234
5251
  activeEleRemove(curEle) {
5235
5252
  if (!isNullOrUndefined(this.activeEle)) {
5236
- this.activeEle.setAttribute('tabindex', this.getDataTabindex(this.activeEle));
5253
+ if (!curEle.parentElement.classList.contains(CLS_TEMPLATE)) {
5254
+ this.activeEle.setAttribute('tabindex', this.getDataTabindex(this.activeEle));
5255
+ }
5256
+ else {
5257
+ this.activeEle.removeAttribute('tabindex');
5258
+ }
5237
5259
  }
5238
5260
  this.activeEle = curEle;
5239
5261
  if (this.getDataTabindex(this.activeEle) === '-1') {
@@ -5350,6 +5372,30 @@ let Toolbar = class Toolbar extends Component {
5350
5372
  nextEle = innerItems[++eleIndex];
5351
5373
  }
5352
5374
  }
5375
+ clearToolbarTemplate(templateEle) {
5376
+ if (this.registeredTemplate && this.registeredTemplate[`${'template'}`]) {
5377
+ const registeredTemplates = this.registeredTemplate;
5378
+ for (let index = 0; index < registeredTemplates[`${'template'}`].length; index++) {
5379
+ const registeredItem = registeredTemplates[`${'template'}`][parseInt(index.toString(), 10)].rootNodes[0];
5380
+ const closestItem = closest(registeredItem, '.' + CLS_ITEM);
5381
+ if (!isNullOrUndefined(closestItem) && closestItem === templateEle) {
5382
+ this.clearTemplate(['template'], [registeredTemplates[`${'template'}`][parseInt(index.toString(), 10)]]);
5383
+ break;
5384
+ }
5385
+ }
5386
+ }
5387
+ else if (this.portals && this.portals.length > 0) {
5388
+ const portals = this.portals;
5389
+ for (let index = 0; index < portals.length; index++) {
5390
+ const portalItem = portals[parseInt(index.toString(), 10)];
5391
+ const closestItem = closest(portalItem.containerInfo, '.' + CLS_ITEM);
5392
+ if (!isNullOrUndefined(closestItem) && closestItem === templateEle) {
5393
+ this.clearTemplate(['template'], index);
5394
+ break;
5395
+ }
5396
+ }
5397
+ }
5398
+ }
5353
5399
  /**
5354
5400
  * Gets called when the model property changes.The data that describes the old and new values of the property that changed.
5355
5401
  *
@@ -5371,31 +5417,29 @@ let Toolbar = class Toolbar extends Component {
5371
5417
  const index = parseInt(Object.keys(newProp.items)[parseInt(i.toString(), 10)], 10);
5372
5418
  const property = Object.keys(newProp.items[parseInt(index.toString(), 10)])[0];
5373
5419
  const newProperty = Object(newProp.items[parseInt(index.toString(), 10)])[`${property}`];
5374
- if (typeof newProperty !== 'function') {
5375
- if (this.tbarAlign || property === 'align') {
5376
- this.refresh();
5377
- this.trigger('created');
5378
- break;
5379
- }
5380
- const popupPriCheck = property === 'showAlwaysInPopup' && !newProperty;
5381
- const booleanCheck = property === 'overflow' && this.popupPriCount !== 0;
5382
- if ((popupPriCheck) || (this.items[parseInt(index.toString(), 10)].showAlwaysInPopup) && booleanCheck) {
5383
- --this.popupPriCount;
5384
- }
5385
- if (isNullOrUndefined(this.scrollModule)) {
5386
- this.destroyMode();
5387
- }
5388
- const itemCol = [].slice.call(selectAll('.' + CLS_ITEMS + ' .' + CLS_ITEM, tEle));
5389
- if (this.isReact && this.items[parseInt(index.toString(), 10)].template) {
5390
- this.clearTemplate();
5391
- }
5392
- detach(itemCol[parseInt(index.toString(), 10)]);
5393
- this.tbarEle.splice(index, 1);
5394
- this.addItems([this.items[parseInt(index.toString(), 10)]], index);
5395
- this.items.splice(index, 1);
5396
- if (this.items[parseInt(index.toString(), 10)].template) {
5397
- this.tbarEle.splice(this.items.length, 1);
5398
- }
5420
+ if (this.tbarAlign || property === 'align') {
5421
+ this.refresh();
5422
+ this.trigger('created');
5423
+ break;
5424
+ }
5425
+ const popupPriCheck = property === 'showAlwaysInPopup' && !newProperty;
5426
+ const booleanCheck = property === 'overflow' && this.popupPriCount !== 0;
5427
+ if ((popupPriCheck) || (this.items[parseInt(index.toString(), 10)].showAlwaysInPopup) && booleanCheck) {
5428
+ --this.popupPriCount;
5429
+ }
5430
+ if (isNullOrUndefined(this.scrollModule)) {
5431
+ this.destroyMode();
5432
+ }
5433
+ const itemCol = [].slice.call(selectAll('.' + CLS_ITEMS + ' .' + CLS_ITEM, tEle));
5434
+ if (this.isReact && this.items[parseInt(index.toString(), 10)].template) {
5435
+ this.clearToolbarTemplate(itemCol[parseInt(index.toString(), 10)]);
5436
+ }
5437
+ detach(itemCol[parseInt(index.toString(), 10)]);
5438
+ this.tbarEle.splice(index, 1);
5439
+ this.addItems([this.items[parseInt(index.toString(), 10)]], index);
5440
+ this.items.splice(index, 1);
5441
+ if (this.items[parseInt(index.toString(), 10)].template) {
5442
+ this.tbarEle.splice(this.items.length, 1);
5399
5443
  }
5400
5444
  }
5401
5445
  }
@@ -5688,7 +5732,7 @@ let Accordion = class Accordion extends Component {
5688
5732
  }
5689
5733
  const ele = this.element;
5690
5734
  super.destroy();
5691
- this.unwireEvents();
5735
+ this.unWireEvents();
5692
5736
  this.isDestroy = true;
5693
5737
  this.restoreContent(null);
5694
5738
  [].slice.call(ele.children).forEach((el) => {
@@ -5775,7 +5819,7 @@ let Accordion = class Accordion extends Component {
5775
5819
  }
5776
5820
  }
5777
5821
  }
5778
- unwireEvents() {
5822
+ unWireEvents() {
5779
5823
  EventHandler.remove(this.element, 'click', this.clickHandler);
5780
5824
  if (!isNullOrUndefined(this.keyModule)) {
5781
5825
  this.keyModule.destroy();
@@ -6091,7 +6135,7 @@ let Accordion = class Accordion extends Component {
6091
6135
  const ctnEle = this.headerEleGenerate();
6092
6136
  const hdrEle = this.createElement('div', { className: CLS_HEADERCTN });
6093
6137
  ctnEle.appendChild(hdrEle);
6094
- ctnEle.appendChild(this.fetchElement(hdrEle, item.header, index, true));
6138
+ ctnEle.appendChild(this.fetchElement(hdrEle, item.header, index));
6095
6139
  innerEle.appendChild(ctnEle);
6096
6140
  }
6097
6141
  let hdr = select('.' + CLS_HEADER, innerEle);
@@ -6153,8 +6197,7 @@ let Accordion = class Accordion extends Component {
6153
6197
  return true;
6154
6198
  }
6155
6199
  }
6156
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
6157
- fetchElement(ele, value, index, isHeader) {
6200
+ fetchElement(ele, value, index) {
6158
6201
  let templateFn;
6159
6202
  let temString;
6160
6203
  try {
@@ -6172,9 +6215,11 @@ let Accordion = class Accordion extends Component {
6172
6215
  if (typeof (value) === 'string') {
6173
6216
  ele.innerHTML = SanitizeHtmlHelper.sanitize(value);
6174
6217
  }
6175
- else if (!isNullOrUndefined(this.trgtEle) && (value instanceof (HTMLElement))) {
6218
+ else if (value instanceof (HTMLElement)) {
6176
6219
  ele.appendChild(value);
6177
- ele.firstElementChild.style.display = '';
6220
+ if (this.trgtEle) {
6221
+ ele.firstElementChild.style.display = '';
6222
+ }
6178
6223
  }
6179
6224
  else {
6180
6225
  templateFn = compile(value);
@@ -6238,7 +6283,7 @@ let Accordion = class Accordion extends Component {
6238
6283
  this.items[parseInt(index.toString(), 10)].content =
6239
6284
  SanitizeHtmlHelper.sanitize(this.items[parseInt(index.toString(), 10)].content);
6240
6285
  }
6241
- itemcnt.appendChild(this.fetchElement(ctn, this.items[parseInt(index.toString(), 10)].content, index, false));
6286
+ itemcnt.appendChild(this.fetchElement(ctn, this.items[parseInt(index.toString(), 10)].content, index));
6242
6287
  }
6243
6288
  return itemcnt;
6244
6289
  }
@@ -6271,7 +6316,7 @@ let Accordion = class Accordion extends Component {
6271
6316
  expandState.classList.remove(CLS_EXPANDSTATE);
6272
6317
  }
6273
6318
  trgtItemEle.classList.add(CLS_EXPANDSTATE);
6274
- if ((animation.name === 'None')) {
6319
+ if ((animation.name === 'None' && animationMode !== 'Enable') || (animationMode === 'Disable')) {
6275
6320
  this.expandProgress('begin', icon, trgt, trgtItemEle, expandArgs);
6276
6321
  this.expandProgress('end', icon, trgt, trgtItemEle, expandArgs);
6277
6322
  }
@@ -6282,6 +6327,10 @@ let Accordion = class Accordion extends Component {
6282
6327
  });
6283
6328
  }
6284
6329
  expandAnimation(ef, icn, trgt, trgtItemEle, animate, args) {
6330
+ if (ef === 'None' && animationMode === 'Enable') {
6331
+ ef = 'SlideDown';
6332
+ animate.name = 'SlideDown';
6333
+ }
6285
6334
  let height;
6286
6335
  this.lastActiveItemId = trgtItemEle.id;
6287
6336
  if (ef === 'SlideDown') {
@@ -6375,7 +6424,7 @@ let Accordion = class Accordion extends Component {
6375
6424
  this.expandedItemsPop(trgtItemEle);
6376
6425
  trgtItemEle.classList.remove(CLS_EXPANDSTATE);
6377
6426
  icon.classList.add(CLS_TOGANIMATE);
6378
- if ((animation.name === 'None')) {
6427
+ if ((animation.name === 'None' && animationMode !== 'Enable') || (animationMode === 'Disable')) {
6379
6428
  this.collapseProgress('begin', icon, trgt, trgtItemEle, expandArgs);
6380
6429
  this.collapseProgress('end', icon, trgt, trgtItemEle, expandArgs);
6381
6430
  }
@@ -6386,6 +6435,10 @@ let Accordion = class Accordion extends Component {
6386
6435
  });
6387
6436
  }
6388
6437
  collapseAnimation(ef, trgt, trgtItEl, icn, animate, args) {
6438
+ if (ef === 'None' && animationMode === 'Enable') {
6439
+ ef = 'SlideUp';
6440
+ animate.name = 'SlideUp';
6441
+ }
6389
6442
  let height;
6390
6443
  let trgtHeight;
6391
6444
  let itemHeight;
@@ -6485,7 +6538,7 @@ let Accordion = class Accordion extends Component {
6485
6538
  EventHandler.add(innerItemEle.querySelector('.' + CLS_HEADER), 'focus', this.focusIn, this);
6486
6539
  EventHandler.add(innerItemEle.querySelector('.' + CLS_HEADER), 'blur', this.focusOut, this);
6487
6540
  this.expandedIndices = [];
6488
- this.expandedItemRefresh(ele);
6541
+ this.expandedItemRefresh();
6489
6542
  if (addItem && addItem.expanded) {
6490
6543
  this.expandItem(true, itemIndex);
6491
6544
  }
@@ -6495,8 +6548,7 @@ let Accordion = class Accordion extends Component {
6495
6548
  this.renderReactTemplates();
6496
6549
  }
6497
6550
  }
6498
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
6499
- expandedItemRefresh(ele) {
6551
+ expandedItemRefresh() {
6500
6552
  const itemEle = this.getItemElements();
6501
6553
  [].slice.call(itemEle).forEach((el) => {
6502
6554
  if (el.classList.contains(CLS_SLCTED)) {
@@ -6511,8 +6563,12 @@ let Accordion = class Accordion extends Component {
6511
6563
  * @returns {void}.
6512
6564
  */
6513
6565
  removeItem(index) {
6514
- if (this.isReact) {
6515
- this.clearTemplate(['headerTemplate', 'itemTemplate'], index);
6566
+ if (this.isReact || this.isAngular) {
6567
+ const item = selectAll('.' + CLS_ITEM$1, this.element)[parseInt(index.toString(), 10)];
6568
+ const header = select('.' + CLS_HEADERCTN, item);
6569
+ const content = select('.' + CLS_CTENT, item);
6570
+ this.clearAccordionTemplate(header, this.dataSource.length > 0 ? 'headerTemplate' : 'header', CLS_HEADERCTN);
6571
+ this.clearAccordionTemplate(content, this.dataSource.length > 0 ? 'itemTemplate' : 'content', CLS_CTENT);
6516
6572
  }
6517
6573
  const itemEle = this.getItemElements();
6518
6574
  const ele = itemEle[parseInt(index.toString(), 10)];
@@ -6524,7 +6580,7 @@ let Accordion = class Accordion extends Component {
6524
6580
  detach(ele);
6525
6581
  items.splice(index, 1);
6526
6582
  this.expandedIndices = [];
6527
- this.expandedItemRefresh(this.element);
6583
+ this.expandedItemRefresh();
6528
6584
  }
6529
6585
  /**
6530
6586
  * Sets focus to the specified index item header in Accordion.
@@ -6700,28 +6756,18 @@ let Accordion = class Accordion extends Component {
6700
6756
  }
6701
6757
  }
6702
6758
  setTemplate(template, toElement, index) {
6703
- toElement.innerHTML = '';
6704
- this.templateCompile(toElement, template, index);
6759
+ this.fetchElement(toElement, template, index);
6705
6760
  if (this.isReact) {
6706
6761
  this.renderReactTemplates();
6707
6762
  }
6708
6763
  }
6709
- templateCompile(ele, cnt, index) {
6710
- const tempEle = this.createElement('div');
6711
- this.fetchElement(tempEle, cnt, index, false);
6712
- if (tempEle.childNodes.length !== 0) {
6713
- [].slice.call(tempEle.childNodes).forEach((childEle) => {
6714
- ele.appendChild(childEle);
6715
- });
6716
- }
6717
- }
6718
6764
  clearAccordionTemplate(templateEle, templateName, className) {
6719
6765
  if (this.registeredTemplate && this.registeredTemplate[`${templateName}`]) {
6720
6766
  const registeredTemplates = this.registeredTemplate;
6721
6767
  for (let index = 0; index < registeredTemplates[`${templateName}`].length; index++) {
6722
6768
  const registeredItem = registeredTemplates[`${templateName}`][parseInt(index.toString(), 10)].rootNodes[0];
6723
- const closestItem = closest(registeredItem.containerInfo, '.' + className);
6724
- if (!isNullOrUndefined(closestItem) && closestItem === templateEle) {
6769
+ const closestItem = closest(registeredItem, '.' + className);
6770
+ if (!isNullOrUndefined(closestItem) && closestItem === templateEle || isNullOrUndefined(registeredItem.parentNode)) {
6725
6771
  this.clearTemplate([templateName], [registeredTemplates[`${templateName}`][parseInt(index.toString(), 10)]]);
6726
6772
  break;
6727
6773
  }
@@ -6790,7 +6836,8 @@ let Accordion = class Accordion extends Component {
6790
6836
  if (property[parseInt(k.toString(), 10)] === 'disabled' && !isNullOrUndefined(item)) {
6791
6837
  this.enableItem(index, !newVal);
6792
6838
  }
6793
- if (property[parseInt(k.toString(), 10)] === 'content' && !isNullOrUndefined(item) && item.children.length === 2) {
6839
+ if (property.indexOf('header') < 0 && property[parseInt(k.toString(), 10)] === 'content'
6840
+ && !isNullOrUndefined(item) && item.children.length === 2) {
6794
6841
  if (typeof newVal === 'function') {
6795
6842
  if (this.isAngular || this.isReact) {
6796
6843
  this.clearAccordionTemplate(content, property[parseInt(k.toString(), 10)], CLS_CTENT);
@@ -7570,6 +7617,14 @@ let Tab = class Tab extends Component {
7570
7617
  this.renderContainer();
7571
7618
  this.wireEvents();
7572
7619
  this.initRender = false;
7620
+ if (this.isReact && this.portals && this.portals.length > 0) {
7621
+ this.renderReactTemplates(() => {
7622
+ if (!isNullOrUndefined(this.tbObj)) {
7623
+ this.tbObj.refreshOverflow();
7624
+ }
7625
+ this.refreshActiveBorder();
7626
+ });
7627
+ }
7573
7628
  }
7574
7629
  renderContainer() {
7575
7630
  const ele = this.element;
@@ -7780,10 +7835,7 @@ let Tab = class Tab extends Component {
7780
7835
  tCont.appendChild(this.btnCls.cloneNode(true));
7781
7836
  const wrap = this.createElement('div', { className: CLS_WRAP, attrs: wrapAttrs });
7782
7837
  wrap.appendChild(tCont);
7783
- if (this.itemIndexArray === []) {
7784
- this.itemIndexArray.push(CLS_ITEM$2 + this.tabId + '_' + this.lastIndex);
7785
- }
7786
- else {
7838
+ if (this.itemIndexArray instanceof Array) {
7787
7839
  this.itemIndexArray.splice((index + i), 0, CLS_ITEM$2 + this.tabId + '_' + this.lastIndex);
7788
7840
  }
7789
7841
  const attrObj = {
@@ -7939,10 +7991,9 @@ let Tab = class Tab extends Component {
7939
7991
  if (!isNullOrUndefined(newCnt)) {
7940
7992
  this.prevActiveEle = newCnt.id;
7941
7993
  }
7942
- const isPrevent = isNullOrUndefined(this.animation) || this.animation.next === {} || this.animation.previous === {}
7943
- || isNullOrUndefined(this.animation.next.effect) || isNullOrUndefined(this.animation.previous.effect)
7944
- || this.animation.previous.effect == 'None' || this.animation.next.effect == 'None';
7945
- if (this.initRender || value === false || this.animation === {} || isPrevent) {
7994
+ const isPrevent = isNullOrUndefined(this.animation) || isNullOrUndefined(this.animation.next.effect) || isNullOrUndefined(this.animation.previous.effect)
7995
+ || this.animation.previous.effect === 'None' || this.animation.next.effect === 'None';
7996
+ if (this.initRender || value === false || isPrevent) {
7946
7997
  if (oldCnt && oldCnt !== newCnt) {
7947
7998
  oldCnt.classList.remove(CLS_ACTIVE$1);
7948
7999
  }
@@ -7954,7 +8005,7 @@ let Tab = class Tab extends Component {
7954
8005
  const openEff = this.animation.previous.effect;
7955
8006
  animateObj = {
7956
8007
  name: ((openEff === 'None') ? '' : ((openEff !== 'SlideLeftIn') ? openEff : 'SlideLeftIn')),
7957
- duration: this.animation.previous.duration,
8008
+ duration: (this.animation.previous.duration === 0 && animationMode === 'Enable') ? 600 : this.animation.previous.duration,
7958
8009
  timingFunction: this.animation.previous.easing
7959
8010
  };
7960
8011
  }
@@ -7962,7 +8013,7 @@ let Tab = class Tab extends Component {
7962
8013
  const clsEff = this.animation.next.effect;
7963
8014
  animateObj = {
7964
8015
  name: ((clsEff === 'None') ? '' : ((clsEff !== 'SlideRightIn') ? clsEff : 'SlideRightIn')),
7965
- duration: this.animation.next.duration,
8016
+ duration: (this.animation.next.duration === 0 && animationMode === 'Enable') ? 600 : this.animation.next.duration,
7966
8017
  timingFunction: this.animation.next.easing
7967
8018
  };
7968
8019
  }
@@ -8071,7 +8122,7 @@ let Tab = class Tab extends Component {
8071
8122
  }
8072
8123
  getContent(ele, cnt, callType, index) {
8073
8124
  let eleStr;
8074
- cnt = isNullOrUndefined(cnt) ? "" : cnt;
8125
+ cnt = isNullOrUndefined(cnt) ? '' : cnt;
8075
8126
  if (typeof cnt === 'string' || isNullOrUndefined(cnt.innerHTML)) {
8076
8127
  if (typeof cnt === 'string' && this.enableHtmlSanitizer) {
8077
8128
  cnt = SanitizeHtmlHelper.sanitize(cnt);
@@ -8420,7 +8471,7 @@ let Tab = class Tab extends Component {
8420
8471
  }
8421
8472
  showPopup(config) {
8422
8473
  const tbPop = select('.e-popup.e-toolbar-pop', this.hdrEle);
8423
- if (tbPop.classList.contains('e-popup-close')) {
8474
+ if (tbPop && tbPop.classList.contains('e-popup-close')) {
8424
8475
  const tbPopObj = (tbPop && tbPop.ej2_instances[0]);
8425
8476
  tbPopObj.position.X = (this.headerPlacement === 'Left') ? 'left' : 'right';
8426
8477
  tbPopObj.dataBind();
@@ -8734,6 +8785,9 @@ let Tab = class Tab extends Component {
8734
8785
  }
8735
8786
  }
8736
8787
  clearTabTemplate(templateEle, templateName, className) {
8788
+ if (!this.clearTemplates) {
8789
+ return;
8790
+ }
8737
8791
  if (this.registeredTemplate && this.registeredTemplate[templateName]) {
8738
8792
  const registeredTemplates = this.registeredTemplate;
8739
8793
  for (let index = 0; index < registeredTemplates[templateName].length; index++) {
@@ -8865,8 +8919,8 @@ let Tab = class Tab extends Component {
8865
8919
  clonedElement: this.cloneElement,
8866
8920
  cancel: false
8867
8921
  };
8868
- this.trigger('onDragStart', dragArgs, (tabitemDragArgs) => {
8869
- if (tabitemDragArgs.cancel) {
8922
+ this.trigger('onDragStart', dragArgs, (tabItemDragArgs) => {
8923
+ if (tabItemDragArgs.cancel) {
8870
8924
  const dragObj = e.element.ej2_instances[0];
8871
8925
  if (!isNullOrUndefined(dragObj)) {
8872
8926
  dragObj.intDestroy(e.event);
@@ -9626,6 +9680,9 @@ __decorate$7([
9626
9680
  __decorate$7([
9627
9681
  Property(false)
9628
9682
  ], Tab.prototype, "allowDragAndDrop", void 0);
9683
+ __decorate$7([
9684
+ Property(true)
9685
+ ], Tab.prototype, "clearTemplates", void 0);
9629
9686
  __decorate$7([
9630
9687
  Complex({}, TabAnimationSettings)
9631
9688
  ], Tab.prototype, "animation", void 0);
@@ -10494,6 +10551,9 @@ let TreeView = TreeView_1 = class TreeView extends Component {
10494
10551
  }
10495
10552
  }
10496
10553
  let eNodes = selectAll('.' + EXPANDED, element);
10554
+ if (!this.loadOnDemand && this.fields.dataSource instanceof DataManager) {
10555
+ this.isInitalExpand = this.treeData.filter(e => e[this.fields.expanded] == true).length > 0 ? true : this.isInitalExpand;
10556
+ }
10497
10557
  if (!this.isInitalExpand) {
10498
10558
  for (let i = 0; i < eNodes.length; i++) {
10499
10559
  this.renderChildNodes(eNodes[i]);
@@ -10998,6 +11058,9 @@ let TreeView = TreeView_1 = class TreeView extends Component {
10998
11058
  }
10999
11059
  doExpandAction() {
11000
11060
  let eUids = this.expandedNodes;
11061
+ if (!this.loadOnDemand && this.fields.dataSource instanceof DataManager) {
11062
+ this.isInitalExpand = this.treeData.filter(e => e[this.fields.expanded] == true).length > 0 ? true : this.isInitalExpand;
11063
+ }
11001
11064
  if (this.isInitalExpand && eUids.length > 0) {
11002
11065
  this.setProperties({ expandedNodes: [] }, true);
11003
11066
  /* eslint-disable */
@@ -11189,7 +11252,7 @@ let TreeView = TreeView_1 = class TreeView extends Component {
11189
11252
  if (this.isAnimate && !this.isRefreshed) {
11190
11253
  this.aniObj.animate(ul, {
11191
11254
  name: this.animation.expand.effect,
11192
- duration: this.animation.expand.duration,
11255
+ duration: (this.animation.expand.duration === 0 && animationMode === 'Enable') ? 400 : this.animation.expand.duration,
11193
11256
  timingFunction: this.animation.expand.easing,
11194
11257
  begin: (args) => {
11195
11258
  liEle.style.overflow = 'hidden';
@@ -11289,7 +11352,7 @@ let TreeView = TreeView_1 = class TreeView extends Component {
11289
11352
  if (this.isAnimate) {
11290
11353
  this.aniObj.animate(ul, {
11291
11354
  name: this.animation.collapse.effect,
11292
- duration: this.animation.collapse.duration,
11355
+ duration: (this.animation.collapse.duration === 0 && animationMode === 'Enable') ? 400 : this.animation.collapse.duration,
11293
11356
  timingFunction: this.animation.collapse.easing,
11294
11357
  begin: (args) => {
11295
11358
  liEle.style.overflow = 'hidden';
@@ -11435,6 +11498,9 @@ let TreeView = TreeView_1 = class TreeView extends Component {
11435
11498
  if (callback) {
11436
11499
  callback();
11437
11500
  }
11501
+ if (expandChild) {
11502
+ this.expandedNodes.push(parentLi.getAttribute('data-uid'));
11503
+ }
11438
11504
  if (this.treeList.length === 0 && !this.isLoaded) {
11439
11505
  this.finalize();
11440
11506
  }
@@ -12857,6 +12923,9 @@ let TreeView = TreeView_1 = class TreeView extends Component {
12857
12923
  else {
12858
12924
  this.dropAsChildNode(dragLi, dropLi, dragObj, null, e, offsetY, true);
12859
12925
  }
12926
+ if (this.showCheckBox) {
12927
+ this.ensureIndeterminate();
12928
+ }
12860
12929
  }
12861
12930
  dropAsSiblingNode(dragLi, dropLi, e, dragObj) {
12862
12931
  let dropUl = closest(dropLi, '.' + PARENTITEM);
@@ -14407,9 +14476,9 @@ let TreeView = TreeView_1 = class TreeView extends Component {
14407
14476
  }
14408
14477
  }
14409
14478
  else if (this.dataType == 2) {
14410
- parentsId = this.getHierarchicalParentId(node, this.treeData, parentsId).reverse();
14479
+ parentsId = this.getHierarchicalParentId(node, this.treeData, parentsId);
14411
14480
  }
14412
- this.expandAll(parentsId);
14481
+ this.expandAll(parentsId.reverse());
14413
14482
  let liEle = this.getElement(node);
14414
14483
  if (!isNullOrUndefined(liEle)) {
14415
14484
  if (typeof node == 'object') {
@@ -14967,7 +15036,7 @@ let Sidebar = class Sidebar extends Component {
14967
15036
  this.show();
14968
15037
  }
14969
15038
  else if (!this.isOpen) {
14970
- addClass([this.element], CLOSE);
15039
+ addClass([this.element], [CLOSE, DISABLEANIMATION]);
14971
15040
  }
14972
15041
  }
14973
15042
  checkType(val) {
@@ -15419,7 +15488,7 @@ let Sidebar = class Sidebar extends Component {
15419
15488
  }
15420
15489
  this.destroyBackDrop();
15421
15490
  if (this.element) {
15422
- removeClass([this.element], [OPEN, CLOSE, PUSH, SLIDE, OVER, LEFT, RIGHT, TRASITION]);
15491
+ removeClass([this.element], [OPEN, CLOSE, PUSH, SLIDE, OVER, LEFT, RIGHT, TRASITION, DISABLEANIMATION]);
15423
15492
  removeClass([this.element], SIDEBARABSOLUTE);
15424
15493
  this.element.style.width = '';
15425
15494
  this.element.style.zIndex = '';
@@ -15783,7 +15852,14 @@ let Breadcrumb = class Breadcrumb extends Component {
15783
15852
  if (i % 2) {
15784
15853
  // separator item
15785
15854
  wrapDiv = this.createElement('div', { className: 'e-breadcrumb-item-wrapper' });
15786
- listBaseOptions.template = this.separatorTemplate ? this.separatorTemplate : '/';
15855
+ if ((this.separatorTemplate && this.separatorTemplate === '/') || isNullOrUndefined(this.separatorTemplate)) {
15856
+ listBaseOptions.template = initializeCSPTemplate(function () {
15857
+ return '/';
15858
+ });
15859
+ }
15860
+ else {
15861
+ listBaseOptions.template = this.separatorTemplate;
15862
+ }
15787
15863
  listBaseOptions.itemClass = 'e-breadcrumb-separator';
15788
15864
  isSingleLevel = false;
15789
15865
  item = [{ previousItem: items[j], nextItem: items[j + 1] }];
@@ -15792,6 +15868,7 @@ let Breadcrumb = class Breadcrumb extends Component {
15792
15868
  // list item
15793
15869
  listBaseOptions.itemClass = '';
15794
15870
  if (this.itemTemplate) {
15871
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
15795
15872
  listBaseOptions.template = this.itemTemplate;
15796
15873
  isSingleLevel = false;
15797
15874
  }
@@ -16551,6 +16628,7 @@ let Carousel = class Carousel extends Component {
16551
16628
  }
16552
16629
  initialize() {
16553
16630
  const carouselClasses = [];
16631
+ carouselClasses.push(CLS_CAROUSEL);
16554
16632
  if (this.cssClass) {
16555
16633
  carouselClasses.push(this.cssClass);
16556
16634
  }
@@ -16565,7 +16643,7 @@ let Carousel = class Carousel extends Component {
16565
16643
  }
16566
16644
  addClass([this.element], carouselClasses);
16567
16645
  setStyleAttribute(this.element, { 'width': formatUnit(this.width), 'height': formatUnit(this.height) });
16568
- attributes(this.element, { 'tabindex': '0', 'aria-roledescription': 'carousel', 'aria-label': this.localeObj.getConstant('slideShow') });
16646
+ attributes(this.element, { 'tabindex': '0', 'role': 'group', 'aria-roledescription': 'carousel', 'aria-label': this.localeObj.getConstant('slideShow') });
16569
16647
  if (!isNullOrUndefined(this.htmlAttributes)) {
16570
16648
  this.setHtmlAttributes(this.htmlAttributes, this.element);
16571
16649
  }
@@ -16636,7 +16714,7 @@ let Carousel = class Carousel extends Component {
16636
16714
  className: `${CLS_ITEM$3} ${item.cssClass ? item.cssClass : ''} ${this.selectedIndex === index && !isClone ? CLS_ACTIVE$2 : ''}`,
16637
16715
  attrs: {
16638
16716
  'aria-hidden': this.selectedIndex === index && !isClone ? 'false' : 'true', 'data-index': index.toString(),
16639
- 'aria-role': 'group', 'aria-roledescription': 'slide'
16717
+ 'role': 'group', 'aria-roledescription': 'slide'
16640
16718
  }
16641
16719
  });
16642
16720
  if (isClone) {
@@ -17333,6 +17411,13 @@ let Carousel = class Carousel extends Component {
17333
17411
  EventHandler.add(this.itemsContainer, 'mouseup touchend', this.swipStop, this);
17334
17412
  }
17335
17413
  }
17414
+ resizeHandler() {
17415
+ if (this.itemsContainer && this.itemsContainer.firstElementChild) {
17416
+ const numOfItems = this.getNumOfItems();
17417
+ const slideWidth = this.itemsContainer.firstElementChild.clientWidth;
17418
+ this.itemsContainer.style.transform = this.getTranslateX(slideWidth, this.selectedIndex + numOfItems);
17419
+ }
17420
+ }
17336
17421
  wireEvents() {
17337
17422
  if (!(this.animationEffect === 'Custom')) {
17338
17423
  this.swipeModehandlers();
@@ -17341,6 +17426,7 @@ let Carousel = class Carousel extends Component {
17341
17426
  EventHandler.add(this.element, 'mouseenter mouseleave', this.onHoverActions, this);
17342
17427
  EventHandler.add(this.element.firstElementChild, 'animationend', this.onTransitionEnd, this);
17343
17428
  EventHandler.add(this.element.firstElementChild, 'transitionend', this.onTransitionEnd, this);
17429
+ EventHandler.add(window, 'resize', this.resizeHandler, this);
17344
17430
  }
17345
17431
  unWireEvents() {
17346
17432
  const indicators = [].slice.call(this.element.querySelectorAll(`.${CLS_INDICATOR_BAR}`));
@@ -17359,6 +17445,7 @@ let Carousel = class Carousel extends Component {
17359
17445
  EventHandler.remove(this.element.firstElementChild, 'transitionend', this.onTransitionEnd);
17360
17446
  EventHandler.clearEvents(this.element);
17361
17447
  EventHandler.clearEvents(this.itemsContainer);
17448
+ EventHandler.remove(window, 'resize', this.resizeHandler);
17362
17449
  }
17363
17450
  /**
17364
17451
  * Method to transit from the current slide to the previous slide.
@@ -17601,6 +17688,7 @@ let AppBar = class AppBar extends Component {
17601
17688
  // pre render code
17602
17689
  }
17603
17690
  render() {
17691
+ this.element.classList.add(CLS_APPBAR);
17604
17692
  if (this.element.tagName !== 'HEADER') {
17605
17693
  this.element.setAttribute('role', 'header');
17606
17694
  }