@baloise/ds-core 16.5.0 → 16.5.1-nightly.20240925

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 (314) hide show
  1. package/components/all.d.ts +2 -0
  2. package/components/all.js +3 -0
  3. package/components/bal-app.js +1 -85
  4. package/components/bal-app2.js +87 -0
  5. package/components/bal-doc-app.d.ts +11 -0
  6. package/components/bal-doc-app.js +260 -0
  7. package/components/bal-field.js +3 -0
  8. package/components/bal-input-date2.js +2 -3
  9. package/components/bal-input.js +1 -1
  10. package/components/bal-number-input.js +1 -1
  11. package/components/bal-segment-item.js +64 -47
  12. package/components/bal-segment.js +61 -17
  13. package/components/bal-textarea.js +1 -1
  14. package/components/bal-time-input.js +1 -1
  15. package/components/form-input.js +14 -1
  16. package/components/index.js +5 -289
  17. package/components/initialize.js +288 -0
  18. package/components/tokens.esm.js +1 -1
  19. package/dist/baloise-design-system/baloise-design-system.esm.js +1 -1
  20. package/dist/baloise-design-system/baloise-design-system.js +1 -1
  21. package/dist/baloise-design-system/index.esm.js +1 -1
  22. package/dist/baloise-design-system/{p-dd30661db2.system.entry.js → p-00014af866.system.entry.js} +1 -1
  23. package/dist/baloise-design-system/{p-fb0af77320.system.entry.js → p-0c2cce5882.system.entry.js} +1 -1
  24. package/dist/baloise-design-system/p-0e94492c.js +1 -0
  25. package/dist/baloise-design-system/{p-9bb8778cdc.system.entry.js → p-10c13a369c.system.entry.js} +1 -1
  26. package/dist/baloise-design-system/{p-3befc6f9.system.js → p-14ec0aa7.system.js} +1 -1
  27. package/dist/baloise-design-system/p-1509eaa7.system.js +1 -1
  28. package/dist/baloise-design-system/p-15c5fe4d6d.system.entry.js +1 -0
  29. package/dist/baloise-design-system/{p-cda868a6a5.entry.js → p-16b50b08e4.entry.js} +1 -1
  30. package/dist/baloise-design-system/p-19e56e1a7a.entry.js +1 -0
  31. package/dist/baloise-design-system/{p-0530e008e9.system.entry.js → p-2aa4f352d9.system.entry.js} +1 -1
  32. package/dist/baloise-design-system/{p-8080a1192c.system.entry.js → p-2e498736fc.system.entry.js} +1 -1
  33. package/dist/baloise-design-system/{p-6e3a79cce0.system.entry.js → p-2e8508812d.system.entry.js} +1 -1
  34. package/dist/baloise-design-system/{p-f798011b48.system.entry.js → p-2ea7550d1b.system.entry.js} +1 -1
  35. package/dist/baloise-design-system/{p-445d2e1c70.system.entry.js → p-2fa39e7e81.system.entry.js} +1 -1
  36. package/dist/baloise-design-system/p-360068a4.system.js +1 -0
  37. package/dist/baloise-design-system/{p-4809d5c4.system.js → p-363a853f.system.js} +1 -1
  38. package/dist/baloise-design-system/{p-e187b9de.system.js → p-368bd6ac.system.js} +1 -1
  39. package/dist/baloise-design-system/p-3d8781f2.js +1 -0
  40. package/dist/baloise-design-system/{p-88eb14fd.system.js → p-3fbdf189.system.js} +1 -1
  41. package/dist/baloise-design-system/p-44046fa2e8.entry.js +1 -0
  42. package/dist/baloise-design-system/p-449ffc7a7e.entry.js +1 -0
  43. package/dist/baloise-design-system/{p-0ab43941ba.entry.js → p-462b20f382.entry.js} +1 -1
  44. package/dist/baloise-design-system/{p-f5940253.js → p-4ae121b6.js} +1 -1
  45. package/dist/baloise-design-system/{p-5fae3f5478.entry.js → p-4d6d5948b3.entry.js} +1 -1
  46. package/dist/baloise-design-system/p-4f083c5352.entry.js +1 -0
  47. package/dist/baloise-design-system/p-4ff656dd48.entry.js +1 -0
  48. package/dist/baloise-design-system/p-54f81c32.js +1 -1
  49. package/dist/baloise-design-system/{p-7c586fb89f.entry.js → p-59bc74c896.entry.js} +1 -1
  50. package/dist/baloise-design-system/{p-e137e273b7.system.entry.js → p-5b5d1c626d.system.entry.js} +1 -1
  51. package/dist/baloise-design-system/{p-71588db3.system.js → p-5c0b0099.system.js} +1 -1
  52. package/dist/baloise-design-system/{p-d3fabdb142.system.entry.js → p-60e74d3515.system.entry.js} +1 -1
  53. package/dist/baloise-design-system/p-611719719f.system.entry.js +1 -0
  54. package/dist/baloise-design-system/p-6139ff78d7.system.entry.js +1 -0
  55. package/dist/baloise-design-system/{p-47a8ad4d7a.system.entry.js → p-619afa0ba5.system.entry.js} +1 -1
  56. package/dist/baloise-design-system/{p-4192ad4350.entry.js → p-63c685b62d.entry.js} +1 -1
  57. package/dist/baloise-design-system/{p-77350b27fc.entry.js → p-648814edf8.entry.js} +1 -1
  58. package/dist/baloise-design-system/{p-2905abdfb8.entry.js → p-663cc3242c.entry.js} +1 -1
  59. package/dist/baloise-design-system/p-6d1b6215.js +1 -0
  60. package/dist/baloise-design-system/{p-2db4ff4c5b.entry.js → p-6f18ca5500.entry.js} +1 -1
  61. package/dist/baloise-design-system/{p-305cffd8aa.entry.js → p-70c29fd28f.entry.js} +1 -1
  62. package/dist/baloise-design-system/p-7291766c.system.js +1 -0
  63. package/dist/baloise-design-system/{p-12bb6ea3e7.system.entry.js → p-760797ae02.system.entry.js} +1 -1
  64. package/dist/baloise-design-system/{p-0fb6cbda.system.js → p-78f84ec3.system.js} +1 -1
  65. package/dist/baloise-design-system/p-7957c3c0.system.js +1 -0
  66. package/dist/baloise-design-system/{p-df40272425.system.entry.js → p-7b39615b3a.system.entry.js} +1 -1
  67. package/dist/baloise-design-system/p-7cc52e4a3b.system.entry.js +1 -0
  68. package/dist/baloise-design-system/{p-8e17b76e7c.system.entry.js → p-7d2709b193.system.entry.js} +1 -1
  69. package/dist/baloise-design-system/{p-39bf8adcde.entry.js → p-7e74fbfd97.entry.js} +1 -1
  70. package/dist/baloise-design-system/{p-a7e5ee75e2.entry.js → p-82333c3ce3.entry.js} +1 -1
  71. package/dist/baloise-design-system/{p-bcb892a723.system.entry.js → p-82afff07ac.system.entry.js} +1 -1
  72. package/dist/baloise-design-system/{p-488c4a8ce1.entry.js → p-83c70a6b53.entry.js} +1 -1
  73. package/dist/baloise-design-system/{p-380aabd5bc.entry.js → p-8472cf7e9a.entry.js} +1 -1
  74. package/dist/baloise-design-system/{p-190b5cd469.entry.js → p-86fab0b8d8.entry.js} +1 -1
  75. package/dist/baloise-design-system/{p-9658f4a66f.entry.js → p-898f7862e4.entry.js} +1 -1
  76. package/dist/baloise-design-system/{p-f819d47031.entry.js → p-8f548a7f77.entry.js} +1 -1
  77. package/dist/baloise-design-system/p-8f89168b60.system.entry.js +1 -0
  78. package/dist/baloise-design-system/{p-3818fa189f.system.entry.js → p-959fc8c170.system.entry.js} +1 -1
  79. package/dist/baloise-design-system/{p-23b7426d09.system.entry.js → p-967483741b.system.entry.js} +1 -1
  80. package/dist/baloise-design-system/{p-ecab0d67d5.entry.js → p-9f5eda0e22.entry.js} +1 -1
  81. package/dist/baloise-design-system/{p-b0c22ff9d1.entry.js → p-9fea6e7133.entry.js} +1 -1
  82. package/dist/baloise-design-system/{p-e1ccb7023c.system.entry.js → p-a48ab02011.system.entry.js} +1 -1
  83. package/dist/baloise-design-system/{p-c0153f8edf.system.entry.js → p-ac6d5570d8.system.entry.js} +1 -1
  84. package/dist/baloise-design-system/{p-bee13e834e.entry.js → p-b4c5b5e53f.entry.js} +1 -1
  85. package/dist/baloise-design-system/{p-4fe64c3ec6.system.entry.js → p-b5d67473a1.system.entry.js} +1 -1
  86. package/dist/baloise-design-system/{p-853fe65e14.system.entry.js → p-b7ceb9e59e.system.entry.js} +1 -1
  87. package/dist/baloise-design-system/{p-caec1f9e.js → p-b7cef472.js} +1 -1
  88. package/dist/baloise-design-system/{p-8f77c423ad.entry.js → p-be366c8428.entry.js} +1 -1
  89. package/dist/baloise-design-system/{p-cafe624e35.entry.js → p-c00e0f64c8.entry.js} +1 -1
  90. package/dist/baloise-design-system/{p-407ffd9c55.entry.js → p-c3ca31b868.entry.js} +1 -1
  91. package/dist/baloise-design-system/{p-6c2bf02eb3.entry.js → p-c442bb2db2.entry.js} +1 -1
  92. package/dist/baloise-design-system/{p-a5ee486a2b.entry.js → p-c4e11d3813.entry.js} +1 -1
  93. package/dist/baloise-design-system/{p-420d88737c.entry.js → p-c539ee8edf.entry.js} +1 -1
  94. package/dist/baloise-design-system/{p-7c7e593e07.entry.js → p-c7338c255f.entry.js} +1 -1
  95. package/dist/baloise-design-system/{p-f03e63bd1e.system.entry.js → p-c997c763db.system.entry.js} +1 -1
  96. package/dist/baloise-design-system/{p-09ea5913.js → p-d40ef683.js} +1 -1
  97. package/dist/baloise-design-system/{p-0639833837.system.entry.js → p-d800ecde35.system.entry.js} +1 -1
  98. package/dist/baloise-design-system/{p-2cd1f1dedb.entry.js → p-daa9b20773.entry.js} +1 -1
  99. package/dist/baloise-design-system/{p-f62d0ccdd1.system.entry.js → p-db1a8f2ac5.system.entry.js} +1 -1
  100. package/dist/baloise-design-system/{p-ad9a7657.js → p-de08fd27.js} +1 -1
  101. package/dist/baloise-design-system/{p-d1b16f9cc2.entry.js → p-dec8453a4d.entry.js} +1 -1
  102. package/dist/baloise-design-system/p-e45eb6121d.system.entry.js +1 -0
  103. package/dist/baloise-design-system/{p-ef916aafa5.entry.js → p-e6162b978e.entry.js} +1 -1
  104. package/dist/baloise-design-system/{p-d059465399.system.entry.js → p-e7bcca66c5.system.entry.js} +1 -1
  105. package/dist/baloise-design-system/p-e833841822.entry.js +1 -0
  106. package/dist/baloise-design-system/p-e8ffddeb.js +1 -0
  107. package/dist/baloise-design-system/p-ef32ca0961.system.entry.js +1 -0
  108. package/dist/baloise-design-system/{p-1659bb968c.system.entry.js → p-f00b5e9fa4.system.entry.js} +1 -1
  109. package/dist/baloise-design-system/p-f22c8e0c59.entry.js +1 -0
  110. package/dist/baloise-design-system/{p-3801afd625.entry.js → p-f23227beaa.entry.js} +1 -1
  111. package/dist/baloise-design-system/{p-9f54cac588.system.entry.js → p-f4c50948c5.system.entry.js} +1 -1
  112. package/dist/baloise-design-system/{p-013b4c72.system.js → p-f959646a.system.js} +1 -1
  113. package/dist/baloise-design-system/{p-b8251b8f68.system.entry.js → p-fad86a959d.system.entry.js} +1 -1
  114. package/dist/baloise-design-system/{p-372474e989.system.entry.js → p-fdbbd30696.system.entry.js} +1 -1
  115. package/dist/baloise-design-system/{p-d7d6937d59.system.entry.js → p-fef38d0574.system.entry.js} +1 -1
  116. package/dist/cjs/app-globals-5fd73c0c.js +7 -0
  117. package/dist/cjs/bal-accordion_4.cjs.entry.js +1 -1
  118. package/dist/cjs/bal-carousel_2.cjs.entry.js +4 -4
  119. package/dist/cjs/bal-checkbox-button.cjs.entry.js +1 -1
  120. package/dist/cjs/bal-checkbox_2.cjs.entry.js +1 -1
  121. package/dist/cjs/bal-content.cjs.entry.js +56 -0
  122. package/dist/cjs/bal-date-calendar-cell.cjs.entry.js +1 -1
  123. package/dist/cjs/bal-date-calendar_2.cjs.entry.js +2 -3
  124. package/dist/cjs/bal-date.cjs.entry.js +1 -1
  125. package/dist/cjs/bal-datepicker.cjs.entry.js +4 -4
  126. package/dist/cjs/bal-doc-app.cjs.entry.js +231 -0
  127. package/dist/cjs/bal-dropdown.cjs.entry.js +1 -1
  128. package/dist/cjs/bal-field_5.cjs.entry.js +3 -0
  129. package/dist/cjs/bal-file-upload.cjs.entry.js +1 -1
  130. package/dist/cjs/bal-footer.cjs.entry.js +1 -1
  131. package/dist/cjs/{bal-popover_2.cjs.entry.js → bal-hint_5.cjs.entry.js} +172 -3
  132. package/dist/cjs/bal-input-slider.cjs.entry.js +1 -1
  133. package/dist/cjs/bal-input-stepper.cjs.entry.js +1 -1
  134. package/dist/cjs/bal-input.cjs.entry.js +1 -1
  135. package/dist/cjs/{bal-content_2.cjs.entry.js → bal-label.cjs.entry.js} +0 -46
  136. package/dist/cjs/bal-list_8.cjs.entry.js +3 -3
  137. package/dist/cjs/bal-logo.cjs.entry.js +3 -3
  138. package/dist/cjs/bal-nav_8.cjs.entry.js +3 -3
  139. package/dist/cjs/bal-navbar_5.cjs.entry.js +3 -3
  140. package/dist/cjs/bal-number-input.cjs.entry.js +1 -1
  141. package/dist/cjs/bal-option_2.cjs.entry.js +1 -1
  142. package/dist/cjs/bal-pagination.cjs.entry.js +3 -3
  143. package/dist/cjs/bal-popup.cjs.entry.js +1 -1
  144. package/dist/cjs/bal-progress-bar.cjs.entry.js +5 -5
  145. package/dist/cjs/bal-radio-button.cjs.entry.js +1 -1
  146. package/dist/cjs/bal-radio_2.cjs.entry.js +1 -1
  147. package/dist/cjs/bal-segment_2.cjs.entry.js +516 -0
  148. package/dist/cjs/bal-select_2.cjs.entry.js +1 -1
  149. package/dist/cjs/bal-shape.cjs.entry.js +1 -1
  150. package/dist/cjs/bal-steps.cjs.entry.js +4 -4
  151. package/dist/cjs/bal-tab-item_2.cjs.entry.js +4 -4
  152. package/dist/cjs/bal-textarea.cjs.entry.js +1 -1
  153. package/dist/cjs/bal-time-input.cjs.entry.js +1 -1
  154. package/dist/cjs/baloise-design-system.cjs.js +3 -2
  155. package/dist/cjs/{breakpoints.decorator-a4a5bd7a.js → breakpoints.decorator-b8f9d4dd.js} +1 -1
  156. package/dist/cjs/{breakpoints.subject-fbf85930.js → breakpoints.subject-c6237eb5.js} +1 -1
  157. package/dist/cjs/{form-input-134c5116.js → form-input-b61eb894.js} +14 -0
  158. package/dist/cjs/{app-globals-ae3a8623.js → global-2562a984.js} +2 -4
  159. package/dist/cjs/index.cjs.js +2 -2
  160. package/dist/cjs/initialize-2a19d091.js +1 -1
  161. package/dist/cjs/loader.cjs.js +3 -2
  162. package/dist/cjs/{tokens.esm-aa4bb7f7.js → tokens.esm-67b93a2c.js} +1 -1
  163. package/dist/cjs/{window-resize.decorator-c7a521b0.js → window-resize.decorator-b3aacf9e.js} +1 -1
  164. package/dist/collection/collection-manifest.json +17 -14
  165. package/dist/collection/components/bal-field/bal-field.js +3 -0
  166. package/dist/collection/components/bal-segment/bal-segment-item/bal-segment-item.js +92 -69
  167. package/dist/collection/components/bal-segment/bal-segment.js +115 -19
  168. package/dist/collection/components/docs/bal-doc-app/bal-doc-app.css +1 -0
  169. package/dist/collection/components/docs/bal-doc-app/bal-doc-app.js +229 -0
  170. package/dist/collection/utils/constants/version.constant.js +1 -1
  171. package/dist/collection/utils/form-input.js +13 -0
  172. package/dist/collection/utils/form-input.spec.js +30 -0
  173. package/dist/collection/utils/mask/context/mask-context.js +2 -2
  174. package/dist/esm/app-globals-970bab17.js +5 -0
  175. package/dist/esm/bal-accordion_4.entry.js +2 -2
  176. package/dist/esm/bal-carousel_2.entry.js +4 -4
  177. package/dist/esm/bal-checkbox-button.entry.js +1 -1
  178. package/dist/esm/bal-checkbox_2.entry.js +2 -2
  179. package/dist/esm/bal-content.entry.js +52 -0
  180. package/dist/esm/bal-date-calendar-cell.entry.js +1 -1
  181. package/dist/esm/bal-date-calendar_2.entry.js +4 -5
  182. package/dist/esm/bal-date.entry.js +3 -3
  183. package/dist/esm/bal-datepicker.entry.js +5 -5
  184. package/dist/esm/bal-doc-app.entry.js +227 -0
  185. package/dist/esm/bal-dropdown.entry.js +2 -2
  186. package/dist/esm/bal-field_5.entry.js +3 -0
  187. package/dist/esm/bal-file-upload.entry.js +2 -2
  188. package/dist/esm/bal-footer.entry.js +2 -2
  189. package/dist/esm/{bal-popover_2.entry.js → bal-hint_5.entry.js} +171 -5
  190. package/dist/esm/bal-input-slider.entry.js +1 -1
  191. package/dist/esm/bal-input-stepper.entry.js +2 -2
  192. package/dist/esm/bal-input.entry.js +1 -1
  193. package/dist/esm/{bal-content_2.entry.js → bal-label.entry.js} +1 -46
  194. package/dist/esm/bal-list_8.entry.js +4 -4
  195. package/dist/esm/bal-logo.entry.js +3 -3
  196. package/dist/esm/bal-nav_8.entry.js +3 -3
  197. package/dist/esm/bal-navbar_5.entry.js +3 -3
  198. package/dist/esm/bal-number-input.entry.js +2 -2
  199. package/dist/esm/bal-option_2.entry.js +1 -1
  200. package/dist/esm/bal-pagination.entry.js +3 -3
  201. package/dist/esm/bal-popup.entry.js +2 -2
  202. package/dist/esm/bal-progress-bar.entry.js +5 -5
  203. package/dist/esm/bal-radio-button.entry.js +1 -1
  204. package/dist/esm/bal-radio_2.entry.js +2 -2
  205. package/dist/esm/bal-segment_2.entry.js +511 -0
  206. package/dist/esm/bal-select_2.entry.js +2 -2
  207. package/dist/esm/bal-shape.entry.js +1 -1
  208. package/dist/esm/bal-steps.entry.js +5 -5
  209. package/dist/esm/bal-tab-item_2.entry.js +5 -5
  210. package/dist/esm/bal-textarea.entry.js +1 -1
  211. package/dist/esm/bal-time-input.entry.js +1 -1
  212. package/dist/esm/baloise-design-system.js +3 -2
  213. package/dist/esm/{breakpoints.decorator-f2ac9963.js → breakpoints.decorator-f3c82221.js} +1 -1
  214. package/dist/esm/{breakpoints.subject-3605e395.js → breakpoints.subject-011cd9e8.js} +1 -1
  215. package/dist/esm/{date-aba2d404.js → date-6e8f5617.js} +1 -1
  216. package/dist/esm/{form-input-28a08ec5.js → form-input-a8fdaaef.js} +14 -1
  217. package/dist/esm/{app-globals-b0dd0fc4.js → global-63f4bcec.js} +2 -4
  218. package/dist/esm/{index.esm-76abd8e3.js → index.esm-cc299511.js} +1 -1
  219. package/dist/esm/index.js +5 -5
  220. package/dist/esm/initialize-e216cfe4.js +1 -1
  221. package/dist/esm/loader.js +3 -2
  222. package/dist/esm/{tokens.esm-337782ae.js → tokens.esm-a3a35692.js} +1 -1
  223. package/dist/esm/{window-resize.decorator-d5198831.js → window-resize.decorator-481620ab.js} +1 -1
  224. package/dist/esm-es5/app-globals-970bab17.js +1 -0
  225. package/dist/esm-es5/bal-accordion_4.entry.js +1 -1
  226. package/dist/esm-es5/bal-carousel_2.entry.js +1 -1
  227. package/dist/esm-es5/bal-checkbox-button.entry.js +1 -1
  228. package/dist/esm-es5/bal-checkbox_2.entry.js +1 -1
  229. package/dist/esm-es5/bal-content.entry.js +1 -0
  230. package/dist/esm-es5/bal-date-calendar-cell.entry.js +1 -1
  231. package/dist/esm-es5/bal-date-calendar_2.entry.js +1 -1
  232. package/dist/esm-es5/bal-date.entry.js +1 -1
  233. package/dist/esm-es5/bal-datepicker.entry.js +1 -1
  234. package/dist/esm-es5/bal-doc-app.entry.js +1 -0
  235. package/dist/esm-es5/bal-dropdown.entry.js +1 -1
  236. package/dist/esm-es5/bal-field_5.entry.js +1 -1
  237. package/dist/esm-es5/bal-file-upload.entry.js +1 -1
  238. package/dist/esm-es5/bal-footer.entry.js +1 -1
  239. package/dist/esm-es5/bal-hint_5.entry.js +1 -0
  240. package/dist/esm-es5/bal-input-slider.entry.js +1 -1
  241. package/dist/esm-es5/bal-input-stepper.entry.js +1 -1
  242. package/dist/esm-es5/bal-input.entry.js +1 -1
  243. package/dist/esm-es5/bal-label.entry.js +1 -0
  244. package/dist/esm-es5/bal-list_8.entry.js +1 -1
  245. package/dist/esm-es5/bal-logo.entry.js +1 -1
  246. package/dist/esm-es5/bal-nav_8.entry.js +1 -1
  247. package/dist/esm-es5/bal-navbar_5.entry.js +1 -1
  248. package/dist/esm-es5/bal-number-input.entry.js +1 -1
  249. package/dist/esm-es5/bal-option_2.entry.js +1 -1
  250. package/dist/esm-es5/bal-pagination.entry.js +1 -1
  251. package/dist/esm-es5/bal-popup.entry.js +1 -1
  252. package/dist/esm-es5/bal-progress-bar.entry.js +1 -1
  253. package/dist/esm-es5/bal-radio-button.entry.js +1 -1
  254. package/dist/esm-es5/bal-radio_2.entry.js +1 -1
  255. package/dist/esm-es5/bal-segment_2.entry.js +1 -0
  256. package/dist/esm-es5/bal-select_2.entry.js +1 -1
  257. package/dist/esm-es5/bal-shape.entry.js +1 -1
  258. package/dist/esm-es5/bal-steps.entry.js +1 -1
  259. package/dist/esm-es5/bal-tab-item_2.entry.js +1 -1
  260. package/dist/esm-es5/bal-textarea.entry.js +1 -1
  261. package/dist/esm-es5/bal-time-input.entry.js +1 -1
  262. package/dist/esm-es5/baloise-design-system.js +1 -1
  263. package/dist/esm-es5/{breakpoints.decorator-f2ac9963.js → breakpoints.decorator-f3c82221.js} +1 -1
  264. package/dist/esm-es5/{breakpoints.subject-3605e395.js → breakpoints.subject-011cd9e8.js} +1 -1
  265. package/dist/esm-es5/{date-aba2d404.js → date-6e8f5617.js} +1 -1
  266. package/dist/esm-es5/{form-input-28a08ec5.js → form-input-a8fdaaef.js} +1 -1
  267. package/dist/esm-es5/global-63f4bcec.js +1 -0
  268. package/dist/esm-es5/{index.esm-76abd8e3.js → index.esm-cc299511.js} +1 -1
  269. package/dist/esm-es5/index.js +1 -1
  270. package/dist/esm-es5/initialize-e216cfe4.js +1 -1
  271. package/dist/esm-es5/loader.js +1 -1
  272. package/dist/esm-es5/{window-resize.decorator-d5198831.js → window-resize.decorator-481620ab.js} +1 -1
  273. package/dist/types/components/bal-segment/bal-segment-item/bal-segment-item.d.ts +17 -13
  274. package/dist/types/components/bal-segment/bal-segment.d.ts +22 -3
  275. package/dist/types/components/bal-segment/bal-segment.interfaces.d.ts +2 -0
  276. package/dist/types/components/docs/bal-doc-app/bal-doc-app.d.ts +21 -0
  277. package/dist/types/components.d.ts +44 -19
  278. package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/icons/src/index.d.ts +81 -0
  279. package/dist/types/utils/form-input.d.ts +3 -0
  280. package/package.json +7 -7
  281. package/dist/baloise-design-system/p-265f9d51c9.system.entry.js +0 -1
  282. package/dist/baloise-design-system/p-370575b8cb.system.entry.js +0 -1
  283. package/dist/baloise-design-system/p-3c25811c44.entry.js +0 -1
  284. package/dist/baloise-design-system/p-3eb68d7e.js +0 -1
  285. package/dist/baloise-design-system/p-487816db33.system.entry.js +0 -1
  286. package/dist/baloise-design-system/p-53e98a0f71.entry.js +0 -1
  287. package/dist/baloise-design-system/p-547aae9610.entry.js +0 -1
  288. package/dist/baloise-design-system/p-5db0544e97.system.entry.js +0 -1
  289. package/dist/baloise-design-system/p-8de1a12660.entry.js +0 -1
  290. package/dist/baloise-design-system/p-a507ff25cb.system.entry.js +0 -1
  291. package/dist/baloise-design-system/p-b8f085f7b5.system.entry.js +0 -1
  292. package/dist/baloise-design-system/p-bcca1ed3.system.js +0 -1
  293. package/dist/baloise-design-system/p-c1c17f8edc.system.entry.js +0 -1
  294. package/dist/baloise-design-system/p-ced37553e2.entry.js +0 -1
  295. package/dist/baloise-design-system/p-d2ee9b0a.system.js +0 -1
  296. package/dist/baloise-design-system/p-d9d229a026.entry.js +0 -1
  297. package/dist/baloise-design-system/p-e0384bfc0c.entry.js +0 -1
  298. package/dist/baloise-design-system/p-e75ccb92.js +0 -1
  299. package/dist/baloise-design-system/p-e78a6409.js +0 -1
  300. package/dist/cjs/bal-hint_3.cjs.entry.js +0 -186
  301. package/dist/cjs/bal-segment-item.cjs.entry.js +0 -156
  302. package/dist/cjs/bal-segment.cjs.entry.js +0 -319
  303. package/dist/esm/bal-hint_3.entry.js +0 -180
  304. package/dist/esm/bal-segment-item.entry.js +0 -152
  305. package/dist/esm/bal-segment.entry.js +0 -315
  306. package/dist/esm-es5/app-globals-b0dd0fc4.js +0 -1
  307. package/dist/esm-es5/bal-content_2.entry.js +0 -1
  308. package/dist/esm-es5/bal-hint_3.entry.js +0 -1
  309. package/dist/esm-es5/bal-popover_2.entry.js +0 -1
  310. package/dist/esm-es5/bal-segment-item.entry.js +0 -1
  311. package/dist/esm-es5/bal-segment.entry.js +0 -1
  312. /package/dist/baloise-design-system/{p-36074466.system.js → p-270f14cb.system.js} +0 -0
  313. /package/dist/baloise-design-system/{p-e1994e2c.js → p-a980b02e.js} +0 -0
  314. /package/dist/esm-es5/{tokens.esm-337782ae.js → tokens.esm-a3a35692.js} +0 -0
