@syncfusion/ej2-navigations 31.1.17 → 31.1.20

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 (188) 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/package.json +14 -67
  12. package/src/treeview/treeview.js +1 -0
  13. package/styles/bds-lite.css +7 -6
  14. package/styles/bds.css +7 -6
  15. package/styles/bootstrap-dark-lite.css +6 -3
  16. package/styles/bootstrap-dark.css +6 -3
  17. package/styles/bootstrap-lite.css +6 -3
  18. package/styles/bootstrap.css +6 -3
  19. package/styles/bootstrap4-lite.css +13 -9
  20. package/styles/bootstrap4.css +24 -13
  21. package/styles/bootstrap5-dark-lite.css +6 -5
  22. package/styles/bootstrap5-dark.css +16 -7
  23. package/styles/bootstrap5-lite.css +6 -5
  24. package/styles/bootstrap5.3-lite.css +23 -10
  25. package/styles/bootstrap5.3.css +34 -13
  26. package/styles/bootstrap5.css +16 -7
  27. package/styles/fabric-dark-lite.css +6 -3
  28. package/styles/fabric-dark.css +6 -3
  29. package/styles/fabric-lite.css +6 -3
  30. package/styles/fabric.css +6 -3
  31. package/styles/fluent-dark-lite.css +16 -12
  32. package/styles/fluent-dark.css +26 -15
  33. package/styles/fluent-lite.css +16 -12
  34. package/styles/fluent.css +26 -15
  35. package/styles/fluent2-lite.css +6 -4
  36. package/styles/fluent2.css +6 -4
  37. package/styles/highcontrast-light-lite.css +4 -4
  38. package/styles/highcontrast-light.css +4 -4
  39. package/styles/highcontrast-lite.css +14 -10
  40. package/styles/highcontrast.css +26 -13
  41. package/styles/material-dark-lite.css +19 -13
  42. package/styles/material-dark.css +39 -17
  43. package/styles/material-lite.css +19 -10
  44. package/styles/material.css +36 -13
  45. package/styles/material3-dark-lite.css +4 -4
  46. package/styles/material3-dark.css +5 -4
  47. package/styles/material3-lite.css +4 -4
  48. package/styles/material3.css +5 -4
  49. package/styles/menu/_bootstrap-dark-definition.scss +1 -0
  50. package/styles/menu/_bootstrap-definition.scss +1 -0
  51. package/styles/menu/_fluent-definition.scss +1 -1
  52. package/styles/menu/_fluent2-definition.scss +1 -1
  53. package/styles/menu/_layout.scss +7 -1
  54. package/styles/menu/bds.css +1 -0
  55. package/styles/menu/bootstrap-dark.css +1 -0
  56. package/styles/menu/bootstrap.css +1 -0
  57. package/styles/menu/bootstrap4.css +1 -0
  58. package/styles/menu/bootstrap5-dark.css +1 -0
  59. package/styles/menu/bootstrap5.3.css +1 -0
  60. package/styles/menu/bootstrap5.css +1 -0
  61. package/styles/menu/fabric-dark.css +1 -0
  62. package/styles/menu/fabric.css +1 -0
  63. package/styles/menu/fluent-dark.css +2 -1
  64. package/styles/menu/fluent.css +2 -1
  65. package/styles/menu/fluent2.css +2 -1
  66. package/styles/menu/highcontrast-light.css +1 -0
  67. package/styles/menu/highcontrast.css +1 -0
  68. package/styles/menu/material-dark.css +1 -0
  69. package/styles/menu/material.css +1 -0
  70. package/styles/menu/material3-dark.css +1 -0
  71. package/styles/menu/material3.css +1 -0
  72. package/styles/menu/tailwind-dark.css +1 -0
  73. package/styles/menu/tailwind.css +1 -0
  74. package/styles/menu/tailwind3.css +1 -0
  75. package/styles/tailwind-dark-lite.css +6 -5
  76. package/styles/tailwind-dark.css +6 -5
  77. package/styles/tailwind-lite.css +6 -5
  78. package/styles/tailwind.css +6 -5
  79. package/styles/tailwind3-lite.css +11 -5
  80. package/styles/tailwind3.css +18 -5
  81. package/styles/treeview/_bds-definition.scss +1 -1
  82. package/styles/treeview/_bigger.scss +91 -0
  83. package/styles/treeview/_bootstrap4-definition.scss +7 -7
  84. package/styles/treeview/_bootstrap5-definition.scss +2 -2
  85. package/styles/treeview/_bootstrap5.3-definition.scss +8 -8
  86. package/styles/treeview/_fluent-definition.scss +6 -6
  87. package/styles/treeview/_highcontrast-definition.scss +6 -6
  88. package/styles/treeview/_layout.scss +67 -16
  89. package/styles/treeview/_material-dark-definition.scss +7 -7
  90. package/styles/treeview/_material-definition.scss +6 -6
  91. package/styles/treeview/_tailwind3-definition.scss +1 -1
  92. package/styles/treeview/_theme.scss +7 -2
  93. package/styles/treeview/bds.css +6 -6
  94. package/styles/treeview/bootstrap-dark.css +5 -3
  95. package/styles/treeview/bootstrap.css +5 -3
  96. package/styles/treeview/bootstrap4.css +23 -13
  97. package/styles/treeview/bootstrap5-dark.css +15 -7
  98. package/styles/treeview/bootstrap5.3.css +33 -13
  99. package/styles/treeview/bootstrap5.css +15 -7
  100. package/styles/treeview/fabric-dark.css +5 -3
  101. package/styles/treeview/fabric.css +5 -3
  102. package/styles/treeview/fluent-dark.css +24 -14
  103. package/styles/treeview/fluent.css +24 -14
  104. package/styles/treeview/fluent2.css +4 -3
  105. package/styles/treeview/highcontrast-light.css +3 -4
  106. package/styles/treeview/highcontrast.css +25 -13
  107. package/styles/treeview/material-dark.css +38 -17
  108. package/styles/treeview/material.css +35 -13
  109. package/styles/treeview/material3-dark.css +4 -4
  110. package/styles/treeview/material3.css +4 -4
  111. package/styles/treeview/tailwind-dark.css +5 -5
  112. package/styles/treeview/tailwind.css +5 -5
  113. package/styles/treeview/tailwind3.css +17 -5
  114. package/dist/ts/accordion/accordion-model.d.ts +0 -285
  115. package/dist/ts/accordion/accordion.d.ts +0 -458
  116. package/dist/ts/accordion/accordion.ts +0 -1580
  117. package/dist/ts/accordion/index.d.ts +0 -5
  118. package/dist/ts/accordion/index.ts +0 -5
  119. package/dist/ts/appbar/appbar-model.d.ts +0 -76
  120. package/dist/ts/appbar/appbar.d.ts +0 -115
  121. package/dist/ts/appbar/appbar.ts +0 -281
  122. package/dist/ts/appbar/index.d.ts +0 -3
  123. package/dist/ts/appbar/index.ts +0 -3
  124. package/dist/ts/breadcrumb/breadcrumb-model.d.ts +0 -170
  125. package/dist/ts/breadcrumb/breadcrumb.d.ts +0 -297
  126. package/dist/ts/breadcrumb/breadcrumb.ts +0 -959
  127. package/dist/ts/breadcrumb/index.d.ts +0 -5
  128. package/dist/ts/breadcrumb/index.ts +0 -5
  129. package/dist/ts/carousel/carousel-model.d.ts +0 -282
  130. package/dist/ts/carousel/carousel.d.ts +0 -439
  131. package/dist/ts/carousel/carousel.ts +0 -1633
  132. package/dist/ts/carousel/index.d.ts +0 -3
  133. package/dist/ts/carousel/index.ts +0 -3
  134. package/dist/ts/common/h-scroll-model.d.ts +0 -16
  135. package/dist/ts/common/h-scroll.d.ts +0 -105
  136. package/dist/ts/common/h-scroll.ts +0 -481
  137. package/dist/ts/common/index.d.ts +0 -9
  138. package/dist/ts/common/index.ts +0 -10
  139. package/dist/ts/common/menu-base-model.d.ts +0 -308
  140. package/dist/ts/common/menu-base.d.ts +0 -558
  141. package/dist/ts/common/menu-base.ts +0 -2736
  142. package/dist/ts/common/menu-scroll.d.ts +0 -29
  143. package/dist/ts/common/menu-scroll.ts +0 -105
  144. package/dist/ts/common/v-scroll-model.d.ts +0 -16
  145. package/dist/ts/common/v-scroll.d.ts +0 -106
  146. package/dist/ts/common/v-scroll.ts +0 -454
  147. package/dist/ts/context-menu/context-menu-model.d.ts +0 -47
  148. package/dist/ts/context-menu/context-menu.d.ts +0 -102
  149. package/dist/ts/context-menu/context-menu.ts +0 -165
  150. package/dist/ts/context-menu/index.d.ts +0 -5
  151. package/dist/ts/context-menu/index.ts +0 -5
  152. package/dist/ts/index.d.ts +0 -16
  153. package/dist/ts/index.ts +0 -16
  154. package/dist/ts/menu/index.d.ts +0 -5
  155. package/dist/ts/menu/index.ts +0 -5
  156. package/dist/ts/menu/menu-model.d.ts +0 -70
  157. package/dist/ts/menu/menu.d.ts +0 -127
  158. package/dist/ts/menu/menu.ts +0 -313
  159. package/dist/ts/sidebar/index.d.ts +0 -5
  160. package/dist/ts/sidebar/index.ts +0 -5
  161. package/dist/ts/sidebar/sidebar-model.d.ts +0 -200
  162. package/dist/ts/sidebar/sidebar.d.ts +0 -336
  163. package/dist/ts/sidebar/sidebar.ts +0 -907
  164. package/dist/ts/stepper/index.d.ts +0 -3
  165. package/dist/ts/stepper/index.ts +0 -3
  166. package/dist/ts/stepper/stepper-model.d.ts +0 -159
  167. package/dist/ts/stepper/stepper.d.ts +0 -381
  168. package/dist/ts/stepper/stepper.ts +0 -1350
  169. package/dist/ts/stepper-base/index.d.ts +0 -5
  170. package/dist/ts/stepper-base/index.ts +0 -6
  171. package/dist/ts/stepper-base/stepper-base-model.d.ts +0 -124
  172. package/dist/ts/stepper-base/stepper-base.d.ts +0 -187
  173. package/dist/ts/stepper-base/stepper-base.ts +0 -290
  174. package/dist/ts/tab/index.d.ts +0 -5
  175. package/dist/ts/tab/index.ts +0 -5
  176. package/dist/ts/tab/tab-model.d.ts +0 -408
  177. package/dist/ts/tab/tab.d.ts +0 -715
  178. package/dist/ts/tab/tab.ts +0 -2842
  179. package/dist/ts/toolbar/index.d.ts +0 -5
  180. package/dist/ts/toolbar/index.ts +0 -5
  181. package/dist/ts/toolbar/toolbar-model.d.ts +0 -294
  182. package/dist/ts/toolbar/toolbar.d.ts +0 -541
  183. package/dist/ts/toolbar/toolbar.ts +0 -2646
  184. package/dist/ts/treeview/index.d.ts +0 -5
  185. package/dist/ts/treeview/index.ts +0 -5
  186. package/dist/ts/treeview/treeview-model.d.ts +0 -637
  187. package/dist/ts/treeview/treeview.d.ts +0 -1518
  188. package/dist/ts/treeview/treeview.ts +0 -6780
