@oiz/stzh-components 2.7.0 → 2.8.0-beta

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 (773) hide show
  1. package/dist/cjs/{app-globals-c9c5ef57.js → app-globals-dff738b3.js} +2 -2
  2. package/dist/cjs/{app-globals-c9c5ef57.js.map → app-globals-dff738b3.js.map} +1 -1
  3. package/dist/cjs/index.cjs.js.map +1 -1
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/{string-utils-a867b99d.js → string-utils-2575ea7f.js} +14 -1
  6. package/dist/cjs/string-utils-2575ea7f.js.map +1 -0
  7. package/dist/cjs/stzh-actions.cjs.entry.js +1 -1
  8. package/dist/cjs/{stzh-sortable.cjs.entry.js → stzh-actionset_4.cjs.entry.js} +567 -3
  9. package/dist/cjs/stzh-actionset_4.cjs.entry.js.map +1 -0
  10. package/dist/cjs/stzh-amount.cjs.entry.js +4 -3
  11. package/dist/cjs/stzh-amount.cjs.entry.js.map +1 -1
  12. package/dist/cjs/stzh-appnav.cjs.entry.js +1 -1
  13. package/dist/cjs/stzh-audio.cjs.entry.js +1 -1
  14. package/dist/cjs/stzh-badge_3.cjs.entry.js +7 -7
  15. package/dist/cjs/stzh-badge_3.cjs.entry.js.map +1 -1
  16. package/dist/cjs/stzh-buttongroup.cjs.entry.js +1 -1
  17. package/dist/cjs/stzh-buttongroup.cjs.entry.js.map +1 -1
  18. package/dist/cjs/stzh-carousel.cjs.entry.js +1 -1
  19. package/dist/cjs/stzh-cell.cjs.entry.js +1 -1
  20. package/dist/cjs/stzh-cell.cjs.entry.js.map +1 -1
  21. package/dist/cjs/stzh-checkbox.cjs.entry.js +1 -1
  22. package/dist/cjs/stzh-checkboxgroup.cjs.entry.js +2 -2
  23. package/dist/cjs/stzh-chip-select.cjs.entry.js +149 -0
  24. package/dist/cjs/stzh-chip-select.cjs.entry.js.map +1 -0
  25. package/dist/cjs/stzh-chip_2.cjs.entry.js +2 -2
  26. package/dist/cjs/stzh-chip_2.cjs.entry.js.map +1 -1
  27. package/dist/cjs/stzh-components.cjs.js +2 -2
  28. package/dist/cjs/stzh-contact.cjs.entry.js +1 -1
  29. package/dist/cjs/stzh-container.cjs.entry.js +1 -1
  30. package/dist/cjs/stzh-container.cjs.entry.js.map +1 -1
  31. package/dist/cjs/stzh-cspace.cjs.entry.js +3 -1
  32. package/dist/cjs/stzh-cspace.cjs.entry.js.map +1 -1
  33. package/dist/cjs/stzh-datalist_2.cjs.entry.js +11 -8
  34. package/dist/cjs/stzh-datalist_2.cjs.entry.js.map +1 -1
  35. package/dist/cjs/stzh-datatable.cjs.entry.js +32 -8
  36. package/dist/cjs/stzh-datatable.cjs.entry.js.map +1 -1
  37. package/dist/cjs/stzh-datepicker_3.cjs.entry.js +6 -5
  38. package/dist/cjs/stzh-datepicker_3.cjs.entry.js.map +1 -1
  39. package/dist/cjs/stzh-details.cjs.entry.js +1 -1
  40. package/dist/cjs/stzh-dialog.cjs.entry.js +2 -2
  41. package/dist/cjs/stzh-dialog.cjs.entry.js.map +1 -1
  42. package/dist/cjs/stzh-dropdown.cjs.entry.js +4 -2
  43. package/dist/cjs/stzh-dropdown.cjs.entry.js.map +1 -1
  44. package/dist/cjs/stzh-figure.cjs.entry.js +1 -1
  45. package/dist/cjs/stzh-footer.cjs.entry.js +1 -1
  46. package/dist/cjs/stzh-ghettobox.cjs.entry.js +108 -0
  47. package/dist/cjs/stzh-ghettobox.cjs.entry.js.map +1 -0
  48. package/dist/cjs/stzh-header.cjs.entry.js +1 -1
  49. package/dist/cjs/stzh-hspace.cjs.entry.js +1 -1
  50. package/dist/cjs/stzh-hspace.cjs.entry.js.map +1 -1
  51. package/dist/cjs/stzh-input.cjs.entry.js +4 -2
  52. package/dist/cjs/stzh-input.cjs.entry.js.map +1 -1
  53. package/dist/cjs/stzh-link.cjs.entry.js +5 -5
  54. package/dist/cjs/stzh-link.cjs.entry.js.map +1 -1
  55. package/dist/cjs/stzh-menu_2.cjs.entry.js +3 -3
  56. package/dist/cjs/stzh-menu_2.cjs.entry.js.map +1 -1
  57. package/dist/cjs/stzh-overlay.cjs.entry.js +1 -1
  58. package/dist/cjs/stzh-overlay.cjs.entry.js.map +1 -1
  59. package/dist/cjs/stzh-pagebottom.cjs.entry.js +1 -1
  60. package/dist/cjs/stzh-pagetitle-hero.cjs.entry.js +1 -1
  61. package/dist/cjs/stzh-pagetitle.cjs.entry.js +1 -1
  62. package/dist/cjs/stzh-pagination.cjs.entry.js +86 -0
  63. package/dist/cjs/stzh-pagination.cjs.entry.js.map +1 -0
  64. package/dist/cjs/stzh-popover.cjs.entry.js +1 -1
  65. package/dist/cjs/stzh-readspeaker.cjs.entry.js +1 -1
  66. package/dist/cjs/stzh-richtext_2.cjs.entry.js +86 -0
  67. package/dist/cjs/stzh-richtext_2.cjs.entry.js.map +1 -0
  68. package/dist/cjs/stzh-row.cjs.entry.js +1 -1
  69. package/dist/cjs/stzh-row.cjs.entry.js.map +1 -1
  70. package/dist/cjs/stzh-section.cjs.entry.js +1 -1
  71. package/dist/cjs/stzh-section.cjs.entry.js.map +1 -1
  72. package/dist/cjs/stzh-share.cjs.entry.js +7 -21
  73. package/dist/cjs/stzh-share.cjs.entry.js.map +1 -1
  74. package/dist/cjs/stzh-skin-portal-mitwirken.cjs.entry.js +1 -1
  75. package/dist/cjs/stzh-skin-portal-mitwirken.cjs.entry.js.map +1 -1
  76. package/dist/cjs/stzh-space.cjs.entry.js +1 -1
  77. package/dist/cjs/stzh-space.cjs.entry.js.map +1 -1
  78. package/dist/cjs/stzh-table.cjs.entry.js +6 -4
  79. package/dist/cjs/stzh-table.cjs.entry.js.map +1 -1
  80. package/dist/cjs/stzh-textandimage.cjs.entry.js +1 -1
  81. package/dist/cjs/stzh-toggle.cjs.entry.js +1 -1
  82. package/dist/cjs/stzh-tooltip.cjs.entry.js +1 -1
  83. package/dist/cjs/stzh-upload.cjs.entry.js +1 -1
  84. package/dist/cjs/stzh-vbz-majorticker.cjs.entry.js +1 -1
  85. package/dist/cjs/stzh-vspace.cjs.entry.js +1 -1
  86. package/dist/cjs/stzh-vspace.cjs.entry.js.map +1 -1
  87. package/dist/cjs/{utils-a2ff9f84.js → utils-916583be.js} +7 -1
  88. package/dist/cjs/utils-916583be.js.map +1 -0
  89. package/dist/collection/assets/i18n/de.json +8 -1
  90. package/dist/collection/assets/i18n/en.json +8 -1
  91. package/dist/collection/collection-manifest.json +1 -0
  92. package/dist/collection/components/stzh-amount/stzh-amount.css +1 -1
  93. package/dist/collection/components/stzh-amount/stzh-amount.js +21 -2
  94. package/dist/collection/components/stzh-amount/stzh-amount.js.map +1 -1
  95. package/dist/collection/components/stzh-button/stzh-button.js +6 -6
  96. package/dist/collection/components/stzh-button/stzh-button.js.map +1 -1
  97. package/dist/collection/components/stzh-buttongroup/stzh-buttongroup.css +11 -6
  98. package/dist/collection/components/stzh-card/stzh-card.css +30 -28
  99. package/dist/collection/components/stzh-card/stzh-card.js +30 -7
  100. package/dist/collection/components/stzh-card/stzh-card.js.map +1 -1
  101. package/dist/collection/components/stzh-cell/stzh-cell.css +0 -5
  102. package/dist/collection/components/stzh-chip/stzh-chip.js +2 -2
  103. package/dist/collection/components/stzh-chip/stzh-chip.js.map +1 -1
  104. package/dist/collection/components/stzh-container/stzh-container.css +0 -8
  105. package/dist/collection/components/stzh-cspace/stzh-cspace.css +103 -133
  106. package/dist/collection/components/stzh-cspace/stzh-cspace.js +46 -2
  107. package/dist/collection/components/stzh-cspace/stzh-cspace.js.map +1 -1
  108. package/dist/collection/components/stzh-datalist-item/stzh-datalist-item.css +5 -0
  109. package/dist/collection/components/stzh-datalist-item/stzh-datalist-item.js +12 -8
  110. package/dist/collection/components/stzh-datalist-item/stzh-datalist-item.js.map +1 -1
  111. package/dist/collection/components/stzh-datatable/stzh-datatable.css +21 -0
  112. package/dist/collection/components/stzh-datatable/stzh-datatable.js +85 -7
  113. package/dist/collection/components/stzh-datatable/stzh-datatable.js.map +1 -1
  114. package/dist/collection/components/stzh-datatable/stzh-datatable.stories.js +41 -14
  115. package/dist/collection/components/stzh-datepicker/stzh-datepicker.js +22 -3
  116. package/dist/collection/components/stzh-datepicker/stzh-datepicker.js.map +1 -1
  117. package/dist/collection/components/stzh-dialog/stzh-dialog.js +1 -1
  118. package/dist/collection/components/stzh-dialog/stzh-dialog.js.map +1 -1
  119. package/dist/collection/components/stzh-dropdown/stzh-dropdown.css +12 -0
  120. package/dist/collection/components/stzh-dropdown/stzh-dropdown.js +20 -0
  121. package/dist/collection/components/stzh-dropdown/stzh-dropdown.js.map +1 -1
  122. package/dist/collection/components/stzh-hspace/stzh-hspace.css +0 -6
  123. package/dist/collection/components/stzh-input/stzh-input.css +16 -1
  124. package/dist/collection/components/stzh-input/stzh-input.js +20 -0
  125. package/dist/collection/components/stzh-input/stzh-input.js.map +1 -1
  126. package/dist/collection/components/stzh-link/stzh-link.js +4 -4
  127. package/dist/collection/components/stzh-link/stzh-link.js.map +1 -1
  128. package/dist/collection/components/stzh-menu-item/stzh-menu-item.js +2 -2
  129. package/dist/collection/components/stzh-menu-item/stzh-menu-item.js.map +1 -1
  130. package/dist/collection/components/stzh-menu-item/stzh-menu-item.stories.js +2 -2
  131. package/dist/collection/components/stzh-overlay/stzh-overlay.js +1 -1
  132. package/dist/collection/components/stzh-overlay/stzh-overlay.js.map +1 -1
  133. package/dist/collection/components/stzh-pagination/stzh-pagination.css +127 -0
  134. package/dist/collection/components/stzh-pagination/stzh-pagination.js +437 -0
  135. package/dist/collection/components/stzh-pagination/stzh-pagination.js.map +1 -0
  136. package/dist/collection/components/stzh-pagination/stzh-pagination.localization.js +2 -0
  137. package/dist/collection/components/stzh-pagination/stzh-pagination.localization.js.map +1 -0
  138. package/dist/collection/components/stzh-pagination/stzh-pagination.stories.js +44 -0
  139. package/dist/collection/components/stzh-richtext/stzh-richtext.css +4 -2
  140. package/dist/collection/components/stzh-richtext/stzh-richtext.js +38 -0
  141. package/dist/collection/components/stzh-richtext/stzh-richtext.js.map +1 -1
  142. package/dist/collection/components/stzh-richtext/stzh-richtext.stories.js +2 -2
  143. package/dist/collection/components/stzh-row/stzh-row.css +0 -5
  144. package/dist/collection/components/stzh-section/stzh-section.css +0 -6
  145. package/dist/collection/components/stzh-share/stzh-share.js +6 -20
  146. package/dist/collection/components/stzh-share/stzh-share.js.map +1 -1
  147. package/dist/collection/components/stzh-skin-portal-mitwirken/stzh-skin-portal-mitwirken.css +53 -0
  148. package/dist/collection/components/stzh-sortable/stzh-sortable.js +1 -1
  149. package/dist/collection/components/stzh-sortable/stzh-sortable.js.map +1 -1
  150. package/dist/collection/components/stzh-space/stzh-space.css +0 -6
  151. package/dist/collection/components/stzh-table/stzh-table.css +21 -0
  152. package/dist/collection/components/stzh-table/stzh-table.js +7 -3
  153. package/dist/collection/components/stzh-table/stzh-table.js.map +1 -1
  154. package/dist/collection/components/stzh-table/stzh-table.stories.js +259 -4
  155. package/dist/collection/components/stzh-textandimage/stzh-textandimage.stories.js +1 -1
  156. package/dist/collection/components/stzh-vspace/stzh-vspace.css +0 -6
  157. package/dist/collection/index.js.map +1 -1
  158. package/dist/collection/utils/string-utils.js +12 -0
  159. package/dist/collection/utils/string-utils.js.map +1 -1
  160. package/dist/collection/utils/utils.js +5 -0
  161. package/dist/collection/utils/utils.js.map +1 -1
  162. package/dist/components/index.js +1 -1
  163. package/dist/components/index2.js.map +1 -1
  164. package/dist/components/string-utils.js +13 -1
  165. package/dist/components/string-utils.js.map +1 -1
  166. package/dist/components/stzh-amount.js +5 -3
  167. package/dist/components/stzh-amount.js.map +1 -1
  168. package/dist/components/stzh-button2.js +6 -6
  169. package/dist/components/stzh-button2.js.map +1 -1
  170. package/dist/components/stzh-buttongroup2.js +1 -1
  171. package/dist/components/stzh-buttongroup2.js.map +1 -1
  172. package/dist/components/stzh-card2.js +31 -8
  173. package/dist/components/stzh-card2.js.map +1 -1
  174. package/dist/components/stzh-cell.js +1 -1
  175. package/dist/components/stzh-cell.js.map +1 -1
  176. package/dist/components/stzh-chip2.js +2 -2
  177. package/dist/components/stzh-chip2.js.map +1 -1
  178. package/dist/components/stzh-contact.js +18 -12
  179. package/dist/components/stzh-contact.js.map +1 -1
  180. package/dist/components/stzh-container.js +1 -1
  181. package/dist/components/stzh-container.js.map +1 -1
  182. package/dist/components/stzh-cspace.js +8 -2
  183. package/dist/components/stzh-cspace.js.map +1 -1
  184. package/dist/components/stzh-datalist-item2.js +23 -14
  185. package/dist/components/stzh-datalist-item2.js.map +1 -1
  186. package/dist/components/stzh-datalist2.js +14 -8
  187. package/dist/components/stzh-datalist2.js.map +1 -1
  188. package/dist/components/stzh-datatable.js +129 -18
  189. package/dist/components/stzh-datatable.js.map +1 -1
  190. package/dist/components/stzh-datepicker2.js +5 -3
  191. package/dist/components/stzh-datepicker2.js.map +1 -1
  192. package/dist/components/stzh-dialog.js +1 -1
  193. package/dist/components/stzh-dialog.js.map +1 -1
  194. package/dist/components/stzh-dropdown2.js +4 -1
  195. package/dist/components/stzh-dropdown2.js.map +1 -1
  196. package/dist/components/stzh-hspace.js +1 -1
  197. package/dist/components/stzh-hspace.js.map +1 -1
  198. package/dist/components/stzh-input2.js +4 -1
  199. package/dist/components/stzh-input2.js.map +1 -1
  200. package/dist/components/stzh-link2.js +4 -4
  201. package/dist/components/stzh-link2.js.map +1 -1
  202. package/dist/components/stzh-menu-item2.js +2 -2
  203. package/dist/components/stzh-menu-item2.js.map +1 -1
  204. package/dist/components/stzh-overlay.js +1 -1
  205. package/dist/components/stzh-overlay.js.map +1 -1
  206. package/dist/components/stzh-pagination.d.ts +11 -0
  207. package/dist/components/stzh-pagination.js +8 -0
  208. package/dist/components/stzh-pagination.js.map +1 -0
  209. package/dist/components/stzh-pagination2.js +151 -0
  210. package/dist/components/stzh-pagination2.js.map +1 -0
  211. package/dist/components/stzh-richtext2.js +5 -1
  212. package/dist/components/stzh-richtext2.js.map +1 -1
  213. package/dist/components/stzh-row.js +1 -1
  214. package/dist/components/stzh-row.js.map +1 -1
  215. package/dist/components/stzh-section.js +1 -1
  216. package/dist/components/stzh-section.js.map +1 -1
  217. package/dist/components/stzh-share2.js +6 -20
  218. package/dist/components/stzh-share2.js.map +1 -1
  219. package/dist/components/stzh-sitemap.js +16 -10
  220. package/dist/components/stzh-sitemap.js.map +1 -1
  221. package/dist/components/stzh-skin-portal-mitwirken.js +1 -1
  222. package/dist/components/stzh-skin-portal-mitwirken.js.map +1 -1
  223. package/dist/components/stzh-sortable2.js +1 -1
  224. package/dist/components/stzh-sortable2.js.map +1 -1
  225. package/dist/components/stzh-space.js +1 -1
  226. package/dist/components/stzh-space.js.map +1 -1
  227. package/dist/components/stzh-table.js +6 -4
  228. package/dist/components/stzh-table.js.map +1 -1
  229. package/dist/components/stzh-vbz-majorticker.js +1 -1
  230. package/dist/components/stzh-vspace.js +1 -1
  231. package/dist/components/stzh-vspace.js.map +1 -1
  232. package/dist/components/utils.js +6 -1
  233. package/dist/components/utils.js.map +1 -1
  234. package/dist/esm/{app-globals-5ab947af.js → app-globals-07e538f3.js} +2 -2
  235. package/dist/esm/{app-globals-5ab947af.js.map → app-globals-07e538f3.js.map} +1 -1
  236. package/dist/esm/index.js.map +1 -1
  237. package/dist/esm/loader.js +2 -2
  238. package/dist/esm/string-utils-3ffa8d6b.js +29 -0
  239. package/dist/esm/string-utils-3ffa8d6b.js.map +1 -0
  240. package/dist/esm/stzh-actions.entry.js +1 -1
  241. package/dist/esm/{stzh-sortable.entry.js → stzh-actionset_4.entry.js} +566 -5
  242. package/dist/esm/stzh-actionset_4.entry.js.map +1 -0
  243. package/dist/esm/stzh-amount.entry.js +4 -3
  244. package/dist/esm/stzh-amount.entry.js.map +1 -1
  245. package/dist/esm/stzh-appnav.entry.js +1 -1
  246. package/dist/esm/stzh-audio.entry.js +1 -1
  247. package/dist/esm/stzh-badge_3.entry.js +7 -7
  248. package/dist/esm/stzh-badge_3.entry.js.map +1 -1
  249. package/dist/esm/stzh-buttongroup.entry.js +1 -1
  250. package/dist/esm/stzh-buttongroup.entry.js.map +1 -1
  251. package/dist/esm/stzh-carousel.entry.js +1 -1
  252. package/dist/esm/stzh-cell.entry.js +1 -1
  253. package/dist/esm/stzh-cell.entry.js.map +1 -1
  254. package/dist/esm/stzh-checkbox.entry.js +1 -1
  255. package/dist/esm/stzh-checkboxgroup.entry.js +2 -2
  256. package/dist/esm/stzh-chip-select.entry.js +145 -0
  257. package/dist/esm/stzh-chip-select.entry.js.map +1 -0
  258. package/dist/esm/stzh-chip_2.entry.js +2 -2
  259. package/dist/esm/stzh-chip_2.entry.js.map +1 -1
  260. package/dist/esm/stzh-components.js +2 -2
  261. package/dist/esm/stzh-contact.entry.js +1 -1
  262. package/dist/esm/stzh-container.entry.js +1 -1
  263. package/dist/esm/stzh-container.entry.js.map +1 -1
  264. package/dist/esm/stzh-cspace.entry.js +3 -1
  265. package/dist/esm/stzh-cspace.entry.js.map +1 -1
  266. package/dist/esm/stzh-datalist_2.entry.js +11 -8
  267. package/dist/esm/stzh-datalist_2.entry.js.map +1 -1
  268. package/dist/esm/stzh-datatable.entry.js +32 -8
  269. package/dist/esm/stzh-datatable.entry.js.map +1 -1
  270. package/dist/esm/stzh-datepicker_3.entry.js +6 -5
  271. package/dist/esm/stzh-datepicker_3.entry.js.map +1 -1
  272. package/dist/esm/stzh-details.entry.js +1 -1
  273. package/dist/esm/stzh-dialog.entry.js +2 -2
  274. package/dist/esm/stzh-dialog.entry.js.map +1 -1
  275. package/dist/esm/stzh-dropdown.entry.js +4 -2
  276. package/dist/esm/stzh-dropdown.entry.js.map +1 -1
  277. package/dist/esm/stzh-figure.entry.js +1 -1
  278. package/dist/esm/stzh-footer.entry.js +1 -1
  279. package/dist/esm/stzh-ghettobox.entry.js +104 -0
  280. package/dist/esm/stzh-ghettobox.entry.js.map +1 -0
  281. package/dist/esm/stzh-header.entry.js +1 -1
  282. package/dist/esm/stzh-hspace.entry.js +1 -1
  283. package/dist/esm/stzh-hspace.entry.js.map +1 -1
  284. package/dist/esm/stzh-input.entry.js +4 -2
  285. package/dist/esm/stzh-input.entry.js.map +1 -1
  286. package/dist/esm/stzh-link.entry.js +5 -5
  287. package/dist/esm/stzh-link.entry.js.map +1 -1
  288. package/dist/esm/stzh-menu_2.entry.js +3 -3
  289. package/dist/esm/stzh-menu_2.entry.js.map +1 -1
  290. package/dist/esm/stzh-overlay.entry.js +1 -1
  291. package/dist/esm/stzh-overlay.entry.js.map +1 -1
  292. package/dist/esm/stzh-pagebottom.entry.js +1 -1
  293. package/dist/esm/stzh-pagetitle-hero.entry.js +1 -1
  294. package/dist/esm/stzh-pagetitle.entry.js +1 -1
  295. package/dist/esm/stzh-pagination.entry.js +82 -0
  296. package/dist/esm/stzh-pagination.entry.js.map +1 -0
  297. package/dist/esm/stzh-popover.entry.js +1 -1
  298. package/dist/esm/stzh-readspeaker.entry.js +1 -1
  299. package/dist/esm/stzh-richtext_2.entry.js +81 -0
  300. package/dist/esm/stzh-richtext_2.entry.js.map +1 -0
  301. package/dist/esm/stzh-row.entry.js +1 -1
  302. package/dist/esm/stzh-row.entry.js.map +1 -1
  303. package/dist/esm/stzh-section.entry.js +1 -1
  304. package/dist/esm/stzh-section.entry.js.map +1 -1
  305. package/dist/esm/stzh-share.entry.js +6 -20
  306. package/dist/esm/stzh-share.entry.js.map +1 -1
  307. package/dist/esm/stzh-skin-portal-mitwirken.entry.js +1 -1
  308. package/dist/esm/stzh-skin-portal-mitwirken.entry.js.map +1 -1
  309. package/dist/esm/stzh-space.entry.js +1 -1
  310. package/dist/esm/stzh-space.entry.js.map +1 -1
  311. package/dist/esm/stzh-table.entry.js +6 -4
  312. package/dist/esm/stzh-table.entry.js.map +1 -1
  313. package/dist/esm/stzh-textandimage.entry.js +1 -1
  314. package/dist/esm/stzh-toggle.entry.js +1 -1
  315. package/dist/esm/stzh-tooltip.entry.js +1 -1
  316. package/dist/esm/stzh-upload.entry.js +1 -1
  317. package/dist/esm/stzh-vbz-majorticker.entry.js +1 -1
  318. package/dist/esm/stzh-vspace.entry.js +1 -1
  319. package/dist/esm/stzh-vspace.entry.js.map +1 -1
  320. package/dist/esm/{utils-51148d9a.js → utils-8f264f12.js} +7 -2
  321. package/dist/esm/utils-8f264f12.js.map +1 -0
  322. package/dist/esm-es5/{app-globals-5ab947af.js → app-globals-07e538f3.js} +2 -2
  323. package/dist/esm-es5/{app-globals-5ab947af.js.map → app-globals-07e538f3.js.map} +1 -1
  324. package/dist/esm-es5/index.js.map +1 -1
  325. package/dist/esm-es5/loader.js +1 -1
  326. package/dist/esm-es5/loader.js.map +1 -1
  327. package/dist/esm-es5/string-utils-3ffa8d6b.js +2 -0
  328. package/dist/esm-es5/string-utils-3ffa8d6b.js.map +1 -0
  329. package/dist/esm-es5/stzh-actions.entry.js +1 -1
  330. package/dist/esm-es5/stzh-actionset_4.entry.js +8 -0
  331. package/dist/esm-es5/stzh-actionset_4.entry.js.map +1 -0
  332. package/dist/esm-es5/stzh-amount.entry.js +1 -1
  333. package/dist/esm-es5/stzh-amount.entry.js.map +1 -1
  334. package/dist/esm-es5/stzh-appnav.entry.js +1 -1
  335. package/dist/esm-es5/stzh-audio.entry.js +1 -1
  336. package/dist/esm-es5/stzh-badge_3.entry.js +1 -1
  337. package/dist/esm-es5/stzh-badge_3.entry.js.map +1 -1
  338. package/dist/esm-es5/stzh-buttongroup.entry.js +1 -1
  339. package/dist/esm-es5/stzh-buttongroup.entry.js.map +1 -1
  340. package/dist/esm-es5/stzh-carousel.entry.js +1 -1
  341. package/dist/esm-es5/stzh-cell.entry.js +1 -1
  342. package/dist/esm-es5/stzh-cell.entry.js.map +1 -1
  343. package/dist/esm-es5/stzh-checkbox.entry.js +1 -1
  344. package/dist/esm-es5/stzh-checkboxgroup.entry.js +1 -1
  345. package/dist/esm-es5/stzh-chip-select.entry.js +2 -0
  346. package/dist/esm-es5/stzh-chip-select.entry.js.map +1 -0
  347. package/dist/esm-es5/stzh-chip_2.entry.js +1 -1
  348. package/dist/esm-es5/stzh-chip_2.entry.js.map +1 -1
  349. package/dist/esm-es5/stzh-components.js +1 -1
  350. package/dist/esm-es5/stzh-components.js.map +1 -1
  351. package/dist/esm-es5/stzh-contact.entry.js +1 -1
  352. package/dist/esm-es5/stzh-container.entry.js +1 -1
  353. package/dist/esm-es5/stzh-container.entry.js.map +1 -1
  354. package/dist/esm-es5/stzh-cspace.entry.js +1 -1
  355. package/dist/esm-es5/stzh-cspace.entry.js.map +1 -1
  356. package/dist/esm-es5/stzh-datalist_2.entry.js +1 -1
  357. package/dist/esm-es5/stzh-datalist_2.entry.js.map +1 -1
  358. package/dist/esm-es5/stzh-datatable.entry.js +1 -1
  359. package/dist/esm-es5/stzh-datatable.entry.js.map +1 -1
  360. package/dist/esm-es5/stzh-datepicker_3.entry.js +1 -1
  361. package/dist/esm-es5/stzh-datepicker_3.entry.js.map +1 -1
  362. package/dist/esm-es5/stzh-details.entry.js +1 -1
  363. package/dist/esm-es5/stzh-dialog.entry.js +1 -1
  364. package/dist/esm-es5/stzh-dialog.entry.js.map +1 -1
  365. package/dist/esm-es5/stzh-dropdown.entry.js +2 -2
  366. package/dist/esm-es5/stzh-dropdown.entry.js.map +1 -1
  367. package/dist/esm-es5/stzh-figure.entry.js +1 -1
  368. package/dist/esm-es5/stzh-footer.entry.js +1 -1
  369. package/dist/esm-es5/stzh-ghettobox.entry.js +2 -0
  370. package/dist/esm-es5/stzh-ghettobox.entry.js.map +1 -0
  371. package/dist/esm-es5/stzh-header.entry.js +1 -1
  372. package/dist/esm-es5/stzh-hspace.entry.js +1 -1
  373. package/dist/esm-es5/stzh-hspace.entry.js.map +1 -1
  374. package/dist/esm-es5/stzh-input.entry.js +1 -1
  375. package/dist/esm-es5/stzh-input.entry.js.map +1 -1
  376. package/dist/esm-es5/stzh-link.entry.js +1 -1
  377. package/dist/esm-es5/stzh-link.entry.js.map +1 -1
  378. package/dist/esm-es5/stzh-menu_2.entry.js +1 -1
  379. package/dist/esm-es5/stzh-menu_2.entry.js.map +1 -1
  380. package/dist/esm-es5/stzh-overlay.entry.js +1 -1
  381. package/dist/esm-es5/stzh-overlay.entry.js.map +1 -1
  382. package/dist/esm-es5/stzh-pagebottom.entry.js +1 -1
  383. package/dist/esm-es5/stzh-pagetitle-hero.entry.js +1 -1
  384. package/dist/esm-es5/stzh-pagetitle.entry.js +1 -1
  385. package/dist/esm-es5/stzh-pagination.entry.js +2 -0
  386. package/dist/esm-es5/stzh-pagination.entry.js.map +1 -0
  387. package/dist/esm-es5/stzh-popover.entry.js +1 -1
  388. package/dist/esm-es5/stzh-readspeaker.entry.js +1 -1
  389. package/dist/esm-es5/stzh-richtext_2.entry.js +2 -0
  390. package/dist/esm-es5/stzh-richtext_2.entry.js.map +1 -0
  391. package/dist/esm-es5/stzh-row.entry.js +1 -1
  392. package/dist/esm-es5/stzh-row.entry.js.map +1 -1
  393. package/dist/esm-es5/stzh-section.entry.js +1 -1
  394. package/dist/esm-es5/stzh-section.entry.js.map +1 -1
  395. package/dist/esm-es5/stzh-share.entry.js +1 -1
  396. package/dist/esm-es5/stzh-share.entry.js.map +1 -1
  397. package/dist/esm-es5/stzh-skin-portal-mitwirken.entry.js +1 -1
  398. package/dist/esm-es5/stzh-skin-portal-mitwirken.entry.js.map +1 -1
  399. package/dist/esm-es5/stzh-space.entry.js +1 -1
  400. package/dist/esm-es5/stzh-space.entry.js.map +1 -1
  401. package/dist/esm-es5/stzh-table.entry.js +1 -1
  402. package/dist/esm-es5/stzh-table.entry.js.map +1 -1
  403. package/dist/esm-es5/stzh-textandimage.entry.js +1 -1
  404. package/dist/esm-es5/stzh-toggle.entry.js +1 -1
  405. package/dist/esm-es5/stzh-tooltip.entry.js +1 -1
  406. package/dist/esm-es5/stzh-upload.entry.js +1 -1
  407. package/dist/esm-es5/stzh-vbz-majorticker.entry.js +1 -1
  408. package/dist/esm-es5/stzh-vspace.entry.js +1 -1
  409. package/dist/esm-es5/stzh-vspace.entry.js.map +1 -1
  410. package/dist/esm-es5/utils-8f264f12.js +2 -0
  411. package/dist/esm-es5/utils-8f264f12.js.map +1 -0
  412. package/dist/stzh-components/assets/i18n/de.json +8 -1
  413. package/dist/stzh-components/assets/i18n/en.json +8 -1
  414. package/dist/stzh-components/index.esm.js.map +1 -1
  415. package/dist/stzh-components/{p-f23f2408.system.entry.js → p-09445156.system.entry.js} +2 -2
  416. package/dist/stzh-components/p-0b5fbb86.system.entry.js +2 -0
  417. package/dist/stzh-components/p-0b5fbb86.system.entry.js.map +1 -0
  418. package/dist/stzh-components/{p-94a5e295.system.entry.js → p-0d302a14.system.entry.js} +2 -2
  419. package/dist/stzh-components/p-1016d03d.system.entry.js +2 -0
  420. package/dist/stzh-components/p-1016d03d.system.entry.js.map +1 -0
  421. package/dist/stzh-components/p-1760118e.entry.js +2 -0
  422. package/dist/stzh-components/{p-a1c02179.entry.js.map → p-1760118e.entry.js.map} +1 -1
  423. package/dist/stzh-components/p-1ad68cac.system.entry.js +2 -0
  424. package/dist/stzh-components/p-1ad68cac.system.entry.js.map +1 -0
  425. package/dist/stzh-components/{p-c901fe72.system.entry.js → p-1d683f3a.system.entry.js} +3 -3
  426. package/dist/stzh-components/p-1d683f3a.system.entry.js.map +1 -0
  427. package/dist/stzh-components/p-1e5f556b.system.entry.js +2 -0
  428. package/dist/stzh-components/p-1e5f556b.system.entry.js.map +1 -0
  429. package/dist/stzh-components/p-1fad78a6.entry.js +2 -0
  430. package/dist/stzh-components/{p-5ee43b56.entry.js.map → p-1fad78a6.entry.js.map} +1 -1
  431. package/dist/stzh-components/p-22a2f4c1.system.js +2 -0
  432. package/dist/stzh-components/p-22a2f4c1.system.js.map +1 -0
  433. package/dist/stzh-components/{p-39a4904e.system.entry.js → p-2614251e.system.entry.js} +2 -2
  434. package/dist/stzh-components/{p-8b62ec27.js → p-26ec7788.js} +2 -2
  435. package/dist/stzh-components/{p-8b62ec27.js.map → p-26ec7788.js.map} +1 -1
  436. package/dist/stzh-components/p-2705720b.entry.js +2 -0
  437. package/dist/stzh-components/p-2705720b.entry.js.map +1 -0
  438. package/dist/stzh-components/{p-799548c4.system.entry.js → p-27489e46.system.entry.js} +2 -2
  439. package/dist/stzh-components/{p-9f4f3882.system.entry.js → p-2d777867.system.entry.js} +2 -2
  440. package/dist/stzh-components/{p-9f4f3882.system.entry.js.map → p-2d777867.system.entry.js.map} +1 -1
  441. package/dist/stzh-components/{p-29ed53a9.system.entry.js → p-2dd983a9.system.entry.js} +2 -2
  442. package/dist/stzh-components/{p-cc1a6af1.system.entry.js → p-2ec243e8.system.entry.js} +2 -2
  443. package/dist/stzh-components/{p-cd0f7b10.entry.js → p-33da1a1c.entry.js} +2 -2
  444. package/dist/stzh-components/p-35a328cc.system.entry.js +2 -0
  445. package/dist/stzh-components/p-35a328cc.system.entry.js.map +1 -0
  446. package/dist/stzh-components/p-3f72c05a.system.js +2 -0
  447. package/dist/stzh-components/p-3f72c05a.system.js.map +1 -0
  448. package/dist/stzh-components/p-40694e20.system.entry.js +2 -0
  449. package/dist/stzh-components/p-40694e20.system.entry.js.map +1 -0
  450. package/dist/stzh-components/{p-6608126b.entry.js → p-4325de93.entry.js} +2 -2
  451. package/dist/stzh-components/{p-bc997ce2.entry.js → p-432d3ec4.entry.js} +2 -2
  452. package/dist/stzh-components/{p-bc997ce2.entry.js.map → p-432d3ec4.entry.js.map} +1 -1
  453. package/dist/stzh-components/{p-517af258.system.entry.js → p-444f765a.system.entry.js} +2 -2
  454. package/dist/stzh-components/p-4bcc414d.system.entry.js +2 -0
  455. package/dist/stzh-components/p-4bcc414d.system.entry.js.map +1 -0
  456. package/dist/stzh-components/{p-9d46101e.entry.js → p-4c4a05b3.entry.js} +2 -2
  457. package/dist/stzh-components/{p-9d46101e.entry.js.map → p-4c4a05b3.entry.js.map} +1 -1
  458. package/dist/stzh-components/{p-7b297848.system.entry.js → p-50652c05.system.entry.js} +2 -2
  459. package/dist/stzh-components/{p-a8c92707.system.entry.js → p-509b0e4c.system.entry.js} +2 -2
  460. package/dist/stzh-components/p-51ccda11.system.entry.js +2 -0
  461. package/dist/stzh-components/p-51ccda11.system.entry.js.map +1 -0
  462. package/dist/stzh-components/{p-a2b49ad8.entry.js → p-52bcb3ab.entry.js} +2 -2
  463. package/dist/stzh-components/{p-4cd7c872.system.entry.js → p-5af33d37.system.entry.js} +2 -2
  464. package/dist/stzh-components/{p-8cb7e2da.system.entry.js → p-5bceda21.system.entry.js} +2 -2
  465. package/dist/stzh-components/{p-c0f971f2.entry.js → p-5df47c3a.entry.js} +8 -8
  466. package/dist/stzh-components/p-5df47c3a.entry.js.map +1 -0
  467. package/dist/stzh-components/{p-edef74c8.system.entry.js → p-62ca262c.system.entry.js} +2 -2
  468. package/dist/stzh-components/{p-edef74c8.system.entry.js.map → p-62ca262c.system.entry.js.map} +1 -1
  469. package/dist/stzh-components/{p-c2a06b4d.system.entry.js → p-62e0ad8d.system.entry.js} +2 -2
  470. package/dist/stzh-components/{p-c2a06b4d.system.entry.js.map → p-62e0ad8d.system.entry.js.map} +1 -1
  471. package/dist/stzh-components/p-67f50e81.system.entry.js +2 -0
  472. package/dist/stzh-components/p-67f50e81.system.entry.js.map +1 -0
  473. package/dist/stzh-components/p-68b00da7.system.entry.js +2 -0
  474. package/dist/stzh-components/p-68b00da7.system.entry.js.map +1 -0
  475. package/dist/stzh-components/{p-eca073df.system.entry.js → p-6ac4713f.system.entry.js} +2 -2
  476. package/dist/stzh-components/{p-b8ad5f47.system.entry.js → p-709bb264.system.entry.js} +2 -2
  477. package/dist/stzh-components/{p-3e5da137.entry.js → p-7463c7b5.entry.js} +2 -2
  478. package/dist/stzh-components/p-75fa2483.entry.js +2 -0
  479. package/dist/stzh-components/p-75fa2483.entry.js.map +1 -0
  480. package/dist/stzh-components/{p-562f4dfa.entry.js → p-78f78684.entry.js} +2 -2
  481. package/dist/stzh-components/p-7992047b.entry.js +2 -0
  482. package/dist/stzh-components/p-7992047b.entry.js.map +1 -0
  483. package/dist/stzh-components/p-7ac51980.system.entry.js +2 -0
  484. package/dist/stzh-components/p-7ac51980.system.entry.js.map +1 -0
  485. package/dist/stzh-components/p-7e5587ee.entry.js +2 -0
  486. package/dist/stzh-components/p-7e5587ee.entry.js.map +1 -0
  487. package/dist/stzh-components/p-8225341e.entry.js +2 -0
  488. package/dist/stzh-components/p-8225341e.entry.js.map +1 -0
  489. package/dist/stzh-components/{p-3dea2f45.entry.js → p-849ec693.entry.js} +2 -2
  490. package/dist/stzh-components/{p-f5c99792.system.entry.js → p-8547ae9e.system.entry.js} +2 -2
  491. package/dist/stzh-components/{p-f5c99792.system.entry.js.map → p-8547ae9e.system.entry.js.map} +1 -1
  492. package/dist/stzh-components/{p-2615433f.system.entry.js → p-88440469.system.entry.js} +2 -2
  493. package/dist/stzh-components/{p-2615433f.system.entry.js.map → p-88440469.system.entry.js.map} +1 -1
  494. package/dist/stzh-components/{p-3aa5623c.entry.js → p-89562c7e.entry.js} +2 -2
  495. package/dist/stzh-components/{p-0f71e85f.entry.js → p-8a44987c.entry.js} +2 -2
  496. package/dist/stzh-components/{p-0f71e85f.entry.js.map → p-8a44987c.entry.js.map} +1 -1
  497. package/dist/stzh-components/p-8a58fa64.entry.js +2 -0
  498. package/dist/stzh-components/p-8a58fa64.entry.js.map +1 -0
  499. package/dist/stzh-components/p-8eaac610.entry.js +2 -0
  500. package/dist/stzh-components/p-8eaac610.entry.js.map +1 -0
  501. package/dist/stzh-components/{p-3184a123.system.entry.js → p-8f6c5346.system.entry.js} +2 -2
  502. package/dist/stzh-components/{p-3184a123.system.entry.js.map → p-8f6c5346.system.entry.js.map} +1 -1
  503. package/dist/stzh-components/{p-45572515.entry.js → p-916f8386.entry.js} +2 -2
  504. package/dist/stzh-components/p-9705d27e.system.entry.js +2 -0
  505. package/dist/stzh-components/{p-9fe69be8.system.entry.js.map → p-9705d27e.system.entry.js.map} +1 -1
  506. package/dist/stzh-components/{p-2d25bcc8.entry.js → p-979390db.entry.js} +2 -2
  507. package/dist/stzh-components/{p-ffdd9cab.system.js → p-9b4e4b9d.system.js} +2 -2
  508. package/dist/stzh-components/{p-ffdd9cab.system.js.map → p-9b4e4b9d.system.js.map} +1 -1
  509. package/dist/stzh-components/p-9c428351.entry.js +2 -0
  510. package/dist/stzh-components/p-9c428351.entry.js.map +1 -0
  511. package/dist/stzh-components/{p-70d7389a.entry.js → p-9f2332f6.entry.js} +2 -2
  512. package/dist/stzh-components/{p-70d7389a.entry.js.map → p-9f2332f6.entry.js.map} +1 -1
  513. package/dist/stzh-components/p-9faae333.entry.js +2 -0
  514. package/dist/stzh-components/p-9faae333.entry.js.map +1 -0
  515. package/dist/stzh-components/{p-e2ff2ef4.entry.js → p-a0008fa2.entry.js} +2 -2
  516. package/dist/stzh-components/{p-05b9e4c2.system.entry.js → p-a26cd855.system.entry.js} +2 -2
  517. package/dist/stzh-components/{p-b792ea2e.system.entry.js → p-a2d5846c.system.entry.js} +2 -2
  518. package/dist/stzh-components/{p-6c219530.entry.js → p-a8e1b13c.entry.js} +2 -2
  519. package/dist/stzh-components/{p-4a299f84.entry.js → p-acbe3680.entry.js} +2 -2
  520. package/dist/stzh-components/p-afdf3a08.system.entry.js +2 -0
  521. package/dist/stzh-components/p-afdf3a08.system.entry.js.map +1 -0
  522. package/dist/stzh-components/{p-35cbff3f.entry.js → p-affbfe00.entry.js} +2 -2
  523. package/dist/stzh-components/p-b33a79ba.system.entry.js +2 -0
  524. package/dist/stzh-components/p-b33a79ba.system.entry.js.map +1 -0
  525. package/dist/stzh-components/{p-7772c262.entry.js → p-b5531053.entry.js} +2 -2
  526. package/dist/stzh-components/{p-bf069354.entry.js → p-b61c752e.entry.js} +2 -2
  527. package/dist/stzh-components/{p-bf069354.entry.js.map → p-b61c752e.entry.js.map} +1 -1
  528. package/dist/stzh-components/p-b989646a.entry.js +2 -0
  529. package/dist/stzh-components/p-b989646a.entry.js.map +1 -0
  530. package/dist/stzh-components/p-bd7f6761.entry.js +2 -0
  531. package/dist/stzh-components/p-bd7f6761.entry.js.map +1 -0
  532. package/dist/stzh-components/p-bda21265.system.entry.js +8 -0
  533. package/dist/stzh-components/p-bda21265.system.entry.js.map +1 -0
  534. package/dist/stzh-components/{p-f599025e.system.entry.js → p-c0aa52aa.system.entry.js} +2 -2
  535. package/dist/stzh-components/p-c2615e7c.system.entry.js +2 -0
  536. package/dist/{esm-es5/stzh-ghettobox_2.entry.js.map → stzh-components/p-c2615e7c.system.entry.js.map} +1 -1
  537. package/dist/stzh-components/{p-d5b4d345.entry.js → p-c323f19e.entry.js} +2 -2
  538. package/dist/stzh-components/p-c323f19e.entry.js.map +1 -0
  539. package/dist/stzh-components/p-c64a7018.system.entry.js +2 -0
  540. package/dist/stzh-components/p-c64a7018.system.entry.js.map +1 -0
  541. package/dist/stzh-components/p-ca6d7215.entry.js +2 -0
  542. package/dist/stzh-components/p-ca6d7215.entry.js.map +1 -0
  543. package/dist/stzh-components/p-d6ffd97e.entry.js +2 -0
  544. package/dist/stzh-components/p-d6ffd97e.entry.js.map +1 -0
  545. package/dist/stzh-components/{p-fefcd0e6.entry.js → p-d7a7560a.entry.js} +2 -2
  546. package/dist/stzh-components/{p-87b4549c.system.entry.js → p-dad99bd2.system.entry.js} +2 -2
  547. package/dist/stzh-components/p-daf17eae.entry.js +2 -0
  548. package/dist/stzh-components/p-daf17eae.entry.js.map +1 -0
  549. package/dist/stzh-components/p-dd137812.entry.js +8 -0
  550. package/dist/stzh-components/p-dd137812.entry.js.map +1 -0
  551. package/dist/stzh-components/{p-b05c240b.system.entry.js → p-e16ee236.system.entry.js} +2 -2
  552. package/dist/stzh-components/p-e5781c90.system.entry.js +2 -0
  553. package/dist/stzh-components/p-e5781c90.system.entry.js.map +1 -0
  554. package/dist/stzh-components/p-e606314e.system.entry.js +2 -0
  555. package/dist/stzh-components/p-e606314e.system.entry.js.map +1 -0
  556. package/dist/stzh-components/{p-bcd5b20e.entry.js → p-e7454abb.entry.js} +2 -2
  557. package/dist/stzh-components/p-e787179c.js +2 -0
  558. package/dist/stzh-components/p-e787179c.js.map +1 -0
  559. package/dist/stzh-components/p-e7d4542e.entry.js +2 -0
  560. package/dist/stzh-components/p-e7d4542e.entry.js.map +1 -0
  561. package/dist/stzh-components/p-eaa65f52.system.js.map +1 -1
  562. package/dist/stzh-components/p-eab77a09.system.entry.js +2 -0
  563. package/dist/stzh-components/p-eab77a09.system.entry.js.map +1 -0
  564. package/dist/stzh-components/{p-6d097e82.system.entry.js → p-ebe979a3.system.entry.js} +2 -2
  565. package/dist/stzh-components/{p-9b7d4e8d.entry.js → p-ef4c12ac.entry.js} +2 -2
  566. package/dist/stzh-components/p-f02d484d.system.js +2 -0
  567. package/dist/stzh-components/{p-b7d68fca.system.js.map → p-f02d484d.system.js.map} +1 -1
  568. package/dist/stzh-components/{p-3cb43903.entry.js → p-f0ac9730.entry.js} +2 -2
  569. package/dist/stzh-components/p-f43f7434.entry.js +2 -0
  570. package/dist/stzh-components/p-f43f7434.entry.js.map +1 -0
  571. package/dist/stzh-components/p-f4ec861e.entry.js +2 -0
  572. package/dist/stzh-components/{p-14e782cb.entry.js.map → p-f4ec861e.entry.js.map} +1 -1
  573. package/dist/stzh-components/{p-8d695d3e.system.entry.js → p-f65b5145.system.entry.js} +2 -2
  574. package/dist/stzh-components/{p-b82351f0.system.entry.js → p-f665752d.system.entry.js} +2 -2
  575. package/dist/stzh-components/p-f879bc5a.system.entry.js +2 -0
  576. package/dist/stzh-components/p-f879bc5a.system.entry.js.map +1 -0
  577. package/dist/stzh-components/{p-c3b260a1.entry.js → p-fb12ec57.entry.js} +2 -2
  578. package/dist/stzh-components/p-fb36e3be.entry.js +2 -0
  579. package/dist/stzh-components/{p-df9460ae.system.entry.js.map → p-fb36e3be.entry.js.map} +1 -1
  580. package/dist/stzh-components/p-fc339100.js +2 -0
  581. package/dist/stzh-components/p-fc339100.js.map +1 -0
  582. package/dist/stzh-components/{p-52e52b49.entry.js → p-fd97e87d.entry.js} +2 -2
  583. package/dist/stzh-components/p-fdabe05c.entry.js +2 -0
  584. package/dist/stzh-components/p-fdabe05c.entry.js.map +1 -0
  585. package/dist/stzh-components/p-fdb1fd0a.entry.js +2 -0
  586. package/dist/stzh-components/p-fdb1fd0a.entry.js.map +1 -0
  587. package/dist/stzh-components/{p-80d581ac.system.entry.js → p-fece12c0.system.entry.js} +2 -2
  588. package/dist/stzh-components/p-fece12c0.system.entry.js.map +1 -0
  589. package/dist/stzh-components/stzh-components.css +740 -1
  590. package/dist/stzh-components/stzh-components.esm.js +1 -1
  591. package/dist/stzh-components/stzh-components.esm.js.map +1 -1
  592. package/dist/stzh-components/stzh-components.js +1 -1
  593. package/dist/types/components/stzh-cspace/stzh-cspace.d.ts +4 -0
  594. package/dist/types/components/stzh-pagination/stzh-pagination.localization.d.ts +8 -0
  595. package/dist/types/components.d.ts +251 -4
  596. package/dist/types/index.d.ts +6 -0
  597. package/dist/types/utils/string-utils.d.ts +1 -0
  598. package/dist/types/utils/utils.d.ts +1 -0
  599. package/dist/vscode-data.json +125 -3
  600. package/package.json +1 -1
  601. package/dist/cjs/string-utils-a867b99d.js.map +0 -1
  602. package/dist/cjs/stzh-actionset.cjs.entry.js +0 -173
  603. package/dist/cjs/stzh-actionset.cjs.entry.js.map +0 -1
  604. package/dist/cjs/stzh-card_3.cjs.entry.js +0 -528
  605. package/dist/cjs/stzh-card_3.cjs.entry.js.map +0 -1
  606. package/dist/cjs/stzh-ghettobox_2.cjs.entry.js +0 -157
  607. package/dist/cjs/stzh-ghettobox_2.cjs.entry.js.map +0 -1
  608. package/dist/cjs/stzh-sortable.cjs.entry.js.map +0 -1
  609. package/dist/cjs/stzh-status.cjs.entry.js +0 -34
  610. package/dist/cjs/stzh-status.cjs.entry.js.map +0 -1
  611. package/dist/cjs/utils-a2ff9f84.js.map +0 -1
  612. package/dist/esm/string-utils-f98ee4e8.js +0 -17
  613. package/dist/esm/string-utils-f98ee4e8.js.map +0 -1
  614. package/dist/esm/stzh-actionset.entry.js +0 -169
  615. package/dist/esm/stzh-actionset.entry.js.map +0 -1
  616. package/dist/esm/stzh-card_3.entry.js +0 -522
  617. package/dist/esm/stzh-card_3.entry.js.map +0 -1
  618. package/dist/esm/stzh-ghettobox_2.entry.js +0 -152
  619. package/dist/esm/stzh-ghettobox_2.entry.js.map +0 -1
  620. package/dist/esm/stzh-sortable.entry.js.map +0 -1
  621. package/dist/esm/stzh-status.entry.js +0 -30
  622. package/dist/esm/stzh-status.entry.js.map +0 -1
  623. package/dist/esm/utils-51148d9a.js.map +0 -1
  624. package/dist/esm-es5/string-utils-f98ee4e8.js +0 -2
  625. package/dist/esm-es5/string-utils-f98ee4e8.js.map +0 -1
  626. package/dist/esm-es5/stzh-actionset.entry.js +0 -2
  627. package/dist/esm-es5/stzh-actionset.entry.js.map +0 -1
  628. package/dist/esm-es5/stzh-card_3.entry.js +0 -2
  629. package/dist/esm-es5/stzh-card_3.entry.js.map +0 -1
  630. package/dist/esm-es5/stzh-ghettobox_2.entry.js +0 -2
  631. package/dist/esm-es5/stzh-sortable.entry.js +0 -8
  632. package/dist/esm-es5/stzh-sortable.entry.js.map +0 -1
  633. package/dist/esm-es5/stzh-status.entry.js +0 -2
  634. package/dist/esm-es5/stzh-status.entry.js.map +0 -1
  635. package/dist/esm-es5/utils-51148d9a.js +0 -2
  636. package/dist/esm-es5/utils-51148d9a.js.map +0 -1
  637. package/dist/stzh-components/p-0515de95.system.entry.js +0 -2
  638. package/dist/stzh-components/p-0515de95.system.entry.js.map +0 -1
  639. package/dist/stzh-components/p-07c0f4ce.entry.js +0 -2
  640. package/dist/stzh-components/p-07c0f4ce.entry.js.map +0 -1
  641. package/dist/stzh-components/p-09191103.system.entry.js +0 -2
  642. package/dist/stzh-components/p-09191103.system.entry.js.map +0 -1
  643. package/dist/stzh-components/p-0e6889d6.system.entry.js +0 -8
  644. package/dist/stzh-components/p-0e6889d6.system.entry.js.map +0 -1
  645. package/dist/stzh-components/p-14e782cb.entry.js +0 -2
  646. package/dist/stzh-components/p-172ba9ba.entry.js +0 -8
  647. package/dist/stzh-components/p-172ba9ba.entry.js.map +0 -1
  648. package/dist/stzh-components/p-2907f1b5.entry.js +0 -2
  649. package/dist/stzh-components/p-2907f1b5.entry.js.map +0 -1
  650. package/dist/stzh-components/p-2f3add2f.system.entry.js +0 -2
  651. package/dist/stzh-components/p-2f3add2f.system.entry.js.map +0 -1
  652. package/dist/stzh-components/p-3290296f.entry.js +0 -2
  653. package/dist/stzh-components/p-3290296f.entry.js.map +0 -1
  654. package/dist/stzh-components/p-343694cb.system.entry.js +0 -2
  655. package/dist/stzh-components/p-343694cb.system.entry.js.map +0 -1
  656. package/dist/stzh-components/p-36b1004d.entry.js +0 -2
  657. package/dist/stzh-components/p-36b1004d.entry.js.map +0 -1
  658. package/dist/stzh-components/p-3d056a49.entry.js +0 -2
  659. package/dist/stzh-components/p-3d056a49.entry.js.map +0 -1
  660. package/dist/stzh-components/p-402ea6f4.entry.js +0 -2
  661. package/dist/stzh-components/p-402ea6f4.entry.js.map +0 -1
  662. package/dist/stzh-components/p-4468e033.system.entry.js +0 -2
  663. package/dist/stzh-components/p-4468e033.system.entry.js.map +0 -1
  664. package/dist/stzh-components/p-53b84310.system.entry.js +0 -2
  665. package/dist/stzh-components/p-53b84310.system.entry.js.map +0 -1
  666. package/dist/stzh-components/p-55061908.entry.js +0 -2
  667. package/dist/stzh-components/p-55061908.entry.js.map +0 -1
  668. package/dist/stzh-components/p-57ba4050.system.entry.js +0 -2
  669. package/dist/stzh-components/p-57ba4050.system.entry.js.map +0 -1
  670. package/dist/stzh-components/p-5aa96b49.system.entry.js +0 -2
  671. package/dist/stzh-components/p-5aa96b49.system.entry.js.map +0 -1
  672. package/dist/stzh-components/p-5c697491.js +0 -2
  673. package/dist/stzh-components/p-5c697491.js.map +0 -1
  674. package/dist/stzh-components/p-5d8ad1f4.system.entry.js +0 -2
  675. package/dist/stzh-components/p-5d8ad1f4.system.entry.js.map +0 -1
  676. package/dist/stzh-components/p-5ee43b56.entry.js +0 -2
  677. package/dist/stzh-components/p-62188444.entry.js +0 -2
  678. package/dist/stzh-components/p-62188444.entry.js.map +0 -1
  679. package/dist/stzh-components/p-693c611c.entry.js +0 -2
  680. package/dist/stzh-components/p-693c611c.entry.js.map +0 -1
  681. package/dist/stzh-components/p-72c69a2e.entry.js +0 -2
  682. package/dist/stzh-components/p-72c69a2e.entry.js.map +0 -1
  683. package/dist/stzh-components/p-78071d97.entry.js +0 -2
  684. package/dist/stzh-components/p-78071d97.entry.js.map +0 -1
  685. package/dist/stzh-components/p-7dc517db.entry.js +0 -2
  686. package/dist/stzh-components/p-7dc517db.entry.js.map +0 -1
  687. package/dist/stzh-components/p-80d581ac.system.entry.js.map +0 -1
  688. package/dist/stzh-components/p-82e886d4.entry.js +0 -2
  689. package/dist/stzh-components/p-82e886d4.entry.js.map +0 -1
  690. package/dist/stzh-components/p-9fe69be8.system.entry.js +0 -2
  691. package/dist/stzh-components/p-a003aa96.system.entry.js +0 -2
  692. package/dist/stzh-components/p-a003aa96.system.entry.js.map +0 -1
  693. package/dist/stzh-components/p-a1c02179.entry.js +0 -2
  694. package/dist/stzh-components/p-a2bdc528.system.entry.js +0 -2
  695. package/dist/stzh-components/p-a2bdc528.system.entry.js.map +0 -1
  696. package/dist/stzh-components/p-a2c076b8.system.entry.js +0 -2
  697. package/dist/stzh-components/p-a2c076b8.system.entry.js.map +0 -1
  698. package/dist/stzh-components/p-a8ccb843.entry.js +0 -2
  699. package/dist/stzh-components/p-a8ccb843.entry.js.map +0 -1
  700. package/dist/stzh-components/p-ab199fd7.system.entry.js +0 -2
  701. package/dist/stzh-components/p-ab199fd7.system.entry.js.map +0 -1
  702. package/dist/stzh-components/p-b295cbcc.system.entry.js +0 -2
  703. package/dist/stzh-components/p-b295cbcc.system.entry.js.map +0 -1
  704. package/dist/stzh-components/p-b5cda655.entry.js +0 -2
  705. package/dist/stzh-components/p-b5cda655.entry.js.map +0 -1
  706. package/dist/stzh-components/p-b7d68fca.system.js +0 -2
  707. package/dist/stzh-components/p-b910e1b7.entry.js +0 -2
  708. package/dist/stzh-components/p-b910e1b7.entry.js.map +0 -1
  709. package/dist/stzh-components/p-c0f971f2.entry.js.map +0 -1
  710. package/dist/stzh-components/p-c901fe72.system.entry.js.map +0 -1
  711. package/dist/stzh-components/p-cb04774b.entry.js +0 -2
  712. package/dist/stzh-components/p-cb04774b.entry.js.map +0 -1
  713. package/dist/stzh-components/p-cc35e963.entry.js +0 -2
  714. package/dist/stzh-components/p-cc35e963.entry.js.map +0 -1
  715. package/dist/stzh-components/p-d3f7e7e2.system.entry.js +0 -2
  716. package/dist/stzh-components/p-d3f7e7e2.system.entry.js.map +0 -1
  717. package/dist/stzh-components/p-d4b7a303.system.js +0 -2
  718. package/dist/stzh-components/p-d4b7a303.system.js.map +0 -1
  719. package/dist/stzh-components/p-d5b4d345.entry.js.map +0 -1
  720. package/dist/stzh-components/p-df9460ae.system.entry.js +0 -2
  721. package/dist/stzh-components/p-e40d6e96.entry.js +0 -2
  722. package/dist/stzh-components/p-e40d6e96.entry.js.map +0 -1
  723. package/dist/stzh-components/p-ebcc510d.system.entry.js +0 -2
  724. package/dist/stzh-components/p-ebcc510d.system.entry.js.map +0 -1
  725. package/dist/stzh-components/p-ee7a68db.js +0 -2
  726. package/dist/stzh-components/p-ee7a68db.js.map +0 -1
  727. package/dist/stzh-components/p-f2d74491.system.entry.js +0 -2
  728. package/dist/stzh-components/p-f2d74491.system.entry.js.map +0 -1
  729. package/dist/stzh-components/p-f58c28ad.system.js +0 -2
  730. package/dist/stzh-components/p-f58c28ad.system.js.map +0 -1
  731. package/dist/stzh-components/p-fda1c56c.system.entry.js +0 -2
  732. package/dist/stzh-components/p-fda1c56c.system.entry.js.map +0 -1
  733. /package/dist/stzh-components/{p-f23f2408.system.entry.js.map → p-09445156.system.entry.js.map} +0 -0
  734. /package/dist/stzh-components/{p-94a5e295.system.entry.js.map → p-0d302a14.system.entry.js.map} +0 -0
  735. /package/dist/stzh-components/{p-39a4904e.system.entry.js.map → p-2614251e.system.entry.js.map} +0 -0
  736. /package/dist/stzh-components/{p-799548c4.system.entry.js.map → p-27489e46.system.entry.js.map} +0 -0
  737. /package/dist/stzh-components/{p-29ed53a9.system.entry.js.map → p-2dd983a9.system.entry.js.map} +0 -0
  738. /package/dist/stzh-components/{p-cc1a6af1.system.entry.js.map → p-2ec243e8.system.entry.js.map} +0 -0
  739. /package/dist/stzh-components/{p-cd0f7b10.entry.js.map → p-33da1a1c.entry.js.map} +0 -0
  740. /package/dist/stzh-components/{p-6608126b.entry.js.map → p-4325de93.entry.js.map} +0 -0
  741. /package/dist/stzh-components/{p-517af258.system.entry.js.map → p-444f765a.system.entry.js.map} +0 -0
  742. /package/dist/stzh-components/{p-7b297848.system.entry.js.map → p-50652c05.system.entry.js.map} +0 -0
  743. /package/dist/stzh-components/{p-a8c92707.system.entry.js.map → p-509b0e4c.system.entry.js.map} +0 -0
  744. /package/dist/stzh-components/{p-a2b49ad8.entry.js.map → p-52bcb3ab.entry.js.map} +0 -0
  745. /package/dist/stzh-components/{p-4cd7c872.system.entry.js.map → p-5af33d37.system.entry.js.map} +0 -0
  746. /package/dist/stzh-components/{p-8cb7e2da.system.entry.js.map → p-5bceda21.system.entry.js.map} +0 -0
  747. /package/dist/stzh-components/{p-eca073df.system.entry.js.map → p-6ac4713f.system.entry.js.map} +0 -0
  748. /package/dist/stzh-components/{p-b8ad5f47.system.entry.js.map → p-709bb264.system.entry.js.map} +0 -0
  749. /package/dist/stzh-components/{p-3e5da137.entry.js.map → p-7463c7b5.entry.js.map} +0 -0
  750. /package/dist/stzh-components/{p-562f4dfa.entry.js.map → p-78f78684.entry.js.map} +0 -0
  751. /package/dist/stzh-components/{p-3dea2f45.entry.js.map → p-849ec693.entry.js.map} +0 -0
  752. /package/dist/stzh-components/{p-3aa5623c.entry.js.map → p-89562c7e.entry.js.map} +0 -0
  753. /package/dist/stzh-components/{p-45572515.entry.js.map → p-916f8386.entry.js.map} +0 -0
  754. /package/dist/stzh-components/{p-2d25bcc8.entry.js.map → p-979390db.entry.js.map} +0 -0
  755. /package/dist/stzh-components/{p-e2ff2ef4.entry.js.map → p-a0008fa2.entry.js.map} +0 -0
  756. /package/dist/stzh-components/{p-05b9e4c2.system.entry.js.map → p-a26cd855.system.entry.js.map} +0 -0
  757. /package/dist/stzh-components/{p-b792ea2e.system.entry.js.map → p-a2d5846c.system.entry.js.map} +0 -0
  758. /package/dist/stzh-components/{p-6c219530.entry.js.map → p-a8e1b13c.entry.js.map} +0 -0
  759. /package/dist/stzh-components/{p-4a299f84.entry.js.map → p-acbe3680.entry.js.map} +0 -0
  760. /package/dist/stzh-components/{p-35cbff3f.entry.js.map → p-affbfe00.entry.js.map} +0 -0
  761. /package/dist/stzh-components/{p-7772c262.entry.js.map → p-b5531053.entry.js.map} +0 -0
  762. /package/dist/stzh-components/{p-f599025e.system.entry.js.map → p-c0aa52aa.system.entry.js.map} +0 -0
  763. /package/dist/stzh-components/{p-fefcd0e6.entry.js.map → p-d7a7560a.entry.js.map} +0 -0
  764. /package/dist/stzh-components/{p-87b4549c.system.entry.js.map → p-dad99bd2.system.entry.js.map} +0 -0
  765. /package/dist/stzh-components/{p-b05c240b.system.entry.js.map → p-e16ee236.system.entry.js.map} +0 -0
  766. /package/dist/stzh-components/{p-bcd5b20e.entry.js.map → p-e7454abb.entry.js.map} +0 -0
  767. /package/dist/stzh-components/{p-6d097e82.system.entry.js.map → p-ebe979a3.system.entry.js.map} +0 -0
  768. /package/dist/stzh-components/{p-9b7d4e8d.entry.js.map → p-ef4c12ac.entry.js.map} +0 -0
  769. /package/dist/stzh-components/{p-3cb43903.entry.js.map → p-f0ac9730.entry.js.map} +0 -0
  770. /package/dist/stzh-components/{p-8d695d3e.system.entry.js.map → p-f65b5145.system.entry.js.map} +0 -0
  771. /package/dist/stzh-components/{p-b82351f0.system.entry.js.map → p-f665752d.system.entry.js.map} +0 -0
  772. /package/dist/stzh-components/{p-c3b260a1.entry.js.map → p-fb12ec57.entry.js.map} +0 -0
  773. /package/dist/stzh-components/{p-52e52b49.entry.js.map → p-fd97e87d.entry.js.map} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, h, F as Fragment, a as Host, g as getElement } from './index-67fd55c9.js';
