@baloise/ds-core 20.0.0-next.6 → 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 (568) hide show
  1. package/components/all.d.ts +2 -0
  2. package/components/all.js +3 -0
  3. package/components/ds-accordion.js +1 -1
  4. package/components/ds-app.js +1 -1
  5. package/components/ds-badge.js +1 -1
  6. package/components/ds-button-group.js +1 -1
  7. package/components/ds-button.js +1 -1
  8. package/components/ds-card-actions.js +1 -1
  9. package/components/ds-card-content.js +1 -1
  10. package/components/ds-card-subtitle.js +1 -1
  11. package/components/ds-card-title.js +1 -1
  12. package/components/ds-card.js +1 -1
  13. package/components/ds-carousel.js +1 -1
  14. package/components/ds-checkbox-group.js +1 -1
  15. package/components/ds-checkbox.js +1 -1
  16. package/components/ds-close.js +1 -1
  17. package/components/ds-content.js +1 -1
  18. package/components/ds-data-item.js +1 -1
  19. package/components/ds-date.js +1 -1
  20. package/components/ds-drawer.js +1 -1
  21. package/components/ds-file-upload.js +1 -1
  22. package/components/ds-footer.js +1 -1
  23. package/components/ds-heading.js +1 -1
  24. package/components/ds-hint.js +1 -1
  25. package/components/ds-icon.js +1 -1
  26. package/components/ds-input-slider.d.ts +11 -0
  27. package/components/ds-input-slider.js +4 -0
  28. package/components/ds-input.js +1 -1
  29. package/components/ds-item.js +1 -1
  30. package/components/ds-label.js +1 -1
  31. package/components/ds-list.js +1 -1
  32. package/components/ds-logo.js +1 -1
  33. package/components/ds-modal-body.js +1 -1
  34. package/components/ds-modal-header.js +1 -1
  35. package/components/ds-modal.js +1 -1
  36. package/components/ds-navbar.js +1 -1
  37. package/components/ds-notification.js +1 -1
  38. package/components/ds-number-input.js +1 -1
  39. package/components/ds-pagination.js +1 -1
  40. package/components/ds-popup.js +1 -1
  41. package/components/ds-progress-bar.js +1 -1
  42. package/components/ds-radio-group.js +1 -1
  43. package/components/ds-radio.js +1 -1
  44. package/components/ds-segment-item.js +1 -1
  45. package/components/ds-segment.js +1 -1
  46. package/components/ds-select-optgroup.js +1 -1
  47. package/components/ds-select-option.js +1 -1
  48. package/components/ds-select.js +1 -1
  49. package/components/ds-shape.js +1 -1
  50. package/components/ds-snackbar.js +1 -1
  51. package/components/ds-spinner.js +1 -1
  52. package/components/ds-stack.js +1 -1
  53. package/components/ds-step-panel.js +1 -1
  54. package/components/ds-step.js +1 -1
  55. package/components/ds-tab-panel.js +1 -1
  56. package/components/ds-tabs.js +1 -1
  57. package/components/ds-tag-group.js +1 -1
  58. package/components/ds-tag.js +1 -1
  59. package/components/ds-text.js +1 -1
  60. package/components/ds-textarea.js +1 -1
  61. package/components/ds-toast.js +1 -1
  62. package/components/ds-toggle.js +1 -1
  63. package/components/ds-tooltip.js +1 -1
  64. package/components/index.js +1 -1
  65. package/components/{p-DenZRIeA.js → p-BXJT6RzI.js} +1 -1
  66. package/components/p-BdLq-Ecc.js +4 -0
  67. package/components/{p-CjIxf5zy.js → p-BmKEBYP4.js} +1 -1
  68. package/components/p-BoWAkGY5.js +4 -0
  69. package/components/{p-DYTOWDAA.js → p-CTbJFS-e.js} +1 -1
  70. package/components/{p-DokkRjWC.js → p-CaMOovXn.js} +1 -1
  71. package/components/p-Ce8PV2ZO.js +4 -0
  72. package/components/p-CmBtAxar.js +4 -0
  73. package/components/p-D8gpyiFZ.js +4 -0
  74. package/components/{p-ng5ZzTOj.js → p-DBX_haol.js} +1 -1
  75. package/components/{p-BfXZJ1Fe.js → p-DPbhygsR.js} +1 -1
  76. package/components/{p-BU0dY8pq.js → p-DZzsZ_YH.js} +1 -1
  77. package/components/p-DbUsvqrz.js +4 -0
  78. package/components/p-Dbqy6lZU.js +5 -0
  79. package/{dist/design-system/p-BATOumsf.js → components/p-fS80bKHo.js} +1 -1
  80. package/components/{p-bGV2P6rT.js → p-hPpcXLRP.js} +1 -1
  81. package/components/p-o0H7eIVX.js +4 -0
  82. package/components/p-std0LSH2.js +4 -0
  83. package/components/{p-Btdh3fq7.js → p-u5aa74vh.js} +1 -1
  84. package/components/p-wud2RGEy.js +4 -0
  85. package/dist/cjs/{_getTag-B468r9bu.js → _getTag-DxZgmSPS.js} +1 -1
  86. package/dist/cjs/{array-CioNm_V1.js → array-CYn4ALBt.js} +10 -9
  87. package/dist/cjs/{breakpoints.decorator-C-Qm21UK.js → breakpoints.decorator-DbttiLa9.js} +1 -1
  88. package/dist/cjs/{breakpoints.subject-XNcGwhzh.js → breakpoints.subject-CNyiZaBe.js} +3 -3
  89. package/dist/cjs/{button.interfaces-CqlUGR-N.js → button.interfaces-BKyK0H_f.js} +0 -1
  90. package/dist/cjs/{config.decorator-ThGLtT-3.js → config.decorator-bU7c6ybP.js} +1 -1
  91. package/dist/cjs/{config.utils-MhZvq4Qm.js → config.utils-BhJig3l5.js} +1 -1
  92. package/dist/cjs/{create-validator-decorator-BIgFqrMJ.js → create-validator-decorator-CiRieHJL.js} +1 -1
  93. package/dist/cjs/design-system.cjs.js +2 -2
  94. package/dist/cjs/{device-BnjBOLnP.js → device-DM1GXL99.js} +1 -1
  95. package/dist/cjs/ds-accordion.cjs.entry.js +9 -9
  96. package/dist/cjs/ds-alert-container.cjs.entry.js +6 -6
  97. package/dist/cjs/ds-app.cjs.entry.js +35 -8
  98. package/dist/cjs/ds-badge.cjs.entry.js +20 -39
  99. package/dist/cjs/ds-button-group.cjs.entry.js +7 -7
  100. package/dist/cjs/ds-button_2.cjs.entry.js +20 -20
  101. package/dist/cjs/ds-card-actions.cjs.entry.js +4 -4
  102. package/dist/cjs/ds-card-content.cjs.entry.js +3 -3
  103. package/dist/cjs/ds-card-header.cjs.entry.js +5 -5
  104. package/dist/cjs/ds-card-subtitle.cjs.entry.js +10 -14
  105. package/dist/cjs/ds-card-title.cjs.entry.js +8 -14
  106. package/dist/cjs/ds-card.cjs.entry.js +14 -13
  107. package/dist/cjs/ds-carousel-item.cjs.entry.js +6 -6
  108. package/dist/cjs/ds-carousel.cjs.entry.js +8 -8
  109. package/dist/cjs/ds-checkbox-group.cjs.entry.js +44 -19
  110. package/dist/cjs/ds-checkbox.cjs.entry.js +19 -10
  111. package/dist/cjs/ds-content_2.cjs.entry.js +18 -68
  112. package/dist/cjs/ds-data-item.cjs.entry.js +6 -6
  113. package/dist/cjs/ds-data-label.cjs.entry.js +4 -4
  114. package/dist/cjs/ds-data-value.cjs.entry.js +2 -2
  115. package/dist/cjs/ds-data.cjs.entry.js +4 -4
  116. package/dist/cjs/ds-date.cjs.entry.js +18 -12
  117. package/dist/cjs/ds-divider_2.cjs.entry.js +14 -14
  118. package/dist/cjs/ds-drawer_2.cjs.entry.js +10 -10
  119. package/dist/cjs/ds-file-upload.cjs.entry.js +22 -14
  120. package/dist/cjs/ds-footer.cjs.entry.js +7 -7
  121. package/dist/cjs/ds-heading.cjs.entry.js +21 -37
  122. package/dist/cjs/ds-hint-text.cjs.entry.js +2 -2
  123. package/dist/cjs/ds-hint-title.cjs.entry.js +2 -2
  124. package/dist/cjs/ds-hint.cjs.entry.js +11 -11
  125. package/dist/cjs/ds-icon_2.cjs.entry.js +23 -26
  126. package/dist/cjs/ds-input-slider.cjs.entry.js +2892 -0
  127. package/dist/cjs/ds-input.cjs.entry.js +20 -11
  128. package/dist/cjs/ds-item.cjs.entry.js +7 -7
  129. package/dist/cjs/ds-label.cjs.entry.js +11 -11
  130. package/dist/cjs/ds-list.cjs.entry.js +5 -5
  131. package/dist/cjs/ds-modal-body.cjs.entry.js +3 -3
  132. package/dist/cjs/ds-modal-header.cjs.entry.js +3 -3
  133. package/dist/cjs/ds-modal.cjs.entry.js +9 -9
  134. package/dist/cjs/ds-navbar.cjs.entry.js +17 -17
  135. package/dist/cjs/ds-notification.cjs.entry.js +11 -11
  136. package/dist/cjs/ds-number-input.cjs.entry.js +31 -117
  137. package/dist/cjs/ds-pagination.cjs.entry.js +17 -17
  138. package/dist/cjs/ds-progress-bar.cjs.entry.js +14 -14
  139. package/dist/cjs/ds-radio-group.cjs.entry.js +39 -15
  140. package/dist/cjs/ds-radio.cjs.entry.js +19 -10
  141. package/dist/cjs/ds-segment-item.cjs.entry.js +5 -5
  142. package/dist/cjs/ds-segment.cjs.entry.js +21 -15
  143. package/dist/cjs/ds-select-optgroup.cjs.entry.js +5 -5
  144. package/dist/cjs/ds-select-option.cjs.entry.js +5 -5
  145. package/dist/cjs/ds-select.cjs.entry.js +18 -13
  146. package/dist/cjs/ds-shape.cjs.entry.js +5 -5
  147. package/dist/cjs/ds-snackbar.cjs.entry.js +14 -14
  148. package/dist/cjs/ds-step-panel.cjs.entry.js +6 -6
  149. package/dist/cjs/ds-step.cjs.entry.js +5 -5
  150. package/dist/cjs/ds-steps.cjs.entry.js +6 -6
  151. package/dist/cjs/ds-tab-panel.cjs.entry.js +6 -6
  152. package/dist/cjs/ds-tab.cjs.entry.js +5 -5
  153. package/dist/cjs/ds-tabs.cjs.entry.js +12 -12
  154. package/dist/cjs/ds-tag-group.cjs.entry.js +3 -3
  155. package/dist/cjs/ds-tag.cjs.entry.js +9 -9
  156. package/dist/cjs/ds-text.cjs.entry.js +10 -10
  157. package/dist/cjs/ds-textarea.cjs.entry.js +19 -10
  158. package/dist/cjs/ds-toast.cjs.entry.js +12 -12
  159. package/dist/cjs/ds-toggle.cjs.entry.js +7 -7
  160. package/dist/cjs/ds-tooltip.cjs.entry.js +5 -5
  161. package/dist/cjs/{field.util-L-DkeMVk.js → field.util-C7hgA41e.js} +32 -2
  162. package/dist/cjs/{focus-D3VVgpM7.js → focus-CHzvkERd.js} +1 -1
  163. package/dist/cjs/{form-control-CtMcJUuC.js → form-control-CmRONWa7.js} +1 -1
  164. package/dist/cjs/{has-value-DK0oRqXI.js → has-value-3s9rhB3K.js} +1 -1
  165. package/dist/cjs/{heading.interfaces-B5NJ2yjL.js → heading.interfaces-CAc5LNKb.js} +2 -3
  166. package/dist/cjs/{index-sC3JnTlJ.js → index-DD7qcaNz.js} +80 -1
  167. package/dist/cjs/index.cjs.js +7 -7
  168. package/dist/cjs/isArray-DvQst6zQ.js +42 -0
  169. package/dist/cjs/isNaN-DOSPWDkt.js +106 -0
  170. package/dist/cjs/{isObjectLike-h-ta_ikf.js → isObjectLike-BNz6hnAu.js} +0 -37
  171. package/dist/cjs/{listener-BwB_xent.js → listener-CAzIWSXQ.js} +1 -1
  172. package/dist/cjs/loader.cjs.js +2 -2
  173. package/dist/cjs/{one-of-BZGRIMtQ.js → one-of-xdIxH9e7.js} +1 -1
  174. package/dist/cjs/{required-COz3Unzu.js → required-Dh6TQNa1.js} +1 -1
  175. package/dist/cjs/{resize.decorator-DWM_fQgv.js → resize.decorator-C53-TjuS.js} +2 -2
  176. package/dist/cjs/{scroll-CUuEh4xd.js → scroll-BOeiw1-E.js} +1 -1
  177. package/dist/cjs/{svg-D9RbiR8R.js → svg-B9eUbG7a.js} +96 -33
  178. package/dist/cjs/{tslib.es6-CxyosZMg.js → tslib.es6-DMgN1vwG.js} +1 -1
  179. package/dist/cjs/{type-hmc4CJcO.js → type-BcP2cAG-.js} +1 -1
  180. package/dist/collection/collection-manifest.json +1 -0
  181. package/dist/collection/components/accordion/accordion.host.css +1 -1
  182. package/dist/collection/components/alert/snackbar/snackbar.host.css +1 -1
  183. package/dist/collection/components/alert/toast/toast.host.css +1 -1
  184. package/dist/collection/components/app/app.js +30 -3
  185. package/dist/collection/components/badge/badge.host.css +1 -1
  186. package/dist/collection/components/badge/badge.interfaces.js +3 -3
  187. package/dist/collection/components/badge/badge.js +20 -42
  188. package/dist/collection/components/button/button.interfaces.js +0 -1
  189. package/dist/collection/components/button/button.js +1 -1
  190. package/dist/collection/components/card/card-content/card-content.host.css +1 -1
  191. package/dist/collection/components/card/card-subtitle/card-subtitle.js +6 -11
  192. package/dist/collection/components/card/card-title/card-title.js +4 -11
  193. package/dist/collection/components/card/card.host.css +1 -1
  194. package/dist/collection/components/card/card.js +10 -9
  195. package/dist/collection/components/checkbox/checkbox-group/checkbox-group.js +54 -8
  196. package/dist/collection/components/checkbox/checkbox.host.css +1 -1
  197. package/dist/collection/components/checkbox/checkbox.js +31 -2
  198. package/dist/collection/components/checkbox/test/checkbox.visual.play.js +4 -0
  199. package/dist/collection/components/close/close.host.css +1 -1
  200. package/dist/collection/components/close/close.interfaces.js +1 -1
  201. package/dist/collection/components/close/close.js +14 -16
  202. package/dist/collection/components/content/content.host.css +1 -1
  203. package/dist/collection/components/content/content.interfaces.js +2 -3
  204. package/dist/collection/components/content/content.js +21 -60
  205. package/dist/collection/components/date/date.js +12 -4
  206. package/dist/collection/components/date/test/date.visual.play.js +1 -0
  207. package/dist/collection/components/file-upload/file-upload.js +13 -4
  208. package/dist/collection/components/file-upload/test/file-upload.visual.play.js +10 -1
  209. package/dist/collection/components/heading/heading.host.css +1 -1
  210. package/dist/collection/components/heading/heading.interfaces.js +2 -3
  211. package/dist/collection/components/heading/heading.js +25 -45
  212. package/dist/collection/components/input/field.util.js +1 -1
  213. package/dist/collection/components/input/input.js +14 -3
  214. package/dist/collection/components/input/test/input.visual.play.js +2 -1
  215. package/dist/collection/components/input-slider/input-slider.host.css +1 -0
  216. package/dist/collection/components/input-slider/input-slider.interfaces.js +4 -0
  217. package/dist/collection/components/input-slider/input-slider.js +970 -0
  218. package/dist/collection/components/input-slider/input-slider.picker.js +124 -0
  219. package/dist/collection/components/input-slider/input-slider.utils.js +32 -0
  220. package/dist/collection/components/input-slider/test/input-slider.a11y.play.js +36 -0
  221. package/dist/collection/components/input-slider/test/input-slider.component.play.js +87 -0
  222. package/dist/collection/components/input-slider/test/input-slider.visual.play.js +28 -0
  223. package/dist/collection/components/label/label.host.css +1 -1
  224. package/dist/collection/components/label/label.js +2 -2
  225. package/dist/collection/components/list/item/item.host.css +1 -1
  226. package/dist/collection/components/list/list.js +1 -1
  227. package/dist/collection/components/logo/logo.js +2 -2
  228. package/dist/collection/components/modal/modal-body/modal-body.js +1 -1
  229. package/dist/collection/components/modal/modal-header/modal-header.js +1 -1
  230. package/dist/collection/components/modal/modal.js +2 -2
  231. package/dist/collection/components/navbar/navbar.js +3 -3
  232. package/dist/collection/components/notification/notification.host.css +1 -1
  233. package/dist/collection/components/notification/notification.js +3 -3
  234. package/dist/collection/components/number-input/number-input.js +13 -2
  235. package/dist/collection/components/number-input/test/number-input.visual.play.js +1 -1
  236. package/dist/collection/components/pagination/pagination.js +5 -5
  237. package/dist/collection/components/popup/popup.js +1 -1
  238. package/dist/collection/components/progress-bar/progress-bar.js +2 -2
  239. package/dist/collection/components/radio/radio-group/radio-group.js +54 -8
  240. package/dist/collection/components/radio/radio.host.css +1 -1
  241. package/dist/collection/components/radio/radio.js +31 -2
  242. package/dist/collection/components/radio/test/radio.visual.play.js +4 -0
  243. package/dist/collection/components/segment/segment/segment.js +15 -7
  244. package/dist/collection/components/segment/segment-item.js +1 -1
  245. package/dist/collection/components/segment/test/segment.visual.play.js +1 -0
  246. package/dist/collection/components/select/select-optgroup.js +1 -1
  247. package/dist/collection/components/select/select-option.js +1 -1
  248. package/dist/collection/components/select/select.host.css +1 -1
  249. package/dist/collection/components/select/select.js +11 -4
  250. package/dist/collection/components/select/test/select.visual.play.js +2 -2
  251. package/dist/collection/components/shape/shape.js +1 -1
  252. package/dist/collection/components/spinner/spinner.host.css +1 -1
  253. package/dist/collection/components/spinner/spinner.interfaces.js +1 -1
  254. package/dist/collection/components/spinner/spinner.js +12 -16
  255. package/dist/collection/components/stack/stack.host.css +1 -1
  256. package/dist/collection/components/stack/stack.interfaces.js +1 -2
  257. package/dist/collection/components/stack/stack.js +13 -33
  258. package/dist/collection/components/steps/step-panel/step-panel.js +1 -1
  259. package/dist/collection/components/tabs/tab-panel/tab-panel.js +1 -1
  260. package/dist/collection/components/tabs/tabs/tabs.js +4 -4
  261. package/dist/collection/components/tag/tag-group/tag-group.js +1 -1
  262. package/dist/collection/components/tag/tag.host.css +1 -1
  263. package/dist/collection/components/tag/tag.js +2 -2
  264. package/dist/collection/components/text/text.host.css +1 -1
  265. package/dist/collection/components/text/text.js +3 -3
  266. package/dist/collection/components/textarea/test/textarea.visual.play.js +2 -2
  267. package/dist/collection/components/textarea/textarea.js +13 -2
  268. package/dist/collection/components/toggle/toggle.js +2 -2
  269. package/dist/collection/components/tooltip/tooltip.js +1 -1
  270. package/dist/collection/global/constants/tags.constant.js +1 -0
  271. package/dist/collection/global/constants/version.constant.js +1 -1
  272. package/dist/collection/global/global.js +2 -0
  273. package/dist/collection/global/token-preview.js +75 -0
  274. package/dist/collection/global/token-preview.types.js +1 -0
  275. package/dist/collection/utils/index.js +1 -0
  276. package/dist/collection/utils/invalid-text-slot.js +31 -0
  277. package/dist/design-system/design-system.esm.js +1 -1
  278. package/dist/design-system/index.esm.js +1 -1
  279. package/dist/design-system/{p-5d17209d91.entry.js → p-001b20140b.entry.js} +1 -1
  280. package/dist/design-system/p-0c031d8d90.entry.js +4 -0
  281. package/dist/design-system/p-0c18812daa.entry.js +4 -0
  282. package/dist/design-system/p-19e0638e5c.entry.js +4 -0
  283. package/dist/design-system/{p-10c136d00d.entry.js → p-1dc3406415.entry.js} +1 -1
  284. package/dist/design-system/{p-53dda5d400.entry.js → p-200a0ea72c.entry.js} +1 -1
  285. package/dist/design-system/p-2516721737.entry.js +4 -0
  286. package/dist/design-system/p-2a67e9b4eb.entry.js +4 -0
  287. package/dist/design-system/p-2cc9740eb6.entry.js +4 -0
  288. package/dist/design-system/p-33165c2b03.entry.js +4 -0
  289. package/dist/design-system/p-37295c3a5d.entry.js +4 -0
  290. package/dist/design-system/p-3d1f15112e.entry.js +4 -0
  291. package/dist/design-system/p-3de8e2b6c9.entry.js +4 -0
  292. package/dist/design-system/{p-774b89ed0b.entry.js → p-4042b35fee.entry.js} +1 -1
  293. package/dist/design-system/{p-afd8bbe699.entry.js → p-40b3d4d0f9.entry.js} +1 -1
  294. package/dist/design-system/{p-f0119fe693.entry.js → p-45af50a69f.entry.js} +1 -1
  295. package/dist/design-system/p-4df80c06f8.entry.js +4 -0
  296. package/dist/design-system/p-4f12c6449d.entry.js +4 -0
  297. package/dist/design-system/p-4f95f06b86.entry.js +4 -0
  298. package/dist/design-system/{p-c37f266740.entry.js → p-662983c8bd.entry.js} +1 -1
  299. package/dist/design-system/p-68693c06a1.entry.js +4 -0
  300. package/dist/design-system/{p-7c353652a9.entry.js → p-69784a200e.entry.js} +1 -1
  301. package/dist/design-system/{p-BhdSNuGP.js → p-6Iq8BM7N.js} +1 -1
  302. package/dist/design-system/p-6ba71ce374.entry.js +4 -0
  303. package/dist/design-system/{p-13d1ce3158.entry.js → p-72c08ce551.entry.js} +1 -1
  304. package/dist/design-system/p-72fe1ab876.entry.js +4 -0
  305. package/dist/design-system/p-73b26207bf.entry.js +4 -0
  306. package/dist/design-system/{p-4e6638d14e.entry.js → p-7576fb01bf.entry.js} +1 -1
  307. package/dist/design-system/p-819d71abe1.entry.js +4 -0
  308. package/dist/design-system/p-88682a66d5.entry.js +4 -0
  309. package/dist/design-system/{p-6ef31a3c07.entry.js → p-8a7c2f5b0a.entry.js} +1 -1
  310. package/dist/design-system/{p-0bd2ce2da3.entry.js → p-8bfcfd7b07.entry.js} +1 -1
  311. package/dist/design-system/p-9537ebc880.entry.js +4 -0
  312. package/dist/design-system/{p-e7472337ed.entry.js → p-96d37205c9.entry.js} +1 -1
  313. package/dist/design-system/{p-0663d7c0f1.entry.js → p-97ad0e648a.entry.js} +1 -1
  314. package/dist/design-system/p-9e0f190f06.entry.js +4 -0
  315. package/dist/design-system/p-9f746ea4e3.entry.js +4 -0
  316. package/dist/design-system/{p-B1e0kNRJ.js → p-B2dqoehY.js} +2 -2
  317. package/dist/design-system/p-B8PCdo6e.js +4 -0
  318. package/dist/design-system/p-B9ddSbbe.js +4 -0
  319. package/dist/design-system/p-BDcIydUK.js +4 -0
  320. package/dist/design-system/p-BdLq-Ecc.js +4 -0
  321. package/dist/design-system/{p-HwbqEzpk.js → p-BjaiDrCD.js} +1 -1
  322. package/dist/design-system/{p-CvTcEsXg.js → p-BnJgNfen.js} +1 -1
  323. package/dist/design-system/{p-78NZc8PM.js → p-Bnpwi9iD.js} +1 -1
  324. package/dist/design-system/p-C6AmBSV7.js +4 -0
  325. package/dist/design-system/{p-hLAmwHiq.js → p-CBGYLNZZ.js} +1 -1
  326. package/dist/design-system/p-CDhvZoCt.js +4 -0
  327. package/dist/design-system/p-CGHN-3RC.js +4 -0
  328. package/dist/design-system/{p-BkTv_bQR.js → p-CR2JnhVY.js} +1 -1
  329. package/dist/design-system/{p-Dm2lqE3-.js → p-ClSAXeZN.js} +1 -1
  330. package/dist/design-system/p-CziF75uh.js +4 -0
  331. package/dist/design-system/p-D-_px2sY.js +5 -0
  332. package/dist/design-system/{p-ij4OEkzJ.js → p-DNQg2PVW.js} +1 -1
  333. package/dist/design-system/p-DQGbRzw_.js +4 -0
  334. package/dist/design-system/{p-LCY5n5tq.js → p-DWdcUUdS.js} +1 -1
  335. package/dist/design-system/{p-C7i6xLTJ.js → p-DuKlHFAK.js} +1 -1
  336. package/dist/design-system/p-MUUOiuTm.js +5 -0
  337. package/dist/design-system/{p-BvEM6oCl.js → p-_Ywzmi-B.js} +1 -1
  338. package/dist/design-system/{p-DgVaaZT_.js → p-_rk5qARQ.js} +1 -1
  339. package/dist/design-system/{p-8406f6faf1.entry.js → p-a343b84e8a.entry.js} +1 -1
  340. package/dist/design-system/p-a3ed278181.entry.js +4 -0
  341. package/dist/design-system/{p-650289138a.entry.js → p-a71c22bc50.entry.js} +1 -1
  342. package/dist/design-system/{p-DTxLRTYr.js → p-aPnyJLhr.js} +1 -1
  343. package/dist/design-system/{p-f4958b9e97.entry.js → p-abcc8edf7e.entry.js} +1 -1
  344. package/dist/design-system/{p-372bf379f9.entry.js → p-ac55e3783c.entry.js} +1 -1
  345. package/dist/design-system/{p-7e702193fc.entry.js → p-ac7f3f89be.entry.js} +1 -1
  346. package/dist/design-system/{p-3134821ac6.entry.js → p-ae8753bf2a.entry.js} +1 -1
  347. package/dist/design-system/{p-60d29d8b8e.entry.js → p-afea3755c2.entry.js} +1 -1
  348. package/dist/design-system/{p-dcb749efc7.entry.js → p-bd31b396d8.entry.js} +1 -1
  349. package/dist/design-system/p-bd740897a1.entry.js +4 -0
  350. package/dist/design-system/{p-d5f8d8f5e1.entry.js → p-bf03129378.entry.js} +1 -1
  351. package/dist/design-system/p-bfd0557b47.entry.js +4 -0
  352. package/dist/design-system/{p-01430d5c28.entry.js → p-c07aa25e4d.entry.js} +1 -1
  353. package/dist/design-system/p-c19c74c2b1.entry.js +4 -0
  354. package/dist/design-system/{p-dd38f8f206.entry.js → p-d5d7700fd3.entry.js} +1 -1
  355. package/dist/design-system/p-d727654ec3.entry.js +4 -0
  356. package/dist/design-system/{p-a465c1acce.entry.js → p-dadd7a84bc.entry.js} +1 -1
  357. package/dist/design-system/p-dd5e815ef3.entry.js +4 -0
  358. package/dist/design-system/p-dfebad2acc.entry.js +4 -0
  359. package/{components/p-D9YYP2SG.js → dist/design-system/p-dziB1ufg.js} +1 -1
  360. package/dist/design-system/p-e16572468e.entry.js +4 -0
  361. package/dist/design-system/p-e23b6d59c0.entry.js +4 -0
  362. package/dist/design-system/p-e743fa4c17.entry.js +4 -0
  363. package/dist/design-system/p-e94b66c13e.entry.js +4 -0
  364. package/dist/design-system/{p-a8de98dd7b.entry.js → p-ec3f2ded29.entry.js} +1 -1
  365. package/dist/design-system/p-ed3f364d1f.entry.js +4 -0
  366. package/dist/design-system/{p-a62b7985a0.entry.js → p-eedaf7fe85.entry.js} +1 -1
  367. package/dist/design-system/p-ef1bf78788.entry.js +4 -0
  368. package/dist/design-system/{p-9f2dd0b55b.entry.js → p-f0b0376beb.entry.js} +1 -1
  369. package/dist/design-system/p-f7787fca37.entry.js +4 -0
  370. package/dist/design-system/p-fd868dc1f5.entry.js +4 -0
  371. package/dist/esm/{_getTag-DFxL3s3h.js → _getTag-BkweuRJc.js} +1 -1
  372. package/dist/esm/{array-dJH4dfMr.js → array-BJZA868l.js} +3 -2
  373. package/dist/esm/{breakpoints.decorator-DZ0xN4Np.js → breakpoints.decorator-CIweMjJQ.js} +1 -1
  374. package/dist/esm/{breakpoints.subject-BNnXcKMw.js → breakpoints.subject-CUVOWezN.js} +3 -3
  375. package/dist/esm/{button.interfaces-BPGfTrrM.js → button.interfaces-C6AmBSV7.js} +0 -1
  376. package/dist/esm/{config.decorator-ZQ0_Zx5y.js → config.decorator-CyvsD1EY.js} +1 -1
  377. package/dist/esm/{config.utils-D9o7rffC.js → config.utils-Db2OSTX3.js} +1 -1
  378. package/dist/esm/{create-validator-decorator-DovxquEu.js → create-validator-decorator-g9TfAa1g.js} +1 -1
  379. package/dist/esm/design-system.js +3 -3
  380. package/dist/esm/{device-CRuIJzXR.js → device-CtidwsPr.js} +1 -1
  381. package/dist/esm/ds-accordion.entry.js +9 -9
  382. package/dist/esm/ds-alert-container.entry.js +6 -6
  383. package/dist/esm/ds-app.entry.js +35 -8
  384. package/dist/esm/ds-badge.entry.js +20 -39
  385. package/dist/esm/ds-button-group.entry.js +7 -7
  386. package/dist/esm/ds-button_2.entry.js +20 -20
  387. package/dist/esm/ds-card-actions.entry.js +4 -4
  388. package/dist/esm/ds-card-content.entry.js +3 -3
  389. package/dist/esm/ds-card-header.entry.js +5 -5
  390. package/dist/esm/ds-card-subtitle.entry.js +10 -14
  391. package/dist/esm/ds-card-title.entry.js +8 -14
  392. package/dist/esm/ds-card.entry.js +14 -13
  393. package/dist/esm/ds-carousel-item.entry.js +6 -6
  394. package/dist/esm/ds-carousel.entry.js +8 -8
  395. package/dist/esm/ds-checkbox-group.entry.js +44 -19
  396. package/dist/esm/ds-checkbox.entry.js +19 -10
  397. package/dist/esm/ds-content_2.entry.js +18 -68
  398. package/dist/esm/ds-data-item.entry.js +6 -6
  399. package/dist/esm/ds-data-label.entry.js +4 -4
  400. package/dist/esm/ds-data-value.entry.js +2 -2
  401. package/dist/esm/ds-data.entry.js +4 -4
  402. package/dist/esm/ds-date.entry.js +18 -12
  403. package/dist/esm/ds-divider_2.entry.js +14 -14
  404. package/dist/esm/ds-drawer_2.entry.js +10 -10
  405. package/dist/esm/ds-file-upload.entry.js +22 -14
  406. package/dist/esm/ds-footer.entry.js +7 -7
  407. package/dist/esm/ds-heading.entry.js +21 -37
  408. package/dist/esm/ds-hint-text.entry.js +2 -2
  409. package/dist/esm/ds-hint-title.entry.js +2 -2
  410. package/dist/esm/ds-hint.entry.js +11 -11
  411. package/dist/esm/ds-icon_2.entry.js +21 -24
  412. package/dist/esm/ds-input-slider.entry.js +2890 -0
  413. package/dist/esm/ds-input.entry.js +20 -11
  414. package/dist/esm/ds-item.entry.js +7 -7
  415. package/dist/esm/ds-label.entry.js +11 -11
  416. package/dist/esm/ds-list.entry.js +5 -5
  417. package/dist/esm/ds-modal-body.entry.js +3 -3
  418. package/dist/esm/ds-modal-header.entry.js +3 -3
  419. package/dist/esm/ds-modal.entry.js +9 -9
  420. package/dist/esm/ds-navbar.entry.js +17 -17
  421. package/dist/esm/ds-notification.entry.js +11 -11
  422. package/dist/esm/ds-number-input.entry.js +24 -110
  423. package/dist/esm/ds-pagination.entry.js +17 -17
  424. package/dist/esm/ds-progress-bar.entry.js +14 -14
  425. package/dist/esm/ds-radio-group.entry.js +39 -15
  426. package/dist/esm/ds-radio.entry.js +19 -10
  427. package/dist/esm/ds-segment-item.entry.js +5 -5
  428. package/dist/esm/ds-segment.entry.js +21 -15
  429. package/dist/esm/ds-select-optgroup.entry.js +5 -5
  430. package/dist/esm/ds-select-option.entry.js +5 -5
  431. package/dist/esm/ds-select.entry.js +18 -13
  432. package/dist/esm/ds-shape.entry.js +5 -5
  433. package/dist/esm/ds-snackbar.entry.js +14 -14
  434. package/dist/esm/ds-step-panel.entry.js +6 -6
  435. package/dist/esm/ds-step.entry.js +5 -5
  436. package/dist/esm/ds-steps.entry.js +6 -6
  437. package/dist/esm/ds-tab-panel.entry.js +6 -6
  438. package/dist/esm/ds-tab.entry.js +5 -5
  439. package/dist/esm/ds-tabs.entry.js +12 -12
  440. package/dist/esm/ds-tag-group.entry.js +3 -3
  441. package/dist/esm/ds-tag.entry.js +9 -9
  442. package/dist/esm/ds-text.entry.js +10 -10
  443. package/dist/esm/ds-textarea.entry.js +19 -10
  444. package/dist/esm/ds-toast.entry.js +12 -12
  445. package/dist/esm/ds-toggle.entry.js +7 -7
  446. package/dist/esm/ds-tooltip.entry.js +5 -5
  447. package/dist/esm/{field.util-BjZzAi09.js → field.util-Dl02gvlr.js} +32 -3
  448. package/dist/esm/{focus-ZxHImoOj.js → focus-C1_jVoAm.js} +1 -1
  449. package/dist/esm/{form-control-DvJo0GKN.js → form-control-BAP86QSm.js} +1 -1
  450. package/dist/esm/{has-value-DU9L2JaI.js → has-value-CADjf9QZ.js} +1 -1
  451. package/dist/esm/{heading.interfaces-Ceu7FIWM.js → heading.interfaces-BdLq-Ecc.js} +2 -3
  452. package/dist/esm/{index-C6MVahkC.js → index-MUUOiuTm.js} +80 -1
  453. package/dist/esm/index.js +10 -10
  454. package/dist/esm/isArray-B8PCdo6e.js +40 -0
  455. package/dist/esm/isNaN-BrbqGXXw.js +104 -0
  456. package/dist/esm/{isObjectLike-BAYao9w7.js → isObjectLike-BnBXjF_n.js} +1 -37
  457. package/dist/esm/{listener-DHP2OPMZ.js → listener-DiVrGAqj.js} +1 -1
  458. package/dist/esm/loader.js +3 -3
  459. package/dist/esm/{one-of-CKPv0Nqm.js → one-of-rLykP5eX.js} +1 -1
  460. package/dist/esm/{required-Dqsbx5fH.js → required-BsfIY-qW.js} +1 -1
  461. package/dist/esm/{resize.decorator-B8h8D676.js → resize.decorator-BNy5tJCt.js} +2 -2
  462. package/dist/esm/{scroll-CsH7NHo5.js → scroll-D4cC-Fsr.js} +1 -1
  463. package/dist/esm/{svg-B8KVoKrH.js → svg-D-_px2sY.js} +96 -33
  464. package/dist/esm/{tslib.es6-C9GKXw-5.js → tslib.es6-C7vR-gMn.js} +1 -1
  465. package/dist/esm/{type-DzkhLOG_.js → type-Bqge296W.js} +1 -1
  466. package/dist/types/components/app/app.d.ts +23 -0
  467. package/dist/types/components/badge/badge.d.ts +12 -4
  468. package/dist/types/components/badge/badge.interfaces.d.ts +3 -3
  469. package/dist/types/components/button/button.interfaces.d.ts +1 -1
  470. package/dist/types/components/card/card-subtitle/card-subtitle.d.ts +1 -1
  471. package/dist/types/components/card/card-title/card-title.d.ts +1 -1
  472. package/dist/types/components/card/card.d.ts +1 -1
  473. package/dist/types/components/checkbox/checkbox-group/checkbox-group.d.ts +10 -0
  474. package/dist/types/components/checkbox/checkbox.d.ts +4 -0
  475. package/dist/types/components/close/close.d.ts +14 -2
  476. package/dist/types/components/close/close.interfaces.d.ts +1 -1
  477. package/dist/types/components/content/content.d.ts +6 -6
  478. package/dist/types/components/content/content.interfaces.d.ts +3 -3
  479. package/dist/types/components/date/date.d.ts +3 -0
  480. package/dist/types/components/file-upload/file-upload.d.ts +3 -0
  481. package/dist/types/components/heading/heading.d.ts +10 -10
  482. package/dist/types/components/heading/heading.interfaces.d.ts +3 -3
  483. package/dist/types/components/input/input.d.ts +4 -0
  484. package/dist/types/components/input-slider/input-slider.d.ts +189 -0
  485. package/dist/types/components/input-slider/input-slider.interfaces.d.ts +18 -0
  486. package/dist/types/components/input-slider/input-slider.picker.d.ts +37 -0
  487. package/dist/types/components/input-slider/input-slider.utils.d.ts +18 -0
  488. package/dist/types/components/input-slider/test/input-slider.a11y.play.d.ts +1 -0
  489. package/dist/types/components/input-slider/test/input-slider.component.play.d.ts +1 -0
  490. package/dist/types/components/input-slider/test/input-slider.visual.play.d.ts +1 -0
  491. package/dist/types/components/number-input/number-input.d.ts +4 -0
  492. package/dist/types/components/radio/radio-group/radio-group.d.ts +10 -0
  493. package/dist/types/components/radio/radio.d.ts +4 -0
  494. package/dist/types/components/segment/segment/segment.d.ts +3 -0
  495. package/dist/types/components/select/select.d.ts +3 -0
  496. package/dist/types/components/spinner/spinner.d.ts +8 -7
  497. package/dist/types/components/spinner/spinner.interfaces.d.ts +1 -1
  498. package/dist/types/components/stack/stack.d.ts +3 -3
  499. package/dist/types/components/stack/stack.interfaces.d.ts +2 -2
  500. package/dist/types/components/textarea/textarea.d.ts +4 -0
  501. package/dist/types/components.d.ts +334 -70
  502. package/dist/types/global/token-preview.d.ts +8 -0
  503. package/dist/types/global/token-preview.types.d.ts +20 -0
  504. package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/index.d.ts +1 -0
  505. package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/input-slider.po.d.ts +18 -0
  506. package/dist/types/utils/index.d.ts +1 -0
  507. package/dist/types/utils/invalid-text-slot.d.ts +9 -0
  508. package/docs/cem.json +792 -211
  509. package/docs/components.json +2434 -1559
  510. package/docs/html.html-data.json +124 -1
  511. package/docs/tags.json +1 -0
  512. package/docs/visual-pages.json +51 -0
  513. package/package.json +10 -9
  514. package/sbom.cdx.json +41369 -18745
  515. package/components/p-B1gnrQ9b.js +0 -4
  516. package/components/p-CA7G72wZ.js +0 -4
  517. package/components/p-CYWn3X22.js +0 -4
  518. package/components/p-Ceu7FIWM.js +0 -4
  519. package/components/p-Ctnm_MBD.js +0 -4
  520. package/components/p-DQBzmbR6.js +0 -4
  521. package/components/p-DsvYY32v.js +0 -4
  522. package/components/p-Du7QOHtz.js +0 -5
  523. package/components/p-FBQaJyH0.js +0 -4
  524. package/dist/design-system/p-014d464627.entry.js +0 -4
  525. package/dist/design-system/p-0ff0be5b83.entry.js +0 -4
  526. package/dist/design-system/p-11f34d0c7d.entry.js +0 -4
  527. package/dist/design-system/p-163d606781.entry.js +0 -4
  528. package/dist/design-system/p-1VXOIrN2.js +0 -4
  529. package/dist/design-system/p-202ecb8f01.entry.js +0 -4
  530. package/dist/design-system/p-27d181c5ac.entry.js +0 -4
  531. package/dist/design-system/p-2a35e0b9b0.entry.js +0 -4
  532. package/dist/design-system/p-2f51e1d39b.entry.js +0 -4
  533. package/dist/design-system/p-3292ae6a05.entry.js +0 -4
  534. package/dist/design-system/p-3895178b39.entry.js +0 -4
  535. package/dist/design-system/p-3c6b7a2967.entry.js +0 -4
  536. package/dist/design-system/p-3ef4bd1c59.entry.js +0 -4
  537. package/dist/design-system/p-493b18cc46.entry.js +0 -4
  538. package/dist/design-system/p-4a99464dae.entry.js +0 -4
  539. package/dist/design-system/p-5e51fa8df4.entry.js +0 -4
  540. package/dist/design-system/p-62cb503015.entry.js +0 -4
  541. package/dist/design-system/p-65c221261c.entry.js +0 -4
  542. package/dist/design-system/p-68c9f4f630.entry.js +0 -4
  543. package/dist/design-system/p-68ebed7eee.entry.js +0 -4
  544. package/dist/design-system/p-6b6531379b.entry.js +0 -4
  545. package/dist/design-system/p-6d168ba9ad.entry.js +0 -4
  546. package/dist/design-system/p-787bd92bcc.entry.js +0 -4
  547. package/dist/design-system/p-7c8bf0f33e.entry.js +0 -4
  548. package/dist/design-system/p-8353961d39.entry.js +0 -4
  549. package/dist/design-system/p-B8KVoKrH.js +0 -5
  550. package/dist/design-system/p-BLGVE-7Z.js +0 -4
  551. package/dist/design-system/p-BPGfTrrM.js +0 -4
  552. package/dist/design-system/p-C6MVahkC.js +0 -5
  553. package/dist/design-system/p-Ceu7FIWM.js +0 -4
  554. package/dist/design-system/p-CwCAiaMq.js +0 -4
  555. package/dist/design-system/p-DHeVI6dR.js +0 -4
  556. package/dist/design-system/p-ad2b17b0a0.entry.js +0 -4
  557. package/dist/design-system/p-b68bc14064.entry.js +0 -4
  558. package/dist/design-system/p-b955a93959.entry.js +0 -4
  559. package/dist/design-system/p-caad93b943.entry.js +0 -4
  560. package/dist/design-system/p-cca79bfeb1.entry.js +0 -4
  561. package/dist/design-system/p-ddf2a7dfee.entry.js +0 -4
  562. package/dist/design-system/p-df5899b930.entry.js +0 -4
  563. package/dist/design-system/p-e85c92ca1a.entry.js +0 -4
  564. package/dist/design-system/p-f62643c33d.entry.js +0 -4
  565. package/dist/design-system/p-fa9568abce.entry.js +0 -4
  566. package/dist/design-system/p-fcd98f22b7.entry.js +0 -4
  567. package/dist/design-system/p-feeef4a8cb.entry.js +0 -4
  568. package/dist/design-system/p-tl_BegdE.js +0 -4
