@baloise/ds-core 19.9.4-nightly.20260513 → 19.9.5

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 (214) hide show
  1. package/components/all.d.ts +0 -2
  2. package/components/all.js +0 -3
  3. package/components/animation.decorator.js +1 -1
  4. package/components/bal-accordion.js +1 -1
  5. package/components/bal-app.js +102 -1
  6. package/components/bal-button2.js +1 -1
  7. package/components/bal-carousel-item.js +1 -1
  8. package/components/bal-checkbox-group.js +21 -3
  9. package/components/bal-checkbox2.js +21 -4
  10. package/components/bal-date-calendar2.js +1 -1
  11. package/components/bal-date.js +1 -1
  12. package/components/bal-dropdown.js +1 -1
  13. package/components/bal-field.js +1 -1
  14. package/components/bal-footer.js +1 -1
  15. package/components/bal-form.js +1 -1
  16. package/components/bal-input-stepper.js +1 -1
  17. package/components/bal-list-item-accordion-body2.js +1 -1
  18. package/components/bal-list-item2.js +1 -1
  19. package/components/bal-logo2.js +1 -1
  20. package/components/bal-modal.js +1 -1
  21. package/components/bal-nav.js +65 -53
  22. package/components/bal-navbar-brand.js +1 -1
  23. package/components/bal-option-list2.js +1 -1
  24. package/components/bal-popup2.js +1 -1
  25. package/components/bal-radio-group.js +1 -1
  26. package/components/bal-segment-item.js +1 -1
  27. package/components/bal-select2.js +23 -11
  28. package/components/bal-spinner2.js +1 -1
  29. package/components/bal-stage-image.js +1 -1
  30. package/components/bal-switch.js +1 -74
  31. package/{dist/esm/bal-switch.entry.js → components/bal-switch2.js} +36 -8
  32. package/components/bal-tabs2.js +29 -17
  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 +449 -5
  40. package/components/mutation.decorator.js +1 -1
  41. package/components/overlays.js +1 -1
  42. package/components/resize.decorator.js +1 -1
  43. package/components/swipe.subject.js +1 -1
  44. package/components/swiper.util.js +1 -1
  45. package/components/tokens.esm.js +1 -1
  46. package/components/visibility.decorator.js +1 -1
  47. package/dist/baloise-design-system/baloise-design-system.esm.js +1 -1
  48. package/dist/baloise-design-system/baloise-design-system.js +1 -1
  49. package/dist/baloise-design-system/index.esm.js +1 -1
  50. package/dist/baloise-design-system/{p-09d63730a7.entry.js → p-1bb5b8696e.entry.js} +1 -1
  51. package/dist/baloise-design-system/p-1d7406989c.system.entry.js +1 -0
  52. package/dist/baloise-design-system/{p-0b1aeaaed8.entry.js → p-3850595dd0.entry.js} +1 -1
  53. package/dist/baloise-design-system/{p-81c4b117a6.system.entry.js → p-43dd693355.system.entry.js} +1 -1
  54. package/dist/baloise-design-system/{p-8f510eed45.entry.js → p-477359bbf9.entry.js} +1 -1
  55. package/dist/baloise-design-system/{p-873a0bf9d9.system.entry.js → p-59129fb1d1.system.entry.js} +1 -1
  56. package/dist/baloise-design-system/{p-CIBedZ4h.js → p-5GEK9UQy.js} +1 -1
  57. package/dist/baloise-design-system/{p-8bc92b4b2e.system.entry.js → p-607125007c.system.entry.js} +1 -1
  58. package/dist/baloise-design-system/{p-38888ff243.system.entry.js → p-64d45da025.system.entry.js} +1 -1
  59. package/dist/baloise-design-system/{p-89a45b7719.system.entry.js → p-68baccfba9.system.entry.js} +1 -1
  60. package/dist/baloise-design-system/{p-8da007a406.entry.js → p-68f77714ab.entry.js} +1 -1
  61. package/dist/baloise-design-system/{p-9459a04689.system.entry.js → p-6c3d087d59.system.entry.js} +1 -1
  62. package/dist/baloise-design-system/{p-627def5e99.entry.js → p-74fe27789f.entry.js} +1 -1
  63. package/dist/baloise-design-system/{p-41e1ac82bb.entry.js → p-8268d61dd6.entry.js} +1 -1
  64. package/dist/baloise-design-system/{p-b273a2f73a.entry.js → p-8e3412d465.entry.js} +1 -1
  65. package/dist/baloise-design-system/p-BFRjY4w3.js +1 -1
  66. package/dist/baloise-design-system/p-BRAmUyPx.system.js +1 -1
  67. package/dist/baloise-design-system/p-Bk7UdnZ5.system.js +1 -0
  68. package/dist/baloise-design-system/p-CKN3W8qn.js +1 -0
  69. package/dist/baloise-design-system/{p-x0vPGP6t.system.js → p-CPHPFMUC.system.js} +1 -1
  70. package/dist/baloise-design-system/{p-3VlTyI5Z.system.js → p-CsPrCX4f.system.js} +1 -1
  71. package/dist/baloise-design-system/{p-CWajPM1f.system.js → p-DLLNm5Gs.system.js} +1 -1
  72. package/dist/baloise-design-system/{p-BQ-ZBPGz.js → p-DvLv1IDC.js} +1 -1
  73. package/dist/baloise-design-system/{p-DOmwcY8I.system.js → p-DxnFuP0T.system.js} +1 -1
  74. package/dist/baloise-design-system/{p-BeOuHPcP.js → p-Oz8SBVmc.js} +1 -1
  75. package/dist/baloise-design-system/p-aDM_iThE.system.js +1 -0
  76. package/dist/baloise-design-system/{p-bd8e1fd900.entry.js → p-af05694fd5.entry.js} +1 -1
  77. package/dist/baloise-design-system/{p-2bd8d02b81.entry.js → p-b670d9cae9.entry.js} +1 -1
  78. package/dist/baloise-design-system/{p-46986c305d.system.entry.js → p-b6e82651ef.system.entry.js} +1 -1
  79. package/dist/baloise-design-system/{p-4df7edd98f.entry.js → p-bac3d30df3.entry.js} +1 -1
  80. package/dist/baloise-design-system/{p-1922f177ca.system.entry.js → p-bbeeefc31a.system.entry.js} +1 -1
  81. package/dist/baloise-design-system/{p-b75d71bb54.entry.js → p-c31dc8146b.entry.js} +1 -1
  82. package/dist/baloise-design-system/{p-439f4eac54.system.entry.js → p-c4a244b558.system.entry.js} +1 -1
  83. package/dist/baloise-design-system/{p-4f5b4d3b9e.entry.js → p-c5ae87f18e.entry.js} +1 -1
  84. package/dist/baloise-design-system/{p-15a9d2bdb4.entry.js → p-c8b853074f.entry.js} +1 -1
  85. package/dist/baloise-design-system/{p-8058e17e38.system.entry.js → p-d21134a60b.system.entry.js} +1 -1
  86. package/dist/baloise-design-system/{p-c6f0c6f765.system.entry.js → p-d5bd821ab7.system.entry.js} +1 -1
  87. package/dist/baloise-design-system/p-d9349f5eb0.entry.js +1 -0
  88. package/dist/baloise-design-system/{p-7d611a8e60.entry.js → p-e6f03ecdd0.entry.js} +1 -1
  89. package/dist/baloise-design-system/{p-c72c874ad0.system.entry.js → p-eb2f5b22de.system.entry.js} +1 -1
  90. package/dist/baloise-design-system/{p-4b6f33ea10.system.entry.js → p-f2435a528c.system.entry.js} +1 -1
  91. package/dist/baloise-design-system/{p-2cab716afd.system.entry.js → p-fa728470a3.system.entry.js} +1 -1
  92. package/dist/cjs/{global-BOGOCc0T.js → app-globals-D4xKyILL.js} +4 -2
  93. package/dist/cjs/bal-carousel_2.cjs.entry.js +3 -3
  94. package/dist/cjs/{bal-dropdown_3.cjs.entry.js → bal-check_7.cjs.entry.js} +815 -9
  95. package/dist/cjs/bal-field_5.cjs.entry.js +3 -3
  96. package/dist/cjs/bal-hint_5.cjs.entry.js +3 -3
  97. package/dist/cjs/bal-list_8.cjs.entry.js +3 -3
  98. package/dist/cjs/bal-logo.cjs.entry.js +3 -3
  99. package/dist/cjs/bal-nav_8.cjs.entry.js +3 -3
  100. package/dist/cjs/bal-navbar_5.cjs.entry.js +3 -3
  101. package/dist/cjs/bal-pagination.cjs.entry.js +3 -3
  102. package/dist/cjs/bal-progress-bar.cjs.entry.js +4 -4
  103. package/dist/cjs/{bal-radio_2.cjs.entry.js → bal-radio_3.cjs.entry.js} +50 -0
  104. package/dist/cjs/bal-segment_2.cjs.entry.js +4 -4
  105. package/dist/cjs/bal-shape.cjs.entry.js +1 -1
  106. package/dist/cjs/bal-steps.cjs.entry.js +3 -3
  107. package/dist/cjs/bal-tab-item_2.cjs.entry.js +3 -3
  108. package/dist/cjs/baloise-design-system.cjs.js +2 -3
  109. package/dist/cjs/{breakpoints.decorator-CDD6cOv6.js → breakpoints.decorator-DPrGtqtk.js} +1 -1
  110. package/dist/cjs/{breakpoints.subject-DpuyBCjh.js → breakpoints.subject-C1p-ePFH.js} +1 -1
  111. package/dist/cjs/index.cjs.js +2 -2
  112. package/dist/cjs/initialize-BzrcZo6Y.js +1 -1
  113. package/dist/cjs/loader.cjs.js +2 -3
  114. package/dist/cjs/{tokens.esm-LV2Uuiay.js → tokens.esm-BWWYqtq4.js} +1 -1
  115. package/dist/cjs/{window-resize.decorator-C-w0-60C.js → window-resize.decorator-DRN0wiUR.js} +1 -1
  116. package/dist/collection/collection-manifest.json +15 -17
  117. package/dist/collection/components/bal-checkbox/bal-checkbox.js +2 -3
  118. package/dist/collection/utils/constants/version.constant.js +1 -1
  119. package/dist/esm/{global-Llrc69_N.js → app-globals-Blx--ecs.js} +4 -2
  120. package/dist/esm/bal-carousel_2.entry.js +3 -3
  121. package/dist/esm/{bal-dropdown_3.entry.js → bal-check_7.entry.js} +815 -13
  122. package/dist/esm/bal-field_5.entry.js +3 -3
  123. package/dist/esm/bal-hint_5.entry.js +3 -3
  124. package/dist/esm/bal-list_8.entry.js +3 -3
  125. package/dist/esm/bal-logo.entry.js +3 -3
  126. package/dist/esm/bal-nav_8.entry.js +3 -3
  127. package/dist/esm/bal-navbar_5.entry.js +3 -3
  128. package/dist/esm/bal-pagination.entry.js +3 -3
  129. package/dist/esm/bal-progress-bar.entry.js +4 -4
  130. package/dist/esm/{bal-radio_2.entry.js → bal-radio_3.entry.js} +50 -1
  131. package/dist/esm/bal-segment_2.entry.js +4 -4
  132. package/dist/esm/bal-shape.entry.js +1 -1
  133. package/dist/esm/bal-steps.entry.js +3 -3
  134. package/dist/esm/bal-tab-item_2.entry.js +3 -3
  135. package/dist/esm/baloise-design-system.js +2 -3
  136. package/dist/esm/{breakpoints.decorator-DcfCKRvu.js → breakpoints.decorator-DwhK_t2m.js} +1 -1
  137. package/dist/esm/{breakpoints.subject-9qUvMXOC.js → breakpoints.subject-PxavGndB.js} +1 -1
  138. package/dist/esm/index.js +3 -3
  139. package/dist/esm/initialize-W3od-FM9.js +1 -1
  140. package/dist/esm/loader.js +2 -3
  141. package/dist/esm/{tokens.esm-CvA86VZU.js → tokens.esm-Dk6PruGq.js} +1 -1
  142. package/dist/esm/{window-resize.decorator-DNh3w5KW.js → window-resize.decorator-DiNYHJee.js} +1 -1
  143. package/dist/esm-es5/app-globals-Blx--ecs.js +1 -0
  144. package/dist/esm-es5/bal-carousel_2.entry.js +1 -1
  145. package/dist/esm-es5/bal-check_7.entry.js +1 -0
  146. package/dist/esm-es5/bal-field_5.entry.js +1 -1
  147. package/dist/esm-es5/bal-hint_5.entry.js +1 -1
  148. package/dist/esm-es5/bal-list_8.entry.js +1 -1
  149. package/dist/esm-es5/bal-logo.entry.js +1 -1
  150. package/dist/esm-es5/bal-nav_8.entry.js +1 -1
  151. package/dist/esm-es5/bal-navbar_5.entry.js +1 -1
  152. package/dist/esm-es5/bal-pagination.entry.js +1 -1
  153. package/dist/esm-es5/bal-progress-bar.entry.js +1 -1
  154. package/dist/esm-es5/{bal-radio_2.entry.js → bal-radio_3.entry.js} +1 -1
  155. package/dist/esm-es5/bal-segment_2.entry.js +1 -1
  156. package/dist/esm-es5/bal-shape.entry.js +1 -1
  157. package/dist/esm-es5/bal-steps.entry.js +1 -1
  158. package/dist/esm-es5/bal-tab-item_2.entry.js +1 -1
  159. package/dist/esm-es5/baloise-design-system.js +1 -1
  160. package/dist/esm-es5/{breakpoints.decorator-DcfCKRvu.js → breakpoints.decorator-DwhK_t2m.js} +1 -1
  161. package/dist/esm-es5/{breakpoints.subject-9qUvMXOC.js → breakpoints.subject-PxavGndB.js} +1 -1
  162. package/dist/esm-es5/index.js +1 -1
  163. package/dist/esm-es5/initialize-W3od-FM9.js +1 -1
  164. package/dist/esm-es5/loader.js +1 -1
  165. package/dist/esm-es5/{window-resize.decorator-DNh3w5KW.js → window-resize.decorator-DiNYHJee.js} +1 -1
  166. package/dist/types/components.d.ts +0 -75
  167. package/package.json +6 -6
  168. package/components/bal-app2.js +0 -104
  169. package/components/bal-doc-app.d.ts +0 -11
  170. package/components/bal-doc-app.js +0 -264
  171. package/components/initialize.js +0 -450
  172. package/dist/baloise-design-system/p-00d493e589.system.entry.js +0 -1
  173. package/dist/baloise-design-system/p-21ea7b32f1.system.entry.js +0 -1
  174. package/dist/baloise-design-system/p-24185181f1.system.entry.js +0 -1
  175. package/dist/baloise-design-system/p-2dbbdfb785.system.entry.js +0 -1
  176. package/dist/baloise-design-system/p-5965694a0f.entry.js +0 -1
  177. package/dist/baloise-design-system/p-75f3abf19e.system.entry.js +0 -1
  178. package/dist/baloise-design-system/p-90d225c57c.system.entry.js +0 -1
  179. package/dist/baloise-design-system/p-9ca0a9bf5c.entry.js +0 -1
  180. package/dist/baloise-design-system/p-BvSkuJ_n.js +0 -1
  181. package/dist/baloise-design-system/p-BzIZLOtt.system.js +0 -1
  182. package/dist/baloise-design-system/p-C_qvcMEM.system.js +0 -1
  183. package/dist/baloise-design-system/p-DrynNwPm.system.js +0 -1
  184. package/dist/baloise-design-system/p-Ectc3YAG.js +0 -1
  185. package/dist/baloise-design-system/p-a97c5309f7.entry.js +0 -1
  186. package/dist/baloise-design-system/p-f217ad88a9.entry.js +0 -1
  187. package/dist/baloise-design-system/p-f7b16f08ab.entry.js +0 -1
  188. package/dist/baloise-design-system/p-fc9a46b295.entry.js +0 -1
  189. package/dist/cjs/app-globals-DcKvQZAC.js +0 -7
  190. package/dist/cjs/bal-check.cjs.entry.js +0 -55
  191. package/dist/cjs/bal-checkbox_2.cjs.entry.js +0 -734
  192. package/dist/cjs/bal-doc-app.cjs.entry.js +0 -231
  193. package/dist/cjs/bal-radio-icon.cjs.entry.js +0 -55
  194. package/dist/cjs/bal-switch.cjs.entry.js +0 -50
  195. package/dist/collection/components/docs/bal-doc-app/bal-doc-app.css +0 -1
  196. package/dist/collection/components/docs/bal-doc-app/bal-doc-app.js +0 -248
  197. package/dist/esm/app-globals-CIj5uAPM.js +0 -5
  198. package/dist/esm/bal-check.entry.js +0 -53
  199. package/dist/esm/bal-checkbox_2.entry.js +0 -731
  200. package/dist/esm/bal-doc-app.entry.js +0 -229
  201. package/dist/esm/bal-radio-icon.entry.js +0 -53
  202. package/dist/esm-es5/app-globals-CIj5uAPM.js +0 -1
  203. package/dist/esm-es5/bal-check.entry.js +0 -1
  204. package/dist/esm-es5/bal-checkbox_2.entry.js +0 -1
  205. package/dist/esm-es5/bal-doc-app.entry.js +0 -1
  206. package/dist/esm-es5/bal-dropdown_3.entry.js +0 -1
  207. package/dist/esm-es5/bal-radio-icon.entry.js +0 -1
  208. package/dist/esm-es5/bal-switch.entry.js +0 -1
  209. package/dist/esm-es5/global-Llrc69_N.js +0 -1
  210. package/dist/types/components/docs/bal-doc-app/bal-doc-app.d.ts +0 -21
  211. package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/icons/src/index.d.ts +0 -82
  212. /package/dist/baloise-design-system/{p-CvA86VZU.js → p-Dk6PruGq.js} +0 -0
  213. /package/dist/baloise-design-system/{p-BpG6m494.system.js → p-Nqmo3uHl.system.js} +0 -0
  214. /package/dist/esm-es5/{tokens.esm-CvA86VZU.js → tokens.esm-Dk6PruGq.js} +0 -0
