@oiz/stzh-components 1.4.0-npmjstest → 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 (477) hide show
  1. package/README.md +1 -56
  2. package/dist/cjs/{app-globals-e07b8f5f.js → app-globals-58a084a9.js} +5 -3
  3. package/dist/cjs/loader.cjs.js +2 -2
  4. package/dist/cjs/stzh-actions.cjs.entry.js +1 -1
  5. package/dist/cjs/stzh-actionset.cjs.entry.js +164 -0
  6. package/dist/cjs/stzh-appnav.cjs.entry.js +1 -1
  7. package/dist/cjs/stzh-badge_3.cjs.entry.js +25 -4
  8. package/dist/cjs/stzh-card-list.cjs.entry.js +79 -0
  9. package/dist/cjs/stzh-card.cjs.entry.js +294 -0
  10. package/dist/cjs/stzh-checkbox.cjs.entry.js +1 -1
  11. package/dist/cjs/stzh-checkboxgroup.cjs.entry.js +2 -4
  12. package/dist/cjs/stzh-chip-select.cjs.entry.js +1 -1
  13. package/dist/cjs/stzh-components.cjs.js +2 -2
  14. package/dist/cjs/stzh-cspace.cjs.entry.js +1 -1
  15. package/dist/cjs/stzh-datalist.cjs.entry.js +74 -0
  16. package/dist/cjs/stzh-datepicker_4.cjs.entry.js +7 -8
  17. package/dist/cjs/stzh-dialog.cjs.entry.js +2 -2
  18. package/dist/cjs/stzh-dropdown.cjs.entry.js +33 -8
  19. package/dist/cjs/stzh-figure.cjs.entry.js +1 -1
  20. package/dist/cjs/stzh-footer.cjs.entry.js +1 -1
  21. package/dist/cjs/stzh-ghettobox_2.cjs.entry.js +2 -2
  22. package/dist/cjs/stzh-header.cjs.entry.js +1 -1
  23. package/dist/cjs/stzh-icon-sprite.cjs.entry.js +1 -1
  24. package/dist/cjs/stzh-input.cjs.entry.js +10 -6
  25. package/dist/cjs/stzh-link.cjs.entry.js +2 -2
  26. package/dist/cjs/stzh-menu_2.cjs.entry.js +1 -1
  27. package/dist/cjs/stzh-overlay.cjs.entry.js +1 -1
  28. package/dist/cjs/stzh-pagetitle.cjs.entry.js +1 -1
  29. package/dist/cjs/stzh-popover.cjs.entry.js +30 -28
  30. package/dist/cjs/stzh-portal-mitwirken.cjs.entry.js +1 -1
  31. package/dist/cjs/stzh-readspeaker.cjs.entry.js +1 -1
  32. package/dist/cjs/stzh-sortable.cjs.entry.js +3230 -2440
  33. package/dist/cjs/stzh-table.cjs.entry.js +1 -1
  34. package/dist/cjs/stzh-toggle.cjs.entry.js +1 -1
  35. package/dist/cjs/stzh-tooltip.cjs.entry.js +3 -1
  36. package/dist/cjs/stzh-upload.cjs.entry.js +44 -11
  37. package/dist/cjs/utils-8dc66449.js +76 -0
  38. package/dist/collection/assets/fonts.css +5 -5
  39. package/dist/collection/assets/i18n/de.json +7 -2
  40. package/dist/collection/assets/i18n/en.json +7 -2
  41. package/dist/collection/assets/icons/mono/recycling-outline.svg +11 -0
  42. package/dist/collection/assets/icons/mono/recycling.svg +10 -0
  43. package/dist/collection/assets/icons/mono/smartphone.svg +10 -0
  44. package/dist/collection/assets/icons/mono/target.svg +11 -0
  45. package/dist/collection/collection-manifest.json +4 -2
  46. package/dist/collection/components/stzh-actionset/stzh-actionset.css +147 -0
  47. package/dist/collection/components/stzh-actionset/stzh-actionset.js +351 -0
  48. package/dist/collection/components/{stzh-servicecard-list/stzh-servicecard-list.localization.js → stzh-actionset/stzh-actionset.localization.js} +0 -0
  49. package/dist/collection/components/stzh-actionset/stzh-actionset.stories.js +72 -0
  50. package/dist/collection/components/stzh-button/stzh-button.css +66 -0
  51. package/dist/collection/components/stzh-button/stzh-button.js +98 -4
  52. package/dist/collection/components/stzh-button/stzh-button.stories.js +1 -1
  53. package/dist/collection/components/stzh-card/stzh-card.css +408 -0
  54. package/dist/collection/components/stzh-card/stzh-card.js +771 -0
  55. package/dist/collection/components/stzh-card/stzh-card.localization.js +1 -0
  56. package/dist/collection/components/stzh-card/stzh-card.stories.js +137 -0
  57. package/dist/collection/components/{stzh-servicecard-list/stzh-servicecard-list.css → stzh-card-list/stzh-card-list.css} +9 -9
  58. package/dist/collection/components/stzh-card-list/stzh-card-list.js +224 -0
  59. package/dist/collection/components/{stzh-servicecard/stzh-servicecard.localization.js → stzh-card-list/stzh-card-list.localization.js} +0 -0
  60. package/dist/collection/components/stzh-card-list/stzh-card-list.stories.js +132 -0
  61. package/dist/collection/components/stzh-checkboxgroup/stzh-checkboxgroup.js +1 -3
  62. package/dist/collection/components/stzh-chip-select/stzh-chip-select.js +1 -1
  63. package/dist/collection/components/stzh-cspace/stzh-cspace.css +19 -6
  64. package/dist/collection/components/stzh-datalist/stzh-datalist.css +621 -0
  65. package/dist/collection/components/stzh-datalist/stzh-datalist.js +237 -0
  66. package/dist/collection/components/stzh-datalist/stzh-datalist.stories.js +66 -0
  67. package/dist/collection/components/stzh-datepicker/stzh-datepicker.js +1 -21
  68. package/dist/collection/components/stzh-dialog/stzh-dialog.css +11 -2
  69. package/dist/collection/components/stzh-dialog/stzh-dialog.stories.js +18 -8
  70. package/dist/collection/components/stzh-dropdown/stzh-dropdown.css +5 -7
  71. package/dist/collection/components/stzh-dropdown/stzh-dropdown.js +86 -27
  72. package/dist/collection/components/stzh-dropdown/stzh-dropdown.stories.js +3328 -0
  73. package/dist/collection/components/stzh-icon-sprite/assets/svgsprites/symbol/sprite.symbol.html +63 -11
  74. package/dist/collection/components/stzh-icon-sprite/assets/svgsprites/symbol/svg/sprite.symbol.svg +1 -1
  75. package/dist/collection/components/stzh-input/stzh-input.css +18 -9
  76. package/dist/collection/components/stzh-input/stzh-input.js +80 -26
  77. package/dist/collection/components/stzh-link/stzh-link.css +5 -0
  78. package/dist/collection/components/stzh-link/stzh-link.js +2 -2
  79. package/dist/collection/components/stzh-overlay/stzh-overlay.css +5 -1
  80. package/dist/collection/components/stzh-popover/stzh-popover.js +52 -32
  81. package/dist/collection/components/stzh-portal-mitwirken/stzh-portal-mitwirken.css +292 -9
  82. package/dist/collection/components/stzh-radio/stzh-radio.css +2 -2
  83. package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.js +5 -6
  84. package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.stories.js +3 -0
  85. package/dist/collection/components/stzh-richtext/stzh-richtext.css +145 -0
  86. package/dist/collection/components/stzh-richtext/stzh-richtext.stories.js +19 -0
  87. package/dist/collection/components/stzh-sortable/stzh-sortable.js +75 -8
  88. package/dist/collection/components/stzh-sortable/stzh-sortable.stories.js +1 -1
  89. package/dist/collection/components/stzh-tooltip/stzh-tooltip.js +21 -1
  90. package/dist/collection/components/stzh-upload/stzh-upload.css +3 -0
  91. package/dist/collection/components/stzh-upload/stzh-upload.js +43 -10
  92. package/dist/collection/components/stzh-upload/stzh-upload.stories.js +10 -8
  93. package/dist/collection/global/js/helpers/autofocus.js +3 -1
  94. package/dist/collection/global/js/script.js +1 -1
  95. package/dist/collection/libraries/sortable.js +3791 -0
  96. package/dist/collection/pages/meinkonto.stories.js +93 -88
  97. package/dist/collection/utils/utils.js +39 -0
  98. package/dist/components/index.d.ts +4 -2
  99. package/dist/components/index.js +9 -5
  100. package/dist/components/{stzh-servicecard.d.ts → stzh-actionset.d.ts} +4 -4
  101. package/dist/components/stzh-actionset.js +6 -0
  102. package/dist/components/stzh-actionset2.js +227 -0
  103. package/dist/components/stzh-button2.js +27 -3
  104. package/dist/components/{stzh-servicecard-list.d.ts → stzh-card-list.d.ts} +4 -4
  105. package/dist/components/stzh-card-list.js +123 -0
  106. package/dist/components/stzh-card.d.ts +11 -0
  107. package/dist/components/stzh-card.js +376 -0
  108. package/dist/components/stzh-checkboxgroup.js +1 -3
  109. package/dist/components/stzh-chip-select.js +1 -1
  110. package/dist/components/stzh-cspace.js +1 -1
  111. package/dist/components/stzh-datalist.d.ts +11 -0
  112. package/dist/components/stzh-datalist.js +113 -0
  113. package/dist/components/stzh-datepicker2.js +1 -2
  114. package/dist/components/stzh-dialog.js +1 -1
  115. package/dist/components/stzh-dropdown2.js +36 -9
  116. package/dist/components/stzh-icon-sprite.js +1 -1
  117. package/dist/components/stzh-input2.js +13 -6
  118. package/dist/components/stzh-link2.js +1 -1
  119. package/dist/components/stzh-overlay.js +1 -1
  120. package/dist/components/stzh-popover2.js +31 -28
  121. package/dist/components/stzh-portal-mitwirken.js +1 -1
  122. package/dist/components/stzh-radio2.js +1 -1
  123. package/dist/components/stzh-radiogroup2.js +4 -5
  124. package/dist/components/stzh-richtext2.js +1 -1
  125. package/dist/components/stzh-sortable2.js +3232 -2441
  126. package/dist/components/stzh-tooltip2.js +4 -1
  127. package/dist/components/stzh-upload.js +43 -10
  128. package/dist/components/utils.js +40 -1
  129. package/dist/esm/{app-globals-70c229e3.js → app-globals-6b6ff890.js} +5 -3
  130. package/dist/esm/{index-0e6d34c6.js → index-84f71a43.js} +1 -1
  131. package/dist/esm/loader.js +3 -3
  132. package/dist/esm/stzh-accordion-item.entry.js +1 -1
  133. package/dist/esm/stzh-accordion.entry.js +1 -1
  134. package/dist/esm/stzh-actions.entry.js +2 -2
  135. package/dist/esm/stzh-actionset.entry.js +160 -0
  136. package/dist/esm/stzh-appnav.entry.js +2 -2
  137. package/dist/esm/stzh-appointments.entry.js +1 -1
  138. package/dist/esm/stzh-badge_3.entry.js +26 -5
  139. package/dist/esm/stzh-calendar.entry.js +1 -1
  140. package/dist/esm/stzh-card-list.entry.js +75 -0
  141. package/dist/esm/stzh-card.entry.js +290 -0
  142. package/dist/esm/stzh-cell.entry.js +1 -1
  143. package/dist/esm/stzh-checkbox.entry.js +3 -3
  144. package/dist/esm/stzh-checkboxgroup.entry.js +4 -6
  145. package/dist/esm/stzh-chip-select.entry.js +2 -2
  146. package/dist/esm/stzh-chip.entry.js +1 -1
  147. package/dist/esm/stzh-components.js +3 -3
  148. package/dist/esm/stzh-container.entry.js +1 -1
  149. package/dist/esm/stzh-cspace.entry.js +2 -2
  150. package/dist/esm/stzh-datalist.entry.js +70 -0
  151. package/dist/esm/stzh-datamessagelist-item.entry.js +1 -1
  152. package/dist/esm/stzh-datamessagelist.entry.js +1 -1
  153. package/dist/esm/stzh-datatable.entry.js +1 -1
  154. package/dist/esm/stzh-datepicker_4.entry.js +9 -10
  155. package/dist/esm/stzh-dialog.entry.js +3 -3
  156. package/dist/esm/stzh-dropdown.entry.js +35 -10
  157. package/dist/esm/stzh-fieldset.entry.js +1 -1
  158. package/dist/esm/stzh-figure.entry.js +2 -2
  159. package/dist/esm/stzh-flyingfocus.entry.js +1 -1
  160. package/dist/esm/stzh-footer.entry.js +2 -2
  161. package/dist/esm/stzh-ghettobox_2.entry.js +3 -3
  162. package/dist/esm/stzh-header.entry.js +2 -2
  163. package/dist/esm/stzh-heading.entry.js +1 -1
  164. package/dist/esm/stzh-hr.entry.js +1 -1
  165. package/dist/esm/stzh-hspace.entry.js +1 -1
  166. package/dist/esm/stzh-icon-sprite.entry.js +2 -2
  167. package/dist/esm/{stzh-input-description-da7b0e98.js → stzh-input-description-8c477f97.js} +1 -1
  168. package/dist/esm/stzh-input.entry.js +12 -8
  169. package/dist/esm/stzh-link.entry.js +3 -3
  170. package/dist/esm/stzh-list-item.entry.js +1 -1
  171. package/dist/esm/stzh-list.entry.js +1 -1
  172. package/dist/esm/stzh-loader.entry.js +1 -1
  173. package/dist/esm/stzh-loadingbar.entry.js +1 -1
  174. package/dist/esm/stzh-menu_2.entry.js +2 -2
  175. package/dist/esm/stzh-message.entry.js +1 -1
  176. package/dist/esm/stzh-metanav.entry.js +1 -1
  177. package/dist/esm/stzh-overlay.entry.js +2 -2
  178. package/dist/esm/stzh-page-skiplinks.entry.js +1 -1
  179. package/dist/esm/stzh-pagetitle.entry.js +2 -2
  180. package/dist/esm/stzh-popover.entry.js +31 -29
  181. package/dist/esm/stzh-portal-mitwirken.entry.js +2 -2
  182. package/dist/esm/stzh-progressbar-item.entry.js +1 -1
  183. package/dist/esm/stzh-progressbar.entry.js +1 -1
  184. package/dist/esm/stzh-readspeaker.entry.js +2 -2
  185. package/dist/esm/stzh-row.entry.js +1 -1
  186. package/dist/esm/stzh-saptcha.entry.js +1 -1
  187. package/dist/esm/stzh-section.entry.js +1 -1
  188. package/dist/esm/stzh-skiplink.entry.js +1 -1
  189. package/dist/esm/stzh-sortable.entry.js +3231 -2441
  190. package/dist/esm/stzh-status.entry.js +1 -1
  191. package/dist/esm/stzh-table.entry.js +2 -2
  192. package/dist/esm/stzh-toggle.entry.js +3 -3
  193. package/dist/esm/stzh-tooltip.entry.js +4 -2
  194. package/dist/esm/stzh-upload.entry.js +46 -13
  195. package/dist/esm/stzh-vbz-linechip.entry.js +1 -1
  196. package/dist/esm/stzh-vbz-majorticker.entry.js +1 -1
  197. package/dist/esm/stzh-vbz-ticker.entry.js +1 -1
  198. package/dist/esm/stzh-visuallyhidden.entry.js +1 -1
  199. package/dist/esm/stzh-vspace.entry.js +1 -1
  200. package/dist/esm/utils-68a28fce.js +72 -0
  201. package/dist/esm-es5/app-globals-6b6ff890.js +1 -0
  202. package/dist/esm-es5/{index-0e6d34c6.js → index-84f71a43.js} +1 -1
  203. package/dist/esm-es5/loader.js +1 -1
  204. package/dist/esm-es5/stzh-accordion-item.entry.js +1 -1
  205. package/dist/esm-es5/stzh-accordion.entry.js +1 -1
  206. package/dist/esm-es5/stzh-actions.entry.js +1 -1
  207. package/dist/esm-es5/stzh-actionset.entry.js +1 -0
  208. package/dist/esm-es5/stzh-appnav.entry.js +1 -1
  209. package/dist/esm-es5/stzh-appointments.entry.js +1 -1
  210. package/dist/esm-es5/stzh-badge_3.entry.js +1 -1
  211. package/dist/esm-es5/stzh-calendar.entry.js +1 -1
  212. package/dist/esm-es5/stzh-card-list.entry.js +1 -0
  213. package/dist/esm-es5/stzh-card.entry.js +1 -0
  214. package/dist/esm-es5/stzh-cell.entry.js +1 -1
  215. package/dist/esm-es5/stzh-checkbox.entry.js +1 -1
  216. package/dist/esm-es5/stzh-checkboxgroup.entry.js +1 -1
  217. package/dist/esm-es5/stzh-chip-select.entry.js +1 -1
  218. package/dist/esm-es5/stzh-chip.entry.js +1 -1
  219. package/dist/esm-es5/stzh-components.js +1 -1
  220. package/dist/esm-es5/stzh-container.entry.js +1 -1
  221. package/dist/esm-es5/stzh-cspace.entry.js +1 -1
  222. package/dist/esm-es5/stzh-datalist.entry.js +1 -0
  223. package/dist/esm-es5/stzh-datamessagelist-item.entry.js +1 -1
  224. package/dist/esm-es5/stzh-datamessagelist.entry.js +1 -1
  225. package/dist/esm-es5/stzh-datatable.entry.js +1 -1
  226. package/dist/esm-es5/stzh-datepicker_4.entry.js +1 -1
  227. package/dist/esm-es5/stzh-dialog.entry.js +1 -1
  228. package/dist/esm-es5/stzh-dropdown.entry.js +1 -1
  229. package/dist/esm-es5/stzh-fieldset.entry.js +1 -1
  230. package/dist/esm-es5/stzh-figure.entry.js +1 -1
  231. package/dist/esm-es5/stzh-flyingfocus.entry.js +1 -1
  232. package/dist/esm-es5/stzh-footer.entry.js +1 -1
  233. package/dist/esm-es5/stzh-ghettobox_2.entry.js +1 -1
  234. package/dist/esm-es5/stzh-header.entry.js +1 -1
  235. package/dist/esm-es5/stzh-heading.entry.js +1 -1
  236. package/dist/esm-es5/stzh-hr.entry.js +1 -1
  237. package/dist/esm-es5/stzh-hspace.entry.js +1 -1
  238. package/dist/esm-es5/stzh-icon-sprite.entry.js +1 -1
  239. package/dist/esm-es5/{stzh-input-description-da7b0e98.js → stzh-input-description-8c477f97.js} +1 -1
  240. package/dist/esm-es5/stzh-input.entry.js +1 -1
  241. package/dist/esm-es5/stzh-link.entry.js +1 -1
  242. package/dist/esm-es5/stzh-list-item.entry.js +1 -1
  243. package/dist/esm-es5/stzh-list.entry.js +1 -1
  244. package/dist/esm-es5/stzh-loader.entry.js +1 -1
  245. package/dist/esm-es5/stzh-loadingbar.entry.js +1 -1
  246. package/dist/esm-es5/stzh-menu_2.entry.js +1 -1
  247. package/dist/esm-es5/stzh-message.entry.js +1 -1
  248. package/dist/esm-es5/stzh-metanav.entry.js +1 -1
  249. package/dist/esm-es5/stzh-overlay.entry.js +1 -1
  250. package/dist/esm-es5/stzh-page-skiplinks.entry.js +1 -1
  251. package/dist/esm-es5/stzh-pagetitle.entry.js +1 -1
  252. package/dist/esm-es5/stzh-popover.entry.js +1 -1
  253. package/dist/esm-es5/stzh-portal-mitwirken.entry.js +1 -1
  254. package/dist/esm-es5/stzh-progressbar-item.entry.js +1 -1
  255. package/dist/esm-es5/stzh-progressbar.entry.js +1 -1
  256. package/dist/esm-es5/stzh-readspeaker.entry.js +1 -1
  257. package/dist/esm-es5/stzh-row.entry.js +1 -1
  258. package/dist/esm-es5/stzh-saptcha.entry.js +1 -1
  259. package/dist/esm-es5/stzh-section.entry.js +1 -1
  260. package/dist/esm-es5/stzh-skiplink.entry.js +1 -1
  261. package/dist/esm-es5/stzh-sortable.entry.js +2 -2
  262. package/dist/esm-es5/stzh-status.entry.js +1 -1
  263. package/dist/esm-es5/stzh-table.entry.js +1 -1
  264. package/dist/esm-es5/stzh-toggle.entry.js +1 -1
  265. package/dist/esm-es5/stzh-tooltip.entry.js +1 -1
  266. package/dist/esm-es5/stzh-upload.entry.js +1 -1
  267. package/dist/esm-es5/stzh-vbz-linechip.entry.js +1 -1
  268. package/dist/esm-es5/stzh-vbz-majorticker.entry.js +1 -1
  269. package/dist/esm-es5/stzh-vbz-ticker.entry.js +1 -1
  270. package/dist/esm-es5/stzh-visuallyhidden.entry.js +1 -1
  271. package/dist/esm-es5/stzh-vspace.entry.js +1 -1
  272. package/dist/esm-es5/utils-68a28fce.js +1 -0
  273. package/dist/stzh-components/assets/fonts.css +5 -5
  274. package/dist/stzh-components/assets/i18n/de.json +7 -2
  275. package/dist/stzh-components/assets/i18n/en.json +7 -2
  276. package/dist/stzh-components/assets/icons/mono/recycling-outline.svg +11 -0
  277. package/dist/stzh-components/assets/icons/mono/recycling.svg +10 -0
  278. package/dist/stzh-components/assets/icons/mono/smartphone.svg +10 -0
  279. package/dist/stzh-components/assets/icons/mono/target.svg +11 -0
  280. package/dist/stzh-components/assets/svgsprites/symbol/sprite.symbol.html +63 -11
  281. package/dist/stzh-components/assets/svgsprites/symbol/svg/sprite.symbol.svg +1 -1
  282. package/dist/stzh-components/{p-07f16263.entry.js → p-001b7d10.entry.js} +1 -1
  283. package/dist/stzh-components/p-0230004d.system.js +1 -0
  284. package/dist/stzh-components/{p-0837657c.entry.js → p-08a564af.entry.js} +1 -1
  285. package/dist/stzh-components/{p-a6486f64.system.entry.js → p-0b8de542.system.entry.js} +1 -1
  286. package/dist/stzh-components/{p-8db4279d.system.entry.js → p-0bbbbe85.system.entry.js} +1 -1
  287. package/dist/stzh-components/p-0d5522dc.system.entry.js +1 -0
  288. package/dist/stzh-components/{p-33d033a3.system.entry.js → p-0efe125f.system.entry.js} +1 -1
  289. package/dist/stzh-components/{p-4cfe83b5.system.entry.js → p-0fc06049.system.entry.js} +1 -1
  290. package/dist/stzh-components/p-0fc83964.system.entry.js +1 -0
  291. package/dist/stzh-components/{p-08d4ed80.entry.js → p-13b3500e.entry.js} +1 -1
  292. package/dist/stzh-components/p-13f44000.entry.js +1 -0
  293. package/dist/stzh-components/{p-65444117.system.entry.js → p-17c6c1db.system.entry.js} +1 -1
  294. package/dist/stzh-components/{p-b34774e7.entry.js → p-190de4de.entry.js} +1 -1
  295. package/dist/stzh-components/{p-b2c8c31e.system.entry.js → p-19bff884.system.entry.js} +1 -1
  296. package/dist/stzh-components/p-1f57d28e.js +1 -0
  297. package/dist/stzh-components/{p-debb00e6.entry.js → p-216577b4.entry.js} +1 -1
  298. package/dist/stzh-components/{p-6edd58a4.system.entry.js → p-27fd6c6f.system.entry.js} +1 -1
  299. package/dist/stzh-components/{p-55188328.entry.js → p-2818488f.entry.js} +1 -1
  300. package/dist/stzh-components/{p-f9dc7a9b.entry.js → p-29427863.entry.js} +1 -1
  301. package/dist/stzh-components/{p-3c4478b0.entry.js → p-2b338050.entry.js} +1 -1
  302. package/dist/stzh-components/p-2cf1ae40.system.entry.js +1 -0
  303. package/dist/stzh-components/{p-fa8651dd.entry.js → p-2e559062.entry.js} +1 -1
  304. package/dist/stzh-components/{p-11d0c8f3.entry.js → p-332e4fd3.entry.js} +1 -1
  305. package/dist/stzh-components/{p-1ccbd2d6.system.entry.js → p-33c0229f.system.entry.js} +1 -1
  306. package/dist/stzh-components/p-373f79e8.entry.js +1 -0
  307. package/dist/stzh-components/{p-b651f251.entry.js → p-3ac93a01.entry.js} +1 -1
  308. package/dist/stzh-components/p-3b27a43f.system.entry.js +7 -0
  309. package/dist/stzh-components/{p-1cde29ea.entry.js → p-3d8317b5.entry.js} +1 -1
  310. package/dist/stzh-components/{p-48bbcc26.system.entry.js → p-45bab70d.system.entry.js} +1 -1
  311. package/dist/stzh-components/{p-3f03fd94.system.entry.js → p-48b5b697.system.entry.js} +1 -1
  312. package/dist/stzh-components/{p-ece7ad4d.system.entry.js → p-4c6989ae.system.entry.js} +1 -1
  313. package/dist/stzh-components/{p-79ca1ba6.entry.js → p-552f49c4.entry.js} +1 -1
  314. package/dist/stzh-components/{p-562394a9.system.entry.js → p-55d23a3c.system.entry.js} +1 -1
  315. package/dist/stzh-components/{p-60b4f34c.system.entry.js → p-560f96f0.system.entry.js} +1 -1
  316. package/dist/stzh-components/{p-f48a2b00.system.entry.js → p-56b9cc3c.system.entry.js} +1 -1
  317. package/dist/stzh-components/{p-cb4a91b7.system.entry.js → p-58d886cb.system.entry.js} +1 -1
  318. package/dist/stzh-components/p-5975c355.system.entry.js +1 -0
  319. package/dist/stzh-components/p-5987573e.system.entry.js +1 -0
  320. package/dist/stzh-components/{p-634095bd.system.entry.js → p-5997e418.system.entry.js} +1 -1
  321. package/dist/stzh-components/p-59c323ce.entry.js +1 -0
  322. package/dist/stzh-components/{p-49968bbf.entry.js → p-5a02ef03.entry.js} +1 -1
  323. package/dist/stzh-components/{p-82d85c3a.system.entry.js → p-5a354428.system.entry.js} +1 -1
  324. package/dist/stzh-components/{p-0a71fbac.entry.js → p-5bd2849d.entry.js} +1 -1
  325. package/dist/stzh-components/{p-19344366.system.entry.js → p-61aac051.system.entry.js} +1 -1
  326. package/dist/stzh-components/{p-ade1ebcf.system.entry.js → p-6305db38.system.entry.js} +1 -1
  327. package/dist/stzh-components/{p-ff8a3e96.entry.js → p-6354fee3.entry.js} +1 -1
  328. package/dist/stzh-components/{p-86d3ce62.entry.js → p-638bedfa.entry.js} +1 -1
  329. package/dist/stzh-components/{p-9c0494a6.system.js → p-63d89b96.system.js} +1 -1
  330. package/dist/stzh-components/{p-33d75303.entry.js → p-63d8db7b.entry.js} +1 -1
  331. package/dist/stzh-components/{p-818634d2.entry.js → p-64b4cc74.entry.js} +1 -1
  332. package/dist/stzh-components/p-653c6bbc.entry.js +1 -0
  333. package/dist/stzh-components/{p-b1976630.entry.js → p-67f906b1.entry.js} +1 -1
  334. package/dist/stzh-components/{p-f44f4d26.system.entry.js → p-69c3187f.system.entry.js} +1 -1
  335. package/dist/stzh-components/{p-c2d58384.entry.js → p-69f4a27e.entry.js} +1 -1
  336. package/dist/stzh-components/p-6a81e64b.entry.js +1 -0
  337. package/dist/stzh-components/p-6a873872.entry.js +1 -0
  338. package/dist/stzh-components/{p-03b16275.entry.js → p-72f29f07.entry.js} +1 -1
  339. package/dist/stzh-components/p-75cdc8a6.system.entry.js +1 -0
  340. package/dist/stzh-components/{p-a4100bd8.system.entry.js → p-7ad87d98.system.entry.js} +1 -1
  341. package/dist/stzh-components/p-7d8c9866.entry.js +1 -0
  342. package/dist/stzh-components/{p-1cebd703.entry.js → p-7f9f9a8d.entry.js} +1 -1
  343. package/dist/stzh-components/{p-7d098987.entry.js → p-83b1e379.entry.js} +1 -1
  344. package/dist/stzh-components/{p-aec2d2d1.system.entry.js → p-851e0caa.system.entry.js} +1 -1
  345. package/dist/stzh-components/{p-1f15a4e0.system.entry.js → p-86bc421e.system.entry.js} +1 -1
  346. package/dist/stzh-components/{p-690d14cd.entry.js → p-88e0f453.entry.js} +1 -1
  347. package/dist/stzh-components/{p-0338cec3.system.entry.js → p-89274cd5.system.entry.js} +1 -1
  348. package/dist/stzh-components/{p-346e26f2.system.entry.js → p-8a9e588e.system.entry.js} +1 -1
  349. package/dist/stzh-components/{p-66556f67.entry.js → p-8aebb240.entry.js} +1 -1
  350. package/dist/stzh-components/{p-bba52769.system.entry.js → p-8cbc987f.system.entry.js} +1 -1
  351. package/dist/stzh-components/{p-0ae3e066.system.entry.js → p-8d0da18d.system.entry.js} +1 -1
  352. package/dist/stzh-components/{p-56fccfa3.system.entry.js → p-8d547247.system.entry.js} +1 -1
  353. package/dist/stzh-components/p-8f16b0ac.entry.js +8 -0
  354. package/dist/stzh-components/{p-85d78e08.entry.js → p-938ef748.entry.js} +1 -1
  355. package/dist/stzh-components/{p-65282c9d.js → p-93e8e31f.js} +1 -1
  356. package/dist/stzh-components/{p-e9ca8ddc.entry.js → p-961cb979.entry.js} +1 -1
  357. package/dist/stzh-components/{p-98afd4b0.system.entry.js → p-981b2629.system.entry.js} +1 -1
  358. package/dist/stzh-components/p-9bda100f.system.js +1 -0
  359. package/dist/stzh-components/{p-0ec28130.system.entry.js → p-9c72f491.system.entry.js} +1 -1
  360. package/dist/stzh-components/{p-8cf287d8.system.entry.js → p-9fb4da92.system.entry.js} +1 -1
  361. package/dist/stzh-components/{p-e58d3bc7.entry.js → p-a448f5a5.entry.js} +1 -1
  362. package/dist/stzh-components/{p-96fd158c.entry.js → p-a646c09a.entry.js} +1 -1
  363. package/dist/stzh-components/p-a6627504.entry.js +1 -0
  364. package/dist/stzh-components/{p-2f2cb544.system.entry.js → p-a67e09cd.system.entry.js} +1 -1
  365. package/dist/stzh-components/{p-378be0be.system.entry.js → p-a7c35778.system.entry.js} +1 -1
  366. package/dist/stzh-components/{p-c8bc2812.entry.js → p-a7ee2636.entry.js} +1 -1
  367. package/dist/stzh-components/{p-632d9076.system.entry.js → p-a99d3e97.system.entry.js} +1 -1
  368. package/dist/stzh-components/{p-148de4e6.entry.js → p-ab246b66.entry.js} +1 -1
  369. package/dist/stzh-components/{p-936cc626.system.entry.js → p-ab455116.system.entry.js} +1 -1
  370. package/dist/stzh-components/p-af2664fc.system.entry.js +1 -0
  371. package/dist/stzh-components/p-b084fcbf.system.entry.js +1 -0
  372. package/dist/stzh-components/p-b550feaa.system.entry.js +1 -0
  373. package/dist/stzh-components/{p-f8d9411d.system.entry.js → p-b636a18a.system.entry.js} +1 -1
  374. package/dist/stzh-components/{p-f544cf3d.entry.js → p-b9295dc2.entry.js} +1 -1
  375. package/dist/stzh-components/{p-1bfc1097.entry.js → p-b9382599.entry.js} +1 -1
  376. package/dist/stzh-components/{p-46f301c0.entry.js → p-b9a027aa.entry.js} +1 -1
  377. package/dist/stzh-components/{p-e4347cfe.entry.js → p-b9c3f3cc.entry.js} +1 -1
  378. package/dist/stzh-components/{p-7e3924a0.system.entry.js → p-ba94e315.system.entry.js} +1 -1
  379. package/dist/stzh-components/{p-7d62dfeb.system.entry.js → p-bd178c32.system.entry.js} +1 -1
  380. package/dist/stzh-components/{p-e972a44f.system.entry.js → p-be461e19.system.entry.js} +1 -1
  381. package/dist/stzh-components/{p-30b347ee.system.js → p-bf0fdd23.system.js} +2 -2
  382. package/dist/stzh-components/{p-0433fff9.system.entry.js → p-c013a00b.system.entry.js} +1 -1
  383. package/dist/stzh-components/p-c1337453.entry.js +1 -0
  384. package/dist/stzh-components/{p-915e8ad6.entry.js → p-c3d93395.entry.js} +1 -1
  385. package/dist/stzh-components/{p-c6cad5ed.system.entry.js → p-c456c04b.system.entry.js} +1 -1
  386. package/dist/stzh-components/{p-298276e4.entry.js → p-c499e04d.entry.js} +1 -1
  387. package/dist/stzh-components/{p-e9bc3a43.entry.js → p-c4b7c2be.entry.js} +1 -1
  388. package/dist/stzh-components/{p-df422d36.entry.js → p-c58dd9de.entry.js} +1 -1
  389. package/dist/stzh-components/{p-7d2237ca.entry.js → p-c692e405.entry.js} +1 -1
  390. package/dist/stzh-components/{p-4e9bfeb8.system.entry.js → p-c83e4fec.system.entry.js} +1 -1
  391. package/dist/stzh-components/p-ca062c11.system.js +1 -0
  392. package/dist/stzh-components/{p-49e37004.entry.js → p-ce070ccd.entry.js} +1 -1
  393. package/dist/stzh-components/{p-b3b5ee7e.entry.js → p-ce28428b.entry.js} +1 -1
  394. package/dist/stzh-components/p-cfaac121.js +1 -0
  395. package/dist/stzh-components/{p-6ec17efc.entry.js → p-d0aa9d3b.entry.js} +1 -1
  396. package/dist/stzh-components/{p-2990206c.system.entry.js → p-d11a70e2.system.entry.js} +1 -1
  397. package/dist/stzh-components/p-d1dba399.system.entry.js +1 -0
  398. package/dist/stzh-components/p-d2b5e066.entry.js +1 -0
  399. package/dist/stzh-components/{p-58ffc722.system.entry.js → p-d54f04c8.system.entry.js} +1 -1
  400. package/dist/stzh-components/p-d645d645.entry.js +1 -0
  401. package/dist/stzh-components/{p-30cb8bc0.system.entry.js → p-d6c07494.system.entry.js} +1 -1
  402. package/dist/stzh-components/{p-cf162e67.entry.js → p-d7893dfd.entry.js} +1 -1
  403. package/dist/stzh-components/{p-73194e28.entry.js → p-d9643cc4.entry.js} +1 -1
  404. package/dist/stzh-components/{p-c6ad1a8c.entry.js → p-da7b363e.entry.js} +1 -1
  405. package/dist/stzh-components/{p-58917ce2.entry.js → p-db5363ef.entry.js} +1 -1
  406. package/dist/stzh-components/p-de017b87.system.entry.js +1 -0
  407. package/dist/stzh-components/{p-2d0685e3.entry.js → p-e009bfdc.entry.js} +1 -1
  408. package/dist/stzh-components/{p-fc9c4fc3.system.entry.js → p-e213663c.system.entry.js} +1 -1
  409. package/dist/stzh-components/{p-7a6e347d.system.entry.js → p-e7a84e53.system.entry.js} +1 -1
  410. package/dist/stzh-components/{p-14d728f0.entry.js → p-ee22256f.entry.js} +1 -1
  411. package/dist/stzh-components/{p-670d4834.entry.js → p-f1356a85.entry.js} +1 -1
  412. package/dist/stzh-components/{p-82e6148a.system.entry.js → p-f167eaa4.system.entry.js} +1 -1
  413. package/dist/stzh-components/{p-3c799247.entry.js → p-f2ee016a.entry.js} +1 -1
  414. package/dist/stzh-components/{p-1ace5d80.entry.js → p-f788a468.entry.js} +1 -1
  415. package/dist/stzh-components/{p-99533090.system.entry.js → p-f832e938.system.entry.js} +1 -1
  416. package/dist/stzh-components/{p-32b78d65.js → p-f84fa2a4.js} +1 -1
  417. package/dist/stzh-components/{p-80db7aa6.system.entry.js → p-fa56fc0d.system.entry.js} +1 -1
  418. package/dist/stzh-components/{p-88a4f756.system.entry.js → p-fc13d017.system.entry.js} +1 -1
  419. package/dist/stzh-components/p-fc6b4f91.system.entry.js +1 -0
  420. package/dist/stzh-components/p-fdd1998f.entry.js +1 -0
  421. package/dist/stzh-components/{p-9e6c25ed.system.entry.js → p-fdf0b4bc.system.entry.js} +1 -1
  422. package/dist/stzh-components/{p-0c92ee26.system.entry.js → p-ffa1e9dd.system.entry.js} +1 -1
  423. package/dist/stzh-components/stzh-components.css +1 -1
  424. package/dist/stzh-components/stzh-components.esm.js +1 -1
  425. package/dist/stzh-components/stzh-components.js +1 -1
  426. package/dist/types/components/stzh-actionset/stzh-actionset.localization.d.ts +5 -0
  427. package/dist/types/components/{stzh-servicecard/stzh-servicecard.localization.d.ts → stzh-card/stzh-card.localization.d.ts} +2 -1
  428. package/dist/types/components/{stzh-servicecard-list/stzh-servicecard-list.localization.d.ts → stzh-card-list/stzh-card-list.localization.d.ts} +1 -1
  429. package/dist/types/components.d.ts +518 -239
  430. package/dist/types/index.d.ts +57 -14
  431. package/dist/types/utils/utils.d.ts +2 -0
  432. package/dist/vscode-data.json +366 -132
  433. package/package.json +1 -1
  434. package/dist/cjs/stzh-servicecard-list.cjs.entry.js +0 -56
  435. package/dist/cjs/stzh-servicecard.cjs.entry.js +0 -212
  436. package/dist/cjs/utils-d327c19d.js +0 -36
  437. package/dist/collection/components/stzh-servicecard/stzh-servicecard.css +0 -558
  438. package/dist/collection/components/stzh-servicecard/stzh-servicecard.js +0 -592
  439. package/dist/collection/components/stzh-servicecard/stzh-servicecard.stories.js +0 -73
  440. package/dist/collection/components/stzh-servicecard-list/stzh-servicecard-list.js +0 -153
  441. package/dist/collection/components/stzh-servicecard-list/stzh-servicecard-list.stories.js +0 -115
  442. package/dist/components/stzh-servicecard-list.js +0 -99
  443. package/dist/components/stzh-servicecard.js +0 -283
  444. package/dist/esm/stzh-servicecard-list.entry.js +0 -52
  445. package/dist/esm/stzh-servicecard.entry.js +0 -208
  446. package/dist/esm/utils-904416df.js +0 -33
  447. package/dist/esm-es5/app-globals-70c229e3.js +0 -1
  448. package/dist/esm-es5/stzh-servicecard-list.entry.js +0 -1
  449. package/dist/esm-es5/stzh-servicecard.entry.js +0 -1
  450. package/dist/esm-es5/utils-904416df.js +0 -1
  451. package/dist/stzh-components/p-043ab41e.system.entry.js +0 -1
  452. package/dist/stzh-components/p-1d914f6c.entry.js +0 -1
  453. package/dist/stzh-components/p-323fdc2f.entry.js +0 -1
  454. package/dist/stzh-components/p-49ea222f.system.entry.js +0 -1
  455. package/dist/stzh-components/p-5f7b72c8.entry.js +0 -1
  456. package/dist/stzh-components/p-5f856307.system.js +0 -1
  457. package/dist/stzh-components/p-63b5068a.system.entry.js +0 -1
  458. package/dist/stzh-components/p-6c502e6e.js +0 -1
  459. package/dist/stzh-components/p-6ea5c23d.system.entry.js +0 -7
  460. package/dist/stzh-components/p-7279af4a.system.entry.js +0 -1
  461. package/dist/stzh-components/p-7bb1bd3b.entry.js +0 -1
  462. package/dist/stzh-components/p-8462ba57.entry.js +0 -1
  463. package/dist/stzh-components/p-88bef2cd.entry.js +0 -1
  464. package/dist/stzh-components/p-a7c3b41a.entry.js +0 -1
  465. package/dist/stzh-components/p-a86c6487.entry.js +0 -1
  466. package/dist/stzh-components/p-aa4e28cc.system.js +0 -1
  467. package/dist/stzh-components/p-ac1da083.system.js +0 -1
  468. package/dist/stzh-components/p-b63d6ded.system.entry.js +0 -1
  469. package/dist/stzh-components/p-bcade28e.entry.js +0 -1
  470. package/dist/stzh-components/p-be21cebd.js +0 -1
  471. package/dist/stzh-components/p-d04e8743.system.entry.js +0 -1
  472. package/dist/stzh-components/p-d8819b74.system.entry.js +0 -1
  473. package/dist/stzh-components/p-e048de42.entry.js +0 -8
  474. package/dist/stzh-components/p-e2ce48f1.system.entry.js +0 -1
  475. package/dist/stzh-components/p-e987954a.system.entry.js +0 -1
  476. package/dist/stzh-components/p-f21440b3.entry.js +0 -1
  477. package/dist/stzh-components/p-fe9f8a09.system.entry.js +0 -1
