@oiz/stzh-components 4.6.0 → 4.7.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 (689) hide show
  1. package/dist/cjs/{app-globals-237b22c8.js → app-globals-c14f30c8.js} +2 -2
  2. package/dist/cjs/{app-globals-237b22c8.js.map → app-globals-c14f30c8.js.map} +1 -1
  3. package/dist/cjs/index.cjs.js.map +1 -1
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/stzh-accordion_3.cjs.entry.js +2 -2
  6. package/dist/cjs/stzh-actions_6.cjs.entry.js +1 -1
  7. package/dist/cjs/stzh-actionset.cjs.entry.js +5 -5
  8. package/dist/cjs/stzh-amount.cjs.entry.js +1 -1
  9. package/dist/cjs/stzh-anchornav.cjs.entry.js +1 -1
  10. package/dist/cjs/stzh-app-nav.cjs.entry.js +1 -1
  11. package/dist/cjs/stzh-appointments.cjs.entry.js +1 -1
  12. package/dist/cjs/stzh-audio.cjs.entry.js +3 -3
  13. package/dist/cjs/stzh-badge_3.cjs.entry.js +1 -1
  14. package/dist/cjs/stzh-banner.cjs.entry.js +2 -2
  15. package/dist/cjs/stzh-banner.cjs.entry.js.map +1 -1
  16. package/dist/cjs/stzh-bathstatus-item.cjs.entry.js +1 -1
  17. package/dist/cjs/stzh-bathstatus-list.cjs.entry.js +1 -1
  18. package/dist/cjs/stzh-card-superteaser.cjs.entry.js +1 -1
  19. package/dist/cjs/stzh-cardlist_3.cjs.entry.js +1 -1
  20. package/dist/cjs/stzh-cardlist_3.cjs.entry.js.map +1 -1
  21. package/dist/cjs/stzh-chipselect.cjs.entry.js +11 -6
  22. package/dist/cjs/stzh-chipselect.cjs.entry.js.map +1 -1
  23. package/dist/cjs/stzh-components.cjs.js +2 -2
  24. package/dist/cjs/stzh-contact-cv.cjs.entry.js +1 -1
  25. package/dist/cjs/stzh-contact.cjs.entry.js +1 -1
  26. package/dist/cjs/stzh-disturber.cjs.entry.js +1 -1
  27. package/dist/cjs/stzh-dropdown.cjs.entry.js +11 -4
  28. package/dist/cjs/stzh-dropdown.cjs.entry.js.map +1 -1
  29. package/dist/cjs/stzh-editor.cjs.entry.js +1 -1
  30. package/dist/cjs/stzh-eventdata.cjs.entry.js +1 -1
  31. package/dist/cjs/stzh-eventinfo.cjs.entry.js +1 -1
  32. package/dist/cjs/stzh-feedreader-item.cjs.entry.js +1 -1
  33. package/dist/cjs/stzh-feedreader.cjs.entry.js +1 -1
  34. package/dist/cjs/stzh-geo-ref-data.cjs.entry.js +24 -16
  35. package/dist/cjs/stzh-geo-ref-data.cjs.entry.js.map +1 -1
  36. package/dist/cjs/stzh-ghettobox_3.cjs.entry.js +2 -2
  37. package/dist/cjs/stzh-ghettobox_3.cjs.entry.js.map +1 -1
  38. package/dist/cjs/stzh-homepage-search.cjs.entry.js +1 -1
  39. package/dist/cjs/stzh-homepage-service-highlights.cjs.entry.js +2 -2
  40. package/dist/cjs/stzh-linklist.cjs.entry.js +1 -1
  41. package/dist/cjs/stzh-microsite-teaserlist.cjs.entry.js +1 -1
  42. package/dist/cjs/stzh-page-skiplinks.cjs.entry.js +1 -1
  43. package/dist/cjs/stzh-pagebottom.cjs.entry.js +1 -1
  44. package/dist/cjs/stzh-pagecontent.cjs.entry.js +1 -1
  45. package/dist/cjs/stzh-pagetitle-hero.cjs.entry.js +1 -1
  46. package/dist/cjs/stzh-pagetitle-home.cjs.entry.js +1 -1
  47. package/dist/cjs/stzh-pagetitle.cjs.entry.js +1 -1
  48. package/dist/cjs/stzh-pi-content-navigation.cjs.entry.js +1 -1
  49. package/dist/cjs/stzh-pi-menu.cjs.entry.js +2 -2
  50. package/dist/cjs/stzh-pi-menu.cjs.entry.js.map +1 -1
  51. package/dist/cjs/stzh-pi-pagetitle.cjs.entry.js +2 -2
  52. package/dist/cjs/stzh-pi-pagetitle.cjs.entry.js.map +1 -1
  53. package/dist/cjs/stzh-pi-quote.cjs.entry.js +1 -1
  54. package/dist/cjs/stzh-pi-teaser-layout-item.cjs.entry.js +1 -1
  55. package/dist/cjs/stzh-pi-teaser.cjs.entry.js +1 -1
  56. package/dist/cjs/stzh-poicard.cjs.entry.js +1 -1
  57. package/dist/cjs/stzh-poilist.cjs.entry.js +1 -1
  58. package/dist/cjs/stzh-print_2.cjs.entry.js +1 -1
  59. package/dist/cjs/stzh-search.cjs.entry.js +2 -2
  60. package/dist/cjs/stzh-sitemap.cjs.entry.js +1 -1
  61. package/dist/cjs/stzh-socialmediastream-item.cjs.entry.js +1 -1
  62. package/dist/cjs/stzh-socialmediastream.cjs.entry.js +1 -1
  63. package/dist/cjs/stzh-textandimage.cjs.entry.js +1 -1
  64. package/dist/cjs/stzh-twocolumns.cjs.entry.js +1 -1
  65. package/dist/cjs/stzh-upload.cjs.entry.js +45 -10
  66. package/dist/cjs/stzh-upload.cjs.entry.js.map +1 -1
  67. package/dist/cjs/stzh-vbz-linechip.cjs.entry.js +46 -4
  68. package/dist/cjs/stzh-vbz-linechip.cjs.entry.js.map +1 -1
  69. package/dist/cjs/stzh-vbz-ticker.cjs.entry.js +4 -2
  70. package/dist/cjs/stzh-vbz-ticker.cjs.entry.js.map +1 -1
  71. package/dist/collection/collection-manifest.json +1 -1
  72. package/dist/collection/components/CMS/PKZH/stzh-pkzh-qr/stzh-pkzh-qr.stories.js +1 -3
  73. package/dist/collection/components/CMS/VBZ/stzh-vbz-carousel/stzh-vbz-carousel.stories.js +1 -3
  74. package/dist/collection/components/CMS/VBZ/stzh-vbz-connection-finder/stzh-vbz-connection-finder.stories.js +1 -6
  75. package/dist/collection/components/CMS/VBZ/stzh-vbz-intro/stzh-vbz-intro.stories.js +1 -3
  76. package/dist/collection/components/CMS/VBZ/stzh-vbz-linechip/stzh-vbz-linechip.js +48 -3
  77. package/dist/collection/components/CMS/VBZ/stzh-vbz-linechip/stzh-vbz-linechip.js.map +1 -1
  78. package/dist/collection/components/CMS/VBZ/stzh-vbz-linechip/stzh-vbz-linechip.stories.js +1 -11
  79. package/dist/collection/components/CMS/VBZ/stzh-vbz-majorticker/stzh-vbz-majorticker.stories.js +1 -6
  80. package/dist/collection/components/CMS/VBZ/stzh-vbz-ticker/stzh-vbz-ticker.js +22 -2
  81. package/dist/collection/components/CMS/VBZ/stzh-vbz-ticker/stzh-vbz-ticker.js.map +1 -1
  82. package/dist/collection/components/CMS/VBZ/stzh-vbz-ticker/stzh-vbz-ticker.stories.js +2 -6
  83. package/dist/collection/components/CMS/stzh-archivelist/stzh-archivelist.stories.js +3 -5
  84. package/dist/collection/components/CMS/stzh-bathstatus-item/stzh-bathstatus-item.js +1 -1
  85. package/dist/collection/components/CMS/stzh-bathstatus-item/stzh-bathstatus-item.stories.js +1 -3
  86. package/dist/collection/components/CMS/stzh-bathstatus-list/stzh-bathstatus-list.js +1 -1
  87. package/dist/collection/components/CMS/stzh-bathstatus-list/stzh-bathstatus-list.stories.js +1 -3
  88. package/dist/collection/components/CMS/stzh-card-superteaser/stzh-card-superteaser.js +1 -1
  89. package/dist/collection/components/CMS/stzh-card-superteaser/stzh-card-superteaser.stories.js +3 -5
  90. package/dist/collection/components/CMS/stzh-contact/stzh-contact.js +1 -1
  91. package/dist/collection/components/CMS/stzh-contact/stzh-contact.stories.js +1 -3
  92. package/dist/collection/components/CMS/stzh-contact-cv/stzh-contact-cv.js +1 -1
  93. package/dist/collection/components/CMS/stzh-contact-cv/stzh-contact-cv.stories.js +1 -3
  94. package/dist/collection/components/CMS/stzh-disturber/stzh-disturber.js +1 -1
  95. package/dist/collection/components/CMS/stzh-disturber/stzh-disturber.stories.js +3 -5
  96. package/dist/collection/components/CMS/stzh-editor/stzh-editor.js +1 -1
  97. package/dist/collection/components/CMS/stzh-editor/stzh-editor.stories.js +1 -3
  98. package/dist/collection/components/CMS/stzh-eventdata/stzh-eventdata.js +1 -1
  99. package/dist/collection/components/CMS/stzh-eventdata/stzh-eventdata.stories.js +1 -3
  100. package/dist/collection/components/CMS/stzh-eventinfo/stzh-eventinfo.js +1 -1
  101. package/dist/collection/components/CMS/stzh-eventinfo/stzh-eventinfo.stories.js +1 -3
  102. package/dist/collection/components/CMS/stzh-feedreader/stzh-feedreader.js +1 -1
  103. package/dist/collection/components/CMS/stzh-feedreader/stzh-feedreader.stories.js +3 -5
  104. package/dist/collection/components/CMS/stzh-feedreader-item/stzh-feedreader-item.js +1 -1
  105. package/dist/collection/components/CMS/stzh-feedreader-item/stzh-feedreader-item.stories.js +1 -3
  106. package/dist/collection/components/CMS/stzh-geo-ref-data/stzh-geo-ref-data.js +24 -16
  107. package/dist/collection/components/CMS/stzh-geo-ref-data/stzh-geo-ref-data.js.map +1 -1
  108. package/dist/collection/components/CMS/stzh-geo-ref-data/stzh-geo-ref-data.stories.js +1 -6
  109. package/dist/collection/components/CMS/stzh-ghettobox/stzh-ghettobox.css +3 -3
  110. package/dist/collection/components/CMS/stzh-ghettobox/stzh-ghettobox.js +1 -1
  111. package/dist/collection/components/CMS/stzh-ghettobox/stzh-ghettobox.stories.js +3 -5
  112. package/dist/collection/components/CMS/stzh-homepage-search/stzh-homepage-search.js +1 -1
  113. package/dist/collection/components/CMS/stzh-homepage-search/stzh-homepage-search.stories.js +3 -5
  114. package/dist/collection/components/CMS/stzh-homepage-service-highlights/stzh-homepage-service-highlights.js +2 -2
  115. package/dist/collection/components/CMS/stzh-homepage-service-highlights/stzh-homepage-service-highlights.stories.js +1 -3
  116. package/dist/collection/components/CMS/stzh-linklist/stzh-linklist.js +1 -1
  117. package/dist/collection/components/CMS/stzh-linklist/stzh-linklist.stories.js +1 -6
  118. package/dist/collection/components/CMS/stzh-microsite-teaserlist/stzh-microsite-teaserlist.js +1 -1
  119. package/dist/collection/components/CMS/stzh-microsite-teaserlist/stzh-microsite-teaserlist.stories.js +1 -11
  120. package/dist/collection/components/CMS/stzh-page-skiplinks/stzh-page-skiplinks.js +1 -1
  121. package/dist/collection/components/CMS/stzh-page-skiplinks/stzh-page-skiplinks.stories.js +1 -6
  122. package/dist/collection/components/CMS/stzh-pagebottom/stzh-pagebottom.js +1 -1
  123. package/dist/collection/components/CMS/stzh-pagebottom/stzh-pagebottom.stories.js +1 -9
  124. package/dist/collection/components/CMS/stzh-pagecontent/stzh-pagecontent.js +1 -1
  125. package/dist/collection/components/CMS/stzh-pagecontent/stzh-pagecontent.stories.js +1 -6
  126. package/dist/collection/components/CMS/stzh-pagetitle/stzh-pagetitle.js +1 -1
  127. package/dist/collection/components/CMS/stzh-pagetitle/stzh-pagetitle.stories.js +1 -3
  128. package/dist/collection/components/CMS/stzh-pagetitle-hero/stzh-pagetitle-hero.js +1 -1
  129. package/dist/collection/components/CMS/stzh-pagetitle-hero/stzh-pagetitle-hero.stories.js +1 -3
  130. package/dist/collection/components/CMS/stzh-pagetitle-home/stzh-pagetitle-home.js +1 -1
  131. package/dist/collection/components/CMS/stzh-pagetitle-home/stzh-pagetitle-home.stories.js +1 -3
  132. package/dist/collection/components/CMS/stzh-pi-content-navigation/stzh-pi-content-navigation.js +1 -1
  133. package/dist/collection/components/CMS/stzh-pi-content-navigation/stzh-pi-content-navigation.stories.js +3 -5
  134. package/dist/collection/components/CMS/stzh-pi-menu/stzh-pi-menu.css +0 -1
  135. package/dist/collection/components/CMS/stzh-pi-menu/stzh-pi-menu.js +1 -1
  136. package/dist/collection/components/CMS/stzh-pi-menu/stzh-pi-menu.stories.js +3 -5
  137. package/dist/collection/components/CMS/stzh-pi-pagetitle/stzh-pi-pagetitle.css +3 -0
  138. package/dist/collection/components/CMS/stzh-pi-pagetitle/stzh-pi-pagetitle.js +1 -1
  139. package/dist/collection/components/CMS/stzh-pi-pagetitle/stzh-pi-pagetitle.stories.js +1 -3
  140. package/dist/collection/components/CMS/stzh-pi-quote/stzh-pi-quote.js +1 -1
  141. package/dist/collection/components/CMS/stzh-pi-quote/stzh-pi-quote.stories.js +1 -4
  142. package/dist/collection/components/CMS/stzh-pi-teaser/stzh-pi-teaser.js +1 -1
  143. package/dist/collection/components/CMS/stzh-pi-teaser/stzh-pi-teaser.stories.js +3 -5
  144. package/dist/collection/components/CMS/stzh-pi-teaser-layout/stzh-pi-teaser-layout.stories.js +3 -6
  145. package/dist/collection/components/CMS/stzh-pi-teaser-layout-item/stzh-pi-teaser-layout-item.js +1 -1
  146. package/dist/collection/components/CMS/stzh-pi-teaser-layout-item/stzh-pi-teaser-layout-item.stories.js +3 -5
  147. package/dist/collection/components/CMS/stzh-poicard/stzh-poicard.js +1 -1
  148. package/dist/collection/components/CMS/stzh-poicard/stzh-poicard.stories.js +1 -3
  149. package/dist/collection/components/CMS/stzh-poilist/stzh-poilist.js +1 -1
  150. package/dist/collection/components/CMS/stzh-poilist/stzh-poilist.stories.js +1 -3
  151. package/dist/collection/components/CMS/stzh-print/stzh-print.js +1 -1
  152. package/dist/collection/components/CMS/stzh-print/stzh-print.stories.js +1 -3
  153. package/dist/collection/components/CMS/stzh-search/stzh-search.js +2 -2
  154. package/dist/collection/components/CMS/stzh-search/stzh-search.stories.js +1 -3
  155. package/dist/collection/components/CMS/stzh-sitemap/stzh-sitemap.js +1 -1
  156. package/dist/collection/components/CMS/stzh-sitemap/stzh-sitemap.stories.js +2 -3
  157. package/dist/collection/components/CMS/stzh-socialmediastream/stzh-socialmediastream.js +1 -1
  158. package/dist/collection/components/CMS/stzh-socialmediastream/stzh-socialmediastream.stories.js +1 -3
  159. package/dist/collection/components/CMS/stzh-socialmediastream-item/stzh-socialmediastream-item.js +1 -1
  160. package/dist/collection/components/CMS/stzh-socialmediastream-item/stzh-socialmediastream-item.stories.js +1 -3
  161. package/dist/collection/components/CMS/stzh-textandimage/stzh-textandimage.js +1 -1
  162. package/dist/collection/components/CMS/stzh-textandimage/stzh-textandimage.stories.js +1 -3
  163. package/dist/collection/components/CMS/stzh-twocolumns/stzh-twocolumns.js +1 -1
  164. package/dist/collection/components/CMS/stzh-twocolumns/stzh-twocolumns.stories.js +1 -3
  165. package/dist/collection/components/stzh-accordion/stzh-accordion.js +1 -1
  166. package/dist/collection/components/stzh-accordion/stzh-accordion.stories.js +3 -6
  167. package/dist/collection/components/stzh-accordion-item/stzh-accordion-item.js +1 -1
  168. package/dist/collection/components/stzh-accordion-item/stzh-accordion-item.stories.js +4 -7
  169. package/dist/collection/components/stzh-actions/stzh-actions.js +1 -1
  170. package/dist/collection/components/stzh-actions/stzh-actions.stories.js +3 -5
  171. package/dist/collection/components/stzh-actionset/stzh-actionset.js +5 -5
  172. package/dist/collection/components/stzh-actionset/stzh-actionset.stories.js +3 -5
  173. package/dist/collection/components/stzh-amount/stzh-amount.js +1 -1
  174. package/dist/collection/components/stzh-amount/stzh-amount.stories.js +3 -4
  175. package/dist/collection/components/stzh-anchornav/stzh-anchornav.js +1 -1
  176. package/dist/collection/components/stzh-anchornav/stzh-anchornav.stories.js +3 -4
  177. package/dist/collection/components/stzh-app-nav/stzh-app-nav.js +1 -1
  178. package/dist/collection/components/stzh-app-nav/stzh-app-nav.stories.js +3 -5
  179. package/dist/collection/components/stzh-appointments/stzh-appointments.js +1 -1
  180. package/dist/collection/components/stzh-appointments/stzh-appointments.stories.js +17 -14
  181. package/dist/collection/components/stzh-audio/stzh-audio.js +3 -3
  182. package/dist/collection/components/stzh-audio/stzh-audio.stories.js +3 -5
  183. package/dist/collection/components/stzh-badge/stzh-badge.js +1 -1
  184. package/dist/collection/components/stzh-badge/stzh-badge.stories.js +3 -5
  185. package/dist/collection/components/{CMS/stzh-banner → stzh-banner}/stzh-banner.css +1 -1
  186. package/dist/collection/components/{CMS/stzh-banner → stzh-banner}/stzh-banner.e2e.js +2 -2
  187. package/dist/collection/components/stzh-banner/stzh-banner.e2e.js.map +1 -0
  188. package/dist/collection/components/{CMS/stzh-banner → stzh-banner}/stzh-banner.js +4 -4
  189. package/dist/collection/components/stzh-banner/stzh-banner.js.map +1 -0
  190. package/dist/collection/components/stzh-banner/stzh-banner.localization.js.map +1 -0
  191. package/dist/collection/components/{CMS/stzh-banner → stzh-banner}/stzh-banner.stories.js +6 -8
  192. package/dist/collection/components/stzh-breadcrumb/stzh-breadcrumb.stories.js +3 -5
  193. package/dist/collection/components/stzh-button/stzh-button.stories.js +4 -6
  194. package/dist/collection/components/stzh-buttongroup/stzh-buttongroup.stories.js +4 -3
  195. package/dist/collection/components/stzh-calendar/stzh-calendar.stories.js +3 -5
  196. package/dist/collection/components/stzh-card/stzh-card.stories.js +14 -17
  197. package/dist/collection/components/stzh-card-navigation/stzh-card-navigation.stories.js +3 -5
  198. package/dist/collection/components/stzh-card-searchresult/stzh-card-searchresult.stories.js +3 -5
  199. package/dist/collection/components/stzh-cardlist/stzh-cardlist.css +7 -6
  200. package/dist/collection/components/stzh-cardlist/stzh-cardlist.stories.js +3 -5
  201. package/dist/collection/components/stzh-carousel/stzh-carousel.stories.js +3 -5
  202. package/dist/collection/components/stzh-cell/stzh-cell.stories.js +3 -4
  203. package/dist/collection/components/stzh-chart/stzh-chart.stories.js +1 -3
  204. package/dist/collection/components/stzh-checkbox/stzh-checkbox.stories.js +7 -10
  205. package/dist/collection/components/stzh-checkboxgroup/stzh-checkboxgroup.stories.js +5 -9
  206. package/dist/collection/components/stzh-chip/stzh-chip.stories.js +3 -5
  207. package/dist/collection/components/stzh-chipgroup/stzh-chipgroup.stories.js +1 -3
  208. package/dist/collection/components/stzh-chipselect/stzh-chipselect.js +11 -6
  209. package/dist/collection/components/stzh-chipselect/stzh-chipselect.js.map +1 -1
  210. package/dist/collection/components/stzh-chipselect/stzh-chipselect.stories.js +4 -6
  211. package/dist/collection/components/stzh-clamp/stzh-clamp.stories.js +3 -4
  212. package/dist/collection/components/stzh-company-logo/stzh-company-logo.stories.js +1 -6
  213. package/dist/collection/components/stzh-container/stzh-container.stories.js +1 -3
  214. package/dist/collection/components/stzh-content/stzh-content.stories.js +1 -6
  215. package/dist/collection/components/stzh-cspace/stzh-cspace.stories.js +1 -6
  216. package/dist/collection/components/stzh-cta/stzh-cta.stories.js +3 -5
  217. package/dist/collection/components/stzh-datalist/stzh-datalist.stories.js +3 -5
  218. package/dist/collection/components/stzh-datalist-item/stzh-datalist-item.stories.js +3 -5
  219. package/dist/collection/components/stzh-datamessagelist/stzh-datamessagelist.stories.js +1 -3
  220. package/dist/collection/components/stzh-datamessagelist-item/stzh-datamessagelist-item.stories.js +3 -5
  221. package/dist/collection/components/stzh-datatable/stzh-datatable.stories.js +3 -5
  222. package/dist/collection/components/stzh-datepicker/stzh-datepicker.stories.js +3 -5
  223. package/dist/collection/components/stzh-daterange/stzh-daterange.stories.js +1 -6
  224. package/dist/collection/components/stzh-details/stzh-details.stories.js +3 -5
  225. package/dist/collection/components/stzh-dialog/stzh-dialog.stories.js +3 -5
  226. package/dist/collection/components/stzh-dropdown/stzh-dropdown.js +11 -4
  227. package/dist/collection/components/stzh-dropdown/stzh-dropdown.js.map +1 -1
  228. package/dist/collection/components/stzh-dropdown/stzh-dropdown.stories.js +4 -6
  229. package/dist/collection/components/stzh-fieldset/stzh-fieldset.stories.js +6 -11
  230. package/dist/collection/components/stzh-figure/stzh-figure.stories.js +1 -3
  231. package/dist/collection/components/stzh-flyingfocus/stzh-flyingfocus.stories.js +1 -3
  232. package/dist/collection/components/stzh-footer/stzh-footer.stories.js +1 -3
  233. package/dist/collection/components/stzh-gallery/stzh-gallery.stories.js +1 -3
  234. package/dist/collection/components/stzh-header/stzh-header.stories.js +3 -5
  235. package/dist/collection/components/stzh-heading/stzh-heading.stories.js +1 -6
  236. package/dist/collection/components/stzh-hr/stzh-hr.stories.js +1 -3
  237. package/dist/collection/components/stzh-hspace/stzh-hspace.stories.js +1 -6
  238. package/dist/collection/components/stzh-http-error/stzh-http-error.stories.js +1 -6
  239. package/dist/collection/components/stzh-icon/stzh-icon.stories.js +1 -6
  240. package/dist/collection/components/stzh-iframe/stzh-iframe.stories.js +3 -5
  241. package/dist/collection/components/stzh-imagecomparison/stzh-imagecomparison.stories.js +3 -5
  242. package/dist/collection/components/stzh-input/stzh-input.stories.js +6 -8
  243. package/dist/collection/components/stzh-invert/stzh-invert.stories.js +1 -3
  244. package/dist/collection/components/stzh-link/stzh-link.stories.js +3 -4
  245. package/dist/collection/components/stzh-list/stzh-list.stories.js +1 -3
  246. package/dist/collection/components/stzh-loader/stzh-loader.stories.js +1 -6
  247. package/dist/collection/components/stzh-loadingbar/stzh-loadingbar.stories.js +1 -3
  248. package/dist/collection/components/stzh-menu/stzh-menu.stories.js +1 -6
  249. package/dist/collection/components/stzh-menu-item/stzh-menu-item.stories.js +3 -5
  250. package/dist/collection/components/stzh-message/stzh-message.stories.js +3 -5
  251. package/dist/collection/components/stzh-monthyearpicker/stzh-monthyearpicker.stories.js +3 -4
  252. package/dist/collection/components/stzh-offline-indicator/stzh-offline-indicator.stories.js +1 -3
  253. package/dist/collection/components/stzh-olmap/stzh-olmap.stories.js +3 -5
  254. package/dist/collection/components/stzh-overlay/stzh-overlay.stories.js +3 -5
  255. package/dist/collection/components/stzh-pagination/stzh-pagination.stories.js +3 -5
  256. package/dist/collection/components/stzh-panorama/stzh-panorama.stories.js +3 -5
  257. package/dist/collection/components/stzh-popover/stzh-popover.stories.js +5 -8
  258. package/dist/collection/components/stzh-quote/stzh-quote.stories.js +1 -4
  259. package/dist/collection/components/stzh-radio/stzh-radio.stories.js +7 -11
  260. package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.stories.js +6 -9
  261. package/dist/collection/components/stzh-rating/stzh-rating.stories.js +16 -23
  262. package/dist/collection/components/stzh-ratio/stzh-ratio.stories.js +1 -3
  263. package/dist/collection/components/stzh-readspeaker/stzh-readspeaker.stories.js +1 -3
  264. package/dist/collection/components/stzh-richtext/stzh-richtext.stories.js +1 -6
  265. package/dist/collection/components/stzh-row/stzh-row.stories.js +1 -5
  266. package/dist/collection/components/stzh-saptcha/stzh-saptcha.stories.js +3 -5
  267. package/dist/collection/components/stzh-scrollup/stzh-scrollup.stories.js +1 -17
  268. package/dist/collection/components/stzh-section/stzh-section.stories.js +1 -3
  269. package/dist/collection/components/stzh-share/stzh-share.stories.js +1 -3
  270. package/dist/collection/components/stzh-show/stzh-show.stories.js +1 -3
  271. package/dist/collection/components/stzh-skin-portal-mitwirken/stzh-skin-portal-mitwirken.stories.js +1 -6
  272. package/dist/collection/components/stzh-skin-storybook-preview/stzh-skin-storybook-preview.stories.js +1 -6
  273. package/dist/collection/components/stzh-skiplink/stzh-skiplink.stories.js +1 -6
  274. package/dist/collection/components/stzh-sortable/stzh-sortable.stories.js +3 -5
  275. package/dist/collection/components/stzh-space/stzh-space.stories.js +1 -6
  276. package/dist/collection/components/stzh-status/stzh-status.stories.js +1 -3
  277. package/dist/collection/components/stzh-stepper/stzh-stepper.stories.js +4 -7
  278. package/dist/collection/components/stzh-stepper-item/stzh-stepper-item.stories.js +4 -7
  279. package/dist/collection/components/stzh-sticky/stzh-sticky.stories.js +3 -5
  280. package/dist/collection/components/stzh-sticky-actions/stzh-sticky-actions.stories.js +1 -3
  281. package/dist/collection/components/stzh-table/stzh-table.stories.js +1 -3
  282. package/dist/collection/components/stzh-tag/stzh-tag.stories.js +3 -5
  283. package/dist/collection/components/stzh-text/stzh-text.stories.js +5 -7
  284. package/dist/collection/components/stzh-timeline/stzh-timeline.stories.js +3 -5
  285. package/dist/collection/components/stzh-timeline-item/stzh-timeline-item.stories.js +3 -5
  286. package/dist/collection/components/stzh-timepicker/stzh-timepicker.stories.js +3 -5
  287. package/dist/collection/components/stzh-toast/stzh-toast.stories.js +3 -5
  288. package/dist/collection/components/stzh-toastbar/stzh-toastbar.stories.js +1 -2
  289. package/dist/collection/components/stzh-toggle/stzh-toggle.stories.js +3 -5
  290. package/dist/collection/components/stzh-tooltip/stzh-tooltip.stories.js +3 -5
  291. package/dist/collection/components/stzh-upload/stzh-upload.js +46 -11
  292. package/dist/collection/components/stzh-upload/stzh-upload.js.map +1 -1
  293. package/dist/collection/components/stzh-upload/stzh-upload.stories.js +13 -12
  294. package/dist/collection/components/stzh-visuallyhidden/stzh-visuallyhidden.stories.js +1 -6
  295. package/dist/collection/components/stzh-vspace/stzh-vspace.stories.js +1 -6
  296. package/dist/collection/components/stzh-youtube/stzh-youtube.stories.js +1 -3
  297. package/dist/collection/index.js.map +1 -1
  298. package/dist/components/index.js +1 -1
  299. package/dist/components/{p-79436c88.js → p-05fe3259.js} +2 -2
  300. package/dist/components/{p-79436c88.js.map → p-05fe3259.js.map} +1 -1
  301. package/dist/components/{p-0b630cac.js → p-06e3cf2d.js} +16 -11
  302. package/dist/components/p-06e3cf2d.js.map +1 -0
  303. package/dist/components/{p-27bf6b87.js → p-0e787824.js} +4 -4
  304. package/dist/components/{p-27bf6b87.js.map → p-0e787824.js.map} +1 -1
  305. package/dist/components/{p-cb0898ca.js → p-139d2041.js} +4 -4
  306. package/dist/components/{p-cb0898ca.js.map → p-139d2041.js.map} +1 -1
  307. package/dist/components/{p-a792adae.js → p-17e8405b.js} +3 -3
  308. package/dist/components/{p-a792adae.js.map → p-17e8405b.js.map} +1 -1
  309. package/dist/components/{p-db160bc1.js → p-1c6e00e3.js} +4 -4
  310. package/dist/components/{p-db160bc1.js.map → p-1c6e00e3.js.map} +1 -1
  311. package/dist/components/{p-95960509.js → p-1e18dc1d.js} +4 -4
  312. package/dist/components/{p-95960509.js.map → p-1e18dc1d.js.map} +1 -1
  313. package/dist/components/{p-5c7c4130.js → p-2b549cf6.js} +2 -2
  314. package/dist/components/{p-5c7c4130.js.map → p-2b549cf6.js.map} +1 -1
  315. package/dist/components/{p-2d80d228.js → p-31108932.js} +2 -2
  316. package/dist/components/{p-2d80d228.js.map → p-31108932.js.map} +1 -1
  317. package/dist/components/{p-2c27e000.js → p-33bb9ae6.js} +9 -9
  318. package/dist/components/{p-2c27e000.js.map → p-33bb9ae6.js.map} +1 -1
  319. package/dist/components/{p-78ad1fb5.js → p-349fbfd7.js} +2 -2
  320. package/dist/components/{p-78ad1fb5.js.map → p-349fbfd7.js.map} +1 -1
  321. package/dist/components/{p-31a89409.js → p-363adb38.js} +5 -5
  322. package/dist/components/{p-31a89409.js.map → p-363adb38.js.map} +1 -1
  323. package/dist/components/p-37c9ec06.js.map +1 -1
  324. package/dist/components/{p-7969eeb6.js → p-38e34484.js} +2 -2
  325. package/dist/components/{p-7969eeb6.js.map → p-38e34484.js.map} +1 -1
  326. package/dist/components/{p-c4637521.js → p-3ee4c2ec.js} +3 -3
  327. package/dist/components/{p-c4637521.js.map → p-3ee4c2ec.js.map} +1 -1
  328. package/dist/components/{p-1ec35678.js → p-4bdf2c0e.js} +5 -5
  329. package/dist/components/{p-1ec35678.js.map → p-4bdf2c0e.js.map} +1 -1
  330. package/dist/components/{p-2d2bf07d.js → p-5fe404aa.js} +49 -5
  331. package/dist/components/p-5fe404aa.js.map +1 -0
  332. package/dist/components/{p-1f315034.js → p-626168f9.js} +4 -4
  333. package/dist/components/{p-1f315034.js.map → p-626168f9.js.map} +1 -1
  334. package/dist/components/{p-b8fda153.js → p-6a1a040f.js} +2 -2
  335. package/dist/components/{p-b8fda153.js.map → p-6a1a040f.js.map} +1 -1
  336. package/dist/components/{p-bafc325d.js → p-74f1fb8a.js} +3 -3
  337. package/dist/components/{p-bafc325d.js.map → p-74f1fb8a.js.map} +1 -1
  338. package/dist/components/{p-ec5e2f2a.js → p-775cca3b.js} +2 -2
  339. package/dist/components/{p-ec5e2f2a.js.map → p-775cca3b.js.map} +1 -1
  340. package/dist/components/{p-c9320f27.js → p-804c5a42.js} +4 -4
  341. package/dist/components/{p-c9320f27.js.map → p-804c5a42.js.map} +1 -1
  342. package/dist/components/{p-28548919.js → p-8c402b5e.js} +3 -3
  343. package/dist/components/{p-28548919.js.map → p-8c402b5e.js.map} +1 -1
  344. package/dist/components/{p-e25baa50.js → p-8e42dbab.js} +3 -3
  345. package/dist/components/{p-e25baa50.js.map → p-8e42dbab.js.map} +1 -1
  346. package/dist/components/{p-c8267c9e.js → p-999b8661.js} +4 -4
  347. package/dist/components/p-999b8661.js.map +1 -0
  348. package/dist/components/{p-258d7bde.js → p-9a88d047.js} +3 -3
  349. package/dist/components/{p-258d7bde.js.map → p-9a88d047.js.map} +1 -1
  350. package/dist/components/{p-51253a86.js → p-a94140df.js} +3 -3
  351. package/dist/components/{p-51253a86.js.map → p-a94140df.js.map} +1 -1
  352. package/dist/components/{p-c484e7ca.js → p-af574b36.js} +2 -2
  353. package/dist/components/{p-c484e7ca.js.map → p-af574b36.js.map} +1 -1
  354. package/dist/components/{p-a3e94f5e.js → p-b379f4ca.js} +6 -6
  355. package/dist/components/{p-a3e94f5e.js.map → p-b379f4ca.js.map} +1 -1
  356. package/dist/components/{p-cac39de3.js → p-b38507d2.js} +2 -2
  357. package/dist/components/{p-cac39de3.js.map → p-b38507d2.js.map} +1 -1
  358. package/dist/components/{p-04567f95.js → p-b392fbfe.js} +4 -4
  359. package/dist/components/{p-04567f95.js.map → p-b392fbfe.js.map} +1 -1
  360. package/dist/components/{p-cccc2b32.js → p-bb5dd9ca.js} +6 -6
  361. package/dist/components/{p-cccc2b32.js.map → p-bb5dd9ca.js.map} +1 -1
  362. package/dist/components/{p-27688347.js → p-bec99b6c.js} +4 -4
  363. package/dist/components/{p-27688347.js.map → p-bec99b6c.js.map} +1 -1
  364. package/dist/components/{p-dc031c55.js → p-c16c2ca7.js} +6 -6
  365. package/dist/components/{p-dc031c55.js.map → p-c16c2ca7.js.map} +1 -1
  366. package/dist/components/{p-9dccba17.js → p-cac3a53e.js} +3 -3
  367. package/dist/components/{p-9dccba17.js.map → p-cac3a53e.js.map} +1 -1
  368. package/dist/components/{p-1462b0ac.js → p-e961f0da.js} +3 -3
  369. package/dist/components/{p-1462b0ac.js.map → p-e961f0da.js.map} +1 -1
  370. package/dist/components/{p-3d9ce94f.js → p-f07fda42.js} +12 -5
  371. package/dist/components/p-f07fda42.js.map +1 -0
  372. package/dist/components/stzh-accordion-item.js +1 -1
  373. package/dist/components/stzh-accordion.js +1 -1
  374. package/dist/components/stzh-actions.js +1 -1
  375. package/dist/components/stzh-actionset.js +1 -1
  376. package/dist/components/stzh-amount.js +5 -5
  377. package/dist/components/stzh-anchornav.js +4 -4
  378. package/dist/components/stzh-app-nav.js +1 -1
  379. package/dist/components/stzh-appointments.js +8 -8
  380. package/dist/components/stzh-archivelist.js +4 -4
  381. package/dist/components/stzh-audio.js +3 -3
  382. package/dist/components/stzh-badge.js +1 -1
  383. package/dist/components/stzh-banner.js +4 -4
  384. package/dist/components/stzh-banner.js.map +1 -1
  385. package/dist/components/stzh-bathstatus-item.js +1 -1
  386. package/dist/components/stzh-bathstatus-list.js +4 -4
  387. package/dist/components/stzh-button.js +1 -1
  388. package/dist/components/stzh-calendar.js +1 -1
  389. package/dist/components/stzh-card-searchresult.js +7 -7
  390. package/dist/components/stzh-card-superteaser.js +8 -8
  391. package/dist/components/stzh-card.js +1 -1
  392. package/dist/components/stzh-cardlist.js +1 -1
  393. package/dist/components/stzh-chip.js +1 -1
  394. package/dist/components/stzh-chipselect.js +1 -1
  395. package/dist/components/stzh-clamp.js +1 -1
  396. package/dist/components/stzh-contact-cv.js +1 -1
  397. package/dist/components/stzh-contact.js +5 -5
  398. package/dist/components/stzh-datalist-item.js +1 -1
  399. package/dist/components/stzh-datalist.js +1 -1
  400. package/dist/components/stzh-datamessagelist-item.js +6 -6
  401. package/dist/components/stzh-datatable.js +9 -9
  402. package/dist/components/stzh-datepicker.js +1 -1
  403. package/dist/components/stzh-daterange.js +2 -2
  404. package/dist/components/stzh-dialog.js +1 -1
  405. package/dist/components/stzh-disturber.js +3 -3
  406. package/dist/components/stzh-dropdown.js +1 -1
  407. package/dist/components/stzh-editor.js +3 -3
  408. package/dist/components/stzh-eventdata.js +1 -1
  409. package/dist/components/stzh-eventinfo.js +3 -3
  410. package/dist/components/stzh-feedreader-item.js +1 -1
  411. package/dist/components/stzh-feedreader.js +5 -5
  412. package/dist/components/stzh-footer.js +2 -2
  413. package/dist/components/stzh-gallery.js +2 -2
  414. package/dist/components/stzh-geo-ref-data.js +36 -28
  415. package/dist/components/stzh-geo-ref-data.js.map +1 -1
  416. package/dist/components/stzh-ghettobox.js +1 -1
  417. package/dist/components/stzh-header.js +1 -1
  418. package/dist/components/stzh-homepage-search.js +1 -1
  419. package/dist/components/stzh-homepage-service-highlights.js +4 -4
  420. package/dist/components/stzh-http-error.js +2 -2
  421. package/dist/components/stzh-iframe.js +1 -1
  422. package/dist/components/stzh-input.js +1 -1
  423. package/dist/components/stzh-link.js +1 -1
  424. package/dist/components/stzh-linklist.js +5 -5
  425. package/dist/components/stzh-menu-item.js +1 -1
  426. package/dist/components/stzh-message.js +1 -1
  427. package/dist/components/stzh-microsite-teaserlist.js +11 -11
  428. package/dist/components/stzh-monthyearpicker.js +1 -1
  429. package/dist/components/stzh-offline-indicator.js +4 -4
  430. package/dist/components/stzh-page-skiplinks.js +1 -1
  431. package/dist/components/stzh-pagebottom.js +5 -5
  432. package/dist/components/stzh-pagecontent.js +1 -1
  433. package/dist/components/stzh-pagetitle-hero.js +1 -1
  434. package/dist/components/stzh-pagetitle-home.js +1 -1
  435. package/dist/components/stzh-pagetitle.js +1 -1
  436. package/dist/components/stzh-pagination.js +1 -1
  437. package/dist/components/stzh-panorama.js +4 -4
  438. package/dist/components/stzh-pi-content-navigation.js +1 -1
  439. package/dist/components/stzh-pi-menu.js +2 -2
  440. package/dist/components/stzh-pi-menu.js.map +1 -1
  441. package/dist/components/stzh-pi-pagetitle.js +2 -2
  442. package/dist/components/stzh-pi-pagetitle.js.map +1 -1
  443. package/dist/components/stzh-pi-quote.js +1 -1
  444. package/dist/components/stzh-pi-teaser-layout-item.js +1 -1
  445. package/dist/components/stzh-pi-teaser-layout.js +1 -1
  446. package/dist/components/stzh-pi-teaser.js +1 -1
  447. package/dist/components/stzh-pkzh-qr.js +7 -7
  448. package/dist/components/stzh-poicard.js +1 -1
  449. package/dist/components/stzh-poilist.js +10 -10
  450. package/dist/components/stzh-print.js +1 -1
  451. package/dist/components/stzh-readspeaker.js +2 -2
  452. package/dist/components/stzh-saptcha.js +3 -3
  453. package/dist/components/stzh-search.js +10 -10
  454. package/dist/components/stzh-share.js +1 -1
  455. package/dist/components/stzh-sitemap.js +5 -5
  456. package/dist/components/stzh-socialmediastream-item.js +1 -1
  457. package/dist/components/stzh-socialmediastream.js +2 -2
  458. package/dist/components/stzh-tag.js +1 -1
  459. package/dist/components/stzh-textandimage.js +1 -1
  460. package/dist/components/stzh-timeline-item.js +1 -1
  461. package/dist/components/stzh-timepicker.js +1 -1
  462. package/dist/components/stzh-toast.js +1 -1
  463. package/dist/components/stzh-toastbar.js +1 -1
  464. package/dist/components/stzh-twocolumns.js +1 -1
  465. package/dist/components/stzh-upload.js +52 -17
  466. package/dist/components/stzh-upload.js.map +1 -1
  467. package/dist/components/stzh-vbz-intro.js +2 -2
  468. package/dist/components/stzh-vbz-linechip.js +1 -1
  469. package/dist/components/stzh-vbz-majorticker.js +3 -3
  470. package/dist/components/stzh-vbz-ticker.js +8 -5
  471. package/dist/components/stzh-vbz-ticker.js.map +1 -1
  472. package/dist/components/stzh-youtube.js +3 -3
  473. package/dist/esm/{app-globals-a962cea2.js → app-globals-a7ad59a2.js} +2 -2
  474. package/dist/esm/{app-globals-a962cea2.js.map → app-globals-a7ad59a2.js.map} +1 -1
  475. package/dist/esm/index.js.map +1 -1
  476. package/dist/esm/loader.js +2 -2
  477. package/dist/esm/stzh-accordion_3.entry.js +2 -2
  478. package/dist/esm/stzh-actions_6.entry.js +1 -1
  479. package/dist/esm/stzh-actionset.entry.js +5 -5
  480. package/dist/esm/stzh-amount.entry.js +1 -1
  481. package/dist/esm/stzh-anchornav.entry.js +1 -1
  482. package/dist/esm/stzh-app-nav.entry.js +1 -1
  483. package/dist/esm/stzh-appointments.entry.js +1 -1
  484. package/dist/esm/stzh-audio.entry.js +3 -3
  485. package/dist/esm/stzh-badge_3.entry.js +1 -1
  486. package/dist/esm/stzh-banner.entry.js +2 -2
  487. package/dist/esm/stzh-banner.entry.js.map +1 -1
  488. package/dist/esm/stzh-bathstatus-item.entry.js +1 -1
  489. package/dist/esm/stzh-bathstatus-list.entry.js +1 -1
  490. package/dist/esm/stzh-card-superteaser.entry.js +1 -1
  491. package/dist/esm/stzh-cardlist_3.entry.js +1 -1
  492. package/dist/esm/stzh-cardlist_3.entry.js.map +1 -1
  493. package/dist/esm/stzh-chipselect.entry.js +11 -6
  494. package/dist/esm/stzh-chipselect.entry.js.map +1 -1
  495. package/dist/esm/stzh-components.js +2 -2
  496. package/dist/esm/stzh-contact-cv.entry.js +1 -1
  497. package/dist/esm/stzh-contact.entry.js +1 -1
  498. package/dist/esm/stzh-disturber.entry.js +1 -1
  499. package/dist/esm/stzh-dropdown.entry.js +11 -4
  500. package/dist/esm/stzh-dropdown.entry.js.map +1 -1
  501. package/dist/esm/stzh-editor.entry.js +1 -1
  502. package/dist/esm/stzh-eventdata.entry.js +1 -1
  503. package/dist/esm/stzh-eventinfo.entry.js +1 -1
  504. package/dist/esm/stzh-feedreader-item.entry.js +1 -1
  505. package/dist/esm/stzh-feedreader.entry.js +1 -1
  506. package/dist/esm/stzh-geo-ref-data.entry.js +24 -16
  507. package/dist/esm/stzh-geo-ref-data.entry.js.map +1 -1
  508. package/dist/esm/stzh-ghettobox_3.entry.js +2 -2
  509. package/dist/esm/stzh-ghettobox_3.entry.js.map +1 -1
  510. package/dist/esm/stzh-homepage-search.entry.js +1 -1
  511. package/dist/esm/stzh-homepage-service-highlights.entry.js +2 -2
  512. package/dist/esm/stzh-linklist.entry.js +1 -1
  513. package/dist/esm/stzh-microsite-teaserlist.entry.js +1 -1
  514. package/dist/esm/stzh-page-skiplinks.entry.js +1 -1
  515. package/dist/esm/stzh-pagebottom.entry.js +1 -1
  516. package/dist/esm/stzh-pagecontent.entry.js +1 -1
  517. package/dist/esm/stzh-pagetitle-hero.entry.js +1 -1
  518. package/dist/esm/stzh-pagetitle-home.entry.js +1 -1
  519. package/dist/esm/stzh-pagetitle.entry.js +1 -1
  520. package/dist/esm/stzh-pi-content-navigation.entry.js +1 -1
  521. package/dist/esm/stzh-pi-menu.entry.js +2 -2
  522. package/dist/esm/stzh-pi-menu.entry.js.map +1 -1
  523. package/dist/esm/stzh-pi-pagetitle.entry.js +2 -2
  524. package/dist/esm/stzh-pi-pagetitle.entry.js.map +1 -1
  525. package/dist/esm/stzh-pi-quote.entry.js +1 -1
  526. package/dist/esm/stzh-pi-teaser-layout-item.entry.js +1 -1
  527. package/dist/esm/stzh-pi-teaser.entry.js +1 -1
  528. package/dist/esm/stzh-poicard.entry.js +1 -1
  529. package/dist/esm/stzh-poilist.entry.js +1 -1
  530. package/dist/esm/stzh-print_2.entry.js +1 -1
  531. package/dist/esm/stzh-search.entry.js +2 -2
  532. package/dist/esm/stzh-sitemap.entry.js +1 -1
  533. package/dist/esm/stzh-socialmediastream-item.entry.js +1 -1
  534. package/dist/esm/stzh-socialmediastream.entry.js +1 -1
  535. package/dist/esm/stzh-textandimage.entry.js +1 -1
  536. package/dist/esm/stzh-twocolumns.entry.js +1 -1
  537. package/dist/esm/stzh-upload.entry.js +45 -10
  538. package/dist/esm/stzh-upload.entry.js.map +1 -1
  539. package/dist/esm/stzh-vbz-linechip.entry.js +46 -4
  540. package/dist/esm/stzh-vbz-linechip.entry.js.map +1 -1
  541. package/dist/esm/stzh-vbz-ticker.entry.js +4 -2
  542. package/dist/esm/stzh-vbz-ticker.entry.js.map +1 -1
  543. package/dist/stzh-components/index.esm.js.map +1 -1
  544. package/dist/stzh-components/{p-50a81b5c.entry.js → p-0cf78c66.entry.js} +2 -2
  545. package/dist/stzh-components/{p-9b858b7e.entry.js → p-1047debc.entry.js} +2 -2
  546. package/dist/stzh-components/{p-d0e8b48e.entry.js → p-126e6d91.entry.js} +2 -2
  547. package/dist/stzh-components/{p-3064f4b9.entry.js → p-1724d14c.entry.js} +2 -2
  548. package/dist/stzh-components/{p-21c8ffbe.entry.js → p-1a926012.entry.js} +2 -2
  549. package/dist/stzh-components/{p-0585149c.entry.js → p-1b517ef0.entry.js} +2 -2
  550. package/dist/stzh-components/p-3677f45f.entry.js +2 -0
  551. package/dist/stzh-components/p-3677f45f.entry.js.map +1 -0
  552. package/dist/stzh-components/{p-2925f080.entry.js → p-37f3a254.entry.js} +2 -2
  553. package/dist/stzh-components/{p-6dd89068.entry.js → p-3e6c40f3.entry.js} +2 -2
  554. package/dist/stzh-components/{p-0585ce30.entry.js → p-40b71f43.entry.js} +2 -2
  555. package/dist/stzh-components/p-4248810c.entry.js +2 -0
  556. package/dist/stzh-components/p-4248810c.entry.js.map +1 -0
  557. package/dist/stzh-components/{p-b4743671.entry.js → p-49d1df6c.entry.js} +2 -2
  558. package/dist/stzh-components/{p-c58f66b7.entry.js → p-4c34707b.entry.js} +2 -2
  559. package/dist/stzh-components/{p-9dc09551.entry.js → p-4cc22e58.entry.js} +2 -2
  560. package/dist/stzh-components/p-53356df0.entry.js +2 -0
  561. package/dist/stzh-components/p-53356df0.entry.js.map +1 -0
  562. package/dist/stzh-components/{p-0c40b74a.entry.js → p-57350e0f.entry.js} +2 -2
  563. package/dist/stzh-components/{p-9868d9ae.entry.js → p-582dce2a.entry.js} +2 -2
  564. package/dist/stzh-components/{p-6e273ca9.entry.js → p-59f148b6.entry.js} +2 -2
  565. package/dist/stzh-components/{p-a06207b8.entry.js → p-5c6e3a8d.entry.js} +2 -2
  566. package/dist/stzh-components/p-64d9db0e.entry.js +2 -0
  567. package/dist/stzh-components/{p-08a557a9.entry.js.map → p-64d9db0e.entry.js.map} +1 -1
  568. package/dist/stzh-components/{p-f4a72255.entry.js → p-68eac8f8.entry.js} +2 -2
  569. package/dist/stzh-components/{p-71a0881e.entry.js → p-6caa57d2.entry.js} +2 -2
  570. package/dist/stzh-components/{p-51b68c35.entry.js → p-6f9d0b16.entry.js} +2 -2
  571. package/dist/stzh-components/{p-30190507.entry.js → p-75cb1777.entry.js} +5 -5
  572. package/dist/stzh-components/p-75cb1777.entry.js.map +1 -0
  573. package/dist/stzh-components/{p-53fbd93e.entry.js → p-7659680e.entry.js} +2 -2
  574. package/dist/stzh-components/{p-7c4475b1.entry.js → p-7a89cb17.entry.js} +2 -2
  575. package/dist/stzh-components/{p-a3227cea.entry.js → p-7cbdff42.entry.js} +2 -2
  576. package/dist/stzh-components/{p-8b77de57.entry.js → p-7cc03903.entry.js} +2 -2
  577. package/dist/stzh-components/{p-94c29a35.entry.js → p-7e2ccf70.entry.js} +2 -2
  578. package/dist/stzh-components/p-7e2ccf70.entry.js.map +1 -0
  579. package/dist/stzh-components/{p-c820956f.entry.js → p-80ad40e0.entry.js} +2 -2
  580. package/dist/stzh-components/{p-0d7b090a.entry.js → p-81223fd0.entry.js} +2 -2
  581. package/dist/stzh-components/{p-0504563f.entry.js → p-81cedb07.entry.js} +2 -2
  582. package/dist/stzh-components/{p-ff5abecf.entry.js → p-88771be4.entry.js} +2 -2
  583. package/dist/stzh-components/{p-51e9d435.entry.js → p-920fce3c.entry.js} +2 -2
  584. package/dist/stzh-components/{p-aca1cbd6.entry.js → p-93ec64d8.entry.js} +2 -2
  585. package/dist/stzh-components/{p-42ec2ee3.entry.js → p-a34af577.entry.js} +2 -2
  586. package/dist/stzh-components/p-a34af577.entry.js.map +1 -0
  587. package/dist/stzh-components/{p-54ba4496.entry.js → p-a406f00b.entry.js} +2 -2
  588. package/dist/stzh-components/{p-3a5acc86.entry.js → p-b0216e1c.entry.js} +2 -2
  589. package/dist/stzh-components/{p-e45aaf19.entry.js → p-b1f7a965.entry.js} +2 -2
  590. package/dist/stzh-components/{p-3a0112f4.entry.js → p-b2577810.entry.js} +2 -2
  591. package/dist/stzh-components/{p-d68f208f.js → p-b381bb3f.js} +2 -2
  592. package/dist/stzh-components/p-beb1274a.entry.js +2 -0
  593. package/dist/stzh-components/{p-24daddfd.entry.js.map → p-beb1274a.entry.js.map} +1 -1
  594. package/dist/stzh-components/{p-38570073.entry.js → p-beeb3c30.entry.js} +2 -2
  595. package/dist/stzh-components/{p-0edd3842.entry.js → p-c8319cd5.entry.js} +2 -2
  596. package/dist/stzh-components/{p-70805ea3.entry.js → p-c8d80b05.entry.js} +2 -2
  597. package/dist/stzh-components/{p-8de194c8.entry.js → p-ceb4aac5.entry.js} +2 -2
  598. package/dist/stzh-components/p-ceb4aac5.entry.js.map +1 -0
  599. package/dist/stzh-components/{p-15f3c6a1.entry.js → p-dbe28f96.entry.js} +2 -2
  600. package/dist/stzh-components/{p-3f4afd76.entry.js → p-de4b1f2b.entry.js} +2 -2
  601. package/dist/stzh-components/{p-13881ff2.entry.js → p-de8c2229.entry.js} +2 -2
  602. package/dist/stzh-components/{p-ee9f0975.entry.js → p-def94196.entry.js} +2 -2
  603. package/dist/stzh-components/p-def94196.entry.js.map +1 -0
  604. package/dist/stzh-components/p-e437fcf8.entry.js +2 -0
  605. package/dist/stzh-components/p-e437fcf8.entry.js.map +1 -0
  606. package/dist/stzh-components/{p-b1695c60.entry.js → p-e55ed246.entry.js} +2 -2
  607. package/dist/stzh-components/{p-9c552bd1.entry.js → p-f06def5a.entry.js} +2 -2
  608. package/dist/stzh-components/{p-380d1021.entry.js → p-f4a3b35e.entry.js} +2 -2
  609. package/dist/stzh-components/{p-380d1021.entry.js.map → p-f4a3b35e.entry.js.map} +1 -1
  610. package/dist/stzh-components/p-fe46e220.entry.js +2 -0
  611. package/dist/stzh-components/p-fe46e220.entry.js.map +1 -0
  612. package/dist/stzh-components/stzh-components.esm.js +1 -1
  613. package/dist/stzh-components/stzh-components.esm.js.map +1 -1
  614. package/dist/types/components/CMS/VBZ/stzh-vbz-linechip/stzh-vbz-linechip.d.ts +10 -2
  615. package/dist/types/components/CMS/VBZ/stzh-vbz-ticker/stzh-vbz-ticker.d.ts +4 -2
  616. package/dist/types/components/CMS/stzh-geo-ref-data/stzh-geo-ref-data.d.ts +1 -0
  617. package/dist/types/components/{CMS/stzh-banner → stzh-banner}/stzh-banner.d.ts +2 -2
  618. package/dist/types/components/{CMS/stzh-banner → stzh-banner}/stzh-banner.localization.d.ts +1 -1
  619. package/dist/types/components.d.ts +28 -4
  620. package/dist/types/index.d.ts +22 -1
  621. package/dist/vscode-data.json +32 -0
  622. package/package.json +13 -24
  623. package/dist/collection/components/CMS/stzh-banner/stzh-banner.e2e.js.map +0 -1
  624. package/dist/collection/components/CMS/stzh-banner/stzh-banner.js.map +0 -1
  625. package/dist/collection/components/CMS/stzh-banner/stzh-banner.localization.js.map +0 -1
  626. package/dist/components/p-0b630cac.js.map +0 -1
  627. package/dist/components/p-2d2bf07d.js.map +0 -1
  628. package/dist/components/p-3d9ce94f.js.map +0 -1
  629. package/dist/components/p-c8267c9e.js.map +0 -1
  630. package/dist/stzh-components/p-08a557a9.entry.js +0 -2
  631. package/dist/stzh-components/p-24daddfd.entry.js +0 -2
  632. package/dist/stzh-components/p-30190507.entry.js.map +0 -1
  633. package/dist/stzh-components/p-357ce1c2.entry.js +0 -2
  634. package/dist/stzh-components/p-357ce1c2.entry.js.map +0 -1
  635. package/dist/stzh-components/p-42ec2ee3.entry.js.map +0 -1
  636. package/dist/stzh-components/p-520572a4.entry.js +0 -2
  637. package/dist/stzh-components/p-520572a4.entry.js.map +0 -1
  638. package/dist/stzh-components/p-7157b3d2.entry.js +0 -2
  639. package/dist/stzh-components/p-7157b3d2.entry.js.map +0 -1
  640. package/dist/stzh-components/p-7254baa2.entry.js +0 -2
  641. package/dist/stzh-components/p-7254baa2.entry.js.map +0 -1
  642. package/dist/stzh-components/p-846c28e5.entry.js +0 -2
  643. package/dist/stzh-components/p-846c28e5.entry.js.map +0 -1
  644. package/dist/stzh-components/p-8de194c8.entry.js.map +0 -1
  645. package/dist/stzh-components/p-94c29a35.entry.js.map +0 -1
  646. package/dist/stzh-components/p-ee9f0975.entry.js.map +0 -1
  647. /package/dist/collection/components/{CMS/stzh-banner → stzh-banner}/stzh-banner.localization.js +0 -0
  648. /package/dist/stzh-components/{p-50a81b5c.entry.js.map → p-0cf78c66.entry.js.map} +0 -0
  649. /package/dist/stzh-components/{p-9b858b7e.entry.js.map → p-1047debc.entry.js.map} +0 -0
  650. /package/dist/stzh-components/{p-d0e8b48e.entry.js.map → p-126e6d91.entry.js.map} +0 -0
  651. /package/dist/stzh-components/{p-3064f4b9.entry.js.map → p-1724d14c.entry.js.map} +0 -0
  652. /package/dist/stzh-components/{p-21c8ffbe.entry.js.map → p-1a926012.entry.js.map} +0 -0
  653. /package/dist/stzh-components/{p-0585149c.entry.js.map → p-1b517ef0.entry.js.map} +0 -0
  654. /package/dist/stzh-components/{p-2925f080.entry.js.map → p-37f3a254.entry.js.map} +0 -0
  655. /package/dist/stzh-components/{p-6dd89068.entry.js.map → p-3e6c40f3.entry.js.map} +0 -0
  656. /package/dist/stzh-components/{p-0585ce30.entry.js.map → p-40b71f43.entry.js.map} +0 -0
  657. /package/dist/stzh-components/{p-b4743671.entry.js.map → p-49d1df6c.entry.js.map} +0 -0
  658. /package/dist/stzh-components/{p-c58f66b7.entry.js.map → p-4c34707b.entry.js.map} +0 -0
  659. /package/dist/stzh-components/{p-9dc09551.entry.js.map → p-4cc22e58.entry.js.map} +0 -0
  660. /package/dist/stzh-components/{p-0c40b74a.entry.js.map → p-57350e0f.entry.js.map} +0 -0
  661. /package/dist/stzh-components/{p-9868d9ae.entry.js.map → p-582dce2a.entry.js.map} +0 -0
  662. /package/dist/stzh-components/{p-6e273ca9.entry.js.map → p-59f148b6.entry.js.map} +0 -0
  663. /package/dist/stzh-components/{p-a06207b8.entry.js.map → p-5c6e3a8d.entry.js.map} +0 -0
  664. /package/dist/stzh-components/{p-f4a72255.entry.js.map → p-68eac8f8.entry.js.map} +0 -0
  665. /package/dist/stzh-components/{p-71a0881e.entry.js.map → p-6caa57d2.entry.js.map} +0 -0
  666. /package/dist/stzh-components/{p-51b68c35.entry.js.map → p-6f9d0b16.entry.js.map} +0 -0
  667. /package/dist/stzh-components/{p-53fbd93e.entry.js.map → p-7659680e.entry.js.map} +0 -0
  668. /package/dist/stzh-components/{p-7c4475b1.entry.js.map → p-7a89cb17.entry.js.map} +0 -0
  669. /package/dist/stzh-components/{p-a3227cea.entry.js.map → p-7cbdff42.entry.js.map} +0 -0
  670. /package/dist/stzh-components/{p-8b77de57.entry.js.map → p-7cc03903.entry.js.map} +0 -0
  671. /package/dist/stzh-components/{p-c820956f.entry.js.map → p-80ad40e0.entry.js.map} +0 -0
  672. /package/dist/stzh-components/{p-0d7b090a.entry.js.map → p-81223fd0.entry.js.map} +0 -0
  673. /package/dist/stzh-components/{p-0504563f.entry.js.map → p-81cedb07.entry.js.map} +0 -0
  674. /package/dist/stzh-components/{p-ff5abecf.entry.js.map → p-88771be4.entry.js.map} +0 -0
  675. /package/dist/stzh-components/{p-51e9d435.entry.js.map → p-920fce3c.entry.js.map} +0 -0
  676. /package/dist/stzh-components/{p-aca1cbd6.entry.js.map → p-93ec64d8.entry.js.map} +0 -0
  677. /package/dist/stzh-components/{p-54ba4496.entry.js.map → p-a406f00b.entry.js.map} +0 -0
  678. /package/dist/stzh-components/{p-3a5acc86.entry.js.map → p-b0216e1c.entry.js.map} +0 -0
  679. /package/dist/stzh-components/{p-e45aaf19.entry.js.map → p-b1f7a965.entry.js.map} +0 -0
  680. /package/dist/stzh-components/{p-3a0112f4.entry.js.map → p-b2577810.entry.js.map} +0 -0
  681. /package/dist/stzh-components/{p-d68f208f.js.map → p-b381bb3f.js.map} +0 -0
  682. /package/dist/stzh-components/{p-38570073.entry.js.map → p-beeb3c30.entry.js.map} +0 -0
  683. /package/dist/stzh-components/{p-0edd3842.entry.js.map → p-c8319cd5.entry.js.map} +0 -0
  684. /package/dist/stzh-components/{p-70805ea3.entry.js.map → p-c8d80b05.entry.js.map} +0 -0
  685. /package/dist/stzh-components/{p-15f3c6a1.entry.js.map → p-dbe28f96.entry.js.map} +0 -0
  686. /package/dist/stzh-components/{p-3f4afd76.entry.js.map → p-de4b1f2b.entry.js.map} +0 -0
  687. /package/dist/stzh-components/{p-13881ff2.entry.js.map → p-de8c2229.entry.js.map} +0 -0
  688. /package/dist/stzh-components/{p-b1695c60.entry.js.map → p-e55ed246.entry.js.map} +0 -0
  689. /package/dist/stzh-components/{p-9c552bd1.entry.js.map → p-f06def5a.entry.js.map} +0 -0
