@oiz/stzh-components 4.0.0-beta3 → 4.0.1-beta

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 (461) hide show
  1. package/dist/cjs/{app-globals-17244c89.js → app-globals-f56c764f.js} +2 -2
  2. package/dist/cjs/{app-globals-17244c89.js.map → app-globals-f56c764f.js.map} +1 -1
  3. package/dist/cjs/loader.cjs.js +2 -2
  4. package/dist/cjs/stzh-audio.cjs.entry.js +1 -1
  5. package/dist/cjs/stzh-audio.cjs.entry.js.map +1 -1
  6. package/dist/cjs/stzh-breadcrumb_2.cjs.entry.js +1 -1
  7. package/dist/cjs/stzh-card-searchresult.cjs.entry.js +1 -1
  8. package/dist/cjs/stzh-card-searchresult.cjs.entry.js.map +1 -1
  9. package/dist/cjs/stzh-card.cjs.entry.js +11 -8
  10. package/dist/cjs/stzh-card.cjs.entry.js.map +1 -1
  11. package/dist/cjs/stzh-cardlist_3.cjs.entry.js +1 -1
  12. package/dist/cjs/stzh-components.cjs.js +2 -2
  13. package/dist/cjs/stzh-datalist_2.cjs.entry.js +3 -3
  14. package/dist/cjs/stzh-datalist_2.cjs.entry.js.map +1 -1
  15. package/dist/cjs/stzh-ghettobox_3.cjs.entry.js +3 -3
  16. package/dist/cjs/stzh-popover.cjs.entry.js +1 -1
  17. package/dist/cjs/stzh-popover.cjs.entry.js.map +1 -1
  18. package/dist/cjs/stzh-print_2.cjs.entry.js +1 -1
  19. package/dist/cjs/stzh-ratio.cjs.entry.js +1 -1
  20. package/dist/cjs/stzh-ratio.cjs.entry.js.map +1 -1
  21. package/dist/cjs/stzh-readspeaker.cjs.entry.js +3 -3
  22. package/dist/cjs/stzh-readspeaker.cjs.entry.js.map +1 -1
  23. package/dist/cjs/stzh-row.cjs.entry.js +2 -2
  24. package/dist/cjs/stzh-saptcha.cjs.entry.js +2 -2
  25. package/dist/cjs/stzh-scrollup.cjs.entry.js +1 -1
  26. package/dist/cjs/stzh-search.cjs.entry.js +2 -2
  27. package/dist/cjs/stzh-section.cjs.entry.js +2 -2
  28. package/dist/cjs/stzh-sitemap.cjs.entry.js +1 -1
  29. package/dist/cjs/stzh-skin-portal-mitwirken.cjs.entry.js +2 -2
  30. package/dist/cjs/stzh-skin-portal-mitwirken.cjs.entry.js.map +1 -1
  31. package/dist/cjs/stzh-skin-storybook-preview.cjs.entry.js +1 -1
  32. package/dist/cjs/stzh-skiplink.cjs.entry.js +1 -1
  33. package/dist/cjs/stzh-socialmediastream-item.cjs.entry.js +1 -1
  34. package/dist/cjs/stzh-socialmediastream.cjs.entry.js +1 -1
  35. package/dist/cjs/stzh-space.cjs.entry.js +2 -2
  36. package/dist/cjs/stzh-status.cjs.entry.js +4 -4
  37. package/dist/cjs/stzh-stepper-item.cjs.entry.js +4 -4
  38. package/dist/cjs/stzh-stepper.cjs.entry.js +2 -2
  39. package/dist/cjs/stzh-sticky-actions.cjs.entry.js +1 -1
  40. package/dist/cjs/stzh-sticky.cjs.entry.js +1 -1
  41. package/dist/cjs/stzh-table.cjs.entry.js +1 -1
  42. package/dist/cjs/stzh-text.cjs.entry.js +2 -2
  43. package/dist/cjs/stzh-textandimage.cjs.entry.js +1 -1
  44. package/dist/cjs/stzh-timeline-item.cjs.entry.js +3 -3
  45. package/dist/cjs/stzh-timeline.cjs.entry.js +1 -1
  46. package/dist/cjs/stzh-timepicker.cjs.entry.js +1 -1
  47. package/dist/cjs/stzh-toast_2.cjs.entry.js +4 -4
  48. package/dist/cjs/stzh-toggle.cjs.entry.js +4 -4
  49. package/dist/cjs/stzh-tooltip.cjs.entry.js +2 -2
  50. package/dist/cjs/stzh-tooltip.cjs.entry.js.map +1 -1
  51. package/dist/cjs/stzh-twocolumns.cjs.entry.js +1 -1
  52. package/dist/cjs/stzh-upload.cjs.entry.js +2 -2
  53. package/dist/cjs/stzh-vbz-carousel.cjs.entry.js +1 -1
  54. package/dist/cjs/stzh-vbz-connection-finder.cjs.entry.js +1 -1
  55. package/dist/cjs/stzh-vbz-intro.cjs.entry.js +1 -1
  56. package/dist/cjs/stzh-vbz-linechip.cjs.entry.js +2 -2
  57. package/dist/cjs/stzh-vbz-majorticker.cjs.entry.js +2 -2
  58. package/dist/cjs/stzh-vbz-ticker.cjs.entry.js +2 -2
  59. package/dist/cjs/stzh-visuallyhidden.cjs.entry.js +2 -2
  60. package/dist/cjs/stzh-vspace.cjs.entry.js +2 -2
  61. package/dist/cjs/stzh-youtube.cjs.entry.js +1 -1
  62. package/dist/collection/components/stzh-audio/stzh-audio.css +2 -2
  63. package/dist/collection/components/stzh-card/stzh-card.css +10 -1
  64. package/dist/collection/components/stzh-card/stzh-card.js +28 -7
  65. package/dist/collection/components/stzh-card/stzh-card.js.map +1 -1
  66. package/dist/collection/components/stzh-card-searchresult/stzh-card-searchresult.js +1 -1
  67. package/dist/collection/components/stzh-card-searchresult/stzh-card-searchresult.js.map +1 -1
  68. package/dist/collection/components/stzh-checkbox/stzh-checkbox.stories.js +102 -1
  69. package/dist/collection/components/stzh-checkboxgroup/stzh-checkboxgroup.stories.js +89 -1
  70. package/dist/collection/components/stzh-datalist-item/stzh-datalist-item.css +12 -10
  71. package/dist/collection/components/stzh-datalist-item/stzh-datalist-item.js +5 -5
  72. package/dist/collection/components/stzh-datalist-item/stzh-datalist-item.js.map +1 -1
  73. package/dist/collection/components/stzh-popover/stzh-popover.css +2 -2
  74. package/dist/collection/components/stzh-ratio/stzh-ratio.js +1 -1
  75. package/dist/collection/components/stzh-ratio/stzh-ratio.js.map +1 -1
  76. package/dist/collection/components/stzh-readspeaker/stzh-readspeaker.css +4 -4
  77. package/dist/collection/components/stzh-readspeaker/stzh-readspeaker.js +2 -2
  78. package/dist/collection/components/stzh-richtext/stzh-richtext.js +1 -1
  79. package/dist/collection/components/stzh-row/stzh-row.js +2 -2
  80. package/dist/collection/components/stzh-saptcha/stzh-saptcha.js +2 -2
  81. package/dist/collection/components/stzh-scrollup/stzh-scrollup.js +1 -1
  82. package/dist/collection/components/stzh-search/stzh-search.js +2 -2
  83. package/dist/collection/components/stzh-section/stzh-section.js +2 -2
  84. package/dist/collection/components/stzh-share/stzh-share.js +1 -1
  85. package/dist/collection/components/stzh-show/stzh-show.js +2 -2
  86. package/dist/collection/components/stzh-sitemap/stzh-sitemap.js +1 -1
  87. package/dist/collection/components/stzh-skin-portal-mitwirken/stzh-skin-portal-mitwirken.css +168 -4
  88. package/dist/collection/components/stzh-skin-portal-mitwirken/stzh-skin-portal-mitwirken.js +1 -1
  89. package/dist/collection/components/stzh-skin-storybook-preview/stzh-skin-storybook-preview.js +1 -1
  90. package/dist/collection/components/stzh-skiplink/stzh-skiplink.js +1 -1
  91. package/dist/collection/components/stzh-socialmediastream/stzh-socialmediastream.js +1 -1
  92. package/dist/collection/components/stzh-socialmediastream-item/stzh-socialmediastream-item.js +1 -1
  93. package/dist/collection/components/stzh-sortable/stzh-sortable.js +1 -1
  94. package/dist/collection/components/stzh-space/stzh-space.js +2 -2
  95. package/dist/collection/components/stzh-status/stzh-status.js +4 -4
  96. package/dist/collection/components/stzh-stepper/stzh-stepper.component.js +2 -2
  97. package/dist/collection/components/stzh-stepper-item/stzh-stepper-item.js +4 -4
  98. package/dist/collection/components/stzh-sticky/stzh-sticky.js +1 -1
  99. package/dist/collection/components/stzh-sticky-actions/stzh-sticky-actions.js +1 -1
  100. package/dist/collection/components/stzh-table/stzh-table.js +1 -1
  101. package/dist/collection/components/stzh-tag/stzh-tag.js +1 -1
  102. package/dist/collection/components/stzh-text/stzh-text.js +2 -2
  103. package/dist/collection/components/stzh-textandimage/stzh-textandimage.js +1 -1
  104. package/dist/collection/components/stzh-timeline/stzh-timeline.js +1 -1
  105. package/dist/collection/components/stzh-timeline-item/stzh-timeline-item.js +3 -3
  106. package/dist/collection/components/stzh-timepicker/stzh-timepicker.js +1 -1
  107. package/dist/collection/components/stzh-toast/stzh-toast.js +3 -3
  108. package/dist/collection/components/stzh-toastbar/stzh-toastbar.js +1 -1
  109. package/dist/collection/components/stzh-toggle/stzh-toggle.js +4 -4
  110. package/dist/collection/components/stzh-tooltip/stzh-tooltip.css +2 -2
  111. package/dist/collection/components/stzh-tooltip/stzh-tooltip.js +1 -1
  112. package/dist/collection/components/stzh-twocolumns/stzh-twocolumns.js +1 -1
  113. package/dist/collection/components/stzh-upload/stzh-upload.js +2 -2
  114. package/dist/collection/components/stzh-vbz-carousel/stzh-vbz-carousel.js +1 -1
  115. package/dist/collection/components/stzh-vbz-connection-finder/stzh-vbz-connection-finder.js +1 -1
  116. package/dist/collection/components/stzh-vbz-intro/stzh-vbz-intro.js +1 -1
  117. package/dist/collection/components/stzh-vbz-linechip/stzh-vbz-linechip.js +2 -2
  118. package/dist/collection/components/stzh-vbz-majorticker/stzh-vbz-majorticker.js +2 -2
  119. package/dist/collection/components/stzh-vbz-ticker/stzh-vbz-ticker.js +2 -2
  120. package/dist/collection/components/stzh-visuallyhidden/stzh-visuallyhidden.js +2 -2
  121. package/dist/collection/components/stzh-vspace/stzh-vspace.js +2 -2
  122. package/dist/collection/components/stzh-youtube/stzh-youtube.js +1 -1
  123. package/dist/components/index.js +1 -1
  124. package/dist/components/{p-84f171a0.js → p-02bdd12e.js} +2 -2
  125. package/dist/components/{p-84f171a0.js.map → p-02bdd12e.js.map} +1 -1
  126. package/dist/components/{p-324831e2.js → p-0dae7190.js} +3 -3
  127. package/dist/components/{p-324831e2.js.map → p-0dae7190.js.map} +1 -1
  128. package/dist/components/{p-631b7bfa.js → p-123ddd01.js} +5 -5
  129. package/dist/components/{p-631b7bfa.js.map → p-123ddd01.js.map} +1 -1
  130. package/dist/components/{p-18ad2006.js → p-1e02d63c.js} +17 -13
  131. package/dist/components/p-1e02d63c.js.map +1 -0
  132. package/dist/components/{p-ef28cd34.js → p-1fe5af54.js} +3 -3
  133. package/dist/components/{p-ef28cd34.js.map → p-1fe5af54.js.map} +1 -1
  134. package/dist/components/{p-0b0557e7.js → p-55042ae5.js} +4 -4
  135. package/dist/components/{p-0b0557e7.js.map → p-55042ae5.js.map} +1 -1
  136. package/dist/components/{p-48a20e2d.js → p-6c821944.js} +5 -5
  137. package/dist/components/{p-48a20e2d.js.map → p-6c821944.js.map} +1 -1
  138. package/dist/components/{p-3d24141a.js → p-7eced0db.js} +2 -2
  139. package/dist/components/{p-3d24141a.js.map → p-7eced0db.js.map} +1 -1
  140. package/dist/components/{p-e5a0d7ce.js → p-84f3d0c4.js} +6 -6
  141. package/dist/components/{p-e5a0d7ce.js.map → p-84f3d0c4.js.map} +1 -1
  142. package/dist/components/{p-875cd549.js → p-86473146.js} +2 -2
  143. package/dist/components/{p-875cd549.js.map → p-86473146.js.map} +1 -1
  144. package/dist/components/{p-8123a294.js → p-87537095.js} +2 -2
  145. package/dist/components/{p-8123a294.js.map → p-87537095.js.map} +1 -1
  146. package/dist/components/{p-1ee94681.js → p-877e658f.js} +3 -3
  147. package/dist/components/{p-1ee94681.js.map → p-877e658f.js.map} +1 -1
  148. package/dist/components/{p-0c5f315f.js → p-8c4ca44f.js} +3 -3
  149. package/dist/components/{p-0c5f315f.js.map → p-8c4ca44f.js.map} +1 -1
  150. package/dist/components/{p-70aa77ed.js → p-978466ee.js} +4 -4
  151. package/dist/components/{p-70aa77ed.js.map → p-978466ee.js.map} +1 -1
  152. package/dist/components/{p-043132df.js → p-9c27b812.js} +2 -2
  153. package/dist/components/{p-043132df.js.map → p-9c27b812.js.map} +1 -1
  154. package/dist/components/{p-6a5f4569.js → p-9fd614bc.js} +3 -3
  155. package/dist/components/{p-6a5f4569.js.map → p-9fd614bc.js.map} +1 -1
  156. package/dist/components/{p-da29e441.js → p-a518f263.js} +4 -4
  157. package/dist/components/{p-da29e441.js.map → p-a518f263.js.map} +1 -1
  158. package/dist/components/{p-d8b73add.js → p-a74ffd15.js} +4 -4
  159. package/dist/components/{p-d8b73add.js.map → p-a74ffd15.js.map} +1 -1
  160. package/dist/components/{p-1036baa8.js → p-a93fe963.js} +2 -2
  161. package/dist/components/{p-1036baa8.js.map → p-a93fe963.js.map} +1 -1
  162. package/dist/components/{p-b5d9d5a1.js → p-adf66b29.js} +4 -4
  163. package/dist/components/{p-b5d9d5a1.js.map → p-adf66b29.js.map} +1 -1
  164. package/dist/components/{p-adc06dc4.js → p-ae7adee7.js} +3 -3
  165. package/dist/components/{p-adc06dc4.js.map → p-ae7adee7.js.map} +1 -1
  166. package/dist/components/{p-a367fa4a.js → p-b4ffee20.js} +2 -2
  167. package/dist/components/p-b4ffee20.js.map +1 -0
  168. package/dist/components/{p-8bab76e0.js → p-bed8abab.js} +5 -5
  169. package/dist/components/{p-8bab76e0.js.map → p-bed8abab.js.map} +1 -1
  170. package/dist/components/{p-6be31cce.js → p-c056c339.js} +3 -3
  171. package/dist/components/{p-6be31cce.js.map → p-c056c339.js.map} +1 -1
  172. package/dist/components/{p-c06d0057.js → p-d19eef5f.js} +4 -4
  173. package/dist/components/{p-c06d0057.js.map → p-d19eef5f.js.map} +1 -1
  174. package/dist/components/{p-ded0ad1c.js → p-d40751ba.js} +4 -4
  175. package/dist/components/{p-ded0ad1c.js.map → p-d40751ba.js.map} +1 -1
  176. package/dist/components/{p-3e69bb48.js → p-e48a4be2.js} +3 -3
  177. package/dist/components/{p-3e69bb48.js.map → p-e48a4be2.js.map} +1 -1
  178. package/dist/components/{p-d9bd5b30.js → p-f0db184a.js} +3 -3
  179. package/dist/components/{p-d9bd5b30.js.map → p-f0db184a.js.map} +1 -1
  180. package/dist/components/{p-5748d860.js → p-f254ab81.js} +8 -8
  181. package/dist/components/p-f254ab81.js.map +1 -0
  182. package/dist/components/{p-7d72e50c.js → p-fd0fbd98.js} +2 -2
  183. package/dist/components/{p-7d72e50c.js.map → p-fd0fbd98.js.map} +1 -1
  184. package/dist/components/{p-af0ed46a.js → p-fe546990.js} +3 -3
  185. package/dist/components/{p-af0ed46a.js.map → p-fe546990.js.map} +1 -1
  186. package/dist/components/{p-3d684a4f.js → p-fef8bda1.js} +2 -2
  187. package/dist/components/{p-3d684a4f.js.map → p-fef8bda1.js.map} +1 -1
  188. package/dist/components/stzh-actionset.js +1 -1
  189. package/dist/components/stzh-amount.js +4 -4
  190. package/dist/components/stzh-appointments.js +8 -8
  191. package/dist/components/stzh-audio.js +3 -3
  192. package/dist/components/stzh-audio.js.map +1 -1
  193. package/dist/components/stzh-calendar.js +1 -1
  194. package/dist/components/stzh-card-searchresult.js +8 -8
  195. package/dist/components/stzh-card-searchresult.js.map +1 -1
  196. package/dist/components/stzh-card-superteaser.js +7 -7
  197. package/dist/components/stzh-card.js +1 -1
  198. package/dist/components/stzh-cardlist.js +1 -1
  199. package/dist/components/stzh-checkbox.js +1 -1
  200. package/dist/components/stzh-checkboxgroup.js +2 -2
  201. package/dist/components/stzh-chipselect.js +1 -1
  202. package/dist/components/stzh-contact-cv.js +1 -1
  203. package/dist/components/stzh-cta.js +1 -1
  204. package/dist/components/stzh-datalist-item.js +1 -1
  205. package/dist/components/stzh-datalist.js +1 -1
  206. package/dist/components/stzh-datamessagelist-item.js +2 -2
  207. package/dist/components/stzh-datatable.js +9 -9
  208. package/dist/components/stzh-datepicker.js +1 -1
  209. package/dist/components/stzh-dropdown.js +1 -1
  210. package/dist/components/stzh-feedreader.js +1 -1
  211. package/dist/components/stzh-gallery.js +1 -1
  212. package/dist/components/stzh-geo-ref-data.js +9 -9
  213. package/dist/components/stzh-header.js +1 -1
  214. package/dist/components/stzh-homepage-service-highlights.js +1 -1
  215. package/dist/components/stzh-http-error.js +1 -1
  216. package/dist/components/stzh-input.js +1 -1
  217. package/dist/components/stzh-microsite-teaserlist.js +9 -9
  218. package/dist/components/stzh-monthyearpicker.js +3 -3
  219. package/dist/components/stzh-offline-indicator.js +2 -2
  220. package/dist/components/stzh-pagebottom.js +3 -3
  221. package/dist/components/stzh-pagetitle-home.js +1 -1
  222. package/dist/components/stzh-pagetitle.js +1 -1
  223. package/dist/components/stzh-pagination.js +1 -1
  224. package/dist/components/stzh-panorama.js +5 -5
  225. package/dist/components/stzh-pi-content-navigation.js +1 -1
  226. package/dist/components/stzh-pi-pagetitle.js +1 -1
  227. package/dist/components/stzh-pi-teaser.js +1 -1
  228. package/dist/components/stzh-poicard.js +1 -1
  229. package/dist/components/stzh-poilist.js +6 -6
  230. package/dist/components/stzh-popover.js +1 -1
  231. package/dist/components/stzh-radio.js +1 -1
  232. package/dist/components/stzh-radiogroup.js +1 -1
  233. package/dist/components/stzh-ratio.js +1 -1
  234. package/dist/components/stzh-readspeaker.js +3 -3
  235. package/dist/components/stzh-readspeaker.js.map +1 -1
  236. package/dist/components/stzh-richtext.js +1 -1
  237. package/dist/components/stzh-row.js +2 -2
  238. package/dist/components/stzh-saptcha.js +5 -5
  239. package/dist/components/stzh-scrollup.js +1 -1
  240. package/dist/components/stzh-search.js +6 -6
  241. package/dist/components/stzh-section.js +2 -2
  242. package/dist/components/stzh-share.js +1 -1
  243. package/dist/components/stzh-show.js +1 -1
  244. package/dist/components/stzh-sitemap.js +6 -6
  245. package/dist/components/stzh-skin-portal-mitwirken.js +2 -2
  246. package/dist/components/stzh-skin-portal-mitwirken.js.map +1 -1
  247. package/dist/components/stzh-skin-storybook-preview.js +1 -1
  248. package/dist/components/stzh-skiplink.js +1 -1
  249. package/dist/components/stzh-socialmediastream-item.js +1 -1
  250. package/dist/components/stzh-socialmediastream.js +4 -4
  251. package/dist/components/stzh-sortable.js +1 -1
  252. package/dist/components/stzh-space.js +2 -2
  253. package/dist/components/stzh-status.js +1 -1
  254. package/dist/components/stzh-stepper-item.js +1 -1
  255. package/dist/components/stzh-stepper.js +3 -3
  256. package/dist/components/stzh-sticky-actions.js +2 -2
  257. package/dist/components/stzh-sticky.js +1 -1
  258. package/dist/components/stzh-table.js +1 -1
  259. package/dist/components/stzh-tag.js +1 -1
  260. package/dist/components/stzh-text.js +1 -1
  261. package/dist/components/stzh-textandimage.js +1 -1
  262. package/dist/components/stzh-timeline-item.js +3 -3
  263. package/dist/components/stzh-timeline.js +1 -1
  264. package/dist/components/stzh-timepicker.js +4 -4
  265. package/dist/components/stzh-toast.js +1 -1
  266. package/dist/components/stzh-toastbar.js +1 -1
  267. package/dist/components/stzh-toggle.js +6 -6
  268. package/dist/components/stzh-tooltip.js +1 -1
  269. package/dist/components/stzh-twocolumns.js +1 -1
  270. package/dist/components/stzh-upload.js +6 -6
  271. package/dist/components/stzh-vbz-carousel.js +1 -1
  272. package/dist/components/stzh-vbz-connection-finder.js +1 -1
  273. package/dist/components/stzh-vbz-intro.js +1 -1
  274. package/dist/components/stzh-vbz-linechip.js +1 -1
  275. package/dist/components/stzh-vbz-majorticker.js +4 -4
  276. package/dist/components/stzh-vbz-ticker.js +5 -5
  277. package/dist/components/stzh-visuallyhidden.js +2 -2
  278. package/dist/components/stzh-vspace.js +2 -2
  279. package/dist/components/stzh-youtube.js +2 -2
  280. package/dist/esm/{app-globals-4169aa9e.js → app-globals-24afa4b5.js} +2 -2
  281. package/dist/esm/{app-globals-4169aa9e.js.map → app-globals-24afa4b5.js.map} +1 -1
  282. package/dist/esm/loader.js +2 -2
  283. package/dist/esm/stzh-audio.entry.js +1 -1
  284. package/dist/esm/stzh-audio.entry.js.map +1 -1
  285. package/dist/esm/stzh-breadcrumb_2.entry.js +1 -1
  286. package/dist/esm/stzh-card-searchresult.entry.js +1 -1
  287. package/dist/esm/stzh-card-searchresult.entry.js.map +1 -1
  288. package/dist/esm/stzh-card.entry.js +11 -8
  289. package/dist/esm/stzh-card.entry.js.map +1 -1
  290. package/dist/esm/stzh-cardlist_3.entry.js +1 -1
  291. package/dist/esm/stzh-components.js +2 -2
  292. package/dist/esm/stzh-datalist_2.entry.js +3 -3
  293. package/dist/esm/stzh-datalist_2.entry.js.map +1 -1
  294. package/dist/esm/stzh-ghettobox_3.entry.js +3 -3
  295. package/dist/esm/stzh-popover.entry.js +1 -1
  296. package/dist/esm/stzh-popover.entry.js.map +1 -1
  297. package/dist/esm/stzh-print_2.entry.js +1 -1
  298. package/dist/esm/stzh-ratio.entry.js +1 -1
  299. package/dist/esm/stzh-ratio.entry.js.map +1 -1
  300. package/dist/esm/stzh-readspeaker.entry.js +3 -3
  301. package/dist/esm/stzh-readspeaker.entry.js.map +1 -1
  302. package/dist/esm/stzh-row.entry.js +2 -2
  303. package/dist/esm/stzh-saptcha.entry.js +2 -2
  304. package/dist/esm/stzh-scrollup.entry.js +1 -1
  305. package/dist/esm/stzh-search.entry.js +2 -2
  306. package/dist/esm/stzh-section.entry.js +2 -2
  307. package/dist/esm/stzh-sitemap.entry.js +1 -1
  308. package/dist/esm/stzh-skin-portal-mitwirken.entry.js +2 -2
  309. package/dist/esm/stzh-skin-portal-mitwirken.entry.js.map +1 -1
  310. package/dist/esm/stzh-skin-storybook-preview.entry.js +1 -1
  311. package/dist/esm/stzh-skiplink.entry.js +1 -1
  312. package/dist/esm/stzh-socialmediastream-item.entry.js +1 -1
  313. package/dist/esm/stzh-socialmediastream.entry.js +1 -1
  314. package/dist/esm/stzh-space.entry.js +2 -2
  315. package/dist/esm/stzh-status.entry.js +4 -4
  316. package/dist/esm/stzh-stepper-item.entry.js +4 -4
  317. package/dist/esm/stzh-stepper.entry.js +2 -2
  318. package/dist/esm/stzh-sticky-actions.entry.js +1 -1
  319. package/dist/esm/stzh-sticky.entry.js +1 -1
  320. package/dist/esm/stzh-table.entry.js +1 -1
  321. package/dist/esm/stzh-text.entry.js +2 -2
  322. package/dist/esm/stzh-textandimage.entry.js +1 -1
  323. package/dist/esm/stzh-timeline-item.entry.js +3 -3
  324. package/dist/esm/stzh-timeline.entry.js +1 -1
  325. package/dist/esm/stzh-timepicker.entry.js +1 -1
  326. package/dist/esm/stzh-toast_2.entry.js +4 -4
  327. package/dist/esm/stzh-toggle.entry.js +4 -4
  328. package/dist/esm/stzh-tooltip.entry.js +2 -2
  329. package/dist/esm/stzh-tooltip.entry.js.map +1 -1
  330. package/dist/esm/stzh-twocolumns.entry.js +1 -1
  331. package/dist/esm/stzh-upload.entry.js +2 -2
  332. package/dist/esm/stzh-vbz-carousel.entry.js +1 -1
  333. package/dist/esm/stzh-vbz-connection-finder.entry.js +1 -1
  334. package/dist/esm/stzh-vbz-intro.entry.js +1 -1
  335. package/dist/esm/stzh-vbz-linechip.entry.js +2 -2
  336. package/dist/esm/stzh-vbz-majorticker.entry.js +2 -2
  337. package/dist/esm/stzh-vbz-ticker.entry.js +2 -2
  338. package/dist/esm/stzh-visuallyhidden.entry.js +2 -2
  339. package/dist/esm/stzh-vspace.entry.js +2 -2
  340. package/dist/esm/stzh-youtube.entry.js +1 -1
  341. package/dist/stzh-components/{p-96fe4abd.entry.js → p-043ad510.entry.js} +2 -2
  342. package/dist/stzh-components/{p-bb73cb7c.entry.js → p-0a9f2a26.entry.js} +2 -2
  343. package/dist/stzh-components/{p-fc5fd4e3.entry.js → p-0c454ed4.entry.js} +2 -2
  344. package/dist/stzh-components/{p-5b908c23.entry.js → p-0c7abc07.entry.js} +2 -2
  345. package/dist/stzh-components/{p-7026a4fd.entry.js → p-12ea12f4.entry.js} +2 -2
  346. package/dist/stzh-components/p-17d26a11.entry.js +2 -0
  347. package/dist/stzh-components/{p-404ba037.entry.js.map → p-17d26a11.entry.js.map} +1 -1
  348. package/dist/stzh-components/{p-adb98a13.entry.js → p-24c37b16.entry.js} +2 -2
  349. package/dist/stzh-components/{p-c2837379.entry.js → p-263f1fc6.entry.js} +2 -2
  350. package/dist/stzh-components/p-29ff3759.entry.js +2 -0
  351. package/dist/stzh-components/{p-6b57e800.entry.js.map → p-29ff3759.entry.js.map} +1 -1
  352. package/dist/stzh-components/{p-0971c453.entry.js → p-2b22da62.entry.js} +2 -2
  353. package/dist/stzh-components/{p-e5935628.entry.js → p-3edb8127.entry.js} +2 -2
  354. package/dist/stzh-components/p-43390ffd.entry.js +2 -0
  355. package/dist/stzh-components/p-43390ffd.entry.js.map +1 -0
  356. package/dist/stzh-components/{p-cb78d001.entry.js → p-44860eb8.entry.js} +2 -2
  357. package/dist/stzh-components/{p-c63ce489.entry.js → p-4a0e5c91.entry.js} +2 -2
  358. package/dist/stzh-components/{p-e4083254.entry.js → p-52b21470.entry.js} +2 -2
  359. package/dist/stzh-components/{p-4423fbf1.entry.js → p-5ea61577.entry.js} +2 -2
  360. package/dist/stzh-components/p-5ea61577.entry.js.map +1 -0
  361. package/dist/stzh-components/{p-dce69ebb.entry.js → p-628b2a1b.entry.js} +2 -2
  362. package/dist/stzh-components/{p-28f4fd43.entry.js → p-6f71f9a1.entry.js} +2 -2
  363. package/dist/stzh-components/p-705fb85c.entry.js +2 -0
  364. package/dist/stzh-components/{p-e0743aaf.entry.js.map → p-705fb85c.entry.js.map} +1 -1
  365. package/dist/stzh-components/{p-da065baa.entry.js → p-7467c517.entry.js} +2 -2
  366. package/dist/stzh-components/{p-46d8ebf9.entry.js → p-77c64b4b.entry.js} +2 -2
  367. package/dist/stzh-components/{p-46d8ebf9.entry.js.map → p-77c64b4b.entry.js.map} +1 -1
  368. package/dist/stzh-components/{p-a128eb07.entry.js → p-79a63bd9.entry.js} +2 -2
  369. package/dist/stzh-components/p-836ee7e5.entry.js +2 -0
  370. package/dist/stzh-components/p-836ee7e5.entry.js.map +1 -0
  371. package/dist/stzh-components/{p-1a3a2442.entry.js → p-84ae023f.entry.js} +2 -2
  372. package/dist/stzh-components/{p-3c60c70f.entry.js → p-976d5ab9.entry.js} +2 -2
  373. package/dist/stzh-components/{p-04669d52.entry.js → p-99d39d04.entry.js} +2 -2
  374. package/dist/stzh-components/{p-2b75dc62.entry.js → p-a08056c1.entry.js} +2 -2
  375. package/dist/stzh-components/{p-c6552960.entry.js → p-ab439c71.entry.js} +2 -2
  376. package/dist/stzh-components/{p-c6552960.entry.js.map → p-ab439c71.entry.js.map} +1 -1
  377. package/dist/stzh-components/{p-71886cdf.entry.js → p-ac4b1753.entry.js} +2 -2
  378. package/dist/stzh-components/{p-444ba687.entry.js → p-b0d12ac9.entry.js} +2 -2
  379. package/dist/stzh-components/p-b159d0bc.entry.js +2 -0
  380. package/dist/stzh-components/{p-624be23e.entry.js.map → p-b159d0bc.entry.js.map} +1 -1
  381. package/dist/stzh-components/{p-fb73afa9.entry.js → p-b6b39492.entry.js} +2 -2
  382. package/dist/stzh-components/{p-97e2a5ae.entry.js → p-c26e45c7.entry.js} +2 -2
  383. package/dist/stzh-components/{p-68dccf19.entry.js → p-c34c7f87.entry.js} +2 -2
  384. package/dist/stzh-components/{p-5ca3df89.entry.js → p-cd9be844.entry.js} +2 -2
  385. package/dist/stzh-components/p-cfff191d.js +2 -0
  386. package/dist/stzh-components/{p-1c01ddd2.js.map → p-cfff191d.js.map} +1 -1
  387. package/dist/stzh-components/{p-592452c5.entry.js → p-d12700c1.entry.js} +2 -2
  388. package/dist/stzh-components/{p-6802415a.entry.js → p-d17b4c21.entry.js} +2 -2
  389. package/dist/stzh-components/{p-8060775b.entry.js → p-d83dbb08.entry.js} +2 -2
  390. package/dist/stzh-components/p-d83dbb08.entry.js.map +1 -0
  391. package/dist/stzh-components/{p-549b5a54.entry.js → p-d98330d6.entry.js} +2 -2
  392. package/dist/stzh-components/p-dcf670a7.entry.js +2 -0
  393. package/dist/stzh-components/{p-8d664896.entry.js.map → p-dcf670a7.entry.js.map} +1 -1
  394. package/dist/stzh-components/{p-9c76b2dd.entry.js → p-dde1ffb8.entry.js} +2 -2
  395. package/dist/stzh-components/{p-420e839d.entry.js → p-e19dd2da.entry.js} +2 -2
  396. package/dist/stzh-components/{p-97fa8644.entry.js → p-e452b478.entry.js} +2 -2
  397. package/dist/stzh-components/{p-9130582f.entry.js → p-e496eb1a.entry.js} +2 -2
  398. package/dist/stzh-components/{p-6872230d.entry.js → p-e8a87eaf.entry.js} +2 -2
  399. package/dist/stzh-components/{p-ecb3ab05.entry.js → p-ec7f8a5a.entry.js} +2 -2
  400. package/dist/stzh-components/{p-824068d6.entry.js → p-f957fa77.entry.js} +2 -2
  401. package/dist/stzh-components/{p-7d590d24.entry.js → p-f9e3c785.entry.js} +2 -2
  402. package/dist/stzh-components/stzh-components.css +168 -4
  403. package/dist/stzh-components/stzh-components.esm.js +1 -1
  404. package/dist/stzh-components/stzh-components.esm.js.map +1 -1
  405. package/dist/types/components/stzh-card/stzh-card.d.ts +2 -0
  406. package/dist/types/components/stzh-datalist-item/stzh-datalist-item.d.ts +2 -2
  407. package/dist/types/components.d.ts +16 -8
  408. package/dist/vscode-data.json +16 -4
  409. package/package.json +1 -1
  410. package/dist/components/p-18ad2006.js.map +0 -1
  411. package/dist/components/p-5748d860.js.map +0 -1
  412. package/dist/components/p-a367fa4a.js.map +0 -1
  413. package/dist/stzh-components/p-1c01ddd2.js +0 -2
  414. package/dist/stzh-components/p-404ba037.entry.js +0 -2
  415. package/dist/stzh-components/p-4423fbf1.entry.js.map +0 -1
  416. package/dist/stzh-components/p-6042015f.entry.js +0 -2
  417. package/dist/stzh-components/p-6042015f.entry.js.map +0 -1
  418. package/dist/stzh-components/p-624be23e.entry.js +0 -2
  419. package/dist/stzh-components/p-6b57e800.entry.js +0 -2
  420. package/dist/stzh-components/p-8060775b.entry.js.map +0 -1
  421. package/dist/stzh-components/p-8d664896.entry.js +0 -2
  422. package/dist/stzh-components/p-b35032a8.entry.js +0 -2
  423. package/dist/stzh-components/p-b35032a8.entry.js.map +0 -1
  424. package/dist/stzh-components/p-e0743aaf.entry.js +0 -2
  425. /package/dist/stzh-components/{p-96fe4abd.entry.js.map → p-043ad510.entry.js.map} +0 -0
  426. /package/dist/stzh-components/{p-bb73cb7c.entry.js.map → p-0a9f2a26.entry.js.map} +0 -0
  427. /package/dist/stzh-components/{p-fc5fd4e3.entry.js.map → p-0c454ed4.entry.js.map} +0 -0
  428. /package/dist/stzh-components/{p-5b908c23.entry.js.map → p-0c7abc07.entry.js.map} +0 -0
  429. /package/dist/stzh-components/{p-7026a4fd.entry.js.map → p-12ea12f4.entry.js.map} +0 -0
  430. /package/dist/stzh-components/{p-adb98a13.entry.js.map → p-24c37b16.entry.js.map} +0 -0
  431. /package/dist/stzh-components/{p-c2837379.entry.js.map → p-263f1fc6.entry.js.map} +0 -0
  432. /package/dist/stzh-components/{p-0971c453.entry.js.map → p-2b22da62.entry.js.map} +0 -0
  433. /package/dist/stzh-components/{p-e5935628.entry.js.map → p-3edb8127.entry.js.map} +0 -0
  434. /package/dist/stzh-components/{p-cb78d001.entry.js.map → p-44860eb8.entry.js.map} +0 -0
  435. /package/dist/stzh-components/{p-c63ce489.entry.js.map → p-4a0e5c91.entry.js.map} +0 -0
  436. /package/dist/stzh-components/{p-e4083254.entry.js.map → p-52b21470.entry.js.map} +0 -0
  437. /package/dist/stzh-components/{p-dce69ebb.entry.js.map → p-628b2a1b.entry.js.map} +0 -0
  438. /package/dist/stzh-components/{p-28f4fd43.entry.js.map → p-6f71f9a1.entry.js.map} +0 -0
  439. /package/dist/stzh-components/{p-da065baa.entry.js.map → p-7467c517.entry.js.map} +0 -0
  440. /package/dist/stzh-components/{p-a128eb07.entry.js.map → p-79a63bd9.entry.js.map} +0 -0
  441. /package/dist/stzh-components/{p-1a3a2442.entry.js.map → p-84ae023f.entry.js.map} +0 -0
  442. /package/dist/stzh-components/{p-3c60c70f.entry.js.map → p-976d5ab9.entry.js.map} +0 -0
  443. /package/dist/stzh-components/{p-04669d52.entry.js.map → p-99d39d04.entry.js.map} +0 -0
  444. /package/dist/stzh-components/{p-2b75dc62.entry.js.map → p-a08056c1.entry.js.map} +0 -0
  445. /package/dist/stzh-components/{p-71886cdf.entry.js.map → p-ac4b1753.entry.js.map} +0 -0
  446. /package/dist/stzh-components/{p-444ba687.entry.js.map → p-b0d12ac9.entry.js.map} +0 -0
  447. /package/dist/stzh-components/{p-fb73afa9.entry.js.map → p-b6b39492.entry.js.map} +0 -0
  448. /package/dist/stzh-components/{p-97e2a5ae.entry.js.map → p-c26e45c7.entry.js.map} +0 -0
  449. /package/dist/stzh-components/{p-68dccf19.entry.js.map → p-c34c7f87.entry.js.map} +0 -0
  450. /package/dist/stzh-components/{p-5ca3df89.entry.js.map → p-cd9be844.entry.js.map} +0 -0
  451. /package/dist/stzh-components/{p-592452c5.entry.js.map → p-d12700c1.entry.js.map} +0 -0
  452. /package/dist/stzh-components/{p-6802415a.entry.js.map → p-d17b4c21.entry.js.map} +0 -0
  453. /package/dist/stzh-components/{p-549b5a54.entry.js.map → p-d98330d6.entry.js.map} +0 -0
  454. /package/dist/stzh-components/{p-9c76b2dd.entry.js.map → p-dde1ffb8.entry.js.map} +0 -0
  455. /package/dist/stzh-components/{p-420e839d.entry.js.map → p-e19dd2da.entry.js.map} +0 -0
  456. /package/dist/stzh-components/{p-97fa8644.entry.js.map → p-e452b478.entry.js.map} +0 -0
  457. /package/dist/stzh-components/{p-9130582f.entry.js.map → p-e496eb1a.entry.js.map} +0 -0
  458. /package/dist/stzh-components/{p-6872230d.entry.js.map → p-e8a87eaf.entry.js.map} +0 -0
  459. /package/dist/stzh-components/{p-ecb3ab05.entry.js.map → p-ec7f8a5a.entry.js.map} +0 -0
  460. /package/dist/stzh-components/{p-824068d6.entry.js.map → p-f957fa77.entry.js.map} +0 -0
  461. /package/dist/stzh-components/{p-7d590d24.entry.js.map → p-f9e3c785.entry.js.map} +0 -0