@@ -144,9 +144,7 @@
144
144
  list-style: none;
145
145
  }
146
146
  .e-treeview .e-list-item .e-ul {
147
- margin: 2px 0 -2px;
148
147
  padding: 0 0 0 20px;
149
- margin: 0;
150
148
  }
151
149
  .e-treeview .e-list-item.e-disable > .e-text-content,
152
150
  .e-treeview .e-list-item.e-disable > .e-fullrow {
@@ -183,7 +181,6 @@
183
181
  -ms-user-select: none;
184
182
  -webkit-user-select: none;
185
183
  user-select: none;
186
- border: 1px solid;
187
184
  cursor: pointer;
188
185
  margin: 0;
189
186
  padding: 0 0 0 20px;
@@ -209,7 +206,7 @@
209
206
  }
210
207
  @supports (-webkit-overflow-scrolling: touch) {
211
208
  .e-treeview .e-fullrow {
212
- z-index: -1;
209
+ z-index: 0;
213
210
  }
214
211
  }
215
212
  .e-treeview .e-checkbox-wrapper {
@@ -250,6 +247,8 @@
250
247
  }
251
248
  .e-treeview .e-list-text .e-input-group .e-input {
252
249
  height: 28px;
250
+ padding-top: 6px;
251
+ padding-bottom: 6px;
253
252
  }