@@ -1,9 +1,9 @@
1
1
  import { p as proxyCustomElement, H, h, d as Host } from './p-8f01554b.js';
2
2
  import { C as Cookie } from './p-979121a0.js';
3
- import { d as defineCustomElement$4 } from './p-b8fda153.js';
4
- import { d as defineCustomElement$3 } from './p-ec5e2f2a.js';
3
+ import { d as defineCustomElement$4 } from './p-6a1a040f.js';
4
+ import { d as defineCustomElement$3 } from './p-775cca3b.js';
5
5
  import { d as defineCustomElement$2 } from './p-60d4ef07.js';
6
- import { d as defineCustomElement$1 } from './p-258d7bde.js';
6
+ import { d as defineCustomElement$1 } from './p-9a88d047.js';
7
7
 
8
8
  const stzhToastbarCss = ":host{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;}:host[hidden],:host[stzh-hidden]{display:none}:host::selection{color:var(--stzh-selection-color);background-color:var(--stzh-selection-background-color)}:host *,:host *::before,:host *::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)}:host .has-focus{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.125rem}:host .stzh-fylingfocus-focused{outline-style:none !important}:host .stzh-fylingfocus-focused::-moz-focus-inner{border:0 !important}:host{bottom:var(--stzh-space-medium);z-index:var(--stzh-z-index-overlay);position:fixed;pointer-events:none;left:1.25rem;right:1.25rem;bottom:calc(var(--stzh-pagetitle-disturber-stuck-height, 0px) + var(--stzh-sticky-cta-stuck-bottom-height, 0px))}@media screen and (min-width: 600px){:host{bottom:var(--stzh-space-large)}}@media screen and (min-width: 900px){:host{bottom:var(--stzh-space-xlarge)}}@media screen and (min-width: 1260px){:host{bottom:var(--stzh-space-xxlarge)}}@media screen and (min-width: 600px){:host{left:2rem;right:auto;max-width:26.8125rem}}@media screen and (min-width: 900px){:host{left:2.5rem;max-width:27.5rem}}@media screen and (min-width: 1260px){:host{left:4rem;max-width:30.3125rem}}@media screen and (min-width: 1600px){:host{left:calc((100vw - 84.25rem - var(--stzh-scrollbar-width, 0px)) / 2);max-width:34.625rem}}:host ::slotted(*:not([hidden]):not([slot])){margin-bottom:var(--stzh-space-small)}.stzh-toastbar{display:flex;flex-direction:column;justify-content:flex-end}@media screen and (min-width: 600px){.stzh-toastbar{align-items:flex-start}}";
