@baloise/ds-core 20.0.0-next.7 → 20.0.0-next.8

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 (465) hide show
  1. package/components/ds-accordion.js +1 -1
  2. package/components/ds-app.js +1 -1
  3. package/components/ds-badge.js +1 -1
  4. package/components/ds-button-group.js +1 -1
  5. package/components/ds-button.js +1 -1
  6. package/components/ds-card-actions.js +1 -1
  7. package/components/ds-card-content.js +1 -1
  8. package/components/ds-card-subtitle.js +1 -1
  9. package/components/ds-card-title.js +1 -1
  10. package/components/ds-card.js +1 -1
  11. package/components/ds-carousel.js +1 -1
  12. package/components/ds-checkbox-group.js +1 -1
  13. package/components/ds-close.js +1 -1
  14. package/components/ds-content.js +1 -1
  15. package/components/ds-data-item.js +1 -1
  16. package/components/ds-date.js +1 -1
  17. package/components/ds-drawer.js +1 -1
  18. package/components/ds-file-upload.js +1 -1
  19. package/components/ds-footer.js +1 -1
  20. package/components/ds-heading.js +1 -1
  21. package/components/ds-hint.js +1 -1
  22. package/components/ds-icon.js +1 -1
  23. package/components/ds-input-slider.js +1 -1
  24. package/components/ds-input.js +1 -1
  25. package/components/ds-item.js +1 -1
  26. package/components/ds-modal.js +1 -1
  27. package/components/ds-navbar.js +1 -1
  28. package/components/ds-notification.js +1 -1
  29. package/components/ds-number-input.js +1 -1
  30. package/components/ds-pagination.js +1 -1
  31. package/components/ds-popup.js +1 -1
  32. package/components/ds-radio-group.js +1 -1
  33. package/components/ds-segment.js +1 -1
  34. package/components/ds-select.js +1 -1
  35. package/components/ds-snackbar.js +1 -1
  36. package/components/ds-spinner.js +1 -1
  37. package/components/ds-stack.js +1 -1
  38. package/components/ds-step.js +1 -1
  39. package/components/ds-tabs.js +1 -1
  40. package/components/ds-tag.js +1 -1
  41. package/components/ds-textarea.js +1 -1
  42. package/components/ds-toast.js +1 -1
  43. package/components/index.js +1 -1
  44. package/components/{p-DenZRIeA.js → p-BXJT6RzI.js} +1 -1
  45. package/components/p-BdLq-Ecc.js +4 -0
  46. package/components/{p-DSeYzuO7.js → p-BmKEBYP4.js} +1 -1
  47. package/components/p-BoWAkGY5.js +4 -0
  48. package/components/{p-DYTOWDAA.js → p-CTbJFS-e.js} +1 -1
  49. package/components/{p-VsWv65bD.js → p-CaMOovXn.js} +1 -1
  50. package/components/p-Ce8PV2ZO.js +4 -0
  51. package/components/p-CmBtAxar.js +4 -0
  52. package/components/p-D8gpyiFZ.js +4 -0
  53. package/components/{p-ng5ZzTOj.js → p-DBX_haol.js} +1 -1
  54. package/components/{p-ABj0eATe.js → p-DPbhygsR.js} +1 -1
  55. package/components/{p-BwwAKEvn.js → p-DZzsZ_YH.js} +1 -1
  56. package/components/p-DbUsvqrz.js +4 -0
  57. package/components/p-Dbqy6lZU.js +5 -0
  58. package/components/{p-D9YYP2SG.js → p-fS80bKHo.js} +1 -1
  59. package/components/{p-D5zw5ezD.js → p-hPpcXLRP.js} +1 -1
  60. package/components/p-o0H7eIVX.js +4 -0
  61. package/components/p-std0LSH2.js +4 -0
  62. package/components/p-wud2RGEy.js +4 -0
  63. package/dist/cjs/{breakpoints.decorator-DY5iYsA5.js → breakpoints.decorator-DbttiLa9.js} +1 -1
  64. package/dist/cjs/{breakpoints.subject-CzhLlIwN.js → breakpoints.subject-CNyiZaBe.js} +3 -3
  65. package/dist/cjs/{button.interfaces-CqlUGR-N.js → button.interfaces-BKyK0H_f.js} +0 -1
  66. package/dist/cjs/{config.decorator-C64wi-MA.js → config.decorator-bU7c6ybP.js} +1 -1
  67. package/dist/cjs/{config.utils-BhWbrVRz.js → config.utils-BhJig3l5.js} +1 -1
  68. package/dist/cjs/{create-validator-decorator-Ctd288ve.js → create-validator-decorator-CiRieHJL.js} +1 -1
  69. package/dist/cjs/design-system.cjs.js +2 -2
  70. package/dist/cjs/{device-CIliLOe9.js → device-DM1GXL99.js} +1 -1
  71. package/dist/cjs/ds-accordion.cjs.entry.js +9 -9
  72. package/dist/cjs/ds-alert-container.cjs.entry.js +6 -6
  73. package/dist/cjs/ds-app.cjs.entry.js +35 -8
  74. package/dist/cjs/ds-badge.cjs.entry.js +20 -39
  75. package/dist/cjs/ds-button-group.cjs.entry.js +7 -7
  76. package/dist/cjs/ds-button_2.cjs.entry.js +20 -20
  77. package/dist/cjs/ds-card-actions.cjs.entry.js +4 -4
  78. package/dist/cjs/ds-card-content.cjs.entry.js +3 -3
  79. package/dist/cjs/ds-card-header.cjs.entry.js +5 -5
  80. package/dist/cjs/ds-card-subtitle.cjs.entry.js +10 -14
  81. package/dist/cjs/ds-card-title.cjs.entry.js +8 -14
  82. package/dist/cjs/ds-card.cjs.entry.js +7 -7
  83. package/dist/cjs/ds-carousel-item.cjs.entry.js +6 -6
  84. package/dist/cjs/ds-carousel.cjs.entry.js +8 -8
  85. package/dist/cjs/ds-checkbox-group.cjs.entry.js +22 -15
  86. package/dist/cjs/ds-checkbox.cjs.entry.js +7 -7
  87. package/dist/cjs/ds-content_2.cjs.entry.js +18 -68
  88. package/dist/cjs/ds-data-item.cjs.entry.js +6 -6
  89. package/dist/cjs/ds-data-label.cjs.entry.js +4 -4
  90. package/dist/cjs/ds-data-value.cjs.entry.js +2 -2
  91. package/dist/cjs/ds-data.cjs.entry.js +4 -4
  92. package/dist/cjs/ds-date.cjs.entry.js +18 -12
  93. package/dist/cjs/ds-divider_2.cjs.entry.js +12 -12
  94. package/dist/cjs/ds-drawer_2.cjs.entry.js +9 -9
  95. package/dist/cjs/ds-file-upload.cjs.entry.js +18 -11
  96. package/dist/cjs/ds-footer.cjs.entry.js +7 -7
  97. package/dist/cjs/ds-heading.cjs.entry.js +21 -37
  98. package/dist/cjs/ds-hint-text.cjs.entry.js +2 -2
  99. package/dist/cjs/ds-hint-title.cjs.entry.js +2 -2
  100. package/dist/cjs/ds-hint.cjs.entry.js +11 -11
  101. package/dist/cjs/ds-icon_2.cjs.entry.js +19 -23
  102. package/dist/cjs/ds-input-slider.cjs.entry.js +21 -14
  103. package/dist/cjs/ds-input.cjs.entry.js +20 -11
  104. package/dist/cjs/ds-item.cjs.entry.js +7 -7
  105. package/dist/cjs/ds-label.cjs.entry.js +8 -8
  106. package/dist/cjs/ds-list.cjs.entry.js +4 -4
  107. package/dist/cjs/ds-modal-body.cjs.entry.js +2 -2
  108. package/dist/cjs/ds-modal-header.cjs.entry.js +2 -2
  109. package/dist/cjs/ds-modal.cjs.entry.js +7 -7
  110. package/dist/cjs/ds-navbar.cjs.entry.js +14 -14
  111. package/dist/cjs/ds-notification.cjs.entry.js +7 -7
  112. package/dist/cjs/ds-number-input.cjs.entry.js +20 -11
  113. package/dist/cjs/ds-pagination.cjs.entry.js +12 -12
  114. package/dist/cjs/ds-progress-bar.cjs.entry.js +12 -12
  115. package/dist/cjs/ds-radio-group.cjs.entry.js +21 -14
  116. package/dist/cjs/ds-radio.cjs.entry.js +7 -7
  117. package/dist/cjs/ds-segment-item.cjs.entry.js +4 -4
  118. package/dist/cjs/ds-segment.cjs.entry.js +21 -15
  119. package/dist/cjs/ds-select-optgroup.cjs.entry.js +4 -4
  120. package/dist/cjs/ds-select-option.cjs.entry.js +4 -4
  121. package/dist/cjs/ds-select.cjs.entry.js +18 -13
  122. package/dist/cjs/ds-shape.cjs.entry.js +4 -4
  123. package/dist/cjs/ds-snackbar.cjs.entry.js +14 -14
  124. package/dist/cjs/ds-step-panel.cjs.entry.js +5 -5
  125. package/dist/cjs/ds-step.cjs.entry.js +5 -5
  126. package/dist/cjs/ds-steps.cjs.entry.js +6 -6
  127. package/dist/cjs/ds-tab-panel.cjs.entry.js +5 -5
  128. package/dist/cjs/ds-tab.cjs.entry.js +5 -5
  129. package/dist/cjs/ds-tabs.cjs.entry.js +8 -8
  130. package/dist/cjs/ds-tag-group.cjs.entry.js +2 -2
  131. package/dist/cjs/ds-tag.cjs.entry.js +7 -7
  132. package/dist/cjs/ds-text.cjs.entry.js +6 -6
  133. package/dist/cjs/ds-textarea.cjs.entry.js +19 -10
  134. package/dist/cjs/ds-toast.cjs.entry.js +12 -12
  135. package/dist/cjs/ds-toggle.cjs.entry.js +5 -5
  136. package/dist/cjs/ds-tooltip.cjs.entry.js +4 -4
  137. package/dist/cjs/{field.util-g9nhtuZH.js → field.util-C7hgA41e.js} +32 -2
  138. package/dist/cjs/{focus-BUszBnbl.js → focus-CHzvkERd.js} +1 -1
  139. package/dist/cjs/{form-control-B4Qf8fg-.js → form-control-CmRONWa7.js} +1 -1
  140. package/dist/cjs/{has-value-rj502MLA.js → has-value-3s9rhB3K.js} +1 -1
  141. package/dist/cjs/{heading.interfaces-B5NJ2yjL.js → heading.interfaces-CAc5LNKb.js} +2 -3
  142. package/dist/cjs/{index-CqInh7Vc.js → index-DD7qcaNz.js} +75 -1
  143. package/dist/cjs/index.cjs.js +7 -7
  144. package/dist/cjs/{listener-1PZJDuOW.js → listener-CAzIWSXQ.js} +1 -1
  145. package/dist/cjs/loader.cjs.js +2 -2
  146. package/dist/cjs/{one-of-BotLfpAZ.js → one-of-xdIxH9e7.js} +1 -1
  147. package/dist/cjs/{required-BAhZ8oRM.js → required-Dh6TQNa1.js} +1 -1
  148. package/dist/cjs/{resize.decorator-Sqefy8ta.js → resize.decorator-C53-TjuS.js} +2 -2
  149. package/dist/cjs/{scroll--5tnvpG1.js → scroll-BOeiw1-E.js} +1 -1
  150. package/dist/cjs/{svg-D9RbiR8R.js → svg-B9eUbG7a.js} +96 -33
  151. package/dist/cjs/{tslib.es6-BIB10hMZ.js → tslib.es6-DMgN1vwG.js} +1 -1
  152. package/dist/cjs/{type-Br_NbeTX.js → type-BcP2cAG-.js} +1 -1
  153. package/dist/collection/components/accordion/accordion.host.css +1 -1
  154. package/dist/collection/components/alert/snackbar/snackbar.host.css +1 -1
  155. package/dist/collection/components/alert/toast/toast.host.css +1 -1
  156. package/dist/collection/components/app/app.js +30 -3
  157. package/dist/collection/components/badge/badge.host.css +1 -1
  158. package/dist/collection/components/badge/badge.interfaces.js +3 -3
  159. package/dist/collection/components/badge/badge.js +20 -42
  160. package/dist/collection/components/button/button.interfaces.js +0 -1
  161. package/dist/collection/components/button/button.js +1 -1
  162. package/dist/collection/components/card/card-content/card-content.host.css +1 -1
  163. package/dist/collection/components/card/card-subtitle/card-subtitle.js +6 -11
  164. package/dist/collection/components/card/card-title/card-title.js +4 -11
  165. package/dist/collection/components/card/card.host.css +1 -1
  166. package/dist/collection/components/checkbox/checkbox-group/checkbox-group.js +16 -7
  167. package/dist/collection/components/checkbox/test/checkbox.visual.play.js +1 -0
  168. package/dist/collection/components/close/close.host.css +1 -1
  169. package/dist/collection/components/close/close.interfaces.js +1 -1
  170. package/dist/collection/components/close/close.js +14 -16
  171. package/dist/collection/components/content/content.host.css +1 -1
  172. package/dist/collection/components/content/content.interfaces.js +2 -3
  173. package/dist/collection/components/content/content.js +21 -60
  174. package/dist/collection/components/date/date.js +12 -4
  175. package/dist/collection/components/date/test/date.visual.play.js +1 -0
  176. package/dist/collection/components/file-upload/file-upload.js +13 -4
  177. package/dist/collection/components/file-upload/test/file-upload.visual.play.js +10 -1
  178. package/dist/collection/components/heading/heading.host.css +1 -1
  179. package/dist/collection/components/heading/heading.interfaces.js +2 -3
  180. package/dist/collection/components/heading/heading.js +25 -45
  181. package/dist/collection/components/input/field.util.js +1 -1
  182. package/dist/collection/components/input/input.js +14 -3
  183. package/dist/collection/components/input/test/input.visual.play.js +2 -1
  184. package/dist/collection/components/input-slider/input-slider.js +17 -8
  185. package/dist/collection/components/input-slider/test/input-slider.visual.play.js +1 -0
  186. package/dist/collection/components/list/item/item.host.css +1 -1
  187. package/dist/collection/components/number-input/number-input.js +13 -2
  188. package/dist/collection/components/number-input/test/number-input.visual.play.js +1 -1
  189. package/dist/collection/components/radio/radio-group/radio-group.js +16 -7
  190. package/dist/collection/components/radio/test/radio.visual.play.js +1 -0
  191. package/dist/collection/components/segment/segment/segment.js +15 -7
  192. package/dist/collection/components/segment/test/segment.visual.play.js +1 -0
  193. package/dist/collection/components/select/select.host.css +1 -1
  194. package/dist/collection/components/select/select.js +11 -4
  195. package/dist/collection/components/select/test/select.visual.play.js +2 -2
  196. package/dist/collection/components/spinner/spinner.host.css +1 -1
  197. package/dist/collection/components/spinner/spinner.interfaces.js +1 -1
  198. package/dist/collection/components/spinner/spinner.js +12 -16
  199. package/dist/collection/components/stack/stack.host.css +1 -1
  200. package/dist/collection/components/stack/stack.interfaces.js +1 -2
  201. package/dist/collection/components/stack/stack.js +13 -33
  202. package/dist/collection/components/tag/tag.host.css +1 -1
  203. package/dist/collection/components/textarea/test/textarea.visual.play.js +2 -2
  204. package/dist/collection/components/textarea/textarea.js +13 -2
  205. package/dist/collection/global/constants/version.constant.js +1 -1
  206. package/dist/collection/global/global.js +2 -0
  207. package/dist/collection/global/token-preview.js +75 -0
  208. package/dist/collection/global/token-preview.types.js +1 -0
  209. package/dist/collection/utils/index.js +1 -0
  210. package/dist/collection/utils/invalid-text-slot.js +31 -0
  211. package/dist/design-system/design-system.esm.js +1 -1
  212. package/dist/design-system/index.esm.js +1 -1
  213. package/dist/design-system/{p-b4738dc266.entry.js → p-001b20140b.entry.js} +1 -1
  214. package/dist/design-system/p-0c031d8d90.entry.js +4 -0
  215. package/dist/design-system/p-0c18812daa.entry.js +4 -0
  216. package/dist/design-system/{p-564ee4d78f.entry.js → p-19e0638e5c.entry.js} +1 -1
  217. package/dist/design-system/{p-ee76bf354e.entry.js → p-1dc3406415.entry.js} +1 -1
  218. package/dist/design-system/{p-3d2539929c.entry.js → p-200a0ea72c.entry.js} +1 -1
  219. package/dist/design-system/{p-ce67cbbed5.entry.js → p-2516721737.entry.js} +1 -1
  220. package/dist/design-system/{p-24c85e99f5.entry.js → p-2a67e9b4eb.entry.js} +1 -1
  221. package/dist/design-system/p-2cc9740eb6.entry.js +4 -0
  222. package/dist/design-system/{p-d4d9205dda.entry.js → p-33165c2b03.entry.js} +1 -1
  223. package/dist/design-system/p-37295c3a5d.entry.js +4 -0
  224. package/dist/design-system/{p-b44641ec28.entry.js → p-3d1f15112e.entry.js} +1 -1
  225. package/dist/design-system/p-3de8e2b6c9.entry.js +4 -0
  226. package/dist/design-system/{p-0bf3d4d939.entry.js → p-4042b35fee.entry.js} +1 -1
  227. package/dist/design-system/{p-00e6b1b780.entry.js → p-40b3d4d0f9.entry.js} +1 -1
  228. package/dist/design-system/{p-5f1a8be21c.entry.js → p-45af50a69f.entry.js} +1 -1
  229. package/dist/design-system/p-4df80c06f8.entry.js +4 -0
  230. package/dist/design-system/p-4f12c6449d.entry.js +4 -0
  231. package/dist/design-system/p-4f95f06b86.entry.js +4 -0
  232. package/dist/design-system/{p-2eb6067210.entry.js → p-662983c8bd.entry.js} +1 -1
  233. package/dist/design-system/{p-32e156bc72.entry.js → p-68693c06a1.entry.js} +1 -1
  234. package/dist/design-system/{p-9f9364d7df.entry.js → p-69784a200e.entry.js} +1 -1
  235. package/dist/design-system/{p-ChSKXFK5.js → p-6Iq8BM7N.js} +1 -1
  236. package/dist/design-system/{p-a42ecb68a0.entry.js → p-6ba71ce374.entry.js} +1 -1
  237. package/dist/design-system/{p-5ded2b6438.entry.js → p-72c08ce551.entry.js} +1 -1
  238. package/dist/design-system/p-72fe1ab876.entry.js +4 -0
  239. package/dist/design-system/p-73b26207bf.entry.js +4 -0
  240. package/dist/design-system/{p-b8669a617c.entry.js → p-7576fb01bf.entry.js} +1 -1
  241. package/dist/design-system/p-819d71abe1.entry.js +4 -0
  242. package/dist/design-system/{p-6c60833550.entry.js → p-88682a66d5.entry.js} +1 -1
  243. package/dist/design-system/{p-ab8bee7022.entry.js → p-8a7c2f5b0a.entry.js} +1 -1
  244. package/dist/design-system/{p-5d4a5d0b61.entry.js → p-8bfcfd7b07.entry.js} +1 -1
  245. package/dist/design-system/{p-f7be5b6114.entry.js → p-9537ebc880.entry.js} +1 -1
  246. package/dist/design-system/{p-3e3a6799d6.entry.js → p-96d37205c9.entry.js} +1 -1
  247. package/dist/design-system/{p-4bfc094a03.entry.js → p-97ad0e648a.entry.js} +1 -1
  248. package/dist/design-system/p-9e0f190f06.entry.js +4 -0
  249. package/dist/design-system/{p-adc58b2821.entry.js → p-9f746ea4e3.entry.js} +1 -1
  250. package/dist/design-system/{p-DJBD4skP.js → p-B2dqoehY.js} +2 -2
  251. package/dist/design-system/p-B9ddSbbe.js +4 -0
  252. package/dist/design-system/p-BDcIydUK.js +4 -0
  253. package/dist/design-system/p-BdLq-Ecc.js +4 -0
  254. package/dist/design-system/{p-Dk0GEN2t.js → p-BjaiDrCD.js} +1 -1
  255. package/dist/design-system/{p-DoHCSvjl.js → p-BnJgNfen.js} +1 -1
  256. package/dist/design-system/{p-DOvdnojj.js → p-Bnpwi9iD.js} +1 -1
  257. package/dist/design-system/p-C6AmBSV7.js +4 -0
  258. package/dist/design-system/{p-Chgme2NJ.js → p-CBGYLNZZ.js} +1 -1
  259. package/dist/design-system/{p-1A9jKraP.js → p-CR2JnhVY.js} +1 -1
  260. package/dist/design-system/{p-CfgwSore.js → p-ClSAXeZN.js} +1 -1
  261. package/dist/design-system/p-D-_px2sY.js +5 -0
  262. package/dist/design-system/p-DNQg2PVW.js +4 -0
  263. package/dist/design-system/p-DQGbRzw_.js +4 -0
  264. package/dist/design-system/{p-x2KazRjl.js → p-DWdcUUdS.js} +1 -1
  265. package/dist/design-system/{p-C5Rtikeh.js → p-DuKlHFAK.js} +1 -1
  266. package/dist/design-system/{p-B-v2Wm-V.js → p-MUUOiuTm.js} +2 -2
  267. package/dist/design-system/p-_Ywzmi-B.js +4 -0
  268. package/dist/design-system/{p-Y0rKqVvm.js → p-_rk5qARQ.js} +1 -1
  269. package/dist/design-system/{p-44981aaf8d.entry.js → p-a343b84e8a.entry.js} +1 -1
  270. package/dist/design-system/p-a3ed278181.entry.js +4 -0
  271. package/dist/design-system/{p-16b03e0b02.entry.js → p-a71c22bc50.entry.js} +1 -1
  272. package/dist/design-system/{p-CrYAd3JT.js → p-aPnyJLhr.js} +1 -1
  273. package/dist/design-system/{p-fa613cd0d1.entry.js → p-abcc8edf7e.entry.js} +1 -1
  274. package/dist/design-system/{p-3d675c6507.entry.js → p-ac55e3783c.entry.js} +1 -1
  275. package/dist/design-system/{p-3e43fa2bc6.entry.js → p-ac7f3f89be.entry.js} +1 -1
  276. package/dist/design-system/{p-1b1e3ad99c.entry.js → p-ae8753bf2a.entry.js} +1 -1
  277. package/dist/design-system/{p-d3a80b8422.entry.js → p-afea3755c2.entry.js} +1 -1
  278. package/dist/design-system/{p-0ea6cdd218.entry.js → p-bd31b396d8.entry.js} +1 -1
  279. package/dist/design-system/p-bd740897a1.entry.js +4 -0
  280. package/dist/design-system/{p-1750b3c4f1.entry.js → p-bf03129378.entry.js} +1 -1
  281. package/dist/design-system/{p-85bf3794f9.entry.js → p-bfd0557b47.entry.js} +1 -1
  282. package/dist/design-system/{p-7246bfb9a0.entry.js → p-c07aa25e4d.entry.js} +1 -1
  283. package/dist/design-system/p-c19c74c2b1.entry.js +4 -0
  284. package/dist/design-system/{p-a782c877ea.entry.js → p-d5d7700fd3.entry.js} +1 -1
  285. package/dist/design-system/p-d727654ec3.entry.js +4 -0
  286. package/dist/design-system/{p-aa3aee2591.entry.js → p-dadd7a84bc.entry.js} +1 -1
  287. package/dist/design-system/p-dd5e815ef3.entry.js +4 -0
  288. package/dist/design-system/{p-a8df8f067b.entry.js → p-dfebad2acc.entry.js} +1 -1
  289. package/dist/design-system/p-e16572468e.entry.js +4 -0
  290. package/dist/design-system/{p-8a9d617f75.entry.js → p-e23b6d59c0.entry.js} +1 -1
  291. package/dist/design-system/{p-5f28436626.entry.js → p-e743fa4c17.entry.js} +1 -1
  292. package/dist/design-system/p-e94b66c13e.entry.js +4 -0
  293. package/dist/design-system/{p-78112e7b35.entry.js → p-ec3f2ded29.entry.js} +1 -1
  294. package/dist/design-system/{p-2b038255c5.entry.js → p-ed3f364d1f.entry.js} +1 -1
  295. package/dist/design-system/{p-599a693db3.entry.js → p-eedaf7fe85.entry.js} +1 -1
  296. package/dist/design-system/p-ef1bf78788.entry.js +4 -0
  297. package/dist/design-system/{p-0f2a87fa39.entry.js → p-f0b0376beb.entry.js} +1 -1
  298. package/dist/design-system/p-f7787fca37.entry.js +4 -0
  299. package/dist/design-system/{p-dbd3d3b3d3.entry.js → p-fd868dc1f5.entry.js} +1 -1
  300. package/dist/esm/{breakpoints.decorator-D9M4v98c.js → breakpoints.decorator-CIweMjJQ.js} +1 -1
  301. package/dist/esm/{breakpoints.subject-DHZ7TzYV.js → breakpoints.subject-CUVOWezN.js} +3 -3
  302. package/dist/esm/{button.interfaces-BPGfTrrM.js → button.interfaces-C6AmBSV7.js} +0 -1
  303. package/dist/esm/{config.decorator-CRYVBTkX.js → config.decorator-CyvsD1EY.js} +1 -1
  304. package/dist/esm/{config.utils-CR4Xudpz.js → config.utils-Db2OSTX3.js} +1 -1
  305. package/dist/esm/{create-validator-decorator-fUav5byo.js → create-validator-decorator-g9TfAa1g.js} +1 -1
  306. package/dist/esm/design-system.js +3 -3
  307. package/dist/esm/{device-CapioAfe.js → device-CtidwsPr.js} +1 -1
  308. package/dist/esm/ds-accordion.entry.js +9 -9
  309. package/dist/esm/ds-alert-container.entry.js +6 -6
  310. package/dist/esm/ds-app.entry.js +35 -8
  311. package/dist/esm/ds-badge.entry.js +20 -39
  312. package/dist/esm/ds-button-group.entry.js +7 -7
  313. package/dist/esm/ds-button_2.entry.js +20 -20
  314. package/dist/esm/ds-card-actions.entry.js +4 -4
  315. package/dist/esm/ds-card-content.entry.js +3 -3
  316. package/dist/esm/ds-card-header.entry.js +5 -5
  317. package/dist/esm/ds-card-subtitle.entry.js +10 -14
  318. package/dist/esm/ds-card-title.entry.js +8 -14
  319. package/dist/esm/ds-card.entry.js +7 -7
  320. package/dist/esm/ds-carousel-item.entry.js +6 -6
  321. package/dist/esm/ds-carousel.entry.js +8 -8
  322. package/dist/esm/ds-checkbox-group.entry.js +22 -15
  323. package/dist/esm/ds-checkbox.entry.js +7 -7
  324. package/dist/esm/ds-content_2.entry.js +18 -68
  325. package/dist/esm/ds-data-item.entry.js +6 -6
  326. package/dist/esm/ds-data-label.entry.js +4 -4
  327. package/dist/esm/ds-data-value.entry.js +2 -2
  328. package/dist/esm/ds-data.entry.js +4 -4
  329. package/dist/esm/ds-date.entry.js +18 -12
  330. package/dist/esm/ds-divider_2.entry.js +12 -12
  331. package/dist/esm/ds-drawer_2.entry.js +9 -9
  332. package/dist/esm/ds-file-upload.entry.js +18 -11
  333. package/dist/esm/ds-footer.entry.js +7 -7
  334. package/dist/esm/ds-heading.entry.js +21 -37
  335. package/dist/esm/ds-hint-text.entry.js +2 -2
  336. package/dist/esm/ds-hint-title.entry.js +2 -2
  337. package/dist/esm/ds-hint.entry.js +11 -11
  338. package/dist/esm/ds-icon_2.entry.js +19 -23
  339. package/dist/esm/ds-input-slider.entry.js +21 -14
  340. package/dist/esm/ds-input.entry.js +20 -11
  341. package/dist/esm/ds-item.entry.js +7 -7
  342. package/dist/esm/ds-label.entry.js +8 -8
  343. package/dist/esm/ds-list.entry.js +4 -4
  344. package/dist/esm/ds-modal-body.entry.js +2 -2
  345. package/dist/esm/ds-modal-header.entry.js +2 -2
  346. package/dist/esm/ds-modal.entry.js +7 -7
  347. package/dist/esm/ds-navbar.entry.js +14 -14
  348. package/dist/esm/ds-notification.entry.js +7 -7
  349. package/dist/esm/ds-number-input.entry.js +20 -11
  350. package/dist/esm/ds-pagination.entry.js +12 -12
  351. package/dist/esm/ds-progress-bar.entry.js +12 -12
  352. package/dist/esm/ds-radio-group.entry.js +21 -14
  353. package/dist/esm/ds-radio.entry.js +7 -7
  354. package/dist/esm/ds-segment-item.entry.js +4 -4
  355. package/dist/esm/ds-segment.entry.js +21 -15
  356. package/dist/esm/ds-select-optgroup.entry.js +4 -4
  357. package/dist/esm/ds-select-option.entry.js +4 -4
  358. package/dist/esm/ds-select.entry.js +18 -13
  359. package/dist/esm/ds-shape.entry.js +4 -4
  360. package/dist/esm/ds-snackbar.entry.js +14 -14
  361. package/dist/esm/ds-step-panel.entry.js +5 -5
  362. package/dist/esm/ds-step.entry.js +5 -5
  363. package/dist/esm/ds-steps.entry.js +6 -6
  364. package/dist/esm/ds-tab-panel.entry.js +5 -5
  365. package/dist/esm/ds-tab.entry.js +5 -5
  366. package/dist/esm/ds-tabs.entry.js +8 -8
  367. package/dist/esm/ds-tag-group.entry.js +2 -2
  368. package/dist/esm/ds-tag.entry.js +7 -7
  369. package/dist/esm/ds-text.entry.js +6 -6
  370. package/dist/esm/ds-textarea.entry.js +19 -10
  371. package/dist/esm/ds-toast.entry.js +12 -12
  372. package/dist/esm/ds-toggle.entry.js +5 -5
  373. package/dist/esm/ds-tooltip.entry.js +4 -4
  374. package/dist/esm/{field.util-neIQBS-h.js → field.util-Dl02gvlr.js} +32 -3
  375. package/dist/esm/{focus-6OAqvfus.js → focus-C1_jVoAm.js} +1 -1
  376. package/dist/esm/{form-control-DhinyMa9.js → form-control-BAP86QSm.js} +1 -1
  377. package/dist/esm/{has-value-Dmsj8ZQw.js → has-value-CADjf9QZ.js} +1 -1
  378. package/dist/esm/{heading.interfaces-Ceu7FIWM.js → heading.interfaces-BdLq-Ecc.js} +2 -3
  379. package/dist/esm/{index-B-v2Wm-V.js → index-MUUOiuTm.js} +75 -1
  380. package/dist/esm/index.js +10 -10
  381. package/dist/esm/{listener-DIZDQOuO.js → listener-DiVrGAqj.js} +1 -1
  382. package/dist/esm/loader.js +3 -3
  383. package/dist/esm/{one-of-CjRvS2Tk.js → one-of-rLykP5eX.js} +1 -1
  384. package/dist/esm/{required-Dtml5IID.js → required-BsfIY-qW.js} +1 -1
  385. package/dist/esm/{resize.decorator-eogZBBk6.js → resize.decorator-BNy5tJCt.js} +2 -2
  386. package/dist/esm/{scroll-v2MaEkiZ.js → scroll-D4cC-Fsr.js} +1 -1
  387. package/dist/esm/{svg-B8KVoKrH.js → svg-D-_px2sY.js} +96 -33
  388. package/dist/esm/{tslib.es6-n47B6oUi.js → tslib.es6-C7vR-gMn.js} +1 -1
  389. package/dist/esm/{type-7qEQcw90.js → type-Bqge296W.js} +1 -1
  390. package/dist/types/components/app/app.d.ts +23 -0
  391. package/dist/types/components/badge/badge.d.ts +12 -4
  392. package/dist/types/components/badge/badge.interfaces.d.ts +3 -3
  393. package/dist/types/components/button/button.interfaces.d.ts +1 -1
  394. package/dist/types/components/card/card-subtitle/card-subtitle.d.ts +1 -1
  395. package/dist/types/components/card/card-title/card-title.d.ts +1 -1
  396. package/dist/types/components/checkbox/checkbox-group/checkbox-group.d.ts +4 -0
  397. package/dist/types/components/close/close.d.ts +14 -2
  398. package/dist/types/components/close/close.interfaces.d.ts +1 -1
  399. package/dist/types/components/content/content.d.ts +6 -6
  400. package/dist/types/components/content/content.interfaces.d.ts +3 -3
  401. package/dist/types/components/date/date.d.ts +3 -0
  402. package/dist/types/components/file-upload/file-upload.d.ts +3 -0
  403. package/dist/types/components/heading/heading.d.ts +10 -10
  404. package/dist/types/components/heading/heading.interfaces.d.ts +3 -3
  405. package/dist/types/components/input/input.d.ts +4 -0
  406. package/dist/types/components/input-slider/input-slider.d.ts +4 -1
  407. package/dist/types/components/number-input/number-input.d.ts +4 -0
  408. package/dist/types/components/radio/radio-group/radio-group.d.ts +4 -0
  409. package/dist/types/components/segment/segment/segment.d.ts +3 -0
  410. package/dist/types/components/select/select.d.ts +3 -0
  411. package/dist/types/components/spinner/spinner.d.ts +8 -7
  412. package/dist/types/components/spinner/spinner.interfaces.d.ts +1 -1
  413. package/dist/types/components/stack/stack.d.ts +3 -3
  414. package/dist/types/components/stack/stack.interfaces.d.ts +2 -2
  415. package/dist/types/components/textarea/textarea.d.ts +4 -0
  416. package/dist/types/components.d.ts +27 -68
  417. package/dist/types/global/token-preview.d.ts +8 -0
  418. package/dist/types/global/token-preview.types.d.ts +20 -0
  419. package/dist/types/utils/index.d.ts +1 -0
  420. package/dist/types/utils/invalid-text-slot.d.ts +9 -0
  421. package/docs/cem.json +94 -82
  422. package/docs/components.json +843 -991
  423. package/docs/html.html-data.json +1 -1
  424. package/docs/visual-pages.json +51 -0
  425. package/package.json +6 -6
  426. package/sbom.cdx.json +36584 -18456
  427. package/components/p--EKmxaBS.js +0 -4
  428. package/components/p-CA7G72wZ.js +0 -4
  429. package/components/p-CWDuQL1i.js +0 -4
  430. package/components/p-Ceu7FIWM.js +0 -4
  431. package/components/p-DQBzmbR6.js +0 -4
  432. package/components/p-DY0y8uLL.js +0 -4
  433. package/components/p-Du7QOHtz.js +0 -5
  434. package/components/p-FBQaJyH0.js +0 -4
  435. package/components/p-gz0Nxl39.js +0 -4
  436. package/components/p-qaSW94OG.js +0 -4
  437. package/dist/design-system/p-138be1f0cc.entry.js +0 -4
  438. package/dist/design-system/p-2bb98dfa2f.entry.js +0 -4
  439. package/dist/design-system/p-3824068ae7.entry.js +0 -4
  440. package/dist/design-system/p-3aa3841834.entry.js +0 -4
  441. package/dist/design-system/p-4284d6d646.entry.js +0 -4
  442. package/dist/design-system/p-4b2a59576c.entry.js +0 -4
  443. package/dist/design-system/p-53d9a40010.entry.js +0 -4
  444. package/dist/design-system/p-5a6c6959fa.entry.js +0 -4
  445. package/dist/design-system/p-77e7a6a068.entry.js +0 -4
  446. package/dist/design-system/p-7ebdd14afc.entry.js +0 -4
  447. package/dist/design-system/p-7f42c18249.entry.js +0 -4
  448. package/dist/design-system/p-908e7b073a.entry.js +0 -4
  449. package/dist/design-system/p-B8KVoKrH.js +0 -5
  450. package/dist/design-system/p-BPGfTrrM.js +0 -4
  451. package/dist/design-system/p-Ceu7FIWM.js +0 -4
  452. package/dist/design-system/p-DYPX3A8m.js +0 -4
  453. package/dist/design-system/p-DiUgZKWs.js +0 -4
  454. package/dist/design-system/p-DkhJaoXg.js +0 -4
  455. package/dist/design-system/p-DypNSUAh.js +0 -4
  456. package/dist/design-system/p-Z0zrglhd.js +0 -4
  457. package/dist/design-system/p-aa3c0ff536.entry.js +0 -4
  458. package/dist/design-system/p-b390490b0d.entry.js +0 -4
  459. package/dist/design-system/p-b851a43fff.entry.js +0 -4
  460. package/dist/design-system/p-b8f626bf28.entry.js +0 -4
  461. package/dist/design-system/p-bd543e1baf.entry.js +0 -4
  462. package/dist/design-system/p-e0b2d6e296.entry.js +0 -4
  463. package/dist/design-system/p-e94ee7391c.entry.js +0 -4
  464. package/dist/design-system/p-faf75173db.entry.js +0 -4
  465. package/dist/design-system/p-fff38e1ca7.entry.js +0 -4
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * (C) Helvetia Design System https://design.baloise.dev/ - Apache License 2.0
3
3
  */