254
253
  .e-treeview .e-navigable-text {
255
254
  padding: 0;
@@ -887,6 +886,7 @@
887
886
  .e-bigger .e-treeview .e-list-text,
888
887
  .e-treeview.e-bigger .e-list-text {
889
888
  font-size: 16px;
889
+ padding: 12px;
890
890
  }
891
891
  .e-bigger .e-treeview .e-icon-collapsible::before,
892
892
  .e-bigger .e-treeview .e-icon-expandable::before,
@@ -108,9 +108,7 @@
108
108
  list-style: none;
109
109
  }
110
110
  .e-treeview .e-list-item .e-ul {
111
- margin: 2px 0 -2px;
112
111
  padding: 0 0 0 20px;
113
- margin: 2px 0 0;
114
112
  }
115
113
  .e-treeview .e-list-item.e-disable > .e-text-content,
116
114
  .e-treeview .e-list-item.e-disable > .e-fullrow {
@@ -150,7 +148,6 @@
150
148
  -ms-user-select: none;
151
149
  -webkit-user-select: none;
152
150
  user-select: none;
153
- border: 1px solid;
154
151
  cursor: pointer;
155
152
  margin: 0;
156
153
  padding: 0 0 0 20px;
@@ -175,7 +172,7 @@
175
172
  }
