@syncfusion/ej2-navigations 17.3.9-beta → 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 (314) hide show
  1. package/.eslintrc.json +244 -0
  2. package/CHANGELOG.md +898 -800
  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 +325 -170
  7. package/dist/es6/ej2-navigations.es2015.js.map +1 -1
  8. package/dist/es6/ej2-navigations.es5.js +455 -300
  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 -149
  26. package/src/accordion/accordion-model.d.ts +156 -156
  27. package/src/accordion/accordion.d.ts +1 -0
  28. package/src/accordion/accordion.js +40 -41
  29. package/src/common/h-scroll-model.d.ts +5 -5
  30. package/src/common/h-scroll.js +19 -20
  31. package/src/common/menu-base-model.d.ts +157 -157
  32. package/src/common/menu-base.d.ts +19 -0
  33. package/src/common/menu-base.js +94 -24
  34. package/src/common/v-scroll-model.d.ts +5 -5
  35. package/src/common/v-scroll.js +19 -19
  36. package/src/context-menu/context-menu-model.d.ts +15 -15
  37. package/src/context-menu/context-menu.js +19 -19
  38. package/src/menu/menu-model.d.ts +30 -30
  39. package/src/menu/menu.js +19 -19
  40. package/src/sidebar/sidebar-model.d.ts +136 -136
  41. package/src/sidebar/sidebar.js +19 -19
  42. package/src/tab/tab-model.d.ts +215 -215
  43. package/src/tab/tab.d.ts +3 -0
  44. package/src/tab/tab.js +117 -82
  45. package/src/toolbar/toolbar-model.d.ts +175 -175
  46. package/src/toolbar/toolbar.d.ts +1 -0
  47. package/src/toolbar/toolbar.js +30 -24
  48. package/src/treeview/treeview-model.d.ts +323 -323
  49. package/src/treeview/treeview.js +79 -33
  50. package/styles/accordion/_all.scss +2 -2
  51. package/styles/accordion/_bootstrap-dark-definition.scss +69 -69
  52. package/styles/accordion/_bootstrap-definition.scss +76 -76
  53. package/styles/accordion/_bootstrap4-definition.scss +82 -82
  54. package/styles/accordion/_fabric-dark-definition.scss +74 -74
  55. package/styles/accordion/_fabric-definition.scss +78 -78
  56. package/styles/accordion/_highcontrast-definition.scss +106 -106
  57. package/styles/accordion/_highcontrast-light-definition.scss +104 -104
  58. package/styles/accordion/_layout.scss +447 -447
  59. package/styles/accordion/_material-dark-definition.scss +75 -75
  60. package/styles/accordion/_material-definition.scss +72 -72
  61. package/styles/accordion/_theme.scss +479 -479
  62. package/styles/accordion/icons/_bootstrap-dark.scss +17 -17
  63. package/styles/accordion/icons/_bootstrap.scss +17 -17
  64. package/styles/accordion/icons/_bootstrap4.scss +17 -17
  65. package/styles/accordion/icons/_fabric-dark.scss +17 -17
  66. package/styles/accordion/icons/_fabric.scss +17 -17
  67. package/styles/accordion/icons/_highcontrast-light.scss +17 -17
  68. package/styles/accordion/icons/_highcontrast.scss +17 -17
  69. package/styles/accordion/icons/_material-dark.scss +17 -17
  70. package/styles/accordion/icons/_material.scss +17 -17
  71. package/styles/bootstrap-dark.css +7 -9
  72. package/styles/bootstrap.css +7 -9
  73. package/styles/bootstrap4.css +7 -9
  74. package/styles/bootstrap5-dark.css +0 -0
  75. package/styles/bootstrap5-dark.scss +0 -0
  76. package/styles/bootstrap5.css +0 -0
  77. package/styles/bootstrap5.scss +0 -0
  78. package/styles/context-menu/_all.scss +2 -2
  79. package/styles/context-menu/_bootstrap-dark-definition.scss +54 -54
  80. package/styles/context-menu/_bootstrap-definition.scss +52 -52
  81. package/styles/context-menu/_bootstrap4-definition.scss +52 -52
  82. package/styles/context-menu/_fabric-dark-definition.scss +54 -54
  83. package/styles/context-menu/_fabric-definition.scss +52 -52
  84. package/styles/context-menu/_highcontrast-definition.scss +52 -52
  85. package/styles/context-menu/_highcontrast-light-definition.scss +54 -54
  86. package/styles/context-menu/_layout-mixin.scss +175 -175
  87. package/styles/context-menu/_layout.scss +70 -70
  88. package/styles/context-menu/_material-dark-definition.scss +54 -54
  89. package/styles/context-menu/_material-definition.scss +52 -52
  90. package/styles/context-menu/_theme-mixin.scss +59 -59
  91. package/styles/context-menu/_theme.scss +36 -36
  92. package/styles/context-menu/bootstrap-dark.css +0 -1
  93. package/styles/context-menu/bootstrap.css +0 -1
  94. package/styles/context-menu/bootstrap4.css +0 -1
  95. package/styles/context-menu/fabric-dark.css +0 -1
  96. package/styles/context-menu/fabric.css +0 -1
  97. package/styles/context-menu/highcontrast-light.css +0 -1
  98. package/styles/context-menu/highcontrast.css +0 -1
  99. package/styles/context-menu/icons/_bootstrap-dark.scss +30 -30
  100. package/styles/context-menu/icons/_bootstrap.scss +30 -30
  101. package/styles/context-menu/icons/_bootstrap4.scss +30 -30
  102. package/styles/context-menu/icons/_fabric-dark.scss +30 -30
  103. package/styles/context-menu/icons/_fabric.scss +30 -30
  104. package/styles/context-menu/icons/_highcontrast-light.scss +30 -30
  105. package/styles/context-menu/icons/_highcontrast.scss +30 -30
  106. package/styles/context-menu/icons/_material-dark.scss +30 -30
  107. package/styles/context-menu/icons/_material.scss +30 -30
  108. package/styles/context-menu/material-dark.css +0 -1
  109. package/styles/context-menu/material.css +3 -4
  110. package/styles/fabric-dark.css +7 -9
  111. package/styles/fabric.css +7 -9
  112. package/styles/h-scroll/_all.scss +2 -2
  113. package/styles/h-scroll/_bootstrap-dark-definition.scss +49 -49
  114. package/styles/h-scroll/_bootstrap-definition.scss +50 -50
  115. package/styles/h-scroll/_bootstrap4-definition.scss +49 -49
  116. package/styles/h-scroll/_fabric-dark-definition.scss +50 -50
  117. package/styles/h-scroll/_fabric-definition.scss +48 -48
  118. package/styles/h-scroll/_highcontrast-definition.scss +52 -52
  119. package/styles/h-scroll/_highcontrast-light-definition.scss +54 -54
  120. package/styles/h-scroll/_layout.scss +198 -198
  121. package/styles/h-scroll/_material-dark-definition.scss +77 -77
  122. package/styles/h-scroll/_material-definition.scss +77 -77
  123. package/styles/h-scroll/_theme.scss +157 -157
  124. package/styles/h-scroll/icons/_bootstrap-dark.scss +49 -49
  125. package/styles/h-scroll/icons/_bootstrap.scss +49 -49
  126. package/styles/h-scroll/icons/_bootstrap4.scss +49 -49
  127. package/styles/h-scroll/icons/_fabric-dark.scss +49 -49
  128. package/styles/h-scroll/icons/_fabric.scss +49 -49
  129. package/styles/h-scroll/icons/_highcontrast-light.scss +49 -49
  130. package/styles/h-scroll/icons/_highcontrast.scss +49 -49
  131. package/styles/h-scroll/icons/_material-dark.scss +49 -49
  132. package/styles/h-scroll/icons/_material.scss +49 -49
  133. package/styles/highcontrast-light.css +7 -9
  134. package/styles/highcontrast.css +7 -9
  135. package/styles/material-dark.css +7 -9
  136. package/styles/material.css +21 -14
  137. package/styles/menu/_all.scss +2 -2
  138. package/styles/menu/_bootstrap-dark-definition.scss +63 -63
  139. package/styles/menu/_bootstrap-definition.scss +65 -65
  140. package/styles/menu/_bootstrap4-definition.scss +64 -64
  141. package/styles/menu/_fabric-dark-definition.scss +63 -63
  142. package/styles/menu/_fabric-definition.scss +64 -64
  143. package/styles/menu/_highcontrast-definition.scss +65 -65
  144. package/styles/menu/_highcontrast-light-definition.scss +61 -61
  145. package/styles/menu/_layout.scss +638 -638
  146. package/styles/menu/_material-dark-definition.scss +63 -63
  147. package/styles/menu/_material-definition.scss +64 -64
  148. package/styles/menu/_theme.scss +243 -243
  149. package/styles/menu/bootstrap-dark.css +0 -1
  150. package/styles/menu/bootstrap.css +0 -1
  151. package/styles/menu/bootstrap.scss +1 -0
  152. package/styles/menu/bootstrap4.css +0 -1
  153. package/styles/menu/fabric-dark.css +0 -1
  154. package/styles/menu/fabric.css +0 -1
  155. package/styles/menu/fabric.scss +1 -0
  156. package/styles/menu/highcontrast-light.css +0 -1
  157. package/styles/menu/highcontrast.css +0 -1
  158. package/styles/menu/highcontrast.scss +1 -0
  159. package/styles/menu/icons/_bootstrap-dark.scss +127 -127
  160. package/styles/menu/icons/_bootstrap.scss +127 -127
  161. package/styles/menu/icons/_bootstrap4.scss +127 -127
  162. package/styles/menu/icons/_fabric-dark.scss +127 -127
  163. package/styles/menu/icons/_fabric.scss +127 -127
  164. package/styles/menu/icons/_highcontrast-light.scss +127 -127
  165. package/styles/menu/icons/_highcontrast.scss +127 -127
  166. package/styles/menu/icons/_material-dark.scss +127 -127
  167. package/styles/menu/icons/_material.scss +127 -127
  168. package/styles/menu/material-dark.css +0 -1
  169. package/styles/menu/material.css +2 -3
  170. package/styles/menu/material.scss +1 -0
  171. package/styles/sidebar/_all.scss +3 -3
  172. package/styles/sidebar/_bootstrap-dark-definition.scss +4 -4
  173. package/styles/sidebar/_bootstrap-definition.scss +4 -4
  174. package/styles/sidebar/_bootstrap4-definition.scss +4 -4
  175. package/styles/sidebar/_fabric-dark-definition.scss +4 -4
  176. package/styles/sidebar/_fabric-definition.scss +6 -6
  177. package/styles/sidebar/_highcontrast-definition.scss +4 -4
  178. package/styles/sidebar/_highcontrast-light-definition.scss +4 -4
  179. package/styles/sidebar/_icons.scss +1 -1
  180. package/styles/sidebar/_material-dark-definition.scss +4 -4
  181. package/styles/sidebar/_material-definition.scss +6 -6
  182. package/styles/sidebar/_theme.scss +168 -168
  183. package/styles/sidebar/bootstrap-dark.css +0 -1
  184. package/styles/sidebar/bootstrap.css +0 -1
  185. package/styles/sidebar/bootstrap4.css +0 -1
  186. package/styles/sidebar/fabric-dark.css +0 -1
  187. package/styles/sidebar/fabric.css +0 -1
  188. package/styles/sidebar/highcontrast-light.css +0 -1
  189. package/styles/sidebar/highcontrast.css +0 -1
  190. package/styles/sidebar/material-dark.css +0 -1
  191. package/styles/sidebar/material.css +0 -1
  192. package/styles/tab/_all.scss +2 -2
  193. package/styles/tab/_bootstrap-dark-definition.scss +386 -386
  194. package/styles/tab/_bootstrap-definition.scss +396 -396
  195. package/styles/tab/_bootstrap4-definition.scss +401 -401
  196. package/styles/tab/_fabric-dark-definition.scss +394 -394
  197. package/styles/tab/_fabric-definition.scss +410 -410
  198. package/styles/tab/_highcontrast-definition.scss +434 -434
  199. package/styles/tab/_highcontrast-light-definition.scss +423 -423
  200. package/styles/tab/_icons.scss +43 -43
  201. package/styles/tab/_layout.scss +3528 -3521
  202. package/styles/tab/_material-dark-definition.scss +407 -407
  203. package/styles/tab/_material-definition.scss +416 -416
  204. package/styles/tab/_theme.scss +1751 -1751
  205. package/styles/tab/bootstrap-dark.css +7 -2
  206. package/styles/tab/bootstrap.css +7 -2
  207. package/styles/tab/bootstrap4.css +7 -2
  208. package/styles/tab/fabric-dark.css +7 -2
  209. package/styles/tab/fabric.css +7 -2
  210. package/styles/tab/highcontrast-light.css +7 -2
  211. package/styles/tab/highcontrast.css +7 -2
  212. package/styles/tab/icons/_bootstrap-dark.scss +132 -132
  213. package/styles/tab/icons/_bootstrap.scss +132 -132
  214. package/styles/tab/icons/_bootstrap4.scss +132 -132
  215. package/styles/tab/icons/_fabric-dark.scss +132 -132
  216. package/styles/tab/icons/_fabric.scss +132 -132
  217. package/styles/tab/icons/_highcontrast-light.scss +132 -132
  218. package/styles/tab/icons/_highcontrast.scss +132 -132
  219. package/styles/tab/icons/_material-dark.scss +132 -132
  220. package/styles/tab/icons/_material.scss +132 -132
  221. package/styles/tab/material-dark.css +7 -2
  222. package/styles/tab/material.css +7 -2
  223. package/styles/tailwind-dark.css +0 -0
  224. package/styles/tailwind-dark.scss +0 -0
  225. package/styles/tailwind.css +0 -0
  226. package/styles/tailwind.scss +0 -0
  227. package/styles/toolbar/_all.scss +2 -2
  228. package/styles/toolbar/_bootstrap-dark-definition.scss +135 -135
  229. package/styles/toolbar/_bootstrap-definition.scss +134 -134
  230. package/styles/toolbar/_bootstrap4-definition.scss +139 -139
  231. package/styles/toolbar/_fabric-dark-definition.scss +155 -155
  232. package/styles/toolbar/_fabric-definition.scss +139 -139
  233. package/styles/toolbar/_highcontrast-definition.scss +149 -149
  234. package/styles/toolbar/_highcontrast-light-definition.scss +164 -164
  235. package/styles/toolbar/_layout.scss +1460 -1460
  236. package/styles/toolbar/_material-dark-definition.scss +180 -180
  237. package/styles/toolbar/_material-definition.scss +164 -164
  238. package/styles/toolbar/_theme.scss +451 -451
  239. package/styles/toolbar/bootstrap-dark.css +0 -1
  240. package/styles/toolbar/bootstrap.css +0 -1
  241. package/styles/toolbar/bootstrap.scss +1 -0
  242. package/styles/toolbar/bootstrap4.css +0 -1
  243. package/styles/toolbar/fabric-dark.css +0 -1
  244. package/styles/toolbar/fabric.css +0 -1
  245. package/styles/toolbar/fabric.scss +1 -0
  246. package/styles/toolbar/highcontrast-light.css +0 -1
  247. package/styles/toolbar/highcontrast.css +0 -1
  248. package/styles/toolbar/highcontrast.scss +1 -0
  249. package/styles/toolbar/icons/_bootstrap-dark.scss +16 -16
  250. package/styles/toolbar/icons/_bootstrap.scss +16 -16
  251. package/styles/toolbar/icons/_bootstrap4.scss +16 -16
  252. package/styles/toolbar/icons/_fabric-dark.scss +16 -16
  253. package/styles/toolbar/icons/_fabric.scss +16 -16
  254. package/styles/toolbar/icons/_highcontrast-light.scss +16 -16
  255. package/styles/toolbar/icons/_highcontrast.scss +16 -16
  256. package/styles/toolbar/icons/_material-dark.scss +16 -16
  257. package/styles/toolbar/icons/_material.scss +16 -16
  258. package/styles/toolbar/material-dark.css +0 -1
  259. package/styles/toolbar/material.css +0 -1
  260. package/styles/toolbar/material.scss +1 -0
  261. package/styles/treeview/_all.scss +2 -2
  262. package/styles/treeview/_bootstrap-dark-definition.scss +131 -131
  263. package/styles/treeview/_bootstrap-definition.scss +127 -127
  264. package/styles/treeview/_bootstrap4-definition.scss +153 -153
  265. package/styles/treeview/_fabric-dark-definition.scss +130 -130
  266. package/styles/treeview/_fabric-definition.scss +126 -126
  267. package/styles/treeview/_highcontrast-definition.scss +132 -132
  268. package/styles/treeview/_highcontrast-light-definition.scss +137 -137
  269. package/styles/treeview/_layout.scss +551 -551
  270. package/styles/treeview/_material-dark-definition.scss +126 -126
  271. package/styles/treeview/_material-definition.scss +126 -126
  272. package/styles/treeview/_theme.scss +331 -331
  273. package/styles/treeview/bootstrap-dark.css +0 -3
  274. package/styles/treeview/bootstrap.css +0 -3
  275. package/styles/treeview/bootstrap4.css +0 -3
  276. package/styles/treeview/fabric-dark.css +0 -3
  277. package/styles/treeview/fabric.css +0 -3
  278. package/styles/treeview/highcontrast-light.css +0 -3
  279. package/styles/treeview/highcontrast.css +0 -3
  280. package/styles/treeview/icons/_bootstrap-dark.scss +39 -39
  281. package/styles/treeview/icons/_bootstrap.scss +39 -39
  282. package/styles/treeview/icons/_bootstrap4.scss +39 -39
  283. package/styles/treeview/icons/_fabric-dark.scss +43 -43
  284. package/styles/treeview/icons/_fabric.scss +43 -43
  285. package/styles/treeview/icons/_highcontrast-light.scss +43 -43
  286. package/styles/treeview/icons/_highcontrast.scss +43 -43
  287. package/styles/treeview/icons/_material-dark.scss +43 -43
  288. package/styles/treeview/icons/_material.scss +43 -43
  289. package/styles/treeview/material-dark.css +0 -3
  290. package/styles/treeview/material.css +9 -3
  291. package/styles/v-scroll/_all.scss +2 -2
  292. package/styles/v-scroll/_bootstrap-dark-definition.scss +50 -50
  293. package/styles/v-scroll/_bootstrap-definition.scss +49 -49
  294. package/styles/v-scroll/_bootstrap4-definition.scss +49 -49
  295. package/styles/v-scroll/_fabric-dark-definition.scss +51 -51
  296. package/styles/v-scroll/_fabric-definition.scss +50 -50
  297. package/styles/v-scroll/_highcontrast-definition.scss +51 -51
  298. package/styles/v-scroll/_highcontrast-light-definition.scss +52 -52
  299. package/styles/v-scroll/_layout.scss +162 -162
  300. package/styles/v-scroll/_material-dark-definition.scss +78 -78
  301. package/styles/v-scroll/_material-definition.scss +77 -77
  302. package/styles/v-scroll/_theme.scss +133 -133
  303. package/styles/v-scroll/icons/_bootstrap-dark.scss +26 -26
  304. package/styles/v-scroll/icons/_bootstrap.scss +26 -26
  305. package/styles/v-scroll/icons/_bootstrap4.scss +26 -26
  306. package/styles/v-scroll/icons/_fabric-dark.scss +26 -26
  307. package/styles/v-scroll/icons/_fabric.scss +26 -26
  308. package/styles/v-scroll/icons/_highcontrast-light.scss +26 -26
  309. package/styles/v-scroll/icons/_highcontrast.scss +26 -26
  310. package/styles/v-scroll/icons/_material-dark.scss +26 -26
  311. package/styles/v-scroll/icons/_material.scss +26 -26
  312. package/tslint.json +111 -0
  313. package/.gitlab/merge_request_templates/Bug.md +0 -63
  314. package/.gitlab/merge_request_templates/feature.md +0 -39
