@baloise/ds-core 17.2.0 → 17.2.1-nightly.20241218

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 (208) hide show
  1. package/components/all.d.ts +2 -0
  2. package/components/all.js +3 -0
  3. package/components/bal-app.js +1 -93
  4. package/components/bal-app2.js +95 -0
  5. package/components/bal-carousel2.js +1 -1
  6. package/components/bal-close2.js +1 -1
  7. package/components/bal-date-calendar2.js +1 -1
  8. package/components/bal-date.js +1 -1
  9. package/components/bal-doc-app.d.ts +11 -0
  10. package/components/bal-doc-app.js +262 -0
  11. package/components/bal-input-date2.js +2 -2
  12. package/components/bal-list-item-accordion-body2.js +3 -3
  13. package/components/bal-pagination2.js +4 -4
  14. package/components/bal-segment.js +1 -1
  15. package/components/bal-stage-image.js +1 -1
  16. package/components/bal-tabs2.js +12 -14
  17. package/components/index.js +5 -304
  18. package/components/initialize.js +303 -0
  19. package/components/mutation.decorator.js +11 -13
  20. package/components/tokens.esm.js +1 -1
  21. package/dist/baloise-design-system/baloise-design-system.esm.js +1 -1
  22. package/dist/baloise-design-system/baloise-design-system.js +1 -1
  23. package/dist/baloise-design-system/index.esm.js +1 -1
  24. package/dist/baloise-design-system/{p-eee34b1983.entry.js → p-012d9e742e.entry.js} +1 -1
  25. package/dist/baloise-design-system/{p-799a292492.entry.js → p-04979ee232.entry.js} +1 -1
  26. package/dist/baloise-design-system/p-153e72207a.entry.js +1 -0
  27. package/dist/baloise-design-system/{p-cc4dc17721.system.entry.js → p-18fbeec32d.system.entry.js} +1 -1
  28. package/dist/baloise-design-system/{p-aebb3198c4.system.entry.js → p-1cb1fb71d4.system.entry.js} +1 -1
  29. package/dist/baloise-design-system/{p-c045d5a57c.system.entry.js → p-20d7a74311.system.entry.js} +1 -1
  30. package/dist/baloise-design-system/{p-fd88b00c71.system.entry.js → p-2b2b1b7c93.system.entry.js} +1 -1
  31. package/dist/baloise-design-system/{p-8e244ba61a.entry.js → p-2cdc626e3f.entry.js} +1 -1
  32. package/dist/baloise-design-system/{p-e3a563de25.system.entry.js → p-374ce10b98.system.entry.js} +1 -1
  33. package/dist/baloise-design-system/{p-9f83acd71d.entry.js → p-39ad885d73.entry.js} +1 -1
  34. package/dist/baloise-design-system/{p-749fe3de.system.js → p-3cb1982c.system.js} +1 -1
  35. package/dist/baloise-design-system/p-3d1747bc.system.js +1 -0
  36. package/dist/baloise-design-system/{p-73efab2c3a.system.entry.js → p-42be32ba07.system.entry.js} +1 -1
  37. package/dist/baloise-design-system/{p-512a273a.js → p-4794d9aa.js} +1 -1
  38. package/dist/baloise-design-system/{p-d8fb982e61.system.entry.js → p-482fbfe677.system.entry.js} +1 -1
  39. package/dist/baloise-design-system/{p-4c8470249b.system.entry.js → p-5409f91b36.system.entry.js} +1 -1
  40. package/dist/baloise-design-system/{p-a7cf23072c.entry.js → p-5633d2268f.entry.js} +1 -1
  41. package/dist/baloise-design-system/p-576c7123.system.js +1 -0
  42. package/dist/baloise-design-system/{p-88be14c716.entry.js → p-5bbc6e33c0.entry.js} +1 -1
  43. package/dist/baloise-design-system/p-605cf17f30.entry.js +1 -0
  44. package/dist/baloise-design-system/{p-01cdb12b31.entry.js → p-63793834ec.entry.js} +1 -1
  45. package/dist/baloise-design-system/p-65b542bd.system.js +1 -1
  46. package/dist/baloise-design-system/{p-34b1a9a33b.entry.js → p-6a7e9ecb47.entry.js} +1 -1
  47. package/dist/baloise-design-system/{p-246e9e2585.system.entry.js → p-6b6a1e6e73.system.entry.js} +1 -1
  48. package/dist/baloise-design-system/{p-fb2a9f7542.system.entry.js → p-6da66e2b7e.system.entry.js} +1 -1
  49. package/dist/baloise-design-system/{p-5361e8255f.system.entry.js → p-7234f01079.system.entry.js} +1 -1
  50. package/dist/baloise-design-system/{p-749056f366.entry.js → p-775960260a.entry.js} +1 -1
  51. package/dist/baloise-design-system/{p-992c49c23e.system.entry.js → p-7d63b70a40.system.entry.js} +1 -1
  52. package/dist/baloise-design-system/{p-a68d21a21e.system.entry.js → p-83e1a5e2d8.system.entry.js} +1 -1
  53. package/dist/baloise-design-system/{p-c412a7d9f5.system.entry.js → p-85f853f154.system.entry.js} +1 -1
  54. package/dist/baloise-design-system/{p-38eaad35.js → p-87e8a649.js} +1 -1
  55. package/dist/baloise-design-system/{p-3c4bbee680.system.entry.js → p-8ef7318b76.system.entry.js} +1 -1
  56. package/dist/baloise-design-system/p-92a6c4407c.system.entry.js +1 -0
  57. package/dist/baloise-design-system/{p-9d3f7645.system.js → p-9ef02421.system.js} +1 -1
  58. package/dist/baloise-design-system/{p-737eb79c75.entry.js → p-a04605e550.entry.js} +1 -1
  59. package/dist/baloise-design-system/p-a24e650e.js +1 -0
  60. package/dist/baloise-design-system/p-a29f60e9.js +1 -0
  61. package/dist/baloise-design-system/{p-13e7a8817c.entry.js → p-a3d18d6e5c.entry.js} +1 -1
  62. package/dist/baloise-design-system/{p-b86876e144.entry.js → p-a6556b9bd0.entry.js} +1 -1
  63. package/dist/baloise-design-system/{p-30679d51bd.system.entry.js → p-ab64213bd1.system.entry.js} +1 -1
  64. package/dist/baloise-design-system/{p-c72669019f.system.entry.js → p-af956b48a1.system.entry.js} +1 -1
  65. package/dist/baloise-design-system/{p-8b8019c57c.entry.js → p-b715c1e68e.entry.js} +1 -1
  66. package/dist/baloise-design-system/{p-56f5e6d1.system.js → p-b79e4ef5.system.js} +1 -1
  67. package/dist/baloise-design-system/{p-55d6475b.js → p-b97dcbd9.js} +1 -1
  68. package/dist/baloise-design-system/{p-ba38ccde00.entry.js → p-ba0a53db6c.entry.js} +1 -1
  69. package/dist/baloise-design-system/{p-d1c71ad702.entry.js → p-c2c0d017b8.entry.js} +1 -1
  70. package/dist/baloise-design-system/{p-be6d3bde8f.entry.js → p-c486a8a8ed.entry.js} +1 -1
  71. package/dist/baloise-design-system/{p-de13d5c0.system.js → p-c4a29e1f.system.js} +1 -1
  72. package/dist/baloise-design-system/{p-faaf77375f.system.entry.js → p-c6ee7ff820.system.entry.js} +1 -1
  73. package/dist/baloise-design-system/p-ce674dca.js +1 -0
  74. package/dist/baloise-design-system/{p-4023b8977a.entry.js → p-cec4d35c92.entry.js} +1 -1
  75. package/dist/baloise-design-system/{p-34c50dfa1e.entry.js → p-dc032a0d49.entry.js} +1 -1
  76. package/dist/baloise-design-system/{p-ccee08eae1.system.entry.js → p-dc0b713dcb.system.entry.js} +1 -1
  77. package/dist/baloise-design-system/p-e3167218.js +1 -1
  78. package/dist/baloise-design-system/p-fabf47dd.system.js +1 -0
  79. package/dist/baloise-design-system/{p-b5152365.system.js → p-fdfe6d28.system.js} +1 -1
  80. package/dist/cjs/app-globals-d0a40f5b.js +7 -0
  81. package/dist/cjs/bal-carousel_2.cjs.entry.js +5 -5
  82. package/dist/cjs/bal-checkbox_2.cjs.entry.js +1 -1
  83. package/dist/cjs/bal-close.cjs.entry.js +1 -1
  84. package/dist/cjs/bal-date-calendar_2.cjs.entry.js +3 -3
  85. package/dist/cjs/bal-date.cjs.entry.js +1 -1
  86. package/dist/cjs/bal-doc-app.cjs.entry.js +233 -0
  87. package/dist/cjs/bal-field_5.cjs.entry.js +1 -1
  88. package/dist/cjs/bal-hint_5.cjs.entry.js +3 -3
  89. package/dist/cjs/bal-list_8.cjs.entry.js +6 -6
  90. package/dist/cjs/bal-logo.cjs.entry.js +3 -3
  91. package/dist/cjs/bal-nav_8.cjs.entry.js +4 -4
  92. package/dist/cjs/bal-navbar_5.cjs.entry.js +3 -3
  93. package/dist/cjs/bal-pagination.cjs.entry.js +7 -7
  94. package/dist/cjs/bal-progress-bar.cjs.entry.js +4 -4
  95. package/dist/cjs/bal-radio_2.cjs.entry.js +1 -1
  96. package/dist/cjs/bal-segment_2.cjs.entry.js +5 -5
  97. package/dist/cjs/bal-shape.cjs.entry.js +1 -1
  98. package/dist/cjs/bal-stage_6.cjs.entry.js +1 -1
  99. package/dist/cjs/bal-steps.cjs.entry.js +4 -4
  100. package/dist/cjs/bal-tab-item_2.cjs.entry.js +16 -18
  101. package/dist/cjs/baloise-design-system.cjs.js +3 -2
  102. package/dist/cjs/{breakpoints.decorator-8bde2bcf.js → breakpoints.decorator-1bb047c8.js} +1 -1
  103. package/dist/cjs/{breakpoints.subject-15687772.js → breakpoints.subject-28b3d733.js} +1 -1
  104. package/dist/cjs/{app-globals-661b320a.js → global-9176b6c7.js} +2 -4
  105. package/dist/cjs/index.cjs.js +2 -2
  106. package/dist/cjs/initialize-6421e1c1.js +1 -1
  107. package/dist/cjs/loader.cjs.js +3 -2
  108. package/dist/cjs/{mutation.decorator-d2ce6c1a.js → mutation.decorator-5ac1e198.js} +10 -12
  109. package/dist/cjs/{tokens.esm-bdae5d02.js → tokens.esm-635228ac.js} +1 -1
  110. package/dist/cjs/{window-resize.decorator-e1fbbe1f.js → window-resize.decorator-d77f1ae8.js} +1 -1
  111. package/dist/collection/collection-manifest.json +2 -1
  112. package/dist/collection/components/bal-carousel/bal-carousel.js +3 -3
  113. package/dist/collection/components/bal-close/bal-close.js +4 -4
  114. package/dist/collection/components/bal-date/bal-date-calendar/bal-date-calendar.js +1 -1
  115. package/dist/collection/components/bal-date/bal-date.js +3 -3
  116. package/dist/collection/components/bal-input/bal-input-date/bal-input-date.js +4 -4
  117. package/dist/collection/components/bal-list/bal-list-item-accordion-body/bal-list-item-accordion-body.js +3 -3
  118. package/dist/collection/components/bal-pagination/bal-pagination.js +6 -6
  119. package/dist/collection/components/bal-segment/bal-segment.js +1 -1
  120. package/dist/collection/components/bal-stage/bal-stage-image/bal-stage-image.js +1 -1
  121. package/dist/collection/components/bal-tabs/bal-tabs.js +12 -14
  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 +229 -0
  124. package/dist/collection/utils/constants/version.constant.js +1 -1
  125. package/dist/collection/utils/mutation/mutation.subject.js +11 -13
  126. package/dist/esm/app-globals-10882328.js +5 -0
  127. package/dist/esm/bal-carousel_2.entry.js +5 -5
  128. package/dist/esm/bal-checkbox_2.entry.js +1 -1
  129. package/dist/esm/bal-close.entry.js +1 -1
  130. package/dist/esm/bal-date-calendar_2.entry.js +3 -3
  131. package/dist/esm/bal-date.entry.js +1 -1
  132. package/dist/esm/bal-doc-app.entry.js +229 -0
  133. package/dist/esm/bal-field_5.entry.js +1 -1
  134. package/dist/esm/bal-hint_5.entry.js +3 -3
  135. package/dist/esm/bal-list_8.entry.js +6 -6
  136. package/dist/esm/bal-logo.entry.js +3 -3
  137. package/dist/esm/bal-nav_8.entry.js +4 -4
  138. package/dist/esm/bal-navbar_5.entry.js +3 -3
  139. package/dist/esm/bal-pagination.entry.js +7 -7
  140. package/dist/esm/bal-progress-bar.entry.js +4 -4
  141. package/dist/esm/bal-radio_2.entry.js +1 -1
  142. package/dist/esm/bal-segment_2.entry.js +5 -5
  143. package/dist/esm/bal-shape.entry.js +1 -1
  144. package/dist/esm/bal-stage_6.entry.js +1 -1
  145. package/dist/esm/bal-steps.entry.js +4 -4
  146. package/dist/esm/bal-tab-item_2.entry.js +16 -18
  147. package/dist/esm/baloise-design-system.js +3 -2
  148. package/dist/esm/{breakpoints.decorator-7623ded8.js → breakpoints.decorator-67df716d.js} +1 -1
  149. package/dist/esm/{breakpoints.subject-ac2d9287.js → breakpoints.subject-23d0b623.js} +1 -1
  150. package/dist/esm/{app-globals-665b5c71.js → global-7dca4c85.js} +2 -4
  151. package/dist/esm/index.js +3 -3
  152. package/dist/esm/initialize-b9912138.js +1 -1
  153. package/dist/esm/loader.js +3 -2
  154. package/dist/esm/{mutation.decorator-985cc0a1.js → mutation.decorator-74831883.js} +11 -13
  155. package/dist/esm/{tokens.esm-44ff650d.js → tokens.esm-6e260a83.js} +1 -1
  156. package/dist/esm/{window-resize.decorator-ab11c379.js → window-resize.decorator-69b08b6f.js} +1 -1
  157. package/dist/esm-es5/app-globals-10882328.js +1 -0
  158. package/dist/esm-es5/bal-carousel_2.entry.js +1 -1
  159. package/dist/esm-es5/bal-checkbox_2.entry.js +1 -1
  160. package/dist/esm-es5/bal-close.entry.js +1 -1
  161. package/dist/esm-es5/bal-date-calendar_2.entry.js +1 -1
  162. package/dist/esm-es5/bal-date.entry.js +1 -1
  163. package/dist/esm-es5/bal-doc-app.entry.js +1 -0
  164. package/dist/esm-es5/bal-field_5.entry.js +1 -1
  165. package/dist/esm-es5/bal-hint_5.entry.js +1 -1
  166. package/dist/esm-es5/bal-list_8.entry.js +1 -1
  167. package/dist/esm-es5/bal-logo.entry.js +1 -1
  168. package/dist/esm-es5/bal-nav_8.entry.js +1 -1
  169. package/dist/esm-es5/bal-navbar_5.entry.js +1 -1
  170. package/dist/esm-es5/bal-pagination.entry.js +1 -1
  171. package/dist/esm-es5/bal-progress-bar.entry.js +1 -1
  172. package/dist/esm-es5/bal-radio_2.entry.js +1 -1
  173. package/dist/esm-es5/bal-segment_2.entry.js +1 -1
  174. package/dist/esm-es5/bal-shape.entry.js +1 -1
  175. package/dist/esm-es5/bal-stage_6.entry.js +1 -1
  176. package/dist/esm-es5/bal-steps.entry.js +1 -1
  177. package/dist/esm-es5/bal-tab-item_2.entry.js +1 -1
  178. package/dist/esm-es5/baloise-design-system.js +1 -1
  179. package/dist/esm-es5/{breakpoints.decorator-7623ded8.js → breakpoints.decorator-67df716d.js} +1 -1
  180. package/dist/esm-es5/{breakpoints.subject-ac2d9287.js → breakpoints.subject-23d0b623.js} +1 -1
  181. package/dist/esm-es5/global-7dca4c85.js +1 -0
  182. package/dist/esm-es5/index.js +1 -1
  183. package/dist/esm-es5/initialize-b9912138.js +1 -1
  184. package/dist/esm-es5/loader.js +1 -1
  185. package/dist/esm-es5/mutation.decorator-74831883.js +1 -0
  186. package/dist/esm-es5/{window-resize.decorator-ab11c379.js → window-resize.decorator-69b08b6f.js} +1 -1
  187. package/dist/types/components/bal-carousel/bal-carousel.d.ts +1 -2
  188. package/dist/types/components/bal-close/bal-close.d.ts +1 -2
  189. package/dist/types/components/bal-date/bal-date-calendar/bal-date-calendar.d.ts +1 -1
  190. package/dist/types/components/bal-date/bal-date.d.ts +1 -2
  191. package/dist/types/components/bal-input/bal-input-date/bal-input-date.d.ts +1 -1
  192. package/dist/types/components/bal-list/bal-list-item-accordion-body/bal-list-item-accordion-body.d.ts +1 -1
  193. package/dist/types/components/bal-pagination/bal-pagination.d.ts +1 -2
  194. package/dist/types/components/bal-segment/bal-segment.d.ts +1 -1
  195. package/dist/types/components/docs/bal-doc-app/bal-doc-app.d.ts +21 -0
  196. package/dist/types/components.d.ts +44 -7
  197. package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/icons/src/index.d.ts +82 -0
  198. package/package.json +7 -7
  199. package/dist/baloise-design-system/p-12a557557c.entry.js +0 -1
  200. package/dist/baloise-design-system/p-51380295.system.js +0 -1
  201. package/dist/baloise-design-system/p-738ca720.system.js +0 -1
  202. package/dist/baloise-design-system/p-950bd476.js +0 -1
  203. package/dist/baloise-design-system/p-e563e447.js +0 -1
  204. package/dist/esm-es5/app-globals-665b5c71.js +0 -1
  205. package/dist/esm-es5/mutation.decorator-985cc0a1.js +0 -1
  206. /package/dist/baloise-design-system/{p-69313d59.system.js → p-677e8807.system.js} +0 -0
  207. /package/dist/baloise-design-system/{p-18a74018.js → p-e5a54078.js} +0 -0
  208. /package/dist/esm-es5/{tokens.esm-44ff650d.js → tokens.esm-6e260a83.js} +0 -0