176
173
  @supports (-webkit-overflow-scrolling: touch) {
177
174
  .e-treeview .e-fullrow {
178
- z-index: -1;
175
+ z-index: 0;
179
176
  }
180
177
  }
181
178
  .e-treeview .e-checkbox-wrapper {
@@ -210,12 +207,15 @@
210
207
  }
211
208
  .e-treeview .e-list-text .e-input-group {
212
209
  height: 30px;
213
- margin-bottom: 3px;
210
+ margin-top: 4px;
211
+ margin-bottom: 4px;
214
212
  min-width: 150px;
215
213
  vertical-align: bottom;
216
214
  }
217
215
  .e-treeview .e-list-text .e-input-group .e-input {
218
216
  height: 28px;
217
+ padding-top: 6px;
218
+ padding-bottom: 6px;
219
219
  }
220
220
  .e-treeview .e-navigable-text {
221
221
  padding: 0 8px;
@@ -108,9 +108,7 @@
108
108
  list-style: none;
109
109
  }
110
110
  .e-treeview .e-list-item .e-ul {
111
- margin: 2px 0 -2px;
112
111
  padding: 0 0 0 20px;
113
- margin: 2px 0 0;
114
112
  }
115
113
  .e-treeview .e-list-item.e-disable > .e-text-content,
116
114
  .e-treeview .e-list-item.e-disable > .e-fullrow {
@@ -150,7 +148,6 @@
150
148
  -ms-user-select: none;
151
149
  -webkit-user-select: none;
152
150
  user-select: none;
153
- border: 1px solid;
154
151
  cursor: pointer;
155
152
  margin: 0;
156
153
  padding: 0 0 0 20px;
@@ -175,7 +172,7 @@
175
172
  }
176
173
  @supports (-webkit-overflow-scrolling: touch) {
177
174
  .e-treeview .e-fullrow {
178
- z-index: -1;
175
+ z-index: 0;
179
176
  }
180
177
  }
181
178
  .e-treeview .e-checkbox-wrapper {
@@ -210,12 +207,15 @@
210
207
  }
211
208
  .e-treeview .e-list-text .e-input-group {
212
209
  height: 30px;
213
- margin-bottom: 3px;
210
+ margin-top: 4px;
211
+ margin-bottom: 4px;
214
212
  min-width: 150px;
215
213
  vertical-align: bottom;
216
214
  }