@@ -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';
@@ -7,10 +6,7 @@ export { i as i18nBalDatepicker } from './bal-datepicker.i18n.js';
7
6
  export { i as i18nBalTimeInput } from './bal-time-input.i18n.js';
8
7
  export { i as i18nBalInputStepper } from './bal-input-stepper.i18n.js';
9
8
  export { i as i18nBalLabel } from './bal-label.i18n.js';
10
- import { b as balBrowser } from './browser.js';
11
- export { b as balBrowser } from './browser.js';
12
- import { d as defaultConfig } from './config.default.js';
13
- export { d as defaultConfig } from './config.default.js';
9
+ 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';
14
10
  export { n as newBalOption } from './option.js';
15
11
  export { n as newBalStepOption } from './bal-step.util.js';
16
12
  export { n as newBalTabOption } from './bal-tab.util.js';
@@ -18,6 +14,8 @@ import { g as getAppRoot, c as componentOnReady } from './helpers.js';
18
14
  export { c as componentOnReady, e as deepReady, g as getAppRoot, i as isDescendant, s as shallowReady, f as wait, b as waitAfterFramePaint, d as waitAfterIdleCallback, w as waitForComponent, a as waitForDesignSystem } from './helpers.js';
19
15
  export { s as scrollToFirstInvalidField } from './form.js';
