@baloise/ds-core 19.9.2 → 19.9.3-nightly.20260403

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 (187) hide show
  1. package/components/all.d.ts +2 -0
  2. package/components/all.js +3 -0
  3. package/components/animation.decorator.js +1 -1
  4. package/components/bal-accordion.js +34 -12
  5. package/components/bal-app.js +1 -102
  6. package/components/bal-app2.js +104 -0
  7. package/components/bal-button2.js +1 -1
  8. package/components/bal-carousel-item.js +1 -1
  9. package/components/bal-checkbox-group.js +1 -1
  10. package/components/bal-date-calendar2.js +1 -1
  11. package/components/bal-date.js +1 -1
  12. package/components/bal-doc-app.d.ts +11 -0
  13. package/components/bal-doc-app.js +264 -0
  14. package/components/bal-dropdown.js +1 -1
  15. package/components/bal-field.js +1 -1
  16. package/components/bal-footer.js +1 -1
  17. package/components/bal-form.js +1 -1
  18. package/components/bal-input-stepper.js +1 -1
  19. package/components/bal-list-item-accordion-body2.js +1 -1
  20. package/components/bal-list-item2.js +1 -1
  21. package/components/bal-logo2.js +1 -1
  22. package/components/bal-modal.js +1 -1
  23. package/components/bal-nav.js +1 -1
  24. package/components/bal-navbar-brand.js +1 -1
  25. package/components/bal-option-list2.js +1 -1
  26. package/components/bal-popup2.js +1 -1
  27. package/components/bal-radio-group.js +1 -1
  28. package/components/bal-segment-item.js +1 -1
  29. package/components/bal-select2.js +1 -1
  30. package/components/bal-spinner2.js +1 -1
  31. package/components/bal-stage-image.js +1 -1
  32. package/components/bal-tabs2.js +1 -1
  33. package/components/breakpoints.subject.js +1 -1
  34. package/components/element-states.decorator.js +1 -1
  35. package/components/floating-ui.js +1 -1
  36. package/components/focus.decorator.js +1 -1
  37. package/components/form-input.js +1 -1
  38. package/components/helpers.js +1 -1
  39. package/components/index.js +5 -449
  40. package/components/initialize.js +450 -0
  41. package/components/mutation.decorator.js +1 -1
  42. package/components/overlays.js +1 -1
  43. package/components/resize.decorator.js +1 -1
  44. package/components/swipe.subject.js +1 -1
  45. package/components/swiper.util.js +1 -1
  46. package/components/tokens.esm.js +1 -1
  47. package/components/visibility.decorator.js +1 -1
  48. package/dist/baloise-design-system/baloise-design-system.esm.js +1 -1
  49. package/dist/baloise-design-system/baloise-design-system.js +1 -1
  50. package/dist/baloise-design-system/index.esm.js +1 -1
  51. package/dist/baloise-design-system/{p-591debd7c3.entry.js → p-0d4f106841.entry.js} +1 -1
  52. package/dist/baloise-design-system/p-21ea7b32f1.system.entry.js +1 -0
  53. package/dist/baloise-design-system/{p-35a5ef54a0.system.entry.js → p-21f1707096.system.entry.js} +1 -1
  54. package/dist/baloise-design-system/{p-1f5ead4b22.entry.js → p-2a39bddb32.entry.js} +1 -1
  55. package/dist/baloise-design-system/{p-1d1f8316d7.system.entry.js → p-2ceb3f6333.system.entry.js} +1 -1
  56. package/dist/baloise-design-system/{p-414a850825.system.entry.js → p-355dab162a.system.entry.js} +1 -1
  57. package/dist/baloise-design-system/{p-CsPrCX4f.system.js → p-3VlTyI5Z.system.js} +1 -1
  58. package/dist/baloise-design-system/{p-874298b6f3.system.entry.js → p-3a19ba2b9b.system.entry.js} +1 -1
  59. package/dist/baloise-design-system/{p-62d22238a8.system.entry.js → p-3a3484447d.system.entry.js} +1 -1
  60. package/dist/baloise-design-system/{p-8f0624929d.system.entry.js → p-42e73341e6.system.entry.js} +1 -1
  61. package/dist/baloise-design-system/{p-550f1b809a.entry.js → p-4f3188d84d.entry.js} +1 -1
  62. package/dist/baloise-design-system/{p-5e3d004ff0.entry.js → p-523b4b23c2.entry.js} +1 -1
  63. package/dist/baloise-design-system/{p-778faed2c9.entry.js → p-5443ea92b6.entry.js} +1 -1
  64. package/dist/baloise-design-system/{p-d8f0f0e341.system.entry.js → p-57e2653070.system.entry.js} +1 -1
  65. package/dist/baloise-design-system/{p-402da722fc.system.entry.js → p-63383e4905.system.entry.js} +1 -1
  66. package/dist/baloise-design-system/{p-a19115481e.entry.js → p-65fabe9f0a.entry.js} +1 -1
  67. package/dist/baloise-design-system/p-68c75901a4.system.entry.js +1 -0
  68. package/dist/baloise-design-system/{p-396bf929bc.system.entry.js → p-6dd84402db.system.entry.js} +1 -1
  69. package/dist/baloise-design-system/{p-3f3fd4d0fb.entry.js → p-720cba47c9.entry.js} +1 -1
  70. package/dist/baloise-design-system/p-7563a0a66d.entry.js +1 -0
  71. package/dist/baloise-design-system/{p-c638ff8e96.system.entry.js → p-81de2b6ce9.system.entry.js} +1 -1
  72. package/dist/baloise-design-system/{p-9e1dd8fae9.system.entry.js → p-84c44e94a1.system.entry.js} +1 -1
  73. package/dist/baloise-design-system/{p-BT9kotrD.system.js → p-8ShVW5i8.system.js} +1 -1
  74. package/dist/baloise-design-system/p-9ca0a9bf5c.entry.js +1 -0
  75. package/dist/baloise-design-system/p-BFRjY4w3.js +1 -1
  76. package/dist/baloise-design-system/p-BIQomDzv.system.js +1 -0
  77. package/dist/baloise-design-system/p-BRAmUyPx.system.js +1 -1
  78. package/dist/baloise-design-system/{p-BLNTV2y9.js → p-Bj1UIKJa.js} +1 -1
  79. package/dist/baloise-design-system/p-BvSkuJ_n.js +1 -0
  80. package/dist/baloise-design-system/p-BzIZLOtt.system.js +1 -0
  81. package/dist/baloise-design-system/{p-OSNEECer.js → p-CWl_Z8Ck.js} +1 -1
  82. package/dist/baloise-design-system/p-C_qvcMEM.system.js +1 -0
  83. package/dist/baloise-design-system/p-Ectc3YAG.js +1 -0
  84. package/dist/baloise-design-system/{p-lqmCqCXD.system.js → p-If81YPiv.system.js} +1 -1
  85. package/dist/baloise-design-system/{p-D4HExdbi.system.js → p-WD7fTBn2.system.js} +1 -1
  86. package/dist/baloise-design-system/{p-3111be34fe.entry.js → p-a7819c965d.entry.js} +1 -1
  87. package/dist/baloise-design-system/{p-98b209c6fb.entry.js → p-ac26bf1c41.entry.js} +1 -1
  88. package/dist/baloise-design-system/{p-4fd089ea55.entry.js → p-b30d16fc24.entry.js} +1 -1
  89. package/dist/baloise-design-system/{p-0858ef65f2.system.entry.js → p-be738b2b15.system.entry.js} +1 -1
  90. package/dist/baloise-design-system/{p-ce1ac691fc.entry.js → p-c534dba230.entry.js} +1 -1
  91. package/dist/baloise-design-system/{p-33a49c1b2b.system.entry.js → p-c8d1052385.system.entry.js} +1 -1
  92. package/dist/baloise-design-system/{p-4d7d8d1fd3.entry.js → p-e8a5dc1823.entry.js} +1 -1
  93. package/dist/baloise-design-system/{p-ca021528cf.entry.js → p-ef35eaa717.entry.js} +1 -1
  94. package/dist/baloise-design-system/{p-cnNPy_UF.js → p-mpQwTmfD.js} +1 -1
  95. package/dist/cjs/app-globals-DcKvQZAC.js +7 -0
  96. package/dist/cjs/bal-accordion_4.cjs.entry.js +33 -11
  97. package/dist/cjs/bal-carousel_2.cjs.entry.js +3 -3
  98. package/dist/cjs/bal-doc-app.cjs.entry.js +231 -0
  99. package/dist/cjs/bal-field_5.cjs.entry.js +3 -3
  100. package/dist/cjs/bal-hint_5.cjs.entry.js +3 -3
  101. package/dist/cjs/bal-list_8.cjs.entry.js +3 -3
  102. package/dist/cjs/bal-logo.cjs.entry.js +3 -3
  103. package/dist/cjs/bal-nav_8.cjs.entry.js +3 -3
  104. package/dist/cjs/bal-navbar_5.cjs.entry.js +3 -3
  105. package/dist/cjs/bal-pagination.cjs.entry.js +3 -3
  106. package/dist/cjs/bal-progress-bar.cjs.entry.js +4 -4
  107. package/dist/cjs/bal-segment_2.cjs.entry.js +4 -4
  108. package/dist/cjs/bal-shape.cjs.entry.js +1 -1
  109. package/dist/cjs/bal-steps.cjs.entry.js +3 -3
  110. package/dist/cjs/bal-tab-item_2.cjs.entry.js +3 -3
  111. package/dist/cjs/baloise-design-system.cjs.js +3 -2
  112. package/dist/cjs/{breakpoints.decorator-BLbtZQPE.js → breakpoints.decorator-B8DRTYL_.js} +1 -1
  113. package/dist/cjs/{breakpoints.subject-Dm5PhV8R.js → breakpoints.subject-Bkyagu5K.js} +1 -1
  114. package/dist/cjs/{app-globals-D4xKyILL.js → global-BOGOCc0T.js} +2 -4
  115. package/dist/cjs/index.cjs.js +2 -2
  116. package/dist/cjs/initialize-BzrcZo6Y.js +1 -1
  117. package/dist/cjs/loader.cjs.js +3 -2
  118. package/dist/cjs/{tokens.esm-DizoRyJW.js → tokens.esm-BZIpYmb1.js} +1 -1
  119. package/dist/cjs/{window-resize.decorator-0M6RxXln.js → window-resize.decorator-51XJuaGr.js} +1 -1
  120. package/dist/collection/collection-manifest.json +2 -1
  121. package/dist/collection/components/bal-accordion/bal-accordion.js +33 -11
  122. package/dist/collection/components/docs/bal-doc-app/bal-doc-app.css +1 -0
  123. package/dist/collection/components/docs/bal-doc-app/bal-doc-app.js +248 -0
  124. package/dist/collection/utils/constants/version.constant.js +1 -1
  125. package/dist/esm/app-globals-CIj5uAPM.js +5 -0
  126. package/dist/esm/bal-accordion_4.entry.js +33 -11
  127. package/dist/esm/bal-carousel_2.entry.js +3 -3
  128. package/dist/esm/bal-doc-app.entry.js +229 -0
  129. package/dist/esm/bal-field_5.entry.js +3 -3
  130. package/dist/esm/bal-hint_5.entry.js +3 -3
  131. package/dist/esm/bal-list_8.entry.js +3 -3
  132. package/dist/esm/bal-logo.entry.js +3 -3
  133. package/dist/esm/bal-nav_8.entry.js +3 -3
  134. package/dist/esm/bal-navbar_5.entry.js +3 -3
  135. package/dist/esm/bal-pagination.entry.js +3 -3
  136. package/dist/esm/bal-progress-bar.entry.js +4 -4
  137. package/dist/esm/bal-segment_2.entry.js +4 -4
  138. package/dist/esm/bal-shape.entry.js +1 -1
  139. package/dist/esm/bal-steps.entry.js +3 -3
  140. package/dist/esm/bal-tab-item_2.entry.js +3 -3
  141. package/dist/esm/baloise-design-system.js +3 -2
  142. package/dist/esm/{breakpoints.decorator-D8tyvKfl.js → breakpoints.decorator-DiyER4G8.js} +1 -1
  143. package/dist/esm/{breakpoints.subject-C7sMRxmL.js → breakpoints.subject-C7x4XnK0.js} +1 -1
  144. package/dist/esm/{app-globals-Blx--ecs.js → global-Llrc69_N.js} +2 -4
  145. package/dist/esm/index.js +3 -3
  146. package/dist/esm/initialize-W3od-FM9.js +1 -1
  147. package/dist/esm/loader.js +3 -2
  148. package/dist/esm/{tokens.esm-CggbMUrI.js → tokens.esm-CVJxXAEJ.js} +1 -1
  149. package/dist/esm/{window-resize.decorator-CzU20wtn.js → window-resize.decorator-DpVzfcm-.js} +1 -1
  150. package/dist/esm-es5/app-globals-CIj5uAPM.js +1 -0
  151. package/dist/esm-es5/bal-accordion_4.entry.js +1 -1
  152. package/dist/esm-es5/bal-carousel_2.entry.js +1 -1
  153. package/dist/esm-es5/bal-doc-app.entry.js +1 -0
  154. package/dist/esm-es5/bal-field_5.entry.js +1 -1
  155. package/dist/esm-es5/bal-hint_5.entry.js +1 -1
  156. package/dist/esm-es5/bal-list_8.entry.js +1 -1
  157. package/dist/esm-es5/bal-logo.entry.js +1 -1
  158. package/dist/esm-es5/bal-nav_8.entry.js +1 -1
  159. package/dist/esm-es5/bal-navbar_5.entry.js +1 -1
  160. package/dist/esm-es5/bal-pagination.entry.js +1 -1
  161. package/dist/esm-es5/bal-progress-bar.entry.js +1 -1
  162. package/dist/esm-es5/bal-segment_2.entry.js +1 -1
  163. package/dist/esm-es5/bal-shape.entry.js +1 -1
  164. package/dist/esm-es5/bal-steps.entry.js +1 -1
  165. package/dist/esm-es5/bal-tab-item_2.entry.js +1 -1
  166. package/dist/esm-es5/baloise-design-system.js +1 -1
  167. package/dist/esm-es5/{breakpoints.decorator-D8tyvKfl.js → breakpoints.decorator-DiyER4G8.js} +1 -1
  168. package/dist/esm-es5/{breakpoints.subject-C7sMRxmL.js → breakpoints.subject-C7x4XnK0.js} +1 -1
  169. package/dist/esm-es5/global-Llrc69_N.js +1 -0
  170. package/dist/esm-es5/index.js +1 -1
  171. package/dist/esm-es5/initialize-W3od-FM9.js +1 -1
  172. package/dist/esm-es5/loader.js +1 -1
  173. package/dist/esm-es5/{window-resize.decorator-CzU20wtn.js → window-resize.decorator-DpVzfcm-.js} +1 -1
  174. package/dist/types/components/bal-accordion/bal-accordion.d.ts +3 -0
  175. package/dist/types/components/docs/bal-doc-app/bal-doc-app.d.ts +21 -0
  176. package/dist/types/components.d.ts +75 -0
  177. package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/icons/src/index.d.ts +82 -0
  178. package/package.json +6 -6
  179. package/dist/baloise-design-system/p-Bk7UdnZ5.system.js +0 -1
  180. package/dist/baloise-design-system/p-CKN3W8qn.js +0 -1
  181. package/dist/baloise-design-system/p-aec5e73a82.system.entry.js +0 -1
  182. package/dist/baloise-design-system/p-aqkRpbjU.system.js +0 -1
  183. package/dist/baloise-design-system/p-ce2de36f43.entry.js +0 -1
  184. package/dist/esm-es5/app-globals-Blx--ecs.js +0 -1
  185. /package/dist/baloise-design-system/{p-DYEfn6Be.system.js → p-C9MTMdnA.system.js} +0 -0
  186. /package/dist/baloise-design-system/{p-CggbMUrI.js → p-CVJxXAEJ.js} +0 -0
  187. /package/dist/esm-es5/{tokens.esm-CggbMUrI.js → tokens.esm-CVJxXAEJ.js} +0 -0