2
- import { h as hasSlot } from './utils-51148d9a.js';
2
+ import { h as hasSlot } from './utils-8f264f12.js';
3
3
  import { f as fetchTranslations } from './translation-utils-2623783f.js';
4
4
 
5
5
  const stzhLinkCss = "@charset \"UTF-8\";.sc-stzh-link-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-link-h{display:none}.sc-stzh-link-h *.sc-stzh-link,.sc-stzh-link-h *.sc-stzh-link::before,.sc-stzh-link-h *.sc-stzh-link::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}.sc-stzh-link-h{--color:var(--stzh-link-color);--text-decoration-line:underline;--icon-size:var(--stzh-icon-size-medium);--icon-wrapper-height:var(--stzh-link-icon-wrapper-height);--hover-color:var(--stzh-link-hover-color);--hover-text-decoration-line:underline;color:var(--color);display:inline-block}.sc-stzh-link-h .sc-stzh-link-s>stzh-text{--color:initial}[fullwidth].sc-stzh-link-h:not([fullwidth=false]){width:100%;display:block}[size=small].sc-stzh-link-h{--icon-size:var(--stzh-icon-size-small)}[variant=secondary].sc-stzh-link-h{--color:var(--stzh-base-color)}[active].sc-stzh-link-h:not([active=false]){--color:var(--hover-color)}[disabled].sc-stzh-link-h:not([disabled=false]){--color:var(--stzh-color-grey25);--hover-color:var(--stzh-color-grey25)}.sc-stzh-link-h .sc-stzh-link-s>stzh-icon,.stzh-link__icon.sc-stzh-link{--size:var(--icon-size)}.stzh-link.sc-stzh-link{font-size:var(--stzh-font-curve-p1-default-font-size, var(--stzh-font-milli-font-size));line-height:var(--stzh-font-curve-p1-default-text-line-height, var(--stzh-font-milli-text-line-height));letter-spacing:var(--stzh-font-curve-p1-default-text-letter-spacing);font-family:inherit;position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:stretch;justify-content:stretch;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;color:var(--color);-webkit-transition:color var(--stzh-base-transition-animation-speed);transition:color var(--stzh-base-transition-animation-speed);cursor:pointer;width:100%;-webkit-text-decoration-line:none;text-decoration-line:none;background-color:transparent;padding:0;border-radius:var(--stzh-button-border-radius);text-align:left}@media screen and (min-width: 1024px){.stzh-link.sc-stzh-link{font-size:var(--stzh-font-curve-p1-medium-font-size, var(--stzh-font-centi-font-size));line-height:var(--stzh-font-curve-p1-medium-text-line-height, var(--stzh-font-centi-text-line-height));letter-spacing:var(--stzh-font-curve-p1-medium-text-letter-spacing)}}.stzh-link.sc-stzh-link:hover{color:var(--hover-color)}.stzh-link.sc-stzh-link:hover .stzh-link__text.sc-stzh-link{-webkit-text-decoration-line:var(--hover-text-decoration-line);text-decoration-line:var(--hover-text-decoration-line)}.stzh-link__vhidden.sc-stzh-link{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-link__inner.sc-stzh-link{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:1;flex-grow:1}.stzh-link__icon-wrapper.sc-stzh-link{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-negative:0;flex-shrink:0;width:auto;height:var(--icon-wrapper-height)}.stzh-link__text.sc-stzh-link{-webkit-text-decoration-line:var(--text-decoration-line);text-decoration-line:var(--text-decoration-line)}.stzh-link__icon-wrapper.sc-stzh-link:not(:empty)+.stzh-link__text.sc-stzh-link:not(:empty),.stzh-link__text.sc-stzh-link:not(:empty)+.stzh-link__icon-wrapper.sc-stzh-link:not(:empty){margin-left:var(--stzh-space-xxsmall)}.stzh-link__badge.sc-stzh-link{position:absolute;z-index:1;top:0;right:0}.stzh-link--has-icon-only.sc-stzh-link .stzh-link__text.sc-stzh-link{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-link--badge-position-link.sc-stzh-link .stzh-link__icon-wrapper.sc-stzh-link{position:static}.stzh-link__badge.sc-stzh-link,.stzh-link--badge-position-link.sc-stzh-link .stzh-link__badge.sc-stzh-link{top:calc(var(--stzh-space-xxsmall) * -1);right:calc(var(--stzh-space-large) * -1)}.stzh-link--badge-position-icon.stzh-link--has-icon.sc-stzh-link .stzh-link__icon-wrapper.sc-stzh-link{position:relative}.stzh-link--badge-position-icon.stzh-link--has-icon.sc-stzh-link .stzh-link__badge.sc-stzh-link{top:calc(var(--stzh-space-xsmall) * -1);right:calc(var(--stzh-space-small) * -1)}.stzh-link--badge-position-icon.stzh-link--has-icon.stzh-link--has-badge.sc-stzh-link .stzh-link__icon-wrapper.sc-stzh-link+.stzh-link__text.sc-stzh-link:not(:empty){margin-left:var(--stzh-space-small)}.stzh-link--size-small.sc-stzh-link{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height)}.stzh-link--size-inherit.sc-stzh-link{font-size:inherit;line-height:inherit;letter-spacing:inherit}.stzh-link--align-left.sc-stzh-link .stzh-link__inner.sc-stzh-link{-ms-flex-pack:start;justify-content:flex-start}.stzh-link--align-right.sc-stzh-link .stzh-link__inner.sc-stzh-link{-ms-flex-pack:end;justify-content:flex-end}.stzh-link--align-center.sc-stzh-link .stzh-link__inner.sc-stzh-link{-ms-flex-pack:center;justify-content:center}.stzh-link--align-space-between.sc-stzh-link .stzh-link__inner.sc-stzh-link{-ms-flex-pack:justify;justify-content:space-between}.stzh-link--is-disabled.sc-stzh-link{cursor:not-allowed}";
