@syncfusion/ej2-navigations 30.2.5 → 31.1.17

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 (165) hide show
  1. package/dist/ej2-navigations.min.js +2 -2
  2. package/dist/ej2-navigations.umd.min.js +2 -2
  3. package/dist/ej2-navigations.umd.min.js.map +1 -1
  4. package/dist/es6/ej2-navigations.es2015.js +1 -0
  5. package/dist/es6/ej2-navigations.es2015.js.map +1 -1
  6. package/dist/es6/ej2-navigations.es5.js +1 -0
  7. package/dist/es6/ej2-navigations.es5.js.map +1 -1
  8. package/dist/global/ej2-navigations.min.js +2 -2
  9. package/dist/global/ej2-navigations.min.js.map +1 -1
  10. package/dist/global/index.d.ts +1 -1
  11. package/dist/ts/accordion/accordion-model.d.ts +285 -0
  12. package/dist/ts/accordion/accordion.d.ts +458 -0
  13. package/dist/ts/accordion/accordion.ts +1580 -0
  14. package/dist/ts/accordion/index.d.ts +5 -0
  15. package/dist/ts/accordion/index.ts +5 -0
  16. package/dist/ts/appbar/appbar-model.d.ts +76 -0
  17. package/dist/ts/appbar/appbar.d.ts +115 -0
  18. package/dist/ts/appbar/appbar.ts +281 -0
  19. package/dist/ts/appbar/index.d.ts +3 -0
  20. package/dist/ts/appbar/index.ts +3 -0
  21. package/dist/ts/breadcrumb/breadcrumb-model.d.ts +170 -0
  22. package/dist/ts/breadcrumb/breadcrumb.d.ts +297 -0
  23. package/dist/ts/breadcrumb/breadcrumb.ts +959 -0
  24. package/dist/ts/breadcrumb/index.d.ts +5 -0
  25. package/dist/ts/breadcrumb/index.ts +5 -0
  26. package/dist/ts/carousel/carousel-model.d.ts +282 -0
  27. package/dist/ts/carousel/carousel.d.ts +439 -0
  28. package/dist/ts/carousel/carousel.ts +1633 -0
  29. package/dist/ts/carousel/index.d.ts +3 -0
  30. package/dist/ts/carousel/index.ts +3 -0
  31. package/dist/ts/common/h-scroll-model.d.ts +16 -0
  32. package/dist/ts/common/h-scroll.d.ts +105 -0
  33. package/dist/ts/common/h-scroll.ts +481 -0
  34. package/dist/ts/common/index.d.ts +9 -0
  35. package/dist/ts/common/index.ts +10 -0
  36. package/dist/ts/common/menu-base-model.d.ts +308 -0
  37. package/dist/ts/common/menu-base.d.ts +558 -0
  38. package/dist/ts/common/menu-base.ts +2736 -0
  39. package/dist/ts/common/menu-scroll.d.ts +29 -0
  40. package/dist/ts/common/menu-scroll.ts +105 -0
  41. package/dist/ts/common/v-scroll-model.d.ts +16 -0
  42. package/dist/ts/common/v-scroll.d.ts +106 -0
  43. package/dist/ts/common/v-scroll.ts +454 -0
  44. package/dist/ts/context-menu/context-menu-model.d.ts +47 -0
  45. package/dist/ts/context-menu/context-menu.d.ts +102 -0
  46. package/dist/ts/context-menu/context-menu.ts +165 -0
  47. package/dist/ts/context-menu/index.d.ts +5 -0
  48. package/dist/ts/context-menu/index.ts +5 -0
  49. package/dist/ts/index.d.ts +16 -0
  50. package/dist/ts/index.ts +16 -0
  51. package/dist/ts/menu/index.d.ts +5 -0
  52. package/dist/ts/menu/index.ts +5 -0
  53. package/dist/ts/menu/menu-model.d.ts +70 -0
  54. package/dist/ts/menu/menu.d.ts +127 -0
  55. package/dist/ts/menu/menu.ts +313 -0
  56. package/dist/ts/sidebar/index.d.ts +5 -0
  57. package/dist/ts/sidebar/index.ts +5 -0
  58. package/dist/ts/sidebar/sidebar-model.d.ts +200 -0
  59. package/dist/ts/sidebar/sidebar.d.ts +336 -0
  60. package/dist/ts/sidebar/sidebar.ts +907 -0
  61. package/dist/ts/stepper/index.d.ts +3 -0
  62. package/dist/ts/stepper/index.ts +3 -0
  63. package/dist/ts/stepper/stepper-model.d.ts +159 -0
  64. package/dist/ts/stepper/stepper.d.ts +381 -0
  65. package/dist/ts/stepper/stepper.ts +1350 -0
  66. package/dist/ts/stepper-base/index.d.ts +5 -0
  67. package/dist/ts/stepper-base/index.ts +6 -0
  68. package/dist/ts/stepper-base/stepper-base-model.d.ts +124 -0
  69. package/dist/ts/stepper-base/stepper-base.d.ts +187 -0
  70. package/dist/ts/stepper-base/stepper-base.ts +290 -0
  71. package/dist/ts/tab/index.d.ts +5 -0
  72. package/dist/ts/tab/index.ts +5 -0
  73. package/dist/ts/tab/tab-model.d.ts +408 -0
  74. package/dist/ts/tab/tab.d.ts +715 -0
  75. package/dist/ts/tab/tab.ts +2842 -0
  76. package/dist/ts/toolbar/index.d.ts +5 -0
  77. package/dist/ts/toolbar/index.ts +5 -0
  78. package/dist/ts/toolbar/toolbar-model.d.ts +294 -0
  79. package/dist/ts/toolbar/toolbar.d.ts +541 -0
  80. package/dist/ts/toolbar/toolbar.ts +2646 -0
  81. package/dist/ts/treeview/index.d.ts +5 -0
  82. package/dist/ts/treeview/index.ts +5 -0
  83. package/dist/ts/treeview/treeview-model.d.ts +637 -0
  84. package/dist/ts/treeview/treeview.d.ts +1518 -0
  85. package/dist/ts/treeview/treeview.ts +6780 -0
  86. package/package.json +70 -17
  87. package/src/context-menu/context-menu-model.d.ts +1 -1
  88. package/src/context-menu/context-menu.js +1 -1
  89. package/src/tab/tab.js +1 -0
  90. package/styles/accordion/_bootstrap-dark-definition.scss +1 -1
  91. package/styles/accordion/_bootstrap-definition.scss +1 -1
  92. package/styles/accordion/bootstrap-dark.css +1 -1
  93. package/styles/accordion/bootstrap.css +1 -1
  94. package/styles/bds-lite.css +1 -1
  95. package/styles/bds.css +1 -1
  96. package/styles/bootstrap-dark-lite.css +2 -2
  97. package/styles/bootstrap-dark.css +2 -2
  98. package/styles/bootstrap-lite.css +2 -2
  99. package/styles/bootstrap.css +2 -2
  100. package/styles/bootstrap4-lite.css +1 -1
  101. package/styles/bootstrap4.css +1 -1
  102. package/styles/bootstrap5-dark-lite.css +1 -1
  103. package/styles/bootstrap5-dark.css +1 -1
  104. package/styles/bootstrap5-lite.css +1 -1
  105. package/styles/bootstrap5.3-lite.css +1 -1
  106. package/styles/bootstrap5.3.css +9 -1
  107. package/styles/bootstrap5.css +1 -1
  108. package/styles/fabric-dark-lite.css +1 -1
  109. package/styles/fabric-dark.css +1 -1
  110. package/styles/fabric-lite.css +1 -1
  111. package/styles/fabric.css +1 -1
  112. package/styles/fluent-dark-lite.css +1 -1
  113. package/styles/fluent-dark.css +1 -1
  114. package/styles/fluent-lite.css +1 -1
  115. package/styles/fluent.css +1 -1
  116. package/styles/fluent2-lite.css +4 -1
  117. package/styles/fluent2.css +4 -1
  118. package/styles/h-scroll/_layout.scss +1 -1
  119. package/styles/h-scroll/bds.css +1 -1
  120. package/styles/h-scroll/bootstrap-dark.css +1 -1
  121. package/styles/h-scroll/bootstrap.css +1 -1
  122. package/styles/h-scroll/bootstrap4.css +1 -1
  123. package/styles/h-scroll/bootstrap5-dark.css +1 -1
  124. package/styles/h-scroll/bootstrap5.3.css +1 -1
  125. package/styles/h-scroll/bootstrap5.css +1 -1
  126. package/styles/h-scroll/fabric-dark.css +1 -1
  127. package/styles/h-scroll/fabric.css +1 -1
  128. package/styles/h-scroll/fluent-dark.css +1 -1
  129. package/styles/h-scroll/fluent.css +1 -1
  130. package/styles/h-scroll/fluent2.css +1 -1
  131. package/styles/h-scroll/highcontrast-light.css +1 -1
  132. package/styles/h-scroll/highcontrast.css +1 -1
  133. package/styles/h-scroll/material-dark.css +1 -1
  134. package/styles/h-scroll/material.css +1 -1
  135. package/styles/h-scroll/material3-dark.css +1 -1
  136. package/styles/h-scroll/material3.css +1 -1
  137. package/styles/h-scroll/tailwind-dark.css +1 -1
  138. package/styles/h-scroll/tailwind.css +1 -1
  139. package/styles/h-scroll/tailwind3.css +1 -1
  140. package/styles/highcontrast-light-lite.css +1 -1
  141. package/styles/highcontrast-light.css +1 -1
  142. package/styles/highcontrast-lite.css +1 -1
  143. package/styles/highcontrast.css +1 -1
  144. package/styles/material-dark-lite.css +1 -1
  145. package/styles/material-dark.css +1 -1
  146. package/styles/material-lite.css +1 -1
  147. package/styles/material.css +1 -1
  148. package/styles/material3-dark-lite.css +1 -1
  149. package/styles/material3-dark.css +1 -7
  150. package/styles/material3-lite.css +1 -1
  151. package/styles/material3.css +1 -7
  152. package/styles/tailwind-dark-lite.css +1 -1
  153. package/styles/tailwind-dark.css +1 -1
  154. package/styles/tailwind-lite.css +1 -1
  155. package/styles/tailwind.css +1 -1
  156. package/styles/tailwind3-lite.css +1 -1
  157. package/styles/tailwind3.css +1 -1
  158. package/styles/toolbar/_layout.scss +1 -1
  159. package/styles/treeview/_bigger.scss +2 -2
  160. package/styles/treeview/_bootstrap5.3-definition.scss +1 -0
  161. package/styles/treeview/_layout.scss +3 -0
  162. package/styles/treeview/bootstrap5.3.css +8 -0
  163. package/styles/treeview/fluent2.css +3 -0
  164. package/styles/treeview/material3-dark.css +0 -6
  165. package/styles/treeview/material3.css +0 -6
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Toolbar modules
3
+ */
4
+ export * from './toolbar';
5
+ export * from './toolbar-model';
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Toolbar modules
3
+ */
4
+ export * from './toolbar';
5
+ export * from './toolbar-model';
@@ -0,0 +1,294 @@
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, select } from '@syncfusion/ej2-base';import { isNullOrUndefined as isNOU, getUniqueID, formatUnit, Collection, compile as templateCompiler } from '@syncfusion/ej2-base';import { INotifyPropertyChanged, NotifyPropertyChanges, ChildProperty, Browser, SanitizeHtmlHelper } 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';
2
+ import {OverflowOption,ItemType,DisplayMode,ItemAlign,ClickEventArgs,OverflowMode,BeforeCreateArgs,KeyDownEventArgs} from "./toolbar";
3
+ import {ComponentModel} from '@syncfusion/ej2-base';
4
+
5
+ /**
6
+ * Interface for a class Item
7
+ */
8
+ export interface ItemModel {
9
+
10
+ /**
11
+ * Specifies the unique ID to be used with button or input element of Toolbar items.
12
+ *
13
+ * @default ""
14
+ */
15
+ id?: string;
16
+
17
+ /**
18
+ * Specifies the text to be displayed on the Toolbar button.
19
+ *
20
+ * @default ""
21
+ */
22
+ text?: string;
23
+
24
+ /**
25
+ * Specifies the width of the Toolbar button commands.
26
+ *
27
+ * @default 'auto'
28
+ */
29
+ width?: number | string;
30
+
31
+ /**
32
+ * Defines single/multiple classes (separated by space) to be used for customization of commands.
33
+ *
34
+ * @default ""
35
+ */
36
+ cssClass?: string;
37
+
38
+ /**
39
+ * Defines the priority of items to display it in popup always.
40
+ * It allows to maintain toolbar item on popup always but it does not work for toolbar priority items.
41
+ *
42
+ * @default false
43
+ */
44
+ showAlwaysInPopup?: boolean;
45
+
46
+ /**
47
+ * Specifies whether an item should be disabled or not.
48
+ *
49
+ * @default false
50
+ */
51
+ disabled?: boolean;
52
+
53
+ /**
54
+ * Defines single/multiple classes separated by space used to specify an icon for the button.
55
+ * The icon will be positioned before the text content if text is available, otherwise the icon alone will be rendered.
56
+ *
57
+ * @default ""
58
+ */
59
+ prefixIcon?: string;
60
+
61
+ /**
62
+ * Defines single/multiple classes separated by space used to specify an icon for the button.
63
+ * The icon will be positioned after the text content if text is available.
64
+ *
65
+ * @default ""
66
+ */
67
+ suffixIcon?: string;
68
+
69
+ /**
70
+ * Specifies whether an item should be hidden or not.
71
+ *
72
+ * @default true
73
+ */
74
+ visible?: boolean;
75
+
76
+ /**
77
+ * Specifies the Toolbar command display area when an element's content is too large to fit available space.
78
+ * This is applicable only to `popup` mode. The possible values for this property as follows
79
+ * * `Show`: Always shows the item as the primary priority on the *Toolbar*.
80
+ * * `Hide`: Always shows the item as the secondary priority on the *popup*.
81
+ * * `None`: No priority for display, and as per normal order moves to popup when content exceeds.
82
+ *
83
+ * @default 'None'
84
+ */
85
+ overflow?: OverflowOption;
86
+
87
+ /**
88
+ * Specifies the HTML element/element ID as a string that can be added as a Toolbar command.
89
+ * ```
90
+ * E.g - items: [{ template: '<input placeholder="Search"/>' },{ template: '#checkbox1' }]
91
+ * ```
92
+ *
93
+ * @default ""
94
+ * @angularType string | object
95
+ * @reactType string | function | JSX.Element
96
+ * @vueType string | function
97
+ * @aspType string
98
+ */
99
+ template?: string | Object | Function;
100
+
101
+ /**
102
+ * Specifies the types of command to be rendered in the Toolbar.
103
+ * Supported types are:
104
+ * * `Button`: Creates the Button control with its given properties like text, prefixIcon, etc.
105
+ * * `Separator`: Adds a horizontal line that separates the Toolbar commands.
106
+ * * `Input`: Creates an input element that is applicable to template rendering with Syncfusion controls like DropDownList,
107
+ * AutoComplete, etc.
108
+ *
109
+ * @default 'Button'
110
+ */
111
+ type?: ItemType;
112
+
113
+ /**
114
+ * Specifies where the button text will be displayed on *popup mode* of the Toolbar.
115
+ * The possible values for this property as follows
116
+ * * `Toolbar`: Text will be displayed on *Toolbar* only.
117
+ * * `Overflow`: Text will be displayed only when content overflows to *popup*.
118
+ * * `Both`: Text will be displayed on *popup* and *Toolbar*.
119
+ *
120
+ * @default 'Both'
121
+ */
122
+ showTextOn?: DisplayMode;
123
+
124
+ /**
125
+ * Defines htmlAttributes used to add custom attributes to Toolbar command.
126
+ * Supports HTML attributes such as style, class, etc.
127
+ *
128
+ * @default null
129
+ */
130
+ htmlAttributes?: { [key: string]: string };
131
+
132
+ /**
133
+ * Specifies the text to be displayed on hovering the Toolbar button.
134
+ *
135
+ * @default ""
136
+ */
137
+ tooltipText?: string;
138
+
139
+ /**
140
+ * Specifies the location for aligning Toolbar items on the Toolbar. Each command will be aligned according to the `align` property.
141
+ * The possible values for this property as follows
142
+ * * `Left`: To align commands to the left side of the Toolbar.
143
+ * * `Center`: To align commands at the center of the Toolbar.
144
+ * * `Right`: To align commands to the right side of the Toolbar.
145
+ * ```html
146
+ * <div id="element"> </div>
147
+ * ```
148
+ * ```typescript
149
+ * let toolbar: Toolbar = new Toolbar({
150
+ * items: [
151
+ * { text: "Home" },
152
+ * { text: "My Home Page" , align: 'Center' },
153
+ * { text: "Search", align: 'Right' }
154
+ * { text: "Settings", align: 'Right' }
155
+ * ]
156
+ * });
157
+ * toolbar.appendTo('#element');
158
+ * ```
159
+ *
160
+ * @default "Left"
161
+ * @aspPopulateDefaultValue
162
+ */
163
+ align?: ItemAlign;
164
+
165
+ /**
166
+ * Event triggers when `click` the toolbar item.
167
+ *
168
+ * @event click
169
+ */
170
+ click?: EmitType<ClickEventArgs>;
171
+
172
+ /**
173
+ * Specifies the tab order of the Toolbar items. When positive values assigned, it allows to switch focus to the next/previous toolbar items with Tab/ShiftTab keys.
174
+ * By default, user can able to switch between items only via arrow keys.
175
+ * If the value is set to 0 for all tool bar items, then tab switches based on element order.
176
+ *
177
+ * @default -1
178
+ */
179
+ tabIndex?: number;
180
+
181
+ }
182
+
183
+ /**
184
+ * Interface for a class Toolbar
185
+ */
186
+ export interface ToolbarModel extends ComponentModel{
187
+
188
+ /**
189
+ * An array of items that is used to configure Toolbar commands.
190
+ *
191
+ * @default []
192
+ */
193
+ items?: ItemModel[];
194
+
195
+ /**
196
+ * Specifies the width of the Toolbar in pixels/numbers/percentage. Number value is considered as pixels.
197
+ *
198
+ * @default 'auto'
199
+ */
200
+ width?: string | number;
201
+
202
+ /**
203
+ * Specifies the height of the Toolbar in pixels/number/percentage. Number value is considered as pixels.
204
+ *
205
+ * @default 'auto'
206
+ */
207
+ height?: string | number;
208
+
209
+ /**
210
+ * Sets the CSS classes to root element of the Tab that helps to customize component styles.
211
+ *
212
+ * @default ''
213
+ */
214
+ cssClass?: string;
215
+
216
+ /**
217
+ * Specifies the Toolbar display mode when Toolbar content exceeds the viewing area.
218
+ * The possible values for this property as follows
219
+ * - Scrollable: All the elements are displayed in a single line with horizontal scrolling enabled.
220
+ * - Popup: Prioritized elements are displayed on the Toolbar and the rest of elements are moved to the *popup*.
221
+ * - MultiRow: Displays the overflow toolbar items as an in-line of a toolbar.
222
+ * - Extended: Hide the overflowing toolbar items in the next row. Show the overflowing toolbar items when you click the expand icons.
223
+ * If the popup content overflows the height of the page, the rest of the elements will be hidden.
224
+ *
225
+ * @default 'Scrollable'
226
+ */
227
+ overflowMode?: OverflowMode;
228
+
229
+ /**
230
+ * Specifies the scrolling distance in scroller.
231
+ *
232
+ * {% codeBlock src='toolbar/scrollStep/index.md' %}{% endcodeBlock %}
233
+ *
234
+ * @default null
235
+ */
236
+ scrollStep?: number;
237
+
238
+ /**
239
+ * Enable or disable the popup collision.
240
+ *
241
+ * @default true
242
+ */
243
+ enableCollision?: boolean;
244
+
245
+ /**
246
+ * Defines whether to allow the cross-scripting site or not.
247
+ *
248
+ * @default true
249
+ */
250
+ enableHtmlSanitizer?: boolean;
251
+
252
+ /**
253
+ * When this property is set to true, it allows the keyboard interaction in toolbar.
254
+ *
255
+ * @default true
256
+ */
257
+ allowKeyboard?: boolean;
258
+
259
+ /**
260
+ * The event will be fired on clicking the Toolbar elements.
261
+ *
262
+ * @event clicked
263
+ */
264
+ clicked?: EmitType<ClickEventArgs>;
265
+
266
+ /**
267
+ * The event will be fired when the control is rendered.
268
+ *
269
+ * @event created
270
+ */
271
+ created?: EmitType<Event>;
272
+
273
+ /**
274
+ * The event will be fired when the control gets destroyed.
275
+ *
276
+ * @event destroyed
277
+ */
278
+ destroyed?: EmitType<Event>;
279
+
280
+ /**
281
+ * The event will be fired before the control is rendered on a page.
282
+ *
283
+ * @event beforeCreate
284
+ */
285
+ beforeCreate?: EmitType<BeforeCreateArgs>;
286
+
287
+ /**
288
+ * The event will be fired when the keyboard interaction occurs on the Toolbar.
289
+ *
290
+ * @event keyDown
291
+ */
292
+ keyDown?: EmitType<KeyDownEventArgs>;
293
+
294
+ }