@@ -0,0 +1,248 @@
1
+ import * as balIcons from "../../../../../../icons/src/index";
2
+ import { h, Host } from "@stencil/core";
3
+ import globalScript from "../../../global";
4
+ import { balBrowser } from "../../../utils/browser";
5
+ import { updateBalIcons } from "../../../utils/config";
6
+ /**
7
+ * @internal
8
+ */
9
+ export class DocApp {
10
+ constructor() {
11
+ this.logComponents = '';
12
+ this.logLifecycle = true;
13
+ this.logEvents = true;
14
+ this.logRender = true;
15
+ this.logCustom = true;
16
+ this.stickyFooter = false;
17
+ /**
18
+ * Disables all animation inside the bal-app. Can be used for simplify e2e testing.
19
+ */
20
+ this.animated = true;
21
+ }
22
+ connectedCallback() {
23
+ globalScript();
24
+ updateBalIcons(balIcons);
25
+ }
26
+ componentDidRender() {
27
+ const logConfig = {
28
+ components: this.logComponents
29
+ .split(',')
30
+ .map(c => c.trim())
31
+ .filter(c => c !== ''),
32
+ lifecycle: this.logLifecycle,
33
+ event: this.logEvents,
34
+ render: this.logRender,
35
+ custom: this.logCustom,
36
+ };
37
+ if (balBrowser.hasWindow) {
38
+ if (this.logComponents) {
39
+ ;
40
+ window.BaloiseDesignSystem.config.logger = logConfig;
41
+ }
42
+ if (this.region) {
43
+ ;
44
+ window.BaloiseDesignSystem.config.region = this.region;
45
+ }
46
+ if (this.language) {
47
+ ;
48
+ window.BaloiseDesignSystem.config.language = this.language;
49
+ }
50
+ }
51
+ }
52
+ render() {
53
+ return (h(Host, { key: 'bd48063fae2ad02a89fac43457aa8d58aa2c5b29' }, h("bal-app", { key: 'e99d6db063d21649f8cb310b4a3da4c9861a8c82', animated: this.animated }, h("div", { key: 'ae13f6acd39003afa2c0ab22dec4455d09544dea', class: { 'has-sticky-footer': this.stickyFooter } }, h("slot", { key: '9929e0ec4a2718860ec0f57a7adbd1442a268237' })))));
54
+ }
55
+ static get is() { return "bal-doc-app"; }
56
+ static get originalStyleUrls() {
57
+ return {
58
+ "$": ["bal-doc-app.sass"]
59
+ };
60
+ }
61
+ static get styleUrls() {
62
+ return {
63
+ "$": ["bal-doc-app.css"]
64
+ };
65
+ }
66
+ static get properties() {
67
+ return {
68
+ "logComponents": {
69
+ "type": "string",
70
+ "mutable": false,
71
+ "complexType": {
72
+ "original": "string",
73
+ "resolved": "string",
74
+ "references": {}
75
+ },
76
+ "required": false,
77
+ "optional": false,
78
+ "docs": {
79
+ "tags": [],
80
+ "text": ""
81
+ },
82
+ "getter": false,
83
+ "setter": false,
84
+ "reflect": false,
85
+ "attribute": "log-components",
86
+ "defaultValue": "''"
87
+ },
88
+ "logLifecycle": {
89
+ "type": "boolean",
90
+ "mutable": false,
91
+ "complexType": {
92
+ "original": "boolean",
93
+ "resolved": "boolean",
94
+ "references": {}
95
+ },
96
+ "required": false,
97
+ "optional": false,
98
+ "docs": {
99
+ "tags": [],
100
+ "text": ""
101
+ },
102
+ "getter": false,
103
+ "setter": false,
104
+ "reflect": false,
105
+ "attribute": "log-lifecycle",
106
+ "defaultValue": "true"
107
+ },
108
+ "logEvents": {
109
+ "type": "boolean",
110
+ "mutable": false,
111
+ "complexType": {
112
+ "original": "boolean",
113
+ "resolved": "boolean",
114
+ "references": {}
115
+ },
116
+ "required": false,
117
+ "optional": false,
118
+ "docs": {
119
+ "tags": [],
120
+ "text": ""
121
+ },
122
+ "getter": false,
123
+ "setter": false,
124
+ "reflect": false,
125
+ "attribute": "log-events",
126
+ "defaultValue": "true"
127
+ },
128
+ "logRender": {
129
+ "type": "boolean",
130
+ "mutable": false,
131
+ "complexType": {
132
+ "original": "boolean",
133
+ "resolved": "boolean",
134
+ "references": {}
135
+ },
136
+ "required": false,
137
+ "optional": false,
138
+ "docs": {
139
+ "tags": [],
140
+ "text": ""
141
+ },
142
+ "getter": false,
143
+ "setter": false,
144
+ "reflect": false,
145
+ "attribute": "log-render",
146
+ "defaultValue": "true"
147
+ },
148
+ "logCustom": {
149
+ "type": "boolean",
150
+ "mutable": false,
151
+ "complexType": {
152
+ "original": "boolean",
153
+ "resolved": "boolean",
154
+ "references": {}
155
+ },
156
+ "required": false,
157
+ "optional": false,
158
+ "docs": {
159
+ "tags": [],
160
+ "text": ""
161
+ },
162
+ "getter": false,
163
+ "setter": false,
164
+ "reflect": false,
165
+ "attribute": "log-custom",
166
+ "defaultValue": "true"
167
+ },
168
+ "stickyFooter": {
169
+ "type": "boolean",
170
+ "mutable": false,
171
+ "complexType": {
172
+ "original": "boolean",
173
+ "resolved": "boolean",
174
+ "references": {}
175
+ },
176
+ "required": false,
177
+ "optional": false,
178
+ "docs": {
179
+ "tags": [],
180
+ "text": ""
181
+ },
182
+ "getter": false,
183
+ "setter": false,
184
+ "reflect": false,
185
+ "attribute": "sticky-footer",
186
+ "defaultValue": "false"
187
+ },
188
+ "region": {
189
+ "type": "string",
190
+ "mutable": false,
191
+ "complexType": {
192
+ "original": "string",
193
+ "resolved": "string",
194
+ "references": {}
195
+ },
196
+ "required": false,
197
+ "optional": true,
198
+ "docs": {
199
+ "tags": [],
200
+ "text": ""
201
+ },
202
+ "getter": false,
203
+ "setter": false,
204
+ "reflect": false,
205
+ "attribute": "region"
206
+ },
207
+ "language": {
208
+ "type": "string",
209
+ "mutable": false,
210
+ "complexType": {
211
+ "original": "string",
212
+ "resolved": "string",
213
+ "references": {}
214
+ },
215
+ "required": false,
216
+ "optional": true,
217
+ "docs": {
218
+ "tags": [],
219
+ "text": ""
220
+ },
221
+ "getter": false,
222
+ "setter": false,
223
+ "reflect": false,
224
+ "attribute": "language"
225
+ },
226
+ "animated": {
227
+ "type": "boolean",
228
+ "mutable": false,
229
+ "complexType": {
230
+ "original": "boolean",
231
+ "resolved": "boolean",
232
+ "references": {}
233
+ },
234
+ "required": false,
235
+ "optional": false,
236
+ "docs": {
237
+ "tags": [],
238
+ "text": "Disables all animation inside the bal-app. Can be used for simplify e2e testing."
239
+ },
240
+ "getter": false,
241
+ "setter": false,
242
+ "reflect": true,
243
+ "attribute": "animated",
244
+ "defaultValue": "true"
245
+ }
246
+ };
247
+ }
248
+ }
@@ -1,2 +1,2 @@
1
1
  // generated by .build/version.js
