@oiz/stzh-components 3.8.0 → 3.8.2

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 (472) hide show
  1. package/dist/cjs/{app-globals-0e887dd2.js → app-globals-4d068f95.js} +2 -2
  2. package/dist/cjs/{app-globals-0e887dd2.js.map → app-globals-4d068f95.js.map} +1 -1
  3. package/dist/cjs/loader.cjs.js +2 -2
  4. package/dist/cjs/stzh-accordion_3.cjs.entry.js +1 -1
  5. package/dist/cjs/stzh-actions.cjs.entry.js +1 -1
  6. package/dist/cjs/stzh-app-bar.cjs.entry.js +1 -1
  7. package/dist/cjs/stzh-appointments.cjs.entry.js +1 -1
  8. package/dist/cjs/stzh-audio.cjs.entry.js +1 -1
  9. package/dist/cjs/stzh-badge_3.cjs.entry.js +1 -1
  10. package/dist/cjs/stzh-bathstatus-list.cjs.entry.js +1 -1
  11. package/dist/cjs/stzh-card-navigation.cjs.entry.js +1 -1
  12. package/dist/cjs/stzh-card-searchresult.cjs.entry.js +1 -1
  13. package/dist/cjs/stzh-card-superteaser.cjs.entry.js +1 -1
  14. package/dist/cjs/stzh-card.cjs.entry.js +1 -1
  15. package/dist/cjs/stzh-carousel.cjs.entry.js +1 -1
  16. package/dist/cjs/stzh-checkbox_3.cjs.entry.js +1 -1
  17. package/dist/cjs/stzh-checkboxgroup.cjs.entry.js +1 -1
  18. package/dist/cjs/stzh-components.cjs.js +2 -2
  19. package/dist/cjs/stzh-contact-cv.cjs.entry.js +1 -1
  20. package/dist/cjs/stzh-contact.cjs.entry.js +1 -1
  21. package/dist/cjs/stzh-cspace.cjs.entry.js +1 -1
  22. package/dist/cjs/stzh-cta.cjs.entry.js +1 -1
  23. package/dist/cjs/stzh-datalist_2.cjs.entry.js +1 -1
  24. package/dist/cjs/stzh-datatable.cjs.entry.js +1 -1
  25. package/dist/cjs/stzh-datepicker_3.cjs.entry.js +1 -1
  26. package/dist/cjs/stzh-daterange.cjs.entry.js +1 -1
  27. package/dist/cjs/stzh-details.cjs.entry.js +1 -1
  28. package/dist/cjs/stzh-dialog.cjs.entry.js +1 -1
  29. package/dist/cjs/stzh-disturber.cjs.entry.js +1 -1
  30. package/dist/cjs/stzh-dropdown.cjs.entry.js +1 -1
  31. package/dist/cjs/stzh-eventinfo.cjs.entry.js +1 -1
  32. package/dist/cjs/stzh-feedreader-item.cjs.entry.js +1 -1
  33. package/dist/cjs/stzh-feedreader.cjs.entry.js +1 -1
  34. package/dist/cjs/stzh-fieldset.cjs.entry.js +1 -1
  35. package/dist/cjs/stzh-fieldset.cjs.entry.js.map +1 -1
  36. package/dist/cjs/stzh-figure.cjs.entry.js +1 -1
  37. package/dist/cjs/stzh-footer.cjs.entry.js +1 -1
  38. package/dist/cjs/stzh-ghettobox_3.cjs.entry.js +1 -1
  39. package/dist/cjs/stzh-input.cjs.entry.js +1 -1
  40. package/dist/cjs/stzh-link.cjs.entry.js +1 -1
  41. package/dist/cjs/stzh-menu_2.cjs.entry.js +1 -1
  42. package/dist/cjs/stzh-pagecontent.cjs.entry.js +1 -1
  43. package/dist/cjs/stzh-pagetitle-hero.cjs.entry.js +1 -1
  44. package/dist/cjs/stzh-pagetitle-home.cjs.entry.js +1 -1
  45. package/dist/cjs/stzh-pagetitle.cjs.entry.js +1 -1
  46. package/dist/cjs/stzh-pi-content-navigation.cjs.entry.js +1 -1
  47. package/dist/cjs/stzh-pi-pagetitle.cjs.entry.js +1 -1
  48. package/dist/cjs/stzh-pi-teaser.cjs.entry.js +1 -1
  49. package/dist/cjs/stzh-popover.cjs.entry.js +1 -1
  50. package/dist/cjs/stzh-print_2.cjs.entry.js +1 -1
  51. package/dist/cjs/stzh-readspeaker.cjs.entry.js +1 -1
  52. package/dist/cjs/stzh-scrollup.cjs.entry.js +1 -1
  53. package/dist/cjs/stzh-search.cjs.entry.js +1 -1
  54. package/dist/cjs/stzh-section.cjs.entry.js +35 -3
  55. package/dist/cjs/stzh-section.cjs.entry.js.map +1 -1
  56. package/dist/cjs/stzh-socialmediastream.cjs.entry.js +1 -1
  57. package/dist/cjs/stzh-sticky-actions.cjs.entry.js +1 -1
  58. package/dist/cjs/stzh-sticky.cjs.entry.js +1 -1
  59. package/dist/cjs/stzh-table.cjs.entry.js +1 -1
  60. package/dist/cjs/stzh-textandimage.cjs.entry.js +1 -1
  61. package/dist/cjs/stzh-timeline-item.cjs.entry.js +1 -1
  62. package/dist/cjs/stzh-toast_2.cjs.entry.js +1 -1
  63. package/dist/cjs/stzh-toggle.cjs.entry.js +1 -1
  64. package/dist/cjs/stzh-tooltip.cjs.entry.js +1 -1
  65. package/dist/cjs/stzh-twocolumns.cjs.entry.js +1 -1
  66. package/dist/cjs/stzh-upload.cjs.entry.js +32 -8
  67. package/dist/cjs/stzh-upload.cjs.entry.js.map +1 -1
  68. package/dist/cjs/{utils-3e79835b.js → utils-43e6c48e.js} +9 -3
  69. package/dist/cjs/utils-43e6c48e.js.map +1 -0
  70. package/dist/collection/components/stzh-fieldset/stzh-fieldset.css +42 -0
  71. package/dist/collection/components/stzh-section/stzh-section.js +35 -4
  72. package/dist/collection/components/stzh-section/stzh-section.js.map +1 -1
  73. package/dist/collection/components/stzh-upload/stzh-upload.js +33 -8
  74. package/dist/collection/components/stzh-upload/stzh-upload.js.map +1 -1
  75. package/dist/collection/utils/utils.js +7 -2
  76. package/dist/collection/utils/utils.js.map +1 -1
  77. package/dist/components/index.js +1 -1
  78. package/dist/components/{p-b85a6b2e.js → p-05fdea9d.js} +2 -2
  79. package/dist/components/{p-b85a6b2e.js.map → p-05fdea9d.js.map} +1 -1
  80. package/dist/components/{p-073888ce.js → p-095fbf73.js} +9 -4
  81. package/dist/components/p-095fbf73.js.map +1 -0
  82. package/dist/components/{p-88880fc3.js → p-136bf880.js} +2 -2
  83. package/dist/components/{p-88880fc3.js.map → p-136bf880.js.map} +1 -1
  84. package/dist/components/{p-8ed7a61b.js → p-158996b9.js} +3 -3
  85. package/dist/components/{p-8ed7a61b.js.map → p-158996b9.js.map} +1 -1
  86. package/dist/components/{p-c47fbb21.js → p-162292d9.js} +2 -2
  87. package/dist/components/{p-c47fbb21.js.map → p-162292d9.js.map} +1 -1
  88. package/dist/components/{p-0c108311.js → p-270a262d.js} +2 -2
  89. package/dist/components/{p-0c108311.js.map → p-270a262d.js.map} +1 -1
  90. package/dist/components/{p-1d21ac10.js → p-28328bc1.js} +3 -3
  91. package/dist/components/{p-1d21ac10.js.map → p-28328bc1.js.map} +1 -1
  92. package/dist/components/{p-70f62e8e.js → p-345aa271.js} +7 -7
  93. package/dist/components/{p-70f62e8e.js.map → p-345aa271.js.map} +1 -1
  94. package/dist/components/{p-60b9f94a.js → p-3752dd9a.js} +3 -3
  95. package/dist/components/{p-60b9f94a.js.map → p-3752dd9a.js.map} +1 -1
  96. package/dist/components/{p-4d000b5b.js → p-431f7754.js} +2 -2
  97. package/dist/components/{p-4d000b5b.js.map → p-431f7754.js.map} +1 -1
  98. package/dist/components/{p-ea57718b.js → p-43cfa441.js} +2 -2
  99. package/dist/components/{p-ea57718b.js.map → p-43cfa441.js.map} +1 -1
  100. package/dist/components/{p-9657b8a5.js → p-442c9d35.js} +4 -4
  101. package/dist/components/{p-9657b8a5.js.map → p-442c9d35.js.map} +1 -1
  102. package/dist/components/{p-4f83ed4e.js → p-49b02465.js} +2 -2
  103. package/dist/components/{p-4f83ed4e.js.map → p-49b02465.js.map} +1 -1
  104. package/dist/components/{p-6c754f8f.js → p-5107044d.js} +2 -2
  105. package/dist/components/{p-6c754f8f.js.map → p-5107044d.js.map} +1 -1
  106. package/dist/components/{p-c73125e2.js → p-59c29b2f.js} +4 -4
  107. package/dist/components/{p-c73125e2.js.map → p-59c29b2f.js.map} +1 -1
  108. package/dist/components/{p-96416f66.js → p-5d183ab0.js} +4 -4
  109. package/dist/components/{p-96416f66.js.map → p-5d183ab0.js.map} +1 -1
  110. package/dist/components/{p-261d55a4.js → p-6229b8bc.js} +3 -3
  111. package/dist/components/{p-261d55a4.js.map → p-6229b8bc.js.map} +1 -1
  112. package/dist/components/{p-497e2db0.js → p-6b7a9e53.js} +3 -3
  113. package/dist/components/{p-497e2db0.js.map → p-6b7a9e53.js.map} +1 -1
  114. package/dist/components/{p-fa14b406.js → p-6bd17761.js} +4 -4
  115. package/dist/components/{p-fa14b406.js.map → p-6bd17761.js.map} +1 -1
  116. package/dist/components/{p-82e37421.js → p-6dbb90e2.js} +2 -2
  117. package/dist/components/{p-82e37421.js.map → p-6dbb90e2.js.map} +1 -1
  118. package/dist/components/{p-408a1562.js → p-6e704c81.js} +2 -2
  119. package/dist/components/{p-408a1562.js.map → p-6e704c81.js.map} +1 -1
  120. package/dist/components/{p-d5ab066a.js → p-777e6a82.js} +2 -2
  121. package/dist/components/{p-d5ab066a.js.map → p-777e6a82.js.map} +1 -1
  122. package/dist/components/{p-dd072a49.js → p-9a176168.js} +7 -7
  123. package/dist/components/{p-dd072a49.js.map → p-9a176168.js.map} +1 -1
  124. package/dist/components/{p-d26117d3.js → p-9bc1e85e.js} +3 -3
  125. package/dist/components/{p-d26117d3.js.map → p-9bc1e85e.js.map} +1 -1
  126. package/dist/components/{p-e5edc56d.js → p-a6472da9.js} +3 -3
  127. package/dist/components/{p-e5edc56d.js.map → p-a6472da9.js.map} +1 -1
  128. package/dist/components/{p-debaedeb.js → p-abcdf4b9.js} +2 -2
  129. package/dist/components/{p-debaedeb.js.map → p-abcdf4b9.js.map} +1 -1
  130. package/dist/components/{p-ec911b13.js → p-ad74acdc.js} +3 -3
  131. package/dist/components/{p-ec911b13.js.map → p-ad74acdc.js.map} +1 -1
  132. package/dist/components/{p-435413fc.js → p-b115288a.js} +2 -2
  133. package/dist/components/{p-435413fc.js.map → p-b115288a.js.map} +1 -1
  134. package/dist/components/{p-d2347259.js → p-bf5da52e.js} +2 -2
  135. package/dist/components/{p-d2347259.js.map → p-bf5da52e.js.map} +1 -1
  136. package/dist/components/{p-b107b48c.js → p-c2d7b984.js} +2 -2
  137. package/dist/components/{p-b107b48c.js.map → p-c2d7b984.js.map} +1 -1
  138. package/dist/components/{p-ebbe78de.js → p-c395cbc2.js} +5 -5
  139. package/dist/components/{p-ebbe78de.js.map → p-c395cbc2.js.map} +1 -1
  140. package/dist/components/{p-6b2b1e7b.js → p-d264ac6b.js} +3 -3
  141. package/dist/components/{p-6b2b1e7b.js.map → p-d264ac6b.js.map} +1 -1
  142. package/dist/components/{p-37367a31.js → p-dcdbdf88.js} +7 -7
  143. package/dist/components/{p-37367a31.js.map → p-dcdbdf88.js.map} +1 -1
  144. package/dist/components/{p-2d532797.js → p-de4503ca.js} +3 -3
  145. package/dist/components/{p-2d532797.js.map → p-de4503ca.js.map} +1 -1
  146. package/dist/components/{p-62e6cd61.js → p-e4286f09.js} +4 -4
  147. package/dist/components/{p-62e6cd61.js.map → p-e4286f09.js.map} +1 -1
  148. package/dist/components/{p-16940157.js → p-e8e933a4.js} +4 -4
  149. package/dist/components/{p-16940157.js.map → p-e8e933a4.js.map} +1 -1
  150. package/dist/components/{p-e282faac.js → p-e92576a9.js} +2 -2
  151. package/dist/components/{p-e282faac.js.map → p-e92576a9.js.map} +1 -1
  152. package/dist/components/{p-4e5ccabd.js → p-fa2fe9ca.js} +2 -2
  153. package/dist/components/{p-4e5ccabd.js.map → p-fa2fe9ca.js.map} +1 -1
  154. package/dist/components/{p-541e8c61.js → p-fd08bfe0.js} +4 -4
  155. package/dist/components/{p-541e8c61.js.map → p-fd08bfe0.js.map} +1 -1
  156. package/dist/components/{p-6956beb9.js → p-fe37ade8.js} +5 -5
  157. package/dist/components/{p-6956beb9.js.map → p-fe37ade8.js.map} +1 -1
  158. package/dist/components/stzh-accordion-item.js +1 -1
  159. package/dist/components/stzh-actions.js +1 -1
  160. package/dist/components/stzh-actionset.js +1 -1
  161. package/dist/components/stzh-amount.js +4 -4
  162. package/dist/components/stzh-anchornav.js +2 -2
  163. package/dist/components/stzh-app-bar.js +1 -1
  164. package/dist/components/stzh-app-nav.js +1 -1
  165. package/dist/components/stzh-appointments.js +10 -10
  166. package/dist/components/stzh-archivelist.js +3 -3
  167. package/dist/components/stzh-audio.js +2 -2
  168. package/dist/components/stzh-banner.js +1 -1
  169. package/dist/components/stzh-bathstatus-item.js +1 -1
  170. package/dist/components/stzh-bathstatus-list.js +3 -3
  171. package/dist/components/stzh-button.js +1 -1
  172. package/dist/components/stzh-calendar.js +1 -1
  173. package/dist/components/stzh-card-navigation.js +1 -1
  174. package/dist/components/stzh-card-searchresult.js +8 -8
  175. package/dist/components/stzh-card-superteaser.js +8 -8
  176. package/dist/components/stzh-card.js +1 -1
  177. package/dist/components/stzh-cardlist.js +1 -1
  178. package/dist/components/stzh-carousel.js +1 -1
  179. package/dist/components/stzh-checkbox.js +1 -1
  180. package/dist/components/stzh-checkboxgroup.js +2 -2
  181. package/dist/components/stzh-chip.js +1 -1
  182. package/dist/components/stzh-chipselect.js +1 -1
  183. package/dist/components/stzh-clamp.js +1 -1
  184. package/dist/components/stzh-contact-cv.js +1 -1
  185. package/dist/components/stzh-contact.js +2 -2
  186. package/dist/components/stzh-cspace.js +1 -1
  187. package/dist/components/stzh-cta.js +2 -2
  188. package/dist/components/stzh-datalist-item.js +1 -1
  189. package/dist/components/stzh-datalist.js +1 -1
  190. package/dist/components/stzh-datamessagelist-item.js +6 -6
  191. package/dist/components/stzh-datatable.js +10 -10
  192. package/dist/components/stzh-datepicker.js +1 -1
  193. package/dist/components/stzh-daterange.js +2 -2
  194. package/dist/components/stzh-details.js +1 -1
  195. package/dist/components/stzh-dialog.js +1 -1
  196. package/dist/components/stzh-disturber.js +2 -2
  197. package/dist/components/stzh-dropdown.js +1 -1
  198. package/dist/components/stzh-editor.js +1 -1
  199. package/dist/components/stzh-eventinfo.js +3 -3
  200. package/dist/components/stzh-feedreader-item.js +1 -1
  201. package/dist/components/stzh-feedreader.js +4 -4
  202. package/dist/components/stzh-fieldset.js +1 -1
  203. package/dist/components/stzh-fieldset.js.map +1 -1
  204. package/dist/components/stzh-figure.js +1 -1
  205. package/dist/components/stzh-footer.js +2 -2
  206. package/dist/components/stzh-gallery.js +3 -3
  207. package/dist/components/stzh-geo-ref-data.js +13 -13
  208. package/dist/components/stzh-ghettobox.js +1 -1
  209. package/dist/components/stzh-header.js +1 -1
  210. package/dist/components/stzh-homepage-service-highlights.js +1 -1
  211. package/dist/components/stzh-http-error.js +1 -1
  212. package/dist/components/stzh-iframe.js +1 -1
  213. package/dist/components/stzh-input.js +1 -1
  214. package/dist/components/stzh-link.js +1 -1
  215. package/dist/components/stzh-menu-item.js +1 -1
  216. package/dist/components/stzh-message.js +1 -1
  217. package/dist/components/stzh-microsite-teaserlist.js +11 -11
  218. package/dist/components/stzh-monthyearpicker.js +2 -2
  219. package/dist/components/stzh-offline-indicator.js +3 -3
  220. package/dist/components/stzh-pagebottom.js +4 -4
  221. package/dist/components/stzh-pagecontent.js +1 -1
  222. package/dist/components/stzh-pagetitle-hero.js +1 -1
  223. package/dist/components/stzh-pagetitle-home.js +1 -1
  224. package/dist/components/stzh-pagetitle.js +1 -1
  225. package/dist/components/stzh-pagination.js +1 -1
  226. package/dist/components/stzh-panorama.js +6 -6
  227. package/dist/components/stzh-pi-content-navigation.js +1 -1
  228. package/dist/components/stzh-pi-pagetitle.js +1 -1
  229. package/dist/components/stzh-pi-teaser.js +1 -1
  230. package/dist/components/stzh-poicard.js +1 -1
  231. package/dist/components/stzh-poilist.js +9 -9
  232. package/dist/components/stzh-popover.js +1 -1
  233. package/dist/components/stzh-print.js +1 -1
  234. package/dist/components/stzh-radio.js +1 -1
  235. package/dist/components/stzh-radiogroup.js +1 -1
  236. package/dist/components/stzh-readspeaker.js +2 -2
  237. package/dist/components/stzh-saptcha.js +3 -3
  238. package/dist/components/stzh-scrollup.js +1 -1
  239. package/dist/components/stzh-search.js +10 -10
  240. package/dist/components/stzh-section.js +34 -3
  241. package/dist/components/stzh-section.js.map +1 -1
  242. package/dist/components/stzh-share.js +1 -1
  243. package/dist/components/stzh-sitemap.js +4 -4
  244. package/dist/components/stzh-socialmediastream.js +1 -1
  245. package/dist/components/stzh-sticky-actions.js +2 -2
  246. package/dist/components/stzh-sticky.js +1 -1
  247. package/dist/components/stzh-table.js +1 -1
  248. package/dist/components/stzh-tag.js +1 -1
  249. package/dist/components/stzh-textandimage.js +1 -1
  250. package/dist/components/stzh-timeline-item.js +1 -1
  251. package/dist/components/stzh-timepicker.js +2 -2
  252. package/dist/components/stzh-toast.js +1 -1
  253. package/dist/components/stzh-toastbar.js +1 -1
  254. package/dist/components/stzh-toggle.js +2 -2
  255. package/dist/components/stzh-tooltip.js +1 -1
  256. package/dist/components/stzh-twocolumns.js +1 -1
  257. package/dist/components/stzh-upload.js +40 -15
  258. package/dist/components/stzh-upload.js.map +1 -1
  259. package/dist/components/stzh-vbz-carousel.js +1 -1
  260. package/dist/components/stzh-vbz-intro.js +1 -1
  261. package/dist/components/stzh-vbz-majorticker.js +3 -3
  262. package/dist/components/stzh-vbz-ticker.js +2 -2
  263. package/dist/components/stzh-youtube.js +2 -2
  264. package/dist/esm/{app-globals-1e3146bc.js → app-globals-c2c993b0.js} +2 -2
  265. package/dist/esm/{app-globals-1e3146bc.js.map → app-globals-c2c993b0.js.map} +1 -1
  266. package/dist/esm/loader.js +2 -2
  267. package/dist/esm/stzh-accordion_3.entry.js +1 -1
  268. package/dist/esm/stzh-actions.entry.js +1 -1
  269. package/dist/esm/stzh-app-bar.entry.js +1 -1
  270. package/dist/esm/stzh-appointments.entry.js +1 -1
  271. package/dist/esm/stzh-audio.entry.js +1 -1
  272. package/dist/esm/stzh-badge_3.entry.js +1 -1
  273. package/dist/esm/stzh-bathstatus-list.entry.js +1 -1
  274. package/dist/esm/stzh-card-navigation.entry.js +1 -1
  275. package/dist/esm/stzh-card-searchresult.entry.js +1 -1
  276. package/dist/esm/stzh-card-superteaser.entry.js +1 -1
  277. package/dist/esm/stzh-card.entry.js +1 -1
  278. package/dist/esm/stzh-carousel.entry.js +1 -1
  279. package/dist/esm/stzh-checkbox_3.entry.js +1 -1
  280. package/dist/esm/stzh-checkboxgroup.entry.js +1 -1
  281. package/dist/esm/stzh-components.js +2 -2
  282. package/dist/esm/stzh-contact-cv.entry.js +1 -1
  283. package/dist/esm/stzh-contact.entry.js +1 -1
  284. package/dist/esm/stzh-cspace.entry.js +1 -1
  285. package/dist/esm/stzh-cta.entry.js +1 -1
  286. package/dist/esm/stzh-datalist_2.entry.js +1 -1
  287. package/dist/esm/stzh-datatable.entry.js +1 -1
  288. package/dist/esm/stzh-datepicker_3.entry.js +1 -1
  289. package/dist/esm/stzh-daterange.entry.js +1 -1
  290. package/dist/esm/stzh-details.entry.js +1 -1
  291. package/dist/esm/stzh-dialog.entry.js +1 -1
  292. package/dist/esm/stzh-disturber.entry.js +1 -1
  293. package/dist/esm/stzh-dropdown.entry.js +1 -1
  294. package/dist/esm/stzh-eventinfo.entry.js +1 -1
  295. package/dist/esm/stzh-feedreader-item.entry.js +1 -1
  296. package/dist/esm/stzh-feedreader.entry.js +1 -1
  297. package/dist/esm/stzh-fieldset.entry.js +1 -1
  298. package/dist/esm/stzh-fieldset.entry.js.map +1 -1
  299. package/dist/esm/stzh-figure.entry.js +1 -1
  300. package/dist/esm/stzh-footer.entry.js +1 -1
  301. package/dist/esm/stzh-ghettobox_3.entry.js +1 -1
  302. package/dist/esm/stzh-input.entry.js +1 -1
  303. package/dist/esm/stzh-link.entry.js +1 -1
  304. package/dist/esm/stzh-menu_2.entry.js +1 -1
  305. package/dist/esm/stzh-pagecontent.entry.js +1 -1
  306. package/dist/esm/stzh-pagetitle-hero.entry.js +1 -1
  307. package/dist/esm/stzh-pagetitle-home.entry.js +1 -1
  308. package/dist/esm/stzh-pagetitle.entry.js +1 -1
  309. package/dist/esm/stzh-pi-content-navigation.entry.js +1 -1
  310. package/dist/esm/stzh-pi-pagetitle.entry.js +1 -1
  311. package/dist/esm/stzh-pi-teaser.entry.js +1 -1
  312. package/dist/esm/stzh-popover.entry.js +1 -1
  313. package/dist/esm/stzh-print_2.entry.js +1 -1
  314. package/dist/esm/stzh-readspeaker.entry.js +1 -1
  315. package/dist/esm/stzh-scrollup.entry.js +1 -1
  316. package/dist/esm/stzh-search.entry.js +1 -1
  317. package/dist/esm/stzh-section.entry.js +35 -3
  318. package/dist/esm/stzh-section.entry.js.map +1 -1
  319. package/dist/esm/stzh-socialmediastream.entry.js +1 -1
  320. package/dist/esm/stzh-sticky-actions.entry.js +1 -1
  321. package/dist/esm/stzh-sticky.entry.js +1 -1
  322. package/dist/esm/stzh-table.entry.js +1 -1
  323. package/dist/esm/stzh-textandimage.entry.js +1 -1
  324. package/dist/esm/stzh-timeline-item.entry.js +1 -1
  325. package/dist/esm/stzh-toast_2.entry.js +1 -1
  326. package/dist/esm/stzh-toggle.entry.js +1 -1
  327. package/dist/esm/stzh-tooltip.entry.js +1 -1
  328. package/dist/esm/stzh-twocolumns.entry.js +1 -1
  329. package/dist/esm/stzh-upload.entry.js +32 -8
  330. package/dist/esm/stzh-upload.entry.js.map +1 -1
  331. package/dist/esm/{utils-299e480e.js → utils-176832ef.js} +9 -4
  332. package/dist/esm/utils-176832ef.js.map +1 -0
  333. package/dist/stzh-components/{p-78c8f89c.entry.js → p-0f62354b.entry.js} +2 -2
  334. package/dist/stzh-components/{p-5b6ec6af.entry.js → p-11178abd.entry.js} +2 -2
  335. package/dist/stzh-components/{p-43feae69.entry.js → p-166a7e44.entry.js} +2 -2
  336. package/dist/stzh-components/p-16706623.js +2 -0
  337. package/dist/stzh-components/p-16706623.js.map +1 -0
  338. package/dist/stzh-components/{p-9e993ad4.entry.js → p-16cabc02.entry.js} +2 -2
  339. package/dist/stzh-components/{p-2d1b7218.entry.js → p-17000794.entry.js} +2 -2
  340. package/dist/stzh-components/{p-75143e35.entry.js → p-18d4a327.entry.js} +2 -2
  341. package/dist/stzh-components/{p-9b7584c1.entry.js → p-19afc465.entry.js} +2 -2
  342. package/dist/stzh-components/{p-9fbc9641.entry.js → p-20e5bfdc.entry.js} +2 -2
  343. package/dist/stzh-components/{p-d41803d1.js → p-247de09a.js} +2 -2
  344. package/dist/stzh-components/{p-358c6c04.entry.js → p-26a1707d.entry.js} +2 -2
  345. package/dist/stzh-components/{p-1ae5f48a.entry.js → p-27e525b1.entry.js} +2 -2
  346. package/dist/stzh-components/{p-5225e901.entry.js → p-2dab7000.entry.js} +2 -2
  347. package/dist/stzh-components/{p-7b524c7c.entry.js → p-2ed0423d.entry.js} +2 -2
  348. package/dist/stzh-components/p-34c25537.entry.js +2 -0
  349. package/dist/stzh-components/p-34c25537.entry.js.map +1 -0
  350. package/dist/stzh-components/{p-e58aa9fa.entry.js → p-34fefe7e.entry.js} +2 -2
  351. package/dist/stzh-components/{p-a3ff8d5e.entry.js → p-3d9303bc.entry.js} +2 -2
  352. package/dist/stzh-components/{p-23678dfc.entry.js → p-45272485.entry.js} +2 -2
  353. package/dist/stzh-components/{p-646958e0.entry.js → p-51057ba5.entry.js} +2 -2
  354. package/dist/stzh-components/{p-1bd35435.entry.js → p-517e59b0.entry.js} +2 -2
  355. package/dist/stzh-components/{p-45430f1b.entry.js → p-58d5b963.entry.js} +2 -2
  356. package/dist/stzh-components/{p-84f8307b.entry.js → p-5dd3d380.entry.js} +2 -2
  357. package/dist/stzh-components/{p-2348bef0.entry.js → p-5f9a792e.entry.js} +2 -2
  358. package/dist/stzh-components/{p-e10ff24f.entry.js → p-63d1115e.entry.js} +2 -2
  359. package/dist/stzh-components/{p-1807c812.entry.js → p-64ef2161.entry.js} +2 -2
  360. package/dist/stzh-components/{p-0e56ac34.entry.js → p-662a3682.entry.js} +2 -2
  361. package/dist/stzh-components/{p-73bec4de.entry.js → p-6b361969.entry.js} +2 -2
  362. package/dist/stzh-components/{p-1a0bd7f8.entry.js → p-6cca00bd.entry.js} +2 -2
  363. package/dist/stzh-components/{p-e47c1746.entry.js → p-6d4293ad.entry.js} +2 -2
  364. package/dist/stzh-components/{p-ce5d45d0.entry.js → p-843072dc.entry.js} +2 -2
  365. package/dist/stzh-components/{p-c532d270.entry.js → p-84c39bd8.entry.js} +2 -2
  366. package/dist/stzh-components/{p-162ba6dd.entry.js → p-8e20578b.entry.js} +2 -2
  367. package/dist/stzh-components/{p-bfe11b11.entry.js → p-8ea4aaca.entry.js} +2 -2
  368. package/dist/stzh-components/p-8ee35857.entry.js +2 -0
  369. package/dist/stzh-components/p-8ee35857.entry.js.map +1 -0
  370. package/dist/stzh-components/{p-8856651e.entry.js → p-909c12df.entry.js} +2 -2
  371. package/dist/stzh-components/{p-085e0fa9.entry.js → p-94f3343e.entry.js} +2 -2
  372. package/dist/stzh-components/{p-94f45779.entry.js → p-97ba7310.entry.js} +2 -2
  373. package/dist/stzh-components/{p-a5dbb0bb.entry.js → p-97eff793.entry.js} +2 -2
  374. package/dist/stzh-components/{p-66c866e5.entry.js → p-9cbfeb26.entry.js} +2 -2
  375. package/dist/stzh-components/p-9cbfeb26.entry.js.map +1 -0
  376. package/dist/stzh-components/{p-d7c08110.entry.js → p-9f3eb7b0.entry.js} +2 -2
  377. package/dist/stzh-components/{p-fe7cdf52.entry.js → p-a1c188a6.entry.js} +2 -2
  378. package/dist/stzh-components/{p-58100168.entry.js → p-a4dac2d8.entry.js} +2 -2
  379. package/dist/stzh-components/{p-84cedd61.entry.js → p-ab53bb9a.entry.js} +2 -2
  380. package/dist/stzh-components/{p-621c4692.entry.js → p-b5c47a5f.entry.js} +2 -2
  381. package/dist/stzh-components/{p-ab026312.entry.js → p-bbd5d731.entry.js} +2 -2
  382. package/dist/stzh-components/{p-b8bfefa4.entry.js → p-c0cfecf8.entry.js} +2 -2
  383. package/dist/stzh-components/{p-08e8df77.entry.js → p-c350d522.entry.js} +2 -2
  384. package/dist/stzh-components/{p-c984b936.entry.js → p-c3a7f080.entry.js} +2 -2
  385. package/dist/stzh-components/{p-85018afa.entry.js → p-c5c85b13.entry.js} +2 -2
  386. package/dist/stzh-components/{p-c3cf240b.entry.js → p-c883103f.entry.js} +2 -2
  387. package/dist/stzh-components/{p-9f91ca1f.entry.js → p-caeb3d61.entry.js} +2 -2
  388. package/dist/stzh-components/{p-0285d7d6.entry.js → p-d04c482f.entry.js} +2 -2
  389. package/dist/stzh-components/{p-6a3db3bd.entry.js → p-d1321280.entry.js} +2 -2
  390. package/dist/stzh-components/{p-bd220190.entry.js → p-d52e27d8.entry.js} +2 -2
  391. package/dist/stzh-components/{p-129faf7d.entry.js → p-d678526e.entry.js} +2 -2
  392. package/dist/stzh-components/{p-2d6bb9b9.entry.js → p-d7c7067f.entry.js} +2 -2
  393. package/dist/stzh-components/{p-b85661bd.entry.js → p-e0bdfdfb.entry.js} +2 -2
  394. package/dist/stzh-components/{p-47288fae.entry.js → p-ed793b23.entry.js} +2 -2
  395. package/dist/stzh-components/{p-8d700020.entry.js → p-f0b353f1.entry.js} +2 -2
  396. package/dist/stzh-components/{p-c52c2f97.entry.js → p-f6b01155.entry.js} +2 -2
  397. package/dist/stzh-components/{p-0c093d08.entry.js → p-f95d7352.entry.js} +2 -2
  398. package/dist/stzh-components/{p-433697be.entry.js → p-fa6f50d5.entry.js} +2 -2
  399. package/dist/stzh-components/stzh-components.esm.js +1 -1
  400. package/dist/stzh-components/stzh-components.esm.js.map +1 -1
  401. package/dist/types/components/stzh-section/stzh-section.d.ts +8 -0
  402. package/dist/types/components/stzh-upload/stzh-upload.d.ts +1 -0
  403. package/dist/types/utils/utils.d.ts +1 -0
  404. package/package.json +1 -1
  405. package/dist/cjs/utils-3e79835b.js.map +0 -1
  406. package/dist/components/p-073888ce.js.map +0 -1
  407. package/dist/esm/utils-299e480e.js.map +0 -1
  408. package/dist/stzh-components/p-66c866e5.entry.js.map +0 -1
  409. package/dist/stzh-components/p-70390e50.entry.js +0 -2
  410. package/dist/stzh-components/p-70390e50.entry.js.map +0 -1
  411. package/dist/stzh-components/p-b348bac5.entry.js +0 -2
  412. package/dist/stzh-components/p-b348bac5.entry.js.map +0 -1
  413. package/dist/stzh-components/p-ebd6dda5.js +0 -2
  414. package/dist/stzh-components/p-ebd6dda5.js.map +0 -1
  415. /package/dist/stzh-components/{p-78c8f89c.entry.js.map → p-0f62354b.entry.js.map} +0 -0
  416. /package/dist/stzh-components/{p-5b6ec6af.entry.js.map → p-11178abd.entry.js.map} +0 -0
  417. /package/dist/stzh-components/{p-43feae69.entry.js.map → p-166a7e44.entry.js.map} +0 -0
  418. /package/dist/stzh-components/{p-9e993ad4.entry.js.map → p-16cabc02.entry.js.map} +0 -0
  419. /package/dist/stzh-components/{p-2d1b7218.entry.js.map → p-17000794.entry.js.map} +0 -0
  420. /package/dist/stzh-components/{p-75143e35.entry.js.map → p-18d4a327.entry.js.map} +0 -0
  421. /package/dist/stzh-components/{p-9b7584c1.entry.js.map → p-19afc465.entry.js.map} +0 -0
  422. /package/dist/stzh-components/{p-9fbc9641.entry.js.map → p-20e5bfdc.entry.js.map} +0 -0
  423. /package/dist/stzh-components/{p-d41803d1.js.map → p-247de09a.js.map} +0 -0
  424. /package/dist/stzh-components/{p-358c6c04.entry.js.map → p-26a1707d.entry.js.map} +0 -0
  425. /package/dist/stzh-components/{p-1ae5f48a.entry.js.map → p-27e525b1.entry.js.map} +0 -0
  426. /package/dist/stzh-components/{p-5225e901.entry.js.map → p-2dab7000.entry.js.map} +0 -0
  427. /package/dist/stzh-components/{p-7b524c7c.entry.js.map → p-2ed0423d.entry.js.map} +0 -0
  428. /package/dist/stzh-components/{p-e58aa9fa.entry.js.map → p-34fefe7e.entry.js.map} +0 -0
  429. /package/dist/stzh-components/{p-a3ff8d5e.entry.js.map → p-3d9303bc.entry.js.map} +0 -0
  430. /package/dist/stzh-components/{p-23678dfc.entry.js.map → p-45272485.entry.js.map} +0 -0
  431. /package/dist/stzh-components/{p-646958e0.entry.js.map → p-51057ba5.entry.js.map} +0 -0
  432. /package/dist/stzh-components/{p-1bd35435.entry.js.map → p-517e59b0.entry.js.map} +0 -0
  433. /package/dist/stzh-components/{p-45430f1b.entry.js.map → p-58d5b963.entry.js.map} +0 -0
  434. /package/dist/stzh-components/{p-84f8307b.entry.js.map → p-5dd3d380.entry.js.map} +0 -0
  435. /package/dist/stzh-components/{p-2348bef0.entry.js.map → p-5f9a792e.entry.js.map} +0 -0
  436. /package/dist/stzh-components/{p-e10ff24f.entry.js.map → p-63d1115e.entry.js.map} +0 -0
  437. /package/dist/stzh-components/{p-1807c812.entry.js.map → p-64ef2161.entry.js.map} +0 -0
  438. /package/dist/stzh-components/{p-0e56ac34.entry.js.map → p-662a3682.entry.js.map} +0 -0
  439. /package/dist/stzh-components/{p-73bec4de.entry.js.map → p-6b361969.entry.js.map} +0 -0
  440. /package/dist/stzh-components/{p-1a0bd7f8.entry.js.map → p-6cca00bd.entry.js.map} +0 -0
  441. /package/dist/stzh-components/{p-e47c1746.entry.js.map → p-6d4293ad.entry.js.map} +0 -0
  442. /package/dist/stzh-components/{p-ce5d45d0.entry.js.map → p-843072dc.entry.js.map} +0 -0
  443. /package/dist/stzh-components/{p-c532d270.entry.js.map → p-84c39bd8.entry.js.map} +0 -0
  444. /package/dist/stzh-components/{p-162ba6dd.entry.js.map → p-8e20578b.entry.js.map} +0 -0
  445. /package/dist/stzh-components/{p-bfe11b11.entry.js.map → p-8ea4aaca.entry.js.map} +0 -0
  446. /package/dist/stzh-components/{p-8856651e.entry.js.map → p-909c12df.entry.js.map} +0 -0
  447. /package/dist/stzh-components/{p-085e0fa9.entry.js.map → p-94f3343e.entry.js.map} +0 -0
  448. /package/dist/stzh-components/{p-94f45779.entry.js.map → p-97ba7310.entry.js.map} +0 -0
  449. /package/dist/stzh-components/{p-a5dbb0bb.entry.js.map → p-97eff793.entry.js.map} +0 -0
  450. /package/dist/stzh-components/{p-d7c08110.entry.js.map → p-9f3eb7b0.entry.js.map} +0 -0
  451. /package/dist/stzh-components/{p-fe7cdf52.entry.js.map → p-a1c188a6.entry.js.map} +0 -0
  452. /package/dist/stzh-components/{p-58100168.entry.js.map → p-a4dac2d8.entry.js.map} +0 -0
  453. /package/dist/stzh-components/{p-84cedd61.entry.js.map → p-ab53bb9a.entry.js.map} +0 -0
  454. /package/dist/stzh-components/{p-621c4692.entry.js.map → p-b5c47a5f.entry.js.map} +0 -0
  455. /package/dist/stzh-components/{p-ab026312.entry.js.map → p-bbd5d731.entry.js.map} +0 -0
  456. /package/dist/stzh-components/{p-b8bfefa4.entry.js.map → p-c0cfecf8.entry.js.map} +0 -0
  457. /package/dist/stzh-components/{p-08e8df77.entry.js.map → p-c350d522.entry.js.map} +0 -0
  458. /package/dist/stzh-components/{p-c984b936.entry.js.map → p-c3a7f080.entry.js.map} +0 -0
  459. /package/dist/stzh-components/{p-85018afa.entry.js.map → p-c5c85b13.entry.js.map} +0 -0
  460. /package/dist/stzh-components/{p-c3cf240b.entry.js.map → p-c883103f.entry.js.map} +0 -0
  461. /package/dist/stzh-components/{p-9f91ca1f.entry.js.map → p-caeb3d61.entry.js.map} +0 -0
  462. /package/dist/stzh-components/{p-0285d7d6.entry.js.map → p-d04c482f.entry.js.map} +0 -0
  463. /package/dist/stzh-components/{p-6a3db3bd.entry.js.map → p-d1321280.entry.js.map} +0 -0
  464. /package/dist/stzh-components/{p-bd220190.entry.js.map → p-d52e27d8.entry.js.map} +0 -0
  465. /package/dist/stzh-components/{p-129faf7d.entry.js.map → p-d678526e.entry.js.map} +0 -0
  466. /package/dist/stzh-components/{p-2d6bb9b9.entry.js.map → p-d7c7067f.entry.js.map} +0 -0
  467. /package/dist/stzh-components/{p-b85661bd.entry.js.map → p-e0bdfdfb.entry.js.map} +0 -0
  468. /package/dist/stzh-components/{p-47288fae.entry.js.map → p-ed793b23.entry.js.map} +0 -0
  469. /package/dist/stzh-components/{p-8d700020.entry.js.map → p-f0b353f1.entry.js.map} +0 -0
  470. /package/dist/stzh-components/{p-c52c2f97.entry.js.map → p-f6b01155.entry.js.map} +0 -0
  471. /package/dist/stzh-components/{p-0c093d08.entry.js.map → p-f95d7352.entry.js.map} +0 -0
  472. /package/dist/stzh-components/{p-433697be.entry.js.map → p-fa6f50d5.entry.js.map} +0 -0
