@oiz/stzh-components 2.0.0-beta → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (272) hide show
  1. package/dist/cjs/{app-globals-58a084a9.js → app-globals-ec8cc33e.js} +1 -1
  2. package/dist/cjs/loader.cjs.js +2 -2
  3. package/dist/cjs/stzh-accordion-item.cjs.entry.js +33 -15
  4. package/dist/cjs/stzh-actionset.cjs.entry.js +1 -9
  5. package/dist/cjs/stzh-badge_3.cjs.entry.js +17 -7
  6. package/dist/cjs/stzh-card-list.cjs.entry.js +19 -20
  7. package/dist/cjs/stzh-card.cjs.entry.js +34 -16
  8. package/dist/cjs/stzh-chip-select.cjs.entry.js +52 -4
  9. package/dist/cjs/stzh-chip.cjs.entry.js +3 -1
  10. package/dist/cjs/stzh-components.cjs.js +2 -2
  11. package/dist/cjs/stzh-cspace.cjs.entry.js +1 -1
  12. package/dist/cjs/stzh-datamessagelist-item.cjs.entry.js +1 -1
  13. package/dist/cjs/stzh-datatable.cjs.entry.js +1 -1
  14. package/dist/cjs/stzh-dialog.cjs.entry.js +1 -1
  15. package/dist/cjs/stzh-ghettobox_2.cjs.entry.js +2 -2
  16. package/dist/cjs/stzh-heading.cjs.entry.js +1 -1
  17. package/dist/cjs/stzh-hspace.cjs.entry.js +1 -1
  18. package/dist/cjs/stzh-icon-sprite.cjs.entry.js +1 -1
  19. package/dist/cjs/stzh-input.cjs.entry.js +2 -2
  20. package/dist/cjs/stzh-link.cjs.entry.js +8 -4
  21. package/dist/cjs/stzh-menu_2.cjs.entry.js +6 -2
  22. package/dist/cjs/stzh-message.cjs.entry.js +1 -1
  23. package/dist/cjs/stzh-pagetitle.cjs.entry.js +1 -1
  24. package/dist/cjs/stzh-portal-mitwirken.cjs.entry.js +1 -1
  25. package/dist/cjs/stzh-saptcha.cjs.entry.js +1 -1
  26. package/dist/cjs/stzh-sortable.cjs.entry.js +3 -2
  27. package/dist/cjs/stzh-table.cjs.entry.js +1 -1
  28. package/dist/cjs/stzh-upload.cjs.entry.js +47 -4
  29. package/dist/cjs/stzh-vbz-ticker.cjs.entry.js +1 -1
  30. package/dist/cjs/stzh-vspace.cjs.entry.js +1 -1
  31. package/dist/collection/assets/icons/mono/code-window.svg +3 -0
  32. package/dist/collection/components/stzh-accordion-item/stzh-accordion-item.css +34 -8
  33. package/dist/collection/components/stzh-accordion-item/stzh-accordion-item.js +123 -14
  34. package/dist/collection/components/stzh-accordion-item/stzh-accordion-item.stories.js +9 -0
  35. package/dist/collection/components/stzh-actionset/stzh-actionset.js +1 -9
  36. package/dist/collection/components/stzh-badge/stzh-badge.css +22 -2
  37. package/dist/collection/components/stzh-badge/stzh-badge.js +25 -1
  38. package/dist/collection/components/stzh-button/stzh-button.js +45 -5
  39. package/dist/collection/components/stzh-card/stzh-card.css +2 -14
  40. package/dist/collection/components/stzh-card/stzh-card.js +37 -37
  41. package/dist/collection/components/stzh-card/stzh-card.stories.js +1 -4
  42. package/dist/collection/components/stzh-card-list/stzh-card-list.js +22 -49
  43. package/dist/collection/components/stzh-card-list/stzh-card-list.stories.js +2 -2
  44. package/dist/collection/components/stzh-chip/stzh-chip.js +38 -1
  45. package/dist/collection/components/stzh-chip-select/stzh-chip-select.css +80 -0
  46. package/dist/collection/components/stzh-chip-select/stzh-chip-select.js +213 -3
  47. package/dist/collection/components/stzh-cspace/stzh-cspace.css +87 -176
  48. package/dist/collection/components/stzh-datamessagelist-item/stzh-datamessagelist-item.css +3 -8
  49. package/dist/collection/components/stzh-datatable/stzh-datatable.css +5 -0
  50. package/dist/collection/components/stzh-dialog/stzh-dialog.css +9 -19
  51. package/dist/collection/components/stzh-ghettobox/stzh-ghettobox.css +16 -16
  52. package/dist/collection/components/stzh-heading/stzh-heading.css +5 -15
  53. package/dist/collection/components/stzh-hspace/stzh-hspace.css +19 -24
  54. package/dist/collection/components/stzh-icon-sprite/assets/svgsprites/symbol/sprite.symbol.html +45 -32
  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.js +2 -2
  57. package/dist/collection/components/stzh-link/stzh-link.js +44 -4
  58. package/dist/collection/components/stzh-menu-item/stzh-menu-item.js +42 -2
  59. package/dist/collection/components/stzh-message/stzh-message.css +5 -0
  60. package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.css +3 -8
  61. package/dist/collection/components/stzh-portal-mitwirken/stzh-portal-mitwirken.css +226 -337
  62. package/dist/collection/components/stzh-richtext/stzh-richtext.css +88 -129
  63. package/dist/collection/components/stzh-saptcha/stzh-saptcha.css +8 -8
  64. package/dist/collection/components/stzh-sortable/stzh-sortable.css +12 -6
  65. package/dist/collection/components/stzh-sortable/stzh-sortable.js +2 -1
  66. package/dist/collection/components/stzh-table/stzh-table.css +5 -0
  67. package/dist/collection/components/stzh-upload/stzh-upload.css +16 -7
  68. package/dist/collection/components/stzh-upload/stzh-upload.js +46 -3
  69. package/dist/collection/components/stzh-upload/stzh-upload.stories.js +1 -1
  70. package/dist/collection/components/stzh-vbz-ticker/stzh-vbz-ticker.css +2 -7
  71. package/dist/collection/components/stzh-vspace/stzh-vspace.css +19 -24
  72. package/dist/collection/pages/meinkonto.stories.js +1 -1
  73. package/dist/components/index.js +1 -1
  74. package/dist/components/stzh-accordion-item.js +51 -16
  75. package/dist/components/stzh-actionset2.js +1 -9
  76. package/dist/components/stzh-badge2.js +10 -3
  77. package/dist/components/stzh-button2.js +11 -5
  78. package/dist/components/stzh-card-list.js +20 -22
  79. package/dist/components/stzh-card.js +34 -17
  80. package/dist/components/stzh-chip-select.js +63 -6
  81. package/dist/components/stzh-chip2.js +5 -1
  82. package/dist/components/stzh-cspace.js +1 -1
  83. package/dist/components/stzh-datamessagelist-item.js +1 -1
  84. package/dist/components/stzh-datatable.js +1 -1
  85. package/dist/components/stzh-dialog.js +1 -1
  86. package/dist/components/stzh-ghettobox2.js +1 -1
  87. package/dist/components/stzh-heading2.js +1 -1
  88. package/dist/components/stzh-hspace.js +1 -1
  89. package/dist/components/stzh-icon-sprite.js +1 -1
  90. package/dist/components/stzh-input2.js +2 -2
  91. package/dist/components/stzh-link2.js +10 -4
  92. package/dist/components/stzh-menu-item2.js +8 -2
  93. package/dist/components/stzh-message.js +1 -1
  94. package/dist/components/stzh-pagetitle.js +1 -1
  95. package/dist/components/stzh-portal-mitwirken.js +1 -1
  96. package/dist/components/stzh-richtext2.js +1 -1
  97. package/dist/components/stzh-saptcha.js +1 -1
  98. package/dist/components/stzh-sortable2.js +3 -2
  99. package/dist/components/stzh-table.js +1 -1
  100. package/dist/components/stzh-upload.js +47 -4
  101. package/dist/components/stzh-vbz-ticker.js +1 -1
  102. package/dist/components/stzh-vspace.js +1 -1
  103. package/dist/esm/{app-globals-6b6ff890.js → app-globals-e66420b3.js} +1 -1
  104. package/dist/esm/loader.js +2 -2
  105. package/dist/esm/stzh-accordion-item.entry.js +33 -15
  106. package/dist/esm/stzh-actionset.entry.js +1 -9
  107. package/dist/esm/stzh-badge_3.entry.js +17 -7
  108. package/dist/esm/stzh-card-list.entry.js +19 -20
  109. package/dist/esm/stzh-card.entry.js +34 -16
  110. package/dist/esm/stzh-chip-select.entry.js +52 -4
  111. package/dist/esm/stzh-chip.entry.js +3 -1
  112. package/dist/esm/stzh-components.js +2 -2
  113. package/dist/esm/stzh-cspace.entry.js +1 -1
  114. package/dist/esm/stzh-datamessagelist-item.entry.js +1 -1
  115. package/dist/esm/stzh-datatable.entry.js +1 -1
  116. package/dist/esm/stzh-dialog.entry.js +1 -1
  117. package/dist/esm/stzh-ghettobox_2.entry.js +2 -2
  118. package/dist/esm/stzh-heading.entry.js +1 -1
  119. package/dist/esm/stzh-hspace.entry.js +1 -1
  120. package/dist/esm/stzh-icon-sprite.entry.js +1 -1
  121. package/dist/esm/stzh-input.entry.js +2 -2
  122. package/dist/esm/stzh-link.entry.js +8 -4
  123. package/dist/esm/stzh-menu_2.entry.js +6 -2
  124. package/dist/esm/stzh-message.entry.js +1 -1
  125. package/dist/esm/stzh-pagetitle.entry.js +1 -1
  126. package/dist/esm/stzh-portal-mitwirken.entry.js +1 -1
  127. package/dist/esm/stzh-saptcha.entry.js +1 -1
  128. package/dist/esm/stzh-sortable.entry.js +3 -2
  129. package/dist/esm/stzh-table.entry.js +1 -1
  130. package/dist/esm/stzh-upload.entry.js +47 -4
  131. package/dist/esm/stzh-vbz-ticker.entry.js +1 -1
  132. package/dist/esm/stzh-vspace.entry.js +1 -1
  133. package/dist/esm-es5/app-globals-e66420b3.js +1 -0
  134. package/dist/esm-es5/loader.js +1 -1
  135. package/dist/esm-es5/stzh-accordion-item.entry.js +1 -1
  136. package/dist/esm-es5/stzh-actionset.entry.js +1 -1
  137. package/dist/esm-es5/stzh-badge_3.entry.js +1 -1
  138. package/dist/esm-es5/stzh-card-list.entry.js +1 -1
  139. package/dist/esm-es5/stzh-card.entry.js +1 -1
  140. package/dist/esm-es5/stzh-chip-select.entry.js +1 -1
  141. package/dist/esm-es5/stzh-chip.entry.js +1 -1
  142. package/dist/esm-es5/stzh-components.js +1 -1
  143. package/dist/esm-es5/stzh-cspace.entry.js +1 -1
  144. package/dist/esm-es5/stzh-datamessagelist-item.entry.js +1 -1
  145. package/dist/esm-es5/stzh-datatable.entry.js +1 -1
  146. package/dist/esm-es5/stzh-dialog.entry.js +1 -1
  147. package/dist/esm-es5/stzh-ghettobox_2.entry.js +1 -1
  148. package/dist/esm-es5/stzh-heading.entry.js +1 -1
  149. package/dist/esm-es5/stzh-hspace.entry.js +1 -1
  150. package/dist/esm-es5/stzh-icon-sprite.entry.js +1 -1
  151. package/dist/esm-es5/stzh-input.entry.js +1 -1
  152. package/dist/esm-es5/stzh-link.entry.js +1 -1
  153. package/dist/esm-es5/stzh-menu_2.entry.js +1 -1
  154. package/dist/esm-es5/stzh-message.entry.js +1 -1
  155. package/dist/esm-es5/stzh-pagetitle.entry.js +1 -1
  156. package/dist/esm-es5/stzh-portal-mitwirken.entry.js +1 -1
  157. package/dist/esm-es5/stzh-saptcha.entry.js +1 -1
  158. package/dist/esm-es5/stzh-sortable.entry.js +1 -1
  159. package/dist/esm-es5/stzh-table.entry.js +1 -1
  160. package/dist/esm-es5/stzh-upload.entry.js +1 -1
  161. package/dist/esm-es5/stzh-vbz-ticker.entry.js +1 -1
  162. package/dist/esm-es5/stzh-vspace.entry.js +1 -1
  163. package/dist/stzh-components/assets/icons/mono/code-window.svg +3 -0
  164. package/dist/stzh-components/assets/svgsprites/symbol/sprite.symbol.html +45 -32
  165. package/dist/stzh-components/assets/svgsprites/symbol/svg/sprite.symbol.svg +1 -1
  166. package/dist/stzh-components/{p-332e4fd3.entry.js → p-03ea86bd.entry.js} +1 -1
  167. package/dist/stzh-components/p-051bc2a8.entry.js +1 -0
  168. package/dist/stzh-components/{p-13f44000.entry.js → p-0711e511.entry.js} +1 -1
  169. package/dist/stzh-components/p-073c89b1.system.entry.js +1 -0
  170. package/dist/stzh-components/{p-8cbc987f.system.entry.js → p-1440163c.system.entry.js} +1 -1
  171. package/dist/stzh-components/p-18958371.entry.js +1 -0
  172. package/dist/stzh-components/p-20ef4a20.system.entry.js +1 -0
  173. package/dist/stzh-components/{p-8a9e588e.system.entry.js → p-21566d65.system.entry.js} +1 -1
  174. package/dist/stzh-components/{p-5975c355.system.entry.js → p-22701389.system.entry.js} +1 -1
  175. package/dist/stzh-components/p-252d3178.entry.js +1 -0
  176. package/dist/stzh-components/p-2ca4a828.system.entry.js +1 -0
  177. package/dist/stzh-components/p-3042b23e.entry.js +1 -0
  178. package/dist/stzh-components/p-3b912468.system.entry.js +1 -0
  179. package/dist/stzh-components/p-3beb58d6.system.entry.js +1 -0
  180. package/dist/stzh-components/p-3f0363db.entry.js +1 -0
  181. package/dist/stzh-components/{p-b084fcbf.system.entry.js → p-530252c6.system.entry.js} +1 -1
  182. package/dist/stzh-components/{p-3b27a43f.system.entry.js → p-5353ba86.system.entry.js} +2 -2
  183. package/dist/stzh-components/p-55cdbf79.entry.js +1 -0
  184. package/dist/stzh-components/p-562e6c52.entry.js +1 -0
  185. package/dist/stzh-components/{p-b9295dc2.entry.js → p-5f4eb46c.entry.js} +1 -1
  186. package/dist/stzh-components/p-62db1e59.entry.js +1 -0
  187. package/dist/stzh-components/{p-63d8db7b.entry.js → p-6425898c.entry.js} +1 -1
  188. package/dist/stzh-components/p-676fd54d.entry.js +1 -0
  189. package/dist/stzh-components/{p-e7a84e53.system.entry.js → p-684c345e.system.entry.js} +1 -1
  190. package/dist/stzh-components/{p-8f16b0ac.entry.js → p-713ae713.entry.js} +1 -1
  191. package/dist/stzh-components/p-764ba190.entry.js +1 -0
  192. package/dist/stzh-components/p-786a92d4.system.entry.js +1 -0
  193. package/dist/stzh-components/p-796ae62c.system.entry.js +1 -0
  194. package/dist/stzh-components/p-7ec2f3fd.entry.js +9 -0
  195. package/dist/stzh-components/p-80d70586.entry.js +1 -0
  196. package/dist/stzh-components/p-838df84a.system.entry.js +1 -0
  197. package/dist/stzh-components/p-84ab53cc.system.entry.js +1 -0
  198. package/dist/stzh-components/p-85161133.js +1 -0
  199. package/dist/stzh-components/p-864d7c50.entry.js +1 -0
  200. package/dist/stzh-components/p-8b6de2c0.system.entry.js +1 -0
  201. package/dist/stzh-components/{p-ab455116.system.entry.js → p-8c648042.system.entry.js} +1 -1
  202. package/dist/stzh-components/p-929dbdf1.system.entry.js +1 -0
  203. package/dist/stzh-components/p-9469b812.entry.js +1 -0
  204. package/dist/stzh-components/p-9e716229.entry.js +1 -0
  205. package/dist/stzh-components/p-a3fa6122.system.entry.js +1 -0
  206. package/dist/stzh-components/p-b391d962.system.entry.js +1 -0
  207. package/dist/stzh-components/p-b462a61f.entry.js +1 -0
  208. package/dist/stzh-components/{p-5987573e.system.entry.js → p-b5a85078.system.entry.js} +1 -1
  209. package/dist/stzh-components/p-b70bc70c.system.js +1 -0
  210. package/dist/stzh-components/{p-b9382599.entry.js → p-bb3c1249.entry.js} +1 -1
  211. package/dist/stzh-components/{p-b636a18a.system.entry.js → p-bbe4e3d1.system.entry.js} +1 -1
  212. package/dist/stzh-components/p-c4fc6433.system.entry.js +1 -0
  213. package/dist/stzh-components/p-cb1d4678.entry.js +1 -0
  214. package/dist/stzh-components/p-ccd30d73.system.entry.js +1 -0
  215. package/dist/stzh-components/p-cd795307.entry.js +1 -0
  216. package/dist/stzh-components/{p-c692e405.entry.js → p-cdc9e600.entry.js} +1 -1
  217. package/dist/stzh-components/p-d1552460.system.entry.js +1 -0
  218. package/dist/stzh-components/p-e3e3e88c.system.js +1 -0
  219. package/dist/stzh-components/p-eb61c369.entry.js +1 -0
  220. package/dist/stzh-components/p-ebeb8d7b.system.entry.js +1 -0
  221. package/dist/stzh-components/p-eca1732f.entry.js +1 -0
  222. package/dist/stzh-components/p-f24db7e8.system.entry.js +1 -0
  223. package/dist/stzh-components/stzh-components.css +1 -1
  224. package/dist/stzh-components/stzh-components.esm.js +1 -1
  225. package/dist/stzh-components/stzh-components.js +1 -1
  226. package/dist/types/components/stzh-badge/stzh-badge.d.ts +2 -0
  227. package/dist/types/components.d.ts +196 -28
  228. package/dist/types/index.d.ts +6 -1
  229. package/dist/vscode-data.json +180 -19
  230. package/package.json +1 -1
  231. package/dist/esm-es5/app-globals-6b6ff890.js +0 -1
  232. package/dist/stzh-components/p-0b8de542.system.entry.js +0 -1
  233. package/dist/stzh-components/p-0d5522dc.system.entry.js +0 -1
  234. package/dist/stzh-components/p-0efe125f.system.entry.js +0 -1
  235. package/dist/stzh-components/p-2818488f.entry.js +0 -1
  236. package/dist/stzh-components/p-373f79e8.entry.js +0 -1
  237. package/dist/stzh-components/p-3ac93a01.entry.js +0 -1
  238. package/dist/stzh-components/p-59c323ce.entry.js +0 -1
  239. package/dist/stzh-components/p-6354fee3.entry.js +0 -1
  240. package/dist/stzh-components/p-653c6bbc.entry.js +0 -1
  241. package/dist/stzh-components/p-67f906b1.entry.js +0 -1
  242. package/dist/stzh-components/p-6a81e64b.entry.js +0 -1
  243. package/dist/stzh-components/p-75cdc8a6.system.entry.js +0 -1
  244. package/dist/stzh-components/p-7ad87d98.system.entry.js +0 -1
  245. package/dist/stzh-components/p-7f9f9a8d.entry.js +0 -1
  246. package/dist/stzh-components/p-83b1e379.entry.js +0 -9
  247. package/dist/stzh-components/p-86bc421e.system.entry.js +0 -1
  248. package/dist/stzh-components/p-8aebb240.entry.js +0 -1
  249. package/dist/stzh-components/p-938ef748.entry.js +0 -1
  250. package/dist/stzh-components/p-9bda100f.system.js +0 -1
  251. package/dist/stzh-components/p-a99d3e97.system.entry.js +0 -1
  252. package/dist/stzh-components/p-af2664fc.system.entry.js +0 -1
  253. package/dist/stzh-components/p-b9c3f3cc.entry.js +0 -1
  254. package/dist/stzh-components/p-bd178c32.system.entry.js +0 -1
  255. package/dist/stzh-components/p-c013a00b.system.entry.js +0 -1
  256. package/dist/stzh-components/p-c456c04b.system.entry.js +0 -1
  257. package/dist/stzh-components/p-c499e04d.entry.js +0 -1
  258. package/dist/stzh-components/p-c83e4fec.system.entry.js +0 -1
  259. package/dist/stzh-components/p-ca062c11.system.js +0 -1
  260. package/dist/stzh-components/p-ce28428b.entry.js +0 -1
  261. package/dist/stzh-components/p-cfaac121.js +0 -1
  262. package/dist/stzh-components/p-d11a70e2.system.entry.js +0 -1
  263. package/dist/stzh-components/p-d1dba399.system.entry.js +0 -1
  264. package/dist/stzh-components/p-d2b5e066.entry.js +0 -1
  265. package/dist/stzh-components/p-d54f04c8.system.entry.js +0 -1
  266. package/dist/stzh-components/p-d645d645.entry.js +0 -1
  267. package/dist/stzh-components/p-da7b363e.entry.js +0 -1
  268. package/dist/stzh-components/p-de017b87.system.entry.js +0 -1
  269. package/dist/stzh-components/p-e009bfdc.entry.js +0 -1
  270. package/dist/stzh-components/p-f167eaa4.system.entry.js +0 -1
  271. package/dist/stzh-components/p-f2ee016a.entry.js +0 -1
  272. package/dist/stzh-components/p-ffa1e9dd.system.entry.js +0 -1
