@oiz/stzh-components 2.10.0-beta → 2.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (428) hide show
  1. package/dist/cjs/{app-globals-1c49bef9.js → app-globals-4b0a6e5e.js} +2 -2
  2. package/dist/cjs/{app-globals-1c49bef9.js.map → app-globals-4b0a6e5e.js.map} +1 -1
  3. package/dist/cjs/index.cjs.js.map +1 -1
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/stzh-accordion-item.cjs.entry.js +1 -1
  6. package/dist/cjs/stzh-accordion-item.cjs.entry.js.map +1 -1
  7. package/dist/cjs/stzh-badge_3.cjs.entry.js.map +1 -1
  8. package/dist/cjs/stzh-carousel.cjs.entry.js +35 -11
  9. package/dist/cjs/stzh-carousel.cjs.entry.js.map +1 -1
  10. package/dist/cjs/stzh-cell.cjs.entry.js +2 -2
  11. package/dist/cjs/stzh-cell.cjs.entry.js.map +1 -1
  12. package/dist/cjs/stzh-components.cjs.js +2 -2
  13. package/dist/cjs/stzh-container.cjs.entry.js +9 -2
  14. package/dist/cjs/stzh-container.cjs.entry.js.map +1 -1
  15. package/dist/cjs/stzh-cspace.cjs.entry.js +1 -1
  16. package/dist/cjs/stzh-cspace.cjs.entry.js.map +1 -1
  17. package/dist/cjs/stzh-details.cjs.entry.js +1 -1
  18. package/dist/cjs/stzh-details.cjs.entry.js.map +1 -1
  19. package/dist/cjs/stzh-dropdown.cjs.entry.js +1 -1
  20. package/dist/cjs/stzh-dropdown.cjs.entry.js.map +1 -1
  21. package/dist/cjs/stzh-figure.cjs.entry.js +10 -3
  22. package/dist/cjs/stzh-figure.cjs.entry.js.map +1 -1
  23. package/dist/cjs/stzh-footer.cjs.entry.js +1 -1
  24. package/dist/cjs/stzh-footer.cjs.entry.js.map +1 -1
  25. package/dist/cjs/stzh-header.cjs.entry.js +1 -1
  26. package/dist/cjs/stzh-header.cjs.entry.js.map +1 -1
  27. package/dist/cjs/stzh-panorama.cjs.entry.js.map +1 -1
  28. package/dist/cjs/stzh-print.cjs.entry.js +52 -0
  29. package/dist/cjs/stzh-print.cjs.entry.js.map +1 -0
  30. package/dist/cjs/stzh-ratio.cjs.entry.js +5 -1
  31. package/dist/cjs/stzh-ratio.cjs.entry.js.map +1 -1
  32. package/dist/cjs/stzh-scrollup.cjs.entry.js +52 -0
  33. package/dist/cjs/stzh-scrollup.cjs.entry.js.map +1 -0
  34. package/dist/cjs/stzh-skin-portal-mitwirken.cjs.entry.js +1 -1
  35. package/dist/cjs/stzh-skin-portal-mitwirken.cjs.entry.js.map +1 -1
  36. package/dist/cjs/stzh-skiplink.cjs.entry.js +38 -1
  37. package/dist/cjs/stzh-skiplink.cjs.entry.js.map +1 -1
  38. package/dist/cjs/stzh-vbz-carousel.cjs.entry.js +51 -0
  39. package/dist/cjs/stzh-vbz-carousel.cjs.entry.js.map +1 -0
  40. package/dist/collection/collection-manifest.json +3 -0
  41. package/dist/collection/components/stzh-accordion/stzh-accordion.css +3 -0
  42. package/dist/collection/components/stzh-accordion-item/stzh-accordion-item.css +10 -0
  43. package/dist/collection/components/stzh-actions/stzh-actions.css +3 -0
  44. package/dist/collection/components/stzh-actionset/stzh-actionset.css +3 -0
  45. package/dist/collection/components/stzh-amount/stzh-amount.css +3 -0
  46. package/dist/collection/components/stzh-anchornav/stzh-anchornav.css +3 -0
  47. package/dist/collection/components/stzh-appnav/stzh-appnav.css +3 -0
  48. package/dist/collection/components/stzh-appointments/stzh-appointments.css +3 -0
  49. package/dist/collection/components/stzh-audio/stzh-audio.css +3 -0
  50. package/dist/collection/components/stzh-badge/stzh-badge.css +3 -0
  51. package/dist/collection/components/stzh-button/stzh-button.css +3 -0
  52. package/dist/collection/components/stzh-button/stzh-button.js +1 -1
  53. package/dist/collection/components/stzh-button/stzh-button.js.map +1 -1
  54. package/dist/collection/components/stzh-buttongroup/stzh-buttongroup.css +3 -0
  55. package/dist/collection/components/stzh-calendar/stzh-calendar.css +3 -0
  56. package/dist/collection/components/stzh-card/stzh-card.css +3 -0
  57. package/dist/collection/components/stzh-card-list/stzh-card-list.css +3 -0
  58. package/dist/collection/components/stzh-carousel/stzh-carousel.css +37 -24
  59. package/dist/collection/components/stzh-carousel/stzh-carousel.js +148 -12
  60. package/dist/collection/components/stzh-carousel/stzh-carousel.js.map +1 -1
  61. package/dist/collection/components/stzh-carousel/stzh-carousel.stories.js +50 -50
  62. package/dist/collection/components/stzh-cell/stzh-cell.css +11 -19
  63. package/dist/collection/components/stzh-cell/stzh-cell.js +8 -14
  64. package/dist/collection/components/stzh-cell/stzh-cell.js.map +1 -1
  65. package/dist/collection/components/stzh-chart/stzh-chart.css +3 -0
  66. package/dist/collection/components/stzh-checkbox/stzh-checkbox.css +3 -0
  67. package/dist/collection/components/stzh-checkboxgroup/stzh-checkboxgroup.css +3 -0
  68. package/dist/collection/components/stzh-chip/stzh-chip.css +3 -0
  69. package/dist/collection/components/stzh-chip-select/stzh-chip-select.css +3 -0
  70. package/dist/collection/components/stzh-clamp/stzh-clamp.css +3 -0
  71. package/dist/collection/components/stzh-contact/stzh-contact.css +3 -0
  72. package/dist/collection/components/stzh-container/stzh-container.css +22 -5
  73. package/dist/collection/components/stzh-container/stzh-container.js +51 -2
  74. package/dist/collection/components/stzh-container/stzh-container.js.map +1 -1
  75. package/dist/collection/components/stzh-cspace/stzh-cspace.css +1271 -9
  76. package/dist/collection/components/stzh-datalist/stzh-datalist.css +3 -0
  77. package/dist/collection/components/stzh-datalist-item/stzh-datalist-item.css +3 -0
  78. package/dist/collection/components/stzh-datamessagelist/stzh-datamessagelist.css +3 -0
  79. package/dist/collection/components/stzh-datamessagelist-item/stzh-datamessagelist-item.css +3 -0
  80. package/dist/collection/components/stzh-datatable/stzh-datatable.css +3 -0
  81. package/dist/collection/components/stzh-datepicker/stzh-datepicker.css +3 -0
  82. package/dist/collection/components/stzh-details/stzh-details.css +10 -0
  83. package/dist/collection/components/stzh-dialog/stzh-dialog.css +3 -0
  84. package/dist/collection/components/stzh-dropdown/stzh-dropdown.css +6 -0
  85. package/dist/collection/components/stzh-fieldset/stzh-fieldset.css +3 -0
  86. package/dist/collection/components/stzh-figure/stzh-figure.css +18 -6
  87. package/dist/collection/components/stzh-figure/stzh-figure.js +47 -2
  88. package/dist/collection/components/stzh-figure/stzh-figure.js.map +1 -1
  89. package/dist/collection/components/stzh-figure/stzh-figure.stories.js +10 -0
  90. package/dist/collection/components/stzh-flyingfocus/stzh-flyingfocus.css +3 -0
  91. package/dist/collection/components/stzh-footer/stzh-footer.css +13 -5
  92. package/dist/collection/components/stzh-ghettobox/stzh-ghettobox.css +3 -0
  93. package/dist/collection/components/stzh-header/stzh-header.css +33 -15
  94. package/dist/collection/components/stzh-header/stzh-header.stories.js +7 -7
  95. package/dist/collection/components/stzh-heading/stzh-heading.css +3 -0
  96. package/dist/collection/components/stzh-hr/stzh-hr.css +3 -0
  97. package/dist/collection/components/stzh-hspace/stzh-hspace.css +3 -0
  98. package/dist/collection/components/stzh-icon/stzh-icon.css +3 -0
  99. package/dist/collection/components/stzh-icon-sprite/stzh-icon-sprite.css +3 -0
  100. package/dist/collection/components/stzh-iframe/stzh-iframe.css +3 -0
  101. package/dist/collection/components/stzh-input/stzh-input.css +3 -0
  102. package/dist/collection/components/stzh-invert/stzh-invert.css +3 -0
  103. package/dist/collection/components/stzh-langnav/stzh-langnav.css +3 -0
  104. package/dist/collection/components/stzh-link/stzh-link.css +3 -0
  105. package/dist/collection/components/stzh-list/stzh-list.css +3 -0
  106. package/dist/collection/components/stzh-list-item/stzh-list-item.css +3 -0
  107. package/dist/collection/components/stzh-loader/stzh-loader.css +3 -0
  108. package/dist/collection/components/stzh-loadingbar/stzh-loadingbar.css +3 -0
  109. package/dist/collection/components/stzh-menu/stzh-menu.css +3 -0
  110. package/dist/collection/components/stzh-menu-item/stzh-menu-item.css +3 -0
  111. package/dist/collection/components/stzh-message/stzh-message.css +3 -0
  112. package/dist/collection/components/stzh-metanav/stzh-metanav.css +3 -0
  113. package/dist/collection/components/stzh-microsite-teaserlist/stzh-microsite-teaserlist.css +3 -0
  114. package/dist/collection/components/stzh-monthyearpicker/stzh-monthyearpicker.css +3 -0
  115. package/dist/collection/components/stzh-olmap/stzh-olmap.css +3 -0
  116. package/dist/collection/components/stzh-overlay/stzh-overlay.css +3 -0
  117. package/dist/collection/components/stzh-page-skiplinks/stzh-page-skiplinks.css +3 -0
  118. package/dist/collection/components/stzh-page-skiplinks/stzh-page-skiplinks.stories.js +2 -2
  119. package/dist/collection/components/stzh-pagebottom/stzh-pagebottom.css +3 -0
  120. package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.css +3 -0
  121. package/dist/collection/components/stzh-pagetitle-hero/stzh-pagetitle-hero.css +3 -0
  122. package/dist/collection/components/stzh-pagination/stzh-pagination.css +3 -0
  123. package/dist/collection/components/stzh-panorama/stzh-panorama.css +3 -0
  124. package/dist/collection/components/stzh-popover/stzh-popover.css +3 -0
  125. package/dist/collection/components/stzh-print/stzh-print.css +127 -0
  126. package/dist/collection/components/stzh-print/stzh-print.js +53 -0
  127. package/dist/collection/components/stzh-print/stzh-print.js.map +1 -0
  128. package/dist/collection/components/stzh-print/stzh-print.stories.js +43 -0
  129. package/dist/collection/components/stzh-progressbar/stzh-progressbar.css +3 -0
  130. package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.css +3 -0
  131. package/dist/collection/components/stzh-radio/stzh-radio.css +3 -0
  132. package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.css +3 -0
  133. package/dist/collection/components/stzh-ratio/stzh-ratio.css +457 -21
  134. package/dist/collection/components/stzh-ratio/stzh-ratio.js +110 -4
  135. package/dist/collection/components/stzh-ratio/stzh-ratio.js.map +1 -1
  136. package/dist/collection/components/stzh-readspeaker/stzh-readspeaker.css +3 -0
  137. package/dist/collection/components/stzh-richtext/stzh-richtext.css +3 -0
  138. package/dist/collection/components/stzh-row/stzh-row.css +3 -0
  139. package/dist/collection/components/stzh-saptcha/stzh-saptcha.css +3 -0
  140. package/dist/collection/components/stzh-scrollup/stzh-scrollup.css +127 -0
  141. package/dist/collection/components/stzh-scrollup/stzh-scrollup.js +53 -0
  142. package/dist/collection/components/stzh-scrollup/stzh-scrollup.js.map +1 -0
  143. package/dist/collection/components/stzh-scrollup/stzh-scrollup.stories.js +99 -0
  144. package/dist/collection/components/stzh-section/stzh-section.css +3 -0
  145. package/dist/collection/components/stzh-share/stzh-share.css +3 -0
  146. package/dist/collection/components/stzh-show/stzh-show.css +3 -0
  147. package/dist/collection/components/stzh-sitemap/stzh-sitemap.css +3 -0
  148. package/dist/collection/components/stzh-skin-portal-mitwirken/stzh-skin-portal-mitwirken.css +25 -0
  149. package/dist/collection/components/stzh-skin-storybook-preview/stzh-skin-storybook-preview.css +3 -0
  150. package/dist/collection/components/stzh-skiplink/stzh-skiplink.css +3 -0
  151. package/dist/collection/components/stzh-skiplink/stzh-skiplink.js +81 -1
  152. package/dist/collection/components/stzh-skiplink/stzh-skiplink.js.map +1 -1
  153. package/dist/collection/components/stzh-skiplink/stzh-skiplink.stories.js +1 -1
  154. package/dist/collection/components/stzh-sortable/stzh-sortable.css +3 -0
  155. package/dist/collection/components/stzh-space/stzh-space.css +3 -0
  156. package/dist/collection/components/stzh-status/stzh-status.css +3 -0
  157. package/dist/collection/components/stzh-sticky/stzh-sticky.css +3 -0
  158. package/dist/collection/components/stzh-table/stzh-table.css +3 -0
  159. package/dist/collection/components/stzh-text/stzh-text.css +3 -0
  160. package/dist/collection/components/stzh-textandimage/stzh-textandimage.css +3 -0
  161. package/dist/collection/components/stzh-timeline/stzh-timeline.css +3 -0
  162. package/dist/collection/components/stzh-timeline-item/stzh-timeline-item.css +3 -0
  163. package/dist/collection/components/stzh-timepicker/stzh-timepicker.css +3 -0
  164. package/dist/collection/components/stzh-toast/stzh-toast.css +3 -0
  165. package/dist/collection/components/stzh-toastbar/stzh-toastbar.css +3 -0
  166. package/dist/collection/components/stzh-toggle/stzh-toggle.css +3 -0
  167. package/dist/collection/components/stzh-tooltip/stzh-tooltip.css +3 -0
  168. package/dist/collection/components/stzh-upload/stzh-upload.css +3 -0
  169. package/dist/collection/components/stzh-vbz-carousel/stzh-vbz-carousel.css +142 -0
  170. package/dist/collection/components/stzh-vbz-carousel/stzh-vbz-carousel.js +76 -0
  171. package/dist/collection/components/stzh-vbz-carousel/stzh-vbz-carousel.js.map +1 -0
  172. package/dist/collection/components/stzh-vbz-carousel/stzh-vbz-carousel.stories.js +52 -0
  173. package/dist/collection/components/stzh-vbz-linechip/stzh-vbz-linechip.css +3 -0
  174. package/dist/collection/components/stzh-vbz-majorticker/stzh-vbz-majorticker.css +3 -0
  175. package/dist/collection/components/stzh-vbz-ticker/stzh-vbz-ticker.css +3 -0
  176. package/dist/collection/components/stzh-visuallyhidden/stzh-visuallyhidden.css +3 -0
  177. package/dist/collection/components/stzh-vspace/stzh-vspace.css +3 -0
  178. package/dist/collection/components/stzh-youtube/stzh-youtube.css +3 -0
  179. package/dist/collection/index.js.map +1 -1
  180. package/dist/components/index.js +1 -1
  181. package/dist/components/index2.js.map +1 -1
  182. package/dist/components/stzh-accordion-item.js +1 -1
  183. package/dist/components/stzh-accordion-item.js.map +1 -1
  184. package/dist/components/stzh-button2.js.map +1 -1
  185. package/dist/components/stzh-carousel.js +1 -579
  186. package/dist/components/stzh-carousel.js.map +1 -1
  187. package/dist/components/stzh-carousel2.js +615 -0
  188. package/dist/components/stzh-carousel2.js.map +1 -0
  189. package/dist/components/stzh-cell.js +3 -3
  190. package/dist/components/stzh-cell.js.map +1 -1
  191. package/dist/components/stzh-container.js +13 -3
  192. package/dist/components/stzh-container.js.map +1 -1
  193. package/dist/components/stzh-cspace.js +1 -1
  194. package/dist/components/stzh-cspace.js.map +1 -1
  195. package/dist/components/stzh-details.js +1 -1
  196. package/dist/components/stzh-details.js.map +1 -1
  197. package/dist/components/stzh-dropdown2.js +1 -1
  198. package/dist/components/stzh-dropdown2.js.map +1 -1
  199. package/dist/components/stzh-figure2.js +12 -3
  200. package/dist/components/stzh-figure2.js.map +1 -1
  201. package/dist/components/stzh-footer.js +1 -1
  202. package/dist/components/stzh-footer.js.map +1 -1
  203. package/dist/components/stzh-header.js +1 -1
  204. package/dist/components/stzh-header.js.map +1 -1
  205. package/dist/components/stzh-panorama.js.map +1 -1
  206. package/dist/components/stzh-print.d.ts +11 -0
  207. package/dist/components/stzh-print.js +64 -0
  208. package/dist/components/stzh-print.js.map +1 -0
  209. package/dist/components/stzh-ratio2.js +10 -2
  210. package/dist/components/stzh-ratio2.js.map +1 -1
  211. package/dist/components/stzh-scrollup.d.ts +11 -0
  212. package/dist/components/stzh-scrollup.js +64 -0
  213. package/dist/components/stzh-scrollup.js.map +1 -0
  214. package/dist/components/stzh-skin-portal-mitwirken.js +1 -1
  215. package/dist/components/stzh-skin-portal-mitwirken.js.map +1 -1
  216. package/dist/components/stzh-skiplink.js +39 -2
  217. package/dist/components/stzh-skiplink.js.map +1 -1
  218. package/dist/components/stzh-vbz-carousel.d.ts +11 -0
  219. package/dist/components/stzh-vbz-carousel.js +72 -0
  220. package/dist/components/stzh-vbz-carousel.js.map +1 -0
  221. package/dist/esm/{app-globals-503e5649.js → app-globals-fecef0e2.js} +2 -2
  222. package/dist/esm/{app-globals-503e5649.js.map → app-globals-fecef0e2.js.map} +1 -1
  223. package/dist/esm/index.js.map +1 -1
  224. package/dist/esm/loader.js +2 -2
  225. package/dist/esm/stzh-accordion-item.entry.js +1 -1
  226. package/dist/esm/stzh-accordion-item.entry.js.map +1 -1
  227. package/dist/esm/stzh-badge_3.entry.js.map +1 -1
  228. package/dist/esm/stzh-carousel.entry.js +35 -11
  229. package/dist/esm/stzh-carousel.entry.js.map +1 -1
  230. package/dist/esm/stzh-cell.entry.js +2 -2
  231. package/dist/esm/stzh-cell.entry.js.map +1 -1
  232. package/dist/esm/stzh-components.js +2 -2
  233. package/dist/esm/stzh-container.entry.js +9 -2
  234. package/dist/esm/stzh-container.entry.js.map +1 -1
  235. package/dist/esm/stzh-cspace.entry.js +1 -1
  236. package/dist/esm/stzh-cspace.entry.js.map +1 -1
  237. package/dist/esm/stzh-details.entry.js +1 -1
  238. package/dist/esm/stzh-details.entry.js.map +1 -1
  239. package/dist/esm/stzh-dropdown.entry.js +1 -1
  240. package/dist/esm/stzh-dropdown.entry.js.map +1 -1
  241. package/dist/esm/stzh-figure.entry.js +10 -3
  242. package/dist/esm/stzh-figure.entry.js.map +1 -1
  243. package/dist/esm/stzh-footer.entry.js +1 -1
  244. package/dist/esm/stzh-footer.entry.js.map +1 -1
  245. package/dist/esm/stzh-header.entry.js +1 -1
  246. package/dist/esm/stzh-header.entry.js.map +1 -1
  247. package/dist/esm/stzh-panorama.entry.js.map +1 -1
  248. package/dist/esm/stzh-print.entry.js +48 -0
  249. package/dist/esm/stzh-print.entry.js.map +1 -0
  250. package/dist/esm/stzh-ratio.entry.js +5 -1
  251. package/dist/esm/stzh-ratio.entry.js.map +1 -1
  252. package/dist/esm/stzh-scrollup.entry.js +48 -0
  253. package/dist/esm/stzh-scrollup.entry.js.map +1 -0
  254. package/dist/esm/stzh-skin-portal-mitwirken.entry.js +1 -1
  255. package/dist/esm/stzh-skin-portal-mitwirken.entry.js.map +1 -1
  256. package/dist/esm/stzh-skiplink.entry.js +39 -2
  257. package/dist/esm/stzh-skiplink.entry.js.map +1 -1
  258. package/dist/esm/stzh-vbz-carousel.entry.js +47 -0
  259. package/dist/esm/stzh-vbz-carousel.entry.js.map +1 -0
  260. package/dist/esm-es5/{app-globals-503e5649.js → app-globals-fecef0e2.js} +2 -2
  261. package/dist/esm-es5/{app-globals-503e5649.js.map → app-globals-fecef0e2.js.map} +1 -1
  262. package/dist/esm-es5/index.js.map +1 -1
  263. package/dist/esm-es5/loader.js +1 -1
  264. package/dist/esm-es5/loader.js.map +1 -1
  265. package/dist/esm-es5/stzh-accordion-item.entry.js +1 -1
  266. package/dist/esm-es5/stzh-accordion-item.entry.js.map +1 -1
  267. package/dist/esm-es5/stzh-badge_3.entry.js.map +1 -1
  268. package/dist/esm-es5/stzh-carousel.entry.js +1 -1
  269. package/dist/esm-es5/stzh-carousel.entry.js.map +1 -1
  270. package/dist/esm-es5/stzh-cell.entry.js +1 -1
  271. package/dist/esm-es5/stzh-cell.entry.js.map +1 -1
  272. package/dist/esm-es5/stzh-components.js +1 -1
  273. package/dist/esm-es5/stzh-components.js.map +1 -1
  274. package/dist/esm-es5/stzh-container.entry.js +1 -1
  275. package/dist/esm-es5/stzh-container.entry.js.map +1 -1
  276. package/dist/esm-es5/stzh-cspace.entry.js +1 -1
  277. package/dist/esm-es5/stzh-cspace.entry.js.map +1 -1
  278. package/dist/esm-es5/stzh-details.entry.js +1 -1
  279. package/dist/esm-es5/stzh-details.entry.js.map +1 -1
  280. package/dist/esm-es5/stzh-dropdown.entry.js +1 -1
  281. package/dist/esm-es5/stzh-dropdown.entry.js.map +1 -1
  282. package/dist/esm-es5/stzh-figure.entry.js +1 -1
  283. package/dist/esm-es5/stzh-figure.entry.js.map +1 -1
  284. package/dist/esm-es5/stzh-footer.entry.js +1 -1
  285. package/dist/esm-es5/stzh-footer.entry.js.map +1 -1
  286. package/dist/esm-es5/stzh-header.entry.js +1 -1
  287. package/dist/esm-es5/stzh-header.entry.js.map +1 -1
  288. package/dist/esm-es5/stzh-panorama.entry.js.map +1 -1
  289. package/dist/esm-es5/stzh-print.entry.js +2 -0
  290. package/dist/esm-es5/stzh-print.entry.js.map +1 -0
  291. package/dist/esm-es5/stzh-ratio.entry.js +1 -1
  292. package/dist/esm-es5/stzh-ratio.entry.js.map +1 -1
  293. package/dist/esm-es5/stzh-scrollup.entry.js +2 -0
  294. package/dist/esm-es5/stzh-scrollup.entry.js.map +1 -0
  295. package/dist/esm-es5/stzh-skin-portal-mitwirken.entry.js +1 -1
  296. package/dist/esm-es5/stzh-skin-portal-mitwirken.entry.js.map +1 -1
  297. package/dist/esm-es5/stzh-skiplink.entry.js +1 -1
  298. package/dist/esm-es5/stzh-skiplink.entry.js.map +1 -1
  299. package/dist/esm-es5/stzh-vbz-carousel.entry.js +2 -0
  300. package/dist/esm-es5/stzh-vbz-carousel.entry.js.map +1 -0
  301. package/dist/stzh-components/index.esm.js.map +1 -1
  302. package/dist/stzh-components/p-0bb08043.system.js.map +1 -1
  303. package/dist/stzh-components/{p-42d27a5d.system.entry.js → p-0d654519.system.entry.js} +2 -2
  304. package/dist/stzh-components/{p-42d27a5d.system.entry.js.map → p-0d654519.system.entry.js.map} +1 -1
  305. package/dist/stzh-components/p-0dcbb483.system.entry.js.map +1 -1
  306. package/dist/stzh-components/p-0f3f22c8.entry.js +2 -0
  307. package/dist/stzh-components/p-0f3f22c8.entry.js.map +1 -0
  308. package/dist/stzh-components/p-25bfad8b.entry.js +2 -0
  309. package/dist/stzh-components/p-25bfad8b.entry.js.map +1 -0
  310. package/dist/stzh-components/p-28ae4569.entry.js +2 -0
  311. package/dist/stzh-components/p-28ae4569.entry.js.map +1 -0
  312. package/dist/stzh-components/p-35de63a8.entry.js +2 -0
  313. package/dist/stzh-components/p-35de63a8.entry.js.map +1 -0
  314. package/dist/stzh-components/p-37fc4785.system.entry.js +2 -0
  315. package/dist/stzh-components/p-37fc4785.system.entry.js.map +1 -0
  316. package/dist/stzh-components/{p-6b86b394.entry.js → p-390c4a4b.entry.js} +4 -4
  317. package/dist/stzh-components/{p-6b86b394.entry.js.map → p-390c4a4b.entry.js.map} +1 -1
  318. package/dist/stzh-components/p-491ae21b.entry.js.map +1 -1
  319. package/dist/stzh-components/p-4b7f4e66.entry.js +2 -0
  320. package/dist/stzh-components/p-4b7f4e66.entry.js.map +1 -0
  321. package/dist/stzh-components/p-4d975c00.entry.js +2 -0
  322. package/dist/stzh-components/{p-18402a84.entry.js.map → p-4d975c00.entry.js.map} +1 -1
  323. package/dist/stzh-components/p-531fd43a.entry.js +2 -0
  324. package/dist/stzh-components/p-531fd43a.entry.js.map +1 -0
  325. package/dist/stzh-components/p-5f1338aa.system.entry.js.map +1 -1
  326. package/dist/stzh-components/p-64217de4.system.entry.js +2 -0
  327. package/dist/stzh-components/p-64217de4.system.entry.js.map +1 -0
  328. package/dist/stzh-components/p-6858fb1c.entry.js +2 -0
  329. package/dist/stzh-components/p-6858fb1c.entry.js.map +1 -0
  330. package/dist/stzh-components/p-6c9e992d.entry.js +2 -0
  331. package/dist/stzh-components/p-6c9e992d.entry.js.map +1 -0
  332. package/dist/stzh-components/p-70680746.entry.js +2 -0
  333. package/dist/stzh-components/p-70680746.entry.js.map +1 -0
  334. package/dist/stzh-components/p-81aee661.system.entry.js +2 -0
  335. package/dist/stzh-components/{p-1d8dbb06.system.entry.js.map → p-81aee661.system.entry.js.map} +1 -1
  336. package/dist/stzh-components/p-83e30e85.system.entry.js +2 -0
  337. package/dist/stzh-components/p-83e30e85.system.entry.js.map +1 -0
  338. package/dist/stzh-components/p-844a2406.system.entry.js +2 -0
  339. package/dist/stzh-components/p-844a2406.system.entry.js.map +1 -0
  340. package/dist/stzh-components/p-8c26e8c9.entry.js +2 -0
  341. package/dist/stzh-components/{p-a8f684d4.entry.js.map → p-8c26e8c9.entry.js.map} +1 -1
  342. package/dist/stzh-components/p-8f9dc890.system.entry.js +2 -0
  343. package/dist/stzh-components/p-8f9dc890.system.entry.js.map +1 -0
  344. package/dist/stzh-components/p-9790b917.entry.js +2 -0
  345. package/dist/stzh-components/p-9790b917.entry.js.map +1 -0
  346. package/dist/stzh-components/p-a2a68a9d.system.entry.js +2 -0
  347. package/dist/stzh-components/p-a2a68a9d.system.entry.js.map +1 -0
  348. package/dist/stzh-components/p-b1d5d2df.system.entry.js +2 -0
  349. package/dist/stzh-components/p-b1d5d2df.system.entry.js.map +1 -0
  350. package/dist/stzh-components/p-be975e7b.system.js +2 -0
  351. package/dist/stzh-components/{p-5fce4cad.system.js.map → p-be975e7b.system.js.map} +1 -1
  352. package/dist/stzh-components/{p-a12b9320.entry.js → p-bf106d8e.entry.js} +2 -2
  353. package/dist/stzh-components/p-bf106d8e.entry.js.map +1 -0
  354. package/dist/stzh-components/p-c6e46a21.entry.js.map +1 -1
  355. package/dist/stzh-components/{p-902b3880.system.js → p-cce9517f.system.js} +2 -2
  356. package/dist/stzh-components/{p-902b3880.system.js.map → p-cce9517f.system.js.map} +1 -1
  357. package/dist/stzh-components/p-ce501c33.system.entry.js +2 -0
  358. package/dist/stzh-components/p-ce501c33.system.entry.js.map +1 -0
  359. package/dist/stzh-components/{p-8a9c656a.system.entry.js → p-d58e8330.system.entry.js} +2 -2
  360. package/dist/stzh-components/p-d58e8330.system.entry.js.map +1 -0
  361. package/dist/stzh-components/p-dfda6333.system.entry.js +2 -0
  362. package/dist/stzh-components/p-dfda6333.system.entry.js.map +1 -0
  363. package/dist/stzh-components/p-e03a82e6.system.entry.js +2 -0
  364. package/dist/stzh-components/{p-ff1cfbee.system.entry.js.map → p-e03a82e6.system.entry.js.map} +1 -1
  365. package/dist/stzh-components/p-e922df8b.system.entry.js +2 -0
  366. package/dist/stzh-components/{p-4b5bc7a0.system.entry.js.map → p-e922df8b.system.entry.js.map} +1 -1
  367. package/dist/stzh-components/p-ec8651cb.entry.js +2 -0
  368. package/dist/stzh-components/{p-346b8599.entry.js.map → p-ec8651cb.entry.js.map} +1 -1
  369. package/dist/stzh-components/{p-e11c28a1.js → p-ed41f495.js} +2 -2
  370. package/dist/stzh-components/{p-e11c28a1.js.map → p-ed41f495.js.map} +1 -1
  371. package/dist/stzh-components/p-ee8c7dc4.system.entry.js +2 -0
  372. package/dist/stzh-components/p-ee8c7dc4.system.entry.js.map +1 -0
  373. package/dist/stzh-components/p-f3ab9795.system.entry.js +2 -0
  374. package/dist/stzh-components/p-f3ab9795.system.entry.js.map +1 -0
  375. package/dist/stzh-components/p-fe31269f.entry.js +2 -0
  376. package/dist/stzh-components/p-fe31269f.entry.js.map +1 -0
  377. package/dist/stzh-components/stzh-components.css +22 -0
  378. package/dist/stzh-components/stzh-components.esm.js +1 -1
  379. package/dist/stzh-components/stzh-components.esm.js.map +1 -1
  380. package/dist/stzh-components/stzh-components.js +1 -1
  381. package/dist/types/components/stzh-cell/stzh-cell.d.ts +2 -2
  382. package/dist/types/components/stzh-container/stzh-container.d.ts +4 -0
  383. package/dist/types/components.d.ts +186 -15
  384. package/dist/types/index.d.ts +10 -1
  385. package/dist/vscode-data.json +213 -24
  386. package/package.json +1 -1
  387. package/dist/stzh-components/p-061ede8b.entry.js +0 -2
  388. package/dist/stzh-components/p-061ede8b.entry.js.map +0 -1
  389. package/dist/stzh-components/p-086e9523.system.entry.js +0 -2
  390. package/dist/stzh-components/p-086e9523.system.entry.js.map +0 -1
  391. package/dist/stzh-components/p-18402a84.entry.js +0 -2
  392. package/dist/stzh-components/p-1ae561a5.system.entry.js +0 -2
  393. package/dist/stzh-components/p-1ae561a5.system.entry.js.map +0 -1
  394. package/dist/stzh-components/p-1c930dc5.entry.js +0 -2
  395. package/dist/stzh-components/p-1c930dc5.entry.js.map +0 -1
  396. package/dist/stzh-components/p-1d8dbb06.system.entry.js +0 -2
  397. package/dist/stzh-components/p-1edbef4a.system.entry.js +0 -2
  398. package/dist/stzh-components/p-1edbef4a.system.entry.js.map +0 -1
  399. package/dist/stzh-components/p-2eb74ed1.entry.js +0 -2
  400. package/dist/stzh-components/p-2eb74ed1.entry.js.map +0 -1
  401. package/dist/stzh-components/p-2f205fad.entry.js +0 -2
  402. package/dist/stzh-components/p-2f205fad.entry.js.map +0 -1
  403. package/dist/stzh-components/p-32773a2c.system.entry.js +0 -2
  404. package/dist/stzh-components/p-32773a2c.system.entry.js.map +0 -1
  405. package/dist/stzh-components/p-346b8599.entry.js +0 -2
  406. package/dist/stzh-components/p-3d3d09c3.entry.js +0 -2
  407. package/dist/stzh-components/p-3d3d09c3.entry.js.map +0 -1
  408. package/dist/stzh-components/p-4b5bc7a0.system.entry.js +0 -2
  409. package/dist/stzh-components/p-5fce4cad.system.js +0 -2
  410. package/dist/stzh-components/p-6966188f.system.entry.js +0 -2
  411. package/dist/stzh-components/p-6966188f.system.entry.js.map +0 -1
  412. package/dist/stzh-components/p-8a9c656a.system.entry.js.map +0 -1
  413. package/dist/stzh-components/p-95a50796.entry.js +0 -2
  414. package/dist/stzh-components/p-95a50796.entry.js.map +0 -1
  415. package/dist/stzh-components/p-a12b9320.entry.js.map +0 -1
  416. package/dist/stzh-components/p-a8f684d4.entry.js +0 -2
  417. package/dist/stzh-components/p-b98bc5c1.entry.js +0 -2
  418. package/dist/stzh-components/p-b98bc5c1.entry.js.map +0 -1
  419. package/dist/stzh-components/p-bb5b861d.system.entry.js +0 -2
  420. package/dist/stzh-components/p-bb5b861d.system.entry.js.map +0 -1
  421. package/dist/stzh-components/p-c4c8b232.system.entry.js +0 -2
  422. package/dist/stzh-components/p-c4c8b232.system.entry.js.map +0 -1
  423. package/dist/stzh-components/p-d3f4ad11.system.entry.js +0 -2
  424. package/dist/stzh-components/p-d3f4ad11.system.entry.js.map +0 -1
  425. package/dist/stzh-components/p-e0e7105e.entry.js +0 -2
  426. package/dist/stzh-components/p-e0e7105e.entry.js.map +0 -1
  427. package/dist/stzh-components/p-ff1cfbee.system.entry.js +0 -2
  428. package/dist/types/components/stzh-skiplink/stzh-skiplink.d.ts +0 -27
