@oiz/stzh-components 1.5.0-alpha → 2.0.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 (431) hide show
  1. package/dist/cjs/{app-globals-3b6f75bd.js → app-globals-58a084a9.js} +1 -1
  2. package/dist/cjs/loader.cjs.js +2 -2
  3. package/dist/cjs/stzh-actionset.cjs.entry.js +164 -0
  4. package/dist/cjs/stzh-badge_3.cjs.entry.js +24 -3
  5. package/dist/cjs/stzh-card-list.cjs.entry.js +79 -0
  6. package/dist/cjs/stzh-card.cjs.entry.js +294 -0
  7. package/dist/cjs/stzh-chip-select.cjs.entry.js +1 -1
  8. package/dist/cjs/stzh-components.cjs.js +2 -2
  9. package/dist/cjs/stzh-cspace.cjs.entry.js +1 -1
  10. package/dist/cjs/stzh-datalist.cjs.entry.js +74 -0
  11. package/dist/cjs/stzh-datepicker_4.cjs.entry.js +5 -4
  12. package/dist/cjs/stzh-dialog.cjs.entry.js +1 -1
  13. package/dist/cjs/stzh-dropdown.cjs.entry.js +4 -6
  14. package/dist/cjs/stzh-ghettobox_2.cjs.entry.js +1 -1
  15. package/dist/cjs/stzh-icon-sprite.cjs.entry.js +1 -1
  16. package/dist/cjs/stzh-input.cjs.entry.js +3 -4
  17. package/dist/cjs/stzh-link.cjs.entry.js +1 -1
  18. package/dist/cjs/stzh-overlay.cjs.entry.js +1 -1
  19. package/dist/cjs/stzh-popover.cjs.entry.js +30 -28
  20. package/dist/cjs/stzh-portal-mitwirken.cjs.entry.js +1 -1
  21. package/dist/cjs/stzh-sortable.cjs.entry.js +17 -0
  22. package/dist/cjs/stzh-tooltip.cjs.entry.js +3 -1
  23. package/dist/collection/assets/i18n/de.json +7 -2
  24. package/dist/collection/assets/i18n/en.json +7 -2
  25. package/dist/collection/assets/icons/mono/recycling-outline.svg +11 -0
  26. package/dist/collection/assets/icons/mono/recycling.svg +10 -0
  27. package/dist/collection/assets/icons/mono/smartphone.svg +10 -0
  28. package/dist/collection/assets/icons/mono/target.svg +11 -0
  29. package/dist/collection/collection-manifest.json +4 -2
  30. package/dist/collection/components/stzh-actionset/stzh-actionset.css +147 -0
  31. package/dist/collection/components/stzh-actionset/stzh-actionset.js +351 -0
  32. package/dist/collection/components/{stzh-servicecard-list/stzh-servicecard-list.localization.js → stzh-actionset/stzh-actionset.localization.js} +0 -0
  33. package/dist/collection/components/stzh-actionset/stzh-actionset.stories.js +72 -0
  34. package/dist/collection/components/stzh-button/stzh-button.css +66 -0
  35. package/dist/collection/components/stzh-button/stzh-button.js +98 -4
  36. package/dist/collection/components/stzh-button/stzh-button.stories.js +1 -1
  37. package/dist/collection/components/stzh-card/stzh-card.css +408 -0
  38. package/dist/collection/components/{stzh-servicecard/stzh-servicecard.js → stzh-card/stzh-card.js} +283 -126
  39. package/dist/collection/components/stzh-card/stzh-card.localization.js +1 -0
  40. package/dist/collection/components/stzh-card/stzh-card.stories.js +137 -0
  41. package/dist/collection/components/{stzh-servicecard-list/stzh-servicecard-list.css → stzh-card-list/stzh-card-list.css} +9 -9
  42. package/dist/collection/components/{stzh-servicecard-list/stzh-servicecard-list.js → stzh-card-list/stzh-card-list.js} +46 -18
  43. package/dist/collection/components/{stzh-servicecard/stzh-servicecard.localization.js → stzh-card-list/stzh-card-list.localization.js} +0 -0
  44. package/dist/collection/components/stzh-card-list/stzh-card-list.stories.js +132 -0
  45. package/dist/collection/components/stzh-chip-select/stzh-chip-select.js +1 -1
  46. package/dist/collection/components/stzh-cspace/stzh-cspace.css +13 -6
  47. package/dist/collection/components/stzh-datalist/stzh-datalist.css +621 -0
  48. package/dist/collection/components/stzh-datalist/stzh-datalist.js +237 -0
  49. package/dist/collection/components/stzh-datalist/stzh-datalist.stories.js +66 -0
  50. package/dist/collection/components/stzh-datepicker/stzh-datepicker.js +1 -21
  51. package/dist/collection/components/stzh-dialog/stzh-dialog.css +2 -1
  52. package/dist/collection/components/stzh-dropdown/stzh-dropdown.css +3 -3
  53. package/dist/collection/components/stzh-dropdown/stzh-dropdown.js +7 -26
  54. package/dist/collection/components/stzh-icon-sprite/assets/svgsprites/symbol/sprite.symbol.html +63 -11
  55. package/dist/collection/components/stzh-icon-sprite/assets/svgsprites/symbol/svg/sprite.symbol.svg +1 -1
  56. package/dist/collection/components/stzh-input/stzh-input.css +5 -5
  57. package/dist/collection/components/stzh-input/stzh-input.js +2 -23
  58. package/dist/collection/components/stzh-link/stzh-link.css +5 -0
  59. package/dist/collection/components/stzh-link/stzh-link.js +2 -2
  60. package/dist/collection/components/stzh-overlay/stzh-overlay.css +5 -1
  61. package/dist/collection/components/stzh-popover/stzh-popover.js +52 -32
  62. package/dist/collection/components/stzh-portal-mitwirken/stzh-portal-mitwirken.css +292 -0
  63. package/dist/collection/components/stzh-radio/stzh-radio.css +2 -2
  64. package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.js +4 -3
  65. package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.stories.js +3 -0
  66. package/dist/collection/components/stzh-richtext/stzh-richtext.css +145 -0
  67. package/dist/collection/components/stzh-richtext/stzh-richtext.stories.js +19 -0
  68. package/dist/collection/components/stzh-sortable/stzh-sortable.js +38 -0
  69. package/dist/collection/components/stzh-sortable/stzh-sortable.stories.js +1 -1
  70. package/dist/collection/components/stzh-tooltip/stzh-tooltip.js +21 -1
  71. package/dist/collection/pages/meinkonto.stories.js +93 -88
  72. package/dist/components/index.d.ts +4 -2
  73. package/dist/components/index.js +5 -3
  74. package/dist/components/{stzh-servicecard.d.ts → stzh-actionset.d.ts} +4 -4
  75. package/dist/components/stzh-actionset.js +6 -0
  76. package/dist/components/stzh-actionset2.js +227 -0
  77. package/dist/components/stzh-button2.js +27 -3
  78. package/dist/components/{stzh-servicecard-list.d.ts → stzh-card-list.d.ts} +4 -4
  79. package/dist/components/stzh-card-list.js +123 -0
  80. package/dist/components/stzh-card.d.ts +11 -0
  81. package/dist/components/stzh-card.js +376 -0
  82. package/dist/components/stzh-chip-select.js +1 -1
  83. package/dist/components/stzh-cspace.js +1 -1
  84. package/dist/components/stzh-datalist.d.ts +11 -0
  85. package/dist/components/stzh-datalist.js +113 -0
  86. package/dist/components/stzh-datepicker2.js +1 -2
  87. package/dist/components/stzh-dialog.js +1 -1
  88. package/dist/components/stzh-dropdown2.js +4 -7
  89. package/dist/components/stzh-icon-sprite.js +1 -1
  90. package/dist/components/stzh-input2.js +3 -5
  91. package/dist/components/stzh-link2.js +1 -1
  92. package/dist/components/stzh-overlay.js +1 -1
  93. package/dist/components/stzh-popover2.js +31 -28
  94. package/dist/components/stzh-portal-mitwirken.js +1 -1
  95. package/dist/components/stzh-radio2.js +1 -1
  96. package/dist/components/stzh-radiogroup2.js +3 -2
  97. package/dist/components/stzh-richtext2.js +1 -1
  98. package/dist/components/stzh-sortable2.js +17 -0
  99. package/dist/components/stzh-tooltip2.js +4 -1
  100. package/dist/esm/{app-globals-c42494e9.js → app-globals-6b6ff890.js} +1 -1
  101. package/dist/esm/{index-0e6d34c6.js → index-84f71a43.js} +1 -1
  102. package/dist/esm/loader.js +3 -3
  103. package/dist/esm/stzh-accordion-item.entry.js +1 -1
  104. package/dist/esm/stzh-accordion.entry.js +1 -1
  105. package/dist/esm/stzh-actions.entry.js +1 -1
  106. package/dist/esm/stzh-actionset.entry.js +160 -0
  107. package/dist/esm/stzh-appnav.entry.js +1 -1
  108. package/dist/esm/stzh-appointments.entry.js +1 -1
  109. package/dist/esm/stzh-badge_3.entry.js +25 -4
  110. package/dist/esm/stzh-calendar.entry.js +1 -1
  111. package/dist/esm/stzh-card-list.entry.js +75 -0
  112. package/dist/esm/stzh-card.entry.js +290 -0
  113. package/dist/esm/stzh-cell.entry.js +1 -1
  114. package/dist/esm/stzh-checkbox.entry.js +2 -2
  115. package/dist/esm/stzh-checkboxgroup.entry.js +2 -2
  116. package/dist/esm/stzh-chip-select.entry.js +2 -2
  117. package/dist/esm/stzh-chip.entry.js +1 -1
  118. package/dist/esm/stzh-components.js +3 -3
  119. package/dist/esm/stzh-container.entry.js +1 -1
  120. package/dist/esm/stzh-cspace.entry.js +2 -2
  121. package/dist/esm/stzh-datalist.entry.js +70 -0
  122. package/dist/esm/stzh-datamessagelist-item.entry.js +1 -1
  123. package/dist/esm/stzh-datamessagelist.entry.js +1 -1
  124. package/dist/esm/stzh-datatable.entry.js +1 -1
  125. package/dist/esm/stzh-datepicker_4.entry.js +7 -6
  126. package/dist/esm/stzh-dialog.entry.js +2 -2
  127. package/dist/esm/stzh-dropdown.entry.js +6 -8
  128. package/dist/esm/stzh-fieldset.entry.js +1 -1
  129. package/dist/esm/stzh-figure.entry.js +1 -1
  130. package/dist/esm/stzh-flyingfocus.entry.js +1 -1
  131. package/dist/esm/stzh-footer.entry.js +1 -1
  132. package/dist/esm/stzh-ghettobox_2.entry.js +2 -2
  133. package/dist/esm/stzh-header.entry.js +1 -1
  134. package/dist/esm/stzh-heading.entry.js +1 -1
  135. package/dist/esm/stzh-hr.entry.js +1 -1
  136. package/dist/esm/stzh-hspace.entry.js +1 -1
  137. package/dist/esm/stzh-icon-sprite.entry.js +2 -2
  138. package/dist/esm/{stzh-input-description-da7b0e98.js → stzh-input-description-8c477f97.js} +1 -1
  139. package/dist/esm/stzh-input.entry.js +5 -6
  140. package/dist/esm/stzh-link.entry.js +2 -2
  141. package/dist/esm/stzh-list-item.entry.js +1 -1
  142. package/dist/esm/stzh-list.entry.js +1 -1
  143. package/dist/esm/stzh-loader.entry.js +1 -1
  144. package/dist/esm/stzh-loadingbar.entry.js +1 -1
  145. package/dist/esm/stzh-menu_2.entry.js +1 -1
  146. package/dist/esm/stzh-message.entry.js +1 -1
  147. package/dist/esm/stzh-metanav.entry.js +1 -1
  148. package/dist/esm/stzh-overlay.entry.js +2 -2
  149. package/dist/esm/stzh-page-skiplinks.entry.js +1 -1
  150. package/dist/esm/stzh-pagetitle.entry.js +1 -1
  151. package/dist/esm/stzh-popover.entry.js +31 -29
  152. package/dist/esm/stzh-portal-mitwirken.entry.js +2 -2
  153. package/dist/esm/stzh-progressbar-item.entry.js +1 -1
  154. package/dist/esm/stzh-progressbar.entry.js +1 -1
  155. package/dist/esm/stzh-readspeaker.entry.js +1 -1
  156. package/dist/esm/stzh-row.entry.js +1 -1
  157. package/dist/esm/stzh-saptcha.entry.js +1 -1
  158. package/dist/esm/stzh-section.entry.js +1 -1
  159. package/dist/esm/stzh-skiplink.entry.js +1 -1
  160. package/dist/esm/stzh-sortable.entry.js +18 -1
  161. package/dist/esm/stzh-status.entry.js +1 -1
  162. package/dist/esm/stzh-table.entry.js +1 -1
  163. package/dist/esm/stzh-toggle.entry.js +2 -2
  164. package/dist/esm/stzh-tooltip.entry.js +4 -2
  165. package/dist/esm/stzh-upload.entry.js +2 -2
  166. package/dist/esm/stzh-vbz-linechip.entry.js +1 -1
  167. package/dist/esm/stzh-vbz-majorticker.entry.js +1 -1
  168. package/dist/esm/stzh-vbz-ticker.entry.js +1 -1
  169. package/dist/esm/stzh-visuallyhidden.entry.js +1 -1
  170. package/dist/esm/stzh-vspace.entry.js +1 -1
  171. package/dist/esm-es5/app-globals-6b6ff890.js +1 -0
  172. package/dist/esm-es5/{index-0e6d34c6.js → index-84f71a43.js} +1 -1
  173. package/dist/esm-es5/loader.js +1 -1
  174. package/dist/esm-es5/stzh-accordion-item.entry.js +1 -1
  175. package/dist/esm-es5/stzh-accordion.entry.js +1 -1
  176. package/dist/esm-es5/stzh-actions.entry.js +1 -1
  177. package/dist/esm-es5/stzh-actionset.entry.js +1 -0
  178. package/dist/esm-es5/stzh-appnav.entry.js +1 -1
  179. package/dist/esm-es5/stzh-appointments.entry.js +1 -1
  180. package/dist/esm-es5/stzh-badge_3.entry.js +1 -1
  181. package/dist/esm-es5/stzh-calendar.entry.js +1 -1
  182. package/dist/esm-es5/stzh-card-list.entry.js +1 -0
  183. package/dist/esm-es5/stzh-card.entry.js +1 -0
  184. package/dist/esm-es5/stzh-cell.entry.js +1 -1
  185. package/dist/esm-es5/stzh-checkbox.entry.js +1 -1
  186. package/dist/esm-es5/stzh-checkboxgroup.entry.js +1 -1
  187. package/dist/esm-es5/stzh-chip-select.entry.js +1 -1
  188. package/dist/esm-es5/stzh-chip.entry.js +1 -1
  189. package/dist/esm-es5/stzh-components.js +1 -1
  190. package/dist/esm-es5/stzh-container.entry.js +1 -1
  191. package/dist/esm-es5/stzh-cspace.entry.js +1 -1
  192. package/dist/esm-es5/stzh-datalist.entry.js +1 -0
  193. package/dist/esm-es5/stzh-datamessagelist-item.entry.js +1 -1
  194. package/dist/esm-es5/stzh-datamessagelist.entry.js +1 -1
  195. package/dist/esm-es5/stzh-datatable.entry.js +1 -1
  196. package/dist/esm-es5/stzh-datepicker_4.entry.js +1 -1
  197. package/dist/esm-es5/stzh-dialog.entry.js +1 -1
  198. package/dist/esm-es5/stzh-dropdown.entry.js +1 -1
  199. package/dist/esm-es5/stzh-fieldset.entry.js +1 -1
  200. package/dist/esm-es5/stzh-figure.entry.js +1 -1
  201. package/dist/esm-es5/stzh-flyingfocus.entry.js +1 -1
  202. package/dist/esm-es5/stzh-footer.entry.js +1 -1
  203. package/dist/esm-es5/stzh-ghettobox_2.entry.js +1 -1
  204. package/dist/esm-es5/stzh-header.entry.js +1 -1
  205. package/dist/esm-es5/stzh-heading.entry.js +1 -1
  206. package/dist/esm-es5/stzh-hr.entry.js +1 -1
  207. package/dist/esm-es5/stzh-hspace.entry.js +1 -1
  208. package/dist/esm-es5/stzh-icon-sprite.entry.js +1 -1
  209. package/dist/esm-es5/{stzh-input-description-da7b0e98.js → stzh-input-description-8c477f97.js} +1 -1
  210. package/dist/esm-es5/stzh-input.entry.js +1 -1
  211. package/dist/esm-es5/stzh-link.entry.js +1 -1
  212. package/dist/esm-es5/stzh-list-item.entry.js +1 -1
  213. package/dist/esm-es5/stzh-list.entry.js +1 -1
  214. package/dist/esm-es5/stzh-loader.entry.js +1 -1
  215. package/dist/esm-es5/stzh-loadingbar.entry.js +1 -1
  216. package/dist/esm-es5/stzh-menu_2.entry.js +1 -1
  217. package/dist/esm-es5/stzh-message.entry.js +1 -1
  218. package/dist/esm-es5/stzh-metanav.entry.js +1 -1
  219. package/dist/esm-es5/stzh-overlay.entry.js +1 -1
  220. package/dist/esm-es5/stzh-page-skiplinks.entry.js +1 -1
  221. package/dist/esm-es5/stzh-pagetitle.entry.js +1 -1
  222. package/dist/esm-es5/stzh-popover.entry.js +1 -1
  223. package/dist/esm-es5/stzh-portal-mitwirken.entry.js +1 -1
  224. package/dist/esm-es5/stzh-progressbar-item.entry.js +1 -1
  225. package/dist/esm-es5/stzh-progressbar.entry.js +1 -1
  226. package/dist/esm-es5/stzh-readspeaker.entry.js +1 -1
  227. package/dist/esm-es5/stzh-row.entry.js +1 -1
  228. package/dist/esm-es5/stzh-saptcha.entry.js +1 -1
  229. package/dist/esm-es5/stzh-section.entry.js +1 -1
  230. package/dist/esm-es5/stzh-skiplink.entry.js +1 -1
  231. package/dist/esm-es5/stzh-sortable.entry.js +2 -2
  232. package/dist/esm-es5/stzh-status.entry.js +1 -1
  233. package/dist/esm-es5/stzh-table.entry.js +1 -1
  234. package/dist/esm-es5/stzh-toggle.entry.js +1 -1
  235. package/dist/esm-es5/stzh-tooltip.entry.js +1 -1
  236. package/dist/esm-es5/stzh-upload.entry.js +1 -1
  237. package/dist/esm-es5/stzh-vbz-linechip.entry.js +1 -1
  238. package/dist/esm-es5/stzh-vbz-majorticker.entry.js +1 -1
  239. package/dist/esm-es5/stzh-vbz-ticker.entry.js +1 -1
  240. package/dist/esm-es5/stzh-visuallyhidden.entry.js +1 -1
  241. package/dist/esm-es5/stzh-vspace.entry.js +1 -1
  242. package/dist/stzh-components/assets/i18n/de.json +7 -2
  243. package/dist/stzh-components/assets/i18n/en.json +7 -2
  244. package/dist/stzh-components/assets/icons/mono/recycling-outline.svg +11 -0
  245. package/dist/stzh-components/assets/icons/mono/recycling.svg +10 -0
  246. package/dist/stzh-components/assets/icons/mono/smartphone.svg +10 -0
  247. package/dist/stzh-components/assets/icons/mono/target.svg +11 -0
  248. package/dist/stzh-components/assets/svgsprites/symbol/sprite.symbol.html +63 -11
  249. package/dist/stzh-components/assets/svgsprites/symbol/svg/sprite.symbol.svg +1 -1
  250. package/dist/stzh-components/{p-32988d74.entry.js → p-001b7d10.entry.js} +1 -1
  251. package/dist/stzh-components/{p-0837657c.entry.js → p-08a564af.entry.js} +1 -1
  252. package/dist/stzh-components/{p-fd16e20e.system.entry.js → p-0b8de542.system.entry.js} +1 -1
  253. package/dist/stzh-components/{p-8db4279d.system.entry.js → p-0bbbbe85.system.entry.js} +1 -1
  254. package/dist/stzh-components/p-0d5522dc.system.entry.js +1 -0
  255. package/dist/stzh-components/{p-33d033a3.system.entry.js → p-0efe125f.system.entry.js} +1 -1
  256. package/dist/stzh-components/{p-87ab53c4.system.entry.js → p-0fc06049.system.entry.js} +1 -1
  257. package/dist/stzh-components/p-0fc83964.system.entry.js +1 -0
  258. package/dist/stzh-components/{p-08d4ed80.entry.js → p-13b3500e.entry.js} +1 -1
  259. package/dist/stzh-components/p-13f44000.entry.js +1 -0
  260. package/dist/stzh-components/{p-65444117.system.entry.js → p-17c6c1db.system.entry.js} +1 -1
  261. package/dist/stzh-components/{p-b34774e7.entry.js → p-190de4de.entry.js} +1 -1
  262. package/dist/stzh-components/{p-b2c8c31e.system.entry.js → p-19bff884.system.entry.js} +1 -1
  263. package/dist/stzh-components/{p-debb00e6.entry.js → p-216577b4.entry.js} +1 -1
  264. package/dist/stzh-components/{p-6edd58a4.system.entry.js → p-27fd6c6f.system.entry.js} +1 -1
  265. package/dist/stzh-components/{p-bdba7714.entry.js → p-2818488f.entry.js} +1 -1
  266. package/dist/stzh-components/{p-fba76dba.entry.js → p-29427863.entry.js} +1 -1
  267. package/dist/stzh-components/{p-d8471675.entry.js → p-2b338050.entry.js} +1 -1
  268. package/dist/stzh-components/p-2cf1ae40.system.entry.js +1 -0
  269. package/dist/stzh-components/{p-fa8651dd.entry.js → p-2e559062.entry.js} +1 -1
  270. package/dist/stzh-components/{p-11d0c8f3.entry.js → p-332e4fd3.entry.js} +1 -1
  271. package/dist/stzh-components/{p-c863ffd0.system.entry.js → p-33c0229f.system.entry.js} +1 -1
  272. package/dist/stzh-components/p-373f79e8.entry.js +1 -0
  273. package/dist/stzh-components/{p-b651f251.entry.js → p-3ac93a01.entry.js} +1 -1
  274. package/dist/stzh-components/{p-c7c17bb7.system.entry.js → p-3b27a43f.system.entry.js} +2 -2
  275. package/dist/stzh-components/{p-1cde29ea.entry.js → p-3d8317b5.entry.js} +1 -1
  276. package/dist/stzh-components/{p-48bbcc26.system.entry.js → p-45bab70d.system.entry.js} +1 -1
  277. package/dist/stzh-components/{p-3f03fd94.system.entry.js → p-48b5b697.system.entry.js} +1 -1
  278. package/dist/stzh-components/{p-ece7ad4d.system.entry.js → p-4c6989ae.system.entry.js} +1 -1
  279. package/dist/stzh-components/{p-bb2e1dda.entry.js → p-552f49c4.entry.js} +1 -1
  280. package/dist/stzh-components/{p-562394a9.system.entry.js → p-55d23a3c.system.entry.js} +1 -1
  281. package/dist/stzh-components/{p-07772cd7.system.entry.js → p-560f96f0.system.entry.js} +1 -1
  282. package/dist/stzh-components/{p-f48a2b00.system.entry.js → p-56b9cc3c.system.entry.js} +1 -1
  283. package/dist/stzh-components/{p-33946fed.system.entry.js → p-58d886cb.system.entry.js} +1 -1
  284. package/dist/stzh-components/p-5975c355.system.entry.js +1 -0
  285. package/dist/stzh-components/p-5987573e.system.entry.js +1 -0
  286. package/dist/stzh-components/{p-68a8b7b7.system.entry.js → p-5997e418.system.entry.js} +1 -1
  287. package/dist/stzh-components/p-59c323ce.entry.js +1 -0
  288. package/dist/stzh-components/{p-49968bbf.entry.js → p-5a02ef03.entry.js} +1 -1
  289. package/dist/stzh-components/{p-1c88ceff.system.entry.js → p-5a354428.system.entry.js} +1 -1
  290. package/dist/stzh-components/{p-0a71fbac.entry.js → p-5bd2849d.entry.js} +1 -1
  291. package/dist/stzh-components/{p-4a398453.system.entry.js → p-61aac051.system.entry.js} +1 -1
  292. package/dist/stzh-components/{p-ade1ebcf.system.entry.js → p-6305db38.system.entry.js} +1 -1
  293. package/dist/stzh-components/{p-f610f725.entry.js → p-6354fee3.entry.js} +1 -1
  294. package/dist/stzh-components/{p-95eb03b2.entry.js → p-638bedfa.entry.js} +1 -1
  295. package/dist/stzh-components/{p-9c0494a6.system.js → p-63d89b96.system.js} +1 -1
  296. package/dist/stzh-components/{p-33d75303.entry.js → p-63d8db7b.entry.js} +1 -1
  297. package/dist/stzh-components/{p-818634d2.entry.js → p-64b4cc74.entry.js} +1 -1
  298. package/dist/stzh-components/p-653c6bbc.entry.js +1 -0
  299. package/dist/stzh-components/{p-8a60addb.entry.js → p-67f906b1.entry.js} +1 -1
  300. package/dist/stzh-components/{p-f44f4d26.system.entry.js → p-69c3187f.system.entry.js} +1 -1
  301. package/dist/stzh-components/{p-95a297aa.entry.js → p-69f4a27e.entry.js} +1 -1
  302. package/dist/stzh-components/p-6a81e64b.entry.js +1 -0
  303. package/dist/stzh-components/p-6a873872.entry.js +1 -0
  304. package/dist/stzh-components/{p-03b16275.entry.js → p-72f29f07.entry.js} +1 -1
  305. package/dist/stzh-components/p-75cdc8a6.system.entry.js +1 -0
  306. package/dist/stzh-components/{p-6fc271d0.system.entry.js → p-7ad87d98.system.entry.js} +1 -1
  307. package/dist/stzh-components/p-7d8c9866.entry.js +1 -0
  308. package/dist/stzh-components/{p-1cebd703.entry.js → p-7f9f9a8d.entry.js} +1 -1
  309. package/dist/stzh-components/{p-7d098987.entry.js → p-83b1e379.entry.js} +1 -1
  310. package/dist/stzh-components/{p-aec2d2d1.system.entry.js → p-851e0caa.system.entry.js} +1 -1
  311. package/dist/stzh-components/{p-1f15a4e0.system.entry.js → p-86bc421e.system.entry.js} +1 -1
  312. package/dist/stzh-components/{p-690d14cd.entry.js → p-88e0f453.entry.js} +1 -1
  313. package/dist/stzh-components/{p-0338cec3.system.entry.js → p-89274cd5.system.entry.js} +1 -1
  314. package/dist/stzh-components/{p-346e26f2.system.entry.js → p-8a9e588e.system.entry.js} +1 -1
  315. package/dist/stzh-components/{p-66556f67.entry.js → p-8aebb240.entry.js} +1 -1
  316. package/dist/stzh-components/{p-f1a58a7c.system.entry.js → p-8cbc987f.system.entry.js} +1 -1
  317. package/dist/stzh-components/{p-0ae3e066.system.entry.js → p-8d0da18d.system.entry.js} +1 -1
  318. package/dist/stzh-components/{p-56fccfa3.system.entry.js → p-8d547247.system.entry.js} +1 -1
  319. package/dist/stzh-components/{p-b281b653.entry.js → p-8f16b0ac.entry.js} +2 -2
  320. package/dist/stzh-components/{p-85d78e08.entry.js → p-938ef748.entry.js} +1 -1
  321. package/dist/stzh-components/{p-65282c9d.js → p-93e8e31f.js} +1 -1
  322. package/dist/stzh-components/{p-e9ca8ddc.entry.js → p-961cb979.entry.js} +1 -1
  323. package/dist/stzh-components/{p-98afd4b0.system.entry.js → p-981b2629.system.entry.js} +1 -1
  324. package/dist/stzh-components/p-9bda100f.system.js +1 -0
  325. package/dist/stzh-components/{p-0ec28130.system.entry.js → p-9c72f491.system.entry.js} +1 -1
  326. package/dist/stzh-components/{p-8cf287d8.system.entry.js → p-9fb4da92.system.entry.js} +1 -1
  327. package/dist/stzh-components/{p-409c0d50.entry.js → p-a448f5a5.entry.js} +1 -1
  328. package/dist/stzh-components/{p-96fd158c.entry.js → p-a646c09a.entry.js} +1 -1
  329. package/dist/stzh-components/p-a6627504.entry.js +1 -0
  330. package/dist/stzh-components/{p-6c3b2508.system.entry.js → p-a67e09cd.system.entry.js} +1 -1
  331. package/dist/stzh-components/{p-378be0be.system.entry.js → p-a7c35778.system.entry.js} +1 -1
  332. package/dist/stzh-components/{p-c8bc2812.entry.js → p-a7ee2636.entry.js} +1 -1
  333. package/dist/stzh-components/{p-632d9076.system.entry.js → p-a99d3e97.system.entry.js} +1 -1
  334. package/dist/stzh-components/{p-148de4e6.entry.js → p-ab246b66.entry.js} +1 -1
  335. package/dist/stzh-components/{p-936cc626.system.entry.js → p-ab455116.system.entry.js} +1 -1
  336. package/dist/stzh-components/p-af2664fc.system.entry.js +1 -0
  337. package/dist/stzh-components/p-b084fcbf.system.entry.js +1 -0
  338. package/dist/stzh-components/p-b550feaa.system.entry.js +1 -0
  339. package/dist/stzh-components/{p-a760352a.system.entry.js → p-b636a18a.system.entry.js} +1 -1
  340. package/dist/stzh-components/{p-3ed69b16.entry.js → p-b9295dc2.entry.js} +1 -1
  341. package/dist/stzh-components/{p-f2050d1e.entry.js → p-b9382599.entry.js} +1 -1
  342. package/dist/stzh-components/{p-46f301c0.entry.js → p-b9a027aa.entry.js} +1 -1
  343. package/dist/stzh-components/{p-e4347cfe.entry.js → p-b9c3f3cc.entry.js} +1 -1
  344. package/dist/stzh-components/{p-7e3924a0.system.entry.js → p-ba94e315.system.entry.js} +1 -1
  345. package/dist/stzh-components/{p-7d62dfeb.system.entry.js → p-bd178c32.system.entry.js} +1 -1
  346. package/dist/stzh-components/{p-e972a44f.system.entry.js → p-be461e19.system.entry.js} +1 -1
  347. package/dist/stzh-components/{p-30b347ee.system.js → p-bf0fdd23.system.js} +2 -2
  348. package/dist/stzh-components/{p-da063c7e.system.entry.js → p-c013a00b.system.entry.js} +1 -1
  349. package/dist/stzh-components/{p-983f6070.entry.js → p-c1337453.entry.js} +1 -1
  350. package/dist/stzh-components/{p-915e8ad6.entry.js → p-c3d93395.entry.js} +1 -1
  351. package/dist/stzh-components/{p-c6cad5ed.system.entry.js → p-c456c04b.system.entry.js} +1 -1
  352. package/dist/stzh-components/{p-8bd3ba06.entry.js → p-c499e04d.entry.js} +1 -1
  353. package/dist/stzh-components/{p-e9bc3a43.entry.js → p-c4b7c2be.entry.js} +1 -1
  354. package/dist/stzh-components/{p-df422d36.entry.js → p-c58dd9de.entry.js} +1 -1
  355. package/dist/stzh-components/{p-7d2237ca.entry.js → p-c692e405.entry.js} +1 -1
  356. package/dist/stzh-components/{p-4e9bfeb8.system.entry.js → p-c83e4fec.system.entry.js} +1 -1
  357. package/dist/stzh-components/p-ca062c11.system.js +1 -0
  358. package/dist/stzh-components/{p-586cae98.entry.js → p-ce070ccd.entry.js} +1 -1
  359. package/dist/stzh-components/{p-b3b5ee7e.entry.js → p-ce28428b.entry.js} +1 -1
  360. package/dist/stzh-components/p-cfaac121.js +1 -0
  361. package/dist/stzh-components/{p-04d7b18f.entry.js → p-d0aa9d3b.entry.js} +1 -1
  362. package/dist/stzh-components/{p-5ea652ae.system.entry.js → p-d11a70e2.system.entry.js} +1 -1
  363. package/dist/stzh-components/p-d1dba399.system.entry.js +1 -0
  364. package/dist/stzh-components/p-d2b5e066.entry.js +1 -0
  365. package/dist/stzh-components/{p-58ffc722.system.entry.js → p-d54f04c8.system.entry.js} +1 -1
  366. package/dist/stzh-components/p-d645d645.entry.js +1 -0
  367. package/dist/stzh-components/{p-006135ed.system.entry.js → p-d6c07494.system.entry.js} +1 -1
  368. package/dist/stzh-components/{p-cf162e67.entry.js → p-d7893dfd.entry.js} +1 -1
  369. package/dist/stzh-components/{p-73194e28.entry.js → p-d9643cc4.entry.js} +1 -1
  370. package/dist/stzh-components/{p-03e2634c.entry.js → p-da7b363e.entry.js} +1 -1
  371. package/dist/stzh-components/{p-58917ce2.entry.js → p-db5363ef.entry.js} +1 -1
  372. package/dist/stzh-components/p-de017b87.system.entry.js +1 -0
  373. package/dist/stzh-components/{p-ec3d4dd4.entry.js → p-e009bfdc.entry.js} +1 -1
  374. package/dist/stzh-components/{p-fc9c4fc3.system.entry.js → p-e213663c.system.entry.js} +1 -1
  375. package/dist/stzh-components/{p-7a6e347d.system.entry.js → p-e7a84e53.system.entry.js} +1 -1
  376. package/dist/stzh-components/{p-14d728f0.entry.js → p-ee22256f.entry.js} +1 -1
  377. package/dist/stzh-components/{p-670d4834.entry.js → p-f1356a85.entry.js} +1 -1
  378. package/dist/stzh-components/{p-82e6148a.system.entry.js → p-f167eaa4.system.entry.js} +1 -1
  379. package/dist/stzh-components/{p-3c799247.entry.js → p-f2ee016a.entry.js} +1 -1
  380. package/dist/stzh-components/{p-1ace5d80.entry.js → p-f788a468.entry.js} +1 -1
  381. package/dist/stzh-components/{p-99533090.system.entry.js → p-f832e938.system.entry.js} +1 -1
  382. package/dist/stzh-components/{p-32b78d65.js → p-f84fa2a4.js} +1 -1
  383. package/dist/stzh-components/{p-80db7aa6.system.entry.js → p-fa56fc0d.system.entry.js} +1 -1
  384. package/dist/stzh-components/{p-88a4f756.system.entry.js → p-fc13d017.system.entry.js} +1 -1
  385. package/dist/stzh-components/{p-b4fc71ff.system.entry.js → p-fc6b4f91.system.entry.js} +1 -1
  386. package/dist/stzh-components/p-fdd1998f.entry.js +1 -0
  387. package/dist/stzh-components/{p-370b82e7.system.entry.js → p-fdf0b4bc.system.entry.js} +1 -1
  388. package/dist/stzh-components/{p-90a10825.system.entry.js → p-ffa1e9dd.system.entry.js} +1 -1
  389. package/dist/stzh-components/stzh-components.css +1 -1
  390. package/dist/stzh-components/stzh-components.esm.js +1 -1
  391. package/dist/stzh-components/stzh-components.js +1 -1
  392. package/dist/types/components/stzh-actionset/stzh-actionset.localization.d.ts +5 -0
  393. package/dist/types/components/{stzh-servicecard/stzh-servicecard.localization.d.ts → stzh-card/stzh-card.localization.d.ts} +2 -1
  394. package/dist/types/components/{stzh-servicecard-list/stzh-servicecard-list.localization.d.ts → stzh-card-list/stzh-card-list.localization.d.ts} +1 -1
  395. package/dist/types/components.d.ts +458 -245
  396. package/dist/types/index.d.ts +56 -14
  397. package/dist/vscode-data.json +346 -131
  398. package/package.json +1 -1
  399. package/dist/cjs/stzh-servicecard-list.cjs.entry.js +0 -73
  400. package/dist/cjs/stzh-servicecard.cjs.entry.js +0 -234
  401. package/dist/collection/components/stzh-servicecard/stzh-servicecard.css +0 -558
  402. package/dist/collection/components/stzh-servicecard/stzh-servicecard.stories.js +0 -73
  403. package/dist/collection/components/stzh-servicecard-list/stzh-servicecard-list.stories.js +0 -116
  404. package/dist/components/stzh-servicecard-list.js +0 -117
  405. package/dist/components/stzh-servicecard.js +0 -305
  406. package/dist/esm/stzh-servicecard-list.entry.js +0 -69
  407. package/dist/esm/stzh-servicecard.entry.js +0 -230
  408. package/dist/esm-es5/app-globals-c42494e9.js +0 -1
  409. package/dist/esm-es5/stzh-servicecard-list.entry.js +0 -1
  410. package/dist/esm-es5/stzh-servicecard.entry.js +0 -1
  411. package/dist/stzh-components/p-2b11d549.system.entry.js +0 -1
  412. package/dist/stzh-components/p-34190502.entry.js +0 -1
  413. package/dist/stzh-components/p-3ebd2c03.js +0 -1
  414. package/dist/stzh-components/p-5e0cccc9.system.entry.js +0 -1
  415. package/dist/stzh-components/p-63b5068a.system.entry.js +0 -1
  416. package/dist/stzh-components/p-7921db30.system.entry.js +0 -1
  417. package/dist/stzh-components/p-79bfc485.entry.js +0 -1
  418. package/dist/stzh-components/p-7bb1bd3b.entry.js +0 -1
  419. package/dist/stzh-components/p-a7253852.entry.js +0 -1
  420. package/dist/stzh-components/p-a86c6487.entry.js +0 -1
  421. package/dist/stzh-components/p-aaa2e48f.system.js +0 -1
  422. package/dist/stzh-components/p-b35b0270.entry.js +0 -1
  423. package/dist/stzh-components/p-c581e798.system.entry.js +0 -1
  424. package/dist/stzh-components/p-e12db90a.entry.js +0 -1
  425. package/dist/stzh-components/p-e2ce48f1.system.entry.js +0 -1
  426. package/dist/stzh-components/p-ee5ceac4.entry.js +0 -1
  427. package/dist/stzh-components/p-f0ca6848.system.entry.js +0 -1
  428. package/dist/stzh-components/p-f21440b3.entry.js +0 -1
  429. package/dist/stzh-components/p-faf20030.system.js +0 -1
  430. package/dist/stzh-components/p-fce0e218.system.entry.js +0 -1
  431. package/dist/stzh-components/p-fe9f8a09.system.entry.js +0 -1