@@ -114,13 +114,13 @@ const StzhLink = class {
114
114
  [`stzh-link--${this.variant}`]: !!this.variant,
115
115
  };
116
116
  return (h(Host, { tabindex: this.disabled ? null : "-1", onFocus: this.onRootFocus }, this.href ?
117
- h("a", { ref: (el) => (this.link = el), href: this.disabled ? null : this.href, download: this.download, rel: this.rel, target: this.target, class: classes, accessKey: this.linkAccesskey, tabindex: this.a11yTabindex, "aria-label": this.a11yLabel, "aria-describedby": this.a11yDescribedby, "aria-disabled": typeof this.a11yDisabled !== "undefined"
117
+ h("a", { ref: (el) => (this.link = el), href: this.disabled ? null : this.href, download: this.download, rel: this.rel, target: this.target, class: classes, accessKey: this.linkAccesskey, tabindex: this.a11yTabindex, "aria-label": this.a11yLabel || null, "aria-describedby": this.a11yDescribedby || null, "aria-disabled": typeof this.a11yDisabled !== "undefined"
118
118
  ? (this.a11yDisabled ? "true" : "false") : null, "aria-expanded": typeof this.a11yExpanded !== "undefined"
119
- ? (this.a11yExpanded ? "true" : "false") : null, "aria-controls": this.a11yControls, onFocus: this.onFocus, onBlur: this.onBlur }, this.renderInner(iconUsed))
119
+ ? (this.a11yExpanded ? "true" : "false") : null, "aria-controls": this.a11yControls || null, onFocus: this.onFocus, onBlur: this.onBlur }, this.renderInner(iconUsed))
120
120
  :
121
- h("button", { ref: (el) => (this.link = el), class: classes, type: this.type, disabled: this.disabled, accessKey: this.linkAccesskey, tabindex: this.a11yTabindex, "aria-label": this.a11yLabel, "aria-describedby": this.a11yDescribedby, "aria-disabled": typeof this.a11yDisabled !== "undefined"
121
+ h("button", { ref: (el) => (this.link = el), class: classes, type: this.type, disabled: this.disabled, accessKey: this.linkAccesskey, tabindex: this.a11yTabindex, "aria-label": this.a11yLabel || null, "aria-describedby": this.a11yDescribedby || null, "aria-disabled": typeof this.a11yDisabled !== "undefined"
122
122
  ? (this.a11yDisabled ? "true" : "false") : null, "aria-expanded": typeof this.a11yExpanded !== "undefined"
123
- ? (this.a11yExpanded ? "true" : "false") : null, "aria-controls": this.a11yControls, onFocus: this.onFocus, onBlur: this.onBlur }, this.renderInner(iconUsed))));
123
+ ? (this.a11yExpanded ? "true" : "false") : null, "aria-controls": this.a11yControls || null, onFocus: this.onFocus, onBlur: this.onBlur }, this.renderInner(iconUsed))));
124
124
  }
