@syncfusion/ej2-navigations 20.1.47 → 20.1.51-10460

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 (417) hide show
  1. package/.eslintrc.json +243 -243
  2. package/CHANGELOG.md +1601 -1570
  3. package/README.md +194 -194
  4. package/dist/ej2-navigations.min.js +1 -0
  5. package/dist/ej2-navigations.umd.min.js +1 -10
  6. package/dist/ej2-navigations.umd.min.js.map +1 -1
  7. package/dist/es6/ej2-navigations.es2015.js +92 -80
  8. package/dist/es6/ej2-navigations.es2015.js.map +1 -1
  9. package/dist/es6/ej2-navigations.es5.js +251 -239
  10. package/dist/es6/ej2-navigations.es5.js.map +1 -1
  11. package/dist/global/ej2-navigations.min.js +1 -10
  12. package/dist/global/ej2-navigations.min.js.map +1 -1
  13. package/dist/global/index.d.ts +0 -9
  14. package/dist/ts/accordion/accordion.ts +1545 -0
  15. package/dist/ts/breadcrumb/breadcrumb.ts +873 -0
  16. package/dist/ts/carousel/carousel.ts +1181 -0
  17. package/dist/ts/common/h-scroll.ts +477 -0
  18. package/dist/ts/common/menu-base.ts +2357 -0
  19. package/dist/ts/common/menu-scroll.ts +105 -0
  20. package/dist/ts/common/v-scroll.ts +454 -0
  21. package/{src/context-menu/context-menu.d.ts → dist/ts/context-menu/context-menu.ts} +134 -88
  22. package/dist/ts/menu/menu.ts +302 -0
  23. package/dist/ts/sidebar/sidebar.ts +874 -0
  24. package/dist/ts/tab/tab.ts +2637 -0
  25. package/dist/ts/toolbar/toolbar.ts +2378 -0
  26. package/dist/ts/treeview/treeview.ts +5768 -0
  27. package/helpers/e2e/accordionHelper.js +70 -53
  28. package/helpers/e2e/contextmenuHelper.js +52 -35
  29. package/helpers/e2e/index.js +14 -12
  30. package/helpers/e2e/menuHelper.js +52 -35
  31. package/helpers/e2e/sidebarHelper.js +109 -92
  32. package/helpers/e2e/tabHelper.js +73 -56
  33. package/helpers/e2e/toolbarHelper.js +73 -56
  34. package/helpers/e2e/treeview.js +79 -61
  35. package/license +10 -10
  36. package/package.json +164 -164
  37. package/src/accordion/accordion-model.d.ts +190 -190
  38. package/src/accordion/accordion.js +19 -19
  39. package/src/breadcrumb/breadcrumb-model.d.ts +105 -105
  40. package/src/breadcrumb/breadcrumb.js +19 -19
  41. package/src/carousel/carousel-model.d.ts +148 -148
  42. package/src/carousel/carousel.js +19 -19
  43. package/src/common/h-scroll-model.d.ts +6 -6
  44. package/src/common/h-scroll.js +23 -21
  45. package/src/common/menu-base-model.d.ts +206 -206
  46. package/src/common/menu-base.js +31 -25
  47. package/src/common/v-scroll-model.d.ts +6 -6
  48. package/src/common/v-scroll.js +19 -19
  49. package/src/context-menu/context-menu-model.d.ts +18 -18
  50. package/src/context-menu/context-menu.js +19 -19
  51. package/src/menu/menu-model.d.ts +43 -43
  52. package/src/menu/menu.js +19 -19
  53. package/src/sidebar/sidebar-model.d.ts +191 -191
  54. package/src/sidebar/sidebar.js +19 -19
  55. package/src/tab/tab-model.d.ts +291 -291
  56. package/src/tab/tab.js +21 -21
  57. package/src/toolbar/toolbar-model.d.ts +195 -195
  58. package/src/toolbar/toolbar.js +23 -19
  59. package/src/treeview/treeview-model.d.ts +411 -411
  60. package/src/treeview/treeview.js +20 -20
  61. package/styles/accordion/_bds-definition.scss +167 -0
  62. package/styles/accordion/_bigger.scss +121 -0
  63. package/styles/accordion/_bootstrap5.3-definition.scss +168 -0
  64. package/styles/accordion/_fluent2-definition.scss +167 -0
  65. package/styles/accordion/_fusionnew-definition.scss +168 -0
  66. package/styles/accordion/_material3-dark-definition.scss +1 -0
  67. package/styles/accordion/_material3-definition.scss +168 -0
  68. package/styles/accordion/fluent2.scss +4 -0
  69. package/styles/accordion/icons/_bds.scss +15 -0
  70. package/styles/accordion/icons/_bootstrap5.3.scss +15 -0
  71. package/styles/accordion/icons/_fluent2.scss +15 -0
  72. package/styles/accordion/icons/_fusionnew.scss +15 -0
  73. package/styles/accordion/icons/_material3-dark.scss +1 -0
  74. package/styles/accordion/icons/_material3.scss +15 -0
  75. package/styles/accordion/material3-dark.scss +4 -0
  76. package/styles/accordion/material3.scss +4 -0
  77. package/styles/appbar/_all.scss +2 -0
  78. package/styles/appbar/_bds-definition.scss +25 -0
  79. package/styles/appbar/_bigger.scss +15 -0
  80. package/styles/appbar/_bootstrap-dark-definition.scss +6 -0
  81. package/styles/appbar/_bootstrap-definition.scss +6 -0
  82. package/styles/appbar/_bootstrap4-definition.scss +6 -0
  83. package/styles/appbar/_bootstrap5-definition.scss +6 -0
  84. package/styles/appbar/_bootstrap5.3-definition.scss +6 -0
  85. package/styles/appbar/_fabric-dark-definition.scss +6 -0
  86. package/styles/appbar/_fabric-definition.scss +6 -0
  87. package/styles/appbar/_fluent-definition.scss +6 -0
  88. package/styles/appbar/_fluent2-definition.scss +24 -0
  89. package/styles/appbar/_fusionnew-definition.scss +6 -0
  90. package/styles/appbar/_highcontrast-definition.scss +6 -0
  91. package/styles/appbar/_highcontrast-light-definition.scss +6 -0
  92. package/styles/appbar/_layout.scss +76 -0
  93. package/styles/appbar/_material-dark-definition.scss +6 -0
  94. package/styles/appbar/_material-definition.scss +6 -0
  95. package/styles/appbar/_material3-definition.scss +6 -0
  96. package/styles/appbar/_tailwind-definition.scss +6 -0
  97. package/styles/appbar/_theme.scss +216 -0
  98. package/styles/bootstrap-dark.css +1 -1
  99. package/styles/bootstrap.css +1 -1
  100. package/styles/bootstrap4.css +1 -1
  101. package/styles/bootstrap5-dark.css +1 -1
  102. package/styles/bootstrap5.css +1 -1
  103. package/styles/breadcrumb/_bds-definition.scss +60 -0
  104. package/styles/breadcrumb/_bigger.scss +160 -0
  105. package/styles/breadcrumb/_bootstrap5.3-definition.scss +61 -0
  106. package/styles/breadcrumb/_fluent2-definition.scss +61 -0
  107. package/styles/breadcrumb/_fusionnew-definition.scss +59 -0
  108. package/styles/breadcrumb/_layout.scss +1 -1
  109. package/styles/breadcrumb/_material3-dark-definition.scss +1 -0
  110. package/styles/breadcrumb/_material3-definition.scss +60 -0
  111. package/styles/breadcrumb/_tailwind-dark-definition.scss +1 -60
  112. package/styles/breadcrumb/_tailwind-definition.scss +3 -3
  113. package/styles/breadcrumb/bootstrap-dark.css +1 -1
  114. package/styles/breadcrumb/bootstrap.css +1 -1
  115. package/styles/breadcrumb/bootstrap4.css +1 -1
  116. package/styles/breadcrumb/bootstrap5-dark.css +1 -1
  117. package/styles/breadcrumb/bootstrap5.css +1 -1
  118. package/styles/breadcrumb/fabric-dark.css +1 -1
  119. package/styles/breadcrumb/fabric.css +1 -1
  120. package/styles/breadcrumb/fluent-dark.css +1 -1
  121. package/styles/breadcrumb/fluent.css +1 -1
  122. package/styles/breadcrumb/fluent2.scss +4 -0
  123. package/styles/breadcrumb/highcontrast-light.css +1 -1
  124. package/styles/breadcrumb/highcontrast.css +1 -1
  125. package/styles/breadcrumb/icons/_bds.scss +23 -0
  126. package/styles/breadcrumb/icons/_bootstrap5.3.scss +23 -0
  127. package/styles/breadcrumb/icons/_fluent2.scss +23 -0
  128. package/styles/breadcrumb/icons/_fusionnew.scss +23 -0
  129. package/styles/breadcrumb/icons/_material3-dark.scss +1 -0
  130. package/styles/breadcrumb/icons/_material3.scss +12 -0
  131. package/styles/breadcrumb/material-dark.css +1 -1
  132. package/styles/breadcrumb/material.css +1 -1
  133. package/styles/breadcrumb/material3-dark.scss +4 -0
  134. package/styles/breadcrumb/material3.scss +4 -0
  135. package/styles/breadcrumb/tailwind-dark.css +8 -8
  136. package/styles/breadcrumb/tailwind.css +8 -8
  137. package/styles/carousel/_bds-definition.scss +20 -0
  138. package/styles/carousel/_bootstrap5.3-definition.scss +20 -0
  139. package/styles/carousel/_fluent2-definition.scss +23 -0
  140. package/styles/carousel/_fusionnew-definition.scss +20 -0
  141. package/styles/carousel/_material3-dark-definition.scss +1 -0
  142. package/styles/carousel/_material3-definition.scss +21 -0
  143. package/styles/carousel/fluent2.scss +4 -0
  144. package/styles/carousel/icons/_bds.scss +30 -0
  145. package/styles/carousel/icons/_bootstrap5.3.scss +30 -0
  146. package/styles/carousel/icons/_fluent2.scss +30 -0
  147. package/styles/carousel/icons/_fusionnew.scss +30 -0
  148. package/styles/carousel/icons/_material3-dark.scss +1 -0
  149. package/styles/carousel/icons/_material3.scss +30 -0
  150. package/styles/carousel/material3-dark.scss +4 -0
  151. package/styles/carousel/material3.scss +4 -0
  152. package/styles/context-menu/_bds-definition.scss +68 -0
  153. package/styles/context-menu/_bigger.scss +96 -0
  154. package/styles/context-menu/_bootstrap5.3-definition.scss +52 -0
  155. package/styles/context-menu/_fluent2-definition.scss +52 -0
  156. package/styles/context-menu/_fusionnew-definition.scss +51 -0
  157. package/styles/context-menu/_material3-dark-definition.scss +1 -0
  158. package/styles/context-menu/_material3-definition.scss +51 -0
  159. package/styles/context-menu/fluent2.scss +4 -0
  160. package/styles/context-menu/icons/_bds.scss +31 -0
  161. package/styles/context-menu/icons/_bootstrap5.3.scss +31 -0
  162. package/styles/context-menu/icons/_fluent2.scss +31 -0
  163. package/styles/context-menu/icons/_fusionnew.scss +31 -0
  164. package/styles/context-menu/icons/_material3-dark.scss +1 -0
  165. package/styles/context-menu/icons/_material3.scss +31 -0
  166. package/styles/context-menu/material3-dark.scss +4 -0
  167. package/styles/context-menu/material3.scss +4 -0
  168. package/styles/fabric-dark.css +1 -1
  169. package/styles/fabric.css +1 -1
  170. package/styles/fluent-dark.css +1 -1
  171. package/styles/fluent.css +1 -1
  172. package/styles/fluent2.scss +34 -0
  173. package/styles/h-scroll/_bds-definition.scss +83 -0
  174. package/styles/h-scroll/_bigger.scss +39 -0
  175. package/styles/h-scroll/_bootstrap5.3-definition.scss +83 -0
  176. package/styles/h-scroll/_fluent2-definition.scss +83 -0
  177. package/styles/h-scroll/_fusionnew-definition.scss +83 -0
  178. package/styles/h-scroll/_material3-dark-definition.scss +1 -0
  179. package/styles/h-scroll/_material3-definition.scss +83 -0
  180. package/styles/h-scroll/fluent2.scss +4 -0
  181. package/styles/h-scroll/icons/_bds.scss +49 -0
  182. package/styles/h-scroll/icons/_bootstrap5.3.scss +49 -0
  183. package/styles/h-scroll/icons/_fluent2.scss +49 -0
  184. package/styles/h-scroll/icons/_fusionnew.scss +49 -0
  185. package/styles/h-scroll/icons/_material3-dark.scss +1 -0
  186. package/styles/h-scroll/icons/_material3.scss +49 -0
  187. package/styles/h-scroll/material3-dark.scss +4 -0
  188. package/styles/h-scroll/material3.scss +4 -0
  189. package/styles/highcontrast-light.css +1 -1
  190. package/styles/highcontrast.css +1 -1
  191. package/styles/material-dark.css +1 -1
  192. package/styles/material.css +1 -1
  193. package/styles/material3-dark.scss +34 -0
  194. package/styles/material3.scss +34 -0
  195. package/styles/menu/_bds-definition.scss +65 -0
  196. package/styles/menu/_bigger.scss +355 -0
  197. package/styles/menu/_bootstrap5.3-definition.scss +66 -0
  198. package/styles/menu/_fluent2-definition.scss +67 -0
  199. package/styles/menu/_fusionnew-definition.scss +66 -0
  200. package/styles/menu/_material3-dark-definition.scss +1 -0
  201. package/styles/menu/_material3-definition.scss +66 -0
  202. package/styles/menu/fluent2.scss +7 -0
  203. package/styles/menu/icons/_bds.scss +104 -0
  204. package/styles/menu/icons/_bootstrap5.3.scss +104 -0
  205. package/styles/menu/icons/_fluent2.scss +104 -0
  206. package/styles/menu/icons/_fusionnew.scss +104 -0
  207. package/styles/menu/icons/_material3-dark.scss +1 -0
  208. package/styles/menu/icons/_material3.scss +104 -0
  209. package/styles/menu/material3-dark.scss +7 -0
  210. package/styles/menu/material3.scss +7 -0
  211. package/styles/pager/_all.scss +2 -0
  212. package/styles/pager/_bds-definition.scss +152 -0
  213. package/styles/pager/_bigger.scss +311 -0
  214. package/styles/pager/_bootstrap-dark-definition.scss +151 -0
  215. package/styles/pager/_bootstrap-definition.scss +151 -0
  216. package/styles/pager/_bootstrap4-definition.scss +151 -0
  217. package/styles/pager/_bootstrap5-definition.scss +166 -0
  218. package/styles/pager/_bootstrap5.3-definition.scss +166 -0
  219. package/styles/pager/_fabric-dark-definition.scss +149 -0
  220. package/styles/pager/_fabric-definition.scss +149 -0
  221. package/styles/pager/_fluent-definition.scss +153 -0
  222. package/styles/pager/_fluent2-definition.scss +152 -0
  223. package/styles/pager/_fusionnew-definition.scss +166 -0
  224. package/styles/pager/_highcontrast-definition.scss +149 -0
  225. package/styles/pager/_highcontrast-light-definition.scss +149 -0
  226. package/styles/pager/_layout.scss +742 -0
  227. package/styles/pager/_material-dark-definition.scss +150 -0
  228. package/styles/pager/_material-definition.scss +150 -0
  229. package/styles/pager/_material3-definition.scss +166 -0
  230. package/styles/pager/_tailwind-definition.scss +152 -0
  231. package/styles/pager/_theme.scss +189 -0
  232. package/styles/pager/icons/_bds.scss +50 -0
  233. package/styles/pager/icons/_bootstrap-dark.scss +50 -0
  234. package/styles/pager/icons/_bootstrap.scss +50 -0
  235. package/styles/pager/icons/_bootstrap4.scss +50 -0
  236. package/styles/pager/icons/_bootstrap5.3.scss +50 -0
  237. package/styles/pager/icons/_bootstrap5.scss +50 -0
  238. package/styles/pager/icons/_fabric-dark.scss +50 -0
  239. package/styles/pager/icons/_fabric.scss +50 -0
  240. package/styles/pager/icons/_fluent.scss +50 -0
  241. package/styles/pager/icons/_fluent2.scss +50 -0
  242. package/styles/pager/icons/_fusionnew.scss +50 -0
  243. package/styles/pager/icons/_highcontrast-light.scss +50 -0
  244. package/styles/pager/icons/_highcontrast.scss +46 -0
  245. package/styles/pager/icons/_material-dark.scss +50 -0
  246. package/styles/pager/icons/_material.scss +46 -0
  247. package/styles/pager/icons/_material3.scss +50 -0
  248. package/styles/pager/icons/_tailwind.scss +50 -0
  249. package/styles/sidebar/_bds-definition.scss +53 -0
  250. package/styles/sidebar/_bootstrap5.3-definition.scss +6 -0
  251. package/styles/sidebar/_fluent2-definition.scss +8 -0
  252. package/styles/sidebar/_fusionnew-definition.scss +6 -0
  253. package/styles/sidebar/_material3-dark-definition.scss +1 -0
  254. package/styles/sidebar/_material3-definition.scss +4 -0
  255. package/styles/sidebar/fluent2.scss +3 -0
  256. package/styles/sidebar/material3-dark.scss +3 -0
  257. package/styles/sidebar/material3.scss +3 -0
  258. package/styles/stepper/_all.scss +2 -0
  259. package/styles/stepper/_bds-definition.scss +72 -0
  260. package/styles/stepper/_bigger.scss +53 -0
  261. package/styles/stepper/_bootstrap-dark-definition.scss +72 -0
  262. package/styles/stepper/_bootstrap-definition.scss +72 -0
  263. package/styles/stepper/_bootstrap4-definition.scss +72 -0
  264. package/styles/stepper/_bootstrap5-definition.scss +73 -0
  265. package/styles/stepper/_bootstrap5.3-definition.scss +72 -0
  266. package/styles/stepper/_fabric-dark-definition.scss +72 -0
  267. package/styles/stepper/_fabric-definition.scss +72 -0
  268. package/styles/stepper/_fluent-definition.scss +72 -0
  269. package/styles/stepper/_fluent2-definition.scss +72 -0
  270. package/styles/stepper/_fusionnew-definition.scss +72 -0
  271. package/styles/stepper/_highcontrast-definition.scss +72 -0
  272. package/styles/stepper/_highcontrast-light-definition.scss +72 -0
  273. package/styles/stepper/_layout.scss +431 -0
  274. package/styles/stepper/_material-dark-definition.scss +72 -0
  275. package/styles/stepper/_material-definition.scss +72 -0
  276. package/styles/stepper/_material3-definition.scss +72 -0
  277. package/styles/stepper/_tailwind-definition.scss +72 -0
  278. package/styles/stepper/_theme.scss +195 -0
  279. package/styles/stepper/icons/_bds.scss +5 -0
  280. package/styles/stepper/icons/_bootstrap-dark.scss +5 -0
  281. package/styles/stepper/icons/_bootstrap.scss +5 -0
  282. package/styles/stepper/icons/_bootstrap4.scss +5 -0
  283. package/styles/stepper/icons/_bootstrap5.3.scss +5 -0
  284. package/styles/stepper/icons/_bootstrap5.scss +5 -0
  285. package/styles/stepper/icons/_fabric-dark.scss +5 -0
  286. package/styles/stepper/icons/_fabric.scss +5 -0
  287. package/styles/stepper/icons/_fluent.scss +5 -0
  288. package/styles/stepper/icons/_fluent2.scss +5 -0
  289. package/styles/stepper/icons/_fusionnew.scss +5 -0
  290. package/styles/stepper/icons/_highcontrast-light.scss +5 -0
  291. package/styles/stepper/icons/_highcontrast.scss +5 -0
  292. package/styles/stepper/icons/_material-dark.scss +5 -0
  293. package/styles/stepper/icons/_material.scss +5 -0
  294. package/styles/stepper/icons/_material3.scss +5 -0
  295. package/styles/stepper/icons/_tailwind.scss +5 -0
  296. package/styles/tab/_bds-definition.scss +661 -0
  297. package/styles/tab/_bigger.scss +1270 -0
  298. package/styles/tab/_bootstrap5.3-definition.scss +636 -0
  299. package/styles/tab/_fluent2-definition.scss +667 -0
  300. package/styles/tab/_fusionnew-definition.scss +634 -0
  301. package/styles/tab/_material3-dark-definition.scss +1 -0
  302. package/styles/tab/_material3-definition.scss +636 -0
  303. package/styles/tab/fluent2.scss +5 -0
  304. package/styles/tab/icons/_bds.scss +90 -0
  305. package/styles/tab/icons/_bootstrap5.3.scss +90 -0
  306. package/styles/tab/icons/_fluent2.scss +98 -0
  307. package/styles/tab/icons/_fusionnew.scss +90 -0
  308. package/styles/tab/icons/_material3-dark.scss +1 -0
  309. package/styles/tab/icons/_material3.scss +90 -0
  310. package/styles/tab/material3-dark.scss +5 -0
  311. package/styles/tab/material3.scss +5 -0
  312. package/styles/tailwind-dark.css +8 -8
  313. package/styles/tailwind.css +8 -8
  314. package/styles/toolbar/_bds-definition.scss +197 -0
  315. package/styles/toolbar/_bigger.scss +309 -0
  316. package/styles/toolbar/_bootstrap5.3-definition.scss +198 -0
  317. package/styles/toolbar/_fluent2-definition.scss +198 -0
  318. package/styles/toolbar/_fusionnew-definition.scss +198 -0
  319. package/styles/toolbar/_material3-dark-definition.scss +1 -0
  320. package/styles/toolbar/_material3-definition.scss +199 -0
  321. package/styles/toolbar/fluent2.scss +6 -0
  322. package/styles/toolbar/icons/_bds.scss +14 -0
  323. package/styles/toolbar/icons/_bootstrap5.3.scss +14 -0
  324. package/styles/toolbar/icons/_fluent2.scss +14 -0
  325. package/styles/toolbar/icons/_fusionnew.scss +14 -0
  326. package/styles/toolbar/icons/_material3-dark.scss +1 -0
  327. package/styles/toolbar/icons/_material3.scss +14 -0
  328. package/styles/toolbar/material3-dark.scss +6 -0
  329. package/styles/toolbar/material3.scss +6 -0
  330. package/styles/treeview/_bds-definition.scss +132 -0
  331. package/styles/treeview/_bigger.scss +393 -0
  332. package/styles/treeview/_bootstrap5.3-definition.scss +119 -0
  333. package/styles/treeview/_fluent2-definition.scss +128 -0
  334. package/styles/treeview/_fusionnew-definition.scss +120 -0
  335. package/styles/treeview/_material3-dark-definition.scss +1 -0
  336. package/styles/treeview/_material3-definition.scss +110 -0
  337. package/styles/treeview/fluent2.scss +4 -0
  338. package/styles/treeview/icons/_bds.scss +44 -0
  339. package/styles/treeview/icons/_bootstrap5.3.scss +44 -0
  340. package/styles/treeview/icons/_fluent2.scss +44 -0
  341. package/styles/treeview/icons/_fusionnew.scss +44 -0
  342. package/styles/treeview/icons/_material3-dark.scss +1 -0
  343. package/styles/treeview/icons/_material3.scss +44 -0
  344. package/styles/treeview/material3-dark.scss +4 -0
  345. package/styles/treeview/material3.scss +4 -0
  346. package/styles/v-scroll/_bds-definition.scss +49 -0
  347. package/styles/v-scroll/_bigger.scss +28 -0
  348. package/styles/v-scroll/_bootstrap5.3-definition.scss +49 -0
  349. package/styles/v-scroll/_fluent2-definition.scss +49 -0
  350. package/styles/v-scroll/_fusionnew-definition.scss +49 -0
  351. package/styles/v-scroll/_material3-dark-definition.scss +1 -0
  352. package/styles/v-scroll/_material3-definition.scss +49 -0
  353. package/styles/v-scroll/fluent2.scss +4 -0
  354. package/styles/v-scroll/icons/_bds.scss +27 -0
  355. package/styles/v-scroll/icons/_bootstrap5.3.scss +27 -0
  356. package/styles/v-scroll/icons/_fluent2.scss +27 -0
  357. package/styles/v-scroll/icons/_fusionnew.scss +27 -0
  358. package/styles/v-scroll/icons/_material3-dark.scss +1 -0
  359. package/styles/v-scroll/icons/_material3.scss +27 -0
  360. package/styles/v-scroll/material3-dark.scss +4 -0
  361. package/styles/v-scroll/material3.scss +4 -0
  362. package/tslint.json +111 -111
  363. package/.github/PULL_REQUEST_TEMPLATE/Bug.md +0 -63
  364. package/.github/PULL_REQUEST_TEMPLATE/feature.md +0 -39
  365. package/accordion.d.ts +0 -4
  366. package/accordion.js +0 -4
  367. package/breadcrumb.d.ts +0 -4
  368. package/breadcrumb.js +0 -4
  369. package/carousel.d.ts +0 -4
  370. package/carousel.js +0 -4
  371. package/common.d.ts +0 -4
  372. package/common.js +0 -4
  373. package/context-menu.d.ts +0 -4
  374. package/context-menu.js +0 -4
  375. package/helpers/e2e/accordionHelper.d.ts +0 -56
  376. package/helpers/e2e/contextmenuHelper.d.ts +0 -37
  377. package/helpers/e2e/index.d.ts +0 -7
  378. package/helpers/e2e/menuHelper.d.ts +0 -37
  379. package/helpers/e2e/sidebarHelper.d.ts +0 -94
  380. package/helpers/e2e/tabHelper.d.ts +0 -60
  381. package/helpers/e2e/toolbarHelper.d.ts +0 -60
  382. package/helpers/e2e/treeview.d.ts +0 -50
  383. package/index.d.ts +0 -4
  384. package/index.js +0 -4
  385. package/menu.d.ts +0 -4
  386. package/menu.js +0 -4
  387. package/sidebar.d.ts +0 -4
  388. package/sidebar.js +0 -4
  389. package/src/accordion/accordion.d.ts +0 -440
  390. package/src/accordion/index.d.ts +0 -5
  391. package/src/breadcrumb/breadcrumb.d.ts +0 -255
  392. package/src/breadcrumb/index.d.ts +0 -5
  393. package/src/carousel/carousel.d.ts +0 -338
  394. package/src/carousel/index.d.ts +0 -3
  395. package/src/common/h-scroll.d.ts +0 -105
  396. package/src/common/index.d.ts +0 -9
  397. package/src/common/menu-base.d.ts +0 -526
  398. package/src/common/menu-scroll.d.ts +0 -29
  399. package/src/common/v-scroll.d.ts +0 -106
  400. package/src/context-menu/index.d.ts +0 -5
  401. package/src/index.d.ts +0 -13
  402. package/src/menu/index.d.ts +0 -5
  403. package/src/menu/menu.d.ts +0 -121
  404. package/src/sidebar/index.d.ts +0 -5
  405. package/src/sidebar/sidebar.d.ts +0 -321
  406. package/src/tab/index.d.ts +0 -5
  407. package/src/tab/tab.d.ts +0 -650
  408. package/src/toolbar/index.d.ts +0 -5
  409. package/src/toolbar/toolbar.d.ts +0 -470
  410. package/src/treeview/index.d.ts +0 -5
  411. package/src/treeview/treeview.d.ts +0 -1256
  412. package/tab.d.ts +0 -4
  413. package/tab.js +0 -4
  414. package/toolbar.d.ts +0 -4
  415. package/toolbar.js +0 -4
  416. package/treeview.d.ts +0 -4
  417. package/treeview.js +0 -4
