@oiz/stzh-components 3.0.0-beta5 → 3.0.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 (450) hide show
  1. package/dist/cjs/{app-globals-82cc9313.js → app-globals-1d1f8f2e.js} +2 -2
  2. package/dist/cjs/{app-globals-82cc9313.js.map → app-globals-1d1f8f2e.js.map} +1 -1
  3. package/dist/cjs/index-92254d32.js +16 -8
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/stzh-actions.cjs.entry.js +8 -2
  6. package/dist/cjs/stzh-actions.cjs.entry.js.map +1 -1
  7. package/dist/cjs/stzh-badge_3.cjs.entry.js +1 -1
  8. package/dist/cjs/stzh-badge_3.cjs.entry.js.map +1 -1
  9. package/dist/cjs/stzh-breadcrumb_2.cjs.entry.js +1 -1
  10. package/dist/cjs/stzh-breadcrumb_2.cjs.entry.js.map +1 -1
  11. package/dist/cjs/stzh-card_3.cjs.entry.js +2 -0
  12. package/dist/cjs/stzh-card_3.cjs.entry.js.map +1 -1
  13. package/dist/cjs/stzh-carousel.cjs.entry.js +1 -2
  14. package/dist/cjs/stzh-carousel.cjs.entry.js.map +1 -1
  15. package/dist/cjs/stzh-chart.cjs.entry.js +1 -1
  16. package/dist/cjs/stzh-chart.cjs.entry.js.map +1 -1
  17. package/dist/cjs/stzh-checkboxgroup.cjs.entry.js +9 -10
  18. package/dist/cjs/stzh-checkboxgroup.cjs.entry.js.map +1 -1
  19. package/dist/cjs/stzh-components.cjs.js +2 -2
  20. package/dist/cjs/stzh-content.cjs.entry.js +1 -1
  21. package/dist/cjs/stzh-content.cjs.entry.js.map +1 -1
  22. package/dist/cjs/stzh-cspace.cjs.entry.js +1 -1
  23. package/dist/cjs/stzh-cspace.cjs.entry.js.map +1 -1
  24. package/dist/cjs/stzh-cta.cjs.entry.js +1 -1
  25. package/dist/cjs/stzh-cta.cjs.entry.js.map +1 -1
  26. package/dist/cjs/stzh-datalist_2.cjs.entry.js +1 -1
  27. package/dist/cjs/stzh-datalist_2.cjs.entry.js.map +1 -1
  28. package/dist/cjs/stzh-datepicker_3.cjs.entry.js +8 -10
  29. package/dist/cjs/stzh-datepicker_3.cjs.entry.js.map +1 -1
  30. package/dist/cjs/stzh-details.cjs.entry.js +162 -0
  31. package/dist/cjs/stzh-details.cjs.entry.js.map +1 -0
  32. package/dist/cjs/stzh-eventdata.cjs.entry.js +26 -0
  33. package/dist/cjs/stzh-eventdata.cjs.entry.js.map +1 -0
  34. package/dist/cjs/stzh-eventinfo.cjs.entry.js +43 -4
  35. package/dist/cjs/stzh-eventinfo.cjs.entry.js.map +1 -1
  36. package/dist/cjs/stzh-footer.cjs.entry.js +1 -1
  37. package/dist/cjs/stzh-footer.cjs.entry.js.map +1 -1
  38. package/dist/cjs/stzh-gallery.cjs.entry.js +1 -1
  39. package/dist/cjs/stzh-gallery.cjs.entry.js.map +1 -1
  40. package/dist/cjs/stzh-header.cjs.entry.js +0 -1
  41. package/dist/cjs/stzh-header.cjs.entry.js.map +1 -1
  42. package/dist/cjs/stzh-imagecomparison.cjs.entry.js +1 -1
  43. package/dist/cjs/stzh-imagecomparison.cjs.entry.js.map +1 -1
  44. package/dist/cjs/{stzh-details_2.cjs.entry.js → stzh-message.cjs.entry.js} +1 -155
  45. package/dist/cjs/stzh-message.cjs.entry.js.map +1 -0
  46. package/dist/cjs/stzh-monthyearpicker.cjs.entry.js +18 -2
  47. package/dist/cjs/stzh-monthyearpicker.cjs.entry.js.map +1 -1
  48. package/dist/cjs/stzh-pagebottom.cjs.entry.js.map +1 -1
  49. package/dist/cjs/stzh-pagetitle.cjs.entry.js +2 -1
  50. package/dist/cjs/stzh-pagetitle.cjs.entry.js.map +1 -1
  51. package/dist/cjs/stzh-popover_2.cjs.entry.js +1 -1
  52. package/dist/cjs/stzh-popover_2.cjs.entry.js.map +1 -1
  53. package/dist/cjs/stzh-readspeaker.cjs.entry.js +1 -1
  54. package/dist/cjs/stzh-readspeaker.cjs.entry.js.map +1 -1
  55. package/dist/cjs/stzh-search.cjs.entry.js +1 -1
  56. package/dist/cjs/stzh-search.cjs.entry.js.map +1 -1
  57. package/dist/cjs/stzh-skin-portal-mitwirken.cjs.entry.js +1 -1
  58. package/dist/cjs/stzh-skin-portal-mitwirken.cjs.entry.js.map +1 -1
  59. package/dist/cjs/stzh-textandimage.cjs.entry.js +3 -2
  60. package/dist/cjs/stzh-textandimage.cjs.entry.js.map +1 -1
  61. package/dist/collection/assets/i18n/de.json +3 -1
  62. package/dist/collection/assets/i18n/en.json +3 -1
  63. package/dist/collection/collection-manifest.json +1 -0
  64. package/dist/collection/components/stzh-accordion/stzh-accordion.css +3 -3
  65. package/dist/collection/components/stzh-accordion-item/stzh-accordion-item.css +3 -3
  66. package/dist/collection/components/stzh-actions/stzh-actions.css +27 -7
  67. package/dist/collection/components/stzh-actions/stzh-actions.js +8 -1
  68. package/dist/collection/components/stzh-actions/stzh-actions.js.map +1 -1
  69. package/dist/collection/components/stzh-actions/stzh-actions.stories.js +2 -2
  70. package/dist/collection/components/stzh-actionset/stzh-actionset.css +3 -3
  71. package/dist/collection/components/stzh-amount/stzh-amount.css +3 -3
  72. package/dist/collection/components/stzh-anchornav/stzh-anchornav.css +3 -3
  73. package/dist/collection/components/stzh-appointments/stzh-appointments.css +3 -3
  74. package/dist/collection/components/stzh-archivelist/stzh-archivelist.css +3 -3
  75. package/dist/collection/components/stzh-audio/stzh-audio.css +3 -3
  76. package/dist/collection/components/stzh-badge/stzh-badge.css +3 -3
  77. package/dist/collection/components/stzh-banner/stzh-banner.css +3 -3
  78. package/dist/collection/components/stzh-breadcrumb/stzh-breadcrumb.css +8 -3
  79. package/dist/collection/components/stzh-button/stzh-button.css +3 -3
  80. package/dist/collection/components/stzh-buttongroup/stzh-buttongroup.css +3 -3
  81. package/dist/collection/components/stzh-calendar/stzh-calendar.css +3 -3
  82. package/dist/collection/components/stzh-card/stzh-card.css +3 -3
  83. package/dist/collection/components/stzh-card-navigation/stzh-card-navigation.css +3 -3
  84. package/dist/collection/components/stzh-card-navigation/stzh-card-navigation.stories.js +1 -1
  85. package/dist/collection/components/stzh-card-searchresult/stzh-card-searchresult.css +3 -3
  86. package/dist/collection/components/stzh-card-superteaser/stzh-card-superteaser.css +3 -3
  87. package/dist/collection/components/stzh-cardlist/stzh-cardlist.css +3 -3
  88. package/dist/collection/components/stzh-carousel/stzh-carousel.css +8 -3
  89. package/dist/collection/components/stzh-carousel/stzh-carousel.js +0 -1
  90. package/dist/collection/components/stzh-carousel/stzh-carousel.js.map +1 -1
  91. package/dist/collection/components/stzh-cell/stzh-cell.css +3 -3
  92. package/dist/collection/components/stzh-chart/stzh-chart.css +6 -3
  93. package/dist/collection/components/stzh-checkbox/stzh-checkbox.css +3 -3
  94. package/dist/collection/components/stzh-checkboxgroup/stzh-checkboxgroup.css +3 -3
  95. package/dist/collection/components/stzh-checkboxgroup/stzh-checkboxgroup.js +9 -12
  96. package/dist/collection/components/stzh-checkboxgroup/stzh-checkboxgroup.js.map +1 -1
  97. package/dist/collection/components/stzh-checkboxgroup/stzh-checkboxgroup.stories.js +9 -0
  98. package/dist/collection/components/stzh-chip/stzh-chip.css +3 -3
  99. package/dist/collection/components/stzh-chipgroup/stzh-chipgroup.css +3 -3
  100. package/dist/collection/components/stzh-chipselect/stzh-chipselect.css +3 -3
  101. package/dist/collection/components/stzh-chipselect/stzh-chipselect.js +2 -0
  102. package/dist/collection/components/stzh-chipselect/stzh-chipselect.js.map +1 -1
  103. package/dist/collection/components/stzh-chipselect/stzh-chipselect.stories.js +2 -2
  104. package/dist/collection/components/stzh-clamp/stzh-clamp.css +3 -3
  105. package/dist/collection/components/stzh-contact/stzh-contact.css +3 -3
  106. package/dist/collection/components/stzh-container/stzh-container.css +3 -3
  107. package/dist/collection/components/stzh-content/stzh-content.css +7 -5
  108. package/dist/collection/components/stzh-cspace/stzh-cspace.css +9 -9
  109. package/dist/collection/components/stzh-cta/stzh-cta.css +8 -3
  110. package/dist/collection/components/stzh-datalist/stzh-datalist.css +3 -3
  111. package/dist/collection/components/stzh-datalist-item/stzh-datalist-item.css +9 -69
  112. package/dist/collection/components/stzh-datamessagelist/stzh-datamessagelist.css +3 -3
  113. package/dist/collection/components/stzh-datamessagelist-item/stzh-datamessagelist-item.css +3 -3
  114. package/dist/collection/components/stzh-datatable/stzh-datatable.css +3 -3
  115. package/dist/collection/components/stzh-datepicker/stzh-datepicker.css +3 -3
  116. package/dist/collection/components/stzh-daterange/stzh-daterange.css +3 -3
  117. package/dist/collection/components/stzh-details/stzh-details.css +3 -3
  118. package/dist/collection/components/stzh-dialog/stzh-dialog.css +3 -3
  119. package/dist/collection/components/stzh-disturber/stzh-disturber.css +3 -3
  120. package/dist/collection/components/stzh-dropdown/stzh-dropdown.css +3 -3
  121. package/dist/collection/components/stzh-editor/stzh-editor.css +3 -3
  122. package/dist/collection/components/stzh-eventdata/stzh-eventdata.css +210 -0
  123. package/dist/collection/components/stzh-eventdata/stzh-eventdata.e2e.js +18 -0
  124. package/dist/collection/components/stzh-eventdata/stzh-eventdata.e2e.js.map +1 -0
  125. package/dist/collection/components/stzh-eventdata/stzh-eventdata.js +52 -0
  126. package/dist/collection/components/stzh-eventdata/stzh-eventdata.js.map +1 -0
  127. package/dist/collection/components/stzh-eventdata/stzh-eventdata.stories.js +44 -0
  128. package/dist/collection/components/stzh-eventinfo/stzh-eventinfo.css +157 -12
  129. package/dist/collection/components/stzh-eventinfo/stzh-eventinfo.js +122 -4
  130. package/dist/collection/components/stzh-eventinfo/stzh-eventinfo.js.map +1 -1
  131. package/dist/collection/components/stzh-eventinfo/stzh-eventinfo.localization.js.map +1 -1
  132. package/dist/collection/components/stzh-eventinfo/stzh-eventinfo.stories.js +14 -1
  133. package/dist/collection/components/stzh-fieldset/stzh-fieldset.css +3 -3
  134. package/dist/collection/components/stzh-figure/stzh-figure.css +3 -3
  135. package/dist/collection/components/stzh-flyingfocus/stzh-flyingfocus.css +3 -3
  136. package/dist/collection/components/stzh-footer/stzh-footer.css +7 -4
  137. package/dist/collection/components/stzh-gallery/stzh-gallery.css +9 -3
  138. package/dist/collection/components/stzh-ghettobox/stzh-ghettobox.css +3 -3
  139. package/dist/collection/components/stzh-header/stzh-header.css +3 -3
  140. package/dist/collection/components/stzh-header/stzh-header.js +0 -1
  141. package/dist/collection/components/stzh-header/stzh-header.js.map +1 -1
  142. package/dist/collection/components/stzh-heading/stzh-heading.css +3 -3
  143. package/dist/collection/components/stzh-hr/stzh-hr.css +3 -3
  144. package/dist/collection/components/stzh-hspace/stzh-hspace.css +3 -3
  145. package/dist/collection/components/stzh-icon/stzh-icon.css +9 -3
  146. package/dist/collection/components/stzh-iframe/stzh-iframe.css +3 -3
  147. package/dist/collection/components/stzh-imagecomparison/stzh-imagecomparison.css +10 -3
  148. package/dist/collection/components/stzh-input/stzh-input.css +3 -3
  149. package/dist/collection/components/stzh-invert/stzh-invert.css +3 -3
  150. package/dist/collection/components/stzh-link/stzh-link.css +3 -3
  151. package/dist/collection/components/stzh-list/stzh-list.css +3 -3
  152. package/dist/collection/components/stzh-list-item/stzh-list-item.css +3 -3
  153. package/dist/collection/components/stzh-loader/stzh-loader.css +3 -3
  154. package/dist/collection/components/stzh-loadingbar/stzh-loadingbar.css +3 -3
  155. package/dist/collection/components/stzh-menu/stzh-menu.css +3 -3
  156. package/dist/collection/components/stzh-menu-item/stzh-menu-item.css +3 -3
  157. package/dist/collection/components/stzh-message/stzh-message.css +3 -3
  158. package/dist/collection/components/stzh-microsite-teaserlist/stzh-microsite-teaserlist.css +3 -3
  159. package/dist/collection/components/stzh-monthyearpicker/stzh-monthyearpicker.css +3 -3
  160. package/dist/collection/components/stzh-monthyearpicker/stzh-monthyearpicker.js +36 -4
  161. package/dist/collection/components/stzh-monthyearpicker/stzh-monthyearpicker.js.map +1 -1
  162. package/dist/collection/components/stzh-olmap/stzh-olmap.css +3 -3
  163. package/dist/collection/components/stzh-overlay/stzh-overlay.css +3 -3
  164. package/dist/collection/components/stzh-page-skiplinks/stzh-page-skiplinks.css +3 -3
  165. package/dist/collection/components/stzh-pagebottom/stzh-pagebottom.css +3 -3
  166. package/dist/collection/components/stzh-pagebottom/stzh-pagebottom.js +0 -1
  167. package/dist/collection/components/stzh-pagebottom/stzh-pagebottom.js.map +1 -1
  168. package/dist/collection/components/stzh-pagecontent/stzh-pagecontent.css +3 -3
  169. package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.css +3 -3
  170. package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.js +2 -1
  171. package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.js.map +1 -1
  172. package/dist/collection/components/stzh-pagetitle-hero/stzh-pagetitle-hero.css +3 -3
  173. package/dist/collection/components/stzh-pagination/stzh-pagination.css +3 -3
  174. package/dist/collection/components/stzh-panorama/stzh-panorama.css +3 -3
  175. package/dist/collection/components/stzh-popover/stzh-popover.css +3 -3
  176. package/dist/collection/components/stzh-print/stzh-print.css +3 -3
  177. package/dist/collection/components/stzh-progressbar/stzh-progressbar.css +3 -3
  178. package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.css +3 -3
  179. package/dist/collection/components/stzh-radio/stzh-radio.css +3 -3
  180. package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.css +3 -3
  181. package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.js +8 -12
  182. package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.js.map +1 -1
  183. package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.stories.js +10 -0
  184. package/dist/collection/components/stzh-ratio/stzh-ratio.css +3 -3
  185. package/dist/collection/components/stzh-readspeaker/stzh-readspeaker.css +8 -3
  186. package/dist/collection/components/stzh-richtext/stzh-richtext.css +3 -3
  187. package/dist/collection/components/stzh-row/stzh-row.css +3 -3
  188. package/dist/collection/components/stzh-saptcha/stzh-saptcha.css +3 -3
  189. package/dist/collection/components/stzh-scrollup/stzh-scrollup.css +3 -3
  190. package/dist/collection/components/stzh-search/stzh-search.css +6 -5
  191. package/dist/collection/components/stzh-section/stzh-section.css +3 -3
  192. package/dist/collection/components/stzh-share/stzh-share.css +3 -3
  193. package/dist/collection/components/stzh-show/stzh-show.css +3 -3
  194. package/dist/collection/components/stzh-sitemap/stzh-sitemap.css +3 -3
  195. package/dist/collection/components/stzh-skin-portal-mitwirken/stzh-skin-portal-mitwirken.css +18 -3
  196. package/dist/collection/components/stzh-skin-storybook-preview/stzh-skin-storybook-preview.css +3 -3
  197. package/dist/collection/components/stzh-skiplink/stzh-skiplink.css +3 -3
  198. package/dist/collection/components/stzh-sortable/stzh-sortable.css +3 -3
  199. package/dist/collection/components/stzh-space/stzh-space.css +3 -3
  200. package/dist/collection/components/stzh-status/stzh-status.css +3 -3
  201. package/dist/collection/components/stzh-sticky/stzh-sticky.css +3 -3
  202. package/dist/collection/components/stzh-sticky-actions/stzh-sticky-actions.css +3 -3
  203. package/dist/collection/components/stzh-table/stzh-table.css +3 -3
  204. package/dist/collection/components/stzh-tag/stzh-tag.css +3 -3
  205. package/dist/collection/components/stzh-text/stzh-text.css +4 -4
  206. package/dist/collection/components/stzh-textandimage/stzh-textandimage.css +9 -3
  207. package/dist/collection/components/stzh-textandimage/stzh-textandimage.js +2 -1
  208. package/dist/collection/components/stzh-textandimage/stzh-textandimage.js.map +1 -1
  209. package/dist/collection/components/stzh-textandimage/stzh-textandimage.stories.js +2 -0
  210. package/dist/collection/components/stzh-timeline/stzh-timeline.css +3 -3
  211. package/dist/collection/components/stzh-timeline-item/stzh-timeline-item.css +3 -3
  212. package/dist/collection/components/stzh-timepicker/stzh-timepicker.css +3 -3
  213. package/dist/collection/components/stzh-toast/stzh-toast.css +3 -3
  214. package/dist/collection/components/stzh-toastbar/stzh-toastbar.css +3 -3
  215. package/dist/collection/components/stzh-toggle/stzh-toggle.css +3 -3
  216. package/dist/collection/components/stzh-tooltip/stzh-tooltip.css +3 -3
  217. package/dist/collection/components/stzh-twocolumns/stzh-twocolumns.css +3 -3
  218. package/dist/collection/components/stzh-upload/stzh-upload.css +3 -3
  219. package/dist/collection/components/stzh-vbz-carousel/stzh-vbz-carousel.css +3 -3
  220. package/dist/collection/components/stzh-vbz-linechip/stzh-vbz-linechip.css +3 -3
  221. package/dist/collection/components/stzh-vbz-majorticker/stzh-vbz-majorticker.css +3 -3
  222. package/dist/collection/components/stzh-vbz-ticker/stzh-vbz-ticker.css +3 -3
  223. package/dist/collection/components/stzh-visuallyhidden/stzh-visuallyhidden.css +3 -3
  224. package/dist/collection/components/stzh-vspace/stzh-vspace.css +3 -3
  225. package/dist/collection/components/stzh-youtube/stzh-youtube.css +3 -3
  226. package/dist/collection/pages/website/website.e2e.js +1 -1
  227. package/dist/collection/pages/website/website.e2e.js.map +1 -1
  228. package/dist/components/index.js +1 -1
  229. package/dist/components/stzh-actions.js +8 -2
  230. package/dist/components/stzh-actions.js.map +1 -1
  231. package/dist/components/stzh-breadcrumb2.js +1 -1
  232. package/dist/components/stzh-breadcrumb2.js.map +1 -1
  233. package/dist/components/stzh-carousel2.js +1 -2
  234. package/dist/components/stzh-carousel2.js.map +1 -1
  235. package/dist/components/stzh-chart.js +1 -1
  236. package/dist/components/stzh-chart.js.map +1 -1
  237. package/dist/components/stzh-checkboxgroup.js +10 -12
  238. package/dist/components/stzh-checkboxgroup.js.map +1 -1
  239. package/dist/components/stzh-chipselect2.js +2 -0
  240. package/dist/components/stzh-chipselect2.js.map +1 -1
  241. package/dist/components/stzh-content.js +1 -1
  242. package/dist/components/stzh-content.js.map +1 -1
  243. package/dist/components/stzh-cspace.js +1 -1
  244. package/dist/components/stzh-cspace.js.map +1 -1
  245. package/dist/components/stzh-cta.js +1 -1
  246. package/dist/components/stzh-cta.js.map +1 -1
  247. package/dist/components/stzh-datalist-item2.js +1 -1
  248. package/dist/components/stzh-datalist-item2.js.map +1 -1
  249. package/dist/components/stzh-eventdata.d.ts +11 -0
  250. package/dist/components/stzh-eventdata.js +41 -0
  251. package/dist/components/stzh-eventdata.js.map +1 -0
  252. package/dist/components/stzh-eventinfo.js +50 -8
  253. package/dist/components/stzh-eventinfo.js.map +1 -1
  254. package/dist/components/stzh-footer.js +1 -1
  255. package/dist/components/stzh-footer.js.map +1 -1
  256. package/dist/components/stzh-gallery.js +1 -1
  257. package/dist/components/stzh-gallery.js.map +1 -1
  258. package/dist/components/stzh-header.js +0 -1
  259. package/dist/components/stzh-header.js.map +1 -1
  260. package/dist/components/stzh-icon2.js +1 -1
  261. package/dist/components/stzh-icon2.js.map +1 -1
  262. package/dist/components/stzh-imagecomparison.js +1 -1
  263. package/dist/components/stzh-imagecomparison.js.map +1 -1
  264. package/dist/components/stzh-monthyearpicker.js +19 -2
  265. package/dist/components/stzh-monthyearpicker.js.map +1 -1
  266. package/dist/components/stzh-pagebottom.js.map +1 -1
  267. package/dist/components/stzh-pagetitle.js +2 -1
  268. package/dist/components/stzh-pagetitle.js.map +1 -1
  269. package/dist/components/stzh-radiogroup2.js +8 -11
  270. package/dist/components/stzh-radiogroup2.js.map +1 -1
  271. package/dist/components/stzh-readspeaker.js +1 -1
  272. package/dist/components/stzh-readspeaker.js.map +1 -1
  273. package/dist/components/stzh-search.js +1 -1
  274. package/dist/components/stzh-search.js.map +1 -1
  275. package/dist/components/stzh-skin-portal-mitwirken.js +1 -1
  276. package/dist/components/stzh-skin-portal-mitwirken.js.map +1 -1
  277. package/dist/components/stzh-text2.js +1 -1
  278. package/dist/components/stzh-text2.js.map +1 -1
  279. package/dist/components/stzh-textandimage.js +3 -2
  280. package/dist/components/stzh-textandimage.js.map +1 -1
  281. package/dist/esm/{app-globals-d7eff0a5.js → app-globals-f9c4987b.js} +2 -2
  282. package/dist/esm/{app-globals-d7eff0a5.js.map → app-globals-f9c4987b.js.map} +1 -1
  283. package/dist/esm/index-e3050b18.js +16 -8
  284. package/dist/esm/loader.js +2 -2
  285. package/dist/esm/stzh-actions.entry.js +8 -2
  286. package/dist/esm/stzh-actions.entry.js.map +1 -1
  287. package/dist/esm/stzh-badge_3.entry.js +1 -1
  288. package/dist/esm/stzh-badge_3.entry.js.map +1 -1
  289. package/dist/esm/stzh-breadcrumb_2.entry.js +1 -1
  290. package/dist/esm/stzh-breadcrumb_2.entry.js.map +1 -1
  291. package/dist/esm/stzh-card_3.entry.js +2 -0
  292. package/dist/esm/stzh-card_3.entry.js.map +1 -1
  293. package/dist/esm/stzh-carousel.entry.js +1 -2
  294. package/dist/esm/stzh-carousel.entry.js.map +1 -1
  295. package/dist/esm/stzh-chart.entry.js +1 -1
  296. package/dist/esm/stzh-chart.entry.js.map +1 -1
  297. package/dist/esm/stzh-checkboxgroup.entry.js +9 -10
  298. package/dist/esm/stzh-checkboxgroup.entry.js.map +1 -1
  299. package/dist/esm/stzh-components.js +2 -2
  300. package/dist/esm/stzh-content.entry.js +1 -1
  301. package/dist/esm/stzh-content.entry.js.map +1 -1
  302. package/dist/esm/stzh-cspace.entry.js +1 -1
  303. package/dist/esm/stzh-cspace.entry.js.map +1 -1
  304. package/dist/esm/stzh-cta.entry.js +1 -1
  305. package/dist/esm/stzh-cta.entry.js.map +1 -1
  306. package/dist/esm/stzh-datalist_2.entry.js +1 -1
  307. package/dist/esm/stzh-datalist_2.entry.js.map +1 -1
  308. package/dist/esm/stzh-datepicker_3.entry.js +8 -10
  309. package/dist/esm/stzh-datepicker_3.entry.js.map +1 -1
  310. package/dist/esm/stzh-details.entry.js +158 -0
  311. package/dist/esm/stzh-details.entry.js.map +1 -0
  312. package/dist/esm/stzh-eventdata.entry.js +22 -0
  313. package/dist/esm/stzh-eventdata.entry.js.map +1 -0
  314. package/dist/esm/stzh-eventinfo.entry.js +43 -4
  315. package/dist/esm/stzh-eventinfo.entry.js.map +1 -1
  316. package/dist/esm/stzh-footer.entry.js +1 -1
  317. package/dist/esm/stzh-footer.entry.js.map +1 -1
  318. package/dist/esm/stzh-gallery.entry.js +1 -1
  319. package/dist/esm/stzh-gallery.entry.js.map +1 -1
  320. package/dist/esm/stzh-header.entry.js +0 -1
  321. package/dist/esm/stzh-header.entry.js.map +1 -1
  322. package/dist/esm/stzh-imagecomparison.entry.js +1 -1
  323. package/dist/esm/stzh-imagecomparison.entry.js.map +1 -1
  324. package/dist/esm/{stzh-details_2.entry.js → stzh-message.entry.js} +2 -155
  325. package/dist/esm/stzh-message.entry.js.map +1 -0
  326. package/dist/esm/stzh-monthyearpicker.entry.js +18 -2
  327. package/dist/esm/stzh-monthyearpicker.entry.js.map +1 -1
  328. package/dist/esm/stzh-pagebottom.entry.js.map +1 -1
  329. package/dist/esm/stzh-pagetitle.entry.js +2 -1
  330. package/dist/esm/stzh-pagetitle.entry.js.map +1 -1
  331. package/dist/esm/stzh-popover_2.entry.js +1 -1
  332. package/dist/esm/stzh-popover_2.entry.js.map +1 -1
  333. package/dist/esm/stzh-readspeaker.entry.js +1 -1
  334. package/dist/esm/stzh-readspeaker.entry.js.map +1 -1
  335. package/dist/esm/stzh-search.entry.js +1 -1
  336. package/dist/esm/stzh-search.entry.js.map +1 -1
  337. package/dist/esm/stzh-skin-portal-mitwirken.entry.js +1 -1
  338. package/dist/esm/stzh-skin-portal-mitwirken.entry.js.map +1 -1
  339. package/dist/esm/stzh-textandimage.entry.js +3 -2
  340. package/dist/esm/stzh-textandimage.entry.js.map +1 -1
  341. package/dist/stzh-components/assets/i18n/de.json +3 -1
  342. package/dist/stzh-components/assets/i18n/en.json +3 -1
  343. package/dist/stzh-components/p-14177ccb.entry.js +2 -0
  344. package/dist/stzh-components/p-14177ccb.entry.js.map +1 -0
  345. package/dist/stzh-components/p-161ae3d1.entry.js +2 -0
  346. package/dist/stzh-components/p-161ae3d1.entry.js.map +1 -0
  347. package/dist/stzh-components/{p-93721591.entry.js → p-1a19bc6e.entry.js} +2 -2
  348. package/dist/stzh-components/p-1a19bc6e.entry.js.map +1 -0
  349. package/dist/stzh-components/p-1a3dcde3.entry.js +2 -0
  350. package/dist/stzh-components/p-1a3dcde3.entry.js.map +1 -0
  351. package/dist/stzh-components/p-2096f3c6.entry.js +2 -0
  352. package/dist/stzh-components/p-2096f3c6.entry.js.map +1 -0
  353. package/dist/stzh-components/p-27d5ad01.entry.js +2 -0
  354. package/dist/stzh-components/p-27d5ad01.entry.js.map +1 -0
  355. package/dist/stzh-components/p-3f0d3919.entry.js +2 -0
  356. package/dist/stzh-components/p-3f0d3919.entry.js.map +1 -0
  357. package/dist/stzh-components/p-429d2a9b.entry.js +2 -0
  358. package/dist/stzh-components/p-429d2a9b.entry.js.map +1 -0
  359. package/dist/stzh-components/{p-e5cfdb8a.entry.js → p-5b1bc446.entry.js} +2 -2
  360. package/dist/stzh-components/{p-e5cfdb8a.entry.js.map → p-5b1bc446.entry.js.map} +1 -1
  361. package/dist/stzh-components/{p-0aabd857.entry.js → p-663f31a2.entry.js} +2 -2
  362. package/dist/stzh-components/p-663f31a2.entry.js.map +1 -0
  363. package/dist/stzh-components/{p-1be90089.entry.js → p-6f87ad6e.entry.js} +2 -2
  364. package/dist/stzh-components/{p-1be90089.entry.js.map → p-6f87ad6e.entry.js.map} +1 -1
  365. package/dist/stzh-components/p-7aac960b.entry.js +2 -0
  366. package/dist/stzh-components/p-7aac960b.entry.js.map +1 -0
  367. package/dist/stzh-components/p-8f19c3ec.entry.js +2 -0
  368. package/dist/stzh-components/p-8f19c3ec.entry.js.map +1 -0
  369. package/dist/stzh-components/p-91b360c9.entry.js +2 -0
  370. package/dist/stzh-components/{p-d028e43d.entry.js.map → p-91b360c9.entry.js.map} +1 -1
  371. package/dist/stzh-components/p-91d7c08d.entry.js +2 -0
  372. package/dist/stzh-components/p-91d7c08d.entry.js.map +1 -0
  373. package/dist/stzh-components/{p-f2ec1ede.entry.js → p-929c5234.entry.js} +2 -2
  374. package/dist/stzh-components/{p-f2ec1ede.entry.js.map → p-929c5234.entry.js.map} +1 -1
  375. package/dist/stzh-components/p-94947ab0.entry.js.map +1 -1
  376. package/dist/stzh-components/p-97df1d9f.entry.js +2 -0
  377. package/dist/stzh-components/p-97df1d9f.entry.js.map +1 -0
  378. package/dist/stzh-components/{p-9f9d53a0.entry.js → p-9b19785c.entry.js} +2 -2
  379. package/dist/stzh-components/p-9b19785c.entry.js.map +1 -0
  380. package/dist/stzh-components/{p-1a50b64a.entry.js → p-ab2aee99.entry.js} +2 -2
  381. package/dist/stzh-components/{p-1a50b64a.entry.js.map → p-ab2aee99.entry.js.map} +1 -1
  382. package/dist/stzh-components/p-af7562ba.entry.js +2 -0
  383. package/dist/stzh-components/p-af7562ba.entry.js.map +1 -0
  384. package/dist/stzh-components/{p-0bf70420.entry.js → p-af87b81a.entry.js} +2 -2
  385. package/dist/stzh-components/p-af87b81a.entry.js.map +1 -0
  386. package/dist/stzh-components/p-c9eecee7.entry.js +2 -0
  387. package/dist/stzh-components/p-c9eecee7.entry.js.map +1 -0
  388. package/dist/stzh-components/{p-3fa1c5a4.entry.js → p-ee82f53c.entry.js} +2 -2
  389. package/dist/stzh-components/{p-3fa1c5a4.entry.js.map → p-ee82f53c.entry.js.map} +1 -1
  390. package/dist/stzh-components/p-ef849bb1.entry.js +2 -0
  391. package/dist/stzh-components/p-ef849bb1.entry.js.map +1 -0
  392. package/dist/stzh-components/p-f06b2737.js +2 -0
  393. package/dist/stzh-components/{p-05e8c18d.js.map → p-f06b2737.js.map} +1 -1
  394. package/dist/stzh-components/{p-55cdd473.entry.js → p-f692c5d0.entry.js} +2 -2
  395. package/dist/stzh-components/p-f692c5d0.entry.js.map +1 -0
  396. package/dist/stzh-components/p-f7979f2a.entry.js +2 -0
  397. package/dist/stzh-components/p-f7979f2a.entry.js.map +1 -0
  398. package/dist/stzh-components/p-fdd6e755.entry.js +2 -0
  399. package/dist/stzh-components/p-fdd6e755.entry.js.map +1 -0
  400. package/dist/stzh-components/stzh-components.css +1 -1
  401. package/dist/stzh-components/stzh-components.esm.js +1 -1
  402. package/dist/stzh-components/stzh-components.esm.js.map +1 -1
  403. package/dist/types/components/stzh-actions/stzh-actions.d.ts +1 -0
  404. package/dist/types/components/stzh-checkboxgroup/stzh-checkboxgroup.d.ts +1 -1
  405. package/dist/types/components/stzh-eventdata/stzh-eventdata.d.ts +10 -0
  406. package/dist/types/components/stzh-eventinfo/stzh-eventinfo.d.ts +15 -1
  407. package/dist/types/components/stzh-eventinfo/stzh-eventinfo.localization.d.ts +2 -0
  408. package/dist/types/components/stzh-monthyearpicker/stzh-monthyearpicker.d.ts +3 -2
  409. package/dist/types/components/stzh-pagebottom/stzh-pagebottom.d.ts +0 -1
  410. package/dist/types/components/stzh-radiogroup/stzh-radiogroup.d.ts +1 -1
  411. package/dist/types/components.d.ts +61 -0
  412. package/dist/vscode-data.json +41 -0
  413. package/package.json +1 -1
  414. package/dist/cjs/stzh-details_2.cjs.entry.js.map +0 -1
  415. package/dist/esm/stzh-details_2.entry.js.map +0 -1
  416. package/dist/stzh-components/p-05e8c18d.js +0 -2
  417. package/dist/stzh-components/p-0aabd857.entry.js.map +0 -1
  418. package/dist/stzh-components/p-0bf70420.entry.js.map +0 -1
  419. package/dist/stzh-components/p-3c2d9cff.entry.js +0 -2
  420. package/dist/stzh-components/p-3c2d9cff.entry.js.map +0 -1
  421. package/dist/stzh-components/p-3cd1696a.entry.js +0 -2
  422. package/dist/stzh-components/p-3cd1696a.entry.js.map +0 -1
  423. package/dist/stzh-components/p-400f2932.entry.js +0 -2
  424. package/dist/stzh-components/p-400f2932.entry.js.map +0 -1
  425. package/dist/stzh-components/p-55cdd473.entry.js.map +0 -1
  426. package/dist/stzh-components/p-5f5d14cb.entry.js +0 -2
  427. package/dist/stzh-components/p-5f5d14cb.entry.js.map +0 -1
  428. package/dist/stzh-components/p-836c4cdf.entry.js +0 -2
  429. package/dist/stzh-components/p-836c4cdf.entry.js.map +0 -1
  430. package/dist/stzh-components/p-93721591.entry.js.map +0 -1
  431. package/dist/stzh-components/p-9f9d53a0.entry.js.map +0 -1
  432. package/dist/stzh-components/p-accbac61.entry.js +0 -2
  433. package/dist/stzh-components/p-accbac61.entry.js.map +0 -1
  434. package/dist/stzh-components/p-bd2a2c30.entry.js +0 -2
  435. package/dist/stzh-components/p-bd2a2c30.entry.js.map +0 -1
  436. package/dist/stzh-components/p-beec9a0a.entry.js +0 -2
  437. package/dist/stzh-components/p-beec9a0a.entry.js.map +0 -1
  438. package/dist/stzh-components/p-c774915c.entry.js +0 -2
  439. package/dist/stzh-components/p-c774915c.entry.js.map +0 -1
  440. package/dist/stzh-components/p-d028e43d.entry.js +0 -2
  441. package/dist/stzh-components/p-d56d5fe9.entry.js +0 -2
  442. package/dist/stzh-components/p-d56d5fe9.entry.js.map +0 -1
  443. package/dist/stzh-components/p-ddfb8df0.entry.js +0 -2
  444. package/dist/stzh-components/p-ddfb8df0.entry.js.map +0 -1
  445. package/dist/stzh-components/p-e10aa7bd.entry.js +0 -2
  446. package/dist/stzh-components/p-e10aa7bd.entry.js.map +0 -1
  447. package/dist/stzh-components/p-f50e0102.entry.js +0 -2
  448. package/dist/stzh-components/p-f50e0102.entry.js.map +0 -1
  449. package/dist/stzh-components/p-f86e53a0.entry.js +0 -2
  450. package/dist/stzh-components/p-f86e53a0.entry.js.map +0 -1
