@oiz/stzh-components 3.0.0-beta3 → 3.0.0-beta5

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 (663) hide show
  1. package/dist/cjs/{app-globals-0cbebaa1.js → app-globals-82cc9313.js} +39 -14
  2. package/dist/cjs/app-globals-82cc9313.js.map +1 -0
  3. package/dist/cjs/index-92254d32.js +20 -16
  4. package/dist/cjs/index.cjs.js.map +1 -1
  5. package/dist/cjs/loader.cjs.js +2 -2
  6. package/dist/cjs/stzh-actions.cjs.entry.js.map +1 -1
  7. package/dist/cjs/stzh-appointments.cjs.entry.js +11 -8
  8. package/dist/cjs/stzh-appointments.cjs.entry.js.map +1 -1
  9. package/dist/cjs/stzh-badge_3.cjs.entry.js +9 -1
  10. package/dist/cjs/stzh-badge_3.cjs.entry.js.map +1 -1
  11. package/dist/cjs/stzh-breadcrumb_2.cjs.entry.js +12 -3
  12. package/dist/cjs/stzh-breadcrumb_2.cjs.entry.js.map +1 -1
  13. package/dist/cjs/stzh-calendar.cjs.entry.js +1 -1
  14. package/dist/cjs/stzh-calendar.cjs.entry.js.map +1 -1
  15. package/dist/cjs/stzh-card-navigation.cjs.entry.js +2 -1
  16. package/dist/cjs/stzh-card-navigation.cjs.entry.js.map +1 -1
  17. package/dist/cjs/stzh-card-searchresult.cjs.entry.js +21 -32
  18. package/dist/cjs/stzh-card-searchresult.cjs.entry.js.map +1 -1
  19. package/dist/cjs/stzh-card-superteaser.cjs.entry.js +146 -0
  20. package/dist/cjs/stzh-card-superteaser.cjs.entry.js.map +1 -0
  21. package/dist/cjs/stzh-card_3.cjs.entry.js +85 -45
  22. package/dist/cjs/stzh-card_3.cjs.entry.js.map +1 -1
  23. package/dist/cjs/stzh-checkbox.cjs.entry.js +1 -1
  24. package/dist/cjs/stzh-checkbox.cjs.entry.js.map +1 -1
  25. package/dist/cjs/stzh-chip.cjs.entry.js +8 -3
  26. package/dist/cjs/stzh-chip.cjs.entry.js.map +1 -1
  27. package/dist/cjs/stzh-components.cjs.js +2 -2
  28. package/dist/cjs/stzh-contact.cjs.entry.js +7 -2
  29. package/dist/cjs/stzh-contact.cjs.entry.js.map +1 -1
  30. package/dist/cjs/stzh-content.cjs.entry.js +1 -1
  31. package/dist/cjs/stzh-content.cjs.entry.js.map +1 -1
  32. package/dist/cjs/stzh-cspace.cjs.entry.js +1 -1
  33. package/dist/cjs/stzh-cspace.cjs.entry.js.map +1 -1
  34. package/dist/cjs/stzh-cta.cjs.entry.js +10 -2
  35. package/dist/cjs/stzh-cta.cjs.entry.js.map +1 -1
  36. package/dist/cjs/stzh-datalist_2.cjs.entry.js +26 -16
  37. package/dist/cjs/stzh-datalist_2.cjs.entry.js.map +1 -1
  38. package/dist/cjs/stzh-datamessagelist-item.cjs.entry.js +11 -5
  39. package/dist/cjs/stzh-datamessagelist-item.cjs.entry.js.map +1 -1
  40. package/dist/cjs/stzh-datamessagelist.cjs.entry.js +1 -1
  41. package/dist/cjs/stzh-datamessagelist.cjs.entry.js.map +1 -1
  42. package/dist/cjs/stzh-datatable.cjs.entry.js +1 -1
  43. package/dist/cjs/stzh-datatable.cjs.entry.js.map +1 -1
  44. package/dist/cjs/stzh-datepicker_3.cjs.entry.js +2 -2
  45. package/dist/cjs/stzh-datepicker_3.cjs.entry.js.map +1 -1
  46. package/dist/cjs/stzh-daterange.cjs.entry.js +107 -0
  47. package/dist/cjs/stzh-daterange.cjs.entry.js.map +1 -0
  48. package/dist/cjs/{stzh-message.cjs.entry.js → stzh-details_2.cjs.entry.js} +155 -1
  49. package/dist/cjs/stzh-details_2.cjs.entry.js.map +1 -0
  50. package/dist/cjs/stzh-dropdown.cjs.entry.js +13 -4
  51. package/dist/cjs/stzh-dropdown.cjs.entry.js.map +1 -1
  52. package/dist/cjs/stzh-fieldset.cjs.entry.js +1 -1
  53. package/dist/cjs/stzh-fieldset.cjs.entry.js.map +1 -1
  54. package/dist/cjs/stzh-ghettobox_3.cjs.entry.js +2 -3
  55. package/dist/cjs/stzh-ghettobox_3.cjs.entry.js.map +1 -1
  56. package/dist/cjs/stzh-header.cjs.entry.js +56 -26
  57. package/dist/cjs/stzh-header.cjs.entry.js.map +1 -1
  58. package/dist/cjs/stzh-heading.cjs.entry.js +1 -1
  59. package/dist/cjs/stzh-heading.cjs.entry.js.map +1 -1
  60. package/dist/cjs/stzh-iframe.cjs.entry.js +11 -3
  61. package/dist/cjs/stzh-iframe.cjs.entry.js.map +1 -1
  62. package/dist/cjs/stzh-imagecomparison.cjs.entry.js +2 -2
  63. package/dist/cjs/stzh-imagecomparison.cjs.entry.js.map +1 -1
  64. package/dist/cjs/stzh-input.cjs.entry.js.map +1 -1
  65. package/dist/cjs/stzh-link.cjs.entry.js +11 -3
  66. package/dist/cjs/stzh-link.cjs.entry.js.map +1 -1
  67. package/dist/cjs/stzh-menu_2.cjs.entry.js +10 -2
  68. package/dist/cjs/stzh-menu_2.cjs.entry.js.map +1 -1
  69. package/dist/cjs/stzh-microsite-teaserlist.cjs.entry.js +2 -2
  70. package/dist/cjs/stzh-microsite-teaserlist.cjs.entry.js.map +1 -1
  71. package/dist/cjs/stzh-pagebottom.cjs.entry.js +1 -1
  72. package/dist/cjs/stzh-pagebottom.cjs.entry.js.map +1 -1
  73. package/dist/cjs/stzh-popover_2.cjs.entry.js +1 -1
  74. package/dist/cjs/stzh-popover_2.cjs.entry.js.map +1 -1
  75. package/dist/cjs/stzh-search.cjs.entry.js +100 -67
  76. package/dist/cjs/stzh-search.cjs.entry.js.map +1 -1
  77. package/dist/cjs/stzh-skin-portal-mitwirken.cjs.entry.js +1 -1
  78. package/dist/cjs/stzh-skin-portal-mitwirken.cjs.entry.js.map +1 -1
  79. package/dist/cjs/stzh-skin-storybook-preview.cjs.entry.js +1 -1
  80. package/dist/cjs/stzh-skin-storybook-preview.cjs.entry.js.map +1 -1
  81. package/dist/cjs/stzh-table.cjs.entry.js +1 -1
  82. package/dist/cjs/stzh-table.cjs.entry.js.map +1 -1
  83. package/dist/cjs/stzh-vbz-carousel.cjs.entry.js +1 -1
  84. package/dist/cjs/stzh-vbz-carousel.cjs.entry.js.map +1 -1
  85. package/dist/collection/assets/fonts/HelveticaNeueLTW05_66MediumIt.woff2 +0 -0
  86. package/dist/collection/assets/fonts.css +7 -0
  87. package/dist/collection/assets/i18n/de.json +12 -5
  88. package/dist/collection/assets/i18n/en.json +12 -5
  89. package/dist/collection/collection-manifest.json +2 -0
  90. package/dist/collection/components/stzh-accordion/stzh-accordion.css +4 -1
  91. package/dist/collection/components/stzh-accordion-item/stzh-accordion-item.css +4 -1
  92. package/dist/collection/components/stzh-actions/stzh-actions.css +4 -1
  93. package/dist/collection/components/stzh-actions/stzh-actions.js +2 -2
  94. package/dist/collection/components/stzh-actions/stzh-actions.js.map +1 -1
  95. package/dist/collection/components/stzh-actionset/stzh-actionset.css +4 -1
  96. package/dist/collection/components/stzh-amount/stzh-amount.css +4 -1
  97. package/dist/collection/components/stzh-anchornav/stzh-anchornav.css +4 -1
  98. package/dist/collection/components/stzh-appointments/stzh-appointments.css +103 -20
  99. package/dist/collection/components/stzh-appointments/stzh-appointments.js +9 -7
  100. package/dist/collection/components/stzh-appointments/stzh-appointments.js.map +1 -1
  101. package/dist/collection/components/stzh-appointments/stzh-appointments.stories.js +7 -1
  102. package/dist/collection/components/stzh-archivelist/stzh-archivelist.css +4 -1
  103. package/dist/collection/components/stzh-audio/stzh-audio.css +4 -1
  104. package/dist/collection/components/stzh-badge/stzh-badge.css +4 -1
  105. package/dist/collection/components/stzh-banner/stzh-banner.css +4 -1
  106. package/dist/collection/components/stzh-breadcrumb/stzh-breadcrumb.css +5 -1
  107. package/dist/collection/components/stzh-breadcrumb/stzh-breadcrumb.js +32 -1
  108. package/dist/collection/components/stzh-breadcrumb/stzh-breadcrumb.js.map +1 -1
  109. package/dist/collection/components/stzh-breadcrumb/stzh-breadcrumb.stories.js +3 -0
  110. package/dist/collection/components/stzh-button/stzh-button.css +14 -11
  111. package/dist/collection/components/stzh-button/stzh-button.js +34 -6
  112. package/dist/collection/components/stzh-button/stzh-button.js.map +1 -1
  113. package/dist/collection/components/stzh-button/stzh-button.stories.js +1 -1
  114. package/dist/collection/components/stzh-buttongroup/stzh-buttongroup.css +4 -1
  115. package/dist/collection/components/stzh-calendar/stzh-calendar.css +5 -3
  116. package/dist/collection/components/stzh-card/stzh-card.css +4 -28
  117. package/dist/collection/components/stzh-card/stzh-card.js +15 -96
  118. package/dist/collection/components/stzh-card/stzh-card.js.map +1 -1
  119. package/dist/collection/components/stzh-card/stzh-card.stories.js +0 -17
  120. package/dist/collection/components/stzh-card-navigation/stzh-card-navigation.css +4 -1
  121. package/dist/collection/components/stzh-card-navigation/stzh-card-navigation.js +3 -2
  122. package/dist/collection/components/stzh-card-navigation/stzh-card-navigation.js.map +1 -1
  123. package/dist/collection/components/stzh-card-searchresult/stzh-card-searchresult.css +53 -36
  124. package/dist/collection/components/stzh-card-searchresult/stzh-card-searchresult.js +72 -44
  125. package/dist/collection/components/stzh-card-searchresult/stzh-card-searchresult.js.map +1 -1
  126. package/dist/collection/components/stzh-card-searchresult/stzh-card-searchresult.stories.js +38 -22
  127. package/dist/collection/components/stzh-card-superteaser/stzh-card-superteaser.css +437 -0
  128. package/dist/collection/components/stzh-card-superteaser/stzh-card-superteaser.e2e.js +31 -0
  129. package/dist/collection/components/stzh-card-superteaser/stzh-card-superteaser.e2e.js.map +1 -0
  130. package/dist/collection/components/stzh-card-superteaser/stzh-card-superteaser.js +591 -0
  131. package/dist/collection/components/stzh-card-superteaser/stzh-card-superteaser.js.map +1 -0
  132. package/dist/collection/components/stzh-card-superteaser/stzh-card-superteaser.localization.js +2 -0
  133. package/dist/collection/components/stzh-card-superteaser/stzh-card-superteaser.localization.js.map +1 -0
  134. package/dist/collection/components/stzh-card-superteaser/stzh-card-superteaser.stories.js +222 -0
  135. package/dist/collection/components/stzh-cardlist/stzh-cardlist.css +12 -4
  136. package/dist/collection/components/stzh-carousel/stzh-carousel.css +4 -1
  137. package/dist/collection/components/stzh-cell/stzh-cell.css +4 -1
  138. package/dist/collection/components/stzh-chart/stzh-chart.css +4 -1
  139. package/dist/collection/components/stzh-checkbox/stzh-checkbox.css +5 -1
  140. package/dist/collection/components/stzh-checkboxgroup/stzh-checkboxgroup.css +4 -1
  141. package/dist/collection/components/stzh-chip/stzh-chip.css +205 -34
  142. package/dist/collection/components/stzh-chip/stzh-chip.js +101 -4
  143. package/dist/collection/components/stzh-chip/stzh-chip.js.map +1 -1
  144. package/dist/collection/components/stzh-chipgroup/stzh-chipgroup.css +4 -1
  145. package/dist/collection/components/stzh-chipselect/stzh-chipselect.css +50 -20
  146. package/dist/collection/components/stzh-chipselect/stzh-chipselect.js +111 -29
  147. package/dist/collection/components/stzh-chipselect/stzh-chipselect.js.map +1 -1
  148. package/dist/collection/components/stzh-clamp/stzh-clamp.css +4 -1
  149. package/dist/collection/components/stzh-contact/stzh-contact.css +11 -6
  150. package/dist/collection/components/stzh-contact/stzh-contact.js +24 -1
  151. package/dist/collection/components/stzh-contact/stzh-contact.js.map +1 -1
  152. package/dist/collection/components/stzh-container/stzh-container.css +4 -1
  153. package/dist/collection/components/stzh-content/stzh-content.css +7 -4
  154. package/dist/collection/components/stzh-cspace/stzh-cspace.css +49 -7
  155. package/dist/collection/components/stzh-cta/stzh-cta.css +26 -37
  156. package/dist/collection/components/stzh-cta/stzh-cta.js +31 -3
  157. package/dist/collection/components/stzh-cta/stzh-cta.js.map +1 -1
  158. package/dist/collection/components/stzh-cta/stzh-cta.stories.js +4 -1
  159. package/dist/collection/components/stzh-datalist/stzh-datalist.css +6 -1
  160. package/dist/collection/components/stzh-datalist/stzh-datalist.stories.js +27 -8
  161. package/dist/collection/components/stzh-datalist-item/stzh-datalist-item.css +7 -2
  162. package/dist/collection/components/stzh-datalist-item/stzh-datalist-item.js +62 -14
  163. package/dist/collection/components/stzh-datalist-item/stzh-datalist-item.js.map +1 -1
  164. package/dist/collection/components/stzh-datalist-item/stzh-datalist-item.stories.js +1 -1
  165. package/dist/collection/components/stzh-datamessagelist/stzh-datamessagelist.css +4 -6
  166. package/dist/collection/components/stzh-datamessagelist/stzh-datamessagelist.stories.js +26 -0
  167. package/dist/collection/components/stzh-datamessagelist-item/stzh-datamessagelist-item.css +30 -17
  168. package/dist/collection/components/stzh-datamessagelist-item/stzh-datamessagelist-item.js +29 -5
  169. package/dist/collection/components/stzh-datamessagelist-item/stzh-datamessagelist-item.js.map +1 -1
  170. package/dist/collection/components/stzh-datatable/stzh-datatable.css +7 -4
  171. package/dist/collection/components/stzh-datepicker/stzh-datepicker.css +22 -4
  172. package/dist/collection/components/stzh-daterange/stzh-daterange.css +256 -0
  173. package/dist/collection/{patterns/appointments/appointments.e2e.js → components/stzh-daterange/stzh-daterange.e2e.js} +3 -3
  174. package/dist/collection/components/stzh-daterange/stzh-daterange.e2e.js.map +1 -0
  175. package/dist/collection/components/stzh-daterange/stzh-daterange.js +178 -0
  176. package/dist/collection/components/stzh-daterange/stzh-daterange.js.map +1 -0
  177. package/dist/collection/components/stzh-daterange/stzh-daterange.localization.js +2 -0
  178. package/dist/collection/components/stzh-daterange/stzh-daterange.localization.js.map +1 -0
  179. package/dist/collection/components/stzh-daterange/stzh-daterange.stories.js +51 -0
  180. package/dist/collection/components/stzh-details/stzh-details.css +4 -1
  181. package/dist/collection/components/stzh-dialog/stzh-dialog.css +4 -1
  182. package/dist/collection/components/stzh-disturber/stzh-disturber.css +4 -1
  183. package/dist/collection/components/stzh-dropdown/stzh-dropdown.css +730 -91
  184. package/dist/collection/components/stzh-dropdown/stzh-dropdown.e2e.js +1 -0
  185. package/dist/collection/components/stzh-dropdown/stzh-dropdown.e2e.js.map +1 -1
  186. package/dist/collection/components/stzh-dropdown/stzh-dropdown.js +115 -8
  187. package/dist/collection/components/stzh-dropdown/stzh-dropdown.js.map +1 -1
  188. package/dist/collection/components/stzh-dropdown/stzh-dropdown.stories.js +17 -0
  189. package/dist/collection/components/stzh-editor/stzh-editor.css +4 -1
  190. package/dist/collection/components/stzh-eventinfo/stzh-eventinfo.css +4 -1
  191. package/dist/collection/components/stzh-fieldset/stzh-fieldset.css +75 -6
  192. package/dist/collection/components/stzh-figure/stzh-figure.css +4 -1
  193. package/dist/collection/components/stzh-flyingfocus/stzh-flyingfocus.css +4 -1
  194. package/dist/collection/components/stzh-footer/stzh-footer.css +4 -1
  195. package/dist/collection/components/stzh-gallery/stzh-gallery.css +4 -1
  196. package/dist/collection/components/stzh-ghettobox/stzh-ghettobox.css +7 -9
  197. package/dist/collection/components/stzh-header/stzh-header.css +22 -17
  198. package/dist/collection/components/stzh-header/stzh-header.js +82 -27
  199. package/dist/collection/components/stzh-header/stzh-header.js.map +1 -1
  200. package/dist/collection/components/stzh-header/stzh-header.stories.js +1 -0
  201. package/dist/collection/components/stzh-heading/stzh-heading.css +26 -1
  202. package/dist/collection/components/stzh-hr/stzh-hr.css +4 -1
  203. package/dist/collection/components/stzh-hspace/stzh-hspace.css +4 -1
  204. package/dist/collection/components/stzh-icon/stzh-icon.css +4 -1
  205. package/dist/collection/components/stzh-iframe/stzh-iframe.css +4 -1
  206. package/dist/collection/components/stzh-iframe/stzh-iframe.js +160 -3
  207. package/dist/collection/components/stzh-iframe/stzh-iframe.js.map +1 -1
  208. package/dist/collection/components/stzh-imagecomparison/stzh-imagecomparison.css +16 -18
  209. package/dist/collection/components/stzh-imagecomparison/stzh-imagecomparison.js +1 -1
  210. package/dist/collection/components/stzh-imagecomparison/stzh-imagecomparison.js.map +1 -1
  211. package/dist/collection/components/stzh-input/stzh-input.css +4 -1
  212. package/dist/collection/components/stzh-invert/stzh-invert.css +4 -1
  213. package/dist/collection/components/stzh-link/stzh-link.css +4 -1
  214. package/dist/collection/components/stzh-link/stzh-link.js +53 -25
  215. package/dist/collection/components/stzh-link/stzh-link.js.map +1 -1
  216. package/dist/collection/components/stzh-link/stzh-link.stories.js +1 -1
  217. package/dist/collection/components/stzh-list/stzh-list.css +4 -1
  218. package/dist/collection/components/stzh-list-item/stzh-list-item.css +4 -1
  219. package/dist/collection/components/stzh-loader/stzh-loader.css +4 -1
  220. package/dist/collection/components/stzh-loadingbar/stzh-loadingbar.css +4 -1
  221. package/dist/collection/components/stzh-menu/stzh-menu.css +4 -1
  222. package/dist/collection/components/stzh-menu-item/stzh-menu-item.css +4 -1
  223. package/dist/collection/components/stzh-menu-item/stzh-menu-item.js +31 -3
  224. package/dist/collection/components/stzh-menu-item/stzh-menu-item.js.map +1 -1
  225. package/dist/collection/components/stzh-menu-item/stzh-menu-item.stories.js +1 -1
  226. package/dist/collection/components/stzh-message/stzh-message.css +4 -1
  227. package/dist/collection/components/stzh-microsite-teaserlist/stzh-microsite-teaserlist.css +4 -1
  228. package/dist/collection/components/stzh-microsite-teaserlist/stzh-microsite-teaserlist.js +2 -2
  229. package/dist/collection/components/stzh-microsite-teaserlist/stzh-microsite-teaserlist.js.map +1 -1
  230. package/dist/collection/components/stzh-monthyearpicker/stzh-monthyearpicker.css +4 -1
  231. package/dist/collection/components/stzh-olmap/stzh-olmap.css +4 -1
  232. package/dist/collection/components/stzh-overlay/stzh-overlay.css +4 -1
  233. package/dist/collection/components/stzh-page-skiplinks/stzh-page-skiplinks.css +4 -1
  234. package/dist/collection/components/stzh-pagebottom/stzh-pagebottom.css +5 -2
  235. package/dist/collection/components/stzh-pagecontent/stzh-pagecontent.css +4 -1
  236. package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.css +4 -1
  237. package/dist/collection/components/stzh-pagetitle-hero/stzh-pagetitle-hero.css +4 -1
  238. package/dist/collection/components/stzh-pagination/stzh-pagination.css +4 -1
  239. package/dist/collection/components/stzh-panorama/stzh-panorama.css +4 -1
  240. package/dist/collection/components/stzh-popover/stzh-popover.css +4 -1
  241. package/dist/collection/components/stzh-print/stzh-print.css +4 -1
  242. package/dist/collection/components/stzh-progressbar/stzh-progressbar.css +4 -1
  243. package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.css +4 -1
  244. package/dist/collection/components/stzh-radio/stzh-radio.css +5 -1
  245. package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.css +4 -1
  246. package/dist/collection/components/stzh-ratio/stzh-ratio.css +4 -1
  247. package/dist/collection/components/stzh-readspeaker/stzh-readspeaker.css +4 -1
  248. package/dist/collection/components/stzh-richtext/stzh-richtext.css +10 -7
  249. package/dist/collection/components/stzh-row/stzh-row.css +4 -1
  250. package/dist/collection/components/stzh-saptcha/stzh-saptcha.css +4 -1
  251. package/dist/collection/components/stzh-scrollup/stzh-scrollup.css +4 -1
  252. package/dist/collection/components/stzh-search/stzh-search.css +95 -22
  253. package/dist/collection/components/stzh-search/stzh-search.js +190 -68
  254. package/dist/collection/components/stzh-search/stzh-search.js.map +1 -1
  255. package/dist/collection/components/stzh-search/stzh-search.localization.js.map +1 -1
  256. package/dist/collection/components/stzh-search/stzh-search.stories.js +111 -39
  257. package/dist/collection/components/stzh-section/stzh-section.css +4 -1
  258. package/dist/collection/components/stzh-share/stzh-share.css +4 -1
  259. package/dist/collection/components/stzh-show/stzh-show.css +4 -1
  260. package/dist/collection/components/stzh-show/stzh-show.js +0 -1
  261. package/dist/collection/components/stzh-show/stzh-show.js.map +1 -1
  262. package/dist/collection/components/stzh-sitemap/stzh-sitemap.css +4 -1
  263. package/dist/collection/components/stzh-skin-portal-mitwirken/stzh-skin-portal-mitwirken.css +29 -20
  264. package/dist/collection/components/stzh-skin-storybook-preview/stzh-skin-storybook-preview.css +13 -10
  265. package/dist/collection/components/stzh-skiplink/stzh-skiplink.css +4 -1
  266. package/dist/collection/components/stzh-sortable/stzh-sortable.css +4 -1
  267. package/dist/collection/components/stzh-space/stzh-space.css +4 -1
  268. package/dist/collection/components/stzh-status/stzh-status.css +4 -1
  269. package/dist/collection/components/stzh-sticky/stzh-sticky.css +4 -1
  270. package/dist/collection/components/stzh-sticky-actions/stzh-sticky-actions.css +4 -1
  271. package/dist/collection/components/stzh-table/stzh-table.css +7 -4
  272. package/dist/collection/components/stzh-tag/stzh-tag.css +4 -1
  273. package/dist/collection/components/stzh-tag/stzh-tag.js +3 -2
  274. package/dist/collection/components/stzh-tag/stzh-tag.js.map +1 -1
  275. package/dist/collection/components/stzh-text/stzh-text.css +9 -1
  276. package/dist/collection/components/stzh-textandimage/stzh-textandimage.css +4 -1
  277. package/dist/collection/components/stzh-timeline/stzh-timeline.css +4 -1
  278. package/dist/collection/components/stzh-timeline-item/stzh-timeline-item.css +4 -1
  279. package/dist/collection/components/stzh-timepicker/stzh-timepicker.css +4 -1
  280. package/dist/collection/components/stzh-toast/stzh-toast.css +4 -1
  281. package/dist/collection/components/stzh-toastbar/stzh-toastbar.css +4 -1
  282. package/dist/collection/components/stzh-toggle/stzh-toggle.css +4 -1
  283. package/dist/collection/components/stzh-tooltip/stzh-tooltip.css +4 -1
  284. package/dist/collection/components/stzh-twocolumns/stzh-twocolumns.css +4 -1
  285. package/dist/collection/components/stzh-upload/stzh-upload.css +4 -1
  286. package/dist/collection/components/stzh-vbz-carousel/stzh-vbz-carousel.css +8 -5
  287. package/dist/collection/components/stzh-vbz-carousel/stzh-vbz-carousel.js.map +1 -1
  288. package/dist/collection/components/stzh-vbz-linechip/stzh-vbz-linechip.css +4 -1
  289. package/dist/collection/components/stzh-vbz-majorticker/stzh-vbz-majorticker.css +4 -1
  290. package/dist/collection/components/stzh-vbz-ticker/stzh-vbz-ticker.css +4 -1
  291. package/dist/collection/components/stzh-visuallyhidden/stzh-visuallyhidden.css +4 -1
  292. package/dist/collection/components/stzh-vspace/stzh-vspace.css +4 -1
  293. package/dist/collection/components/stzh-youtube/stzh-youtube.css +4 -1
  294. package/dist/collection/global/js/helpers/autofocus.js +36 -11
  295. package/dist/collection/global/js/script.js +2 -0
  296. package/dist/collection/index.js.map +1 -1
  297. package/dist/components/index.js +38 -13
  298. package/dist/components/index.js.map +1 -1
  299. package/dist/components/index2.js.map +1 -1
  300. package/dist/components/stzh-actions.js.map +1 -1
  301. package/dist/components/stzh-appointments.js +11 -9
  302. package/dist/components/stzh-appointments.js.map +1 -1
  303. package/dist/components/stzh-breadcrumb2.js +11 -3
  304. package/dist/components/stzh-breadcrumb2.js.map +1 -1
  305. package/dist/components/stzh-button2.js +9 -1
  306. package/dist/components/stzh-button2.js.map +1 -1
  307. package/dist/components/stzh-calendar2.js +1 -1
  308. package/dist/components/stzh-calendar2.js.map +1 -1
  309. package/dist/components/stzh-card-navigation.js +2 -1
  310. package/dist/components/stzh-card-navigation.js.map +1 -1
  311. package/dist/components/stzh-card-searchresult.js +73 -47
  312. package/dist/components/stzh-card-searchresult.js.map +1 -1
  313. package/dist/components/stzh-card-superteaser.d.ts +11 -0
  314. package/dist/components/stzh-card-superteaser.js +256 -0
  315. package/dist/components/stzh-card-superteaser.js.map +1 -0
  316. package/dist/components/stzh-card2.js +15 -23
  317. package/dist/components/stzh-card2.js.map +1 -1
  318. package/dist/components/stzh-cardlist2.js +1 -1
  319. package/dist/components/stzh-cardlist2.js.map +1 -1
  320. package/dist/components/stzh-checkbox.js +1 -1
  321. package/dist/components/stzh-checkbox.js.map +1 -1
  322. package/dist/components/stzh-chip2.js +13 -4
  323. package/dist/components/stzh-chip2.js.map +1 -1
  324. package/dist/components/stzh-chipselect2.js +78 -37
  325. package/dist/components/stzh-chipselect2.js.map +1 -1
  326. package/dist/components/stzh-contact.js +8 -2
  327. package/dist/components/stzh-contact.js.map +1 -1
  328. package/dist/components/stzh-content.js +1 -1
  329. package/dist/components/stzh-content.js.map +1 -1
  330. package/dist/components/stzh-cspace.js +1 -1
  331. package/dist/components/stzh-cspace.js.map +1 -1
  332. package/dist/components/stzh-cta.js +10 -2
  333. package/dist/components/stzh-cta.js.map +1 -1
  334. package/dist/components/stzh-datalist-item2.js +26 -15
  335. package/dist/components/stzh-datalist-item2.js.map +1 -1
  336. package/dist/components/stzh-datalist2.js +1 -1
  337. package/dist/components/stzh-datalist2.js.map +1 -1
  338. package/dist/components/stzh-datamessagelist-item.js +12 -5
  339. package/dist/components/stzh-datamessagelist-item.js.map +1 -1
  340. package/dist/components/stzh-datamessagelist.js +1 -1
  341. package/dist/components/stzh-datamessagelist.js.map +1 -1
  342. package/dist/components/stzh-datatable.js +1 -1
  343. package/dist/components/stzh-datatable.js.map +1 -1
  344. package/dist/components/stzh-datepicker2.js +1 -1
  345. package/dist/components/stzh-datepicker2.js.map +1 -1
  346. package/dist/components/stzh-daterange.d.ts +11 -0
  347. package/dist/components/stzh-daterange.js +143 -0
  348. package/dist/components/stzh-daterange.js.map +1 -0
  349. package/dist/components/stzh-dropdown2.js +17 -4
  350. package/dist/components/stzh-dropdown2.js.map +1 -1
  351. package/dist/components/stzh-fieldset.js +1 -1
  352. package/dist/components/stzh-fieldset.js.map +1 -1
  353. package/dist/components/stzh-ghettobox2.js +1 -1
  354. package/dist/components/stzh-ghettobox2.js.map +1 -1
  355. package/dist/components/stzh-header.js +58 -26
  356. package/dist/components/stzh-header.js.map +1 -1
  357. package/dist/components/stzh-heading2.js +1 -1
  358. package/dist/components/stzh-heading2.js.map +1 -1
  359. package/dist/components/stzh-iframe2.js +19 -3
  360. package/dist/components/stzh-iframe2.js.map +1 -1
  361. package/dist/components/stzh-imagecomparison.js +2 -2
  362. package/dist/components/stzh-imagecomparison.js.map +1 -1
  363. package/dist/components/stzh-input2.js.map +1 -1
  364. package/dist/components/stzh-link2.js +12 -4
  365. package/dist/components/stzh-link2.js.map +1 -1
  366. package/dist/components/stzh-menu-item2.js +10 -2
  367. package/dist/components/stzh-menu-item2.js.map +1 -1
  368. package/dist/components/stzh-message.js +1 -92
  369. package/dist/components/stzh-message.js.map +1 -1
  370. package/dist/{esm/stzh-message.entry.js → components/stzh-message2.js} +50 -9
  371. package/dist/components/stzh-message2.js.map +1 -0
  372. package/dist/components/stzh-microsite-teaserlist.js +18 -24
  373. package/dist/components/stzh-microsite-teaserlist.js.map +1 -1
  374. package/dist/components/stzh-pagebottom.js +1 -1
  375. package/dist/components/stzh-pagebottom.js.map +1 -1
  376. package/dist/components/stzh-radio2.js +1 -1
  377. package/dist/components/stzh-radio2.js.map +1 -1
  378. package/dist/components/stzh-richtext2.js +1 -1
  379. package/dist/components/stzh-richtext2.js.map +1 -1
  380. package/dist/components/stzh-search.js +138 -80
  381. package/dist/components/stzh-search.js.map +1 -1
  382. package/dist/components/stzh-show2.js +0 -1
  383. package/dist/components/stzh-show2.js.map +1 -1
  384. package/dist/components/stzh-skin-portal-mitwirken.js +1 -1
  385. package/dist/components/stzh-skin-portal-mitwirken.js.map +1 -1
  386. package/dist/components/stzh-skin-storybook-preview.js +1 -1
  387. package/dist/components/stzh-skin-storybook-preview.js.map +1 -1
  388. package/dist/components/stzh-table.js +1 -1
  389. package/dist/components/stzh-table.js.map +1 -1
  390. package/dist/components/stzh-tag2.js +2 -1
  391. package/dist/components/stzh-tag2.js.map +1 -1
  392. package/dist/components/stzh-text2.js +1 -1
  393. package/dist/components/stzh-text2.js.map +1 -1
  394. package/dist/components/stzh-vbz-carousel.js +1 -1
  395. package/dist/components/stzh-vbz-carousel.js.map +1 -1
  396. package/dist/esm/{app-globals-3c171b79.js → app-globals-d7eff0a5.js} +39 -14
  397. package/dist/esm/app-globals-d7eff0a5.js.map +1 -0
  398. package/dist/esm/index-e3050b18.js +20 -16
  399. package/dist/esm/index.js.map +1 -1
  400. package/dist/esm/loader.js +2 -2
  401. package/dist/esm/stzh-actions.entry.js.map +1 -1
  402. package/dist/esm/stzh-appointments.entry.js +11 -8
  403. package/dist/esm/stzh-appointments.entry.js.map +1 -1
  404. package/dist/esm/stzh-badge_3.entry.js +9 -1
  405. package/dist/esm/stzh-badge_3.entry.js.map +1 -1
  406. package/dist/esm/stzh-breadcrumb_2.entry.js +13 -4
  407. package/dist/esm/stzh-breadcrumb_2.entry.js.map +1 -1
  408. package/dist/esm/stzh-calendar.entry.js +1 -1
  409. package/dist/esm/stzh-calendar.entry.js.map +1 -1
  410. package/dist/esm/stzh-card-navigation.entry.js +2 -1
  411. package/dist/esm/stzh-card-navigation.entry.js.map +1 -1
  412. package/dist/esm/stzh-card-searchresult.entry.js +21 -32
  413. package/dist/esm/stzh-card-searchresult.entry.js.map +1 -1
  414. package/dist/esm/stzh-card-superteaser.entry.js +142 -0
  415. package/dist/esm/stzh-card-superteaser.entry.js.map +1 -0
  416. package/dist/esm/stzh-card_3.entry.js +85 -45
  417. package/dist/esm/stzh-card_3.entry.js.map +1 -1
  418. package/dist/esm/stzh-checkbox.entry.js +1 -1
  419. package/dist/esm/stzh-checkbox.entry.js.map +1 -1
  420. package/dist/esm/stzh-chip.entry.js +9 -4
  421. package/dist/esm/stzh-chip.entry.js.map +1 -1
  422. package/dist/esm/stzh-components.js +2 -2
  423. package/dist/esm/stzh-contact.entry.js +7 -2
  424. package/dist/esm/stzh-contact.entry.js.map +1 -1
  425. package/dist/esm/stzh-content.entry.js +1 -1
  426. package/dist/esm/stzh-content.entry.js.map +1 -1
  427. package/dist/esm/stzh-cspace.entry.js +1 -1
  428. package/dist/esm/stzh-cspace.entry.js.map +1 -1
  429. package/dist/esm/stzh-cta.entry.js +10 -2
  430. package/dist/esm/stzh-cta.entry.js.map +1 -1
  431. package/dist/esm/stzh-datalist_2.entry.js +26 -16
  432. package/dist/esm/stzh-datalist_2.entry.js.map +1 -1
  433. package/dist/esm/stzh-datamessagelist-item.entry.js +11 -5
  434. package/dist/esm/stzh-datamessagelist-item.entry.js.map +1 -1
  435. package/dist/esm/stzh-datamessagelist.entry.js +1 -1
  436. package/dist/esm/stzh-datamessagelist.entry.js.map +1 -1
  437. package/dist/esm/stzh-datatable.entry.js +1 -1
  438. package/dist/esm/stzh-datatable.entry.js.map +1 -1
  439. package/dist/esm/stzh-datepicker_3.entry.js +2 -2
  440. package/dist/esm/stzh-datepicker_3.entry.js.map +1 -1
  441. package/dist/esm/stzh-daterange.entry.js +103 -0
  442. package/dist/esm/stzh-daterange.entry.js.map +1 -0
  443. package/dist/esm/stzh-details_2.entry.js +208 -0
  444. package/dist/esm/stzh-details_2.entry.js.map +1 -0
  445. package/dist/esm/stzh-dropdown.entry.js +13 -4
  446. package/dist/esm/stzh-dropdown.entry.js.map +1 -1
  447. package/dist/esm/stzh-fieldset.entry.js +1 -1
  448. package/dist/esm/stzh-fieldset.entry.js.map +1 -1
  449. package/dist/esm/stzh-ghettobox_3.entry.js +2 -3
  450. package/dist/esm/stzh-ghettobox_3.entry.js.map +1 -1
  451. package/dist/esm/stzh-header.entry.js +56 -26
  452. package/dist/esm/stzh-header.entry.js.map +1 -1
  453. package/dist/esm/stzh-heading.entry.js +1 -1
  454. package/dist/esm/stzh-heading.entry.js.map +1 -1
  455. package/dist/esm/stzh-iframe.entry.js +11 -3
  456. package/dist/esm/stzh-iframe.entry.js.map +1 -1
  457. package/dist/esm/stzh-imagecomparison.entry.js +2 -2
  458. package/dist/esm/stzh-imagecomparison.entry.js.map +1 -1
  459. package/dist/esm/stzh-input.entry.js.map +1 -1
  460. package/dist/esm/stzh-link.entry.js +11 -3
  461. package/dist/esm/stzh-link.entry.js.map +1 -1
  462. package/dist/esm/stzh-menu_2.entry.js +10 -2
  463. package/dist/esm/stzh-menu_2.entry.js.map +1 -1
  464. package/dist/esm/stzh-microsite-teaserlist.entry.js +2 -2
  465. package/dist/esm/stzh-microsite-teaserlist.entry.js.map +1 -1
  466. package/dist/esm/stzh-pagebottom.entry.js +1 -1
  467. package/dist/esm/stzh-pagebottom.entry.js.map +1 -1
  468. package/dist/esm/stzh-popover_2.entry.js +1 -1
  469. package/dist/esm/stzh-popover_2.entry.js.map +1 -1
  470. package/dist/esm/stzh-search.entry.js +100 -67
  471. package/dist/esm/stzh-search.entry.js.map +1 -1
  472. package/dist/esm/stzh-skin-portal-mitwirken.entry.js +1 -1
  473. package/dist/esm/stzh-skin-portal-mitwirken.entry.js.map +1 -1
  474. package/dist/esm/stzh-skin-storybook-preview.entry.js +1 -1
  475. package/dist/esm/stzh-skin-storybook-preview.entry.js.map +1 -1
  476. package/dist/esm/stzh-table.entry.js +1 -1
  477. package/dist/esm/stzh-table.entry.js.map +1 -1
  478. package/dist/esm/stzh-vbz-carousel.entry.js +1 -1
  479. package/dist/esm/stzh-vbz-carousel.entry.js.map +1 -1
  480. package/dist/stzh-components/assets/fonts/HelveticaNeueLTW05_66MediumIt.woff2 +0 -0
  481. package/dist/stzh-components/assets/fonts.css +7 -0
  482. package/dist/stzh-components/assets/i18n/de.json +12 -5
  483. package/dist/stzh-components/assets/i18n/en.json +12 -5
  484. package/dist/stzh-components/index.esm.js.map +1 -1
  485. package/dist/stzh-components/p-05e8c18d.js +2 -0
  486. package/dist/stzh-components/p-05e8c18d.js.map +1 -0
  487. package/dist/stzh-components/{p-3ca4f71a.entry.js → p-069e181f.entry.js} +2 -2
  488. package/dist/stzh-components/p-069e181f.entry.js.map +1 -0
  489. package/dist/stzh-components/p-0aabd857.entry.js +2 -0
  490. package/dist/stzh-components/p-0aabd857.entry.js.map +1 -0
  491. package/dist/stzh-components/p-0bf70420.entry.js +2 -0
  492. package/dist/stzh-components/p-0bf70420.entry.js.map +1 -0
  493. package/dist/stzh-components/p-100d4052.entry.js +2 -0
  494. package/dist/stzh-components/p-100d4052.entry.js.map +1 -0
  495. package/dist/stzh-components/p-1be90089.entry.js +2 -0
  496. package/dist/stzh-components/p-1be90089.entry.js.map +1 -0
  497. package/dist/stzh-components/p-206ec94f.entry.js +2 -0
  498. package/dist/stzh-components/p-206ec94f.entry.js.map +1 -0
  499. package/dist/stzh-components/p-2773b08f.entry.js +2 -0
  500. package/dist/stzh-components/p-2773b08f.entry.js.map +1 -0
  501. package/dist/stzh-components/{p-53828193.entry.js → p-2ca82cdb.entry.js} +2 -2
  502. package/dist/stzh-components/{p-53828193.entry.js.map → p-2ca82cdb.entry.js.map} +1 -1
  503. package/dist/stzh-components/p-3c2d9cff.entry.js +2 -0
  504. package/dist/stzh-components/p-3c2d9cff.entry.js.map +1 -0
  505. package/dist/stzh-components/p-3ce84a88.entry.js +2 -0
  506. package/dist/stzh-components/p-3ce84a88.entry.js.map +1 -0
  507. package/dist/stzh-components/{p-e63dfe12.entry.js → p-3fa1c5a4.entry.js} +2 -2
  508. package/dist/stzh-components/p-3fa1c5a4.entry.js.map +1 -0
  509. package/dist/stzh-components/p-400f2932.entry.js +2 -0
  510. package/dist/stzh-components/p-400f2932.entry.js.map +1 -0
  511. package/dist/stzh-components/p-4db427d5.entry.js +2 -0
  512. package/dist/stzh-components/p-4db427d5.entry.js.map +1 -0
  513. package/dist/stzh-components/{p-bd494b47.entry.js → p-523c0bb1.entry.js} +2 -2
  514. package/dist/stzh-components/p-523c0bb1.entry.js.map +1 -0
  515. package/dist/stzh-components/p-5d4a2df0.entry.js +2 -0
  516. package/dist/stzh-components/{p-10fb3950.entry.js.map → p-5d4a2df0.entry.js.map} +1 -1
  517. package/dist/stzh-components/{p-bb87a6e2.entry.js → p-68d33cd3.entry.js} +2 -2
  518. package/dist/stzh-components/p-68d33cd3.entry.js.map +1 -0
  519. package/dist/stzh-components/p-6fdc4c74.entry.js +2 -0
  520. package/dist/stzh-components/p-6fdc4c74.entry.js.map +1 -0
  521. package/dist/stzh-components/p-722b9e40.entry.js +2 -0
  522. package/dist/stzh-components/p-722b9e40.entry.js.map +1 -0
  523. package/dist/stzh-components/p-72c375c7.entry.js +2 -0
  524. package/dist/stzh-components/p-72c375c7.entry.js.map +1 -0
  525. package/dist/stzh-components/p-836c4cdf.entry.js +2 -0
  526. package/dist/stzh-components/p-836c4cdf.entry.js.map +1 -0
  527. package/dist/stzh-components/{p-cde04c36.entry.js → p-8f1dbd3b.entry.js} +2 -2
  528. package/dist/stzh-components/{p-cde04c36.entry.js.map → p-8f1dbd3b.entry.js.map} +1 -1
  529. package/dist/stzh-components/{p-8cc09e67.entry.js → p-94947ab0.entry.js} +2 -2
  530. package/dist/stzh-components/p-94947ab0.entry.js.map +1 -0
  531. package/dist/stzh-components/{p-e7ac738e.entry.js → p-9b43127f.entry.js} +2 -2
  532. package/dist/stzh-components/{p-e7ac738e.entry.js.map → p-9b43127f.entry.js.map} +1 -1
  533. package/dist/stzh-components/p-9f9d53a0.entry.js +2 -0
  534. package/dist/stzh-components/p-9f9d53a0.entry.js.map +1 -0
  535. package/dist/stzh-components/p-accbac61.entry.js +2 -0
  536. package/dist/stzh-components/p-accbac61.entry.js.map +1 -0
  537. package/dist/stzh-components/p-b22876e5.entry.js +2 -0
  538. package/dist/stzh-components/p-b22876e5.entry.js.map +1 -0
  539. package/dist/stzh-components/p-ba32d7ef.entry.js +2 -0
  540. package/dist/stzh-components/p-ba32d7ef.entry.js.map +1 -0
  541. package/dist/stzh-components/p-bd2a2c30.entry.js +2 -0
  542. package/dist/stzh-components/p-bd2a2c30.entry.js.map +1 -0
  543. package/dist/stzh-components/p-beec9a0a.entry.js.map +1 -1
  544. package/dist/stzh-components/p-c31b1590.entry.js +9 -0
  545. package/dist/stzh-components/{p-b4ce8e10.entry.js.map → p-c31b1590.entry.js.map} +1 -1
  546. package/dist/stzh-components/{p-56b6eab9.entry.js → p-cff05968.entry.js} +2 -2
  547. package/dist/stzh-components/p-cff05968.entry.js.map +1 -0
  548. package/dist/stzh-components/p-d028e43d.entry.js +2 -0
  549. package/dist/stzh-components/{p-1252aa01.entry.js.map → p-d028e43d.entry.js.map} +1 -1
  550. package/dist/stzh-components/p-ddfb8df0.entry.js +2 -0
  551. package/dist/stzh-components/p-ddfb8df0.entry.js.map +1 -0
  552. package/dist/stzh-components/p-dff1ce7c.entry.js +2 -0
  553. package/dist/stzh-components/p-dff1ce7c.entry.js.map +1 -0
  554. package/dist/stzh-components/{p-17de3017.entry.js → p-e5cfdb8a.entry.js} +2 -2
  555. package/dist/stzh-components/{p-17de3017.entry.js.map → p-e5cfdb8a.entry.js.map} +1 -1
  556. package/dist/stzh-components/p-eb79f3ed.entry.js +2 -0
  557. package/dist/stzh-components/p-eb79f3ed.entry.js.map +1 -0
  558. package/dist/stzh-components/p-f3d2dc46.entry.js +2 -0
  559. package/dist/stzh-components/{p-3e1ae32f.entry.js.map → p-f3d2dc46.entry.js.map} +1 -1
  560. package/dist/stzh-components/p-f50e0102.entry.js +2 -0
  561. package/dist/stzh-components/p-f50e0102.entry.js.map +1 -0
  562. package/dist/stzh-components/p-f5809e5f.entry.js.map +1 -1
  563. package/dist/stzh-components/p-f5821678.entry.js +2 -0
  564. package/dist/stzh-components/p-f5821678.entry.js.map +1 -0
  565. package/dist/stzh-components/stzh-components.css +1 -1
  566. package/dist/stzh-components/stzh-components.esm.js +1 -1
  567. package/dist/stzh-components/stzh-components.esm.js.map +1 -1
  568. package/dist/types/components/stzh-actions/stzh-actions.d.ts +1 -1
  569. package/dist/types/components/stzh-breadcrumb/stzh-breadcrumb.d.ts +5 -1
  570. package/dist/types/components/stzh-button/stzh-button.d.ts +9 -7
  571. package/dist/types/components/stzh-card/stzh-card.d.ts +1 -5
  572. package/dist/types/components/stzh-card-searchresult/stzh-card-searchresult.d.ts +11 -9
  573. package/dist/types/components/stzh-card-superteaser/stzh-card-superteaser.d.ts +75 -0
  574. package/dist/types/components/stzh-card-superteaser/stzh-card-superteaser.localization.d.ts +2 -0
  575. package/dist/types/components/stzh-chip/stzh-chip.d.ts +8 -0
  576. package/dist/types/components/stzh-chipselect/stzh-chipselect.d.ts +8 -4
  577. package/dist/types/components/stzh-contact/stzh-contact.d.ts +2 -0
  578. package/dist/types/components/stzh-cta/stzh-cta.d.ts +6 -3
  579. package/dist/types/components/stzh-datalist-item/stzh-datalist-item.d.ts +7 -2
  580. package/dist/types/components/stzh-datamessagelist-item/stzh-datamessagelist-item.d.ts +2 -0
  581. package/dist/types/components/stzh-daterange/stzh-daterange.d.ts +26 -0
  582. package/dist/types/components/stzh-daterange/stzh-daterange.localization.d.ts +9 -0
  583. package/dist/types/components/stzh-dropdown/stzh-dropdown.d.ts +11 -3
  584. package/dist/types/components/stzh-header/stzh-header.d.ts +9 -4
  585. package/dist/types/components/stzh-iframe/stzh-iframe.d.ts +29 -1
  586. package/dist/types/components/stzh-link/stzh-link.d.ts +10 -7
  587. package/dist/types/components/stzh-menu-item/stzh-menu-item.d.ts +5 -2
  588. package/dist/types/components/stzh-search/stzh-search.d.ts +15 -0
  589. package/dist/types/components/stzh-search/stzh-search.localization.d.ts +1 -1
  590. package/dist/types/components.d.ts +561 -79
  591. package/dist/types/index.d.ts +56 -5
  592. package/dist/vscode-data.json +418 -27
  593. package/package.json +1 -1
  594. package/dist/cjs/app-globals-0cbebaa1.js.map +0 -1
  595. package/dist/cjs/stzh-details.cjs.entry.js +0 -162
  596. package/dist/cjs/stzh-details.cjs.entry.js.map +0 -1
  597. package/dist/cjs/stzh-message.cjs.entry.js.map +0 -1
  598. package/dist/collection/components/stzh-card-searchresult/stzh-card-searchresult.localization.js +0 -2
  599. package/dist/collection/components/stzh-card-searchresult/stzh-card-searchresult.localization.js.map +0 -1
  600. package/dist/collection/patterns/appointments/appointments.e2e.js.map +0 -1
  601. package/dist/esm/app-globals-3c171b79.js.map +0 -1
  602. package/dist/esm/stzh-details.entry.js +0 -158
  603. package/dist/esm/stzh-details.entry.js.map +0 -1
  604. package/dist/esm/stzh-message.entry.js.map +0 -1
  605. package/dist/stzh-components/p-10fb3950.entry.js +0 -2
  606. package/dist/stzh-components/p-1252aa01.entry.js +0 -2
  607. package/dist/stzh-components/p-161ae3d1.entry.js +0 -2
  608. package/dist/stzh-components/p-161ae3d1.entry.js.map +0 -1
  609. package/dist/stzh-components/p-18015613.entry.js +0 -2
  610. package/dist/stzh-components/p-18015613.entry.js.map +0 -1
  611. package/dist/stzh-components/p-38d64313.entry.js +0 -2
  612. package/dist/stzh-components/p-38d64313.entry.js.map +0 -1
  613. package/dist/stzh-components/p-39fa126d.js +0 -2
  614. package/dist/stzh-components/p-39fa126d.js.map +0 -1
  615. package/dist/stzh-components/p-3ca4f71a.entry.js.map +0 -1
  616. package/dist/stzh-components/p-3e1ae32f.entry.js +0 -2
  617. package/dist/stzh-components/p-43cc5c4d.entry.js +0 -2
  618. package/dist/stzh-components/p-43cc5c4d.entry.js.map +0 -1
  619. package/dist/stzh-components/p-4cff0c86.entry.js +0 -2
  620. package/dist/stzh-components/p-4cff0c86.entry.js.map +0 -1
  621. package/dist/stzh-components/p-56b6eab9.entry.js.map +0 -1
  622. package/dist/stzh-components/p-5e48450d.entry.js +0 -2
  623. package/dist/stzh-components/p-5e48450d.entry.js.map +0 -1
  624. package/dist/stzh-components/p-62b88844.entry.js +0 -2
  625. package/dist/stzh-components/p-62b88844.entry.js.map +0 -1
  626. package/dist/stzh-components/p-69c1826d.entry.js +0 -2
  627. package/dist/stzh-components/p-69c1826d.entry.js.map +0 -1
  628. package/dist/stzh-components/p-7091d652.entry.js +0 -2
  629. package/dist/stzh-components/p-7091d652.entry.js.map +0 -1
  630. package/dist/stzh-components/p-7658bb41.entry.js +0 -2
  631. package/dist/stzh-components/p-7658bb41.entry.js.map +0 -1
  632. package/dist/stzh-components/p-76902b7c.entry.js +0 -2
  633. package/dist/stzh-components/p-76902b7c.entry.js.map +0 -1
  634. package/dist/stzh-components/p-79a6b95b.entry.js +0 -2
  635. package/dist/stzh-components/p-79a6b95b.entry.js.map +0 -1
  636. package/dist/stzh-components/p-8cc09e67.entry.js.map +0 -1
  637. package/dist/stzh-components/p-92285350.entry.js +0 -2
  638. package/dist/stzh-components/p-92285350.entry.js.map +0 -1
  639. package/dist/stzh-components/p-93e0ff47.entry.js +0 -2
  640. package/dist/stzh-components/p-93e0ff47.entry.js.map +0 -1
  641. package/dist/stzh-components/p-b4ce8e10.entry.js +0 -9
  642. package/dist/stzh-components/p-ba37488e.entry.js +0 -2
  643. package/dist/stzh-components/p-ba37488e.entry.js.map +0 -1
  644. package/dist/stzh-components/p-bb87a6e2.entry.js.map +0 -1
  645. package/dist/stzh-components/p-bd494b47.entry.js.map +0 -1
  646. package/dist/stzh-components/p-cf96dafb.entry.js +0 -2
  647. package/dist/stzh-components/p-cf96dafb.entry.js.map +0 -1
  648. package/dist/stzh-components/p-d2ce78d1.entry.js +0 -2
  649. package/dist/stzh-components/p-d2ce78d1.entry.js.map +0 -1
  650. package/dist/stzh-components/p-ddbf653e.entry.js +0 -2
  651. package/dist/stzh-components/p-ddbf653e.entry.js.map +0 -1
  652. package/dist/stzh-components/p-e4f62382.entry.js +0 -2
  653. package/dist/stzh-components/p-e4f62382.entry.js.map +0 -1
  654. package/dist/stzh-components/p-e63dfe12.entry.js.map +0 -1
  655. package/dist/stzh-components/p-e6785bb1.entry.js +0 -2
  656. package/dist/stzh-components/p-e6785bb1.entry.js.map +0 -1
  657. package/dist/stzh-components/p-ef849bb1.entry.js +0 -2
  658. package/dist/stzh-components/p-ef849bb1.entry.js.map +0 -1
  659. package/dist/stzh-components/p-f8ec1488.entry.js +0 -2
  660. package/dist/stzh-components/p-f8ec1488.entry.js.map +0 -1
  661. package/dist/stzh-components/p-fb1d20da.entry.js +0 -2
  662. package/dist/stzh-components/p-fb1d20da.entry.js.map +0 -1
  663. package/dist/types/components/stzh-card-searchresult/stzh-card-searchresult.localization.d.ts +0 -2