@@ -30,6 +30,11 @@ function setPropsIfNull(element, attributes) {
30
30
  }
31
31
  });
32
32
  }
33
+ function setProps(element, attributes) {
34
+ Object.keys(attributes).forEach((attribute) => {
35
+ element[attribute] = attributes[attribute];
36
+ });
37
+ }
33
38
  function isStzhElement(element) {
34
39
  if (!element || element.nodeType !== 1) {
35
40
  return false;
@@ -63,7 +68,7 @@ function isVisible(element) {
63
68
  // @ts-ignore
64
69
  return element.checkVisibility({
65
70
  checkOpacity: false,
66
- checkVisibilityCSS: false,
71
+ checkVisibilityCSS: false
67
72
  });
68
73
  }
69
74
  else {
@@ -80,7 +85,7 @@ function offset(element) {
80
85
  let win = element.ownerDocument.defaultView;
81
86
  return {
82
87
  top: rect.top + win.pageYOffset,
83
- left: rect.left + win.pageXOffset,
88
+ left: rect.left + win.pageXOffset
84
89
  };
85
90
  }
86
91
  async function raf() {
@@ -186,6 +191,7 @@ exports.isStzhElement = isStzhElement;
186
191
  exports.isVisible = isVisible;
187
192
  exports.offset = offset;
188
193
  exports.raf = raf;
194
+ exports.setProps = setProps;
189
195
  exports.setPropsIfNull = setPropsIfNull;
190
196
 
191
- //# sourceMappingURL=utils-3e79835b.js.map
197
+ //# sourceMappingURL=utils-43e6c48e.js.map
@@ -0,0 +1 @@
1
+ {"file":"utils-43e6c48e.js","mappings":";;;;AAEA;AACA;SACgB,OAAO,CAAC,EAAe,EAAE,IAAa;;EAEpD,IAAI,IAAI,EAAE;IACR,OAAO,EAAE,CAAC,aAAa,CAAC,UAAU,IAAI,IAAI,CAAC,KAAK,IAAI,CAAC;GACtD;;EAGD,OAAO,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI;IAC1C,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;MACtE,OAAO,IAAI,CAAC;KACb;IAED,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC,YAAY,EAAE;MACvC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EA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;;;;;;;;;;;;;","names":["dashCase"],"sources":["src/utils/utils.ts"],"sourcesContent":["import { dashCase } from \"./string-utils\";\n\n// Determines whether an element has a slot. If name is specified, the function will look for a corresponding named\n// slot, otherwise it will look for a \"default\" slot (e.g. a non-empty text node or an element with no slot attribute).\nexport function hasSlot(el: HTMLElement, name?: string) {\n // Look for a named slot\n if (name) {\n return el.querySelector(`[slot=\"${name}\"]`) !== null;\n }\n\n // Look for a default slot\n return Array.from(childNodes(el)).some((node) => {\n if (node.nodeType === node.TEXT_NODE && node.textContent.trim() !== \"\") {\n return true;\n }\n\n if (node.nodeType === node.ELEMENT_NODE) {\n const el = node as HTMLElement;\n if (!el.hasAttribute(\"slot\")) {\n return true;\n }\n }\n\n return false;\n });\n}\n\nexport function setPropsIfNull(element: Element, attributes: any) {\n Object.keys(attributes).forEach((attribute) => {\n if (element.getAttribute(dashCase(attribute)) === null) {\n element[attribute] = attributes[attribute];\n }\n });\n}\n\nexport function setProps(element: Element, attributes: any) {\n Object.keys(attributes).forEach((attribute) => {\n element[attribute] = attributes[attribute];\n });\n}\n\nexport function isStzhElement(element: Element) {\n if (!element || element.nodeType !== 1) {\n return false;\n }\n\n return element.tagName.toLowerCase().indexOf(\"stzh-\") === 0;\n}\n\n// returns content of <meta name=\"\" content=\"\"> tags or '' if empty/non existant\nexport function getMeta(name) {\n const meta = document.querySelector(\n `meta[name=\"${name}\"],[property=\"${name}\"]`\n );\n return meta ? meta.getAttribute(\"content\") : \"\";\n}\n\nexport function parents(node: Element | Node) {\n const parents = [];\n\n while (node) {\n parents.unshift(node);\n node = node.parentNode;\n }\n\n return parents;\n}\n\nexport function childNodes(node: Element) {\n const childNodes = node.childNodes;\n\n // check if element is stencil element without shadow dom\n // and then detect elements that were slotted into the element\n if (node[\"s-sc\"]) {\n const result = [];\n\n for (let i = 0; i < childNodes.length; i++) {\n const slot = childNodes[i][\"s-nr\"];\n\n if (slot) {\n result.push(slot);\n }\n }\n\n return result;\n }\n\n return Array.from(childNodes);\n}\n\nexport function isVisible(element: HTMLElement): boolean {\n // @ts-ignore\n if (typeof element.checkVisibility !== \"undefined\") {\n // @ts-ignore\n return element.checkVisibility({\n checkOpacity: false,\n checkVisibilityCSS: false\n });\n } else {\n return !!(\n element.offsetWidth ||\n element.offsetHeight ||\n element.getClientRects().length\n );\n }\n}\n\nexport function offset(element): { top: number; left: number } {\n if (!element.getClientRects().length) {\n return { top: 0, left: 0 };\n }\n\n let rect = element.getBoundingClientRect();\n let win = element.ownerDocument.defaultView;\n\n return {\n top: rect.top + win.pageYOffset,\n left: rect.left + win.pageXOffset\n };\n}\n\nexport async function raf() {\n return new Promise<void>((resolve) => {\n requestAnimationFrame(() => {\n resolve();\n });\n });\n}\n\nexport async function setTimeout(time: number) {\n return new Promise<void>((resolve) => {\n window.setTimeout(() => {\n resolve();\n }, time);\n });\n}\n\nexport enum StzhEnvironmentEnum {\n UNKNOWN = \"UNKNOWN\",\n DEV = \"DEV\",\n UAT = \"UAT\",\n PROD = \"PROD\",\n}\n\nexport function getStzhEnvironment(): StzhEnvironmentEnum {\n const url = window.location.href;\n if (\n url.includes(\"test.stadt-zuerich.loc\") ||\n url.match(/\\.dev\\.cmp\\.szh\\.loc/)\n ) {\n return StzhEnvironmentEnum.DEV;\n } else if (\n url.includes(\"integ.stadt-zuerich.ch\") ||\n url.includes(\"stzh-desi-unic-preview.netlify.app\") ||\n url.match(/\\.uat\\.cmp\\.szh\\.loc/)\n ) {\n return StzhEnvironmentEnum.UAT;\n } else if (\n url.includes(\"https://www.stadt-zuerich.ch\") ||\n url.includes(\"designsystem.stadt-zuerich.ch\") ||\n url.match(/\\.cmp\\.szh\\.loc/)\n ) {\n return StzhEnvironmentEnum.PROD;\n } else {\n return StzhEnvironmentEnum.UNKNOWN;\n }\n}\n\nexport function addWordBreakToLinks(links: HTMLElement[]) {\n links.forEach((link) => {\n if (link.textContent?.includes(\"_\")) {\n link.innerHTML = link.textContent.replace(/_/g, \"_<wbr>\");\n }\n });\n}\n\n// `extras.experimentalSlotFixes` stencil config flag resolves cloning light dom elements\n// so our own cloneElement / cloneWrappedStzhElement helpers are not needed right now\n// (used before in cardlist and sortable component).\n\n// export function children(node: Element) {\n// return childNodes(node).map((n: any) => n.nodeType === 1);\n// }\n\n// const nativeCloneNodeFn = Node.prototype.cloneNode;\n\n// export function cloneElement(node: Element, deep: boolean) {\n// const clonedNode = nativeCloneNodeFn.call(node, false);\n// const srcChildNodes = childNodes(node);\n\n// if (deep) {\n// for (let i = 0; i < srcChildNodes.length; i++) {\n// if (srcChildNodes[i].nodeType !== 2) {\n// const childClone = cloneElement(srcChildNodes[i], true);\n// clonedNode.appendChild(childClone);\n// }\n// }\n// }\n\n// return clonedNode;\n// }\n\n// // Clone an stzh-* element that is using stencil polyfilled slots (no shadow dom)\n// // and potentially wrapped in normal elements (e.g. angular component)\n// export function cloneWrappedStzhElement(elementToClone: Element): [Element, Element, Element] {\n// let clonedElement: Element;\n// let clonedStzhElement: Element;\n// let originalStzhElement: Element;\n\n// if (isStzhElement(elementToClone)) {\n// clonedElement = cloneElement(elementToClone, true);\n// clonedStzhElement = clonedElement;\n// originalStzhElement = elementToClone;\n// } else {\n// clonedElement = elementToClone.cloneNode() as Element;\n\n// let clonedInnerElementLast: Element = clonedElement;\n// let originalInnerElementLast: Element = elementToClone;\n\n// // clone inner root elements separately until we find a stzh element\n// while (originalInnerElementLast.children.length === 1 && !isStzhElement(originalInnerElementLast.children[0])) {\n// originalInnerElementLast = originalInnerElementLast.children[0];\n// const clonedInnerElementCurrent = originalInnerElementLast.cloneNode() as Element;\n\n// clonedInnerElementLast.appendChild(clonedInnerElementCurrent);\n// clonedInnerElementLast = clonedInnerElementCurrent;\n// }\n\n// if (isStzhElement(originalInnerElementLast.children[0])) {\n// clonedStzhElement = cloneElement(originalInnerElementLast.children[0], true);\n// originalStzhElement = originalInnerElementLast.children[0];\n// clonedInnerElementLast.appendChild(clonedStzhElement);\n// } else {\n// // no root stzh element found, so we give up and just deep clone the root\n// clonedElement = cloneElement(elementToClone, true);\n// }\n// }\n\n// return [clonedElement, clonedStzhElement, originalStzhElement];\n// }\n"],"version":3}
@@ -303,6 +303,48 @@
303
303
  margin-bottom: var(--stzh-space-small);
304
304
  }
305
305
  }
306
+ :host ::slotted(.stzh-fieldset-row > stzh-fieldset),
307
+ :host ::slotted(.layout_column > .stzh-fieldset-row > stzh-fieldset),
308
+ :host ::slotted(stzh-fieldset) {
309
+ margin-top: var(--stzh-space-medium);
310
+ }
311
+ @media screen and (min-width: 600px) {
312
+ :host ::slotted(.stzh-fieldset-row > stzh-fieldset),
313
+ :host ::slotted(.layout_column > .stzh-fieldset-row > stzh-fieldset),
314
+ :host ::slotted(stzh-fieldset) {
315
+ margin-top: var(--stzh-space-large);
316
+ }
317
+ }
318
+ @media screen and (min-width: 900px) {
319
+ :host ::slotted(.stzh-fieldset-row > stzh-fieldset),
320
+ :host ::slotted(.layout_column > .stzh-fieldset-row > stzh-fieldset),
321
+ :host ::slotted(stzh-fieldset) {
322
+ margin-top: var(--stzh-space-xlarge);
323
+ }
324
+ }
325
+ @media screen and (min-width: 1260px) {
326
+ :host ::slotted(.stzh-fieldset-row > stzh-fieldset),
327
+ :host ::slotted(.layout_column > .stzh-fieldset-row > stzh-fieldset),
328
+ :host ::slotted(stzh-fieldset) {
329
+ margin-top: var(--stzh-space-xxlarge);
330
+ }
331
+ }
332
+ :host ::slotted(.stzh-fieldset-row > stzh-fieldset) .stzh-fieldset__legend,
333
+ :host ::slotted(.layout_column > .stzh-fieldset-row > stzh-fieldset) .stzh-fieldset__legend,
334
+ :host ::slotted(stzh-fieldset) .stzh-fieldset__legend {
335
+ font-size: var(--stzh-font-curve-p1-default-font-size, var(--stzh-font-milli-font-size));
336
+ line-height: var(--stzh-font-curve-p1-default-heading-line-height, var(--stzh-font-milli-heading-line-height));
337
+ letter-spacing: var(--stzh-font-curve-p1-default-heading-letter-spacing);
338
+ }
339
+ @media screen and (min-width: 900px) {
340
+ :host ::slotted(.stzh-fieldset-row > stzh-fieldset) .stzh-fieldset__legend,
341
+ :host ::slotted(.layout_column > .stzh-fieldset-row > stzh-fieldset) .stzh-fieldset__legend,
342
+ :host ::slotted(stzh-fieldset) .stzh-fieldset__legend {
343
+ font-size: var(--stzh-font-curve-p1-medium-font-size, var(--stzh-font-centi-font-size));
344
+ line-height: var(--stzh-font-curve-p1-medium-heading-line-height, var(--stzh-font-centi-heading-line-height));
345
+ letter-spacing: var(--stzh-font-curve-p1-medium-heading-letter-spacing);
346
+ }
347
+ }
306
348
  :host > .section > stzh-chipgroup, :host > stzh-chipgroup, :host > .section > stzh-chipselect, :host > stzh-chipselect {
307
349
  margin-bottom: var(--stzh-space-xlarge);
308
350
  }
@@ -1,10 +1,38 @@
1
- import { Host, h } from "@stencil/core";
1
+ import { h, Host } from "@stencil/core";
2
+ import { setProps } from "../../utils/utils";
2
3
  /**
3
4
  * @slot - Slot for any content
4
5
  * @slot heading - Slot for `stzh-heading` element
5
6
  */
6
7
  export class StzhSection {
7
8
  constructor() {
9
+ /**
10
+ * Searches for any slotted `stzh-cspace` or `stzh-richtext` elements (or their descendants)
11
+ * and sets their properties accordingly.
12
+ */
13
+ this.init = () => {
14
+ if (this.variant !== "contextbox" || !this.slotElement) {
15
+ return;
16
+ }
17
+ const assignedElements = this.slotElement.assignedElements({ flatten: true });
18
+ const nestedCspaceOrRichtext = [];
19
+ // Check each assigned element and its descendants for a matching tag name
20
+ assignedElements.forEach((assignedElement) => {
21
+ if (assignedElement.matches("stzh-cspace, stzh-richtext")) {
22
+ nestedCspaceOrRichtext.push(assignedElement);
23
+ }
24
+ nestedCspaceOrRichtext.push(...Array.from(assignedElement.querySelectorAll("stzh-cspace, stzh-richtext")));
25
+ });
26
+ nestedCspaceOrRichtext.forEach(cspaceOrRichtext => {
27
+ setProps(cspaceOrRichtext, {
28
+ removeFirstMargin: true,
29
+ removeLastMargin: true
30
+ });
31
+ });
32
+ };
33
+ this.onSlotChange = () => {
34
+ this.init();
35
+ };
8
36
  this.variant = "default";
9
37
  this.background = "default";
10
38
  this.marginTop = "default";
@@ -13,13 +41,16 @@ export class StzhSection {
13
41
  this.paddingBottom = "default";
14
42
  this.breakout = false;
15
43
  }
44
+ componentDidLoad() {
45
+ this.init();
46
+ }
16
47
  render() {
17
48
  return (h(Host, null, h("section", { class: {
18
49
  "stzh-section": true,
19
- [`stzh-section--is-breakout`]: this.breakout,
50
+ "stzh-section--is-breakout": this.breakout,
20
51
  [`stzh-section--${this.variant}`]: !!this.variant,
21
- [`stzh-section--margin-bottom-${this.marginBottom}`]: !!this.marginBottom,
22
- } }, h("div", { class: "stzh-section__outer" }, h("div", { class: "stzh-section__heading" }, h("slot", { name: "heading" })), h("div", { class: "stzh-section__wrapper" }, h("slot", null))))));
52
+ [`stzh-section--margin-bottom-${this.marginBottom}`]: !!this.marginBottom
53
+ } }, h("div", { class: "stzh-section__outer" }, h("div", { class: "stzh-section__heading" }, h("slot", { name: "heading" })), h("div", { class: "stzh-section__wrapper" }, h("slot", { onSlotchange: this.onSlotChange, ref: el => (this.slotElement = el) }))))));
23
54
  }