125
125
  get element() { return getElement(this); }
126
126
  };
@@ -1 +1 @@
1
- {"file":"stzh-link.entry.js","mappings":";;;;AAAA,MAAM,WAAW,GAAG,6gLAA6gL;;MC6BphL,QAAQ;;;;;IAyGX,mBAAc,GAAY,KAAK,CAAC;IAEhC,gBAAW,GAAG;MACpB,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE;QACxB,IAAI,CAAC,QAAQ,EAAE,CAAC;OACjB;MAED,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC;KAC7B,CAAA;IAEO,YAAO,GAAG,CAAC,KAAiB;MAClC,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC;MAE3B,MAAM,UAAU,GAAG,IAAI,UAAU,CAAC,OAAO,EAAE;QACzC,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,KAAK;QACd,UAAU,EAAE,KAAK;OAClB,CAAC,CAAC;MAEH,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;MACvC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;QAClB,SAAS,EAAE,WAAW;QACtB,aAAa,EAAE,KAAK;OACrB,CAAC,CAAC;KACJ,CAAA;IAEO,WAAM,GAAG,CAAC,KAAiB;MACjC,MAAM,SAAS,GAAG,IAAI,UAAU,CAAC,MAAM,EAAE;QACvC,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,KAAK;QACd,UAAU,EAAE,KAAK;OAClB,CAAC,CAAC;MAEH,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;MACtC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;QACjB,SAAS,EAAE,WAAW;QACtB,aAAa,EAAE,KAAK;OACrB,CAAC,CAAC;KACJ,CAAA;;gBA1IsB,EAAE;wBAGiC,MAAM;gBAGC,SAAS;gBAGnD,EAAE;;k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,OAAO,EACd,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,SAAS,EAAE,IAAI,CAAC,aAAa,EAC7B,QAAQ,EAAE,IAAI,CAAC,YAAY,gBACf,IAAI,CAAC,SAAS,sBACR,IAAI,CAAC,eAAe,mBACvB,OAAO,IAAI,CAAC,YAAY,KAAK,WAAW;eAClD,IAAI,CAAC,YAAY,GAAG,MAAM,GAAG,OAAO,IAAI,IAAI,mBAClC,OAAO,IAAI,CAAC,YAAY,KAAK,WAAW;eAClD,IAAI,CAAC,YAAY,GAAG,MAAM,GAAG,OAAO,IAAI,IAAI,mBAClC,IAAI,CAAC,YAAY,EAChC,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,MAAM,EAAE,IAAI,CAAC,MAAM,IAElB,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CACpB,CAEN,EACP;GACH;;;;;;;","names":[],"sources":["./src/components/stzh-link/stzh-link.scss?tag=stzh-link&encapsulation=scoped","./src/components/stzh-link/stzh-link.tsx"],"sourcesContent":[":host {\n --color: #{$linkColor};\n --text-decoration-line: underline;\n --icon-size: #{iconSize('medium')};\n --icon-wrapper-height: #{$linkIconWrapperHeight};\n\n --hover-color: #{$linkHoverColor};\n --hover-text-decoration-line: underline;\n\n color: var(--color);\n display: inline-block;\n\n ::slotted(stzh-text) {\n --color: initial;\n }\n\n &[fullwidth]:not([fullwidth=\"false\"]) {\n width: 100%;\n display: block;\n }\n\n &[size=\"small\"] {\n --icon-size: #{iconSize('small')};\n }\n\n &[variant=\"secondary\"] {\n --color: #{$baseColor};\n }\n\n &[active]:not([active=\"false\"]) {\n --color: var(--hover-color);\n }\n\n &[disabled]:not([disabled=\"false\"]) {\n --color: #{$colorGrey25};\n --hover-color: #{$colorGrey25};\n }\n}\n\n:host ::slotted(stzh-icon),\n.stzh-link__icon {\n --size: var(--icon-size);\n}\n\n.stzh-link {\n @include fontCurve('p1');\n font-family: inherit;\n position: relative;\n display: flex;\n align-items: center;\n justify-content: stretch;\n appearance: none;\n border: none;\n color: var(--color);\n transition: color $baseTransitionAnimationSpeed;\n cursor: pointer;\n width: 100%;\n text-decoration-line: none;\n background-color: transparent;\n padding: 0;\n border-radius: $buttonBorderRadius;\n text-align: left;\n\n &:hover {\n color: var(--hover-color);\n }\n\n &:hover &__text {\n text-decoration-line: var(--hover-text-decoration-line);\n }\n\n &__vhidden {\n @include visuallyhidden;\n }\n\n &__inner {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-grow: 1;\n }\n\n &__icon-wrapper {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n width: auto;\n height: var(--icon-wrapper-height);\n }\n\n &__text {\n text-decoration-line: var(--text-decoration-line);\n }\n\n &__icon-wrapper:not(:empty) + &__text:not(:empty),\n &__text:not(:empty) + &__icon-wrapper:not(:empty) {\n margin-left: space('xxsmall');\n }\n\n &__badge {\n position: absolute;\n z-index: 1;\n top: 0;\n right: 0;\n }\n\n /* Variant if link only has icon */\n\n &--has-icon-only &__text {\n @include visuallyhidden;\n }\n\n /* Badge positioning variants */\n\n &--badge-position-link &__icon-wrapper {\n position: static;\n }\n\n &__badge,\n &--badge-position-link &__badge {\n top: calc(#{space('xxsmall')} * -1);\n right: calc(#{space('large')} * -1);\n }\n\n &--badge-position-icon#{&}--has-icon &__icon-wrapper {\n position: relative;\n }\n\n &--badge-position-icon#{&}--has-icon &__badge {\n top: calc(#{space('xsmall')} * -1);\n right: calc(#{space('small')} * -1);;\n }\n\n &--badge-position-icon#{&}--has-icon#{&}--has-badge &__icon-wrapper + &__text:not(:empty) {\n margin-left: space('small');\n }\n\n /* Size variants */\n\n &--size-small {\n @include fontSize('micro');\n }\n\n &--size-inherit {\n font-size: inherit;\n line-height: inherit;\n letter-spacing: inherit;\n }\n\n /* Alignment variants */\n\n &--align-left &__inner {\n justify-content: flex-start;\n }\n\n &--align-right &__inner {\n justify-content: flex-end;\n }\n\n &--align-center &__inner {\n justify-content: center;\n }\n\n &--align-space-between &__inner {\n justify-content: space-between;\n }\n\n /* Disabled variant */\n\n &--is-disabled {\n cursor: not-allowed;\n }\n}\n","import {\n Component,\n Host,\n Fragment,\n Element,\n h,\n Prop,\n Method,\n Event,\n EventEmitter\n} from \"@stencil/core\";\n\nimport {\n StzhLinkFocusEvent,\n StzhLinkBlurEvent\n} from \"../../index\";\n\nimport { hasSlot } from \"../../utils/utils\";\nimport { fetchTranslations, StzhLocaleComponent } from \"../../utils/translation-utils\";\n\n/**\n * @slot - Slot for text content\n * @slot icon - Slot for icon element\n */\n@Component({\n tag: \"stzh-link\",\n styleUrl: \"stzh-link.scss\",\n scoped: true\n})\nexport class StzhLink {\n /** Translation strings */\n @Prop() localization: StzhLocaleComponent;\n\n /** Icon (use instead of icon slot) */\n @Prop() icon: string = \"\";\n\n /** Icon Position */\n @Prop({ reflect: true }) iconPosition: \"left\" | \"right\" = \"left\";\n\n /** Size variant */\n @Prop({ reflect: true }) size: \"default\" | \"small\" | \"inherit\" = \"default\";\n\n /** href attribute of the link */\n @Prop() href: string = \"\";\n\n /** Rel (if href is used) */\n @Prop() rel: string;\n\n /** target if the button is used as link (if href used) */\n @Prop() target: string = \"\";\n\n /** Download attribute of link (if `href` used) */\n @Prop() download: string;\n\n /** type of the button, if used as button (if no href used) */\n @Prop() type: \"button\" | \"submit\" | \"reset\" = \"button\";\n\n /** Variant style */\n @Prop({ reflect: true }) variant: \"default\" | \"secondary\" = \"default\";\n\n /** Whether the link is full width */\n @Prop({ reflect: true }) fullwidth: boolean = false;\n\n /** Text alignment */\n @Prop({ reflect: true }) textAlign: \"left\" | \"center\" | \"right\" | \"space-between\" | \"default\" = \"default\";\n\n /** Badge text */\n @Prop() badge: string = \"\";\n\n /** Badge type */\n @Prop({ reflect: true }) badgeType: \"default\" | \"success\" | \"warning\" | \"error\" | \"info\" = \"default\";\n\n /** Whether badge should be displayed empty */\n @Prop({ reflect: true }) badgeEmpty: boolean = false;\n\n /** Badge position */\n @Prop({ reflect: true }) badgePosition: \"icon\" | \"link\" = \"icon\";\n\n /** Disabled status */\n @Prop({ reflect: true }) disabled: boolean = false;\n\n /** Active status */\n @Prop({ reflect: true }) active: boolean = false;\n\n /** Whether only an icon is used inside the link */\n @Prop({ reflect: true }) iconOnly: boolean = false;\n\n /** Label */\n @Prop() label: string = \"\";\n\n /** Access key of link (usually a number e.g. 1) */\n @Prop() linkAccesskey: string;\n\n /** Accessible label for screen readers to replace visible text */\n @Prop({ attribute: \"a11y-label\" }) a11yLabel: string;\n\n /** Id for element which describes the button (this will be overwritten if description prop or slot is used, used by stzh-radiogroup) */\n @Prop({ attribute: \"a11y-describedby\" }) a11yDescribedby: string = \"\";\n\n /** Aria expanded of link/button */\n @Prop({ reflect: true, attribute: \"a11y-expanded\" }) a11yExpanded: boolean;\n\n /** Aria disabled of link/button */\n @Prop({ reflect: true, attribute: \"a11y-disabled\" }) a11yDisabled: boolean;\n\n /** Aria controls of link/button */\n @Prop({ attribute: \"a11y-controls\" }) a11yControls: string;\n\n /** Tabindex of link/button */\n @Prop({ attribute: \"a11y-tabindex\" }) a11yTabindex: string;\n\n /**\n * For Adobe Analytics.\n * Will be rendered as value of `s-object-id` attribute to the link/button element.\n * Default value will be taken from `label` prop or default slot.\n */\n @Prop() analyticsId: string;\n\n @Element() element: HTMLStzhLinkElement;\n\n /** Focus link */\n @Method()\n async setFocus() {\n this.link.focus();\n }\n\n /** Focus event */\n @Event() stzhFocus: EventEmitter<StzhLinkFocusEvent>;\n\n /** Input blur event */\n @Event() stzhBlur: EventEmitter<StzhLinkBlurEvent>;\n\n private link: HTMLButtonElement | HTMLAnchorElement;\n private text: HTMLDivElement;\n private focusedByInput: boolean = false;\n\n private onRootFocus = () => {\n if (!this.focusedByInput) {\n this.setFocus();\n }\n\n this.focusedByInput = false;\n }\n\n private onFocus = (event: FocusEvent) => {\n this.focusedByInput = true;\n\n const focusEvent = new FocusEvent(\"focus\", {\n view: window,\n bubbles: false,\n cancelable: false\n });\n\n this.element.dispatchEvent(focusEvent);\n this.stzhFocus.emit({\n component: \"stzh-link\",\n originalEvent: event\n });\n }\n\n private onBlur = (event: FocusEvent) => {\n const blurEvent = new FocusEvent(\"blur\", {\n view: window,\n bubbles: false,\n cancelable: false\n });\n\n this.element.dispatchEvent(blurEvent);\n this.stzhBlur.emit({\n component: \"stzh-link\",\n originalEvent: event\n });\n }\n\n private renderIcon(): HTMLInputElement {\n return (\n <div class=\"stzh-link__icon-wrapper\">\n {this.icon ?\n <stzh-icon class=\"stzh-link__icon\" name={this.icon}></stzh-icon>\n :\n <slot name=\"icon\"></slot>\n }\n {(this.badge || this.badgeEmpty) &&\n <stzh-badge class=\"stzh-link__badge\" label={this.badge} type={this.badgeType}></stzh-badge>\n }\n </div>\n );\n }\n\n private renderContent(): HTMLDivElement {\n return (\n <div class=\"stzh-link__text\">\n {this.rel && this.rel.includes('external') && <div class=\"stzh-link__vhidden\">{this.localization.$globals.externalLinkLabel}</div>}\n {this.download && <div class=\"stzh-link__vhidden\">{this.localization.$globals.downloadLinkLabel}</div>}\n <div ref={(el) => (this.text = el as HTMLDivElement)}>{this.label ? this.label : <slot></slot>}</div>\n </div>\n );\n }\n\n private renderInner(iconUsed: boolean): DocumentFragment {\n return (\n <Fragment>\n <div class=\"stzh-link__inner\">\n {this.iconPosition === \"left\" && this.renderIcon()}\n {this.renderContent()}\n {this.iconPosition === \"right\" && this.renderIcon()}\n </div>\n {(this.badge || this.badgeEmpty) && !iconUsed &&\n <stzh-badge class=\"stzh-link__badge\" label={this.badge} type={this.badgeType}></stzh-badge>\n }\n </Fragment>\n );\n }\n\n async componentWillLoad() {\n if (!this.localization) {\n this.localization = await fetchTranslations(this.element, \"link\");\n }\n }\n\n componentDidRender() {\n requestAnimationFrame(() => {\n this.link.setAttribute(\"s-object-id\", this.analyticsId || this.text.innerText);\n });\n }\n\n render() {\n const iconUsed = hasSlot(this.element, \"icon\") || !!this.icon;\n const classes = {\n \"stzh-link\": true,\n \"stzh-link--has-icon\": iconUsed,\n \"stzh-link--has-icon-only\": this.iconOnly,\n \"stzh-link--has-badge\": !!this.badge,\n \"stzh-link--is-fullwidth\": this.fullwidth,\n \"stzh-link--is-disabled\": this.disabled,\n \"stzh-link--is-active\": this.active,\n [`stzh-link--badge-position-${this.badgePosition}`]: !!this.badgePosition,\n [`stzh-link--align-${this.textAlign}`]: !!this.textAlign,\n [`stzh-link--size-${this.size}`]: !!this.size,\n [`stzh-link--${this.variant}`]: !!this.variant,\n };\n\n return (\n <Host tabindex={this.disabled ? null : \"-1\"} onFocus={this.onRootFocus}>\n {this.href ?\n <a\n ref={(el) => (this.link = el as HTMLAnchorElement)}\n href={this.disabled ? null : this.href}\n download={this.download}\n rel={this.rel}\n target={this.target}\n class={classes}\n accessKey={this.linkAccesskey}\n tabindex={this.a11yTabindex}\n aria-label={this.a11yLabel}\n aria-describedby={this.a11yDescribedby}\n aria-disabled={typeof this.a11yDisabled !== \"undefined\"\n ? (this.a11yDisabled ? \"true\" : \"false\") : null}\n aria-expanded={typeof this.a11yExpanded !== \"undefined\"\n ? (this.a11yExpanded ? \"true\" : \"false\") : null}\n aria-controls={this.a11yControls}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n >\n {this.renderInner(iconUsed)}\n </a>\n :\n <button\n ref={(el) => (this.link = el as HTMLButtonElement)}\n class={classes}\n type={this.type}\n disabled={this.disabled}\n accessKey={this.linkAccesskey}\n tabindex={this.a11yTabindex}\n aria-label={this.a11yLabel}\n aria-describedby={this.a11yDescribedby}\n aria-disabled={typeof this.a11yDisabled !== \"undefined\"\n ? (this.a11yDisabled ? \"true\" : \"false\") : null}\n aria-expanded={typeof this.a11yExpanded !== \"undefined\"\n ? (this.a11yExpanded ? \"true\" : \"false\") : null}\n aria-controls={this.a11yControls}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n >\n {this.renderInner(iconUsed)}\n </button>\n }\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"stzh-link.entry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EAC7B,QAAQ,EAAE,IAAI,CAAC,YAAY,gBACf,IAAI,CAAC,SAAS,IAAI,IAAI,sBAChB,IAAI,CAAC,eAAe,IAAI,IAAI,mBAC/B,OAAO,IAAI,CAAC,YAAY,KAAK,WAAW;eAClD,IAAI,CAAC,YAAY,GAAG,MAAM,GAAG,OAAO,IAAI,IAAI,mBAClC,OAAO,IAAI,CAAC,YAAY,KAAK,WAAW;eAClD,IAAI,CAAC,YAAY,GAAG,MAAM,GAAG,OAAO,IAAI,IAAI,mBAClC,IAAI,CAAC,YAAY,IAAI,IAAI,EACxC,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,MAAM,EAAE,IAAI,CAAC,MAAM,IAElB,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CACpB,CAEN,EACP;GACH;;;;;;;","names":[],"sources":["./src/components/stzh-link/stzh-link.scss?tag=stzh-link&encapsulation=scoped","./src/components/stzh-link/stzh-link.tsx"],"sourcesContent":[":host {\n --color: #{$linkColor};\n --text-decoration-line: underline;\n --icon-size: #{iconSize('medium')};\n --icon-wrapper-height: #{$linkIconWrapperHeight};\n\n --hover-color: #{$linkHoverColor};\n --hover-text-decoration-line: underline;\n\n color: var(--color);\n display: inline-block;\n\n ::slotted(stzh-text) {\n --color: initial;\n }\n\n &[fullwidth]:not([fullwidth=\"false\"]) {\n width: 100%;\n display: block;\n }\n\n &[size=\"small\"] {\n --icon-size: #{iconSize('small')};\n }\n\n &[variant=\"secondary\"] {\n --color: #{$baseColor};\n }\n\n &[active]:not([active=\"false\"]) {\n --color: var(--hover-color);\n }\n\n &[disabled]:not([disabled=\"false\"]) {\n --color: #{$colorGrey25};\n --hover-color: #{$colorGrey25};\n }\n}\n\n:host ::slotted(stzh-icon),\n.stzh-link__icon {\n --size: var(--icon-size);\n}\n\n.stzh-link {\n @include fontCurve('p1');\n font-family: inherit;\n position: relative;\n display: flex;\n align-items: center;\n justify-content: stretch;\n appearance: none;\n border: none;\n color: var(--color);\n transition: color $baseTransitionAnimationSpeed;\n cursor: pointer;\n width: 100%;\n text-decoration-line: none;\n background-color: transparent;\n padding: 0;\n border-radius: $buttonBorderRadius;\n text-align: left;\n\n &:hover {\n color: var(--hover-color);\n }\n\n &:hover &__text {\n text-decoration-line: var(--hover-text-decoration-line);\n }\n\n &__vhidden {\n @include visuallyhidden;\n }\n\n &__inner {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-grow: 1;\n }\n\n &__icon-wrapper {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n width: auto;\n height: var(--icon-wrapper-height);\n }\n\n &__text {\n text-decoration-line: var(--text-decoration-line);\n }\n\n &__icon-wrapper:not(:empty) + &__text:not(:empty),\n &__text:not(:empty) + &__icon-wrapper:not(:empty) {\n margin-left: space('xxsmall');\n }\n\n &__badge {\n position: absolute;\n z-index: 1;\n top: 0;\n right: 0;\n }\n\n /* Variant if link only has icon */\n\n &--has-icon-only &__text {\n @include visuallyhidden;\n }\n\n /* Badge positioning variants */\n\n &--badge-position-link &__icon-wrapper {\n position: static;\n }\n\n &__badge,\n &--badge-position-link &__badge {\n top: calc(#{space('xxsmall')} * -1);\n right: calc(#{space('large')} * -1);\n }\n\n &--badge-position-icon#{&}--has-icon &__icon-wrapper {\n position: relative;\n }\n\n &--badge-position-icon#{&}--has-icon &__badge {\n top: calc(#{space('xsmall')} * -1);\n right: calc(#{space('small')} * -1);;\n }\n\n &--badge-position-icon#{&}--has-icon#{&}--has-badge &__icon-wrapper + &__text:not(:empty) {\n margin-left: space('small');\n }\n\n /* Size variants */\n\n &--size-small {\n @include fontSize('micro');\n }\n\n &--size-inherit {\n font-size: inherit;\n line-height: inherit;\n letter-spacing: inherit;\n }\n\n /* Alignment variants */\n\n &--align-left &__inner {\n justify-content: flex-start;\n }\n\n &--align-right &__inner {\n justify-content: flex-end;\n }\n\n &--align-center &__inner {\n justify-content: center;\n }\n\n &--align-space-between &__inner {\n justify-content: space-between;\n }\n\n /* Disabled variant */\n\n &--is-disabled {\n cursor: not-allowed;\n }\n}\n","import {\n Component,\n Host,\n Fragment,\n Element,\n h,\n Prop,\n Method,\n Event,\n EventEmitter\n} from \"@stencil/core\";\n\nimport {\n StzhLinkFocusEvent,\n StzhLinkBlurEvent\n} from \"../../index\";\n\nimport { hasSlot } from \"../../utils/utils\";\nimport { fetchTranslations, StzhLocaleComponent } from \"../../utils/translation-utils\";\n\n/**\n * @slot - Slot for text content\n * @slot icon - Slot for icon element\n */\n@Component({\n tag: \"stzh-link\",\n styleUrl: \"stzh-link.scss\",\n scoped: true\n})\nexport class StzhLink {\n /** Translation strings */\n @Prop() localization: StzhLocaleComponent;\n\n /** Icon (use instead of icon slot) */\n @Prop() icon: string = \"\";\n\n /** Icon Position */\n @Prop({ reflect: true }) iconPosition: \"left\" | \"right\" = \"left\";\n\n /** Size variant */\n @Prop({ reflect: true }) size: \"default\" | \"small\" | \"inherit\" = \"default\";\n\n /** href attribute of the link */\n @Prop() href: string = \"\";\n\n /** Rel (if href is used) */\n @Prop() rel: string;\n\n /** target if the button is used as link (if href used) */\n @Prop() target: string = \"\";\n\n /** Download attribute of link (if `href` used) */\n @Prop() download: string;\n\n /** type of the button, if used as button (if no href used) */\n @Prop() type: \"button\" | \"submit\" | \"reset\" = \"button\";\n\n /** Variant style */\n @Prop({ reflect: true }) variant: \"default\" | \"secondary\" = \"default\";\n\n /** Whether the link is full width */\n @Prop({ reflect: true }) fullwidth: boolean = false;\n\n /** Text alignment */\n @Prop({ reflect: true }) textAlign: \"left\" | \"center\" | \"right\" | \"space-between\" | \"default\" = \"default\";\n\n /** Badge text */\n @Prop() badge: string = \"\";\n\n /** Badge type */\n @Prop({ reflect: true }) badgeType: \"default\" | \"success\" | \"warning\" | \"error\" | \"info\" = \"default\";\n\n /** Whether badge should be displayed empty */\n @Prop({ reflect: true }) badgeEmpty: boolean = false;\n\n /** Badge position */\n @Prop({ reflect: true }) badgePosition: \"icon\" | \"link\" = \"icon\";\n\n /** Disabled status */\n @Prop({ reflect: true }) disabled: boolean = false;\n\n /** Active status */\n @Prop({ reflect: true }) active: boolean = false;\n\n /** Whether only an icon is used inside the link */\n @Prop({ reflect: true }) iconOnly: boolean = false;\n\n /** Label */\n @Prop() label: string = \"\";\n\n /** Access key of link (usually a number e.g. 1) */\n @Prop() linkAccesskey: string;\n\n /** Accessible label for screen readers to replace visible text */\n @Prop({ attribute: \"a11y-label\" }) a11yLabel: string;\n\n /** Id for element which describes the button (this will be overwritten if description prop or slot is used, used by stzh-radiogroup) */\n @Prop({ attribute: \"a11y-describedby\" }) a11yDescribedby: string = \"\";\n\n /** Aria expanded of link/button */\n @Prop({ reflect: true, attribute: \"a11y-expanded\" }) a11yExpanded: boolean;\n\n /** Aria disabled of link/button */\n @Prop({ reflect: true, attribute: \"a11y-disabled\" }) a11yDisabled: boolean;\n\n /** Aria controls of link/button */\n @Prop({ attribute: \"a11y-controls\" }) a11yControls: string;\n\n /** Tabindex of link/button */\n @Prop({ attribute: \"a11y-tabindex\" }) a11yTabindex: string;\n\n /**\n * For Adobe Analytics.\n * Will be rendered as value of `s-object-id` attribute to the link/button element.\n * Default value will be taken from `label` prop or default slot.\n */\n @Prop() analyticsId: string;\n\n @Element() element: HTMLStzhLinkElement;\n\n /** Focus link */\n @Method()\n async setFocus() {\n this.link.focus();\n }\n\n /** Focus event */\n @Event() stzhFocus: EventEmitter<StzhLinkFocusEvent>;\n\n /** Input blur event */\n @Event() stzhBlur: EventEmitter<StzhLinkBlurEvent>;\n\n private link: HTMLButtonElement | HTMLAnchorElement;\n private text: HTMLDivElement;\n private focusedByInput: boolean = false;\n\n private onRootFocus = () => {\n if (!this.focusedByInput) {\n this.setFocus();\n }\n\n this.focusedByInput = false;\n }\n\n private onFocus = (event: FocusEvent) => {\n this.focusedByInput = true;\n\n const focusEvent = new FocusEvent(\"focus\", {\n view: window,\n bubbles: false,\n cancelable: false\n });\n\n this.element.dispatchEvent(focusEvent);\n this.stzhFocus.emit({\n component: \"stzh-link\",\n originalEvent: event\n });\n }\n\n private onBlur = (event: FocusEvent) => {\n const blurEvent = new FocusEvent(\"blur\", {\n view: window,\n bubbles: false,\n cancelable: false\n });\n\n this.element.dispatchEvent(blurEvent);\n this.stzhBlur.emit({\n component: \"stzh-link\",\n originalEvent: event\n });\n }\n\n private renderIcon(): HTMLInputElement {\n return (\n <div class=\"stzh-link__icon-wrapper\">\n {this.icon ?\n <stzh-icon class=\"stzh-link__icon\" name={this.icon}></stzh-icon>\n :\n <slot name=\"icon\"></slot>\n }\n {(this.badge || this.badgeEmpty) &&\n <stzh-badge class=\"stzh-link__badge\" label={this.badge} type={this.badgeType}></stzh-badge>\n }\n </div>\n );\n }\n\n private renderContent(): HTMLDivElement {\n return (\n <div class=\"stzh-link__text\">\n {this.rel && this.rel.includes('external') && <div class=\"stzh-link__vhidden\">{this.localization.$globals.externalLinkLabel}</div>}\n {this.download && <div class=\"stzh-link__vhidden\">{this.localization.$globals.downloadLinkLabel}</div>}\n <div ref={(el) => (this.text = el as HTMLDivElement)}>{this.label ? this.label : <slot></slot>}</div>\n </div>\n );\n }\n\n private renderInner(iconUsed: boolean): DocumentFragment {\n return (\n <Fragment>\n <div class=\"stzh-link__inner\">\n {this.iconPosition === \"left\" && this.renderIcon()}\n {this.renderContent()}\n {this.iconPosition === \"right\" && this.renderIcon()}\n </div>\n {(this.badge || this.badgeEmpty) && !iconUsed &&\n <stzh-badge class=\"stzh-link__badge\" label={this.badge} type={this.badgeType}></stzh-badge>\n }\n </Fragment>\n );\n }\n\n async componentWillLoad() {\n if (!this.localization) {\n this.localization = await fetchTranslations(this.element, \"link\");\n }\n }\n\n componentDidRender() {\n requestAnimationFrame(() => {\n this.link.setAttribute(\"s-object-id\", this.analyticsId || this.text.innerText);\n });\n }\n\n render() {\n const iconUsed = hasSlot(this.element, \"icon\") || !!this.icon;\n const classes = {\n \"stzh-link\": true,\n \"stzh-link--has-icon\": iconUsed,\n \"stzh-link--has-icon-only\": this.iconOnly,\n \"stzh-link--has-badge\": !!this.badge,\n \"stzh-link--is-fullwidth\": this.fullwidth,\n \"stzh-link--is-disabled\": this.disabled,\n \"stzh-link--is-active\": this.active,\n [`stzh-link--badge-position-${this.badgePosition}`]: !!this.badgePosition,\n [`stzh-link--align-${this.textAlign}`]: !!this.textAlign,\n [`stzh-link--size-${this.size}`]: !!this.size,\n [`stzh-link--${this.variant}`]: !!this.variant,\n };\n\n return (\n <Host tabindex={this.disabled ? null : \"-1\"} onFocus={this.onRootFocus}>\n {this.href ?\n <a\n ref={(el) => (this.link = el as HTMLAnchorElement)}\n href={this.disabled ? null : this.href}\n download={this.download}\n rel={this.rel}\n target={this.target}\n class={classes}\n accessKey={this.linkAccesskey}\n tabindex={this.a11yTabindex}\n aria-label={this.a11yLabel || null}\n aria-describedby={this.a11yDescribedby || null}\n aria-disabled={typeof this.a11yDisabled !== \"undefined\"\n ? (this.a11yDisabled ? \"true\" : \"false\") : null}\n aria-expanded={typeof this.a11yExpanded !== \"undefined\"\n ? (this.a11yExpanded ? \"true\" : \"false\") : null}\n aria-controls={this.a11yControls || null}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n >\n {this.renderInner(iconUsed)}\n </a>\n :\n <button\n ref={(el) => (this.link = el as HTMLButtonElement)}\n class={classes}\n type={this.type}\n disabled={this.disabled}\n accessKey={this.linkAccesskey}\n tabindex={this.a11yTabindex}\n aria-label={this.a11yLabel || null}\n aria-describedby={this.a11yDescribedby || null}\n aria-disabled={typeof this.a11yDisabled !== \"undefined\"\n ? (this.a11yDisabled ? \"true\" : \"false\") : null}\n aria-expanded={typeof this.a11yExpanded !== \"undefined\"\n ? (this.a11yExpanded ? \"true\" : \"false\") : null}\n aria-controls={this.a11yControls || null}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n >\n {this.renderInner(iconUsed)}\n </button>\n }\n </Host>\n );\n }\n}\n"],"version":3}
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, a as Host, c as createEvent, F as Fragment, g as getElement } from './index-67fd55c9.js';
2
- import { h as hasSlot } from './utils-51148d9a.js';
2
+ import { h as hasSlot } from './utils-8f264f12.js';
3
3
 
4
4
  const stzhMenuCss = ".sc-stzh-menu-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-menu-h{display:none}.sc-stzh-menu-h *.sc-stzh-menu,.sc-stzh-menu-h *.sc-stzh-menu::before,.sc-stzh-menu-h *.sc-stzh-menu::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}.sc-stzh-menu-h .sc-stzh-menu-s>stzh-hr{margin-top:var(--stzh-space-xsmall);margin-bottom:var(--stzh-space-xsmall)}.stzh-menu.sc-stzh-menu{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}";
5
5
 
@@ -91,9 +91,9 @@ const StzhMenuItem = class {
91
91
  "stzh-menu-item--is-active": this.active
92
92
  };
93
93
  return (h(Host, { role: "menuitem", tabindex: this.disabled ? null : "-1", onFocus: this.onRootFocus }, this.href ?
94
- h("a", { ref: (el) => (this.menuItem = el), href: this.disabled ? null : this.href, target: this.target, class: classes, "aria-label": this.a11yLabel, onFocus: this.onFocus, onBlur: this.onBlur }, this.renderInner(iconUsed))
94
+ h("a", { ref: (el) => (this.menuItem = el), href: this.disabled ? null : this.href, target: this.target, class: classes, "aria-label": this.a11yLabel || null, onFocus: this.onFocus, onBlur: this.onBlur }, this.renderInner(iconUsed))
95
95
  :
96
- h("button", { ref: (el) => (this.menuItem = el), class: classes, type: "button", disabled: this.disabled, "aria-label": this.a11yLabel, onFocus: this.onFocus, onBlur: this.onBlur }, this.renderInner(iconUsed))));
96
+ h("button", { ref: (el) => (this.menuItem = el), class: classes, type: "button", disabled: this.disabled, "aria-label": this.a11yLabel || null, onFocus: this.onFocus, onBlur: this.onBlur }, this.renderIn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0B,EAAE,QAAQ;MACpC,2BAA2B,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK;MACzC,6BAA6B,EAAE,IAAI,CAAC,QAAQ;MAC5C,2BAA2B,EAAE,IAAI,CAAC,MAAM;KACzC,CAAC;IAEF,QACE,EAAC,IAAI,IAAC,IAAI,EAAC,UAAU,EAAC,QAAQ,EAAE,IAAI,CAAC,QAAQ,GAAG,IAAI,GAAG,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,WAAW,IACnF,IAAI,CAAC,IAAI;MACR,SACE,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,QAAQ,GAAG,EAAuB,CAAC,EACtD,IAAI,EAAE,IAAI,CAAC,QAAQ,GAAG,IAAI,GAAG,IAAI,CAAC,IAAI,EACtC,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,KAAK,EAAE,OAAO,gBACF,IAAI,CAAC,SAAS,EAC1B,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,MAAM,EAAE,IAAI,CAAC,MAAM,IAElB,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CACzB;;QAEJ,cACE,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,QAAQ,GAAG,EAAuB,CAAC,EACtD,KAAK,EAAE,OAAO,EACd,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAE,IAAI,CAAC,QAAQ,gBACX,IAAI,CAAC,SAAS,EAC1B,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,MAAM,EAAE,IAAI,CAAC,MAAM,IAElB,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CACpB,CAEN,EACP;GACH;;;;;;;","names":[],"sources":["./src/components/stzh-menu/stzh-menu.scss?tag=stzh-menu&encapsulation=scoped","./src/components/stzh-menu/stzh-menu.tsx","./src/components/stzh-menu-item/stzh-menu-item.scss?tag=stzh-menu-item&encapsulation=scoped","./src/components/stzh-menu-item/stzh-menu-item.tsx"],"sourcesContent":[":host {\n ::slotted(stzh-hr) {\n margin-top: space('xsmall');\n margin-bottom: space('xsmall');\n }\n}\n\n.stzh-menu {\n display: flex;\n flex-direction: column;\n}\n","import {\n Component,\n Host,\n h,\n} from \"@stencil/core\";\n\n/**\n * @slot - Slot for `stzh-menu-item` elements\n */\n@Component({\n tag: \"stzh-menu\",\n styleUrl: \"stzh-menu.scss\",\n scoped: true\n})\nexport class StzhMenu {\n render() {\n return (\n <Host role=\"menu\">\n <div class=\"stzh-menu\">\n <slot></slot>\n </div>\n </Host>\n );\n }\n}\n",":host {\n --height: #{$menuItemHeight};\n --color: #{$colorGrey70};\n --background-color: transparent;\n --icon-size: #{iconSize('small')};\n\n --hover-color: #{$colorGrey70};\n --hover-background-color: #{$colorGrey5};\n\n &[active]:not([active=\"false\"]) {\n --color: #{$colorPrimary};\n --hover-color: #{$colorPrimaryHover};\n --hover-background-color: #{$colorPrimary8};\n }\n\n &[disabled]:not([disabled=\"false\"]) {\n --color: #{$colorWhite};\n --background-color: #{$colorGrey13};\n\n --hover-color: #{$colorWhite};\n --hover-background-color: #{$colorGrey13};\n }\n}\n\n:host ::slotted(stzh-icon),\n.stzh-menu-item__icon {\n --size: var(--icon-size);\n}\n\n.stzh-menu-item {\n @include fontSize('micro');\n font-family: inherit;\n display: flex;\n align-items: center;\n justify-content: stretch;\n appearance: none;\n text-decoration-line: none;\n border: none;\n padding: space('xsmall') space('medium');\n padding-left: space('large');\n color: var(--color);\n background-color: var(--background-color);\n width: 100%;\n height: var(--height);\n line-height: var(--height);\n transition-duration: $baseTransitionAnimationSpeed;\n transition-property: color, background-color, border-color;\n cursor: pointer;\n\n &:hover {\n color: var(--hover-color);\n background-color: var(--hover-background-color);\n }\n\n &__icon-wrapper {\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n width: auto;\n height: 1em;\n }\n\n &__badge {\n position: absolute;\n z-index: 1;\n top: calc(#{space('xsmall')} * -1);\n right: calc(#{space('xsmall')} * -1);\n }\n\n &__icon-wrapper + &__text:not(:empty) {\n margin-left: space('xsmall');\n }\n\n &__text {\n @include truncate;\n }\n\n /* Disabled variant */\n\n &--is-disabled {\n cursor: not-allowed;\n }\n}\n","import {\n Component,\n Host,\n h,\n Prop,\n Method,\n Element,\n Fragment,\n Event,\n EventEmitter\n} from \"@stencil/core\";\n\nimport {\n StzhMenuItemFocusEvent,\n StzhMenuItemBlurEvent\n} from \"../../index\";\n\nimport { hasSlot } from \"../../utils/utils\";\n\n/**\n * @slot - Slot for any content\n * @slot icon - Slot for `stzh-icon` element\n */\n@Component({\n tag: \"stzh-menu-item\",\n styleUrl: \"stzh-menu-item.scss\",\n scoped: true\n})\nexport class StzhMenuItem {\n /** Badge (only displayed if `icon` property or icon slot is used) */\n @Prop() badge: string = \"\";\n\n /** Badge type */\n @Prop({ reflect: true }) badgeType: \"default\" | \"success\" | \"warning\" | \"error\" | \"info\" = \"default\";\n\n /** Whether badge should be displayed empty */\n @Prop({ reflect: true }) badgeEmpty: boolean = false;\n\n /** Whether the button is disabled */\n @Prop({ reflect: true }) disabled: boolean = false;\n\n /** Whether the button is active */\n @Prop({ reflect: true }) active: boolean = false;\n\n /** Icon (use instead of icon slot) */\n @Prop() icon: string = \"\";\n\n /** Label */\n @Prop() label: string = \"\";\n\n /** `href` if the button should be used as link */\n @Prop() href: string = \"\";\n\n /** Target if the button is used as link (if `href` used) */\n @Prop() target: string = \"\";\n\n /** Accessible label for screen readers to replace visible text */\n @Prop({ attribute: \"a11y-label\" }) a11yLabel: string;\n\n /**\n * For Adobe Analytics.\n * Will be rendered as value of `s-object-id` attribute to the link/button element.\n * Default value will be taken from `label` prop or default slot.\n */\n @Prop() analyticsId: string;\n\n @Element() element: HTMLStzhMenuItemElement;\n\n /** Focus menu item */\n @Method()\n async setFocus() {\n this.menuItem.focus();\n }\n\n /** Focus event */\n @Event() stzhFocus: EventEmitter<StzhMenuItemFocusEvent>;\n\n /** Input blur event */\n @Event() stzhBlur: EventEmitter<StzhMenuItemBlurEvent>;\n\n private menuItem: HTMLButtonElement | HTMLAnchorElement;\n private text: HTMLDivElement;\n\n private focusedByInput: boolean = false;\n\n private onRootFocus = () => {\n if (!this.focusedByInput) {\n this.setFocus();\n }\n\n this.focusedByInput = false;\n }\n\n private onFocus = (event: FocusEvent) => {\n this.focusedByInput = true;\n\n const focusEvent = new FocusEvent(\"focus\", {\n view: window,\n bubbles: false,\n cancelable: false\n });\n\n this.element.dispatchEvent(focusEvent);\n this.stzhFocus.emit({\n component: \"stzh-menu-item\",\n originalEvent: event\n });\n }\n\n private onBlur = (event: FocusEvent) => {\n const blurEvent = new FocusEvent(\"blur\", {\n view: window,\n bubbles: false,\n cancelable: false\n });\n\n this.element.dispatchEvent(blurEvent);\n this.stzhBlur.emit({\n component: \"stzh-menu-item\",\n originalEvent: event\n });\n }\n\n componentDidRender() {\n requestAnimationFrame(() => {\n this.menuItem.setAttribute(\"s-object-id\", this.analyticsId || this.text.innerText);\n });\n }\n\n private renderInner(iconUsed: boolean): DocumentFragment {\n return (\n <Fragment>\n {iconUsed &&\n <div class=\"stzh-menu-item__icon-wrapper\">\n {this.icon ?\n <stzh-icon class=\"stzh-menu-item__icon\" name={this.icon}></stzh-icon>\n :\n <slot name=\"icon\"></slot>\n }\n {(this.badge || this.badgeEmpty) &&\n <stzh-badge class=\"stzh-menu-item__badge\" label={this.badge} type={this.badgeType}></stzh-badge>\n }\n </div>\n }\n <div\n ref={(el) => (this.text = el as HTMLDivElement)}\n class=\"stzh-menu-item__text\"\n >\n {this.label ? this.label : <slot></slot>}\n </div>\n </Fragment>\n );\n }\n\n render() {\n const iconUsed: boolean = hasSlot(this.element, \"icon\") || !!this.icon;\n const classes = {\n \"stzh-menu-item\": true,\n \"stzh-menu-item--has-icon\": iconUsed,\n \"stzh-menu-item--has-badge\": !!this.badge,\n \"stzh-menu-item--is-disabled\": this.disabled,\n \"stzh-menu-item--is-active\": this.active\n };\n\n return (\n <Host role=\"menuitem\" tabindex={this.disabled ? null : \"-1\"} onFocus={this.onRootFocus}>\n {this.href ?\n <a\n ref={(el) => (this.menuItem = el as HTMLAnchorElement)}\n href={this.disabled ? null : this.href}\n target={this.target}\n class={classes}\n aria-label={this.a11yLabel}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n >\n {this.renderInner(iconUsed)}\n </a>\n :\n <button\n ref={(el) => (this.menuItem = el as HTMLButtonElement)}\n class={classes}\n type=\"button\"\n disabled={this.disabled}\n aria-label={this.a11yLabel}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n >\n {this.renderInner(iconUsed)}\n </button>\n }\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"stzh-menu.stzh-menu-item.entry.js","mappings":";;;AAAA,MAAM,WAAW,GAAG,8vBAA8vB;;MCcrwB,QAAQ;;;;EACnB,MAAM;IACJ,QACE,EAAC,IAAI,IAAC,IAAI,EAAC,MAAM,IACf,WAAK,KAAK,EAAC,WAAW,IACpB,eAAa,CACT,CACD,EACP;GACH;;;;ACvBH,MAAM,eAAe,GAAG,ijGAAijG;;MC4B5jG,YAAY;;;;;IAuDf,mBAAc,GAAY,KAAK,CAAC;IAEhC,gBAAW,GAAG;MACpB,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE;QACxB,IAAI,CAAC,QAAQ,EAAE,CAAC;OACjB;MAED,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC;KAC7B,CAAA;IAEO,YAAO,GAAG,CAAC,KAAiB;MAClC,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC;MAE3B,MAAM,UAAU,GAAG,IAAI,UAAU,CAAC,OAAO,EAAE;QACzC,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,KAAK;QACd,UAAU,EAAE,KAAK;OAClB,CAAC,CAAC;MAEH,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;MACvC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;QAClB,SAAS,EAAE,gBAAgB;QAC3B,aAAa,EAAE,KAAK;OACrB,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EAAE,IAAI,CAAC,OAAO,EACrB,MAAM,EAAE,IAAI,CAAC,MAAM,IAElB,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CACpB,CAEN,EACP;GACH;;;;;;;","names":[],"sources":["./src/components/stzh-menu/stzh-menu.scss?tag=stzh-menu&encapsulation=scoped","./src/components/stzh-menu/stzh-menu.tsx","./src/components/stzh-menu-item/stzh-menu-item.scss?tag=stzh-menu-item&encapsulation=scoped","./src/components/stzh-menu-item/stzh-menu-item.tsx"],"sourcesContent":[":host {\n ::slotted(stzh-hr) {\n margin-top: space('xsmall');\n margin-bottom: space('xsmall');\n }\n}\n\n.stzh-menu {\n display: flex;\n flex-direction: column;\n}\n","import {\n Component,\n Host,\n h,\n} from \"@stencil/core\";\n\n/**\n * @slot - Slot for `stzh-menu-item` elements\n */\n@Component({\n tag: \"stzh-menu\",\n styleUrl: \"stzh-menu.scss\",\n scoped: true\n})\nexport class StzhMenu {\n render() {\n return (\n <Host role=\"menu\">\n <div class=\"stzh-menu\">\n <slot></slot>\n </div>\n </Host>\n );\n }\n}\n",":host {\n --height: #{$menuItemHeight};\n --color: #{$colorGrey70};\n --background-color: transparent;\n --icon-size: #{iconSize('small')};\n\n --hover-color: #{$colorGrey70};\n --hover-background-color: #{$colorGrey5};\n\n &[active]:not([active=\"false\"]) {\n --color: #{$colorPrimary};\n --hover-color: #{$colorPrimaryHover};\n --hover-background-color: #{$colorPrimary8};\n }\n\n &[disabled]:not([disabled=\"false\"]) {\n --color: #{$colorWhite};\n --background-color: #{$colorGrey13};\n\n --hover-color: #{$colorWhite};\n --hover-background-color: #{$colorGrey13};\n }\n}\n\n:host ::slotted(stzh-icon),\n.stzh-menu-item__icon {\n --size: var(--icon-size);\n}\n\n.stzh-menu-item {\n @include fontSize('micro');\n font-family: inherit;\n display: flex;\n align-items: center;\n justify-content: stretch;\n appearance: none;\n text-decoration-line: none;\n border: none;\n padding: space('xsmall') space('medium');\n padding-left: space('large');\n color: var(--color);\n background-color: var(--background-color);\n width: 100%;\n height: var(--height);\n line-height: var(--height);\n transition-duration: $baseTransitionAnimationSpeed;\n transition-property: color, background-color, border-color;\n cursor: pointer;\n\n &:hover {\n color: var(--hover-color);\n background-color: var(--hover-background-color);\n }\n\n &__icon-wrapper {\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n width: auto;\n height: 1em;\n }\n\n &__badge {\n position: absolute;\n z-index: 1;\n top: calc(#{space('xsmall')} * -1);\n right: calc(#{space('xsmall')} * -1);\n }\n\n &__icon-wrapper + &__text:not(:empty) {\n margin-left: space('xsmall');\n }\n\n &__text {\n @include truncate;\n }\n\n /* Disabled variant */\n\n &--is-disabled {\n cursor: not-allowed;\n }\n}\n","import {\n Component,\n Host,\n h,\n Prop,\n Method,\n Element,\n Fragment,\n Event,\n EventEmitter\n} from \"@stencil/core\";\n\nimport {\n StzhMenuItemFocusEvent,\n StzhMenuItemBlurEvent\n} from \"../../index\";\n\nimport { hasSlot } from \"../../utils/utils\";\n\n/**\n * @slot - Slot for any content\n * @slot icon - Slot for `stzh-icon` element\n */\n@Component({\n tag: \"stzh-menu-item\",\n styleUrl: \"stzh-menu-item.scss\",\n scoped: true\n})\nexport class StzhMenuItem {\n /** Badge (only displayed if `icon` property or icon slot is used) */\n @Prop() badge: string = \"\";\n\n /** Badge type */\n @Prop({ reflect: true }) badgeType: \"default\" | \"success\" | \"warning\" | \"error\" | \"info\" = \"default\";\n\n /** Whether badge should be displayed empty */\n @Prop({ reflect: true }) badgeEmpty: boolean = false;\n\n /** Whether the button is disabled */\n @Prop({ reflect: true }) disabled: boolean = false;\n\n /** Whether the button is active */\n @Prop({ reflect: true }) active: boolean = false;\n\n /** Icon (use instead of icon slot) */\n @Prop() icon: string = \"\";\n\n /** Label */\n @Prop() label: string = \"\";\n\n /** `href` if the button should be used as link */\n @Prop() href: string = \"\";\n\n /** Target if the button is used as link (if `href` used) */\n @Prop() target: string = \"\";\n\n /** Accessible label for screen readers to replace visible text */\n @Prop({ attribute: \"a11y-label\" }) a11yLabel: string;\n\n /**\n * For Adobe Analytics.\n * Will be rendered as value of `s-object-id` attribute to the link/button element.\n * Default value will be taken from `label` prop or default slot.\n */\n @Prop() analyticsId: string;\n\n @Element() element: HTMLStzhMenuItemElement;\n\n /** Focus menu item */\n @Method()\n async setFocus() {\n this.menuItem.focus();\n }\n\n /** Focus event */\n @Event() stzhFocus: EventEmitter<StzhMenuItemFocusEvent>;\n\n /** Input blur event */\n @Event() stzhBlur: EventEmitter<StzhMenuItemBlurEvent>;\n\n private menuItem: HTMLButtonElement | HTMLAnchorElement;\n private text: HTMLDivElement;\n\n private focusedByInput: boolean = false;\n\n private onRootFocus = () => {\n if (!this.focusedByInput) {\n this.setFocus();\n }\n\n this.focusedByInput = false;\n }\n\n private onFocus = (event: FocusEvent) => {\n this.focusedByInput = true;\n\n const focusEvent = new FocusEvent(\"focus\", {\n view: window,\n bubbles: false,\n cancelable: false\n });\n\n this.element.dispatchEvent(focusEvent);\n this.stzhFocus.emit({\n component: \"stzh-menu-item\",\n originalEvent: event\n });\n }\n\n private onBlur = (event: FocusEvent) => {\n const blurEvent = new FocusEvent(\"blur\", {\n view: window,\n bubbles: false,\n cancelable: false\n });\n\n this.element.dispatchEvent(blurEvent);\n this.stzhBlur.emit({\n component: \"stzh-menu-item\",\n originalEvent: event\n });\n }\n\n componentDidRender() {\n requestAnimationFrame(() => {\n this.menuItem.setAttribute(\"s-object-id\", this.analyticsId || this.text.innerText);\n });\n }\n\n private renderInner(iconUsed: boolean): DocumentFragment {\n return (\n <Fragment>\n {iconUsed &&\n <div class=\"stzh-menu-item__icon-wrapper\">\n {this.icon ?\n <stzh-icon class=\"stzh-menu-item__icon\" name={this.icon}></stzh-icon>\n :\n <slot name=\"icon\"></slot>\n }\n {(this.badge || this.badgeEmpty) &&\n <stzh-badge class=\"stzh-menu-item__badge\" label={this.badge} type={this.badgeType}></stzh-badge>\n }\n </div>\n }\n <div\n ref={(el) => (this.text = el as HTMLDivElement)}\n class=\"stzh-menu-item__text\"\n >\n {this.label ? this.label : <slot></slot>}\n </div>\n </Fragment>\n );\n }\n\n render() {\n const iconUsed: boolean = hasSlot(this.element, \"icon\") || !!this.icon;\n const classes = {\n \"stzh-menu-item\": true,\n \"stzh-menu-item--has-icon\": iconUsed,\n \"stzh-menu-item--has-badge\": !!this.badge,\n \"stzh-menu-item--is-disabled\": this.disabled,\n \"stzh-menu-item--is-active\": this.active\n };\n\n return (\n <Host role=\"menuitem\" tabindex={this.disabled ? null : \"-1\"} onFocus={this.onRootFocus}>\n {this.href ?\n <a\n ref={(el) => (this.menuItem = el as HTMLAnchorElement)}\n href={this.disabled ? null : this.href}\n target={this.target}\n class={classes}\n aria-label={this.a11yLabel || null}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n >\n {this.renderInner(iconUsed)}\n </a>\n :\n <button\n ref={(el) => (this.menuItem = el as HTMLButtonElement)}\n class={classes}\n type=\"button\"\n disabled={this.disabled}\n aria-label={this.a11yLabel || null}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n >\n {this.renderInner(iconUsed)}\n </button>\n }\n </Host>\n );\n }\n}\n"],"version":3}
@@ -82,7 +82,7 @@ const StzhOverlay = class {
82
82
  "stzh-overlay": true,
83
83
  "stzh-overlay--is-open": this.open
84
84
  };
85
- return (h(Host, null, h("div", { class: classes }, h("div", { class: "stzh-overlay__backdrop" }), h("div", { class: "stzh-overlay__content" }, h("div", { class: "stzh-overlay__content-inner", ref: (el) => (this.dialogElement = el), tabindex: "-1", role: "dialog", "aria-label": this.a11yLabel, "aria-hidden": this.open ? "false" : "true" }, h("slot", null))))));
85
+ return (h(Host, null, h("div", { class: classes }, h("div", { class: "stzh-overlay__backdrop" }), h("div", { class: "stzh-overlay__content" }, h("div", { class: "stzh-overlay__content-inner", ref: (el) => (this.dialogElement = el), tabindex: "-1", role: "dialog", "aria-label": this.a11yLabel || null, "aria-hidden": this.open ? "false" : "true" }, h("slot", null))))));
86
86
  }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KAAK,EAAC,uBAAuB,IAChC,WACE,KAAK,EAAC,6BAA6B,EACnC,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,aAAa,GAAG,EAAoB,CAAC,EACxD,QAAQ,EAAC,IAAI,EACb,IAAI,EAAC,QAAQ,gBACD,IAAI,CAAC,SAAS,iBACb,IAAI,CAAC,IAAI,GAAG,OAAO,GAAG,MAAM,IAEzC,eAAa,CACT,CACF,CACF,CACD,EACP;GACH;;;;;;;","names":[],"sources":["./src/components/stzh-overlay/stzh-overlay.scss?tag=stzh-overlay&encapsulation=scoped","./src/components/stzh-overlay/stzh-overlay.tsx"],"sourcesContent":[":host {\n --backdrop-opacity: 0.8;\n}\n\n.stzh-overlay {\n display: none;\n z-index: $zIndexOverlay;\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n flex-direction: column;\n justify-content: stretch;\n align-items: stretch;\n\n &__backdrop {\n z-index: 1;\n background-color: $colorWhite;\n opacity: var(--backdrop-opacity);\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n }\n\n &__content {\n z-index: 2;\n display: flex;\n flex-direction: column;\n align-items: center;\n position: relative;\n flex-grow: 1;\n overflow: auto;\n }\n\n &__content-inner {\n // center content vertically\n margin-top: auto;\n margin-bottom: auto;\n outline: none;\n }\n\n &--is-open {\n display: flex;\n }\n}\n","import {\n Component,\n Host,\n h,\n Prop,\n Event,\n EventEmitter,\n Method,\n Element\n} from \"@stencil/core\";\n\nimport {\n StzhOverlayOpenEvent,\n StzhOverlayCloseEvent\n} from \"../../index\";\n\nimport { createBaseFocusTrapOptions } from \"../../utils/overlay-utils\";\n\nimport { createFocusTrap, FocusTrap } from 'focus-trap';\n\nconst CLASS_BODY_OPEN = \"stzh-overlay-open\";\n\n/**\n * @slot - Slot for any content\n */\n@Component({\n tag: \"stzh-overlay\",\n styleUrl: \"stzh-overlay.scss\",\n scoped: true\n})\nexport class StzhOverlay {\n /** Whether overlay is open */\n @Prop({ mutable: true }) open: boolean = false;\n\n /** Stay in original position (true) or move to body (false) */\n @Prop() stay: boolean = true;\n\n /** Accessible label for dialog */\n @Prop({ attribute: \"a11y-label\" }) a11yLabel: string = \"\";\n\n /** Dialog open event */\n @Event() stzhOpen: EventEmitter<StzhOverlayOpenEvent>;\n\n /** Dialog close event */\n @Event() stzhClose: EventEmitter<StzhOverlayCloseEvent>;\n\n @Element() element: HTMLStzhOverlayElement;\n\n @Method()\n async show() {\n this.open = true;\n this.stzhOpen.emit({\n component: \"stzh-overlay\"\n });\n }\n\n @Method()\n async hide() {\n this.open = false;\n this.stzhClose.emit({\n component: \"stzh-overlay\"\n });\n }\n\n private trap: FocusTrap;\n private parentElement: HTMLElement;\n private dialogElement: HTMLDivElement;\n\n private getSiblings() {\n if (!this.parentElement) {\n return [];\n }\n\n return Array.from(this.parentElement.children).filter(\n (child) => child !== this.element\n );\n }\n\n private disableSiblings() {\n this.getSiblings().forEach((sibling) => {\n sibling.setAttribute(\"aria-hidden\", \"true\");\n });\n }\n\n private enableSiblings() {\n this.getSiblings().forEach((sibling) => {\n sibling.removeAttribute(\"aria-hidden\");\n });\n }\n\n private dialogShown() {\n document.body.classList.add(CLASS_BODY_OPEN);\n this.disableSiblings();\n\n if (this.trap) {\n this.trap.activate();\n }\n }\n\n private dialogHidden() {\n document.body.classList.remove(CLASS_BODY_OPEN);\n this.enableSiblings();\n\n if (this.trap) {\n this.trap.deactivate();\n }\n }\n\n connectedCallback() {\n if (!this.stay && this.element.parentElement !== document.body) {\n document.body.appendChild(this.element);\n }\n\n this.parentElement = this.element.parentElement;\n }\n\n componentDidRender() {\n this.open ? this.dialogShown() : this.dialogHidden();\n }\n\n componentDidUpdate() {\n this.trap.updateContainerElements(this.element);\n }\n\n componentDidLoad() {\n this.trap = createFocusTrap(this.element, {\n fallbackFocus: this.dialogElement,\n ...createBaseFocusTrapOptions()\n });\n\n if (this.open) {\n this.dialogShown();\n }\n }\n\n disconnectedCallback() {\n this.dialogHidden();\n }\n\n render() {\n const classes = {\n \"stzh-overlay\": true,\n \"stzh-overlay--is-open\": this.open\n };\n\n return (\n <Host>\n <div class={classes}>\n <div class=\"stzh-overlay__backdrop\"></div>\n <div class=\"stzh-overlay__content\">\n <div\n class=\"stzh-overlay__content-inner\"\n ref={(el) => (this.dialogElement = el as HTMLDivElement)}\n tabindex=\"-1\"\n role=\"dialog\"\n aria-label={this.a11yLabel}\n aria-hidden={this.open ? \"false\" : \"true\"}\n >\n <slot></slot>\n </div>\n </div>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"stzh-overlay.entry.js","mappings":";;;;AAAA,MAAM,cAAc,GAAG,g7CAAg7C;;ACoBv8C,MAAM,eAAe,GAAG,mBAAmB,CAAC;MAU/B,WAAW;;;;;gBAEmB,KAAK;gBAGtB,IAAI;qBAG2B,EAAE;;EAWzD,MAAM,IAAI;IACR,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACjB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;MACjB,SAAS,EAAE,cAAc;KAC1B,CAAC,CAAC;GACJ;EAGD,MAAM,IAAI;IACR,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC;IAClB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;MAClB,SAAS,EAAE,cAAc;KAC1B,CAAC,CAAC;GACJ;EAMO,WAAW;IACjB,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE;MACvB,OAAO,EAAE,CAAC;KACX;IAED,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,MAAM,CACnD,CAAC,KAAK,KAAK,KAAK,KAAK,IAAI,CAAC,OAAO,CAClC,CAAC;GACH;EAEO,eAAe;IACrB,IAAI,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,CAAC,OAAO;MACjC,OAAO,CAAC,YAAY,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;KAC7C,CAAC,CAAC;GACJ;EAEO,c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I,CAAC,WAAW,EAAE,CAAC;KACpB;GACF;EAED,oBAAoB;IAClB,IAAI,CAAC,YAAY,EAAE,CAAC;GACrB;EAED,MAAM;IACJ,MAAM,OAAO,GAAG;MACd,cAAc,EAAE,IAAI;MACpB,uBAAuB,EAAE,IAAI,CAAC,IAAI;KACnC,CAAC;IAEF,QACE,EAAC,IAAI,QACH,WAAK,KAAK,EAAE,OAAO,IACjB,WAAK,KAAK,EAAC,wBAAwB,GAAO,EAC1C,WAAK,KAAK,EAAC,uBAAuB,IAChC,WACE,KAAK,EAAC,6BAA6B,EACnC,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,aAAa,GAAG,EAAoB,CAAC,EACxD,QAAQ,EAAC,IAAI,EACb,IAAI,EAAC,QAAQ,gBACD,IAAI,CAAC,SAAS,IAAI,IAAI,iBACrB,IAAI,CAAC,IAAI,GAAG,OAAO,GAAG,MAAM,IAEzC,eAAa,CACT,CACF,CACF,CACD,EACP;GACH;;;;;;;","names":[],"sources":["./src/components/stzh-overlay/stzh-overlay.scss?tag=stzh-overlay&encapsulation=scoped","./src/components/stzh-overlay/stzh-overlay.tsx"],"sourcesContent":[":host {\n --backdrop-opacity: 0.8;\n}\n\n.stzh-overlay {\n display: none;\n z-index: $zIndexOverlay;\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n flex-direction: column;\n justify-content: stretch;\n align-items: stretch;\n\n &__backdrop {\n z-index: 1;\n background-color: $colorWhite;\n opacity: var(--backdrop-opacity);\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n }\n\n &__content {\n z-index: 2;\n display: flex;\n flex-direction: column;\n align-items: center;\n position: relative;\n flex-grow: 1;\n overflow: auto;\n }\n\n &__content-inner {\n // center content vertically\n margin-top: auto;\n margin-bottom: auto;\n outline: none;\n }\n\n &--is-open {\n display: flex;\n }\n}\n","import {\n Component,\n Host,\n h,\n Prop,\n Event,\n EventEmitter,\n Method,\n Element\n} from \"@stencil/core\";\n\nimport {\n StzhOverlayOpenEvent,\n StzhOverlayCloseEvent\n} from \"../../index\";\n\nimport { createBaseFocusTrapOptions } from \"../../utils/overlay-utils\";\n\nimport { createFocusTrap, FocusTrap } from 'focus-trap';\n\nconst CLASS_BODY_OPEN = \"stzh-overlay-open\";\n\n/**\n * @slot - Slot for any content\n */\n@Component({\n tag: \"stzh-overlay\",\n styleUrl: \"stzh-overlay.scss\",\n scoped: true\n})\nexport class StzhOverlay {\n /** Whether overlay is open */\n @Prop({ mutable: true }) open: boolean = false;\n\n /** Stay in original position (true) or move to body (false) */\n @Prop() stay: boolean = true;\n\n /** Accessible label for dialog */\n @Prop({ attribute: \"a11y-label\" }) a11yLabel: string = \"\";\n\n /** Dialog open event */\n @Event() stzhOpen: EventEmitter<StzhOverlayOpenEvent>;\n\n /** Dialog close event */\n @Event() stzhClose: EventEmitter<StzhOverlayCloseEvent>;\n\n @Element() element: HTMLStzhOverlayElement;\n\n @Method()\n async show() {\n this.open = true;\n this.stzhOpen.emit({\n component: \"stzh-overlay\"\n });\n }\n\n @Method()\n async hide() {\n this.open = false;\n this.stzhClose.emit({\n component: \"stzh-overlay\"\n });\n }\n\n private trap: FocusTrap;\n private parentElement: HTMLElement;\n private dialogElement: HTMLDivElement;\n\n private getSiblings() {\n if (!this.parentElement) {\n return [];\n }\n\n return Array.from(this.parentElement.children).filter(\n (child) => child !== this.element\n );\n }\n\n private disableSiblings() {\n this.getSiblings().forEach((sibling) => {\n sibling.setAttribute(\"aria-hidden\", \"true\");\n });\n }\n\n private enableSiblings() {\n this.getSiblings().forEach((sibling) => {\n sibling.removeAttribute(\"aria-hidden\");\n });\n }\n\n private dialogShown() {\n document.body.classList.add(CLASS_BODY_OPEN);\n this.disableSiblings();\n\n if (this.trap) {\n this.trap.activate();\n }\n }\n\n private dialogHidden() {\n document.body.classList.remove(CLASS_BODY_OPEN);\n this.enableSiblings();\n\n if (this.trap) {\n this.trap.deactivate();\n }\n }\n\n connectedCallback() {\n if (!this.stay && this.element.parentElement !== document.body) {\n document.body.appendChild(this.element);\n }\n\n this.parentElement = this.element.parentElement;\n }\n\n componentDidRender() {\n this.open ? this.dialogShown() : this.dialogHidden();\n }\n\n componentDidUpdate() {\n this.trap.updateContainerElements(this.element);\n }\n\n componentDidLoad() {\n this.trap = createFocusTrap(this.element, {\n fallbackFocus: this.dialogElement,\n ...createBaseFocusTrapOptions()\n });\n\n if (this.open) {\n this.dialogShown();\n }\n }\n\n disconnectedCallback() {\n this.dialogHidden();\n }\n\n render() {\n const classes = {\n \"stzh-overlay\": true,\n \"stzh-overlay--is-open\": this.open\n };\n\n return (\n <Host>\n <div class={classes}>\n <div class=\"stzh-overlay__backdrop\"></div>\n <div class=\"stzh-overlay__content\">\n <div\n class=\"stzh-overlay__content-inner\"\n ref={(el) => (this.dialogElement = el as HTMLDivElement)}\n tabindex=\"-1\"\n role=\"dialog\"\n aria-label={this.a11yLabel || null}\n aria-hidden={this.open ? \"false\" : \"true\"}\n >\n <slot></slot>\n </div>\n </div>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, a as Host, g as getElement } from './index-67fd55c9.js';
2
- import { h as hasSlot } from './utils-51148d9a.js';
2
+ import { h as hasSlot } from './utils-8f264f12.js';
3
3
 
4
4
  const stzhPagebottomCss = ".sc-stzh-pagebottom-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-pagebottom-h{display:none}.sc-stzh-pagebottom-h *.sc-stzh-pagebottom,.sc-stzh-pagebottom-h *.sc-stzh-pagebottom::before,.sc-stzh-pagebottom-h *.sc-stzh-pagebottom::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}.sc-stzh-pagebottom-h .sc-stzh-pagebottom-s>[slot=logo]{height:2.375rem}.stzh-pagebottom.sc-stzh-pagebottom{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}@media screen and (min-width: 600px){.stzh-pagebottom.sc-stzh-pagebottom{-ms-flex-direction:row;flex-direction:row}}.stzh-pagebottom__share-title.sc-stzh-pagebottom{font-size:var(--stzh-font-curve-caption-default-font-size, var(--stzh-font-nano-font-size));line-height:var(--stzh-font-curve-caption-default-text-line-height, var(--stzh-font-nano-text-line-height));margin-bottom:var(--stzh-space-small)}@media screen and (min-width: 1024px){.stzh-pagebottom__share-title.sc-stzh-pagebottom{font-size:var(--stzh-font-curve-caption-medium-font-size, var(--stzh-font-micro-font-size));line-height:var(--stzh-font-curve-caption-medium-text-line-height, var(--stzh-font-micro-text-line-height))}}@media screen and (min-width: 600px){.stzh-pagebottom__logo.sc-stzh-pagebottom{margin-left:auto}}.stzh-pagebottom__logo-link.sc-stzh-pagebottom:not(:empty){display:block;margin-top:var(--stzh-space-xlarge)}@media screen and (min-width: 600px){.stzh-pagebottom__logo-link.sc-stzh-pagebottom:not(:empty){margin-top:0;margin-left:var(--stzh-space-xlarge)}}.stzh-pagebottom--has-border.sc-stzh-pagebottom{padding-top:var(--stzh-space-xlarge);border-top:0.0625rem solid var(--stzh-base-border-color)}@media screen and (min-width: 1024px){.stzh-pagebottom--has-border.sc-stzh-pagebottom{padding-top:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){.stzh-pagebottom--has-border.sc-stzh-pagebottom{padding-top:var(--stzh-space-xxxlarge)}}";
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, a as Host, g as getElement } from './index-67fd55c9.js';
2
- import { s as setPropsIfNull, h as hasSlot } from './utils-51148d9a.js';
2
+ import { s as setPropsIfNull, h as hasSlot } from './utils-8f264f12.js';
3
3
  import { a as addMediaChangeListener, r as removeMediaChangeListener, m as media } from './media-utils-9b041ceb.js';
4
4
 
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, a as Host, g as getElement } from './index-67fd55c9.js';
2
- import { s as setPropsIfNull, h as hasSlot } from './utils-51148d9a.js';
2
+ import { s as setPropsIfNull, h as hasSlot } from './utils-8f264f12.js';
3
3
 
