@syncfusion/ej2-navigations 17.2.55-1205479 → 17.3.14-96615

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 (316) hide show
  1. package/.eslintrc.json +244 -0
  2. package/CHANGELOG.md +898 -786
  3. package/README.md +163 -163
  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 +512 -255
  7. package/dist/es6/ej2-navigations.es2015.js.map +1 -1
  8. package/dist/es6/ej2-navigations.es5.js +642 -385
  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/dist/ts/accordion/accordion.ts +1312 -0
  14. package/dist/ts/common/h-scroll.ts +459 -0
  15. package/dist/ts/common/menu-base.ts +2131 -0
  16. package/dist/ts/common/v-scroll.ts +430 -0
  17. package/dist/ts/context-menu/context-menu.ts +119 -0
  18. package/dist/ts/menu/menu.ts +270 -0
  19. package/dist/ts/sidebar/sidebar.ts +817 -0
  20. package/dist/ts/tab/tab.ts +1761 -0
  21. package/dist/ts/toolbar/toolbar.ts +2076 -0
  22. package/dist/ts/treeview/treeview.ts +5050 -0
  23. package/helpers/e2e/index.js +3 -3
  24. package/license +10 -10
  25. package/package.json +135 -145
  26. package/src/accordion/accordion-model.d.ts +162 -143
  27. package/src/accordion/accordion.d.ts +35 -6
  28. package/src/accordion/accordion.js +193 -71
  29. package/src/common/h-scroll-model.d.ts +5 -5
  30. package/src/common/h-scroll.js +19 -20
  31. package/src/common/index.d.ts +1 -0
  32. package/src/common/index.js +1 -0
  33. package/src/common/menu-base-model.d.ts +157 -157
  34. package/src/common/menu-base.d.ts +19 -0
  35. package/src/common/menu-base.js +97 -24
  36. package/src/common/v-scroll-model.d.ts +5 -5
  37. package/src/common/v-scroll.js +19 -19
  38. package/src/context-menu/context-menu-model.d.ts +15 -15
  39. package/src/context-menu/context-menu.js +19 -19
  40. package/src/menu/menu-model.d.ts +30 -30
  41. package/src/menu/menu.js +19 -19
  42. package/src/sidebar/sidebar-model.d.ts +136 -136
  43. package/src/sidebar/sidebar.js +19 -19
  44. package/src/tab/tab-model.d.ts +215 -215
  45. package/src/tab/tab.d.ts +3 -0
  46. package/src/tab/tab.js +120 -83
  47. package/src/toolbar/toolbar-model.d.ts +175 -175
  48. package/src/toolbar/toolbar.d.ts +2 -1
  49. package/src/toolbar/toolbar.js +30 -24
  50. package/src/treeview/treeview-model.d.ts +323 -323
  51. package/src/treeview/treeview.d.ts +3 -1
  52. package/src/treeview/treeview.js +107 -87
  53. package/styles/accordion/_all.scss +2 -2
  54. package/styles/accordion/_bootstrap-dark-definition.scss +69 -69
  55. package/styles/accordion/_bootstrap-definition.scss +76 -76
  56. package/styles/accordion/_bootstrap4-definition.scss +82 -82
  57. package/styles/accordion/_fabric-dark-definition.scss +74 -74
  58. package/styles/accordion/_fabric-definition.scss +78 -78
  59. package/styles/accordion/_highcontrast-definition.scss +106 -106
  60. package/styles/accordion/_highcontrast-light-definition.scss +104 -104
  61. package/styles/accordion/_layout.scss +447 -447
  62. package/styles/accordion/_material-dark-definition.scss +75 -75
  63. package/styles/accordion/_material-definition.scss +72 -72
  64. package/styles/accordion/_theme.scss +479 -479
  65. package/styles/accordion/icons/_bootstrap-dark.scss +17 -17
  66. package/styles/accordion/icons/_bootstrap.scss +17 -17
  67. package/styles/accordion/icons/_bootstrap4.scss +17 -17
  68. package/styles/accordion/icons/_fabric-dark.scss +17 -17
  69. package/styles/accordion/icons/_fabric.scss +17 -17
  70. package/styles/accordion/icons/_highcontrast-light.scss +17 -17
  71. package/styles/accordion/icons/_highcontrast.scss +17 -17
  72. package/styles/accordion/icons/_material-dark.scss +17 -17
  73. package/styles/accordion/icons/_material.scss +17 -17
  74. package/styles/accordion/material-dark.css +2 -2
  75. package/styles/bootstrap-dark.css +10 -9
  76. package/styles/bootstrap.css +10 -9
  77. package/styles/bootstrap4.css +10 -9
  78. package/styles/bootstrap5-dark.css +0 -0
  79. package/styles/bootstrap5-dark.scss +0 -0
  80. package/styles/bootstrap5.css +0 -0
  81. package/styles/bootstrap5.scss +0 -0
  82. package/styles/context-menu/_all.scss +2 -2
  83. package/styles/context-menu/_bootstrap-dark-definition.scss +54 -54
  84. package/styles/context-menu/_bootstrap-definition.scss +52 -52
  85. package/styles/context-menu/_bootstrap4-definition.scss +52 -52
  86. package/styles/context-menu/_fabric-dark-definition.scss +54 -54
  87. package/styles/context-menu/_fabric-definition.scss +52 -52
  88. package/styles/context-menu/_highcontrast-definition.scss +52 -52
  89. package/styles/context-menu/_highcontrast-light-definition.scss +54 -54
  90. package/styles/context-menu/_layout-mixin.scss +175 -174
  91. package/styles/context-menu/_layout.scss +70 -70
  92. package/styles/context-menu/_material-dark-definition.scss +54 -54
  93. package/styles/context-menu/_material-definition.scss +52 -52
  94. package/styles/context-menu/_theme-mixin.scss +59 -59
  95. package/styles/context-menu/_theme.scss +36 -36
  96. package/styles/context-menu/bootstrap-dark.css +1 -1
  97. package/styles/context-menu/bootstrap.css +1 -1
  98. package/styles/context-menu/bootstrap4.css +1 -1
  99. package/styles/context-menu/fabric-dark.css +1 -1
  100. package/styles/context-menu/fabric.css +1 -1
  101. package/styles/context-menu/highcontrast-light.css +1 -1
  102. package/styles/context-menu/highcontrast.css +1 -1
  103. package/styles/context-menu/icons/_bootstrap-dark.scss +30 -30
  104. package/styles/context-menu/icons/_bootstrap.scss +30 -30
  105. package/styles/context-menu/icons/_bootstrap4.scss +30 -30
  106. package/styles/context-menu/icons/_fabric-dark.scss +30 -30
  107. package/styles/context-menu/icons/_fabric.scss +30 -30
  108. package/styles/context-menu/icons/_highcontrast-light.scss +30 -30
  109. package/styles/context-menu/icons/_highcontrast.scss +30 -30
  110. package/styles/context-menu/icons/_material-dark.scss +30 -30
  111. package/styles/context-menu/icons/_material.scss +30 -30
  112. package/styles/context-menu/material-dark.css +1 -1
  113. package/styles/context-menu/material.css +4 -4
  114. package/styles/fabric-dark.css +10 -9
  115. package/styles/fabric.css +10 -9
  116. package/styles/h-scroll/_all.scss +2 -2
  117. package/styles/h-scroll/_bootstrap-dark-definition.scss +49 -49
  118. package/styles/h-scroll/_bootstrap-definition.scss +50 -50
  119. package/styles/h-scroll/_bootstrap4-definition.scss +49 -49
  120. package/styles/h-scroll/_fabric-dark-definition.scss +50 -50
  121. package/styles/h-scroll/_fabric-definition.scss +48 -48
  122. package/styles/h-scroll/_highcontrast-definition.scss +52 -52
  123. package/styles/h-scroll/_highcontrast-light-definition.scss +54 -54
  124. package/styles/h-scroll/_layout.scss +198 -198
  125. package/styles/h-scroll/_material-dark-definition.scss +77 -77
  126. package/styles/h-scroll/_material-definition.scss +77 -77
  127. package/styles/h-scroll/_theme.scss +157 -157
  128. package/styles/h-scroll/icons/_bootstrap-dark.scss +49 -49
  129. package/styles/h-scroll/icons/_bootstrap.scss +49 -49
  130. package/styles/h-scroll/icons/_bootstrap4.scss +49 -49
  131. package/styles/h-scroll/icons/_fabric-dark.scss +49 -49
  132. package/styles/h-scroll/icons/_fabric.scss +49 -49
  133. package/styles/h-scroll/icons/_highcontrast-light.scss +49 -49
  134. package/styles/h-scroll/icons/_highcontrast.scss +49 -49
  135. package/styles/h-scroll/icons/_material-dark.scss +49 -49
  136. package/styles/h-scroll/icons/_material.scss +49 -49
  137. package/styles/highcontrast-light.css +10 -9
  138. package/styles/highcontrast.css +10 -9
  139. package/styles/material-dark.css +12 -11
  140. package/styles/material.css +24 -14
  141. package/styles/menu/_all.scss +2 -2
  142. package/styles/menu/_bootstrap-dark-definition.scss +63 -63
  143. package/styles/menu/_bootstrap-definition.scss +65 -65
  144. package/styles/menu/_bootstrap4-definition.scss +64 -64
  145. package/styles/menu/_fabric-dark-definition.scss +63 -63
  146. package/styles/menu/_fabric-definition.scss +64 -64
  147. package/styles/menu/_highcontrast-definition.scss +65 -65
  148. package/styles/menu/_highcontrast-light-definition.scss +61 -61
  149. package/styles/menu/_layout.scss +638 -637
  150. package/styles/menu/_material-dark-definition.scss +63 -63
  151. package/styles/menu/_material-definition.scss +64 -64
  152. package/styles/menu/_theme.scss +243 -243
  153. package/styles/menu/bootstrap-dark.css +2 -1
  154. package/styles/menu/bootstrap.css +2 -1
  155. package/styles/menu/bootstrap.scss +1 -0
  156. package/styles/menu/bootstrap4.css +2 -1
  157. package/styles/menu/fabric-dark.css +2 -1
  158. package/styles/menu/fabric.css +2 -1
  159. package/styles/menu/fabric.scss +1 -0
  160. package/styles/menu/highcontrast-light.css +2 -1
  161. package/styles/menu/highcontrast.css +2 -1
  162. package/styles/menu/highcontrast.scss +1 -0
  163. package/styles/menu/icons/_bootstrap-dark.scss +127 -127
  164. package/styles/menu/icons/_bootstrap.scss +127 -127
  165. package/styles/menu/icons/_bootstrap4.scss +127 -127
  166. package/styles/menu/icons/_fabric-dark.scss +127 -127
  167. package/styles/menu/icons/_fabric.scss +127 -127
  168. package/styles/menu/icons/_highcontrast-light.scss +127 -127
  169. package/styles/menu/icons/_highcontrast.scss +127 -127
  170. package/styles/menu/icons/_material-dark.scss +127 -127
  171. package/styles/menu/icons/_material.scss +127 -127
  172. package/styles/menu/material-dark.css +2 -1
  173. package/styles/menu/material.css +4 -3
  174. package/styles/menu/material.scss +1 -0
  175. package/styles/sidebar/_all.scss +3 -3
  176. package/styles/sidebar/_bootstrap-dark-definition.scss +4 -4
  177. package/styles/sidebar/_bootstrap-definition.scss +4 -4
  178. package/styles/sidebar/_bootstrap4-definition.scss +4 -4
  179. package/styles/sidebar/_fabric-dark-definition.scss +4 -4
  180. package/styles/sidebar/_fabric-definition.scss +6 -6
  181. package/styles/sidebar/_highcontrast-definition.scss +4 -4
  182. package/styles/sidebar/_highcontrast-light-definition.scss +4 -4
  183. package/styles/sidebar/_icons.scss +1 -1
  184. package/styles/sidebar/_material-dark-definition.scss +4 -4
  185. package/styles/sidebar/_material-definition.scss +6 -6
  186. package/styles/sidebar/_theme.scss +168 -168
  187. package/styles/sidebar/bootstrap-dark.css +0 -1
  188. package/styles/sidebar/bootstrap.css +0 -1
  189. package/styles/sidebar/bootstrap4.css +0 -1
  190. package/styles/sidebar/fabric-dark.css +0 -1
  191. package/styles/sidebar/fabric.css +0 -1
  192. package/styles/sidebar/highcontrast-light.css +0 -1
  193. package/styles/sidebar/highcontrast.css +0 -1
  194. package/styles/sidebar/material-dark.css +0 -1
  195. package/styles/sidebar/material.css +0 -1
  196. package/styles/tab/_all.scss +2 -2
  197. package/styles/tab/_bootstrap-dark-definition.scss +386 -386
  198. package/styles/tab/_bootstrap-definition.scss +396 -396
  199. package/styles/tab/_bootstrap4-definition.scss +401 -401
  200. package/styles/tab/_fabric-dark-definition.scss +394 -394
  201. package/styles/tab/_fabric-definition.scss +410 -410
  202. package/styles/tab/_highcontrast-definition.scss +434 -434
  203. package/styles/tab/_highcontrast-light-definition.scss +423 -423
  204. package/styles/tab/_icons.scss +43 -43
  205. package/styles/tab/_layout.scss +3528 -3521
  206. package/styles/tab/_material-dark-definition.scss +407 -407
  207. package/styles/tab/_material-definition.scss +416 -416
  208. package/styles/tab/_theme.scss +1751 -1751
  209. package/styles/tab/bootstrap-dark.css +7 -2
  210. package/styles/tab/bootstrap.css +7 -2
  211. package/styles/tab/bootstrap4.css +7 -2
  212. package/styles/tab/fabric-dark.css +7 -2
  213. package/styles/tab/fabric.css +7 -2
  214. package/styles/tab/highcontrast-light.css +7 -2
  215. package/styles/tab/highcontrast.css +7 -2
  216. package/styles/tab/icons/_bootstrap-dark.scss +132 -132
  217. package/styles/tab/icons/_bootstrap.scss +132 -132
  218. package/styles/tab/icons/_bootstrap4.scss +132 -132
  219. package/styles/tab/icons/_fabric-dark.scss +132 -132
  220. package/styles/tab/icons/_fabric.scss +132 -132
  221. package/styles/tab/icons/_highcontrast-light.scss +132 -132
  222. package/styles/tab/icons/_highcontrast.scss +132 -132
  223. package/styles/tab/icons/_material-dark.scss +132 -132
  224. package/styles/tab/icons/_material.scss +132 -132
  225. package/styles/tab/material-dark.css +7 -2
  226. package/styles/tab/material.css +7 -2
  227. package/styles/tailwind-dark.css +0 -0
  228. package/styles/tailwind-dark.scss +0 -0
  229. package/styles/tailwind.css +0 -0
  230. package/styles/tailwind.scss +0 -0
  231. package/styles/toolbar/_all.scss +2 -2
  232. package/styles/toolbar/_bootstrap-dark-definition.scss +135 -135
  233. package/styles/toolbar/_bootstrap-definition.scss +134 -134
  234. package/styles/toolbar/_bootstrap4-definition.scss +139 -139
  235. package/styles/toolbar/_fabric-dark-definition.scss +155 -155
  236. package/styles/toolbar/_fabric-definition.scss +139 -139
  237. package/styles/toolbar/_highcontrast-definition.scss +149 -149
  238. package/styles/toolbar/_highcontrast-light-definition.scss +164 -164
  239. package/styles/toolbar/_layout.scss +1460 -1460
  240. package/styles/toolbar/_material-dark-definition.scss +180 -180
  241. package/styles/toolbar/_material-definition.scss +164 -164
  242. package/styles/toolbar/_theme.scss +451 -451
  243. package/styles/toolbar/bootstrap-dark.css +0 -1
  244. package/styles/toolbar/bootstrap.css +0 -1
  245. package/styles/toolbar/bootstrap.scss +1 -0
  246. package/styles/toolbar/bootstrap4.css +0 -1
  247. package/styles/toolbar/fabric-dark.css +0 -1
  248. package/styles/toolbar/fabric.css +0 -1
  249. package/styles/toolbar/fabric.scss +1 -0
  250. package/styles/toolbar/highcontrast-light.css +0 -1
  251. package/styles/toolbar/highcontrast.css +0 -1
  252. package/styles/toolbar/highcontrast.scss +1 -0
  253. package/styles/toolbar/icons/_bootstrap-dark.scss +16 -16
  254. package/styles/toolbar/icons/_bootstrap.scss +16 -16
  255. package/styles/toolbar/icons/_bootstrap4.scss +16 -16
  256. package/styles/toolbar/icons/_fabric-dark.scss +16 -16
  257. package/styles/toolbar/icons/_fabric.scss +16 -16
  258. package/styles/toolbar/icons/_highcontrast-light.scss +16 -16
  259. package/styles/toolbar/icons/_highcontrast.scss +16 -16
  260. package/styles/toolbar/icons/_material-dark.scss +16 -16
  261. package/styles/toolbar/icons/_material.scss +16 -16
  262. package/styles/toolbar/material-dark.css +0 -1
  263. package/styles/toolbar/material.css +0 -1
  264. package/styles/toolbar/material.scss +1 -0
  265. package/styles/treeview/_all.scss +2 -2
  266. package/styles/treeview/_bootstrap-dark-definition.scss +131 -131
  267. package/styles/treeview/_bootstrap-definition.scss +127 -127
  268. package/styles/treeview/_bootstrap4-definition.scss +153 -153
  269. package/styles/treeview/_fabric-dark-definition.scss +130 -130
  270. package/styles/treeview/_fabric-definition.scss +126 -126
  271. package/styles/treeview/_highcontrast-definition.scss +132 -132
  272. package/styles/treeview/_highcontrast-light-definition.scss +137 -137
  273. package/styles/treeview/_layout.scss +551 -551
  274. package/styles/treeview/_material-dark-definition.scss +126 -126
  275. package/styles/treeview/_material-definition.scss +126 -126
  276. package/styles/treeview/_theme.scss +331 -331
  277. package/styles/treeview/bootstrap-dark.css +0 -3
  278. package/styles/treeview/bootstrap.css +0 -3
  279. package/styles/treeview/bootstrap4.css +0 -3
  280. package/styles/treeview/fabric-dark.css +0 -3
  281. package/styles/treeview/fabric.css +0 -3
  282. package/styles/treeview/highcontrast-light.css +0 -3
  283. package/styles/treeview/highcontrast.css +0 -3
  284. package/styles/treeview/icons/_bootstrap-dark.scss +39 -39
  285. package/styles/treeview/icons/_bootstrap.scss +39 -39
  286. package/styles/treeview/icons/_bootstrap4.scss +39 -39
  287. package/styles/treeview/icons/_fabric-dark.scss +43 -43
  288. package/styles/treeview/icons/_fabric.scss +43 -43
  289. package/styles/treeview/icons/_highcontrast-light.scss +43 -43
  290. package/styles/treeview/icons/_highcontrast.scss +43 -43
  291. package/styles/treeview/icons/_material-dark.scss +43 -43
  292. package/styles/treeview/icons/_material.scss +43 -43
  293. package/styles/treeview/material-dark.css +0 -3
  294. package/styles/treeview/material.css +9 -3
  295. package/styles/v-scroll/_all.scss +2 -2
  296. package/styles/v-scroll/_bootstrap-dark-definition.scss +50 -50
  297. package/styles/v-scroll/_bootstrap-definition.scss +49 -49
  298. package/styles/v-scroll/_bootstrap4-definition.scss +49 -49
  299. package/styles/v-scroll/_fabric-dark-definition.scss +51 -51
  300. package/styles/v-scroll/_fabric-definition.scss +50 -50
  301. package/styles/v-scroll/_highcontrast-definition.scss +51 -51
  302. package/styles/v-scroll/_highcontrast-light-definition.scss +52 -52
  303. package/styles/v-scroll/_layout.scss +162 -162
  304. package/styles/v-scroll/_material-dark-definition.scss +78 -78
  305. package/styles/v-scroll/_material-definition.scss +77 -77
  306. package/styles/v-scroll/_theme.scss +133 -133
  307. package/styles/v-scroll/icons/_bootstrap-dark.scss +26 -26
  308. package/styles/v-scroll/icons/_bootstrap.scss +26 -26
  309. package/styles/v-scroll/icons/_bootstrap4.scss +26 -26
  310. package/styles/v-scroll/icons/_fabric-dark.scss +26 -26
  311. package/styles/v-scroll/icons/_fabric.scss +26 -26
  312. package/styles/v-scroll/icons/_highcontrast-light.scss +26 -26
  313. package/styles/v-scroll/icons/_highcontrast.scss +26 -26
  314. package/styles/v-scroll/icons/_material-dark.scss +26 -26
  315. package/styles/v-scroll/icons/_material.scss +26 -26
  316. package/tslint.json +111 -0
