@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-checkboxgroup.entry.js","mappings":";;;;;AAAA,MAAM,oBAAoB,GAAG,sqJAAsqJ;;ACoBnsJ,IAAI,oBAAoB,GAAG,CAAC,CAAC;MAchB,iBAAiB;;;;IAwBpB,WAAM,GAAa,EAAE,CAAC;IA0BtB,6BAAwB,GAAa,EAAE,CAAC;IAmHx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E,GAAG,IAAI,CAAC,eAAe,cAAc,EACzC,KAAK,EAAE,IAAI,CAAC,MAAM,EAClB,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,eAAe,EAAE,IAAI,CAAC,eAAe,EACrC,oBAAoB,EAAE,IAAI,CAAC,oBAAoB,EAC/C,mBAAmB,EAAE,mBAAmB,EACxC,mBAAmB,EAAE,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,mBAAmB,GACnE,CACO,CACN,EACP;GACH;;;;;;;;;;;;;;;","names":[],"sources":["src/components/stzh-checkboxgroup/stzh-checkboxgroup.scss?tag=stzh-checkboxgroup&encapsulation=scoped","src/components/stzh-checkboxgroup/stzh-checkboxgroup.tsx"],"sourcesContent":[":host {\n &[disabled]:not([disabled=\"false\"]) {\n --description-color: #{$formDisabledColor};\n }\n}\n\n.stzh-checkboxgroup {\n @include input-description;\n margin: 0;\n padding: 0;\n border: none;\n\n &__fields {\n display: flex;\n align-items: flex-start;\n flex-direction: column;\n gap: space('medium');\n }\n\n &__legend {\n @include font('heavy');\n @include fontSize('micro');\n color: $headingColor;\n padding: 0;\n margin-bottom: space('xsmall');\n }\n\n &--hide-legend &__legend {\n @include visuallyhidden;\n }\n\n &--direction-horizontal &__fields {\n flex-wrap: wrap;\n flex-direction: row;\n row-gap: space('medium');\n column-gap: space('xxlarge');\n }\n}\n","import {\n Host,\n Component,\n Prop,\n Element,\n Watch,\n Event,\n h,\n Listen,\n EventEmitter,\n} from \"@stencil/core\";\n\nimport { hasSlot } from \"../../utils/utils\";\n\nimport { StzhCheckboxChangeEvent, StzhCheckboxgroupChangeEvent } from \"../../index\";\nimport { camelCase } from \"../../utils/string-utils\";\nimport { StzhLocaleComponent } from \"../../utils/translation-utils\";\n\nimport { StzhInputDescription } from \"../stzh-input/stzh-input-description\";\n\nlet checkboxgroupCounter = 0;\n\n/**\n * @slot - Slot for `stzh-checkbox` elements\n * @slot description - Slot for description\n * @slot description-long - Slot for long description (in popover)\n * @slot description-long-title - Slot for long description title (in popover) / instead of descriptionLongTitle or description property\n * @slot error - Slot for error\n */\n@Component({\n tag: \"stzh-checkboxgroup\",\n styleUrl: \"stzh-checkboxgroup.scss\",\n scoped: true\n})\nexport class StzhCheckboxgroup {\n /** Translation strings */\n @Prop() localization: StzhLocaleComponent;\n\n /** Whether the element is disabled or not */\n @Prop({ reflect: true }) disabled: boolean = false;\n\n /** The name of the input checkbox elements */\n @Prop({ reflect: true }) name: string;\n\n /** The legend */\n @Prop() legend: string;\n\n /** Hide legend to show only for screenreaders */\n @Prop({ reflect: true }) hideLegend: boolean = false;\n\n /** Invalid status */\n @Prop({ reflect: true }) invalid: boolean = false;\n\n /** Hide `(optional)` label (or use `required` inside form ot hide it) */\n @Prop({ reflect: true }) hideOptional: boolean = false;\n\n /** The selected values of the checkboxgroup */\n @Prop({ mutable: true }) value: string[] | string = \"\";\n private _value: string[] = [];\n\n /** Default value (used by reset) */\n @Prop({ mutable: true }) defaultValue: string[] = [];\n\n /** Direction */\n @Prop({ reflect: true }) direction: \"vertical\" | \"horizontal\" = \"vertical\";\n\n /** Description message (use description slot as alternative) */\n @Prop() description: string;\n\n /** Long description message appearing in a popover (use description-long slot as alternative) */\n @Prop() descriptionLong: string;\n\n /** Long description title appearing in a popover (use description-long-title slot as or description property alternative) */\n @Prop() descriptionLongTitle: string;\n\n /** One or multiple error message (use error slot as alternative) */\n @Prop() error: string | string[];\n private _error: string[];\n\n /** Current checked checkbox elements (readonly) */\n @Prop() checkedCheckbox: HTMLStzhCheckboxElement[] | null = null;\n\n /** Prevent updating certain properties of radio elements (possible values inside array: disabled, invalid) */\n @Prop() preventUpdateProperties: string[] | string = [];\n private _preventUpdateProperties: string[] = [];\n\n /** Host element */\n @Element() element: HTMLElement;\n\n @Watch(\"name\")\n watchName(newValue: string) {\n this.updateCheckboxesProperty(\"name\", newValue);\n }\n\n @Watch(\"disabled\")\n watchDisabled(newValue: boolean) {\n this.updateCheckboxesProperty(\"disabled\", newValue);\n }\n\n @Watch(\"hideOptional\")\n watchHideOptional(newValue: boolean) {\n this.updateCheckboxesProperty(\"hideOptional\", newValue)\n }\n\n @Watch(\"value\")\n watchValue(newValue: string[] | string) {\n if (typeof newValue === \"string\") {\n this._value = JSON.parse(newValue);\n } else {\n this._value = newValue;\n }\n\n if (JSON.stringify(this._value) !== JSON.stringify(this.value)) {\n this.value = this._value;\n }\n\n this.updateCheckedCheckboxByValue(this._value);\n }\n\n @Watch(\"error\")\n errorWatcher(newValue: string | string[]) {\n if (typeof newValue === \"string\") {\n try {\n this._error = JSON.parse(newValue);\n } catch (e) {\n if (newValue) {\n this._error = [newValue];\n } else {\n this._error = [];\n }\n }\n } else if (newValue) {\n this._error = newValue;\n } else {\n this._error = [];\n }\n }\n\n @Watch(\"preventUpdateProperties\")\n preventUpdatePropertiesWatcher(newValue: string[] | string) {\n if (typeof newValue === \"string\") {\n this._preventUpdateProperties = JSON.parse(newValue);\n } else {\n this._preventUpdateProperties = newValue;\n }\n }\n\n /** Change event */\n @Event() stzhChange: EventEmitter<StzhCheckboxgroupChangeEvent>;\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 @Listen(\"stzhChange\", {capture: true})\n onChange(event: CustomEvent<StzhCheckboxChangeEvent>) {\n if (event.detail.component === \"stzh-checkbox\") {\n if (event.detail.checked) {\n this._value.push(event.detail.value);\n } else {\n this._value = this._value.filter(value => value !== event.detail.value);\n }\n // stop propagating checkbox change event otherwise angular control value accessor won't work\n event.stopPropagation();\n this.value = this._value;\n this.stzhChange.emit({\n component: \"stzh-checkboxgroup\",\n value: this._value,\n });\n }\n }\n\n private get errorUsed() {\n return hasSlot(this.element, 'error') || this._error?.length > 0;\n }\n\n /** Checkbox elements */\n private checkboxes: HTMLStzhCheckboxElement[];\n private checkboxgroupId: string;\n private observer: MutationObserver;\n\n private updateCheckboxesProperty(prop: string, value: any) {\n this.checkboxes.forEach((checkbox: HTMLStzhCheckboxElement) => {\n if (prop === \"name\" || (this._preventUpdateProperties.indexOf(prop) === -1)) {\n checkbox[camelCase(prop)] = value;\n }\n });\n }\n\n private updateCheckedCheckboxByValue(value: string[]) {\n this.checkedCheckbox = this.checkboxes.filter(checkbox => value.indexOf(checkbox.value) > -1);\n this.checkboxes.forEach(checkbox => checkbox.checked = value.indexOf(checkbox.value) > -1);\n }\n\n private handleReset = async () => {\n this.value = [...this.defaultValue];\n }\n\n private init = () => {\n // update checkboxes\n this.checkboxes = Array.from(this.element.querySelectorAll(\"stzh-checkbox\"));\n this.updateCheckboxesProperty(\"a11y-describedby\", `${this.checkboxgroupId}-description`);\n this.updateCheckboxesProperty(\"invalid\", this.invalid || this.errorUsed);\n\n this.watchValue(this.value);\n this.watchName(this.name);\n this.watchDisabled(this.disabled);\n this.watchHideOptional(this.hideOptional);\n }\n\n async componentWillLoad() {\n this.checkboxgroupId = `stzh-checkboxgroup-${checkboxgroupCounter++}`;\n this.errorWatcher(this.error);\n this.preventUpdatePropertiesWatcher(this.preventUpdateProperties);\n\n if (!this.localization) {\n this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, 'checkboxgroup');\n }\n }\n\n componentShouldUpdate(_newValue, _oldValue, prop: string) {\n return prop !== \"checkedCheckbox\";\n }\n\n componentDidRender() {\n this.init();\n }\n\n componentDidLoad() {\n this.defaultValue = this.defaultValue.length > 0 ? this.defaultValue : [...this._value];\n }\n\n connectedCallback() {\n if (!this.value.length) {\n this.checkboxes = Array.from(this.element.querySelectorAll(\"stzh-checkbox\"));\n\n // try to find checkboxes that might have checked set to true\n this.value = this.checkboxes\n .filter(checkbox => checkbox.checked)\n .map(checkbox => checkbox.value);\n }\n\n this.observer = new MutationObserver(this.init);\n this.observer.observe(this.element, {\n childList: true,\n subtree: true\n });\n }\n\n disconnectedCallback() {\n if (this.observer) {\n this.observer.disconnect();\n }\n }\n\n render() {\n const descriptionUsed = hasSlot(this.element, 'description') || !!this.description;\n const descriptionLongUsed = hasSlot(this.element, 'description-long') || !!this.descriptionLong;\n\n const classes = {\n \"stzh-checkboxgroup\": true,\n \"stzh-checkboxgroup--has-description\": descriptionUsed,\n \"stzh-checkboxgroup--has-description-long\": descriptionLongUsed,\n \"stzh-checkboxgroup--has-error\": this.errorUsed,\n \"stzh-checkboxgroup--is-disabled\": this.disabled,\n \"stzh-checkboxgroup--is-invalid\": this.invalid || this.errorUsed,\n \"stzh-checkboxgroup--hide-legend\": this.hideLegend,\n [`stzh-checkboxgroup--direction-${this.direction}`]: !!this.direction\n };\n\n return (\n <Host is-invalid={this.invalid || this.errorUsed}>\n <fieldset class={classes}>\n {this.legend &&\n <legend class=\"stzh-checkboxgroup__legend\">\n {this.legend}\n </legend>\n }\n <div class=\"stzh-checkboxgroup__fields\">\n <slot></slot>\n </div>\n <StzhInputDescription\n classPrefix=\"stzh-checkboxgroup\"\n id={`${this.checkboxgroupId}-description`}\n error={this._error}\n description={this.description}\n descriptionLong={this.descriptionLong}\n descriptionLongTitle={this.descriptionLongTitle}\n descriptionLongUsed={descriptionLongUsed}\n moreInfoButtonLabel={this.localization.$globals.moreInfoButtonLabel}\n />\n </fieldset>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"stzh-checkboxgroup.entry.js","mappings":";;;;;AAAA,MAAM,oBAAoB,GAAG,sqJAAsqJ;;ACoBnsJ,IAAI,oBAAoB,GAAG,CAAC,CAAC;MAchB,iBAAiB;;;;IAwBpB,WAAM,GAAa,EAAE,CAAC;IA0BtB,6BAAwB,GAAa,EAAE,CAAC;IAmHxC,gBAAW,GAAG;MACpB,IAAI,CAAC,KAAK,GAAG,CAAC,GAAG,IAAI,CAAC,YAAY,CAAC,CAAC;KACrC,CAAA;IAEO,SAAI,GAAG;;MAEb,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,eAAe,CAAC,CAAC,CAAC;MAC7E,IA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YAAY,CAAC,QAAQ,CAAC,mBAAmB,GACnE,CACO,CACN,EACP;GACH;;;;;;;;;;;;;;;","names":[],"sources":["src/components/stzh-checkboxgroup/stzh-checkboxgroup.scss?tag=stzh-checkboxgroup&encapsulation=scoped","src/components/stzh-checkboxgroup/stzh-checkboxgroup.tsx"],"sourcesContent":[":host {\n &[disabled]:not([disabled=\"false\"]) {\n --description-color: #{$formDisabledColor};\n }\n}\n\n.stzh-checkboxgroup {\n @include input-description;\n margin: 0;\n padding: 0;\n border: none;\n\n &__fields {\n display: flex;\n align-items: flex-start;\n flex-direction: column;\n gap: space('medium');\n }\n\n &__legend {\n @include font('heavy');\n @include fontSize('micro');\n color: $headingColor;\n padding: 0;\n margin-bottom: space('xsmall');\n }\n\n &--hide-legend &__legend {\n @include visuallyhidden;\n }\n\n &--direction-horizontal &__fields {\n flex-wrap: wrap;\n flex-direction: row;\n row-gap: space('medium');\n column-gap: space('xxlarge');\n }\n}\n","import {\n Host,\n Component,\n Prop,\n Element,\n Watch,\n Event,\n h,\n Listen,\n EventEmitter,\n} from \"@stencil/core\";\n\nimport { hasSlot } from \"../../utils/utils\";\n\nimport { StzhCheckboxChangeEvent, StzhCheckboxgroupChangeEvent } from \"../../index\";\nimport { camelCase } from \"../../utils/string-utils\";\nimport { StzhLocaleComponent } from \"../../utils/translation-utils\";\n\nimport { StzhInputDescription } from \"../stzh-input/stzh-input-description\";\n\nlet checkboxgroupCounter = 0;\n\n/**\n * @slot - Slot for `stzh-checkbox` elements\n * @slot description - Slot for description\n * @slot description-long - Slot for long description (in popover)\n * @slot description-long-title - Slot for long description title (in popover) / instead of descriptionLongTitle or description property\n * @slot error - Slot for error\n */\n@Component({\n tag: \"stzh-checkboxgroup\",\n styleUrl: \"stzh-checkboxgroup.scss\",\n scoped: true\n})\nexport class StzhCheckboxgroup {\n /** Translation strings */\n @Prop() localization: StzhLocaleComponent;\n\n /** Whether the element is disabled or not */\n @Prop({ reflect: true }) disabled: boolean = false;\n\n /** The name of the input checkbox elements */\n @Prop({ reflect: true }) name: string;\n\n /** The legend */\n @Prop() legend: string;\n\n /** Hide legend to show only for screenreaders */\n @Prop({ reflect: true }) hideLegend: boolean = false;\n\n /** Invalid status */\n @Prop({ reflect: true }) invalid: boolean = false;\n\n /** Hide `(optional)` label */\n @Prop({ reflect: true }) hideOptional: boolean = false;\n\n /** The selected values of the checkboxgroup */\n @Prop({ mutable: true }) value: string[] | string = \"\";\n private _value: string[] = [];\n\n /** Default value (used by reset) */\n @Prop({ mutable: true }) defaultValue: string[] = [];\n\n /** Direction */\n @Prop({ reflect: true }) direction: \"vertical\" | \"horizontal\" = \"vertical\";\n\n /** Description message (use description slot as alternative) */\n @Prop() description: string;\n\n /** Long description message appearing in a popover (use description-long slot as alternative) */\n @Prop() descriptionLong: string;\n\n /** Long description title appearing in a popover (use description-long-title slot as or description property alternative) */\n @Prop() descriptionLongTitle: string;\n\n /** One or multiple error message (use error slot as alternative) */\n @Prop() error: string | string[];\n private _error: string[];\n\n /** Current checked checkbox elements (readonly) */\n @Prop() checkedCheckbox: HTMLStzhCheckboxElement[] | null = null;\n\n /** Prevent updating certain properties of radio elements (possible values inside array: disabled, invalid) */\n @Prop() preventUpdateProperties: string[] | string = [];\n private _preventUpdateProperties: string[] = [];\n\n /** Host element */\n @Element() element: HTMLElement;\n\n @Watch(\"name\")\n watchName(newValue: string) {\n this.updateCheckboxesProperty(\"name\", newValue);\n }\n\n @Watch(\"disabled\")\n watchDisabled(newValue: boolean) {\n this.updateCheckboxesProperty(\"disabled\", newValue);\n }\n\n @Watch(\"hideOptional\")\n watchHideOptional(newValue: boolean) {\n this.updateCheckboxesProperty(\"hideOptional\", newValue)\n }\n\n @Watch(\"value\")\n watchValue(newValue: string[] | string) {\n if (typeof newValue === \"string\") {\n this._value = JSON.parse(newValue);\n } else {\n this._value = newValue;\n }\n\n if (JSON.stringify(this._value) !== JSON.stringify(this.value)) {\n this.value = this._value;\n }\n\n this.updateCheckedCheckboxByValue(this._value);\n }\n\n @Watch(\"error\")\n errorWatcher(newValue: string | string[]) {\n if (typeof newValue === \"string\") {\n try {\n this._error = JSON.parse(newValue);\n } catch (e) {\n if (newValue) {\n this._error = [newValue];\n } else {\n this._error = [];\n }\n }\n } else if (newValue) {\n this._error = newValue;\n } else {\n this._error = [];\n }\n }\n\n @Watch(\"preventUpdateProperties\")\n preventUpdatePropertiesWatcher(newValue: string[] | string) {\n if (typeof newValue === \"string\") {\n this._preventUpdateProperties = JSON.parse(newValue);\n } else {\n this._preventUpdateProperties = newValue;\n }\n }\n\n /** Change event */\n @Event() stzhChange: EventEmitter<StzhCheckboxgroupChangeEvent>;\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 @Listen(\"stzhChange\", {capture: true})\n onChange(event: CustomEvent<StzhCheckboxChangeEvent>) {\n if (event.detail.component === \"stzh-checkbox\") {\n if (event.detail.checked) {\n this._value.push(event.detail.value);\n } else {\n this._value = this._value.filter(value => value !== event.detail.value);\n }\n // stop propagating checkbox change event otherwise angular control value accessor won't work\n event.stopPropagation();\n this.value = this._value;\n this.stzhChange.emit({\n component: \"stzh-checkboxgroup\",\n value: this._value,\n });\n }\n }\n\n private get errorUsed() {\n return hasSlot(this.element, 'error') || this._error?.length > 0;\n }\n\n /** Checkbox elements */\n private checkboxes: HTMLStzhCheckboxElement[];\n private checkboxgroupId: string;\n private observer: MutationObserver;\n\n private updateCheckboxesProperty(prop: string, value: any) {\n this.checkboxes.forEach((checkbox: HTMLStzhCheckboxElement) => {\n if (prop === \"name\" || (this._preventUpdateProperties.indexOf(prop) === -1)) {\n checkbox[camelCase(prop)] = value;\n }\n });\n }\n\n private updateCheckedCheckboxByValue(value: string[]) {\n this.checkedCheckbox = this.checkboxes.filter(checkbox => value.indexOf(checkbox.value) > -1);\n this.checkboxes.forEach(checkbox => checkbox.checked = value.indexOf(checkbox.value) > -1);\n }\n\n private handleReset = async () => {\n this.value = [...this.defaultValue];\n }\n\n private init = () => {\n // update checkboxes\n this.checkboxes = Array.from(this.element.querySelectorAll(\"stzh-checkbox\"));\n this.updateCheckboxesProperty(\"a11y-describedby\", `${this.checkboxgroupId}-description`);\n this.updateCheckboxesProperty(\"invalid\", this.invalid || this.errorUsed);\n\n this.watchValue(this.value);\n this.watchName(this.name);\n this.watchDisabled(this.disabled);\n this.watchHideOptional(this.hideOptional);\n }\n\n async componentWillLoad() {\n this.checkboxgroupId = `stzh-checkboxgroup-${checkboxgroupCounter++}`;\n this.errorWatcher(this.error);\n this.preventUpdatePropertiesWatcher(this.preventUpdateProperties);\n\n if (!this.localization) {\n this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, 'checkboxgroup');\n }\n }\n\n componentShouldUpdate(_newValue, _oldValue, prop: string) {\n return prop !== \"checkedCheckbox\";\n }\n\n componentDidRender() {\n this.init();\n }\n\n componentDidLoad() {\n this.defaultValue = this.defaultValue.length > 0 ? this.defaultValue : [...this._value];\n }\n\n connectedCallback() {\n if (!this.value.length) {\n this.checkboxes = Array.from(this.element.querySelectorAll(\"stzh-checkbox\"));\n\n // try to find checkboxes that might have checked set to true\n this.value = this.checkboxes\n .filter(checkbox => checkbox.checked)\n .map(checkbox => checkbox.value);\n }\n\n this.observer = new MutationObserver(this.init);\n this.observer.observe(this.element, {\n childList: true,\n subtree: true\n });\n }\n\n disconnectedCallback() {\n if (this.observer) {\n this.observer.disconnect();\n }\n }\n\n render() {\n const descriptionUsed = hasSlot(this.element, 'description') || !!this.description;\n const descriptionLongUsed = hasSlot(this.element, 'description-long') || !!this.descriptionLong;\n\n const classes = {\n \"stzh-checkboxgroup\": true,\n \"stzh-checkboxgroup--has-description\": descriptionUsed,\n \"stzh-checkboxgroup--has-description-long\": descriptionLongUsed,\n \"stzh-checkboxgroup--has-error\": this.errorUsed,\n \"stzh-checkboxgroup--is-disabled\": this.disabled,\n \"stzh-checkboxgroup--is-invalid\": this.invalid || this.errorUsed,\n \"stzh-checkboxgroup--hide-legend\": this.hideLegend,\n [`stzh-checkboxgroup--direction-${this.direction}`]: !!this.direction\n };\n\n return (\n <Host is-invalid={this.invalid || this.errorUsed}>\n <fieldset class={classes}>\n {this.legend &&\n <legend class=\"stzh-checkboxgroup__legend\">\n {this.legend}\n </legend>\n }\n <div class=\"stzh-checkboxgroup__fields\">\n <slot></slot>\n </div>\n <StzhInputDescription\n classPrefix=\"stzh-checkboxgroup\"\n id={`${this.checkboxgroupId}-description`}\n error={this._error}\n description={this.description}\n descriptionLong={this.descriptionLong}\n descriptionLongTitle={this.descriptionLongTitle}\n descriptionLongUsed={descriptionLongUsed}\n moreInfoButtonLabel={this.localization.$globals.moreInfoButtonLabel}\n />\n </fieldset>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -1,6 +1,22 @@
1
- import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-e3050b18.js';
1
+ import { r as registerInstance, h, a as Host, g as getElement, c as createEvent } from './index-e3050b18.js';
2
2
 
3
- const stzhMessageCss = ".sc-stzh-message-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-message-h{display:none}.sc-stzh-message-h::-moz-selection{color:var(--stzh-selection-color);background-color:var(--stzh-selection-background-color)}.sc-stzh-message-h::selection{color:var(--stzh-selection-color);background-color:var(--stzh-selection-background-color)}.sc-stzh-message-h *.sc-stzh-message,.sc-stzh-message-h *.sc-stzh-message::before,.sc-stzh-message-h *.sc-stzh-message::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-message-h .has-focus.sc-stzh-message{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.125rem}.sc-stzh-message-h .stzh-fylingfocus-focused.sc-stzh-message{outline-style:none !important}.sc-stzh-message-h .stzh-fylingfocus-focused.sc-stzh-message::-moz-focus-inner{border:0 !important}.sc-stzh-message-h{--background-color:var(--stzh-color-grey20);--icon-color:var(--stzh-color-info70);--close-color:var(--stzh-color-grey90);--label-color:var(--stzh-color-info70);--description-color:var(--stzh-color-grey90)}[type=success].sc-stzh-message-h{--label-color:var(--stzh-color-success70);--icon-color:var(--stzh-color-success70);--background-color:var(--stzh-color-success20)}[type=warning].sc-stzh-message-h{--label-color:var(--stzh-color-warning90);--icon-color:var(--stzh-color-warning90);--background-color:var(--stzh-color-warning20)}[type=error].sc-stzh-message-h{--label-color:var(--stzh-color-error70);--icon-color:var(--stzh-color-error70);--background-color:var(--stzh-color-error20)}.stzh-message.sc-stzh-message{position:relative;display:flex;box-shadow:var(--stzh-box-shadow-message);background-color:var(--background-color);border-radius:var(--stzh-button-border-radius)}.stzh-message__content.sc-stzh-message{padding-top:var(--stzh-space-medium);padding-bottom:var(--stzh-space-medium);padding-right:var(--stzh-space-xlarge);gap:var(--stzh-space-small);display:flex;flex-direction:column;flex-grow:1;padding-left:var(--stzh-space-medium)}@media screen and (min-width: 600px){.stzh-message__content.sc-stzh-message{padding-top:var(--stzh-space-large)}}@media screen and (min-width: 900px){.stzh-message__content.sc-stzh-message{padding-top:var(--stzh-space-xlarge)}}@media screen and (min-width: 1260px){.stzh-message__content.sc-stzh-message{padding-top:var(--stzh-space-xxlarge)}}@media screen and (min-width: 600px){.stzh-message__content.sc-stzh-message{padding-bottom:var(--stzh-space-large)}}@media screen and (min-width: 900px){.stzh-message__content.sc-stzh-message{padding-bottom:var(--stzh-space-xlarge)}}@media screen and (min-width: 1260px){.stzh-message__content.sc-stzh-message{padding-bottom:var(--stzh-space-xxlarge)}}@media screen and (min-width: 900px){.stzh-message__content.sc-stzh-message{padding-right:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){.stzh-message__content.sc-stzh-message{padding-right:var(--stzh-space-xxxlarge)}}@media screen and (min-width: 900px){.stzh-message__content.sc-stzh-message{gap:var(--stzh-space-medium)}}@media screen and (min-width: 1260px){.stzh-message__content.sc-stzh-message{gap:var(--stzh-space-large)}}@media screen and (min-width: 600px){.stzh-message__content.sc-stzh-message{flex-direction:row;align-items:flex-start}}@media screen and (min-width: 900px){.stzh-message__content.sc-stzh-message{padding-left:var(--stzh-space-large)}}.stzh-message__icon-wrapper.sc-stzh-message{display:flex;flex-shrink:0}.stzh-message__icon.sc-stzh-message{--size:var(--stzh-icon-size-large);color:var(--icon-color)}@media screen and (min-width: 600px){.stzh-message__text-wrapper.sc-stzh-message{flex-grow:1}}.stzh-message__label.sc-stzh-message{font-family:var(--stzh-font-family-title);font-weight:var(--stzh-font-weight-title);font-style:var(--stzh-font-style-title);font-size:var(--stzh-font-curve-h4-default-font-size, var(--stzh-font-milli-font-size));line-height:var(--stzh-font-curve-h4-default-heading-line-height, var(--stzh-font-milli-heading-line-height));letter-spacing:var(--stzh-font-curve-h4-default-heading-letter-spacing);color:var(--label-color)}@media screen and (min-width: 600px){.stzh-message__label.sc-stzh-message{font-size:var(--stzh-font-curve-h4-small-font-size, var(--stzh-font-centi-font-size));line-height:var(--stzh-font-curve-h4-small-heading-line-height, var(--stzh-font-centi-heading-line-height));letter-spacing:var(--stzh-font-curve-h4-small-heading-letter-spacing)}}@media screen and (min-width: 1260px){.stzh-message__label.sc-stzh-message{font-size:var(--stzh-font-curve-h4-large-font-size, var(--stzh-font-deci-font-size));line-height:var(--stzh-font-curve-h4-large-heading-line-height, var(--stzh-font-deci-heading-line-height));letter-spacing:var(--stzh-font-curve-h4-large-heading-letter-spacing)}}@media screen and (min-width: 1600px){.stzh-message__label.sc-stzh-message{font-size:var(--stzh-font-curve-h4-ultra-font-size, var(--stzh-font-deca-font-size));line-height:var(--stzh-font-curve-h4-ultra-heading-line-height, var(--stzh-font-deca-text-line-height));letter-spacing:var(--stzh-font-curve-h4-ultra-heading-letter-spacing, var(--stzh-font-deca-text-letter-spacing))}}.stzh-message__label.sc-stzh-message:not(:empty){margin-bottom:var(--stzh-space-small)}@media screen and (min-width: 900px){.stzh-message__label.sc-stzh-message:not(:empty){margin-bottom:var(--stzh-space-medium)}}@media screen and (min-width: 1260px){.stzh-message__label.sc-stzh-message:not(:empty){margin-bottom:var(--stzh-space-large)}}.stzh-message__description.sc-stzh-message{font-size:var(--stzh-font-curve-p1-default-font-size, var(--stzh-font-milli-font-size));line-height:var(--stzh-font-curve-p1-default-text-line-height, var(--stzh-font-milli-text-line-height));letter-spacing:var(--stzh-font-curve-p1-default-text-letter-spacing);color:var(--description-color)}@media screen and (min-width: 900px){.stzh-message__description.sc-stzh-message{font-size:var(--stzh-font-curve-p1-medium-font-size, var(--stzh-font-centi-font-size));line-height:var(--stzh-font-curve-p1-medium-text-line-height, var(--stzh-font-centi-text-line-height));letter-spacing:var(--stzh-font-curve-p1-medium-text-letter-spacing)}}.stzh-message__description.sc-stzh-message:not(:empty)+.stzh-message__link.sc-stzh-message:not(:empty){margin-top:var(--stzh-space-medium)}@media screen and (min-width: 600px){.stzh-message__description.sc-stzh-message:not(:empty)+.stzh-message__link.sc-stzh-message:not(:empty){margin-top:var(--stzh-space-large)}}@media screen and (min-width: 900px){.stzh-message__description.sc-stzh-message:not(:empty)+.stzh-message__link.sc-stzh-message:not(:empty){margin-top:var(--stzh-space-xlarge)}}@media screen and (min-width: 1260px){.stzh-message__description.sc-stzh-message:not(:empty)+.stzh-message__link.sc-stzh-message:not(:empty){margin-top:var(--stzh-space-xxlarge)}}.stzh-message__close[variant=tertiary].sc-stzh-message{--color:var(--close-color);position:absolute;top:0;right:0}.stzh-message.sc-stzh-message:has(.stzh-message__description:empty):has(.stzh-message__link:empty) .stzh-message__label.sc-stzh-message:not(:empty){margin-top:var(--stzh-space-xxsmall);margin-bottom:0}";
3
+ const stzhChipgroupCss = ".sc-stzh-chipgroup-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-chipgroup-h{display:none}.sc-stzh-chipgroup-h::-moz-selection{color:var(--stzh-selection-color);background-color:var(--stzh-selection-background-color)}.sc-stzh-chipgroup-h::selection{color:var(--stzh-selection-color);background-color:var(--stzh-selection-background-color)}.sc-stzh-chipgroup-h *.sc-stzh-chipgroup,.sc-stzh-chipgroup-h *.sc-stzh-chipgroup::before,.sc-stzh-chipgroup-h *.sc-stzh-chipgroup::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-chipgroup-h .has-focus.sc-stzh-chipgroup{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.125rem}.sc-stzh-chipgroup-h .stzh-fylingfocus-focused.sc-stzh-chipgroup{outline-style:none !important}.sc-stzh-chipgroup-h .stzh-fylingfocus-focused.sc-stzh-chipgroup::-moz-focus-inner{border:0 !important}.stzh-chipgroup.sc-stzh-chipgroup{display:flex;gap:var(--stzh-space-medium)}";
4
+
5
+ const StzhChipgroup = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ }
9
+ render() {
10
+ const classes = {
11
+ "stzh-chipgroup": true
12
+ };
13
+ return (h(Host, null, h("div", { class: classes }, h("slot", null))));
14
+ }
15
+ get element() { return getElement(this); }
16
+ };
17
+ StzhChipgroup.style = stzhChipgroupCss;
18
+
19
+ const stzhMessageCss = ".sc-stzh-message-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-message-h{display:none}.sc-stzh-message-h::-moz-selection{color:var(--stzh-selection-color);background-color:var(--stzh-selection-background-color)}.sc-stzh-message-h::selection{color:var(--stzh-selection-color);background-color:var(--stzh-selection-background-color)}.sc-stzh-message-h *.sc-stzh-message,.sc-stzh-message-h *.sc-stzh-message::before,.sc-stzh-message-h *.sc-stzh-message::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-message-h .has-focus.sc-stzh-message{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.125rem}.sc-stzh-message-h .stzh-fylingfocus-focused.sc-stzh-message{outline-style:none !important}.sc-stzh-message-h .stzh-fylingfocus-focused.sc-stzh-message::-moz-focus-inner{border:0 !important}.sc-stzh-message-h{--background-color:var(--stzh-color-grey20);--icon-color:var(--stzh-color-info70);--close-color:var(--stzh-color-grey90);--label-color:var(--stzh-color-info70);--description-color:var(--stzh-color-grey90)}[type=success].sc-stzh-message-h{--label-color:var(--stzh-color-success70);--icon-color:var(--stzh-color-success70);--background-color:var(--stzh-color-success20)}[type=warning].sc-stzh-message-h{--label-color:var(--stzh-color-warning90);--icon-color:var(--stzh-color-warning90);--background-color:var(--stzh-color-warning20)}[type=error].sc-stzh-message-h{--label-color:var(--stzh-color-error70);--icon-color:var(--stzh-color-error70);--background-color:var(--stzh-color-error20)}.stzh-message.sc-stzh-message{position:relative;display:flex;box-shadow:var(--stzh-box-shadow-message);background-color:var(--background-color);border-radius:var(--stzh-button-border-radius)}.stzh-message__content.sc-stzh-message{padding-top:var(--stzh-space-medium);padding-bottom:var(--stzh-space-medium);padding-right:var(--stzh-space-xlarge);gap:var(--stzh-space-small);display:flex;flex-direction:column;flex-grow:1;padding-left:var(--stzh-space-medium)}@media screen and (min-width: 600px){.stzh-message__content.sc-stzh-message{padding-top:var(--stzh-space-large)}}@media screen and (min-width: 900px){.stzh-message__content.sc-stzh-message{padding-top:var(--stzh-space-xlarge)}}@media screen and (min-width: 1260px){.stzh-message__content.sc-stzh-message{padding-top:var(--stzh-space-xxlarge)}}@media screen and (min-width: 600px){.stzh-message__content.sc-stzh-message{padding-bottom:var(--stzh-space-large)}}@media screen and (min-width: 900px){.stzh-message__content.sc-stzh-message{padding-bottom:var(--stzh-space-xlarge)}}@media screen and (min-width: 1260px){.stzh-message__content.sc-stzh-message{padding-bottom:var(--stzh-space-xxlarge)}}@media screen and (min-width: 900px){.stzh-message__content.sc-stzh-message{padding-right:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){.stzh-message__content.sc-stzh-message{padding-right:var(--stzh-space-xxxlarge)}}@media screen and (min-width: 900px){.stzh-message__content.sc-stzh-message{gap:var(--stzh-space-medium)}}@media screen and (min-width: 1260px){.stzh-message__content.sc-stzh-message{gap:var(--stzh-space-large)}}@media screen and (min-width: 600px){.stzh-message__content.sc-stzh-message{flex-direction:row;align-items:flex-start}}@media screen and (min-width: 900px){.stzh-message__content.sc-stzh-message{padding-left:var(--stzh-space-large)}}.stzh-message__icon-wrapper.sc-stzh-message{display:flex;flex-shrink:0}.stzh-message__icon.sc-stzh-message{--size:var(--stzh-icon-size-large);color:var(--icon-color)}@media screen and (min-width: 600px){.stzh-message__text-wrapper.sc-stzh-message{flex-grow:1}}.stzh-message__label.sc-stzh-message{font-family:var(--stzh-font-family-title);font-weight:var(--stzh-font-weight-title);font-style:var(--stzh-font-style-title);font-size:var(--stzh-font-curve-h4-default-font-size, var(--stzh-font-milli-font-size));line-height:var(--stzh-font-curve-h4-default-heading-line-height, var(--stzh-font-milli-heading-line-height));letter-spacing:var(--stzh-font-curve-h4-default-heading-letter-spacing);color:var(--label-color)}@media screen and (min-width: 600px){.stzh-message__label.sc-stzh-message{font-size:var(--stzh-font-curve-h4-small-font-size, var(--stzh-font-centi-font-size));line-height:var(--stzh-font-curve-h4-small-heading-line-height, var(--stzh-font-centi-heading-line-height));letter-spacing:var(--stzh-font-curve-h4-small-heading-letter-spacing)}}@media screen and (min-width: 1260px){.stzh-message__label.sc-stzh-message{font-size:var(--stzh-font-curve-h4-large-font-size, var(--stzh-font-deci-font-size));line-height:var(--stzh-font-curve-h4-large-heading-line-height, var(--stzh-font-deci-heading-line-height));letter-spacing:var(--stzh-font-curve-h4-large-heading-letter-spacing)}}@media screen and (min-width: 1600px){.stzh-message__label.sc-stzh-message{font-size:var(--stzh-font-curve-h4-ultra-font-size, var(--stzh-font-deca-font-size));line-height:var(--stzh-font-curve-h4-ultra-heading-line-height, var(--stzh-font-deca-text-line-height));letter-spacing:var(--stzh-font-curve-h4-ultra-heading-letter-spacing, var(--stzh-font-deca-text-letter-spacing))}}.stzh-message__label.sc-stzh-message:not(:empty){margin-bottom:var(--stzh-space-xsmall)}.stzh-message__description.sc-stzh-message{font-size:var(--stzh-font-curve-p1-default-font-size, var(--stzh-font-milli-font-size));line-height:var(--stzh-font-curve-p1-default-text-line-height, var(--stzh-font-milli-text-line-height));letter-spacing:var(--stzh-font-curve-p1-default-text-letter-spacing);color:var(--description-color)}@media screen and (min-width: 900px){.stzh-message__description.sc-stzh-message{font-size:var(--stzh-font-curve-p1-medium-font-size, var(--stzh-font-centi-font-size));line-height:var(--stzh-font-curve-p1-medium-text-line-height, var(--stzh-font-centi-text-line-height));letter-spacing:var(--stzh-font-curve-p1-medium-text-letter-spacing)}}.stzh-message__description.sc-stzh-message:not(:empty)+.stzh-message__link.sc-stzh-message:not(:empty){margin-top:var(--stzh-space-small)}@media screen and (min-width: 900px){.stzh-message__description.sc-stzh-message:not(:empty)+.stzh-message__link.sc-stzh-message:not(:empty){margin-top:var(--stzh-space-medium)}}@media screen and (min-width: 1260px){.stzh-message__description.sc-stzh-message:not(:empty)+.stzh-message__link.sc-stzh-message:not(:empty){margin-top:var(--stzh-space-large)}}.stzh-message__close[variant=tertiary].sc-stzh-message{--color:var(--close-color);position:absolute;top:0;right:0}.stzh-message.sc-stzh-message:has(.stzh-message__description:empty):has(.stzh-message__link:empty) .stzh-message__label.sc-stzh-message:not(:empty){margin-top:var(--stzh-space-xxsmall);margin-bottom:0}";
4
20
 
5
21
  const StzhMessage = class {
6
22
  constructor(hostRef) {
@@ -50,6 +66,6 @@ const StzhMessage = class {
50
66
  };
51
67
  StzhMessage.style = stzhMessageCss;
52
68
 
53
- export { StzhMessage as stzh_message };
69
+ export { StzhChipgroup as stzh_chipgroup, StzhMessage as stzh_message };
54
70
 
55
- //# sourceMappingURL=stzh-message.entry.js.map
71
+ //# sourceMappingURL=stzh-chipgroup_2.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"stzh-chipgroup.stzh-message.entry.js","mappings":";;AAAA,MAAM,gBAAgB,GAAG,2zCAA2zC;;MCev0C,aAAa;;;;EAGxB,MAAM;IACJ,MAAM,OAAO,GAAG;MACd,gBAAgB,EAAE,IAAI;KACvB,CAAC;IAEF,QACE,EAAC,IAAI,QACH,WAAK,KAAK,EAAE,OAAO,IACjB,eAAa,CACT,CACD,EACP;GACH;;;;;AC9BH,MAAM,cAAc,GAAG,u8NAAu8N;;MC0Bj9N,WAAW;;;;;IA2Cd,uBAAkB,GAAG;MAC3B,IAAI,CAAC,IAAI,EAAE,CAAC;KACb,CAAA;iBA3CuB,EAAE;uBAGI,EAAE;gBAG0C,MAAM;qBAGnD,KAAK;;gBAcT,IAAI;;EAG7B,MAAM,IAAI;IACR,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACjB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;MACjB,SAAS,EAAE,cAAc;KAC1B,CAAC,CAAC;GACJ;EAGD,MAAM,IAAI;IACR,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC;IAClB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;MAClB,SAAS,EAAE,cAAc;KAC1B,CAAC,CAAC;GACJ;EAMD,MAAM,iBAAiB;IACrB,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE;MACtB,IAAI,CAAC,YAAY,GAAG,MAAM,MAAM,C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C,OAAO,EACZ,QAAQ,EAAE,IAAI,EACd,IAAI,EAAC,WAAW,GACH,CAEb,CACD,EACP;GACH;;;;;;;","names":[],"sources":["src/components/stzh-chipgroup/stzh-chipgroup.scss?tag=stzh-chipgroup&encapsulation=scoped","src/components/stzh-chipgroup/stzh-chipgroup.tsx","src/components/stzh-message/stzh-message.scss?tag=stzh-message&encapsulation=scoped","src/components/stzh-message/stzh-message.tsx"],"sourcesContent":[":host {\n\n}\n\n.stzh-chipgroup {\n display: flex;\n gap: space('medium');\n}\n","import {\n Component,\n Host,\n h,\n Element\n} from \"@stencil/core\";\n\n/**\n * @slot - Slot for chips\n */\n@Component({\n tag: \"stzh-chipgroup\",\n styleUrl: \"stzh-chipgroup.scss\",\n scoped: true\n})\nexport class StzhChipgroup {\n @Element() element: HTMLStzhChipgroupElement;\n\n render() {\n const classes = {\n \"stzh-chipgroup\": true\n };\n\n return (\n <Host>\n <div class={classes}>\n <slot></slot>\n </div>\n </Host>\n );\n }\n}\n",":host {\n --background-color: #{$colorGrey20};\n --icon-color: #{$colorInfo70};\n --close-color: #{$colorGrey90};\n --label-color: #{$colorInfo70};\n --description-color: #{$colorGrey90};\n\n &[type=\"success\"] {\n --label-color: #{$colorSuccess70};\n --icon-color: #{$colorSuccess70};\n --background-color: #{$colorSuccess20};\n }\n\n &[type=\"warning\"] {\n --label-color: #{$colorWarning90};\n --icon-color: #{$colorWarning90};\n --background-color: #{$colorWarning20};\n }\n\n &[type=\"error\"] {\n --label-color: #{$colorError70};\n --icon-color: #{$colorError70};\n --background-color: #{$colorError20};\n }\n}\n\n.stzh-message {\n position: relative;\n display: flex;\n box-shadow: $boxShadowMessage;\n background-color: var(--background-color);\n border-radius: #{$buttonBorderRadius};\n\n &__content {\n @include spaceCurve('padding-top', 'regular');\n @include spaceCurve('padding-bottom', 'regular');\n @include spaceCurve('padding-right', 'medium');\n @include spaceCurve('gap', 'small');\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n padding-left: space('medium');\n\n @include mq($from: small) {\n flex-direction: row;\n align-items: flex-start;\n }\n\n @include mq($from: medium) {\n padding-left: space('large');\n }\n }\n\n &__icon-wrapper {\n display: flex;\n flex-shrink: 0;\n }\n\n &__icon {\n --size: #{iconSize('large')};\n color: var(--icon-color);\n }\n\n &__text-wrapper {\n @include mq($from: small) {\n flex-grow: 1;\n }\n }\n\n &__label {\n @include font('title');\n @include fontCurve('h4', 'heading');\n color: var(--label-color);\n\n &:not(:empty) {\n margin-bottom: var(--stzh-space-xsmall);\n }\n }\n\n &__description {\n @include fontCurve('p1');\n color: var(--description-color);\n }\n\n &__description:not(:empty) + &__link:not(:empty) {\n @include spaceCurve('margin-top', 'small');\n }\n\n &__close[variant=\"tertiary\"] {\n --color: var(--close-color);\n\n position: absolute;\n top: 0;\n right: 0;\n }\n\n /* Only label variant */\n\n &:has(#{&}__description:empty):has(#{&}__link:empty) &__label:not(:empty) {\n margin-top: space('xxsmall');\n margin-bottom: 0;\n }\n}\n","import {\n Component,\n Host,\n h,\n Element,\n Prop,\n Event,\n EventEmitter,\n Method,\n State\n} from \"@stencil/core\";\n\nimport { StzhMessageOpenEvent, StzhMessageCloseEvent } from \"../../index\";\n\nimport { StzhMessageLocalizedText } from \"./stzh-message.localization\"\n\n/**\n * @slot - Slot for description content (use instead of description property)\n * @slot label - Slot for label (use as alternative for property)\n * @slot link - Slot for optional stzh-link element\n */\n@Component({\n tag: \"stzh-message\",\n styleUrl: \"stzh-message.scss\",\n scoped: true\n})\nexport class StzhMessage {\n /** Label (slot can also be used as alternative) */\n @Prop() label: string = \"\";\n\n /** Description (use instead of default slot) */\n @Prop() description: string = \"\";\n\n /** Type */\n @Prop({ reflect: true }) type: \"info\" | \"success\" | \"warning\" | \"error\" = \"info\"\n\n /** Whether to hide close button */\n @Prop() hideClose: boolean = false;\n\n /** Translation strings. */\n @Prop() localization: StzhMessageLocalizedText;\n\n /** Message open event */\n @Event() stzhOpen: EventEmitter<StzhMessageOpenEvent>;\n\n /** Message close event */\n @Event() stzhClose: EventEmitter<StzhMessageCloseEvent>;\n\n @Element() element: HTMLStzhMessageElement;\n\n /** Open state */\n @State() open: boolean = true;\n\n @Method()\n async show() {\n this.open = true;\n this.stzhOpen.emit({\n component: \"stzh-message\"\n });\n }\n\n @Method()\n async hide() {\n this.open = false;\n this.stzhClose.emit({\n component: \"stzh-message\"\n });\n }\n\n private onCloseButtonClick = () => {\n this.hide();\n }\n\n async componentWillLoad() {\n if (!this.localization) {\n this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, \"message\");\n }\n }\n\n render() {\n const classes = {\n \"stzh-message\": true,\n \"stzh-message--has-close-hidden\": this.hideClose,\n [`stzh-message--type-${this.type}`]: !!this.type,\n };\n\n return (\n <Host hidden={!this.open}>\n <div class={classes}>\n <div class=\"stzh-message__content\">\n <div class=\"stzh-message__icon-wrapper\">\n <stzh-icon\n class=\"stzh-message__icon\"\n name={\n this.type === 'info' && \"info-help-filled\"\n || this.type === 'success' && \"checkmark-circle-filled\"\n || this.type === 'warning' && \"important-warning-filled\"\n || this.type === 'error' && \"warning-filled\"\n }\n ></stzh-icon>\n </div>\n <div class=\"stzh-message__text-wrapper\">\n <div class=\"stzh-message__label\">\n {this.label ? this.label : <slot name=\"label\"></slot>}\n </div>\n <div class=\"stzh-message__description\">\n {this.description ? this.description : <slot></slot>}\n </div>\n <div class=\"stzh-message__link\">\n <slot name=\"link\"></slot>\n </div>\n </div>\n </div>\n\n {!this.hideClose &&\n <stzh-button\n class=\"stzh-message__close\"\n onClick={this.onCloseButtonClick}\n a11yLabel={this.localization.close}\n variant=\"tertiary\"\n size=\"small\"\n iconOnly={true}\n icon=\"close-big\"\n ></stzh-button>\n }\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -0,0 +1,218 @@
1
+ import { r as registerInstance, c as createEvent, h, F as Fragment, a as Host, g as getElement } from './index-e3050b18.js';
2
+ import { S as StzhInputDescription } from './stzh-input-description-766446dc.js';
3
+
4
+ const stzhChipselectCss = ".sc-stzh-chipselect-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-chipselect-h{display:none}.sc-stzh-chipselect-h::-moz-selection{color:var(--stzh-selection-color);background-color:var(--stzh-selection-background-color)}.sc-stzh-chipselect-h::selection{color:var(--stzh-selection-color);background-color:var(--stzh-selection-background-color)}.sc-stzh-chipselect-h *.sc-stzh-chipselect,.sc-stzh-chipselect-h *.sc-stzh-chipselect::before,.sc-stzh-chipselect-h *.sc-stzh-chipselect::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-chipselect-h .has-focus.sc-stzh-chipselect{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.125rem}.sc-stzh-chipselect-h .stzh-fylingfocus-focused.sc-stzh-chipselect{outline-style:none !important}.sc-stzh-chipselect-h .stzh-fylingfocus-focused.sc-stzh-chipselect::-moz-focus-inner{border:0 !important}[disabled].sc-stzh-chipselect-h:not([disabled=false]){--description-color:var(--stzh-color-grey70)}.stzh-chipselect__marker-symbol.sc-stzh-chipselect{font-family:var(--stzh-font-family-medium);font-weight:var(--stzh-font-weight-medium);font-style:var(--stzh-font-style-medium)}.stzh-chipselect__marker-text.sc-stzh-chipselect{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-chipselect__description-wrapper.sc-stzh-chipselect{display:flex;flex-direction:column-reverse;min-height:var(--description-min-height, var(--stzh-description-min-height, none))}.stzh-chipselect__error.sc-stzh-chipselect,.stzh-chipselect__description.sc-stzh-chipselect{font-size:var(--stzh-font-nano-font-size);line-height:var(--stzh-font-nano-text-line-height)}.stzh-chipselect__error.sc-stzh-chipselect{color:var(--stzh-color-error60)}.stzh-chipselect__error-list.sc-stzh-chipselect{list-style:none;margin:0;padding:0}.stzh-chipselect__description.sc-stzh-chipselect{display:flex;align-items:flex-start;color:var(--stzh-input-description-color, var(--description-color, var(--stzh-color-coolgrey70)));transition:color var(--stzh-base-transition-animation-speed)}.stzh-chipselect__description-long.sc-stzh-chipselect{margin-right:var(--stzh-space-xxsmall);margin-top:0.125rem}@supports (font: -apple-system-body) and (-webkit-appearance: none){.stzh-chipselect__description-long.sc-stzh-chipselect{margin-top:0}}.stzh-chipselect__description-long-popover.sc-stzh-chipselect{--width:auto;--max-width:27.3125rem}.stzh-chipselect__description-long-button.sc-stzh-chipselect{display:flex;justify-content:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;font-family:inherit;padding:0;border:none;background-color:transparent;border-radius:0.5rem;cursor:pointer}.stzh-chipselect.sc-stzh-chipselect stzh-icon.stzh-chipselect__description-long-icon.sc-stzh-chipselect{--size:var(--stzh-icon-size-xsmall)}.stzh-chipselect--has-error.sc-stzh-chipselect .stzh-chipselect__error.sc-stzh-chipselect,.stzh-chipselect--has-description.sc-stzh-chipselect .stzh-chipselect__description.sc-stzh-chipselect{margin-top:var(--stzh-space-xxxsmall)}.stzh-chipselect__label.sc-stzh-chipselect{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:var(--stzh-font-style-heavy);font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:var(--stzh-heading-color);display:block;margin-bottom:var(--stzh-space-xsmall)}.stzh-chipselect__label.sc-stzh-chipselect:empty{display:none}.stzh-chipselect__marker.sc-stzh-chipselect{font-size:var(--stzh-font-nano-font-size);line-height:var(--stzh-font-nano-text-line-height);margin-left:calc(-0.25em + var(--stzh-space-xsmall))}.stzh-chipselect__chips.sc-stzh-chipselect{display:flex;align-items:center;flex-wrap:wrap;border-radius:var(--stzh-button-border-radius);-moz-column-gap:var(--stzh-space-medium);column-gap:var(--stzh-space-medium)}@media screen and (min-width: 900px){.stzh-chipselect__chips.sc-stzh-chipselect{row-gap:var(--stzh-space-medium)}}.stzh-chipselect__chip.is-focused.sc-stzh-chipselect,.stzh-chipselect__chip.is-focused[active].sc-stzh-chipselect:not([active=false]){--background-color:var(--stzh-color-secondary40)}@media (forced-colors: active), (-ms-high-contrast: active){.stzh-chipselect__chip.is-focused.sc-stzh-chipselect,.stzh-chipselect__chip.is-focused[active].sc-stzh-chipselect:not([active=false]){--background-color:Highlight}}.stzh-chipselect__chip.is-focused[active].sc-stzh-chipselect:not([active=false]){--background-color:var(--stzh-color-primary90)}@media (forced-colors: active), (-ms-high-contrast: active){.stzh-chipselect__chip.is-focused[active].sc-stzh-chipselect:not([active=false]){--background-color:Canvas}}.stzh-chipselect--has-error.sc-stzh-chipselect .stzh-chipselect__error.sc-stzh-chipselect,.stzh-chipselect--has-description.sc-stzh-chipselect .stzh-chipselect__description.sc-stzh-chipselect{margin-top:var(--stzh-space-xsmall)}.stzh-chipselect--has-label-hidden.sc-stzh-chipselect .stzh-chipselect__label.sc-stzh-chipselect{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-chipselect--is-disabled.sc-stzh-chipselect .stzh-chipselect__chips.sc-stzh-chipselect,.stzh-chipselect--is-disabled.sc-stzh-chipselect .stzh-chipselect__label.sc-stzh-chipselect{cursor:not-allowed}";
5
+
6
+ let chipselectCounter = 0;
7
+ const StzhChipselect = class {
8
+ constructor(hostRef) {
9
+ registerInstance(this, hostRef);
10
+ this.stzhChange = createEvent(this, "stzhChange", 7);
11
+ this._data = [];
12
+ this._value = [];
13
+ this.handleReset = async () => {
14
+ this.value = this.defaultValue;
15
+ // this.stzhChange.emit({
16
+ // component: "stzh-chipselect",
17
+ // value: this.value
18
+ // });
19
+ };
20
+ this.handleChipClick = async (data, index) => {
21
+ if (this.multiple) {
22
+ if (data.value === "" && this._value.length > 0 && !(this._value.length === 1 && this._value[0] === "")) {
23
+ this.value = [];
24
+ }
25
+ else if (data.value !== "") {
26
+ this.value = this._value.includes(data.value)
27
+ ? this._value.filter(value => value !== data.value)
28
+ : [...this._value, data.value];
29
+ }
30
+ }
31
+ else {
32
+ this.value = data.value;
33
+ }
34
+ this.activeFocusOptionIndex = index;
35
+ await this.waitForNextRender();
36
+ this.stzhChange.emit({
37
+ component: "stzh-chipselect",
38
+ value: this.multiple ? this._value : this._value[0]
39
+ });
40
+ };
41
+ // private handleDropdownChange = async (event: CustomEvent<StzhDropdownChangeEvent>) => {
42
+ // this.value = Array.isArray(event.detail.value) ? event.detail.value[0] : event.detail.value;
43
+ // this.activeFocusOptionIndex = this._data.findIndex(data => {
44
+ // return data.value === this.value;
45
+ // });
46
+ // await this.waitForNextRender();
47
+ // this.stzhChange.emit({
48
+ // component: "stzh-chipselect",
49
+ // value: this.value
50
+ // })
51
+ // }
52
+ this.handleKeydown = (event) => {
53
+ let newActiveIndex = null;
54
+ const activeOptionIndex = this.activeFocusOptionIndex;
55
+ if (event.key === "ArrowUp" || event.key === "ArrowLeft") {
56
+ event.preventDefault();
57
+ if (activeOptionIndex > 0) {
58
+ newActiveIndex = activeOptionIndex - 1;
59
+ }
60
+ }
61
+ else if (event.key === "ArrowDown" || event.key === "ArrowRight") {
62
+ event.preventDefault();
63
+ if (activeOptionIndex < this._data.length - 1) {
64
+ newActiveIndex = activeOptionIndex + 1;
65
+ }
66
+ }
67
+ else if (event.key === " " || event.key === "Enter") {
68
+ event.preventDefault();
69
+ this.value = this._data[activeOptionIndex].value;
70
+ this.stzhChange.emit({
71
+ component: "stzh-chipselect",
72
+ value: this.value
73
+ });
74
+ }
75
+ if (newActiveIndex !== null) {
76
+ this.activeFocusOptionIndex = newActiveIndex;
77
+ }
78
+ };
79
+ this.localization = undefined;
80
+ this.data = [];
81
+ this.name = undefined;
82
+ this.label = "";
83
+ this.labelHidden = false;
84
+ this.multiple = false;
85
+ this.value = "";
86
+ this.defaultValue = "";
87
+ this.description = undefined;
88
+ this.descriptionLong = undefined;
89
+ this.descriptionLongTitle = undefined;
90
+ this.error = undefined;
91
+ this.invalid = false;
92
+ this.required = false;
93
+ this.disabled = false;
94
+ this.hideOptional = false;
95
+ this.a11yDescribedby = "";
96
+ this.activeFocusOptionIndex = 0;
97
+ }
98
+ resetListener(event) {
99
+ if (event.target.contains(this.element)) {
100
+ requestAnimationFrame(() => {
101
+ this.handleReset();
102
+ });
103
+ }
104
+ }
105
+ valueWatcher(newValue) {
106
+ if (typeof newValue === "string") {
107
+ try {
108
+ this._value = JSON.parse(newValue);
109
+ }
110
+ catch (ex) {
111
+ this._value = newValue ? [newValue] : [];
112
+ }
113
+ }
114
+ else {
115
+ this._value = newValue ? newValue : [];
116
+ }
117
+ }
118
+ dataWatcher(newValue) {
119
+ if (typeof newValue === "string") {
120
+ this._data = JSON.parse(newValue);
121
+ }
122
+ else {
123
+ this._data = newValue;
124
+ }
125
+ // this._dataDropdown = this._data.map((data) => {
126
+ // return {
127
+ // text: data.counter
128
+ // ? `${data.label} (${data.counter})`
129
+ // : data.label,
130
+ // value: data.value
131
+ // }
132
+ // });
133
+ }
134
+ errorWatcher(newValue) {
135
+ if (typeof newValue === "string") {
136
+ try {
137
+ this._error = JSON.parse(newValue);
138
+ }
139
+ catch (e) {
140
+ if (newValue) {
141
+ this._error = [newValue];
142
+ }
143
+ else {
144
+ this._error = [];
145
+ }
146
+ }
147
+ }
148
+ else if (newValue) {
149
+ this._error = newValue;
150
+ }
151
+ else {
152
+ this._error = [];
153
+ }
154
+ }
155
+ waitForNextRender() {
156
+ return new Promise(resolve => this.renderPromiseResolve = resolve);
157
+ }
158
+ componentDidRender() {
159
+ if (this.renderPromiseResolve) {
160
+ this.renderPromiseResolve();
161
+ }
162
+ }
163
+ async componentWillLoad() {
164
+ this.id = `stzh-chipselect-${chipselectCounter++}`;
165
+ this.dataWatcher(this.data);
166
+ this.errorWatcher(this.error);
167
+ this.valueWatcher(this.value);
168
+ this.defaultValue = this.defaultValue || this.value;
169
+ if (!this.localization) {
170
+ this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, "chipselect");
171
+ }
172
+ }
173
+ render() {
174
+ const descriptionUsed = !!this.description;
175
+ const descriptionLongUsed = !!this.descriptionLong;
176
+ const errorUsed = !!this.error;
177
+ const classes = {
178
+ "stzh-chipselect": true,
179
+ "stzh-chipselect--has-description": descriptionUsed,
180
+ "stzh-chipselect--has-description-long": descriptionLongUsed,
181
+ "stzh-chipselect--has-error": errorUsed,
182
+ "stzh-chipselect--is-invalid": this.invalid || errorUsed,
183
+ "stzh-chipselect--is-disabled": this.disabled,
184
+ "stzh-chipselect--is-required": this.required,
185
+ "stzh-chipselect--has-label-hidden": this.labelHidden,
186
+ };
187
+ return (h(Host, { "is-invalid": this.invalid || errorUsed }, h("div", { class: classes }, this.multiple
188
+ ?
189
+ h(Fragment, null, this._value.map((value) => h("input", { type: "hidden", name: this.name, value: value })))
190
+ :
191
+ h("input", { type: "hidden", name: this.name, value: this.value }), h("label", { class: "stzh-chipselect__label", htmlFor: this.id }, this.label ? this.label : h("slot", null), !this.hideOptional &&
192
+ h("span", { class: "stzh-chipselect__marker" }, h("span", { class: "stzh-chipselect__marker-symbol", "aria-hidden": "true" }, this.required
193
+ ? this.localization.$globals.requiredFieldMarker
194
+ : this.localization.$globals.optionalFieldMarker), h("span", { class: "stzh-chipselect__marker-text" }, this.required
195
+ ? this.localization.$globals.requiredFieldText
196
+ : this.localization.$globals.optionalFieldText))), this._data.length > 0 &&
197
+ h(Fragment, null, h("div", { id: this.id, class: "stzh-chipselect__chips", role: "listbox", tabindex: "0", "aria-multiselectable": this.multiple ? "true" : "false", "aria-activedescendant": `${this.id}-option-${this.activeFocusOptionIndex}`, "aria-describedby": `${this.id}-description ${this.a11yDescribedby}`, onKeyDown: this.handleKeydown }, this._data.map((data, index) => (h("stzh-chip", { role: "option", class: {
198
+ "stzh-chipselect__chip": true,
199
+ "is-focused": this.activeFocusOptionIndex === index
200
+ }, label: data.label, counter: data.counter, icon: data.icon, type: data.type, inverted: data.inverted, variant: data.variant, size: data.size || "small", disabled: this.disabled || data.disabled, active: this._value.includes(data.value)
201
+ || (!this.multiple && !data.value && (this._value.length === 0 || this._value[0] === ""))
202
+ || (!data.value && this.multiple && (this._value.length === 0 || (this._value.length === 1 && this._value[0] === ""))), "aria-selected": this._value.includes(data.value)
203
+ || (!this.multiple && !data.value && (this._value.length === 0 || this._value[0] === ""))
204
+ || (!data.value && this.multiple && (this._value.length === 0 || (this._value.length === 1 && this._value[0] === "")))
205
+ ? "true" : "false", id: `${this.id}-option-${index}`, a11yTabindex: "-1", onClick: () => this.handleChipClick(data, index) })))), h(StzhInputDescription, { classPrefix: "stzh-chipselect", id: `${this.id}-description`, error: this._error, description: this.description, descriptionLong: this.descriptionLong, descriptionLongTitle: this.descriptionLongTitle, descriptionLongUsed: descriptionLongUsed, moreInfoButtonLabel: this.localization.$globals.moreInfoButtonLabel })))));
206
+ }
207
+ get element() { return getElement(this); }
208
+ static get watchers() { return {
209
+ "value": ["valueWatcher"],
210
+ "data": ["dataWatcher"],
211
+ "error": ["errorWatcher"]
212
+ }; }
213
+ };
214
+ StzhChipselect.style = stzhChipselectCss;
215
+
216
+ export { StzhChipselect as stzh_chipselect };
217
+
218
+ //# sourceMappingURL=stzh-chipselect.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"stzh-chipselect.entry.js","mappings":";;;AAAA,MAAM,iBAAiB,GAAG,kxLAAkxL;;ACyB5yL,IAAI,iBAAiB,GAAG,CAAC,CAAC;MAcb,cAAc;;;;IAMjB,UAAK,GAAyB,EAAE,CAAC;IAiBjC,WAAM,GAAa,EAAE,CAAC;IA0GtB,gBAAW,GAAG;MACpB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,YAAY,CAAC;;;;;KAMhC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AQ,KAAK,IAAI,CAAC,MAAM,CAAC,MAAM,KAAK,CAAC,KAAK,IAAI,CAAC,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;YAClH,MAAM,GAAG,OAAO,EAEtB,EAAE,EAAE,GAAG,IAAI,CAAC,EAAE,WAAW,KAAK,EAAE,EAChC,YAAY,EAAC,IAAI,EACjB,OAAO,EAAE,MAAM,IAAI,CAAC,eAAe,CAAC,IAAI,EAAE,KAAK,CAAC,GACrC,CACd,CAAC,CACE,EAEN,EAAC,oBAAoB,IACnB,WAAW,EAAC,iBAAiB,EAC7B,EAAE,EAAE,GAAG,IAAI,CAAC,EAAE,cAAc,EAC5B,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,CAkBO,CAET,CACD,EACP;GACH;;;;;;;;;;;;","names":[],"sources":["src/components/stzh-chipselect/stzh-chipselect.scss?tag=stzh-chipselect&encapsulation=scoped","src/components/stzh-chipselect/stzh-chipselect.tsx"],"sourcesContent":[":host {\n &[disabled]:not([disabled=\"false\"]) {\n --description-color: #{$formDisabledColor};\n }\n}\n\n.stzh-chipselect {\n\t@include input-description;\n\n &__label {\n @include font('heavy');\n @include fontSize('micro');\n @include truncate;\n color: $headingColor;\n display: block;\n margin-bottom: space('xsmall');\n\n &:empty {\n display: none;\n }\n }\n\n &__marker {\n @include fontSize('nano');\n margin-left: calc(-0.25em + #{space('xsmall')});\n }\n\n &__chips {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n border-radius: $buttonBorderRadius;\n column-gap: space('medium');\n\n @include mq($from: medium) {\n row-gap: space('medium');\n }\n\n // @include mq($to: medium) {\n // display: none;\n // }\n }\n\n &__chip {\n &.is-focused,\n &.is-focused[active]:not([active=false]) {\n --background-color: #{$colorSecondary40};\n\n @include highContrast() {\n --background-color: Highlight;\n }\n }\n\n &.is-focused[active]:not([active=false]) {\n --background-color: #{$colorPrimary90};\n\n @include highContrast() {\n --background-color: Canvas;\n }\n }\n }\n\n // &__dropdown {\n // @include mq($from: medium) {\n // display: none;\n // }\n // }\n\n // &__description-wrapper {\n // @include mq($to: medium) {\n // display: none;\n // }\n // }\n\n &--has-error &__error,\n &--has-description &__description {\n margin-top: space('xsmall');\n }\n\n /* Hidden label */\n\n &--has-label-hidden &__label {\n @include visuallyhidden;\n }\n\n /* Disabled */\n\n &--is-disabled &__chips,\n &--is-disabled &__label {\n cursor: not-allowed;\n }\n}\n","import {\n Component,\n Host,\n h,\n Element,\n Prop,\n Watch,\n Event,\n EventEmitter,\n State,\n Fragment,\n Listen,\n} from \"@stencil/core\";\n\nimport {\n StzhChipselectItem,\n StzhChipselectChangeEvent,\n // StzhDropdownChangeEvent\n} from \"../../index\";\n\nimport { StzhInputDescription } from \"../stzh-input/stzh-input-description\";\n\n// import { hasSlot } from \"../../utils/utils\";\nimport { StzhLocaleComponent } from \"../../utils/translation-utils\";\n\nlet chipselectCounter = 0;\n\n/**\n * @slot - Slot for `stzh-checkbox` elements\n * @slot description - Slot for description\n * @slot description-long - Slot for long description (in popover)\n * @slot description-long-title - Slot for long description title (in popover) / instead of descriptionLongTitle or description property\n * @slot error - Slot for error\n */\n@Component({\n tag: \"stzh-chipselect\",\n styleUrl: \"stzh-chipselect.scss\",\n scoped: true\n})\nexport class StzhChipselect {\n /** Translation strings */\n @Prop() localization: StzhLocaleComponent;\n\n /** The list of chips */\n @Prop() data: string | StzhChipselectItem[] = [];\n private _data: StzhChipselectItem[] = [];\n // private _dataDropdown: any[] = [];\n\n /** The name of the input element */\n @Prop({ reflect: true }) name: string;\n\n /** Label */\n @Prop() label: string = \"\";\n\n /** Whether label is hidden. */\n @Prop() labelHidden: boolean = false;\n\n /** Multiple */\n @Prop({ mutable: true }) multiple: boolean = false;\n\n /** Value */\n @Prop({ mutable: true }) value: string | string[] = \"\";\n private _value: string[] = [];\n\n /** Default value (used by reset) */\n @Prop({ mutable: true }) defaultValue: string | 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 /** Whether all chips are disabled or not */\n @Prop({ reflect: true }) disabled: boolean = false;\n\n /** Hide `(optional)` label (or use `required` inside form to hide it) */\n @Prop({ reflect: true }) hideOptional: boolean = false;\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 @State() activeFocusOptionIndex: number = 0;\n\n @Element() element: HTMLStzhChipselectElement;\n\n /** Change event */\n @Event() stzhChange: EventEmitter<StzhChipselectChangeEvent>;\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[] | string) {\n if (typeof newValue === \"string\") {\n try {\n this._value = JSON.parse(newValue);\n } catch(ex) {\n this._value = newValue ? [newValue] : [];\n }\n } else {\n this._value = newValue ? newValue : [];\n }\n }\n\n @Watch(\"data\")\n dataWatcher(newValue: StzhChipselectItem[] | string) {\n if (typeof newValue === \"string\") {\n this._data = JSON.parse(newValue);\n } else {\n this._data = newValue;\n }\n\n // this._dataDropdown = this._data.map((data) => {\n // return {\n // text: data.counter\n // ? `${data.label} (${data.counter})`\n // : data.label,\n // value: data.value\n // }\n // });\n }\n\n @Watch(\"error\")\n errorWatcher(newValue: string | string[]) {\n if (typeof newValue === \"string\") {\n try {\n this._error = JSON.parse(newValue);\n } catch (e) {\n if (newValue) {\n this._error = [newValue];\n } else {\n this._error = [];\n }\n }\n } else if (newValue) {\n this._error = newValue;\n } else {\n this._error = [];\n }\n }\n\n private id: string;\n private renderPromiseResolve: (value?: unknown) => void;\n\n private waitForNextRender() {\n return new Promise(resolve => this.renderPromiseResolve = resolve);\n }\n\n private handleReset = async () => {\n this.value = this.defaultValue;\n\n // this.stzhChange.emit({\n // component: \"stzh-chipselect\",\n // value: this.value\n // });\n }\n\n private handleChipClick = async (data: StzhChipselectItem, index: number) => {\n if (this.multiple) {\n if (data.value === \"\" && this._value.length > 0 && !(this._value.length === 1 && this._value[0] === \"\")) {\n this.value = [];\n } else if (data.value !== \"\") {\n this.value = this._value.includes(data.value)\n ? this._value.filter(value => value !== data.value)\n : [...this._value, data.value];\n }\n } else {\n this.value = data.value;\n }\n\n this.activeFocusOptionIndex = index;\n\n await this.waitForNextRender();\n\n this.stzhChange.emit({\n component: \"stzh-chipselect\",\n value: this.multiple ? this._value : this._value[0]\n });\n }\n\n // private handleDropdownChange = async (event: CustomEvent<StzhDropdownChangeEvent>) => {\n // this.value = Array.isArray(event.detail.value) ? event.detail.value[0] : event.detail.value;\n\n // this.activeFocusOptionIndex = this._data.findIndex(data => {\n // return data.value === this.value;\n // });\n\n // await this.waitForNextRender();\n\n // this.stzhChange.emit({\n // component: \"stzh-chipselect\",\n // value: this.value\n // })\n // }\n\n private handleKeydown = (event: KeyboardEvent) => {\n let newActiveIndex: number = null;\n const activeOptionIndex = this.activeFocusOptionIndex;\n\n if (event.key === \"ArrowUp\" || event.key === \"ArrowLeft\") {\n event.preventDefault();\n\n if (activeOptionIndex > 0) {\n newActiveIndex = activeOptionIndex - 1;\n }\n } else if (event.key === \"ArrowDown\" || event.key === \"ArrowRight\") {\n event.preventDefault();\n\n if (activeOptionIndex < this._data.length - 1) {\n newActiveIndex = activeOptionIndex + 1;\n }\n } else if (event.key === \" \" || event.key === \"Enter\") {\n event.preventDefault();\n this.value = this._data[activeOptionIndex].value;\n\n this.stzhChange.emit({\n component: \"stzh-chipselect\",\n value: this.value\n });\n }\n\n if (newActiveIndex !== null) {\n this.activeFocusOptionIndex = newActiveIndex;\n }\n }\n\n componentDidRender() {\n if (this.renderPromiseResolve) {\n this.renderPromiseResolve();\n }\n }\n\n async componentWillLoad() {\n this.id = `stzh-chipselect-${chipselectCounter++}`;\n\n this.dataWatcher(this.data);\n this.errorWatcher(this.error);\n this.valueWatcher(this.value);\n\n this.defaultValue = this.defaultValue || this.value;\n\n if (!this.localization) {\n this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, \"chipselect\");\n }\n }\n\n render() {\n const descriptionUsed = !!this.description;\n const descriptionLongUsed = !!this.descriptionLong;\n const errorUsed = !!this.error;\n\n const classes = {\n \"stzh-chipselect\": true,\n \"stzh-chipselect--has-description\": descriptionUsed,\n \"stzh-chipselect--has-description-long\": descriptionLongUsed,\n \"stzh-chipselect--has-error\": errorUsed,\n \"stzh-chipselect--is-invalid\": this.invalid || errorUsed,\n \"stzh-chipselect--is-disabled\": this.disabled,\n \"stzh-chipselect--is-required\": this.required,\n \"stzh-chipselect--has-label-hidden\": this.labelHidden,\n };\n\n return (\n <Host is-invalid={this.invalid || errorUsed}>\n <div class={classes}>\n {this.multiple\n ?\n <Fragment>\n {this._value.map((value) =>\n <input type=\"hidden\" name={this.name} value={value} />\n )}\n </Fragment>\n :\n <input\n type=\"hidden\"\n name={this.name}\n value={this.value}\n />\n }\n\n <label class=\"stzh-chipselect__label\" htmlFor={this.id}>\n {this.label ? this.label : <slot></slot>}\n {!this.hideOptional &&\n <span class=\"stzh-chipselect__marker\">\n <span class=\"stzh-chipselect__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-chipselect__marker-text\">\n {this.required\n ? this.localization.$globals.requiredFieldText\n : this.localization.$globals.optionalFieldText\n }\n </span>\n </span>\n }\n </label>\n\n {this._data.length > 0 &&\n <Fragment>\n <div\n id={this.id}\n class=\"stzh-chipselect__chips\"\n role=\"listbox\"\n tabindex=\"0\"\n aria-multiselectable={this.multiple ? \"true\" : \"false\"}\n aria-activedescendant={`${this.id}-option-${this.activeFocusOptionIndex}`}\n aria-describedby={`${this.id}-description ${this.a11yDescribedby}`}\n onKeyDown={this.handleKeydown}\n >\n {this._data.map((data, index) => (\n <stzh-chip\n role=\"option\"\n class={{\n \"stzh-chipselect__chip\": true,\n \"is-focused\": this.activeFocusOptionIndex === index\n }}\n label={data.label}\n counter={data.counter}\n icon={data.icon}\n type={data.type}\n inverted={data.inverted}\n variant={data.variant}\n size={data.size || \"small\"}\n disabled={this.disabled || data.disabled}\n active={\n this._value.includes(data.value)\n || (!this.multiple && !data.value && (this._value.length === 0 || this._value[0] === \"\"))\n || (!data.value && this.multiple && (this._value.length === 0 || (this._value.length === 1 && this._value[0] === \"\")))\n }\n aria-selected={\n this._value.includes(data.value)\n || (!this.multiple && !data.value && (this._value.length === 0 || this._value[0] === \"\"))\n || (!data.value && this.multiple && (this._value.length === 0 || (this._value.length === 1 && this._value[0] === \"\")))\n ? \"true\" : \"false\"\n }\n id={`${this.id}-option-${index}`}\n a11yTabindex=\"-1\"\n onClick={() => this.handleChipClick(data, index)}\n ></stzh-chip>\n ))}\n </div>\n\n <StzhInputDescription\n classPrefix=\"stzh-chipselect\"\n id={`${this.id}-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 {/* <stzh-dropdown\n class=\"stzh-chipselect__dropdown\"\n multiple={this.multiple}\n disabled={this.disabled}\n error={this._error}\n description={this.description}\n descriptionLong={this.descriptionLong}\n required={this.required}\n invalid={this.invalid}\n items={[this.value]}\n label={this.label}\n labelHidden={this.labelHidden}\n options={this._dataDropdown}\n hideOptional={this.hideOptional}\n onStzhChange={this.handleDropdownChange}\n ></stzh-dropdown> */}\n </Fragment>\n }\n </div>\n </Host>\n );\n }\n}\n"],"version":3}