@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';
@@ -1359,10 +1359,10 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
1359
1359
  }
1360
1360
  this.targetElement = target;
1361
1361
  if (!this.isMenu) {
1362
- EventHandler.add(this.targetElement, 'scroll', this.scrollHandler, this);
1362
+ EventHandler.add(this.targetElement, 'mousewheel DOMMouseScroll', this.scrollHandler, this);
1363
1363
  for (var _i = 0, _a = getScrollableParent(this.targetElement); _i < _a.length; _i++) {
1364
1364
  var parent_1 = _a[_i];
1365
- EventHandler.add(parent_1, 'scroll', this.scrollHandler, this);
1365
+ EventHandler.add(parent_1, 'mousewheel DOMMouseScroll', this.scrollHandler, this);
1366
1366
  }
1367
1367
  }
1368
1368
  }
@@ -1540,7 +1540,7 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
1540
1540
  var popups_1 = [];
1541
1541
  var allPopup = selectAll('.' + POPUP);
1542
1542
  allPopup.forEach(function (elem) {
1543
- if (_this.element.id === elem.id.split('-')[2] || elem.id.split('-')[2] + "-" + elem.id.split('-')[3]) {
1543
+ if (_this.element.id === elem.id.split('-')[2] || elem.id.split('-')[2] + '-' + elem.id.split('-')[3]) {
1544
1544
  popups_1.push(elem);
1545
1545
  }
1546
1546
  });
@@ -1707,7 +1707,7 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
1707
1707
  _this.afterCloseMenu(e);
1708
1708
  }
1709
1709
  else if (isOpen && !_this.hamburgerMode && closedLi && !trgtLi && _this.keyType !== 'left' && (_this.navIdx.length || !_this.isMenu && _this.navIdx.length === 0)) {
1710
- var ele = (e && e.target.classList.contains('e-vscroll'))
1710
+ var ele = (e && (e.target.classList.contains('e-vscroll') || e.target.classList.contains('e-scroll-nav')))
1711
1711
  ? closest(e.target, '.e-menu-wrapper') : null;
1712
1712
  if (ele) {
1713
1713
  ele = ele.querySelector('.e-menu-item');
@@ -1716,7 +1716,9 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
1716
1716
  }
1717
1717
  }
1718
1718
  else {
1719
- _this.closeMenu(_this.navIdx[_this.navIdx.length - 1], e);
1719
+ if (!(e && e.target.classList.contains('e-nav-arrow'))) {
1720
+ _this.closeMenu(_this.navIdx[_this.navIdx.length - 1], e);
1721
+ }
1720
1722
  }
1721
1723
  }
1722
1724
  else if (isOpen && !isIterated && !ulIndex && ((_this.hamburgerMode && _this.navIdx.length) ||
@@ -1908,7 +1910,7 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
1908
1910
  if (isNullOrUndefined(e)) {
1909
1911
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1910
1912
  var ev = document.createEvent('MouseEvents');
1911
- ev.initEvent("click", true, false);
1913
+ ev.initEvent('click', true, false);
1912
1914
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1913
1915
  var targetEvent = this.copyObject(ev, {});
1914
1916
  targetEvent.target = targetEvent.srcElement = target;
@@ -1921,6 +1923,7 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
1921
1923
  }
1922
1924
  }
1923
1925
  };
1926
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1924
1927
  MenuBase.prototype.copyObject = function (source, destination) {
1925
1928
  for (var prop in source) {
1926
1929
  destination["" + prop] = source["" + prop];
@@ -2488,6 +2491,9 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
2488
2491
  if (!cli.classList.contains(SEPARATOR)) {
2489
2492
  this.showSubMenu = true;
2490
2493
  var cul = cli.parentNode;
2494
+ if (isNullOrUndefined(cul)) {
2495
+ return;
2496
+ }
2491
2497
  this.cliIdx = this.getIdx(cul, cli);
2492
2498
  if (this.isMenu || !Browser.isDevice) {
2493
2499
  var culIdx = this.isMenu ? Array.prototype.indexOf.call([wrapper].concat(this.getPopups()), closest(cul, '.' + 'e-' + this.getModuleName() + '-wrapper'))
@@ -2723,7 +2729,12 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
2723
2729
  }
2724
2730
  break;
2725
2731
  case 'enableRtl':
2726
- wrapper.classList.toggle(RTL);
2732
+ if (this_1.enableRtl) {
2733
+ wrapper.classList.add(RTL);
2734
+ }
2735
+ else {
2736
+ wrapper.classList.remove(RTL);
2737
+ }
2727
2738
  break;
2728
2739
  case 'showItemOnClick':
2729
2740
  this_1.unWireEvents();
@@ -2888,10 +2899,10 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
2888
2899
  }
2889
2900
  }
2890
2901
  if (!this.isMenu) {
2891
- EventHandler.remove(this.targetElement, 'scroll', this.scrollHandler);
2902
+ EventHandler.remove(this.targetElement, 'mousewheel DOMMouseScroll', this.scrollHandler);
2892
2903
  for (var _i = 0, _a = getScrollableParent(this.targetElement); _i < _a.length; _i++) {
2893
2904
  var parent_2 = _a[_i];
2894
- EventHandler.remove(parent_2, 'scroll', this.scrollHandler);
2905
+ EventHandler.remove(parent_2, 'mousewheel DOMMouseScroll', this.scrollHandler);
2895
2906
  }
2896
2907
  }
2897
2908
  }
@@ -3167,7 +3178,7 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
3167
3178
  if (ishide && validUl === items[i]) {
3168
3179
  ul.children[index].classList.add(HIDE);
3169
3180
  }