@@ -1,4 +1,4 @@
1
- import { Component, EventHandler, Property, Event, EmitType, BaseEventArgs } from '@syncfusion/ej2-base';import { addClass, removeClass, isVisible, closest, attributes, detach, classList, KeyboardEvents } from '@syncfusion/ej2-base';import { selectAll, setStyleAttribute as setStyle, KeyboardEventArgs } from '@syncfusion/ej2-base';import { isNullOrUndefined as isNOU, getUniqueID, formatUnit, Collection, compile as templateCompiler } from '@syncfusion/ej2-base';import { INotifyPropertyChanged, NotifyPropertyChanges, ChildProperty, Browser } from '@syncfusion/ej2-base';import { updateBlazorTemplate, resetBlazorTemplate, isBlazor } from '@syncfusion/ej2-base';import { Popup } from '@syncfusion/ej2-popups';import { calculatePosition } from '@syncfusion/ej2-popups';import { Button, IconPosition } from '@syncfusion/ej2-buttons';import { HScroll } from '../common/h-scroll';import { VScroll } from '../common/v-scroll';
1
+ import { Component, EventHandler, Property, Event, EmitType, BaseEventArgs } from '@syncfusion/ej2-base';
2
2
  import {OverflowOption,ItemType,DisplayMode,ItemAlign,ClickEventArgs,OverflowMode,BeforeCreateArgs} from "./toolbar";