@@ -989,14 +989,14 @@ const InputDate = /*@__PURE__*/ proxyCustomElement(class InputDate extends HTMLE
989
989
  render() {
990
990
  const block = BEM.block('input-date');
991
991
  const native = block.element('native');
992
- return (h(Host, { key: 'c19d0b61364480bbcb5067bf0c5d68b83dab6fa7', onClick: (event) => this.maskAdapter.bindHostClick(event), class: Object.assign({}, block.class()) }, h("input", Object.assign({ key: 'e8cbf0a3372a06823953459eeb754f2c22fc0b22', class: {
992
+ return (h(Host, { key: '14148968dbe8593f608bb83cb80431c1af6c10cb', onClick: (event) => this.maskAdapter.bindHostClick(event), class: Object.assign({}, block.class()) }, h("input", Object.assign({ key: '7a9307a111eb7eaca7d043e6102220f83ed407ef', class: {
993
993
  'input': true,
994
994
  'is-disabled': this.disabled || this.readonly,
995
995
  'is-danger': this.invalid,
996
996
  'is-clickable': this.clickable && !(this.disabled || this.readonly),
997
997
  'bal-focusable': !this.disabled,
998
998
  'has-icon-right': this.hasIconRight,
999
- }, "data-testid": "bal-date-input", ref: el => (this.nativeInput = el), id: this.ariaForm.controlId || this.inputId, "aria-labelledby": this.ariaForm.labelId, "aria-describedby": this.ariaForm.messageId, "aria-invalid": this.invalid === true ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : null, required: this.required, disabled: this.disabled, readonly: this.readonly, autoComplete: this.autocomplete }, this.maskAdapter.attributes, this.inheritedAttributes, { placeholder: this.placeholder, value: this.inputValue, onKeyDown: event => this.maskAdapter.bindKeyDown(event), onClick: event => this.maskAdapter.bindClick(event), onFocus: event => this.maskAdapter.bindFocus(event), onBlur: event => this.maskAdapter.bindBlur(event), onPaste: event => this.maskAdapter.bindPaste(event) })), h("input", { key: 'b6acc3e893caf68b4823addac74e4cea27fdc98b', type: "date", class: Object.assign({}, native.class()), name: this.name, min: this.min, max: this.max, value: this.value, tabindex: -1, "aria-hidden": "true" })));
999
+ }, "data-testid": "bal-date-input", ref: el => (this.nativeInput = el), id: this.ariaForm.controlId || this.inputId, "aria-labelledby": this.ariaForm.labelId, "aria-describedby": this.ariaForm.messageId, "aria-invalid": this.invalid === true ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : null, required: this.required, disabled: this.disabled, readonly: this.readonly, autoComplete: this.autocomplete }, this.maskAdapter.attributes, this.inheritedAttributes, { placeholder: this.placeholder, value: this.inputValue, onKeyDown: event => this.maskAdapter.bindKeyDown(event), onClick: event => this.maskAdapter.bindClick(event), onFocus: event => this.maskAdapter.bindFocus(event), onBlur: event => this.maskAdapter.bindBlur(event), onPaste: event => this.maskAdapter.bindPaste(event) })), h("input", { key: '23e89b524f1cd68f76461720e386034d1872689a', type: "date", class: Object.assign({}, native.class()), name: this.name, min: this.min, max: this.max, value: this.value, tabindex: -1, "aria-hidden": "true" })));
1000
1000
  }
1001
1001
  get el() { return this; }
1002
1002
  static get watchers() { return {
@@ -70,15 +70,15 @@ const ListItemAccordionBody = /*@__PURE__*/ proxyCustomElement(class ListItemAcc
70
70
  * ------------------------------------------------------
71
71
  */
72
72
  render() {
73
- return (h(Host, { key: '78f1e89ac8d2bbae824d5a2c6acf960873095a7c', class: {
73
+ return (h(Host, { key: '3a4e503ddae6d6c84658b2942a82cc7946ed6e9d', class: {
74
74
  'bal-list__item': true,
75
75
  'bal-list__item__accordion-body': true,
76
76
  'bal-list__item__accordion-body--grouped': this.accordionGroup !== undefined && this.accordionGroup !== '',
77
- } }, h("div", { key: '183a52fd932b5624e4b2f5766306f87efa1e4b74', class: {
77
+ } }, h("div", { key: 'f17506b393c8ee3ad69914cba638615dc96b1d46', class: {
78
78
  'bal-list__item__accordion-body__content': true,
79
79
  [`bal-list__item__accordion-body__content--${this.contentAlignment}`]: this.contentAlignment !== undefined,
80
80
  [`bal-list__item__accordion-body__content--space-${this.contentSpace}`]: this.contentSpace !== undefined,
81
- }, ref: contentElWrapper => (this.contentElWrapper = contentElWrapper) }, h("slot", { key: '6061cb6e659056e298dca4f1e0180ee103b883ad' }))));
81
+ }, ref: contentElWrapper => (this.contentElWrapper = contentElWrapper) }, h("slot", { key: 'ef461ed5b0e17b6dd4b79b7d88ccc4dc84b7694b' }))));
82
82
  }
83
83
  get el() { return this; }
84
84
  }, [4, "bal-list-item-accordion-body", {
@@ -233,10 +233,10 @@ const Pagination = /*@__PURE__*/ proxyCustomElement(class Pagination extends HTM
233
233
  const leftControlTitle = i18nControlLabel[this.language].left;
234
234
  const rightControlTitle = i18nControlLabel[this.language].right;
235
235
  const hasBasicNavigationButtons = this.interface === '' || (isSmall && this.totalPages <= 5);
236
- const SmallWithText = () => (h("span", { key: 'b9053c6e1ecf8a94ea93af48d554c508126fd21e', class: Object.assign(Object.assign({}, elList.class()), elList.modifier(`context-${this.interface}`).class()) }, h("span", { key: 'e2c9788314a42180f53285add2a1488d67030630' }, this._value), ' / ' + this.totalPages));
237
- const PaginationTablet = () => (h("ul", { key: 'f165f8e63bdf180408344aa91b69032ce5ce320c', class: Object.assign(Object.assign(Object.assign({}, elList.class()), elList.modifier(`context-${this.interface}`).class()), { 'is-disabled': this.disabled }), "data-testid": "bal-pagination-list" }, tabletItems));
238
- const PaginationMobile = () => (h("ul", { key: 'a9c58c583f943609606998eff081ac505fd82ff3', class: Object.assign(Object.assign(Object.assign({}, elList.class()), elList.modifier(`context-${this.interface}`).class()), { 'is-disabled': this.disabled }), "data-testid": "bal-pagination-list" }, mobileItems));
239
- return (h(Host, { key: '09e36de547b42f23a30189e0e1ed4d28be5f1ba7', class: Object.assign(Object.assign({}, block.class()), block.modifier('is-sticky').class(this.sticky)) }, h("nav", { key: '7f0c6770282939433a0315307a0c06be9440419c', class: Object.assign(Object.assign(Object.assign({}, elNav.class()), elNav.modifier(`context-${this.interface}`).class(this.interface !== '')), elNav.modifier(`align-${this.align}`).class(this.align !== '')), role: "navigation", "aria-label": "pagination" }, h("bal-button", { key: '0ea2d28d497cbe89a8858071a252e284790febd0', square: true, color: buttonColor, size: buttonSize, flat: flat, class: Object.assign(Object.assign({}, elPrevious.class()), elPrevious.modifier(`context-${this.interface}`).class()), disabled: this._value < 2 || this.disabled, onClick: () => this.previous(), "data-testid": "bal-pagination-controls-left", title: leftControlTitle }, h("bal-icon", { key: 'f509547f7dddfd18e01b828992403b3ce3ea47a1', name: "nav-go-left", size: "small" })), h("bal-button", { key: '2658807aa50c6b2c3f17427cdf4d8d684d4349f9', square: true, color: buttonColor, size: buttonSize, flat: flat, class: Object.assign(Object.assign({}, elNext.class()), elNext.modifier(`context-${this.interface}`).class()), disabled: this._value === this.totalPages || this.disabled, onClick: () => this.next(), "data-testid": "bal-pagination-controls-right", title: rightControlTitle }, h("bal-icon", { key: '1cd086e9b73eea943723e05593a4edf83479c5f3', name: "nav-go-right", size: "small" })), hasBasicNavigationButtons && this.isMobile ? h(PaginationMobile, null) : '', hasBasicNavigationButtons && !this.isMobile ? h(PaginationTablet, null) : '', !hasBasicNavigationButtons ? h(SmallWithText, null) : '')));
236
+ const SmallWithText = () => (h("span", { key: '8d0f477acb2db965fe7ca9a323db754dadb8c2d1', class: Object.assign(Object.assign({}, elList.class()), elList.modifier(`context-${this.interface}`).class()) }, h("span", { key: '25bc274a3580f3103acb6aa21bb0f132da31a4cd' }, this._value), ' / ' + this.totalPages));
237
+ const PaginationTablet = () => (h("ul", { key: '635a052d90c4d86104752eedf70d28d60a3ea194', class: Object.assign(Object.assign(Object.assign({}, elList.class()), elList.modifier(`context-${this.interface}`).class()), { 'is-disabled': this.disabled }), "data-testid": "bal-pagination-list" }, tabletItems));
238
+ const PaginationMobile = () => (h("ul", { key: '36bc734dd92d55f93cae88e34c032fbae5239ae2', class: Object.assign(Object.assign(Object.assign({}, elList.class()), elList.modifier(`context-${this.interface}`).class()), { 'is-disabled': this.disabled }), "data-testid": "bal-pagination-list" }, mobileItems));
239
+ return (h(Host, { key: '1f6888814e691b8f4b46987055e3d474078bac38', class: Object.assign(Object.assign({}, block.class()), block.modifier('is-sticky').class(this.sticky)) }, h("nav", { key: '00eba4def4d24082f102861ef471043c3646a18a', class: Object.assign(Object.assign(Object.assign({}, elNav.class()), elNav.modifier(`context-${this.interface}`).class(this.interface !== '')), elNav.modifier(`align-${this.align}`).class(this.align !== '')), role: "navigation", "aria-label": "pagination" }, h("bal-button", { key: '068a1d8b79deecd129b3280ac4eefb4e6c7ef814', square: true, color: buttonColor, size: buttonSize, flat: flat, class: Object.assign(Object.assign({}, elPrevious.class()), elPrevious.modifier(`context-${this.interface}`).class()), disabled: this._value < 2 || this.disabled, onClick: () => this.previous(), "data-testid": "bal-pagination-controls-left", title: leftControlTitle }, h("bal-icon", { key: '0ceeb68b1426edc0b1425b6bb1236941534ead5d', name: "nav-go-left", size: "small" })), h("bal-button", { key: '3eb18c38c467b0f8bfc2326341e93e236567c060', square: true, color: buttonColor, size: buttonSize, flat: flat, class: Object.assign(Object.assign({}, elNext.class()), elNext.modifier(`context-${this.interface}`).class()), disabled: this._value === this.totalPages || this.disabled, onClick: () => this.next(), "data-testid": "bal-pagination-controls-right", title: rightControlTitle }, h("bal-icon", { key: 'fa8feb6b44def140d75218f387fcfdbb984bd99a', name: "nav-go-right", size: "small" })), hasBasicNavigationButtons && this.isMobile ? h(PaginationMobile, null) : '', hasBasicNavigationButtons && !this.isMobile ? h(PaginationTablet, null) : '', !hasBasicNavigationButtons ? h(SmallWithText, null) : '')));
240
240
  }
241
241
  get el() { return this; }
242
242
  static get watchers() { return {
@@ -316,7 +316,7 @@ const Segment = /*@__PURE__*/ proxyCustomElement(class Segment extends HTMLEleme
316
316
  render() {
317
317
  const { invalid, isVertical, scrollable, keyboardMode, expanded, isMobile, disabled } = this;
318
318
  const block = BEM.block('segment');
319
- return (h(Host, { key: '3554d8bc4b44417e273a935a70ae89ff87e26d45', role: "radiogroup", id: this.ariaForm.controlId, "aria-labelledby": this.ariaForm.labelId, "aria-describedby": this.ariaForm.messageId, class: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, block.class()), block.modifier('invalid').class(invalid)), block.modifier('vertical').class(isVertical)), block.modifier('scrollable').class(scrollable)), block.modifier('keyboard').class(keyboardMode)), block.modifier('disabled').class(disabled)), block.modifier('expanded').class((expanded || isMobile) && !isVertical)), onClick: this.onClick }, h("slot", { key: '9271b42436f9c30077a60bcef7847ac04d093052', onSlotchange: this.onSlottedItemsChange })));
319
+ return (h(Host, { key: 'eadae45bddff8b5367b8db4e38c2eb467097ffb3', role: "radiogroup", id: this.ariaForm.controlId, "aria-labelledby": this.ariaForm.labelId, "aria-describedby": this.ariaForm.messageId, class: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, block.class()), block.modifier('invalid').class(invalid)), block.modifier('vertical').class(isVertical)), block.modifier('scrollable').class(scrollable)), block.modifier('keyboard').class(keyboardMode)), block.modifier('disabled').class(disabled)), block.modifier('expanded').class((expanded || isMobile) && !isVertical)), onClick: this.onClick }, h("slot", { key: 'b82c45b87b6cbd116d3b176fbd93661944740823', onSlotchange: this.onSlottedItemsChange })));
320
320
  }