@@ -331,7 +331,7 @@ export class StzhTooltip {
331
331
  [`stzh-tooltip--open`]: this.open,
332
332
  [`stzh-tooltip--placement-${this.computedPlacement}`]: !!this.computedPlacement,
333
333
  };
334
- return (h(Host, { key: 'f7bc0ee1a2580e4877136ce134dce5c06ee5fb18' }, h("div", { key: '6df27549c14b066188b92d0cb8f2c59d64ece003', class: classes }, h("div", { key: 'aefc38a04a7217225a2e4b5b855145e75676aa3d', class: "stzh-tooltip__trigger", ref: el => (this.triggerElement = el) }, h("slot", { key: '5f971fa802f80093944565149fc84b9e64224a5a' })), this.hasTrigger("click") && (h("div", { key: 'f944502cce410496d9a86bd648ecf638daeea9d8', class: "stzh-tooltip__vhidden", id: `${this.id}-trigger-description` }, this.localization.open)), h("div", { key: 'f1a11064ce994f02883e749b9bd44687f95c3aad', class: "stzh-tooltip__content", id: `${this.id}-content`, ref: el => (this.contentElement = el), tabindex: "-1", "aria-labelledby": this.label ? `${this.id}-label` : null, "aria-hidden": this.open ? "false" : "true", onKeyDown: this.onEscKey, onMouseEnter: this.onMouseEnterTrigger, onMouseLeave: this.onMouseLeaveTrigger, onFocusin: this.onFocusTrigger, onFocusout: this.onBlurTrigger }, h("div", { key: 'fe78b9b2d67f9ed46a24902bd6506c4fd2a24ac5', class: "stzh-tooltip__arrow", ref: el => (this.arrowElement = el), innerHTML: Arrow }), this.label && (h("h2", { key: '6e3405de3df1680e032f2dd9be80b6ee865532f3', id: `${this.id}-label`, class: "stzh-tooltip__vhidden" }, this.label)), this.hasTrigger("click") && (h("button", { key: 'b77ab38bbbe03b31ca6578a4ab9229e4f582afbc', class: "stzh-tooltip__close", onClick: () => this.hide(), type: "button" }, h("stzh-icon", { key: '791371d0e3ab8399ff43702a560233edf20122ca', name: "close", class: "stzh-tooltip__icon" }), h("span", { key: '556a211146fc54b03feddf7ad27a3b568d8f07f1', class: "stzh-tooltip__vhidden" }, this.localization.close))), h("stzh-text", Object.assign({ key: '279965952347bb5be2a0d5d67e59efa8b533ae4d', curve: this.type === "overlay" ? "none" : "caption" }, (this.type === "button" ? { font: "heavy" } : {}), { class: "stzh-tooltip__content-slot" }), this.content ? this.content : h("slot", { name: "content" }))))));
334
+ return (h(Host, { key: '643020f926b7a270c1b28b2ff04f84a6385247bc' }, h("div", { key: '47ae92f9211f5f9de8d9f1c5391dfde00324c7ef', class: classes }, h("div", { key: '5797e2432348e1245501217fc510d33dfb244ffa', class: "stzh-tooltip__trigger", ref: el => (this.triggerElement = el) }, h("slot", { key: '6e7da97f24731b73d392ae8daa3bff9dbfca59cc' })), this.hasTrigger("click") && (h("div", { key: '4f5e722b5388aac4d117fed7eaab2b0268c2b6a4', class: "stzh-tooltip__vhidden", id: `${this.id}-trigger-description` }, this.localization.open)), h("div", { key: 'bbd9b3cb967de023e83191a5a344ab2693d24b3e', class: "stzh-tooltip__content", id: `${this.id}-content`, ref: el => (this.contentElement = el), tabindex: "-1", "aria-labelledby": this.label ? `${this.id}-label` : null, "aria-hidden": this.open ? "false" : "true", onKeyDown: this.onEscKey, onMouseEnter: this.onMouseEnterTrigger, onMouseLeave: this.onMouseLeaveTrigger, onFocusin: this.onFocusTrigger, onFocusout: this.onBlurTrigger }, h("div", { key: 'd1a15390f33e08c879df1bf16ee847bc9a0ee6fd', class: "stzh-tooltip__arrow", ref: el => (this.arrowElement = el), innerHTML: Arrow }), this.label && (h("h2", { key: '95aa3b5722cdf73e415fc9b88d87204c0fd54144', id: `${this.id}-label`, class: "stzh-tooltip__vhidden" }, this.label)), this.hasTrigger("click") && (h("button", { key: '8778173fef3ebda630ffcc6d6363c38262391837', class: "stzh-tooltip__close", onClick: () => this.hide(), type: "button" }, h("stzh-icon", { key: '4a14fb731ad939fbbe551893e71433f52a476d2c', name: "close", class: "stzh-tooltip__icon" }), h("span", { key: '997d8699ea4a24e9e7e117c64554d97359b151d0', class: "stzh-tooltip__vhidden" }, this.localization.close))), h("stzh-text", Object.assign({ key: 'bcc3c0a104d3aac9e697533c21b35e7a4a199e81', curve: this.type === "overlay" ? "none" : "caption" }, (this.type === "button" ? { font: "heavy" } : {}), { class: "stzh-tooltip__content-slot" }), this.content ? this.content : h("slot", { name: "content" }))))));
335
335
  }