@@ -1,25 +1,25 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- }
8
- return function (d, b) {
9
- extendStatics(d, b);
10
- function __() { this.constructor = d; }
11
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
- };
13
- })();
14
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
15
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
17
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
18
- return c > 3 && r && Object.defineProperty(target, key, r), r;
19
- };
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ extendStatics(d, b);
10
+ function __() { this.constructor = d; }
11
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
+ };
13
+ })();
14
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
15
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
17
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
18
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
19
+ };
20
20
  import { Component, EventHandler, Property, Event, KeyboardEvents, rippleEffect } from '@syncfusion/ej2-base';
21
21
  import { getUniqueID, compile as templateCompiler } from '@syncfusion/ej2-base';
22
- import { isVisible, closest, attributes, detach, select, isBlazor } from '@syncfusion/ej2-base';
22
+ import { isVisible, closest, attributes, detach, select, isBlazor, addClass, append } from '@syncfusion/ej2-base';
23
23
  import { NotifyPropertyChanges, ChildProperty, Collection, Animation } from '@syncfusion/ej2-base';
24
24
  import { setStyleAttribute as setStyle, Complex, updateBlazorTemplate } from '@syncfusion/ej2-base';
25
25
  import { isNullOrUndefined as isNOU, formatUnit, selectAll } from '@syncfusion/ej2-base';