20
16
  export { B as BalScrollHandler } from './scroll.js';
17
+ import { b as balBrowser } from './browser.js';
18
+ export { b as balBrowser } from './browser.js';
21
19
  import { b as balDevice } from './device.js';
22
20
  export { B as BalDevice, b as balDevice } from './device.js';
23
21
  export { I as INVALID_VALUE } from './mask-util.js';
@@ -25,160 +23,11 @@ import { g as getOverlays, a as getOverlay } from './overlays.js';
25
23
  import { B as BalWindowResizeListener, b as balBreakpoints } from './breakpoints.subject.js';
26
24
  export { c as BalBreakpointSubject, d as BalBreakpointsUtil, a as balBreakpointSubject, b as balBreakpoints } from './breakpoints.subject.js';
27
25
  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';
26
+ export { d as defaultConfig } from './config.default.js';
28
27
  import { S as Subject } from './listener.js';
29
28
  export { B as BalSwipeSubject } from './swipe.subject.js';
30
29
  export { B as BalDate } from './date.js';
31
30
 
32
- const BALOISE_SESSION_KEY = 'baloise-persist-config';
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 saveConfig = (win, c) => {
165
- try {
166
- win.sessionStorage.setItem(BALOISE_SESSION_KEY, JSON.stringify(c));
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({}, configFromSession(win)), userConfig), { icons: Object.assign(Object.assign({}, configFromSession(win).icons), userConfig.icons) }));
179
- win.BaloiseDesignSystem.config = config;
180
- };
181
-
182
31
  const i18nBalFieldLabel = {
183
32
  de: {
184
33
  optional: ' (optional)',
@@ -212,139 +61,6 @@ const i18nBalFieldLabel = {
212
61
  },
213
62
  };
214
63
 
215
- class BalNoticeController {
216
- constructor(options) {
217
- this.options = options;
218
- this.container = null;
219
- this.queue = [];
220
- this.preQueue = [];
221
- this.queueLimit = 5;
222
- }
223
- create(options) {
224
- if (balBrowser.hasDocument) {
225
- this.setupContainer();
226
- const clone = this.findClone(options);
227
- if (clone === undefined) {
228
- const el = document.createElement(this.options.tag);
229
- Object.assign(el, options);
230
- el.addEventListener('balClose', ev => {
231
- this.removeFromQueue(ev.detail);
232
- });
233
- this.preQueue.push(el);
234
- this.updateQueue();
235
- return el;
236
- }
237
- return clone;
238
- }
239
- }
240
- setQueue(queueLimit) {
241
- this.queueLimit = queueLimit;
242
- }
243
- async dismissAll() {
244
- var _a;
245
- const elements = (_a = this.container) === null || _a === void 0 ? void 0 : _a.querySelectorAll(this.options.tag);
246
- if (elements) {
247
- const closingQueue = [];
248
- for (let index = 0; index < elements.length; index++) {
249
- const el = elements[index];
250
- if (el.close) {
251
- closingQueue.push(el.close());
252
- }
253
- }
254
- await Promise.all(closingQueue);
255
- }
256
- }
257
- /**
258
- * @deprecated use dismissAll instead
259
- */
260
- async clearAll() {
261
- console.warn('[DEPRECATED] - use dismissAll() instead');
262
- return this.dismissAll();
263
- }
264
- findClone(options) {
265
- for (let index = 0; index < this.queue.length; index++) {
266
- const el = this.queue[index];
267
- if (el.message === options.message && el.color === options.color) {
268
- return el;
269
- }
270
- }
271
- return undefined;
272
- }
273
- setupContainer() {
274
- if (balBrowser.hasDocument) {
275
- const containerId = `${this.options.tag}-container`;
276
- this.container = document.getElementById(containerId);
277
- if (this.container)
278
- return;
279
- if (!this.container) {
280
- this.container = document.createElement('bal-notices');
281
- this.container.setAttribute('interface', this.options.tag.replace('bal-', ''));
282
- this.container.id = containerId;
283
- }
284
- document.body.appendChild(this.container);
285
- }
286
- }
287
- updateQueue() {
288
- var _a;
289
- if (this.queue.length < this.queueLimit) {
290
- const el = this.preQueue.shift();
291
- if (el && this.container) {
292
- this.queue.push(el);
293
- this.container.insertAdjacentElement('beforeend', el);
294
- }
295
- }
296
- if (this.queue.length === 0) {
297
- (_a = this.container) === null || _a === void 0 ? void 0 : _a.remove();
298
- }
299
- }
300
- removeFromQueue(toastId) {
301
- this.queue = this.queue.filter(el => el.id !== toastId);
302
- setTimeout(() => this.updateQueue(), 0);
303
- }
304
- }
305
-
306
- class BalToastController extends BalNoticeController {
307
- constructor() {
308
- super({
309
- tag: 'bal-toast',
310
- });
311
- }
312
- create(options) {
313
- return super.create(options);
314
- }
315
- }
316
- const balToastController = new BalToastController();
317
-
318
- class BalSnackbarController extends BalNoticeController {
319
- constructor() {
320
- super({
321
- tag: 'bal-snackbar',
322
- });
323
- }
324
- create(options) {
325
- return super.create(options);
326
- }
327
- }
328
- const balSnackbarController = new BalSnackbarController();
329
-
330
- // generated by .build/version.js
331
- const VERSION = '16.5.0';
332
-
333
- const initializeBaloiseDesignSystem = (userConfig = {}, platformConfig = undefined, win = {}) => {
334
- if (Object.keys(win).length === 0 && balBrowser.hasWindow) {
335
- win = window;
336
- }
337
- win.BaloiseDesignSystem = win.BaloiseDesignSystem || {};
338
- if (platformConfig) {
339
- setPlatformHelpers(platformConfig);
340
- }
341
- setupConfig(Object.assign(Object.assign({}, userConfig), platformConfig), win);
342
- win.BaloiseDesignSystem.toastController = balToastController;
343
- win.BaloiseDesignSystem.snackbarController = balSnackbarController;
344
- win.BaloiseDesignSystem.initialize = () => setupConfig(win.BaloiseDesignSystem.config, win);
345
- win.BaloiseDesignSystem.version = VERSION;
346
- };
347
-
348
64
  const newBalCheckboxOption = (option) => {
349
65
  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 });