336
336
  static get is() { return "stzh-tooltip"; }
337
337
  static get encapsulation() { return "scoped"; }
@@ -36,7 +36,7 @@ export class StzhTwocolumns {
36
36
  "stzh-twocolumns--has-left": leftSlotUsed,
37
37
  "stzh-twocolumns--has-right": rightSlotUsed
38
38
  };
39
- return (h(Host, { key: 'd91bbcae0bb7ea1ccd2adeead8ecf817b9663860' }, h("div", { key: '2b51be3165feb3e0f00e2f23ef400483a271921f', class: classes }, h("div", { key: 'c0f6ec191efb15d5b6ba26bef748fd7cfefa8638', class: "stzh-twocolumns__left" }, h("slot", { key: 'a69ccc6d090bb8f2d9958320e16fe55f8552eab9', name: "left", onSlotchange: () => forceUpdate(this.element) })), h("div", { key: '6a08f3cf5b6ba65517a7b34ff6365ab054f206ad', class: "stzh-twocolumns__right" }, h("slot", { key: 'f77d65f55c26dba1045af5bccb6ca1a3cd235663', name: "right", onSlotchange: () => forceUpdate(this.element) })))));
39
+ return (h(Host, { key: '1978073b2accd14267050d7212a366c1760954f7' }, h("div", { key: 'f959e0ced8a0f59760b66b7f4e4d5d0be0ddb3bb', class: classes }, h("div", { key: 'b0c2e715f9ff66bbaa821aefb726d0dce30876c0', class: "stzh-twocolumns__left" }, h("slot", { key: 'd719b326af29c54088033fadf25e2b98a697e240', name: "left", onSlotchange: () => forceUpdate(this.element) })), h("div", { key: '2f7d6c797d5d1b3035645c75439f04f06bc686ca', class: "stzh-twocolumns__right" }, h("slot", { key: '34c63b96cfe5bb2640f950e5bc6ba8c9f0a70926', name: "right", onSlotchange: () => forceUpdate(this.element) })))));
40
40
  }
41
41
  static get is() { return "stzh-twocolumns"; }
42
42
  static get encapsulation() { return "shadow"; }
@@ -929,9 +929,9 @@ export class StzhUpload {
929
929
  "stzh-upload--has-instructions": !!this.description || !!this.localization.description
930
930
  };
931
931
  const descriptionTotalFileSizeLimit = this.localization.descriptionTotalFileSizeLimit;
932
- return (h(Host, { key: 'bed7302b2f2b1a7539b90de36103392d6b885c62', "is-invalid": this.invalid || errorUsed }, h("stzh-toastbar", { key: '69032f8842faa92ab413160d7f6c4228363cfb5a' }), h("div", { key: '89e5c372c1078d2a1bf51b62b26d44da81956c61', class: classes, ref: el => (this.dropzoneElement = el) }, h("div", { key: 'f120b75192083d8a398c9e76c714aaeb16d4956c', ref: el => (this.hiddenInputContainerElement = el) }), h("div", { key: 'f88474114183aab4551b2e7d19ac5cab43dcc7c6', id: `${this.uploadId}-label` }, this.label && h("div", { key: 'f10ad46e56436c7baa97177171616731ccc2027a', class: "stzh-upload__label" }, this.label)), h("div", { key: '8d2d26fed21c5eceb607f27fe8655eb815a21b41', class: "stzh-upload__clickarea", ref: el => (this.clickareaElement = el) }, h("div", { key: 'c0d0674327f4732ceff0286724fd8dbaf2aabe55', class: "stzh-upload__heading-wrapper" }, h("div", { key: '24d779e3e4080c12c693e5859dd9d72eab8b7144', class: "stzh-upload__heading-inner-wrapper" }, h("div", { key: '49aa05ce3bb2493ce71def036052fb31d5724535', class: "stzh-upload__heading" }, this.heading ? this.heading : this.localization.heading), h("div", { key: '81453bcc6107bf0b27ea8eb7f888c02215a3e766', class: "stzh-upload__buttons-wrapper" }, h("stzh-button", { key: 'd42a5ec1cb1b2ba7d02de1982d6482e6098e27d9', class: "stzh-upload__button", variant: "secondary", size: "small", ref: el => (this.linkElement = el), label: this.button ? this.button : this.localization.button, a11yDescribedby: `${this.uploadId}-label ${this.uploadId}-instruction ${this.uploadId}-description`, disabled: this.disabled, a11yControls: `${this.uploadId}-previews` }, h("stzh-icon", { key: '3af9c6802641a9a8ab99c34b1a1b80411591a6a8', slot: "icon", name: "upload" })), this.isPhotographingAvailable && (h("stzh-button", { key: '9ebfb2e23e9693c4ae56910c788d0eaa280710b9', class: "stzh-upload__button-scan", variant: "secondary", size: "small", label: this.buttonScan ? this.buttonScan : this.localization.buttonScan, onClick: this.onButtonScanClick }, h("stzh-icon", { key: '2dc30dc00b4e38b5599a3a2c9a388ef62eb8ebab', slot: "icon", name: "camera" })))), h("div", { key: 'a6cb608aa2925f722c54217e9535d004ed16b938', class: "stzh-upload__hint-wrapper" }, h("span", { key: '5302187ac7cf725c911154c9ab3db7ba0292f506' }, this.localization.buttonIntro)))), h("div", { key: '81776d093331f9451d9739e8af00feb0e84bb8a5', class: "stzh-upload__instructions", id: `${this.uploadId}-instruction` }, h("p", { key: '76815accc0e3bf40fea039ebafb6379192b8a6a9' }, description
932
+ return (h(Host, { key: '372f19b86e3c2b232b5a8dd67d03691e7179ab89', "is-invalid": this.invalid || errorUsed }, h("stzh-toastbar", { key: 'd28bdfd74ee090cb42f85e0077996479cf371061' }), h("div", { key: 'e70df11c8b8b82483b471bb196f396acb031725e', class: classes, ref: el => (this.dropzoneElement = el) }, h("div", { key: 'b3c5f0761c8293ad73a806166a0802e079c9ec87', ref: el => (this.hiddenInputContainerElement = el) }), h("div", { key: '4a8d1d0e37582a8584b16b4238a165a9e42a8a99', id: `${this.uploadId}-label` }, this.label && h("div", { key: 'abbae5571a404be201338851cf84db8b068ca568', class: "stzh-upload__label" }, this.label)), h("div", { key: '3a4807ae9045f464563a5909be3dada37c6cf4c8', class: "stzh-upload__clickarea", ref: el => (this.clickareaElement = el) }, h("div", { key: '3692f24185f7f8315181779df3e57cbcaa6733f1', class: "stzh-upload__heading-wrapper" }, h("div", { key: '2faca657db5be326a0f22072717769af99bf003b', class: "stzh-upload__heading-inner-wrapper" }, h("div", { key: 'da32f47f4d27a76a0fc3ee9157f03db46cfba892', class: "stzh-upload__heading" }, this.heading ? this.heading : this.localization.heading), h("div", { key: '789a34f0c16c770614ce8f88750f2f499df25d6a', class: "stzh-upload__buttons-wrapper" }, h("stzh-button", { key: 'dcc9b91952fb9ec82e09e0ccbc308a948756ff9d', class: "stzh-upload__button", variant: "secondary", size: "small", ref: el => (this.linkElement = el), label: this.button ? this.button : this.localization.button, a11yDescribedby: `${this.uploadId}-label ${this.uploadId}-instruction ${this.uploadId}-description`, disabled: this.disabled, a11yControls: `${this.uploadId}-previews` }, h("stzh-icon", { key: '17fd56dd48477a07a6b3dbe9f022a09d879fd1c5', slot: "icon", name: "upload" })), this.isPhotographingAvailable && (h("stzh-button", { key: '2f24759083f8ba517ca12fdad389b71125f5ac0f', class: "stzh-upload__button-scan", variant: "secondary", size: "small", label: this.buttonScan ? this.buttonScan : this.localization.buttonScan, onClick: this.onButtonScanClick }, h("stzh-icon", { key: '39f036202ee912b769a0b482bccacaf9e95761c2', slot: "icon", name: "camera" })))), h("div", { key: 'e5bc486cc5b92ab840502713f96575bfc1de7d8f', class: "stzh-upload__hint-wrapper" }, h("span", { key: '6b7e85e8eac57a7e03f7bf2840dead3da9f6faad' }, this.localization.buttonIntro)))), h("div", { key: 'c0e3429f6e44ff424901ba3c65dda5f3e1b557f6', class: "stzh-upload__instructions", id: `${this.uploadId}-instruction` }, h("p", { key: '3181c95dce9ddefaa667015ac8be6d259d3dbef8' }, description
933
933
  .replace("{{fileformats}}", this.acceptedFiles)
934
- .replace("{{filesize}}", `${this.maxFilesize}`), h("br", { key: '2d9bcd2a658197f0c22a75ae5214e4d3bc9e6a5a' }), descriptionTotalFileSizeLimit.replace("{{maxFilesizeTotal}}", `${this.maxFilesizeTotal}`)))), h("div", { key: '530072ca92aa5b81c934caaa48170f1ec6837436', class: "stzh-upload__description-wrapper" }, ((_b = this._error) === null || _b === void 0 ? void 0 : _b.length) > 0 && (h(StzhInputDescription, { key: 'd74ddcd157313ad1f273c8c7cee419a6a5c85213', classPrefix: "stzh-upload", id: `${this.uploadId}-description`, error: this._error }))), h("div", { key: 'dd10064b92055e33e40bfe577b85b01f290c767d', id: `${this.uploadId}-previews`, class: "stzh-upload__previews-wrapper" }, h("div", { key: '4780543edbf0d410eafd99bc402bef54b609c166', class: "stzh-upload__previews-inner-wrapper" }, h("div", { key: '6a37dda753d64a06b4a77af8f92e641309987800', class: "stzh-upload__errors", ref: el => (this.errorsElement = el) }), h("div", { key: 'aa433f1d396dc2b6c8a01d90341e7d28f86c0d68', class: "stzh-upload__previews dropzone-previews", ref: el => (this.previewsElement = el) })))), this.duplicateDetected && (h("div", { key: '4da07cf274e56e1056e37e825f51b8bff46479f3', class: "stzh-upload__previews-message-wrapper" }, h("stzh-message", { key: '578fcd0be5ed6c1cede6c0d39f114a82dafbcfac', type: "error", label: this.localization.duplicateFileUploadHeading, onStzhClose: () => this.duplicateDetected = false }, h("stzh-text", { key: 'b113b6bca79566257ad3abb09f6cd41c692cfaba' }, h("p", { key: '02e7661398c08172965ece8165885ce5e3fbc9f7' }, "\u00AB", this.duplicateFileName, "\u00BB (", this.duplicateFileSize, ")"), h("p", { key: 'b3c55678585b02183cda347dfd00638941a2249b' }, this.localization.duplicateFileUploadParagraph))))), this.totalTooBig && (h("div", { key: 'ad22ba887aa131d755520a5422e8620acdabe867', class: "stzh-upload__previews-message-wrapper" }, h("stzh-message", { key: 'd4e975fa486857362b2a38a8e7cd7f94e4c1f889', type: "warning", label: this.totalTooBigMessageHeading, onStzhClose: () => this.totalTooBig = false }, h("stzh-text", { key: '66da9468e077d0f0af902d6ddcf682c5f37b130f' }, h("p", { key: '8ef451c8d225428a5367144298d22428d5cc4b5f' }, this.totalTooBigMessageBody, " ", this.totalTooBigMessageBody2))))), h("stzh-dialog", { key: 'eab2675cbdd5ecfff52fc05d4313edd2c5f08940', ref: el => (this.photographingOverlayElement = el), onStzhClose: this.closePhotographingWebsocketConnection, class: this.isPhotographingAvailable && "stzh-dialog--fit-content", heading: this.localization.photographingTitle1 }, h("stzh-button", { key: '1b4fe27d0a6f6f1800d329a018f28a1b0184bfbc', class: "stzh-upload-photographing__back-button", icon: "arrow-left", size: "small", variant: "tertiary-plain", "no-padding-left": "true", "no-padding-right": "true", onClick: this.closePhotographingOverlay }, this.localization.back), this.isPhotographingAvailable && (h(Fragment, { key: 'bb9a3626bae2f6d7ab680a5f7dfc2e32ba747e68' }, h("div", { key: '031e4390ce65d7bded376ebf3f180e3aac244729', class: "stzh-upload-photographing__info" }, h("div", { key: 'b7482c3f9c4eb4f4730d2c0ae332dfdd64d659f6', class: "stzh-upload-photographing__text-qrcode" }, h("div", { key: '0f35b8e266720c7c5ce8ebdd0ee4ea870d618785', class: "stzh-upload-photographing-qrlink-container" }, h("stzh-text", { key: 'e81a8cd9e19d391d0d6232dcf765eeb3f624ecdb' }, this.localization.photographingText1)), h("div", { key: 'e050e4c14a9d4c3c15817f130bd02d5aeecf2616', class: "stzh-upload-photographing-qrcode-container" }, h("canvas", { key: '11f400120e37f4de382a52765867436fc0bae3f8', class: "stzh-upload-photographing-qrcode", ref: el => (this.photographingQrcodeElement = el) })))), h("div", { key: '72885a7d944e762c86733466c746759fd4975f99', class: "stzh-upload-photographing__info" }, h("stzh-heading", { key: '79bdba11a56e94fd963679c498d49d87c0b771e5', level: "3" }, this.localization.photographingTitle2), h("stzh-text", { key: '386dec9806261321b16e5a499458ab0697ae92ab' }, this.localization.photographingText2)), h("div", { key: '9bb5647c283f79455c62539d7efbbfcd7a7c2801', class: "stzh-upload-photographing__continue" }, !!this.photographingUrlDetails && (h("stzh-link", { key: '06daf8263a5bfba8b2c66606abca7f9a310d5c5b', class: "stzh-upload-photographing-link", href: this.photographingUrlDetails.url + "&label=" + this.cleanLabel(this.label), target: "_blank" }, this.localization.photographingContinue))))))));
934
+ .replace("{{filesize}}", `${this.maxFilesize}`), h("br", { key: '35b8210698b59d4fab1d6765d4be18027e8b0a97' }), descriptionTotalFileSizeLimit.replace("{{maxFilesizeTotal}}", `${this.maxFilesizeTotal}`)))), h("div", { key: '76e5158c816686743b79ac4808a82824a144777a', class: "stzh-upload__description-wrapper" }, ((_b = this._error) === null || _b === void 0 ? void 0 : _b.length) > 0 && (h(StzhInputDescription, { key: '9ca3869dabd0e8470413a68c48cc761f55a40232', classPrefix: "stzh-upload", id: `${this.uploadId}-description`, error: this._error }))), h("div", { key: '84ee8bf827f17377eaa3cee25b8b5e304be54066', id: `${this.uploadId}-previews`, class: "stzh-upload__previews-wrapper" }, h("div", { key: '6ca4d8519003e500f7b0dc899dee86ba322c9ee1', class: "stzh-upload__previews-inner-wrapper" }, h("div", { key: '023ef8c875f22959f2874f59743355d6cacd5d94', class: "stzh-upload__errors", ref: el => (this.errorsElement = el) }), h("div", { key: 'be5f5617093131632bc8cb1135f9bafa9bc8fdb9', class: "stzh-upload__previews dropzone-previews", ref: el => (this.previewsElement = el) })))), this.duplicateDetected && (h("div", { key: 'fdf9716b576a13c8980fe8ee34f5639816b9a810', class: "stzh-upload__previews-message-wrapper" }, h("stzh-message", { key: '7dc6cb2e0edabf507fbbc8a128d0af75b8c0471e', type: "error", label: this.localization.duplicateFileUploadHeading, onStzhClose: () => this.duplicateDetected = false }, h("stzh-text", { key: 'da88c0c61984917d13cb4669535d696cdae1d3cb' }, h("p", { key: 'e1d1ab545625c69e4d35cfb1c8ce0e8e783c09bd' }, "\u00AB", this.duplicateFileName, "\u00BB (", this.duplicateFileSize, ")"), h("p", { key: 'fd6656236cb1af21dcb720291a874cc1f1bb2897' }, this.localization.duplicateFileUploadParagraph))))), this.totalTooBig && (h("div", { key: 'bc4ce9c00ef6fa742079a9ea683566136733440f', class: "stzh-upload__previews-message-wrapper" }, h("stzh-message", { key: 'e11c00be234cd22acaea7d4bc90cd498280dfc75', type: "warning", label: this.totalTooBigMessageHeading, onStzhClose: () => this.totalTooBig = false }, h("stzh-text", { key: '6d5cd54002b55a074fa8f39ab17fc86d082886db' }, h("p", { key: '5b07fcc42eff78448904f40b627a5793c11606b4' }, this.totalTooBigMessageBody, " ", this.totalTooBigMessageBody2))))), h("stzh-dialog", { key: '8627ef64a8abd0a9925fc9c514c8f82911e59ca0', ref: el => (this.photographingOverlayElement = el), onStzhClose: this.closePhotographingWebsocketConnection, class: this.isPhotographingAvailable && "stzh-dialog--fit-content", heading: this.localization.photographingTitle1 }, h("stzh-button", { key: '452bae2dcf5faec1f667ad0c2373fcc09c73518a', class: "stzh-upload-photographing__back-button", icon: "arrow-left", size: "small", variant: "tertiary-plain", "no-padding-left": "true", "no-padding-right": "true", onClick: this.closePhotographingOverlay }, this.localization.back), this.isPhotographingAvailable && (h(Fragment, { key: 'fdf04e7b01f0f38ad4bf9c518f553da41890d028' }, h("div", { key: '2dd287a20e518f4bd96d7d8a9bc1136e010ce659', class: "stzh-upload-photographing__info" }, h("div", { key: 'dd0bb789f9da5aa94f2d3980af7565fb95921fe7', class: "stzh-upload-photographing__text-qrcode" }, h("div", { key: 'b23a36f2eceed41adde586bdc1c2668d0af46dbb', class: "stzh-upload-photographing-qrlink-container" }, h("stzh-text", { key: 'f61314d08f7a85e1ccf3c85ea598ada228fd7a5e' }, this.localization.photographingText1)), h("div", { key: 'f4e81d16f62e2e46c457ebb624ed29694d264c56', class: "stzh-upload-photographing-qrcode-container" }, h("canvas", { key: '463e3eb3b3d7cc4f94aa8d8d1a1da44d9a4856b4', class: "stzh-upload-photographing-qrcode", ref: el => (this.photographingQrcodeElement = el) })))), h("div", { key: 'e78d593b00115bcf558c2e0c6d7b436d95f8f627', class: "stzh-upload-photographing__info" }, h("stzh-heading", { key: '54a3fb491bb4c879f6bcf9bb825fda1892385e4e', level: "3" }, this.localization.photographingTitle2), h("stzh-text", { key: '5c6f900420aeff2e4533a34037f745e4e01af4dc' }, this.localization.photographingText2)), h("div", { key: 'd91ab6df2e6c7f4f800fef5e8fc870688f3724eb', class: "stzh-upload-photographing__continue" }, !!this.photographingUrlDetails && (h("stzh-link", { key: 'd9a923da8af084d075979229ae0ede71b76fde23', class: "stzh-upload-photographing-link", href: this.photographingUrlDetails.url + "&label=" + this.cleanLabel(this.label), target: "_blank" }, this.localization.photographingContinue))))))));
935
935
  }
936
936
  static get is() { return "stzh-upload"; }