321
321
  get el() { return this; }
322
322
  static get watchers() { return {
@@ -23,7 +23,7 @@ const StageImage = /*@__PURE__*/ proxyCustomElement(class StageImage extends HTM
23
23
  render() {
24
24
  const block = BEM.block('stage-image');
25
25
  const imageSrc = this.fallback ? this.fallback : this.srcSet.split(',')[0];
26
- return (h(Host, { key: '5e50cf626868a688afd1ae52bc4d3bbee8985e6f', class: Object.assign({}, block.class()) }, this.isLargestContentfulPaintDone ? (h("img", Object.assign({ src: imageSrc, srcset: this.srcSet, sizes: "100vw" }, this.imageInheritAttributes))) : ('')));
26
+ return (h(Host, { key: 'fc6b85b3671ee0ef029f22d3e0468849cf09c3ac', class: Object.assign({}, block.class()) }, this.isLargestContentfulPaintDone ? (h("img", Object.assign({ src: imageSrc, srcset: this.srcSet, sizes: "100vw" }, this.imageInheritAttributes))) : ('')));
27
27
  }
28
28
  get el() { return this; }
29
29
  }, [0, "bal-stage-image", {
@@ -362,17 +362,15 @@ const Tabs = /*@__PURE__*/ proxyCustomElement(class Tabs extends HTMLElement {
362
362
  */
363
363
  this.onOptionChange = debounce(() => this.onOptionChangeInternal(), 100);
364
364
  this.onOptionChangeInternal = async () => {
365
- if (this.isLargestContentfulPaintDone) {
366
- try {
367
- const options = await this.getOptions();
368
- this.updateStore(options);
369
- this.setActiveItem();
370
- this.setActiveContent();
371
- this.animateLine();
372
- }
373
- catch (e) {
374
- console.warn('[WARN] - Could not read tab options');
375
- }
365
+ try {
366
+ const options = await this.getOptions();
367
+ this.updateStore(options);
368
+ this.setActiveItem();
369
+ this.setActiveContent();
370
+ this.animateLine();
371
+ }
372
+ catch (e) {
373
+ console.warn('[WARN] - Could not read tab options');
376
374
  }
377
375
  };
378
376
  this.onSelectTab = async (ev, tab) => {
@@ -474,8 +472,8 @@ const Tabs = /*@__PURE__*/ proxyCustomElement(class Tabs extends HTMLElement {
474
472
  }
475
473
  }
476
474
  componentDidLoad() {
475
+ this.onOptionChange();
477
476
  rLCP(() => {
478
- this.onOptionChange();
479
477
  this.isLargestContentfulPaintDone = true;
480
478
  });
481
479
  }
@@ -701,13 +699,13 @@ const Tabs = /*@__PURE__*/ proxyCustomElement(class Tabs extends HTMLElement {
701
699
  const contentPart = expanded ? 'content expanded' : 'content';
702
700
  const valueExists = this.value !== undefined && !!this.store.find(o => o.value === this.value);
703
701
  const isLinkList = !this.isTabList;
704
- return (h(Host, { key: '6d5c18adc358a123e9630ac61854716b3a524af8', class: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, block.class()), block.modifier('navbar').class(this.inNavbar)), block.modifier('vertical').class(isVertical)), block.modifier('fullwidth').class(this.expanded || this.fullwidth)), block.modifier('accordion').class(this.accordion)), block.modifier('animated').class(this.animated)), block.modifier('expanding').class(this.accordionState === 8 /* AccordionState.Expanding */)), block.modifier('expanded').class(this.accordionState === 4 /* AccordionState.Expanded */)), block.modifier('collapsing').class(this.accordionState === 2 /* AccordionState.Collapsing */)), block.modifier('collapsed').class(this.accordionState === 1 /* AccordionState.Collapsed */)), "data-value": this.store
702
+ return (h(Host, { key: 'dfe8fd6f11b4d884bf8e7605653b637526412382', class: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, block.class()), block.modifier('navbar').class(this.inNavbar)), block.modifier('vertical').class(isVertical)), block.modifier('fullwidth').class(this.expanded || this.fullwidth)), block.modifier('accordion').class(this.accordion)), block.modifier('animated').class(this.animated)), block.modifier('expanding').class(this.accordionState === 8 /* AccordionState.Expanding */)), block.modifier('expanded').class(this.accordionState === 4 /* AccordionState.Expanded */)), block.modifier('collapsing').class(this.accordionState === 2 /* AccordionState.Collapsing */)), block.modifier('collapsed').class(this.accordionState === 1 /* AccordionState.Collapsed */)), "data-value": this.store
705
703
  .filter(t => this.isTabActive(t))
