@oiz/stzh-components 2.11.0-beta1 → 2.11.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 (671) hide show
  1. package/dist/cjs/{app-globals-5b6fc14f.js → app-globals-909813e1.js} +2 -2
  2. package/dist/cjs/{app-globals-5b6fc14f.js.map → app-globals-909813e1.js.map} +1 -1
  3. package/dist/cjs/index.cjs.js.map +1 -1
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/stzh-actions.cjs.entry.js +1 -1
  6. package/dist/cjs/stzh-actionset_4.cjs.entry.js +3 -3
  7. package/dist/cjs/stzh-actionset_4.cjs.entry.js.map +1 -1
  8. package/dist/cjs/stzh-appnav.cjs.entry.js +1 -1
  9. package/dist/cjs/stzh-audio.cjs.entry.js +1 -1
  10. package/dist/cjs/stzh-badge_3.cjs.entry.js +3 -3
  11. package/dist/cjs/stzh-badge_3.cjs.entry.js.map +1 -1
  12. package/dist/cjs/stzh-carousel.cjs.entry.js +4 -3
  13. package/dist/cjs/stzh-carousel.cjs.entry.js.map +1 -1
  14. package/dist/cjs/stzh-cell.cjs.entry.js +4 -4
  15. package/dist/cjs/stzh-cell.cjs.entry.js.map +1 -1
  16. package/dist/cjs/stzh-checkbox.cjs.entry.js +1 -1
  17. package/dist/cjs/stzh-checkboxgroup.cjs.entry.js +1 -1
  18. package/dist/cjs/stzh-chip_2.cjs.entry.js +8 -1
  19. package/dist/cjs/stzh-chip_2.cjs.entry.js.map +1 -1
  20. package/dist/cjs/stzh-components.cjs.js +2 -2
  21. package/dist/cjs/stzh-contact.cjs.entry.js +7 -4
  22. package/dist/cjs/stzh-contact.cjs.entry.js.map +1 -1
  23. package/dist/cjs/stzh-cspace.cjs.entry.js +1 -1
  24. package/dist/cjs/stzh-cspace.cjs.entry.js.map +1 -1
  25. package/dist/cjs/stzh-datepicker_3.cjs.entry.js +1 -1
  26. package/dist/cjs/stzh-details.cjs.entry.js +1 -1
  27. package/dist/cjs/stzh-dialog.cjs.entry.js +1 -1
  28. package/dist/cjs/stzh-dropdown.cjs.entry.js +1 -1
  29. package/dist/cjs/{stzh-ratio.cjs.entry.js → stzh-figure_2.cjs.entry.js} +33 -1
  30. package/dist/cjs/stzh-figure_2.cjs.entry.js.map +1 -0
  31. package/dist/cjs/stzh-footer.cjs.entry.js +22 -6
  32. package/dist/cjs/stzh-footer.cjs.entry.js.map +1 -1
  33. package/dist/cjs/stzh-gallery.cjs.entry.js +9733 -0
  34. package/dist/cjs/stzh-gallery.cjs.entry.js.map +1 -0
  35. package/dist/cjs/stzh-ghettobox.cjs.entry.js +1 -1
  36. package/dist/cjs/stzh-header.cjs.entry.js +3 -6
  37. package/dist/cjs/stzh-header.cjs.entry.js.map +1 -1
  38. package/dist/cjs/{stzh-hspace.cjs.entry.js → stzh-hspace_2.cjs.entry.js} +41 -6
  39. package/dist/cjs/stzh-hspace_2.cjs.entry.js.map +1 -0
  40. package/dist/cjs/stzh-imagecomparison.cjs.entry.js +0 -2
  41. package/dist/cjs/stzh-imagecomparison.cjs.entry.js.map +1 -1
  42. package/dist/cjs/stzh-input.cjs.entry.js +1 -1
  43. package/dist/cjs/stzh-link.cjs.entry.js +1 -1
  44. package/dist/cjs/stzh-logo.cjs.entry.js +671 -0
  45. package/dist/cjs/stzh-logo.cjs.entry.js.map +1 -0
  46. package/dist/cjs/stzh-menu_2.cjs.entry.js +1 -1
  47. package/dist/cjs/stzh-pagebottom.cjs.entry.js +1 -1
  48. package/dist/cjs/stzh-pagetitle-hero.cjs.entry.js +1 -1
  49. package/dist/cjs/stzh-pagetitle.cjs.entry.js +1 -1
  50. package/dist/cjs/stzh-panorama.cjs.entry.js +3 -2
  51. package/dist/cjs/stzh-panorama.cjs.entry.js.map +1 -1
  52. package/dist/cjs/stzh-popover.cjs.entry.js +1 -1
  53. package/dist/cjs/stzh-print.cjs.entry.js +1 -1
  54. package/dist/cjs/stzh-progressbar-item.cjs.entry.js +2 -1
  55. package/dist/cjs/stzh-progressbar-item.cjs.entry.js.map +1 -1
  56. package/dist/cjs/stzh-readspeaker.cjs.entry.js +1 -1
  57. package/dist/cjs/stzh-row.cjs.entry.js +4 -4
  58. package/dist/cjs/stzh-row.cjs.entry.js.map +1 -1
  59. package/dist/cjs/stzh-scrollup.cjs.entry.js +1 -1
  60. package/dist/cjs/stzh-share.cjs.entry.js +1 -1
  61. package/dist/cjs/stzh-space.cjs.entry.js +5 -5
  62. package/dist/cjs/stzh-space.cjs.entry.js.map +1 -1
  63. package/dist/cjs/stzh-sticky.cjs.entry.js +166 -15
  64. package/dist/cjs/stzh-sticky.cjs.entry.js.map +1 -1
  65. package/dist/cjs/stzh-table.cjs.entry.js +1 -1
  66. package/dist/cjs/stzh-text.cjs.entry.js +1 -1
  67. package/dist/cjs/stzh-text.cjs.entry.js.map +1 -1
  68. package/dist/cjs/stzh-textandimage.cjs.entry.js +1 -1
  69. package/dist/cjs/stzh-timeline-item.cjs.entry.js +1 -1
  70. package/dist/cjs/stzh-toast.cjs.entry.js +1 -1
  71. package/dist/cjs/stzh-toggle.cjs.entry.js +1 -1
  72. package/dist/cjs/stzh-tooltip.cjs.entry.js +1 -1
  73. package/dist/cjs/stzh-upload.cjs.entry.js +1 -1
  74. package/dist/cjs/stzh-vspace.cjs.entry.js +5 -5
  75. package/dist/cjs/stzh-vspace.cjs.entry.js.map +1 -1
  76. package/dist/cjs/{utils-77bc0ea1.js → utils-01c0bbdd.js} +25 -1
  77. package/dist/cjs/utils-01c0bbdd.js.map +1 -0
  78. package/dist/collection/assets/i18n/de.json +19 -10
  79. package/dist/collection/assets/i18n/en.json +19 -10
  80. package/dist/collection/collection-manifest.json +2 -0
  81. package/dist/collection/components/stzh-button/stzh-button.css +4 -0
  82. package/dist/collection/components/stzh-button/stzh-button.js +3 -3
  83. package/dist/collection/components/stzh-button/stzh-button.js.map +1 -1
  84. package/dist/collection/components/stzh-card/stzh-card.css +1 -0
  85. package/dist/collection/components/stzh-card-list/stzh-card-list.css +27 -38
  86. package/dist/collection/components/stzh-carousel/stzh-carousel.css +3 -0
  87. package/dist/collection/components/stzh-carousel/stzh-carousel.js +2 -1
  88. package/dist/collection/components/stzh-carousel/stzh-carousel.js.map +1 -1
  89. package/dist/collection/components/stzh-cell/stzh-cell.js +9 -13
  90. package/dist/collection/components/stzh-cell/stzh-cell.js.map +1 -1
  91. package/dist/collection/components/stzh-clamp/stzh-clamp.js +9 -2
  92. package/dist/collection/components/stzh-clamp/stzh-clamp.js.map +1 -1
  93. package/dist/collection/components/stzh-contact/stzh-contact.js +25 -3
  94. package/dist/collection/components/stzh-contact/stzh-contact.js.map +1 -1
  95. package/dist/collection/components/stzh-cspace/stzh-cspace.css +5 -0
  96. package/dist/collection/components/stzh-fieldset/stzh-fieldset.js +1 -1
  97. package/dist/collection/components/stzh-figure/stzh-figure.css +5 -0
  98. package/dist/collection/components/stzh-footer/stzh-footer.css +1 -7
  99. package/dist/collection/components/stzh-footer/stzh-footer.js +21 -5
  100. package/dist/collection/components/stzh-footer/stzh-footer.js.map +1 -1
  101. package/dist/collection/components/stzh-footer/stzh-footer.stories.js +2 -2
  102. package/dist/collection/components/stzh-gallery/assets/angle-left.svg +3 -0
  103. package/dist/collection/components/stzh-gallery/assets/angle-right.svg +3 -0
  104. package/dist/collection/components/stzh-gallery/assets/close.svg +3 -0
  105. package/dist/collection/components/stzh-gallery/stzh-gallery.css +839 -0
  106. package/dist/collection/components/stzh-gallery/stzh-gallery.e2e.js +22 -0
  107. package/dist/collection/components/stzh-gallery/stzh-gallery.e2e.js.map +1 -0
  108. package/dist/collection/components/stzh-gallery/stzh-gallery.js +410 -0
  109. package/dist/collection/components/stzh-gallery/stzh-gallery.js.map +1 -0
  110. package/dist/collection/components/stzh-gallery/stzh-gallery.localization.js +2 -0
  111. package/dist/collection/components/stzh-gallery/stzh-gallery.localization.js.map +1 -0
  112. package/dist/collection/components/stzh-gallery/stzh-gallery.stories.js +163 -0
  113. package/dist/collection/components/stzh-header/stzh-header.css +19 -1
  114. package/dist/collection/components/stzh-header/stzh-header.js +1 -4
  115. package/dist/collection/components/stzh-header/stzh-header.js.map +1 -1
  116. package/dist/collection/components/stzh-header/stzh-header.stories.js +5 -3
  117. package/dist/collection/components/stzh-heading/stzh-heading.js +1 -1
  118. package/dist/collection/components/stzh-hspace/stzh-hspace.js +13 -18
  119. package/dist/collection/components/stzh-hspace/stzh-hspace.js.map +1 -1
  120. package/dist/collection/components/stzh-imagecomparison/stzh-imagecomparison.js +0 -38
  121. package/dist/collection/components/stzh-imagecomparison/stzh-imagecomparison.js.map +1 -1
  122. package/dist/collection/components/stzh-logo/assets/aoz.svg +15 -0
  123. package/dist/collection/components/stzh-logo/assets/pkzh.svg +207 -0
  124. package/dist/collection/components/stzh-logo/assets/stzh-default.svg +166 -0
  125. package/dist/collection/components/stzh-logo/assets/uvz.svg +85 -0
  126. package/dist/collection/components/stzh-logo/assets/vbz.svg +147 -0
  127. package/dist/collection/components/stzh-logo/stzh-logo.css +134 -0
  128. package/dist/collection/components/stzh-logo/stzh-logo.e2e.js +19 -0
  129. package/dist/collection/components/stzh-logo/stzh-logo.e2e.js.map +1 -0
  130. package/dist/collection/components/stzh-logo/stzh-logo.js +72 -0
  131. package/dist/collection/components/stzh-logo/stzh-logo.js.map +1 -0
  132. package/dist/collection/components/stzh-logo/stzh-logo.stories.js +51 -0
  133. package/dist/collection/components/stzh-panorama/stzh-panorama.js +21 -2
  134. package/dist/collection/components/stzh-panorama/stzh-panorama.js.map +1 -1
  135. package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.js +3 -2
  136. package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.js.map +1 -1
  137. package/dist/collection/components/stzh-row/stzh-row.js +9 -13
  138. package/dist/collection/components/stzh-row/stzh-row.js.map +1 -1
  139. package/dist/collection/components/stzh-show/stzh-show.js +5 -5
  140. package/dist/collection/components/stzh-show/stzh-show.js.map +1 -1
  141. package/dist/collection/components/stzh-space/stzh-space.js +13 -18
  142. package/dist/collection/components/stzh-space/stzh-space.js.map +1 -1
  143. package/dist/collection/components/stzh-sticky/stzh-sticky.css +28 -17
  144. package/dist/collection/components/stzh-sticky/stzh-sticky.e2e.js +1 -0
  145. package/dist/collection/components/stzh-sticky/stzh-sticky.e2e.js.map +1 -1
  146. package/dist/collection/components/stzh-sticky/stzh-sticky.js +186 -14
  147. package/dist/collection/components/stzh-sticky/stzh-sticky.js.map +1 -1
  148. package/dist/collection/components/stzh-sticky/stzh-sticky.stories.js +88 -44
  149. package/dist/collection/components/stzh-text/stzh-text.css +19 -0
  150. package/dist/collection/components/stzh-text/stzh-text.js +1 -1
  151. package/dist/collection/components/stzh-vspace/stzh-vspace.js +13 -18
  152. package/dist/collection/components/stzh-vspace/stzh-vspace.js.map +1 -1
  153. package/dist/collection/index.js.map +1 -1
  154. package/dist/collection/patterns/media/media.e2e.js +3 -1
  155. package/dist/collection/patterns/media/media.e2e.js.map +1 -1
  156. package/dist/collection/patterns/subpages/subpages.e2e.js +1 -0
  157. package/dist/collection/patterns/subpages/subpages.e2e.js.map +1 -1
  158. package/dist/collection/utils/utils.js +22 -0
  159. package/dist/collection/utils/utils.js.map +1 -1
  160. package/dist/components/index.js +1 -1
  161. package/dist/components/index2.js.map +1 -1
  162. package/dist/components/stzh-button2.js +2 -2
  163. package/dist/components/stzh-button2.js.map +1 -1
  164. package/dist/components/stzh-card-list2.js +1 -1
  165. package/dist/components/stzh-card-list2.js.map +1 -1
  166. package/dist/components/stzh-card2.js +1 -1
  167. package/dist/components/stzh-card2.js.map +1 -1
  168. package/dist/components/stzh-carousel2.js +3 -2
  169. package/dist/components/stzh-carousel2.js.map +1 -1
  170. package/dist/components/stzh-cell.js +9 -9
  171. package/dist/components/stzh-cell.js.map +1 -1
  172. package/dist/components/stzh-clamp2.js +8 -1
  173. package/dist/components/stzh-clamp2.js.map +1 -1
  174. package/dist/components/stzh-contact.js +7 -3
  175. package/dist/components/stzh-contact.js.map +1 -1
  176. package/dist/components/stzh-cspace.js +1 -1
  177. package/dist/components/stzh-cspace.js.map +1 -1
  178. package/dist/components/stzh-figure2.js +1 -1
  179. package/dist/components/stzh-figure2.js.map +1 -1
  180. package/dist/components/stzh-footer.js +21 -5
  181. package/dist/components/stzh-footer.js.map +1 -1
  182. package/dist/components/stzh-gallery.d.ts +11 -0
  183. package/dist/components/stzh-gallery.js +9808 -0
  184. package/dist/components/stzh-gallery.js.map +1 -0
  185. package/dist/components/stzh-header.js +2 -5
  186. package/dist/components/stzh-header.js.map +1 -1
  187. package/dist/components/stzh-hspace.js +1 -57
  188. package/dist/components/stzh-hspace.js.map +1 -1
  189. package/dist/{esm/stzh-hspace.entry.js → components/stzh-hspace2.js} +41 -13
  190. package/dist/components/stzh-hspace2.js.map +1 -0
  191. package/dist/components/stzh-imagecomparison.js +0 -4
  192. package/dist/components/stzh-imagecomparison.js.map +1 -1
  193. package/dist/components/stzh-logo.d.ts +11 -0
  194. package/dist/components/stzh-logo.js +687 -0
  195. package/dist/components/stzh-logo.js.map +1 -0
  196. package/dist/components/stzh-panorama.js +4 -2
  197. package/dist/components/stzh-panorama.js.map +1 -1
  198. package/dist/components/stzh-progressbar-item2.js +2 -1
  199. package/dist/components/stzh-progressbar-item2.js.map +1 -1
  200. package/dist/components/stzh-row.js +9 -9
  201. package/dist/components/stzh-row.js.map +1 -1
  202. package/dist/components/stzh-show.js +1 -59
  203. package/dist/components/stzh-show.js.map +1 -1
  204. package/dist/{esm/stzh-show.entry.js → components/stzh-show2.js} +34 -10
  205. package/dist/components/stzh-show2.js.map +1 -0
  206. package/dist/components/stzh-space.js +13 -13
  207. package/dist/components/stzh-space.js.map +1 -1
  208. package/dist/components/stzh-sticky.js +171 -17
  209. package/dist/components/stzh-sticky.js.map +1 -1
  210. package/dist/components/stzh-text2.js +1 -1
  211. package/dist/components/stzh-text2.js.map +1 -1
  212. package/dist/components/stzh-vbz-majorticker.js +1 -1
  213. package/dist/components/stzh-vspace.js +13 -13
  214. package/dist/components/stzh-vspace.js.map +1 -1
  215. package/dist/components/utils.js +23 -1
  216. package/dist/components/utils.js.map +1 -1
  217. package/dist/esm/{app-globals-2df573fd.js → app-globals-8bdc0f78.js} +2 -2
  218. package/dist/esm/{app-globals-2df573fd.js.map → app-globals-8bdc0f78.js.map} +1 -1
  219. package/dist/esm/index.js.map +1 -1
  220. package/dist/esm/loader.js +2 -2
  221. package/dist/esm/stzh-actions.entry.js +1 -1
  222. package/dist/esm/stzh-actionset_4.entry.js +3 -3
  223. package/dist/esm/stzh-actionset_4.entry.js.map +1 -1
  224. package/dist/esm/stzh-appnav.entry.js +1 -1
  225. package/dist/esm/stzh-audio.entry.js +1 -1
  226. package/dist/esm/stzh-badge_3.entry.js +3 -3
  227. package/dist/esm/stzh-badge_3.entry.js.map +1 -1
  228. package/dist/esm/stzh-carousel.entry.js +4 -3
  229. package/dist/esm/stzh-carousel.entry.js.map +1 -1
  230. package/dist/esm/stzh-cell.entry.js +4 -4
  231. package/dist/esm/stzh-cell.entry.js.map +1 -1
  232. package/dist/esm/stzh-checkbox.entry.js +1 -1
  233. package/dist/esm/stzh-checkboxgroup.entry.js +1 -1
  234. package/dist/esm/stzh-chip_2.entry.js +8 -1
  235. package/dist/esm/stzh-chip_2.entry.js.map +1 -1
  236. package/dist/esm/stzh-components.js +2 -2
  237. package/dist/esm/stzh-contact.entry.js +7 -4
  238. package/dist/esm/stzh-contact.entry.js.map +1 -1
  239. package/dist/esm/stzh-cspace.entry.js +1 -1
  240. package/dist/esm/stzh-cspace.entry.js.map +1 -1
  241. package/dist/esm/stzh-datepicker_3.entry.js +1 -1
  242. package/dist/esm/stzh-details.entry.js +1 -1
  243. package/dist/esm/stzh-dialog.entry.js +1 -1
  244. package/dist/esm/stzh-dropdown.entry.js +1 -1
  245. package/dist/esm/{stzh-ratio.entry.js → stzh-figure_2.entry.js} +33 -2
  246. package/dist/esm/stzh-figure_2.entry.js.map +1 -0
  247. package/dist/esm/stzh-footer.entry.js +22 -6
  248. package/dist/esm/stzh-footer.entry.js.map +1 -1
  249. package/dist/esm/stzh-gallery.entry.js +9729 -0
  250. package/dist/esm/stzh-gallery.entry.js.map +1 -0
  251. package/dist/esm/stzh-ghettobox.entry.js +1 -1
  252. package/dist/esm/stzh-header.entry.js +3 -6
  253. package/dist/esm/stzh-header.entry.js.map +1 -1
  254. package/dist/esm/stzh-hspace_2.entry.js +67 -0
  255. package/dist/esm/stzh-hspace_2.entry.js.map +1 -0
  256. package/dist/esm/stzh-imagecomparison.entry.js +0 -2
  257. package/dist/esm/stzh-imagecomparison.entry.js.map +1 -1
  258. package/dist/esm/stzh-input.entry.js +1 -1
  259. package/dist/esm/stzh-link.entry.js +1 -1
  260. package/dist/esm/stzh-logo.entry.js +667 -0
  261. package/dist/esm/stzh-logo.entry.js.map +1 -0
  262. package/dist/esm/stzh-menu_2.entry.js +1 -1
  263. package/dist/esm/stzh-pagebottom.entry.js +1 -1
  264. package/dist/esm/stzh-pagetitle-hero.entry.js +1 -1
  265. package/dist/esm/stzh-pagetitle.entry.js +1 -1
  266. package/dist/esm/stzh-panorama.entry.js +3 -2
  267. package/dist/esm/stzh-panorama.entry.js.map +1 -1
  268. package/dist/esm/stzh-popover.entry.js +1 -1
  269. package/dist/esm/stzh-print.entry.js +1 -1
  270. package/dist/esm/stzh-progressbar-item.entry.js +2 -1
  271. package/dist/esm/stzh-progressbar-item.entry.js.map +1 -1
  272. package/dist/esm/stzh-readspeaker.entry.js +1 -1
  273. package/dist/esm/stzh-row.entry.js +4 -4
  274. package/dist/esm/stzh-row.entry.js.map +1 -1
  275. package/dist/esm/stzh-scrollup.entry.js +1 -1
  276. package/dist/esm/stzh-share.entry.js +1 -1
  277. package/dist/esm/stzh-space.entry.js +5 -5
  278. package/dist/esm/stzh-space.entry.js.map +1 -1
  279. package/dist/esm/stzh-sticky.entry.js +166 -15
  280. package/dist/esm/stzh-sticky.entry.js.map +1 -1
  281. package/dist/esm/stzh-table.entry.js +1 -1
  282. package/dist/esm/stzh-text.entry.js +1 -1
  283. package/dist/esm/stzh-text.entry.js.map +1 -1
  284. package/dist/esm/stzh-textandimage.entry.js +1 -1
  285. package/dist/esm/stzh-timeline-item.entry.js +1 -1
  286. package/dist/esm/stzh-toast.entry.js +1 -1
  287. package/dist/esm/stzh-toggle.entry.js +1 -1
  288. package/dist/esm/stzh-tooltip.entry.js +1 -1
  289. package/dist/esm/stzh-upload.entry.js +1 -1
  290. package/dist/esm/stzh-vspace.entry.js +5 -5
  291. package/dist/esm/stzh-vspace.entry.js.map +1 -1
  292. package/dist/esm/{utils-107fad0f.js → utils-8bb4c3c6.js} +24 -2
  293. package/dist/esm/utils-8bb4c3c6.js.map +1 -0
  294. package/dist/esm-es5/{app-globals-2df573fd.js → app-globals-8bdc0f78.js} +2 -2
  295. package/dist/esm-es5/{app-globals-2df573fd.js.map → app-globals-8bdc0f78.js.map} +1 -1
  296. package/dist/esm-es5/index.js.map +1 -1
  297. package/dist/esm-es5/loader.js +1 -1
  298. package/dist/esm-es5/loader.js.map +1 -1
  299. package/dist/esm-es5/stzh-actions.entry.js +1 -1
  300. package/dist/esm-es5/stzh-actionset_4.entry.js +2 -2
  301. package/dist/esm-es5/stzh-actionset_4.entry.js.map +1 -1
  302. package/dist/esm-es5/stzh-appnav.entry.js +1 -1
  303. package/dist/esm-es5/stzh-audio.entry.js +1 -1
  304. package/dist/esm-es5/stzh-badge_3.entry.js +1 -1
  305. package/dist/esm-es5/stzh-badge_3.entry.js.map +1 -1
  306. package/dist/esm-es5/stzh-carousel.entry.js +1 -1
  307. package/dist/esm-es5/stzh-carousel.entry.js.map +1 -1
  308. package/dist/esm-es5/stzh-cell.entry.js +1 -1
  309. package/dist/esm-es5/stzh-cell.entry.js.map +1 -1
  310. package/dist/esm-es5/stzh-checkbox.entry.js +1 -1
  311. package/dist/esm-es5/stzh-checkboxgroup.entry.js +1 -1
  312. package/dist/esm-es5/stzh-chip_2.entry.js +1 -1
  313. package/dist/esm-es5/stzh-chip_2.entry.js.map +1 -1
  314. package/dist/esm-es5/stzh-components.js +1 -1
  315. package/dist/esm-es5/stzh-components.js.map +1 -1
  316. package/dist/esm-es5/stzh-contact.entry.js +1 -1
  317. package/dist/esm-es5/stzh-contact.entry.js.map +1 -1
  318. package/dist/esm-es5/stzh-cspace.entry.js +1 -1
  319. package/dist/esm-es5/stzh-cspace.entry.js.map +1 -1
  320. package/dist/esm-es5/stzh-datepicker_3.entry.js +1 -1
  321. package/dist/esm-es5/stzh-details.entry.js +1 -1
  322. package/dist/esm-es5/stzh-dialog.entry.js +1 -1
  323. package/dist/esm-es5/stzh-dropdown.entry.js +1 -1
  324. package/dist/esm-es5/stzh-figure_2.entry.js +2 -0
  325. package/dist/esm-es5/stzh-figure_2.entry.js.map +1 -0
  326. package/dist/esm-es5/stzh-footer.entry.js +1 -1
  327. package/dist/esm-es5/stzh-footer.entry.js.map +1 -1
  328. package/dist/esm-es5/stzh-gallery.entry.js +10 -0
  329. package/dist/esm-es5/stzh-gallery.entry.js.map +1 -0
  330. package/dist/esm-es5/stzh-ghettobox.entry.js +1 -1
  331. package/dist/esm-es5/stzh-header.entry.js +1 -1
  332. package/dist/esm-es5/stzh-header.entry.js.map +1 -1
  333. package/dist/esm-es5/stzh-hspace_2.entry.js +2 -0
  334. package/dist/esm-es5/stzh-hspace_2.entry.js.map +1 -0
  335. package/dist/esm-es5/stzh-imagecomparison.entry.js +1 -1
  336. package/dist/esm-es5/stzh-imagecomparison.entry.js.map +1 -1
  337. package/dist/esm-es5/stzh-input.entry.js +1 -1
  338. package/dist/esm-es5/stzh-link.entry.js +1 -1
  339. package/dist/esm-es5/stzh-logo.entry.js +2 -0
  340. package/dist/esm-es5/stzh-logo.entry.js.map +1 -0
  341. package/dist/esm-es5/stzh-menu_2.entry.js +1 -1
  342. package/dist/esm-es5/stzh-pagebottom.entry.js +1 -1
  343. package/dist/esm-es5/stzh-pagetitle-hero.entry.js +1 -1
  344. package/dist/esm-es5/stzh-pagetitle.entry.js +1 -1
  345. package/dist/esm-es5/stzh-panorama.entry.js +1 -1
  346. package/dist/esm-es5/stzh-panorama.entry.js.map +1 -1
  347. package/dist/esm-es5/stzh-popover.entry.js +1 -1
  348. package/dist/esm-es5/stzh-print.entry.js +1 -1
  349. package/dist/esm-es5/stzh-progressbar-item.entry.js +1 -1
  350. package/dist/esm-es5/stzh-progressbar-item.entry.js.map +1 -1
  351. package/dist/esm-es5/stzh-readspeaker.entry.js +1 -1
  352. package/dist/esm-es5/stzh-row.entry.js +1 -1
  353. package/dist/esm-es5/stzh-row.entry.js.map +1 -1
  354. package/dist/esm-es5/stzh-scrollup.entry.js +1 -1
  355. package/dist/esm-es5/stzh-share.entry.js +1 -1
  356. package/dist/esm-es5/stzh-space.entry.js +1 -1
  357. package/dist/esm-es5/stzh-space.entry.js.map +1 -1
  358. package/dist/esm-es5/stzh-sticky.entry.js +1 -1
  359. package/dist/esm-es5/stzh-sticky.entry.js.map +1 -1
  360. package/dist/esm-es5/stzh-table.entry.js +1 -1
  361. package/dist/esm-es5/stzh-text.entry.js +1 -1
  362. package/dist/esm-es5/stzh-text.entry.js.map +1 -1
  363. package/dist/esm-es5/stzh-textandimage.entry.js +1 -1
  364. package/dist/esm-es5/stzh-timeline-item.entry.js +1 -1
  365. package/dist/esm-es5/stzh-toast.entry.js +1 -1
  366. package/dist/esm-es5/stzh-toggle.entry.js +1 -1
  367. package/dist/esm-es5/stzh-tooltip.entry.js +1 -1
  368. package/dist/esm-es5/stzh-upload.entry.js +1 -1
  369. package/dist/esm-es5/stzh-vspace.entry.js +1 -1
  370. package/dist/esm-es5/stzh-vspace.entry.js.map +1 -1
  371. package/dist/esm-es5/utils-8bb4c3c6.js +2 -0
  372. package/dist/esm-es5/utils-8bb4c3c6.js.map +1 -0
  373. package/dist/stzh-components/assets/i18n/de.json +19 -10
  374. package/dist/stzh-components/assets/i18n/en.json +19 -10
  375. package/dist/stzh-components/index.esm.js.map +1 -1
  376. package/dist/stzh-components/{p-a509436d.entry.js → p-0164f9d1.entry.js} +2 -2
  377. package/dist/stzh-components/p-0164f9d1.entry.js.map +1 -0
  378. package/dist/stzh-components/{p-1f1910e4.system.entry.js → p-0684cfac.system.entry.js} +2 -2
  379. package/dist/stzh-components/{p-1f1910e4.system.entry.js.map → p-0684cfac.system.entry.js.map} +1 -1
  380. package/dist/stzh-components/p-07819ba5.entry.js +2 -0
  381. package/dist/stzh-components/p-07819ba5.entry.js.map +1 -0
  382. package/dist/stzh-components/{p-6b9365fe.system.entry.js → p-0b4cba00.system.entry.js} +2 -2
  383. package/dist/stzh-components/{p-b1fbe1d1.system.entry.js → p-0b8a15cc.system.entry.js} +2 -2
  384. package/dist/stzh-components/p-0bb08043.system.js.map +1 -1
  385. package/dist/stzh-components/p-0c049996.system.entry.js +2 -0
  386. package/dist/stzh-components/p-0c049996.system.entry.js.map +1 -0
  387. package/dist/stzh-components/{p-9bd8613c.system.entry.js → p-0c2381f6.system.entry.js} +2 -2
  388. package/dist/stzh-components/{p-1e7376c9.system.js → p-0c972915.system.js} +2 -2
  389. package/dist/stzh-components/{p-1e7376c9.system.js.map → p-0c972915.system.js.map} +1 -1
  390. package/dist/stzh-components/p-0d9aa70c.entry.js +2 -0
  391. package/dist/stzh-components/p-0d9aa70c.entry.js.map +1 -0
  392. package/dist/stzh-components/{p-55a00af2.entry.js → p-10361297.entry.js} +2 -2
  393. package/dist/stzh-components/p-1095d872.system.entry.js +2 -0
  394. package/dist/stzh-components/p-1095d872.system.entry.js.map +1 -0
  395. package/dist/stzh-components/{p-26f37848.entry.js → p-11031613.entry.js} +2 -2
  396. package/dist/stzh-components/{p-062360a4.system.entry.js → p-153f8f3f.system.entry.js} +2 -2
  397. package/dist/stzh-components/p-15980af0.entry.js +10 -0
  398. package/dist/stzh-components/p-15980af0.entry.js.map +1 -0
  399. package/dist/stzh-components/{p-fbf4ee43.system.entry.js → p-1834deba.system.entry.js} +2 -2
  400. package/dist/stzh-components/{p-c1fa2872.system.entry.js → p-188dd49d.system.entry.js} +2 -2
  401. package/dist/stzh-components/{p-68e15c10.system.entry.js → p-1a49012e.system.entry.js} +2 -2
  402. package/dist/stzh-components/{p-2565c905.entry.js → p-1c9eee3d.entry.js} +2 -2
  403. package/dist/stzh-components/{p-badd636f.system.entry.js → p-24c0e33a.system.entry.js} +2 -2
  404. package/dist/stzh-components/{p-badd636f.system.entry.js.map → p-24c0e33a.system.entry.js.map} +1 -1
  405. package/dist/stzh-components/p-2547ec12.system.entry.js +2 -0
  406. package/dist/stzh-components/p-2547ec12.system.entry.js.map +1 -0
  407. package/dist/stzh-components/p-287edde1.system.entry.js +2 -0
  408. package/dist/stzh-components/p-287edde1.system.entry.js.map +1 -0
  409. package/dist/stzh-components/p-2a3fdd90.system.entry.js +2 -0
  410. package/dist/stzh-components/p-2a3fdd90.system.entry.js.map +1 -0
  411. package/dist/stzh-components/{p-af5151b6.entry.js → p-2abcca01.entry.js} +2 -2
  412. package/dist/stzh-components/p-2abcca01.entry.js.map +1 -0
  413. package/dist/stzh-components/{p-97b0b868.system.entry.js → p-2ff7c5db.system.entry.js} +2 -2
  414. package/dist/stzh-components/{p-e0e5d06f.system.entry.js → p-3154e4da.system.entry.js} +2 -2
  415. package/dist/stzh-components/{p-754f37ee.entry.js → p-34add4af.entry.js} +2 -2
  416. package/dist/stzh-components/{p-b28e5fd4.system.entry.js → p-34ff6606.system.entry.js} +2 -2
  417. package/dist/stzh-components/{p-46ccadd5.system.entry.js → p-3ab3a5a7.system.entry.js} +2 -2
  418. package/dist/stzh-components/{p-dd43141d.system.entry.js → p-3ceef7dd.system.entry.js} +2 -2
  419. package/dist/stzh-components/p-3df3f45c.entry.js +2 -0
  420. package/dist/stzh-components/p-3df3f45c.entry.js.map +1 -0
  421. package/dist/stzh-components/p-428eacce.system.js +2 -0
  422. package/dist/stzh-components/{p-044b80d8.system.js.map → p-428eacce.system.js.map} +1 -1
  423. package/dist/stzh-components/{p-e42dbd26.system.entry.js → p-42e25ae1.system.entry.js} +3 -3
  424. package/dist/stzh-components/p-42e25ae1.system.entry.js.map +1 -0
  425. package/dist/stzh-components/{p-38ebb72d.system.entry.js → p-42f483f6.system.entry.js} +2 -2
  426. package/dist/stzh-components/{p-508f6d3d.entry.js → p-488c5c8a.entry.js} +2 -2
  427. package/dist/stzh-components/{p-a5b55401.entry.js → p-4ad49ece.entry.js} +2 -2
  428. package/dist/stzh-components/{p-f8b5c7a8.entry.js → p-4c091b1b.entry.js} +2 -2
  429. package/dist/stzh-components/{p-66965853.entry.js → p-4cb041d5.entry.js} +2 -2
  430. package/dist/stzh-components/{p-9a22e78f.system.entry.js → p-509f90d0.system.entry.js} +2 -2
  431. package/dist/stzh-components/p-509f90d0.system.entry.js.map +1 -0
  432. package/dist/stzh-components/{p-ff2029b6.entry.js → p-5342d3ae.entry.js} +2 -2
  433. package/dist/stzh-components/{p-ff2029b6.entry.js.map → p-5342d3ae.entry.js.map} +1 -1
  434. package/dist/stzh-components/{p-243f3d8c.system.entry.js → p-54a1fdcc.system.entry.js} +2 -2
  435. package/dist/stzh-components/p-54dbcd0e.system.entry.js +11 -0
  436. package/dist/stzh-components/p-54dbcd0e.system.entry.js.map +1 -0
  437. package/dist/stzh-components/{p-1f6fe9f1.entry.js → p-5cea16ad.entry.js} +2 -2
  438. package/dist/stzh-components/{p-1f6fe9f1.entry.js.map → p-5cea16ad.entry.js.map} +1 -1
  439. package/dist/stzh-components/{p-b218ae94.system.entry.js → p-5d02c5e0.system.entry.js} +2 -2
  440. package/dist/stzh-components/{p-01436630.system.entry.js → p-5e861cb6.system.entry.js} +2 -2
  441. package/dist/stzh-components/{p-45e98de0.entry.js → p-64845b66.entry.js} +2 -2
  442. package/dist/stzh-components/{p-45e98de0.entry.js.map → p-64845b66.entry.js.map} +1 -1
  443. package/dist/stzh-components/{p-95e4bc28.entry.js → p-68feffea.entry.js} +2 -2
  444. package/dist/stzh-components/{p-a6938665.entry.js → p-6a91ac35.entry.js} +2 -2
  445. package/dist/stzh-components/p-6a91ac35.entry.js.map +1 -0
  446. package/dist/stzh-components/{p-93c73a62.entry.js → p-6b9b037a.entry.js} +2 -2
  447. package/dist/stzh-components/{p-93c73a62.entry.js.map → p-6b9b037a.entry.js.map} +1 -1
  448. package/dist/stzh-components/{p-98357b67.system.entry.js → p-6e979c9c.system.entry.js} +2 -2
  449. package/dist/stzh-components/{p-98357b67.system.entry.js.map → p-6e979c9c.system.entry.js.map} +1 -1
  450. package/dist/stzh-components/{p-d5b2327f.system.entry.js → p-709514fc.system.entry.js} +2 -2
  451. package/dist/stzh-components/{p-c9f0cf53.entry.js → p-73442cf1.entry.js} +2 -2
  452. package/dist/stzh-components/{p-fd41d303.entry.js → p-7873a639.entry.js} +2 -2
  453. package/dist/stzh-components/p-7c2aa5e8.entry.js +2 -0
  454. package/dist/stzh-components/{p-41b2f989.entry.js.map → p-7c2aa5e8.entry.js.map} +1 -1
  455. package/dist/stzh-components/{p-a7ef9c99.entry.js → p-80851e3d.entry.js} +2 -2
  456. package/dist/stzh-components/p-80f1f324.system.entry.js +2 -0
  457. package/dist/stzh-components/p-80f1f324.system.entry.js.map +1 -0
  458. package/dist/stzh-components/{p-e1bada00.entry.js → p-83a216d7.entry.js} +2 -2
  459. package/dist/stzh-components/{p-bd5b6832.system.entry.js → p-88adaf4b.system.entry.js} +2 -2
  460. package/dist/stzh-components/{p-34a359dd.entry.js → p-88e6248e.entry.js} +2 -2
  461. package/dist/stzh-components/{p-e4e8b73a.system.entry.js → p-8c1c75a7.system.entry.js} +2 -2
  462. package/dist/stzh-components/{p-e4e8b73a.system.entry.js.map → p-8c1c75a7.system.entry.js.map} +1 -1
  463. package/dist/stzh-components/{p-7e76c84a.entry.js → p-91e7dae0.entry.js} +2 -2
  464. package/dist/stzh-components/{p-a8c669b2.system.entry.js → p-97704eb0.system.entry.js} +2 -2
  465. package/dist/stzh-components/p-9d0fedfe.system.entry.js +2 -0
  466. package/dist/stzh-components/{p-8de3379f.system.entry.js.map → p-9d0fedfe.system.entry.js.map} +1 -1
  467. package/dist/stzh-components/{p-67a483cf.system.entry.js → p-a0b350c2.system.entry.js} +2 -2
  468. package/dist/stzh-components/{p-a4c5ef8d.entry.js → p-a312a505.entry.js} +2 -2
  469. package/dist/stzh-components/p-a60e85c8.system.entry.js +2 -0
  470. package/dist/stzh-components/p-a60e85c8.system.entry.js.map +1 -0
  471. package/dist/stzh-components/{p-99ec62a5.entry.js → p-a94dd79b.entry.js} +2 -2
  472. package/dist/stzh-components/{p-99ec62a5.entry.js.map → p-a94dd79b.entry.js.map} +1 -1
  473. package/dist/stzh-components/p-aa337ae2.entry.js +2 -0
  474. package/dist/stzh-components/p-aa337ae2.entry.js.map +1 -0
  475. package/dist/stzh-components/{p-80e08833.entry.js → p-abbcda3b.entry.js} +2 -2
  476. package/dist/stzh-components/p-ae8eaf99.entry.js +2 -0
  477. package/dist/stzh-components/p-ae8eaf99.entry.js.map +1 -0
  478. package/dist/stzh-components/{p-793a530d.entry.js → p-af33b013.entry.js} +2 -2
  479. package/dist/stzh-components/{p-19b7b131.entry.js → p-afb2885a.entry.js} +2 -2
  480. package/dist/stzh-components/p-b305ec22.entry.js +2 -0
  481. package/dist/stzh-components/p-b305ec22.entry.js.map +1 -0
  482. package/dist/stzh-components/p-b6fed7ff.entry.js +2 -0
  483. package/dist/stzh-components/p-b6fed7ff.entry.js.map +1 -0
  484. package/dist/stzh-components/{p-cc10a5c5.system.entry.js → p-bb2fe16f.system.entry.js} +2 -2
  485. package/dist/stzh-components/p-bb2fe16f.system.entry.js.map +1 -0
  486. package/dist/stzh-components/{p-7a7eb40f.system.entry.js → p-c143a3f0.system.entry.js} +2 -2
  487. package/dist/stzh-components/{p-0a57145c.system.entry.js → p-c1ab5b6a.system.entry.js} +2 -2
  488. package/dist/stzh-components/p-c1ab5b6a.system.entry.js.map +1 -0
  489. package/dist/stzh-components/{p-fb70c624.system.entry.js → p-c41d9fa7.system.entry.js} +2 -2
  490. package/dist/stzh-components/{p-ebd47e41.entry.js → p-c5a4865c.entry.js} +2 -2
  491. package/dist/stzh-components/{p-7007044a.entry.js → p-c7a068ee.entry.js} +2 -2
  492. package/dist/stzh-components/{p-a00db16c.js → p-ca32a687.js} +2 -2
  493. package/dist/stzh-components/{p-a00db16c.js.map → p-ca32a687.js.map} +1 -1
  494. package/dist/stzh-components/{p-ae44fab0.entry.js → p-cb906ad4.entry.js} +2 -2
  495. package/dist/stzh-components/{p-70461b7e.entry.js → p-cc260e20.entry.js} +2 -2
  496. package/dist/stzh-components/p-cc260e20.entry.js.map +1 -0
  497. package/dist/stzh-components/p-cfd1eed9.system.entry.js +2 -0
  498. package/dist/stzh-components/p-cfd1eed9.system.entry.js.map +1 -0
  499. package/dist/stzh-components/p-cfdb06e4.js +2 -0
  500. package/dist/stzh-components/p-cfdb06e4.js.map +1 -0
  501. package/dist/stzh-components/{p-54c0340b.entry.js → p-d0678cbb.entry.js} +2 -2
  502. package/dist/stzh-components/p-d22fbf2e.system.entry.js +2 -0
  503. package/dist/stzh-components/p-d22fbf2e.system.entry.js.map +1 -0
  504. package/dist/stzh-components/{p-42138c55.entry.js → p-d362dc3a.entry.js} +2 -2
  505. package/dist/stzh-components/{p-3ac03d9a.entry.js → p-ded183e7.entry.js} +2 -2
  506. package/dist/stzh-components/{p-58a6ed19.system.entry.js → p-df322682.system.entry.js} +2 -2
  507. package/dist/stzh-components/{p-d50495d5.entry.js → p-e24cfa3e.entry.js} +2 -2
  508. package/dist/stzh-components/{p-ffe3fbab.entry.js → p-e3cd443b.entry.js} +2 -2
  509. package/dist/stzh-components/{p-e58d6819.system.entry.js → p-e61f6afc.system.entry.js} +2 -2
  510. package/dist/stzh-components/{p-e58d6819.system.entry.js.map → p-e61f6afc.system.entry.js.map} +1 -1
  511. package/dist/stzh-components/{p-f16e40f8.system.entry.js → p-e670eba0.system.entry.js} +2 -2
  512. package/dist/stzh-components/p-ed2896cd.entry.js +2 -0
  513. package/dist/stzh-components/p-ed2896cd.entry.js.map +1 -0
  514. package/dist/stzh-components/{p-3ccf5529.system.entry.js → p-f159a561.system.entry.js} +2 -2
  515. package/dist/stzh-components/p-f6662aa5.entry.js +2 -0
  516. package/dist/stzh-components/p-f6662aa5.entry.js.map +1 -0
  517. package/dist/stzh-components/p-f73af272.entry.js +8 -0
  518. package/dist/stzh-components/p-f73af272.entry.js.map +1 -0
  519. package/dist/stzh-components/{p-75beb9f8.system.entry.js → p-f8511c39.system.entry.js} +2 -2
  520. package/dist/stzh-components/{p-b1851b3e.entry.js → p-f91187c8.entry.js} +2 -2
  521. package/dist/stzh-components/p-f9cb0fcd.system.js +2 -0
  522. package/dist/stzh-components/p-f9cb0fcd.system.js.map +1 -0
  523. package/dist/stzh-components/{p-4e32ee7a.system.entry.js → p-ff1d24e2.system.entry.js} +2 -2
  524. package/dist/stzh-components/{p-61589824.system.entry.js → p-ff356dc8.system.entry.js} +2 -2
  525. package/dist/stzh-components/{p-9145f8d9.system.entry.js → p-ff9a0645.system.entry.js} +2 -2
  526. package/dist/stzh-components/p-ff9a0645.system.entry.js.map +1 -0
  527. package/dist/stzh-components/stzh-components.esm.js +1 -1
  528. package/dist/stzh-components/stzh-components.esm.js.map +1 -1
  529. package/dist/stzh-components/stzh-components.js +1 -1
  530. package/dist/types/components/stzh-gallery/stzh-gallery.localization.d.ts +10 -0
  531. package/dist/types/components.d.ts +101 -24
  532. package/dist/types/utils/utils.d.ts +5 -0
  533. package/dist/vscode-data.json +102 -13
  534. package/package.json +2 -1
  535. package/dist/cjs/stzh-figure.cjs.entry.js +0 -40
  536. package/dist/cjs/stzh-figure.cjs.entry.js.map +0 -1
  537. package/dist/cjs/stzh-hspace.cjs.entry.js.map +0 -1
  538. package/dist/cjs/stzh-ratio.cjs.entry.js.map +0 -1
  539. package/dist/cjs/stzh-show.cjs.entry.js +0 -43
  540. package/dist/cjs/stzh-show.cjs.entry.js.map +0 -1
  541. package/dist/cjs/utils-77bc0ea1.js.map +0 -1
  542. package/dist/esm/stzh-figure.entry.js +0 -36
  543. package/dist/esm/stzh-figure.entry.js.map +0 -1
  544. package/dist/esm/stzh-hspace.entry.js.map +0 -1
  545. package/dist/esm/stzh-ratio.entry.js.map +0 -1
  546. package/dist/esm/stzh-show.entry.js.map +0 -1
  547. package/dist/esm/utils-107fad0f.js.map +0 -1
  548. package/dist/esm-es5/stzh-figure.entry.js +0 -2
  549. package/dist/esm-es5/stzh-figure.entry.js.map +0 -1
  550. package/dist/esm-es5/stzh-hspace.entry.js +0 -2
  551. package/dist/esm-es5/stzh-hspace.entry.js.map +0 -1
  552. package/dist/esm-es5/stzh-ratio.entry.js +0 -2
  553. package/dist/esm-es5/stzh-ratio.entry.js.map +0 -1
  554. package/dist/esm-es5/stzh-show.entry.js +0 -2
  555. package/dist/esm-es5/stzh-show.entry.js.map +0 -1
  556. package/dist/esm-es5/utils-107fad0f.js +0 -2
  557. package/dist/esm-es5/utils-107fad0f.js.map +0 -1
  558. package/dist/stzh-components/p-004b3030.system.entry.js +0 -2
  559. package/dist/stzh-components/p-004b3030.system.entry.js.map +0 -1
  560. package/dist/stzh-components/p-044b80d8.system.js +0 -2
  561. package/dist/stzh-components/p-0a57145c.system.entry.js.map +0 -1
  562. package/dist/stzh-components/p-0c8d651e.entry.js +0 -2
  563. package/dist/stzh-components/p-0c8d651e.entry.js.map +0 -1
  564. package/dist/stzh-components/p-0e5d39e2.system.entry.js +0 -2
  565. package/dist/stzh-components/p-0e5d39e2.system.entry.js.map +0 -1
  566. package/dist/stzh-components/p-0ed6eafb.system.entry.js +0 -2
  567. package/dist/stzh-components/p-0ed6eafb.system.entry.js.map +0 -1
  568. package/dist/stzh-components/p-168f0faa.entry.js +0 -8
  569. package/dist/stzh-components/p-168f0faa.entry.js.map +0 -1
  570. package/dist/stzh-components/p-18bf2b21.system.entry.js +0 -2
  571. package/dist/stzh-components/p-18bf2b21.system.entry.js.map +0 -1
  572. package/dist/stzh-components/p-2452dd71.system.entry.js +0 -2
  573. package/dist/stzh-components/p-2452dd71.system.entry.js.map +0 -1
  574. package/dist/stzh-components/p-330bdf15.system.entry.js +0 -2
  575. package/dist/stzh-components/p-330bdf15.system.entry.js.map +0 -1
  576. package/dist/stzh-components/p-341c1c6c.entry.js +0 -2
  577. package/dist/stzh-components/p-341c1c6c.entry.js.map +0 -1
  578. package/dist/stzh-components/p-41b2f989.entry.js +0 -2
  579. package/dist/stzh-components/p-52e9dbe5.entry.js +0 -2
  580. package/dist/stzh-components/p-52e9dbe5.entry.js.map +0 -1
  581. package/dist/stzh-components/p-53e44e89.system.js +0 -2
  582. package/dist/stzh-components/p-53e44e89.system.js.map +0 -1
  583. package/dist/stzh-components/p-645bbb42.entry.js +0 -2
  584. package/dist/stzh-components/p-645bbb42.entry.js.map +0 -1
  585. package/dist/stzh-components/p-70461b7e.entry.js.map +0 -1
  586. package/dist/stzh-components/p-74e07267.entry.js +0 -2
  587. package/dist/stzh-components/p-74e07267.entry.js.map +0 -1
  588. package/dist/stzh-components/p-7b044a55.entry.js +0 -2
  589. package/dist/stzh-components/p-7b044a55.entry.js.map +0 -1
  590. package/dist/stzh-components/p-7eaed674.system.entry.js +0 -2
  591. package/dist/stzh-components/p-7eaed674.system.entry.js.map +0 -1
  592. package/dist/stzh-components/p-8de3379f.system.entry.js +0 -2
  593. package/dist/stzh-components/p-9145f8d9.system.entry.js.map +0 -1
  594. package/dist/stzh-components/p-9a22e78f.system.entry.js.map +0 -1
  595. package/dist/stzh-components/p-a27c6c02.system.entry.js +0 -2
  596. package/dist/stzh-components/p-a27c6c02.system.entry.js.map +0 -1
  597. package/dist/stzh-components/p-a509436d.entry.js.map +0 -1
  598. package/dist/stzh-components/p-a6938665.entry.js.map +0 -1
  599. package/dist/stzh-components/p-a999bb48.entry.js +0 -2
  600. package/dist/stzh-components/p-a999bb48.entry.js.map +0 -1
  601. package/dist/stzh-components/p-af5151b6.entry.js.map +0 -1
  602. package/dist/stzh-components/p-ba8c574b.js +0 -2
  603. package/dist/stzh-components/p-ba8c574b.js.map +0 -1
  604. package/dist/stzh-components/p-c2fcd668.entry.js +0 -2
  605. package/dist/stzh-components/p-c2fcd668.entry.js.map +0 -1
  606. package/dist/stzh-components/p-cc10a5c5.system.entry.js.map +0 -1
  607. package/dist/stzh-components/p-d18665b6.system.entry.js +0 -2
  608. package/dist/stzh-components/p-d18665b6.system.entry.js.map +0 -1
  609. package/dist/stzh-components/p-e42dbd26.system.entry.js.map +0 -1
  610. package/dist/stzh-components/p-e6f1bae9.system.entry.js +0 -2
  611. package/dist/stzh-components/p-e6f1bae9.system.entry.js.map +0 -1
  612. package/dist/stzh-components/p-ebaf8f26.entry.js +0 -2
  613. package/dist/stzh-components/p-ebaf8f26.entry.js.map +0 -1
  614. package/dist/stzh-components/p-ef274d0c.entry.js +0 -2
  615. package/dist/stzh-components/p-ef274d0c.entry.js.map +0 -1
  616. /package/dist/stzh-components/{p-6b9365fe.system.entry.js.map → p-0b4cba00.system.entry.js.map} +0 -0
  617. /package/dist/stzh-components/{p-b1fbe1d1.system.entry.js.map → p-0b8a15cc.system.entry.js.map} +0 -0
  618. /package/dist/stzh-components/{p-9bd8613c.system.entry.js.map → p-0c2381f6.system.entry.js.map} +0 -0
  619. /package/dist/stzh-components/{p-55a00af2.entry.js.map → p-10361297.entry.js.map} +0 -0
  620. /package/dist/stzh-components/{p-26f37848.entry.js.map → p-11031613.entry.js.map} +0 -0
  621. /package/dist/stzh-components/{p-062360a4.system.entry.js.map → p-153f8f3f.system.entry.js.map} +0 -0
  622. /package/dist/stzh-components/{p-fbf4ee43.system.entry.js.map → p-1834deba.system.entry.js.map} +0 -0
  623. /package/dist/stzh-components/{p-c1fa2872.system.entry.js.map → p-188dd49d.system.entry.js.map} +0 -0
  624. /package/dist/stzh-components/{p-68e15c10.system.entry.js.map → p-1a49012e.system.entry.js.map} +0 -0
  625. /package/dist/stzh-components/{p-2565c905.entry.js.map → p-1c9eee3d.entry.js.map} +0 -0
  626. /package/dist/stzh-components/{p-97b0b868.system.entry.js.map → p-2ff7c5db.system.entry.js.map} +0 -0
  627. /package/dist/stzh-components/{p-e0e5d06f.system.entry.js.map → p-3154e4da.system.entry.js.map} +0 -0
  628. /package/dist/stzh-components/{p-754f37ee.entry.js.map → p-34add4af.entry.js.map} +0 -0
  629. /package/dist/stzh-components/{p-b28e5fd4.system.entry.js.map → p-34ff6606.system.entry.js.map} +0 -0
  630. /package/dist/stzh-components/{p-46ccadd5.system.entry.js.map → p-3ab3a5a7.system.entry.js.map} +0 -0
  631. /package/dist/stzh-components/{p-dd43141d.system.entry.js.map → p-3ceef7dd.system.entry.js.map} +0 -0
  632. /package/dist/stzh-components/{p-38ebb72d.system.entry.js.map → p-42f483f6.system.entry.js.map} +0 -0
  633. /package/dist/stzh-components/{p-508f6d3d.entry.js.map → p-488c5c8a.entry.js.map} +0 -0
  634. /package/dist/stzh-components/{p-a5b55401.entry.js.map → p-4ad49ece.entry.js.map} +0 -0
  635. /package/dist/stzh-components/{p-f8b5c7a8.entry.js.map → p-4c091b1b.entry.js.map} +0 -0
  636. /package/dist/stzh-components/{p-66965853.entry.js.map → p-4cb041d5.entry.js.map} +0 -0
  637. /package/dist/stzh-components/{p-243f3d8c.system.entry.js.map → p-54a1fdcc.system.entry.js.map} +0 -0
  638. /package/dist/stzh-components/{p-b218ae94.system.entry.js.map → p-5d02c5e0.system.entry.js.map} +0 -0
  639. /package/dist/stzh-components/{p-01436630.system.entry.js.map → p-5e861cb6.system.entry.js.map} +0 -0
  640. /package/dist/stzh-components/{p-95e4bc28.entry.js.map → p-68feffea.entry.js.map} +0 -0
  641. /package/dist/stzh-components/{p-d5b2327f.system.entry.js.map → p-709514fc.system.entry.js.map} +0 -0
  642. /package/dist/stzh-components/{p-c9f0cf53.entry.js.map → p-73442cf1.entry.js.map} +0 -0
  643. /package/dist/stzh-components/{p-fd41d303.entry.js.map → p-7873a639.entry.js.map} +0 -0
  644. /package/dist/stzh-components/{p-a7ef9c99.entry.js.map → p-80851e3d.entry.js.map} +0 -0
  645. /package/dist/stzh-components/{p-e1bada00.entry.js.map → p-83a216d7.entry.js.map} +0 -0
  646. /package/dist/stzh-components/{p-bd5b6832.system.entry.js.map → p-88adaf4b.system.entry.js.map} +0 -0
  647. /package/dist/stzh-components/{p-34a359dd.entry.js.map → p-88e6248e.entry.js.map} +0 -0
  648. /package/dist/stzh-components/{p-7e76c84a.entry.js.map → p-91e7dae0.entry.js.map} +0 -0
  649. /package/dist/stzh-components/{p-a8c669b2.system.entry.js.map → p-97704eb0.system.entry.js.map} +0 -0
  650. /package/dist/stzh-components/{p-67a483cf.system.entry.js.map → p-a0b350c2.system.entry.js.map} +0 -0
  651. /package/dist/stzh-components/{p-a4c5ef8d.entry.js.map → p-a312a505.entry.js.map} +0 -0
  652. /package/dist/stzh-components/{p-80e08833.entry.js.map → p-abbcda3b.entry.js.map} +0 -0
  653. /package/dist/stzh-components/{p-793a530d.entry.js.map → p-af33b013.entry.js.map} +0 -0
  654. /package/dist/stzh-components/{p-19b7b131.entry.js.map → p-afb2885a.entry.js.map} +0 -0
  655. /package/dist/stzh-components/{p-7a7eb40f.system.entry.js.map → p-c143a3f0.system.entry.js.map} +0 -0
  656. /package/dist/stzh-components/{p-fb70c624.system.entry.js.map → p-c41d9fa7.system.entry.js.map} +0 -0
  657. /package/dist/stzh-components/{p-ebd47e41.entry.js.map → p-c5a4865c.entry.js.map} +0 -0
  658. /package/dist/stzh-components/{p-7007044a.entry.js.map → p-c7a068ee.entry.js.map} +0 -0
  659. /package/dist/stzh-components/{p-ae44fab0.entry.js.map → p-cb906ad4.entry.js.map} +0 -0
  660. /package/dist/stzh-components/{p-54c0340b.entry.js.map → p-d0678cbb.entry.js.map} +0 -0
  661. /package/dist/stzh-components/{p-42138c55.entry.js.map → p-d362dc3a.entry.js.map} +0 -0
  662. /package/dist/stzh-components/{p-3ac03d9a.entry.js.map → p-ded183e7.entry.js.map} +0 -0
  663. /package/dist/stzh-components/{p-58a6ed19.system.entry.js.map → p-df322682.system.entry.js.map} +0 -0
  664. /package/dist/stzh-components/{p-d50495d5.entry.js.map → p-e24cfa3e.entry.js.map} +0 -0
  665. /package/dist/stzh-components/{p-ffe3fbab.entry.js.map → p-e3cd443b.entry.js.map} +0 -0
  666. /package/dist/stzh-components/{p-f16e40f8.system.entry.js.map → p-e670eba0.system.entry.js.map} +0 -0
  667. /package/dist/stzh-components/{p-3ccf5529.system.entry.js.map → p-f159a561.system.entry.js.map} +0 -0
  668. /package/dist/stzh-components/{p-75beb9f8.system.entry.js.map → p-f8511c39.system.entry.js.map} +0 -0
  669. /package/dist/stzh-components/{p-b1851b3e.entry.js.map → p-f91187c8.entry.js.map} +0 -0
  670. /package/dist/stzh-components/{p-4e32ee7a.system.entry.js.map → p-ff1d24e2.system.entry.js.map} +0 -0
  671. /package/dist/stzh-components/{p-61589824.system.entry.js.map → p-ff356dc8.system.entry.js.map} +0 -0