@@ -123,19 +123,14 @@
123
123
  :host([curve=tiny]) {
124
124
  --space: var(--stzh-space-xsmall);
125
125
  }
126
- @media screen and (min-width: 600px) {
127
- :host([curve=tiny]) {
128
- --space: var(--stzh-space-small);
129
- }
130
- }
131
126
  @media screen and (min-width: 1024px) {
132
127
  :host([curve=tiny]) {
133
- --space: var(--stzh-space-medium);
128
+ --space: var(--stzh-space-small);
134
129
  }
135
130
  }
136
131
  @media screen and (min-width: 1260px) {
137
132
  :host([curve=tiny]) {
138
- --space: var(--stzh-space-large);
133
+ --space: var(--stzh-space-medium);
139
134
  }
140
135
  }
141
136
 
@@ -147,6 +142,11 @@
147
142
  --space: var(--stzh-space-medium);
148
143
  }
149
144
  }
145
+ @media screen and (min-width: 1260px) {
146
+ :host([curve=small]) {
147
+ --space: var(--stzh-space-large);
148
+ }
149
+ }
150
150
 
151
151
  :host([curve=regular]) {
152
152
  --space: var(--stzh-space-medium);
@@ -163,35 +163,25 @@
163
163
  }
164
164
 
165
165
  :host([curve=medium]) {
166
- --space: var(--stzh-space-medium);
167
- }
168
- @media screen and (min-width: 600px) {
169
- :host([curve=medium]) {
170
- --space: var(--stzh-space-large);
171
- }
166
+ --space: var(--stzh-space-xlarge);
172
167
  }
