@oiz/stzh-components 3.0.0 → 3.1.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 (713) hide show
  1. package/dist/cjs/{app-globals-1d1f8f2e.js → app-globals-0699ef40.js} +2 -2
  2. package/dist/cjs/{app-globals-1d1f8f2e.js.map → app-globals-0699ef40.js.map} +1 -1
  3. package/dist/cjs/index-92254d32.js +46 -18
  4. package/dist/cjs/index.cjs.js.map +1 -1
  5. package/dist/cjs/loader.cjs.js +2 -2
  6. package/dist/cjs/stzh-accordion_3.cjs.entry.js +19 -19
  7. package/dist/cjs/stzh-accordion_3.cjs.entry.js.map +1 -1
  8. package/dist/cjs/stzh-amount.cjs.entry.js.map +1 -1
  9. package/dist/cjs/stzh-card-searchresult.cjs.entry.js +5 -18
  10. package/dist/cjs/stzh-card-searchresult.cjs.entry.js.map +1 -1
  11. package/dist/cjs/{stzh-card_3.cjs.entry.js → stzh-card_2.cjs.entry.js} +6 -222
  12. package/dist/cjs/stzh-card_2.cjs.entry.js.map +1 -0
  13. package/dist/cjs/stzh-checkbox.cjs.entry.js.map +1 -1
  14. package/dist/cjs/stzh-checkboxgroup.cjs.entry.js.map +1 -1
  15. package/dist/cjs/{stzh-message.cjs.entry.js → stzh-chipgroup_2.cjs.entry.js} +19 -2
  16. package/dist/cjs/stzh-chipgroup_2.cjs.entry.js.map +1 -0
  17. package/dist/cjs/stzh-chipselect.cjs.entry.js +222 -0
  18. package/dist/cjs/stzh-chipselect.cjs.entry.js.map +1 -0
  19. package/dist/cjs/stzh-components.cjs.js +2 -2
  20. package/dist/cjs/stzh-contact.cjs.entry.js +40 -37
  21. package/dist/cjs/stzh-contact.cjs.entry.js.map +1 -1
  22. package/dist/cjs/stzh-container.cjs.entry.js +1 -1
  23. package/dist/cjs/stzh-container.cjs.entry.js.map +1 -1
  24. package/dist/cjs/stzh-content.cjs.entry.js +1 -1
  25. package/dist/cjs/stzh-content.cjs.entry.js.map +1 -1
  26. package/dist/cjs/stzh-cspace.cjs.entry.js +1 -1
  27. package/dist/cjs/stzh-cspace.cjs.entry.js.map +1 -1
  28. package/dist/cjs/stzh-datalist_2.cjs.entry.js +1 -1
  29. package/dist/cjs/stzh-datalist_2.cjs.entry.js.map +1 -1
  30. package/dist/cjs/stzh-datepicker_3.cjs.entry.js +31 -33
  31. package/dist/cjs/stzh-datepicker_3.cjs.entry.js.map +1 -1
  32. package/dist/cjs/stzh-dropdown.cjs.entry.js +1 -1
  33. package/dist/cjs/stzh-dropdown.cjs.entry.js.map +1 -1
  34. package/dist/cjs/stzh-gallery.cjs.entry.js +1 -1
  35. package/dist/cjs/stzh-gallery.cjs.entry.js.map +1 -1
  36. package/dist/cjs/stzh-header.cjs.entry.js +175 -166
  37. package/dist/cjs/stzh-header.cjs.entry.js.map +1 -1
  38. package/dist/cjs/stzh-heading.cjs.entry.js +1 -1
  39. package/dist/cjs/stzh-heading.cjs.entry.js.map +1 -1
  40. package/dist/cjs/stzh-homepage-service-highlights.cjs.entry.js +102 -0
  41. package/dist/cjs/stzh-homepage-service-highlights.cjs.entry.js.map +1 -0
  42. package/dist/cjs/stzh-hspace.cjs.entry.js +1 -1
  43. package/dist/cjs/stzh-hspace.cjs.entry.js.map +1 -1
  44. package/dist/cjs/stzh-input.cjs.entry.js +29 -44
  45. package/dist/cjs/stzh-input.cjs.entry.js.map +1 -1
  46. package/dist/cjs/stzh-monthyearpicker.cjs.entry.js.map +1 -1
  47. package/dist/cjs/stzh-pagetitle-home.cjs.entry.js +76 -0
  48. package/dist/cjs/stzh-pagetitle-home.cjs.entry.js.map +1 -0
  49. package/dist/cjs/stzh-pagetitle.cjs.entry.js +16 -15
  50. package/dist/cjs/stzh-pagetitle.cjs.entry.js.map +1 -1
  51. package/dist/cjs/stzh-panorama.cjs.entry.js +51 -25
  52. package/dist/cjs/stzh-panorama.cjs.entry.js.map +1 -1
  53. package/dist/cjs/stzh-pi-content-navigation.cjs.entry.js +64 -0
  54. package/dist/cjs/stzh-pi-content-navigation.cjs.entry.js.map +1 -0
  55. package/dist/cjs/stzh-pi-menu.cjs.entry.js +202 -0
  56. package/dist/cjs/stzh-pi-menu.cjs.entry.js.map +1 -0
  57. package/dist/cjs/stzh-pi-pagetitle.cjs.entry.js +83 -0
  58. package/dist/cjs/stzh-pi-pagetitle.cjs.entry.js.map +1 -0
  59. package/dist/cjs/stzh-pi-quote.cjs.entry.js +26 -0
  60. package/dist/cjs/stzh-pi-quote.cjs.entry.js.map +1 -0
  61. package/dist/cjs/stzh-pi-teaser.cjs.entry.js +62 -0
  62. package/dist/cjs/stzh-pi-teaser.cjs.entry.js.map +1 -0
  63. package/dist/cjs/stzh-popover_2.cjs.entry.js +1 -1
  64. package/dist/cjs/stzh-popover_2.cjs.entry.js.map +1 -1
  65. package/dist/cjs/stzh-progressbar-item.cjs.entry.js +7 -3
  66. package/dist/cjs/stzh-progressbar-item.cjs.entry.js.map +1 -1
  67. package/dist/cjs/stzh-progressbar.cjs.entry.js +2 -1
  68. package/dist/cjs/stzh-progressbar.cjs.entry.js.map +1 -1
  69. package/dist/cjs/stzh-ratio.cjs.entry.js +1 -1
  70. package/dist/cjs/stzh-ratio.cjs.entry.js.map +1 -1
  71. package/dist/cjs/stzh-readspeaker.cjs.entry.js +1 -0
  72. package/dist/cjs/stzh-readspeaker.cjs.entry.js.map +1 -1
  73. package/dist/cjs/stzh-search.cjs.entry.js +69 -44
  74. package/dist/cjs/stzh-search.cjs.entry.js.map +1 -1
  75. package/dist/cjs/stzh-section.cjs.entry.js +3 -3
  76. package/dist/cjs/stzh-section.cjs.entry.js.map +1 -1
  77. package/dist/cjs/stzh-skin-portal-mitwirken.cjs.entry.js +1 -1
  78. package/dist/cjs/stzh-skin-portal-mitwirken.cjs.entry.js.map +1 -1
  79. package/dist/cjs/stzh-space.cjs.entry.js +1 -1
  80. package/dist/cjs/stzh-space.cjs.entry.js.map +1 -1
  81. package/dist/cjs/stzh-textandimage.cjs.entry.js +10 -8
  82. package/dist/cjs/stzh-textandimage.cjs.entry.js.map +1 -1
  83. package/dist/cjs/stzh-timepicker.cjs.entry.js.map +1 -1
  84. package/dist/cjs/stzh-toggle.cjs.entry.js.map +1 -1
  85. package/dist/cjs/stzh-tooltip.cjs.entry.js +36 -51
  86. package/dist/cjs/stzh-tooltip.cjs.entry.js.map +1 -1
  87. package/dist/cjs/stzh-upload.cjs.entry.js +65 -31
  88. package/dist/cjs/stzh-upload.cjs.entry.js.map +1 -1
  89. package/dist/cjs/stzh-vspace.cjs.entry.js +1 -1
  90. package/dist/cjs/stzh-vspace.cjs.entry.js.map +1 -1
  91. package/dist/collection/assets/i18n/de.json +36 -3
  92. package/dist/collection/assets/i18n/en.json +36 -3
  93. package/dist/collection/collection-manifest.json +7 -0
  94. package/dist/collection/components/stzh-accordion/stzh-accordion.css +16 -0
  95. package/dist/collection/components/stzh-accordion/stzh-accordion.js +38 -20
  96. package/dist/collection/components/stzh-accordion/stzh-accordion.js.map +1 -1
  97. package/dist/collection/components/stzh-accordion/stzh-accordion.stories.js +4 -5
  98. package/dist/collection/components/stzh-accordion-item/stzh-accordion-item.css +3 -0
  99. package/dist/collection/components/stzh-accordion-item/stzh-accordion-item.js +1 -1
  100. package/dist/collection/components/stzh-accordion-item/stzh-accordion-item.stories.js +7 -8
  101. package/dist/collection/components/stzh-actions/stzh-actions.css +3 -0
  102. package/dist/collection/components/stzh-actionset/stzh-actionset.css +3 -0
  103. package/dist/collection/components/stzh-amount/stzh-amount.css +3 -0
  104. package/dist/collection/components/stzh-amount/stzh-amount.js +1 -1
  105. package/dist/collection/components/stzh-amount/stzh-amount.js.map +1 -1
  106. package/dist/collection/components/stzh-anchornav/stzh-anchornav.css +3 -0
  107. package/dist/collection/components/stzh-appointments/stzh-appointments.css +3 -0
  108. package/dist/collection/components/stzh-archivelist/stzh-archivelist.css +3 -0
  109. package/dist/collection/components/stzh-audio/stzh-audio.css +3 -0
  110. package/dist/collection/components/stzh-badge/stzh-badge.css +3 -0
  111. package/dist/collection/components/stzh-banner/stzh-banner.css +3 -0
  112. package/dist/collection/components/stzh-breadcrumb/stzh-breadcrumb.css +3 -0
  113. package/dist/collection/components/stzh-button/stzh-button.css +3 -0
  114. package/dist/collection/components/stzh-buttongroup/stzh-buttongroup.css +3 -0
  115. package/dist/collection/components/stzh-calendar/stzh-calendar.css +3 -0
  116. package/dist/collection/components/stzh-card/stzh-card.css +3 -0
  117. package/dist/collection/components/stzh-card-navigation/stzh-card-navigation.css +3 -0
  118. package/dist/collection/components/stzh-card-navigation/stzh-card-navigation.e2e.js +2 -5
  119. package/dist/collection/components/stzh-card-navigation/stzh-card-navigation.e2e.js.map +1 -1
  120. package/dist/collection/components/stzh-card-searchresult/stzh-card-searchresult.css +3 -0
  121. package/dist/collection/components/stzh-card-searchresult/stzh-card-searchresult.js +5 -18
  122. package/dist/collection/components/stzh-card-searchresult/stzh-card-searchresult.js.map +1 -1
  123. package/dist/collection/components/stzh-card-superteaser/stzh-card-superteaser.css +3 -0
  124. package/dist/collection/components/stzh-cardlist/stzh-cardlist.css +101 -18
  125. package/dist/collection/components/stzh-cardlist/stzh-cardlist.js +6 -8
  126. package/dist/collection/components/stzh-cardlist/stzh-cardlist.js.map +1 -1
  127. package/dist/collection/components/stzh-carousel/stzh-carousel.css +3 -0
  128. package/dist/collection/components/stzh-cell/stzh-cell.css +3 -0
  129. package/dist/collection/components/stzh-chart/stzh-chart.css +3 -0
  130. package/dist/collection/components/stzh-checkbox/stzh-checkbox.css +3 -0
  131. package/dist/collection/components/stzh-checkbox/stzh-checkbox.js +1 -1
  132. package/dist/collection/components/stzh-checkbox/stzh-checkbox.js.map +1 -1
  133. package/dist/collection/components/stzh-checkboxgroup/stzh-checkboxgroup.css +3 -0
  134. package/dist/collection/components/stzh-checkboxgroup/stzh-checkboxgroup.js +1 -1
  135. package/dist/collection/components/stzh-checkboxgroup/stzh-checkboxgroup.js.map +1 -1
  136. package/dist/collection/components/stzh-chip/stzh-chip.css +3 -0
  137. package/dist/collection/components/stzh-chipgroup/stzh-chipgroup.css +3 -0
  138. package/dist/collection/components/stzh-chipselect/stzh-chipselect.css +3 -0
  139. package/dist/collection/components/stzh-chipselect/stzh-chipselect.js +3 -3
  140. package/dist/collection/components/stzh-chipselect/stzh-chipselect.js.map +1 -1
  141. package/dist/collection/components/stzh-chipselect/stzh-chipselect.stories.js +44 -32
  142. package/dist/collection/components/stzh-clamp/stzh-clamp.css +3 -0
  143. package/dist/collection/components/stzh-contact/stzh-contact.css +3 -0
  144. package/dist/collection/components/stzh-contact/stzh-contact.js +48 -41
  145. package/dist/collection/components/stzh-contact/stzh-contact.js.map +1 -1
  146. package/dist/collection/components/stzh-container/stzh-container.css +6 -1
  147. package/dist/collection/components/stzh-content/stzh-content.css +11 -0
  148. package/dist/collection/components/stzh-cspace/stzh-cspace.css +119 -13
  149. package/dist/collection/components/stzh-cta/stzh-cta.css +3 -0
  150. package/dist/collection/components/stzh-datalist/stzh-datalist.css +3 -0
  151. package/dist/collection/components/stzh-datalist-item/stzh-datalist-item.css +5 -2
  152. package/dist/collection/components/stzh-datamessagelist/stzh-datamessagelist.css +3 -0
  153. package/dist/collection/components/stzh-datamessagelist-item/stzh-datamessagelist-item.css +3 -0
  154. package/dist/collection/components/stzh-datamessagelist-item/stzh-datamessagelist-item.stories.js +21 -0
  155. package/dist/collection/components/stzh-datatable/stzh-datatable.css +3 -0
  156. package/dist/collection/components/stzh-datepicker/stzh-datepicker.css +3 -0
  157. package/dist/collection/components/stzh-datepicker/stzh-datepicker.js +1 -1
  158. package/dist/collection/components/stzh-datepicker/stzh-datepicker.js.map +1 -1
  159. package/dist/collection/components/stzh-daterange/stzh-daterange.css +3 -0
  160. package/dist/collection/components/stzh-details/stzh-details.css +3 -0
  161. package/dist/collection/components/stzh-dialog/stzh-dialog.css +3 -0
  162. package/dist/collection/components/stzh-disturber/stzh-disturber.css +3 -0
  163. package/dist/collection/components/stzh-dropdown/stzh-dropdown.css +7 -0
  164. package/dist/collection/components/stzh-dropdown/stzh-dropdown.js +1 -1
  165. package/dist/collection/components/stzh-dropdown/stzh-dropdown.js.map +1 -1
  166. package/dist/collection/components/stzh-editor/stzh-editor.css +3 -0
  167. package/dist/collection/components/stzh-eventdata/stzh-eventdata.css +3 -0
  168. package/dist/collection/components/stzh-eventinfo/stzh-eventinfo.css +3 -0
  169. package/dist/collection/components/stzh-fieldset/stzh-fieldset.css +3 -0
  170. package/dist/collection/components/stzh-fieldset/stzh-fieldset.js +1 -1
  171. package/dist/collection/components/stzh-figure/stzh-figure.css +3 -0
  172. package/dist/collection/components/stzh-flyingfocus/stzh-flyingfocus.css +3 -0
  173. package/dist/collection/components/stzh-footer/stzh-footer.css +3 -0
  174. package/dist/collection/components/stzh-footer/stzh-footer.stories.js +17 -5
  175. package/dist/collection/components/stzh-gallery/stzh-gallery.css +3 -11
  176. package/dist/collection/components/stzh-ghettobox/stzh-ghettobox.css +3 -0
  177. package/dist/collection/components/stzh-header/stzh-header.css +34 -14
  178. package/dist/collection/components/stzh-header/stzh-header.js +246 -167
  179. package/dist/collection/components/stzh-header/stzh-header.js.map +1 -1
  180. package/dist/collection/components/stzh-header/stzh-header.stories.js +176 -120
  181. package/dist/collection/components/stzh-heading/stzh-heading.css +36 -0
  182. package/dist/collection/components/stzh-heading/stzh-heading.js +1 -1
  183. package/dist/collection/components/stzh-homepage-service-highlights/stzh-homepage-service-highlights.css +387 -0
  184. package/dist/collection/components/stzh-homepage-service-highlights/stzh-homepage-service-highlights.e2e.js +23 -0
  185. package/dist/collection/components/stzh-homepage-service-highlights/stzh-homepage-service-highlights.e2e.js.map +1 -0
  186. package/dist/collection/components/stzh-homepage-service-highlights/stzh-homepage-service-highlights.js +159 -0
  187. package/dist/collection/components/stzh-homepage-service-highlights/stzh-homepage-service-highlights.js.map +1 -0
  188. package/dist/collection/components/stzh-homepage-service-highlights/stzh-homepage-service-highlights.stories.js +100 -0
  189. package/dist/collection/components/stzh-hr/stzh-hr.css +3 -0
  190. package/dist/collection/components/stzh-hspace/stzh-hspace.css +12 -0
  191. package/dist/collection/components/stzh-icon/stzh-icon.css +3 -0
  192. package/dist/collection/components/stzh-iframe/stzh-iframe.css +3 -0
  193. package/dist/collection/components/stzh-imagecomparison/stzh-imagecomparison.css +3 -0
  194. package/dist/collection/components/stzh-input/stzh-input.css +10 -0
  195. package/dist/collection/components/stzh-input/stzh-input.js +29 -44
  196. package/dist/collection/components/stzh-input/stzh-input.js.map +1 -1
  197. package/dist/collection/components/stzh-invert/stzh-invert.css +3 -0
  198. package/dist/collection/components/stzh-link/stzh-link.css +3 -0
  199. package/dist/collection/components/stzh-list/stzh-list.css +3 -0
  200. package/dist/collection/components/stzh-list-item/stzh-list-item.css +3 -0
  201. package/dist/collection/components/stzh-loader/stzh-loader.css +3 -0
  202. package/dist/collection/components/stzh-loadingbar/stzh-loadingbar.css +3 -0
  203. package/dist/collection/components/stzh-menu/stzh-menu.css +3 -0
  204. package/dist/collection/components/stzh-menu-item/stzh-menu-item.css +3 -0
  205. package/dist/collection/components/stzh-message/stzh-message.css +7 -19
  206. package/dist/collection/components/stzh-microsite-teaserlist/stzh-microsite-teaserlist.css +3 -0
  207. package/dist/collection/components/stzh-monthyearpicker/stzh-monthyearpicker.css +3 -0
  208. package/dist/collection/components/stzh-monthyearpicker/stzh-monthyearpicker.js +1 -1
  209. package/dist/collection/components/stzh-monthyearpicker/stzh-monthyearpicker.js.map +1 -1
  210. package/dist/collection/components/stzh-olmap/stzh-olmap.css +3 -0
  211. package/dist/collection/components/stzh-overlay/stzh-overlay.css +3 -0
  212. package/dist/collection/components/stzh-page-skiplinks/stzh-page-skiplinks.css +3 -0
  213. package/dist/collection/components/stzh-pagebottom/stzh-pagebottom.css +3 -0
  214. package/dist/collection/components/stzh-pagecontent/stzh-pagecontent.css +3 -0
  215. package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.css +8 -0
  216. package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.js +34 -15
  217. package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.js.map +1 -1
  218. package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.stories.js +29 -10
  219. package/dist/collection/components/stzh-pagetitle-hero/stzh-pagetitle-hero.css +3 -0
  220. package/dist/collection/components/stzh-pagetitle-home/stzh-pagetitle-home.css +461 -0
  221. package/dist/collection/components/stzh-pagetitle-home/stzh-pagetitle-home.e2e.js +23 -0
  222. package/dist/collection/components/stzh-pagetitle-home/stzh-pagetitle-home.e2e.js.map +1 -0
  223. package/dist/collection/components/stzh-pagetitle-home/stzh-pagetitle-home.js +86 -0
  224. package/dist/collection/components/stzh-pagetitle-home/stzh-pagetitle-home.js.map +1 -0
  225. package/dist/collection/components/stzh-pagetitle-home/stzh-pagetitle-home.stories.js +99 -0
  226. package/dist/collection/components/stzh-pagination/stzh-pagination.css +3 -0
  227. package/dist/collection/components/stzh-panorama/stzh-panorama.css +54 -63
  228. package/dist/collection/components/stzh-panorama/stzh-panorama.js +106 -26
  229. package/dist/collection/components/stzh-panorama/stzh-panorama.js.map +1 -1
  230. package/dist/collection/components/stzh-panorama/stzh-panorama.localization.js.map +1 -1
  231. package/dist/collection/components/stzh-panorama/stzh-panorama.stories.js +40 -36
  232. package/dist/collection/components/stzh-pi-content-navigation/stzh-pi-content-navigation.css +443 -0
  233. package/dist/collection/components/stzh-pi-content-navigation/stzh-pi-content-navigation.e2e.js +16 -0
  234. package/dist/collection/components/stzh-pi-content-navigation/stzh-pi-content-navigation.e2e.js.map +1 -0
  235. package/dist/collection/components/stzh-pi-content-navigation/stzh-pi-content-navigation.js +218 -0
  236. package/dist/collection/components/stzh-pi-content-navigation/stzh-pi-content-navigation.js.map +1 -0
  237. package/dist/collection/components/stzh-pi-content-navigation/stzh-pi-content-navigation.stories.js +62 -0
  238. package/dist/collection/components/stzh-pi-menu/stzh-pi-menu.css +503 -0
  239. package/dist/collection/components/stzh-pi-menu/stzh-pi-menu.e2e.js +16 -0
  240. package/dist/collection/components/stzh-pi-menu/stzh-pi-menu.e2e.js.map +1 -0
  241. package/dist/collection/components/stzh-pi-menu/stzh-pi-menu.js +527 -0
  242. package/dist/collection/components/stzh-pi-menu/stzh-pi-menu.js.map +1 -0
  243. package/dist/collection/components/stzh-pi-menu/stzh-pi-menu.localization.js +2 -0
  244. package/dist/collection/components/stzh-pi-menu/stzh-pi-menu.localization.js.map +1 -0
  245. package/dist/collection/components/stzh-pi-menu/stzh-pi-menu.stories.js +138 -0
  246. package/dist/collection/components/stzh-pi-pagetitle/stzh-pi-pagetitle.css +944 -0
  247. package/dist/collection/components/stzh-pi-pagetitle/stzh-pi-pagetitle.e2e.js +23 -0
  248. package/dist/collection/components/stzh-pi-pagetitle/stzh-pi-pagetitle.e2e.js.map +1 -0
  249. package/dist/collection/components/stzh-pi-pagetitle/stzh-pi-pagetitle.js +149 -0
  250. package/dist/collection/components/stzh-pi-pagetitle/stzh-pi-pagetitle.js.map +1 -0
  251. package/dist/collection/components/stzh-pi-pagetitle/stzh-pi-pagetitle.stories.js +184 -0
  252. package/dist/collection/components/stzh-pi-quote/stzh-pi-quote.css +301 -0
  253. package/dist/collection/components/stzh-pi-quote/stzh-pi-quote.e2e.js +16 -0
  254. package/dist/collection/components/stzh-pi-quote/stzh-pi-quote.e2e.js.map +1 -0
  255. package/dist/collection/components/stzh-pi-quote/stzh-pi-quote.js +48 -0
  256. package/dist/collection/components/stzh-pi-quote/stzh-pi-quote.js.map +1 -0
  257. package/dist/collection/components/stzh-pi-quote/stzh-pi-quote.stories.js +42 -0
  258. package/dist/collection/components/stzh-pi-teaser/stzh-pi-teaser.css +364 -0
  259. package/dist/collection/components/stzh-pi-teaser/stzh-pi-teaser.e2e.js +16 -0
  260. package/dist/collection/components/stzh-pi-teaser/stzh-pi-teaser.e2e.js.map +1 -0
  261. package/dist/collection/components/stzh-pi-teaser/stzh-pi-teaser.js +234 -0
  262. package/dist/collection/components/stzh-pi-teaser/stzh-pi-teaser.js.map +1 -0
  263. package/dist/collection/components/stzh-pi-teaser/stzh-pi-teaser.stories.js +66 -0
  264. package/dist/collection/components/stzh-popover/stzh-popover.css +3 -0
  265. package/dist/collection/components/stzh-print/stzh-print.css +3 -0
  266. package/dist/collection/components/stzh-progressbar/stzh-progressbar.css +3 -0
  267. package/dist/collection/components/stzh-progressbar/stzh-progressbar.js +20 -1
  268. package/dist/collection/components/stzh-progressbar/stzh-progressbar.js.map +1 -1
  269. package/dist/collection/components/stzh-progressbar/stzh-progressbar.stories.js +9 -0
  270. package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.css +11 -2
  271. package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.js +24 -2
  272. package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.js.map +1 -1
  273. package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.stories.js +16 -0
  274. package/dist/collection/components/stzh-radio/stzh-radio.css +3 -0
  275. package/dist/collection/components/stzh-radio/stzh-radio.js +20 -21
  276. package/dist/collection/components/stzh-radio/stzh-radio.js.map +1 -1
  277. package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.css +3 -0
  278. package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.js +14 -15
  279. package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.js.map +1 -1
  280. package/dist/collection/components/stzh-ratio/stzh-ratio.css +3 -0
  281. package/dist/collection/components/stzh-ratio/stzh-ratio.js +2 -2
  282. package/dist/collection/components/stzh-ratio/stzh-ratio.js.map +1 -1
  283. package/dist/collection/components/stzh-readspeaker/stzh-readspeaker.css +3 -0
  284. package/dist/collection/components/stzh-readspeaker/stzh-readspeaker.js +1 -0
  285. package/dist/collection/components/stzh-readspeaker/stzh-readspeaker.js.map +1 -1
  286. package/dist/collection/components/stzh-richtext/stzh-richtext.css +3 -0
  287. package/dist/collection/components/stzh-row/stzh-row.css +3 -0
  288. package/dist/collection/components/stzh-saptcha/stzh-saptcha.css +3 -0
  289. package/dist/collection/components/stzh-scrollup/stzh-scrollup.css +3 -0
  290. package/dist/collection/components/stzh-search/stzh-search.css +137 -23
  291. package/dist/collection/components/stzh-search/stzh-search.js +132 -47
  292. package/dist/collection/components/stzh-search/stzh-search.js.map +1 -1
  293. package/dist/collection/components/stzh-search/stzh-search.stories.js +125 -26
  294. package/dist/collection/components/stzh-section/stzh-section.css +81 -9
  295. package/dist/collection/components/stzh-section/stzh-section.js +5 -5
  296. package/dist/collection/components/stzh-section/stzh-section.js.map +1 -1
  297. package/dist/collection/components/stzh-share/stzh-share.css +3 -0
  298. package/dist/collection/components/stzh-show/stzh-show.css +3 -0
  299. package/dist/collection/components/stzh-sitemap/stzh-sitemap.css +3 -0
  300. package/dist/collection/components/stzh-skin-portal-mitwirken/stzh-skin-portal-mitwirken.css +587 -212
  301. package/dist/collection/components/stzh-skin-storybook-preview/stzh-skin-storybook-preview.css +3 -0
  302. package/dist/collection/components/stzh-skiplink/stzh-skiplink.css +3 -0
  303. package/dist/collection/components/stzh-sortable/stzh-sortable.css +3 -0
  304. package/dist/collection/components/stzh-space/stzh-space.css +12 -0
  305. package/dist/collection/components/stzh-status/stzh-status.css +3 -0
  306. package/dist/collection/components/stzh-sticky/stzh-sticky.css +3 -0
  307. package/dist/collection/components/stzh-sticky-actions/stzh-sticky-actions.css +3 -0
  308. package/dist/collection/components/stzh-table/stzh-table.css +3 -0
  309. package/dist/collection/components/stzh-tag/stzh-tag.css +3 -0
  310. package/dist/collection/components/stzh-text/stzh-text.css +135 -0
  311. package/dist/collection/components/stzh-text/stzh-text.js +1 -1
  312. package/dist/collection/components/stzh-textandimage/stzh-textandimage.css +71 -35
  313. package/dist/collection/components/stzh-textandimage/stzh-textandimage.js +28 -8
  314. package/dist/collection/components/stzh-textandimage/stzh-textandimage.js.map +1 -1
  315. package/dist/collection/components/stzh-textandimage/stzh-textandimage.stories.js +37 -22
  316. package/dist/collection/components/stzh-timeline/stzh-timeline.css +3 -0
  317. package/dist/collection/components/stzh-timeline-item/stzh-timeline-item.css +3 -0
  318. package/dist/collection/components/stzh-timepicker/stzh-timepicker.css +3 -0
  319. package/dist/collection/components/stzh-timepicker/stzh-timepicker.js +1 -1
  320. package/dist/collection/components/stzh-timepicker/stzh-timepicker.js.map +1 -1
  321. package/dist/collection/components/stzh-toast/stzh-toast.css +3 -0
  322. package/dist/collection/components/stzh-toastbar/stzh-toastbar.css +3 -0
  323. package/dist/collection/components/stzh-toggle/stzh-toggle.css +3 -0
  324. package/dist/collection/components/stzh-toggle/stzh-toggle.js +1 -1
  325. package/dist/collection/components/stzh-toggle/stzh-toggle.js.map +1 -1
  326. package/dist/collection/components/stzh-tooltip/stzh-tooltip.css +9 -0
  327. package/dist/collection/components/stzh-tooltip/stzh-tooltip.js +56 -53
  328. package/dist/collection/components/stzh-tooltip/stzh-tooltip.js.map +1 -1
  329. package/dist/collection/components/stzh-twocolumns/stzh-twocolumns.css +3 -0
  330. package/dist/collection/components/stzh-upload/stzh-upload.css +3 -0
  331. package/dist/collection/components/stzh-upload/stzh-upload.js +69 -35
  332. package/dist/collection/components/stzh-upload/stzh-upload.js.map +1 -1
  333. package/dist/collection/components/stzh-vbz-carousel/stzh-vbz-carousel.css +3 -0
  334. package/dist/collection/components/stzh-vbz-linechip/stzh-vbz-linechip.css +3 -0
  335. package/dist/collection/components/stzh-vbz-majorticker/stzh-vbz-majorticker.css +3 -0
  336. package/dist/collection/components/stzh-vbz-ticker/stzh-vbz-ticker.css +3 -0
  337. package/dist/collection/components/stzh-visuallyhidden/stzh-visuallyhidden.css +3 -0
  338. package/dist/collection/components/stzh-vspace/stzh-vspace.css +12 -0
  339. package/dist/collection/components/stzh-youtube/stzh-youtube.css +3 -0
  340. package/dist/collection/index.js +1 -1
  341. package/dist/collection/index.js.map +1 -1
  342. package/dist/collection/pages/home/home.e2e.js +16 -0
  343. package/dist/collection/pages/home/home.e2e.js.map +1 -0
  344. package/dist/collection/pages/publizistische-inhalte/publizistische-inhalte.e2e.js +16 -0
  345. package/dist/collection/pages/publizistische-inhalte/publizistische-inhalte.e2e.js.map +1 -0
  346. package/dist/components/index.js +1 -1
  347. package/dist/components/index2.js.map +1 -1
  348. package/dist/components/stzh-accordion2.js +27 -20
  349. package/dist/components/stzh-accordion2.js.map +1 -1
  350. package/dist/components/stzh-amount.js.map +1 -1
  351. package/dist/components/stzh-card-searchresult.js +5 -18
  352. package/dist/components/stzh-card-searchresult.js.map +1 -1
  353. package/dist/components/stzh-cardlist2.js +5 -7
  354. package/dist/components/stzh-cardlist2.js.map +1 -1
  355. package/dist/components/stzh-checkbox.js.map +1 -1
  356. package/dist/components/stzh-checkboxgroup.js.map +1 -1
  357. package/dist/components/stzh-chipgroup.js +1 -31
  358. package/dist/components/stzh-chipgroup.js.map +1 -1
  359. package/dist/{esm/stzh-chipgroup.entry.js → components/stzh-chipgroup2.js} +23 -9
  360. package/dist/components/stzh-chipgroup2.js.map +1 -0
  361. package/dist/components/stzh-chipselect2.js +2 -2
  362. package/dist/components/stzh-chipselect2.js.map +1 -1
  363. package/dist/components/stzh-contact.js +43 -38
  364. package/dist/components/stzh-contact.js.map +1 -1
  365. package/dist/components/stzh-container.js +1 -1
  366. package/dist/components/stzh-container.js.map +1 -1
  367. package/dist/components/stzh-content.js +1 -1
  368. package/dist/components/stzh-content.js.map +1 -1
  369. package/dist/components/stzh-cspace.js +1 -1
  370. package/dist/components/stzh-cspace.js.map +1 -1
  371. package/dist/components/stzh-datalist-item2.js +1 -1
  372. package/dist/components/stzh-datalist-item2.js.map +1 -1
  373. package/dist/components/stzh-datatable.js +22 -16
  374. package/dist/components/stzh-datatable.js.map +1 -1
  375. package/dist/components/stzh-datepicker2.js.map +1 -1
  376. package/dist/components/stzh-dropdown2.js +1 -1
  377. package/dist/components/stzh-dropdown2.js.map +1 -1
  378. package/dist/components/stzh-gallery.js +1 -1
  379. package/dist/components/stzh-gallery.js.map +1 -1
  380. package/dist/components/stzh-header.js +179 -167
  381. package/dist/components/stzh-header.js.map +1 -1
  382. package/dist/components/stzh-heading2.js +1 -1
  383. package/dist/components/stzh-heading2.js.map +1 -1
  384. package/dist/components/stzh-homepage-service-highlights.d.ts +11 -0
  385. package/dist/components/stzh-homepage-service-highlights.js +151 -0
  386. package/dist/components/stzh-homepage-service-highlights.js.map +1 -0
  387. package/dist/components/stzh-hspace2.js +1 -1
  388. package/dist/components/stzh-hspace2.js.map +1 -1
  389. package/dist/components/stzh-input2.js +29 -44
  390. package/dist/components/stzh-input2.js.map +1 -1
  391. package/dist/components/stzh-message2.js +1 -1
  392. package/dist/components/stzh-message2.js.map +1 -1
  393. package/dist/components/stzh-monthyearpicker.js.map +1 -1
  394. package/dist/components/stzh-pagetitle-home.d.ts +11 -0
  395. package/dist/components/stzh-pagetitle-home.js +96 -0
  396. package/dist/components/stzh-pagetitle-home.js.map +1 -0
  397. package/dist/components/stzh-pagetitle.js +17 -15
  398. package/dist/components/stzh-pagetitle.js.map +1 -1
  399. package/dist/components/stzh-panorama.js +71 -36
  400. package/dist/components/stzh-panorama.js.map +1 -1
  401. package/dist/components/stzh-pi-content-navigation.d.ts +11 -0
  402. package/dist/components/stzh-pi-content-navigation.js +96 -0
  403. package/dist/components/stzh-pi-content-navigation.js.map +1 -0
  404. package/dist/components/stzh-pi-menu.d.ts +11 -0
  405. package/dist/components/stzh-pi-menu.js +239 -0
  406. package/dist/components/stzh-pi-menu.js.map +1 -0
  407. package/dist/components/stzh-pi-pagetitle.d.ts +11 -0
  408. package/dist/components/stzh-pi-pagetitle.js +107 -0
  409. package/dist/components/stzh-pi-pagetitle.js.map +1 -0
  410. package/dist/components/stzh-pi-quote.d.ts +11 -0
  411. package/dist/components/stzh-pi-quote.js +41 -0
  412. package/dist/components/stzh-pi-quote.js.map +1 -0
  413. package/dist/components/stzh-pi-teaser.d.ts +11 -0
  414. package/dist/components/stzh-pi-teaser.js +89 -0
  415. package/dist/components/stzh-pi-teaser.js.map +1 -0
  416. package/dist/components/stzh-progressbar-item2.js +8 -3
  417. package/dist/components/stzh-progressbar-item2.js.map +1 -1
  418. package/dist/components/stzh-progressbar.js +3 -1
  419. package/dist/components/stzh-progressbar.js.map +1 -1
  420. package/dist/components/stzh-radio2.js +18 -19
  421. package/dist/components/stzh-radio2.js.map +1 -1
  422. package/dist/components/stzh-radiogroup2.js +13 -14
  423. package/dist/components/stzh-radiogroup2.js.map +1 -1
  424. package/dist/components/stzh-ratio2.js +1 -1
  425. package/dist/components/stzh-ratio2.js.map +1 -1
  426. package/dist/components/stzh-readspeaker.js +1 -0
  427. package/dist/components/stzh-readspeaker.js.map +1 -1
  428. package/dist/components/stzh-search.js +126 -61
  429. package/dist/components/stzh-search.js.map +1 -1
  430. package/dist/components/stzh-section.js +3 -3
  431. package/dist/components/stzh-section.js.map +1 -1
  432. package/dist/components/stzh-skin-portal-mitwirken.js +1 -1
  433. package/dist/components/stzh-skin-portal-mitwirken.js.map +1 -1
  434. package/dist/components/stzh-space.js +1 -1
  435. package/dist/components/stzh-space.js.map +1 -1
  436. package/dist/components/stzh-text2.js +1 -1
  437. package/dist/components/stzh-text2.js.map +1 -1
  438. package/dist/components/stzh-textandimage.js +12 -9
  439. package/dist/components/stzh-textandimage.js.map +1 -1
  440. package/dist/components/stzh-timepicker.js.map +1 -1
  441. package/dist/components/stzh-toggle.js.map +1 -1
  442. package/dist/components/stzh-tooltip2.js +37 -51
  443. package/dist/components/stzh-tooltip2.js.map +1 -1
  444. package/dist/components/stzh-upload.js +65 -31
  445. package/dist/components/stzh-upload.js.map +1 -1
  446. package/dist/components/stzh-vspace.js +1 -1
  447. package/dist/components/stzh-vspace.js.map +1 -1
  448. package/dist/esm/{app-globals-f9c4987b.js → app-globals-ab5b077d.js} +2 -2
  449. package/dist/esm/{app-globals-f9c4987b.js.map → app-globals-ab5b077d.js.map} +1 -1
  450. package/dist/esm/index-e3050b18.js +46 -18
  451. package/dist/esm/index.js.map +1 -1
  452. package/dist/esm/loader.js +2 -2
  453. package/dist/esm/stzh-accordion_3.entry.js +19 -19
  454. package/dist/esm/stzh-accordion_3.entry.js.map +1 -1
  455. package/dist/esm/stzh-amount.entry.js.map +1 -1
  456. package/dist/esm/stzh-card-searchresult.entry.js +5 -18
  457. package/dist/esm/stzh-card-searchresult.entry.js.map +1 -1
  458. package/dist/esm/{stzh-card_3.entry.js → stzh-card_2.entry.js} +7 -222
  459. package/dist/esm/stzh-card_2.entry.js.map +1 -0
  460. package/dist/esm/stzh-checkbox.entry.js.map +1 -1
  461. package/dist/esm/stzh-checkboxgroup.entry.js.map +1 -1
  462. package/dist/esm/{stzh-message.entry.js → stzh-chipgroup_2.entry.js} +20 -4
  463. package/dist/esm/stzh-chipgroup_2.entry.js.map +1 -0
  464. package/dist/esm/stzh-chipselect.entry.js +218 -0
  465. package/dist/esm/stzh-chipselect.entry.js.map +1 -0
  466. package/dist/esm/stzh-components.js +2 -2
  467. package/dist/esm/stzh-contact.entry.js +40 -37
  468. package/dist/esm/stzh-contact.entry.js.map +1 -1
  469. package/dist/esm/stzh-container.entry.js +1 -1
  470. package/dist/esm/stzh-container.entry.js.map +1 -1
  471. package/dist/esm/stzh-content.entry.js +1 -1
  472. package/dist/esm/stzh-content.entry.js.map +1 -1
  473. package/dist/esm/stzh-cspace.entry.js +1 -1
  474. package/dist/esm/stzh-cspace.entry.js.map +1 -1
  475. package/dist/esm/stzh-datalist_2.entry.js +1 -1
  476. package/dist/esm/stzh-datalist_2.entry.js.map +1 -1
  477. package/dist/esm/stzh-datepicker_3.entry.js +31 -33
  478. package/dist/esm/stzh-datepicker_3.entry.js.map +1 -1
  479. package/dist/esm/stzh-dropdown.entry.js +1 -1
  480. package/dist/esm/stzh-dropdown.entry.js.map +1 -1
  481. package/dist/esm/stzh-gallery.entry.js +1 -1
  482. package/dist/esm/stzh-gallery.entry.js.map +1 -1
  483. package/dist/esm/stzh-header.entry.js +175 -166
  484. package/dist/esm/stzh-header.entry.js.map +1 -1
  485. package/dist/esm/stzh-heading.entry.js +1 -1
  486. package/dist/esm/stzh-heading.entry.js.map +1 -1
  487. package/dist/esm/stzh-homepage-service-highlights.entry.js +98 -0
  488. package/dist/esm/stzh-homepage-service-highlights.entry.js.map +1 -0
  489. package/dist/esm/stzh-hspace.entry.js +1 -1
  490. package/dist/esm/stzh-hspace.entry.js.map +1 -1
  491. package/dist/esm/stzh-input.entry.js +29 -44
  492. package/dist/esm/stzh-input.entry.js.map +1 -1
  493. package/dist/esm/stzh-monthyearpicker.entry.js.map +1 -1
  494. package/dist/esm/stzh-pagetitle-home.entry.js +72 -0
  495. package/dist/esm/stzh-pagetitle-home.entry.js.map +1 -0
  496. package/dist/esm/stzh-pagetitle.entry.js +16 -15
  497. package/dist/esm/stzh-pagetitle.entry.js.map +1 -1
  498. package/dist/esm/stzh-panorama.entry.js +52 -26
  499. package/dist/esm/stzh-panorama.entry.js.map +1 -1
  500. package/dist/esm/stzh-pi-content-navigation.entry.js +60 -0
  501. package/dist/esm/stzh-pi-content-navigation.entry.js.map +1 -0
  502. package/dist/esm/stzh-pi-menu.entry.js +198 -0
  503. package/dist/esm/stzh-pi-menu.entry.js.map +1 -0
  504. package/dist/esm/stzh-pi-pagetitle.entry.js +79 -0
  505. package/dist/esm/stzh-pi-pagetitle.entry.js.map +1 -0
  506. package/dist/esm/stzh-pi-quote.entry.js +22 -0
  507. package/dist/esm/stzh-pi-quote.entry.js.map +1 -0
  508. package/dist/esm/stzh-pi-teaser.entry.js +58 -0
  509. package/dist/esm/stzh-pi-teaser.entry.js.map +1 -0
  510. package/dist/esm/stzh-popover_2.entry.js +1 -1
  511. package/dist/esm/stzh-popover_2.entry.js.map +1 -1
  512. package/dist/esm/stzh-progressbar-item.entry.js +7 -3
  513. package/dist/esm/stzh-progressbar-item.entry.js.map +1 -1
  514. package/dist/esm/stzh-progressbar.entry.js +2 -1
  515. package/dist/esm/stzh-progressbar.entry.js.map +1 -1
  516. package/dist/esm/stzh-ratio.entry.js +1 -1
  517. package/dist/esm/stzh-ratio.entry.js.map +1 -1
  518. package/dist/esm/stzh-readspeaker.entry.js +1 -0
  519. package/dist/esm/stzh-readspeaker.entry.js.map +1 -1
  520. package/dist/esm/stzh-search.entry.js +70 -45
  521. package/dist/esm/stzh-search.entry.js.map +1 -1
  522. package/dist/esm/stzh-section.entry.js +3 -3
  523. package/dist/esm/stzh-section.entry.js.map +1 -1
  524. package/dist/esm/stzh-skin-portal-mitwirken.entry.js +1 -1
  525. package/dist/esm/stzh-skin-portal-mitwirken.entry.js.map +1 -1
  526. package/dist/esm/stzh-space.entry.js +1 -1
  527. package/dist/esm/stzh-space.entry.js.map +1 -1
  528. package/dist/esm/stzh-textandimage.entry.js +10 -8
  529. package/dist/esm/stzh-textandimage.entry.js.map +1 -1
  530. package/dist/esm/stzh-timepicker.entry.js.map +1 -1
  531. package/dist/esm/stzh-toggle.entry.js.map +1 -1
  532. package/dist/esm/stzh-tooltip.entry.js +36 -51
  533. package/dist/esm/stzh-tooltip.entry.js.map +1 -1
  534. package/dist/esm/stzh-upload.entry.js +65 -31
  535. package/dist/esm/stzh-upload.entry.js.map +1 -1
  536. package/dist/esm/stzh-vspace.entry.js +1 -1
  537. package/dist/esm/stzh-vspace.entry.js.map +1 -1
  538. package/dist/stzh-components/assets/i18n/de.json +36 -3
  539. package/dist/stzh-components/assets/i18n/en.json +36 -3
  540. package/dist/stzh-components/index.esm.js.map +1 -1
  541. package/dist/stzh-components/p-012dc71e.entry.js +2 -0
  542. package/dist/stzh-components/{p-91b360c9.entry.js.map → p-012dc71e.entry.js.map} +1 -1
  543. package/dist/stzh-components/p-0b381244.entry.js +2 -0
  544. package/dist/stzh-components/{p-8b608a1b.entry.js.map → p-0b381244.entry.js.map} +1 -1
  545. package/dist/stzh-components/p-0c67b73d.entry.js +2 -0
  546. package/dist/stzh-components/p-0c67b73d.entry.js.map +1 -0
  547. package/dist/stzh-components/p-0fb40e48.entry.js.map +1 -1
  548. package/dist/stzh-components/p-1bc9a18d.entry.js +2 -0
  549. package/dist/stzh-components/{p-ca76966e.entry.js.map → p-1bc9a18d.entry.js.map} +1 -1
  550. package/dist/stzh-components/p-1f0e8499.entry.js +2 -0
  551. package/dist/stzh-components/p-1f0e8499.entry.js.map +1 -0
  552. package/dist/stzh-components/{p-744c2183.entry.js → p-204a6e41.entry.js} +2 -2
  553. package/dist/stzh-components/p-204a6e41.entry.js.map +1 -0
  554. package/dist/stzh-components/p-2096f3c6.entry.js.map +1 -1
  555. package/dist/stzh-components/{p-faec0661.entry.js → p-2ba166dd.entry.js} +2 -2
  556. package/dist/stzh-components/p-2ba166dd.entry.js.map +1 -0
  557. package/dist/stzh-components/{p-dff1ce7c.entry.js → p-37fbb5f0.entry.js} +2 -2
  558. package/dist/stzh-components/{p-dff1ce7c.entry.js.map → p-37fbb5f0.entry.js.map} +1 -1
  559. package/dist/stzh-components/p-4f49450d.entry.js +2 -0
  560. package/dist/stzh-components/p-4f49450d.entry.js.map +1 -0
  561. package/dist/stzh-components/p-52a914cd.entry.js +2 -0
  562. package/dist/stzh-components/p-52a914cd.entry.js.map +1 -0
  563. package/dist/stzh-components/p-56346206.entry.js +2 -0
  564. package/dist/stzh-components/p-56346206.entry.js.map +1 -0
  565. package/dist/stzh-components/p-59a1a257.entry.js +2 -0
  566. package/dist/stzh-components/p-59a1a257.entry.js.map +1 -0
  567. package/dist/stzh-components/p-5c3fddec.entry.js +2 -0
  568. package/dist/stzh-components/p-5c3fddec.entry.js.map +1 -0
  569. package/dist/stzh-components/p-673f842d.entry.js +2 -0
  570. package/dist/stzh-components/p-673f842d.entry.js.map +1 -0
  571. package/dist/stzh-components/p-6c2289da.entry.js.map +1 -1
  572. package/dist/stzh-components/p-722b9e40.entry.js.map +1 -1
  573. package/dist/stzh-components/{p-af87b81a.entry.js → p-75b79adf.entry.js} +2 -2
  574. package/dist/stzh-components/p-75b79adf.entry.js.map +1 -0
  575. package/dist/stzh-components/p-771d370d.entry.js +2 -0
  576. package/dist/stzh-components/p-771d370d.entry.js.map +1 -0
  577. package/dist/stzh-components/p-77ba1f21.entry.js +2 -0
  578. package/dist/stzh-components/p-77ba1f21.entry.js.map +1 -0
  579. package/dist/stzh-components/p-78a16599.entry.js +2 -0
  580. package/dist/stzh-components/p-78a16599.entry.js.map +1 -0
  581. package/dist/stzh-components/p-7aac960b.entry.js.map +1 -1
  582. package/dist/stzh-components/p-7ca981d1.entry.js +2 -0
  583. package/dist/stzh-components/p-7ca981d1.entry.js.map +1 -0
  584. package/dist/stzh-components/p-7d030c40.entry.js +2 -0
  585. package/dist/stzh-components/p-7d030c40.entry.js.map +1 -0
  586. package/dist/stzh-components/{p-b22876e5.entry.js → p-7efbb643.entry.js} +2 -2
  587. package/dist/stzh-components/p-7efbb643.entry.js.map +1 -0
  588. package/dist/stzh-components/p-801af922.entry.js +2 -0
  589. package/dist/stzh-components/p-801af922.entry.js.map +1 -0
  590. package/dist/stzh-components/p-8503fb10.entry.js +2 -0
  591. package/dist/stzh-components/{p-75045ebb.entry.js.map → p-8503fb10.entry.js.map} +1 -1
  592. package/dist/stzh-components/{p-663f31a2.entry.js → p-909f7fc0.entry.js} +2 -2
  593. package/dist/stzh-components/p-909f7fc0.entry.js.map +1 -0
  594. package/dist/stzh-components/p-969a4f9a.entry.js.map +1 -1
  595. package/dist/stzh-components/{p-5b1bc446.entry.js → p-991309dd.entry.js} +2 -2
  596. package/dist/stzh-components/{p-5b1bc446.entry.js.map → p-991309dd.entry.js.map} +1 -1
  597. package/dist/stzh-components/{p-56826f33.entry.js → p-af7855ff.entry.js} +2 -2
  598. package/dist/stzh-components/p-af7855ff.entry.js.map +1 -0
  599. package/dist/stzh-components/p-afde3fcd.entry.js +2 -0
  600. package/dist/stzh-components/p-afde3fcd.entry.js.map +1 -0
  601. package/dist/stzh-components/p-b41d255f.entry.js +2 -0
  602. package/dist/stzh-components/p-b41d255f.entry.js.map +1 -0
  603. package/dist/stzh-components/{p-af7562ba.entry.js → p-b566a2c0.entry.js} +2 -2
  604. package/dist/stzh-components/p-b566a2c0.entry.js.map +1 -0
  605. package/dist/stzh-components/p-b870c799.entry.js +2 -0
  606. package/dist/stzh-components/p-b870c799.entry.js.map +1 -0
  607. package/dist/stzh-components/p-bb1cacbc.entry.js +2 -0
  608. package/dist/stzh-components/p-bb1cacbc.entry.js.map +1 -0
  609. package/dist/stzh-components/{p-c31b1590.entry.js → p-c1cd45e1.entry.js} +5 -5
  610. package/dist/stzh-components/{p-c31b1590.entry.js.map → p-c1cd45e1.entry.js.map} +1 -1
  611. package/dist/stzh-components/p-c877d32c.entry.js +2 -0
  612. package/dist/stzh-components/{p-6f87ad6e.entry.js.map → p-c877d32c.entry.js.map} +1 -1
  613. package/dist/stzh-components/p-c8ead7fc.entry.js +2 -0
  614. package/dist/stzh-components/{p-f7979f2a.entry.js.map → p-c8ead7fc.entry.js.map} +1 -1
  615. package/dist/stzh-components/{p-f06b2737.js → p-cc1f8acc.js} +2 -2
  616. package/dist/stzh-components/p-cca366c2.entry.js.map +1 -1
  617. package/dist/stzh-components/p-cf856610.entry.js +2 -0
  618. package/dist/stzh-components/p-cf856610.entry.js.map +1 -0
  619. package/dist/stzh-components/{p-2773b08f.entry.js → p-d10a6897.entry.js} +2 -2
  620. package/dist/stzh-components/p-d10a6897.entry.js.map +1 -0
  621. package/dist/stzh-components/{p-929c5234.entry.js → p-d11565a5.entry.js} +3 -3
  622. package/dist/stzh-components/{p-929c5234.entry.js.map → p-d11565a5.entry.js.map} +1 -1
  623. package/dist/stzh-components/p-edf77853.entry.js +2 -0
  624. package/dist/stzh-components/p-edf77853.entry.js.map +1 -0
  625. package/dist/stzh-components/stzh-components.css +1663 -1
  626. package/dist/stzh-components/stzh-components.esm.js +1 -1
  627. package/dist/stzh-components/stzh-components.esm.js.map +1 -1
  628. package/dist/types/components/stzh-accordion/stzh-accordion.d.ts +3 -1
  629. package/dist/types/components/stzh-amount/stzh-amount.d.ts +1 -1
  630. package/dist/types/components/stzh-cardlist/stzh-cardlist.d.ts +2 -2
  631. package/dist/types/components/stzh-checkbox/stzh-checkbox.d.ts +1 -1
  632. package/dist/types/components/stzh-checkboxgroup/stzh-checkboxgroup.d.ts +1 -1
  633. package/dist/types/components/stzh-chipselect/stzh-chipselect.d.ts +1 -1
  634. package/dist/types/components/stzh-contact/stzh-contact.d.ts +7 -3
  635. package/dist/types/components/stzh-datepicker/stzh-datepicker.d.ts +1 -1
  636. package/dist/types/components/stzh-dropdown/stzh-dropdown.d.ts +1 -1
  637. package/dist/types/components/stzh-header/stzh-header.d.ts +15 -2
  638. package/dist/types/components/stzh-homepage-service-highlights/stzh-homepage-service-highlights.d.ts +17 -0
  639. package/dist/types/components/stzh-input/stzh-input.d.ts +1 -1
  640. package/dist/types/components/stzh-monthyearpicker/stzh-monthyearpicker.d.ts +1 -1
  641. package/dist/types/components/stzh-pagetitle/stzh-pagetitle.d.ts +3 -1
  642. package/dist/types/components/stzh-pagetitle-home/stzh-pagetitle-home.d.ts +16 -0
  643. package/dist/types/components/stzh-panorama/stzh-panorama.d.ts +7 -1
  644. package/dist/types/components/stzh-panorama/stzh-panorama.localization.d.ts +1 -0
  645. package/dist/types/components/stzh-pi-content-navigation/stzh-pi-content-navigation.d.ts +36 -0
  646. package/dist/types/components/stzh-pi-menu/stzh-pi-menu.d.ts +62 -0
  647. package/dist/types/components/stzh-pi-menu/stzh-pi-menu.localization.d.ts +4 -0
  648. package/dist/types/components/stzh-pi-pagetitle/stzh-pi-pagetitle.d.ts +20 -0
  649. package/dist/types/components/stzh-pi-quote/stzh-pi-quote.d.ts +5 -0
  650. package/dist/types/components/stzh-pi-teaser/stzh-pi-teaser.d.ts +38 -0
  651. package/dist/types/components/stzh-progressbar/stzh-progressbar.d.ts +4 -0
  652. package/dist/types/components/stzh-progressbar-item/stzh-progressbar-item.d.ts +4 -0
  653. package/dist/types/components/stzh-radio/stzh-radio.d.ts +2 -2
  654. package/dist/types/components/stzh-radiogroup/stzh-radiogroup.d.ts +1 -1
  655. package/dist/types/components/stzh-search/stzh-search.d.ts +11 -1
  656. package/dist/types/components/stzh-section/stzh-section.d.ts +1 -1
  657. package/dist/types/components/stzh-textandimage/stzh-textandimage.d.ts +2 -0
  658. package/dist/types/components/stzh-timepicker/stzh-timepicker.d.ts +1 -1
  659. package/dist/types/components/stzh-toggle/stzh-toggle.d.ts +1 -1
  660. package/dist/types/components/stzh-tooltip/stzh-tooltip.d.ts +3 -1
  661. package/dist/types/components/stzh-upload/stzh-upload.d.ts +2 -2
  662. package/dist/types/components.d.ts +523 -42
  663. package/dist/types/index.d.ts +92 -22
  664. package/dist/vscode-data.json +326 -11
  665. package/package.json +2 -2
  666. package/dist/cjs/stzh-card_3.cjs.entry.js.map +0 -1
  667. package/dist/cjs/stzh-chipgroup.cjs.entry.js +0 -25
  668. package/dist/cjs/stzh-chipgroup.cjs.entry.js.map +0 -1
  669. package/dist/cjs/stzh-message.cjs.entry.js.map +0 -1
  670. package/dist/esm/stzh-card_3.entry.js.map +0 -1
  671. package/dist/esm/stzh-chipgroup.entry.js.map +0 -1
  672. package/dist/esm/stzh-message.entry.js.map +0 -1
  673. package/dist/stzh-components/p-150f4514.entry.js +0 -2
  674. package/dist/stzh-components/p-150f4514.entry.js.map +0 -1
  675. package/dist/stzh-components/p-1a19bc6e.entry.js +0 -2
  676. package/dist/stzh-components/p-1a19bc6e.entry.js.map +0 -1
  677. package/dist/stzh-components/p-1a3dcde3.entry.js +0 -2
  678. package/dist/stzh-components/p-1a3dcde3.entry.js.map +0 -1
  679. package/dist/stzh-components/p-2773b08f.entry.js.map +0 -1
  680. package/dist/stzh-components/p-3b31f90d.entry.js +0 -2
  681. package/dist/stzh-components/p-3b31f90d.entry.js.map +0 -1
  682. package/dist/stzh-components/p-54e73927.entry.js +0 -2
  683. package/dist/stzh-components/p-54e73927.entry.js.map +0 -1
  684. package/dist/stzh-components/p-56826f33.entry.js.map +0 -1
  685. package/dist/stzh-components/p-663f31a2.entry.js.map +0 -1
  686. package/dist/stzh-components/p-6f87ad6e.entry.js +0 -2
  687. package/dist/stzh-components/p-744c2183.entry.js.map +0 -1
  688. package/dist/stzh-components/p-75045ebb.entry.js +0 -2
  689. package/dist/stzh-components/p-8b608a1b.entry.js +0 -2
  690. package/dist/stzh-components/p-8f19c3ec.entry.js +0 -2
  691. package/dist/stzh-components/p-8f19c3ec.entry.js.map +0 -1
  692. package/dist/stzh-components/p-91b360c9.entry.js +0 -2
  693. package/dist/stzh-components/p-9b19785c.entry.js +0 -2
  694. package/dist/stzh-components/p-9b19785c.entry.js.map +0 -1
  695. package/dist/stzh-components/p-af7562ba.entry.js.map +0 -1
  696. package/dist/stzh-components/p-af87b81a.entry.js.map +0 -1
  697. package/dist/stzh-components/p-b22876e5.entry.js.map +0 -1
  698. package/dist/stzh-components/p-b2920d7f.entry.js +0 -2
  699. package/dist/stzh-components/p-b2920d7f.entry.js.map +0 -1
  700. package/dist/stzh-components/p-ca76966e.entry.js +0 -2
  701. package/dist/stzh-components/p-d6a4fe56.entry.js +0 -2
  702. package/dist/stzh-components/p-d6a4fe56.entry.js.map +0 -1
  703. package/dist/stzh-components/p-ea423877.entry.js +0 -2
  704. package/dist/stzh-components/p-ea423877.entry.js.map +0 -1
  705. package/dist/stzh-components/p-ef849bb1.entry.js +0 -2
  706. package/dist/stzh-components/p-ef849bb1.entry.js.map +0 -1
  707. package/dist/stzh-components/p-f5809e5f.entry.js +0 -2
  708. package/dist/stzh-components/p-f5809e5f.entry.js.map +0 -1
  709. package/dist/stzh-components/p-f692c5d0.entry.js +0 -2
  710. package/dist/stzh-components/p-f692c5d0.entry.js.map +0 -1
  711. package/dist/stzh-components/p-f7979f2a.entry.js +0 -2
  712. package/dist/stzh-components/p-faec0661.entry.js.map +0 -1
  713. /package/dist/stzh-components/{p-f06b2737.js.map → p-cc1f8acc.js.map} +0 -0
