@oiz/stzh-components 3.0.0 → 3.1.0

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 (713) hide show
  1. package/dist/cjs/{app-globals-1d1f8f2e.js → app-globals-0699ef40.js} +2 -2
  2. package/dist/cjs/{app-globals-1d1f8f2e.js.map → app-globals-0699ef40.js.map} +1 -1
  3. package/dist/cjs/index-92254d32.js +46 -18
  4. package/dist/cjs/index.cjs.js.map +1 -1
  5. package/dist/cjs/loader.cjs.js +2 -2
  6. package/dist/cjs/stzh-accordion_3.cjs.entry.js +19 -19
  7. package/dist/cjs/stzh-accordion_3.cjs.entry.js.map +1 -1
  8. package/dist/cjs/stzh-amount.cjs.entry.js.map +1 -1
  9. package/dist/cjs/stzh-card-searchresult.cjs.entry.js +5 -18
  10. package/dist/cjs/stzh-card-searchresult.cjs.entry.js.map +1 -1
  11. package/dist/cjs/{stzh-card_3.cjs.entry.js → stzh-card_2.cjs.entry.js} +6 -222
  12. package/dist/cjs/stzh-card_2.cjs.entry.js.map +1 -0
  13. package/dist/cjs/stzh-checkbox.cjs.entry.js.map +1 -1
  14. package/dist/cjs/stzh-checkboxgroup.cjs.entry.js.map +1 -1
  15. package/dist/cjs/{stzh-message.cjs.entry.js → stzh-chipgroup_2.cjs.entry.js} +19 -2
  16. package/dist/cjs/stzh-chipgroup_2.cjs.entry.js.map +1 -0
  17. package/dist/cjs/stzh-chipselect.cjs.entry.js +222 -0
  18. package/dist/cjs/stzh-chipselect.cjs.entry.js.map +1 -0
  19. package/dist/cjs/stzh-components.cjs.js +2 -2
  20. package/dist/cjs/stzh-contact.cjs.entry.js +40 -37
  21. package/dist/cjs/stzh-contact.cjs.entry.js.map +1 -1
  22. package/dist/cjs/stzh-container.cjs.entry.js +1 -1
  23. package/dist/cjs/stzh-container.cjs.entry.js.map +1 -1
  24. package/dist/cjs/stzh-content.cjs.entry.js +1 -1
  25. package/dist/cjs/stzh-content.cjs.entry.js.map +1 -1
  26. package/dist/cjs/stzh-cspace.cjs.entry.js +1 -1
  27. package/dist/cjs/stzh-cspace.cjs.entry.js.map +1 -1
  28. package/dist/cjs/stzh-datalist_2.cjs.entry.js +1 -1
  29. package/dist/cjs/stzh-datalist_2.cjs.entry.js.map +1 -1
  30. package/dist/cjs/stzh-datepicker_3.cjs.entry.js +31 -33
  31. package/dist/cjs/stzh-datepicker_3.cjs.entry.js.map +1 -1
  32. package/dist/cjs/stzh-dropdown.cjs.entry.js +1 -1
  33. package/dist/cjs/stzh-dropdown.cjs.entry.js.map +1 -1
  34. package/dist/cjs/stzh-gallery.cjs.entry.js +1 -1
  35. package/dist/cjs/stzh-gallery.cjs.entry.js.map +1 -1
  36. package/dist/cjs/stzh-header.cjs.entry.js +175 -166
  37. package/dist/cjs/stzh-header.cjs.entry.js.map +1 -1
  38. package/dist/cjs/stzh-heading.cjs.entry.js +1 -1
  39. package/dist/cjs/stzh-heading.cjs.entry.js.map +1 -1
  40. package/dist/cjs/stzh-homepage-service-highlights.cjs.entry.js +102 -0
  41. package/dist/cjs/stzh-homepage-service-highlights.cjs.entry.js.map +1 -0
  42. package/dist/cjs/stzh-hspace.cjs.entry.js +1 -1
  43. package/dist/cjs/stzh-hspace.cjs.entry.js.map +1 -1
  44. package/dist/cjs/stzh-input.cjs.entry.js +29 -44
  45. package/dist/cjs/stzh-input.cjs.entry.js.map +1 -1
  46. package/dist/cjs/stzh-monthyearpicker.cjs.entry.js.map +1 -1
  47. package/dist/cjs/stzh-pagetitle-home.cjs.entry.js +76 -0
  48. package/dist/cjs/stzh-pagetitle-home.cjs.entry.js.map +1 -0
  49. package/dist/cjs/stzh-pagetitle.cjs.entry.js +16 -15
  50. package/dist/cjs/stzh-pagetitle.cjs.entry.js.map +1 -1
  51. package/dist/cjs/stzh-panorama.cjs.entry.js +51 -25
  52. package/dist/cjs/stzh-panorama.cjs.entry.js.map +1 -1
  53. package/dist/cjs/stzh-pi-content-navigation.cjs.entry.js +64 -0
  54. package/dist/cjs/stzh-pi-content-navigation.cjs.entry.js.map +1 -0
  55. package/dist/cjs/stzh-pi-menu.cjs.entry.js +202 -0
  56. package/dist/cjs/stzh-pi-menu.cjs.entry.js.map +1 -0
  57. package/dist/cjs/stzh-pi-pagetitle.cjs.entry.js +83 -0
  58. package/dist/cjs/stzh-pi-pagetitle.cjs.entry.js.map +1 -0
  59. package/dist/cjs/stzh-pi-quote.cjs.entry.js +26 -0
  60. package/dist/cjs/stzh-pi-quote.cjs.entry.js.map +1 -0
  61. package/dist/cjs/stzh-pi-teaser.cjs.entry.js +62 -0
  62. package/dist/cjs/stzh-pi-teaser.cjs.entry.js.map +1 -0
  63. package/dist/cjs/stzh-popover_2.cjs.entry.js +1 -1
  64. package/dist/cjs/stzh-popover_2.cjs.entry.js.map +1 -1
  65. package/dist/cjs/stzh-progressbar-item.cjs.entry.js +7 -3
  66. package/dist/cjs/stzh-progressbar-item.cjs.entry.js.map +1 -1
  67. package/dist/cjs/stzh-progressbar.cjs.entry.js +2 -1
  68. package/dist/cjs/stzh-progressbar.cjs.entry.js.map +1 -1
  69. package/dist/cjs/stzh-ratio.cjs.entry.js +1 -1
  70. package/dist/cjs/stzh-ratio.cjs.entry.js.map +1 -1
  71. package/dist/cjs/stzh-readspeaker.cjs.entry.js +1 -0
  72. package/dist/cjs/stzh-readspeaker.cjs.entry.js.map +1 -1
  73. package/dist/cjs/stzh-search.cjs.entry.js +69 -44
  74. package/dist/cjs/stzh-search.cjs.entry.js.map +1 -1
  75. package/dist/cjs/stzh-section.cjs.entry.js +3 -3
  76. package/dist/cjs/stzh-section.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-space.cjs.entry.js +1 -1
  80. package/dist/cjs/stzh-space.cjs.entry.js.map +1 -1
  81. package/dist/cjs/stzh-textandimage.cjs.entry.js +10 -8
  82. package/dist/cjs/stzh-textandimage.cjs.entry.js.map +1 -1
  83. package/dist/cjs/stzh-timepicker.cjs.entry.js.map +1 -1
  84. package/dist/cjs/stzh-toggle.cjs.entry.js.map +1 -1
  85. package/dist/cjs/stzh-tooltip.cjs.entry.js +36 -51
  86. package/dist/cjs/stzh-tooltip.cjs.entry.js.map +1 -1
  87. package/dist/cjs/stzh-upload.cjs.entry.js +65 -31
  88. package/dist/cjs/stzh-upload.cjs.entry.js.map +1 -1
  89. package/dist/cjs/stzh-vspace.cjs.entry.js +1 -1
  90. package/dist/cjs/stzh-vspace.cjs.entry.js.map +1 -1
  91. package/dist/collection/assets/i18n/de.json +36 -3
  92. package/dist/collection/assets/i18n/en.json +36 -3
  93. package/dist/collection/collection-manifest.json +7 -0
  94. package/dist/collection/components/stzh-accordion/stzh-accordion.css +16 -0
  95. package/dist/collection/components/stzh-accordion/stzh-accordion.js +38 -20
  96. package/dist/collection/components/stzh-accordion/stzh-accordion.js.map +1 -1
  97. package/dist/collection/components/stzh-accordion/stzh-accordion.stories.js +4 -5
  98. package/dist/collection/components/stzh-accordion-item/stzh-accordion-item.css +3 -0
  99. package/dist/collection/components/stzh-accordion-item/stzh-accordion-item.js +1 -1
  100. package/dist/collection/components/stzh-accordion-item/stzh-accordion-item.stories.js +7 -8
  101. package/dist/collection/components/stzh-actions/stzh-actions.css +3 -0
  102. package/dist/collection/components/stzh-actionset/stzh-actionset.css +3 -0
  103. package/dist/collection/components/stzh-amount/stzh-amount.css +3 -0
  104. package/dist/collection/components/stzh-amount/stzh-amount.js +1 -1
  105. package/dist/collection/components/stzh-amount/stzh-amount.js.map +1 -1
  106. package/dist/collection/components/stzh-anchornav/stzh-anchornav.css +3 -0
  107. package/dist/collection/components/stzh-appointments/stzh-appointments.css +3 -0
  108. package/dist/collection/components/stzh-archivelist/stzh-archivelist.css +3 -0
  109. package/dist/collection/components/stzh-audio/stzh-audio.css +3 -0
  110. package/dist/collection/components/stzh-badge/stzh-badge.css +3 -0
  111. package/dist/collection/components/stzh-banner/stzh-banner.css +3 -0
  112. package/dist/collection/components/stzh-breadcrumb/stzh-breadcrumb.css +3 -0
  113. package/dist/collection/components/stzh-button/stzh-button.css +3 -0
  114. package/dist/collection/components/stzh-buttongroup/stzh-buttongroup.css +3 -0
  115. package/dist/collection/components/stzh-calendar/stzh-calendar.css +3 -0
  116. package/dist/collection/components/stzh-card/stzh-card.css +3 -0
  117. package/dist/collection/components/stzh-card-navigation/stzh-card-navigation.css +3 -0
  118. package/dist/collection/components/stzh-card-navigation/stzh-card-navigation.e2e.js +2 -5
  119. package/dist/collection/components/stzh-card-navigation/stzh-card-navigation.e2e.js.map +1 -1
  120. package/dist/collection/components/stzh-card-searchresult/stzh-card-searchresult.css +3 -0
  121. package/dist/collection/components/stzh-card-searchresult/stzh-card-searchresult.js +5 -18
  122. package/dist/collection/components/stzh-card-searchresult/stzh-card-searchresult.js.map +1 -1
  123. package/dist/collection/components/stzh-card-superteaser/stzh-card-superteaser.css +3 -0
  124. package/dist/collection/components/stzh-cardlist/stzh-cardlist.css +101 -18
  125. package/dist/collection/components/stzh-cardlist/stzh-cardlist.js +6 -8
  126. package/dist/collection/components/stzh-cardlist/stzh-cardlist.js.map +1 -1
  127. package/dist/collection/components/stzh-carousel/stzh-carousel.css +3 -0
  128. package/dist/collection/components/stzh-cell/stzh-cell.css +3 -0
  129. package/dist/collection/components/stzh-chart/stzh-chart.css +3 -0
  130. package/dist/collection/components/stzh-checkbox/stzh-checkbox.css +3 -0
  131. package/dist/collection/components/stzh-checkbox/stzh-checkbox.js +1 -1
  132. package/dist/collection/components/stzh-checkbox/stzh-checkbox.js.map +1 -1
  133. package/dist/collection/components/stzh-checkboxgroup/stzh-checkboxgroup.css +3 -0
  134. package/dist/collection/components/stzh-checkboxgroup/stzh-checkboxgroup.js +1 -1
  135. package/dist/collection/components/stzh-checkboxgroup/stzh-checkboxgroup.js.map +1 -1
  136. package/dist/collection/components/stzh-chip/stzh-chip.css +3 -0
  137. package/dist/collection/components/stzh-chipgroup/stzh-chipgroup.css +3 -0
  138. package/dist/collection/components/stzh-chipselect/stzh-chipselect.css +3 -0
  139. package/dist/collection/components/stzh-chipselect/stzh-chipselect.js +3 -3
  140. package/dist/collection/components/stzh-chipselect/stzh-chipselect.js.map +1 -1
  141. package/dist/collection/components/stzh-chipselect/stzh-chipselect.stories.js +44 -32
  142. package/dist/collection/components/stzh-clamp/stzh-clamp.css +3 -0
  143. package/dist/collection/components/stzh-contact/stzh-contact.css +3 -0
  144. package/dist/collection/components/stzh-contact/stzh-contact.js +48 -41
  145. package/dist/collection/components/stzh-contact/stzh-contact.js.map +1 -1
  146. package/dist/collection/components/stzh-container/stzh-container.css +6 -1
  147. package/dist/collection/components/stzh-content/stzh-content.css +11 -0
  148. package/dist/collection/components/stzh-cspace/stzh-cspace.css +119 -13
  149. package/dist/collection/components/stzh-cta/stzh-cta.css +3 -0
  150. package/dist/collection/components/stzh-datalist/stzh-datalist.css +3 -0
  151. package/dist/collection/components/stzh-datalist-item/stzh-datalist-item.css +5 -2
  152. package/dist/collection/components/stzh-datamessagelist/stzh-datamessagelist.css +3 -0
  153. package/dist/collection/components/stzh-datamessagelist-item/stzh-datamessagelist-item.css +3 -0
  154. package/dist/collection/components/stzh-datamessagelist-item/stzh-datamessagelist-item.stories.js +21 -0
  155. package/dist/collection/components/stzh-datatable/stzh-datatable.css +3 -0
  156. package/dist/collection/components/stzh-datepicker/stzh-datepicker.css +3 -0
  157. package/dist/collection/components/stzh-datepicker/stzh-datepicker.js +1 -1
  158. package/dist/collection/components/stzh-datepicker/stzh-datepicker.js.map +1 -1
  159. package/dist/collection/components/stzh-daterange/stzh-daterange.css +3 -0
  160. package/dist/collection/components/stzh-details/stzh-details.css +3 -0
  161. package/dist/collection/components/stzh-dialog/stzh-dialog.css +3 -0
  162. package/dist/collection/components/stzh-disturber/stzh-disturber.css +3 -0
  163. package/dist/collection/components/stzh-dropdown/stzh-dropdown.css +7 -0
  164. package/dist/collection/components/stzh-dropdown/stzh-dropdown.js +1 -1
  165. package/dist/collection/components/stzh-dropdown/stzh-dropdown.js.map +1 -1
  166. package/dist/collection/components/stzh-editor/stzh-editor.css +3 -0
  167. package/dist/collection/components/stzh-eventdata/stzh-eventdata.css +3 -0
  168. package/dist/collection/components/stzh-eventinfo/stzh-eventinfo.css +3 -0
  169. package/dist/collection/components/stzh-fieldset/stzh-fieldset.css +3 -0
  170. package/dist/collection/components/stzh-fieldset/stzh-fieldset.js +1 -1
  171. package/dist/collection/components/stzh-figure/stzh-figure.css +3 -0
  172. package/dist/collection/components/stzh-flyingfocus/stzh-flyingfocus.css +3 -0
  173. package/dist/collection/components/stzh-footer/stzh-footer.css +3 -0
  174. package/dist/collection/components/stzh-footer/stzh-footer.stories.js +17 -5
  175. package/dist/collection/components/stzh-gallery/stzh-gallery.css +3 -11
  176. package/dist/collection/components/stzh-ghettobox/stzh-ghettobox.css +3 -0
  177. package/dist/collection/components/stzh-header/stzh-header.css +34 -14
  178. package/dist/collection/components/stzh-header/stzh-header.js +246 -167
  179. package/dist/collection/components/stzh-header/stzh-header.js.map +1 -1
  180. package/dist/collection/components/stzh-header/stzh-header.stories.js +176 -120
  181. package/dist/collection/components/stzh-heading/stzh-heading.css +36 -0
  182. package/dist/collection/components/stzh-heading/stzh-heading.js +1 -1
  183. package/dist/collection/components/stzh-homepage-service-highlights/stzh-homepage-service-highlights.css +387 -0
  184. package/dist/collection/components/stzh-homepage-service-highlights/stzh-homepage-service-highlights.e2e.js +23 -0
  185. package/dist/collection/components/stzh-homepage-service-highlights/stzh-homepage-service-highlights.e2e.js.map +1 -0
  186. package/dist/collection/components/stzh-homepage-service-highlights/stzh-homepage-service-highlights.js +159 -0
  187. package/dist/collection/components/stzh-homepage-service-highlights/stzh-homepage-service-highlights.js.map +1 -0
  188. package/dist/collection/components/stzh-homepage-service-highlights/stzh-homepage-service-highlights.stories.js +100 -0
  189. package/dist/collection/components/stzh-hr/stzh-hr.css +3 -0
  190. package/dist/collection/components/stzh-hspace/stzh-hspace.css +12 -0
  191. package/dist/collection/components/stzh-icon/stzh-icon.css +3 -0
  192. package/dist/collection/components/stzh-iframe/stzh-iframe.css +3 -0
  193. package/dist/collection/components/stzh-imagecomparison/stzh-imagecomparison.css +3 -0
  194. package/dist/collection/components/stzh-input/stzh-input.css +10 -0
  195. package/dist/collection/components/stzh-input/stzh-input.js +29 -44
  196. package/dist/collection/components/stzh-input/stzh-input.js.map +1 -1
  197. package/dist/collection/components/stzh-invert/stzh-invert.css +3 -0
  198. package/dist/collection/components/stzh-link/stzh-link.css +3 -0
  199. package/dist/collection/components/stzh-list/stzh-list.css +3 -0
  200. package/dist/collection/components/stzh-list-item/stzh-list-item.css +3 -0
  201. package/dist/collection/components/stzh-loader/stzh-loader.css +3 -0
  202. package/dist/collection/components/stzh-loadingbar/stzh-loadingbar.css +3 -0
  203. package/dist/collection/components/stzh-menu/stzh-menu.css +3 -0
  204. package/dist/collection/components/stzh-menu-item/stzh-menu-item.css +3 -0
  205. package/dist/collection/components/stzh-message/stzh-message.css +7 -19
  206. package/dist/collection/components/stzh-microsite-teaserlist/stzh-microsite-teaserlist.css +3 -0
  207. package/dist/collection/components/stzh-monthyearpicker/stzh-monthyearpicker.css +3 -0
  208. package/dist/collection/components/stzh-monthyearpicker/stzh-monthyearpicker.js +1 -1
  209. package/dist/collection/components/stzh-monthyearpicker/stzh-monthyearpicker.js.map +1 -1
  210. package/dist/collection/components/stzh-olmap/stzh-olmap.css +3 -0
  211. package/dist/collection/components/stzh-overlay/stzh-overlay.css +3 -0
  212. package/dist/collection/components/stzh-page-skiplinks/stzh-page-skiplinks.css +3 -0
  213. package/dist/collection/components/stzh-pagebottom/stzh-pagebottom.css +3 -0
  214. package/dist/collection/components/stzh-pagecontent/stzh-pagecontent.css +3 -0
  215. package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.css +8 -0
  216. package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.js +34 -15
  217. package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.js.map +1 -1
  218. package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.stories.js +29 -10
  219. package/dist/collection/components/stzh-pagetitle-hero/stzh-pagetitle-hero.css +3 -0
  220. package/dist/collection/components/stzh-pagetitle-home/stzh-pagetitle-home.css +461 -0
  221. package/dist/collection/components/stzh-pagetitle-home/stzh-pagetitle-home.e2e.js +23 -0
  222. package/dist/collection/components/stzh-pagetitle-home/stzh-pagetitle-home.e2e.js.map +1 -0
  223. package/dist/collection/components/stzh-pagetitle-home/stzh-pagetitle-home.js +86 -0
  224. package/dist/collection/components/stzh-pagetitle-home/stzh-pagetitle-home.js.map +1 -0
  225. package/dist/collection/components/stzh-pagetitle-home/stzh-pagetitle-home.stories.js +99 -0
  226. package/dist/collection/components/stzh-pagination/stzh-pagination.css +3 -0
  227. package/dist/collection/components/stzh-panorama/stzh-panorama.css +54 -63
  228. package/dist/collection/components/stzh-panorama/stzh-panorama.js +106 -26
  229. package/dist/collection/components/stzh-panorama/stzh-panorama.js.map +1 -1
  230. package/dist/collection/components/stzh-panorama/stzh-panorama.localization.js.map +1 -1
  231. package/dist/collection/components/stzh-panorama/stzh-panorama.stories.js +40 -36
  232. package/dist/collection/components/stzh-pi-content-navigation/stzh-pi-content-navigation.css +443 -0
  233. package/dist/collection/components/stzh-pi-content-navigation/stzh-pi-content-navigation.e2e.js +16 -0
  234. package/dist/collection/components/stzh-pi-content-navigation/stzh-pi-content-navigation.e2e.js.map +1 -0
  235. package/dist/collection/components/stzh-pi-content-navigation/stzh-pi-content-navigation.js +218 -0
  236. package/dist/collection/components/stzh-pi-content-navigation/stzh-pi-content-navigation.js.map +1 -0
  237. package/dist/collection/components/stzh-pi-content-navigation/stzh-pi-content-navigation.stories.js +62 -0
  238. package/dist/collection/components/stzh-pi-menu/stzh-pi-menu.css +503 -0
  239. package/dist/collection/components/stzh-pi-menu/stzh-pi-menu.e2e.js +16 -0
  240. package/dist/collection/components/stzh-pi-menu/stzh-pi-menu.e2e.js.map +1 -0
  241. package/dist/collection/components/stzh-pi-menu/stzh-pi-menu.js +527 -0
  242. package/dist/collection/components/stzh-pi-menu/stzh-pi-menu.js.map +1 -0
  243. package/dist/collection/components/stzh-pi-menu/stzh-pi-menu.localization.js +2 -0
  244. package/dist/collection/components/stzh-pi-menu/stzh-pi-menu.localization.js.map +1 -0
  245. package/dist/collection/components/stzh-pi-menu/stzh-pi-menu.stories.js +138 -0
  246. package/dist/collection/components/stzh-pi-pagetitle/stzh-pi-pagetitle.css +944 -0
  247. package/dist/collection/components/stzh-pi-pagetitle/stzh-pi-pagetitle.e2e.js +23 -0
  248. package/dist/collection/components/stzh-pi-pagetitle/stzh-pi-pagetitle.e2e.js.map +1 -0
  249. package/dist/collection/components/stzh-pi-pagetitle/stzh-pi-pagetitle.js +149 -0
  250. package/dist/collection/components/stzh-pi-pagetitle/stzh-pi-pagetitle.js.map +1 -0
  251. package/dist/collection/components/stzh-pi-pagetitle/stzh-pi-pagetitle.stories.js +184 -0
  252. package/dist/collection/components/stzh-pi-quote/stzh-pi-quote.css +301 -0
  253. package/dist/collection/components/stzh-pi-quote/stzh-pi-quote.e2e.js +16 -0
  254. package/dist/collection/components/stzh-pi-quote/stzh-pi-quote.e2e.js.map +1 -0
  255. package/dist/collection/components/stzh-pi-quote/stzh-pi-quote.js +48 -0
  256. package/dist/collection/components/stzh-pi-quote/stzh-pi-quote.js.map +1 -0
  257. package/dist/collection/components/stzh-pi-quote/stzh-pi-quote.stories.js +42 -0
  258. package/dist/collection/components/stzh-pi-teaser/stzh-pi-teaser.css +364 -0
  259. package/dist/collection/components/stzh-pi-teaser/stzh-pi-teaser.e2e.js +16 -0
  260. package/dist/collection/components/stzh-pi-teaser/stzh-pi-teaser.e2e.js.map +1 -0
  261. package/dist/collection/components/stzh-pi-teaser/stzh-pi-teaser.js +234 -0
  262. package/dist/collection/components/stzh-pi-teaser/stzh-pi-teaser.js.map +1 -0
  263. package/dist/collection/components/stzh-pi-teaser/stzh-pi-teaser.stories.js +66 -0
  264. package/dist/collection/components/stzh-popover/stzh-popover.css +3 -0
  265. package/dist/collection/components/stzh-print/stzh-print.css +3 -0
  266. package/dist/collection/components/stzh-progressbar/stzh-progressbar.css +3 -0
  267. package/dist/collection/components/stzh-progressbar/stzh-progressbar.js +20 -1
  268. package/dist/collection/components/stzh-progressbar/stzh-progressbar.js.map +1 -1
  269. package/dist/collection/components/stzh-progressbar/stzh-progressbar.stories.js +9 -0
  270. package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.css +11 -2
  271. package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.js +24 -2
  272. package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.js.map +1 -1
  273. package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.stories.js +16 -0
  274. package/dist/collection/components/stzh-radio/stzh-radio.css +3 -0
  275. package/dist/collection/components/stzh-radio/stzh-radio.js +20 -21
  276. package/dist/collection/components/stzh-radio/stzh-radio.js.map +1 -1
  277. package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.css +3 -0
  278. package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.js +14 -15
  279. package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.js.map +1 -1
  280. package/dist/collection/components/stzh-ratio/stzh-ratio.css +3 -0
  281. package/dist/collection/components/stzh-ratio/stzh-ratio.js +2 -2
  282. package/dist/collection/components/stzh-ratio/stzh-ratio.js.map +1 -1
  283. package/dist/collection/components/stzh-readspeaker/stzh-readspeaker.css +3 -0
  284. package/dist/collection/components/stzh-readspeaker/stzh-readspeaker.js +1 -0
  285. package/dist/collection/components/stzh-readspeaker/stzh-readspeaker.js.map +1 -1
  286. package/dist/collection/components/stzh-richtext/stzh-richtext.css +3 -0
  287. package/dist/collection/components/stzh-row/stzh-row.css +3 -0
  288. package/dist/collection/components/stzh-saptcha/stzh-saptcha.css +3 -0
  289. package/dist/collection/components/stzh-scrollup/stzh-scrollup.css +3 -0
  290. package/dist/collection/components/stzh-search/stzh-search.css +137 -23
  291. package/dist/collection/components/stzh-search/stzh-search.js +132 -47
  292. package/dist/collection/components/stzh-search/stzh-search.js.map +1 -1
  293. package/dist/collection/components/stzh-search/stzh-search.stories.js +125 -26
  294. package/dist/collection/components/stzh-section/stzh-section.css +81 -9
  295. package/dist/collection/components/stzh-section/stzh-section.js +5 -5
  296. package/dist/collection/components/stzh-section/stzh-section.js.map +1 -1
  297. package/dist/collection/components/stzh-share/stzh-share.css +3 -0
  298. package/dist/collection/components/stzh-show/stzh-show.css +3 -0
  299. package/dist/collection/components/stzh-sitemap/stzh-sitemap.css +3 -0
  300. package/dist/collection/components/stzh-skin-portal-mitwirken/stzh-skin-portal-mitwirken.css +587 -212
  301. package/dist/collection/components/stzh-skin-storybook-preview/stzh-skin-storybook-preview.css +3 -0
  302. package/dist/collection/components/stzh-skiplink/stzh-skiplink.css +3 -0
  303. package/dist/collection/components/stzh-sortable/stzh-sortable.css +3 -0
  304. package/dist/collection/components/stzh-space/stzh-space.css +12 -0
  305. package/dist/collection/components/stzh-status/stzh-status.css +3 -0
  306. package/dist/collection/components/stzh-sticky/stzh-sticky.css +3 -0
  307. package/dist/collection/components/stzh-sticky-actions/stzh-sticky-actions.css +3 -0
  308. package/dist/collection/components/stzh-table/stzh-table.css +3 -0
  309. package/dist/collection/components/stzh-tag/stzh-tag.css +3 -0
  310. package/dist/collection/components/stzh-text/stzh-text.css +135 -0
  311. package/dist/collection/components/stzh-text/stzh-text.js +1 -1
  312. package/dist/collection/components/stzh-textandimage/stzh-textandimage.css +71 -35
  313. package/dist/collection/components/stzh-textandimage/stzh-textandimage.js +28 -8
  314. package/dist/collection/components/stzh-textandimage/stzh-textandimage.js.map +1 -1
  315. package/dist/collection/components/stzh-textandimage/stzh-textandimage.stories.js +37 -22
  316. package/dist/collection/components/stzh-timeline/stzh-timeline.css +3 -0
  317. package/dist/collection/components/stzh-timeline-item/stzh-timeline-item.css +3 -0
  318. package/dist/collection/components/stzh-timepicker/stzh-timepicker.css +3 -0
  319. package/dist/collection/components/stzh-timepicker/stzh-timepicker.js +1 -1
  320. package/dist/collection/components/stzh-timepicker/stzh-timepicker.js.map +1 -1
  321. package/dist/collection/components/stzh-toast/stzh-toast.css +3 -0
  322. package/dist/collection/components/stzh-toastbar/stzh-toastbar.css +3 -0
  323. package/dist/collection/components/stzh-toggle/stzh-toggle.css +3 -0
  324. package/dist/collection/components/stzh-toggle/stzh-toggle.js +1 -1
  325. package/dist/collection/components/stzh-toggle/stzh-toggle.js.map +1 -1
  326. package/dist/collection/components/stzh-tooltip/stzh-tooltip.css +9 -0
  327. package/dist/collection/components/stzh-tooltip/stzh-tooltip.js +56 -53
  328. package/dist/collection/components/stzh-tooltip/stzh-tooltip.js.map +1 -1
  329. package/dist/collection/components/stzh-twocolumns/stzh-twocolumns.css +3 -0
  330. package/dist/collection/components/stzh-upload/stzh-upload.css +3 -0
  331. package/dist/collection/components/stzh-upload/stzh-upload.js +69 -35
  332. package/dist/collection/components/stzh-upload/stzh-upload.js.map +1 -1
  333. package/dist/collection/components/stzh-vbz-carousel/stzh-vbz-carousel.css +3 -0
  334. package/dist/collection/components/stzh-vbz-linechip/stzh-vbz-linechip.css +3 -0
  335. package/dist/collection/components/stzh-vbz-majorticker/stzh-vbz-majorticker.css +3 -0
  336. package/dist/collection/components/stzh-vbz-ticker/stzh-vbz-ticker.css +3 -0
  337. package/dist/collection/components/stzh-visuallyhidden/stzh-visuallyhidden.css +3 -0
  338. package/dist/collection/components/stzh-vspace/stzh-vspace.css +12 -0
  339. package/dist/collection/components/stzh-youtube/stzh-youtube.css +3 -0
  340. package/dist/collection/index.js +1 -1
  341. package/dist/collection/index.js.map +1 -1
  342. package/dist/collection/pages/home/home.e2e.js +16 -0
  343. package/dist/collection/pages/home/home.e2e.js.map +1 -0
  344. package/dist/collection/pages/publizistische-inhalte/publizistische-inhalte.e2e.js +16 -0
  345. package/dist/collection/pages/publizistische-inhalte/publizistische-inhalte.e2e.js.map +1 -0
  346. package/dist/components/index.js +1 -1
  347. package/dist/components/index2.js.map +1 -1
  348. package/dist/components/stzh-accordion2.js +27 -20
  349. package/dist/components/stzh-accordion2.js.map +1 -1
  350. package/dist/components/stzh-amount.js.map +1 -1
  351. package/dist/components/stzh-card-searchresult.js +5 -18
  352. package/dist/components/stzh-card-searchresult.js.map +1 -1
  353. package/dist/components/stzh-cardlist2.js +5 -7
  354. package/dist/components/stzh-cardlist2.js.map +1 -1
  355. package/dist/components/stzh-checkbox.js.map +1 -1
  356. package/dist/components/stzh-checkboxgroup.js.map +1 -1
  357. package/dist/components/stzh-chipgroup.js +1 -31
  358. package/dist/components/stzh-chipgroup.js.map +1 -1
  359. package/dist/{esm/stzh-chipgroup.entry.js → components/stzh-chipgroup2.js} +23 -9
  360. package/dist/components/stzh-chipgroup2.js.map +1 -0
  361. package/dist/components/stzh-chipselect2.js +2 -2
  362. package/dist/components/stzh-chipselect2.js.map +1 -1
  363. package/dist/components/stzh-contact.js +43 -38
  364. package/dist/components/stzh-contact.js.map +1 -1
  365. package/dist/components/stzh-container.js +1 -1
  366. package/dist/components/stzh-container.js.map +1 -1
  367. package/dist/components/stzh-content.js +1 -1
  368. package/dist/components/stzh-content.js.map +1 -1
  369. package/dist/components/stzh-cspace.js +1 -1
  370. package/dist/components/stzh-cspace.js.map +1 -1
  371. package/dist/components/stzh-datalist-item2.js +1 -1
  372. package/dist/components/stzh-datalist-item2.js.map +1 -1
  373. package/dist/components/stzh-datatable.js +22 -16
  374. package/dist/components/stzh-datatable.js.map +1 -1
  375. package/dist/components/stzh-datepicker2.js.map +1 -1
  376. package/dist/components/stzh-dropdown2.js +1 -1
  377. package/dist/components/stzh-dropdown2.js.map +1 -1
  378. package/dist/components/stzh-gallery.js +1 -1
  379. package/dist/components/stzh-gallery.js.map +1 -1
  380. package/dist/components/stzh-header.js +179 -167
  381. package/dist/components/stzh-header.js.map +1 -1
  382. package/dist/components/stzh-heading2.js +1 -1
  383. package/dist/components/stzh-heading2.js.map +1 -1
  384. package/dist/components/stzh-homepage-service-highlights.d.ts +11 -0
  385. package/dist/components/stzh-homepage-service-highlights.js +151 -0
  386. package/dist/components/stzh-homepage-service-highlights.js.map +1 -0
  387. package/dist/components/stzh-hspace2.js +1 -1
  388. package/dist/components/stzh-hspace2.js.map +1 -1
  389. package/dist/components/stzh-input2.js +29 -44
  390. package/dist/components/stzh-input2.js.map +1 -1
  391. package/dist/components/stzh-message2.js +1 -1
  392. package/dist/components/stzh-message2.js.map +1 -1
  393. package/dist/components/stzh-monthyearpicker.js.map +1 -1
  394. package/dist/components/stzh-pagetitle-home.d.ts +11 -0
  395. package/dist/components/stzh-pagetitle-home.js +96 -0
  396. package/dist/components/stzh-pagetitle-home.js.map +1 -0
  397. package/dist/components/stzh-pagetitle.js +17 -15
  398. package/dist/components/stzh-pagetitle.js.map +1 -1
  399. package/dist/components/stzh-panorama.js +71 -36
  400. package/dist/components/stzh-panorama.js.map +1 -1
  401. package/dist/components/stzh-pi-content-navigation.d.ts +11 -0
  402. package/dist/components/stzh-pi-content-navigation.js +96 -0
  403. package/dist/components/stzh-pi-content-navigation.js.map +1 -0
  404. package/dist/components/stzh-pi-menu.d.ts +11 -0
  405. package/dist/components/stzh-pi-menu.js +239 -0
  406. package/dist/components/stzh-pi-menu.js.map +1 -0
  407. package/dist/components/stzh-pi-pagetitle.d.ts +11 -0
  408. package/dist/components/stzh-pi-pagetitle.js +107 -0
  409. package/dist/components/stzh-pi-pagetitle.js.map +1 -0
  410. package/dist/components/stzh-pi-quote.d.ts +11 -0
  411. package/dist/components/stzh-pi-quote.js +41 -0
  412. package/dist/components/stzh-pi-quote.js.map +1 -0
  413. package/dist/components/stzh-pi-teaser.d.ts +11 -0
  414. package/dist/components/stzh-pi-teaser.js +89 -0
  415. package/dist/components/stzh-pi-teaser.js.map +1 -0
  416. package/dist/components/stzh-progressbar-item2.js +8 -3
  417. package/dist/components/stzh-progressbar-item2.js.map +1 -1
  418. package/dist/components/stzh-progressbar.js +3 -1
  419. package/dist/components/stzh-progressbar.js.map +1 -1
  420. package/dist/components/stzh-radio2.js +18 -19
  421. package/dist/components/stzh-radio2.js.map +1 -1
  422. package/dist/components/stzh-radiogroup2.js +13 -14
  423. package/dist/components/stzh-radiogroup2.js.map +1 -1
  424. package/dist/components/stzh-ratio2.js +1 -1
  425. package/dist/components/stzh-ratio2.js.map +1 -1
  426. package/dist/components/stzh-readspeaker.js +1 -0
  427. package/dist/components/stzh-readspeaker.js.map +1 -1
  428. package/dist/components/stzh-search.js +126 -61
  429. package/dist/components/stzh-search.js.map +1 -1
  430. package/dist/components/stzh-section.js +3 -3
  431. package/dist/components/stzh-section.js.map +1 -1
  432. package/dist/components/stzh-skin-portal-mitwirken.js +1 -1
  433. package/dist/components/stzh-skin-portal-mitwirken.js.map +1 -1
  434. package/dist/components/stzh-space.js +1 -1
  435. package/dist/components/stzh-space.js.map +1 -1
  436. package/dist/components/stzh-text2.js +1 -1
  437. package/dist/components/stzh-text2.js.map +1 -1
  438. package/dist/components/stzh-textandimage.js +12 -9
  439. package/dist/components/stzh-textandimage.js.map +1 -1
  440. package/dist/components/stzh-timepicker.js.map +1 -1
  441. package/dist/components/stzh-toggle.js.map +1 -1
  442. package/dist/components/stzh-tooltip2.js +37 -51
  443. package/dist/components/stzh-tooltip2.js.map +1 -1
  444. package/dist/components/stzh-upload.js +65 -31
  445. package/dist/components/stzh-upload.js.map +1 -1
  446. package/dist/components/stzh-vspace.js +1 -1
  447. package/dist/components/stzh-vspace.js.map +1 -1
  448. package/dist/esm/{app-globals-f9c4987b.js → app-globals-ab5b077d.js} +2 -2
  449. package/dist/esm/{app-globals-f9c4987b.js.map → app-globals-ab5b077d.js.map} +1 -1
  450. package/dist/esm/index-e3050b18.js +46 -18
  451. package/dist/esm/index.js.map +1 -1
  452. package/dist/esm/loader.js +2 -2
  453. package/dist/esm/stzh-accordion_3.entry.js +19 -19
  454. package/dist/esm/stzh-accordion_3.entry.js.map +1 -1
  455. package/dist/esm/stzh-amount.entry.js.map +1 -1
  456. package/dist/esm/stzh-card-searchresult.entry.js +5 -18
  457. package/dist/esm/stzh-card-searchresult.entry.js.map +1 -1
  458. package/dist/esm/{stzh-card_3.entry.js → stzh-card_2.entry.js} +7 -222
  459. package/dist/esm/stzh-card_2.entry.js.map +1 -0
  460. package/dist/esm/stzh-checkbox.entry.js.map +1 -1
  461. package/dist/esm/stzh-checkboxgroup.entry.js.map +1 -1
  462. package/dist/esm/{stzh-message.entry.js → stzh-chipgroup_2.entry.js} +20 -4
  463. package/dist/esm/stzh-chipgroup_2.entry.js.map +1 -0
  464. package/dist/esm/stzh-chipselect.entry.js +218 -0
  465. package/dist/esm/stzh-chipselect.entry.js.map +1 -0
  466. package/dist/esm/stzh-components.js +2 -2
  467. package/dist/esm/stzh-contact.entry.js +40 -37
  468. package/dist/esm/stzh-contact.entry.js.map +1 -1
  469. package/dist/esm/stzh-container.entry.js +1 -1
  470. package/dist/esm/stzh-container.entry.js.map +1 -1
  471. package/dist/esm/stzh-content.entry.js +1 -1
  472. package/dist/esm/stzh-content.entry.js.map +1 -1
  473. package/dist/esm/stzh-cspace.entry.js +1 -1
  474. package/dist/esm/stzh-cspace.entry.js.map +1 -1
  475. package/dist/esm/stzh-datalist_2.entry.js +1 -1
  476. package/dist/esm/stzh-datalist_2.entry.js.map +1 -1
  477. package/dist/esm/stzh-datepicker_3.entry.js +31 -33
  478. package/dist/esm/stzh-datepicker_3.entry.js.map +1 -1
  479. package/dist/esm/stzh-dropdown.entry.js +1 -1
  480. package/dist/esm/stzh-dropdown.entry.js.map +1 -1
  481. package/dist/esm/stzh-gallery.entry.js +1 -1
  482. package/dist/esm/stzh-gallery.entry.js.map +1 -1
  483. package/dist/esm/stzh-header.entry.js +175 -166
  484. package/dist/esm/stzh-header.entry.js.map +1 -1
  485. package/dist/esm/stzh-heading.entry.js +1 -1
  486. package/dist/esm/stzh-heading.entry.js.map +1 -1
  487. package/dist/esm/stzh-homepage-service-highlights.entry.js +98 -0
  488. package/dist/esm/stzh-homepage-service-highlights.entry.js.map +1 -0
  489. package/dist/esm/stzh-hspace.entry.js +1 -1
  490. package/dist/esm/stzh-hspace.entry.js.map +1 -1
  491. package/dist/esm/stzh-input.entry.js +29 -44
  492. package/dist/esm/stzh-input.entry.js.map +1 -1
  493. package/dist/esm/stzh-monthyearpicker.entry.js.map +1 -1
  494. package/dist/esm/stzh-pagetitle-home.entry.js +72 -0
  495. package/dist/esm/stzh-pagetitle-home.entry.js.map +1 -0
  496. package/dist/esm/stzh-pagetitle.entry.js +16 -15
  497. package/dist/esm/stzh-pagetitle.entry.js.map +1 -1
  498. package/dist/esm/stzh-panorama.entry.js +52 -26
  499. package/dist/esm/stzh-panorama.entry.js.map +1 -1
  500. package/dist/esm/stzh-pi-content-navigation.entry.js +60 -0
  501. package/dist/esm/stzh-pi-content-navigation.entry.js.map +1 -0
  502. package/dist/esm/stzh-pi-menu.entry.js +198 -0
  503. package/dist/esm/stzh-pi-menu.entry.js.map +1 -0
  504. package/dist/esm/stzh-pi-pagetitle.entry.js +79 -0
  505. package/dist/esm/stzh-pi-pagetitle.entry.js.map +1 -0
  506. package/dist/esm/stzh-pi-quote.entry.js +22 -0
  507. package/dist/esm/stzh-pi-quote.entry.js.map +1 -0
  508. package/dist/esm/stzh-pi-teaser.entry.js +58 -0
  509. package/dist/esm/stzh-pi-teaser.entry.js.map +1 -0
  510. package/dist/esm/stzh-popover_2.entry.js +1 -1
  511. package/dist/esm/stzh-popover_2.entry.js.map +1 -1
  512. package/dist/esm/stzh-progressbar-item.entry.js +7 -3
  513. package/dist/esm/stzh-progressbar-item.entry.js.map +1 -1
  514. package/dist/esm/stzh-progressbar.entry.js +2 -1
  515. package/dist/esm/stzh-progressbar.entry.js.map +1 -1
  516. package/dist/esm/stzh-ratio.entry.js +1 -1
  517. package/dist/esm/stzh-ratio.entry.js.map +1 -1
  518. package/dist/esm/stzh-readspeaker.entry.js +1 -0
  519. package/dist/esm/stzh-readspeaker.entry.js.map +1 -1
  520. package/dist/esm/stzh-search.entry.js +70 -45
  521. package/dist/esm/stzh-search.entry.js.map +1 -1
  522. package/dist/esm/stzh-section.entry.js +3 -3
  523. package/dist/esm/stzh-section.entry.js.map +1 -1
  524. package/dist/esm/stzh-skin-portal-mitwirken.entry.js +1 -1
  525. package/dist/esm/stzh-skin-portal-mitwirken.entry.js.map +1 -1
  526. package/dist/esm/stzh-space.entry.js +1 -1
  527. package/dist/esm/stzh-space.entry.js.map +1 -1
  528. package/dist/esm/stzh-textandimage.entry.js +10 -8
  529. package/dist/esm/stzh-textandimage.entry.js.map +1 -1
  530. package/dist/esm/stzh-timepicker.entry.js.map +1 -1
  531. package/dist/esm/stzh-toggle.entry.js.map +1 -1
  532. package/dist/esm/stzh-tooltip.entry.js +36 -51
  533. package/dist/esm/stzh-tooltip.entry.js.map +1 -1
  534. package/dist/esm/stzh-upload.entry.js +65 -31
  535. package/dist/esm/stzh-upload.entry.js.map +1 -1
  536. package/dist/esm/stzh-vspace.entry.js +1 -1
  537. package/dist/esm/stzh-vspace.entry.js.map +1 -1
  538. package/dist/stzh-components/assets/i18n/de.json +36 -3
  539. package/dist/stzh-components/assets/i18n/en.json +36 -3
  540. package/dist/stzh-components/index.esm.js.map +1 -1
  541. package/dist/stzh-components/p-012dc71e.entry.js +2 -0
  542. package/dist/stzh-components/{p-91b360c9.entry.js.map → p-012dc71e.entry.js.map} +1 -1
  543. package/dist/stzh-components/p-0b381244.entry.js +2 -0
  544. package/dist/stzh-components/{p-8b608a1b.entry.js.map → p-0b381244.entry.js.map} +1 -1
  545. package/dist/stzh-components/p-0c67b73d.entry.js +2 -0
  546. package/dist/stzh-components/p-0c67b73d.entry.js.map +1 -0
  547. package/dist/stzh-components/p-0fb40e48.entry.js.map +1 -1
  548. package/dist/stzh-components/p-1bc9a18d.entry.js +2 -0
  549. package/dist/stzh-components/{p-ca76966e.entry.js.map → p-1bc9a18d.entry.js.map} +1 -1
  550. package/dist/stzh-components/p-1f0e8499.entry.js +2 -0
  551. package/dist/stzh-components/p-1f0e8499.entry.js.map +1 -0
  552. package/dist/stzh-components/{p-744c2183.entry.js → p-204a6e41.entry.js} +2 -2
  553. package/dist/stzh-components/p-204a6e41.entry.js.map +1 -0
  554. package/dist/stzh-components/p-2096f3c6.entry.js.map +1 -1
  555. package/dist/stzh-components/{p-faec0661.entry.js → p-2ba166dd.entry.js} +2 -2
  556. package/dist/stzh-components/p-2ba166dd.entry.js.map +1 -0
  557. package/dist/stzh-components/{p-dff1ce7c.entry.js → p-37fbb5f0.entry.js} +2 -2
  558. package/dist/stzh-components/{p-dff1ce7c.entry.js.map → p-37fbb5f0.entry.js.map} +1 -1
  559. package/dist/stzh-components/p-4f49450d.entry.js +2 -0
  560. package/dist/stzh-components/p-4f49450d.entry.js.map +1 -0
  561. package/dist/stzh-components/p-52a914cd.entry.js +2 -0
  562. package/dist/stzh-components/p-52a914cd.entry.js.map +1 -0
  563. package/dist/stzh-components/p-56346206.entry.js +2 -0
  564. package/dist/stzh-components/p-56346206.entry.js.map +1 -0
  565. package/dist/stzh-components/p-59a1a257.entry.js +2 -0
  566. package/dist/stzh-components/p-59a1a257.entry.js.map +1 -0
  567. package/dist/stzh-components/p-5c3fddec.entry.js +2 -0
  568. package/dist/stzh-components/p-5c3fddec.entry.js.map +1 -0
  569. package/dist/stzh-components/p-673f842d.entry.js +2 -0
  570. package/dist/stzh-components/p-673f842d.entry.js.map +1 -0
  571. package/dist/stzh-components/p-6c2289da.entry.js.map +1 -1
  572. package/dist/stzh-components/p-722b9e40.entry.js.map +1 -1
  573. package/dist/stzh-components/{p-af87b81a.entry.js → p-75b79adf.entry.js} +2 -2
  574. package/dist/stzh-components/p-75b79adf.entry.js.map +1 -0
  575. package/dist/stzh-components/p-771d370d.entry.js +2 -0
  576. package/dist/stzh-components/p-771d370d.entry.js.map +1 -0
  577. package/dist/stzh-components/p-77ba1f21.entry.js +2 -0
  578. package/dist/stzh-components/p-77ba1f21.entry.js.map +1 -0
  579. package/dist/stzh-components/p-78a16599.entry.js +2 -0
  580. package/dist/stzh-components/p-78a16599.entry.js.map +1 -0
  581. package/dist/stzh-components/p-7aac960b.entry.js.map +1 -1
  582. package/dist/stzh-components/p-7ca981d1.entry.js +2 -0
  583. package/dist/stzh-components/p-7ca981d1.entry.js.map +1 -0
  584. package/dist/stzh-components/p-7d030c40.entry.js +2 -0
  585. package/dist/stzh-components/p-7d030c40.entry.js.map +1 -0
  586. package/dist/stzh-components/{p-b22876e5.entry.js → p-7efbb643.entry.js} +2 -2
  587. package/dist/stzh-components/p-7efbb643.entry.js.map +1 -0
  588. package/dist/stzh-components/p-801af922.entry.js +2 -0
  589. package/dist/stzh-components/p-801af922.entry.js.map +1 -0
  590. package/dist/stzh-components/p-8503fb10.entry.js +2 -0
  591. package/dist/stzh-components/{p-75045ebb.entry.js.map → p-8503fb10.entry.js.map} +1 -1
  592. package/dist/stzh-components/{p-663f31a2.entry.js → p-909f7fc0.entry.js} +2 -2
  593. package/dist/stzh-components/p-909f7fc0.entry.js.map +1 -0
  594. package/dist/stzh-components/p-969a4f9a.entry.js.map +1 -1
  595. package/dist/stzh-components/{p-5b1bc446.entry.js → p-991309dd.entry.js} +2 -2
  596. package/dist/stzh-components/{p-5b1bc446.entry.js.map → p-991309dd.entry.js.map} +1 -1
  597. package/dist/stzh-components/{p-56826f33.entry.js → p-af7855ff.entry.js} +2 -2
  598. package/dist/stzh-components/p-af7855ff.entry.js.map +1 -0
  599. package/dist/stzh-components/p-afde3fcd.entry.js +2 -0
  600. package/dist/stzh-components/p-afde3fcd.entry.js.map +1 -0
  601. package/dist/stzh-components/p-b41d255f.entry.js +2 -0
  602. package/dist/stzh-components/p-b41d255f.entry.js.map +1 -0
  603. package/dist/stzh-components/{p-af7562ba.entry.js → p-b566a2c0.entry.js} +2 -2
  604. package/dist/stzh-components/p-b566a2c0.entry.js.map +1 -0
  605. package/dist/stzh-components/p-b870c799.entry.js +2 -0
  606. package/dist/stzh-components/p-b870c799.entry.js.map +1 -0
  607. package/dist/stzh-components/p-bb1cacbc.entry.js +2 -0
  608. package/dist/stzh-components/p-bb1cacbc.entry.js.map +1 -0
  609. package/dist/stzh-components/{p-c31b1590.entry.js → p-c1cd45e1.entry.js} +5 -5
  610. package/dist/stzh-components/{p-c31b1590.entry.js.map → p-c1cd45e1.entry.js.map} +1 -1
  611. package/dist/stzh-components/p-c877d32c.entry.js +2 -0
  612. package/dist/stzh-components/{p-6f87ad6e.entry.js.map → p-c877d32c.entry.js.map} +1 -1
  613. package/dist/stzh-components/p-c8ead7fc.entry.js +2 -0
  614. package/dist/stzh-components/{p-f7979f2a.entry.js.map → p-c8ead7fc.entry.js.map} +1 -1
  615. package/dist/stzh-components/{p-f06b2737.js → p-cc1f8acc.js} +2 -2
  616. package/dist/stzh-components/p-cca366c2.entry.js.map +1 -1
  617. package/dist/stzh-components/p-cf856610.entry.js +2 -0
  618. package/dist/stzh-components/p-cf856610.entry.js.map +1 -0
  619. package/dist/stzh-components/{p-2773b08f.entry.js → p-d10a6897.entry.js} +2 -2
  620. package/dist/stzh-components/p-d10a6897.entry.js.map +1 -0
  621. package/dist/stzh-components/{p-929c5234.entry.js → p-d11565a5.entry.js} +3 -3
  622. package/dist/stzh-components/{p-929c5234.entry.js.map → p-d11565a5.entry.js.map} +1 -1
  623. package/dist/stzh-components/p-edf77853.entry.js +2 -0
  624. package/dist/stzh-components/p-edf77853.entry.js.map +1 -0
  625. package/dist/stzh-components/stzh-components.css +1663 -1
  626. package/dist/stzh-components/stzh-components.esm.js +1 -1
  627. package/dist/stzh-components/stzh-components.esm.js.map +1 -1
  628. package/dist/types/components/stzh-accordion/stzh-accordion.d.ts +3 -1
  629. package/dist/types/components/stzh-amount/stzh-amount.d.ts +1 -1
  630. package/dist/types/components/stzh-cardlist/stzh-cardlist.d.ts +2 -2
  631. package/dist/types/components/stzh-checkbox/stzh-checkbox.d.ts +1 -1
  632. package/dist/types/components/stzh-checkboxgroup/stzh-checkboxgroup.d.ts +1 -1
  633. package/dist/types/components/stzh-chipselect/stzh-chipselect.d.ts +1 -1
  634. package/dist/types/components/stzh-contact/stzh-contact.d.ts +7 -3
  635. package/dist/types/components/stzh-datepicker/stzh-datepicker.d.ts +1 -1
  636. package/dist/types/components/stzh-dropdown/stzh-dropdown.d.ts +1 -1
  637. package/dist/types/components/stzh-header/stzh-header.d.ts +15 -2
  638. package/dist/types/components/stzh-homepage-service-highlights/stzh-homepage-service-highlights.d.ts +17 -0
  639. package/dist/types/components/stzh-input/stzh-input.d.ts +1 -1
  640. package/dist/types/components/stzh-monthyearpicker/stzh-monthyearpicker.d.ts +1 -1
  641. package/dist/types/components/stzh-pagetitle/stzh-pagetitle.d.ts +3 -1
  642. package/dist/types/components/stzh-pagetitle-home/stzh-pagetitle-home.d.ts +16 -0
  643. package/dist/types/components/stzh-panorama/stzh-panorama.d.ts +7 -1
  644. package/dist/types/components/stzh-panorama/stzh-panorama.localization.d.ts +1 -0
  645. package/dist/types/components/stzh-pi-content-navigation/stzh-pi-content-navigation.d.ts +36 -0
  646. package/dist/types/components/stzh-pi-menu/stzh-pi-menu.d.ts +62 -0
  647. package/dist/types/components/stzh-pi-menu/stzh-pi-menu.localization.d.ts +4 -0
  648. package/dist/types/components/stzh-pi-pagetitle/stzh-pi-pagetitle.d.ts +20 -0
  649. package/dist/types/components/stzh-pi-quote/stzh-pi-quote.d.ts +5 -0
  650. package/dist/types/components/stzh-pi-teaser/stzh-pi-teaser.d.ts +38 -0
  651. package/dist/types/components/stzh-progressbar/stzh-progressbar.d.ts +4 -0
  652. package/dist/types/components/stzh-progressbar-item/stzh-progressbar-item.d.ts +4 -0
  653. package/dist/types/components/stzh-radio/stzh-radio.d.ts +2 -2
  654. package/dist/types/components/stzh-radiogroup/stzh-radiogroup.d.ts +1 -1
  655. package/dist/types/components/stzh-search/stzh-search.d.ts +11 -1
  656. package/dist/types/components/stzh-section/stzh-section.d.ts +1 -1
  657. package/dist/types/components/stzh-textandimage/stzh-textandimage.d.ts +2 -0
  658. package/dist/types/components/stzh-timepicker/stzh-timepicker.d.ts +1 -1
  659. package/dist/types/components/stzh-toggle/stzh-toggle.d.ts +1 -1
  660. package/dist/types/components/stzh-tooltip/stzh-tooltip.d.ts +3 -1
  661. package/dist/types/components/stzh-upload/stzh-upload.d.ts +2 -2
  662. package/dist/types/components.d.ts +523 -42
  663. package/dist/types/index.d.ts +92 -22
  664. package/dist/vscode-data.json +326 -11
  665. package/package.json +2 -2
  666. package/dist/cjs/stzh-card_3.cjs.entry.js.map +0 -1
  667. package/dist/cjs/stzh-chipgroup.cjs.entry.js +0 -25
  668. package/dist/cjs/stzh-chipgroup.cjs.entry.js.map +0 -1
  669. package/dist/cjs/stzh-message.cjs.entry.js.map +0 -1
  670. package/dist/esm/stzh-card_3.entry.js.map +0 -1
  671. package/dist/esm/stzh-chipgroup.entry.js.map +0 -1
  672. package/dist/esm/stzh-message.entry.js.map +0 -1
  673. package/dist/stzh-components/p-150f4514.entry.js +0 -2
  674. package/dist/stzh-components/p-150f4514.entry.js.map +0 -1
  675. package/dist/stzh-components/p-1a19bc6e.entry.js +0 -2
  676. package/dist/stzh-components/p-1a19bc6e.entry.js.map +0 -1
  677. package/dist/stzh-components/p-1a3dcde3.entry.js +0 -2
  678. package/dist/stzh-components/p-1a3dcde3.entry.js.map +0 -1
  679. package/dist/stzh-components/p-2773b08f.entry.js.map +0 -1
  680. package/dist/stzh-components/p-3b31f90d.entry.js +0 -2
  681. package/dist/stzh-components/p-3b31f90d.entry.js.map +0 -1
  682. package/dist/stzh-components/p-54e73927.entry.js +0 -2
  683. package/dist/stzh-components/p-54e73927.entry.js.map +0 -1
  684. package/dist/stzh-components/p-56826f33.entry.js.map +0 -1
  685. package/dist/stzh-components/p-663f31a2.entry.js.map +0 -1
  686. package/dist/stzh-components/p-6f87ad6e.entry.js +0 -2
  687. package/dist/stzh-components/p-744c2183.entry.js.map +0 -1
  688. package/dist/stzh-components/p-75045ebb.entry.js +0 -2
  689. package/dist/stzh-components/p-8b608a1b.entry.js +0 -2
  690. package/dist/stzh-components/p-8f19c3ec.entry.js +0 -2
  691. package/dist/stzh-components/p-8f19c3ec.entry.js.map +0 -1
  692. package/dist/stzh-components/p-91b360c9.entry.js +0 -2
  693. package/dist/stzh-components/p-9b19785c.entry.js +0 -2
  694. package/dist/stzh-components/p-9b19785c.entry.js.map +0 -1
  695. package/dist/stzh-components/p-af7562ba.entry.js.map +0 -1
  696. package/dist/stzh-components/p-af87b81a.entry.js.map +0 -1
  697. package/dist/stzh-components/p-b22876e5.entry.js.map +0 -1
  698. package/dist/stzh-components/p-b2920d7f.entry.js +0 -2
  699. package/dist/stzh-components/p-b2920d7f.entry.js.map +0 -1
  700. package/dist/stzh-components/p-ca76966e.entry.js +0 -2
  701. package/dist/stzh-components/p-d6a4fe56.entry.js +0 -2
  702. package/dist/stzh-components/p-d6a4fe56.entry.js.map +0 -1
  703. package/dist/stzh-components/p-ea423877.entry.js +0 -2
  704. package/dist/stzh-components/p-ea423877.entry.js.map +0 -1
  705. package/dist/stzh-components/p-ef849bb1.entry.js +0 -2
  706. package/dist/stzh-components/p-ef849bb1.entry.js.map +0 -1
  707. package/dist/stzh-components/p-f5809e5f.entry.js +0 -2
  708. package/dist/stzh-components/p-f5809e5f.entry.js.map +0 -1
  709. package/dist/stzh-components/p-f692c5d0.entry.js +0 -2
  710. package/dist/stzh-components/p-f692c5d0.entry.js.map +0 -1
  711. package/dist/stzh-components/p-f7979f2a.entry.js +0 -2
  712. package/dist/stzh-components/p-faec0661.entry.js.map +0 -1
  713. /package/dist/stzh-components/{p-f06b2737.js.map → p-cc1f8acc.js.map} +0 -0