4
4
  const stzhPagetitleCss = ".sc-stzh-pagetitle-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-pagetitle-h{display:none}.sc-stzh-pagetitle-h *.sc-stzh-pagetitle,.sc-stzh-pagetitle-h *.sc-stzh-pagetitle::before,.sc-stzh-pagetitle-h *.sc-stzh-pagetitle::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}.sc-stzh-pagetitle-h .sc-stzh-pagetitle-s>[slot=heading]{margin-bottom:var(--stzh-space-xlarge)}@media screen and (min-width: 1024px){.sc-stzh-pagetitle-h .sc-stzh-pagetitle-s>[slot=heading]{margin-bottom:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){.sc-stzh-pagetitle-h .sc-stzh-pagetitle-s>[slot=heading]{margin-bottom:var(--stzh-space-xxxlarge)}}.sc-stzh-pagetitle-h .sc-stzh-pagetitle-s>[slot=image]{margin-top:var(--stzh-space-medium)}@media screen and (min-width: 1024px){.sc-stzh-pagetitle-h .sc-stzh-pagetitle-s>[slot=image]{margin-top:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.sc-stzh-pagetitle-h .sc-stzh-pagetitle-s>[slot=image]{margin-top:var(--stzh-space-xlarge)}}.sc-stzh-pagetitle-h .sc-stzh-pagetitle-s>[slot=lead]{margin-top:var(--stzh-space-xlarge)}@media screen and (min-width: 1024px){.sc-stzh-pagetitle-h .sc-stzh-pagetitle-s>[slot=lead]{margin-top:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){.sc-stzh-pagetitle-h .sc-stzh-pagetitle-s>[slot=lead]{margin-top:var(--stzh-space-xxxlarge)}}.stzh-pagetitle__actions.sc-stzh-pagetitle{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.stzh-pagetitle__actions.sc-stzh-pagetitle:empty{display:none}";
