@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,6 +1,7 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
2
|
import scrollIntoView from "scroll-into-view-if-needed";
|
|
3
|
-
import Sortable from "
|
|
3
|
+
import Sortable from "../../libraries/sortable";
|
|
4
|
+
import { cloneElement } from "../../utils/utils";
|
|
4
5
|
import { fetchTranslations } from "../../utils/translation-utils";
|
|
5
6
|
const CLASS_ITEM = 'is-sortable-item';
|
|
6
7
|
const CLASS_GHOST = "is-ghost";
|
|
@@ -23,6 +24,11 @@ export class StzhSortable {
|
|
|
23
24
|
var _a;
|
|
24
25
|
return (_a = this.containerElement) === null || _a === void 0 ? void 0 : _a.firstElementChild;
|
|
25
26
|
};
|
|
27
|
+
/** Algorithm how the ghost element will be cloned */
|
|
28
|
+
this.ghostClone = (dragElement) => {
|
|
29
|
+
const [clonedElement] = cloneElement(dragElement);
|
|
30
|
+
return clonedElement;
|
|
31
|
+
};
|
|
26
32
|
/** Filtered elements that should prevent dragging inside the drag item elements */
|
|
27
33
|
this.filterElements = [
|
|
28
34
|
"[data-stzh-sortable-filtered]",
|
|
@@ -78,17 +84,13 @@ export class StzhSortable {
|
|
|
78
84
|
};
|
|
79
85
|
this.onKeydown = (event) => {
|
|
80
86
|
const currentTarget = event.currentTarget;
|
|
87
|
+
const target = event.target;
|
|
81
88
|
if (!this.getContainer() || this.disabled) {
|
|
82
89
|
return;
|
|
83
90
|
}
|
|
84
|
-
|
|
85
|
-
|| (event.key === "Tab"
|
|
86
|
-
&& this.selectedItem
|
|
87
|
-
&& this.selectedItem === event.currentTarget)) {
|
|
88
|
-
event.preventDefault();
|
|
89
|
-
}
|
|
90
|
-
const isFilteredElement = currentTarget.matches(this._filterElements.join(', '));
|
|
91
|
+
const isFilteredElement = target.matches(this._filterElements.join(', '));
|
|
91
92
|
if (event.key === " " && !isFilteredElement) {
|
|
93
|
+
event.preventDefault();
|
|
92
94
|
if (!this.selectedItem) {
|
|
93
95
|
this.selectedItem = currentTarget;
|
|
94
96
|
this.selectedItem.parentElement.classList.add(CLASS_PARENT_SELECTED);
|
|
@@ -104,6 +106,9 @@ export class StzhSortable {
|
|
|
104
106
|
this.resetActiveItem();
|
|
105
107
|
}
|
|
106
108
|
}
|
|
109
|
+
else if (event.key === "Tab" && this.selectedItem && this.selectedItem === event.currentTarget) {
|
|
110
|
+
event.preventDefault();
|
|
111
|
+
}
|
|
107
112
|
else if (event.key === "Escape" && this.selectedItem) {
|
|
108
113
|
this.resetItemOnBlur = false;
|
|
109
114
|
this.updateAriaLive(this.localization.canceled);
|
|
@@ -145,6 +150,7 @@ export class StzhSortable {
|
|
|
145
150
|
}
|
|
146
151
|
/** Move item */
|
|
147
152
|
async moveItem(item, direction) {
|
|
153
|
+
var _a;
|
|
148
154
|
if (!item
|
|
149
155
|
|| !item.nextElementSibling && direction === "down"
|
|
150
156
|
|| !item.previousElementSibling && direction === "up") {
|
|
@@ -159,8 +165,22 @@ export class StzhSortable {
|
|
|
159
165
|
}
|
|
160
166
|
this.updateAriaLive(this.localization.moved, item);
|
|
161
167
|
this.focusItem(item);
|
|
168
|
+
const currentIndex = Array.from((_a = item.parentElement) === null || _a === void 0 ? void 0 : _a.children).indexOf(item);
|
|
169
|
+
this.stzhUpdate.emit({
|
|
170
|
+
component: "stzh-sortable",
|
|
171
|
+
data: await this.toArray(),
|
|
172
|
+
item,
|
|
173
|
+
newIndex: currentIndex,
|
|
174
|
+
oldIndex: currentIndex + (direction === "up" ? 1 : -1)
|
|
175
|
+
});
|
|
162
176
|
this.resetItemOnBlur = true;
|
|
163
177
|
}
|
|
178
|
+
disabledWatcher() {
|
|
179
|
+
this.stzhDisable.emit({
|
|
180
|
+
component: "stzh-sortable",
|
|
181
|
+
disabled: this.disabled
|
|
182
|
+
});
|
|
183
|
+
}
|
|
164
184
|
filterElementsWatcher(newValue) {
|
|
165
185
|
if (typeof newValue === "string") {
|
|
166
186
|
this._filterElements = JSON.parse(newValue);
|
|
@@ -260,6 +280,7 @@ export class StzhSortable {
|
|
|
260
280
|
delay: 200,
|
|
261
281
|
delayOnTouchOnly: true,
|
|
262
282
|
disabled: this.disabled,
|
|
283
|
+
ghostClone: this.ghostClone,
|
|
263
284
|
// changed sorting within list
|
|
264
285
|
onUpdate: this.updated
|
|
265
286
|
});
|
|
@@ -378,6 +399,29 @@ export class StzhSortable {
|
|
|
378
399
|
},
|
|
379
400
|
"defaultValue": "() => {\n return this.containerElement?.firstElementChild;\n }"
|
|
380
401
|
},
|
|
402
|
+
"ghostClone": {
|
|
403
|
+
"type": "unknown",
|
|
404
|
+
"mutable": false,
|
|
405
|
+
"complexType": {
|
|
406
|
+
"original": "Function",
|
|
407
|
+
"resolved": "Function",
|
|
408
|
+
"references": {
|
|
409
|
+
"Function": {
|
|
410
|
+
"location": "global"
|
|
411
|
+
},
|
|
412
|
+
"HTMLElement": {
|
|
413
|
+
"location": "global"
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
},
|
|
417
|
+
"required": false,
|
|
418
|
+
"optional": false,
|
|
419
|
+
"docs": {
|
|
420
|
+
"tags": [],
|
|
421
|
+
"text": "Algorithm how the ghost element will be cloned"
|
|
422
|
+
},
|
|
423
|
+
"defaultValue": "(dragElement: HTMLElement) => {\n const [clonedElement] = cloneElement(dragElement);\n return clonedElement;\n }"
|
|
424
|
+
},
|
|
381
425
|
"filterElements": {
|
|
382
426
|
"type": "string",
|
|
383
427
|
"mutable": false,
|
|
@@ -419,6 +463,26 @@ export class StzhSortable {
|
|
|
419
463
|
}
|
|
420
464
|
}
|
|
421
465
|
}
|
|
466
|
+
}, {
|
|
467
|
+
"method": "stzhDisable",
|
|
468
|
+
"name": "stzhDisable",
|
|
469
|
+
"bubbles": true,
|
|
470
|
+
"cancelable": true,
|
|
471
|
+
"composed": true,
|
|
472
|
+
"docs": {
|
|
473
|
+
"tags": [],
|
|
474
|
+
"text": "Disable event"
|
|
475
|
+
},
|
|
476
|
+
"complexType": {
|
|
477
|
+
"original": "StzhSortableDisableEvent",
|
|
478
|
+
"resolved": "{ component: \"stzh-sortable\"; disabled: boolean; }",
|
|
479
|
+
"references": {
|
|
480
|
+
"StzhSortableDisableEvent": {
|
|
481
|
+
"location": "import",
|
|
482
|
+
"path": "../../index"
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
}
|
|
422
486
|
}];
|
|
423
487
|
}
|
|
424
488
|
static get methods() {
|
|
@@ -494,6 +558,9 @@ export class StzhSortable {
|
|
|
494
558
|
static get elementRef() { return "element"; }
|
|
495
559
|
static get watchers() {
|
|
496
560
|
return [{
|
|
561
|
+
"propName": "disabled",
|
|
562
|
+
"methodName": "disabledWatcher"
|
|
563
|
+
}, {
|
|
497
564
|
"propName": "filterElements",
|
|
498
565
|
"methodName": "filterElementsWatcher"
|
|
499
566
|
}];
|
|
@@ -37,6 +37,8 @@ export class StzhTooltip {
|
|
|
37
37
|
this.content = "";
|
|
38
38
|
/** Default placement of tooltip relative to trigger element */
|
|
39
39
|
this.placement = "bottom";
|
|
40
|
+
/** Position strategy */
|
|
41
|
+
this.strategy = "absolute";
|
|
40
42
|
/** Shifting of tooltip content */
|
|
41
43
|
this.skidding = 0;
|
|
42
44
|
/** Distance from tooltip content to trigger (default: arrow height + 8px = 16) */
|
|
@@ -61,7 +63,7 @@ export class StzhTooltip {
|
|
|
61
63
|
return;
|
|
62
64
|
}
|
|
63
65
|
const { x = 0, y = 0, strategy = "absolute", placement, middlewareData } = await computePosition(this.triggerElement.firstElementChild, this.contentElement, {
|
|
64
|
-
|
|
66
|
+
strategy: this.strategy,
|
|
65
67
|
placement: this.placement,
|
|
66
68
|
middleware: [
|
|
67
69
|
offset({
|
|
@@ -395,6 +397,24 @@ export class StzhTooltip {
|
|
|
395
397
|
"reflect": false,
|
|
396
398
|
"defaultValue": "\"bottom\""
|
|
397
399
|
},
|
|
400
|
+
"strategy": {
|
|
401
|
+
"type": "string",
|
|
402
|
+
"mutable": false,
|
|
403
|
+
"complexType": {
|
|
404
|
+
"original": "\"absolute\" | \"fixed\"",
|
|
405
|
+
"resolved": "\"absolute\" | \"fixed\"",
|
|
406
|
+
"references": {}
|
|
407
|
+
},
|
|
408
|
+
"required": false,
|
|
409
|
+
"optional": false,
|
|
410
|
+
"docs": {
|
|
411
|
+
"tags": [],
|
|
412
|
+
"text": "Position strategy"
|
|
413
|
+
},
|
|
414
|
+
"attribute": "strategy",
|
|
415
|
+
"reflect": false,
|
|
416
|
+
"defaultValue": "\"absolute\""
|
|
417
|
+
},
|
|
398
418
|
"skidding": {
|
|
399
419
|
"type": "number",
|
|
400
420
|
"mutable": false,
|
|
@@ -386,6 +386,9 @@ stzh-upload *::after {
|
|
|
386
386
|
.stzh-upload.dz-started .stzh-upload__clickarea {
|
|
387
387
|
margin-bottom: var(--stzh-space-small);
|
|
388
388
|
}
|
|
389
|
+
.stzh-upload:has(.stzh-upload__preview) .stzh-upload__clickarea {
|
|
390
|
+
margin-bottom: var(--stzh-space-small);
|
|
391
|
+
}
|
|
389
392
|
.stzh-upload.dz-drag-hover .stzh-upload__clickarea {
|
|
390
393
|
background-color: var(--stzh-color-primary4);
|
|
391
394
|
}
|
|
@@ -18,7 +18,11 @@ let uploadCounter = 0;
|
|
|
18
18
|
*/
|
|
19
19
|
export class StzhUpload {
|
|
20
20
|
constructor() {
|
|
21
|
-
|
|
21
|
+
/**
|
|
22
|
+
* Initially pre existing files (e.g. already uploaded by the user).
|
|
23
|
+
* Array of objects that must at least include `name` and `size` attribute:
|
|
24
|
+
* `[{"name":"file1.txt", "size": 12345}, {"name":"file2.txt", "size": 12345}]`
|
|
25
|
+
*/
|
|
22
26
|
this.existingFiles = [];
|
|
23
27
|
this._existingFiles = [];
|
|
24
28
|
/** Label */
|
|
@@ -224,6 +228,7 @@ export class StzhUpload {
|
|
|
224
228
|
if (this.dropzone) {
|
|
225
229
|
return;
|
|
226
230
|
}
|
|
231
|
+
const self = this;
|
|
227
232
|
this.dropzone = new Dropzone(this.dropzoneElement, {
|
|
228
233
|
url: this.url,
|
|
229
234
|
method: this.method,
|
|
@@ -258,7 +263,35 @@ export class StzhUpload {
|
|
|
258
263
|
dictResponseError: this.localization.responseError,
|
|
259
264
|
dictInvalidFileType: this.localization.invalidFileType,
|
|
260
265
|
dictFileTooBig: this.localization.fileTooBig,
|
|
261
|
-
|
|
266
|
+
// When the upload is finished, either with success or an error.
|
|
267
|
+
// Taken from https://github.com/dropzone/dropzone/blob/v5.9.3/src/options.js#L752
|
|
268
|
+
complete(file) {
|
|
269
|
+
for (let node of file.previewElement.querySelectorAll("[data-dz-remove]")) {
|
|
270
|
+
node.setAttribute('title', this.options.dictRemoveFile);
|
|
271
|
+
node.setAttribute('aria-label', this.options.dictRemoveFile);
|
|
272
|
+
}
|
|
273
|
+
// move file uploads with errors to another element, so they are grouped together
|
|
274
|
+
if (file.status === "error") {
|
|
275
|
+
self.errorsElement.appendChild(file.previewElement);
|
|
276
|
+
}
|
|
277
|
+
if (file._removeLink) {
|
|
278
|
+
file._removeLink.innerHTML = this.options.dictRemoveFile;
|
|
279
|
+
}
|
|
280
|
+
if (file.previewElement) {
|
|
281
|
+
return file.previewElement.classList.add("dz-complete");
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
// Called whenever a file is removed.
|
|
285
|
+
// Taken fom https://github.com/dropzone/dropzone/blob/v5.9.3/src/options.js#L649
|
|
286
|
+
removedfile(file) {
|
|
287
|
+
if (file.previewElement != null && file.previewElement.parentNode != null) {
|
|
288
|
+
file.previewElement.parentNode.removeChild(file.previewElement);
|
|
289
|
+
}
|
|
290
|
+
// set focus to upload
|
|
291
|
+
self.buttonElement.setFocus();
|
|
292
|
+
return this._updateMaxFilesReachedClass();
|
|
293
|
+
},
|
|
294
|
+
error(file, message, xhr) {
|
|
262
295
|
if (file.previewElement) {
|
|
263
296
|
file.previewElement.classList.add("dz-error");
|
|
264
297
|
if (typeof message !== "string" && message.error) {
|
|
@@ -266,19 +299,19 @@ export class StzhUpload {
|
|
|
266
299
|
}
|
|
267
300
|
else if (xhr) {
|
|
268
301
|
if (xhr.status === 401 || xhr.status === 403) {
|
|
269
|
-
message =
|
|
302
|
+
message = self.localization.accessError;
|
|
270
303
|
}
|
|
271
304
|
else if (xhr.status === 413) {
|
|
272
|
-
message =
|
|
305
|
+
message = self.localization.fileTooBigServer;
|
|
273
306
|
}
|
|
274
307
|
else if (xhr.status === 415) {
|
|
275
|
-
message =
|
|
308
|
+
message = self.localization.invalidFileType;
|
|
276
309
|
}
|
|
277
310
|
else if (xhr.status >= 500) {
|
|
278
|
-
message =
|
|
311
|
+
message = self.localization.serverError;
|
|
279
312
|
}
|
|
280
313
|
else {
|
|
281
|
-
const defaultError =
|
|
314
|
+
const defaultError = self.localization.responseError
|
|
282
315
|
.replace("{{statusCode}}", xhr.status);
|
|
283
316
|
message = defaultError;
|
|
284
317
|
}
|
|
@@ -323,7 +356,7 @@ export class StzhUpload {
|
|
|
323
356
|
</div>
|
|
324
357
|
</div>
|
|
325
358
|
<div class="stzh-upload__actions">
|
|
326
|
-
<button class="stzh-upload__delete" data-dz-remove title="${this.localization.cancelUpload}">
|
|
359
|
+
<button class="stzh-upload__delete" data-dz-remove aria-label="${this.localization.cancelUpload}" title="${this.localization.cancelUpload}">
|
|
327
360
|
<stzh-icon class="stzh-upload__delete-icon" name="delete"></stzh-icon>
|
|
328
361
|
<stzh-icon class="stzh-upload__delete-icon-error" name="close"></stzh-icon>
|
|
329
362
|
</button>
|
|
@@ -420,7 +453,7 @@ export class StzhUpload {
|
|
|
420
453
|
"stzh-upload--has-error": errorUsed,
|
|
421
454
|
"stzh-upload--has-instructions": !!this.description || !!this.localization.description
|
|
422
455
|
};
|
|
423
|
-
return (h(Host, null, h("div", { class: classes, ref: (el) => (this.dropzoneElement = el) }, this.label && h("div", { class: "stzh-upload__label" }, this.label), h("div", { class: "stzh-upload__clickarea", ref: (el) => (this.clickareaElement = el) }, h("div", { class: "stzh-upload__instructions", id: `${this.uploadId}-instruction` }, this.description ? this.description : this.localization.description), h("stzh-button", { size: "small", class: "stzh-upload__button", "aria-describedby": `${this.uploadId}-instruction ${this.uploadId}-description`, disabled: this.disabled }, this.button ? this.button : this.localization.button)), h(StzhInputDescription, { classPrefix: "stzh-upload", id: `${this.uploadId}-description`, error: this._error }))));
|
|
456
|
+
return (h(Host, null, h("div", { class: classes, ref: (el) => (this.dropzoneElement = el) }, this.label && h("div", { class: "stzh-upload__label" }, this.label), h("div", { class: "stzh-upload__clickarea", ref: (el) => (this.clickareaElement = el) }, h("div", { class: "stzh-upload__instructions", id: `${this.uploadId}-instruction` }, this.description ? this.description : this.localization.description), h("stzh-button", { size: "small", class: "stzh-upload__button", ref: (el) => (this.buttonElement = el), "aria-describedby": `${this.uploadId}-instruction ${this.uploadId}-description`, disabled: this.disabled }, this.button ? this.button : this.localization.button)), h(StzhInputDescription, { classPrefix: "stzh-upload", id: `${this.uploadId}-description`, error: this._error }), h("div", { class: "stzh-upload__errors", ref: (el) => (this.errorsElement = el) }))));
|
|
424
457
|
}
|
|
425
458
|
static get is() { return "stzh-upload"; }
|
|
426
459
|
static get originalStyleUrls() {
|
|
@@ -452,7 +485,7 @@ export class StzhUpload {
|
|
|
452
485
|
"optional": false,
|
|
453
486
|
"docs": {
|
|
454
487
|
"tags": [],
|
|
455
|
-
"text": ""
|
|
488
|
+
"text": "Initially pre existing files (e.g. already uploaded by the user).\nArray of objects that must at least include `name` and `size` attribute:\n`[{\"name\":\"file1.txt\", \"size\": 12345}, {\"name\":\"file2.txt\", \"size\": 12345}]`"
|
|
456
489
|
},
|
|
457
490
|
"attribute": "existing-files",
|
|
458
491
|
"reflect": false,
|
|
@@ -11,20 +11,22 @@ export default {
|
|
|
11
11
|
actions: {
|
|
12
12
|
handles: [
|
|
13
13
|
'stzhFileAdded',
|
|
14
|
-
'
|
|
15
|
-
'
|
|
14
|
+
'stzhFilesAdded',
|
|
15
|
+
'stzhFileRemoved',
|
|
16
|
+
'stzhSending',
|
|
17
|
+
'stzhSendingMultiple',
|
|
16
18
|
'stzhProcessing',
|
|
17
19
|
'stzhProcessingMultiple',
|
|
18
20
|
'stzhProgress',
|
|
19
21
|
'stzhProgressTotal',
|
|
20
|
-
'
|
|
21
|
-
'
|
|
22
|
+
'stzhCanceled',
|
|
23
|
+
'stzhCanceledMultiple',
|
|
22
24
|
'stzhSuccess',
|
|
23
25
|
'stzhSuccessMultiple',
|
|
24
26
|
'stzhError',
|
|
25
27
|
'stzhErrorMultiple',
|
|
26
28
|
'stzhComplete',
|
|
27
|
-
'stzhCompleteMultiple'
|
|
29
|
+
'stzhCompleteMultiple'
|
|
28
30
|
]
|
|
29
31
|
},
|
|
30
32
|
docs: {
|
|
@@ -62,8 +64,8 @@ ExistingFiles.args = {
|
|
|
62
64
|
description: 'To upload files drag & drop them in this area. Allowed file formats: [txt, pdf, docx] (max. 25 MB)',
|
|
63
65
|
'accepted-files': '.txt,.pdf,.docs',
|
|
64
66
|
'existing-files': `[
|
|
65
|
-
{ "name": "Filename.pdf", "size": 12345 },
|
|
66
|
-
{ "name": "Filename2.pdf", "size": 22345 },
|
|
67
|
-
{ "name": "Filename3.pdf", "size": 32345 }
|
|
67
|
+
{ "name": "Filename.pdf", "size": 12345, "id": "upload-1" },
|
|
68
|
+
{ "name": "Filename2.pdf", "size": 22345, "id": "upload-2" },
|
|
69
|
+
{ "name": "Filename3.pdf", "size": 32345, "id": "upload-3" }
|
|
68
70
|
]`
|
|
69
71
|
};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { name as
|
|
1
|
+
import { name as packageNameScoped } from '../../../../package.json';
|
|
2
|
+
|
|
3
|
+
const packageName = packageNameScoped.substring(packageNameScoped.indexOf('/')+1);
|
|
2
4
|
|
|
3
5
|
/**
|
|
4
6
|
* Execute setFocus method if it exists
|