@@ -0,0 +1,2 @@
1
+ import{r as t,h as s,a as o,g as e}from"./p-c92165bd.js";import{s as i}from"./p-ba8c574b.js";import"./p-9b063923.js";const r=":host{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block;}:host[hidden]{display:none}:host *,:host *::before,:host *::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}:host .has-focus{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.3125rem}:host .stzh-fylingfocus-focused{outline-style:none !important}:host .stzh-fylingfocus-focused::-moz-focus-inner{border:0 !important}:host{display:contents}.stzh-scrollup{display:contents}";const n=class{constructor(s){t(this,s);this.handleLinkClick=()=>{window.scrollTo(0,0)};this.init=()=>{const t=this.element.querySelectorAll("stzh-link, stzh-button");t.forEach((t=>{t.addEventListener("click",this.handleLinkClick);i(t,{icon:"arrow-up"})}))}}connectedCallback(){this.init();this.observer=new MutationObserver(this.init);this.observer.observe(this.element,{childList:true,subtree:true})}disconnectedCallback(){if(this.observer){this.observer.disconnect()}}render(){const t={"stzh-scrollup":true};return s(o,null,s("div",{class:t},s("slot",null)))}get element(){return e(this)}};n.style=r;export{n as stzh_scrollup};
2
+ //# sourceMappingURL=p-4b7f4e66.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["stzhScrollupCss","StzhScrollup","constructor","hostRef","this","handleLinkClick","window","scrollTo","init","links","element","querySelectorAll","forEach","link","addEventListener","setPropsIfNull","icon","connectedCallback","observer","MutationObserver","observe","childList","subtree","disconnectedCallback","disconnect","render","classes","h","Host","class"],"sources":["src/components/stzh-scrollup/stzh-scrollup.scss?tag=stzh-scrollup","src/components/stzh-scrollup/stzh-scrollup.tsx"],"sourcesContent":[":host {\n display: contents;\n}\n\n.stzh-scrollup {\n display: contents\n}\n","import {\n Component,\n Host,\n h,\n Element,\n} from \"@stencil/core\";\n\nimport { setPropsIfNull } from \"../../utils/utils\";\n\n/**\n * @slot - Slot for label\n */\n@Component({\n tag: \"stzh-scrollup\",\n styleUrl: \"stzh-scrollup.scss\"\n})\nexport class StzhScrollup {\n @Element() element: HTMLStzhScrollupElement;\n\n private observer: MutationObserver;\n\n private handleLinkClick = () => {\n window.scrollTo(0, 0);\n }\n\n private init = () => {\n const links = this.element.querySelectorAll(\"stzh-link, stzh-button\");\n\n links.forEach((link) => {\n link.addEventListener('click', this.handleLinkClick);\n\n setPropsIfNull(link, {\n icon: \"arrow-up\"\n } as HTMLStzhLinkElement | HTMLStzhButtonElement)\n });\n }\n\n connectedCallback() {\n this.init();\n\n this.observer = new MutationObserver(this.init);\n this.observer.observe(this.element, {\n childList: true,\n subtree: true\n });\n }\n\n disconnectedCallback() {\n if (this.observer) {\n this.observer.disconnect();\n }\n }\n\n render() {\n const classes = {\n \"stzh-scrollup\": true\n };\n\n return (\n <Host>\n <div class={classes}>\n <slot></slot>\n </div>\n </Host>\n );\n }\n}\n"],"mappings":"qHAAA,MAAMA,EAAkB,quB,MCgBXC,EAAY,MAJzB,WAAAC,CAAAC,G,UASUC,KAAAC,gBAAkB,KACxBC,OAAOC,SAAS,EAAG,EAAE,EAGfH,KAAAI,KAAO,KACb,MAAMC,EAAQL,KAAKM,QAAQC,iBAAiB,0BAE5CF,EAAMG,SAASC,IACbA,EAAKC,iBAAiB,QAASV,KAAKC,iBAEpCU,EAAeF,EAAM,CACnBG,KAAM,YACyC,GACjD,C,CAGJ,iBAAAC,GACEb,KAAKI,OAELJ,KAAKc,SAAW,IAAIC,iBAAiBf,KAAKI,MAC1CJ,KAAKc,SAASE,QAAQhB,KAAKM,QAAS,CAClCW,UAAW,KACXC,QAAS,M,CAIb,oBAAAC,GACE,GAAInB,KAAKc,SAAU,CACjBd,KAAKc,SAASM,Y,EAIlB,MAAAC,GACE,MAAMC,EAAU,CACd,gBAAiB,MAGnB,OACEC,EAACC,EAAI,KACHD,EAAA,OAAKE,MAAOH,GACVC,EAAA,c"}
@@ -0,0 +1,2 @@
1
+ import{r as t,h as o,F as s,a as e,g as i}from"./p-c92165bd.js";import{s as r,h as n}from"./p-ba8c574b.js";import"./p-9b063923.js";const l=":host{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block;}:host[hidden]{display:none}:host *,:host *::before,:host *::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}:host .has-focus{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.3125rem}:host .stzh-fylingfocus-focused{outline-style:none !important}:host .stzh-fylingfocus-focused::-moz-focus-inner{border:0 !important}.stzh-footer{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block;font-size:var(--stzh-font-pico-font-size);line-height:var(--stzh-font-pico-text-line-height);background-color:var(--stzh-color-white);padding:var(--stzh-space-xlarge) 0;}.stzh-footer[hidden]{display:none}.stzh-footer *,.stzh-footer *::before,.stzh-footer *::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}.stzh-footer .has-focus{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.3125rem}.stzh-footer .stzh-fylingfocus-focused{outline-style:none !important}.stzh-footer .stzh-fylingfocus-focused::-moz-focus-inner{border:0 !important}.stzh-footer [slot=logo],.stzh-footer [slot=logo] img{display:block;height:2.375rem}.stzh-footer [slot=info]{margin:0}.stzh-footer stzh-link[slot=info],.stzh-footer stzh-link[slot=link],.stzh-footer stzh-link[slot=social-link],.stzh-footer stzh-link.stzh-footer__link{--color:var(--stzh-base-color);--text-decoration-line:none;--icon-wrapper-height:auto;--icon-size:var(--stzh-icon-size-large)}.stzh-footer stzh-link[slot=info] .stzh-link,.stzh-footer stzh-link[slot=link] .stzh-link,.stzh-footer stzh-link[slot=social-link] .stzh-link,.stzh-footer stzh-link.stzh-footer__link .stzh-link{font-size:inherit}.stzh-footer stzh-link[slot=social-link]{margin-bottom:var(--stzh-space-xlarge)}@media screen and (min-width: 1024px){.stzh-footer stzh-link[slot=social-link]{margin-bottom:0;margin-right:var(--stzh-space-large)}}.stzh-footer stzh-link[slot=info]:not(:last-child){margin-bottom:var(--stzh-space-small)}.stzh-footer stzh-link[slot=link]:not(:last-child){margin-bottom:var(--stzh-space-small)}@media screen and (min-width: 800px){.stzh-footer stzh-link[slot=link]:not(:last-child){margin-bottom:0;margin-right:var(--stzh-space-large)}}.stzh-footer__wrapper{margin-left:1.25rem;margin-right:1.25rem;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start}@media screen and (min-width: 600px){.stzh-footer__wrapper{margin-left:2rem;margin-right:2rem}}@media screen and (min-width: 1024px){.stzh-footer__wrapper{margin-left:2.5rem;margin-right:2.5rem}}@media screen and (min-width: 1260px){.stzh-footer__wrapper{margin-left:5.5rem;margin-right:5.5rem}}@media screen and (min-width: 1440px){.stzh-footer__wrapper{margin-left:auto;margin-right:auto;width:78.75rem}}@media screen and (min-width: 1024px){.stzh-footer__wrapper{-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}}.stzh-footer__logo:empty,.stzh-footer__info:empty,.stzh-footer__social-link:empty,.stzh-footer__links:empty{display:none}.stzh-footer__logo:not(:empty){margin-bottom:var(--stzh-space-medium)}@media screen and (min-width: 1024px){.stzh-footer__logo:not(:empty){margin-bottom:0}}.stzh-footer__info{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start}.stzh-footer__info:not(:empty){margin-bottom:var(--stzh-space-xlarge)}@media screen and (min-width: 1024px){.stzh-footer__info:not(:empty){margin-bottom:0}}@media screen and (min-width: 1024px){.stzh-footer__logo,.stzh-footer__social-link{margin-right:auto}}@media screen and (min-width: 1024px){.stzh-footer__links{margin-left:auto}}.stzh-footer__links,.stzh-footer__link-list,.stzh-footer slot-fb[name=link]:not([hidden]){display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start}@media screen and (min-width: 800px){.stzh-footer__links,.stzh-footer__link-list,.stzh-footer slot-fb[name=link]:not([hidden]){-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}}.stzh-footer__copyright:not(:empty)+.stzh-footer__link-list:not(:empty){margin-top:var(--stzh-space-small)}@media screen and (min-width: 800px){.stzh-footer__copyright:not(:empty)+.stzh-footer__link-list:not(:empty){margin-top:0;margin-left:var(--stzh-space-large)}}@media screen and (min-width: 1024px){.stzh-footer--has-logo .stzh-footer__wrapper,.stzh-footer--has-info .stzh-footer__wrapper{-ms-flex-align:start;align-items:flex-start}}.stzh-footer--has-border{border-top:0.0625rem solid var(--stzh-base-border-color)}";const a=class{constructor(o){t(this,o);this.init=()=>{const t=this.element.querySelector('stzh-link[slot="social-link"]');const o=this.element.querySelectorAll('stzh-link[slot="link"]');if(t){r(t,{icon:"social-media"})}o.forEach((t=>{t.setAttribute("role","listitem")}))};this.localization=undefined;this.copyright=undefined;this.variant="default";this.mainUrl="https://www.stadt-zuerich.ch";this.withBorder=false}async componentWillLoad(){if(typeof this.copyright==="undefined"){const t=new Date;this.copyright=`© ${t.getFullYear()} Stadt Zürich`}if(!this.localization){this.localization=await window.stzhComponents.utils.fetchTranslations(this.element,"footer")}}connectedCallback(){this.init();this.observer=new MutationObserver(this.init);this.observer.observe(this.element,{childList:true,subtree:true})}disconnectedCallback(){if(this.observer){this.observer.disconnect()}}render(){const t=n(this.element,"logo");const i=n(this.element,"info");const r=n(this.element,"link");const l=n(this.element,"social-link");const a={"stzh-footer":true,"stzh-footer--has-border":this.withBorder,"stzh-footer--has-logo":t,"stzh-footer--has-info":i,"stzh-footer--has-links":r,"stzh-footer--has-social-link":l};return o(e,null,o("footer",{class:a},o("div",{class:"stzh-footer__wrapper"},o("div",{class:"stzh-footer__social-link"},o("slot",{name:"social-link"})),o("div",{class:"stzh-footer__logo"},o("slot",{name:"logo"})),o("div",{class:"stzh-footer__info"},o("slot",{name:"info"})),o("div",{class:"stzh-footer__links"},this.copyright&&o("div",{class:"stzh-footer__copyright"},this.copyright),o("div",{class:"stzh-footer__link-list",role:"list"},o("slot",{name:"link"},this.variant==="egov"&&o(s,null,o("stzh-link",{slot:"link",target:"_blank",class:"stzh-footer__link",href:`${this.mainUrl}/${this.localization.legalNoticeUrl}`},this.localization.legalNoticeText),o("stzh-link",{slot:"link",target:"_blank",class:"stzh-footer__link",href:`${this.mainUrl}/${this.localization.imprintUrl}`},this.localization.imprintText),o("stzh-link",{class:"stzh-footer__link",slot:"link",target:"_blank",href:`${this.mainUrl}/${this.localization.accessibilityUrl}`},this.localization.accessibilityText))))))))}get element(){return i(this)}};a.style=l;export{a as stzh_footer};
2
+ //# sourceMappingURL=p-4d975c00.entry.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["stzhFooterCss","StzhFooter","this","init","socialLink","element","querySelector","links","querySelectorAll","setPropsIfNull","icon","forEach","link","setAttribute","componentWillLoad","copyright","currentDate","Date","getFullYear","localization","window","stzhComponents","utils","fetchTranslations","connectedCallback","observer","MutationObserver","observe","childList","subtree","disconnectedCallback","disconnect","render","logoSlotUsed","hasSlot","infoSlotUsed","linkSlotUsed","socialLinkSlotUsed","classes","withBorder","h","Host","class","name","role","variant","Fragment","slot","target","href","mainUrl","legalNoticeUrl","legalNoticeText","imprintUrl","imprintText","accessibilityUrl","accessibilityText"],"sources":["src/components/stzh-footer/stzh-footer.scss?tag=stzh-footer","src/components/stzh-footer/stzh-footer.tsx"],"sourcesContent":[".stzh-footer {\n @include host;\n @include fontSize('pico');\n background-color: $colorWhite;\n padding: space('xlarge') 0;\n\n [slot=\"logo\"],\n [slot=\"logo\"] img {\n display: block;\n height: 38px;\n }\n\n [slot=\"info\"] {\n margin: 0;\n }\n\n stzh-link[slot=\"info\"],\n stzh-link[slot=\"link\"],\n stzh-link[slot=\"social-link\"],\n stzh-link#{&}__link {\n --color: #{$baseColor};\n --text-decoration-line: none;\n --icon-wrapper-height: auto;\n --icon-size: #{iconSize('large')};\n\n .stzh-link {\n font-size: inherit;\n }\n }\n\n stzh-link[slot=\"social-link\"] {\n margin-bottom: space('xlarge');\n\n @include mq($from: medium) {\n margin-bottom: 0;\n margin-right: space('large');\n }\n }\n\n stzh-link[slot=\"info\"] {\n &:not(:last-child) {\n margin-bottom: space('small');\n }\n }\n\n stzh-link[slot=\"link\"]{\n &:not(:last-child) {\n margin-bottom: space('small');\n\n @include mq($from: smallheader) {\n margin-bottom: 0;\n margin-right: space('large');\n }\n }\n }\n\n &__wrapper {\n @include container;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n\n @include mq($from: medium) {\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n }\n }\n\n &__logo,\n &__info,\n &__social-link,\n &__links {\n &:empty {\n display: none;\n }\n }\n\n &__logo {\n &:not(:empty) {\n margin-bottom: space('medium');\n\n @include mq($from: medium) {\n margin-bottom: 0;\n }\n }\n }\n\n &__info {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n\n &:not(:empty) {\n margin-bottom: space('xlarge');\n\n @include mq($from: medium) {\n margin-bottom: 0;\n }\n }\n }\n\n &__logo,\n &__social-link {\n @include mq($from: medium) {\n margin-right: auto;\n }\n }\n\n &__links {\n @include mq($from: medium) {\n margin-left: auto;\n }\n }\n\n &__links,\n &__link-list,\n slot-fb[name=\"link\"]:not([hidden]) {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n\n @include mq($from: smallheader) {\n flex-direction: row;\n align-items: center;\n }\n }\n\n &__copyright:not(:empty) + &__link-list:not(:empty) {\n margin-top: space('small');\n\n @include mq($from: smallheader) {\n margin-top: 0;\n margin-left: space('large');\n }\n }\n\n /* Logo or info filled variant */\n\n &--has-logo &__wrapper,\n &--has-info &__wrapper{\n @include mq($from: medium) {\n align-items: flex-start;\n }\n }\n\n /* Has border */\n\n &--has-border {\n border-top: 1px solid $baseBorderColor;\n }\n}\n","import {\n Component,\n Host,\n h,\n Element,\n Prop,\n Fragment,\n} from \"@stencil/core\";\n\nimport { StzhFooterLocalizedText } from './stzh-footer.localization';\n\nimport { hasSlot, setPropsIfNull } from \"../../utils/utils\";\n\n/**\n * @slot - Slot for content\n * @slot social-link - Slot for social `stzh-link`\n * @slot logo - Slot for logo `img`\n * @slot info - Slot for info content\n * @slot link - Slot for `stzh-link` elements\n */\n@Component({\n tag: \"stzh-footer\",\n styleUrl: \"stzh-footer.scss\"\n})\nexport class StzhFooter {\n /** Translation strings */\n @Prop() localization: StzhFooterLocalizedText;\n\n /** Copyright text (will show default copyright string if undefined) */\n @Prop() copyright: string;\n\n /** Footer variant */\n @Prop() variant: \"default\" | \"egov\" = \"default\";\n\n /** Main URL for shortlinks */\n @Prop() mainUrl: string = \"https://www.stadt-zuerich.ch\";\n\n /** Whether to display separation border */\n @Prop() withBorder: boolean = false;\n\n @Element() element: HTMLStzhFooterElement;\n\n private observer: MutationObserver;\n\n private init = () => {\n const socialLink = this.element.querySelector('stzh-link[slot=\"social-link\"]');\n const links = this.element.querySelectorAll('stzh-link[slot=\"link\"]');\n\n if (socialLink) {\n setPropsIfNull(socialLink, {\n icon: \"social-media\"\n } as HTMLStzhLinkElement | HTMLStzhButtonElement);\n }\n\n links.forEach((link) => {\n link.setAttribute(\"role\", \"listitem\");\n });\n }\n\n async componentWillLoad() {\n if (typeof this.copyright === \"undefined\") {\n const currentDate = new Date();\n this.copyright = `© ${currentDate.getFullYear()} Stadt Zürich`;\n }\n\n if (!this.localization) {\n this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, 'footer');\n }\n }\n\n connectedCallback() {\n this.init();\n\n this.observer = new MutationObserver(this.init);\n this.observer.observe(this.element, {\n childList: true,\n subtree: true\n });\n }\n\n disconnectedCallback() {\n if (this.observer) {\n this.observer.disconnect();\n }\n }\n\n render() {\n const logoSlotUsed = hasSlot(this.element, \"logo\");\n const infoSlotUsed = hasSlot(this.element, \"info\");\n const linkSlotUsed = hasSlot(this.element, \"link\");\n const socialLinkSlotUsed = hasSlot(this.element, \"social-link\");\n\n const classes = {\n \"stzh-footer\": true,\n \"stzh-footer--has-border\": this.withBorder,\n \"stzh-footer--has-logo\": logoSlotUsed,\n \"stzh-footer--has-info\": infoSlotUsed,\n \"stzh-footer--has-links\": linkSlotUsed,\n \"stzh-footer--has-social-link\": socialLinkSlotUsed\n };\n\n return (\n <Host>\n <footer class={classes}>\n <div class=\"stzh-footer__wrapper\">\n <div class=\"stzh-footer__social-link\">\n <slot name=\"social-link\"></slot>\n </div>\n\n <div class=\"stzh-footer__logo\">\n <slot name=\"logo\"></slot>\n </div>\n\n <div class=\"stzh-footer__info\">\n <slot name=\"info\"></slot>\n </div>\n\n <div class=\"stzh-footer__links\">\n {this.copyright &&\n <div class=\"stzh-footer__copyright\">\n {this.copyright}\n </div>\n }\n <div class=\"stzh-footer__link-list\" role=\"list\">\n <slot name=\"link\">\n {this.variant === \"egov\" &&\n <Fragment>\n <stzh-link\n slot=\"link\"\n target=\"_blank\"\n class=\"stzh-footer__link\"\n href={`${this.mainUrl}/${this.localization.legalNoticeUrl}`}\n >\n {this.localization.legalNoticeText}\n </stzh-link>\n <stzh-link\n slot=\"link\"\n target=\"_blank\"\n class=\"stzh-footer__link\"\n href={`${this.mainUrl}/${this.localization.imprintUrl}`}\n >\n {this.localization.imprintText}\n </stzh-link>\n <stzh-link\n class=\"stzh-footer__link\"\n slot=\"link\"\n target=\"_blank\"\n href={`${this.mainUrl}/${this.localization.accessibilityUrl}`}\n >\n {this.localization.accessibilityText}\n </stzh-link>\n </Fragment>\n }\n </slot>\n </div>\n </div>\n </div>\n </footer>\n </Host>\n );\n }\n}\n"],"mappings":"mIAAA,MAAMA,EAAgB,y/J,MCwBTC,EAAU,M,yBAoBbC,KAAAC,KAAO,KACb,MAAMC,EAAaF,KAAKG,QAAQC,cAAc,iCAC9C,MAAMC,EAAQL,KAAKG,QAAQG,iBAAiB,0BAE5C,GAAIJ,EAAY,CACdK,EAAeL,EAAY,CACzBM,KAAM,gB,CAIVH,EAAMI,SAASC,IACbA,EAAKC,aAAa,OAAQ,WAAW,GACrC,E,kEAxBkC,U,aAGZ,+B,gBAGI,K,CAqB9B,uBAAMC,GACJ,UAAWZ,KAAKa,YAAc,YAAa,CACzC,MAAMC,EAAc,IAAIC,KACxBf,KAAKa,UAAY,KAAKC,EAAYE,4B,CAGpC,IAAKhB,KAAKiB,aAAc,CACtBjB,KAAKiB,mBAAqBC,OAAOC,eAAeC,MAAMC,kBAAkBrB,KAAKG,QAAS,S,EAI1F,iBAAAmB,GACEtB,KAAKC,OAELD,KAAKuB,SAAW,IAAIC,iBAAiBxB,KAAKC,MAC1CD,KAAKuB,SAASE,QAAQzB,KAAKG,QAAS,CAClCuB,UAAW,KACXC,QAAS,M,CAIb,oBAAAC,GACE,GAAI5B,KAAKuB,SAAU,CACjBvB,KAAKuB,SAASM,Y,EAIlB,MAAAC,GACE,MAAMC,EAAeC,EAAQhC,KAAKG,QAAS,QAC3C,MAAM8B,EAAeD,EAAQhC,KAAKG,QAAS,QAC3C,MAAM+B,EAAeF,EAAQhC,KAAKG,QAAS,QAC3C,MAAMgC,EAAqBH,EAAQhC,KAAKG,QAAS,eAEjD,MAAMiC,EAAU,CACd,cAAe,KACf,0BAA2BpC,KAAKqC,WAChC,wBAAyBN,EACzB,wBAAyBE,EACzB,yBAA0BC,EAC1B,+BAAgCC,GAGlC,OACEG,EAACC,EAAI,KACHD,EAAA,UAAQE,MAAOJ,GACbE,EAAA,OAAKE,MAAM,wBACTF,EAAA,OAAKE,MAAM,4BACTF,EAAA,QAAMG,KAAK,iBAGbH,EAAA,OAAKE,MAAM,qBACTF,EAAA,QAAMG,KAAK,UAGbH,EAAA,OAAKE,MAAM,qBACTF,EAAA,QAAMG,KAAK,UAGbH,EAAA,OAAKE,MAAM,sBACRxC,KAAKa,WACJyB,EAAA,OAAKE,MAAM,0BACRxC,KAAKa,WAGVyB,EAAA,OAAKE,MAAM,yBAAyBE,KAAK,QACvCJ,EAAA,QAAMG,KAAK,QACRzC,KAAK2C,UAAY,QAChBL,EAACM,EAAQ,KACPN,EAAA,aACEO,KAAK,OACLC,OAAO,SACPN,MAAM,oBACNO,KAAM,GAAG/C,KAAKgD,WAAWhD,KAAKiB,aAAagC,kBAE1CjD,KAAKiB,aAAaiC,iBAErBZ,EAAA,aACEO,KAAK,OACLC,OAAO,SACPN,MAAM,oBACNO,KAAM,GAAG/C,KAAKgD,WAAWhD,KAAKiB,aAAakC,cAE1CnD,KAAKiB,aAAamC,aAErBd,EAAA,aACEE,MAAM,oBACNK,KAAK,OACLC,OAAO,SACPC,KAAM,GAAG/C,KAAKgD,WAAWhD,KAAKiB,aAAaoC,oBAE1CrD,KAAKiB,aAAaqC,yB"}
1
+ {"version":3,"names":["stzhFooterCss","StzhFooter","this","init","socialLink","element","querySelector","links","querySelectorAll","setPropsIfNull","icon","forEach","link","setAttribute","componentWillLoad","copyright","currentDate","Date","getFullYear","localization","window","stzhComponents","utils","fetchTranslations","connectedCallback","observer","MutationObserver","observe","childList","subtree","disconnectedCallback","disconnect","render","logoSlotUsed","hasSlot","infoSlotUsed","linkSlotUsed","socialLinkSlotUsed","classes","withBorder","h","Host","class","name","role","variant","Fragment","slot","target","href","mainUrl","legalNoticeUrl","legalNoticeText","imprintUrl","imprintText","accessibilityUrl","accessibilityText"],"sources":["src/components/stzh-footer/stzh-footer.scss?tag=stzh-footer","src/components/stzh-footer/stzh-footer.tsx"],"sourcesContent":[".stzh-footer {\n @include host;\n @include fontSize('pico');\n background-color: $colorWhite;\n padding: space('xlarge') 0;\n\n [slot=\"logo\"],\n [slot=\"logo\"] img {\n display: block;\n height: 38px;\n }\n\n [slot=\"info\"] {\n margin: 0;\n }\n\n stzh-link[slot=\"info\"],\n stzh-link[slot=\"link\"],\n stzh-link[slot=\"social-link\"],\n stzh-link#{&}__link {\n --color: #{$baseColor};\n --text-decoration-line: none;\n --icon-wrapper-height: auto;\n --icon-size: #{iconSize('large')};\n\n .stzh-link {\n font-size: inherit;\n }\n }\n\n stzh-link[slot=\"social-link\"] {\n margin-bottom: space('xlarge');\n\n @include mq($from: medium) {\n margin-bottom: 0;\n margin-right: space('large');\n }\n }\n\n stzh-link[slot=\"info\"] {\n &:not(:last-child) {\n margin-bottom: space('small');\n }\n }\n\n stzh-link[slot=\"link\"]{\n &:not(:last-child) {\n margin-bottom: space('small');\n\n @include mq($from: smallheader) {\n margin-bottom: 0;\n margin-right: space('large');\n }\n }\n }\n\n &__wrapper {\n @include container;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n\n @include mq($from: medium) {\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n }\n }\n\n &__logo,\n &__info,\n &__social-link,\n &__links {\n &:empty {\n display: none;\n }\n }\n\n &__logo {\n &:not(:empty) {\n margin-bottom: space('medium');\n\n @include mq($from: medium) {\n margin-bottom: 0;\n }\n }\n }\n\n &__info {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n\n &:not(:empty) {\n margin-bottom: space('xlarge');\n\n @include mq($from: medium) {\n margin-bottom: 0;\n }\n }\n }\n\n &__logo,\n &__social-link {\n @include mq($from: medium) {\n margin-right: auto;\n }\n }\n\n &__links {\n @include mq($from: medium) {\n margin-left: auto;\n }\n }\n\n &__links,\n &__link-list,\n slot-fb[name=\"link\"]:not([hidden]) {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n\n @include mq($from: smallheader) {\n flex-direction: row;\n align-items: center;\n }\n }\n\n &__copyright:not(:empty) + &__link-list:not(:empty) {\n margin-top: space('small');\n\n @include mq($from: smallheader) {\n margin-top: 0;\n margin-left: space('large');\n }\n }\n\n /* Logo or info filled variant */\n\n &--has-logo &__wrapper,\n &--has-info &__wrapper{\n @include mq($from: medium) {\n align-items: flex-start;\n }\n }\n\n /* Has border */\n\n &--has-border {\n border-top: 1px solid $baseBorderColor;\n }\n}\n","import {\n Component,\n Host,\n h,\n Element,\n Prop,\n Fragment,\n} from \"@stencil/core\";\n\nimport { StzhFooterLocalizedText } from './stzh-footer.localization';\n\nimport { hasSlot, setPropsIfNull } from \"../../utils/utils\";\n\n/**\n * @slot - Slot for content\n * @slot social-link - Slot for social `stzh-link`\n * @slot logo - Slot for logo `img`\n * @slot info - Slot for info content\n * @slot link - Slot for `stzh-link` elements\n */\n@Component({\n tag: \"stzh-footer\",\n styleUrl: \"stzh-footer.scss\"\n})\nexport class StzhFooter {\n /** Translation strings */\n @Prop() localization: StzhFooterLocalizedText;\n\n /** Copyright text (will show default copyright string if undefined) */\n @Prop() copyright: string;\n\n /** Footer variant */\n @Prop() variant: \"default\" | \"egov\" = \"default\";\n\n /** Main URL for shortlinks */\n @Prop() mainUrl: string = \"https://www.stadt-zuerich.ch\";\n\n /** Whether to display separation border */\n @Prop() withBorder: boolean = false;\n\n @Element() element: HTMLStzhFooterElement;\n\n private observer: MutationObserver;\n\n private init = () => {\n const socialLink = this.element.querySelector('stzh-link[slot=\"social-link\"]');\n const links = this.element.querySelectorAll('stzh-link[slot=\"link\"]');\n\n if (socialLink) {\n setPropsIfNull(socialLink, {\n icon: \"social-media\"\n } as HTMLStzhLinkElement | HTMLStzhButtonElement);\n }\n\n links.forEach((link) => {\n link.setAttribute(\"role\", \"listitem\");\n });\n }\n\n async componentWillLoad() {\n if (typeof this.copyright === \"undefined\") {\n const currentDate = new Date();\n this.copyright = `© ${currentDate.getFullYear()} Stadt Zürich`;\n }\n\n if (!this.localization) {\n this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, 'footer');\n }\n }\n\n connectedCallback() {\n this.init();\n\n this.observer = new MutationObserver(this.init);\n this.observer.observe(this.element, {\n childList: true,\n subtree: true\n });\n }\n\n disconnectedCallback() {\n if (this.observer) {\n this.observer.disconnect();\n }\n }\n\n render() {\n const logoSlotUsed = hasSlot(this.element, \"logo\");\n const infoSlotUsed = hasSlot(this.element, \"info\");\n const linkSlotUsed = hasSlot(this.element, \"link\");\n const socialLinkSlotUsed = hasSlot(this.element, \"social-link\");\n\n const classes = {\n \"stzh-footer\": true,\n \"stzh-footer--has-border\": this.withBorder,\n \"stzh-footer--has-logo\": logoSlotUsed,\n \"stzh-footer--has-info\": infoSlotUsed,\n \"stzh-footer--has-links\": linkSlotUsed,\n \"stzh-footer--has-social-link\": socialLinkSlotUsed\n };\n\n return (\n <Host>\n <footer class={classes}>\n <div class=\"stzh-footer__wrapper\">\n <div class=\"stzh-footer__social-link\">\n <slot name=\"social-link\"></slot>\n </div>\n\n <div class=\"stzh-footer__logo\">\n <slot name=\"logo\"></slot>\n </div>\n\n <div class=\"stzh-footer__info\">\n <slot name=\"info\"></slot>\n </div>\n\n <div class=\"stzh-footer__links\">\n {this.copyright &&\n <div class=\"stzh-footer__copyright\">\n {this.copyright}\n </div>\n }\n <div class=\"stzh-footer__link-list\" role=\"list\">\n <slot name=\"link\">\n {this.variant === \"egov\" &&\n <Fragment>\n <stzh-link\n slot=\"link\"\n target=\"_blank\"\n class=\"stzh-footer__link\"\n href={`${this.mainUrl}/${this.localization.legalNoticeUrl}`}\n >\n {this.localization.legalNoticeText}\n </stzh-link>\n <stzh-link\n slot=\"link\"\n target=\"_blank\"\n class=\"stzh-footer__link\"\n href={`${this.mainUrl}/${this.localization.imprintUrl}`}\n >\n {this.localization.imprintText}\n </stzh-link>\n <stzh-link\n class=\"stzh-footer__link\"\n slot=\"link\"\n target=\"_blank\"\n href={`${this.mainUrl}/${this.localization.accessibilityUrl}`}\n >\n {this.localization.accessibilityText}\n </stzh-link>\n </Fragment>\n }\n </slot>\n </div>\n </div>\n </div>\n </footer>\n </Host>\n );\n }\n}\n"],"mappings":"mIAAA,MAAMA,EAAgB,ymK,MCwBTC,EAAU,M,yBAoBbC,KAAAC,KAAO,KACb,MAAMC,EAAaF,KAAKG,QAAQC,cAAc,iCAC9C,MAAMC,EAAQL,KAAKG,QAAQG,iBAAiB,0BAE5C,GAAIJ,EAAY,CACdK,EAAeL,EAAY,CACzBM,KAAM,gB,CAIVH,EAAMI,SAASC,IACbA,EAAKC,aAAa,OAAQ,WAAW,GACrC,E,kEAxBkC,U,aAGZ,+B,gBAGI,K,CAqB9B,uBAAMC,GACJ,UAAWZ,KAAKa,YAAc,YAAa,CACzC,MAAMC,EAAc,IAAIC,KACxBf,KAAKa,UAAY,KAAKC,EAAYE,4B,CAGpC,IAAKhB,KAAKiB,aAAc,CACtBjB,KAAKiB,mBAAqBC,OAAOC,eAAeC,MAAMC,kBAAkBrB,KAAKG,QAAS,S,EAI1F,iBAAAmB,GACEtB,KAAKC,OAELD,KAAKuB,SAAW,IAAIC,iBAAiBxB,KAAKC,MAC1CD,KAAKuB,SAASE,QAAQzB,KAAKG,QAAS,CAClCuB,UAAW,KACXC,QAAS,M,CAIb,oBAAAC,GACE,GAAI5B,KAAKuB,SAAU,CACjBvB,KAAKuB,SAASM,Y,EAIlB,MAAAC,GACE,MAAMC,EAAeC,EAAQhC,KAAKG,QAAS,QAC3C,MAAM8B,EAAeD,EAAQhC,KAAKG,QAAS,QAC3C,MAAM+B,EAAeF,EAAQhC,KAAKG,QAAS,QAC3C,MAAMgC,EAAqBH,EAAQhC,KAAKG,QAAS,eAEjD,MAAMiC,EAAU,CACd,cAAe,KACf,0BAA2BpC,KAAKqC,WAChC,wBAAyBN,EACzB,wBAAyBE,EACzB,yBAA0BC,EAC1B,+BAAgCC,GAGlC,OACEG,EAACC,EAAI,KACHD,EAAA,UAAQE,MAAOJ,GACbE,EAAA,OAAKE,MAAM,wBACTF,EAAA,OAAKE,MAAM,4BACTF,EAAA,QAAMG,KAAK,iBAGbH,EAAA,OAAKE,MAAM,qBACTF,EAAA,QAAMG,KAAK,UAGbH,EAAA,OAAKE,MAAM,qBACTF,EAAA,QAAMG,KAAK,UAGbH,EAAA,OAAKE,MAAM,sBACRxC,KAAKa,WACJyB,EAAA,OAAKE,MAAM,0BACRxC,KAAKa,WAGVyB,EAAA,OAAKE,MAAM,yBAAyBE,KAAK,QACvCJ,EAAA,QAAMG,KAAK,QACRzC,KAAK2C,UAAY,QAChBL,EAACM,EAAQ,KACPN,EAAA,aACEO,KAAK,OACLC,OAAO,SACPN,MAAM,oBACNO,KAAM,GAAG/C,KAAKgD,WAAWhD,KAAKiB,aAAagC,kBAE1CjD,KAAKiB,aAAaiC,iBAErBZ,EAAA,aACEO,KAAK,OACLC,OAAO,SACPN,MAAM,oBACNO,KAAM,GAAG/C,KAAKgD,WAAWhD,KAAKiB,aAAakC,cAE1CnD,KAAKiB,aAAamC,aAErBd,EAAA,aACEE,MAAM,oBACNK,KAAK,OACLC,OAAO,SACPC,KAAM,GAAG/C,KAAKgD,WAAWhD,KAAKiB,aAAaoC,oBAE1CrD,KAAKiB,aAAaqC,yB"}
@@ -0,0 +1,2 @@
1
+ import{r as s,c as i,h as t,a as e,g as n}from"./p-c92165bd.js";const o=".sc-stzh-skiplink-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-skiplink-h{display:none}.sc-stzh-skiplink-h *.sc-stzh-skiplink,.sc-stzh-skiplink-h *.sc-stzh-skiplink::before,.sc-stzh-skiplink-h *.sc-stzh-skiplink::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}.sc-stzh-skiplink-h .has-focus.sc-stzh-skiplink{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.3125rem}.sc-stzh-skiplink-h .stzh-fylingfocus-focused.sc-stzh-skiplink{outline-style:none !important}.sc-stzh-skiplink-h .stzh-fylingfocus-focused.sc-stzh-skiplink::-moz-focus-inner{border:0 !important}.sc-stzh-skiplink-h:not([focused]){padding:0 !important;margin:0 !important}.stzh-skiplink.sc-stzh-skiplink{display:inline-block;right:0;top:0;white-space:nowrap;padding:var(--stzh-space-large) var(--stzh-space-xxlarge);border:solid 0.0625rem var(--stzh-color-grey40);border-radius:0.125rem;background:var(--stzh-color-white);color:var(--stzh-color-primary, var(--stzh-color-zueriblue));-webkit-transition:color var(--stzh-base-transition-animation-speed);transition:color var(--stzh-base-transition-animation-speed);-webkit-text-decoration-line:none;text-decoration-line:none}.stzh-skiplink.sc-stzh-skiplink:not(:focus):not(:active){border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-skiplink.sc-stzh-skiplink:hover{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}";const r=class{constructor(t){s(this,t);this.stzhFocus=i(this,"stzhFocus",7);this.stzhBlur=i(this,"stzhBlur",7);this.focusedByInput=false;this.onRootFocus=()=>{if(!this.focusedByInput){this.link.focus()}this.focusedByInput=false};this.onFocus=s=>{this.focusedByInput=true;const i=new FocusEvent("focus",{view:window,bubbles:false,cancelable:false});this.element.dispatchEvent(i);this.stzhFocus.emit({component:"stzh-skiplink",originalEvent:s})};this.onBlur=s=>{const i=new FocusEvent("blur",{view:window,bubbles:false,cancelable:false});this.element.dispatchEvent(i);this.stzhBlur.emit({component:"stzh-skiplink",originalEvent:s})};this.label="";this.href=undefined;this.linkAccesskey=undefined;this.linkTitle=undefined;this.analyticsId=undefined;this.focused=false}focusinHandler(){this.focused=true}focusoutHandler(){this.focused=false}componentDidRender(){requestAnimationFrame((()=>{this.link.setAttribute("s-object-id",this.analyticsId||this.label||this.text.innerText)}))}render(){return t(e,{focused:this.focused,tabindex:"-1",onFocus:this.onRootFocus},t("a",{ref:s=>this.link=s,class:"stzh-skiplink",href:this.href,accessKey:this.linkAccesskey,title:this.linkTitle,onFocus:this.onFocus,onBlur:this.onBlur},t("div",{ref:s=>this.text=s},this.label?this.label:t("slot",null))))}get element(){return n(this)}};r.style=o;export{r as stzh_skiplink};
2
+ //# sourceMappingURL=p-531fd43a.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["stzhSkiplinkCss","StzhSkiplink","this","focusedByInput","onRootFocus","link","focus","onFocus","event","focusEvent","FocusEvent","view","window","bubbles","cancelable","element","dispatchEvent","stzhFocus","emit","component","originalEvent","onBlur","blurEvent","stzhBlur","focusinHandler","focused","focusoutHandler","componentDidRender","requestAnimationFrame","setAttribute","analyticsId","label","text","innerText","render","h","Host","tabindex","ref","el","class","href","accessKey","linkAccesskey","title","linkTitle"],"sources":["src/components/stzh-skiplink/stzh-skiplink.scss?tag=stzh-skiplink&encapsulation=scoped","src/components/stzh-skiplink/stzh-skiplink.tsx"],"sourcesContent":[":host(:not([focused])) {\n // reset any margin or padding (e.g. from stzh-vspace/hspace components)\n // so the host element won't take up any space when link inside is not focuseds\n padding: 0 !important;\n margin: 0 !important;\n}\n\n.stzh-skiplink {\n @include visuallyhiddenFocusable;\n display: inline-block;\n right: 0;\n top: 0;\n white-space: nowrap;\n\tpadding: space('large') space('xxlarge');\n\tborder: solid 1px $colorGrey40;\n\tborder-radius: 2px;\n\tbackground: $colorWhite;\n color: $colorPrimary;\n\ttransition: color $baseTransitionAnimationSpeed;\n text-decoration-line: none;\n\n\t&:hover {\n\t\tcolor: $colorPrimaryHover;\n\t}\n}\n","import {\n Component,\n Host,\n Listen,\n h,\n Prop,\n State,\n Event,\n EventEmitter,\n Element,\n} from \"@stencil/core\";\n\nimport {\n StzhSkiplinkFocusEvent,\n StzhSkiplinkBlurEvent,\n} from \"../../index\";\n\n/**\n * @slot - Slot for any text content\n */\n@Component({\n tag: \"stzh-skiplink\",\n styleUrl: \"stzh-skiplink.scss\",\n scoped: true\n})\nexport class StzhSkiplink {\n /** Label */\n @Prop() label: string = \"\";\n\n /** href for linking to e.g. id of an element to skip to */\n @Prop() href: string;\n\n /** Access key of link (usually a number e.g. 1) */\n @Prop() linkAccesskey: string;\n\n /** Link title for description e.g. how to use skiplink with access key ([ALT + 1]) */\n @Prop() linkTitle: string;\n\n /**\n * For Adobe Analytics.\n * Will be rendered as value of `s-object-id` attribute to the link element.\n * Default value will be taken from `label` prop or default slot.\n */\n @Prop() analyticsId: string;\n\n /** Whether the skiplink is currently focused */\n @State() focused: boolean = false;\n\n /** Focus event */\n @Event() stzhFocus: EventEmitter<StzhSkiplinkFocusEvent>;\n\n /** Blur event */\n @Event() stzhBlur: EventEmitter<StzhSkiplinkBlurEvent>;\n\n @Element() element: HTMLStzhSkiplinkElement;\n\n @Listen('focusin')\n focusinHandler() {\n this.focused = true;\n }\n\n @Listen('focusout')\n focusoutHandler() {\n this.focused = false;\n }\n\n private link: HTMLAnchorElement;\n private text: HTMLDivElement;\n private focusedByInput: boolean = false;\n\n private onRootFocus = () => {\n if (!this.focusedByInput) {\n this.link.focus();\n }\n\n this.focusedByInput = false;\n }\n\n private onFocus = (event: FocusEvent) => {\n this.focusedByInput = true;\n\n // dispatch native focus event\n const focusEvent = new FocusEvent(\"focus\", {\n view: window,\n bubbles: false,\n cancelable: false\n });\n\n this.element.dispatchEvent(focusEvent);\n\n // dispatch own focus event for updating flyingfocus position correctly\n this.stzhFocus.emit({\n component: \"stzh-skiplink\",\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\n this.stzhBlur.emit({\n component: \"stzh-skiplink\",\n originalEvent: event\n });\n }\n\n componentDidRender() {\n requestAnimationFrame(() => {\n this.link.setAttribute(\"s-object-id\", this.analyticsId || this.label || this.text.innerText);\n });\n }\n\n render() {\n return (\n <Host focused={this.focused} tabindex=\"-1\" onFocus={this.onRootFocus}>\n <a\n ref={(el) => (this.link = el as HTMLAnchorElement)}\n class=\"stzh-skiplink\"\n href={this.href}\n accessKey={this.linkAccesskey}\n title={this.linkTitle}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n >\n <div ref={(el) => (this.text = el as HTMLDivElement)}>\n {this.label ? this.label : <slot></slot>}\n </div>\n </a>\n </Host>\n );\n }\n}\n"],"mappings":"gEAAA,MAAMA,EAAkB,uwD,MCyBXC,EAAY,M,iGA2CfC,KAAAC,eAA0B,MAE1BD,KAAAE,YAAc,KACpB,IAAKF,KAAKC,eAAgB,CACxBD,KAAKG,KAAKC,O,CAGZJ,KAAKC,eAAiB,KAAK,EAGrBD,KAAAK,QAAWC,IACjBN,KAAKC,eAAiB,KAGtB,MAAMM,EAAa,IAAIC,WAAW,QAAS,CACzCC,KAAMC,OACNC,QAAS,MACTC,WAAY,QAGdZ,KAAKa,QAAQC,cAAcP,GAG3BP,KAAKe,UAAUC,KAAK,CAClBC,UAAW,gBACXC,cAAeZ,GACf,EAGIN,KAAAmB,OAAUb,IAChB,MAAMc,EAAY,IAAIZ,WAAW,OAAQ,CACvCC,KAAMC,OACNC,QAAS,MACTC,WAAY,QAGdZ,KAAKa,QAAQC,cAAcM,GAE3BpB,KAAKqB,SAASL,KAAK,CACjBC,UAAW,gBACXC,cAAeZ,GACf,E,WAlFoB,G,kHAmBI,K,CAW5B,cAAAgB,GACEtB,KAAKuB,QAAU,I,CAIjB,eAAAC,GACExB,KAAKuB,QAAU,K,CAiDjB,kBAAAE,GACEC,uBAAsB,KACpB1B,KAAKG,KAAKwB,aAAa,cAAe3B,KAAK4B,aAAe5B,KAAK6B,OAAS7B,KAAK8B,KAAKC,UAAU,G,CAIhG,MAAAC,GACE,OACEC,EAACC,EAAI,CAACX,QAASvB,KAAKuB,QAASY,SAAS,KAAK9B,QAASL,KAAKE,aACvD+B,EAAA,KACEG,IAAMC,GAAQrC,KAAKG,KAAOkC,EAC1BC,MAAM,gBACNC,KAAMvC,KAAKuC,KACXC,UAAWxC,KAAKyC,cAChBC,MAAO1C,KAAK2C,UACZtC,QAASL,KAAKK,QACdc,OAAQnB,KAAKmB,QAEbc,EAAA,OAAKG,IAAMC,GAAQrC,KAAK8B,KAAOO,GAC5BrC,KAAK6B,MAAQ7B,KAAK6B,MAAQI,EAAA,e"}