5
5
 
@@ -0,0 +1,82 @@
1
+ import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-67fd55c9.js';
2
+ import { f as fetchTranslations } from './translation-utils-2623783f.js';
3
+
4
+ const stzhPaginationCss = ".sc-stzh-pagination-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-pagination-h{display:none}.sc-stzh-pagination-h *.sc-stzh-pagination,.sc-stzh-pagination-h *.sc-stzh-pagination::before,.sc-stzh-pagination-h *.sc-stzh-pagination::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}.stzh-pagination.sc-stzh-pagination{position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:var(--stzh-space-medium);padding-left:calc(var(--stzh-form-input-height) + var(--stzh-space-medium))}.stzh-pagination__input.sc-stzh-pagination{--text-align:center;--input-width:var(--stzh-form-input-height);--padding:0px;width:auto;position:absolute;top:0;left:0}.stzh-pagination__total.sc-stzh-pagination{font-size:var(--stzh-font-nano-font-size);line-height:var(--stzh-font-nano-text-line-height)}.stzh-pagination--size-small.sc-stzh-pagination{padding-left:calc(var(--stzh-form-input-small-height) + var(--stzh-space-medium))}.stzh-pagination--size-small.sc-stzh-pagination .stzh-pagination__input.sc-stzh-pagination{--input-width:var(--stzh-form-input-small-height)}";
5
+
6
+ const StzhPagination = class {
7
+ constructor(hostRef) {
8
+ registerInstance(this, hostRef);
9
+ this.stzhChange = createEvent(this, "stzhChange", 7);
10
+ this.gotoPage = (newPage) => {
11
+ const previous = this.value;
12
+ if (newPage >= 1 && newPage <= this.total) {
13
+ this.value = newPage;
14
+ }
15
+ else if (newPage > this.total) {
16
+ this.value = this.total;
17
+ }
18
+ else {
19
+ this.value = 1;
20
+ }
21
+ if (previous !== this.value) {
22
+ this.stzhChange.emit({
23
+ component: "stzh-pagination",
24
+ page: Number(this.value)
25
+ });
26
+ }
27
+ };
28
+ this.onRootFocus = () => {
29
+ if (this.input) {
30
+ this.input.setFocus();
31
+ }
32
+ };
33
+ this.onInputChange = (event) => {
34
+ const newPage = Number(event.detail.value) || 1;
35
+ this.gotoPage(newPage);
36
+ };
37
+ this.total = 1;
38
+ this.name = "";
39
+ this.value = 1;
40
+ this.label = "";
41
+ this.labelHidden = false;
42
+ this.readonly = false;
43
+ this.disabled = false;
44
+ this.description = undefined;
45
+ this.descriptionLong = undefined;
46
+ this.error = undefined;
47
+ this.invalid = false;
48
+ this.required = false;
49
+ this.showMarker = false;
50
+ this.size = "default";
51
+ this.a11yDescribedby = '';
52
+ this.localization = undefined;
53
+ }
54
+ /** Set current page to previous */
55
+ async prev() {
56
+ this.gotoPage(this.value - 1);
57
+ }
58
+ /** Set current page to next */
59
+ async next() {
60
+ this.gotoPage(this.value + 1);
61
+ }
62
+ async componentWillLoad() {
63
+ if (!this.localization) {
64
+ this.localization = await fetchTranslations(this.element, "pagination");
65
+ }
66
+ }
67
+ render() {
68
+ var _a;
69
+ const classes = {
70
+ "stzh-pagination": true,
71
+ [`stzh-pagination--size-${this.size}`]: !!this.size,
72
+ };
73
+ return (h(Host, { tabindex: this.disabled ? null : "-1", onFocus: this.onRootFocus }, h("div", { class: classes }, h("stzh-input", { class: "stzh-pagination__input", type: "number", min: 1, max: this.total, label: this.label || this.localization.label, labelHidden: true, ref: (el) => (this.input = el), onStzhChange: this.onInputChange, value: ((_a = this.value) === null || _a === void 0 ? void 0 : _a.toString()) || '', required: this.required, disabled: this.disabled, description: this.description, descriptionLong: this.descriptionLong, error: this.error, a11yDescribedby: this.a11yDescribedby, name: this.name, size: this.size, invalid: this.invalid, showMarker: this.showMarker, noAutocomplete: true }), h("div", { class: "stzh-pagination__total" }, this.localization.totalLabel
74
+ .replace(/\{total\}/gi, this.total.toString())), h("stzh-buttongroup", null, h("stzh-button", { variant: "secondary", icon: "angle-left", "icon-only": true, size: this.size, a11yDisabled: this.value <= 1, a11yDescribedby: this.a11yDescribedby, a11yLabel: `${this.label || this.localization.label}, ${this.localization.prevLabel}, ${this.localization.selectedPageLabel} ${this.value}`, disabled: this.disabled, onClick: () => this.prev() }), h("stzh-button", { variant: "secondary", icon: "angle-right", "icon-only": true, size: this.size, a11yDisabled: this.value >= this.total, a11yDescribedby: this.a11yDescribedby, a11yLabel: `${this.label || this.localization.label}, ${this.localization.nextLabel}, ${this.localization.selectedPageLabel} ${this.value}`, disabled: this.disabled, onClick: () => this.next() })))));
75
+ }
76
+ get element() { return getElement(this); }
77
+ };
78
+ StzhPagination.style = stzhPaginationCss;
79
+
80
+ export { StzhPagination as stzh_pagination };
81
+
82
+ //# sourceMappingURL=stzh-pagination.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"stzh-pagination.entry.js","mappings":";;;AAAA,MAAM,iBAAiB,GAAG,q3CAAq3C;;MC0Bl4C,cAAc;;;;IAoEjB,aAAQ,GAAG,CAAC,OAAe;MACjC,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC;MAE5B,IAAI,OAAO,IAAI,CAAC,IAAI,OAAO,IAAI,IAAI,CAAC,KAAK,EAAE;QACzC,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC;OACtB;WAAM,IAAI,OAAO,GAAG,IAAI,CAAC,KAAK,EAAE;QAC/B,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;OACzB;WAAM;QACL,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC;OAChB;MAED,IAAI,QAAQ,KAAK,IAAI,CAAC,KAAK,EAAE;QAC3B,IAAI,CAAC,UAAU,CAAC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YAAY,CAAC,KAAK,KAAK,IAAI,CAAC,YAAY,CAAC,SAAS,KAAK,IAAI,CAAC,YAAY,CAAC,iBAAiB,IAAI,IAAI,CAAC,KAAK,EAAE,EAC3I,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,OAAO,EAAE,MAAM,IAAI,CAAC,IAAI,EAAE,GACb,EACf,mBACE,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,aAAa,qBAElB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,YAAY,EAAE,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,EACtC,eAAe,EAAE,IAAI,CAAC,eAAe,EACrC,SAAS,EAAE,GAAG,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,YAAY,CAAC,KAAK,KAAK,IAAI,CAAC,YAAY,CAAC,SAAS,KAAK,IAAI,CAAC,YAAY,CAAC,iBAAiB,IAAI,IAAI,CAAC,KAAK,EAAE,EAC3I,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,OAAO,EAAE,MAAM,IAAI,CAAC,IAAI,EAAE,GACb,CACE,CACf,CACD,EACP;GACH;;;;;;;","names":[],"sources":["./src/components/stzh-pagination/stzh-pagination.scss?tag=stzh-pagination&encapsulation=scoped","./src/components/stzh-pagination/stzh-pagination.tsx"],"sourcesContent":[":host {\n}\n\n.stzh-pagination {\n position: relative;\n display: flex;\n align-items: center;\n gap: space('medium');\n padding-left: calc(#{$formInputHeight} + #{space('medium')});\n\n &__input {\n --text-align: center;\n --input-width: #{$formInputHeight};\n --padding: 0px;\n\n width: auto;\n position: absolute;\n top: 0;\n left: 0;\n }\n\n &__total {\n @include fontSize('nano');\n }\n\n &--size-small {\n padding-left: calc(#{$formInputHeightSmall} + #{space('medium')});\n }\n\n &--size-small &__input {\n --input-width: #{$formInputHeightSmall};\n }\n}\n","import {\n Component,\n Prop,\n Host,\n Element,\n h,\n Event,\n EventEmitter,\n Method,\n} from \"@stencil/core\";\n\nimport {\n StzhInputChangeEvent,\n StzhPaginationChangeEvent\n} from \"../../index\";\n\nimport { fetchTranslations } from \"../../utils/translation-utils\";\nimport { StzhPaginationLocalizedText } from \"./stzh-pagination.localization\";\n\n/**\n */\n@Component({\n tag: \"stzh-pagination\",\n styleUrl: \"stzh-pagination.scss\",\n scoped: true\n})\nexport class StzhPagination {\n /** Total pages available. */\n @Prop() total: number = 1;\n\n /** Name of the hidden date picker input. */\n @Prop({ reflect: true }) name: string = \"\";\n\n /** Current page. */\n @Prop({ mutable: true }) value: number = 1;\n\n /** Label for dropdown */\n @Prop() label: string = \"\";\n\n /** Whether label is hidden. */\n @Prop() labelHidden: boolean = false;\n\n /** Whether the element is readonly or not */\n @Prop({ reflect: true }) readonly: boolean = false;\n\n /** Whether the element is disabled or not */\n @Prop({ reflect: true }) disabled: boolean = false;\n\n /** Description message (use description slot as alternative) */\n @Prop() description: string;\n\n /** Long description message appearing in a popover (use description-long slot as alternative) */\n @Prop() descriptionLong: string;\n\n /** One or multiple error message (use error slot as alternative) */\n @Prop() error: string | string[];\n\n /** Invalid status */\n @Prop({ reflect: true }) invalid: boolean = false;\n\n /** Required status */\n @Prop({ reflect: true }) required: boolean = false;\n\n /** Append text to label depending if field is optional/required. true -> show \"(optional)\", false -> show nothing */\n @Prop({ reflect: true }) showMarker: boolean = false;\n\n /** Size variant */\n @Prop({ reflect: true }) size: \"default\" | \"small\" = \"default\";\n\n /** Id of the element which describes the input */\n @Prop({ attribute: \"a11y-describedby\" }) a11yDescribedby: string = '';\n\n /** Translation strings. */\n @Prop() localization: StzhPaginationLocalizedText;\n\n /** Pagination change event */\n @Event() stzhChange: EventEmitter<StzhPaginationChangeEvent>;\n\n @Element() element: HTMLStzhPaginationElement;\n\n /** Set current page to previous */\n @Method()\n async prev() {\n this.gotoPage(this.value - 1);\n }\n\n /** Set current page to next */\n @Method()\n async next() {\n this.gotoPage(this.value + 1);\n }\n\n private input: HTMLStzhInputElement;\n\n private gotoPage = (newPage: number) => {\n const previous = this.value;\n\n if (newPage >= 1 && newPage <= this.total) {\n this.value = newPage;\n } else if (newPage > this.total) {\n this.value = this.total;\n } else {\n this.value = 1;\n }\n\n if (previous !== this.value) {\n this.stzhChange.emit({\n component: \"stzh-pagination\",\n page: Number(this.value)\n });\n }\n }\n\n private onRootFocus = () => {\n if (this.input) {\n this.input.setFocus();\n }\n }\n\n private onInputChange = (event: CustomEvent<StzhInputChangeEvent>) => {\n const newPage = Number(event.detail.value) || 1;\n this.gotoPage(newPage);\n }\n\n async componentWillLoad() {\n if (!this.localization) {\n this.localization = await fetchTranslations(this.element, \"pagination\");\n }\n }\n\n render() {\n const classes = {\n \"stzh-pagination\": true,\n [`stzh-pagination--size-${this.size}`]: !!this.size,\n };\n\n return (\n <Host tabindex={this.disabled ? null : \"-1\"} onFocus={this.onRootFocus}>\n <div class={classes}>\n <stzh-input\n class=\"stzh-pagination__input\"\n type=\"number\"\n min={1}\n max={this.total}\n label={this.label || this.localization.label}\n labelHidden={true}\n ref={(el) => (this.input = el as HTMLStzhInputElement)}\n onStzhChange={this.onInputChange}\n value={this.value?.toString() || ''}\n required={this.required}\n disabled={this.disabled}\n description={this.description}\n descriptionLong={this.descriptionLong}\n error={this.error}\n a11yDescribedby={this.a11yDescribedby}\n name={this.name}\n size={this.size}\n invalid={this.invalid}\n showMarker={this.showMarker}\n noAutocomplete={true}\n ></stzh-input>\n <div class=\"stzh-pagination__total\">\n {this.localization.totalLabel\n .replace(/\\{total\\}/gi, this.total.toString())}\n </div>\n <stzh-buttongroup>\n <stzh-button\n variant=\"secondary\"\n icon=\"angle-left\"\n icon-only\n size={this.size}\n a11yDisabled={this.value <= 1}\n a11yDescribedby={this.a11yDescribedby}\n a11yLabel={`${this.label || this.localization.label}, ${this.localization.prevLabel}, ${this.localization.selectedPageLabel} ${this.value}`}\n disabled={this.disabled}\n onClick={() => this.prev()}\n ></stzh-button>\n <stzh-button\n variant=\"secondary\"\n icon=\"angle-right\"\n icon-only\n size={this.size}\n a11yDisabled={this.value >= this.total}\n a11yDescribedby={this.a11yDescribedby}\n a11yLabel={`${this.label || this.localization.label}, ${this.localization.nextLabel}, ${this.localization.selectedPageLabel} ${this.value}`}\n disabled={this.disabled}\n onClick={() => this.next()}\n ></stzh-button>\n </stzh-buttongroup>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-67fd55c9.js';
2
2
  import { c as computePosition, a as autoUpdate, A as Arrow, o as offset, f as flip, s as shift, b as arrow } from './arrow-4fc34dbd.js';