@@ -0,0 +1,124 @@
1
+ /*!
2
+ * (C) Helvetia Design System https://design.baloise.dev/ - Apache License 2.0
3
+ */
4
+ import noUiSlider from "nouislider";
5
+ import { decimalsFromStep } from "./input-slider.utils";
6
+ export class InputSliderPickerController {
7
+ constructor(config) {
8
+ // Set while a programmatic setValue() is in flight, so the 'update'/'set' listeners it
9
+ // triggers don't echo back out as dsInput/dsChange. Only real user interaction — or a test
10
+ // harness driving the underlying noUiSlider instance directly — should emit those events;
11
+ // an external `el.value = x` assignment (e.g. an Angular CVA writeValue()) must not.
12
+ this.suppressEvents = false;
13
+ this.config = config;
14
+ this.init();
15
+ }
16
+ /**
17
+ * PUBLIC API
18
+ * ------------------------------------------------------
19
+ */
20
+ setValue(value) {
21
+ var _a, _b;
22
+ if (((_a = this.slider) === null || _a === void 0 ? void 0 : _a.get()) === value)
23
+ return;
24
+ this.suppressEvents = true;
25
+ (_b = this.slider) === null || _b === void 0 ? void 0 : _b.set(value);
26
+ this.suppressEvents = false;
27
+ }
28
+ setDisabled(disabled) {
29
+ var _a, _b;
30
+ if (disabled) {
31
+ (_a = this.slider) === null || _a === void 0 ? void 0 : _a.disable();
32
+ }
33
+ else {
34
+ (_b = this.slider) === null || _b === void 0 ? void 0 : _b.enable();
35
+ }
36
+ }
37
+ setInvalid(invalid) {
38
+ var _a;
39
+ (_a = this.handleEl) === null || _a === void 0 ? void 0 : _a.setAttribute('aria-invalid', invalid ? 'true' : 'false');
40
+ }
41
+ updateRange(min, max, step) {
42
+ var _a;
43
+ (_a = this.slider) === null || _a === void 0 ? void 0 : _a.updateOptions({
44
+ range: { min: Math.min(min, max), max: Math.max(min, max) },
45
+ step: numericStep(step),
46
+ format: buildFormat(step),
47
+ }, false);
48
+ }
49
+ focus() {
50
+ var _a;
51
+ (_a = this.handleEl) === null || _a === void 0 ? void 0 : _a.focus();
52
+ }
53
+ blur() {
54
+ var _a;
55
+ (_a = this.handleEl) === null || _a === void 0 ? void 0 : _a.blur();
56
+ }
57
+ get handleEl() {
58
+ var _a;
59
+ return (_a = this.config.targetEl.querySelector('.noUi-handle')) !== null && _a !== void 0 ? _a : undefined;
60
+ }
61
+ destroy() {
62
+ var _a;
63
+ (_a = this.slider) === null || _a === void 0 ? void 0 : _a.destroy();
64
+ this.slider = undefined;
65
+ }
66
+ /**
67
+ * PRIVATE
68
+ * ------------------------------------------------------
69
+ */
70
+ init() {
71
+ const { targetEl, min, max, step, value, disabled, invalid } = this.config;
72
+ this.slider = noUiSlider.create(targetEl, {
73
+ range: { min: Math.min(min, max), max: Math.max(min, max) },
74
+ start: value,
75
+ step: numericStep(step),
76
+ format: buildFormat(step),
77
+ // 'lower' fills the track from the start to the handle (single-handle "progress" look);
78
+ // the remainder shows the plain track background — see input-slider.host.scss.
79
+ connect: 'lower',
80
+ tooltips: true,
81
+ keyboardSupport: true,
82
+ });
83
+ if (disabled)
84
+ this.slider.disable();
85
+ // 'set' (not 'change') is used for the commit event: noUiSlider's own .set() API call —
86
+ // used by the picker's setValue() and by test helpers driving the widget programmatically —
87
+ // only fires 'update' + 'set', never 'change'. Real user interactions fire both together,
88
+ // so 'set' covers both cases while 'change' alone would miss programmatic commits.
89
+ this.slider.on('update', values => {
90
+ if (this.suppressEvents)
91
+ return;
92
+ this.config.onInput(Number(values[0]));
93
+ });
94
+ this.slider.on('set', values => {
95
+ if (this.suppressEvents)
96
+ return;
97
+ this.config.onChange(Number(values[0]));
98
+ });
99
+ this.connectLabelToHandle();
100
+ this.setInvalid(invalid);
101
+ }
102
+ // A generic noUiSlider handle has no accessible name of its own; connect it to the
103
+ // Field's label/description, same as SelectPickerController.connectLabelToTrigger().
104
+ connectLabelToHandle() {
105
+ const handle = this.handleEl;
106
+ if (!handle)
107
+ return;
108
+ handle.setAttribute('aria-labelledby', this.config.labelId);
109
+ handle.setAttribute('aria-describedby', 'description');
110
+ }
111
+ }
112
+ function numericStep(step) {
113
+ if (step === 'any')
114
+ return undefined;
115
+ const parsed = Number(step);
116
+ return Number.isFinite(parsed) && parsed > 0 ? parsed : undefined;
117
+ }
118
+ function buildFormat(step) {
119
+ const decimals = decimalsFromStep(step);
120
+ return {
121
+ to: (value) => Number(value.toFixed(decimals)),
122
+ from: (value) => Number(value),
123
+ };
124
+ }
@@ -0,0 +1,32 @@
1
+ /*!
2
+ * (C) Helvetia Design System https://design.baloise.dev/ - Apache License 2.0
3
+ */
4
+ /**
5
+ * Clamps `value` into `[min, max]`. Degrades sanely when `min > max` by
6
+ * treating the effective range as `[min(min, max), max(min, max)]`.
7
+ */
8
+ export function clampValue(value, min, max) {
9
+ const lower = Math.min(min, max);
10
+ const upper = Math.max(min, max);
11
+ return Math.min(Math.max(value, lower), upper);
12
+ }
13
+ /**
14
+ * Resolves the initial value: a range input can never be empty, so an unset
15
+ * (`NaN`, this codebase's "empty number" sentinel — see `isValueEmpty`) value
16
+ * defaults to `min`.
17
+ */
18
+ export function resolveInitialValue(value, min) {
19
+ return isNaN(value) ? min : value;
20
+ }
21
+ /**
22
+ * Derives the decimal precision implied by a `step` value, so noUiSlider's
23
+ * `format.to` can round away the floating-point noise its internal
24
+ * percentage-based math otherwise produces. `"any"` (continuous mode) falls
25
+ * back to a small fixed precision rather than pretending to be exact.
26
+ */
27
+ export function decimalsFromStep(step) {
28
+ if (step === 'any')
29
+ return 2;
30
+ const [, fraction = ''] = step.split('.');
31
+ return fraction.length;
32
+ }
@@ -0,0 +1,36 @@
1
+ /*!
2
+ * (C) Helvetia Design System https://design.baloise.dev/ - Apache License 2.0
3
+ */
4
+ import { test } from "../../../../../../playwright/src/index";
5
+ test('default', async ({ page, a11y }) => {
6
+ await page.mount(`<ds-input-slider label="Label" description="Description"></ds-input-slider>`);
7
+ await a11y('ds-input-slider');
8
+ });
9
+ test('with value', async ({ page, a11y }) => {
10
+ await page.mount(`<ds-input-slider label="Label" value="42"></ds-input-slider>`);
11
+ await a11y('ds-input-slider');
12
+ });
13
+ test('disabled', async ({ page, a11y }) => {
14
+ await page.mount(`<ds-input-slider label="Label" value="42" disabled></ds-input-slider>`);
15
+ await a11y('ds-input-slider');
16
+ });
17
+ test('readonly', async ({ page, a11y }) => {
18
+ await page.mount(`<ds-input-slider label="Label" value="42" readonly></ds-input-slider>`);
19
+ await a11y('ds-input-slider');
20
+ });
21
+ test('invalid', async ({ page, a11y }) => {
22
+ await page.mount(`<ds-input-slider label="Label" value="42" invalid invalid-text="Validation Error"></ds-input-slider>`);
23
+ await a11y('ds-input-slider');
24
+ });
25
+ test('success', async ({ page, a11y }) => {
26
+ await page.mount(`<ds-input-slider label="Label" value="42" color="success"></ds-input-slider>`);
27
+ await a11y('ds-input-slider');
28
+ });
29
+ test('warning', async ({ page, a11y }) => {
30
+ await page.mount(`<ds-input-slider label="Label" value="42" color="warning"></ds-input-slider>`);
31
+ await a11y('ds-input-slider');
32
+ });
33
+ test('with min/max/step', async ({ page, a11y }) => {
34
+ await page.mount(`<ds-input-slider label="Label" min="0" max="10" step="1" value="5"></ds-input-slider>`);
35
+ await a11y('ds-input-slider');
36
+ });
@@ -0,0 +1,87 @@
1
+ /*!
2
+ * (C) Helvetia Design System https://design.baloise.dev/ - Apache License 2.0
3
+ */
4
+ import { DsInputSlider, expect, test } from "../../../../../../playwright/src/index";
5
+ test.describe('component', () => {
6
+ test('should fire dsInput with numeric value on fill', async ({ page }) => {
7
+ await page.mount(`<ds-input-slider label="Label"></ds-input-slider>`);
8
+ const slider = new DsInputSlider(page.locator('ds-input-slider'));
9
+ const inputSpy = await slider.el.spyOnEvent('dsInput');
10
+ await slider.fill('42');
11
+ expect(inputSpy).toHaveReceivedEventTimes(1);
12
+ expect(inputSpy).toHaveReceivedEventDetail(42);
13
+ });
14
+ test('should fire dsChange with numeric value on fill', async ({ page }) => {
15
+ await page.mount(`<ds-input-slider label="Label"></ds-input-slider>`);
16
+ const slider = new DsInputSlider(page.locator('ds-input-slider'));
17
+ const changeSpy = await slider.el.spyOnEvent('dsChange');
18
+ await slider.fill('75');
19
+ expect(changeSpy).toHaveReceivedEventTimes(1);
20
+ expect(changeSpy).toHaveReceivedEventDetail(75);
21
+ });
22
+ test('should fire dsFocus on focus and dsBlur on blur', async ({ page }) => {
23
+ await page.mount(`<ds-input-slider label="Label"></ds-input-slider>`);
24
+ const slider = new DsInputSlider(page.locator('ds-input-slider'));
25
+ const focusSpy = await slider.el.spyOnEvent('dsFocus');
26
+ const blurSpy = await slider.el.spyOnEvent('dsBlur');
27
+ await slider.handle.focus();
28
+ expect(focusSpy).toHaveReceivedEventTimes(1);
29
+ await slider.blur();
30
+ expect(blurSpy).toHaveReceivedEventTimes(1);
31
+ });
32
+ test('should fire dsClick on click', async ({ page }) => {
33
+ await page.mount(`<ds-input-slider label="Label"></ds-input-slider>`);
34
+ const slider = new DsInputSlider(page.locator('ds-input-slider'));
35
+ const clickSpy = await slider.el.spyOnEvent('dsClick');
36
+ await slider.handle.click();
37
+ expect(clickSpy).toHaveReceivedEventTimes(1);
38
+ });
39
+ });
40
+ test.describe('min/max/step', () => {
41
+ test('defaults to min when value is unset', async ({ page }) => {
42
+ await page.mount(`<ds-input-slider label="Label" min="10" max="50"></ds-input-slider>`);
43
+ const slider = new DsInputSlider(page.locator('ds-input-slider'));
44
+ await slider.assertValue('10');
45
+ });
46
+ test('clamps an out-of-range value to max', async ({ page }) => {
47
+ await page.mount(`<ds-input-slider label="Label" min="0" max="10" value="42"></ds-input-slider>`);
48
+ const slider = new DsInputSlider(page.locator('ds-input-slider'));
49
+ await slider.assertValue('10');
50
+ });
51
+ });
52
+ test.describe('disabled', () => {
53
+ test('slider should be disabled', async ({ page }) => {
54
+ await page.mount(`<ds-input-slider label="Label" value="42" disabled></ds-input-slider>`);
55
+ const slider = new DsInputSlider(page.locator('ds-input-slider'));
56
+ const inputSpy = await slider.el.spyOnEvent('dsInput');
57
+ await slider.assertToBeDisabled();
58
+ expect(inputSpy).toHaveReceivedEventTimes(0);
59
+ });
60
+ });
61
+ test.describe('readonly', () => {
62
+ test('slider should be disabled', async ({ page }) => {
63
+ await page.mount(`<ds-input-slider label="Label" value="42" readonly></ds-input-slider>`);
64
+ const slider = new DsInputSlider(page.locator('ds-input-slider'));
65
+ const inputSpy = await slider.el.spyOnEvent('dsInput');
66
+ await slider.assertToBeDisabled();
67
+ expect(inputSpy).toHaveReceivedEventTimes(0);
68
+ });
69
+ });
70
+ test.describe('form reset', () => {
71
+ test('should reset to initial value', async ({ page }) => {
72
+ await page.mount(`
73
+ <form>
74
+ <ds-input-slider name="volume" label="Volume" value="30"></ds-input-slider>
75
+ <button type="reset" data-testid="reset">Reset</button>
76
+ </form>
77
+ `);
78
+ const slider = new DsInputSlider(page.locator('ds-input-slider'));
79
+ const changeSpy = await slider.el.spyOnEvent('dsChange');
80
+ await slider.fill('90');
81
+ expect(changeSpy).toHaveReceivedEventTimes(1);
82
+ expect(changeSpy).toHaveReceivedEventDetail(90);
83
+ await page.getByTestId('reset').click();
84
+ await page.waitForChanges();
85
+ await slider.assertValue('30');
86
+ });
87
+ });
@@ -0,0 +1,28 @@
1
+ /*!
2
+ * (C) Helvetia Design System https://design.baloise.dev/ - Apache License 2.0
3
+ */
4
+ import { expectScreenshot, screenshot, test } from "../../../../../../playwright/src/index";
5
+ const TAG = 'input-slider';
6
+ const VARIANTS = [
7
+ 'basic',
8
+ 'disabled',
9
+ 'readonly',
10
+ 'invalid',
11
+ 'invalid-slot',
12
+ 'valid',
13
+ 'warning',
14
+ 'brand-color',
15
+ 'step',
16
+ 'min-max',
17
+ 'form-reset',
18
+ ];
19
+ const image = screenshot(TAG);
20
+ test.beforeEach('Setup', async ({ page }) => {
21
+ await page.setupVisualTest(`/components/${TAG}/test/${TAG}.visual.html`);
22
+ });
23
+ VARIANTS.forEach(variant => {
24
+ test(variant, async ({ page }) => {
25
+ const el = page.getByTestId(variant);
26
+ await expectScreenshot(el, image(variant));
27
+ });
28
+ });
@@ -1 +1 @@
1
- :host{--_label-position: var(--label-position, var(--mod-label-position, static));--_label-top: var(--label-top, var(--mod-label-top));--_label-right: var(--label-right, var(--mod-label-right));--_label-bottom: var(--label-bottom, var(--mod-label-bottom));--_label-left: var(--label-left, var(--mod-label-left));position:var(--_label-position);top:var(--_label-top);right:var(--_label-right);bottom:var(--_label-bottom);left:var(--_label-left);--_label-m: var(--label-m, var(--mod-label-m, 0));--_label-my: var(--label-my, var(--mod-label-my));--_label-mx: var(--label-mx, var(--mod-label-mx));--_label-ml: var(--label-ml, var(--mod-label-ml));--_label-mr: var(--label-mr, var(--mod-label-mr));--_label-mt: var(--label-mt, var(--mod-label-mt));--_label-mb: var(--label-mb, var(--mod-label-mb));margin:var(--_label-m);margin-inline:var(--_label-mx);margin-block:var(--_label-my);margin-left:var(--_label-ml);margin-right:var(--_label-mr);margin-top:var(--_label-mt);margin-bottom:var(--_label-mb);--_label-color: var(--label-color, var(--mod-label-color, inherit));--_label-family: var(--label-family, var(--mod-label-family, var(--ds-label-family)));--_label-weight: var(--label-weight, var(--mod-label-weight, var(--ds-label-weight)));--_label-line-height: var(--label-line-height, var(--mod-label-line-height, var(--ds-label-line-height)));--_label-size: var(--label-size, var(--mod-label-size, var(--ds-label-size-base-device)))}:host label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;box-sizing:content-box;hyphens:auto;overflow-wrap:break-word;text-wrap:balance;min-width:0;color:var(--_label-color);font-family:var(--_label-family);font-weight:var(--_label-weight);font-size:var(--_label-size);line-height:var(--_label-line-height)}:host(.has-no-wrap) label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}:host(.is-lg){--mod-label-family: var(--ds-text-family-heading)}:host(.is-xl){--mod-label-family: var(--ds-text-family-heading)}:host(.is-2xl){--mod-label-family: var(--ds-text-family-heading)}:host(.is-3xl){--mod-label-family: var(--ds-text-family-heading)}:host(.is-sm){--mod-label-size: var(--ds-label-size-sm-device)}:host(.is-base){--mod-label-size: var(--ds-label-size-base-device)}:host(.is-lg){--mod-label-size: var(--ds-label-size-lg-device)}:host(.is-xl){--mod-label-size: var(--ds-label-size-xl-device)}:host(.is-2xl){--mod-label-size: var(--ds-label-size-2xl-device)}:host(.is-3xl){--mod-label-size: var(--ds-label-size-3xl-device)}:host(.is-hovered){--mod-label-color: var(--ds-label-color-base-hover)}:host(.is-pressed){--mod-label-color: var(--ds-label-color-base-active)}:host(.is-valid){--mod-label-color: var(--ds-label-color-success)}:host(.is-invalid){--mod-label-color: var(--ds-label-color-danger)}:host(.is-disabled){--mod-label-color: var(--ds-label-color-disabled) !important}:host{display:block}
1
+ :host{--_label-position: var(--label-position, var(--mod-label-position, static));--_label-top: var(--label-top, var(--mod-label-top));--_label-right: var(--label-right, var(--mod-label-right));--_label-bottom: var(--label-bottom, var(--mod-label-bottom));--_label-left: var(--label-left, var(--mod-label-left));position:var(--_label-position);top:var(--_label-top);right:var(--_label-right);bottom:var(--_label-bottom);left:var(--_label-left);--_label-m: var(--label-m, var(--mod-label-m, 0));--_label-my: var(--label-my, var(--mod-label-my));--_label-mx: var(--label-mx, var(--mod-label-mx));--_label-ml: var(--label-ml, var(--mod-label-ml));--_label-mr: var(--label-mr, var(--mod-label-mr));--_label-mt: var(--label-mt, var(--mod-label-mt));--_label-mb: var(--label-mb, var(--mod-label-mb));margin:var(--_label-m);margin-inline:var(--_label-mx);margin-block:var(--_label-my);margin-left:var(--_label-ml);margin-right:var(--_label-mr);margin-top:var(--_label-mt);margin-bottom:var(--_label-mb);--_label-color: var(--label-color, var(--mod-label-color, inherit));--_label-family: var(--label-family, var(--mod-label-family, var(--ds-label-family)));--_label-weight: var(--label-weight, var(--mod-label-weight, var(--ds-label-weight)));--_label-line-height: var(--label-line-height, var(--mod-label-line-height, var(--ds-label-line-height)));--_label-size: var(--label-size, var(--mod-label-size, var(--ds-label-size-base-device)))}:host label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;box-sizing:content-box;hyphens:auto;overflow-wrap:break-word;text-wrap:balance;min-width:0;color:var(--_label-color);font-family:var(--_label-family);font-weight:var(--_label-weight);font-size:var(--_label-size);line-height:var(--_label-line-height)}:host(.has-no-wrap) label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}:host(.is-lg){--mod-label-family: var(--ds-alias-text-family-heading)}:host(.is-xl){--mod-label-family: var(--ds-alias-text-family-heading)}:host(.is-2xl){--mod-label-family: var(--ds-alias-text-family-heading)}:host(.is-3xl){--mod-label-family: var(--ds-alias-text-family-heading)}:host(.is-sm){--mod-label-size: var(--ds-label-size-sm-device)}:host(.is-base){--mod-label-size: var(--ds-label-size-base-device)}:host(.is-lg){--mod-label-size: var(--ds-label-size-lg-device)}:host(.is-xl){--mod-label-size: var(--ds-label-size-xl-device)}:host(.is-2xl){--mod-label-size: var(--ds-label-size-2xl-device)}:host(.is-3xl){--mod-label-size: var(--ds-label-size-3xl-device)}:host(.is-hovered){--mod-label-color: var(--ds-label-color-base-hover)}:host(.is-pressed){--mod-label-color: var(--ds-label-color-base-active)}:host(.is-valid){--mod-label-color: var(--ds-label-color-success)}:host(.is-invalid){--mod-label-color: var(--ds-label-color-danger)}:host(.is-disabled){--mod-label-color: var(--ds-label-color-disabled) !important}:host{display:block}
@@ -90,7 +90,7 @@ export class Label {
90
90
  const id = this.htmlId;
91
91
  const htmlFor = this.htmlFor;
92
92
  const size = normalizeDeprecatedTShirtSize(this.size) || '';
93
- return (h(Host, { key: '9929eb29b4b0da3675aaa7e5506242fbd7627baf', class: {
93
+ return (h(Host, { key: 'fc8da311fddaf6d546b260a8bf2ae9cec5f39321', class: {
94
94
  'is-hovered': this.hovered,
95
95
  'is-pressed': this.pressed,
96
96
  'is-disabled': this.disabled,
@@ -98,7 +98,7 @@ export class Label {
98
98
  'is-invalid': this.invalid,
99
99
  'has-no-wrap': this.noWrap,
100
100
  [`is-${size}`]: hasValue(this.size),
101
- } }, h("label", { key: '638694c2e0dfd40260adba2be2fd812e60a89b1f', id: id, part: "label", htmlFor: htmlFor }, h("slot", { key: 'e3acc2817068c655b9d9874591545c49b904e993' }), suffix)));
101
+ } }, h("label", { key: '56e31495cbe7d6fd512a0fb5a6b708774116ae25', id: id, part: "label", htmlFor: htmlFor }, h("slot", { key: '062163754a076d54d253c895d5d3d54de0be0127' }), suffix)));
102
102
  }
103
103
  static get is() { return "ds-label"; }
104
104
  static get encapsulation() { return "shadow"; }
@@ -1 +1 @@
1
- :host{--_list-item-focus: var(--list-item-focus, var(--mod-list-item-focus, var(--ds-alias-interaction-focus-color-base)));--_list-item-grid-template-columns: var(--list-item-grid-template-columns, var(--mod-list-item-grid-template-columns, 1fr));--_list-item-min-height: var(--list-item-min-height, var(--mod-list-item-min-height, 3.5rem));--_list-item-gap: var(--list-item-gap, var(--mod-list-item-gap, 1rem));--_list-item-space: var(--list-item-space, var(--mod-list-item-space, 0.5rem));--_list-item-content-gap: var(--list-item-content-gap, var(--mod-list-item-content-gap, 1px));--_list-item-color: var(--list-item-color, var(--mod-list-item-color, inherit));--_list-item-border-color-base: var(--list-item-border-color-base, var(--mod-list-item-border-color-base, var(--ds-list-item-border-color)));--_list-item-border-color-hover: var(--list-item-border-color-hover, var(--mod-list-item-border-color-hover, var(--ds-link-color-base)));--_list-item-border-color-active: var(--list-item-border-color-active, var(--mod-list-item-border-color-active, var(--ds-link-color-base-active)));--_list-item-border-width: var(--list-item-border-width, var(--mod-list-item-border-width, var(--ds-list-item-border-width, 2px)));--_list-item-border-radius: var(--list-item-border-radius, var(--mod-list-item-border-radius, 12px));--_list-item-background-base: var(--list-item-background-base, var(--mod-list-item-background-base, transparent));--_list-item-background-hover: var(--list-item-background-hover, var(--mod-list-item-background-hover, var(--ds-alias-background-color-primary-lighter)));--_list-item-background-active: var(--list-item-background-active, var(--mod-list-item-background-active, var(--ds-alias-background-color-primary-lighter)));--_list-item-accordion-py: var(--list-item-accordion-py, var(--mod-list-item-accordion-py, var(--ds-alias-space-base-device)));--_list-item-action-icon-size: var(--list-item-action-icon-size, var(--mod-list-item-action-icon-size, var(--ds-icon-size-xs)));--_list-item-title-size: var(--list-item-title-size, var(--mod-list-item-title-size, var(--ds-heading-5-size-device)));--_list-item-title-weight: var(--list-item-title-weight, var(--mod-list-item-title-weight, var(--ds-alias-text-weight-bold)));--_list-item-title-family: var(--list-item-title-family, var(--mod-list-item-title-family, var(--ds-global-font-family-heading)));--_list-item-text-family: var(--list-item-text-family, var(--mod-list-item-text-family, var(--ds-global-font-family-body)));--_list-item-text-weight: var(--list-item-text-weight, var(--mod-list-item-text-weight, var(--ds-alias-text-weight-regular)));--_list-item-text-size: var(--list-item-text-size, var(--mod-list-item-text-size, var(--ds-text-size-sm-device)))}:host{position:relative;display:grid;box-sizing:border-box;grid-template-columns:var(--_list-item-grid-template-columns)}:host ::slotted([slot=content]){min-height:46px}:host #item{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:var(--_list-item-gap);width:100%;color:var(--_list-item-color);background:inherit;border:none;align-self:stretch;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--_list-item-title-family);padding:var(--_list-item-space) .25rem;padding-bottom:calc(var(--_list-item-space) + 2px);min-height:var(--_list-item-min-height)}:host #item ds-icon{flex-shrink:0}:host #item #content+ds-icon{--icon-size: var(--_list-item-action-icon-size);--icon-inner-size: var(--_list-item-action-icon-size)}:host #item #content{flex:1;display:flex;flex-direction:column;gap:var(--_list-item-content-gap);font-family:var(--_list-item-text-family);font-weight:var(--_list-item-text-weight)}:host #item #label{font-family:var(--_list-item-title-family);font-weight:var(--_list-item-title-weight);font-size:var(--_list-item-title-size);margin:0}:host #item #description{font-family:var(--_list-item-text-family);font-weight:var(--_list-item-text-weight);font-size:var(--_list-item-text-size);margin:0}:host #item:after{content:"";border-radius:var(--_list-item-border-radius);width:100%;position:absolute;bottom:0;left:0;right:0;height:var(--_list-item-border-width);background:var(--_list-item-border-color-base)}:host(.has-label-h1){--mod-list-item-title-size: var(--ds-heading-1-size-device)}:host(.has-label-3xl){--mod-list-item-title-size: var(--ds-heading-1-size-device)}:host(.has-label-h2){--mod-list-item-title-size: var(--ds-heading-2-size-device)}:host(.has-label-2xl){--mod-list-item-title-size: var(--ds-heading-2-size-device)}:host(.has-label-h3){--mod-list-item-title-size: var(--ds-heading-3-size-device)}:host(.has-label-xl){--mod-list-item-title-size: var(--ds-heading-3-size-device)}:host(.has-label-h4){--mod-list-item-title-size: var(--ds-heading-4-size-device)}:host(.has-label-lg){--mod-list-item-title-size: var(--ds-heading-4-size-device)}:host(.has-label-h5){--mod-list-item-title-size: var(--ds-heading-5-size-device)}:host(.has-label-base){--mod-list-item-title-size: var(--ds-heading-5-size-device)}:host(.is-link) #item,:host(.is-button) #item{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none;user-drag:none;text-decoration:none;outline:none;cursor:pointer;background:var(--_list-item-background-base)}:host(.is-link) #item::-moz-focus-inner,:host(.is-button) #item::-moz-focus-inner{border:0}:host(.is-link) #item #content,:host(.is-button) #item #content{hyphens:auto;overflow-wrap:break-word;font-family:var(--_list-item-title-family);font-weight:var(--_list-item-title-weight);font-size:var(--_list-item-title-size);color:var(--ds-link-color-base)}@media(hover: hover)and (pointer: fine){:host(.is-link) #item:hover,:host(.is-link) #item.is-hovered,:host(.is-button) #item:hover,:host(.is-button) #item.is-hovered{background:var(--_list-item-background-hover)}}:host(.is-link) #item:active,:host(.is-link) #item.is-pressed,:host(.is-button) #item:active,:host(.is-button) #item.is-pressed{background:var(--_list-item-background-active);color:var(--ds-link-color-base-active)}:host(.is-link) #item:active #content,:host(.is-link) #item.is-pressed #content,:host(.is-button) #item:active #content,:host(.is-button) #item.is-pressed #content{color:var(--ds-link-color-base-active)}:host(.is-link) #item:active ds-icon,:host(.is-link) #item:active ::slotted(ds-icon),:host(.is-link) #item:active ::slotted(ds-badge),:host(.is-link) #item.is-pressed ds-icon,:host(.is-link) #item.is-pressed ::slotted(ds-icon),:host(.is-link) #item.is-pressed ::slotted(ds-badge),:host(.is-button) #item:active ds-icon,:host(.is-button) #item:active ::slotted(ds-icon),:host(.is-button) #item:active ::slotted(ds-badge),:host(.is-button) #item.is-pressed ds-icon,:host(.is-button) #item.is-pressed ::slotted(ds-icon),:host(.is-button) #item.is-pressed ::slotted(ds-badge){--icon-color: var(--ds-link-color-base-active)}:host(.is-link) #item:before,:host(.is-button) #item:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;z-index:1;border-radius:var(--ds-alias-radius-base);touch-action:manipulation;transition-property:box-shadow;transition-duration:.2s;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}:host(.is-link) #item:focus-visible:not(:active):before,:host(.is-link) #item.is-focused:not(:active):before,:host(.is-button) #item:focus-visible:not(:active):before,:host(.is-button) #item.is-focused:not(:active):before{box-shadow:var(--ds-alias-interaction-focus-color-border) 0 0 0 2px,var(--_list-item-focus) 0 0 0 5px !important}@media(hover: hover)and (pointer: fine){:host(.is-link) #item:hover:after,:host(.is-link) #item.is-hovered:after,:host(.is-button) #item:hover:after,:host(.is-button) #item.is-hovered:after,:host(.is-accordion) #item:hover:after,:host(.is-accordion) #item.is-hovered:after{background:var(--_list-item-border-color-hover)}}:host(.is-link) #item:active:after,:host(.is-link) #item.is-pressed:after,:host(.is-button) #item:active:after,:host(.is-button) #item.is-pressed:after,:host(.is-accordion) #item:active:after,:host(.is-accordion) #item.is-pressed:after{background:var(--_list-item-border-color-active)}:host(.is-accordion) ::slotted(p){padding-block:var(--_list-item-accordion-py)}:host(.is-accordion) ds-accordion{--accordion-summary-color-hover: var(--ds-link-color-base)}:host(.is-accordion) ds-accordion::part(header){background:var(--_list-item-background-base)}:host(.is-accordion) ds-accordion::part(summary){padding-right:.25rem}:host(.is-accordion) ds-accordion::part(summary):hover{background:var(--_list-item-background-hover)}:host(.is-accordion) ds-accordion::part(summary):active{background:var(--_list-item-background-active)}:host(.is-accordion) #accordion-content:after{content:"";border-radius:var(--_list-item-border-radius);width:100%;position:absolute;bottom:0;left:0;right:0;height:var(--_list-item-border-width);background:var(--_list-item-border-color-base)}:host(.is-disabled) #item{pointer-events:none !important;cursor:default !important;color:var(--ds-list-item-disabled)}:host(.is-disabled) #item #content{color:var(--ds-list-item-disabled)}:host(.is-disabled) #item ds-icon,:host(.is-disabled) #item ds-badge,:host(.is-disabled) #item ::slotted(ds-icon),:host(.is-disabled) #item ::slotted(ds-badge){--icon-color: var(--ds-list-item-disabled)}:host(.is-disabled) #item ds-badge,:host(.is-disabled) #item ::slotted(ds-badge){--badge-color-background: var(--ds-badge-color-grey-background);--badge-color-text: var(--ds-badge-color-grey-text)}
1
+ :host{--_list-item-focus: var(--list-item-focus, var(--mod-list-item-focus, var(--ds-alias-interaction-focus-color-base)));--_list-item-grid-template-columns: var(--list-item-grid-template-columns, var(--mod-list-item-grid-template-columns, 1fr));--_list-item-min-height: var(--list-item-min-height, var(--mod-list-item-min-height, 3.5rem));--_list-item-gap: var(--list-item-gap, var(--mod-list-item-gap, 1rem));--_list-item-space: var(--list-item-space, var(--mod-list-item-space, 0.5rem));--_list-item-content-gap: var(--list-item-content-gap, var(--mod-list-item-content-gap, 1px));--_list-item-color: var(--list-item-color, var(--mod-list-item-color, inherit));--_list-item-border-color-base: var(--list-item-border-color-base, var(--mod-list-item-border-color-base, var(--ds-list-item-border-color)));--_list-item-border-color-hover: var(--list-item-border-color-hover, var(--mod-list-item-border-color-hover, var(--ds-link-color-base)));--_list-item-border-color-active: var(--list-item-border-color-active, var(--mod-list-item-border-color-active, var(--ds-link-color-base-active)));--_list-item-border-width: var(--list-item-border-width, var(--mod-list-item-border-width, var(--ds-list-item-border-width, 2px)));--_list-item-border-radius: var(--list-item-border-radius, var(--mod-list-item-border-radius, 12px));--_list-item-background-base: var(--list-item-background-base, var(--mod-list-item-background-base, transparent));--_list-item-background-hover: var(--list-item-background-hover, var(--mod-list-item-background-hover, var(--ds-alias-background-color-primary-lighter)));--_list-item-background-active: var(--list-item-background-active, var(--mod-list-item-background-active, var(--ds-alias-background-color-primary-lighter)));--_list-item-accordion-py: var(--list-item-accordion-py, var(--mod-list-item-accordion-py, var(--ds-alias-space-base-device)));--_list-item-action-icon-size: var(--list-item-action-icon-size, var(--mod-list-item-action-icon-size, var(--ds-icon-size-xs)));--_list-item-title-size: var(--list-item-title-size, var(--mod-list-item-title-size, var(--ds-heading-5-size-device)));--_list-item-title-weight: var(--list-item-title-weight, var(--mod-list-item-title-weight, var(--ds-alias-text-weight-bold)));--_list-item-title-family: var(--list-item-title-family, var(--mod-list-item-title-family, var(--ds-global-font-family-heading)));--_list-item-text-family: var(--list-item-text-family, var(--mod-list-item-text-family, var(--ds-global-font-family-body)));--_list-item-text-weight: var(--list-item-text-weight, var(--mod-list-item-text-weight, var(--ds-alias-text-weight-regular)));--_list-item-text-size: var(--list-item-text-size, var(--mod-list-item-text-size, var(--ds-alias-text-size-sm-device)))}:host{position:relative;display:grid;box-sizing:border-box;grid-template-columns:var(--_list-item-grid-template-columns)}:host ::slotted([slot=content]){min-height:46px}:host #item{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:var(--_list-item-gap);width:100%;color:var(--_list-item-color);background:inherit;border:none;align-self:stretch;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--_list-item-title-family);padding:var(--_list-item-space) .25rem;padding-bottom:calc(var(--_list-item-space) + 2px);min-height:var(--_list-item-min-height)}:host #item ds-icon{flex-shrink:0}:host #item #content+ds-icon{--icon-size: var(--_list-item-action-icon-size);--icon-inner-size: var(--_list-item-action-icon-size)}:host #item #content{flex:1;display:flex;flex-direction:column;gap:var(--_list-item-content-gap);font-family:var(--_list-item-text-family);font-weight:var(--_list-item-text-weight)}:host #item #label{font-family:var(--_list-item-title-family);font-weight:var(--_list-item-title-weight);font-size:var(--_list-item-title-size);margin:0}:host #item #description{font-family:var(--_list-item-text-family);font-weight:var(--_list-item-text-weight);font-size:var(--_list-item-text-size);margin:0}:host #item:after{content:"";border-radius:var(--_list-item-border-radius);width:100%;position:absolute;bottom:0;left:0;right:0;height:var(--_list-item-border-width);background:var(--_list-item-border-color-base)}:host(.has-label-h1){--mod-list-item-title-size: var(--ds-heading-1-size-device)}:host(.has-label-3xl){--mod-list-item-title-size: var(--ds-heading-1-size-device)}:host(.has-label-h2){--mod-list-item-title-size: var(--ds-heading-2-size-device)}:host(.has-label-2xl){--mod-list-item-title-size: var(--ds-heading-2-size-device)}:host(.has-label-h3){--mod-list-item-title-size: var(--ds-heading-3-size-device)}:host(.has-label-xl){--mod-list-item-title-size: var(--ds-heading-3-size-device)}:host(.has-label-h4){--mod-list-item-title-size: var(--ds-heading-4-size-device)}:host(.has-label-lg){--mod-list-item-title-size: var(--ds-heading-4-size-device)}:host(.has-label-h5){--mod-list-item-title-size: var(--ds-heading-5-size-device)}:host(.has-label-base){--mod-list-item-title-size: var(--ds-heading-5-size-device)}:host(.is-link) #item,:host(.is-button) #item{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none;user-drag:none;text-decoration:none;outline:none;cursor:pointer;background:var(--_list-item-background-base)}:host(.is-link) #item::-moz-focus-inner,:host(.is-button) #item::-moz-focus-inner{border:0}:host(.is-link) #item #content,:host(.is-button) #item #content{hyphens:auto;overflow-wrap:break-word;font-family:var(--_list-item-title-family);font-weight:var(--_list-item-title-weight);font-size:var(--_list-item-title-size);color:var(--ds-link-color-base)}@media(hover: hover)and (pointer: fine){:host(.is-link) #item:hover,:host(.is-link) #item.is-hovered,:host(.is-button) #item:hover,:host(.is-button) #item.is-hovered{background:var(--_list-item-background-hover)}}:host(.is-link) #item:active,:host(.is-link) #item.is-pressed,:host(.is-button) #item:active,:host(.is-button) #item.is-pressed{background:var(--_list-item-background-active);color:var(--ds-link-color-base-active)}:host(.is-link) #item:active #content,:host(.is-link) #item.is-pressed #content,:host(.is-button) #item:active #content,:host(.is-button) #item.is-pressed #content{color:var(--ds-link-color-base-active)}:host(.is-link) #item:active ds-icon,:host(.is-link) #item:active ::slotted(ds-icon),:host(.is-link) #item:active ::slotted(ds-badge),:host(.is-link) #item.is-pressed ds-icon,:host(.is-link) #item.is-pressed ::slotted(ds-icon),:host(.is-link) #item.is-pressed ::slotted(ds-badge),:host(.is-button) #item:active ds-icon,:host(.is-button) #item:active ::slotted(ds-icon),:host(.is-button) #item:active ::slotted(ds-badge),:host(.is-button) #item.is-pressed ds-icon,:host(.is-button) #item.is-pressed ::slotted(ds-icon),:host(.is-button) #item.is-pressed ::slotted(ds-badge){--icon-color: var(--ds-link-color-base-active)}:host(.is-link) #item:before,:host(.is-button) #item:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;z-index:1;border-radius:var(--ds-alias-radius-base);touch-action:manipulation;transition-property:box-shadow;transition-duration:.2s;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}:host(.is-link) #item:focus-visible:not(:active):before,:host(.is-link) #item.is-focused:not(:active):before,:host(.is-button) #item:focus-visible:not(:active):before,:host(.is-button) #item.is-focused:not(:active):before{box-shadow:var(--ds-alias-interaction-focus-color-border) 0 0 0 2px,var(--_list-item-focus) 0 0 0 5px !important}@media(hover: hover)and (pointer: fine){:host(.is-link) #item:hover:after,:host(.is-link) #item.is-hovered:after,:host(.is-button) #item:hover:after,:host(.is-button) #item.is-hovered:after,:host(.is-accordion) #item:hover:after,:host(.is-accordion) #item.is-hovered:after{background:var(--_list-item-border-color-hover)}}:host(.is-link) #item:active:after,:host(.is-link) #item.is-pressed:after,:host(.is-button) #item:active:after,:host(.is-button) #item.is-pressed:after,:host(.is-accordion) #item:active:after,:host(.is-accordion) #item.is-pressed:after{background:var(--_list-item-border-color-active)}:host(.is-accordion) ::slotted(p){padding-block:var(--_list-item-accordion-py)}:host(.is-accordion) ds-accordion{--accordion-summary-color-hover: var(--ds-link-color-base)}:host(.is-accordion) ds-accordion::part(header){background:var(--_list-item-background-base)}:host(.is-accordion) ds-accordion::part(summary){padding-right:.25rem}:host(.is-accordion) ds-accordion::part(summary):hover{background:var(--_list-item-background-hover)}:host(.is-accordion) ds-accordion::part(summary):active{background:var(--_list-item-background-active)}:host(.is-accordion) #accordion-content:after{content:"";border-radius:var(--_list-item-border-radius);width:100%;position:absolute;bottom:0;left:0;right:0;height:var(--_list-item-border-width);background:var(--_list-item-border-color-base)}:host(.is-disabled) #item{pointer-events:none !important;cursor:default !important;color:var(--ds-list-item-disabled)}:host(.is-disabled) #item #content{color:var(--ds-list-item-disabled)}:host(.is-disabled) #item ds-icon,:host(.is-disabled) #item ds-badge,:host(.is-disabled) #item ::slotted(ds-icon),:host(.is-disabled) #item ::slotted(ds-badge){--icon-color: var(--ds-list-item-disabled)}:host(.is-disabled) #item ds-badge,:host(.is-disabled) #item ::slotted(ds-badge){--badge-color-background: var(--ds-badge-grey-color-background);--badge-color-text: var(--ds-badge-grey-color-text)}
@@ -30,7 +30,7 @@ export class List {
30
30
  */
31
31
  render() {
32
32
  const ListTag = this.ordered ? 'ol' : 'ul';
33
- return (h(Host, { key: '915a10d31287e37f5c441d3717d724f654030415' }, h(ListTag, { key: '8d9813dde9199fc414bdc05878a4f6ba54553eb8', id: "list", part: "list" }, h("slot", { key: '523bc1c0172e9ed3af963610e417bc522672ded5' }))));
33
+ return (h(Host, { key: '18a1ec534ee775626dd769eab44db3fc34e8081a' }, h(ListTag, { key: '5e79d69a0164b8061841ccaf3900b19eb1260f66', id: "list", part: "list" }, h("slot", { key: '0274b66daeadd3c1675cce77ac75f2e26c69b9c0' }))));
34
34
  }
35
35
  static get is() { return "ds-list"; }
36
36
  static get encapsulation() { return "shadow"; }
@@ -140,12 +140,12 @@ export class Logo {
140
140
  render() {
141
141
  const size = normalizeDeprecatedTShirtSize(this.size) || '';
142
142
  const LogoElement = this.brand === 'helvetia' || (this.brand === '' && this.configBrand === 'helvetia') ? (h(LogoHelvetia, { onlyText: this.animated, height: this.getHeight() })) : (h(LogoBaloise, { onlyText: this.animated, height: this.getHeight() }));
143
- return (h(Host, { key: '549891bcf54e833cc226fecd178f6aabbfd8bcfa', class: {
143
+ return (h(Host, { key: '49c188a3abc26836396e1b81abcc1afde8f27b80', class: {
144
144
  'is-animated': this.isAnimated,
145
145
  'is-white': this.color === 'white',
146
146
  'is-sm': size === 'sm',
147
147
  'is-lg': size === 'lg',
148
- } }, h("div", { key: '91dd1d3eb07ee2b0da7396558137dde63bcde0da', id: "animated", part: "animated", ref: el => (this.animatedLogoElement = el), "aria-hidden": "true", style: {
148
+ } }, h("div", { key: 'b7658409d4580d88a45744c608790b76fa21983e', id: "animated", part: "animated", ref: el => (this.animatedLogoElement = el), "aria-hidden": "true", style: {
149
149
  display: this.isAnimated ? 'block' : 'none',
150
150
  width: this.getHeight() + 'px',
151
151
  height: this.getHeight() + 'px',
@@ -17,7 +17,7 @@ export class ModalBody {
17
17
  this.el.slot = 'body';
18
18
  }
19
19
  render() {
20
- return (h(Host, { key: '2e1c21ff62b36dc89b1589174b3ede2979eeb384' }, h("slot", { key: 'd1bb0237d1ac252c645da88b7375500b01c14ae1' })));
20
+ return (h(Host, { key: '17c373c9b96242ab98ec193642582c5418c5a24b' }, h("slot", { key: '459e1ac594f03d23e9c9854501485f91aa148d0a' })));
21
21
  }
22
22
  static get is() { return "ds-modal-body"; }
23
23
  static get encapsulation() { return "shadow"; }
@@ -19,7 +19,7 @@ export class ModalHeader {
19
19
  this.el.slot = 'header';
20
20
  }
21
21
  render() {
22
- return (h(Host, { key: '05b088ad50f8c43b72b855cb240d0c2ca2b9466c', style: { display: 'contents' } }, h("slot", { key: '729c1b5a1891548bb0fe4436ae3d04c7cc7f1c10' })));
22
+ return (h(Host, { key: 'b164ba40c3979cc9639c0c3adaca67e14effa85e', style: { display: 'contents' } }, h("slot", { key: '20c51614ea66de41b838e7d411542011288c1985' })));
23
23
  }
24
24
  static get is() { return "ds-modal-header"; }
25
25
  static get elementRef() { return "el"; }
@@ -156,11 +156,11 @@ export class Modal {
156
156
  * ------------------------------------------------------
157
157
  */
158
158
  render() {
159
- return (h(Host, { key: '62b900eb4c6d645d6ed18838b6e5f5230f34d2ba', class: {
159
+ return (h(Host, { key: '9bbdd2e3675ebcdf8c9307124efd5a6dbf6ed3d2', class: {
160
160
  'is-open': this.isOpen,
161
161
  'is-animated': this.animated,
162
162
  'is-fullscreen': this.fullscreen,
163
- }, style: { '--_modal-width': `${this.modalWidth}px` } }, h("dialog", { key: '744edb0cc3a0af3bdc01fbaf2acd9108f1ea6ecf', part: "dialog", ref: el => (this.dialogEl = el), "aria-labelledby": "modal-title", "aria-describedby": "modal-body", onClick: this.handleBackdropClick }, this.closable && h("ds-close", { key: 'e0328f19021f81ba7f1a4ccb4b9a7c444f623509', part: "close", onClick: () => (this.open = false) }), h("h2", { key: 'c9e8363bf136aa21fbaae2120a32847ef6189dee', id: "modal-title", part: "title" }, h("slot", { key: '3b061b840fd0b98c07ad22210c78a1d5390ec055', name: "header" })), h("div", { key: '9ca6ff7d5216ef7ee8f179ba73ed10531e6e3ccc', id: "modal-body", part: "body" }, h("slot", { key: 'dece7c125221ad7465f70ddd29bc47741b444b0a', name: "body" })), h("div", { key: 'dc1980a3c0b1da4d8a37d50e2a4ab3e2e45516c3', id: "modal-actions", part: "actions" }, h("slot", { key: 'a79074f106e57cb89d39354b46a82842493c0a0c', name: "actions" })))));
163
+ }, style: { '--_modal-width': `${this.modalWidth}px` } }, h("dialog", { key: 'dc18ceb8343d55b7a85d8a322d8f47fd2d8533a7', part: "dialog", ref: el => (this.dialogEl = el), "aria-labelledby": "modal-title", "aria-describedby": "modal-body", onClick: this.handleBackdropClick }, this.closable && h("ds-close", { key: '4fcca7c147ab406deb3471c3d4a8c10b8a503c81', part: "close", onClick: () => (this.open = false) }), h("h2", { key: '5ee65427e9c4eeaea3e165bbd822df406b2229dd', id: "modal-title", part: "title" }, h("slot", { key: '618d0ec490196852e4e55e2f6ed984e292c6f944', name: "header" })), h("div", { key: '6ac9a5ab80df8ae47e41867dbeceb8682cd61c0c', id: "modal-body", part: "body" }, h("slot", { key: '65b86fa28a2c5bfb3c95d5a12f185dab36fd7c25', name: "body" })), h("div", { key: '49d632c6b1791c90e1acd89fc3004e0fc6bb3458', id: "modal-actions", part: "actions" }, h("slot", { key: '4b6fb255556a20c37bb79fcab95b0619bdace7a8', name: "actions" })))));
164
164
  }
165
165
  static get is() { return "ds-modal"; }
166
166
  static get encapsulation() { return "shadow"; }
@@ -229,14 +229,14 @@ export class Navbar {
229
229
  const isMenuOpen = this.isSidebarOpen;
230
230
  const isSidebarMode = isTouch || this.isOverflowing;
231
231
  const i18n = i18nDsNavbar[this.language];
232
- return (h(Host, { key: 'd1d6fe2b8427f6685b71ac943c6c25a77cc7d29a', class: {
232
+ return (h(Host, { key: '4751141c9276638d58183322206828c49f38d67a', class: {
233
233
  'is-open': isMenuOpen,
234
234
  'is-sidebar-mode': isSidebarMode,
235
235
  'is-light': this.light,
236
- } }, h("nav", { key: 'ad444ede1a0403f07f444ea0690a462278c8cd2b', ref: el => (this.navEl = el), id: "nav", role: "navigation", "aria-label": i18n.mainNavigation }, h("div", { key: '1283a81c4aea12968c29ce7acea013e0f5bd9517', id: "container", class: {
236
+ } }, h("nav", { key: 'b142ac6bf25cdd48aff78158ebc49cd79889db0f', ref: el => (this.navEl = el), id: "nav", role: "navigation", "aria-label": i18n.mainNavigation }, h("div", { key: '056bda2d8ba50d01e34f4c000be406cc6ed546fe', id: "container", class: {
237
237
  'is-fluid': this.container === 'fluid',
238
238
  'is-compact': this.container === 'compact',
239
- }, ref: el => (this.containerEl = el) }, h("slot", { key: '5ee4b6dfb635e7da66d997e32c888f9938f534ed', name: "brand" }), h("slot", { key: '1842957278e926ebbad94af2be4ed9e307514f15', name: "title" }), h("div", { key: '9a0d72133cfacf2ee5c2fc7b667eb5c3f8b4ff4c', id: "content" }, !isSidebarMode && (h("div", { key: '888c531c11e5c6608037c3f2ed65fa70e092b3e1', id: "menu" }, h("div", { key: '6c67c0a018968a4b876fb0649cf771a4bc3be8f3', id: "menu-start" }, h("slot", { key: '36645b41db88550fba4d98d79f83f036136f2de1', name: "menu-start" })), h("div", { key: '01d1b694734f14b12893b6f9725d77bbd87494ea', id: "menu-end" }, h("slot", { key: '98be249966e4f0139944631052e2fd0c8c1209b1', name: "menu-end" })))), h("div", { key: '78e6833390750a161561412abb2db338034a14a9', id: "actions" }, h("slot", { key: 'e8bf50d3790e69523952060fff33aaf61e1a80ad', name: "actions" }), isSidebarMode && (h("button", { key: 'd7ed939c79ee98919a158e2b713386b031404550', ref: el => (this.burgerButton = el), id: "hamburger", type: "button", title: isMenuOpen ? i18n.closeMenu : i18n.openMenu, "aria-label": isMenuOpen ? i18n.closeMenu : i18n.openMenu, "aria-expanded": isMenuOpen, "aria-controls": "sidebar", onClick: () => this.handleHamburgerClick() }, h("ds-icon", { key: '0c8a7c53544d7c2c0b7aac5e91f7ab32bfa857a6', name: isMenuOpen ? 'close' : 'menu-bars', size: "", color: "white" })))))), isSidebarMode && (h("aside", { key: '40ac910cfa7c5610311883bd92cb743601570f04', id: "sidebar", role: "dialog", "aria-modal": "true", "aria-label": i18n.navigationMenu, class: { 'is-open': isMenuOpen }, ref: el => (this.sidebarEl = el) }, h("div", { key: '59262ffc7c7d40659584fe4ffcd41d32606e7501', id: "sidebar-backdrop", onClick: this.handleBackdropClick }), h("div", { key: '1debe69728a1868e0680066a6efd7ba9fa0a0a22', id: "sidebar-panel", tabindex: "-1" }, h("div", { key: 'f1d380906397ec3e959013284fb3feaa489800d7', id: "sidebar-content" }, h("div", { key: 'bbe972dc6f5e96d66473e4301706838dadb6e85e', id: "sidebar-start" }, h("slot", { key: '7177345c52b8bc829417db81fb3d107de920ce15', name: "menu-start" })), h("div", { key: 'a416d3e2a3b5fb87555e7b7bbe1020a4b1998bae', id: "sidebar-end" }, h("slot", { key: '953903c4a9ae1007ae5cd3a294e3c091b534945b', name: "menu-end" })))))))));
239
+ }, ref: el => (this.containerEl = el) }, h("slot", { key: '837d06a2d3205deb6f155322cc5f1a9484835cbb', name: "brand" }), h("slot", { key: 'c50410f1c714b5f6d9aa9603312d3642aae3f342', name: "title" }), h("div", { key: '047cf2da3762320ab02e1ab305b58f3c074c6c0d', id: "content" }, !isSidebarMode && (h("div", { key: '2e0010d0470373050d84d0f099fc73156e3f3099', id: "menu" }, h("div", { key: 'f7b8c0e885f747ae2ee03f1ff223484be8699cf5', id: "menu-start" }, h("slot", { key: 'a7a172470428bfc5668f25d6387c33b281303aa1', name: "menu-start" })), h("div", { key: 'a31d2061cc68cfba618b1f7efd9200bcb88a237a', id: "menu-end" }, h("slot", { key: '2a7aa495db2db5313f84d4f98ab6f52151caaf95', name: "menu-end" })))), h("div", { key: 'c596c26adaa4fdef8063fc36f1470e4b0afc8b9c', id: "actions" }, h("slot", { key: 'a7b4f6c2522715aeb5c536c8f022b74913839969', name: "actions" }), isSidebarMode && (h("button", { key: '844afe3c1617c51f913b2b7b155fadf7dd788caa', ref: el => (this.burgerButton = el), id: "hamburger", type: "button", title: isMenuOpen ? i18n.closeMenu : i18n.openMenu, "aria-label": isMenuOpen ? i18n.closeMenu : i18n.openMenu, "aria-expanded": isMenuOpen, "aria-controls": "sidebar", onClick: () => this.handleHamburgerClick() }, h("ds-icon", { key: 'fea68d648cddd553deaea422f78738ffd33ae329', name: isMenuOpen ? 'close' : 'menu-bars', size: "", color: "white" })))))), isSidebarMode && (h("aside", { key: 'd7cca3a0a9c98262baf322ad17c8480142c4856f', id: "sidebar", role: "dialog", "aria-modal": "true", "aria-label": i18n.navigationMenu, class: { 'is-open': isMenuOpen }, ref: el => (this.sidebarEl = el) }, h("div", { key: 'e59e4562f388c3e17b757be5532292271bf97312', id: "sidebar-backdrop", onClick: this.handleBackdropClick }), h("div", { key: '7e1813c533e5ae1edb40b4a5f3cb89eff9198e2d', id: "sidebar-panel", tabindex: "-1" }, h("div", { key: '20989ff5635db54ec7e6a6e6c4fb8d9f0f95ee01', id: "sidebar-content" }, h("div", { key: '91b497cd27858444399806749434126d508551d7', id: "sidebar-start" }, h("slot", { key: '3666487b26799818741b7e5022a0c90e7485adb3', name: "menu-start" })), h("div", { key: 'f30d9b73f3b706acc184eb39b2e555d58259d813', id: "sidebar-end" }, h("slot", { key: '36d1d16c15f23413a5fcd8af087b4c5a8bf4f2fc', name: "menu-end" })))))))));
240
240
  }
241
241
  static get is() { return "ds-navbar"; }
242
242
  static get encapsulation() { return "shadow"; }
@@ -1 +1 @@
1
- :host{--_notification-position: var(--notification-position, var(--mod-notification-position, static));--_notification-top: var(--notification-top, var(--mod-notification-top));--_notification-right: var(--notification-right, var(--mod-notification-right));--_notification-bottom: var(--notification-bottom, var(--mod-notification-bottom));--_notification-left: var(--notification-left, var(--mod-notification-left));position:var(--_notification-position);top:var(--_notification-top);right:var(--_notification-right);bottom:var(--_notification-bottom);left:var(--_notification-left);--_notification-m: var(--notification-m, var(--mod-notification-m, 0));--_notification-my: var(--notification-my, var(--mod-notification-my));--_notification-mx: var(--notification-mx, var(--mod-notification-mx));--_notification-ml: var(--notification-ml, var(--mod-notification-ml));--_notification-mr: var(--notification-mr, var(--mod-notification-mr));--_notification-mt: var(--notification-mt, var(--mod-notification-mt));--_notification-mb: var(--notification-mb, var(--mod-notification-mb));margin:var(--_notification-m);margin-inline:var(--_notification-mx);margin-block:var(--_notification-my);margin-left:var(--_notification-ml);margin-right:var(--_notification-mr);margin-top:var(--_notification-mt);margin-bottom:var(--_notification-mb);--_notification-radius: var(--notification-radius, var(--mod-notification-radius, var(--ds-notification-radius)));--_notification-color-background: var(--notification-color-background, var(--mod-notification-color-background, var(--ds-notification-color-base-background)));--_notification-color-border: var(--notification-color-border, var(--mod-notification-color-border, var(--ds-notification-color-base-border)));--_notification-color-text: var(--notification-color-text, var(--mod-notification-color-text, var(--ds-notification-color-base-text)));--_notification-heading-family: var(--notification-heading-family, var(--mod-notification-heading-family, var(--ds-text-family-heading)));--_notification-heading-weight: var(--notification-heading-weight, var(--mod-notification-heading-weight, var(--ds-text-weight-bold)));--_notification-heading-size: var(--notification-heading-size, var(--mod-notification-heading-size, var(--ds-text-size-lg-device)));--_notification-heading-line-height: var(--notification-heading-line-height, var(--mod-notification-heading-line-height, var(--ds-text-line-height-heading)));--_notification-content-family: var(--notification-content-family, var(--mod-notification-content-family, var(--ds-text-family-body)));--_notification-content-weight: var(--notification-content-weight, var(--mod-notification-content-weight, inherit));--_notification-content-size: var(--notification-content-size, var(--mod-notification-content-size, var(--ds-text-size-base-device)));--_notification-content-line-height: var(--notification-content-line-height, var(--mod-notification-content-line-height, var(--ds-text-line-height-body)));--_notification-icon: var(--notification-icon, var(--mod-notification-icon, var(--ds-notification-color-base-icon)));--_notification-icon-display: var(--notification-icon-display, var(--mod-notification-icon-display, block));--_notification-space: var(--notification-space, var(--mod-notification-space, var(--ds-card-space-base-device, 1.5rem)));--_notification-icon-space: var(--notification-icon-space, var(--mod-notification-icon-space, 1.5rem));--_notification-close-offset: var(--notification-close-offset, var(--mod-notification-close-offset, 2rem));--_notification-gap: var(--notification-gap, var(--mod-notification-gap, 0.125rem));--_notification-close-position: var(--notification-close-position, var(--mod-notification-close-position, absolute));--_notification-close-right: var(--notification-close-right, var(--mod-notification-close-right, var(--_notification-space)));--_notification-close-top: var(--notification-close-top, var(--mod-notification-close-top, var(--_notification-space)));--_notification-animation-start-opacity: var(--notification-animation-start-opacity, var(--mod-notification-animation-start-opacity, 1));--_notification-animation-start-transform: var(--notification-animation-start-transform, var(--mod-notification-animation-start-transform, none));--_notification-animation-transition: var(--notification-animation-transition, var(--mod-notification-animation-transition, none));--_notification-animation-end-opacity: var(--notification-animation-end-opacity, var(--mod-notification-animation-end-opacity, 1));--_notification-animation-end-transform: var(--notification-animation-end-transform, var(--mod-notification-animation-end-transform, none))}#notification{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;position:relative;hyphens:auto;border:var(--ds-alias-border-width-base) solid var(--_notification-color-border);border-radius:var(--_notification-radius);background:var(--_notification-color-background);color:var(--_notification-color-text);padding-top:var(--_notification-space);padding-right:var(--_notification-space);padding-bottom:var(--_notification-space);padding-left:calc(var(--_notification-space) + var(--_notification-icon-space));display:flex;flex-direction:column;gap:var(--_notification-gap)}#notification ds-close,#notification .close{position:var(--_notification-close-position);top:var(--_notification-close-top);right:var(--_notification-close-right)}#notification>h2{font-family:var(--_notification-heading-family);font-weight:var(--_notification-heading-weight);line-height:var(--_notification-heading-line-height);font-size:var(--_notification-heading-size);margin:0 !important}#notification:has(.close)>h2::before,#notification:has(ds-close)>h2::before{content:"";float:right;width:24px;height:calc(var(--_notification-heading-line-height)*16px)}#notification>span,#notification>p{font-family:var(--_notification-content-family);font-size:var(--_notification-content-size);font-weight:var(--_notification-content-weight);line-height:var(--_notification-content-line-height);margin:0 !important}#notification::before{display:var(--_notification-icon-display);background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;position:absolute;height:1.5rem;width:1.5rem;left:-0.25rem;top:calc((var(--_notification-space)));transform:translateX(var(--_notification-space));content:"";-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;mask-image:var(--_notification-icon);-webkit-mask-image:var(--_notification-icon)}:host(.has-no-icon){--mod-notification-icon-display: none;--mod-notification-icon-space: 0rem}:host(.is-info){--mod-notification-color-text: var(--ds-notification-color-info-text);--mod-notification-color-border: var(--ds-notification-color-info-border);--mod-notification-color-background: var(--ds-notification-color-info-background);--mod-notification-icon: var(--ds-notification-color-info-icon)}:host(.is-success){--mod-notification-color-text: var(--ds-notification-color-success-text);--mod-notification-color-border: var(--ds-notification-color-success-border);--mod-notification-color-background: var(--ds-notification-color-success-background);--mod-notification-icon: var(--ds-notification-color-success-icon)}:host(.is-warning){--mod-notification-color-text: var(--ds-notification-color-warning-text);--mod-notification-color-border: var(--ds-notification-color-warning-border);--mod-notification-color-background: var(--ds-notification-color-warning-background);--mod-notification-icon: var(--ds-notification-color-warning-icon)}:host(.is-danger){--mod-notification-color-text: var(--ds-notification-color-danger-text);--mod-notification-color-border: var(--ds-notification-color-danger-border);--mod-notification-color-background: var(--ds-notification-color-danger-background);--mod-notification-icon: var(--ds-notification-color-danger-icon)}:host(.is-outline-base){--mod-notification-color-text: var(--ds-notification-color-outline-base-text);--mod-notification-color-border: var(--ds-notification-color-outline-base-border);--mod-notification-color-background: var(--ds-notification-color-outline-base-background);--mod-notification-icon: var(--ds-notification-color-outline-base-icon)}:host(.is-outline-purple){--mod-notification-color-text: var(--ds-notification-color-outline-purple-text);--mod-notification-color-border: var(--ds-notification-color-outline-purple-border);--mod-notification-color-background: var(--ds-notification-color-outline-purple-background);--mod-notification-icon: var(--ds-notification-color-outline-purple-icon)}:host(.is-outline-green){--mod-notification-color-text: var(--ds-notification-color-outline-green-text);--mod-notification-color-border: var(--ds-notification-color-outline-green-border);--mod-notification-color-background: var(--ds-notification-color-outline-green-background);--mod-notification-icon: var(--ds-notification-color-outline-green-icon)}:host(.is-outline-yellow){--mod-notification-color-text: var(--ds-notification-color-outline-yellow-text);--mod-notification-color-border: var(--ds-notification-color-outline-yellow-border);--mod-notification-color-background: var(--ds-notification-color-outline-yellow-background);--mod-notification-icon: var(--ds-notification-color-outline-yellow-icon)}:host(.is-outline-red){--mod-notification-color-text: var(--ds-notification-color-outline-red-text);--mod-notification-color-border: var(--ds-notification-color-outline-red-border);--mod-notification-color-background: var(--ds-notification-color-outline-red-background);--mod-notification-icon: var(--ds-notification-color-outline-red-icon)}:host(.is-sm){--mod-notification-space: var(--ds-card-space-sm-device)}:host(.is-md){--mod-notification-space: var(--ds-card-space-md-device)}:host(.is-lg){--mod-notification-space: var(--ds-card-space-lg-device)}:host{display:block}
1
+ :host{--_notification-position: var(--notification-position, var(--mod-notification-position, static));--_notification-top: var(--notification-top, var(--mod-notification-top));--_notification-right: var(--notification-right, var(--mod-notification-right));--_notification-bottom: var(--notification-bottom, var(--mod-notification-bottom));--_notification-left: var(--notification-left, var(--mod-notification-left));position:var(--_notification-position);top:var(--_notification-top);right:var(--_notification-right);bottom:var(--_notification-bottom);left:var(--_notification-left);--_notification-m: var(--notification-m, var(--mod-notification-m, 0));--_notification-my: var(--notification-my, var(--mod-notification-my));--_notification-mx: var(--notification-mx, var(--mod-notification-mx));--_notification-ml: var(--notification-ml, var(--mod-notification-ml));--_notification-mr: var(--notification-mr, var(--mod-notification-mr));--_notification-mt: var(--notification-mt, var(--mod-notification-mt));--_notification-mb: var(--notification-mb, var(--mod-notification-mb));margin:var(--_notification-m);margin-inline:var(--_notification-mx);margin-block:var(--_notification-my);margin-left:var(--_notification-ml);margin-right:var(--_notification-mr);margin-top:var(--_notification-mt);margin-bottom:var(--_notification-mb);--_notification-radius: var(--notification-radius, var(--mod-notification-radius, var(--ds-notification-radius)));--_notification-color-background: var(--notification-color-background, var(--mod-notification-color-background, var(--ds-notification-color-base-background)));--_notification-color-border: var(--notification-color-border, var(--mod-notification-color-border, var(--ds-notification-color-base-border)));--_notification-color-text: var(--notification-color-text, var(--mod-notification-color-text, var(--ds-notification-color-base-text)));--_notification-heading-family: var(--notification-heading-family, var(--mod-notification-heading-family, var(--ds-alias-text-family-heading)));--_notification-heading-weight: var(--notification-heading-weight, var(--mod-notification-heading-weight, var(--ds-alias-text-weight-bold)));--_notification-heading-size: var(--notification-heading-size, var(--mod-notification-heading-size, var(--ds-alias-text-size-lg-device)));--_notification-heading-line-height: var(--notification-heading-line-height, var(--mod-notification-heading-line-height, var(--ds-alias-text-line-height-heading)));--_notification-content-family: var(--notification-content-family, var(--mod-notification-content-family, var(--ds-alias-text-family-body)));--_notification-content-weight: var(--notification-content-weight, var(--mod-notification-content-weight, inherit));--_notification-content-size: var(--notification-content-size, var(--mod-notification-content-size, var(--ds-alias-text-size-base-device)));--_notification-content-line-height: var(--notification-content-line-height, var(--mod-notification-content-line-height, var(--ds-alias-text-line-height-body)));--_notification-icon: var(--notification-icon, var(--mod-notification-icon, var(--ds-notification-color-base-icon)));--_notification-icon-display: var(--notification-icon-display, var(--mod-notification-icon-display, block));--_notification-space: var(--notification-space, var(--mod-notification-space, var(--ds-card-space-base-device, 1.5rem)));--_notification-icon-space: var(--notification-icon-space, var(--mod-notification-icon-space, 1.5rem));--_notification-close-offset: var(--notification-close-offset, var(--mod-notification-close-offset, 2rem));--_notification-gap: var(--notification-gap, var(--mod-notification-gap, 0.125rem));--_notification-close-position: var(--notification-close-position, var(--mod-notification-close-position, absolute));--_notification-close-right: var(--notification-close-right, var(--mod-notification-close-right, var(--_notification-space)));--_notification-close-top: var(--notification-close-top, var(--mod-notification-close-top, var(--_notification-space)));--_notification-animation-start-opacity: var(--notification-animation-start-opacity, var(--mod-notification-animation-start-opacity, 1));--_notification-animation-start-transform: var(--notification-animation-start-transform, var(--mod-notification-animation-start-transform, none));--_notification-animation-transition: var(--notification-animation-transition, var(--mod-notification-animation-transition, none));--_notification-animation-end-opacity: var(--notification-animation-end-opacity, var(--mod-notification-animation-end-opacity, 1));--_notification-animation-end-transform: var(--notification-animation-end-transform, var(--mod-notification-animation-end-transform, none))}#notification{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;position:relative;hyphens:auto;border:var(--ds-alias-border-width-base) solid var(--_notification-color-border);border-radius:var(--_notification-radius);background:var(--_notification-color-background);color:var(--_notification-color-text);padding-top:var(--_notification-space);padding-right:var(--_notification-space);padding-bottom:var(--_notification-space);padding-left:calc(var(--_notification-space) + var(--_notification-icon-space));display:flex;flex-direction:column;gap:var(--_notification-gap)}#notification ds-close,#notification .close{position:var(--_notification-close-position);top:var(--_notification-close-top);right:var(--_notification-close-right)}#notification>h2{font-family:var(--_notification-heading-family);font-weight:var(--_notification-heading-weight);line-height:var(--_notification-heading-line-height);font-size:var(--_notification-heading-size);margin:0 !important}#notification:has(.close)>h2::before,#notification:has(ds-close)>h2::before{content:"";float:right;width:24px;height:calc(var(--_notification-heading-line-height)*16px)}#notification>span,#notification>p{font-family:var(--_notification-content-family);font-size:var(--_notification-content-size);font-weight:var(--_notification-content-weight);line-height:var(--_notification-content-line-height);margin:0 !important}#notification::before{display:var(--_notification-icon-display);background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;position:absolute;height:1.5rem;width:1.5rem;left:-0.25rem;top:calc((var(--_notification-space)));transform:translateX(var(--_notification-space));content:"";-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;mask-image:var(--_notification-icon);-webkit-mask-image:var(--_notification-icon)}:host(.has-no-icon){--mod-notification-icon-display: none;--mod-notification-icon-space: 0rem}:host(.is-info){--mod-notification-color-text: var(--ds-notification-color-info-text);--mod-notification-color-border: var(--ds-notification-color-info-border);--mod-notification-color-background: var(--ds-notification-color-info-background);--mod-notification-icon: var(--ds-notification-color-info-icon)}:host(.is-success){--mod-notification-color-text: var(--ds-notification-color-success-text);--mod-notification-color-border: var(--ds-notification-color-success-border);--mod-notification-color-background: var(--ds-notification-color-success-background);--mod-notification-icon: var(--ds-notification-color-success-icon)}:host(.is-warning){--mod-notification-color-text: var(--ds-notification-color-warning-text);--mod-notification-color-border: var(--ds-notification-color-warning-border);--mod-notification-color-background: var(--ds-notification-color-warning-background);--mod-notification-icon: var(--ds-notification-color-warning-icon)}:host(.is-danger){--mod-notification-color-text: var(--ds-notification-color-danger-text);--mod-notification-color-border: var(--ds-notification-color-danger-border);--mod-notification-color-background: var(--ds-notification-color-danger-background);--mod-notification-icon: var(--ds-notification-color-danger-icon)}:host(.is-outline-base){--mod-notification-color-text: var(--ds-notification-color-outline-base-text);--mod-notification-color-border: var(--ds-notification-color-outline-base-border);--mod-notification-color-background: var(--ds-notification-color-outline-base-background);--mod-notification-icon: var(--ds-notification-color-outline-base-icon)}:host(.is-outline-purple){--mod-notification-color-text: var(--ds-notification-color-outline-purple-text);--mod-notification-color-border: var(--ds-notification-color-outline-purple-border);--mod-notification-color-background: var(--ds-notification-color-outline-purple-background);--mod-notification-icon: var(--ds-notification-color-outline-purple-icon)}:host(.is-outline-green){--mod-notification-color-text: var(--ds-notification-color-outline-green-text);--mod-notification-color-border: var(--ds-notification-color-outline-green-border);--mod-notification-color-background: var(--ds-notification-color-outline-green-background);--mod-notification-icon: var(--ds-notification-color-outline-green-icon)}:host(.is-outline-yellow){--mod-notification-color-text: var(--ds-notification-color-outline-yellow-text);--mod-notification-color-border: var(--ds-notification-color-outline-yellow-border);--mod-notification-color-background: var(--ds-notification-color-outline-yellow-background);--mod-notification-icon: var(--ds-notification-color-outline-yellow-icon)}:host(.is-outline-red){--mod-notification-color-text: var(--ds-notification-color-outline-red-text);--mod-notification-color-border: var(--ds-notification-color-outline-red-border);--mod-notification-color-background: var(--ds-notification-color-outline-red-background);--mod-notification-icon: var(--ds-notification-color-outline-red-icon)}:host(.is-sm){--mod-notification-space: var(--ds-card-space-sm-device)}:host(.is-md){--mod-notification-space: var(--ds-card-space-md-device)}:host(.is-lg){--mod-notification-space: var(--ds-card-space-lg-device)}:host{display:block}
@@ -77,14 +77,14 @@ export class Notification {
77
77
  const a11yAttributes = this.alert
78
78
  ? { 'role': 'alert', 'aria-live': 'assertive', 'aria-atomic': 'true' }
79
79
  : { 'role': 'status', 'aria-live': 'polite', 'aria-atomic': 'true' };
80
- return (h(Host, Object.assign({ key: '1edcd6336e71620b77dcdcd17ad0cd35b42b3b30' }, a11yAttributes, { class: {
80
+ return (h(Host, Object.assign({ key: 'f3e829a86b22c64fe93b06b2664b398a7248d49f' }, a11yAttributes, { class: {
81
81
  'has-no-icon': this.noIcon,
82
82
  [`is-${this.color}`]: hasValue(this.color),
83
83
  [`is-${size}`]: hasValue(this.size),
84
- } }), h("section", { key: '52d3b15486dc26950c64f4d20a6664abd2b98d79', id: "notification", part: "section" }, this.closable && (h("ds-close", { key: '5102d95443bd14776df77ebc80f274cfe9af5e43', part: "close", onClick: ev => {
84
+ } }), h("section", { key: 'f8ff4cdc8379ec73ac00a6654478a0039dd746f1', id: "notification", part: "section" }, this.closable && (h("ds-close", { key: 'f72f440db26de1ef40ca24ec9c9f06015ce31126', part: "close", onClick: ev => {
85
85
  stopEventBubbling(ev);
86
86
  this.close();
87
- } })), hasValue(this.heading) && h("h2", { key: '0805c258051a652a721a43e931a5592b59135dbc', part: "heading" }, this.heading), h("span", { key: '611f25893c7c7654df1ea374bb075752bcd07b86' }, h("slot", { key: '55724fb85349db975b4a089d7b433517572aad4f' })))));
87
+ } })), hasValue(this.heading) && h("h2", { key: 'adae5186e4009153c2d93645bdf8ab49e4da9df7', part: "heading" }, this.heading), h("span", { key: '979fc05e46a6c9220826efeac704f87f23f9ce49' }, h("slot", { key: '88929c8c561498c89755da6bd6d36819a7e6d390' })))));
88
88
  }
89
89
  static get is() { return "ds-notification"; }
90
90
  static get encapsulation() { return "shadow"; }
@@ -6,7 +6,7 @@ import { h, } from "@stencil/core";
6
6
  import isEmpty from "lodash/isEmpty";
7
7
  import isNaN from "lodash/isNaN";
8
8
  import isNil from "lodash/isNil";
9
- import { inheritAttributes, FormControl, stopEventBubbling, debounceEvent, Logger, getDecimalSeparator, getThousandSeparator, hasValue, OneOf, Type, } from "../../utils/index";
9
+ import { inheritAttributes, FormControl, stopEventBubbling, debounceEvent, Logger, getDecimalSeparator, getThousandSeparator, hasValue, OneOf, Type, watchInvalidTextSlot, } from "../../utils/index";
10
10
  import { defaultConfig, ListenToConfig } from "../../global/index";
11
11
  import { isNotNumber, mapDecimalSeparator, toFixedNumber, toNumber, toUserFormattedNumber, validateKeyDown, } from "./number-input.utils";
12
12
  import { Field } from "../input/field.util";
@@ -15,6 +15,7 @@ import { INPUT_COLORS } from "../input/input.interfaces";
15
15
  * Number input renders a specialized text input for numeric values with increment/decrement buttons, formatting, and validation.
16
16
  *
17
17
  * @slot - The number input field content and surrounding elements.
18
+ * @slot invalid-text - Overrides the `invalidText` prop with custom markup, shown instead of the description when `invalid` is `true`.
18
19
  * @part input - The native HTML input element.
19
20
  * @part prefix - The prefix wrapper (if used).
20
21
  * @part suffix - The suffix wrapper (if used).
@@ -28,6 +29,7 @@ export class NumberInput {
28
29
  this.control = new FormControl(this);
29
30
  this.lastValue = '';
30
31
  this.focused = false;
32
+ this.hasInvalidTextSlotContent = false;
31
33
  this.language = defaultConfig.language;
32
34
  this.region = defaultConfig.region;
33
35
  this.nativeInputValue = '';
@@ -197,6 +199,13 @@ export class NumberInput {
197
199
  connectedCallback() {
198
200
  this.debounceChanged();
199
201
  this.control.connectedCallback();
202
+ this.disconnectInvalidTextSlotWatcher = watchInvalidTextSlot(this.el, hasContent => {
203
+ this.hasInvalidTextSlotContent = hasContent;
204
+ });
205
+ }
206
+ disconnectedCallback() {
207
+ var _a;
208
+ (_a = this.disconnectInvalidTextSlotWatcher) === null || _a === void 0 ? void 0 : _a.call(this);
200
209
  }
201
210
  componentWillLoad() {
202
211
  this.inheritedAttributes = inheritAttributes(this.el, ['aria-label', 'tabindex', 'title']);
@@ -292,7 +301,8 @@ export class NumberInput {
292
301
  * ------------------------------------------------------
293
302
  */
294
303
  render() {
295
- return (h(Field, { key: 'a8af3f272c3522c566a98904ebbc2dcfcd85352d', disabled: this.disabled, color: this.color, invalid: this.invalid, label: this.label, description: this.description, invalidText: this.invalidText, required: this.required, language: this.language }, h("input", Object.assign({ key: '29f61a574130cef9184b4252b60fe8a69c8eadf5', id: "input", part: "input", type: "text", inputMode: "decimal", pattern: this.inputPattern, ref: el => (this.control.nativeEl = el), "aria-describedby": "description", "aria-invalid": this.invalid === true ? 'true' : 'false', name: this.name, disabled: this.disabled, placeholder: this.placeholder || '', readonly: this.readonly, required: this.required, min: this.min, max: this.max, value: this.nativeInputValue, onInput: ev => this.handleInput(ev), onFocus: ev => this.handleFocus(ev), onBlur: ev => this.handleBlur(ev), onClick: ev => this.control.onClick(ev), onKeyDown: ev => this.handleKeydown(ev), onKeyPress: ev => this.dsKeyPress.emit(ev) }, this.inheritedAttributes))));
304
+ const isInvalid = this.invalid || this.hasInvalidTextSlotContent;
305
+ return (h(Field, { key: 'a185df149be41135c6b939ad1c3ad5ba57a38e94', disabled: this.disabled, color: this.color, invalid: isInvalid, label: this.label, description: this.description, invalidText: this.invalidText, required: this.required, language: this.language }, h("input", Object.assign({ key: 'a7461115068e7a365ba4b0e25501d96be6de099d', id: "input", part: "input", type: "text", inputMode: "decimal", pattern: this.inputPattern, ref: el => (this.control.nativeEl = el), "aria-describedby": "description", "aria-invalid": isInvalid ? 'true' : 'false', name: this.name, disabled: this.disabled, placeholder: this.placeholder || '', readonly: this.readonly, required: this.required, min: this.min, max: this.max, value: this.nativeInputValue, onInput: ev => this.handleInput(ev), onFocus: ev => this.handleFocus(ev), onBlur: ev => this.handleBlur(ev), onClick: ev => this.control.onClick(ev), onKeyDown: ev => this.handleKeydown(ev), onKeyPress: ev => this.dsKeyPress.emit(ev) }, this.inheritedAttributes))));
296
306
  }
297
307
  static get is() { return "ds-number-input"; }
298
308
  static get encapsulation() { return "shadow"; }
@@ -701,6 +711,7 @@ export class NumberInput {
701
711
  static get states() {
702
712
  return {
703
713
  "focused": {},
714
+ "hasInvalidTextSlotContent": {},
704
715
  "language": {},
705
716
  "region": {},
706
717
  "nativeInputValue": {},