2
- export const VERSION = '19.9.2';
2
+ export const VERSION = '19.9.3-nightly.20260403';
@@ -0,0 +1,5 @@
1
+ import { g as globalScript } from './global-Llrc69_N.js';
2
+
3
+ const globalScripts = globalScript;
4
+
5
+ export { globalScripts as g };
@@ -20,6 +20,7 @@ const Accordion = class {
20
20
  this.balWillAnimate = createEvent(this, "balWillAnimate");
21
21
  this.balDidAnimate = createEvent(this, "balDidAnimate");
22
22
  this.componentId = `bal-accordion-${accordionIds++}`;
23
+ this.animationGeneration = 0;
23
24
  this.state = 1 /* AccordionState.Collapsed */;
24
25
  this.animated = true;
25
26
  /**
@@ -101,6 +102,17 @@ const Accordion = class {
101
102
  summaryElement.active = this.active;
102
103
  }
103
104
  };
105
+ this.cancelAnimation = () => {
106
+ if (this.currentRaf !== undefined) {
107
+ cancelAnimationFrame(this.currentRaf);
108
+ this.currentRaf = undefined;
109
+ }
110
+ if (this.currentRafInner !== undefined) {
111
+ cancelAnimationFrame(this.currentRafInner);
112
+ this.currentRafInner = undefined;
113
+ }
114
+ this.animationGeneration++;
115
+ };
104
116
  this.expand = (initialUpdate = false) => {
105
117
  this.active = true;
106
118
  const detailsElement = this.detailsElement;
@@ -112,18 +124,23 @@ const Accordion = class {
112
124
  if (this.state === 4 /* AccordionState.Expanded */) {
113
125
  return this.active;
114
126
  }