706
704
  .map(t => t.value)
707
705
  .join(','), "data-label": this.store
708
706
  .filter(t => this.isTabActive(t))
709
707
  .map(t => t.label)
710
- .join(',') }, isSelect ? (h(TabSelect, { value: this.value, items: tabs, onSelectTab: this.onSelectTab })) : (h(TabNav, { items: tabs, isLinkList: isLinkList, tabsId: this.tabsId, clickable: this.clickable, accordion: this.accordion, isAccordionOpen: this.isAccordionOpen, lineActive: valueExists, inverted: isInverted, animated: this.animated, context: this.context, border: this.border, spaceless: this.spaceless, expanded: this.expanded, isMobile: isMobile, isTouch: isTouch, isVertical: isVertical, inNavbar: this.inNavbar, hasCarousel: hasCarousel, iconPosition: this.iconPosition, verticalColSize: this.verticalColSize, onSelectTab: this.onSelectTab, dimInactiveElements: this.dimInactiveElements })), h("div", { key: '109d4147369f72da04c9f6b48a8959159ccf1d8c', part: contentPart, ref: contentEl => (this.contentEl = contentEl), class: Object.assign({}, block.element('tabs').element('content').class()) }, h("div", { key: '89333c42c5f26f47e99bab3bdba2051e7cfcac14', id: this.tabsId, class: Object.assign({}, block.element('tabs').element('content').element('wrapper').class()), ref: contentElWrapper => (this.contentElWrapper = contentElWrapper) }, h("slot", { key: '834c6b06a516dbcedfa4f65d902899202fee9809' })))));
708
+ .join(',') }, isSelect ? (h(TabSelect, { value: this.value, items: tabs, onSelectTab: this.onSelectTab })) : (h(TabNav, { items: tabs, isLinkList: isLinkList, tabsId: this.tabsId, clickable: this.clickable, accordion: this.accordion, isAccordionOpen: this.isAccordionOpen, lineActive: valueExists, inverted: isInverted, animated: this.animated, context: this.context, border: this.border, spaceless: this.spaceless, expanded: this.expanded, isMobile: isMobile, isTouch: isTouch, isVertical: isVertical, inNavbar: this.inNavbar, hasCarousel: hasCarousel, iconPosition: this.iconPosition, verticalColSize: this.verticalColSize, onSelectTab: this.onSelectTab, dimInactiveElements: this.dimInactiveElements })), h("div", { key: '0aac73b494d835402ac6654a6a281593917c355a', part: contentPart, ref: contentEl => (this.contentEl = contentEl), class: Object.assign({}, block.element('tabs').element('content').class()) }, h("div", { key: '77c68b5ce4d763f99bacff6e8395f9cd4c03e430', id: this.tabsId, class: Object.assign({}, block.element('tabs').element('content').element('wrapper').class()), ref: contentElWrapper => (this.contentElWrapper = contentElWrapper) }, h("slot", { key: '822c8efa61f9e44fc42e6f8ba31b5286967d7181' })))));
711
709
  }