937
937
  static get originalStyleUrls() {
@@ -35,7 +35,7 @@ export class StzhVbzCarousel {
35
35
  const classes = {
36
36
  "stzh-vbz-carousel": true,
37
37
  };
38
- return (h(Host, { key: '88d4b496301535ee20ce057c923608c3dfc0aa32' }, h("div", { key: 'e05bf5e1623099e515facfc5a00368f22b03b2b7', class: classes }, h("stzh-carousel", { key: 'b2ac7cb86c194e0e19a636abd7417534061fc676', noPeek: true, nonInteractive: true, preventMouseDrag: true, preventAutoplayPause: true, preventAutoplayStop: true, autoplay: true, autoplayTimeout: this.autoplayTimeout }, h("slot", { key: 'bb5533cb775cc361a8249465822f09deb0c79730' })))));
38
+ return (h(Host, { key: '207d97cdcf776cbfab2adcf2a5f41f71f1a9e750' }, h("div", { key: '1bc083fe0a7b126aa58d31a36ea8b6358de7e121', class: classes }, h("stzh-carousel", { key: '1387046faa7e62f3677ed778e462ea2505ab8ef6', noPeek: true, nonInteractive: true, preventMouseDrag: true, preventAutoplayPause: true, preventAutoplayStop: true, autoplay: true, autoplayTimeout: this.autoplayTimeout }, h("slot", { key: '77b028320eb8bdd13add5a74f6ed584c60f97df1' })))));
39
39
  }
40
40
  static get is() { return "stzh-vbz-carousel"; }
41
41
  static get encapsulation() { return "scoped"; }
@@ -13,7 +13,7 @@ export class StzhVbzConnectionFinder {
13
13
  const classes = {
14
14
  "stzh-vbz-connection-finder": true,
15
15
  };
16
- return (h(Host, { key: '534bbda251955e76d3d246aef588bbf62f474e5b' }, h("div", { key: '95f6c5b37172b815a941ab6b585497a1769d4030', class: classes }, h("script", { key: '68ba4122d88e427490e42f2218557bcbeeb4d286', src: this.zvvScript }), h("div", { key: 'ad86207536078e4d20f894da7fc32cb05bdbe792', id: "zvv-searchmask", "data-draw-input-placeholder-outside": "true", "data-toggle-style-variant": "inside", "data-hide-refresh-button": "true", "data-background-color": "#ffffff", "data-accent-color": "#ffffff", "data-input-border-color": "#7C7C7C", "data-input-border-radius": "0px", "data-input-border-width": "2px", "data-input-placeholder-color": "#034C67", "data-input-text-color": "#000000", "data-button-color": "#FFFFFF", "data-button-background-color": "#057FAC", "data-button-hover-color": "#ffffff", "data-button-hover-background-color": "#034C67", "data-button-border-radius": "0px", "data-font-family": "'HelveticaNeueLTW01_55Roman','Helvetica Neue','Helvetica,Arial',sans-serif;", "data-calendar-icon": this.getIconPath("calendar"), "data-info-icon": this.getIconPath("info-help") }))));
16
+ return (h(Host, { key: '2c832988e9a46dfc43762dbef6e6b2582c388148' }, h("div", { key: '6c551597059cf4a0cb2e1c37d40614b6967795aa', class: classes }, h("script", { key: 'dec8617b920447e25a9d9352acd2ec5248751cff', src: this.zvvScript }), h("div", { key: 'c771f32e143779928102b23d82f6efa1782fdb5e', id: "zvv-searchmask", "data-draw-input-placeholder-outside": "true", "data-toggle-style-variant": "inside", "data-hide-refresh-button": "true", "data-background-color": "#ffffff", "data-accent-color": "#ffffff", "data-input-border-color": "#7C7C7C", "data-input-border-radius": "0px", "data-input-border-width": "2px", "data-input-placeholder-color": "#034C67", "data-input-text-color": "#000000", "data-button-color": "#FFFFFF", "data-button-background-color": "#057FAC", "data-button-hover-color": "#ffffff", "data-button-hover-background-color": "#034C67", "data-button-border-radius": "0px", "data-font-family": "'HelveticaNeueLTW01_55Roman','Helvetica Neue','Helvetica,Arial',sans-serif;", "data-calendar-icon": this.getIconPath("calendar"), "data-info-icon": this.getIconPath("info-help") }))));
17
17
  }
18
18
  static get is() { return "stzh-vbz-connection-finder"; }
19
19
  static get encapsulation() { return "scoped"; }
@@ -39,7 +39,7 @@ export class StzhVbzIntro {
39
39
  const classes = {
40
40
  "stzh-vbz-intro": true,
41
41
  };
42
- return (h(Host, { key: 'c843a4a76020284946f526c42aeb5fa94fa741bb' }, h("div", { key: '40257d481a8b8653d9fca5a04877220a4bb059b4', class: classes }, h("div", { key: 'b6886d2c3a0f991d9eacd7f0123eefc2d1bbd02c', class: "stzh-vbz-intro__ticker" }, h("slot", { key: 'f73d417a5c6b260e60babec5f6bcce00f587717d', name: "ticker" })), this._quicklinks.length > 0 && (h("div", { key: '96a180ddf7fbb4f7bce1ccec095e6a5b1a289acb', class: "stzh-vbz-intro__quicklinks" }, h("stzh-heading", { key: '6cf4cce446b973ad671e7f94ab4c0ecca1ee25bf', class: "stzh-vbz-intro-quicklinks__heading" }, this.localization.quicklinksHeading), this._quicklinks.map(item => (h("div", { class: "stzh-vbz-intro-quicklink" }, h("stzh-link", { class: "stzh-vbz-intro-quicklink__link", href: item.href, icon: "arrow-right" }, item.label)))))))));
42
+ return (h(Host, { key: '35d15b69cb08d3887cdb8b44649f23146911ecd1' }, h("div", { key: 'd44fa8d5921aae632170689deab0b60719ca28d6', class: classes }, h("div", { key: '18bbb188c5361752980e9f26c9c5f58b87484ca5', class: "stzh-vbz-intro__ticker" }, h("slot", { key: '29d6ca595cb567c6431224bbfe4b8093b97738d6', name: "ticker" })), this._quicklinks.length > 0 && (h("div", { key: '83cad93d87c7a28e129adc5b926d0effecb5a08f', class: "stzh-vbz-intro__quicklinks" }, h("stzh-heading", { key: 'b466cca08f8e279c60beb6f6458b1d2488fd8ce8', class: "stzh-vbz-intro-quicklinks__heading" }, this.localization.quicklinksHeading), this._quicklinks.map(item => (h("div", { class: "stzh-vbz-intro-quicklink" }, h("stzh-link", { class: "stzh-vbz-intro-quicklink__link", href: item.href, icon: "arrow-right" }, item.label)))))))));
43
43
  }
44
44
  static get is() { return "stzh-vbz-intro"; }
45
45
  static get encapsulation() { return "scoped"; }
@@ -69,11 +69,11 @@ export class StzhVbzLinechip {
69
69
  [`stzh-vbz-linechip--line-${this.line}`]: !!this.line
70
70
  };
71
71
  const title = lineData.comment || "";
72
- return (h(Host, { key: '43971c0543efd4f1e84faacebcd741b89c7c0f7c', tabindex: this.disabled ? null : "-1", onFocus: this.onRootFocus }, h("button", { key: '37c70e819f6b6d8fd0cc2255b23433bc0bcef681', ref: (el) => (this.chip = el), class: classes, style: styles, title: title, disabled: this.disabled, onFocus: this.onFocus, onBlur: this.onBlur, "s-object-id": this.analyticsId || (this.global ? "Global" : this.line) }, this.global ?
72
+ return (h(Host, { key: 'bff2f13acc12a2bed52330b89f70ccf73055898e', tabindex: this.disabled ? null : "-1", onFocus: this.onRootFocus }, h("button", { key: '3f4500eaa2cdffd68d621f1caaa5c433cf848259', ref: (el) => (this.chip = el), class: classes, style: styles, title: title, disabled: this.disabled, onFocus: this.onFocus, onBlur: this.onBlur, "s-object-id": this.analyticsId || (this.global ? "Global" : this.line) }, this.global ?
73
73
  h("stzh-icon", { name: "important-warning", class: "stzh-vbz-linechip__global-icon" })
74
74
  :
75
75
  h("div", { class: "stzh-vbz-linechip__text" }, this.line), this.alert &&
76
- h("div", { key: 'c52632e877ef84a81286ec2c41756558c38b0c0a', class: "stzh-vbz-linechip__alert" }, h("stzh-icon", { key: '575439dc4df650e76e660c0f95f189b3e3dff43e', name: "warning-big", class: "stzh-vbz-linechip__alert-icon" })))));
76
+ h("div", { key: 'dfe71362971e9926eafbdc9ff3f9d55f17fda3a8', class: "stzh-vbz-linechip__alert" }, h("stzh-icon", { key: 'fccb09f2f47d8e8d3420aaa2516b5b01edb52332', name: "warning-big", class: "stzh-vbz-linechip__alert-icon" })))));
77
77
  }
78
78
  static get is() { return "stzh-vbz-linechip"; }
79
79
  static get encapsulation() { return "scoped"; }