@@ -0,0 +1,160 @@
1
+ import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-84f71a43.js';
2
+ import { f as fetchTranslations } from './translation-utils-2623783f.js';
3
+ import { m as media } from './media-utils-9b041ceb.js';
4
+
5
+ const stzhActionsetCss = ".sc-stzh-actionset-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-actionset-h{display:none}.sc-stzh-actionset-h *.sc-stzh-actionset,.sc-stzh-actionset-h *.sc-stzh-actionset::before,.sc-stzh-actionset-h *.sc-stzh-actionset::after{-webkit-box-sizing:border-box;box-sizing:border-box}.stzh-actionset__actions.sc-stzh-actionset{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.stzh-actionset__actions-wrapper.sc-stzh-actionset{position:relative;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;overflow:hidden}.stzh-actionset__action.sc-stzh-actionset:not(:last-child){margin-right:var(--stzh-space-xsmall)}.stzh-actionset__action-popover.sc-stzh-actionset{opacity:0}.stzh-actionset--has-collapsed-items.sc-stzh-actionset .stzh-actionset__action-popover.sc-stzh-actionset{--width:auto;opacity:1}@media screen and (max-width: 599px){.stzh-actionset--stack.sc-stzh-actionset .stzh-actionset__actions.sc-stzh-actionset{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:stretch;align-items:stretch}}@media screen and (max-width: 599px){.stzh-actionset--stack.sc-stzh-actionset .stzh-actionset__actions-wrapper.sc-stzh-actionset{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:stretch;align-items:stretch}}@media screen and (max-width: 599px){.stzh-actionset--stack.sc-stzh-actionset .stzh-actionset__action.sc-stzh-actionset:not(:last-child){margin-bottom:var(--stzh-space-xsmall);margin-right:0}}@media screen and (max-width: 599px){.stzh-actionset--stack.sc-stzh-actionset .stzh-actionset__action-popover.sc-stzh-actionset{margin-top:var(--stzh-space-xsmall)}}@media screen and (max-width: 599px){.stzh-actionset--stack.sc-stzh-actionset:not(.stzh-actionset--has-collapsed-items) .stzh-actionset__action-popover.sc-stzh-actionset{display:none}}";
6
+
7
+ const StzhActionset = class {
8
+ constructor(hostRef) {
9
+ registerInstance(this, hostRef);
10
+ this.stzhActionClick = createEvent(this, "stzhActionClick", 7);
11
+ /** Variant determining what position the action buttons are */
12
+ this.variant = "stack";
13
+ /** Popover button variant */
14
+ this.popoverButtonVariant = "";
15
+ /** Popover button size */
16
+ this.popoverButtonSize = "";
17
+ /** Popover placement */
18
+ this.popoverPlacement = "bottom-end";
19
+ /** Card header actions */
20
+ this.actions = [];
21
+ this._actions = [];
22
+ this.actionsCollapsed = [];
23
+ this.actionClick = (action) => {
24
+ this.stzhActionClick.emit({
25
+ component: "stzh-actionset",
26
+ action
27
+ });
28
+ };
29
+ this.update = () => {
30
+ this.isSmall = media("small").matches;
31
+ this.isMedium = media("medium").matches;
32
+ if (!this.actionsElement) {
33
+ return;
34
+ }
35
+ Object.assign(this.actionsElement.style, {
36
+ width: null,
37
+ height: null
38
+ });
39
+ let newActionsVisible = 0;
40
+ if (this.variant === "overflow" && this.isMedium
41
+ || this.variant === "stack" && this.isSmall) {
42
+ this.dynamicActions = true;
43
+ let newActionsHeight = 0;
44
+ let newActionsWidth = 0;
45
+ // update height and width
46
+ Array.from(this.actionsElement.children).forEach((child) => {
47
+ // check which item is visible and
48
+ if (child.offsetTop === 0) {
49
+ newActionsVisible++;
50
+ const style = getComputedStyle(child);
51
+ const marginLeft = parseInt(style.marginLeft);
52
+ const marginRight = parseInt(style.marginRight);
53
+ const marginTop = parseInt(style.marginTop);
54
+ const marginBottom = parseInt(style.marginBottom);
55
+ const childWidth = child.offsetWidth + marginLeft + marginRight;
56
+ const childHeight = child.offsetHeight + marginTop + marginBottom;
57
+ if (newActionsHeight < childHeight) {
58
+ newActionsHeight = childHeight;
59
+ }
60
+ newActionsWidth = newActionsWidth + childWidth;
61
+ }
62
+ });
63
+ Object.assign(this.actionsElement.style, {
64
+ width: `${newActionsWidth + 1}px`,
65
+ height: `${newActionsHeight}px`
66
+ });
67
+ }
68
+ else {
69
+ this.dynamicActions = false;
70
+ if (this.variant === "overflow") {
71
+ newActionsVisible = 0;
72
+ }
73
+ else if (this.variant === "stack") {
74
+ newActionsVisible = this._actions.length <= 3 ? this._actions.length : 2;
75
+ }
76
+ }
77
+ this.actionsCollapsed = this._actions.slice(newActionsVisible);
78
+ };
79
+ }
80
+ actionsWatcher(newValue) {
81
+ if (typeof newValue === "string") {
82
+ this._actions = JSON.parse(newValue);
83
+ }
84
+ else {
85
+ this._actions = newValue;
86
+ }
87
+ }
88
+ // handleLoad(e) {
89
+ // console.log(e);
90
+ // requestAnimationFrame(() => {
91
+ // requestAnimationFrame(() => {
92
+ // this.update();
93
+ // });
94
+ // });
95
+ // }
96
+ handleResize() {
97
+ if (this.debounceResize) {
98
+ window.cancelAnimationFrame(this.debounceResize);
99
+ }
100
+ this.debounceResize = requestAnimationFrame(this.update);
101
+ }
102
+ async componentWillLoad() {
103
+ this.actionsWatcher(this.actions);
104
+ if (!this.localization) {
105
+ this.localization = await fetchTranslations(this.element, "actionset");
106
+ }
107
+ }
108
+ componentDidLoad() {
109
+ this.update();
110
+ }
111
+ render() {
112
+ const classes = {
113
+ "stzh-actionset": true,
114
+ // "stzh-actionset--has-dynamic-actions": this.dynamicActions,
115
+ "stzh-actionset--has-collapsed-items": this.actionsCollapsed.length > 0,
116
+ [`stzh-actionset--${this.variant}`]: !!this.variant
117
+ };
118
+ const Action = (action) => (h("stzh-button", { class: {
119
+ "stzh-actionset__action": true,
120
+ "is-button": true,
121
+ // "show-medium": !action.onlyCollapseText,
122
+ // "hide-when-collapsed": !action.onlyCollapseText,
123
+ // "hide-text-when-collapsed": action.onlyCollapseText
124
+ }, role: "listitem", icon: action.icon, iconPosition: action.iconPosition, iconOnly: action.iconOnly, badge: action.badge, variant: action.variant
125
+ ? action.variant
126
+ : (this.variant === "stack" ? "secondary" : "tertiary"), size: action.size
127
+ ? action.size
128
+ : (this.variant === "stack" ? "default" : "tiny"), badgePosition: "icon", onClick: () => { this.actionClick(action); } }, h("span", { class: {
129
+ // "show-medium": action.onlyCollapseText,
130
+ // "hide-when-collapsed": action.onlyCollapseText
131
+ } }, action.label)));
132
+ return (h(Host, { "has-collapsed-items": this.actionsCollapsed.length > 0 }, h("div", { class: classes }, h("div", { class: "stzh-actionset__actions", role: "list" }, h("div", { ref: (el) => (this.actionsElement = el), class: "stzh-actionset__actions-wrapper" }, this._actions.map(action => ((this.dynamicActions
133
+ || (!this.dynamicActions &&
134
+ this.actionsCollapsed.indexOf(action) === -1))
135
+ &&
136
+ (action.tooltipContent
137
+ ?
138
+ h("stzh-tooltip", { strategy: "fixed", content: action.tooltipContent }, Action(action))
139
+ :
140
+ Action(action))))), h("stzh-popover", { label: this.variant === "stack"
141
+ ? this.localization.furtherActions
142
+ : (!this.isMedium ? this.localization.actions : ""), strategy: "fixed", placement: this.popoverPlacement, class: "stzh-actionset__action-popover" }, h("stzh-button", { fullwidth: true, disabled: this.actionsCollapsed.length === 0, class: "stzh-actionset__action is-further", variant: this.popoverButtonVariant !== ""
143
+ ? this.popoverButtonVariant
144
+ : (this.variant === "stack" ? "secondary" : "tertiary"), size: this.popoverButtonSize !== ""
145
+ ? this.popoverButtonSize
146
+ : (this.variant === "stack" ? "default" : "tiny"), icon: this.variant === "stack" ? "angle-down" : "more-vertical", iconOnly: this.variant === "overflow" && this.isMedium, iconPosition: "right", label: this.variant === "stack"
147
+ ? this.localization.furtherActions
148
+ : (!this.isMedium ? this.localization.actions : "") }), h("stzh-menu", { slot: "content" }, this.actionsCollapsed.map(action => (h("stzh-menu-item", {
149
+ // class="hide-medium show-when-collapsed"
150
+ icon: action.icon, badge: action.badge, onClick: () => { this.actionClick(action); }
151
+ }, action.label)))))))));
152
+ }
153
+ get element() { return getElement(this); }
154
+ static get watchers() { return {
155
+ "actions": ["actionsWatcher"]
156
+ }; }
157
+ };
158
+ StzhActionset.style = stzhActionsetCss;
159
+
160
+ export { StzhActionset as stzh_actionset };
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, a as Host, g as getElement } from './index-0e6d34c6.js';
1
+ import { r as registerInstance, h, a as Host, g as getElement } from './index-84f71a43.js';
2
2
  import { s as setPropsIfNull } from './utils-68a28fce.js';