3
3
  import {ComponentModel} from '@syncfusion/ej2-base';
4
4
 
@@ -8,133 +8,133 @@ import {ComponentModel} from '@syncfusion/ej2-base';
8
8
  export interface ItemModel {
9
9
 
10
10
  /**
11
- * Specifies the unique ID to be used with button or input element of Toolbar items.
12
- * @default ""
13
- */
14
- id?: string;
11
+ * Specifies the unique ID to be used with button or input element of Toolbar items.
12
+ * @default ""
13
+ */
14
+ id?: string;
15
15
 
16
16
  /**
17
- * Specifies the text to be displayed on the Toolbar button.
18
- * @default ""
19
- */
20
- text?: string;
17
+ * Specifies the text to be displayed on the Toolbar button.
18
+ * @default ""
19
+ */
20
+ text?: string;
21
21
 
22
22
  /**
23
- * Specifies the width of the Toolbar button commands.
24
- * @default 'auto'
25
- */
26
- width?: number | string;
27
-
28
- /**
29
- * Defines single/multiple classes (separated by space) to be used for customization of commands.
30
- * @default ""
31
- */
32
- cssClass?: string;
33
-
34
- /**
35
- * Defines the priority of items to display it in popup always.
36
- * It allows to maintain toolbar item on popup always but it does not work for toolbar priority items.
37
- * @default false
38
- */
39
- showAlwaysInPopup?: boolean;
40
-
41
- /**
42
- * Defines single/multiple classes separated by space used to specify an icon for the button.
43
- * The icon will be positioned before the text content if text is available, otherwise the icon alone will be rendered.
44
- * @default ""
45
- */
46
- prefixIcon?: string;
47
-
48
- /**
49
- * Defines single/multiple classes separated by space used to specify an icon for the button.
50
- * The icon will be positioned after the text content if text is available.
51
- * @default ""
52
- */
53
- suffixIcon?: string;
54
-
55
- /**
56
- * Specifies the Toolbar command display area when an element's content is too large to fit available space.
57
- * This is applicable only to `popup` mode. Possible values are:
58
- * - Show: Always shows the item as the primary priority on the *Toolbar*.
59
- * - Hide: Always shows the item as the secondary priority on the *popup*.
60
- * - None: No priority for display, and as per normal order moves to popup when content exceeds.
61
- * @default 'None'
62
- */
63
- overflow?: OverflowOption;
64
-
65
- /**
66
- * Specifies the HTML element/element ID as a string that can be added as a Toolbar command.
67
- * ```
68
- * E.g - items: [{ template: '<input placeholder="Search"/>' },{ template: '#checkbox1' }]
69
- * ```
70
- * @default ""
71
- */
72
- template?: string | Object;
73
-
74
- /**
75
- * Specifies the types of command to be rendered in the Toolbar.
76
- * Supported types are:
77
- * - Button: Creates the Button control with its given properties like text, prefixIcon, etc.
78
- * - Separator: Adds a horizontal line that separates the Toolbar commands.
79
- * - Input: Creates an input element that is applicable to template rendering with Syncfusion controls like DropDownList,
80
- * AutoComplete, etc.
81
- * @default 'Button'
82
- */
83
- type?: ItemType;
84
-
85
- /**
86
- * Specifies where the button text will be displayed on *popup mode* of the Toolbar.
87
- * Possible values are:
88
- * - Toolbar: Text will be displayed on *Toolbar* only.
89
- * - Overflow: Text will be displayed only when content overflows to *popup*.
90
- * - Both: Text will be displayed on *popup* and *Toolbar*.
91
- * @default 'Both'
92
- */
93
- showTextOn?: DisplayMode;
94
-
95
- /**
96
- * Defines htmlAttributes used to add custom attributes to Toolbar command.
97
- * Supports HTML attributes such as style, class, etc.
98
- * @default null
99
- */
100
- htmlAttributes?: { [key: string]: string; };
101
-
102
- /**
103
- * Specifies the text to be displayed on the Toolbar button.
104
- * @default ""
105
- */
106
- tooltipText?: string;
107
-
108
- /**
109
- * Specifies the location for aligning Toolbar items on the Toolbar. Each command will be aligned according to the `align` property.
110
- * Possible values are:
111
- * - Left: To align commands to the left side of the Toolbar.
112
- * - Center: To align commands at the center of the Toolbar.
113
- * - Right: To align commands to the right side of the Toolbar.
114
- * ```html
115
- * <div id="element"> </div>
116
- * ```
117
- * ```typescript
118
- * let toolbar: Toolbar = new Toolbar({
119
- * items: [
120
- * { text: "Home" },
121
- * { text: "My Home Page" , align: 'Center' },
122
- * { text: "Search", align: 'Right' }
123
- * { text: "Settings", align: 'Right' }
124
- * ]
125
- * });
126
- * toolbar.appendTo('#element');
127
- * ```
128
- * @default "Left"
129
- */
130
- align?: ItemAlign;
131
-
132
- /**
133
- * Event triggers when `click` the toolbar item.
134
- * @event
135
- * @blazorProperty 'OnClick'
136
- */
137
- click?: EmitType<ClickEventArgs>;
23
+ * Specifies the width of the Toolbar button commands.
24
+ * @default 'auto'
25
+ */
26
+ width?: number | string;
27
+
28
+ /**
29
+ * Defines single/multiple classes (separated by space) to be used for customization of commands.
30
+ * @default ""
31
+ */
32
+ cssClass?: string;
33
+
34
+ /**
35
+ * Defines the priority of items to display it in popup always.
36
+ * It allows to maintain toolbar item on popup always but it does not work for toolbar priority items.
37
+ * @default false
38
+ */
39
+ showAlwaysInPopup?: boolean;
40
+
41
+ /**
42
+ * Defines single/multiple classes separated by space used to specify an icon for the button.
43
+ * The icon will be positioned before the text content if text is available, otherwise the icon alone will be rendered.
44
+ * @default ""
45
+ */
46
+ prefixIcon?: string;
47
+
48
+ /**
49
+ * Defines single/multiple classes separated by space used to specify an icon for the button.
50
+ * The icon will be positioned after the text content if text is available.
51
+ * @default ""
52
+ */
53
+ suffixIcon?: string;
54
+
55
+ /**
56
+ * Specifies the Toolbar command display area when an element's content is too large to fit available space.
57
+ * This is applicable only to `popup` mode. Possible values are:
58
+ * - Show: Always shows the item as the primary priority on the *Toolbar*.
59
+ * - Hide: Always shows the item as the secondary priority on the *popup*.
60
+ * - None: No priority for display, and as per normal order moves to popup when content exceeds.
61
+ * @default 'None'
62
+ */
63
+ overflow?: OverflowOption;
64
+
65
+ /**
66
+ * Specifies the HTML element/element ID as a string that can be added as a Toolbar command.
67
+ * ```
68
+ * E.g - items: [{ template: '<input placeholder="Search"/>' },{ template: '#checkbox1' }]
69
+ * ```
70
+ * @default ""
71
+ */
72
+ template?: string | Object;
73
+
74
+ /**
75
+ * Specifies the types of command to be rendered in the Toolbar.
76
+ * Supported types are:
77
+ * - Button: Creates the Button control with its given properties like text, prefixIcon, etc.
78
+ * - Separator: Adds a horizontal line that separates the Toolbar commands.
79
+ * - Input: Creates an input element that is applicable to template rendering with Syncfusion controls like DropDownList,
80
+ * AutoComplete, etc.
81
+ * @default 'Button'
82
+ */
83
+ type?: ItemType;
84
+
85
+ /**
86
+ * Specifies where the button text will be displayed on *popup mode* of the Toolbar.
87
+ * Possible values are:
88
+ * - Toolbar: Text will be displayed on *Toolbar* only.
89
+ * - Overflow: Text will be displayed only when content overflows to *popup*.
90
+ * - Both: Text will be displayed on *popup* and *Toolbar*.
91
+ * @default 'Both'
92
+ */
93
+ showTextOn?: DisplayMode;
94
+
95
+ /**
96
+ * Defines htmlAttributes used to add custom attributes to Toolbar command.
97
+ * Supports HTML attributes such as style, class, etc.
98
+ * @default null
99
+ */
100
+ htmlAttributes?: { [key: string]: string; };
101
+
102
+ /**
103
+ * Specifies the text to be displayed on the Toolbar button.
104
+ * @default ""
105
+ */
106
+ tooltipText?: string;
107
+
108
+ /**
109
+ * Specifies the location for aligning Toolbar items on the Toolbar. Each command will be aligned according to the `align` property.
110
+ * Possible values are:
111
+ * - Left: To align commands to the left side of the Toolbar.
112
+ * - Center: To align commands at the center of the Toolbar.
113
+ * - Right: To align commands to the right side of the Toolbar.
114
+ * ```html
115
+ * <div id="element"> </div>
116
+ * ```
117
+ * ```typescript
118
+ * let toolbar: Toolbar = new Toolbar({
119
+ * items: [
120
+ * { text: "Home" },
121
+ * { text: "My Home Page" , align: 'Center' },
122
+ * { text: "Search", align: 'Right' }
123
+ * { text: "Settings", align: 'Right' }
124
+ * ]
125
+ * });
126
+ * toolbar.appendTo('#element');
127
+ * ```
128
+ * @default "Left"
129
+ */
130
+ align?: ItemAlign;
131
+
132
+ /**
133
+ * Event triggers when `click` the toolbar item.
134
+ * @event
135
+ * @blazorProperty 'OnClick'
136
+ */
137
+ click?: EmitType<ClickEventArgs>;
138
138
 
139
139
  }
