@oiz/stzh-components 1.5.0-alpha → 2.0.0-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{app-globals-3b6f75bd.js → app-globals-58a084a9.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/stzh-actionset.cjs.entry.js +164 -0
- package/dist/cjs/stzh-badge_3.cjs.entry.js +24 -3
- package/dist/cjs/stzh-card-list.cjs.entry.js +79 -0
- package/dist/cjs/stzh-card.cjs.entry.js +294 -0
- package/dist/cjs/stzh-chip-select.cjs.entry.js +1 -1
- package/dist/cjs/stzh-components.cjs.js +2 -2
- package/dist/cjs/stzh-cspace.cjs.entry.js +1 -1
- package/dist/cjs/stzh-datalist.cjs.entry.js +74 -0
- package/dist/cjs/stzh-datepicker_4.cjs.entry.js +5 -4
- package/dist/cjs/stzh-dialog.cjs.entry.js +1 -1
- package/dist/cjs/stzh-dropdown.cjs.entry.js +4 -6
- package/dist/cjs/stzh-ghettobox_2.cjs.entry.js +1 -1
- package/dist/cjs/stzh-icon-sprite.cjs.entry.js +1 -1
- package/dist/cjs/stzh-input.cjs.entry.js +3 -4
- package/dist/cjs/stzh-link.cjs.entry.js +1 -1
- package/dist/cjs/stzh-overlay.cjs.entry.js +1 -1
- package/dist/cjs/stzh-popover.cjs.entry.js +30 -28
- package/dist/cjs/stzh-portal-mitwirken.cjs.entry.js +1 -1
- package/dist/cjs/stzh-sortable.cjs.entry.js +17 -0
- package/dist/cjs/stzh-tooltip.cjs.entry.js +3 -1
- package/dist/collection/assets/i18n/de.json +7 -2
- package/dist/collection/assets/i18n/en.json +7 -2
- package/dist/collection/assets/icons/mono/recycling-outline.svg +11 -0
- package/dist/collection/assets/icons/mono/recycling.svg +10 -0
- package/dist/collection/assets/icons/mono/smartphone.svg +10 -0
- package/dist/collection/assets/icons/mono/target.svg +11 -0
- package/dist/collection/collection-manifest.json +4 -2
- package/dist/collection/components/stzh-actionset/stzh-actionset.css +147 -0
- package/dist/collection/components/stzh-actionset/stzh-actionset.js +351 -0
- package/dist/collection/components/{stzh-servicecard-list/stzh-servicecard-list.localization.js → stzh-actionset/stzh-actionset.localization.js} +0 -0
- package/dist/collection/components/stzh-actionset/stzh-actionset.stories.js +72 -0
- package/dist/collection/components/stzh-button/stzh-button.css +66 -0
- package/dist/collection/components/stzh-button/stzh-button.js +98 -4
- package/dist/collection/components/stzh-button/stzh-button.stories.js +1 -1
- package/dist/collection/components/stzh-card/stzh-card.css +408 -0
- package/dist/collection/components/{stzh-servicecard/stzh-servicecard.js → stzh-card/stzh-card.js} +283 -126
- package/dist/collection/components/stzh-card/stzh-card.localization.js +1 -0
- package/dist/collection/components/stzh-card/stzh-card.stories.js +137 -0
- package/dist/collection/components/{stzh-servicecard-list/stzh-servicecard-list.css → stzh-card-list/stzh-card-list.css} +9 -9
- package/dist/collection/components/{stzh-servicecard-list/stzh-servicecard-list.js → stzh-card-list/stzh-card-list.js} +46 -18
- package/dist/collection/components/{stzh-servicecard/stzh-servicecard.localization.js → stzh-card-list/stzh-card-list.localization.js} +0 -0
- package/dist/collection/components/stzh-card-list/stzh-card-list.stories.js +132 -0
- package/dist/collection/components/stzh-chip-select/stzh-chip-select.js +1 -1
- package/dist/collection/components/stzh-cspace/stzh-cspace.css +13 -6
- package/dist/collection/components/stzh-datalist/stzh-datalist.css +621 -0
- package/dist/collection/components/stzh-datalist/stzh-datalist.js +237 -0
- package/dist/collection/components/stzh-datalist/stzh-datalist.stories.js +66 -0
- package/dist/collection/components/stzh-datepicker/stzh-datepicker.js +1 -21
- package/dist/collection/components/stzh-dialog/stzh-dialog.css +2 -1
- package/dist/collection/components/stzh-dropdown/stzh-dropdown.css +3 -3
- package/dist/collection/components/stzh-dropdown/stzh-dropdown.js +7 -26
- package/dist/collection/components/stzh-icon-sprite/assets/svgsprites/symbol/sprite.symbol.html +63 -11
- package/dist/collection/components/stzh-icon-sprite/assets/svgsprites/symbol/svg/sprite.symbol.svg +1 -1
- package/dist/collection/components/stzh-input/stzh-input.css +5 -5
- package/dist/collection/components/stzh-input/stzh-input.js +2 -23
- package/dist/collection/components/stzh-link/stzh-link.css +5 -0
- package/dist/collection/components/stzh-link/stzh-link.js +2 -2
- package/dist/collection/components/stzh-overlay/stzh-overlay.css +5 -1
- package/dist/collection/components/stzh-popover/stzh-popover.js +52 -32
- package/dist/collection/components/stzh-portal-mitwirken/stzh-portal-mitwirken.css +292 -0
- package/dist/collection/components/stzh-radio/stzh-radio.css +2 -2
- package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.js +4 -3
- package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.stories.js +3 -0
- package/dist/collection/components/stzh-richtext/stzh-richtext.css +145 -0
- package/dist/collection/components/stzh-richtext/stzh-richtext.stories.js +19 -0
- package/dist/collection/components/stzh-sortable/stzh-sortable.js +38 -0
- package/dist/collection/components/stzh-sortable/stzh-sortable.stories.js +1 -1
- package/dist/collection/components/stzh-tooltip/stzh-tooltip.js +21 -1
- package/dist/collection/pages/meinkonto.stories.js +93 -88
- package/dist/components/index.d.ts +4 -2
- package/dist/components/index.js +5 -3
- package/dist/components/{stzh-servicecard.d.ts → stzh-actionset.d.ts} +4 -4
- package/dist/components/stzh-actionset.js +6 -0
- package/dist/components/stzh-actionset2.js +227 -0
- package/dist/components/stzh-button2.js +27 -3
- package/dist/components/{stzh-servicecard-list.d.ts → stzh-card-list.d.ts} +4 -4
- package/dist/components/stzh-card-list.js +123 -0
- package/dist/components/stzh-card.d.ts +11 -0
- package/dist/components/stzh-card.js +376 -0
- package/dist/components/stzh-chip-select.js +1 -1
- package/dist/components/stzh-cspace.js +1 -1
- package/dist/components/stzh-datalist.d.ts +11 -0
- package/dist/components/stzh-datalist.js +113 -0
- package/dist/components/stzh-datepicker2.js +1 -2
- package/dist/components/stzh-dialog.js +1 -1
- package/dist/components/stzh-dropdown2.js +4 -7
- package/dist/components/stzh-icon-sprite.js +1 -1
- package/dist/components/stzh-input2.js +3 -5
- package/dist/components/stzh-link2.js +1 -1
- package/dist/components/stzh-overlay.js +1 -1
- package/dist/components/stzh-popover2.js +31 -28
- package/dist/components/stzh-portal-mitwirken.js +1 -1
- package/dist/components/stzh-radio2.js +1 -1
- package/dist/components/stzh-radiogroup2.js +3 -2
- package/dist/components/stzh-richtext2.js +1 -1
- package/dist/components/stzh-sortable2.js +17 -0
- package/dist/components/stzh-tooltip2.js +4 -1
- package/dist/esm/{app-globals-c42494e9.js → app-globals-6b6ff890.js} +1 -1
- package/dist/esm/{index-0e6d34c6.js → index-84f71a43.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/stzh-accordion-item.entry.js +1 -1
- package/dist/esm/stzh-accordion.entry.js +1 -1
- package/dist/esm/stzh-actions.entry.js +1 -1
- package/dist/esm/stzh-actionset.entry.js +160 -0
- package/dist/esm/stzh-appnav.entry.js +1 -1
- package/dist/esm/stzh-appointments.entry.js +1 -1
- package/dist/esm/stzh-badge_3.entry.js +25 -4
- package/dist/esm/stzh-calendar.entry.js +1 -1
- package/dist/esm/stzh-card-list.entry.js +75 -0
- package/dist/esm/stzh-card.entry.js +290 -0
- package/dist/esm/stzh-cell.entry.js +1 -1
- package/dist/esm/stzh-checkbox.entry.js +2 -2
- package/dist/esm/stzh-checkboxgroup.entry.js +2 -2
- package/dist/esm/stzh-chip-select.entry.js +2 -2
- package/dist/esm/stzh-chip.entry.js +1 -1
- package/dist/esm/stzh-components.js +3 -3
- package/dist/esm/stzh-container.entry.js +1 -1
- package/dist/esm/stzh-cspace.entry.js +2 -2
- package/dist/esm/stzh-datalist.entry.js +70 -0
- package/dist/esm/stzh-datamessagelist-item.entry.js +1 -1
- package/dist/esm/stzh-datamessagelist.entry.js +1 -1
- package/dist/esm/stzh-datatable.entry.js +1 -1
- package/dist/esm/stzh-datepicker_4.entry.js +7 -6
- package/dist/esm/stzh-dialog.entry.js +2 -2
- package/dist/esm/stzh-dropdown.entry.js +6 -8
- package/dist/esm/stzh-fieldset.entry.js +1 -1
- package/dist/esm/stzh-figure.entry.js +1 -1
- package/dist/esm/stzh-flyingfocus.entry.js +1 -1
- package/dist/esm/stzh-footer.entry.js +1 -1
- package/dist/esm/stzh-ghettobox_2.entry.js +2 -2
- package/dist/esm/stzh-header.entry.js +1 -1
- package/dist/esm/stzh-heading.entry.js +1 -1
- package/dist/esm/stzh-hr.entry.js +1 -1
- package/dist/esm/stzh-hspace.entry.js +1 -1
- package/dist/esm/stzh-icon-sprite.entry.js +2 -2
- package/dist/esm/{stzh-input-description-da7b0e98.js → stzh-input-description-8c477f97.js} +1 -1
- package/dist/esm/stzh-input.entry.js +5 -6
- package/dist/esm/stzh-link.entry.js +2 -2
- package/dist/esm/stzh-list-item.entry.js +1 -1
- package/dist/esm/stzh-list.entry.js +1 -1
- package/dist/esm/stzh-loader.entry.js +1 -1
- package/dist/esm/stzh-loadingbar.entry.js +1 -1
- package/dist/esm/stzh-menu_2.entry.js +1 -1
- package/dist/esm/stzh-message.entry.js +1 -1
- package/dist/esm/stzh-metanav.entry.js +1 -1
- package/dist/esm/stzh-overlay.entry.js +2 -2
- package/dist/esm/stzh-page-skiplinks.entry.js +1 -1
- package/dist/esm/stzh-pagetitle.entry.js +1 -1
- package/dist/esm/stzh-popover.entry.js +31 -29
- package/dist/esm/stzh-portal-mitwirken.entry.js +2 -2
- package/dist/esm/stzh-progressbar-item.entry.js +1 -1
- package/dist/esm/stzh-progressbar.entry.js +1 -1
- package/dist/esm/stzh-readspeaker.entry.js +1 -1
- package/dist/esm/stzh-row.entry.js +1 -1
- package/dist/esm/stzh-saptcha.entry.js +1 -1
- package/dist/esm/stzh-section.entry.js +1 -1
- package/dist/esm/stzh-skiplink.entry.js +1 -1
- package/dist/esm/stzh-sortable.entry.js +18 -1
- package/dist/esm/stzh-status.entry.js +1 -1
- package/dist/esm/stzh-table.entry.js +1 -1
- package/dist/esm/stzh-toggle.entry.js +2 -2
- package/dist/esm/stzh-tooltip.entry.js +4 -2
- package/dist/esm/stzh-upload.entry.js +2 -2
- package/dist/esm/stzh-vbz-linechip.entry.js +1 -1
- package/dist/esm/stzh-vbz-majorticker.entry.js +1 -1
- package/dist/esm/stzh-vbz-ticker.entry.js +1 -1
- package/dist/esm/stzh-visuallyhidden.entry.js +1 -1
- package/dist/esm/stzh-vspace.entry.js +1 -1
- package/dist/esm-es5/app-globals-6b6ff890.js +1 -0
- package/dist/esm-es5/{index-0e6d34c6.js → index-84f71a43.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/stzh-accordion-item.entry.js +1 -1
- package/dist/esm-es5/stzh-accordion.entry.js +1 -1
- package/dist/esm-es5/stzh-actions.entry.js +1 -1
- package/dist/esm-es5/stzh-actionset.entry.js +1 -0
- package/dist/esm-es5/stzh-appnav.entry.js +1 -1
- package/dist/esm-es5/stzh-appointments.entry.js +1 -1
- package/dist/esm-es5/stzh-badge_3.entry.js +1 -1
- package/dist/esm-es5/stzh-calendar.entry.js +1 -1
- package/dist/esm-es5/stzh-card-list.entry.js +1 -0
- package/dist/esm-es5/stzh-card.entry.js +1 -0
- package/dist/esm-es5/stzh-cell.entry.js +1 -1
- package/dist/esm-es5/stzh-checkbox.entry.js +1 -1
- package/dist/esm-es5/stzh-checkboxgroup.entry.js +1 -1
- package/dist/esm-es5/stzh-chip-select.entry.js +1 -1
- package/dist/esm-es5/stzh-chip.entry.js +1 -1
- package/dist/esm-es5/stzh-components.js +1 -1
- package/dist/esm-es5/stzh-container.entry.js +1 -1
- package/dist/esm-es5/stzh-cspace.entry.js +1 -1
- package/dist/esm-es5/stzh-datalist.entry.js +1 -0
- package/dist/esm-es5/stzh-datamessagelist-item.entry.js +1 -1
- package/dist/esm-es5/stzh-datamessagelist.entry.js +1 -1
- package/dist/esm-es5/stzh-datatable.entry.js +1 -1
- package/dist/esm-es5/stzh-datepicker_4.entry.js +1 -1
- package/dist/esm-es5/stzh-dialog.entry.js +1 -1
- package/dist/esm-es5/stzh-dropdown.entry.js +1 -1
- package/dist/esm-es5/stzh-fieldset.entry.js +1 -1
- package/dist/esm-es5/stzh-figure.entry.js +1 -1
- package/dist/esm-es5/stzh-flyingfocus.entry.js +1 -1
- package/dist/esm-es5/stzh-footer.entry.js +1 -1
- package/dist/esm-es5/stzh-ghettobox_2.entry.js +1 -1
- package/dist/esm-es5/stzh-header.entry.js +1 -1
- package/dist/esm-es5/stzh-heading.entry.js +1 -1
- package/dist/esm-es5/stzh-hr.entry.js +1 -1
- package/dist/esm-es5/stzh-hspace.entry.js +1 -1
- package/dist/esm-es5/stzh-icon-sprite.entry.js +1 -1
- package/dist/esm-es5/{stzh-input-description-da7b0e98.js → stzh-input-description-8c477f97.js} +1 -1
- package/dist/esm-es5/stzh-input.entry.js +1 -1
- package/dist/esm-es5/stzh-link.entry.js +1 -1
- package/dist/esm-es5/stzh-list-item.entry.js +1 -1
- package/dist/esm-es5/stzh-list.entry.js +1 -1
- package/dist/esm-es5/stzh-loader.entry.js +1 -1
- package/dist/esm-es5/stzh-loadingbar.entry.js +1 -1
- package/dist/esm-es5/stzh-menu_2.entry.js +1 -1
- package/dist/esm-es5/stzh-message.entry.js +1 -1
- package/dist/esm-es5/stzh-metanav.entry.js +1 -1
- package/dist/esm-es5/stzh-overlay.entry.js +1 -1
- package/dist/esm-es5/stzh-page-skiplinks.entry.js +1 -1
- package/dist/esm-es5/stzh-pagetitle.entry.js +1 -1
- package/dist/esm-es5/stzh-popover.entry.js +1 -1
- package/dist/esm-es5/stzh-portal-mitwirken.entry.js +1 -1
- package/dist/esm-es5/stzh-progressbar-item.entry.js +1 -1
- package/dist/esm-es5/stzh-progressbar.entry.js +1 -1
- package/dist/esm-es5/stzh-readspeaker.entry.js +1 -1
- package/dist/esm-es5/stzh-row.entry.js +1 -1
- package/dist/esm-es5/stzh-saptcha.entry.js +1 -1
- package/dist/esm-es5/stzh-section.entry.js +1 -1
- package/dist/esm-es5/stzh-skiplink.entry.js +1 -1
- package/dist/esm-es5/stzh-sortable.entry.js +2 -2
- package/dist/esm-es5/stzh-status.entry.js +1 -1
- package/dist/esm-es5/stzh-table.entry.js +1 -1
- package/dist/esm-es5/stzh-toggle.entry.js +1 -1
- package/dist/esm-es5/stzh-tooltip.entry.js +1 -1
- package/dist/esm-es5/stzh-upload.entry.js +1 -1
- package/dist/esm-es5/stzh-vbz-linechip.entry.js +1 -1
- package/dist/esm-es5/stzh-vbz-majorticker.entry.js +1 -1
- package/dist/esm-es5/stzh-vbz-ticker.entry.js +1 -1
- package/dist/esm-es5/stzh-visuallyhidden.entry.js +1 -1
- package/dist/esm-es5/stzh-vspace.entry.js +1 -1
- package/dist/stzh-components/assets/i18n/de.json +7 -2
- package/dist/stzh-components/assets/i18n/en.json +7 -2
- package/dist/stzh-components/assets/icons/mono/recycling-outline.svg +11 -0
- package/dist/stzh-components/assets/icons/mono/recycling.svg +10 -0
- package/dist/stzh-components/assets/icons/mono/smartphone.svg +10 -0
- package/dist/stzh-components/assets/icons/mono/target.svg +11 -0
- package/dist/stzh-components/assets/svgsprites/symbol/sprite.symbol.html +63 -11
- package/dist/stzh-components/assets/svgsprites/symbol/svg/sprite.symbol.svg +1 -1
- package/dist/stzh-components/{p-32988d74.entry.js → p-001b7d10.entry.js} +1 -1
- package/dist/stzh-components/{p-0837657c.entry.js → p-08a564af.entry.js} +1 -1
- package/dist/stzh-components/{p-fd16e20e.system.entry.js → p-0b8de542.system.entry.js} +1 -1
- package/dist/stzh-components/{p-8db4279d.system.entry.js → p-0bbbbe85.system.entry.js} +1 -1
- package/dist/stzh-components/p-0d5522dc.system.entry.js +1 -0
- package/dist/stzh-components/{p-33d033a3.system.entry.js → p-0efe125f.system.entry.js} +1 -1
- package/dist/stzh-components/{p-87ab53c4.system.entry.js → p-0fc06049.system.entry.js} +1 -1
- package/dist/stzh-components/p-0fc83964.system.entry.js +1 -0
- package/dist/stzh-components/{p-08d4ed80.entry.js → p-13b3500e.entry.js} +1 -1
- package/dist/stzh-components/p-13f44000.entry.js +1 -0
- package/dist/stzh-components/{p-65444117.system.entry.js → p-17c6c1db.system.entry.js} +1 -1
- package/dist/stzh-components/{p-b34774e7.entry.js → p-190de4de.entry.js} +1 -1
- package/dist/stzh-components/{p-b2c8c31e.system.entry.js → p-19bff884.system.entry.js} +1 -1
- package/dist/stzh-components/{p-debb00e6.entry.js → p-216577b4.entry.js} +1 -1
- package/dist/stzh-components/{p-6edd58a4.system.entry.js → p-27fd6c6f.system.entry.js} +1 -1
- package/dist/stzh-components/{p-bdba7714.entry.js → p-2818488f.entry.js} +1 -1
- package/dist/stzh-components/{p-fba76dba.entry.js → p-29427863.entry.js} +1 -1
- package/dist/stzh-components/{p-d8471675.entry.js → p-2b338050.entry.js} +1 -1
- package/dist/stzh-components/p-2cf1ae40.system.entry.js +1 -0
- package/dist/stzh-components/{p-fa8651dd.entry.js → p-2e559062.entry.js} +1 -1
- package/dist/stzh-components/{p-11d0c8f3.entry.js → p-332e4fd3.entry.js} +1 -1
- package/dist/stzh-components/{p-c863ffd0.system.entry.js → p-33c0229f.system.entry.js} +1 -1
- package/dist/stzh-components/p-373f79e8.entry.js +1 -0
- package/dist/stzh-components/{p-b651f251.entry.js → p-3ac93a01.entry.js} +1 -1
- package/dist/stzh-components/{p-c7c17bb7.system.entry.js → p-3b27a43f.system.entry.js} +2 -2
- package/dist/stzh-components/{p-1cde29ea.entry.js → p-3d8317b5.entry.js} +1 -1
- package/dist/stzh-components/{p-48bbcc26.system.entry.js → p-45bab70d.system.entry.js} +1 -1
- package/dist/stzh-components/{p-3f03fd94.system.entry.js → p-48b5b697.system.entry.js} +1 -1
- package/dist/stzh-components/{p-ece7ad4d.system.entry.js → p-4c6989ae.system.entry.js} +1 -1
- package/dist/stzh-components/{p-bb2e1dda.entry.js → p-552f49c4.entry.js} +1 -1
- package/dist/stzh-components/{p-562394a9.system.entry.js → p-55d23a3c.system.entry.js} +1 -1
- package/dist/stzh-components/{p-07772cd7.system.entry.js → p-560f96f0.system.entry.js} +1 -1
- package/dist/stzh-components/{p-f48a2b00.system.entry.js → p-56b9cc3c.system.entry.js} +1 -1
- package/dist/stzh-components/{p-33946fed.system.entry.js → p-58d886cb.system.entry.js} +1 -1
- package/dist/stzh-components/p-5975c355.system.entry.js +1 -0
- package/dist/stzh-components/p-5987573e.system.entry.js +1 -0
- package/dist/stzh-components/{p-68a8b7b7.system.entry.js → p-5997e418.system.entry.js} +1 -1
- package/dist/stzh-components/p-59c323ce.entry.js +1 -0
- package/dist/stzh-components/{p-49968bbf.entry.js → p-5a02ef03.entry.js} +1 -1
- package/dist/stzh-components/{p-1c88ceff.system.entry.js → p-5a354428.system.entry.js} +1 -1
- package/dist/stzh-components/{p-0a71fbac.entry.js → p-5bd2849d.entry.js} +1 -1
- package/dist/stzh-components/{p-4a398453.system.entry.js → p-61aac051.system.entry.js} +1 -1
- package/dist/stzh-components/{p-ade1ebcf.system.entry.js → p-6305db38.system.entry.js} +1 -1
- package/dist/stzh-components/{p-f610f725.entry.js → p-6354fee3.entry.js} +1 -1
- package/dist/stzh-components/{p-95eb03b2.entry.js → p-638bedfa.entry.js} +1 -1
- package/dist/stzh-components/{p-9c0494a6.system.js → p-63d89b96.system.js} +1 -1
- package/dist/stzh-components/{p-33d75303.entry.js → p-63d8db7b.entry.js} +1 -1
- package/dist/stzh-components/{p-818634d2.entry.js → p-64b4cc74.entry.js} +1 -1
- package/dist/stzh-components/p-653c6bbc.entry.js +1 -0
- package/dist/stzh-components/{p-8a60addb.entry.js → p-67f906b1.entry.js} +1 -1
- package/dist/stzh-components/{p-f44f4d26.system.entry.js → p-69c3187f.system.entry.js} +1 -1
- package/dist/stzh-components/{p-95a297aa.entry.js → p-69f4a27e.entry.js} +1 -1
- package/dist/stzh-components/p-6a81e64b.entry.js +1 -0
- package/dist/stzh-components/p-6a873872.entry.js +1 -0
- package/dist/stzh-components/{p-03b16275.entry.js → p-72f29f07.entry.js} +1 -1
- package/dist/stzh-components/p-75cdc8a6.system.entry.js +1 -0
- package/dist/stzh-components/{p-6fc271d0.system.entry.js → p-7ad87d98.system.entry.js} +1 -1
- package/dist/stzh-components/p-7d8c9866.entry.js +1 -0
- package/dist/stzh-components/{p-1cebd703.entry.js → p-7f9f9a8d.entry.js} +1 -1
- package/dist/stzh-components/{p-7d098987.entry.js → p-83b1e379.entry.js} +1 -1
- package/dist/stzh-components/{p-aec2d2d1.system.entry.js → p-851e0caa.system.entry.js} +1 -1
- package/dist/stzh-components/{p-1f15a4e0.system.entry.js → p-86bc421e.system.entry.js} +1 -1
- package/dist/stzh-components/{p-690d14cd.entry.js → p-88e0f453.entry.js} +1 -1
- package/dist/stzh-components/{p-0338cec3.system.entry.js → p-89274cd5.system.entry.js} +1 -1
- package/dist/stzh-components/{p-346e26f2.system.entry.js → p-8a9e588e.system.entry.js} +1 -1
- package/dist/stzh-components/{p-66556f67.entry.js → p-8aebb240.entry.js} +1 -1
- package/dist/stzh-components/{p-f1a58a7c.system.entry.js → p-8cbc987f.system.entry.js} +1 -1
- package/dist/stzh-components/{p-0ae3e066.system.entry.js → p-8d0da18d.system.entry.js} +1 -1
- package/dist/stzh-components/{p-56fccfa3.system.entry.js → p-8d547247.system.entry.js} +1 -1
- package/dist/stzh-components/{p-b281b653.entry.js → p-8f16b0ac.entry.js} +2 -2
- package/dist/stzh-components/{p-85d78e08.entry.js → p-938ef748.entry.js} +1 -1
- package/dist/stzh-components/{p-65282c9d.js → p-93e8e31f.js} +1 -1
- package/dist/stzh-components/{p-e9ca8ddc.entry.js → p-961cb979.entry.js} +1 -1
- package/dist/stzh-components/{p-98afd4b0.system.entry.js → p-981b2629.system.entry.js} +1 -1
- package/dist/stzh-components/p-9bda100f.system.js +1 -0
- package/dist/stzh-components/{p-0ec28130.system.entry.js → p-9c72f491.system.entry.js} +1 -1
- package/dist/stzh-components/{p-8cf287d8.system.entry.js → p-9fb4da92.system.entry.js} +1 -1
- package/dist/stzh-components/{p-409c0d50.entry.js → p-a448f5a5.entry.js} +1 -1
- package/dist/stzh-components/{p-96fd158c.entry.js → p-a646c09a.entry.js} +1 -1
- package/dist/stzh-components/p-a6627504.entry.js +1 -0
- package/dist/stzh-components/{p-6c3b2508.system.entry.js → p-a67e09cd.system.entry.js} +1 -1
- package/dist/stzh-components/{p-378be0be.system.entry.js → p-a7c35778.system.entry.js} +1 -1
- package/dist/stzh-components/{p-c8bc2812.entry.js → p-a7ee2636.entry.js} +1 -1
- package/dist/stzh-components/{p-632d9076.system.entry.js → p-a99d3e97.system.entry.js} +1 -1
- package/dist/stzh-components/{p-148de4e6.entry.js → p-ab246b66.entry.js} +1 -1
- package/dist/stzh-components/{p-936cc626.system.entry.js → p-ab455116.system.entry.js} +1 -1
- package/dist/stzh-components/p-af2664fc.system.entry.js +1 -0
- package/dist/stzh-components/p-b084fcbf.system.entry.js +1 -0
- package/dist/stzh-components/p-b550feaa.system.entry.js +1 -0
- package/dist/stzh-components/{p-a760352a.system.entry.js → p-b636a18a.system.entry.js} +1 -1
- package/dist/stzh-components/{p-3ed69b16.entry.js → p-b9295dc2.entry.js} +1 -1
- package/dist/stzh-components/{p-f2050d1e.entry.js → p-b9382599.entry.js} +1 -1
- package/dist/stzh-components/{p-46f301c0.entry.js → p-b9a027aa.entry.js} +1 -1
- package/dist/stzh-components/{p-e4347cfe.entry.js → p-b9c3f3cc.entry.js} +1 -1
- package/dist/stzh-components/{p-7e3924a0.system.entry.js → p-ba94e315.system.entry.js} +1 -1
- package/dist/stzh-components/{p-7d62dfeb.system.entry.js → p-bd178c32.system.entry.js} +1 -1
- package/dist/stzh-components/{p-e972a44f.system.entry.js → p-be461e19.system.entry.js} +1 -1
- package/dist/stzh-components/{p-30b347ee.system.js → p-bf0fdd23.system.js} +2 -2
- package/dist/stzh-components/{p-da063c7e.system.entry.js → p-c013a00b.system.entry.js} +1 -1
- package/dist/stzh-components/{p-983f6070.entry.js → p-c1337453.entry.js} +1 -1
- package/dist/stzh-components/{p-915e8ad6.entry.js → p-c3d93395.entry.js} +1 -1
- package/dist/stzh-components/{p-c6cad5ed.system.entry.js → p-c456c04b.system.entry.js} +1 -1
- package/dist/stzh-components/{p-8bd3ba06.entry.js → p-c499e04d.entry.js} +1 -1
- package/dist/stzh-components/{p-e9bc3a43.entry.js → p-c4b7c2be.entry.js} +1 -1
- package/dist/stzh-components/{p-df422d36.entry.js → p-c58dd9de.entry.js} +1 -1
- package/dist/stzh-components/{p-7d2237ca.entry.js → p-c692e405.entry.js} +1 -1
- package/dist/stzh-components/{p-4e9bfeb8.system.entry.js → p-c83e4fec.system.entry.js} +1 -1
- package/dist/stzh-components/p-ca062c11.system.js +1 -0
- package/dist/stzh-components/{p-586cae98.entry.js → p-ce070ccd.entry.js} +1 -1
- package/dist/stzh-components/{p-b3b5ee7e.entry.js → p-ce28428b.entry.js} +1 -1
- package/dist/stzh-components/p-cfaac121.js +1 -0
- package/dist/stzh-components/{p-04d7b18f.entry.js → p-d0aa9d3b.entry.js} +1 -1
- package/dist/stzh-components/{p-5ea652ae.system.entry.js → p-d11a70e2.system.entry.js} +1 -1
- package/dist/stzh-components/p-d1dba399.system.entry.js +1 -0
- package/dist/stzh-components/p-d2b5e066.entry.js +1 -0
- package/dist/stzh-components/{p-58ffc722.system.entry.js → p-d54f04c8.system.entry.js} +1 -1
- package/dist/stzh-components/p-d645d645.entry.js +1 -0
- package/dist/stzh-components/{p-006135ed.system.entry.js → p-d6c07494.system.entry.js} +1 -1
- package/dist/stzh-components/{p-cf162e67.entry.js → p-d7893dfd.entry.js} +1 -1
- package/dist/stzh-components/{p-73194e28.entry.js → p-d9643cc4.entry.js} +1 -1
- package/dist/stzh-components/{p-03e2634c.entry.js → p-da7b363e.entry.js} +1 -1
- package/dist/stzh-components/{p-58917ce2.entry.js → p-db5363ef.entry.js} +1 -1
- package/dist/stzh-components/p-de017b87.system.entry.js +1 -0
- package/dist/stzh-components/{p-ec3d4dd4.entry.js → p-e009bfdc.entry.js} +1 -1
- package/dist/stzh-components/{p-fc9c4fc3.system.entry.js → p-e213663c.system.entry.js} +1 -1
- package/dist/stzh-components/{p-7a6e347d.system.entry.js → p-e7a84e53.system.entry.js} +1 -1
- package/dist/stzh-components/{p-14d728f0.entry.js → p-ee22256f.entry.js} +1 -1
- package/dist/stzh-components/{p-670d4834.entry.js → p-f1356a85.entry.js} +1 -1
- package/dist/stzh-components/{p-82e6148a.system.entry.js → p-f167eaa4.system.entry.js} +1 -1
- package/dist/stzh-components/{p-3c799247.entry.js → p-f2ee016a.entry.js} +1 -1
- package/dist/stzh-components/{p-1ace5d80.entry.js → p-f788a468.entry.js} +1 -1
- package/dist/stzh-components/{p-99533090.system.entry.js → p-f832e938.system.entry.js} +1 -1
- package/dist/stzh-components/{p-32b78d65.js → p-f84fa2a4.js} +1 -1
- package/dist/stzh-components/{p-80db7aa6.system.entry.js → p-fa56fc0d.system.entry.js} +1 -1
- package/dist/stzh-components/{p-88a4f756.system.entry.js → p-fc13d017.system.entry.js} +1 -1
- package/dist/stzh-components/{p-b4fc71ff.system.entry.js → p-fc6b4f91.system.entry.js} +1 -1
- package/dist/stzh-components/p-fdd1998f.entry.js +1 -0
- package/dist/stzh-components/{p-370b82e7.system.entry.js → p-fdf0b4bc.system.entry.js} +1 -1
- package/dist/stzh-components/{p-90a10825.system.entry.js → p-ffa1e9dd.system.entry.js} +1 -1
- package/dist/stzh-components/stzh-components.css +1 -1
- package/dist/stzh-components/stzh-components.esm.js +1 -1
- package/dist/stzh-components/stzh-components.js +1 -1
- package/dist/types/components/stzh-actionset/stzh-actionset.localization.d.ts +5 -0
- package/dist/types/components/{stzh-servicecard/stzh-servicecard.localization.d.ts → stzh-card/stzh-card.localization.d.ts} +2 -1
- package/dist/types/components/{stzh-servicecard-list/stzh-servicecard-list.localization.d.ts → stzh-card-list/stzh-card-list.localization.d.ts} +1 -1
- package/dist/types/components.d.ts +458 -245
- package/dist/types/index.d.ts +56 -14
- package/dist/vscode-data.json +346 -131
- package/package.json +1 -1
- package/dist/cjs/stzh-servicecard-list.cjs.entry.js +0 -73
- package/dist/cjs/stzh-servicecard.cjs.entry.js +0 -234
- package/dist/collection/components/stzh-servicecard/stzh-servicecard.css +0 -558
- package/dist/collection/components/stzh-servicecard/stzh-servicecard.stories.js +0 -73
- package/dist/collection/components/stzh-servicecard-list/stzh-servicecard-list.stories.js +0 -116
- package/dist/components/stzh-servicecard-list.js +0 -117
- package/dist/components/stzh-servicecard.js +0 -305
- package/dist/esm/stzh-servicecard-list.entry.js +0 -69
- package/dist/esm/stzh-servicecard.entry.js +0 -230
- package/dist/esm-es5/app-globals-c42494e9.js +0 -1
- package/dist/esm-es5/stzh-servicecard-list.entry.js +0 -1
- package/dist/esm-es5/stzh-servicecard.entry.js +0 -1
- package/dist/stzh-components/p-2b11d549.system.entry.js +0 -1
- package/dist/stzh-components/p-34190502.entry.js +0 -1
- package/dist/stzh-components/p-3ebd2c03.js +0 -1
- package/dist/stzh-components/p-5e0cccc9.system.entry.js +0 -1
- package/dist/stzh-components/p-63b5068a.system.entry.js +0 -1
- package/dist/stzh-components/p-7921db30.system.entry.js +0 -1
- package/dist/stzh-components/p-79bfc485.entry.js +0 -1
- package/dist/stzh-components/p-7bb1bd3b.entry.js +0 -1
- package/dist/stzh-components/p-a7253852.entry.js +0 -1
- package/dist/stzh-components/p-a86c6487.entry.js +0 -1
- package/dist/stzh-components/p-aaa2e48f.system.js +0 -1
- package/dist/stzh-components/p-b35b0270.entry.js +0 -1
- package/dist/stzh-components/p-c581e798.system.entry.js +0 -1
- package/dist/stzh-components/p-e12db90a.entry.js +0 -1
- package/dist/stzh-components/p-e2ce48f1.system.entry.js +0 -1
- package/dist/stzh-components/p-ee5ceac4.entry.js +0 -1
- package/dist/stzh-components/p-f0ca6848.system.entry.js +0 -1
- package/dist/stzh-components/p-f21440b3.entry.js +0 -1
- package/dist/stzh-components/p-faf20030.system.js +0 -1
- package/dist/stzh-components/p-fce0e218.system.entry.js +0 -1
- package/dist/stzh-components/p-fe9f8a09.system.entry.js +0 -1
package/dist/collection/components/{stzh-servicecard/stzh-servicecard.js → stzh-card/stzh-card.js}
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Host, h, Fragment, forceUpdate } from "@stencil/core";
|
|
2
|
-
import { hasSlot } from "../../utils/utils";
|
|
2
|
+
import { hasSlot, setPropsIfNull } from "../../utils/utils";
|
|
3
3
|
import { media } from '../../utils/media-utils';
|
|
4
4
|
import { fetchTranslations } from "../../utils/translation-utils";
|
|
5
5
|
/**
|
|
6
|
-
* @slot
|
|
7
|
-
* @slot
|
|
8
|
-
* @slot
|
|
6
|
+
* @slot image - Slot for optional image element
|
|
7
|
+
* @slot content - Slot for content for any elements
|
|
8
|
+
* @slot meta - Slot for meta elements (status or chip)
|
|
9
9
|
*/
|
|
10
|
-
export class
|
|
10
|
+
export class StzhCard {
|
|
11
11
|
constructor() {
|
|
12
12
|
/** Whether card is collapsed or not */
|
|
13
13
|
this.collapsed = false;
|
|
@@ -15,27 +15,37 @@ export class StzhServicecard {
|
|
|
15
15
|
this.starred = false;
|
|
16
16
|
/** Whether card star is displayed */
|
|
17
17
|
this.starrable = false;
|
|
18
|
+
/** Whether card is selectable */
|
|
19
|
+
this.selectable = false;
|
|
20
|
+
/** Whether card is checked (if card is selectable) */
|
|
21
|
+
this.checked = false;
|
|
22
|
+
/** The name of the input element (if card is selectable) */
|
|
23
|
+
this.name = "";
|
|
24
|
+
/** The value of the input element (if card is selectable) */
|
|
25
|
+
this.value = "";
|
|
26
|
+
/** Whether the element is disabled or not (if card is selectable) */
|
|
27
|
+
this.disabled = false;
|
|
18
28
|
/** Heading */
|
|
19
29
|
this.heading = "";
|
|
20
30
|
/** Subtitle */
|
|
21
31
|
this.subtitle = "";
|
|
22
32
|
this._subtitles = [];
|
|
23
|
-
/** Card actions */
|
|
24
|
-
this.
|
|
33
|
+
/** Card header actions */
|
|
34
|
+
this.headerActions = [];
|
|
35
|
+
/** Card footer actions */
|
|
36
|
+
this.footerActions = [];
|
|
25
37
|
/** Whether subtitle should be rendered as button and event `stzhSubtitleClick` executed on click */
|
|
26
38
|
this.subtitleInteractive = false;
|
|
27
39
|
/** Type */
|
|
28
40
|
this.type = "default";
|
|
29
|
-
/** Middle column position variant (positioning behaviour on tablet) */
|
|
30
|
-
this.middleVariant = "to-right";
|
|
31
|
-
/** Set middle column vertical spacing */
|
|
32
|
-
this.middleVerticalSpacing = "default";
|
|
33
|
-
/** Set right column vertical spacing */
|
|
34
|
-
this.rightVerticalSpacing = "default";
|
|
35
41
|
/** Whether sorting should be disabled */
|
|
36
42
|
this.sortableDisabled = false;
|
|
37
43
|
/** Whether card is collapsible */
|
|
38
44
|
this.collapsible = false;
|
|
45
|
+
/** Whether to hide header separation border */
|
|
46
|
+
this.hideHeaderBorder = false;
|
|
47
|
+
/** Whether to hide footer separation border */
|
|
48
|
+
this.hideFooterBorder = false;
|
|
39
49
|
/** Whether movement menu items should be shown */
|
|
40
50
|
this.hideMovementActions = false;
|
|
41
51
|
this.nodeChange = (entries) => {
|
|
@@ -53,13 +63,13 @@ export class StzhServicecard {
|
|
|
53
63
|
if (!this.mainElement) {
|
|
54
64
|
return;
|
|
55
65
|
}
|
|
56
|
-
this.mainElement.classList.remove("stzh-
|
|
66
|
+
this.mainElement.classList.remove("stzh-card--has-collapsed-header");
|
|
57
67
|
if (media('medium').matches) {
|
|
58
68
|
const headerWidth = this.headerElement.clientWidth;
|
|
59
69
|
const leftWidth = this.headerLeftElement.clientWidth;
|
|
60
70
|
const rightWidth = this.headerRightElement.clientWidth;
|
|
61
71
|
if (headerWidth - leftWidth <= rightWidth) {
|
|
62
|
-
this.mainElement.classList.add("stzh-
|
|
72
|
+
this.mainElement.classList.add("stzh-card--has-collapsed-header");
|
|
63
73
|
}
|
|
64
74
|
}
|
|
65
75
|
};
|
|
@@ -73,7 +83,7 @@ export class StzhServicecard {
|
|
|
73
83
|
if (!found) {
|
|
74
84
|
this.collapsed = !this.collapsed;
|
|
75
85
|
this.stzhCollapse.emit({
|
|
76
|
-
component: "stzh-
|
|
86
|
+
component: "stzh-card",
|
|
77
87
|
collapsed: this.collapsed
|
|
78
88
|
});
|
|
79
89
|
}
|
|
@@ -81,19 +91,19 @@ export class StzhServicecard {
|
|
|
81
91
|
this.subtitleClick = () => {
|
|
82
92
|
if (this.subtitleInteractive) {
|
|
83
93
|
this.stzhSubtitleClick.emit({
|
|
84
|
-
component: "stzh-
|
|
94
|
+
component: "stzh-card"
|
|
85
95
|
});
|
|
86
96
|
}
|
|
87
97
|
};
|
|
88
98
|
this.starToggleClick = () => {
|
|
89
99
|
this.stzhStarClick.emit({
|
|
90
|
-
component: "stzh-
|
|
100
|
+
component: "stzh-card",
|
|
91
101
|
starred: this.starred
|
|
92
102
|
});
|
|
93
103
|
};
|
|
94
104
|
this.actionClick = (action) => {
|
|
95
|
-
this.
|
|
96
|
-
component: "stzh-
|
|
105
|
+
this.stzhHeaderActionClick.emit({
|
|
106
|
+
component: "stzh-card",
|
|
97
107
|
action
|
|
98
108
|
});
|
|
99
109
|
};
|
|
@@ -111,6 +121,34 @@ export class StzhServicecard {
|
|
|
111
121
|
sortable.moveItem(element, "down");
|
|
112
122
|
}
|
|
113
123
|
};
|
|
124
|
+
this.updateElementInsideSortable = () => {
|
|
125
|
+
const currentSortable = this.element.closest("stzh-sortable");
|
|
126
|
+
// check if element is still inside sortable
|
|
127
|
+
if (!currentSortable) {
|
|
128
|
+
this.sortable.removeEventListener("stzhUpdate", this.updateElementInsideSortable);
|
|
129
|
+
this.sortable.removeEventListener("stzhDisable", this.updateElementInsideSortable);
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
if (this.element) {
|
|
133
|
+
forceUpdate(this.element);
|
|
134
|
+
}
|
|
135
|
+
};
|
|
136
|
+
this.init = () => {
|
|
137
|
+
const chips = this.element.querySelectorAll('stzh-chip[slot="meta"], [slot="meta"] stzh-chip');
|
|
138
|
+
chips.forEach((chip) => {
|
|
139
|
+
setPropsIfNull(chip, {
|
|
140
|
+
size: "small"
|
|
141
|
+
});
|
|
142
|
+
});
|
|
143
|
+
};
|
|
144
|
+
this.handleMutation = (entries) => {
|
|
145
|
+
this.init();
|
|
146
|
+
this.nodeChange(entries);
|
|
147
|
+
};
|
|
148
|
+
this.handleSelectionChange = (event) => {
|
|
149
|
+
this.checked = event.detail.checked;
|
|
150
|
+
console.log(this.element, this.checked);
|
|
151
|
+
};
|
|
114
152
|
}
|
|
115
153
|
handleResize() {
|
|
116
154
|
if (this.debounceResize) {
|
|
@@ -131,12 +169,20 @@ export class StzhServicecard {
|
|
|
131
169
|
this._subtitles = newValue;
|
|
132
170
|
}
|
|
133
171
|
}
|
|
134
|
-
|
|
172
|
+
headerActionsWatcher(newValue) {
|
|
135
173
|
if (typeof newValue === "string") {
|
|
136
|
-
this.
|
|
174
|
+
this._headerActions = JSON.parse(newValue);
|
|
137
175
|
}
|
|
138
176
|
else {
|
|
139
|
-
this.
|
|
177
|
+
this._headerActions = newValue;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
footerActionsWatcher(newValue) {
|
|
181
|
+
if (typeof newValue === "string") {
|
|
182
|
+
this._footerActions = JSON.parse(newValue);
|
|
183
|
+
}
|
|
184
|
+
else {
|
|
185
|
+
this._footerActions = newValue;
|
|
140
186
|
}
|
|
141
187
|
}
|
|
142
188
|
findSortableChildElement() {
|
|
@@ -150,7 +196,7 @@ export class StzhServicecard {
|
|
|
150
196
|
else {
|
|
151
197
|
sortableContainer = sortable.container;
|
|
152
198
|
}
|
|
153
|
-
while (element.parentElement !== sortableContainer) {
|
|
199
|
+
while (element.parentElement && element.parentElement !== sortableContainer) {
|
|
154
200
|
element = element.parentElement;
|
|
155
201
|
}
|
|
156
202
|
return element;
|
|
@@ -158,13 +204,22 @@ export class StzhServicecard {
|
|
|
158
204
|
}
|
|
159
205
|
async componentWillLoad() {
|
|
160
206
|
this.subtitleWatcher(this.subtitle);
|
|
161
|
-
this.
|
|
207
|
+
this.headerActionsWatcher(this.headerActions);
|
|
208
|
+
this.footerActionsWatcher(this.footerActions);
|
|
162
209
|
if (!this.localization) {
|
|
163
|
-
this.localization = await fetchTranslations(this.element, "
|
|
210
|
+
this.localization = await fetchTranslations(this.element, "card");
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
componentDidLoad() {
|
|
214
|
+
this.sortable = this.element.closest("stzh-sortable");
|
|
215
|
+
if (this.sortable) {
|
|
216
|
+
this.sortable.addEventListener("stzhUpdate", this.updateElementInsideSortable);
|
|
217
|
+
this.sortable.addEventListener("stzhDisable", this.updateElementInsideSortable);
|
|
164
218
|
}
|
|
165
219
|
}
|
|
166
220
|
connectedCallback() {
|
|
167
|
-
this.
|
|
221
|
+
this.init();
|
|
222
|
+
this.observer = new MutationObserver(this.handleMutation);
|
|
168
223
|
this.observer.observe(this.element, {
|
|
169
224
|
childList: true,
|
|
170
225
|
subtree: true
|
|
@@ -174,25 +229,36 @@ export class StzhServicecard {
|
|
|
174
229
|
this.observer.disconnect();
|
|
175
230
|
}
|
|
176
231
|
render() {
|
|
177
|
-
|
|
178
|
-
const
|
|
179
|
-
const
|
|
232
|
+
var _a, _b, _c;
|
|
233
|
+
const imageUsed = hasSlot(this.element, "image");
|
|
234
|
+
const contentUsed = hasSlot(this.element, "content");
|
|
180
235
|
const classes = {
|
|
181
|
-
"stzh-
|
|
182
|
-
"stzh-
|
|
183
|
-
"stzh-
|
|
184
|
-
"stzh-
|
|
185
|
-
"stzh-
|
|
186
|
-
"stzh-
|
|
187
|
-
"stzh-
|
|
188
|
-
"stzh-
|
|
189
|
-
|
|
190
|
-
|
|
236
|
+
"stzh-card": true,
|
|
237
|
+
"stzh-card--has-image": imageUsed,
|
|
238
|
+
"stzh-card--has-content": contentUsed,
|
|
239
|
+
"stzh-card--has-subtitle": !!this.subtitle,
|
|
240
|
+
"stzh-card--has-subtitle-interactive": !!this.subtitle && this.subtitleInteractive,
|
|
241
|
+
"stzh-card--has-hidden-header-border": this.hideHeaderBorder,
|
|
242
|
+
"stzh-card--has-hidden-footer-border": this.hideFooterBorder,
|
|
243
|
+
"stzh-card--is-collapsed": this.collapsed,
|
|
244
|
+
"stzh-card--is-starred": this.starred,
|
|
245
|
+
"stzh-card--is-checked": this.checked,
|
|
246
|
+
[`stzh-card--type-${this.type}`]: !!this.type,
|
|
191
247
|
};
|
|
192
248
|
const Subtitle = `${this.subtitleInteractive ? 'button' : 'span'}`;
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
249
|
+
const sortableChildElement = this.findSortableChildElement();
|
|
250
|
+
const isFirstItemInSortable = (sortableChildElement === null || sortableChildElement === void 0 ? void 0 : sortableChildElement.parentElement)
|
|
251
|
+
&& Array.from((_a = sortableChildElement === null || sortableChildElement === void 0 ? void 0 : sortableChildElement.parentElement) === null || _a === void 0 ? void 0 : _a.children)
|
|
252
|
+
.indexOf(sortableChildElement) === 0;
|
|
253
|
+
const isLastItemInSortable = (sortableChildElement === null || sortableChildElement === void 0 ? void 0 : sortableChildElement.parentElement)
|
|
254
|
+
&& Array.from((_b = sortableChildElement === null || sortableChildElement === void 0 ? void 0 : sortableChildElement.parentElement) === null || _b === void 0 ? void 0 : _b.children)
|
|
255
|
+
.indexOf(sortableChildElement) === ((_c = sortableChildElement === null || sortableChildElement === void 0 ? void 0 : sortableChildElement.parentElement) === null || _c === void 0 ? void 0 : _c.children.length) - 1;
|
|
256
|
+
// const headerActions = [
|
|
257
|
+
// ...this._headerActions
|
|
258
|
+
// ];
|
|
259
|
+
return (h(Host, { role: "listitem", "aria-label": this.heading }, h("article", { ref: (el) => (this.mainElement = el), class: classes }, h("slot", { name: "image" }), h("div", { class: "stzh-card__content-wrapper" }, h("stzh-icon", { class: "stzh-card__dnd", name: "drag" }), h("header", { ref: (el) => (this.headerElement = el), class: "stzh-card__header", onClick: this.headerClick }, h("div", { class: "stzh-card__header-top" }, h("div", { ref: (el) => (this.headerLeftElement = el), class: "stzh-card__header-left" }, h("div", { class: "stzh-card__title-area" }, h("h3", { class: "stzh-card__title" }, this.heading), this._subtitles.length > 0 &&
|
|
260
|
+
h(Subtitle, { class: "stzh-card__subtitle", onClick: this.subtitleClick }, this._subtitles.map(subtitle => (h("span", { class: "stzh-card__subtitle-text" }, subtitle)))))), h("div", { ref: (el) => (this.headerRightElement = el), class: "stzh-card__header-right" }, h("div", { class: "stzh-card__card-actions" }, this._headerActions.map(action => (h("stzh-button", { class: {
|
|
261
|
+
"stzh-card__card-action": true,
|
|
196
262
|
"is-button": true,
|
|
197
263
|
"show-medium": !action.onlyCollapseText,
|
|
198
264
|
"hide-when-collapsed": !action.onlyCollapseText,
|
|
@@ -201,31 +267,24 @@ export class StzhServicecard {
|
|
|
201
267
|
"show-medium": action.onlyCollapseText,
|
|
202
268
|
"hide-when-collapsed": action.onlyCollapseText
|
|
203
269
|
} }, action.label)))), this.starrable &&
|
|
204
|
-
h("stzh-tooltip", null, h("stzh-button", { class: "stzh-
|
|
205
|
-
h("stzh-menu-item", { icon: this.starred ? "star-filled" : "star", onClick: this.starToggleClick }, this.starred ? this.localization.actionRemove : this.localization.actionAdd), this.
|
|
206
|
-
h(Fragment, null,
|
|
207
|
-
"stzh-
|
|
208
|
-
"
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
"is-middle": true,
|
|
212
|
-
"has-no-spacing": this.middleVerticalSpacing === "none"
|
|
213
|
-
} }, h("slot", { name: "middle" })), h("div", { class: {
|
|
214
|
-
"stzh-servicecard__column": true,
|
|
215
|
-
"is-right": true,
|
|
216
|
-
"has-no-spacing": this.rightVerticalSpacing === "none"
|
|
217
|
-
} }, h("slot", { name: "right" }))))));
|
|
270
|
+
h("stzh-tooltip", null, h("stzh-button", { class: "stzh-card__card-action is-star", icon: this.starred ? "star-filled" : "star", variant: "tertiary", size: "tiny", iconOnly: true, onClick: this.starToggleClick }), h("div", { slot: "content" }, this.starred ? this.localization.actionRemove : this.localization.actionAdd)), h("stzh-popover", { label: this.localization.actionsPopoverLabel, placement: "bottom-end", class: "stzh-card__card-action-popover" }, h("stzh-button", { class: "stzh-card__card-action is-further", variant: "tertiary", size: "tiny", icon: "more-vertical", iconOnly: true }), h("stzh-menu", { slot: "content" }, this.starrable &&
|
|
271
|
+
h("stzh-menu-item", { icon: this.starred ? "star-filled" : "star", onClick: this.starToggleClick }, this.starred ? this.localization.actionRemove : this.localization.actionAdd), this._headerActions.filter(action => !action.onlyCollapseText).map(action => (h("stzh-menu-item", { class: "hide-medium show-when-collapsed", icon: action.icon, badge: action.badge, onClick: () => { this.actionClick(action); } }, action.label))), (!this.sortableDisabled && !this.hideMovementActions && this.sortable && !this.sortable.disabled) &&
|
|
272
|
+
h(Fragment, null, !isFirstItemInSortable &&
|
|
273
|
+
h("stzh-menu-item", { icon: "arrow-up", onClick: this.arrowUpClick }, this.localization.actionMoveUp), !isLastItemInSortable &&
|
|
274
|
+
h("stzh-menu-item", { icon: "arrow-down", onClick: this.arrowDownClick }, this.localization.actionMoveDown))))))), h("div", { class: "stzh-card__header-meta" }, h("slot", { name: "meta" }))), h("div", { class: "stzh-card__content hide-when-collapsed" }, h("slot", { name: "content" })), h("div", { class: "stzh-card__footer hide-when-collapsed" }, this._footerActions.length > 0 &&
|
|
275
|
+
h("stzh-actionset", { actions: this._footerActions }), this.selectable &&
|
|
276
|
+
h("stzh-button", { fullwidth: true, type: "radio", variant: "secondary", name: this.name, value: this.value, checked: this.checked, disabled: this.disabled, label: this.localization.select, onStzhChange: this.handleSelectionChange }))))));
|
|
218
277
|
}
|
|
219
|
-
static get is() { return "stzh-
|
|
278
|
+
static get is() { return "stzh-card"; }
|
|
220
279
|
static get encapsulation() { return "scoped"; }
|
|
221
280
|
static get originalStyleUrls() {
|
|
222
281
|
return {
|
|
223
|
-
"$": ["stzh-
|
|
282
|
+
"$": ["stzh-card.scss"]
|
|
224
283
|
};
|
|
225
284
|
}
|
|
226
285
|
static get styleUrls() {
|
|
227
286
|
return {
|
|
228
|
-
"$": ["stzh-
|
|
287
|
+
"$": ["stzh-card.css"]
|
|
229
288
|
};
|
|
230
289
|
}
|
|
231
290
|
static get properties() {
|
|
@@ -234,12 +293,12 @@ export class StzhServicecard {
|
|
|
234
293
|
"type": "unknown",
|
|
235
294
|
"mutable": false,
|
|
236
295
|
"complexType": {
|
|
237
|
-
"original": "
|
|
238
|
-
"resolved": "StzhLocaleComponent & { actionsPopoverLabel: string; actionMoveUp: string; actionMoveDown: string; actionAdd: string; actionRemove: string; }",
|
|
296
|
+
"original": "StzhCardLocalizedText",
|
|
297
|
+
"resolved": "StzhLocaleComponent & { select: string; actionsPopoverLabel: string; actionMoveUp: string; actionMoveDown: string; actionAdd: string; actionRemove: string; }",
|
|
239
298
|
"references": {
|
|
240
|
-
"
|
|
299
|
+
"StzhCardLocalizedText": {
|
|
241
300
|
"location": "import",
|
|
242
|
-
"path": "./stzh-
|
|
301
|
+
"path": "./stzh-card.localization"
|
|
243
302
|
}
|
|
244
303
|
}
|
|
245
304
|
},
|
|
@@ -304,6 +363,96 @@ export class StzhServicecard {
|
|
|
304
363
|
"reflect": true,
|
|
305
364
|
"defaultValue": "false"
|
|
306
365
|
},
|
|
366
|
+
"selectable": {
|
|
367
|
+
"type": "boolean",
|
|
368
|
+
"mutable": false,
|
|
369
|
+
"complexType": {
|
|
370
|
+
"original": "boolean",
|
|
371
|
+
"resolved": "boolean",
|
|
372
|
+
"references": {}
|
|
373
|
+
},
|
|
374
|
+
"required": false,
|
|
375
|
+
"optional": false,
|
|
376
|
+
"docs": {
|
|
377
|
+
"tags": [],
|
|
378
|
+
"text": "Whether card is selectable"
|
|
379
|
+
},
|
|
380
|
+
"attribute": "selectable",
|
|
381
|
+
"reflect": true,
|
|
382
|
+
"defaultValue": "false"
|
|
383
|
+
},
|
|
384
|
+
"checked": {
|
|
385
|
+
"type": "boolean",
|
|
386
|
+
"mutable": false,
|
|
387
|
+
"complexType": {
|
|
388
|
+
"original": "boolean",
|
|
389
|
+
"resolved": "boolean",
|
|
390
|
+
"references": {}
|
|
391
|
+
},
|
|
392
|
+
"required": false,
|
|
393
|
+
"optional": false,
|
|
394
|
+
"docs": {
|
|
395
|
+
"tags": [],
|
|
396
|
+
"text": "Whether card is checked (if card is selectable)"
|
|
397
|
+
},
|
|
398
|
+
"attribute": "checked",
|
|
399
|
+
"reflect": true,
|
|
400
|
+
"defaultValue": "false"
|
|
401
|
+
},
|
|
402
|
+
"name": {
|
|
403
|
+
"type": "string",
|
|
404
|
+
"mutable": false,
|
|
405
|
+
"complexType": {
|
|
406
|
+
"original": "string",
|
|
407
|
+
"resolved": "string",
|
|
408
|
+
"references": {}
|
|
409
|
+
},
|
|
410
|
+
"required": false,
|
|
411
|
+
"optional": false,
|
|
412
|
+
"docs": {
|
|
413
|
+
"tags": [],
|
|
414
|
+
"text": "The name of the input element (if card is selectable)"
|
|
415
|
+
},
|
|
416
|
+
"attribute": "name",
|
|
417
|
+
"reflect": true,
|
|
418
|
+
"defaultValue": "\"\""
|
|
419
|
+
},
|
|
420
|
+
"value": {
|
|
421
|
+
"type": "string",
|
|
422
|
+
"mutable": true,
|
|
423
|
+
"complexType": {
|
|
424
|
+
"original": "string",
|
|
425
|
+
"resolved": "string",
|
|
426
|
+
"references": {}
|
|
427
|
+
},
|
|
428
|
+
"required": false,
|
|
429
|
+
"optional": false,
|
|
430
|
+
"docs": {
|
|
431
|
+
"tags": [],
|
|
432
|
+
"text": "The value of the input element (if card is selectable)"
|
|
433
|
+
},
|
|
434
|
+
"attribute": "value",
|
|
435
|
+
"reflect": false,
|
|
436
|
+
"defaultValue": "\"\""
|
|
437
|
+
},
|
|
438
|
+
"disabled": {
|
|
439
|
+
"type": "boolean",
|
|
440
|
+
"mutable": false,
|
|
441
|
+
"complexType": {
|
|
442
|
+
"original": "boolean",
|
|
443
|
+
"resolved": "boolean",
|
|
444
|
+
"references": {}
|
|
445
|
+
},
|
|
446
|
+
"required": false,
|
|
447
|
+
"optional": false,
|
|
448
|
+
"docs": {
|
|
449
|
+
"tags": [],
|
|
450
|
+
"text": "Whether the element is disabled or not (if card is selectable)"
|
|
451
|
+
},
|
|
452
|
+
"attribute": "disabled",
|
|
453
|
+
"reflect": true,
|
|
454
|
+
"defaultValue": "false"
|
|
455
|
+
},
|
|
307
456
|
"heading": {
|
|
308
457
|
"type": "string",
|
|
309
458
|
"mutable": false,
|
|
@@ -340,14 +489,14 @@ export class StzhServicecard {
|
|
|
340
489
|
"reflect": false,
|
|
341
490
|
"defaultValue": "\"\""
|
|
342
491
|
},
|
|
343
|
-
"
|
|
492
|
+
"headerActions": {
|
|
344
493
|
"type": "string",
|
|
345
494
|
"mutable": false,
|
|
346
495
|
"complexType": {
|
|
347
|
-
"original": "string |
|
|
348
|
-
"resolved": "
|
|
496
|
+
"original": "string | StzhCardHeaderAction[]",
|
|
497
|
+
"resolved": "StzhCardHeaderAction[] | string",
|
|
349
498
|
"references": {
|
|
350
|
-
"
|
|
499
|
+
"StzhCardHeaderAction": {
|
|
351
500
|
"location": "import",
|
|
352
501
|
"path": "../../index"
|
|
353
502
|
}
|
|
@@ -357,9 +506,32 @@ export class StzhServicecard {
|
|
|
357
506
|
"optional": false,
|
|
358
507
|
"docs": {
|
|
359
508
|
"tags": [],
|
|
360
|
-
"text": "Card actions"
|
|
509
|
+
"text": "Card header actions"
|
|
361
510
|
},
|
|
362
|
-
"attribute": "actions",
|
|
511
|
+
"attribute": "header-actions",
|
|
512
|
+
"reflect": false,
|
|
513
|
+
"defaultValue": "[]"
|
|
514
|
+
},
|
|
515
|
+
"footerActions": {
|
|
516
|
+
"type": "string",
|
|
517
|
+
"mutable": false,
|
|
518
|
+
"complexType": {
|
|
519
|
+
"original": "string | StzhActionsetItem[]",
|
|
520
|
+
"resolved": "StzhActionsetItem[] | string",
|
|
521
|
+
"references": {
|
|
522
|
+
"StzhActionsetItem": {
|
|
523
|
+
"location": "import",
|
|
524
|
+
"path": "../../index"
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
},
|
|
528
|
+
"required": false,
|
|
529
|
+
"optional": false,
|
|
530
|
+
"docs": {
|
|
531
|
+
"tags": [],
|
|
532
|
+
"text": "Card footer actions"
|
|
533
|
+
},
|
|
534
|
+
"attribute": "footer-actions",
|
|
363
535
|
"reflect": false,
|
|
364
536
|
"defaultValue": "[]"
|
|
365
537
|
},
|
|
@@ -399,61 +571,43 @@ export class StzhServicecard {
|
|
|
399
571
|
"reflect": true,
|
|
400
572
|
"defaultValue": "\"default\""
|
|
401
573
|
},
|
|
402
|
-
"
|
|
403
|
-
"type": "
|
|
404
|
-
"mutable": false,
|
|
405
|
-
"complexType": {
|
|
406
|
-
"original": "\"to-right\" | \"to-left\"",
|
|
407
|
-
"resolved": "\"to-left\" | \"to-right\"",
|
|
408
|
-
"references": {}
|
|
409
|
-
},
|
|
410
|
-
"required": false,
|
|
411
|
-
"optional": false,
|
|
412
|
-
"docs": {
|
|
413
|
-
"tags": [],
|
|
414
|
-
"text": "Middle column position variant (positioning behaviour on tablet)"
|
|
415
|
-
},
|
|
416
|
-
"attribute": "middle-variant",
|
|
417
|
-
"reflect": true,
|
|
418
|
-
"defaultValue": "\"to-right\""
|
|
419
|
-
},
|
|
420
|
-
"middleVerticalSpacing": {
|
|
421
|
-
"type": "string",
|
|
574
|
+
"sortableDisabled": {
|
|
575
|
+
"type": "boolean",
|
|
422
576
|
"mutable": false,
|
|
423
577
|
"complexType": {
|
|
424
|
-
"original": "
|
|
425
|
-
"resolved": "
|
|
578
|
+
"original": "boolean",
|
|
579
|
+
"resolved": "boolean",
|
|
426
580
|
"references": {}
|
|
427
581
|
},
|
|
428
582
|
"required": false,
|
|
429
583
|
"optional": false,
|
|
430
584
|
"docs": {
|
|
431
585
|
"tags": [],
|
|
432
|
-
"text": "
|
|
586
|
+
"text": "Whether sorting should be disabled"
|
|
433
587
|
},
|
|
434
|
-
"attribute": "
|
|
588
|
+
"attribute": "sortable-disabled",
|
|
435
589
|
"reflect": true,
|
|
436
|
-
"defaultValue": "
|
|
590
|
+
"defaultValue": "false"
|
|
437
591
|
},
|
|
438
|
-
"
|
|
439
|
-
"type": "
|
|
592
|
+
"collapsible": {
|
|
593
|
+
"type": "boolean",
|
|
440
594
|
"mutable": false,
|
|
441
595
|
"complexType": {
|
|
442
|
-
"original": "
|
|
443
|
-
"resolved": "
|
|
596
|
+
"original": "boolean",
|
|
597
|
+
"resolved": "boolean",
|
|
444
598
|
"references": {}
|
|
445
599
|
},
|
|
446
600
|
"required": false,
|
|
447
601
|
"optional": false,
|
|
448
602
|
"docs": {
|
|
449
603
|
"tags": [],
|
|
450
|
-
"text": "
|
|
604
|
+
"text": "Whether card is collapsible"
|
|
451
605
|
},
|
|
452
|
-
"attribute": "
|
|
606
|
+
"attribute": "collapsible",
|
|
453
607
|
"reflect": true,
|
|
454
|
-
"defaultValue": "
|
|
608
|
+
"defaultValue": "false"
|
|
455
609
|
},
|
|
456
|
-
"
|
|
610
|
+
"hideHeaderBorder": {
|
|
457
611
|
"type": "boolean",
|
|
458
612
|
"mutable": false,
|
|
459
613
|
"complexType": {
|
|
@@ -465,13 +619,13 @@ export class StzhServicecard {
|
|
|
465
619
|
"optional": false,
|
|
466
620
|
"docs": {
|
|
467
621
|
"tags": [],
|
|
468
|
-
"text": "Whether
|
|
622
|
+
"text": "Whether to hide header separation border"
|
|
469
623
|
},
|
|
470
|
-
"attribute": "
|
|
624
|
+
"attribute": "hide-header-border",
|
|
471
625
|
"reflect": true,
|
|
472
626
|
"defaultValue": "false"
|
|
473
627
|
},
|
|
474
|
-
"
|
|
628
|
+
"hideFooterBorder": {
|
|
475
629
|
"type": "boolean",
|
|
476
630
|
"mutable": false,
|
|
477
631
|
"complexType": {
|
|
@@ -483,9 +637,9 @@ export class StzhServicecard {
|
|
|
483
637
|
"optional": false,
|
|
484
638
|
"docs": {
|
|
485
639
|
"tags": [],
|
|
486
|
-
"text": "Whether
|
|
640
|
+
"text": "Whether to hide footer separation border"
|
|
487
641
|
},
|
|
488
|
-
"attribute": "
|
|
642
|
+
"attribute": "hide-footer-border",
|
|
489
643
|
"reflect": true,
|
|
490
644
|
"defaultValue": "false"
|
|
491
645
|
},
|
|
@@ -521,10 +675,10 @@ export class StzhServicecard {
|
|
|
521
675
|
"text": "Collapse event"
|
|
522
676
|
},
|
|
523
677
|
"complexType": {
|
|
524
|
-
"original": "
|
|
525
|
-
"resolved": "{ component: \"stzh-
|
|
678
|
+
"original": "StzhCardCollapseEvent",
|
|
679
|
+
"resolved": "{ component: \"stzh-card\"; collapsed: boolean; }",
|
|
526
680
|
"references": {
|
|
527
|
-
"
|
|
681
|
+
"StzhCardCollapseEvent": {
|
|
528
682
|
"location": "import",
|
|
529
683
|
"path": "../../index"
|
|
530
684
|
}
|
|
@@ -541,10 +695,10 @@ export class StzhServicecard {
|
|
|
541
695
|
"text": "Subtitle click event"
|
|
542
696
|
},
|
|
543
697
|
"complexType": {
|
|
544
|
-
"original": "
|
|
545
|
-
"resolved": "{ component: \"stzh-
|
|
698
|
+
"original": "StzhCardSubtitleClickEvent",
|
|
699
|
+
"resolved": "{ component: \"stzh-card\"; }",
|
|
546
700
|
"references": {
|
|
547
|
-
"
|
|
701
|
+
"StzhCardSubtitleClickEvent": {
|
|
548
702
|
"location": "import",
|
|
549
703
|
"path": "../../index"
|
|
550
704
|
}
|
|
@@ -561,30 +715,30 @@ export class StzhServicecard {
|
|
|
561
715
|
"text": "Star click event"
|
|
562
716
|
},
|
|
563
717
|
"complexType": {
|
|
564
|
-
"original": "
|
|
565
|
-
"resolved": "{ component: \"stzh-
|
|
718
|
+
"original": "StzhCardStarClickEvent",
|
|
719
|
+
"resolved": "{ component: \"stzh-card\"; starred: boolean; }",
|
|
566
720
|
"references": {
|
|
567
|
-
"
|
|
721
|
+
"StzhCardStarClickEvent": {
|
|
568
722
|
"location": "import",
|
|
569
723
|
"path": "../../index"
|
|
570
724
|
}
|
|
571
725
|
}
|
|
572
726
|
}
|
|
573
727
|
}, {
|
|
574
|
-
"method": "
|
|
575
|
-
"name": "
|
|
728
|
+
"method": "stzhHeaderActionClick",
|
|
729
|
+
"name": "stzhHeaderActionClick",
|
|
576
730
|
"bubbles": true,
|
|
577
731
|
"cancelable": true,
|
|
578
732
|
"composed": true,
|
|
579
733
|
"docs": {
|
|
580
734
|
"tags": [],
|
|
581
|
-
"text": "
|
|
735
|
+
"text": "Header action click event"
|
|
582
736
|
},
|
|
583
737
|
"complexType": {
|
|
584
|
-
"original": "
|
|
585
|
-
"resolved": "{ component: \"stzh-
|
|
738
|
+
"original": "StzhCardHeaderActionClickEvent",
|
|
739
|
+
"resolved": "{ component: \"stzh-card\"; action: StzhCardHeaderAction; }",
|
|
586
740
|
"references": {
|
|
587
|
-
"
|
|
741
|
+
"StzhCardHeaderActionClickEvent": {
|
|
588
742
|
"location": "import",
|
|
589
743
|
"path": "../../index"
|
|
590
744
|
}
|
|
@@ -598,8 +752,11 @@ export class StzhServicecard {
|
|
|
598
752
|
"propName": "subtitle",
|
|
599
753
|
"methodName": "subtitleWatcher"
|
|
600
754
|
}, {
|
|
601
|
-
"propName": "
|
|
602
|
-
"methodName": "
|
|
755
|
+
"propName": "headerActions",
|
|
756
|
+
"methodName": "headerActionsWatcher"
|
|
757
|
+
}, {
|
|
758
|
+
"propName": "footerActions",
|
|
759
|
+
"methodName": "footerActionsWatcher"
|
|
603
760
|
}];
|
|
604
761
|
}
|
|
605
762
|
static get listeners() {
|
|
@@ -607,7 +764,7 @@ export class StzhServicecard {
|
|
|
607
764
|
"name": "resize",
|
|
608
765
|
"method": "handleResize",
|
|
609
766
|
"target": "window",
|
|
610
|
-
"capture":
|
|
767
|
+
"capture": false,
|
|
611
768
|
"passive": true
|
|
612
769
|
}];
|
|
613
770
|
}
|