@@ -4,21 +4,23 @@ import { a as areArraysEqual } from './array.js';
4
4
  import { i as inheritAttributes } from './attributes.js';
5
5
  import { B as BEM } from './bem.js';
6
6
  import { s as stopEventBubbling } from './form-input.js';
7
- import { r as raf, q as debounce, k as debounceEvent, u as hasParent, l as rOnLoad, i as isDescendant, a as waitAfterFramePaint, d as deepReady, t as transitionEndAsync } from './helpers.js';
7
+ import { r as raf, l as debounce, k as debounceEvent, u as hasParent, n as rOnLoad, i as isDescendant, b as waitAfterFramePaint, d as deepReady, t as transitionEndAsync } from './helpers.js';
8
8
  import { L as Logger } from './log.js';
9
9
  import { t as toKebabCase } from './string.js';
10
10
  import { S as SwiperUtil, g as getComputedPadding, a as getWidthOfOverflowingChildren } from './swiper.util.js';
11
11
  import { n as newBalTabOption } from './bal-tab.util.js';
12
12
  import { a as ariaBooleanToString } from './aria.js';
13
13
  import { b as balBrowser } from './browser.js';
14
- import { d as defineCustomElement$9 } from './bal-badge2.js';
15
- import { d as defineCustomElement$8 } from './bal-checkbox2.js';
16
- import { d as defineCustomElement$7 } from './bal-close2.js';
17
- import { d as defineCustomElement$6 } from './bal-icon2.js';
18
- import { d as defineCustomElement$5 } from './bal-popover2.js';
19
- import { d as defineCustomElement$4 } from './bal-popover-content2.js';
20
- import { d as defineCustomElement$3 } from './bal-select2.js';
21
- import { d as defineCustomElement$2 } from './bal-select-option2.js';
14
+ import { d as defineCustomElement$b } from './bal-badge2.js';
15
+ import { d as defineCustomElement$a } from './bal-check2.js';
16
+ import { d as defineCustomElement$9 } from './bal-checkbox2.js';
17
+ import { d as defineCustomElement$8 } from './bal-close2.js';
18
+ import { d as defineCustomElement$7 } from './bal-icon2.js';
19
+ import { d as defineCustomElement$6 } from './bal-popover2.js';
20
+ import { d as defineCustomElement$5 } from './bal-popover-content2.js';
21
+ import { d as defineCustomElement$4 } from './bal-select2.js';
22
+ import { d as defineCustomElement$3 } from './bal-select-option2.js';
23
+ import { d as defineCustomElement$2 } from './bal-switch2.js';
22
24
  import { d as defineCustomElement$1 } from './bal-tag2.js';