3
3
  import { c as createFocusTrap } from './focus-trap.esm-601d164c.js';
4
- import { i as isStzhElement } from './utils-51148d9a.js';
4
+ import { i as isStzhElement } from './utils-8f264f12.js';
5
5
  import { f as fetchTranslations } from './translation-utils-2623783f.js';
6
6
  import { m as media } from './media-utils-9b041ceb.js';
7
7
  import { w as waitForEvent } from './event-utils-7a709e21.js';
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, a as Host, g as getElement } from './index-67fd55c9.js';
2
- import { s as setPropsIfNull } from './utils-51148d9a.js';
2
+ import { s as setPropsIfNull } from './utils-8f264f12.js';
3
3
 
4
4
  const stzhReadspeakerCss = ":host{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}:host[hidden]{display:none}:host *,:host *::before,:host *::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}.stzh-readspeaker{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}.stzh-readspeaker[hidden]{display:none}.stzh-readspeaker *,.stzh-readspeaker *::before,.stzh-readspeaker *::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}.stzh-readspeaker .rsbtn_play{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-readspeaker .rsbtn_classic.rsexpanded .rsbtn_exp.rsimg{float:left;padding-bottom:0;-webkit-box-shadow:var(--stzh-box-shadow-popover);box-shadow:var(--stzh-box-shadow-popover)}.rsbtn_classic.rsexpanded{position:absolute;max-width:100%;z-index:var(--stzh-z-index-sticky)}.rsbtn_classic.rsexpanded,.rsbtn_classic.rsexpanded *,.rsbtn_classic.rsexpanded *::after,.rsbtn_classic.rsexpanded *::before{-webkit-box-sizing:initial;box-sizing:initial}.rsbtn_classic.rsexpanded .rsbtn_playerarea{padding:0.625rem;border:none}.rsbtn_classic.rsexpanded .rsbtn_closer.rsimg{right:0.625rem;top:0.625rem}.rsbtn_classic.rsexpanded .rsbtn_settings .rsbtn_btnlabel.rsimg,.rsbtn_classic.rsexpanded .rsbtn_dl .rsbtn_btnlabel,.rsbtn_classic.rsexpanded .rsbtn_powered .rsbtn_btnlabel{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;font-size:var(--stzh-font-nano-font-size);line-height:var(--stzh-font-nano-text-line-height);height:auto}.rsbtn_classic.rsexpanded .rsbtn_bottomlinks{margin-top:0.3125rem}.rsbtn_classic.rsexpanded .rsbtn_topbar>*,.rsbtn_classic.rsexpanded .rsbtn_exp.rsimg .rsbtn_icon,.rsbtn_classic.rsexpanded .rsbtn_exp.rsimg .rsbtn_stop,.rsbtn_classic.rsexpanded .rsbtn_exp.rsimg .rsbtn_pause,.rsbtn_classic.rsexpanded .rsbtn_exp.rsimg .rsbtn_volume,.rsbtn_classic.rsexpanded .rsbtn_closer,.rsbtn_classic.rsexpanded .rsbtn_progress_container.rsimg{border:0.375rem solid var(--stzh-color-grey13);border-radius:0.3125rem}.rsbtn_classic.rsexpanded .rsbtn_exp.rsimg .rsbtn_icon{border:0.3125rem solid var(--stzh-color-grey13)}.rsbtn_classic.rsexpanded .rsbtn_progress_container.rsimg{border:0.4375rem solid var(--stzh-color-grey13)}.rsbtn_classic.rsexpanded .rsbtn_topbar{margin-right:2.5rem}.rsbtn_classic.rspopup.rscompact{z-index:var(--stzh-z-index-sticky);-webkit-box-shadow:var(--stzh-box-shadow-popover);box-shadow:var(--stzh-box-shadow-popover);border:none;padding:0.625rem}.rsbtn_classic.rspopup.rscompact .rsbtn_play{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;width:1.25rem;height:1.25rem}.rsbtn_classic.rspopup.rscompact .rsbtn_play .rsbtn_left,.rsbtn_classic.rspopup.rscompact .rsbtn_play .rsbtn_right{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.rsbtn_classic.rspopup.rscompact .rsbtn_exp .rsbtn_separator{height:0.0625rem}";
5
5
 