173
168
  @media screen and (min-width: 1024px) {
174
169
  :host([curve=medium]) {
175
- --space: var(--stzh-space-xlarge);
170
+ --space: var(--stzh-space-xxlarge);
176
171
  }
177
172
  }
178
173
  @media screen and (min-width: 1260px) {
179
174
  :host([curve=medium]) {
180
- --space: var(--stzh-space-xxlarge);
175
+ --space: var(--stzh-space-xxxlarge);
181
176
  }
182
177
  }
183
178
 
184
179
  :host([curve=large]) {
185
- --space: var(--stzh-space-large);
186
- }
187
- @media screen and (min-width: 600px) {
188
- :host([curve=large]) {
189
- --space: var(--stzh-space-xlarge);
190
- }
180
+ --space: var(--stzh-space-xxlarge);
191
181
  }
192
182
  @media screen and (min-width: 1024px) {
193
183
  :host([curve=large]) {
194
- --space: var(--stzh-space-xxlarge);
184
+ --space: var(--stzh-space-xxxlarge);
195
185
  }
196
186
  }
197
187
  @media screen and (min-width: 1260px) {
@@ -201,13 +191,18 @@
201
191
  }
202
192
 
203
193
  :host([curve=big]) {
204
- --space: var(--stzh-space-xxlarge);
194
+ --space: var(--stzh-space-xxxlarge);
205
195
  }