217
215
  .e-treeview .e-list-text .e-input-group .e-input {
218
216
  height: 28px;
217
+ padding-top: 6px;
218
+ padding-bottom: 6px;
219
219
  }
220
220
  .e-treeview .e-navigable-text {
221
221
  padding: 0 8px;
@@ -128,9 +128,7 @@
128
128
  list-style: none;
129
129
  }
130
130
  .e-treeview .e-list-item .e-ul {
131
- margin: 2px 0 -2px;
132
131
  padding: 0 0 0 20px;
133
- margin: 0;
134
132
  }
135
133
  .e-treeview .e-list-item.e-disable > .e-text-content,
136
134
  .e-treeview .e-list-item.e-disable > .e-fullrow {
@@ -153,6 +151,10 @@
153
151
  .e-treeview .e-list-item .e-icons.e-icons-spinner::before {
154
152
  content: none;
155
153
  }
154
+ .e-treeview .e-list-item .e-text-content .e-list-text:has(> .e-input-group) {
155
+ padding-top: 4px;
156
+ padding-bottom: 4px;
157
+ }
156
158
  .e-treeview .e-icons .e-spinner-pane {
157
159
  position: relative;
158
160
  }
@@ -167,7 +169,6 @@
167
169
  -ms-user-select: none;
168
170
  -webkit-user-select: none;
169
171
  user-select: none;
170
- border: 1px solid;
171
172
  cursor: pointer;
172
173
  margin: 0;
173
174
  padding: 0 0 0 20px;
@@ -193,7 +194,7 @@
193
194
  }
194
195
  @supports (-webkit-overflow-scrolling: touch) {
195
196
  .e-treeview .e-fullrow {
196
- z-index: -1;
197
+ z-index: 0;
197
198
  }
198
199
  }
199
200
  .e-treeview .e-checkbox-wrapper {
@@ -228,13 +229,17 @@
228
229
  vertical-align: middle;
229
230
  }
230
231
  .e-treeview .e-list-text .e-input-group {
231
- height: 30px;
232
+ height: 32px;
232
233
  margin-bottom: 0;
233
234
  min-width: 150px;
234
235
  vertical-align: bottom;
235
236
  }
236
237
  .e-treeview .e-list-text .e-input-group .e-input {
237
238
  height: 28px;
239
+ padding-top: 6px;
240
+ padding-bottom: 6px;
241
+ line-height: 20px;
242
+ height: 32px;
238
243
  }