@@ -0,0 +1,134 @@
1
+ /**
2
+ * Colors
3
+ */
4
+ /*
5
+ * Base
6
+ */
7
+ /**
8
+ * Flyingfocus
9
+ */
10
+ /**
11
+ * Link
12
+ */
13
+ /**
14
+ * Text
15
+ */
16
+ /**
17
+ * Richtext
18
+ */
19
+ /**
20
+ * Section
21
+ */
22
+ /**
23
+ * Header
24
+ */
25
+ /**
26
+ * Appnav
27
+ */
28
+ /**
29
+ * Progressbar
30
+ */
31
+ /**
32
+ * Loader
33
+ */
34
+ /**
35
+ * Table
36
+ */
37
+ /**
38
+ * Heading
39
+ */
40
+ /**
41
+ * Menu (Item)
42
+ */
43
+ /**
44
+ * Form Elements (Input / Checkbox / Radio / Select / Datepicker)
45
+ */
46
+ /**
47
+ * Popover
48
+ */
49
+ /**
50
+ * Tooltips
51
+ */
52
+ /**
53
+ * Overlays / Dialogs
54
+ */
55
+ /**
56
+ * Accordions
57
+ */
58
+ /**
59
+ * Buttons
60
+ */
61
+ /** Ratios */
62
+ /** Toasts */
63
+ /**
64
+ * Box Shadows
65
+ */
66
+ /**
67
+ * Z-Indexes
68
+ * Inspired by https://www.duetds.com/tokens/#z-index
69
+ */
70
+ /**
71
+ * Icon sizes
72
+ */
73
+ /**
74
+ * Grid
75
+ */
76
+ /**
77
+ * Breakpoints
78
+ */
79
+ /**
80
+ * Container
81
+ */
82
+ /**
83
+ * Ratios
84
+ */
85
+ /**
86
+ * Spaces
87
+ */
88
+ /**
89
+ * Fonts
90
+ */
91
+ :host {
92
+ font-family: var(--stzh-font-family-regular);
93
+ font-weight: var(--stzh-font-weight-regular);
94
+ font-style: var(--stzh-font-style-regular);
95
+ color: var(--stzh-base-color);
96
+ box-sizing: border-box;
97
+ display: block;
98
+ /* default outline value, which will be applied to all elements receiving focus
99
+ the .has-focus class is used by the focus target */
100
+ }
101
+ :host[hidden] {
102
+ display: none;
103
+ }
104
+ :host *,
105
+ :host *::before,
106
+ :host *::after {
107
+ box-sizing: border-box;
108
+ text-underline-offset: var(--stzh-link-text-underline-offset);
109
+ text-decoration-thickness: var(--stzh-link-text-decoration-thickness);
110
+ }
111
+ :host .has-focus {
112
+ outline: var(--stzh-flyingfocus-color) solid 0.125rem;
113
+ outline-offset: 0.3125rem;
114
+ }
115
+ :host .stzh-fylingfocus-focused {
116
+ outline-style: none !important;
117
+ }
118
+ :host .stzh-fylingfocus-focused::-moz-focus-inner {
119
+ border: 0 !important;
120
+ }
121
+
122
+ :host {
123
+ --width: auto;
124
+ --height: auto;
125
+ }
126
+ :host ::slotted(img) {
127
+ width: var(--width);
128
+ height: var(--height);
129
+ }
130
+
131
+ .stzh-logo svg {
132
+ width: var(--width);
133
+ height: var(--height);
134
+ }
@@ -0,0 +1,19 @@
1
+ import { test } from "@playwright/test";
2
+ import { visualDiff } from "../../../.build/test/utils";
3
+ const URL = "components-logo";
4
+ const STORIES = [
5
+ "default",
6
+ "slotted",
7
+ ];
8
+ test.describe("logo", () => {
9
+ STORIES.forEach((storyId) => {
10
+ test(`story ${storyId} visual diff`, async ({ page }) => {
11
+ await visualDiff({
12
+ storyId,
13
+ page,
14
+ url: URL
15
+ });
16
+ });
17
+ });
18
+ });
19
+ //# sourceMappingURL=stzh-logo.e2e.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stzh-logo.e2e.js","sourceRoot":"","sources":["../../../../src/components/stzh-logo/stzh-logo.e2e.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAExD,MAAM,GAAG,GAAG,iBAAiB,CAAC;AAE9B,MAAM,OAAO,GAAG;EACd,SAAS;EACT,SAAS;CACV,CAAC;AAEF,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,GAAG,EAAE;EACzB,OAAO,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;IAC1B,IAAI,CAAC,SAAS,OAAO,cAAc,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;MACtD,MAAM,UAAU,CAAC;QACf,OAAO;QACP,IAAI;QACJ,GAAG,EAAE,GAAG;OACT,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;EACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { test } from \"@playwright/test\";\nimport { visualDiff } from \"../../../.build/test/utils\";\n\nconst URL = \"components-logo\";\n\nconst STORIES = [\n \"default\",\n \"slotted\",\n];\n\ntest.describe(\"logo\", () => {\n STORIES.forEach((storyId) => {\n test(`story ${storyId} visual diff`, async ({ page }) => {\n await visualDiff({\n storyId,\n page,\n url: URL\n });\n });\n });\n});\n"]}
@@ -0,0 +1,72 @@
1
+ import { Host, h, } from "@stencil/core";
2
+ import StzhDefaultLogo from "./assets/stzh-default.svg";
3
+ import VbzLogo from "./assets/vbz.svg";
4
+ import AozLogo from "./assets/aoz.svg";
5
+ import PkzhLogo from "./assets/pkzh.svg";
6
+ import UvzLogo from "./assets/uvz.svg";
7
+ /**
8
+ *
9
+ */
10
+ export class StzhLogo {
11
+ constructor() {
12
+ this.type = "none";
13
+ }
14
+ render() {
15
+ const classes = {
16
+ "stzh-logo": true,
17
+ };
18
+ let logo = null;
19
+ if (this.type === "stzh") {
20
+ logo = StzhDefaultLogo;
21
+ }
22
+ else if (this.type === "vbz") {
23
+ logo = VbzLogo;
24
+ }
25
+ else if (this.type === "aoz") {
26
+ logo = AozLogo;
27
+ }
28
+ else if (this.type === "pkzh") {
29
+ logo = PkzhLogo;
30
+ }
31
+ else if (this.type === "uvz") {
32
+ logo = UvzLogo;
33
+ }
34
+ return (h(Host, null, h("div", { class: classes, innerHTML: logo }, h("slot", null))));
35
+ }
36
+ static get is() { return "stzh-logo"; }
37
+ static get encapsulation() { return "shadow"; }
38
+ static get originalStyleUrls() {
39
+ return {
40
+ "$": ["stzh-logo.scss"]
41
+ };
42
+ }
43
+ static get styleUrls() {
44
+ return {
45
+ "$": ["stzh-logo.css"]
46
+ };
47
+ }
48
+ static get properties() {
49
+ return {
50
+ "type": {
51
+ "type": "string",
52
+ "mutable": false,
53
+ "complexType": {
54
+ "original": "\"none\" | \"stzh\" | \"vbz\" | \"aoz\" | \"pkzh\" | \"uvz\"",
55
+ "resolved": "\"aoz\" | \"none\" | \"pkzh\" | \"stzh\" | \"uvz\" | \"vbz\"",
56
+ "references": {}
57
+ },
58
+ "required": false,
59
+ "optional": false,
60
+ "docs": {
61
+ "tags": [],
62
+ "text": "Type"
63
+ },
64
+ "attribute": "type",
65
+ "reflect": true,
66
+ "defaultValue": "\"none\""
67
+ }
68
+ };
69
+ }
70
+ static get elementRef() { return "element"; }
71
+ }
72
+ //# sourceMappingURL=stzh-logo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stzh-logo.js","sourceRoot":"","sources":["../../../../src/components/stzh-logo/stzh-logo.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,IAAI,EACJ,CAAC,EACD,OAAO,EACP,IAAI,GACL,MAAM,eAAe,CAAC;AAEvB,OAAO,eAAe,MAAM,2BAA2B,CAAC;AACxD,OAAO,OAAO,MAAM,kBAAkB,CAAC;AACvC,OAAO,OAAO,MAAM,kBAAkB,CAAC;AACvC,OAAO,QAAQ,MAAM,mBAAmB,CAAC;AACzC,OAAO,OAAO,MAAM,kBAAkB,CAAC;AAEvC;;GAEG;AAMH,MAAM,OAAO,QAAQ;;gBAE+D,MAAM;;EAIxF,MAAM;IACJ,MAAM,OAAO,GAAG;MACd,WAAW,EAAE,IAAI;KAClB,CAAC;IAEF,IAAI,IAAI,GAAG,IAAI,CAAC;IAEhB,IAAI,IAAI,CAAC,IAAI,KAAK,MAAM,EAAE;MACxB,IAAI,GAAG,eAAe,CAAC;KACxB;SAAM,IAAI,IAAI,CAAC,IAAI,KAAK,KAAK,EAAE;MAC9B,IAAI,GAAG,OAAO,CAAC;KAChB;SAAM,IAAI,IAAI,CAAC,IAAI,KAAK,KAAK,EAAE;MAC9B,IAAI,GAAG,OAAO,CAAC;KAChB;SAAM,IAAI,IAAI,CAAC,IAAI,KAAK,MAAM,EAAE;MAC/B,IAAI,GAAG,QAAQ,CAAC;KACjB;SAAM,IAAI,IAAI,CAAC,IAAI,KAAK,KAAK,EAAE;MAC9B,IAAI,GAAG,OAAO,CAAC;KAChB;IAED,OAAO,CACL,EAAC,IAAI;MACH,WACE,KAAK,EAAE,OAAO,EACd,SAAS,EAAE,IAAI;QAEf,eAAa,CACT,CACD,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n Component,\n Host,\n h,\n Element,\n Prop,\n} from \"@stencil/core\";\n\nimport StzhDefaultLogo from './assets/stzh-default.svg';\nimport VbzLogo from './assets/vbz.svg';\nimport AozLogo from './assets/aoz.svg';\nimport PkzhLogo from './assets/pkzh.svg';\nimport UvzLogo from './assets/uvz.svg';\n\n/**\n *\n */\n@Component({\n tag: \"stzh-logo\",\n styleUrl: \"stzh-logo.scss\",\n shadow: true\n})\nexport class StzhLogo {\n /** Type */\n @Prop({ reflect: true }) type: \"none\" | \"stzh\" | \"vbz\" | \"aoz\" | \"pkzh\" | \"uvz\" = \"none\";\n\n @Element() element: HTMLStzhFigureElement;\n\n render() {\n const classes = {\n \"stzh-logo\": true,\n };\n\n let logo = null;\n\n if (this.type === \"stzh\") {\n logo = StzhDefaultLogo;\n } else if (this.type === \"vbz\") {\n logo = VbzLogo;\n } else if (this.type === \"aoz\") {\n logo = AozLogo;\n } else if (this.type === \"pkzh\") {\n logo = PkzhLogo;\n } else if (this.type === \"uvz\") {\n logo = UvzLogo;\n }\n\n return (\n <Host>\n <div\n class={classes}\n innerHTML={logo}\n >\n <slot></slot>\n </div>\n </Host>\n );\n }\n}\n"]}
@@ -0,0 +1,51 @@
1
+ import { createComponentStory } from '../../utils/story-utils';
2
+ import { withActions } from '@storybook/addon-actions/decorator';
3
+ import readme from './readme.md?raw';
4
+ import { withDesign } from 'storybook-addon-designs';
5
+ import { getFigmaLink } from '../../../figma';
6
+
7
+ const COMPONENT_NAME = 'stzh-logo';
8
+ const story = createComponentStory(COMPONENT_NAME);
9
+
10
+ const TEMPLATE = `
11
+ <stzh-logo></stzh-logo>
12
+ `;
13
+
14
+ const TEMPLATE_SLOTTED = `
15
+ <stzh-logo>
16
+ <img src="media/logo/stzh-two-lines.svg" />
17
+ </stzh-logo>
18
+ `;
19
+
20
+ export default {
21
+ title: 'Components/Logo',
22
+ component: COMPONENT_NAME,
23
+ parameters: {
24
+ docs: {
25
+ description: {
26
+ component: readme
27
+ }
28
+ },
29
+ design: {
30
+ type: 'figma',
31
+ url: getFigmaLink('logo'),
32
+ allowFullscreen: true
33
+ }
34
+ },
35
+ decorators: [
36
+ withActions,
37
+ withDesign
38
+ ]
39
+ };
40
+
41
+ export const Default = {
42
+ render: (args) => story(args, TEMPLATE),
43
+ args: {
44
+ type: "stzh"
45
+ }
46
+ };
47
+
48
+ export const Slotted = {
49
+ render: (args) => story(args, TEMPLATE_SLOTTED),
50
+ args: {}
51
+ };
@@ -103,6 +103,7 @@ export class StzhPanorama {
103
103
  };