9
9
  const StzhToastbarStyle0 = stzhToastbarCss;
@@ -187,4 +187,4 @@ function defineCustomElement() {
187
187
 
188
188
  export { StzhToastbar as S, defineCustomElement as d };
189
189
 
190
- //# sourceMappingURL=p-cb0898ca.js.map
190
+ //# sourceMappingURL=p-139d2041.js.map
@@ -1 +1 @@
1
- {"file":"p-cb0898ca.js","mappings":";;;;;;;AAAA,MAAM,eAAe,GAAG,28DAA28D,CAAC;AACp+D,2BAAe,eAAe;;ACK9B,MAAM,iBAAiB,GAAG,iCAAiC,CAAC;MAU/C,YAAY;;;;;QAuBf,mBAAc,GAA+B,EAAE,CAAC;QA0FhD,qBAAgB,GAAG;YACzB,IAAI,CAAC,cAAc,EAAE,CAAC;YACtB,IAAI,CAAC,oBAAoB,EAAE,CAAC;SAC7B,CAAC;yBA/G0B,EAAE;mBAMR,CAAC;6BAWsC,EAAE;;;IAO/D,MAAM,KAAK,CACT,KAAa,EACb,EAAE,IAAI,EAAE,IAAI,KAA6D,EAAE,IAAI,EAAE,MAAM,EAAE;QAEzF,MAAM,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC;QACnD,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC;QACpB,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC;QACpB,KAAK,CAAC,IAAI,GAAG,OAAO,CAAC;QACrB,KAAK,CAAC,IAAI,GAAG,IAAI,IAAI,MAAM,CAAC;QAC5B,KAAK,CAAC,oBAAoB,GAAG,IAAI,CAAC;QAElC,IAAI,IAAI,EAAE;YACR,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC;YACnB,IAAI,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ACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["HTMLElement"],"sources":["src/components/stzh-toastbar/stzh-toastbar.scss?tag=stzh-toastbar&encapsulation=shadow","src/components/stzh-toastbar/stzh-toastbar.tsx"],"sourcesContent":[":host {\n @include spaceCurve(\"bottom\", \"regular\");\n z-index: $zIndexOverlay;\n position: fixed;\n pointer-events: none;\n left: $containerMargin;\n right: $containerMargin;\n bottom: calc(\n var(--stzh-pagetitle-disturber-stuck-height, 0px) +\n var(--stzh-sticky-cta-stuck-bottom-height, 0px)\n );\n\n @include mq($from: small) {\n left: $containerMarginSmall;\n right: auto;\n max-width: 429px;\n }\n\n @include mq($from: medium) {\n left: $containerMarginMedium;\n max-width: 440px;\n }\n\n @include mq($from: large) {\n left: $containerMarginLarge;\n max-width: 485px;\n }\n\n @include mq($from: ultra) {\n left: calc(\n (100vw - #{$containerMaxWidth} - var(--stzh-scrollbar-width, 0px)) / 2\n );\n max-width: 554px;\n }\n\n ::slotted(*:not([hidden]):not([slot])) {\n margin-bottom: space(\"small\");\n }\n}\n\n.stzh-toastbar {\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n\n @include mq($from: small) {\n align-items: flex-start;\n }\n}\n","import { Component, Host, h, Element, Prop, Method, Watch } from \"@stencil/core\";\n\nimport { StzhToastbarInitialToast, StzhToastType } from \"../../index\";\n\nimport Cookie from \"js-cookie\";\n\nconst KEY_PREFIX_CLOSED = \"stzh-components-toastbar-closed\";\n\n/**\n * @slot - Slot for stzh-toast elements\n */\n@Component({\n tag: \"stzh-toastbar\",\n styleUrl: \"stzh-toastbar.scss\",\n shadow: true,\n})\nexport class StzhToastbar {\n /**\n * Time after toasts are hidden (in seconds).\n * Toasts with type `error` will stay, until the user closes them manually.\n */\n @Prop() hideAfter: number = 30;\n\n /**\n * Maximum of toasts allowed to be shown.\n * If more are created, oldest will be hidden, even if timeout not ended yet or toast type is `error`.\n */\n @Prop() max: number = 5;\n\n /**\n * Initial toasts.\n *\n * Array of objects that at least includes `label` and optionally `type`, `link` (object with `href` and `label`) `cookie` and `cookieExpires`:\n * `[{\"label\": \"Lorem ipsum\", \"link\": { \"label\": \"More info\", \"href\": \"https://example.com\" }, \"cookie\": \"cookie-banner\", \"cookieExpires\": 365 }]`\n *\n * If `cookie` exists in an object, it will check for that cookie name first (prefixed with `stzh-components-toastbar-closed-`) and only show if cookie doesn't exist.\n * `cookieExpires` sets the cookie lifetime (default 365 days, set 0 for session cookie).\n */\n @Prop() initialToasts: StzhToastbarInitialToast[] | string = [];\n private _initialToasts: StzhToastbarInitialToast[] = [];\n\n @Element() element: HTMLStzhToastbarElement;\n\n /** Create new toast. */\n @Method()\n async toast(\n label: string,\n { type, link }: { type?: StzhToastType; link?: HTMLStzhButtonElement } = { type: \"info\" },\n ): Promise<HTMLStzhToastElement> {\n const toast = document.createElement(\"stzh-toast\");\n toast.hidden = true;\n toast.label = label;\n toast.role = \"alert\";\n toast.type = type || \"info\";\n toast.initialOpenAnimation = true;\n\n if (link) {\n link.slot = \"link\";\n link.size = \"small\";\n toast.appendChild(link);\n }\n\n this.element.appendChild(toast);\n\n return toast;\n }\n\n @Watch(\"initialToasts\")\n initialToastsWatcher(newValue: any[] | string) {\n if (typeof newValue === \"string\") {\n this._initialToasts = JSON.parse(newValue);\n } else {\n this._initialToasts = newValue;\n }\n }\n\n private toastAppended(toast: HTMLStzhToastElement) {\n if (toast.getAttribute(\"data-stzh-toastbar-managed\")) {\n return;\n }\n\n toast.setAttribute(\"data-stzh-toastbar-managed\", \"\");\n\n toast.addEventListener(\"stzhClosed\", () => {\n toast.remove();\n });\n\n if (toast.type !== \"error\") {\n let timeoutStarted = new Date().getTime();\n let restTime = this.hideAfter * 1000;\n let currentTimeout = window.setTimeout(() => {\n toast.hide();\n }, restTime);\n\n toast.addEventListener(\"pointerenter\", () => {\n if (currentTimeout) {\n window.clearTimeout(currentTimeout);\n const timePassed = new Date().getTime() - timeoutStarted;\n restTime = restTime - timePassed;\n }\n });\n\n toast.addEventListener(\"pointerleave\", () => {\n timeoutStarted = new Date().getTime();\n currentTimeout = window.setTimeout(() => {\n toast.hide();\n }, restTime);\n });\n }\n }\n\n private toastsAppended() {\n const host = (this.element.getRootNode() as ShadowRoot)?.host || this.element;\n Array.from(host.children).forEach((toast: HTMLStzhToastElement) => {\n this.toastAppended(toast);\n });\n }\n\n private hideOverflowingItems() {\n const host = (this.element.getRootNode() as ShadowRoot)?.host || this.element;\n const childCount = host.children.length;\n\n Array.from(host.children)\n .splice(0, childCount - this.max)\n .forEach((toast: HTMLStzhToastElement) => {\n toast.hide();\n });\n }\n\n private handleSlotchange = () => {\n this.toastsAppended();\n this.hideOverflowingItems();\n };\n\n componentWillLoad() {\n this.initialToastsWatcher(this.initialToasts);\n }\n\n componentDidLoad() {\n this._initialToasts.forEach(async data => {\n if (data.cookie) {\n const alreadyClosedBefore = Cookie.get(`${KEY_PREFIX_CLOSED}-${data.cookie}`);\n\n if (alreadyClosedBefore) {\n return;\n }\n }\n\n let link = data.link;\n\n if (!(link instanceof HTMLElement)) {\n const generatedLink = document.createElement(\"stzh-button\");\n generatedLink.slot = \"link\";\n generatedLink.size = \"small\";\n\n Object.assign(generatedLink, data.link);\n link = generatedLink;\n }\n\n const toast = await this.toast(data.label, {\n type: data.type,\n link: link as HTMLStzhButtonElement,\n });\n\n if (data.cookie) {\n let cookieExpires = 365;\n\n if (data.cookieExpires === 0) {\n cookieExpires = null;\n } else if (data.cookieExpires) {\n cookieExpires = data.cookieExpires;\n }\n\n toast.addEventListener(\"stzhClosed\", () => {\n Cookie.set(`${KEY_PREFIX_CLOSED}-${data.cookie}`, \"1\", {\n expires: cookieExpires,\n });\n });\n }\n });\n }\n\n render() {\n const classes = {\n \"stzh-toastbar\": true,\n };\n\n return (\n <Host>\n <div class={classes}>\n <slot onSlotchange={this.handleSlotchange}></slot>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"p-139d2041.js","mappings":";;;;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C,IAAI,CAAC,KAAK,EAAE;gBACzC,IAAI,EAAE,IAAI,CAAC,IAAI;gBACf,IAAI,EAAE,IAA6B;aACpC,CAAC,CAAC;YAEH,IAAI,IAAI,CAAC,MAAM,EAAE;gBACf,IAAI,aAAa,GAAG,GAAG,CAAC;gBAExB,IAAI,IAAI,CAAC,aAAa,KAAK,CAAC,EAAE;oBAC5B,aAAa,GAAG,IAAI,CAAC;iBACtB;qBAAM,IAAI,IAAI,CAAC,aAAa,EAAE;oBAC7B,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC;iBACpC;gBAED,KAAK,CAAC,gBAAgB,CAAC,YAAY,EAAE;oBACnC,MAAM,CAAC,GAAG,CAAC,GAAG,iBAAiB,IAAI,IAAI,CAAC,MAAM,EAAE,EAAE,GAAG,EAAE;wBACrD,OAAO,EAAE,aAAa;qBACvB,CAAC,CAAC;iBACJ,CAAC,CAAC;aACJ;SACF,CAAC,CAAC;KACJ;IAED,MAAM;QACJ,MAAM,OAAO,GAAG;YACd,eAAe,EAAE,IAAI;SACtB,CAAC;QAEF,QACE,EAAC,IAAI,uDACH,4DAAK,KAAK,EAAE,OAAO,IACjB,6DAAM,YAAY,EAAE,IAAI,CAAC,gBAAgB,GAAS,CAC9C,CACD,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["HTMLElement"],"sources":["src/components/stzh-toastbar/stzh-toastbar.scss?tag=stzh-toastbar&encapsulation=shadow","src/components/stzh-toastbar/stzh-toastbar.tsx"],"sourcesContent":[":host {\n @include spaceCurve(\"bottom\", \"regular\");\n z-index: $zIndexOverlay;\n position: fixed;\n pointer-events: none;\n left: $containerMargin;\n right: $containerMargin;\n bottom: calc(\n var(--stzh-pagetitle-disturber-stuck-height, 0px) +\n var(--stzh-sticky-cta-stuck-bottom-height, 0px)\n );\n\n @include mq($from: small) {\n left: $containerMarginSmall;\n right: auto;\n max-width: 429px;\n }\n\n @include mq($from: medium) {\n left: $containerMarginMedium;\n max-width: 440px;\n }\n\n @include mq($from: large) {\n left: $containerMarginLarge;\n max-width: 485px;\n }\n\n @include mq($from: ultra) {\n left: calc(\n (100vw - #{$containerMaxWidth} - var(--stzh-scrollbar-width, 0px)) / 2\n );\n max-width: 554px;\n }\n\n ::slotted(*:not([hidden]):not([slot])) {\n margin-bottom: space(\"small\");\n }\n}\n\n.stzh-toastbar {\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n\n @include mq($from: small) {\n align-items: flex-start;\n }\n}\n","import { Component, Host, h, Element, Prop, Method, Watch } from \"@stencil/core\";\n\nimport { StzhToastbarInitialToast, StzhToastType } from \"../../index\";\n\nimport Cookie from \"js-cookie\";\n\nconst KEY_PREFIX_CLOSED = \"stzh-components-toastbar-closed\";\n\n/**\n * @slot - Slot for stzh-toast elements\n */\n@Component({\n tag: \"stzh-toastbar\",\n styleUrl: \"stzh-toastbar.scss\",\n shadow: true,\n})\nexport class StzhToastbar {\n /**\n * Time after toasts are hidden (in seconds).\n * Toasts with type `error` will stay, until the user closes them manually.\n */\n @Prop() hideAfter: number = 30;\n\n /**\n * Maximum of toasts allowed to be shown.\n * If more are created, oldest will be hidden, even if timeout not ended yet or toast type is `error`.\n */\n @Prop() max: number = 5;\n\n /**\n * Initial toasts.\n *\n * Array of objects that at least includes `label` and optionally `type`, `link` (object with `href` and `label`) `cookie` and `cookieExpires`:\n * `[{\"label\": \"Lorem ipsum\", \"link\": { \"label\": \"More info\", \"href\": \"https://example.com\" }, \"cookie\": \"cookie-banner\", \"cookieExpires\": 365 }]`\n *\n * If `cookie` exists in an object, it will check for that cookie name first (prefixed with `stzh-components-toastbar-closed-`) and only show if cookie doesn't exist.\n * `cookieExpires` sets the cookie lifetime (default 365 days, set 0 for session cookie).\n */\n @Prop() initialToasts: StzhToastbarInitialToast[] | string = [];\n private _initialToasts: StzhToastbarInitialToast[] = [];\n\n @Element() element: HTMLStzhToastbarElement;\n\n /** Create new toast. */\n @Method()\n async toast(\n label: string,\n { type, link }: { type?: StzhToastType; link?: HTMLStzhButtonElement } = { type: \"info\" },\n ): Promise<HTMLStzhToastElement> {\n const toast = document.createElement(\"stzh-toast\");\n toast.hidden = true;\n toast.label = label;\n toast.role = \"alert\";\n toast.type = type || \"info\";\n toast.initialOpenAnimation = true;\n\n if (link) {\n link.slot = \"link\";\n link.size = \"small\";\n toast.appendChild(link);\n }\n\n this.element.appendChild(toast);\n\n return toast;\n }\n\n @Watch(\"initialToasts\")\n initialToastsWatcher(newValue: any[] | string) {\n if (typeof newValue === \"string\") {\n this._initialToasts = JSON.parse(newValue);\n } else {\n this._initialToasts = newValue;\n }\n }\n\n private toastAppended(toast: HTMLStzhToastElement) {\n if (toast.getAttribute(\"data-stzh-toastbar-managed\")) {\n return;\n }\n\n toast.setAttribute(\"data-stzh-toastbar-managed\", \"\");\n\n toast.addEventListener(\"stzhClosed\", () => {\n toast.remove();\n });\n\n if (toast.type !== \"error\") {\n let timeoutStarted = new Date().getTime();\n let restTime = this.hideAfter * 1000;\n let currentTimeout = window.setTimeout(() => {\n toast.hide();\n }, restTime);\n\n toast.addEventListener(\"pointerenter\", () => {\n if (currentTimeout) {\n window.clearTimeout(currentTimeout);\n const timePassed = new Date().getTime() - timeoutStarted;\n restTime = restTime - timePassed;\n }\n });\n\n toast.addEventListener(\"pointerleave\", () => {\n timeoutStarted = new Date().getTime();\n currentTimeout = window.setTimeout(() => {\n toast.hide();\n }, restTime);\n });\n }\n }\n\n private toastsAppended() {\n const host = (this.element.getRootNode() as ShadowRoot)?.host || this.element;\n Array.from(host.children).forEach((toast: HTMLStzhToastElement) => {\n this.toastAppended(toast);\n });\n }\n\n private hideOverflowingItems() {\n const host = (this.element.getRootNode() as ShadowRoot)?.host || this.element;\n const childCount = host.children.length;\n\n Array.from(host.children)\n .splice(0, childCount - this.max)\n .forEach((toast: HTMLStzhToastElement) => {\n toast.hide();\n });\n }\n\n private handleSlotchange = () => {\n this.toastsAppended();\n this.hideOverflowingItems();\n };\n\n componentWillLoad() {\n this.initialToastsWatcher(this.initialToasts);\n }\n\n componentDidLoad() {\n this._initialToasts.forEach(async data => {\n if (data.cookie) {\n const alreadyClosedBefore = Cookie.get(`${KEY_PREFIX_CLOSED}-${data.cookie}`);\n\n if (alreadyClosedBefore) {\n return;\n }\n }\n\n let link = data.link;\n\n if (!(link instanceof HTMLElement)) {\n const generatedLink = document.createElement(\"stzh-button\");\n generatedLink.slot = \"link\";\n generatedLink.size = \"small\";\n\n Object.assign(generatedLink, data.link);\n link = generatedLink;\n }\n\n const toast = await this.toast(data.label, {\n type: data.type,\n link: link as HTMLStzhButtonElement,\n });\n\n if (data.cookie) {\n let cookieExpires = 365;\n\n if (data.cookieExpires === 0) {\n cookieExpires = null;\n } else if (data.cookieExpires) {\n cookieExpires = data.cookieExpires;\n }\n\n toast.addEventListener(\"stzhClosed\", () => {\n Cookie.set(`${KEY_PREFIX_CLOSED}-${data.cookie}`, \"1\", {\n expires: cookieExpires,\n });\n });\n }\n });\n }\n\n render() {\n const classes = {\n \"stzh-toastbar\": true,\n };\n\n return (\n <Host>\n <div class={classes}>\n <slot onSlotchange={this.handleSlotchange}></slot>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -1,7 +1,7 @@
1
1
  import { p as proxyCustomElement, H, h, d as Host } from './p-8f01554b.js';
2
2
  import { d as abbreviateText, e as getMeta } from './p-289f5de2.js';
3
- import { d as defineCustomElement$5 } from './p-b8fda153.js';
4
- import { d as defineCustomElement$4 } from './p-ec5e2f2a.js';
3
+ import { d as defineCustomElement$5 } from './p-6a1a040f.js';
4
+ import { d as defineCustomElement$4 } from './p-775cca3b.js';
5
5
  import { d as defineCustomElement$3 } from './p-60d4ef07.js';
6
6
  import { d as defineCustomElement$2 } from './p-519479b8.js';
7
7
  import { d as defineCustomElement$1 } from './p-ef7cf99a.js';
@@ -145,4 +145,4 @@ function defineCustomElement() {
145
145
 
146
146
  export { StzhShare as S, defineCustomElement as d };
147
147
 
148
- //# sourceMappingUR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stzh-share/stzh-share.scss?tag=stzh-share&encapsulation=scoped","src/components/stzh-share/stzh-share.tsx"],"sourcesContent":[":host {\n}\n\n.stzh-share {\n &__list {\n list-style: none;\n margin: 0;\n padding: 0;\n display: flex;\n }\n\n &__item {\n &:not(:last-child) {\n margin-right: space(\"xxsmall\");\n }\n }\n}\n","import { Component, Host, h, Element, Prop, Watch } from \"@stencil/core\";\n\nimport { ShareService } from \"../../index\";\nimport { StzhShareLocalizedText } from \"./stzh-share.localization\";\nimport { getMeta } from \"../../utils/utils\";\nimport { abbreviateText } from \"../../utils/string-utils\";\n\n// 280 - URL (always 24) = 256\nconst MAX_TWEET_LENGTH = 256;\n\n/**\n */\n@Component({\n tag: \"stzh-share\",\n styleUrl: \"stzh-share.scss\",\n scoped: true,\n})\nexport class StzhShare {\n /** Translation strings */\n @Prop() localization: StzhShareLocalizedText;\n\n /** URL of current site (uses full URL by default) */\n @Prop() url: string = window.location.href;\n\n /** Overwrite mail subject translation */\n @Prop() mailSubject: string;\n\n /** Overwrite mail body translation */\n @Prop() mailBody: string;\n\n /**\n * Array of enabled share buttons.\n * Possible services: `facebook` / `twitter` / `linkedin` / `xing` / `mail`\n */\n @Prop() services: ShareService[] | string = [\"mail\", \"facebook\", \"twitter\", \"linkedin\", \"xing\"];\n\n private _services: ShareService[] = [];\n\n @Watch(\"services\")\n servicesWatcher(newValue: ShareService[] | string) {\n if (typeof newValue === \"string\") {\n this._services = JSON.parse(newValue);\n } else {\n this._services = newValue;\n }\n }\n\n @Element() element: HTMLStzhShareElement;\n\n private openPopup = (url, event) => {\n event.preventDefault();\n window.open(url, \"_blank\", \"width=600,height=460\");\n };\n\n async componentWillLoad() {\n this.servicesWatcher(this.services);\n\n if (!this.localization) {\n this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, \"share\");\n }\n }\n\n render() {\n const classes = {\n \"stzh-share\": true,\n };\n\n const shareUrl = encodeURIComponent(this.url);\n const mailSubject = encodeURIComponent(this.mailSubject || this.localization.mailSubject);\n const mailBody = encodeURIComponent(\n (this.mailBody || this.localization.mailBody)?.replace(/\\{shareUrl\\}/gi, this.url),\n );\n\n const title = encodeURIComponent(document.title);\n const twitterTitle = encodeURIComponent(abbreviateText(title, MAX_TWEET_LENGTH));\n const description = encodeURIComponent(getMeta(\"description\"));\n\n const serviceData = {\n mail: {\n popup: false,\n blank: false,\n url: `mailto:?subject=${mailSubject}&body=${mailBody}`,\n text: this.localization.shareMail,\n icon: \"mail\",\n },\n facebook: {\n popup: true,\n blank: true,\n url: `https://www.facebook.com/sharer/sharer.php?u=${shareUrl}`,\n text: this.localization.shareFacebook,\n icon: \"facebook\",\n },\n twitter: {\n popup: true,\n blank: true,\n url: `https://twitter.com/intent/tweet?text=${twitterTitle}&url=${shareUrl}`,\n text: this.localization.shareTwitter,\n icon: \"twitter\",\n },\n linkedin: {\n popup: true,\n blank: true,\n url: `https://www.linkedin.com/shareArticle?mini=true&summary=${description}&title=${title}&url=${shareUrl}`,\n text: this.localization.shareLinkedin,\n icon: \"linkedin\",\n },\n xing: {\n popup: true,\n blank: true,\n url: `https://www.xing.com/spi/shares/new?url=${shareUrl}`,\n text: this.localization.shareXing,\n icon: \"xing\",\n },\n };\n\n return (\n <Host>\n <div class={classes}>\n <ul class=\"stzh-share__list\">\n {this._services.map(service => (\n <li class=\"stzh-share__item\">\n <stzh-tooltip content={serviceData[service].text} size=\"small\">\n <stzh-button\n class={`stzh-share__button is-${service}`}\n size=\"small\"\n variant=\"tertiary\"\n iconOnly={true}\n href={serviceData[service].url}\n rel={serviceData[service].blank ? \"nofollow noopener noreferrer\" : \"nofollow\"}\n target={serviceData[service].blank ? \"_blank\" : \"_self\"}\n onClick={serviceData[service].popup ? e => this.openPopup(serviceData[service].url, e) : null}\n analyticsId={serviceData[service].text}\n icon={serviceData[service].icon}\n ></stzh-button>\n </stzh-tooltip>\n </li>\n ))}\n </ul>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"p-17e8405b.js","mappings":";;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K,EAAE,IAAI;gBACX,GAAG,EAAE,2CAA2C,QAAQ,EAAE;gBAC1D,IAAI,EAAE,IAAI,CAAC,YAAY,CAAC,SAAS;gBACjC,IAAI,EAAE,MAAM;aACb;SACF,CAAC;QAEF,QACE,EAAC,IAAI,uDACH,4DAAK,KAAK,EAAE,OAAO,IACjB,2DAAI,KAAK,EAAC,kBAAkB,IACzB,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,OAAO,KACzB,UAAI,KAAK,EAAC,kBAAkB,IAC1B,oBAAc,OAAO,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,IAAI,EAAC,OAAO,IAC5D,mBACE,KAAK,EAAE,yBAAyB,OAAO,EAAE,EACzC,IAAI,EAAC,OAAO,EACZ,OAAO,EAAC,UAAU,EAClB,QAAQ,EAAE,IAAI,EACd,IAAI,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC,GAAG,EAC9B,GAAG,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC,KAAK,GAAG,8BAA8B,GAAG,UAAU,EAC7E,MAAM,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC,KAAK,GAAG,QAAQ,GAAG,OAAO,EACvD,OAAO,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC,KAAK,GAAG,CAAC,IAAI,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,GAAG,IAAI,EAC7F,WAAW,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC,IAAI,EACtC,IAAI,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC,IAAI,GAClB,CACF,CACZ,CACN,CAAC,CACC,CACD,CACD,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/stzh-share/stzh-share.scss?tag=stzh-share&encapsulation=scoped","src/components/stzh-share/stzh-share.tsx"],"sourcesContent":[":host {\n}\n\n.stzh-share {\n &__list {\n list-style: none;\n margin: 0;\n padding: 0;\n display: flex;\n }\n\n &__item {\n &:not(:last-child) {\n margin-right: space(\"xxsmall\");\n }\n }\n}\n","import { Component, Host, h, Element, Prop, Watch } from \"@stencil/core\";\n\nimport { ShareService } from \"../../index\";\nimport { StzhShareLocalizedText } from \"./stzh-share.localization\";\nimport { getMeta } from \"../../utils/utils\";\nimport { abbreviateText } from \"../../utils/string-utils\";\n\n// 280 - URL (always 24) = 256\nconst MAX_TWEET_LENGTH = 256;\n\n/**\n */\n@Component({\n tag: \"stzh-share\",\n styleUrl: \"stzh-share.scss\",\n scoped: true,\n})\nexport class StzhShare {\n /** Translation strings */\n @Prop() localization: StzhShareLocalizedText;\n\n /** URL of current site (uses full URL by default) */\n @Prop() url: string = window.location.href;\n\n /** Overwrite mail subject translation */\n @Prop() mailSubject: string;\n\n /** Overwrite mail body translation */\n @Prop() mailBody: string;\n\n /**\n * Array of enabled share buttons.\n * Possible services: `facebook` / `twitter` / `linkedin` / `xing` / `mail`\n */\n @Prop() services: ShareService[] | string = [\"mail\", \"facebook\", \"twitter\", \"linkedin\", \"xing\"];\n\n private _services: ShareService[] = [];\n\n @Watch(\"services\")\n servicesWatcher(newValue: ShareService[] | string) {\n if (typeof newValue === \"string\") {\n this._services = JSON.parse(newValue);\n } else {\n this._services = newValue;\n }\n }\n\n @Element() element: HTMLStzhShareElement;\n\n private openPopup = (url, event) => {\n event.preventDefault();\n window.open(url, \"_blank\", \"width=600,height=460\");\n };\n\n async componentWillLoad() {\n this.servicesWatcher(this.services);\n\n if (!this.localization) {\n this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, \"share\");\n }\n }\n\n render() {\n const classes = {\n \"stzh-share\": true,\n };\n\n const shareUrl = encodeURIComponent(this.url);\n const mailSubject = encodeURIComponent(this.mailSubject || this.localization.mailSubject);\n const mailBody = encodeURIComponent(\n (this.mailBody || this.localization.mailBody)?.replace(/\\{shareUrl\\}/gi, this.url),\n );\n\n const title = encodeURIComponent(document.title);\n const twitterTitle = encodeURIComponent(abbreviateText(title, MAX_TWEET_LENGTH));\n const description = encodeURIComponent(getMeta(\"description\"));\n\n const serviceData = {\n mail: {\n popup: false,\n blank: false,\n url: `mailto:?subject=${mailSubject}&body=${mailBody}`,\n text: this.localization.shareMail,\n icon: \"mail\",\n },\n facebook: {\n popup: true,\n blank: true,\n url: `https://www.facebook.com/sharer/sharer.php?u=${shareUrl}`,\n text: this.localization.shareFacebook,\n icon: \"facebook\",\n },\n twitter: {\n popup: true,\n blank: true,\n url: `https://twitter.com/intent/tweet?text=${twitterTitle}&url=${shareUrl}`,\n text: this.localization.shareTwitter,\n icon: \"twitter\",\n },\n linkedin: {\n popup: true,\n blank: true,\n url: `https://www.linkedin.com/shareArticle?mini=true&summary=${description}&title=${title}&url=${shareUrl}`,\n text: this.localization.shareLinkedin,\n icon: \"linkedin\",\n },\n xing: {\n popup: true,\n blank: true,\n url: `https://www.xing.com/spi/shares/new?url=${shareUrl}`,\n text: this.localization.shareXing,\n icon: \"xing\",\n },\n };\n\n return (\n <Host>\n <div class={classes}>\n <ul class=\"stzh-share__list\">\n {this._services.map(service => (\n <li class=\"stzh-share__item\">\n <stzh-tooltip content={serviceData[service].text} size=\"small\">\n <stzh-button\n class={`stzh-share__button is-${service}`}\n size=\"small\"\n variant=\"tertiary\"\n iconOnly={true}\n href={serviceData[service].url}\n rel={serviceData[service].blank ? \"nofollow noopener noreferrer\" : \"nofollow\"}\n target={serviceData[service].blank ? \"_blank\" : \"_self\"}\n onClick={serviceData[service].popup ? e => this.openPopup(serviceData[service].url, e) : null}\n analyticsId={serviceData[service].text}\n icon={serviceData[service].icon}\n ></stzh-button>\n </stzh-tooltip>\n </li>\n ))}\n </ul>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -1,8 +1,8 @@
1
1
  import { p as proxyCustomElement, H, c as createEvent, h, d as Host } from './p-8f01554b.js';
2
- import { d as defineCustomElement$4 } from './p-b8fda153.js';
3
- import { d as defineCustomElement$3 } from './p-51253a86.js';
2
+ import { d as defineCustomElement$4 } from './p-6a1a040f.js';
3
+ import { d as defineCustomElement$3 } from './p-a94140df.js';
4
4
  import { d as defineCustomElement$2 } from './p-60d4ef07.js';
5
- import { d as defineCustomElement$1 } from './p-2d80d228.js';
5
+ import { d as defineCustomElement$1 } from './p-31108932.js';
6
6
 
7
7
  const stzhChipCss = ".sc-stzh-chip-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-chip-h,[stzh-hidden].sc-stzh-chip-h{display:none}.sc-stzh-chip-h::selection{color:var(--stzh-selection-color);background-color:var(--stzh-selection-background-color)}.sc-stzh-chip-h *.sc-stzh-chip,.sc-stzh-chip-h *.sc-stzh-chip::before,.sc-stzh-chip-h *.sc-stzh-chip::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-chip-h .has-focus.sc-stzh-chip{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.125rem}.sc-stzh-chip-h .stzh-fylingfocus-focused.sc-stzh-chip{outline-style:none !important}.sc-stzh-chip-h .stzh-fylingfocus-focused.sc-stzh-chip::-moz-focus-inner{border:0 !important}.sc-stzh-chip-h{--font-size:var(--stzh-font-micro-font-size);--line-height:var(--stzh-font-micro-text-line-height);--letter-spacing:normal;--height:2rem;--outer-height:2.5rem;--padding-top:0;--padding-bottom:0;--padding-left:var(--stzh-space-small);--padding-right:var(--stzh-space-small);--border-radius:1rem;--color:var(--stzh-chip-color, var(--stzh-color-primary70));--remove-color:var(--color);--remove-border-radius:1.5rem;--background-color:var(--stzh-chip-background-color, var(--stzh-color-secondary30));--icon-size:var(--stzh-icon-size-xsmall);--icon-color:var(--color);--icon-gap:var(--stzh-space-xsmall);--counter-color:var(--color);--counter-gap:var(--stzh-space-xsmall);--hover-color:var(--stzh-chip-hover-color, var(--stzh-color-primary70));--hover-background-color:var(\n --stzh-chip-hover-background-color,\n var(--stzh-color-secondary40)\n );--hover-remove-color:var(--hover-color);--hover-remove-background-color:var(--stzh-color-primary30);--hover-icon-color:var(--hover-color);--hover-counter-color:var(--hover-color);display:inline-flex}@media screen and (min-width: 900px){.sc-stzh-chip-h{--outer-height:auto}}@media (forced-colors: active), (-ms-high-contrast: active){.sc-stzh-chip-h{--hover-color:Highlight;--hover-background-color:Canvas;--hover-remove-background-color:Canvas}}[variant=input].sc-stzh-chip-h{--background-color:var(--stzh-color-primary10);--hover-color:var(--stzh-color-primary90);--hover-background-color:var(--stzh-color-primary20)}[variant=tag].sc-stzh-chip-h{--color:var(--stzh-color-grey90);--background-color:var(--stzh-color-grey20);--hover-color:var(--stzh-color-grey90);--hover-background-color:var(--stzh-color-grey20)}[variant=input].sc-stzh-chip-h:where([size=small]){--icon-gap:var(--stzh-space-xxsmall)}[variant=tag].sc-stzh-chip-h:where([size=small]){--padding-left:var(--stzh-space-xsmall);--padding-right:var(--stzh-space-xsmall);--icon-gap:var(--stzh-space-xxsmall)}[variant=tag].sc-stzh-chip-h:where([type=warning]){--color:var(--stzh-color-warning90);--hover-color:var(--stzh-color-warning90)}[variant=tag].sc-stzh-chip-h:where([type=error]){--color:var(--stzh-color-error70);--hover-color:var(--stzh-color-error70)}[variant=tag].sc-stzh-chip-h:where([type=success]){--color:var(--stzh-color-success70);--hover-color:var(--stzh-color-success70)}[variant=tag].sc-stzh-chip-h:where([inverted]:not([inverted=false])){--color:var(--stzh-color-white);--background-color:var(--stzh-color-grey90);--hover-color:var(--stzh-color-white);--hover-background-color:var(--stzh-color-grey90)}[variant=tag].sc-stzh-chip-h:where([type=warning][inverted]:not([inverted=false])){--color:var(--stzh-color-black);--background-color:var(--stzh-color-warning60);--hover-color:var(--stzh-color-black);--hover-background-color:var(--stzh-color-warning60)}[variant=tag].sc-stzh-chip-h:where([type=error][inverted]:not([inverted=false])){--background-color:var(--stzh-color-error70);--hover-background-color:var(--stzh-color-error70)}[variant=tag].sc-stzh-chip-h:where([type=success][inverted]:not([inverted=false])){--background-color:var(--stzh-color-success70);--hover-background-color:var(--stzh-color-success70)}[active].sc-stzh-chip-h:not([active=false]){--color:var(--stzh-chip-active-color, var(--stzh-color-white));--background-color:var(\n --stzh-chip-active-background-color,\n var(--stzh-color-primary70)\n );--hover-color:var(--stzh-chip-active-hover-color, var(--stzh-color-white));--hover-background-color:var(\n --stzh-chip-active-hover-background-color,\n var(--stzh-color-primary90)\n );--hover-remove-background-color:var(--stzh-color-primary90)}@media (forced-colors: active), (-ms-high-contrast: active){[active].sc-stzh-chip-h:not([active=false]){--color:Highlight;--background-color:Canvas;--hover-color:Highlight;--hover-background-color:Canvas;--hover-remove-background-color:Canvas}}[non-interactive].sc-stzh-chip-h:not([non-interactive=false]){--hover-color:var(--color);--hover-background-color:var(--background-color);--hover-remove-color:var(--remove-color);--hover-remove-background-color:transparent;--hover-icon-color:var(--icon-color);--hover-counter-color:var(--counter-color)}[disabled].sc-stzh-chip-h:not([disabled=false]){--color:var(--stzh-chip-disabled-color, var(--stzh-color-grey80));--background-color:var(\n --stzh-chip-disabled-background-color,\n var(--stzh-color-grey20)\n );--remove-color:var(--color);--icon-color:var(--color);--counter-color:var(--color);--hover-color:var(--color);--hover-background-color:var(--background-color);--hover-remove-color:var(--remove-color);--hover-remove-background-color:transparent;--hover-icon-color:var(--icon-color);--hover-counter-color:var(--counter-color)}[variant=input][disabled].sc-stzh-chip-h:not([disabled=false]){--background-color:var(--stzh-color-grey10)}.sc-stzh-chip-h:where([size=small]){--font-size:var(--stzh-font-nano-font-size);--line-height:var(--stzh-font-nano-text-line-height);--letter-spacing:normal;--height:1.5rem;--border-radius:0.75rem;--padding-left:var(--stzh-space-xsmall);--padding-right:var(--stzh-space-xsmall)}.sc-stzh-chip-h:where([size=large]){--height:2.5rem;--border-radius:1.25rem;--padding-left:var(--stzh-space-medium);--padding-right:var(--stzh-space-medium)}@media screen and (min-width: 600px){.sc-stzh-chip-h:where([size-small=default]){--font-size:var(--stzh-font-micro-font-size);--line-height:var(--stzh-font-micro-text-line-height);--letter-spacing:normal;--height:2rem;--outer-height:2.5rem;--padding-top:0;--padding-bottom:0;--padding-left:var(--stzh-space-small);--padding-right:var(--stzh-space-small);--border-radius:1rem}}@media screen and (min-width: 600px) and (min-width: 900px){.sc-stzh-chip-h:where([size-small=default]){--outer-height:auto}}@media screen and (min-width: 600px){.sc-stzh-chip-h:where([size-small=small]){--font-size:var(--stzh-font-nano-font-size);--line-height:var(--stzh-font-nano-text-line-height);--letter-spacing:normal;--height:1.5rem;--border-radius:0.75rem;--padding-left:var(--stzh-space-xsmall);--padding-right:var(--stzh-space-xsmall)}}@media screen and (min-width: 600px){.sc-stzh-chip-h:where([size-small=large]){--height:2.5rem;--border-radius:1.25rem;--padding-left:var(--stzh-space-medium);--padding-right:var(--stzh-space-medium)}}@media screen and (min-width: 900px){.sc-stzh-chip-h:where([size-medium=default]){--font-size:var(--stzh-font-micro-font-size);--line-height:var(--stzh-font-micro-text-line-height);--letter-spacing:normal;--height:2rem;--outer-height:2.5rem;--padding-top:0;--padding-bottom:0;--padding-left:var(--stzh-space-small);--padding-right:var(--stzh-space-small);--border-radius:1rem}}@media screen and (min-width: 900px) and (min-width: 900px){.sc-stzh-chip-h:where([size-medium=default]){--outer-height:auto}}@media screen and (min-width: 900px){.sc-stzh-chip-h:where([size-medium=small]){--font-size:var(--stzh-font-nano-font-size);--line-height:var(--stzh-font-nano-text-line-height);--letter-spacing:normal;--height:1.5rem;--border-radius:0.75rem;--padding-left:var(--stzh-space-xsmall);--padding-right:var(--stzh-space-xsmall)}}@media screen and (min-width: 900px){.sc-stzh-chip-h:where([size-medium=large]){--height:2.5rem;--border-radius:1.25rem;--padding-left:var(--stzh-space-medium);--padding-right:var(--stzh-space-medium)}}@media screen and (min-width: 1260px){.sc-stzh-chip-h:where([size-large=default]){--font-size:var(--stzh-font-micro-font-size);--line-height:var(--stzh-font-micro-text-line-height);--letter-spacing:normal;--height:2rem;--outer-height:2.5rem;--padding-top:0;--padding-bottom:0;--padding-left:var(--stzh-space-small);--padding-right:var(--stzh-space-small);--border-radius:1rem}}@media screen and (min-width: 1260px) and (min-width: 900px){.sc-stzh-chip-h:where([size-large=default]){--outer-height:auto}}@media screen and (min-width: 1260px){.sc-stzh-chip-h:where([size-large=small]){--font-size:var(--stzh-font-nano-font-size);--line-height:var(--stzh-font-nano-text-line-height);--letter-spacing:normal;--height:1.5rem;--border-radius:0.75rem;--padding-left:var(--stzh-space-xsmall);--padding-right:var(--stzh-space-xsmall)}}@media screen and (min-width: 1260px){.sc-stzh-chip-h:where([size-large=large]){--height:2.5rem;--border-radius:1.25rem;--padding-left:var(--stzh-space-medium);--padding-right:var(--stzh-space-medium)}}@media screen and (min-width: 1600px){.sc-stzh-chip-h:where([size-ultra=default]){--font-size:var(--stzh-font-micro-font-size);--line-height:var(--stzh-font-micro-text-line-height);--letter-spacing:normal;--height:2rem;--outer-height:2.5rem;--padding-top:0;--padding-bottom:0;--padding-left:var(--stzh-space-small);--padding-right:var(--stzh-space-small);--border-radius:1rem}}@media screen and (min-width: 1600px) and (min-width: 900px){.sc-stzh-chip-h:where([size-ultra=default]){--outer-height:auto}}@media screen and (min-width: 1600px){.sc-stzh-chip-h:where([size-ultra=small]){--font-size:var(--stzh-font-nano-font-size);--line-height:var(--stzh-font-nano-text-line-height);--letter-spacing:normal;--height:1.5rem;--border-radius:0.75rem;--padding-left:var(--stzh-space-xsmall);--padding-right:var(--stzh-space-xsmall)}}@media screen and (min-width: 1600px){.sc-stzh-chip-h:where([size-ultra=large]){--height:2.5rem;--border-radius:1.25rem;--padding-left:var(--stzh-space-medium);--padding-right:var(--stzh-space-medium)}}.stzh-chip.sc-stzh-chip{position:relative}.stzh-chip__vhidden.sc-stzh-chip{border:0;clip:rect(0 0 0 0);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-chip__button.sc-stzh-chip{font-size:var(--font-size);line-height:var(--line-height);letter-spacing:var(--letter-spacing);min-height:var(--outer-height);font-family:inherit;appearance:none;padding:0px;border:none;background-color:transparent}.stzh-chip__button.is-button.sc-stzh-chip,.stzh-chip__button.is-link.sc-stzh-chip{cursor:pointer}.stzh-chip__button-inner.sc-stzh-chip{height:var(--height);display:flex;flex-direction:row;align-items:center;border-radius:var(--border-radius);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);padding-left:var(--padding-left);padding-right:var(--padding-right);color:var(--color);background-color:var(--background-color);transition-duration:var(--stzh-base-transition-animation-speed);transition-property:color, background-color;-webkit-text-decoration-line:none;text-decoration-line:none}.stzh-chip__label.sc-stzh-chip{text-align:left}.stzh-chip__icon-wrapper.sc-stzh-chip{--stzh-icon-size:var(--icon-size);display:flex;color:var(--icon-color);transition:color var(--stzh-base-transition-animation-speed);flex-shrink:0}.stzh-chip__icon-wrapper.sc-stzh-chip:not(:empty){margin-right:var(--icon-gap)}.stzh-chip__counter.sc-stzh-chip{display:flex;font-variant-numeric:tabular-nums;margin-left:var(--counter-gap);color:var(--counter-color);transition:color var(--stzh-base-transition-animation-speed)}.stzh-chip__remove.sc-stzh-chip{position:absolute;top:50%;transform:translateY(-50%);right:0;appearance:none;font-family:inherit;border:none;background:none;padding:0;width:var(--height);height:var(--height);border-radius:var(--remove-border-radius);display:flex;justify-content:center;align-items:center;margin-left:var(--stzh-space-xxsmall);color:var(--remove-color);transition-duration:var(--stzh-base-transition-animation-speed);transition-property:color, background-color, border-color;cursor:pointer}.stzh-chip__remove.sc-stzh-chip:hover{color:var(--hover-remove-color);background-color:var(--hover-remove-background-color)}.stzh-chip__remove-icon.sc-stzh-chip{--size:var(--stzh-icon-size-xxsmall)}.stzh-chip__button.sc-stzh-chip:hover .stzh-chip__button-inner.sc-stzh-chip,.stzh-chip__remove.sc-stzh-chip:hover+.stzh-chip__button.sc-stzh-chip .stzh-chip__button-inner.sc-stzh-chip{color:var(--hover-color);background-color:var(--hover-background-color)}.stzh-chip__button.sc-stzh-chip:hover .stzh-chip__counter.sc-stzh-chip,.stzh-chip__remove.sc-stzh-chip:hover+.stzh-chip__button.sc-stzh-chip .stzh-chip__counter.sc-stzh-chip{color:var(--hover-counter-color)}.stzh-chip__button.sc-stzh-chip:hover .stzh-chip__icon-wrapper.sc-stzh-chip,.stzh-chip__remove.sc-stzh-chip:hover+.stzh-chip__button.sc-stzh-chip .stzh-chip__icon-wrapper.sc-stzh-chip{color:var(--hover-icon-color)}.stzh-chip--is-removable.sc-stzh-chip .stzh-chip__button-inner.sc-stzh-chip{padding-right:calc(var(--height) + var(--stzh-space-xxsmall))}.stzh-chip--is-disabled.sc-stzh-chip .stzh-chip__button.sc-stzh-chip,.stzh-chip--is-disabled.sc-stzh-chip .stzh-chip__remove.sc-stzh-chip{cursor:not-allowed}";
8
8
  const StzhChipStyle0 = stzhChipCss;
@@ -183,4 +183,4 @@ function defineCustomElement() {
183
183
 
184
184
  export { StzhChip as S, defineCustomElement as d };
185
185
 
186
- //# sourceMappingURL=p-db160bc1.js.map
186
+ //# sourceMappingURL=p-1c6e00e3.js.map
@@ -1 +1 @@
1
- {"file":"p-db160bc1.js","mappings":";;;;;;AAAA,MAAM,WAAW,GAAG,23aAA23a,CAAC;AACh5a,uBAAe,WAAW;;MCoBb,QAAQ;;;;;;;;QA8FX,mBAAc,GAAY,KAAK,CAAC;QA4ChC,gBAAW,GAAG;YACpB,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE;gBACxB,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;aACnB;YAED,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC;SAC7B,CAAC;QAEM,YAAO,GAAG,CAAC,KAAiB;YAClC,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC;YAE3B,MAAM,UAAU,G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EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/stzh-chip/stzh-chip.scss?tag=stzh-chip&encapsulation=scoped","src/components/stzh-chip/stzh-chip.tsx"],"sourcesContent":["@mixin chip--size-default() {\n --font-size: var(--stzh-font-micro-font-size);\n --line-height: var(--stzh-font-micro-text-line-height);\n --letter-spacing: normal;\n\n --height: 32px;\n --outer-height: 40px;\n --padding-top: 0;\n --padding-bottom: 0;\n --padding-left: #{space(\"small\")};\n --padding-right: #{space(\"small\")};\n --border-radius: 16px;\n\n @include mq($from: medium) {\n --outer-height: auto;\n }\n}\n\n@mixin chip--size-large() {\n --height: 40px;\n --border-radius: 20px;\n --padding-left: #{space(\"medium\")};\n --padding-right: #{space(\"medium\")};\n}\n\n@mixin chip--size-small() {\n --font-size: var(--stzh-font-nano-font-size);\n --line-height: var(--stzh-font-nano-text-line-height);\n --letter-spacing: normal;\n\n --height: 24px;\n --border-radius: 12px;\n --padding-left: #{space(\"xsmall\")};\n --padding-right: #{space(\"xsmall\")};\n}\n\n:host {\n @include chip--size-default;\n --color: var(--stzh-chip-color, #{$colorPrimary70});\n --remove-color: var(--color);\n --remove-border-radius: 24px;\n --background-color: var(--stzh-chip-background-color, #{$colorSecondary30});\n --icon-size: #{iconSize(\"xsmall\")};\n --icon-color: var(--color);\n --icon-gap: #{space(\"xsmall\")};\n --counter-color: var(--color);\n --counter-gap: #{space(\"xsmall\")};\n\n --hover-color: var(--stzh-chip-hover-color, #{$colorPrimary70});\n --hover-background-color: var(\n --stzh-chip-hover-background-color,\n #{$colorSecondary40}\n );\n --hover-remove-color: var(--hover-color);\n --hover-remove-background-color: #{$colorPrimary30};\n --hover-icon-color: var(--hover-color);\n --hover-counter-color: var(--hover-color);\n\n display: inline-flex;\n\n @include highContrast() {\n --hover-color: Highlight;\n --hover-background-color: Canvas;\n --hover-remove-background-color: Canvas;\n }\n\n &[variant=\"input\"] {\n --background-color: #{$colorPrimary10};\n\n --hover-color: #{$colorPrimary90};\n --hover-background-color: #{$colorPrimary20};\n }\n\n &[variant=\"tag\"] {\n --color: #{$colorGrey90};\n --background-color: #{$colorGrey20};\n\n --hover-color: #{$colorGrey90};\n --hover-background-color: #{$colorGrey20};\n }\n\n &[variant=\"input\"]:where([size=\"small\"]) {\n --icon-gap: #{space(\"xxsmall\")};\n }\n\n &[variant=\"tag\"]:where([size=\"small\"]) {\n --padding-left: #{space(\"xsmall\")};\n --padding-right: #{space(\"xsmall\")};\n --icon-gap: #{space(\"xxsmall\")};\n }\n\n &[variant=\"tag\"]:where([type=\"warning\"]) {\n --color: #{$colorWarning90};\n\n --hover-color: #{$colorWarning90};\n }\n\n &[variant=\"tag\"]:where([type=\"error\"]) {\n --color: #{$colorError70};\n\n --hover-color: #{$colorError70};\n }\n\n &[variant=\"tag\"]:where([type=\"success\"]) {\n --color: #{$colorSuccess70};\n\n --hover-color: #{$colorSuccess70};\n }\n\n &[variant=\"tag\"]:where([inverted]:not([inverted=\"false\"])) {\n --color: #{$colorWhite};\n --background-color: #{$colorGrey90};\n\n --hover-color: #{$colorWhite};\n --hover-background-color: #{$colorGrey90};\n }\n\n &[variant=\"tag\"]:where([type=\"warning\"][inverted]:not([inverted=\"false\"])) {\n --color: #{$colorBlack};\n --background-color: #{$colorWarning60};\n\n --hover-color: #{$colorBlack};\n --hover-background-color: #{$colorWarning60};\n }\n\n &[variant=\"tag\"]:where([type=\"error\"][inverted]:not([inverted=\"false\"])) {\n --background-color: #{$colorError70};\n\n --hover-background-color: #{$colorError70};\n }\n\n &[variant=\"tag\"]:where([type=\"success\"][inverted]:not([inverted=\"false\"])) {\n --background-color: #{$colorSuccess70};\n\n --hover-background-color: #{$colorSuccess70};\n }\n\n &[active]:not([active=\"false\"]) {\n --color: var(--stzh-chip-active-color, #{$colorWhite});\n --background-color: var(\n --stzh-chip-active-background-color,\n #{$colorPrimary70}\n );\n\n --hover-color: var(--stzh-chip-active-hover-color, #{$colorWhite});\n --hover-background-color: var(\n --stzh-chip-active-hover-background-color,\n #{$colorPrimary90}\n );\n --hover-remove-background-color: #{$colorPrimary90};\n\n @include highContrast() {\n --color: Highlight;\n --background-color: Canvas;\n\n --hover-color: Highlight;\n --hover-background-color: Canvas;\n --hover-remove-background-color: Canvas;\n }\n }\n\n &[non-interactive]:not([non-interactive=\"false\"]) {\n --hover-color: var(--color);\n --hover-background-color: var(--background-color);\n --hover-remove-color: var(--remove-color);\n --hover-remove-background-color: transparent;\n --hover-icon-color: var(--icon-color);\n --hover-counter-color: var(--counter-color);\n }\n\n &[disabled]:not([disabled=\"false\"]) {\n --color: var(--stzh-chip-disabled-color, #{$colorGrey80});\n --background-color: var(\n --stzh-chip-disabled-background-color,\n #{$colorGrey20}\n );\n --remove-color: var(--color);\n --icon-color: var(--color);\n --counter-color: var(--color);\n\n --hover-color: var(--color);\n --hover-background-color: var(--background-color);\n --hover-remove-color: var(--remove-color);\n --hover-remove-background-color: transparent;\n --hover-icon-color: var(--icon-color);\n --hover-counter-color: var(--counter-color);\n }\n\n &[variant=\"input\"][disabled]:not([disabled=\"false\"]) {\n --background-color: #{$colorGrey10};\n }\n}\n\n:host(:where([size=\"small\"])) {\n @include chip--size-small;\n}\n\n:host(:where([size=\"large\"])) {\n @include chip--size-large;\n}\n\n@each $breakpoint, $size in $breakpoints {\n @include mq($from: $breakpoint) {\n :host(:where([size-#{$breakpoint}=\"default\"])) {\n @include chip--size-default;\n }\n\n :host(:where([size-#{$breakpoint}=\"small\"])) {\n @include chip--size-small;\n }\n\n :host(:where([size-#{$breakpoint}=\"large\"])) {\n @include chip--size-large;\n }\n }\n}\n\n.stzh-chip {\n position: relative;\n\n &__vhidden {\n @include visuallyhidden;\n }\n\n &__button {\n font-size: var(--font-size);\n line-height: var(--line-height);\n letter-spacing: var(--letter-spacing);\n min-height: var(--outer-height);\n font-family: inherit;\n appearance: none;\n padding: 0px;\n border: none;\n background-color: transparent;\n\n &.is-button,\n &.is-link {\n cursor: pointer;\n }\n }\n\n &__button-inner {\n height: var(--height);\n display: flex;\n flex-direction: row;\n align-items: center;\n border-radius: var(--border-radius);\n padding-top: var(--padding-top);\n padding-bottom: var(--padding-bottom);\n padding-left: var(--padding-left);\n padding-right: var(--padding-right);\n color: var(--color);\n background-color: var(--background-color);\n transition-duration: $baseTransitionAnimationSpeed;\n transition-property: color, background-color;\n text-decoration-line: none;\n }\n\n &__label {\n text-align: left;\n }\n\n &__icon-wrapper {\n --stzh-icon-size: var(--icon-size);\n\n display: flex;\n color: var(--icon-color);\n transition: color $baseTransitionAnimationSpeed;\n flex-shrink: 0;\n\n &:not(:empty) {\n margin-right: var(--icon-gap);\n }\n }\n\n &__counter {\n display: flex;\n font-variant-numeric: tabular-nums;\n margin-left: var(--counter-gap);\n color: var(--counter-color);\n transition: color $baseTransitionAnimationSpeed;\n }\n\n &__remove {\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n right: 0;\n appearance: none;\n font-family: inherit;\n border: none;\n background: none;\n padding: 0;\n width: var(--height);\n height: var(--height);\n border-radius: var(--remove-border-radius);\n display: flex;\n justify-content: center;\n align-items: center;\n margin-left: space(\"xxsmall\");\n color: var(--remove-color);\n transition-duration: $baseTransitionAnimationSpeed;\n transition-property: color, background-color, border-color;\n cursor: pointer;\n\n &:hover {\n color: var(--hover-remove-color);\n background-color: var(--hover-remove-background-color);\n }\n }\n\n &__remove-icon {\n --size: #{iconSize(\"xxsmall\")};\n }\n\n &__button:hover &__button-inner,\n &__remove:hover + &__button &__button-inner {\n color: var(--hover-color);\n background-color: var(--hover-background-color);\n }\n\n &__button:hover &__counter,\n &__remove:hover + &__button &__counter {\n color: var(--hover-counter-color);\n }\n\n &__button:hover &__icon-wrapper,\n &__remove:hover + &__button &__icon-wrapper {\n color: var(--hover-icon-color);\n }\n\n /* Removeable */\n\n &--is-removable &__button-inner {\n padding-right: calc(var(--height) + #{space(\"xxsmall\")});\n }\n\n /* Disabled */\n\n &--is-disabled &__button,\n &--is-disabled &__remove {\n cursor: not-allowed;\n }\n}\n","import { Component, Element, Event, EventEmitter, h, Host, Prop } from \"@stencil/core\";\n\nimport {\n StzhChipBlurEvent,\n StzhChipClickEvent,\n StzhChipFocusEvent,\n StzhChipRemoveEvent,\n StzhChipSize,\n StzhChipType,\n StzhChipVariant,\n} from \"../../index\";\n\n/**\n * @slot - Slot for label\n * @slot icon - Slot for icon\n */\n@Component({\n tag: \"stzh-chip\",\n styleUrl: \"stzh-chip.scss\",\n scoped: true,\n})\nexport class StzhChip {\n /** Label */\n @Prop() label: string = \"\";\n\n /** Icon (use instead of icon slot) */\n @Prop() icon: string;\n\n /** `href` if the chip should be used as link */\n @Prop() href: string = \"\";\n\n /** Target if the button is used as link (if `href` used) */\n @Prop() target: string = \"\";\n\n /** Whether chip is not interactive */\n @Prop({ reflect: true }) nonInteractive: boolean = false;\n\n /** Whether remove button should be shown */\n @Prop({ reflect: true }) removable: boolean = false;\n\n /** Whether inverted style is shown (only available for `tag` variant) */\n @Prop({ reflect: true }) inverted: boolean = false;\n\n /** Variant */\n @Prop({ reflect: true }) variant: StzhChipVariant = \"tag\";\n\n /** Size */\n @Prop({ reflect: true }) size: StzhChipSize = \"default\";\n\n /** Size variant (above small breakpoint) */\n @Prop({ reflect: true }) sizeSmall: StzhChipSize;\n\n /** Size variant (above medium breakpoint) */\n @Prop({ reflect: true }) sizeMedium: StzhChipSize;\n\n /** Size variant (above large breakpoint) */\n @Prop({ reflect: true }) sizeLarge: StzhChipSize;\n\n /** Size variant (above ultra breakpoint) */\n @Prop({ reflect: true }) sizeUltra: StzhChipSize;\n\n /** Type */\n @Prop({ reflect: true }) type: StzhChipType = \"default\";\n\n /** Counter */\n @Prop() counter: string = \"\";\n\n /** Label of remove button for screenreaders */\n @Prop() removeLabel: string = \"\";\n\n /** Active */\n @Prop({ reflect: true }) active: boolean = false;\n\n /** Disabled */\n @Prop({ reflect: true }) disabled: boolean = false;\n\n /** Tabindex of link/button */\n @Prop({ attribute: \"a11y-tabindex\" }) a11yTabindex: string;\n\n /** Accessible label for screen readers to replace visible text */\n @Prop({ attribute: \"a11y-label\" }) a11yLabel: string;\n\n /** Id for element which describes the link/button */\n @Prop({ attribute: \"a11y-describedby\" }) a11yDescribedby: string = \"\";\n\n /**\n * For Adobe Analytics.\n * Will be rendered as value of `s-object-id` attribute to the link/button element.\n * Default value will be taken from `label` prop or default slot.\n */\n @Prop() analyticsId: string;\n\n /**\n * For Adobe Analytics.\n * Will be rendered as value of `s-object-id` attribute to the remove button element.\n * Default value will be taken from `removeLabel` prop.\n */\n @Prop() removeAnalyticsId: string;\n\n @Element() element: HTMLStzhChipElement;\n\n /** Chip click event */\n @Event() stzhClick: EventEmitter<StzhChipClickEvent>;\n\n /** Chip remove event */\n @Event() stzhRemove: EventEmitter<StzhChipRemoveEvent>;\n\n /** Focus event */\n @Event() stzhFocus: EventEmitter<StzhChipFocusEvent>;\n\n /** Input blur event */\n @Event() stzhBlur: EventEmitter<StzhChipBlurEvent>;\n\n private chip: HTMLButtonElement | HTMLAnchorElement;\n private text: HTMLElement;\n private focusedByInput: boolean = false;\n\n componentDidRender() {\n requestAnimationFrame(() => {\n this.chip?.setAttribute(\"s-object-id\", this.analyticsId || this.text.innerText);\n });\n }\n\n private renderInner(): DocumentFragment {\n return (\n <div class=\"stzh-chip__button-inner\">\n <div class=\"stzh-chip__icon-wrapper\">\n {this.icon || (typeof this.icon === \"undefined\" && this.variant === \"tag\" && this.type !== \"default\") ? (\n <stzh-icon\n class=\"stzh-chip__icon\"\n name={\n this.icon ||\n (this.type === \"info\" && \"info-help\") ||\n (this.type === \"warning\" && \"important-warning\") ||\n (this.type === \"error\" && \"warning\") ||\n (this.type === \"success\" && \"checkmark-circle\")\n }\n ></stzh-icon>\n ) : (\n <slot name=\"icon\"></slot>\n )}\n </div>\n\n <stzh-clamp lines={1} class=\"stzh-chip__label\" ref={el => (this.text = el as HTMLElement)}>\n {this.label ? this.label : <slot></slot>}\n {this.counter && this.counter !== \"undefined\" && this.counter !== undefined && (\n <span class=\"stzh-chip__vhidden\">&nbsp;({this.counter})</span>\n )}\n </stzh-clamp>\n\n {this.counter && this.counter !== \"undefined\" && this.counter !== undefined && (\n <div class=\"stzh-chip__counter\" aria-hidden=\"true\">\n {this.counter}\n </div>\n )}\n </div>\n );\n }\n\n private onRootFocus = () => {\n if (!this.focusedByInput) {\n this.chip.focus();\n }\n\n this.focusedByInput = false;\n };\n\n private onFocus = (event: FocusEvent) => {\n this.focusedByInput = true;\n\n const focusEvent = new FocusEvent(\"focus\", {\n view: window,\n bubbles: false,\n cancelable: false,\n });\n\n this.element.dispatchEvent(focusEvent);\n this.stzhFocus.emit({\n component: \"stzh-chip\",\n originalEvent: event,\n });\n };\n\n private onBlur = (event: FocusEvent) => {\n const blurEvent = new FocusEvent(\"blur\", {\n view: window,\n bubbles: false,\n cancelable: false,\n });\n\n this.element.dispatchEvent(blurEvent);\n this.stzhBlur.emit({\n component: \"stzh-chip\",\n originalEvent: event,\n });\n };\n\n private onClick = (event: MouseEvent) => {\n this.stzhClick.emit({\n component: \"stzh-chip\",\n originalEvent: event,\n href: this.href,\n });\n };\n\n private onRemoveClick = (event: MouseEvent) => {\n this.stzhRemove.emit({\n component: \"stzh-chip\",\n originalEvent: event,\n });\n };\n\n render() {\n const classes = {\n \"stzh-chip\": true,\n \"stzh-chip--is-active\": this.active,\n \"stzh-chip--is-disabled\": this.disabled,\n \"stzh-chip--is-removable\": this.removable,\n \"stzh-chip--is-inverted\": this.inverted,\n \"stzh-chip--has-counter\": !!this.counter,\n [`stzh-chip--type-${this.type}`]: !!this.type,\n [`stzh-chip--size-${this.size}`]: !!this.size,\n [`stzh-chip--${this.variant}`]: !!this.variant,\n };\n\n const Chip = this.nonInteractive ? \"div\" : this.href ? \"a\" : \"button\";\n\n return (\n <Host tabindex={this.disabled ? null : \"-1\"} onFocus={this.onRootFocus}>\n <div class={classes}>\n {this.removable && (\n <button\n class=\"stzh-chip__remove\"\n onClick={this.onRemoveClick}\n disabled={this.disabled}\n aria-label={this.removeLabel}\n type=\"button\"\n s-object-id={this.removeAnalyticsId || this.removeLabel}\n >\n <stzh-icon class=\"stzh-chip__remove-icon\" name=\"close-big\"></stzh-icon>\n </button>\n )}\n\n {this.href ? (\n <Chip\n ref={el => (this.chip = el as HTMLAnchorElement)}\n class={{\n \"stzh-chip__button\": true,\n \"is-button\": !this.nonInteractive && !this.href,\n \"is-link\": !this.nonInteractive && !!this.href,\n }}\n href={this.disabled ? null : this.href}\n target={this.target}\n tabindex={this.a11yTabindex}\n aria-label={this.a11yLabel || null}\n aria-describedby={this.a11yDescribedby || null}\n onClick={this.onClick}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n >\n {this.renderInner()}\n </Chip>\n ) : (\n <Chip\n ref={el => (this.chip = el as HTMLButtonElement)}\n class={{\n \"stzh-chip__button\": true,\n \"is-button\": !this.nonInteractive && !this.href,\n \"is-link\": !this.nonInteractive && !!this.href,\n }}\n disabled={this.disabled}\n type=\"button\"\n tabindex={this.a11yTabindex}\n aria-label={this.a11yLabel || null}\n aria-describedby={this.a11yDescribedby || null}\n onClick={this.onClick}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n >\n {this.renderInner()}\n </Chip>\n )}\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"p-1c6e00e3.js","mappings":";;;;;;AAAA,MAAM,WAAW,GAAG,23aAA23a,CAAC;AACh5a,uBAAe,WAAW;;MCoBb,QAAQ;;;;;;;;QA8FX,mBAAc,GAAY,KAAK,CAAC;QA4ChC,gBAAW,GAAG;YACpB,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE;gBACxB,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;aACnB;YAED,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC;SAC7B,CAAC;QAEM,YAAO,GAAG,CAAC,KAAiB;YAClC,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC;YAE3B,MAAM,UAAU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D,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/stzh-chip/stzh-chip.scss?tag=stzh-chip&encapsulation=scoped","src/components/stzh-chip/stzh-chip.tsx"],"sourcesContent":["@mixin chip--size-default() {\n --font-size: var(--stzh-font-micro-font-size);\n --line-height: var(--stzh-font-micro-text-line-height);\n --letter-spacing: normal;\n\n --height: 32px;\n --outer-height: 40px;\n --padding-top: 0;\n --padding-bottom: 0;\n --padding-left: #{space(\"small\")};\n --padding-right: #{space(\"small\")};\n --border-radius: 16px;\n\n @include mq($from: medium) {\n --outer-height: auto;\n }\n}\n\n@mixin chip--size-large() {\n --height: 40px;\n --border-radius: 20px;\n --padding-left: #{space(\"medium\")};\n --padding-right: #{space(\"medium\")};\n}\n\n@mixin chip--size-small() {\n --font-size: var(--stzh-font-nano-font-size);\n --line-height: var(--stzh-font-nano-text-line-height);\n --letter-spacing: normal;\n\n --height: 24px;\n --border-radius: 12px;\n --padding-left: #{space(\"xsmall\")};\n --padding-right: #{space(\"xsmall\")};\n}\n\n:host {\n @include chip--size-default;\n --color: var(--stzh-chip-color, #{$colorPrimary70});\n --remove-color: var(--color);\n --remove-border-radius: 24px;\n --background-color: var(--stzh-chip-background-color, #{$colorSecondary30});\n --icon-size: #{iconSize(\"xsmall\")};\n --icon-color: var(--color);\n --icon-gap: #{space(\"xsmall\")};\n --counter-color: var(--color);\n --counter-gap: #{space(\"xsmall\")};\n\n --hover-color: var(--stzh-chip-hover-color, #{$colorPrimary70});\n --hover-background-color: var(\n --stzh-chip-hover-background-color,\n #{$colorSecondary40}\n );\n --hover-remove-color: var(--hover-color);\n --hover-remove-background-color: #{$colorPrimary30};\n --hover-icon-color: var(--hover-color);\n --hover-counter-color: var(--hover-color);\n\n display: inline-flex;\n\n @include highContrast() {\n --hover-color: Highlight;\n --hover-background-color: Canvas;\n --hover-remove-background-color: Canvas;\n }\n\n &[variant=\"input\"] {\n --background-color: #{$colorPrimary10};\n\n --hover-color: #{$colorPrimary90};\n --hover-background-color: #{$colorPrimary20};\n }\n\n &[variant=\"tag\"] {\n --color: #{$colorGrey90};\n --background-color: #{$colorGrey20};\n\n --hover-color: #{$colorGrey90};\n --hover-background-color: #{$colorGrey20};\n }\n\n &[variant=\"input\"]:where([size=\"small\"]) {\n --icon-gap: #{space(\"xxsmall\")};\n }\n\n &[variant=\"tag\"]:where([size=\"small\"]) {\n --padding-left: #{space(\"xsmall\")};\n --padding-right: #{space(\"xsmall\")};\n --icon-gap: #{space(\"xxsmall\")};\n }\n\n &[variant=\"tag\"]:where([type=\"warning\"]) {\n --color: #{$colorWarning90};\n\n --hover-color: #{$colorWarning90};\n }\n\n &[variant=\"tag\"]:where([type=\"error\"]) {\n --color: #{$colorError70};\n\n --hover-color: #{$colorError70};\n }\n\n &[variant=\"tag\"]:where([type=\"success\"]) {\n --color: #{$colorSuccess70};\n\n --hover-color: #{$colorSuccess70};\n }\n\n &[variant=\"tag\"]:where([inverted]:not([inverted=\"false\"])) {\n --color: #{$colorWhite};\n --background-color: #{$colorGrey90};\n\n --hover-color: #{$colorWhite};\n --hover-background-color: #{$colorGrey90};\n }\n\n &[variant=\"tag\"]:where([type=\"warning\"][inverted]:not([inverted=\"false\"])) {\n --color: #{$colorBlack};\n --background-color: #{$colorWarning60};\n\n --hover-color: #{$colorBlack};\n --hover-background-color: #{$colorWarning60};\n }\n\n &[variant=\"tag\"]:where([type=\"error\"][inverted]:not([inverted=\"false\"])) {\n --background-color: #{$colorError70};\n\n --hover-background-color: #{$colorError70};\n }\n\n &[variant=\"tag\"]:where([type=\"success\"][inverted]:not([inverted=\"false\"])) {\n --background-color: #{$colorSuccess70};\n\n --hover-background-color: #{$colorSuccess70};\n }\n\n &[active]:not([active=\"false\"]) {\n --color: var(--stzh-chip-active-color, #{$colorWhite});\n --background-color: var(\n --stzh-chip-active-background-color,\n #{$colorPrimary70}\n );\n\n --hover-color: var(--stzh-chip-active-hover-color, #{$colorWhite});\n --hover-background-color: var(\n --stzh-chip-active-hover-background-color,\n #{$colorPrimary90}\n );\n --hover-remove-background-color: #{$colorPrimary90};\n\n @include highContrast() {\n --color: Highlight;\n --background-color: Canvas;\n\n --hover-color: Highlight;\n --hover-background-color: Canvas;\n --hover-remove-background-color: Canvas;\n }\n }\n\n &[non-interactive]:not([non-interactive=\"false\"]) {\n --hover-color: var(--color);\n --hover-background-color: var(--background-color);\n --hover-remove-color: var(--remove-color);\n --hover-remove-background-color: transparent;\n --hover-icon-color: var(--icon-color);\n --hover-counter-color: var(--counter-color);\n }\n\n &[disabled]:not([disabled=\"false\"]) {\n --color: var(--stzh-chip-disabled-color, #{$colorGrey80});\n --background-color: var(\n --stzh-chip-disabled-background-color,\n #{$colorGrey20}\n );\n --remove-color: var(--color);\n --icon-color: var(--color);\n --counter-color: var(--color);\n\n --hover-color: var(--color);\n --hover-background-color: var(--background-color);\n --hover-remove-color: var(--remove-color);\n --hover-remove-background-color: transparent;\n --hover-icon-color: var(--icon-color);\n --hover-counter-color: var(--counter-color);\n }\n\n &[variant=\"input\"][disabled]:not([disabled=\"false\"]) {\n --background-color: #{$colorGrey10};\n }\n}\n\n:host(:where([size=\"small\"])) {\n @include chip--size-small;\n}\n\n:host(:where([size=\"large\"])) {\n @include chip--size-large;\n}\n\n@each $breakpoint, $size in $breakpoints {\n @include mq($from: $breakpoint) {\n :host(:where([size-#{$breakpoint}=\"default\"])) {\n @include chip--size-default;\n }\n\n :host(:where([size-#{$breakpoint}=\"small\"])) {\n @include chip--size-small;\n }\n\n :host(:where([size-#{$breakpoint}=\"large\"])) {\n @include chip--size-large;\n }\n }\n}\n\n.stzh-chip {\n position: relative;\n\n &__vhidden {\n @include visuallyhidden;\n }\n\n &__button {\n font-size: var(--font-size);\n line-height: var(--line-height);\n letter-spacing: var(--letter-spacing);\n min-height: var(--outer-height);\n font-family: inherit;\n appearance: none;\n padding: 0px;\n border: none;\n background-color: transparent;\n\n &.is-button,\n &.is-link {\n cursor: pointer;\n }\n }\n\n &__button-inner {\n height: var(--height);\n display: flex;\n flex-direction: row;\n align-items: center;\n border-radius: var(--border-radius);\n padding-top: var(--padding-top);\n padding-bottom: var(--padding-bottom);\n padding-left: var(--padding-left);\n padding-right: var(--padding-right);\n color: var(--color);\n background-color: var(--background-color);\n transition-duration: $baseTransitionAnimationSpeed;\n transition-property: color, background-color;\n text-decoration-line: none;\n }\n\n &__label {\n text-align: left;\n }\n\n &__icon-wrapper {\n --stzh-icon-size: var(--icon-size);\n\n display: flex;\n color: var(--icon-color);\n transition: color $baseTransitionAnimationSpeed;\n flex-shrink: 0;\n\n &:not(:empty) {\n margin-right: var(--icon-gap);\n }\n }\n\n &__counter {\n display: flex;\n font-variant-numeric: tabular-nums;\n margin-left: var(--counter-gap);\n color: var(--counter-color);\n transition: color $baseTransitionAnimationSpeed;\n }\n\n &__remove {\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n right: 0;\n appearance: none;\n font-family: inherit;\n border: none;\n background: none;\n padding: 0;\n width: var(--height);\n height: var(--height);\n border-radius: var(--remove-border-radius);\n display: flex;\n justify-content: center;\n align-items: center;\n margin-left: space(\"xxsmall\");\n color: var(--remove-color);\n transition-duration: $baseTransitionAnimationSpeed;\n transition-property: color, background-color, border-color;\n cursor: pointer;\n\n &:hover {\n color: var(--hover-remove-color);\n background-color: var(--hover-remove-background-color);\n }\n }\n\n &__remove-icon {\n --size: #{iconSize(\"xxsmall\")};\n }\n\n &__button:hover &__button-inner,\n &__remove:hover + &__button &__button-inner {\n color: var(--hover-color);\n background-color: var(--hover-background-color);\n }\n\n &__button:hover &__counter,\n &__remove:hover + &__button &__counter {\n color: var(--hover-counter-color);\n }\n\n &__button:hover &__icon-wrapper,\n &__remove:hover + &__button &__icon-wrapper {\n color: var(--hover-icon-color);\n }\n\n /* Removeable */\n\n &--is-removable &__button-inner {\n padding-right: calc(var(--height) + #{space(\"xxsmall\")});\n }\n\n /* Disabled */\n\n &--is-disabled &__button,\n &--is-disabled &__remove {\n cursor: not-allowed;\n }\n}\n","import { Component, Element, Event, EventEmitter, h, Host, Prop } from \"@stencil/core\";\n\nimport {\n StzhChipBlurEvent,\n StzhChipClickEvent,\n StzhChipFocusEvent,\n StzhChipRemoveEvent,\n StzhChipSize,\n StzhChipType,\n StzhChipVariant,\n} from \"../../index\";\n\n/**\n * @slot - Slot for label\n * @slot icon - Slot for icon\n */\n@Component({\n tag: \"stzh-chip\",\n styleUrl: \"stzh-chip.scss\",\n scoped: true,\n})\nexport class StzhChip {\n /** Label */\n @Prop() label: string = \"\";\n\n /** Icon (use instead of icon slot) */\n @Prop() icon: string;\n\n /** `href` if the chip should be used as link */\n @Prop() href: string = \"\";\n\n /** Target if the button is used as link (if `href` used) */\n @Prop() target: string = \"\";\n\n /** Whether chip is not interactive */\n @Prop({ reflect: true }) nonInteractive: boolean = false;\n\n /** Whether remove button should be shown */\n @Prop({ reflect: true }) removable: boolean = false;\n\n /** Whether inverted style is shown (only available for `tag` variant) */\n @Prop({ reflect: true }) inverted: boolean = false;\n\n /** Variant */\n @Prop({ reflect: true }) variant: StzhChipVariant = \"tag\";\n\n /** Size */\n @Prop({ reflect: true }) size: StzhChipSize = \"default\";\n\n /** Size variant (above small breakpoint) */\n @Prop({ reflect: true }) sizeSmall: StzhChipSize;\n\n /** Size variant (above medium breakpoint) */\n @Prop({ reflect: true }) sizeMedium: StzhChipSize;\n\n /** Size variant (above large breakpoint) */\n @Prop({ reflect: true }) sizeLarge: StzhChipSize;\n\n /** Size variant (above ultra breakpoint) */\n @Prop({ reflect: true }) sizeUltra: StzhChipSize;\n\n /** Type */\n @Prop({ reflect: true }) type: StzhChipType = \"default\";\n\n /** Counter */\n @Prop() counter: string = \"\";\n\n /** Label of remove button for screenreaders */\n @Prop() removeLabel: string = \"\";\n\n /** Active */\n @Prop({ reflect: true }) active: boolean = false;\n\n /** Disabled */\n @Prop({ reflect: true }) disabled: boolean = false;\n\n /** Tabindex of link/button */\n @Prop({ attribute: \"a11y-tabindex\" }) a11yTabindex: string;\n\n /** Accessible label for screen readers to replace visible text */\n @Prop({ attribute: \"a11y-label\" }) a11yLabel: string;\n\n /** Id for element which describes the link/button */\n @Prop({ attribute: \"a11y-describedby\" }) a11yDescribedby: string = \"\";\n\n /**\n * For Adobe Analytics.\n * Will be rendered as value of `s-object-id` attribute to the link/button element.\n * Default value will be taken from `label` prop or default slot.\n */\n @Prop() analyticsId: string;\n\n /**\n * For Adobe Analytics.\n * Will be rendered as value of `s-object-id` attribute to the remove button element.\n * Default value will be taken from `removeLabel` prop.\n */\n @Prop() removeAnalyticsId: string;\n\n @Element() element: HTMLStzhChipElement;\n\n /** Chip click event */\n @Event() stzhClick: EventEmitter<StzhChipClickEvent>;\n\n /** Chip remove event */\n @Event() stzhRemove: EventEmitter<StzhChipRemoveEvent>;\n\n /** Focus event */\n @Event() stzhFocus: EventEmitter<StzhChipFocusEvent>;\n\n /** Input blur event */\n @Event() stzhBlur: EventEmitter<StzhChipBlurEvent>;\n\n private chip: HTMLButtonElement | HTMLAnchorElement;\n private text: HTMLElement;\n private focusedByInput: boolean = false;\n\n componentDidRender() {\n requestAnimationFrame(() => {\n this.chip?.setAttribute(\"s-object-id\", this.analyticsId || this.text.innerText);\n });\n }\n\n private renderInner(): DocumentFragment {\n return (\n <div class=\"stzh-chip__button-inner\">\n <div class=\"stzh-chip__icon-wrapper\">\n {this.icon || (typeof this.icon === \"undefined\" && this.variant === \"tag\" && this.type !== \"default\") ? (\n <stzh-icon\n class=\"stzh-chip__icon\"\n name={\n this.icon ||\n (this.type === \"info\" && \"info-help\") ||\n (this.type === \"warning\" && \"important-warning\") ||\n (this.type === \"error\" && \"warning\") ||\n (this.type === \"success\" && \"checkmark-circle\")\n }\n ></stzh-icon>\n ) : (\n <slot name=\"icon\"></slot>\n )}\n </div>\n\n <stzh-clamp lines={1} class=\"stzh-chip__label\" ref={el => (this.text = el as HTMLElement)}>\n {this.label ? this.label : <slot></slot>}\n {this.counter && this.counter !== \"undefined\" && this.counter !== undefined && (\n <span class=\"stzh-chip__vhidden\">&nbsp;({this.counter})</span>\n )}\n </stzh-clamp>\n\n {this.counter && this.counter !== \"undefined\" && this.counter !== undefined && (\n <div class=\"stzh-chip__counter\" aria-hidden=\"true\">\n {this.counter}\n </div>\n )}\n </div>\n );\n }\n\n private onRootFocus = () => {\n if (!this.focusedByInput) {\n this.chip.focus();\n }\n\n this.focusedByInput = false;\n };\n\n private onFocus = (event: FocusEvent) => {\n this.focusedByInput = true;\n\n const focusEvent = new FocusEvent(\"focus\", {\n view: window,\n bubbles: false,\n cancelable: false,\n });\n\n this.element.dispatchEvent(focusEvent);\n this.stzhFocus.emit({\n component: \"stzh-chip\",\n originalEvent: event,\n });\n };\n\n private onBlur = (event: FocusEvent) => {\n const blurEvent = new FocusEvent(\"blur\", {\n view: window,\n bubbles: false,\n cancelable: false,\n });\n\n this.element.dispatchEvent(blurEvent);\n this.stzhBlur.emit({\n component: \"stzh-chip\",\n originalEvent: event,\n });\n };\n\n private onClick = (event: MouseEvent) => {\n this.stzhClick.emit({\n component: \"stzh-chip\",\n originalEvent: event,\n href: this.href,\n });\n };\n\n private onRemoveClick = (event: MouseEvent) => {\n this.stzhRemove.emit({\n component: \"stzh-chip\",\n originalEvent: event,\n });\n };\n\n render() {\n const classes = {\n \"stzh-chip\": true,\n \"stzh-chip--is-active\": this.active,\n \"stzh-chip--is-disabled\": this.disabled,\n \"stzh-chip--is-removable\": this.removable,\n \"stzh-chip--is-inverted\": this.inverted,\n \"stzh-chip--has-counter\": !!this.counter,\n [`stzh-chip--type-${this.type}`]: !!this.type,\n [`stzh-chip--size-${this.size}`]: !!this.size,\n [`stzh-chip--${this.variant}`]: !!this.variant,\n };\n\n const Chip = this.nonInteractive ? \"div\" : this.href ? \"a\" : \"button\";\n\n return (\n <Host tabindex={this.disabled ? null : \"-1\"} onFocus={this.onRootFocus}>\n <div class={classes}>\n {this.removable && (\n <button\n class=\"stzh-chip__remove\"\n onClick={this.onRemoveClick}\n disabled={this.disabled}\n aria-label={this.removeLabel}\n type=\"button\"\n s-object-id={this.removeAnalyticsId || this.removeLabel}\n >\n <stzh-icon class=\"stzh-chip__remove-icon\" name=\"close-big\"></stzh-icon>\n </button>\n )}\n\n {this.href ? (\n <Chip\n ref={el => (this.chip = el as HTMLAnchorElement)}\n class={{\n \"stzh-chip__button\": true,\n \"is-button\": !this.nonInteractive && !this.href,\n \"is-link\": !this.nonInteractive && !!this.href,\n }}\n href={this.disabled ? null : this.href}\n target={this.target}\n tabindex={this.a11yTabindex}\n aria-label={this.a11yLabel || null}\n aria-describedby={this.a11yDescribedby || null}\n onClick={this.onClick}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n >\n {this.renderInner()}\n </Chip>\n ) : (\n <Chip\n ref={el => (this.chip = el as HTMLButtonElement)}\n class={{\n \"stzh-chip__button\": true,\n \"is-button\": !this.nonInteractive && !this.href,\n \"is-link\": !this.nonInteractive && !!this.href,\n }}\n disabled={this.disabled}\n type=\"button\"\n tabindex={this.a11yTabindex}\n aria-label={this.a11yLabel || null}\n aria-describedby={this.a11yDescribedby || null}\n onClick={this.onClick}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n >\n {this.renderInner()}\n </Chip>\n )}\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -1,8 +1,8 @@
1
1
  import { p as proxyCustomElement, H, c as createEvent, h, d as Host } from './p-8f01554b.js';
2
2
  import { m as media, a as addMediaChangeListener, r as removeMediaChangeListener } from './p-f4adb3cd.js';
3
- import { d as defineCustomElement$7 } from './p-b8fda153.js';
4
- import { d as defineCustomElement$6 } from './p-ec5e2f2a.js';
5
- import { d as defineCustomElement$5 } from './p-bafc325d.js';
3
+ import { d as defineCustomElement$7 } from './p-6a1a040f.js';
4
+ import { d as defineCustomElement$6 } from './p-775cca3b.js';
5
+ import { d as defineCustomElement$5 } from './p-74f1fb8a.js';
6
6
  import { d as defineCustomElement$4 } from './p-60d4ef07.js';
7
7
  import { d as defineCustomElement$3 } from './p-49d51921.js';
8
8
  import { d as defineCustomElement$2 } from './p-519479b8.js';
@@ -242,4 +242,4 @@ function defineCustomElement() {
242
242
 
243
243
  export { StzhDatalist as S, defineCustomElement as d };
244
244
 
245
- //# sourceMappingURL=p-95960509.js.map
245
+ //# sourceMappingURL=p-1e18dc1d.js.map
@@ -1 +1 @@
1
- {"file":"p-95960509.js","mappings":";;;;;;;;;;AAAA,MAAM,eAAe,GAAG,iuLAAiuL,CAAC;AAC1vL,2BAAe,eAAe;;MCoBjB,YAAY;;;;;;;QAwDf,WAAM,GAA4B,EAAE,CAAC;QAyErC,wBAAmB,GAAG;YAC5B,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC,OAAO,IAAI,IAAI,CAAC,cAAc,EAAE;gBACjD,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,cAAc,CAAC;aAC7C;iBAAM,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC,OAAO,IAAI,IAAI,CAAC,cAAc,EAAE;gBACxD,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,cAAc,CAAC;aAC7C;iBAAM,IAAI,KAAK,CAAC,QAAQ,CAAC,CAAC,OAAO,IAAI,IAAI,CAAC,eAAe,EAAE;gBAC1D,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,eAAe,CAAC;aAC9C;iBAAM,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC,OAAO,IAAI,IAAI,CAAC,cAAc,EAAE;gBACxD,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,cAAc,CAAC;aAC7C;iBAAM;gBACL,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,SAAS,CAAC;aACxC;SACF,CAAC;QAEM,sBAAiB,GAAG;YAC1B,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC,OAAO,IAAI,IAAI,CAAC,YAAY,EAAE;gBAC/C,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,YAAY,CAAC;aACzC;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AE,GAAG,IAAI;aACzE,IAED,4DAAK,KAAK,EAAE,OAAO,IACjB,4DAAK,KAAK,EAAC,wBAAwB,IACjC,4DAAK,KAAK,EAAC,qBAAqB,EAAC,IAAI,EAAC,MAAM,IACzC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,KACnB,0CAAwB,IAAI,IAAE,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK,KAClD,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,IAAI,qBAAe,KAAK,EAAE,IAAI,CAAC,KAAK,GAAkB,CACvE,CACtB,CAAC,EACF,8DAAa,CACT,CACF,CACF,CACD,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/stzh-datalist/stzh-datalist.scss?tag=stzh-datalist&encapsulation=scoped","src/components/stzh-datalist/stzh-datalist.tsx"],"sourcesContent":[":host {\n --columns: 1;\n --columns-gap: #{$gridGutter};\n --list-display: grid;\n --list-margin-right: calc(var(--columns-gap) / -1);\n --list-grid-template-columns: repeat(\n var(--columns),\n auto minmax(auto, 1fr) auto var(--columns-gap)\n );\n --full-grid-column: 1 / 5;\n --nested-margin-left: var(--stzh-datalist-nested-margin-left, 0px);\n --details-content-width: var(--stzh-datalist-details-content-width, 100%);\n\n --grid-template-areas: var(\n --stzh-datalist-grid-template-areas,\n \"list list list list\"\n );\n\n --grid-template-columns: var(\n --stzh-datalist-grid-template-columns,\n #{$gridColumns}\n );\n\n margin-left: var(--nested-margin-left);\n\n @include mq($from: small) {\n --columns-gap: #{$gridGutterSmall};\n\n --grid-template-areas: var(\n --stzh-datalist-grid-template-areas,\n \"list list list list\"\n );\n }\n\n @include mq($from: medium) {\n --columns-gap: #{$gridGutterMedium};\n\n --grid-template-areas: var(\n --stzh-datalist-grid-template-areas,\n \"list list list list list list list list\"\n );\n\n --grid-template-columns: var(\n --stzh-datalist-grid-template-columns,\n #{$gridColumnsMedium}\n );\n }\n\n @include mq($from: large) {\n --columns-gap: #{$gridGutterLarge};\n }\n\n @include mq($from: ultra) {\n --columns-gap: #{$gridGutterUltra};\n }\n // datalist-item or wrapper elements should be set to display: contents to make grid layout work.\n // in AEM edit mode: we prevent setting it, so the links can still be edited.\n\n ::slotted(.layout_column) > *:not([class*=\"cq-\"]),\n ::slotted(*:not([class*=\"cq-\"])) {\n display: contents;\n }\n\n &[is-direction=\"horizontal\"] {\n --list-grid-template-columns: repeat(\n var(--columns),\n auto minmax(auto, 1fr) auto auto var(--columns-gap)\n );\n --full-grid-column: 1 / 6;\n\n &:where(:has(stzh-datalist-item:not([meta=\"\"]))),\n &:where(:has(stzh-datalist-item:not([status-label=\"\"]))) {\n --list-grid-template-columns: repeat(\n var(--columns),\n auto minmax(auto, 1fr) minmax(auto, 1fr) auto var(--columns-gap)\n );\n }\n }\n\n &[variant=\"table\"] {\n --list-grid-template-columns: repeat(\n var(--columns),\n auto auto minmax(auto, 1fr) auto auto var(--columns-gap)\n );\n --full-grid-column: 1 / 7;\n\n &:where(:has(stzh-datalist-item:not([meta=\"\"]))),\n &:where(:has(stzh-datalist-item:not([status-label=\"\"]))) {\n --list-grid-template-columns: repeat(\n var(--columns),\n auto auto minmax(auto, 1fr) minmax(auto, 1fr) auto var(--columns-gap)\n );\n }\n }\n\n &[vertical-gap=\"small\"] {\n .stzh-datalist__list {\n grid-template-rows: auto;\n @include mq($to: medium) {\n row-gap: space(\"xsmall\");\n }\n @include mq($from: medium) {\n row-gap: space(\"xxsmall\");\n }\n }\n }\n}\n\n/* AEM edit mode: we set list as block element (always as one column), to prevent layout breaks */\n\n:host(:has([class*=\"cq-\"])) {\n --stzh-datalist-item-wrapper-display: flex;\n\n --list-display: block;\n --list-margin-right: 0;\n}\n\n.stzh-datalist {\n // offset margin of nested datalist\n --stzh-datalist-nested-margin-left: #{space(\"large\")};\n // details grid columns\n --stzh-details-content-grid-column: var(--full-grid-column);\n --stzh-details-content-padding-right: var(--columns-gap);\n --stzh-details-content-width: var(--details-content-width);\n\n @include gridGutter;\n display: grid;\n grid-template-areas: var(--grid-template-areas);\n grid-template-columns: var(--grid-template-columns);\n\n &__wrapper {\n grid-area: list;\n overflow: visible;\n }\n\n &__list {\n display: var(--list-display);\n border-collapse: collapse;\n grid-template-columns: var(--list-grid-template-columns);\n align-items: stretch;\n margin-right: var(--list-margin-right);\n }\n\n /* Multiple Columns */\n\n &--has-multiple-columns {\n // display of nested datalist\n --stzh-datalist-item-nested-display: none;\n }\n\n /* Table variant with big label */\n\n &--table#{&}--big-label &__list {\n @include mq($to: small) {\n --list-display: flex;\n flex-direction: column;\n gap: space(\"xxxsmall\");\n }\n }\n}\n","import { Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch } from \"@stencil/core\";\n\nimport {\n StzhDatalistBigLabelChangeEvent,\n StzhDatalistDirection,\n StzhDatalistDirectionChangeEvent,\n StzhDatalistItemEntry,\n StzhDatalistVariant,\n StzhDatalistVariantChangeEvent,\n} from \"../../index\";\n\nimport { addMediaChangeListener, media, removeMediaChangeListener } from \"../../utils/media-utils\";\n\n/**\n * @slot - Slot for any content\n */\n@Component({\n tag: \"stzh-datalist\",\n styleUrl: \"stzh-datalist.scss\",\n scoped: true,\n})\nexport class StzhDatalist {\n /** Variant */\n @Prop({ reflect: true }) variant: StzhDatalistVariant = \"default\";\n\n /** With big label */\n @Prop({ reflect: true }) bigLabel: boolean = false;\n\n /** Columns */\n @Prop({ reflect: true }) columns: number = 1;\n\n /** Columns above small breakpoint */\n @Prop({ reflect: true }) columnsSmall: number;\n\n /** Columns above medium breakpoint */\n @Prop({ reflect: true }) columnsMedium: number;\n\n /** Columns above large breakpoint */\n @Prop({ reflect: true }) columnsLarge: number;\n\n /** Columns above ultra breakpoint */\n @Prop({ reflect: true }) columnsUltra: number;\n\n /** Direction */\n @Prop({ reflect: true }) direction: StzhDatalistDirection = \"vertical\";\n\n /** Direction above small breakpoint */\n @Prop({ reflect: true }) directionSmall: StzhDatalistDirection;\n\n /** Direction above medium breakpoint */\n @Prop({ reflect: true }) directionMedium: StzhDatalistDirection;\n\n /** Direction above large breakpoint */\n @Prop({ reflect: true }) directionLarge: StzhDatalistDirection;\n\n /** Direction above ultra breakpoint */\n @Prop({ reflect: true }) directionUltra: StzhDatalistDirection;\n /**Vertical Gap between items */\n @Prop({ reflect: true }) verticalGap: \"default\" | \"small\" = \"default\";\n\n /**\n * Whether to disable min-width of datalist item label for the `horizontal` variant.\n *\n * If `false`, the default `min-width` is `144px` (for >= 800px) and `120px` (for < 800px).\n * If `true`, the `min-width` is `none`, so the label column, will have the width of cell with the widest content.\n *\n * You can also overwrite the label min-width via CSS with the custom property `--item-label-min-width`.\n */\n // @Prop({ reflect: true }) disableLabelMinWidth: boolean = false;\n\n /**\n * Items in datalist\n * Array of objects that must at least include `value` attribute.\n * Can optionally contain `leadingIcon`, `label`, `meta`, `icon`, `iconLabel`, `iconTooltip`, `href`, `statusLabel`, `statusType` attribute and be nested to display deeper levels:\n * `[{\"value\":\"Value 1\", \"label\": \"Label 1\"}, {\"value\":\"Value 2\", \"label\": \"Label 2\", \"items\": [...]}]`\n */\n @Prop() items: StzhDatalistItemEntry[] | string = [];\n private _items: StzhDatalistItemEntry[] = [];\n\n /** Variant attribute change event */\n @Event() stzhVariantChange: EventEmitter<StzhDatalistVariantChangeEvent>;\n\n /** Big label attribute change event */\n @Event() stzhBigLabelChange: EventEmitter<StzhDatalistBigLabelChangeEvent>;\n\n /** Direction attribute change event */\n @Event() stzhDirectionChange: EventEmitter<StzhDatalistDirectionChangeEvent>;\n\n @Element() element: HTMLStzhDatalistElement;\n\n @Watch(\"direction\")\n @Watch(\"directionSmall\")\n @Watch(\"directionMedium\")\n @Watch(\"directionLarge\")\n @Watch(\"directionUltra\")\n directionWatcher() {\n this.setCurrentDirection();\n }\n\n @Watch(\"columns\")\n @Watch(\"columnsSmall\")\n @Watch(\"columnsMedium\")\n @Watch(\"columnsLarge\")\n @Watch(\"columnsUltra\")\n columnsWatcher() {\n this.setCurrentColumns();\n }\n\n @Watch(\"currentDirection\")\n currentDirectionWatcher(newValue: StzhDatalistDirection) {\n this.stzhDirectionChange.emit({\n component: \"stzh-datalist\",\n value: newValue,\n });\n }\n\n @Watch(\"variant\")\n variantWatcher(newValue: StzhDatalistVariant) {\n this.stzhVariantChange.emit({\n component: \"stzh-datalist\",\n value: newValue,\n });\n }\n\n @Watch(\"bigLabel\")\n bigLabelWatcher(newValue: boolean) {\n this.stzhBigLabelChange.emit({\n component: \"stzh-datalist\",\n value: newValue,\n });\n }\n\n @Watch(\"items\")\n itemsWatcher(newValue: any[] | string) {\n if (typeof newValue === \"string\") {\n this._items = JSON.parse(newValue);\n } else {\n this._items = newValue;\n }\n }\n\n /** Get current direction */\n @Method()\n async getCurrentDirection() {\n return this.currentDirection;\n }\n\n @State() currentColumns: number = 1;\n @State() currentDirection: StzhDatalistDirection;\n\n private setCurrentDirection = () => {\n if (media(\"ultra\").matches && this.directionUltra) {\n this.currentDirection = this.directionUltra;\n } else if (media(\"large\").matches && this.directionLarge) {\n this.currentDirection = this.directionLarge;\n } else if (media(\"medium\").matches && this.directionMedium) {\n this.currentDirection = this.directionMedium;\n } else if (media(\"small\").matches && this.directionSmall) {\n this.currentDirection = this.directionSmall;\n } else {\n this.currentDirection = this.direction;\n }\n };\n\n private setCurrentColumns = () => {\n if (media(\"ultra\").matches && this.columnsUltra) {\n this.currentColumns = this.columnsUltra;\n } else if (media(\"large\").matches && this.columnsLarge) {\n this.currentColumns = this.columnsLarge;\n } else if (media(\"medium\").matches && this.columnsMedium) {\n this.currentColumns = this.columnsMedium;\n } else if (media(\"small\").matches && this.columnsSmall) {\n this.currentColumns = this.columnsSmall;\n } else {\n this.currentColumns = this.columns;\n }\n };\n\n resizeHandler = () => {\n this.setCurrentDirection();\n this.setCurrentColumns();\n };\n\n async componentWillLoad() {\n this.itemsWatcher(this.items);\n this.bigLabelWatcher(this.bigLabel);\n this.resizeHandler();\n }\n\n connectedCallback() {\n addMediaChangeListener(this.resizeHandler);\n }\n\n disconnectedCallback() {\n removeMediaChangeListener(this.resizeHandler);\n }\n\n render() {\n const classes = {\n \"stzh-datalist\": true,\n \"stzh-datalist--has-multiple-columns\": this.currentColumns > 1,\n \"stzh-datalist--big-label\": this.bigLabel,\n [`stzh-datalist--direction-${this.currentDirection}`]: !!this.currentDirection,\n [`stzh-datalist--${this.variant}`]: !!this.variant,\n [`stzh-datalist--vertical-gap-${this.verticalGap}`]: !!this.verticalGap,\n };\n\n return (\n <Host\n is-direction={this.currentDirection}\n vertical-gap={this.verticalGap}\n style={{\n \"--columns\": this.currentColumns ? this.currentColumns.toString() : null,\n }}\n >\n <div class={classes}>\n <div class=\"stzh-datalist__wrapper\">\n <div class=\"stzh-datalist__list\" role=\"list\">\n {this._items.map(item => (\n <stzh-datalist-item {...item} hasNested={!!item.items}>\n {item.items && item.items.length > 0 && <stzh-datalist items={item.items}></stzh-datalist>}\n </stzh-datalist-item>\n ))}\n <slot></slot>\n </div>\n </div>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"p-1e18dc1d.js","mappings":";;;;;;;;;;AAAA,MAAM,eAAe,GAAG,iuLAAiuL,CAAC;AAC1vL,2BAAe,eAAe;;MCoBjB,YAAY;;;;;;;QAwDf,WAAM,GAA4B,EAAE,CAAC;QAyErC,wBAAmB,GAAG;YAC5B,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC,OAAO,IAAI,IAAI,CAAC,cAAc,EAAE;gBACjD,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,cAAc,CAAC;aAC7C;iBAAM,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC,OAAO,IAAI,IAAI,CAAC,cAAc,EAAE;gBACxD,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,cAAc,CAAC;aAC7C;iBA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AE,IAAI;YACrB,qCAAqC,EAAE,IAAI,CAAC,cAAc,GAAG,CAAC;YAC9D,0BAA0B,EAAE,IAAI,CAAC,QAAQ;YACzC,CAAC,4BAA4B,IAAI,CAAC,gBAAgB,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,gBAAgB;YAC9E,CAAC,kBAAkB,IAAI,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,OAAO;YAClD,CAAC,+BAA+B,IAAI,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,WAAW;SACxE,CAAC;QAEF,QACE,EAAC,IAAI,qEACW,IAAI,CAAC,gBAAgB,kBACrB,IAAI,CAAC,WAAW,EAC9B,KAAK,EAAE;gBACL,WAAW,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC,QAAQ,EAAE,GAAG,IAAI;aACzE,IAED,4DAAK,KAAK,EAAE,OAAO,IACjB,4DAAK,KAAK,EAAC,wBAAwB,IACjC,4DAAK,KAAK,EAAC,qBAAqB,EAAC,IAAI,EAAC,MAAM,IACzC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,KACnB,0CAAwB,IAAI,IAAE,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK,KAClD,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,IAAI,qBAAe,KAAK,EAAE,IAAI,CAAC,KAAK,GAAkB,CACvE,CACtB,CAAC,EACF,8DAAa,CACT,CACF,CACF,CACD,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/stzh-datalist/stzh-datalist.scss?tag=stzh-datalist&encapsulation=scoped","src/components/stzh-datalist/stzh-datalist.tsx"],"sourcesContent":[":host {\n --columns: 1;\n --columns-gap: #{$gridGutter};\n --list-display: grid;\n --list-margin-right: calc(var(--columns-gap) / -1);\n --list-grid-template-columns: repeat(\n var(--columns),\n auto minmax(auto, 1fr) auto var(--columns-gap)\n );\n --full-grid-column: 1 / 5;\n --nested-margin-left: var(--stzh-datalist-nested-margin-left, 0px);\n --details-content-width: var(--stzh-datalist-details-content-width, 100%);\n\n --grid-template-areas: var(\n --stzh-datalist-grid-template-areas,\n \"list list list list\"\n );\n\n --grid-template-columns: var(\n --stzh-datalist-grid-template-columns,\n #{$gridColumns}\n );\n\n margin-left: var(--nested-margin-left);\n\n @include mq($from: small) {\n --columns-gap: #{$gridGutterSmall};\n\n --grid-template-areas: var(\n --stzh-datalist-grid-template-areas,\n \"list list list list\"\n );\n }\n\n @include mq($from: medium) {\n --columns-gap: #{$gridGutterMedium};\n\n --grid-template-areas: var(\n --stzh-datalist-grid-template-areas,\n \"list list list list list list list list\"\n );\n\n --grid-template-columns: var(\n --stzh-datalist-grid-template-columns,\n #{$gridColumnsMedium}\n );\n }\n\n @include mq($from: large) {\n --columns-gap: #{$gridGutterLarge};\n }\n\n @include mq($from: ultra) {\n --columns-gap: #{$gridGutterUltra};\n }\n // datalist-item or wrapper elements should be set to display: contents to make grid layout work.\n // in AEM edit mode: we prevent setting it, so the links can still be edited.\n\n ::slotted(.layout_column) > *:not([class*=\"cq-\"]),\n ::slotted(*:not([class*=\"cq-\"])) {\n display: contents;\n }\n\n &[is-direction=\"horizontal\"] {\n --list-grid-template-columns: repeat(\n var(--columns),\n auto minmax(auto, 1fr) auto auto var(--columns-gap)\n );\n --full-grid-column: 1 / 6;\n\n &:where(:has(stzh-datalist-item:not([meta=\"\"]))),\n &:where(:has(stzh-datalist-item:not([status-label=\"\"]))) {\n --list-grid-template-columns: repeat(\n var(--columns),\n auto minmax(auto, 1fr) minmax(auto, 1fr) auto var(--columns-gap)\n );\n }\n }\n\n &[variant=\"table\"] {\n --list-grid-template-columns: repeat(\n var(--columns),\n auto auto minmax(auto, 1fr) auto auto var(--columns-gap)\n );\n --full-grid-column: 1 / 7;\n\n &:where(:has(stzh-datalist-item:not([meta=\"\"]))),\n &:where(:has(stzh-datalist-item:not([status-label=\"\"]))) {\n --list-grid-template-columns: repeat(\n var(--columns),\n auto auto minmax(auto, 1fr) minmax(auto, 1fr) auto var(--columns-gap)\n );\n }\n }\n\n &[vertical-gap=\"small\"] {\n .stzh-datalist__list {\n grid-template-rows: auto;\n @include mq($to: medium) {\n row-gap: space(\"xsmall\");\n }\n @include mq($from: medium) {\n row-gap: space(\"xxsmall\");\n }\n }\n }\n}\n\n/* AEM edit mode: we set list as block element (always as one column), to prevent layout breaks */\n\n:host(:has([class*=\"cq-\"])) {\n --stzh-datalist-item-wrapper-display: flex;\n\n --list-display: block;\n --list-margin-right: 0;\n}\n\n.stzh-datalist {\n // offset margin of nested datalist\n --stzh-datalist-nested-margin-left: #{space(\"large\")};\n // details grid columns\n --stzh-details-content-grid-column: var(--full-grid-column);\n --stzh-details-content-padding-right: var(--columns-gap);\n --stzh-details-content-width: var(--details-content-width);\n\n @include gridGutter;\n display: grid;\n grid-template-areas: var(--grid-template-areas);\n grid-template-columns: var(--grid-template-columns);\n\n &__wrapper {\n grid-area: list;\n overflow: visible;\n }\n\n &__list {\n display: var(--list-display);\n border-collapse: collapse;\n grid-template-columns: var(--list-grid-template-columns);\n align-items: stretch;\n margin-right: var(--list-margin-right);\n }\n\n /* Multiple Columns */\n\n &--has-multiple-columns {\n // display of nested datalist\n --stzh-datalist-item-nested-display: none;\n }\n\n /* Table variant with big label */\n\n &--table#{&}--big-label &__list {\n @include mq($to: small) {\n --list-display: flex;\n flex-direction: column;\n gap: space(\"xxxsmall\");\n }\n }\n}\n","import { Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch } from \"@stencil/core\";\n\nimport {\n StzhDatalistBigLabelChangeEvent,\n StzhDatalistDirection,\n StzhDatalistDirectionChangeEvent,\n StzhDatalistItemEntry,\n StzhDatalistVariant,\n StzhDatalistVariantChangeEvent,\n} from \"../../index\";\n\nimport { addMediaChangeListener, media, removeMediaChangeListener } from \"../../utils/media-utils\";\n\n/**\n * @slot - Slot for any content\n */\n@Component({\n tag: \"stzh-datalist\",\n styleUrl: \"stzh-datalist.scss\",\n scoped: true,\n})\nexport class StzhDatalist {\n /** Variant */\n @Prop({ reflect: true }) variant: StzhDatalistVariant = \"default\";\n\n /** With big label */\n @Prop({ reflect: true }) bigLabel: boolean = false;\n\n /** Columns */\n @Prop({ reflect: true }) columns: number = 1;\n\n /** Columns above small breakpoint */\n @Prop({ reflect: true }) columnsSmall: number;\n\n /** Columns above medium breakpoint */\n @Prop({ reflect: true }) columnsMedium: number;\n\n /** Columns above large breakpoint */\n @Prop({ reflect: true }) columnsLarge: number;\n\n /** Columns above ultra breakpoint */\n @Prop({ reflect: true }) columnsUltra: number;\n\n /** Direction */\n @Prop({ reflect: true }) direction: StzhDatalistDirection = \"vertical\";\n\n /** Direction above small breakpoint */\n @Prop({ reflect: true }) directionSmall: StzhDatalistDirection;\n\n /** Direction above medium breakpoint */\n @Prop({ reflect: true }) directionMedium: StzhDatalistDirection;\n\n /** Direction above large breakpoint */\n @Prop({ reflect: true }) directionLarge: StzhDatalistDirection;\n\n /** Direction above ultra breakpoint */\n @Prop({ reflect: true }) directionUltra: StzhDatalistDirection;\n /**Vertical Gap between items */\n @Prop({ reflect: true }) verticalGap: \"default\" | \"small\" = \"default\";\n\n /**\n * Whether to disable min-width of datalist item label for the `horizontal` variant.\n *\n * If `false`, the default `min-width` is `144px` (for >= 800px) and `120px` (for < 800px).\n * If `true`, the `min-width` is `none`, so the label column, will have the width of cell with the widest content.\n *\n * You can also overwrite the label min-width via CSS with the custom property `--item-label-min-width`.\n */\n // @Prop({ reflect: true }) disableLabelMinWidth: boolean = false;\n\n /**\n * Items in datalist\n * Array of objects that must at least include `value` attribute.\n * Can optionally contain `leadingIcon`, `label`, `meta`, `icon`, `iconLabel`, `iconTooltip`, `href`, `statusLabel`, `statusType` attribute and be nested to display deeper levels:\n * `[{\"value\":\"Value 1\", \"label\": \"Label 1\"}, {\"value\":\"Value 2\", \"label\": \"Label 2\", \"items\": [...]}]`\n */\n @Prop() items: StzhDatalistItemEntry[] | string = [];\n private _items: StzhDatalistItemEntry[] = [];\n\n /** Variant attribute change event */\n @Event() stzhVariantChange: EventEmitter<StzhDatalistVariantChangeEvent>;\n\n /** Big label attribute change event */\n @Event() stzhBigLabelChange: EventEmitter<StzhDatalistBigLabelChangeEvent>;\n\n /** Direction attribute change event */\n @Event() stzhDirectionChange: EventEmitter<StzhDatalistDirectionChangeEvent>;\n\n @Element() element: HTMLStzhDatalistElement;\n\n @Watch(\"direction\")\n @Watch(\"directionSmall\")\n @Watch(\"directionMedium\")\n @Watch(\"directionLarge\")\n @Watch(\"directionUltra\")\n directionWatcher() {\n this.setCurrentDirection();\n }\n\n @Watch(\"columns\")\n @Watch(\"columnsSmall\")\n @Watch(\"columnsMedium\")\n @Watch(\"columnsLarge\")\n @Watch(\"columnsUltra\")\n columnsWatcher() {\n this.setCurrentColumns();\n }\n\n @Watch(\"currentDirection\")\n currentDirectionWatcher(newValue: StzhDatalistDirection) {\n this.stzhDirectionChange.emit({\n component: \"stzh-datalist\",\n value: newValue,\n });\n }\n\n @Watch(\"variant\")\n variantWatcher(newValue: StzhDatalistVariant) {\n this.stzhVariantChange.emit({\n component: \"stzh-datalist\",\n value: newValue,\n });\n }\n\n @Watch(\"bigLabel\")\n bigLabelWatcher(newValue: boolean) {\n this.stzhBigLabelChange.emit({\n component: \"stzh-datalist\",\n value: newValue,\n });\n }\n\n @Watch(\"items\")\n itemsWatcher(newValue: any[] | string) {\n if (typeof newValue === \"string\") {\n this._items = JSON.parse(newValue);\n } else {\n this._items = newValue;\n }\n }\n\n /** Get current direction */\n @Method()\n async getCurrentDirection() {\n return this.currentDirection;\n }\n\n @State() currentColumns: number = 1;\n @State() currentDirection: StzhDatalistDirection;\n\n private setCurrentDirection = () => {\n if (media(\"ultra\").matches && this.directionUltra) {\n this.currentDirection = this.directionUltra;\n } else if (media(\"large\").matches && this.directionLarge) {\n this.currentDirection = this.directionLarge;\n } else if (media(\"medium\").matches && this.directionMedium) {\n this.currentDirection = this.directionMedium;\n } else if (media(\"small\").matches && this.directionSmall) {\n this.currentDirection = this.directionSmall;\n } else {\n this.currentDirection = this.direction;\n }\n };\n\n private setCurrentColumns = () => {\n if (media(\"ultra\").matches && this.columnsUltra) {\n this.currentColumns = this.columnsUltra;\n } else if (media(\"large\").matches && this.columnsLarge) {\n this.currentColumns = this.columnsLarge;\n } else if (media(\"medium\").matches && this.columnsMedium) {\n this.currentColumns = this.columnsMedium;\n } else if (media(\"small\").matches && this.columnsSmall) {\n this.currentColumns = this.columnsSmall;\n } else {\n this.currentColumns = this.columns;\n }\n };\n\n resizeHandler = () => {\n this.setCurrentDirection();\n this.setCurrentColumns();\n };\n\n async componentWillLoad() {\n this.itemsWatcher(this.items);\n this.bigLabelWatcher(this.bigLabel);\n this.resizeHandler();\n }\n\n connectedCallback() {\n addMediaChangeListener(this.resizeHandler);\n }\n\n disconnectedCallback() {\n removeMediaChangeListener(this.resizeHandler);\n }\n\n render() {\n const classes = {\n \"stzh-datalist\": true,\n \"stzh-datalist--has-multiple-columns\": this.currentColumns > 1,\n \"stzh-datalist--big-label\": this.bigLabel,\n [`stzh-datalist--direction-${this.currentDirection}`]: !!this.currentDirection,\n [`stzh-datalist--${this.variant}`]: !!this.variant,\n [`stzh-datalist--vertical-gap-${this.verticalGap}`]: !!this.verticalGap,\n };\n\n return (\n <Host\n is-direction={this.currentDirection}\n vertical-gap={this.verticalGap}\n style={{\n \"--columns\": this.currentColumns ? this.currentColumns.toString() : null,\n }}\n >\n <div class={classes}>\n <div class=\"stzh-datalist__wrapper\">\n <div class=\"stzh-datalist__list\" role=\"list\">\n {this._items.map(item => (\n <stzh-datalist-item {...item} hasNested={!!item.items}>\n {item.items && item.items.length > 0 && <stzh-datalist items={item.items}></stzh-datalist>}\n </stzh-datalist-item>\n ))}\n <slot></slot>\n </div>\n </div>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -1,6 +1,6 @@
1
1
  import { p as proxyCustomElement, H, c as createEvent, h, F as Fragment, d as Host } from './p-8f01554b.js';
2
2
  import { h as hasSlot } from './p-289f5de2.js';
3
- import { d as defineCustomElement$2 } from './p-b8fda153.js';
3
+ import { d as defineCustomElement$2 } from './p-6a1a040f.js';
4
4
  import { d as defineCustomElement$1 } from './p-60d4ef07.js';
5
5
 
6
6
  const stzhMenuItemCss = ".sc-stzh-menu-item-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-menu-item-h,[stzh-hidden].sc-stzh-menu-item-h{display:none}.sc-stzh-menu-item-h::selection{color:var(--stzh-selection-color);background-color:var(--stzh-selection-background-color)}.sc-stzh-menu-item-h *.sc-stzh-menu-item,.sc-stzh-menu-item-h *.sc-stzh-menu-item::before,.sc-stzh-menu-item-h *.sc-stzh-menu-item::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-menu-item-h .has-focus.sc-stzh-menu-item{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.125rem}.sc-stzh-menu-item-h .stzh-fylingfocus-focused.sc-stzh-menu-item{outline-style:none !important}.sc-stzh-menu-item-h .stzh-fylingfocus-focused.sc-stzh-menu-item::-moz-focus-inner{border:0 !important}.sc-stzh-menu-item-h{--height:var(--stzh-menu-item-height);--color:var(--stzh-color-black);--background-color:transparent;--icon-size:var(--stzh-icon-size-small);--padding-top:var(--stzh-space-xsmall);--padding-bottom:var(--stzh-space-xsmall);--padding-left:var(--stzh-space-large);--padding-right:var(--stzh-space-large);--hover-color:var(--stzh-popover-item-hover-color, var(--stzh-color-black));--hover-background-color:var(--stzh-popover-item-hover-bg, var(--stzh-color-grey20))}[size=large].sc-stzh-menu-item-h{--icon-size:var(--stzh-icon-size);--height:var(--stzh-menu-large-item-height);--padding-left:var(--stzh-space-xlarge);--padding-right:var(--stzh-space-xlarge)}[variant=secondary].sc-stzh-menu-item-h{--color:var(--stzh-color-primary70);--hover-color:var(--stzh-color-primary70);--hover-background-color:var(--stzh-color-secondary30)}[active].sc-stzh-menu-item-h:not([active=false]){--color:var(--stzh-color-primary70);--hover-color:var(--stzh-color-primary70);--hover-background-color:var(--stzh-color-grey20)}[disabled].sc-stzh-menu-item-h:not([disabled=false]){--color:var(--stzh-color-grey70);--background-color:var(--stzh-color-grey10);--hover-color:var(--stzh-color-grey70);--hover-background-color:var(--stzh-color-grey10)}.stzh-menu-item.sc-stzh-menu-item{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);font-family:inherit;display:flex;gap:var(--stzh-space-small);align-items:center;justify-content:stretch;appearance:none;-webkit-text-decoration-line:none;text-decoration-line:none;border:none;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);padding-left:var(--padding-left);padding-right:var(--padding-right);color:var(--color);background-color:var(--background-color);width:100%;height:var(--height);line-height:var(--height);transition-duration:var(--stzh-base-transition-animation-speed);transition-property:color, background-color, border-color;cursor:pointer}.stzh-menu-item.sc-stzh-menu-item:hover{color:var(--hover-color);background-color:var(--hover-background-color)}.stzh-menu-item__icon-wrapper.sc-stzh-menu-item{--stzh-icon-size:var(--icon-size);position:relative;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:auto;height:1em}.stzh-menu-item__badge.sc-stzh-menu-item{position:absolute;z-index:1;top:calc(var(--stzh-space-xsmall) * -1);right:calc(var(--stzh-space-xsmall) * -1)}.stzh-menu-item__text-wrapper.sc-stzh-menu-item{display:flex;gap:var(--stzh-space-xsmall)}.stzh-menu-item__counter.sc-stzh-menu-item{font-family:var(--stzh-font-family-medium);font-weight:var(--stzh-font-weight-medium);font-style:var(--stzh-font-style-medium)}.stzh-menu-item__text.sc-stzh-menu-item{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.stzh-menu-item--size-large.sc-stzh-menu-item{font-size:var(--stzh-font-milli-font-size);line-height:var(--stzh-font-milli-text-line-height);letter-spacing:var(--stzh-font-curve---text-letter-spacing);gap:var(--stzh-space-medium)}.stzh-menu-item--is-disabled.sc-stzh-menu-item{cursor:not-allowed}";
@@ -133,4 +133,4 @@ function defineCustomElement() {
133
133
 
134
134
  export { StzhMenuItem as S, defineCustomElement as d };
135
135
 
136
- //# sourceMappingURL=p-5c7c4130.js.map
136
+ //# sourceMappingURL=p-2b549cf6.js.map
@@ -1 +1 @@
1
- {"file":"p-5c7c4130.js","mappings":";;;;;AAAA,MAAM,eAAe,GAAG,ipIAAipI,CAAC;AAC1qI,2BAAe,eAAe;;MCqBjB,YAAY;;;;;;;QA6Df,mBAAc,GAAY,KAAK,CAAC;QAEhC,gBAAW,GAAG;YACpB,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE;gBACxB,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC;aACvB;YAED,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC;SAC7B,CAAC;QAEM,YAAO,GAAG,CAAC,KAAiB;YAClC,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC;YAE3B,MAAM,UAAU,GAAG,IAAI,UAAU,CAAC,OAAO,EAAE;gBACzC,IAAI,EAAE,MAAM;gBACZ,OAAO,EAAE,KAAK;gBACd,UAAU,EAAE,KAAK;aAClB,CAAC,CAAC;YAEH,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;YACvC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;gBAClB,SAAS,EAAE,gBAAgB;gBAC3B,aAAa,EAAE,KAAK;aACrB,CAAC,CAAC;SACJ,CAAC;QAEM,WAAM,GAAG,CAAC,KAAiB;YAC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CAAC,IAAI,EACtC,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,KAAK,EAAE,OAAO,gBACF,IAAI,CAAC,SAAS,IAAI,IAAI,EAClC,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,OAAO,EAAE,IAAI,CAAC,OAAO,IAEpB,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CACzB,KAEJ,cACE,GAAG,EAAE,EAAE,KAAK,IAAI,CAAC,QAAQ,GAAG,EAAuB,CAAC,EACpD,KAAK,EAAE,OAAO,EACd,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAE,IAAI,CAAC,QAAQ,gBACX,IAAI,CAAC,SAAS,IAAI,IAAI,EAClC,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,OAAO,EAAE,IAAI,CAAC,OAAO,IAEpB,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CACpB,CACV,CACI,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/stzh-menu-item/stzh-menu-item.scss?tag=stzh-menu-item&encapsulation=scoped","src/components/stzh-menu-item/stzh-menu-item.tsx"],"sourcesContent":["/**\n * @prop --height: Height of item\n * @prop --icon-size: Size of icon next to item\n * @prop --color: Color of item\n * @prop --background-color: Background color of item\n * @prop --hover-color: Hover color of item\n * @prop --hover-background-color: Hover background color of item\n *\n * @prop --stzh-menu-item-height: **Global**: Height of items\n */\n\n:host {\n --height: var(--stzh-menu-item-height);\n --color: #{$colorBlack};\n --background-color: transparent;\n --icon-size: #{iconSize(\"small\")};\n --padding-top: #{space(\"xsmall\")};\n --padding-bottom: #{space(\"xsmall\")};\n --padding-left: #{space(\"large\")};\n --padding-right: #{space(\"large\")};\n\n --hover-color: var(--stzh-popover-item-hover-color, #{$colorBlack});\n --hover-background-color: var(--stzh-popover-item-hover-bg, #{$colorGrey20});\n\n &[size=\"large\"] {\n --icon-size: #{iconSize()};\n --height: var(--stzh-menu-large-item-height);\n --padding-left: #{space(\"xlarge\")};\n --padding-right: #{space(\"xlarge\")};\n }\n\n &[variant=\"secondary\"] {\n --color: #{$colorPrimary70};\n\n --hover-color: #{$colorPrimary70};\n --hover-background-color: #{$colorSecondary30};\n }\n\n &[active]:not([active=\"false\"]) {\n --color: #{$colorPrimary70};\n --hover-color: #{$colorPrimary70};\n --hover-background-color: #{$colorGrey20};\n }\n\n &[disabled]:not([disabled=\"false\"]) {\n --color: #{$colorGrey70};\n --background-color: #{$colorGrey10};\n\n --hover-color: #{$colorGrey70};\n --hover-background-color: #{$colorGrey10};\n }\n}\n\n.stzh-menu-item {\n @include fontSize(\"micro\");\n font-family: inherit;\n display: flex;\n gap: space(\"small\");\n align-items: center;\n justify-content: stretch;\n appearance: none;\n text-decoration-line: none;\n border: none;\n padding-top: var(--padding-top);\n padding-bottom: var(--padding-bottom);\n padding-left: var(--padding-left);\n padding-right: var(--padding-right);\n color: var(--color);\n background-color: var(--background-color);\n width: 100%;\n height: var(--height);\n line-height: var(--height);\n transition-duration: $baseTransitionAnimationSpeed;\n transition-property: color, background-color, border-color;\n cursor: pointer;\n\n &:hover {\n color: var(--hover-color);\n background-color: var(--hover-background-color);\n }\n\n &__icon-wrapper {\n --stzh-icon-size: var(--icon-size);\n\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n width: auto;\n height: 1em;\n }\n\n &__badge {\n position: absolute;\n z-index: 1;\n top: calc(#{space(\"xsmall\")} * -1);\n right: calc(#{space(\"xsmall\")} * -1);\n }\n\n &__text-wrapper {\n display: flex;\n gap: space(\"xsmall\");\n }\n\n &__counter {\n @include font;\n }\n\n &__text {\n @include truncate;\n }\n\n /* Large variant */\n\n &--size-large {\n @include fontSize(\"milli\");\n gap: space(\"medium\");\n }\n\n /* Disabled variant */\n\n &--is-disabled {\n cursor: not-allowed;\n }\n}\n","import { Component, Host, h, Prop, Element, Fragment, Event, EventEmitter } from \"@stencil/core\";\n\nimport {\n StzhMenuItemFocusEvent,\n StzhMenuItemBlurEvent,\n StzhMenuItemClickEvent,\n StzhBadgeType,\n StzhMenuSize,\n StzhMenuVariant,\n} from \"../../index\";\n\nimport { hasSlot } from \"../../utils/utils\";\n\n/**\n * @slot - Slot for any content\n * @slot icon - Slot for `stzh-icon` element\n */\n@Component({\n tag: \"stzh-menu-item\",\n styleUrl: \"stzh-menu-item.scss\",\n scoped: true,\n})\nexport class StzhMenuItem {\n /** Variant */\n @Prop({ reflect: true }) variant: StzhMenuVariant = \"default\";\n\n /** Size */\n @Prop({ reflect: true }) size: StzhMenuSize = \"default\";\n\n /** Counter */\n @Prop() counter: number;\n\n /** Badge (only displayed if `icon` property or icon slot is used) */\n @Prop() badge: string = \"\";\n\n /** Badge type */\n @Prop({ reflect: true }) badgeType: StzhBadgeType = \"default\";\n\n /** Whether badge should be displayed empty */\n @Prop({ reflect: true }) badgeEmpty: boolean = false;\n\n /** Whether the button is disabled */\n @Prop({ reflect: true }) disabled: boolean = false;\n\n /** Whether the button is active */\n @Prop({ reflect: true }) active: boolean = false;\n\n /** Icon (use instead of icon slot) */\n @Prop() icon: string = \"\";\n\n /** Label */\n @Prop() label: string = \"\";\n\n /** `href` if the button should be used as link */\n @Prop() href: string = \"\";\n\n /** Target if the button is used as link (if `href` used) */\n @Prop() target: string = \"\";\n\n /** Accessible label for screen readers to replace visible text */\n @Prop({ attribute: \"a11y-label\" }) a11yLabel: string;\n\n /**\n * For Adobe Analytics.\n * Will be rendered as value of `s-object-id` attribute to the link/button element.\n * Default value will be taken from `label` prop or default slot.\n */\n @Prop() analyticsId: string;\n\n @Element() element: HTMLStzhMenuItemElement;\n\n /** Focus event */\n @Event() stzhFocus: EventEmitter<StzhMenuItemFocusEvent>;\n\n /** Blur event */\n @Event() stzhBlur: EventEmitter<StzhMenuItemBlurEvent>;\n\n /** Click event */\n @Event() stzhClick: EventEmitter<StzhMenuItemClickEvent>;\n\n private menuItem: HTMLButtonElement | HTMLAnchorElement;\n private text: HTMLDivElement;\n\n private focusedByInput: boolean = false;\n\n private onRootFocus = () => {\n if (!this.focusedByInput) {\n this.menuItem.focus();\n }\n\n this.focusedByInput = false;\n };\n\n private onFocus = (event: FocusEvent) => {\n this.focusedByInput = true;\n\n const focusEvent = new FocusEvent(\"focus\", {\n view: window,\n bubbles: false,\n cancelable: false,\n });\n\n this.element.dispatchEvent(focusEvent);\n this.stzhFocus.emit({\n component: \"stzh-menu-item\",\n originalEvent: event,\n });\n };\n\n private onBlur = (event: FocusEvent) => {\n const blurEvent = new FocusEvent(\"blur\", {\n view: window,\n bubbles: false,\n cancelable: false,\n });\n\n this.element.dispatchEvent(blurEvent);\n this.stzhBlur.emit({\n component: \"stzh-menu-item\",\n originalEvent: event,\n });\n };\n\n private onClick = (event: MouseEvent) => {\n this.stzhClick.emit({\n component: \"stzh-menu-item\",\n originalEvent: event,\n href: this.href,\n });\n };\n\n componentDidRender() {\n requestAnimationFrame(() => {\n this.menuItem?.setAttribute(\"s-object-id\", this.analyticsId || this.text.innerText);\n });\n }\n\n private renderInner(iconUsed: boolean): DocumentFragment {\n return (\n <Fragment>\n {iconUsed && (\n <div class=\"stzh-menu-item__icon-wrapper\">\n {this.icon ? (\n <stzh-icon class=\"stzh-menu-item__icon\" name={this.icon}></stzh-icon>\n ) : (\n <slot name=\"icon\"></slot>\n )}\n {(this.badge || this.badgeEmpty) && (\n <stzh-badge class=\"stzh-menu-item__badge\" label={this.badge} type={this.badgeType}></stzh-badge>\n )}\n </div>\n )}\n <div class=\"stzh-menu-item__text-wrapper\">\n <div ref={el => (this.text = el as HTMLDivElement)} class=\"stzh-menu-item__text\">\n {this.label ? this.label : <slot></slot>}\n </div>\n {this.counter !== undefined && this.counter > 0 && (\n <div class=\"stzh-menu-item__counter\">({this.counter})</div>\n )}\n </div>\n </Fragment>\n );\n }\n\n render() {\n const iconUsed: boolean = hasSlot(this.element, \"icon\") || !!this.icon;\n const classes = {\n \"stzh-menu-item\": true,\n \"stzh-menu-item--has-icon\": iconUsed,\n \"stzh-menu-item--has-badge\": !!this.badge,\n \"stzh-menu-item--is-disabled\": this.disabled,\n \"stzh-menu-item--is-active\": this.active,\n [`stzh-menu-item--size-${this.size}`]: !!this.size,\n [`stzh-menu-item--${this.variant}`]: !!this.variant,\n };\n\n return (\n <Host role=\"menuitem\" tabindex={this.disabled ? null : \"-1\"} onFocus={this.onRootFocus}>\n {this.href ? (\n <a\n ref={el => (this.menuItem = el as HTMLAnchorElement)}\n href={this.disabled ? null : this.href}\n target={this.target}\n class={classes}\n aria-label={this.a11yLabel || null}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n onClick={this.onClick}\n >\n {this.renderInner(iconUsed)}\n </a>\n ) : (\n <button\n ref={el => (this.menuItem = el as HTMLButtonElement)}\n class={classes}\n type=\"button\"\n disabled={this.disabled}\n aria-label={this.a11yLabel || null}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n onClick={this.onClick}\n >\n {this.renderInner(iconUsed)}\n </button>\n )}\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"p-2b549cf6.js","mappings":";;;;;AAAA,MAAM,eAAe,GAAG,ipIAAipI,CAAC;AAC1qI,2BAAe,eAAe;;MCqBjB,YAAY;;;;;;;QA6Df,mBAAc,GAAY,KAAK,CAAC;QAEhC,gBAAW,GAAG;YACpB,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE;gBACxB,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC;aACvB;YAED,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC;SAC7B,CAAC;QAEM,YAAO,GAAG,CAAC,KAAiB;YAClC,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC;YAE3B,MAAM,UAAU,GAAG,IAAI,UAAU,CAAC,OAAO,EAAE;gBACzC,IAAI,EAAE,MAAM;gBACZ,OAAO,EAAE,KAAK;gBACd,UAAU,EAAE,KA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AAE,IAAI,CAAC,QAAQ,GAAG,IAAI,GAAG,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,WAAW,IACnF,IAAI,CAAC,IAAI,IACR,SACE,GAAG,EAAE,EAAE,KAAK,IAAI,CAAC,QAAQ,GAAG,EAAuB,CAAC,EACpD,IAAI,EAAE,IAAI,CAAC,QAAQ,GAAG,IAAI,GAAG,IAAI,CAAC,IAAI,EACtC,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,KAAK,EAAE,OAAO,gBACF,IAAI,CAAC,SAAS,IAAI,IAAI,EAClC,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,OAAO,EAAE,IAAI,CAAC,OAAO,IAEpB,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CACzB,KAEJ,cACE,GAAG,EAAE,EAAE,KAAK,IAAI,CAAC,QAAQ,GAAG,EAAuB,CAAC,EACpD,KAAK,EAAE,OAAO,EACd,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAE,IAAI,CAAC,QAAQ,gBACX,IAAI,CAAC,SAAS,IAAI,IAAI,EAClC,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,OAAO,EAAE,IAAI,CAAC,OAAO,IAEpB,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CACpB,CACV,CACI,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/stzh-menu-item/stzh-menu-item.scss?tag=stzh-menu-item&encapsulation=scoped","src/components/stzh-menu-item/stzh-menu-item.tsx"],"sourcesContent":["/**\n * @prop --height: Height of item\n * @prop --icon-size: Size of icon next to item\n * @prop --color: Color of item\n * @prop --background-color: Background color of item\n * @prop --hover-color: Hover color of item\n * @prop --hover-background-color: Hover background color of item\n *\n * @prop --stzh-menu-item-height: **Global**: Height of items\n */\n\n:host {\n --height: var(--stzh-menu-item-height);\n --color: #{$colorBlack};\n --background-color: transparent;\n --icon-size: #{iconSize(\"small\")};\n --padding-top: #{space(\"xsmall\")};\n --padding-bottom: #{space(\"xsmall\")};\n --padding-left: #{space(\"large\")};\n --padding-right: #{space(\"large\")};\n\n --hover-color: var(--stzh-popover-item-hover-color, #{$colorBlack});\n --hover-background-color: var(--stzh-popover-item-hover-bg, #{$colorGrey20});\n\n &[size=\"large\"] {\n --icon-size: #{iconSize()};\n --height: var(--stzh-menu-large-item-height);\n --padding-left: #{space(\"xlarge\")};\n --padding-right: #{space(\"xlarge\")};\n }\n\n &[variant=\"secondary\"] {\n --color: #{$colorPrimary70};\n\n --hover-color: #{$colorPrimary70};\n --hover-background-color: #{$colorSecondary30};\n }\n\n &[active]:not([active=\"false\"]) {\n --color: #{$colorPrimary70};\n --hover-color: #{$colorPrimary70};\n --hover-background-color: #{$colorGrey20};\n }\n\n &[disabled]:not([disabled=\"false\"]) {\n --color: #{$colorGrey70};\n --background-color: #{$colorGrey10};\n\n --hover-color: #{$colorGrey70};\n --hover-background-color: #{$colorGrey10};\n }\n}\n\n.stzh-menu-item {\n @include fontSize(\"micro\");\n font-family: inherit;\n display: flex;\n gap: space(\"small\");\n align-items: center;\n justify-content: stretch;\n appearance: none;\n text-decoration-line: none;\n border: none;\n padding-top: var(--padding-top);\n padding-bottom: var(--padding-bottom);\n padding-left: var(--padding-left);\n padding-right: var(--padding-right);\n color: var(--color);\n background-color: var(--background-color);\n width: 100%;\n height: var(--height);\n line-height: var(--height);\n transition-duration: $baseTransitionAnimationSpeed;\n transition-property: color, background-color, border-color;\n cursor: pointer;\n\n &:hover {\n color: var(--hover-color);\n background-color: var(--hover-background-color);\n }\n\n &__icon-wrapper {\n --stzh-icon-size: var(--icon-size);\n\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n width: auto;\n height: 1em;\n }\n\n &__badge {\n position: absolute;\n z-index: 1;\n top: calc(#{space(\"xsmall\")} * -1);\n right: calc(#{space(\"xsmall\")} * -1);\n }\n\n &__text-wrapper {\n display: flex;\n gap: space(\"xsmall\");\n }\n\n &__counter {\n @include font;\n }\n\n &__text {\n @include truncate;\n }\n\n /* Large variant */\n\n &--size-large {\n @include fontSize(\"milli\");\n gap: space(\"medium\");\n }\n\n /* Disabled variant */\n\n &--is-disabled {\n cursor: not-allowed;\n }\n}\n","import { Component, Host, h, Prop, Element, Fragment, Event, EventEmitter } from \"@stencil/core\";\n\nimport {\n StzhMenuItemFocusEvent,\n StzhMenuItemBlurEvent,\n StzhMenuItemClickEvent,\n StzhBadgeType,\n StzhMenuSize,\n StzhMenuVariant,\n} from \"../../index\";\n\nimport { hasSlot } from \"../../utils/utils\";\n\n/**\n * @slot - Slot for any content\n * @slot icon - Slot for `stzh-icon` element\n */\n@Component({\n tag: \"stzh-menu-item\",\n styleUrl: \"stzh-menu-item.scss\",\n scoped: true,\n})\nexport class StzhMenuItem {\n /** Variant */\n @Prop({ reflect: true }) variant: StzhMenuVariant = \"default\";\n\n /** Size */\n @Prop({ reflect: true }) size: StzhMenuSize = \"default\";\n\n /** Counter */\n @Prop() counter: number;\n\n /** Badge (only displayed if `icon` property or icon slot is used) */\n @Prop() badge: string = \"\";\n\n /** Badge type */\n @Prop({ reflect: true }) badgeType: StzhBadgeType = \"default\";\n\n /** Whether badge should be displayed empty */\n @Prop({ reflect: true }) badgeEmpty: boolean = false;\n\n /** Whether the button is disabled */\n @Prop({ reflect: true }) disabled: boolean = false;\n\n /** Whether the button is active */\n @Prop({ reflect: true }) active: boolean = false;\n\n /** Icon (use instead of icon slot) */\n @Prop() icon: string = \"\";\n\n /** Label */\n @Prop() label: string = \"\";\n\n /** `href` if the button should be used as link */\n @Prop() href: string = \"\";\n\n /** Target if the button is used as link (if `href` used) */\n @Prop() target: string = \"\";\n\n /** Accessible label for screen readers to replace visible text */\n @Prop({ attribute: \"a11y-label\" }) a11yLabel: string;\n\n /**\n * For Adobe Analytics.\n * Will be rendered as value of `s-object-id` attribute to the link/button element.\n * Default value will be taken from `label` prop or default slot.\n */\n @Prop() analyticsId: string;\n\n @Element() element: HTMLStzhMenuItemElement;\n\n /** Focus event */\n @Event() stzhFocus: EventEmitter<StzhMenuItemFocusEvent>;\n\n /** Blur event */\n @Event() stzhBlur: EventEmitter<StzhMenuItemBlurEvent>;\n\n /** Click event */\n @Event() stzhClick: EventEmitter<StzhMenuItemClickEvent>;\n\n private menuItem: HTMLButtonElement | HTMLAnchorElement;\n private text: HTMLDivElement;\n\n private focusedByInput: boolean = false;\n\n private onRootFocus = () => {\n if (!this.focusedByInput) {\n this.menuItem.focus();\n }\n\n this.focusedByInput = false;\n };\n\n private onFocus = (event: FocusEvent) => {\n this.focusedByInput = true;\n\n const focusEvent = new FocusEvent(\"focus\", {\n view: window,\n bubbles: false,\n cancelable: false,\n });\n\n this.element.dispatchEvent(focusEvent);\n this.stzhFocus.emit({\n component: \"stzh-menu-item\",\n originalEvent: event,\n });\n };\n\n private onBlur = (event: FocusEvent) => {\n const blurEvent = new FocusEvent(\"blur\", {\n view: window,\n bubbles: false,\n cancelable: false,\n });\n\n this.element.dispatchEvent(blurEvent);\n this.stzhBlur.emit({\n component: \"stzh-menu-item\",\n originalEvent: event,\n });\n };\n\n private onClick = (event: MouseEvent) => {\n this.stzhClick.emit({\n component: \"stzh-menu-item\",\n originalEvent: event,\n href: this.href,\n });\n };\n\n componentDidRender() {\n requestAnimationFrame(() => {\n this.menuItem?.setAttribute(\"s-object-id\", this.analyticsId || this.text.innerText);\n });\n }\n\n private renderInner(iconUsed: boolean): DocumentFragment {\n return (\n <Fragment>\n {iconUsed && (\n <div class=\"stzh-menu-item__icon-wrapper\">\n {this.icon ? (\n <stzh-icon class=\"stzh-menu-item__icon\" name={this.icon}></stzh-icon>\n ) : (\n <slot name=\"icon\"></slot>\n )}\n {(this.badge || this.badgeEmpty) && (\n <stzh-badge class=\"stzh-menu-item__badge\" label={this.badge} type={this.badgeType}></stzh-badge>\n )}\n </div>\n )}\n <div class=\"stzh-menu-item__text-wrapper\">\n <div ref={el => (this.text = el as HTMLDivElement)} class=\"stzh-menu-item__text\">\n {this.label ? this.label : <slot></slot>}\n </div>\n {this.counter !== undefined && this.counter > 0 && (\n <div class=\"stzh-menu-item__counter\">({this.counter})</div>\n )}\n </div>\n </Fragment>\n );\n }\n\n render() {\n const iconUsed: boolean = hasSlot(this.element, \"icon\") || !!this.icon;\n const classes = {\n \"stzh-menu-item\": true,\n \"stzh-menu-item--has-icon\": iconUsed,\n \"stzh-menu-item--has-badge\": !!this.badge,\n \"stzh-menu-item--is-disabled\": this.disabled,\n \"stzh-menu-item--is-active\": this.active,\n [`stzh-menu-item--size-${this.size}`]: !!this.size,\n [`stzh-menu-item--${this.variant}`]: !!this.variant,\n };\n\n return (\n <Host role=\"menuitem\" tabindex={this.disabled ? null : \"-1\"} onFocus={this.onRootFocus}>\n {this.href ? (\n <a\n ref={el => (this.menuItem = el as HTMLAnchorElement)}\n href={this.disabled ? null : this.href}\n target={this.target}\n class={classes}\n aria-label={this.a11yLabel || null}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n onClick={this.onClick}\n >\n {this.renderInner(iconUsed)}\n </a>\n ) : (\n <button\n ref={el => (this.menuItem = el as HTMLButtonElement)}\n class={classes}\n type=\"button\"\n disabled={this.disabled}\n aria-label={this.a11yLabel || null}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n onClick={this.onClick}\n >\n {this.renderInner(iconUsed)}\n </button>\n )}\n </Host>\n );\n }\n}\n"],"version":3}
@@ -1,6 +1,6 @@
1
1
  import { p as proxyCustomElement, H, c as createEvent, h, F as Fragment, d as Host } from './p-8f01554b.js';
2
2
  import { a as addWordBreakToLinks, h as hasSlot } from './p-289f5de2.js';
3
- import { d as defineCustomElement$2 } from './p-b8fda153.js';
3
+ import { d as defineCustomElement$2 } from './p-6a1a040f.js';
4
4
  import { d as defineCustomElement$1 } from './p-60d4ef07.js';
5
5
 
6
6
  const stzhLinkCss = "@charset \"UTF-8\";.sc-stzh-link-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-link-h,[stzh-hidden].sc-stzh-link-h{display:none}.sc-stzh-link-h::selection{color:var(--stzh-selection-color);background-color:var(--stzh-selection-background-color)}.sc-stzh-link-h *.sc-stzh-link,.sc-stzh-link-h *.sc-stzh-link::before,.sc-stzh-link-h *.sc-stzh-link::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-link-h .has-focus.sc-stzh-link{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.125rem}.sc-stzh-link-h .stzh-fylingfocus-focused.sc-stzh-link{outline-style:none !important}.sc-stzh-link-h .stzh-fylingfocus-focused.sc-stzh-link::-moz-focus-inner{border:0 !important}.sc-stzh-link-h{--font-size:var(--stzh-font-milli-font-size);--line-height:var(--stzh-font-milli-text-line-height);--letter-spacing:normal;--color:var(--stzh-link-color);--text-decoration-line:var(--stzh-link-text-decoration-line);--icon-wrapper-height:var(--stzh-link-icon-wrapper-height);--icon-size:var(--stzh-link-icon-size);--height:var(--stzh-link-height, 40px);--hover-color:var(--stzh-link-hover-color);--hover-text-decoration-line:var(--stzh-link-hover-text-decoration-line);color:var(--color);display:inline-grid;width:auto;min-height:var(--height);pointer-events:var(--stzh-link-pointer-events, auto)}@media screen and (min-width: 900px){.sc-stzh-link-h{--font-size:var(--stzh-font-centi-font-size);--line-height:var(--stzh-font-centi-text-line-height);--letter-spacing:normal}}@media screen and (min-width: 900px){.sc-stzh-link-h{--height:var(--stzh-link-height, auto)}}[height=auto].sc-stzh-link-h{--height:var(--stzh-link-auto-height, auto)}[fullwidth].sc-stzh-link-h:not([fullwidth=false]){width:100%;display:grid}[variant=secondary].sc-stzh-link-h{--color:var(--stzh-link-secondary-color);--hover-color:var(--stzh-link-secondary-hover-color)}[variant=back].sc-stzh-link-h{--text-decoration-line:none;--hover-color:var(--color)}[active].sc-stzh-link-h:not([active=false]){--color:var(--hover-color)}[disabled].sc-stzh-link-h:not([disabled=false]){--color:var(--stzh-color-grey60);--hover-color:var(--stzh-color-grey60)}.sc-stzh-link-h:where([size=small]){--font-size:var(--stzh-font-micro-font-size);--line-height:var(--stzh-font-micro-text-line-height);--letter-spacing:normal}.sc-stzh-link-h:where([size=inherit]){--font-size:inherit;--line-height:inherit;--letter-spacing:inherit}.stzh-link.sc-stzh-link{font-size:var(--font-size);line-height:var(--line-height);letter-spacing:var(--letter-spacing);font-family:inherit;position:relative;display:flex;align-items:center;justify-content:stretch;appearance:none;border:none;color:var(--color);transition:color var(--stzh-base-transition-animation-speed);cursor:pointer;width:100%;-webkit-text-decoration-line:none;text-decoration-line:none;background-color:transparent;padding:0;border-radius:var(--stzh-button-border-radius);text-align:left}.stzh-link.sc-stzh-link:hover{color:var(--hover-color)}@media (hover: none){.stzh-link.sc-stzh-link:hover{color:inherit}}.stzh-link.sc-stzh-link:hover .stzh-link__text.sc-stzh-link{-webkit-text-decoration-line:var(--hover-text-decoration-line);text-decoration-line:var(--hover-text-decoration-line)}.stzh-link__vhidden.sc-stzh-link{border:0;clip:rect(0 0 0 0);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-link__inner.sc-stzh-link{display:flex;align-items:center;justify-content:center;flex-grow:1}.stzh-link__icon-wrapper.sc-stzh-link{--stzh-icon-size:var(--icon-size);display:none;align-items:center;justify-content:center;flex-shrink:0;width:auto;height:var(--icon-wrapper-height)}.stzh-link__text.sc-stzh-link{--stzh-base-color:initial;-webkit-text-decoration-line:var(--text-decoration-line);text-decoration-line:var(--text-decoration-line)}.stzh-link__icon-wrapper.sc-stzh-link:not(:empty)+.stzh-link__text.sc-stzh-link:not(:empty),.stzh-link__text.sc-stzh-link:not(:empty)+.stzh-link__icon-wrapper.sc-stzh-link:not(:empty){margin-left:var(--stzh-space-xxsmall)}.stzh-link__badge.sc-stzh-link{position:absolute;z-index:1;top:0;right:0}.stzh-link--has-icon.sc-stzh-link .stzh-link__icon-wrapper.sc-stzh-link{display:inline-flex}.stzh-link--has-icon-only.sc-stzh-link .stzh-link__text.sc-stzh-link{border:0;clip:rect(0 0 0 0);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-link--badge-position-link.sc-stzh-link .stzh-link__icon-wrapper.sc-stzh-link{position:static}.stzh-link__badge.sc-stzh-link,.stzh-link--badge-position-link.sc-stzh-link .stzh-link__badge.sc-stzh-link{top:calc(var(--stzh-space-xxsmall) * -1);right:calc(var(--stzh-space-large) * -1)}.stzh-link--badge-position-icon.stzh-link--has-icon.sc-stzh-link .stzh-link__icon-wrapper.sc-stzh-link{position:relative}.stzh-link--badge-position-icon.stzh-link--has-icon.sc-stzh-link .stzh-link__badge.sc-stzh-link{top:calc(var(--stzh-space-xsmall) * -1);right:calc(var(--stzh-space-small) * -1)}.stzh-link--badge-position-icon.stzh-link--has-icon.stzh-link--has-badge.sc-stzh-link .stzh-link__icon-wrapper.sc-stzh-link+.stzh-link__text.sc-stzh-link:not(:empty){margin-left:var(--stzh-space-small)}.stzh-link--align-left.sc-stzh-link .stzh-link__inner.sc-stzh-link{justify-content:flex-start}.stzh-link--align-right.sc-stzh-link .stzh-link__inner.sc-stzh-link{justify-content:flex-end}.stzh-link--align-center.sc-stzh-link .stzh-link__inner.sc-stzh-link{justify-content:center}.stzh-link--align-space-between.sc-stzh-link .stzh-link__inner.sc-stzh-link{justify-content:space-between}.stzh-link--is-disabled.sc-stzh-link{cursor:not-allowed}";
@@ -197,4 +197,4 @@ function defineCustomElement() {
197
197
 
198
198
  export { StzhLink as S, defineCustomElement as d };
199
199
 
200
- //# sourceMappingURL=p-2d80d228.js.map
200
+ //# sourceMappingURL=p-31108932.js.map