@@ -81,6 +81,9 @@
81
81
  /**
82
82
  * Pagetitle
83
83
  */
84
+ /**
85
+ * TopnewsMostsearched
86
+ */
84
87
  /**
85
88
  * Calendar
86
89
  */
@@ -638,9 +641,6 @@ stzh-panorama .stzh-fylingfocus-focused::-moz-focus-inner {
638
641
  border: 0 !important;
639
642
  }
640
643
 
641
- .stzh-panorama {
642
- /* Fullscreen */
643
- }
644
644
  .stzh-panorama__hotspot {
645
645
  width: 2.5rem;
646
646
  height: 2.5rem;
@@ -656,88 +656,79 @@ stzh-panorama .stzh-fylingfocus-focused::-moz-focus-inner {
656
656
  .stzh-panorama__hotspot-tooltip {
657
657
  white-space: nowrap;
658
658
  }
659
- .stzh-panorama__controls {
660
- bottom: var(--stzh-space-small);
661
- right: var(--stzh-space-small);
659
+ .stzh-panorama__sceneselector {
660
+ bottom: var(--stzh-space-xsmall);
661
+ left: var(--stzh-space-xsmall);
662
662
  z-index: 2;
663
- pointer-events: none;
664
663
  position: absolute;
665
664
  display: flex;
666
- flex-direction: column;
667
665
  gap: var(--stzh-space-xsmall);
668
666
  }
669
- @media screen and (min-width: 900px) {
670
- .stzh-panorama__controls {
671
- bottom: var(--stzh-space-medium);
667
+ @media print {
668
+ .stzh-panorama__sceneselector {
669
+ display: none;
672
670
  }
673
671
  }
674
- @media screen and (min-width: 1260px) {
675
- .stzh-panorama__controls {
672
+ @media screen and (min-width: 900px) {
673
+ .stzh-panorama__sceneselector {
676
674
  bottom: var(--stzh-space-large);
675
+ left: var(--stzh-space-large);
677
676
  }
678
677
  }
679
- @media screen and (min-width: 900px) {
680
- .stzh-panorama__controls {
681
- right: var(--stzh-space-medium);
682
- }
678
+ .stzh-panorama__sceneselector-dropdown {
679
+ --color: var(--stzh-color-grey80);
680
+ --hover-color: var(--stzh-color-grey90);
681
+ --icon-angle-color: var(--stzh-color-grey80);
682
+ --hover-icon-angle-color: var(--stzh-color-grey80);
683
+ --border-color: var(--stzh-color-white);
684
+ --hover-border-color: var(--stzh-color-white);
685
+ --focus-border-color: var(--stzh-color-white);
686
+ --focus-background-color: var(--stzh-color-white);
687
+ }
688
+ .stzh-panorama__sceneselector-dropdown * {
689
+ box-sizing: border-box;
683
690
  }
684
- @media screen and (min-width: 1260px) {
685
- .stzh-panorama__controls {
686
- right: var(--stzh-space-large);
687
- }
691
+ .stzh-panorama__copyright {
692
+ background-color: var(--stzh-color-black50op);
693
+ color: var(--stzh-color-white80op);
694
+ padding-left: var(--stzh-space-medium);
695
+ padding-right: var(--stzh-space-medium);
696
+ padding-top: var(--stzh-space-xsmall);
697
+ padding-bottom: var(--stzh-space-xsmall);
698
+ white-space: nowrap;
699
+ display: flex;
700
+ justify-content: center;
701
+ align-items: center;
702
+ }
703
+ .stzh-panorama__controls {
704
+ bottom: var(--stzh-space-xsmall);
705
+ right: var(--stzh-space-xsmall);
706
+ z-index: 2;
707
+ pointer-events: none;
708
+ position: absolute;
709
+ display: flex;
710
+ flex-direction: row;
711
+ gap: var(--stzh-space-xxsmall);
688
712
  }
689
713
  @media print {
690
714
  .stzh-panorama__controls {
691
715
  display: none;
692
716
  }
693
717
  }
718
+ @media screen and (min-width: 900px) {
719
+ .stzh-panorama__controls {
720
+ bottom: var(--stzh-space-large);
721
+ right: var(--stzh-space-large);
722
+ }
723
+ }
694
724
  .stzh-panorama__control {
695
725
  pointer-events: all;
696
726
  }
697
- .stzh-panorama__zoom-control {
698
- display: flex;
699
- flex-direction: column;
700
- box-shadow: var(--stzh-box-shadow-popover);
701
- border-radius: var(--stzh-button-border-radius);
727
+ .stzh-panorama__control--show-medium {
702
728
  visibility: hidden;
703
729
  }
704
- .stzh-panorama__zoom-control stzh-button.stzh-panorama__control {
705
- --box-shadow: none;
706
- }
707
- .stzh-panorama__zoom-control stzh-button.stzh-panorama__control.is-zoom-in {
708
- --border-radius: var(--stzh-button-border-radius) var(--stzh-button-border-radius) 0 0;
709
- margin-bottom: 0.125rem;
710
- }
711
- .stzh-panorama__zoom-control stzh-button.stzh-panorama__control.is-zoom-out {
712
- --border-radius: 0 0 var(--stzh-button-border-radius) var(--stzh-button-border-radius);
713
- }
714
- .stzh-panorama__outside-controls {
715
- margin-top: var(--stzh-space-xxlarge);
716
- display: flex;
717
- flex-wrap: wrap;
718
- -moz-column-gap: var(--stzh-space-small);
719
- column-gap: var(--stzh-space-small);
720
- row-gap: var(--stzh-space-xsmall);
721
- }
722
730
  @media screen and (min-width: 900px) {
723
- .stzh-panorama__outside-controls {
724
- margin-top: var(--stzh-space-xxxlarge);
725
- }
726
- }
727
- @media screen and (min-width: 1260px) {
728
- .stzh-panorama__outside-controls {
729
- margin-top: var(--stzh-space-xxxxlarge);
731
+ .stzh-panorama__control--show-medium {
732
+ visibility: visible;
730
733
  }
731
- }
732
- @media print {
733
- .stzh-panorama__outside-controls {
734
- display: none;
735
- }
736
- }
737
- .stzh-panorama__outside-scenes-control {
738
- --border-color: var(--stzh-color-primary);
739
- width: auto;
740
- }
741
- .stzh-panorama--is-fullscreen .stzh-panorama__zoom-control {
742
- visibility: visible;
743
734
  }
@@ -10,7 +10,7 @@ var __rest = (this && this.__rest) || function (s, e) {
10
10
  }
11
11
  return t;
12
12
  };
13
- import { Host, h, } from "@stencil/core";
13
+ import { Fragment, h, Host } from "@stencil/core";
14
14
  import "pannellum";
15
15
  const CLASS_HOTSPOT = "stzh-panorama__hotspot";
16
16
  const CLASS_HOTSPOT_TOOLTIP = "stzh-panorama__hotspot-tooltip";
@@ -33,7 +33,7 @@ export class StzhPanorama {
33
33
  if (options.type === "scene") {
34
34
  element.classList.add(CLASS_HOTSPOT_BUTTON_SCENE);
35
35
  }
36
- else if (options.url) {
36
+ else if (options.url && !options.text) {
37
37
  element.classList.add(CLASS_HOTSPOT_BUTTON_LINK);
38
38
  element.setAttribute("href", options.url);
39
39
  element.setAttribute("target", "_blank");
@@ -49,9 +49,30 @@ export class StzhPanorama {
49
49
  if (options.text) {
50
50
  const tooltip = document.createElement("stzh-tooltip");
51
51
  tooltip.label = this.localization.hotspotLabel;
52
- tooltip.content = options.text;
53
52
  tooltip.placement = "top";
53
+ tooltip.type = "button";
54
54
  tooltip.className = CLASS_HOTSPOT_TOOLTIP;
55
+ if (options.url) {
56
+ const tooltipContentSlot = document.createElement("div");
57
+ tooltipContentSlot.slot = "content";
58
+ const text = document.createElement("stzh-text");
59
+ text.font = "heavy";
60
+ text.curve = "caption";
61
+ text.textContent = options.text;
62
+ tooltipContentSlot.appendChild(text);
63
+ const link = document.createElement("stzh-link");
64
+ link.label = this.localization.moreInformation;
65
+ link.href = options.url;
66
+ link.target = "_blank";
67
+ link.icon = "arrow-right";
68
+ link.iconPosition = "right";
69
+ link.size = "small";
70
+ tooltipContentSlot.appendChild(link);
71
+ tooltip.appendChild(tooltipContentSlot);
72
+ }
73
+ else {
74
+ tooltip.content = options.text;
75
+ }
55
76
  tooltip.appendChild(element);
56
77
  hotspotDiv.appendChild(tooltip);
57
78
  }
@@ -59,13 +80,13 @@ export class StzhPanorama {
59
80
  hotspotDiv.appendChild(element);
60
81
  }
61
82
  // prevent that you can do panorama actions with arrow keys, zooming with shift etc.
62
- element.addEventListener("keydown", (event) => {
83
+ element.addEventListener("keydown", event => {
63
84
  event.stopPropagation();
64
85
  });
65
86
  };
66
87
  this.handleSceneDropdownChange = async (event) => {
67
88
  const target = event.target;
68
- const scene = await target.getValue();
89
+ const scene = (await target.getValue());
69
90
  this.scene = scene;
70
91
  };
71
92
  this.handleControlsKeydown = (event) => {
@@ -103,11 +124,14 @@ export class StzhPanorama {
103
124
  };
104
125
  this.localization = undefined;
105
126
  this.caption = "";
127
+ this.heading = "";
106
128
  this.copyright = "";
107
129
  this.scene = undefined;
108
130
  this.sceneFadeDuration = 500;
109
131
  this.autoload = true;
110
132
  this.orientationOnByDefault = false;
133
+ this.showControls = true;
134
+ this.showHotspots = true;
111
135
  this.scenes = undefined;
112
136
  this.isOrientationSupported = false;
113
137
  this.isOrientationActive = false;
@@ -132,9 +156,11 @@ export class StzhPanorama {
132
156
  }
133
157
  const scenesLib = {};
134
158
  // copy object and modify scene hotspots to build own more accessible elements
135
- this._scenes.forEach((scene) => {
159
+ this._scenes.forEach(scene => {
136
160
  const { sceneId, imageTitle, imageSrc, imageAuthor, imageType, hotspots } = scene, sceneParams = __rest(scene, ["sceneId", "imageTitle", "imageSrc", "imageAuthor", "imageType", "hotspots"]);
137
- scenesLib[sceneId] = Object.assign(Object.assign({}, sceneParams), { title: imageTitle, author: imageAuthor ? `${this.localization.by} ${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 }) }))) });
161
+ scenesLib[sceneId] = Object.assign(Object.assign({}, sceneParams), { type: imageType, panorama: imageSrc, hotSpots: this.showHotspots
162
+ ? hotspots.map(hotSpot => (Object.assign(Object.assign({}, hotSpot), { URL: "", cssClass: CLASS_HOTSPOT, createTooltipFunc: this.createTooltip, createTooltipArgs: Object.assign(Object.assign({}, hotSpot), { url: hotSpot.url }) })))
163
+ : undefined });
138
164
  });
139
165
  this._scenesLibrary = scenesLib;
140
166
  }
@@ -176,9 +202,10 @@ export class StzhPanorama {
176
202
  * If the action is already runing/animating, add the value to the current position and set as new target.
177
203
  */
178
204
  executeAction(name, getter, setter, value) {
179
- this.actionRunning[name] = typeof this.actionRunning[name] !== "undefined" && this.actionRunning[name] !== 0
180
- ? this.actionRunning[name] + value
181
- : getter() + value;
205
+ this.actionRunning[name] =
206
+ typeof this.actionRunning[name] !== "undefined" && this.actionRunning[name] !== 0
207
+ ? this.actionRunning[name] + value
208
+ : getter() + value;
182
209
  setter(this.actionRunning[name], this.controlAnimationTime, () => {
183
210
  this.actionRunning = { [name]: 0 };
184
211
  });
@@ -206,7 +233,7 @@ export class StzhPanorama {
206
233
  genericWebGLError: this.localization.genericWebGLError,
207
234
  textureSizeError: this.localization.textureSizeError,
208
235
  unknownError: this.localization.unknownError,
209
- }
236
+ },
210
237
  },
211
238
  });
212
239
  this.viewer.on("load", () => {
@@ -215,7 +242,7 @@ export class StzhPanorama {
215
242
  this.updateOrientationState();
216
243
  this.scene = this.viewer.getScene();
217
244
  this.stzhLoad.emit({
218
- component: "stzh-panorama"
245
+ component: "stzh-panorama",
219
246
  });
220
247
  }
221
248
  });
@@ -227,7 +254,7 @@ export class StzhPanorama {
227
254
  this.isFullscreen = status;
228
255
  this.stzhFullscreenChange.emit({
229
256
  component: "stzh-panorama",
230
- value: this.isFullscreen
257
+ value: this.isFullscreen,
231
258
  });
232
259
  });
233
260
  this.viewer.on("scenechange", (sceneId) => {
@@ -235,19 +262,19 @@ export class StzhPanorama {
235
262
  this.containerElement.focus();
236
263
  this.stzhSceneChange.emit({
237
264
  component: "stzh-panorama",
238
- value: sceneId
265
+ value: sceneId,
239
266
  });
240
267
  });
241
268
  this.viewer.on("zoomchange", (zoom) => {
242
269
  this.stzhZoomChange.emit({
243
270
  component: "stzh-panorama",
244
- value: zoom
271
+ value: zoom,
245
272
  });
246
273
  });
247
274
  this.viewer.on("animatefinished", (data) => {
248
275
  this.stzhChange.emit({
249
276
  component: "stzh-panorama",
250
- value: data
277
+ value: data,
251
278
  });
252
279
  });
253
280
  }
@@ -275,17 +302,16 @@ export class StzhPanorama {
275
302
  "stzh-panorama--is-motion": this.isOrientationActive,
276
303
  "stzh-panorama--is-fullscreen": this.isFullscreen,
277
304
  };
278
- const sceneOptions = this._scenes
279
- .map(({ sceneId, imageTitle }) => ({
305
+ const sceneOptions = this._scenes.map(({ sceneId, imageTitle }) => ({
280
306
  value: sceneId,
281
- text: imageTitle
307
+ text: imageTitle,
282
308
  }));
283
- const currentScene = this._scenes
284
- .find(({ sceneId }) => sceneId === this.scene);
285
- 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 &&
286
- 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 ? "shrink" : "expand", 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 &&
287
- 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: "expand", 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") }), sceneOptions.length > 1 &&
288
- 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 })))));
309
+ const currentScene = this._scenes.find(({ sceneId }) => sceneId === this.scene);
310
+ return (h(Host, null, h("div", { class: classes }, h("stzh-figure", { class: "stzh-panorama__figure", heading: this.heading, 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__sceneselector" }, sceneOptions.length > 1 && (h("stzh-dropdown", { class: "stzh-panorama__sceneselector-dropdown", size: "small", popoverPlacement: "top", label: this.localization.sceneLabel, labelHidden: true, noSearch: true, items: [this.scene], options: sceneOptions, onStzhChange: this.handleSceneDropdownChange })), h("div", { class: "stzh-panorama__copyright" }, currentScene.imageAuthor || currentScene.copyright || this.copyright)), h("div", { class: "stzh-panorama__controls", onKeyDown: this.handleControlsKeydown }, this.showControls && (h(Fragment, null, h("stzh-button", { class: "stzh-panorama__control stzh-panorama__control--show-medium", iconOnly: true, "a11y-label": this.localization.panLeft, variant: "secondary", icon: "arrow-left", size: "small", onClick: () => this.action("panLeft") }), h("stzh-button", { class: "stzh-panorama__control stzh-panorama__control--show-medium", iconOnly: true, "a11y-label": this.localization.panRight, variant: "secondary", icon: "arrow-right", size: "small", onClick: () => this.action("panRight") }), h("stzh-button", { class: "stzh-panorama__control stzh-panorama__control--show-medium", iconOnly: true, "a11y-label": this.localization.panUp, variant: "secondary", icon: "arrow-up", size: "small", onClick: () => this.action("panUp") }), h("stzh-button", { class: "stzh-panorama__control stzh-panorama__control--show-medium", iconOnly: true, "a11y-label": this.localization.panDown, variant: "secondary", icon: "arrow-down", size: "small", onClick: () => this.action("panDown") }), h("stzh-button", { class: "stzh-panorama__control stzh-panorama__control--show-medium", iconOnly: true, "a11y-label": this.localization.zoomIn, variant: "secondary", icon: "plus", size: "small", onClick: () => this.action("zoomIn") }), h("stzh-button", { class: "stzh-panorama__control stzh-panorama__control--show-medium", iconOnly: true, "a11y-label": this.localization.zoomOut, variant: "secondary", icon: "minus", size: "small", onClick: () => this.action("zoomOut") }))), this.isOrientationSupported && (h("stzh-button", { class: "stzh-panorama__control", variant: "secondary", a11yLabel: this.isOrientationActive
311
+ ? this.localization.stopOrientation
312
+ : 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
313
+ ? this.localization.disableFullscreenLabel
314
+ : this.localization.enableFullscreenLabel, icon: this.isFullscreen ? "shrink" : "expand", iconOnly: true, size: "small", onClick: () => this.action("fullscreen") }))))))));
289
315
  }
290
316
  static get is() { return "stzh-panorama"; }
291
317
  static get originalStyleUrls() {
@@ -305,7 +331,7 @@ export class StzhPanorama {
305
331
  "mutable": false,
306
332
  "complexType": {
307
333
  "original": "StzhPanoramaLocalizedText",
308
- "resolved": "StzhLocaleComponent & { hotspotLabel: string; sceneLabel: string; enableFullscreenLabel: string; disableFullscreenLabel: string; panUp: string; panDown: string; panLeft: string; panRight: string; startOrientation: string; stopOrientation: string; zoomIn: string; zoomOut: string; by: string; loadButtonLabel: string; loadingLabel: string; bylineLabel: string; noPanoramaError: string; fileAccessError: string; malformedURLError: string; iOS8WebGLError: string; genericWebGLError: string; textureSizeError: string; unknownError: string; }",
334
+ "resolved": "StzhLocaleComponent & { hotspotLabel: string; sceneLabel: string; enableFullscreenLabel: string; disableFullscreenLabel: string; panUp: string; panDown: string; panLeft: string; panRight: string; startOrientation: string; stopOrientation: string; zoomIn: string; zoomOut: string; by: string; moreInformation: string; loadButtonLabel: string; loadingLabel: string; bylineLabel: string; noPanoramaError: string; fileAccessError: string; malformedURLError: string; iOS8WebGLError: string; genericWebGLError: string; textureSizeError: string; unknownError: string; }",
309
335
  "references": {
310
336
  "StzhPanoramaLocalizedText": {
311
337
  "location": "import",
@@ -339,6 +365,24 @@ export class StzhPanorama {
339
365
  "reflect": false,
340
366
  "defaultValue": "\"\""
341
367
  },
368
+ "heading": {
369
+ "type": "string",
370
+ "mutable": false,
371
+ "complexType": {
372
+ "original": "string",
373
+ "resolved": "string",
374
+ "references": {}
375
+ },
376
+ "required": false,
377
+ "optional": false,
378
+ "docs": {
379
+ "tags": [],
380
+ "text": "Heading"
381
+ },
382
+ "attribute": "heading",
383
+ "reflect": false,
384
+ "defaultValue": "\"\""
385
+ },
342
386
  "copyright": {
343
387
  "type": "string",
344
388
  "mutable": false,
@@ -428,6 +472,42 @@ export class StzhPanorama {
428
472
  "reflect": false,
429
473
  "defaultValue": "false"
430
474
  },
475
+ "showControls": {
476
+ "type": "boolean",
477
+ "mutable": false,
478
+ "complexType": {
479
+ "original": "boolean",
480
+ "resolved": "boolean",
481
+ "references": {}
482
+ },
483
+ "required": false,
484
+ "optional": false,
485
+ "docs": {
486
+ "tags": [],
487
+ "text": "If set to false, moving/paning/zooming controls will be hidden. e.g. when embedding the panorama into content columns."
488
+ },
489
+ "attribute": "show-controls",
490
+ "reflect": false,
491
+ "defaultValue": "true"
492
+ },
493
+ "showHotspots": {
494
+ "type": "boolean",
495
+ "mutable": false,
496
+ "complexType": {
497
+ "original": "boolean",
498
+ "resolved": "boolean",
499
+ "references": {}
500
+ },
501
+ "required": false,
502
+ "optional": false,
503
+ "docs": {
504
+ "tags": [],
505
+ "text": "If set to false, hotspots will be hidden. e.g. when embedding the panorama into content columns."
506
+ },
507
+ "attribute": "show-hotspots",
508
+ "reflect": false,
509
+ "defaultValue": "true"
510
+ },
431
511
  "scenes": {
432
512
  "type": "string",
433
513
  "mutable": false,
@@ -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,IAAI,EACJ,CAAC,EACD,OAAO,EACP,IAAI,EACJ,MAAM,EACN,KAAK;AACL,UAAU;AACV,KAAK,EACL,KAAK,GAEN,MAAM,eAAe,CAAC;AAevB,OAAO,WAAW,CAAC;AAEnB,MAAM,aAAa,GAAG,wBAAwB,CAAC;AAC/C,MAAM,qBAAqB,GAAG,gCAAgC,CAAC;AAC/D,MAAM,oBAAoB,GAAG,+BAA+B,CAAC;AAC7D,MAAM,0BAA0B,GAAG,UAAU,CAAC;AAC9C,MAAM,yBAAyB,GAAG,SAAS,CAAC;AAC5C,MAAM,yBAAyB,GAAG,SAAS,CAAC;AAE5C,MAAM,kBAAkB,GAAG,UAAU,CAAC;AACtC,MAAM,oBAAoB,GAAG,WAAW,CAAC;AAEzC;;GAEG;AAKH,MAAM,OAAO,YAAY;;IA2If,kBAAa,GAA8B,EAAE,CAAC;IAC9C,yBAAoB,GAAW,GAAG,CAAC;IAEnC,kBAAa,GAAG,CAAC,UAAU,EAAE,OAAO,EAAE,EAAE;MAChD,MAAM,OAAO,GAAG,QAAQ,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC;MACpD,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;MAE9C,IAAI,OAAO,CAAC,IAAI,KAAK,OAAO,EAAE;QAC7B,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAAC;OAClD;WAAM,IAAI,OAAO,CAAC,GAAG,EAAE;QACvB,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAC;QACjD,OAAO,CAAC,YAAY,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC;QAC1C,OAAO,CAA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,uCAAuC,EAC7C,IAAI,EAAC,OAAO,EACZ,KAAK,EAAE,IAAI,CAAC,YAAY,CAAC,UAAU,EACnC,WAAW,EAAE,IAAI,EACjB,QAAQ,EAAE,IAAI,EACd,KAAK,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,EACnB,OAAO,EAAE,YAAY,EACrB,YAAY,EAAE,IAAI,CAAC,yBAAyB,GAC7B,CAEf,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 (!this.localization) {\n return;\n }\n\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 ? `${this.localization.by} ${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 if (!this.localization) {\n this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, \"panorama\");\n }\n\n this.scenesWatcher(this.scenes);\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 ? \"shrink\" : \"expand\"}\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=\"expand\" 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 {sceneOptions.length > 1 &&\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 }\n </div>\n </div>\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"stzh-panorama.js","sourceRoot":"","sources":["../../../../src/components/stzh-panorama/stzh-panorama.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAevH,OAAO,WAAW,CAAC;AAEnB,MAAM,aAAa,GAAG,wBAAwB,CAAC;AAC/C,MAAM,qBAAqB,GAAG,gCAAgC,CAAC;AAC/D,MAAM,oBAAoB,GAAG,+BAA+B,CAAC;AAC7D,MAAM,0BAA0B,GAAG,UAAU,CAAC;AAC9C,MAAM,yBAAyB,GAAG,SAAS,CAAC;AAC5C,MAAM,yBAAyB,GAAG,SAAS,CAAC;AAE5C,MAAM,kBAAkB,GAAG,UAAU,CAAC;AACtC,MAAM,oBAAoB,GAAG,WAAW,CA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ment, h, Host, Method, Prop, State, Watch } from \"@stencil/core\";\n\nimport {\n PanoramaScene,\n PanoramaScenesLibrary,\n StzhDropdownChangeEvent,\n StzhPanoramaChangeEvent,\n StzhPanoramaFullscreenChangeEvent,\n StzhPanoramaLoadEvent,\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 /** Heading */\n @Prop() heading: 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 /** If set to false, moving/paning/zooming controls will be hidden. e.g. when embedding the panorama into content columns. */\n @Prop() showControls: boolean = true;\n\n /** If set to false, hotspots will be hidden. e.g. when embedding the panorama into content columns. */\n @Prop() showHotspots: boolean = true;\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 (!this.localization) {\n return;\n }\n\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 { sceneId, imageTitle, imageSrc, imageAuthor, imageType, hotspots, ...sceneParams } = scene;\n\n scenesLib[sceneId] = {\n ...sceneParams,\n type: imageType,\n panorama: imageSrc,\n hotSpots: this.showHotspots\n ? 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 : undefined,\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()\n 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 const element = document.createElement(\"stzh-button\");\n element.classList.add(CLASS_HOTSPOT_BUTTON);\n\n if (options.type === \"scene\") {\n element.classList.add(CLASS_HOTSPOT_BUTTON_SCENE);\n } else if (options.url && !options.text) {\n element.classList.add(CLASS_HOTSPOT_BUTTON_LINK);\n element.setAttribute(\"href\", options.url);\n element.setAttribute(\"target\", \"_blank\");\n } else {\n element.classList.add(CLASS_HOTSPOT_BUTTON_INFO);\n }\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 if (options.text) {\n const tooltip = document.createElement(\"stzh-tooltip\");\n tooltip.label = this.localization.hotspotLabel;\n tooltip.placement = \"top\";\n tooltip.type = \"button\";\n tooltip.className = CLASS_HOTSPOT_TOOLTIP;\n\n if (options.url) {\n const tooltipContentSlot = document.createElement(\"div\");\n tooltipContentSlot.slot = \"content\";\n\n const text = document.createElement(\"stzh-text\");\n text.font = \"heavy\";\n text.curve = \"caption\";\n text.textContent = options.text;\n tooltipContentSlot.appendChild(text);\n\n const link = document.createElement(\"stzh-link\");\n link.label = this.localization.moreInformation;\n link.href = options.url;\n link.target = \"_blank\";\n link.icon = \"arrow-right\";\n link.iconPosition = \"right\";\n link.size = \"small\";\n tooltipContentSlot.appendChild(link);\n\n tooltip.appendChild(tooltipContentSlot);\n } else {\n tooltip.content = options.text;\n }\n\n tooltip.appendChild(element);\n hotspotDiv.appendChild(tooltip);\n } else {\n hotspotDiv.appendChild(element);\n }\n\n // prevent that you can do panorama actions with arrow keys, zooming with shift etc.\n element.addEventListener(\"keydown\", event => {\n event.stopPropagation();\n });\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 event.stopPropagation();\n };\n\n private action = (\n type:\n | \"zoomIn\"\n | \"zoomOut\"\n | \"fullscreen\"\n | \"startOrientation\"\n | \"stopOrientation\"\n | \"panUp\"\n | \"panDown\"\n | \"panLeft\"\n | \"panRight\"\n ) => {\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 this.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 this.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 if (this.viewer.isOrientationSupported()) {\n this.viewer.startOrientation();\n this.updateOrientationState();\n }\n }\n\n private updateOrientationState() {\n this.isOrientationSupported = this.viewer.isOrientationSupported();\n this.isOrientationActive = this.isOrientationSupported && this.viewer.isOrientationActive();\n }\n\n /**\n * Execute a button control action.\n * If the action is already runing/animating, add the value to the current position and set as new target.\n */\n private executeAction(name, getter, setter, value) {\n this.actionRunning[name] =\n typeof this.actionRunning[name] !== \"undefined\" && this.actionRunning[name] !== 0\n ? this.actionRunning[name] + value\n : getter() + value;\n\n setter(this.actionRunning[name], this.controlAnimationTime, () => {\n this.actionRunning = { [name]: 0 };\n });\n }\n\n private initViewer() {\n this.viewer = window.pannellum.viewer(\n this.containerElement,\n // https://pannellum.org/documentation/reference/\n {\n scenes: this._scenesLibrary,\n default: {\n firstScene: this.scene,\n showControls: false, // we show our own controls (zoom in/out and fullscreen)\n sceneFadeDuration: this.sceneFadeDuration,\n autoLoad: this.autoload,\n compass: false,\n orientationOnByDefault: this.orientationOnByDefault,\n strings: {\n loadButtonLabel: this.localization.loadButtonLabel,\n loadingLabel: this.localization.loadingLabel,\n bylineLabel: this.localization.bylineLabel,\n noPanoramaError: this.localization.noPanoramaError,\n fileAccessError: this.localization.fileAccessError,\n malformedURLError: this.localization.malformedURLError,\n iOS8WebGLError: this.localization.iOS8WebGLError,\n genericWebGLError: this.localization.genericWebGLError,\n textureSizeError: this.localization.textureSizeError,\n unknownError: this.localization.unknownError,\n },\n },\n }\n );\n\n this.viewer.on(\"load\", () => {\n if (this.viewer) {\n // 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 this.viewer.on(\"touchstart\", () => {\n // update classes for orientation control when user interacts with panorama\n this.updateOrientationState();\n });\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 this.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 if (!this.localization) {\n this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, \"panorama\");\n }\n\n this.scenesWatcher(this.scenes);\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.map(({ sceneId, imageTitle }) => ({\n value: sceneId,\n text: imageTitle,\n }));\n\n const currentScene = this._scenes.find(({ sceneId }) => sceneId === this.scene);\n\n return (\n <Host>\n <div class={classes}>\n <stzh-figure\n class=\"stzh-panorama__figure\"\n heading={this.heading}\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__sceneselector\">\n {sceneOptions.length > 1 && (\n <stzh-dropdown\n class={\"stzh-panorama__sceneselector-dropdown\"}\n size={\"small\"}\n popoverPlacement={\"top\"}\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 )}\n <div class=\"stzh-panorama__copyright\">\n {currentScene.imageAuthor || currentScene.copyright || this.copyright}\n </div>\n </div>\n <div class=\"stzh-panorama__controls\" onKeyDown={this.handleControlsKeydown}>\n {this.showControls && (\n <Fragment>\n <stzh-button\n class=\"stzh-panorama__control stzh-panorama__control--show-medium\"\n iconOnly={true}\n a11y-label={this.localization.panLeft}\n variant=\"secondary\"\n icon=\"arrow-left\"\n size=\"small\"\n onClick={() => this.action(\"panLeft\")}\n ></stzh-button>\n <stzh-button\n class=\"stzh-panorama__control stzh-panorama__control--show-medium\"\n iconOnly={true}\n a11y-label={this.localization.panRight}\n variant=\"secondary\"\n icon=\"arrow-right\"\n size=\"small\"\n onClick={() => this.action(\"panRight\")}\n ></stzh-button>\n <stzh-button\n class=\"stzh-panorama__control stzh-panorama__control--show-medium\"\n iconOnly={true}\n a11y-label={this.localization.panUp}\n variant=\"secondary\"\n icon=\"arrow-up\"\n size=\"small\"\n onClick={() => this.action(\"panUp\")}\n ></stzh-button>\n <stzh-button\n class=\"stzh-panorama__control stzh-panorama__control--show-medium\"\n iconOnly={true}\n a11y-label={this.localization.panDown}\n variant=\"secondary\"\n icon=\"arrow-down\"\n size=\"small\"\n onClick={() => this.action(\"panDown\")}\n ></stzh-button>\n <stzh-button\n class=\"stzh-panorama__control stzh-panorama__control--show-medium\"\n iconOnly={true}\n a11y-label={this.localization.zoomIn}\n variant=\"secondary\"\n icon=\"plus\"\n size=\"small\"\n onClick={() => this.action(\"zoomIn\")}\n ></stzh-button>\n <stzh-button\n class=\"stzh-panorama__control stzh-panorama__control--show-medium\"\n iconOnly={true}\n a11y-label={this.localization.zoomOut}\n variant=\"secondary\"\n icon=\"minus\"\n size=\"small\"\n onClick={() => this.action(\"zoomOut\")}\n ></stzh-button>\n </Fragment>\n )}\n\n {this.isOrientationSupported && (\n <stzh-button\n class=\"stzh-panorama__control\"\n variant=\"secondary\"\n a11yLabel={\n this.isOrientationActive\n ? this.localization.stopOrientation\n : this.localization.startOrientation\n }\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={\n this.isFullscreen\n ? this.localization.disableFullscreenLabel\n : this.localization.enableFullscreenLabel\n }\n icon={this.isFullscreen ? \"shrink\" : \"expand\"}\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 </div>\n </Host>\n );\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"stzh-panorama.localization.js","sourceRoot":"","sources":["../../../../src/components/stzh-panorama/stzh-panorama.localization.ts"],"names":[],"mappings":"","sourcesContent":["import { StzhLocaleComponent } from \"../../utils/translation-utils\";\n\nexport type StzhPanoramaLocalizedText = StzhLocaleComponent & {\n hotspotLabel: string\n sceneLabel: string\n enableFullscreenLabel: string\n disableFullscreenLabel: string\n panUp: string\n panDown: string\n panLeft: string\n panRight: string\n startOrientation: string\n stopOrientation: string\n zoomIn: string\n zoomOut: string\n by: string\n\n // library strings:\n loadButtonLabel: string\n loadingLabel: string\n bylineLabel: string\n noPanoramaError: string\n fileAccessError: string\n malformedURLError: string\n iOS8WebGLError: string\n genericWebGLError: string\n textureSizeError: string\n unknownError: string\n}\n"]}
1
+ {"version":3,"file":"stzh-panorama.localization.js","sourceRoot":"","sources":["../../../../src/components/stzh-panorama/stzh-panorama.localization.ts"],"names":[],"mappings":"","sourcesContent":["import { StzhLocaleComponent } from \"../../utils/translation-utils\";\n\nexport type StzhPanoramaLocalizedText = StzhLocaleComponent & {\n hotspotLabel: string\n sceneLabel: string\n enableFullscreenLabel: string\n disableFullscreenLabel: string\n panUp: string\n panDown: string\n panLeft: string\n panRight: string\n startOrientation: string\n stopOrientation: string\n zoomIn: string\n zoomOut: string\n by: string\n moreInformation: string\n\n // library strings:\n loadButtonLabel: string\n loadingLabel: string\n bylineLabel: string\n noPanoramaError: string\n fileAccessError: string\n malformedURLError: string\n iOS8WebGLError: string\n genericWebGLError: string\n textureSizeError: string\n unknownError: string\n}\n"]}