@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.
- package/README.md +1 -56
- package/dist/cjs/{app-globals-e07b8f5f.js → app-globals-58a084a9.js} +5 -3
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/stzh-actions.cjs.entry.js +1 -1
- package/dist/cjs/stzh-actionset.cjs.entry.js +164 -0
- package/dist/cjs/stzh-appnav.cjs.entry.js +1 -1
- package/dist/cjs/stzh-badge_3.cjs.entry.js +25 -4
- 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-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/stzh-checkboxgroup.cjs.entry.js +2 -4
- 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 +7 -8
- package/dist/cjs/stzh-dialog.cjs.entry.js +2 -2
- package/dist/cjs/stzh-dropdown.cjs.entry.js +33 -8
- package/dist/cjs/stzh-figure.cjs.entry.js +1 -1
- package/dist/cjs/stzh-footer.cjs.entry.js +1 -1
- package/dist/cjs/stzh-ghettobox_2.cjs.entry.js +2 -2
- package/dist/cjs/stzh-header.cjs.entry.js +1 -1
- package/dist/cjs/stzh-icon-sprite.cjs.entry.js +1 -1
- package/dist/cjs/stzh-input.cjs.entry.js +10 -6
- package/dist/cjs/stzh-link.cjs.entry.js +2 -2
- package/dist/cjs/stzh-menu_2.cjs.entry.js +1 -1
- package/dist/cjs/stzh-overlay.cjs.entry.js +1 -1
- package/dist/cjs/stzh-pagetitle.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-readspeaker.cjs.entry.js +1 -1
- package/dist/cjs/stzh-sortable.cjs.entry.js +3230 -2440
- package/dist/cjs/stzh-table.cjs.entry.js +1 -1
- package/dist/cjs/stzh-toggle.cjs.entry.js +1 -1
- package/dist/cjs/stzh-tooltip.cjs.entry.js +3 -1
- package/dist/cjs/stzh-upload.cjs.entry.js +44 -11
- package/dist/cjs/utils-8dc66449.js +76 -0
- package/dist/collection/assets/fonts.css +5 -5
- 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-card/stzh-card.js +771 -0
- 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-card-list/stzh-card-list.js +224 -0
- 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-checkboxgroup/stzh-checkboxgroup.js +1 -3
- package/dist/collection/components/stzh-chip-select/stzh-chip-select.js +1 -1
- package/dist/collection/components/stzh-cspace/stzh-cspace.css +19 -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 +11 -2
- package/dist/collection/components/stzh-dialog/stzh-dialog.stories.js +18 -8
- package/dist/collection/components/stzh-dropdown/stzh-dropdown.css +5 -7
- package/dist/collection/components/stzh-dropdown/stzh-dropdown.js +86 -27
- package/dist/collection/components/stzh-dropdown/stzh-dropdown.stories.js +3328 -0
- 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 +18 -9
- package/dist/collection/components/stzh-input/stzh-input.js +80 -26
- 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 -9
- package/dist/collection/components/stzh-radio/stzh-radio.css +2 -2
- package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.js +5 -6
- 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 +75 -8
- 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/components/stzh-upload/stzh-upload.css +3 -0
- package/dist/collection/components/stzh-upload/stzh-upload.js +43 -10
- package/dist/collection/components/stzh-upload/stzh-upload.stories.js +10 -8
- package/dist/collection/global/js/helpers/autofocus.js +3 -1
- package/dist/collection/global/js/script.js +1 -1
- package/dist/collection/libraries/sortable.js +3791 -0
- package/dist/collection/pages/meinkonto.stories.js +93 -88
- package/dist/collection/utils/utils.js +39 -0
- package/dist/components/index.d.ts +4 -2
- package/dist/components/index.js +9 -5
- 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-checkboxgroup.js +1 -3
- 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 +36 -9
- package/dist/components/stzh-icon-sprite.js +1 -1
- package/dist/components/stzh-input2.js +13 -6
- 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 +4 -5
- package/dist/components/stzh-richtext2.js +1 -1
- package/dist/components/stzh-sortable2.js +3232 -2441
- package/dist/components/stzh-tooltip2.js +4 -1
- package/dist/components/stzh-upload.js +43 -10
- package/dist/components/utils.js +40 -1
- package/dist/esm/{app-globals-70c229e3.js → app-globals-6b6ff890.js} +5 -3
- 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 +2 -2
- package/dist/esm/stzh-actionset.entry.js +160 -0
- package/dist/esm/stzh-appnav.entry.js +2 -2
- package/dist/esm/stzh-appointments.entry.js +1 -1
- package/dist/esm/stzh-badge_3.entry.js +26 -5
- 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 +3 -3
- package/dist/esm/stzh-checkboxgroup.entry.js +4 -6
- 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 +9 -10
- package/dist/esm/stzh-dialog.entry.js +3 -3
- package/dist/esm/stzh-dropdown.entry.js +35 -10
- package/dist/esm/stzh-fieldset.entry.js +1 -1
- package/dist/esm/stzh-figure.entry.js +2 -2
- package/dist/esm/stzh-flyingfocus.entry.js +1 -1
- package/dist/esm/stzh-footer.entry.js +2 -2
- package/dist/esm/stzh-ghettobox_2.entry.js +3 -3
- package/dist/esm/stzh-header.entry.js +2 -2
- 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 +12 -8
- package/dist/esm/stzh-link.entry.js +3 -3
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +3231 -2441
- package/dist/esm/stzh-status.entry.js +1 -1
- package/dist/esm/stzh-table.entry.js +2 -2
- package/dist/esm/stzh-toggle.entry.js +3 -3
- package/dist/esm/stzh-tooltip.entry.js +4 -2
- package/dist/esm/stzh-upload.entry.js +46 -13
- 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/utils-68a28fce.js +72 -0
- 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/esm-es5/utils-68a28fce.js +1 -0
- package/dist/stzh-components/assets/fonts.css +5 -5
- 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-07f16263.entry.js → p-001b7d10.entry.js} +1 -1
- package/dist/stzh-components/p-0230004d.system.js +1 -0
- package/dist/stzh-components/{p-0837657c.entry.js → p-08a564af.entry.js} +1 -1
- package/dist/stzh-components/{p-a6486f64.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-4cfe83b5.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-1f57d28e.js +1 -0
- 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-55188328.entry.js → p-2818488f.entry.js} +1 -1
- package/dist/stzh-components/{p-f9dc7a9b.entry.js → p-29427863.entry.js} +1 -1
- package/dist/stzh-components/{p-3c4478b0.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-1ccbd2d6.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-3b27a43f.system.entry.js +7 -0
- 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-79ca1ba6.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-60b4f34c.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-cb4a91b7.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-634095bd.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-82d85c3a.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-19344366.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-ff8a3e96.entry.js → p-6354fee3.entry.js} +1 -1
- package/dist/stzh-components/{p-86d3ce62.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-b1976630.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-c2d58384.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-a4100bd8.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-bba52769.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-8f16b0ac.entry.js +8 -0
- 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-e58d3bc7.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-2f2cb544.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-f8d9411d.system.entry.js → p-b636a18a.system.entry.js} +1 -1
- package/dist/stzh-components/{p-f544cf3d.entry.js → p-b9295dc2.entry.js} +1 -1
- package/dist/stzh-components/{p-1bfc1097.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-0433fff9.system.entry.js → p-c013a00b.system.entry.js} +1 -1
- package/dist/stzh-components/p-c1337453.entry.js +1 -0
- 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-298276e4.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-49e37004.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-6ec17efc.entry.js → p-d0aa9d3b.entry.js} +1 -1
- package/dist/stzh-components/{p-2990206c.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-30cb8bc0.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-c6ad1a8c.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-2d0685e3.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-fc6b4f91.system.entry.js +1 -0
- package/dist/stzh-components/p-fdd1998f.entry.js +1 -0
- package/dist/stzh-components/{p-9e6c25ed.system.entry.js → p-fdf0b4bc.system.entry.js} +1 -1
- package/dist/stzh-components/{p-0c92ee26.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 +518 -239
- package/dist/types/index.d.ts +57 -14
- package/dist/types/utils/utils.d.ts +2 -0
- package/dist/vscode-data.json +366 -132
- package/package.json +1 -1
- package/dist/cjs/stzh-servicecard-list.cjs.entry.js +0 -56
- package/dist/cjs/stzh-servicecard.cjs.entry.js +0 -212
- package/dist/cjs/utils-d327c19d.js +0 -36
- package/dist/collection/components/stzh-servicecard/stzh-servicecard.css +0 -558
- package/dist/collection/components/stzh-servicecard/stzh-servicecard.js +0 -592
- package/dist/collection/components/stzh-servicecard/stzh-servicecard.stories.js +0 -73
- package/dist/collection/components/stzh-servicecard-list/stzh-servicecard-list.js +0 -153
- package/dist/collection/components/stzh-servicecard-list/stzh-servicecard-list.stories.js +0 -115
- package/dist/components/stzh-servicecard-list.js +0 -99
- package/dist/components/stzh-servicecard.js +0 -283
- package/dist/esm/stzh-servicecard-list.entry.js +0 -52
- package/dist/esm/stzh-servicecard.entry.js +0 -208
- package/dist/esm/utils-904416df.js +0 -33
- package/dist/esm-es5/app-globals-70c229e3.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/esm-es5/utils-904416df.js +0 -1
- package/dist/stzh-components/p-043ab41e.system.entry.js +0 -1
- package/dist/stzh-components/p-1d914f6c.entry.js +0 -1
- package/dist/stzh-components/p-323fdc2f.entry.js +0 -1
- package/dist/stzh-components/p-49ea222f.system.entry.js +0 -1
- package/dist/stzh-components/p-5f7b72c8.entry.js +0 -1
- package/dist/stzh-components/p-5f856307.system.js +0 -1
- package/dist/stzh-components/p-63b5068a.system.entry.js +0 -1
- package/dist/stzh-components/p-6c502e6e.js +0 -1
- package/dist/stzh-components/p-6ea5c23d.system.entry.js +0 -7
- package/dist/stzh-components/p-7279af4a.system.entry.js +0 -1
- package/dist/stzh-components/p-7bb1bd3b.entry.js +0 -1
- package/dist/stzh-components/p-8462ba57.entry.js +0 -1
- package/dist/stzh-components/p-88bef2cd.entry.js +0 -1
- package/dist/stzh-components/p-a7c3b41a.entry.js +0 -1
- package/dist/stzh-components/p-a86c6487.entry.js +0 -1
- package/dist/stzh-components/p-aa4e28cc.system.js +0 -1
- package/dist/stzh-components/p-ac1da083.system.js +0 -1
- package/dist/stzh-components/p-b63d6ded.system.entry.js +0 -1
- package/dist/stzh-components/p-bcade28e.entry.js +0 -1
- package/dist/stzh-components/p-be21cebd.js +0 -1
- package/dist/stzh-components/p-d04e8743.system.entry.js +0 -1
- package/dist/stzh-components/p-d8819b74.system.entry.js +0 -1
- package/dist/stzh-components/p-e048de42.entry.js +0 -8
- package/dist/stzh-components/p-e2ce48f1.system.entry.js +0 -1
- package/dist/stzh-components/p-e987954a.system.entry.js +0 -1
- package/dist/stzh-components/p-f21440b3.entry.js +0 -1
- package/dist/stzh-components/p-fe9f8a09.system.entry.js +0 -1
|
@@ -1,212 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-ac9bdc7f.js');
|
|
6
|
-
const utils = require('./utils-d327c19d.js');
|
|
7
|
-
const mediaUtils = require('./media-utils-8cfc8591.js');
|
|
8
|
-
const translationUtils = require('./translation-utils-73073e44.js');
|
|
9
|
-
|
|
10
|
-
const stzhServicecardCss = ".sc-stzh-servicecard-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-servicecard-h{display:none}.sc-stzh-servicecard-h *.sc-stzh-servicecard,.sc-stzh-servicecard-h *.sc-stzh-servicecard::before,.sc-stzh-servicecard-h *.sc-stzh-servicecard::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-servicecard-h{--box-shadow:var(--stzh-box-shadow-popover);--border:0.0625rem solid var(--stzh-base-border-color);--border-radius:0.1875rem;--dnd-visibility:hidden;--dnd-opacity:0;position:relative;border-radius:var(--border-radius)}.is-ghost.sc-stzh-servicecard-h::after{border-radius:var(--border-radius)}.is-selected.sc-stzh-servicecard-h,.is-chosen.sc-stzh-servicecard-h{--box-shadow:var(--stzh-box-shadow-overlay)}.is-ghost.sc-stzh-servicecard-h{--box-shadow:none;--border:0.0625rem solid transparent;overflow:hidden}.is-drag.sc-stzh-servicecard-h,.is-chosen.sc-stzh-servicecard-h,.is-ghost.sc-stzh-servicecard-h,.is-selected.sc-stzh-servicecard-h{--dnd-visibility:visible;--dnd-opacity:1}.sc-stzh-servicecard-h .sc-stzh-servicecard-s>*{font-size:var(--stzh-font-milli-font-size);line-height:var(--stzh-font-milli-text-line-height);letter-spacing:var(--stzh-font-curve---text-letter-spacing)}.sc-stzh-servicecard-h .sc-stzh-servicecard-s>table{border:0;border-spacing:0}.sc-stzh-servicecard-h .sc-stzh-servicecard-s>table th{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal}.sc-stzh-servicecard-h .sc-stzh-servicecard-s>table td,.sc-stzh-servicecard-h .sc-stzh-servicecard-s>table th{padding:0}.sc-stzh-servicecard-h .sc-stzh-servicecard-s>table td{color:var(--stzh-color-black);padding-left:var(--stzh-space-xsmall)}.sc-stzh-servicecard-h .sc-stzh-servicecard-s>*:not(:first-child){margin-top:var(--stzh-space-medium)}.stzh-servicecard.sc-stzh-servicecard{background-color:var(--stzh-color-white);border-radius:var(--border-radius);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);border:var(--border);-webkit-transition:-webkit-box-shadow var(--stzh-base-transition-animation-speed);transition:-webkit-box-shadow var(--stzh-base-transition-animation-speed);transition:box-shadow var(--stzh-base-transition-animation-speed);transition:box-shadow var(--stzh-base-transition-animation-speed), -webkit-box-shadow var(--stzh-base-transition-animation-speed)}@media screen and (max-width: 1023px){.stzh-servicecard.sc-stzh-servicecard .show-medium.sc-stzh-servicecard{display:none}}@media screen and (min-width: 1024px){.stzh-servicecard.sc-stzh-servicecard .hide-medium.sc-stzh-servicecard{display:none}}.stzh-servicecard__dnd.sc-stzh-servicecard{--size:var(--stzh-icon-size-xsmall);position:absolute;left:0.1875rem;top:1.4375rem;display:-ms-flexbox;display:flex;visibility:var(--dnd-visibility);opacity:var(--dnd-opacity);-webkit-transition:all var(--stzh-base-transition-animation-speed);transition:all var(--stzh-base-transition-animation-speed);display:none}@media screen and (min-width: 1024px){.stzh-servicecard__dnd.sc-stzh-servicecard{display:block}}@media screen and (min-width: 1260px){.stzh-servicecard__dnd.sc-stzh-servicecard{left:0.25rem;top:1.6875rem}}.stzh-servicecard__header.sc-stzh-servicecard{padding-top:var(--stzh-space-xsmall);padding-bottom:var(--stzh-space-xsmall);display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:start;align-items:flex-start;border-bottom:0.0625rem solid var(--stzh-base-border-color)}@media screen and (min-width: 600px){.stzh-servicecard__header.sc-stzh-servicecard{padding-top:var(--stzh-space-small)}}@media screen and (min-width: 1024px){.stzh-servicecard__header.sc-stzh-servicecard{padding-top:var(--stzh-space-medium)}}@media screen and (min-width: 1260px){.stzh-servicecard__header.sc-stzh-servicecard{padding-top:var(--stzh-space-large)}}@media screen and (min-width: 600px){.stzh-servicecard__header.sc-stzh-servicecard{padding-bottom:var(--stzh-space-small)}}@media screen and (min-width: 1024px){.stzh-servicecard__header.sc-stzh-servicecard{padding-bottom:var(--stzh-space-medium)}}@media screen and (min-width: 1260px){.stzh-servicecard__header.sc-stzh-servicecard{padding-bottom:var(--stzh-space-large)}}.stzh-servicecard__header-left.sc-stzh-servicecard,.stzh-servicecard__header-right.sc-stzh-servicecard{display:-ms-flexbox;display:flex}.stzh-servicecard__header-right.sc-stzh-servicecard{padding-left:var(--stzh-space-xsmall)}@media screen and (min-width: 600px){.stzh-servicecard__header-right.sc-stzh-servicecard{padding-left:var(--stzh-space-small)}}@media screen and (min-width: 1024px){.stzh-servicecard__header-right.sc-stzh-servicecard{padding-left:var(--stzh-space-medium)}}@media screen and (min-width: 1260px){.stzh-servicecard__header-right.sc-stzh-servicecard{padding-left:var(--stzh-space-large)}}.stzh-servicecard__header.sc-stzh-servicecard,.stzh-servicecard__columns.sc-stzh-servicecard{padding-left:var(--stzh-space-medium);padding-right:var(--stzh-space-medium)}@media screen and (min-width: 1024px){.stzh-servicecard__header.sc-stzh-servicecard,.stzh-servicecard__columns.sc-stzh-servicecard{padding-left:var(--stzh-space-large);padding-right:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.stzh-servicecard__header.sc-stzh-servicecard,.stzh-servicecard__columns.sc-stzh-servicecard{padding-left:var(--stzh-space-xlarge);padding-right:var(--stzh-space-xlarge)}}.stzh-servicecard__left.sc-stzh-servicecard{-ms-flex-item-align:center;align-self:center}.stzh-servicecard__title-area.sc-stzh-servicecard{overflow-wrap:break-word;word-wrap:break-word;word-break:break-word;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;overflow:hidden}.stzh-servicecard__title.sc-stzh-servicecard,.stzh-servicecard__subtitle.sc-stzh-servicecard{margin:0}.stzh-servicecard__title.sc-stzh-servicecard{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal;font-size:var(--stzh-font-curve-h3-default-font-size, var(--stzh-font-centi-font-size));line-height:var(--stzh-font-curve-h3-default-heading-line-height, var(--stzh-font-centi-heading-line-height));letter-spacing:var(--stzh-font-curve-h3-default-heading-letter-spacing);color:var(--stzh-base-lead-color)}@media screen and (min-width: 600px){.stzh-servicecard__title.sc-stzh-servicecard{font-size:var(--stzh-font-curve-h3-small-font-size, var(--stzh-font-deci-font-size));line-height:var(--stzh-font-curve-h3-small-heading-line-height, var(--stzh-font-deci-heading-line-height));letter-spacing:var(--stzh-font-curve-h3-small-heading-letter-spacing)}}@media screen and (min-width: 1024px){.stzh-servicecard__title.sc-stzh-servicecard{font-size:var(--stzh-font-curve-h3-medium-font-size, var(--stzh-font-regular-font-size));line-height:var(--stzh-font-curve-h3-medium-heading-line-height, var(--stzh-font-regular-heading-line-height));letter-spacing:var(--stzh-font-curve-h3-medium-heading-letter-spacing)}}.stzh-servicecard__subtitle.sc-stzh-servicecard{font-size:var(--stzh-font-curve-p1-default-font-size, var(--stzh-font-milli-font-size));line-height:var(--stzh-font-curve-p1-default-text-line-height, var(--stzh-font-milli-text-line-height));letter-spacing:var(--stzh-font-curve-p1-default-text-letter-spacing);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;text-decoration:none;margin-left:-0.5625em}@media screen and (min-width: 1024px){.stzh-servicecard__subtitle.sc-stzh-servicecard{font-size:var(--stzh-font-curve-p1-medium-font-size, var(--stzh-font-centi-font-size));line-height:var(--stzh-font-curve-p1-medium-text-line-height, var(--stzh-font-centi-text-line-height));letter-spacing:var(--stzh-font-curve-p1-medium-text-letter-spacing)}}.stzh-servicecard__subtitle-text.sc-stzh-servicecard{position:relative;display:-ms-inline-flexbox;display:inline-flex;padding-left:0.5625em}.stzh-servicecard__subtitle-text.sc-stzh-servicecard::after{content:\",\";position:absolute;left:0}.stzh-servicecard__columns.sc-stzh-servicecard{margin-top:var(--stzh-space-medium);margin-bottom:var(--stzh-space-medium);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}@media screen and (min-width: 1024px){.stzh-servicecard__columns.sc-stzh-servicecard{margin-top:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.stzh-servicecard__columns.sc-stzh-servicecard{margin-top:var(--stzh-space-xlarge)}}@media screen and (min-width: 1024px){.stzh-servicecard__columns.sc-stzh-servicecard{margin-bottom:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.stzh-servicecard__columns.sc-stzh-servicecard{margin-bottom:var(--stzh-space-xlarge)}}@media screen and (min-width: 800px){.stzh-servicecard__columns.sc-stzh-servicecard{display:grid;grid-template-columns:50% 50%;grid-template-rows:auto auto;margin-left:calc(var(--stzh-space-medium) / -1);margin-right:calc(var(--stzh-space-medium) / -1)}}@media screen and (min-width: 1024px){.stzh-servicecard__columns.sc-stzh-servicecard{grid-template-columns:1fr 1fr 1fr;grid-template-rows:auto;margin-left:calc(var(--stzh-space-large) / -1);margin-right:calc(var(--stzh-space-large) / -1)}}@media screen and (min-width: 1260px){.stzh-servicecard__columns.sc-stzh-servicecard{margin-left:calc(var(--stzh-space-xlarge) / -1);margin-right:calc(var(--stzh-space-xlarge) / -1)}}@media screen and (min-width: 800px){.stzh-servicecard__column.sc-stzh-servicecard{padding-left:var(--stzh-space-medium);padding-right:var(--stzh-space-medium)}}@media screen and (min-width: 1024px){.stzh-servicecard__column.sc-stzh-servicecard{padding-left:var(--stzh-space-large);padding-right:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.stzh-servicecard__column.sc-stzh-servicecard{padding-left:var(--stzh-space-xlarge);padding-right:var(--stzh-space-xlarge)}}@media screen and (min-width: 800px){.stzh-servicecard__column.is-left.sc-stzh-servicecard{grid-column:1/span 1;grid-row:1/span 2}}@media screen and (min-width: 1024px){.stzh-servicecard__column.is-left.sc-stzh-servicecard{grid-column:1/span 2;grid-row:1/span 1}}@media screen and (min-width: 800px){.stzh-servicecard__column.is-middle.sc-stzh-servicecard{grid-column:2/span 1;grid-row:1/span 1}}@media screen and (min-width: 800px){.stzh-servicecard__column.is-right.sc-stzh-servicecard{align-self:end;grid-column:2/span 1;grid-row:2/span 1}}@media screen and (min-width: 1024px){.stzh-servicecard__column.is-right.sc-stzh-servicecard{grid-column:3/span 1;grid-row:1/span 1}}.stzh-servicecard__column.sc-stzh-servicecard:not(:empty):not(:first-child):not(.has-no-spacing){margin-top:var(--stzh-space-medium)}@media screen and (min-width: 1024px){.stzh-servicecard__column.sc-stzh-servicecard:not(:empty):not(:first-child):not(.has-no-spacing){margin-top:0}}@media screen and (min-width: 800px){.stzh-servicecard__column.is-middle.sc-stzh-servicecard:empty+.stzh-servicecard__column.is-right.sc-stzh-servicecard{margin-top:0}}.stzh-servicecard__column.is-left.sc-stzh-servicecard:empty+.stzh-servicecard__column.is-middle.sc-stzh-servicecard:not(:empty),.stzh-servicecard__column.is-left.sc-stzh-servicecard:empty+.stzh-servicecard__column.is-middle.sc-stzh-servicecard:empty+.stzh-servicecard__column.is-right.sc-stzh-servicecard:not(:empty){margin-top:0}.stzh-servicecard__card-actions.sc-stzh-servicecard{display:-ms-inline-flexbox;display:inline-flex;white-space:nowrap}@media screen and (max-width: 1023px){.stzh-servicecard__card-action.sc-stzh-servicecard{--icon-text-margin:0;--badge-icon-text-margin:0}}.stzh-servicecard__card-action[variant=tertiary].sc-stzh-servicecard{--color:var(--stzh-color-grey70)}.stzh-servicecard__card-action.is-button.sc-stzh-servicecard{--icon-size:var(--stzh-icon-size-small)}.stzh-servicecard__card-action.is-placeholder.sc-stzh-servicecard{width:var(--stzh-space-xxlarge);height:var(--stzh-space-xxlarge)}.stzh-servicecard__card-action-popover.sc-stzh-servicecard{--width:auto}@media screen and (min-width: 800px){.stzh-servicecard--has-middle.sc-stzh-servicecard .stzh-servicecard__column.is-left.sc-stzh-servicecard{grid-column:1/span 1;grid-row:1/span 2}}@media screen and (min-width: 1024px){.stzh-servicecard--has-middle.sc-stzh-servicecard .stzh-servicecard__column.is-left.sc-stzh-servicecard{grid-column:1/span 1;grid-row:1/span 1}}@media screen and (min-width: 800px){.stzh-servicecard--middle-to-right.sc-stzh-servicecard .stzh-servicecard__column.is-middle.sc-stzh-servicecard{margin-top:0}}@media screen and (min-width: 800px){.stzh-servicecard--middle-to-left.sc-stzh-servicecard .stzh-servicecard__column.is-left.sc-stzh-servicecard{grid-column:1/span 1;grid-row:1/span 1}}@media screen and (min-width: 800px){.stzh-servicecard--middle-to-left.sc-stzh-servicecard .stzh-servicecard__column.is-right.sc-stzh-servicecard{grid-column:2/span 1;grid-row:1/span 2}}@media screen and (min-width: 1024px){.stzh-servicecard--middle-to-left.sc-stzh-servicecard .stzh-servicecard__column.is-right.sc-stzh-servicecard{grid-column:3/span 1;grid-row:1/span 1}}@media screen and (min-width: 800px){.stzh-servicecard--middle-to-left.sc-stzh-servicecard .stzh-servicecard__column.is-middle.sc-stzh-servicecard{grid-column:1/span 1;grid-row:2/span 1}}@media screen and (min-width: 1024px){.stzh-servicecard--middle-to-left.sc-stzh-servicecard .stzh-servicecard__column.is-middle.sc-stzh-servicecard{grid-column:2/span 1;grid-row:1/span 1}}@media screen and (min-width: 800px){.stzh-servicecard--middle-to-left.sc-stzh-servicecard .stzh-servicecard__column.is-right.sc-stzh-servicecard{margin-top:0}}.stzh-servicecard--has-subtitle-interactive.sc-stzh-servicecard .stzh-servicecard__subtitle.sc-stzh-servicecard{cursor:pointer;padding:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:none;-webkit-transition:color var(--stzh-base-transition-animation-speed);transition:color var(--stzh-base-transition-animation-speed);color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-servicecard--has-subtitle-interactive.sc-stzh-servicecard .stzh-servicecard__subtitle.sc-stzh-servicecard:hover,.stzh-servicecard--has-subtitle-interactive.sc-stzh-servicecard .stzh-servicecard__subtitle.sc-stzh-servicecard:focus{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-servicecard--type-alert.sc-stzh-servicecard .stzh-servicecard__subtitle.sc-stzh-servicecard{color:var(--stzh-color-error)}.stzh-servicecard--type-alert.sc-stzh-servicecard .stzh-servicecard__subtitle.sc-stzh-servicecard:hover,.stzh-servicecard--type-alert.sc-stzh-servicecard .stzh-servicecard__subtitle.sc-stzh-servicecard:focus{color:var(--stzh-color-error)}.stzh-servicecard--is-collapsed.sc-stzh-servicecard .hide-when-collapsed.sc-stzh-servicecard,.stzh-servicecard--has-collapsed-header.sc-stzh-servicecard .stzh-servicecard__header.sc-stzh-servicecard .hide-when-collapsed.sc-stzh-servicecard{display:none}.stzh-servicecard--is-collapsed.sc-stzh-servicecard .show-when-collapsed.sc-stzh-servicecard,.stzh-servicecard--has-collapsed-header.sc-stzh-servicecard .stzh-servicecard__header.sc-stzh-servicecard .show-when-collapsed.sc-stzh-servicecard{display:block}.stzh-servicecard--is-collapsed.sc-stzh-servicecard .stzh-servicecard__header.sc-stzh-servicecard{border-bottom:none}.stzh-servicecard--is-collapsed.sc-stzh-servicecard .stzh-servicecard__card-action.sc-stzh-servicecard,.stzh-servicecard--has-collapsed-header.sc-stzh-servicecard .stzh-servicecard__card-action.sc-stzh-servicecard{--icon-text-margin:0;--badge-icon-text-margin:0}.stzh-servicecard--is-starred.sc-stzh-servicecard .stzh-servicecard__card-action.is-star.sc-stzh-servicecard{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-servicecard--is-starred.sc-stzh-servicecard .stzh-servicecard__card-action.is-star.sc-stzh-servicecard:hover,.stzh-servicecard--is-starred.sc-stzh-servicecard .stzh-servicecard__card-action.is-star.sc-stzh-servicecard:focus{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}";
|
|
11
|
-
|
|
12
|
-
const StzhServicecard = class {
|
|
13
|
-
constructor(hostRef) {
|
|
14
|
-
index.registerInstance(this, hostRef);
|
|
15
|
-
this.stzhCollapse = index.createEvent(this, "stzhCollapse", 7);
|
|
16
|
-
this.stzhSubtitleClick = index.createEvent(this, "stzhSubtitleClick", 7);
|
|
17
|
-
this.stzhStarClick = index.createEvent(this, "stzhStarClick", 7);
|
|
18
|
-
this.stzhActionClick = index.createEvent(this, "stzhActionClick", 7);
|
|
19
|
-
/** Whether card is collapsed or not */
|
|
20
|
-
this.collapsed = false;
|
|
21
|
-
/** Whether card was starred */
|
|
22
|
-
this.starred = false;
|
|
23
|
-
/** Whether card star is displayed */
|
|
24
|
-
this.starrable = false;
|
|
25
|
-
/** Heading */
|
|
26
|
-
this.heading = "";
|
|
27
|
-
/** Subtitle */
|
|
28
|
-
this.subtitle = "";
|
|
29
|
-
this._subtitles = [];
|
|
30
|
-
/** Card actions */
|
|
31
|
-
this.actions = [];
|
|
32
|
-
/** Whether subtitle should be rendered as button and event `stzhSubtitleClick` executed on click */
|
|
33
|
-
this.subtitleInteractive = false;
|
|
34
|
-
/** Type */
|
|
35
|
-
this.type = "default";
|
|
36
|
-
/** Middle column position variant (positioning behaviour on tablet) */
|
|
37
|
-
this.middleVariant = "to-right";
|
|
38
|
-
/** Set middle column vertical spacing */
|
|
39
|
-
this.middleVerticalSpacing = "default";
|
|
40
|
-
/** Set right column vertical spacing */
|
|
41
|
-
this.rightVerticalSpacing = "default";
|
|
42
|
-
/** Whether sorting should be disabled */
|
|
43
|
-
this.sortableDisabled = false;
|
|
44
|
-
/** Whether card is collapsible */
|
|
45
|
-
this.collapsible = false;
|
|
46
|
-
/** Whether movement menu items should be shown */
|
|
47
|
-
this.hideMovementActions = false;
|
|
48
|
-
this.nodeChange = (entries) => {
|
|
49
|
-
let changeInSlot = false;
|
|
50
|
-
entries.forEach((entry) => {
|
|
51
|
-
if (entry.target.closest('[slot]') || entry.target.hasAttribute('slot')) {
|
|
52
|
-
changeInSlot = true;
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
if (changeInSlot) {
|
|
56
|
-
index.forceUpdate(this.element);
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
this.update = () => {
|
|
60
|
-
this.mainElement.classList.remove("stzh-servicecard--has-collapsed-header");
|
|
61
|
-
if (mediaUtils.media('medium').matches) {
|
|
62
|
-
const headerWidth = this.headerElement.clientWidth;
|
|
63
|
-
const leftWidth = this.headerLeftElement.clientWidth;
|
|
64
|
-
const rightWidth = this.headerRightElement.clientWidth;
|
|
65
|
-
if (headerWidth - leftWidth <= rightWidth) {
|
|
66
|
-
this.mainElement.classList.add("stzh-servicecard--has-collapsed-header");
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
this.headerClick = (event) => {
|
|
71
|
-
if (!this.collapsible) {
|
|
72
|
-
return;
|
|
73
|
-
}
|
|
74
|
-
const filterTags = ["stzh-popover", "stzh-tooltip", "button", "a", "input", "select", "textarea", "iframe", "details", "label", "area"];
|
|
75
|
-
const composedPathTags = event.composedPath().map(element => { var _a; return (_a = element.tagName) === null || _a === void 0 ? void 0 : _a.toLowerCase(); });
|
|
76
|
-
const found = composedPathTags.some(r => filterTags.includes(r));
|
|
77
|
-
if (!found) {
|
|
78
|
-
this.collapsed = !this.collapsed;
|
|
79
|
-
this.stzhCollapse.emit({
|
|
80
|
-
component: "stzh-servicecard",
|
|
81
|
-
collapsed: this.collapsed
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
};
|
|
85
|
-
this.subtitleClick = () => {
|
|
86
|
-
if (this.subtitleInteractive) {
|
|
87
|
-
this.stzhSubtitleClick.emit({
|
|
88
|
-
component: "stzh-servicecard"
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
};
|
|
92
|
-
this.starToggleClick = () => {
|
|
93
|
-
this.stzhStarClick.emit({
|
|
94
|
-
component: "stzh-servicecard",
|
|
95
|
-
starred: this.starred
|
|
96
|
-
});
|
|
97
|
-
};
|
|
98
|
-
this.actionClick = (action) => {
|
|
99
|
-
this.stzhActionClick.emit({
|
|
100
|
-
component: "stzh-servicecard",
|
|
101
|
-
action
|
|
102
|
-
});
|
|
103
|
-
};
|
|
104
|
-
this.arrowUpClick = () => {
|
|
105
|
-
const sortable = this.element.closest("stzh-sortable");
|
|
106
|
-
if (sortable) {
|
|
107
|
-
sortable.moveItem(this.element, "up");
|
|
108
|
-
}
|
|
109
|
-
};
|
|
110
|
-
this.arrowDownClick = () => {
|
|
111
|
-
const sortable = this.element.closest("stzh-sortable");
|
|
112
|
-
if (sortable) {
|
|
113
|
-
sortable.moveItem(this.element, "down");
|
|
114
|
-
}
|
|
115
|
-
};
|
|
116
|
-
}
|
|
117
|
-
handleResize() {
|
|
118
|
-
if (this.debounceResize) {
|
|
119
|
-
window.cancelAnimationFrame(this.debounceResize);
|
|
120
|
-
}
|
|
121
|
-
this.debounceResize = requestAnimationFrame(this.update);
|
|
122
|
-
}
|
|
123
|
-
subtitleWatcher(newValue) {
|
|
124
|
-
if (typeof newValue === "string") {
|
|
125
|
-
try {
|
|
126
|
-
this._subtitles = JSON.parse(newValue);
|
|
127
|
-
}
|
|
128
|
-
catch (err) {
|
|
129
|
-
this._subtitles = [newValue];
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
else {
|
|
133
|
-
this._subtitles = newValue;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
actionsWatcher(newValue) {
|
|
137
|
-
if (typeof newValue === "string") {
|
|
138
|
-
this._actions = JSON.parse(newValue);
|
|
139
|
-
}
|
|
140
|
-
else {
|
|
141
|
-
this._actions = newValue;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
async componentWillLoad() {
|
|
145
|
-
this.subtitleWatcher(this.subtitle);
|
|
146
|
-
this.actionsWatcher(this.actions);
|
|
147
|
-
if (!this.localization) {
|
|
148
|
-
this.localization = await translationUtils.fetchTranslations(this.element, "servicecard");
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
connectedCallback() {
|
|
152
|
-
this.observer = new MutationObserver(this.nodeChange);
|
|
153
|
-
this.observer.observe(this.element, {
|
|
154
|
-
childList: true,
|
|
155
|
-
subtree: true
|
|
156
|
-
});
|
|
157
|
-
}
|
|
158
|
-
disconnectedCallback() {
|
|
159
|
-
this.observer.disconnect();
|
|
160
|
-
}
|
|
161
|
-
render() {
|
|
162
|
-
const leftUsed = utils.hasSlot(this.element, "left");
|
|
163
|
-
const middleUsed = utils.hasSlot(this.element, "middle");
|
|
164
|
-
const rightUsed = utils.hasSlot(this.element, "right");
|
|
165
|
-
const classes = {
|
|
166
|
-
"stzh-servicecard": true,
|
|
167
|
-
"stzh-servicecard--has-left": leftUsed,
|
|
168
|
-
"stzh-servicecard--has-middle": middleUsed,
|
|
169
|
-
"stzh-servicecard--has-right": rightUsed,
|
|
170
|
-
"stzh-servicecard--has-subtitle": !!this.subtitle,
|
|
171
|
-
"stzh-servicecard--has-subtitle-interactive": !!this.subtitle && this.subtitleInteractive,
|
|
172
|
-
"stzh-servicecard--is-collapsed": this.collapsed,
|
|
173
|
-
"stzh-servicecard--is-starred": this.starred,
|
|
174
|
-
[`stzh-servicecard--middle-${this.middleVariant}`]: !!this.middleVariant && middleUsed,
|
|
175
|
-
[`stzh-servicecard--type-${this.type}`]: !!this.type,
|
|
176
|
-
};
|
|
177
|
-
const Subtitle = `${this.subtitleInteractive ? 'button' : 'span'}`;
|
|
178
|
-
return (index.h(index.Host, { role: "listitem", "aria-label": this.heading }, index.h("article", { ref: (el) => (this.mainElement = el), class: classes }, index.h("stzh-icon", { class: "stzh-servicecard__dnd", name: "drag" }), index.h("header", { ref: (el) => (this.headerElement = el), class: "stzh-servicecard__header", onClick: this.headerClick }, index.h("div", { ref: (el) => (this.headerLeftElement = el), class: "stzh-servicecard__header-left" }, index.h("div", { class: "stzh-servicecard__title-area", "data-dashboardmknlist": "title" }, index.h("h3", { class: "stzh-servicecard__title", "data-dashboardmknlist": "dnd" }, this.heading), this._subtitles.length > 0 &&
|
|
179
|
-
index.h(Subtitle, { class: "stzh-servicecard__subtitle", onClick: this.subtitleClick }, this._subtitles.map(subtitle => (index.h("span", { class: "stzh-servicecard__subtitle-text" }, subtitle)))))), index.h("div", { ref: (el) => (this.headerRightElement = el), class: "stzh-servicecard__header-right" }, index.h("div", { class: "stzh-servicecard__card-actions" }, this._actions.map(action => (index.h("stzh-button", { class: {
|
|
180
|
-
"stzh-servicecard__card-action": true,
|
|
181
|
-
"is-button": true,
|
|
182
|
-
"show-medium": !action.onlyCollapseText,
|
|
183
|
-
"hide-when-collapsed": !action.onlyCollapseText,
|
|
184
|
-
"hide-text-when-collapsed": action.onlyCollapseText
|
|
185
|
-
}, icon: action.icon, badge: action.badge, variant: "tertiary", size: "tiny", badgePosition: "icon", onClick: () => { this.actionClick(action); } }, index.h("span", { class: {
|
|
186
|
-
"show-medium": action.onlyCollapseText,
|
|
187
|
-
"hide-when-collapsed": action.onlyCollapseText
|
|
188
|
-
} }, action.label)))), this.starrable &&
|
|
189
|
-
index.h("stzh-tooltip", null, index.h("stzh-button", { class: "stzh-servicecard__card-action is-star", icon: this.starred ? "star-filled" : "star", variant: "tertiary", size: "tiny", iconOnly: true, onClick: this.starToggleClick }), index.h("div", { slot: "content" }, this.starred ? this.localization.actionRemove : this.localization.actionAdd)), index.h("stzh-popover", { label: this.localization.actionsPopoverLabel, placement: "bottom-end", class: "stzh-servicecard__card-action-popover" }, index.h("stzh-button", { class: "stzh-servicecard__card-action is-further", variant: "tertiary", size: "tiny", icon: "more-vertical", iconOnly: true }), index.h("stzh-menu", { slot: "content" }, this.starrable &&
|
|
190
|
-
index.h("stzh-menu-item", { icon: this.starred ? "star-filled" : "star", onClick: this.starToggleClick }, this.starred ? this.localization.actionRemove : this.localization.actionAdd), this._actions.filter(action => !action.onlyCollapseText).map(action => (index.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) &&
|
|
191
|
-
index.h(index.Fragment, null, index.h("stzh-menu-item", { icon: "arrow-up", onClick: this.arrowUpClick }, this.localization.actionMoveUp), index.h("stzh-menu-item", { icon: "arrow-down", onClick: this.arrowDownClick }, this.localization.actionMoveDown))))))), index.h("div", { class: "stzh-servicecard__columns hide-when-collapsed" }, index.h("div", { class: {
|
|
192
|
-
"stzh-servicecard__column": true,
|
|
193
|
-
"is-left": true
|
|
194
|
-
} }, index.h("slot", { name: "left" })), index.h("div", { class: {
|
|
195
|
-
"stzh-servicecard__column": true,
|
|
196
|
-
"is-middle": true,
|
|
197
|
-
"has-no-spacing": this.middleVerticalSpacing === "none"
|
|
198
|
-
} }, index.h("slot", { name: "middle" })), index.h("div", { class: {
|
|
199
|
-
"stzh-servicecard__column": true,
|
|
200
|
-
"is-right": true,
|
|
201
|
-
"has-no-spacing": this.rightVerticalSpacing === "none"
|
|
202
|
-
} }, index.h("slot", { name: "right" }))))));
|
|
203
|
-
}
|
|
204
|
-
get element() { return index.getElement(this); }
|
|
205
|
-
static get watchers() { return {
|
|
206
|
-
"subtitle": ["subtitleWatcher"],
|
|
207
|
-
"actions": ["actionsWatcher"]
|
|
208
|
-
}; }
|
|
209
|
-
};
|
|
210
|
-
StzhServicecard.style = stzhServicecardCss;
|
|
211
|
-
|
|
212
|
-
exports.stzh_servicecard = StzhServicecard;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
// IMPORTANT: Don't use this to check for a default slot when shadow DOM is not used
|
|
4
|
-
// https://github.com/shoelace-style/shoelace/blob/9f7bc29b5f13eda1beb1d4f9c952894a21e13322/src/components/card/card.tsx
|
|
5
|
-
// Determines whether an element has a slot. If name is specified, the function will look for a corresponding named
|
|
6
|
-
// slot, otherwise it will look for a "default" slot (e.g. a non-empty text node or an element with no slot attribute).
|
|
7
|
-
//
|
|
8
|
-
function hasSlot(el, name) {
|
|
9
|
-
// Look for a named slot
|
|
10
|
-
if (name) {
|
|
11
|
-
return el.querySelector(`[slot="${name}"]`) !== null;
|
|
12
|
-
}
|
|
13
|
-
// Look for a default slot
|
|
14
|
-
return Array.from(el.childNodes).some(node => {
|
|
15
|
-
if (node.nodeType === node.TEXT_NODE && node.textContent.trim() !== '') {
|
|
16
|
-
return true;
|
|
17
|
-
}
|
|
18
|
-
if (node.nodeType === node.ELEMENT_NODE) {
|
|
19
|
-
const el = node;
|
|
20
|
-
if (!el.hasAttribute('slot')) {
|
|
21
|
-
return true;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
return false;
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
function setPropsIfNull(element, attributes) {
|
|
28
|
-
Object.keys(attributes).forEach(attribute => {
|
|
29
|
-
if (element.getAttribute(attribute) === null) {
|
|
30
|
-
element[attribute] = attributes[attribute];
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
exports.hasSlot = hasSlot;
|
|
36
|
-
exports.setPropsIfNull = setPropsIfNull;
|