@@ -92,8 +92,8 @@ export class StzhVbzMajorticker {
92
92
  const classes = {
93
93
  "stzh-vbz-majorticker": true
94
94
  };
95
- return (h(Host, { key: 'b61b37d4c0a70c5bf7a5bc7f4e25de4efe2838a2', hidden: !this.disturbance || !this.ghettoboxShown }, h("div", { key: 'fc8b6983cd9c8bc0978ebf4d059da50b302bd8f4', class: classes }, this.disturbance &&
96
- h("stzh-show", { key: '1606014fcd7e481173c8e9d65667d99d681d4dbc', mikro: true, closeKey: this.showCloseKey, showFromDate: this.disturbance.startDate }, h("stzh-ghettobox", { key: '78c28f478907a74013026b341fc9c2ec1813c7a3', onStzhOpen: this.onGhettoboxOpen, onStzhClose: this.onGhettoboxClose, class: "stzh-vbz-majorticker__ghettobox", hideClose: true, mainTitle: this.disturbance.head }, h("stzh-richtext", { key: '0fc63197f40c27c5558ba7b74ed6092587685059', innerHTML: this.disturbance.text }), this.disturbance.infoUrl ?
95
+ return (h(Host, { key: '3c1e7f102ef9ab33f569d571af422bef3373bade', hidden: !this.disturbance || !this.ghettoboxShown }, h("div", { key: '07aef2b96582a2d2fc8f63c526774dc68bfa1825', class: classes }, this.disturbance &&
96
+ h("stzh-show", { key: '48b3aaf5c5e2d8ebeec393780f2809571ee6b151', mikro: true, closeKey: this.showCloseKey, showFromDate: this.disturbance.startDate }, h("stzh-ghettobox", { key: '05c91ea48a84e4137b1626ab293710d0ed09eb57', onStzhOpen: this.onGhettoboxOpen, onStzhClose: this.onGhettoboxClose, class: "stzh-vbz-majorticker__ghettobox", hideClose: true, mainTitle: this.disturbance.head }, h("stzh-richtext", { key: 'f6270e68b2d603c6c3cf74b4734ec6273c0fa09b', innerHTML: this.disturbance.text }), this.disturbance.infoUrl ?
97
97
  h("stzh-button", { slot: "button", href: this.disturbance.infoUrl.url }, this.disturbance.infoUrl.name)
98
98
  :
99
99
  h("stzh-button", { slot: "button", target: "_blank", href: this.moreInfoLink
@@ -145,9 +145,9 @@ export class StzhVbzTicker {
145
145
  const classes = {
146
146
  "stzh-vbz-ticker": true,
147
147
  };
148
- return (h(Host, { key: 'ca3a0bffec68ef90c1037edcf22bed93e4bcb00b' }, h("div", { key: 'bdb1f407517a490ee3e10a28c55504cc2b81ab6c', class: classes }, h("div", { key: '8392fc9f6b8de19ebd157eec6903b09e63c0afff', class: "stzh-vbz-ticker__content" }, this.counter[VBZ.DISTURBANCE_NORMAL] > 0 && (h(Fragment, { key: 'd531653acb39b610f7798f7c6e63eef3709b6e7e' }, h("div", { key: '32a0531a8b5704eb482fc3e9391baa18e870a37b', class: "stzh-vbz-ticker__title" }, h("div", { key: 'ab54b7fdd5652c883fcc407cdc19804ea2cda58a', class: "stzh-vbz-ticker__title-part stzh-vbz-ticker__title-part--disturbances" }, h("stzh-icon", { key: '591401c773cf6ed94e143ffefe2af775f28d3d33', class: "stzh-vbz-ticker__icon", name: "warning" }), this.localization.disturbancesTitle)), h("div", { key: '4f2e716ca1768145dac7c20a801f1ee1b94fc572', class: "stzh-vbz-ticket__lines" }, h("div", { key: '0ba6a3872143f78da8e4687fb847c487c6f75156', class: "stzh-vbz-ticker__chips", role: "list" }, this.linesWithDisturbances.map(line => (h("div", { class: "stzh-vbz-ticker__chip", role: "listitem" }, h("stzh-tooltip", { class: "stzh-vbz-ticker__tooltip" }, h("stzh-vbz-linechip", { line: line.line, alert: line.alert }), h("div", { class: "stzh-vbz-ticker__tooltip-content", slot: "content" }, line.disturbances.map(disturbance => this.renderDisturbance(disturbance))))))))))), (this.counter[VBZ.DISTURBANCE_CONSTRUCTION] > 0 ||
148
+ return (h(Host, { key: 'f5df253926eaee29b02c692a5eee4ffa9c4da6b6' }, h("div", { key: 'f90c4922178f70ec075561bc36fa2f351b914d7a', class: classes }, h("div", { key: 'ceb4c4e6ff92e891940eca0b201d1f725a78bdaa', class: "stzh-vbz-ticker__content" }, this.counter[VBZ.DISTURBANCE_NORMAL] > 0 && (h(Fragment, { key: '32c1a922fd87880f84d948c88971526d2dea5dba' }, h("div", { key: '2a7a555773bdc6213b7d264d2f0890f85bc60337', class: "stzh-vbz-ticker__title" }, h("div", { key: 'ad8d0753bd9deec4a668c353497e8484c5b35feb', class: "stzh-vbz-ticker__title-part stzh-vbz-ticker__title-part--disturbances" }, h("stzh-icon", { key: 'c0ff9dd93ac82e9883f052a4fb33425d8348a8f3', class: "stzh-vbz-ticker__icon", name: "warning" }), this.localization.disturbancesTitle)), h("div", { key: '1dc9e791be6f2cc89be5b308d3aec6330fb86e98', class: "stzh-vbz-ticket__lines" }, h("div", { key: '97961b8fab7e7931a4b1457956b668cd97448a7e', class: "stzh-vbz-ticker__chips", role: "list" }, this.linesWithDisturbances.map(line => (h("div", { class: "stzh-vbz-ticker__chip", role: "listitem" }, h("stzh-tooltip", { class: "stzh-vbz-ticker__tooltip" }, h("stzh-vbz-linechip", { line: line.line, alert: line.alert }), h("div", { class: "stzh-vbz-ticker__tooltip-content", slot: "content" }, line.disturbances.map(disturbance => this.renderDisturbance(disturbance))))))))))), (this.counter[VBZ.DISTURBANCE_CONSTRUCTION] > 0 ||
149
149
  this.counter[VBZ.DISTURBANCE_EVENT] > 0 ||
150
- this.counter[VBZ.DISTURBANCE_BUS] > 0) && (h(Fragment, { key: 'ee94be74186eb8783a520b246c295e4e2d40b391' }, h("div", { key: 'ed2b24aa5fc77372ad9e08663def78a2ce35e774', class: "stzh-vbz-ticker__title" }, h("div", { key: '15a49e12b6cd85dbac1e8bfc9500d0bb37102bc1', class: "stzh-vbz-ticker__title-parts" }, h("div", { key: 'bd97c058d6bdd27b9056404eeb32dcbc4363f466', class: "stzh-vbz-ticker__title-part stzh-vbz-ticker__title-part--others" }, h("stzh-icon", { key: '36922e9be01daea3ca8e45d73717b078b81b2d3c', class: "stzh-vbz-ticker__icon", name: "construction" }), this.localization.constructionsTitle))), h("div", { key: '3e05bb242b2fb6a3c14d7de304ee6410ea277505', class: "stzh-vbz-ticket__lines" }, h("div", { key: 'cd3bf6e0e061bc80deb0b01173c7674e2bb291c2', class: "stzh-vbz-ticker__chips", role: "list" }, this.linesWithConstructions.map(line => (h("div", { class: "stzh-vbz-ticker__chip", role: "listitem" }, h("stzh-tooltip", { class: "stzh-vbz-ticker__tooltip" }, h("stzh-vbz-linechip", { line: line.line, alert: line.alert }), h("div", { class: "stzh-vbz-ticker__tooltip-content", slot: "content" }, line.disturbances.map(disturbance => this.renderDisturbance(disturbance))))))))))), h("div", { key: '0355f3bd96e947f897636f0eec898b73c3bcec2d', class: "stzh-vbz-ticker__link" }, h("slot", { key: '4ccec91afb118781528f43a42d00ac99b3497fc1', name: "link" }))))));
150
+ this.counter[VBZ.DISTURBANCE_BUS] > 0) && (h(Fragment, { key: '10adf6fb3c5ff5d65f02ecc5b08dc660bb7154bf' }, h("div", { key: '657c621c73867cddbc8c104fb1a93ac06c6438fc', class: "stzh-vbz-ticker__title" }, h("div", { key: '8ee1894994bb6cc032193597376c4dc90c559bed', class: "stzh-vbz-ticker__title-parts" }, h("div", { key: '498444822783ba5e48f6a0a10f7b9c1be3bddc4b', class: "stzh-vbz-ticker__title-part stzh-vbz-ticker__title-part--others" }, h("stzh-icon", { key: '71cd29bcd32e6ea74bac58a3fbd5111b6a3ad4f7', class: "stzh-vbz-ticker__icon", name: "construction" }), this.localization.constructionsTitle))), h("div", { key: '7ef88a47edeefe3d8f77b8d1e9d96cee74137be3', class: "stzh-vbz-ticket__lines" }, h("div", { key: '1e489f437ace859a1317b5f936927790b150d71e', class: "stzh-vbz-ticker__chips", role: "list" }, this.linesWithConstructions.map(line => (h("div", { class: "stzh-vbz-ticker__chip", role: "listitem" }, h("stzh-tooltip", { class: "stzh-vbz-ticker__tooltip" }, h("stzh-vbz-linechip", { line: line.line, alert: line.alert }), h("div", { class: "stzh-vbz-ticker__tooltip-content", slot: "content" }, line.disturbances.map(disturbance => this.renderDisturbance(disturbance))))))))))), h("div", { key: '51e59486683ef7bcf46eb936f30e02768e4f4abf', class: "stzh-vbz-ticker__link" }, h("slot", { key: '53dc33c68b8fd9b757ba00b9f7c27b03fcb80209', name: "link" }))))));
151
151
  }
152
152
  static get is() { return "stzh-vbz-ticker"; }
153
153
  static get encapsulation() { return "scoped"; }
@@ -4,9 +4,9 @@ import { Host, h } from "@stencil/core";
4
4
  */
5
5
  export class StzhVisuallyhidden {
6
6
  render() {
7
- return (h(Host, { key: 'ac778c07f9b4f62c3fcb1d2e5d112ec03e64ef3c' }, h("div", { key: '418e22473dad174e8092c787052cbe51437cfdae', class: {
7
+ return (h(Host, { key: '8a00d2422f8c0bf2b916bc0b3c421125858552a9' }, h("div", { key: '9924cc8068d62ea8146ef0b5be0ce0bda978d7b2', class: {
8
8
  "stzh-visuallyhidden": true
9
- } }, h("slot", { key: '70b0366ef9551a84589e2b5b270fe014dd395a65' }))));
9
+ } }, h("slot", { key: 'd47965cb1280ede2d6a1ab28a63b5e18d97a2864' }))));
10
10
  }
11
11
  static get is() { return "stzh-visuallyhidden"; }
12
12
  static get encapsulation() { return "scoped"; }
@@ -18,11 +18,11 @@ export class StzhVspace {
18
18
  this.border = "none";
19
19
  }
20
20
  render() {
21
- return (h(Host, { key: '82374c945773f3af31dde7d45600622f562d4260' }, h("div", { key: '64c083c8c54deaa1997a7ad83adf14ad8656c803', class: {
21
+ return (h(Host, { key: '500067f6eab1878c9a32746149bcadbf4366ac3e' }, h("div", { key: 'ddb27d13a69c3b4620205527d062d84ef096c64f', class: {
22
22
  "stzh-vspace": true,
23
23
  [`stzh-vspace--justify-${this.justify}`]: !!this.justify,
24
24
  [`stzh-vspace--items-${this.items}`]: !!this.items
25
- } }, h("slot", { key: '6c14f40251bc488bbf644c242533753035a73f8b' }))));
25
+ } }, h("slot", { key: 'c18426e14996d93b011478a1dc9411b845065cf3' }))));
26
26
  }
27
27
  static get is() { return "stzh-vspace"; }
28
28
  static get encapsulation() { return "shadow"; }
@@ -37,7 +37,7 @@ export class StzhYoutube {
37
37
  + "&enablejsapi=1"
38
38
  + "&widgetid=1"
39
39
  + (this.previewSkipped ? "" : "&autoplay=1");
40
- return (h(Host, { key: 'ab9a4f02b0ac2d1c4558df4b7adc00d50c019294' }, h("div", { key: '397e3f5a41ab4d26d7104f164d5d6090029e661f', class: classes }, h("stzh-ratio", { key: 'b56ca664e2f45a51c1b5dc5c2b3801d1cf6d5989' }, h("stzh-iframe", { key: '4587abe56f07ef2c87f86543445ee1dcb23d9702', src: url, previewLabel: this.localization.previewLabel, previewIcon: "play", cookie: this.cookie, cookieConfirmLabel: this.localization.confirmLabel, cookieConfirmIcon: "play", cookieExpires: this.cookieExpires, skipPreview: this.skipPreview, skipPreviewIfCookieAccepted: this.skipPreviewIfCookieAccepted, onStzhPreviewSkip: this.handlePreviewSkipped }, h("slot", { key: '2c4e57a28101ce41a3d4e83d212ecea64d3f4ffa', name: "preview-logo", slot: "preview-logo" }), h("slot", { key: 'd973c7497cdcd5358736deba66abefe70e6a91d6', name: "preview-image", slot: "preview-image" }), h("div", { key: 'd9a10bb0cc8a366c140d0148792224915ce9529f', slot: "cookiewall-text", innerHTML: this.localization.confirmText }))))));
40
+ return (h(Host, { key: '86a84f718a767e382325d9d33a4912492ad16df5' }, h("div", { key: '080f8026fca6bd6ff1668bcd48652b7bf12b16af', class: classes }, h("stzh-ratio", { key: 'a3c69677952eb8759660e6b8d32580270139ba00' }, h("stzh-iframe", { key: '4d5dad57f879fb76c722766b4efd551fadc180f3', src: url, previewLabel: this.localization.previewLabel, previewIcon: "play", cookie: this.cookie, cookieConfirmLabel: this.localization.confirmLabel, cookieConfirmIcon: "play", cookieExpires: this.cookieExpires, skipPreview: this.skipPreview, skipPreviewIfCookieAccepted: this.skipPreviewIfCookieAccepted, onStzhPreviewSkip: this.handlePreviewSkipped }, h("slot", { key: '090c0c87aa0fe4fa301c77fbf22b94186cf027c3', name: "preview-logo", slot: "preview-logo" }), h("slot", { key: '89e617ea9db5b267f3686638d50c68fe8a63f62d', name: "preview-image", slot: "preview-image" }), h("div", { key: '18990ace524ce4494405c80d7359a3c16b4083a0', slot: "cookiewall-text", innerHTML: this.localization.confirmText }))))));
41
41
  }
42
42
  static get is() { return "stzh-youtube"; }
43
43
  static get encapsulation() { return "scoped"; }
@@ -2,7 +2,7 @@ export { g as getAssetPath, s as setAssetPath, a as setNonce, b as setPlatformOp
2
2
  export { S as StzhSocialmediastreamItemActionVariant, V as VBZ, t as tc } from './p-f5779736.js';
3
3
 
4
4
  const name = "@oiz/stzh-components";
5
- const version = "4.0.0-beta3";
5
+ const version = "4.0.1-beta";
6
6
 
7
7
  const packageName = name.substring(name.indexOf('/')+1);
8
8
  // let focused = false;
@@ -86,7 +86,7 @@ const StzhTag = /*@__PURE__*/ proxyCustomElement(class StzhTag extends H {
86
86
  };
87
87
  const Tag = this.nonInteractive ? "div" :
88
88
  this.href ? "a" : "button";
89
- return (h(Host, { key: '41da409f6ae68be3e8b5a44309d482daa6c60ffb', tabindex: this.disabled ? null : "-1", onFocus: this.onRootFocus }, h("div", { key: 'af47d8c918967e470688af50a45dbf958cad38b1', class: classes }, this.href ?
89
+ return (h(Host, { key: 'b6e23aab89a74ab5606a5c1a8eec451565fd4528', tabindex: this.disabled ? null : "-1", onFocus: this.onRootFocus }, h("div", { key: '52a3498a069f6f882178498b0d59d707fa9a436c', class: classes }, this.href ?
90
90
  h(Tag, { ref: (el) => (this.tag = el), class: {
91
91
  "stzh-tag__button": true,
92
92
  "is-button": !this.nonInteractive && !this.href,
@@ -151,4 +151,4 @@ function defineCustomElement() {
151
151
 
152
152
  export { StzhTag as S, defineCustomElement as d };
153
153
 
154
- //# sourceMappingURL=p-84f171a0.js.map
154
+ //# sourceMappingURL=p-02bdd12e.js.map
@@ -1 +1 @@
1
- {"file":"p-84f171a0.js","mappings":";;;;;;AAAA,MAAM,UAAU,GAAG,wuHAAwuH,CAAC;AAC5vH,sBAAe,UAAU;;MC0BZ,OAAO;;;;;;;QA0DV,mBAAc,GAAY,KAAK,CAAC;QAwBhC,gBAAW,GAAG;YACpB,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE;gBACxB,IAA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cAAc,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI;iBAC/C,EACD,IAAI,EAAE,IAAI,CAAC,QAAQ,GAAG,IAAI,GAAG,IAAI,CAAC,IAAI,EACtC,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,QAAQ,EAAE,IAAI,CAAC,YAAY,gBACf,IAAI,CAAC,SAAS,IAAI,IAAI,sBAChB,IAAI,CAAC,eAAe,IAAI,IAAI,EAC9C,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,MAAM,EAAE,IAAI,CAAC,MAAM,IAElB,IAAI,CAAC,WAAW,EAAE,CACf;;gBAEN,EAAC,GAAG,IACF,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,GAAG,GAAG,EAAwC,CAAC,EAClE,KAAK,EAAE;wBACL,kBAAkB,EAAE,IAAI;wBACxB,WAAW,EAAE,CAAC,IAAI,CAAC,cAAc,IAAI,CAAC,IAAI,CAAC,IAAI;wBAC/C,SAAS,EAAE,CAAC,IAAI,CAAC,cAAc,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI;qBAC/C,EACD,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAE,IAAI,CAAC,YAAY,gBACf,IAAI,CAAC,SAAS,IAAI,IAAI,sBAChB,IAAI,CAAC,eAAe,IAAI,IAAI,EAC9C,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,MAAM,EAAE,IAAI,CAAC,MAAM,IAElB,IAAI,CAAC,WAAW,EAAE,CACf,CAEJ,CACD,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/stzh-tag/stzh-tag.scss?tag=stzh-tag&encapsulation=scoped","src/components/stzh-tag/stzh-tag.tsx"],"sourcesContent":[":host {\n --color: var(--stzh-tag-color, #{$colorSecondary60});\n --height: 24px;\n --padding-top: 0;\n --padding-bottom: 0;\n --padding-left: #{space('small')};\n --padding-right: #{space('small')};\n --background-color: var(--stzh-tag-background-color, #{$colorGrey20});\n\n --hover-color: var(--stzh-tag-hover-color, #{$colorSecondary60});\n --hover-background-color: var(--stzh-tag-hover-background-color, var(--background-color));\n\n display: inline-flex;\n\n &[size=\"large\"] {\n --height: 32px;\n }\n\n &[size=\"default\"][type=\"secondary\"] {\n --background-color: var(--stzh-tag-secondary-background-color, #{$colorSecondary60});\n }\n\n &[type=\"secondary\"] {\n --color: var(--stzh-tag-secondary-color, #{$colorWhite});\n --background-color: var(--stzh-tag-secondary-background-color, #{$colorSecondary60});\n --hover-color: var(--stzh-tag-secondary-hover-color, #{$colorWhite});\n --hover-background-color: var(--stzh-tag-secondary-hover-background-color, var(--background-color));\n }\n\n &[non-interactive]:not([non-interactive=\"false\"]) {\n --hover-color: var(--color);\n --hover-background-color: var(--background-color);\n }\n\n &[disabled]:not([disabled=\"false\"]) {\n --color: var(--stzh-tag-disabled-color, #{$colorGrey70});\n --background-color: var(--stzh-tag-disabled-background-color, #{$colorGrey20});\n\n --hover-color: var(--color);\n --hover-background-color: var(--background-color);\n }\n}\n\n.stzh-tag {\n position: relative;\n\n &__button {\n @include fontSize('nano');\n font-family: inherit;\n height: var(--height);\n display: flex;\n flex-direction: row;\n align-items: center;\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 appearance: none;\n border: none;\n background-color: var(--background-color);\n transition-duration: $baseTransitionAnimationSpeed;\n transition-property: color, background-color;\n text-decoration-line: none;\n\n &.is-button,\n &.is-link {\n cursor: pointer;\n }\n }\n\n &__label {\n text-align: left;\n }\n\n &__button:hover {\n color: var(--hover-color);\n background-color: var(--hover-background-color);\n }\n\n /* Size */\n\n &--size-large &__button {\n @include font('heavy');\n @include fontSize('milli');\n }\n\n /* Disabled */\n\n &--is-disabled &__button {\n cursor: not-allowed;\n }\n}\n","import {\n Component,\n Host,\n h,\n Prop,\n Event,\n EventEmitter,\n Element,\n Fragment\n} from \"@stencil/core\";\n\nimport {\n StzhTagType,\n StzhTagSize,\n StzhTagClickEvent,\n StzhTagFocusEvent,\n StzhTagBlurEvent\n} from \"../../index\";\n\n/**\n * @slot - Slot for label\n */\n@Component({\n tag: \"stzh-tag\",\n styleUrl: \"stzh-tag.scss\",\n scoped: true\n})\nexport class StzhTag {\n /** Label */\n @Prop() label: string = \"\";\n\n /** `href` if the tag 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 tag is not interactive */\n @Prop({ reflect: true }) nonInteractive: boolean = false;\n\n /** Type */\n @Prop({ reflect: true }) type: StzhTagType = \"default\";\n\n /** Size */\n @Prop({ reflect: true }) size: StzhTagSize = \"default\";\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: HTMLStzhTagElement;\n\n /** Click event */\n @Event() stzhClick: EventEmitter<StzhTagClickEvent>;\n\n /** Focus event */\n @Event() stzhFocus: EventEmitter<StzhTagFocusEvent>;\n\n /** Input blur event */\n @Event() stzhBlur: EventEmitter<StzhTagBlurEvent>;\n\n private tag: HTMLButtonElement | HTMLAnchorElement | HTMLDivElement;\n private text: HTMLElement;\n private focusedByInput: boolean = false;\n\n componentDidRender() {\n requestAnimationFrame(() => {\n if (!this.nonInteractive) {\n this.tag?.setAttribute(\"s-object-id\", this.analyticsId || this.text.innerText);\n }\n });\n }\n\n private renderInner(): DocumentFragment {\n return (\n <Fragment>\n <stzh-clamp\n lines={1}\n class=\"stzh-tag__label\"\n ref={(el) => (this.text = el as HTMLElement)}\n >\n {this.label ? this.label : <slot></slot>}\n </stzh-clamp>\n </Fragment>\n );\n }\n\n private onRootFocus = () => {\n if (!this.focusedByInput) {\n this.tag.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-tag\",\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-tag\",\n originalEvent: event\n });\n }\n\n private onClick = (event: MouseEvent) => {\n this.stzhClick.emit({\n component: \"stzh-tag\",\n originalEvent: event,\n href: this.href\n });\n }\n\n render() {\n const classes = {\n \"stzh-tag\": true,\n \"stzh-tag--is-disabled\": this.disabled,\n [`stzh-tag--size-${this.size}`]: !!this.size,\n [`stzh-tag--${this.type}`]: !!this.type\n };\n\n const Tag = this.nonInteractive ? \"div\" :\n this.href ? \"a\" : \"button\";\n\n return (\n <Host tabindex={this.disabled ? null : \"-1\"} onFocus={this.onRootFocus}>\n <div class={classes}>\n {this.href ?\n <Tag\n ref={(el) => (this.tag = el as HTMLAnchorElement)}\n class={{\n \"stzh-tag__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 </Tag>\n :\n <Tag\n ref={(el) => (this.tag = el as HTMLButtonElement | HTMLDivElement)}\n class={{\n \"stzh-tag__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 </Tag>\n }\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"p-02bdd12e.js","mappings":";;;;;;AAAA,MAAM,UAAU,GAAG,wuHAAwuH,CAAC;AAC5vH,sBAAe,UAAU;;MC0BZ,OAAO;;;;;;;QA0DV,mBAAc,GAAY,KAAK,CAAC;QAwBhC,gBAAW,GAAG;YACpB,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE;gBACxB,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC;aAClB;YAED,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC;SAC7B,CAAA;QAEO,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,UAAU;gBACrB,aAAa,EAAE,KAAK;aACrB,CAAC,CAAC;SACJ,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wC,CAAC,EAClE,KAAK,EAAE;wBACL,kBAAkB,EAAE,IAAI;wBACxB,WAAW,EAAE,CAAC,IAAI,CAAC,cAAc,IAAI,CAAC,IAAI,CAAC,IAAI;wBAC/C,SAAS,EAAE,CAAC,IAAI,CAAC,cAAc,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI;qBAC/C,EACD,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAE,IAAI,CAAC,YAAY,gBACf,IAAI,CAAC,SAAS,IAAI,IAAI,sBAChB,IAAI,CAAC,eAAe,IAAI,IAAI,EAC9C,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,MAAM,EAAE,IAAI,CAAC,MAAM,IAElB,IAAI,CAAC,WAAW,EAAE,CACf,CAEJ,CACD,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/stzh-tag/stzh-tag.scss?tag=stzh-tag&encapsulation=scoped","src/components/stzh-tag/stzh-tag.tsx"],"sourcesContent":[":host {\n --color: var(--stzh-tag-color, #{$colorSecondary60});\n --height: 24px;\n --padding-top: 0;\n --padding-bottom: 0;\n --padding-left: #{space('small')};\n --padding-right: #{space('small')};\n --background-color: var(--stzh-tag-background-color, #{$colorGrey20});\n\n --hover-color: var(--stzh-tag-hover-color, #{$colorSecondary60});\n --hover-background-color: var(--stzh-tag-hover-background-color, var(--background-color));\n\n display: inline-flex;\n\n &[size=\"large\"] {\n --height: 32px;\n }\n\n &[size=\"default\"][type=\"secondary\"] {\n --background-color: var(--stzh-tag-secondary-background-color, #{$colorSecondary60});\n }\n\n &[type=\"secondary\"] {\n --color: var(--stzh-tag-secondary-color, #{$colorWhite});\n --background-color: var(--stzh-tag-secondary-background-color, #{$colorSecondary60});\n --hover-color: var(--stzh-tag-secondary-hover-color, #{$colorWhite});\n --hover-background-color: var(--stzh-tag-secondary-hover-background-color, var(--background-color));\n }\n\n &[non-interactive]:not([non-interactive=\"false\"]) {\n --hover-color: var(--color);\n --hover-background-color: var(--background-color);\n }\n\n &[disabled]:not([disabled=\"false\"]) {\n --color: var(--stzh-tag-disabled-color, #{$colorGrey70});\n --background-color: var(--stzh-tag-disabled-background-color, #{$colorGrey20});\n\n --hover-color: var(--color);\n --hover-background-color: var(--background-color);\n }\n}\n\n.stzh-tag {\n position: relative;\n\n &__button {\n @include fontSize('nano');\n font-family: inherit;\n height: var(--height);\n display: flex;\n flex-direction: row;\n align-items: center;\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 appearance: none;\n border: none;\n background-color: var(--background-color);\n transition-duration: $baseTransitionAnimationSpeed;\n transition-property: color, background-color;\n text-decoration-line: none;\n\n &.is-button,\n &.is-link {\n cursor: pointer;\n }\n }\n\n &__label {\n text-align: left;\n }\n\n &__button:hover {\n color: var(--hover-color);\n background-color: var(--hover-background-color);\n }\n\n /* Size */\n\n &--size-large &__button {\n @include font('heavy');\n @include fontSize('milli');\n }\n\n /* Disabled */\n\n &--is-disabled &__button {\n cursor: not-allowed;\n }\n}\n","import {\n Component,\n Host,\n h,\n Prop,\n Event,\n EventEmitter,\n Element,\n Fragment\n} from \"@stencil/core\";\n\nimport {\n StzhTagType,\n StzhTagSize,\n StzhTagClickEvent,\n StzhTagFocusEvent,\n StzhTagBlurEvent\n} from \"../../index\";\n\n/**\n * @slot - Slot for label\n */\n@Component({\n tag: \"stzh-tag\",\n styleUrl: \"stzh-tag.scss\",\n scoped: true\n})\nexport class StzhTag {\n /** Label */\n @Prop() label: string = \"\";\n\n /** `href` if the tag 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 tag is not interactive */\n @Prop({ reflect: true }) nonInteractive: boolean = false;\n\n /** Type */\n @Prop({ reflect: true }) type: StzhTagType = \"default\";\n\n /** Size */\n @Prop({ reflect: true }) size: StzhTagSize = \"default\";\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: HTMLStzhTagElement;\n\n /** Click event */\n @Event() stzhClick: EventEmitter<StzhTagClickEvent>;\n\n /** Focus event */\n @Event() stzhFocus: EventEmitter<StzhTagFocusEvent>;\n\n /** Input blur event */\n @Event() stzhBlur: EventEmitter<StzhTagBlurEvent>;\n\n private tag: HTMLButtonElement | HTMLAnchorElement | HTMLDivElement;\n private text: HTMLElement;\n private focusedByInput: boolean = false;\n\n componentDidRender() {\n requestAnimationFrame(() => {\n if (!this.nonInteractive) {\n this.tag?.setAttribute(\"s-object-id\", this.analyticsId || this.text.innerText);\n }\n });\n }\n\n private renderInner(): DocumentFragment {\n return (\n <Fragment>\n <stzh-clamp\n lines={1}\n class=\"stzh-tag__label\"\n ref={(el) => (this.text = el as HTMLElement)}\n >\n {this.label ? this.label : <slot></slot>}\n </stzh-clamp>\n </Fragment>\n );\n }\n\n private onRootFocus = () => {\n if (!this.focusedByInput) {\n this.tag.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-tag\",\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-tag\",\n originalEvent: event\n });\n }\n\n private onClick = (event: MouseEvent) => {\n this.stzhClick.emit({\n component: \"stzh-tag\",\n originalEvent: event,\n href: this.href\n });\n }\n\n render() {\n const classes = {\n \"stzh-tag\": true,\n \"stzh-tag--is-disabled\": this.disabled,\n [`stzh-tag--size-${this.size}`]: !!this.size,\n [`stzh-tag--${this.type}`]: !!this.type\n };\n\n const Tag = this.nonInteractive ? \"div\" :\n this.href ? \"a\" : \"button\";\n\n return (\n <Host tabindex={this.disabled ? null : \"-1\"} onFocus={this.onRootFocus}>\n <div class={classes}>\n {this.href ?\n <Tag\n ref={(el) => (this.tag = el as HTMLAnchorElement)}\n class={{\n \"stzh-tag__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 </Tag>\n :\n <Tag\n ref={(el) => (this.tag = el as HTMLButtonElement | HTMLDivElement)}\n class={{\n \"stzh-tag__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 </Tag>\n }\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -2,8 +2,8 @@ import { p as proxyCustomElement, H, c as createEvent, h, d as Host } from './p-
2
2
  import { h as hasSlot } from './p-d1f98854.js';
3
3
  import { S as StzhInputDescription } from './p-6393ca35.js';
4
4
  import { d as defineCustomElement$3 } from './p-8d12a95f.js';
5
- import { d as defineCustomElement$2 } from './p-3d24141a.js';
6
- import { d as defineCustomElement$1 } from './p-adc06dc4.js';
5
+ import { d as defineCustomElement$2 } from './p-7eced0db.js';
6
+ import { d as defineCustomElement$1 } from './p-ae7adee7.js';
7
7
 
8
8
  const stzhRadioCss = ".sc-stzh-radio-h{font-family:var(--stzh-font-family-medium);font-weight:var(--stzh-font-weight-medium);font-style:var(--stzh-font-style-medium);color:var(--stzh-base-color);box-sizing:border-box;display:block}[hidden].sc-stzh-radio-h,[stzh-hidden].sc-stzh-radio-h{display:none}.sc-stzh-radio-h::selection{color:var(--stzh-selection-color);background-color:var(--stzh-selection-background-color)}.sc-stzh-radio-h *.sc-stzh-radio,.sc-stzh-radio-h *.sc-stzh-radio::before,.sc-stzh-radio-h *.sc-stzh-radio::after{box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness);-webkit-text-decoration-skip-ink:var(--stzh-link-text-decoration-skip-ink);text-decoration-skip-ink:var(--stzh-link-text-decoration-skip-ink)}.sc-stzh-radio-h .has-focus.sc-stzh-radio{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.125rem}.sc-stzh-radio-h .stzh-fylingfocus-focused.sc-stzh-radio{outline-style:none !important}.sc-stzh-radio-h .stzh-fylingfocus-focused.sc-stzh-radio::-moz-focus-inner{border:0 !important}.sc-stzh-radio-h{--label-color:var(--stzh-radio-label-color, var(--stzh-base-color));--label-hover-color:var(--stzh-radio-label-hover-color, var(--stzh-color-primary70));--label-hover-checked-color:var(--stzh-radio-label-hover-checked-color, var(--stzh-color-primary90));display:inline-block}[disabled].sc-stzh-radio-h:not([disabled=false]){--description-color:var(--stzh-color-grey70)}.stzh-radio.sc-stzh-radio{display:grid}.stzh-radio__marker-symbol.sc-stzh-radio{font-family:var(--stzh-font-family-medium);font-weight:var(--stzh-font-weight-medium);font-style:var(--stzh-font-style-medium)}.stzh-radio__marker-text.sc-stzh-radio{border:0;clip:rect(0 0 0 0);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-radio__description-wrapper.sc-stzh-radio{display:flex;flex-direction:column-reverse;min-height:var(--description-min-height, var(--stzh-description-min-height, none))}.stzh-radio__error.sc-stzh-radio,.stzh-radio__description.sc-stzh-radio{font-size:var(--stzh-font-nano-font-size);line-height:var(--stzh-font-nano-text-line-height)}.stzh-radio__error.sc-stzh-radio{color:var(--stzh-color-error60)}.stzh-radio__error-list.sc-stzh-radio{list-style:none;margin:0;padding:0}.stzh-radio__description.sc-stzh-radio{display:flex;align-items:flex-start;color:var(--stzh-input-description-color, var(--description-color, var(--stzh-color-coolgrey70)));transition:color var(--stzh-base-transition-animation-speed)}.stzh-radio__description-long.sc-stzh-radio{margin-right:var(--stzh-space-xxsmall);margin-top:0.125rem}@supports (font: -apple-system-body) and (-webkit-appearance: none){.stzh-radio__description-long.sc-stzh-radio{margin-top:0}}.stzh-radio__description-long-popover.sc-stzh-radio{--width:auto;--max-width:27.3125rem}.stzh-radio__description-long-button.sc-stzh-radio{display:flex;justify-content:center;align-items:center;appearance:none;font-family:inherit;padding:0;border:none;background-color:transparent;border-radius:0.5rem;cursor:pointer}.stzh-radio.sc-stzh-radio stzh-icon.stzh-radio__description-long-icon.sc-stzh-radio{--size:var(--stzh-icon-size-xsmall)}.stzh-radio--has-error.sc-stzh-radio .stzh-radio__error.sc-stzh-radio,.stzh-radio--has-description.sc-stzh-radio .stzh-radio__description.sc-stzh-radio{margin-top:var(--stzh-space-xxxsmall)}.stzh-radio__field-wrapper.sc-stzh-radio{font-size:var(--stzh-font-milli-font-size);line-height:var(--stzh-font-milli-text-line-height);letter-spacing:var(--stzh-font-curve---text-letter-spacing);position:relative;display:flex;-webkit-user-select:none;user-select:none;cursor:pointer}.stzh-radio__input.sc-stzh-radio{position:absolute;top:0;left:0;width:100%;height:100%;margin:0;z-index:-1;opacity:0;pointer-events:none;appearance:none;border-radius:var(--stzh-form-input-border-radius)}.stzh-radio__mark.sc-stzh-radio{border:0.125rem solid var(--stzh-color-black);background-color:var(--stzh-color-white);width:1.5rem;height:1.5rem;flex-shrink:0;border-radius:50%;display:inline-flex;justify-content:center;align-items:center;transition:border-color var(--stzh-base-transition-animation-speed)}.stzh-radio__mark.sc-stzh-radio::before{content:\"\"}.stzh-radio__check.sc-stzh-radio{background-color:currentColor;color:var(--stzh-color-primary70);width:1rem;height:1rem;border-radius:50%;opacity:0;transition-property:color;transition-duration:var(--stzh-base-transition-animation-speed)}@media (forced-colors: active), (-ms-high-contrast: active){.stzh-radio__check.sc-stzh-radio{background-color:ButtonText}}.stzh-radio__label.sc-stzh-radio{--stzh-base-color:initial;display:inline-block;color:var(--label-color);transition:color var(--stzh-base-transition-animation-speed);margin-left:var(--stzh-space-small);line-height:1.5rem}.stzh-radio__label.sc-stzh-radio:empty{display:none}.stzh-radio__marker.sc-stzh-radio{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);margin-left:calc(-0.25em + var(--stzh-space-xsmall))}.stzh-radio.sc-stzh-radio:hover .stzh-radio__label.sc-stzh-radio,.stzh-radio__input.sc-stzh-radio:checked~.stzh-radio__label.sc-stzh-radio{color:var(--label-hover-color)}.stzh-radio__input.sc-stzh-radio:checked:hover~.stzh-radio__label.sc-stzh-radio,.stzh-radio__input.sc-stzh-radio:checked:hover~.stzh-radio__mark.sc-stzh-radio .stzh-radio__check.sc-stzh-radio{color:var(--label-hover-checked-color)}.stzh-radio.sc-stzh-radio:hover .stzh-radio__mark.sc-stzh-radio,.stzh-radio__input.sc-stzh-radio:checked~.stzh-radio__mark.sc-stzh-radio{border-color:var(--label-hover-color)}.stzh-radio__input.sc-stzh-radio:checked:hover~.stzh-radio__mark.sc-stzh-radio{border-color:var(--label-hover-checked-color)}.stzh-radio__input.sc-stzh-radio:checked~.stzh-radio__mark.sc-stzh-radio .stzh-radio__check.sc-stzh-radio{opacity:1}.stzh-radio--is-invalid.sc-stzh-radio .stzh-radio__input.sc-stzh-radio~.stzh-radio__label.sc-stzh-radio,.stzh-radio--is-invalid.sc-stzh-radio .stzh-radio__input.sc-stzh-radio~.stzh-radio__mark.sc-stzh-radio .stzh-radio__check.sc-stzh-radio{color:var(--stzh-color-error60)}.stzh-radio--is-invalid.sc-stzh-radio .stzh-radio__input.sc-stzh-radio~.stzh-radio__mark.sc-stzh-radio{border-color:var(--stzh-color-error60)}.stzh-radio--is-disabled.sc-stzh-radio .stzh-radio__field-wrapper.sc-stzh-radio{cursor:not-allowed}.stzh-radio--is-disabled.sc-stzh-radio .stzh-radio__input.sc-stzh-radio~.stzh-radio__label.sc-stzh-radio{color:var(--stzh-color-grey60)}.stzh-radio--is-disabled.sc-stzh-radio .stzh-radio__input.sc-stzh-radio~.stzh-radio__mark.sc-stzh-radio .stzh-radio__check.sc-stzh-radio{color:var(--stzh-color-grey50)}.stzh-radio--is-disabled.sc-stzh-radio .stzh-radio__input.sc-stzh-radio~.stzh-radio__mark.sc-stzh-radio{border-color:var(--stzh-color-grey50)}.stzh-radio--is-disabled.sc-stzh-radio .stzh-radio__mark.sc-stzh-radio{background-color:var(--stzh-color-grey20)}";
9
9
  const StzhRadioStyle0 = stzhRadioCss;
@@ -187,4 +187,4 @@ function defineCustomElement() {
187
187
 
188
188
  export { StzhRadio as S, defineCustomElement as d };
189
189
 
190
- //# sourceMappingURL=p-324831e2.js.map
190
+ //# sourceMappingURL=p-0dae7190.js.map
@@ -1 +1 @@
1
- {"file":"p-324831e2.js","mappings":";;;;;;;AAAA,MAAM,YAAY,GAAG,w0NAAw0N,CAAC;AAC91N,wBAAe,YAAY;;ACQ3B,IAAI,YAAY,GAAG,CAAC,CAAC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,EAAE,IAAI,CAAC,MAAM,EAClB,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,eAAe,EAAE,IAAI,CAAC,eAAe,EACrC,oBAAoB,EAAE,IAAI,CAAC,oBAAoB,EAC/C,mBAAmB,EAAE,mBAAmB,EACxC,mBAAmB,EAAE,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,mBAAmB,GACnE,CACH,CACG,CACD,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/stzh-radio/stzh-radio.scss?tag=stzh-radio&encapsulation=scoped","src/components/stzh-radio/stzh-radio.tsx"],"sourcesContent":[":host {\n --label-color: var(--stzh-radio-label-color, #{$baseColor});\n --label-hover-color: var(--stzh-radio-label-hover-color, #{$colorPrimary70});\n --label-hover-checked-color: var(--stzh-radio-label-hover-checked-color, #{$colorPrimary90});\n\n display: inline-block;\n\n &[disabled]:not([disabled=\"false\"]) {\n --description-color: #{$formDisabledColor};\n }\n}\n\n.stzh-radio {\n @include input-description;\n display: grid;\n\n &__field-wrapper {\n @include fontSize('milli');\n position: relative;\n display: flex;\n user-select: none;\n cursor: pointer;\n }\n\n &__input {\n @include visuallyhiddenInput;\n border-radius: $formInputBorderRadius;\n }\n\n &__mark {\n @include radio__mark();\n }\n\n &__check {\n @include radio__check();\n }\n\n &__label {\n --stzh-base-color: initial;\n\n display: inline-block;\n color: var(--label-color);\n transition: color $baseTransitionAnimationSpeed;\n margin-left: space('small');\n line-height: 24px;\n\n &:empty {\n display: none;\n }\n }\n\n &__marker {\n @include fontSize('micro');\n margin-left: calc(-0.25em + #{space('xsmall')});\n }\n\n /* Hover / Focus / Checked */\n\n &:hover &__label,\n &__input:checked ~ &__label {\n color: var(--label-hover-color);\n }\n\n &__input:checked:hover ~ &__label,\n &__input:checked:hover ~ &__mark &__check {\n color: var(--label-hover-checked-color);\n }\n\n &:hover &__mark,\n &__input:checked ~ &__mark {\n border-color: var(--label-hover-color);\n }\n\n &__input:checked:hover ~ &__mark {\n border-color: var(--label-hover-checked-color);\n }\n\n &__input:checked ~ &__mark &__check {\n opacity: 1;\n }\n\n /* Invalid */\n\n &--is-invalid &__input ~ &__label,\n &--is-invalid &__input ~ &__mark &__check {\n color: $colorError60;\n }\n\n &--is-invalid &__input ~ &__mark {\n border-color: $colorError60;\n }\n\n /* Disabled */\n\n\t&--is-disabled &__field-wrapper {\n cursor: not-allowed;\n }\n\n &--is-disabled &__input ~ &__label {\n color: $colorGrey60;\n }\n\n &--is-disabled &__input ~ &__mark &__check {\n color: $colorGrey50;\n }\n\n &--is-disabled &__input ~ &__mark {\n border-color: $colorGrey50;\n }\n\n &--is-disabled &__mark {\n background-color: $colorGrey20;\n }\n}\n","import { Component, Element, Event, EventEmitter, h, Host, Listen, Prop, Watch } from \"@stencil/core\";\n\nimport { StzhRadioBlurEvent, StzhRadioChangeEvent, StzhRadioFocusEvent } from \"../../index\";\n\nimport { hasSlot } from \"../../utils/utils\";\nimport { StzhLocaleComponent } from \"../../index\";\n\nimport { StzhInputDescription } from \"../stzh-input/stzh-input-description\";\n\nlet radioCounter = 0;\n\n/**\n * @slot - Slot for label content\n * @slot description - Slot for description\n * @slot description-long - Slot for long description (in popover)\n * @slot description-long-title - Slot for long description title (in popover) / instead of descriptionLongTitle or description property\n * @slot error - Slot for error\n */\n@Component({\n tag: \"stzh-radio\",\n styleUrl: \"stzh-radio.scss\",\n scoped: true,\n})\nexport class StzhRadio {\n /** Translation strings */\n @Prop() localization: StzhLocaleComponent;\n\n /** Whether the element is disabled or not */\n @Prop({ reflect: true }) disabled: boolean = false;\n\n /** The name of the input element */\n @Prop({ reflect: true }) name: string = \"\";\n\n /** The value of the input element */\n @Prop({ mutable: true }) value: string = \"\";\n\n /** Invalid status */\n @Prop({ reflect: true }) invalid: boolean = false;\n\n /** Required status */\n @Prop({ reflect: true }) required: boolean = false;\n\n /** Hide `(optional)` label (or use `required` inside form to hide it) */\n @Prop({ reflect: true }) hideOptional: boolean = false;\n\n /** Checked status */\n @Prop({ mutable: true, reflect: true }) checked: boolean = false;\n\n /** Default checked (used by reset) */\n @Prop({ mutable: true }) defaultChecked: boolean;\n\n /** Label */\n @Prop() label: string = \"\";\n\n /** Description message (use description slot as alternative) */\n @Prop() description: string;\n\n /** Long description message appearing in a popover (use description-long slot as alternative) */\n @Prop() descriptionLong: string;\n\n /** Long description title appearing in a popover (use description-long-title slot as or description property alternative) */\n @Prop() descriptionLongTitle: string;\n\n /** One or multiple error message (use error slot as alternative) */\n @Prop() error: string | string[];\n private _error: string[];\n\n /** Id for element which describes the radio button (this will be overwritten if description prop or slot is used, used by stzh-radiogroup) */\n @Prop({ attribute: \"a11y-describedby\" }) a11yDescribedby: string = \"\";\n\n /** Input change event */\n @Event() stzhChange: EventEmitter<StzhRadioChangeEvent>;\n\n /** Input focus event */\n @Event() stzhFocus: EventEmitter<StzhRadioFocusEvent>;\n\n /** Input blur event */\n @Event() stzhBlur: EventEmitter<StzhRadioBlurEvent>;\n\n @Listen(\"reset\", { target: \"document\" })\n resetListener(event: Event) {\n if ((event.target as HTMLElement).contains(this.element)) {\n requestAnimationFrame(() => {\n this.handleReset();\n });\n }\n }\n\n @Watch(\"error\")\n errorWatcher(newValue: string | string[]) {\n if (typeof newValue === \"string\") {\n try {\n this._error = JSON.parse(newValue);\n } catch (e) {\n if (newValue) {\n this._error = [newValue];\n } else {\n this._error = [];\n }\n }\n } else if (newValue) {\n this._error = newValue;\n } else {\n this._error = [];\n }\n }\n\n @Element() element: HTMLStzhRadioElement;\n\n private input: HTMLInputElement;\n private inputId: string;\n private focusedByInput: boolean = false;\n\n private handleReset = async () => {\n this.checked = this.defaultChecked;\n };\n\n private onInput = (event: InputEvent) => {\n this.checked = this.input.checked;\n this.stzhChange.emit({\n component: \"stzh-radio\",\n originalEvent: event,\n value: this.value,\n checked: this.checked,\n });\n };\n\n private onRootFocus = () => {\n if (!this.focusedByInput) {\n this.input.focus();\n }\n\n this.focusedByInput = false;\n };\n\n private onFocus = (event: FocusEvent) => {\n this.focusedByInput = true;\n\n const focusEvent = new FocusEvent(\"focus\", {\n view: window,\n bubbles: false,\n cancelable: false,\n });\n\n this.element.dispatchEvent(focusEvent);\n this.stzhFocus.emit({\n component: \"stzh-radio\",\n originalEvent: event,\n });\n };\n\n private onBlur = (event: FocusEvent) => {\n const blurEvent = new FocusEvent(\"blur\", {\n view: window,\n bubbles: false,\n cancelable: false,\n });\n\n this.element.dispatchEvent(blurEvent);\n this.stzhBlur.emit({\n component: \"stzh-radio\",\n originalEvent: event,\n });\n };\n\n async componentWillLoad() {\n this.inputId = `stzh-radio-${radioCounter++}`;\n this.errorWatcher(this.error);\n\n this.defaultChecked = typeof this.defaultChecked === \"boolean\" ? this.defaultChecked : this.checked;\n\n if (!this.localization) {\n this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, \"radio\");\n }\n }\n\n render() {\n const descriptionUsed = hasSlot(this.element, \"description\") || !!this.description;\n const descriptionLongUsed = hasSlot(this.element, \"description-long\") || !!this.descriptionLong;\n const errorUsed = hasSlot(this.element, \"error\") || this._error?.length > 0;\n\n const classes = {\n \"stzh-radio\": true,\n \"stzh-radio--has-description\": descriptionUsed,\n \"stzh-radio--has-description-long\": descriptionLongUsed,\n \"stzh-radio--has-error\": errorUsed,\n \"stzh-radio--is-required\": this.required,\n \"stzh-radio--is-invalid\": this.invalid || errorUsed,\n \"stzh-radio--is-disabled\": this.disabled,\n };\n\n return (\n <Host is-invalid={this.invalid || errorUsed} tabindex={this.disabled ? null : \"-1\"} onFocus={this.onRootFocus}>\n <div class={classes}>\n <label class=\"stzh-radio__field-wrapper\">\n <input\n class=\"stzh-radio__input\"\n ref={el => (this.input = el as HTMLInputElement)}\n type=\"radio\"\n id={this.inputId}\n name={this.name}\n value={this.value}\n disabled={this.disabled}\n aria-describedby={`${this.inputId}-description ${this.a11yDescribedby}`}\n aria-required={this.required ? \"true\" : \"false\"}\n aria-invalid={this.invalid ? \"true\" : \"false\"}\n checked={this.checked}\n defaultChecked={this.defaultChecked}\n onInput={this.onInput}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n />\n <div class=\"stzh-radio__mark\">\n <div class=\"stzh-radio__check\"></div>\n </div>\n <div class=\"stzh-radio__label\">\n {this.label ? this.label : <slot></slot>}\n {!this.hideOptional && (\n <span class=\"stzh-radio__marker\">\n <span class=\"stzh-radio__marker-symbol\" aria-hidden=\"true\">\n {this.required\n ? this.localization.$globals.requiredFieldMarker\n : this.localization.$globals.optionalFieldMarker}\n </span>\n <span class=\"stzh-radio__marker-text\">\n {this.required\n ? this.localization.$globals.requiredFieldText\n : this.localization.$globals.optionalFieldText}\n </span>\n </span>\n )}\n </div>\n </label>\n {(this._error?.length > 0 || this.description) && (\n <StzhInputDescription\n classPrefix=\"stzh-radio\"\n id={`${this.inputId}-description`}\n error={this._error}\n description={this.description}\n descriptionLong={this.descriptionLong}\n descriptionLongTitle={this.descriptionLongTitle}\n descriptionLongUsed={descriptionLongUsed}\n moreInfoButtonLabel={this.localization.$globals.moreInfoButtonLabel}\n />\n )}\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"p-0dae7190.js","mappings":";;;;;;;AAAA,MAAM,YAAY,GAAG,w0NAAw0N,CAAC;AAC91N,wBAAe,YAAY;;ACQ3B,IAAI,YAAY,GAAG,CAAC,CAAC;MAcR,SAAS;;;;;;;QAwFZ,mBAAc,GAAY,KAAK,CAAC;QAEhC,gBAAW,GAAG;YACpB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,cAAc,CAAC;SACpC,CAAC;QAEM,YAAO,GAAG,CAAC,KAAiB;YAClC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC;YAClC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;gBACnB,SAAS,EAAE,YAAY;gBACvB,aAAa,EAAE,KAAK;gBACpB,KAAK,EAAE,IAAI,CAAC,KAAK;gBACjB,OAAO,EA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sulation=scoped","src/components/stzh-radio/stzh-radio.tsx"],"sourcesContent":[":host {\n --label-color: var(--stzh-radio-label-color, #{$baseColor});\n --label-hover-color: var(--stzh-radio-label-hover-color, #{$colorPrimary70});\n --label-hover-checked-color: var(--stzh-radio-label-hover-checked-color, #{$colorPrimary90});\n\n display: inline-block;\n\n &[disabled]:not([disabled=\"false\"]) {\n --description-color: #{$formDisabledColor};\n }\n}\n\n.stzh-radio {\n @include input-description;\n display: grid;\n\n &__field-wrapper {\n @include fontSize('milli');\n position: relative;\n display: flex;\n user-select: none;\n cursor: pointer;\n }\n\n &__input {\n @include visuallyhiddenInput;\n border-radius: $formInputBorderRadius;\n }\n\n &__mark {\n @include radio__mark();\n }\n\n &__check {\n @include radio__check();\n }\n\n &__label {\n --stzh-base-color: initial;\n\n display: inline-block;\n color: var(--label-color);\n transition: color $baseTransitionAnimationSpeed;\n margin-left: space('small');\n line-height: 24px;\n\n &:empty {\n display: none;\n }\n }\n\n &__marker {\n @include fontSize('micro');\n margin-left: calc(-0.25em + #{space('xsmall')});\n }\n\n /* Hover / Focus / Checked */\n\n &:hover &__label,\n &__input:checked ~ &__label {\n color: var(--label-hover-color);\n }\n\n &__input:checked:hover ~ &__label,\n &__input:checked:hover ~ &__mark &__check {\n color: var(--label-hover-checked-color);\n }\n\n &:hover &__mark,\n &__input:checked ~ &__mark {\n border-color: var(--label-hover-color);\n }\n\n &__input:checked:hover ~ &__mark {\n border-color: var(--label-hover-checked-color);\n }\n\n &__input:checked ~ &__mark &__check {\n opacity: 1;\n }\n\n /* Invalid */\n\n &--is-invalid &__input ~ &__label,\n &--is-invalid &__input ~ &__mark &__check {\n color: $colorError60;\n }\n\n &--is-invalid &__input ~ &__mark {\n border-color: $colorError60;\n }\n\n /* Disabled */\n\n\t&--is-disabled &__field-wrapper {\n cursor: not-allowed;\n }\n\n &--is-disabled &__input ~ &__label {\n color: $colorGrey60;\n }\n\n &--is-disabled &__input ~ &__mark &__check {\n color: $colorGrey50;\n }\n\n &--is-disabled &__input ~ &__mark {\n border-color: $colorGrey50;\n }\n\n &--is-disabled &__mark {\n background-color: $colorGrey20;\n }\n}\n","import { Component, Element, Event, EventEmitter, h, Host, Listen, Prop, Watch } from \"@stencil/core\";\n\nimport { StzhRadioBlurEvent, StzhRadioChangeEvent, StzhRadioFocusEvent } from \"../../index\";\n\nimport { hasSlot } from \"../../utils/utils\";\nimport { StzhLocaleComponent } from \"../../index\";\n\nimport { StzhInputDescription } from \"../stzh-input/stzh-input-description\";\n\nlet radioCounter = 0;\n\n/**\n * @slot - Slot for label content\n * @slot description - Slot for description\n * @slot description-long - Slot for long description (in popover)\n * @slot description-long-title - Slot for long description title (in popover) / instead of descriptionLongTitle or description property\n * @slot error - Slot for error\n */\n@Component({\n tag: \"stzh-radio\",\n styleUrl: \"stzh-radio.scss\",\n scoped: true,\n})\nexport class StzhRadio {\n /** Translation strings */\n @Prop() localization: StzhLocaleComponent;\n\n /** Whether the element is disabled or not */\n @Prop({ reflect: true }) disabled: boolean = false;\n\n /** The name of the input element */\n @Prop({ reflect: true }) name: string = \"\";\n\n /** The value of the input element */\n @Prop({ mutable: true }) value: string = \"\";\n\n /** Invalid status */\n @Prop({ reflect: true }) invalid: boolean = false;\n\n /** Required status */\n @Prop({ reflect: true }) required: boolean = false;\n\n /** Hide `(optional)` label (or use `required` inside form to hide it) */\n @Prop({ reflect: true }) hideOptional: boolean = false;\n\n /** Checked status */\n @Prop({ mutable: true, reflect: true }) checked: boolean = false;\n\n /** Default checked (used by reset) */\n @Prop({ mutable: true }) defaultChecked: boolean;\n\n /** Label */\n @Prop() label: string = \"\";\n\n /** Description message (use description slot as alternative) */\n @Prop() description: string;\n\n /** Long description message appearing in a popover (use description-long slot as alternative) */\n @Prop() descriptionLong: string;\n\n /** Long description title appearing in a popover (use description-long-title slot as or description property alternative) */\n @Prop() descriptionLongTitle: string;\n\n /** One or multiple error message (use error slot as alternative) */\n @Prop() error: string | string[];\n private _error: string[];\n\n /** Id for element which describes the radio button (this will be overwritten if description prop or slot is used, used by stzh-radiogroup) */\n @Prop({ attribute: \"a11y-describedby\" }) a11yDescribedby: string = \"\";\n\n /** Input change event */\n @Event() stzhChange: EventEmitter<StzhRadioChangeEvent>;\n\n /** Input focus event */\n @Event() stzhFocus: EventEmitter<StzhRadioFocusEvent>;\n\n /** Input blur event */\n @Event() stzhBlur: EventEmitter<StzhRadioBlurEvent>;\n\n @Listen(\"reset\", { target: \"document\" })\n resetListener(event: Event) {\n if ((event.target as HTMLElement).contains(this.element)) {\n requestAnimationFrame(() => {\n this.handleReset();\n });\n }\n }\n\n @Watch(\"error\")\n errorWatcher(newValue: string | string[]) {\n if (typeof newValue === \"string\") {\n try {\n this._error = JSON.parse(newValue);\n } catch (e) {\n if (newValue) {\n this._error = [newValue];\n } else {\n this._error = [];\n }\n }\n } else if (newValue) {\n this._error = newValue;\n } else {\n this._error = [];\n }\n }\n\n @Element() element: HTMLStzhRadioElement;\n\n private input: HTMLInputElement;\n private inputId: string;\n private focusedByInput: boolean = false;\n\n private handleReset = async () => {\n this.checked = this.defaultChecked;\n };\n\n private onInput = (event: InputEvent) => {\n this.checked = this.input.checked;\n this.stzhChange.emit({\n component: \"stzh-radio\",\n originalEvent: event,\n value: this.value,\n checked: this.checked,\n });\n };\n\n private onRootFocus = () => {\n if (!this.focusedByInput) {\n this.input.focus();\n }\n\n this.focusedByInput = false;\n };\n\n private onFocus = (event: FocusEvent) => {\n this.focusedByInput = true;\n\n const focusEvent = new FocusEvent(\"focus\", {\n view: window,\n bubbles: false,\n cancelable: false,\n });\n\n this.element.dispatchEvent(focusEvent);\n this.stzhFocus.emit({\n component: \"stzh-radio\",\n originalEvent: event,\n });\n };\n\n private onBlur = (event: FocusEvent) => {\n const blurEvent = new FocusEvent(\"blur\", {\n view: window,\n bubbles: false,\n cancelable: false,\n });\n\n this.element.dispatchEvent(blurEvent);\n this.stzhBlur.emit({\n component: \"stzh-radio\",\n originalEvent: event,\n });\n };\n\n async componentWillLoad() {\n this.inputId = `stzh-radio-${radioCounter++}`;\n this.errorWatcher(this.error);\n\n this.defaultChecked = typeof this.defaultChecked === \"boolean\" ? this.defaultChecked : this.checked;\n\n if (!this.localization) {\n this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, \"radio\");\n }\n }\n\n render() {\n const descriptionUsed = hasSlot(this.element, \"description\") || !!this.description;\n const descriptionLongUsed = hasSlot(this.element, \"description-long\") || !!this.descriptionLong;\n const errorUsed = hasSlot(this.element, \"error\") || this._error?.length > 0;\n\n const classes = {\n \"stzh-radio\": true,\n \"stzh-radio--has-description\": descriptionUsed,\n \"stzh-radio--has-description-long\": descriptionLongUsed,\n \"stzh-radio--has-error\": errorUsed,\n \"stzh-radio--is-required\": this.required,\n \"stzh-radio--is-invalid\": this.invalid || errorUsed,\n \"stzh-radio--is-disabled\": this.disabled,\n };\n\n return (\n <Host is-invalid={this.invalid || errorUsed} tabindex={this.disabled ? null : \"-1\"} onFocus={this.onRootFocus}>\n <div class={classes}>\n <label class=\"stzh-radio__field-wrapper\">\n <input\n class=\"stzh-radio__input\"\n ref={el => (this.input = el as HTMLInputElement)}\n type=\"radio\"\n id={this.inputId}\n name={this.name}\n value={this.value}\n disabled={this.disabled}\n aria-describedby={`${this.inputId}-description ${this.a11yDescribedby}`}\n aria-required={this.required ? \"true\" : \"false\"}\n aria-invalid={this.invalid ? \"true\" : \"false\"}\n checked={this.checked}\n defaultChecked={this.defaultChecked}\n onInput={this.onInput}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n />\n <div class=\"stzh-radio__mark\">\n <div class=\"stzh-radio__check\"></div>\n </div>\n <div class=\"stzh-radio__label\">\n {this.label ? this.label : <slot></slot>}\n {!this.hideOptional && (\n <span class=\"stzh-radio__marker\">\n <span class=\"stzh-radio__marker-symbol\" aria-hidden=\"true\">\n {this.required\n ? this.localization.$globals.requiredFieldMarker\n : this.localization.$globals.optionalFieldMarker}\n </span>\n <span class=\"stzh-radio__marker-text\">\n {this.required\n ? this.localization.$globals.requiredFieldText\n : this.localization.$globals.optionalFieldText}\n </span>\n </span>\n )}\n </div>\n </label>\n {(this._error?.length > 0 || this.description) && (\n <StzhInputDescription\n classPrefix=\"stzh-radio\"\n id={`${this.inputId}-description`}\n error={this._error}\n description={this.description}\n descriptionLong={this.descriptionLong}\n descriptionLongTitle={this.descriptionLongTitle}\n descriptionLongUsed={descriptionLongUsed}\n moreInfoButtonLabel={this.localization.$globals.moreInfoButtonLabel}\n />\n )}\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -57,11 +57,11 @@ const StzhStepperItem = /*@__PURE__*/ proxyCustomElement(class StzhStepperItem e
57
57
  "stzh-stepper-item--passed": this.passed,
58
58
  "stzh-stepper-item--passed-incomplete": this.passed && this.incomplete
59
59
  };
60
- const dotted = (h("span", { key: '68f87db5d84c53adc85e250d6849e05a35637963' }, !this.clickDisabled ? (h("button", { class: "stzh-stepper-item__dotted", onClick: this.onDottedClick }, h("stzh-icon", { class: "stzh-stepper-item__dotted-icon", name: "more-horizontal" }))) : (h("div", { class: "stzh-stepper-item__dotted stzh-stepper-item__dotted__disabled" }, h("stzh-icon", { class: "stzh-stepper-item__dotted-icon", name: "more-horizontal" })))));
61
- const content = (h("span", { key: '35b17422b511e52f4eb31157651b6a7fd77ddd70' }, h("span", { key: 'b2cdd6251bd67609fc42b1bbf55b9b90b1d5c01e', class: "stzh-stepper-item__number-block" }, this.icon
60
+ const dotted = (h("span", { key: 'bec4fc0fc7a2e4ff36077b0ea4fcbab4547124b6' }, !this.clickDisabled ? (h("button", { class: "stzh-stepper-item__dotted", onClick: this.onDottedClick }, h("stzh-icon", { class: "stzh-stepper-item__dotted-icon", name: "more-horizontal" }))) : (h("div", { class: "stzh-stepper-item__dotted stzh-stepper-item__dotted__disabled" }, h("stzh-icon", { class: "stzh-stepper-item__dotted-icon", name: "more-horizontal" })))));
61
+ const content = (h("span", { key: 'c55480eb153827d56915b21097b2bc175c3bedb5' }, h("span", { key: 'fb1e48fa298ae59bc5cf88a1bf2c156e165514a5', class: "stzh-stepper-item__number-block" }, this.icon
62
62
  ? h("stzh-icon", { class: "stzh-stepper-item__user-icon", name: this.icon })
63
- : (h("span", null, h("span", { class: "stzh-stepper-item__number" }, this.step), this.passed && !this.incomplete && (h("stzh-icon", { class: "stzh-stepper-item__icon", name: "checkmark" }))))), h("span", { key: '87b4c82329d5a679ed6f16598313a0d4a9485c7a', ref: (el) => (this.text = el), class: "stzh-stepper-item__label-block" }, this.label ? this.label : h("slot", null))));
64
- return (h(Host, { key: 'c2fef2f363d22e55ee6885c9a2d91f5864c4452b', role: "listitem" }, h("div", { key: '6c56cb2b34ffc7a2c396b430c16e39bb8aeb4e7e', class: classes }, this.last && this.dotted && dotted, this.clickDisabled ? (h("div", { class: "stzh-stepper-item__unclickable", "aria-pressed": this.current ? "true" : "false" }, content)) : (h("button", { ref: (el) => (this.button = el), class: "stzh-stepper-item__button", "aria-pressed": this.current ? "true" : "false", disabled: (this.dotted && this.first) || this.disabled, onClick: this.onClick }, h("span", { class: "stzh-stepper-item__number-block" }, this.icon
63
+ : (h("span", null, h("span", { class: "stzh-stepper-item__number" }, this.step), this.passed && !this.incomplete && (h("stzh-icon", { class: "stzh-stepper-item__icon", name: "checkmark" }))))), h("span", { key: 'b698342975678c9ec862d532c52697b4ef8b24c4', ref: (el) => (this.text = el), class: "stzh-stepper-item__label-block" }, this.label ? this.label : h("slot", null))));
64
+ return (h(Host, { key: '9b03bf33bfe90ca4a9be7454d60b2e1ab7c376cb', role: "listitem" }, h("div", { key: '2dd2ed128f32b65e41a9de6799a337c91cf03b6b', class: classes }, this.last && this.dotted && dotted, this.clickDisabled ? (h("div", { class: "stzh-stepper-item__unclickable", "aria-pressed": this.current ? "true" : "false" }, content)) : (h("button", { ref: (el) => (this.button = el), class: "stzh-stepper-item__button", "aria-pressed": this.current ? "true" : "false", disabled: (this.dotted && this.first) || this.disabled, onClick: this.onClick }, h("span", { class: "stzh-stepper-item__number-block" }, this.icon
65
65
  ?
66
66
  h("stzh-icon", { class: "stzh-stepper-item__user-icon", name: this.icon })
67
67
  :
@@ -106,4 +106,4 @@ function defineCustomElement() {
106
106
 
107
107
  export { StzhStepperItem as S, defineCustomElement as d };
108
108
 
109
- //# sourceMappingURL=p-631b7bfa.js.map
109
+ //# sourceMappingURL=p-123ddd01.js.map
@@ -1 +1 @@
1
- {"file":"p-631b7bfa.js","mappings":";;;AAAA,MAAM,kBAAkB,GAAG,s3qBAAs3qB,CAAC;AACl5qB,8BAAe,kBAAkB;;MCuBpB,eAAe;;;;;;QAuDlB,YAAO,GAAG,CAAC,KAAiB;YAClC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;gBAClB,SAAS,EAAE,mBAAmB;gBAC9B,aAAa,EAAE,KAAK;gBACpB,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,QAAQ,EAAE,IAAI,CAAC,OAAO,CAAC;aACpF,CAAC,CAAC;SACJ,CAAA;QAEO,kBAAa,GAAG,CAAC,KAAiB;YACxC,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC;gBACxB,SAAS,EAAE,mBAAmB;gBAC9B,aAAa,EAAE,KAAK;gBACpB,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,QAAQ,EAAE,IAAI,CAAC,OAAO,CAAC;aACpF,CAAC,CAAC;SACJ,CAAA;;wBAhE4C,KAAK;qBAGR,KAAK;oBAGN,KAAK;sBAGH,KAAK;0BAGD,KAAK;uBAGR,KAAK;oBAGR,KAAK;sBAGH,KAAK;oBAGR,CAAC;oBAGD,EAAE;6BAGT,KAAK;;;IAoCtC,kBAAkB;QAChB,qBAAqB,CAAC;;YACpB,MAAA,IAAI,CAAC,MAAM,0CAAE,YAAY,CAAC,aAAa,EAAE,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,I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CACA,CACV,EACA,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,MAAM,IAAI,MAAM,CAChC,CACD,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/stzh-stepper-item/stzh-stepper-item.scss?tag=stzh-stepper-item&encapsulation=scoped","src/components/stzh-stepper-item/stzh-stepper-item.tsx"],"sourcesContent":[":host {\n}\n\n:host([hide]) {\n\tdisplay: none;\n}\n\n.stzh-stepper-item {\n text-align: center;\n\n &__button,\n &__unclickable {\n appearance: none;\n font-family: inherit;\n background-color: transparent;\n border: none;\n border-radius: $formInputBorderRadius;\n }\n\n &__button {\n cursor: pointer;\n }\n\n &__unclickable {\n cursor: default;\n pointer-events: none;\n }\n\n &__button:hover &__number-block,\n &__button:focus &__number-block {\n color: $colorPrimaryHover;\n border-color: $colorPrimaryHover;\n\n @include highContrast() {\n color: Highlight;\n border-color: Highlight;\n }\n\n &::after {\n background-color: $colorOldPrimary8;\n }\n }\n\n &__button:hover &__label-block,\n &__button:focus &__label-block {\n color: $colorPrimaryHover;\n\n @include highContrast() {\n color: Highlight;\n }\n }\n\n /* what we do here is:\n add a gray line on the last element, which strikes through all previous ones,\n add a blue line on the current step which covers all previous elements relative to itself\n and add a white line on the first element, which gives you the illusion that it stopped. */\n\n &__number-block {\n @include font('heavy');\n @include fontCurve('p1');\n position: relative;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n width: $stepperItemSize;\n height: $stepperItemSize;\n background-color: $colorWhite;\n border: solid 1px $baseBorderColor;\n border-radius: $stepperItemSmallUp * 0.5;\n text-align: center;\n box-sizing: border-box;\n color: $colorOldGrey55;\n transition-property: color, border-color;\n transition-duration: $baseTransitionAnimationSpeed;\n\n @include mq($from: small) {\n width: $stepperItemSmallUp;\n height: $stepperItemSmallUp;\n margin-bottom: space('large');\n }\n\n\t\t// set a line on every element, but hide it by default\n &::before {\n display: none;\n content: '';\n position: absolute;\n top: 16px;\n right: $stepperItemSize - 1px;\n width: 100vw;\n height: 1px;\n background-color: $baseBorderColor;\n z-index: -2;\n overflow: hidden;\n\n @include mq($from: small) {\n top: 20px;\n right: $stepperItemSmallUp - 1px;\n }\n }\n }\n\n &__number-block,\n &__dotted {\n &::after {\n content: '';\n z-index: 0;\n position: absolute;\n display: block;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n border-radius: $stepperItemSmallUp * 0.5;\n transition: background-color $baseTransitionAnimationSpeed;\n }\n }\n\n &__label-block {\n display: block;\n font-size: 14px;\n line-height: 1.28;\n color: $colorOldGrey55;\n padding: space('xxsmall') space('small');\n letter-spacing: 0.01em;\n transition: color $baseTransitionAnimationSpeed;\n\n @include mq($to: small) {\n @include visuallyhidden;\n }\n }\n\n &__number,\n &__icon,\n &__user-icon,\n &__dotted-icon {\n z-index: 1;\n }\n\n &__icon,\n &__user-icon,\n &__dotted-icon {\n --size: #{iconSize('xsmall')};\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n color: $colorPrimary;\n\n @include highContrast() {\n color: CanvasText;\n }\n }\n\n &__user-icon {\n --size: #{iconSize('small')};\n color: currentColor;\n }\n\n &__dotted {\n z-index: 1;\n appearance: none;\n font-family: inherit;\n position: absolute;\n top: 3px;\n width: $stepperItemDottedSize;\n height: $stepperItemDottedSize;\n background-color: $colorWhite;\n border: solid 1px $baseBorderColor;\n border-radius: 50%;\n cursor: pointer;\n transition-property: color, border-color;\n transition-duration: $baseTransitionAnimationSpeed;\n\n &:hover,\n &:focus {\n border-color: $colorPrimaryHover;\n\n @include highContrast() {\n border-color: Highlight;\n }\n }\n\n &:hover::after,\n &:focus::after {\n background-color: $colorOldPrimary8;\n\n @include highContrast() {\n background-color: Canvas;\n }\n }\n\n &__disabled {\n cursor: default;\n\n &:hover,\n &:focus {\n border-color: var(--stzh-base-border-color);\n cursor: default;\n }\n\n &:hover::after,\n &:focus::after {\n background-color: inherit;\n }\n }\n\n @include mq($from: small) {\n top: 5px;\n width: $stepperItemDottedSizeSmallUp;\n height: $stepperItemDottedSizeSmallUp;\n }\n }\n\n &__dotted:hover &__dotted-icon,\n &__dotted:focus &__dotted-icon {\n color: $colorPrimaryHover;\n\n @include highContrast() {\n color: Highlight;\n }\n }\n\n /* First and Last */\n\n &--first &__number-block,\n &--last &__number-block {\n &::before {\n display: block\n }\n }\n\n /* First */\n\n &--first {\n position: relative;\n }\n\n &--first &__dotted {\n left: 50%;\n transform: translateX(-50%);\n }\n\n /* Last */\n\n &--last &__dotted {\n // position the dots based on the width divided by the elements minus half of itself\n right: calc((100% / var(--steps)) - (#{$stepperItemDottedSize * 0.5}));\n\n @include mq($from: small) {\n right: calc((100% / var(--steps)) - (#{$stepperItemDottedSizeSmallUp * 0.5}));\n }\n }\n\n /* Passed */\n\n &--passed &__label-block {\n @include font('heavy');\n color: $colorPrimary;\n }\n\n &--passed &__number-block {\n background-color: $colorWhite;\n border: solid 1px $colorPrimary;\n\n @include highContrast() {\n background-color: Canvas;\n border-color: CanvasText;\n }\n }\n\n &--passed &__user-icon {\n color: $colorPrimary;\n }\n\n &--passed &__button:hover &__user-icon,\n &--passed &__button:focus &__user-icon {\n color: $colorPrimaryHover;\n\n @include highContrast() {\n color: Highlight;\n }\n }\n\n /* Styles specific to passed items that are **not** incomplete */\n &--passed:not(&--passed-incomplete) &__number-block,\n &--passed:not(&--passed-incomplete) &__button:hover &__number-block,\n &--passed:not(&--passed-incomplete) &__button:focus &__number-block {\n color: transparent;\n\n @include highContrast() {\n color: Canvas;\n }\n }\n\n &--passed:not(&--passed-incomplete) &__button:hover &__number-block,\n &--passed:not(&--passed-incomplete) &__button:focus &__number-block {\n border-color: $colorPrimary;\n\n @include highContrast() {\n border-color: Highlight;\n }\n }\n\n /* Styles specific to passed items that **are** incomplete */\n &--passed-incomplete &__number-block {\n color: $colorPrimary;\n\n @include highContrast() {\n color: $colorPrimary;\n }\n }\n\n &--passed-incomplete &__button:hover &__number-block,\n &--passed-incomplete &__button:focus &__number-block {\n color: $colorPrimaryHover;\n border-color: $colorPrimary;\n\n @include highContrast() {\n color: Highlight;\n border-color: Highlight;\n }\n }\n\n /* Current */\n\n &--current &__label-block {\n @include font('heavy');\n color: $colorPrimary;\n\n @include highContrast() {\n color: SelectedItem;\n }\n\n &:hover {\n text-decoration-line: none;\n }\n }\n\n &--current &__number-block {\n background-color: $colorPrimary;\n border: solid 1px $colorPrimary;\n color: $colorWhite;\n\n @include highContrast() {\n color: SelectedItem;\n border-color: SelectedItem;\n background-color: Canvas;\n }\n\n // make line blue (see desc)\n &::before {\n display: block;\n background-color: $colorPrimary;\n z-index: -1;\n\n @include highContrast() {\n background-color: CanvasText;\n }\n }\n }\n\n &--current &__button:hover &__number-block,\n &--current &__button:focus &__number-block {\n color: $colorWhite;\n\n @include highContrast() {\n color: Highlight;\n }\n\n &::after {\n background-color: $colorPrimaryHover;\n\n @include highContrast() {\n background-color: Canvas;\n }\n }\n }\n\n &--current &__user-icon {\n @include highContrast() {\n color: SelectedItem;\n }\n }\n\n &--current &__button:hover &__icon,\n &--current &__button:focus &__icon,\n &--current &__button:hover &__user-icon,\n &--current &__button:focus &__user-icon {\n @include highContrast() {\n color: Highlight;\n }\n }\n\n /* Dotted */\n\n &--dotted#{&}--first &__number-block {\n margin-bottom: 0;\n\n &::after {\n display: none;\n }\n }\n\n &--dotted#{&}--first &__button {\n padding-left: 0;\n padding-right: 0;\n }\n\n // hide number block behind dotted element\n &--dotted#{&}--first &__number-block {\n position: relative;\n z-index: 0;\n top: 5px;\n width: $stepperItemDottedSize;\n height: $stepperItemDottedSize;\n border: none;\n background-color: transparent;\n\n // change dimensions to be still hidden\n @include mq($from: small) {\n top: 8px;\n width: $stepperItemDottedSizeSmallUp;\n height: $stepperItemDottedSizeSmallUp;\n }\n\n // realign white line\n &::before {\n top: 12px;\n right: 26px;\n\n @include mq($from: small) {\n top: 13px;\n right: 30px;\n }\n }\n }\n\n &--dotted#{&}--first &__label-block {\n\t\tdisplay: none;\n }\n\n // first child overwrite white line (see desc) */\n &--first &__number-block {\n &::before {\n background-color: $colorWhite;\n z-index: 1;\n\n @include highContrast() {\n background-color: Canvas;\n }\n }\n }\n\n /* Disabled */\n\n &--is-disabled &__button {\n cursor: not-allowed;\n }\n\n &--is-disabled &__button:hover &__number-block,\n &--is-disabled &__button:focus &__number-block {\n color: $colorOldGrey55;\n border-color: $baseBorderColor;\n\n @include highContrast() {\n color: GrayText;\n border-color: GrayText;\n }\n\n &::after {\n display: none;\n }\n }\n\n &--is-disabled &__button:hover &__label-block,\n &--is-disabled &__button:focus &__label-block {\n color: $colorOldGrey55;\n\n @include highContrast() {\n color: GrayText;\n }\n }\n}\n","import {\n Component,\n Host,\n h,\n Prop,\n Element,\n Fragment,\n Event,\n EventEmitter\n} from \"@stencil/core\";\n\nimport {\n StzhStepperItemClickEvent,\n StzhStepperItemDottedClickEvent\n} from '../../index';\n\n/**\n * @slot - Slot for label (or use label prop)\n */\n@Component({\n tag: \"stzh-stepper-item\",\n styleUrl: \"stzh-stepper-item.scss\",\n scoped: true\n})\nexport class StzhStepperItem {\n /** The label of the item. */\n @Prop({ reflect: true }) label: string;\n\n /** When true, it displays a not-allowed cursor on hover. Use this for steps that are not applicable. */\n @Prop({ reflect: true }) disabled: boolean = false;\n\n /** Whether it's the first item (used internally by stzh-stepper). */\n @Prop({ reflect: true }) first: boolean = false;\n\n /** Whether it's the last item (used internally by stzh-stepper). */\n @Prop({ reflect: true }) last: boolean = false;\n\n /** True when the item index is lower than the current index (used internally by stzh-stepper). */\n @Prop({ reflect: true }) passed: boolean = false;\n\n /** For passed items, this prevents displaying a checked icon when true (shows step number instead). */\n @Prop({ reflect: true }) incomplete: boolean = false;\n\n /** Whether it's the last item (used internally by stzh-stepper). */\n @Prop({ reflect: true }) current: boolean = false;\n\n /** Whether it's a hidden item (used internally by stzh-stepper). */\n @Prop({ reflect: true }) hide: boolean = false;\n\n /** Whether it's a dotted item (used internally by stzh-stepper). */\n @Prop({ reflect: true }) dotted: boolean = false;\n\n /** The number of the step (used internally by stzh-stepper). */\n @Prop({ reflect: true }) step: number = 1;\n\n /** Displays a custom icon instead of the step number. */\n @Prop({ reflect: true }) icon: string = \"\";\n\n /** When true, it displays a default cursor on hover and no click event is emitted. */\n @Prop() clickDisabled: boolean = false;\n\n /**\n * For Adobe Analytics.\n * Will be rendered as value of `s-object-id` attribute to the button element.\n * Default value will be taken from `label` prop or default slot.\n */\n @Prop() analyticsId: string;\n\n /** Click event */\n @Event() stzhClick: EventEmitter<StzhStepperItemClickEvent>;\n\n /** Dotted click event */\n @Event() stzhDottedClick: EventEmitter<StzhStepperItemDottedClickEvent>;\n\n @Element() element: HTMLStzhStepperItemElement;\n\n private button: HTMLButtonElement;\n private text: HTMLElement;\n\n private onClick = (event: MouseEvent) => {\n this.stzhClick.emit({\n component: \"stzh-stepper-item\",\n originalEvent: event,\n index: Array.prototype.indexOf.call(this.element.parentNode.children, this.element),\n });\n }\n\n private onDottedClick = (event: MouseEvent) => {\n this.stzhDottedClick.emit({\n component: \"stzh-stepper-item\",\n originalEvent: event,\n index: Array.prototype.indexOf.call(this.element.parentNode.children, this.element),\n });\n }\n\n componentDidRender() {\n requestAnimationFrame(() => {\n this.button?.setAttribute(\"s-object-id\", this.analyticsId || this.text.innerText);\n });\n }\n\n render() {\n const classes = {\n \"stzh-stepper-item\": true,\n \"stzh-stepper-item--first\": this.first,\n \"stzh-stepper-item--last\": this.last,\n \"stzh-stepper-item--current\": this.current,\n \"stzh-stepper-item--hide\": this.hide,\n \"stzh-stepper-item--dotted\": this.dotted,\n \"stzh-stepper-item--has-icon\": !!this.icon,\n \"stzh-stepper-item--is-disabled\": this.disabled,\n \"stzh-stepper-item--passed\": this.passed,\n \"stzh-stepper-item--passed-incomplete\": this.passed && this.incomplete\n };\n\n const dotted = (\n <span>\n {!this.clickDisabled ? (\n <button\n class=\"stzh-stepper-item__dotted\"\n onClick={this.onDottedClick}\n >\n <stzh-icon class=\"stzh-stepper-item__dotted-icon\" name=\"more-horizontal\"></stzh-icon>\n </button>\n ) : (\n <div class=\"stzh-stepper-item__dotted stzh-stepper-item__dotted__disabled\">\n <stzh-icon class=\"stzh-stepper-item__dotted-icon\" name=\"more-horizontal\"></stzh-icon>\n </div>\n )}\n </span>\n );\n\n const content = (\n <span>\n <span class=\"stzh-stepper-item__number-block\">\n {this.icon\n ? <stzh-icon class=\"stzh-stepper-item__user-icon\" name={this.icon}></stzh-icon>\n : (\n <span>\n <span class=\"stzh-stepper-item__number\">{this.step}</span>\n {this.passed && !this.incomplete && (<stzh-icon class=\"stzh-stepper-item__icon\" name=\"checkmark\"></stzh-icon>)}\n </span>\n )\n }\n </span>\n <span\n ref={(el) => (this.text = el as HTMLElement)}\n class=\"stzh-stepper-item__label-block\"\n >\n {this.label ? this.label : <slot></slot>}\n </span>\n </span>\n );\n\n return (\n <Host role=\"listitem\">\n <div class={classes}>\n {this.last && this.dotted && dotted}\n {this.clickDisabled ? (\n <div class=\"stzh-stepper-item__unclickable\" aria-pressed={this.current ? \"true\" : \"false\"}>\n {content}\n </div>\n ) : (\n <button\n ref={(el) => (this.button = el as HTMLButtonElement)}\n class=\"stzh-stepper-item__button\"\n aria-pressed={this.current ? \"true\" : \"false\"}\n disabled={(this.dotted && this.first) || this.disabled}\n onClick={this.onClick}\n >\n <span class=\"stzh-stepper-item__number-block\">\n {this.icon\n ?\n <stzh-icon class=\"stzh-stepper-item__user-icon\" name={this.icon}></stzh-icon>\n :\n <Fragment>\n <span class=\"stzh-stepper-item__number\">{this.step}</span>\n {\n this.passed && !this.incomplete &&\n (<stzh-icon class=\"stzh-stepper-item__icon\" name=\"checkmark\"></stzh-icon>)\n }\n </Fragment>\n }\n </span>\n <span\n ref={(el) => (this.text = el as HTMLElement)}\n class=\"stzh-stepper-item__label-block\"\n >\n {this.label ? this.label : <slot></slot>}\n </span>\n </button>\n )}\n {this.first && this.dotted && dotted}\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"p-123ddd01.js","mappings":";;;A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IAAI,IAAI,IAAI,CAAC,MAAM,IAAI,MAAM,EAClC,IAAI,CAAC,aAAa,IACjB,WAAK,KAAK,EAAC,gCAAgC,kBAAe,IAAI,CAAC,OAAO,GAAG,MAAM,GAAG,OAAO,IACtF,OAAO,CACJ,KAEN,cACE,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,MAAM,GAAG,EAAuB,CAAC,EACpD,KAAK,EAAC,2BAA2B,kBACnB,IAAI,CAAC,OAAO,GAAG,MAAM,GAAG,OAAO,EAC7C,QAAQ,EAAE,CAAC,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC,QAAQ,EACtD,OAAO,EAAE,IAAI,CAAC,OAAO,IAErB,YAAM,KAAK,EAAC,iCAAiC,IAC1C,IAAI,CAAC,IAAI;;gBAER,iBAAW,KAAK,EAAC,8BAA8B,EAAC,IAAI,EAAE,IAAI,CAAC,IAAI,GAAc;;gBAE7E,EAAC,QAAQ,QACP,YAAM,KAAK,EAAC,2BAA2B,IAAE,IAAI,CAAC,IAAI,CAAQ,EAExD,IAAI,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,UAAU;qBAC9B,iBAAW,KAAK,EAAC,yBAAyB,EAAC,IAAI,EAAC,WAAW,GAAa,CAAC,CAEnE,CAER,EACP,YACE,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,IAAI,GAAG,EAAiB,CAAC,EAC5C,KAAK,EAAC,gCAAgC,IAErC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,GAAG,eAAa,CACnC,CACA,CACV,EACA,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,MAAM,IAAI,MAAM,CAChC,CACD,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/stzh-stepper-item/stzh-stepper-item.scss?tag=stzh-stepper-item&encapsulation=scoped","src/components/stzh-stepper-item/stzh-stepper-item.tsx"],"sourcesContent":[":host {\n}\n\n:host([hide]) {\n\tdisplay: none;\n}\n\n.stzh-stepper-item {\n text-align: center;\n\n &__button,\n &__unclickable {\n appearance: none;\n font-family: inherit;\n background-color: transparent;\n border: none;\n border-radius: $formInputBorderRadius;\n }\n\n &__button {\n cursor: pointer;\n }\n\n &__unclickable {\n cursor: default;\n pointer-events: none;\n }\n\n &__button:hover &__number-block,\n &__button:focus &__number-block {\n color: $colorPrimaryHover;\n border-color: $colorPrimaryHover;\n\n @include highContrast() {\n color: Highlight;\n border-color: Highlight;\n }\n\n &::after {\n background-color: $colorOldPrimary8;\n }\n }\n\n &__button:hover &__label-block,\n &__button:focus &__label-block {\n color: $colorPrimaryHover;\n\n @include highContrast() {\n color: Highlight;\n }\n }\n\n /* what we do here is:\n add a gray line on the last element, which strikes through all previous ones,\n add a blue line on the current step which covers all previous elements relative to itself\n and add a white line on the first element, which gives you the illusion that it stopped. */\n\n &__number-block {\n @include font('heavy');\n @include fontCurve('p1');\n position: relative;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n width: $stepperItemSize;\n height: $stepperItemSize;\n background-color: $colorWhite;\n border: solid 1px $baseBorderColor;\n border-radius: $stepperItemSmallUp * 0.5;\n text-align: center;\n box-sizing: border-box;\n color: $colorOldGrey55;\n transition-property: color, border-color;\n transition-duration: $baseTransitionAnimationSpeed;\n\n @include mq($from: small) {\n width: $stepperItemSmallUp;\n height: $stepperItemSmallUp;\n margin-bottom: space('large');\n }\n\n\t\t// set a line on every element, but hide it by default\n &::before {\n display: none;\n content: '';\n position: absolute;\n top: 16px;\n right: $stepperItemSize - 1px;\n width: 100vw;\n height: 1px;\n background-color: $baseBorderColor;\n z-index: -2;\n overflow: hidden;\n\n @include mq($from: small) {\n top: 20px;\n right: $stepperItemSmallUp - 1px;\n }\n }\n }\n\n &__number-block,\n &__dotted {\n &::after {\n content: '';\n z-index: 0;\n position: absolute;\n display: block;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n border-radius: $stepperItemSmallUp * 0.5;\n transition: background-color $baseTransitionAnimationSpeed;\n }\n }\n\n &__label-block {\n display: block;\n font-size: 14px;\n line-height: 1.28;\n color: $colorOldGrey55;\n padding: space('xxsmall') space('small');\n letter-spacing: 0.01em;\n transition: color $baseTransitionAnimationSpeed;\n\n @include mq($to: small) {\n @include visuallyhidden;\n }\n }\n\n &__number,\n &__icon,\n &__user-icon,\n &__dotted-icon {\n z-index: 1;\n }\n\n &__icon,\n &__user-icon,\n &__dotted-icon {\n --size: #{iconSize('xsmall')};\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n color: $colorPrimary;\n\n @include highContrast() {\n color: CanvasText;\n }\n }\n\n &__user-icon {\n --size: #{iconSize('small')};\n color: currentColor;\n }\n\n &__dotted {\n z-index: 1;\n appearance: none;\n font-family: inherit;\n position: absolute;\n top: 3px;\n width: $stepperItemDottedSize;\n height: $stepperItemDottedSize;\n background-color: $colorWhite;\n border: solid 1px $baseBorderColor;\n border-radius: 50%;\n cursor: pointer;\n transition-property: color, border-color;\n transition-duration: $baseTransitionAnimationSpeed;\n\n &:hover,\n &:focus {\n border-color: $colorPrimaryHover;\n\n @include highContrast() {\n border-color: Highlight;\n }\n }\n\n &:hover::after,\n &:focus::after {\n background-color: $colorOldPrimary8;\n\n @include highContrast() {\n background-color: Canvas;\n }\n }\n\n &__disabled {\n cursor: default;\n\n &:hover,\n &:focus {\n border-color: var(--stzh-base-border-color);\n cursor: default;\n }\n\n &:hover::after,\n &:focus::after {\n background-color: inherit;\n }\n }\n\n @include mq($from: small) {\n top: 5px;\n width: $stepperItemDottedSizeSmallUp;\n height: $stepperItemDottedSizeSmallUp;\n }\n }\n\n &__dotted:hover &__dotted-icon,\n &__dotted:focus &__dotted-icon {\n color: $colorPrimaryHover;\n\n @include highContrast() {\n color: Highlight;\n }\n }\n\n /* First and Last */\n\n &--first &__number-block,\n &--last &__number-block {\n &::before {\n display: block\n }\n }\n\n /* First */\n\n &--first {\n position: relative;\n }\n\n &--first &__dotted {\n left: 50%;\n transform: translateX(-50%);\n }\n\n /* Last */\n\n &--last &__dotted {\n // position the dots based on the width divided by the elements minus half of itself\n right: calc((100% / var(--steps)) - (#{$stepperItemDottedSize * 0.5}));\n\n @include mq($from: small) {\n right: calc((100% / var(--steps)) - (#{$stepperItemDottedSizeSmallUp * 0.5}));\n }\n }\n\n /* Passed */\n\n &--passed &__label-block {\n @include font('heavy');\n color: $colorPrimary;\n }\n\n &--passed &__number-block {\n background-color: $colorWhite;\n border: solid 1px $colorPrimary;\n\n @include highContrast() {\n background-color: Canvas;\n border-color: CanvasText;\n }\n }\n\n &--passed &__user-icon {\n color: $colorPrimary;\n }\n\n &--passed &__button:hover &__user-icon,\n &--passed &__button:focus &__user-icon {\n color: $colorPrimaryHover;\n\n @include highContrast() {\n color: Highlight;\n }\n }\n\n /* Styles specific to passed items that are **not** incomplete */\n &--passed:not(&--passed-incomplete) &__number-block,\n &--passed:not(&--passed-incomplete) &__button:hover &__number-block,\n &--passed:not(&--passed-incomplete) &__button:focus &__number-block {\n color: transparent;\n\n @include highContrast() {\n color: Canvas;\n }\n }\n\n &--passed:not(&--passed-incomplete) &__button:hover &__number-block,\n &--passed:not(&--passed-incomplete) &__button:focus &__number-block {\n border-color: $colorPrimary;\n\n @include highContrast() {\n border-color: Highlight;\n }\n }\n\n /* Styles specific to passed items that **are** incomplete */\n &--passed-incomplete &__number-block {\n color: $colorPrimary;\n\n @include highContrast() {\n color: $colorPrimary;\n }\n }\n\n &--passed-incomplete &__button:hover &__number-block,\n &--passed-incomplete &__button:focus &__number-block {\n color: $colorPrimaryHover;\n border-color: $colorPrimary;\n\n @include highContrast() {\n color: Highlight;\n border-color: Highlight;\n }\n }\n\n /* Current */\n\n &--current &__label-block {\n @include font('heavy');\n color: $colorPrimary;\n\n @include highContrast() {\n color: SelectedItem;\n }\n\n &:hover {\n text-decoration-line: none;\n }\n }\n\n &--current &__number-block {\n background-color: $colorPrimary;\n border: solid 1px $colorPrimary;\n color: $colorWhite;\n\n @include highContrast() {\n color: SelectedItem;\n border-color: SelectedItem;\n background-color: Canvas;\n }\n\n // make line blue (see desc)\n &::before {\n display: block;\n background-color: $colorPrimary;\n z-index: -1;\n\n @include highContrast() {\n background-color: CanvasText;\n }\n }\n }\n\n &--current &__button:hover &__number-block,\n &--current &__button:focus &__number-block {\n color: $colorWhite;\n\n @include highContrast() {\n color: Highlight;\n }\n\n &::after {\n background-color: $colorPrimaryHover;\n\n @include highContrast() {\n background-color: Canvas;\n }\n }\n }\n\n &--current &__user-icon {\n @include highContrast() {\n color: SelectedItem;\n }\n }\n\n &--current &__button:hover &__icon,\n &--current &__button:focus &__icon,\n &--current &__button:hover &__user-icon,\n &--current &__button:focus &__user-icon {\n @include highContrast() {\n color: Highlight;\n }\n }\n\n /* Dotted */\n\n &--dotted#{&}--first &__number-block {\n margin-bottom: 0;\n\n &::after {\n display: none;\n }\n }\n\n &--dotted#{&}--first &__button {\n padding-left: 0;\n padding-right: 0;\n }\n\n // hide number block behind dotted element\n &--dotted#{&}--first &__number-block {\n position: relative;\n z-index: 0;\n top: 5px;\n width: $stepperItemDottedSize;\n height: $stepperItemDottedSize;\n border: none;\n background-color: transparent;\n\n // change dimensions to be still hidden\n @include mq($from: small) {\n top: 8px;\n width: $stepperItemDottedSizeSmallUp;\n height: $stepperItemDottedSizeSmallUp;\n }\n\n // realign white line\n &::before {\n top: 12px;\n right: 26px;\n\n @include mq($from: small) {\n top: 13px;\n right: 30px;\n }\n }\n }\n\n &--dotted#{&}--first &__label-block {\n\t\tdisplay: none;\n }\n\n // first child overwrite white line (see desc) */\n &--first &__number-block {\n &::before {\n background-color: $colorWhite;\n z-index: 1;\n\n @include highContrast() {\n background-color: Canvas;\n }\n }\n }\n\n /* Disabled */\n\n &--is-disabled &__button {\n cursor: not-allowed;\n }\n\n &--is-disabled &__button:hover &__number-block,\n &--is-disabled &__button:focus &__number-block {\n color: $colorOldGrey55;\n border-color: $baseBorderColor;\n\n @include highContrast() {\n color: GrayText;\n border-color: GrayText;\n }\n\n &::after {\n display: none;\n }\n }\n\n &--is-disabled &__button:hover &__label-block,\n &--is-disabled &__button:focus &__label-block {\n color: $colorOldGrey55;\n\n @include highContrast() {\n color: GrayText;\n }\n }\n}\n","import {\n Component,\n Host,\n h,\n Prop,\n Element,\n Fragment,\n Event,\n EventEmitter\n} from \"@stencil/core\";\n\nimport {\n StzhStepperItemClickEvent,\n StzhStepperItemDottedClickEvent\n} from '../../index';\n\n/**\n * @slot - Slot for label (or use label prop)\n */\n@Component({\n tag: \"stzh-stepper-item\",\n styleUrl: \"stzh-stepper-item.scss\",\n scoped: true\n})\nexport class StzhStepperItem {\n /** The label of the item. */\n @Prop({ reflect: true }) label: string;\n\n /** When true, it displays a not-allowed cursor on hover. Use this for steps that are not applicable. */\n @Prop({ reflect: true }) disabled: boolean = false;\n\n /** Whether it's the first item (used internally by stzh-stepper). */\n @Prop({ reflect: true }) first: boolean = false;\n\n /** Whether it's the last item (used internally by stzh-stepper). */\n @Prop({ reflect: true }) last: boolean = false;\n\n /** True when the item index is lower than the current index (used internally by stzh-stepper). */\n @Prop({ reflect: true }) passed: boolean = false;\n\n /** For passed items, this prevents displaying a checked icon when true (shows step number instead). */\n @Prop({ reflect: true }) incomplete: boolean = false;\n\n /** Whether it's the last item (used internally by stzh-stepper). */\n @Prop({ reflect: true }) current: boolean = false;\n\n /** Whether it's a hidden item (used internally by stzh-stepper). */\n @Prop({ reflect: true }) hide: boolean = false;\n\n /** Whether it's a dotted item (used internally by stzh-stepper). */\n @Prop({ reflect: true }) dotted: boolean = false;\n\n /** The number of the step (used internally by stzh-stepper). */\n @Prop({ reflect: true }) step: number = 1;\n\n /** Displays a custom icon instead of the step number. */\n @Prop({ reflect: true }) icon: string = \"\";\n\n /** When true, it displays a default cursor on hover and no click event is emitted. */\n @Prop() clickDisabled: boolean = false;\n\n /**\n * For Adobe Analytics.\n * Will be rendered as value of `s-object-id` attribute to the button element.\n * Default value will be taken from `label` prop or default slot.\n */\n @Prop() analyticsId: string;\n\n /** Click event */\n @Event() stzhClick: EventEmitter<StzhStepperItemClickEvent>;\n\n /** Dotted click event */\n @Event() stzhDottedClick: EventEmitter<StzhStepperItemDottedClickEvent>;\n\n @Element() element: HTMLStzhStepperItemElement;\n\n private button: HTMLButtonElement;\n private text: HTMLElement;\n\n private onClick = (event: MouseEvent) => {\n this.stzhClick.emit({\n component: \"stzh-stepper-item\",\n originalEvent: event,\n index: Array.prototype.indexOf.call(this.element.parentNode.children, this.element),\n });\n }\n\n private onDottedClick = (event: MouseEvent) => {\n this.stzhDottedClick.emit({\n component: \"stzh-stepper-item\",\n originalEvent: event,\n index: Array.prototype.indexOf.call(this.element.parentNode.children, this.element),\n });\n }\n\n componentDidRender() {\n requestAnimationFrame(() => {\n this.button?.setAttribute(\"s-object-id\", this.analyticsId || this.text.innerText);\n });\n }\n\n render() {\n const classes = {\n \"stzh-stepper-item\": true,\n \"stzh-stepper-item--first\": this.first,\n \"stzh-stepper-item--last\": this.last,\n \"stzh-stepper-item--current\": this.current,\n \"stzh-stepper-item--hide\": this.hide,\n \"stzh-stepper-item--dotted\": this.dotted,\n \"stzh-stepper-item--has-icon\": !!this.icon,\n \"stzh-stepper-item--is-disabled\": this.disabled,\n \"stzh-stepper-item--passed\": this.passed,\n \"stzh-stepper-item--passed-incomplete\": this.passed && this.incomplete\n };\n\n const dotted = (\n <span>\n {!this.clickDisabled ? (\n <button\n class=\"stzh-stepper-item__dotted\"\n onClick={this.onDottedClick}\n >\n <stzh-icon class=\"stzh-stepper-item__dotted-icon\" name=\"more-horizontal\"></stzh-icon>\n </button>\n ) : (\n <div class=\"stzh-stepper-item__dotted stzh-stepper-item__dotted__disabled\">\n <stzh-icon class=\"stzh-stepper-item__dotted-icon\" name=\"more-horizontal\"></stzh-icon>\n </div>\n )}\n </span>\n );\n\n const content = (\n <span>\n <span class=\"stzh-stepper-item__number-block\">\n {this.icon\n ? <stzh-icon class=\"stzh-stepper-item__user-icon\" name={this.icon}></stzh-icon>\n : (\n <span>\n <span class=\"stzh-stepper-item__number\">{this.step}</span>\n {this.passed && !this.incomplete && (<stzh-icon class=\"stzh-stepper-item__icon\" name=\"checkmark\"></stzh-icon>)}\n </span>\n )\n }\n </span>\n <span\n ref={(el) => (this.text = el as HTMLElement)}\n class=\"stzh-stepper-item__label-block\"\n >\n {this.label ? this.label : <slot></slot>}\n </span>\n </span>\n );\n\n return (\n <Host role=\"listitem\">\n <div class={classes}>\n {this.last && this.dotted && dotted}\n {this.clickDisabled ? (\n <div class=\"stzh-stepper-item__unclickable\" aria-pressed={this.current ? \"true\" : \"false\"}>\n {content}\n </div>\n ) : (\n <button\n ref={(el) => (this.button = el as HTMLButtonElement)}\n class=\"stzh-stepper-item__button\"\n aria-pressed={this.current ? \"true\" : \"false\"}\n disabled={(this.dotted && this.first) || this.disabled}\n onClick={this.onClick}\n >\n <span class=\"stzh-stepper-item__number-block\">\n {this.icon\n ?\n <stzh-icon class=\"stzh-stepper-item__user-icon\" name={this.icon}></stzh-icon>\n :\n <Fragment>\n <span class=\"stzh-stepper-item__number\">{this.step}</span>\n {\n this.passed && !this.incomplete &&\n (<stzh-icon class=\"stzh-stepper-item__icon\" name=\"checkmark\"></stzh-icon>)\n }\n </Fragment>\n }\n </span>\n <span\n ref={(el) => (this.text = el as HTMLElement)}\n class=\"stzh-stepper-item__label-block\"\n >\n {this.label ? this.label : <slot></slot>}\n </span>\n </button>\n )}\n {this.first && this.dotted && dotted}\n </div>\n </Host>\n );\n }\n}\n"],"version":3}