4
- import { B as registerInstance, E as h, F as Host, G as getElement } from './index-B-v2Wm-V.js';
5
- import { _ as __decorate, L as Logger, a as __metadata } from './tslib.es6-n47B6oUi.js';
6
- import { T as Type } from './type-7qEQcw90.js';
7
- import './create-validator-decorator-fUav5byo.js';
4
+ import { B as registerInstance, E as h, F as Host, G as getElement } from './index-MUUOiuTm.js';
5
+ import { _ as __decorate, L as Logger, a as __metadata } from './tslib.es6-C7vR-gMn.js';
6
+ import { T as Type } from './type-Bqge296W.js';
7
+ import './create-validator-decorator-g9TfAa1g.js';
8
8
 
9
9
  const dataLabelHostCss = () => `:host{display:contents}`;
10
10
 
@@ -1,8 +1,8 @@
1
1
  /*!
2
2
  * (C) Helvetia Design System https://design.baloise.dev/ - Apache License 2.0
3
3
  */
4
- import { B as registerInstance, E as h, F as Host, G as getElement } from './index-B-v2Wm-V.js';
5
- import { _ as __decorate, L as Logger, a as __metadata } from './tslib.es6-n47B6oUi.js';
4
+ import { B as registerInstance, E as h, F as Host, G as getElement } from './index-MUUOiuTm.js';
5
+ import { _ as __decorate, L as Logger, a as __metadata } from './tslib.es6-C7vR-gMn.js';
6
6
 