712
710
  get el() { return this; }
713
711
  static get watchers() { return {
@@ -1,4 +1,3 @@
1
- import { setPlatformHelpers } from '@stencil/core/internal/client';
2
1
  export { getAssetPath, setAssetPath, setNonce, setPlatformOptions } from '@stencil/core/internal/client';
3
2
  export { F as FileUploadRejectionReason } from './bal-file-upload.type.js';
4
3
  export { i as i18nBalDate } from './bal-date.i18n.js';
@@ -6,10 +5,7 @@ export { i as i18nBalClose } from './bal-close.i18n.js';
6
5
  export { i as i18nBalTimeInput } from './bal-time-input.i18n.js';
7
6
  export { i as i18nBalInputStepper } from './bal-input-stepper.i18n.js';
8
7
  export { i as i18nBalLabel } from './bal-label.i18n.js';
9
- import { b as balBrowser } from './browser.js';
10
- export { b as balBrowser } from './browser.js';
11
- import { d as defaultConfig } from './config.default.js';
12
- export { d as defaultConfig } from './config.default.js';
8
+ export { a as BalSnackbarController, B as BalToastController, c as balSnackbarController, b as balToastController, i as initialize, i as initializeBaloiseDesignSystem, s as setupConfig } from './initialize.js';
13
9
  export { n as newBalOption } from './option.js';
14
10
  export { n as newBalStepOption } from './bal-step.util.js';
15
11
  export { n as newBalTabOption } from './bal-tab.util.js';
@@ -17,6 +13,8 @@ import { g as getAppRoot, c as componentOnReady } from './helpers.js';
17
13
  export { c as componentOnReady, f as deepReady, g as getAppRoot, i as isDescendant, s as shallowReady, h as wait, b as waitAfterFramePaint, d as waitAfterIdleCallback, e as waitAfterLargestContentfulPaintCallback, w as waitForComponent, a as waitForDesignSystem } from './helpers.js';
18
14
  export { s as scrollToFirstInvalidField } from './form.js';
19
15
  export { B as BalScrollHandler } from './scroll.js';
16
+ import { b as balBrowser } from './browser.js';
17
+ export { b as balBrowser } from './browser.js';
20
18
  import { b as balDevice } from './device.js';
21
19
  export { B as BalDevice, b as balDevice } from './device.js';
22
20
  export { I as INVALID_VALUE } from './mask-util.js';
@@ -24,175 +22,11 @@ import { g as getOverlays, a as getOverlay } from './overlays.js';
24
22
  import { B as BalWindowResizeListener, b as balBreakpoints } from './breakpoints.subject.js';
25
23
  export { c as BalBreakpointSubject, d as BalBreakpointsUtil, a as balBreakpointSubject, b as balBreakpoints } from './breakpoints.subject.js';
26
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';
25
+ export { d as defaultConfig } from './config.default.js';
27
26
  import { S as Subject } from './listener.js';
28
27
  export { B as BalSwipeSubject } from './swipe.subject.js';
29
28
  export { B as BalDate } from './date.js';
30
29
 
31
- const BALOISE_SESSION_KEY = 'baloise-persist-config';
32
- const BALOISE_ANIMATION_KEY = 'baloise-animated';
33
-
34
- class Config {
35
- constructor() {
36
- this._componentObservers = [];
37
- this._observers = [];
38
- this._config = defaultConfig;
39
- }
40
- get locale() {
41
- return `${this._config.language}-${this._config.region}`;
42
- }
43
- get region() {
44
- return this._config.region;
45
- }
46
- set region(region) {
47
- if (region !== this._config.region) {
48
- this._config.region = region;
49
- this._notify();
50
- }
51
- }
52
- get language() {
53
- return this._config.language;
54
- }
55
- set language(language) {
56
- if (language !== this._config.language) {
57
- if (this._config.allowedLanguages.includes(language)) {
58
- this._config.language = language;
59
- }
60
- else {
61
- this._config.language = this._config.fallbackLanguage;
62
- }
63
- this._notify();
64
- }
65
- }
66
- get allowedLanguages() {
67
- return this._config.allowedLanguages;
68
- }
69
- set allowedLanguages(allowedLanguages) {
70
- if (allowedLanguages !== this._config.allowedLanguages) {
71
- this._config.allowedLanguages = allowedLanguages;
72
- this._notify();
73
- }
74
- }
75
- get icons() {
76
- return this._config.icons;
77
- }
78
- set icons(icons) {
79
- this._config.icons = Object.assign(Object.assign({}, this._config.icons), icons);
80
- this._notify();
81
- }
82
- get logger() {
83
- return this._config.logger;
84
- }
85
- set logger(logger) {
86
- this._config.logger = Object.assign({}, logger);
87
- this._notify();
88
- }
89
- get animated() {
90
- return this._config.animated;
91
- }
92
- set animated(animated) {
93
- this._config.animated = animated;
94
- this._notify();
95
- }
96
- get httpFormSubmit() {
97
- return this._config.httpFormSubmit;
98
- }
99
- set httpFormSubmit(httpFormSubmit) {
100
- this._config.httpFormSubmit = httpFormSubmit;
101
- this._notify();
102
- }
103
- attach(observer) {
104
- const isExist = this._observers.includes(observer);
105
- if (isExist) {
106
- return console.log('Subject: Observer has been attached already.');
107
- }
108
- this._observers.push(observer);
109
- observer.configChanged(this._config);
110
- }
111
- detach(observer) {
112
- const observerIndex = this._observers.indexOf(observer);
113
- if (observerIndex === -1) {
114
- return console.log('Subject: Nonexistent observer.');
115
- }
116
- this._observers.splice(observerIndex, 1);
117
- }
118
- attachComponent(observer) {
119
- const isExist = this._componentObservers.includes(observer);
120
- if (isExist) {
121
- return console.log('Subject: Observer has been attached already.');
122
- }
123
- this._componentObservers.push(observer);
124
- observer.configChanged(this._config);
125
- }
126
- detachComponent(observer) {
127
- const observerIndex = this._componentObservers.indexOf(observer);
128
- if (observerIndex === -1) {
129
- return console.log('Subject: Nonexistent observer.');
130
- }
131
- this._componentObservers.splice(observerIndex, 1);
132
- }
133
- toString() {
134
- return JSON.stringify(this._config);
135
- }
136
- reset(config) {
137
- this._config = Object.assign(Object.assign(Object.assign({}, this._config), config), { icons: Object.assign(Object.assign({}, this._config.icons), config.icons) });
138
- this._notify(false);
139
- }
140
- _notify(all = true) {
141
- for (const observer of this._componentObservers) {
142
- observer.configChanged(this._config);
143
- }
144
- if (all) {
145
- for (const observer of this._observers) {
146
- observer.configChanged(this._config);
147
- }
148
- }
149
- if (balBrowser.hasWindow) {
150
- saveConfig(window, this._config);
151
- }
152
- }
153
- }
154
- const config = /*@__PURE__*/ new Config();
155
- const configFromSession = (win) => {
156
- try {
157
- const configStr = win.sessionStorage.getItem(BALOISE_SESSION_KEY);
158
- return configStr !== null ? JSON.parse(configStr) : {};
159
- }
160
- catch (e) {
161
- return {};
162
- }
163
- };
164
- const configFromLocalStorage = (win) => {
165
- try {
166
- const animated = JSON.parse(win.localStorage.getItem(BALOISE_ANIMATION_KEY));
167
- if (animated !== null) {
168
- return {
169
- animated,
170
- };
171
- }
172
- return {};
173
- }
174
- catch (e) {
175
- return {};
176
- }
177
- };
178
- const saveConfig = (win, c) => {
179
- try {
180
- win.sessionStorage.setItem(BALOISE_SESSION_KEY, JSON.stringify(c));
181
- }
182
- catch (e) {
183
- return;
184
- }
185
- };
186
-
187
- const setupConfig = (userConfig = {}, win = {}) => {
188
- if (Object.keys(win).length === 0 && balBrowser.hasWindow) {
189
- win = window;
190
- }
191
- win.BaloiseDesignSystem = win.BaloiseDesignSystem || {};
192
- config.reset(Object.assign(Object.assign(Object.assign(Object.assign({}, configFromSession(win)), configFromLocalStorage(win)), userConfig), { icons: Object.assign(Object.assign({}, configFromSession(win).icons), userConfig.icons) }));
193
- win.BaloiseDesignSystem.config = config;
194
- };
195
-
196
30
  const i18nBalFieldLabel = {
197
31
  de: {
198
32
  optional: ' (optional)',
@@ -226,139 +60,6 @@ const i18nBalFieldLabel = {
226
60
  },
227
61
  };
228
62
 
229
- class BalNoticeController {
230
- constructor(options) {
231
- this.options = options;
232
- this.container = null;
233
- this.queue = [];
234
- this.preQueue = [];
235
- this.queueLimit = 5;
236
- }
237
- create(options) {
238
- if (balBrowser.hasDocument) {
239
- this.setupContainer();
240
- const clone = this.findClone(options);
241
- if (clone === undefined) {
242
- const el = document.createElement(this.options.tag);
243
- Object.assign(el, options);
244
- el.addEventListener('balClose', ev => {
245
- this.removeFromQueue(ev.detail);
246
- });
247
- this.preQueue.push(el);
248
- this.updateQueue();
249
- return el;
250
- }
251
- return clone;
252
- }
253
- }
254
- setQueue(queueLimit) {
255
- this.queueLimit = queueLimit;
256
- }
257
- async dismissAll() {
258
- var _a;
259
- const elements = (_a = this.container) === null || _a === void 0 ? void 0 : _a.querySelectorAll(this.options.tag);
260
- if (elements) {
261
- const closingQueue = [];
262
- for (let index = 0; index < elements.length; index++) {
263
- const el = elements[index];
264
- if (el.close) {
265
- closingQueue.push(el.close());
266
- }
267
- }
268
- await Promise.all(closingQueue);
269
- }
270
- }
271
- /**
272
- * @deprecated use dismissAll instead
273
- */
274
- async clearAll() {
275
- console.warn('[DEPRECATED] - use dismissAll() instead');
276
- return this.dismissAll();
277
- }
278
- findClone(options) {
279
- for (let index = 0; index < this.queue.length; index++) {
280
- const el = this.queue[index];
281
- if (el.message === options.message && el.color === options.color) {
282
- return el;
283
- }
284
- }
285
- return undefined;
286
- }
287
- setupContainer() {
288
- if (balBrowser.hasDocument) {
289
- const containerId = `${this.options.tag}-container`;
290
- this.container = document.getElementById(containerId);
291
- if (this.container)
292
- return;
293
- if (!this.container) {
294
- this.container = document.createElement('bal-notices');
295
- this.container.setAttribute('interface', this.options.tag.replace('bal-', ''));
296
- this.container.id = containerId;
297
- }
298
- document.body.appendChild(this.container);
299
- }
300
- }
301
- updateQueue() {
302
- var _a;
303
- if (this.queue.length < this.queueLimit) {
304
- const el = this.preQueue.shift();
305
- if (el && this.container) {
306
- this.queue.push(el);
307
- this.container.insertAdjacentElement('beforeend', el);
308
- }
309
- }
310
- if (this.queue.length === 0) {
311
- (_a = this.container) === null || _a === void 0 ? void 0 : _a.remove();
312
- }
313
- }
314
- removeFromQueue(toastId) {
315
- this.queue = this.queue.filter(el => el.id !== toastId);
316
- setTimeout(() => this.updateQueue(), 0);
317
- }
318
- }
319
-
320
- class BalToastController extends BalNoticeController {
321
- constructor() {
322
- super({
323
- tag: 'bal-toast',
324
- });
325
- }
326
- create(options) {
327
- return super.create(options);
328
- }
329
- }
330
- const balToastController = new BalToastController();
331
-
332
- class BalSnackbarController extends BalNoticeController {
333
- constructor() {
334
- super({
335
- tag: 'bal-snackbar',
336
- });
337
- }
338
- create(options) {
339
- return super.create(options);
340
- }
341
- }
342
- const balSnackbarController = new BalSnackbarController();
343
-
344
- // generated by .build/version.js
345
- const VERSION = '17.2.0';
346
-
347
- const initializeBaloiseDesignSystem = (userConfig = {}, platformConfig = undefined, win = {}) => {
348
- if (Object.keys(win).length === 0 && balBrowser.hasWindow) {
349
- win = window;
350
- }
351
- win.BaloiseDesignSystem = win.BaloiseDesignSystem || {};
352
- if (platformConfig) {
353
- setPlatformHelpers(platformConfig);
354
- }
355
- setupConfig(Object.assign(Object.assign({}, userConfig), platformConfig), win);
356
- win.BaloiseDesignSystem.toastController = balToastController;
357
- win.BaloiseDesignSystem.snackbarController = balSnackbarController;
358
- win.BaloiseDesignSystem.initialize = () => setupConfig(win.BaloiseDesignSystem.config, win);
359
- win.BaloiseDesignSystem.version = VERSION;
360
- };
361
-
362
63
  const newBalCheckboxOption = (option) => {
363
64
  return Object.assign(Object.assign({ interface: 'checkbox', labelHidden: false, flat: false, disabled: false, readonly: false, required: false, nonSubmit: false, invalid: false, checked: false }, option), { label: '', html: option.label });
364
65
  };
@@ -476,4 +177,4 @@ const isPlatform = (winOrPlatform, platform) => {
476
177
  const NewBalOptionValue = newBalOptionValue;
477
178
  const NewBalSingleOptionValue = newBalSingleOptionValue;
478
179
 
479
- export { BalModalController, BalOrientationSubject, BalSnackbarController, BalToastController, NewBalOptionValue, NewBalSingleOptionValue, balModalController, balOrientationSubject, balSnackbarController, balToastController, getPlatforms, hasTouchSupport, i18nBalFieldLabel, initializeBaloiseDesignSystem as initialize, initializeBaloiseDesignSystem, isBrowser, isPlatform, newBalCheckboxOption, newBalOptionValue, newBalRadioOption, newBalSingleOptionValue, setupConfig };
180
+ export { BalModalController, BalOrientationSubject, NewBalOptionValue, NewBalSingleOptionValue, balModalController, balOrientationSubject, getPlatforms, hasTouchSupport, i18nBalFieldLabel, isBrowser, isPlatform, newBalCheckboxOption, newBalOptionValue, newBalRadioOption, newBalSingleOptionValue };