@@ -193,12 +193,12 @@ var Accordion = /** @class */ (function (_super) {
193
193
  * @private
194
194
  */
195
195
  Accordion.prototype.render = function () {
196
+ this.initializeheaderTemplate();
197
+ this.initializeItemTemplate();
196
198
  this.initialize();
197
199
  this.renderControl();
198
200
  this.wireEvents();
199
- if (isBlazor()) {
200
- this.renderComplete();
201
- }
201
+ this.renderComplete();
202
202
  };
203
203
  Accordion.prototype.initialize = function () {
204
204
  var width = formatUnit(this.width);
@@ -239,6 +239,51 @@ var Accordion = /** @class */ (function (_super) {
239
239
  });
240
240
  }
241
241
  };
242
+ Accordion.prototype.templateParser = function (template) {
243
+ if (template) {
244
+ try {
245
+ if (document.querySelectorAll(template).length) {
246
+ return templateCompiler(document.querySelector(template).innerHTML.trim());
247
+ }
248
+ }
249
+ catch (error) {
250
+ return templateCompiler(template);
251
+ }
252
+ }
253
+ return undefined;
254
+ };
255
+ Accordion.prototype.initializeheaderTemplate = function () {
256
+ if (this.headerTemplate) {
257
+ this.headerTemplateFn = this.templateParser(this.headerTemplate);
258
+ }
259
+ };
260
+ Accordion.prototype.initializeItemTemplate = function () {
261
+ if (this.itemTemplate) {
262
+ this.itemTemplateFn = this.templateParser(this.itemTemplate);
263
+ }
264
+ };
265
+ Accordion.prototype.getheaderTemplate = function () {
266
+ return this.headerTemplateFn;
267
+ };
268
+ Accordion.prototype.getItemTemplate = function () {
269
+ return this.itemTemplateFn;
270
+ };
271
+ Accordion.prototype.updateContentBlazorTemplate = function (item, index) {
272
+ if (this.itemTemplate && isBlazor() && !this.isStringTemplate) {
273
+ updateBlazorTemplate(this.element.id + '_itemTemplate', 'ItemTemplate', this, false);
274
+ }
275
+ if (item && item.content && isBlazor() && !this.isStringTemplate && item.content.indexOf('<div>Blazor') === 0) {
276
+ updateBlazorTemplate(this.element.id + index + '_content', 'ContentTemplate', item);
277
+ }
278
+ };
279
+ Accordion.prototype.updateHeaderBlazorTemplate = function (item, index) {
280
+ if (this.headerTemplate && isBlazor() && !this.isStringTemplate) {
281
+ updateBlazorTemplate(this.element.id + '_headerTemplate', 'HeaderTemplate', this, false);
282
+ }
283
+ if (item && item.header && isBlazor() && !this.isStringTemplate && item.header.indexOf('<div>Blazor') === 0) {
284
+ updateBlazorTemplate(this.element.id + index + '_header', 'HeaderTemplate', item);
285
+ }
286
+ };
242
287
  Accordion.prototype.focusIn = function (e) {
243
288
  e.target.parentElement.classList.add(CLS_ITEMFOCUS);
244
289
  };
@@ -256,13 +301,15 @@ var Accordion = /** @class */ (function (_super) {
256
301
  innerEles = this.element.children;
257
302
  }
258
303
  var items = [];
304
+ /* tslint:disable */
259
305
  [].slice.call(innerEles).forEach(function (el) {
260
306
  items.push({
261
- header: (el.childElementCount > 0 && el.children[0]) ? (el.children[0]).innerHTML : '',
262
- content: (el.childElementCount > 1 && el.children[1]) ? (el.children[1]).innerHTML : ''
307
+ header: (el.childElementCount > 0 && el.children[0]) ? (el.children[0]) : '',
308
+ content: (el.childElementCount > 1 && el.children[1]) ? (el.children[1]) : ''
263
309
  });
264
310
  el.parentNode.removeChild(el);
265
311
  });
312
+ /* tslint:enable */
266
313
  if (rootEle) {
267
314
  this.element.removeChild(rootEle);
268
315
  }
@@ -292,32 +339,43 @@ var Accordion = /** @class */ (function (_super) {
292
339
  var _this = this;
293
340
  var ele = this.element;
294
341
  var innerItem;
342
+ var innerDataSourceItem;
295
343
  if (isNOU(this.initExpand)) {
296
344
  this.initExpand = [];
297
345
  }
298
346
  if (!isNOU(this.trgtEle)) {
299
347
  this.ctrlTemplate();
300
348
  }
301
- var items = this.items;
302
- if (ele && items.length > 0) {
303
- items.forEach(function (item, index) {
304
- innerItem = _this.renderInnerItem(item, index);
305
- ele.appendChild(innerItem);
306
- var blazorContain = Object.keys(window);
307
- if (item.header && blazorContain.indexOf('Blazor') > -1 && !_this.isStringTemplate
308
- && item.header.indexOf('<div>Blazor') === 0) {
309
- updateBlazorTemplate(_this.element.id + index + '_header', 'HeaderTemplate', item);
310
- }
311
- if (innerItem.childElementCount > 0) {
312
- EventHandler.add(innerItem.querySelector('.' + CLS_HEADER), 'focus', _this.focusIn, _this);
313
- EventHandler.add(innerItem.querySelector('.' + CLS_HEADER), 'blur', _this.focusOut, _this);
349
+ if (this.dataSource.length > 0) {
350
+ this.dataSource.forEach(function (item, index) {
351
+ innerDataSourceItem = _this.renderInnerItem(item, index);
352
+ ele.appendChild(innerDataSourceItem);
353
+ if (innerDataSourceItem.childElementCount > 0) {
354
+ EventHandler.add(innerDataSourceItem.querySelector('.' + CLS_HEADER), 'focus', _this.focusIn, _this);
355
+ EventHandler.add(innerDataSourceItem.querySelector('.' + CLS_HEADER), 'blur', _this.focusOut, _this);
314
356
  }
315
357
  });
358
+ this.updateHeaderBlazorTemplate();
359
+ }
360
+ else {
361
+ var items = this.items;
362
+ if (ele && items.length > 0) {
363
+ items.forEach(function (item, index) {
364
+ innerItem = _this.renderInnerItem(item, index);
365
+ ele.appendChild(innerItem);
366
+ _this.updateHeaderBlazorTemplate(item, index);
367
+ if (innerItem.childElementCount > 0) {
368
+ EventHandler.add(innerItem.querySelector('.' + CLS_HEADER), 'focus', _this.focusIn, _this);
369
+ EventHandler.add(innerItem.querySelector('.' + CLS_HEADER), 'blur', _this.focusOut, _this);
370
+ }
371
+ });
372
+ }
316
373
  }
317
374
  };
318
375
  Accordion.prototype.clickHandler = function (e) {
319
376
  var _this = this;
320
377
  var trgt = e.target;
378
+ var items = this.getItems();
321
379
  var eventArgs = {};
322
380
  var index;
323
381
  var tglIcon;
@@ -346,17 +404,13 @@ var Accordion = /** @class */ (function (_super) {
346
404
  var acrdActive = [];
347
405
  index = this.getIndexByItem(acrdnItem);
348
406
  if (acrdnCtnItem) {
349
- eventArgs.item = this.items[this.getIndexByItem(acrdnCtnItem)];
407
+ eventArgs.item = items[this.getIndexByItem(acrdnCtnItem)];
350
408
  }
351
409
  eventArgs.originalEvent = e;
352
410
  var ctnCheck = !isNOU(tglIcon) && acrdnItem.childElementCount <= 1;
353
411
  if (ctnCheck && (isNOU(acrdnCtn) || !isNOU(select('.' + CLS_HEADER + ' .' + CLS_TOOGLEICN, acrdnCtnItem)))) {
354
412
  acrdnItem.appendChild(this.contentRendering(index));
355
- var blazorContain = Object.keys(window);
356
- if (eventArgs.item.content && blazorContain.indexOf('Blazor') > -1 && !this.isStringTemplate
357
- && eventArgs.item.content.indexOf('<div>Blazor') === 0) {
358
- updateBlazorTemplate(this.element.id + index + '_content', 'ContentTemplate', eventArgs.item);
359
- }
413
+ this.updateContentBlazorTemplate(eventArgs.item, index);
360
414
  this.ariaAttrUpdate(acrdnItem);
361
415
  }
362
416
  this.trigger('clicked', eventArgs);
@@ -463,9 +517,10 @@ var Accordion = /** @class */ (function (_super) {
463
517
  };
464
518
  Accordion.prototype.headerEleGenerate = function () {
465
519
  var header = this.createElement('div', { className: CLS_HEADER, id: getUniqueID('acrdn_header') });
520
+ var items = this.getItems();
466
521
  var ariaAttr = {
467
- 'tabindex': '0', 'role': 'heading', 'aria-expanded': 'false', 'aria-selected': 'false',
468
- 'aria-disabled': 'false', 'aria-level': this.items.length.toString()
522
+ 'tabindex': '0', 'role': 'heading', 'aria-selected': 'false',
523
+ 'aria-disabled': 'false', 'aria-level': items.length.toString()
469
524
  };
470
525
  attributes(header, ariaAttr);
471
526
  return header;
@@ -474,6 +529,17 @@ var Accordion = /** @class */ (function (_super) {
474
529
  var innerEle;
475
530
  innerEle = this.createElement('div', { className: CLS_ITEM });
476
531
  innerEle.id = getUniqueID('acrdn_item');
532
+ attributes(innerEle, { 'aria-expanded': 'false' });
533
+ if (this.headerTemplate) {
534
+ var ctnEle = this.headerEleGenerate();
535
+ var hdrEle = this.createElement('div', { className: CLS_HEADERCTN });
536
+ ctnEle.appendChild(hdrEle);
537
+ append(this.getheaderTemplate()(item, this, 'headerTemplate', this.element.id + '_headerTemplate', false), hdrEle);
538
+ innerEle.appendChild(ctnEle);
539
+ ctnEle.appendChild(this.toggleIconGenerate());
540
+ this.add(innerEle, CLS_SLCT);
541
+ return innerEle;
542
+ }
477
543
  if (item.header && this.angularnativeCondiCheck(item, 'header')) {
478
544
  var ctnEle = this.headerEleGenerate();
479
545
  var hdrEle = this.createElement('div', { className: CLS_HEADERCTN });
@@ -488,7 +554,12 @@ var Accordion = /** @class */ (function (_super) {
488
554
  }
489
555
  }
490
556
  if (item.cssClass) {
491
- innerEle.classList.add(item.cssClass);
557
+ var acrdnClass = item.cssClass;
558
+ var arcdnClassList = [];
559
+ arcdnClassList = acrdnClass.split(' ');
560
+ arcdnClassList.forEach(function (el) {
561
+ addClass([innerEle], el);
562
+ });
492
563
  }
493
564
  if (item.iconCss) {
494
565
  var hdrIcnEle = this.createElement('div', { className: CLS_HEADERICN });
@@ -535,7 +606,6 @@ var Accordion = /** @class */ (function (_super) {
535
606
  }
536
607
  };
537
608
  Accordion.prototype.fetchElement = function (ele, value, index, isHeader) {
538
- var blazorContain = Object.keys(window);
539
609
  var templateFn;
540
610
  var temString;
541
611
  try {
@@ -547,8 +617,14 @@ var Accordion = /** @class */ (function (_super) {
547
617
  }
548
618
  }
549
619
  catch (e) {
550
- if (typeof (value) === 'string' && blazorContain.indexOf('Blazor') > -1 && value.indexOf('<div>Blazor') !== 0) {
620
+ if (typeof (value) === 'string' && isBlazor() && value.indexOf('<div>Blazor') !== 0) {
551
621
  ele.innerHTML = value;
622
+ /* tslint:disable */
623
+ }
624
+ else if (!isNOU(this.trgtEle) && (value instanceof (HTMLElement))) {
625
+ ele.appendChild(value);
626
+ ele.firstElementChild.style.display = '';
627
+ /* tslint:enable */
552
628
  }
553
629
  else {
554
630
  templateFn = templateCompiler(value);
@@ -588,18 +664,25 @@ var Accordion = /** @class */ (function (_super) {
588
664
  var content = select('.' + CLS_CONTENT, itemEle);
589
665
  header.setAttribute('aria-controls', content.id);
590
666
  content.setAttribute('aria-labelledby', header.id);
667
+ content.setAttribute('role', 'definition');
591
668
  };
592
669
  Accordion.prototype.contentRendering = function (index) {
593
- var content = this.items[index].content;
594
670
  var itemcnt = this.createElement('div', { className: CLS_CONTENT + ' ' + CLS_CTNHIDE, id: getUniqueID('acrdn_panel') });
595
671
  attributes(itemcnt, { 'aria-hidden': 'true' });
596
672
  var ctn = this.createElement('div', { className: CLS_CTENT });
597
- itemcnt.appendChild(this.fetchElement(ctn, content, index, false));
673
+ if (this.dataSource.length > 0) {
674
+ append(this.getItemTemplate()(this.dataSource[index], this, 'itemTemplate', this.element.id + '_itemTemplate', false), ctn);
675
+ itemcnt.appendChild(ctn);
676
+ }
677
+ else {
678
+ itemcnt.appendChild(this.fetchElement(ctn, this.items[index].content, index, false));
679
+ }
598
680
  return itemcnt;
599
681
  };
600
682
  Accordion.prototype.expand = function (trgt) {
601
683
  var _this = this;
602
684
  var eventArgs;
685
+ var items = this.getItems();
603
686
  var trgtItemEle = closest(trgt, '.' + CLS_ITEM);
604
687
  if (isNOU(trgt) || (isVisible(trgt) && trgt.getAttribute('e-animate') !== 'true') || trgtItemEle.classList.contains(CLS_DISABLE)) {
605
688
  return;
@@ -613,7 +696,7 @@ var Accordion = /** @class */ (function (_super) {
613
696
  };
614
697
  var icon = select('.' + CLS_TOOGLEICN, trgtItemEle).firstElementChild;
615
698
  eventArgs = { element: trgtItemEle,
616
- item: this.items[this.getIndexByItem(trgtItemEle)],
699
+ item: items[this.getIndexByItem(trgtItemEle)],
617
700
  index: this.getIndexByItem(trgtItemEle),
618
701
  content: trgtItemEle.querySelector('.' + CLS_CONTENT),
619
702
  isExpanded: true };
@@ -676,7 +759,8 @@ var Accordion = /** @class */ (function (_super) {
676
759
  if (progress === 'end') {
677
760
  this.add(trgtItemEle, CLS_ACTIVE);
678
761
  trgt.setAttribute('aria-hidden', 'false');
679
- attributes(trgt.previousElementSibling, { 'aria-selected': 'true', 'aria-expanded': 'true' });
762
+ attributes(trgtItemEle, { 'aria-expanded': 'true' });
763
+ attributes(trgt.previousElementSibling, { 'aria-selected': 'true' });
680
764
  icon.classList.remove(CLS_TOGANIMATE);
681
765
  this.trigger('expanded', eventArgs);
682
766
  }
@@ -708,6 +792,7 @@ var Accordion = /** @class */ (function (_super) {
708
792
  Accordion.prototype.collapse = function (trgt) {
709
793
  var _this = this;
710
794
  var eventArgs;
795
+ var items = this.getItems();
711
796
  var trgtItemEle = closest(trgt, '.' + CLS_ITEM);
712
797
  if (isNOU(trgt) || !isVisible(trgt) || trgtItemEle.classList.contains(CLS_DISABLE)) {
713
798
  return;
@@ -719,7 +804,7 @@ var Accordion = /** @class */ (function (_super) {
719
804
  };
720
805
  var icon = select('.' + CLS_TOOGLEICN, trgtItemEle).firstElementChild;
721
806
  eventArgs = { element: trgtItemEle,
722
- item: this.items[this.getIndexByItem(trgtItemEle)],
807
+ item: items[this.getIndexByItem(trgtItemEle)],
723
808
  index: this.getIndexByItem(trgtItemEle),
724
809
  content: trgtItemEle.querySelector('.' + CLS_CONTENT),
725
810
  isExpanded: false };
@@ -787,7 +872,8 @@ var Accordion = /** @class */ (function (_super) {
787
872
  icon.classList.remove(CLS_TOGANIMATE);
788
873
  this.remove(trgtItemEle, CLS_ACTIVE);
789
874
  trgt.setAttribute('aria-hidden', 'true');
790
- attributes(trgt.previousElementSibling, { 'aria-selected': 'false', 'aria-expanded': 'false' });
875
+ attributes(trgtItemEle, { 'aria-expanded': 'false' });
876
+ attributes(trgt.previousElementSibling, { 'aria-selected': 'false' });
791
877
  this.trigger('expanded', eventArgs);
792
878
  }
793
879
  };
@@ -800,15 +886,26 @@ var Accordion = /** @class */ (function (_super) {
800
886
  return 'accordion';
801
887
  };
802
888
  Accordion.prototype.itemAttribUpdate = function () {
889
+ var items = this.getItems();
803
890
  var itemEle = this.getItemElements();
804
- var itemLen = this.items.length;
891
+ var itemLen = items.length;
805
892
  itemEle.forEach(function (ele) {
806
893
  select('.' + CLS_HEADER, ele).setAttribute('aria-level', '' + itemLen);
807
894
  });
808
895
  };
896
+ Accordion.prototype.getItems = function () {
897
+ var items;
898
+ if (this.itemTemplate && this.headerTemplate) {
899
+ items = this.dataSource;
900
+ }
901
+ else {
902
+ items = this.items;
903
+ }
904
+ return items;
905
+ };
809
906
  /**
810
907
  * Adds new item to the Accordion with the specified index of the Accordion.
811
- * @param {AccordionItemModel} item - Item array that is to be added to the Accordion.
908
+ * @param {AccordionItemModel | Object} item - Item array that is to be added to the Accordion.
812
909
  * @param {number} index - Number value that determines where the item should be added.
813
910
  * By default, item is added at the last index if the index is not specified.
814
911
  * @returns void
@@ -816,11 +913,12 @@ var Accordion = /** @class */ (function (_super) {
816
913
  Accordion.prototype.addItem = function (item, index) {
817
914
  var ele = this.element;
818
915
  var itemEle = this.getItemElements();
916
+ var items = this.getItems();
819
917
  if (isNOU(index)) {
820
- index = this.items.length;
918
+ index = items.length;
821
919
  }
822
920
  if (ele.childElementCount >= index) {
823
- this.items.splice(index, 0, item);
921
+ items.splice(index, 0, item);
824
922
  var innerItemEle = this.renderInnerItem(item, index);
825
923
  if (ele.childElementCount === index) {
826
924
  ele.appendChild(innerItemEle);
@@ -828,13 +926,14 @@ var Accordion = /** @class */ (function (_super) {
828
926
  else {
829
927
  ele.insertBefore(innerItemEle, itemEle[index]);
830
928
  }
929
+ this.updateHeaderBlazorTemplate();
831
930
  EventHandler.add(innerItemEle.querySelector('.' + CLS_HEADER), 'focus', this.focusIn, this);
832
931
  EventHandler.add(innerItemEle.querySelector('.' + CLS_HEADER), 'blur', this.focusOut, this);
833
932
  this.itemAttribUpdate();
834
933
  }
835
934
  this.expandedItems = [];
836
935
  this.expandedItemRefresh(ele);
837
- if (item.expanded) {
936
+ if (item && item.expanded) {
838
937
  this.expandItem(true, index);
839
938
  }
840
939
  };
@@ -855,12 +954,13 @@ var Accordion = /** @class */ (function (_super) {
855
954
  Accordion.prototype.removeItem = function (index) {
856
955
  var itemEle = this.getItemElements();
857
956
  var ele = itemEle[index];
957
+ var items = this.getItems();
858
958
  if (isNOU(ele)) {
859
959
  return;
860
960
  }
861
961
  this.restoreContent(index);
862
962
  detach(ele);
863
- this.items.splice(index, 1);
963
+ items.splice(index, 1);
864
964
  this.itemAttribUpdate();
865
965
  this.expandedItems = [];
866
966
  this.expandedItemRefresh(this.element);
@@ -971,17 +1071,14 @@ var Accordion = /** @class */ (function (_super) {
971
1071
  };
972
1072
  Accordion.prototype.itemExpand = function (isExpand, ele, index) {
973
1073
  var ctn = ele.children[1];
1074
+ var items = this.getItems();
974
1075
  if (ele.classList.contains(CLS_DISABLE)) {
975
1076
  return;
976
1077
  }
977
1078
  if (isNOU(ctn) && isExpand) {
978
1079
  ctn = this.contentRendering(index);
979
1080
  ele.appendChild(ctn);
980
- var blazorContain = Object.keys(window);
981
- var item = this.items[index];
982
- if (item.content && blazorContain.indexOf('Blazor') > -1 && !this.isStringTemplate && item.content.indexOf('<div>Blazor') === 0) {
983
- updateBlazorTemplate(this.element.id + index + '_content', 'ContentTemplate', item);
984
- }
1081
+ this.updateContentBlazorTemplate(items[index], index);
985
1082
  this.ariaAttrUpdate(ele);
986
1083
  }
987
1084
  else if (isNOU(ctn)) {
@@ -1011,8 +1108,9 @@ var Accordion = /** @class */ (function (_super) {
1011
1108
  };
1012
1109
  Accordion.prototype.updateItem = function (item, index) {
1013
1110
  if (!isNOU(item)) {
1014
- var itemObj = this.items[index];
1015
- this.items.splice(index, 1);
1111
+ var items = this.getItems();
1112
+ var itemObj = items[index];
1113
+ items.splice(index, 1);
1016
1114
  this.restoreContent(index);
1017
1115
  detach(item);
1018
1116
  this.addItem(itemObj, index);
@@ -1031,6 +1129,7 @@ var Accordion = /** @class */ (function (_super) {
1031
1129
  */
1032
1130
  Accordion.prototype.onPropertyChanged = function (newProp, oldProp) {
1033
1131
  var acrdn = this.element;
1132
+ var isRefresh = false;
1034
1133
  for (var _i = 0, _a = Object.keys(newProp); _i < _a.length; _i++) {
1035
1134
  var prop = _a[_i];
1036
1135
  switch (prop) {
@@ -1060,11 +1159,20 @@ var Accordion = /** @class */ (function (_super) {
1060
1159
  }
1061
1160
  }
1062
1161
  else {
1063
- this.destroyItems();
1064
- this.renderItems();
1065
- this.initItemExpand();
1162
+ isRefresh = true;
1066
1163
  }
1067
1164
  break;
1165
+ case 'dataSource':
1166
+ isRefresh = true;
1167
+ break;
1168
+ case 'headerTemplate':
1169
+ this.initializeheaderTemplate();
1170
+ isRefresh = true;
1171
+ break;
1172
+ case 'itemTemplate':
1173
+ this.initializeItemTemplate();
1174
+ isRefresh = true;
1175
+ break;
1068
1176
  case 'enableRtl':
1069
1177
  newProp.enableRtl ? this.add(acrdn, CLS_RTL) : this.remove(acrdn, CLS_RTL);
1070
1178
  break;
@@ -1087,10 +1195,24 @@ var Accordion = /** @class */ (function (_super) {
1087
1195
  break;
1088
1196
  }
1089
1197
  }
1198
+ if (isRefresh) {
1199
+ this.destroyItems();
1200
+ this.renderItems();
1201
+ this.initItemExpand();
1202
+ }
1090
1203
  };
1091
1204
  __decorate([
1092
1205
  Collection([], AccordionItem)
1093
1206
  ], Accordion.prototype, "items", void 0);
1207
+ __decorate([
1208
+ Property([])
1209
+ ], Accordion.prototype, "dataSource", void 0);
1210
+ __decorate([
1211
+ Property()
1212
+ ], Accordion.prototype, "itemTemplate", void 0);
1213
+ __decorate([
1214
+ Property()
1215
+ ], Accordion.prototype, "headerTemplate", void 0);
1094
1216
  __decorate([
1095
1217
  Property('100%')
1096
1218
  ], Accordion.prototype, "width", void 0);
@@ -1,4 +1,4 @@
1
- import { Touch, ScrollEventArgs, TouchEventArgs, Component, EventHandler, selectAll, getUniqueID } from '@syncfusion/ej2-base';import { NotifyPropertyChanges, INotifyPropertyChanged, Property, Browser, detach } from '@syncfusion/ej2-base';import { classList, SwipeEventArgs, isNullOrUndefined} from '@syncfusion/ej2-base';
1
+ import { Touch, ScrollEventArgs, TouchEventArgs, Component, EventHandler, selectAll, getUniqueID } from '@syncfusion/ej2-base';
2
2
  import {ComponentModel} from '@syncfusion/ej2-base';
3
3
 
4
4
  /**
@@ -7,9 +7,9 @@ import {ComponentModel} from '@syncfusion/ej2-base';
7
7
  export interface HScrollModel extends ComponentModel{
8
8
 
9
9
  /**
10
- * Specifies the left or right scrolling distance of the horizontal scrollbar moving.
11
- * @default null
12
- */
13
- scrollStep?: number;
10
+ * Specifies the left or right scrolling distance of the horizontal scrollbar moving.
11
+ * @default null
12
+ */
13
+ scrollStep?: number;
14
14
 
15
15
  }
@@ -1,22 +1,22 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- }
8
- return function (d, b) {
9
- extendStatics(d, b);
10
- function __() { this.constructor = d; }
11
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
- };
13
- })();
14
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
15
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
17
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
18
- return c > 3 && r && Object.defineProperty(target, key, r), r;
19
- };
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ extendStatics(d, b);
10
+ function __() { this.constructor = d; }
11
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
+ };
13
+ })();
14
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
15
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
17
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
18
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
19
+ };
20
20
  import { Touch, Component, EventHandler, selectAll, getUniqueID } from '@syncfusion/ej2-base';
21
21
  import { NotifyPropertyChanges, Property, Browser, detach } from '@syncfusion/ej2-base';
22
22
  import { classList, isNullOrUndefined } from '@syncfusion/ej2-base';
@@ -206,7 +206,6 @@ var HScroll = /** @class */ (function (_super) {
206
206
  var navLeftItem = this.createElement('div', { className: CLS_NAVLEFTARROW + ' ' + CLS_NAVARROW + ' e-icons' });
207
207
  navEle.appendChild(navLeftItem);
208
208
  nav.appendChild(navItem);
209
- nav.setAttribute('tabindex', '0');
210
209
  element.appendChild(nav);
211
210
  element.insertBefore(navEle, element.firstChild);
212
211
  if (this.ieCheck) {
@@ -4,4 +4,5 @@
4
4
  export * from './h-scroll';
5
5
  export * from './v-scroll';
6
6
  export { MenuEventArgs, OpenCloseMenuEventArgs, BeforeOpenCloseMenuEventArgs, MenuAnimationSettings, MenuEffect } from './menu-base';
7
+ export { MenuItem } from './menu-base';
7
8
  export { MenuItemModel, FieldSettingsModel, MenuAnimationSettingsModel } from './menu-base-model';
@@ -4,3 +4,4 @@
4
4
  export * from './h-scroll';
5
5
  export * from './v-scroll';
6
6
  export { MenuAnimationSettings } from './menu-base';
7
+ export { MenuItem } from './menu-base';