@oiz/stzh-components 4.12.1-beta1 → 4.12.2

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 (900) hide show
  1. package/dist/cjs/{index-N0ol04NL.js → index-D-_ltZeJ.js} +3 -3
  2. package/dist/cjs/{index-N0ol04NL.js.map → index-D-_ltZeJ.js.map} +1 -1
  3. package/dist/cjs/loader.cjs.js +2 -2
  4. package/dist/cjs/stzh-accordion_3.cjs.entry.js +2 -2
  5. package/dist/cjs/stzh-actions_6.cjs.entry.js +2 -2
  6. package/dist/cjs/stzh-actionset.cjs.entry.js +1 -1
  7. package/dist/cjs/stzh-amount.cjs.entry.js +1 -1
  8. package/dist/cjs/stzh-anchornav.cjs.entry.js +1 -1
  9. package/dist/cjs/stzh-app-nav.cjs.entry.js +1 -1
  10. package/dist/cjs/stzh-appointments.cjs.entry.js +2 -2
  11. package/dist/cjs/stzh-archivelist.cjs.entry.js +1 -1
  12. package/dist/cjs/stzh-audio.cjs.entry.js +2 -2
  13. package/dist/cjs/stzh-badge_3.cjs.entry.js +2 -2
  14. package/dist/cjs/stzh-banner.cjs.entry.js +1 -1
  15. package/dist/cjs/stzh-breadcrumb_2.cjs.entry.js +1 -1
  16. package/dist/cjs/stzh-buttongroup.cjs.entry.js +1 -1
  17. package/dist/cjs/stzh-calendar.cjs.entry.js +1 -1
  18. package/dist/cjs/stzh-card-navigation.cjs.entry.js +2 -2
  19. package/dist/cjs/stzh-card-searchresult.cjs.entry.js +2 -2
  20. package/dist/cjs/stzh-card-superteaser.cjs.entry.js +2 -2
  21. package/dist/cjs/stzh-card_2.cjs.entry.js +2 -2
  22. package/dist/cjs/stzh-carousel.cjs.entry.js +2 -2
  23. package/dist/cjs/stzh-chart.cjs.entry.js +1 -1
  24. package/dist/cjs/stzh-checkbox.cjs.entry.js +36 -6
  25. package/dist/cjs/stzh-checkboxgroup.cjs.entry.js +3 -3
  26. package/dist/cjs/stzh-chip_2.cjs.entry.js +3 -3
  27. package/dist/cjs/stzh-chipgroup.cjs.entry.js +1 -1
  28. package/dist/cjs/stzh-clamp.cjs.entry.js +1 -1
  29. package/dist/cjs/stzh-company-logo.cjs.entry.js +1 -1
  30. package/dist/cjs/stzh-components.cjs.js +2 -2
  31. package/dist/cjs/stzh-contact-cv.cjs.entry.js +2 -2
  32. package/dist/cjs/stzh-contact.cjs.entry.js +2 -2
  33. package/dist/cjs/stzh-container_2.cjs.entry.js +1 -1
  34. package/dist/cjs/stzh-content.cjs.entry.js +1 -1
  35. package/dist/cjs/stzh-cta.cjs.entry.js +2 -2
  36. package/dist/cjs/stzh-datalist_3.cjs.entry.js +2 -2
  37. package/dist/cjs/stzh-datamessagelist-item.cjs.entry.js +1 -1
  38. package/dist/cjs/stzh-datamessagelist.cjs.entry.js +1 -1
  39. package/dist/cjs/stzh-datatable.cjs.entry.js +2 -2
  40. package/dist/cjs/stzh-datepicker_3.cjs.entry.js +36 -6
  41. package/dist/cjs/stzh-daterange.cjs.entry.js +2 -2
  42. package/dist/cjs/stzh-details.cjs.entry.js +2 -2
  43. package/dist/cjs/stzh-dialog.cjs.entry.js +2 -2
  44. package/dist/cjs/stzh-disturber.cjs.entry.js +2 -2
  45. package/dist/cjs/stzh-dropdown.cjs.entry.js +3 -3
  46. package/dist/cjs/stzh-editor.cjs.entry.js +1 -1
  47. package/dist/cjs/stzh-eventdata.cjs.entry.js +1 -1
  48. package/dist/cjs/stzh-eventinfo.cjs.entry.js +2 -2
  49. package/dist/cjs/stzh-feedreader-item.cjs.entry.js +2 -2
  50. package/dist/cjs/stzh-feedreader.cjs.entry.js +2 -2
  51. package/dist/cjs/stzh-figure.cjs.entry.js +2 -2
  52. package/dist/cjs/stzh-flyingfocus.cjs.entry.js +1 -1
  53. package/dist/cjs/stzh-footer.cjs.entry.js +2 -2
  54. package/dist/cjs/stzh-gallery.cjs.entry.js +1 -1
  55. package/dist/cjs/stzh-geo-ref-data.cjs.entry.js +1 -1
  56. package/dist/cjs/stzh-ghettobox.cjs.entry.js +2 -2
  57. package/dist/cjs/stzh-header_3.cjs.entry.js +2 -2
  58. package/dist/cjs/stzh-heading.cjs.entry.js +1 -1
  59. package/dist/cjs/stzh-homepage-search.cjs.entry.js +1 -1
  60. package/dist/cjs/stzh-homepage-service-highlights.cjs.entry.js +2 -2
  61. package/dist/cjs/stzh-hr.cjs.entry.js +1 -1
  62. package/dist/cjs/stzh-hspace.cjs.entry.js +1 -1
  63. package/dist/cjs/stzh-http-error.cjs.entry.js +1 -1
  64. package/dist/cjs/stzh-iframe.cjs.entry.js +1 -1
  65. package/dist/cjs/stzh-imagecomparison.cjs.entry.js +1 -1
  66. package/dist/cjs/{stzh-input-description-Dbubu75V.js → stzh-input-description-BCu4biHD.js} +3 -3
  67. package/dist/cjs/{stzh-input-description-Dbubu75V.js.map → stzh-input-description-BCu4biHD.js.map} +1 -1
  68. package/dist/cjs/stzh-input.cjs.entry.js +31 -36
  69. package/dist/cjs/stzh-invert.cjs.entry.js +1 -1
  70. package/dist/cjs/stzh-link.cjs.entry.js +2 -2
  71. package/dist/cjs/stzh-linklist.cjs.entry.js +2 -2
  72. package/dist/cjs/stzh-list_2.cjs.entry.js +1 -1
  73. package/dist/cjs/stzh-loader.cjs.entry.js +1 -1
  74. package/dist/cjs/stzh-loadingbar.cjs.entry.js +1 -1
  75. package/dist/cjs/stzh-menu_2.cjs.entry.js +2 -2
  76. package/dist/cjs/stzh-message.cjs.entry.js +4 -4
  77. package/dist/cjs/stzh-microsite-teaserlist.cjs.entry.js +1 -1
  78. package/dist/cjs/stzh-monthyearpicker.cjs.entry.js +1 -1
  79. package/dist/cjs/stzh-offline-indicator.cjs.entry.js +1 -1
  80. package/dist/cjs/stzh-page-skiplinks.cjs.entry.js +1 -1
  81. package/dist/cjs/stzh-pagebottom.cjs.entry.js +1 -1
  82. package/dist/cjs/stzh-pagecontent.cjs.entry.js +2 -2
  83. package/dist/cjs/stzh-pagetitle-hero.cjs.entry.js +2 -2
  84. package/dist/cjs/stzh-pagetitle-home.cjs.entry.js +2 -2
  85. package/dist/cjs/stzh-pagetitle.cjs.entry.js +2 -2
  86. package/dist/cjs/stzh-panorama.cjs.entry.js +1 -1
  87. package/dist/cjs/stzh-pi-content-navigation.cjs.entry.js +2 -2
  88. package/dist/cjs/stzh-pi-menu.cjs.entry.js +1 -1
  89. package/dist/cjs/stzh-pi-pagetitle.cjs.entry.js +2 -2
  90. package/dist/cjs/stzh-pi-quote.cjs.entry.js +1 -1
  91. package/dist/cjs/stzh-pi-teaser-layout-item.cjs.entry.js +1 -1
  92. package/dist/cjs/stzh-pi-teaser-layout.cjs.entry.js +2 -2
  93. package/dist/cjs/stzh-pi-teaser.cjs.entry.js +2 -2
  94. package/dist/cjs/stzh-pkzh-qr.cjs.entry.js +1 -1
  95. package/dist/cjs/stzh-popover.cjs.entry.js +2 -2
  96. package/dist/cjs/stzh-print_2.cjs.entry.js +2 -2
  97. package/dist/cjs/stzh-quote.cjs.entry.js +1 -1
  98. package/dist/cjs/stzh-rating.cjs.entry.js +37 -9
  99. package/dist/cjs/stzh-ratio.cjs.entry.js +1 -1
  100. package/dist/cjs/stzh-readspeaker.cjs.entry.js +2 -2
  101. package/dist/cjs/stzh-richtext.cjs.entry.js +1 -1
  102. package/dist/cjs/stzh-saptcha.cjs.entry.js +1 -1
  103. package/dist/cjs/stzh-scrollup.cjs.entry.js +2 -2
  104. package/dist/cjs/stzh-search.cjs.entry.js +2 -2
  105. package/dist/cjs/stzh-section.cjs.entry.js +2 -2
  106. package/dist/cjs/stzh-show.cjs.entry.js +1 -1
  107. package/dist/cjs/stzh-sitemap.cjs.entry.js +1 -1
  108. package/dist/cjs/stzh-skin-portal-mitwirken.cjs.entry.js +1 -1
  109. package/dist/cjs/stzh-skin-storybook-preview.cjs.entry.js +1 -1
  110. package/dist/cjs/stzh-skiplink.cjs.entry.js +1 -1
  111. package/dist/cjs/stzh-socialmediastream-item.cjs.entry.js +1 -1
  112. package/dist/cjs/stzh-socialmediastream.cjs.entry.js +2 -2
  113. package/dist/cjs/stzh-stepper-item.cjs.entry.js +1 -1
  114. package/dist/cjs/stzh-stepper.cjs.entry.js +1 -1
  115. package/dist/cjs/stzh-sticky-actions.cjs.entry.js +2 -2
  116. package/dist/cjs/stzh-sticky.cjs.entry.js +2 -2
  117. package/dist/cjs/stzh-table.cjs.entry.js +2 -2
  118. package/dist/cjs/stzh-text.cjs.entry.js +1 -1
  119. package/dist/cjs/stzh-textandimage.cjs.entry.js +2 -2
  120. package/dist/cjs/stzh-timeline-item.cjs.entry.js +2 -2
  121. package/dist/cjs/stzh-timeline.cjs.entry.js +1 -1
  122. package/dist/cjs/stzh-timepicker.cjs.entry.js +1 -1
  123. package/dist/cjs/stzh-toast_2.cjs.entry.js +2 -2
  124. package/dist/cjs/stzh-toggle.cjs.entry.js +36 -7
  125. package/dist/cjs/stzh-tooltip.cjs.entry.js +2 -2
  126. package/dist/cjs/stzh-twocolumns.cjs.entry.js +2 -2
  127. package/dist/cjs/stzh-upload.cjs.entry.js +37 -8
  128. package/dist/cjs/stzh-vbz-carousel.cjs.entry.js +1 -1
  129. package/dist/cjs/stzh-vbz-connection-finder.cjs.entry.js +1 -1
  130. package/dist/cjs/stzh-vbz-intro.cjs.entry.js +2 -2
  131. package/dist/cjs/stzh-vbz-linechip.cjs.entry.js +1 -1
  132. package/dist/cjs/stzh-vbz-majorticker.cjs.entry.js +1 -1
  133. package/dist/cjs/stzh-vbz-ticker.cjs.entry.js +1 -1
  134. package/dist/cjs/stzh-visuallyhidden.cjs.entry.js +1 -1
  135. package/dist/cjs/stzh-vspace.cjs.entry.js +1 -1
  136. package/dist/cjs/stzh-youtube.cjs.entry.js +1 -1
  137. package/dist/cjs/{utils-BtvTjHH2.js → utils-CjJm84Uq.js} +59 -2
  138. package/dist/cjs/utils-CjJm84Uq.js.map +1 -0
  139. package/dist/collection/components/stzh-checkbox/stzh-checkbox.js +40 -4
  140. package/dist/collection/components/stzh-checkbox/stzh-checkbox.js.map +1 -1
  141. package/dist/collection/components/stzh-checkbox/stzh-checkbox.stories.js +12 -0
  142. package/dist/collection/components/stzh-input/stzh-input.js +29 -34
  143. package/dist/collection/components/stzh-input/stzh-input.js.map +1 -1
  144. package/dist/collection/components/stzh-input/stzh-input.stories.js +32 -9
  145. package/dist/collection/components/stzh-message/stzh-message.js +5 -5
  146. package/dist/collection/components/stzh-message/stzh-message.js.map +1 -1
  147. package/dist/collection/components/stzh-message/stzh-message.stories.js +127 -2
  148. package/dist/collection/components/stzh-radio/stzh-radio.js +40 -4
  149. package/dist/collection/components/stzh-radio/stzh-radio.js.map +1 -1
  150. package/dist/collection/components/stzh-radio/stzh-radio.stories.js +13 -1
  151. package/dist/collection/components/stzh-rating/stzh-rating.js +39 -9
  152. package/dist/collection/components/stzh-rating/stzh-rating.js.map +1 -1
  153. package/dist/collection/components/stzh-rating/stzh-rating.stories.js +11 -0
  154. package/dist/collection/components/stzh-toggle/stzh-toggle.js +40 -5
  155. package/dist/collection/components/stzh-toggle/stzh-toggle.js.map +1 -1
  156. package/dist/collection/components/stzh-toggle/stzh-toggle.stories.js +15 -0
  157. package/dist/collection/components/stzh-upload/stzh-upload.js +37 -6
  158. package/dist/collection/components/stzh-upload/stzh-upload.js.map +1 -1
  159. package/dist/collection/components/stzh-upload/stzh-upload.stories.js +9 -0
  160. package/dist/collection/utils/utils.js +56 -0
  161. package/dist/collection/utils/utils.js.map +1 -1
  162. package/dist/components/index.js +2 -2
  163. package/dist/components/{p-5iYOoBns.js → p-4Vt8Vqot.js} +3 -3
  164. package/dist/components/{p-5iYOoBns.js.map → p-4Vt8Vqot.js.map} +1 -1
  165. package/dist/components/{p-H9Yh6P94.js → p-6cYGuE14.js} +12 -12
  166. package/dist/components/{p-H9Yh6P94.js.map → p-6cYGuE14.js.map} +1 -1
  167. package/dist/components/{p-CzvAx4N0.js → p-AIPoMvau.js} +3 -3
  168. package/dist/components/{p-CzvAx4N0.js.map → p-AIPoMvau.js.map} +1 -1
  169. package/dist/components/{p-8vUD5Pvs.js → p-B44NYxqN.js} +38 -43
  170. package/dist/components/p-B44NYxqN.js.map +1 -0
  171. package/dist/components/{p-BcfJQ2iG.js → p-BB0rFoJE.js} +10 -10
  172. package/dist/components/{p-BcfJQ2iG.js.map → p-BB0rFoJE.js.map} +1 -1
  173. package/dist/components/{p-DajXzNIS.js → p-BBg6OWDc.js} +3 -3
  174. package/dist/components/{p-DajXzNIS.js.map → p-BBg6OWDc.js.map} +1 -1
  175. package/dist/components/{p-B9l_iEm8.js → p-BDTpabg7.js} +3 -3
  176. package/dist/components/{p-B9l_iEm8.js.map → p-BDTpabg7.js.map} +1 -1
  177. package/dist/components/{p-ulFcx8BE.js → p-BK6Q89R0.js} +6 -6
  178. package/dist/components/{p-ulFcx8BE.js.map → p-BK6Q89R0.js.map} +1 -1
  179. package/dist/components/{p-CLC2TbXk.js → p-BTNpLREK.js} +8 -8
  180. package/dist/components/{p-CLC2TbXk.js.map → p-BTNpLREK.js.map} +1 -1
  181. package/dist/components/{p-B6XvNGiA.js → p-BYIlBCuU.js} +7 -7
  182. package/dist/components/{p-B6XvNGiA.js.map → p-BYIlBCuU.js.map} +1 -1
  183. package/dist/components/{p-dZ-dwebM.js → p-BaU8F8yT.js} +12 -12
  184. package/dist/components/{p-dZ-dwebM.js.map → p-BaU8F8yT.js.map} +1 -1
  185. package/dist/components/{p-Cq0yCqAz.js → p-BbXrDPd7.js} +4 -4
  186. package/dist/components/{p-Cq0yCqAz.js.map → p-BbXrDPd7.js.map} +1 -1
  187. package/dist/components/{p-Cg0FICEV.js → p-Bc9gWpUe.js} +13 -13
  188. package/dist/components/{p-Cg0FICEV.js.map → p-Bc9gWpUe.js.map} +1 -1
  189. package/dist/components/{p-zoQGoMI3.js → p-BdtE_fpY.js} +3 -3
  190. package/dist/components/{p-zoQGoMI3.js.map → p-BdtE_fpY.js.map} +1 -1
  191. package/dist/components/{p-D6v9nUys.js → p-BeN1KWYK.js} +6 -6
  192. package/dist/components/{p-D6v9nUys.js.map → p-BeN1KWYK.js.map} +1 -1
  193. package/dist/components/{p-C4RWomy3.js → p-Bg2ganSs.js} +3 -3
  194. package/dist/components/{p-C4RWomy3.js.map → p-Bg2ganSs.js.map} +1 -1
  195. package/dist/components/{p-UU-uJ6rm.js → p-BiFb4c_S.js} +6 -6
  196. package/dist/components/{p-UU-uJ6rm.js.map → p-BiFb4c_S.js.map} +1 -1
  197. package/dist/components/{p-DWVF3j-K.js → p-BiZ4OWbq.js} +3 -3
  198. package/dist/components/{p-DWVF3j-K.js.map → p-BiZ4OWbq.js.map} +1 -1
  199. package/dist/components/{p-nQojTf6Q.js → p-BmG3hFM8.js} +3 -3
  200. package/dist/components/{p-nQojTf6Q.js.map → p-BmG3hFM8.js.map} +1 -1
  201. package/dist/components/{p-BphPIp_9.js → p-BsRNqz_b.js} +6 -6
  202. package/dist/components/{p-BphPIp_9.js.map → p-BsRNqz_b.js.map} +1 -1
  203. package/dist/components/{p-DOs1ZWHT.js → p-Bsor2Gp2.js} +8 -8
  204. package/dist/components/{p-DOs1ZWHT.js.map → p-Bsor2Gp2.js.map} +1 -1
  205. package/dist/components/{p-B5bRe2QR.js → p-C0lp0Fm8.js} +3 -3
  206. package/dist/components/{p-B5bRe2QR.js.map → p-C0lp0Fm8.js.map} +1 -1
  207. package/dist/components/{p-C9g8C0mi.js → p-C3-tTDZG.js} +4 -4
  208. package/dist/components/{p-C9g8C0mi.js.map → p-C3-tTDZG.js.map} +1 -1
  209. package/dist/components/{p-CtfINZeC.js → p-C3YgJPrk.js} +3 -3
  210. package/dist/components/{p-CtfINZeC.js.map → p-C3YgJPrk.js.map} +1 -1
  211. package/dist/components/{p-Di88jQY_.js → p-CKLwcqdK.js} +10 -10
  212. package/dist/components/{p-Di88jQY_.js.map → p-CKLwcqdK.js.map} +1 -1
  213. package/dist/components/{p-C4ew4BWF.js → p-CPdCE2fo.js} +7 -7
  214. package/dist/components/{p-C4ew4BWF.js.map → p-CPdCE2fo.js.map} +1 -1
  215. package/dist/components/{p-C7Wum7Zf.js → p-CRo_30JG.js} +3 -3
  216. package/dist/components/{p-C7Wum7Zf.js.map → p-CRo_30JG.js.map} +1 -1
  217. package/dist/components/{p-C8p_ftK9.js → p-CSqS_CuA.js} +3 -3
  218. package/dist/components/{p-C8p_ftK9.js.map → p-CSqS_CuA.js.map} +1 -1
  219. package/dist/components/{p-BHnUxFJO.js → p-CUN47AJ6.js} +4 -4
  220. package/dist/components/{p-BHnUxFJO.js.map → p-CUN47AJ6.js.map} +1 -1
  221. package/dist/components/{p-DjTm4fFR.js → p-CUfKtr7R.js} +3 -3
  222. package/dist/components/{p-DjTm4fFR.js.map → p-CUfKtr7R.js.map} +1 -1
  223. package/dist/components/{p-DmE9OpGH.js → p-CVHui8fR.js} +4 -4
  224. package/dist/components/{p-DmE9OpGH.js.map → p-CVHui8fR.js.map} +1 -1
  225. package/dist/components/{p-Bouerm1u.js → p-CWliRPVy.js} +6 -6
  226. package/dist/components/{p-Bouerm1u.js.map → p-CWliRPVy.js.map} +1 -1
  227. package/dist/components/{p-SGLayYK3.js → p-CX72zNNm.js} +3 -3
  228. package/dist/components/{p-SGLayYK3.js.map → p-CX72zNNm.js.map} +1 -1
  229. package/dist/components/{p-o34Djtsg.js → p-CXhl6EKC.js} +6 -6
  230. package/dist/components/{p-o34Djtsg.js.map → p-CXhl6EKC.js.map} +1 -1
  231. package/dist/components/{p-DONIQb7T.js → p-ChcKhy4e.js} +4 -4
  232. package/dist/components/{p-DONIQb7T.js.map → p-ChcKhy4e.js.map} +1 -1
  233. package/dist/components/{p-SyDKOxzb.js → p-CriJMdWt.js} +3 -3
  234. package/dist/components/{p-SyDKOxzb.js.map → p-CriJMdWt.js.map} +1 -1
  235. package/dist/components/{p-CK7gMyRU.js → p-CuR6yL1b.js} +3 -3
  236. package/dist/components/{p-CK7gMyRU.js.map → p-CuR6yL1b.js.map} +1 -1
  237. package/dist/components/{p-DMh6Sy1I.js → p-Cy--N6et.js} +9 -9
  238. package/dist/components/{p-DMh6Sy1I.js.map → p-Cy--N6et.js.map} +1 -1
  239. package/dist/components/{p-CPrTAi5M.js → p-D2yGNkLU.js} +4 -4
  240. package/dist/components/{p-CPrTAi5M.js.map → p-D2yGNkLU.js.map} +1 -1
  241. package/dist/components/{p-DbtxIjHJ.js → p-D4c33pwr.js} +13 -13
  242. package/dist/components/{p-DbtxIjHJ.js.map → p-D4c33pwr.js.map} +1 -1
  243. package/dist/components/{p-CN5apKPb.js → p-DBHUqFOB.js} +59 -3
  244. package/dist/components/p-DBHUqFOB.js.map +1 -0
  245. package/dist/components/{p-B2I6UGb-.js → p-DDAHV4ye.js} +4 -4
  246. package/dist/components/{p-B2I6UGb-.js.map → p-DDAHV4ye.js.map} +1 -1
  247. package/dist/components/{p-BSx9yT8P.js → p-DEfzwFSm.js} +3 -3
  248. package/dist/components/{p-BSx9yT8P.js.map → p-DEfzwFSm.js.map} +1 -1
  249. package/dist/components/{p-B-Td5eEF.js → p-DFEhv2Xw.js} +3 -3
  250. package/dist/components/{p-B-Td5eEF.js.map → p-DFEhv2Xw.js.map} +1 -1
  251. package/dist/components/{p-CzWLgw4z.js → p-DL-zsyu2.js} +11 -11
  252. package/dist/components/{p-CzWLgw4z.js.map → p-DL-zsyu2.js.map} +1 -1
  253. package/dist/components/{p-DGZVtVjz.js → p-DLBRj3YX.js} +4 -4
  254. package/dist/components/{p-DGZVtVjz.js.map → p-DLBRj3YX.js.map} +1 -1
  255. package/dist/components/{p-BWt1OlCP.js → p-DOnc5uKa.js} +6 -6
  256. package/dist/components/{p-BWt1OlCP.js.map → p-DOnc5uKa.js.map} +1 -1
  257. package/dist/components/{p-XSAPGv74.js → p-DPyihiYB.js} +4 -4
  258. package/dist/components/{p-XSAPGv74.js.map → p-DPyihiYB.js.map} +1 -1
  259. package/dist/components/{p-DvQXjdsB.js → p-DT0ux3Yn.js} +5 -5
  260. package/dist/components/{p-DvQXjdsB.js.map → p-DT0ux3Yn.js.map} +1 -1
  261. package/dist/components/{p-DsHYayb4.js → p-DT8WI_DQ.js} +6 -6
  262. package/dist/components/{p-DsHYayb4.js.map → p-DT8WI_DQ.js.map} +1 -1
  263. package/dist/components/{p-DcQjVFab.js → p-DTs8UJec.js} +4 -4
  264. package/dist/components/{p-DcQjVFab.js.map → p-DTs8UJec.js.map} +1 -1
  265. package/dist/components/{p-DX6blqyR.js → p-DXesblGY.js} +7 -7
  266. package/dist/components/{p-DX6blqyR.js.map → p-DXesblGY.js.map} +1 -1
  267. package/dist/components/{p-BKzN4XU2.js → p-DaIlRoxA.js} +4 -4
  268. package/dist/components/{p-BKzN4XU2.js.map → p-DaIlRoxA.js.map} +1 -1
  269. package/dist/components/{p-RMVTGhIS.js → p-Deiikj-l.js} +8 -8
  270. package/dist/components/{p-RMVTGhIS.js.map → p-Deiikj-l.js.map} +1 -1
  271. package/dist/components/{p-CnJ7i4Ge.js → p-DmRzqkUn.js} +4 -4
  272. package/dist/components/{p-CnJ7i4Ge.js.map → p-DmRzqkUn.js.map} +1 -1
  273. package/dist/components/{p-Dn5GUbNz.js → p-Dp2_qh2g.js} +44 -12
  274. package/dist/components/p-Dp2_qh2g.js.map +1 -0
  275. package/dist/components/{p-BA-k3iZ-.js → p-DrLVNdlm.js} +6 -6
  276. package/dist/components/{p-BA-k3iZ-.js.map → p-DrLVNdlm.js.map} +1 -1
  277. package/dist/components/{p-CjdErtj_.js → p-EWvxAi6Y.js} +44 -12
  278. package/dist/components/p-EWvxAi6Y.js.map +1 -0
  279. package/dist/components/{p-BopctUFy.js → p-JcCSKOtR.js} +7 -7
  280. package/dist/components/{p-BopctUFy.js.map → p-JcCSKOtR.js.map} +1 -1
  281. package/dist/components/{p-KSZ8qiZE.js → p-KKaagY0f.js} +10 -10
  282. package/dist/components/{p-KSZ8qiZE.js.map → p-KKaagY0f.js.map} +1 -1
  283. package/dist/components/{p-DehXKx39.js → p-R8ubFYun.js} +10 -10
  284. package/dist/components/{p-DehXKx39.js.map → p-R8ubFYun.js.map} +1 -1
  285. package/dist/components/{p-CVwbuuw7.js → p-RJIRkyt1.js} +9 -9
  286. package/dist/components/{p-CVwbuuw7.js.map → p-RJIRkyt1.js.map} +1 -1
  287. package/dist/components/{p-Bq8KQiri.js → p-SW8QhG6M.js} +3 -3
  288. package/dist/components/{p-Bq8KQiri.js.map → p-SW8QhG6M.js.map} +1 -1
  289. package/dist/components/{p-pWmESorT.js → p-dgzFBTky.js} +3 -3
  290. package/dist/components/{p-pWmESorT.js.map → p-dgzFBTky.js.map} +1 -1
  291. package/dist/components/{p-CdY_9ADR.js → p-i5bFTONl.js} +3 -3
  292. package/dist/components/{p-CdY_9ADR.js.map → p-i5bFTONl.js.map} +1 -1
  293. package/dist/components/{p-VpVgAuYa.js → p-rjZPG2L3.js} +3 -3
  294. package/dist/components/{p-VpVgAuYa.js.map → p-rjZPG2L3.js.map} +1 -1
  295. package/dist/components/{p-BS1D_VQu.js → p-wa6O8ip3.js} +4 -4
  296. package/dist/components/{p-BS1D_VQu.js.map → p-wa6O8ip3.js.map} +1 -1
  297. package/dist/components/{p-B0HsC5lT.js → p-xKyBBmWw.js} +3 -3
  298. package/dist/components/{p-B0HsC5lT.js.map → p-xKyBBmWw.js.map} +1 -1
  299. package/dist/components/{p-Cb-REzD8.js → p-xa5yO3I6.js} +8 -8
  300. package/dist/components/{p-Cb-REzD8.js.map → p-xa5yO3I6.js.map} +1 -1
  301. package/dist/components/stzh-accordion-item.js +1 -1
  302. package/dist/components/stzh-accordion.js +1 -1
  303. package/dist/components/stzh-actions.js +1 -1
  304. package/dist/components/stzh-actionset.js +1 -1
  305. package/dist/components/stzh-amount.js +9 -9
  306. package/dist/components/stzh-anchornav.js +5 -5
  307. package/dist/components/stzh-app-nav.js +1 -1
  308. package/dist/components/stzh-appointments.js +14 -14
  309. package/dist/components/stzh-archivelist.js +7 -7
  310. package/dist/components/stzh-audio.js +6 -6
  311. package/dist/components/stzh-badge.js +1 -1
  312. package/dist/components/stzh-banner.js +4 -4
  313. package/dist/components/stzh-breadcrumb.js +1 -1
  314. package/dist/components/stzh-button.js +1 -1
  315. package/dist/components/stzh-buttongroup.js +1 -1
  316. package/dist/components/stzh-calendar.js +1 -1
  317. package/dist/components/stzh-card-navigation.js +3 -3
  318. package/dist/components/stzh-card-searchresult.js +15 -15
  319. package/dist/components/stzh-card-superteaser.js +15 -15
  320. package/dist/components/stzh-card.js +1 -1
  321. package/dist/components/stzh-cardlist.js +1 -1
  322. package/dist/components/stzh-carousel.js +1 -1
  323. package/dist/components/stzh-cell.js +1 -1
  324. package/dist/components/stzh-chart.js +1 -1
  325. package/dist/components/stzh-checkbox.js +1 -1
  326. package/dist/components/stzh-checkboxgroup.js +6 -6
  327. package/dist/components/stzh-chip.js +1 -1
  328. package/dist/components/stzh-chipgroup.js +1 -1
  329. package/dist/components/stzh-chipselect.js +1 -1
  330. package/dist/components/stzh-clamp.js +1 -1
  331. package/dist/components/stzh-company-logo.js +1 -1
  332. package/dist/components/stzh-contact-cv.js +5 -5
  333. package/dist/components/stzh-contact.js +11 -11
  334. package/dist/components/stzh-container.js +1 -1
  335. package/dist/components/stzh-content.js +1 -1
  336. package/dist/components/stzh-cspace.js +1 -1
  337. package/dist/components/stzh-cta.js +4 -4
  338. package/dist/components/stzh-datalist-item.js +1 -1
  339. package/dist/components/stzh-datalist.js +1 -1
  340. package/dist/components/stzh-datamessagelist-item.js +11 -11
  341. package/dist/components/stzh-datamessagelist.js +1 -1
  342. package/dist/components/stzh-datatable.js +18 -18
  343. package/dist/components/stzh-datepicker.js +1 -1
  344. package/dist/components/stzh-daterange.js +5 -5
  345. package/dist/components/stzh-details.js +1 -1
  346. package/dist/components/stzh-dialog.js +1 -1
  347. package/dist/components/stzh-disturber.js +5 -5
  348. package/dist/components/stzh-dropdown.js +1 -1
  349. package/dist/components/stzh-editor.js +4 -4
  350. package/dist/components/stzh-eventdata.js +1 -1
  351. package/dist/components/stzh-eventinfo.js +6 -6
  352. package/dist/components/stzh-feedreader-item.js +3 -3
  353. package/dist/components/stzh-feedreader.js +9 -9
  354. package/dist/components/stzh-fieldset.js +1 -1
  355. package/dist/components/stzh-figure.js +1 -1
  356. package/dist/components/stzh-flyingfocus.js +1 -1
  357. package/dist/components/stzh-footer.js +5 -5
  358. package/dist/components/stzh-gallery.js +8 -8
  359. package/dist/components/stzh-geo-ref-data.js +24 -24
  360. package/dist/components/stzh-ghettobox.js +5 -5
  361. package/dist/components/stzh-header.js +1 -1
  362. package/dist/components/stzh-heading.js +1 -1
  363. package/dist/components/stzh-homepage-search.js +2 -2
  364. package/dist/components/stzh-homepage-service-highlights.js +7 -7
  365. package/dist/components/stzh-hr.js +1 -1
  366. package/dist/components/stzh-hspace.js +1 -1
  367. package/dist/components/stzh-http-error.js +7 -7
  368. package/dist/components/stzh-icon.js +1 -1
  369. package/dist/components/stzh-iframe.js +1 -1
  370. package/dist/components/stzh-imagecomparison.js +2 -2
  371. package/dist/components/stzh-input.js +1 -1
  372. package/dist/components/stzh-invert.js +1 -1
  373. package/dist/components/stzh-link.js +1 -1
  374. package/dist/components/stzh-linklist.js +11 -11
  375. package/dist/components/stzh-list-item.js +1 -1
  376. package/dist/components/stzh-list.js +1 -1
  377. package/dist/components/stzh-loader.js +1 -1
  378. package/dist/components/stzh-loadingbar.js +1 -1
  379. package/dist/components/stzh-menu-item.js +1 -1
  380. package/dist/components/stzh-menu.js +1 -1
  381. package/dist/components/stzh-message.js +1 -1
  382. package/dist/components/stzh-microsite-teaserlist.js +20 -20
  383. package/dist/components/stzh-monthyearpicker.js +5 -5
  384. package/dist/components/stzh-offline-indicator.js +6 -6
  385. package/dist/components/stzh-olmap.js +1 -1
  386. package/dist/components/stzh-overlay.js +1 -1
  387. package/dist/components/stzh-page-skiplinks.js +1 -1
  388. package/dist/components/stzh-pagebottom.js +8 -8
  389. package/dist/components/stzh-pagecontent.js +2 -2
  390. package/dist/components/stzh-pagetitle-hero.js +2 -2
  391. package/dist/components/stzh-pagetitle-home.js +3 -3
  392. package/dist/components/stzh-pagetitle.js +3 -3
  393. package/dist/components/stzh-pagination.js +1 -1
  394. package/dist/components/stzh-panorama.js +11 -11
  395. package/dist/components/stzh-pi-content-navigation.js +4 -4
  396. package/dist/components/stzh-pi-menu.js +3 -3
  397. package/dist/components/stzh-pi-pagetitle.js +3 -3
  398. package/dist/components/stzh-pi-quote.js +1 -1
  399. package/dist/components/stzh-pi-teaser-layout-item.js +1 -1
  400. package/dist/components/stzh-pi-teaser-layout.js +3 -3
  401. package/dist/components/stzh-pi-teaser.js +3 -3
  402. package/dist/components/stzh-pkzh-qr.js +20 -20
  403. package/dist/components/stzh-popover.js +1 -1
  404. package/dist/components/stzh-print.js +1 -1
  405. package/dist/components/stzh-quote.js +1 -1
  406. package/dist/components/stzh-radio.js +1 -1
  407. package/dist/components/stzh-radiogroup.js +1 -1
  408. package/dist/components/stzh-rating.js +42 -12
  409. package/dist/components/stzh-rating.js.map +1 -1
  410. package/dist/components/stzh-ratio.js +1 -1
  411. package/dist/components/stzh-readspeaker.js +5 -5
  412. package/dist/components/stzh-richtext.js +2 -2
  413. package/dist/components/stzh-row.js +1 -1
  414. package/dist/components/stzh-saptcha.js +7 -7
  415. package/dist/components/stzh-scrollup.js +2 -2
  416. package/dist/components/stzh-search.js +17 -17
  417. package/dist/components/stzh-section.js +2 -2
  418. package/dist/components/stzh-share.js +1 -1
  419. package/dist/components/stzh-show.js +1 -1
  420. package/dist/components/stzh-sitemap.js +9 -9
  421. package/dist/components/stzh-skin-portal-mitwirken.js +1 -1
  422. package/dist/components/stzh-skin-storybook-preview.js +1 -1
  423. package/dist/components/stzh-skiplink.js +1 -1
  424. package/dist/components/stzh-socialmediastream-item.js +1 -1
  425. package/dist/components/stzh-socialmediastream.js +7 -7
  426. package/dist/components/stzh-sortable.js +1 -1
  427. package/dist/components/stzh-space.js +1 -1
  428. package/dist/components/stzh-status.js +1 -1
  429. package/dist/components/stzh-stepper-item.js +1 -1
  430. package/dist/components/stzh-stepper.js +3 -3
  431. package/dist/components/stzh-sticky-actions.js +3 -3
  432. package/dist/components/stzh-sticky.js +1 -1
  433. package/dist/components/stzh-table.js +2 -2
  434. package/dist/components/stzh-tag.js +1 -1
  435. package/dist/components/stzh-text.js +1 -1
  436. package/dist/components/stzh-textandimage.js +2 -2
  437. package/dist/components/stzh-timeline-item.js +4 -4
  438. package/dist/components/stzh-timeline.js +1 -1
  439. package/dist/components/stzh-timepicker.js +5 -5
  440. package/dist/components/stzh-toast.js +1 -1
  441. package/dist/components/stzh-toastbar.js +1 -1
  442. package/dist/components/stzh-toggle.js +42 -11
  443. package/dist/components/stzh-toggle.js.map +1 -1
  444. package/dist/components/stzh-tooltip.js +1 -1
  445. package/dist/components/stzh-twocolumns.js +2 -2
  446. package/dist/components/stzh-upload.js +50 -19
  447. package/dist/components/stzh-upload.js.map +1 -1
  448. package/dist/components/stzh-vbz-carousel.js +2 -2
  449. package/dist/components/stzh-vbz-connection-finder.js +1 -1
  450. package/dist/components/stzh-vbz-intro.js +6 -6
  451. package/dist/components/stzh-vbz-linechip.js +1 -1
  452. package/dist/components/stzh-vbz-majorticker.js +8 -8
  453. package/dist/components/stzh-vbz-ticker.js +7 -7
  454. package/dist/components/stzh-visuallyhidden.js +1 -1
  455. package/dist/components/stzh-vspace.js +1 -1
  456. package/dist/components/stzh-youtube.js +6 -6
  457. package/dist/esm/{index-BDy81lpO.js → index-BMrO_esM.js} +3 -3
  458. package/dist/esm/{index-BDy81lpO.js.map → index-BMrO_esM.js.map} +1 -1
  459. package/dist/esm/loader.js +3 -3
  460. package/dist/esm/stzh-accordion_3.entry.js +2 -2
  461. package/dist/esm/stzh-actions_6.entry.js +2 -2
  462. package/dist/esm/stzh-actionset.entry.js +1 -1
  463. package/dist/esm/stzh-amount.entry.js +1 -1
  464. package/dist/esm/stzh-anchornav.entry.js +1 -1
  465. package/dist/esm/stzh-app-nav.entry.js +1 -1
  466. package/dist/esm/stzh-appointments.entry.js +2 -2
  467. package/dist/esm/stzh-archivelist.entry.js +1 -1
  468. package/dist/esm/stzh-audio.entry.js +2 -2
  469. package/dist/esm/stzh-badge_3.entry.js +2 -2
  470. package/dist/esm/stzh-banner.entry.js +1 -1
  471. package/dist/esm/stzh-breadcrumb_2.entry.js +1 -1
  472. package/dist/esm/stzh-buttongroup.entry.js +1 -1
  473. package/dist/esm/stzh-calendar.entry.js +1 -1
  474. package/dist/esm/stzh-card-navigation.entry.js +2 -2
  475. package/dist/esm/stzh-card-searchresult.entry.js +2 -2
  476. package/dist/esm/stzh-card-superteaser.entry.js +2 -2
  477. package/dist/esm/stzh-card_2.entry.js +2 -2
  478. package/dist/esm/stzh-carousel.entry.js +2 -2
  479. package/dist/esm/stzh-chart.entry.js +1 -1
  480. package/dist/esm/stzh-checkbox.entry.js +36 -6
  481. package/dist/esm/stzh-checkbox.entry.js.map +1 -1
  482. package/dist/esm/stzh-checkboxgroup.entry.js +3 -3
  483. package/dist/esm/stzh-chip_2.entry.js +3 -3
  484. package/dist/esm/stzh-chipgroup.entry.js +1 -1
  485. package/dist/esm/stzh-clamp.entry.js +1 -1
  486. package/dist/esm/stzh-company-logo.entry.js +1 -1
  487. package/dist/esm/stzh-components.js +3 -3
  488. package/dist/esm/stzh-contact-cv.entry.js +2 -2
  489. package/dist/esm/stzh-contact.entry.js +2 -2
  490. package/dist/esm/stzh-container_2.entry.js +1 -1
  491. package/dist/esm/stzh-content.entry.js +1 -1
  492. package/dist/esm/stzh-cta.entry.js +2 -2
  493. package/dist/esm/stzh-datalist_3.entry.js +2 -2
  494. package/dist/esm/stzh-datamessagelist-item.entry.js +1 -1
  495. package/dist/esm/stzh-datamessagelist.entry.js +1 -1
  496. package/dist/esm/stzh-datatable.entry.js +2 -2
  497. package/dist/esm/stzh-datepicker_3.entry.js +36 -6
  498. package/dist/esm/stzh-daterange.entry.js +2 -2
  499. package/dist/esm/stzh-details.entry.js +2 -2
  500. package/dist/esm/stzh-dialog.entry.js +2 -2
  501. package/dist/esm/stzh-disturber.entry.js +2 -2
  502. package/dist/esm/stzh-dropdown.entry.js +3 -3
  503. package/dist/esm/stzh-editor.entry.js +1 -1
  504. package/dist/esm/stzh-eventdata.entry.js +1 -1
  505. package/dist/esm/stzh-eventinfo.entry.js +2 -2
  506. package/dist/esm/stzh-feedreader-item.entry.js +2 -2
  507. package/dist/esm/stzh-feedreader.entry.js +2 -2
  508. package/dist/esm/stzh-figure.entry.js +2 -2
  509. package/dist/esm/stzh-flyingfocus.entry.js +1 -1
  510. package/dist/esm/stzh-footer.entry.js +2 -2
  511. package/dist/esm/stzh-gallery.entry.js +1 -1
  512. package/dist/esm/stzh-geo-ref-data.entry.js +1 -1
  513. package/dist/esm/stzh-ghettobox.entry.js +2 -2
  514. package/dist/esm/stzh-header_3.entry.js +2 -2
  515. package/dist/esm/stzh-heading.entry.js +1 -1
  516. package/dist/esm/stzh-homepage-search.entry.js +1 -1
  517. package/dist/esm/stzh-homepage-service-highlights.entry.js +2 -2
  518. package/dist/esm/stzh-hr.entry.js +1 -1
  519. package/dist/esm/stzh-hspace.entry.js +1 -1
  520. package/dist/esm/stzh-http-error.entry.js +1 -1
  521. package/dist/esm/stzh-iframe.entry.js +1 -1
  522. package/dist/esm/stzh-imagecomparison.entry.js +1 -1
  523. package/dist/esm/{stzh-input-description-D2d54L27.js → stzh-input-description-F6xJmR4b.js} +3 -3
  524. package/dist/esm/{stzh-input-description-D2d54L27.js.map → stzh-input-description-F6xJmR4b.js.map} +1 -1
  525. package/dist/esm/stzh-input.entry.js +31 -36
  526. package/dist/esm/stzh-input.entry.js.map +1 -1
  527. package/dist/esm/stzh-invert.entry.js +1 -1
  528. package/dist/esm/stzh-link.entry.js +2 -2
  529. package/dist/esm/stzh-linklist.entry.js +2 -2
  530. package/dist/esm/stzh-list_2.entry.js +1 -1
  531. package/dist/esm/stzh-loader.entry.js +1 -1
  532. package/dist/esm/stzh-loadingbar.entry.js +1 -1
  533. package/dist/esm/stzh-menu_2.entry.js +2 -2
  534. package/dist/esm/stzh-message.entry.js +4 -4
  535. package/dist/esm/stzh-message.entry.js.map +1 -1
  536. package/dist/esm/stzh-microsite-teaserlist.entry.js +1 -1
  537. package/dist/esm/stzh-monthyearpicker.entry.js +1 -1
  538. package/dist/esm/stzh-offline-indicator.entry.js +1 -1
  539. package/dist/esm/stzh-page-skiplinks.entry.js +1 -1
  540. package/dist/esm/stzh-pagebottom.entry.js +1 -1
  541. package/dist/esm/stzh-pagecontent.entry.js +2 -2
  542. package/dist/esm/stzh-pagetitle-hero.entry.js +2 -2
  543. package/dist/esm/stzh-pagetitle-home.entry.js +2 -2
  544. package/dist/esm/stzh-pagetitle.entry.js +2 -2
  545. package/dist/esm/stzh-panorama.entry.js +1 -1
  546. package/dist/esm/stzh-pi-content-navigation.entry.js +2 -2
  547. package/dist/esm/stzh-pi-menu.entry.js +1 -1
  548. package/dist/esm/stzh-pi-pagetitle.entry.js +2 -2
  549. package/dist/esm/stzh-pi-quote.entry.js +1 -1
  550. package/dist/esm/stzh-pi-teaser-layout-item.entry.js +1 -1
  551. package/dist/esm/stzh-pi-teaser-layout.entry.js +2 -2
  552. package/dist/esm/stzh-pi-teaser.entry.js +2 -2
  553. package/dist/esm/stzh-pkzh-qr.entry.js +1 -1
  554. package/dist/esm/stzh-popover.entry.js +2 -2
  555. package/dist/esm/stzh-print_2.entry.js +2 -2
  556. package/dist/esm/stzh-quote.entry.js +1 -1
  557. package/dist/esm/stzh-rating.entry.js +37 -9
  558. package/dist/esm/stzh-rating.entry.js.map +1 -1
  559. package/dist/esm/stzh-ratio.entry.js +1 -1
  560. package/dist/esm/stzh-readspeaker.entry.js +2 -2
  561. package/dist/esm/stzh-richtext.entry.js +1 -1
  562. package/dist/esm/stzh-saptcha.entry.js +1 -1
  563. package/dist/esm/stzh-scrollup.entry.js +2 -2
  564. package/dist/esm/stzh-search.entry.js +2 -2
  565. package/dist/esm/stzh-section.entry.js +2 -2
  566. package/dist/esm/stzh-show.entry.js +1 -1
  567. package/dist/esm/stzh-sitemap.entry.js +1 -1
  568. package/dist/esm/stzh-skin-portal-mitwirken.entry.js +1 -1
  569. package/dist/esm/stzh-skin-storybook-preview.entry.js +1 -1
  570. package/dist/esm/stzh-skiplink.entry.js +1 -1
  571. package/dist/esm/stzh-socialmediastream-item.entry.js +1 -1
  572. package/dist/esm/stzh-socialmediastream.entry.js +2 -2
  573. package/dist/esm/stzh-stepper-item.entry.js +1 -1
  574. package/dist/esm/stzh-stepper.entry.js +1 -1
  575. package/dist/esm/stzh-sticky-actions.entry.js +2 -2
  576. package/dist/esm/stzh-sticky.entry.js +2 -2
  577. package/dist/esm/stzh-table.entry.js +2 -2
  578. package/dist/esm/stzh-text.entry.js +1 -1
  579. package/dist/esm/stzh-textandimage.entry.js +2 -2
  580. package/dist/esm/stzh-timeline-item.entry.js +2 -2
  581. package/dist/esm/stzh-timeline.entry.js +1 -1
  582. package/dist/esm/stzh-timepicker.entry.js +1 -1
  583. package/dist/esm/stzh-toast_2.entry.js +2 -2
  584. package/dist/esm/stzh-toggle.entry.js +36 -7
  585. package/dist/esm/stzh-toggle.entry.js.map +1 -1
  586. package/dist/esm/stzh-tooltip.entry.js +2 -2
  587. package/dist/esm/stzh-twocolumns.entry.js +2 -2
  588. package/dist/esm/stzh-upload.entry.js +37 -8
  589. package/dist/esm/stzh-upload.entry.js.map +1 -1
  590. package/dist/esm/stzh-vbz-carousel.entry.js +1 -1
  591. package/dist/esm/stzh-vbz-connection-finder.entry.js +1 -1
  592. package/dist/esm/stzh-vbz-intro.entry.js +2 -2
  593. package/dist/esm/stzh-vbz-linechip.entry.js +1 -1
  594. package/dist/esm/stzh-vbz-majorticker.entry.js +1 -1
  595. package/dist/esm/stzh-vbz-ticker.entry.js +1 -1
  596. package/dist/esm/stzh-visuallyhidden.entry.js +1 -1
  597. package/dist/esm/stzh-vspace.entry.js +1 -1
  598. package/dist/esm/stzh-youtube.entry.js +1 -1
  599. package/dist/esm/{utils-BnOofzDv.js → utils-CnvjJ2wY.js} +59 -3
  600. package/dist/esm/utils-CnvjJ2wY.js.map +1 -0
  601. package/dist/stzh-components/{p-D4oTGvdl.js → p--ooR_PU_.js} +2 -2
  602. package/dist/stzh-components/{p-D4oTGvdl.js.map → p--ooR_PU_.js.map} +1 -1
  603. package/dist/stzh-components/{p-f3276383.entry.js → p-00353dba.entry.js} +2 -2
  604. package/dist/stzh-components/{p-59da8df1.entry.js → p-01b57dff.entry.js} +2 -2
  605. package/dist/stzh-components/{p-65e3833f.entry.js → p-08c26fa4.entry.js} +2 -2
  606. package/dist/stzh-components/{p-561fd23e.entry.js → p-0bcce878.entry.js} +2 -2
  607. package/dist/stzh-components/{p-5f862749.entry.js → p-0d71a712.entry.js} +2 -2
  608. package/dist/stzh-components/{p-8e4ecd25.entry.js → p-102abd6c.entry.js} +2 -2
  609. package/dist/stzh-components/p-11375541.entry.js +2 -0
  610. package/dist/stzh-components/{p-deb5310a.entry.js.map → p-11375541.entry.js.map} +1 -1
  611. package/dist/stzh-components/{p-f1e336dc.entry.js → p-117d79b0.entry.js} +2 -2
  612. package/dist/stzh-components/{p-f1a64a00.entry.js → p-11984d87.entry.js} +2 -2
  613. package/dist/stzh-components/{p-7da86126.entry.js → p-15818fb6.entry.js} +2 -2
  614. package/dist/stzh-components/{p-1b39c90b.entry.js → p-182be2cb.entry.js} +6 -6
  615. package/dist/stzh-components/{p-e2f97240.entry.js → p-19425494.entry.js} +2 -2
  616. package/dist/stzh-components/{p-f442969e.entry.js → p-1c0d8bd1.entry.js} +2 -2
  617. package/dist/stzh-components/{p-1f1aac25.entry.js → p-1c10554c.entry.js} +2 -2
  618. package/dist/stzh-components/{p-e51cd413.entry.js → p-1da17a3f.entry.js} +2 -2
  619. package/dist/stzh-components/p-1e895ec3.entry.js +2 -0
  620. package/dist/stzh-components/p-1e895ec3.entry.js.map +1 -0
  621. package/dist/stzh-components/{p-74494120.entry.js → p-21d6ad19.entry.js} +2 -2
  622. package/dist/stzh-components/{p-931abfe7.entry.js → p-223813c2.entry.js} +2 -2
  623. package/dist/stzh-components/{p-54d92856.entry.js → p-2a02f828.entry.js} +2 -2
  624. package/dist/stzh-components/{p-0cac70a3.entry.js → p-2a127cc2.entry.js} +2 -2
  625. package/dist/stzh-components/{p-5b7298a4.entry.js → p-2a398b2e.entry.js} +2 -2
  626. package/dist/stzh-components/{p-75ffb877.entry.js → p-2b767b1b.entry.js} +2 -2
  627. package/dist/stzh-components/{p-dbe53670.entry.js → p-2c7792b4.entry.js} +2 -2
  628. package/dist/stzh-components/{p-1c3942a6.entry.js → p-2ddaf03b.entry.js} +2 -2
  629. package/dist/stzh-components/{p-fc96a153.entry.js → p-301c1aa1.entry.js} +2 -2
  630. package/dist/stzh-components/{p-f18c1bc6.entry.js → p-3066d7ac.entry.js} +2 -2
  631. package/dist/stzh-components/{p-ae8fe7f0.entry.js → p-32c6e24a.entry.js} +2 -2
  632. package/dist/stzh-components/{p-645c7fba.entry.js → p-34e31715.entry.js} +3 -3
  633. package/dist/stzh-components/{p-75dad6c7.entry.js → p-357943a8.entry.js} +2 -2
  634. package/dist/stzh-components/{p-9337582a.entry.js → p-39d6dad5.entry.js} +2 -2
  635. package/dist/stzh-components/{p-fd0e8627.entry.js → p-3b764057.entry.js} +2 -2
  636. package/dist/stzh-components/{p-0e3d6349.entry.js → p-3efa45ca.entry.js} +2 -2
  637. package/dist/stzh-components/{p-c471680d.entry.js → p-3f5f0aaf.entry.js} +2 -2
  638. package/dist/stzh-components/{p-2683a93d.entry.js → p-44b7bd82.entry.js} +2 -2
  639. package/dist/stzh-components/{p-8d558e1d.entry.js → p-490d880f.entry.js} +2 -2
  640. package/dist/stzh-components/{p-1db6f565.entry.js → p-49717f35.entry.js} +2 -2
  641. package/dist/stzh-components/{p-7f825eff.entry.js → p-4cc1d883.entry.js} +2 -2
  642. package/dist/stzh-components/{p-e92a11b6.entry.js → p-4e26f1e1.entry.js} +2 -2
  643. package/dist/stzh-components/{p-2e1efcc9.entry.js → p-51069c51.entry.js} +2 -2
  644. package/dist/stzh-components/{p-deb499e2.entry.js → p-51f6f724.entry.js} +2 -2
  645. package/dist/stzh-components/{p-0e45d2de.entry.js → p-56216434.entry.js} +2 -2
  646. package/dist/stzh-components/{p-46c5b453.entry.js → p-5eff4877.entry.js} +2 -2
  647. package/dist/stzh-components/{p-85ac6d83.entry.js → p-61bf5c59.entry.js} +2 -2
  648. package/dist/stzh-components/{p-bfa62b65.entry.js → p-66aa2138.entry.js} +2 -2
  649. package/dist/stzh-components/{p-759099e2.entry.js → p-66b8f10b.entry.js} +2 -2
  650. package/dist/stzh-components/{p-8f956678.entry.js → p-683a19bb.entry.js} +2 -2
  651. package/dist/stzh-components/{p-e281a715.entry.js → p-684d4d18.entry.js} +3 -3
  652. package/dist/stzh-components/p-687cae2d.entry.js +2 -0
  653. package/dist/stzh-components/p-687cae2d.entry.js.map +1 -0
  654. package/dist/stzh-components/{p-3c861eb0.entry.js → p-6add6579.entry.js} +2 -2
  655. package/dist/stzh-components/{p-7a1296d4.entry.js → p-6af8d5cb.entry.js} +2 -2
  656. package/dist/stzh-components/{p-69f5276e.entry.js → p-6b450966.entry.js} +2 -2
  657. package/dist/stzh-components/{p-b663c8f6.entry.js → p-6c6e664c.entry.js} +2 -2
  658. package/dist/stzh-components/{p-d3209381.entry.js → p-6e23fc8e.entry.js} +2 -2
  659. package/dist/stzh-components/{p-9957d575.entry.js → p-6ec9e3dc.entry.js} +2 -2
  660. package/dist/stzh-components/{p-70b10351.entry.js → p-7368a3bd.entry.js} +2 -2
  661. package/dist/stzh-components/{p-aef3c5ac.entry.js → p-77ab7971.entry.js} +2 -2
  662. package/dist/stzh-components/{p-e27591a6.entry.js → p-7898ab3c.entry.js} +2 -2
  663. package/dist/stzh-components/{p-aed15ee1.entry.js → p-7a8d05c2.entry.js} +2 -2
  664. package/dist/stzh-components/{p-f301a05c.entry.js → p-7b070e13.entry.js} +2 -2
  665. package/dist/stzh-components/{p-07639e2e.entry.js → p-7dc226b0.entry.js} +2 -2
  666. package/dist/stzh-components/{p-c0b4f81f.entry.js → p-7fef5a6d.entry.js} +2 -2
  667. package/dist/stzh-components/{p-b2fcc490.entry.js → p-80c514e1.entry.js} +2 -2
  668. package/dist/stzh-components/{p-82d1f2f4.entry.js → p-833bd793.entry.js} +2 -2
  669. package/dist/stzh-components/{p-6c3de48d.entry.js → p-8550b2d8.entry.js} +2 -2
  670. package/dist/stzh-components/{p-cd9b9eac.entry.js → p-85b5bdbd.entry.js} +2 -2
  671. package/dist/stzh-components/{p-65a6428c.entry.js → p-873bec1c.entry.js} +2 -2
  672. package/dist/stzh-components/{p-44df0e58.entry.js → p-89c070b8.entry.js} +2 -2
  673. package/dist/stzh-components/{p-8bc9e95b.entry.js → p-90c4a686.entry.js} +2 -2
  674. package/dist/stzh-components/{p-e93dbde4.entry.js → p-90db31fb.entry.js} +2 -2
  675. package/dist/stzh-components/{p-33c80dea.entry.js → p-91083053.entry.js} +2 -2
  676. package/dist/stzh-components/p-95b9d704.entry.js +2 -0
  677. package/dist/stzh-components/p-95b9d704.entry.js.map +1 -0
  678. package/dist/stzh-components/{p-52d757b2.entry.js → p-97be25ae.entry.js} +2 -2
  679. package/dist/stzh-components/{p-94eed7e7.entry.js → p-9a732268.entry.js} +2 -2
  680. package/dist/stzh-components/{p-39217901.entry.js → p-9b164561.entry.js} +2 -2
  681. package/dist/stzh-components/{p-8735dc17.entry.js → p-9bd07097.entry.js} +2 -2
  682. package/dist/stzh-components/{p-92d54e6a.entry.js → p-9d3dcadd.entry.js} +2 -2
  683. package/dist/stzh-components/{p-f4243fa8.entry.js → p-9db9d368.entry.js} +2 -2
  684. package/dist/stzh-components/p-BMrO_esM.js +3 -0
  685. package/dist/stzh-components/{p-BDy81lpO.js.map → p-BMrO_esM.js.map} +1 -1
  686. package/dist/stzh-components/p-DhuTERdU.js +2 -0
  687. package/dist/stzh-components/p-DhuTERdU.js.map +1 -0
  688. package/dist/stzh-components/{p-dd01dcf6.entry.js → p-a2313acc.entry.js} +2 -2
  689. package/dist/stzh-components/{p-d3969952.entry.js → p-a466bef7.entry.js} +3 -3
  690. package/dist/stzh-components/{p-0fe0982a.entry.js → p-a6073abd.entry.js} +2 -2
  691. package/dist/stzh-components/{p-c5986c0b.entry.js → p-a924e049.entry.js} +2 -2
  692. package/dist/stzh-components/{p-58d6b294.entry.js → p-ab14b19a.entry.js} +2 -2
  693. package/dist/stzh-components/{p-25df4336.entry.js → p-ad11c427.entry.js} +2 -2
  694. package/dist/stzh-components/{p-85cb6ac3.entry.js → p-ad5b037d.entry.js} +2 -2
  695. package/dist/stzh-components/{p-09219622.entry.js → p-afbf7bd5.entry.js} +2 -2
  696. package/dist/stzh-components/p-b0f5c226.entry.js +2 -0
  697. package/dist/stzh-components/p-b0f5c226.entry.js.map +1 -0
  698. package/dist/stzh-components/{p-233a253c.entry.js → p-b322c0cd.entry.js} +2 -2
  699. package/dist/stzh-components/{p-e6626ed6.entry.js → p-b401f555.entry.js} +2 -2
  700. package/dist/stzh-components/{p-c9972340.entry.js → p-b6518908.entry.js} +6 -6
  701. package/dist/stzh-components/{p-97a89608.entry.js → p-b67a197e.entry.js} +2 -2
  702. package/dist/stzh-components/{p-5198a930.entry.js → p-b91a1fb5.entry.js} +2 -2
  703. package/dist/stzh-components/{p-8e34c9c9.entry.js → p-b936ffdb.entry.js} +2 -2
  704. package/dist/stzh-components/{p-64c9a8f7.entry.js → p-b93a07a9.entry.js} +2 -2
  705. package/dist/stzh-components/{p-bc622b2a.entry.js → p-b9c11320.entry.js} +2 -2
  706. package/dist/stzh-components/{p-539bb440.entry.js → p-b9d617d4.entry.js} +2 -2
  707. package/dist/stzh-components/{p-158b16e0.entry.js → p-bc49448d.entry.js} +2 -2
  708. package/dist/stzh-components/{p-45452a45.entry.js → p-c1ccb40f.entry.js} +2 -2
  709. package/dist/stzh-components/{p-d1a50145.entry.js → p-c359686c.entry.js} +2 -2
  710. package/dist/stzh-components/{p-d9ceb9a1.entry.js → p-c6ae1a73.entry.js} +2 -2
  711. package/dist/stzh-components/{p-3816c34e.entry.js → p-c8332abd.entry.js} +2 -2
  712. package/dist/stzh-components/{p-0df1be19.entry.js → p-ca39f17b.entry.js} +2 -2
  713. package/dist/stzh-components/{p-0a1eb5fd.entry.js → p-cba7e887.entry.js} +2 -2
  714. package/dist/stzh-components/{p-cc579b5c.entry.js → p-d0c780be.entry.js} +2 -2
  715. package/dist/stzh-components/{p-6aa53daf.entry.js → p-d10a459c.entry.js} +2 -2
  716. package/dist/stzh-components/{p-9c4e1649.entry.js → p-d10e2ff4.entry.js} +2 -2
  717. package/dist/stzh-components/{p-0dc95d03.entry.js → p-d319b8db.entry.js} +2 -2
  718. package/dist/stzh-components/{p-5ebd56ff.entry.js → p-d3ae51da.entry.js} +2 -2
  719. package/dist/stzh-components/{p-8a9f9b42.entry.js → p-d57711e5.entry.js} +2 -2
  720. package/dist/stzh-components/{p-7bb32473.entry.js → p-d591892c.entry.js} +2 -2
  721. package/dist/stzh-components/{p-968ef9db.entry.js → p-d8cacb50.entry.js} +2 -2
  722. package/dist/stzh-components/{p-32258f20.entry.js → p-d971957a.entry.js} +2 -2
  723. package/dist/stzh-components/{p-6e6064a5.entry.js → p-defa4f14.entry.js} +2 -2
  724. package/dist/stzh-components/p-e04fe921.entry.js +2 -0
  725. package/dist/stzh-components/p-e04fe921.entry.js.map +1 -0
  726. package/dist/stzh-components/{p-752e3cd8.entry.js → p-e6d33dfe.entry.js} +2 -2
  727. package/dist/stzh-components/{p-bb16873e.entry.js → p-e7c05a67.entry.js} +2 -2
  728. package/dist/stzh-components/{p-0747c17b.entry.js → p-e85f497a.entry.js} +2 -2
  729. package/dist/stzh-components/{p-38a9cabf.entry.js → p-e88b56a4.entry.js} +2 -2
  730. package/dist/stzh-components/{p-e84a2d9e.entry.js → p-ea2a37fa.entry.js} +2 -2
  731. package/dist/stzh-components/{p-67b2d82d.entry.js → p-ec4dc01c.entry.js} +2 -2
  732. package/dist/stzh-components/{p-32cd07f2.entry.js → p-ec958f98.entry.js} +2 -2
  733. package/dist/stzh-components/{p-120fc2f7.entry.js → p-ed66b150.entry.js} +2 -2
  734. package/dist/stzh-components/{p-78f63571.entry.js → p-eec61b75.entry.js} +2 -2
  735. package/dist/stzh-components/{p-68692aca.entry.js → p-f1fcc0d8.entry.js} +2 -2
  736. package/dist/stzh-components/{p-67e2ea65.entry.js → p-f31d01ea.entry.js} +2 -2
  737. package/dist/stzh-components/{p-79823ee9.entry.js → p-f76c80da.entry.js} +2 -2
  738. package/dist/stzh-components/{p-375f8787.entry.js → p-fce7bd0a.entry.js} +2 -2
  739. package/dist/stzh-components/{p-cd10adbb.entry.js → p-fd92dbe7.entry.js} +2 -2
  740. package/dist/stzh-components/p-fdb2fa88.entry.js +2 -0
  741. package/dist/stzh-components/p-fdb2fa88.entry.js.map +1 -0
  742. package/dist/stzh-components/{p-4dfa25ec.entry.js → p-fdca724c.entry.js} +2 -2
  743. package/dist/stzh-components/{p-01cb747a.entry.js → p-fe2e3916.entry.js} +2 -2
  744. package/dist/stzh-components/stzh-components.esm.js +1 -1
  745. package/dist/types/components/stzh-checkbox/stzh-checkbox.d.ts +18 -0
  746. package/dist/types/components/stzh-input/stzh-input.d.ts +15 -4
  747. package/dist/types/components/stzh-message/stzh-message.d.ts +2 -2
  748. package/dist/types/components/stzh-radio/stzh-radio.d.ts +18 -0
  749. package/dist/types/components/stzh-rating/stzh-rating.d.ts +18 -0
  750. package/dist/types/components/stzh-toggle/stzh-toggle.d.ts +18 -0
  751. package/dist/types/components/stzh-upload/stzh-upload.d.ts +18 -0
  752. package/dist/types/components.d.ts +4 -4
  753. package/dist/types/utils/utils.d.ts +13 -0
  754. package/dist/vscode-data.json +1 -1
  755. package/package.json +1 -1
  756. package/dist/cjs/utils-BtvTjHH2.js.map +0 -1
  757. package/dist/components/p-8vUD5Pvs.js.map +0 -1
  758. package/dist/components/p-CN5apKPb.js.map +0 -1
  759. package/dist/components/p-CjdErtj_.js.map +0 -1
  760. package/dist/components/p-Dn5GUbNz.js.map +0 -1
  761. package/dist/esm/utils-BnOofzDv.js.map +0 -1
  762. package/dist/stzh-components/p--MYN2wgX.js +0 -2
  763. package/dist/stzh-components/p--MYN2wgX.js.map +0 -1
  764. package/dist/stzh-components/p-0f6a6d68.entry.js +0 -2
  765. package/dist/stzh-components/p-0f6a6d68.entry.js.map +0 -1
  766. package/dist/stzh-components/p-17c76b7f.entry.js +0 -2
  767. package/dist/stzh-components/p-17c76b7f.entry.js.map +0 -1
  768. package/dist/stzh-components/p-42f4c28d.entry.js +0 -2
  769. package/dist/stzh-components/p-42f4c28d.entry.js.map +0 -1
  770. package/dist/stzh-components/p-856faa3f.entry.js +0 -2
  771. package/dist/stzh-components/p-856faa3f.entry.js.map +0 -1
  772. package/dist/stzh-components/p-963b4a81.entry.js +0 -2
  773. package/dist/stzh-components/p-963b4a81.entry.js.map +0 -1
  774. package/dist/stzh-components/p-BDy81lpO.js +0 -3
  775. package/dist/stzh-components/p-d215409f.entry.js +0 -2
  776. package/dist/stzh-components/p-d215409f.entry.js.map +0 -1
  777. package/dist/stzh-components/p-deb5310a.entry.js +0 -2
  778. /package/dist/stzh-components/{p-f3276383.entry.js.map → p-00353dba.entry.js.map} +0 -0
  779. /package/dist/stzh-components/{p-59da8df1.entry.js.map → p-01b57dff.entry.js.map} +0 -0
  780. /package/dist/stzh-components/{p-65e3833f.entry.js.map → p-08c26fa4.entry.js.map} +0 -0
  781. /package/dist/stzh-components/{p-561fd23e.entry.js.map → p-0bcce878.entry.js.map} +0 -0
  782. /package/dist/stzh-components/{p-5f862749.entry.js.map → p-0d71a712.entry.js.map} +0 -0
  783. /package/dist/stzh-components/{p-8e4ecd25.entry.js.map → p-102abd6c.entry.js.map} +0 -0
  784. /package/dist/stzh-components/{p-f1e336dc.entry.js.map → p-117d79b0.entry.js.map} +0 -0
  785. /package/dist/stzh-components/{p-f1a64a00.entry.js.map → p-11984d87.entry.js.map} +0 -0
  786. /package/dist/stzh-components/{p-7da86126.entry.js.map → p-15818fb6.entry.js.map} +0 -0
  787. /package/dist/stzh-components/{p-1b39c90b.entry.js.map → p-182be2cb.entry.js.map} +0 -0
  788. /package/dist/stzh-components/{p-e2f97240.entry.js.map → p-19425494.entry.js.map} +0 -0
  789. /package/dist/stzh-components/{p-f442969e.entry.js.map → p-1c0d8bd1.entry.js.map} +0 -0
  790. /package/dist/stzh-components/{p-1f1aac25.entry.js.map → p-1c10554c.entry.js.map} +0 -0
  791. /package/dist/stzh-components/{p-e51cd413.entry.js.map → p-1da17a3f.entry.js.map} +0 -0
  792. /package/dist/stzh-components/{p-74494120.entry.js.map → p-21d6ad19.entry.js.map} +0 -0
  793. /package/dist/stzh-components/{p-931abfe7.entry.js.map → p-223813c2.entry.js.map} +0 -0
  794. /package/dist/stzh-components/{p-54d92856.entry.js.map → p-2a02f828.entry.js.map} +0 -0
  795. /package/dist/stzh-components/{p-0cac70a3.entry.js.map → p-2a127cc2.entry.js.map} +0 -0
  796. /package/dist/stzh-components/{p-5b7298a4.entry.js.map → p-2a398b2e.entry.js.map} +0 -0
  797. /package/dist/stzh-components/{p-75ffb877.entry.js.map → p-2b767b1b.entry.js.map} +0 -0
  798. /package/dist/stzh-components/{p-dbe53670.entry.js.map → p-2c7792b4.entry.js.map} +0 -0
  799. /package/dist/stzh-components/{p-1c3942a6.entry.js.map → p-2ddaf03b.entry.js.map} +0 -0
  800. /package/dist/stzh-components/{p-fc96a153.entry.js.map → p-301c1aa1.entry.js.map} +0 -0
  801. /package/dist/stzh-components/{p-f18c1bc6.entry.js.map → p-3066d7ac.entry.js.map} +0 -0
  802. /package/dist/stzh-components/{p-ae8fe7f0.entry.js.map → p-32c6e24a.entry.js.map} +0 -0
  803. /package/dist/stzh-components/{p-645c7fba.entry.js.map → p-34e31715.entry.js.map} +0 -0
  804. /package/dist/stzh-components/{p-75dad6c7.entry.js.map → p-357943a8.entry.js.map} +0 -0
  805. /package/dist/stzh-components/{p-9337582a.entry.js.map → p-39d6dad5.entry.js.map} +0 -0
  806. /package/dist/stzh-components/{p-fd0e8627.entry.js.map → p-3b764057.entry.js.map} +0 -0
  807. /package/dist/stzh-components/{p-0e3d6349.entry.js.map → p-3efa45ca.entry.js.map} +0 -0
  808. /package/dist/stzh-components/{p-c471680d.entry.js.map → p-3f5f0aaf.entry.js.map} +0 -0
  809. /package/dist/stzh-components/{p-2683a93d.entry.js.map → p-44b7bd82.entry.js.map} +0 -0
  810. /package/dist/stzh-components/{p-8d558e1d.entry.js.map → p-490d880f.entry.js.map} +0 -0
  811. /package/dist/stzh-components/{p-1db6f565.entry.js.map → p-49717f35.entry.js.map} +0 -0
  812. /package/dist/stzh-components/{p-7f825eff.entry.js.map → p-4cc1d883.entry.js.map} +0 -0
  813. /package/dist/stzh-components/{p-e92a11b6.entry.js.map → p-4e26f1e1.entry.js.map} +0 -0
  814. /package/dist/stzh-components/{p-2e1efcc9.entry.js.map → p-51069c51.entry.js.map} +0 -0
  815. /package/dist/stzh-components/{p-deb499e2.entry.js.map → p-51f6f724.entry.js.map} +0 -0
  816. /package/dist/stzh-components/{p-0e45d2de.entry.js.map → p-56216434.entry.js.map} +0 -0
  817. /package/dist/stzh-components/{p-46c5b453.entry.js.map → p-5eff4877.entry.js.map} +0 -0
  818. /package/dist/stzh-components/{p-85ac6d83.entry.js.map → p-61bf5c59.entry.js.map} +0 -0
  819. /package/dist/stzh-components/{p-bfa62b65.entry.js.map → p-66aa2138.entry.js.map} +0 -0
  820. /package/dist/stzh-components/{p-759099e2.entry.js.map → p-66b8f10b.entry.js.map} +0 -0
  821. /package/dist/stzh-components/{p-8f956678.entry.js.map → p-683a19bb.entry.js.map} +0 -0
  822. /package/dist/stzh-components/{p-e281a715.entry.js.map → p-684d4d18.entry.js.map} +0 -0
  823. /package/dist/stzh-components/{p-3c861eb0.entry.js.map → p-6add6579.entry.js.map} +0 -0
  824. /package/dist/stzh-components/{p-7a1296d4.entry.js.map → p-6af8d5cb.entry.js.map} +0 -0
  825. /package/dist/stzh-components/{p-69f5276e.entry.js.map → p-6b450966.entry.js.map} +0 -0
  826. /package/dist/stzh-components/{p-b663c8f6.entry.js.map → p-6c6e664c.entry.js.map} +0 -0
  827. /package/dist/stzh-components/{p-d3209381.entry.js.map → p-6e23fc8e.entry.js.map} +0 -0
  828. /package/dist/stzh-components/{p-9957d575.entry.js.map → p-6ec9e3dc.entry.js.map} +0 -0
  829. /package/dist/stzh-components/{p-70b10351.entry.js.map → p-7368a3bd.entry.js.map} +0 -0
  830. /package/dist/stzh-components/{p-aef3c5ac.entry.js.map → p-77ab7971.entry.js.map} +0 -0
  831. /package/dist/stzh-components/{p-e27591a6.entry.js.map → p-7898ab3c.entry.js.map} +0 -0
  832. /package/dist/stzh-components/{p-aed15ee1.entry.js.map → p-7a8d05c2.entry.js.map} +0 -0
  833. /package/dist/stzh-components/{p-f301a05c.entry.js.map → p-7b070e13.entry.js.map} +0 -0
  834. /package/dist/stzh-components/{p-07639e2e.entry.js.map → p-7dc226b0.entry.js.map} +0 -0
  835. /package/dist/stzh-components/{p-c0b4f81f.entry.js.map → p-7fef5a6d.entry.js.map} +0 -0
  836. /package/dist/stzh-components/{p-b2fcc490.entry.js.map → p-80c514e1.entry.js.map} +0 -0
  837. /package/dist/stzh-components/{p-82d1f2f4.entry.js.map → p-833bd793.entry.js.map} +0 -0
  838. /package/dist/stzh-components/{p-6c3de48d.entry.js.map → p-8550b2d8.entry.js.map} +0 -0
  839. /package/dist/stzh-components/{p-cd9b9eac.entry.js.map → p-85b5bdbd.entry.js.map} +0 -0
  840. /package/dist/stzh-components/{p-65a6428c.entry.js.map → p-873bec1c.entry.js.map} +0 -0
  841. /package/dist/stzh-components/{p-44df0e58.entry.js.map → p-89c070b8.entry.js.map} +0 -0
  842. /package/dist/stzh-components/{p-8bc9e95b.entry.js.map → p-90c4a686.entry.js.map} +0 -0
  843. /package/dist/stzh-components/{p-e93dbde4.entry.js.map → p-90db31fb.entry.js.map} +0 -0
  844. /package/dist/stzh-components/{p-33c80dea.entry.js.map → p-91083053.entry.js.map} +0 -0
  845. /package/dist/stzh-components/{p-52d757b2.entry.js.map → p-97be25ae.entry.js.map} +0 -0
  846. /package/dist/stzh-components/{p-94eed7e7.entry.js.map → p-9a732268.entry.js.map} +0 -0
  847. /package/dist/stzh-components/{p-39217901.entry.js.map → p-9b164561.entry.js.map} +0 -0
  848. /package/dist/stzh-components/{p-8735dc17.entry.js.map → p-9bd07097.entry.js.map} +0 -0
  849. /package/dist/stzh-components/{p-92d54e6a.entry.js.map → p-9d3dcadd.entry.js.map} +0 -0
  850. /package/dist/stzh-components/{p-f4243fa8.entry.js.map → p-9db9d368.entry.js.map} +0 -0
  851. /package/dist/stzh-components/{p-dd01dcf6.entry.js.map → p-a2313acc.entry.js.map} +0 -0
  852. /package/dist/stzh-components/{p-d3969952.entry.js.map → p-a466bef7.entry.js.map} +0 -0
  853. /package/dist/stzh-components/{p-0fe0982a.entry.js.map → p-a6073abd.entry.js.map} +0 -0
  854. /package/dist/stzh-components/{p-c5986c0b.entry.js.map → p-a924e049.entry.js.map} +0 -0
  855. /package/dist/stzh-components/{p-58d6b294.entry.js.map → p-ab14b19a.entry.js.map} +0 -0
  856. /package/dist/stzh-components/{p-25df4336.entry.js.map → p-ad11c427.entry.js.map} +0 -0
  857. /package/dist/stzh-components/{p-85cb6ac3.entry.js.map → p-ad5b037d.entry.js.map} +0 -0
  858. /package/dist/stzh-components/{p-09219622.entry.js.map → p-afbf7bd5.entry.js.map} +0 -0
  859. /package/dist/stzh-components/{p-233a253c.entry.js.map → p-b322c0cd.entry.js.map} +0 -0
  860. /package/dist/stzh-components/{p-e6626ed6.entry.js.map → p-b401f555.entry.js.map} +0 -0
  861. /package/dist/stzh-components/{p-c9972340.entry.js.map → p-b6518908.entry.js.map} +0 -0
  862. /package/dist/stzh-components/{p-97a89608.entry.js.map → p-b67a197e.entry.js.map} +0 -0
  863. /package/dist/stzh-components/{p-5198a930.entry.js.map → p-b91a1fb5.entry.js.map} +0 -0
  864. /package/dist/stzh-components/{p-8e34c9c9.entry.js.map → p-b936ffdb.entry.js.map} +0 -0
  865. /package/dist/stzh-components/{p-64c9a8f7.entry.js.map → p-b93a07a9.entry.js.map} +0 -0
  866. /package/dist/stzh-components/{p-bc622b2a.entry.js.map → p-b9c11320.entry.js.map} +0 -0
  867. /package/dist/stzh-components/{p-539bb440.entry.js.map → p-b9d617d4.entry.js.map} +0 -0
  868. /package/dist/stzh-components/{p-158b16e0.entry.js.map → p-bc49448d.entry.js.map} +0 -0
  869. /package/dist/stzh-components/{p-45452a45.entry.js.map → p-c1ccb40f.entry.js.map} +0 -0
  870. /package/dist/stzh-components/{p-d1a50145.entry.js.map → p-c359686c.entry.js.map} +0 -0
  871. /package/dist/stzh-components/{p-d9ceb9a1.entry.js.map → p-c6ae1a73.entry.js.map} +0 -0
  872. /package/dist/stzh-components/{p-3816c34e.entry.js.map → p-c8332abd.entry.js.map} +0 -0
  873. /package/dist/stzh-components/{p-0df1be19.entry.js.map → p-ca39f17b.entry.js.map} +0 -0
  874. /package/dist/stzh-components/{p-0a1eb5fd.entry.js.map → p-cba7e887.entry.js.map} +0 -0
  875. /package/dist/stzh-components/{p-cc579b5c.entry.js.map → p-d0c780be.entry.js.map} +0 -0
  876. /package/dist/stzh-components/{p-6aa53daf.entry.js.map → p-d10a459c.entry.js.map} +0 -0
  877. /package/dist/stzh-components/{p-9c4e1649.entry.js.map → p-d10e2ff4.entry.js.map} +0 -0
  878. /package/dist/stzh-components/{p-0dc95d03.entry.js.map → p-d319b8db.entry.js.map} +0 -0
  879. /package/dist/stzh-components/{p-5ebd56ff.entry.js.map → p-d3ae51da.entry.js.map} +0 -0
  880. /package/dist/stzh-components/{p-8a9f9b42.entry.js.map → p-d57711e5.entry.js.map} +0 -0
  881. /package/dist/stzh-components/{p-7bb32473.entry.js.map → p-d591892c.entry.js.map} +0 -0
  882. /package/dist/stzh-components/{p-968ef9db.entry.js.map → p-d8cacb50.entry.js.map} +0 -0
  883. /package/dist/stzh-components/{p-32258f20.entry.js.map → p-d971957a.entry.js.map} +0 -0
  884. /package/dist/stzh-components/{p-6e6064a5.entry.js.map → p-defa4f14.entry.js.map} +0 -0
  885. /package/dist/stzh-components/{p-752e3cd8.entry.js.map → p-e6d33dfe.entry.js.map} +0 -0
  886. /package/dist/stzh-components/{p-bb16873e.entry.js.map → p-e7c05a67.entry.js.map} +0 -0
  887. /package/dist/stzh-components/{p-0747c17b.entry.js.map → p-e85f497a.entry.js.map} +0 -0
  888. /package/dist/stzh-components/{p-38a9cabf.entry.js.map → p-e88b56a4.entry.js.map} +0 -0
  889. /package/dist/stzh-components/{p-e84a2d9e.entry.js.map → p-ea2a37fa.entry.js.map} +0 -0
  890. /package/dist/stzh-components/{p-67b2d82d.entry.js.map → p-ec4dc01c.entry.js.map} +0 -0
  891. /package/dist/stzh-components/{p-32cd07f2.entry.js.map → p-ec958f98.entry.js.map} +0 -0
  892. /package/dist/stzh-components/{p-120fc2f7.entry.js.map → p-ed66b150.entry.js.map} +0 -0
  893. /package/dist/stzh-components/{p-78f63571.entry.js.map → p-eec61b75.entry.js.map} +0 -0
  894. /package/dist/stzh-components/{p-68692aca.entry.js.map → p-f1fcc0d8.entry.js.map} +0 -0
  895. /package/dist/stzh-components/{p-67e2ea65.entry.js.map → p-f31d01ea.entry.js.map} +0 -0
  896. /package/dist/stzh-components/{p-79823ee9.entry.js.map → p-f76c80da.entry.js.map} +0 -0
  897. /package/dist/stzh-components/{p-375f8787.entry.js.map → p-fce7bd0a.entry.js.map} +0 -0
  898. /package/dist/stzh-components/{p-cd10adbb.entry.js.map → p-fd92dbe7.entry.js.map} +0 -0
  899. /package/dist/stzh-components/{p-4dfa25ec.entry.js.map → p-fdca724c.entry.js.map} +0 -0
  900. /package/dist/stzh-components/{p-01cb747a.entry.js.map → p-fe2e3916.entry.js.map} +0 -0