@@ -4,7 +4,7 @@ import { h as hasSlot } from './utils-54aead01.js';
4
4
  import { S as StzhInputDescription } from './stzh-input-description-766446dc.js';
5
5
  import { c as camelCase } from './string-utils-e252977e.js';
6
6
 
7
- const stzhDatepickerCss = ".sc-stzh-datepicker-h{font-family:var(--stzh-font-family-medium);font-weight:var(--stzh-font-weight-medium);font-style:var(--stzh-font-style-medium);color:var(--stzh-base-color);box-sizing:border-box;display:block}[hidden].sc-stzh-datepicker-h{display:none}.sc-stzh-datepicker-h::-moz-selection{color:var(--stzh-selection-color);background-color:var(--stzh-selection-background-color)}.sc-stzh-datepicker-h::selection{color:var(--stzh-selection-color);background-color:var(--stzh-selection-background-color)}.sc-stzh-datepicker-h *.sc-stzh-datepicker,.sc-stzh-datepicker-h *.sc-stzh-datepicker::before,.sc-stzh-datepicker-h *.sc-stzh-datepicker::after{box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness);-webkit-text-decoration-skip-ink:var(--stzh-link-text-decoration-skip-ink);text-decoration-skip-ink:var(--stzh-link-text-decoration-skip-ink)}.sc-stzh-datepicker-h .has-focus.sc-stzh-datepicker{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.125rem}.sc-stzh-datepicker-h .stzh-fylingfocus-focused.sc-stzh-datepicker{outline-style:none !important}.sc-stzh-datepicker-h .stzh-fylingfocus-focused.sc-stzh-datepicker::-moz-focus-inner{border:0 !important}.sc-stzh-datepicker-h{width:100%}[inline].sc-stzh-datepicker-h:not([inline=false]){width:var(--stzh-calendar-width)}.stzh-datepicker__popover.sc-stzh-datepicker{--width:auto}.stzh-datepicker__calendar.is-inline.sc-stzh-datepicker{width:100%}.stzh-datepicker__actions.sc-stzh-datepicker{display:flex;justify-content:flex-end}.stzh-datepicker__actions.sc-stzh-datepicker:not(:empty){margin-right:var(--stzh-space-small)}.stzh-datepicker--has-action.sc-stzh-datepicker .stzh-datepicker__popover.sc-stzh-datepicker{--content-padding:0 0 var(--stzh-space-small) 0}";
7
+ const stzhDatepickerCss = ".sc-stzh-datepicker-h{font-family:var(--stzh-font-family-medium);font-weight:var(--stzh-font-weight-medium);font-style:var(--stzh-font-style-medium);color:var(--stzh-base-color);box-sizing:border-box;display:block}[hidden].sc-stzh-datepicker-h{display:none}.sc-stzh-datepicker-h::-moz-selection{color:var(--stzh-selection-color);background-color:var(--stzh-selection-background-color)}.sc-stzh-datepicker-h::selection{color:var(--stzh-selection-color);background-color:var(--stzh-selection-background-color)}.sc-stzh-datepicker-h *.sc-stzh-datepicker,.sc-stzh-datepicker-h *.sc-stzh-datepicker::before,.sc-stzh-datepicker-h *.sc-stzh-datepicker::after{box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness);-webkit-text-decoration-skip-ink:var(--stzh-link-text-decoration-skip-ink);text-decoration-skip-ink:var(--stzh-link-text-decoration-skip-ink)}.sc-stzh-datepicker-h .has-focus.sc-stzh-datepicker{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.125rem}.sc-stzh-datepicker-h .stzh-fylingfocus-focused.sc-stzh-datepicker{outline-style:none !important}.sc-stzh-datepicker-h .stzh-fylingfocus-focused.sc-stzh-datepicker::-moz-focus-inner{border:0 !important}.sc-stzh-datepicker-h{--calendar-width:var(--stzh-calendar-width);width:100%}[inline].sc-stzh-datepicker-h:not([inline=false]){width:var(--calendar-width)}.stzh-datepicker__popover.sc-stzh-datepicker{--width:auto}.stzh-datepicker__calendar.sc-stzh-datepicker{margin-left:auto;margin-right:auto}.stzh-datepicker__calendar.is-inline.sc-stzh-datepicker{width:100%;margin-left:0px;margin-right:0px}.stzh-datepicker__actions.sc-stzh-datepicker{display:flex;width:var(--calendar-width);margin-left:auto;margin-right:auto}.stzh-datepicker__actions.is-inline.sc-stzh-datepicker{width:100%;margin-left:0px;margin-right:0px}.stzh-datepicker__actions.sc-stzh-datepicker:not(:empty){padding-left:var(--stzh-space-small);padding-right:var(--stzh-space-small)}.stzh-datepicker--has-action.sc-stzh-datepicker .stzh-datepicker__popover.sc-stzh-datepicker{--content-padding:0 0 var(--stzh-space-small) 0}";
8
8
 