206
196
  @media screen and (min-width: 600px) {
207
197
  :host([curve=big]) {
208
198
  --space: var(--stzh-space-xxxxlarge);
209
199
  }
210
200
  }
201
+ @media screen and (min-width: 1024px) {
202
+ :host([curve=big]) {
203
+ --space: var(--stzh-space-big);
204
+ }
205
+ }
211
206
  @media screen and (min-width: 1260px) {
212
207
  :host([curve=big]) {
213
208
  --space: var(--stzh-space-xbig);
@@ -215,7 +210,7 @@
215
210
  }
216
211
 
217
212
  :host([curve=huge]) {
218
- --space: var(--stzh-space-xxxlarge);
213
+ --space: var(--stzh-space-xxxxlarge);
219
214
  }
220
215
  @media screen and (min-width: 600px) {
221
216
  :host([curve=huge]) {
@@ -170,7 +170,7 @@ const TemplateServices = (args) => (
170
170
 
171
171
  <stzh-vspace curve="large"></stzh-vspace>
172
172
 
173
- <stzh-card-list show-toggle-link>
173
+ <stzh-card-list show-toggle-link sortable-enabled>
174
174
  <stzh-text slot="description">
175
175
  Services are shown here, which you marked with <stzh-icon name="star-filled"></stzh-icon>
176
176
  </stzh-text>
@@ -74,7 +74,7 @@ export { StzhVisuallyhidden, defineCustomElement as defineCustomElementStzhVisua
74
74
  export { StzhVspace, defineCustomElement as defineCustomElementStzhVspace } from './stzh-vspace.js';
75
75
 
76
76
  const name = "@oiz/stzh-components";
77
- const version = "2.0.0-beta";
77
+ const version = "2.0.0";
78
78
 
79
79
  const packageName = name.substring(name.indexOf('/')+1);
80
80
 
@@ -1,22 +1,24 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
2
  import { w as waitForEvent } from './event-utils.js';
3
3
  import { s as stopAnimations, a as animateTo, b as shimKeyframesHeightAuto } from './animation-utils.js';
4
+ import { d as defineCustomElement$3 } from './stzh-badge2.js';
5
+ import { d as defineCustomElement$2 } from './stzh-icon2.js';
4
6
 
5
- const stzhAccordionItemCss = ".sc-stzh-accordion-item-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-accordion-item-h{display:none}.sc-stzh-accordion-item-h *.sc-stzh-accordion-item,.sc-stzh-accordion-item-h *.sc-stzh-accordion-item::before,.sc-stzh-accordion-item-h *.sc-stzh-accordion-item::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-accordion-item-h{--trigger-size:1.3125rem;--content-padding:var(--stzh-accordion-content-padding);--content-background:var(--stzh-accordion-content-background)}.stzh-accordion-item__heading.sc-stzh-accordion-item{margin:0}.stzh-accordion-item__button.sc-stzh-accordion-item{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);width:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;padding:var(--stzh-space-xsmall) var(--stzh-space-medium);border:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;min-height:3.75rem;border:0.0625rem solid var(--stzh-base-border-color);color:var(--stzh-color-primary, var(--stzh-color-zueriblue));text-align:left;-webkit-transition-property:color, background-color, border-color;transition-property:color, background-color, border-color;-webkit-transition-duration:var(--stzh-base-transition-animation-speed);transition-duration:var(--stzh-base-transition-animation-speed);cursor:pointer}@media screen and (min-width: 1024px){.stzh-accordion-item__button.sc-stzh-accordion-item{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-accordion-item__button.sc-stzh-accordion-item:hover,.stzh-accordion-item__button.sc-stzh-accordion-item:focus{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-accordion-item__button-text.sc-stzh-accordion-item{-ms-flex-positive:1;flex-grow:1}.stzh-accordion-item__button-icon.sc-stzh-accordion-item{position:relative;width:var(--trigger-size);height:var(--trigger-size);margin-left:var(--stzh-space-medium)}.stzh-accordion-item__button-icon.sc-stzh-accordion-item::before,.stzh-accordion-item__button-icon.sc-stzh-accordion-item::after{position:absolute;top:50%;left:50%;content:\"\";display:block;width:var(--trigger-size);height:0.0625rem;-webkit-transition:-webkit-transform 0.5s;transition:-webkit-transform 0.5s;transition:transform 0.5s;transition:transform 0.5s, -webkit-transform 0.5s;-webkit-transform-origin:top left;transform-origin:top left;background-color:currentColor}.stzh-accordion-item__button-icon.sc-stzh-accordion-item::before{-webkit-transform:rotate(180deg) translate(-50%, -50%);transform:rotate(180deg) translate(-50%, -50%)}.stzh-accordion-item__button-icon.sc-stzh-accordion-item::after{-webkit-transform:rotate(90deg) translate(-50%, -50%);transform:rotate(90deg) translate(-50%, -50%)}.stzh-accordion-item__content.sc-stzh-accordion-item{overflow:hidden;background-color:var(--content-background)}.stzh-accordion-item__content-inner.sc-stzh-accordion-item{padding:var(--content-padding)}.stzh-accordion-item__subtitle.sc-stzh-accordion-item{-webkit-transition:color var(--stzh-base-transition-animation-speed);transition:color var(--stzh-base-transition-animation-speed)}.stzh-accordion-item__heading.sc-stzh-accordion-item,.stzh-accordion-item__subtitle.sc-stzh-accordion-item{display:block}.stzh-accordion-item--has-subtitle.sc-stzh-accordion-item .stzh-accordion-item__button.sc-stzh-accordion-item{padding:var(--stzh-space-medium)}.stzh-accordion-item--has-subtitle.sc-stzh-accordion-item .stzh-accordion-item__subtitle.sc-stzh-accordion-item{color:var(--stzh-base-color)}.stzh-accordion-item--has-subtitle.sc-stzh-accordion-item .stzh-accordion-item__heading.sc-stzh-accordion-item{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal;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){.stzh-accordion-item--has-subtitle.sc-stzh-accordion-item .stzh-accordion-item__heading.sc-stzh-accordion-item{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){.stzh-accordion-item--has-subtitle.sc-stzh-accordion-item .stzh-accordion-item__heading.sc-stzh-accordion-item{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){.stzh-accordion-item--has-subtitle.sc-stzh-accordion-item .stzh-accordion-item__heading.sc-stzh-accordion-item{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))}}.stzh-accordion-item--is-open.sc-stzh-accordion-item .stzh-accordion-item__button.sc-stzh-accordion-item{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))}.stzh-accordion-item--is-open.sc-stzh-accordion-item .stzh-accordion-item__subtitle.sc-stzh-accordion-item{color:var(--stzh-color-white)}.stzh-accordion-item--is-open.sc-stzh-accordion-item .stzh-accordion-item__button-icon.sc-stzh-accordion-item::before,.stzh-accordion-item--is-open.sc-stzh-accordion-item .stzh-accordion-item__button-icon.sc-stzh-accordion-item::after{-webkit-transform:rotate(0) translate(-50%, -50%);transform:rotate(0) translate(-50%, -50%)}.stzh-accordion-item--is-disabled.sc-stzh-accordion-item .stzh-accordion-item__button.sc-stzh-accordion-item{cursor:not-allowed;color:var(--stzh-color-grey61);border-color:var(--stzh-color-grey5);background-color:var(--stzh-color-grey5)}";
7
+ const stzhAccordionItemCss = ".sc-stzh-accordion-item-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-accordion-item-h{display:none}.sc-stzh-accordion-item-h *.sc-stzh-accordion-item,.sc-stzh-accordion-item-h *.sc-stzh-accordion-item::before,.sc-stzh-accordion-item-h *.sc-stzh-accordion-item::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-accordion-item-h{--trigger-size:1.3125rem;--content-padding:var(--stzh-accordion-content-padding);--content-background:var(--stzh-accordion-content-background);--icon-size:var(--stzh-icon-size-small)}.sc-stzh-accordion-item-h .sc-stzh-accordion-item-s>stzh-icon,.stzh-accordion-item__icon.sc-stzh-accordion-item{--size:var(--icon-size)}.stzh-accordion-item__heading.sc-stzh-accordion-item{position:relative;margin:0}.stzh-accordion-item__button.sc-stzh-accordion-item{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);width:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;padding:var(--stzh-space-xsmall) var(--stzh-space-medium);border:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;min-height:3.75rem;border:0.0625rem solid var(--stzh-base-border-color);color:var(--stzh-color-primary, var(--stzh-color-zueriblue));text-align:left;-webkit-transition-property:color, background-color, border-color;transition-property:color, background-color, border-color;-webkit-transition-duration:var(--stzh-base-transition-animation-speed);transition-duration:var(--stzh-base-transition-animation-speed);cursor:pointer}@media screen and (min-width: 1024px){.stzh-accordion-item__button.sc-stzh-accordion-item{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-accordion-item__button.sc-stzh-accordion-item:hover,.stzh-accordion-item__button.sc-stzh-accordion-item:focus{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-accordion-item__button-text.sc-stzh-accordion-item{-ms-flex-positive:1;flex-grow:1}.stzh-accordion-item__button-icon.sc-stzh-accordion-item{position:relative;width:var(--trigger-size);height:var(--trigger-size);margin-left:var(--stzh-space-medium)}.stzh-accordion-item__button-icon.sc-stzh-accordion-item::before,.stzh-accordion-item__button-icon.sc-stzh-accordion-item::after{position:absolute;top:50%;left:50%;content:\"\";display:block;width:var(--trigger-size);height:0.0625rem;-webkit-transition:-webkit-transform 0.5s;transition:-webkit-transform 0.5s;transition:transform 0.5s;transition:transform 0.5s, -webkit-transform 0.5s;-webkit-transform-origin:top left;transform-origin:top left;background-color:currentColor}.stzh-accordion-item__button-icon.sc-stzh-accordion-item::before{-webkit-transform:rotate(180deg) translate(-50%, -50%);transform:rotate(180deg) translate(-50%, -50%)}.stzh-accordion-item__button-icon.sc-stzh-accordion-item::after{-webkit-transform:rotate(90deg) translate(-50%, -50%);transform:rotate(90deg) translate(-50%, -50%)}.stzh-accordion-item__content.sc-stzh-accordion-item{overflow:hidden;background-color:var(--content-background)}.stzh-accordion-item__content-inner.sc-stzh-accordion-item{padding:var(--content-padding)}.stzh-accordion-item__icon-wrapper.sc-stzh-accordion-item{-ms-flex-item-align:start;align-self:flex-start}.stzh-accordion-item__icon-wrapper.sc-stzh-accordion-item:not(:empty){margin-right:var(--stzh-space-xsmall)}.stzh-accordion-item__badge.sc-stzh-accordion-item{position:absolute;right:-0.3125rem;top:-0.3125rem}.stzh-accordion-item__description.sc-stzh-accordion-item,.stzh-accordion-item__subtitle.sc-stzh-accordion-item{color:var(--stzh-base-color);-webkit-transition:color var(--stzh-base-transition-animation-speed);transition:color var(--stzh-base-transition-animation-speed)}.stzh-accordion-item__description.sc-stzh-accordion-item{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))}@media screen and (min-width: 1024px){.stzh-accordion-item__description.sc-stzh-accordion-item{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))}}.stzh-accordion-item__heading.sc-stzh-accordion-item,.stzh-accordion-item__description.sc-stzh-accordion-item,.stzh-accordion-item__subtitle.sc-stzh-accordion-item{display:block}.stzh-accordion-item--has-description.sc-stzh-accordion-item .stzh-accordion-item__button.sc-stzh-accordion-item,.stzh-accordion-item--has-subtitle.sc-stzh-accordion-item .stzh-accordion-item__button.sc-stzh-accordion-item{padding:var(--stzh-space-medium)}.stzh-accordion-item--has-subtitle.sc-stzh-accordion-item .stzh-accordion-item__heading.sc-stzh-accordion-item{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal;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){.stzh-accordion-item--has-subtitle.sc-stzh-accordion-item .stzh-accordion-item__heading.sc-stzh-accordion-item{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){.stzh-accordion-item--has-subtitle.sc-stzh-accordion-item .stzh-accordion-item__heading.sc-stzh-accordion-item{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){.stzh-accordion-item--has-subtitle.sc-stzh-accordion-item .stzh-accordion-item__heading.sc-stzh-accordion-item{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))}}.stzh-accordion-item--is-open.sc-stzh-accordion-item .stzh-accordion-item__button.sc-stzh-accordion-item{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))}.stzh-accordion-item--is-open.sc-stzh-accordion-item .stzh-accordion-item__description.sc-stzh-accordion-item,.stzh-accordion-item--is-open.sc-stzh-accordion-item .stzh-accordion-item__subtitle.sc-stzh-accordion-item{color:var(--stzh-color-white)}.stzh-accordion-item--is-open.sc-stzh-accordion-item .stzh-accordion-item__button-icon.sc-stzh-accordion-item::before,.stzh-accordion-item--is-open.sc-stzh-accordion-item .stzh-accordion-item__button-icon.sc-stzh-accordion-item::after{-webkit-transform:rotate(0) translate(-50%, -50%);transform:rotate(0) translate(-50%, -50%)}.stzh-accordion-item--is-disabled.sc-stzh-accordion-item .stzh-accordion-item__button.sc-stzh-accordion-item{cursor:not-allowed;color:var(--stzh-color-grey61);border-color:var(--stzh-color-grey5);background-color:var(--stzh-color-grey5)}";
6
8
 
7
9
  const ANIMATION_SHOW = {
8
10
  keyframes: [
9
- { height: '0', opacity: '0' },
10
- { height: 'auto', opacity: '1' }
11
+ { height: "0", opacity: "0" },
12
+ { height: "auto", opacity: "1" }
11
13
  ],
12
- options: { duration: 300, easing: 'linear' }
14
+ options: { duration: 300, easing: "linear" }
13
15
  };
14
16
  const ANIMATION_HIDE = {
15
17
  keyframes: [
16
- { height: 'auto', opacity: '1' },
17
- { height: '0', opacity: '0' }
18
+ { height: "auto", opacity: "1" },
19
+ { height: "0", opacity: "0" }
18
20
  ],
19
- options: { duration: 300, easing: 'linear' }
21
+ options: { duration: 300, easing: "linear" }
20
22
  };
21
23
  let accordionItemCounter = 0;
22
24
  const StzhAccordionItem$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
@@ -35,6 +37,16 @@ const StzhAccordionItem$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLE
35
37
  this.heading = "";
36
38
  /** Subtitle */
37
39
  this.subtitle = "";
40
+ /** Description */
41
+ this.description = "";
42
+ /** Icon (use instead of icon slot) */
43
+ this.icon = "";
44
+ /** Badge */
45
+ this.badge = "";
46
+ /** Whether badge should be displayed empty */
47
+ this.badgeEmpty = false;
48
+ /** Badge type */
49
+ this.badgeType = "default";
38
50
  /** Heading level */
39
51
  this.headingLevel = "3";
40
52
  this.toggledByMethod = false;
@@ -89,32 +101,34 @@ const StzhAccordionItem$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLE
89
101
  if (newValue) {
90
102
  if (this.toggledByMethod) {
91
103
  this.stzhOpen.emit({
92
- component: 'stzh-accordion-item'
104
+ component: "stzh-accordion-item"
93
105
  });
94
106
  }
95
107
  await stopAnimations(this.bodyElement);
96
108
  this.bodyElement.hidden = false;
97
109
  await animateTo(this.bodyElement, shimKeyframesHeightAuto(ANIMATION_SHOW.keyframes, this.bodyElement.scrollHeight), ANIMATION_SHOW.options);
98
- this.bodyElement.style.height = 'auto';
110
+ this.bodyElement.style.height = "auto";
111
+ this.bodyElement.style.overflow = "auto";
99
112
  if (this.toggledByMethod) {
100
113
  this.stzhOpened.emit({
101
- component: 'stzh-accordion-item'
114
+ component: "stzh-accordion-item"
102
115
  });
103
116
  }
104
117
  }
105
118
  else {
106
119
  if (this.toggledByMethod) {
107
120
  this.stzhClose.emit({
108
- component: 'stzh-accordion-item'
121
+ component: "stzh-accordion-item"
109
122
  });
110
123
  }
111
124
  await stopAnimations(this.bodyElement);
112
125
  await animateTo(this.bodyElement, shimKeyframesHeightAuto(ANIMATION_HIDE.keyframes, this.bodyElement.scrollHeight), ANIMATION_HIDE.options);
113
126
  this.bodyElement.hidden = true;
114
- this.bodyElement.style.height = 'auto';
127
+ this.bodyElement.style.height = "0px";
128
+ this.bodyElement.style.overflow = "hidden";
115
129
  if (this.toggledByMethod) {
116
130
  this.stzhClosed.emit({
117
- component: 'stzh-accordion-item'
131
+ component: "stzh-accordion-item"
118
132
  });
119
133
  }
120
134
  }
@@ -156,17 +170,23 @@ const StzhAccordionItem$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLE
156
170
  }
157
171
  componentDidLoad() {
158
172
  this.bodyElement.hidden = !this.open;
159
- this.bodyElement.style.height = this.open ? "auto" : "0";
173
+ this.bodyElement.style.height = this.open ? "auto" : "0px";
174
+ this.bodyElement.style.overflow = this.open ? "auto" : "hidden";
160
175
  }
161
176
  render() {
162
177
  const Heading = `h${this.headingLevel}`;
163
178
  const classes = {
164
179
  "stzh-accordion-item": true,
180
+ "stzh-accordion-item--has-description": !!this.description,
165
181
  "stzh-accordion-item--has-subtitle": !!this.subtitle,
166
182
  "stzh-accordion-item--is-open": this.open,
167
183
  "stzh-accordion-item--is-disabled": this.disabled,
168
184
  };
169
- return (h(Host, null, h("div", { class: classes }, h(Heading, { id: `${this.accordionItemId}-header`, class: "stzh-accordion-item__heading", onClick: this.handleHeaderClick }, h("button", { ref: (el) => (this.buttonElement = el), class: "stzh-accordion-item__button", "aria-controls": `${this.accordionItemId}-content`, "aria-expanded": `${this.open ? "true" : "false"}`, disabled: this.disabled, onKeyDown: this.onButtonKeydown, type: "button" }, h("span", { class: "stzh-accordion-item__button-text" }, h("span", { class: "stzh-accordion-item__subtitle" }, this.subtitle), h("span", { class: "stzh-accordion-item__heading" }, this.heading)), h("span", { class: "stzh-accordion-item__button-icon" }))), h("div", { id: `${this.accordionItemId}-content`, ref: (el) => (this.bodyElement = el), class: "stzh-accordion-item__content", "aria-labelledby": `${this.accordionItemId}-header`, role: "region", onKeyDown: this.onContentKeydown }, h("div", { class: "stzh-accordion-item__content-inner" }, h("slot", null))))));
185
+ return (h(Host, null, h("div", { class: classes }, h(Heading, { id: `${this.accordionItemId}-header`, class: "stzh-accordion-item__heading", onClick: this.handleHeaderClick }, h("button", { ref: (el) => (this.buttonElement = el), class: "stzh-accordion-item__button", "aria-controls": `${this.accordionItemId}-content`, "aria-expanded": `${this.open ? "true" : "false"}`, disabled: this.disabled, onKeyDown: this.onButtonKeydown, type: "button" }, h("span", { class: "stzh-accordion-item__icon-wrapper" }, this.icon ?
186
+ h("stzh-icon", { class: "stzh-accordion-item__icon", name: this.icon })
187
+ :
188
+ h("slot", { name: "icon" })), h("span", { class: "stzh-accordion-item__button-text" }, h("span", { class: "stzh-accordion-item__subtitle" }, this.subtitle), h("span", { class: "stzh-accordion-item__heading" }, this.heading), h("span", { class: "stzh-accordion-item__description" }, this.description)), h("span", { class: "stzh-accordion-item__button-icon" }), (this.badge || this.badgeEmpty) &&
189
+ h("stzh-badge", { class: "stzh-accordion-item__badge", label: this.badge, type: this.badgeType }))), h("div", { id: `${this.accordionItemId}-content`, ref: (el) => (this.bodyElement = el), class: "stzh-accordion-item__content", "aria-labelledby": `${this.accordionItemId}-header`, role: "region", onKeyDown: this.onContentKeydown }, h("div", { class: "stzh-accordion-item__content-inner" }, h("slot", null))))));
170
190
  }
171
191
  get element() { return this; }
172
192
  static get watchers() { return {
@@ -178,6 +198,11 @@ const StzhAccordionItem$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLE
178
198
  "disabled": [516],
179
199
  "heading": [1],
180
200
  "subtitle": [1],
201
+ "description": [1],
202
+ "icon": [1],
203
+ "badge": [1],
204
+ "badgeEmpty": [516, "badge-empty"],
205
+ "badgeType": [513, "badge-type"],
181
206
  "headingLevel": [513, "heading-level"],
182
207
  "show": [64],
183
208
  "hide": [64],
@@ -188,13 +213,23 @@ function defineCustomElement$1() {
188
213
  if (typeof customElements === "undefined") {
189
214
  return;
190
215
  }
191
- const components = ["stzh-accordion-item"];
216
+ const components = ["stzh-accordion-item", "stzh-badge", "stzh-icon"];
192
217
  components.forEach(tagName => { switch (tagName) {
193
218
  case "stzh-accordion-item":
194
219
  if (!customElements.get(tagName)) {
195
220
  customElements.define(tagName, StzhAccordionItem$1);
196
221
  }
197
222
  break;
223
+ case "stzh-badge":
224
+ if (!customElements.get(tagName)) {
225
+ defineCustomElement$3();
226
+ }
227
+ break;
228
+ case "stzh-icon":
229
+ if (!customElements.get(tagName)) {
230
+ defineCustomElement$2();
231
+ }
232
+ break;
198
233
  } });
199
234
  }
200
235
 
@@ -93,14 +93,6 @@ const StzhActionset = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
93
93
  this._actions = newValue;
94
94
  }
95
95
  }
96
- // handleLoad(e) {
97
- // console.log(e);
98
- // requestAnimationFrame(() => {
99
- // requestAnimationFrame(() => {
100
- // this.update();
101
- // });
102
- // });
103
- // }
104
96
  handleResize() {
105
97
  if (this.debounceResize) {
106
98
  window.cancelAnimationFrame(this.debounceResize);
@@ -155,7 +147,7 @@ const StzhActionset = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
155
147
  ? this.localization.furtherActions
156
148
  : (!this.isMedium ? this.localization.actions : "") }), h("stzh-menu", { slot: "content" }, this.actionsCollapsed.map(action => (h("stzh-menu-item", {
157
149
  // class="hide-medium show-when-collapsed"
158
- icon: action.icon, badge: action.badge, onClick: () => { this.actionClick(action); }
150
+ icon: action.icon, badge: action.badge, badgeEmpty: action.badgeEmpty, badgeType: action.badgeType, onClick: () => { this.actionClick(action); }
159
151
  }, action.label)))))))));