@@ -0,0 +1,137 @@
1
+ import { h } from '../../utils/h';
2
+ import readme from './readme.md';
3
+ import { withDesign } from 'storybook-addon-designs';
4
+ import { getFigmaLink } from '../../../figma';
5
+
6
+ export default {
7
+ title: 'Components/Card',
8
+ component: 'stzh-card',
9
+ parameters: {
10
+ actions: {
11
+ handles: ['stzhCollapse', 'stzhStarClick', 'stzhSubtitleClick', 'stzhActionClick']
12
+ },
13
+ layout: 'padded',
14
+ docs: {
15
+ description: {
16
+ component: readme
17
+ }
18
+ },
19
+ design: {
20
+ type: 'figma',
21
+ url: getFigmaLink('card'),
22
+ allowFullscreen: true
23
+ }
24
+ },
25
+ decorators: [
26
+ withDesign
27
+ ]
28
+ };
29
+
30
+ const Template = (args) => (
31
+ <stzh-card {...args}>
32
+ <img slot="image" src="media/images/example.jpg" loading="lazy" alt="Example image" />
33
+ <div slot="content">Card Content</div>
34
+ <stzh-status
35
+ slot="meta"
36
+ label="complete"
37
+ type="success"
38
+ percent="50"
39
+ ></stzh-status>
40
+ </stzh-card>
41
+ );
42
+
43
+ const TemplateSelectable = (args) => (
44
+ <stzh-card {...args}>
45
+ <img slot="image" src="media/images/example.jpg" loading="lazy" alt="Example image" />
46
+ <div slot="content">Card Content</div>
47
+ <stzh-chip slot="meta" label="Tag"></stzh-chip>
48
+ </stzh-card>
49
+ );
50
+
51
+ const TemplateStarrable = (args) => (
52
+ <stzh-card {...args}>
53
+ <div slot="content">Card Content</div>
54
+ </stzh-card>
55
+ );
56
+
57
+ const headerActions = `[
58
+ {
59
+ "id": "delete",
60
+ "icon": "delete",
61
+ "label": "Action"
62
+ },
63
+ {
64
+ "id": "message",
65
+ "icon": "mail",
66
+ "badge": "3",
67
+ "label": "Messages",
68
+ "onlyCollapseText": true
69
+ }
70
+ ]`;
71
+
72
+ const footerActions = `[
73
+ {
74
+ "id": "action-1",
75
+ "icon": "alarm-bell",
76
+ "label": "Lorem",
77
+ "badge": "3"
78
+ },
79
+ {
80
+ "id": "action-2",
81
+ "icon": "cart",
82
+ "label": "Ipsum"
83
+ },
84
+ {
85
+ "id": "action-3",
86
+ "icon": "delete",
87
+ "label": "Dolor"
88
+ },
89
+ {
90
+ "id": "action-4",
91
+ "icon": "mail",
92
+ "label": "Lorem"
93
+ },
94
+ {
95
+ "id": "action-5",
96
+ "icon": "clock",
97
+ "label": "Ipsum"
98
+ }
99
+ ]`;
100
+
101
+ export const Default = Template.bind({});
102
+ Default.args = {
103
+ heading: 'Lorem ipsum',
104
+ subtitle: 'Dolor si',
105
+ status: {
106
+ label: 'Test'
107
+ },
108
+ 'header-actions': headerActions,
109
+ 'footer-actions': `[
110
+ {
111
+ "id": "action-1",
112
+ "icon": "arrow-right",
113
+ "label": "Lorem",
114
+ "variant": "primary",
115
+ "iconPosition": "right"
116
+ }
117
+ ]`
118
+ };
119
+
120
+ export const Selectable = TemplateSelectable.bind({});
121
+ Selectable.args = {
122
+ heading: 'Lorem ipsum',
123
+ subtitle: 'Dolor si',
124
+ selectable: true,
125
+ name: 'card',
126
+ value: '1',
127
+ 'header-actions': headerActions
128
+ };
129
+
130
+ export const Starrable = TemplateStarrable.bind({});
131
+ Starrable.args = {
132
+ heading: 'Lorem ipsum',
133
+ subtitle: 'Dolor si',
134
+ starrable: true,
135
+ 'header-actions': headerActions,
136
+ 'footer-actions': footerActions
137
+ };
@@ -114,7 +114,7 @@
114
114
  --color: inherit;