7
7
  const dataValueHostCss = () => `:host{display:contents}`;
8
8
 
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * (C) Helvetia Design System https://design.baloise.dev/ - Apache License 2.0
3
3
  */
4
- import { B as registerInstance, E as h, F as Host, G as getElement } from './index-B-v2Wm-V.js';
5
- import { _ as __decorate, L as Logger, a as __metadata } from './tslib.es6-n47B6oUi.js';
6
- import { T as Type } from './type-7qEQcw90.js';
7
- import './create-validator-decorator-fUav5byo.js';
4
+ import { B as registerInstance, E as h, F as Host, G as getElement } from './index-MUUOiuTm.js';
5
+ import { _ as __decorate, L as Logger, a as __metadata } from './tslib.es6-C7vR-gMn.js';
6
+ import { T as Type } from './type-Bqge296W.js';
7
+ import './create-validator-decorator-g9TfAa1g.js';
8
8
 
9
9
  const dataHostCss = () => `:host{display:block}.data-container{display:grid;grid-template-columns:1fr;width:100%}:host(.is-horizontal) .data-container{gap:1rem}@media screen and (min-width: 769px){:host(.is-horizontal) .data-container{grid-template-columns:repeat(auto-fit, minmax(200px, 1fr))}}`;
10
10
 