160
152
  }
161
153
  get element() { return this; }
@@ -1,6 +1,6 @@
1
1
  import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
2
 
3
- 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}";
3
+ 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{--color:var(--stzh-color-white);--background-color:var(--stzh-base-color);display:-ms-inline-flexbox;display:inline-flex}[type=success].sc-stzh-badge-h{--background-color:var(--stzh-color-truegreen)}[type=warning].sc-stzh-badge-h{--color:var(--stzh-color-grey87);--background-color:var(--stzh-color-warning)}[type=error].sc-stzh-badge-h{--background-color:var(--stzh-color-error)}[type=info].sc-stzh-badge-h{--background-color:var(--stzh-color-zueriblue)}.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(--background-color);color:var(--color);text-transform:uppercase}.stzh-badge.sc-stzh-badge:empty{width:0.875rem;height:0.875rem;padding:0}";
4
4
 
5
5
  const StzhBadge = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
6
6
  constructor() {
@@ -8,13 +8,20 @@ const StzhBadge = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
8
8
  this.__registerHost();
9
9
  /** Text content of the badge */
10
10
  this.label = "";
11
+ /** Type */
12
+ this.type = "default";
11
13
  }
12
14
  render() {
13
- return (h(Host, null, h("div", { class: "stzh-badge" }, this.label)));
15
+ const classes = {
16
+ "stzh-badge": true,
17
+ [`stzh-badge--type-${this.type}`]: !!this.type
18
+ };
19
+ return (h(Host, null, h("div", { class: classes }, this.label)));
14
20
  }