104
104
  this.localization = undefined;
105
105
  this.caption = "";
106
+ this.copyright = "";
106
107
  this.scene = undefined;
107
108
  this.sceneFadeDuration = 500;
108
109
  this.autoload = true;
@@ -130,7 +131,7 @@ export class StzhPanorama {
130
131
  // copy object and modify scene hotspots to build own more accessible elements
131
132
  this._scenes.forEach((scene) => {
132
133
  const { sceneId, imageTitle, imageSrc, imageAuthor, imageType, hotspots } = scene, sceneParams = __rest(scene, ["sceneId", "imageTitle", "imageSrc", "imageAuthor", "imageType", "hotspots"]);
133
- scenesLib[sceneId] = Object.assign(Object.assign({}, sceneParams), { type: imageType, panorama: imageSrc, hotSpots: hotspots.map(hotSpot => (Object.assign(Object.assign({}, hotSpot), { URL: "", cssClass: CLASS_HOTSPOT, createTooltipFunc: this.createTooltip, createTooltipArgs: Object.assign(Object.assign({}, hotSpot), { url: hotSpot.url }) }))) });
134
+ scenesLib[sceneId] = Object.assign(Object.assign({}, sceneParams), { title: imageTitle, author: imageAuthor, type: imageType, panorama: imageSrc, hotSpots: hotspots.map(hotSpot => (Object.assign(Object.assign({}, hotSpot), { URL: "", cssClass: CLASS_HOTSPOT, createTooltipFunc: this.createTooltip, createTooltipArgs: Object.assign(Object.assign({}, hotSpot), { url: hotSpot.url }) }))) });
134
135
  });
135
136
  this._scenesLibrary = scenesLib;
136
137
  }