3
3
 
4
4
  const stzhAppnavCss = ".sc-stzh-appnav-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-appnav-h{display:none}.sc-stzh-appnav-h *.sc-stzh-appnav,.sc-stzh-appnav-h *.sc-stzh-appnav::before,.sc-stzh-appnav-h *.sc-stzh-appnav::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-appnav-h{width:100%}.sc-stzh-appnav-h .sc-stzh-appnav-s>stzh-link{--text-decoration:none;--hover-text-decoration:none;letter-spacing:0.01em}.sc-stzh-appnav-h .sc-stzh-appnav-s>stzh-link .stzh-link__inner{-ms-flex-direction:column;flex-direction:column}@media screen and (min-width: 600px){.sc-stzh-appnav-h .sc-stzh-appnav-s>stzh-link .stzh-link__inner{-ms-flex-direction:row;flex-direction:row}}.sc-stzh-appnav-h .sc-stzh-appnav-s>stzh-link .stzh-link__text{font-size:var(--stzh-font-nano-font-size);line-height:var(--stzh-font-nano-text-line-height)}@media screen and (min-width: 600px){.sc-stzh-appnav-h .sc-stzh-appnav-s>stzh-link .stzh-link__text{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height)}}.sc-stzh-appnav-h .sc-stzh-appnav-s>stzh-link .stzh-link.stzh-link--has-icon .stzh-link__icon-wrapper+.stzh-link__text:not(:empty){margin-left:0}@media screen and (min-width: 600px){.sc-stzh-appnav-h .sc-stzh-appnav-s>stzh-link .stzh-link.stzh-link--has-icon .stzh-link__icon-wrapper+.stzh-link__text:not(:empty){margin-left:var(--stzh-space-xsmall)}}.sc-stzh-appnav-h .sc-stzh-appnav-s>stzh-link .stzh-link.stzh-link--badge-position-icon.stzh-link--has-icon.stzh-link--has-badge .stzh-link__icon-wrapper+.stzh-link__text:not(:empty){margin-left:0}@media screen and (min-width: 600px){.sc-stzh-appnav-h .sc-stzh-appnav-s>stzh-link .stzh-link.stzh-link--badge-position-icon.stzh-link--has-icon.stzh-link--has-badge .stzh-link__icon-wrapper+.stzh-link__text:not(:empty){margin-left:var(--stzh-space-small)}}@media screen and (max-width: 599px){.sc-stzh-appnav-h .sc-stzh-appnav-s>stzh-link .stzh-link__icon-wrapper{height:auto}}@media screen and (min-width: 600px){.sc-stzh-appnav-h .sc-stzh-appnav-s>*:not(:last-child){margin-right:var(--stzh-space-xlarge)}}.stzh-appnav.sc-stzh-appnav{display:-ms-flexbox;display:flex;background-color:var(--stzh-color-white);height:4rem;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;text-align:center}@media screen and (min-width: 600px){.stzh-appnav.sc-stzh-appnav{height:3rem;text-align:left}}.stzh-appnav__items.sc-stzh-appnav{display:-ms-flexbox;display:flex;-ms-flex-pack:distribute;justify-content:space-around;-ms-flex-positive:1;flex-grow:1}@media screen and (min-width: 600px){.stzh-appnav__items.sc-stzh-appnav{-ms-flex-positive:0;flex-grow:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start}}.stzh-appnav__title.sc-stzh-appnav{font-family:var(--stzh-font-family-light);font-weight:var(--stzh-font-weight-light);font-style:normal;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);color:var(--stzh-base-color);text-decoration:none;white-space:nowrap;-webkit-transition:color var(--stzh-base-transition-animation-speed);transition:color var(--stzh-base-transition-animation-speed);margin-left:var(--stzh-space-small);display:none}@media screen and (min-width: 800px){.stzh-appnav__title.sc-stzh-appnav{display:-ms-flexbox;display:flex}}.stzh-appnav__title.sc-stzh-appnav:hover{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-appnav__title.sc-stzh-appnav:hover .stzh-appnav__status.sc-stzh-appnav{border-color:rgba(7, 2, 80, 0.4)}.stzh-appnav__status.sc-stzh-appnav{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;-webkit-box-sizing:content-box;box-sizing:content-box;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;height:0.875rem;min-width:0.625rem;font-size:0.625rem;line-height:1.4;border-radius:0.875rem;padding:0.0625rem 0.375rem;border:0.0625rem solid rgba(115, 115, 115, 0.25);color:inherit;-webkit-transform:translateY(calc(var(--stzh-space-xsmall) * -1));transform:translateY(calc(var(--stzh-space-xsmall) * -1));margin-left:var(--stzh-space-xxsmall);-webkit-transition:border-color var(--stzh-base-transition-animation-speed);transition:border-color var(--stzh-base-transition-animation-speed)}";
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-0e6d34c6.js';
1
+ import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-84f71a43.js';
2
2
  import { f as fetchTranslations, t as tc } from './translation-utils-2623783f.js';