23
25
  import { L as ListenToAnimation } from './animation.decorator.js';
24
26
  import { b as balBreakpoints } from './breakpoints.subject.js';
@@ -910,7 +912,7 @@ function defineCustomElement() {
910
912
  if (typeof customElements === "undefined") {
911
913
  return;
912
914
  }
913
- const components = ["bal-tabs", "bal-badge", "bal-checkbox", "bal-close", "bal-icon", "bal-popover", "bal-popover-content", "bal-select", "bal-select-option", "bal-tag"];
915
+ const components = ["bal-tabs", "bal-badge", "bal-check", "bal-checkbox", "bal-close", "bal-icon", "bal-popover", "bal-popover-content", "bal-select", "bal-select-option", "bal-switch", "bal-tag"];
914
916
  components.forEach(tagName => { switch (tagName) {
915
917
  case "bal-tabs":
916
918
  if (!customElements.get(tagName)) {
@@ -919,40 +921,50 @@ function defineCustomElement() {
919
921
  break;
920
922
  case "bal-badge":
921
923
  if (!customElements.get(tagName)) {
922
- defineCustomElement$9();
924
+ defineCustomElement$b();
925
+ }
926
+ break;
927
+ case "bal-check":
928
+ if (!customElements.get(tagName)) {
929
+ defineCustomElement$a();
923
930
  }
924
931
  break;
925
932
  case "bal-checkbox":
926
933
  if (!customElements.get(tagName)) {
927
- defineCustomElement$8();
934
+ defineCustomElement$9();
928
935
  }
929
936
  break;
930
937
  case "bal-close":
931
938
  if (!customElements.get(tagName)) {
932
- defineCustomElement$7();
939
+ defineCustomElement$8();
933
940
  }
934
941
  break;
935
942
  case "bal-icon":
936
943
  if (!customElements.get(tagName)) {
937
- defineCustomElement$6();
944
+ defineCustomElement$7();
938
945
  }
939
946
  break;
940
947
  case "bal-popover":
941
948
  if (!customElements.get(tagName)) {
942
- defineCustomElement$5();
949
+ defineCustomElement$6();
943
950
  }
944
951
  break;
945
952
  case "bal-popover-content":
946
953
  if (!customElements.get(tagName)) {
947
- defineCustomElement$4();
954
+ defineCustomElement$5();
948
955
  }
949
956
  break;
950
957
  case "bal-select":
951
958
  if (!customElements.get(tagName)) {
952
- defineCustomElement$3();
959
+ defineCustomElement$4();
953
960
  }
954
961
  break;
955
962
  case "bal-select-option":
963
+ if (!customElements.get(tagName)) {
964
+ defineCustomElement$3();
965
+ }
966
+ break;
967
+ case "bal-switch":
956
968
  if (!customElements.get(tagName)) {
957
969
  defineCustomElement$2();
958
970
  }
@@ -1,4 +1,4 @@
1
- import { q as debounce, o as addEventListener, p as removeEventListener } from './helpers.js';
1
+ import { l as debounce, p as addEventListener, q as removeEventListener } from './helpers.js';
2
2
  import { b as balBrowser } from './browser.js';
3
3
  import { b as balDevice } from './device.js';
4
4
  import { L as ListenerAbstract, S as Subject } from './listener.js';
@@ -1,6 +1,6 @@
1
1
  import { L as ListenerAbstract, a as SingleSubject } from './listener.js';
2
2
  import { b as balBrowser } from './browser.js';
3
- import { o as addEventListener, p as removeEventListener } from './helpers.js';
3
+ import { p as addEventListener, q as removeEventListener } from './helpers.js';
4
4
 
5
5
  class BalElementStateListener extends ListenerAbstract {
6
6
  constructor() {
@@ -1,4 +1,4 @@
1
- import { l as rOnLoad } from './helpers.js';
1
+ import { n as rOnLoad } from './helpers.js';
2
2
 
3
3
  class BalFloatingUiInternal {
4
4
  constructor() {
@@ -1,6 +1,6 @@
1
1
  import { L as ListenerAbstract, a as SingleSubject } from './listener.js';
2
2
  import { b as balBrowser } from './browser.js';
3
- import { b as waitAfterIdleCallback, i as isDescendant, o as addEventListener, p as removeEventListener } from './helpers.js';
3
+ import { e as waitAfterIdleCallback, i as isDescendant, p as addEventListener, q as removeEventListener } from './helpers.js';
4
4
 
5
5
  class BalFocusListener extends ListenerAbstract {
6
6
  constructor() {
@@ -1,4 +1,4 @@
1
- import { b as waitAfterIdleCallback } from './helpers.js';
1
+ import { e as waitAfterIdleCallback } from './helpers.js';
2
2
 
3
3
  const stopEventBubbling = (ev) => {
4
4
  if (ev) {
@@ -304,4 +304,4 @@ const runHighPrioritizedTask = (callback) => {
304
304
  }
305
305
  };
306
306
 
307
- export { waitAfterFramePaint as a, waitAfterIdleCallback as b, componentOnReady as c, deepReady as d, waitAfterLargestContentfulPaintCallback as e, waitForComponent as f, getAppRoot as g, waitForDesignSystem as h, isDescendant as i, waitOnLoadEventCallback as j, debounceEvent as k, rOnLoad as l, hasTagName as m, rIC as n, addEventListener as o, removeEventListener as p, debounce as q, raf as r, shallowReady as s, transitionEndAsync as t, hasParent as u, isChildOfEventTarget as v, wait as w };
307
+ export { wait as a, waitAfterFramePaint as b, componentOnReady as c, deepReady as d, waitAfterIdleCallback as e, waitAfterLargestContentfulPaintCallback as f, getAppRoot as g, waitForDesignSystem as h, isDescendant as i, waitOnLoadEventCallback as j, debounceEvent as k, debounce as l, rIC as m, rOnLoad as n, hasTagName as o, addEventListener as p, removeEventListener as q, raf as r, shallowReady as s, transitionEndAsync as t, hasParent as u, isChildOfEventTarget as v, waitForComponent as w };
@@ -1,3 +1,4 @@
1
+ import { setPlatformHelpers } from '@stencil/core/internal/client';
1
2
  export { getAssetPath, render, setAssetPath, setNonce, setPlatformOptions } from '@stencil/core/internal/client';
2
3
  export { F as FileUploadRejectionReason } from './bal-file-upload.type.js';
3
4
  export { i as i18nBalClose } from './bal-close.i18n.js';
@@ -7,25 +8,177 @@ export { i as i18nBalLabel } from './bal-label.i18n.js';
7
8
  export { i as i18nBalTimeInput } from './bal-time-input.i18n.js';
8
9
  export { n as newBalStepOption } from './bal-step.util.js';
9
10
  export { n as newBalTabOption } from './bal-tab.util.js';
10
- export { B as BalSnackbarController, a as BalToastController, b as balSnackbarController, c as balToastController, i as initialize, i as initializeBaloiseDesignSystem, s as setupConfig } from './initialize.js';
11
11
  import { b as balBrowser } from './browser.js';
12
+ import { w as waitForComponent, g as getAppRoot, c as componentOnReady } from './helpers.js';
13
+ export { d as deepReady, i as isDescendant, s as shallowReady, a as wait, b as waitAfterFramePaint, e as waitAfterIdleCallback, f as waitAfterLargestContentfulPaintCallback, h as waitForDesignSystem, j as waitOnLoadEventCallback } from './helpers.js';
14
+ import { d as defaultConfig } from './config.default.js';
12
15
  import { b as balDevice } from './device.js';
13
16
  export { B as BalDevice } from './device.js';
14
17
  export { n as newBalOption } from './option.js';
15
18
  export { s as scrollToFirstInvalidField } from './form.js';
16
- import { g as getAppRoot, c as componentOnReady } from './helpers.js';
17
- export { d as deepReady, i as isDescendant, s as shallowReady, w as wait, a as waitAfterFramePaint, b as waitAfterIdleCallback, e as waitAfterLargestContentfulPaintCallback, f as waitForComponent, h as waitForDesignSystem, j as waitOnLoadEventCallback } from './helpers.js';
18
19
  export { I as INVALID_VALUE } from './mask-util.js';
19
20
  export { B as BalScrollHandler } from './scroll.js';
20
21
  import { g as getOverlays, a as getOverlay } from './overlays.js';
21
22
  import { B as BalWindowResizeListener, b as balBreakpoints } from './breakpoints.subject.js';
22
23
  export { c as BalBreakpointSubject, d as BalBreakpointsUtil, a as balBreakpointSubject } from './breakpoints.subject.js';
23
24
  export { a as attachToConfig, d as detachFromConfig, o as onBalConfigChange, u as updateBalAllowedLanguages, b as updateBalAnimated, c as updateBalIcons, e as updateBalLanguage, f as updateBalRegion, g as useBalConfig } from './config.utils.js';
24
- export { d as defaultConfig } from './config.default.js';
25
25
  export { B as BalDate } from './date.js';
26
26
  import { S as Subject } from './listener.js';
27
27
  export { B as BalSwipeSubject } from './swipe.subject.js';
28
28
 
29
+ const BALOISE_ANIMATION_KEY = 'baloise-animated';
30
+
31
+ class Config {
32
+ constructor() {
33
+ this._componentObservers = [];
34
+ this._observers = [];
35
+ this._config = defaultConfig;
36
+ }
37
+ get locale() {
38
+ return `${this._config.language}-${this._config.region}`;
39
+ }
40
+ get region() {
41
+ return this._config.region;
42
+ }
43
+ set region(region) {
44
+ if (region !== this._config.region) {
45
+ this._config.region = region;
46
+ this._notify();
47
+ }
48
+ }
49
+ get language() {
50
+ return this._config.language;
51
+ }
52
+ get brand() {
53
+ return this._config.brand;
54
+ }
55
+ set brand(brand) {
56
+ if (brand !== this._config.brand) {
57
+ this._config.brand = brand;
58
+ this._notify();
59
+ }
60
+ }
61
+ set language(language) {
62
+ if (language !== this._config.language) {
63
+ if (this._config.allowedLanguages.includes(language)) {
64
+ this._config.language = language;
65
+ }
66
+ else {
67
+ this._config.language = this._config.fallbackLanguage;
68
+ }
69
+ this._notify();
70
+ }
71
+ }
72
+ get allowedLanguages() {
73
+ return this._config.allowedLanguages;
74
+ }
75
+ set allowedLanguages(allowedLanguages) {
76
+ if (allowedLanguages !== this._config.allowedLanguages) {
77
+ this._config.allowedLanguages = allowedLanguages;
78
+ this._notify();
79
+ }
80
+ }
81
+ get icons() {
82
+ return this._config.icons;
83
+ }
84
+ set icons(icons) {
85
+ this._config.icons = Object.assign(Object.assign({}, this._config.icons), icons);
86
+ this._notify();
87
+ }
88
+ get logger() {
89
+ return this._config.logger;
90
+ }
91
+ set logger(logger) {
92
+ this._config.logger = Object.assign({}, logger);
93
+ this._notify();
94
+ }
95
+ get animated() {
96
+ return this._config.animated;
97
+ }
98
+ set animated(animated) {
99
+ this._config.animated = animated;
100
+ this._notify();
101
+ }
102
+ get httpFormSubmit() {
103
+ return this._config.httpFormSubmit;
104
+ }
105
+ set httpFormSubmit(httpFormSubmit) {
106
+ this._config.httpFormSubmit = httpFormSubmit;
107
+ this._notify();
108
+ }
109
+ attach(observer) {
110
+ const isExist = this._observers.includes(observer);
111
+ if (isExist) {
112
+ return console.log('Subject: Observer has been attached already.');
113
+ }
114
+ this._observers.push(observer);
115
+ observer.configChanged(this._config);
116
+ }
117
+ detach(observer) {
118
+ const observerIndex = this._observers.indexOf(observer);
119
+ if (observerIndex === -1) {
120
+ return console.log('Subject: Nonexistent observer.');
121
+ }
122
+ this._observers.splice(observerIndex, 1);
123
+ }
124
+ attachComponent(observer) {
125
+ const isExist = this._componentObservers.includes(observer);
126
+ if (isExist) {
127
+ return console.log('Subject: Observer has been attached already.');
128
+ }
129
+ this._componentObservers.push(observer);
130
+ observer.configChanged(this._config);
131
+ }
132
+ detachComponent(observer) {
133
+ const observerIndex = this._componentObservers.indexOf(observer);
134
+ if (observerIndex === -1) {
135
+ return console.log('Subject: Nonexistent observer.');
136
+ }
137
+ this._componentObservers.splice(observerIndex, 1);
138
+ }
139
+ toString() {
140
+ return JSON.stringify(this._config);
141
+ }
142
+ reset(config) {
143
+ this._config = Object.assign(Object.assign(Object.assign({}, this._config), config), { icons: Object.assign(Object.assign({}, this._config.icons), config.icons) });
144
+ this._notify(false);
145
+ }
146
+ _notify(all = true) {
147
+ for (const observer of this._componentObservers) {
148
+ observer.configChanged(this._config);
149
+ }
150
+ if (all) {
151
+ for (const observer of this._observers) {
152
+ observer.configChanged(this._config);
153
+ }
154
+ }
155
+ }
156
+ }
157
+ const config = /*@__PURE__*/ new Config();
158
+ const configFromLocalStorage = (win) => {
159
+ try {
160
+ const animated = JSON.parse(win.localStorage.getItem(BALOISE_ANIMATION_KEY));
161
+ if (animated !== null) {
162
+ return {
163
+ animated,
164
+ };
165
+ }
166
+ return {};
167
+ }
168
+ catch (e) {
169
+ return {};
170
+ }
171
+ };
172
+
173
+ const setupConfig = (userConfig = {}, win = {}) => {
174
+ if (Object.keys(win).length === 0 && balBrowser.hasWindow) {
175
+ win = window;
176
+ }
177
+ win.BaloiseDesignSystem = win.BaloiseDesignSystem || {};
178
+ config.reset(Object.assign(Object.assign(Object.assign({}, configFromLocalStorage(win)), userConfig), { icons: Object.assign({}, userConfig.icons) }));
179
+ win.BaloiseDesignSystem.config = config;
180
+ };
181
+
29
182
  const i18nBalFieldLabel = {
30
183
  de: {
31
184
  optional: ' (optional)',
@@ -79,6 +232,297 @@ const newBalSingleOptionValue = (valueAndLabel, disabled = false, data) => {
79
232
  return newBalOptionValue(valueAndLabel, valueAndLabel, disabled, data);
80
233
  };
81
234
 
235
+ class BalNoticeController {
236
+ constructor(options) {
237
+ this.options = options;
238
+ this.container = null;
239
+ this.queue = [];
240
+ this.preQueue = [];
241
+ this.queueLimit = 5;
242
+ }
243
+ create(options) {
244
+ if (balBrowser.hasDocument) {
245
+ this.setupContainer(options);
246
+ const clone = this.findClone(options);
247
+ if (clone === undefined) {
248
+ const el = document.createElement(this.options.tag);
249
+ Object.assign(el, options);
250
+ el.addEventListener('balClose', ev => {
251
+ this.removeFromQueue(ev.detail);
252
+ });
253
+ this.preQueue.push(el);
254
+ this.updateQueue();
255
+ return el;
256
+ }
257
+ return clone;
258
+ }
259
+ }
260
+ setQueue(queueLimit) {
261
+ this.queueLimit = queueLimit;
262
+ }
263
+ async dismissAll() {
264
+ var _a;
265
+ const elements = (_a = this.container) === null || _a === void 0 ? void 0 : _a.querySelectorAll(this.options.tag);
266
+ if (elements) {
267
+ const closingQueue = [];
268
+ for (let index = 0; index < elements.length; index++) {
269
+ const el = elements[index];
270
+ if (el.close) {
271
+ closingQueue.push(el.close());
272
+ }
273
+ }
274
+ await Promise.all(closingQueue);
275
+ }
276
+ }
277
+ /**
278
+ * @deprecated use dismissAll instead
279
+ */
280
+ async clearAll() {
281
+ console.warn('[DEPRECATED] - use dismissAll() instead');
282
+ return this.dismissAll();
283
+ }
284
+ findClone(options) {
285
+ for (let index = 0; index < this.queue.length; index++) {
286
+ const el = this.queue[index];
287
+ if (el.message === options.message && el.color === options.color) {
288
+ return el;
289
+ }
290
+ }
291
+ return undefined;
292
+ }
293
+ setupContainer(options) {
294
+ if (balBrowser.hasDocument) {
295
+ const containerId = `${this.options.tag}-container`;
296
+ this.container = document.getElementById(containerId);
297
+ if (this.container)
298
+ return;
299
+ if (!this.container) {
300
+ this.container = document.createElement('bal-notices');
301
+ this.container.setAttribute('interface', this.options.tag.replace('bal-', ''));
302
+ this.container.setAttribute('animated', options.animated ? 'true' : 'false');
303
+ if (options.container !== undefined) {
304
+ this.container.setAttribute('container', options.container === true ? '' : options.container);
305
+ }
306
+ this.container.id = containerId;
307
+ }
308
+ document.body.appendChild(this.container);
309
+ }
310
+ }
311
+ async updateQueue() {
312
+ var _a;
313
+ if (this.queue.length < this.queueLimit) {
314
+ const el = this.preQueue.shift();
315
+ if (el && this.container) {
316
+ await waitForComponent(this.container);
317
+ const innerEl = this.container.querySelector('.bal-notices__inner');
318
+ if (innerEl) {
319
+ this.queue.push(el);
320
+ innerEl.insertAdjacentElement('beforeend', el);
321
+ }
322
+ }
323
+ }
324
+ if (this.queue.length === 0) {
325
+ (_a = this.container) === null || _a === void 0 ? void 0 : _a.remove();
326
+ }
327
+ }
328
+ removeFromQueue(toastId) {
329
+ this.queue = this.queue.filter(el => el.id !== toastId);
330
+ setTimeout(() => this.updateQueue(), 0);
331
+ }
332
+ }
333
+
334
+ class BalSnackbarController extends BalNoticeController {
335
+ constructor() {
336
+ super({
337
+ tag: 'bal-snackbar',
338
+ });
339
+ }
340
+ create(options) {
341
+ return super.create(options);
342
+ }
343
+ }
344
+ const balSnackbarController = new BalSnackbarController();
345
+
346
+ class BalToastController extends BalNoticeController {
347
+ constructor() {
348
+ super({
349
+ tag: 'bal-toast',
350
+ });
351
+ }
352
+ create(options) {
353
+ return super.create(options);
354
+ }
355
+ }
356
+ const balToastController = new BalToastController();
357
+
358
+ const tags = [
359
+ "bal-accordion",
360
+ "bal-accordion-details",
361
+ "bal-accordion-summary",
362
+ "bal-accordion-trigger",
363
+ "bal-app",
364
+ "bal-badge",
365
+ "bal-button",
366
+ "bal-button-group",
367
+ "bal-card",
368
+ "bal-card-actions",
369
+ "bal-card-button",
370
+ "bal-card-content",
371
+ "bal-card-subtitle",
372
+ "bal-card-title",
373
+ "bal-carousel",
374
+ "bal-carousel-item",
375
+ "bal-check",
376
+ "bal-checkbox",
377
+ "bal-checkbox-group",
378
+ "bal-close",
379
+ "bal-content",
380
+ "bal-data",
381
+ "bal-data-item",
382
+ "bal-data-label",
383
+ "bal-data-value",
384
+ "bal-date",
385
+ "bal-date-calendar",
386
+ "bal-date-calendar-cell",
387
+ "bal-divider",
388
+ "bal-dropdown",
389
+ "bal-field",
390
+ "bal-field-control",
391
+ "bal-field-hint",
392
+ "bal-field-label",
393
+ "bal-field-message",
394
+ "bal-file-upload",
395
+ "bal-footer",
396
+ "bal-form",
397
+ "bal-form-col",
398
+ "bal-form-grid",
399
+ "bal-heading",
400
+ "bal-hint",
401
+ "bal-hint-text",
402
+ "bal-hint-title",
403
+ "bal-icon",
404
+ "bal-input",
405
+ "bal-input-date",
406
+ "bal-input-group",
407
+ "bal-input-slider",
408
+ "bal-input-stepper",
409
+ "bal-label",
410
+ "bal-list",
411
+ "bal-list-item",
412
+ "bal-list-item-accordion-body",
413
+ "bal-list-item-accordion-head",
414
+ "bal-list-item-content",
415
+ "bal-list-item-icon",
416
+ "bal-list-item-subtitle",
417
+ "bal-list-item-title",
418
+ "bal-logo",
419
+ "bal-modal",
420
+ "bal-modal-body",
421
+ "bal-modal-header",
422
+ "bal-nav",
423
+ "bal-nav-link",
424
+ "bal-nav-link-grid",
425
+ "bal-nav-link-grid-col",
426
+ "bal-nav-link-group",
427
+ "bal-nav-menu-bar",
428
+ "bal-nav-menu-flyout",
429
+ "bal-nav-meta-bar",
430
+ "bal-navbar",
431
+ "bal-navbar-brand",
432
+ "bal-navbar-menu",
433
+ "bal-navbar-menu-end",
434
+ "bal-navbar-menu-start",
435
+ "bal-notices",
436
+ "bal-notification",
437
+ "bal-number-input",
438
+ "bal-option",
439
+ "bal-option-list",
440
+ "bal-pagination",
441
+ "bal-popover",
442
+ "bal-popover-content",
443
+ "bal-popup",
444
+ "bal-progress-bar",
445
+ "bal-radio",
446
+ "bal-radio-group",
447
+ "bal-radio-icon",
448
+ "bal-segment",
449
+ "bal-segment-item",
450
+ "bal-select",
451
+ "bal-select-option",
452
+ "bal-shape",
453
+ "bal-sheet",
454
+ "bal-snackbar",
455
+ "bal-spinner",
456
+ "bal-stack",
457
+ "bal-stage",
458
+ "bal-stage-back-link",
459
+ "bal-stage-body",
460
+ "bal-stage-foot",
461
+ "bal-stage-head",
462
+ "bal-stage-image",
463
+ "bal-step-item",
464
+ "bal-steps",
465
+ "bal-switch",
466
+ "bal-tab-item",
467
+ "bal-table",
468
+ "bal-tabs",
469
+ "bal-tag",
470
+ "bal-tag-group",
471
+ "bal-text",
472
+ "bal-textarea",
473
+ "bal-time-input",
474
+ "bal-toast",
475
+ "bal-tooltip"
476
+ ];
477
+
478
+ // generated by .build/version.js
479
+ const VERSION = '19.9.5';
480
+
481
+ const initializeBaloiseDesignSystem = (userConfig = {}, platformConfig = undefined, win = {}) => {
482
+ if (Object.keys(win).length === 0 && balBrowser.hasWindow) {
483
+ win = window;
484
+ }
485
+ win.BaloiseDesignSystem = win.BaloiseDesignSystem || {};
486
+ if (platformConfig) {
487
+ setPlatformHelpers(platformConfig);
488
+ }
489
+ setupConfig(Object.assign(Object.assign({}, userConfig), platformConfig), win);
490
+ win.BaloiseDesignSystem.toastController = balToastController;
491
+ win.BaloiseDesignSystem.snackbarController = balSnackbarController;
492
+ win.BaloiseDesignSystem.initialize = () => setupConfig(win.BaloiseDesignSystem.config, win);
493
+ win.BaloiseDesignSystem.version = VERSION;
494
+ if (userConfig._generateHydrateForCustomElementsOutput) {
495
+ generateHydrateForCustomElementsOutput(tags);
496
+ }
497
+ };
498
+ /**
499
+ * This function generates the CSS needed for custom elements hydration and inserts it into the document head.
500
+ * The CSS rules include styles for slot fallback and the hydrated class.
501
+ *
502
+ * This is copied from the Stencil core library.
503
+ * src/runtime/bootstrap-lazy.ts
504
+ */
505
+ const generateHydrateForCustomElementsOutput = (cmpTags = []) => {
506
+ const SLOT_FB_CSS = 'slot-fb{display:contents}slot-fb[hidden]{display:none}';
507
+ const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
508
+ const win = typeof window !== 'undefined' ? window : {};
509
+ if (!win.document) {
510
+ console.warn('Stencil: No document found. Skipping bootstrapping lazy components.');
511
+ return;
512
+ }
513
+ const head = win.document.head;
514
+ const metaCharset = /* @__PURE__ */ head.querySelector('meta[charset]');
515
+ const dataStyles = /* @__PURE__ */ win.document.createElement('style');
516
+ if (cmpTags.length > 0) {
517
+ dataStyles.textContent += SLOT_FB_CSS;
518
+ dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
519
+ if (dataStyles.innerHTML.length) {
520
+ dataStyles.setAttribute('data-styles', '');
521
+ head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
522
+ }
523
+ }
524
+ };
525
+
82
526
  class BalOrientationSubject extends Subject {
83
527
  constructor() {
84
528
  super(observer => observer.orientationListener(this.state));
@@ -176,4 +620,4 @@ const isPlatform = (winOrPlatform, platform) => {
176
620
  const NewBalOptionValue = newBalOptionValue;
177
621
  const NewBalSingleOptionValue = newBalSingleOptionValue;
178
622
 
179
- export { BalModalController, BalOrientationSubject, NewBalOptionValue, NewBalSingleOptionValue, balBreakpoints, balBrowser, balDevice, balModalController, balOrientationSubject, componentOnReady, getAppRoot, getPlatforms, hasTouchSupport, i18nBalFieldLabel, isBrowser, isPlatform, newBalCheckboxOption, newBalOptionValue, newBalRadioOption, newBalSingleOptionValue };
623
+ export { BalModalController, BalOrientationSubject, BalSnackbarController, BalToastController, NewBalOptionValue, NewBalSingleOptionValue, balBreakpoints, balBrowser, balDevice, balModalController, balOrientationSubject, balSnackbarController, balToastController, componentOnReady, defaultConfig, getAppRoot, getPlatforms, hasTouchSupport, i18nBalFieldLabel, initializeBaloiseDesignSystem as initialize, initializeBaloiseDesignSystem, isBrowser, isPlatform, newBalCheckboxOption, newBalOptionValue, newBalRadioOption, newBalSingleOptionValue, setupConfig, waitForComponent };
@@ -1,4 +1,4 @@
1
- import { d as deepReady, a as waitAfterFramePaint, q as debounce } from './helpers.js';
1
+ import { d as deepReady, b as waitAfterFramePaint, l as debounce } from './helpers.js';
2
2
  import { L as ListenerAbstract, a as SingleSubject } from './listener.js';
3
3
 
4
4
  class BalMutationListener extends ListenerAbstract {
@@ -1,5 +1,5 @@
1
1
  import { b as balBrowser } from './browser.js';
2
- import { o as addEventListener, p as removeEventListener } from './helpers.js';
2
+ import { p as addEventListener, q as removeEventListener } from './helpers.js';
3
3
 
4
4
  /**
5
5
  * This query string selects elements that
@@ -1,4 +1,4 @@
1
- import { q as debounce, n as rIC } from './helpers.js';
1
+ import { l as debounce, m as rIC } from './helpers.js';
2
2
  import { L as ListenerAbstract, a as SingleSubject } from './listener.js';
3
3
  import { b as balBrowser } from './browser.js';
4
4
 
@@ -1,6 +1,6 @@
1
1
  import { b as balDevice } from './device.js';
2
2
  import { L as ListenerAbstract, a as SingleSubject } from './listener.js';
3
- import { l as rOnLoad } from './helpers.js';
3
+ import { n as rOnLoad } from './helpers.js';
4
4
 
5
5
  class BalSwipeListener extends ListenerAbstract {
6
6
  async connect(el) {
@@ -1,7 +1,7 @@
1
1
  import { h } from '@stencil/core/internal/client';
2
2
  import { B as BEM } from './bem.js';
3
3
  import { s as stopEventBubbling } from './form-input.js';
4
- import { i as isDescendant, q as debounce, o as addEventListener, p as removeEventListener, r as raf } from './helpers.js';
4
+ import { i as isDescendant, l as debounce, p as addEventListener, q as removeEventListener, r as raf } from './helpers.js';
5
5
  import { e as isTabKey } from './keyboard.helpers.js';
6
6
 
7
7
  const convert = (value) => parseInt(value.slice(0, -2), 10);