115
115
  }
116
116
 
117
- .stzh-servicecard-list__header {
117
+ .stzh-card-list__header {
118
118
  margin-bottom: var(--stzh-space-medium);
119
119
  display: flex;
120
120
  justify-content: space-between;
@@ -122,42 +122,42 @@
122
122
  align-items: flex-start;
123
123
  }
124
124
  @media screen and (min-width: 1024px) {
125
- .stzh-servicecard-list__header {
125
+ .stzh-card-list__header {
126
126
  margin-bottom: var(--stzh-space-large);
127
127
  }
128
128
  }
129
129
  @media screen and (min-width: 1260px) {
130
- .stzh-servicecard-list__header {
130
+ .stzh-card-list__header {
131
131
  margin-bottom: var(--stzh-space-xlarge);
132
132
  }
133
133
  }
134
134
  @media screen and (min-width: 800px) {
135
- .stzh-servicecard-list__header {
135
+ .stzh-card-list__header {
136
136
  flex-direction: row;
137
137
  }
138
138
  }
139
- .stzh-servicecard-list__description {
139
+ .stzh-card-list__description {
140
140
  font-size: var(--stzh-font-curve-p1-default-font-size, var(--stzh-font-milli-font-size));
141
141
  line-height: var(--stzh-font-curve-p1-default-text-line-height, var(--stzh-font-milli-text-line-height));
142
142
  letter-spacing: var(--stzh-font-curve-p1-default-text-letter-spacing);
143
143
  color: var(--stzh-base-lead-color);
144
144
  }
145
145
  @media screen and (min-width: 1024px) {
146
- .stzh-servicecard-list__description {
146
+ .stzh-card-list__description {
147
147
  font-size: var(--stzh-font-curve-p1-medium-font-size, var(--stzh-font-centi-font-size));
148
148
  line-height: var(--stzh-font-curve-p1-medium-text-line-height, var(--stzh-font-centi-text-line-height));
149
149
  letter-spacing: var(--stzh-font-curve-p1-medium-text-letter-spacing);
150
150
  }
151
151
  }
152
- .stzh-servicecard-list__description:not(:empty) {
152
+ .stzh-card-list__description:not(:empty) {
153
153
  margin-bottom: var(--stzh-space-xsmall);
154
154
  }
155
155
  @media screen and (min-width: 800px) {
156
- .stzh-servicecard-list__description:not(:empty) {
156
+ .stzh-card-list__description:not(:empty) {
157
157
  margin-bottom: 0;
158
158
  }
159
159
  }
160
- .stzh-servicecard-list__switch {
160
+ .stzh-card-list__switch {
161
161
  --color: var(--stzh-base-lead-color);
162
162
  align-self: end;
163
163
  }
@@ -0,0 +1,224 @@
1
+ import { Host, h } from "@stencil/core";
2
+ import { cloneElement } from "../../utils/utils";
3
+ import { fetchTranslations } from "../../utils/translation-utils";
4
+ /**
5
+ * @slot - Slot for `stzh-card` elements
6
+ * @slot description - Slot for description
7
+ */
8
+ export class StzhCardList {
9
+ constructor() {
10
+ /** Whether collapse/expand toggle link */
11
+ this.showToggleLink = false;
12
+ /** Whether sorting should be disabled */
13
+ this.sortableDisabled = false;
14
+ /** HTML attribute that is used by the `toArray()` of sortable method */
15
+ this.sortableDataIdAttribute = "data-id";
16
+ /** Algorithm how the ghost element will be cloned */
17
+ this.sortableGhostClone = (dragElement) => {
18
+ const [clonedElement, clonedStzhElement, originalStzhElement] = cloneElement(dragElement);
19
+ if (clonedStzhElement
20
+ && originalStzhElement
21
+ && clonedStzhElement.tagName.toLowerCase() === "stzh-card") {
22
+ const clonedStzhElementCard = clonedStzhElement;
23
+ const originalStzhElementCard = originalStzhElement;
24
+ // copy every property that is not reflected to its attribute
25
+ clonedStzhElementCard.heading = originalStzhElementCard.heading;
26
+ clonedStzhElementCard.subtitle = originalStzhElementCard.subtitle;
27
+ clonedStzhElementCard.headerActions = originalStzhElementCard.headerActions;
28
+ clonedStzhElementCard.footerActions = originalStzhElementCard.footerActions;
29
+ clonedStzhElementCard.hideMovementActions = originalStzhElementCard.hideMovementActions;
30
+ }
31
+ return clonedElement;
32
+ };
33
+ this.allCollapsed = false;
34
+ this.collapseClick = () => {
35
+ const cards = Array.from(this.element.querySelectorAll("stzh-card"));
36
+ cards.forEach(card => {
37
+ if (card.collapsible) {
38
+ card.collapsed = !this.allCollapsed;
39
+ }
40
+ });
41
+ this.allCollapsed = !this.allCollapsed;
42
+ this.stzhCollapseAll.emit({
43
+ component: "stzh-card-list",
44
+ allCollapsed: this.allCollapsed
45
+ });
46
+ };
47
+ this.updateCollapsedState = () => {
48
+ const cards = Array.from(this.element.querySelectorAll("stzh-card"));
49
+ this.allCollapsed = !cards.some(card => !card.collapsed);
50
+ };
51
+ }
52
+ collapseListener() {
53
+ this.updateCollapsedState();
54
+ }
55
+ async componentWillLoad() {
56
+ if (!this.localization) {
57
+ this.localization = await fetchTranslations(this.element, "card-list");
58
+ }
59
+ }
60
+ componentDidLoad() {
61
+ this.updateCollapsedState();
62
+ }
63
+ render() {
64
+ const classes = {
65
+ "stzh-card-list": true
66
+ };
67
+ 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 &&
68
+ 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))))));
69
+ }
70
+ static get is() { return "stzh-card-list"; }
71
+ static get encapsulation() { return "scoped"; }
72
+ static get originalStyleUrls() {
73
+ return {
74
+ "$": ["stzh-card-list.scss"]
75
+ };
76
+ }
77
+ static get styleUrls() {
78
+ return {
79
+ "$": ["stzh-card-list.css"]
80
+ };
81
+ }
82
+ static get properties() {
83
+ return {
84
+ "localization": {
85
+ "type": "unknown",
86
+ "mutable": false,
87
+ "complexType": {
88
+ "original": "StzhCardListLocalizedText",
89
+ "resolved": "StzhLocaleComponent & { expandAll: string; collapseAll: string; }",
90
+ "references": {
91
+ "StzhCardListLocalizedText": {
92
+ "location": "import",
93
+ "path": "./stzh-card-list.localization"
94
+ }
95
+ }
96
+ },
97
+ "required": false,
98
+ "optional": false,
99
+ "docs": {
100
+ "tags": [],
101
+ "text": "Translation strings"
102
+ }
103
+ },
104
+ "showToggleLink": {
105
+ "type": "boolean",
106
+ "mutable": false,
107
+ "complexType": {
108
+ "original": "boolean",
109
+ "resolved": "boolean",
110
+ "references": {}
111
+ },
112
+ "required": false,
113
+ "optional": false,
114
+ "docs": {
115
+ "tags": [],
116
+ "text": "Whether collapse/expand toggle link"
117
+ },
118
+ "attribute": "show-toggle-link",
119
+ "reflect": true,
120
+ "defaultValue": "false"
121
+ },
122
+ "sortableDisabled": {
123
+ "type": "boolean",
124
+ "mutable": false,
125
+ "complexType": {
126
+ "original": "boolean",
127
+ "resolved": "boolean",
128
+ "references": {}
129
+ },
130
+ "required": false,
131
+ "optional": false,
132
+ "docs": {
133
+ "tags": [],
134
+ "text": "Whether sorting should be disabled"
135
+ },
136
+ "attribute": "sortable-disabled",
137
+ "reflect": false,
138
+ "defaultValue": "false"
139
+ },
140
+ "sortableDataIdAttribute": {
141
+ "type": "string",
142
+ "mutable": false,
143
+ "complexType": {
144
+ "original": "string",
145
+ "resolved": "string",
146
+ "references": {}
147
+ },
148
+ "required": false,
149
+ "optional": false,
150
+ "docs": {
151
+ "tags": [],
152
+ "text": "HTML attribute that is used by the `toArray()` of sortable method"
153
+ },
154
+ "attribute": "sortable-data-id-attribute",
155
+ "reflect": false,
156
+ "defaultValue": "\"data-id\""
157
+ },
158
+ "sortableGhostClone": {
159
+ "type": "unknown",
160
+ "mutable": false,
161
+ "complexType": {
162
+ "original": "Function",
163
+ "resolved": "Function",
164
+ "references": {
165
+ "Function": {
166
+ "location": "global"
167
+ },
168
+ "HTMLElement": {
169
+ "location": "global"
170
+ },
171
+ "HTMLStzhCardElement": {
172
+ "location": "global"
173
+ }
174
+ }
175
+ },
176
+ "required": false,
177
+ "optional": false,
178
+ "docs": {
179
+ "tags": [],
180
+ "text": "Algorithm how the ghost element will be cloned"
181
+ },
182
+ "defaultValue": "(dragElement: HTMLElement) => {\n const [clonedElement, clonedStzhElement, originalStzhElement] = cloneElement(dragElement);\n\n if (\n clonedStzhElement\n && originalStzhElement\n && clonedStzhElement.tagName.toLowerCase() === \"stzh-card\"\n ) {\n const clonedStzhElementCard: HTMLStzhCardElement = clonedStzhElement as HTMLStzhCardElement;\n const originalStzhElementCard: HTMLStzhCardElement = originalStzhElement as HTMLStzhCardElement;\n\n // copy every property that is not reflected to its attribute\n clonedStzhElementCard.heading = originalStzhElementCard.heading;\n clonedStzhElementCard.subtitle = originalStzhElementCard.subtitle;\n clonedStzhElementCard.headerActions = originalStzhElementCard.headerActions;\n clonedStzhElementCard.footerActions = originalStzhElementCard.footerActions;\n clonedStzhElementCard.hideMovementActions = originalStzhElementCard.hideMovementActions;\n }\n\n return clonedElement;\n }"
183
+ }
184
+ };
185
+ }
186
+ static get states() {
187
+ return {
188
+ "allCollapsed": {}
189
+ };
190
+ }
191
+ static get events() {
192
+ return [{
193
+ "method": "stzhCollapseAll",
194
+ "name": "stzhCollapseAll",
195
+ "bubbles": true,
196
+ "cancelable": true,
197
+ "composed": true,
198
+ "docs": {
199
+ "tags": [],
200
+ "text": "Collapse all event"
201
+ },
202
+ "complexType": {
203
+ "original": "StzhCardListCollapseAllEvent",
204
+ "resolved": "{ component: \"stzh-card-list\"; allCollapsed: boolean; }",
205
+ "references": {
206
+ "StzhCardListCollapseAllEvent": {
207
+ "location": "import",
208
+ "path": "../../index"
209
+ }
210
+ }
211
+ }
212
+ }];
213
+ }
214
+ static get elementRef() { return "element"; }
215
+ static get listeners() {
216
+ return [{
217
+ "name": "stzhCollapse",
218
+ "method": "collapseListener",
219
+ "target": undefined,
220
+ "capture": false,
221
+ "passive": false
222
+ }];
223
+ }
224
+ }
@@ -0,0 +1,132 @@
1
+ import { h } from '../../utils/h';
2
+ import readme from './readme.md';
3
+ import { withDesign } from 'storybook-addon-designs';
4
+ import { getFigmaLink } from '../../../figma';
5
+
6
+ export default {
7
+ title: 'Components/CardList',
8
+ component: 'stzh-card-list',
9
+ parameters: {
10
+ actions: {
11
+ handles: ['stzhCollapseAll']
12
+ },
13
+ layout: 'padded',
14
+ docs: {
15
+ description: {
16
+ component: readme
17
+ }
18
+ },
19
+ design: {
20
+ type: 'figma',
21
+ url: getFigmaLink('card-list'),
22
+ allowFullscreen: true
23
+ }
24
+ },
25
+ decorators: [
26
+ withDesign
27
+ ]
28
+ };
29
+
30
+ const actions = `[
31
+ {
32
+ "id": "message",
33
+ "onlyCollapseText": true,
34
+ "icon": "mail",
35
+ "badge": "3",
36
+ "label": "Messages"
37
+ }
38
+ ]`;
39
+
40
+ const actions2 = `[
41
+ {
42
+ "id": "add",
43
+ "icon": "plus",
44
+ "label": "Add address"
45
+ },
46
+ {
47
+ "id": "edit",
48
+ "icon": "edit",
49
+ "label": "Edit"
50
+ },
51
+ {
52
+ "id": "delete",
53
+ "icon": "delete",
54
+ "label": "Remove"
55
+ },
56
+ {
57
+ "id": "message",
58
+ "onlyCollapseText": true,
59
+ "icon": "mail",
60
+ "badge": "3",
61
+ "label": "Messages"
62
+ }
63
+ ]`;
64
+
65
+ const Template = (args) => (
66
+ <stzh-card-list {...args}>
67
+ <stzh-text slot="description">
68
+ Services are shown here, which you marked with <stzh-icon name="star-filled"></stzh-icon>
69
+ </stzh-text>
70
+ <stzh-card collapsible starrable heading="Lorem ipsum 1" subtitle="Dolor si 1" header-actions={actions}>
71
+ <div slot="content">Content</div>
72
+ </stzh-card>
73
+ <stzh-card collapsible heading="Lorem ipsum 2" subtitle='["Dolor si 2", "Dolor si 2.1", "Dolor si 2.2"]' subtitle-interactive header-actions={actions2}>
74
+ <stzh-row slot="content" span-small="6">
75
+ <stzh-cell>
76
+ <stzh-datalist
77
+ items='[
78
+ {
79
+ "label": "Label",
80
+ "value": "Value 1",
81
+ "meta": "Metainfo",
82
+ "icon": "delete"
83
+ },
84
+ {
85
+ "label": "Really Long Label",
86
+ "value": "Value 2",
87
+ "meta": "Metainfo",
88
+ "icon": "delete"
89
+ },
90
+ {
91
+ "label": "Label",
92
+ "value": "Value 3",
93
+ "meta": "Metainfo"
94
+ }
95
+ ]'></stzh-datalist>
96
+ </stzh-cell>
97
+ <stzh-cell>
98
+ <stzh-datalist
99
+ items='[
100
+ {
101
+ "label": "Label",
102
+ "value": "Value 4",
103
+ "meta": "Metainfo",
104
+ "icon": "delete"
105
+ },
106
+ {
107
+ "label": "Label",
108
+ "value": "Value 5",
109
+ "icon": "delete",
110
+ "href": "http://example.com"
111
+ }
112
+ ]'></stzh-datalist>
113
+ </stzh-cell>
114
+ </stzh-row>
115
+ </stzh-card>
116
+ <stzh-card collapsible starrable heading="Lorem ipsum 3" subtitle="Dolor si 3" footer-actions={actions2}>
117
+ <div slot="content">Content</div>
118
+ </stzh-card>
119
+ <stzh-card collapsible starrable heading="Lorem ipsum 4">
120
+ <stzh-cspace slot="content">
121
+ <p>Content with Input:</p>
122
+ <stzh-input></stzh-input>
123
+ <stzh-button label="Button Right" fullwidth></stzh-button>
124
+ </stzh-cspace>
125
+ </stzh-card>
126
+ </stzh-card-list>
127
+ );
128
+
129
+ export const Default = Template.bind({});
130
+ Default.args = {
131
+ 'show-toggle-Link': true
132
+ };
@@ -93,9 +93,7 @@ export class StzhCheckboxgroup {
93
93
  }
94
94
  updateCheckboxesProperty(prop, value) {
95
95
  this.checkboxes.forEach((checkbox) => {
96
- if (prop === "name"
97
- || (this.preventUpdateProperties.indexOf(prop) === -1
98
- && checkbox.getAttribute(prop) === null)) {
96
+ if (prop === "name" || (this.preventUpdateProperties.indexOf(prop) === -1)) {
99
97
  checkbox[camelCase(prop)] = value;
100
98
  }
101
99
  });
@@ -48,7 +48,7 @@ export class StzhChipSelect {
48
48
  const classes = {
49
49
  "stzh-chip-select": true
50
50
  };
51
- return (h(Host, null, h("div", { class: classes }, h("div", { class: "stzh-chip-select__chips" }, this._data.map((data) => (h("stzh-chip", { class: "stzh-chip-select__chip", label: data.label, counter: data.counter, icon: data.icon, type: data.type, variant: data.variant, size: data.size, active: this.value === data.value, onClick: () => this.chipClick(data) })))), h("stzh-dropdown", { class: "stzh-chip-select__dropdown", items: [this.value], label: this.label, options: this._dataDropdown, onStzhChange: this.onDropdownChange }))));
51
+ return (h(Host, null, h("div", { class: classes }, h("div", { class: "stzh-chip-select__chips", role: "list" }, this._data.map((data) => (h("stzh-chip", { role: "listitem", class: "stzh-chip-select__chip", label: data.label, counter: data.counter, icon: data.icon, type: data.type, variant: data.variant, size: data.size, active: this.value === data.value, onClick: () => this.chipClick(data) })))), h("stzh-dropdown", { class: "stzh-chip-select__dropdown", items: [this.value], label: this.label, options: this._dataDropdown, onStzhChange: this.onDropdownChange }))));
52
52
  }
53
53
  static get is() { return "stzh-chip-select"; }
54
54
  static get encapsulation() { return "scoped"; }
@@ -409,6 +409,7 @@
409
409
  margin-top: var(--stzh-space-xxlarge);
410
410
  margin-bottom: var(--stzh-space-xxlarge);
411
411
  }
412
+ :host ::slotted(stzh-datalist),
412
413
  :host ::slotted(stzh-progressbar),
413
414
  :host ::slotted(stzh-section),
414
415
  :host ::slotted(stzh-hr) {
@@ -416,42 +417,48 @@
416
417
  margin-bottom: var(--stzh-space-large);
417
418
  }
418
419
  @media screen and (min-width: 600px) {
419
- :host ::slotted(stzh-progressbar),
420
+ :host ::slotted(stzh-datalist),
421
+ :host ::slotted(stzh-progressbar),
420
422
  :host ::slotted(stzh-section),
421
423
  :host ::slotted(stzh-hr) {
422
424
  margin-top: var(--stzh-space-xlarge);
423
425
  }
424
426
  }
425
427
  @media screen and (min-width: 1024px) {
426
- :host ::slotted(stzh-progressbar),
428
+ :host ::slotted(stzh-datalist),
429
+ :host ::slotted(stzh-progressbar),
427
430
  :host ::slotted(stzh-section),
428
431
  :host ::slotted(stzh-hr) {
429
432
  margin-top: var(--stzh-space-xxlarge);
430
433
  }
431
434
  }
432
435
  @media screen and (min-width: 1260px) {
433
- :host ::slotted(stzh-progressbar),
436
+ :host ::slotted(stzh-datalist),
437
+ :host ::slotted(stzh-progressbar),
434
438
  :host ::slotted(stzh-section),
435
439
  :host ::slotted(stzh-hr) {
436
440
  margin-top: var(--stzh-space-xxxxlarge);
437
441
  }
438
442
  }
439
443
  @media screen and (min-width: 600px) {
440
- :host ::slotted(stzh-progressbar),
444
+ :host ::slotted(stzh-datalist),
445
+ :host ::slotted(stzh-progressbar),
441
446
  :host ::slotted(stzh-section),
442
447
  :host ::slotted(stzh-hr) {
443
448
  margin-bottom: var(--stzh-space-xlarge);
444
449
  }
445
450
  }
446
451
  @media screen and (min-width: 1024px) {
447
- :host ::slotted(stzh-progressbar),
452
+ :host ::slotted(stzh-datalist),
453
+ :host ::slotted(stzh-progressbar),
448
454
  :host ::slotted(stzh-section),
449
455
  :host ::slotted(stzh-hr) {
450
456
  margin-bottom: var(--stzh-space-xxlarge);
451
457
  }
452
458
  }
453
459
  @media screen and (min-width: 1260px) {
454
- :host ::slotted(stzh-progressbar),
460
+ :host ::slotted(stzh-datalist),
461
+ :host ::slotted(stzh-progressbar),
455
462
  :host ::slotted(stzh-section),
456
463
  :host ::slotted(stzh-hr) {
457
464
  margin-bottom: var(--stzh-space-xxxxlarge);
@@ -512,4 +519,10 @@
512
519
  :host ::slotted(:last-child),
513
520
  :host ::slotted([no-cspace-bottom]) {
514
521
  margin-bottom: 0;
522
+ }
523
+ :host :has(:nth-child(1)[hidden])::slotted(:nth-child(2)) {
524
+ margin-top: 0;
525
+ }
526
+ :host :has(:nth-last-child(1)[hidden])::slotted(:nth-last-child(2)) {
527
+ margin-bottom: 0;
515
528
  }