@oiz/stzh-components 1.5.0-alpha → 2.0.0-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{app-globals-3b6f75bd.js → app-globals-58a084a9.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/stzh-actionset.cjs.entry.js +164 -0
- package/dist/cjs/stzh-badge_3.cjs.entry.js +24 -3
- package/dist/cjs/stzh-card-list.cjs.entry.js +79 -0
- package/dist/cjs/stzh-card.cjs.entry.js +294 -0
- package/dist/cjs/stzh-chip-select.cjs.entry.js +1 -1
- package/dist/cjs/stzh-components.cjs.js +2 -2
- package/dist/cjs/stzh-cspace.cjs.entry.js +1 -1
- package/dist/cjs/stzh-datalist.cjs.entry.js +74 -0
- package/dist/cjs/stzh-datepicker_4.cjs.entry.js +5 -4
- package/dist/cjs/stzh-dialog.cjs.entry.js +1 -1
- package/dist/cjs/stzh-dropdown.cjs.entry.js +4 -6
- package/dist/cjs/stzh-ghettobox_2.cjs.entry.js +1 -1
- package/dist/cjs/stzh-icon-sprite.cjs.entry.js +1 -1
- package/dist/cjs/stzh-input.cjs.entry.js +3 -4
- package/dist/cjs/stzh-link.cjs.entry.js +1 -1
- package/dist/cjs/stzh-overlay.cjs.entry.js +1 -1
- package/dist/cjs/stzh-popover.cjs.entry.js +30 -28
- package/dist/cjs/stzh-portal-mitwirken.cjs.entry.js +1 -1
- package/dist/cjs/stzh-sortable.cjs.entry.js +17 -0
- package/dist/cjs/stzh-tooltip.cjs.entry.js +3 -1
- package/dist/collection/assets/i18n/de.json +7 -2
- package/dist/collection/assets/i18n/en.json +7 -2
- package/dist/collection/assets/icons/mono/recycling-outline.svg +11 -0
- package/dist/collection/assets/icons/mono/recycling.svg +10 -0
- package/dist/collection/assets/icons/mono/smartphone.svg +10 -0
- package/dist/collection/assets/icons/mono/target.svg +11 -0
- package/dist/collection/collection-manifest.json +4 -2
- package/dist/collection/components/stzh-actionset/stzh-actionset.css +147 -0
- package/dist/collection/components/stzh-actionset/stzh-actionset.js +351 -0
- package/dist/collection/components/{stzh-servicecard-list/stzh-servicecard-list.localization.js → stzh-actionset/stzh-actionset.localization.js} +0 -0
- package/dist/collection/components/stzh-actionset/stzh-actionset.stories.js +72 -0
- package/dist/collection/components/stzh-button/stzh-button.css +66 -0
- package/dist/collection/components/stzh-button/stzh-button.js +98 -4
- package/dist/collection/components/stzh-button/stzh-button.stories.js +1 -1
- package/dist/collection/components/stzh-card/stzh-card.css +408 -0
- package/dist/collection/components/{stzh-servicecard/stzh-servicecard.js → stzh-card/stzh-card.js} +283 -126
- package/dist/collection/components/stzh-card/stzh-card.localization.js +1 -0
- package/dist/collection/components/stzh-card/stzh-card.stories.js +137 -0
- package/dist/collection/components/{stzh-servicecard-list/stzh-servicecard-list.css → stzh-card-list/stzh-card-list.css} +9 -9
- package/dist/collection/components/{stzh-servicecard-list/stzh-servicecard-list.js → stzh-card-list/stzh-card-list.js} +46 -18
- package/dist/collection/components/{stzh-servicecard/stzh-servicecard.localization.js → stzh-card-list/stzh-card-list.localization.js} +0 -0
- package/dist/collection/components/stzh-card-list/stzh-card-list.stories.js +132 -0
- package/dist/collection/components/stzh-chip-select/stzh-chip-select.js +1 -1
- package/dist/collection/components/stzh-cspace/stzh-cspace.css +13 -6
- package/dist/collection/components/stzh-datalist/stzh-datalist.css +621 -0
- package/dist/collection/components/stzh-datalist/stzh-datalist.js +237 -0
- package/dist/collection/components/stzh-datalist/stzh-datalist.stories.js +66 -0
- package/dist/collection/components/stzh-datepicker/stzh-datepicker.js +1 -21
- package/dist/collection/components/stzh-dialog/stzh-dialog.css +2 -1
- package/dist/collection/components/stzh-dropdown/stzh-dropdown.css +3 -3
- package/dist/collection/components/stzh-dropdown/stzh-dropdown.js +7 -26
- package/dist/collection/components/stzh-icon-sprite/assets/svgsprites/symbol/sprite.symbol.html +63 -11
- package/dist/collection/components/stzh-icon-sprite/assets/svgsprites/symbol/svg/sprite.symbol.svg +1 -1
- package/dist/collection/components/stzh-input/stzh-input.css +5 -5
- package/dist/collection/components/stzh-input/stzh-input.js +2 -23
- package/dist/collection/components/stzh-link/stzh-link.css +5 -0
- package/dist/collection/components/stzh-link/stzh-link.js +2 -2
- package/dist/collection/components/stzh-overlay/stzh-overlay.css +5 -1
- package/dist/collection/components/stzh-popover/stzh-popover.js +52 -32
- package/dist/collection/components/stzh-portal-mitwirken/stzh-portal-mitwirken.css +292 -0
- package/dist/collection/components/stzh-radio/stzh-radio.css +2 -2
- package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.js +4 -3
- package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.stories.js +3 -0
- package/dist/collection/components/stzh-richtext/stzh-richtext.css +145 -0
- package/dist/collection/components/stzh-richtext/stzh-richtext.stories.js +19 -0
- package/dist/collection/components/stzh-sortable/stzh-sortable.js +38 -0
- package/dist/collection/components/stzh-sortable/stzh-sortable.stories.js +1 -1
- package/dist/collection/components/stzh-tooltip/stzh-tooltip.js +21 -1
- package/dist/collection/pages/meinkonto.stories.js +93 -88
- package/dist/components/index.d.ts +4 -2
- package/dist/components/index.js +5 -3
- package/dist/components/{stzh-servicecard.d.ts → stzh-actionset.d.ts} +4 -4
- package/dist/components/stzh-actionset.js +6 -0
- package/dist/components/stzh-actionset2.js +227 -0
- package/dist/components/stzh-button2.js +27 -3
- package/dist/components/{stzh-servicecard-list.d.ts → stzh-card-list.d.ts} +4 -4
- package/dist/components/stzh-card-list.js +123 -0
- package/dist/components/stzh-card.d.ts +11 -0
- package/dist/components/stzh-card.js +376 -0
- package/dist/components/stzh-chip-select.js +1 -1
- package/dist/components/stzh-cspace.js +1 -1
- package/dist/components/stzh-datalist.d.ts +11 -0
- package/dist/components/stzh-datalist.js +113 -0
- package/dist/components/stzh-datepicker2.js +1 -2
- package/dist/components/stzh-dialog.js +1 -1
- package/dist/components/stzh-dropdown2.js +4 -7
- package/dist/components/stzh-icon-sprite.js +1 -1
- package/dist/components/stzh-input2.js +3 -5
- package/dist/components/stzh-link2.js +1 -1
- package/dist/components/stzh-overlay.js +1 -1
- package/dist/components/stzh-popover2.js +31 -28
- package/dist/components/stzh-portal-mitwirken.js +1 -1
- package/dist/components/stzh-radio2.js +1 -1
- package/dist/components/stzh-radiogroup2.js +3 -2
- package/dist/components/stzh-richtext2.js +1 -1
- package/dist/components/stzh-sortable2.js +17 -0
- package/dist/components/stzh-tooltip2.js +4 -1
- package/dist/esm/{app-globals-c42494e9.js → app-globals-6b6ff890.js} +1 -1
- package/dist/esm/{index-0e6d34c6.js → index-84f71a43.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/stzh-accordion-item.entry.js +1 -1
- package/dist/esm/stzh-accordion.entry.js +1 -1
- package/dist/esm/stzh-actions.entry.js +1 -1
- package/dist/esm/stzh-actionset.entry.js +160 -0
- package/dist/esm/stzh-appnav.entry.js +1 -1
- package/dist/esm/stzh-appointments.entry.js +1 -1
- package/dist/esm/stzh-badge_3.entry.js +25 -4
- package/dist/esm/stzh-calendar.entry.js +1 -1
- package/dist/esm/stzh-card-list.entry.js +75 -0
- package/dist/esm/stzh-card.entry.js +290 -0
- package/dist/esm/stzh-cell.entry.js +1 -1
- package/dist/esm/stzh-checkbox.entry.js +2 -2
- package/dist/esm/stzh-checkboxgroup.entry.js +2 -2
- package/dist/esm/stzh-chip-select.entry.js +2 -2
- package/dist/esm/stzh-chip.entry.js +1 -1
- package/dist/esm/stzh-components.js +3 -3
- package/dist/esm/stzh-container.entry.js +1 -1
- package/dist/esm/stzh-cspace.entry.js +2 -2
- package/dist/esm/stzh-datalist.entry.js +70 -0
- package/dist/esm/stzh-datamessagelist-item.entry.js +1 -1
- package/dist/esm/stzh-datamessagelist.entry.js +1 -1
- package/dist/esm/stzh-datatable.entry.js +1 -1
- package/dist/esm/stzh-datepicker_4.entry.js +7 -6
- package/dist/esm/stzh-dialog.entry.js +2 -2
- package/dist/esm/stzh-dropdown.entry.js +6 -8
- package/dist/esm/stzh-fieldset.entry.js +1 -1
- package/dist/esm/stzh-figure.entry.js +1 -1
- package/dist/esm/stzh-flyingfocus.entry.js +1 -1
- package/dist/esm/stzh-footer.entry.js +1 -1
- package/dist/esm/stzh-ghettobox_2.entry.js +2 -2
- package/dist/esm/stzh-header.entry.js +1 -1
- package/dist/esm/stzh-heading.entry.js +1 -1
- package/dist/esm/stzh-hr.entry.js +1 -1
- package/dist/esm/stzh-hspace.entry.js +1 -1
- package/dist/esm/stzh-icon-sprite.entry.js +2 -2
- package/dist/esm/{stzh-input-description-da7b0e98.js → stzh-input-description-8c477f97.js} +1 -1
- package/dist/esm/stzh-input.entry.js +5 -6
- package/dist/esm/stzh-link.entry.js +2 -2
- package/dist/esm/stzh-list-item.entry.js +1 -1
- package/dist/esm/stzh-list.entry.js +1 -1
- package/dist/esm/stzh-loader.entry.js +1 -1
- package/dist/esm/stzh-loadingbar.entry.js +1 -1
- package/dist/esm/stzh-menu_2.entry.js +1 -1
- package/dist/esm/stzh-message.entry.js +1 -1
- package/dist/esm/stzh-metanav.entry.js +1 -1
- package/dist/esm/stzh-overlay.entry.js +2 -2
- package/dist/esm/stzh-page-skiplinks.entry.js +1 -1
- package/dist/esm/stzh-pagetitle.entry.js +1 -1
- package/dist/esm/stzh-popover.entry.js +31 -29
- package/dist/esm/stzh-portal-mitwirken.entry.js +2 -2
- package/dist/esm/stzh-progressbar-item.entry.js +1 -1
- package/dist/esm/stzh-progressbar.entry.js +1 -1
- package/dist/esm/stzh-readspeaker.entry.js +1 -1
- package/dist/esm/stzh-row.entry.js +1 -1
- package/dist/esm/stzh-saptcha.entry.js +1 -1
- package/dist/esm/stzh-section.entry.js +1 -1
- package/dist/esm/stzh-skiplink.entry.js +1 -1
- package/dist/esm/stzh-sortable.entry.js +18 -1
- package/dist/esm/stzh-status.entry.js +1 -1
- package/dist/esm/stzh-table.entry.js +1 -1
- package/dist/esm/stzh-toggle.entry.js +2 -2
- package/dist/esm/stzh-tooltip.entry.js +4 -2
- package/dist/esm/stzh-upload.entry.js +2 -2
- package/dist/esm/stzh-vbz-linechip.entry.js +1 -1
- package/dist/esm/stzh-vbz-majorticker.entry.js +1 -1
- package/dist/esm/stzh-vbz-ticker.entry.js +1 -1
- package/dist/esm/stzh-visuallyhidden.entry.js +1 -1
- package/dist/esm/stzh-vspace.entry.js +1 -1
- package/dist/esm-es5/app-globals-6b6ff890.js +1 -0
- package/dist/esm-es5/{index-0e6d34c6.js → index-84f71a43.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/stzh-accordion-item.entry.js +1 -1
- package/dist/esm-es5/stzh-accordion.entry.js +1 -1
- package/dist/esm-es5/stzh-actions.entry.js +1 -1
- package/dist/esm-es5/stzh-actionset.entry.js +1 -0
- package/dist/esm-es5/stzh-appnav.entry.js +1 -1
- package/dist/esm-es5/stzh-appointments.entry.js +1 -1
- package/dist/esm-es5/stzh-badge_3.entry.js +1 -1
- package/dist/esm-es5/stzh-calendar.entry.js +1 -1
- package/dist/esm-es5/stzh-card-list.entry.js +1 -0
- package/dist/esm-es5/stzh-card.entry.js +1 -0
- package/dist/esm-es5/stzh-cell.entry.js +1 -1
- package/dist/esm-es5/stzh-checkbox.entry.js +1 -1
- package/dist/esm-es5/stzh-checkboxgroup.entry.js +1 -1
- package/dist/esm-es5/stzh-chip-select.entry.js +1 -1
- package/dist/esm-es5/stzh-chip.entry.js +1 -1
- package/dist/esm-es5/stzh-components.js +1 -1
- package/dist/esm-es5/stzh-container.entry.js +1 -1
- package/dist/esm-es5/stzh-cspace.entry.js +1 -1
- package/dist/esm-es5/stzh-datalist.entry.js +1 -0
- package/dist/esm-es5/stzh-datamessagelist-item.entry.js +1 -1
- package/dist/esm-es5/stzh-datamessagelist.entry.js +1 -1
- package/dist/esm-es5/stzh-datatable.entry.js +1 -1
- package/dist/esm-es5/stzh-datepicker_4.entry.js +1 -1
- package/dist/esm-es5/stzh-dialog.entry.js +1 -1
- package/dist/esm-es5/stzh-dropdown.entry.js +1 -1
- package/dist/esm-es5/stzh-fieldset.entry.js +1 -1
- package/dist/esm-es5/stzh-figure.entry.js +1 -1
- package/dist/esm-es5/stzh-flyingfocus.entry.js +1 -1
- package/dist/esm-es5/stzh-footer.entry.js +1 -1
- package/dist/esm-es5/stzh-ghettobox_2.entry.js +1 -1
- package/dist/esm-es5/stzh-header.entry.js +1 -1
- package/dist/esm-es5/stzh-heading.entry.js +1 -1
- package/dist/esm-es5/stzh-hr.entry.js +1 -1
- package/dist/esm-es5/stzh-hspace.entry.js +1 -1
- package/dist/esm-es5/stzh-icon-sprite.entry.js +1 -1
- package/dist/esm-es5/{stzh-input-description-da7b0e98.js → stzh-input-description-8c477f97.js} +1 -1
- package/dist/esm-es5/stzh-input.entry.js +1 -1
- package/dist/esm-es5/stzh-link.entry.js +1 -1
- package/dist/esm-es5/stzh-list-item.entry.js +1 -1
- package/dist/esm-es5/stzh-list.entry.js +1 -1
- package/dist/esm-es5/stzh-loader.entry.js +1 -1
- package/dist/esm-es5/stzh-loadingbar.entry.js +1 -1
- package/dist/esm-es5/stzh-menu_2.entry.js +1 -1
- package/dist/esm-es5/stzh-message.entry.js +1 -1
- package/dist/esm-es5/stzh-metanav.entry.js +1 -1
- package/dist/esm-es5/stzh-overlay.entry.js +1 -1
- package/dist/esm-es5/stzh-page-skiplinks.entry.js +1 -1
- package/dist/esm-es5/stzh-pagetitle.entry.js +1 -1
- package/dist/esm-es5/stzh-popover.entry.js +1 -1
- package/dist/esm-es5/stzh-portal-mitwirken.entry.js +1 -1
- package/dist/esm-es5/stzh-progressbar-item.entry.js +1 -1
- package/dist/esm-es5/stzh-progressbar.entry.js +1 -1
- package/dist/esm-es5/stzh-readspeaker.entry.js +1 -1
- package/dist/esm-es5/stzh-row.entry.js +1 -1
- package/dist/esm-es5/stzh-saptcha.entry.js +1 -1
- package/dist/esm-es5/stzh-section.entry.js +1 -1
- package/dist/esm-es5/stzh-skiplink.entry.js +1 -1
- package/dist/esm-es5/stzh-sortable.entry.js +2 -2
- package/dist/esm-es5/stzh-status.entry.js +1 -1
- package/dist/esm-es5/stzh-table.entry.js +1 -1
- package/dist/esm-es5/stzh-toggle.entry.js +1 -1
- package/dist/esm-es5/stzh-tooltip.entry.js +1 -1
- package/dist/esm-es5/stzh-upload.entry.js +1 -1
- package/dist/esm-es5/stzh-vbz-linechip.entry.js +1 -1
- package/dist/esm-es5/stzh-vbz-majorticker.entry.js +1 -1
- package/dist/esm-es5/stzh-vbz-ticker.entry.js +1 -1
- package/dist/esm-es5/stzh-visuallyhidden.entry.js +1 -1
- package/dist/esm-es5/stzh-vspace.entry.js +1 -1
- package/dist/stzh-components/assets/i18n/de.json +7 -2
- package/dist/stzh-components/assets/i18n/en.json +7 -2
- package/dist/stzh-components/assets/icons/mono/recycling-outline.svg +11 -0
- package/dist/stzh-components/assets/icons/mono/recycling.svg +10 -0
- package/dist/stzh-components/assets/icons/mono/smartphone.svg +10 -0
- package/dist/stzh-components/assets/icons/mono/target.svg +11 -0
- package/dist/stzh-components/assets/svgsprites/symbol/sprite.symbol.html +63 -11
- package/dist/stzh-components/assets/svgsprites/symbol/svg/sprite.symbol.svg +1 -1
- package/dist/stzh-components/{p-32988d74.entry.js → p-001b7d10.entry.js} +1 -1
- package/dist/stzh-components/{p-0837657c.entry.js → p-08a564af.entry.js} +1 -1
- package/dist/stzh-components/{p-fd16e20e.system.entry.js → p-0b8de542.system.entry.js} +1 -1
- package/dist/stzh-components/{p-8db4279d.system.entry.js → p-0bbbbe85.system.entry.js} +1 -1
- package/dist/stzh-components/p-0d5522dc.system.entry.js +1 -0
- package/dist/stzh-components/{p-33d033a3.system.entry.js → p-0efe125f.system.entry.js} +1 -1
- package/dist/stzh-components/{p-87ab53c4.system.entry.js → p-0fc06049.system.entry.js} +1 -1
- package/dist/stzh-components/p-0fc83964.system.entry.js +1 -0
- package/dist/stzh-components/{p-08d4ed80.entry.js → p-13b3500e.entry.js} +1 -1
- package/dist/stzh-components/p-13f44000.entry.js +1 -0
- package/dist/stzh-components/{p-65444117.system.entry.js → p-17c6c1db.system.entry.js} +1 -1
- package/dist/stzh-components/{p-b34774e7.entry.js → p-190de4de.entry.js} +1 -1
- package/dist/stzh-components/{p-b2c8c31e.system.entry.js → p-19bff884.system.entry.js} +1 -1
- package/dist/stzh-components/{p-debb00e6.entry.js → p-216577b4.entry.js} +1 -1
- package/dist/stzh-components/{p-6edd58a4.system.entry.js → p-27fd6c6f.system.entry.js} +1 -1
- package/dist/stzh-components/{p-bdba7714.entry.js → p-2818488f.entry.js} +1 -1
- package/dist/stzh-components/{p-fba76dba.entry.js → p-29427863.entry.js} +1 -1
- package/dist/stzh-components/{p-d8471675.entry.js → p-2b338050.entry.js} +1 -1
- package/dist/stzh-components/p-2cf1ae40.system.entry.js +1 -0
- package/dist/stzh-components/{p-fa8651dd.entry.js → p-2e559062.entry.js} +1 -1
- package/dist/stzh-components/{p-11d0c8f3.entry.js → p-332e4fd3.entry.js} +1 -1
- package/dist/stzh-components/{p-c863ffd0.system.entry.js → p-33c0229f.system.entry.js} +1 -1
- package/dist/stzh-components/p-373f79e8.entry.js +1 -0
- package/dist/stzh-components/{p-b651f251.entry.js → p-3ac93a01.entry.js} +1 -1
- package/dist/stzh-components/{p-c7c17bb7.system.entry.js → p-3b27a43f.system.entry.js} +2 -2
- package/dist/stzh-components/{p-1cde29ea.entry.js → p-3d8317b5.entry.js} +1 -1
- package/dist/stzh-components/{p-48bbcc26.system.entry.js → p-45bab70d.system.entry.js} +1 -1
- package/dist/stzh-components/{p-3f03fd94.system.entry.js → p-48b5b697.system.entry.js} +1 -1
- package/dist/stzh-components/{p-ece7ad4d.system.entry.js → p-4c6989ae.system.entry.js} +1 -1
- package/dist/stzh-components/{p-bb2e1dda.entry.js → p-552f49c4.entry.js} +1 -1
- package/dist/stzh-components/{p-562394a9.system.entry.js → p-55d23a3c.system.entry.js} +1 -1
- package/dist/stzh-components/{p-07772cd7.system.entry.js → p-560f96f0.system.entry.js} +1 -1
- package/dist/stzh-components/{p-f48a2b00.system.entry.js → p-56b9cc3c.system.entry.js} +1 -1
- package/dist/stzh-components/{p-33946fed.system.entry.js → p-58d886cb.system.entry.js} +1 -1
- package/dist/stzh-components/p-5975c355.system.entry.js +1 -0
- package/dist/stzh-components/p-5987573e.system.entry.js +1 -0
- package/dist/stzh-components/{p-68a8b7b7.system.entry.js → p-5997e418.system.entry.js} +1 -1
- package/dist/stzh-components/p-59c323ce.entry.js +1 -0
- package/dist/stzh-components/{p-49968bbf.entry.js → p-5a02ef03.entry.js} +1 -1
- package/dist/stzh-components/{p-1c88ceff.system.entry.js → p-5a354428.system.entry.js} +1 -1
- package/dist/stzh-components/{p-0a71fbac.entry.js → p-5bd2849d.entry.js} +1 -1
- package/dist/stzh-components/{p-4a398453.system.entry.js → p-61aac051.system.entry.js} +1 -1
- package/dist/stzh-components/{p-ade1ebcf.system.entry.js → p-6305db38.system.entry.js} +1 -1
- package/dist/stzh-components/{p-f610f725.entry.js → p-6354fee3.entry.js} +1 -1
- package/dist/stzh-components/{p-95eb03b2.entry.js → p-638bedfa.entry.js} +1 -1
- package/dist/stzh-components/{p-9c0494a6.system.js → p-63d89b96.system.js} +1 -1
- package/dist/stzh-components/{p-33d75303.entry.js → p-63d8db7b.entry.js} +1 -1
- package/dist/stzh-components/{p-818634d2.entry.js → p-64b4cc74.entry.js} +1 -1
- package/dist/stzh-components/p-653c6bbc.entry.js +1 -0
- package/dist/stzh-components/{p-8a60addb.entry.js → p-67f906b1.entry.js} +1 -1
- package/dist/stzh-components/{p-f44f4d26.system.entry.js → p-69c3187f.system.entry.js} +1 -1
- package/dist/stzh-components/{p-95a297aa.entry.js → p-69f4a27e.entry.js} +1 -1
- package/dist/stzh-components/p-6a81e64b.entry.js +1 -0
- package/dist/stzh-components/p-6a873872.entry.js +1 -0
- package/dist/stzh-components/{p-03b16275.entry.js → p-72f29f07.entry.js} +1 -1
- package/dist/stzh-components/p-75cdc8a6.system.entry.js +1 -0
- package/dist/stzh-components/{p-6fc271d0.system.entry.js → p-7ad87d98.system.entry.js} +1 -1
- package/dist/stzh-components/p-7d8c9866.entry.js +1 -0
- package/dist/stzh-components/{p-1cebd703.entry.js → p-7f9f9a8d.entry.js} +1 -1
- package/dist/stzh-components/{p-7d098987.entry.js → p-83b1e379.entry.js} +1 -1
- package/dist/stzh-components/{p-aec2d2d1.system.entry.js → p-851e0caa.system.entry.js} +1 -1
- package/dist/stzh-components/{p-1f15a4e0.system.entry.js → p-86bc421e.system.entry.js} +1 -1
- package/dist/stzh-components/{p-690d14cd.entry.js → p-88e0f453.entry.js} +1 -1
- package/dist/stzh-components/{p-0338cec3.system.entry.js → p-89274cd5.system.entry.js} +1 -1
- package/dist/stzh-components/{p-346e26f2.system.entry.js → p-8a9e588e.system.entry.js} +1 -1
- package/dist/stzh-components/{p-66556f67.entry.js → p-8aebb240.entry.js} +1 -1
- package/dist/stzh-components/{p-f1a58a7c.system.entry.js → p-8cbc987f.system.entry.js} +1 -1
- package/dist/stzh-components/{p-0ae3e066.system.entry.js → p-8d0da18d.system.entry.js} +1 -1
- package/dist/stzh-components/{p-56fccfa3.system.entry.js → p-8d547247.system.entry.js} +1 -1
- package/dist/stzh-components/{p-b281b653.entry.js → p-8f16b0ac.entry.js} +2 -2
- package/dist/stzh-components/{p-85d78e08.entry.js → p-938ef748.entry.js} +1 -1
- package/dist/stzh-components/{p-65282c9d.js → p-93e8e31f.js} +1 -1
- package/dist/stzh-components/{p-e9ca8ddc.entry.js → p-961cb979.entry.js} +1 -1
- package/dist/stzh-components/{p-98afd4b0.system.entry.js → p-981b2629.system.entry.js} +1 -1
- package/dist/stzh-components/p-9bda100f.system.js +1 -0
- package/dist/stzh-components/{p-0ec28130.system.entry.js → p-9c72f491.system.entry.js} +1 -1
- package/dist/stzh-components/{p-8cf287d8.system.entry.js → p-9fb4da92.system.entry.js} +1 -1
- package/dist/stzh-components/{p-409c0d50.entry.js → p-a448f5a5.entry.js} +1 -1
- package/dist/stzh-components/{p-96fd158c.entry.js → p-a646c09a.entry.js} +1 -1
- package/dist/stzh-components/p-a6627504.entry.js +1 -0
- package/dist/stzh-components/{p-6c3b2508.system.entry.js → p-a67e09cd.system.entry.js} +1 -1
- package/dist/stzh-components/{p-378be0be.system.entry.js → p-a7c35778.system.entry.js} +1 -1
- package/dist/stzh-components/{p-c8bc2812.entry.js → p-a7ee2636.entry.js} +1 -1
- package/dist/stzh-components/{p-632d9076.system.entry.js → p-a99d3e97.system.entry.js} +1 -1
- package/dist/stzh-components/{p-148de4e6.entry.js → p-ab246b66.entry.js} +1 -1
- package/dist/stzh-components/{p-936cc626.system.entry.js → p-ab455116.system.entry.js} +1 -1
- package/dist/stzh-components/p-af2664fc.system.entry.js +1 -0
- package/dist/stzh-components/p-b084fcbf.system.entry.js +1 -0
- package/dist/stzh-components/p-b550feaa.system.entry.js +1 -0
- package/dist/stzh-components/{p-a760352a.system.entry.js → p-b636a18a.system.entry.js} +1 -1
- package/dist/stzh-components/{p-3ed69b16.entry.js → p-b9295dc2.entry.js} +1 -1
- package/dist/stzh-components/{p-f2050d1e.entry.js → p-b9382599.entry.js} +1 -1
- package/dist/stzh-components/{p-46f301c0.entry.js → p-b9a027aa.entry.js} +1 -1
- package/dist/stzh-components/{p-e4347cfe.entry.js → p-b9c3f3cc.entry.js} +1 -1
- package/dist/stzh-components/{p-7e3924a0.system.entry.js → p-ba94e315.system.entry.js} +1 -1
- package/dist/stzh-components/{p-7d62dfeb.system.entry.js → p-bd178c32.system.entry.js} +1 -1
- package/dist/stzh-components/{p-e972a44f.system.entry.js → p-be461e19.system.entry.js} +1 -1
- package/dist/stzh-components/{p-30b347ee.system.js → p-bf0fdd23.system.js} +2 -2
- package/dist/stzh-components/{p-da063c7e.system.entry.js → p-c013a00b.system.entry.js} +1 -1
- package/dist/stzh-components/{p-983f6070.entry.js → p-c1337453.entry.js} +1 -1
- package/dist/stzh-components/{p-915e8ad6.entry.js → p-c3d93395.entry.js} +1 -1
- package/dist/stzh-components/{p-c6cad5ed.system.entry.js → p-c456c04b.system.entry.js} +1 -1
- package/dist/stzh-components/{p-8bd3ba06.entry.js → p-c499e04d.entry.js} +1 -1
- package/dist/stzh-components/{p-e9bc3a43.entry.js → p-c4b7c2be.entry.js} +1 -1
- package/dist/stzh-components/{p-df422d36.entry.js → p-c58dd9de.entry.js} +1 -1
- package/dist/stzh-components/{p-7d2237ca.entry.js → p-c692e405.entry.js} +1 -1
- package/dist/stzh-components/{p-4e9bfeb8.system.entry.js → p-c83e4fec.system.entry.js} +1 -1
- package/dist/stzh-components/p-ca062c11.system.js +1 -0
- package/dist/stzh-components/{p-586cae98.entry.js → p-ce070ccd.entry.js} +1 -1
- package/dist/stzh-components/{p-b3b5ee7e.entry.js → p-ce28428b.entry.js} +1 -1
- package/dist/stzh-components/p-cfaac121.js +1 -0
- package/dist/stzh-components/{p-04d7b18f.entry.js → p-d0aa9d3b.entry.js} +1 -1
- package/dist/stzh-components/{p-5ea652ae.system.entry.js → p-d11a70e2.system.entry.js} +1 -1
- package/dist/stzh-components/p-d1dba399.system.entry.js +1 -0
- package/dist/stzh-components/p-d2b5e066.entry.js +1 -0
- package/dist/stzh-components/{p-58ffc722.system.entry.js → p-d54f04c8.system.entry.js} +1 -1
- package/dist/stzh-components/p-d645d645.entry.js +1 -0
- package/dist/stzh-components/{p-006135ed.system.entry.js → p-d6c07494.system.entry.js} +1 -1
- package/dist/stzh-components/{p-cf162e67.entry.js → p-d7893dfd.entry.js} +1 -1
- package/dist/stzh-components/{p-73194e28.entry.js → p-d9643cc4.entry.js} +1 -1
- package/dist/stzh-components/{p-03e2634c.entry.js → p-da7b363e.entry.js} +1 -1
- package/dist/stzh-components/{p-58917ce2.entry.js → p-db5363ef.entry.js} +1 -1
- package/dist/stzh-components/p-de017b87.system.entry.js +1 -0
- package/dist/stzh-components/{p-ec3d4dd4.entry.js → p-e009bfdc.entry.js} +1 -1
- package/dist/stzh-components/{p-fc9c4fc3.system.entry.js → p-e213663c.system.entry.js} +1 -1
- package/dist/stzh-components/{p-7a6e347d.system.entry.js → p-e7a84e53.system.entry.js} +1 -1
- package/dist/stzh-components/{p-14d728f0.entry.js → p-ee22256f.entry.js} +1 -1
- package/dist/stzh-components/{p-670d4834.entry.js → p-f1356a85.entry.js} +1 -1
- package/dist/stzh-components/{p-82e6148a.system.entry.js → p-f167eaa4.system.entry.js} +1 -1
- package/dist/stzh-components/{p-3c799247.entry.js → p-f2ee016a.entry.js} +1 -1
- package/dist/stzh-components/{p-1ace5d80.entry.js → p-f788a468.entry.js} +1 -1
- package/dist/stzh-components/{p-99533090.system.entry.js → p-f832e938.system.entry.js} +1 -1
- package/dist/stzh-components/{p-32b78d65.js → p-f84fa2a4.js} +1 -1
- package/dist/stzh-components/{p-80db7aa6.system.entry.js → p-fa56fc0d.system.entry.js} +1 -1
- package/dist/stzh-components/{p-88a4f756.system.entry.js → p-fc13d017.system.entry.js} +1 -1
- package/dist/stzh-components/{p-b4fc71ff.system.entry.js → p-fc6b4f91.system.entry.js} +1 -1
- package/dist/stzh-components/p-fdd1998f.entry.js +1 -0
- package/dist/stzh-components/{p-370b82e7.system.entry.js → p-fdf0b4bc.system.entry.js} +1 -1
- package/dist/stzh-components/{p-90a10825.system.entry.js → p-ffa1e9dd.system.entry.js} +1 -1
- package/dist/stzh-components/stzh-components.css +1 -1
- package/dist/stzh-components/stzh-components.esm.js +1 -1
- package/dist/stzh-components/stzh-components.js +1 -1
- package/dist/types/components/stzh-actionset/stzh-actionset.localization.d.ts +5 -0
- package/dist/types/components/{stzh-servicecard/stzh-servicecard.localization.d.ts → stzh-card/stzh-card.localization.d.ts} +2 -1
- package/dist/types/components/{stzh-servicecard-list/stzh-servicecard-list.localization.d.ts → stzh-card-list/stzh-card-list.localization.d.ts} +1 -1
- package/dist/types/components.d.ts +458 -245
- package/dist/types/index.d.ts +56 -14
- package/dist/vscode-data.json +346 -131
- package/package.json +1 -1
- package/dist/cjs/stzh-servicecard-list.cjs.entry.js +0 -73
- package/dist/cjs/stzh-servicecard.cjs.entry.js +0 -234
- package/dist/collection/components/stzh-servicecard/stzh-servicecard.css +0 -558
- package/dist/collection/components/stzh-servicecard/stzh-servicecard.stories.js +0 -73
- package/dist/collection/components/stzh-servicecard-list/stzh-servicecard-list.stories.js +0 -116
- package/dist/components/stzh-servicecard-list.js +0 -117
- package/dist/components/stzh-servicecard.js +0 -305
- package/dist/esm/stzh-servicecard-list.entry.js +0 -69
- package/dist/esm/stzh-servicecard.entry.js +0 -230
- package/dist/esm-es5/app-globals-c42494e9.js +0 -1
- package/dist/esm-es5/stzh-servicecard-list.entry.js +0 -1
- package/dist/esm-es5/stzh-servicecard.entry.js +0 -1
- package/dist/stzh-components/p-2b11d549.system.entry.js +0 -1
- package/dist/stzh-components/p-34190502.entry.js +0 -1
- package/dist/stzh-components/p-3ebd2c03.js +0 -1
- package/dist/stzh-components/p-5e0cccc9.system.entry.js +0 -1
- package/dist/stzh-components/p-63b5068a.system.entry.js +0 -1
- package/dist/stzh-components/p-7921db30.system.entry.js +0 -1
- package/dist/stzh-components/p-79bfc485.entry.js +0 -1
- package/dist/stzh-components/p-7bb1bd3b.entry.js +0 -1
- package/dist/stzh-components/p-a7253852.entry.js +0 -1
- package/dist/stzh-components/p-a86c6487.entry.js +0 -1
- package/dist/stzh-components/p-aaa2e48f.system.js +0 -1
- package/dist/stzh-components/p-b35b0270.entry.js +0 -1
- package/dist/stzh-components/p-c581e798.system.entry.js +0 -1
- package/dist/stzh-components/p-e12db90a.entry.js +0 -1
- package/dist/stzh-components/p-e2ce48f1.system.entry.js +0 -1
- package/dist/stzh-components/p-ee5ceac4.entry.js +0 -1
- package/dist/stzh-components/p-f0ca6848.system.entry.js +0 -1
- package/dist/stzh-components/p-f21440b3.entry.js +0 -1
- package/dist/stzh-components/p-faf20030.system.js +0 -1
- package/dist/stzh-components/p-fce0e218.system.entry.js +0 -1
- package/dist/stzh-components/p-fe9f8a09.system.entry.js +0 -1
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
/**
|
|
3
|
+
*/
|
|
4
|
+
export class StzhDatalist {
|
|
5
|
+
constructor() {
|
|
6
|
+
/** Direction */
|
|
7
|
+
this.direction = "vertical";
|
|
8
|
+
/** Direction above small breakpoint */
|
|
9
|
+
this.directionSmall = "horizontal";
|
|
10
|
+
/** Direction above medium breakpoint */
|
|
11
|
+
this.directionMedium = "inherit";
|
|
12
|
+
/** Direction above large breakpoint */
|
|
13
|
+
this.directionLarge = "inherit";
|
|
14
|
+
/** Direction above ultra breakpoint */
|
|
15
|
+
this.directionUltra = "inherit";
|
|
16
|
+
/** Hide border lines between items */
|
|
17
|
+
this.hideBorder = false;
|
|
18
|
+
/**
|
|
19
|
+
* Items in datalist
|
|
20
|
+
* Array of objects that must at least include `value` attribute.
|
|
21
|
+
* Can optionally contain `label`, `meta`, `icon`, `href` attribute:
|
|
22
|
+
* `[{"value":"Value 1", "label": "Label 1"}, {"value":"Value 2", "label": "Label 2"}]`
|
|
23
|
+
*/
|
|
24
|
+
this.items = [];
|
|
25
|
+
this._items = [];
|
|
26
|
+
this.actionClick = (originalEvent, item) => {
|
|
27
|
+
this.stzhItemActionClick.emit({
|
|
28
|
+
component: "stzh-datalist",
|
|
29
|
+
originalEvent,
|
|
30
|
+
item
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
itemsWatcher(newValue) {
|
|
35
|
+
if (typeof newValue === "string") {
|
|
36
|
+
this._items = JSON.parse(newValue);
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
this._items = newValue;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
async componentWillLoad() {
|
|
43
|
+
this.itemsWatcher(this.items);
|
|
44
|
+
}
|
|
45
|
+
render() {
|
|
46
|
+
const classes = {
|
|
47
|
+
"stzh-datalist": true,
|
|
48
|
+
"stzh-datalist--hide-border": this.hideBorder,
|
|
49
|
+
[`stzh-datalist--direction-${this.direction}`]: !!this.direction,
|
|
50
|
+
[`stzh-datalist--direction-small-${this.directionSmall}`]: !!this.directionSmall,
|
|
51
|
+
[`stzh-datalist--direction-medium-${this.directionMedium}`]: !!this.directionMedium,
|
|
52
|
+
[`stzh-datalist--direction-large-${this.directionLarge}`]: !!this.directionLarge,
|
|
53
|
+
[`stzh-datalist--direction-ultra-${this.directionUltra}`]: !!this.directionUltra
|
|
54
|
+
};
|
|
55
|
+
return (h(Host, null, h("div", { class: classes }, h("div", { class: "stzh-datalist__list", role: "list" }, this._items.map((item) => h("div", { role: "listitem", class: {
|
|
56
|
+
"stzh-datalist__list-item": true,
|
|
57
|
+
"stzh-datalist__list-item--has-icon": !!item.icon,
|
|
58
|
+
} }, h("div", { class: "stzh-datalist__label" }, item.label), h("div", { class: "stzh-datalist__value" }, item.href ? h("stzh-link", { href: item.href, label: item.value, size: "inherit" }) : item.value), h("div", { class: "stzh-datalist__meta" }, item.meta), h("div", { class: "stzh-datalist__action-list" }, h("button", { class: "stzh-datalist__action", onClick: (event) => this.actionClick(event, item) }, h("stzh-icon", { name: item.icon })))))))));
|
|
59
|
+
}
|
|
60
|
+
static get is() { return "stzh-datalist"; }
|
|
61
|
+
static get encapsulation() { return "scoped"; }
|
|
62
|
+
static get originalStyleUrls() {
|
|
63
|
+
return {
|
|
64
|
+
"$": ["stzh-datalist.scss"]
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
static get styleUrls() {
|
|
68
|
+
return {
|
|
69
|
+
"$": ["stzh-datalist.css"]
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
static get properties() {
|
|
73
|
+
return {
|
|
74
|
+
"direction": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"mutable": false,
|
|
77
|
+
"complexType": {
|
|
78
|
+
"original": "\"vertical\" | \"horizontal\"",
|
|
79
|
+
"resolved": "\"horizontal\" | \"vertical\"",
|
|
80
|
+
"references": {}
|
|
81
|
+
},
|
|
82
|
+
"required": false,
|
|
83
|
+
"optional": false,
|
|
84
|
+
"docs": {
|
|
85
|
+
"tags": [],
|
|
86
|
+
"text": "Direction"
|
|
87
|
+
},
|
|
88
|
+
"attribute": "direction",
|
|
89
|
+
"reflect": true,
|
|
90
|
+
"defaultValue": "\"vertical\""
|
|
91
|
+
},
|
|
92
|
+
"directionSmall": {
|
|
93
|
+
"type": "string",
|
|
94
|
+
"mutable": false,
|
|
95
|
+
"complexType": {
|
|
96
|
+
"original": "\"vertical\" | \"horizontal\" | \"inherit\"",
|
|
97
|
+
"resolved": "\"horizontal\" | \"inherit\" | \"vertical\"",
|
|
98
|
+
"references": {}
|
|
99
|
+
},
|
|
100
|
+
"required": false,
|
|
101
|
+
"optional": false,
|
|
102
|
+
"docs": {
|
|
103
|
+
"tags": [],
|
|
104
|
+
"text": "Direction above small breakpoint"
|
|
105
|
+
},
|
|
106
|
+
"attribute": "direction-small",
|
|
107
|
+
"reflect": true,
|
|
108
|
+
"defaultValue": "\"horizontal\""
|
|
109
|
+
},
|
|
110
|
+
"directionMedium": {
|
|
111
|
+
"type": "string",
|
|
112
|
+
"mutable": false,
|
|
113
|
+
"complexType": {
|
|
114
|
+
"original": "\"vertical\" | \"horizontal\" | \"inherit\"",
|
|
115
|
+
"resolved": "\"horizontal\" | \"inherit\" | \"vertical\"",
|
|
116
|
+
"references": {}
|
|
117
|
+
},
|
|
118
|
+
"required": false,
|
|
119
|
+
"optional": false,
|
|
120
|
+
"docs": {
|
|
121
|
+
"tags": [],
|
|
122
|
+
"text": "Direction above medium breakpoint"
|
|
123
|
+
},
|
|
124
|
+
"attribute": "direction-medium",
|
|
125
|
+
"reflect": true,
|
|
126
|
+
"defaultValue": "\"inherit\""
|
|
127
|
+
},
|
|
128
|
+
"directionLarge": {
|
|
129
|
+
"type": "string",
|
|
130
|
+
"mutable": false,
|
|
131
|
+
"complexType": {
|
|
132
|
+
"original": "\"vertical\" | \"horizontal\" | \"inherit\"",
|
|
133
|
+
"resolved": "\"horizontal\" | \"inherit\" | \"vertical\"",
|
|
134
|
+
"references": {}
|
|
135
|
+
},
|
|
136
|
+
"required": false,
|
|
137
|
+
"optional": false,
|
|
138
|
+
"docs": {
|
|
139
|
+
"tags": [],
|
|
140
|
+
"text": "Direction above large breakpoint"
|
|
141
|
+
},
|
|
142
|
+
"attribute": "direction-large",
|
|
143
|
+
"reflect": true,
|
|
144
|
+
"defaultValue": "\"inherit\""
|
|
145
|
+
},
|
|
146
|
+
"directionUltra": {
|
|
147
|
+
"type": "string",
|
|
148
|
+
"mutable": false,
|
|
149
|
+
"complexType": {
|
|
150
|
+
"original": "\"vertical\" | \"horizontal\" | \"inherit\"",
|
|
151
|
+
"resolved": "\"horizontal\" | \"inherit\" | \"vertical\"",
|
|
152
|
+
"references": {}
|
|
153
|
+
},
|
|
154
|
+
"required": false,
|
|
155
|
+
"optional": false,
|
|
156
|
+
"docs": {
|
|
157
|
+
"tags": [],
|
|
158
|
+
"text": "Direction above ultra breakpoint"
|
|
159
|
+
},
|
|
160
|
+
"attribute": "direction-ultra",
|
|
161
|
+
"reflect": true,
|
|
162
|
+
"defaultValue": "\"inherit\""
|
|
163
|
+
},
|
|
164
|
+
"hideBorder": {
|
|
165
|
+
"type": "boolean",
|
|
166
|
+
"mutable": false,
|
|
167
|
+
"complexType": {
|
|
168
|
+
"original": "boolean",
|
|
169
|
+
"resolved": "boolean",
|
|
170
|
+
"references": {}
|
|
171
|
+
},
|
|
172
|
+
"required": false,
|
|
173
|
+
"optional": false,
|
|
174
|
+
"docs": {
|
|
175
|
+
"tags": [],
|
|
176
|
+
"text": "Hide border lines between items"
|
|
177
|
+
},
|
|
178
|
+
"attribute": "hide-border",
|
|
179
|
+
"reflect": true,
|
|
180
|
+
"defaultValue": "false"
|
|
181
|
+
},
|
|
182
|
+
"items": {
|
|
183
|
+
"type": "string",
|
|
184
|
+
"mutable": false,
|
|
185
|
+
"complexType": {
|
|
186
|
+
"original": "StzhDatalistItemEntry[] | string",
|
|
187
|
+
"resolved": "StzhDatalistItemEntry[] | string",
|
|
188
|
+
"references": {
|
|
189
|
+
"StzhDatalistItemEntry": {
|
|
190
|
+
"location": "import",
|
|
191
|
+
"path": "../../index"
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
"required": false,
|
|
196
|
+
"optional": false,
|
|
197
|
+
"docs": {
|
|
198
|
+
"tags": [],
|
|
199
|
+
"text": "Items in datalist\nArray of objects that must at least include `value` attribute.\nCan optionally contain `label`, `meta`, `icon`, `href` attribute:\n`[{\"value\":\"Value 1\", \"label\": \"Label 1\"}, {\"value\":\"Value 2\", \"label\": \"Label 2\"}]`"
|
|
200
|
+
},
|
|
201
|
+
"attribute": "items",
|
|
202
|
+
"reflect": false,
|
|
203
|
+
"defaultValue": "[]"
|
|
204
|
+
}
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
static get events() {
|
|
208
|
+
return [{
|
|
209
|
+
"method": "stzhItemActionClick",
|
|
210
|
+
"name": "stzhItemActionClick",
|
|
211
|
+
"bubbles": true,
|
|
212
|
+
"cancelable": true,
|
|
213
|
+
"composed": true,
|
|
214
|
+
"docs": {
|
|
215
|
+
"tags": [],
|
|
216
|
+
"text": "Item action click event"
|
|
217
|
+
},
|
|
218
|
+
"complexType": {
|
|
219
|
+
"original": "StzhDatalistItemActionClickEvent",
|
|
220
|
+
"resolved": "{ component: \"stzh-datalist\"; originalEvent: MouseEvent; item: StzhDatalistItemEntry; }",
|
|
221
|
+
"references": {
|
|
222
|
+
"StzhDatalistItemActionClickEvent": {
|
|
223
|
+
"location": "import",
|
|
224
|
+
"path": "../../index"
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}];
|
|
229
|
+
}
|
|
230
|
+
static get elementRef() { return "element"; }
|
|
231
|
+
static get watchers() {
|
|
232
|
+
return [{
|
|
233
|
+
"propName": "items",
|
|
234
|
+
"methodName": "itemsWatcher"
|
|
235
|
+
}];
|
|
236
|
+
}
|
|
237
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { h } from '../../utils/h';
|
|
2
|
+
import readme from './readme.md';
|
|
3
|
+
import { withDesign } from 'storybook-addon-designs';
|
|
4
|
+
import { getFigmaLink } from '../../../figma';
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
title: 'Components/Datalist',
|
|
8
|
+
component: 'stzh-datalist',
|
|
9
|
+
parameters: {
|
|
10
|
+
actions: {
|
|
11
|
+
handles: ['stzhItemActionClick']
|
|
12
|
+
},
|
|
13
|
+
docs: {
|
|
14
|
+
description: {
|
|
15
|
+
component: readme
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
design: {
|
|
19
|
+
type: 'figma',
|
|
20
|
+
url: getFigmaLink('datalist'),
|
|
21
|
+
allowFullscreen: true
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
decorators: [
|
|
25
|
+
withDesign
|
|
26
|
+
]
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
const Template = (args) => (
|
|
30
|
+
<stzh-datalist {...args}></stzh-datalist>
|
|
31
|
+
);
|
|
32
|
+
|
|
33
|
+
export const Default = Template.bind({});
|
|
34
|
+
Default.args = {
|
|
35
|
+
items: [
|
|
36
|
+
{
|
|
37
|
+
"label": "Label",
|
|
38
|
+
"value": "Value 1",
|
|
39
|
+
"meta": "Metainfo",
|
|
40
|
+
"icon": "delete"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"label": "Really Long Label",
|
|
44
|
+
"value": "Value 2",
|
|
45
|
+
"meta": "Metainfo",
|
|
46
|
+
"icon": "delete"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"label": "Label",
|
|
50
|
+
"value": "Value 3",
|
|
51
|
+
"meta": "Metainfo"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"label": "Label",
|
|
55
|
+
"value": "Value 4",
|
|
56
|
+
"meta": "Metainfo",
|
|
57
|
+
"icon": "delete"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"label": "Label",
|
|
61
|
+
"value": "Value 5",
|
|
62
|
+
"icon": "delete",
|
|
63
|
+
"href": "http://example.com"
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
};
|
|
@@ -134,7 +134,7 @@ export class StzhDatepicker {
|
|
|
134
134
|
};
|
|
135
135
|
return (h(Host, null, h("div", { class: classes }, h("input", { type: "hidden", name: this.name, value: this.value }), this.inline &&
|
|
136
136
|
h(Fragment, null, h("stzh-calendar", { ref: (el) => (this.calendar = el), isDateDisabled: this.calendarIsDateDisabled, min: this.calendarMin, max: this.calendarMax, onStzhChange: this.onCalendarChange }), h("div", { class: "stzh-datepicker__actions" }, h("slot", { name: "action" }))), !this.inline &&
|
|
137
|
-
h("stzh-input", { label: this.label, ref: (el) => (this.input = el), noAutocomplete: true, onStzhChange: this.onInputChange, readonly: this.readonly, disabled: this.disabled, description: this.description, descriptionLong: this.descriptionLong, error: this.error, invalid: this.invalid, required: this.required, showMarker: this.showMarker,
|
|
137
|
+
h("stzh-input", { label: this.label, ref: (el) => (this.input = el), noAutocomplete: true, onStzhChange: this.onInputChange, readonly: this.readonly, disabled: this.disabled, description: this.description, descriptionLong: this.descriptionLong, error: this.error, invalid: this.invalid, required: this.required, showMarker: this.showMarker, size: this.size }, h("stzh-popover", { ref: (el) => (this.popover = el), class: "stzh-datepicker__popover", slot: "button-right", placement: "bottom-end", label: this.label }, h("stzh-button", { variant: "input", "icon-only": true, icon: "calendar", disabled: this.disabled, a11yLabel: this.buttonLabel }), h("div", { slot: "content" }, h("stzh-calendar", { ref: (el) => (this.calendar = el), isDateDisabled: this.calendarIsDateDisabled, min: this.calendarMin, max: this.calendarMax, onStzhChange: this.onCalendarChange }), h("div", { class: "stzh-datepicker__actions" }, h("slot", { name: "action" }))))))));
|
|
138
138
|
}
|
|
139
139
|
static get is() { return "stzh-datepicker"; }
|
|
140
140
|
static get encapsulation() { return "scoped"; }
|
|
@@ -402,26 +402,6 @@ export class StzhDatepicker {
|
|
|
402
402
|
"reflect": true,
|
|
403
403
|
"defaultValue": "false"
|
|
404
404
|
},
|
|
405
|
-
"placeholder": {
|
|
406
|
-
"type": "string",
|
|
407
|
-
"mutable": false,
|
|
408
|
-
"complexType": {
|
|
409
|
-
"original": "string",
|
|
410
|
-
"resolved": "string",
|
|
411
|
-
"references": {}
|
|
412
|
-
},
|
|
413
|
-
"required": false,
|
|
414
|
-
"optional": false,
|
|
415
|
-
"docs": {
|
|
416
|
-
"tags": [{
|
|
417
|
-
"name": "deprecated",
|
|
418
|
-
"text": undefined
|
|
419
|
-
}],
|
|
420
|
-
"text": "Placeholder text"
|
|
421
|
-
},
|
|
422
|
-
"attribute": "placeholder",
|
|
423
|
-
"reflect": false
|
|
424
|
-
},
|
|
425
405
|
"size": {
|
|
426
406
|
"type": "string",
|
|
427
407
|
"mutable": false,
|
|
@@ -98,6 +98,7 @@
|
|
|
98
98
|
--width: 100%;
|
|
99
99
|
--padding: var(--stzh-space-large);
|
|
100
100
|
--close-color: var(--stzh-base-lead-color);
|
|
101
|
+
--backdrop-opacity: 0.8;
|
|
101
102
|
}
|
|
102
103
|
@media screen and (min-width: 600px) {
|
|
103
104
|
:host {
|
|
@@ -185,7 +186,7 @@
|
|
|
185
186
|
overflow-y: auto;
|
|
186
187
|
text-align: center;
|
|
187
188
|
background-color: var(--stzh-color-primary, var(--stzh-color-zueriblue));
|
|
188
|
-
opacity:
|
|
189
|
+
opacity: var(--backdrop-opacity);
|
|
189
190
|
}
|
|
190
191
|
.stzh-dialog__heading {
|
|
191
192
|
padding: var(--padding);
|
|
@@ -697,7 +697,7 @@ stzh-dropdown[disabled]:not([disabled=false])[variant=plain] {
|
|
|
697
697
|
.stzh-dropdown--plain.stzh-dropdown--has-icon .stzh-dropdown__label {
|
|
698
698
|
left: calc(var(--icon-size) + var(--stzh-space-xsmall) + 0.0625rem);
|
|
699
699
|
}
|
|
700
|
-
.stzh-dropdown--has-fixed-label .stzh-dropdown__label, .stzh-dropdown--is-filled .stzh-dropdown__label, .stzh-dropdown--is-disabled .stzh-dropdown__label, .stzh-dropdown--is-invalid .stzh-dropdown__label, .stzh-dropdown--has-focus .stzh-dropdown__label
|
|
700
|
+
.stzh-dropdown--has-fixed-label .stzh-dropdown__label, .stzh-dropdown--is-filled .stzh-dropdown__label, .stzh-dropdown--is-disabled .stzh-dropdown__label, .stzh-dropdown--is-invalid .stzh-dropdown__label, .stzh-dropdown--has-focus .stzh-dropdown__label {
|
|
701
701
|
top: 0;
|
|
702
702
|
left: calc(var(--stzh-space-medium) - var(--stzh-space-xxsmall));
|
|
703
703
|
height: 1.25rem;
|
|
@@ -706,10 +706,10 @@ stzh-dropdown[disabled]:not([disabled=false])[variant=plain] {
|
|
|
706
706
|
max-width: calc(100% - (var(--stzh-space-medium) - var(--stzh-space-xxsmall)) * 2);
|
|
707
707
|
pointer-events: all;
|
|
708
708
|
}
|
|
709
|
-
.stzh-dropdown--has-fixed-label .stzh-dropdown__label:not(:empty)::before, .stzh-dropdown--is-filled .stzh-dropdown__label:not(:empty)::before, .stzh-dropdown--is-disabled .stzh-dropdown__label:not(:empty)::before, .stzh-dropdown--is-invalid .stzh-dropdown__label:not(:empty)::before, .stzh-dropdown--has-focus .stzh-dropdown__label:not(:empty)::before
|
|
709
|
+
.stzh-dropdown--has-fixed-label .stzh-dropdown__label:not(:empty)::before, .stzh-dropdown--is-filled .stzh-dropdown__label:not(:empty)::before, .stzh-dropdown--is-disabled .stzh-dropdown__label:not(:empty)::before, .stzh-dropdown--is-invalid .stzh-dropdown__label:not(:empty)::before, .stzh-dropdown--has-focus .stzh-dropdown__label:not(:empty)::before {
|
|
710
710
|
display: block;
|
|
711
711
|
}
|
|
712
|
-
.stzh-dropdown--plain.stzh-dropdown--has-fixed-label .stzh-dropdown__label, .stzh-dropdown--plain.stzh-dropdown--is-filled .stzh-dropdown__label, .stzh-dropdown--plain.stzh-dropdown--is-disabled .stzh-dropdown__label, .stzh-dropdown--plain.stzh-dropdown--is-invalid .stzh-dropdown__label, .stzh-dropdown--plain.stzh-dropdown--has-focus .stzh-dropdown__label
|
|
712
|
+
.stzh-dropdown--plain.stzh-dropdown--has-fixed-label .stzh-dropdown__label, .stzh-dropdown--plain.stzh-dropdown--is-filled .stzh-dropdown__label, .stzh-dropdown--plain.stzh-dropdown--is-disabled .stzh-dropdown__label, .stzh-dropdown--plain.stzh-dropdown--is-invalid .stzh-dropdown__label, .stzh-dropdown--plain.stzh-dropdown--has-focus .stzh-dropdown__label {
|
|
713
713
|
left: 0;
|
|
714
714
|
padding: 0;
|
|
715
715
|
max-width: 100%;
|
|
@@ -158,8 +158,8 @@ export class StzhDropdown {
|
|
|
158
158
|
return this.tomSelect.getValue();
|
|
159
159
|
}
|
|
160
160
|
/** Set new value */
|
|
161
|
-
async setValue(newValue) {
|
|
162
|
-
this.tomSelect.setValue(newValue);
|
|
161
|
+
async setValue(newValue, silent = false) {
|
|
162
|
+
this.tomSelect.setValue(newValue, silent);
|
|
163
163
|
}
|
|
164
164
|
/** Focus select */
|
|
165
165
|
async setFocus() {
|
|
@@ -253,7 +253,6 @@ export class StzhDropdown {
|
|
|
253
253
|
duplicates: false,
|
|
254
254
|
delimiter: ",",
|
|
255
255
|
copyClassesToDropdown: false,
|
|
256
|
-
placeholder: this.placeholder,
|
|
257
256
|
hidePlaceholder: null,
|
|
258
257
|
// if you want the user to be able to add own items enable this option
|
|
259
258
|
// (but checkbox_options plugin throws an error and would need a fix first)
|
|
@@ -451,13 +450,12 @@ export class StzhDropdown {
|
|
|
451
450
|
"stzh-dropdown--has-description": descriptionUsed,
|
|
452
451
|
"stzh-dropdown--has-description-long": descriptionLongUsed,
|
|
453
452
|
"stzh-dropdown--has-error": errorUsed,
|
|
454
|
-
"stzh-dropdown--has-placeholder": !!this.placeholder,
|
|
455
453
|
"stzh-dropdown--has-fixed-label": ((_a = window === null || window === void 0 ? void 0 : window.stzhComponents) === null || _a === void 0 ? void 0 : _a.labels) === "fixed",
|
|
456
454
|
[`stzh-dropdown--popover-placement-${this.popoverPlacement}`]: !!this.popoverPlacement,
|
|
457
455
|
[`stzh-dropdown--size-${this.size}`]: !!this.size,
|
|
458
456
|
[`stzh-dropdown--${this.variant}`]: !!this.variant
|
|
459
457
|
};
|
|
460
|
-
return (h(Host, null, h("div", { class: classes, ref: (el) => (this.rootElement = el) }, h("div", { class: "stzh-dropdown__field-wrapper" }, h("select", { id: this.dropdownId, class: "stzh-dropdown__select", ref: (el) => (this.select = el), multiple: this.multiple, name: this.name, disabled: this.disabled, "aria-invalid": this.invalid ? "true" : "false", "aria-describedby": `${this.dropdownId}-description ${this.a11yDescribedby}`, "aria-required": this.required ? "true" : "false" }, h("slot", null)), h("
|
|
458
|
+
return (h(Host, null, h("div", { class: classes, ref: (el) => (this.rootElement = el) }, h("div", { class: "stzh-dropdown__field-wrapper" }, h("select", { id: this.dropdownId, class: "stzh-dropdown__select", ref: (el) => (this.select = el), multiple: this.multiple, name: this.name, disabled: this.disabled, "aria-invalid": this.invalid ? "true" : "false", "aria-describedby": `${this.dropdownId}-description ${this.a11yDescribedby}`, "aria-required": this.required ? "true" : "false" }, h("slot", null)), h("stzh-icon", { name: "angle-down", class: "stzh-dropdown__angle-icon" }), h("div", { class: "stzh-dropdown__icon-wrapper" }, this.icon ?
|
|
461
459
|
h("stzh-icon", { class: "stzh-dropdown__icon", name: this.icon })
|
|
462
460
|
:
|
|
463
461
|
h("slot", { name: "icon" })), h("label", { class: "stzh-dropdown__label", htmlFor: this.dropdownId }, this.label ? this.label : h("slot", { name: "label" }), this.showMarker &&
|
|
@@ -1123,26 +1121,6 @@ export class StzhDropdown {
|
|
|
1123
1121
|
"attribute": "error",
|
|
1124
1122
|
"reflect": false
|
|
1125
1123
|
},
|
|
1126
|
-
"placeholder": {
|
|
1127
|
-
"type": "string",
|
|
1128
|
-
"mutable": false,
|
|
1129
|
-
"complexType": {
|
|
1130
|
-
"original": "string",
|
|
1131
|
-
"resolved": "string",
|
|
1132
|
-
"references": {}
|
|
1133
|
-
},
|
|
1134
|
-
"required": false,
|
|
1135
|
-
"optional": false,
|
|
1136
|
-
"docs": {
|
|
1137
|
-
"tags": [{
|
|
1138
|
-
"name": "deprecated",
|
|
1139
|
-
"text": undefined
|
|
1140
|
-
}],
|
|
1141
|
-
"text": "Placeholder option"
|
|
1142
|
-
},
|
|
1143
|
-
"attribute": "placeholder",
|
|
1144
|
-
"reflect": false
|
|
1145
|
-
},
|
|
1146
1124
|
"localization": {
|
|
1147
1125
|
"type": "unknown",
|
|
1148
1126
|
"mutable": false,
|
|
@@ -1406,10 +1384,13 @@ export class StzhDropdown {
|
|
|
1406
1384
|
},
|
|
1407
1385
|
"setValue": {
|
|
1408
1386
|
"complexType": {
|
|
1409
|
-
"signature": "(newValue: string | string[]) => Promise<void>",
|
|
1387
|
+
"signature": "(newValue: string | string[], silent?: boolean) => Promise<void>",
|
|
1410
1388
|
"parameters": [{
|
|
1411
1389
|
"tags": [],
|
|
1412
1390
|
"text": ""
|
|
1391
|
+
}, {
|
|
1392
|
+
"tags": [],
|
|
1393
|
+
"text": ""
|
|
1413
1394
|
}],
|
|
1414
1395
|
"references": {
|
|
1415
1396
|
"Promise": {
|