140
140
 
@@ -144,74 +144,74 @@ export interface ItemModel {
144
144
  export interface ToolbarModel extends ComponentModel{
145
145
 
146
146
  /**
147
- * An array of items that is used to configure Toolbar commands.
148
- * @default []
149
- */
150
- items?: ItemModel[];
147
+ * An array of items that is used to configure Toolbar commands.
148
+ * @default []
149
+ */
150
+ items?: ItemModel[];
151
151
 
152
152
  /**
153
- * Specifies the width of the Toolbar in pixels/numbers/percentage. Number value is considered as pixels.
154
- * @default 'auto'
155
- */
156
- width?: string | number;
153
+ * Specifies the width of the Toolbar in pixels/numbers/percentage. Number value is considered as pixels.
154
+ * @default 'auto'
155
+ */
156
+ width?: string | number;
157
157
 
158
158
  /**
159
- * Specifies the height of the Toolbar in pixels/number/percentage. Number value is considered as pixels.
160
- * @default 'auto'
161
- */
162
- height?: string | number;
159
+ * Specifies the height of the Toolbar in pixels/number/percentage. Number value is considered as pixels.
160
+ * @default 'auto'
161
+ */
162
+ height?: string | number;
163
163
 
164
164
  /**
165
- * Specifies the Toolbar display mode when Toolbar content exceeds the viewing area.
166
- * Possible modes are:
167
- * - Scrollable: All the elements are displayed in a single line with horizontal scrolling enabled.
168
- * - Popup: Prioritized elements are displayed on the Toolbar and the rest of elements are moved to the *popup*.
169
- * - MultiRow: Displays the overflow toolbar items as an in-line of a toolbar.
170
- * - Extended: Hide the overflowing toolbar items in the next row. Show the overflowing toolbar items when you click the expand icons.
171
- * If the popup content overflows the height of the page, the rest of the elements will be hidden.
172
- * @default 'Scrollable'
173
- */
174
- overflowMode?: OverflowMode;
165
+ * Specifies the Toolbar display mode when Toolbar content exceeds the viewing area.
166
+ * Possible modes are:
167
+ * - Scrollable: All the elements are displayed in a single line with horizontal scrolling enabled.
168
+ * - Popup: Prioritized elements are displayed on the Toolbar and the rest of elements are moved to the *popup*.
169
+ * - MultiRow: Displays the overflow toolbar items as an in-line of a toolbar.
170
+ * - Extended: Hide the overflowing toolbar items in the next row. Show the overflowing toolbar items when you click the expand icons.
171
+ * If the popup content overflows the height of the page, the rest of the elements will be hidden.
172
+ * @default 'Scrollable'
173
+ */
174
+ overflowMode?: OverflowMode;
175
175
 
176
176
  /**
177
- * Specifies the scrolling distance in scroller.
178
- * @default null
179
- */
180
- scrollStep?: number;
177
+ * Specifies the scrolling distance in scroller.
178
+ * @default null
179
+ */
180
+ scrollStep?: number;
181
181
 
182
182
  /**
183
- * Enable or disable the popup collision.
184
- * @default true
185
- */
186
- enableCollision?: boolean;
183
+ * Enable or disable the popup collision.
184
+ * @default true
185
+ */
186
+ enableCollision?: boolean;
187
187
 
188
188
  /**
189
- * The event will be fired on clicking the Toolbar elements.
190
- * @event
191
- * @blazorProperty 'Clicked'
192
- */
193
- clicked?: EmitType<ClickEventArgs>;
189
+ * The event will be fired on clicking the Toolbar elements.
190
+ * @event
191
+ * @blazorProperty 'Clicked'
192
+ */
193
+ clicked?: EmitType<ClickEventArgs>;
194
194
 
195
195
  /**
196
- * The event will be fired when the control is rendered.
197
- * @event
198
- * @blazorProperty 'Created'
199
- */
200
- created?: EmitType<Event>;
196
+ * The event will be fired when the control is rendered.
197
+ * @event
198
+ * @blazorProperty 'Created'
199
+ */
200
+ created?: EmitType<Event>;
201
201
 
202
202
  /**
203
- * The event will be fired when the control gets destroyed.
204
- * @event
205
- * @blazorProperty 'Destroyed'
206
- */
207
- destroyed?: EmitType<Event>;
203
+ * The event will be fired when the control gets destroyed.
204
+ * @event
205
+ * @blazorProperty 'Destroyed'
206
+ */
207
+ destroyed?: EmitType<Event>;
208
208
 
209
209
  /**
210
- * The event will be fired before the control is rendered on a page.
211
- * @event
212
- * @blazorProperty 'OnCreate'
213
- * @deprecated
214
- */
215
- beforeCreate?: EmitType<BeforeCreateArgs>;
210
+ * The event will be fired before the control is rendered on a page.
211
+ * @event
212
+ * @blazorProperty 'OnCreate'
213
+ * @deprecated
214
+ */
215
+ beforeCreate?: EmitType<BeforeCreateArgs>;
216
216
 
217
217
  }
@@ -319,6 +319,7 @@ export declare class Toolbar extends Component<HTMLElement> implements INotifyPr
319
319
  refreshOverflow(): void;
320
320
  private toolbarAlign;
321
321
  private renderOverflowMode;
322
+ private setOverflowAttributes;
322
323
  private separator;
323
324
  private createPopupEle;
324
325
  private pushingPoppedEle;
@@ -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 { Component, EventHandler, Property, Event } from '@syncfusion/ej2-base';
21
21
  import { addClass, removeClass, isVisible, closest, attributes, detach, classList, KeyboardEvents } from '@syncfusion/ej2-base';
22
22
  import { selectAll, setStyleAttribute as setStyle } from '@syncfusion/ej2-base';
@@ -545,7 +545,8 @@ var Toolbar = /** @class */ (function (_super) {
545
545
  }
546
546
  if (!eventArgs.cancel) {
547
547
  this.trigger('clicked', eventArgs, function (clickedArgs) {
548
- if (!isNOU(_this.popObj) && isPopupElement && !clickedArgs.cancel && _this.overflowMode === 'Popup') {
548
+ if (!isNOU(_this.popObj) && isPopupElement && !clickedArgs.cancel && _this.overflowMode === 'Popup' &&
549
+ clickedArgs.item && clickedArgs.item.type !== 'Input') {
549
550
  _this.popObj.hide({ name: 'FadeOut', duration: 100 });
550
551
  }
551
552
  });
@@ -731,8 +732,7 @@ var Toolbar = /** @class */ (function (_super) {
731
732
  this.removePositioning();
732
733
  }
733
734
  if (this.checkOverflow(ele, innerItems) || priorityCheck) {
734
- this.createPopupEle(ele, [].slice.call(selectAll('.' + CLS_ITEMS + ' .' + CLS_ITEM, ele)));
735
- this.element.querySelector('.' + CLS_TBARNAV).setAttribute('tabIndex', '0');
735
+ this.setOverflowAttributes(ele);
736
736
  }
737
737
  this.toolbarAlign(innerItems);
738
738
  break;
@@ -755,13 +755,17 @@ var Toolbar = /** @class */ (function (_super) {
755
755
  if (this.tbarAlign) {
756
756
  this.removePositioning();
757
757
  }
758
- this.createPopupEle(ele, [].slice.call(selectAll('.' + CLS_ITEMS + ' .' + CLS_ITEM, ele)));
759
- this.element.querySelector('.' + CLS_TBARNAV).setAttribute('tabIndex', '0');
758
+ this.setOverflowAttributes(ele);
760
759
  }
761
760
  this.toolbarAlign(innerItems);
762
761
  }
763
762
  }
764
763
  };
764
+ Toolbar.prototype.setOverflowAttributes = function (ele) {
765
+ this.createPopupEle(ele, [].slice.call(selectAll('.' + CLS_ITEMS + ' .' + CLS_ITEM, ele)));
766
+ this.element.querySelector('.' + CLS_TBARNAV).setAttribute('tabIndex', '0');
767
+ this.element.querySelector('.' + CLS_TBARNAV).setAttribute('role', 'list');
768
+ };
765
769
  Toolbar.prototype.separator = function () {
766
770
  var element = this.element;
767
771
  var eleItem = [].slice.call(element.querySelectorAll('.' + CLS_SEPARATOR));
@@ -1099,6 +1103,7 @@ var Toolbar = /** @class */ (function (_super) {
1099
1103
  var navItem = this.createElement('div', { className: CLS_POPUPDOWN + ' e-icons' });
1100
1104
  nav.appendChild(navItem);
1101
1105
  nav.setAttribute('tabindex', '0');
1106
+ nav.setAttribute('role', 'list');
1102
1107
  element.appendChild(nav);
1103
1108
  };
1104
1109
  Toolbar.prototype.tbarPriRef = function (inEle, indx, sepPri, el, des, elWid, wid, ig) {
@@ -1738,6 +1743,7 @@ var Toolbar = /** @class */ (function (_super) {
1738
1743
  case 'Button':
1739
1744
  dom = this.buttonRendering(item, innerEle);
1740
1745
  dom.setAttribute('tabindex', '-1');
1746
+ dom.setAttribute('aria-label', (item.text || item.tooltipText));
1741
1747
  innerEle.appendChild(dom);
1742
1748
  innerEle.addEventListener('click', this.itemClick.bind(this));
1743
1749
  break;