@@ -1 +1 @@
1
- {"file":"stzh-input.entry.js","mappings":";;;;;AAAA,MAAM,YAAY,GAAG,mrZAAmrZ;;ACyBxsZ,IAAI,YAAY,GAAG,CAAC,CAAC;MAeR,SAAS;;;;;;;IAiKZ,mBAAc,GAAY,KAAK,CAAC;IAOhC,iBAAY,GAAG,OAAO,KAAiB;MAC7C,IAAI,CAA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MAAM,EAChD,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,QAAQ,EAAE,IAAI,EACd,QAAQ,EAAE,IAAI,GACD;;YAEf,IAAI,CAAC,MAAM;;gBAET,mBACE,KAAK,EAAC,0BAA0B,EAChC,IAAI,EAAC,OAAO,EACZ,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,QAAQ,EAAE,IAAI,EACd,OAAO,EAAE,IAAI,CAAC,YAAY,EAC1B,SAAS,EAAE,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,gBAAgB,mBACvC,IAAI,CAAC,OAAO,GACd;;gBAEf,YAAM,IAAI,EAAC,cAAc,GAAQ;;QAGrC,YAAM,IAAI,EAAC,cAAc,GAAQ,CAE/B,EACN,EAAC,oBAAoB,IACnB,WAAW,EAAC,YAAY,EACxB,EAAE,EAAE,GAAG,IAAI,CAAC,OAAO,cAAc,EACjC,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,CACE,CACD,EACP;GACH;;;;;;;;;;;;","names":[],"sources":["src/components/stzh-input/stzh-input.scss?tag=stzh-input&encapsulation=scoped","src/components/stzh-input/stzh-input.tsx"],"sourcesContent":["/**\n * @prop --text-align: Text align of field\n * @prop --input-width: Width of of field\n * @prop --padding-top: Padding top of field\n * @prop --padding-bottom: Padding bottom of field\n * @prop --padding-left: Padding left of field\n * @prop --padding-right: Padding right of field\n *\n * @prop --stzh-form-input-height: **Global**: Height of fields & buttons\n * @prop --stzh-form-input-small-height: **Global**: Height of fields & buttons when small variant is used\n * @prop --stzh-form-input-tiny-height: **Global**: Height of fields & buttons when tiny variant is used\n */\n\n:host {\n --text-align: left;\n --color: #{$formColor};\n --border-color: #{$formBorderColor};\n --border-radius: #{$formInputBorderRadius};\n --background-color: #{$formBackgroundColor};\n --padding-top: #{space('xsmall')};\n --padding-bottom: #{space('xsmall')};\n --padding-left: #{space('medium')};\n --padding-right: #{space('medium')};\n --height: #{$formInputHeight};\n --input-width: 100%;\n --label-color: #{$formLabelColor};\n --placeholder-color: #{$formInputPlaceholderColor};\n --button-right-color: #{$colorGrey80};\n\n --hover-color: #{$formHoverColor};\n --hover-border-color: #{$formHoverBorderColor};\n --hover-background-color: #{$formHoverBackgroundColor};\n --hover-button-right-color: #{$colorPrimary70};\n\n --focus-color: #{$formFocusColor};\n --focus-border-color: #{$formFocusBorderColor};\n --focus-background-color: #{$formFocusBackgroundColor};\n --focus-button-right-color: #{$colorPrimary70};\n\n &[type=\"hidden\"] {\n position: absolute;\n top: -9999px;\n left: -9999px;\n visibility: hidden;\n }\n\n width: 100%;\n\n &[size=\"small\"] {\n --height: #{$formInputHeightSmall};\n }\n\n /* Filled */\n\n &[is-filled]:not([is-filled=\"false\"]) {\n --button-right-color: #{$colorPrimary70};\n --hover-button-right-color: #{$colorPrimary70};\n --focus-button-right-color: #{$formFocusColor};\n }\n\n /* Invalid */\n\n &[is-invalid] {\n --color: #{$colorError60};\n --border-color: #{$colorError60};\n --background-color: #{$colorWhite};\n --label-color: #{$colorError60};\n --placeholder-color: #{$colorError60};\n --button-right-color: #{$colorError60};\n\n --hover-color: #{$colorError60};\n --hover-border-color: #{$colorError60};\n --hover-background-color: #{$colorWhite};\n --hover-button-right-color: #{$colorError60};\n\n --focus-color: #{$colorError60};\n --focus-border-color: #{$colorError60};\n --focus-background-color: #{$colorWhite};\n --focus-button-right-color: #{$colorError60};\n }\n\n &[readonly]:not([readonly=\"false\"]),\n &[disabled]:not([disabled=\"false\"]) {\n --color: #{$formDisabledColor};\n --border-color: #{$formDisabledBorderColor};\n --background-color: #{$formDisabledBackgroundColor};\n --label-color: #{$formDisabledColor};\n --placeholder-color: #{$formDisabledColor};\n --description-color: #{$formDisabledColor};\n --button-right-color: #{$colorGrey70};\n\n --hover-color: #{$formDisabledColor};\n --hover-border-color: #{$formDisabledBorderColor};\n --hover-background-color: #{$formDisabledBackgroundColor};\n --hover-button-right-color: #{$colorGrey70};\n\n --focus-color: #{$formDisabledColor};\n --focus-border-color: #{$formDisabledBorderColor};\n --focus-background-color: #{$formDisabledBackgroundColor};\n --focus-button-right-color: #{$colorGrey70};\n }\n\n /* Internal (Hover / Focus) */\n\n &:is(:has(.stzh-input__input:hover)) {\n --button-right-color: var(--hover-button-right-color);\n }\n\n &:is(:has(.stzh-input__input:focus)) {\n --button-right-color: var(--focus-button-right-color);\n }\n}\n\n:host ::slotted([slot=\"button-right\"]),\n.stzh-input__button-right {\n position: absolute;\n top: 0px;\n right: 0px;\n}\n\n:host ::slotted(stzh-popover[slot=\"button-right\"]),\n:host ::slotted([slot=\"button-right\"]) stzh-popover {\n display: block;\n}\n\n:host ::slotted(stzh-button[slot=\"button-right\"]),\n:host ::slotted(stzh-button[slot=\"button-right\"][disabled]:not([disabled=\"false\"])),\n:host ::slotted(stzh-popover[slot=\"button-right\"]) .stzh-popover__trigger stzh-button,\n:host ::slotted(stzh-popover[slot=\"button-right\"]) .stzh-popover__trigger stzh-button[disabled]:not([disabled=\"false\"]),\n:host ::slotted(stzh-tooltip[slot=\"button-right\"]) .stzh-tooltip__trigger stzh-button,\n:host ::slotted(stzh-tooltip[slot=\"button-right\"]) .stzh-tooltip__trigger stzh-button[disabled]:not([disabled=\"false\"]),\n.stzh-input__button-right,\n.stzh-input__button-right[disabled]:not([disabled=\"false\"]) {\n --color: var(--button-right-color);\n --background-color: transparent;\n --border-color: transparent;\n\n --hover-color: var(--button-right-color);\n --hover-background-color: transparent;\n --hover-border-color: transparent;\n}\n\n// :host ::slotted(stzh-button[slot=\"button-right\"][disabled]:not([disabled=\"false\"])),\n// :host ::slotted([slot=\"button-right\"]) stzh-button[disabled]:not([disabled=\"false\"]),\n// .stzh-input__button-right[disabled]:not([disabled=\"false\"]) {\n// --hover-color: #{$colorGrey80};\n// }\n\n:host ::slotted(stzh-button[slot=\"button-right\"][size=\"default\"][icon-only]:not([icon-only=\"false\"])),\n:host ::slotted(stzh-popover[slot=\"button-right\"]) .stzh-popover__trigger stzh-button[icon-only][size=\"default\"]:not([icon-only=\"false\"]),\n:host ::slotted(stzh-tooltip[slot=\"button-right\"]) .stzh-tooltip__trigger stzh-button[icon-only][size=\"default\"]:not([icon-only=\"false\"]),\n.stzh-input__button-right[size=\"default\"][icon-only]:not([icon-only=\"false\"]) {\n --icon-size: #{iconSize('medium')};\n}\n\n.stzh-input {\n\t@include input-description;\n\n &__field-wrapper {\n position: relative;\n display: flex;\n width: var(--input-width);\n }\n\n &__input {\n @include font;\n @include fontSize('milli');\n border: 2px solid var(--border-color);\n transition-property: color, border-color, background-color;\n transition-duration: $baseTransitionAnimationSpeed;\n border-radius: var(--border-radius);\n padding-top: var(--padding-top);\n padding-bottom: var(--padding-bottom);\n padding-left: var(--padding-left);\n padding-right: var(--padding-right);\n margin: 0;\n width: 100%;\n color: var(--color);\n background-color: var(--background-color);\n appearance: none;\n text-align: var(--text-align);\n\n @include placeholder {\n color: var(--placeholder-color);\n }\n\n &:hover {\n color: var(--hover-color);\n border-color: var(--hover-border-color);\n background-color: var(--hover-background-color);\n }\n\n &:focus {\n color: var(--focus-color);\n border-color: var(--focus-border-color);\n background-color: var(--focus-background-color);\n }\n\n // prevent ugly autofill background color in chrome\n &:-webkit-autofill {\n background-clip: text;\n }\n\n // show ellipsis for placeholders that are too long\n &:placeholder-shown {\n text-overflow: ellipsis;\n }\n\n // hide search clear icon on chrome\n &[type=\"search\"]::-webkit-search-decoration,\n &[type=\"search\"]::-webkit-search-cancel-button,\n &[type=\"search\"]::-webkit-search-results-button,\n &[type=\"search\"]::-webkit-search-results-decoration {\n -webkit-appearance: none;\n }\n\n /* Normal inputs */\n\n &--input {\n height: var(--height);\n }\n\n /* Textarea */\n\n &--textarea {\n min-height: var(--height);\n resize: vertical;\n }\n }\n\n &__label {\n @include font('heavy');\n @include fontSize('micro');\n @include truncate;\n display: block;\n color: var(--label-color);\n width: auto;\n max-width: 100%;\n margin-bottom: space('xxxsmall');\n // position: absolute;\n // top: calc(#{$formInputHeight} / 2);\n // // padding-left (medium) + border-left\n // left: calc(#{space('medium')} + 1px);\n // max-width: calc(100% - #{space('medium')} * 2);\n // transform: translateY(-50%);\n // transition: all $baseTransitionAnimationSpeed;\n // pointer-events: none;\n\n &:empty {\n display: none;\n }\n\n // &::before {\n // content: '';\n // display: none;\n // background: $colorWhite;\n // position: absolute;\n // width: 100%;\n // z-index: -1;\n // left: 0;\n // top: 50%;\n // // prevent white line not fully overlaping border of input\n // margin-top: -0.5px;\n // height: 2px;\n // }\n }\n\n &__marker {\n @include fontSize('nano');\n margin-left: calc(-0.25em + #{space('xsmall')});\n }\n\n /* Clearable / Search input / Password */\n\n &--type-password#{&}--is-not-clearable &__button-right,\n &--type-password#{&}--is-not-filled &__button-right,\n &--type-password#{&}--is-readonly &__button-right,\n &--type-password#{&}--is-disabled &__button-right,\n &--type-search#{&}--is-not-clearable &__button-right,\n &--type-search#{&}--is-not-filled &__button-right,\n &--type-search#{&}--is-readonly &__button-right,\n &--type-search#{&}--is-disabled &__button-right {\n pointer-events: none;\n }\n\n /* Styles for floating label */\n\n // &:not(#{&}--is-readonly):not(#{&}--is-disabled) &__input:focus + &__label,\n // &--has-fixed-label &__label,\n // &--is-filled &__label,\n // &--is-readonly &__label,\n // &--is-disabled &__label,\n // &--is-invalid &__label {\n // display: block;\n // top: 0;\n // // padding-left (input field medium) - padding-left\n // left: calc(#{space('medium')} - #{space('xxsmall')});\n // height: 20px; // dividable by two (so before element is always positioned correctly)\n // line-height: 20px;\n // padding: 0 space('xxsmall');\n // max-width: calc(100% - #{space('small')} * 2);\n // pointer-events: all;\n\n // &:not(:empty)::before {\n // display: block;\n // }\n // }\n\n /* Button Right Variant */\n\n &--has-button-right &__input {\n // distance to icon + icon button width\n padding-right: var(--height);\n }\n\n // &--has-button-right &__label {\n // // 100% - ((padding left of normal variant + border 1px) * 2) - icon button width\n // max-width: calc(100% - (#{space('medium')} + 1px) * 2 - #{$formInputHeight});\n // }\n\n // &--has-button-right#{&}:not(#{&}--is-readonly):not(#{&}--is-disabled) &__input:focus + &__label,\n // &--has-button-right#{&}--has-fixed-label &__label,\n // &--has-button-right#{&}--is-filled &__label,\n // &--has-button-right#{&}--is-readonly &__label,\n // &--has-button-right#{&}--is-disabled &__label,\n // &--has-button-right#{&}--is-invalid &__label {\n // // 100% - left distance to text + 1px border + padding label right side - icon button width\n // max-width: calc(100% - #{space('medium')} - #{space('xxsmall')} - 1px + #{space('xxsmall')} - #{$formInputHeight});\n // }\n\n /* Size variants */\n\n &--size-small &__input {\n @include fontSize('micro');\n }\n\n // &--size-small &__label {\n // top: calc(#{$formInputHeightSmall} / 2);\n // }\n\n // &--size-small#{&}:not(#{&}--is-readonly):not(#{&}--is-disabled) &__input:focus + &__label,\n // &--size-small#{&}--has-fixed-label &__label,\n // &--size-small#{&}--is-filled &__label,\n // &--size-small#{&}--is-readonly &__label,\n // &--size-small#{&}--is-disabled &__label,\n // &--size-small#{&}--is-invalid &__label {\n // top: 0;\n // }\n\n // &--size-small#{&}--has-button-right &__label {\n // max-width: calc(100% - (#{space('medium')} + 1px) * 2 - #{$formInputHeightSmall});\n // }\n\n // &--size-small#{&}--has-button-right#{&}:not(#{&}--is-readonly):not(#{&}--is-disabled) &__input:focus + &__label,\n // &--size-small#{&}--has-button-right#{&}--has-fixed-label &__label,\n // &--size-small#{&}--has-button-right#{&}--is-filled &__label,\n // &--size-small#{&}--has-button-right#{&}--is-readonly &__label,\n // &--size-small#{&}--has-button-right#{&}--is-disabled &__label,\n // &--size-small#{&}--has-button-right#{&}--is-invalid &__label {\n // max-width: calc(100% - #{space('medium')} - #{space('xxsmall')} - 1px + #{space('xsmall')} - #{$formInputHeightSmall});\n // }\n\n /* Spin button */\n\n &:not(#{&}--has-spin) &__input {\n &::-webkit-outer-spin-button,\n &::-webkit-inner-spin-button {\n appearance: none;\n margin: 0;\n }\n\n &[type=\"number\"] {\n appearance: textfield;\n }\n }\n\n /* Hidden label */\n\n &--has-label-hidden &__label {\n @include visuallyhidden;\n }\n\n /* Readonly / Disabled */\n\n &--is-readonly &__input,\n &--is-disabled &__input,\n &--is-readonly &__label,\n &--is-disabled &__label {\n cursor: not-allowed;\n }\n\n // &--is-readonly &__label,\n // &--is-disabled &__label {\n // &::before {\n // background: transparent;\n // }\n // }\n}\n","import {\n Component,\n Prop,\n Host,\n Event,\n EventEmitter,\n State,\n Element,\n h,\n Watch,\n Listen,\n} from \"@stencil/core\";\n\nimport {\n StzhInputChangeEvent,\n StzhInputChangedEvent,\n StzhInputFocusEvent,\n StzhInputBlurEvent\n} from \"../../index\";\n\nimport { hasSlot } from \"../../utils/utils\";\nimport { StzhLocaleComponent } from \"../../utils/translation-utils\";\n\nimport { StzhInputDescription } from \"./stzh-input-description\";\n\nlet inputCounter = 0;\n\n/**\n * @slot - Slot for label content\n * @slot description - Slot for description\n * @slot description-long - Slot for long description (in popover)\n * @slot description-long-title - Slot for long description title (in popover) / instead of descriptionLongTitle or description property\n * @slot error - Slot for error\n * @slot button-right - Slot for right button\n */\n@Component({\n tag: \"stzh-input\",\n styleUrl: \"stzh-input.scss\",\n scoped: true\n})\nexport class StzhInput {\n /** Translation strings */\n @Prop() localization: StzhLocaleComponent;\n\n /** Whether the input is a textarea or an input field */\n @Prop() multiline: boolean = false;\n\n /** Rows attribute if input element is textarea */\n @Prop() rows: number;\n\n /** If input field, this defines the type (if `search`, a search icon will be displayed) */\n @Prop({ reflect: true }) type: \"text\" | \"search\" | \"password\" | \"email\" | \"url\" | \"tel\" | \"number\" | \"hidden\" = \"text\";\n\n /** If input type is number, this will be the step size */\n @Prop() step: number = 1;\n\n /** If input type is number, this will be the minimum step number */\n @Prop() min: number;\n\n /** If input type is number, this will be the maximum step number */\n @Prop() max: number;\n\n /** If input type is number and this property is true, this will show the spin buttons on hover/focus */\n @Prop({ reflect: true }) showSpin: boolean = false;\n\n /** Whether the element is readonly or not */\n @Prop({ reflect: true }) readonly: boolean = false;\n\n /** Whether the element is disabled or not */\n @Prop({ reflect: true }) disabled: boolean = false;\n\n /** Whether clearable button is showing when input field has value and is enabled (button-right slot not usable anymore when true) */\n @Prop({ reflect: true }) clearable: boolean = false;\n\n /** Hide `(optional)` label (or use `required` inside form to hide it) */\n @Prop({ reflect: true }) hideOptional: boolean = false;\n\n /** Minimum of characters */\n @Prop() minlength: number;\n\n /** Maxlength of characters */\n @Prop() maxlength: number;\n\n /** The name of the input element */\n @Prop({ reflect: true }) name: string;\n\n /** The value of the input element */\n @Prop({ mutable: true }) value: string = \"\";\n\n /** Default value (used by reset) */\n @Prop({ mutable: true }) defaultValue: string = \"\";\n\n /** Description message (use description slot as alternative) */\n @Prop() description: string;\n\n /** Long description message appearing in a popover (use description-long slot as alternative) */\n @Prop() descriptionLong: string;\n\n /** Long description title appearing in a popover (use description-long-title slot as or description property alternative) */\n @Prop() descriptionLongTitle: string;\n\n /** One or multiple error message (use error slot as alternative) */\n @Prop() error: string | string[];\n private _error: string[];\n\n /** Invalid status */\n @Prop({ reflect: true }) invalid: boolean = false;\n\n /** Required status */\n @Prop({ reflect: true }) required: boolean = false;\n\n /**\n * Specify inputmode.\n * See [MDN](https://developer.mozilla.org/de/docs/Web/HTML/Global_attributes/inputmode) for possible values\n */\n @Prop() inputmode: string;\n\n /**\n * Specify what the user agent has to provide as automated assistance.\n * See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) for possible values\n */\n @Prop() autocomplete: string = \"on\";\n\n /** Whether autocomplete should be turned off */\n @Prop() noAutocomplete: boolean = false;\n\n /** Label */\n @Prop() label: string = \"\";\n\n /** Whether label should be visually hidden. */\n @Prop() labelHidden: boolean = false;\n\n /** Size variant */\n @Prop({ reflect: true }) size: \"default\" | \"small\" = \"default\";\n\n /** Id for element which describes the input (this will be overwritten if description prop or slot is used, used by stzh-radiogroup) */\n @Prop({ attribute: \"a11y-describedby\" }) a11yDescribedby: string = \"\";\n\n /** Whether the input is filled or not */\n @State() filled: boolean;\n\n @Element() element: HTMLStzhInputElement;\n\n /** Input change event */\n @Event() stzhChange: EventEmitter<StzhInputChangeEvent>;\n\n /** Input changed event */\n @Event() stzhChanged: EventEmitter<StzhInputChangedEvent>;\n\n /** Input focus event */\n @Event() stzhFocus: EventEmitter<StzhInputFocusEvent>;\n\n /** Input blur event */\n @Event() stzhBlur: EventEmitter<StzhInputBlurEvent>;\n\n @Listen(\"reset\", { target: \"document\" })\n resetListener(event: Event) {\n if ((event.target as HTMLElement).contains(this.element)) {\n requestAnimationFrame(() => {\n this.handleReset();\n });\n }\n }\n\n @Watch(\"value\")\n valueWatcher(newValue: string) {\n this.filled = newValue !== \"\";\n }\n\n @Watch(\"error\")\n errorWatcher(newValue: string | string[]) {\n if (typeof newValue === \"string\") {\n try {\n this._error = JSON.parse(newValue);\n } catch (e) {\n if (newValue) {\n this._error = [newValue];\n } else {\n this._error = [];\n }\n }\n } else if (newValue) {\n this._error = newValue;\n } else {\n this._error = [];\n }\n }\n\n @Watch(\"type\")\n typeWatcher(newValue: string) {\n const types = [\n \"text\", \"search\", \"password\", \"email\", \"url\", \"tel\", \"number\", \"hidden\"\n ];\n\n if (!this.multiline && !types.includes(newValue)) {\n throw new Error(`Type ${newValue} not supported`);\n }\n }\n\n private input: HTMLInputElement | HTMLTextAreaElement;\n private inputId: string;\n private focusedByInput: boolean = false;\n private renderPromiseResolve: (value?: unknown) => void;\n\n private waitForNextRender() {\n return new Promise(resolve => this.renderPromiseResolve = resolve);\n }\n\n private onClearClick = async (event: MouseEvent) => {\n this.value = \"\";\n this.input.focus();\n\n await this.waitForNextRender();\n\n this.stzhChange.emit({\n component: \"stzh-input\",\n originalEvent: event,\n value: this.value\n });\n\n this.stzhChanged.emit({\n component: \"stzh-input\",\n originalEvent: event,\n value: this.value\n });\n }\n\n private handleReset = async () => {\n this.value = this.defaultValue;\n // we also update value, since render doesn't get executed sometimes\n this.input.value = this.defaultValue;\n\n // TODO: check if we need own reset event or trigger the change event\n // (custom browser behaviour doesn't send change event, when reset is executed)\n // this.stzhChange.emit({\n // component: \"stzh-input\",\n // originalEvent: event,\n // value: this.value\n // });\n }\n\n private onInput = (event: InputEvent) => {\n this.value = this.input.value;\n\n this.stzhChange.emit({\n component: \"stzh-input\",\n originalEvent: event,\n value: this.value\n });\n }\n\n private onChange = (event: InputEvent) => {\n this.value = this.input.value;\n\n this.stzhChanged.emit({\n component: \"stzh-input\",\n originalEvent: event,\n value: this.value\n });\n }\n\n private onRootFocus = () => {\n if (!this.focusedByInput) {\n this.input.focus();\n }\n\n this.focusedByInput = false;\n }\n\n private onFocus = (event: FocusEvent) => {\n this.focusedByInput = true;\n\n const focusEvent = new FocusEvent('focus', {\n view: window,\n bubbles: false,\n cancelable: false\n });\n\n this.element.dispatchEvent(focusEvent);\n this.stzhFocus.emit({\n component: \"stzh-input\",\n originalEvent: event\n });\n }\n\n private onBlur = (event: FocusEvent) => {\n // fixes weird bug where autofill selection doesn't get removed\n this.input.value = this.input.value;\n\n const blurEvent = new FocusEvent('blur', {\n view: window,\n bubbles: false,\n cancelable: false\n });\n\n this.element.dispatchEvent(blurEvent);\n this.stzhBlur.emit({\n component: \"stzh-input\",\n originalEvent: event\n });\n }\n\n private renderTextarea(): HTMLTextAreaElement {\n return (\n <textarea\n class=\"stzh-input__input stzh-input__input--textarea\"\n ref={(el) => (this.input = el as HTMLTextAreaElement)}\n id={this.inputId}\n name={this.name}\n value={this.value}\n rows={this.rows}\n disabled={this.disabled}\n readonly={this.readonly}\n minlength={this.minlength}\n maxlength={this.maxlength}\n aria-describedby={`${this.inputId}-description ${this.a11yDescribedby}`}\n aria-required={this.required ? \"true\" : \"false\"}\n aria-invalid={this.invalid ? \"true\" : \"false\"}\n onChange={this.onChange}\n onInput={this.onInput}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n ></textarea>\n );\n }\n\n private renderInput(): HTMLInputElement {\n return (\n <input\n class=\"stzh-input__input stzh-input__input--input\"\n ref={(el) => (this.input = el as HTMLInputElement)}\n id={this.inputId}\n type={this.type}\n name={this.name}\n value={this.value}\n defaultValue={this.defaultValue}\n min={this.min}\n max={this.max}\n step={this.step}\n inputmode={this.inputmode}\n disabled={this.disabled}\n readonly={this.readonly}\n minlength={this.minlength}\n maxlength={this.maxlength}\n autocomplete={this.noAutocomplete ? \"off\" : this.autocomplete}\n aria-autocomplete={this.noAutocomplete ? \"none\" : undefined}\n aria-describedby={`${this.inputId}-description ${this.a11yDescribedby}`}\n aria-required={this.required ? \"true\" : \"false\"}\n aria-invalid={this.invalid ? \"true\" : \"false\"}\n onChange={this.onChange}\n onInput={this.onInput}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n />\n );\n }\n\n componentDidRender() {\n if (this.renderPromiseResolve) {\n this.renderPromiseResolve();\n }\n }\n\n async componentWillLoad() {\n this.inputId = `stzh-input-${inputCounter++}`;\n this.typeWatcher(this.type);\n this.valueWatcher(this.value);\n this.errorWatcher(this.error);\n\n this.defaultValue = this.defaultValue || this.value;\n\n if (!this.localization) {\n this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, \"input\");\n }\n }\n\n render() {\n const buttonRightSlotUsed = hasSlot(this.element, 'button-right');\n const descriptionUsed = hasSlot(this.element, 'description') || !!this.description;\n const descriptionLongUsed = hasSlot(this.element, 'description-long') || !!this.descriptionLong;\n const errorUsed = hasSlot(this.element, 'error') || this._error?.length > 0;\n\n const classes = {\n \"stzh-input\": true,\n \"stzh-input--has-button-right\": buttonRightSlotUsed\n || this.type === \"search\"\n || (this.clearable && this.filled && !this.readonly && !this.disabled),\n \"stzh-input--has-description\": descriptionUsed,\n \"stzh-input--has-description-long\": descriptionLongUsed,\n \"stzh-input--has-error\": errorUsed,\n \"stzh-input--has-spin\": this.showSpin,\n \"stzh-input--is-invalid\": this.invalid || errorUsed,\n \"stzh-input--is-disabled\": this.disabled,\n \"stzh-input--is-readonly\": this.readonly,\n \"stzh-input--is-required\": this.required,\n \"stzh-input--is-filled\": this.filled,\n \"stzh-input--is-not-filled\": !this.filled,\n \"stzh-input--is-clearable\": this.clearable,\n \"stzh-input--is-not-clearable\": !this.clearable,\n \"stzh-input--has-label-hidden\": this.labelHidden,\n [`stzh-input--size-${this.size}`]: !!this.size,\n [`stzh-input--type-${this.type}`]: !!this.type,\n };\n\n return (\n <Host\n is-invalid={this.invalid || errorUsed}\n tabindex={this.disabled ? null : \"-1\"}\n onFocus={this.onRootFocus}\n is-filled={this.filled}\n >\n <div class={classes}>\n <label class=\"stzh-input__label\" htmlFor={this.inputId}>\n {this.label ? this.label : <slot></slot>}\n {!this.hideOptional &&\n <span class=\"stzh-input__marker\">\n <span class=\"stzh-input__marker-symbol\" aria-hidden=\"true\">\n {this.required\n ? this.localization.$globals.requiredFieldMarker\n : this.localization.$globals.optionalFieldMarker\n }\n </span>\n <span class=\"stzh-input__marker-text\">\n {this.required\n ? this.localization.$globals.requiredFieldText\n : this.localization.$globals.optionalFieldText\n }\n </span>\n </span>\n }\n </label>\n <div class=\"stzh-input__field-wrapper\">\n {this.multiline ? this.renderTextarea() : this.renderInput()}\n {(this.clearable || this.type === \"search\" || this.type === \"password\")\n ?\n ((!this.clearable || this.disabled || this.readonly || !this.filled)\n && (this.type === \"search\" || this.type === \"password\")\n ?\n <stzh-button\n class=\"stzh-input__button-right\"\n icon={this.type === \"search\" ? \"search\" : \"view\"}\n size={this.size}\n iconOnly={true}\n disabled={true}\n ></stzh-button>\n :\n this.filled\n ?\n <stzh-button\n class=\"stzh-input__button-right\"\n icon=\"close\"\n size={this.size}\n iconOnly={true}\n onClick={this.onClearClick}\n a11yLabel={this.localization.$globals.clearButtonLabel}\n aria-controls={this.inputId}\n ></stzh-button>\n :\n <slot name=\"button-right\"></slot>\n )\n :\n <slot name=\"button-right\"></slot>\n }\n </div>\n <StzhInputDescription\n classPrefix=\"stzh-input\"\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"],"version":3}
1
+ {"file":"stzh-input.entry.js","mappings":";;;;;AAAA,MAAM,YAAY,GAAG,o8ZAAo8Z;;ACSz9Z,IAAI,YAAY,GAAG,CAAC,CAAC;MAeR,SAAS;;;;;;;IAgKZ,mBAAc,GAAY,KAAK,CAAC;IAOhC,iBAAY,GAAG,OAAO,KAAiB;MAC7C,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;MAChB,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;MAEnB,MAAM,IAAI,CAAC,iBAAiB,EAAE,CAAC;MAE/B,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;QACnB,SAAS,EAAE,YAAY;QACvB,aAAa,EAAE,KAAK;QACpB,KAAK,EAAE,IAAI,CAAC,KAAK;OAClB,CAAC,CAAC;MAEH,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;QACpB,SAAS,EAAE,YAAY;QACvB,aAAa,EAAE,KAAK;QACpB,KAAK,EAAE,IAAI,CAAC,KAAK;OAClB,CAAC,CAAC;KACJ,CAAC;IAEM,gBAAW,GAAG;MACpB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,YAAY,CAAC;;MAE/B,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC,YAAY,CAAC;;;;;;;;KAStC,CAAC;IAEM,YAAO,GAAG,CAAC,KAAiB;MAClC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC;MAE9B,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;QACnB,SAAS,EAAE,YAAY;QACvB,aAAa,EAAE,KAAK;QACpB,KAAK,EAAE,IAAI,CAAC,KAAK;OAClB,C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EAAE,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,mBAAmB,GACnE,CACH,CACG,CACD,EACP;GACH;;;;;;;;;;;;","names":[],"sources":["src/components/stzh-input/stzh-input.scss?tag=stzh-input&encapsulation=scoped","src/components/stzh-input/stzh-input.tsx"],"sourcesContent":["/**\n * @prop --text-align: Text align of field\n * @prop --input-width: Width of of field\n * @prop --padding-top: Padding top of field\n * @prop --padding-bottom: Padding bottom of field\n * @prop --padding-left: Padding left of field\n * @prop --padding-right: Padding right of field\n *\n * @prop --stzh-form-input-height: **Global**: Height of fields & buttons\n * @prop --stzh-form-input-small-height: **Global**: Height of fields & buttons when small variant is used\n * @prop --stzh-form-input-tiny-height: **Global**: Height of fields & buttons when tiny variant is used\n */\n\n:host {\n --text-align: left;\n --color: #{$formColor};\n --border-color: #{$formBorderColor};\n --border-radius: #{$formInputBorderRadius};\n --background-color: #{$formBackgroundColor};\n --padding-top: #{space('xsmall')};\n --padding-bottom: #{space('xsmall')};\n --padding-left: #{space('medium')};\n --padding-right: #{space('medium')};\n --height: #{$formInputHeight};\n --input-width: 100%;\n --label-color: #{$formLabelColor};\n --placeholder-color: #{$formInputPlaceholderColor};\n --button-right-color: #{$colorGrey80};\n\n --hover-color: #{$formHoverColor};\n --hover-border-color: #{$formHoverBorderColor};\n --hover-background-color: #{$formHoverBackgroundColor};\n --hover-button-right-color: #{$colorPrimary70};\n\n --focus-color: #{$formFocusColor};\n --focus-border-color: #{$formFocusBorderColor};\n --focus-background-color: #{$formFocusBackgroundColor};\n --focus-button-right-color: #{$colorPrimary70};\n\n --text-selection-background-color: #{$colorSecondary30};\n\n &[type=\"hidden\"] {\n position: absolute;\n top: -9999px;\n left: -9999px;\n visibility: hidden;\n }\n\n width: 100%;\n\n &[size=\"small\"] {\n --height: #{$formInputHeightSmall};\n }\n\n /* Filled */\n\n &[is-filled]:not([is-filled=\"false\"]) {\n --button-right-color: #{$colorPrimary70};\n --hover-button-right-color: #{$colorPrimary70};\n --focus-button-right-color: #{$formFocusColor};\n }\n\n /* Invalid */\n\n &[is-invalid] {\n --color: #{$colorError60};\n --border-color: #{$colorError60};\n --background-color: #{$colorWhite};\n --label-color: #{$colorError60};\n --placeholder-color: #{$colorError60};\n --button-right-color: #{$colorError60};\n\n --hover-color: #{$colorError60};\n --hover-border-color: #{$colorError60};\n --hover-background-color: #{$colorWhite};\n --hover-button-right-color: #{$colorError60};\n\n --focus-color: #{$colorError60};\n --focus-border-color: #{$colorError60};\n --focus-background-color: #{$colorWhite};\n --focus-button-right-color: #{$colorError60};\n }\n\n &[readonly]:not([readonly=\"false\"]),\n &[disabled]:not([disabled=\"false\"]) {\n --color: #{$formDisabledColor};\n --border-color: #{$formDisabledBorderColor};\n --background-color: #{$formDisabledBackgroundColor};\n --label-color: #{$formDisabledColor};\n --placeholder-color: #{$formDisabledColor};\n --description-color: #{$formDisabledColor};\n --button-right-color: #{$colorGrey70};\n\n --hover-color: #{$formDisabledColor};\n --hover-border-color: #{$formDisabledBorderColor};\n --hover-background-color: #{$formDisabledBackgroundColor};\n --hover-button-right-color: #{$colorGrey70};\n\n --focus-color: #{$formDisabledColor};\n --focus-border-color: #{$formDisabledBorderColor};\n --focus-background-color: #{$formDisabledBackgroundColor};\n --focus-button-right-color: #{$colorGrey70};\n }\n\n /* Internal (Hover / Focus) */\n\n &:is(:has(.stzh-input__input:hover)) {\n --button-right-color: var(--hover-button-right-color);\n }\n\n &:is(:has(.stzh-input__input:focus)) {\n --button-right-color: var(--focus-button-right-color);\n }\n}\n\n:host ::slotted([slot=\"button-right\"]),\n.stzh-input__button-right {\n position: absolute;\n top: 0px;\n right: 0px;\n}\n\n:host ::slotted(stzh-popover[slot=\"button-right\"]),\n:host ::slotted([slot=\"button-right\"]) stzh-popover {\n display: block;\n}\n\n:host ::slotted(stzh-button[slot=\"button-right\"]),\n:host ::slotted(stzh-button[slot=\"button-right\"][disabled]:not([disabled=\"false\"])),\n:host ::slotted(stzh-popover[slot=\"button-right\"]) .stzh-popover__trigger stzh-button,\n:host ::slotted(stzh-popover[slot=\"button-right\"]) .stzh-popover__trigger stzh-button[disabled]:not([disabled=\"false\"]),\n:host ::slotted(stzh-tooltip[slot=\"button-right\"]) .stzh-tooltip__trigger stzh-button,\n:host ::slotted(stzh-tooltip[slot=\"button-right\"]) .stzh-tooltip__trigger stzh-button[disabled]:not([disabled=\"false\"]),\n.stzh-input__button-right,\n.stzh-input__button-right[disabled]:not([disabled=\"false\"]) {\n --color: var(--button-right-color);\n --background-color: transparent;\n --border-color: transparent;\n\n --hover-color: var(--button-right-color);\n --hover-background-color: transparent;\n --hover-border-color: transparent;\n}\n\n// :host ::slotted(stzh-button[slot=\"button-right\"][disabled]:not([disabled=\"false\"])),\n// :host ::slotted([slot=\"button-right\"]) stzh-button[disabled]:not([disabled=\"false\"]),\n// .stzh-input__button-right[disabled]:not([disabled=\"false\"]) {\n// --hover-color: #{$colorGrey80};\n// }\n\n:host ::slotted(stzh-button[slot=\"button-right\"][size=\"default\"][icon-only]:not([icon-only=\"false\"])),\n:host ::slotted(stzh-popover[slot=\"button-right\"]) .stzh-popover__trigger stzh-button[icon-only][size=\"default\"]:not([icon-only=\"false\"]),\n:host ::slotted(stzh-tooltip[slot=\"button-right\"]) .stzh-tooltip__trigger stzh-button[icon-only][size=\"default\"]:not([icon-only=\"false\"]),\n.stzh-input__button-right[size=\"default\"][icon-only]:not([icon-only=\"false\"]) {\n --icon-size: #{iconSize('medium')};\n}\n\n.stzh-input {\n @include input-description;\n\n ::selection {\n background: var(--text-selection-background-color);\n }\n\n &__field-wrapper {\n position: relative;\n display: flex;\n width: var(--input-width);\n }\n\n &__input {\n @include font;\n @include fontSize('milli');\n border: 2px solid var(--border-color);\n transition-property: color, border-color, background-color;\n transition-duration: $baseTransitionAnimationSpeed;\n border-radius: var(--border-radius);\n padding-top: var(--padding-top);\n padding-bottom: var(--padding-bottom);\n padding-left: var(--padding-left);\n padding-right: var(--padding-right);\n margin: 0;\n width: 100%;\n color: var(--color);\n background-color: var(--background-color);\n appearance: none;\n text-align: var(--text-align);\n\n @include placeholder {\n color: var(--placeholder-color);\n }\n\n &:hover {\n color: var(--hover-color);\n border-color: var(--hover-border-color);\n background-color: var(--hover-background-color);\n }\n\n &:focus {\n color: var(--focus-color);\n border-color: var(--focus-border-color);\n background-color: var(--focus-background-color);\n }\n\n // prevent ugly autofill background color in chrome\n &:-webkit-autofill {\n background-clip: text;\n }\n\n // show ellipsis for placeholders that are too long\n &:placeholder-shown {\n text-overflow: ellipsis;\n }\n\n // hide search clear icon on chrome\n &[type=\"search\"]::-webkit-search-decoration,\n &[type=\"search\"]::-webkit-search-cancel-button,\n &[type=\"search\"]::-webkit-search-results-button,\n &[type=\"search\"]::-webkit-search-results-decoration {\n -webkit-appearance: none;\n }\n\n /* Normal inputs */\n\n &--input {\n height: var(--height);\n }\n\n /* Textarea */\n\n &--textarea {\n min-height: var(--height);\n resize: vertical;\n }\n }\n\n &__label {\n @include font('heavy');\n @include fontSize('micro');\n @include truncate;\n display: block;\n color: var(--label-color);\n width: auto;\n max-width: 100%;\n margin-bottom: space('xxxsmall');\n // position: absolute;\n // top: calc(#{$formInputHeight} / 2);\n // // padding-left (medium) + border-left\n // left: calc(#{space('medium')} + 1px);\n // max-width: calc(100% - #{space('medium')} * 2);\n // transform: translateY(-50%);\n // transition: all $baseTransitionAnimationSpeed;\n // pointer-events: none;\n\n &:empty {\n display: none;\n }\n\n // &::before {\n // content: '';\n // display: none;\n // background: $colorWhite;\n // position: absolute;\n // width: 100%;\n // z-index: -1;\n // left: 0;\n // top: 50%;\n // // prevent white line not fully overlaping border of input\n // margin-top: -0.5px;\n // height: 2px;\n // }\n }\n\n &__marker {\n @include fontSize('nano');\n margin-left: calc(-0.25em + #{space('xsmall')});\n }\n\n /* Clearable / Search input / Password */\n\n &--type-password#{&}--is-not-clearable &__button-right,\n &--type-password#{&}--is-not-filled &__button-right,\n &--type-password#{&}--is-readonly &__button-right,\n &--type-password#{&}--is-disabled &__button-right,\n &--type-search#{&}--is-not-clearable &__button-right,\n &--type-search#{&}--is-not-filled &__button-right,\n &--type-search#{&}--is-readonly &__button-right,\n &--type-search#{&}--is-disabled &__button-right {\n pointer-events: none;\n }\n\n /* Styles for floating label */\n\n // &:not(#{&}--is-readonly):not(#{&}--is-disabled) &__input:focus + &__label,\n // &--has-fixed-label &__label,\n // &--is-filled &__label,\n // &--is-readonly &__label,\n // &--is-disabled &__label,\n // &--is-invalid &__label {\n // display: block;\n // top: 0;\n // // padding-left (input field medium) - padding-left\n // left: calc(#{space('medium')} - #{space('xxsmall')});\n // height: 20px; // dividable by two (so before element is always positioned correctly)\n // line-height: 20px;\n // padding: 0 space('xxsmall');\n // max-width: calc(100% - #{space('small')} * 2);\n // pointer-events: all;\n\n // &:not(:empty)::before {\n // display: block;\n // }\n // }\n\n /* Button Right Variant */\n\n &--has-button-right &__input {\n // distance to icon + icon button width\n padding-right: var(--height);\n }\n\n // &--has-button-right &__label {\n // // 100% - ((padding left of normal variant + border 1px) * 2) - icon button width\n // max-width: calc(100% - (#{space('medium')} + 1px) * 2 - #{$formInputHeight});\n // }\n\n // &--has-button-right#{&}:not(#{&}--is-readonly):not(#{&}--is-disabled) &__input:focus + &__label,\n // &--has-button-right#{&}--has-fixed-label &__label,\n // &--has-button-right#{&}--is-filled &__label,\n // &--has-button-right#{&}--is-readonly &__label,\n // &--has-button-right#{&}--is-disabled &__label,\n // &--has-button-right#{&}--is-invalid &__label {\n // // 100% - left distance to text + 1px border + padding label right side - icon button width\n // max-width: calc(100% - #{space('medium')} - #{space('xxsmall')} - 1px + #{space('xxsmall')} - #{$formInputHeight});\n // }\n\n /* Size variants */\n\n &--size-small &__input {\n @include fontSize('micro');\n }\n\n // &--size-small &__label {\n // top: calc(#{$formInputHeightSmall} / 2);\n // }\n\n // &--size-small#{&}:not(#{&}--is-readonly):not(#{&}--is-disabled) &__input:focus + &__label,\n // &--size-small#{&}--has-fixed-label &__label,\n // &--size-small#{&}--is-filled &__label,\n // &--size-small#{&}--is-readonly &__label,\n // &--size-small#{&}--is-disabled &__label,\n // &--size-small#{&}--is-invalid &__label {\n // top: 0;\n // }\n\n // &--size-small#{&}--has-button-right &__label {\n // max-width: calc(100% - (#{space('medium')} + 1px) * 2 - #{$formInputHeightSmall});\n // }\n\n // &--size-small#{&}--has-button-right#{&}:not(#{&}--is-readonly):not(#{&}--is-disabled) &__input:focus + &__label,\n // &--size-small#{&}--has-button-right#{&}--has-fixed-label &__label,\n // &--size-small#{&}--has-button-right#{&}--is-filled &__label,\n // &--size-small#{&}--has-button-right#{&}--is-readonly &__label,\n // &--size-small#{&}--has-button-right#{&}--is-disabled &__label,\n // &--size-small#{&}--has-button-right#{&}--is-invalid &__label {\n // max-width: calc(100% - #{space('medium')} - #{space('xxsmall')} - 1px + #{space('xsmall')} - #{$formInputHeightSmall});\n // }\n\n /* Spin button */\n\n &:not(#{&}--has-spin) &__input {\n &::-webkit-outer-spin-button,\n &::-webkit-inner-spin-button {\n appearance: none;\n margin: 0;\n }\n\n &[type=\"number\"] {\n appearance: textfield;\n }\n }\n\n /* Hidden label */\n\n &--has-label-hidden &__label {\n @include visuallyhidden;\n }\n\n /* Readonly / Disabled */\n\n &--is-readonly &__input,\n &--is-disabled &__input,\n &--is-readonly &__label,\n &--is-disabled &__label {\n cursor: not-allowed;\n }\n\n // &--is-readonly &__label,\n // &--is-disabled &__label {\n // &::before {\n // background: transparent;\n // }\n // }\n}\n","import { Component, Element, Event, EventEmitter, h, Host, Listen, Prop, State, Watch } from \"@stencil/core\";\n\nimport { StzhInputBlurEvent, StzhInputChangedEvent, StzhInputChangeEvent, StzhInputFocusEvent } from \"../../index\";\n\nimport { hasSlot } from \"../../utils/utils\";\nimport { StzhLocaleComponent } from \"../../utils/translation-utils\";\n\nimport { StzhInputDescription } from \"./stzh-input-description\";\n\nlet inputCounter = 0;\n\n/**\n * @slot - Slot for label content\n * @slot description - Slot for description\n * @slot description-long - Slot for long description (in popover)\n * @slot description-long-title - Slot for long description title (in popover) / instead of descriptionLongTitle or description property\n * @slot error - Slot for error\n * @slot button-right - Slot for right button\n */\n@Component({\n tag: \"stzh-input\",\n styleUrl: \"stzh-input.scss\",\n scoped: true,\n})\nexport class StzhInput {\n /** Translation strings */\n @Prop() localization: StzhLocaleComponent;\n\n /** Whether the input is a textarea or an input field */\n @Prop() multiline: boolean = false;\n\n /** Rows attribute if input element is textarea */\n @Prop() rows: number;\n\n /** If input field, this defines the type (if `search`, a search icon will be displayed) */\n @Prop({ reflect: true }) type: \"text\" | \"search\" | \"password\" | \"email\" | \"url\" | \"tel\" | \"number\" | \"hidden\" =\n \"text\";\n\n /** If input type is number, this will be the step size */\n @Prop() step: number = 1;\n\n /** If input type is number, this will be the minimum step number */\n @Prop() min: number;\n\n /** If input type is number, this will be the maximum step number */\n @Prop() max: number;\n\n /** If input type is number and this property is true, this will show the spin buttons on hover/focus */\n @Prop({ reflect: true }) showSpin: boolean = false;\n\n /** Whether the element is readonly or not */\n @Prop({ reflect: true }) readonly: boolean = false;\n\n /** Whether the element is disabled or not */\n @Prop({ reflect: true }) disabled: boolean = false;\n\n /** Whether clearable button is showing when input field has value and is enabled (button-right slot not usable anymore when true) */\n @Prop({ reflect: true }) clearable: boolean = false;\n\n /** Hide `(optional)` label (or use `required` inside form to hide it) */\n @Prop({ reflect: true }) hideOptional: boolean = false;\n\n /** Minimum of characters */\n @Prop() minlength: number;\n\n /** Maxlength of characters */\n @Prop() maxlength: number;\n\n /** The name of the input element */\n @Prop({ reflect: true }) name: string;\n\n /** The value of the input element */\n @Prop({ mutable: true }) value: string = \"\";\n\n /** Default value (used by reset) */\n @Prop({ mutable: true }) defaultValue: string = \"\";\n\n /** Description message (use description slot as alternative) */\n @Prop() description: string;\n\n /** Long description message appearing in a popover (use description-long slot as alternative) */\n @Prop() descriptionLong: string;\n\n /** Long description title appearing in a popover (use description-long-title slot as or description property alternative) */\n @Prop() descriptionLongTitle: string;\n\n /** One or multiple error message (use error slot as alternative) */\n @Prop() error: string | string[];\n private _error: string[];\n\n /** Invalid status */\n @Prop({ reflect: true }) invalid: boolean = false;\n\n /** Required status */\n @Prop({ reflect: true }) required: boolean = false;\n\n /**\n * Specify inputmode.\n * See [MDN](https://developer.mozilla.org/de/docs/Web/HTML/Global_attributes/inputmode) for possible values\n */\n @Prop() inputmode: string;\n\n /**\n * Specify what the user agent has to provide as automated assistance.\n * See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) for possible values\n */\n @Prop() autocomplete: string = \"on\";\n\n /** Whether autocomplete should be turned off */\n @Prop() noAutocomplete: boolean = false;\n\n /** Label */\n @Prop() label: string = \"\";\n\n /** Whether label should be visually hidden. */\n @Prop() labelHidden: boolean = false;\n\n /** Size variant */\n @Prop({ reflect: true }) size: \"default\" | \"small\" = \"default\";\n\n /** Id for element which describes the input (this will be overwritten if description prop or slot is used, used by stzh-radiogroup) */\n @Prop({ attribute: \"a11y-describedby\" }) a11yDescribedby: string = \"\";\n\n /** Whether the input is filled or not */\n @State() filled: boolean;\n\n @Element() element: HTMLStzhInputElement;\n\n /** Input change event */\n @Event() stzhChange: EventEmitter<StzhInputChangeEvent>;\n\n /** Input changed event */\n @Event() stzhChanged: EventEmitter<StzhInputChangedEvent>;\n\n /** Input focus event */\n @Event() stzhFocus: EventEmitter<StzhInputFocusEvent>;\n\n /** Input blur event */\n @Event() stzhBlur: EventEmitter<StzhInputBlurEvent>;\n\n @Listen(\"reset\", { target: \"document\" })\n resetListener(event: Event) {\n if ((event.target as HTMLElement).contains(this.element)) {\n requestAnimationFrame(() => {\n this.handleReset();\n });\n }\n }\n\n @Watch(\"value\")\n valueWatcher(newValue: string) {\n this.filled = newValue !== \"\";\n }\n\n @Watch(\"error\")\n errorWatcher(newValue: string | string[]) {\n if (typeof newValue === \"string\") {\n try {\n this._error = JSON.parse(newValue);\n } catch (e) {\n if (newValue) {\n this._error = [newValue];\n } else {\n this._error = [];\n }\n }\n } else if (newValue) {\n this._error = newValue;\n } else {\n this._error = [];\n }\n }\n\n @Watch(\"type\")\n typeWatcher(newValue: string) {\n const types = [\"text\", \"search\", \"password\", \"email\", \"url\", \"tel\", \"number\", \"hidden\"];\n\n if (!this.multiline && !types.includes(newValue)) {\n throw new Error(`Type ${newValue} not supported`);\n }\n }\n\n private input: HTMLInputElement | HTMLTextAreaElement;\n private inputId: string;\n private focusedByInput: boolean = false;\n private renderPromiseResolve: (value?: unknown) => void;\n\n private waitForNextRender() {\n return new Promise(resolve => (this.renderPromiseResolve = resolve));\n }\n\n private onClearClick = async (event: MouseEvent) => {\n this.value = \"\";\n this.input.focus();\n\n await this.waitForNextRender();\n\n this.stzhChange.emit({\n component: \"stzh-input\",\n originalEvent: event,\n value: this.value,\n });\n\n this.stzhChanged.emit({\n component: \"stzh-input\",\n originalEvent: event,\n value: this.value,\n });\n };\n\n private handleReset = async () => {\n this.value = this.defaultValue;\n // we also update value, since render doesn't get executed sometimes\n this.input.value = this.defaultValue;\n\n // TODO: check if we need own reset event or trigger the change event\n // (custom browser behaviour doesn't send change event, when reset is executed)\n // this.stzhChange.emit({\n // component: \"stzh-input\",\n // originalEvent: event,\n // value: this.value\n // });\n };\n\n private onInput = (event: InputEvent) => {\n this.value = this.input.value;\n\n this.stzhChange.emit({\n component: \"stzh-input\",\n originalEvent: event,\n value: this.value,\n });\n };\n\n private onChange = (event: InputEvent) => {\n this.value = this.input.value;\n\n this.stzhChanged.emit({\n component: \"stzh-input\",\n originalEvent: event,\n value: this.value,\n });\n };\n\n private onRootFocus = () => {\n if (!this.focusedByInput) {\n this.input.focus();\n }\n\n this.focusedByInput = false;\n };\n\n private onFocus = (event: FocusEvent) => {\n this.focusedByInput = true;\n\n const focusEvent = new FocusEvent(\"focus\", {\n view: window,\n bubbles: false,\n cancelable: false,\n });\n\n this.element.dispatchEvent(focusEvent);\n this.stzhFocus.emit({\n component: \"stzh-input\",\n originalEvent: event,\n });\n };\n\n private onBlur = (event: FocusEvent) => {\n // fixes weird bug where autofill selection doesn't get removed\n this.input.value = this.input.value;\n\n const blurEvent = new FocusEvent(\"blur\", {\n view: window,\n bubbles: false,\n cancelable: false,\n });\n\n this.element.dispatchEvent(blurEvent);\n this.stzhBlur.emit({\n component: \"stzh-input\",\n originalEvent: event,\n });\n };\n\n private renderTextarea(): HTMLTextAreaElement {\n return (\n <textarea\n class=\"stzh-input__input stzh-input__input--textarea\"\n ref={el => (this.input = el as HTMLTextAreaElement)}\n id={this.inputId}\n name={this.name}\n value={this.value}\n rows={this.rows}\n disabled={this.disabled}\n readonly={this.readonly}\n minlength={this.minlength}\n maxlength={this.maxlength}\n aria-describedby={`${this.inputId}-description ${this.a11yDescribedby}`}\n aria-required={this.required ? \"true\" : \"false\"}\n aria-invalid={this.invalid ? \"true\" : \"false\"}\n onChange={this.onChange}\n onInput={this.onInput}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n ></textarea>\n );\n }\n\n private renderInput(): HTMLInputElement {\n return (\n <input\n class=\"stzh-input__input stzh-input__input--input\"\n ref={el => (this.input = el as HTMLInputElement)}\n id={this.inputId}\n type={this.type}\n name={this.name}\n value={this.value}\n defaultValue={this.defaultValue}\n min={this.min}\n max={this.max}\n step={this.step}\n inputmode={this.inputmode}\n disabled={this.disabled}\n readonly={this.readonly}\n minlength={this.minlength}\n maxlength={this.maxlength}\n autocomplete={this.noAutocomplete ? \"off\" : this.autocomplete}\n aria-autocomplete={this.noAutocomplete ? \"none\" : undefined}\n aria-describedby={`${this.inputId}-description ${this.a11yDescribedby}`}\n aria-required={this.required ? \"true\" : \"false\"}\n aria-invalid={this.invalid ? \"true\" : \"false\"}\n onChange={this.onChange}\n onInput={this.onInput}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n />\n );\n }\n\n componentDidRender() {\n if (this.renderPromiseResolve) {\n this.renderPromiseResolve();\n }\n }\n\n async componentWillLoad() {\n this.inputId = `stzh-input-${inputCounter++}`;\n this.typeWatcher(this.type);\n this.valueWatcher(this.value);\n this.errorWatcher(this.error);\n\n this.defaultValue = this.defaultValue || this.value;\n\n if (!this.localization) {\n this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, \"input\");\n }\n }\n\n render() {\n const buttonRightSlotUsed = hasSlot(this.element, \"button-right\");\n const descriptionUsed = hasSlot(this.element, \"description\") || !!this.description;\n const descriptionLongUsed = hasSlot(this.element, \"description-long\") || !!this.descriptionLong;\n const errorUsed = hasSlot(this.element, \"error\") || this._error?.length > 0;\n\n const classes = {\n \"stzh-input\": true,\n \"stzh-input--has-button-right\":\n buttonRightSlotUsed ||\n this.type === \"search\" ||\n (this.clearable && this.filled && !this.readonly && !this.disabled),\n \"stzh-input--has-description\": descriptionUsed,\n \"stzh-input--has-description-long\": descriptionLongUsed,\n \"stzh-input--has-error\": errorUsed,\n \"stzh-input--has-spin\": this.showSpin,\n \"stzh-input--is-invalid\": this.invalid || errorUsed,\n \"stzh-input--is-disabled\": this.disabled,\n \"stzh-input--is-readonly\": this.readonly,\n \"stzh-input--is-required\": this.required,\n \"stzh-input--is-filled\": this.filled,\n \"stzh-input--is-not-filled\": !this.filled,\n \"stzh-input--is-clearable\": this.clearable,\n \"stzh-input--is-not-clearable\": !this.clearable,\n \"stzh-input--has-label-hidden\": this.labelHidden,\n [`stzh-input--size-${this.size}`]: !!this.size,\n [`stzh-input--type-${this.type}`]: !!this.type,\n };\n\n return (\n <Host\n is-invalid={this.invalid || errorUsed}\n tabindex={this.disabled ? null : \"-1\"}\n onFocus={this.onRootFocus}\n is-filled={this.filled}\n >\n <div class={classes}>\n <label class=\"stzh-input__label\" htmlFor={this.inputId}>\n {this.label ? this.label : <slot></slot>}\n {!this.hideOptional && (\n <span class=\"stzh-input__marker\">\n <span class=\"stzh-input__marker-symbol\" aria-hidden=\"true\">\n {this.required\n ? this.localization.$globals.requiredFieldMarker\n : this.localization.$globals.optionalFieldMarker}\n </span>\n <span class=\"stzh-input__marker-text\">\n {this.required\n ? this.localization.$globals.requiredFieldText\n : this.localization.$globals.optionalFieldText}\n </span>\n </span>\n )}\n </label>\n <div class=\"stzh-input__field-wrapper\">\n {this.multiline ? this.renderTextarea() : this.renderInput()}\n {this.clearable || this.type === \"search\" || this.type === \"password\" ? (\n (!this.clearable || this.disabled || this.readonly || !this.filled) &&\n (this.type === \"search\" || this.type === \"password\") ? (\n <stzh-button\n class=\"stzh-input__button-right\"\n icon={this.type === \"search\" ? \"search\" : \"view\"}\n size={this.size}\n iconOnly={true}\n disabled={true}\n ></stzh-button>\n ) : this.filled ? (\n <stzh-button\n class=\"stzh-input__button-right\"\n icon=\"close\"\n size={this.size}\n iconOnly={true}\n onClick={this.onClearClick}\n a11yLabel={this.localization.$globals.clearButtonLabel}\n aria-controls={this.inputId}\n ></stzh-button>\n ) : (\n <slot name=\"button-right\"></slot>\n )\n ) : (\n <slot name=\"button-right\"></slot>\n )}\n </div>\n {(this._error?.length > 0 || this.description) && (\n <StzhInputDescription\n classPrefix=\"stzh-input\"\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 )}\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -1 +1 @@
1
- {"file":"stzh-monthyearpicker.entry.js","mappings":";;AAAA,MAAM,sBAAsB,GAAG,i9DAAi9D;;MCyBn+D,mBAAmB;;;;IAgKtB,gBAAW,GAAG;MACpB,IAAI,IAAI,CAAC,cAAc,EAAE;QACvB,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,CAAC;OAC7B;KACF,CAAA;IAEO,2BAAsB,GAAG,CAAC,KAA2C;MAC3E,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC;MAChD,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,IAAI,IAAI,CAAC;MACzC,IAAI,CA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GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EACjC,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,YAAY,EAAE,IAAI,CAAC,YAAY,EAC/B,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,EACvC,WAAW,EAAE,IAAI,CAAC,eAAe,EACjC,eAAe,EAAE,IAAI,CAAC,mBAAmB,EACzC,KAAK,EAAE,IAAI,CAAC,SAAS,EACrB,eAAe,EAAE,IAAI,CAAC,mBAAmB,EACzC,OAAO,EAAE,IAAI,CAAC,WAAW,GACV,CACb,CACF,CACD,EACP;GACH;;;;;;;;;;;;;;","names":[],"sources":["src/components/stzh-monthyearpicker/stzh-monthyearpicker.scss?tag=stzh-monthyearpicker&encapsulation=scoped","src/components/stzh-monthyearpicker/stzh-monthyearpicker.tsx"],"sourcesContent":[":host {\n width: 100%;\n --separator-height: #{$formInputHeight};\n\n &[size=\"small\"] {\n --separator-height: #{$formInputHeightSmall};\n }\n}\n\n.stzh-monthyearpicker {\n &__wrapper {\n display: flex;\n align-items: flex-start;\n }\n\n &__separator {\n @include fontSize('milli');\n margin-left: space('medium');\n margin-right: space('medium');\n height: var(--separator-height);\n display: flex;\n align-items: center;\n align-self: flex-end;\n }\n}\n","import {\n Component,\n Prop,\n Host,\n Element,\n h,\n Event,\n EventEmitter,\n Watch,\n Listen,\n} from \"@stencil/core\";\n\nimport {\n StzhDropdownOption,\n StzhDropdownChangeEvent,\n StzhMonthyearpickerChangeEvent,\n} from \"../../index\";\n\nimport { StzhMonthyearpickerLocalizedText } from \"./stzh-monthyearpicker.localization\";\n\n@Component({\n tag: \"stzh-monthyearpicker\",\n styleUrl: \"stzh-monthyearpicker.scss\",\n scoped: true\n})\nexport class StzhMonthyearpicker {\n /** Initial open state of month dropdown */\n @Prop() monthOpen: boolean = false;\n\n /** Initial open state of year dropdown */\n @Prop() yearOpen: boolean = false;\n\n /** Set which months to show (overwrites months from min/max) */\n @Prop() months: number[] | string;\n private _months: number[];\n\n /** Set which years to show (overwrites years from min/max) */\n @Prop() years: number[] | string;\n private _years: number[];\n\n /** Sort direction */\n @Prop({ mutable: true }) yearSortDirection: \"asc\" | \"desc\" = \"asc\";\n\n /**\n * Minimum month and year allowed to be picked in `YYYY-MM` format.\n * This setting can be used alone or together with the `max` property.\n */\n @Prop() min: string;\n\n /**\n * Maximum month and year allowed to be picked in `YYYY-MM` format.\n * This setting can be used alone or together with the `min` property.\n */\n @Prop() max: string;\n\n /**\n * Minimum year (will be overwritten if `min` is used).\n * This setting can be used alone or together with the `maxYear` property.\n */\n @Prop() minYear: number;\n\n /**\n * Maximum year (will be overwritten if `max` is used).\n * This setting can be used alone or together with the `minYear` property.\n */\n @Prop() maxYear: number;\n\n /** Picker format. */\n @Prop({ reflect: true }) format: \"default\" | \"creditcard\" = \"default\";\n\n /** Name of the hidden date picker input. */\n @Prop({ reflect: true }) name: string = \"\";\n\n /** Value of hidden input (current selected year and month YYYY-MM). */\n @Prop({ mutable: true, reflect: true }) value: string = \"0000-00\";\n\n /** Popover placement for the dropdown (if applicable) */\n @Prop({ reflect: true }) popoverPlacement: \"bottom\" | \"bottom-end\" | \"bottom-center\" | \"top\" | \"top-end\" | \"top-center\" = \"bottom\";\n\n /** Month dropdown label */\n @Prop() monthLabel: string = \"\";\n\n /** Year dropdown label */\n @Prop() yearLabel: string = \"\";\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 /** 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 /** Description message for month */\n @Prop() descriptionMonth: string;\n\n /** Description message for year */\n @Prop() descriptionYear: string;\n\n /** Long description message appearing in a popover for month */\n @Prop() descriptionLongMonth: string;\n\n /** Long description message appearing in a popover for year */\n @Prop() descriptionLongYear: string;\n\n /** One or multiple error message for month */\n @Prop() errorMonth: string | string[];\n\n /** One or multiple error message for year */\n @Prop() errorYear: string | string[];\n\n /** Invalid status for month */\n @Prop({ reflect: true }) invalidMonth: boolean = false;\n\n /** Invalid status for year */\n @Prop({ reflect: true }) invalidYear: boolean = false;\n\n /** Id of the element which describes the month dropdown */\n @Prop({ attribute: \"a11y-describedby\" }) a11yDescribedbyMonth: string = \"\";\n\n /** Id of the element which describes the year dropdown */\n @Prop({ attribute: \"a11y-describedby\" }) a11yDescribedbyYear: string = \"\";\n\n /** Translation strings. */\n @Prop() localization: StzhMonthyearpickerLocalizedText;\n\n /** Monthyearpicker change event */\n @Event() stzhChange: EventEmitter<StzhMonthyearpickerChangeEvent>;\n\n @Element() element: HTMLStzhMonthyearpickerElement;\n\n @Watch(\"months\")\n monthsWatcher(newValue: number[] | string) {\n if (typeof newValue === \"string\") {\n this._months = JSON.parse(newValue);\n } else {\n this._months = newValue;\n }\n\n this.updateMonthOptions();\n }\n\n @Watch(\"years\")\n yearsWatcher(newValue: number[] | string) {\n if (typeof newValue === \"string\") {\n this._years = JSON.parse(newValue);\n } else {\n this._years = newValue;\n }\n\n this.updateYearOptions();\n }\n\n @Watch(\"value\")\n @Watch(\"min\")\n @Watch(\"max\")\n minMaxWatcher() {\n this.updateMonthOptions();\n this.updateYearOptions();\n }\n\n @Listen(\"stzhChange\", { capture: true })\n onDropdownChange(event: CustomEvent<StzhDropdownChangeEvent>) {\n if (event.detail.component === \"stzh-dropdown\") {\n if ((event.target as HTMLStzhDropdownElement).name === `${this.name}-year`) {\n this.onYearsDropdownChange(event);\n } else {\n this.onMonthsDropdownChange(event);\n }\n // stop propagating dropdown change event otherwise angular control value accessor won't work\n event.stopPropagation();\n }\n }\n\n private monthsDropdown: HTMLStzhDropdownElement;\n private dropdownMonthOptions: StzhDropdownOption[];\n private dropdownYearOptions: StzhDropdownOption[];\n\n private onRootFocus = () => {\n if (this.monthsDropdown) {\n this.monthsDropdown.focus();\n }\n }\n\n private onMonthsDropdownChange = (event: CustomEvent<StzhDropdownChangeEvent>) => {\n const year = this.value.split(\"-\")[0] || \"0000\";\n const month = event.detail.value || \"00\";\n this.onChange(year, month);\n }\n\n private onYearsDropdownChange = (event: CustomEvent<StzhDropdownChangeEvent>) => {\n const year = event.detail.value || \"0000\";\n const month = this.value.split(\"-\")[1] || \"00\";\n this.onChange(year, month);\n }\n\n private onChange(year, month) {\n this.value = `${year}-${month}`;\n this.stzhChange.emit({\n component: \"stzh-monthyearpicker\",\n value: this.value,\n valueMonth: month,\n valueYear: year\n });\n }\n\n private updateMonthOptions() {\n const options = [];\n let months = [];\n\n if (this._months) {\n months = this._months;\n } else {\n const currentYear = Number(this.value.split(\"-\")[0] || \"0000\");\n\n let minMonth = 1;\n let maxMonth = 12;\n\n if (this.min) {\n const minDate = new Date(this.min);\n\n if (currentYear === minDate.getFullYear()) {\n minMonth = minDate.getMonth() + 1;\n }\n }\n\n if (this.max) {\n const maxDate = new Date(this.max);\n\n if (currentYear === maxDate.getFullYear()) {\n maxMonth = maxDate.getMonth() + 1;\n }\n }\n\n for (let i = minMonth; i <= maxMonth; i++) {\n months.push(i);\n }\n }\n\n months.forEach((month) => {\n const paddedMonth = (\"00\" + month).slice(-2);\n const monthName = this.localization.$globals.monthNames[month - 1];\n\n options.push({\n text: this.format === \"creditcard\"\n ? `${paddedMonth} (${monthName})`\n : monthName,\n value: paddedMonth\n });\n });\n\n this.dropdownMonthOptions = options;\n }\n\n private initializeYears(): void {\n if (Array.isArray(this.years)) {\n this._years = this.years.map(Number); \n } else if (typeof this.years === \"string\") {\n // If \"years\" is a string, split in numbers\n this._years = this.years\n .split(\",\")\n .map((year) => parseInt(year.trim(), 10))\n .filter((year) => !isNaN(year)); \n // Delete non valid values\n }\n }\n\n private updateYearOptions(): void {\n const options: StzhDropdownOption[] = [];\n let years: number[] = [];\n\n if (this._years && this._years.length > 0) {\n years = this._years;\n } else {\n const currentMonth = Number(this.value.split(\"-\")[1] || \"00\");\n\n const yearNow = new Date().getFullYear();\n let minYear = this.minYear || (yearNow - 10);\n let maxYear = this.maxYear || (yearNow + 10);\n\n if (this.min) {\n const minDate = new Date(this.min);\n if (currentMonth && currentMonth < minDate.getMonth() + 1) {\n minYear = minDate.getFullYear() + 1;\n } else {\n minYear = minDate.getFullYear();\n }\n }\n\n if (this.max) {\n const maxDate = new Date(this.max);\n if (currentMonth && currentMonth > maxDate.getMonth() + 1) {\n maxYear = maxDate.getFullYear() - 1;\n } else {\n maxYear = maxDate.getFullYear();\n }\n }\n\n for (let i = minYear; i <= maxYear; i++) {\n years.push(i);\n }\n }\n\n years.sort((a, b) => (this.yearSortDirection === \"asc\" ? a - b : b - a));\n\n years.forEach((year) => {\n options.push({ text: `${year}`, value: `${year}` });\n });\n\n this.dropdownYearOptions = options;\n }\n\n async componentWillLoad() {\n if (!this.localization) {\n this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, \"monthyearpicker\");\n }\n\n this.initializeYears();\n this.monthsWatcher(this.months);\n this.yearsWatcher(this.years);\n\n }\n\n render() {\n const classes = {\n \"stzh-monthyearpicker\": true\n };\n\n return (\n <Host tabindex={this.disabled ? null : \"-1\"} onFocus={this.onRootFocus}>\n <div class={classes}>\n <input type=\"hidden\" name={this.name} value={this.value} />\n\n <div class=\"stzh-monthyearpicker__wrapper\">\n <stzh-dropdown\n open={this.monthOpen}\n name={`${this.name}-month`}\n class=\"stzh-monthyearpicker__months-dropdown\"\n label={this.monthLabel || this.localization.monthLabel}\n ref={(el) => (this.monthsDropdown = el as HTMLStzhDropdownElement)}\n options={this.dropdownMonthOptions}\n items={[this.value.split(\"-\")[1]]}\n required={this.required}\n disabled={this.disabled}\n size={this.size}\n hideOptional={this.hideOptional}\n popoverPlacement={this.popoverPlacement}\n description={this.descriptionMonth}\n descriptionLong={this.descriptionLongMonth}\n error={this.errorMonth}\n a11yDescribedby={this.a11yDescribedbyMonth}\n invalid={this.invalidMonth}\n ></stzh-dropdown>\n\n <div class=\"stzh-monthyearpicker__separator\">/</div>\n\n <stzh-dropdown\n open={this.yearOpen}\n name={`${this.name}-year`}\n class=\"stzh-monthyearpicker__years-dropdown\"\n label={this.yearLabel || this.localization.yearLabel}\n options={this.dropdownYearOptions}\n items={[this.value.split(\"-\")[0]]}\n required={this.required}\n disabled={this.disabled}\n size={this.size}\n hideOptional={this.hideOptional}\n popoverPlacement={this.popoverPlacement}\n description={this.descriptionYear}\n descriptionLong={this.descriptionLongYear}\n error={this.errorYear}\n a11yDescribedby={this.a11yDescribedbyYear}\n invalid={this.invalidYear}\n ></stzh-dropdown>\n </div>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"stzh-monthyearpicker.entry.js","mappings":";;AAAA,MAAM,sBAAsB,GAAG,i9DAAi9D;;MCyBn+D,mBAAmB;;;;IAgKtB,gBAAW,GAAG;MACpB,IAAI,IAAI,CAAC,cAAc,EAAE;QACvB,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,CAAC;OAC7B;KACF,CAAA;IAEO,2BAAsB,GAAG,CAAC,KAA2C;MAC3E,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC;MAChD,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,IAAI,IAAI,CAAC;MACzC,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;KAC5B,CAAA;IAEO,0BAAqB,GAAG,CAAC,KAA2C;MAC1E,MAAM,IAAI,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,IAAI,MAAM,CAAC;MAC1C,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,CAA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EAAE,IAAI,CAAC,mBAAmB,EACzC,KAAK,EAAE,IAAI,CAAC,SAAS,EACrB,eAAe,EAAE,IAAI,CAAC,mBAAmB,EACzC,OAAO,EAAE,IAAI,CAAC,WAAW,GACV,CACb,CACF,CACD,EACP;GACH;;;;;;;;;;;;;;","names":[],"sources":["src/components/stzh-monthyearpicker/stzh-monthyearpicker.scss?tag=stzh-monthyearpicker&encapsulation=scoped","src/components/stzh-monthyearpicker/stzh-monthyearpicker.tsx"],"sourcesContent":[":host {\n width: 100%;\n --separator-height: #{$formInputHeight};\n\n &[size=\"small\"] {\n --separator-height: #{$formInputHeightSmall};\n }\n}\n\n.stzh-monthyearpicker {\n &__wrapper {\n display: flex;\n align-items: flex-start;\n }\n\n &__separator {\n @include fontSize('milli');\n margin-left: space('medium');\n margin-right: space('medium');\n height: var(--separator-height);\n display: flex;\n align-items: center;\n align-self: flex-end;\n }\n}\n","import {\n Component,\n Prop,\n Host,\n Element,\n h,\n Event,\n EventEmitter,\n Watch,\n Listen,\n} from \"@stencil/core\";\n\nimport {\n StzhDropdownOption,\n StzhDropdownChangeEvent,\n StzhMonthyearpickerChangeEvent,\n} from \"../../index\";\n\nimport { StzhMonthyearpickerLocalizedText } from \"./stzh-monthyearpicker.localization\";\n\n@Component({\n tag: \"stzh-monthyearpicker\",\n styleUrl: \"stzh-monthyearpicker.scss\",\n scoped: true\n})\nexport class StzhMonthyearpicker {\n /** Initial open state of month dropdown */\n @Prop() monthOpen: boolean = false;\n\n /** Initial open state of year dropdown */\n @Prop() yearOpen: boolean = false;\n\n /** Set which months to show (overwrites months from min/max) */\n @Prop() months: number[] | string;\n private _months: number[];\n\n /** Set which years to show (overwrites years from min/max) */\n @Prop() years: number[] | string;\n private _years: number[];\n\n /** Sort direction */\n @Prop({ mutable: true }) yearSortDirection: \"asc\" | \"desc\" = \"asc\";\n\n /**\n * Minimum month and year allowed to be picked in `YYYY-MM` format.\n * This setting can be used alone or together with the `max` property.\n */\n @Prop() min: string;\n\n /**\n * Maximum month and year allowed to be picked in `YYYY-MM` format.\n * This setting can be used alone or together with the `min` property.\n */\n @Prop() max: string;\n\n /**\n * Minimum year (will be overwritten if `min` is used).\n * This setting can be used alone or together with the `maxYear` property.\n */\n @Prop() minYear: number;\n\n /**\n * Maximum year (will be overwritten if `max` is used).\n * This setting can be used alone or together with the `minYear` property.\n */\n @Prop() maxYear: number;\n\n /** Picker format. */\n @Prop({ reflect: true }) format: \"default\" | \"creditcard\" = \"default\";\n\n /** Name of the hidden date picker input. */\n @Prop({ reflect: true }) name: string = \"\";\n\n /** Value of hidden input (current selected year and month YYYY-MM). */\n @Prop({ mutable: true, reflect: true }) value: string = \"0000-00\";\n\n /** Popover placement for the dropdown (if applicable) */\n @Prop({ reflect: true }) popoverPlacement: \"bottom\" | \"bottom-end\" | \"bottom-center\" | \"top\" | \"top-end\" | \"top-center\" = \"bottom\";\n\n /** Month dropdown label */\n @Prop() monthLabel: string = \"\";\n\n /** Year dropdown label */\n @Prop() yearLabel: string = \"\";\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 /** Required status */\n @Prop({ reflect: true }) required: boolean = false;\n\n /** Hide `(optional)` label (or use `required` inside form to hide it) */\n @Prop({ reflect: true }) hideOptional: boolean = false;\n\n /** Size variant */\n @Prop({ reflect: true }) size: \"default\" | \"small\" = \"default\";\n\n /** Description message for month */\n @Prop() descriptionMonth: string;\n\n /** Description message for year */\n @Prop() descriptionYear: string;\n\n /** Long description message appearing in a popover for month */\n @Prop() descriptionLongMonth: string;\n\n /** Long description message appearing in a popover for year */\n @Prop() descriptionLongYear: string;\n\n /** One or multiple error message for month */\n @Prop() errorMonth: string | string[];\n\n /** One or multiple error message for year */\n @Prop() errorYear: string | string[];\n\n /** Invalid status for month */\n @Prop({ reflect: true }) invalidMonth: boolean = false;\n\n /** Invalid status for year */\n @Prop({ reflect: true }) invalidYear: boolean = false;\n\n /** Id of the element which describes the month dropdown */\n @Prop({ attribute: \"a11y-describedby\" }) a11yDescribedbyMonth: string = \"\";\n\n /** Id of the element which describes the year dropdown */\n @Prop({ attribute: \"a11y-describedby\" }) a11yDescribedbyYear: string = \"\";\n\n /** Translation strings. */\n @Prop() localization: StzhMonthyearpickerLocalizedText;\n\n /** Monthyearpicker change event */\n @Event() stzhChange: EventEmitter<StzhMonthyearpickerChangeEvent>;\n\n @Element() element: HTMLStzhMonthyearpickerElement;\n\n @Watch(\"months\")\n monthsWatcher(newValue: number[] | string) {\n if (typeof newValue === \"string\") {\n this._months = JSON.parse(newValue);\n } else {\n this._months = newValue;\n }\n\n this.updateMonthOptions();\n }\n\n @Watch(\"years\")\n yearsWatcher(newValue: number[] | string) {\n if (typeof newValue === \"string\") {\n this._years = JSON.parse(newValue);\n } else {\n this._years = newValue;\n }\n\n this.updateYearOptions();\n }\n\n @Watch(\"value\")\n @Watch(\"min\")\n @Watch(\"max\")\n minMaxWatcher() {\n this.updateMonthOptions();\n this.updateYearOptions();\n }\n\n @Listen(\"stzhChange\", { capture: true })\n onDropdownChange(event: CustomEvent<StzhDropdownChangeEvent>) {\n if (event.detail.component === \"stzh-dropdown\") {\n if ((event.target as HTMLStzhDropdownElement).name === `${this.name}-year`) {\n this.onYearsDropdownChange(event);\n } else {\n this.onMonthsDropdownChange(event);\n }\n // stop propagating dropdown change event otherwise angular control value accessor won't work\n event.stopPropagation();\n }\n }\n\n private monthsDropdown: HTMLStzhDropdownElement;\n private dropdownMonthOptions: StzhDropdownOption[];\n private dropdownYearOptions: StzhDropdownOption[];\n\n private onRootFocus = () => {\n if (this.monthsDropdown) {\n this.monthsDropdown.focus();\n }\n }\n\n private onMonthsDropdownChange = (event: CustomEvent<StzhDropdownChangeEvent>) => {\n const year = this.value.split(\"-\")[0] || \"0000\";\n const month = event.detail.value || \"00\";\n this.onChange(year, month);\n }\n\n private onYearsDropdownChange = (event: CustomEvent<StzhDropdownChangeEvent>) => {\n const year = event.detail.value || \"0000\";\n const month = this.value.split(\"-\")[1] || \"00\";\n this.onChange(year, month);\n }\n\n private onChange(year, month) {\n this.value = `${year}-${month}`;\n this.stzhChange.emit({\n component: \"stzh-monthyearpicker\",\n value: this.value,\n valueMonth: month,\n valueYear: year\n });\n }\n\n private updateMonthOptions() {\n const options = [];\n let months = [];\n\n if (this._months) {\n months = this._months;\n } else {\n const currentYear = Number(this.value.split(\"-\")[0] || \"0000\");\n\n let minMonth = 1;\n let maxMonth = 12;\n\n if (this.min) {\n const minDate = new Date(this.min);\n\n if (currentYear === minDate.getFullYear()) {\n minMonth = minDate.getMonth() + 1;\n }\n }\n\n if (this.max) {\n const maxDate = new Date(this.max);\n\n if (currentYear === maxDate.getFullYear()) {\n maxMonth = maxDate.getMonth() + 1;\n }\n }\n\n for (let i = minMonth; i <= maxMonth; i++) {\n months.push(i);\n }\n }\n\n months.forEach((month) => {\n const paddedMonth = (\"00\" + month).slice(-2);\n const monthName = this.localization.$globals.monthNames[month - 1];\n\n options.push({\n text: this.format === \"creditcard\"\n ? `${paddedMonth} (${monthName})`\n : monthName,\n value: paddedMonth\n });\n });\n\n this.dropdownMonthOptions = options;\n }\n\n private initializeYears(): void {\n if (Array.isArray(this.years)) {\n this._years = this.years.map(Number);\n } else if (typeof this.years === \"string\") {\n // If \"years\" is a string, split in numbers\n this._years = this.years\n .split(\",\")\n .map((year) => parseInt(year.trim(), 10))\n .filter((year) => !isNaN(year));\n // Delete non valid values\n }\n }\n\n private updateYearOptions(): void {\n const options: StzhDropdownOption[] = [];\n let years: number[] = [];\n\n if (this._years && this._years.length > 0) {\n years = this._years;\n } else {\n const currentMonth = Number(this.value.split(\"-\")[1] || \"00\");\n\n const yearNow = new Date().getFullYear();\n let minYear = this.minYear || (yearNow - 10);\n let maxYear = this.maxYear || (yearNow + 10);\n\n if (this.min) {\n const minDate = new Date(this.min);\n if (currentMonth && currentMonth < minDate.getMonth() + 1) {\n minYear = minDate.getFullYear() + 1;\n } else {\n minYear = minDate.getFullYear();\n }\n }\n\n if (this.max) {\n const maxDate = new Date(this.max);\n if (currentMonth && currentMonth > maxDate.getMonth() + 1) {\n maxYear = maxDate.getFullYear() - 1;\n } else {\n maxYear = maxDate.getFullYear();\n }\n }\n\n for (let i = minYear; i <= maxYear; i++) {\n years.push(i);\n }\n }\n\n years.sort((a, b) => (this.yearSortDirection === \"asc\" ? a - b : b - a));\n\n years.forEach((year) => {\n options.push({ text: `${year}`, value: `${year}` });\n });\n\n this.dropdownYearOptions = options;\n }\n\n async componentWillLoad() {\n if (!this.localization) {\n this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, \"monthyearpicker\");\n }\n\n this.initializeYears();\n this.monthsWatcher(this.months);\n this.yearsWatcher(this.years);\n\n }\n\n render() {\n const classes = {\n \"stzh-monthyearpicker\": true\n };\n\n return (\n <Host tabindex={this.disabled ? null : \"-1\"} onFocus={this.onRootFocus}>\n <div class={classes}>\n <input type=\"hidden\" name={this.name} value={this.value} />\n\n <div class=\"stzh-monthyearpicker__wrapper\">\n <stzh-dropdown\n open={this.monthOpen}\n name={`${this.name}-month`}\n class=\"stzh-monthyearpicker__months-dropdown\"\n label={this.monthLabel || this.localization.monthLabel}\n ref={(el) => (this.monthsDropdown = el as HTMLStzhDropdownElement)}\n options={this.dropdownMonthOptions}\n items={[this.value.split(\"-\")[1]]}\n required={this.required}\n disabled={this.disabled}\n size={this.size}\n hideOptional={this.hideOptional}\n popoverPlacement={this.popoverPlacement}\n description={this.descriptionMonth}\n descriptionLong={this.descriptionLongMonth}\n error={this.errorMonth}\n a11yDescribedby={this.a11yDescribedbyMonth}\n invalid={this.invalidMonth}\n ></stzh-dropdown>\n\n <div class=\"stzh-monthyearpicker__separator\">/</div>\n\n <stzh-dropdown\n open={this.yearOpen}\n name={`${this.name}-year`}\n class=\"stzh-monthyearpicker__years-dropdown\"\n label={this.yearLabel || this.localization.yearLabel}\n options={this.dropdownYearOptions}\n items={[this.value.split(\"-\")[0]]}\n required={this.required}\n disabled={this.disabled}\n size={this.size}\n hideOptional={this.hideOptional}\n popoverPlacement={this.popoverPlacement}\n description={this.descriptionYear}\n descriptionLong={this.descriptionLongYear}\n error={this.errorYear}\n a11yDescribedby={this.a11yDescribedbyYear}\n invalid={this.invalidYear}\n ></stzh-dropdown>\n </div>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -0,0 +1,72 @@
1
+ import { r as registerInstance, h, a as Host, g as getElement } from './index-e3050b18.js';
2
+ import { s as setPropsIfNull, h as hasSlot } from './utils-54aead01.js';
3
+ import { m as media, a as addMediaChangeListener, r as removeMediaChangeListener } from './media-utils-d80f83d2.js';
4
+ import './string-utils-e252977e.js';
5
+
6
+ const stzhPagetitleHomeCss = ".sc-stzh-pagetitle-home-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-pagetitle-home-h{display:none}.sc-stzh-pagetitle-home-h::-moz-selection{color:var(--stzh-selection-color);background-color:var(--stzh-selection-background-color)}.sc-stzh-pagetitle-home-h::selection{color:var(--stzh-selection-color);background-color:var(--stzh-selection-background-color)}.sc-stzh-pagetitle-home-h *.sc-stzh-pagetitle-home,.sc-stzh-pagetitle-home-h *.sc-stzh-pagetitle-home::before,.sc-stzh-pagetitle-home-h *.sc-stzh-pagetitle-home::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-pagetitle-home-h .has-focus.sc-stzh-pagetitle-home{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.125rem}.sc-stzh-pagetitle-home-h .stzh-fylingfocus-focused.sc-stzh-pagetitle-home{outline-style:none !important}.sc-stzh-pagetitle-home-h .stzh-fylingfocus-focused.sc-stzh-pagetitle-home::-moz-focus-inner{border:0 !important}.sc-stzh-pagetitle-home-h .sc-stzh-pagetitle-home-s>[slot=image]{position:absolute;inset:0;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.sc-stzh-pagetitle-home-h .sc-stzh-pagetitle-home-s>[slot=heading]{--color:var(--stzh-pagetitle-home-heading-color, var(--stzh-color-secondary50))}.sc-stzh-pagetitle-home-h .sc-stzh-pagetitle-home-s>[slot=subheading]{--color:var(--stzh-pagetitle-home-heading-color, var(--stzh-heading-color))}.sc-stzh-pagetitle-home-h .sc-stzh-pagetitle-home-s>[slot=readspeaker] *{--color:var(--stzh-pagetitle-home-subheading-color, var(--stzh-heading-color));--hover-color:var(--stzh-pagetitle-home-subheading-color, var(--stzh-heading-color))}.sc-stzh-pagetitle-home-h[has-image] .sc-stzh-pagetitle-home-s>[slot=readspeaker] *{--color:var(--stzh-pagetitle-home-subheading-color, var(--stzh-color-white));--hover-color:var(--stzh-pagetitle-home-subheading-color, var(--stzh-color-white))}.sc-stzh-pagetitle-home-h[has-image] .sc-stzh-pagetitle-home-s>[slot=heading]{--color:var(--stzh-pagetitle-home-heading-color, var(--stzh-color-lemonyellow50))}.sc-stzh-pagetitle-home-h[has-image] .sc-stzh-pagetitle-home-s>[slot=subheading]{--color:var(--stzh-pagetitle-home-subheading-color, var(--stzh-color-white))}.stzh-pagetitle-home.sc-stzh-pagetitle-home{position:relative;padding-bottom:var(--stzh-space-xxlarge)}@media screen and (min-width: 900px){.stzh-pagetitle-home.sc-stzh-pagetitle-home{padding-bottom:var(--stzh-space-xxxlarge)}}@media screen and (min-width: 1260px){.stzh-pagetitle-home.sc-stzh-pagetitle-home{padding-bottom:var(--stzh-space-xxxxlarge)}}.stzh-pagetitle-home__container.sc-stzh-pagetitle-home{margin-left:1.25rem;margin-right:1.25rem}@media screen and (min-width: 600px){.stzh-pagetitle-home__container.sc-stzh-pagetitle-home{margin-left:2rem;margin-right:2rem}}@media screen and (min-width: 900px){.stzh-pagetitle-home__container.sc-stzh-pagetitle-home{margin-left:2.5rem;margin-right:2.5rem}}@media screen and (min-width: 1260px){.stzh-pagetitle-home__container.sc-stzh-pagetitle-home{margin-left:4rem;margin-right:4rem}}@media screen and (min-width: 1600px){.stzh-pagetitle-home__container.sc-stzh-pagetitle-home{margin-left:auto;margin-right:auto;max-width:84.25rem}}.stzh-pagetitle-home__text.sc-stzh-pagetitle-home{padding-top:var(--stzh-space-xxlarge);padding-bottom:var(--stzh-space-xxlarge);-moz-column-gap:var(--stzh-grid-gutter);column-gap:var(--stzh-grid-gutter);display:grid;grid-template-columns:repeat(4, minmax(0, 1fr))}@media screen and (min-width: 600px){.stzh-pagetitle-home__text.sc-stzh-pagetitle-home{padding-top:var(--stzh-space-xxxxlarge)}}@media screen and (min-width: 900px){.stzh-pagetitle-home__text.sc-stzh-pagetitle-home{padding-top:var(--stzh-space-xxxxlarge)}}@media screen and (min-width: 1260px){.stzh-pagetitle-home__text.sc-stzh-pagetitle-home{padding-top:var(--stzh-space-xbig)}}@media screen and (min-width: 600px){.stzh-pagetitle-home__text.sc-stzh-pagetitle-home{padding-bottom:var(--stzh-space-xxxxlarge)}}@media screen and (min-width: 900px){.stzh-pagetitle-home__text.sc-stzh-pagetitle-home{padding-bottom:var(--stzh-space-xxxxlarge)}}@media screen and (min-width: 1260px){.stzh-pagetitle-home__text.sc-stzh-pagetitle-home{padding-bottom:var(--stzh-space-xbig)}}@media screen and (min-width: 600px){.stzh-pagetitle-home__text.sc-stzh-pagetitle-home{-moz-column-gap:var(--stzh-grid-gutter-small);column-gap:var(--stzh-grid-gutter-small)}}@media screen and (min-width: 900px){.stzh-pagetitle-home__text.sc-stzh-pagetitle-home{-moz-column-gap:var(--stzh-grid-gutter-medium);column-gap:var(--stzh-grid-gutter-medium)}}@media screen and (min-width: 1260px){.stzh-pagetitle-home__text.sc-stzh-pagetitle-home{-moz-column-gap:var(--stzh-grid-gutter-large);column-gap:var(--stzh-grid-gutter-large)}}@media screen and (min-width: 1600px){.stzh-pagetitle-home__text.sc-stzh-pagetitle-home{-moz-column-gap:var(--stzh-grid-gutter-ultra);column-gap:var(--stzh-grid-gutter-ultra)}}@media screen and (min-width: 900px){.stzh-pagetitle-home__text.sc-stzh-pagetitle-home{grid-template-columns:repeat(8, minmax(0, 1fr))}}@media screen and (min-width: 1260px){.stzh-pagetitle-home__text.sc-stzh-pagetitle-home{grid-template-columns:repeat(12, minmax(0, 1fr))}}.stzh-pagetitle-home__image-wrapper.sc-stzh-pagetitle-home{position:relative}.stzh-pagetitle-home__image-inner-wrapper.sc-stzh-pagetitle-home{position:absolute;inset:0;height:100%;margin-left:calc(1.25rem / -1);margin-right:calc(1.25rem / -1)}@media screen and (min-width: 600px){.stzh-pagetitle-home__image-inner-wrapper.sc-stzh-pagetitle-home{margin-left:calc(2rem / -1);margin-right:calc(2rem / -1)}}@media screen and (min-width: 900px){.stzh-pagetitle-home__image-inner-wrapper.sc-stzh-pagetitle-home{margin-left:0;margin-right:0;width:calc(100% + 2.5rem)}}@media screen and (min-width: 1260px){.stzh-pagetitle-home__image-inner-wrapper.sc-stzh-pagetitle-home{width:calc(100% + 4rem)}}@media screen and (min-width: 1600px){.stzh-pagetitle-home__image-inner-wrapper.sc-stzh-pagetitle-home{width:calc(100% + ((100rem - 84.25rem) / 2))}}.stzh-pagetitle-home__image-gradient.sc-stzh-pagetitle-home{position:absolute;background:linear-gradient(1.21deg, rgba(0, 0, 0, 0) 31.71%, rgba(0, 0, 0, 0.5) 83.84%);top:0;right:0;bottom:0;left:0;z-index:1}@media screen and (min-width: 600px){.stzh-pagetitle-home__image-gradient.sc-stzh-pagetitle-home{background:linear-gradient(270deg, rgba(0, 0, 0, 0) 31.21%, rgba(0, 0, 0, 0.5) 91.45%)}}.stzh-pagetitle-home__meta.sc-stzh-pagetitle-home{display:flex;flex-direction:column-reverse;row-gap:var(--stzh-space-xsmall);margin-bottom:var(--stzh-space-medium)}@media screen and (min-width: 600px){.stzh-pagetitle-home__meta.sc-stzh-pagetitle-home{margin-bottom:var(--stzh-space-large)}}@media screen and (min-width: 900px){.stzh-pagetitle-home__meta.sc-stzh-pagetitle-home{margin-bottom:var(--stzh-space-xlarge)}}@media screen and (min-width: 1260px){.stzh-pagetitle-home__meta.sc-stzh-pagetitle-home{margin-bottom:var(--stzh-space-xxlarge)}}@media screen and (min-width: 900px){.stzh-pagetitle-home__meta.sc-stzh-pagetitle-home{flex-direction:row}}@media screen and (min-width: 600px) and (max-width: 899px){.stzh-pagetitle-home__readspeaker.sc-stzh-pagetitle-home{--stzh-readspeaker-dropdown-position:relative;--stzh-readspeaker-dropdown-top:auto}}.stzh-pagetitle-home__subheading.sc-stzh-pagetitle-home{--stzh-base-lead-color:var(--stzh-heading-color)}.stzh-pagetitle-home__heading.sc-stzh-pagetitle-home:not(:empty)+.stzh-pagetitle-home__subheading.sc-stzh-pagetitle-home:not(:empty){margin-top:var(--stzh-space-xsmall)}@media screen and (min-width: 900px){.stzh-pagetitle-home__heading.sc-stzh-pagetitle-home:not(:empty)+.stzh-pagetitle-home__subheading.sc-stzh-pagetitle-home:not(:empty){margin-top:var(--stzh-space-small)}}@media screen and (min-width: 1260px){.stzh-pagetitle-home__heading.sc-stzh-pagetitle-home:not(:empty)+.stzh-pagetitle-home__subheading.sc-stzh-pagetitle-home:not(:empty){margin-top:var(--stzh-space-medium)}}.stzh-pagetitle-home__heading.sc-stzh-pagetitle-home,.stzh-pagetitle-home__subheading.sc-stzh-pagetitle-home,.stzh-pagetitle-home__meta.sc-stzh-pagetitle-home{grid-column:1/span 4}@media screen and (min-width: 900px){.stzh-pagetitle-home__heading.sc-stzh-pagetitle-home,.stzh-pagetitle-home__subheading.sc-stzh-pagetitle-home,.stzh-pagetitle-home__meta.sc-stzh-pagetitle-home{grid-column:1/span 10}}.stzh-pagetitle-home--has-no-image.sc-stzh-pagetitle-home .stzh-pagetitle-home__ratio.sc-stzh-pagetitle-home{display:none}.stzh-pagetitle-home--has-no-image.sc-stzh-pagetitle-home .stzh-pagetitle-home__text.sc-stzh-pagetitle-home{padding-top:var(--stzh-space-medium)}@media screen and (min-width: 600px){.stzh-pagetitle-home--has-no-image.sc-stzh-pagetitle-home .stzh-pagetitle-home__text.sc-stzh-pagetitle-home{padding-top:var(--stzh-space-large)}}@media screen and (min-width: 900px){.stzh-pagetitle-home--has-no-image.sc-stzh-pagetitle-home .stzh-pagetitle-home__text.sc-stzh-pagetitle-home{padding-top:var(--stzh-space-xlarge)}}@media screen and (min-width: 1260px){.stzh-pagetitle-home--has-no-image.sc-stzh-pagetitle-home .stzh-pagetitle-home__text.sc-stzh-pagetitle-home{padding-top:var(--stzh-space-xxlarge)}}.stzh-pagetitle-home--has-image.sc-stzh-pagetitle-home{padding-bottom:0}.stzh-pagetitle-home--has-image.sc-stzh-pagetitle-home .stzh-pagetitle-home__container.sc-stzh-pagetitle-home{position:absolute;top:0;right:0;left:0;z-index:1}.stzh-pagetitle-home--has-image.sc-stzh-pagetitle-home .stzh-pagetitle-home__text.sc-stzh-pagetitle-home{padding-top:var(--stzh-space-xxlarge)}@media screen and (min-width: 900px){.stzh-pagetitle-home--has-image.sc-stzh-pagetitle-home .stzh-pagetitle-home__text.sc-stzh-pagetitle-home{padding-top:var(--stzh-space-xxxlarge)}}@media screen and (min-width: 1260px){.stzh-pagetitle-home--has-image.sc-stzh-pagetitle-home .stzh-pagetitle-home__text.sc-stzh-pagetitle-home{padding-top:var(--stzh-space-xxxxlarge)}}";
7
+
8
+ const StzhPagetitleHome = class {
9
+ constructor(hostRef) {
10
+ registerInstance(this, hostRef);
11
+ this.mediaChangeHandler = () => {
12
+ this.isSmall = media("small").matches;
13
+ };
14
+ this.init = () => {
15
+ const heading = this.element.querySelector('stzh-heading[slot="heading"], [slot="heading"] stzh-heading');
16
+ const subheading = this.element.querySelector('stzh-text[slot="subheading"], [slot="subheading"] stzh-text');
17
+ const readspeakerButton = this.element.querySelector('[slot="readspeaker"] stzh-button');
18
+ if (heading) {
19
+ setPropsIfNull(heading, {
20
+ curve: "h1home",
21
+ level: "1",
22
+ });
23
+ }
24
+ if (readspeakerButton) {
25
+ setPropsIfNull(readspeakerButton, {
26
+ variant: "tertiary-plain",
27
+ noPaddingLeft: true,
28
+ noPaddingRight: true,
29
+ size: "small",
30
+ sizeMedium: "tiny",
31
+ buttonAccesskey: "L",
32
+ });
33
+ }
34
+ if (subheading) {
35
+ setPropsIfNull(subheading, {
36
+ curve: "hero",
37
+ lead: true,
38
+ });
39
+ }
40
+ };
41
+ this.isSmall = undefined;
42
+ }
43
+ componentDidRender() { }
44
+ connectedCallback() {
45
+ console.log("1234");
46
+ this.init();
47
+ this.mediaChangeHandler();
48
+ addMediaChangeListener(this.mediaChangeHandler);
49
+ }
50
+ disconnectedCallback() {
51
+ removeMediaChangeListener(this.mediaChangeHandler);
52
+ }
53
+ render() {
54
+ const imageSlotUsed = hasSlot(this.element, "image");
55
+ const subheadingSlotUsed = hasSlot(this.element, "subheading");
56
+ const readspeakerSlotUsed = hasSlot(this.element, "readspeaker");
57
+ const classes = {
58
+ "stzh-pagetitle-home": true,
59
+ "stzh-pagetitle-home--has-image": imageSlotUsed,
60
+ "stzh-pagetitle-home--has-no-image": !imageSlotUsed,
61
+ "stzh-pagetitle-home--has-subheading": subheadingSlotUsed,
62
+ "stzh-pagetitle-home--has-meta": readspeakerSlotUsed,
63
+ };
64
+ return (h(Host, { "has-image": imageSlotUsed }, h("div", { class: classes }, h("div", { class: "stzh-pagetitle-home__image-wrapper" }, h("stzh-ratio", { ratio: "4:3", portrait: !this.isSmall, ratioSmall: "16:9", ratioMedium: "2:1", ratioLarge: "21:9", class: "stzh-pagetitle-home__ratio" }), h("div", { class: "stzh-pagetitle-home__image-gradient" }), h("div", { class: "stzh-pagetitle-home__image-inner-wrapper" }, h("slot", { name: "image" }))), h("div", { class: "stzh-pagetitle-home__container" }, h("div", { class: "stzh-pagetitle-home__wrapper" }, h("div", { class: "stzh-pagetitle-home__text" }, h("div", { class: "stzh-pagetitle-home__meta" }, h("div", { class: "stzh-pagetitle-home__readspeaker" }, h("slot", { name: "readspeaker" }))), h("div", { class: "stzh-pagetitle-home__heading" }, h("slot", { name: "heading" })), h("div", { class: "stzh-pagetitle-home__subheading" }, h("slot", { name: "subheading" }))))))));
65
+ }
66
+ get element() { return getElement(this); }
67
+ };
68
+ StzhPagetitleHome.style = stzhPagetitleHomeCss;
69
+
70
+ export { StzhPagetitleHome as stzh_pagetitle_home };
71
+
72
+ //# sourceMappingURL=stzh-pagetitle-home.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"stzh-pagetitle-home.entry.js","mappings":";;;;;AAAA,MAAM,oBAAoB,GAAG,wkUAAwkU;;MCgBxlU,iBAAiB;;;IAKpB,uBAAkB,GAAG;MAC3B,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC;KACvC,CAAC;IAEM,SAAI,GAAG;MACb,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,6DAA6D,CAAC,CAAC;MAC1G,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,6DAA6D,CAAC,CAAC;MAC7G,MAAM,iBAAiB,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,kCAAkC,CAAC,CAAC;MAEzF,IAAI,OAAO,EAAE;QACX,cAAc,CAAC,OAAO,EAAE;UACtB,KAAK,EAAE,QAAQ;UACf,KAAK,EAAE,GAAG;SACe,CAAC,CAAC;OAC9B;MAED,IAAI,iBAAiB,EAAE;QACrB,cAAc,CAAC,iBAAiB,EAAE;UAChC,OAAO,EAAE,gBAAgB;UACzB,aAAa,EAAE,IAAI;UACnB,cAAc,EAAE,IAAI;UACpB,IAAI,EAAE,OAAO;UACb,UAAU,EAAE,MAAM;UAClB,eAAe,EAAE,GAAG;SACI,CAAC,CAAC;OAC7B;MAED,IAAI,UAAU,EAAE;QACd,cAAc,CAAC,UAAU,EAAE;UACzB,KAAK,EAAE,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AK,EAAC,8BAA8B,IACvC,WAAK,KAAK,EAAC,2BAA2B,IACpC,WAAK,KAAK,EAAC,2BAA2B,IACpC,WAAK,KAAK,EAAC,kCAAkC,IAC3C,YAAM,IAAI,EAAC,aAAa,GAAQ,CAC5B,CACF,EAEN,WAAK,KAAK,EAAC,8BAA8B,IACvC,YAAM,IAAI,EAAC,SAAS,GAAQ,CACxB,EAEN,WAAK,KAAK,EAAC,iCAAiC,IAC1C,YAAM,IAAI,EAAC,YAAY,GAAQ,CAC3B,CACF,CACF,CACF,CACF,CACD,EACP;GACH;;;;;;;","names":[],"sources":["src/components/stzh-pagetitle-home/stzh-pagetitle-home.scss?tag=stzh-pagetitle-home&encapsulation=scoped","src/components/stzh-pagetitle-home/stzh-pagetitle-home.tsx"],"sourcesContent":["/**\n * @prop --stzh-pagetitle-home-heading-color: Color of the heading\n * @prop --stzh-pagetitle-home-subheading-color: Color of the subheading and readspeaker slot\n */\n\n:host {\n ::slotted([slot=\"image\"]) {\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n\n ::slotted([slot=\"heading\"]) {\n --color: var(--stzh-pagetitle-home-heading-color, #{$colorSecondary50});\n }\n\n ::slotted([slot=\"subheading\"]) {\n --color: var(--stzh-pagetitle-home-heading-color, #{$headingColor});\n }\n\n ::slotted([slot=\"readspeaker\"]) * {\n --color: var(--stzh-pagetitle-home-subheading-color, #{$headingColor});\n --hover-color: var(--stzh-pagetitle-home-subheading-color, #{$headingColor});\n }\n\n &[has-image] ::slotted([slot=\"readspeaker\"]) * {\n --color: var(--stzh-pagetitle-home-subheading-color, #{$colorWhite});\n --hover-color: var(--stzh-pagetitle-home-subheading-color, #{$colorWhite});\n }\n\n &[has-image] ::slotted([slot=\"heading\"]) {\n --color: var(--stzh-pagetitle-home-heading-color, #{$colorLemonyellow50});\n }\n\n &[has-image] ::slotted([slot=\"subheading\"]) {\n --color: var(--stzh-pagetitle-home-subheading-color, #{$colorWhite});\n }\n}\n\n.stzh-pagetitle-home {\n position: relative;\n @include spaceCurve('padding-bottom', 'large');\n\n &__container {\n @include container;\n }\n\n &__text {\n @include spaceCurve('padding-top', 'big');\n @include spaceCurve('padding-bottom', 'big');\n @include grid;\n }\n\n\n &__image-wrapper {\n position: relative;\n }\n\n &__image-inner-wrapper {\n position: absolute;\n inset: 0;\n height: 100%;\n margin-left: calc(#{$containerMargin} / -1);\n margin-right: calc(#{$containerMargin} / -1);\n\n @include mq($from: small) {\n margin-left: calc(#{$containerMarginSmall} / -1);\n margin-right: calc(#{$containerMarginSmall} / -1);\n }\n\n @include mq($from: medium) {\n margin-left: 0;\n margin-right: 0;\n width: calc(100% + #{$containerMarginMedium});\n }\n\n @include mq($from: large) {\n width: calc(100% + #{$containerMarginLarge});\n }\n\n @include mq($from: ultra) {\n width: calc(100% + ((#{map-get($breakpoints, 'ultra')} - #{$containerMaxWidth}) / 2));\n }\n }\n\n &__image-gradient {\n position: absolute;\n background: linear-gradient(1.21deg, rgba(0, 0, 0, 0) 31.71%, rgba(0, 0, 0, 0.5) 83.84%);\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 1;\n\n @include mq($from: small) {\n background: linear-gradient(270deg, rgba(0, 0, 0, 0) 31.21%, rgba(0, 0, 0, 0.5) 91.45%);\n }\n }\n\n &__meta {\n display: flex;\n flex-direction: column-reverse;\n row-gap: space('xsmall');\n @include spaceCurve('margin-bottom', 'regular');\n\n @include mq($from: medium) {\n flex-direction: row;\n }\n }\n\n &__readspeaker {\n @include mq($from: small, $to: medium) {\n --stzh-readspeaker-dropdown-position: relative;\n --stzh-readspeaker-dropdown-top: auto;\n }\n }\n\n &__subheading {\n --stzh-base-lead-color: #{$headingColor};\n }\n\n &__heading:not(:empty) + &__subheading:not(:empty) {\n @include spaceCurve('margin-top', 'tiny');\n }\n\n &__heading,\n &__subheading,\n &__meta {\n grid-column: 1 / span 4;\n\n @include mq($from: medium) {\n grid-column: 1 / span 10;\n }\n }\n\n /* Has no image variant */\n\n &--has-no-image &__ratio {\n display: none;\n }\n\n &--has-no-image &__text {\n @include spaceCurve('padding-top', 'regular');\n }\n\n /* Has image variant */\n\n &--has-image {\n padding-bottom: 0;\n }\n\n &--has-image &__container {\n position: absolute;\n top: 0;\n right: 0;\n left: 0;\n z-index: 1;\n }\n\n &--has-image &__text {\n @include spaceCurve('padding-top', 'large');\n }\n}\n","import { Component, Element, h, Host, State } from \"@stencil/core\";\n\nimport { hasSlot, setPropsIfNull } from \"../../utils/utils\";\nimport { addMediaChangeListener, media, removeMediaChangeListener } from \"../../utils/media-utils\";\n\n/**\n * @slot heading - Slot for `stzh-heading` element\n * @slot image - Slot for `stzh-figure` or `img` element\n * @slot subheading - Slot for `stzh-text` element\n * @slot readspeaker - Slot for `stzh-readspeaker` element\n */\n@Component({\n tag: \"stzh-pagetitle-home\",\n styleUrl: \"stzh-pagetitle-home.scss\",\n scoped: true,\n})\nexport class StzhPagetitleHome {\n @Element() element: HTMLStzhPagetitleHomeElement;\n\n @State() isSmall: boolean;\n\n private mediaChangeHandler = () => {\n this.isSmall = media(\"small\").matches;\n };\n\n private init = () => {\n const heading = this.element.querySelector('stzh-heading[slot=\"heading\"], [slot=\"heading\"] stzh-heading');\n const subheading = this.element.querySelector('stzh-text[slot=\"subheading\"], [slot=\"subheading\"] stzh-text');\n const readspeakerButton = this.element.querySelector('[slot=\"readspeaker\"] stzh-button');\n\n if (heading) {\n setPropsIfNull(heading, {\n curve: \"h1home\",\n level: \"1\",\n } as HTMLStzhHeadingElement);\n }\n\n if (readspeakerButton) {\n setPropsIfNull(readspeakerButton, {\n variant: \"tertiary-plain\",\n noPaddingLeft: true,\n noPaddingRight: true,\n size: \"small\",\n sizeMedium: \"tiny\",\n buttonAccesskey: \"L\",\n } as HTMLStzhButtonElement);\n }\n\n if (subheading) {\n setPropsIfNull(subheading, {\n curve: \"hero\",\n lead: true,\n } as HTMLStzhTextElement);\n }\n };\n\n componentDidRender() {}\n\n connectedCallback() {\n console.log(\"1234\");\n this.init();\n this.mediaChangeHandler();\n addMediaChangeListener(this.mediaChangeHandler);\n }\n\n disconnectedCallback() {\n removeMediaChangeListener(this.mediaChangeHandler);\n }\n\n render() {\n const imageSlotUsed = hasSlot(this.element, \"image\");\n const subheadingSlotUsed = hasSlot(this.element, \"subheading\");\n const readspeakerSlotUsed = hasSlot(this.element, \"readspeaker\");\n\n const classes = {\n \"stzh-pagetitle-home\": true,\n \"stzh-pagetitle-home--has-image\": imageSlotUsed,\n \"stzh-pagetitle-home--has-no-image\": !imageSlotUsed,\n \"stzh-pagetitle-home--has-subheading\": subheadingSlotUsed,\n \"stzh-pagetitle-home--has-meta\": readspeakerSlotUsed,\n };\n\n return (\n <Host has-image={imageSlotUsed}>\n <div class={classes}>\n <div class=\"stzh-pagetitle-home__image-wrapper\">\n <stzh-ratio\n ratio={\"4:3\"}\n portrait={!this.isSmall}\n ratioSmall={\"16:9\"}\n ratioMedium={\"2:1\"}\n ratioLarge={\"21:9\"}\n class=\"stzh-pagetitle-home__ratio\"\n ></stzh-ratio>\n <div class=\"stzh-pagetitle-home__image-gradient\"></div>\n <div class=\"stzh-pagetitle-home__image-inner-wrapper\">\n <slot name=\"image\"></slot>\n </div>\n </div>\n <div class=\"stzh-pagetitle-home__container\">\n <div class=\"stzh-pagetitle-home__wrapper\">\n <div class=\"stzh-pagetitle-home__text\">\n <div class=\"stzh-pagetitle-home__meta\">\n <div class=\"stzh-pagetitle-home__readspeaker\">\n <slot name=\"readspeaker\"></slot>\n </div>\n </div>\n\n <div class=\"stzh-pagetitle-home__heading\">\n <slot name=\"heading\"></slot>\n </div>\n\n <div class=\"stzh-pagetitle-home__subheading\">\n <slot name=\"subheading\"></slot>\n </div>\n </div>\n </div>\n </div>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -3,7 +3,7 @@ import { s as setPropsIfNull, h as hasSlot } from './utils-54aead01.js';
3
3
  import { m as media } from './media-utils-d80f83d2.js';
4
4
  import './string-utils-e252977e.js';
5
5
 
6
- const stzhPagetitleCss = ".sc-stzh-pagetitle-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-pagetitle-h{display:none}.sc-stzh-pagetitle-h::-moz-selection{color:var(--stzh-selection-color);background-color:var(--stzh-selection-background-color)}.sc-stzh-pagetitle-h::selection{color:var(--stzh-selection-color);background-color:var(--stzh-selection-background-color)}.sc-stzh-pagetitle-h *.sc-stzh-pagetitle,.sc-stzh-pagetitle-h *.sc-stzh-pagetitle::before,.sc-stzh-pagetitle-h *.sc-stzh-pagetitle::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-pagetitle-h .has-focus.sc-stzh-pagetitle{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.125rem}.sc-stzh-pagetitle-h .stzh-fylingfocus-focused.sc-stzh-pagetitle{outline-style:none !important}.sc-stzh-pagetitle-h .stzh-fylingfocus-focused.sc-stzh-pagetitle::-moz-focus-inner{border:0 !important}.sc-stzh-pagetitle-h{--background-color:var(--stzh-pagetitle-background-color);--image-background-color:var(--stzh-ratio-background-color)}.sc-stzh-pagetitle-h .sc-stzh-pagetitle-s>[slot=image]{position:absolute;inset:0;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}[background=default].sc-stzh-pagetitle-h{--stzh-readspeaker-background-color:var(--background-color);--stzh-readspeaker-audio-track-progress-background-color:var(--stzh-color-white)}[background=transparent].sc-stzh-pagetitle-h{--background-color:transparent}.stzh-pagetitle.sc-stzh-pagetitle{background-color:var(--background-color)}.stzh-pagetitle__container.sc-stzh-pagetitle{margin-left:1.25rem;margin-right:1.25rem}@media screen and (min-width: 600px){.stzh-pagetitle__container.sc-stzh-pagetitle{margin-left:2rem;margin-right:2rem}}@media screen and (min-width: 900px){.stzh-pagetitle__container.sc-stzh-pagetitle{margin-left:2.5rem;margin-right:2.5rem}}@media screen and (min-width: 1260px){.stzh-pagetitle__container.sc-stzh-pagetitle{margin-left:4rem;margin-right:4rem}}@media screen and (min-width: 1600px){.stzh-pagetitle__container.sc-stzh-pagetitle{margin-left:auto;margin-right:auto;max-width:84.25rem}}.stzh-pagetitle__wrapper.sc-stzh-pagetitle{position:relative;display:grid}.stzh-pagetitle__text.sc-stzh-pagetitle{padding-top:var(--stzh-space-xxlarge);padding-bottom:var(--stzh-space-xxlarge);display:flex;flex-direction:column;justify-content:center}@media screen and (min-width: 600px){.stzh-pagetitle__text.sc-stzh-pagetitle{padding-top:var(--stzh-space-xxxxlarge)}}@media screen and (min-width: 900px){.stzh-pagetitle__text.sc-stzh-pagetitle{padding-top:var(--stzh-space-xxxxlarge)}}@media screen and (min-width: 1260px){.stzh-pagetitle__text.sc-stzh-pagetitle{padding-top:var(--stzh-space-xbig)}}@media screen and (min-width: 600px){.stzh-pagetitle__text.sc-stzh-pagetitle{padding-bottom:var(--stzh-space-xxxxlarge)}}@media screen and (min-width: 900px){.stzh-pagetitle__text.sc-stzh-pagetitle{padding-bottom:var(--stzh-space-xxxxlarge)}}@media screen and (min-width: 1260px){.stzh-pagetitle__text.sc-stzh-pagetitle{padding-bottom:var(--stzh-space-xbig)}}.stzh-pagetitle__image-wrapper.sc-stzh-pagetitle{position:relative}.stzh-pagetitle__ratio.sc-stzh-pagetitle{--background-color:var(--image-background-color)}.stzh-pagetitle__image-inner-wrapper.sc-stzh-pagetitle{background-color:var(--image-background-color);position:absolute;inset:0;height:100%;margin-left:calc(1.25rem / -1);margin-right:calc(1.25rem / -1)}@media screen and (min-width: 600px){.stzh-pagetitle__image-inner-wrapper.sc-stzh-pagetitle{margin-left:calc(2rem / -1);margin-right:calc(2rem / -1)}}@media screen and (min-width: 900px){.stzh-pagetitle__image-inner-wrapper.sc-stzh-pagetitle{margin-left:0;margin-right:0;width:calc(100% + 2.5rem)}}@media screen and (min-width: 1260px){.stzh-pagetitle__image-inner-wrapper.sc-stzh-pagetitle{width:calc(100% + 4rem)}}@media screen and (min-width: 1600px){.stzh-pagetitle__image-inner-wrapper.sc-stzh-pagetitle{width:calc(100% + ((100rem - 84.25rem) / 2))}}.stzh-pagetitle__meta.sc-stzh-pagetitle{display:flex;flex-direction:column-reverse;row-gap:var(--stzh-space-xsmall)}@media screen and (min-width: 900px){.stzh-pagetitle__meta.sc-stzh-pagetitle{flex-direction:row}}.stzh-pagetitle__tag.sc-stzh-pagetitle:not(:empty){margin-right:auto}@media screen and (min-width: 600px) and (max-width: 899px){.stzh-pagetitle__readspeaker.sc-stzh-pagetitle{--stzh-readspeaker-dropdown-position:relative;--stzh-readspeaker-dropdown-top:auto}}.stzh-pagetitle__dateline.sc-stzh-pagetitle{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);margin-top:var(--stzh-space-medium);color:var(--stzh-color-primary70);margin-bottom:var(--stzh-space-xsmall)}@media screen and (min-width: 600px){.stzh-pagetitle__dateline.sc-stzh-pagetitle{margin-top:var(--stzh-space-large)}}@media screen and (min-width: 900px){.stzh-pagetitle__dateline.sc-stzh-pagetitle{margin-top:var(--stzh-space-xlarge)}}@media screen and (min-width: 1260px){.stzh-pagetitle__dateline.sc-stzh-pagetitle{margin-top:var(--stzh-space-xxlarge)}}.stzh-pagetitle__lead.sc-stzh-pagetitle{--stzh-base-lead-color:var(--stzh-heading-color)}.stzh-pagetitle__heading.sc-stzh-pagetitle:not(:empty)+.stzh-pagetitle__lead.sc-stzh-pagetitle:not(:empty){margin-top:var(--stzh-space-xlarge)}@media screen and (min-width: 900px){.stzh-pagetitle__heading.sc-stzh-pagetitle:not(:empty)+.stzh-pagetitle__lead.sc-stzh-pagetitle:not(:empty){margin-top:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){.stzh-pagetitle__heading.sc-stzh-pagetitle:not(:empty)+.stzh-pagetitle__lead.sc-stzh-pagetitle:not(:empty){margin-top:var(--stzh-space-xxxlarge)}}.stzh-pagetitle__disturber.sc-stzh-pagetitle{z-index:var(--stzh-z-index-sticky);position:fixed;left:0;right:0;bottom:0}@media screen and (min-width: 900px){.stzh-pagetitle__disturber.sc-stzh-pagetitle{z-index:initial;position:absolute;width:calc(((100% - 7 * var(--stzh-grid-gutter-medium)) / 8 * 3) + 2 * var(--stzh-grid-gutter-medium));left:auto;bottom:calc((var(--stzh-space-big) - var(--stzh-space-xlarge)) / -1)}}@media screen and (min-width: 1260px){.stzh-pagetitle__disturber.sc-stzh-pagetitle{width:calc(((100% - 11 * var(--stzh-grid-gutter-large)) / 12 * 4) + 3 * var(--stzh-grid-gutter-large));bottom:calc(var(--stzh-space-huge) / -1)}}@media screen and (min-width: 1600px){.stzh-pagetitle__disturber.sc-stzh-pagetitle{width:calc(((100% - 11 * var(--stzh-grid-gutter-ultra)) / 12 * 4) + 3 * var(--stzh-grid-gutter-ultra))}}.stzh-pagetitle--has-no-image.sc-stzh-pagetitle .stzh-pagetitle__ratio.sc-stzh-pagetitle{display:none}.stzh-pagetitle--has-no-image.sc-stzh-pagetitle .stzh-pagetitle__text.sc-stzh-pagetitle{-moz-column-gap:var(--stzh-grid-gutter);column-gap:var(--stzh-grid-gutter);display:grid;grid-template-columns:repeat(4, minmax(0, 1fr))}@media screen and (min-width: 600px){.stzh-pagetitle--has-no-image.sc-stzh-pagetitle .stzh-pagetitle__text.sc-stzh-pagetitle{-moz-column-gap:var(--stzh-grid-gutter-small);column-gap:var(--stzh-grid-gutter-small)}}@media screen and (min-width: 900px){.stzh-pagetitle--has-no-image.sc-stzh-pagetitle .stzh-pagetitle__text.sc-stzh-pagetitle{-moz-column-gap:var(--stzh-grid-gutter-medium);column-gap:var(--stzh-grid-gutter-medium)}}@media screen and (min-width: 1260px){.stzh-pagetitle--has-no-image.sc-stzh-pagetitle .stzh-pagetitle__text.sc-stzh-pagetitle{-moz-column-gap:var(--stzh-grid-gutter-large);column-gap:var(--stzh-grid-gutter-large)}}@media screen and (min-width: 1600px){.stzh-pagetitle--has-no-image.sc-stzh-pagetitle .stzh-pagetitle__text.sc-stzh-pagetitle{-moz-column-gap:var(--stzh-grid-gutter-ultra);column-gap:var(--stzh-grid-gutter-ultra)}}@media screen and (min-width: 900px){.stzh-pagetitle--has-no-image.sc-stzh-pagetitle .stzh-pagetitle__text.sc-stzh-pagetitle{grid-template-columns:repeat(8, minmax(0, 1fr))}}@media screen and (min-width: 1260px){.stzh-pagetitle--has-no-image.sc-stzh-pagetitle .stzh-pagetitle__text.sc-stzh-pagetitle{grid-template-columns:repeat(12, minmax(0, 1fr))}}.stzh-pagetitle--has-no-image.sc-stzh-pagetitle .stzh-pagetitle__meta.sc-stzh-pagetitle,.stzh-pagetitle--has-no-image.sc-stzh-pagetitle .stzh-pagetitle__dateline.sc-stzh-pagetitle,.stzh-pagetitle--has-no-image.sc-stzh-pagetitle .stzh-pagetitle__heading.sc-stzh-pagetitle,.stzh-pagetitle--has-no-image.sc-stzh-pagetitle .stzh-pagetitle__lead.sc-stzh-pagetitle{grid-column:1/span 4}@media screen and (min-width: 900px){.stzh-pagetitle--has-no-image.sc-stzh-pagetitle .stzh-pagetitle__meta.sc-stzh-pagetitle,.stzh-pagetitle--has-no-image.sc-stzh-pagetitle .stzh-pagetitle__dateline.sc-stzh-pagetitle,.stzh-pagetitle--has-no-image.sc-stzh-pagetitle .stzh-pagetitle__heading.sc-stzh-pagetitle{grid-column:1/span 8}}@media screen and (min-width: 900px){.stzh-pagetitle--has-no-image.sc-stzh-pagetitle .stzh-pagetitle__lead.sc-stzh-pagetitle{grid-column:1/span 6}}@media screen and (min-width: 1260px){.stzh-pagetitle--has-no-image.sc-stzh-pagetitle .stzh-pagetitle__lead.sc-stzh-pagetitle{grid-column:1/span 7}}@media screen and (min-width: 900px){.stzh-pagetitle--has-image.sc-stzh-pagetitle .stzh-pagetitle__wrapper.sc-stzh-pagetitle{grid-template-columns:repeat(2, minmax(0, 1fr));gap:var(--stzh-space-xxlarge)}}.stzh-pagetitle--has-meta.sc-stzh-pagetitle .stzh-pagetitle__text.sc-stzh-pagetitle{padding-top:var(--stzh-space-medium)}@media screen and (min-width: 600px){.stzh-pagetitle--has-meta.sc-stzh-pagetitle .stzh-pagetitle__text.sc-stzh-pagetitle{padding-top:var(--stzh-space-large)}}@media screen and (min-width: 900px){.stzh-pagetitle--has-meta.sc-stzh-pagetitle .stzh-pagetitle__text.sc-stzh-pagetitle{padding-top:var(--stzh-space-xlarge)}}@media screen and (min-width: 1260px){.stzh-pagetitle--has-meta.sc-stzh-pagetitle .stzh-pagetitle__text.sc-stzh-pagetitle{padding-top:var(--stzh-space-xxlarge)}}@media screen and (min-width: 900px){.stzh-pagetitle--has-tag.sc-stzh-pagetitle .stzh-pagetitle__readspeaker.sc-stzh-pagetitle{--stzh-readspeaker-dropdown-left:auto;--stzh-readspeaker-dropdown-right:0px;--stzh-readspeaker-dropdown-settings-left:auto;--stzh-readspeaker-dropdown-settings-right:0px}}.stzh-pagetitle--background-default.sc-stzh-pagetitle .stzh-pagetitle__text.sc-stzh-pagetitle{--stzh-selection-background-color:var(--stzh-color-white)}.stzh-pagetitle--background-transparent.sc-stzh-pagetitle .stzh-pagetitle__text.sc-stzh-pagetitle{padding-bottom:var(--stzh-space-xxlarge)}@media screen and (min-width: 900px){.stzh-pagetitle--background-transparent.sc-stzh-pagetitle .stzh-pagetitle__text.sc-stzh-pagetitle{padding-bottom:var(--stzh-space-xxxlarge)}}@media screen and (min-width: 1260px){.stzh-pagetitle--background-transparent.sc-stzh-pagetitle .stzh-pagetitle__text.sc-stzh-pagetitle{padding-bottom:var(--stzh-space-xxxxlarge)}}";
6
+ const stzhPagetitleCss = ".sc-stzh-pagetitle-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-pagetitle-h{display:none}.sc-stzh-pagetitle-h::-moz-selection{color:var(--stzh-selection-color);background-color:var(--stzh-selection-background-color)}.sc-stzh-pagetitle-h::selection{color:var(--stzh-selection-color);background-color:var(--stzh-selection-background-color)}.sc-stzh-pagetitle-h *.sc-stzh-pagetitle,.sc-stzh-pagetitle-h *.sc-stzh-pagetitle::before,.sc-stzh-pagetitle-h *.sc-stzh-pagetitle::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-pagetitle-h .has-focus.sc-stzh-pagetitle{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.125rem}.sc-stzh-pagetitle-h .stzh-fylingfocus-focused.sc-stzh-pagetitle{outline-style:none !important}.sc-stzh-pagetitle-h .stzh-fylingfocus-focused.sc-stzh-pagetitle::-moz-focus-inner{border:0 !important}.sc-stzh-pagetitle-h{--background-color:var(--stzh-pagetitle-background-color);--image-background-color:var(--stzh-ratio-background-color)}.sc-stzh-pagetitle-h .sc-stzh-pagetitle-s>[slot=image]{position:absolute;inset:0;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}[background=default].sc-stzh-pagetitle-h{--stzh-readspeaker-background-color:var(--background-color);--stzh-readspeaker-audio-track-progress-background-color:var(--stzh-color-white)}[background=transparent].sc-stzh-pagetitle-h{--background-color:transparent}.stzh-pagetitle.sc-stzh-pagetitle{background-color:var(--background-color)}.stzh-pagetitle__container.sc-stzh-pagetitle{margin-left:1.25rem;margin-right:1.25rem}@media screen and (min-width: 600px){.stzh-pagetitle__container.sc-stzh-pagetitle{margin-left:2rem;margin-right:2rem}}@media screen and (min-width: 900px){.stzh-pagetitle__container.sc-stzh-pagetitle{margin-left:2.5rem;margin-right:2.5rem}}@media screen and (min-width: 1260px){.stzh-pagetitle__container.sc-stzh-pagetitle{margin-left:4rem;margin-right:4rem}}@media screen and (min-width: 1600px){.stzh-pagetitle__container.sc-stzh-pagetitle{margin-left:auto;margin-right:auto;max-width:84.25rem}}.stzh-pagetitle__wrapper.sc-stzh-pagetitle{position:relative;display:grid}.stzh-pagetitle__text.sc-stzh-pagetitle{padding-top:var(--stzh-space-xxlarge);padding-bottom:var(--stzh-space-xxlarge);display:flex;flex-direction:column;justify-content:center}@media screen and (min-width: 600px){.stzh-pagetitle__text.sc-stzh-pagetitle{padding-top:var(--stzh-space-xxxxlarge)}}@media screen and (min-width: 900px){.stzh-pagetitle__text.sc-stzh-pagetitle{padding-top:var(--stzh-space-xxxxlarge)}}@media screen and (min-width: 1260px){.stzh-pagetitle__text.sc-stzh-pagetitle{padding-top:var(--stzh-space-xbig)}}@media screen and (min-width: 600px){.stzh-pagetitle__text.sc-stzh-pagetitle{padding-bottom:var(--stzh-space-xxxxlarge)}}@media screen and (min-width: 900px){.stzh-pagetitle__text.sc-stzh-pagetitle{padding-bottom:var(--stzh-space-xxxxlarge)}}@media screen and (min-width: 1260px){.stzh-pagetitle__text.sc-stzh-pagetitle{padding-bottom:var(--stzh-space-xbig)}}.stzh-pagetitle__image-wrapper.sc-stzh-pagetitle{position:relative}.stzh-pagetitle__ratio.sc-stzh-pagetitle{--background-color:var(--image-background-color)}.stzh-pagetitle__image-inner-wrapper.sc-stzh-pagetitle{background-color:var(--image-background-color);position:absolute;inset:0;height:100%;margin-left:calc(1.25rem / -1);margin-right:calc(1.25rem / -1)}@media screen and (min-width: 600px){.stzh-pagetitle__image-inner-wrapper.sc-stzh-pagetitle{margin-left:calc(2rem / -1);margin-right:calc(2rem / -1)}}@media screen and (min-width: 900px){.stzh-pagetitle__image-inner-wrapper.sc-stzh-pagetitle{margin-left:0;margin-right:0;width:calc(100% + 2.5rem)}}@media screen and (min-width: 1260px){.stzh-pagetitle__image-inner-wrapper.sc-stzh-pagetitle{width:calc(100% + 4rem)}}@media screen and (min-width: 1600px){.stzh-pagetitle__image-inner-wrapper.sc-stzh-pagetitle{width:calc(100% + ((100rem - 84.25rem) / 2))}}.stzh-pagetitle__meta.sc-stzh-pagetitle{display:flex;flex-direction:column-reverse;row-gap:var(--stzh-space-xsmall)}@media screen and (min-width: 900px){.stzh-pagetitle__meta.sc-stzh-pagetitle{flex-direction:row}}.stzh-pagetitle__tag.sc-stzh-pagetitle:not(:empty){margin-right:auto}@media screen and (min-width: 600px) and (max-width: 899px){.stzh-pagetitle__readspeaker.sc-stzh-pagetitle{--stzh-readspeaker-dropdown-position:relative;--stzh-readspeaker-dropdown-top:auto}}.stzh-pagetitle__dateline.sc-stzh-pagetitle{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);margin-top:var(--stzh-space-medium);color:var(--stzh-color-primary70);margin-bottom:var(--stzh-space-xsmall)}@media screen and (min-width: 600px){.stzh-pagetitle__dateline.sc-stzh-pagetitle{margin-top:var(--stzh-space-large)}}@media screen and (min-width: 900px){.stzh-pagetitle__dateline.sc-stzh-pagetitle{margin-top:var(--stzh-space-xlarge)}}@media screen and (min-width: 1260px){.stzh-pagetitle__dateline.sc-stzh-pagetitle{margin-top:var(--stzh-space-xxlarge)}}.stzh-pagetitle__lead.sc-stzh-pagetitle{--stzh-base-lead-color:var(--stzh-heading-color)}.stzh-pagetitle__heading.sc-stzh-pagetitle:not(:empty)+.stzh-pagetitle__lead.sc-stzh-pagetitle:not(:empty){margin-top:var(--stzh-space-xlarge)}@media screen and (min-width: 900px){.stzh-pagetitle__heading.sc-stzh-pagetitle:not(:empty)+.stzh-pagetitle__lead.sc-stzh-pagetitle:not(:empty){margin-top:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){.stzh-pagetitle__heading.sc-stzh-pagetitle:not(:empty)+.stzh-pagetitle__lead.sc-stzh-pagetitle:not(:empty){margin-top:var(--stzh-space-xxxlarge)}}.stzh-pagetitle__disturber.sc-stzh-pagetitle{z-index:var(--stzh-z-index-sticky);position:fixed;left:0;right:0;bottom:0}@media screen and (min-width: 900px){.stzh-pagetitle__disturber.sc-stzh-pagetitle{z-index:initial;position:absolute;width:calc(((100% - 7 * var(--stzh-grid-gutter-medium)) / 8 * 3) + 2 * var(--stzh-grid-gutter-medium));left:auto;bottom:calc((var(--stzh-space-big) - var(--stzh-space-xlarge)) / -1)}}@media screen and (min-width: 1260px){.stzh-pagetitle__disturber.sc-stzh-pagetitle{width:calc(((100% - 11 * var(--stzh-grid-gutter-large)) / 12 * 4) + 3 * var(--stzh-grid-gutter-large));bottom:calc(var(--stzh-space-huge) / -1)}}@media screen and (min-width: 1600px){.stzh-pagetitle__disturber.sc-stzh-pagetitle{width:calc(((100% - 11 * var(--stzh-grid-gutter-ultra)) / 12 * 4) + 3 * var(--stzh-grid-gutter-ultra))}}.stzh-pagetitle--has-no-image.sc-stzh-pagetitle .stzh-pagetitle__ratio.sc-stzh-pagetitle{display:none}.stzh-pagetitle--has-no-image.sc-stzh-pagetitle .stzh-pagetitle__text.sc-stzh-pagetitle{-moz-column-gap:var(--stzh-grid-gutter);column-gap:var(--stzh-grid-gutter);display:grid;grid-template-columns:repeat(4, minmax(0, 1fr))}@media screen and (min-width: 600px){.stzh-pagetitle--has-no-image.sc-stzh-pagetitle .stzh-pagetitle__text.sc-stzh-pagetitle{-moz-column-gap:var(--stzh-grid-gutter-small);column-gap:var(--stzh-grid-gutter-small)}}@media screen and (min-width: 900px){.stzh-pagetitle--has-no-image.sc-stzh-pagetitle .stzh-pagetitle__text.sc-stzh-pagetitle{-moz-column-gap:var(--stzh-grid-gutter-medium);column-gap:var(--stzh-grid-gutter-medium)}}@media screen and (min-width: 1260px){.stzh-pagetitle--has-no-image.sc-stzh-pagetitle .stzh-pagetitle__text.sc-stzh-pagetitle{-moz-column-gap:var(--stzh-grid-gutter-large);column-gap:var(--stzh-grid-gutter-large)}}@media screen and (min-width: 1600px){.stzh-pagetitle--has-no-image.sc-stzh-pagetitle .stzh-pagetitle__text.sc-stzh-pagetitle{-moz-column-gap:var(--stzh-grid-gutter-ultra);column-gap:var(--stzh-grid-gutter-ultra)}}@media screen and (min-width: 900px){.stzh-pagetitle--has-no-image.sc-stzh-pagetitle .stzh-pagetitle__text.sc-stzh-pagetitle{grid-template-columns:repeat(8, minmax(0, 1fr))}}@media screen and (min-width: 1260px){.stzh-pagetitle--has-no-image.sc-stzh-pagetitle .stzh-pagetitle__text.sc-stzh-pagetitle{grid-template-columns:repeat(12, minmax(0, 1fr))}}.stzh-pagetitle--has-no-image.sc-stzh-pagetitle .stzh-pagetitle__meta.sc-stzh-pagetitle,.stzh-pagetitle--has-no-image.sc-stzh-pagetitle .stzh-pagetitle__dateline.sc-stzh-pagetitle,.stzh-pagetitle--has-no-image.sc-stzh-pagetitle .stzh-pagetitle__heading.sc-stzh-pagetitle,.stzh-pagetitle--has-no-image.sc-stzh-pagetitle .stzh-pagetitle__lead.sc-stzh-pagetitle{grid-column:1/span 4}@media screen and (min-width: 900px){.stzh-pagetitle--has-no-image.sc-stzh-pagetitle .stzh-pagetitle__meta.sc-stzh-pagetitle,.stzh-pagetitle--has-no-image.sc-stzh-pagetitle .stzh-pagetitle__dateline.sc-stzh-pagetitle,.stzh-pagetitle--has-no-image.sc-stzh-pagetitle .stzh-pagetitle__heading.sc-stzh-pagetitle{grid-column:1/span 8}}@media screen and (min-width: 900px){.stzh-pagetitle--has-no-image.sc-stzh-pagetitle .stzh-pagetitle__lead.sc-stzh-pagetitle{grid-column:1/span 6}}@media screen and (min-width: 1260px){.stzh-pagetitle--has-no-image.sc-stzh-pagetitle .stzh-pagetitle__lead.sc-stzh-pagetitle{grid-column:1/span 7}}@media screen and (min-width: 900px){.stzh-pagetitle--has-image.sc-stzh-pagetitle .stzh-pagetitle__wrapper.sc-stzh-pagetitle{grid-template-columns:repeat(2, minmax(0, 1fr));gap:var(--stzh-space-xxlarge)}}.stzh-pagetitle--has-meta.sc-stzh-pagetitle .stzh-pagetitle__text.sc-stzh-pagetitle{padding-top:var(--stzh-space-medium)}@media screen and (min-width: 600px){.stzh-pagetitle--has-meta.sc-stzh-pagetitle .stzh-pagetitle__text.sc-stzh-pagetitle{padding-top:var(--stzh-space-large)}}@media screen and (min-width: 900px){.stzh-pagetitle--has-meta.sc-stzh-pagetitle .stzh-pagetitle__text.sc-stzh-pagetitle{padding-top:var(--stzh-space-xlarge)}}@media screen and (min-width: 1260px){.stzh-pagetitle--has-meta.sc-stzh-pagetitle .stzh-pagetitle__text.sc-stzh-pagetitle{padding-top:var(--stzh-space-xxlarge)}}@media screen and (min-width: 900px){.stzh-pagetitle--has-tag.sc-stzh-pagetitle .stzh-pagetitle__readspeaker.sc-stzh-pagetitle{--stzh-readspeaker-dropdown-left:auto;--stzh-readspeaker-dropdown-right:0px;--stzh-readspeaker-dropdown-settings-left:auto;--stzh-readspeaker-dropdown-settings-right:0px}}.stzh-pagetitle--background-default.sc-stzh-pagetitle .stzh-pagetitle__text.sc-stzh-pagetitle{--stzh-selection-background-color:var(--stzh-color-white)}.stzh-pagetitle--background-transparent.sc-stzh-pagetitle .stzh-pagetitle__text.sc-stzh-pagetitle{padding-bottom:var(--stzh-space-xxlarge)}@media screen and (min-width: 900px){.stzh-pagetitle--background-transparent.sc-stzh-pagetitle .stzh-pagetitle__text.sc-stzh-pagetitle{padding-bottom:var(--stzh-space-xxxlarge)}}@media screen and (min-width: 1260px){.stzh-pagetitle--background-transparent.sc-stzh-pagetitle .stzh-pagetitle__text.sc-stzh-pagetitle{padding-bottom:var(--stzh-space-xxxxlarge)}}.stzh-pagetitle--hyphens.sc-stzh-pagetitle .stzh-pagetitle__heading.sc-stzh-pagetitle{-webkit-hyphens:auto;hyphens:auto}";
7
7
 
8
8
  const StzhPagetitle = class {
9
9
  constructor(hostRef) {
@@ -34,24 +34,24 @@ const StzhPagetitle = class {
34
34
  if (heading) {
35
35
  setPropsIfNull(heading, {
36
36
  curve: "hero",
37
- level: "1"
37
+ level: "1",
38
38
  });
39
39
  }
40
40
  if (disturber) {
41
41
  setPropsIfNull(disturber, {
42
- initialOpenAnimation: true
42
+ initialOpenAnimation: true,
43
43
  });
44
44
  }
45
45
  if (show) {
46
46
  setPropsIfNull(show, {
47
- mikro: true
47
+ mikro: true,
48
48
  });
49
49
  }
50
50
  if (tag) {
51
51
  setPropsIfNull(tag, {
52
52
  type: "secondary",
53
53
  size: "large",
54
- nonInteractive: true
54
+ nonInteractive: true,
55
55
  });
56
56
  }
57
57
  if (readspeakerButton) {
@@ -61,16 +61,17 @@ const StzhPagetitle = class {
61
61
  noPaddingRight: true,
62
62
  size: "small",
63
63
  sizeMedium: "tiny",
64
- buttonAccesskey: "L"
64
+ buttonAccesskey: "L",
65
65
  });
66
66
  }
67
- leads.forEach((lead) => {
67
+ leads.forEach(lead => {
68
68
  setPropsIfNull(lead, {
69
- lead: true
69
+ lead: true,
70
70
  });
71
71
  });
72
72
  };
73
73
  this.background = "default";
74
+ this.hyphensEnabled = false;
74
75
  this.dateline = undefined;
75
76
  }
76
77
  handleResize() {
@@ -105,7 +106,7 @@ const StzhPagetitle = class {
105
106
  this.observer = new MutationObserver(this.init);
106
107
  this.observer.observe(this.element, {
107
108
  childList: true,
108
- subtree: true
109
+ subtree: true,
109
110
  });
110
111
  }
111
112
  disconnectedCallback() {
@@ -113,10 +114,10 @@ const StzhPagetitle = class {
113
114
  (_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
114
115
  }
115
116
  render() {
116
- const imageSlotUsed = hasSlot(this.element, 'image');
117
- const leadSlotUsed = hasSlot(this.element, 'lead');
118
- const tagSlotUsed = hasSlot(this.element, 'tag');
119
- const readspeakerSlotUsed = hasSlot(this.element, 'readspeaker');
117
+ const imageSlotUsed = hasSlot(this.element, "image");
118
+ const leadSlotUsed = hasSlot(this.element, "lead");
119
+ const tagSlotUsed = hasSlot(this.element, "tag");
120
+ const readspeakerSlotUsed = hasSlot(this.element, "readspeaker");
120
121
  const classes = {
121
122
  "stzh-pagetitle": true,
122
123
  "stzh-pagetitle--has-image": imageSlotUsed,
@@ -124,10 +125,10 @@ const StzhPagetitle = class {
124
125
  "stzh-pagetitle--has-lead": leadSlotUsed,
125
126
  "stzh-pagetitle--has-tag": tagSlotUsed,
126
127
  "stzh-pagetitle--has-meta": tagSlotUsed || readspeakerSlotUsed,
128
+ "stzh-pagetitle--hyphens": this.hyphensEnabled,
127
129
  [`stzh-pagetitle--background-${this.background}`]: !!this.background,
128
130
  };
129
- return (h(Host, null, h("div", { class: classes }, h("div", { class: "stzh-pagetitle__container" }, h("div", { class: "stzh-pagetitle__wrapper" }, h("div", { class: "stzh-pagetitle__text" }, h("div", { class: "stzh-pagetitle__meta" }, h("div", { class: "stzh-pagetitle__tag" }, h("slot", { name: "tag" })), h("div", { class: "stzh-pagetitle__readspeaker" }, h("slot", { name: "readspeaker" }))), this.dateline &&
130
- h("div", { class: "stzh-pagetitle__dateline" }, this.dateline), h("div", { class: "stzh-pagetitle__heading" }, h("slot", { name: "heading" })), h("div", { class: "stzh-pagetitle__lead" }, h("slot", { name: "lead" }))), h("div", { class: "stzh-pagetitle__image-wrapper" }, h("stzh-ratio", { ratio: "16:9", ratioSmall: "3:2", ratioMedium: "16:9", class: "stzh-pagetitle__ratio" }), h("div", { class: "stzh-pagetitle__image-inner-wrapper" }, h("slot", { name: "image" }))), h("div", { class: "stzh-pagetitle__disturber", ref: (el) => (this.disturberElement = el) }, h("slot", { name: "disturber" })))))));
131
+ return (h(Host, null, h("div", { class: classes }, h("div", { class: "stzh-pagetitle__container" }, h("div", { class: "stzh-pagetitle__wrapper" }, h("div", { class: "stzh-pagetitle__text" }, h("div", { class: "stzh-pagetitle__meta" }, h("div", { class: "stzh-pagetitle__tag" }, h("slot", { name: "tag" })), h("div", { class: "stzh-pagetitle__readspeaker" }, h("slot", { name: "readspeaker" }))), this.dateline && h("div", { class: "stzh-pagetitle__dateline" }, this.dateline), h("div", { class: "stzh-pagetitle__heading" }, h("slot", { name: "heading" })), h("div", { class: "stzh-pagetitle__lead" }, h("slot", { name: "lead" }))), h("div", { class: "stzh-pagetitle__image-wrapper" }, h("stzh-ratio", { ratio: "16:9", ratioSmall: "3:2", ratioMedium: "16:9", class: "stzh-pagetitle__ratio" }), h("div", { class: "stzh-pagetitle__image-inner-wrapper" }, h("slot", { name: "image" }))), h("div", { class: "stzh-pagetitle__disturber", ref: el => (this.disturberElement = el) }, h("slot", { name: "disturber" })))))));
131
132
  }
132
133
  get element() { return getElement(this); }
133
134
  };