239
244
  .e-treeview .e-navigable-text {
240
245
  padding: 10px 8px;
@@ -729,6 +734,13 @@
729
734
  .e-treeview.e-bigger .e-list-text .e-input-group .e-input {
730
735
  height: 36px;
731
736
  }
737
+ .e-bigger .e-treeview .e-list-text .e-input-group .e-input,
738
+ .e-treeview.e-bigger .e-list-text .e-input-group .e-input {
739
+ height: 40px;
740
+ line-height: 24px;
741
+ padding-top: 8px;
742
+ padding-bottom: 8px;
743
+ }
732
744
  .e-bigger .e-treeview .e-checkbox-wrapper,
733
745
  .e-treeview.e-bigger .e-checkbox-wrapper {
734
746
  margin: 0 0 0 12px;
@@ -1,285 +0,0 @@
1
- import { Component, EventHandler, Property, Event, EmitType, AnimationModel, KeyboardEvents, rippleEffect, animationMode } from '@syncfusion/ej2-base';import { KeyboardEventArgs, BaseEventArgs, Effect, getUniqueID, compile as templateCompiler } from '@syncfusion/ej2-base';import { isVisible, closest, attributes, detach, select, addClass, removeClass, append } from '@syncfusion/ej2-base';import { INotifyPropertyChanged, NotifyPropertyChanges, ChildProperty, Collection, Animation } from '@syncfusion/ej2-base';import { setStyleAttribute as setStyle, Complex } from '@syncfusion/ej2-base';import { isNullOrUndefined as isNOU, formatUnit, selectAll, SanitizeHtmlHelper, isRippleEnabled } from '@syncfusion/ej2-base';
2
- import {ExpandMode,AccordionClickArgs,ExpandEventArgs,ExpandedEventArgs} from "./accordion";
3
- import {ComponentModel} from '@syncfusion/ej2-base';
4
-
5
- /**
6
- * Interface for a class AccordionActionSettings
7
- */
8
- export interface AccordionActionSettingsModel {
9
-
10
- /**
11
- * Specifies the type of animation.
12
- *
13
- * @default 'SlideDown'
14
- * @aspType string
15
- */
16
- effect?: 'None' | Effect;
17
-
18
- /**
19
- * Specifies the duration to animate.
20
- *
21
- * @default 400
22
- */
23
- duration?: number;
24
-
25
- /**
26
- * Specifies the animation timing function.
27
- *
28
- * @default 'linear'
29
- */
30
- easing?: string;
31
-
32
- }
33
-
34
- /**
35
- * Interface for a class AccordionAnimationSettings
36
- */
37
- export interface AccordionAnimationSettingsModel {
38
-
39
- /**
40
- * Specifies the animation to appear while collapsing the Accordion item.
41
- *
42
- * @default { effect: 'SlideDown', duration: 400, easing: 'linear' }
43
- */
44
- collapse?: AccordionActionSettingsModel;
45
-
46
- /**
47
- * Specifies the animation to appear while expanding the Accordion item.
48
- *
49
- * @default { effect: 'SlideDown', duration: 400, easing: 'linear' }
50
- */
51
- expand?: AccordionActionSettingsModel;
52
-
53
- }
54
-
55
- /**
56
- * Interface for a class AccordionItem
57
- */
58
- export interface AccordionItemModel {
59
-
60
- /**
61
- * Sets the text content to be displayed for the Accordion item.
62
- * You can set the content of the Accordion item using `content` property.
63
- * It also supports to include the title as `HTML element`, `string`, or `query selector`.
64
- * ```typescript
65
- * let accordionObj: Accordion = new Accordion( {
66
- * items: [
67
- * { header: 'Accordion Header', content: 'Accordion Content' },
68
- * { header: '<div>Accordion Header</div>', content: '<div>Accordion Content</div>' },
69
- * { header: '#headerContent', content: '#panelContent' }]
70
- * });
71
- * accordionObj.appendTo('#accordion');
72
- * ```
73
- *
74
- * @default null
75
- */
76
- content?: string;
77
-
78
- /**
79
- * Sets the header text to be displayed for the Accordion item.
80
- * You can set the title of the Accordion item using `header` property.
81
- * It also supports to include the title as `HTML element`, `string`, or `query selector`.
82
- * ```typescript
83
- * let accordionObj: Accordion = new Accordion( {
84
- * items: [
85
- * { header: 'Accordion Header', content: 'Accordion Content' },
86
- * { header: '<div>Accordion Header</div>', content: '<div>Accordion Content</div>' },
87
- * { header: '#headerContent', content: '#panelContent' }]
88
- * });
89
- * accordionObj.appendTo('#accordion');
90
- * ```
91
- *
92
- * @default null
93
- */
94
- header?: string;
95
-
96
- /**
97
- * Defines single/multiple classes (separated by a space) are to be used for Accordion item customization.
98
- *
99
- * @default null
100
- */
101
- cssClass?: string;
102
-
103
- /**
104
- * Defines an icon with the given custom CSS class that is to be rendered before the header text.
105
- * Add the css classes to the `iconCss` property and write the css styles to the defined class to set images/icons.
106
- * Adding icon is applicable only to the header.
107
- * ```typescript
108
- * let accordionObj: Accordion = new Accordion( {
109
- * items: [
110
- * { header: 'Accordion Header', iconCss: 'e-app-icon' }]
111
- * });
112
- * accordionObj.appendTo('#accordion');
113
- * ```
114
- * ```css
115
- * .e-app-icon::before {
116
- * content: "\e710";
117
- * }
118
- * ```
119
- *
120
- * @default null
121
- */
122
- iconCss?: string;
123
-
124
- /**
125
- * Sets the expand (true) or collapse (false) state of the Accordion item. By default, all the items are in a collapsed state.
126
- *
127
- * @default false
128
- */
129
- expanded?: boolean;
130
-
131
- /**
132
- * Sets false to hide an accordion item.
133
- *
134
- * @default true
135
- */
136
- visible?: boolean;
137
-
138
- /**
139
- * Sets true to disable an accordion item.
140
- *
141
- * @default false
142
- */
143
- disabled?: boolean;
144
-
145
- /**
146
- * Sets unique ID to accordion item.
147
- *
148
- * @default null
149
- */
150
- id?: string;
151
-
152
- }
153
-
154
- /**
155
- * Interface for a class Accordion
156
- */
157
- export interface AccordionModel extends ComponentModel{
158
-
159
- /**
160
- * An array of item that is used to specify Accordion items.
161
- * ```typescript
162
- * let accordionObj: Accordion = new Accordion( {
163
- * items: [
164
- * { header: 'Accordion Header', content: 'Accordion Content' }]
165
- * });
166
- * accordionObj.appendTo('#accordion');
167
- * ```
168
- *
169
- * @default []
170
- */
171
- items?: AccordionItemModel[];
172
-
173
- /**
174
- * Specifies the datasource for the accordion items.
175
- *
176
- * @isdatamanager false
177
- * @default []
178
- */
179
- dataSource?: Object[];
180
-
181
- /**
182
- * Specifies the template option for accordion items.
183
- *
184
- * @default null
185
- * @angularType string | object
186
- * @reactType string | function | JSX.Element
187
- * @vueType string | function
188
- * @aspType string
189
- */
190
- itemTemplate?: string | Function;
191
-
192
- /**
193
- * Specifies the header title template option for accordion items.
194
- *
195
- * @default null
196
- * @angularType string | object
197
- * @reactType string | function | JSX.Element
198
- * @vueType string | function
199
- * @aspType string
200
- */
201
- headerTemplate?: string | Function;
202
-
203
- /**
204
- * Specifies the width of the Accordion in pixels/number/percentage. Number value is considered as pixels.
205
- *
206
- * @default '100%'
207
- */
208
- width?: string | number;
209
-
210
- /**
211
- * Specifies the height of the Accordion in pixels/number/percentage. Number value is considered as pixels.
212
- *
213
- * @default 'auto'
214
- */
215
- height?: string | number;
216
-
217
- /**
218
- * Specifies the expanded items at initial load.
219
- *
220
- * @default []
221
- */
222
- expandedIndices?: number[];
223
-
224
- /**
225
- * Specifies the options to expand single or multiple panel at a time.
226
- * The possible values are:
227
- * * `Single`: Sets to expand only one Accordion item at a time.
228
- * * `Multiple`: Sets to expand more than one Accordion item at a time.
229
- *
230
- * @default 'Multiple'
231
- */
232
- expandMode?: ExpandMode;
233
-
234
- /**
235
- * Specifies whether to enable the rendering of untrusted HTML values in the Accordion component.
236
- * When this property is enabled, the component will sanitize any suspected untrusted strings and scripts before rendering them.
237
- *
238
- * @default true
239
- */
240
- enableHtmlSanitizer?: boolean;
241
-
242
- /**
243
- * Specifies the animation configuration settings for expanding and collapsing the panel.
244
- *
245
- * @default { expand: { effect: 'SlideDown', duration: 400, easing: 'linear' },
246
- * collapse: { effect: 'SlideUp', duration: 400, easing: 'linear' }}
247
- */
248
- animation?: AccordionAnimationSettingsModel;
249
-
250
- /**
251
- * The event will be fired while clicking anywhere within the Accordion.
252
- *
253
- * @event clicked
254
- */
255
- clicked?: EmitType<AccordionClickArgs>;
256
-
257
- /**
258
- * The event will be fired before the item gets collapsed/expanded.
259
- *
260
- * @event expanding
261
- */
262
- expanding?: EmitType<ExpandEventArgs>;
263
-
264
- /**
265
- * The event will be fired after the item gets collapsed/expanded.
266
- *
267
- * @event expanded
268
- */
269
- expanded?: EmitType<ExpandedEventArgs>;
270
-
271
- /**
272
- * The event will be fired once the control rendering is completed.
273
- *
274
- * @event created
275
- */
276
- created?: EmitType<Event>;
277
-
278
- /**
279
- * The event will be fired when the control gets destroyed.
280
- *
281
- * @event destroyed
282
- */
283
- destroyed?: EmitType<Event>;
284
-
285
- }