@@ -228,6 +228,18 @@ export declare class StzhUpload {
228
228
  totalFilesState: Array<any>;
229
229
  duplicateFileName: string;
230
230
  duplicateFileSize: string;
231
+ /**
232
+ * Whether the component has meaningful default-slot content.
233
+ * Becomes obsolete with the implementation of PDESI-1908.
234
+ */
235
+ hasDefaultSlot: boolean;
236
+ /**
237
+ * Indicates whether default-slot content detection has run at least once.
238
+ * Used to avoid rendering state-dependent markup before the slot content
239
+ * has been evaluated.
240
+ * Becomes obsolete with the implementation of PDESI-1908.
241
+ */
242
+ hasResolvedDefaultSlot: boolean;
231
243
  uploadEl: HTMLStzhUploadElement;
232
244
  resetListener(event: Event): void;
233
245
  nameWatcher(newValue: string): void;
@@ -328,6 +340,12 @@ export declare class StzhUpload {
328
340
  private removeFileFromState;
329
341
  componentWillLoad(): Promise<void>;
330
342
  private toggleToast;
343
+ /**
344
+ * Re-evaluates default-slot content and updates the related render state.
345
+ * Becomes obsolete with implementation of PDESI-1908.
346
+ */
347
+ private updateDefaultSlotState;
348
+ componentDidLoad(): void;
331
349
  componentDidRender(): void;
332
350
  disconnectedCallback(): void;
333
351
  /***
@@ -4146,7 +4146,7 @@ export namespace Components {
4146
4146
  }
4147
4147
  interface StzhMessage {
4148
4148
  /**
4149
- * Description (use instead of default slot)
4149
+ * Plain text description. If set, this takes precedence over the default slot.
4150
4150
  * @default ""
4151
4151
  */
4152
4152
  "description": string;
@@ -5272,7 +5272,7 @@ export namespace Components {
5272
5272
  "invalid": boolean;
5273
5273
  /**
5274
5274
  * Label (or use default slot)
5275
- * @default "Label"
5275
+ * @default ""
5276
5276
  */
5277
5277
  "label": string;
5278
5278
  /**
@@ -13669,7 +13669,7 @@ declare namespace LocalJSX {
13669
13669
  }
13670
13670
  interface StzhMessage {
13671
13671
  /**
13672
- * Description (use instead of default slot)
13672
+ * Plain text description. If set, this takes precedence over the default slot.
13673
13673
  * @default ""
13674
13674
  */
13675
13675
  "description"?: string;
@@ -14813,7 +14813,7 @@ declare namespace LocalJSX {
14813
14813
  "invalid"?: boolean;
14814
14814
  /**
14815
14815
  * Label (or use default slot)
14816
- * @default "Label"
14816
+ * @default ""
14817
14817
  */
14818
14818
  "label"?: string;
14819
14819
  /**
@@ -22,3 +22,16 @@ export declare function getStzhEnvironment(): StzhEnvironmentEnum;
22
22
  export declare function addWordBreakToLinks(links: HTMLElement[]): void;
23
23
  export declare function formatHeadingForHyphenation(heading: any): any;
24
24
  export declare function getTheme(): string;
25
+ /**
26
+ * Checks whether a host element has meaningful default-slot content.
27
+ *
28
+ * This detects:
29
+ * - normal default-slot content
30
+ * - non-empty text nodes
31
+ * - Stencil scoped-slot fallback / relocated nodes
32
+ *
33
+ * This ignores:
34
+ * - named-slot content, meaning elements with a `slot` attribute
35
+ * - elements with one of the provided ignored class names
36
+ */
37
+ export declare function hasDefaultSlotContent(host: HTMLElement, ignoredClassNames?: string[]): boolean;
@@ -5709,7 +5709,7 @@
5709
5709
  "attributes": [
5710
5710
  {
5711
5711
  "name": "description",
5712
- "description": "Description (use instead of default slot)"
5712
+ "description": "Plain text description. If set, this takes precedence over the default slot."
5713
5713
  },
5714
5714
  {
5715
5715
  "name": "hide-close",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oiz/stzh-components",
3
- "version": "4.12.1-beta1",
3
+ "version": "4.12.2",
4
4
  "description": "STZH Web Components Library",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils-BtvTjHH2.js","sources":["src/utils/utils.ts"],"sourcesContent":["import { dashCase } from \"./string-utils\";\n\n// Determines whether an element has a slot. If name is specified, the function will look for a corresponding named\n// slot, otherwise it will look for a \"default\" slot (e.g. a non-empty text node or an element with no slot attribute).\nexport function hasSlot(el: HTMLElement, name?: string) {\n // Look for a named slot\n if (name) {\n return el.querySelector(`[slot=\"${name}\"]`) !== null;\n }\n\n // Look for a default slot\n return Array.from(childNodes(el)).some((node) => {\n if (node.nodeType === node.TEXT_NODE && node.textContent.trim() !== \"\") {\n return true;\n }\n\n if (node.nodeType === node.ELEMENT_NODE) {\n const el = node as HTMLElement;\n if (!el.hasAttribute(\"slot\")) {\n return true;\n }\n }\n\n return false;\n });\n}\n\nexport function setPropsIfNull(element: Element, attributes: any) {\n Object.keys(attributes).forEach((attribute) => {\n if (element.getAttribute(dashCase(attribute)) === null) {\n element[attribute] = attributes[attribute];\n }\n });\n}\n\nexport function setProps(element: Element, attributes: any) {\n Object.keys(attributes).forEach((attribute) => {\n element[attribute] = attributes[attribute];\n });\n}\n\nexport function isStzhElement(element: Element) {\n if (!element || element.nodeType !== 1) {\n return false;\n }\n\n return element.tagName.toLowerCase().indexOf(\"stzh-\") === 0;\n}\n\n// returns content of <meta name=\"\" content=\"\"> tags or '' if empty/non existant\nexport function getMeta(name) {\n const meta = document.querySelector(\n `meta[name=\"${name}\"],[property=\"${name}\"]`,\n );\n return meta ? meta.getAttribute(\"content\") : \"\";\n}\n\nexport function parents(node: Element | Node) {\n const parents = [];\n\n while (node) {\n parents.unshift(node);\n node = node.parentNode;\n }\n\n return parents;\n}\n\nexport function childNodes(node: Element) {\n const childNodes = node.childNodes;\n\n // check if element is stencil element without shadow dom\n // and then detect elements that were slotted into the element\n if (node[\"s-sc\"]) {\n const result = [];\n\n for (let i = 0; i < childNodes.length; i++) {\n const slot = childNodes[i][\"s-nr\"];\n\n if (slot) {\n result.push(slot);\n }\n }\n\n return result;\n }\n\n return Array.from(childNodes);\n}\n\nexport function isVisible(element: HTMLElement): boolean {\n // @ts-ignore\n if (typeof element.checkVisibility !== \"undefined\") {\n // @ts-ignore\n return element.checkVisibility({\n checkOpacity: false,\n checkVisibilityCSS: false,\n });\n } else {\n return !!(\n element.offsetWidth ||\n element.offsetHeight ||\n element.getClientRects().length\n );\n }\n}\n\nexport function offset(element): { top: number; left: number } {\n if (!element.getClientRects().length) {\n return { top: 0, left: 0 };\n }\n\n let rect = element.getBoundingClientRect();\n let win = element.ownerDocument.defaultView;\n\n return {\n top: rect.top + win.pageYOffset,\n left: rect.left + win.pageXOffset,\n };\n}\n\nexport async function raf() {\n return new Promise<void>((resolve) => {\n requestAnimationFrame(() => {\n resolve();\n });\n });\n}\n\nexport async function setTimeout(time: number) {\n return new Promise<void>((resolve) => {\n window.setTimeout(() => {\n resolve();\n }, time);\n });\n}\n\nexport enum StzhEnvironmentEnum {\n UNKNOWN = \"UNKNOWN\",\n DEV = \"DEV\",\n UAT = \"UAT\",\n PROD = \"PROD\",\n}\n\nexport function getStzhEnvironment(): StzhEnvironmentEnum {\n const url = window.location.href;\n\n switch (true) {\n // DEV\n case url.includes(\"localhost\"):\n case url.includes(\"test.stadt-zuerich.loc\"):\n case /\\.dev\\.cmp\\.szh\\.loc/.test(url):\n return StzhEnvironmentEnum.DEV;\n\n // UAT\n case url.includes(\"integ.stadt-zuerich.ch\"):\n case /\\.uat\\.cmp\\.szh\\.loc/.test(url):\n return StzhEnvironmentEnum.UAT;\n\n // PROD\n case url.includes(\"https://www.stadt-zuerich.ch\"):\n case url.includes(\"designsystem.stadt-zuerich.ch\"):\n case /\\.cmp\\.szh\\.loc/.test(url):\n return StzhEnvironmentEnum.PROD;\n\n // Fallback\n default:\n return StzhEnvironmentEnum.UNKNOWN;\n }\n}\n\nexport function addWordBreakToLinks(links: HTMLElement[]) {\n links.forEach((link) => {\n link.childNodes.forEach((node) => {\n if (node.nodeType === Node.TEXT_NODE && node.textContent?.includes(\"_\")) {\n const span = document.createElement(\"span\");\n span.innerHTML = node.textContent.replace(/_/g, \"_<wbr>\");\n link.replaceChild(span, node);\n }\n });\n });\n}\nexport function formatHeadingForHyphenation(heading) {\n return heading.replace(/(\\p{L})\\/(\\p{L})/gu, \"$1 / $2\");\n}\n\nexport function getTheme() {\n const htmlElement = document.documentElement;\n return Array.from(htmlElement.classList).find((className) =>\n className.startsWith(\"stzh-theme-\"),\n );\n}\n"],"names":["dashCase"],"mappings":";;;;AAEA;AACA;AACgB,SAAA,OAAO,CAAC,EAAe,EAAE,IAAa,EAAA;;IAEpD,IAAI,IAAI,EAAE;QACR,OAAO,EAAE,CAAC,aAAa,CAAC,CAAA,OAAA,EAAU,IAAI,CAAI,EAAA,CAAA,CAAC,KAAK,IAAI;;;AAItD,IAAA,OAAO,KAAK,CAAC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AAE,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,gBAAgB,mBACvC,IAAI,CAAC,OAAO,EAC3B,YAAY,EAAC,IAAI,EAAA,aAAA,EACJ,IAAI,CAAC,SAAS,GAAG,MAAM,GAAG,SAAS,EAAA,CACnC,KAEf,CAAA,CAAA,MAAA,EAAA,EAAM,IAAI,EAAC,cAAc,GAAQ,CAClC,KAED,CAAM,CAAA,MAAA,EAAA,EAAA,IAAI,EAAC,cAAc,EAAA,CAAQ,CAClC,CACG,EACL,CAAC,SAAS,IAAI,eAAe,MAC5B,EAAC,oBAAoB,EAAA,EAAA,GAAA,EAAA,0CAAA,EACnB,WAAW,EAAC,YAAY,EACxB,EAAE,EAAE,CAAG,EAAA,IAAI,CAAC,OAAO,CAAA,YAAA,CAAc,EACjC,KAAK,EAAE,IAAI,CAAC,MAAM,EAClB,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,mBAAmB,EAAE,KAAK,EAAA,CAC1B,CACH,CACG,CACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/stzh-input/stzh-input.scss?tag=stzh-input&encapsulation=scoped","src/components/stzh-input/stzh-input.tsx"],"sourcesContent":["/**\n * @prop --text-align: Text align of field\n * @prop --input-width: Width of of field\n * @prop --padding-top: Padding top of field\n * @prop --padding-bottom: Padding bottom of field\n * @prop --padding-left: Padding left of field\n * @prop --padding-right: Padding right of field\n *\n * @prop --stzh-form-input-height: **Global**: Height of fields & buttons\n * @prop --stzh-form-input-small-height: **Global**: Height of fields & buttons when small variant is used\n * @prop --stzh-form-input-tiny-height: **Global**: Height of fields & buttons when tiny variant is used\n */\n\n:host {\n --text-align: left;\n --color: var(--stzh-input-color, #{$formColor});\n --border-color: #{$formBorderColor};\n --border-radius: #{$formInputBorderRadius};\n --background-color: #{$formBackgroundColor};\n --padding-top: #{space(\"xsmall\")};\n --padding-bottom: #{space(\"xsmall\")};\n --padding-left: #{space(\"medium\")};\n --padding-right: #{space(\"medium\")};\n --height: #{$formInputHeight};\n --input-width: 100%;\n --label-color: var(--stzh-input-label-color, #{$formLabelColor});\n --placeholder-color: #{$formInputPlaceholderColor};\n --button-right-color: #{$colorGrey80};\n\n --hover-color: var(--stzh-input-hover-color, #{$formHoverColor});\n --hover-border-color: var(\n --stzh-input-hover-border-color,\n #{$formHoverBorderColor}\n );\n --hover-background-color: #{$formHoverBackgroundColor};\n --hover-button-right-color: #{$colorPrimary70};\n\n --focus-color: #{$formFocusColor};\n --focus-border-color: #{$formFocusBorderColor};\n --focus-background-color: #{$formFocusBackgroundColor};\n --focus-button-right-color: #{$colorPrimary70};\n\n --text-selection-background-color: #{$colorSecondary30};\n\n width: 100%;\n\n &[type=\"hidden\"] {\n position: absolute;\n top: -9999px;\n left: -9999px;\n visibility: hidden;\n }\n\n &[size=\"small\"] {\n --height: #{$formInputHeightSmall};\n }\n\n /* Filled */\n\n &[is-filled]:not([is-filled=\"false\"]) {\n --button-right-color: #{$colorPrimary70};\n --hover-button-right-color: #{$colorPrimary70};\n --focus-button-right-color: #{$formFocusColor};\n }\n\n /* Invalid */\n\n &[is-invalid] {\n --color: #{$colorError60};\n --border-color: #{$colorError60};\n --background-color: #{$colorWhite};\n --label-color: #{$colorError60};\n --placeholder-color: #{$colorError60};\n --button-right-color: #{$colorError60};\n\n --hover-color: #{$colorError60};\n --hover-border-color: #{$colorError60};\n --hover-background-color: #{$colorWhite};\n --hover-button-right-color: #{$colorError60};\n\n --focus-color: #{$colorError60};\n --focus-border-color: #{$colorError60};\n --focus-background-color: #{$colorWhite};\n --focus-button-right-color: #{$colorError60};\n }\n\n &[readonly]:not([readonly=\"false\"]),\n &[disabled]:not([disabled=\"false\"]) {\n --color: #{$formDisabledColor};\n --border-color: #{$formDisabledBorderColor};\n --background-color: #{$formDisabledBackgroundColor};\n --label-color: #{$formDisabledColor};\n --placeholder-color: #{$formDisabledColor};\n --description-color: #{$formDisabledColor};\n --button-right-color: #{$colorGrey70};\n\n --hover-color: #{$formDisabledColor};\n --hover-border-color: #{$formDisabledBorderColor};\n --hover-background-color: #{$formDisabledBackgroundColor};\n --hover-button-right-color: #{$colorGrey70};\n\n --focus-color: #{$formDisabledColor};\n --focus-border-color: #{$formDisabledBorderColor};\n --focus-background-color: #{$formDisabledBackgroundColor};\n --focus-button-right-color: #{$colorGrey70};\n }\n\n /* Internal (Hover / Focus) */\n\n &:is(:has(.stzh-input__input:hover)) {\n --button-right-color: var(--hover-button-right-color);\n }\n\n &:is(:has(.stzh-input__input:focus)) {\n --button-right-color: var(--focus-button-right-color);\n }\n}\n\n:host ::slotted([slot=\"button-right\"]),\n.stzh-input__button-right {\n position: absolute;\n top: 0;\n right: 0;\n}\n\n:host ::slotted(stzh-popover[slot=\"button-right\"]),\n:host ::slotted([slot=\"button-right\"]) stzh-popover {\n display: block;\n}\n\n:host ::slotted(stzh-button[slot=\"button-right\"]),\n:host\n ::slotted(stzh-button[slot=\"button-right\"][disabled]:not([disabled=\"false\"])),\n:host\n ::slotted(stzh-popover[slot=\"button-right\"])\n .stzh-popover__trigger\n stzh-button,\n:host\n ::slotted(stzh-popover[slot=\"button-right\"])\n .stzh-popover__trigger\n stzh-button[disabled]:not([disabled=\"false\"]),\n:host\n ::slotted(stzh-tooltip[slot=\"button-right\"])\n .stzh-tooltip__trigger\n stzh-button,\n:host\n ::slotted(stzh-tooltip[slot=\"button-right\"])\n .stzh-tooltip__trigger\n stzh-button[disabled]:not([disabled=\"false\"]),\n.stzh-input__button-right,\n.stzh-input__button-right[disabled]:not([disabled=\"false\"]) {\n --x: 0; // Strangely, at least one statement is necessary, so that the media query below is also written\n\n @media (forced-colors: none) {\n --color: var(--button-right-color);\n --border-color: transparent;\n --background-color: transparent;\n\n --hover-color: var(--button-right-color);\n --hover-border-color: transparent;\n --hover-background-color: transparent;\n }\n}\n\n// :host ::slotted(stzh-button[slot=\"button-right\"][disabled]:not([disabled=\"false\"])),\n// :host ::slotted([slot=\"button-right\"]) stzh-button[disabled]:not([disabled=\"false\"]),\n// .stzh-input__button-right[disabled]:not([disabled=\"false\"]) {\n// --hover-color: #{$colorGrey80};\n// }\n\n:host\n ::slotted(\n stzh-button[slot=\"button-right\"][size=\"default\"][icon-only]:not(\n [icon-only=\"false\"]\n )\n ),\n:host\n ::slotted(stzh-popover[slot=\"button-right\"])\n .stzh-popover__trigger\n stzh-button[icon-only][size=\"default\"]:not([icon-only=\"false\"]),\n:host\n ::slotted(stzh-tooltip[slot=\"button-right\"])\n .stzh-tooltip__trigger\n stzh-button[icon-only][size=\"default\"]:not([icon-only=\"false\"]),\n.stzh-input__button-right[size=\"default\"][icon-only]:not([icon-only=\"false\"]) {\n --icon-size: #{iconSize(\"medium\")};\n}\n\n:host([clearable]:not([clearable=\"false\"])[is-filled]:not([is-filled=\"false\"]))\n .stzh-input__button-right {\n opacity: 0;\n visibility: hidden;\n pointer-events: none;\n}\n\n:host([clearable]:not([clearable=\"false\"])[is-filled]:not([is-filled=\"false\"]))\n .stzh-input__field-wrapper:hover\n .stzh-input__button-right,\n:host([clearable]:not([clearable=\"false\"])[is-filled]:not([is-filled=\"false\"]))\n .stzh-input__input:focus\n + .stzh-input__button-right {\n opacity: 1;\n visibility: visible;\n pointer-events: auto;\n}\n\n.stzh-input {\n @include input-description;\n\n ::selection {\n background: var(--text-selection-background-color);\n }\n\n &__field-wrapper {\n position: relative;\n display: flex;\n width: var(--input-width);\n }\n\n &__input {\n @include font;\n @include fontSize(\"milli\");\n border: 2px solid var(--border-color);\n transition-property: color, border-color, background-color;\n transition-duration: $baseTransitionAnimationSpeed;\n border-radius: var(--border-radius);\n padding-top: var(--padding-top);\n padding-bottom: var(--padding-bottom);\n padding-left: var(--padding-left);\n padding-right: var(--padding-right);\n margin: 0;\n width: 100%;\n color: var(--color);\n background-color: var(--background-color);\n appearance: none;\n text-align: var(--text-align);\n\n @include placeholder {\n color: var(--placeholder-color);\n }\n\n &:hover {\n color: var(--hover-color);\n border-color: var(--hover-border-color);\n background-color: var(--hover-background-color);\n }\n\n &:focus {\n color: var(--focus-color);\n border-color: var(--focus-border-color);\n background-color: var(--focus-background-color);\n }\n\n // prevent ugly autofill background color in chrome\n &:-webkit-autofill {\n background-clip: text;\n }\n\n // show ellipsis for placeholders that are too long\n &:placeholder-shown {\n text-overflow: ellipsis;\n }\n\n // hide search clear icon on chrome\n &[type=\"search\"]::-webkit-search-decoration,\n &[type=\"search\"]::-webkit-search-cancel-button,\n &[type=\"search\"]::-webkit-search-results-button,\n &[type=\"search\"]::-webkit-search-results-decoration {\n -webkit-appearance: none;\n }\n\n /* Normal inputs */\n\n &--input {\n height: var(--height);\n }\n\n /* Textarea */\n &--textarea {\n min-height: var(--height);\n resize: vertical;\n }\n }\n\n &__label-wrapper {\n display: flex;\n align-items: center;\n gap: space(\"xsmall\");\n margin-bottom: space(\"xxxsmall\");\n width: 100%;\n min-width: 0;\n min-height: auto;\n }\n\n &__label {\n @include font(\"heavy\");\n @include fontSize(\"micro\");\n @include truncate;\n display: block;\n color: var(--label-color);\n min-width: 0;\n flex: 0 1 auto;\n max-width: 100%;\n margin-bottom: 0;\n // position: absolute;\n // top: calc(#{$formInputHeight} / 2);\n // // padding-left (medium) + border-left\n // left: calc(#{space('medium')} + 1px);\n // max-width: calc(100% - #{space('medium')} * 2);\n // transform: translateY(-50%);\n // transition: all $baseTransitionAnimationSpeed;\n // pointer-events: none;\n\n &.no-label-truncate {\n @include resetTruncate;\n white-space: normal;\n overflow: visible;\n text-overflow: clip;\n }\n\n &:empty {\n display: none;\n }\n }\n\n // &::before {\n // content: '';\n // display: none;\n // background: $colorWhite;\n // position: absolute;\n // width: 100%;\n // z-index: -1;\n // left: 0;\n // top: 50%;\n // // prevent white line not fully overlaping border of input\n // margin-top: -0.5px;\n // height: 2px;\n // }\n &__label:not(.no-label-truncate) {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n &__label.no-label-truncate {\n max-width: none;\n white-space: normal;\n }\n\n &__marker {\n @include fontSize(\"nano\");\n margin-left: calc(-0.25em + #{space(\"xsmall\")});\n }\n\n /* Clearable / Search input / Password */\n &__label-wrapper > &__description-wrapper {\n flex: 0 0 auto;\n display: inline-flex;\n align-items: flex-start;\n margin: 0;\n }\n\n &__label-wrapper &__error,\n &__label-wrapper &__description-text {\n display: none;\n }\n\n &__label-wrapper &__description {\n display: inline-flex;\n align-items: flex-start;\n margin: 0;\n }\n\n &__label-wrapper &__description-long {\n display: inline-flex;\n align-items: flex-start;\n }\n\n &__label-wrapper &__description-long-popover,\n &__label-wrapper &__description-long-button {\n height: 20px;\n line-height: 1;\n }\n\n &__label-wrapper &__description-long-button {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n }\n\n &__label-wrapper stzh-popover &__description-long-icon {\n --size: var(--stzh-icon-size-small);\n display: block;\n line-height: 0;\n color: $colorPrimary70;\n }\n\n &__description-wrapper {\n flex: 0 0 auto;\n }\n\n &--type-password#{&}--is-not-filled &__button-right,\n &--type-password#{&}--is-readonly &__button-right,\n &--type-password#{&}--is-disabled &__button-right,\n &--type-search#{&}--is-not-clearable &__button-right,\n &--type-search#{&}--is-not-filled &__button-right,\n &--type-search#{&}--is-readonly &__button-right,\n &--type-search#{&}--is-disabled &__button-right {\n pointer-events: none;\n }\n\n &--type-search &__button-right {\n width: var(--height);\n height: var(--height);\n transition-duration: $baseTransitionAnimationSpeed;\n transition-property: color, background-color, border-color;\n\n @media (forced-colors: active) {\n transition: none;\n color: ButtonBorder;\n }\n }\n\n &--type-search:hover &__button-right {\n @media (forced-colors: active) {\n color: Highlight;\n }\n }\n\n /* Styles for floating label */\n\n // &:not(#{&}--is-readonly):not(#{&}--is-disabled) &__input:focus + &__label,\n // &--has-fixed-label &__label,\n // &--is-filled &__label,\n // &--is-readonly &__label,\n // &--is-disabled &__label,\n // &--is-invalid &__label {\n // display: block;\n // top: 0;\n // // padding-left (input field medium) - padding-left\n // left: calc(#{space('medium')} - #{space('xxsmall')});\n // height: 20px; // dividable by two (so before element is always positioned correctly)\n // line-height: 20px;\n // padding: 0 space('xxsmall');\n // max-width: calc(100% - #{space('small')} * 2);\n // pointer-events: all;\n\n // &:not(:empty)::before {\n // display: block;\n // }\n // }\n\n /* Button Right Variant */\n\n &--has-button-right &__input {\n // distance to icon + icon button width\n padding-right: var(--height);\n }\n\n // &--has-button-right &__label {\n // // 100% - ((padding left of normal variant + border 1px) * 2) - icon button width\n // max-width: calc(100% - (#{space('medium')} + 1px) * 2 - #{$formInputHeight});\n // }\n\n // &--has-button-right#{&}:not(#{&}--is-readonly):not(#{&}--is-disabled) &__input:focus + &__label,\n // &--has-button-right#{&}--has-fixed-label &__label,\n // &--has-button-right#{&}--is-filled &__label,\n // &--has-button-right#{&}--is-readonly &__label,\n // &--has-button-right#{&}--is-disabled &__label,\n // &--has-button-right#{&}--is-invalid &__label {\n // // 100% - left distance to text + 1px border + padding label right side - icon button width\n // max-width: calc(100% - #{space('medium')} - #{space('xxsmall')} - 1px + #{space('xxsmall')} - #{$formInputHeight});\n // }\n\n /* Size variants */\n\n &--size-small &__input {\n @include fontSize(\"micro\");\n }\n\n // &--size-small &__label {\n // top: calc(#{$formInputHeightSmall} / 2);\n // }\n\n // &--size-small#{&}:not(#{&}--is-readonly):not(#{&}--is-disabled) &__input:focus + &__label,\n // &--size-small#{&}--has-fixed-label &__label,\n // &--size-small#{&}--is-filled &__label,\n // &--size-small#{&}--is-readonly &__label,\n // &--size-small#{&}--is-disabled &__label,\n // &--size-small#{&}--is-invalid &__label {\n // top: 0;\n // }\n\n // &--size-small#{&}--has-button-right &__label {\n // max-width: calc(100% - (#{space('medium')} + 1px) * 2 - #{$formInputHeightSmall});\n // }\n\n // &--size-small#{&}--has-button-right#{&}:not(#{&}--is-readonly):not(#{&}--is-disabled) &__input:focus + &__label,\n // &--size-small#{&}--has-button-right#{&}--has-fixed-label &__label,\n // &--size-small#{&}--has-button-right#{&}--is-filled &__label,\n // &--size-small#{&}--has-button-right#{&}--is-readonly &__label,\n // &--size-small#{&}--has-button-right#{&}--is-disabled &__label,\n // &--size-small#{&}--has-button-right#{&}--is-invalid &__label {\n // max-width: calc(100% - #{space('medium')} - #{space('xxsmall')} - 1px + #{space('xsmall')} - #{$formInputHeightSmall});\n // }\n\n /* Spin button */\n\n &:not(#{&}--has-spin) &__input {\n &::-webkit-outer-spin-button,\n &::-webkit-inner-spin-button {\n appearance: none;\n margin: 0;\n }\n\n &[type=\"number\"] {\n appearance: textfield;\n }\n }\n\n /* Hidden label */\n\n &--has-label-hidden &__label {\n @include visuallyhidden;\n }\n\n /* Readonly / Disabled */\n\n &--is-readonly &__input,\n &--is-disabled &__input,\n &--is-readonly &__label,\n &--is-disabled &__label {\n cursor: not-allowed;\n }\n // &--is-readonly &__label,\n // &--is-disabled &__label {\n // &::before {\n // background: transparent;\n // }\n // }\n}\n","import { Component, Element, Event, EventEmitter, h, Host, Listen, Prop, State, Watch } from \"@stencil/core\";\nimport { StzhInputBlurEvent, StzhInputChangedEvent, StzhInputChangeEvent, StzhInputFocusEvent } from \"../../index\";\nimport { hasSlot } from \"../../utils/utils\";\n\nimport { StzhInputLocalizedText } from \"./stzh-input.localization\";\nimport { StzhInputDescription } from \"./stzh-input-description\";\n\nlet inputCounter = 0;\n\n/**\n * @slot - Slot for label content\n * @slot description - Slot for description\n * @slot description-long - Slot for long description (in popover)\n * @slot description-long-title - Slot for long description title (in popover) / instead of descriptionLongTitle or description property\n * @slot error - Slot for error\n * @slot button-right - Slot for right button\n */\n@Component({\n tag: \"stzh-input\",\n styleUrl: \"stzh-input.scss\",\n scoped: true,\n})\nexport class StzhInput {\n /** Translation strings */\n @Prop() localization: StzhInputLocalizedText;\n\n /** Whether the input is a textarea or an input field */\n @Prop() multiline: boolean = false;\n\n /** Rows attribute if input element is textarea */\n @Prop() rows: number;\n\n /** If input field, this defines the type (if `search`, a search icon will be displayed) */\n @Prop({ reflect: true }) type: \"text\" | \"search\" | \"password\" | \"email\" | \"url\" | \"tel\" | \"number\" | \"hidden\" =\n \"text\";\n\n /** If input type is number, this will be the step size */\n @Prop() step: number = 1;\n\n /** If input type is number, this will be the minimum step number */\n @Prop() min: number;\n\n /** If input type is number, this will be the maximum step number */\n @Prop() max: number;\n\n /** If input type is number and this property is true, this will show the spin buttons on hover/focus */\n @Prop({ reflect: true }) showSpin: boolean = false;\n\n /** Whether the element is readonly or not */\n @Prop({ reflect: true }) readonly: boolean = false;\n\n /** Whether the element is disabled or not */\n @Prop({ reflect: true }) disabled: boolean = false;\n\n /** Whether clearable button is showing when input field has value and is enabled (button-right slot not usable anymore when true) */\n @Prop({ reflect: true }) clearable: boolean = false;\n\n /** Hide `(optional)` label (or use `required` inside form to hide it) */\n @Prop({ reflect: true }) hideOptional: boolean = false;\n\n /** Minimum of characters */\n @Prop() minlength: number;\n\n /** Maxlength of characters */\n @Prop() maxlength: number;\n\n /** The name of the input element */\n @Prop({ reflect: true }) name: string;\n\n /** The value of the input element */\n @Prop({ mutable: true }) value: string = \"\";\n\n /** Default value (used by reset) */\n @Prop({ mutable: true }) defaultValue: string = \"\";\n\n /** Description message (use description slot as alternative) */\n @Prop() description: string;\n\n /** Long description message appearing in a popover (use description-long slot as alternative) */\n @Prop() descriptionLong: string;\n\n /**\n * **Do not use this property. It will be deprecated with the next major release.**\n * Long description title appearing in a popover (use description-long-title slot as or description property alternative) */\n @Prop() descriptionLongTitle: string;\n\n /** One or multiple error message (use error slot as alternative) */\n @Prop() error: string | string[];\n private _error: string[];\n\n /** Invalid status */\n @Prop({ reflect: true }) invalid: boolean = false;\n\n /** Required status */\n @Prop({ reflect: true }) required: boolean = false;\n\n /**\n * Specify inputmode.\n * See [MDN](https://developer.mozilla.org/de/docs/Web/HTML/Global_attributes/inputmode) for possible values\n */\n @Prop() inputmode: string;\n\n /**\n * Specify what the user agent has to provide as automated assistance.\n * See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) for possible values\n */\n @Prop() autocomplete: string = \"on\";\n\n /** Whether autocomplete should be turned off */\n @Prop() noAutocomplete: boolean = false;\n\n /** Label */\n @Prop() label: string = \"\";\n\n /** Whether label should be truncated or not */\n @Prop() noLabelTruncate: boolean = false;\n\n /** Whether label should be visually hidden. */\n @Prop() labelHidden: boolean = false;\n\n /** Size variant */\n @Prop({ reflect: true }) size: \"default\" | \"small\" = \"default\";\n\n /** Id for element which describes the input (this will be overwritten if description prop or slot is used, used by stzh-radiogroup) */\n @Prop({ attribute: \"a11y-describedby\" }) a11yDescribedby: string = \"\";\n\n /** Whether the input is filled or not */\n @State() filled: boolean;\n\n /** Whether to show the password or not */\n @State() showPassword: boolean;\n\n @State() hasDefaultSlot: boolean = false;\n @State() hasResolvedDefaultSlot: boolean = false;\n\n @Element() element: HTMLStzhInputElement;\n\n /** Input change event */\n @Event() stzhChange: EventEmitter<StzhInputChangeEvent>;\n\n /** Input changed event */\n @Event() stzhChanged: EventEmitter<StzhInputChangedEvent>;\n\n /** Input focus event */\n @Event() stzhFocus: EventEmitter<StzhInputFocusEvent>;\n\n /** Input blur event */\n @Event() stzhBlur: EventEmitter<StzhInputBlurEvent>;\n\n @Listen(\"reset\", { target: \"document\" })\n resetListener(event: Event) {\n if ((event.target as HTMLElement).contains(this.element)) {\n requestAnimationFrame(() => {\n this.handleReset();\n });\n }\n }\n\n @Watch(\"value\")\n valueWatcher(newValue: string) {\n this.filled = newValue !== \"\";\n }\n\n @Watch(\"error\")\n errorWatcher(newValue: string | string[]) {\n if (typeof newValue === \"string\") {\n try {\n this._error = JSON.parse(newValue);\n } catch (e) {\n if (newValue) {\n this._error = [newValue];\n } else {\n this._error = [];\n }\n }\n } else if (newValue) {\n this._error = newValue;\n } else {\n this._error = [];\n }\n }\n\n @Watch(\"type\")\n typeWatcher(newValue: string) {\n const types = [\"text\", \"search\", \"password\", \"email\", \"url\", \"tel\", \"number\", \"hidden\"];\n\n if (!this.multiline && !types.includes(newValue)) {\n throw new Error(`Type ${newValue} not supported`);\n }\n }\n\n private input: HTMLInputElement | HTMLTextAreaElement;\n private inputId: string;\n private focusedByInput: boolean = false;\n private renderPromiseResolve: (value?: unknown) => void;\n\n /** Detects default-slot label content, including Stencil's scoped-slot fallback nodes. */\n private hasDefaultLabelContent() {\n if (hasSlot(this.element)) {\n return true;\n }\n\n return Array.from(this.element.childNodes).some(node => {\n const slotNode = (node as any)[\"s-nr\"] ?? node;\n\n if (slotNode.nodeType === Node.TEXT_NODE) {\n return (slotNode.textContent ?? \"\").trim() !== \"\";\n }\n\n if (slotNode.nodeType === Node.ELEMENT_NODE) {\n const element = slotNode as HTMLElement;\n\n return !element.hasAttribute(\"slot\") && !element.classList.contains(\"stzh-input\");\n }\n\n return false;\n });\n }\n\n /** Updates default-slot state after initial render and later slot content changes. */\n private updateDefaultSlotState = () => {\n const hasDefaultSlot = this.hasDefaultLabelContent();\n\n if (this.hasDefaultSlot !== hasDefaultSlot) {\n this.hasDefaultSlot = hasDefaultSlot;\n }\n\n if (!this.hasResolvedDefaultSlot) {\n this.hasResolvedDefaultSlot = true;\n }\n };\n\n private waitForNextRender() {\n return new Promise(resolve => (this.renderPromiseResolve = resolve));\n }\n\n private onClearClick = async (event: MouseEvent) => {\n this.value = \"\";\n this.input.focus();\n\n await this.waitForNextRender();\n\n this.stzhChange.emit({\n component: \"stzh-input\",\n originalEvent: event,\n value: this.value,\n });\n\n this.stzhChanged.emit({\n component: \"stzh-input\",\n originalEvent: event,\n value: this.value,\n });\n };\n\n private onTogglePasswordVisibilityClick = async () => {\n this.showPassword = !this.showPassword;\n };\n\n private handleReset = async () => {\n this.value = this.defaultValue;\n // we also update value, since render doesn't get executed sometimes\n this.input.value = this.defaultValue;\n\n // TODO: check if we need own reset event or trigger the change event\n // (custom browser behaviour doesn't send change event, when reset is executed)\n // this.stzhChange.emit({\n // component: \"stzh-input\",\n // originalEvent: event,\n // value: this.value\n // });\n };\n\n private onInput = (event: InputEvent) => {\n this.value = this.input.value;\n\n this.stzhChange.emit({\n component: \"stzh-input\",\n originalEvent: event,\n value: this.value,\n });\n };\n\n private onChange = (event: InputEvent) => {\n this.value = this.input.value;\n\n this.stzhChanged.emit({\n component: \"stzh-input\",\n originalEvent: event,\n value: this.value,\n });\n };\n\n private onRootFocus = () => {\n if (!this.focusedByInput) {\n this.input.focus();\n }\n\n this.focusedByInput = false;\n };\n\n private onFocus = (event: FocusEvent) => {\n this.focusedByInput = true;\n\n const focusEvent = new FocusEvent(\"focus\", {\n view: window,\n bubbles: false,\n cancelable: false,\n });\n\n this.element.dispatchEvent(focusEvent);\n this.stzhFocus.emit({\n component: \"stzh-input\",\n originalEvent: event,\n });\n };\n\n private onBlur = (event: FocusEvent) => {\n // fixes weird bug where autofill selection doesn't get removed\n this.input.value = this.input.value;\n\n const blurEvent = new FocusEvent(\"blur\", {\n view: window,\n bubbles: false,\n cancelable: false,\n });\n\n this.element.dispatchEvent(blurEvent);\n this.stzhBlur.emit({\n component: \"stzh-input\",\n originalEvent: event,\n });\n };\n\n private renderTextarea(): HTMLTextAreaElement {\n return (\n <textarea\n class=\"stzh-input__input stzh-input__input--textarea\"\n ref={el => (this.input = el as HTMLTextAreaElement)}\n id={this.inputId}\n name={this.name}\n value={this.value}\n rows={this.rows}\n disabled={this.disabled}\n readonly={this.readonly}\n minlength={this.minlength}\n maxlength={this.maxlength}\n aria-describedby={`${this.inputId}-description ${this.a11yDescribedby}`}\n aria-required={this.required ? \"true\" : \"false\"}\n aria-invalid={this.invalid ? \"true\" : \"false\"}\n onChange={this.onChange}\n onInput={this.onInput}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n ></textarea>\n );\n }\n\n private renderInput(): HTMLInputElement {\n return (\n <input\n class=\"stzh-input__input stzh-input__input--input\"\n ref={el => (this.input = el as HTMLInputElement)}\n id={this.inputId}\n type={this.showPassword ? \"text\" : this.type}\n name={this.name}\n value={this.value}\n defaultValue={this.defaultValue}\n min={this.min}\n max={this.max}\n step={this.step}\n inputmode={this.inputmode}\n disabled={this.disabled}\n readonly={this.readonly}\n minlength={this.minlength}\n maxlength={this.maxlength}\n autocomplete={this.noAutocomplete ? \"off\" : this.autocomplete}\n aria-autocomplete={this.noAutocomplete ? \"none\" : undefined}\n aria-describedby={`${this.inputId}-description ${this.a11yDescribedby}`}\n aria-required={this.required ? \"true\" : \"false\"}\n aria-invalid={this.invalid ? \"true\" : \"false\"}\n onChange={this.onChange}\n onInput={this.onInput}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n />\n );\n }\n\n componentDidRender() {\n if (this.renderPromiseResolve) {\n this.renderPromiseResolve();\n }\n }\n\n componentDidLoad() {\n this.updateDefaultSlotState();\n }\n\n async componentWillLoad() {\n this.inputId = `stzh-input-${inputCounter++}`;\n this.typeWatcher(this.type);\n this.valueWatcher(this.value);\n this.errorWatcher(this.error);\n\n this.defaultValue = this.defaultValue || this.value;\n\n if (!this.localization) {\n this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, \"input\");\n }\n }\n\n render() {\n const buttonRightSlotUsed = hasSlot(this.element, \"button-right\");\n const descriptionUsed = hasSlot(this.element, \"description\") || !!this.description;\n const descriptionLongUsed = hasSlot(this.element, \"description-long\") || !!this.descriptionLong;\n const errorUsed = hasSlot(this.element, \"error\") || this._error?.length > 0;\n\n const labelUsed = !!this.label || this.hasDefaultSlot;\n const labelWrapperUsed = !this.hasResolvedDefaultSlot || labelUsed || descriptionLongUsed;\n\n const classes = {\n \"stzh-input\": true,\n \"stzh-input--has-button-right\":\n buttonRightSlotUsed ||\n this.type === \"search\" ||\n (this.clearable && this.filled && !this.readonly && !this.disabled),\n \"stzh-input--has-description\": descriptionUsed,\n \"stzh-input--has-description-long\": descriptionLongUsed,\n \"stzh-input--has-error\": errorUsed,\n \"stzh-input--has-spin\": this.showSpin,\n \"stzh-input--is-invalid\": this.invalid || errorUsed,\n \"stzh-input--is-disabled\": this.disabled,\n \"stzh-input--is-readonly\": this.readonly,\n \"stzh-input--is-required\": this.required,\n \"stzh-input--is-filled\": this.filled,\n \"stzh-input--is-not-filled\": !this.filled,\n \"stzh-input--is-clearable\": this.clearable,\n \"stzh-input--is-not-clearable\": !this.clearable,\n \"stzh-input--has-label-hidden\": this.labelHidden,\n [`stzh-input--size-${this.size}`]: !!this.size,\n [`stzh-input--type-${this.type}`]: !!this.type,\n };\n\n return (\n <Host\n is-invalid={this.invalid || errorUsed}\n tabindex={this.disabled ? null : \"-1\"}\n onFocus={this.onRootFocus}\n is-filled={this.filled}\n >\n <div class={classes}>\n {labelWrapperUsed && (\n <div class=\"stzh-input__label-wrapper\">\n <label\n class={{\n \"stzh-input__label\": true,\n \"no-label-truncate\": this.noLabelTruncate,\n }}\n htmlFor={this.inputId}\n >\n {this.label ? this.label : <slot onSlotchange={this.updateDefaultSlotState}></slot>}\n\n {labelUsed && !this.hideOptional && (\n <span class=\"stzh-input__marker\">\n <span class=\"stzh-input__marker-symbol\" aria-hidden=\"true\">\n {this.required\n ? this.localization.$globals.requiredFieldMarker\n : this.localization.$globals.optionalFieldMarker}\n </span>\n <span class=\"stzh-input__marker-text\">\n {this.required\n ? this.localization.$globals.requiredFieldText\n : this.localization.$globals.optionalFieldText}\n </span>\n </span>\n )}\n </label>\n\n {descriptionLongUsed && (\n <StzhInputDescription\n classPrefix=\"stzh-input\"\n id={`${this.inputId}-description-long`}\n description={this.description}\n descriptionLong={this.descriptionLong}\n descriptionLongTitle={this.descriptionLongTitle}\n descriptionLongUsed={descriptionLongUsed}\n moreInfoButtonLabel={this.localization.$globals.moreInfoButtonLabel}\n showError={false}\n showDescriptionText={false}\n />\n )}\n </div>\n )}\n <div class=\"stzh-input__field-wrapper\">\n {this.multiline ? this.renderTextarea() : this.renderInput()}\n {this.clearable || this.type === \"search\" || this.type === \"password\" ? (\n (!this.clearable || this.disabled || this.readonly || !this.filled) && this.type === \"search\" ? (\n <stzh-icon class=\"stzh-input__button-right\" name=\"search\"></stzh-icon>\n ) : this.type === \"password\" ? (\n <stzh-button\n class=\"stzh-input__button-right\"\n icon={this.showPassword ? \"view-hidden\" : \"view\"}\n size={this.size}\n iconOnly={true}\n onClick={this.onTogglePasswordVisibilityClick}\n disabled={this.disabled || this.readonly}\n a11yLabel={\n this.type === \"password\"\n ? this.showPassword\n ? this.localization.$globals.passwordToggleButtonHideLabel\n : this.localization.$globals.passwordToggleButtonShowLabel\n : undefined\n }\n ></stzh-button>\n ) : this.filled ? (\n <stzh-button\n class=\"stzh-input__button-right\"\n icon=\"close\"\n size={this.size}\n iconOnly={true}\n onClick={this.onClearClick}\n a11yLabel={this.localization.$globals.clearButtonLabel}\n aria-controls={this.inputId}\n a11yTabindex=\"-1\"\n aria-hidden={this.clearable ? \"true\" : undefined}\n ></stzh-button>\n ) : (\n <slot name=\"button-right\"></slot>\n )\n ) : (\n <slot name=\"button-right\"></slot>\n )}\n </div>\n {(errorUsed || descriptionUsed) && (\n <StzhInputDescription\n classPrefix=\"stzh-input\"\n id={`${this.inputId}-description`}\n error={this._error}\n description={this.description}\n descriptionLongUsed={false}\n />\n )}\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -1 +0,0 @@
1
- {"file":"p-CN5apKPb.js","mappings":"AAAM,SAAU,uBAAuB,CAAC,OAAe,EAAA;IACrD,MAAM,QAAQ,GAAG;AACd,SAAA,OAAO,CAAC,yBAAyB,EAAE,EAAE;AACrC,SAAA,OAAO,CAAC,yBAAyB,EAAE,EAAE;AACrC,SAAA,OAAO,CAAC,0BAA0B,EAAE,SAAS,CAAC;IAEjD,OAAO,CAAA,GAAA,EAAM,QAAQ,CAAA,IAAA,CAAM;AAC7B;AAEM,SAAU,SAAS,CAAC,UAAkB,EAAA;AAC1C,IAAA,OAAO;AACJ,SAAA,OAAO,CAAC,WAAW,EAAE,UAAU,CAAC,EAAA;AAC/B,QAAA,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE;AAC3B,KAAC,CAAC;AACN;AAEM,SAAU,QAAQ,CAAC,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,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC,SAAS,KAAI,CAAA,EAAA,GAAA,IAAI,CAAC,WAAW,0CAAE,QAAQ,CAAC,GAAG,CAAC,CAAA,EAAE;gBACvE,MAAM,IAAI,GAAG,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC;AAC3C,gBAAA,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,IAAI,EAAE,QAAQ,CAAC;AACzD,gBAAA,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,IAAI,CAAC;;AAEjC,SAAC,CAAC;AACJ,KAAC,CAAC;AACJ;AACM,SAAU,2BAA2B,CAAC,OAAO,EAAA;IACjD,OAAO,OAAO,CAAC,OAAO,CAAC,oBAAoB,EAAE,SAAS,CAAC;AACzD;SAEgB,QAAQ,GAAA;AACtB,IAAA,MAAM,WAAW,GAAG,QAAQ,CAAC,eAAe;IAC5C,OAAO,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,KACtD,SAAS,CAAC,UAAU,CAAC,aAAa,CAAC,CACpC;AACH;;;;","names":[],"sources":["src/utils/string-utils.ts","src/utils/utils.ts"],"sourcesContent":["export function createParagraphsFromBrs(content: string) {\n const replaced = content\n .replace(/^\\s*(?:<br\\s*\\/?>\\s*)*/i, \"\")\n .replace(/\\s*(?:<br\\s*\\/?>\\s*)*$/i, \"\")\n .replace(/(?:<br\\s*\\/?>\\s*?){2,}/gi, \"</p><p>\");\n\n return `<p>${replaced}</p>`;\n}\n\nexport function camelCase(dashString: string) {\n return dashString\n .replace(/-([a-z])/g, function (g) {\n return g[1].toUpperCase();\n });\n}\n\nexport function dashCase(camelString: string) {\n return camelString.replace(/[A-Z]/g, m => \"-\" + m.toLowerCase());\n}\n\nexport function abbreviateText(text, length) {\n if (text.length <= length) {\n return text;\n }\n\n var lastWhitespaceIndex = text.substring(0, length - 1).lastIndexOf(' ');\n\n if (lastWhitespaceIndex) {\n return text.substring(0, lastWhitespaceIndex) + '\\u2026';\n } else {\n return text.substring(0, length - 1);\n }\n}\n","import { dashCase } from \"./string-utils\";\n\n// Determines whether an element has a slot. If name is specified, the function will look for a corresponding named\n// slot, otherwise it will look for a \"default\" slot (e.g. a non-empty text node or an element with no slot attribute).\nexport function hasSlot(el: HTMLElement, name?: string) {\n // Look for a named slot\n if (name) {\n return el.querySelector(`[slot=\"${name}\"]`) !== null;\n }\n\n // Look for a default slot\n return Array.from(childNodes(el)).some((node) => {\n if (node.nodeType === node.TEXT_NODE && node.textContent.trim() !== \"\") {\n return true;\n }\n\n if (node.nodeType === node.ELEMENT_NODE) {\n const el = node as HTMLElement;\n if (!el.hasAttribute(\"slot\")) {\n return true;\n }\n }\n\n return false;\n });\n}\n\nexport function setPropsIfNull(element: Element, attributes: any) {\n Object.keys(attributes).forEach((attribute) => {\n if (element.getAttribute(dashCase(attribute)) === null) {\n element[attribute] = attributes[attribute];\n }\n });\n}\n\nexport function setProps(element: Element, attributes: any) {\n Object.keys(attributes).forEach((attribute) => {\n element[attribute] = attributes[attribute];\n });\n}\n\nexport function isStzhElement(element: Element) {\n if (!element || element.nodeType !== 1) {\n return false;\n }\n\n return element.tagName.toLowerCase().indexOf(\"stzh-\") === 0;\n}\n\n// returns content of <meta name=\"\" content=\"\"> tags or '' if empty/non existant\nexport function getMeta(name) {\n const meta = document.querySelector(\n `meta[name=\"${name}\"],[property=\"${name}\"]`,\n );\n return meta ? meta.getAttribute(\"content\") : \"\";\n}\n\nexport function parents(node: Element | Node) {\n const parents = [];\n\n while (node) {\n parents.unshift(node);\n node = node.parentNode;\n }\n\n return parents;\n}\n\nexport function childNodes(node: Element) {\n const childNodes = node.childNodes;\n\n // check if element is stencil element without shadow dom\n // and then detect elements that were slotted into the element\n if (node[\"s-sc\"]) {\n const result = [];\n\n for (let i = 0; i < childNodes.length; i++) {\n const slot = childNodes[i][\"s-nr\"];\n\n if (slot) {\n result.push(slot);\n }\n }\n\n return result;\n }\n\n return Array.from(childNodes);\n}\n\nexport function isVisible(element: HTMLElement): boolean {\n // @ts-ignore\n if (typeof element.checkVisibility !== \"undefined\") {\n // @ts-ignore\n return element.checkVisibility({\n checkOpacity: false,\n checkVisibilityCSS: false,\n });\n } else {\n return !!(\n element.offsetWidth ||\n element.offsetHeight ||\n element.getClientRects().length\n );\n }\n}\n\nexport function offset(element): { top: number; left: number } {\n if (!element.getClientRects().length) {\n return { top: 0, left: 0 };\n }\n\n let rect = element.getBoundingClientRect();\n let win = element.ownerDocument.defaultView;\n\n return {\n top: rect.top + win.pageYOffset,\n left: rect.left + win.pageXOffset,\n };\n}\n\nexport async function raf() {\n return new Promise<void>((resolve) => {\n requestAnimationFrame(() => {\n resolve();\n });\n });\n}\n\nexport async function setTimeout(time: number) {\n return new Promise<void>((resolve) => {\n window.setTimeout(() => {\n resolve();\n }, time);\n });\n}\n\nexport enum StzhEnvironmentEnum {\n UNKNOWN = \"UNKNOWN\",\n DEV = \"DEV\",\n UAT = \"UAT\",\n PROD = \"PROD\",\n}\n\nexport function getStzhEnvironment(): StzhEnvironmentEnum {\n const url = window.location.href;\n\n switch (true) {\n // DEV\n case url.includes(\"localhost\"):\n case url.includes(\"test.stadt-zuerich.loc\"):\n case /\\.dev\\.cmp\\.szh\\.loc/.test(url):\n return StzhEnvironmentEnum.DEV;\n\n // UAT\n case url.includes(\"integ.stadt-zuerich.ch\"):\n case /\\.uat\\.cmp\\.szh\\.loc/.test(url):\n return StzhEnvironmentEnum.UAT;\n\n // PROD\n case url.includes(\"https://www.stadt-zuerich.ch\"):\n case url.includes(\"designsystem.stadt-zuerich.ch\"):\n case /\\.cmp\\.szh\\.loc/.test(url):\n return StzhEnvironmentEnum.PROD;\n\n // Fallback\n default:\n return StzhEnvironmentEnum.UNKNOWN;\n }\n}\n\nexport function addWordBreakToLinks(links: HTMLElement[]) {\n links.forEach((link) => {\n link.childNodes.forEach((node) => {\n if (node.nodeType === Node.TEXT_NODE && node.textContent?.includes(\"_\")) {\n const span = document.createElement(\"span\");\n span.innerHTML = node.textContent.replace(/_/g, \"_<wbr>\");\n link.replaceChild(span, node);\n }\n });\n });\n}\nexport function formatHeadingForHyphenation(heading) {\n return heading.replace(/(\\p{L})\\/(\\p{L})/gu, \"$1 / $2\");\n}\n\nexport function getTheme() {\n const htmlElement = document.documentElement;\n return Array.from(htmlElement.classList).find((className) =>\n className.startsWith(\"stzh-theme-\"),\n );\n}\n"],"version":3}
@@ -1 +0,0 @@
1
- {"file":"p-CjdErtj_.js","mappings":";;;;;;;AAAA,MAAM,YAAY,GAAG,MAAM,CAAC;AAC5B;AACA;AACA,g1PAAg1P,CAAC;;ACMj1P,IAAI,YAAY,GAAG,CAAC;MAcP,SAAS,iBAAAA,kBAAA,CAAA,MAAA,SAAA,SAAAC,CAAA,CAAA;AALtB,IAAA,WAAA,CAAA,YAAA,EAAA;;;;;;;;;AAU2B,QAAA,IAAQ,CAAA,QAAA,GAAY,KAAK;;AAGzB,QAAA,IAAI,CAAA,IAAA,GAAW,EAAE;;AAGjB,QAAA,IAAK,CAAA,KAAA,GAAmB,EAAE;;AAG1B,QAAA,IAAO,CAAA,OAAA,GAAY,KAAK;;AAGxB,QAAA,IAAQ,CAAA,QAAA,GAAY,KAAK;;AAGzB,QAAA,IAAY,CAAA,YAAA,GAAY,KAAK;;AAGd,QAAA,IAAO,CAAA,OAAA,GAAY,KAAK;;AAMxD,QAAA,IAAK,CAAA,KAAA,GAAW,EAAE;;AAkBe,QAAA,IAAe,CAAA,eAAA,GAAW,EAAE;AA2C7D,QAAA,IAAc,CAAA,cAAA,GAAY,KAAK;AAE/B,QAAA,IAAW,CAAA,WAAA,GAAG,YAAW;AAC/B,YAAA,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,cAAc;AACpC,SAAC;AAEO,QAAA,IAAA,CAAA,OAAO,GAAG,CAAC,KAAiB,KAAI;YACtC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,KAAK,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=scoped","src/components/stzh-radio/stzh-radio.tsx"],"sourcesContent":[":host {\n --label-color: var(--stzh-radio-label-color, #{$baseColor});\n --label-hover-color: var(--stzh-radio-label-hover-color, #{$colorPrimary70});\n --label-hover-checked-color: var(\n --stzh-radio-label-hover-checked-color,\n #{$colorPrimary90}\n );\n --check-color: var(--stzh-radio-check-color, #{$colorPrimary70});\n --invalid-color: var(--stzh-radio-invalid-color, #{$colorError60});\n --disabled-color: var(--stzh-radio-disabled-color, #{$colorGrey50});\n\n display: inline-block;\n\n &[disabled]:not([disabled=\"false\"]) {\n --description-color: #{$formDisabledColor};\n }\n}\n\n.stzh-radio {\n @include input-description;\n display: grid;\n\n &__field-wrapper {\n @include fontSize(\"milli\");\n position: relative;\n display: flex;\n user-select: none;\n cursor: pointer;\n }\n\n &__input {\n @include visuallyhiddenInput;\n border-radius: $formInputBorderRadius;\n }\n\n &__mark {\n @include radio__mark();\n }\n\n &__check {\n @include radio__check($color: $colorPrimary70);\n }\n\n &__label {\n --stzh-base-color: initial;\n\n display: inline-flex;\n align-items: center;\n gap: space(\"xsmall\");\n color: var(--label-color);\n transition: color $baseTransitionAnimationSpeed;\n margin-left: space(\"small\");\n line-height: 24px;\n\n &:empty {\n display: none;\n }\n }\n\n &__label-text {\n min-width: 0;\n }\n\n &__label > &__description-wrapper {\n flex: 0 0 auto;\n display: inline-flex;\n align-items: flex-start;\n margin: 0;\n }\n\n &__label &__error,\n &__label &__description-text {\n display: none;\n }\n\n &__label &__description,\n &__label &__description-long {\n display: inline-flex;\n align-items: flex-start;\n margin: 0;\n }\n\n &__label &__description-long-button {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n line-height: 1;\n }\n\n &__label stzh-popover &__description-long-icon {\n --size: var(--stzh-icon-size-small);\n display: block;\n line-height: 0;\n color: $colorPrimary70;\n }\n &__label-slot {\n display: block;\n }\n\n &__label-slot stzh-text {\n display: block;\n }\n &__marker {\n @include fontSize(\"micro\");\n margin-left: calc(-0.25em + #{space(\"xsmall\")});\n }\n\n /* Hover / Focus / Checked */\n\n &:hover &__label,\n &__input:checked ~ &__label {\n color: var(--label-hover-color);\n }\n\n &__input:checked:hover ~ &__label,\n &__input:checked:hover ~ &__mark &__check {\n color: var(--label-hover-checked-color);\n }\n\n &__input:checked:hover ~ &__mark &__check {\n @media (forced-colors: active) {\n color: Highlight;\n }\n }\n\n &:hover &__mark,\n &__input:checked ~ &__mark {\n border-color: var(--label-hover-color);\n\n @media (forced-colors: active) {\n border-color: Highlight;\n }\n }\n\n &__input:checked:hover ~ &__mark {\n border-color: var(--label-hover-checked-color);\n\n @media (forced-colors: active) {\n border-color: Highlight;\n }\n }\n\n &__input:checked ~ &__mark &__check {\n opacity: 1;\n }\n\n /* Invalid */\n\n &--is-invalid &__input ~ &__label,\n &--is-invalid &__input ~ &__mark &__check {\n @media (forced-colors: none) {\n color: var(--invalid-color);\n }\n }\n\n &--is-invalid &__input ~ &__mark {\n @media (forced-colors: none) {\n border-color: var(--invalid-color);\n }\n }\n\n /* Disabled */\n\n &--is-disabled &__field-wrapper {\n cursor: not-allowed;\n }\n\n &--is-disabled &__input ~ &__label {\n color: $colorGrey60;\n\n @media (forced-colors: active) {\n color: GrayText;\n }\n }\n\n &--is-disabled &__input ~ &__mark {\n border-color: var(--disabled-color);\n background-color: $colorGrey20;\n\n @media (forced-colors: active) {\n border-color: GrayText;\n }\n }\n\n &--is-disabled &__input ~ &__mark &__check {\n color: var(--disabled-color);\n\n @media (forced-colors: active) {\n color: GrayText;\n }\n }\n}\n","import { Component, Element, Event, EventEmitter, h, Host, Listen, Prop, Watch } from \"@stencil/core\";\n\nimport { StzhRadioBlurEvent, StzhRadioChangeEvent, StzhRadioFocusEvent, StzhRadioValue } from \"../../index\";\n\nimport { hasSlot } from \"../../utils/utils\";\nimport { StzhLocaleComponent } from \"../../index\";\n\nimport { StzhInputDescription } from \"../stzh-input/stzh-input-description\";\n\nlet radioCounter = 0;\n\n/**\n * @slot - Slot for label content\n * @slot description - Slot for description\n * @slot description-long - Slot for long description (in popover)\n * @slot description-long-title - Slot for long description title (in popover) / instead of descriptionLongTitle or description property\n * @slot error - Slot for error\n */\n@Component({\n tag: \"stzh-radio\",\n styleUrl: \"stzh-radio.scss\",\n scoped: true,\n})\nexport class StzhRadio {\n /** Translation strings */\n @Prop() localization: StzhLocaleComponent;\n\n /** Whether the element is disabled or not */\n @Prop({ reflect: true }) disabled: boolean = false;\n\n /** The name of the input element */\n @Prop({ reflect: true }) name: string = \"\";\n\n /** The value of the input element. Note that boolean values only work with property binding (not with attribute binding). */\n @Prop({ mutable: true }) value: StzhRadioValue = \"\";\n\n /** Invalid status */\n @Prop({ reflect: true }) invalid: boolean = false;\n\n /** Required status */\n @Prop({ reflect: true }) required: boolean = false;\n\n /** Hide `(optional)` label (or use `required` inside form to hide it) */\n @Prop({ reflect: true }) hideOptional: boolean = false;\n\n /** Checked status */\n @Prop({ mutable: true, reflect: true }) checked: boolean = false;\n\n /** Default checked (used by reset) */\n @Prop({ mutable: true }) defaultChecked: boolean;\n\n /** Label */\n @Prop() label: string = \"\";\n\n /** Description message (use description slot as alternative) */\n @Prop() description: string;\n\n /** Long description message appearing in a popover (use description-long slot as alternative) */\n @Prop() descriptionLong: string;\n\n /**\n * **Do not use this property. It will be deprecated with the next major release.**\n * Long description title appearing in a popover (use description-long-title slot as or description property alternative) */\n @Prop() descriptionLongTitle: string;\n\n /** One or multiple error message (use error slot as alternative) */\n @Prop() error: string | string[];\n private _error: string[];\n\n /** Id for element which describes the radio button (this will be overwritten if description prop or slot is used, used by stzh-radiogroup) */\n @Prop({ attribute: \"a11y-describedby\" }) a11yDescribedby: string = \"\";\n\n /** Input change event */\n @Event() stzhChange: EventEmitter<StzhRadioChangeEvent>;\n\n /** Input focus event */\n @Event() stzhFocus: EventEmitter<StzhRadioFocusEvent>;\n\n /** Input blur event */\n @Event() stzhBlur: EventEmitter<StzhRadioBlurEvent>;\n\n @Listen(\"reset\", { target: \"document\" })\n resetListener(event: Event) {\n if ((event.target as HTMLElement).contains(this.element)) {\n requestAnimationFrame(() => {\n this.handleReset();\n });\n }\n }\n\n @Watch(\"error\")\n errorWatcher(newValue: string | string[]) {\n if (typeof newValue === \"string\") {\n try {\n this._error = JSON.parse(newValue);\n } catch (e) {\n if (newValue) {\n this._error = [newValue];\n } else {\n this._error = [];\n }\n }\n } else if (newValue) {\n this._error = newValue;\n } else {\n this._error = [];\n }\n }\n\n @Element() element: HTMLStzhRadioElement;\n\n private input: HTMLInputElement;\n private inputId: string;\n private focusedByInput: boolean = false;\n\n private handleReset = async () => {\n this.checked = this.defaultChecked;\n };\n\n private onInput = (event: InputEvent) => {\n this.checked = this.input.checked;\n this.stzhChange.emit({\n component: \"stzh-radio\",\n originalEvent: event,\n value: this.value,\n checked: this.checked,\n });\n };\n\n private onRootFocus = () => {\n if (!this.focusedByInput) {\n this.input.focus();\n }\n\n this.focusedByInput = false;\n };\n\n private onFocus = (event: FocusEvent) => {\n this.focusedByInput = true;\n\n const focusEvent = new FocusEvent(\"focus\", {\n view: window,\n bubbles: false,\n cancelable: false,\n });\n\n this.element.dispatchEvent(focusEvent);\n this.stzhFocus.emit({\n component: \"stzh-radio\",\n originalEvent: event,\n });\n };\n\n private onBlur = (event: FocusEvent) => {\n const blurEvent = new FocusEvent(\"blur\", {\n view: window,\n bubbles: false,\n cancelable: false,\n });\n\n this.element.dispatchEvent(blurEvent);\n this.stzhBlur.emit({\n component: \"stzh-radio\",\n originalEvent: event,\n });\n };\n\n async componentWillLoad() {\n this.inputId = `stzh-radio-${radioCounter++}`;\n this.errorWatcher(this.error);\n\n this.defaultChecked = typeof this.defaultChecked === \"boolean\" ? this.defaultChecked : this.checked;\n\n if (!this.localization) {\n this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, \"radio\");\n }\n }\n\n render() {\n const descriptionUsed = hasSlot(this.element, \"description\") || !!this.description;\n const descriptionLongUsed = hasSlot(this.element, \"description-long\") || !!this.descriptionLong;\n const errorUsed = hasSlot(this.element, \"error\") || this._error?.length > 0;\n\n const classes = {\n \"stzh-radio\": true,\n \"stzh-radio--has-description\": descriptionUsed,\n \"stzh-radio--has-description-long\": descriptionLongUsed,\n \"stzh-radio--has-error\": errorUsed,\n \"stzh-radio--is-required\": this.required,\n \"stzh-radio--is-invalid\": this.invalid || errorUsed,\n \"stzh-radio--is-disabled\": this.disabled,\n };\n\n return (\n <Host is-invalid={this.invalid || errorUsed} tabindex={this.disabled ? null : \"-1\"} onFocus={this.onRootFocus}>\n <div class={classes}>\n <label class=\"stzh-radio__field-wrapper\">\n <input\n class=\"stzh-radio__input\"\n ref={el => (this.input = el as HTMLInputElement)}\n type=\"radio\"\n id={this.inputId}\n name={this.name}\n value={String(this.value)}\n disabled={this.disabled}\n aria-describedby={`${this.inputId}-description ${this.a11yDescribedby}`}\n aria-required={this.required ? \"true\" : \"false\"}\n aria-invalid={this.invalid ? \"true\" : \"false\"}\n checked={this.checked}\n defaultChecked={this.defaultChecked}\n onInput={this.onInput}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n />\n <div class=\"stzh-radio__mark\">\n <div class=\"stzh-radio__check\"></div>\n </div>\n\n <div class=\"stzh-radio__label\">\n {this.label ? (\n this.label\n ) : (\n <span class=\"stzh-radio__label-slot\">\n <slot></slot>\n </span>\n )}\n\n {!this.hideOptional && (\n <span class=\"stzh-radio__marker\">\n <span class=\"stzh-radio__marker-symbol\" aria-hidden=\"true\">\n {this.required\n ? this.localization.$globals.requiredFieldMarker\n : this.localization.$globals.optionalFieldMarker}\n </span>\n <span class=\"stzh-radio__marker-text\">\n {this.required\n ? this.localization.$globals.requiredFieldText\n : this.localization.$globals.optionalFieldText}\n </span>\n </span>\n )}\n\n {descriptionLongUsed && (\n <StzhInputDescription\n classPrefix=\"stzh-radio\"\n id={`${this.inputId}-description-long`}\n descriptionLong={this.descriptionLong}\n descriptionLongTitle={this.descriptionLongTitle}\n descriptionLongUsed={true}\n moreInfoButtonLabel={this.localization.$globals.moreInfoButtonLabel}\n showError={false}\n showDescriptionText={false}\n />\n )}\n </div>\n </label>\n {(errorUsed || descriptionUsed) && (\n <StzhInputDescription\n classPrefix=\"stzh-radio\"\n id={`${this.inputId}-description`}\n error={this._error}\n description={this.description}\n descriptionLongUsed={false}\n />\n )}\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -1 +0,0 @@
1
- {"file":"p-Dn5GUbNz.js","mappings":";;;;;;;AAAA,MAAM,eAAe,GAAG,MAAM,CAAC;AAC/B;AACA;AACA;AACA;AACA;AACA,0pRAA0pR,CAAC;;ACG3pR,IAAI,eAAe,GAAG,CAAC;MAcV,YAAY,iBAAAA,kBAAA,CAAA,MAAA,YAAA,SAAAC,CAAA,CAAA;AALzB,IAAA,WAAA,CAAA,YAAA,EAAA;;;;;;;;;AAU2B,QAAA,IAAQ,CAAA,QAAA,GAAY,KAAK;;AAGzB,QAAA,IAAI,CAAA,IAAA,GAAW,EAAE;;AAGjB,QAAA,IAAK,CAAA,KAAA,GAAW,EAAE;;AAGlB,QAAA,IAAO,CAAA,OAAA,GAAY,KAAK;;AAGxB,QAAA,IAAQ,CAAA,QAAA,GAAY,KAAK;;AAGV,QAAA,IAAO,CAAA,OAAA,GAAY,KAAK;;AAMxD,QAAA,IAAK,CAAA,KAAA,GAAW,EAAE;;AAeD,QAAA,IAAY,CAAA,YAAA,GAAY,KAAK;;AAOb,QAAA,IAAe,CAAA,eAAA,GAAW,EAAE;AA2C7D,QAAA,IAAc,CAAA,cAAA,GAAY,KAAK;AAE/B,QAAA,IAAW,CAAA,WAAA,GAAG,YAAW;AAC/B,YAAA,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,cAAc;AACpC,SAAC;AAEO,QAAA,IAAA,CAAA,OAAO,GAAG,CAAC,KAAiB,KAAI;YACtC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO;AAEjC,YAAA,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;AACnB,gBAAA,SAAS,EAA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AAC;AACJ,cAAE,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC;cAC3B,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,mBAAmB,CAC7C,EACP,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,KAAK,EAAC,4BAA4B,EACrC,EAAA,IAAI,CAAC;AACJ,cAAE,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC;AAC7B,cAAE,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,iBAAiB,CAC3C,CACF,CACR,EAEA,mBAAmB,KAClB,CAAA,CAAC,oBAAoB,EAAA,EAAA,GAAA,EAAA,0CAAA,EACnB,WAAW,EAAC,eAAe,EAC3B,EAAE,EAAE,CAAG,EAAA,IAAI,CAAC,OAAO,CAAmB,iBAAA,CAAA,EACtC,eAAe,EAAE,IAAI,CAAC,eAAe,EACrC,oBAAoB,EAAE,IAAI,CAAC,oBAAoB,EAC/C,mBAAmB,EAAE,IAAI,EACzB,mBAAmB,EAAE,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,mBAAmB,EACnE,SAAS,EAAE,KAAK,EAChB,mBAAmB,EAAE,KAAK,EAAA,CAC1B,CACH,CACG,CACA,EACP,CAAC,SAAS,IAAI,eAAe,MAC5B,EAAC,oBAAoB,EAAA,EAAA,GAAA,EAAA,0CAAA,EACnB,WAAW,EAAC,eAAe,EAC3B,EAAE,EAAE,CAAA,EAAG,IAAI,CAAC,OAAO,CAAA,YAAA,CAAc,EACjC,KAAK,EAAE,IAAI,CAAC,MAAM,EAClB,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,mBAAmB,EAAE,KAAK,EAAA,CAC1B,CACH,CACG,CACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/stzh-checkbox/stzh-checkbox.scss?tag=stzh-checkbox&encapsulation=scoped","src/components/stzh-checkbox/stzh-checkbox.tsx"],"sourcesContent":[":host {\n --label-color: var(--stzh-checkbox-label-color, #{$baseColor});\n --label-hover-color: var(\n --stzh-checkbox-label-hover-color,\n #{$colorPrimary70}\n );\n --label-hover-checked-color: var(\n --stzh-checkbox-label-hover-checked-color,\n #{$colorPrimary90}\n );\n --check-color: var(--stzh-checkbox-check-color, #{$colorPrimary});\n --invalid-color: var(--stzh-checkbox-invalid-color, #{$colorError60});\n --disabled-color: var(--stzh-checkbox-disabled-color, #{$colorGrey50});\n\n display: inline-block;\n\n &[disabled]:not([disabled=\"false\"]) {\n --description-color: #{$formDisabledColor};\n }\n}\n\n.stzh-checkbox {\n @include input-description;\n display: grid;\n\n &__field-wrapper {\n @include fontSize(\"milli\");\n position: relative;\n display: flex;\n user-select: none;\n cursor: pointer;\n }\n\n &__input {\n @include visuallyhiddenInput;\n border-radius: $formInputBorderRadius;\n }\n\n &__mark {\n border: 2px solid $colorBlack;\n background-color: $colorWhite;\n width: 24px;\n height: 24px;\n flex-shrink: 0;\n border-radius: $formInputBorderRadius;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n transition: border-color $baseTransitionAnimationSpeed;\n position: relative;\n\n @media (forced-colors: active) {\n transition: none;\n border-color: ButtonBorder;\n }\n }\n\n &__check {\n display: block;\n position: absolute;\n top: 50%;\n left: 50%;\n width: 100%;\n height: 100%;\n transform: translate(-50%, -50%) translateZ(0);\n will-change: opacity;\n opacity: 0;\n transition: opacity 0.15s ease;\n pointer-events: none;\n\n -webkit-mask-image: svg-load(\"stzh-checkbox/assets/check.svg\");\n mask-image: svg-load(\"stzh-checkbox/assets/check.svg\");\n -webkit-mask-repeat: no-repeat;\n mask-repeat: no-repeat;\n -webkit-mask-position: center;\n mask-position: center;\n -webkit-mask-size: contain;\n mask-size: contain;\n\n color: var(--check-color);\n background-color: currentColor;\n\n @media (forced-colors: active) {\n transition: none;\n forced-color-adjust: none;\n color: Highlight;\n }\n }\n\n &__label {\n --stzh-base-color: initial;\n color: var(--label-color);\n transition: color $baseTransitionAnimationSpeed;\n display: inline-flex;\n align-items: center;\n gap: space(\"xsmall\");\n margin-left: space(\"small\");\n line-height: 24px;\n\n &:empty {\n display: none;\n }\n }\n\n &__label > &__description-wrapper {\n flex: 0 0 auto;\n display: inline-flex;\n align-items: flex-start;\n margin: 0;\n }\n\n &__label &__error,\n &__label &__description-text {\n display: none;\n }\n\n &__label &__description,\n &__label &__description-long {\n display: inline-flex;\n align-items: flex-start;\n margin: 0;\n }\n\n &__label &__description-long-button {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n line-height: 1;\n }\n\n &__label stzh-popover &__description-long-icon {\n --size: var(--stzh-icon-size-small);\n display: block;\n line-height: 0;\n color: $colorPrimary70;\n }\n\n &__label-slot {\n display: block;\n }\n\n &__label-slot stzh-text {\n display: block;\n }\n\n &__marker {\n @include fontSize(\"micro\");\n margin-left: calc(-0.25em + #{space(\"xsmall\")});\n }\n\n /* Hover / Focus / Checked */\n\n &:hover &__label,\n &__input:checked ~ &__label {\n color: var(--label-hover-color);\n }\n\n &__input:checked:hover ~ &__label,\n &__input:checked:hover ~ &__mark &__check {\n color: var(--label-hover-checked-color);\n }\n\n &__input:checked:hover ~ &__mark &__check {\n @media (forced-colors: active) {\n color: Highlight;\n }\n }\n\n &:hover &__mark,\n &__input:checked ~ &__mark {\n border-color: var(--label-hover-color);\n\n @media (forced-colors: active) {\n border-color: Highlight;\n }\n }\n\n &__input:checked:hover ~ &__mark {\n border-color: var(--label-hover-checked-color);\n\n @media (forced-colors: active) {\n border-color: Highlight;\n }\n }\n\n &--is-checked .stzh-checkbox__check {\n opacity: 1;\n }\n\n /* Invalid */\n\n &--is-invalid &__input ~ &__label,\n &--is-invalid &__input ~ &__mark &__check {\n @media (forced-colors: none) {\n color: var(--invalid-color);\n }\n }\n\n &--is-invalid &__input ~ &__mark {\n @media (forced-colors: none) {\n border-color: var(--invalid-color);\n }\n }\n\n /* Disabled */\n\n &--is-disabled &__field-wrapper {\n cursor: not-allowed;\n }\n\n &--is-disabled &__input ~ &__label {\n color: $colorGrey60;\n\n @media (forced-colors: active) {\n color: GrayText;\n }\n }\n\n &--is-disabled &__input ~ &__mark {\n border-color: var(--disabled-color);\n background-color: $colorGrey20;\n\n @media (forced-colors: active) {\n border-color: GrayText;\n }\n }\n\n &--is-disabled &__input ~ &__mark &__check {\n color: var(--disabled-color);\n\n @media (forced-colors: active) {\n color: GrayText;\n }\n }\n}\n","import { Host, Component, Prop, Event, EventEmitter, Element, h, Watch, Listen } from \"@stencil/core\";\n\nimport { StzhCheckboxChangeEvent, StzhCheckboxFocusEvent, StzhCheckboxBlurEvent } from \"../../index\";\n\nimport { hasSlot } from \"../../utils/utils\";\nimport { StzhLocaleComponent } from \"../../index\";\n\nimport { StzhInputDescription } from \"../stzh-input/stzh-input-description\";\n\nlet checkboxCounter = 0;\n\n/**\n * @slot - Slot for label content\n * @slot description - Slot for description\n * @slot description-long - Slot for long description (in popover)\n * @slot description-long-title - Slot for long description title (in popover) / instead of descriptionLongTitle or description property\n * @slot error - Slot for error\n */\n@Component({\n tag: \"stzh-checkbox\",\n styleUrl: \"stzh-checkbox.scss\",\n scoped: true,\n})\nexport class StzhCheckbox {\n /** Translation strings */\n @Prop() localization: StzhLocaleComponent;\n\n /** Whether the checkbox is disabled */\n @Prop({ reflect: true }) disabled: boolean = false;\n\n /** Name of the input element */\n @Prop({ reflect: true }) name: string = \"\";\n\n /** Value of the input element */\n @Prop({ mutable: true }) value: string = \"\";\n\n /** Invalid status */\n @Prop({ reflect: true }) invalid: boolean = false;\n\n /** Required status */\n @Prop({ reflect: true }) required: boolean = false;\n\n /** Checked status */\n @Prop({ mutable: true, reflect: true }) checked: boolean = false;\n\n /** Default checked (used by reset) */\n @Prop({ mutable: true }) defaultChecked: boolean;\n\n /** Label */\n @Prop() label: string = \"\";\n\n /** Description message (use description slot as alternative) */\n @Prop() description: string;\n\n /** Long description message appearing in a popover (use description-long slot as alternative) */\n @Prop() descriptionLong: string;\n\n /**\n * **Do not use this property. It will be deprecated with the next major release.**\n * Use the `description-long-title` slot or the `description` property instead.\n * Long description title appearing in a popover (use description-long-title slot as or description property alternative) */\n @Prop() descriptionLongTitle: string;\n\n /** Hide `(optional)` label (or use `required` inside form to hide it) */\n @Prop({ reflect: true }) hideOptional: boolean = false;\n\n /** One or multiple error message (use error slot as alternative) */\n @Prop() error: string | string[];\n private _error: string[];\n\n /** Id for element which describes the input (this will be overwritten if description prop or slot is used) */\n @Prop({ attribute: \"a11y-describedby\" }) a11yDescribedby: string = \"\";\n\n /** Change event */\n @Event() stzhChange: EventEmitter<StzhCheckboxChangeEvent>;\n\n /** Focus event */\n @Event() stzhFocus: EventEmitter<StzhCheckboxFocusEvent>;\n\n /** Input blur event */\n @Event() stzhBlur: EventEmitter<StzhCheckboxBlurEvent>;\n\n @Listen(\"reset\", { target: \"document\" })\n resetListener(event: Event) {\n if ((event.target as HTMLElement).contains(this.element)) {\n requestAnimationFrame(() => {\n this.handleReset();\n });\n }\n }\n\n @Watch(\"error\")\n errorWatcher(newValue: string | string[]) {\n if (typeof newValue === \"string\") {\n try {\n this._error = JSON.parse(newValue);\n } catch (e) {\n if (newValue) {\n this._error = [newValue];\n } else {\n this._error = [];\n }\n }\n } else if (newValue) {\n this._error = newValue;\n } else {\n this._error = [];\n }\n }\n\n @Element() element: HTMLStzhRadioElement;\n\n private input: HTMLInputElement;\n private inputId: string;\n private focusedByInput: boolean = false;\n\n private handleReset = async () => {\n this.checked = this.defaultChecked;\n };\n\n private onInput = (event: InputEvent) => {\n this.checked = this.input.checked;\n\n this.stzhChange.emit({\n component: \"stzh-checkbox\",\n originalEvent: event,\n value: this.value,\n checked: this.checked,\n });\n };\n\n private onRootFocus = () => {\n if (!this.focusedByInput) {\n this.input.focus();\n }\n\n this.focusedByInput = false;\n };\n\n private onFocus = (event: FocusEvent) => {\n this.focusedByInput = true;\n\n const focusEvent = new FocusEvent(\"focus\", {\n view: window,\n bubbles: false,\n cancelable: false,\n });\n\n this.element.dispatchEvent(focusEvent);\n this.stzhFocus.emit({\n component: \"stzh-checkbox\",\n originalEvent: event,\n });\n };\n\n private onBlur = (event: FocusEvent) => {\n const blurEvent = new FocusEvent(\"blur\", {\n view: window,\n bubbles: false,\n cancelable: false,\n });\n\n this.element.dispatchEvent(blurEvent);\n this.stzhBlur.emit({\n component: \"stzh-checkbox\",\n originalEvent: event,\n });\n };\n\n async componentWillLoad() {\n this.inputId = `stzh-checkbox-${checkboxCounter++}`;\n this.errorWatcher(this.error);\n\n this.defaultChecked = typeof this.defaultChecked === \"boolean\" ? this.defaultChecked : this.checked;\n\n if (!this.localization) {\n this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, \"checkbox\");\n }\n }\n\n render() {\n const descriptionUsed = hasSlot(this.element, \"description\") || !!this.description;\n const descriptionLongUsed = hasSlot(this.element, \"description-long\") || !!this.descriptionLong;\n const errorUsed = hasSlot(this.element, \"error\") || this._error?.length > 0;\n\n const classes = {\n \"stzh-checkbox\": true,\n \"stzh-checkbox--has-description\": descriptionUsed,\n \"stzh-checkbox--has-description-long\": descriptionLongUsed,\n \"stzh-checkbox--has-error\": errorUsed,\n \"stzh-checkbox--is-required\": this.required,\n \"stzh-checkbox--is-invalid\": this.invalid || errorUsed,\n \"stzh-checkbox--is-disabled\": this.disabled,\n \"stzh-checkbox--is-checked\": this.checked,\n };\n\n return (\n <Host is-invalid={this.invalid || errorUsed} tabindex={this.disabled ? null : \"-1\"} onFocus={this.onRootFocus}>\n <div class={classes}>\n <label class=\"stzh-checkbox__field-wrapper\">\n <input\n class=\"stzh-checkbox__input\"\n ref={el => (this.input = el as HTMLInputElement)}\n type=\"checkbox\"\n id={this.inputId}\n name={this.name}\n value={this.value}\n disabled={this.disabled}\n aria-describedby={`${this.inputId}-description ${this.a11yDescribedby}`}\n aria-required={this.required ? \"true\" : \"false\"}\n aria-invalid={this.invalid ? \"true\" : \"false\"}\n checked={this.checked}\n defaultChecked={this.defaultChecked}\n onInput={this.onInput}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n />\n <div class=\"stzh-checkbox__mark\">\n <div class=\"stzh-checkbox__check\" aria-hidden=\"true\"></div>\n </div>\n <div class=\"stzh-checkbox__label\">\n {this.label ? (\n this.label\n ) : (\n <span class=\"stzh-checkbox__label-slot\">\n <slot></slot>\n </span>\n )}\n\n {!this.hideOptional && (\n <span class=\"stzh-checkbox__marker\">\n <span class=\"stzh-checkbox__marker-symbol\" aria-hidden=\"true\">\n {this.required\n ? this.localization.$globals.requiredFieldMarker\n : this.localization.$globals.optionalFieldMarker}\n </span>\n <span class=\"stzh-checkbox__marker-text\">\n {this.required\n ? this.localization.$globals.requiredFieldText\n : this.localization.$globals.optionalFieldText}\n </span>\n </span>\n )}\n\n {descriptionLongUsed && (\n <StzhInputDescription\n classPrefix=\"stzh-checkbox\"\n id={`${this.inputId}-description-long`}\n descriptionLong={this.descriptionLong}\n descriptionLongTitle={this.descriptionLongTitle}\n descriptionLongUsed={true}\n moreInfoButtonLabel={this.localization.$globals.moreInfoButtonLabel}\n showError={false}\n showDescriptionText={false}\n />\n )}\n </div>\n </label>\n {(errorUsed || descriptionUsed) && (\n <StzhInputDescription\n classPrefix=\"stzh-checkbox\"\n id={`${this.inputId}-description`}\n error={this._error}\n description={this.description}\n descriptionLongUsed={false}\n />\n )}\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils-BnOofzDv.js","sources":["src/utils/utils.ts"],"sourcesContent":["import { dashCase } from \"./string-utils\";\n\n// Determines whether an element has a slot. If name is specified, the function will look for a corresponding named\n// slot, otherwise it will look for a \"default\" slot (e.g. a non-empty text node or an element with no slot attribute).\nexport function hasSlot(el: HTMLElement, name?: string) {\n // Look for a named slot\n if (name) {\n return el.querySelector(`[slot=\"${name}\"]`) !== null;\n }\n\n // Look for a default slot\n return Array.from(childNodes(el)).some((node) => {\n if (node.nodeType === node.TEXT_NODE && node.textContent.trim() !== \"\") {\n return true;\n }\n\n if (node.nodeType === node.ELEMENT_NODE) {\n const el = node as HTMLElement;\n if (!el.hasAttribute(\"slot\")) {\n return true;\n }\n }\n\n return false;\n });\n}\n\nexport function setPropsIfNull(element: Element, attributes: any) {\n Object.keys(attributes).forEach((attribute) => {\n if (element.getAttribute(dashCase(attribute)) === null) {\n element[attribute] = attributes[attribute];\n }\n });\n}\n\nexport function setProps(element: Element, attributes: any) {\n Object.keys(attributes).forEach((attribute) => {\n element[attribute] = attributes[attribute];\n });\n}\n\nexport function isStzhElement(element: Element) {\n if (!element || element.nodeType !== 1) {\n return false;\n }\n\n return element.tagName.toLowerCase().indexOf(\"stzh-\") === 0;\n}\n\n// returns content of <meta name=\"\" content=\"\"> tags or '' if empty/non existant\nexport function getMeta(name) {\n const meta = document.querySelector(\n `meta[name=\"${name}\"],[property=\"${name}\"]`,\n );\n return meta ? meta.getAttribute(\"content\") : \"\";\n}\n\nexport function parents(node: Element | Node) {\n const parents = [];\n\n while (node) {\n parents.unshift(node);\n node = node.parentNode;\n }\n\n return parents;\n}\n\nexport function childNodes(node: Element) {\n const childNodes = node.childNodes;\n\n // check if element is stencil element without shadow dom\n // and then detect elements that were slotted into the element\n if (node[\"s-sc\"]) {\n const result = [];\n\n for (let i = 0; i < childNodes.length; i++) {\n const slot = childNodes[i][\"s-nr\"];\n\n if (slot) {\n result.push(slot);\n }\n }\n\n return result;\n }\n\n return Array.from(childNodes);\n}\n\nexport function isVisible(element: HTMLElement): boolean {\n // @ts-ignore\n if (typeof element.checkVisibility !== \"undefined\") {\n // @ts-ignore\n return element.checkVisibility({\n checkOpacity: false,\n checkVisibilityCSS: false,\n });\n } else {\n return !!(\n element.offsetWidth ||\n element.offsetHeight ||\n element.getClientRects().length\n );\n }\n}\n\nexport function offset(element): { top: number; left: number } {\n if (!element.getClientRects().length) {\n return { top: 0, left: 0 };\n }\n\n let rect = element.getBoundingClientRect();\n let win = element.ownerDocument.defaultView;\n\n return {\n top: rect.top + win.pageYOffset,\n left: rect.left + win.pageXOffset,\n };\n}\n\nexport async function raf() {\n return new Promise<void>((resolve) => {\n requestAnimationFrame(() => {\n resolve();\n });\n });\n}\n\nexport async function setTimeout(time: number) {\n return new Promise<void>((resolve) => {\n window.setTimeout(() => {\n resolve();\n }, time);\n });\n}\n\nexport enum StzhEnvironmentEnum {\n UNKNOWN = \"UNKNOWN\",\n DEV = \"DEV\",\n UAT = \"UAT\",\n PROD = \"PROD\",\n}\n\nexport function getStzhEnvironment(): StzhEnvironmentEnum {\n const url = window.location.href;\n\n switch (true) {\n // DEV\n case url.includes(\"localhost\"):\n case url.includes(\"test.stadt-zuerich.loc\"):\n case /\\.dev\\.cmp\\.szh\\.loc/.test(url):\n return StzhEnvironmentEnum.DEV;\n\n // UAT\n case url.includes(\"integ.stadt-zuerich.ch\"):\n case /\\.uat\\.cmp\\.szh\\.loc/.test(url):\n return StzhEnvironmentEnum.UAT;\n\n // PROD\n case url.includes(\"https://www.stadt-zuerich.ch\"):\n case url.includes(\"designsystem.stadt-zuerich.ch\"):\n case /\\.cmp\\.szh\\.loc/.test(url):\n return StzhEnvironmentEnum.PROD;\n\n // Fallback\n default:\n return StzhEnvironmentEnum.UNKNOWN;\n }\n}\n\nexport function addWordBreakToLinks(links: HTMLElement[]) {\n links.forEach((link) => {\n link.childNodes.forEach((node) => {\n if (node.nodeType === Node.TEXT_NODE && node.textContent?.includes(\"_\")) {\n const span = document.createElement(\"span\");\n span.innerHTML = node.textContent.replace(/_/g, \"_<wbr>\");\n link.replaceChild(span, node);\n }\n });\n });\n}\nexport function formatHeadingForHyphenation(heading) {\n return heading.replace(/(\\p{L})\\/(\\p{L})/gu, \"$1 / $2\");\n}\n\nexport function getTheme() {\n const htmlElement = document.documentElement;\n return Array.from(htmlElement.classList).find((className) =>\n className.startsWith(\"stzh-theme-\"),\n );\n}\n"],"names":[],"mappings":";;AAEA;AACA;AACgB,SAAA,OAAO,CAAC,EAAe,EAAE,IAAa,EAAA;;IAEpD,IAAI,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AC,IAAI,CAAC,CAAC,SAAS,KACtD,SAAS,CAAC,UAAU,CAAC,aAAa,CAAC,CACpC;AACH;;;;"}
@@ -1,2 +0,0 @@
1
- import{d as t}from"./p-BubviQku.js";function e(t,e){if(e){return t.querySelector(`[slot="${e}"]`)!==null}return Array.from(u(t)).some((t=>{if(t.nodeType===t.TEXT_NODE&&t.textContent.trim()!==""){return true}if(t.nodeType===t.ELEMENT_NODE){const e=t;if(!e.hasAttribute("slot")){return true}}return false}))}function n(e,n){Object.keys(n).forEach((r=>{if(e.getAttribute(t(r))===null){e[r]=n[r]}}))}function r(t,e){Object.keys(e).forEach((n=>{t[n]=e[n]}))}function c(t){if(!t||t.nodeType!==1){return false}return t.tagName.toLowerCase().indexOf("stzh-")===0}function s(t){const e=document.querySelector(`meta[name="${t}"],[property="${t}"]`);return e?e.getAttribute("content"):""}function u(t){const e=t.childNodes;if(t["s-sc"]){const t=[];for(let n=0;n<e.length;n++){const r=e[n]["s-nr"];if(r){t.push(r)}}return t}return Array.from(e)}function o(t){if(typeof t.checkVisibility!=="undefined"){return t.checkVisibility({checkOpacity:false,checkVisibilityCSS:false})}else{return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)}}function i(t){if(!t.getClientRects().length){return{top:0,left:0}}let e=t.getBoundingClientRect();let n=t.ownerDocument.defaultView;return{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}}async function a(){return new Promise((t=>{requestAnimationFrame((()=>{t()}))}))}var f;(function(t){t["UNKNOWN"]="UNKNOWN";t["DEV"]="DEV";t["UAT"]="UAT";t["PROD"]="PROD"})(f||(f={}));function l(){const t=window.location.href;switch(true){case t.includes("localhost"):case t.includes("test.stadt-zuerich.loc"):case/\.dev\.cmp\.szh\.loc/.test(t):return f.DEV;case t.includes("integ.stadt-zuerich.ch"):case/\.uat\.cmp\.szh\.loc/.test(t):return f.UAT;case t.includes("https://www.stadt-zuerich.ch"):case t.includes("designsystem.stadt-zuerich.ch"):case/\.cmp\.szh\.loc/.test(t):return f.PROD;default:return f.UNKNOWN}}function h(t){t.forEach((t=>{t.childNodes.forEach((e=>{var n;if(e.nodeType===Node.TEXT_NODE&&((n=e.textContent)===null||n===void 0?void 0:n.includes("_"))){const n=document.createElement("span");n.innerHTML=e.textContent.replace(/_/g,"_<wbr>");t.replaceChild(n,e)}}))}))}function d(t){return t.replace(/(\p{L})\/(\p{L})/gu,"$1 / $2")}function p(){const t=document.documentElement;return Array.from(t.classList).find((t=>t.startsWith("stzh-theme-")))}export{r as a,l as b,s as c,o as d,h as e,d as f,p as g,e as h,c as i,i as o,a as r,n as s};
2
- //# sourceMappingURL=p--MYN2wgX.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"p--MYN2wgX.js","sources":["src/utils/utils.ts"],"sourcesContent":["import { dashCase } from \"./string-utils\";\n\n// Determines whether an element has a slot. If name is specified, the function will look for a corresponding named\n// slot, otherwise it will look for a \"default\" slot (e.g. a non-empty text node or an element with no slot attribute).\nexport function hasSlot(el: HTMLElement, name?: string) {\n // Look for a named slot\n if (name) {\n return el.querySelector(`[slot=\"${name}\"]`) !== null;\n }\n\n // Look for a default slot\n return Array.from(childNodes(el)).some((node) => {\n if (node.nodeType === node.TEXT_NODE && node.textContent.trim() !== \"\") {\n return true;\n }\n\n if (node.nodeType === node.ELEMENT_NODE) {\n const el = node as HTMLElement;\n if (!el.hasAttribute(\"slot\")) {\n return true;\n }\n }\n\n return false;\n });\n}\n\nexport function setPropsIfNull(element: Element, attributes: any) {\n Object.keys(attributes).forEach((attribute) => {\n if (element.getAttribute(dashCase(attribute)) === null) {\n element[attribute] = attributes[attribute];\n }\n });\n}\n\nexport function setProps(element: Element, attributes: any) {\n Object.keys(attributes).forEach((attribute) => {\n element[attribute] = attributes[attribute];\n });\n}\n\nexport function isStzhElement(element: Element) {\n if (!element || element.nodeType !== 1) {\n return false;\n }\n\n return element.tagName.toLowerCase().indexOf(\"stzh-\") === 0;\n}\n\n// returns content of <meta name=\"\" content=\"\"> tags or '' if empty/non existant\nexport function getMeta(name) {\n const meta = document.querySelector(\n `meta[name=\"${name}\"],[property=\"${name}\"]`,\n );\n return meta ? meta.getAttribute(\"content\") : \"\";\n}\n\nexport function parents(node: Element | Node) {\n const parents = [];\n\n while (node) {\n parents.unshift(node);\n node = node.parentNode;\n }\n\n return parents;\n}\n\nexport function childNodes(node: Element) {\n const childNodes = node.childNodes;\n\n // check if element is stencil element without shadow dom\n // and then detect elements that were slotted into the element\n if (node[\"s-sc\"]) {\n const result = [];\n\n for (let i = 0; i < childNodes.length; i++) {\n const slot = childNodes[i][\"s-nr\"];\n\n if (slot) {\n result.push(slot);\n }\n }\n\n return result;\n }\n\n return Array.from(childNodes);\n}\n\nexport function isVisible(element: HTMLElement): boolean {\n // @ts-ignore\n if (typeof element.checkVisibility !== \"undefined\") {\n // @ts-ignore\n return element.checkVisibility({\n checkOpacity: false,\n checkVisibilityCSS: false,\n });\n } else {\n return !!(\n element.offsetWidth ||\n element.offsetHeight ||\n element.getClientRects().length\n );\n }\n}\n\nexport function offset(element): { top: number; left: number } {\n if (!element.getClientRects().length) {\n return { top: 0, left: 0 };\n }\n\n let rect = element.getBoundingClientRect();\n let win = element.ownerDocument.defaultView;\n\n return {\n top: rect.top + win.pageYOffset,\n left: rect.left + win.pageXOffset,\n };\n}\n\nexport async function raf() {\n return new Promise<void>((resolve) => {\n requestAnimationFrame(() => {\n resolve();\n });\n });\n}\n\nexport async function setTimeout(time: number) {\n return new Promise<void>((resolve) => {\n window.setTimeout(() => {\n resolve();\n }, time);\n });\n}\n\nexport enum StzhEnvironmentEnum {\n UNKNOWN = \"UNKNOWN\",\n DEV = \"DEV\",\n UAT = \"UAT\",\n PROD = \"PROD\",\n}\n\nexport function getStzhEnvironment(): StzhEnvironmentEnum {\n const url = window.location.href;\n\n switch (true) {\n // DEV\n case url.includes(\"localhost\"):\n case url.includes(\"test.stadt-zuerich.loc\"):\n case /\\.dev\\.cmp\\.szh\\.loc/.test(url):\n return StzhEnvironmentEnum.DEV;\n\n // UAT\n case url.includes(\"integ.stadt-zuerich.ch\"):\n case /\\.uat\\.cmp\\.szh\\.loc/.test(url):\n return StzhEnvironmentEnum.UAT;\n\n // PROD\n case url.includes(\"https://www.stadt-zuerich.ch\"):\n case url.includes(\"designsystem.stadt-zuerich.ch\"):\n case /\\.cmp\\.szh\\.loc/.test(url):\n return StzhEnvironmentEnum.PROD;\n\n // Fallback\n default:\n return StzhEnvironmentEnum.UNKNOWN;\n }\n}\n\nexport function addWordBreakToLinks(links: HTMLElement[]) {\n links.forEach((link) => {\n link.childNodes.forEach((node) => {\n if (node.nodeType === Node.TEXT_NODE && node.textContent?.includes(\"_\")) {\n const span = document.createElement(\"span\");\n span.innerHTML = node.textContent.replace(/_/g, \"_<wbr>\");\n link.replaceChild(span, node);\n }\n });\n });\n}\nexport function formatHeadingForHyphenation(heading) {\n return heading.replace(/(\\p{L})\\/(\\p{L})/gu, \"$1 / $2\");\n}\n\nexport function getTheme() {\n const htmlElement = document.documentElement;\n return Array.from(htmlElement.classList).find((className) =>\n className.startsWith(\"stzh-theme-\"),\n );\n}\n"],"names":[],"mappings":";;AAEA;AACA;AACgB,SAAA,OAAO,CAAC,EAAe,EAAE,IAAa,EAAA;;IAEpD,IAAI,IAAI,EAAE;QACR,OAAO,EAAE,CAAC,aAAa,CAAC,CAAA,OAAA,EAAU,IAAI,CAAI,EAAA,CAAA,CAAC,KAAK,IAAI;;;AAItD,IAAA,OAAO,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,KAAI;AAC9C,QAAA,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;AACtE,YAAA,OAAO,IAAI;;QAGb,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC,YAAY,EAAE;YACvC,MAAM,EAAE,GAAG,IAAmB;YA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ACtD,IAAA,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,KAAI;QACrB,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,IAAI,KAAI;;AAC/B,YAAA,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC,SAAS,KAAI,CAAA,EAAA,GAAA,IAAI,CAAC,WAAW,0CAAE,QAAQ,CAAC,GAAG,CAAC,CAAA,EAAE;gBACvE,MAAM,IAAI,GAAG,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC;AAC3C,gBAAA,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,IAAI,EAAE,QAAQ,CAAC;AACzD,gBAAA,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,IAAI,CAAC;;AAEjC,SAAC,CAAC;AACJ,KAAC,CAAC;AACJ;AACM,SAAU,2BAA2B,CAAC,OAAO,EAAA;IACjD,OAAO,OAAO,CAAC,OAAO,CAAC,oBAAoB,EAAE,SAAS,CAAC;AACzD;SAEgB,QAAQ,GAAA;AACtB,IAAA,MAAM,WAAW,GAAG,QAAQ,CAAC,eAAe;IAC5C,OAAO,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,KACtD,SAAS,CAAC,UAAU,CAAC,aAAa,CAAC,CACpC;AACH;;;;"}
@@ -1,2 +0,0 @@
1
- import{r as c,c as e,h as s,a as h,d as t}from"./p-BDy81lpO.js";import{h as o}from"./p--MYN2wgX.js";import{S as i}from"./p-D4oTGvdl.js";import"./p-BubviQku.js";const r=()=>`.sc-stzh-checkbox-h{font-family:var(--stzh-font-family-medium);font-weight:var(--stzh-font-weight-medium);font-style:var(--stzh-font-style-medium);color:var(--stzh-base-color);box-sizing:border-box;display:block}[hidden].sc-stzh-checkbox-h,[stzh-hidden].sc-stzh-checkbox-h{display:none}.sc-stzh-checkbox-h::selection{color:var(--stzh-selection-color);background-color:var(--stzh-selection-background-color)}.sc-stzh-checkbox-h *.sc-stzh-checkbox,.sc-stzh-checkbox-h *.sc-stzh-checkbox::before,.sc-stzh-checkbox-h *.sc-stzh-checkbox::after{box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness);-webkit-text-decoration-skip-ink:var(--stzh-link-text-decoration-skip-ink);text-decoration-skip-ink:var(--stzh-link-text-decoration-skip-ink)}.sc-stzh-checkbox-h .has-focus.sc-stzh-checkbox{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.125rem}.sc-stzh-checkbox-h .stzh-fylingfocus-focused.sc-stzh-checkbox{outline-style:none !important}.sc-stzh-checkbox-h .stzh-fylingfocus-focused.sc-stzh-checkbox::-moz-focus-inner{border:0 !important}.sc-stzh-checkbox-h{--label-color:var(--stzh-checkbox-label-color, var(--stzh-base-color));--label-hover-color:var(\n --stzh-checkbox-label-hover-color,\n var(--stzh-color-primary70)\n );--label-hover-checked-color:var(\n --stzh-checkbox-label-hover-checked-color,\n var(--stzh-color-primary90)\n );--check-color:var(--stzh-checkbox-check-color, var(--stzh-color-primary));--invalid-color:var(--stzh-checkbox-invalid-color, var(--stzh-color-error60));--disabled-color:var(--stzh-checkbox-disabled-color, var(--stzh-color-grey50));display:inline-block}[disabled].sc-stzh-checkbox-h:not([disabled=false]){--description-color:var(--stzh-color-grey70)}.stzh-checkbox__marker-symbol.sc-stzh-checkbox{font-family:var(--stzh-font-family-medium);font-weight:var(--stzh-font-weight-medium);font-style:var(--stzh-font-style-medium)}.stzh-checkbox__marker-text.sc-stzh-checkbox{border:0;clip:rect(0 0 0 0);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-checkbox__description-wrapper.sc-stzh-checkbox{display:flex;flex-direction:column-reverse;min-height:var(--description-min-height, var(--stzh-description-min-height, none))}.stzh-checkbox__error.sc-stzh-checkbox,.stzh-checkbox__description.sc-stzh-checkbox{font-size:var(--stzh-font-nano-font-size);line-height:var(--stzh-font-nano-text-line-height)}.stzh-checkbox__error.sc-stzh-checkbox{color:var(--stzh-color-error60)}.stzh-checkbox__error-list.sc-stzh-checkbox{list-style:none;margin:0;padding:0}.stzh-checkbox__description.sc-stzh-checkbox{display:flex;align-items:flex-start;color:var(--stzh-input-description-color, var(--description-color, var(--stzh-color-coolgrey70)));transition:color var(--stzh-base-transition-animation-speed)}.stzh-checkbox__description-long.sc-stzh-checkbox{margin-right:var(--stzh-space-xxsmall);margin-top:0.125rem}@supports (font: -apple-system-body) and (-webkit-appearance: none){.stzh-checkbox__description-long.sc-stzh-checkbox{margin-top:0}}.stzh-checkbox__description-long-popover.sc-stzh-checkbox{--width:auto;--max-width:27.3125rem}.stzh-checkbox__description-long-button.sc-stzh-checkbox{display:flex;justify-content:center;align-items:center;appearance:none;font-family:inherit;padding:0;border:none;background-color:transparent;border-radius:0.5rem;cursor:pointer}.stzh-checkbox.sc-stzh-checkbox stzh-icon.stzh-checkbox__description-long-icon.sc-stzh-checkbox{--size:var(--stzh-icon-size-xsmall)}.stzh-checkbox--has-error.sc-stzh-checkbox .stzh-checkbox__error.sc-stzh-checkbox,.stzh-checkbox--has-description.sc-stzh-checkbox .stzh-checkbox__description.sc-stzh-checkbox{margin-top:var(--stzh-space-xxxsmall)}.stzh-checkbox.sc-stzh-checkbox{display:grid}.stzh-checkbox__field-wrapper.sc-stzh-checkbox{font-size:var(--stzh-font-milli-font-size);line-height:var(--stzh-font-milli-text-line-height);letter-spacing:var(--stzh-font-curve---text-letter-spacing);position:relative;display:flex;-webkit-user-select:none;user-select:none;cursor:pointer}.stzh-checkbox__input.sc-stzh-checkbox{position:absolute;top:0;left:0;width:100%;height:100%;margin:0;z-index:-1;opacity:0;pointer-events:none;appearance:none;border-radius:var(--stzh-form-input-border-radius)}.stzh-checkbox__mark.sc-stzh-checkbox{border:0.125rem solid var(--stzh-color-black);background-color:var(--stzh-color-white);width:1.5rem;height:1.5rem;flex-shrink:0;border-radius:var(--stzh-form-input-border-radius);display:inline-flex;justify-content:center;align-items:center;transition:border-color var(--stzh-base-transition-animation-speed);position:relative}@media (forced-colors: active){.stzh-checkbox__mark.sc-stzh-checkbox{transition:none;border-color:ButtonBorder}}.stzh-checkbox__check.sc-stzh-checkbox{display:block;position:absolute;top:50%;left:50%;width:100%;height:100%;transform:translate(-50%, -50%) translateZ(0);will-change:opacity;opacity:0;transition:opacity 0.15s ease;pointer-events:none;mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E %3Cpath d='M10 15.172l9.192-9.193 1.415 1.414L10 18 3.636 11.636l1.414-1.414z'/%3E %3C/svg%3E");mask-repeat:no-repeat;mask-position:center;mask-size:contain;color:var(--check-color);background-color:currentColor}@media (forced-colors: active){.stzh-checkbox__check.sc-stzh-checkbox{transition:none;forced-color-adjust:none;color:Highlight}}.stzh-checkbox__label.sc-stzh-checkbox{--stzh-base-color:initial;color:var(--label-color);transition:color var(--stzh-base-transition-animation-speed);display:inline-flex;align-items:center;gap:var(--stzh-space-xsmall);margin-left:var(--stzh-space-small);line-height:1.5rem}.stzh-checkbox__label.sc-stzh-checkbox:empty{display:none}.stzh-checkbox__label.sc-stzh-checkbox>.stzh-checkbox__description-wrapper.sc-stzh-checkbox{flex:0 0 auto;display:inline-flex;align-items:flex-start;margin:0}.stzh-checkbox__label.sc-stzh-checkbox .stzh-checkbox__error.sc-stzh-checkbox,.stzh-checkbox__label.sc-stzh-checkbox .stzh-checkbox__description-text.sc-stzh-checkbox{display:none}.stzh-checkbox__label.sc-stzh-checkbox .stzh-checkbox__description.sc-stzh-checkbox,.stzh-checkbox__label.sc-stzh-checkbox .stzh-checkbox__description-long.sc-stzh-checkbox{display:inline-flex;align-items:flex-start;margin:0}.stzh-checkbox__label.sc-stzh-checkbox .stzh-checkbox__description-long-button.sc-stzh-checkbox{display:inline-flex;align-items:center;justify-content:center;padding:0;line-height:1}.stzh-checkbox__label.sc-stzh-checkbox stzh-popover.sc-stzh-checkbox .stzh-checkbox__description-long-icon.sc-stzh-checkbox{--size:var(--stzh-icon-size-small);display:block;line-height:0;color:var(--stzh-color-primary70)}.stzh-checkbox__label-slot.sc-stzh-checkbox{display:block}.stzh-checkbox__label-slot.sc-stzh-checkbox stzh-text.sc-stzh-checkbox{display:block}.stzh-checkbox__marker.sc-stzh-checkbox{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);margin-left:calc(-0.25em + var(--stzh-space-xsmall))}.stzh-checkbox.sc-stzh-checkbox:hover .stzh-checkbox__label.sc-stzh-checkbox,.stzh-checkbox__input.sc-stzh-checkbox:checked~.stzh-checkbox__label.sc-stzh-checkbox{color:var(--label-hover-color)}.stzh-checkbox__input.sc-stzh-checkbox:checked:hover~.stzh-checkbox__label.sc-stzh-checkbox,.stzh-checkbox__input.sc-stzh-checkbox:checked:hover~.stzh-checkbox__mark.sc-stzh-checkbox .stzh-checkbox__check.sc-stzh-checkbox{color:var(--label-hover-checked-color)}@media (forced-colors: active){.stzh-checkbox__input.sc-stzh-checkbox:checked:hover~.stzh-checkbox__mark.sc-stzh-checkbox .stzh-checkbox__check.sc-stzh-checkbox{color:Highlight}}.stzh-checkbox.sc-stzh-checkbox:hover .stzh-checkbox__mark.sc-stzh-checkbox,.stzh-checkbox__input.sc-stzh-checkbox:checked~.stzh-checkbox__mark.sc-stzh-checkbox{border-color:var(--label-hover-color)}@media (forced-colors: active){.stzh-checkbox.sc-stzh-checkbox:hover .stzh-checkbox__mark.sc-stzh-checkbox,.stzh-checkbox__input.sc-stzh-checkbox:checked~.stzh-checkbox__mark.sc-stzh-checkbox{border-color:Highlight}}.stzh-checkbox__input.sc-stzh-checkbox:checked:hover~.stzh-checkbox__mark.sc-stzh-checkbox{border-color:var(--label-hover-checked-color)}@media (forced-colors: active){.stzh-checkbox__input.sc-stzh-checkbox:checked:hover~.stzh-checkbox__mark.sc-stzh-checkbox{border-color:Highlight}}.stzh-checkbox--is-checked.sc-stzh-checkbox .stzh-checkbox__check.sc-stzh-checkbox{opacity:1}@media (forced-colors: none){.stzh-checkbox--is-invalid.sc-stzh-checkbox .stzh-checkbox__input.sc-stzh-checkbox~.stzh-checkbox__label.sc-stzh-checkbox,.stzh-checkbox--is-invalid.sc-stzh-checkbox .stzh-checkbox__input.sc-stzh-checkbox~.stzh-checkbox__mark.sc-stzh-checkbox .stzh-checkbox__check.sc-stzh-checkbox{color:var(--invalid-color)}}@media (forced-colors: none){.stzh-checkbox--is-invalid.sc-stzh-checkbox .stzh-checkbox__input.sc-stzh-checkbox~.stzh-checkbox__mark.sc-stzh-checkbox{border-color:var(--invalid-color)}}.stzh-checkbox--is-disabled.sc-stzh-checkbox .stzh-checkbox__field-wrapper.sc-stzh-checkbox{cursor:not-allowed}.stzh-checkbox--is-disabled.sc-stzh-checkbox .stzh-checkbox__input.sc-stzh-checkbox~.stzh-checkbox__label.sc-stzh-checkbox{color:var(--stzh-color-grey60)}@media (forced-colors: active){.stzh-checkbox--is-disabled.sc-stzh-checkbox .stzh-checkbox__input.sc-stzh-checkbox~.stzh-checkbox__label.sc-stzh-checkbox{color:GrayText}}.stzh-checkbox--is-disabled.sc-stzh-checkbox .stzh-checkbox__input.sc-stzh-checkbox~.stzh-checkbox__mark.sc-stzh-checkbox{border-color:var(--disabled-color);background-color:var(--stzh-color-grey20)}@media (forced-colors: active){.stzh-checkbox--is-disabled.sc-stzh-checkbox .stzh-checkbox__input.sc-stzh-checkbox~.stzh-checkbox__mark.sc-stzh-checkbox{border-color:GrayText}}.stzh-checkbox--is-disabled.sc-stzh-checkbox .stzh-checkbox__input.sc-stzh-checkbox~.stzh-checkbox__mark.sc-stzh-checkbox .stzh-checkbox__check.sc-stzh-checkbox{color:var(--disabled-color)}@media (forced-colors: active){.stzh-checkbox--is-disabled.sc-stzh-checkbox .stzh-checkbox__input.sc-stzh-checkbox~.stzh-checkbox__mark.sc-stzh-checkbox .stzh-checkbox__check.sc-stzh-checkbox{color:GrayText}}`;let a=0;const l=class{constructor(s){c(this,s);this.stzhChange=e(this,"stzhChange");this.stzhFocus=e(this,"stzhFocus");this.stzhBlur=e(this,"stzhBlur");this.disabled=false;this.name="";this.value="";this.invalid=false;this.required=false;this.checked=false;this.label="";this.hideOptional=false;this.a11yDescribedby="";this.focusedByInput=false;this.handleReset=async()=>{this.checked=this.defaultChecked};this.onInput=c=>{this.checked=this.input.checked;this.stzhChange.emit({component:"stzh-checkbox",originalEvent:c,value:this.value,checked:this.checked})};this.onRootFocus=()=>{if(!this.focusedByInput){this.input.focus()}this.focusedByInput=false};this.onFocus=c=>{this.focusedByInput=true;const e=new FocusEvent("focus",{view:window,bubbles:false,cancelable:false});this.element.dispatchEvent(e);this.stzhFocus.emit({component:"stzh-checkbox",originalEvent:c})};this.onBlur=c=>{const e=new FocusEvent("blur",{view:window,bubbles:false,cancelable:false});this.element.dispatchEvent(e);this.stzhBlur.emit({component:"stzh-checkbox",originalEvent:c})}}resetListener(c){if(c.target.contains(this.element)){requestAnimationFrame((()=>{this.handleReset()}))}}errorWatcher(c){if(typeof c==="string"){try{this._error=JSON.parse(c)}catch(e){if(c){this._error=[c]}else{this._error=[]}}}else if(c){this._error=c}else{this._error=[]}}async componentWillLoad(){this.inputId=`stzh-checkbox-${a++}`;this.errorWatcher(this.error);this.defaultChecked=typeof this.defaultChecked==="boolean"?this.defaultChecked:this.checked;if(!this.localization){this.localization=await window.stzhComponents.utils.fetchTranslations(this.element,"checkbox")}}render(){var c;const e=o(this.element,"description")||!!this.description;const t=o(this.element,"description-long")||!!this.descriptionLong;const r=o(this.element,"error")||((c=this._error)===null||c===void 0?void 0:c.length)>0;const a={"stzh-checkbox":true,"stzh-checkbox--has-description":e,"stzh-checkbox--has-description-long":t,"stzh-checkbox--has-error":r,"stzh-checkbox--is-required":this.required,"stzh-checkbox--is-invalid":this.invalid||r,"stzh-checkbox--is-disabled":this.disabled,"stzh-checkbox--is-checked":this.checked};return s(h,{key:"ee66a3c7da1690b5154ece2c6878a903d4e75853","is-invalid":this.invalid||r,tabindex:this.disabled?null:"-1",onFocus:this.onRootFocus},s("div",{key:"6d9e3bf14181bc000e06b587d6e113860598c39f",class:a},s("label",{key:"f50c981284786831418c85f6475f977a9e8e6207",class:"stzh-checkbox__field-wrapper"},s("input",{key:"e1561366f70753b11e05e2efacc0dcbff347e813",class:"stzh-checkbox__input",ref:c=>this.input=c,type:"checkbox",id:this.inputId,name:this.name,value:this.value,disabled:this.disabled,"aria-describedby":`${this.inputId}-description ${this.a11yDescribedby}`,"aria-required":this.required?"true":"false","aria-invalid":this.invalid?"true":"false",checked:this.checked,defaultChecked:this.defaultChecked,onInput:this.onInput,onFocus:this.onFocus,onBlur:this.onBlur}),s("div",{key:"b4918a2cbc6a25bb16274abe5ae6eef0f9e33547",class:"stzh-checkbox__mark"},s("div",{key:"79373968d04de3ad500d0930a0ffb4ef18dfd37c",class:"stzh-checkbox__check","aria-hidden":"true"})),s("div",{key:"3529c5534028f5cee9cb92909e7cbf676cb26168",class:"stzh-checkbox__label"},this.label?this.label:s("span",{class:"stzh-checkbox__label-slot"},s("slot",null)),!this.hideOptional&&s("span",{key:"e17de9e0483206d674bb6dd866f021d80c523447",class:"stzh-checkbox__marker"},s("span",{key:"98c33a8020b792b813ecd920dae89afd1cabd636",class:"stzh-checkbox__marker-symbol","aria-hidden":"true"},this.required?this.localization.$globals.requiredFieldMarker:this.localization.$globals.optionalFieldMarker),s("span",{key:"9c7eb6c0626012609829409767280726a7690966",class:"stzh-checkbox__marker-text"},this.required?this.localization.$globals.requiredFieldText:this.localization.$globals.optionalFieldText)),t&&s(i,{key:"3e2d4ced637886535accad1eefa81e5d6991e80f",classPrefix:"stzh-checkbox",id:`${this.inputId}-description-long`,descriptionLong:this.descriptionLong,descriptionLongTitle:this.descriptionLongTitle,descriptionLongUsed:true,moreInfoButtonLabel:this.localization.$globals.moreInfoButtonLabel,showError:false,showDescriptionText:false}))),(r||e)&&s(i,{key:"61f5a0b9933453e57783d79d483e2e70c94a9ee5",classPrefix:"stzh-checkbox",id:`${this.inputId}-description`,error:this._error,description:this.description,descriptionLongUsed:false})))}get element(){return t(this)}static get watchers(){return{error:["errorWatcher"]}}};l.style=r();export{l as stzh_checkbox};
2
- //# sourceMappingURL=p-0f6a6d68.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["registerInstance","createEvent","h","Host","getElement","hasSlot","StzhInputDescription","stzhCheckboxCss","checkboxCounter","StzhCheckbox","constructor","hostRef","this","stzhChange","stzhFocus","stzhBlur","disabled","name","value","invalid","required","checked","label","hideOptional","a11yDescribedby","focusedByInput","handleReset","async","defaultChecked","onInput","event","input","emit","component","originalEvent","onRootFocus","focus","onFocus","focusEvent","FocusEvent","view","window","bubbles","cancelable","element","dispatchEvent","onBlur","blurEvent","resetListener","target","contains","requestAnimationFrame","errorWatcher","newValue","_error","JSON","parse","e","componentWillLoad","inputId","error","localization","stzhComponents","utils","fetchTranslations","render","_a","descriptionUsed","description","descriptionLongUsed","descriptionLong","errorUsed","length","classes","key","tabindex","class","ref","el","type","id","$globals","requiredFieldMarker","optionalFieldMarker","requiredFieldText","optionalFieldText","classPrefix","descriptionLongTitle","moreInfoButtonLabel","showError","showDescriptionText","watchers","style"],"sources":["0"],"mappings":"YAAcA,OAAuBC,OAAaC,OAAQC,OAAWC,MAAkB,8BACzEC,MAAe,8BACfC,MAA4B,wBACnC,kBAEP,MAAMC,EAAkB,IAAM,klUAQ9B,IAAIC,EAAkB,EACtB,MAAMC,EAAe,MACjB,WAAAC,CAAYC,GACRX,EAAiBY,KAAMD,GACvBC,KAAKC,WAAaZ,EAAYW,KAAM,cACpCA,KAAKE,UAAYb,EAAYW,KAAM,aACnCA,KAAKG,SAAWd,EAAYW,KAAM,YAElCA,KAAKI,SAAW,MAEhBJ,KAAKK,KAAO,GAEZL,KAAKM,MAAQ,GAEbN,KAAKO,QAAU,MAEfP,KAAKQ,SAAW,MAEhBR,KAAKS,QAAU,MAEfT,K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AY,OAAOxC,EAAWQ,KAAO,CACzC,mBAAW+E,GAAa,MAAO,CAC3B/B,MAAS,CAAC,gBACX,GAEPnD,EAAamF,MAAQrF,WAEZE","ignoreList":[]}
@@ -1,2 +0,0 @@
1
- import{r as t,c as e,h as s,a as o,d as g}from"./p-BDy81lpO.js";import{h as l}from"./p--MYN2wgX.js";import{S as h}from"./p-D4oTGvdl.js";import"./p-BubviQku.js";const c=()=>`.sc-stzh-toggle-h{font-family:var(--stzh-font-family-medium);font-weight:var(--stzh-font-weight-medium);font-style:var(--stzh-font-style-medium);color:var(--stzh-base-color);box-sizing:border-box;display:block}[hidden].sc-stzh-toggle-h,[stzh-hidden].sc-stzh-toggle-h{display:none}.sc-stzh-toggle-h::selection{color:var(--stzh-selection-color);background-color:var(--stzh-selection-background-color)}.sc-stzh-toggle-h *.sc-stzh-toggle,.sc-stzh-toggle-h *.sc-stzh-toggle::before,.sc-stzh-toggle-h *.sc-stzh-toggle::after{box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness);-webkit-text-decoration-skip-ink:var(--stzh-link-text-decoration-skip-ink);text-decoration-skip-ink:var(--stzh-link-text-decoration-skip-ink)}.sc-stzh-toggle-h .has-focus.sc-stzh-toggle{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.125rem}.sc-stzh-toggle-h .stzh-fylingfocus-focused.sc-stzh-toggle{outline-style:none !important}.sc-stzh-toggle-h .stzh-fylingfocus-focused.sc-stzh-toggle::-moz-focus-inner{border:0 !important}.sc-stzh-toggle-h{--check-size:1.5rem;--track-width:2.75rem;display:inline-block}[disabled].sc-stzh-toggle-h:not([disabled=false]){--description-color:var(--stzh-color-grey70)}.stzh-toggle__marker-symbol.sc-stzh-toggle{font-family:var(--stzh-font-family-medium);font-weight:var(--stzh-font-weight-medium);font-style:var(--stzh-font-style-medium)}.stzh-toggle__marker-text.sc-stzh-toggle{border:0;clip:rect(0 0 0 0);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-toggle__description-wrapper.sc-stzh-toggle{display:flex;flex-direction:column-reverse;min-height:var(--description-min-height, var(--stzh-description-min-height, none))}.stzh-toggle__error.sc-stzh-toggle,.stzh-toggle__description.sc-stzh-toggle{font-size:var(--stzh-font-nano-font-size);line-height:var(--stzh-font-nano-text-line-height)}.stzh-toggle__error.sc-stzh-toggle{color:var(--stzh-color-error60)}.stzh-toggle__error-list.sc-stzh-toggle{list-style:none;margin:0;padding:0}.stzh-toggle__description.sc-stzh-toggle{display:flex;align-items:flex-start;color:var(--stzh-input-description-color, var(--description-color, var(--stzh-color-coolgrey70)));transition:color var(--stzh-base-transition-animation-speed)}.stzh-toggle__description-long.sc-stzh-toggle{margin-right:var(--stzh-space-xxsmall);margin-top:0.125rem}@supports (font: -apple-system-body) and (-webkit-appearance: none){.stzh-toggle__description-long.sc-stzh-toggle{margin-top:0}}.stzh-toggle__description-long-popover.sc-stzh-toggle{--width:auto;--max-width:27.3125rem}.stzh-toggle__description-long-button.sc-stzh-toggle{display:flex;justify-content:center;align-items:center;appearance:none;font-family:inherit;padding:0;border:none;background-color:transparent;border-radius:0.5rem;cursor:pointer}.stzh-toggle.sc-stzh-toggle stzh-icon.stzh-toggle__description-long-icon.sc-stzh-toggle{--size:var(--stzh-icon-size-xsmall)}.stzh-toggle--has-error.sc-stzh-toggle .stzh-toggle__error.sc-stzh-toggle,.stzh-toggle--has-description.sc-stzh-toggle .stzh-toggle__description.sc-stzh-toggle{margin-top:var(--stzh-space-xxxsmall)}.stzh-toggle__field-wrapper.sc-stzh-toggle{font-size:var(--stzh-font-milli-font-size);line-height:var(--stzh-font-milli-text-line-height);letter-spacing:var(--stzh-font-curve---text-letter-spacing);position:relative;display:flex;-webkit-user-select:none;user-select:none;cursor:pointer}.stzh-toggle__input.sc-stzh-toggle{position:absolute;top:0;left:0;width:100%;height:100%;margin:0;z-index:-1;opacity:0;pointer-events:none;appearance:none;border-radius:var(--stzh-form-input-border-radius)}.stzh-toggle__mark.sc-stzh-toggle{position:relative;background-color:var(--stzh-color-black10op);width:var(--track-width);height:1rem;flex-shrink:0;border-radius:0.75rem;display:inline-flex;justify-content:center;align-items:center;transition:background-color var(--stzh-base-transition-animation-speed);margin-top:0.25rem}@media (forced-colors: active){.stzh-toggle__mark.sc-stzh-toggle{outline:0.125rem solid ButtonBorder;outline-offset:-0.125rem}}.stzh-toggle__check.sc-stzh-toggle{position:absolute;border:0.125rem solid var(--stzh-base-color);width:var(--check-size);height:var(--check-size);border-radius:50%;background-color:var(--stzh-color-white);top:50%;left:0;transform:translateY(-50%);transition-property:border-color, background-color, transform;transition-duration:var(--stzh-base-transition-animation-speed)}@media (forced-colors: active){.stzh-toggle__check.sc-stzh-toggle{transition-property:transform;border-color:ButtonBorder}}@media (prefers-reduced-motion: reduce){.stzh-toggle__check.sc-stzh-toggle{transition:none}}.stzh-toggle__label.sc-stzh-toggle{--stzh-base-color:initial;display:inline-flex;align-items:center;gap:var(--stzh-space-xsmall);color:var(--stzh-base-color);transition:color var(--stzh-base-transition-animation-speed)}.stzh-toggle__label.sc-stzh-toggle:empty{display:none}.stzh-toggle__label-text.sc-stzh-toggle{min-width:0}.stzh-toggle__label.sc-stzh-toggle>.stzh-toggle__description-wrapper.sc-stzh-toggle{flex:0 0 auto;display:inline-flex;align-items:flex-start;margin:0}.stzh-toggle__label.sc-stzh-toggle .stzh-toggle__error.sc-stzh-toggle,.stzh-toggle__label.sc-stzh-toggle .stzh-toggle__description-text.sc-stzh-toggle{display:none}.stzh-toggle__label.sc-stzh-toggle .stzh-toggle__description.sc-stzh-toggle,.stzh-toggle__label.sc-stzh-toggle .stzh-toggle__description-long.sc-stzh-toggle{display:inline-flex;align-items:flex-start;margin:0}.stzh-toggle__label.sc-stzh-toggle .stzh-toggle__description-long-button.sc-stzh-toggle{display:inline-flex;align-items:center;justify-content:center;padding:0;line-height:1}.stzh-toggle__label.sc-stzh-toggle stzh-popover.sc-stzh-toggle .stzh-toggle__description-long-icon.sc-stzh-toggle{--size:var(--stzh-icon-size-small);display:block;line-height:0;color:var(--stzh-color-primary70)}.stzh-toggle__marker.sc-stzh-toggle{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);margin-left:calc(-0.25em + var(--stzh-space-xsmall))}.stzh-toggle__input.sc-stzh-toggle:checked~.stzh-toggle__mark.sc-stzh-toggle{background-color:var(--stzh-color-old-primary48)}@media (forced-colors: active){.stzh-toggle__input.sc-stzh-toggle:checked~.stzh-toggle__mark.sc-stzh-toggle{background-color:SelectedItem}}.stzh-toggle__input.sc-stzh-toggle:checked~.stzh-toggle__mark.sc-stzh-toggle .stzh-toggle__check.sc-stzh-toggle{border-color:var(--stzh-color-primary);background-color:var(--stzh-color-primary);transform:translateY(-50%) translateX(calc(var(--track-width) - var(--check-size)))}@media (forced-colors: active){.stzh-toggle__input.sc-stzh-toggle:checked~.stzh-toggle__mark.sc-stzh-toggle .stzh-toggle__check.sc-stzh-toggle{border-color:ButtonBorder;background-color:SelectedItem}}.stzh-toggle.sc-stzh-toggle:hover .stzh-toggle__label.sc-stzh-toggle,.stzh-toggle__input.sc-stzh-toggle:checked:hover~.stzh-toggle__label.sc-stzh-toggle{color:var(--stzh-color-primary-hover)}.stzh-toggle__input.sc-stzh-toggle:checked~.stzh-toggle__label.sc-stzh-toggle{color:var(--stzh-color-primary)}.stzh-toggle.sc-stzh-toggle:hover .stzh-toggle__mark.sc-stzh-toggle .stzh-toggle__check.sc-stzh-toggle,.stzh-toggle__input.sc-stzh-toggle:focus:hover~.stzh-toggle__mark.sc-stzh-toggle .stzh-toggle__check.sc-stzh-toggle,.stzh-toggle__input.sc-stzh-toggle:checked:hover~.stzh-toggle__mark.sc-stzh-toggle .stzh-toggle__check.sc-stzh-toggle,.stzh-toggle__input.sc-stzh-toggle:checked:focus~.stzh-toggle__mark.sc-stzh-toggle .stzh-toggle__check.sc-stzh-toggle{border-color:var(--stzh-color-primary-hover)}@media (forced-colors: active){.stzh-toggle.sc-stzh-toggle:hover .stzh-toggle__mark.sc-stzh-toggle .stzh-toggle__check.sc-stzh-toggle,.stzh-toggle__input.sc-stzh-toggle:focus:hover~.stzh-toggle__mark.sc-stzh-toggle .stzh-toggle__check.sc-stzh-toggle,.stzh-toggle__input.sc-stzh-toggle:checked:hover~.stzh-toggle__mark.sc-stzh-toggle .stzh-toggle__check.sc-stzh-toggle,.stzh-toggle__input.sc-stzh-toggle:checked:focus~.stzh-toggle__mark.sc-stzh-toggle .stzh-toggle__check.sc-stzh-toggle{border-color:Highlight;background-color:Highlight}}@media (forced-colors: active){.stzh-toggle.sc-stzh-toggle:hover .stzh-toggle__mark.sc-stzh-toggle,.stzh-toggle__input.sc-stzh-toggle:focus:hover~.stzh-toggle__mark.sc-stzh-toggle,.stzh-toggle__input.sc-stzh-toggle:checked:hover~.stzh-toggle__mark.sc-stzh-toggle,.stzh-toggle__input.sc-stzh-toggle:checked:focus~.stzh-toggle__mark.sc-stzh-toggle{outline-color:Highlight}}.stzh-toggle__input.sc-stzh-toggle:checked:hover~.stzh-toggle__mark.sc-stzh-toggle .stzh-toggle__check.sc-stzh-toggle,.stzh-toggle__input.sc-stzh-toggle:checked:focus~.stzh-toggle__mark.sc-stzh-toggle .stzh-toggle__check.sc-stzh-toggle{background-color:var(--stzh-color-primary-hover)}@media (forced-colors: active){.stzh-toggle__input.sc-stzh-toggle:checked:hover~.stzh-toggle__mark.sc-stzh-toggle .stzh-toggle__check.sc-stzh-toggle,.stzh-toggle__input.sc-stzh-toggle:checked:focus~.stzh-toggle__mark.sc-stzh-toggle .stzh-toggle__check.sc-stzh-toggle{border-color:Highlight;background-color:Highlight}}.stzh-toggle--has-label-right.sc-stzh-toggle .stzh-toggle__label.sc-stzh-toggle{margin-left:var(--stzh-space-xsmall)}.stzh-toggle--has-label-left.sc-stzh-toggle .stzh-toggle__field-wrapper.sc-stzh-toggle{flex-direction:row-reverse}.stzh-toggle--has-label-left.sc-stzh-toggle .stzh-toggle__label.sc-stzh-toggle{margin-right:var(--stzh-space-xsmall)}@media (forced-colors: none){.stzh-toggle--is-invalid.sc-stzh-toggle .stzh-toggle__input.sc-stzh-toggle~.stzh-toggle__label.sc-stzh-toggle{color:var(--stzh-color-error60)}}@media (forced-colors: none){.stzh-toggle--is-invalid.sc-stzh-toggle .stzh-toggle__input.sc-stzh-toggle~.stzh-toggle__mark.sc-stzh-toggle .stzh-toggle__check.sc-stzh-toggle{border-color:var(--stzh-color-error60)}}@media (forced-colors: none){.stzh-toggle--is-invalid.sc-stzh-toggle .stzh-toggle__input.sc-stzh-toggle:checked~.stzh-toggle__mark.sc-stzh-toggle{background-color:var(--stzh-color-black10op)}}@media (forced-colors: none){.stzh-toggle--is-invalid.sc-stzh-toggle .stzh-toggle__input.sc-stzh-toggle:checked~.stzh-toggle__mark.sc-stzh-toggle .stzh-toggle__check.sc-stzh-toggle{background-color:var(--stzh-color-error60)}}.stzh-toggle--is-disabled.sc-stzh-toggle .stzh-toggle__field-wrapper.sc-stzh-toggle{cursor:not-allowed}.stzh-toggle--is-disabled.sc-stzh-toggle .stzh-toggle__input.sc-stzh-toggle~.stzh-toggle__label.sc-stzh-toggle{color:var(--stzh-color-grey70)}@media (forced-colors: active){.stzh-toggle--is-disabled.sc-stzh-toggle .stzh-toggle__input.sc-stzh-toggle~.stzh-toggle__label.sc-stzh-toggle{color:GrayText}}@media (forced-colors: active){.stzh-toggle--is-disabled.sc-stzh-toggle .stzh-toggle__input.sc-stzh-toggle~.stzh-toggle__mark.sc-stzh-toggle{outline-color:GrayText}}.stzh-toggle--is-disabled.sc-stzh-toggle .stzh-toggle__input.sc-stzh-toggle~.stzh-toggle__mark.sc-stzh-toggle .stzh-toggle__check.sc-stzh-toggle{border-color:var(--stzh-color-old-grey13)}@media (forced-colors: active){.stzh-toggle--is-disabled.sc-stzh-toggle .stzh-toggle__input.sc-stzh-toggle~.stzh-toggle__mark.sc-stzh-toggle .stzh-toggle__check.sc-stzh-toggle{border-color:GrayText}}.stzh-toggle--is-disabled.sc-stzh-toggle .stzh-toggle__input.sc-stzh-toggle:checked~.stzh-toggle__mark.sc-stzh-toggle{background-color:var(--stzh-color-grey10)}@media (forced-colors: active){.stzh-toggle--is-disabled.sc-stzh-toggle .stzh-toggle__input.sc-stzh-toggle:checked~.stzh-toggle__mark.sc-stzh-toggle{background-color:SelectedItem}}.stzh-toggle--is-disabled.sc-stzh-toggle .stzh-toggle__input.sc-stzh-toggle:checked~.stzh-toggle__mark.sc-stzh-toggle .stzh-toggle__check.sc-stzh-toggle{border-color:var(--stzh-color-old-grey25);background-color:var(--stzh-color-old-grey25)}@media (forced-colors: active){.stzh-toggle--is-disabled.sc-stzh-toggle .stzh-toggle__input.sc-stzh-toggle:checked~.stzh-toggle__mark.sc-stzh-toggle .stzh-toggle__check.sc-stzh-toggle{border-color:GrayText;background-color:SelectedItem}}`;let i=0;const r=class{constructor(s){t(this,s);this.stzhChange=e(this,"stzhChange");this.stzhFocus=e(this,"stzhFocus");this.stzhBlur=e(this,"stzhBlur");this.disabled=false;this.name="";this.value="";this.invalid=false;this.required=false;this.hideOptional=false;this.checked=false;this.label="";this.labelPosition="right";this.a11yDescribedby="";this.focusedByInput=false;this.handleReset=async()=>{this.checked=this.defaultChecked};this.onInput=t=>{this.checked=this.input.checked;this.stzhChange.emit({component:"stzh-toggle",originalEvent:t,value:this.value,checked:this.checked})};this.onRootFocus=()=>{if(!this.focusedByInput){this.input.focus()}this.focusedByInput=false};this.onFocus=t=>{this.focusedByInput=true;const e=new FocusEvent("focus",{view:window,bubbles:false,cancelable:false});this.element.dispatchEvent(e);this.stzhFocus.emit({component:"stzh-toggle",originalEvent:t})};this.onBlur=t=>{const e=new FocusEvent("blur",{view:window,bubbles:false,cancelable:false});this.element.dispatchEvent(e);this.stzhBlur.emit({component:"stzh-toggle",originalEvent:t})}}resetListener(t){if(t.target.contains(this.element)){requestAnimationFrame((()=>{this.handleReset()}))}}errorWatcher(t){if(typeof t==="string"){try{this._error=JSON.parse(t)}catch(e){if(t){this._error=[t]}else{this._error=[]}}}else if(t){this._error=t}else{this._error=[]}}async componentWillLoad(){this.inputId=`stzh-toggle-${i++}`;this.defaultChecked=typeof this.defaultChecked==="boolean"?this.defaultChecked:this.checked;this.errorWatcher(this.error);if(!this.localization){this.localization=await window.stzhComponents.utils.fetchTranslations(this.element,"toggle")}}render(){var t;const e=l(this.element,"description")||!!this.description;const g=l(this.element,"description-long")||!!this.descriptionLong;const c=l(this.element,"error")||((t=this._error)===null||t===void 0?void 0:t.length)>0;const i=!!this.label||l(this.element)||g;const r={"stzh-toggle":true,"stzh-toggle--has-error":c,"stzh-toggle--is-required":this.required,"stzh-toggle--is-invalid":this.invalid||c,"stzh-toggle--is-disabled":this.disabled,"stzh-toggle--has-description":e,"stzh-toggle--has-description-long":g,[`stzh-toggle--has-label-${this.labelPosition}`]:!!this.labelPosition};return s(o,{key:"71703076957012244d99e5bfe9eaae91dfd3136b","is-invalid":this.invalid||c,tabindex:this.disabled?null:"-1",onFocus:this.onRootFocus},s("div",{key:"5c3cdb7ff6195fb6dbf844110f7f2fc15dd0e5b9",class:r},s("label",{key:"e7207ccb9b8ef7f1ee798f8008a777c14f83a294",class:"stzh-toggle__field-wrapper"},s("input",{key:"66fa0d14e799bf6fdc0ec19f691dfac483884132",class:"stzh-toggle__input",ref:t=>this.input=t,type:"checkbox",id:this.inputId,name:this.name,value:this.value,disabled:this.disabled,"aria-describedby":`${this.inputId}-description ${this.a11yDescribedby}`,"aria-required":this.required?"true":"false","aria-invalid":this.invalid?"true":"false",checked:this.checked,defaultChecked:this.defaultChecked,onInput:this.onInput,onFocus:this.onFocus,onBlur:this.onBlur}),s("div",{key:"6260219a827eb1706ad4359a065d17ce28d83881",class:"stzh-toggle__mark"},s("div",{key:"c31d157867858c2ae6c449a53143886992250fd6",class:"stzh-toggle__check"})),i&&s("div",{key:"4176627fde0fdb89e848d9300a1bd22fccf678b2",class:"stzh-toggle__label"},s("span",{key:"bb2056d98e40d6c9780d622c639455f7a980f0e1",class:"stzh-toggle__label-text"},this.label?this.label:s("slot",null),!this.hideOptional&&s("span",{key:"1bae137c2d20f921064d2bc8f27307e53babd3cc",class:"stzh-toggle__marker"},s("span",{key:"19a4adea55ed3943bda5115c457e88168b05925c",class:"stzh-toggle__marker-symbol","aria-hidden":"true"},this.required?this.localization.$globals.requiredFieldMarker:this.localization.$globals.optionalFieldMarker),s("span",{key:"3c54f5386396ffc9e1e52b8730aae92dc3f228e9",class:"stzh-toggle__marker-text"},this.required?this.localization.$globals.requiredFieldText:this.localization.$globals.optionalFieldText))),g&&s(h,{key:"7cfd564610bd66d61b66ab70bbcaed301252de35",classPrefix:"stzh-toggle",id:`${this.inputId}-description-long`,descriptionLong:this.descriptionLong,descriptionLongTitle:this.descriptionLongTitle,descriptionLongUsed:g,moreInfoButtonLabel:this.localization.$globals.moreInfoButtonLabel,showError:false,showDescriptionText:false}))),(c||e)&&s(h,{key:"02c34d582606de57abafad95ff723d014f4a8bd2",classPrefix:"stzh-toggle",id:`${this.inputId}-description`,error:this._error,description:this.description,descriptionLongUsed:false})))}get element(){return g(this)}static get watchers(){return{error:["errorWatcher"]}}};r.style=c();export{r as stzh_toggle};
2
- //# sourceMappingURL=p-17c76b7f.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["registerInstance","createEvent","h","Host","getElement","hasSlot","StzhInputDescription","stzhToggleCss","toggleCounter","StzhToggle","constructor","hostRef","this","stzhChange","stzhFocus","stzhBlur","disabled","name","value","invalid","required","hideOptional","checked","label","labelPosition","a11yDescribedby","focusedByInput","handleReset","async","defaultChecked","onInput","event","input","emit","component","originalEvent","onRootFocus","focus","onFocus","focusEvent","FocusEvent","view","window","bubbles","cancelable","element","dispatchEvent","onBlur","blurEvent","resetListener","target","contains","requestAnimationFrame","errorWatcher","newValue","_error","JSON","parse","e","componentWillLoad","inputId","error","localization","stzhComponents","utils","fetchTranslations","render","_a","descriptionUsed","description","descriptionLongUsed","descriptionLong","errorUsed","length","labelUsed","classes","key","tabindex","class","ref","el","type","id","$globals","requiredFieldMarker","optionalFieldMarker","requiredFieldText","optionalFieldText","classPrefix","descriptionLongTitle","moreInfoButtonLabel","showError","showDescriptionText","watchers","style"],"sources":["0"],"mappings":"YAAcA,OAAuBC,OAAaC,OAAQC,OAAWC,MAAkB,8BACzEC,MAAe,8BACfC,MAA4B,wBACnC,kBAEP,MAAMC,EAAgB,IAAM,g4XAE5B,IAAIC,EAAgB,EACpB,MAAMC,EAAa,MACf,WAAAC,CAAYC,GACRX,EAAiBY,KAAMD,GACvBC,KAAKC,WAAaZ,EAAYW,KAAM,cACpCA,KAAKE,UAAYb,EAAYW,KAAM,aACnCA,KAAKG,SAAWd,EAAYW,KAAM,YAElCA,KAAKI,SAAW,MAEhBJ,KAAKK,KAAO,GAEZL,KAAKM,MAAQ,GAEbN,KAAKO,QAAU,MAEfP,KAAKQ,SAAW,MAEhBR,KAAKS,aAAe,MAEpBT,KAAKU,QAAU,MAEfV,KAAKW,MAAQ,GAEbX,KAAKY,cAAgB,QAErBZ,KAAKa,gBAAkB,GACvBb,KAAKc,eAAiB,MACtBd,KAAKe,YAAcC,UACfhB,KAAKU,QAAUV,KAAKiB,cAAc,EAEtCjB,KAAKkB,QAAWC,IACZnB,KAAKU,QAAUV,KAAKoB,MAAMV,QAC1BV,KAAKC,WAAWoB,KAAK,CACjBC,UAAW,cACXC,cAAeJ,EACfb,MAAON,KAAKM,MACZI,QAASV,KAAKU,SAChB,EAENV,KAAKwB,YAAc,KACf,IAAKxB,KAAKc,eAAgB,CACtBd,KAAKoB,MAAMK,OACf,CACAzB,KAAKc,eAAiB,KAAK,EAE/Bd,KAAK0B,QAAWP,IACZnB,KAAKc,eAAiB,KACtB,MAAMa,EAAa,IAAIC,WAAW,QAAS,CACvCC,KAAMC,OACNC,QAAS,MACTC,WAAY,QAEhBhC,KAAKiC,QAAQC,cAAcP,GAC3B3B,KAAKE,UAAUmB,KAAK,CACh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