@@ -1,88 +1,134 @@
1
- /// <reference path="../common/menu-base-model.d.ts" />
2
- import { INotifyPropertyChanged } from '@syncfusion/ej2-base';
3
- import { ContextMenuModel } from './context-menu-model';
4
- import { MenuBase } from '../common/menu-base';
5
- import { MenuItemModel } from './../common/menu-base-model';
6
- /**
7
- * The ContextMenu is a graphical user interface that appears on the user right click/touch hold operation.
8
- * ```html
9
- * <div id = 'target'></div>
10
- * <ul id = 'contextmenu'></ul>
11
- * ```
12
- * ```typescript
13
- * <script>
14
- * var contextMenuObj = new ContextMenu({items: [{ text: 'Cut' }, { text: 'Copy' },{ text: 'Paste' }], target: '#target'});
15
- * </script>
16
- * ```
17
- */
18
- export declare class ContextMenu extends MenuBase implements INotifyPropertyChanged {
19
- /**
20
- * Constructor for creating the widget.
21
- *
22
- * @private
23
- * @param {ContextMenuModel} options - Specifies the context menu model
24
- * @param {string} element - Specifies the element
25
- */
26
- constructor(options?: ContextMenuModel, element?: string | HTMLUListElement);
27
- /**
28
- * Specifies target element selector in which the ContextMenu should be opened.
29
- *
30
- * @default ''
31
- */
32
- target: string;
33
- /**
34
- * Specifies the filter selector for elements inside the target in that the context menu will be opened.
35
- *
36
- * @default ''
37
- */
38
- filter: string;
39
- /**
40
- * Specifies menu items with its properties which will be rendered as ContextMenu.
41
- *
42
- * @default []
43
- * @aspType object
44
- * @blazorType object
45
- */
46
- items: MenuItemModel[];
47
- /**
48
- * For internal use only - prerender processing.
49
- *
50
- * @private
51
- * @returns {void}
52
- */
53
- protected preRender(): void;
54
- protected initialize(): void;
55
- /**
56
- * This method is used to open the ContextMenu in specified position.
57
- *
58
- * @param {number} top - To specify ContextMenu vertical positioning.
59
- * @param {number} left - To specify ContextMenu horizontal positioning.
60
- * @param {HTMLElement} target - To calculate z-index for ContextMenu based upon the specified target.
61
- * @function open
62
- * @returns {void}
63
- */
64
- open(top: number, left: number, target?: HTMLElement): void;
65
- /**
66
- * Closes the ContextMenu if it is opened.
67
- *
68
- * @function close
69
- * @returns {void}
70
- */
71
- close(): void;
72
- /**
73
- * Called internally if any of the property value changed.
74
- *
75
- * @private
76
- * @param {ContextMenuModel} newProp - Specifies new properties
77
- * @param {ContextMenuModel} oldProp - Specifies old properties
78
- * @returns {void}
79
- */
80
- onPropertyChanged(newProp: ContextMenuModel, oldProp: ContextMenuModel): void;
81
- /**
82
- * Get module name.
83
- *
84
- * @returns {string} - Module Name
85
- * @private
86
- */
87
- protected getModuleName(): string;
88
- }
1
+ /* eslint-disable @typescript-eslint/triple-slash-reference */
2
+ /// <reference path='../common/menu-base-model.d.ts'/>
3
+ import { attributes, getUniqueID, Collection, NotifyPropertyChanges, INotifyPropertyChanged, Property } from '@syncfusion/ej2-base';
4
+ import { getZindexPartial } from '@syncfusion/ej2-popups';
5
+ import { ContextMenuModel } from './context-menu-model';
6
+ import { MenuBase, MenuItem } from '../common/menu-base';
7
+ import { MenuItemModel } from './../common/menu-base-model';
8
+
9
+ /**
10
+ * The ContextMenu is a graphical user interface that appears on the user right click/touch hold operation.
11
+ * ```html
12
+ * <div id = 'target'></div>
13
+ * <ul id = 'contextmenu'></ul>
14
+ * ```
15
+ * ```typescript
16
+ * <script>
17
+ * var contextMenuObj = new ContextMenu({items: [{ text: 'Cut' }, { text: 'Copy' },{ text: 'Paste' }], target: '#target'});
18
+ * </script>
19
+ * ```
20
+ */
21
+ @NotifyPropertyChanges
22
+ export class ContextMenu extends MenuBase implements INotifyPropertyChanged {
23
+ /**
24
+ * Constructor for creating the widget.
25
+ *
26
+ * @private
27
+ * @param {ContextMenuModel} options - Specifies the context menu model
28
+ * @param {string} element - Specifies the element
29
+ */
30
+ constructor(options?: ContextMenuModel, element?: string | HTMLUListElement) {
31
+ super(options, <HTMLUListElement | string>element);
32
+ }
33
+
34
+ /**
35
+ * Specifies target element selector in which the ContextMenu should be opened.
36
+ *
37
+ * @default ''
38
+ */
39
+ @Property('')
40
+ public target: string;
41
+
42
+ /**
43
+ * Specifies the filter selector for elements inside the target in that the context menu will be opened.
44
+ *
45
+ * @default ''
46
+ */
47
+ @Property('')
48
+ public filter: string;
49
+
50
+ /**
51
+ * Specifies menu items with its properties which will be rendered as ContextMenu.
52
+ *
53
+ * @default []
54
+ * @aspType object
55
+ * @blazorType object
56
+ */
57
+ @Collection<MenuItemModel>([], MenuItem)
58
+ public items: MenuItemModel[];
59
+
60
+ /**
61
+ * For internal use only - prerender processing.
62
+ *
63
+ * @private
64
+ * @returns {void}
65
+ */
66
+ protected preRender(): void {
67
+ this.isMenu = false;
68
+ this.element.id = this.element.id || getUniqueID('ej2-contextmenu');
69
+ super.preRender();
70
+ }
71
+
72
+ protected initialize(): void {
73
+ super.initialize();
74
+ attributes(this.element, <{ [key: string]: string }>{ 'role': 'menubar', 'tabindex': '0' });
75
+ this.element.style.zIndex = getZindexPartial(this.element).toString();
76
+ }
77
+
78
+ /**
79
+ * This method is used to open the ContextMenu in specified position.
80
+ *
81
+ * @param {number} top - To specify ContextMenu vertical positioning.
82
+ * @param {number} left - To specify ContextMenu horizontal positioning.
83
+ * @param {HTMLElement} target - To calculate z-index for ContextMenu based upon the specified target.
84
+ * @function open
85
+ * @returns {void}
86
+ */
87
+ public open(top: number, left: number, target?: HTMLElement): void {
88
+ super.openMenu(null, null, top, left, null, target);
89
+ }
90
+
91
+ /**
92
+ * Closes the ContextMenu if it is opened.
93
+ *
94
+ * @function close
95
+ * @returns {void}
96
+ */
97
+ public close(): void {
98
+ super.closeMenu();
99
+ }
100
+
101
+ /**
102
+ * Called internally if any of the property value changed.
103
+ *
104
+ * @private
105
+ * @param {ContextMenuModel} newProp - Specifies new properties
106
+ * @param {ContextMenuModel} oldProp - Specifies old properties
107
+ * @returns {void}
108
+ */
109
+ public onPropertyChanged(newProp: ContextMenuModel, oldProp: ContextMenuModel): void {
110
+ super.onPropertyChanged(newProp, oldProp);
111
+ for (const prop of Object.keys(newProp)) {
112
+ switch (prop) {
113
+ case 'filter':
114
+ this.close();
115
+ this.filter = newProp.filter;
116
+ break;
117
+ case 'target':
118
+ this.unWireEvents(oldProp.target);
119
+ this.wireEvents();
120
+ break;
121
+ }
122
+ }
123
+ }
124
+
125
+ /**
126
+ * Get module name.
127
+ *
128
+ * @returns {string} - Module Name
129
+ * @private
130
+ */
131
+ protected getModuleName(): string {
132
+ return 'contextmenu';
133
+ }
134
+ }
@@ -0,0 +1,302 @@
1
+ /* eslint-disable @typescript-eslint/triple-slash-reference */
2
+ /// <reference path='../common/menu-base-model.d.ts'/>
3
+ import { attributes, NotifyPropertyChanges, INotifyPropertyChanged, Property } from '@syncfusion/ej2-base';
4
+ import { Browser, Complex, getUniqueID, SanitizeHtmlHelper } from '@syncfusion/ej2-base';
5
+ import { MenuBase, FieldSettings } from '../common/menu-base';
6
+ import { MenuItemModel, FieldSettingsModel } from '../common/menu-base-model';
7
+ import { MenuModel } from './menu-model';
8
+
9
+ const VMENU: string = 'e-vertical';
10
+
11
+ const SCROLLABLE: string = 'e-scrollable';
12
+
13
+ const HAMBURGER: string = 'e-hamburger';
14
+
15
+ /**
16
+ * Specifies the option for orientation mode of Menu. By default, component rendered in Horizontal orientation mode.
17
+ */
18
+ export type Orientation = 'Horizontal' | 'Vertical';
19
+
20
+ type objColl = { [key: string]: Object }[];
21
+ type obj = { [key: string]: Object };
22
+
23
+ /**
24
+ * The Menu is a graphical user interface that serve as navigation headers for your application or site.
25
+ * ```html
26
+ * <ul id = 'menu'></ul>
27
+ * ```
28
+ * ```typescript
29
+ * <script>
30
+ * var menuObj = new Menu({ items: [{ text: 'Home' }, { text: 'Contact Us' },{ text: 'Login' }]});
31
+ * menuObj.appendTo("#menu");
32
+ * </script>
33
+ * ```
34
+ */
35
+ @NotifyPropertyChanges
36
+ export class Menu extends MenuBase implements INotifyPropertyChanged {
37
+ private tempItems: objColl = [];
38
+
39
+ /**
40
+ * Specified the orientation of Menu whether it can be horizontal or vertical.
41
+ *
42
+ * @default 'Horizontal'
43
+ */
44
+ @Property('Horizontal')
45
+ public orientation: Orientation;
46
+
47
+ /**
48
+ * Specifies target element to open/close Menu while click in Hamburger mode.
49
+ *
50
+ * @default ''
51
+ */
52
+ @Property('')
53
+ public target: string;
54
+
55
+ /**
56
+ * Specifies the template for Menu item.
57
+ *
58
+ * @default null
59
+ */
60
+ @Property(null)
61
+ public template: string;
62
+
63
+ /**
64
+ * Specifies whether to enable / disable the scrollable option in Menu.
65
+ *
66
+ * @default false
67
+ */
68
+ @Property(false)
69
+ public enableScrolling: boolean;
70
+
71
+ /**
72
+ * Specifies whether to enable / disable the hamburger mode in Menu.
73
+ *
74
+ * @default false
75
+ */
76
+ @Property(false)
77
+ public hamburgerMode: boolean;
78
+
79
+ /**
80
+ * Specifies the title text for hamburger mode in Menu.
81
+ *
82
+ * @default 'Menu'
83
+ */
84
+ @Property('Menu')
85
+ public title: string;
86
+
87
+ /**
88
+ * Defines whether to allow the cross-scripting site or not.
89
+ *
90
+ * @default false
91
+ */
92
+ @Property(false)
93
+ public enableHtmlSanitizer: boolean;
94
+
95
+ /**
96
+ * Specifies mapping fields from the dataSource.
97
+ *
98
+ * @default { itemId: "id", text: "text", parentId: "parentId", iconCss: "iconCss", url: "url", separator: "separator",
99
+ * children: "items" }
100
+ */
101
+ // eslint:disable-next-line
102
+ @Complex<FieldSettingsModel>({ itemId: 'id', text: 'text', parentId: 'parentId', iconCss: 'iconCss', url: 'url', separator: 'separator', children: 'items' }, FieldSettings)
103
+ public fields: FieldSettingsModel;
104
+
105
+ /**
106
+ * Constructor for creating the component.
107
+ *
108
+ * @private
109
+ * @param {MenuModel} options - Specifies the menu model
110
+ * @param {string} element - Specifies the element
111
+ */
112
+ constructor(options?: MenuModel, element?: string | HTMLUListElement) {
113
+ super(options, <HTMLUListElement | string>element);
114
+ }
115
+
116
+ /**
117
+ * Get module name.
118
+ *
119
+ * @private
120
+ * @returns {string} - Module Name
121
+ */
122
+ protected getModuleName(): string {
123
+ return 'menu';
124
+ }
125
+
126
+ /**
127
+ * For internal use only - prerender processing.
128
+ *
129
+ * @private
130
+ * @returns {void}
131
+ */
132
+ protected preRender(): void {
133
+ this.isMenu = true;
134
+ this.element.id = this.element.id || getUniqueID('ej2-menu');
135
+ if (this.template) {
136
+ try {
137
+ if (document.querySelectorAll(this.template).length) {
138
+ this.template = document.querySelector(this.template).innerHTML.trim();
139
+ this.clearChanges();
140
+ }
141
+ } catch (e) {
142
+ /* action on catch */
143
+ }
144
+ } else {
145
+ this.updateMenuItems(this.items);
146
+ }
147
+ super.preRender();
148
+ }
149
+
150
+ protected initialize(): void {
151
+ super.initialize();
152
+ attributes(this.element, <{ [key: string]: string }>{ 'role': 'menubar', 'tabindex': '0' });
153
+ if (this.orientation === 'Vertical') {
154
+ this.element.classList.add(VMENU);
155
+ if (this.hamburgerMode && !this.target) {
156
+ this.element.previousElementSibling.classList.add(VMENU);
157
+ }
158
+ this.element.setAttribute('aria-orientation', 'vertical');
159
+ } else {
160
+ if (Browser.isDevice && !this.enableScrolling) {
161
+ this.element.parentElement.classList.add(SCROLLABLE);
162
+ }
163
+ }
164
+ if (this.hamburgerMode) {
165
+ this.element.parentElement.classList.add(HAMBURGER);
166
+ if (this.orientation === 'Horizontal') {
167
+ this.element.classList.add('e-hide-menu');
168
+ }
169
+ }
170
+ }
171
+
172
+ private updateMenuItems(items: MenuItemModel[]): void {
173
+ this.tempItems = items as objColl;
174
+ this.items = [];
175
+ this.tempItems.map(this.createMenuItems, this);
176
+ this.setProperties({ items: this.items }, true);
177
+ this.tempItems = [];
178
+ }
179
+
180
+ /**
181
+ * Called internally if any of the property value changed.
182
+ *
183
+ * @private
184
+ * @param {MenuModel} newProp - Specifies the new properties.
185
+ * @param {MenuModel} oldProp - Specifies the old properties.
186
+ * @returns {void}
187
+ */
188
+ public onPropertyChanged(newProp: MenuModel, oldProp: MenuModel): void {
189
+ for (const prop of Object.keys(newProp)) {
190
+ switch (prop) {
191
+ case 'orientation':
192
+ if (newProp.orientation === 'Vertical') {
193
+ this.element.classList.add(VMENU);
194
+ if (this.hamburgerMode) {
195
+ if (!this.target) { this.element.previousElementSibling.classList.add(VMENU); }
196
+ this.element.classList.remove('e-hide-menu');
197
+ }
198
+ this.element.setAttribute('aria-orientation', 'vertical');
199
+ } else {
200
+ this.element.classList.remove(VMENU);
201
+ if (this.hamburgerMode) {
202
+ if (!this.target) { this.element.previousElementSibling.classList.remove(VMENU); }
203
+ this.element.classList.add('e-hide-menu');
204
+ }
205
+ this.element.removeAttribute('aria-orientation');
206
+ }
207
+ break;
208
+ case 'items':
209
+ if (!Object.keys(oldProp.items).length) { this.updateMenuItems(newProp.items); }
210
+ break;
211
+ case 'hamburgerMode':
212
+ if (!this.element.previousElementSibling) {
213
+ super.createHeaderContainer();
214
+ }
215
+ if (newProp.hamburgerMode) {
216
+ this.element.parentElement.classList.add(HAMBURGER);
217
+ [].slice.call(this.element.getElementsByClassName('e-blankicon')).forEach((li: HTMLElement): void => {
218
+ li.style[this.enableRtl ? 'paddingRight' : 'paddingLeft'] = '';
219
+ });
220
+ } else {
221
+ this.element.parentElement.classList.remove(HAMBURGER);
222
+ if (this.orientation === 'Vertical') { this.setBlankIconStyle(this.element); }
223
+ }
224
+ if (this.orientation === 'Vertical') {
225
+ if (!this.target) { this.element.previousElementSibling.classList.add(VMENU); }
226
+ this.element.classList.remove('e-hide-menu');
227
+ } else {
228
+ if (this.target) {
229
+ this.element.previousElementSibling.classList.add(VMENU);
230
+ } else {
231
+ this.element.previousElementSibling.classList.remove(VMENU);
232
+ }
233
+ this.element.classList[newProp.hamburgerMode ? 'add' : 'remove']('e-hide-menu');
234
+ }
235
+ break;
236
+ case 'title':
237
+ if (this.hamburgerMode && this.element.previousElementSibling) {
238
+ newProp.title = (this.enableHtmlSanitizer) ? SanitizeHtmlHelper.sanitize(newProp.title) : newProp.title;
239
+ this.element.previousElementSibling.querySelector('.e-menu-title').innerHTML = newProp.title;
240
+ }
241
+ break;
242
+ case 'target':
243
+ if (this.hamburgerMode) {
244
+ this.unWireEvents(oldProp.target);
245
+ this.wireEvents();
246
+ if (this.orientation === 'Horizontal') {
247
+ if (!newProp.target) {
248
+ if (!this.element.previousElementSibling) {
249
+ super.createHeaderContainer();
250
+ }
251
+ this.element.previousElementSibling.classList.remove(VMENU);
252
+ } else {
253
+ this.element.previousElementSibling.classList.add(VMENU);
254
+ }
255
+ this.element.classList.add('e-hide-menu');
256
+ }
257
+ }
258
+ break;
259
+ }
260
+ }
261
+ super.onPropertyChanged(newProp, oldProp);
262
+ }
263
+
264
+ private createMenuItems(item: obj): void {
265
+ let idx: number[];
266
+ let i: number;
267
+ let items: MenuItemModel[] = this.items as objColl;
268
+ const pIdField: string = this.getField('parentId');
269
+ if (item[pIdField]) {
270
+ idx = this.getIndex(item[pIdField].toString(), true);
271
+ for (i = 0; i < idx.length; i++) {
272
+ if (!items[idx[i]].items) {
273
+ items[idx[i]].items = [];
274
+ }
275
+ items = items[idx[i]].items;
276
+ }
277
+ items.push(item);
278
+ } else {
279
+ (<MenuItemModel[]>this.items).push(item);
280
+ }
281
+ }
282
+
283
+ /**
284
+ * This method is used to open the Menu in hamburger mode.
285
+ *
286
+ * @function open
287
+ * @returns {void}
288
+ */
289
+ public open(): void {
290
+ super.openHamburgerMenu();
291
+ }
292
+
293
+ /**
294
+ * Closes the Menu if it is opened in hamburger mode.
295
+ *
296
+ * @function close
297
+ * @returns {void}
298
+ */
299
+ public close(): void {
300
+ super.closeHamburgerMenu();
301
+ }
302
+ }