@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
@@ -1,5 +1,5 @@
1
1
  import { Host, h } from "@stencil/core";
2
- import { hasSlot } from "../../utils/utils";
2
+ import { hasDefaultSlotContent, hasSlot } from "../../utils/utils";
3
3
  import { StzhInputDescription } from "../stzh-input/stzh-input-description";
4
4
  let checkboxCounter = 0;
5
5
  /**
@@ -29,6 +29,18 @@ export class StzhCheckbox {
29
29
  this.hideOptional = false;
30
30
  /** Id for element which describes the input (this will be overwritten if description prop or slot is used) */
31
31
  this.a11yDescribedby = "";
32
+ /**
33
+ * Whether the component has meaningful default-slot content.
34
+ * Becomes obsolete with the implementation of PDESI-1908.
35
+ */
36
+ this.hasDefaultSlot = false;
37
+ /**
38
+ * Indicates whether default-slot content detection has run at least once.
39
+ * Used to avoid rendering state-dependent markup before the slot content
40
+ * has been evaluated.
41
+ * Becomes obsolete with the implementation of PDESI-1908.
42
+ */
43
+ this.hasResolvedDefaultSlot = false;
32
44
  this.focusedByInput = false;
33
45
  this.handleReset = async () => {
34
46
  this.checked = this.defaultChecked;
@@ -73,6 +85,19 @@ export class StzhCheckbox {
73
85
  originalEvent: event,
74
86
  });
75
87
  };
88
+ /**
89
+ * Re-evaluates default-slot content and updates the related render state.
90
+ * Becomes obsolete with implementation of PDESI-1908.
91
+ */
92
+ this.updateDefaultSlotState = () => {
93
+ const hasDefaultSlot = hasDefaultSlotContent(this.element, ["stzh-checkbox"]);
94
+ if (this.hasDefaultSlot !== hasDefaultSlot) {
95
+ this.hasDefaultSlot = hasDefaultSlot;
96
+ }
97
+ if (!this.hasResolvedDefaultSlot) {
98
+ this.hasResolvedDefaultSlot = true;
99
+ }
100
+ };
76
101
  }