15
21
  static get style() { return stzhBadgeCss; }
16
22
  }, [2, "stzh-badge", {
17
- "label": [1]
23
+ "label": [1],
24
+ "type": [513]
18
25
  }]);
19
26
  function defineCustomElement() {
20
27
  if (typeof customElements === "undefined") {
@@ -14,8 +14,12 @@ const StzhButton = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
14
14
  this.stzhChange = createEvent(this, "stzhChange", 7);
15
15
  /** Display a badge aligned to button or icons */
16
16
  this.badge = "";
17
+ /** Badge type */
18
+ this.badgeType = "default";
17
19
  /** Badge position */
18
20
  this.badgePosition = "button";
21
+ /** Whether badge should be displayed empty */
22
+ this.badgeEmpty = false;
19
23
  /** Whether the button is full width */
20
24
  this.fullwidth = false;
21
25
  /** Size variant */
@@ -100,16 +104,16 @@ const StzhButton = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
100
104
  return (h("div", { class: "stzh-button__icon-wrapper" }, this.icon ?
101
105
  h("stzh-icon", { class: "stzh-button__icon", name: this.icon })
102
106
  :
103
- h("slot", { name: "icon" }), this.badge && this.badgePosition === "icon" && iconUsed &&
104
- h("stzh-badge", { class: "stzh-button__badge", label: this.badge })));
107
+ h("slot", { name: "icon" }), (this.badge || this.badgeEmpty) && this.badgePosition === "icon" && iconUsed &&
108
+ h("stzh-badge", { class: "stzh-button__badge", label: this.badge, type: this.badgeType })));
105
109
  }