24
55
  static get is() { return "stzh-section"; }
25
56
  static get encapsulation() { return "shadow"; }
@@ -1 +1 @@
1
- {"version":3,"file":"stzh-section.js","sourceRoot":"","sources":["../../../../src/components/stzh-section/stzh-section.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAEzD;;;GAGG;AAMH,MAAM,OAAO,WAAW;;mBAE4E,SAAS;sBAG5C,SAAS;qBAGf,SAAS;wBAGN,SAAS;sBAGX,SAAS;yBAGN,SAAS;oBAGzB,KAAK;;EAElD,MAAM;IACJ,OAAO,CACL,EAAC,IAAI;MACH,eACE,KAAK,EAAE;UACL,cAAc,EAAE,IAAI;UACpB,CAAC,2BAA2B,CAAC,EAAE,IAAI,CAAC,QAAQ;UAC5C,CAAC,iBAAiB,IAAI,CAAC,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO;UACjD,CAAC,+BAA+B,IAAI,CAAC,YAAY,EAAE,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,YAAY;SAC1E;QAED,WAAK,KAAK,EAAC,qBAAqB;UAC9B,WAAK,KAAK,EAAC,uBAAuB;YAChC,YAAM,IAAI,EAAC,SAAS,GAAQ,CACxB;UACN,WAAK,KAAK,EAAC,uBAAuB;YAChC,eAAa,CACT,CACF,CACE,CACL,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, Prop, h } from \"@stencil/core\";\n\n/**\n * @slot - Slot for any content\n * @slot heading - Slot for `stzh-heading` element\n */\n@Component({\n tag: \"stzh-section\",\n styleUrl: \"stzh-section.scss\",\n shadow: true,\n})\nexport class StzhSection {\n /** Variant */\n @Prop({ reflect: true }) variant: \"default\" | \"highlight\" | \"contextbox\" | \"greybox\" | \"poimax\" = \"default\";\n\n /** Background color */\n @Prop({ reflect: true }) background: \"default\" | \"secondary\" = \"default\";\n\n /** Margin top spacing */\n @Prop({ reflect: true }) marginTop: \"default\" | \"none\" = \"default\";\n\n /** Margin bottom spacing */\n @Prop({ reflect: true }) marginBottom: \"default\" | \"none\" = \"default\";\n\n /** Padding top spacing */\n @Prop({ reflect: true }) paddingTop: \"default\" | \"none\" = \"default\";\n\n /** Padding bottom spacing */\n @Prop({ reflect: true }) paddingBottom: \"default\" | \"none\" = \"default\";\n\n /** Whether to breakout container */\n @Prop({ reflect: true }) breakout: boolean = false;\n\n render() {\n return (\n <Host>\n <section\n class={{\n \"stzh-section\": true,\n [`stzh-section--is-breakout`]: this.breakout,\n [`stzh-section--${this.variant}`]: !!this.variant,\n [`stzh-section--margin-bottom-${this.marginBottom}`]: !!this.marginBottom,\n }}\n >\n <div class=\"stzh-section__outer\">\n <div class=\"stzh-section__heading\">\n <slot name=\"heading\"></slot>\n </div>\n <div class=\"stzh-section__wrapper\">\n <slot></slot>\n </div>\n </div>\n </section>\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"stzh-section.js","sourceRoot":"","sources":["../../../../src/components/stzh-section/stzh-section.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C;;;GAGG;AAMH,MAAM,OAAO,WAAW;;IAwBtB;;;OAGG;IACK,SAAI,GAAG,GAAG,EAAE;MAClB,IAAI,IAAI,CAAC,OAAO,KAAK,YAAY,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE;QACtD,OAAO;OACR;MAED,MAAM,gBAAgB,GAAG,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;MAC9E,MAAM,sBAAsB,GAAkB,EAAE,CAAC;MAEjD,0EAA0E;MAC1E,gBAAgB,CAAC,OAAO,CAAC,CAAC,eAA4B,EAAE,EAAE;QACxD,IAAI,eAAe,CAAC,OAAO,CAAC,4BAA4B,CAAC,EAAE;UACzD,sBAAsB,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;SAC9C;QACD,sBAAsB,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC,gBAAg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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, h, Host, Prop } from \"@stencil/core\";\nimport { setProps } from \"../../utils/utils\";\n\n/**\n * @slot - Slot for any content\n * @slot heading - Slot for `stzh-heading` element\n */\n@Component({\n tag: \"stzh-section\",\n styleUrl: \"stzh-section.scss\",\n shadow: true\n})\nexport class StzhSection {\n private slotElement: HTMLSlotElement;\n\n /** Variant */\n @Prop({ reflect: true }) variant: \"default\" | \"highlight\" | \"contextbox\" | \"greybox\" | \"poimax\" = \"default\";\n\n /** Background color */\n @Prop({ reflect: true }) background: \"default\" | \"secondary\" = \"default\";\n\n /** Margin top spacing */\n @Prop({ reflect: true }) marginTop: \"default\" | \"none\" = \"default\";\n\n /** Margin bottom spacing */\n @Prop({ reflect: true }) marginBottom: \"default\" | \"none\" = \"default\";\n\n /** Padding top spacing */\n @Prop({ reflect: true }) paddingTop: \"default\" | \"none\" = \"default\";\n\n /** Padding bottom spacing */\n @Prop({ reflect: true }) paddingBottom: \"default\" | \"none\" = \"default\";\n\n /** Whether to breakout container */\n @Prop({ reflect: true }) breakout: boolean = false;\n\n /**\n * Searches for any slotted `stzh-cspace` or `stzh-richtext` elements (or their descendants)\n * and sets their properties accordingly.\n */\n private init = () => {\n if (this.variant !== \"contextbox\" || !this.slotElement) {\n return;\n }\n\n const assignedElements = this.slotElement.assignedElements({ flatten: true });\n const nestedCspaceOrRichtext: HTMLElement[] = [];\n\n // Check each assigned element and its descendants for a matching tag name\n assignedElements.forEach((assignedElement: HTMLElement) => {\n if (assignedElement.matches(\"stzh-cspace, stzh-richtext\")) {\n nestedCspaceOrRichtext.push(assignedElement);\n }\n nestedCspaceOrRichtext.push(...Array.from(assignedElement.querySelectorAll<HTMLElement>(\"stzh-cspace, stzh-richtext\")));\n });\n\n nestedCspaceOrRichtext.forEach(cspaceOrRichtext => {\n setProps(cspaceOrRichtext, {\n removeFirstMargin: true,\n removeLastMargin: true\n } as HTMLStzhCspaceElement | HTMLStzhRichtextElement);\n });\n };\n\n private onSlotChange = () => {\n this.init();\n };\n\n componentDidLoad() {\n this.init();\n }\n\n render() {\n return (\n <Host>\n <section\n class={{\n \"stzh-section\": true,\n \"stzh-section--is-breakout\": this.breakout,\n [`stzh-section--${this.variant}`]: !!this.variant,\n [`stzh-section--margin-bottom-${this.marginBottom}`]: !!this.marginBottom\n }}\n >\n <div class=\"stzh-section__outer\">\n <div class=\"stzh-section__heading\">\n <slot name=\"heading\"></slot>\n </div>\n <div class=\"stzh-section__wrapper\">\n <slot onSlotchange={this.onSlotChange} ref={el => (this.slotElement = el as HTMLSlotElement)}></slot>\n </div>\n </div>\n </section>\n </Host>\n );\n }\n}\n"]}
@@ -136,6 +136,7 @@ export class StzhUpload {
136
136
  this.photographingConfig = undefined;
137
137
  this.photographingWebsocket = undefined;
138
138
  this.photographingToken = undefined;
139
+ this.hiddenInputFiles = [];
139
140
  }
