@oiz/stzh-components 2.0.0-beta → 2.1.0-alpha
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-58a084a9.js → app-globals-e1f4f1d9.js} +1 -1
- package/dist/cjs/{dom-874a1e39.js → dom-9deb26c8.js} +1 -1
- package/dist/cjs/{index-ac9bdc7f.js → index-9fcb4305.js} +228 -210
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{shadow-css-a33dc836.js → shadow-css-bf3843d2.js} +1 -1
- package/dist/cjs/stzh-accordion-item.cjs.entry.js +34 -26
- package/dist/cjs/stzh-accordion.cjs.entry.js +1 -3
- package/dist/cjs/stzh-actions.cjs.entry.js +3 -5
- package/dist/cjs/stzh-actionset.cjs.entry.js +16 -24
- package/dist/cjs/stzh-anchornav.cjs.entry.js +52 -0
- package/dist/cjs/stzh-appnav.cjs.entry.js +4 -7
- package/dist/cjs/stzh-appointments.cjs.entry.js +12 -17
- package/dist/cjs/stzh-audio.cjs.entry.js +4150 -0
- package/dist/cjs/stzh-badge_3.cjs.entry.js +38 -59
- package/dist/cjs/stzh-calendar.cjs.entry.js +9 -25
- package/dist/cjs/stzh-card-list.cjs.entry.js +23 -26
- package/dist/cjs/stzh-card.cjs.entry.js +37 -49
- package/dist/cjs/stzh-cell.cjs.entry.js +1 -8
- package/dist/cjs/stzh-checkbox.cjs.entry.js +15 -20
- package/dist/cjs/stzh-checkboxgroup.cjs.entry.js +29 -20
- package/dist/cjs/stzh-chip-select.cjs.entry.js +57 -11
- package/dist/cjs/stzh-chip.cjs.entry.js +15 -24
- package/dist/cjs/stzh-clamp.cjs.entry.js +27 -0
- package/dist/cjs/stzh-components.cjs.js +5 -5
- package/dist/cjs/stzh-container.cjs.entry.js +1 -1
- package/dist/cjs/stzh-cspace.cjs.entry.js +2 -2
- package/dist/cjs/stzh-datalist.cjs.entry.js +8 -20
- package/dist/cjs/stzh-datamessagelist-item.cjs.entry.js +12 -12
- package/dist/cjs/stzh-datamessagelist.cjs.entry.js +1 -1
- package/dist/cjs/stzh-datatable.cjs.entry.js +16 -22
- package/dist/cjs/stzh-datepicker_3.cjs.entry.js +431 -0
- package/dist/cjs/stzh-dialog.cjs.entry.js +12 -20
- package/dist/cjs/stzh-dropdown.cjs.entry.js +17 -37
- package/dist/cjs/stzh-fieldset.cjs.entry.js +1 -5
- package/dist/cjs/stzh-figure.cjs.entry.js +1 -3
- package/dist/cjs/stzh-flyingfocus.cjs.entry.js +7 -7
- package/dist/cjs/stzh-footer.cjs.entry.js +5 -5
- package/dist/cjs/stzh-ghettobox_2.cjs.entry.js +10 -21
- package/dist/cjs/stzh-header.cjs.entry.js +3 -9
- package/dist/cjs/stzh-heading.cjs.entry.js +2 -5
- package/dist/cjs/stzh-hr.cjs.entry.js +1 -1
- package/dist/cjs/stzh-hspace.cjs.entry.js +2 -11
- package/dist/cjs/stzh-icon-sprite.cjs.entry.js +2 -2
- package/dist/cjs/{stzh-input-description-9802abc2.js → stzh-input-description-4326b0d9.js} +1 -1
- package/dist/cjs/stzh-input.cjs.entry.js +32 -39
- package/dist/cjs/stzh-link.cjs.entry.js +27 -33
- package/dist/cjs/stzh-list-item.cjs.entry.js +1 -1
- package/dist/cjs/stzh-list.cjs.entry.js +1 -2
- package/dist/cjs/stzh-loader.cjs.entry.js +1 -4
- package/dist/cjs/stzh-loadingbar.cjs.entry.js +1 -4
- package/dist/cjs/stzh-menu_2.cjs.entry.js +13 -17
- package/dist/cjs/stzh-message.cjs.entry.js +6 -19
- package/dist/cjs/stzh-metanav.cjs.entry.js +1 -1
- package/dist/cjs/stzh-olmap.cjs.entry.js +51129 -0
- package/dist/cjs/stzh-overlay.cjs.entry.js +1 -4
- package/dist/cjs/stzh-page-skiplinks.cjs.entry.js +1 -1
- package/dist/cjs/stzh-pagetitle.cjs.entry.js +2 -2
- package/dist/cjs/stzh-popover.cjs.entry.js +10 -13
- package/dist/cjs/stzh-portal-mitwirken.cjs.entry.js +2 -2
- package/dist/cjs/stzh-progressbar-item.cjs.entry.js +9 -9
- package/dist/cjs/stzh-progressbar.cjs.entry.js +9 -24
- package/dist/cjs/stzh-readspeaker.cjs.entry.js +3 -1
- package/dist/cjs/stzh-row.cjs.entry.js +1 -9
- package/dist/cjs/stzh-saptcha.cjs.entry.js +5 -8
- package/dist/cjs/stzh-section.cjs.entry.js +1 -2
- package/dist/cjs/stzh-skiplink.cjs.entry.js +4 -2
- package/dist/cjs/stzh-sortable.cjs.entry.js +29 -32
- package/dist/cjs/stzh-status.cjs.entry.js +1 -5
- package/dist/cjs/stzh-sticky.cjs.entry.js +84 -0
- package/dist/cjs/stzh-table.cjs.entry.js +9 -11
- package/dist/cjs/stzh-text.cjs.entry.js +37 -0
- package/dist/cjs/stzh-toggle.cjs.entry.js +16 -22
- package/dist/cjs/stzh-tooltip.cjs.entry.js +12 -23
- package/dist/cjs/stzh-upload.cjs.entry.js +52 -131
- package/dist/cjs/stzh-vbz-linechip.cjs.entry.js +5 -7
- package/dist/cjs/stzh-vbz-majorticker.cjs.entry.js +8 -9
- package/dist/cjs/stzh-vbz-ticker.cjs.entry.js +7 -8
- package/dist/cjs/stzh-visuallyhidden.cjs.entry.js +1 -1
- package/dist/cjs/stzh-vspace.cjs.entry.js +2 -11
- package/dist/collection/assets/i18n/de.json +19 -0
- package/dist/collection/assets/i18n/en.json +19 -0
- package/dist/collection/assets/icons/mono/code-window.svg +3 -0
- package/dist/collection/assets/icons/mono/target-bullet.svg +12 -0
- package/dist/collection/assets/media/olmap/marker-active.png +0 -0
- package/dist/collection/assets/media/olmap/marker-position.png +0 -0
- package/dist/collection/assets/media/olmap/marker.png +0 -0
- package/dist/collection/assets/media/olmap/thumb-satellite.jpg +0 -0
- package/dist/collection/assets/media/olmap/thumb-streets.jpg +0 -0
- package/dist/collection/collection-manifest.json +7 -2
- package/dist/collection/components/stzh-accordion/stzh-accordion.js +0 -2
- package/dist/collection/components/stzh-accordion-item/stzh-accordion-item.css +34 -8
- package/dist/collection/components/stzh-accordion-item/stzh-accordion-item.js +123 -24
- package/dist/collection/components/stzh-accordion-item/stzh-accordion-item.stories.js +9 -0
- package/dist/collection/components/stzh-actions/stzh-actions.js +2 -4
- package/dist/collection/components/stzh-actionset/stzh-actionset.js +21 -29
- package/dist/collection/components/stzh-anchornav/stzh-anchornav.css +286 -0
- package/dist/collection/components/stzh-anchornav/stzh-anchornav.js +216 -0
- package/dist/collection/components/stzh-anchornav/stzh-anchornav.stories.js +76 -0
- package/dist/collection/components/stzh-appnav/stzh-appnav.js +3 -6
- package/dist/collection/components/stzh-appointments/stzh-appointments.js +11 -16
- package/dist/collection/components/stzh-audio/stzh-audio.css +319 -0
- package/dist/collection/components/stzh-audio/stzh-audio.js +333 -0
- package/dist/collection/components/stzh-audio/stzh-audio.localization.js +1 -0
- package/dist/collection/components/stzh-audio/stzh-audio.stories.js +89 -0
- package/dist/collection/components/stzh-badge/stzh-badge.css +22 -2
- package/dist/collection/components/stzh-badge/stzh-badge.js +24 -2
- package/dist/collection/components/stzh-button/stzh-button.css +1 -0
- package/dist/collection/components/stzh-button/stzh-button.js +65 -46
- package/dist/collection/components/stzh-calendar/stzh-calendar.js +8 -24
- package/dist/collection/components/stzh-card/stzh-card.css +2 -14
- package/dist/collection/components/stzh-card/stzh-card.js +39 -69
- package/dist/collection/components/stzh-card/stzh-card.stories.js +1 -4
- package/dist/collection/components/stzh-card-list/stzh-card-list.js +25 -54
- package/dist/collection/components/stzh-card-list/stzh-card-list.stories.js +2 -2
- package/dist/collection/components/stzh-cell/stzh-cell.js +0 -7
- package/dist/collection/components/stzh-checkbox/stzh-checkbox.js +13 -18
- package/dist/collection/components/stzh-checkboxgroup/stzh-checkboxgroup.js +33 -20
- package/dist/collection/components/stzh-chip/stzh-chip.js +49 -23
- package/dist/collection/components/stzh-chip-select/stzh-chip-select.css +80 -0
- package/dist/collection/components/stzh-chip-select/stzh-chip-select.js +217 -9
- package/dist/collection/components/stzh-clamp/stzh-clamp.css +279 -0
- package/dist/collection/components/stzh-clamp/stzh-clamp.js +125 -0
- package/dist/collection/components/stzh-clamp/stzh-clamp.stories.js +41 -0
- package/dist/collection/components/stzh-cspace/stzh-cspace.css +87 -176
- package/dist/collection/components/stzh-datalist/stzh-datalist.js +7 -19
- package/dist/collection/components/stzh-datamessagelist-item/stzh-datamessagelist-item.css +3 -8
- package/dist/collection/components/stzh-datamessagelist-item/stzh-datamessagelist-item.js +10 -10
- package/dist/collection/components/stzh-datatable/stzh-datatable.css +5 -0
- package/dist/collection/components/stzh-datatable/stzh-datatable.js +14 -20
- package/dist/collection/components/stzh-datepicker/stzh-datepicker.js +19 -35
- package/dist/collection/components/stzh-dialog/stzh-dialog.css +9 -19
- package/dist/collection/components/stzh-dialog/stzh-dialog.js +10 -18
- package/dist/collection/components/stzh-dropdown/stzh-dropdown.js +15 -35
- package/dist/collection/components/stzh-fieldset/stzh-fieldset.js +0 -4
- package/dist/collection/components/stzh-figure/stzh-figure.js +0 -2
- package/dist/collection/components/stzh-flyingfocus/stzh-flyingfocus.js +6 -6
- package/dist/collection/components/stzh-footer/stzh-footer.js +4 -4
- package/dist/collection/components/stzh-ghettobox/stzh-ghettobox.css +16 -16
- package/dist/collection/components/stzh-ghettobox/stzh-ghettobox.js +7 -16
- package/dist/collection/components/stzh-ghettobox/stzh-ghettobox.stories.js +6 -6
- package/dist/collection/components/stzh-header/stzh-header.js +2 -8
- package/dist/collection/components/stzh-heading/stzh-heading.css +5 -15
- package/dist/collection/components/stzh-heading/stzh-heading.js +0 -3
- package/dist/collection/components/stzh-hr/stzh-hr.stories.js +11 -1
- package/dist/collection/components/stzh-hspace/stzh-hspace.css +19 -24
- package/dist/collection/components/stzh-hspace/stzh-hspace.js +0 -9
- package/dist/collection/components/stzh-icon/stzh-icon.js +0 -8
- package/dist/collection/components/stzh-icon-sprite/assets/svgsprites/symbol/sprite.symbol.html +58 -32
- package/dist/collection/components/stzh-icon-sprite/assets/svgsprites/symbol/svg/sprite.symbol.svg +1 -1
- package/dist/collection/components/stzh-input/stzh-input.js +31 -38
- package/dist/collection/components/stzh-link/stzh-link.css +18 -0
- package/dist/collection/components/stzh-link/stzh-link.js +97 -31
- package/dist/collection/components/stzh-link/stzh-link.stories.js +3 -1
- package/dist/collection/components/stzh-list/stzh-list.js +0 -1
- package/dist/collection/components/stzh-loader/stzh-loader.js +0 -3
- package/dist/collection/components/stzh-loadingbar/stzh-loadingbar.js +0 -3
- package/dist/collection/components/stzh-menu-item/stzh-menu-item.js +48 -16
- package/dist/collection/components/stzh-message/stzh-message.css +5 -0
- package/dist/collection/components/stzh-message/stzh-message.js +4 -17
- package/dist/collection/components/stzh-olmap/stzh-olmap.css +284 -0
- package/dist/collection/components/stzh-olmap/stzh-olmap.js +1042 -0
- package/dist/collection/components/stzh-olmap/stzh-olmap.localization.js +1 -0
- package/dist/collection/components/stzh-olmap/stzh-olmap.stories.js +36 -0
- package/dist/collection/components/stzh-overlay/stzh-overlay.js +0 -3
- package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.css +3 -8
- package/dist/collection/components/stzh-popover/stzh-popover.js +9 -12
- package/dist/collection/components/stzh-portal-mitwirken/stzh-portal-mitwirken.css +226 -337
- package/dist/collection/components/stzh-portal-mitwirken/stzh-portal-mitwirken.js +1 -2
- package/dist/collection/components/stzh-portal-mitwirken/stzh-portal-mitwirken.stories.js +1 -1
- package/dist/collection/components/stzh-progressbar/stzh-progressbar.js +8 -23
- package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.js +8 -8
- package/dist/collection/components/stzh-radio/stzh-radio.js +13 -18
- package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.js +34 -22
- package/dist/collection/components/stzh-readspeaker/stzh-readspeaker.js +2 -0
- package/dist/collection/components/stzh-richtext/stzh-richtext.css +88 -129
- package/dist/collection/components/stzh-richtext/stzh-richtext.js +0 -2
- package/dist/collection/components/stzh-row/stzh-row.js +0 -8
- package/dist/collection/components/stzh-saptcha/stzh-saptcha.css +8 -8
- package/dist/collection/components/stzh-saptcha/stzh-saptcha.js +3 -6
- package/dist/collection/components/stzh-section/stzh-section.js +0 -1
- package/dist/collection/components/stzh-skiplink/stzh-skiplink.js +3 -1
- package/dist/collection/components/stzh-sortable/stzh-sortable.css +12 -6
- package/dist/collection/components/stzh-sortable/stzh-sortable.js +27 -30
- package/dist/collection/components/stzh-status/stzh-status.js +0 -4
- package/dist/collection/components/stzh-sticky/stzh-sticky.css +144 -0
- package/dist/collection/components/stzh-sticky/stzh-sticky.js +184 -0
- package/dist/collection/components/stzh-sticky/stzh-sticky.stories.js +91 -0
- package/dist/collection/components/stzh-table/stzh-table.css +5 -0
- package/dist/collection/components/stzh-table/stzh-table.js +7 -9
- package/dist/collection/components/stzh-text/stzh-text.js +0 -8
- package/dist/collection/components/stzh-toggle/stzh-toggle.js +14 -20
- package/dist/collection/components/stzh-tooltip/stzh-tooltip.js +11 -22
- package/dist/collection/components/stzh-upload/stzh-upload.css +16 -7
- package/dist/collection/components/stzh-upload/stzh-upload.js +49 -128
- package/dist/collection/components/stzh-upload/stzh-upload.stories.js +1 -1
- package/dist/collection/components/stzh-vbz-linechip/stzh-vbz-linechip.js +4 -6
- package/dist/collection/components/stzh-vbz-majorticker/stzh-vbz-majorticker.js +7 -8
- package/dist/collection/components/stzh-vbz-ticker/stzh-vbz-ticker.css +2 -7
- package/dist/collection/components/stzh-vbz-ticker/stzh-vbz-ticker.js +5 -6
- package/dist/collection/components/stzh-vspace/stzh-vspace.css +19 -24
- package/dist/collection/components/stzh-vspace/stzh-vspace.js +0 -9
- package/dist/collection/pages/meinkonto.stories.js +3 -3
- package/dist/components/index.d.ts +5 -0
- package/dist/components/index.js +6 -1
- package/dist/components/stzh-accordion-item.js +51 -26
- package/dist/components/stzh-accordion.js +0 -2
- package/dist/components/stzh-actions.js +2 -4
- package/dist/components/stzh-actionset2.js +15 -23
- package/dist/components/stzh-anchornav.d.ts +11 -0
- package/dist/components/stzh-anchornav.js +97 -0
- package/dist/components/stzh-appnav.js +3 -6
- package/dist/components/stzh-appointments.js +11 -16
- package/dist/components/stzh-audio.d.ts +11 -0
- package/dist/components/stzh-audio.js +4195 -0
- package/dist/components/stzh-badge2.js +9 -4
- package/dist/components/stzh-button2.js +32 -47
- package/dist/components/stzh-calendar2.js +8 -24
- package/dist/components/stzh-card-list.js +23 -27
- package/dist/components/stzh-card.js +36 -49
- package/dist/components/stzh-cell.js +0 -7
- package/dist/components/stzh-checkbox.js +13 -18
- package/dist/components/stzh-checkboxgroup.js +28 -19
- package/dist/components/stzh-chip-select.js +67 -12
- package/dist/components/stzh-chip2.js +16 -23
- package/dist/components/stzh-clamp.d.ts +11 -0
- package/dist/components/stzh-clamp.js +6 -0
- package/dist/components/stzh-clamp2.js +43 -0
- package/dist/components/stzh-cspace.js +1 -1
- package/dist/components/stzh-datalist.js +7 -19
- package/dist/components/stzh-datamessagelist-item.js +11 -11
- package/dist/components/stzh-datatable.js +15 -21
- package/dist/components/stzh-datepicker2.js +19 -35
- package/dist/components/stzh-dialog.js +11 -19
- package/dist/components/stzh-dropdown2.js +15 -35
- package/dist/components/stzh-fieldset.js +0 -4
- package/dist/components/stzh-figure.js +0 -2
- package/dist/components/stzh-flyingfocus.js +6 -6
- package/dist/components/stzh-footer.js +4 -4
- package/dist/components/stzh-ghettobox2.js +8 -17
- package/dist/components/stzh-header.js +2 -8
- package/dist/components/stzh-heading2.js +1 -4
- package/dist/components/stzh-hspace.js +1 -10
- package/dist/components/stzh-icon-sprite.js +1 -1
- package/dist/components/stzh-icon2.js +0 -8
- package/dist/components/stzh-input2.js +30 -37
- package/dist/components/stzh-link2.js +30 -32
- package/dist/components/stzh-list.js +0 -1
- package/dist/components/stzh-loader.js +1 -43
- package/dist/components/stzh-loader2.js +42 -0
- package/dist/components/stzh-loadingbar.js +0 -3
- package/dist/components/stzh-menu-item2.js +14 -16
- package/dist/components/stzh-message.js +5 -18
- package/dist/components/stzh-olmap.d.ts +11 -0
- package/dist/components/stzh-olmap.js +51168 -0
- package/dist/components/stzh-overlay.js +0 -3
- package/dist/components/stzh-pagetitle.js +1 -1
- package/dist/components/stzh-popover2.js +9 -12
- package/dist/components/stzh-portal-mitwirken.js +1 -1
- package/dist/components/stzh-progressbar-item2.js +8 -8
- package/dist/components/stzh-progressbar.js +8 -23
- package/dist/components/stzh-radio2.js +13 -18
- package/dist/components/stzh-radiogroup2.js +29 -21
- package/dist/components/stzh-readspeaker.js +2 -0
- package/dist/components/stzh-richtext2.js +1 -3
- package/dist/components/stzh-row.js +0 -8
- package/dist/components/stzh-saptcha.js +4 -7
- package/dist/components/stzh-section.js +0 -1
- package/dist/components/stzh-skiplink.js +3 -1
- package/dist/components/stzh-sortable2.js +28 -31
- package/dist/components/stzh-status2.js +0 -4
- package/dist/components/stzh-sticky.d.ts +11 -0
- package/dist/components/stzh-sticky.js +102 -0
- package/dist/components/stzh-table.js +8 -10
- package/dist/components/stzh-text2.js +0 -8
- package/dist/components/stzh-toggle.js +14 -20
- package/dist/components/stzh-tooltip2.js +11 -22
- package/dist/components/stzh-upload.js +50 -129
- package/dist/components/stzh-vbz-linechip2.js +4 -6
- package/dist/components/stzh-vbz-majorticker.js +7 -8
- package/dist/components/stzh-vbz-ticker.js +6 -7
- package/dist/components/stzh-vspace.js +1 -10
- package/dist/esm/{app-globals-6b6ff890.js → app-globals-453acbdb.js} +1 -1
- package/dist/esm/{dom-104fb833.js → dom-6be6f662.js} +1 -1
- package/dist/esm/{index-84f71a43.js → index-2915b467.js} +228 -210
- package/dist/esm/loader.js +4 -4
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/{shadow-css-4261c637.js → shadow-css-ed4599f8.js} +1 -1
- package/dist/esm/stzh-accordion-item.entry.js +34 -26
- package/dist/esm/stzh-accordion.entry.js +1 -3
- package/dist/esm/stzh-actions.entry.js +3 -5
- package/dist/esm/stzh-actionset.entry.js +16 -24
- package/dist/esm/stzh-anchornav.entry.js +48 -0
- package/dist/esm/stzh-appnav.entry.js +4 -7
- package/dist/esm/stzh-appointments.entry.js +12 -17
- package/dist/esm/stzh-audio.entry.js +4146 -0
- package/dist/esm/stzh-badge_3.entry.js +38 -59
- package/dist/esm/stzh-calendar.entry.js +10 -26
- package/dist/esm/stzh-card-list.entry.js +23 -26
- package/dist/esm/stzh-card.entry.js +37 -49
- package/dist/esm/stzh-cell.entry.js +1 -8
- package/dist/esm/stzh-checkbox.entry.js +15 -20
- package/dist/esm/stzh-checkboxgroup.entry.js +29 -20
- package/dist/esm/stzh-chip-select.entry.js +57 -11
- package/dist/esm/stzh-chip.entry.js +15 -24
- package/dist/esm/stzh-clamp.entry.js +23 -0
- package/dist/esm/stzh-components.js +5 -5
- 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 +8 -20
- package/dist/esm/stzh-datamessagelist-item.entry.js +12 -12
- package/dist/esm/stzh-datamessagelist.entry.js +1 -1
- package/dist/esm/stzh-datatable.entry.js +16 -22
- package/dist/esm/stzh-datepicker_3.entry.js +425 -0
- package/dist/esm/stzh-dialog.entry.js +12 -20
- package/dist/esm/stzh-dropdown.entry.js +17 -37
- package/dist/esm/stzh-fieldset.entry.js +1 -5
- package/dist/esm/stzh-figure.entry.js +1 -3
- package/dist/esm/stzh-flyingfocus.entry.js +7 -7
- package/dist/esm/stzh-footer.entry.js +5 -5
- package/dist/esm/stzh-ghettobox_2.entry.js +10 -21
- package/dist/esm/stzh-header.entry.js +3 -9
- package/dist/esm/stzh-heading.entry.js +2 -5
- package/dist/esm/stzh-hr.entry.js +1 -1
- package/dist/esm/stzh-hspace.entry.js +2 -11
- package/dist/esm/stzh-icon-sprite.entry.js +2 -2
- package/dist/esm/{stzh-input-description-8c477f97.js → stzh-input-description-e87e6697.js} +1 -1
- package/dist/esm/stzh-input.entry.js +32 -39
- package/dist/esm/stzh-link.entry.js +27 -33
- package/dist/esm/stzh-list-item.entry.js +1 -1
- package/dist/esm/stzh-list.entry.js +1 -2
- package/dist/esm/stzh-loader.entry.js +1 -4
- package/dist/esm/stzh-loadingbar.entry.js +1 -4
- package/dist/esm/stzh-menu_2.entry.js +13 -17
- package/dist/esm/stzh-message.entry.js +6 -19
- package/dist/esm/stzh-metanav.entry.js +1 -1
- package/dist/esm/stzh-olmap.entry.js +51125 -0
- package/dist/esm/stzh-overlay.entry.js +1 -4
- 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 +10 -13
- package/dist/esm/stzh-portal-mitwirken.entry.js +2 -2
- package/dist/esm/stzh-progressbar-item.entry.js +9 -9
- package/dist/esm/stzh-progressbar.entry.js +9 -24
- package/dist/esm/stzh-readspeaker.entry.js +3 -1
- package/dist/esm/stzh-row.entry.js +1 -9
- package/dist/esm/stzh-saptcha.entry.js +5 -8
- package/dist/esm/stzh-section.entry.js +1 -2
- package/dist/esm/stzh-skiplink.entry.js +4 -2
- package/dist/esm/stzh-sortable.entry.js +29 -32
- package/dist/esm/stzh-status.entry.js +1 -5
- package/dist/esm/stzh-sticky.entry.js +80 -0
- package/dist/esm/stzh-table.entry.js +9 -11
- package/dist/esm/stzh-text.entry.js +33 -0
- package/dist/esm/stzh-toggle.entry.js +16 -22
- package/dist/esm/stzh-tooltip.entry.js +12 -23
- package/dist/esm/stzh-upload.entry.js +52 -131
- package/dist/esm/stzh-vbz-linechip.entry.js +5 -7
- package/dist/esm/stzh-vbz-majorticker.entry.js +8 -9
- package/dist/esm/stzh-vbz-ticker.entry.js +7 -8
- package/dist/esm/stzh-visuallyhidden.entry.js +1 -1
- package/dist/esm/stzh-vspace.entry.js +2 -11
- package/dist/esm-es5/app-globals-453acbdb.js +1 -0
- package/dist/esm-es5/{dom-104fb833.js → dom-6be6f662.js} +0 -0
- package/dist/esm-es5/index-2915b467.js +2 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{shadow-css-4261c637.js → shadow-css-ed4599f8.js} +0 -0
- 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 -1
- package/dist/esm-es5/stzh-anchornav.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-audio.entry.js +31 -0
- 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 -1
- package/dist/esm-es5/stzh-card.entry.js +1 -1
- 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-clamp.entry.js +1 -0
- 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 -1
- 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 +2 -2
- package/dist/esm-es5/stzh-datepicker_3.entry.js +1 -0
- 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-8c477f97.js → stzh-input-description-e87e6697.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-olmap.entry.js +7 -0
- 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-sticky.entry.js +1 -0
- package/dist/esm-es5/stzh-table.entry.js +1 -1
- package/dist/{stzh-components/p-fc6b4f91.system.entry.js → esm-es5/stzh-text.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 +19 -0
- package/dist/stzh-components/assets/i18n/en.json +19 -0
- package/dist/stzh-components/assets/icons/mono/code-window.svg +3 -0
- package/dist/stzh-components/assets/icons/mono/target-bullet.svg +12 -0
- package/dist/stzh-components/assets/media/olmap/marker-active.png +0 -0
- package/dist/stzh-components/assets/media/olmap/marker-position.png +0 -0
- package/dist/stzh-components/assets/media/olmap/marker.png +0 -0
- package/dist/stzh-components/assets/media/olmap/thumb-satellite.jpg +0 -0
- package/dist/stzh-components/assets/media/olmap/thumb-streets.jpg +0 -0
- package/dist/stzh-components/assets/svgsprites/symbol/sprite.symbol.html +58 -32
- package/dist/stzh-components/assets/svgsprites/symbol/svg/sprite.symbol.svg +1 -1
- package/dist/stzh-components/{p-5a354428.system.entry.js → p-011dcf30.system.entry.js} +1 -1
- package/dist/stzh-components/p-01909f35.system.entry.js +1 -0
- package/dist/stzh-components/p-020379d7.system.entry.js +7 -0
- package/dist/stzh-components/p-025953d1.system.entry.js +1 -0
- package/dist/stzh-components/{p-981b2629.system.entry.js → p-0321e98e.system.entry.js} +1 -1
- package/dist/stzh-components/p-04dd6821.entry.js +1 -0
- package/dist/stzh-components/p-05901b22.system.entry.js +1 -0
- package/dist/stzh-components/{p-fdf0b4bc.system.entry.js → p-08714718.system.entry.js} +1 -1
- package/dist/stzh-components/p-090bfb8e.system.entry.js +1 -0
- package/dist/stzh-components/p-0977d9b6.entry.js +1 -0
- package/dist/stzh-components/{p-8f16b0ac.entry.js → p-0c10d9b1.entry.js} +2 -2
- package/dist/stzh-components/p-0e474d1a.system.entry.js +1 -0
- package/dist/stzh-components/p-0e48efa7.entry.js +1 -0
- package/dist/stzh-components/{p-4c61dcad.js → p-13051e1c.js} +0 -0
- package/dist/stzh-components/{p-b9295dc2.entry.js → p-1399b2d7.entry.js} +1 -1
- package/dist/stzh-components/p-140e4b63.entry.js +1 -0
- package/dist/stzh-components/p-14f0d546.entry.js +1 -0
- package/dist/stzh-components/p-183e4790.system.entry.js +1 -0
- package/dist/stzh-components/p-1a5fc8e3.system.entry.js +1 -0
- package/dist/stzh-components/{p-db5363ef.entry.js → p-20a6ffbb.entry.js} +1 -1
- package/dist/stzh-components/p-229f4ebc.system.entry.js +1 -0
- package/dist/stzh-components/{p-89274cd5.system.entry.js → p-26159eac.system.entry.js} +1 -1
- package/dist/stzh-components/{p-6523a23b.system.js → p-2732d8c8.system.js} +0 -0
- package/dist/stzh-components/{p-56b9cc3c.system.entry.js → p-27573504.system.entry.js} +1 -1
- package/dist/stzh-components/p-27839f48.entry.js +1 -0
- package/dist/stzh-components/{p-fc13d017.system.entry.js → p-27bfb4c2.system.entry.js} +1 -1
- package/dist/stzh-components/{p-29427863.entry.js → p-29d9a568.entry.js} +1 -1
- package/dist/stzh-components/p-2bf021f2.js +1 -0
- package/dist/stzh-components/{p-f1356a85.entry.js → p-2c16d2ea.entry.js} +1 -1
- package/dist/stzh-components/p-2c783943.entry.js +1 -0
- package/dist/stzh-components/p-2c891eee.entry.js +1 -0
- package/dist/stzh-components/{p-17c6c1db.system.entry.js → p-2e276f2e.system.entry.js} +1 -1
- package/dist/stzh-components/{p-5bd2849d.entry.js → p-30e5a674.entry.js} +1 -1
- package/dist/stzh-components/{p-19bff884.system.entry.js → p-33a52001.system.entry.js} +1 -1
- package/dist/stzh-components/p-34eb65b9.entry.js +1 -0
- package/dist/stzh-components/p-3623b3a5.system.js +1 -0
- package/dist/stzh-components/p-36596b2b.system.entry.js +1 -0
- package/dist/stzh-components/{p-d6c07494.system.entry.js → p-37bdb9cd.system.entry.js} +1 -1
- package/dist/stzh-components/p-38977481.entry.js +1 -0
- package/dist/stzh-components/p-3a279b45.entry.js +1 -0
- package/dist/stzh-components/p-3a47ff2d.system.entry.js +1 -0
- package/dist/stzh-components/p-3b33fa76.system.entry.js +1 -0
- package/dist/stzh-components/{p-2b338050.entry.js → p-3e24b964.entry.js} +1 -1
- package/dist/stzh-components/{p-ee22256f.entry.js → p-3e504f50.entry.js} +1 -1
- package/dist/stzh-components/{p-b9382599.entry.js → p-3efefb7f.entry.js} +1 -1
- package/dist/stzh-components/{p-8a9e588e.system.entry.js → p-3f8976bc.system.entry.js} +1 -1
- package/dist/stzh-components/{p-8d0da18d.system.entry.js → p-3fc40cc0.system.entry.js} +1 -1
- package/dist/stzh-components/{p-4c6989ae.system.entry.js → p-440ae0cc.system.entry.js} +1 -1
- package/dist/stzh-components/{p-b550feaa.system.entry.js → p-44435254.system.entry.js} +1 -1
- package/dist/stzh-components/{p-ab246b66.entry.js → p-456143f9.entry.js} +1 -1
- package/dist/stzh-components/{p-190de4de.entry.js → p-46f4e907.entry.js} +1 -1
- package/dist/stzh-components/p-470e5f38.system.entry.js +1 -0
- package/dist/stzh-components/{p-ce070ccd.entry.js → p-4b93fb24.entry.js} +1 -1
- package/dist/stzh-components/p-509c97c9.system.entry.js +1 -0
- package/dist/stzh-components/{p-0fc83964.system.entry.js → p-529a56aa.system.entry.js} +1 -1
- package/dist/stzh-components/{p-63d89b96.system.js → p-52cd1bd1.system.js} +1 -1
- package/dist/stzh-components/p-53c30c58.entry.js +1 -0
- package/dist/stzh-components/p-55435022.system.entry.js +1 -0
- package/dist/stzh-components/p-554fb3ac.system.js +1 -0
- package/dist/stzh-components/{p-e213663c.system.entry.js → p-5869502c.system.entry.js} +1 -1
- package/dist/stzh-components/p-58714045.entry.js +1 -0
- package/dist/stzh-components/p-59970f71.entry.js +1 -0
- package/dist/stzh-components/{p-3d8317b5.entry.js → p-5c2d0572.entry.js} +1 -1
- package/dist/stzh-components/p-5c311df3.entry.js +1 -0
- package/dist/stzh-components/{p-72f29f07.entry.js → p-5e81420b.entry.js} +1 -1
- package/dist/stzh-components/p-609bf766.system.js +2 -0
- package/dist/stzh-components/{p-f832e938.system.entry.js → p-616e70e9.system.entry.js} +1 -1
- package/dist/stzh-components/p-62afe664.entry.js +1 -0
- package/dist/stzh-components/p-62c7caed.entry.js +1 -0
- package/dist/stzh-components/{p-851e0caa.system.entry.js → p-641126a8.system.entry.js} +1 -1
- package/dist/stzh-components/p-648e03bc.entry.js +1 -0
- package/dist/stzh-components/p-652eee8b.system.entry.js +1 -0
- package/dist/stzh-components/{p-69c3187f.system.entry.js → p-67ade1c7.system.entry.js} +1 -1
- package/dist/stzh-components/p-6a16ceff.entry.js +1 -0
- package/dist/stzh-components/{p-9c72f491.system.entry.js → p-6a96d63e.system.entry.js} +1 -1
- package/dist/stzh-components/p-6b2282cd.system.entry.js +1 -0
- package/dist/stzh-components/p-6b5f447c.system.entry.js +1 -0
- package/dist/stzh-components/{p-33c0229f.system.entry.js → p-6c1ad586.system.entry.js} +1 -1
- package/dist/stzh-components/{p-f788a468.entry.js → p-6c76e51d.entry.js} +1 -1
- package/dist/stzh-components/p-6cbdbd06.entry.js +1 -0
- package/dist/stzh-components/{p-64b4cc74.entry.js → p-6f7a7f7a.entry.js} +1 -1
- package/dist/stzh-components/{p-61aac051.system.entry.js → p-725b3e74.system.entry.js} +1 -1
- package/dist/stzh-components/p-74786856.system.entry.js +1 -0
- package/dist/stzh-components/p-783346ed.entry.js +1 -0
- package/dist/stzh-components/p-7a4c6adb.js +2 -0
- package/dist/stzh-components/{p-a7ee2636.entry.js → p-7d77b8d2.entry.js} +1 -1
- package/dist/stzh-components/{p-9fb4da92.system.entry.js → p-7dd6fbc9.system.entry.js} +1 -1
- package/dist/stzh-components/{p-f84fa2a4.js → p-8347b91f.js} +1 -1
- package/dist/stzh-components/{p-ef5d4167.js → p-8364475f.js} +0 -0
- package/dist/stzh-components/{p-b636a18a.system.entry.js → p-881e526e.system.entry.js} +1 -1
- package/dist/stzh-components/p-8d9056de.entry.js +1 -0
- package/dist/stzh-components/p-8e363084.system.entry.js +1 -0
- package/dist/stzh-components/{p-8d547247.system.entry.js → p-8eb72064.system.entry.js} +1 -1
- package/dist/stzh-components/{p-fa56fc0d.system.entry.js → p-8fc8d8c2.system.entry.js} +1 -1
- package/dist/stzh-components/{p-6305db38.system.entry.js → p-90665664.system.entry.js} +1 -1
- package/dist/stzh-components/{p-48b5b697.system.entry.js → p-90941379.system.entry.js} +1 -1
- package/dist/stzh-components/p-90ad5e2c.entry.js +1 -0
- package/dist/stzh-components/p-92788577.entry.js +34 -0
- package/dist/stzh-components/{p-27fd6c6f.system.entry.js → p-92ad9720.system.entry.js} +1 -1
- package/dist/stzh-components/{p-c58dd9de.entry.js → p-9454a438.entry.js} +1 -1
- package/dist/stzh-components/{p-b084fcbf.system.entry.js → p-965829a6.system.entry.js} +1 -1
- package/dist/stzh-components/p-9a7593f5.entry.js +1 -0
- package/dist/stzh-components/{p-58d886cb.system.entry.js → p-9ca1efe4.system.entry.js} +1 -1
- package/dist/stzh-components/p-9d58c713.entry.js +1 -0
- package/dist/stzh-components/p-a10e0117.system.entry.js +1 -0
- package/dist/stzh-components/p-a3559e69.entry.js +1 -0
- package/dist/stzh-components/p-a4a4370d.entry.js +1 -0
- package/dist/stzh-components/p-a61bf274.entry.js +9 -0
- package/dist/stzh-components/{p-ab455116.system.entry.js → p-a6da8c06.system.entry.js} +1 -1
- package/dist/stzh-components/p-afaa9c37.system.entry.js +1 -0
- package/dist/stzh-components/{p-88e0f453.entry.js → p-b09b85ac.entry.js} +1 -1
- package/dist/stzh-components/{p-5997e418.system.entry.js → p-b3587b9d.system.entry.js} +1 -1
- package/dist/stzh-components/{p-a67e09cd.system.entry.js → p-b491bcd7.system.entry.js} +1 -1
- package/dist/stzh-components/p-b5a59ac0.entry.js +1 -0
- package/dist/stzh-components/p-b666bb15.entry.js +1 -0
- package/dist/stzh-components/{p-2e559062.entry.js → p-b99c0844.entry.js} +1 -1
- package/dist/stzh-components/p-bb8f71a4.entry.js +7 -0
- package/dist/stzh-components/p-bb9e8364.entry.js +1 -0
- package/dist/stzh-components/p-bc841847.entry.js +1 -0
- package/dist/stzh-components/p-bd7dd853.system.entry.js +1 -0
- package/dist/stzh-components/p-bdc627fa.system.entry.js +1 -0
- package/dist/stzh-components/p-be534671.entry.js +1 -0
- package/dist/stzh-components/p-bfdce66c.entry.js +1 -0
- package/dist/stzh-components/p-c051fc3b.entry.js +1 -0
- package/dist/stzh-components/p-c1100fde.entry.js +1 -0
- package/dist/stzh-components/{p-55d23a3c.system.entry.js → p-c3161c9b.system.entry.js} +1 -1
- package/dist/stzh-components/{p-0fc06049.system.entry.js → p-c5749124.system.entry.js} +1 -1
- package/dist/stzh-components/p-c6813d9f.system.entry.js +1 -0
- package/dist/stzh-components/p-c7c3735a.entry.js +1 -0
- package/dist/stzh-components/p-c8009c05.system.entry.js +1 -0
- package/dist/stzh-components/{p-d0aa9d3b.entry.js → p-c866224d.entry.js} +1 -1
- package/dist/stzh-components/p-cbaab05e.entry.js +1 -0
- package/dist/stzh-components/{p-3b27a43f.system.entry.js → p-cc735465.system.entry.js} +2 -2
- package/dist/stzh-components/{p-6a873872.entry.js → p-d00e20ff.entry.js} +1 -1
- package/dist/stzh-components/{p-c3d93395.entry.js → p-d26ed018.entry.js} +1 -1
- package/dist/stzh-components/p-d408604f.system.entry.js +1 -0
- package/dist/stzh-components/{p-b9a027aa.entry.js → p-d69b12f8.entry.js} +1 -1
- package/dist/stzh-components/p-da857e0d.entry.js +1 -0
- package/dist/stzh-components/p-de8f9508.system.entry.js +1 -0
- package/dist/stzh-components/{p-a7c35778.system.entry.js → p-e347ce1e.system.entry.js} +1 -1
- package/dist/stzh-components/p-e56d7b16.system.entry.js +1 -0
- package/dist/stzh-components/{p-961cb979.entry.js → p-e662b688.entry.js} +1 -1
- package/dist/stzh-components/{p-c4b7c2be.entry.js → p-e69903fe.entry.js} +1 -1
- package/dist/stzh-components/p-e7afcd6f.entry.js +1 -0
- package/dist/stzh-components/p-e9313802.system.entry.js +31 -0
- package/dist/stzh-components/{p-560f96f0.system.entry.js → p-eb3425a1.system.entry.js} +1 -1
- package/dist/stzh-components/p-ee711f37.system.entry.js +1 -0
- package/dist/stzh-components/{p-5987573e.system.entry.js → p-ee944add.system.entry.js} +1 -1
- package/dist/stzh-components/{p-5a02ef03.entry.js → p-ef62b905.entry.js} +1 -1
- package/dist/stzh-components/{p-a8de6293.system.js → p-f39f347c.system.js} +0 -0
- package/dist/stzh-components/p-f8ccf5b1.entry.js +1 -0
- package/dist/stzh-components/p-f9039c23.entry.js +1 -0
- package/dist/stzh-components/{p-ba94e315.system.entry.js → p-fa9a4cd5.system.entry.js} +1 -1
- package/dist/stzh-components/p-fade35c7.entry.js +1 -0
- package/dist/stzh-components/{p-e7a84e53.system.entry.js → p-fd811f6b.system.entry.js} +2 -2
- 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-anchornav/stzh-anchornav.d.ts +32 -0
- package/dist/types/components/stzh-audio/stzh-audio.localization.d.ts +11 -0
- package/dist/types/components/stzh-badge/stzh-badge.d.ts +2 -0
- package/dist/types/components/stzh-clamp/stzh-clamp.d.ts +16 -0
- package/dist/types/components/stzh-olmap/stzh-olmap.localization.d.ts +10 -0
- package/dist/types/components/stzh-portal-mitwirken/stzh-portal-mitwirken.d.ts +1 -2
- package/dist/types/components.d.ts +644 -43
- package/dist/types/index.d.ts +72 -1
- package/dist/types/stencil-public-runtime.d.ts +20 -4
- package/dist/vscode-data.json +383 -25
- package/package.json +7 -2
- package/dist/cjs/stzh-datepicker_4.cjs.entry.js +0 -483
- package/dist/esm/stzh-datepicker_4.entry.js +0 -476
- package/dist/esm-es5/app-globals-6b6ff890.js +0 -1
- package/dist/esm-es5/index-84f71a43.js +0 -2
- package/dist/esm-es5/stzh-datepicker_4.entry.js +0 -1
- package/dist/stzh-components/p-001b7d10.entry.js +0 -1
- package/dist/stzh-components/p-08a564af.entry.js +0 -1
- package/dist/stzh-components/p-0b8de542.system.entry.js +0 -1
- package/dist/stzh-components/p-0bbbbe85.system.entry.js +0 -1
- package/dist/stzh-components/p-0d5522dc.system.entry.js +0 -1
- package/dist/stzh-components/p-0efe125f.system.entry.js +0 -1
- package/dist/stzh-components/p-13b3500e.entry.js +0 -1
- package/dist/stzh-components/p-13f44000.entry.js +0 -1
- package/dist/stzh-components/p-216577b4.entry.js +0 -1
- package/dist/stzh-components/p-2818488f.entry.js +0 -1
- package/dist/stzh-components/p-2cf1ae40.system.entry.js +0 -1
- package/dist/stzh-components/p-332e4fd3.entry.js +0 -1
- package/dist/stzh-components/p-373f79e8.entry.js +0 -1
- package/dist/stzh-components/p-3ac93a01.entry.js +0 -1
- package/dist/stzh-components/p-45bab70d.system.entry.js +0 -1
- package/dist/stzh-components/p-552f49c4.entry.js +0 -1
- package/dist/stzh-components/p-5975c355.system.entry.js +0 -1
- package/dist/stzh-components/p-59c323ce.entry.js +0 -1
- package/dist/stzh-components/p-6354fee3.entry.js +0 -1
- package/dist/stzh-components/p-638bedfa.entry.js +0 -1
- package/dist/stzh-components/p-63d8db7b.entry.js +0 -1
- package/dist/stzh-components/p-653c6bbc.entry.js +0 -1
- package/dist/stzh-components/p-67f906b1.entry.js +0 -1
- package/dist/stzh-components/p-69f4a27e.entry.js +0 -1
- package/dist/stzh-components/p-6a81e64b.entry.js +0 -1
- package/dist/stzh-components/p-75cdc8a6.system.entry.js +0 -1
- package/dist/stzh-components/p-7ad87d98.system.entry.js +0 -1
- package/dist/stzh-components/p-7d8c9866.entry.js +0 -1
- package/dist/stzh-components/p-7f9f9a8d.entry.js +0 -1
- package/dist/stzh-components/p-83b1e379.entry.js +0 -9
- package/dist/stzh-components/p-86bc421e.system.entry.js +0 -1
- package/dist/stzh-components/p-8aebb240.entry.js +0 -1
- package/dist/stzh-components/p-8cbc987f.system.entry.js +0 -1
- package/dist/stzh-components/p-938ef748.entry.js +0 -1
- package/dist/stzh-components/p-93e8e31f.js +0 -2
- package/dist/stzh-components/p-9bda100f.system.js +0 -1
- package/dist/stzh-components/p-a448f5a5.entry.js +0 -1
- package/dist/stzh-components/p-a646c09a.entry.js +0 -1
- package/dist/stzh-components/p-a6627504.entry.js +0 -1
- package/dist/stzh-components/p-a99d3e97.system.entry.js +0 -1
- package/dist/stzh-components/p-af2664fc.system.entry.js +0 -1
- package/dist/stzh-components/p-b9c3f3cc.entry.js +0 -1
- package/dist/stzh-components/p-bd178c32.system.entry.js +0 -1
- package/dist/stzh-components/p-be461e19.system.entry.js +0 -1
- package/dist/stzh-components/p-bf0fdd23.system.js +0 -2
- package/dist/stzh-components/p-c013a00b.system.entry.js +0 -1
- package/dist/stzh-components/p-c1337453.entry.js +0 -1
- package/dist/stzh-components/p-c456c04b.system.entry.js +0 -1
- package/dist/stzh-components/p-c499e04d.entry.js +0 -1
- package/dist/stzh-components/p-c692e405.entry.js +0 -1
- package/dist/stzh-components/p-c83e4fec.system.entry.js +0 -1
- package/dist/stzh-components/p-ca062c11.system.js +0 -1
- package/dist/stzh-components/p-ce28428b.entry.js +0 -1
- package/dist/stzh-components/p-cfaac121.js +0 -1
- package/dist/stzh-components/p-d11a70e2.system.entry.js +0 -1
- package/dist/stzh-components/p-d1dba399.system.entry.js +0 -1
- package/dist/stzh-components/p-d2b5e066.entry.js +0 -1
- package/dist/stzh-components/p-d54f04c8.system.entry.js +0 -1
- package/dist/stzh-components/p-d645d645.entry.js +0 -1
- package/dist/stzh-components/p-d7893dfd.entry.js +0 -1
- package/dist/stzh-components/p-d9643cc4.entry.js +0 -1
- package/dist/stzh-components/p-da7b363e.entry.js +0 -1
- package/dist/stzh-components/p-de017b87.system.entry.js +0 -1
- package/dist/stzh-components/p-e009bfdc.entry.js +0 -1
- package/dist/stzh-components/p-f167eaa4.system.entry.js +0 -1
- package/dist/stzh-components/p-f2ee016a.entry.js +0 -1
- package/dist/stzh-components/p-fdd1998f.entry.js +0 -1
- package/dist/stzh-components/p-ffa1e9dd.system.entry.js +0 -1
|
@@ -0,0 +1,425 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, F as Fragment, a as Host, g as getElement } from './index-2915b467.js';
|
|
2
|
+
import { f as fetchTranslations } from './translation-utils-2623783f.js';
|
|
3
|
+
import { a as printISODate, p as parseISODate } from './date-utils-be83fff1.js';
|
|
4
|
+
import { c as createGlobalAdapter } from './date-adapter-cbc340fa.js';
|
|
5
|
+
import { h as hasSlot } from './utils-68a28fce.js';
|
|
6
|
+
import { S as StzhInputDescription } from './stzh-input-description-e87e6697.js';
|
|
7
|
+
import { c as camelCase } from './string-utils-f98ee4e8.js';
|
|
8
|
+
|
|
9
|
+
const stzhDatepickerCss = ".sc-stzh-datepicker-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-datepicker-h{display:none}.sc-stzh-datepicker-h *.sc-stzh-datepicker,.sc-stzh-datepicker-h *.sc-stzh-datepicker::before,.sc-stzh-datepicker-h *.sc-stzh-datepicker::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-datepicker-h{width:100%}.stzh-datepicker__popover.sc-stzh-datepicker{--padding:var(--stzh-space-medium);--width:auto}.stzh-datepicker__actions.sc-stzh-datepicker{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end}.stzh-datepicker__actions.sc-stzh-datepicker:not(:empty){margin-top:var(--stzh-space-xsmall)}";
|
|
10
|
+
|
|
11
|
+
const StzhDatepicker = class {
|
|
12
|
+
constructor(hostRef) {
|
|
13
|
+
registerInstance(this, hostRef);
|
|
14
|
+
this.stzhChange = createEvent(this, "stzhChange", 7);
|
|
15
|
+
this.onInputChange = () => {
|
|
16
|
+
const parsedDate = this.dateAdapter.parse(this.input.value, "inputdate");
|
|
17
|
+
if (this.input.value === "" || parsedDate) {
|
|
18
|
+
const isoDate = printISODate(parsedDate);
|
|
19
|
+
if (this.calendar) {
|
|
20
|
+
this.calendar.value = isoDate;
|
|
21
|
+
}
|
|
22
|
+
this.value = isoDate;
|
|
23
|
+
this.stzhChange.emit({
|
|
24
|
+
component: "stzh-datepicker",
|
|
25
|
+
value: this.value,
|
|
26
|
+
valueAsDate: parsedDate,
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
this.onCalendarChange = (event) => {
|
|
31
|
+
this.value = event.detail.value;
|
|
32
|
+
this.stzhChange.emit({
|
|
33
|
+
component: "stzh-datepicker",
|
|
34
|
+
value: this.value,
|
|
35
|
+
valueAsDate: event.detail.valueAsDate,
|
|
36
|
+
});
|
|
37
|
+
if (this.input) {
|
|
38
|
+
this.input.value = event.detail.valueAsDate
|
|
39
|
+
&& this.dateAdapter.format(event.detail.valueAsDate, "inputdate");
|
|
40
|
+
}
|
|
41
|
+
if (this.popover) {
|
|
42
|
+
this.popover.hide();
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
this.calendarMin = "";
|
|
46
|
+
this.calendarMax = "";
|
|
47
|
+
this.calendarIsDateDisabled = () => false;
|
|
48
|
+
this.name = "";
|
|
49
|
+
this.value = "";
|
|
50
|
+
this.label = "";
|
|
51
|
+
this.readonly = false;
|
|
52
|
+
this.disabled = false;
|
|
53
|
+
this.description = undefined;
|
|
54
|
+
this.descriptionLong = undefined;
|
|
55
|
+
this.error = undefined;
|
|
56
|
+
this.invalid = false;
|
|
57
|
+
this.required = false;
|
|
58
|
+
this.showMarker = false;
|
|
59
|
+
this.size = "default";
|
|
60
|
+
this.inline = false;
|
|
61
|
+
this.dateAdapter = undefined;
|
|
62
|
+
this.localization = undefined;
|
|
63
|
+
this.buttonLabel = undefined;
|
|
64
|
+
}
|
|
65
|
+
createDateFormatters() {
|
|
66
|
+
if (this.localization) {
|
|
67
|
+
this.dateFormatLong = new Intl.DateTimeFormat(this.localization.$locale, {
|
|
68
|
+
day: "numeric",
|
|
69
|
+
month: "long",
|
|
70
|
+
year: "numeric",
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
/** Update calendar and input when value prop has changed */
|
|
75
|
+
valueWatcher(newValue) {
|
|
76
|
+
const date = parseISODate(newValue);
|
|
77
|
+
if (this.calendar) {
|
|
78
|
+
this.calendar.value = newValue;
|
|
79
|
+
}
|
|
80
|
+
if (this.input) {
|
|
81
|
+
this.input.value = this.dateAdapter.format(date, "inputdate");
|
|
82
|
+
}
|
|
83
|
+
this.updateButtonAccessibleLabel();
|
|
84
|
+
}
|
|
85
|
+
/** Set value by a JS Date object */
|
|
86
|
+
async setDate(date) {
|
|
87
|
+
this.value = printISODate(date);
|
|
88
|
+
}
|
|
89
|
+
/** Return internal popover element */
|
|
90
|
+
async getPopover() {
|
|
91
|
+
return this.popover;
|
|
92
|
+
}
|
|
93
|
+
updateButtonAccessibleLabel() {
|
|
94
|
+
if (!this.localization) {
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
97
|
+
try {
|
|
98
|
+
const valueAsDate = parseISODate(this.value);
|
|
99
|
+
this.buttonLabel = `${this.localization.buttonLabel}, ${this.localization.selectedDateMessage} ${this.dateFormatLong.format(valueAsDate)}`;
|
|
100
|
+
}
|
|
101
|
+
catch (err) {
|
|
102
|
+
this.buttonLabel = this.localization.buttonLabel;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
connectedCallback() {
|
|
106
|
+
this.createDateFormatters();
|
|
107
|
+
}
|
|
108
|
+
async componentWillLoad() {
|
|
109
|
+
if (!this.localization) {
|
|
110
|
+
this.localization = await fetchTranslations(this.element, "datepicker");
|
|
111
|
+
}
|
|
112
|
+
if (!this.dateAdapter) {
|
|
113
|
+
this.dateAdapter = createGlobalAdapter(this.localization.$formats, this.localization.$globals);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
componentDidLoad() {
|
|
117
|
+
this.valueWatcher(this.value);
|
|
118
|
+
}
|
|
119
|
+
render() {
|
|
120
|
+
const classes = {
|
|
121
|
+
"stzh-datepicker": true,
|
|
122
|
+
"stzh-datepicker--inline": this.inline
|
|
123
|
+
};
|
|
124
|
+
return (h(Host, null, h("div", { class: classes }, h("input", { type: "hidden", name: this.name, value: this.value }), this.inline &&
|
|
125
|
+
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 &&
|
|
126
|
+
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" }))))))));
|
|
127
|
+
}
|
|
128
|
+
get element() { return getElement(this); }
|
|
129
|
+
static get watchers() { return {
|
|
130
|
+
"localization": ["createDateFormatters"],
|
|
131
|
+
"value": ["valueWatcher"]
|
|
132
|
+
}; }
|
|
133
|
+
};
|
|
134
|
+
StzhDatepicker.style = stzhDatepickerCss;
|
|
135
|
+
|
|
136
|
+
const stzhRadioCss = ".sc-stzh-radio-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-radio-h{display:none}.sc-stzh-radio-h *.sc-stzh-radio,.sc-stzh-radio-h *.sc-stzh-radio::before,.sc-stzh-radio-h *.sc-stzh-radio::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-radio-h{display:inline-block;border-radius:var(--stzh-form-input-border-radius)}.sc-stzh-radio-h .sc-stzh-radio-s>stzh-text{--color:inherit}.stzh-radio__marker-symbol.sc-stzh-radio{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal}.stzh-radio__marker-text.sc-stzh-radio{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-radio__description-wrapper.sc-stzh-radio{display:-ms-flexbox;display:flex;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.stzh-radio__error.sc-stzh-radio,.stzh-radio__description.sc-stzh-radio{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);color:var(--stzh-base-color)}.stzh-radio__error.sc-stzh-radio{color:var(--stzh-color-error)}.stzh-radio__error-list.sc-stzh-radio{list-style:none;margin:0;padding:0}.stzh-radio__description.sc-stzh-radio{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start}.stzh-radio__description-long.sc-stzh-radio{margin-left:var(--stzh-space-xxsmall);margin-top:0.1875rem}.stzh-radio__description-long-popover.sc-stzh-radio{--width:auto;--max-width:27.3125rem}.stzh-radio__description-long-popover[open].sc-stzh-radio:not([open=false]) .stzh-radio__description-long-button.sc-stzh-radio{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-radio__description-long-button.sc-stzh-radio{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border:none;background-color:transparent;border-radius:0.5rem;cursor:pointer;-webkit-transition:color var(--stzh-base-transition-animation-speed);transition:color var(--stzh-base-transition-animation-speed);color:var(--stzh-base-lead-color)}.stzh-radio__description-long-button.sc-stzh-radio:hover{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-radio.sc-stzh-radio stzh-icon.stzh-radio__description-long-icon.sc-stzh-radio{--size:var(--stzh-icon-size-xsmall)}.stzh-radio--has-error.sc-stzh-radio .stzh-radio__error.sc-stzh-radio,.stzh-radio--has-description.sc-stzh-radio .stzh-radio__description.sc-stzh-radio{margin-top:var(--stzh-space-xxsmall)}.stzh-radio__field-wrapper.sc-stzh-radio{font-size:var(--stzh-font-milli-font-size);line-height:var(--stzh-font-milli-text-line-height);letter-spacing:var(--stzh-font-curve---text-letter-spacing);position:relative;display:-ms-flexbox;display:flex;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.stzh-radio__input.sc-stzh-radio{position:absolute;top:0;left:0;width:100%;height:100%;margin:0;z-index:-1;opacity:0;pointer-events:none}.stzh-radio__mark.sc-stzh-radio{border:0.0625rem solid var(--stzh-color-grey61);background-color:var(--stzh-color-white);width:1.5rem;height:1.5rem;-ms-flex-negative:0;flex-shrink:0;border-radius:50%;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-webkit-transition:border-color var(--stzh-base-transition-animation-speed);transition:border-color var(--stzh-base-transition-animation-speed)}.stzh-radio__mark.sc-stzh-radio::before{content:\"\"}.stzh-radio__check.sc-stzh-radio{background-color:currentColor;color:var(--stzh-color-primary, var(--stzh-color-zueriblue));width:0.5rem;height:0.5rem;border-radius:50%;opacity:0}@media (forced-colors: active), (-ms-high-contrast: active){.stzh-radio__check.sc-stzh-radio{background-color:ButtonText}}.stzh-radio__label.sc-stzh-radio{display:inline-block;color:var(--stzh-base-color);-webkit-transition:color var(--stzh-base-transition-animation-speed);transition:color var(--stzh-base-transition-animation-speed);margin-left:var(--stzh-space-small);line-height:1.5rem}.stzh-radio__label.sc-stzh-radio:empty{display:none}.stzh-radio__marker-symbol.sc-stzh-radio{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height)}.stzh-radio.sc-stzh-radio:hover .stzh-radio__label.sc-stzh-radio,.stzh-radio__input.sc-stzh-radio:checked:hover~.stzh-radio__label.sc-stzh-radio,.stzh-radio__input.sc-stzh-radio:checked:hover~.stzh-radio__mark.sc-stzh-radio .stzh-radio__check.sc-stzh-radio,.stzh-radio__input.sc-stzh-radio:checked:focus~.stzh-radio__mark.sc-stzh-radio .stzh-radio__check.sc-stzh-radio{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-radio__input.sc-stzh-radio:checked~.stzh-radio__label.sc-stzh-radio{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-radio.sc-stzh-radio:hover .stzh-radio__mark.sc-stzh-radio,.stzh-radio__input.sc-stzh-radio:focus:hover~.stzh-radio__mark.sc-stzh-radio,.stzh-radio__input.sc-stzh-radio:checked:hover~.stzh-radio__mark.sc-stzh-radio,.stzh-radio__input.sc-stzh-radio:checked:focus~.stzh-radio__mark.sc-stzh-radio{border-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-radio__input.sc-stzh-radio:focus~.stzh-radio__mark.sc-stzh-radio,.stzh-radio__input.sc-stzh-radio:checked~.stzh-radio__mark.sc-stzh-radio{border-color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-radio__input.sc-stzh-radio:checked~.stzh-radio__mark.sc-stzh-radio .stzh-radio__check.sc-stzh-radio{opacity:1}.stzh-radio--is-invalid.sc-stzh-radio .stzh-radio__input.sc-stzh-radio~.stzh-radio__label.sc-stzh-radio,.stzh-radio--is-invalid.sc-stzh-radio .stzh-radio__input.sc-stzh-radio~.stzh-radio__mark.sc-stzh-radio .stzh-radio__check.sc-stzh-radio{color:var(--stzh-color-error)}.stzh-radio--is-invalid.sc-stzh-radio .stzh-radio__input.sc-stzh-radio~.stzh-radio__mark.sc-stzh-radio{border-color:var(--stzh-color-error)}.stzh-radio--is-disabled.sc-stzh-radio .stzh-radio__field-wrapper.sc-stzh-radio{cursor:not-allowed}.stzh-radio--is-disabled.sc-stzh-radio .stzh-radio__input.sc-stzh-radio~.stzh-radio__label.sc-stzh-radio,.stzh-radio--is-disabled.sc-stzh-radio .stzh-radio__input.sc-stzh-radio~.stzh-radio__mark.sc-stzh-radio .stzh-radio__check.sc-stzh-radio{color:var(--stzh-color-grey61)}.stzh-radio--is-disabled.sc-stzh-radio .stzh-radio__input.sc-stzh-radio~.stzh-radio__mark.sc-stzh-radio{border-color:var(--stzh-color-grey5)}.stzh-radio--is-disabled.sc-stzh-radio .stzh-radio__mark.sc-stzh-radio{background-color:var(--stzh-color-grey5)}";
|
|
137
|
+
|
|
138
|
+
let radioCounter = 0;
|
|
139
|
+
const StzhRadio = class {
|
|
140
|
+
constructor(hostRef) {
|
|
141
|
+
registerInstance(this, hostRef);
|
|
142
|
+
this.stzhChange = createEvent(this, "stzhChange", 7);
|
|
143
|
+
this.stzhFocus = createEvent(this, "stzhFocus", 7);
|
|
144
|
+
this.stzhBlur = createEvent(this, "stzhBlur", 7);
|
|
145
|
+
this.onInput = (event) => {
|
|
146
|
+
this.checked = this.input.checked;
|
|
147
|
+
this.stzhChange.emit({
|
|
148
|
+
component: "stzh-radio",
|
|
149
|
+
originalEvent: event,
|
|
150
|
+
value: this.value,
|
|
151
|
+
checked: this.checked
|
|
152
|
+
});
|
|
153
|
+
};
|
|
154
|
+
this.onFocus = (event) => {
|
|
155
|
+
const focusEvent = new FocusEvent('focus', {
|
|
156
|
+
view: window,
|
|
157
|
+
bubbles: false,
|
|
158
|
+
cancelable: false
|
|
159
|
+
});
|
|
160
|
+
this.element.dispatchEvent(focusEvent);
|
|
161
|
+
this.stzhFocus.emit({
|
|
162
|
+
component: "stzh-radio",
|
|
163
|
+
originalEvent: event
|
|
164
|
+
});
|
|
165
|
+
};
|
|
166
|
+
this.onBlur = (event) => {
|
|
167
|
+
const blurEvent = new FocusEvent('blur', {
|
|
168
|
+
view: window,
|
|
169
|
+
bubbles: false,
|
|
170
|
+
cancelable: false
|
|
171
|
+
});
|
|
172
|
+
this.element.dispatchEvent(blurEvent);
|
|
173
|
+
this.stzhBlur.emit({
|
|
174
|
+
component: "stzh-radio",
|
|
175
|
+
originalEvent: event
|
|
176
|
+
});
|
|
177
|
+
};
|
|
178
|
+
this.localization = undefined;
|
|
179
|
+
this.disabled = false;
|
|
180
|
+
this.name = "";
|
|
181
|
+
this.value = "";
|
|
182
|
+
this.invalid = false;
|
|
183
|
+
this.required = false;
|
|
184
|
+
this.showMarker = false;
|
|
185
|
+
this.checked = false;
|
|
186
|
+
this.label = "";
|
|
187
|
+
this.description = undefined;
|
|
188
|
+
this.descriptionLong = undefined;
|
|
189
|
+
this.error = undefined;
|
|
190
|
+
this.a11yDescribedby = "";
|
|
191
|
+
}
|
|
192
|
+
/** Focus input field */
|
|
193
|
+
async setFocus() {
|
|
194
|
+
this.input.focus();
|
|
195
|
+
}
|
|
196
|
+
errorWatcher(newValue) {
|
|
197
|
+
if (typeof newValue === "string") {
|
|
198
|
+
try {
|
|
199
|
+
this._error = JSON.parse(newValue);
|
|
200
|
+
}
|
|
201
|
+
catch (e) {
|
|
202
|
+
if (newValue) {
|
|
203
|
+
this._error = [newValue];
|
|
204
|
+
}
|
|
205
|
+
else {
|
|
206
|
+
this._error = [];
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
else if (newValue) {
|
|
211
|
+
this._error = newValue;
|
|
212
|
+
}
|
|
213
|
+
else {
|
|
214
|
+
this._error = [];
|
|
215
|
+
}
|
|
216
|
+
this.invalid = this._error.length > 0;
|
|
217
|
+
}
|
|
218
|
+
async componentWillLoad() {
|
|
219
|
+
this.inputId = `stzh-radio-${radioCounter++}`;
|
|
220
|
+
this.errorWatcher(this.error);
|
|
221
|
+
if (!this.localization) {
|
|
222
|
+
this.localization = await fetchTranslations(this.element, 'radio');
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
render() {
|
|
226
|
+
const descriptionUsed = hasSlot(this.element, 'description') || !!this.description;
|
|
227
|
+
const descriptionLongUsed = hasSlot(this.element, 'description-long') || !!this.descriptionLong;
|
|
228
|
+
const errorUsed = hasSlot(this.element, 'error') || !!this.error;
|
|
229
|
+
const classes = {
|
|
230
|
+
"stzh-radio": true,
|
|
231
|
+
"stzh-radio--has-description": descriptionUsed,
|
|
232
|
+
"stzh-radio--has-description-long": descriptionLongUsed,
|
|
233
|
+
"stzh-radio--has-error": errorUsed,
|
|
234
|
+
"stzh-radio--is-required": this.required,
|
|
235
|
+
"stzh-radio--is-invalid": this.invalid,
|
|
236
|
+
"stzh-radio--is-disabled": this.disabled
|
|
237
|
+
};
|
|
238
|
+
return (h("div", { class: classes }, h("label", { class: "stzh-radio__field-wrapper" }, h("input", { class: "stzh-radio__input", ref: (el) => (this.input = el), type: "radio", id: this.inputId, name: this.name, value: this.value, disabled: this.disabled, "aria-describedby": `${this.inputId}-description ${this.a11yDescribedby}`, "aria-required": this.required ? "true" : "false", "aria-invalid": this.invalid ? "true" : "false", checked: this.checked, onInput: this.onInput, onFocus: this.onFocus, onBlur: this.onBlur }), h("div", { class: "stzh-radio__mark" }, h("div", { class: "stzh-radio__check" })), h("div", { class: "stzh-radio__label" }, this.label ? this.label : h("slot", null), this.showMarker &&
|
|
239
|
+
h("span", { class: "stzh-radio__marker" }, h("span", { class: "stzh-radio__marker-symbol", "aria-hidden": "true" }, this.required
|
|
240
|
+
? this.localization.$globals.requiredFieldMarker
|
|
241
|
+
: this.localization.$globals.optionalFieldMarker), h("span", { class: "stzh-radio__marker-text" }, this.required
|
|
242
|
+
? this.localization.$globals.requiredFieldText
|
|
243
|
+
: this.localization.$globals.optionalFieldText)))), h(StzhInputDescription, { classPrefix: "stzh-radio", id: `${this.inputId}-description`, error: this._error, description: this.description, descriptionLong: this.descriptionLong, descriptionLongUsed: descriptionLongUsed, moreInfoButtonLabel: this.localization.$globals.moreInfoButtonLabel })));
|
|
244
|
+
}
|
|
245
|
+
get element() { return getElement(this); }
|
|
246
|
+
static get watchers() { return {
|
|
247
|
+
"error": ["errorWatcher"]
|
|
248
|
+
}; }
|
|
249
|
+
};
|
|
250
|
+
StzhRadio.style = stzhRadioCss;
|
|
251
|
+
|
|
252
|
+
const stzhRadiogroupCss = ".sc-stzh-radiogroup-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-radiogroup-h{display:none}.sc-stzh-radiogroup-h *.sc-stzh-radiogroup,.sc-stzh-radiogroup-h *.sc-stzh-radiogroup::before,.sc-stzh-radiogroup-h *.sc-stzh-radiogroup::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-radiogroup-h[direction=vertical] .sc-stzh-radiogroup-s>stzh-radio:not(:last-child){margin-bottom:var(--stzh-space-medium)}.sc-stzh-radiogroup-h[direction=horizontal] .sc-stzh-radiogroup-s>stzh-radio:not(:last-child){margin-right:var(--stzh-space-large)}.stzh-radiogroup.sc-stzh-radiogroup{margin:0;padding:0;border:none}.stzh-radiogroup__marker-symbol.sc-stzh-radiogroup{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal}.stzh-radiogroup__marker-text.sc-stzh-radiogroup{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-radiogroup__description-wrapper.sc-stzh-radiogroup{display:-ms-flexbox;display:flex;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.stzh-radiogroup__error.sc-stzh-radiogroup,.stzh-radiogroup__description.sc-stzh-radiogroup{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);color:var(--stzh-base-color)}.stzh-radiogroup__error.sc-stzh-radiogroup{color:var(--stzh-color-error)}.stzh-radiogroup__error-list.sc-stzh-radiogroup{list-style:none;margin:0;padding:0}.stzh-radiogroup__description.sc-stzh-radiogroup{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start}.stzh-radiogroup__description-long.sc-stzh-radiogroup{margin-left:var(--stzh-space-xxsmall);margin-top:0.1875rem}.stzh-radiogroup__description-long-popover.sc-stzh-radiogroup{--width:auto;--max-width:27.3125rem}.stzh-radiogroup__description-long-popover[open].sc-stzh-radiogroup:not([open=false]) .stzh-radiogroup__description-long-button.sc-stzh-radiogroup{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-radiogroup__description-long-button.sc-stzh-radiogroup{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border:none;background-color:transparent;border-radius:0.5rem;cursor:pointer;-webkit-transition:color var(--stzh-base-transition-animation-speed);transition:color var(--stzh-base-transition-animation-speed);color:var(--stzh-base-lead-color)}.stzh-radiogroup__description-long-button.sc-stzh-radiogroup:hover{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-radiogroup.sc-stzh-radiogroup stzh-icon.stzh-radiogroup__description-long-icon.sc-stzh-radiogroup{--size:var(--stzh-icon-size-xsmall)}.stzh-radiogroup--has-error.sc-stzh-radiogroup .stzh-radiogroup__error.sc-stzh-radiogroup,.stzh-radiogroup--has-description.sc-stzh-radiogroup .stzh-radiogroup__description.sc-stzh-radiogroup{margin-top:var(--stzh-space-xxsmall)}.stzh-radiogroup__fields.sc-stzh-radiogroup{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start;-ms-flex-direction:column;flex-direction:column}.stzh-radiogroup__legend.sc-stzh-radiogroup{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal;font-size:var(--stzh-font-nano-font-size);line-height:var(--stzh-font-nano-text-line-height);padding:0;margin-bottom:var(--stzh-space-xsmall)}.stzh-radiogroup--hide-legend.sc-stzh-radiogroup .stzh-radiogroup__legend.sc-stzh-radiogroup{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-radiogroup--direction-horizontal.sc-stzh-radiogroup .stzh-radiogroup__fields.sc-stzh-radiogroup{-ms-flex-direction:row;flex-direction:row}";
|
|
253
|
+
|
|
254
|
+
const SELECTOR_RADIO = 'stzh-radio, stzh-button[type=radio], stzh-card';
|
|
255
|
+
let radiogroupCounter = 0;
|
|
256
|
+
const StzhRadiogroup = class {
|
|
257
|
+
constructor(hostRef) {
|
|
258
|
+
registerInstance(this, hostRef);
|
|
259
|
+
this._preventUpdateProperties = [];
|
|
260
|
+
this.init = () => {
|
|
261
|
+
// update radios
|
|
262
|
+
this.radios = Array.from(this.element.querySelectorAll(SELECTOR_RADIO));
|
|
263
|
+
this.updateRadiosProperty("show-marker", false);
|
|
264
|
+
this.updateRadiosProperty("a11y-describedby", `${this.radiogroupId}-description`);
|
|
265
|
+
this.watchValue(this.value);
|
|
266
|
+
this.watchName(this.name);
|
|
267
|
+
this.watchDisabled(this.disabled);
|
|
268
|
+
this.watchInvalid(this.invalid);
|
|
269
|
+
this.watchRequired(this.required);
|
|
270
|
+
};
|
|
271
|
+
this.localization = undefined;
|
|
272
|
+
this.disabled = false;
|
|
273
|
+
this.name = undefined;
|
|
274
|
+
this.legend = undefined;
|
|
275
|
+
this.hideLegend = false;
|
|
276
|
+
this.invalid = false;
|
|
277
|
+
this.required = false;
|
|
278
|
+
this.showMarker = false;
|
|
279
|
+
this.value = "";
|
|
280
|
+
this.direction = "vertical";
|
|
281
|
+
this.description = undefined;
|
|
282
|
+
this.descriptionLong = undefined;
|
|
283
|
+
this.error = undefined;
|
|
284
|
+
this.checkedRadio = null;
|
|
285
|
+
this.preventUpdateProperties = [];
|
|
286
|
+
}
|
|
287
|
+
watchName(newValue) {
|
|
288
|
+
this.updateRadiosProperty("name", newValue);
|
|
289
|
+
}
|
|
290
|
+
watchDisabled(newValue) {
|
|
291
|
+
this.updateRadiosProperty("disabled", newValue);
|
|
292
|
+
}
|
|
293
|
+
watchInvalid(newValue) {
|
|
294
|
+
this.updateRadiosProperty("invalid", newValue);
|
|
295
|
+
}
|
|
296
|
+
watchRequired(newValue) {
|
|
297
|
+
this.updateRadiosProperty("required", newValue);
|
|
298
|
+
}
|
|
299
|
+
watchValue(newValue) {
|
|
300
|
+
this.updateCheckedRadioByValue(newValue);
|
|
301
|
+
}
|
|
302
|
+
errorWatcher(newValue) {
|
|
303
|
+
if (typeof newValue === "string") {
|
|
304
|
+
try {
|
|
305
|
+
this._error = JSON.parse(newValue);
|
|
306
|
+
}
|
|
307
|
+
catch (e) {
|
|
308
|
+
if (newValue) {
|
|
309
|
+
this._error = [newValue];
|
|
310
|
+
}
|
|
311
|
+
else {
|
|
312
|
+
this._error = [];
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
else if (newValue) {
|
|
317
|
+
this._error = newValue;
|
|
318
|
+
}
|
|
319
|
+
else {
|
|
320
|
+
this._error = [];
|
|
321
|
+
}
|
|
322
|
+
this.invalid = this._error.length > 0;
|
|
323
|
+
}
|
|
324
|
+
preventUpdatePropertiesWatcher(newValue) {
|
|
325
|
+
if (typeof newValue === "string") {
|
|
326
|
+
this._preventUpdateProperties = JSON.parse(newValue);
|
|
327
|
+
}
|
|
328
|
+
else {
|
|
329
|
+
this._preventUpdateProperties = newValue;
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
onChange(event) {
|
|
333
|
+
this.value = event.detail.value;
|
|
334
|
+
}
|
|
335
|
+
updateRadiosProperty(prop, value) {
|
|
336
|
+
this.radios.forEach((radio) => {
|
|
337
|
+
if (prop === "name" || (this._preventUpdateProperties.indexOf(prop) === -1)) {
|
|
338
|
+
radio[camelCase(prop)] = value;
|
|
339
|
+
}
|
|
340
|
+
});
|
|
341
|
+
}
|
|
342
|
+
updateCheckedRadioByValue(value) {
|
|
343
|
+
this.checkedRadio = this.radios.find(radio => radio.value === value);
|
|
344
|
+
if (this.checkedRadio) {
|
|
345
|
+
this.checkedRadio.checked = true;
|
|
346
|
+
}
|
|
347
|
+
this.uncheckRadios();
|
|
348
|
+
}
|
|
349
|
+
uncheckRadios() {
|
|
350
|
+
// make sure that no other radios are checked than the current one or no one
|
|
351
|
+
this.radios.forEach((radio) => {
|
|
352
|
+
if (!this.checkedRadio || radio !== this.checkedRadio) {
|
|
353
|
+
radio.checked = false;
|
|
354
|
+
}
|
|
355
|
+
});
|
|
356
|
+
}
|
|
357
|
+
async componentWillLoad() {
|
|
358
|
+
this.radiogroupId = `stzh-radiogroup-${radiogroupCounter++}`;
|
|
359
|
+
this.errorWatcher(this.error);
|
|
360
|
+
this.preventUpdatePropertiesWatcher(this.preventUpdateProperties);
|
|
361
|
+
if (!this.localization) {
|
|
362
|
+
this.localization = await fetchTranslations(this.element, 'radiogroup');
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
componentShouldUpdate(_newValue, _oldValue, prop) {
|
|
366
|
+
return prop !== "checkedRadio";
|
|
367
|
+
}
|
|
368
|
+
componentDidRender() {
|
|
369
|
+
this.init();
|
|
370
|
+
}
|
|
371
|
+
connectedCallback() {
|
|
372
|
+
if (!this.value) {
|
|
373
|
+
this.radios = Array.from(this.element.querySelectorAll(SELECTOR_RADIO));
|
|
374
|
+
// try to find a checkbox that might has checked set to true
|
|
375
|
+
const checkedRadio = this.radios.find(radio => radio.checked);
|
|
376
|
+
if (checkedRadio) {
|
|
377
|
+
this.value = checkedRadio.value;
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
this.observer = new MutationObserver(this.init);
|
|
381
|
+
this.observer.observe(this.element, {
|
|
382
|
+
childList: true,
|
|
383
|
+
subtree: true,
|
|
384
|
+
});
|
|
385
|
+
}
|
|
386
|
+
disconnectedCallback() {
|
|
387
|
+
this.observer.disconnect();
|
|
388
|
+
}
|
|
389
|
+
render() {
|
|
390
|
+
const descriptionUsed = hasSlot(this.element, 'description') || !!this.description;
|
|
391
|
+
const descriptionLongUsed = hasSlot(this.element, 'description-long') || !!this.descriptionLong;
|
|
392
|
+
const errorUsed = hasSlot(this.element, 'error') || !!this.error;
|
|
393
|
+
const classes = {
|
|
394
|
+
"stzh-radiogroup": true,
|
|
395
|
+
"stzh-radiogroup--has-description": descriptionUsed,
|
|
396
|
+
"stzh-radiogroup--has-description-long": descriptionLongUsed,
|
|
397
|
+
"stzh-radiogroup--has-error": errorUsed,
|
|
398
|
+
"stzh-radiogroup--is-required": this.required,
|
|
399
|
+
"stzh-radiogroup--is-disabled": this.disabled,
|
|
400
|
+
"stzh-radiogroup--is-invalid": this.invalid,
|
|
401
|
+
"stzh-radiogroup--hide-legend": this.hideLegend,
|
|
402
|
+
[`stzh-radiogroup--direction-${this.direction}`]: !!this.direction
|
|
403
|
+
};
|
|
404
|
+
return (h("fieldset", { class: classes }, this.legend &&
|
|
405
|
+
h("legend", { class: "stzh-radiogroup__legend" }, this.legend, this.showMarker &&
|
|
406
|
+
h("span", { class: "stzh-radiogroup__marker" }, h("span", { class: "stzh-radiogroup__marker-symbol", "aria-hidden": "true" }, this.required
|
|
407
|
+
? this.localization.$globals.requiredFieldMarker
|
|
408
|
+
: this.localization.$globals.optionalFieldMarker), h("span", { class: "stzh-radiogroup__marker-text" }, this.required
|
|
409
|
+
? this.localization.$globals.requiredFieldText
|
|
410
|
+
: this.localization.$globals.optionalFieldText))), h("div", { class: "stzh-radiogroup__fields" }, h("slot", null)), h(StzhInputDescription, { classPrefix: "stzh-radiogroup", id: `${this.radiogroupId}-description`, error: this._error, description: this.description, descriptionLong: this.descriptionLong, descriptionLongUsed: descriptionLongUsed, moreInfoButtonLabel: this.localization.$globals.moreInfoButtonLabel })));
|
|
411
|
+
}
|
|
412
|
+
get element() { return getElement(this); }
|
|
413
|
+
static get watchers() { return {
|
|
414
|
+
"name": ["watchName"],
|
|
415
|
+
"disabled": ["watchDisabled"],
|
|
416
|
+
"invalid": ["watchInvalid"],
|
|
417
|
+
"required": ["watchRequired"],
|
|
418
|
+
"value": ["watchValue"],
|
|
419
|
+
"error": ["errorWatcher"],
|
|
420
|
+
"preventUpdateProperties": ["preventUpdatePropertiesWatcher"]
|
|
421
|
+
}; }
|
|
422
|
+
};
|
|
423
|
+
StzhRadiogroup.style = stzhRadiogroupCss;
|
|
424
|
+
|
|
425
|
+
export { StzhDatepicker as stzh_datepicker, StzhRadio as stzh_radio, StzhRadiogroup as stzh_radiogroup };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-2915b467.js';
|
|
2
2
|
import { s as setPropsIfNull } from './utils-68a28fce.js';
|
|
3
3
|
import { f as fetchTranslations } from './translation-utils-2623783f.js';
|
|
4
4
|
import { c as createFocusTrap } from './focus-trap.esm-074705a3.js';
|
|
5
5
|
|
|
6
|
-
const stzhDialogCss = ".sc-stzh-dialog-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-dialog-h{display:none}.sc-stzh-dialog-h *.sc-stzh-dialog,.sc-stzh-dialog-h *.sc-stzh-dialog::before,.sc-stzh-dialog-h *.sc-stzh-dialog::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-dialog-h{--width:100%;--padding:var(--stzh-space-
|
|
6
|
+
const stzhDialogCss = ".sc-stzh-dialog-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-dialog-h{display:none}.sc-stzh-dialog-h *.sc-stzh-dialog,.sc-stzh-dialog-h *.sc-stzh-dialog::before,.sc-stzh-dialog-h *.sc-stzh-dialog::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-dialog-h{--width:100%;--padding:var(--stzh-space-xxlarge);--close-color:var(--stzh-base-lead-color);--backdrop-opacity:0.8}@media screen and (min-width: 600px){.sc-stzh-dialog-h{--width:33.5rem;}}@media screen and (min-width: 1024px){.sc-stzh-dialog-h{--width:48.875rem;--padding:var(--stzh-space-xxxlarge)}}@media screen and (min-width: 1260px){.sc-stzh-dialog-h{--width:52rem;--padding:var(--stzh-space-xxxxlarge)}}@media screen and (min-width: 600px){[size=small].sc-stzh-dialog-h{--width:24.6875rem}}@media screen and (min-width: 1024px){[size=small].sc-stzh-dialog-h{--width:28.75rem}}@media screen and (min-width: 1260px){[size=small].sc-stzh-dialog-h{--width:32rem}}.stzh-dialog.sc-stzh-dialog{z-index:var(--stzh-z-index-dialog);display:none;position:fixed;top:0;left:0;width:100%;height:100%;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:stretch;align-items:stretch;-ms-flex-pack:stretch;justify-content:stretch}.stzh-dialog__content.sc-stzh-dialog{z-index:2;position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-positive:1;flex-grow:1;overflow:auto}.stzh-dialog__dialog.sc-stzh-dialog{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin:auto;border:none;background-color:var(--stzh-color-white);width:var(--width);max-width:100%;-webkit-box-shadow:var(--stzh-box-shadow-overlay);box-shadow:var(--stzh-box-shadow-overlay);height:100vh;max-height:100vh;overflow:hidden;outline:none}@media screen and (min-width: 600px){.stzh-dialog__dialog.sc-stzh-dialog{height:auto}}.stzh-dialog__backdrop.sc-stzh-dialog{z-index:1;position:absolute;top:0;left:0;width:100%;height:100%;overflow-x:hidden;overflow-y:auto;text-align:center;background-color:var(--stzh-color-primary, var(--stzh-color-zueriblue));opacity:var(--backdrop-opacity)}.stzh-dialog__heading.sc-stzh-dialog{padding:var(--padding);padding-bottom:0}.stzh-dialog__dialog-content.sc-stzh-dialog{padding:var(--padding);padding-top:var(--stzh-space-xlarge);padding-bottom:var(--stzh-space-xlarge);overflow:auto;-ms-flex-positive:1;flex-grow:1}@media screen and (min-width: 1024px){.stzh-dialog__dialog-content.sc-stzh-dialog{padding-top:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){.stzh-dialog__dialog-content.sc-stzh-dialog{padding-top:var(--stzh-space-xxxlarge)}}@media screen and (min-width: 1024px){.stzh-dialog__dialog-content.sc-stzh-dialog{padding-bottom:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){.stzh-dialog__dialog-content.sc-stzh-dialog{padding-bottom:var(--stzh-space-xxxlarge)}}.stzh-dialog__actions.sc-stzh-dialog{padding:var(--padding);padding-top:0}.stzh-dialog__close-button.sc-stzh-dialog{position:absolute;top:var(--stzh-space-xsmall);right:var(--stzh-space-xsmall);display:-ms-flexbox;display:flex;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;background:none;padding:var(--stzh-space-xsmall);margin:calc(var(--stzh-space-xsmall) * -1);border-radius:var(--stzh-button-border-radius);cursor:pointer}@media screen and (min-width: 600px){.stzh-dialog__close-button.sc-stzh-dialog{top:var(--stzh-space-small);right:var(--stzh-space-small)}}@media screen and (min-width: 1024px){.stzh-dialog__close-button.sc-stzh-dialog{top:var(--stzh-space-large);right:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.stzh-dialog__close-button.sc-stzh-dialog{top:calc(var(--stzh-space-xxlarge) + var(--stzh-space-xxsmall));right:calc(var(--stzh-space-xxlarge) + var(--stzh-space-xxsmall))}}.stzh-dialog__close-icon.sc-stzh-dialog{--size:var(--stzh-icon-size-medium);color:var(--close-color)}.stzh-dialog--is-open.sc-stzh-dialog{display:-ms-flexbox;display:flex}";
|
|
7
7
|
|
|
8
8
|
const keyCode = {
|
|
9
9
|
ESC: 27
|
|
@@ -16,24 +16,6 @@ const StzhDialog = class {
|
|
|
16
16
|
registerInstance(this, hostRef);
|
|
17
17
|
this.stzhOpen = createEvent(this, "stzhOpen", 7);
|
|
18
18
|
this.stzhClose = createEvent(this, "stzhClose", 7);
|
|
19
|
-
/** Close dialog when pressing ESC */
|
|
20
|
-
this.closeOnEscapeKey = false;
|
|
21
|
-
/** Close dialog when clicking outside of it */
|
|
22
|
-
this.closeOnBackdropClick = false;
|
|
23
|
-
/** Open status */
|
|
24
|
-
this.open = false;
|
|
25
|
-
/** Stay in original position (true) or move to body (false) */
|
|
26
|
-
this.stay = true;
|
|
27
|
-
/** Size */
|
|
28
|
-
this.size = "default";
|
|
29
|
-
/** Whether to hide close button */
|
|
30
|
-
this.hideClose = false;
|
|
31
|
-
/** Heading text */
|
|
32
|
-
this.heading = "";
|
|
33
|
-
/** Accessibility role */
|
|
34
|
-
this.a11yRole = "alertdialog";
|
|
35
|
-
/** Accessible label for dialog (use if no heading is used) */
|
|
36
|
-
this.a11yLabel = "";
|
|
37
19
|
this.handleDialogClick = (event) => {
|
|
38
20
|
const target = event.target;
|
|
39
21
|
if (target.dataset.stzhDialogClose) {
|
|
@@ -58,6 +40,16 @@ const StzhDialog = class {
|
|
|
58
40
|
});
|
|
59
41
|
}
|
|
60
42
|
};
|
|
43
|
+
this.localization = undefined;
|
|
44
|
+
this.closeOnEscapeKey = false;
|
|
45
|
+
this.closeOnBackdropClick = false;
|
|
46
|
+
this.open = false;
|
|
47
|
+
this.stay = true;
|
|
48
|
+
this.size = "default";
|
|
49
|
+
this.hideClose = false;
|
|
50
|
+
this.heading = "";
|
|
51
|
+
this.a11yRole = "alertdialog";
|
|
52
|
+
this.a11yLabel = "";
|
|
61
53
|
}
|
|
62
54
|
handleOutsideClick(event) {
|
|
63
55
|
if (!this.open || !this.closeOnBackdropClick) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-2915b467.js';
|
|
2
2
|
import { h as hasSlot } from './utils-68a28fce.js';
|
|
3
3
|
import { f as fetchTranslations } from './translation-utils-2623783f.js';
|
|
4
|
-
import { S as StzhInputDescription } from './stzh-input-description-
|
|
4
|
+
import { S as StzhInputDescription } from './stzh-input-description-e87e6697.js';
|
|
5
5
|
import { c as createCommonjsModule, a as commonjsGlobal } from './_commonjsHelpers-ba3f0406.js';
|
|
6
6
|
|
|
7
7
|
var tomSelect_base = createCommonjsModule(function (module, exports) {
|
|
@@ -4658,69 +4658,43 @@ const StzhDropdown = class {
|
|
|
4658
4658
|
this.stzhFocus = createEvent(this, "stzhFocus", 7);
|
|
4659
4659
|
this.stzhBlur = createEvent(this, "stzhBlur", 7);
|
|
4660
4660
|
this.stzhInit = createEvent(this, "stzhInit", 7);
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
4664
|
-
* `[{"field":"text","weight":2},{"field":"text2","weight":0.5}]`
|
|
4665
|
-
*/
|
|
4661
|
+
this.options = undefined;
|
|
4662
|
+
this.optgroups = undefined;
|
|
4663
|
+
this.items = undefined;
|
|
4666
4664
|
this.searchField = ["text"];
|
|
4667
|
-
/** Whether multiple items option can be selected */
|
|
4668
4665
|
this.multiple = false;
|
|
4669
|
-
/** Show inline (auto width) */
|
|
4670
4666
|
this.inline = false;
|
|
4671
|
-
/** The max number of options to display in the dropdown. Set to `null` for an unlimited number of options. */
|
|
4672
4667
|
this.maxOptions = 50;
|
|
4673
|
-
/** When searching for multiple terms (separated by space), this is the operator used. Can be 'and' or 'or' */
|
|
4674
4668
|
this.searchConjunction = "and";
|
|
4675
|
-
/** If true, any options with a "" value will be treated like a normal option. This defaults to false to accommodate the common <select> practice of having the first empty option to act as a placeholder. */
|
|
4676
4669
|
this.allowEmptyOption = false;
|
|
4677
|
-
/** Show the dropdown immediately when the control receives focus. */
|
|
4678
4670
|
this.openOnFocus = true;
|
|
4679
|
-
/** After a selection is made, the dropdown will remain open if in a multi-selection control or will close in a single-selection control. Setting closeAfterSelect to true will force the dropdown to close after selections are made. Setting closeAfterSelect to false will keep the dropdown open after selections are made. */
|
|
4680
4671
|
this.closeAfterSelect = null;
|
|
4681
|
-
/** Invoked when new options should be loaded from the server. Called with the current query string and a callback function to call with the results when they are loaded (or nothing when an error arises). */
|
|
4682
4672
|
this.load = null;
|
|
4683
|
-
/** Minimum of characters required to execute the `load` function */
|
|
4684
4673
|
this.minCharacters = 3;
|
|
4685
|
-
/** The number of milliseconds to wait before requesting options from the server or null. If null, throttling is disabled. Useful when loading options dynamically while the user types a search / filter expression. */
|
|
4686
4674
|
this.loadThrottle = 300;
|
|
4687
|
-
/** If true, the load function will be called upon control initialization (with an empty search). Alternatively it can be set to 'focus' to call the load function when control receives focus. */
|
|
4688
4675
|
this.preload = false;
|
|
4689
|
-
/** The name of the property to render as an option / item label (not needed when custom rendering functions are defined). */
|
|
4690
4676
|
this.labelField = "text";
|
|
4691
|
-
/** The name of the property to use as the value when an item is selected. */
|
|
4692
4677
|
this.valueField = "value";
|
|
4693
|
-
/** The name of the property to group items by. */
|
|
4694
4678
|
this.optgroupField = "optgroup";
|
|
4695
|
-
/** The name of the property to render as an option group label (not needed when custom rendering functions are defined). */
|
|
4696
4679
|
this.optgroupLabelField = "label";
|
|
4697
|
-
/** The name of the option group property that serves as its unique identifier. */
|
|
4698
4680
|
this.optgroupValueField = "value";
|
|
4699
|
-
|
|
4681
|
+
this.lockOptgroupOrder = undefined;
|
|
4700
4682
|
this.name = "";
|
|
4701
|
-
/** Variant */
|
|
4702
4683
|
this.variant = "default";
|
|
4703
|
-
/** Size variant */
|
|
4704
4684
|
this.size = "default";
|
|
4705
|
-
/** Whether the dropdown is disabled */
|
|
4706
4685
|
this.disabled = false;
|
|
4707
|
-
/** Popover placement */
|
|
4708
4686
|
this.popoverPlacement = "bottom";
|
|
4709
|
-
/** Label */
|
|
4710
4687
|
this.label = "";
|
|
4711
|
-
/** Icon (use instead of icon slot) */
|
|
4712
4688
|
this.icon = "";
|
|
4713
|
-
/** Prevent option search */
|
|
4714
4689
|
this.noSearch = false;
|
|
4715
|
-
/** Prevent backspace delete */
|
|
4716
4690
|
this.noBackspaceDelete = false;
|
|
4717
|
-
/** Invalid status */
|
|
4718
4691
|
this.invalid = false;
|
|
4719
|
-
/** Required status */
|
|
4720
4692
|
this.required = false;
|
|
4721
|
-
/** Show text in label depending if field is optional/required */
|
|
4722
4693
|
this.showMarker = false;
|
|
4723
|
-
|
|
4694
|
+
this.description = undefined;
|
|
4695
|
+
this.descriptionLong = undefined;
|
|
4696
|
+
this.error = undefined;
|
|
4697
|
+
this.localization = undefined;
|
|
4724
4698
|
this.a11yDescribedby = "";
|
|
4725
4699
|
}
|
|
4726
4700
|
optionsWatcher(newValue) {
|
|
@@ -4821,7 +4795,7 @@ const StzhDropdown = class {
|
|
|
4821
4795
|
this.searchFieldWatcher(this.searchField);
|
|
4822
4796
|
this.errorWatcher(this.error);
|
|
4823
4797
|
if (!this.localization) {
|
|
4824
|
-
this.localization = await fetchTranslations(this.element,
|
|
4798
|
+
this.localization = await fetchTranslations(this.element, "dropdown");
|
|
4825
4799
|
}
|
|
4826
4800
|
}
|
|
4827
4801
|
async componentWillUpdate() {
|
|
@@ -5053,6 +5027,12 @@ const StzhDropdown = class {
|
|
|
5053
5027
|
tomSelectOptions.items = this._items;
|
|
5054
5028
|
}
|
|
5055
5029
|
this.tomSelect = new tomSelect_base(this.select, tomSelectOptions);
|
|
5030
|
+
if (!this.openOnFocus) {
|
|
5031
|
+
// we still want to enable opening the dropdown by click
|
|
5032
|
+
this.tomSelect.control.addEventListener("click", () => {
|
|
5033
|
+
this.tomSelect.open();
|
|
5034
|
+
});
|
|
5035
|
+
}
|
|
5056
5036
|
}
|
|
5057
5037
|
disconnectedCallback() {
|
|
5058
5038
|
if (this.tomSelect) {
|
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
import { r as registerInstance, h, a as Host } from './index-
|
|
1
|
+
import { r as registerInstance, h, a as Host } from './index-2915b467.js';
|
|
2
2
|
|
|
3
3
|
const stzhFieldsetCss = ".sc-stzh-fieldset-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-fieldset-h{display:none}.sc-stzh-fieldset-h *.sc-stzh-fieldset,.sc-stzh-fieldset-h *.sc-stzh-fieldset::before,.sc-stzh-fieldset-h *.sc-stzh-fieldset::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-fieldset-h .sc-stzh-fieldset-s>stzh-input,.sc-stzh-fieldset-h .sc-stzh-fieldset-s>stzh-datepicker,.sc-stzh-fieldset-h .sc-stzh-fieldset-s>stzh-dropdown,.sc-stzh-fieldset-h .sc-stzh-fieldset-s>stzh-fieldset,.sc-stzh-fieldset-h .sc-stzh-fieldset-s>stzh-actions,.sc-stzh-fieldset-h .sc-stzh-fieldset-s>stzh-upload,.sc-stzh-fieldset-h .sc-stzh-fieldset-s>stzh-checkbox,.sc-stzh-fieldset-h .sc-stzh-fieldset-s>stzh-checkboxgroup,.sc-stzh-fieldset-h .sc-stzh-fieldset-s>stzh-radio,.sc-stzh-fieldset-h .sc-stzh-fieldset-s>stzh-radiogroup,.sc-stzh-fieldset-h .sc-stzh-fieldset-s>stzh-row,.sc-stzh-fieldset-h .sc-stzh-fieldset-s>stzh-vspace,.sc-stzh-fieldset-h .sc-stzh-fieldset-s>stzh-hspace{margin-bottom:var(--stzh-space-large)}.sc-stzh-fieldset-h .sc-stzh-fieldset-s>:last-child{margin-bottom:0}.stzh-fieldset.sc-stzh-fieldset{margin:0;padding:0;border:none}.stzh-fieldset__legend.sc-stzh-fieldset{font-family:var(--stzh-font-family-title);font-weight:var(--stzh-font-weight-title);font-size:var(--stzh-font-curve-h4-default-font-size, var(--stzh-font-milli-font-size));line-height:var(--stzh-font-curve-h4-default-text-line-height, var(--stzh-font-milli-text-line-height));letter-spacing:var(--stzh-font-curve-h4-default-text-letter-spacing);color:var(--stzh-base-lead-color);padding:0;margin-bottom:var(--stzh-space-large)}@media screen and (min-width: 1024px){.stzh-fieldset__legend.sc-stzh-fieldset{font-size:var(--stzh-font-curve-h4-medium-font-size, var(--stzh-font-centi-font-size));line-height:var(--stzh-font-curve-h4-medium-text-line-height, var(--stzh-font-centi-text-line-height));letter-spacing:var(--stzh-font-curve-h4-medium-text-letter-spacing)}}.stzh-fieldset--hide-legend.sc-stzh-fieldset .stzh-fieldset__legend.sc-stzh-fieldset{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}";
|
|
4
4
|
|
|
5
5
|
const StzhFieldset = class {
|
|
6
6
|
constructor(hostRef) {
|
|
7
7
|
registerInstance(this, hostRef);
|
|
8
|
-
/** Legend describing the field group inside the fieldset */
|
|
9
8
|
this.legend = "";
|
|
10
|
-
/** Hide legend to show only for screenreaders */
|
|
11
9
|
this.hideLegend = false;
|
|
12
|
-
/** Heading level inside legend */
|
|
13
10
|
this.legendLevel = "";
|
|
14
|
-
/** Type of curve to overwrite the curve inherited from `level` attribute */
|
|
15
11
|
this.legendCurve = "auto";
|
|
16
12
|
}
|
|
17
13
|
render() {
|