3
3
  import { p as parseISODate, a as printISODate } from './date-utils-be83fff1.js';
4
4
  import { c as createGlobalAdapter } from './date-adapter-cbc340fa.js';
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, a as Host, c as createEvent, F as Fragment, g as getElement } from './index-0e6d34c6.js';
1
+ import { r as registerInstance, h, a as Host, c as createEvent, F as Fragment, g as getElement } from './index-84f71a43.js';
2
2
  import { h as hasSlot } from './utils-68a28fce.js';
3
3
 
4
4
  const stzhBadgeCss = ".sc-stzh-badge-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-badge-h{display:none}.sc-stzh-badge-h *.sc-stzh-badge,.sc-stzh-badge-h *.sc-stzh-badge::before,.sc-stzh-badge-h *.sc-stzh-badge::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-badge-h{display:-ms-inline-flexbox;display:inline-flex}.stzh-badge.sc-stzh-badge{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal;-webkit-box-sizing:content-box;box-sizing:content-box;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;min-width:0.625rem;font-size:0.625rem;line-height:1.4;-webkit-box-shadow:0 0 0 0.0625rem #fff;box-shadow:0 0 0 0.0625rem #fff;border-radius:0.875rem;padding:0.0625rem 0.375rem;background-color:var(--stzh-color-shiraz);color:var(--stzh-color-white);text-transform:uppercase}";