115
- if (this.currentRaf !== undefined) {
116
- cancelAnimationFrame(this.currentRaf);
117
- }
127
+ this.cancelAnimation();
128
+ const generation = this.animationGeneration;
118
129
  if (this.shouldAnimate()) {
119
- raf(() => {
130
+ this.currentRaf = raf(() => {
131
+ if (generation !== this.animationGeneration)
132
+ return;
120
133
  this.setState(8 /* AccordionState.Expanding */);
121
134
  this.balWillAnimate.emit(this.active);
122
- this.currentRaf = raf(async () => {
135
+ this.currentRafInner = raf(async () => {
136
+ if (generation !== this.animationGeneration)
137
+ return;
123
138
  const contentHeight = detailsWrapperElement.offsetHeight;
124
139
  const waitForTransition = transitionEndAsync(detailsElement, 300);
125
140
  detailsElement.style.setProperty('max-height', `${contentHeight}px`);
126
141
  await waitForTransition;
142
+ if (generation !== this.animationGeneration)
143
+ return;
127
144
  this.setState(4 /* AccordionState.Expanded */);
128
145
  detailsElement.style.removeProperty('max-height');
129
146
  this.balDidAnimate.emit(this.active);
@@ -147,18 +164,23 @@ const Accordion = class {
147
164
  if (this.state === 1 /* AccordionState.Collapsed */) {
148
165
  return this.active;
149
166
  }
150
- if (this.currentRaf !== undefined) {
151
- cancelAnimationFrame(this.currentRaf);
152
- }
167
+ this.cancelAnimation();
168
+ const generation = this.animationGeneration;
153
169
  if (this.shouldAnimate()) {
154
170
  this.currentRaf = raf(async () => {
171
+ if (generation !== this.animationGeneration)
172
+ return;
155
173
  const contentHeight = detailsElement.offsetHeight;
156
174
  detailsElement.style.setProperty('max-height', `${contentHeight}px`);
157
- raf(async () => {
175
+ this.currentRafInner = raf(async () => {
176
+ if (generation !== this.animationGeneration)
177
+ return;
158
178
  const waitForTransition = transitionEndAsync(detailsElement, 300);
159
179
  this.setState(2 /* AccordionState.Collapsing */);
160
- this.balDidAnimate.emit(this.active);
180
+ this.balWillAnimate.emit(this.active);
161
181
  await waitForTransition;
182
+ if (generation !== this.animationGeneration)
183
+ return;
162
184
  this.setState(1 /* AccordionState.Collapsed */);
163
185
  detailsElement.style.removeProperty('max-height');
164
186
  this.balDidAnimate.emit(this.active);
@@ -166,7 +188,7 @@ const Accordion = class {
166
188
  });
167
189
  }
168
190
  else {
169
- this.balDidAnimate.emit(this.active);
191
+ this.balWillAnimate.emit(this.active);
170
192
  this.setState(1 /* AccordionState.Collapsed */);
171
193
  this.balDidAnimate.emit(this.active);
172
194
  }
@@ -1,14 +1,14 @@
1
1
  import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-BdVwMG9u.js';
2
2
  import { _ as __decorate, a as __metadata } from './tslib.es6-dfXERft2.js';
3
3
  import { B as BEM } from './bem-ByiN-QjD.js';
4
- import { L as ListenToBreakpoints } from './breakpoints.decorator-D8tyvKfl.js';
4
+ import { L as ListenToBreakpoints } from './breakpoints.decorator-DiyER4G8.js';
5
5
  import { s as stopEventBubbling } from './form-input-DYvzaBlM.js';
6
6
  import { a as ariaBooleanToString } from './aria-DBsOHTWj.js';
7
7
  import { t as toKebabCase, S as SwiperUtil } from './string-Dk4PnSfl.js';
8
8
  import { L as ListenToMutation } from './mutation.decorator-DhVeNnnY.js';
9
9
  import { L as ListenToSwipe } from './swipe.decorator-B_Ghrp1o.js';
10
10
  import { L as ListenToResize } from './resize.decorator-ZKPOJfw5.js';
11
- import { b as balBreakpoints } from './breakpoints.subject-C7sMRxmL.js';
11
+ import { b as balBreakpoints } from './breakpoints.subject-C7x4XnK0.js';
12
12
  import { d as defaultConfig } from './config.default-RE8-gLMQ.js';
13
13
  import { L as ListenToVisibility } from './visibility.decorator-zTjPC2du.js';
14
14
  import { L as ListenToConfig } from './config.decorator-3bfyZ-0Y.js';
@@ -20,7 +20,7 @@ import './listener-CClDIhvK.js';
20
20
  import './browser-B1u-Mq75.js';
21
21
  import './swipe.subject-T0VStuOK.js';
22
22
  import './device-TtMibDFL.js';
23
- import './tokens.esm-CggbMUrI.js';
23
+ import './tokens.esm-CVJxXAEJ.js';
24
24
  import './config.utils-B7jugjyM.js';
25
25
  import './log-CwssmmaV.js';
26
26
  import './_commonjsHelpers-BFTU3MAI.js';