106
110
  renderContent() {
107
111
  return (h("div", { class: "stzh-button__text" }, this.label ? this.label : h("slot", null)));
108
112
  }
109
113
  renderInner(iconUsed) {
110
114
  return (h(Fragment, null, h("div", { class: "stzh-button__inner", onClick: this.onClick }, this.type === "radio" &&
111
- 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) &&
112
- h("stzh-badge", { class: "stzh-button__badge", label: this.badge, onClick: this.onClick })));
115
+ 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.badgeEmpty) && (this.badgePosition === "button" || !iconUsed) &&
116
+ h("stzh-badge", { class: "stzh-button__badge", label: this.badge, type: this.badgeType, onClick: this.onClick })));
113
117
  }
114
118
  render() {
115
119
  const iconUsed = hasSlot(this.element, "icon") || !!this.icon;
@@ -134,13 +138,15 @@ const StzhButton = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
134
138
  this.type === "radio" ?
135
139
  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))
136
140
  :
137
- 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))));
141
+ h("button", { ref: (el) => (this.button = el), class: classes, type: this.type, disabled: this.disabled, "aria-label": this.a11yLabel, "aria-describedby": this.a11yDescribedby, onFocus: this.onFocus, onBlur: this.onBlur, onClick: this.onClick }, this.renderInner(iconUsed))));
138
142
  }