9
9
  const StzhDatepicker = class {
10
10
  constructor(hostRef) {
@@ -177,7 +177,7 @@ const StzhDatepicker = class {
177
177
  };
178
178
  StzhDatepicker.style = stzhDatepickerCss;
179
179
 
180
- const stzhRadioCss = ".sc-stzh-radio-h{font-family:var(--stzh-font-family-medium);font-weight:var(--stzh-font-weight-medium);font-style:var(--stzh-font-style-medium);color:var(--stzh-base-color);box-sizing:border-box;display:block}[hidden].sc-stzh-radio-h{display:none}.sc-stzh-radio-h::-moz-selection{color:var(--stzh-selection-color);background-color:var(--stzh-selection-background-color)}.sc-stzh-radio-h::selection{color:var(--stzh-selection-color);background-color:var(--stzh-selection-background-color)}.sc-stzh-radio-h *.sc-stzh-radio,.sc-stzh-radio-h *.sc-stzh-radio::before,.sc-stzh-radio-h *.sc-stzh-radio::after{box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness);-webkit-text-decoration-skip-ink:var(--stzh-link-text-decoration-skip-ink);text-decoration-skip-ink:var(--stzh-link-text-decoration-skip-ink)}.sc-stzh-radio-h .has-focus.sc-stzh-radio{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.125rem}.sc-stzh-radio-h .stzh-fylingfocus-focused.sc-stzh-radio{outline-style:none !important}.sc-stzh-radio-h .stzh-fylingfocus-focused.sc-stzh-radio::-moz-focus-inner{border:0 !important}.sc-stzh-radio-h{display:inline-block}[disabled].sc-stzh-radio-h:not([disabled=false]){--description-color:var(--stzh-color-grey70)}.stzh-radio__marker-symbol.sc-stzh-radio{font-family:var(--stzh-font-family-medium);font-weight:var(--stzh-font-weight-medium);font-style:var(--stzh-font-style-medium)}.stzh-radio__marker-text.sc-stzh-radio{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-radio__description-wrapper.sc-stzh-radio{display:flex;flex-direction:column-reverse;min-height:var(--description-min-height, var(--stzh-description-min-height, none))}.stzh-radio__error.sc-stzh-radio,.stzh-radio__description.sc-stzh-radio{font-size:var(--stzh-font-nano-font-size);line-height:var(--stzh-font-nano-text-line-height)}.stzh-radio__error.sc-stzh-radio{color:var(--stzh-color-error60)}.stzh-radio__error-list.sc-stzh-radio{list-style:none;margin:0;padding:0}.stzh-radio__description.sc-stzh-radio{display:flex;align-items:flex-start;color:var(--stzh-input-description-color, var(--description-color, var(--stzh-color-coolgrey70)));transition:color var(--stzh-base-transition-animation-speed)}.stzh-radio__description-long.sc-stzh-radio{margin-right:var(--stzh-space-xxsmall);margin-top:0.125rem}@supports (font: -apple-system-body) and (-webkit-appearance: none){.stzh-radio__description-long.sc-stzh-radio{margin-top:0}}.stzh-radio__description-long-popover.sc-stzh-radio{--width:auto;--max-width:27.3125rem}.stzh-radio__description-long-button.sc-stzh-radio{display:flex;justify-content:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;font-family:inherit;padding:0;border:none;background-color:transparent;border-radius:0.5rem;cursor:pointer}.stzh-radio.sc-stzh-radio stzh-icon.stzh-radio__description-long-icon.sc-stzh-radio{--size:var(--stzh-icon-size-xsmall)}.stzh-radio--has-error.sc-stzh-radio .stzh-radio__error.sc-stzh-radio,.stzh-radio--has-description.sc-stzh-radio .stzh-radio__description.sc-stzh-radio{margin-top:var(--stzh-space-xxxsmall)}.stzh-radio__field-wrapper.sc-stzh-radio{font-size:var(--stzh-font-milli-font-size);line-height:var(--stzh-font-milli-text-line-height);letter-spacing:var(--stzh-font-curve---text-letter-spacing);position:relative;display:flex;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer}.stzh-radio__input.sc-stzh-radio{position:absolute;top:0;left:0;width:100%;height:100%;margin:0;z-index:-1;opacity:0;pointer-events:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:var(--stzh-form-input-border-radius)}.stzh-radio__mark.sc-stzh-radio{border:0.125rem solid var(--stzh-color-black);background-color:var(--stzh-color-white);width:1.5rem;height:1.5rem;flex-shrink:0;border-radius:50%;display:inline-flex;justify-content:center;align-items:center;transition:border-color var(--stzh-base-transition-animation-speed)}.stzh-radio__mark.sc-stzh-radio::before{content:\"\"}.stzh-radio__check.sc-stzh-radio{background-color:currentColor;color:var(--stzh-color-primary70);width:1rem;height:1rem;border-radius:50%;opacity:0;transition-property:color;transition-duration:var(--stzh-base-transition-animation-speed)}@media (forced-colors: active), (-ms-high-contrast: active){.stzh-radio__check.sc-stzh-radio{background-color:ButtonText}}.stzh-radio__label.sc-stzh-radio{--stzh-base-color:initial;display:inline-block;color:var(--stzh-base-color);transition:color var(--stzh-base-transition-animation-speed);margin-left:var(--stzh-space-small);line-height:1.5rem}.stzh-radio__label.sc-stzh-radio:empty{display:none}.stzh-radio__marker.sc-stzh-radio{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);margin-left:calc(-0.25em + var(--stzh-space-xsmall))}.stzh-radio.sc-stzh-radio:hover .stzh-radio__label.sc-stzh-radio,.stzh-radio__input.sc-stzh-radio:checked~.stzh-radio__label.sc-stzh-radio{color:var(--stzh-color-primary70)}.stzh-radio__input.sc-stzh-radio:checked:hover~.stzh-radio__label.sc-stzh-radio,.stzh-radio__input.sc-stzh-radio:checked:hover~.stzh-radio__mark.sc-stzh-radio .stzh-radio__check.sc-stzh-radio{color:var(--stzh-color-primary90)}.stzh-radio.sc-stzh-radio:hover .stzh-radio__mark.sc-stzh-radio,.stzh-radio__input.sc-stzh-radio:checked~.stzh-radio__mark.sc-stzh-radio{border-color:var(--stzh-color-primary70)}.stzh-radio__input.sc-stzh-radio:checked:hover~.stzh-radio__mark.sc-stzh-radio{border-color:var(--stzh-color-primary90)}.stzh-radio__input.sc-stzh-radio:checked~.stzh-radio__mark.sc-stzh-radio .stzh-radio__check.sc-stzh-radio{opacity:1}.stzh-radio--is-invalid.sc-stzh-radio .stzh-radio__input.sc-stzh-radio~.stzh-radio__label.sc-stzh-radio,.stzh-radio--is-invalid.sc-stzh-radio .stzh-radio__input.sc-stzh-radio~.stzh-radio__mark.sc-stzh-radio .stzh-radio__check.sc-stzh-radio{color:var(--stzh-color-error60)}.stzh-radio--is-invalid.sc-stzh-radio .stzh-radio__input.sc-stzh-radio~.stzh-radio__mark.sc-stzh-radio{border-color:var(--stzh-color-error60)}.stzh-radio--is-disabled.sc-stzh-radio .stzh-radio__field-wrapper.sc-stzh-radio{cursor:not-allowed}.stzh-radio--is-disabled.sc-stzh-radio .stzh-radio__input.sc-stzh-radio~.stzh-radio__label.sc-stzh-radio{color:var(--stzh-color-grey60)}.stzh-radio--is-disabled.sc-stzh-radio .stzh-radio__input.sc-stzh-radio~.stzh-radio__mark.sc-stzh-radio .stzh-radio__check.sc-stzh-radio{color:var(--stzh-color-grey50)}.stzh-radio--is-disabled.sc-stzh-radio .stzh-radio__input.sc-stzh-radio~.stzh-radio__mark.sc-stzh-radio{border-color:var(--stzh-color-grey50)}.stzh-radio--is-disabled.sc-stzh-radio .stzh-radio__mark.sc-stzh-radio{background-color:var(--stzh-color-grey20)}";
180
+ const stzhRadioCss = ".sc-stzh-radio-h{font-family:var(--stzh-font-family-medium);font-weight:var(--stzh-font-weight-medium);font-style:var(--stzh-font-style-medium);color:var(--stzh-base-color);box-sizing:border-box;display:block}[hidden].sc-stzh-radio-h{display:none}.sc-stzh-radio-h::-moz-selection{color:var(--stzh-selection-color);background-color:var(--stzh-selection-background-color)}.sc-stzh-radio-h::selection{color:var(--stzh-selection-color);background-color:var(--stzh-selection-background-color)}.sc-stzh-radio-h *.sc-stzh-radio,.sc-stzh-radio-h *.sc-stzh-radio::before,.sc-stzh-radio-h *.sc-stzh-radio::after{box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness);-webkit-text-decoration-skip-ink:var(--stzh-link-text-decoration-skip-ink);text-decoration-skip-ink:var(--stzh-link-text-decoration-skip-ink)}.sc-stzh-radio-h .has-focus.sc-stzh-radio{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.125rem}.sc-stzh-radio-h .stzh-fylingfocus-focused.sc-stzh-radio{outline-style:none !important}.sc-stzh-radio-h .stzh-fylingfocus-focused.sc-stzh-radio::-moz-focus-inner{border:0 !important}.sc-stzh-radio-h{display:inline-block}[disabled].sc-stzh-radio-h:not([disabled=false]){--description-color:var(--stzh-color-grey70)}.stzh-radio.sc-stzh-radio{display:grid}.stzh-radio__marker-symbol.sc-stzh-radio{font-family:var(--stzh-font-family-medium);font-weight:var(--stzh-font-weight-medium);font-style:var(--stzh-font-style-medium)}.stzh-radio__marker-text.sc-stzh-radio{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-radio__description-wrapper.sc-stzh-radio{display:flex;flex-direction:column-reverse;min-height:var(--description-min-height, var(--stzh-description-min-height, none))}.stzh-radio__error.sc-stzh-radio,.stzh-radio__description.sc-stzh-radio{font-size:var(--stzh-font-nano-font-size);line-height:var(--stzh-font-nano-text-line-height)}.stzh-radio__error.sc-stzh-radio{color:var(--stzh-color-error60)}.stzh-radio__error-list.sc-stzh-radio{list-style:none;margin:0;padding:0}.stzh-radio__description.sc-stzh-radio{display:flex;align-items:flex-start;color:var(--stzh-input-description-color, var(--description-color, var(--stzh-color-coolgrey70)));transition:color var(--stzh-base-transition-animation-speed)}.stzh-radio__description-long.sc-stzh-radio{margin-right:var(--stzh-space-xxsmall);margin-top:0.125rem}@supports (font: -apple-system-body) and (-webkit-appearance: none){.stzh-radio__description-long.sc-stzh-radio{margin-top:0}}.stzh-radio__description-long-popover.sc-stzh-radio{--width:auto;--max-width:27.3125rem}.stzh-radio__description-long-button.sc-stzh-radio{display:flex;justify-content:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;font-family:inherit;padding:0;border:none;background-color:transparent;border-radius:0.5rem;cursor:pointer}.stzh-radio.sc-stzh-radio stzh-icon.stzh-radio__description-long-icon.sc-stzh-radio{--size:var(--stzh-icon-size-xsmall)}.stzh-radio--has-error.sc-stzh-radio .stzh-radio__error.sc-stzh-radio,.stzh-radio--has-description.sc-stzh-radio .stzh-radio__description.sc-stzh-radio{margin-top:var(--stzh-space-xxxsmall)}.stzh-radio__field-wrapper.sc-stzh-radio{font-size:var(--stzh-font-milli-font-size);line-height:var(--stzh-font-milli-text-line-height);letter-spacing:var(--stzh-font-curve---text-letter-spacing);position:relative;display:flex;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer}.stzh-radio__input.sc-stzh-radio{position:absolute;top:0;left:0;width:100%;height:100%;margin:0;z-index:-1;opacity:0;pointer-events:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:var(--stzh-form-input-border-radius)}.stzh-radio__mark.sc-stzh-radio{border:0.125rem solid var(--stzh-color-black);background-color:var(--stzh-color-white);width:1.5rem;height:1.5rem;flex-shrink:0;border-radius:50%;display:inline-flex;justify-content:center;align-items:center;transition:border-color var(--stzh-base-transition-animation-speed)}.stzh-radio__mark.sc-stzh-radio::before{content:\"\"}.stzh-radio__check.sc-stzh-radio{background-color:currentColor;color:var(--stzh-color-primary70);width:1rem;height:1rem;border-radius:50%;opacity:0;transition-property:color;transition-duration:var(--stzh-base-transition-animation-speed)}@media (forced-colors: active), (-ms-high-contrast: active){.stzh-radio__check.sc-stzh-radio{background-color:ButtonText}}.stzh-radio__label.sc-stzh-radio{--stzh-base-color:initial;display:inline-block;color:var(--stzh-base-color);transition:color var(--stzh-base-transition-animation-speed);margin-left:var(--stzh-space-small);line-height:1.5rem}.stzh-radio__label.sc-stzh-radio:empty{display:none}.stzh-radio__marker.sc-stzh-radio{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);margin-left:calc(-0.25em + var(--stzh-space-xsmall))}.stzh-radio.sc-stzh-radio:hover .stzh-radio__label.sc-stzh-radio,.stzh-radio__input.sc-stzh-radio:checked~.stzh-radio__label.sc-stzh-radio{color:var(--stzh-color-primary70)}.stzh-radio__input.sc-stzh-radio:checked:hover~.stzh-radio__label.sc-stzh-radio,.stzh-radio__input.sc-stzh-radio:checked:hover~.stzh-radio__mark.sc-stzh-radio .stzh-radio__check.sc-stzh-radio{color:var(--stzh-color-primary90)}.stzh-radio.sc-stzh-radio:hover .stzh-radio__mark.sc-stzh-radio,.stzh-radio__input.sc-stzh-radio:checked~.stzh-radio__mark.sc-stzh-radio{border-color:var(--stzh-color-primary70)}.stzh-radio__input.sc-stzh-radio:checked:hover~.stzh-radio__mark.sc-stzh-radio{border-color:var(--stzh-color-primary90)}.stzh-radio__input.sc-stzh-radio:checked~.stzh-radio__mark.sc-stzh-radio .stzh-radio__check.sc-stzh-radio{opacity:1}.stzh-radio--is-invalid.sc-stzh-radio .stzh-radio__input.sc-stzh-radio~.stzh-radio__label.sc-stzh-radio,.stzh-radio--is-invalid.sc-stzh-radio .stzh-radio__input.sc-stzh-radio~.stzh-radio__mark.sc-stzh-radio .stzh-radio__check.sc-stzh-radio{color:var(--stzh-color-error60)}.stzh-radio--is-invalid.sc-stzh-radio .stzh-radio__input.sc-stzh-radio~.stzh-radio__mark.sc-stzh-radio{border-color:var(--stzh-color-error60)}.stzh-radio--is-disabled.sc-stzh-radio .stzh-radio__field-wrapper.sc-stzh-radio{cursor:not-allowed}.stzh-radio--is-disabled.sc-stzh-radio .stzh-radio__input.sc-stzh-radio~.stzh-radio__label.sc-stzh-radio{color:var(--stzh-color-grey60)}.stzh-radio--is-disabled.sc-stzh-radio .stzh-radio__input.sc-stzh-radio~.stzh-radio__mark.sc-stzh-radio .stzh-radio__check.sc-stzh-radio{color:var(--stzh-color-grey50)}.stzh-radio--is-disabled.sc-stzh-radio .stzh-radio__input.sc-stzh-radio~.stzh-radio__mark.sc-stzh-radio{border-color:var(--stzh-color-grey50)}.stzh-radio--is-disabled.sc-stzh-radio .stzh-radio__mark.sc-stzh-radio{background-color:var(--stzh-color-grey20)}";
181
181
 
182
182
  let radioCounter = 0;
183
183
  const StzhRadio = class {
@@ -1 +1 @@
1
- {"file":"stzh-datepicker.stzh-radio.stzh-radiogroup.entry.js","mappings":";;;;;;AAAA,MAAM,iBAAiB,GAAG,8yDAA8yD;;MCoC3zD,cAAc;;;;;IAmLjB,gBAAW,GAAG;MACpB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,YAAY,CAAC;KAChC,CAAA;IAEO,gBAAW,GAAG;MACpB,IAAI,IAAI,CAAC,KAAK,EAAE;QACd,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;OACpB;KACF,CAAA;IAEO,mBAAc,GAAG;MACvB,MAAM,UAAU,GAAG,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;MAEzE,IAAI,IAAI,CAAC,KAAK,CAAC,KAAK,KAAK,EAAE,IAAI,UAAU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AAQ;YACV,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,iBAAiB;YAC5C,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,iBAAiB,CAE3C,CACF,CAEF,EAEX,WAAK,KAAK,EAAC,yBAAyB,IAClC,eAAa,CACT,EACN,EAAC,oBAAoB,IACnB,WAAW,EAAC,iBAAiB,EAC7B,EAAE,EAAE,GAAG,IAAI,CAAC,YAAY,cAAc,EACtC,KAAK,EAAE,IAAI,CAAC,MAAM,EAClB,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,eAAe,EAAE,IAAI,CAAC,eAAe,EACrC,oBAAoB,EAAE,IAAI,CAAC,oBAAoB,EAC/C,mBAAmB,EAAE,mBAAmB,EACxC,mBAAmB,EAAE,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,mBAAmB,GACnE,CACO,CACN,EACP;GACH;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/stzh-datepicker/stzh-datepicker.scss?tag=stzh-datepicker&encapsulation=scoped","src/components/stzh-datepicker/stzh-datepicker.tsx","src/components/stzh-radio/stzh-radio.scss?tag=stzh-radio&encapsulation=scoped","src/components/stzh-radio/stzh-radio.tsx","src/components/stzh-radiogroup/stzh-radiogroup.scss?tag=stzh-radiogroup&encapsulation=scoped","src/components/stzh-radiogroup/stzh-radiogroup.tsx"],"sourcesContent":[":host {\n width: 100%;\n\n &[inline]:not([inline=\"false\"]) {\n width: #{$calendarWidth};\n }\n}\n\n.stzh-datepicker {\n &__popover {\n --width: auto;\n }\n\n &__calendar {\n &.is-inline {\n width: 100%;\n }\n }\n\n &__actions {\n display: flex;\n justify-content: flex-end;\n\n &:not(:empty) {\n margin-right: space('small');\n }\n }\n\n /* Has action */\n\n &--has-action &__popover {\n --content-padding: 0 0 #{space('small')} 0;\n }\n}\n","import {\n Component,\n Prop,\n Host,\n Element,\n h,\n Event,\n EventEmitter,\n Method,\n Watch,\n Fragment,\n State,\n Listen\n} from \"@stencil/core\";\n\nimport {\n StzhCalendarChangeEvent,\n StzhDatepickerChangeEvent\n} from \"../../index\";\n\nimport { StzhCalendarDateDisabledPredicate } from \"../../index\";\n\nimport { printISODate } from \"../../utils/date-utils\"\nimport { StzhLocaleAdapter } from \"../../utils/date-adapter\"\n\nimport { StzhDatepickerLocalizedText } from \"./stzh-datepicker.localization\";\nimport { hasSlot } from \"../../utils/utils\";\n\n/**\n * @slot action - Slot for action below calendar (stzh-link element)\n */\n@Component({\n tag: \"stzh-datepicker\",\n styleUrl: \"stzh-datepicker.scss\",\n scoped: true\n})\nexport class StzhDatepicker {\n /**\n * Minimum date allowed to be picked. Must be in IS0-8601 format: YYYY-MM-DD.\n * This setting can be used alone or together with the max property.\n */\n @Prop() calendarMin: string = \"\"\n\n /**\n * Maximum date allowed to be picked. Must be in IS0-8601 format: YYYY-MM-DD.\n * This setting can be used alone or together with the min property.\n */\n @Prop() calendarMax: string = \"\"\n\n /**\n * Controls which days are disabled and therefore disallowed.\n * For example, this can be used to disallow selection of weekends.\n */\n @Prop() calendarIsDateDisabled: StzhCalendarDateDisabledPredicate = () => false\n\n /** Name of the hidden date picker input. */\n @Prop({ reflect: true }) name: string = \"\";\n\n /** Value of hidden date picker input (current selected date in ISO format). */\n @Prop({ mutable: true }) value: string = \"\";\n @State() calendarValue: string = \"\";\n @State() inputValue: string = \"\";\n\n /** Default value (used by reset) */\n @Prop({ mutable: true }) defaultValue: string = \"\";\n\n /** Label for input field and popover */\n @Prop() label: string = \"\";\n\n /** Whether label is visually hidden. */\n @Prop() labelHidden: 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 /** 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 /** One or multiple error message (use error slot as alternative) */\n @Prop() error: string | 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 /** Hide `(optional)` label (or use `required` inside form ot hide it) */\n @Prop({ reflect: true }) hideOptional: boolean = false;\n\n /** Size variant */\n @Prop({ reflect: true }) size: \"default\" | \"small\" = \"default\";\n\n /** Show calendar inline */\n @Prop({ reflect: true }) inline: boolean = false;\n\n /**\n * Date adapter visible date shown to the user, for custom parsing/formatting.\n * Must be object with a `parse` function which accepts a `string` and returns a `Date`,\n * and a `format` function which accepts a `Date` and returns a `string`.\n */\n @Prop() dateAdapter: StzhLocaleAdapter;\n\n /**\n * Date adapter for internal date passed to backend, for custom parsing/formatting.\n * Can be `\"iso\"` (default, date in ISO format) / `\"legacy\"` (date in `d.m.Y` format)\n * or `StzhLocaleAdapter` (must be object with a `parse` function which accepts a `string` and returns a `Date`,\n * and a `format` function which accepts a `Date` and returns a `string`.)\n */\n @Prop() internalDateAdapter: \"iso\" | \"legacy\" | StzhLocaleAdapter = \"iso\";\n private _internalDateAdapter: StzhLocaleAdapter;\n\n /** Translation strings. */\n @Prop() localization: StzhDatepickerLocalizedText;\n\n @State() buttonLabel: string;\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(\"localization\")\n createDateFormatters() {\n if (this.localization) {\n this.dateFormatLong = new Intl.DateTimeFormat(this.localization.$locale, {\n day: \"numeric\",\n month: \"long\",\n year: \"numeric\",\n })\n }\n }\n\n /** Update calendar and input when value prop has changed */\n @Watch(\"value\")\n valueWatcher(newValue: string) {\n if (!this._internalDateAdapter) {\n return;\n }\n\n const date = this._internalDateAdapter.parse(newValue, \"dateInput\");\n\n this.calendarValue = printISODate(date);\n this.inputValue = this.dateAdapter.format(date, \"dateInput\");\n\n this.updateButtonAccessibleLabel();\n }\n\n @Watch(\"dateAdapter\")\n dateAdapterWatcher(newValue: StzhLocaleAdapter) {\n if (!newValue) {\n this.dateAdapter = window.stzhComponents.utils.createFormatParseAdapter(\n this.localization.$formats,\n this.localization.$globals\n );\n }\n }\n\n @Watch(\"internalDateAdapter\")\n internalDateAdapterWatcher(newValue: \"iso\" | \"legacy\" | StzhLocaleAdapter) {\n if (newValue === \"iso\" || !newValue) {\n this._internalDateAdapter = window.stzhComponents.utils.createFormatParseAdapter(\n this.localization.$formatsIso,\n this.localization.$globals\n );\n } else if (newValue === \"legacy\") {\n this._internalDateAdapter = window.stzhComponents.utils.createFormatParseAdapter(\n this.localization.$formatsLegacy,\n this.localization.$globals\n );\n } else {\n this._internalDateAdapter = newValue;\n }\n }\n\n /** Set value by a JS Date object */\n @Method()\n async setDate(date: Date) {\n this.value = this._internalDateAdapter.format(date, \"dateInput\");\n }\n\n /** Return internal popover element */\n @Method()\n async getPopover(): Promise<HTMLStzhPopoverElement> {\n return this.popover;\n }\n\n /** Datepicker change event */\n @Event() stzhChange: EventEmitter<StzhDatepickerChangeEvent>;\n\n @Element() element: HTMLStzhDatepickerElement;\n\n /**\n * To format dates exclusively for the benefit of screen readers.\n *\n * We prefer DateTimeFormat over date.toLocaleDateString, as the former has\n * better performance when formatting large number of dates. See:\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleDateString#Performance\n */\n private dateFormatLong: Intl.DateTimeFormat\n\n private input: HTMLStzhInputElement;\n private popover: HTMLStzhPopoverElement;\n // private calendar: HTMLStzhCalendarElement;\n\n private handleReset = async () => {\n this.value = this.defaultValue;\n }\n\n private onRootFocus = () => {\n if (this.input) {\n this.input.focus();\n }\n }\n\n private onInputChanged = () => {\n const parsedDate = this.dateAdapter.parse(this.input.value, \"dateInput\");\n\n if (this.input.value === \"\" || parsedDate) {\n const formattedDate = this._internalDateAdapter.format(parsedDate, \"dateInput\");\n\n if (this.value !== formattedDate) {\n this.value = formattedDate;\n } else {\n this.valueWatcher(formattedDate);\n }\n\n this.stzhChange.emit({\n component: \"stzh-datepicker\",\n value: this.value,\n valueAsDate: parsedDate,\n })\n }\n }\n\n private onCalendarChange = (event: CustomEvent<StzhCalendarChangeEvent>) => {\n if (event.detail.component !== \"stzh-calendar\") {\n return;\n }\n\n this.value = event.detail.valueAsDate\n && this._internalDateAdapter.format(event.detail.valueAsDate, \"dateInput\");\n\n this.stzhChange.emit({\n component: \"stzh-datepicker\",\n value: this.value,\n valueAsDate: event.detail.valueAsDate,\n });\n\n if (this.popover) {\n this.popover.hide();\n }\n }\n\n private updateButtonAccessibleLabel() {\n if (!this.localization) {\n return;\n }\n\n try {\n const valueAsDate = this._internalDateAdapter.parse(this.value, \"dateInput\");\n this.buttonLabel = `${this.label}, ${this.localization.buttonLabel}, ${this.localization.selectedDateMessage} ${this.dateFormatLong.format(valueAsDate)}`;\n } catch (err) {\n this.buttonLabel = `${this.label}, ${this.localization.buttonLabel}`;\n }\n }\n\n connectedCallback() {\n this.createDateFormatters();\n }\n\n async componentWillLoad() {\n if (!this.localization) {\n this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, \"datepicker\");\n }\n\n this.dateAdapterWatcher(this.dateAdapter);\n this.internalDateAdapterWatcher(this.internalDateAdapter);\n this.valueWatcher(this.value);\n this.defaultValue = this.defaultValue || this.value;\n }\n\n render() {\n const actionUsed = hasSlot(this.element, 'action');\n\n const classes = {\n \"stzh-datepicker\": true,\n \"stzh-datepicker--inline\": this.inline,\n \"stzh-datepicker--has-action\": actionUsed\n };\n\n return (\n <Host tabindex={this.disabled ? null : \"-1\"} onFocus={this.onRootFocus}>\n <div class={classes}>\n <input\n type=\"hidden\"\n name={this.name}\n value={this.value}\n defaultValue={this.defaultValue}\n />\n\n {this.inline &&\n <Fragment>\n <stzh-calendar\n // ref={(el) => (this.calendar = el as HTMLStzhCalendarElement)}\n value={this.calendarValue}\n class=\"stzh-datepicker__calendar is-inline\"\n isDateDisabled={this.calendarIsDateDisabled}\n min={this.calendarMin}\n max={this.calendarMax}\n onStzhChange={this.onCalendarChange}\n ></stzh-calendar>\n <div class=\"stzh-datepicker__actions\">\n <slot name=\"action\"></slot>\n </div>\n </Fragment>\n }\n\n {!this.inline &&\n <stzh-input\n value={this.inputValue}\n label={this.label}\n labelHidden={this.labelHidden}\n ref={(el) => (this.input = el as HTMLStzhInputElement)}\n noAutocomplete\n onStzhChanged={this.onInputChanged}\n readonly={this.readonly}\n disabled={this.disabled}\n description={this.description}\n descriptionLong={this.descriptionLong}\n error={this.error}\n invalid={this.invalid}\n required={this.required}\n hideOptional={this.hideOptional}\n size={this.size}\n >\n <stzh-popover\n ref={(el) => (this.popover = el as HTMLStzhPopoverElement)}\n class=\"stzh-datepicker__popover\"\n slot=\"button-right\"\n placement=\"bottom-end\"\n label={this.label}\n >\n <stzh-button\n icon-only\n icon=\"calendar\"\n size={this.size}\n disabled={this.disabled}\n a11yLabel={this.buttonLabel}\n ></stzh-button>\n <div slot=\"content\">\n <stzh-calendar\n // ref={(el) => (this.calendar = el as HTMLStzhCalendarElement)}\n value={this.calendarValue}\n class=\"stzh-datepicker__calendar is-popover\"\n isDateDisabled={this.calendarIsDateDisabled}\n min={this.calendarMin}\n max={this.calendarMax}\n onStzhChange={this.onCalendarChange}\n >\n </stzh-calendar>\n <div class=\"stzh-datepicker__actions\">\n <slot name=\"action\"></slot>\n </div>\n </div>\n </stzh-popover>\n </stzh-input>\n }\n </div>\n </Host>\n );\n }\n}\n",":host {\n display: inline-block;\n\n &[disabled]:not([disabled=\"false\"]) {\n --description-color: #{$formDisabledColor};\n }\n}\n\n.stzh-radio {\n\t@include input-description;\n\n &__field-wrapper {\n @include fontSize('milli');\n position: relative;\n display: flex;\n user-select: none;\n cursor: pointer;\n }\n\n &__input {\n @include visuallyhiddenInput;\n border-radius: $formInputBorderRadius;\n }\n\n &__mark {\n @include radio__mark();\n }\n\n &__check {\n @include radio__check();\n }\n\n &__label {\n --stzh-base-color: initial;\n\n display: inline-block;\n color: $baseColor;\n transition: color $baseTransitionAnimationSpeed;\n margin-left: space('small');\n line-height: 24px;\n\n &:empty {\n display: none;\n }\n }\n\n &__marker {\n @include fontSize('micro');\n margin-left: calc(-0.25em + #{space('xsmall')});\n }\n\n /* Hover / Focus / Checked */\n\n &:hover &__label,\n &__input:checked ~ &__label {\n color: $colorPrimary70;\n }\n\n &__input:checked:hover ~ &__label,\n &__input:checked:hover ~ &__mark &__check {\n color: $colorPrimary90;\n }\n\n &:hover &__mark,\n &__input:checked ~ &__mark {\n border-color: $colorPrimary70;\n }\n\n &__input:checked:hover ~ &__mark {\n border-color: $colorPrimary90;\n }\n\n &__input:checked ~ &__mark &__check {\n opacity: 1;\n }\n\n /* Invalid */\n\n &--is-invalid &__input ~ &__label,\n &--is-invalid &__input ~ &__mark &__check {\n color: $colorError60;\n }\n\n &--is-invalid &__input ~ &__mark {\n border-color: $colorError60;\n }\n\n /* Disabled */\n\n\t&--is-disabled &__field-wrapper {\n cursor: not-allowed;\n }\n\n &--is-disabled &__input ~ &__label {\n color: $colorGrey60;\n }\n\n &--is-disabled &__input ~ &__mark &__check {\n color: $colorGrey50;\n }\n\n &--is-disabled &__input ~ &__mark {\n border-color: $colorGrey50;\n }\n\n &--is-disabled &__mark {\n background-color: $colorGrey20;\n }\n}\n","import {\n Host,\n Component,\n Prop,\n Event,\n Element,\n EventEmitter,\n h,\n Watch,\n Listen\n} from \"@stencil/core\";\n\nimport {\n StzhRadioChangeEvent,\n StzhRadioFocusEvent,\n StzhRadioBlurEvent\n} from \"../../index\";\n\nimport { hasSlot } from \"../../utils/utils\";\nimport { StzhLocaleComponent } from \"../../utils/translation-utils\";\n\nimport { StzhInputDescription } from \"../stzh-input/stzh-input-description\";\n\nlet radioCounter = 0;\n\n/**\n * @slot - Slot for label content\n * @slot description - Slot for description\n * @slot description-long - Slot for long description (in popover)\n * @slot description-long-title - Slot for long description title (in popover) / instead of descriptionLongTitle or description property\n * @slot error - Slot for error\n */\n@Component({\n tag: \"stzh-radio\",\n styleUrl: \"stzh-radio.scss\",\n scoped: true\n})\nexport class StzhRadio {\n /** Translation strings */\n @Prop() localization: StzhLocaleComponent;\n\n /** Whether the element is disabled or not */\n @Prop({ reflect: true }) disabled: boolean = false;\n\n /** The name of the input element */\n @Prop({ reflect: true }) name: string = \"\";\n\n /** The value of the input element */\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 /** Hide `(optional)` label (or use `required` inside form ot hide it) */\n @Prop({ reflect: true }) hideOptional: boolean = false;\n\n /** Checked status */\n @Prop({ mutable: true, reflect: true }) checked: boolean = false;\n\n /** Default checked (used by reset) */\n @Prop({ mutable: true }) defaultChecked: boolean;\n\n /** Label */\n @Prop() label: string = \"\";\n\n /** Description message (use description slot as alternative) */\n @Prop() description: string;\n\n /** Long description message appearing in a popover (use description-long slot as alternative) */\n @Prop() descriptionLong: string;\n\n /** Long description title appearing in a popover (use description-long-title slot as or description property alternative) */\n @Prop() descriptionLongTitle: string;\n\n /** One or multiple error message (use error slot as alternative) */\n @Prop() error: string | string[];\n private _error: string[];\n\n /** Id for element which describes the radio button (this will be overwritten if description prop or slot is used, used by stzh-radiogroup) */\n @Prop({ attribute: \"a11y-describedby\" }) a11yDescribedby: string = \"\";\n\n /** Input change event */\n @Event() stzhChange: EventEmitter<StzhRadioChangeEvent>;\n\n /** Input focus event */\n @Event() stzhFocus: EventEmitter<StzhRadioFocusEvent>;\n\n /** Input blur event */\n @Event() stzhBlur: EventEmitter<StzhRadioBlurEvent>;\n\n @Listen(\"reset\", { target: \"document\" })\n resetListener(event: Event) {\n if ((event.target as HTMLElement).contains(this.element)) {\n requestAnimationFrame(() => {\n this.handleReset();\n });\n }\n }\n\n @Watch(\"error\")\n errorWatcher(newValue: string | string[]) {\n if (typeof newValue === \"string\") {\n try {\n this._error = JSON.parse(newValue);\n } catch (e) {\n if (newValue) {\n this._error = [newValue];\n } else {\n this._error = [];\n }\n }\n } else if (newValue) {\n this._error = newValue;\n } else {\n this._error = [];\n }\n }\n\n @Element() element: HTMLStzhRadioElement;\n\n private input: HTMLInputElement;\n private inputId: string;\n private focusedByInput: boolean = false;\n\n private handleReset = async () => {\n this.checked = this.defaultChecked;\n }\n\n private onInput = (event: InputEvent) => {\n this.checked = this.input.checked;\n this.stzhChange.emit({\n component: \"stzh-radio\",\n originalEvent: event,\n value: this.value,\n checked: this.checked\n });\n }\n\n private onRootFocus = () => {\n if (!this.focusedByInput) {\n this.input.focus();\n }\n\n this.focusedByInput = false;\n }\n\n private onFocus = (event: FocusEvent) => {\n this.focusedByInput = true;\n\n const focusEvent = new FocusEvent('focus', {\n view: window,\n bubbles: false,\n cancelable: false\n });\n\n this.element.dispatchEvent(focusEvent);\n this.stzhFocus.emit({\n component: \"stzh-radio\",\n originalEvent: event\n });\n }\n\n private onBlur = (event: FocusEvent) => {\n const blurEvent = new FocusEvent('blur', {\n view: window,\n bubbles: false,\n cancelable: false\n });\n\n this.element.dispatchEvent(blurEvent);\n this.stzhBlur.emit({\n component: \"stzh-radio\",\n originalEvent: event\n });\n }\n\n async componentWillLoad() {\n this.inputId = `stzh-radio-${radioCounter++}`;\n this.errorWatcher(this.error);\n\n this.defaultChecked = typeof this.defaultChecked === \"boolean\" ? this.defaultChecked : this.checked;\n\n if (!this.localization) {\n this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, 'radio');\n }\n }\n\n render() {\n const descriptionUsed = hasSlot(this.element, 'description') || !!this.description;\n const descriptionLongUsed = hasSlot(this.element, 'description-long') || !!this.descriptionLong;\n const errorUsed = hasSlot(this.element, 'error') || this._error?.length > 0;\n\n const classes = {\n \"stzh-radio\": true,\n \"stzh-radio--has-description\": descriptionUsed,\n \"stzh-radio--has-description-long\": descriptionLongUsed,\n \"stzh-radio--has-error\": errorUsed,\n \"stzh-radio--is-required\": this.required,\n \"stzh-radio--is-invalid\": this.invalid || errorUsed,\n \"stzh-radio--is-disabled\": this.disabled\n };\n\n return (\n <Host is-invalid={this.invalid || errorUsed} tabindex={this.disabled ? null : \"-1\"} onFocus={this.onRootFocus}>\n <div class={classes}>\n <label class=\"stzh-radio__field-wrapper\">\n <input\n class=\"stzh-radio__input\"\n ref={(el) => (this.input = el as HTMLInputElement)}\n type=\"radio\"\n id={this.inputId}\n name={this.name}\n value={this.value}\n disabled={this.disabled}\n aria-describedby={`${this.inputId}-description ${this.a11yDescribedby}`}\n aria-required={this.required ? \"true\" : \"false\"}\n aria-invalid={this.invalid ? \"true\" : \"false\"}\n checked={this.checked}\n defaultChecked={this.defaultChecked}\n onInput={this.onInput}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n />\n <div class=\"stzh-radio__mark\">\n <div class=\"stzh-radio__check\"></div>\n </div>\n <div class=\"stzh-radio__label\">\n {this.label ? this.label : <slot></slot>}\n {!this.hideOptional &&\n <span class=\"stzh-radio__marker\">\n <span class=\"stzh-radio__marker-symbol\" aria-hidden=\"true\">\n {this.required\n ? this.localization.$globals.requiredFieldMarker\n : this.localization.$globals.optionalFieldMarker\n }\n </span>\n <span class=\"stzh-radio__marker-text\">\n {this.required\n ? this.localization.$globals.requiredFieldText\n : this.localization.$globals.optionalFieldText\n }\n </span>\n </span>\n }\n </div>\n </label>\n <StzhInputDescription\n classPrefix=\"stzh-radio\"\n id={`${this.inputId}-description`}\n error={this._error}\n description={this.description}\n descriptionLong={this.descriptionLong}\n descriptionLongTitle={this.descriptionLongTitle}\n descriptionLongUsed={descriptionLongUsed}\n moreInfoButtonLabel={this.localization.$globals.moreInfoButtonLabel}\n />\n </div>\n </Host>\n );\n }\n}\n",":host {\n &[disabled]:not([disabled=\"false\"]) {\n --description-color: #{$formDisabledColor};\n }\n}\n\n.stzh-radiogroup {\n @include input-description;\n margin: 0;\n padding: 0;\n border: none;\n\n &__fields {\n display: flex;\n align-items: flex-start;\n flex-direction: column;\n gap: space('medium');\n }\n\n &__legend {\n @include font('heavy');\n @include fontSize('micro');\n color: $headingColor;\n padding: 0;\n margin-bottom: space('xsmall');\n }\n\n &__marker {\n @include fontSize('nano');\n margin-left: calc(-0.25em + #{space('xsmall')});\n }\n\n &--hide-legend &__legend {\n @include visuallyhidden;\n }\n\n &--direction-horizontal &__fields {\n flex-wrap: wrap;\n flex-direction: row;\n row-gap: space('medium');\n column-gap: space('xxlarge');\n }\n}\n","import {\n Component,\n Prop,\n Element,\n Watch,\n h,\n Listen,\n Host\n} from \"@stencil/core\";\n\nimport { StzhRadioChangeEvent } from \"../../index\";\n\nimport { hasSlot } from \"../../utils/utils\";\nimport { camelCase } from \"../../utils/string-utils\";\nimport { StzhLocaleComponent } from \"../../utils/translation-utils\";\n\nimport { StzhInputDescription } from \"../stzh-input/stzh-input-description\";\n\nconst SELECTOR_RADIO = 'stzh-radio, stzh-button[type=radio], stzh-card';\n\nlet radiogroupCounter = 0;\n\n/**\n * @slot - Slot for `stzh-radio`, `stzh-button[type=\"radio\"]` or `stzh-card` elements\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-radiogroup\",\n styleUrl: \"stzh-radiogroup.scss\",\n scoped: true\n})\nexport class StzhRadiogroup {\n /** Translation strings */\n @Prop() localization: StzhLocaleComponent;\n\n /** Whether the element is disabled or not */\n @Prop({ reflect: true }) disabled: boolean = false;\n\n /** The name of the input radio elements, will define the radio group. If you have more than one radio group on a page, every group needs to have its own unique name */\n @Prop({ reflect: true }) name: string;\n\n /** The legend */\n @Prop() legend: string;\n\n /** Hide legend to show only for screenreaders */\n @Prop({ reflect: true }) hideLegend: boolean = false;\n\n /** Invalid status */\n @Prop({ reflect: true }) invalid: boolean = false;\n\n /** Required status */\n @Prop({ reflect: true }) required: boolean = false;\n\n /** Hide `(optional)` label (or use `required` inside form ot hide it) */\n @Prop({ reflect: true }) hideOptional: boolean = false;\n\n /** Select a radio by value */\n @Prop({ mutable: true }) value: string = \"\";\n\n /** Default value (used by reset) */\n @Prop({ mutable: true }) defaultValue: string = \"\";\n\n /** Direction */\n @Prop({ reflect: true }) direction: \"vertical\" | \"horizontal\" = \"vertical\";\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 /** 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 /** Current checked radio element (readonly) */\n @Prop() checkedRadio: HTMLStzhRadioElement | null = null;\n\n /** Prevent updating certain properties of radio elements (possible values inside array: disabled, invalid, required, hide-marker) */\n @Prop() preventUpdateProperties: string[] | string = [];\n private _preventUpdateProperties: string[] = [];\n\n /** Host element */\n @Element() element: HTMLElement;\n\n @Watch(\"name\")\n watchName(newValue: string) {\n this.updateRadiosProperty(\"name\", newValue);\n }\n\n @Watch(\"disabled\")\n watchDisabled(newValue: boolean) {\n this.updateRadiosProperty(\"disabled\", newValue);\n }\n\n @Watch(\"invalid\")\n watchInvalid(newValue: boolean) {\n this.updateRadiosProperty(\"invalid\", newValue);\n }\n\n @Watch(\"required\")\n watchRequired(newValue: boolean) {\n this.updateRadiosProperty(\"required\", newValue);\n }\n\n @Watch(\"value\")\n watchValue(newValue: string) {\n this.updateCheckedRadioByValue(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(\"preventUpdateProperties\")\n preventUpdatePropertiesWatcher(newValue: string[] | string) {\n if (typeof newValue === \"string\") {\n this._preventUpdateProperties = JSON.parse(newValue);\n } else {\n this._preventUpdateProperties = newValue;\n }\n }\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\n @Listen(\"stzhChange\")\n onChange(event: CustomEvent<StzhRadioChangeEvent>) {\n this.value = event.detail.value;\n }\n\n /** Radio elements */\n private radios: HTMLStzhRadioElement[];\n private radiogroupId: string;\n private observer: MutationObserver;\n\n private updateRadiosProperty(prop: string, value: any) {\n this.radios.forEach((radio: HTMLStzhRadioElement) => {\n if (prop === \"name\" || (this._preventUpdateProperties.indexOf(prop) === -1)) {\n radio[camelCase(prop)] = value;\n }\n });\n }\n\n private updateCheckedRadioByValue(value: string) {\n this.checkedRadio = this.radios.find(radio => radio.value === value);\n\n if (this.checkedRadio) {\n this.checkedRadio.checked = true;\n }\n\n this.uncheckRadios();\n }\n\n private uncheckRadios() {\n // make sure that no other radios are checked than the current one or no one\n this.radios.forEach((radio: HTMLStzhRadioElement) => {\n if (!this.checkedRadio || radio !== this.checkedRadio) {\n radio.checked = false;\n }\n });\n }\n\n private handleReset = async () => {\n this.value = this.defaultValue;\n }\n\n private init = () => {\n // update radios\n this.radios = Array.from(this.element.querySelectorAll(SELECTOR_RADIO));\n\n this.updateRadiosProperty(\"hide-optional\", true);\n this.updateRadiosProperty(\"a11y-describedby\", `${this.radiogroupId}-description`);\n\n this.watchValue(this.value);\n this.watchName(this.name);\n this.watchDisabled(this.disabled);\n this.watchInvalid(this.invalid);\n this.watchRequired(this.required);\n }\n\n componentDidLoad() {\n this.defaultValue = this.defaultValue ? this.defaultValue : this.value;\n }\n\n async componentWillLoad() {\n this.radiogroupId = `stzh-radiogroup-${radiogroupCounter++}`;\n this.errorWatcher(this.error);\n this.preventUpdatePropertiesWatcher(this.preventUpdateProperties);\n\n if (!this.localization) {\n this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, 'radiogroup');\n }\n }\n\n componentShouldUpdate(_newValue, _oldValue, prop: string) {\n return prop !== \"checkedRadio\";\n }\n\n componentDidRender() {\n this.init();\n }\n\n connectedCallback() {\n if (!this.value) {\n this.radios = Array.from(this.element.querySelectorAll(SELECTOR_RADIO));\n\n // try to find a checkbox that might has checked set to true\n const checkedRadio = this.radios.find(radio => radio.checked);\n\n if (checkedRadio) {\n this.value = checkedRadio.value;\n }\n }\n\n this.observer = new MutationObserver(this.init);\n this.observer.observe(this.element, {\n childList: true,\n subtree: true,\n });\n }\n\n disconnectedCallback() {\n if (this.observer) {\n this.observer.disconnect();\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-radiogroup\": true,\n \"stzh-radiogroup--has-description\": descriptionUsed,\n \"stzh-radiogroup--has-description-long\": descriptionLongUsed,\n \"stzh-radiogroup--has-error\": errorUsed,\n \"stzh-radiogroup--is-required\": this.required,\n \"stzh-radiogroup--is-disabled\": this.disabled,\n \"stzh-radiogroup--is-invalid\": this.invalid || errorUsed,\n \"stzh-radiogroup--hide-legend\": this.hideLegend,\n [`stzh-radiogroup--direction-${this.direction}`]: !!this.direction\n };\n\n return (\n <Host is-invalid={this.invalid || errorUsed}>\n <fieldset class={classes}>\n {this.legend &&\n <legend class=\"stzh-radiogroup__legend\">\n {this.legend}\n {!this.hideOptional &&\n <span class=\"stzh-radiogroup__marker\">\n <span class=\"stzh-radiogroup__marker-symbol\" aria-hidden=\"true\">\n {this.required\n ? this.localization.$globals.requiredFieldMarker\n : this.localization.$globals.optionalFieldMarker\n }\n </span>\n <span class=\"stzh-radiogroup__marker-text\">\n {this.required\n ? this.localization.$globals.requiredFieldText\n : this.localization.$globals.optionalFieldText\n }\n </span>\n </span>\n }\n </legend>\n }\n <div class=\"stzh-radiogroup__fields\">\n <slot></slot>\n </div>\n <StzhInputDescription\n classPrefix=\"stzh-radiogroup\"\n id={`${this.radiogroupId}-description`}\n error={this._error}\n description={this.description}\n descriptionLong={this.descriptionLong}\n descriptionLongTitle={this.descriptionLongTitle}\n descriptionLongUsed={descriptionLongUsed}\n moreInfoButtonLabel={this.localization.$globals.moreInfoButtonLabel}\n />\n </fieldset>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"stzh-datepicker.stzh-radio.stzh-radiogroup.entry.js","mappings":";;;;;;AAAA,MAAM,iBAAiB,GAAG,snEAAsnE;;MCoCnoE,cAAc;;;;;IAmLjB,gBAAW,GAAG;MACpB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,YAAY,CAAC;KAChC,CAAA;IAEO,gBAAW,GAAG;MACpB,IAAI,IAAI,CAAC,KAAK,EAAE;QACd,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;OACpB;KACF,CAAA;IAEO,mBAAc,GAAG;MACvB,MAAM,UAAU,GAAG,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;MAEzE,IAAI,IAAI,CAAC,KAAK,CAAC,KAAK,KAAK,EAAE,IAAI,UAAU,EAAE;QACzC,MAAM,aAAa,GAAG,IAAI,CAAC,oBAAoB,CAAC,MAAM,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;QAEhF,IAAI,IAAI,CAAC,KAAK,KAAK,aAAa,EAAE;UAChC,IAAI,CAAC,KAAK,GAAG,aAAa,CAAC;SAC5B;aAAM;UACL,IAAI,CAAC,YAAY,CAAC,aAAa,CAAC,CAAC;SAClC;QAED,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;UACnB,SAAS,EAAE,iBAAiB;UAC5B,KAAK,EAAE,IAAI,CAAC,KAAK;UACjB,WAAW,EAAE,UAAU;SACxB,CAAC,CAAA;OACH;KACF,CAAA;IAEO,qBAAgB,GAAG,CAAC,KAA2C;MACrE,IAAI,KAAK,CAAC,MAAM,CAAC,SAAS,KAAK,eAAe,EAAE;QAC9C,OAAO;OACR;MAED,IAAI,CAAC,KAAK,G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;;;;","names":[],"sources":["src/components/stzh-datepicker/stzh-datepicker.scss?tag=stzh-datepicker&encapsulation=scoped","src/components/stzh-datepicker/stzh-datepicker.tsx","src/components/stzh-radio/stzh-radio.scss?tag=stzh-radio&encapsulation=scoped","src/components/stzh-radio/stzh-radio.tsx","src/components/stzh-radiogroup/stzh-radiogroup.scss?tag=stzh-radiogroup&encapsulation=scoped","src/components/stzh-radiogroup/stzh-radiogroup.tsx"],"sourcesContent":[":host {\n --calendar-width: #{$calendarWidth};\n\n width: 100%;\n\n &[inline]:not([inline=\"false\"]) {\n width: var(--calendar-width);\n }\n}\n\n.stzh-datepicker {\n &__popover {\n --width: auto;\n }\n\n &__calendar {\n margin-left: auto;\n margin-right: auto;\n\n &.is-inline {\n width: 100%;\n margin-left: 0px;\n margin-right: 0px;\n }\n }\n\n &__actions {\n display: flex;\n width: var(--calendar-width);\n margin-left: auto;\n margin-right: auto;\n\n &.is-inline {\n width: 100%;\n margin-left: 0px;\n margin-right: 0px;\n }\n\n &:not(:empty) {\n padding-left: space('small');\n padding-right: space('small');\n }\n }\n\n /* Has action */\n\n &--has-action &__popover {\n --content-padding: 0 0 #{space('small')} 0;\n }\n}\n","import {\n Component,\n Prop,\n Host,\n Element,\n h,\n Event,\n EventEmitter,\n Method,\n Watch,\n Fragment,\n State,\n Listen\n} from \"@stencil/core\";\n\nimport {\n StzhCalendarChangeEvent,\n StzhDatepickerChangeEvent\n} from \"../../index\";\n\nimport { StzhCalendarDateDisabledPredicate } from \"../../index\";\n\nimport { printISODate } from \"../../utils/date-utils\"\nimport { StzhLocaleAdapter } from \"../../utils/date-adapter\"\n\nimport { StzhDatepickerLocalizedText } from \"./stzh-datepicker.localization\";\nimport { hasSlot } from \"../../utils/utils\";\n\n/**\n * @slot action - Slot for action below calendar (stzh-link element)\n */\n@Component({\n tag: \"stzh-datepicker\",\n styleUrl: \"stzh-datepicker.scss\",\n scoped: true\n})\nexport class StzhDatepicker {\n /**\n * Minimum date allowed to be picked. Must be in IS0-8601 format: YYYY-MM-DD.\n * This setting can be used alone or together with the max property.\n */\n @Prop() calendarMin: string = \"\"\n\n /**\n * Maximum date allowed to be picked. Must be in IS0-8601 format: YYYY-MM-DD.\n * This setting can be used alone or together with the min property.\n */\n @Prop() calendarMax: string = \"\"\n\n /**\n * Controls which days are disabled and therefore disallowed.\n * For example, this can be used to disallow selection of weekends.\n */\n @Prop() calendarIsDateDisabled: StzhCalendarDateDisabledPredicate = () => false\n\n /** Name of the hidden date picker input. */\n @Prop({ reflect: true }) name: string = \"\";\n\n /** Value of hidden date picker input (current selected date in ISO format). */\n @Prop({ mutable: true }) value: string = \"\";\n @State() calendarValue: string = \"\";\n @State() inputValue: string = \"\";\n\n /** Default value (used by reset) */\n @Prop({ mutable: true }) defaultValue: string = \"\";\n\n /** Label for input field and popover */\n @Prop() label: string = \"\";\n\n /** Whether label is visually hidden. */\n @Prop() labelHidden: 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 /** 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 /** One or multiple error message (use error slot as alternative) */\n @Prop() error: string | 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 /** Hide `(optional)` label (or use `required` inside form ot hide it) */\n @Prop({ reflect: true }) hideOptional: boolean = false;\n\n /** Size variant */\n @Prop({ reflect: true }) size: \"default\" | \"small\" = \"default\";\n\n /** Show calendar inline */\n @Prop({ reflect: true }) inline: boolean = false;\n\n /**\n * Date adapter visible date shown to the user, for custom parsing/formatting.\n * Must be object with a `parse` function which accepts a `string` and returns a `Date`,\n * and a `format` function which accepts a `Date` and returns a `string`.\n */\n @Prop() dateAdapter: StzhLocaleAdapter;\n\n /**\n * Date adapter for internal date passed to backend, for custom parsing/formatting.\n * Can be `\"iso\"` (default, date in ISO format) / `\"legacy\"` (date in `d.m.Y` format)\n * or `StzhLocaleAdapter` (must be object with a `parse` function which accepts a `string` and returns a `Date`,\n * and a `format` function which accepts a `Date` and returns a `string`.)\n */\n @Prop() internalDateAdapter: \"iso\" | \"legacy\" | StzhLocaleAdapter = \"iso\";\n private _internalDateAdapter: StzhLocaleAdapter;\n\n /** Translation strings. */\n @Prop() localization: StzhDatepickerLocalizedText;\n\n @State() buttonLabel: string;\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(\"localization\")\n createDateFormatters() {\n if (this.localization) {\n this.dateFormatLong = new Intl.DateTimeFormat(this.localization.$locale, {\n day: \"numeric\",\n month: \"long\",\n year: \"numeric\",\n })\n }\n }\n\n /** Update calendar and input when value prop has changed */\n @Watch(\"value\")\n valueWatcher(newValue: string) {\n if (!this._internalDateAdapter) {\n return;\n }\n\n const date = this._internalDateAdapter.parse(newValue, \"dateInput\");\n\n this.calendarValue = printISODate(date);\n this.inputValue = this.dateAdapter.format(date, \"dateInput\");\n\n this.updateButtonAccessibleLabel();\n }\n\n @Watch(\"dateAdapter\")\n dateAdapterWatcher(newValue: StzhLocaleAdapter) {\n if (!newValue) {\n this.dateAdapter = window.stzhComponents.utils.createFormatParseAdapter(\n this.localization.$formats,\n this.localization.$globals\n );\n }\n }\n\n @Watch(\"internalDateAdapter\")\n internalDateAdapterWatcher(newValue: \"iso\" | \"legacy\" | StzhLocaleAdapter) {\n if (newValue === \"iso\" || !newValue) {\n this._internalDateAdapter = window.stzhComponents.utils.createFormatParseAdapter(\n this.localization.$formatsIso,\n this.localization.$globals\n );\n } else if (newValue === \"legacy\") {\n this._internalDateAdapter = window.stzhComponents.utils.createFormatParseAdapter(\n this.localization.$formatsLegacy,\n this.localization.$globals\n );\n } else {\n this._internalDateAdapter = newValue;\n }\n }\n\n /** Set value by a JS Date object */\n @Method()\n async setDate(date: Date) {\n this.value = this._internalDateAdapter.format(date, \"dateInput\");\n }\n\n /** Return internal popover element */\n @Method()\n async getPopover(): Promise<HTMLStzhPopoverElement> {\n return this.popover;\n }\n\n /** Datepicker change event */\n @Event() stzhChange: EventEmitter<StzhDatepickerChangeEvent>;\n\n @Element() element: HTMLStzhDatepickerElement;\n\n /**\n * To format dates exclusively for the benefit of screen readers.\n *\n * We prefer DateTimeFormat over date.toLocaleDateString, as the former has\n * better performance when formatting large number of dates. See:\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleDateString#Performance\n */\n private dateFormatLong: Intl.DateTimeFormat\n\n private input: HTMLStzhInputElement;\n private popover: HTMLStzhPopoverElement;\n // private calendar: HTMLStzhCalendarElement;\n\n private handleReset = async () => {\n this.value = this.defaultValue;\n }\n\n private onRootFocus = () => {\n if (this.input) {\n this.input.focus();\n }\n }\n\n private onInputChanged = () => {\n const parsedDate = this.dateAdapter.parse(this.input.value, \"dateInput\");\n\n if (this.input.value === \"\" || parsedDate) {\n const formattedDate = this._internalDateAdapter.format(parsedDate, \"dateInput\");\n\n if (this.value !== formattedDate) {\n this.value = formattedDate;\n } else {\n this.valueWatcher(formattedDate);\n }\n\n this.stzhChange.emit({\n component: \"stzh-datepicker\",\n value: this.value,\n valueAsDate: parsedDate,\n })\n }\n }\n\n private onCalendarChange = (event: CustomEvent<StzhCalendarChangeEvent>) => {\n if (event.detail.component !== \"stzh-calendar\") {\n return;\n }\n\n this.value = event.detail.valueAsDate\n && this._internalDateAdapter.format(event.detail.valueAsDate, \"dateInput\");\n\n this.stzhChange.emit({\n component: \"stzh-datepicker\",\n value: this.value,\n valueAsDate: event.detail.valueAsDate,\n });\n\n if (this.popover) {\n this.popover.hide();\n }\n }\n\n private updateButtonAccessibleLabel() {\n if (!this.localization) {\n return;\n }\n\n try {\n const valueAsDate = this._internalDateAdapter.parse(this.value, \"dateInput\");\n this.buttonLabel = `${this.label}, ${this.localization.buttonLabel}, ${this.localization.selectedDateMessage} ${this.dateFormatLong.format(valueAsDate)}`;\n } catch (err) {\n this.buttonLabel = `${this.label}, ${this.localization.buttonLabel}`;\n }\n }\n\n connectedCallback() {\n this.createDateFormatters();\n }\n\n async componentWillLoad() {\n if (!this.localization) {\n this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, \"datepicker\");\n }\n\n this.dateAdapterWatcher(this.dateAdapter);\n this.internalDateAdapterWatcher(this.internalDateAdapter);\n this.valueWatcher(this.value);\n this.defaultValue = this.defaultValue || this.value;\n }\n\n render() {\n const actionUsed = hasSlot(this.element, 'action');\n\n const classes = {\n \"stzh-datepicker\": true,\n \"stzh-datepicker--inline\": this.inline,\n \"stzh-datepicker--has-action\": actionUsed\n };\n\n return (\n <Host tabindex={this.disabled ? null : \"-1\"} onFocus={this.onRootFocus}>\n <div class={classes}>\n <input\n type=\"hidden\"\n name={this.name}\n value={this.value}\n defaultValue={this.defaultValue}\n />\n\n {this.inline &&\n <Fragment>\n <stzh-calendar\n // ref={(el) => (this.calendar = el as HTMLStzhCalendarElement)}\n value={this.calendarValue}\n class=\"stzh-datepicker__calendar is-inline\"\n isDateDisabled={this.calendarIsDateDisabled}\n min={this.calendarMin}\n max={this.calendarMax}\n onStzhChange={this.onCalendarChange}\n ></stzh-calendar>\n <div class=\"stzh-datepicker__actions\">\n <slot name=\"action\"></slot>\n </div>\n </Fragment>\n }\n\n {!this.inline &&\n <stzh-input\n value={this.inputValue}\n label={this.label}\n labelHidden={this.labelHidden}\n ref={(el) => (this.input = el as HTMLStzhInputElement)}\n noAutocomplete\n onStzhChanged={this.onInputChanged}\n readonly={this.readonly}\n disabled={this.disabled}\n description={this.description}\n descriptionLong={this.descriptionLong}\n error={this.error}\n invalid={this.invalid}\n required={this.required}\n hideOptional={this.hideOptional}\n size={this.size}\n >\n <stzh-popover\n ref={(el) => (this.popover = el as HTMLStzhPopoverElement)}\n class=\"stzh-datepicker__popover\"\n slot=\"button-right\"\n placement=\"bottom-end\"\n label={this.label}\n >\n <stzh-button\n icon-only\n icon=\"calendar\"\n size={this.size}\n disabled={this.disabled}\n a11yLabel={this.buttonLabel}\n ></stzh-button>\n <div slot=\"content\">\n <stzh-calendar\n // ref={(el) => (this.calendar = el as HTMLStzhCalendarElement)}\n value={this.calendarValue}\n class=\"stzh-datepicker__calendar is-popover\"\n isDateDisabled={this.calendarIsDateDisabled}\n min={this.calendarMin}\n max={this.calendarMax}\n onStzhChange={this.onCalendarChange}\n >\n </stzh-calendar>\n <div class=\"stzh-datepicker__actions\">\n <slot name=\"action\"></slot>\n </div>\n </div>\n </stzh-popover>\n </stzh-input>\n }\n </div>\n </Host>\n );\n }\n}\n",":host {\n display: inline-block;\n\n &[disabled]:not([disabled=\"false\"]) {\n --description-color: #{$formDisabledColor};\n }\n}\n\n.stzh-radio {\n @include input-description;\n display: grid;\n\n &__field-wrapper {\n @include fontSize('milli');\n position: relative;\n display: flex;\n user-select: none;\n cursor: pointer;\n }\n\n &__input {\n @include visuallyhiddenInput;\n border-radius: $formInputBorderRadius;\n }\n\n &__mark {\n @include radio__mark();\n }\n\n &__check {\n @include radio__check();\n }\n\n &__label {\n --stzh-base-color: initial;\n\n display: inline-block;\n color: $baseColor;\n transition: color $baseTransitionAnimationSpeed;\n margin-left: space('small');\n line-height: 24px;\n\n &:empty {\n display: none;\n }\n }\n\n &__marker {\n @include fontSize('micro');\n margin-left: calc(-0.25em + #{space('xsmall')});\n }\n\n /* Hover / Focus / Checked */\n\n &:hover &__label,\n &__input:checked ~ &__label {\n color: $colorPrimary70;\n }\n\n &__input:checked:hover ~ &__label,\n &__input:checked:hover ~ &__mark &__check {\n color: $colorPrimary90;\n }\n\n &:hover &__mark,\n &__input:checked ~ &__mark {\n border-color: $colorPrimary70;\n }\n\n &__input:checked:hover ~ &__mark {\n border-color: $colorPrimary90;\n }\n\n &__input:checked ~ &__mark &__check {\n opacity: 1;\n }\n\n /* Invalid */\n\n &--is-invalid &__input ~ &__label,\n &--is-invalid &__input ~ &__mark &__check {\n color: $colorError60;\n }\n\n &--is-invalid &__input ~ &__mark {\n border-color: $colorError60;\n }\n\n /* Disabled */\n\n\t&--is-disabled &__field-wrapper {\n cursor: not-allowed;\n }\n\n &--is-disabled &__input ~ &__label {\n color: $colorGrey60;\n }\n\n &--is-disabled &__input ~ &__mark &__check {\n color: $colorGrey50;\n }\n\n &--is-disabled &__input ~ &__mark {\n border-color: $colorGrey50;\n }\n\n &--is-disabled &__mark {\n background-color: $colorGrey20;\n }\n}\n","import {\n Host,\n Component,\n Prop,\n Event,\n Element,\n EventEmitter,\n h,\n Watch,\n Listen\n} from \"@stencil/core\";\n\nimport {\n StzhRadioChangeEvent,\n StzhRadioFocusEvent,\n StzhRadioBlurEvent\n} from \"../../index\";\n\nimport { hasSlot } from \"../../utils/utils\";\nimport { StzhLocaleComponent } from \"../../utils/translation-utils\";\n\nimport { StzhInputDescription } from \"../stzh-input/stzh-input-description\";\n\nlet radioCounter = 0;\n\n/**\n * @slot - Slot for label content\n * @slot description - Slot for description\n * @slot description-long - Slot for long description (in popover)\n * @slot description-long-title - Slot for long description title (in popover) / instead of descriptionLongTitle or description property\n * @slot error - Slot for error\n */\n@Component({\n tag: \"stzh-radio\",\n styleUrl: \"stzh-radio.scss\",\n scoped: true\n})\nexport class StzhRadio {\n /** Translation strings */\n @Prop() localization: StzhLocaleComponent;\n\n /** Whether the element is disabled or not */\n @Prop({ reflect: true }) disabled: boolean = false;\n\n /** The name of the input element */\n @Prop({ reflect: true }) name: string = \"\";\n\n /** The value of the input element */\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 /** Hide `(optional)` label (or use `required` inside form ot hide it) */\n @Prop({ reflect: true }) hideOptional: boolean = false;\n\n /** Checked status */\n @Prop({ mutable: true, reflect: true }) checked: boolean = false;\n\n /** Default checked (used by reset) */\n @Prop({ mutable: true }) defaultChecked: boolean;\n\n /** Label */\n @Prop() label: string = \"\";\n\n /** Description message (use description slot as alternative) */\n @Prop() description: string;\n\n /** Long description message appearing in a popover (use description-long slot as alternative) */\n @Prop() descriptionLong: string;\n\n /** Long description title appearing in a popover (use description-long-title slot as or description property alternative) */\n @Prop() descriptionLongTitle: string;\n\n /** One or multiple error message (use error slot as alternative) */\n @Prop() error: string | string[];\n private _error: string[];\n\n /** Id for element which describes the radio button (this will be overwritten if description prop or slot is used, used by stzh-radiogroup) */\n @Prop({ attribute: \"a11y-describedby\" }) a11yDescribedby: string = \"\";\n\n /** Input change event */\n @Event() stzhChange: EventEmitter<StzhRadioChangeEvent>;\n\n /** Input focus event */\n @Event() stzhFocus: EventEmitter<StzhRadioFocusEvent>;\n\n /** Input blur event */\n @Event() stzhBlur: EventEmitter<StzhRadioBlurEvent>;\n\n @Listen(\"reset\", { target: \"document\" })\n resetListener(event: Event) {\n if ((event.target as HTMLElement).contains(this.element)) {\n requestAnimationFrame(() => {\n this.handleReset();\n });\n }\n }\n\n @Watch(\"error\")\n errorWatcher(newValue: string | string[]) {\n if (typeof newValue === \"string\") {\n try {\n this._error = JSON.parse(newValue);\n } catch (e) {\n if (newValue) {\n this._error = [newValue];\n } else {\n this._error = [];\n }\n }\n } else if (newValue) {\n this._error = newValue;\n } else {\n this._error = [];\n }\n }\n\n @Element() element: HTMLStzhRadioElement;\n\n private input: HTMLInputElement;\n private inputId: string;\n private focusedByInput: boolean = false;\n\n private handleReset = async () => {\n this.checked = this.defaultChecked;\n }\n\n private onInput = (event: InputEvent) => {\n this.checked = this.input.checked;\n this.stzhChange.emit({\n component: \"stzh-radio\",\n originalEvent: event,\n value: this.value,\n checked: this.checked\n });\n }\n\n private onRootFocus = () => {\n if (!this.focusedByInput) {\n this.input.focus();\n }\n\n this.focusedByInput = false;\n }\n\n private onFocus = (event: FocusEvent) => {\n this.focusedByInput = true;\n\n const focusEvent = new FocusEvent('focus', {\n view: window,\n bubbles: false,\n cancelable: false\n });\n\n this.element.dispatchEvent(focusEvent);\n this.stzhFocus.emit({\n component: \"stzh-radio\",\n originalEvent: event\n });\n }\n\n private onBlur = (event: FocusEvent) => {\n const blurEvent = new FocusEvent('blur', {\n view: window,\n bubbles: false,\n cancelable: false\n });\n\n this.element.dispatchEvent(blurEvent);\n this.stzhBlur.emit({\n component: \"stzh-radio\",\n originalEvent: event\n });\n }\n\n async componentWillLoad() {\n this.inputId = `stzh-radio-${radioCounter++}`;\n this.errorWatcher(this.error);\n\n this.defaultChecked = typeof this.defaultChecked === \"boolean\" ? this.defaultChecked : this.checked;\n\n if (!this.localization) {\n this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, 'radio');\n }\n }\n\n render() {\n const descriptionUsed = hasSlot(this.element, 'description') || !!this.description;\n const descriptionLongUsed = hasSlot(this.element, 'description-long') || !!this.descriptionLong;\n const errorUsed = hasSlot(this.element, 'error') || this._error?.length > 0;\n\n const classes = {\n \"stzh-radio\": true,\n \"stzh-radio--has-description\": descriptionUsed,\n \"stzh-radio--has-description-long\": descriptionLongUsed,\n \"stzh-radio--has-error\": errorUsed,\n \"stzh-radio--is-required\": this.required,\n \"stzh-radio--is-invalid\": this.invalid || errorUsed,\n \"stzh-radio--is-disabled\": this.disabled\n };\n\n return (\n <Host is-invalid={this.invalid || errorUsed} tabindex={this.disabled ? null : \"-1\"} onFocus={this.onRootFocus}>\n <div class={classes}>\n <label class=\"stzh-radio__field-wrapper\">\n <input\n class=\"stzh-radio__input\"\n ref={(el) => (this.input = el as HTMLInputElement)}\n type=\"radio\"\n id={this.inputId}\n name={this.name}\n value={this.value}\n disabled={this.disabled}\n aria-describedby={`${this.inputId}-description ${this.a11yDescribedby}`}\n aria-required={this.required ? \"true\" : \"false\"}\n aria-invalid={this.invalid ? \"true\" : \"false\"}\n checked={this.checked}\n defaultChecked={this.defaultChecked}\n onInput={this.onInput}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n />\n <div class=\"stzh-radio__mark\">\n <div class=\"stzh-radio__check\"></div>\n </div>\n <div class=\"stzh-radio__label\">\n {this.label ? this.label : <slot></slot>}\n {!this.hideOptional &&\n <span class=\"stzh-radio__marker\">\n <span class=\"stzh-radio__marker-symbol\" aria-hidden=\"true\">\n {this.required\n ? this.localization.$globals.requiredFieldMarker\n : this.localization.$globals.optionalFieldMarker\n }\n </span>\n <span class=\"stzh-radio__marker-text\">\n {this.required\n ? this.localization.$globals.requiredFieldText\n : this.localization.$globals.optionalFieldText\n }\n </span>\n </span>\n }\n </div>\n </label>\n <StzhInputDescription\n classPrefix=\"stzh-radio\"\n id={`${this.inputId}-description`}\n error={this._error}\n description={this.description}\n descriptionLong={this.descriptionLong}\n descriptionLongTitle={this.descriptionLongTitle}\n descriptionLongUsed={descriptionLongUsed}\n moreInfoButtonLabel={this.localization.$globals.moreInfoButtonLabel}\n />\n </div>\n </Host>\n );\n }\n}\n",":host {\n &[disabled]:not([disabled=\"false\"]) {\n --description-color: #{$formDisabledColor};\n }\n}\n\n.stzh-radiogroup {\n @include input-description;\n margin: 0;\n padding: 0;\n border: none;\n\n &__fields {\n display: flex;\n align-items: flex-start;\n flex-direction: column;\n gap: space('medium');\n }\n\n &__legend {\n @include font('heavy');\n @include fontSize('micro');\n color: $headingColor;\n padding: 0;\n margin-bottom: space('xsmall');\n }\n\n &__marker {\n @include fontSize('nano');\n margin-left: calc(-0.25em + #{space('xsmall')});\n }\n\n &--hide-legend &__legend {\n @include visuallyhidden;\n }\n\n &--direction-horizontal &__fields {\n flex-wrap: wrap;\n flex-direction: row;\n row-gap: space('medium');\n column-gap: space('xxlarge');\n }\n}\n","import {\n Component,\n Prop,\n Element,\n Watch,\n h,\n Listen,\n Host\n} from \"@stencil/core\";\n\nimport { StzhRadioChangeEvent } from \"../../index\";\n\nimport { hasSlot } from \"../../utils/utils\";\nimport { camelCase } from \"../../utils/string-utils\";\nimport { StzhLocaleComponent } from \"../../utils/translation-utils\";\n\nimport { StzhInputDescription } from \"../stzh-input/stzh-input-description\";\n\nconst SELECTOR_RADIO = 'stzh-radio, stzh-button[type=radio], stzh-card';\n\nlet radiogroupCounter = 0;\n\n/**\n * @slot - Slot for `stzh-radio`, `stzh-button[type=\"radio\"]` or `stzh-card` elements\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-radiogroup\",\n styleUrl: \"stzh-radiogroup.scss\",\n scoped: true\n})\nexport class StzhRadiogroup {\n /** Translation strings */\n @Prop() localization: StzhLocaleComponent;\n\n /** Whether the element is disabled or not */\n @Prop({ reflect: true }) disabled: boolean = false;\n\n /** The name of the input radio elements, will define the radio group. If you have more than one radio group on a page, every group needs to have its own unique name */\n @Prop({ reflect: true }) name: string;\n\n /** The legend */\n @Prop() legend: string;\n\n /** Hide legend to show only for screenreaders */\n @Prop({ reflect: true }) hideLegend: boolean = false;\n\n /** Invalid status */\n @Prop({ reflect: true }) invalid: boolean = false;\n\n /** Required status */\n @Prop({ reflect: true }) required: boolean = false;\n\n /** Hide `(optional)` label (or use `required` inside form ot hide it) */\n @Prop({ reflect: true }) hideOptional: boolean = false;\n\n /** Select a radio by value */\n @Prop({ mutable: true }) value: string = \"\";\n\n /** Default value (used by reset) */\n @Prop({ mutable: true }) defaultValue: string = \"\";\n\n /** Direction */\n @Prop({ reflect: true }) direction: \"vertical\" | \"horizontal\" = \"vertical\";\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 /** 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 /** Current checked radio element (readonly) */\n @Prop() checkedRadio: HTMLStzhRadioElement | null = null;\n\n /** Prevent updating certain properties of radio elements (possible values inside array: disabled, invalid, required, hide-marker) */\n @Prop() preventUpdateProperties: string[] | string = [];\n private _preventUpdateProperties: string[] = [];\n\n /** Host element */\n @Element() element: HTMLElement;\n\n @Watch(\"name\")\n watchName(newValue: string) {\n this.updateRadiosProperty(\"name\", newValue);\n }\n\n @Watch(\"disabled\")\n watchDisabled(newValue: boolean) {\n this.updateRadiosProperty(\"disabled\", newValue);\n }\n\n @Watch(\"invalid\")\n watchInvalid(newValue: boolean) {\n this.updateRadiosProperty(\"invalid\", newValue);\n }\n\n @Watch(\"required\")\n watchRequired(newValue: boolean) {\n this.updateRadiosProperty(\"required\", newValue);\n }\n\n @Watch(\"value\")\n watchValue(newValue: string) {\n this.updateCheckedRadioByValue(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(\"preventUpdateProperties\")\n preventUpdatePropertiesWatcher(newValue: string[] | string) {\n if (typeof newValue === \"string\") {\n this._preventUpdateProperties = JSON.parse(newValue);\n } else {\n this._preventUpdateProperties = newValue;\n }\n }\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\n @Listen(\"stzhChange\")\n onChange(event: CustomEvent<StzhRadioChangeEvent>) {\n this.value = event.detail.value;\n }\n\n /** Radio elements */\n private radios: HTMLStzhRadioElement[];\n private radiogroupId: string;\n private observer: MutationObserver;\n\n private updateRadiosProperty(prop: string, value: any) {\n this.radios.forEach((radio: HTMLStzhRadioElement) => {\n if (prop === \"name\" || (this._preventUpdateProperties.indexOf(prop) === -1)) {\n radio[camelCase(prop)] = value;\n }\n });\n }\n\n private updateCheckedRadioByValue(value: string) {\n this.checkedRadio = this.radios.find(radio => radio.value === value);\n\n if (this.checkedRadio) {\n this.checkedRadio.checked = true;\n }\n\n this.uncheckRadios();\n }\n\n private uncheckRadios() {\n // make sure that no other radios are checked than the current one or no one\n this.radios.forEach((radio: HTMLStzhRadioElement) => {\n if (!this.checkedRadio || radio !== this.checkedRadio) {\n radio.checked = false;\n }\n });\n }\n\n private handleReset = async () => {\n this.value = this.defaultValue;\n }\n\n private init = () => {\n // update radios\n this.radios = Array.from(this.element.querySelectorAll(SELECTOR_RADIO));\n\n this.updateRadiosProperty(\"hide-optional\", true);\n this.updateRadiosProperty(\"a11y-describedby\", `${this.radiogroupId}-description`);\n\n this.watchValue(this.value);\n this.watchName(this.name);\n this.watchDisabled(this.disabled);\n this.watchInvalid(this.invalid);\n this.watchRequired(this.required);\n }\n\n componentDidLoad() {\n this.defaultValue = this.defaultValue ? this.defaultValue : this.value;\n }\n\n async componentWillLoad() {\n this.radiogroupId = `stzh-radiogroup-${radiogroupCounter++}`;\n this.errorWatcher(this.error);\n this.preventUpdatePropertiesWatcher(this.preventUpdateProperties);\n\n if (!this.localization) {\n this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, 'radiogroup');\n }\n }\n\n componentShouldUpdate(_newValue, _oldValue, prop: string) {\n return prop !== \"checkedRadio\";\n }\n\n componentDidRender() {\n this.init();\n }\n\n connectedCallback() {\n if (!this.value) {\n this.radios = Array.from(this.element.querySelectorAll(SELECTOR_RADIO));\n\n // try to find a checkbox that might has checked set to true\n const checkedRadio = this.radios.find(radio => radio.checked);\n\n if (checkedRadio) {\n this.value = checkedRadio.value;\n }\n }\n\n this.observer = new MutationObserver(this.init);\n this.observer.observe(this.element, {\n childList: true,\n subtree: true,\n });\n }\n\n disconnectedCallback() {\n if (this.observer) {\n this.observer.disconnect();\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-radiogroup\": true,\n \"stzh-radiogroup--has-description\": descriptionUsed,\n \"stzh-radiogroup--has-description-long\": descriptionLongUsed,\n \"stzh-radiogroup--has-error\": errorUsed,\n \"stzh-radiogroup--is-required\": this.required,\n \"stzh-radiogroup--is-disabled\": this.disabled,\n \"stzh-radiogroup--is-invalid\": this.invalid || errorUsed,\n \"stzh-radiogroup--hide-legend\": this.hideLegend,\n [`stzh-radiogroup--direction-${this.direction}`]: !!this.direction\n };\n\n return (\n <Host is-invalid={this.invalid || errorUsed}>\n <fieldset class={classes}>\n {this.legend &&\n <legend class=\"stzh-radiogroup__legend\">\n {this.legend}\n {!this.hideOptional &&\n <span class=\"stzh-radiogroup__marker\">\n <span class=\"stzh-radiogroup__marker-symbol\" aria-hidden=\"true\">\n {this.required\n ? this.localization.$globals.requiredFieldMarker\n : this.localization.$globals.optionalFieldMarker\n }\n </span>\n <span class=\"stzh-radiogroup__marker-text\">\n {this.required\n ? this.localization.$globals.requiredFieldText\n : this.localization.$globals.optionalFieldText\n }\n </span>\n </span>\n }\n </legend>\n }\n <div class=\"stzh-radiogroup__fields\">\n <slot></slot>\n </div>\n <StzhInputDescription\n classPrefix=\"stzh-radiogroup\"\n id={`${this.radiogroupId}-description`}\n error={this._error}\n description={this.description}\n descriptionLong={this.descriptionLong}\n descriptionLongTitle={this.descriptionLongTitle}\n descriptionLongUsed={descriptionLongUsed}\n moreInfoButtonLabel={this.localization.$globals.moreInfoButtonLabel}\n />\n </fieldset>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -0,0 +1,103 @@
1
+ import { r as registerInstance, h, a as Host, g as getElement } from './index-e3050b18.js';
2
+ import { s as setPropsIfNull } from './utils-54aead01.js';
3
+ import './string-utils-e252977e.js';
4
+
5
+ const stzhDaterangeCss = ".sc-stzh-daterange-h{font-family:var(--stzh-font-family-medium);font-weight:var(--stzh-font-weight-medium);font-style:var(--stzh-font-style-medium);color:var(--stzh-base-color);box-sizing:border-box;display:block}[hidden].sc-stzh-daterange-h{display:none}.sc-stzh-daterange-h::-moz-selection{color:var(--stzh-selection-color);background-color:var(--stzh-selection-background-color)}.sc-stzh-daterange-h::selection{color:var(--stzh-selection-color);background-color:var(--stzh-selection-background-color)}.sc-stzh-daterange-h *.sc-stzh-daterange,.sc-stzh-daterange-h *.sc-stzh-daterange::before,.sc-stzh-daterange-h *.sc-stzh-daterange::after{box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness);-webkit-text-decoration-skip-ink:var(--stzh-link-text-decoration-skip-ink);text-decoration-skip-ink:var(--stzh-link-text-decoration-skip-ink)}.sc-stzh-daterange-h .has-focus.sc-stzh-daterange{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.125rem}.sc-stzh-daterange-h .stzh-fylingfocus-focused.sc-stzh-daterange{outline-style:none !important}.sc-stzh-daterange-h .stzh-fylingfocus-focused.sc-stzh-daterange::-moz-focus-inner{border:0 !important}.sc-stzh-daterange-h{--grid-template-areas:var(\n --stzh-daterange-grid-template-areas,\n \"datefrom datefrom datefrom datefrom\"\n \"dateto dateto dateto dateto\"\n \"links links links links\"\n );--grid-template-columns:var(\n --stzh-daterange-grid-template-columns,\n repeat(4, minmax(0, 1fr))\n )}@media screen and (min-width: 600px){.sc-stzh-daterange-h{--grid-template-areas:var(\n --stzh-daterange-grid-template-areas,\n \"datefrom datefrom dateto dateto\"\n \"links links links links\"\n )}}@media screen and (min-width: 900px){.sc-stzh-daterange-h{--grid-template-areas:var(\n --stzh-daterange-grid-template-areas,\n \"datefrom datefrom dateto dateto links links links links\"\n );--grid-template-columns:var(\n --stzh-daterange-grid-template-columns,\n repeat(8, minmax(0, 1fr))\n )}}.stzh-daterange.sc-stzh-daterange{--stzh-description-min-height:var(--stzh-fieldset-description-min-height);-moz-column-gap:var(--stzh-grid-gutter);column-gap:var(--stzh-grid-gutter);display:grid;align-items:center;grid-template-areas:var(--grid-template-areas);grid-template-columns:var(--grid-template-columns);align-items:start;border:none;padding:0}@media screen and (min-width: 600px){.stzh-daterange.sc-stzh-daterange{-moz-column-gap:var(--stzh-grid-gutter-small);column-gap:var(--stzh-grid-gutter-small)}}@media screen and (min-width: 900px){.stzh-daterange.sc-stzh-daterange{-moz-column-gap:var(--stzh-grid-gutter-medium);column-gap:var(--stzh-grid-gutter-medium)}}@media screen and (min-width: 1260px){.stzh-daterange.sc-stzh-daterange{-moz-column-gap:var(--stzh-grid-gutter-large);column-gap:var(--stzh-grid-gutter-large)}}@media screen and (min-width: 1600px){.stzh-daterange.sc-stzh-daterange{-moz-column-gap:var(--stzh-grid-gutter-ultra);column-gap:var(--stzh-grid-gutter-ultra)}}.stzh-daterange__legend.sc-stzh-daterange{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-daterange__datefrom.sc-stzh-daterange{grid-area:datefrom}.stzh-daterange__dateto.sc-stzh-daterange{grid-area:dateto}.stzh-daterange__links.sc-stzh-daterange{grid-area:links;align-self:center}.stzh-daterange__links.sc-stzh-daterange{display:flex;gap:var(--stzh-space-large)}";
6
+
7
+ const StzhDaterange = class {
8
+ constructor(hostRef) {
9
+ registerInstance(this, hostRef);
10
+ this._rangeLinks = [];
11
+ this.handleRangeClick = (type) => {
12
+ let start = new Date();
13
+ let end = new Date();
14
+ if (type === "tomorrow") {
15
+ start.setDate(start.getDate() + 1);
16
+ end.setDate(end.getDate() + 1);
17
+ }
18
+ else if (type === "next7days") {
19
+ start.setDate(start.getDate());
20
+ end.setDate(end.getDate() + 7);
21
+ }
22
+ const fromDatepicker = this.datefromElement.querySelector('stzh-datepicker');
23
+ const toDatepicker = this.datetoElement.querySelector('stzh-datepicker');
24
+ fromDatepicker === null || fromDatepicker === void 0 ? void 0 : fromDatepicker.setDate(start);
25
+ toDatepicker === null || toDatepicker === void 0 ? void 0 : toDatepicker.setDate(end);
26
+ };
27
+ this.init = () => {
28
+ const fromDatepicker = this.element.querySelector('stzh-datepicker[slot="from"], [slot="from"] stzh-datepicker');
29
+ const toDatepicker = this.element.querySelector('stzh-datepicker[slot="to"], [slot="to"] stzh-datepicker');
30
+ if (fromDatepicker && this.localization) {
31
+ setPropsIfNull(fromDatepicker, {
32
+ label: this.localization.labelFrom,
33
+ hideOptional: true
34
+ });
35
+ }
36
+ if (toDatepicker && this.localization) {
37
+ setPropsIfNull(toDatepicker, {
38
+ label: this.localization.labelTo,
39
+ hideOptional: true
40
+ });
41
+ }
42
+ };
43
+ this.localization = undefined;
44
+ this.legend = undefined;
45
+ this.rangeLinks = undefined;
46
+ }
47
+ rangeLinksWatcher(newValue) {
48
+ if (!newValue) {
49
+ this._rangeLinks = [];
50
+ }
51
+ else if (typeof newValue === "string") {
52
+ try {
53
+ this._rangeLinks = JSON.parse(newValue);
54
+ }
55
+ catch (e) {
56
+ this._rangeLinks = [];
57
+ }
58
+ }
59
+ else {
60
+ this._rangeLinks = newValue;
61
+ }
62
+ }
63
+ async componentWillLoad() {
64
+ this.rangeLinksWatcher(this.rangeLinks);
65
+ if (!this.localization) {
66
+ this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, "daterange");
67
+ }
68
+ }
69
+ connectedCallback() {
70
+ this.init();
71
+ this.observer = new MutationObserver(this.init);
72
+ this.observer.observe(this.element, {
73
+ childList: true,
74
+ subtree: true
75
+ });
76
+ }
77
+ disconnectedCallback() {
78
+ if (this.observer) {
79
+ this.observer.disconnect();
80
+ }
81
+ }
82
+ render() {
83
+ const classes = {
84
+ "stzh-daterange": true,
85
+ "stzh-daterange--has-links": this._rangeLinks.length > 0
86
+ };
87
+ const translations = {
88
+ "today": this.localization.rangeToday,
89
+ "tomorrow": this.localization.rangeTomorrow,
90
+ "next7days": this.localization.rangeNextSevenDays
91
+ };
92
+ return (h(Host, null, h("fieldset", { class: classes }, h("legend", { class: "stzh-daterange__legend" }, this.legend || this.localization.legend), h("div", { class: "stzh-daterange__datefrom", ref: (el) => (this.datefromElement = el) }, h("slot", { name: "from" })), h("div", { class: "stzh-daterange__dateto", ref: (el) => (this.datetoElement = el) }, h("slot", { name: "to" })), h("div", { class: "stzh-daterange__links" }, this._rangeLinks.map((type) => h("stzh-link", { label: translations[type], onClick: () => this.handleRangeClick(type) }))))));
93
+ }
94
+ get element() { return getElement(this); }
95
+ static get watchers() { return {
96
+ "rangeLinks": ["rangeLinksWatcher"]
97
+ }; }
98
+ };
99
+ StzhDaterange.style = stzhDaterangeCss;
100
+
101
+ export { StzhDaterange as stzh_daterange };
102
+
103
+ //# sourceMappingURL=stzh-daterange.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"stzh-daterange.entry.js","mappings":";;;;AAAA,MAAM,gBAAgB,GAAG,wgHAAwgH;;MCuBphH,aAAa;;;IAShB,gBAAW,GAA0B,EAAE,CAAC;IAuBxC,qBAAgB,GAAG,CAAC,IAAyB;MACnD,IAAI,KAAK,GAAG,IAAI,IAAI,EAAE,CAAC;MACvB,IAAI,GAAG,GAAG,IAAI,IAAI,EAAE,CAAC;MAErB,IAAI,IAAI,KAAK,UAAU,EAAE;QACvB,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,CAAC;QACnC,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,CAAC;OAChC;WAAM,IAAI,IAAI,KAAK,WAAW,EAAE;QAC/B,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;QAC/B,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,CAAC;OAChC;MAED,MAAM,cAAc,GAAG,IAAI,CAAC,eAAe,CAAC,aAAa,CAAC,iBAAiB,CAAC,CAAC;MAC7E,MAAM,YAAY,GAAG,IAAI,CAAC,aAAa,CAAC,aA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aAAa,GAAG,EAAoB,CAAC,IAExD,YAAM,IAAI,EAAC,IAAI,GAAQ,CACnB,EACN,WAAK,KAAK,EAAC,uBAAuB,IAC/B,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,IAAI,KACzB,iBACE,KAAK,EAAE,YAAY,CAAC,IAAI,CAAC,EACzB,OAAO,EAAE,MAAM,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,GAC/B,CACd,CACG,CACG,CACN,EACP;GACH;;;;;;;;;;","names":[],"sources":["src/components/stzh-daterange/stzh-daterange.scss?tag=stzh-daterange&encapsulation=scoped","src/components/stzh-daterange/stzh-daterange.tsx"],"sourcesContent":[":host {\n --grid-template-areas: var(\n --stzh-daterange-grid-template-areas,\n \"datefrom datefrom datefrom datefrom\"\n \"dateto dateto dateto dateto\"\n \"links links links links\"\n );\n\n --grid-template-columns: var(\n --stzh-daterange-grid-template-columns,\n #{$gridColumns}\n );\n\n @include mq($from: small) {\n --grid-template-areas: var(\n --stzh-daterange-grid-template-areas,\n \"datefrom datefrom dateto dateto\"\n \"links links links links\"\n );\n }\n\n @include mq($from: medium) {\n --grid-template-areas: var(\n --stzh-daterange-grid-template-areas,\n \"datefrom datefrom dateto dateto links links links links\"\n );\n\n --grid-template-columns: var(\n --stzh-daterange-grid-template-columns,\n #{$gridColumnsMedium}\n );\n }\n}\n\n.stzh-daterange {\n --stzh-description-min-height: #{$fieldsetDescriptionMinHeight};\n\n @include gridGutter;\n display: grid;\n align-items: center;\n grid-template-areas: var(--grid-template-areas);\n grid-template-columns: var(--grid-template-columns);\n align-items: start;\n border: none;\n padding: 0;\n\n &__legend {\n @include visuallyhidden;\n }\n\n &__datefrom {\n grid-area: datefrom;\n }\n\n &__dateto {\n grid-area: dateto;\n }\n\n &__links {\n grid-area: links;\n align-self: center;\n }\n\n &__links {\n display: flex;\n gap: space('large');\n }\n}\n","import {\n Component,\n Host,\n Prop,\n h,\n Element,\n Watch,\n} from \"@stencil/core\";\n\nimport { StzhDaterangeRanges } from \"../../index\";\n\nimport { StzhDaterangeLocalizedText } from \"./stzh-daterange.localization\";\nimport { setPropsIfNull } from \"../../utils/utils\";\n\n/**\n * @slot from - Slot for datepicker\n * @slot to - Slot for datepicker\n */\n@Component({\n tag: \"stzh-daterange\",\n styleUrl: \"stzh-daterange.scss\",\n scoped: true\n})\nexport class StzhDaterange {\n /** Translation strings */\n @Prop() localization: StzhDaterangeLocalizedText;\n\n /** Legend */\n @Prop() legend: string;\n\n /** Range links (current predefined available ranges: \"today\", \"tomorrow\", \"next7days\") */\n @Prop() rangeLinks: string | StzhDaterangeRanges[];\n private _rangeLinks: StzhDaterangeRanges[] = [];\n\n @Element() element: HTMLStzhDaterangeElement;\n\n @Watch(\"rangeLinks\")\n rangeLinksWatcher(newValue: StzhDaterangeRanges[] | string) {\n if (!newValue) {\n this._rangeLinks = [];\n } else if (typeof newValue === \"string\") {\n try {\n this._rangeLinks = JSON.parse(newValue);\n } catch (e) {\n this._rangeLinks = [];\n }\n } else {\n this._rangeLinks = newValue;\n }\n }\n\n private observer: MutationObserver;\n private datefromElement: HTMLElement;\n private datetoElement: HTMLElement;\n\n private handleRangeClick = (type: StzhDaterangeRanges) => {\n let start = new Date();\n let end = new Date();\n\n if (type === \"tomorrow\") {\n start.setDate(start.getDate() + 1);\n end.setDate(end.getDate() + 1);\n } else if (type === \"next7days\") {\n start.setDate(start.getDate());\n end.setDate(end.getDate() + 7);\n }\n\n const fromDatepicker = this.datefromElement.querySelector('stzh-datepicker');\n const toDatepicker = this.datetoElement.querySelector('stzh-datepicker');\n\n fromDatepicker?.setDate(start);\n toDatepicker?.setDate(end);\n }\n\n async componentWillLoad() {\n this.rangeLinksWatcher(this.rangeLinks);\n\n if (!this.localization) {\n this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, \"daterange\");\n }\n }\n\n private init = () => {\n const fromDatepicker = this.element.querySelector(\n 'stzh-datepicker[slot=\"from\"], [slot=\"from\"] stzh-datepicker'\n );\n\n const toDatepicker = this.element.querySelector(\n 'stzh-datepicker[slot=\"to\"], [slot=\"to\"] stzh-datepicker'\n );\n\n if (fromDatepicker && this.localization) {\n setPropsIfNull(fromDatepicker, {\n label: this.localization.labelFrom,\n hideOptional: true\n } as HTMLStzhDatepickerElement)\n }\n\n if (toDatepicker&& this.localization) {\n setPropsIfNull(toDatepicker, {\n label: this.localization.labelTo,\n hideOptional: true\n } as HTMLStzhDatepickerElement)\n }\n }\n\n connectedCallback() {\n this.init();\n\n this.observer = new MutationObserver(this.init);\n this.observer.observe(this.element, {\n childList: true,\n subtree: true\n });\n }\n\n disconnectedCallback() {\n if (this.observer) {\n this.observer.disconnect();\n }\n }\n\n render() {\n const classes = {\n \"stzh-daterange\": true,\n \"stzh-daterange--has-links\": this._rangeLinks.length > 0\n };\n\n const translations = {\n \"today\": this.localization.rangeToday,\n \"tomorrow\": this.localization.rangeTomorrow,\n \"next7days\": this.localization.rangeNextSevenDays\n }\n\n return (\n <Host>\n <fieldset class={classes}>\n <legend class=\"stzh-daterange__legend\">\n {this.legend || this.localization.legend}\n </legend>\n\n <div\n class=\"stzh-daterange__datefrom\"\n ref={(el) => (this.datefromElement = el as HTMLDivElement)}\n >\n <slot name=\"from\"></slot>\n </div>\n <div\n class=\"stzh-daterange__dateto\"\n ref={(el) => (this.datetoElement = el as HTMLDivElement)}\n >\n <slot name=\"to\"></slot>\n </div>\n <div class=\"stzh-daterange__links\">\n {this._rangeLinks.map((type) =>\n <stzh-link\n label={translations[type]}\n onClick={() => this.handleRangeClick(type)}\n ></stzh-link>\n )}\n </div>\n </fieldset>\n </Host>\n );\n }\n}\n"],"version":3}