3170
- else {
3181
+ else if (!ishide && validUl === items[i]) {
3171
3182
  ul.children[index].classList.remove(HIDE);
3172
3183
  }
3173
3184
  }
@@ -4060,10 +4071,16 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
4060
4071
  * @returns {void}
4061
4072
  */
4062
4073
  Toolbar.prototype.render = function () {
4074
+ var _this = this;
4063
4075
  this.initialize();
4064
4076
  this.renderControl();
4065
4077
  this.wireEvents();
4066
4078
  this.renderComplete();
4079
+ if (this.isReact && this.portals && this.portals.length > 0) {
4080
+ this.renderReactTemplates(function () {
4081
+ _this.refreshOverflow();
4082
+ });
4083
+ }
4067
4084
  };
4068
4085
  Toolbar.prototype.initialize = function () {
4069
4086
  var width = formatUnit(this.width);
@@ -5191,7 +5208,7 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
5191
5208
  this.tbarAlgEle[(this.items[parseInt(eleIdx.toString(), 10)].align + 's').toLowerCase()].splice(parseInt(indexAgn.toString(), 10), 1);
5192
5209
  }
5193
5210
  if (this.isReact) {
5194
- this.clearTemplate();
5211
+ this.clearToolbarTemplate(innerItems[parseInt(index.toString(), 10)]);
5195
5212
  }
5196
5213
  var btnItem = innerItems[parseInt(index.toString(), 10)].querySelector('.e-control.e-btn');