@@ -27,6 +27,9 @@
27
27
  /**
28
28
  * Header
29
29
  */
30
+ /**
31
+ * Footer
32
+ */
30
33
  /**
31
34
  * Fieldset
32
35
  */
@@ -57,9 +60,6 @@
57
60
  /**
58
61
  * Tooltips
59
62
  */
60
- /**
61
- * Header
62
- */
63
63
  /**
64
64
  * Dialogs / Popover
65
65
  */
@@ -160,28 +160,161 @@
160
160
  }
161
161
 
162
162
  .stzh-eventinfo {
163
- font-size: var(--stzh-font-curve-p1-default-font-size, var(--stzh-font-milli-font-size));
164
- line-height: var(--stzh-font-curve-p1-default-text-line-height, var(--stzh-font-milli-text-line-height));
165
- letter-spacing: var(--stzh-font-curve-p1-default-text-letter-spacing);
163
+ display: flex;
164
+ }
165
+ .stzh-eventinfo__left {
166
+ font-size: var(--stzh-font-nano-font-size);
167
+ line-height: var(--stzh-font-nano-text-line-height);
168
+ flex-shrink: 0;
169
+ text-transform: uppercase;
170
+ display: flex;
171
+ flex-direction: column;
172
+ align-items: center;
173
+ color: var(--stzh-color-black);
174
+ background-color: var(--stzh-color-secondary30);
175
+ padding-top: var(--stzh-space-small);
176
+ width: 4.5rem;
177
+ }
178
+ @media screen and (min-width: 600px) {
179
+ .stzh-eventinfo__left {
180
+ width: 5.5rem;
181
+ }
182
+ }
183
+ .stzh-eventinfo__main-event-day {
184
+ font-family: var(--stzh-font-family-heavy);
185
+ font-weight: var(--stzh-font-weight-heavy);
186
+ font-style: var(--stzh-font-style-heavy);
187
+ font-size: var(--stzh-font-hecto-font-size);
188
+ line-height: var(--stzh-font-hecto-text-line-height);
189
+ letter-spacing: var(--stzh-font-hecto-text-letter-spacing);
190
+ color: var(--stzh-color-primary70);
191
+ margin-top: -0.4375rem;
192
+ margin-bottom: -0.4375rem;
193
+ }
194
+ .stzh-eventinfo__right {
195
+ font-size: var(--stzh-font-centi-font-size);
196
+ line-height: var(--stzh-font-centi-text-line-height);
197
+ letter-spacing: var(--stzh-font-curve---text-letter-spacing);
198
+ flex-grow: 1;
166
199
  color: var(--stzh-color-grey80);
200
+ background-color: var(--stzh-color-grey10);
201
+ padding-top: var(--stzh-space-small);
202
+ padding-bottom: var(--stzh-space-medium);
203
+ padding-left: var(--stzh-space-small);
204
+ padding-right: var(--stzh-space-medium);
205
+ }
206
+ @media screen and (min-width: 600px) {
207
+ .stzh-eventinfo__right {
208
+ padding-left: var(--stzh-space-xlarge);
209
+ padding-right: var(--stzh-space-xlarge);
210
+ }
167
211
  }