@@ -0,0 +1,81 @@
1
+ import { r as registerInstance, h, a as Host, g as getElement } from './index-67fd55c9.js';
2
+ import { f as fetchTranslations } from './translation-utils-2623783f.js';
3
+
4
+ const stzhRichtextCss = "@charset \"UTF-8\";.sc-stzh-richtext-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-richtext-h{display:none}.sc-stzh-richtext-h *.sc-stzh-richtext,.sc-stzh-richtext-h *.sc-stzh-richtext::before,.sc-stzh-richtext-h *.sc-stzh-richtext::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}.sc-stzh-richtext-h{--color:var(--stzh-base-color);--richtext-blockquote-color:var(--stzh-richtext-blockquote-color);--richtext-blockquote-line-color:var(--stzh-richtext-blockquote-line-color);--richtext-blockquote-footer-color:var(--stzh-richtext-blockquote-footer-color);color:var(--color)}.sc-stzh-richtext-h .sc-stzh-richtext-s h1,.sc-stzh-richtext-h .sc-stzh-richtext-s h2,.sc-stzh-richtext-h .sc-stzh-richtext-s h3,.sc-stzh-richtext-h .sc-stzh-richtext-s h4{font-family:var(--stzh-font-family-title);font-weight:var(--stzh-font-weight-title);margin:0}.sc-stzh-richtext-h .sc-stzh-richtext-s b,.sc-stzh-richtext-h .sc-stzh-richtext-s strong{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal}.sc-stzh-richtext-h .sc-stzh-richtext-s i,.sc-stzh-richtext-h .sc-stzh-richtext-s em{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal}.sc-stzh-richtext-h .sc-stzh-richtext-s h1,.sc-stzh-richtext-h .sc-stzh-richtext-s h2,.sc-stzh-richtext-h .sc-stzh-richtext-s h3{color:var(--stzh-heading-color)}.sc-stzh-richtext-h .sc-stzh-richtext-s>*,.sc-stzh-richtext-h .sc-stzh-richtext-s p,.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-text{font-size:var(--stzh-font-curve-p1-default-font-size, var(--stzh-font-milli-font-size));line-height:var(--stzh-font-curve-p1-default-text-line-height, var(--stzh-font-milli-text-line-height));letter-spacing:var(--stzh-font-curve-p1-default-text-letter-spacing)}@media screen and (min-width: 1024px){.sc-stzh-richtext-h .sc-stzh-richtext-s>*,.sc-stzh-richtext-h .sc-stzh-richtext-s p,.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-text{font-size:var(--stzh-font-curve-p1-medium-font-size, var(--stzh-font-centi-font-size));line-height:var(--stzh-font-curve-p1-medium-text-line-height, var(--stzh-font-centi-text-line-height));letter-spacing:var(--stzh-font-curve-p1-medium-text-letter-spacing)}}.sc-stzh-richtext-h .sc-stzh-richtext-s h1{font-size:var(--stzh-font-curve-h1-default-font-size, var(--stzh-font-deca-font-size));line-height:var(--stzh-font-curve-h1-default-heading-line-height, var(--stzh-font-deca-text-line-height));letter-spacing:var(--stzh-font-curve-h1-default-heading-letter-spacing, var(--stzh-font-deca-text-letter-spacing))}@media screen and (min-width: 600px){.sc-stzh-richtext-h .sc-stzh-richtext-s h1{font-size:var(--stzh-font-curve-h1-small-font-size, var(--stzh-font-kilo-font-size));line-height:var(--stzh-font-curve-h1-small-heading-line-height, var(--stzh-font-kilo-text-line-height));letter-spacing:var(--stzh-font-curve-h1-small-heading-letter-spacing, var(--stzh-font-kilo-text-letter-spacing))}}@media screen and (min-width: 1024px){.sc-stzh-richtext-h .sc-stzh-richtext-s h1{font-size:var(--stzh-font-curve-h1-medium-font-size, var(--stzh-font-mega-font-size));line-height:var(--stzh-font-curve-h1-medium-heading-line-height, var(--stzh-font-mega-text-line-height));letter-spacing:var(--stzh-font-curve-h1-medium-heading-letter-spacing, var(--stzh-font-mega-text-letter-spacing))}}@media screen and (min-width: 1440px){.sc-stzh-richtext-h .sc-stzh-richtext-s h1{font-size:var(--stzh-font-curve-h1-ultra-font-size, var(--stzh-font-giga-font-size));line-height:var(--stzh-font-curve-h1-ultra-heading-line-height, var(--stzh-font-giga-text-line-height));letter-spacing:var(--stzh-font-curve-h1-ultra-heading-letter-spacing, var(--stzh-font-giga-text-letter-spacing))}}.sc-stzh-richtext-h .sc-stzh-richtext-s h2{font-size:var(--stzh-font-curve-h2-default-font-size, var(--stzh-font-deci-font-size));line-height:var(--stzh-font-curve-h2-default-heading-line-height, var(--stzh-font-deci-heading-line-height));letter-spacing:var(--stzh-font-curve-h2-default-heading-letter-spacing)}@media screen and (min-width: 600px){.sc-stzh-richtext-h .sc-stzh-richtext-s h2{font-size:var(--stzh-font-curve-h2-small-font-size, var(--stzh-font-deca-font-size));line-height:var(--stzh-font-curve-h2-small-heading-line-height, var(--stzh-font-deca-text-line-height));letter-spacing:var(--stzh-font-curve-h2-small-heading-letter-spacing, var(--stzh-font-deca-text-letter-spacing))}}@media screen and (min-width: 1024px){.sc-stzh-richtext-h .sc-stzh-richtext-s h2{font-size:var(--stzh-font-curve-h2-medium-font-size, var(--stzh-font-hecto-font-size));line-height:var(--stzh-font-curve-h2-medium-heading-line-height, var(--stzh-font-hecto-text-line-height));letter-spacing:var(--stzh-font-curve-h2-medium-heading-letter-spacing, var(--stzh-font-hecto-text-letter-spacing))}}@media screen and (min-width: 1440px){.sc-stzh-richtext-h .sc-stzh-richtext-s h2{font-size:var(--stzh-font-curve-h2-ultra-font-size, var(--stzh-font-kilo-font-size));line-height:var(--stzh-font-curve-h2-ultra-heading-line-height, var(--stzh-font-kilo-text-line-height));letter-spacing:var(--stzh-font-curve-h2-ultra-heading-letter-spacing, var(--stzh-font-kilo-text-letter-spacing))}}.sc-stzh-richtext-h .sc-stzh-richtext-s h3{font-size:var(--stzh-font-curve-h3-default-font-size, var(--stzh-font-centi-font-size));line-height:var(--stzh-font-curve-h3-default-heading-line-height, var(--stzh-font-centi-heading-line-height));letter-spacing:var(--stzh-font-curve-h3-default-heading-letter-spacing)}@media screen and (min-width: 600px){.sc-stzh-richtext-h .sc-stzh-richtext-s h3{font-size:var(--stzh-font-curve-h3-small-font-size, var(--stzh-font-deci-font-size));line-height:var(--stzh-font-curve-h3-small-heading-line-height, var(--stzh-font-deci-heading-line-height));letter-spacing:var(--stzh-font-curve-h3-small-heading-letter-spacing)}}@media screen and (min-width: 1024px){.sc-stzh-richtext-h .sc-stzh-richtext-s h3{font-size:var(--stzh-font-curve-h3-medium-font-size, var(--stzh-font-regular-font-size));line-height:var(--stzh-font-curve-h3-medium-heading-line-height, var(--stzh-font-regular-heading-line-height));letter-spacing:var(--stzh-font-curve-h3-medium-heading-letter-spacing)}}.sc-stzh-richtext-h .sc-stzh-richtext-s h4{font-size:var(--stzh-font-curve-h4-default-font-size, var(--stzh-font-milli-font-size));line-height:var(--stzh-font-curve-h4-default-heading-line-height, var(--stzh-font-milli-heading-line-height));letter-spacing:var(--stzh-font-curve-h4-default-heading-letter-spacing)}@media screen and (min-width: 1024px){.sc-stzh-richtext-h .sc-stzh-richtext-s h4{font-size:var(--stzh-font-curve-h4-medium-font-size, var(--stzh-font-centi-font-size));line-height:var(--stzh-font-curve-h4-medium-heading-line-height, var(--stzh-font-centi-heading-line-height));letter-spacing:var(--stzh-font-curve-h4-medium-heading-letter-spacing)}}.sc-stzh-richtext-h .sc-stzh-richtext-s h1,.sc-stzh-richtext-h .sc-stzh-richtext-s h2,.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-heading[level=\"1\"],.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-heading[level=\"2\"]{margin-bottom:var(--stzh-space-xlarge)}@media screen and (min-width: 1024px){.sc-stzh-richtext-h .sc-stzh-richtext-s h1,.sc-stzh-richtext-h .sc-stzh-richtext-s h2,.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-heading[level=\"1\"],.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-heading[level=\"2\"]{margin-bottom:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){.sc-stzh-richtext-h .sc-stzh-richtext-s h1,.sc-stzh-richtext-h .sc-stzh-richtext-s h2,.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-heading[level=\"1\"],.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-heading[level=\"2\"]{margin-bottom:var(--stzh-space-xxxlarge)}}.sc-stzh-richtext-h .sc-stzh-richtext-s h1,.sc-stzh-richtext-h .sc-stzh-richtext-s h2{padding-bottom:var(--stzh-space-xsmall);border-bottom:0.0625rem solid var(--stzh-base-border-color)}@media screen and (min-width: 1024px){.sc-stzh-richtext-h .sc-stzh-richtext-s h1,.sc-stzh-richtext-h .sc-stzh-richtext-s h2{padding-bottom:var(--stzh-space-small)}}@media screen and (min-width: 1260px){.sc-stzh-richtext-h .sc-stzh-richtext-s h1,.sc-stzh-richtext-h .sc-stzh-richtext-s h2{padding-bottom:var(--stzh-space-medium)}}.sc-stzh-richtext-h .sc-stzh-richtext-s h1,.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-heading[level=\"1\"],.sc-stzh-richtext-h .sc-stzh-richtext-s h2,.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-heading[level=\"2\"]{margin-top:var(--stzh-space-xxlarge)}@media screen and (min-width: 1024px){.sc-stzh-richtext-h .sc-stzh-richtext-s h1,.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-heading[level=\"1\"],.sc-stzh-richtext-h .sc-stzh-richtext-s h2,.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-heading[level=\"2\"]{margin-top:var(--stzh-space-xxxlarge)}}@media screen and (min-width: 1260px){.sc-stzh-richtext-h .sc-stzh-richtext-s h1,.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-heading[level=\"1\"],.sc-stzh-richtext-h .sc-stzh-richtext-s h2,.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-heading[level=\"2\"]{margin-top:var(--stzh-space-xxxxlarge)}}.sc-stzh-richtext-h .sc-stzh-richtext-s h3,.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-heading[level=\"3\"],.sc-stzh-richtext-h .sc-stzh-richtext-s h4,.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-heading[level=\"4\"]{margin-top:var(--stzh-space-xlarge)}@media screen and (min-width: 1024px){.sc-stzh-richtext-h .sc-stzh-richtext-s h3,.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-heading[level=\"3\"],.sc-stzh-richtext-h .sc-stzh-richtext-s h4,.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-heading[level=\"4\"]{margin-top:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){.sc-stzh-richtext-h .sc-stzh-richtext-s h3,.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-heading[level=\"3\"],.sc-stzh-richtext-h .sc-stzh-richtext-s h4,.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-heading[level=\"4\"]{margin-top:var(--stzh-space-xxxlarge)}}.sc-stzh-richtext-h .sc-stzh-richtext-s p,.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-text,.sc-stzh-richtext-h .sc-stzh-richtext-s ul,.sc-stzh-richtext-h .sc-stzh-richtext-s ol,.sc-stzh-richtext-h .sc-stzh-richtext-s dl,.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-list{margin-top:var(--stzh-space-small);margin-bottom:var(--stzh-space-small)}@media screen and (min-width: 1024px){.sc-stzh-richtext-h .sc-stzh-richtext-s p,.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-text,.sc-stzh-richtext-h .sc-stzh-richtext-s ul,.sc-stzh-richtext-h .sc-stzh-richtext-s ol,.sc-stzh-richtext-h .sc-stzh-richtext-s dl,.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-list{margin-top:var(--stzh-space-medium)}}@media screen and (min-width: 1260px){.sc-stzh-richtext-h .sc-stzh-richtext-s p,.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-text,.sc-stzh-richtext-h .sc-stzh-richtext-s ul,.sc-stzh-richtext-h .sc-stzh-richtext-s ol,.sc-stzh-richtext-h .sc-stzh-richtext-s dl,.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-list{margin-top:var(--stzh-space-large)}}@media screen and (min-width: 1024px){.sc-stzh-richtext-h .sc-stzh-richtext-s p,.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-text,.sc-stzh-richtext-h .sc-stzh-richtext-s ul,.sc-stzh-richtext-h .sc-stzh-richtext-s ol,.sc-stzh-richtext-h .sc-stzh-richtext-s dl,.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-list{margin-bottom:var(--stzh-space-medium)}}@media screen and (min-width: 1260px){.sc-stzh-richtext-h .sc-stzh-richtext-s p,.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-text,.sc-stzh-richtext-h .sc-stzh-richtext-s ul,.sc-stzh-richtext-h .sc-stzh-richtext-s ol,.sc-stzh-richtext-h .sc-stzh-richtext-s dl,.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-list{margin-bottom:var(--stzh-space-large)}}.sc-stzh-richtext-h .sc-stzh-richtext-s ul ul,.sc-stzh-richtext-h .sc-stzh-richtext-s ul ol,.sc-stzh-richtext-h .sc-stzh-richtext-s ul dl,.sc-stzh-richtext-h .sc-stzh-richtext-s ul stzh-list,.sc-stzh-richtext-h .sc-stzh-richtext-s ol ul,.sc-stzh-richtext-h .sc-stzh-richtext-s ol ol,.sc-stzh-richtext-h .sc-stzh-richtext-s ol dl,.sc-stzh-richtext-h .sc-stzh-richtext-s ol stzh-list,.sc-stzh-richtext-h .sc-stzh-richtext-s dl ul,.sc-stzh-richtext-h .sc-stzh-richtext-s dl ol,.sc-stzh-richtext-h .sc-stzh-richtext-s dl dl,.sc-stzh-richtext-h .sc-stzh-richtext-s dl stzh-list,.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-list ul,.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-list ol,.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-list dl,.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-list stzh-list{margin-top:0;margin-bottom:0}.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-text[curve=hero],.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-heading[curve=hero]{margin-bottom:var(--stzh-space-xlarge)}@media screen and (min-width: 1024px){.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-text[curve=hero],.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-heading[curve=hero]{margin-bottom:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-text[curve=hero],.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-heading[curve=hero]{margin-bottom:var(--stzh-space-xxxlarge)}}.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-text[curve=h1],.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-heading[curve=h1],.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-text[curve=h2],.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-heading[curve=h2]{margin-bottom:var(--stzh-space-xlarge)}@media screen and (min-width: 1024px){.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-text[curve=h1],.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-heading[curve=h1],.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-text[curve=h2],.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-heading[curve=h2]{margin-bottom:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-text[curve=h1],.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-heading[curve=h1],.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-text[curve=h2],.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-heading[curve=h2]{margin-bottom:var(--stzh-space-xxxlarge)}}.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-text[curve=h1],.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-heading[curve=h1]{margin-top:var(--stzh-space-xxlarge)}@media screen and (min-width: 1024px){.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-text[curve=h1],.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-heading[curve=h1]{margin-top:var(--stzh-space-xxxlarge)}}@media screen and (min-width: 1260px){.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-text[curve=h1],.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-heading[curve=h1]{margin-top:var(--stzh-space-xxxxlarge)}}.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-text[curve=h2],.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-heading[curve=h2]{margin-top:var(--stzh-space-xxxlarge)}@media screen and (min-width: 600px){.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-text[curve=h2],.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-heading[curve=h2]{margin-top:var(--stzh-space-xxxxlarge)}}@media screen and (min-width: 1024px){.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-text[curve=h2],.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-heading[curve=h2]{margin-top:var(--stzh-space-big)}}@media screen and (min-width: 1260px){.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-text[curve=h2],.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-heading[curve=h2]{margin-top:var(--stzh-space-xbig)}}.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-text[curve=h3],.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-heading[curve=h3]{margin-top:var(--stzh-space-xlarge)}@media screen and (min-width: 1024px){.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-text[curve=h3],.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-heading[curve=h3]{margin-top:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-text[curve=h3],.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-heading[curve=h3]{margin-top:var(--stzh-space-xxxlarge)}}.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-text[curve=h4],.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-heading[curve=h4]{margin-top:var(--stzh-space-xlarge)}@media screen and (min-width: 1024px){.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-text[curve=h4],.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-heading[curve=h4]{margin-top:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-text[curve=h4],.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-heading[curve=h4]{margin-top:var(--stzh-space-xxxlarge)}}.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-text[curve=p1],.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-text[curve=p2],.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-heading[curve=p1],.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-heading[curve=p2]{margin-top:var(--stzh-space-small);margin-bottom:var(--stzh-space-small)}@media screen and (min-width: 1024px){.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-text[curve=p1],.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-text[curve=p2],.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-heading[curve=p1],.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-heading[curve=p2]{margin-top:var(--stzh-space-medium)}}@media screen and (min-width: 1260px){.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-text[curve=p1],.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-text[curve=p2],.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-heading[curve=p1],.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-heading[curve=p2]{margin-top:var(--stzh-space-large)}}@media screen and (min-width: 1024px){.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-text[curve=p1],.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-text[curve=p2],.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-heading[curve=p1],.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-heading[curve=p2]{margin-bottom:var(--stzh-space-medium)}}@media screen and (min-width: 1260px){.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-text[curve=p1],.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-text[curve=p2],.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-heading[curve=p1],.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-heading[curve=p2]{margin-bottom:var(--stzh-space-large)}}.sc-stzh-richtext-h .sc-stzh-richtext-s ul,.sc-stzh-richtext-h .sc-stzh-richtext-s ol,.sc-stzh-richtext-h .sc-stzh-richtext-s dl{list-style:none;padding-left:0;overflow:hidden}.sc-stzh-richtext-h .sc-stzh-richtext-s ol{counter-reset:li-counter}.sc-stzh-richtext-h .sc-stzh-richtext-s ul li,.sc-stzh-richtext-h .sc-stzh-richtext-s ol li{position:relative}.sc-stzh-richtext-h .sc-stzh-richtext-s ul li::before,.sc-stzh-richtext-h .sc-stzh-richtext-s ol li::before{display:inline-block;position:absolute;left:0;top:0}.sc-stzh-richtext-h .sc-stzh-richtext-s ul li{padding-left:calc(var(--stzh-space-xsmall) + var(--stzh-space-small))}.sc-stzh-richtext-h .sc-stzh-richtext-s ul li::before{content:\"–\"}.sc-stzh-richtext-h .sc-stzh-richtext-s ol li{counter-increment:li-counter;padding-left:calc(var(--stzh-space-large) + var(--stzh-space-small))}.sc-stzh-richtext-h .sc-stzh-richtext-s ol li::before{content:counter(li-counter) \". \"}.sc-stzh-richtext-h .sc-stzh-richtext-s stzh-figure{margin-top:var(--stzh-space-xxlarge);margin-bottom:var(--stzh-space-xxlarge)}.sc-stzh-richtext-h .sc-stzh-richtext-s blockquote{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal;font-size:var(--stzh-font-curve-h3-default-font-size, var(--stzh-font-centi-font-size));line-height:var(--stzh-font-curve-h3-default-text-line-height, var(--stzh-font-centi-text-line-height));letter-spacing:var(--stzh-font-curve-h3-default-text-letter-spacing);padding-left:var(--stzh-space-medium);padding-right:var(--stzh-space-medium);margin:var(--stzh-space-xxlarge);color:var(--richtext-blockquote-color);position:relative;overflow:hidden}@media screen and (min-width: 600px){.sc-stzh-richtext-h .sc-stzh-richtext-s blockquote{font-size:var(--stzh-font-curve-h3-small-font-size, var(--stzh-font-deci-font-size));line-height:var(--stzh-font-curve-h3-small-text-line-height, var(--stzh-font-deci-text-line-height));letter-spacing:var(--stzh-font-curve-h3-small-text-letter-spacing)}}@media screen and (min-width: 1024px){.sc-stzh-richtext-h .sc-stzh-richtext-s blockquote{font-size:var(--stzh-font-curve-h3-medium-font-size, var(--stzh-font-regular-font-size));line-height:var(--stzh-font-curve-h3-medium-text-line-height, var(--stzh-font-regular-text-line-height));letter-spacing:var(--stzh-font-curve-h3-medium-text-letter-spacing)}}@media screen and (min-width: 1024px){.sc-stzh-richtext-h .sc-stzh-richtext-s blockquote{padding-left:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.sc-stzh-richtext-h .sc-stzh-richtext-s blockquote{padding-left:var(--stzh-space-xlarge)}}@media screen and (min-width: 1024px){.sc-stzh-richtext-h .sc-stzh-richtext-s blockquote{padding-right:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.sc-stzh-richtext-h .sc-stzh-richtext-s blockquote{padding-right:var(--stzh-space-xlarge)}}@media screen and (min-width: 1024px){.sc-stzh-richtext-h .sc-stzh-richtext-s blockquote{margin:var(--stzh-space-xxxlarge)}}@media screen and (min-width: 1260px){.sc-stzh-richtext-h .sc-stzh-richtext-s blockquote{margin:var(--stzh-space-xxxxlarge)}}.sc-stzh-richtext-h .sc-stzh-richtext-s blockquote:before{background:var(--richtext-blockquote-line-color);height:calc(100% - var(--stzh-space-xsmall) * 2);width:0.1875rem;content:\" \";display:block;position:absolute;left:0;top:var(--stzh-space-xsmall)}.sc-stzh-richtext-h .sc-stzh-richtext-s blockquote p{margin-top:0;margin-bottom:var(--stzh-space-small)}@media screen and (min-width: 1024px){.sc-stzh-richtext-h .sc-stzh-richtext-s blockquote p{margin-bottom:var(--stzh-space-medium)}}@media screen and (min-width: 1260px){.sc-stzh-richtext-h .sc-stzh-richtext-s blockquote p{margin-bottom:var(--stzh-space-large)}}.sc-stzh-richtext-h .sc-stzh-richtext-s blockquote p::before,.sc-stzh-richtext-h .sc-stzh-richtext-s blockquote p::after{display:inline-block}.sc-stzh-richtext-h .sc-stzh-richtext-s blockquote p::before{content:\"«\"}.sc-stzh-richtext-h .sc-stzh-richtext-s blockquote p::after{content:\"»\"}.sc-stzh-richtext-h .sc-stzh-richtext-s blockquote footer{font-size:var(--stzh-font-curve-p2-default-font-size, var(--stzh-font-micro-font-size));line-height:var(--stzh-font-curve-p2-default-text-line-height, var(--stzh-font-micro-text-line-height));color:var(--richtext-blockquote-footer-color)}@media screen and (min-width: 1024px){.sc-stzh-richtext-h .sc-stzh-richtext-s blockquote footer{font-size:var(--stzh-font-curve-p2-medium-font-size, var(--stzh-font-milli-font-size));line-height:var(--stzh-font-curve-p2-medium-text-line-height, var(--stzh-font-milli-text-line-height));letter-spacing:var(--stzh-font-curve-p2-medium-text-letter-spacing)}}.sc-stzh-richtext-h .sc-stzh-richtext-s blockquote footer::before{content:\"–\";display:inline-block;margin-right:var(--stzh-space-xxxsmall)}.sc-stzh-richtext-h .sc-stzh-richtext-s table{--min-width:none;--cell-padding:var(--stzh-table-cell-padding);width:100%;border-spacing:0;min-width:var(--min-width)}.sc-stzh-richtext-h .sc-stzh-richtext-s thead{position:-webkit-sticky;position:sticky;top:0;z-index:3}.sc-stzh-richtext-h .sc-stzh-richtext-s tr:hover td,.sc-stzh-richtext-h .sc-stzh-richtext-s tr:hover th{background-color:var(--stzh-color-grey5)}.sc-stzh-richtext-h .sc-stzh-richtext-s td,.sc-stzh-richtext-h .sc-stzh-richtext-s th{font-size:var(--stzh-font-milli-font-size);line-height:var(--stzh-font-milli-text-line-height);letter-spacing:var(--stzh-font-curve---text-letter-spacing);text-align:left;border:none;vertical-align:top;border:none;border-bottom:0.0625rem solid var(--stzh-base-border-color);background-color:var(--stzh-color-white);-webkit-transition:background-color var(--stzh-base-transition-animation-speed);transition:background-color var(--stzh-base-transition-animation-speed);padding:var(--cell-padding)}.sc-stzh-richtext-h .sc-stzh-richtext-s td a,.sc-stzh-richtext-h .sc-stzh-richtext-s th a{color:var(--stzh-link-color);-webkit-transition:color var(--stzh-base-transition-animation-speed);transition:color var(--stzh-base-transition-animation-speed);border-radius:var(--stzh-button-border-radius)}.sc-stzh-richtext-h .sc-stzh-richtext-s td a:hover,.sc-stzh-richtext-h .sc-stzh-richtext-s td a:focus,.sc-stzh-richtext-h .sc-stzh-richtext-s th a:hover,.sc-stzh-richtext-h .sc-stzh-richtext-s th a:focus{color:var(--stzh-link-hover-color)}.sc-stzh-richtext-h .sc-stzh-richtext-s td b,.sc-stzh-richtext-h .sc-stzh-richtext-s td strong,.sc-stzh-richtext-h .sc-stzh-richtext-s th b,.sc-stzh-richtext-h .sc-stzh-richtext-s th strong{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal}.sc-stzh-richtext-h .sc-stzh-richtext-s td i,.sc-stzh-richtext-h .sc-stzh-richtext-s td em,.sc-stzh-richtext-h .sc-stzh-richtext-s th i,.sc-stzh-richtext-h .sc-stzh-richtext-s th em{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal}.sc-stzh-richtext-h .sc-stzh-richtext-s td.align-left,.sc-stzh-richtext-h .sc-stzh-richtext-s th.align-left{text-align:left}.sc-stzh-richtext-h .sc-stzh-richtext-s td.align-right,.sc-stzh-richtext-h .sc-stzh-richtext-s th.align-right{text-align:right}.sc-stzh-richtext-h .sc-stzh-richtext-s td.align-center,.sc-stzh-richtext-h .sc-stzh-richtext-s th.align-center{text-align:center}.sc-stzh-richtext-h .sc-stzh-richtext-s td.valign-auto,.sc-stzh-richtext-h .sc-stzh-richtext-s th.valign-auto{vertical-align:auto}.sc-stzh-richtext-h .sc-stzh-richtext-s td.valign-middle,.sc-stzh-richtext-h .sc-stzh-richtext-s th.valign-middle{vertical-align:middle}.sc-stzh-richtext-h .sc-stzh-richtext-s td.valign-bottom,.sc-stzh-richtext-h .sc-stzh-richtext-s th.valign-bottom{vertical-align:bottom}.sc-stzh-richtext-h .sc-stzh-richtext-s td.nowrap,.sc-stzh-richtext-h .sc-stzh-richtext-s th.nowrap{white-space:nowrap}.sc-stzh-richtext-h .sc-stzh-richtext-s td.is-sticky-left,.sc-stzh-richtext-h .sc-stzh-richtext-s td.is-sticky-right,.sc-stzh-richtext-h .sc-stzh-richtext-s th.is-sticky-left,.sc-stzh-richtext-h .sc-stzh-richtext-s th.is-sticky-right{position:-webkit-sticky;position:sticky;z-index:1}.sc-stzh-richtext-h .sc-stzh-richtext-s td.has-sticked,.sc-stzh-richtext-h .sc-stzh-richtext-s th.has-sticked{z-index:2}.sc-stzh-richtext-h .sc-stzh-richtext-s td.is-sticky-left,.sc-stzh-richtext-h .sc-stzh-richtext-s th.is-sticky-left{left:0}.sc-stzh-richtext-h .sc-stzh-richtext-s td.is-sticky-right,.sc-stzh-richtext-h .sc-stzh-richtext-s th.is-sticky-right{right:0}.sc-stzh-richtext-h .sc-stzh-richtext-s td.is-sticky-left::after,.sc-stzh-richtext-h .sc-stzh-richtext-s td.is-sticky-right::after,.sc-stzh-richtext-h .sc-stzh-richtext-s th.is-sticky-left::after,.sc-stzh-richtext-h .sc-stzh-richtext-s th.is-sticky-right::after{background:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.16)), to(rgba(0, 0, 0, 0)));background:linear-gradient(90deg, rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0) 100%);content:\"\";pointer-events:none;position:absolute;top:0;height:100%;width:0.375rem;-webkit-transform:translate(100%);transform:translate(100%);opacity:0;-webkit-transition:opacity var(--stzh-base-transition-animation-speed);transition:opacity var(--stzh-base-transition-animation-speed)}.sc-stzh-richtext-h .sc-stzh-richtext-s td.is-sticky-left::after,.sc-stzh-richtext-h .sc-stzh-richtext-s th.is-sticky-left::after{right:0}.sc-stzh-richtext-h .sc-stzh-richtext-s td.is-sticky-right::after,.sc-stzh-richtext-h .sc-stzh-richtext-s th.is-sticky-right::after{left:0;-webkit-transform:rotate(-180deg) translate(100%);transform:rotate(-180deg) translate(100%)}.sc-stzh-richtext-h .sc-stzh-richtext-s td.has-sticked.is-sticky-left::after,.sc-stzh-richtext-h .sc-stzh-richtext-s td.has-sticked.is-sticky-right::after,.sc-stzh-richtext-h .sc-stzh-richtext-s th.has-sticked.is-sticky-left::after,.sc-stzh-richtext-h .sc-stzh-richtext-s th.has-sticked.is-sticky-right::after{opacity:1}.sc-stzh-richtext-h .sc-stzh-richtext-s th{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal;color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.sc-stzh-richtext-h .sc-stzh-richtext-s th.is-sortable{padding:0}.sc-stzh-richtext-h .sc-stzh-richtext-s a{color:var(--stzh-link-color);-webkit-transition:color var(--stzh-base-transition-animation-speed);transition:color var(--stzh-base-transition-animation-speed);border-radius:var(--stzh-button-border-radius);text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}.sc-stzh-richtext-h .sc-stzh-richtext-s a:hover{color:var(--stzh-link-hover-color)}.sc-stzh-richtext-h .sc-stzh-richtext-s .stzh-richtext__external-link{position:relative}.sc-stzh-richtext-h .sc-stzh-richtext-s .stzh-richtext__external-vhidden{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.sc-stzh-richtext-h .sc-stzh-richtext-s .stzh-richtext__external-icon-wrapper{position:relative;display:inline-block;width:var(--stzh-icon-size-default);height:var(--stzh-link-icon-wrapper-height);margin-left:var(--stzh-space-xxsmall)}.sc-stzh-richtext-h .sc-stzh-richtext-s .stzh-richtext__external-icon{--icon:var(--stzh-icon-size-default);position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);margin-top:0.0625rem;width:var(--stzh-icon-size-default);height:var(--stzh-icon-size-default)}.sc-stzh-richtext-h[remove-first-margin]:not([remove-first-margin=false]) .sc-stzh-richtext-s>*:first-child{margin-top:0 !important}.sc-stzh-richtext-h[remove-last-margin]:not([remove-last-margin=false]) .sc-stzh-richtext-s>*:last-child{margin-bottom:0 !important}";
5
+
6
+ const CLASS_EXTERNAL_LINK = 'stzh-richtext__external-link';
7
+ const CLASS_EXTERNAL_ICON_WRAPPER = 'stzh-richtext__external-icon-wrapper';
8
+ const CLASS_EXTERNAL_ICON = 'stzh-richtext__external-icon';
9
+ const CLASS_EXTERNAL_VHIDDEN = 'stzh-richtext__external-vhidden';
10
+ const StzhRichtext = class {
11
+ constructor(hostRef) {
12
+ registerInstance(this, hostRef);
13
+ this.localization = undefined;
14
+ this.removeFirstMargin = true;
15
+ this.removeLastMargin = true;
16
+ this.externalLinkSelector = 'a[rel*="external"], a.external, a.extern';
17
+ this.externalLinkIcon = 'external-link';
18
+ }
19
+ addExternalLinkIcons() {
20
+ this.externalLinks.forEach(externalLink => {
21
+ externalLink.classList.add(CLASS_EXTERNAL_LINK);
22
+ const screenreaderText = document.createElement('span');
23
+ screenreaderText.classList.add(CLASS_EXTERNAL_VHIDDEN);
24
+ screenreaderText.innerText = this.localization.$globals.externalLinkLabel;
25
+ const iconWrapper = document.createElement('span');
26
+ iconWrapper.classList.add(CLASS_EXTERNAL_ICON_WRAPPER);
27
+ const icon = document.createElement('stzh-icon');
28
+ icon.classList.add(CLASS_EXTERNAL_ICON);
29
+ icon.name = this.externalLinkIcon;
30
+ iconWrapper.appendChild(icon);
31
+ externalLink.prepend(screenreaderText);
32
+ externalLink.appendChild(iconWrapper);
33
+ });
34
+ }
35
+ async componentWillLoad() {
36
+ if (!this.localization) {
37
+ this.localization = await fetchTranslations(this.element, "richtext");
38
+ }
39
+ }
40
+ componentDidRender() {
41
+ this.externalLinks = Array.from(this.element.querySelectorAll(this.externalLinkSelector));
42
+ this.addExternalLinkIcons();
43
+ }
44
+ render() {
45
+ const classes = {
46
+ "stzh-richtext": true
47
+ };
48
+ return (h(Host, null, h("div", { class: classes }, h("slot", null))));
49
+ }
50
+ get element() { return getElement(this); }
51
+ };
52
+ StzhRichtext.style = stzhRichtextCss;
53
+
54
+ const stzhStatusCss = ".sc-stzh-status-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-status-h{display:none}.sc-stzh-status-h *.sc-stzh-status,.sc-stzh-status-h *.sc-stzh-status::before,.sc-stzh-status-h *.sc-stzh-status::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}.sc-stzh-status-h{--color:var(--stzh-base-color);--min-width:none}[with-loadingbar].sc-stzh-status-h:not([with-loadingbar=false]){--min-width:10rem}[type=success].sc-stzh-status-h{--color:var(--stzh-color-truegreen)}[type=warning].sc-stzh-status-h{--color:var(--stzh-color-warning)}[type=error].sc-stzh-status-h{--color:var(--stzh-color-error)}[type=info].sc-stzh-status-h{--color:var(--stzh-color-zueriblue)}.stzh-status.sc-stzh-status{min-width:var(--min-width);color:var(--color)}.stzh-status__dot.sc-stzh-status{border-radius:50%;width:0.75rem;height:0.75rem;background-color:currentColor;margin-right:var(--stzh-space-xxsmall)}.stzh-status__bar.sc-stzh-status{display:block;height:0.25rem;border-radius:0.75rem;background-color:var(--stzh-color-grey13);margin-top:var(--stzh-space-xxsmall)}.stzh-status__bar-inner.sc-stzh-status{display:block;height:100%;width:0;border-radius:0.75rem;background:currentColor}.stzh-status__text.sc-stzh-status{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}";
55
+
56
+ const StzhStatus = class {
57
+ constructor(hostRef) {
58
+ registerInstance(this, hostRef);
59
+ this.percent = 0;
60
+ this.withLoadingbar = false;
61
+ this.label = "";
62
+ this.type = "default";
63
+ }
64
+ render() {
65
+ const classes = {
66
+ "stzh-status": true,
67
+ [`stzh-status--type-${this.type}`]: !!this.type
68
+ };
69
+ return (h(Host, null, h("div", { class: classes }, h("div", { class: "stzh-status__text" }, h("div", { class: "stzh-status__dot" }), this.label &&
70
+ h("div", { class: "stzh-status__label" }, this.label)), this.withLoadingbar &&
71
+ h("div", { class: "stzh-status__bar" }, h("div", { class: "stzh-status__bar-inner", style: {
72
+ width: `${this.percent}%`
73
+ } })))));
74
+ }
75
+ get element() { return getElement(this); }
76
+ };
77
+ StzhStatus.style = stzhStatusCss;
78
+
79
+ export { StzhRichtext as stzh_richtext, StzhStatus as stzh_status };
80
+
81
+ //# sourceMappingURL=stzh-richtext_2.entry.js.map