77
102
  resetListener(event) {
78
103
  if (event.target.contains(this.element)) {
@@ -102,6 +127,9 @@ export class StzhCheckbox {
102
127
  this._error = [];
103
128
  }
104
129
  }
130
+ componentDidLoad() {
131
+ this.updateDefaultSlotState();
132
+ }
105
133
  async componentWillLoad() {
106
134
  this.inputId = `stzh-checkbox-${checkboxCounter++}`;
107
135
  this.errorWatcher(this.error);
@@ -115,6 +143,8 @@ export class StzhCheckbox {
115
143
  const descriptionUsed = hasSlot(this.element, "description") || !!this.description;
116
144
  const descriptionLongUsed = hasSlot(this.element, "description-long") || !!this.descriptionLong;
117
145
  const errorUsed = hasSlot(this.element, "error") || ((_a = this._error) === null || _a === void 0 ? void 0 : _a.length) > 0;
146
+ const labelUsed = !!this.label || this.hasDefaultSlot;
147
+ const labelWrapperUsed = !this.hasResolvedDefaultSlot || labelUsed || descriptionLongUsed;
118
148
  const classes = {
119
149
  "stzh-checkbox": true,
120
150
  "stzh-checkbox--has-description": descriptionUsed,
@@ -125,11 +155,11 @@ export class StzhCheckbox {
125
155
  "stzh-checkbox--is-disabled": this.disabled,
126
156
  "stzh-checkbox--is-checked": this.checked,
127
157
  };
128
- return (h(Host, { key: 'ee66a3c7da1690b5154ece2c6878a903d4e75853', "is-invalid": this.invalid || errorUsed, tabindex: this.disabled ? null : "-1", onFocus: this.onRootFocus }, h("div", { key: '6d9e3bf14181bc000e06b587d6e113860598c39f', class: classes }, h("label", { key: 'f50c981284786831418c85f6475f977a9e8e6207', class: "stzh-checkbox__field-wrapper" }, h("input", { key: 'e1561366f70753b11e05e2efacc0dcbff347e813', class: "stzh-checkbox__input", ref: el => (this.input = el), 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 }), h("div", { key: 'b4918a2cbc6a25bb16274abe5ae6eef0f9e33547', class: "stzh-checkbox__mark" }, h("div", { key: '79373968d04de3ad500d0930a0ffb4ef18dfd37c', class: "stzh-checkbox__check", "aria-hidden": "true" })), h("div", { key: '3529c5534028f5cee9cb92909e7cbf676cb26168', class: "stzh-checkbox__label" }, this.label ? (this.label) : (h("span", { class: "stzh-checkbox__label-slot" }, h("slot", null))), !this.hideOptional && (h("span", { key: 'e17de9e0483206d674bb6dd866f021d80c523447', class: "stzh-checkbox__marker" }, h("span", { key: '98c33a8020b792b813ecd920dae89afd1cabd636', class: "stzh-checkbox__marker-symbol", "aria-hidden": "true" }, this.required
158
+ return (h(Host, { key: '537f513e59420cdd81c30e11e7693fa8c17c9297', "is-invalid": this.invalid || errorUsed, tabindex: this.disabled ? null : "-1", onFocus: this.onRootFocus }, h("div", { key: '6e05f673ff02b275963fa9a155f94f35a3d26327', class: classes }, labelWrapperUsed && (h("label", { key: '7a156947326aba88f8fa42fe81f0daf13a806593', class: "stzh-checkbox__field-wrapper" }, h("input", { key: 'c3066caf3f0ce7f2a12f1ff00dec43d3c826206a', class: "stzh-checkbox__input", ref: el => (this.input = el), 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 }), h("div", { key: 'c52ba2385d4d6a9084eb46fae02fafd87e66e5ae', class: "stzh-checkbox__mark" }, h("div", { key: '3b5409b58af429ead966884c2c931ec20994c0f0', class: "stzh-checkbox__check", "aria-hidden": "true" })), h("div", { key: 'f7d089ff0906243025ddb13064aa6174bee7f131', class: "stzh-checkbox__label" }, this.label ? this.label : h("slot", { onSlotchange: this.updateDefaultSlotState }), labelUsed && !this.hideOptional && (h("span", { key: '9f669f3c89a2c6f06bbb69fe0a6a5aebb3e7a060', class: "stzh-checkbox__marker" }, h("span", { key: 'b46bd3223a7b4921a4093e813fa95fcae30de5c3', class: "stzh-checkbox__marker-symbol", "aria-hidden": "true" }, this.required
129
159
  ? this.localization.$globals.requiredFieldMarker
130
- : this.localization.$globals.optionalFieldMarker), h("span", { key: '9c7eb6c0626012609829409767280726a7690966', class: "stzh-checkbox__marker-text" }, this.required
160
+ : this.localization.$globals.optionalFieldMarker), h("span", { key: 'd77de20275f3cf9d107caa25434c5c61ebf4a009', class: "stzh-checkbox__marker-text" }, this.required
131
161
  ? this.localization.$globals.requiredFieldText
132
- : this.localization.$globals.optionalFieldText))), descriptionLongUsed && (h(StzhInputDescription, { 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 })))), (errorUsed || descriptionUsed) && (h(StzhInputDescription, { key: '61f5a0b9933453e57783d79d483e2e70c94a9ee5', classPrefix: "stzh-checkbox", id: `${this.inputId}-description`, error: this._error, description: this.description, descriptionLongUsed: false })))));
162
+ : this.localization.$globals.optionalFieldText))), descriptionLongUsed && (h(StzhInputDescription, { key: '23aae5a7a4d5bc8927a21eb4ccf7024248392119', 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 }))))), (errorUsed || descriptionUsed) && (h(StzhInputDescription, { key: '1914f69a94ea08ffd8f9679349e246f652f3fa2c', classPrefix: "stzh-checkbox", id: `${this.inputId}-description`, error: this._error, description: this.description, descriptionLongUsed: false })))));
133
163
  }
134
164
  static get is() { return "stzh-checkbox"; }
135
165
  static get encapsulation() { return "scoped"; }
@@ -445,6 +475,12 @@ export class StzhCheckbox {
445
475
  }
446
476
  };
447
477
  }
478
+ static get states() {
479
+ return {
480
+ "hasDefaultSlot": {},
481
+ "hasResolvedDefaultSlot": {}
482
+ };
483
+ }
448
484
  static get events() {
449
485
  return [{
450
486
  "method": "stzhChange",
@@ -1 +1 @@
1
- {"version":3,"file":"stzh-checkbox.js","sourceRoot":"","sources":["../../../../src/components/stzh-checkbox/stzh-checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAgB,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAIt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ACjC,EAAC,oBAAoB,qDACnB,WAAW,EAAC,eAAe,EAC3B,EAAE,EAAE,GAAG,IAAI,CAAC,OAAO,cAAc,EACjC,KAAK,EAAE,IAAI,CAAC,MAAM,EAClB,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,mBAAmB,EAAE,KAAK,GAC1B,CACH,CACG,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["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"]}
1
+ {"version":3,"file":"stzh-checkbox.js","sourceRoot":"","sources":["../../../../src/components/stzh-checkbox/stzh-checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAgB,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAI7G,OAAO,EAAE,qBAAqB,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAGnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAE5E,IAAI,eAAe,GAAG,CAAC,CAAC;AAExB;;;;;;GAMG;AAMH,MAAM,OAAO,YAAY;IALzB;QASE,uCAAuC;QACd,aAAQ,GAAY,KAAK,CAAC;QAEnD,gCAAgC;QACP,SAAI,GAAW,EAAE,CAAC;QAE3C,iCAAiC;QACR,UAAK,GAAW,EAAE,CAAC;QAE5C,qBAAqB;QACI,YAAO,GAAY,KAAK,CAAC;QAElD,sBAAsB;QACG,aAAQ,GAAY,KAAK,CAAC;QAEnD,qBAAqB;QACmB,YAAO,GAAY,KAAK,CAAC;QAKjE,YAAY;QACJ,UAAK,GAAW,EAAE,CAAC;QAc3B,yEAAyE;QAChD,iBAAY,GAAY,KAAK,CAAC;QAMvD,8GAA8G;QACrE,oBAAe,GAAW,EAAE,CAAC;QAuCtE;;;WAGG;QACM,mBAAc,GAAY,KAAK,CAAC;QAEzC;;;;;WAKG;QACM,2BAAsB,GAAY,KAAK,CAAC;QAMzC,mBAAc,GAAY,KAAK,CAAC;QAEhC,gBAAW,GAAG,KAAK,IAAI,EAAE;YAC/B,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,cAAc,CAAC;QACrC,CAAC,CAAC;QAEM,YAAO,GAAG,CAAC,KAAiB,EAAE,EAAE;YACtC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,KA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,CACH,CACG,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Host, Component, Prop, Event, EventEmitter, Element, h, Watch, Listen, State } from \"@stencil/core\";\n\nimport { StzhCheckboxChangeEvent, StzhCheckboxFocusEvent, StzhCheckboxBlurEvent } from \"../../index\";\n\nimport { hasDefaultSlotContent, 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 /**\n * Whether the component has meaningful default-slot content.\n * Becomes obsolete with the implementation of PDESI-1908.\n */\n @State() hasDefaultSlot: boolean = false;\n\n /**\n * Indicates whether default-slot content detection has run at least once.\n * Used to avoid rendering state-dependent markup before the slot content\n * has been evaluated.\n * Becomes obsolete with the implementation of PDESI-1908.\n */\n @State() hasResolvedDefaultSlot: boolean = false;\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 /**\n * Re-evaluates default-slot content and updates the related render state.\n * Becomes obsolete with implementation of PDESI-1908.\n */\n private updateDefaultSlotState = () => {\n const hasDefaultSlot = hasDefaultSlotContent(this.element, [\"stzh-checkbox\"]);\n if (this.hasDefaultSlot !== hasDefaultSlot) {\n this.hasDefaultSlot = hasDefaultSlot;\n }\n if (!this.hasResolvedDefaultSlot) {\n this.hasResolvedDefaultSlot = true;\n }\n };\n\n componentDidLoad() {\n this.updateDefaultSlotState();\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 labelUsed = !!this.label || this.hasDefaultSlot;\n const labelWrapperUsed = !this.hasResolvedDefaultSlot || labelUsed || descriptionLongUsed;\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 {labelWrapperUsed && (\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 ? this.label : <slot onSlotchange={this.updateDefaultSlotState}></slot>}\n\n {labelUsed && !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 )}\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"]}
@@ -256,3 +256,15 @@ export const ErrorMessageInSlot = {
256
256
  });
257
257
  }
258
258
  };
259
+
260
+ const TEMPLATE_LABEL_SLOT = `
261
+ <${COMPONENT_NAME} data-testid="${CHECKBOX_TEST_ID}">Label in default slot</${COMPONENT_NAME}>
262
+ `;
263
+
264
+ export const LabelSlotted = {
265
+ render: (args) => story(args, TEMPLATE_LABEL_SLOT),
266
+ args: {
267
+ name: 'option',
268
+ value: 'test'
269
+ }
270
+ };
@@ -1,5 +1,5 @@
1
1
  import { h, Host } from "@stencil/core";
2
- import { hasSlot } from "../../utils/utils";
2
+ import { hasDefaultSlotContent, hasSlot } from "../../utils/utils";
3
3
  import { StzhInputDescription } from "./stzh-input-description";
4
4
  let inputCounter = 0;
5
5
  /**
@@ -53,19 +53,19 @@ export class StzhInput {
53
53
  this.size = "default";
54
54
  /** Id for element which describes the input (this will be overwritten if description prop or slot is used, used by stzh-radiogroup) */
55
55
  this.a11yDescribedby = "";
56
+ /**
57
+ * Whether the component has meaningful default-slot content.
58
+ * Becomes obsolete with the implementation of PDESI-1908.
59
+ */
56
60
  this.hasDefaultSlot = false;
61
+ /**
62
+ * Indicates whether default-slot content detection has run at least once.
63
+ * Used to avoid rendering state-dependent markup before the slot content
64
+ * has been evaluated.
65
+ * Becomes obsolete with the implementation of PDESI-1908.
66
+ */
57
67
  this.hasResolvedDefaultSlot = false;
58
68
  this.focusedByInput = false;
59
- /** Updates default-slot state after initial render and later slot content changes. */
60
- this.updateDefaultSlotState = () => {
61
- const hasDefaultSlot = this.hasDefaultLabelContent();
62
- if (this.hasDefaultSlot !== hasDefaultSlot) {
63
- this.hasDefaultSlot = hasDefaultSlot;
64
- }
65
- if (!this.hasResolvedDefaultSlot) {
66
- this.hasResolvedDefaultSlot = true;
67
- }
68
- };
69
69
  this.onClearClick = async (event) => {
70
70
  this.value = "";
71
71
  this.input.focus();
@@ -145,6 +145,19 @@ export class StzhInput {
145
145
  originalEvent: event,
146
146
  });
147
147
  };
148
+ /**
149
+ * Re-evaluates default-slot content and updates the related render state.
150
+ * Becomes obsolete with implementation of PDESI-1908.
151
+ */
152
+ this.updateDefaultSlotState = () => {
153
+ const hasDefaultSlot = hasDefaultSlotContent(this.element, ["stzh-input"]);
154
+ if (this.hasDefaultSlot !== hasDefaultSlot) {
155
+ this.hasDefaultSlot = hasDefaultSlot;
156
+ }
157
+ if (!this.hasResolvedDefaultSlot) {
158
+ this.hasResolvedDefaultSlot = true;
159
+ }
160
+ };
148
161
  }
149
162
  resetListener(event) {
150
163
  if (event.target.contains(this.element)) {
@@ -183,24 +196,6 @@ export class StzhInput {
183
196
  throw new Error(`Type ${newValue} not supported`);
184
197
  }
185
198
  }
186
- /** Detects default-slot label content, including Stencil's scoped-slot fallback nodes. */
187
- hasDefaultLabelContent() {
188
- if (hasSlot(this.element)) {
189
- return true;
190
- }
191
- return Array.from(this.element.childNodes).some(node => {
192
- var _a, _b;
193
- const slotNode = (_a = node["s-nr"]) !== null && _a !== void 0 ? _a : node;
194
- if (slotNode.nodeType === Node.TEXT_NODE) {
195
- return ((_b = slotNode.textContent) !== null && _b !== void 0 ? _b : "").trim() !== "";
196
- }
197
- if (slotNode.nodeType === Node.ELEMENT_NODE) {
198
- const element = slotNode;
199
- return !element.hasAttribute("slot") && !element.classList.contains("stzh-input");
200
- }
201
- return false;
202
- });
203
- }
204
199
  waitForNextRender() {
205
200
  return new Promise(resolve => (this.renderPromiseResolve = resolve));
206
201
  }
@@ -257,18 +252,18 @@ export class StzhInput {
257
252
  [`stzh-input--size-${this.size}`]: !!this.size,
258
253
  [`stzh-input--type-${this.type}`]: !!this.type,
259
254
  };
260
- return (h(Host, { key: 'd195c45d4e0040fa255c91f43adfb94941ec2c63', "is-invalid": this.invalid || errorUsed, tabindex: this.disabled ? null : "-1", onFocus: this.onRootFocus, "is-filled": this.filled }, h("div", { key: '02d3ea7c524107257e3e488cdf310dc34fa3857a', class: classes }, labelWrapperUsed && (h("div", { key: '9b4017101f0818c295d9fd781128e10a82b78be7', class: "stzh-input__label-wrapper" }, h("label", { key: 'd94b948c1e96e5bdfa8884bcb0cda7130e6bddb3', class: {
255
+ return (h(Host, { key: 'edcd8b17d9a523b18ec3dc3fd8e7616a792bb1c4', "is-invalid": this.invalid || errorUsed, tabindex: this.disabled ? null : "-1", onFocus: this.onRootFocus, "is-filled": this.filled }, h("div", { key: '9cb9427ab5db441a4e26b80a389a527032d36a9f', class: classes }, labelWrapperUsed && (h("div", { key: '53bc2d5cea8f5a4e9f738ba973cd53e229864f04', class: "stzh-input__label-wrapper" }, h("label", { key: '73d80f001275d4f2eead5e9c97f10d0a4d6b3021', class: {
261
256
  "stzh-input__label": true,
262
257
  "no-label-truncate": this.noLabelTruncate,
263
- }, htmlFor: this.inputId }, this.label ? this.label : h("slot", { onSlotchange: this.updateDefaultSlotState }), labelUsed && !this.hideOptional && (h("span", { key: 'dd99a584802120e48ece9ed57355dabfba286074', class: "stzh-input__marker" }, h("span", { key: 'e52060306a2b697cbb235cdff8f559f0f4786fff', class: "stzh-input__marker-symbol", "aria-hidden": "true" }, this.required
258
+ }, htmlFor: this.inputId }, this.label ? this.label : h("slot", { onSlotchange: this.updateDefaultSlotState }), labelUsed && !this.hideOptional && (h("span", { key: 'd842519268ef41d93e4822963a80464bb52d81ba', class: "stzh-input__marker" }, h("span", { key: '9f9733c50f43d439398beda36b470c415effda56', class: "stzh-input__marker-symbol", "aria-hidden": "true" }, this.required
264
259
  ? this.localization.$globals.requiredFieldMarker
265
- : this.localization.$globals.optionalFieldMarker), h("span", { key: 'f629992a20c86974922b20dc7f8c8a671981bc17', class: "stzh-input__marker-text" }, this.required
260
+ : this.localization.$globals.optionalFieldMarker), h("span", { key: 'a6677f03b473f76df2874e577c6ea5fa262e9b86', class: "stzh-input__marker-text" }, this.required
266
261
  ? this.localization.$globals.requiredFieldText
267
- : this.localization.$globals.optionalFieldText)))), descriptionLongUsed && (h(StzhInputDescription, { key: 'dab2b867e4c4843496c3d641d05e33e53522172c', classPrefix: "stzh-input", id: `${this.inputId}-description-long`, description: this.description, descriptionLong: this.descriptionLong, descriptionLongTitle: this.descriptionLongTitle, descriptionLongUsed: descriptionLongUsed, moreInfoButtonLabel: this.localization.$globals.moreInfoButtonLabel, showError: false, showDescriptionText: false })))), h("div", { key: 'f27b1b23cac724928519b024d50e8760d2c28e83', class: "stzh-input__field-wrapper" }, this.multiline ? this.renderTextarea() : this.renderInput(), this.clearable || this.type === "search" || this.type === "password" ? ((!this.clearable || this.disabled || this.readonly || !this.filled) && this.type === "search" ? (h("stzh-icon", { class: "stzh-input__button-right", name: "search" })) : this.type === "password" ? (h("stzh-button", { class: "stzh-input__button-right", icon: this.showPassword ? "view-hidden" : "view", size: this.size, iconOnly: true, onClick: this.onTogglePasswordVisibilityClick, disabled: this.disabled || this.readonly, a11yLabel: this.type === "password"
262
+ : this.localization.$globals.optionalFieldText)))), descriptionLongUsed && (h(StzhInputDescription, { key: '58c5653a9a53c6f617833a3fae920cdebaf1f988', classPrefix: "stzh-input", id: `${this.inputId}-description-long`, description: this.description, descriptionLong: this.descriptionLong, descriptionLongTitle: this.descriptionLongTitle, descriptionLongUsed: descriptionLongUsed, moreInfoButtonLabel: this.localization.$globals.moreInfoButtonLabel, showError: false, showDescriptionText: false })))), h("div", { key: '910fb2dfae4791492c3085dbfd4e5de012c7a063', class: "stzh-input__field-wrapper" }, this.multiline ? this.renderTextarea() : this.renderInput(), this.clearable || this.type === "search" || this.type === "password" ? ((!this.clearable || this.disabled || this.readonly || !this.filled) && this.type === "search" ? (h("stzh-icon", { class: "stzh-input__button-right", name: "search" })) : this.type === "password" ? (h("stzh-button", { class: "stzh-input__button-right", icon: this.showPassword ? "view-hidden" : "view", size: this.size, iconOnly: true, onClick: this.onTogglePasswordVisibilityClick, disabled: this.disabled || this.readonly, a11yLabel: this.type === "password"
268
263
  ? this.showPassword
269
264
  ? this.localization.$globals.passwordToggleButtonHideLabel
270
265
  : this.localization.$globals.passwordToggleButtonShowLabel
271
- : undefined })) : this.filled ? (h("stzh-button", { class: "stzh-input__button-right", icon: "close", size: this.size, iconOnly: true, onClick: this.onClearClick, a11yLabel: this.localization.$globals.clearButtonLabel, "aria-controls": this.inputId, a11yTabindex: "-1", "aria-hidden": this.clearable ? "true" : undefined })) : (h("slot", { name: "button-right" }))) : (h("slot", { name: "button-right" }))), (errorUsed || descriptionUsed) && (h(StzhInputDescription, { key: '1d377f724be2b431c8177fd66bb2a2b43b7d425d', classPrefix: "stzh-input", id: `${this.inputId}-description`, error: this._error, description: this.description, descriptionLongUsed: false })))));
266
+ : undefined })) : this.filled ? (h("stzh-button", { class: "stzh-input__button-right", icon: "close", size: this.size, iconOnly: true, onClick: this.onClearClick, a11yLabel: this.localization.$globals.clearButtonLabel, "aria-controls": this.inputId, a11yTabindex: "-1", "aria-hidden": this.clearable ? "true" : undefined })) : (h("slot", { name: "button-right" }))) : (h("slot", { name: "button-right" }))), (errorUsed || descriptionUsed) && (h(StzhInputDescription, { key: '0150eaf57c9e266cc8234c76a21f98e4904e95b3', classPrefix: "stzh-input", id: `${this.inputId}-description`, error: this._error, description: this.description, descriptionLongUsed: false })))));
272
267
  }
273
268
  static get is() { return "stzh-input"; }
274
269
  static get encapsulation() { return "scoped"; }
@@ -1 +1 @@
1
- {"version":3,"file":"stzh-input.js","sourceRoot":"","sources":["../../../../src/components/stzh-input/stzh-input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAE7G,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAG5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEhE,IAAI,YAAY,GAAG,CAAC,CAAC;AAErB;;;;;;;GAOG;AAMH,MAAM,OAAO,SAAS;IALtB;QASE,wDAAwD;QAChD,cAAS,GAAY,KAAK,CAAC;QAKnC,2FAA2F;QAClE,SAAI,GAC3B,MAAM,CAAC;QAET,2DAA2D;QACnD,SAAI,GAAW,CAAC,CAAC;QAQzB,wGAAwG;QAC/E,aAAQ,GAAY,KAAK,CAAC;QAEnD,6CAA6C;QACpB,aAAQ,GAAY,KAAK,CAAC;QAEnD,6CAA6C;QACpB,aAAQ,GAAY,KAAK,CAAC;QAEnD,qIAAqI;QAC5G,cAAS,GAAY,KAAK,CAAC;QAEpD,yEAAyE;QAChD,iBAAY,GAAY,KAAK,CAAC;QAWvD,qCAAqC;QACZ,UAAK,GAAW,EAAE,CAAC;QAE5C,oCAAoC;QACX,iBAAY,GAAW,EAAE,CAAC;QAiBnD,qBAAqB;QACI,YAAO,GAAY,KAAK,CAAC;QAElD,sBAAsB;QACG,aAAQ,GAAY,KAAK,CAAC;QAQnD;;;WAGG;QACK,iBAAY,GAAW,IAAI,CAAC;QAEpC,iDAAiD;QACzC,mBAAc,GAAY,KAAK,CAAC;QAExC,YAAY;QACJ,UAAK,GAAW,EAAE,CAAC;QAE3B,+CAA+C;QACvC,oBAAe,GAAY,KAAK,CAAC;QAEzC,+CAA+C;QACvC,gBAAW,GAAY,KAAK,C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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["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"]}
1
+ {"version":3,"file":"stzh-input.js","sourceRoot":"","sources":["../../../../src/components/stzh-input/stzh-input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAE7G,OAAO,EAAE,qBAAqB,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAGnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEhE,IAAI,YAAY,GAAG,CAAC,CAAC;AAErB;;;;;;;GAOG;AAMH,MAAM,OAAO,SAAS;IALtB;QASE,wDAAwD;QAChD,cAAS,GAAY,KAAK,CAAC;QAKnC,2FAA2F;QAClE,SAAI,GAC3B,MAAM,CAAC;QAET,2DAA2D;QACnD,SAAI,GAAW,CAAC,CAAC;QAQzB,wGAAwG;QAC/E,aAAQ,GAAY,KAAK,CAAC;QAEnD,6CAA6C;QACpB,aAAQ,GAAY,KAAK,CAAC;QAEnD,6CAA6C;QACpB,aAAQ,GAAY,KAAK,CAAC;QAEnD,qIAAqI;QAC5G,cAAS,GAAY,KAAK,CAAC;QAEpD,yEAAyE;QAChD,iBAAY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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Event, EventEmitter, h, Host, Listen, Prop, State, Watch } from \"@stencil/core\";\nimport { StzhInputBlurEvent, StzhInputChangedEvent, StzhInputChangeEvent, StzhInputFocusEvent } from \"../../index\";\nimport { hasDefaultSlotContent, 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 /**\n * Whether the component has meaningful default-slot content.\n * Becomes obsolete with the implementation of PDESI-1908.\n */\n @State() hasDefaultSlot: boolean = false;\n\n /**\n * Indicates whether default-slot content detection has run at least once.\n * Used to avoid rendering state-dependent markup before the slot content\n * has been evaluated.\n * Becomes obsolete with the implementation of PDESI-1908.\n */\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 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 /**\n * Re-evaluates default-slot content and updates the related render state.\n * Becomes obsolete with implementation of PDESI-1908.\n */\n private updateDefaultSlotState = () => {\n const hasDefaultSlot = hasDefaultSlotContent(this.element, [\"stzh-input\"]);\n if (this.hasDefaultSlot !== hasDefaultSlot) {\n this.hasDefaultSlot = hasDefaultSlot;\n }\n if (!this.hasResolvedDefaultSlot) {\n this.hasResolvedDefaultSlot = true;\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"]}
@@ -266,15 +266,6 @@ export const LongLabel = {
266
266
  }
267
267
  };
268
268
 
269
- export const ErrorMessage = {
270
- render: (args) => story(args, TEMPLATE),
271
- args: {
272
- name: 'firstname',
273
- label: 'Label',
274
- error: ['Please fill the field']
275
- }
276
- };
277
-
278
269
  const TEMPLATE_ERROR_SLOT = `
279
270
  <stzh-input data-testid="${INPUT_TEST_ID}">
280
271
  <div slot="error">
@@ -284,6 +275,15 @@ const TEMPLATE_ERROR_SLOT = `
284
275
  </stzh-input>
285
276
  `;
286
277
 
278
+ export const ErrorMessage = {
279
+ render: (args) => story(args, TEMPLATE),
280
+ args: {
281
+ name: 'firstname',
282
+ label: 'Label',
283
+ error: ['Please fill the field']
284
+ }
285
+ };
286
+
287
287
  export const ErrorMessageInSlot = {
288
288
  render: (args) => story(args, TEMPLATE_ERROR_SLOT),
289
289
  args: {
@@ -422,3 +422,26 @@ export const ButtonRight = {
422
422
  });
423
423
  }
424
424
  };
425
+
426
+ const TEMPLATE_LABEL_SLOT = `
427
+ <stzh-input data-testid="${INPUT_TEST_ID}">
428
+ Label in default slot
429
+ </stzh-input>
430
+ `;
431
+
432
+ export const LabelSlotted = {
433
+ render: (args) => story(args, TEMPLATE_LABEL_SLOT),
434
+ args: {},
435
+ play: async ({ canvasElement, step }) => {
436
+ await step('Assert label via default slot', async () => {
437
+ stzhInputEl = await getComponentByTestId(canvasElement, INPUT_TEST_ID);
438
+
439
+ expect(stzhInputEl).not.toHaveAttribute('label');
440
+
441
+ const labelEl = stzhInputEl.querySelector('label');
442
+ expect(labelEl).not.toBeNull();
443
+ expectIsVisible(labelEl);
444
+ expect(labelEl).toHaveTextContent('Label in default slot');
445
+ });
446
+ }
447
+ };
@@ -1,6 +1,6 @@
1
1
  import { h, Host } from "@stencil/core";
2
2
  /**
3
- * @slot - Slot for description content (use instead of description property)
3
+ * @slot - Slot for trusted rich description content (only used when the description property is empty)
4
4
  * @slot label - Slot for label (use as alternative for property)
5
5
  * @slot link - Slot for optional stzh-link element
6
6
  */
@@ -8,7 +8,7 @@ export class StzhMessage {
8
8
  constructor() {
9
9
  /** Label (slot can also be used as alternative) */
10
10
  this.label = "";
11
- /** Description (use instead of default slot) */
11
+ /** Plain text description. If set, this takes precedence over the default slot. */
12
12
  this.description = "";
13
13
  /** Type */
14
14
  /** Do not use page-message property. It will be deprecated with the next major release. */
@@ -44,10 +44,10 @@ export class StzhMessage {
44
44
  "stzh-message--has-close-hidden": this.hideClose,
45
45
  [`stzh-message--type-${this.type}`]: !!this.type,
46
46
  };
47
- return (h(Host, { key: '1c4172135e480d0d2afda795f2449f9c5be956e1', hidden: !this.open }, h("div", { key: 'bc888e9fa8731078610b20e8eccb11eecb899f58', class: classes }, h("div", { key: '210d18d8b5338f62f76293818c7c918fc34a62e2', class: "stzh-message__content" }, h("div", { key: '3c47306853ec2647255a55e683ab77dbb9e02055', class: "stzh-message__icon-wrapper" }, h("stzh-icon", { key: '4ce1b5863bd6b3b6110b66c9467b6dfd4175e6b8', class: "stzh-message__icon", name: ((this.type === "info" || this.type === "page-message") && "info-help-filled") ||
47
+ return (h(Host, { key: 'f9c8973ef46672059f0dbd9834fe675311720fa7', hidden: !this.open }, h("div", { key: '3f3c43051e4c182b9c690aa8498fecd83858ddc8', class: classes }, h("div", { key: '95c7536c4970b772f3a871afd3f1ef99e11d3a39', class: "stzh-message__content" }, h("div", { key: '767219fa034a217680e6c4108eb211467e6c77b7', class: "stzh-message__icon-wrapper" }, h("stzh-icon", { key: 'a8f6d151aaa264ae3d7a3ac66c81b5396f420c51', class: "stzh-message__icon", name: ((this.type === "info" || this.type === "page-message") && "info-help-filled") ||
48
48
  (this.type === "success" && "checkmark-circle-filled") ||
49
49
  (this.type === "warning" && "important-warning-filled") ||
50
- (this.type === "error" && "warning-filled") })), h("div", { key: 'f008ed9d5f447dc72af294c1f06af8321e39d688', class: "stzh-message__text-wrapper" }, h("div", { key: '34f479496bea45f3357344278b2103cb1d6f0397', class: "stzh-message__label" }, this.label ? h("strong", null, this.label) : h("slot", { name: "label" })), h("div", { key: '05999744bea491a6d3d5b6a778008a3f9b7ae053', class: "stzh-message__description" }, this.description ? (h("stzh-text", { color: "inherit" }, h("p", null, this.description))) : (h("slot", null))), h("div", { key: '37d25836720280eb233660dc1a19b1d23505d3ad', class: "stzh-message__link" }, h("slot", { key: 'f4f2749c1ebb83dcd8d9ea82c900368c3f502016', name: "link" })))), !this.hideClose && (h("stzh-button", { key: 'b7b753e75f4f990d67ee5befc851524bd94e6142', class: "stzh-message__close", onClick: this.onCloseButtonClick, a11yLabel: this.localization.close, variant: "tertiary", size: "small", iconOnly: true, icon: "close-big" })))));
50
+ (this.type === "error" && "warning-filled") })), h("div", { key: '6939aaddc4549aa9221e8a7ddf887f3f176d14c1', class: "stzh-message__text-wrapper" }, h("div", { key: '6a48a095671aff712fd30284b58b0b11c7b705b9', class: "stzh-message__label" }, this.label ? h("strong", null, this.label) : h("slot", { name: "label" })), h("div", { key: 'a185d89f443a0ad4fc25d28629f28ad3be0d6975', class: "stzh-message__description" }, this.description ? (h("stzh-text", { color: "inherit" }, h("p", null, this.description))) : (h("slot", null))), h("div", { key: '208d811f4ca0f47e488d537b9844ea3eda72fbc7', class: "stzh-message__link" }, h("slot", { key: 'c7c951f18df76bcb3c99f0e63e206c46f35acad9', name: "link" })))), !this.hideClose && (h("stzh-button", { key: '7cec92efb1eb1c97990d0e8290be2166e67068d1', class: "stzh-message__close", onClick: this.onCloseButtonClick, a11yLabel: this.localization.close, variant: "tertiary", size: "small", iconOnly: true, icon: "close-big" })))));
51
51
  }
52
52
  static get is() { return "stzh-message"; }
53
53
  static get encapsulation() { return "scoped"; }
@@ -95,7 +95,7 @@ export class StzhMessage {
95
95
  "optional": false,
96
96
  "docs": {
97
97
  "tags": [],
98
- "text": "Description (use instead of default slot)"
98
+ "text": "Plain text description. If set, this takes precedence over the default slot."
99
99
  },
100
100
  "getter": false,
101
101
  "setter": false,
@@ -1 +1 @@
1
- {"version":3,"file":"stzh-message.js","sourceRoot":"","sources":["../../../../src/components/stzh-message/stzh-message.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAMtG;;;;GAIG;AAMH,MAAM,OAAO,WAAW;IALxB;QAME,mDAAmD;QAC3C,UAAK,GAAW,EAAE,CAAC;QAE3B,gDAAgD;QACxC,gBAAW,GAAW,EAAE,CAAC;QAEjC,WAAW;QACX,2FAA2F;QAClE,SAAI,GAA8D,MAAM,CAAC;QAElG,mCAAmC;QAC3B,cAAS,GAAY,KAAK,CAAC;QAanC,iBAAiB;QACR,SAAI,GAAY,IAAI,CAAC;QAkBtB,uBAAkB,GAAG,GAAG,EAAE;YAChC,IAAI,CAAC,IAAI,EAAE,CAAC;QACd,CAAC,CAAC;KAgEH;IAjFC,KAAK,CAAC,IAAI;QACR,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;YACjB,SAAS,EAAE,cAAc;SAC1B,CAAC,CAAC;IACL,CAAC;IAGD,KAAK,CAAC,IAAI;QACR,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC;QAClB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;YAClB,SAAS,EAAE,cAAc;SAC1B,CAAC,CAAC;IACL,CAAC;IAMD,KAAK,CAAC,iBAAiB;QACrB,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,CAAC;YACvB,IAAI,CAAC,YAAY,GAAG,MAAM,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,iBAAiB,CAAC,IAAI,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;QACnG,CAAC;IACH,CAAC;IAED,MAAM;QACJ,MAAM,OAAO,GAAG;YACd,cAAc,EAAE,IAAI;YACpB,gCAAgC,EAAE,IAAI,CAA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AChC,SAAS,EAAE,IAAI,CAAC,YAAY,CAAC,KAAK,EAClC,OAAO,EAAC,UAAU,EAClB,IAAI,EAAC,OAAO,EACZ,QAAQ,EAAE,IAAI,EACd,IAAI,EAAC,WAAW,GACH,CAChB,CACG,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Event, EventEmitter, h, Host, Method, Prop, State } from \"@stencil/core\";\n\nimport { StzhMessageCloseEvent, StzhMessageOpenEvent } from \"../../index\";\n\nimport { StzhMessageLocalizedText } from \"./stzh-message.localization\";\n\n/**\n * @slot - Slot for description content (use instead of description property)\n * @slot label - Slot for label (use as alternative for property)\n * @slot link - Slot for optional stzh-link element\n */\n@Component({\n tag: \"stzh-message\",\n styleUrl: \"stzh-message.scss\",\n scoped: true,\n})\nexport class StzhMessage {\n /** Label (slot can also be used as alternative) */\n @Prop() label: string = \"\";\n\n /** Description (use instead of default slot) */\n @Prop() description: string = \"\";\n\n /** Type */\n /** Do not use page-message property. It will be deprecated with the next major release. */\n @Prop({ reflect: true }) type: \"info\" | \"success\" | \"warning\" | \"error\" | \"page-message\" = \"info\";\n\n /** Whether to hide close button */\n @Prop() hideClose: boolean = false;\n\n /** Translation strings. */\n @Prop() localization: StzhMessageLocalizedText;\n\n /** Message open event */\n @Event() stzhOpen: EventEmitter<StzhMessageOpenEvent>;\n\n /** Message close event */\n @Event() stzhClose: EventEmitter<StzhMessageCloseEvent>;\n\n @Element() element: HTMLStzhMessageElement;\n\n /** Open state */\n @State() open: boolean = true;\n\n @Method()\n async show() {\n this.open = true;\n this.stzhOpen.emit({\n component: \"stzh-message\",\n });\n }\n\n @Method()\n async hide() {\n this.open = false;\n this.stzhClose.emit({\n component: \"stzh-message\",\n });\n }\n\n private onCloseButtonClick = () => {\n this.hide();\n };\n\n async componentWillLoad() {\n if (!this.localization) {\n this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, \"message\");\n }\n }\n\n render() {\n const classes = {\n \"stzh-message\": true,\n \"stzh-message--has-close-hidden\": this.hideClose,\n [`stzh-message--type-${this.type}`]: !!this.type,\n };\n\n return (\n <Host hidden={!this.open}>\n <div class={classes}>\n <div class=\"stzh-message__content\">\n <div class=\"stzh-message__icon-wrapper\">\n <stzh-icon\n class=\"stzh-message__icon\"\n name={\n ((this.type === \"info\" || this.type === \"page-message\") && \"info-help-filled\") ||\n (this.type === \"success\" && \"checkmark-circle-filled\") ||\n (this.type === \"warning\" && \"important-warning-filled\") ||\n (this.type === \"error\" && \"warning-filled\")\n }\n ></stzh-icon>\n </div>\n <div class=\"stzh-message__text-wrapper\">\n <div class=\"stzh-message__label\">\n {this.label ? <strong>{this.label}</strong> : <slot name=\"label\"></slot>}\n </div>\n <div class=\"stzh-message__description\">\n {this.description ? (\n <stzh-text color=\"inherit\">\n <p>{this.description}</p>\n </stzh-text>\n ) : (\n <slot></slot>\n )}\n </div>\n <div class=\"stzh-message__link\">\n <slot name=\"link\"></slot>\n </div>\n </div>\n </div>\n\n {!this.hideClose && (\n <stzh-button\n class=\"stzh-message__close\"\n onClick={this.onCloseButtonClick}\n a11yLabel={this.localization.close}\n variant=\"tertiary\"\n size=\"small\"\n iconOnly={true}\n icon=\"close-big\"\n ></stzh-button>\n )}\n </div>\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"stzh-message.js","sourceRoot":"","sources":["../../../../src/components/stzh-message/stzh-message.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Event, EventEmitter, h, Host, Method, Prop, State } from \"@stencil/core\";\n\nimport { StzhMessageCloseEvent, StzhMessageOpenEvent } from \"../../index\";\n\nimport { StzhMessageLocalizedText } from \"./stzh-message.localization\";\n\n/**\n * @slot - Slot for trusted rich description content (only used when the description property is empty)\n * @slot label - Slot for label (use as alternative for property)\n * @slot link - Slot for optional stzh-link element\n */\n@Component({\n tag: \"stzh-message\",\n styleUrl: \"stzh-message.scss\",\n scoped: true,\n})\nexport class StzhMessage {\n /** Label (slot can also be used as alternative) */\n @Prop() label: string = \"\";\n\n /** Plain text description. If set, this takes precedence over the default slot. */\n @Prop() description: string = \"\";\n\n /** Type */\n /** Do not use page-message property. It will be deprecated with the next major release. */\n @Prop({ reflect: true }) type: \"info\" | \"success\" | \"warning\" | \"error\" | \"page-message\" = \"info\";\n\n /** Whether to hide close button */\n @Prop() hideClose: boolean = false;\n\n /** Translation strings. */\n @Prop() localization: StzhMessageLocalizedText;\n\n /** Message open event */\n @Event() stzhOpen: EventEmitter<StzhMessageOpenEvent>;\n\n /** Message close event */\n @Event() stzhClose: EventEmitter<StzhMessageCloseEvent>;\n\n @Element() element: HTMLStzhMessageElement;\n\n /** Open state */\n @State() open: boolean = true;\n\n @Method()\n async show() {\n this.open = true;\n this.stzhOpen.emit({\n component: \"stzh-message\",\n });\n }\n\n @Method()\n async hide() {\n this.open = false;\n this.stzhClose.emit({\n component: \"stzh-message\",\n });\n }\n\n private onCloseButtonClick = () => {\n this.hide();\n };\n\n async componentWillLoad() {\n if (!this.localization) {\n this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, \"message\");\n }\n }\n\n render() {\n const classes = {\n \"stzh-message\": true,\n \"stzh-message--has-close-hidden\": this.hideClose,\n [`stzh-message--type-${this.type}`]: !!this.type,\n };\n\n return (\n <Host hidden={!this.open}>\n <div class={classes}>\n <div class=\"stzh-message__content\">\n <div class=\"stzh-message__icon-wrapper\">\n <stzh-icon\n class=\"stzh-message__icon\"\n name={\n ((this.type === \"info\" || this.type === \"page-message\") && \"info-help-filled\") ||\n (this.type === \"success\" && \"checkmark-circle-filled\") ||\n (this.type === \"warning\" && \"important-warning-filled\") ||\n (this.type === \"error\" && \"warning-filled\")\n }\n ></stzh-icon>\n </div>\n <div class=\"stzh-message__text-wrapper\">\n <div class=\"stzh-message__label\">\n {this.label ? <strong>{this.label}</strong> : <slot name=\"label\"></slot>}\n </div>\n <div class=\"stzh-message__description\">\n {this.description ? (\n <stzh-text color=\"inherit\">\n <p>{this.description}</p>\n </stzh-text>\n ) : (\n <slot></slot>\n )}\n </div>\n <div class=\"stzh-message__link\">\n <slot name=\"link\"></slot>\n </div>\n </div>\n </div>\n\n {!this.hideClose && (\n <stzh-button\n class=\"stzh-message__close\"\n onClick={this.onCloseButtonClick}\n a11yLabel={this.localization.close}\n variant=\"tertiary\"\n size=\"small\"\n iconOnly={true}\n icon=\"close-big\"\n ></stzh-button>\n )}\n </div>\n </Host>\n );\n }\n}\n"]}