140
141
  resetListener(event) {
141
142
  if (event.target.contains(this.element)) {
@@ -486,7 +487,7 @@ export class StzhUpload {
486
487
  // Receives `event`
487
488
  drop: e => {
488
489
  var _a;
489
- // Merge files in hidden input.
490
+ // Preserve files in hidden input when preventHiddenInputClear is true
490
491
  if (this.preventHiddenInputClear) {
491
492
  const hiddenFileInput = (_a = this.hiddenInputContainerElement) === null || _a === void 0 ? void 0 : _a.querySelector("input");
492
493
  const dataTransfer = new DataTransfer();
@@ -504,6 +505,7 @@ export class StzhUpload {
504
505
  // Receives `file`
505
506
  // Taken from https://github.com/dropzone/dropzone/blob/v5.9.3/src/options.js#L594
506
507
  async addedfile(file) {
508
+ var _a;
507
509
  file._id = previewCounter++;
508
510
  self.totalFilesState.push(file);
509
511
  let sessCheck = sessionStorage.getItem("totalFilesState");
@@ -513,6 +515,26 @@ export class StzhUpload {
513
515
  else {
514
516
  sessionStorage.setItem("totalFilesState", JSON.stringify(self.totalFilesState));
515
517
  }
518
+ // Preserve files in hidden input when preventHiddenInputClear is true
519
+ if (self.preventHiddenInputClear) {
520
+ const hiddenFileInput = (_a = self.hiddenInputContainerElement) === null || _a === void 0 ? void 0 : _a.querySelector("input");
521
+ if (hiddenFileInput) {
522
+ let fileAlreadyExists = false;
523
+ if (file instanceof File) {
524
+ fileAlreadyExists = self.hiddenInputFiles.some(existingFile => existingFile.name === file.name && existingFile.size === file.size);
525
+ if (!fileAlreadyExists) {
526
+ self.hiddenInputFiles.push(file);
527
+ }
528
+ }
529
+ if (self.hiddenInputFiles.length > 0) {
530
+ const dataTransfer = new DataTransfer();
531
+ self.hiddenInputFiles.forEach(trackedFile => {
532
+ dataTransfer.items.add(trackedFile);
533
+ });
534
+ hiddenFileInput.files = dataTransfer.files;
535
+ }
536
+ }
537
+ }
516
538
  if (self.preventDuplicateFileNames) {
517
539
  if (self.totalFilesState.length > 0) {
518
540
  self.duplicateDetected = false; // reset
@@ -745,14 +767,16 @@ export class StzhUpload {
745
767
  sessionStorage.setItem("totalFilesState", JSON.stringify(this.totalFilesState));
746
768
  }
747
769
  if (this.preventHiddenInputClear) {
770
+ // Remove the file from our tracked array
771
+ this.hiddenInputFiles = this.hiddenInputFiles.filter(trackedFile => trackedFile.name !== file.name);
748
772
  const hiddenFileInput = (_a = this.hiddenInputContainerElement) === null || _a === void 0 ? void 0 : _a.querySelector("input");
749
- const dataTransfer = new DataTransfer();
750
- for (let i = 0; i < hiddenFileInput.files.length; i++) {
751
- if (hiddenFileInput.files[i].name !== file.name) {
752
- dataTransfer.items.add(hiddenFileInput.files[i]);
753
- }
773
+ if (hiddenFileInput) {
774
+ const dataTransfer = new DataTransfer();
775
+ this.hiddenInputFiles.forEach(trackedFile => {
776
+ dataTransfer.items.add(trackedFile);
777
+ });
778
+ hiddenFileInput.files = dataTransfer.files;
754
779
  }
755
- hiddenFileInput.files = dataTransfer.files;
756
780
  }
757
781
  return (this.stzhFileRemove.emit({
758
782
  component: "stzh-upload",
@@ -1712,7 +1736,8 @@ export class StzhUpload {
1712
1736
  "photographingHost": {},
1713
1737
  "photographingConfig": {},
1714
1738
  "photographingWebsocket": {},
1715
- "photographingToken": {}
1739
+ "photographingToken": {},
1740
+ "hiddenInputFiles": {}
1716
1741
  };
1717
1742
  }
1718
1743
  static get events() {