168
212
  @media screen and (min-width: 900px) {
169
- .stzh-eventinfo {
170
- font-size: var(--stzh-font-curve-p1-medium-font-size, var(--stzh-font-centi-font-size));
171
- line-height: var(--stzh-font-curve-p1-medium-text-line-height, var(--stzh-font-centi-text-line-height));
172
- letter-spacing: var(--stzh-font-curve-p1-medium-text-letter-spacing);
213
+ .stzh-eventinfo__right {
214
+ padding-top: var(--stzh-space-medium);
215
+ padding-bottom: var(--stzh-space-large);
216
+ }
217
+ }
218
+ @media screen and (min-width: 1260px) {
219
+ .stzh-eventinfo__right {
220
+ padding-top: var(--stzh-space-large);
221
+ padding-bottom: var(--stzh-space-xlarge);
222
+ }
223
+ }
224
+ .stzh-eventinfo__head {
225
+ display: flex;
226
+ flex-direction: column;
227
+ -moz-column-gap: var(--stzh-space-large);
228
+ column-gap: var(--stzh-space-large);
229
+ }
230
+ @media screen and (min-width: 900px) {
231
+ .stzh-eventinfo__head {
232
+ flex-direction: row;
233
+ justify-content: space-between;
234
+ }
235
+ }
236
+ .stzh-eventinfo__main-date {
237
+ display: flex;
238
+ -moz-column-gap: var(--stzh-space-medium);
239
+ column-gap: var(--stzh-space-medium);
240
+ flex-wrap: wrap;
241
+ }
242
+ .stzh-eventinfo__main-event-link {
243
+ flex-shrink: 0;
244
+ }
245
+ .stzh-eventinfo__text {
246
+ display: flex;
247
+ flex-direction: column;
248
+ row-gap: var(--stzh-space-medium);
249
+ -moz-column-gap: var(--stzh-space-large);
250
+ column-gap: var(--stzh-space-large);
251
+ margin-top: var(--stzh-space-medium);
252
+ }
253
+ @media screen and (min-width: 900px) {
254
+ .stzh-eventinfo__text {
255
+ margin-top: var(--stzh-space-xsmall);
256
+ }
257
+ }
258
+ @media screen and (min-width: 900px) and (min-width: 900px) {
259
+ .stzh-eventinfo__text {
260
+ margin-top: var(--stzh-space-small);
261
+ }
262
+ }
263
+ @media screen and (min-width: 900px) and (min-width: 1260px) {
264
+ .stzh-eventinfo__text {
265
+ margin-top: var(--stzh-space-medium);
266
+ }
267
+ }
268
+ .stzh-eventinfo__details-wrapper {
269
+ margin-top: var(--stzh-space-medium);
270
+ }
271
+ @media screen and (min-width: 900px) {
272
+ .stzh-eventinfo__details-wrapper {
273
+ margin-top: var(--stzh-space-xsmall);
274
+ }
275
+ }
276
+ @media screen and (min-width: 900px) and (min-width: 900px) {
277
+ .stzh-eventinfo__details-wrapper {
278
+ margin-top: var(--stzh-space-small);
279
+ }
280
+ }
281
+ @media screen and (min-width: 900px) and (min-width: 1260px) {
282
+ .stzh-eventinfo__details-wrapper {
283
+ margin-top: var(--stzh-space-medium);
173
284
  }
174
285
  }
286
+ .stzh-eventinfo__details {
287
+ color: inherit;
288
+ }
289
+ .stzh-eventinfo__details-link-collapse {
290
+ display: none;
291
+ }
292
+ .stzh-eventinfo__details-link[a11y-expanded]:not([a11y-expanded=false]) .stzh-eventinfo__details-link-collapse {
293
+ display: block;
294
+ }
295
+ .stzh-eventinfo__details-link[a11y-expanded]:not([a11y-expanded=false]) .stzh-eventinfo__details-link-expand {
296
+ display: none;
297
+ }
175
298
  .stzh-eventinfo__month-list, .stzh-eventinfo__event-list {
176
299
  list-style: none;
177
300
  margin: 0;
178
301
  padding: 0;
179
302
  }
180
303
  .stzh-eventinfo__month-list {
304
+ font-size: var(--stzh-font-curve-p1-default-font-size, var(--stzh-font-milli-font-size));
305
+ line-height: var(--stzh-font-curve-p1-default-text-line-height, var(--stzh-font-milli-text-line-height));
306
+ letter-spacing: var(--stzh-font-curve-p1-default-text-letter-spacing);
181
307
  display: grid;
182
308
  -moz-column-gap: var(--stzh-space-small);
183
309
  column-gap: var(--stzh-space-small);
184
310
  }
311
+ @media screen and (min-width: 900px) {
312
+ .stzh-eventinfo__month-list {
313
+ font-size: var(--stzh-font-curve-p1-medium-font-size, var(--stzh-font-centi-font-size));
314
+ line-height: var(--stzh-font-curve-p1-medium-text-line-height, var(--stzh-font-centi-text-line-height));
315
+ letter-spacing: var(--stzh-font-curve-p1-medium-text-letter-spacing);
316
+ }
317
+ }
185
318
  @media screen and (min-width: 600px) {
186
319
  .stzh-eventinfo__month-list {
187
320
  grid-template-columns: minmax(0, 1fr) auto;
@@ -189,7 +322,9 @@
189
322
  }
190
323
  @media screen and (min-width: 900px) {
191
324
  .stzh-eventinfo__month-list {
192
- grid-template-columns: minmax(calc(9.375rem - var(--stzh-space-small)), auto) minmax(calc(12.5rem - var(--stzh-space-small)), auto) minmax(0, 1fr) auto;
325
+ -moz-column-gap: var(--stzh-space-xxlarge);
326
+ column-gap: var(--stzh-space-xxlarge);
327
+ grid-template-columns: minmax(6.25rem, auto) minmax(11.25rem, auto) minmax(0, 1fr) auto;
193
328
  }
194
329
  }
195
330
  .stzh-eventinfo__month-list-item:not(:first-child) .stzh-eventinfo__heading {
@@ -217,7 +352,15 @@
217
352
  margin-bottom: 0px;
218
353
  }
219
354
  .stzh-eventinfo__heading {
355
+ font-family: var(--stzh-font-family-title);
356
+ font-weight: var(--stzh-font-weight-title);
357
+ font-style: var(--stzh-font-style-title);
358
+ font-size: var(--stzh-font-centi-font-size);
359
+ line-height: var(--stzh-font-centi-heading-line-height);
360
+ letter-spacing: var(--stzh-font-curve---heading-letter-spacing);
220
361
  margin-bottom: var(--stzh-space-xsmall);
362
+ margin-top: 0;
363
+ color: var(--stzh-color-primary70);
221
364
  }
222
365
  @media screen and (min-width: 900px) {
223
366
  .stzh-eventinfo__heading {
@@ -283,7 +426,9 @@
283
426
  }
284
427
  .stzh-eventinfo__event-date-wrapper {
285
428
  display: flex;
286
- gap: var(--stzh-space-xsmall);
429
+ flex-direction: column;
430
+ -moz-column-gap: var(--stzh-space-xxlarge);
431
+ column-gap: var(--stzh-space-xxlarge);
287
432
  }
288
433
  @media screen and (min-width: 900px) {
289
434
  .stzh-eventinfo__event-date-wrapper {
@@ -1,12 +1,35 @@
1
1
  import { Host, h, } from "@stencil/core";
2
+ import { setPropsIfNull } from "../../utils/utils";
2
3
  /**
4
+ * @slot location - stzh-text for location
5
+ * @slot additional-info - stzh-text for additional info
3
6
  */
4
7
  export class StzhEventinfo {
5
8
  constructor() {
6
9
  this._items = [];
7
10
  this._itemsGroupedByMonth = [];
11
+ this.init = () => {
12
+ const locationTexts = this.element.querySelectorAll('stzh-text[slot="location"], [slot="location"] stzh-text');
13
+ const additionalInfoTexts = this.element.querySelectorAll('stzh-text[slot="additional-info"], [slot="additional-info"] stzh-text');
14
+ locationTexts.forEach((text) => {
15
+ setPropsIfNull(text, {
16
+ color: "inherit",
17
+ curve: "none"
18
+ });
19
+ });
20
+ additionalInfoTexts.forEach((text) => {
21
+ setPropsIfNull(text, {
22
+ color: "inherit",
23
+ curve: "none"
24
+ });
25
+ });
26
+ };
8
27
  this.localization = undefined;
9
28
  this.monthHeadingLevel = "4";
29
+ this.start = undefined;
30
+ this.end = undefined;
31
+ this.calendarUrl = undefined;
32
+ this.calendarLabel = undefined;
10
33
  this.items = undefined;
11
34
  this.dateAdapter = undefined;
12
35
  }
@@ -48,14 +71,31 @@ export class StzhEventinfo {
48
71
  }
49
72
  this.itemsWatcher();
50
73
  }
74
+ connectedCallback() {
75
+ this.init();
76
+ this.observer = new MutationObserver(this.init);
77
+ this.observer.observe(this.element, {
78
+ childList: true,
79
+ subtree: true
80
+ });
81
+ }
82
+ disconnectedCallback() {
83
+ if (this.observer) {
84
+ this.observer.disconnect();
85
+ }
86
+ }
51
87
  render() {
52
88
  const classes = {
53
89
  "stzh-eventinfo": true
54
90
  };
55
- return (h(Host, null, h("div", { class: classes }, this._itemsGroupedByMonth.length > 0 &&
56
- h("ul", { class: "stzh-eventinfo__month-list" }, this._itemsGroupedByMonth.map((groupedItems) => h("li", { class: "stzh-eventinfo__month-list-item" }, h("stzh-heading", { class: "stzh-eventinfo__heading", level: this.monthHeadingLevel }, groupedItems.name), groupedItems.events.length > 0 &&
91
+ const startDate = this.start && new Date(this.start);
92
+ const endDate = this.end && new Date(this.end);
93
+ const MonthHeading = `h${this.monthHeadingLevel}`;
94
+ return (h(Host, null, h("div", { class: classes }, h("div", { class: "stzh-eventinfo__left" }, h("div", { class: "stzh-eventinfo__main-event-day-name" }, this.localization.$globals.dayNamesShort[startDate.getDay()]), h("div", { class: "stzh-eventinfo__main-event-day" }, startDate.getDate() < 10 && '0', startDate.getDate()), h("div", { class: "stzh-eventinfo__main-event-month" }, this.localization.$globals.monthNamesShort[startDate.getMonth()])), h("div", { class: "stzh-eventinfo__right" }, h("div", null, h("div", { class: "stzh-eventinfo__head" }, h("div", { class: "stzh-eventinfo__main-date" }, h("span", null, this.localization.$globals.dayNames[startDate.getDay()]), h("span", null, this.dateAdapter.format(startDate, "date")), h("span", null, this.dateAdapter.formatSpan(startDate, endDate, "time"))), this.calendarUrl &&
95
+ h("div", { class: "stzh-eventinfo__main-event-link" }, h("stzh-link", { href: this.calendarUrl, label: this.calendarLabel || this.localization.addToCalendar, size: "inherit" }))), h("div", { class: "stzh-eventinfo__text" }, h("div", { class: "stzh-eventinfo__location" }, h("slot", { name: "location" })), h("div", { class: "stzh-eventinfo__additional-info" }, h("slot", { name: "additional-info" })))), this._itemsGroupedByMonth.length > 0 &&
96
+ h("div", { class: "stzh-eventinfo__details-wrapper" }, h("stzh-details", { class: "stzh-eventinfo__details" }, h("stzh-link", { class: "stzh-eventinfo__details-link", icon: "calendar", size: "inherit" }, h("span", { class: "stzh-eventinfo__details-link-expand" }, this.localization.expandMoreDates), h("span", { class: "stzh-eventinfo__details-link-collapse" }, this.localization.collapseMoreDates)), h("ul", { slot: "content", class: "stzh-eventinfo__month-list" }, this._itemsGroupedByMonth.map((groupedItems) => h("li", { class: "stzh-eventinfo__month-list-item" }, h(MonthHeading, { class: "stzh-eventinfo__heading" }, groupedItems.name), groupedItems.events.length > 0 &&
57
97
  h("ul", { class: "stzh-eventinfo__event-list" }, groupedItems.events.map((event) => h("li", { class: "stzh-eventinfo__event-list-item" }, h("span", { class: "stzh-eventinfo__event-datetime-wrapper" }, h("span", { class: "stzh-eventinfo__event-date-wrapper" }, h("span", { class: "stzh-eventinfo__event-weekday" }, this.localization.$globals.dayNames[event.start.getDay()]), h("span", { class: "stzh-eventinfo__event-date" }, this.dateAdapter.format(event.start, "date"))), h("span", { class: "stzh-eventinfo__event-time" }, this.dateAdapter.formatSpan(event.start, event.end, "time"))), h("span", { class: "stzh-eventinfo__event-link" }, event.calendarUrl &&
58
- h("stzh-link", { size: "small", href: event.calendarUrl, label: event.calendarLabel || this.localization.addToCalendar })))))))))));
98
+ h("stzh-link", { href: event.calendarUrl, label: event.calendarLabel || this.localization.addToCalendar }))))))))))))));
59
99
  }
60
100
  static get is() { return "stzh-eventinfo"; }
61
101
  static get encapsulation() { return "scoped"; }
@@ -76,7 +116,7 @@ export class StzhEventinfo {
76
116
  "mutable": false,
77
117
  "complexType": {
78
118
  "original": "StzhEventinfoLocalizedText",
79
- "resolved": "StzhLocaleComponent & { addToCalendar: string; }",
119
+ "resolved": "StzhLocaleComponent & { addToCalendar: string; expandMoreDates: string; collapseMoreDates: string; }",
80
120
  "references": {
81
121
  "StzhEventinfoLocalizedText": {
82
122
  "location": "import",
@@ -110,6 +150,84 @@ export class StzhEventinfo {
110
150
  "reflect": false,
111
151
  "defaultValue": "\"4\""
112
152
  },
153
+ "start": {
154
+ "type": "string",
155
+ "mutable": false,
156
+ "complexType": {
157
+ "original": "Date | string",
158
+ "resolved": "Date | string",
159
+ "references": {
160
+ "Date": {
161
+ "location": "global",
162
+ "id": "global::Date"
163
+ }
164
+ }
165
+ },
166
+ "required": false,
167
+ "optional": false,
168
+ "docs": {
169
+ "tags": [],
170
+ "text": "Start date"
171
+ },
172
+ "attribute": "start",
173
+ "reflect": false
174
+ },
175
+ "end": {
176
+ "type": "string",
177
+ "mutable": false,
178
+ "complexType": {
179
+ "original": "Date | string",
180
+ "resolved": "Date | string",
181
+ "references": {
182
+ "Date": {
183
+ "location": "global",
184
+ "id": "global::Date"
185
+ }
186
+ }
187
+ },
188
+ "required": false,
189
+ "optional": false,
190
+ "docs": {
191
+ "tags": [],
192
+ "text": "End date"
193
+ },
194
+ "attribute": "end",
195
+ "reflect": false
196
+ },
197
+ "calendarUrl": {
198
+ "type": "string",
199
+ "mutable": false,
200
+ "complexType": {
201
+ "original": "string",
202
+ "resolved": "string",
203
+ "references": {}
204
+ },
205
+ "required": false,
206
+ "optional": false,
207
+ "docs": {
208
+ "tags": [],
209
+ "text": "Calendar URL"
210
+ },
211
+ "attribute": "calendar-url",
212
+ "reflect": false
213
+ },
214
+ "calendarLabel": {
215
+ "type": "string",
216
+ "mutable": false,
217
+ "complexType": {
218
+ "original": "string",
219
+ "resolved": "string",
220
+ "references": {}
221
+ },
222
+ "required": false,
223
+ "optional": false,
224
+ "docs": {
225
+ "tags": [],
226
+ "text": "Calendar label"
227
+ },
228
+ "attribute": "calendar-label",
229
+ "reflect": false
230
+ },
113
231
  "items": {
114
232
  "type": "string",
115
233
  "mutable": false,
@@ -1 +1 @@
1
- {"version":3,"file":"stzh-eventinfo.js","sourceRoot":"","sources":["../../../../src/components/stzh-eventinfo/stzh-eventinfo.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,IAAI,EACJ,CAAC,EACD,OAAO,EACP,IAAI,EACJ,KAAK,GACN,MAAM,eAAe,CAAC;AAWvB;GACG;AAMH,MAAM,OAAO,aAAa;;IAShB,WAAM,GAAwB,EAAE,CAAC;IAWjC,yBAAoB,GAAyB,EAAE,CAAC;;6BAfL,GAAG;;;;EAmBtD,YAAY;IACV,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE;MACrB,OAAO;KACR;IAED,MAAM,IAAI,GAA6B,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ;MACnE,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC;MACxB,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC;IAEf,IAAI,CAAC,IAAI,EAAE;MACT,OAAO;KACR;IAED,sCAAsC;IACtC,IAAI,CAAC,MAAM,GAAG,IAAI;OACf,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,iCACT,KAAK,KACR,KAAK,EAAE,IAAI,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,EAC5B,GAAG,EAAE,IAAI,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IACxB,CAAC;OACF,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;IAEvD,oCAAoC;IACpC,MAAM,YAAY,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N,CACE,CAEH,CACD,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n Component,\n Host,\n h,\n Element,\n Prop,\n Watch,\n} from \"@stencil/core\";\n\nimport {\n StzhEventinfoItemInput,\n StzhEventinfoItem,\n StzhEventinfoMonth,\n StzhLocaleAdapter\n} from \"../../index\";\n\nimport { StzhEventinfoLocalizedText } from './stzh-eventinfo.localization';\n\n/**\n */\n@Component({\n tag: \"stzh-eventinfo\",\n styleUrl: \"stzh-eventinfo.scss\",\n scoped: true\n})\nexport class StzhEventinfo {\n /** Translation strings */\n @Prop() localization: StzhEventinfoLocalizedText;\n\n /** Month heading level */\n @Prop() monthHeadingLevel: \"1\" | \"2\" | \"3\" | \"4\" = \"4\";\n\n /** Event dates */\n @Prop() items: StzhEventinfoItemInput[] | string;\n private _items: StzhEventinfoItem[] = [];\n\n /**\n * Date adapter, for custom parsing/formatting.\n * Must be object with a `parse` function which accepts a `string` and returns a `Date`,\n * and a `format` function which accepts a `Date` and returns a `string`.\n */\n @Prop() dateAdapter: StzhLocaleAdapter;\n\n @Element() element: HTMLStzhEventinfoElement;\n\n private _itemsGroupedByMonth: StzhEventinfoMonth[] = [];\n\n @Watch(\"items\")\n @Watch(\"dateAdapter\")\n itemsWatcher() {\n if (!this.dateAdapter) {\n return;\n }\n\n const data: StzhEventinfoItemInput[] = typeof this.items === \"string\"\n ? JSON.parse(this.items)\n : this.items;\n\n if (!data) {\n return;\n }\n\n // convert start and end field to date\n this._items = data\n .map(event => ({\n ...event,\n start: new Date(event.start),\n end: new Date(event.end),\n }))\n .sort((a, b) => a.start.getTime() - b.end.getTime());\n\n // grouping events by month and year\n const groupedItems: { [monthKey: string]: StzhEventinfoMonth } = this._items.reduce((acc, event) => {\n const monthYearKey = event.start.getMonth() + event.start.getFullYear();\n if (!acc[monthYearKey]) {\n acc[monthYearKey] = {\n name: this.localization.$globals.monthNames[event.start.getMonth()]\n + \" \" + event.start.getFullYear(),\n events: []\n } as StzhEventinfoMonth;\n }\n\n acc[monthYearKey].events.push(event);\n return acc;\n }, {});\n\n this._itemsGroupedByMonth = Object.values(groupedItems);\n }\n\n async componentWillLoad() {\n if (!this.localization) {\n this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, \"eventinfo\");\n }\n\n if (!this.dateAdapter) {\n this.dateAdapter = window.stzhComponents.utils.createFormatParseAdapter(\n this.localization.$formats,\n this.localization.$globals\n );\n }\n\n this.itemsWatcher();\n }\n\n render() {\n const classes = {\n \"stzh-eventinfo\": true\n };\n\n return (\n <Host>\n <div class={classes}>\n {this._itemsGroupedByMonth.length > 0 &&\n <ul class=\"stzh-eventinfo__month-list\">\n {this._itemsGroupedByMonth.map((groupedItems) =>\n <li class=\"stzh-eventinfo__month-list-item\">\n <stzh-heading\n class=\"stzh-eventinfo__heading\"\n level={this.monthHeadingLevel}\n >\n {groupedItems.name}\n </stzh-heading>\n\n {groupedItems.events.length > 0 &&\n <ul class=\"stzh-eventinfo__event-list\">\n {groupedItems.events.map((event) =>\n <li class=\"stzh-eventinfo__event-list-item\">\n <span class=\"stzh-eventinfo__event-datetime-wrapper\">\n <span class=\"stzh-eventinfo__event-date-wrapper\">\n <span class=\"stzh-eventinfo__event-weekday\">\n {this.localization.$globals.dayNames[event.start.getDay()]}\n </span>\n <span class=\"stzh-eventinfo__event-date\">\n {this.dateAdapter.format(event.start, \"date\")}\n </span>\n </span>\n <span class=\"stzh-eventinfo__event-time\">\n {this.dateAdapter.formatSpan(event.start, event.end, \"time\")}\n </span>\n </span>\n <span class=\"stzh-eventinfo__event-link\">\n {event.calendarUrl &&\n <stzh-link\n size=\"small\"\n href={event.calendarUrl}\n label={event.calendarLabel || this.localization.addToCalendar}\n ></stzh-link>\n }\n </span>\n </li>\n )}\n </ul>\n }\n </li>\n )}\n </ul>\n }\n </div>\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"stzh-eventinfo.js","sourceRoot":"","sources":["../../../../src/components/stzh-eventinfo/stzh-eventinfo.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,IAAI,EACJ,CAAC,EACD,OAAO,EACP,IAAI,EACJ,KAAK,GACN,MAAM,eAAe,CAAC;AAUvB,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD;;;GAGG;AAMH,MAAM,OAAO,aAAa;;IAqBhB,WAAM,GAAwB,EAAE,CAAC;IAqDjC,yBAAoB,GAAyB,EAAE,CAAC;IAGhD,SAAI,GAAG,GAAG,EAAE;MAClB,MAAM,aAAa,GAAG,IAAI,CAAC,OAAO,CAAC,gBAAgB,CACjD,yDAAyD,CAC1D,CAAC;MAEF,MAAM,mBAAmB,GAAG,IAAI,CAAC,OAAO,CAAC,gBAAgB,CACvD,uEAAuE,CACxE,CAAC;MAEF,aAAa,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;QAC7B,cAAc,CAAC,IAAI,EAAE;UACnB,KAAK,EAAE,SAAS;UAChB,KAAK,EAAE,MAAM;SACS,CAAC,CAAA;MAC3B,CAAC,CAAC,CAAC;MAEH,mBAAmB,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;QACnC,cAAc,CAAC,IAAI,EAAE;UACnB,KAAK,EAAE,SAAS;UAChB,KAAK,EAAE,MAAM;SACS,CAAC,CAAA;MAC3B,CAAC,CAAC,CAAC;IACL,CAAC,CAAA;;6BA9FkD,GAAG;;;;;;;;EA6BtD,YAAY;IACV,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE;MACrB,OAAO;KACR;IAED,MAAM,IAAI,GAA6B,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ;MACnE,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC;MACxB,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC;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,IAAI,EAAE,KAAK,CAAC,WAAW,EACvB,KAAK,EAAE,KAAK,CAAC,aAAa,IAAI,IAAI,CAAC,YAAY,CAAC,aAAa,GAClD,CAEV,CACJ,CACN,CACA,CAEF,CACN,CACE,CACQ,CACX,CAEJ,CACF,CACD,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n Component,\n Host,\n h,\n Element,\n Prop,\n Watch,\n} from \"@stencil/core\";\n\nimport {\n StzhEventinfoItemInput,\n StzhEventinfoItem,\n StzhEventinfoMonth,\n StzhLocaleAdapter\n} from \"../../index\";\n\nimport { StzhEventinfoLocalizedText } from './stzh-eventinfo.localization';\nimport { setPropsIfNull } from \"../../utils/utils\";\n\n/**\n * @slot location - stzh-text for location\n * @slot additional-info - stzh-text for additional info\n */\n@Component({\n tag: \"stzh-eventinfo\",\n styleUrl: \"stzh-eventinfo.scss\",\n scoped: true\n})\nexport class StzhEventinfo {\n /** Translation strings */\n @Prop() localization: StzhEventinfoLocalizedText;\n\n /** Month heading level */\n @Prop() monthHeadingLevel: \"1\" | \"2\" | \"3\" | \"4\" = \"4\";\n\n /** Start date */\n @Prop() start: Date | string;\n\n /** End date */\n @Prop() end: Date | string;\n\n /** Calendar URL */\n @Prop() calendarUrl: string;\n\n /** Calendar label */\n @Prop() calendarLabel: string;\n\n /** Event dates */\n @Prop() items: StzhEventinfoItemInput[] | string;\n private _items: StzhEventinfoItem[] = [];\n\n /**\n * Date adapter, for custom parsing/formatting.\n * Must be object with a `parse` function which accepts a `string` and returns a `Date`,\n * and a `format` function which accepts a `Date` and returns a `string`.\n */\n @Prop() dateAdapter: StzhLocaleAdapter;\n\n @Element() element: HTMLStzhEventinfoElement;\n\n @Watch(\"items\")\n @Watch(\"dateAdapter\")\n itemsWatcher() {\n if (!this.dateAdapter) {\n return;\n }\n\n const data: StzhEventinfoItemInput[] = typeof this.items === \"string\"\n ? JSON.parse(this.items)\n : this.items;\n\n if (!data) {\n return;\n }\n\n // convert start and end field to date\n this._items = data\n .map(event => ({\n ...event,\n start: new Date(event.start),\n end: new Date(event.end),\n }))\n .sort((a, b) => a.start.getTime() - b.end.getTime());\n\n // grouping events by month and year\n const groupedItems: { [monthKey: string]: StzhEventinfoMonth } = this._items.reduce((acc, event) => {\n const monthYearKey = event.start.getMonth() + event.start.getFullYear();\n if (!acc[monthYearKey]) {\n acc[monthYearKey] = {\n name: this.localization.$globals.monthNames[event.start.getMonth()]\n + \" \" + event.start.getFullYear(),\n events: []\n } as StzhEventinfoMonth;\n }\n\n acc[monthYearKey].events.push(event);\n return acc;\n }, {});\n\n this._itemsGroupedByMonth = Object.values(groupedItems);\n }\n\n private _itemsGroupedByMonth: StzhEventinfoMonth[] = [];\n private observer: MutationObserver;\n\n private init = () => {\n const locationTexts = this.element.querySelectorAll(\n 'stzh-text[slot=\"location\"], [slot=\"location\"] stzh-text'\n );\n\n const additionalInfoTexts = this.element.querySelectorAll(\n 'stzh-text[slot=\"additional-info\"], [slot=\"additional-info\"] stzh-text'\n );\n\n locationTexts.forEach((text) => {\n setPropsIfNull(text, {\n color: \"inherit\",\n curve: \"none\"\n } as HTMLStzhTextElement)\n });\n\n additionalInfoTexts.forEach((text) => {\n setPropsIfNull(text, {\n color: \"inherit\",\n curve: \"none\"\n } as HTMLStzhTextElement)\n });\n }\n\n async componentWillLoad() {\n if (!this.localization) {\n this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, \"eventinfo\");\n }\n\n if (!this.dateAdapter) {\n this.dateAdapter = window.stzhComponents.utils.createFormatParseAdapter(\n this.localization.$formats,\n this.localization.$globals\n );\n }\n\n this.itemsWatcher();\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-eventinfo\": true\n };\n\n const startDate = this.start && new Date(this.start);\n const endDate = this.end && new Date(this.end);\n\n const MonthHeading = `h${this.monthHeadingLevel}`;\n\n return (\n <Host>\n <div class={classes}>\n <div class=\"stzh-eventinfo__left\">\n <div class=\"stzh-eventinfo__main-event-day-name\">\n {this.localization.$globals.dayNamesShort[startDate.getDay()]}\n </div>\n <div class=\"stzh-eventinfo__main-event-day\">\n {startDate.getDate() < 10 && '0'}{startDate.getDate()}\n </div>\n <div class=\"stzh-eventinfo__main-event-month\">\n {this.localization.$globals.monthNamesShort[startDate.getMonth()]}\n </div>\n </div>\n\n <div class=\"stzh-eventinfo__right\">\n <div>\n <div class=\"stzh-eventinfo__head\">\n <div class=\"stzh-eventinfo__main-date\">\n <span>\n {this.localization.$globals.dayNames[startDate.getDay()]}\n </span>\n <span>\n {this.dateAdapter.format(startDate, \"date\")}\n </span>\n <span>\n {this.dateAdapter.formatSpan(\n startDate,\n endDate,\n \"time\"\n )}\n </span>\n </div>\n\n {this.calendarUrl &&\n <div class=\"stzh-eventinfo__main-event-link\">\n <stzh-link\n href={this.calendarUrl}\n label={this.calendarLabel || this.localization.addToCalendar}\n size=\"inherit\"\n ></stzh-link>\n </div>\n }\n </div>\n\n <div class=\"stzh-eventinfo__text\">\n <div class=\"stzh-eventinfo__location\">\n <slot name=\"location\"></slot>\n </div>\n <div class=\"stzh-eventinfo__additional-info\">\n <slot name=\"additional-info\"></slot>\n </div>\n </div>\n </div>\n\n {this._itemsGroupedByMonth.length > 0 &&\n <div class=\"stzh-eventinfo__details-wrapper\">\n <stzh-details class=\"stzh-eventinfo__details\">\n <stzh-link\n class=\"stzh-eventinfo__details-link\"\n icon=\"calendar\"\n size=\"inherit\"\n >\n <span class=\"stzh-eventinfo__details-link-expand\">{this.localization.expandMoreDates}</span>\n <span class=\"stzh-eventinfo__details-link-collapse\">{this.localization.collapseMoreDates}</span>\n </stzh-link>\n\n <ul slot=\"content\" class=\"stzh-eventinfo__month-list\">\n {this._itemsGroupedByMonth.map((groupedItems) =>\n <li class=\"stzh-eventinfo__month-list-item\">\n <MonthHeading class=\"stzh-eventinfo__heading\">\n {groupedItems.name}\n </MonthHeading>\n\n {groupedItems.events.length > 0 &&\n <ul class=\"stzh-eventinfo__event-list\">\n {groupedItems.events.map((event) =>\n <li class=\"stzh-eventinfo__event-list-item\">\n <span class=\"stzh-eventinfo__event-datetime-wrapper\">\n <span class=\"stzh-eventinfo__event-date-wrapper\">\n <span class=\"stzh-eventinfo__event-weekday\">\n {this.localization.$globals.dayNames[event.start.getDay()]}\n </span>\n <span class=\"stzh-eventinfo__event-date\">\n {this.dateAdapter.format(event.start, \"date\")}\n </span>\n </span>\n <span class=\"stzh-eventinfo__event-time\">\n {this.dateAdapter.formatSpan(event.start, event.end, \"time\")}\n </span>\n </span>\n <span class=\"stzh-eventinfo__event-link\">\n {event.calendarUrl &&\n <stzh-link\n href={event.calendarUrl}\n label={event.calendarLabel || this.localization.addToCalendar}\n ></stzh-link>\n }\n </span>\n </li>\n )}\n </ul>\n }\n </li>\n )}\n </ul>\n </stzh-details>\n </div>\n }\n </div>\n </div>\n </Host>\n );\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"stzh-eventinfo.localization.js","sourceRoot":"","sources":["../../../../src/components/stzh-eventinfo/stzh-eventinfo.localization.ts"],"names":[],"mappings":"","sourcesContent":["import { StzhLocaleComponent } from \"../../utils/translation-utils\";\n\nexport type StzhEventinfoLocalizedText = StzhLocaleComponent & {\n addToCalendar: string\n}\n"]}
1
+ {"version":3,"file":"stzh-eventinfo.localization.js","sourceRoot":"","sources":["../../../../src/components/stzh-eventinfo/stzh-eventinfo.localization.ts"],"names":[],"mappings":"","sourcesContent":["import { StzhLocaleComponent } from \"../../utils/translation-utils\";\n\nexport type StzhEventinfoLocalizedText = StzhLocaleComponent & {\n addToCalendar: string\n expandMoreDates: string\n collapseMoreDates: string\n}\n"]}
@@ -8,7 +8,17 @@ const COMPONENT_NAME = 'stzh-eventinfo';
8
8
  const story = createComponentStory(COMPONENT_NAME);
9
9
 
10
10
  const TEMPLATE = `
11
- <stzh-eventinfo></stzh-eventinfo>
11
+ <stzh-eventinfo>
12
+ <stzh-text slot="location">
13
+ Lorem ipsum dolor sit amet<br />
14
+ Neumarkt 4<br />
15
+ 8001 Zurich
16
+ </stzh-text>
17
+ <stzh-text slot="additional-info">
18
+ Lorem ipsum: <b>Dolor</b><br />
19
+ Lorem: <b>Ipsum</b>
20
+ </stzh-text>
21
+ </stzh-eventinfo>
12
22
  `;
13
23
 
14
24
  export default {
@@ -69,6 +79,9 @@ const items = [
69
79
  export const Default = {
70
80
  render: (args) => story(args, TEMPLATE),
71
81
  args: {
82
+ start: "2023-06-14T17:00:00.000Z",
83
+ end: "2023-06-14T20:00:00.000Z",
84
+ 'calendar-url': "#",
72
85
  items
73
86
  }
74
87
  };
@@ -27,6 +27,9 @@
27
27
  /**
28
28
  * Header
29
29
  */
30
+ /**
31
+ * Footer
32
+ */
30
33
  /**
31
34
  * Fieldset
32
35
  */
@@ -57,9 +60,6 @@
57
60
  /**
58
61
  * Tooltips
59
62
  */
60
- /**
61
- * Header
62
- */
63
63
  /**
64
64
  * Dialogs / Popover
65
65
  */
@@ -27,6 +27,9 @@
27
27
  /**
28
28
  * Header
29
29
  */
30
+ /**
31
+ * Footer
32
+ */
30
33
  /**
31
34
  * Fieldset
32
35
  */
@@ -57,9 +60,6 @@
57
60
  /**
58
61
  * Tooltips
59
62
  */
60
- /**
61
- * Header
62
- */
63
63
  /**
64
64
  * Dialogs / Popover
65
65
  */
@@ -27,6 +27,9 @@
27
27
  /**
28
28
  * Header
29
29
  */
30
+ /**
31
+ * Footer
32
+ */
30
33
  /**
31
34
  * Fieldset
32
35
  */
@@ -57,9 +60,6 @@
57
60
  /**
58
61
  * Tooltips
59
62
  */
60
- /**
61
- * Header
62
- */
63
63
  /**
64
64
  * Dialogs / Popover
65
65
  */
@@ -27,6 +27,9 @@
27
27
  /**
28
28
  * Header
29
29
  */
30
+ /**
31
+ * Footer
32
+ */
30
33
  /**
31
34
  * Fieldset
32
35
  */
@@ -57,9 +60,6 @@
57
60
  /**
58
61
  * Tooltips
59
62
  */
60
- /**
61
- * Header
62
- */
63
63
  /**
64
64
  * Dialogs / Popover
65
65
  */
@@ -159,6 +159,9 @@
159
159
  border: 0 !important;
160
160
  }
161
161
 
162
+ stzh-footer {
163
+ --background-color: var(--stzh-footer-background-color);
164
+ }
162
165
  @media print {
163
166
  stzh-footer {
164
167
  display: none;
@@ -176,7 +179,7 @@
176
179
  the .has-focus class is used by the focus target */
177
180
  font-size: var(--stzh-font-micro-font-size);
178
181
  line-height: var(--stzh-font-micro-text-line-height);
179
- background-color: var(--stzh-color-primary100);
182
+ background-color: var(--background-color);
180
183
  --stzh-flyingfocus-color: var(--stzh-color-white);
181
184
  --stzh-base-color: var(--stzh-color-white70op);
182
185
  --stzh-link-color: var(--stzh-color-white70op);
@@ -27,6 +27,9 @@
27
27
  /**
28
28
  * Header
29
29
  */
30
+ /**
31
+ * Footer
32
+ */
30
33
  /**
31
34
  * Fieldset
32
35
  */
@@ -57,9 +60,6 @@
57
60
  /**
58
61
  * Tooltips
59
62
  */
60
- /**
61
- * Header
62
- */
63
63
  /**
64
64
  * Dialogs / Popover
65
65
  */
@@ -784,6 +784,12 @@ stzh-gallery .stzh-fylingfocus-focused::-moz-focus-inner {
784
784
  transition-duration: var(--stzh-base-transition-animation-speed);
785
785
  transition-property: color, background-color, border-color, opacity;
786
786
  }
787
+ @media print {
788
+ .stzh-gallery__pswp .pswp__button {
789
+ -webkit-print-color-adjust: exact;
790
+ print-color-adjust: exact;
791
+ }
792
+ }
787
793
  @media screen and (min-width: 1260px) {
788
794
  .stzh-gallery__pswp .pswp__button {
789
795
  width: 3.5rem;
@@ -27,6 +27,9 @@
27
27
  /**
28
28
  * Header
29
29
  */
30
+ /**
31
+ * Footer
32
+ */
30
33
  /**
31
34
  * Fieldset
32
35
  */
@@ -57,9 +60,6 @@
57
60
  /**
58
61
  * Tooltips
59
62
  */
60
- /**
61
- * Header
62
- */
63
63
  /**
64
64
  * Dialogs / Popover
65
65
  */
@@ -27,6 +27,9 @@
27
27
  /**
28
28
  * Header
29
29
  */
30
+ /**
31
+ * Footer
32
+ */
30
33
  /**
31
34
  * Fieldset
32
35
  */
@@ -57,9 +60,6 @@
57
60
  /**
58
61
  * Tooltips
59
62
  */
60
- /**
61
- * Header
62
- */
63
63
  /**
64
64
  * Dialogs / Popover
65
65
  */
@@ -48,7 +48,6 @@ export class StzhHeader {
48
48
  this.updatePosition();
49
49
  };
50
50
  this.handleMetanavItemClick = (event, item) => {
51
- this.flyoutOpen = false;
52
51
  this.stzhMetanavItemClick.emit({
53
52
  component: "stzh-header",
54
53
  item,