350
66
  };
@@ -462,4 +178,4 @@ const isPlatform = (winOrPlatform, platform) => {
462
178
  const NewBalOptionValue = newBalOptionValue;
463
179
  const NewBalSingleOptionValue = newBalSingleOptionValue;
464
180
 
465
- 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 };
181
+ export { BalModalController, BalOrientationSubject, NewBalOptionValue, NewBalSingleOptionValue, balModalController, balOrientationSubject, getPlatforms, hasTouchSupport, i18nBalFieldLabel, isBrowser, isPlatform, newBalCheckboxOption, newBalOptionValue, newBalRadioOption, newBalSingleOptionValue };
@@ -0,0 +1,288 @@
1
+ import { setPlatformHelpers } from '@stencil/core/internal/client';
2
+ import { b as balBrowser } from './browser.js';
3
+ import { d as defaultConfig } from './config.default.js';
4
+
5
+ const BALOISE_SESSION_KEY = 'baloise-persist-config';
6
+
7
+ class Config {
8
+ constructor() {
9
+ this._componentObservers = [];
10
+ this._observers = [];
11
+ this._config = defaultConfig;
12
+ }
13
+ get locale() {
14
+ return `${this._config.language}-${this._config.region}`;
15
+ }
16
+ get region() {
17
+ return this._config.region;
18
+ }
19
+ set region(region) {
20
+ if (region !== this._config.region) {
21
+ this._config.region = region;
22
+ this._notify();
23
+ }
24
+ }
25
+ get language() {
26
+ return this._config.language;
27
+ }
28
+ set language(language) {
29
+ if (language !== this._config.language) {
30
+ if (this._config.allowedLanguages.includes(language)) {
31
+ this._config.language = language;
32
+ }
33
+ else {
34
+ this._config.language = this._config.fallbackLanguage;
35
+ }
36
+ this._notify();
37
+ }
38
+ }
39
+ get allowedLanguages() {
40
+ return this._config.allowedLanguages;
41
+ }
42
+ set allowedLanguages(allowedLanguages) {
43
+ if (allowedLanguages !== this._config.allowedLanguages) {
44
+ this._config.allowedLanguages = allowedLanguages;
45
+ this._notify();
46
+ }
47
+ }
48
+ get icons() {
49
+ return this._config.icons;
50
+ }
51
+ set icons(icons) {
52
+ this._config.icons = Object.assign(Object.assign({}, this._config.icons), icons);
53
+ this._notify();
54
+ }
55
+ get logger() {
56
+ return this._config.logger;
57
+ }
58
+ set logger(logger) {
59
+ this._config.logger = Object.assign({}, logger);
60
+ this._notify();
61
+ }
62
+ get animated() {
63
+ return this._config.animated;
64
+ }
65
+ set animated(animated) {
66
+ this._config.animated = animated;
67
+ this._notify();
68
+ }
69
+ get httpFormSubmit() {
70
+ return this._config.httpFormSubmit;
71
+ }
72
+ set httpFormSubmit(httpFormSubmit) {
73
+ this._config.httpFormSubmit = httpFormSubmit;
74
+ this._notify();
75
+ }
76
+ attach(observer) {
77
+ const isExist = this._observers.includes(observer);
78
+ if (isExist) {
79
+ return console.log('Subject: Observer has been attached already.');
80
+ }
81
+ this._observers.push(observer);
82
+ observer.configChanged(this._config);
83
+ }
84
+ detach(observer) {
85
+ const observerIndex = this._observers.indexOf(observer);
86
+ if (observerIndex === -1) {
87
+ return console.log('Subject: Nonexistent observer.');
88
+ }
89
+ this._observers.splice(observerIndex, 1);
90
+ }
91
+ attachComponent(observer) {
92
+ const isExist = this._componentObservers.includes(observer);
93
+ if (isExist) {
94
+ return console.log('Subject: Observer has been attached already.');
95
+ }
96
+ this._componentObservers.push(observer);
97
+ observer.configChanged(this._config);
98
+ }
99
+ detachComponent(observer) {
100
+ const observerIndex = this._componentObservers.indexOf(observer);
101
+ if (observerIndex === -1) {
102
+ return console.log('Subject: Nonexistent observer.');
103
+ }
104
+ this._componentObservers.splice(observerIndex, 1);
105
+ }
106
+ toString() {
107
+ return JSON.stringify(this._config);
108
+ }
109
+ reset(config) {
110
+ this._config = Object.assign(Object.assign(Object.assign({}, this._config), config), { icons: Object.assign(Object.assign({}, this._config.icons), config.icons) });
111
+ this._notify(false);
112
+ }
113
+ _notify(all = true) {
114
+ for (const observer of this._componentObservers) {
115
+ observer.configChanged(this._config);
116
+ }
117
+ if (all) {
118
+ for (const observer of this._observers) {
119
+ observer.configChanged(this._config);
120
+ }
121
+ }
122
+ if (balBrowser.hasWindow) {
123
+ saveConfig(window, this._config);
124
+ }
125
+ }
126
+ }
127
+ const config = /*@__PURE__*/ new Config();
128
+ const configFromSession = (win) => {
129
+ try {
130
+ const configStr = win.sessionStorage.getItem(BALOISE_SESSION_KEY);
131
+ return configStr !== null ? JSON.parse(configStr) : {};
132
+ }
133
+ catch (e) {
134
+ return {};
135
+ }
136
+ };
137
+ const saveConfig = (win, c) => {
138
+ try {
139
+ win.sessionStorage.setItem(BALOISE_SESSION_KEY, JSON.stringify(c));
140
+ }
141
+ catch (e) {
142
+ return;
143
+ }
144
+ };
145
+
146
+ const setupConfig = (userConfig = {}, win = {}) => {
147
+ if (Object.keys(win).length === 0 && balBrowser.hasWindow) {
148
+ win = window;
149
+ }
150
+ win.BaloiseDesignSystem = win.BaloiseDesignSystem || {};
151
+ config.reset(Object.assign(Object.assign(Object.assign({}, configFromSession(win)), userConfig), { icons: Object.assign(Object.assign({}, configFromSession(win).icons), userConfig.icons) }));
152
+ win.BaloiseDesignSystem.config = config;
153
+ };
154
+
155
+ class BalNoticeController {
156
+ constructor(options) {
157
+ this.options = options;
158
+ this.container = null;
159
+ this.queue = [];
160
+ this.preQueue = [];
161
+ this.queueLimit = 5;
162
+ }
163
+ create(options) {
164
+ if (balBrowser.hasDocument) {
165
+ this.setupContainer();
166
+ const clone = this.findClone(options);
167
+ if (clone === undefined) {
168
+ const el = document.createElement(this.options.tag);
169
+ Object.assign(el, options);
170
+ el.addEventListener('balClose', ev => {
171
+ this.removeFromQueue(ev.detail);
172
+ });
173
+ this.preQueue.push(el);
174
+ this.updateQueue();
175
+ return el;
176
+ }
177
+ return clone;
178
+ }
179
+ }
180
+ setQueue(queueLimit) {
181
+ this.queueLimit = queueLimit;
182
+ }
183
+ async dismissAll() {
184
+ var _a;
185
+ const elements = (_a = this.container) === null || _a === void 0 ? void 0 : _a.querySelectorAll(this.options.tag);
186
+ if (elements) {
187
+ const closingQueue = [];
188
+ for (let index = 0; index < elements.length; index++) {
189
+ const el = elements[index];
190
+ if (el.close) {
191
+ closingQueue.push(el.close());
192
+ }
193
+ }
194
+ await Promise.all(closingQueue);
195
+ }
196
+ }
197
+ /**
198
+ * @deprecated use dismissAll instead
199
+ */
200
+ async clearAll() {
201
+ console.warn('[DEPRECATED] - use dismissAll() instead');
202
+ return this.dismissAll();
203
+ }
204
+ findClone(options) {
205
+ for (let index = 0; index < this.queue.length; index++) {
206
+ const el = this.queue[index];
207
+ if (el.message === options.message && el.color === options.color) {
208
+ return el;
209
+ }
210
+ }
211
+ return undefined;
212
+ }
213
+ setupContainer() {
214
+ if (balBrowser.hasDocument) {
215
+ const containerId = `${this.options.tag}-container`;
216
+ this.container = document.getElementById(containerId);
217
+ if (this.container)
218
+ return;
219
+ if (!this.container) {
220
+ this.container = document.createElement('bal-notices');
221
+ this.container.setAttribute('interface', this.options.tag.replace('bal-', ''));
222
+ this.container.id = containerId;
223
+ }
224
+ document.body.appendChild(this.container);
225
+ }
226
+ }
227
+ updateQueue() {
228
+ var _a;
229
+ if (this.queue.length < this.queueLimit) {
230
+ const el = this.preQueue.shift();
231
+ if (el && this.container) {
232
+ this.queue.push(el);
233
+ this.container.insertAdjacentElement('beforeend', el);
234
+ }
235
+ }
236
+ if (this.queue.length === 0) {
237
+ (_a = this.container) === null || _a === void 0 ? void 0 : _a.remove();
238
+ }
239
+ }
240
+ removeFromQueue(toastId) {
241
+ this.queue = this.queue.filter(el => el.id !== toastId);
242
+ setTimeout(() => this.updateQueue(), 0);
243
+ }
244
+ }
245
+
246
+ class BalToastController extends BalNoticeController {
247
+ constructor() {
248
+ super({
249
+ tag: 'bal-toast',
250
+ });
251
+ }
252
+ create(options) {
253
+ return super.create(options);
254
+ }
255
+ }
256
+ const balToastController = new BalToastController();
257
+
258
+ class BalSnackbarController extends BalNoticeController {
259
+ constructor() {
260
+ super({
261
+ tag: 'bal-snackbar',
262
+ });
263
+ }
264
+ create(options) {
265
+ return super.create(options);
266
+ }
267
+ }
268
+ const balSnackbarController = new BalSnackbarController();
269
+
270
+ // generated by .build/version.js
271
+ const VERSION = '16.5.1-nightly.20240925';
272
+
273
+ const initializeBaloiseDesignSystem = (userConfig = {}, platformConfig = undefined, win = {}) => {
274
+ if (Object.keys(win).length === 0 && balBrowser.hasWindow) {
275
+ win = window;
276
+ }
277
+ win.BaloiseDesignSystem = win.BaloiseDesignSystem || {};
278
+ if (platformConfig) {
279
+ setPlatformHelpers(platformConfig);
280
+ }
281
+ setupConfig(Object.assign(Object.assign({}, userConfig), platformConfig), win);
282
+ win.BaloiseDesignSystem.toastController = balToastController;
283
+ win.BaloiseDesignSystem.snackbarController = balSnackbarController;
284
+ win.BaloiseDesignSystem.initialize = () => setupConfig(win.BaloiseDesignSystem.config, win);
285
+ win.BaloiseDesignSystem.version = VERSION;
286
+ };
287
+
288
+ export { BalToastController as B, BalSnackbarController as a, balToastController as b, balSnackbarController as c, initializeBaloiseDesignSystem as i, setupConfig as s };
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 17 Sep 2024 12:02:09 GMT
3
+ * Generated on Wed, 25 Sep 2024 06:14:11 GMT
4
4
  */
5
5
  const balColorGreen3 = "#94e3d4";
6
6
  const balColorGreen6 = "#1b5951";