5197
5214
  if (!isNullOrUndefined(btnItem) && !isNullOrUndefined(btnItem.ej2_instances[0]) && !(btnItem.ej2_instances[0].isDestroyed)) {
@@ -5240,7 +5257,7 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
5240
5257
  var tempArray = void 0;
5241
5258
  if (!isNullOrUndefined(templateFn)) {
5242
5259
  var toolbarTemplateID = this.element.id + index + '_template';
5243
- tempArray = templateFn({}, this, 'template', toolbarTemplateID, this.isStringTemplate);
5260
+ tempArray = templateFn({}, this, 'template', toolbarTemplateID, this.isStringTemplate, undefined, undefined, this.root);
5244
5261
  }
5245
5262
  if (!isNullOrUndefined(tempArray) && tempArray.length > 0) {
5246
5263
  [].slice.call(tempArray).forEach(function (ele) {
@@ -5308,7 +5325,8 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
5308
5325
  var dom;
5309
5326
  var innerEle = this.createElement('div', { className: CLS_ITEM });
5310
5327
  var tempDom = this.createElement('div', {
5311
- innerHTML: this.enableHtmlSanitizer ? SanitizeHtmlHelper.sanitize(item.tooltipText) : item.tooltipText
5328
+ innerHTML: this.enableHtmlSanitizer && !isNullOrUndefined(item.tooltipText) ?
5329
+ SanitizeHtmlHelper.sanitize(item.tooltipText) : item.tooltipText
5312
5330
  });
5313
5331
  if (!this.tbarEle) {
5314
5332
  this.tbarEle = [];
@@ -5386,7 +5404,12 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
5386
5404
  };
5387
5405
  Toolbar.prototype.activeEleRemove = function (curEle) {
5388
5406
  if (!isNullOrUndefined(this.activeEle)) {
5389
- this.activeEle.setAttribute('tabindex', this.getDataTabindex(this.activeEle));
5407
+ if (!curEle.parentElement.classList.contains(CLS_TEMPLATE)) {
5408
+ this.activeEle.setAttribute('tabindex', this.getDataTabindex(this.activeEle));
5409
+ }
5410
+ else {
5411
+ this.activeEle.removeAttribute('tabindex');
5412
+ }
5390
5413
  }
5391
5414
  this.activeEle = curEle;
5392
5415
  if (this.getDataTabindex(this.activeEle) === '-1') {
@@ -5504,6 +5527,30 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
5504
5527
  nextEle = innerItems[++eleIndex];
5505
5528
  }
5506
5529
  };
5530
+ Toolbar.prototype.clearToolbarTemplate = function (templateEle) {
5531
+ if (this.registeredTemplate && this.registeredTemplate["" + 'template']) {
5532
+ var registeredTemplates = this.registeredTemplate;
5533
+ for (var index = 0; index < registeredTemplates["" + 'template'].length; index++) {
5534
+ var registeredItem = registeredTemplates["" + 'template'][parseInt(index.toString(), 10)].rootNodes[0];
5535
+ var closestItem = closest(registeredItem, '.' + CLS_ITEM);
5536
+ if (!isNullOrUndefined(closestItem) && closestItem === templateEle) {
5537
+ this.clearTemplate(['template'], [registeredTemplates["" + 'template'][parseInt(index.toString(), 10)]]);
5538
+ break;
5539
+ }
5540
+ }
5541
+ }
5542
+ else if (this.portals && this.portals.length > 0) {
5543
+ var portals = this.portals;
5544
+ for (var index = 0; index < portals.length; index++) {
5545
+ var portalItem = portals[parseInt(index.toString(), 10)];
5546
+ var closestItem = closest(portalItem.containerInfo, '.' + CLS_ITEM);
5547
+ if (!isNullOrUndefined(closestItem) && closestItem === templateEle) {
5548
+ this.clearTemplate(['template'], index);
5549
+ break;
5550
+ }
5551
+ }
5552
+ }
5553
+ };
5507
5554
  /**
5508
5555
  * Gets called when the model property changes.The data that describes the old and new values of the property that changed.
5509
5556
  *
@@ -5526,31 +5573,29 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
5526
5573
  var index = parseInt(Object.keys(newProp.items)[parseInt(i.toString(), 10)], 10);
5527
5574
  var property = Object.keys(newProp.items[parseInt(index.toString(), 10)])[0];
5528
5575
  var newProperty = Object(newProp.items[parseInt(index.toString(), 10)])["" + property];
5529
- if (typeof newProperty !== 'function') {
5530
- if (this.tbarAlign || property === 'align') {
5531
- this.refresh();
5532
- this.trigger('created');
5533
- break;
5534
- }
5535
- var popupPriCheck = property === 'showAlwaysInPopup' && !newProperty;
5536
- var booleanCheck = property === 'overflow' && this.popupPriCount !== 0;
5537
- if ((popupPriCheck) || (this.items[parseInt(index.toString(), 10)].showAlwaysInPopup) && booleanCheck) {
5538
- --this.popupPriCount;
5539
- }
5540
- if (isNullOrUndefined(this.scrollModule)) {
5541
- this.destroyMode();
5542
- }
5543
- var itemCol = [].slice.call(selectAll('.' + CLS_ITEMS + ' .' + CLS_ITEM, tEle));
5544
- if (this.isReact && this.items[parseInt(index.toString(), 10)].template) {
5545
- this.clearTemplate();
5546
- }
5547
- detach(itemCol[parseInt(index.toString(), 10)]);
5548
- this.tbarEle.splice(index, 1);
5549
- this.addItems([this.items[parseInt(index.toString(), 10)]], index);
5550
- this.items.splice(index, 1);
5551
- if (this.items[parseInt(index.toString(), 10)].template) {
5552
- this.tbarEle.splice(this.items.length, 1);
5553
- }
5576
+ if (this.tbarAlign || property === 'align') {
5577
+ this.refresh();
5578
+ this.trigger('created');
5579
+ break;
5580
+ }
5581
+ var popupPriCheck = property === 'showAlwaysInPopup' && !newProperty;
5582
+ var booleanCheck = property === 'overflow' && this.popupPriCount !== 0;
5583
+ if ((popupPriCheck) || (this.items[parseInt(index.toString(), 10)].showAlwaysInPopup) && booleanCheck) {
5584
+ --this.popupPriCount;
5585
+ }
5586
+ if (isNullOrUndefined(this.scrollModule)) {
5587
+ this.destroyMode();
5588
+ }
5589
+ var itemCol = [].slice.call(selectAll('.' + CLS_ITEMS + ' .' + CLS_ITEM, tEle));
5590
+ if (this.isReact && this.items[parseInt(index.toString(), 10)].template) {
5591
+ this.clearToolbarTemplate(itemCol[parseInt(index.toString(), 10)]);
5592
+ }
5593
+ detach(itemCol[parseInt(index.toString(), 10)]);
5594
+ this.tbarEle.splice(index, 1);
5595
+ this.addItems([this.items[parseInt(index.toString(), 10)]], index);
5596
+ this.items.splice(index, 1);
5597
+ if (this.items[parseInt(index.toString(), 10)].template) {
5598
+ this.tbarEle.splice(this.items.length, 1);
5554
5599
  }
5555
5600
  }
5556
5601
  }
@@ -5874,7 +5919,7 @@ var Accordion = /** @__PURE__ @class */ (function (_super) {
5874
5919
  }
5875
5920
  var ele = this.element;
5876
5921
  _super.prototype.destroy.call(this);
5877
- this.unwireEvents();
5922
+ this.unWireEvents();
5878
5923
  this.isDestroy = true;
5879
5924
  this.restoreContent(null);
5880
5925
  [].slice.call(ele.children).forEach(function (el) {
@@ -5962,7 +6007,7 @@ var Accordion = /** @__PURE__ @class */ (function (_super) {
5962
6007
  }
5963
6008
  }
5964
6009
  };
5965
- Accordion.prototype.unwireEvents = function () {
6010
+ Accordion.prototype.unWireEvents = function () {
5966
6011
  EventHandler.remove(this.element, 'click', this.clickHandler);
5967
6012
  if (!isNullOrUndefined(this.keyModule)) {
5968
6013
  this.keyModule.destroy();
@@ -6281,7 +6326,7 @@ var Accordion = /** @__PURE__ @class */ (function (_super) {
6281
6326
  var ctnEle = this.headerEleGenerate();
6282
6327
  var hdrEle = this.createElement('div', { className: CLS_HEADERCTN });
6283
6328
  ctnEle.appendChild(hdrEle);
6284
- ctnEle.appendChild(this.fetchElement(hdrEle, item.header, index, true));
6329
+ ctnEle.appendChild(this.fetchElement(hdrEle, item.header, index));
6285
6330
  innerEle.appendChild(ctnEle);
6286
6331
  }
6287
6332
  var hdr = select('.' + CLS_HEADER, innerEle);
@@ -6343,8 +6388,7 @@ var Accordion = /** @__PURE__ @class */ (function (_super) {
6343
6388
  return true;
6344
6389
  }
6345
6390
  };
6346
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
6347
- Accordion.prototype.fetchElement = function (ele, value, index, isHeader) {
6391
+ Accordion.prototype.fetchElement = function (ele, value, index) {
6348
6392
  var templateFn;
6349
6393
  var temString;
6350
6394
  try {
@@ -6362,9 +6406,11 @@ var Accordion = /** @__PURE__ @class */ (function (_super) {
6362
6406
  if (typeof (value) === 'string') {
6363
6407
  ele.innerHTML = SanitizeHtmlHelper.sanitize(value);
6364
6408
  }
6365
- else if (!isNullOrUndefined(this.trgtEle) && (value instanceof (HTMLElement))) {
6409
+ else if (value instanceof (HTMLElement)) {
6366
6410
  ele.appendChild(value);
6367
- ele.firstElementChild.style.display = '';
6411
+ if (this.trgtEle) {
6412
+ ele.firstElementChild.style.display = '';
6413
+ }
6368
6414
  }
6369
6415
  else {
6370
6416
  templateFn = compile(value);
@@ -6428,7 +6474,7 @@ var Accordion = /** @__PURE__ @class */ (function (_super) {
6428
6474
  this.items[parseInt(index.toString(), 10)].content =
6429
6475
  SanitizeHtmlHelper.sanitize(this.items[parseInt(index.toString(), 10)].content);
6430
6476
  }
6431
- itemcnt.appendChild(this.fetchElement(ctn, this.items[parseInt(index.toString(), 10)].content, index, false));
6477
+ itemcnt.appendChild(this.fetchElement(ctn, this.items[parseInt(index.toString(), 10)].content, index));
6432
6478
  }
6433
6479
  return itemcnt;
6434
6480
  };
@@ -6462,7 +6508,7 @@ var Accordion = /** @__PURE__ @class */ (function (_super) {
6462
6508
  expandState.classList.remove(CLS_EXPANDSTATE);
6463
6509
  }
6464
6510
  trgtItemEle.classList.add(CLS_EXPANDSTATE);
6465
- if ((animation.name === 'None')) {
6511
+ if ((animation.name === 'None' && animationMode !== 'Enable') || (animationMode === 'Disable')) {
6466
6512
  _this.expandProgress('begin', icon, trgt, trgtItemEle, expandArgs);
6467
6513
  _this.expandProgress('end', icon, trgt, trgtItemEle, expandArgs);
6468
6514
  }
@@ -6474,6 +6520,10 @@ var Accordion = /** @__PURE__ @class */ (function (_super) {
6474
6520
  };
6475
6521
  Accordion.prototype.expandAnimation = function (ef, icn, trgt, trgtItemEle, animate, args) {
6476
6522
  var _this = this;
6523
+ if (ef === 'None' && animationMode === 'Enable') {
6524
+ ef = 'SlideDown';
6525
+ animate.name = 'SlideDown';
6526
+ }
6477
6527
  var height;
6478
6528
  this.lastActiveItemId = trgtItemEle.id;
6479
6529
  if (ef === 'SlideDown') {
@@ -6568,7 +6618,7 @@ var Accordion = /** @__PURE__ @class */ (function (_super) {
6568
6618
  _this.expandedItemsPop(trgtItemEle);
6569
6619
  trgtItemEle.classList.remove(CLS_EXPANDSTATE);
6570
6620
  icon.classList.add(CLS_TOGANIMATE);
6571
- if ((animation.name === 'None')) {
6621
+ if ((animation.name === 'None' && animationMode !== 'Enable') || (animationMode === 'Disable')) {
6572
6622
  _this.collapseProgress('begin', icon, trgt, trgtItemEle, expandArgs);
6573
6623
  _this.collapseProgress('end', icon, trgt, trgtItemEle, expandArgs);
6574
6624
  }
@@ -6580,6 +6630,10 @@ var Accordion = /** @__PURE__ @class */ (function (_super) {
6580
6630
  };
6581
6631
  Accordion.prototype.collapseAnimation = function (ef, trgt, trgtItEl, icn, animate, args) {
6582
6632
  var _this = this;
6633
+ if (ef === 'None' && animationMode === 'Enable') {
6634
+ ef = 'SlideUp';
6635
+ animate.name = 'SlideUp';
6636
+ }
6583
6637
  var height;
6584
6638
  var trgtHeight;
6585
6639
  var itemHeight;
@@ -6680,7 +6734,7 @@ var Accordion = /** @__PURE__ @class */ (function (_super) {
6680
6734
  EventHandler.add(innerItemEle.querySelector('.' + CLS_HEADER), 'focus', _this.focusIn, _this);
6681
6735
  EventHandler.add(innerItemEle.querySelector('.' + CLS_HEADER), 'blur', _this.focusOut, _this);
6682
6736
  _this.expandedIndices = [];
6683
- _this.expandedItemRefresh(ele);
6737
+ _this.expandedItemRefresh();
6684
6738
  if (addItem && addItem.expanded) {
6685
6739
  _this.expandItem(true, itemIndex);
6686
6740
  }
@@ -6690,8 +6744,7 @@ var Accordion = /** @__PURE__ @class */ (function (_super) {
6690
6744
  this.renderReactTemplates();
6691
6745
  }
6692
6746
  };
6693
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
6694
- Accordion.prototype.expandedItemRefresh = function (ele) {
6747
+ Accordion.prototype.expandedItemRefresh = function () {
6695
6748
  var _this = this;
6696
6749
  var itemEle = this.getItemElements();
6697
6750
  [].slice.call(itemEle).forEach(function (el) {
@@ -6707,8 +6760,12 @@ var Accordion = /** @__PURE__ @class */ (function (_super) {
6707
6760
  * @returns {void}.
6708
6761
  */
6709
6762
  Accordion.prototype.removeItem = function (index) {
6710
- if (this.isReact) {
6711
- this.clearTemplate(['headerTemplate', 'itemTemplate'], index);
6763
+ if (this.isReact || this.isAngular) {
6764
+ var item = selectAll('.' + CLS_ITEM$1, this.element)[parseInt(index.toString(), 10)];
6765
+ var header = select('.' + CLS_HEADERCTN, item);
6766
+ var content = select('.' + CLS_CTENT, item);
6767
+ this.clearAccordionTemplate(header, this.dataSource.length > 0 ? 'headerTemplate' : 'header', CLS_HEADERCTN);
6768
+ this.clearAccordionTemplate(content, this.dataSource.length > 0 ? 'itemTemplate' : 'content', CLS_CTENT);
6712
6769
  }
6713
6770
  var itemEle = this.getItemElements();
6714
6771
  var ele = itemEle[parseInt(index.toString(), 10)];
@@ -6720,7 +6777,7 @@ var Accordion = /** @__PURE__ @class */ (function (_super) {
6720
6777
  detach(ele);
6721
6778
  items.splice(index, 1);
6722
6779
  this.expandedIndices = [];
6723
- this.expandedItemRefresh(this.element);
6780
+ this.expandedItemRefresh();
6724
6781
  };
6725
6782
  /**
6726
6783
  * Sets focus to the specified index item header in Accordion.
@@ -6897,28 +6954,18 @@ var Accordion = /** @__PURE__ @class */ (function (_super) {
6897
6954
  }
6898
6955
  };
6899
6956
  Accordion.prototype.setTemplate = function (template, toElement, index) {
6900
- toElement.innerHTML = '';
6901
- this.templateCompile(toElement, template, index);
6957
+ this.fetchElement(toElement, template, index);
6902
6958
  if (this.isReact) {
6903
6959
  this.renderReactTemplates();
6904
6960
  }
6905
6961
  };
6906
- Accordion.prototype.templateCompile = function (ele, cnt, index) {
6907
- var tempEle = this.createElement('div');
6908
- this.fetchElement(tempEle, cnt, index, false);
6909
- if (tempEle.childNodes.length !== 0) {
6910
- [].slice.call(tempEle.childNodes).forEach(function (childEle) {
6911
- ele.appendChild(childEle);
6912
- });
6913
- }
6914
- };
6915
6962
  Accordion.prototype.clearAccordionTemplate = function (templateEle, templateName, className) {
6916
6963
  if (this.registeredTemplate && this.registeredTemplate["" + templateName]) {
6917
6964
  var registeredTemplates = this.registeredTemplate;
6918
6965
  for (var index = 0; index < registeredTemplates["" + templateName].length; index++) {
6919
6966
  var registeredItem = registeredTemplates["" + templateName][parseInt(index.toString(), 10)].rootNodes[0];
6920
- var closestItem = closest(registeredItem.containerInfo, '.' + className);
6921
- if (!isNullOrUndefined(closestItem) && closestItem === templateEle) {
6967
+ var closestItem = closest(registeredItem, '.' + className);
6968
+ if (!isNullOrUndefined(closestItem) && closestItem === templateEle || isNullOrUndefined(registeredItem.parentNode)) {
6922
6969
  this.clearTemplate([templateName], [registeredTemplates["" + templateName][parseInt(index.toString(), 10)]]);
6923
6970
  break;
6924
6971
  }
@@ -6988,7 +7035,8 @@ var Accordion = /** @__PURE__ @class */ (function (_super) {
6988
7035
  if (property[parseInt(k.toString(), 10)] === 'disabled' && !isNullOrUndefined(item)) {
6989
7036
  this.enableItem(index, !newVal);
6990
7037
  }
6991
- if (property[parseInt(k.toString(), 10)] === 'content' && !isNullOrUndefined(item) && item.children.length === 2) {
7038
+ if (property.indexOf('header') < 0 && property[parseInt(k.toString(), 10)] === 'content'
7039
+ && !isNullOrUndefined(item) && item.children.length === 2) {
6992
7040
  if (typeof newVal === 'function') {
6993
7041
  if (this.isAngular || this.isReact) {
6994
7042
  this.clearAccordionTemplate(content, property[parseInt(k.toString(), 10)], CLS_CTENT);
@@ -7833,11 +7881,20 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
7833
7881
  * @returns {void}
7834
7882
  */
7835
7883
  Tab.prototype.render = function () {
7884
+ var _this = this;
7836
7885
  this.btnCls = this.createElement('span', { className: CLS_ICONS + ' ' + CLS_ICON_CLOSE, attrs: { title: this.title } });
7837
7886
  this.tabId = this.element.id.length > 0 ? ('-' + this.element.id) : getRandomId();
7838
7887
  this.renderContainer();
7839
7888
  this.wireEvents();
7840
7889
  this.initRender = false;
7890
+ if (this.isReact && this.portals && this.portals.length > 0) {
7891
+ this.renderReactTemplates(function () {
7892
+ if (!isNullOrUndefined(_this.tbObj)) {
7893
+ _this.tbObj.refreshOverflow();
7894
+ }
7895
+ _this.refreshActiveBorder();
7896
+ });
7897
+ }
7841
7898
  };
7842
7899
  Tab.prototype.renderContainer = function () {
7843
7900
  var ele = this.element;
@@ -8050,10 +8107,7 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
8050
8107
  tCont.appendChild(_this.btnCls.cloneNode(true));
8051
8108
  var wrap = _this.createElement('div', { className: CLS_WRAP, attrs: wrapAttrs });
8052
8109
  wrap.appendChild(tCont);
8053
- if (_this.itemIndexArray === []) {
8054
- _this.itemIndexArray.push(CLS_ITEM$2 + _this.tabId + '_' + _this.lastIndex);
8055
- }
8056
- else {
8110
+ if (_this.itemIndexArray instanceof Array) {
8057
8111
  _this.itemIndexArray.splice((index + i), 0, CLS_ITEM$2 + _this.tabId + '_' + _this.lastIndex);
8058
8112
  }
8059
8113
  var attrObj = {
@@ -8211,10 +8265,9 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
8211
8265
  if (!isNullOrUndefined(newCnt)) {
8212
8266
  this.prevActiveEle = newCnt.id;
8213
8267
  }
8214
- var isPrevent = isNullOrUndefined(this.animation) || this.animation.next === {} || this.animation.previous === {}
8215
- || isNullOrUndefined(this.animation.next.effect) || isNullOrUndefined(this.animation.previous.effect)
8216
- || this.animation.previous.effect == 'None' || this.animation.next.effect == 'None';
8217
- if (this.initRender || value === false || this.animation === {} || isPrevent) {
8268
+ var isPrevent = isNullOrUndefined(this.animation) || isNullOrUndefined(this.animation.next.effect) || isNullOrUndefined(this.animation.previous.effect)
8269
+ || this.animation.previous.effect === 'None' || this.animation.next.effect === 'None';
8270
+ if (this.initRender || value === false || isPrevent) {
8218
8271
  if (oldCnt && oldCnt !== newCnt) {
8219
8272
  oldCnt.classList.remove(CLS_ACTIVE$1);
8220
8273
  }
@@ -8226,7 +8279,7 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
8226
8279
  var openEff = this.animation.previous.effect;
8227
8280
  animateObj = {
8228
8281
  name: ((openEff === 'None') ? '' : ((openEff !== 'SlideLeftIn') ? openEff : 'SlideLeftIn')),
8229
- duration: this.animation.previous.duration,
8282
+ duration: (this.animation.previous.duration === 0 && animationMode === 'Enable') ? 600 : this.animation.previous.duration,
8230
8283
  timingFunction: this.animation.previous.easing
8231
8284
  };
8232
8285
  }
@@ -8234,7 +8287,7 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
8234
8287
  var clsEff = this.animation.next.effect;
8235
8288
  animateObj = {
8236
8289
  name: ((clsEff === 'None') ? '' : ((clsEff !== 'SlideRightIn') ? clsEff : 'SlideRightIn')),
8237
- duration: this.animation.next.duration,
8290
+ duration: (this.animation.next.duration === 0 && animationMode === 'Enable') ? 600 : this.animation.next.duration,
8238
8291
  timingFunction: this.animation.next.easing
8239
8292
  };
8240
8293
  }
@@ -8344,7 +8397,7 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
8344
8397
  };
8345
8398
  Tab.prototype.getContent = function (ele, cnt, callType, index) {
8346
8399
  var eleStr;
8347
- cnt = isNullOrUndefined(cnt) ? "" : cnt;
8400
+ cnt = isNullOrUndefined(cnt) ? '' : cnt;
8348
8401
  if (typeof cnt === 'string' || isNullOrUndefined(cnt.innerHTML)) {
8349
8402
  if (typeof cnt === 'string' && this.enableHtmlSanitizer) {
8350
8403
  cnt = SanitizeHtmlHelper.sanitize(cnt);
@@ -8695,7 +8748,7 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
8695
8748
  };
8696
8749
  Tab.prototype.showPopup = function (config) {
8697
8750
  var tbPop = select('.e-popup.e-toolbar-pop', this.hdrEle);
8698
- if (tbPop.classList.contains('e-popup-close')) {
8751
+ if (tbPop && tbPop.classList.contains('e-popup-close')) {
8699
8752
  var tbPopObj = (tbPop && tbPop.ej2_instances[0]);
8700
8753
  tbPopObj.position.X = (this.headerPlacement === 'Left') ? 'left' : 'right';
8701
8754
  tbPopObj.dataBind();
@@ -9010,6 +9063,9 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
9010
9063
  }
9011
9064
  };
9012
9065
  Tab.prototype.clearTabTemplate = function (templateEle, templateName, className) {
9066
+ if (!this.clearTemplates) {
9067
+ return;
9068
+ }
9013
9069
  if (this.registeredTemplate && this.registeredTemplate[templateName]) {
9014
9070
  var registeredTemplates = this.registeredTemplate;
9015
9071
  for (var index = 0; index < registeredTemplates[templateName].length; index++) {
@@ -9143,8 +9199,8 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
9143
9199
  clonedElement: this.cloneElement,
9144
9200
  cancel: false
9145
9201
  };
9146
- this.trigger('onDragStart', dragArgs, function (tabitemDragArgs) {
9147
- if (tabitemDragArgs.cancel) {
9202
+ this.trigger('onDragStart', dragArgs, function (tabItemDragArgs) {
9203
+ if (tabItemDragArgs.cancel) {
9148
9204
  var dragObj = e.element.ej2_instances[0];
9149
9205
  if (!isNullOrUndefined(dragObj)) {
9150
9206
  dragObj.intDestroy(e.event);
@@ -9912,6 +9968,9 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
9912
9968
  __decorate$7([
9913
9969
  Property(false)
9914
9970
  ], Tab.prototype, "allowDragAndDrop", void 0);
9971
+ __decorate$7([
9972
+ Property(true)
9973
+ ], Tab.prototype, "clearTemplates", void 0);
9915
9974
  __decorate$7([
9916
9975
  Complex({}, TabAnimationSettings)
9917
9976
  ], Tab.prototype, "animation", void 0);
@@ -10796,6 +10855,7 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
10796
10855
  return list;
10797
10856
  };
10798
10857
  TreeView.prototype.finalizeNode = function (element) {
10858
+ var _this = this;
10799
10859
  var iNodes = selectAll('.' + IMAGE, element);
10800
10860
  for (var k = 0; k < iNodes.length; k++) {
10801
10861
  iNodes[k].setAttribute('alt', IMAGE);
@@ -10816,6 +10876,9 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
10816
10876
  }
10817
10877
  }
10818
10878
  var eNodes = selectAll('.' + EXPANDED, element);
10879
+ if (!this.loadOnDemand && this.fields.dataSource instanceof DataManager) {
10880
+ this.isInitalExpand = this.treeData.filter(function (e) { return e[_this.fields.expanded] == true; }).length > 0 ? true : this.isInitalExpand;
10881
+ }
10819
10882
  if (!this.isInitalExpand) {
10820
10883
  for (var i = 0; i < eNodes.length; i++) {
10821
10884
  this.renderChildNodes(eNodes[i]);
@@ -11320,7 +11383,11 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
11320
11383
  }
11321
11384
  };
11322
11385
  TreeView.prototype.doExpandAction = function () {
11386
+ var _this = this;
11323
11387
  var eUids = this.expandedNodes;
11388
+ if (!this.loadOnDemand && this.fields.dataSource instanceof DataManager) {
11389
+ this.isInitalExpand = this.treeData.filter(function (e) { return e[_this.fields.expanded] == true; }).length > 0 ? true : this.isInitalExpand;
11390
+ }
11324
11391
  if (this.isInitalExpand && eUids.length > 0) {
11325
11392
  this.setProperties({ expandedNodes: [] }, true);
11326
11393
  /* eslint-disable */
@@ -11513,7 +11580,7 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
11513
11580
  if (this.isAnimate && !this.isRefreshed) {
11514
11581
  this.aniObj.animate(ul_1, {
11515
11582
  name: this.animation.expand.effect,
11516
- duration: this.animation.expand.duration,
11583
+ duration: (this.animation.expand.duration === 0 && animationMode === 'Enable') ? 400 : this.animation.expand.duration,
11517
11584
  timingFunction: this.animation.expand.easing,
11518
11585
  begin: function (args) {
11519
11586
  liEle_1.style.overflow = 'hidden';
@@ -11615,7 +11682,7 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
11615
11682
  if (this.isAnimate) {
11616
11683
  this.aniObj.animate(ul, {
11617
11684
  name: this.animation.collapse.effect,
11618
- duration: this.animation.collapse.duration,
11685
+ duration: (this.animation.collapse.duration === 0 && animationMode === 'Enable') ? 400 : this.animation.collapse.duration,
11619
11686
  timingFunction: this.animation.collapse.easing,
11620
11687
  begin: function (args) {
11621
11688
  liEle.style.overflow = 'hidden';
@@ -11762,6 +11829,9 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
11762
11829
  if (callback) {
11763
11830
  callback();
11764
11831
  }
11832
+ if (expandChild) {
11833
+ this.expandedNodes.push(parentLi.getAttribute('data-uid'));
11834
+ }
11765
11835
  if (this.treeList.length === 0 && !this.isLoaded) {
11766
11836
  this.finalize();
11767
11837
  }
@@ -13195,6 +13265,9 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
13195
13265
  else {
13196
13266
  this.dropAsChildNode(dragLi, dropLi, dragObj, null, e, offsetY, true);
13197
13267
  }
13268
+ if (this.showCheckBox) {
13269
+ this.ensureIndeterminate();
13270
+ }
13198
13271
  };
13199
13272
  TreeView.prototype.dropAsSiblingNode = function (dragLi, dropLi, e, dragObj) {
13200
13273
  var dropUl = closest(dropLi, '.' + PARENTITEM);
@@ -14753,9 +14826,9 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
14753
14826
  }
14754
14827
  }
14755
14828
  else if (this.dataType == 2) {
14756
- parentsId = this.getHierarchicalParentId(node, this.treeData, parentsId).reverse();
14829
+ parentsId = this.getHierarchicalParentId(node, this.treeData, parentsId);
14757
14830
  }
14758
- this.expandAll(parentsId);
14831
+ this.expandAll(parentsId.reverse());
14759
14832
  var liEle = this.getElement(node);
14760
14833
  if (!isNullOrUndefined(liEle)) {
14761
14834
  if (typeof node == 'object') {
@@ -15330,7 +15403,7 @@ var Sidebar = /** @__PURE__ @class */ (function (_super) {
15330
15403
  this.show();
15331
15404
  }
15332
15405
  else if (!this.isOpen) {
15333
- addClass([this.element], CLOSE);
15406
+ addClass([this.element], [CLOSE, DISABLEANIMATION]);
15334
15407
  }
15335
15408
  };
15336
15409
  Sidebar.prototype.checkType = function (val) {
@@ -15785,7 +15858,7 @@ var Sidebar = /** @__PURE__ @class */ (function (_super) {
15785
15858
  }
15786
15859
  this.destroyBackDrop();
15787
15860
  if (this.element) {
15788
- removeClass([this.element], [OPEN, CLOSE, PUSH, SLIDE, OVER, LEFT, RIGHT, TRASITION]);
15861
+ removeClass([this.element], [OPEN, CLOSE, PUSH, SLIDE, OVER, LEFT, RIGHT, TRASITION, DISABLEANIMATION]);
15789
15862
  removeClass([this.element], SIDEBARABSOLUTE);
15790
15863
  this.element.style.width = '';
15791
15864
  this.element.style.zIndex = '';
@@ -16172,7 +16245,14 @@ var Breadcrumb = /** @__PURE__ @class */ (function (_super) {
16172
16245
  if (i % 2) {
16173
16246
  // separator item
16174
16247
  wrapDiv = this.createElement('div', { className: 'e-breadcrumb-item-wrapper' });
16175
- listBaseOptions.template = this.separatorTemplate ? this.separatorTemplate : '/';
16248
+ if ((this.separatorTemplate && this.separatorTemplate === '/') || isNullOrUndefined(this.separatorTemplate)) {
16249
+ listBaseOptions.template = initializeCSPTemplate(function () {
16250
+ return '/';
16251
+ });
16252
+ }
16253
+ else {
16254
+ listBaseOptions.template = this.separatorTemplate;
16255
+ }
16176
16256
  listBaseOptions.itemClass = 'e-breadcrumb-separator';
16177
16257
  isSingleLevel = false;
16178
16258
  item = [{ previousItem: items[j_1], nextItem: items[j_1 + 1] }];
@@ -16181,6 +16261,7 @@ var Breadcrumb = /** @__PURE__ @class */ (function (_super) {
16181
16261
  // list item
16182
16262
  listBaseOptions.itemClass = '';
16183
16263
  if (this.itemTemplate) {
16264
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
16184
16265
  listBaseOptions.template = this.itemTemplate;
16185
16266
  isSingleLevel = false;
16186
16267
  }
@@ -16964,6 +17045,7 @@ var Carousel = /** @__PURE__ @class */ (function (_super) {
16964
17045
  };
16965
17046
  Carousel.prototype.initialize = function () {
16966
17047
  var carouselClasses = [];
17048
+ carouselClasses.push(CLS_CAROUSEL);
16967
17049
  if (this.cssClass) {
16968
17050
  carouselClasses.push(this.cssClass);
16969
17051
  }
@@ -16978,7 +17060,7 @@ var Carousel = /** @__PURE__ @class */ (function (_super) {
16978
17060
  }
16979
17061
  addClass([this.element], carouselClasses);
16980
17062
  setStyleAttribute(this.element, { 'width': formatUnit(this.width), 'height': formatUnit(this.height) });
16981
- attributes(this.element, { 'tabindex': '0', 'aria-roledescription': 'carousel', 'aria-label': this.localeObj.getConstant('slideShow') });
17063
+ attributes(this.element, { 'tabindex': '0', 'role': 'group', 'aria-roledescription': 'carousel', 'aria-label': this.localeObj.getConstant('slideShow') });
16982
17064
  if (!isNullOrUndefined(this.htmlAttributes)) {
16983
17065
  this.setHtmlAttributes(this.htmlAttributes, this.element);
16984
17066
  }
@@ -17052,7 +17134,7 @@ var Carousel = /** @__PURE__ @class */ (function (_super) {
17052
17134
  className: CLS_ITEM$3 + " " + (item.cssClass ? item.cssClass : '') + " " + (this.selectedIndex === index && !isClone ? CLS_ACTIVE$2 : ''),
17053
17135
  attrs: {
17054
17136
  'aria-hidden': this.selectedIndex === index && !isClone ? 'false' : 'true', 'data-index': index.toString(),
17055
- 'aria-role': 'group', 'aria-roledescription': 'slide'
17137
+ 'role': 'group', 'aria-roledescription': 'slide'
17056
17138
  }
17057
17139
  });
17058
17140
  if (isClone) {
@@ -17759,6 +17841,13 @@ var Carousel = /** @__PURE__ @class */ (function (_super) {
17759
17841
  EventHandler.add(this.itemsContainer, 'mouseup touchend', this.swipStop, this);
17760
17842
  }
17761
17843
  };
17844
+ Carousel.prototype.resizeHandler = function () {
17845
+ if (this.itemsContainer && this.itemsContainer.firstElementChild) {
17846
+ var numOfItems = this.getNumOfItems();
17847
+ var slideWidth = this.itemsContainer.firstElementChild.clientWidth;
17848
+ this.itemsContainer.style.transform = this.getTranslateX(slideWidth, this.selectedIndex + numOfItems);
17849
+ }
17850
+ };
17762
17851
  Carousel.prototype.wireEvents = function () {
17763
17852
  if (!(this.animationEffect === 'Custom')) {
17764
17853
  this.swipeModehandlers();
@@ -17767,6 +17856,7 @@ var Carousel = /** @__PURE__ @class */ (function (_super) {
17767
17856
  EventHandler.add(this.element, 'mouseenter mouseleave', this.onHoverActions, this);
17768
17857
  EventHandler.add(this.element.firstElementChild, 'animationend', this.onTransitionEnd, this);
17769
17858
  EventHandler.add(this.element.firstElementChild, 'transitionend', this.onTransitionEnd, this);
17859
+ EventHandler.add(window, 'resize', this.resizeHandler, this);
17770
17860
  };
17771
17861
  Carousel.prototype.unWireEvents = function () {
17772
17862
  var _this = this;
@@ -17786,6 +17876,7 @@ var Carousel = /** @__PURE__ @class */ (function (_super) {
17786
17876
  EventHandler.remove(this.element.firstElementChild, 'transitionend', this.onTransitionEnd);
17787
17877
  EventHandler.clearEvents(this.element);
17788
17878
  EventHandler.clearEvents(this.itemsContainer);
17879
+ EventHandler.remove(window, 'resize', this.resizeHandler);
17789
17880
  };
17790
17881
  /**
17791
17882
  * Method to transit from the current slide to the previous slide.
@@ -18044,6 +18135,7 @@ var AppBar = /** @__PURE__ @class */ (function (_super) {
18044
18135
  // pre render code
18045
18136
  };
18046
18137
  AppBar.prototype.render = function () {
18138
+ this.element.classList.add(CLS_APPBAR);
18047
18139
  if (this.element.tagName !== 'HEADER') {
18048
18140
  this.element.setAttribute('role', 'header');
18049
18141
  }