@@ -1,23 +1,23 @@
1
1
  /*!
2
2
  * (C) Helvetia Design System https://design.baloise.dev/ - Apache License 2.0
3
3
  */
4
- import { E as h, D as raf, B as registerInstance, I as createEvent, v as defaultConfig, N as debounceEvent, G as getElement } from './index-B-v2Wm-V.js';
5
- import { _ as __decorate, L as Logger, a as __metadata } from './tslib.es6-n47B6oUi.js';
4
+ import { E as h, D as raf, B as registerInstance, I as createEvent, v as defaultConfig, N as debounceEvent, G as getElement } from './index-MUUOiuTm.js';
5
+ import { _ as __decorate, L as Logger, a as __metadata } from './tslib.es6-C7vR-gMn.js';
6
6
  import { i as inheritAttributes } from './attributes-B62ocg4Q.js';
7
- import { F as FocusHandler } from './focus-6OAqvfus.js';
8
- import { F as FormControl } from './form-control-DhinyMa9.js';
7
+ import { F as FocusHandler } from './focus-C1_jVoAm.js';
8
+ import { F as FormControl } from './form-control-BAP86QSm.js';
9
+ import { w as watchInvalidTextSlot, F as Field } from './field.util-Dl02gvlr.js';
9
10
  import { i as isEscapeKey } from './keyboard-Uy_dVz21.js';
10
- import { F as Field } from './field.util-neIQBS-h.js';
11
11
  import { a as INPUT_AUTOCOMPLETES } from './input.interfaces-BMM6Nxeh.js';
12
12
  import { D as DateTime } from './luxon-C1jqbZdf.js';
13
13
  import { g as getDefaultExportFromCjs } from './_commonjsHelpers-Duhf3ymL.js';
14
- import { T as Type } from './type-7qEQcw90.js';
15
- import { O as OneOf } from './one-of-CjRvS2Tk.js';
16
- import { L as ListenToConfig } from './config.decorator-CRYVBTkX.js';
14
+ import { T as Type } from './type-Bqge296W.js';
15
+ import { O as OneOf } from './one-of-rLykP5eX.js';
16
+ import { L as ListenToConfig } from './config.decorator-CyvsD1EY.js';
17
17
  import './aria-DYfTMCkl.js';
18
18
  import './label.i18n-C7I7OlaM.js';
19
- import './create-validator-decorator-fUav5byo.js';
20
- import './config.utils-CR4Xudpz.js';
19
+ import './create-validator-decorator-g9TfAa1g.js';
20
+ import './config.utils-Db2OSTX3.js';
21
21
 