@@ -278,7 +279,7 @@ export class StzhPanorama {
278
279
  }));
279
280
  const currentScene = this._scenes
280
281
  .find(({ sceneId }) => sceneId === this.scene);
281
- return (h(Host, null, h("div", { class: classes }, h("stzh-figure", { class: "stzh-panorama__figure", caption: currentScene.caption || this.caption, copyright: currentScene.imageAuthor }, h("stzh-ratio", null, h("div", { ref: (el) => (this.containerElement = el), class: "stzh-panorama__container", tabindex: "0" }, h("div", { class: "stzh-panorama__controls", onKeyDown: this.handleControlsKeydown }, h("div", { class: "stzh-panorama__zoom-control" }, h("stzh-button", { class: "stzh-panorama__control is-zoom-in", variant: "secondary", a11yLabel: this.localization.zoomIn, icon: "plus", iconOnly: true, size: "small", onClick: () => this.action("zoomIn") }), h("stzh-button", { class: "stzh-panorama__control is-zoom-out", variant: "secondary", a11yLabel: this.localization.zoomOut, icon: "minus", iconOnly: true, size: "small", onClick: () => this.action("zoomOut") })), this.isOrientationSupported &&
282
+ return (h(Host, null, h("div", { class: classes }, h("stzh-figure", { class: "stzh-panorama__figure", caption: currentScene.caption || this.caption, copyright: currentScene.copyright || this.copyright }, h("stzh-ratio", null, h("div", { ref: (el) => (this.containerElement = el), class: "stzh-panorama__container", tabindex: "0" }, h("div", { class: "stzh-panorama__controls", onKeyDown: this.handleControlsKeydown }, h("div", { class: "stzh-panorama__zoom-control" }, h("stzh-button", { class: "stzh-panorama__control is-zoom-in", variant: "secondary", a11yLabel: this.localization.zoomIn, icon: "plus", iconOnly: true, size: "small", onClick: () => this.action("zoomIn") }), h("stzh-button", { class: "stzh-panorama__control is-zoom-out", variant: "secondary", a11yLabel: this.localization.zoomOut, icon: "minus", iconOnly: true, size: "small", onClick: () => this.action("zoomOut") })), this.isOrientationSupported &&
282
283
  h("stzh-button", { class: "stzh-panorama__control", variant: "secondary", a11yLabel: this.isOrientationActive ? this.localization.stopOrientation : this.localization.startOrientation, icon: this.isOrientationActive ? "target-bullet" : "target", iconOnly: true, size: "small", onClick: () => this.action(this.isOrientationActive ? "stopOrientation" : "startOrientation") }), h("stzh-button", { class: "stzh-panorama__control", variant: "secondary", a11yLabel: this.isFullscreen ? this.localization.disableFullscreenLabel : this.localization.enableFullscreenLabel, icon: this.isFullscreen ? "close" : "focus", iconOnly: true, size: "small", onClick: () => this.action("fullscreen") }))))), h("div", { class: "stzh-panorama__outside-controls" }, h("stzh-button", { class: "stzh-panorama__outside-control", label: this.localization.zoomIn, variant: "secondary", icon: "plus", size: "small", onClick: () => this.action("zoomIn") }), h("stzh-button", { class: "stzh-panorama__outside-control", label: this.localization.zoomOut, variant: "secondary", icon: "minus", size: "small", onClick: () => this.action("zoomOut") }), this.isOrientationSupported &&
283
284
  h("stzh-button", { class: "stzh-panorama__outside-control", variant: "secondary", label: this.isOrientationActive ? this.localization.stopOrientation : this.localization.startOrientation, icon: this.isOrientationActive ? "target-bullet" : "target", size: "small", onClick: () => this.action(this.isOrientationActive ? "stopOrientation" : "startOrientation") }), h("stzh-button", { class: "stzh-panorama__outside-control", label: this.isFullscreen ? this.localization.disableFullscreenLabel : this.localization.enableFullscreenLabel, variant: "secondary", icon: "focus", size: "small", onClick: () => this.action("fullscreen") }), h("stzh-button", { class: "stzh-panorama__outside-control", label: this.localization.panUp, variant: "secondary", icon: "arrow-up", size: "small", onClick: () => this.action("panUp") }), h("stzh-button", { class: "stzh-panorama__outside-control", label: this.localization.panDown, variant: "secondary", icon: "arrow-down", size: "small", onClick: () => this.action("panDown") }), h("stzh-button", { class: "stzh-panorama__outside-control", label: this.localization.panLeft, variant: "secondary", icon: "arrow-left", size: "small", onClick: () => this.action("panLeft") }), h("stzh-button", { class: "stzh-panorama__outside-control", label: this.localization.panRight, variant: "secondary", icon: "arrow-right", size: "small", onClick: () => this.action("panRight") }), h("stzh-dropdown", { class: "stzh-panorama__outside-scenes-control", size: "small", label: this.localization.sceneLabel, labelHidden: true, noSearch: true, items: [this.scene], options: sceneOptions, onStzhChange: this.handleSceneDropdownChange })))));
284
285
  }
@@ -334,6 +335,24 @@ export class StzhPanorama {
334
335
  "reflect": false,
335
336
  "defaultValue": "\"\""
336
337
  },
338
+ "copyright": {
339
+ "type": "string",
340
+ "mutable": false,
341
+ "complexType": {
342
+ "original": "string",
343
+ "resolved": "string",
344
+ "references": {}
345
+ },
346
+ "required": false,
347
+ "optional": false,
348
+ "docs": {
349
+ "tags": [],
350
+ "text": "Copyright"
351
+ },
352
+ "attribute": "copyright",
353
+ "reflect": false,
354
+ "defaultValue": "\"\""
355
+ },
337
356
  "scene": {
338
357
  "type": "string",
339
358
  "mutable": true,
@@ -1 +1 @@
1
- {"version":3,"file":"stzh-panorama.js","sourceRoot":"","sources":["../../../../src/components/stzh-panorama/stzh-panorama.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EACL,SAAS,EACT,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n Component,\n Host,\n h,\n Element,\n Prop,\n Method,\n Watch,\n // Listen,\n State,\n Event,\n EventEmitter,\n} from \"@stencil/core\";\n\nimport {\n PanoramaScene,\n PanoramaScenesLibrary,\n StzhDropdownChangeEvent,\n StzhPanoramaLoadEvent,\n StzhPanoramaChangeEvent,\n StzhPanoramaFullscreenChangeEvent,\n StzhPanoramaSceneChangeEvent,\n StzhPanoramaZoomChangeEvent\n} from \"../../index\";\n\nimport { StzhPanoramaLocalizedText } from \"./stzh-panorama.localization\";\n\nimport \"pannellum\";\n\nconst CLASS_HOTSPOT = \"stzh-panorama__hotspot\";\nconst CLASS_HOTSPOT_TOOLTIP = \"stzh-panorama__hotspot-tooltip\";\nconst CLASS_HOTSPOT_BUTTON = \"stzh-panorama__hotspot-button\";\nconst CLASS_HOTSPOT_BUTTON_SCENE = \"is-scene\";\nconst CLASS_HOTSPOT_BUTTON_INFO = \"is-info\";\nconst CLASS_HOTSPOT_BUTTON_LINK = \"is-link\";\n\nconst ICON_HOTSPOT_SCENE = \"arrow-up\";\nconst ICON_HOTSPOT_DEFAULT = \"info-help\";\n\n/**\n *\n */\n@Component({\n tag: \"stzh-panorama\",\n styleUrl: \"stzh-panorama.scss\",\n})\nexport class StzhPanorama {\n /** Translation strings */\n @Prop() localization: StzhPanoramaLocalizedText;\n\n /** Caption */\n @Prop() caption: string = \"\";\n\n /** Current scene */\n @Prop({ mutable: true }) scene: string;\n\n /** Fade duration on scene change */\n @Prop() sceneFadeDuration = 500;\n\n /** Whether to autoload panorama on pageload */\n @Prop() autoload: boolean = true;\n\n /** If set to true, device orientation control will be used when the panorama is loaded, if the device supports it. If false, device orientation control needs to be activated by pressing a button. */\n @Prop() orientationOnByDefault: boolean = false;\n\n /**\n * Available scenes\n *\n * An array of objects including `sceneId`, `imageTitle`, `imageSrc`, optionally `imageAuthor`, `imageType`, `caption`, `pitch`, `yaw`, `hfov` and `hotspots`\n * `hotspots` can be an array of objects including `pitch`, `yaw`, `type`, `text`, optionally `url`, `id`, `sceneId`, `targetPitch` and `targetYaw`\n *\n * See also https://pannellum.org/documentation/reference/\n */\n @Prop() scenes: PanoramaScene[] | string;\n private _scenes: PanoramaScene[];\n private _scenesLibrary: PanoramaScenesLibrary;\n\n @Element() element: HTMLStzhFigureElement;\n\n /** Get viewer instance */\n @Method()\n async getViewer(): Promise<any> {\n return this.viewer;\n }\n\n @Watch(\"scenes\")\n scenesWatcher(newValue: PanoramaScene[] | string) {\n if (typeof newValue === \"string\") {\n this._scenes = JSON.parse(newValue);\n } else if (newValue) {\n this._scenes = newValue;\n } else {\n throw new Error('\"scenes\" is empty');\n }\n\n const scenesLib: PanoramaScenesLibrary = {};\n\n // copy object and modify scene hotspots to build own more accessible elements\n this._scenes.forEach((scene) => {\n const {\n sceneId,\n imageTitle,\n imageSrc,\n imageAuthor,\n imageType,\n hotspots,\n ...sceneParams\n } = scene;\n\n scenesLib[sceneId] = {\n ...sceneParams,\n type: imageType,\n panorama: imageSrc,\n hotSpots: hotspots.map(hotSpot => ({\n ...hotSpot,\n URL: \"\", // switch hotspot into non url info spot to be able to create accessible link\n cssClass: CLASS_HOTSPOT,\n createTooltipFunc: this.createTooltip,\n createTooltipArgs: { ...hotSpot, url: hotSpot.url },\n }))\n };\n });\n\n this._scenesLibrary = scenesLib;\n }\n\n @Watch(\"scene\")\n sceneWatcher(newValue: string) {\n this.viewer.loadScene(newValue);\n }\n\n @Watch(\"autoload\")\n @Watch(\"scenes\")\n @Watch(\"type\")\n @Watch(\"localization\")\n @Watch(\"orientationOnByDefault\")\n @Watch(\"sceneFadeDuration\")\n updateWatcher() {\n if (this.viewer) {\n this.viewer.destroy();\n this.viewer = null;\n }\n }\n\n // @Listen(\"load\", { target: \"window\" })\n // @Listen(\"deviceorientation\", { target: \"window\" })\n // @Listen(\"pageshow\", { target: \"window\" })\n // handleLoad() {\n // if (this.viewer) {\n // requestAnimationFrame(() => {\n // this.viewer.resize();\n // });\n // }\n // }\n\n /** Load event */\n @Event() stzhLoad: EventEmitter<StzhPanoramaLoadEvent>;\n\n /** Change event */\n @Event() stzhChange: EventEmitter<StzhPanoramaChangeEvent>;\n\n /** Fullscreen change event */\n @Event() stzhFullscreenChange: EventEmitter<StzhPanoramaFullscreenChangeEvent>;\n\n /** Scene change event */\n @Event() stzhSceneChange: EventEmitter<StzhPanoramaSceneChangeEvent>;\n\n /** Zoom change event */\n @Event() stzhZoomChange: EventEmitter<StzhPanoramaZoomChangeEvent>;\n\n @State() isOrientationSupported = false;\n @State() isOrientationActive = false;\n @State() isFullscreen = false;\n\n private viewer: any;\n private containerElement: HTMLElement;\n private actionRunning: { [key: string]: number } = {};\n private controlAnimationTime: number = 500;\n\n private createTooltip = (hotspotDiv, options) => {\n\t\tconst element = document.createElement(\"stzh-button\");\n element.classList.add(CLASS_HOTSPOT_BUTTON);\n\n\t\tif (options.type === \"scene\") {\n\t\t\telement.classList.add(CLASS_HOTSPOT_BUTTON_SCENE);\n\t\t} else if (options.url) {\n\t\t\telement.classList.add(CLASS_HOTSPOT_BUTTON_LINK);\n\t\t\telement.setAttribute(\"href\", options.url);\n\t\t\telement.setAttribute(\"target\", \"_blank\");\n\t\t} else {\n\t\t\telement.classList.add(CLASS_HOTSPOT_BUTTON_INFO);\n\t\t}\n\n element.icon = options.type === \"scene\" ? ICON_HOTSPOT_SCENE : ICON_HOTSPOT_DEFAULT;\n element.iconOnly = true;\n element.rounded = true;\n element.size = \"small\";\n element.variant = \"secondary\";\n\n\t\tif (options.text) {\n const tooltip = document.createElement(\"stzh-tooltip\");\n tooltip.label = this.localization.hotspotLabel;\n tooltip.content = options.text;\n tooltip.placement = \"top\";\n\t\t\ttooltip.className = CLASS_HOTSPOT_TOOLTIP;\n\n tooltip.appendChild(element);\n hotspotDiv.appendChild(tooltip);\n\t\t} else {\n hotspotDiv.appendChild(element);\n }\n\n // prevent that you can do panorama actions with arrow keys, zooming with shift etc.\n\t\telement.addEventListener(\"keydown\", (event) => {\n\t\t\tevent.stopPropagation();\n\t\t});\n }\n\n private handleSceneDropdownChange = async (event: CustomEvent<StzhDropdownChangeEvent>) => {\n const target: HTMLStzhDropdownElement = event.target as HTMLStzhDropdownElement;\n const scene = await target.getValue() as string;\n this.scene = scene;\n }\n\n private handleControlsKeydown = (event: KeyboardEvent) => {\n // prevent that you can do panorama actions with arrow keys, zooming with shift etc.\n\t\tevent.stopPropagation();\n }\n\n private action = (type: \"zoomIn\" | \"zoomOut\" | \"fullscreen\" | \"startOrientation\" | \"stopOrientation\" | \"panUp\" | \"panDown\" | \"panLeft\" | \"panRight\") => {\n if (![\"startOrientation\", \"fullscreen\"].includes(type)) {\n this.stopOrientation();\n }\n\n if (type === \"zoomIn\") {\n this.executeAction(\"zoomIn\", this.viewer.getHfov, this.viewer.setHfov, -10);\n } else if (type === \"zoomOut\") {\n this.executeAction(\"zoomOut\", this.viewer.getHfov, this.viewer.setHfov, +10);\n } else if (type === \"fullscreen\") {\n\t\t\tthis.viewer.toggleFullscreen();\n } else if (type === \"startOrientation\") {\n this.startOrientation();\n } else if (type === \"panUp\") {\n this.executeAction(\"panUp\", this.viewer.getPitch, this.viewer.setPitch, +10);\n } else if (type === \"panDown\") {\n this.executeAction(\"panDown\", this.viewer.getPitch, this.viewer.setPitch, -10);\n } else if (type === \"panLeft\") {\n this.executeAction(\"panLeft\", this.viewer.getYaw, this.viewer.setYaw, -10);\n } else if (type === \"panRight\") {\n\t\t\tthis.executeAction(\"panRight\", this.viewer.getYaw, this.viewer.setYaw, +10);\n }\n }\n\n private stopOrientation() {\n if (this.viewer.isOrientationActive()) {\n this.viewer.stopOrientation();\n\n // trigger touchstart event to reset panorama rotation correctly\n // old preview code:\n // const evt = document.createEvent(\"HTMLEvents\");\n // evt.initEvent(\"touchstart\", false, true);\n // $(document).find(\".pnlm-dragfix\").get(0).dispatchEvent(evt);\n // alternative: https://gist.github.com/morewry/538efb737ed9c4e432e4\n\n var e = new window.Event(\"touchstart\");\n this.element.querySelector(\".pnlm-dragfix\").dispatchEvent(e);\n\n this.updateOrientationState();\n }\n }\n\n private startOrientation() {\n\t\tif (this.viewer.isOrientationSupported()) {\n this.viewer.startOrientation();\n this.updateOrientationState();\n\t\t}\n }\n\n private updateOrientationState() {\n this.isOrientationSupported = this.viewer.isOrientationSupported();\n this.isOrientationActive = this.isOrientationSupported && this.viewer.isOrientationActive();\n }\n\n\t/**\n\t * Execute a button control action.\n\t * If the action is already runing/animating, add the value to the current position and set as new target.\n\t */\n\tprivate executeAction(name, getter, setter, value) {\n\t\tthis.actionRunning[name] = typeof this.actionRunning[name] !== \"undefined\" && this.actionRunning[name] !== 0\n ? this.actionRunning[name] + value\n : getter() + value;\n\n\t\tsetter(this.actionRunning[name], this.controlAnimationTime, () => {\n\t\t\tthis.actionRunning = { [name]: 0 };\n\t\t});\n\t}\n\n private initViewer() {\n\t\tthis.viewer = window.pannellum.viewer(\n this.containerElement,\n // https://pannellum.org/documentation/reference/\n {\n scenes: this._scenesLibrary,\n\t\t\t\tdefault: {\n\t\t\t\t\tfirstScene: this.scene,\n\t\t\t\t\tshowControls: false, // we show our own controls (zoom in/out and fullscreen)\n\t\t\t\t\tsceneFadeDuration: this.sceneFadeDuration,\n\t\t\t\t\tautoLoad: this.autoload,\n\t\t\t\t\tcompass: false,\n\t\t\t\t\torientationOnByDefault: this.orientationOnByDefault,\n\t\t\t\t\tstrings: {\n\t\t\t\t\t\tloadButtonLabel: this.localization.loadButtonLabel,\n\t\t\t\t\t\tloadingLabel: this.localization.loadingLabel,\n\t\t\t\t\t\tbylineLabel: this.localization.bylineLabel,\n\t\t\t\t\t\tnoPanoramaError: this.localization.noPanoramaError,\n\t\t\t\t\t\tfileAccessError: this.localization.fileAccessError,\n\t\t\t\t\t\tmalformedURLError: this.localization.malformedURLError,\n\t\t\t\t\t\tiOS8WebGLError: this.localization.iOS8WebGLError,\n\t\t\t\t\t\tgenericWebGLError: this.localization.genericWebGLError,\n\t\t\t\t\t\ttextureSizeError: this.localization.textureSizeError,\n\t\t\t\t\t\tunknownError: this.localization.unknownError,\n\t\t\t\t\t}\n\t\t\t\t},\n }\n );\n\n this.viewer.on(\"load\", () => {\n if (this.viewer) {\n\t \t // update classes for orientation control when a new scene has been loaded\n this.updateOrientationState();\n this.scene = this.viewer.getScene();\n\n this.stzhLoad.emit({\n component: \"stzh-panorama\"\n });\n }\n });\n\n\t\tthis.viewer.on(\"touchstart\", () => {\n\t\t // update classes for orientation control when user interacts with panorama\n\t\t\tthis.updateOrientationState();\n\t\t});\n\n this.viewer.on(\"fullscreenchange\", (status: boolean) => {\n this.isFullscreen = status;\n\n this.stzhFullscreenChange.emit({\n component: \"stzh-panorama\",\n value: this.isFullscreen\n });\n });\n\n this.viewer.on(\"scenechange\", (sceneId: string) => {\n // set focus back to container when scene has been changed\n\t\t\tthis.containerElement.focus();\n\n this.stzhSceneChange.emit({\n component: \"stzh-panorama\",\n value: sceneId\n });\n });\n\n this.viewer.on(\"zoomchange\", (zoom: number) => {\n this.stzhZoomChange.emit({\n component: \"stzh-panorama\",\n value: zoom\n });\n });\n\n this.viewer.on(\"animatefinished\", (data: { pitch: number, yaw: number, hfov: number }) => {\n this.stzhChange.emit({\n component: \"stzh-panorama\",\n value: data\n });\n });\n }\n\n async componentWillLoad() {\n this.scenesWatcher(this.scenes);\n\n if (!this.localization) {\n this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, \"panorama\");\n }\n }\n\n async componentDidRender() {\n if (this.viewer) {\n return;\n }\n\n this.initViewer();\n }\n\n disconnectedCallback() {\n if (this.viewer) {\n this.viewer.destroy();\n this.viewer = null;\n }\n }\n\n render() {\n const classes = {\n \"stzh-panorama\": true,\n \"stzh-panorama--is-motion\": this.isOrientationActive,\n \"stzh-panorama--is-fullscreen\": this.isFullscreen,\n };\n\n const sceneOptions = this._scenes\n .map(({ sceneId, imageTitle }) => ({\n value: sceneId,\n text: imageTitle\n }));\n\n const currentScene = this._scenes\n .find(({ sceneId }) => sceneId === this.scene);\n\n return (\n <Host>\n <div class={classes}>\n <stzh-figure\n class=\"stzh-panorama__figure\"\n caption={currentScene.caption || this.caption}\n copyright={currentScene.imageAuthor}\n >\n <stzh-ratio>\n <div\n ref={(el) => (this.containerElement = el as HTMLElement)}\n class=\"stzh-panorama__container\"\n tabindex=\"0\"\n >\n <div class=\"stzh-panorama__controls\" onKeyDown={this.handleControlsKeydown}>\n <div class=\"stzh-panorama__zoom-control\">\n <stzh-button class=\"stzh-panorama__control is-zoom-in\" variant=\"secondary\" a11yLabel={this.localization.zoomIn} icon=\"plus\" iconOnly={true} size=\"small\" onClick={() => this.action(\"zoomIn\")}></stzh-button>\n <stzh-button class=\"stzh-panorama__control is-zoom-out\" variant=\"secondary\" a11yLabel={this.localization.zoomOut} icon=\"minus\" iconOnly={true} size=\"small\" onClick={() => this.action(\"zoomOut\")}></stzh-button>\n </div>\n\n {this.isOrientationSupported &&\n <stzh-button\n class=\"stzh-panorama__control\"\n variant=\"secondary\"\n a11yLabel={this.isOrientationActive ? this.localization.stopOrientation : this.localization.startOrientation}\n icon={this.isOrientationActive ? \"target-bullet\" : \"target\"}\n iconOnly={true}\n size=\"small\"\n onClick={() => this.action(this.isOrientationActive ? \"stopOrientation\" : \"startOrientation\")}\n ></stzh-button>\n }\n\n <stzh-button\n class=\"stzh-panorama__control\"\n variant=\"secondary\"\n a11yLabel={this.isFullscreen ? this.localization.disableFullscreenLabel : this.localization.enableFullscreenLabel}\n icon={this.isFullscreen ? \"close\" : \"focus\"}\n iconOnly={true}\n size=\"small\"\n onClick={() => this.action(\"fullscreen\")}\n ></stzh-button>\n </div>\n </div>\n </stzh-ratio>\n </stzh-figure>\n\n <div class=\"stzh-panorama__outside-controls\">\n <stzh-button class=\"stzh-panorama__outside-control\" label={this.localization.zoomIn} variant=\"secondary\" icon=\"plus\" size=\"small\" onClick={() => this.action(\"zoomIn\")}></stzh-button>\n <stzh-button class=\"stzh-panorama__outside-control\" label={this.localization.zoomOut} variant=\"secondary\" icon=\"minus\" size=\"small\" onClick={() => this.action(\"zoomOut\")}></stzh-button>\n {this.isOrientationSupported &&\n <stzh-button\n class=\"stzh-panorama__outside-control\"\n variant=\"secondary\"\n label={this.isOrientationActive ? this.localization.stopOrientation : this.localization.startOrientation}\n icon={this.isOrientationActive ? \"target-bullet\" : \"target\"}\n size=\"small\"\n onClick={() => this.action(this.isOrientationActive ? \"stopOrientation\" : \"startOrientation\")}\n ></stzh-button>\n }\n <stzh-button class=\"stzh-panorama__outside-control\" label={this.isFullscreen ? this.localization.disableFullscreenLabel : this.localization.enableFullscreenLabel} variant=\"secondary\" icon=\"focus\" size=\"small\" onClick={() => this.action(\"fullscreen\")}></stzh-button>\n <stzh-button class=\"stzh-panorama__outside-control\" label={this.localization.panUp} variant=\"secondary\" icon=\"arrow-up\" size=\"small\" onClick={() => this.action(\"panUp\")}></stzh-button>\n <stzh-button class=\"stzh-panorama__outside-control\" label={this.localization.panDown} variant=\"secondary\" icon=\"arrow-down\" size=\"small\" onClick={() => this.action(\"panDown\")}></stzh-button>\n <stzh-button class=\"stzh-panorama__outside-control\" label={this.localization.panLeft} variant=\"secondary\" icon=\"arrow-left\" size=\"small\" onClick={() => this.action(\"panLeft\")}></stzh-button>\n <stzh-button class=\"stzh-panorama__outside-control\" label={this.localization.panRight} variant=\"secondary\" icon=\"arrow-right\" size=\"small\" onClick={() => this.action(\"panRight\")}></stzh-button>\n <stzh-dropdown\n class=\"stzh-panorama__outside-scenes-control\"\n size=\"small\"\n label={this.localization.sceneLabel}\n labelHidden={true}\n noSearch={true}\n items={[this.scene]}\n options={sceneOptions}\n onStzhChange={this.handleSceneDropdownChange}\n ></stzh-dropdown>\n </div>\n </div>\n </Host>\n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AY,EAAE,IAAI,CAAC,yBAAyB,GAC7B,CACb,CACF,CACD,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n Component,\n Host,\n h,\n Element,\n Prop,\n Method,\n Watch,\n // Listen,\n State,\n Event,\n EventEmitter,\n} from \"@stencil/core\";\n\nimport {\n PanoramaScene,\n PanoramaScenesLibrary,\n StzhDropdownChangeEvent,\n StzhPanoramaLoadEvent,\n StzhPanoramaChangeEvent,\n StzhPanoramaFullscreenChangeEvent,\n StzhPanoramaSceneChangeEvent,\n StzhPanoramaZoomChangeEvent\n} from \"../../index\";\n\nimport { StzhPanoramaLocalizedText } from \"./stzh-panorama.localization\";\n\nimport \"pannellum\";\n\nconst CLASS_HOTSPOT = \"stzh-panorama__hotspot\";\nconst CLASS_HOTSPOT_TOOLTIP = \"stzh-panorama__hotspot-tooltip\";\nconst CLASS_HOTSPOT_BUTTON = \"stzh-panorama__hotspot-button\";\nconst CLASS_HOTSPOT_BUTTON_SCENE = \"is-scene\";\nconst CLASS_HOTSPOT_BUTTON_INFO = \"is-info\";\nconst CLASS_HOTSPOT_BUTTON_LINK = \"is-link\";\n\nconst ICON_HOTSPOT_SCENE = \"arrow-up\";\nconst ICON_HOTSPOT_DEFAULT = \"info-help\";\n\n/**\n *\n */\n@Component({\n tag: \"stzh-panorama\",\n styleUrl: \"stzh-panorama.scss\",\n})\nexport class StzhPanorama {\n /** Translation strings */\n @Prop() localization: StzhPanoramaLocalizedText;\n\n /** Caption */\n @Prop() caption: string = \"\";\n\n /** Copyright */\n @Prop() copyright: string = \"\";\n\n /** Current scene */\n @Prop({ mutable: true }) scene: string;\n\n /** Fade duration on scene change */\n @Prop() sceneFadeDuration = 500;\n\n /** Whether to autoload panorama on pageload */\n @Prop() autoload: boolean = true;\n\n /** If set to true, device orientation control will be used when the panorama is loaded, if the device supports it. If false, device orientation control needs to be activated by pressing a button. */\n @Prop() orientationOnByDefault: boolean = false;\n\n /**\n * Available scenes\n *\n * An array of objects including `sceneId`, `imageTitle`, `imageSrc`, optionally `imageAuthor`, `imageType`, `caption`, `pitch`, `yaw`, `hfov` and `hotspots`\n * `hotspots` can be an array of objects including `pitch`, `yaw`, `type`, `text`, optionally `url`, `id`, `sceneId`, `targetPitch` and `targetYaw`\n *\n * See also https://pannellum.org/documentation/reference/\n */\n @Prop() scenes: PanoramaScene[] | string;\n private _scenes: PanoramaScene[];\n private _scenesLibrary: PanoramaScenesLibrary;\n\n @Element() element: HTMLStzhFigureElement;\n\n /** Get viewer instance */\n @Method()\n async getViewer(): Promise<any> {\n return this.viewer;\n }\n\n @Watch(\"scenes\")\n scenesWatcher(newValue: PanoramaScene[] | string) {\n if (typeof newValue === \"string\") {\n this._scenes = JSON.parse(newValue);\n } else if (newValue) {\n this._scenes = newValue;\n } else {\n throw new Error('\"scenes\" is empty');\n }\n\n const scenesLib: PanoramaScenesLibrary = {};\n\n // copy object and modify scene hotspots to build own more accessible elements\n this._scenes.forEach((scene) => {\n const {\n sceneId,\n imageTitle,\n imageSrc,\n imageAuthor,\n imageType,\n hotspots,\n ...sceneParams\n } = scene;\n\n scenesLib[sceneId] = {\n ...sceneParams,\n title: imageTitle,\n author: imageAuthor,\n type: imageType,\n panorama: imageSrc,\n hotSpots: hotspots.map(hotSpot => ({\n ...hotSpot,\n URL: \"\", // switch hotspot into non url info spot to be able to create accessible link\n cssClass: CLASS_HOTSPOT,\n createTooltipFunc: this.createTooltip,\n createTooltipArgs: { ...hotSpot, url: hotSpot.url },\n }))\n };\n });\n\n this._scenesLibrary = scenesLib;\n }\n\n @Watch(\"scene\")\n sceneWatcher(newValue: string) {\n this.viewer.loadScene(newValue);\n }\n\n @Watch(\"autoload\")\n @Watch(\"scenes\")\n @Watch(\"type\")\n @Watch(\"localization\")\n @Watch(\"orientationOnByDefault\")\n @Watch(\"sceneFadeDuration\")\n updateWatcher() {\n if (this.viewer) {\n this.viewer.destroy();\n this.viewer = null;\n }\n }\n\n // @Listen(\"load\", { target: \"window\" })\n // @Listen(\"deviceorientation\", { target: \"window\" })\n // @Listen(\"pageshow\", { target: \"window\" })\n // handleLoad() {\n // if (this.viewer) {\n // requestAnimationFrame(() => {\n // this.viewer.resize();\n // });\n // }\n // }\n\n /** Load event */\n @Event() stzhLoad: EventEmitter<StzhPanoramaLoadEvent>;\n\n /** Change event */\n @Event() stzhChange: EventEmitter<StzhPanoramaChangeEvent>;\n\n /** Fullscreen change event */\n @Event() stzhFullscreenChange: EventEmitter<StzhPanoramaFullscreenChangeEvent>;\n\n /** Scene change event */\n @Event() stzhSceneChange: EventEmitter<StzhPanoramaSceneChangeEvent>;\n\n /** Zoom change event */\n @Event() stzhZoomChange: EventEmitter<StzhPanoramaZoomChangeEvent>;\n\n @State() isOrientationSupported = false;\n @State() isOrientationActive = false;\n @State() isFullscreen = false;\n\n private viewer: any;\n private containerElement: HTMLElement;\n private actionRunning: { [key: string]: number } = {};\n private controlAnimationTime: number = 500;\n\n private createTooltip = (hotspotDiv, options) => {\n\t\tconst element = document.createElement(\"stzh-button\");\n element.classList.add(CLASS_HOTSPOT_BUTTON);\n\n\t\tif (options.type === \"scene\") {\n\t\t\telement.classList.add(CLASS_HOTSPOT_BUTTON_SCENE);\n\t\t} else if (options.url) {\n\t\t\telement.classList.add(CLASS_HOTSPOT_BUTTON_LINK);\n\t\t\telement.setAttribute(\"href\", options.url);\n\t\t\telement.setAttribute(\"target\", \"_blank\");\n\t\t} else {\n\t\t\telement.classList.add(CLASS_HOTSPOT_BUTTON_INFO);\n\t\t}\n\n element.icon = options.type === \"scene\" ? ICON_HOTSPOT_SCENE : ICON_HOTSPOT_DEFAULT;\n element.iconOnly = true;\n element.rounded = true;\n element.size = \"small\";\n element.variant = \"secondary\";\n\n\t\tif (options.text) {\n const tooltip = document.createElement(\"stzh-tooltip\");\n tooltip.label = this.localization.hotspotLabel;\n tooltip.content = options.text;\n tooltip.placement = \"top\";\n\t\t\ttooltip.className = CLASS_HOTSPOT_TOOLTIP;\n\n tooltip.appendChild(element);\n hotspotDiv.appendChild(tooltip);\n\t\t} else {\n hotspotDiv.appendChild(element);\n }\n\n // prevent that you can do panorama actions with arrow keys, zooming with shift etc.\n\t\telement.addEventListener(\"keydown\", (event) => {\n\t\t\tevent.stopPropagation();\n\t\t});\n }\n\n private handleSceneDropdownChange = async (event: CustomEvent<StzhDropdownChangeEvent>) => {\n const target: HTMLStzhDropdownElement = event.target as HTMLStzhDropdownElement;\n const scene = await target.getValue() as string;\n this.scene = scene;\n }\n\n private handleControlsKeydown = (event: KeyboardEvent) => {\n // prevent that you can do panorama actions with arrow keys, zooming with shift etc.\n\t\tevent.stopPropagation();\n }\n\n private action = (type: \"zoomIn\" | \"zoomOut\" | \"fullscreen\" | \"startOrientation\" | \"stopOrientation\" | \"panUp\" | \"panDown\" | \"panLeft\" | \"panRight\") => {\n if (![\"startOrientation\", \"fullscreen\"].includes(type)) {\n this.stopOrientation();\n }\n\n if (type === \"zoomIn\") {\n this.executeAction(\"zoomIn\", this.viewer.getHfov, this.viewer.setHfov, -10);\n } else if (type === \"zoomOut\") {\n this.executeAction(\"zoomOut\", this.viewer.getHfov, this.viewer.setHfov, +10);\n } else if (type === \"fullscreen\") {\n\t\t\tthis.viewer.toggleFullscreen();\n } else if (type === \"startOrientation\") {\n this.startOrientation();\n } else if (type === \"panUp\") {\n this.executeAction(\"panUp\", this.viewer.getPitch, this.viewer.setPitch, +10);\n } else if (type === \"panDown\") {\n this.executeAction(\"panDown\", this.viewer.getPitch, this.viewer.setPitch, -10);\n } else if (type === \"panLeft\") {\n this.executeAction(\"panLeft\", this.viewer.getYaw, this.viewer.setYaw, -10);\n } else if (type === \"panRight\") {\n\t\t\tthis.executeAction(\"panRight\", this.viewer.getYaw, this.viewer.setYaw, +10);\n }\n }\n\n private stopOrientation() {\n if (this.viewer.isOrientationActive()) {\n this.viewer.stopOrientation();\n\n // trigger touchstart event to reset panorama rotation correctly\n // old preview code:\n // const evt = document.createEvent(\"HTMLEvents\");\n // evt.initEvent(\"touchstart\", false, true);\n // $(document).find(\".pnlm-dragfix\").get(0).dispatchEvent(evt);\n // alternative: https://gist.github.com/morewry/538efb737ed9c4e432e4\n\n var e = new window.Event(\"touchstart\");\n this.element.querySelector(\".pnlm-dragfix\").dispatchEvent(e);\n\n this.updateOrientationState();\n }\n }\n\n private startOrientation() {\n\t\tif (this.viewer.isOrientationSupported()) {\n this.viewer.startOrientation();\n this.updateOrientationState();\n\t\t}\n }\n\n private updateOrientationState() {\n this.isOrientationSupported = this.viewer.isOrientationSupported();\n this.isOrientationActive = this.isOrientationSupported && this.viewer.isOrientationActive();\n }\n\n\t/**\n\t * Execute a button control action.\n\t * If the action is already runing/animating, add the value to the current position and set as new target.\n\t */\n\tprivate executeAction(name, getter, setter, value) {\n\t\tthis.actionRunning[name] = typeof this.actionRunning[name] !== \"undefined\" && this.actionRunning[name] !== 0\n ? this.actionRunning[name] + value\n : getter() + value;\n\n\t\tsetter(this.actionRunning[name], this.controlAnimationTime, () => {\n\t\t\tthis.actionRunning = { [name]: 0 };\n\t\t});\n\t}\n\n private initViewer() {\n\t\tthis.viewer = window.pannellum.viewer(\n this.containerElement,\n // https://pannellum.org/documentation/reference/\n {\n scenes: this._scenesLibrary,\n\t\t\t\tdefault: {\n\t\t\t\t\tfirstScene: this.scene,\n\t\t\t\t\tshowControls: false, // we show our own controls (zoom in/out and fullscreen)\n\t\t\t\t\tsceneFadeDuration: this.sceneFadeDuration,\n\t\t\t\t\tautoLoad: this.autoload,\n\t\t\t\t\tcompass: false,\n\t\t\t\t\torientationOnByDefault: this.orientationOnByDefault,\n\t\t\t\t\tstrings: {\n\t\t\t\t\t\tloadButtonLabel: this.localization.loadButtonLabel,\n\t\t\t\t\t\tloadingLabel: this.localization.loadingLabel,\n\t\t\t\t\t\tbylineLabel: this.localization.bylineLabel,\n\t\t\t\t\t\tnoPanoramaError: this.localization.noPanoramaError,\n\t\t\t\t\t\tfileAccessError: this.localization.fileAccessError,\n\t\t\t\t\t\tmalformedURLError: this.localization.malformedURLError,\n\t\t\t\t\t\tiOS8WebGLError: this.localization.iOS8WebGLError,\n\t\t\t\t\t\tgenericWebGLError: this.localization.genericWebGLError,\n\t\t\t\t\t\ttextureSizeError: this.localization.textureSizeError,\n\t\t\t\t\t\tunknownError: this.localization.unknownError,\n\t\t\t\t\t}\n\t\t\t\t},\n }\n );\n\n this.viewer.on(\"load\", () => {\n if (this.viewer) {\n\t \t // update classes for orientation control when a new scene has been loaded\n this.updateOrientationState();\n this.scene = this.viewer.getScene();\n\n this.stzhLoad.emit({\n component: \"stzh-panorama\"\n });\n }\n });\n\n\t\tthis.viewer.on(\"touchstart\", () => {\n\t\t // update classes for orientation control when user interacts with panorama\n\t\t\tthis.updateOrientationState();\n\t\t});\n\n this.viewer.on(\"fullscreenchange\", (status: boolean) => {\n this.isFullscreen = status;\n\n this.stzhFullscreenChange.emit({\n component: \"stzh-panorama\",\n value: this.isFullscreen\n });\n });\n\n this.viewer.on(\"scenechange\", (sceneId: string) => {\n // set focus back to container when scene has been changed\n\t\t\tthis.containerElement.focus();\n\n this.stzhSceneChange.emit({\n component: \"stzh-panorama\",\n value: sceneId\n });\n });\n\n this.viewer.on(\"zoomchange\", (zoom: number) => {\n this.stzhZoomChange.emit({\n component: \"stzh-panorama\",\n value: zoom\n });\n });\n\n this.viewer.on(\"animatefinished\", (data: { pitch: number, yaw: number, hfov: number }) => {\n this.stzhChange.emit({\n component: \"stzh-panorama\",\n value: data\n });\n });\n }\n\n async componentWillLoad() {\n this.scenesWatcher(this.scenes);\n\n if (!this.localization) {\n this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, \"panorama\");\n }\n }\n\n async componentDidRender() {\n if (this.viewer) {\n return;\n }\n\n this.initViewer();\n }\n\n disconnectedCallback() {\n if (this.viewer) {\n this.viewer.destroy();\n this.viewer = null;\n }\n }\n\n render() {\n const classes = {\n \"stzh-panorama\": true,\n \"stzh-panorama--is-motion\": this.isOrientationActive,\n \"stzh-panorama--is-fullscreen\": this.isFullscreen,\n };\n\n const sceneOptions = this._scenes\n .map(({ sceneId, imageTitle }) => ({\n value: sceneId,\n text: imageTitle\n }));\n\n const currentScene = this._scenes\n .find(({ sceneId }) => sceneId === this.scene);\n\n return (\n <Host>\n <div class={classes}>\n <stzh-figure\n class=\"stzh-panorama__figure\"\n caption={currentScene.caption || this.caption}\n copyright={currentScene.copyright || this.copyright}\n >\n <stzh-ratio>\n <div\n ref={(el) => (this.containerElement = el as HTMLElement)}\n class=\"stzh-panorama__container\"\n tabindex=\"0\"\n >\n <div class=\"stzh-panorama__controls\" onKeyDown={this.handleControlsKeydown}>\n <div class=\"stzh-panorama__zoom-control\">\n <stzh-button class=\"stzh-panorama__control is-zoom-in\" variant=\"secondary\" a11yLabel={this.localization.zoomIn} icon=\"plus\" iconOnly={true} size=\"small\" onClick={() => this.action(\"zoomIn\")}></stzh-button>\n <stzh-button class=\"stzh-panorama__control is-zoom-out\" variant=\"secondary\" a11yLabel={this.localization.zoomOut} icon=\"minus\" iconOnly={true} size=\"small\" onClick={() => this.action(\"zoomOut\")}></stzh-button>\n </div>\n\n {this.isOrientationSupported &&\n <stzh-button\n class=\"stzh-panorama__control\"\n variant=\"secondary\"\n a11yLabel={this.isOrientationActive ? this.localization.stopOrientation : this.localization.startOrientation}\n icon={this.isOrientationActive ? \"target-bullet\" : \"target\"}\n iconOnly={true}\n size=\"small\"\n onClick={() => this.action(this.isOrientationActive ? \"stopOrientation\" : \"startOrientation\")}\n ></stzh-button>\n }\n\n <stzh-button\n class=\"stzh-panorama__control\"\n variant=\"secondary\"\n a11yLabel={this.isFullscreen ? this.localization.disableFullscreenLabel : this.localization.enableFullscreenLabel}\n icon={this.isFullscreen ? \"close\" : \"focus\"}\n iconOnly={true}\n size=\"small\"\n onClick={() => this.action(\"fullscreen\")}\n ></stzh-button>\n </div>\n </div>\n </stzh-ratio>\n </stzh-figure>\n\n <div class=\"stzh-panorama__outside-controls\">\n <stzh-button class=\"stzh-panorama__outside-control\" label={this.localization.zoomIn} variant=\"secondary\" icon=\"plus\" size=\"small\" onClick={() => this.action(\"zoomIn\")}></stzh-button>\n <stzh-button class=\"stzh-panorama__outside-control\" label={this.localization.zoomOut} variant=\"secondary\" icon=\"minus\" size=\"small\" onClick={() => this.action(\"zoomOut\")}></stzh-button>\n {this.isOrientationSupported &&\n <stzh-button\n class=\"stzh-panorama__outside-control\"\n variant=\"secondary\"\n label={this.isOrientationActive ? this.localization.stopOrientation : this.localization.startOrientation}\n icon={this.isOrientationActive ? \"target-bullet\" : \"target\"}\n size=\"small\"\n onClick={() => this.action(this.isOrientationActive ? \"stopOrientation\" : \"startOrientation\")}\n ></stzh-button>\n }\n <stzh-button class=\"stzh-panorama__outside-control\" label={this.isFullscreen ? this.localization.disableFullscreenLabel : this.localization.enableFullscreenLabel} variant=\"secondary\" icon=\"focus\" size=\"small\" onClick={() => this.action(\"fullscreen\")}></stzh-button>\n <stzh-button class=\"stzh-panorama__outside-control\" label={this.localization.panUp} variant=\"secondary\" icon=\"arrow-up\" size=\"small\" onClick={() => this.action(\"panUp\")}></stzh-button>\n <stzh-button class=\"stzh-panorama__outside-control\" label={this.localization.panDown} variant=\"secondary\" icon=\"arrow-down\" size=\"small\" onClick={() => this.action(\"panDown\")}></stzh-button>\n <stzh-button class=\"stzh-panorama__outside-control\" label={this.localization.panLeft} variant=\"secondary\" icon=\"arrow-left\" size=\"small\" onClick={() => this.action(\"panLeft\")}></stzh-button>\n <stzh-button class=\"stzh-panorama__outside-control\" label={this.localization.panRight} variant=\"secondary\" icon=\"arrow-right\" size=\"small\" onClick={() => this.action(\"panRight\")}></stzh-button>\n <stzh-dropdown\n class=\"stzh-panorama__outside-scenes-control\"\n size=\"small\"\n label={this.localization.sceneLabel}\n labelHidden={true}\n noSearch={true}\n items={[this.scene]}\n options={sceneOptions}\n onStzhChange={this.handleSceneDropdownChange}\n ></stzh-dropdown>\n </div>\n </div>\n </Host>\n );\n }\n}\n"]}
@@ -7,7 +7,8 @@ export class StzhProgressbarItem {
7
7
  this.onClick = (event) => {
8
8
  this.stzhClick.emit({
9
9
  component: "stzh-progressbar-item",
10
- originalEvent: event
10
+ originalEvent: event,
11
+ index: Array.prototype.indexOf.call(this.element.parentNode.children, this.element),
11
12
  });
12
13
  };
13
14
  this.onDottedClick = (event) => {
@@ -278,7 +279,7 @@ export class StzhProgressbarItem {
278
279
  },
279
280
  "complexType": {
280
281
  "original": "StzhProgressbarItemClickEvent",
281
- "resolved": "{ component: \"stzh-progressbar-item\"; originalEvent: MouseEvent; }",
282
+ "resolved": "{ component: \"stzh-progressbar-item\"; originalEvent: MouseEvent; index: number; }",
282
283
  "references": {
283
284
  "StzhProgressbarItemClickEvent": {
284
285
  "location": "import",
@@ -1 +1 @@
1
- {"version":3,"file":"stzh-progressbar-item.js","sourceRoot":"","sources":["../../../../src/components/stzh-progressbar-item/stzh-progressbar-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,IAAI,EACJ,CAAC,EACD,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,KAAK,EAEN,MAAM,eAAe,CAAC;AAOvB;;GAEG;AAMH,MAAM,OAAO,mBAAmB;;IAuCtB,YAAO,GAAG,CAAC,KAAiB,EAAE,EAAE;MACtC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;QAClB,SAAS,EAAE,uBAAuB;QAClC,aAAa,EAAE,KAAK;OACrB,CAAC,CA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n Component,\n Host,\n h,\n Prop,\n Element,\n Fragment,\n Event,\n EventEmitter\n} from \"@stencil/core\";\n\nimport {\n StzhProgressbarItemClickEvent,\n StzhProgressbarItemDottedClickEvent\n} from '../../index';\n\n/**\n * @slot - Slot for label (or use label prop)\n */\n@Component({\n tag: \"stzh-progressbar-item\",\n styleUrl: \"stzh-progressbar-item.scss\",\n scoped: true\n})\nexport class StzhProgressbarItem {\n @Prop({ reflect: true }) label: string;\n\n @Prop({ reflect: true }) disabled: boolean = false;\n\n @Prop({ reflect: true }) first: boolean = false;\n\n @Prop({ reflect: true }) last: boolean = false;\n\n @Prop({ reflect: true }) passed: boolean = false;\n\n @Prop({ reflect: true }) current: boolean = false;\n\n @Prop({ reflect: true }) hide: boolean = false;\n\n @Prop({ reflect: true }) dotted: boolean = false;\n\n @Prop({ reflect: true }) step: number = 1;\n\n @Prop({ reflect: true }) icon: string = \"\";\n\n /**\n * For Adobe Analytics.\n * Will be rendered as value of `s-object-id` attribute to the button element.\n * Default value will be taken from `label` prop or default slot.\n */\n @Prop() analyticsId: string;\n\n /** Click event */\n @Event() stzhClick: EventEmitter<StzhProgressbarItemClickEvent>;\n\n /** Dotted click event */\n @Event() stzhDottedClick: EventEmitter<StzhProgressbarItemDottedClickEvent>;\n\n @Element() element: HTMLStzhProgressbarItemElement;\n\n private button: HTMLButtonElement;\n private text: HTMLElement;\n\n private onClick = (event: MouseEvent) => {\n this.stzhClick.emit({\n component: \"stzh-progressbar-item\",\n originalEvent: event\n });\n }\n\n private onDottedClick = (event: MouseEvent) => {\n this.stzhDottedClick.emit({\n component: \"stzh-progressbar-item\",\n originalEvent: event\n });\n }\n\n componentDidRender() {\n requestAnimationFrame(() => {\n this.button.setAttribute(\"s-object-id\", this.analyticsId || this.text.innerText);\n });\n }\n\n render() {\n const classes = {\n \"stzh-progressbar-item\": true,\n \"stzh-progressbar-item--first\": this.first,\n \"stzh-progressbar-item--last\": this.last,\n \"stzh-progressbar-item--passed\": this.passed,\n \"stzh-progressbar-item--current\": this.current,\n \"stzh-progressbar-item--hide\": this.hide,\n \"stzh-progressbar-item--dotted\": this.dotted,\n \"stzh-progressbar-item--has-icon\": !!this.icon,\n \"stzh-progressbar-item--is-disabled\": this.disabled\n };\n\n const dotted = (\n <button\n class=\"stzh-progressbar-item__dotted\"\n onClick={this.onDottedClick}\n >\n <stzh-icon class=\"stzh-progressbar-item__dotted-icon\" name=\"more-horizontal\"></stzh-icon>\n </button>\n );\n\n return (\n <Host role=\"listitem\">\n <div class={classes}>\n {this.last && this.dotted && dotted}\n <button\n ref={(el) => (this.button = el as HTMLButtonElement)}\n class=\"stzh-progressbar-item__button\"\n aria-pressed={this.current ? \"true\" : \"false\"}\n disabled={(this.dotted && this.first) || this.disabled}\n onClick={this.onClick}\n >\n <span class=\"stzh-progressbar-item__number-block\">\n {this.icon\n ?\n <stzh-icon class=\"stzh-progressbar-item__user-icon\" name={this.icon}></stzh-icon>\n :\n <Fragment>\n <span class=\"stzh-progressbar-item__number\">{this.step}</span>\n {this.passed &&\n <stzh-icon class=\"stzh-progressbar-item__icon\" name=\"checkmark\"></stzh-icon>\n }\n </Fragment>\n }\n </span>\n <span\n ref={(el) => (this.text = el as HTMLElement)}\n class=\"stzh-progressbar-item__label-block\"\n >\n {this.label ? this.label : <slot></slot>}\n </span>\n </button>\n {this.first && this.dotted && dotted}\n </div>\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"stzh-progressbar-item.js","sourceRoot":"","sources":["../../../../src/components/stzh-progressbar-item/stzh-progressbar-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,IAAI,EACJ,CAAC,EACD,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,KAAK,EAEN,MAAM,eAAe,CAAC;AAOvB;;GAEG;AAMH,MAAM,OAAO,mBAAmB;;IAuCtB,YAAO,GAAG,CAAC,K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R,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n Component,\n Host,\n h,\n Prop,\n Element,\n Fragment,\n Event,\n EventEmitter\n} from \"@stencil/core\";\n\nimport {\n StzhProgressbarItemClickEvent,\n StzhProgressbarItemDottedClickEvent\n} from '../../index';\n\n/**\n * @slot - Slot for label (or use label prop)\n */\n@Component({\n tag: \"stzh-progressbar-item\",\n styleUrl: \"stzh-progressbar-item.scss\",\n scoped: true\n})\nexport class StzhProgressbarItem {\n @Prop({ reflect: true }) label: string;\n\n @Prop({ reflect: true }) disabled: boolean = false;\n\n @Prop({ reflect: true }) first: boolean = false;\n\n @Prop({ reflect: true }) last: boolean = false;\n\n @Prop({ reflect: true }) passed: boolean = false;\n\n @Prop({ reflect: true }) current: boolean = false;\n\n @Prop({ reflect: true }) hide: boolean = false;\n\n @Prop({ reflect: true }) dotted: boolean = false;\n\n @Prop({ reflect: true }) step: number = 1;\n\n @Prop({ reflect: true }) icon: string = \"\";\n\n /**\n * For Adobe Analytics.\n * Will be rendered as value of `s-object-id` attribute to the button element.\n * Default value will be taken from `label` prop or default slot.\n */\n @Prop() analyticsId: string;\n\n /** Click event */\n @Event() stzhClick: EventEmitter<StzhProgressbarItemClickEvent>;\n\n /** Dotted click event */\n @Event() stzhDottedClick: EventEmitter<StzhProgressbarItemDottedClickEvent>;\n\n @Element() element: HTMLStzhProgressbarItemElement;\n\n private button: HTMLButtonElement;\n private text: HTMLElement;\n\n private onClick = (event: MouseEvent) => {\n this.stzhClick.emit({\n component: \"stzh-progressbar-item\",\n originalEvent: event,\n index: Array.prototype.indexOf.call(this.element.parentNode.children, this.element),\n });\n }\n\n private onDottedClick = (event: MouseEvent) => {\n this.stzhDottedClick.emit({\n component: \"stzh-progressbar-item\",\n originalEvent: event\n });\n }\n\n componentDidRender() {\n requestAnimationFrame(() => {\n this.button.setAttribute(\"s-object-id\", this.analyticsId || this.text.innerText);\n });\n }\n\n render() {\n const classes = {\n \"stzh-progressbar-item\": true,\n \"stzh-progressbar-item--first\": this.first,\n \"stzh-progressbar-item--last\": this.last,\n \"stzh-progressbar-item--passed\": this.passed,\n \"stzh-progressbar-item--current\": this.current,\n \"stzh-progressbar-item--hide\": this.hide,\n \"stzh-progressbar-item--dotted\": this.dotted,\n \"stzh-progressbar-item--has-icon\": !!this.icon,\n \"stzh-progressbar-item--is-disabled\": this.disabled\n };\n\n const dotted = (\n <button\n class=\"stzh-progressbar-item__dotted\"\n onClick={this.onDottedClick}\n >\n <stzh-icon class=\"stzh-progressbar-item__dotted-icon\" name=\"more-horizontal\"></stzh-icon>\n </button>\n );\n\n return (\n <Host role=\"listitem\">\n <div class={classes}>\n {this.last && this.dotted && dotted}\n <button\n ref={(el) => (this.button = el as HTMLButtonElement)}\n class=\"stzh-progressbar-item__button\"\n aria-pressed={this.current ? \"true\" : \"false\"}\n disabled={(this.dotted && this.first) || this.disabled}\n onClick={this.onClick}\n >\n <span class=\"stzh-progressbar-item__number-block\">\n {this.icon\n ?\n <stzh-icon class=\"stzh-progressbar-item__user-icon\" name={this.icon}></stzh-icon>\n :\n <Fragment>\n <span class=\"stzh-progressbar-item__number\">{this.step}</span>\n {this.passed &&\n <stzh-icon class=\"stzh-progressbar-item__icon\" name=\"checkmark\"></stzh-icon>\n }\n </Fragment>\n }\n </span>\n <span\n ref={(el) => (this.text = el as HTMLElement)}\n class=\"stzh-progressbar-item__label-block\"\n >\n {this.label ? this.label : <slot></slot>}\n </span>\n </button>\n {this.first && this.dotted && dotted}\n </div>\n </Host>\n );\n }\n}\n"]}
@@ -5,10 +5,10 @@ import { Host, h, } from "@stencil/core";
5
5
  export class StzhRow {
6
6
  constructor() {
7
7
  this.span = 12;
8
- this.spanSmall = 0;
9
- this.spanMedium = 0;
10
- this.spanLarge = 0;
11
- this.spanUltra = 0;
8
+ this.spanSmall = undefined;
9
+ this.spanMedium = undefined;
10
+ this.spanLarge = undefined;
11
+ this.spanUltra = undefined;
12
12
  this.justify = "start";
13
13
  this.items = "start";
14
14
  this.content = "start";
@@ -50,7 +50,7 @@ export class StzhRow {
50
50
  "text": "Default span of each cell"
51
51
  },
52
52
  "attribute": "span",
53
- "reflect": false,
53
+ "reflect": true,
54
54
  "defaultValue": "12"
55
55
  },
56
56
  "spanSmall": {
@@ -68,8 +68,7 @@ export class StzhRow {
68
68
  "text": "Default span of each cell above small breakpoint"
69
69
  },
70
70
  "attribute": "span-small",
71
- "reflect": false,
72
- "defaultValue": "0"
71
+ "reflect": true
73
72
  },
74
73
  "spanMedium": {
75
74
  "type": "number",
@@ -86,8 +85,7 @@ export class StzhRow {
86
85
  "text": "Default span of each cell above medium breakpoint"
87
86
  },
88
87
  "attribute": "span-medium",
89
- "reflect": false,
90
- "defaultValue": "0"
88
+ "reflect": true
91
89
  },
92
90
  "spanLarge": {
93
91
  "type": "number",
@@ -104,8 +102,7 @@ export class StzhRow {
104
102
  "text": "Default span of each cell above large breakpoint"
105
103
  },
106
104
  "attribute": "span-large",
107
- "reflect": false,
108
- "defaultValue": "0"
105
+ "reflect": true
109
106
  },
110
107
  "spanUltra": {
111
108
  "type": "number",
@@ -122,8 +119,7 @@ export class StzhRow {
122
119
  "text": "Default span of each cell above ultra breakpoint"
123
120
  },
124
121
  "attribute": "span-ultra",
125
- "reflect": false,
126
- "defaultValue": "0"
122
+ "reflect": true
127
123
  },
128
124
  "justify": {
129
125
  "type": "string",
@@ -1 +1 @@
1
- {"version":3,"file":"stzh-row.js","sourceRoot":"","sources":["../../../../src/components/stzh-row/stzh-row.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,IAAI,EACJ,CAAC,EACD,IAAI,GACL,MAAM,eAAe,CAAC;AAIvB;;GAEG;AAMH,MAAM,OAAO,OAAO;;gBAEK,EAAE;qBAEG,CAAC;sBAEA,CAAC;qBAEF,CAAC;qBAED,CAAC;mBAGsB,OAAO;iBAGX,OAAO;mBAGH,OAAO;;EAE1D,MAAM;IACJ,OAAO,CACL,EAAC,IAAI;MACH,WACE,KAAK,EAAE;UACL,UAAU,EAAE,IAAI;UAChB,CAAC,qBAAqB,IAAI,CAAC,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO;UACrD,CAAC,mBAAmB,IAAI,CAAC,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK;UAC/C,CAAC,qBAAqB,IAAI,CAAC,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO;SACtD;QAED,eAAa,CACT,CACD,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n Component,\n Host,\n h,\n Prop,\n} from \"@stencil/core\";\n\nimport { Layout } from \"../../index\";\n\n/**\n * @slot - Slot for `stzh-cell` elements\n */\n@Component({\n tag: \"stzh-row\",\n styleUrl: \"stzh-row.scss\",\n shadow: true\n})\nexport class StzhRow {\n /** Default span of each cell */\n @Prop() span: number = 12;\n /** Default span of each cell above small breakpoint */\n @Prop() spanSmall: number = 0;\n /** Default span of each cell above medium breakpoint */\n @Prop() spanMedium: number = 0;\n /** Default span of each cell above large breakpoint */\n @Prop() spanLarge: number = 0;\n /** Default span of each cell above ultra breakpoint */\n @Prop() spanUltra: number = 0;\n\n /** Controlling how cells are positioned along a container's main axis */\n @Prop({ reflect: true }) justify: Layout.Justify = \"start\";\n\n /** Control how cells items are positioned along a container's cross axis */\n @Prop({ reflect: true }) items: Layout.Items = \"start\";\n\n /** Utilities for controlling how rows are positioned in multi-row flex containers. */\n @Prop({ reflect: true }) content: Layout.Justify = \"start\";\n\n render() {\n return (\n <Host>\n <div\n class={{\n \"stzh-row\": true,\n [`stzh-row--justify-${this.justify}`]: !!this.justify,\n [`stzh-row--items-${this.items}`]: !!this.items,\n [`stzh-row--content-${this.content}`]: !!this.content\n }}\n >\n <slot></slot>\n </div>\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"stzh-row.js","sourceRoot":"","sources":["../../../../src/components/stzh-row/stzh-row.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,IAAI,EACJ,CAAC,EACD,IAAI,GACL,MAAM,eAAe,CAAC;AAIvB;;GAEG;AAMH,MAAM,OAAO,OAAO;;gBAEsB,EAAE;;;;;mBAWS,OAAO;iBAGX,OAAO;mBAGH,OAAO;;EAE1D,MAAM;IACJ,OAAO,CACL,EAAC,IAAI;MACH,WACE,KAAK,EAAE;UACL,UAAU,EAAE,IAAI;UAChB,CAAC,qBAAqB,IAAI,CAAC,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO;UACrD,CAAC,mBAAmB,IAAI,CAAC,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK;UAC/C,CAAC,qBAAqB,IAAI,CAAC,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO;SACtD;QAED,eAAa,CACT,CACD,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n Component,\n Host,\n h,\n Prop,\n} from \"@stencil/core\";\n\nimport { Layout } from \"../../index\";\n\n/**\n * @slot - Slot for `stzh-cell` elements\n */\n@Component({\n tag: \"stzh-row\",\n styleUrl: \"stzh-row.scss\",\n shadow: true\n})\nexport class StzhRow {\n /** Default span of each cell */\n @Prop({ reflect: true }) span: number = 12;\n /** Default span of each cell above small breakpoint */\n @Prop({ reflect: true }) spanSmall: number;\n /** Default span of each cell above medium breakpoint */\n @Prop({ reflect: true }) spanMedium: number;\n /** Default span of each cell above large breakpoint */\n @Prop({ reflect: true }) spanLarge: number;\n /** Default span of each cell above ultra breakpoint */\n @Prop({ reflect: true }) spanUltra: number;\n\n /** Controlling how cells are positioned along a container's main axis */\n @Prop({ reflect: true }) justify: Layout.Justify = \"start\";\n\n /** Control how cells items are positioned along a container's cross axis */\n @Prop({ reflect: true }) items: Layout.Items = \"start\";\n\n /** Utilities for controlling how rows are positioned in multi-row flex containers. */\n @Prop({ reflect: true }) content: Layout.Justify = \"start\";\n\n render() {\n return (\n <Host>\n <div\n class={{\n \"stzh-row\": true,\n [`stzh-row--justify-${this.justify}`]: !!this.justify,\n [`stzh-row--items-${this.items}`]: !!this.items,\n [`stzh-row--content-${this.content}`]: !!this.content\n }}\n >\n <slot></slot>\n </div>\n </Host>\n );\n }\n}\n"]}