@@ -15,13 +15,14 @@ const StzhBadge = class {
15
15
  };
16
16
  StzhBadge.style = stzhBadgeCss;
17
17
 
18
- const stzhButtonCss = "@charset \"UTF-8\";.sc-stzh-button-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-button-h{display:none}.sc-stzh-button-h *.sc-stzh-button,.sc-stzh-button-h *.sc-stzh-button::before,.sc-stzh-button-h *.sc-stzh-button::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-button-h{--color:var(--stzh-color-white);--background-color:var(--stzh-color-primary, var(--stzh-color-zueriblue));--border-color:var(--stzh-color-primary, var(--stzh-color-zueriblue));--height:var(--stzh-form-input-height);--icon-size:var(--stzh-icon-size-small);--icon-text-margin:var(--stzh-space-small);--badge-icon-text-margin:calc(var(--icon-text-margin) + var(--stzh-space-xxsmall));--padding:var(--stzh-space-xsmall) var(--stzh-space-xlarge);--hover-color:var(--stzh-color-white);--hover-background-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));--hover-border-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));display:inline-block;border-radius:var(--stzh-button-border-radius)}[fullwidth].sc-stzh-button-h:not([fullwidth=false]){width:100%;display:block}[size=small].sc-stzh-button-h{--height:var(--stzh-form-input-small-height)}[size=tiny].sc-stzh-button-h{--height:var(--stzh-form-input-tiny-height);--icon-text-margin:var(--stzh-space-xsmall);--padding:var(--stzh-space-xxsmall) var(--stzh-space-medium)}[variant=secondary].sc-stzh-button-h{--color:var(--stzh-color-primary, var(--stzh-color-zueriblue));--background-color:var(--stzh-color-white)}[variant=input].sc-stzh-button-h{--color:var(--stzh-color-grey61);--background-color:transparent;--border-color:var(--stzh-color-grey61);--hover-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));--hover-background-color:transparent;--hover-border-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}[variant=tertiary].sc-stzh-button-h{--color:var(--stzh-color-primary, var(--stzh-color-zueriblue));--background-color:transparent;--border-color:transparent;--hover-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));--hover-background-color:var(--stzh-button-text-hover-background);--hover-border-color:transparent}[active].sc-stzh-button-h:not([active=false]){--color:var(--stzh-color-white);--background-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));--border-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));--hover-color:var(--stzh-color-white);--hover-background-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));--hover-border-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}[disabled].sc-stzh-button-h:not([disabled=false]){--border-color:var(--stzh-color-grey13);--background-color:var(--stzh-color-grey13);--hover-border-color:var(--stzh-color-grey13);--hover-background-color:var(--stzh-color-grey13)}[disabled].sc-stzh-button-h:not([disabled=false])[variant=secondary],[disabled].sc-stzh-button-h:not([disabled=false])[variant=input],[disabled].sc-stzh-button-h:not([disabled=false])[variant=tertiary]{--color:var(--stzh-color-grey25);--border-color:var(--stzh-color-grey13);--background-color:transparent;--hover-color:var(--stzh-color-grey25);--hover-border-color:var(--stzh-color-grey13);--hover-background-color:transparent}@-webkit-keyframes stzh-button-effect-cta{0%,20%,50%,80%,100%{-webkit-transform:translateX(0);transform:translateX(0)}40%{-webkit-transform:translateX(-0.5rem);transform:translateX(-0.5rem)}60%{-webkit-transform:translateX(-0.25rem);transform:translateX(-0.25rem)}}@keyframes stzh-button-effect-cta{0%,20%,50%,80%,100%{-webkit-transform:translateX(0);transform:translateX(0)}40%{-webkit-transform:translateX(-0.5rem);transform:translateX(-0.5rem)}60%{-webkit-transform:translateX(-0.25rem);transform:translateX(-0.25rem)}}.sc-stzh-button-h .sc-stzh-button-s>stzh-icon,.stzh-button__icon.sc-stzh-button{--size:var(--icon-size)}.stzh-button.sc-stzh-button{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);position:relative;overflow:visible;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;color:var(--color);padding:var(--padding);background-color:var(--background-color);-webkit-transition:all var(--stzh-base-transition-animation-speed);transition:all var(--stzh-base-transition-animation-speed);border:0.0625rem solid var(--border-color);cursor:pointer;text-decoration:none;width:100%;min-width:var(--height);height:var(--height);border-radius:var(--stzh-button-border-radius)}.stzh-button.sc-stzh-button:hover{border-color:var(--hover-border-color);background-color:var(--hover-background-color);color:var(--hover-color)}.stzh-button__inner.sc-stzh-button{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-button__icon-wrapper.sc-stzh-button{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:1em}.stzh-button__text.sc-stzh-button{white-space:nowrap}.stzh-button__icon-wrapper.sc-stzh-button:not(:empty)+.stzh-button__text.sc-stzh-button:not(:empty),.stzh-button__text.sc-stzh-button:not(:empty)+.stzh-button__icon-wrapper.sc-stzh-button:not(:empty){margin-left:var(--icon-text-margin)}.stzh-button__badge.sc-stzh-button{position:absolute;z-index:1;top:0;right:0}.stzh-button--size-small.sc-stzh-button,.stzh-button--size-tiny.sc-stzh-button{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height)}.stzh-button--badge-position-button.sc-stzh-button .stzh-button__icon-wrapper.sc-stzh-button{position:static}.stzh-button__badge.sc-stzh-button,.stzh-button--badge-position-button.sc-stzh-button .stzh-button__badge.sc-stzh-button{top:calc(var(--stzh-space-xsmall) * -1);right:calc(var(--stzh-space-xsmall) * -1)}.stzh-button--badge-position-icon.stzh-button--has-icon.sc-stzh-button .stzh-button__icon-wrapper.sc-stzh-button{position:relative}.stzh-button--badge-position-icon.stzh-button--has-icon.sc-stzh-button .stzh-button__badge.sc-stzh-button{top:calc(var(--stzh-space-xsmall) * -1);right:calc(var(--stzh-space-small) * -1)}.stzh-button--badge-position-icon.stzh-button--has-icon.stzh-button--has-badge.sc-stzh-button .stzh-button__icon-wrapper.sc-stzh-button:not(:empty)+.stzh-button__text.sc-stzh-button:not(:empty),.stzh-button--badge-position-icon.stzh-button--has-icon.stzh-button--has-badge.sc-stzh-button .stzh-button__text.sc-stzh-button:not(:empty)+.stzh-button__icon-wrapper.sc-stzh-button:not(:empty){margin-left:var(--badge-icon-text-margin)}.stzh-button--has-icon-only.sc-stzh-button{width:var(--height);height:var(--height);padding:0}.stzh-button--has-icon-only.sc-stzh-button .stzh-button__text.sc-stzh-button{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-button--effect-cta.sc-stzh-button:hover .stzh-button__icon-wrapper.sc-stzh-button{-webkit-animation:stzh-button-effect-cta 1s;animation:stzh-button-effect-cta 1s}.stzh-button--align-left.sc-stzh-button .stzh-button__inner.sc-stzh-button{-ms-flex-pack:start;justify-content:flex-start}.stzh-button--align-right.sc-stzh-button .stzh-button__inner.sc-stzh-button{-ms-flex-pack:end;justify-content:flex-end}.stzh-button--align-center.sc-stzh-button .stzh-button__inner.sc-stzh-button{-ms-flex-pack:center;justify-content:center}.stzh-button--align-space-between.sc-stzh-button .stzh-button__inner.sc-stzh-button{-ms-flex-pack:justify;justify-content:space-between}.stzh-button--is-disabled.sc-stzh-button{cursor:not-allowed}";
18
+ const stzhButtonCss = "@charset \"UTF-8\";.sc-stzh-button-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-button-h{display:none}.sc-stzh-button-h *.sc-stzh-button,.sc-stzh-button-h *.sc-stzh-button::before,.sc-stzh-button-h *.sc-stzh-button::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-button-h{--color:var(--stzh-color-white);--background-color:var(--stzh-color-primary, var(--stzh-color-zueriblue));--border-color:var(--stzh-color-primary, var(--stzh-color-zueriblue));--height:var(--stzh-form-input-height);--icon-size:var(--stzh-icon-size-small);--icon-text-margin:var(--stzh-space-small);--badge-icon-text-margin:calc(var(--icon-text-margin) + var(--stzh-space-xxsmall));--padding:var(--stzh-space-xsmall) var(--stzh-space-xlarge);--hover-color:var(--stzh-color-white);--hover-background-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));--hover-border-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));display:inline-block;border-radius:var(--stzh-button-border-radius)}[fullwidth].sc-stzh-button-h:not([fullwidth=false]){width:100%;display:block}[size=small].sc-stzh-button-h{--height:var(--stzh-form-input-small-height)}[size=tiny].sc-stzh-button-h{--height:var(--stzh-form-input-tiny-height);--icon-text-margin:var(--stzh-space-xsmall);--padding:var(--stzh-space-xxsmall) var(--stzh-space-medium)}[variant=secondary].sc-stzh-button-h{--color:var(--stzh-color-primary, var(--stzh-color-zueriblue));--background-color:var(--stzh-color-white)}[variant=input].sc-stzh-button-h{--color:var(--stzh-color-grey61);--background-color:transparent;--border-color:var(--stzh-color-grey61);--hover-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));--hover-background-color:transparent;--hover-border-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}[variant=tertiary].sc-stzh-button-h{--color:var(--stzh-color-primary, var(--stzh-color-zueriblue));--background-color:transparent;--border-color:transparent;--hover-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));--hover-background-color:var(--stzh-button-text-hover-background);--hover-border-color:transparent}[active].sc-stzh-button-h:not([active=false]){--color:var(--stzh-color-white);--background-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));--border-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));--hover-color:var(--stzh-color-white);--hover-background-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));--hover-border-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}[disabled].sc-stzh-button-h:not([disabled=false]){--border-color:var(--stzh-color-grey13);--background-color:var(--stzh-color-grey13);--hover-border-color:var(--stzh-color-grey13);--hover-background-color:var(--stzh-color-grey13)}[disabled].sc-stzh-button-h:not([disabled=false])[variant=secondary],[disabled].sc-stzh-button-h:not([disabled=false])[variant=input],[disabled].sc-stzh-button-h:not([disabled=false])[variant=tertiary]{--color:var(--stzh-color-grey25);--border-color:var(--stzh-color-grey13);--background-color:transparent;--hover-color:var(--stzh-color-grey25);--hover-border-color:var(--stzh-color-grey13);--hover-background-color:transparent}@-webkit-keyframes stzh-button-effect-cta{0%,20%,50%,80%,100%{-webkit-transform:translateX(0);transform:translateX(0)}40%{-webkit-transform:translateX(-0.5rem);transform:translateX(-0.5rem)}60%{-webkit-transform:translateX(-0.25rem);transform:translateX(-0.25rem)}}@keyframes stzh-button-effect-cta{0%,20%,50%,80%,100%{-webkit-transform:translateX(0);transform:translateX(0)}40%{-webkit-transform:translateX(-0.5rem);transform:translateX(-0.5rem)}60%{-webkit-transform:translateX(-0.25rem);transform:translateX(-0.25rem)}}.sc-stzh-button-h .sc-stzh-button-s>stzh-icon,.stzh-button__icon.sc-stzh-button{--size:var(--icon-size)}.stzh-button.sc-stzh-button{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);position:relative;z-index:0;overflow:visible;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;color:var(--color);padding:var(--padding);background-color:var(--background-color);-webkit-transition:all var(--stzh-base-transition-animation-speed);transition:all var(--stzh-base-transition-animation-speed);border:0.0625rem solid var(--border-color);cursor:pointer;text-decoration:none;width:100%;min-width:var(--height);height:var(--height);border-radius:var(--stzh-button-border-radius)}.stzh-button.sc-stzh-button:hover{border-color:var(--hover-border-color);background-color:var(--hover-background-color);color:var(--hover-color)}.stzh-button__inner.sc-stzh-button{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-button__icon-wrapper.sc-stzh-button{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:1em}.stzh-button__text.sc-stzh-button{white-space:nowrap}.stzh-button__icon-wrapper.sc-stzh-button:not(:empty)+.stzh-button__text.sc-stzh-button:not(:empty),.stzh-button__text.sc-stzh-button:not(:empty)+.stzh-button__icon-wrapper.sc-stzh-button:not(:empty){margin-left:var(--icon-text-margin)}.stzh-button__badge.sc-stzh-button{position:absolute;z-index:1;top:0;right:0}.stzh-button__input.sc-stzh-button{position:absolute;top:0;left:0;width:100%;height:100%;margin:0;z-index:-1;opacity:0;pointer-events:none}.stzh-button__mark.sc-stzh-button{border:0.0625rem solid var(--stzh-color-grey61);background-color:var(--stzh-color-white);width:1.5rem;height:1.5rem;-ms-flex-negative:0;flex-shrink:0;border-radius:50%;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-webkit-transition:border-color var(--stzh-base-transition-animation-speed);transition:border-color var(--stzh-base-transition-animation-speed);width:1.25rem;height:1.25rem;margin-right:var(--stzh-space-xsmall);border-color:currentColor}.stzh-button__mark.sc-stzh-button::before{content:\"\"}.stzh-button__check.sc-stzh-button{background-color:currentColor;color:var(--stzh-color-primary, var(--stzh-color-zueriblue));width:0.5rem;height:0.5rem;border-radius:50%;opacity:0}@media (forced-colors: active), (-ms-high-contrast: active){.stzh-button__check.sc-stzh-button{background-color:ButtonText}}.stzh-button__input.sc-stzh-button:checked:hover~.stzh-button__inner.sc-stzh-button .stzh-button__mark.sc-stzh-button .stzh-button__check.sc-stzh-button,.stzh-button__input.sc-stzh-button:checked:focus~.stzh-button__inner.sc-stzh-button .stzh-button__mark.sc-stzh-button .stzh-button__check.sc-stzh-button{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-button.sc-stzh-button:hover .stzh-button__mark.sc-stzh-button,.stzh-button__input.sc-stzh-button:focus:hover~.stzh-button__inner.sc-stzh-button .stzh-button__mark.sc-stzh-button,.stzh-button__input.sc-stzh-button:checked:hover~.stzh-button__inner.sc-stzh-button .stzh-button__mark.sc-stzh-button,.stzh-button__input.sc-stzh-button:checked:focus~.stzh-button__inner.sc-stzh-button .stzh-button__mark.sc-stzh-button{border-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-button__input.sc-stzh-button:focus~.stzh-button__inner.sc-stzh-button .stzh-button__mark.sc-stzh-button,.stzh-button__input.sc-stzh-button:checked~.stzh-button__inner.sc-stzh-button .stzh-button__mark.sc-stzh-button{border-color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-button__input.sc-stzh-button:checked~.stzh-button__inner.sc-stzh-button .stzh-button__mark.sc-stzh-button .stzh-button__check.sc-stzh-button{opacity:1}.stzh-button--is-disabled.sc-stzh-button .stzh-button__input.sc-stzh-button~.stzh-button__inner.sc-stzh-button .stzh-button__mark.sc-stzh-button .stzh-button__check.sc-stzh-button{color:var(--stzh-color-grey61)}.stzh-button--is-disabled.sc-stzh-button .stzh-button__input.sc-stzh-button~.stzh-button__inner.sc-stzh-button .stzh-button__mark.sc-stzh-button{border-color:var(--stzh-color-grey5)}.stzh-button--is-disabled.sc-stzh-button .stzh-button__mark.sc-stzh-button{background-color:var(--stzh-color-grey5)}.stzh-button--size-small.sc-stzh-button,.stzh-button--size-tiny.sc-stzh-button{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height)}.stzh-button--badge-position-button.sc-stzh-button .stzh-button__icon-wrapper.sc-stzh-button{position:static}.stzh-button__badge.sc-stzh-button,.stzh-button--badge-position-button.sc-stzh-button .stzh-button__badge.sc-stzh-button{top:calc(var(--stzh-space-xsmall) * -1);right:calc(var(--stzh-space-xsmall) * -1)}.stzh-button--badge-position-icon.stzh-button--has-icon.sc-stzh-button .stzh-button__icon-wrapper.sc-stzh-button{position:relative}.stzh-button--badge-position-icon.stzh-button--has-icon.sc-stzh-button .stzh-button__badge.sc-stzh-button{top:calc(var(--stzh-space-xsmall) * -1);right:calc(var(--stzh-space-small) * -1)}.stzh-button--badge-position-icon.stzh-button--has-icon.stzh-button--has-badge.sc-stzh-button .stzh-button__icon-wrapper.sc-stzh-button:not(:empty)+.stzh-button__text.sc-stzh-button:not(:empty),.stzh-button--badge-position-icon.stzh-button--has-icon.stzh-button--has-badge.sc-stzh-button .stzh-button__text.sc-stzh-button:not(:empty)+.stzh-button__icon-wrapper.sc-stzh-button:not(:empty){margin-left:var(--badge-icon-text-margin)}.stzh-button--has-icon-only.sc-stzh-button{width:var(--height);height:var(--height);padding:0}.stzh-button--has-icon-only.sc-stzh-button .stzh-button__text.sc-stzh-button{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-button--effect-cta.sc-stzh-button:hover .stzh-button__icon-wrapper.sc-stzh-button{-webkit-animation:stzh-button-effect-cta 1s;animation:stzh-button-effect-cta 1s}.stzh-button--align-left.sc-stzh-button .stzh-button__inner.sc-stzh-button{-ms-flex-pack:start;justify-content:flex-start}.stzh-button--align-right.sc-stzh-button .stzh-button__inner.sc-stzh-button{-ms-flex-pack:end;justify-content:flex-end}.stzh-button--align-center.sc-stzh-button .stzh-button__inner.sc-stzh-button{-ms-flex-pack:center;justify-content:center}.stzh-button--align-space-between.sc-stzh-button .stzh-button__inner.sc-stzh-button{-ms-flex-pack:justify;justify-content:space-between}.stzh-button--is-disabled.sc-stzh-button{cursor:not-allowed}";
19
19
 