22
22
  const i18nDsClearButton = {
23
23
  de: {
@@ -4864,6 +4864,7 @@ const DsDate = class {
4864
4864
  this.language = defaultConfig.language;
4865
4865
  this.region = defaultConfig.region;
4866
4866
  this.isOpen = false;
4867
+ this.hasInvalidTextSlotContent = false;
4867
4868
  /**
4868
4869
  * PUBLIC PROPERTY API
4869
4870
  * ------------------------------------------------------
@@ -5079,6 +5080,9 @@ const DsDate = class {
5079
5080
  connectedCallback() {
5080
5081
  this.debounceChanged();
5081
5082
  this.control.connectedCallback();
5083
+ this.disconnectInvalidTextSlotWatcher = watchInvalidTextSlot(this.el, hasContent => {
5084
+ this.hasInvalidTextSlotContent = hasContent;
5085
+ });
5082
5086
  }
5083
5087
  componentWillLoad() {
5084
5088
  this.inheritedAttributes = inheritAttributes(this.el, ['aria-label', 'tabindex', 'title', 'data-hj-allow']);
@@ -5117,12 +5121,13 @@ const DsDate = class {
5117
5121
  }
5118
5122
  }
5119
5123
  disconnectedCallback() {
5120
- var _a, _b;
5124
+ var _a, _b, _c;
5121
5125
  this.focusHandler.disconnect();
5122
5126
  (_a = this.dateMask) === null || _a === void 0 ? void 0 : _a.destroy();
5123
5127
  this.dateMask = undefined;
5124
5128
  (_b = this.datePicker) === null || _b === void 0 ? void 0 : _b.destroy();
5125
5129
  this.datePicker = undefined;
5130
+ (_c = this.disconnectInvalidTextSlotWatcher) === null || _c === void 0 ? void 0 : _c.call(this);
5126
5131
  }
5127
5132
  /**
5128
5133
  * PUBLIC METHODS
@@ -5195,7 +5200,8 @@ const DsDate = class {
5195
5200
  const displayValue = isoToDisplay(this.value, getDisplayFormat(this.region));
5196
5201
  const triggerLabel = i18nDsTriggerButton[this.language].openCalendar;
5197
5202
  const chooseDateLabel = i18nDsTriggerButton[this.language].chooseDate;
5198
- return (h(Field, { key: '859a54d8d31278c3fec25f00ac9929181cd7a7b5', disabled: this.disabled, color: this.color, invalid: this.invalid, loading: this.loading, label: this.label, description: this.description, invalidText: this.invalidText, required: this.required, language: this.language, inputId: "input" }, h("input", Object.assign({ key: '4ad6e0bae869a59beb72ed72e5d90e58efbab930', id: "input", part: "input", name: this.name, type: "text", inputMode: "numeric", ref: inputEl => (this.control.nativeEl = inputEl), "aria-describedby": "description", "aria-invalid": this.invalid === true ? 'true' : 'false', disabled: this.disabled, autofocus: this.autofocus, autocomplete: this.autocomplete, placeholder: this.placeholder || '', readonly: this.readonly, required: this.required, value: displayValue, onClick: ev => this.handleClick(ev), onFocus: ev => this.handleFocus(ev), onBlur: ev => this.handleBlur(ev), onKeyPress: ev => this.dsKeyPress.emit(ev) }, this.inheritedAttributes)), h(ClearButton, { key: 'cb317335e4e6053cc2dc3f45c59bb7c8b3418bd4', value: this.value, disabled: this.disabled, readonly: this.readonly, language: this.language, onClick: this.handleClearClick }), !this.freeSolo && !this.disabled && !this.readonly && (h("button", { key: 'ba6176e8c753d5055e0cd67eb0d8f973e4c06ce3', id: "trigger", part: "trigger", type: "button", ref: el => (this.triggerEl = el), "aria-label": triggerLabel, title: triggerLabel, "aria-haspopup": "dialog", "aria-expanded": this.isOpen ? 'true' : 'false', "aria-controls": "popup", onClick: this.handleTriggerClick }, h("ds-icon", { key: 'e5753c5a882058c816cf1feb1d73d2fb2043d027', name: "date" }))), !this.freeSolo && (h("div", { key: 'ceafaa1297f32cf6d6614ecbe21230c5bee7327d', id: "popup", role: "dialog", "aria-modal": "true", "aria-label": chooseDateLabel, "aria-hidden": this.isOpen ? 'false' : 'true', inert: this.isOpen ? undefined : true, ref: el => (this.popupHostEl = el) }))));
5203
+ const isInvalid = this.invalid || this.hasInvalidTextSlotContent;
5204
+ return (h(Field, { key: '8014eb5d73b80fa1509c5f26443bfef49bc52323', disabled: this.disabled, color: this.color, invalid: isInvalid, loading: this.loading, label: this.label, description: this.description, invalidText: this.invalidText, required: this.required, language: this.language, inputId: "input" }, h("input", Object.assign({ key: 'def1cdff17dc0ab2041a721a9410dd7dc1910d6d', id: "input", part: "input", name: this.name, type: "text", inputMode: "numeric", ref: inputEl => (this.control.nativeEl = inputEl), "aria-describedby": "description", "aria-invalid": isInvalid ? 'true' : 'false', disabled: this.disabled, autofocus: this.autofocus, autocomplete: this.autocomplete, placeholder: this.placeholder || '', readonly: this.readonly, required: this.required, value: displayValue, onClick: ev => this.handleClick(ev), onFocus: ev => this.handleFocus(ev), onBlur: ev => this.handleBlur(ev), onKeyPress: ev => this.dsKeyPress.emit(ev) }, this.inheritedAttributes)), h(ClearButton, { key: '186a489abe898f6bca4d3b1b6680d7040c29346e', value: this.value, disabled: this.disabled, readonly: this.readonly, language: this.language, onClick: this.handleClearClick }), !this.freeSolo && !this.disabled && !this.readonly && (h("button", { key: 'be3c5c0c05f0d9833925e9a55ced39a761f93b8c', id: "trigger", part: "trigger", type: "button", ref: el => (this.triggerEl = el), "aria-label": triggerLabel, title: triggerLabel, "aria-haspopup": "dialog", "aria-expanded": this.isOpen ? 'true' : 'false', "aria-controls": "popup", onClick: this.handleTriggerClick }, h("ds-icon", { key: '9f8e939473943399badc13b7ea45c9585dc474f5', name: "date" }))), !this.freeSolo && (h("div", { key: '4073f568bba1558bb57d894b789580d52601bf1c', id: "popup", role: "dialog", "aria-modal": "true", "aria-label": chooseDateLabel, "aria-hidden": this.isOpen ? 'false' : 'true', inert: this.isOpen ? undefined : true, ref: el => (this.popupHostEl = el) }))));
5199
5205
  }
5200
5206
  static get formAssociated() { return true; }
5201
5207
  get el() { return getElement(this); }
@@ -1,19 +1,19 @@
1
1
  /*!
2
2
  * (C) Helvetia Design System https://design.baloise.dev/ - Apache License 2.0
3
3
  */
4
- import { B as registerInstance, E as h, F as Host, G as getElement, L as rOnLoad } from './index-B-v2Wm-V.js';
5
- import { _ as __decorate, L as Logger, a as __metadata } from './tslib.es6-n47B6oUi.js';
6
- import { h as hasValue } from './has-value-Dmsj8ZQw.js';
4
+ import { B as registerInstance, E as h, F as Host, G as getElement, L as rOnLoad } from './index-MUUOiuTm.js';
5
+ import { _ as __decorate, L as Logger, a as __metadata } from './tslib.es6-C7vR-gMn.js';
6
+ import { h as hasValue } from './has-value-CADjf9QZ.js';
7
7
  import { n as normalizeDeprecatedTShirtSize } from './t-shirt-DR5LIaCn.js';
8
- import { O as OneOf } from './one-of-CjRvS2Tk.js';
9
- import { T as Type } from './type-7qEQcw90.js';
10
- import { d as dsBreakpoints } from './breakpoints.subject-DHZ7TzYV.js';
11
- import { L as ListenToBreakpoints } from './breakpoints.decorator-D9M4v98c.js';
12
- import { L as ListenToConfig } from './config.decorator-CRYVBTkX.js';
13
- import './create-validator-decorator-fUav5byo.js';
14
- import './listener-DIZDQOuO.js';
15
- import './device-CapioAfe.js';
16
- import './config.utils-CR4Xudpz.js';
8
+ import { O as OneOf } from './one-of-rLykP5eX.js';
9
+ import { T as Type } from './type-Bqge296W.js';
10
+ import { d as dsBreakpoints } from './breakpoints.subject-CUVOWezN.js';
11
+ import { L as ListenToBreakpoints } from './breakpoints.decorator-CIweMjJQ.js';
12
+ import { L as ListenToConfig } from './config.decorator-CyvsD1EY.js';
13
+ import './create-validator-decorator-g9TfAa1g.js';
14
+ import './listener-DiVrGAqj.js';
15
+ import './device-CtidwsPr.js';
16
+ import './config.utils-Db2OSTX3.js';
17
17
 
18
18
  const DIVIDER_LAYOUTS = ['horizontal', 'vertical', ''];
19
19
  const DIVIDER_COLORS = [
@@ -1,18 +1,18 @@
1
1
  /*!
2
2
  * (C) Helvetia Design System https://design.baloise.dev/ - Apache License 2.0
3
3
  */
4
- import { B as registerInstance, I as createEvent, w as wait, E as h, F as Host, G as getElement, d as dsBrowser } from './index-B-v2Wm-V.js';
5
- import { _ as __decorate, L as Logger, a as __metadata } from './tslib.es6-n47B6oUi.js';
6
- import { S as ScrollHandler } from './scroll-v2MaEkiZ.js';
7
- import { T as Type } from './type-7qEQcw90.js';
8
- import { O as OneOf } from './one-of-CjRvS2Tk.js';
9
- import { L as ListenToConfig } from './config.decorator-CRYVBTkX.js';
4
+ import { B as registerInstance, I as createEvent, w as wait, E as h, F as Host, G as getElement, d as dsBrowser } from './index-MUUOiuTm.js';
5
+ import { _ as __decorate, L as Logger, a as __metadata } from './tslib.es6-C7vR-gMn.js';
6
+ import { S as ScrollHandler } from './scroll-D4cC-Fsr.js';
7
+ import { T as Type } from './type-Bqge296W.js';
8
+ import { O as OneOf } from './one-of-rLykP5eX.js';
9
+ import { L as ListenToConfig } from './config.decorator-CyvsD1EY.js';
10
10
  import { a as autoUpdate, c as computePosition, s as shift, f as flip, o as offset, b as arrow } from './floating-ui.dom-BqY0KzJC.js';
11
- import { F as FocusHandler } from './focus-6OAqvfus.js';
11
+ import { F as FocusHandler } from './focus-C1_jVoAm.js';
12
12
  import { i as isEscapeKey } from './keyboard-Uy_dVz21.js';
13
13
  import { P as POPUP_PLACEMENTS, a as POPUP_ROLES } from './popup.interfaces-BAY6Z8bT.js';
14
- import './create-validator-decorator-fUav5byo.js';
15
- import './config.utils-CR4Xudpz.js';
14
+ import './create-validator-decorator-g9TfAa1g.js';
15
+ import './config.utils-Db2OSTX3.js';
16
16
 
17
17
  const DRAWER_CONTAINERS = ['default', 'fluid', 'compact'];
18
18
 
@@ -1,15 +1,15 @@
1
1
  /*!
2
2
  * (C) Helvetia Design System https://design.baloise.dev/ - Apache License 2.0
3
3
  */
4
- import { B as registerInstance, I as createEvent, v as defaultConfig, E as h, G as getElement } from './index-B-v2Wm-V.js';
5
- import { _ as __decorate, L as Logger, a as __metadata } from './tslib.es6-n47B6oUi.js';
4
+ import { B as registerInstance, I as createEvent, v as defaultConfig, E as h, G as getElement } from './index-MUUOiuTm.js';
5
+ import { _ as __decorate, L as Logger, a as __metadata } from './tslib.es6-C7vR-gMn.js';
6
6
  import { a as areArraysEqual } from './array-BJZA868l.js';
7
- import { s as stopEventBubbling } from './form-control-DhinyMa9.js';
8
- import { F as Field } from './field.util-neIQBS-h.js';
7
+ import { s as stopEventBubbling } from './form-control-BAP86QSm.js';
8
+ import { w as watchInvalidTextSlot, F as Field } from './field.util-Dl02gvlr.js';
9
9
  import { I as INPUT_COLORS } from './input.interfaces-BMM6Nxeh.js';
10
- import { T as Type } from './type-7qEQcw90.js';
11
- import { O as OneOf } from './one-of-CjRvS2Tk.js';
12
- import { L as ListenToConfig } from './config.decorator-CRYVBTkX.js';
10
+ import { T as Type } from './type-Bqge296W.js';
11
+ import { O as OneOf } from './one-of-rLykP5eX.js';
12
+ import { L as ListenToConfig } from './config.decorator-CyvsD1EY.js';
13
13
  import './_commonjsHelpers-Duhf3ymL.js';
14
14
  import './_getTag-BkweuRJc.js';
15
15
  import './isObjectLike-BnBXjF_n.js';
@@ -17,8 +17,8 @@ import './isArray-B8PCdo6e.js';
17
17
  import './isNil--HeEBNs3.js';
18
18
  import './aria-DYfTMCkl.js';
19
19
  import './label.i18n-C7I7OlaM.js';
20
- import './create-validator-decorator-fUav5byo.js';
21
- import './config.utils-CR4Xudpz.js';
20
+ import './create-validator-decorator-g9TfAa1g.js';
21
+ import './config.utils-Db2OSTX3.js';
22
22
 
23
23
  const toFileArray = (list) => {
24
24
  return Array.from(list !== null && list !== void 0 ? list : []);
@@ -157,6 +157,7 @@ const FileUpload = class {
157
157
  this.isDragOver = false;
158
158
  this.language = defaultConfig.language;
159
159
  this.region = defaultConfig.region;
160
+ this.hasInvalidTextSlotContent = false;
160
161
  /**
161
162
  * PUBLIC PROPERTY API
162
163
  * ------------------------------------------------------
@@ -347,12 +348,17 @@ const FileUpload = class {
347
348
  }
348
349
  connectedCallback() {
349
350
  this.initialValue = [...(this.value || [])];
351
+ this.disconnectInvalidTextSlotWatcher = watchInvalidTextSlot(this.el, hasContent => {
352
+ this.hasInvalidTextSlotContent = hasContent;
353
+ });
350
354
  }
351
355
  componentDidLoad() {
352
356
  this.addDragListeners();
353
357
  }
354
358
  disconnectedCallback() {
359
+ var _a;
355
360
  this.removeDragListeners();
361
+ (_a = this.disconnectInvalidTextSlotWatcher) === null || _a === void 0 ? void 0 : _a.call(this);
356
362
  }
357
363
  /**
358
364
  * LISTENERS
@@ -400,11 +406,12 @@ const FileUpload = class {
400
406
  const dropZoneLabel = this.dropZoneLabel || i18nDsFileUpload[this.language].dropZoneLabel;
401
407
  const selectedFilesLabel = i18nDsFileUpload[this.language].selectedFilesLabel;
402
408
  const removeFileLabel = i18nDsFileUpload[this.language].removeFileLabel;
403
- return (h(Field, { key: '0262acd3da4ebb07ab1207c456eb49e2b7abd638', color: this.color, disabled: this.disabled, invalid: this.invalid, label: this.label, description: this.description, invalidText: this.invalidText, required: this.required, language: this.language, inputId: this.fileUploadId }, h("div", { key: '53ef4c5d329415ccd17d0be52ab73aadd1845612', id: "drop-zone", part: "drop-zone", ref: el => (this.dropZoneEl = el), class: {
409
+ const isInvalid = this.invalid || this.hasInvalidTextSlotContent;
410
+ return (h(Field, { key: '264facee2060dc2a63d529c762384c93539994d3', color: this.color, disabled: this.disabled, invalid: isInvalid, label: this.label, description: this.description, invalidText: this.invalidText, required: this.required, language: this.language, inputId: this.fileUploadId }, h("div", { key: '16930c2a8604287d7d4514b0faabb7afabc213f6', id: "drop-zone", part: "drop-zone", ref: el => (this.dropZoneEl = el), class: {
404
411
  'file-upload-drop-zone': true,
405
412
  'is-dragover': this.isDragOver,
406
413
  'is-disabled': isDisabled,
407
- }, onClick: () => { var _a; return !isDisabled && ((_a = this.nativeInput) === null || _a === void 0 ? void 0 : _a.click()); } }, h("span", { key: 'a4a362449b720986bbd9d6d82032c0004c760b19', id: "drop-zone-status", role: "status", "aria-live": "polite" }, this.isDragOver ? 'Drop files here' : ''), h("input", { key: '456e17b2975c5ee0755b16d07a8ab3c2fa4f66d6', part: "input", ref: el => (this.nativeInput = el), id: this.fileUploadId, type: "file", name: this.name, multiple: this.multiple, disabled: isDisabled, required: this.required, accept: this.accept || undefined, "aria-invalid": this.invalid ? 'true' : 'false', "aria-describedby": "description", onClick: this.handleInputClick, onChange: this.handleInputChange, onFocus: this.handleInputFocus, onBlur: this.handleInputBlur, "data-testid": "ds-file-upload-input" }), h("div", { key: 'dfe3c5972da1593bef6c0aa94cc79851b6fe7b44', id: "drop-zone-content", class: { 'is-disabled': isDisabled } }, h("slot", { key: 'a76bb47e49f108cf9c054cba02a78110869870ce' }, h("div", { key: 'bc52009e955c1267d28f097a37e64019caaf364d', id: "drop-zone-placeholder", class: { 'is-disabled': isDisabled } }, !this.loading && h("ds-icon", { key: 'dcab355b1cb4a89a8c8b2d67e3ab3f22d4a0eb7a', name: "upload", size: "lg" }), this.loading && h("ds-spinner", { key: '8e5451696abcdb8679d6741b53ce8267234b6435', variation: "circle" }), h("span", { key: 'e7989e8a8d431d0cb3709e890929d9fc59f01fef' }, dropZoneLabel))))), this.hasFileList && this.files.length > 0 && (h("ul", { key: '973570b4094cad00ee06b6dd1ca4ffbc55e76fee', id: "file-list", part: "file-list", role: "list", "aria-label": selectedFilesLabel, class: {
414
+ }, onClick: () => { var _a; return !isDisabled && ((_a = this.nativeInput) === null || _a === void 0 ? void 0 : _a.click()); } }, h("span", { key: 'daf3fe680737e74fadd0304123b567fb29ddb677', id: "drop-zone-status", role: "status", "aria-live": "polite" }, this.isDragOver ? 'Drop files here' : ''), h("input", { key: 'b47ca36b002f49964c5dbacd01fba6726ac5d1ec', part: "input", ref: el => (this.nativeInput = el), id: this.fileUploadId, type: "file", name: this.name, multiple: this.multiple, disabled: isDisabled, required: this.required, accept: this.accept || undefined, "aria-invalid": isInvalid ? 'true' : 'false', "aria-describedby": "description", onClick: this.handleInputClick, onChange: this.handleInputChange, onFocus: this.handleInputFocus, onBlur: this.handleInputBlur, "data-testid": "ds-file-upload-input" }), h("div", { key: '26354b7f63a925ad4a9d9bf55636a16a53a14d97', id: "drop-zone-content", class: { 'is-disabled': isDisabled } }, h("slot", { key: '56d73b20cbf45122db3dbed32a3fc97b7e622fc1' }, h("div", { key: 'd295ffa0e196e8bd99a743b648c443fe8414f413', id: "drop-zone-placeholder", class: { 'is-disabled': isDisabled } }, !this.loading && h("ds-icon", { key: '6cb31c32f06b44142ff48a0f9a9bb9b088af26e6', name: "upload", size: "lg" }), this.loading && h("ds-spinner", { key: 'c7b165be814544ac85a80c34d260c03a7e416d5e', variation: "circle" }), h("span", { key: 'd9b6c717c0fc6891d53e76e53686ef3e402b3257' }, dropZoneLabel))))), this.hasFileList && this.files.length > 0 && (h("ul", { key: 'a9669c46401067ba400c9080f2907f43e66e7419', id: "file-list", part: "file-list", role: "list", "aria-label": selectedFilesLabel, class: {
408
415
  'file-list': true,
409
416
  'is-disabled': isDisabled,
410
417
  } }, this.files.map((file, index) => (h("li", { id: `file-list-item-${index}`, key: file.name, class: "file-list-item" }, h("ds-stack", { direction: "row", align: "center" }, h("ds-icon", { name: "document", size: "md" }), h("ds-content", { space: "none" }, h("span", { class: "file-name", title: file.name }, file.name), h("span", { class: "file-size" }, formatFileSize(file.size))), h("ds-button", { size: "sm", icon: "trash", square: true, color: "secondary", a11yLabel: `${removeFileLabel} ${file.name}`, disabled: isDisabled, onKeyDown: (ev) => {
@@ -1,14 +1,14 @@
1
1
  /*!
2
2
  * (C) Helvetia Design System https://design.baloise.dev/ - Apache License 2.0
3
3
  */
4
- import { B as registerInstance, I as createEvent, v as defaultConfig, E as h, F as Host, G as getElement } from './index-B-v2Wm-V.js';
5
- import { _ as __decorate, L as Logger, a as __metadata } from './tslib.es6-n47B6oUi.js';
4
+ import { B as registerInstance, I as createEvent, v as defaultConfig, E as h, F as Host, G as getElement } from './index-MUUOiuTm.js';
5
+ import { _ as __decorate, L as Logger, a as __metadata } from './tslib.es6-C7vR-gMn.js';
6
6
  import { i as i18nDsFooter, F as FOOTER_CONTAINERS } from './footer.i18n-BrJFPhMA.js';
7
- import { O as OneOf } from './one-of-CjRvS2Tk.js';
8
- import { T as Type } from './type-7qEQcw90.js';
9
- import { L as ListenToConfig } from './config.decorator-CRYVBTkX.js';
10
- import './create-validator-decorator-fUav5byo.js';
11
- import './config.utils-CR4Xudpz.js';
7
+ import { O as OneOf } from './one-of-rLykP5eX.js';
8
+ import { T as Type } from './type-Bqge296W.js';
9
+ import { L as ListenToConfig } from './config.decorator-CyvsD1EY.js';
10
+ import './create-validator-decorator-g9TfAa1g.js';
11
+ import './config.utils-Db2OSTX3.js';
12
12
 
13
13
  const footerHostCss = () => `:host{--_footer-position:var(--footer-position, var(--mod-footer-position, static));--_footer-top:var(--footer-top, var(--mod-footer-top));--_footer-right:var(--footer-right, var(--mod-footer-right));--_footer-bottom:var(--footer-bottom, var(--mod-footer-bottom));--_footer-left:var(--footer-left, var(--mod-footer-left));position:var(--_footer-position);top:var(--_footer-top);right:var(--_footer-right);bottom:var(--_footer-bottom);left:var(--_footer-left);--_footer-m:var(--footer-m, var(--mod-footer-m, 0));--_footer-my:var(--footer-my, var(--mod-footer-my));--_footer-mx:var(--footer-mx, var(--mod-footer-mx));--_footer-ml:var(--footer-ml, var(--mod-footer-ml));--_footer-mr:var(--footer-mr, var(--mod-footer-mr));--_footer-mt:var(--footer-mt, var(--mod-footer-mt));--_footer-mb:var(--footer-mb, var(--mod-footer-mb));margin:var(--_footer-m);margin-inline:var(--_footer-mx);margin-block:var(--_footer-my);margin-left:var(--_footer-ml);margin-right:var(--_footer-mr);margin-top:var(--_footer-mt);margin-bottom:var(--_footer-mb);--_footer-background:var(--footer-background, var(--mod-footer-background, var(--ds-footer-color-background)));--_footer-color:var(--footer-color, var(--mod-footer-color, var(--ds-footer-color-text)));--_footer-link-color:var(--footer-link-color, var(--mod-footer-link-color, var(--ds-footer-color-link-base)));--_footer-link-color-hover:var(--footer-link-color-hover, var(--mod-footer-link-color-hover, var(--ds-footer-color-link-hover)));--_footer-divider-color:var(--footer-divider-color, var(--mod-footer-divider-color, var(--ds-footer-color-divider)));--_footer-content-max-width:var(--footer-content-max-width, var(--mod-footer-content-max-width, var(--ds-footer-space-content-max-width)));--_footer-padding:var(--footer-padding, var(--mod-footer-padding, var(--ds-footer-space-padding-base)));--_footer-content-padding-top:var(--footer-content-padding-top, var(--mod-footer-content-padding-top, var(--ds-footer-space-content-padding-top)));--_footer-gap-row:var(--footer-gap-row, var(--mod-footer-gap-row, var(--ds-footer-space-gap-row)));--_footer-gap-column:var(--footer-gap-column, var(--mod-footer-gap-column, var(--ds-footer-space-gap-column)));--_footer-language-font-family:var(--footer-language-font-family, var(--mod-footer-language-font-family, var(--ds-footer-typography-language-family)));--_footer-language-font-weight:var(--footer-language-font-weight, var(--mod-footer-language-font-weight, var(--ds-footer-typography-language-weight)));--_footer-language-gap:var(--footer-language-gap, var(--mod-footer-language-gap, var(--ds-footer-space-language-gap)));--_footer-bottom-gap:var(--footer-bottom-gap, var(--mod-footer-bottom-gap, var(--ds-footer-space-bottom-gap)));--_footer-link-gap:var(--footer-link-gap, var(--mod-footer-link-gap, var(--ds-footer-space-link-gap)));--_footer-social-gap:var(--footer-social-gap, var(--mod-footer-social-gap, var(--ds-footer-space-social-gap)));--_footer-font-size:var(--footer-font-size, var(--mod-footer-font-size, var(--ds-footer-typography-font-size)));--_footer-line-height:var(--footer-line-height, var(--mod-footer-line-height, var(--ds-footer-typography-line-height)));--_footer-social-icon-size:var(--footer-social-icon-size, var(--mod-footer-social-icon-size, var(--ds-footer-space-social-icon-size)));--_footer-social-icon-gap:var(--footer-social-icon-gap, var(--mod-footer-social-icon-gap, var(--ds-footer-space-social-icon-gap)));--_footer-slotted-margin-right:var(--footer-slotted-margin-right, var(--mod-footer-slotted-margin-right, var(--ds-footer-space-slotted-margin-right)));margin:var(--_footer-m);margin-inline:var(--_footer-mx);margin-block:var(--_footer-my);margin-left:var(--_footer-ml);margin-right:var(--_footer-mr);margin-top:var(--_footer-mt);margin-bottom:var(--_footer-mb);position:var(--_footer-position);top:var(--_footer-top);right:var(--_footer-right);bottom:var(--_footer-bottom);left:var(--_footer-left);display:block;color:var(--_footer-color);background:var(--_footer-background)}footer{margin:0 auto;padding-block:var(--_footer-padding);padding-inline:var(--ds-alias-container-space-device);width:100%;max-width:var(--ds-alias-container-width-base)}footer.is-fluid{max-width:var(--ds-alias-container-width-fluid)}footer.is-compact{max-width:var(--ds-alias-container-width-compact)}.top-row{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:var(--_footer-gap-row) var(--_footer-gap-column);-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:start;align-items:flex-start}.logo-area{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.logo-link{display:-ms-inline-flexbox;display:inline-flex;color:inherit}.logo-svg{display:-ms-inline-flexbox;display:inline-flex}.language-picker{-ms-flex-align:center;align-items:center;border:0;color:var(--_footer-color);display:-ms-inline-flexbox;display:inline-flex;font-family:var(--_footer-language-font-family);font-weight:var(--_footer-language-font-weight);gap:var(--_footer-language-gap);margin:0 0 0 auto;max-width:100%;width:auto}.language-picker ds-icon{--icon-color:currentColor;-ms-flex-negative:0;flex-shrink:0}.language-picker select{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto;background:rgba(0,0,0,0);border:0;border-radius:0;color:inherit;cursor:pointer;-ms-flex:0 0 auto;flex:0 0 auto;font:inherit;line-height:1.3;min-width:auto;padding:0}.language-picker select:hover,.language-picker select:focus-visible{color:var(--_footer-link-color-hover)}.content{padding-top:var(--_footer-content-padding-top)}.bottom-row{display:grid;font-size:var(--_footer-font-size);gap:var(--_footer-bottom-gap);grid-template-columns:1fr;line-height:var(--_footer-line-height)}.legal{margin:0;font-size:var(--_footer-font-size);line-height:var(--_footer-line-height)}.links,.social{min-width:0}.link-list,.social-list{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:var(--_footer-link-gap);margin:0;padding:0}.social-list{gap:var(--_footer-social-gap)}.link-list li,.social-list li{list-style:none}.links a,::slotted([slot=links]){color:var(--_footer-link-color);text-decoration:none}.links a:hover,::slotted([slot=links]:hover){color:var(--_footer-link-color-hover);text-decoration:underline}.social a,::slotted([slot=social-links]){--icon-color:var(--ds-alias-text-color-white);--icon-size:var(--ds-icon-size-sm);-ms-flex-align:center;align-items:center;color:var(--_footer-link-color);display:-ms-inline-flexbox;display:inline-flex;height:var(--_footer-social-icon-size);-ms-flex-pack:center;justify-content:center;text-decoration:none;width:var(--_footer-social-icon-size)}.social a:hover,::slotted([slot=social-links]:hover){--icon-color:var(--_footer-link-color-hover);color:var(--_footer-link-color-hover)}::slotted([slot=links]),::slotted([slot=social-links]){margin-right:var(--_footer-slotted-margin-right)}@media screen and (min-width: 769px){.bottom-row{-ms-flex-align:start;align-items:start;grid-template-columns:1fr}.social,.links{justify-self:start}}@media screen and (min-width: 1024px){.bottom-row{-ms-flex-align:center;align-items:center;grid-template-columns:1fr auto;grid-template-areas:"legal social" "links links"}.legal{align-self:center;grid-area:legal}.social{align-self:center;grid-area:social;justify-self:end}.links{grid-area:links;justify-self:stretch;width:100%}}`;
14
14
 
@@ -1,13 +1,13 @@
1
1
  /*!
2
2
  * (C) Helvetia Design System https://design.baloise.dev/ - Apache License 2.0
3
3
  */
4
- import { B as registerInstance, d as dsBrowser, E as h, F as Host, G as getElement } from './index-B-v2Wm-V.js';
5
- import { _ as __decorate, L as Logger, a as __metadata } from './tslib.es6-n47B6oUi.js';
6
- import { h as hasValue } from './has-value-Dmsj8ZQw.js';
7
- import { c as HEADING_LEVELS, b as HEADING_VISUAL_LEVELS, d as HEADING_SPACES, H as HEADING_COLORS } from './heading.interfaces-Ceu7FIWM.js';
8
- import { O as OneOf } from './one-of-CjRvS2Tk.js';
9
- import { T as Type } from './type-7qEQcw90.js';
10
- import './create-validator-decorator-fUav5byo.js';
4
+ import { B as registerInstance, d as dsBrowser, E as h, F as Host, G as getElement } from './index-MUUOiuTm.js';
5
+ import { _ as __decorate, L as Logger, a as __metadata } from './tslib.es6-C7vR-gMn.js';
6
+ import { h as hasValue } from './has-value-CADjf9QZ.js';
7
+ import { c as HEADING_LEVELS, b as HEADING_VISUAL_LEVELS, d as HEADING_SPACES, H as HEADING_COLORS } from './heading.interfaces-BdLq-Ecc.js';
8
+ import { O as OneOf } from './one-of-rLykP5eX.js';
9
+ import { T as Type } from './type-Bqge296W.js';
10
+ import './create-validator-decorator-g9TfAa1g.js';
11
11
 
12
12
  const HEADING_TAG_MAP = {
13
13
  'display': 'h1',
@@ -58,29 +58,19 @@ const HEADING_COLOR_MAP = {
58
58
  white: 'white',
59
59
  };
60
60
 
61
- const headingHostCss = () => `:host{--_heading-position:var(--heading-position, var(--mod-heading-position, static));--_heading-top:var(--heading-top, var(--mod-heading-top));--_heading-right:var(--heading-right, var(--mod-heading-right));--_heading-bottom:var(--heading-bottom, var(--mod-heading-bottom));--_heading-left:var(--heading-left, var(--mod-heading-left));position:var(--_heading-position);top:var(--_heading-top);right:var(--_heading-right);bottom:var(--_heading-bottom);left:var(--_heading-left);--_heading-m:var(--heading-m, var(--mod-heading-m, 0));--_heading-my:var(--heading-my, var(--mod-heading-my));--_heading-mx:var(--heading-mx, var(--mod-heading-mx));--_heading-ml:var(--heading-ml, var(--mod-heading-ml));--_heading-mr:var(--heading-mr, var(--mod-heading-mr));--_heading-mt:var(--heading-mt, var(--mod-heading-mt));--_heading-mb:var(--heading-mb, var(--mod-heading-mb));margin:var(--_heading-m);margin-inline:var(--_heading-mx);margin-block:var(--_heading-my);margin-left:var(--_heading-ml);margin-right:var(--_heading-mr);margin-top:var(--_heading-mt);margin-bottom:var(--_heading-mb);--_heading-color:var(--heading-color, var(--mod-heading-color, inherit));--_heading-family:var(--heading-family, var(--mod-heading-family, var(--ds-heading-family)));--_heading-weight:var(--heading-weight, var(--mod-heading-weight, var(--ds-heading-weight)));--_heading-line-height:var(--heading-line-height, var(--mod-heading-line-height, var(--ds-heading-line-height)));--_heading-font-size:var(--heading-font-size, var(--mod-heading-font-size, var(--ds-heading-1-size-device)));--_heading-space:var(--heading-space, var(--mod-heading-space, var(--ds-heading-1-space)));--_heading-shadow:var(--heading-shadow, var(--mod-heading-shadow, none));--_heading-text-align:var(--heading-text-align, var(--mod-heading-text-align, inherit))}:host{--_heading-color:var(--heading-color, var(--mod-heading-color, inherit));--_heading-family:var(--heading-family, var(--mod-heading-family, var(--ds-heading-family)));--_heading-weight:var(--heading-weight, var(--mod-heading-weight, var(--ds-heading-weight)));--_heading-line-height:var(--heading-line-height, var(--mod-heading-line-height, var(--ds-heading-line-height)));--_heading-font-size:var(--heading-font-size, var(--mod-heading-font-size, var(--_heading-font-size, var(--ds-heading-1-size-device))));--_heading-shadow:var(--heading-shadow, var(--mod-heading-shadow, none));--_heading-text-align:var(--heading-text-align, var(--mod-heading-text-align, inherit))}#heading{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;-webkit-box-sizing:content-box;box-sizing:content-box;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;overflow-wrap:break-word;text-wrap:balance;color:var(--_heading-color);font-family:var(--_heading-family);font-weight:var(--_heading-weight);font-size:var(--_heading-font-size);line-height:var(--_heading-line-height);text-align:var(--_heading-text-align);text-shadow:var(--_heading-shadow)}#heading em:not(.text),#heading span:not(.text){font-weight:inherit}#heading b,#heading strong,#heading .is-bold{font-weight:var(--ds-alias-text-weight-bold)}:host(.has-no-wrap) #heading{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}:host(.has-shadow){--mod-heading-shadow:var(--ds-heading-shadow)}:host(.is-subtitle){--mod-heading-family:var(--ds-heading-subtitle-family);--mod-heading-weight:var(--ds-heading-subtitle-weight);--mod-heading-line-height:var(--ds-heading-subtitle-line-height)}:host(.is-primary){--mod-heading-color:var(--ds-heading-color-primary)}:host(.is-success){--mod-heading-color:var(--ds-heading-color-success)}:host(.is-warning){--mod-heading-color:var(--ds-heading-color-warning)}:host(.is-danger){--mod-heading-color:var(--ds-heading-color-danger)}:host(.is-white){--mod-heading-color:var(--ds-heading-color-white)}:host(.is-black){--mod-heading-color:var(--ds-heading-color-black)}:host(.is-3xl){--mod-heading-font-size:var(--ds-heading-1-size-device);--mod-heading-space:var(--ds-heading-1-space)}:host(.is-2xl){--mod-heading-font-size:var(--ds-heading-2-size-device);--mod-heading-space:var(--ds-heading-2-space)}:host(.is-xl){--mod-heading-font-size:var(--ds-heading-3-size-device);--mod-heading-space:var(--ds-heading-3-space)}:host(.is-lg){--mod-heading-font-size:var(--ds-heading-4-size-device);--mod-heading-space:var(--ds-heading-4-space)}:host(.is-base){--mod-heading-font-size:var(--ds-heading-5-size-device);--mod-heading-space:var(--ds-heading-5-space)}:host(.is-5xl){--mod-heading-font-size:var(--ds-heading-display1-size-device);--mod-heading-space:var(--ds-heading-display1-space)}:host(.is-4xl){--mod-heading-font-size:var(--ds-heading-display2-size-device);--mod-heading-space:var(--ds-heading-display2-space)}:host(.has-space-all){--heading-mt:var(--_heading-space);--heading-mb:var(--_heading-space)}:host(.has-space-top){--heading-mt:var(--_heading-space);--heading-mb:0}:host(.has-space-bottom){--heading-mt:0;--heading-mb:var(--_heading-space)}:host(.has-space-none){--heading-mt:0;--heading-mb:0}:host{display:block}`;
61
+ const headingHostCss = () => `:host{--_heading-position:var(--heading-position, var(--mod-heading-position, static));--_heading-top:var(--heading-top, var(--mod-heading-top));--_heading-right:var(--heading-right, var(--mod-heading-right));--_heading-bottom:var(--heading-bottom, var(--mod-heading-bottom));--_heading-left:var(--heading-left, var(--mod-heading-left));position:var(--_heading-position);top:var(--_heading-top);right:var(--_heading-right);bottom:var(--_heading-bottom);left:var(--_heading-left);--_heading-m:var(--heading-m, var(--mod-heading-m, 0));--_heading-my:var(--heading-my, var(--mod-heading-my));--_heading-mx:var(--heading-mx, var(--mod-heading-mx));--_heading-ml:var(--heading-ml, var(--mod-heading-ml));--_heading-mr:var(--heading-mr, var(--mod-heading-mr));--_heading-mt:var(--heading-mt, var(--mod-heading-mt));--_heading-mb:var(--heading-mb, var(--mod-heading-mb));margin:var(--_heading-m);margin-inline:var(--_heading-mx);margin-block:var(--_heading-my);margin-left:var(--_heading-ml);margin-right:var(--_heading-mr);margin-top:var(--_heading-mt);margin-bottom:var(--_heading-mb);--_heading-color:var(--heading-color, var(--mod-heading-color, inherit));--_heading-family:var(--heading-family, var(--mod-heading-family, var(--ds-heading-font-family)));--_heading-weight:var(--heading-weight, var(--mod-heading-weight, var(--ds-heading-font-weight)));--_heading-line-height:var(--heading-line-height, var(--mod-heading-line-height, var(--ds-heading-line-height)));--_heading-font-size:var(--heading-font-size, var(--mod-heading-font-size, var(--ds-heading-1-size-device)));--_heading-space:var(--heading-space, var(--mod-heading-space, var(--ds-heading-1-space)));--_heading-shadow:var(--heading-shadow, var(--mod-heading-shadow, none));--_heading-text-align:var(--heading-text-align, var(--mod-heading-text-align, inherit))}#heading{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;-webkit-box-sizing:content-box;box-sizing:content-box;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;overflow-wrap:break-word;text-wrap:balance;color:var(--_heading-color);font-family:var(--_heading-family);font-weight:var(--_heading-weight);font-size:var(--_heading-font-size);line-height:var(--_heading-line-height);text-align:var(--_heading-text-align);text-shadow:var(--_heading-shadow)}#heading em:not(.text),#heading span:not(.text){font-weight:inherit}#heading b,#heading strong,#heading .is-bold{font-weight:var(--ds-alias-text-weight-bold)}:host(.has-no-wrap) #heading{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}:host(.has-shadow){--mod-heading-shadow:var(--ds-heading-shadow)}:host(.is-subtitle){--mod-heading-family:var(--ds-heading-subtitle-font-family);--mod-heading-weight:var(--ds-heading-subtitle-font-weight);--mod-heading-line-height:var(--ds-heading-subtitle-line-height)}:host(.is-primary){--mod-heading-color:var(--ds-heading-primary-color-base)}:host(.is-success){--mod-heading-color:var(--ds-heading-success-color-base)}:host(.is-warning){--mod-heading-color:var(--ds-heading-warning-color-base)}:host(.is-danger){--mod-heading-color:var(--ds-heading-danger-color-base)}:host(.is-white){--mod-heading-color:var(--ds-heading-white-color-base)}:host(.is-black){--mod-heading-color:var(--ds-heading-black-color-base)}:host(.is-3xl){--mod-heading-font-size:var(--ds-heading-1-size-device);--mod-heading-space:var(--ds-heading-1-space)}:host(.is-2xl){--mod-heading-font-size:var(--ds-heading-2-size-device);--mod-heading-space:var(--ds-heading-2-space)}:host(.is-xl){--mod-heading-font-size:var(--ds-heading-3-size-device);--mod-heading-space:var(--ds-heading-3-space)}:host(.is-lg){--mod-heading-font-size:var(--ds-heading-4-size-device);--mod-heading-space:var(--ds-heading-4-space)}:host(.is-base){--mod-heading-font-size:var(--ds-heading-5-size-device);--mod-heading-space:var(--ds-heading-5-space)}:host(.is-5xl){--mod-heading-font-size:var(--ds-heading-display-1-size-device);--mod-heading-space:var(--ds-heading-display-1-space)}:host(.is-4xl){--mod-heading-font-size:var(--ds-heading-display-2-size-device);--mod-heading-space:var(--ds-heading-display-2-space)}:host(.has-space-all){--heading-mt:var(--_heading-space);--heading-mb:var(--_heading-space)}:host(.has-space-top){--heading-mt:var(--_heading-space);--heading-mb:0}:host(.has-space-bottom){--heading-mt:0;--heading-mb:var(--_heading-space)}:host(.has-space-none){--heading-mt:0;--heading-mb:0}:host{display:block}`;
62
62
 
63
63
  const Heading = class {
64
64
  constructor(hostRef) {
65
65
  registerInstance(this, hostRef);
66
66
  /**
67
67
  * PUBLIC PROPERTY API
68
- * ------------------------------------------------------
68
+ * ─────────────────────────────────────────────────────
69
69
  */
70
70
  /**
71
71
  * The actual heading level used in the HTML markup.
72
72
  */
73
73
  this.level = 'h1';
74
- /**
75
- * Make the visual style mimic a specific heading level.
76
- * This option allows you to make e.g. h1 visually look like h3,
77
- * but still keep it h1 in the markup.
78
- */
79
- this.visualLevel = '';
80
- /**
81
- * The actual heading level used in the HTML markup.
82
- */
83
- this.autoLevel = '';
84
74
  /**
85
75
  * When true, the text will be truncated with a text overflow ellipsis instead of wrapping.
86
76
  * Please note that text overflow can only occur in block or inline-block level elements,
@@ -91,14 +81,6 @@ const Heading = class {
91
81
  * If `true` the heading gets displayed slimmer.
92
82
  */
93
83
  this.subtitle = false;
94
- /**
95
- * Defines at which position the heading has spacing.
96
- */
97
- this.space = '';
98
- /**
99
- * The theme type of the toast.
100
- */
101
- this.color = '';
102
84
  /**
103
85
  * If `true` the color gets inverted for dark backgrounds
104
86
  */
@@ -122,16 +104,17 @@ const Heading = class {
122
104
  }
123
105
  /**
124
106
  * LIFECYCLE
125
- * ------------------------------------------------------
107
+ * ─────────────────────────────────────────────────────
126
108
  */
127
- connectedCallback() {
109
+ componentWillLoad() {
128
110
  this.updateAutoFontSize();
129
111
  }
130
112
  componentDidRender() {
131
- if (hasValue(this.autoLevel) && this.autoFontSize) {
113
+ const autoLevel = this.autoLevel;
114
+ if (autoLevel && this.autoFontSize) {
132
115
  const rows = this.rows;
133
116
  if (rows > 1) {
134
- const minSize = HEADING_SIZES[this.autoLevel];
117
+ const minSize = HEADING_SIZES[autoLevel];
135
118
  if (minSize !== this.autoFontSize) {
136
119
  const nextIndex = HEADING_ORDER.indexOf(this.autoFontSize) + 1;
137
120
  this.autoFontSize = HEADING_ORDER[nextIndex];
@@ -143,8 +126,8 @@ const Heading = class {
143
126
  this.autoFontSize = this.fontSize;
144
127
  }
145
128
  /**
146
- * GETTERS
147
- * ------------------------------------------------------
129
+ * PRIVATE METHODS
130
+ * ─────────────────────────────────────────────────────
148
131
  */
149
132
  get rows() {
150
133
  if (this.headingEl && dsBrowser.hasWindow) {
@@ -159,7 +142,8 @@ const Heading = class {
159
142
  if (this.inverted) {
160
143
  return 'white';
161
144
  }
162
- return hasValue(this.color) ? HEADING_COLOR_MAP[this.color] : '';
145
+ const color = this.color;
146
+ return color ? HEADING_COLOR_MAP[color] : undefined;
163
147
  }
164
148
  get fontSize() {
165
149
  return HEADING_SIZES[this.visualLevel ? this.visualLevel : this.level];
@@ -169,18 +153,18 @@ const Heading = class {
169
153
  }
170
154
  /**
171
155
  * RENDER
172
- * ------------------------------------------------------
156
+ * ─────────────────────────────────────────────────────
173
157
  */
174
158
  render() {
175
159
  const Heading = this.tag;
176
- return (h(Host, { key: 'dd9df7b068c6a489c4a56437a19e6f7a27a1c1ea', class: {
160
+ return (h(Host, { key: 'dd934a29bc764a7970f7c59a356d67f570631036', class: {
177
161
  [`is-${this.autoFontSize}`]: this.autoFontSize !== undefined,
178
162
  [`is-${this.fontColor}`]: hasValue(this.fontColor),
179
163
  'is-subtitle': this.subtitle,
180
164
  'has-no-wrap': this.noWrap,
181
165
  'has-shadow': this.shadow,
182
166
  [`has-space-${this.space}`]: hasValue(this.space),
183
- } }, h(Heading, { key: 'e437b9f774f324b5628d002210b1af6763cc9dc8', id: "heading", part: "heading", ref: (headingEl) => (this.headingEl = headingEl) }, h("slot", { key: '61234ad53aa55043c4982b94e40155fb5b40b69b' }))));
167
+ } }, h(Heading, { key: 'b468e6437329a02b4878120e06d102abb8732cd3', id: "heading", part: "heading", ref: (headingEl) => (this.headingEl = headingEl) }, h("slot", { key: '594a1766c31537f993ae8af98b402f097834750b' }))));
184
168
  }
185
169
  get el() { return getElement(this); }
186
170
  static get watchers() { return {
@@ -1,8 +1,8 @@
1
1
  /*!
2
2
  * (C) Helvetia Design System https://design.baloise.dev/ - Apache License 2.0
3
3
  */
4
- import { B as registerInstance, E as h, F as Host, G as getElement } from './index-B-v2Wm-V.js';
5
- import { _ as __decorate, L as Logger, a as __metadata } from './tslib.es6-n47B6oUi.js';
4
+ import { B as registerInstance, E as h, F as Host, G as getElement } from './index-MUUOiuTm.js';
5
+ import { _ as __decorate, L as Logger, a as __metadata } from './tslib.es6-C7vR-gMn.js';
6
6
 
7
7
  const HintText = class {
8
8
  constructor(hostRef) {
@@ -1,8 +1,8 @@
1
1
  /*!
2
2
  * (C) Helvetia Design System https://design.baloise.dev/ - Apache License 2.0
3
3
  */
4
- import { B as registerInstance, E as h, F as Host, G as getElement } from './index-B-v2Wm-V.js';
5
- import { _ as __decorate, L as Logger, a as __metadata } from './tslib.es6-n47B6oUi.js';
4
+ import { B as registerInstance, E as h, F as Host, G as getElement } from './index-MUUOiuTm.js';
5
+ import { _ as __decorate, L as Logger, a as __metadata } from './tslib.es6-C7vR-gMn.js';
6
6
 
7
7
  const HintTitle = class {
8
8
  constructor(hostRef) {
@@ -1,19 +1,19 @@
1
1
  /*!
2
2
  * (C) Helvetia Design System https://design.baloise.dev/ - Apache License 2.0
3
3
  */
4
- import { B as registerInstance, v as defaultConfig, E as h, F as Host, G as getElement } from './index-B-v2Wm-V.js';
5
- import { _ as __decorate, L as Logger, a as __metadata } from './tslib.es6-n47B6oUi.js';
4
+ import { B as registerInstance, v as defaultConfig, E as h, F as Host, G as getElement } from './index-MUUOiuTm.js';
5
+ import { _ as __decorate, L as Logger, a as __metadata } from './tslib.es6-C7vR-gMn.js';
6
6
  import { i as isEscapeKey } from './keyboard-Uy_dVz21.js';
7
7
  import { P as POPUP_PLACEMENTS } from './popup.interfaces-BAY6Z8bT.js';
8
- import { L as ListenToBreakpoints } from './breakpoints.decorator-D9M4v98c.js';
9
- import { O as OneOf } from './one-of-CjRvS2Tk.js';
10
- import { T as Type } from './type-7qEQcw90.js';
11
- import { L as ListenToConfig } from './config.decorator-CRYVBTkX.js';
12
- import './breakpoints.subject-DHZ7TzYV.js';
13
- import './listener-DIZDQOuO.js';
14
- import './device-CapioAfe.js';
15
- import './create-validator-decorator-fUav5byo.js';
16
- import './config.utils-CR4Xudpz.js';
8
+ import { L as ListenToBreakpoints } from './breakpoints.decorator-CIweMjJQ.js';
9
+ import { O as OneOf } from './one-of-rLykP5eX.js';
10
+ import { T as Type } from './type-Bqge296W.js';
11
+ import { L as ListenToConfig } from './config.decorator-CyvsD1EY.js';
12
+ import './breakpoints.subject-CUVOWezN.js';
13
+ import './listener-DiVrGAqj.js';
14
+ import './device-CtidwsPr.js';
15
+ import './create-validator-decorator-g9TfAa1g.js';
16
+ import './config.utils-Db2OSTX3.js';
17
17
 
18
18
  const i18nDsHint = {
19
19
  de: {