139
143
  get element() { return this; }
140
144
  static get style() { return stzhButtonCss; }
141
145
  }, [6, "stzh-button", {
142
146
  "badge": [1],
147
+ "badgeType": [513, "badge-type"],
143
148
  "badgePosition": [513, "badge-position"],
149
+ "badgeEmpty": [516, "badge-empty"],
144
150
  "fullwidth": [516],
145
151
  "size": [513],
146
152
  "textAlign": [513, "text-align"],
@@ -15,27 +15,10 @@ const StzhCardList$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
15
15
  this.stzhCollapseAll = createEvent(this, "stzhCollapseAll", 7);
16
16
  /** Whether collapse/expand toggle link */
17
17
  this.showToggleLink = false;
18
- /** Whether sorting should be disabled */
19
- this.sortableDisabled = false;
18
+ /** Whether sorting should be enabled */
19
+ this.sortableEnabled = false;
20
20
  /** HTML attribute that is used by the `toArray()` of sortable method */
21
21
  this.sortableDataIdAttribute = "data-id";
22
- /** Algorithm how the ghost element will be cloned */
23
- this.sortableGhostClone = (dragElement) => {
24
- const [clonedElement, clonedStzhElement, originalStzhElement] = cloneElement(dragElement);
25
- if (clonedStzhElement
26
- && originalStzhElement
27
- && clonedStzhElement.tagName.toLowerCase() === "stzh-card") {
28
- const clonedStzhElementCard = clonedStzhElement;
29
- const originalStzhElementCard = originalStzhElement;
30
- // copy every property that is not reflected to its attribute
31
- clonedStzhElementCard.heading = originalStzhElementCard.heading;
32
- clonedStzhElementCard.subtitle = originalStzhElementCard.subtitle;
33
- clonedStzhElementCard.headerActions = originalStzhElementCard.headerActions;
34
- clonedStzhElementCard.footerActions = originalStzhElementCard.footerActions;
35
- clonedStzhElementCard.hideMovementActions = originalStzhElementCard.hideMovementActions;
36
- }
37
- return clonedElement;
38
- };
39
22
  this.allCollapsed = false;
40
23
  this.collapseClick = () => {
41
24
  const cards = Array.from(this.element.querySelectorAll("stzh-card"));
@@ -54,6 +37,22 @@ const StzhCardList$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
54
37
  const cards = Array.from(this.element.querySelectorAll("stzh-card"));
55
38
  this.allCollapsed = !cards.some(card => !card.collapsed);
56
39
  };
40
+ this.sortableGhostClone = (dragElement) => {
41
+ const [clonedElement, clonedStzhElement, originalStzhElement] = cloneElement(dragElement);
42
+ if (clonedStzhElement
43
+ && originalStzhElement
44
+ && clonedStzhElement.tagName.toLowerCase() === "stzh-card") {
45
+ const clonedStzhElementCard = clonedStzhElement;
46
+ const originalStzhElementCard = originalStzhElement;
47
+ // copy every property that is not reflected to its attribute
48
+ clonedStzhElementCard.heading = originalStzhElementCard.heading;
49
+ clonedStzhElementCard.subtitle = originalStzhElementCard.subtitle;
50
+ clonedStzhElementCard.headerActions = originalStzhElementCard.headerActions;
51
+ clonedStzhElementCard.footerActions = originalStzhElementCard.footerActions;
52
+ clonedStzhElementCard.hideMovementActions = originalStzhElementCard.hideMovementActions;
53
+ }
54
+ return clonedElement;
55
+ };
57
56
  }
58
57
  collapseListener() {
59
58
  this.updateCollapsedState();
@@ -71,16 +70,15 @@ const StzhCardList$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
71
70
  "stzh-card-list": true
72
71
  };
73
72
  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 &&
74
- 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))))));
73
+ 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.sortableEnabled, dataIdAttribute: this.sortableDataIdAttribute, ghostClone: this.sortableGhostClone }, h("div", { class: "stzh-card-list__cards", role: "list" }, h("slot", null))))));
75
74
  }
76
75
  get element() { return this; }
77
76
  static get style() { return stzhCardListCss; }
78
77
  }, [6, "stzh-card-list", {
79
78
  "localization": [16],
80
79
  "showToggleLink": [516, "show-toggle-link"],
81
- "sortableDisabled": [4, "sortable-disabled"],
80
+ "sortableEnabled": [4, "sortable-enabled"],
82
81
  "sortableDataIdAttribute": [1, "sortable-data-id-attribute"],
83
- "sortableGhostClone": [16],
84
82
  "allCollapsed": [32]
85
83
  }, [[0, "stzhCollapse", "collapseListener"]]]);
86
84
  function defineCustomElement$1() {