20
20
  const StzhButton = class {
21
21
  constructor(hostRef) {
22
22
  registerInstance(this, hostRef);
23
23
  this.stzhFocus = createEvent(this, "stzhFocus", 7);
24
24
  this.stzhBlur = createEvent(this, "stzhBlur", 7);
25
+ this.stzhChange = createEvent(this, "stzhChange", 7);
25
26
  /** Display a badge aligned to button or icons */
26
27
  this.badge = "";
27
28
  /** Badge position */
@@ -38,6 +39,12 @@ const StzhButton = class {
38
39
  this.icon = "";
39
40
  /** Icon Position */
40
41
  this.iconPosition = "left";
42
+ /** Checked status (if type is radio) */
43
+ this.checked = false;
44
+ /** The name of the input element (if type is radio) */
45
+ this.name = "";
46
+ /** The value of the input element (if type is radio) */
47
+ this.value = "";
41
48
  /** `href` if the button should be used as link */
42
49
  this.href = "";
43
50
  /** Target if the button is used as link (if `href` used) */
@@ -56,6 +63,15 @@ const StzhButton = class {
56
63
  this.iconOnly = false;
57
64
  /** Id for element which describes the button (this will be overwritten if description prop or slot is used, used by stzh-radiogroup) */
58
65
  this.a11yDescribedby = "";
66
+ this.onInput = (event) => {
67
+ this.checked = this.input.checked;
68
+ this.stzhChange.emit({
69
+ component: "stzh-button",
70
+ originalEvent: event,
71
+ value: this.value,
72
+ checked: this.checked
73
+ });
74
+ };
59
75
  this.onFocus = (event) => {
60
76
  const focusEvent = new FocusEvent("focus", {
61
77
  view: window,
@@ -102,7 +118,8 @@ const StzhButton = class {
102
118
  return (h("div", { class: "stzh-button__text" }, this.label ? this.label : h("slot", null)));
103
119
  }
104
120
  renderInner(iconUsed) {
105
- return (h(Fragment, null, h("div", { class: "stzh-button__inner", onClick: this.onClick }, this.iconPosition === "left" && this.renderIcon(iconUsed), this.renderContent(), this.iconPosition === "right" && this.renderIcon(iconUsed)), this.badge && (this.badgePosition === "button" || !iconUsed) &&
121
+ return (h(Fragment, null, h("div", { class: "stzh-button__inner", onClick: this.onClick }, this.type === "radio" &&
122
+ h("div", { class: "stzh-button__mark" }, h("div", { class: "stzh-button__check" })), this.iconPosition === "left" && this.renderIcon(iconUsed), this.renderContent(), this.iconPosition === "right" && this.renderIcon(iconUsed)), this.badge && (this.badgePosition === "button" || !iconUsed) &&
106
123
  h("stzh-badge", { class: "stzh-button__badge", label: this.badge, onClick: this.onClick })));
107
124
  }
108
125
  render() {
@@ -119,12 +136,16 @@ const StzhButton = class {
119
136
  [`stzh-button--badge-position-${this.badgePosition}`]: !!this.badgePosition,
120
137
  [`stzh-button--align-${this.textAlign}`]: !!this.textAlign,
121
138
  [`stzh-button--size-${this.size}`]: !!this.size,
139
+ [`stzh-button--type-${this.type}`]: !!this.type,
122
140
  [`stzh-button--${this.variant}`]: !!this.variant
123
141
  };
124
142
  return (h(Host, null, this.href ?
125
143
  h("a", { ref: (el) => (this.button = el), href: this.disabled ? null : this.href, target: this.target, class: classes, "aria-label": this.a11yLabel, "aria-describedby": this.a11yDescribedby, onFocus: this.onFocus, onBlur: this.onBlur, onClick: this.onClick }, this.renderInner(iconUsed))
126
144
  :
127
- h("button", { ref: (el) => (this.button = el), class: classes, type: this.type, disabled: this.disabled, "aria-label": this.a11yLabel, onFocus: this.onFocus, onBlur: this.onBlur, onClick: this.onClick }, this.renderInner(iconUsed))));
145
+ this.type === "radio" ?
146
+ h("label", { ref: (el) => (this.button = el), class: classes, onClick: this.onClick }, h("input", { ref: (el) => (this.input = el), type: "radio", class: "stzh-button__input", name: this.name, value: this.value, checked: this.checked, disabled: this.disabled, "aria-label": this.a11yLabel, onFocus: this.onFocus, onBlur: this.onBlur, onClick: this.onClick, onInput: this.onInput }), this.renderInner(iconUsed))
147
+ :
148
+ h("button", { ref: (el) => (this.button = el), class: classes, type: this.type, disabled: this.disabled, "aria-label": this.a11yLabel, onFocus: this.onFocus, onBlur: this.onBlur, onClick: this.onClick }, this.renderInner(iconUsed))));
128
149
  }
129
150
  get element() { return getElement(this); }
130
151
  };
@@ -1,4 +1,4 @@
1
- import { h, r as registerInstance, c as createEvent, a as Host, g as getElement } from './index-0e6d34c6.js';
1
+ import { h, r as registerInstance, c as createEvent, a as Host, g as getElement } from './index-84f71a43.js';
2
2
  import { i as isEqual, b as isEqualMonth, g as getViewOfMonth, c as inRange, D as DaysOfWeek, p as parseISODate, d as clamp, a as printISODate, e as addDays, s as startOfWeek, f as endOfWeek, h as setMonth, j as startOfMonth, k as endOfMonth, l as setYear } from './date-utils-be83fff1.js';
3
3
  import { f as fetchTranslations } from './translation-utils-2623783f.js';
4
4
 
@@ -0,0 +1,75 @@
1
+ import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-84f71a43.js';
2
+ import { c as cloneElement } from './utils-68a28fce.js';
3
+ import { f as fetchTranslations } from './translation-utils-2623783f.js';
4
+
5
+ const stzhCardListCss = ".sc-stzh-card-list-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-card-list-h{display:none}.sc-stzh-card-list-h *.sc-stzh-card-list,.sc-stzh-card-list-h *.sc-stzh-card-list::before,.sc-stzh-card-list-h *.sc-stzh-card-list::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-card-list-h .sc-stzh-card-list-s>*:not(:last-child):not([slot]){margin-bottom:var(--stzh-space-medium)}@media screen and (min-width: 1024px){.sc-stzh-card-list-h .sc-stzh-card-list-s>*:not(:last-child):not([slot]){margin-bottom:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.sc-stzh-card-list-h .sc-stzh-card-list-s>*:not(:last-child):not([slot]){margin-bottom:var(--stzh-space-xlarge)}}.sc-stzh-card-list-h .sc-stzh-card-list-s>[slot=description] stzh-icon{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.sc-stzh-card-list-h .sc-stzh-card-list-s>stzh-text[slot=description]{--color:inherit}.stzh-card-list__header.sc-stzh-card-list{margin-bottom:var(--stzh-space-medium);display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start}@media screen and (min-width: 1024px){.stzh-card-list__header.sc-stzh-card-list{margin-bottom:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.stzh-card-list__header.sc-stzh-card-list{margin-bottom:var(--stzh-space-xlarge)}}@media screen and (min-width: 800px){.stzh-card-list__header.sc-stzh-card-list{-ms-flex-direction:row;flex-direction:row}}.stzh-card-list__description.sc-stzh-card-list{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);color:var(--stzh-base-lead-color)}@media screen and (min-width: 1024px){.stzh-card-list__description.sc-stzh-card-list{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-card-list__description.sc-stzh-card-list:not(:empty){margin-bottom:var(--stzh-space-xsmall)}@media screen and (min-width: 800px){.stzh-card-list__description.sc-stzh-card-list:not(:empty){margin-bottom:0}}.stzh-card-list__switch.sc-stzh-card-list{--color:var(--stzh-base-lead-color);-ms-flex-item-align:end;align-self:end}";
6
+
7
+ const StzhCardList = class {
8
+ constructor(hostRef) {
9
+ registerInstance(this, hostRef);
10
+ this.stzhCollapseAll = createEvent(this, "stzhCollapseAll", 7);
11
+ /** Whether collapse/expand toggle link */
12
+ this.showToggleLink = false;
13
+ /** Whether sorting should be disabled */
14
+ this.sortableDisabled = false;
15
+ /** HTML attribute that is used by the `toArray()` of sortable method */
16
+ this.sortableDataIdAttribute = "data-id";
17
+ /** Algorithm how the ghost element will be cloned */
18
+ this.sortableGhostClone = (dragElement) => {
19
+ const [clonedElement, clonedStzhElement, originalStzhElement] = cloneElement(dragElement);
20
+ if (clonedStzhElement
21
+ && originalStzhElement
22
+ && clonedStzhElement.tagName.toLowerCase() === "stzh-card") {
23
+ const clonedStzhElementCard = clonedStzhElement;
24
+ const originalStzhElementCard = originalStzhElement;
25
+ // copy every property that is not reflected to its attribute
26
+ clonedStzhElementCard.heading = originalStzhElementCard.heading;
27
+ clonedStzhElementCard.subtitle = originalStzhElementCard.subtitle;
28
+ clonedStzhElementCard.headerActions = originalStzhElementCard.headerActions;
29
+ clonedStzhElementCard.footerActions = originalStzhElementCard.footerActions;
30
+ clonedStzhElementCard.hideMovementActions = originalStzhElementCard.hideMovementActions;
31
+ }
32
+ return clonedElement;
33
+ };
34
+ this.allCollapsed = false;
35
+ this.collapseClick = () => {
36
+ const cards = Array.from(this.element.querySelectorAll("stzh-card"));
37
+ cards.forEach(card => {
38
+ if (card.collapsible) {
39
+ card.collapsed = !this.allCollapsed;
40
+ }
41
+ });
42
+ this.allCollapsed = !this.allCollapsed;
43
+ this.stzhCollapseAll.emit({
44
+ component: "stzh-card-list",
45
+ allCollapsed: this.allCollapsed
46
+ });
47
+ };
48
+ this.updateCollapsedState = () => {
49
+ const cards = Array.from(this.element.querySelectorAll("stzh-card"));
50
+ this.allCollapsed = !cards.some(card => !card.collapsed);
51
+ };
52
+ }
53
+ collapseListener() {
54
+ this.updateCollapsedState();
55
+ }
56
+ async componentWillLoad() {
57
+ if (!this.localization) {
58
+ this.localization = await fetchTranslations(this.element, "card-list");
59
+ }
60
+ }
61
+ componentDidLoad() {
62
+ this.updateCollapsedState();
63
+ }
64
+ render() {
65
+ const classes = {
66
+ "stzh-card-list": true
67
+ };
68
+ return (h(Host, null, h("div", { class: classes }, h("div", { class: "stzh-card-list__header" }, h("div", { class: "stzh-card-list__description" }, h("slot", { name: "description" })), this.showToggleLink &&
69
+ h("stzh-link", { class: "stzh-card-list__switch", icon: this.allCollapsed ? "list-expanded" : "list-shrinked", label: this.allCollapsed ? this.localization.expandAll : this.localization.collapseAll, onClick: this.collapseClick })), h("stzh-sortable", { disabled: this.sortableDisabled, dataIdAttribute: this.sortableDataIdAttribute, ghostClone: this.sortableGhostClone }, h("div", { class: "stzh-card-list__cards", role: "list" }, h("slot", null))))));
70
+ }
71
+ get element() { return getElement(this); }
72
+ };
73
+ StzhCardList.style = stzhCardListCss;
74
+
75
+ export { StzhCardList as stzh_card_list };