@zanichelli/albe-web-components 16.3.0 → 16.3.1
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/CHANGELOG.md +2 -0
- package/dist/cjs/breakpoints-8a1e87e0.js +11 -0
- package/dist/cjs/breakpoints-8a1e87e0.js.map +1 -0
- package/dist/cjs/{index-b361709b.js → index-041b41e6.js} +2 -2
- package/dist/cjs/{index-b361709b.js.map → index-041b41e6.js.map} +1 -1
- package/dist/cjs/{index-3a070c6b.js → index-1dfb8b3c.js} +2 -2
- package/dist/cjs/{index-3a070c6b.js.map → index-1dfb8b3c.js.map} +1 -1
- package/dist/cjs/{index-1f9f28df.js → index-25ded558.js} +2 -2
- package/dist/cjs/{index-1f9f28df.js.map → index-25ded558.js.map} +1 -1
- package/dist/cjs/{index-f0159789.js → index-4bce26ea.js} +5 -5
- package/dist/cjs/{index-f0159789.js.map → index-4bce26ea.js.map} +1 -1
- package/dist/cjs/{index-e801ae96.js → index-96af6326.js} +2167 -2127
- package/dist/cjs/index-96af6326.js.map +1 -0
- package/dist/cjs/{index-1890445d.js → index-b7759a0d.js} +2 -2
- package/dist/cjs/{index-1890445d.js.map → index-b7759a0d.js.map} +1 -1
- package/dist/cjs/{index-597156d1.js → index-d4272b0e.js} +2 -2
- package/dist/cjs/{index-597156d1.js.map → index-d4272b0e.js.map} +1 -1
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{utils-6bd8c55e.js → utils-257558ff.js} +19 -5
- package/dist/cjs/utils-257558ff.js.map +1 -0
- package/dist/cjs/web-components-library.cjs.js +3 -3
- package/dist/cjs/web-components-library.cjs.js.map +1 -1
- package/dist/cjs/z-accordion.cjs.entry.js +1 -1
- package/dist/cjs/z-alert.cjs.entry.js +2 -2
- package/dist/cjs/z-anchor-navigation.cjs.entry.js +1 -1
- package/dist/cjs/z-app-header-deprecated.cjs.entry.js +2 -2
- package/dist/cjs/z-app-header-deprecated.cjs.entry.js.map +1 -1
- package/dist/cjs/z-app-header_12.cjs.entry.js +278 -342
- package/dist/cjs/z-app-header_12.cjs.entry.js.map +1 -1
- package/dist/cjs/z-aria-alert.cjs.entry.js +2 -2
- package/dist/cjs/z-avatar.cjs.entry.js +3 -3
- package/dist/cjs/z-book-card.cjs.entry.js +5 -5
- package/dist/cjs/z-book-card.cjs.entry.js.map +1 -1
- package/dist/cjs/z-breadcrumb.cjs.entry.js +5 -5
- package/dist/cjs/z-button-sort.cjs.entry.js +4 -4
- package/dist/cjs/z-button-sort.cjs.entry.js.map +1 -1
- package/dist/cjs/z-card.cjs.entry.js +1 -1
- package/dist/cjs/z-carousel.cjs.entry.js +1 -1
- package/dist/cjs/z-chip.cjs.entry.js +3 -3
- package/dist/cjs/z-combobox.cjs.entry.js +5 -5
- package/dist/cjs/z-combobox.cjs.entry.js.map +1 -1
- package/dist/cjs/z-cover-hero.cjs.entry.js +3 -3
- package/dist/cjs/z-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +7 -7
- package/dist/cjs/z-dragdrop-area_2.cjs.entry.js.map +1 -1
- package/dist/cjs/z-file-upload.cjs.entry.js +3 -3
- package/dist/cjs/z-file.cjs.entry.js +4 -4
- package/dist/cjs/z-file.cjs.entry.js.map +1 -1
- package/dist/cjs/z-ghost-loading.cjs.entry.js +2 -2
- package/dist/cjs/z-info-box.cjs.entry.js +2 -2
- package/dist/cjs/z-info-reveal.cjs.entry.js +2 -2
- package/dist/cjs/z-logo.cjs.entry.js +2 -2
- package/dist/cjs/z-menu-deprecated.cjs.entry.js +1 -1
- package/dist/cjs/z-menu-section-deprecated.cjs.entry.js +1 -1
- package/dist/cjs/z-menu-section.cjs.entry.js +141 -112
- package/dist/cjs/z-menu-section.cjs.entry.js.map +1 -1
- package/dist/cjs/z-menu.cjs.entry.js +210 -162
- package/dist/cjs/z-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/z-myz-card-alert.cjs.entry.js +2 -2
- package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +2 -2
- package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +2 -2
- package/dist/cjs/z-myz-card-footer.cjs.entry.js +2 -2
- package/dist/cjs/z-myz-card-icon.cjs.entry.js +2 -2
- package/dist/cjs/z-myz-card-info.cjs.entry.js +4 -4
- package/dist/cjs/z-myz-card-list.cjs.entry.js +2 -2
- package/dist/cjs/z-myz-card_4.cjs.entry.js +5 -5
- package/dist/cjs/z-myz-list-item.cjs.entry.js +4 -4
- package/dist/cjs/z-myz-list.cjs.entry.js +2 -2
- package/dist/cjs/z-navigation-tabs.cjs.entry.js +3 -3
- package/dist/cjs/z-notification.cjs.entry.js +2 -2
- package/dist/cjs/z-otp.cjs.entry.js +3 -3
- package/dist/cjs/z-pagination.cjs.entry.js +1 -1
- package/dist/cjs/z-panel-elem.cjs.entry.js +3 -3
- package/dist/cjs/z-popover.cjs.entry.js +2 -2
- package/dist/cjs/z-range-picker.cjs.entry.js +1 -1
- package/dist/cjs/z-section-title.cjs.entry.js +2 -2
- package/dist/cjs/z-select.cjs.entry.js +4 -4
- package/dist/cjs/z-skip-to-content.cjs.entry.js +4 -4
- package/dist/cjs/z-slideshow.cjs.entry.js +3 -3
- package/dist/cjs/z-stepper-item.cjs.entry.js +2 -2
- package/dist/cjs/z-stepper.cjs.entry.js +2 -2
- package/dist/cjs/z-table.cjs.entry.js +9 -9
- package/dist/cjs/z-tbody.cjs.entry.js +2 -2
- package/dist/cjs/z-td.cjs.entry.js +2 -2
- package/dist/cjs/z-tfoot.cjs.entry.js +2 -2
- package/dist/cjs/z-th.cjs.entry.js +2 -2
- package/dist/cjs/z-thead.cjs.entry.js +2 -2
- package/dist/cjs/z-toast-notification-list.cjs.entry.js +2 -2
- package/dist/cjs/z-toast-notification.cjs.entry.js +4 -4
- package/dist/cjs/z-toast-notification.cjs.entry.js.map +1 -1
- package/dist/cjs/z-toggle-button.cjs.entry.js +3 -3
- package/dist/cjs/z-toggle-switch.cjs.entry.js +6 -6
- package/dist/cjs/z-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/z-tr.cjs.entry.js +6 -6
- package/dist/cjs/z-visually-hidden.cjs.entry.js +2 -2
- package/dist/collection/beans/index.js.map +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/css-components/z-fab/index.stories.js.map +1 -1
- package/dist/collection/components/css-components/z-link/index.stories.js.map +1 -1
- package/dist/collection/components/date-picker/utils.js.map +1 -1
- package/dist/collection/components/date-picker/z-date-picker/index.js.map +1 -1
- package/dist/collection/components/date-picker/z-date-picker/index.stories.js.map +1 -1
- package/dist/collection/components/date-picker/z-range-picker/index.js.map +1 -1
- package/dist/collection/components/date-picker/z-range-picker/index.stories.js.map +1 -1
- package/dist/collection/components/deprecated/z-app-header-deprecated/index.js +1 -1
- package/dist/collection/components/deprecated/z-app-header-deprecated/index.js.map +1 -1
- package/dist/collection/components/deprecated/z-app-header-deprecated/index.stories.js.map +1 -1
- package/dist/collection/components/deprecated/z-menu-deprecated/index.js.map +1 -1
- package/dist/collection/components/deprecated/z-menu-deprecated/index.stories.js.map +1 -1
- package/dist/collection/components/deprecated/z-menu-section-deprecated/index.js.map +1 -1
- package/dist/collection/components/deprecated/z-menu-section-deprecated/index.stories.js.map +1 -1
- package/dist/collection/components/file-upload/z-dragdrop-area/index.js.map +1 -1
- package/dist/collection/components/file-upload/z-file/index.js +3 -3
- package/dist/collection/components/file-upload/z-file/index.js.map +1 -1
- package/dist/collection/components/file-upload/z-file/index.stories.js.map +1 -1
- package/dist/collection/components/file-upload/z-file-upload/index.js.map +1 -1
- package/dist/collection/components/file-upload/z-file-upload/index.stories.js.map +1 -1
- package/dist/collection/components/index.js.map +1 -1
- package/dist/collection/components/list/z-list/index.js.map +1 -1
- package/dist/collection/components/list/z-list/index.stories.js.map +1 -1
- package/dist/collection/components/list/z-list-element/index.js.map +1 -1
- package/dist/collection/components/list/z-list-element/index.stories.js.map +1 -1
- package/dist/collection/components/list/z-list-group/index.js.map +1 -1
- package/dist/collection/components/list/z-list-group/index.stories.js.map +1 -1
- package/dist/collection/components/table/cells/z-td/index.js.map +1 -1
- package/dist/collection/components/table/cells/z-th/index.js.map +1 -1
- package/dist/collection/components/table/z-table/index.js.map +1 -1
- package/dist/collection/components/table/z-table/index.stories.js.map +1 -1
- package/dist/collection/components/table/z-tbody/index.js.map +1 -1
- package/dist/collection/components/table/z-tfoot/index.js.map +1 -1
- package/dist/collection/components/table/z-thead/index.js.map +1 -1
- package/dist/collection/components/table/z-tr/index.js.map +1 -1
- package/dist/collection/components/z-accordion/index.js.map +1 -1
- package/dist/collection/components/z-accordion/index.stories.js.map +1 -1
- package/dist/collection/components/z-anchor-navigation/index.js.map +1 -1
- package/dist/collection/components/z-anchor-navigation/index.stories.js.map +1 -1
- package/dist/collection/components/z-app-header/index.js +149 -206
- package/dist/collection/components/z-app-header/index.js.map +1 -1
- package/dist/collection/components/z-app-header/index.stories.js +12 -28
- package/dist/collection/components/z-app-header/index.stories.js.map +1 -1
- package/dist/collection/components/z-app-header/styles.css +95 -121
- package/dist/collection/components/z-aria-alert/index.js +1 -1
- package/dist/collection/components/z-aria-alert/index.js.map +1 -1
- package/dist/collection/components/z-aria-alert/index.stories.js.map +1 -1
- package/dist/collection/components/z-avatar/index.js +2 -2
- package/dist/collection/components/z-avatar/index.js.map +1 -1
- package/dist/collection/components/z-avatar/index.stories.js.map +1 -1
- package/dist/collection/components/z-book-card/index.js +3 -3
- package/dist/collection/components/z-book-card/index.js.map +1 -1
- package/dist/collection/components/z-book-card/index.stories.js.map +1 -1
- package/dist/collection/components/z-breadcrumb/index.js +2 -2
- package/dist/collection/components/z-breadcrumb/index.js.map +1 -1
- package/dist/collection/components/z-breadcrumb/index.stories.js.map +1 -1
- package/dist/collection/components/z-button/index.js.map +1 -1
- package/dist/collection/components/z-button/index.stories.js.map +1 -1
- package/dist/collection/components/z-button-sort/index.js +3 -3
- package/dist/collection/components/z-button-sort/index.js.map +1 -1
- package/dist/collection/components/z-button-sort/index.stories.js.map +1 -1
- package/dist/collection/components/z-card/index.js.map +1 -1
- package/dist/collection/components/z-card/index.stories.js.map +1 -1
- package/dist/collection/components/z-carousel/index.js.map +1 -1
- package/dist/collection/components/z-carousel/index.stories.js.map +1 -1
- package/dist/collection/components/z-chip/index.js +2 -2
- package/dist/collection/components/z-chip/index.js.map +1 -1
- package/dist/collection/components/z-chip/index.stories.js.map +1 -1
- package/dist/collection/components/z-combobox/index.js +1 -1
- package/dist/collection/components/z-combobox/index.js.map +1 -1
- package/dist/collection/components/z-combobox/index.stories.js.map +1 -1
- package/dist/collection/components/z-combobox/styles.css +6 -4
- package/dist/collection/components/z-cover-hero/index.js +2 -2
- package/dist/collection/components/z-cover-hero/index.js.map +1 -1
- package/dist/collection/components/z-cover-hero/index.stories.js.map +1 -1
- package/dist/collection/components/z-divider/index.js +1 -1
- package/dist/collection/components/z-divider/index.js.map +1 -1
- package/dist/collection/components/z-divider/index.stories.js.map +1 -1
- package/dist/collection/components/z-ghost-loading/index.js +1 -1
- package/dist/collection/components/z-ghost-loading/index.js.map +1 -1
- package/dist/collection/components/z-ghost-loading/index.stories.js.map +1 -1
- package/dist/collection/components/z-icon/index.js.map +1 -1
- package/dist/collection/components/z-icon/index.stories.js.map +1 -1
- package/dist/collection/components/z-info-box/index.js +1 -1
- package/dist/collection/components/z-info-box/index.js.map +1 -1
- package/dist/collection/components/z-info-box/index.stories.js.map +1 -1
- package/dist/collection/components/z-info-reveal/index.js +1 -1
- package/dist/collection/components/z-info-reveal/index.js.map +1 -1
- package/dist/collection/components/z-info-reveal/index.stories.js.map +1 -1
- package/dist/collection/components/z-input/index.js +1 -1
- package/dist/collection/components/z-input/index.js.map +1 -1
- package/dist/collection/components/z-input/index.stories.js.map +1 -1
- package/dist/collection/components/z-input-message/index.js +1 -1
- package/dist/collection/components/z-input-message/index.js.map +1 -1
- package/dist/collection/components/z-input-message/index.stories.js.map +1 -1
- package/dist/collection/components/z-logo/index.js +1 -1
- package/dist/collection/components/z-logo/index.js.map +1 -1
- package/dist/collection/components/z-logo/index.stories.js.map +1 -1
- package/dist/collection/components/z-menu/index.js +269 -171
- package/dist/collection/components/z-menu/index.js.map +1 -1
- package/dist/collection/components/z-menu/index.stories.js +2 -8
- package/dist/collection/components/z-menu/index.stories.js.map +1 -1
- package/dist/collection/components/z-menu/styles.css +38 -46
- package/dist/collection/components/z-menu-section/index.js +216 -121
- package/dist/collection/components/z-menu-section/index.js.map +1 -1
- package/dist/collection/components/z-menu-section/index.stories.js.map +1 -1
- package/dist/collection/components/z-menu-section/styles.css +32 -27
- package/dist/collection/components/z-modal/index.js +6 -6
- package/dist/collection/components/z-modal/index.js.map +1 -1
- package/dist/collection/components/z-modal/index.stories.js.map +1 -1
- package/dist/collection/components/z-navigation-tabs/index.js +2 -2
- package/dist/collection/components/z-navigation-tabs/index.js.map +1 -1
- package/dist/collection/components/z-navigation-tabs/index.stories.js.map +1 -1
- package/dist/collection/components/z-notification/index.js +1 -1
- package/dist/collection/components/z-notification/index.js.map +1 -1
- package/dist/collection/components/z-notification/index.stories.js.map +1 -1
- package/dist/collection/components/z-offcanvas/index.js +1 -1
- package/dist/collection/components/z-offcanvas/index.js.map +1 -1
- package/dist/collection/components/z-offcanvas/index.stories.js.map +1 -1
- package/dist/collection/components/z-pagination/index.js.map +1 -1
- package/dist/collection/components/z-pagination/index.stories.js.map +1 -1
- package/dist/collection/components/z-panel-elem/index.js +2 -2
- package/dist/collection/components/z-panel-elem/index.js.map +1 -1
- package/dist/collection/components/z-panel-elem/index.stories.js.map +1 -1
- package/dist/collection/components/z-popover/index.js +1 -1
- package/dist/collection/components/z-popover/index.js.map +1 -1
- package/dist/collection/components/z-popover/index.stories.js.map +1 -1
- package/dist/collection/components/z-searchbar/index.js +4 -3
- package/dist/collection/components/z-searchbar/index.js.map +1 -1
- package/dist/collection/components/z-searchbar/index.stories.js.map +1 -1
- package/dist/collection/components/z-section-title/index.js +1 -1
- package/dist/collection/components/z-section-title/index.js.map +1 -1
- package/dist/collection/components/z-section-title/index.stories.js.map +1 -1
- package/dist/collection/components/z-select/index.js +1 -1
- package/dist/collection/components/z-select/index.js.map +1 -1
- package/dist/collection/components/z-select/index.stories.js.map +1 -1
- package/dist/collection/components/z-skip-to-content/index.js +1 -1
- package/dist/collection/components/z-skip-to-content/index.js.map +1 -1
- package/dist/collection/components/z-skip-to-content/index.stories.js.map +1 -1
- package/dist/collection/components/z-stepper/index.js +1 -1
- package/dist/collection/components/z-stepper/index.js.map +1 -1
- package/dist/collection/components/z-stepper/index.stories.js.map +1 -1
- package/dist/collection/components/z-stepper-item/index.js +1 -1
- package/dist/collection/components/z-stepper-item/index.js.map +1 -1
- package/dist/collection/components/z-stepper-item/index.stories.js.map +1 -1
- package/dist/collection/components/z-tag/index.js.map +1 -1
- package/dist/collection/components/z-tag/index.stories.js.map +1 -1
- package/dist/collection/components/z-toast-notification/index.js +3 -3
- package/dist/collection/components/z-toast-notification/index.js.map +1 -1
- package/dist/collection/components/z-toast-notification/index.stories.js.map +1 -1
- package/dist/collection/components/z-toast-notification-list/index.js +1 -1
- package/dist/collection/components/z-toast-notification-list/index.js.map +1 -1
- package/dist/collection/components/z-toast-notification-list/index.stories.js.map +1 -1
- package/dist/collection/components/z-toggle-button/index.js +2 -2
- package/dist/collection/components/z-toggle-button/index.js.map +1 -1
- package/dist/collection/components/z-toggle-button/index.stories.js.map +1 -1
- package/dist/collection/components/z-toggle-switch/index.js +3 -3
- package/dist/collection/components/z-toggle-switch/index.js.map +1 -1
- package/dist/collection/components/z-toggle-switch/index.stories.js.map +1 -1
- package/dist/collection/components/z-tooltip/index.js +1 -1
- package/dist/collection/components/z-tooltip/index.js.map +1 -1
- package/dist/collection/components/z-tooltip/index.stories.js.map +1 -1
- package/dist/collection/components/z-visually-hidden/index.js +1 -1
- package/dist/collection/components/z-visually-hidden/index.js.map +1 -1
- package/dist/collection/components/z-visually-hidden/index.stories.js.map +1 -1
- package/dist/collection/constants/breakpoints.js +7 -4
- package/dist/collection/constants/breakpoints.js.map +1 -1
- package/dist/collection/constants/icons.js.map +1 -1
- package/dist/collection/constants/iconset.js.map +1 -1
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card/index.js.map +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js.map +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js.map +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js.map +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js.map +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js.map +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js.map +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js.map +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js.map +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js.map +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js.map +1 -1
- package/dist/collection/snowflakes/myz/list/z-myz-list/index.js +1 -1
- package/dist/collection/snowflakes/myz/list/z-myz-list/index.js.map +1 -1
- package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js +1 -1
- package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js.map +1 -1
- package/dist/collection/snowflakes/myz/z-alert/index.js +1 -1
- package/dist/collection/snowflakes/myz/z-alert/index.js.map +1 -1
- package/dist/collection/snowflakes/myz/z-otp/index.js +2 -2
- package/dist/collection/snowflakes/myz/z-otp/index.js.map +1 -1
- package/dist/collection/snowflakes/myz/z-slideshow/index.js.map +1 -1
- package/dist/collection/utils/storybook-utils.js.map +1 -1
- package/dist/collection/utils/utils.js +17 -7
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/components/breakpoints.js +8 -4
- package/dist/components/breakpoints.js.map +1 -1
- package/dist/components/index10.js +1 -1
- package/dist/components/index11.js +1 -1
- package/dist/components/index15.js +6 -6
- package/dist/components/index15.js.map +1 -1
- package/dist/components/index16.js +1 -1
- package/dist/components/index17.js +1 -1
- package/dist/components/index18.js +1 -1
- package/dist/components/index19.js +1 -1
- package/dist/components/index20.js +1 -1
- package/dist/components/index21.js +1 -1
- package/dist/components/index22.js +1 -1
- package/dist/components/index23.js +5 -4
- package/dist/components/index23.js.map +1 -1
- package/dist/components/index3.js +1 -1
- package/dist/components/index5.js +2 -2
- package/dist/components/index6.js +1 -1
- package/dist/components/index8.js +1 -1
- package/dist/components/utils.js +18 -5
- package/dist/components/utils.js.map +1 -1
- package/dist/components/z-app-header-deprecated.js +1 -1
- package/dist/components/z-app-header-deprecated.js.map +1 -1
- package/dist/components/z-app-header.js +144 -207
- package/dist/components/z-app-header.js.map +1 -1
- package/dist/components/z-aria-alert.js +1 -1
- package/dist/components/z-avatar.js +2 -2
- package/dist/components/z-book-card.js +3 -3
- package/dist/components/z-book-card.js.map +1 -1
- package/dist/components/z-breadcrumb.js +2 -2
- package/dist/components/z-button-sort.js +3 -3
- package/dist/components/z-button-sort.js.map +1 -1
- package/dist/components/z-combobox.js +2 -2
- package/dist/components/z-combobox.js.map +1 -1
- package/dist/components/z-cover-hero.js +2 -2
- package/dist/components/z-file.js +3 -3
- package/dist/components/z-file.js.map +1 -1
- package/dist/components/z-info-box.js +1 -1
- package/dist/components/z-info-reveal.js +1 -1
- package/dist/components/z-logo.js +1 -1
- package/dist/components/z-menu-section.js +151 -115
- package/dist/components/z-menu-section.js.map +1 -1
- package/dist/components/z-menu.js +218 -166
- package/dist/components/z-menu.js.map +1 -1
- package/dist/components/z-myz-card-alert.js +1 -1
- package/dist/components/z-myz-card-dictionary.js +1 -1
- package/dist/components/z-myz-card-footer-sections.js +1 -1
- package/dist/components/z-myz-card-footer.js +1 -1
- package/dist/components/z-myz-card-icon.js +1 -1
- package/dist/components/z-myz-card-info.js +1 -1
- package/dist/components/z-myz-card-list.js +1 -1
- package/dist/components/z-myz-list.js +1 -1
- package/dist/components/z-navigation-tabs.js +2 -2
- package/dist/components/z-notification.js +1 -1
- package/dist/components/z-otp.js +2 -2
- package/dist/components/z-panel-elem.js +2 -2
- package/dist/components/z-section-title.js +1 -1
- package/dist/components/z-select.js +2 -2
- package/dist/components/z-skip-to-content.js +2 -2
- package/dist/components/z-slideshow.js +1 -1
- package/dist/components/z-stepper-item.js +1 -1
- package/dist/components/z-stepper.js +1 -1
- package/dist/components/z-table.js +1 -0
- package/dist/components/z-table.js.map +1 -1
- package/dist/components/z-toast-notification-list.js +1 -1
- package/dist/components/z-toast-notification.js +3 -3
- package/dist/components/z-toast-notification.js.map +1 -1
- package/dist/components/z-toggle-button.js +2 -2
- package/dist/components/z-toggle-switch.js +3 -3
- package/dist/components/z-tooltip.js +1 -1
- package/dist/components/z-visually-hidden.js +1 -1
- package/dist/esm/breakpoints-d148bfde.js +11 -0
- package/dist/esm/breakpoints-d148bfde.js.map +1 -0
- package/dist/esm/{index-175661e6.js → index-36f0f6c0.js} +2 -2
- package/dist/esm/{index-175661e6.js.map → index-36f0f6c0.js.map} +1 -1
- package/dist/esm/{index-fd7edd22.js → index-66bd56db.js} +5 -5
- package/dist/esm/{index-fd7edd22.js.map → index-66bd56db.js.map} +1 -1
- package/dist/esm/{index-7a28ff39.js → index-89520805.js} +2 -2
- package/dist/esm/{index-7a28ff39.js.map → index-89520805.js.map} +1 -1
- package/dist/esm/{index-a2130b6a.js → index-c8ceadeb.js} +2167 -2127
- package/dist/esm/index-c8ceadeb.js.map +1 -0
- package/dist/esm/{index-230d44a5.js → index-cddfba10.js} +2 -2
- package/dist/esm/{index-230d44a5.js.map → index-cddfba10.js.map} +1 -1
- package/dist/esm/{index-a81f1558.js → index-dfddeb25.js} +2 -2
- package/dist/esm/{index-a81f1558.js.map → index-dfddeb25.js.map} +1 -1
- package/dist/esm/{index-b556b384.js → index-e70be23f.js} +2 -2
- package/dist/esm/{index-b556b384.js.map → index-e70be23f.js.map} +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{utils-8ade9e2d.js → utils-acc8bdd0.js} +19 -6
- package/dist/esm/utils-acc8bdd0.js.map +1 -0
- package/dist/esm/web-components-library.js +4 -4
- package/dist/esm/web-components-library.js.map +1 -1
- package/dist/esm/z-accordion.entry.js +1 -1
- package/dist/esm/z-alert.entry.js +2 -2
- package/dist/esm/z-anchor-navigation.entry.js +1 -1
- package/dist/esm/z-app-header-deprecated.entry.js +2 -2
- package/dist/esm/z-app-header-deprecated.entry.js.map +1 -1
- package/dist/esm/z-app-header_12.entry.js +145 -209
- package/dist/esm/z-app-header_12.entry.js.map +1 -1
- package/dist/esm/z-aria-alert.entry.js +2 -2
- package/dist/esm/z-avatar.entry.js +3 -3
- package/dist/esm/z-book-card.entry.js +5 -5
- package/dist/esm/z-book-card.entry.js.map +1 -1
- package/dist/esm/z-breadcrumb.entry.js +5 -5
- package/dist/esm/z-button-sort.entry.js +4 -4
- package/dist/esm/z-button-sort.entry.js.map +1 -1
- package/dist/esm/z-card.entry.js +1 -1
- package/dist/esm/z-carousel.entry.js +1 -1
- package/dist/esm/z-chip.entry.js +3 -3
- package/dist/esm/z-combobox.entry.js +5 -5
- package/dist/esm/z-combobox.entry.js.map +1 -1
- package/dist/esm/z-cover-hero.entry.js +3 -3
- package/dist/esm/z-date-picker.entry.js +1 -1
- package/dist/esm/z-dragdrop-area_2.entry.js +7 -7
- package/dist/esm/z-dragdrop-area_2.entry.js.map +1 -1
- package/dist/esm/z-file-upload.entry.js +3 -3
- package/dist/esm/z-file.entry.js +4 -4
- package/dist/esm/z-file.entry.js.map +1 -1
- package/dist/esm/z-ghost-loading.entry.js +2 -2
- package/dist/esm/z-info-box.entry.js +2 -2
- package/dist/esm/z-info-reveal.entry.js +2 -2
- package/dist/esm/z-logo.entry.js +2 -2
- package/dist/esm/z-menu-deprecated.entry.js +1 -1
- package/dist/esm/z-menu-section-deprecated.entry.js +1 -1
- package/dist/esm/z-menu-section.entry.js +140 -111
- package/dist/esm/z-menu-section.entry.js.map +1 -1
- package/dist/esm/z-menu.entry.js +210 -162
- package/dist/esm/z-menu.entry.js.map +1 -1
- package/dist/esm/z-myz-card-alert.entry.js +2 -2
- package/dist/esm/z-myz-card-dictionary.entry.js +2 -2
- package/dist/esm/z-myz-card-footer-sections.entry.js +2 -2
- package/dist/esm/z-myz-card-footer.entry.js +2 -2
- package/dist/esm/z-myz-card-icon.entry.js +2 -2
- package/dist/esm/z-myz-card-info.entry.js +4 -4
- package/dist/esm/z-myz-card-list.entry.js +2 -2
- package/dist/esm/z-myz-card_4.entry.js +5 -5
- package/dist/esm/z-myz-list-item.entry.js +4 -4
- package/dist/esm/z-myz-list.entry.js +2 -2
- package/dist/esm/z-navigation-tabs.entry.js +3 -3
- package/dist/esm/z-notification.entry.js +2 -2
- package/dist/esm/z-otp.entry.js +3 -3
- package/dist/esm/z-pagination.entry.js +1 -1
- package/dist/esm/z-panel-elem.entry.js +3 -3
- package/dist/esm/z-popover.entry.js +2 -2
- package/dist/esm/z-range-picker.entry.js +1 -1
- package/dist/esm/z-section-title.entry.js +2 -2
- package/dist/esm/z-select.entry.js +4 -4
- package/dist/esm/z-skip-to-content.entry.js +4 -4
- package/dist/esm/z-slideshow.entry.js +3 -3
- package/dist/esm/z-stepper-item.entry.js +2 -2
- package/dist/esm/z-stepper.entry.js +2 -2
- package/dist/esm/z-table.entry.js +9 -9
- package/dist/esm/z-tbody.entry.js +2 -2
- package/dist/esm/z-td.entry.js +2 -2
- package/dist/esm/z-tfoot.entry.js +2 -2
- package/dist/esm/z-th.entry.js +2 -2
- package/dist/esm/z-thead.entry.js +2 -2
- package/dist/esm/z-toast-notification-list.entry.js +2 -2
- package/dist/esm/z-toast-notification.entry.js +4 -4
- package/dist/esm/z-toast-notification.entry.js.map +1 -1
- package/dist/esm/z-toggle-button.entry.js +3 -3
- package/dist/esm/z-toggle-switch.entry.js +6 -6
- package/dist/esm/z-tooltip.entry.js +2 -2
- package/dist/esm/z-tr.entry.js +6 -6
- package/dist/esm/z-visually-hidden.entry.js +2 -2
- package/dist/types/components/deprecated/z-app-header-deprecated/index.stories.d.ts +3 -3
- package/dist/types/components/list/z-list-group/index.stories.d.ts +1 -1
- package/dist/types/components/z-app-header/index.d.ts +23 -30
- package/dist/types/components/z-app-header/index.stories.d.ts +2 -5
- package/dist/types/components/z-book-card/index.stories.d.ts +2 -2
- package/dist/types/components/z-carousel/index.stories.d.ts +1 -1
- package/dist/types/components/z-cover-hero/index.stories.d.ts +1 -1
- package/dist/types/components/z-menu/index.d.ts +34 -26
- package/dist/types/components/z-menu/index.stories.d.ts +1 -2
- package/dist/types/components/z-menu-section/index.d.ts +28 -18
- package/dist/types/components/z-modal/index.stories.d.ts +1 -1
- package/dist/types/components/z-navigation-tabs/index.stories.d.ts +2 -2
- package/dist/types/components/z-popover/index.stories.d.ts +2 -2
- package/dist/types/components/z-section-title/index.stories.d.ts +1 -1
- package/dist/types/components/z-tag/index.stories.d.ts +2 -2
- package/dist/types/components/z-tooltip/index.stories.d.ts +1 -1
- package/dist/types/components.d.ts +48 -8
- package/dist/types/constants/breakpoints.d.ts +6 -4
- package/dist/types/stencil-public-runtime.d.ts +0 -2
- package/dist/types/utils/utils.d.ts +10 -1
- package/dist/web-components-library/index.esm.js +1 -1
- package/dist/web-components-library/p-04c39e8a.entry.js +2 -0
- package/dist/web-components-library/p-04c39e8a.entry.js.map +1 -0
- package/dist/web-components-library/p-0542a3c9.entry.js +2 -0
- package/dist/web-components-library/p-0542a3c9.entry.js.map +1 -0
- package/dist/web-components-library/{p-6319b5e2.entry.js → p-06d98334.entry.js} +2 -2
- package/dist/web-components-library/{p-2672e36f.entry.js → p-100c6243.entry.js} +2 -2
- package/dist/web-components-library/p-16d625b3.entry.js +2 -0
- package/dist/web-components-library/p-16d625b3.entry.js.map +1 -0
- package/{www/build/p-28928bb6.entry.js → dist/web-components-library/p-1896cc54.entry.js} +2 -2
- package/{www/build/p-19f8c3d2.entry.js → dist/web-components-library/p-1cc37aa7.entry.js} +2 -2
- package/{www/build/p-c0bdbfb5.entry.js → dist/web-components-library/p-273f3c53.entry.js} +2 -2
- package/dist/web-components-library/{p-4f7dd068.entry.js → p-28018cd3.entry.js} +2 -2
- package/{www/build/p-12d62027.entry.js → dist/web-components-library/p-296924ea.entry.js} +2 -2
- package/dist/web-components-library/p-2b1fd95a.entry.js +2 -0
- package/dist/web-components-library/{p-99b791d1.entry.js → p-2e432a39.entry.js} +2 -2
- package/dist/web-components-library/{p-af856537.entry.js → p-2f662fea.entry.js} +2 -2
- package/dist/web-components-library/{p-8a10fec5.entry.js → p-38d5e74f.entry.js} +2 -2
- package/dist/web-components-library/p-3ae8fb1a.entry.js +2 -0
- package/dist/web-components-library/{p-304eeab0.js → p-3dbad75e.js} +2 -2
- package/{www/build/p-be4878f2.entry.js → dist/web-components-library/p-4537f922.entry.js} +2 -2
- package/dist/web-components-library/{p-91c04edc.entry.js → p-45dc157c.entry.js} +2 -2
- package/dist/web-components-library/{p-e366782c.entry.js → p-46d98609.entry.js} +2 -2
- package/{www/build/p-7d7c5344.js → dist/web-components-library/p-4a2e0034.js} +2 -2
- package/dist/web-components-library/p-4f3f8578.entry.js +2 -0
- package/dist/web-components-library/p-5145a606.js +2 -0
- package/dist/web-components-library/p-5145a606.js.map +1 -0
- package/{www/build/p-e5dc0719.entry.js → dist/web-components-library/p-51f1c9c0.entry.js} +2 -2
- package/{www/build/p-e1852de3.entry.js → dist/web-components-library/p-5a0f0978.entry.js} +2 -2
- package/dist/web-components-library/{p-6586441a.entry.js → p-5a178c69.entry.js} +3 -3
- package/dist/web-components-library/p-5a178c69.entry.js.map +1 -0
- package/dist/web-components-library/{p-cf2640b0.entry.js → p-608c35ba.entry.js} +2 -2
- package/{www/build/p-cf2640b0.entry.js.map → dist/web-components-library/p-608c35ba.entry.js.map} +1 -1
- package/dist/web-components-library/{p-26b5c84d.js → p-60f410df.js} +2 -2
- package/dist/web-components-library/p-63ec7bad.entry.js +2 -0
- package/dist/web-components-library/p-64364cbf.entry.js +2 -0
- package/dist/web-components-library/p-64364cbf.entry.js.map +1 -0
- package/dist/web-components-library/p-64aab82f.js +2 -0
- package/dist/web-components-library/p-67e5e8ed.js +2 -0
- package/dist/web-components-library/p-67e5e8ed.js.map +1 -0
- package/dist/web-components-library/{p-57eee056.entry.js → p-68f4fbc8.entry.js} +2 -2
- package/dist/web-components-library/{p-f21bc3a9.entry.js → p-6a1b3e86.entry.js} +2 -2
- package/dist/web-components-library/{p-05e9ae1e.entry.js → p-6db2fd46.entry.js} +2 -2
- package/{www/build/p-83350b5f.entry.js → dist/web-components-library/p-707e5f91.entry.js} +2 -2
- package/dist/web-components-library/p-75c4a726.js +3 -0
- package/dist/web-components-library/p-75c4a726.js.map +1 -0
- package/{www/build/p-85f84e55.entry.js → dist/web-components-library/p-777ad335.entry.js} +2 -2
- package/dist/web-components-library/p-777ad335.entry.js.map +1 -0
- package/{www/build/p-b84fa3b6.entry.js → dist/web-components-library/p-7aba5af3.entry.js} +2 -2
- package/dist/web-components-library/p-7d5bf905.entry.js +2 -0
- package/dist/web-components-library/{p-324ef970.entry.js → p-820b48f6.entry.js} +2 -2
- package/dist/web-components-library/p-823c45d4.entry.js +2 -0
- package/{www/build/p-8c9f7cef.entry.js → dist/web-components-library/p-855334f4.entry.js} +2 -2
- package/dist/web-components-library/{p-aa0f083b.js → p-8a6a4d22.js} +2 -2
- package/{www/build/p-8b309268.entry.js → dist/web-components-library/p-8d56e74b.entry.js} +2 -2
- package/dist/web-components-library/p-8d56e74b.entry.js.map +1 -0
- package/dist/web-components-library/{p-d9e1d8c7.js → p-95cb8701.js} +2 -2
- package/dist/web-components-library/p-9a1b51ed.entry.js +2 -0
- package/{www/build/p-ad76b8ff.entry.js.map → dist/web-components-library/p-9a1b51ed.entry.js.map} +1 -1
- package/dist/web-components-library/{p-4552744b.entry.js → p-9b9a04ad.entry.js} +2 -2
- package/dist/web-components-library/{p-77d8ad7e.entry.js → p-a0fd1323.entry.js} +2 -2
- package/dist/web-components-library/p-a64a1bf0.entry.js +2 -0
- package/dist/web-components-library/p-a64a1bf0.entry.js.map +1 -0
- package/dist/web-components-library/p-aaae6b16.entry.js +2 -0
- package/dist/web-components-library/{p-97b0c3b3.entry.js.map → p-aaae6b16.entry.js.map} +1 -1
- package/dist/web-components-library/p-ab7f129e.entry.js +2 -0
- package/dist/web-components-library/{p-6f4dd02b.entry.js.map → p-ab7f129e.entry.js.map} +1 -1
- package/{www/build/p-088a31dc.entry.js → dist/web-components-library/p-acd911aa.entry.js} +2 -2
- package/{www/build/p-a4ada10b.entry.js → dist/web-components-library/p-ad97fdc4.entry.js} +2 -2
- package/dist/web-components-library/{p-57ecb5a7.entry.js → p-b2356bc7.entry.js} +2 -2
- package/dist/web-components-library/p-c1e498ac.entry.js +2 -0
- package/dist/web-components-library/{p-a5781264.entry.js → p-c54d0925.entry.js} +2 -2
- package/dist/web-components-library/p-c679277c.entry.js +2 -0
- package/{www/build/p-df05727f.entry.js.map → dist/web-components-library/p-c679277c.entry.js.map} +1 -1
- package/dist/web-components-library/p-cc71a90c.entry.js +2 -0
- package/{www/build/p-c90249e5.entry.js → dist/web-components-library/p-cd0219b4.entry.js} +2 -2
- package/{www/build/p-6a664748.entry.js → dist/web-components-library/p-d5f5e107.entry.js} +2 -2
- package/dist/web-components-library/p-d5f5e107.entry.js.map +1 -0
- package/dist/web-components-library/{p-88e756cd.entry.js → p-da7200c2.entry.js} +2 -2
- package/{www/build/p-ae96bc09.entry.js → dist/web-components-library/p-df8c381a.entry.js} +2 -2
- package/dist/web-components-library/{p-3b266de4.entry.js → p-df9c3674.entry.js} +2 -2
- package/dist/web-components-library/{p-609c11d6.entry.js → p-e25d7f0a.entry.js} +2 -2
- package/dist/web-components-library/{p-33eea921.entry.js → p-e4d97fbf.entry.js} +2 -2
- package/dist/web-components-library/{p-f74f9f3c.entry.js → p-e529a714.entry.js} +2 -2
- package/dist/web-components-library/{p-21b85c7f.entry.js → p-ea9c0ff3.entry.js} +2 -2
- package/dist/web-components-library/{p-2a7e4988.entry.js → p-f06ad42c.entry.js} +2 -2
- package/dist/web-components-library/{p-8499a29d.entry.js → p-f15d0a00.entry.js} +2 -2
- package/{www/build/p-63e970ee.entry.js → dist/web-components-library/p-f425c6f2.entry.js} +2 -2
- package/dist/web-components-library/p-f703660d.entry.js +2 -0
- package/{www/build/p-49e4ce84.entry.js → dist/web-components-library/p-f8bbca6e.entry.js} +2 -2
- package/dist/web-components-library/web-components-library.esm.js +1 -1
- package/dist/web-components-library/web-components-library.esm.js.map +1 -1
- package/loader/index.d.ts +3 -0
- package/package.json +16 -18
- package/www/build/index.esm.js +1 -1
- package/www/build/p-04c39e8a.entry.js +2 -0
- package/www/build/p-04c39e8a.entry.js.map +1 -0
- package/www/build/p-0542a3c9.entry.js +2 -0
- package/www/build/p-0542a3c9.entry.js.map +1 -0
- package/www/build/{p-6319b5e2.entry.js → p-06d98334.entry.js} +2 -2
- package/www/build/{p-2672e36f.entry.js → p-100c6243.entry.js} +2 -2
- package/www/build/p-16d625b3.entry.js +2 -0
- package/www/build/p-16d625b3.entry.js.map +1 -0
- package/{dist/web-components-library/p-28928bb6.entry.js → www/build/p-1896cc54.entry.js} +2 -2
- package/{dist/web-components-library/p-19f8c3d2.entry.js → www/build/p-1cc37aa7.entry.js} +2 -2
- package/{dist/web-components-library/p-c0bdbfb5.entry.js → www/build/p-273f3c53.entry.js} +2 -2
- package/www/build/{p-4f7dd068.entry.js → p-28018cd3.entry.js} +2 -2
- package/{dist/web-components-library/p-12d62027.entry.js → www/build/p-296924ea.entry.js} +2 -2
- package/www/build/p-2b1fd95a.entry.js +2 -0
- package/www/build/{p-99b791d1.entry.js → p-2e432a39.entry.js} +2 -2
- package/www/build/{p-af856537.entry.js → p-2f662fea.entry.js} +2 -2
- package/www/build/{p-8a10fec5.entry.js → p-38d5e74f.entry.js} +2 -2
- package/www/build/p-3ae8fb1a.entry.js +2 -0
- package/www/build/{p-304eeab0.js → p-3dbad75e.js} +2 -2
- package/{dist/web-components-library/p-be4878f2.entry.js → www/build/p-4537f922.entry.js} +2 -2
- package/www/build/{p-91c04edc.entry.js → p-45dc157c.entry.js} +2 -2
- package/www/build/{p-e366782c.entry.js → p-46d98609.entry.js} +2 -2
- package/{dist/web-components-library/p-7d7c5344.js → www/build/p-4a2e0034.js} +2 -2
- package/www/build/p-4f3f8578.entry.js +2 -0
- package/www/build/p-5145a606.js +2 -0
- package/www/build/p-5145a606.js.map +1 -0
- package/{dist/web-components-library/p-e5dc0719.entry.js → www/build/p-51f1c9c0.entry.js} +2 -2
- package/{dist/web-components-library/p-e1852de3.entry.js → www/build/p-5a0f0978.entry.js} +2 -2
- package/www/build/{p-6586441a.entry.js → p-5a178c69.entry.js} +3 -3
- package/www/build/p-5a178c69.entry.js.map +1 -0
- package/www/build/{p-cf2640b0.entry.js → p-608c35ba.entry.js} +2 -2
- package/{dist/web-components-library/p-cf2640b0.entry.js.map → www/build/p-608c35ba.entry.js.map} +1 -1
- package/www/build/{p-26b5c84d.js → p-60f410df.js} +2 -2
- package/www/build/p-63ec7bad.entry.js +2 -0
- package/www/build/p-64364cbf.entry.js +2 -0
- package/www/build/p-64364cbf.entry.js.map +1 -0
- package/www/build/p-64aab82f.js +2 -0
- package/www/build/p-67e5e8ed.js +2 -0
- package/www/build/p-67e5e8ed.js.map +1 -0
- package/www/build/{p-57eee056.entry.js → p-68f4fbc8.entry.js} +2 -2
- package/www/build/{p-f21bc3a9.entry.js → p-6a1b3e86.entry.js} +2 -2
- package/www/build/{p-05e9ae1e.entry.js → p-6db2fd46.entry.js} +2 -2
- package/{dist/web-components-library/p-83350b5f.entry.js → www/build/p-707e5f91.entry.js} +2 -2
- package/www/build/p-75c4a726.js +3 -0
- package/www/build/p-75c4a726.js.map +1 -0
- package/{dist/web-components-library/p-85f84e55.entry.js → www/build/p-777ad335.entry.js} +2 -2
- package/www/build/p-777ad335.entry.js.map +1 -0
- package/{dist/web-components-library/p-b84fa3b6.entry.js → www/build/p-7aba5af3.entry.js} +2 -2
- package/www/build/p-7d5bf905.entry.js +2 -0
- package/www/build/{p-324ef970.entry.js → p-820b48f6.entry.js} +2 -2
- package/www/build/p-823c45d4.entry.js +2 -0
- package/{dist/web-components-library/p-8c9f7cef.entry.js → www/build/p-855334f4.entry.js} +2 -2
- package/www/build/{p-aa0f083b.js → p-8a6a4d22.js} +2 -2
- package/{dist/web-components-library/p-8b309268.entry.js → www/build/p-8d56e74b.entry.js} +2 -2
- package/www/build/p-8d56e74b.entry.js.map +1 -0
- package/www/build/{p-d9e1d8c7.js → p-95cb8701.js} +2 -2
- package/www/build/p-9a1b51ed.entry.js +2 -0
- package/{dist/web-components-library/p-ad76b8ff.entry.js.map → www/build/p-9a1b51ed.entry.js.map} +1 -1
- package/www/build/{p-4552744b.entry.js → p-9b9a04ad.entry.js} +2 -2
- package/www/build/{p-77d8ad7e.entry.js → p-a0fd1323.entry.js} +2 -2
- package/www/build/p-a64a1bf0.entry.js +2 -0
- package/www/build/p-a64a1bf0.entry.js.map +1 -0
- package/www/build/p-aaae6b16.entry.js +2 -0
- package/www/build/{p-97b0c3b3.entry.js.map → p-aaae6b16.entry.js.map} +1 -1
- package/www/build/p-ab7f129e.entry.js +2 -0
- package/www/build/{p-6f4dd02b.entry.js.map → p-ab7f129e.entry.js.map} +1 -1
- package/{dist/web-components-library/p-088a31dc.entry.js → www/build/p-acd911aa.entry.js} +2 -2
- package/{dist/web-components-library/p-a4ada10b.entry.js → www/build/p-ad97fdc4.entry.js} +2 -2
- package/www/build/p-ae5cec65.js +2 -0
- package/www/build/{p-57ecb5a7.entry.js → p-b2356bc7.entry.js} +2 -2
- package/www/build/p-c1e498ac.entry.js +2 -0
- package/www/build/{p-a5781264.entry.js → p-c54d0925.entry.js} +2 -2
- package/www/build/p-c679277c.entry.js +2 -0
- package/{dist/web-components-library/p-df05727f.entry.js.map → www/build/p-c679277c.entry.js.map} +1 -1
- package/www/build/p-cc71a90c.entry.js +2 -0
- package/{dist/web-components-library/p-c90249e5.entry.js → www/build/p-cd0219b4.entry.js} +2 -2
- package/{dist/web-components-library/p-6a664748.entry.js → www/build/p-d5f5e107.entry.js} +2 -2
- package/www/build/p-d5f5e107.entry.js.map +1 -0
- package/www/build/{p-88e756cd.entry.js → p-da7200c2.entry.js} +2 -2
- package/{dist/web-components-library/p-ae96bc09.entry.js → www/build/p-df8c381a.entry.js} +2 -2
- package/www/build/{p-3b266de4.entry.js → p-df9c3674.entry.js} +2 -2
- package/www/build/{p-609c11d6.entry.js → p-e25d7f0a.entry.js} +2 -2
- package/www/build/{p-33eea921.entry.js → p-e4d97fbf.entry.js} +2 -2
- package/www/build/{p-f74f9f3c.entry.js → p-e529a714.entry.js} +2 -2
- package/www/build/{p-21b85c7f.entry.js → p-ea9c0ff3.entry.js} +2 -2
- package/www/build/{p-2a7e4988.entry.js → p-f06ad42c.entry.js} +2 -2
- package/www/build/{p-8499a29d.entry.js → p-f15d0a00.entry.js} +2 -2
- package/{dist/web-components-library/p-63e970ee.entry.js → www/build/p-f425c6f2.entry.js} +2 -2
- package/www/build/p-f703660d.entry.js +2 -0
- package/{dist/web-components-library/p-49e4ce84.entry.js → www/build/p-f8bbca6e.entry.js} +2 -2
- package/www/build/web-components-library.esm.js +1 -1
- package/www/build/web-components-library.esm.js.map +1 -1
- package/www/index.html +3 -1
- package/dist/.storybook/elements/args-controls.js +0 -78
- package/dist/.storybook/elements/args-controls.js.map +0 -1
- package/dist/.storybook/elements/docs-template.js +0 -11
- package/dist/.storybook/elements/docs-template.js.map +0 -1
- package/dist/cjs/breakpoints-5c22092a.js +0 -11
- package/dist/cjs/breakpoints-5c22092a.js.map +0 -1
- package/dist/cjs/index-e801ae96.js.map +0 -1
- package/dist/cjs/utils-6bd8c55e.js.map +0 -1
- package/dist/collection/assets/orientamento.svg +0 -14
- package/dist/collection/components/date-picker/z-date-picker/index.spec.js +0 -38
- package/dist/collection/components/date-picker/z-date-picker/index.spec.js.map +0 -1
- package/dist/collection/components/date-picker/z-range-picker/index.spec.js +0 -25
- package/dist/collection/components/date-picker/z-range-picker/index.spec.js.map +0 -1
- package/dist/collection/components/deprecated/z-app-header-deprecated/index.spec.js +0 -203
- package/dist/collection/components/deprecated/z-app-header-deprecated/index.spec.js.map +0 -1
- package/dist/collection/components/deprecated/z-menu-deprecated/index.spec.js +0 -120
- package/dist/collection/components/deprecated/z-menu-deprecated/index.spec.js.map +0 -1
- package/dist/collection/components/deprecated/z-menu-section-deprecated/index.spec.js +0 -50
- package/dist/collection/components/deprecated/z-menu-section-deprecated/index.spec.js.map +0 -1
- package/dist/collection/components/file-upload/z-dragdrop-area/index.spec.js +0 -55
- package/dist/collection/components/file-upload/z-dragdrop-area/index.spec.js.map +0 -1
- package/dist/collection/components/file-upload/z-file/index.spec.js +0 -20
- package/dist/collection/components/file-upload/z-file/index.spec.js.map +0 -1
- package/dist/collection/components/file-upload/z-file-upload/index.spec.js +0 -135
- package/dist/collection/components/file-upload/z-file-upload/index.spec.js.map +0 -1
- package/dist/collection/components/file-upload/z-file-upload/test.e2e.js +0 -69
- package/dist/collection/components/file-upload/z-file-upload/test.e2e.js.map +0 -1
- package/dist/collection/components/list/z-list/index.spec.js +0 -33
- package/dist/collection/components/list/z-list/index.spec.js.map +0 -1
- package/dist/collection/components/list/z-list-element/index.spec.js +0 -135
- package/dist/collection/components/list/z-list-element/index.spec.js.map +0 -1
- package/dist/collection/components/list/z-list-group/index.spec.js +0 -39
- package/dist/collection/components/list/z-list-group/index.spec.js.map +0 -1
- package/dist/collection/components/z-app-header/index.spec.js +0 -617
- package/dist/collection/components/z-app-header/index.spec.js.map +0 -1
- package/dist/collection/components/z-aria-alert/index.spec.js +0 -14
- package/dist/collection/components/z-aria-alert/index.spec.js.map +0 -1
- package/dist/collection/components/z-avatar/index.spec.js +0 -98
- package/dist/collection/components/z-avatar/index.spec.js.map +0 -1
- package/dist/collection/components/z-book-card/index.spec.js +0 -679
- package/dist/collection/components/z-book-card/index.spec.js.map +0 -1
- package/dist/collection/components/z-breadcrumb/index.spec.js +0 -39
- package/dist/collection/components/z-breadcrumb/index.spec.js.map +0 -1
- package/dist/collection/components/z-button/index.spec.js +0 -101
- package/dist/collection/components/z-button/index.spec.js.map +0 -1
- package/dist/collection/components/z-button-sort/index.spec.js +0 -139
- package/dist/collection/components/z-button-sort/index.spec.js.map +0 -1
- package/dist/collection/components/z-button-sort/test.e2e.js +0 -29
- package/dist/collection/components/z-button-sort/test.e2e.js.map +0 -1
- package/dist/collection/components/z-card/index.spec.js +0 -179
- package/dist/collection/components/z-card/index.spec.js.map +0 -1
- package/dist/collection/components/z-chip/index.spec.js +0 -108
- package/dist/collection/components/z-chip/index.spec.js.map +0 -1
- package/dist/collection/components/z-chip/test.e2e.js +0 -32
- package/dist/collection/components/z-chip/test.e2e.js.map +0 -1
- package/dist/collection/components/z-combobox/index.spec.js +0 -475
- package/dist/collection/components/z-combobox/index.spec.js.map +0 -1
- package/dist/collection/components/z-combobox/test.e2e.js +0 -45
- package/dist/collection/components/z-combobox/test.e2e.js.map +0 -1
- package/dist/collection/components/z-divider/index.spec.js +0 -82
- package/dist/collection/components/z-divider/index.spec.js.map +0 -1
- package/dist/collection/components/z-ghost-loading/index.spec.js +0 -16
- package/dist/collection/components/z-ghost-loading/index.spec.js.map +0 -1
- package/dist/collection/components/z-icon/index.spec.js +0 -96
- package/dist/collection/components/z-icon/index.spec.js.map +0 -1
- package/dist/collection/components/z-info-box/index.spec.js +0 -71
- package/dist/collection/components/z-info-box/index.spec.js.map +0 -1
- package/dist/collection/components/z-input/test-checkbox.spec.js +0 -114
- package/dist/collection/components/z-input/test-checkbox.spec.js.map +0 -1
- package/dist/collection/components/z-input/test-methods.spec.js +0 -13
- package/dist/collection/components/z-input/test-methods.spec.js.map +0 -1
- package/dist/collection/components/z-input/test-radio.spec.js +0 -114
- package/dist/collection/components/z-input/test-radio.spec.js.map +0 -1
- package/dist/collection/components/z-input/test-text.spec.js +0 -347
- package/dist/collection/components/z-input/test-text.spec.js.map +0 -1
- package/dist/collection/components/z-input/test-textarea.spec.js +0 -54
- package/dist/collection/components/z-input/test-textarea.spec.js.map +0 -1
- package/dist/collection/components/z-input/test.e2e.js +0 -180
- package/dist/collection/components/z-input/test.e2e.js.map +0 -1
- package/dist/collection/components/z-input-message/index.spec.js +0 -45
- package/dist/collection/components/z-input-message/index.spec.js.map +0 -1
- package/dist/collection/components/z-logo/index.spec.js +0 -74
- package/dist/collection/components/z-logo/index.spec.js.map +0 -1
- package/dist/collection/components/z-menu/index.spec.js +0 -136
- package/dist/collection/components/z-menu/index.spec.js.map +0 -1
- package/dist/collection/components/z-menu-section/index.spec.js +0 -50
- package/dist/collection/components/z-menu-section/index.spec.js.map +0 -1
- package/dist/collection/components/z-modal/index.spec.js +0 -192
- package/dist/collection/components/z-modal/index.spec.js.map +0 -1
- package/dist/collection/components/z-modal/test.e2e.js +0 -81
- package/dist/collection/components/z-modal/test.e2e.js.map +0 -1
- package/dist/collection/components/z-notification/index.spec.js +0 -84
- package/dist/collection/components/z-notification/index.spec.js.map +0 -1
- package/dist/collection/components/z-notification/test.e2e.js +0 -25
- package/dist/collection/components/z-notification/test.e2e.js.map +0 -1
- package/dist/collection/components/z-offcanvas/index.spec.js +0 -42
- package/dist/collection/components/z-offcanvas/index.spec.js.map +0 -1
- package/dist/collection/components/z-pagination/index.spec.js +0 -36
- package/dist/collection/components/z-pagination/index.spec.js.map +0 -1
- package/dist/collection/components/z-panel-elem/index.spec.js +0 -284
- package/dist/collection/components/z-panel-elem/index.spec.js.map +0 -1
- package/dist/collection/components/z-searchbar/index.spec.js +0 -395
- package/dist/collection/components/z-searchbar/index.spec.js.map +0 -1
- package/dist/collection/components/z-searchbar/test.e2e.js +0 -90
- package/dist/collection/components/z-searchbar/test.e2e.js.map +0 -1
- package/dist/collection/components/z-section-title/index.spec.js +0 -27
- package/dist/collection/components/z-section-title/index.spec.js.map +0 -1
- package/dist/collection/components/z-select/index.spec.js +0 -698
- package/dist/collection/components/z-select/index.spec.js.map +0 -1
- package/dist/collection/components/z-select/test.e2e.js +0 -121
- package/dist/collection/components/z-select/test.e2e.js.map +0 -1
- package/dist/collection/components/z-skip-to-content/index.spec.js +0 -28
- package/dist/collection/components/z-skip-to-content/index.spec.js.map +0 -1
- package/dist/collection/components/z-stepper/index.spec.js +0 -38
- package/dist/collection/components/z-stepper/index.spec.js.map +0 -1
- package/dist/collection/components/z-stepper-item/index.spec.js +0 -105
- package/dist/collection/components/z-stepper-item/index.spec.js.map +0 -1
- package/dist/collection/components/z-tag/index.spec.js +0 -58
- package/dist/collection/components/z-tag/index.spec.js.map +0 -1
- package/dist/collection/components/z-toast-notification/index.spec.js +0 -104
- package/dist/collection/components/z-toast-notification/index.spec.js.map +0 -1
- package/dist/collection/components/z-toast-notification-list/index.spec.js +0 -57
- package/dist/collection/components/z-toast-notification-list/index.spec.js.map +0 -1
- package/dist/collection/components/z-toast-notification-list/test.e2e.js +0 -69
- package/dist/collection/components/z-toast-notification-list/test.e2e.js.map +0 -1
- package/dist/collection/components/z-toggle-button/index.spec.js +0 -124
- package/dist/collection/components/z-toggle-button/index.spec.js.map +0 -1
- package/dist/collection/components/z-toggle-button/test.e2e.js +0 -12
- package/dist/collection/components/z-toggle-button/test.e2e.js.map +0 -1
- package/dist/collection/components/z-toggle-switch/index.spec.js +0 -149
- package/dist/collection/components/z-toggle-switch/index.spec.js.map +0 -1
- package/dist/collection/components/z-toggle-switch/test.e2e.js +0 -22
- package/dist/collection/components/z-toggle-switch/test.e2e.js.map +0 -1
- package/dist/collection/components/z-visually-hidden/index.spec.js +0 -18
- package/dist/collection/components/z-visually-hidden/index.spec.js.map +0 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card/index.spec.js +0 -20
- package/dist/collection/snowflakes/myz/card/z-myz-card/index.spec.js.map +0 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.spec.js +0 -128
- package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.spec.js.map +0 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.spec.js +0 -21
- package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.spec.js.map +0 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.spec.js +0 -33
- package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.spec.js.map +0 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.spec.js +0 -121
- package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.spec.js.map +0 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.spec.js +0 -199
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.spec.js.map +0 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.spec.js +0 -54
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.spec.js.map +0 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.spec.js +0 -22
- package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.spec.js.map +0 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.spec.js +0 -56
- package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.spec.js.map +0 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.spec.js +0 -136
- package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.spec.js.map +0 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.spec.js +0 -39
- package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.spec.js.map +0 -1
- package/dist/collection/snowflakes/myz/list/z-myz-list/index.spec.js +0 -140
- package/dist/collection/snowflakes/myz/list/z-myz-list/index.spec.js.map +0 -1
- package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.spec.js +0 -80
- package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.spec.js.map +0 -1
- package/dist/collection/snowflakes/myz/z-alert/index.spec.js +0 -20
- package/dist/collection/snowflakes/myz/z-alert/index.spec.js.map +0 -1
- package/dist/collection/snowflakes/myz/z-otp/index.spec.js +0 -74
- package/dist/collection/snowflakes/myz/z-otp/index.spec.js.map +0 -1
- package/dist/collection/snowflakes/myz/z-otp/test.e2e.js +0 -23
- package/dist/collection/snowflakes/myz/z-otp/test.e2e.js.map +0 -1
- package/dist/collection/snowflakes/myz/z-slideshow/index.spec.js +0 -193
- package/dist/collection/snowflakes/myz/z-slideshow/index.spec.js.map +0 -1
- package/dist/collection/utils/utils.spec.js +0 -16
- package/dist/collection/utils/utils.spec.js.map +0 -1
- package/dist/docs/grid/index.stories.js +0 -47
- package/dist/docs/grid/index.stories.js.map +0 -1
- package/dist/docs/iconset/index.stories.js +0 -32
- package/dist/docs/iconset/index.stories.js.map +0 -1
- package/dist/docs/themes/index.stories.js +0 -90
- package/dist/docs/themes/index.stories.js.map +0 -1
- package/dist/esm/breakpoints-680e0e56.js +0 -7
- package/dist/esm/breakpoints-680e0e56.js.map +0 -1
- package/dist/esm/index-a2130b6a.js.map +0 -1
- package/dist/esm/utils-8ade9e2d.js.map +0 -1
- package/dist/types/home/runner/work/design-system/design-system/.stencil/.storybook/elements/args-controls.d.ts +0 -13
- package/dist/types/home/runner/work/design-system/design-system/.stencil/.storybook/elements/docs-template.d.ts +0 -5
- package/dist/types/home/runner/work/design-system/design-system/.stencil/docs/grid/index.stories.d.ts +0 -9
- package/dist/types/home/runner/work/design-system/design-system/.stencil/docs/iconset/index.stories.d.ts +0 -11
- package/dist/types/home/runner/work/design-system/design-system/.stencil/docs/themes/index.stories.d.ts +0 -27
- package/dist/web-components-library/p-054484d4.entry.js +0 -2
- package/dist/web-components-library/p-054484d4.entry.js.map +0 -1
- package/dist/web-components-library/p-0794ae16.entry.js +0 -2
- package/dist/web-components-library/p-2c184714.js +0 -2
- package/dist/web-components-library/p-2c184714.js.map +0 -1
- package/dist/web-components-library/p-2c886e8b.js +0 -2
- package/dist/web-components-library/p-2c886e8b.js.map +0 -1
- package/dist/web-components-library/p-385bf4ca.entry.js +0 -2
- package/dist/web-components-library/p-6586441a.entry.js.map +0 -1
- package/dist/web-components-library/p-68822fbc.entry.js +0 -2
- package/dist/web-components-library/p-6a664748.entry.js.map +0 -1
- package/dist/web-components-library/p-6b2cd695.entry.js +0 -2
- package/dist/web-components-library/p-6f4dd02b.entry.js +0 -2
- package/dist/web-components-library/p-74a65c6f.entry.js +0 -2
- package/dist/web-components-library/p-7d827c11.js +0 -2
- package/dist/web-components-library/p-85f84e55.entry.js.map +0 -1
- package/dist/web-components-library/p-89584f19.entry.js +0 -2
- package/dist/web-components-library/p-8a728e82.entry.js +0 -2
- package/dist/web-components-library/p-8a728e82.entry.js.map +0 -1
- package/dist/web-components-library/p-8b309268.entry.js.map +0 -1
- package/dist/web-components-library/p-8c517cd7.entry.js +0 -2
- package/dist/web-components-library/p-8c517cd7.entry.js.map +0 -1
- package/dist/web-components-library/p-8d7323f7.entry.js +0 -2
- package/dist/web-components-library/p-8d7323f7.entry.js.map +0 -1
- package/dist/web-components-library/p-97b0c3b3.entry.js +0 -2
- package/dist/web-components-library/p-a7292e1c.entry.js +0 -2
- package/dist/web-components-library/p-ad76b8ff.entry.js +0 -2
- package/dist/web-components-library/p-cfa39bd3.js +0 -3
- package/dist/web-components-library/p-cfa39bd3.js.map +0 -1
- package/dist/web-components-library/p-df05727f.entry.js +0 -2
- package/dist/web-components-library/p-ed2c8484.entry.js +0 -2
- package/dist/web-components-library/p-f8d45aa4.entry.js +0 -2
- package/dist/web-components-library/p-fe87b081.entry.js +0 -2
- package/dist/web-components-library/p-fe87b081.entry.js.map +0 -1
- package/www/assets/orientamento.svg +0 -14
- package/www/build/p-054484d4.entry.js +0 -2
- package/www/build/p-054484d4.entry.js.map +0 -1
- package/www/build/p-0794ae16.entry.js +0 -2
- package/www/build/p-2c184714.js +0 -2
- package/www/build/p-2c184714.js.map +0 -1
- package/www/build/p-2c886e8b.js +0 -2
- package/www/build/p-2c886e8b.js.map +0 -1
- package/www/build/p-385bf4ca.entry.js +0 -2
- package/www/build/p-6586441a.entry.js.map +0 -1
- package/www/build/p-68822fbc.entry.js +0 -2
- package/www/build/p-6a664748.entry.js.map +0 -1
- package/www/build/p-6b2cd695.entry.js +0 -2
- package/www/build/p-6f4dd02b.entry.js +0 -2
- package/www/build/p-74a65c6f.entry.js +0 -2
- package/www/build/p-7d827c11.js +0 -2
- package/www/build/p-85f84e55.entry.js.map +0 -1
- package/www/build/p-89584f19.entry.js +0 -2
- package/www/build/p-8a728e82.entry.js +0 -2
- package/www/build/p-8a728e82.entry.js.map +0 -1
- package/www/build/p-8b309268.entry.js.map +0 -1
- package/www/build/p-8c517cd7.entry.js +0 -2
- package/www/build/p-8c517cd7.entry.js.map +0 -1
- package/www/build/p-8d7323f7.entry.js +0 -2
- package/www/build/p-8d7323f7.entry.js.map +0 -1
- package/www/build/p-97b0c3b3.entry.js +0 -2
- package/www/build/p-a7292e1c.entry.js +0 -2
- package/www/build/p-ad76b8ff.entry.js +0 -2
- package/www/build/p-cfa39bd3.js +0 -3
- package/www/build/p-cfa39bd3.js.map +0 -1
- package/www/build/p-dc60b359.js +0 -2
- package/www/build/p-df05727f.entry.js +0 -2
- package/www/build/p-ed2c8484.entry.js +0 -2
- package/www/build/p-f8d45aa4.entry.js +0 -2
- package/www/build/p-fe87b081.entry.js +0 -2
- package/www/build/p-fe87b081.entry.js.map +0 -1
- /package/dist/web-components-library/{p-6319b5e2.entry.js.map → p-06d98334.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-2672e36f.entry.js.map → p-100c6243.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-28928bb6.entry.js.map → p-1896cc54.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-19f8c3d2.entry.js.map → p-1cc37aa7.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-c0bdbfb5.entry.js.map → p-273f3c53.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-4f7dd068.entry.js.map → p-28018cd3.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-12d62027.entry.js.map → p-296924ea.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-0794ae16.entry.js.map → p-2b1fd95a.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-99b791d1.entry.js.map → p-2e432a39.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-af856537.entry.js.map → p-2f662fea.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-8a10fec5.entry.js.map → p-38d5e74f.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-6b2cd695.entry.js.map → p-3ae8fb1a.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-304eeab0.js.map → p-3dbad75e.js.map} +0 -0
- /package/dist/web-components-library/{p-be4878f2.entry.js.map → p-4537f922.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-91c04edc.entry.js.map → p-45dc157c.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-e366782c.entry.js.map → p-46d98609.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-7d7c5344.js.map → p-4a2e0034.js.map} +0 -0
- /package/dist/web-components-library/{p-68822fbc.entry.js.map → p-4f3f8578.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-e5dc0719.entry.js.map → p-51f1c9c0.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-e1852de3.entry.js.map → p-5a0f0978.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-26b5c84d.js.map → p-60f410df.js.map} +0 -0
- /package/dist/web-components-library/{p-74a65c6f.entry.js.map → p-63ec7bad.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-7d827c11.js.map → p-64aab82f.js.map} +0 -0
- /package/dist/web-components-library/{p-57eee056.entry.js.map → p-68f4fbc8.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-f21bc3a9.entry.js.map → p-6a1b3e86.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-05e9ae1e.entry.js.map → p-6db2fd46.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-83350b5f.entry.js.map → p-707e5f91.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-b84fa3b6.entry.js.map → p-7aba5af3.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-a7292e1c.entry.js.map → p-7d5bf905.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-324ef970.entry.js.map → p-820b48f6.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-ed2c8484.entry.js.map → p-823c45d4.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-8c9f7cef.entry.js.map → p-855334f4.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-aa0f083b.js.map → p-8a6a4d22.js.map} +0 -0
- /package/dist/web-components-library/{p-d9e1d8c7.js.map → p-95cb8701.js.map} +0 -0
- /package/dist/web-components-library/{p-4552744b.entry.js.map → p-9b9a04ad.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-77d8ad7e.entry.js.map → p-a0fd1323.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-088a31dc.entry.js.map → p-acd911aa.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-a4ada10b.entry.js.map → p-ad97fdc4.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-57ecb5a7.entry.js.map → p-b2356bc7.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-385bf4ca.entry.js.map → p-c1e498ac.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-a5781264.entry.js.map → p-c54d0925.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-89584f19.entry.js.map → p-cc71a90c.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-c90249e5.entry.js.map → p-cd0219b4.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-88e756cd.entry.js.map → p-da7200c2.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-ae96bc09.entry.js.map → p-df8c381a.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-3b266de4.entry.js.map → p-df9c3674.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-609c11d6.entry.js.map → p-e25d7f0a.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-33eea921.entry.js.map → p-e4d97fbf.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-f74f9f3c.entry.js.map → p-e529a714.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-21b85c7f.entry.js.map → p-ea9c0ff3.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-2a7e4988.entry.js.map → p-f06ad42c.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-8499a29d.entry.js.map → p-f15d0a00.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-63e970ee.entry.js.map → p-f425c6f2.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-f8d45aa4.entry.js.map → p-f703660d.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-49e4ce84.entry.js.map → p-f8bbca6e.entry.js.map} +0 -0
- /package/www/build/{p-6319b5e2.entry.js.map → p-06d98334.entry.js.map} +0 -0
- /package/www/build/{p-2672e36f.entry.js.map → p-100c6243.entry.js.map} +0 -0
- /package/www/build/{p-28928bb6.entry.js.map → p-1896cc54.entry.js.map} +0 -0
- /package/www/build/{p-19f8c3d2.entry.js.map → p-1cc37aa7.entry.js.map} +0 -0
- /package/www/build/{p-c0bdbfb5.entry.js.map → p-273f3c53.entry.js.map} +0 -0
- /package/www/build/{p-4f7dd068.entry.js.map → p-28018cd3.entry.js.map} +0 -0
- /package/www/build/{p-12d62027.entry.js.map → p-296924ea.entry.js.map} +0 -0
- /package/www/build/{p-0794ae16.entry.js.map → p-2b1fd95a.entry.js.map} +0 -0
- /package/www/build/{p-99b791d1.entry.js.map → p-2e432a39.entry.js.map} +0 -0
- /package/www/build/{p-af856537.entry.js.map → p-2f662fea.entry.js.map} +0 -0
- /package/www/build/{p-8a10fec5.entry.js.map → p-38d5e74f.entry.js.map} +0 -0
- /package/www/build/{p-6b2cd695.entry.js.map → p-3ae8fb1a.entry.js.map} +0 -0
- /package/www/build/{p-304eeab0.js.map → p-3dbad75e.js.map} +0 -0
- /package/www/build/{p-be4878f2.entry.js.map → p-4537f922.entry.js.map} +0 -0
- /package/www/build/{p-91c04edc.entry.js.map → p-45dc157c.entry.js.map} +0 -0
- /package/www/build/{p-e366782c.entry.js.map → p-46d98609.entry.js.map} +0 -0
- /package/www/build/{p-7d7c5344.js.map → p-4a2e0034.js.map} +0 -0
- /package/www/build/{p-68822fbc.entry.js.map → p-4f3f8578.entry.js.map} +0 -0
- /package/www/build/{p-e5dc0719.entry.js.map → p-51f1c9c0.entry.js.map} +0 -0
- /package/www/build/{p-e1852de3.entry.js.map → p-5a0f0978.entry.js.map} +0 -0
- /package/www/build/{p-26b5c84d.js.map → p-60f410df.js.map} +0 -0
- /package/www/build/{p-74a65c6f.entry.js.map → p-63ec7bad.entry.js.map} +0 -0
- /package/www/build/{p-7d827c11.js.map → p-64aab82f.js.map} +0 -0
- /package/www/build/{p-57eee056.entry.js.map → p-68f4fbc8.entry.js.map} +0 -0
- /package/www/build/{p-f21bc3a9.entry.js.map → p-6a1b3e86.entry.js.map} +0 -0
- /package/www/build/{p-05e9ae1e.entry.js.map → p-6db2fd46.entry.js.map} +0 -0
- /package/www/build/{p-83350b5f.entry.js.map → p-707e5f91.entry.js.map} +0 -0
- /package/www/build/{p-b84fa3b6.entry.js.map → p-7aba5af3.entry.js.map} +0 -0
- /package/www/build/{p-a7292e1c.entry.js.map → p-7d5bf905.entry.js.map} +0 -0
- /package/www/build/{p-324ef970.entry.js.map → p-820b48f6.entry.js.map} +0 -0
- /package/www/build/{p-ed2c8484.entry.js.map → p-823c45d4.entry.js.map} +0 -0
- /package/www/build/{p-8c9f7cef.entry.js.map → p-855334f4.entry.js.map} +0 -0
- /package/www/build/{p-aa0f083b.js.map → p-8a6a4d22.js.map} +0 -0
- /package/www/build/{p-d9e1d8c7.js.map → p-95cb8701.js.map} +0 -0
- /package/www/build/{p-4552744b.entry.js.map → p-9b9a04ad.entry.js.map} +0 -0
- /package/www/build/{p-77d8ad7e.entry.js.map → p-a0fd1323.entry.js.map} +0 -0
- /package/www/build/{p-088a31dc.entry.js.map → p-acd911aa.entry.js.map} +0 -0
- /package/www/build/{p-a4ada10b.entry.js.map → p-ad97fdc4.entry.js.map} +0 -0
- /package/www/build/{p-57ecb5a7.entry.js.map → p-b2356bc7.entry.js.map} +0 -0
- /package/www/build/{p-385bf4ca.entry.js.map → p-c1e498ac.entry.js.map} +0 -0
- /package/www/build/{p-a5781264.entry.js.map → p-c54d0925.entry.js.map} +0 -0
- /package/www/build/{p-89584f19.entry.js.map → p-cc71a90c.entry.js.map} +0 -0
- /package/www/build/{p-c90249e5.entry.js.map → p-cd0219b4.entry.js.map} +0 -0
- /package/www/build/{p-88e756cd.entry.js.map → p-da7200c2.entry.js.map} +0 -0
- /package/www/build/{p-ae96bc09.entry.js.map → p-df8c381a.entry.js.map} +0 -0
- /package/www/build/{p-3b266de4.entry.js.map → p-df9c3674.entry.js.map} +0 -0
- /package/www/build/{p-609c11d6.entry.js.map → p-e25d7f0a.entry.js.map} +0 -0
- /package/www/build/{p-33eea921.entry.js.map → p-e4d97fbf.entry.js.map} +0 -0
- /package/www/build/{p-f74f9f3c.entry.js.map → p-e529a714.entry.js.map} +0 -0
- /package/www/build/{p-21b85c7f.entry.js.map → p-ea9c0ff3.entry.js.map} +0 -0
- /package/www/build/{p-2a7e4988.entry.js.map → p-f06ad42c.entry.js.map} +0 -0
- /package/www/build/{p-8499a29d.entry.js.map → p-f15d0a00.entry.js.map} +0 -0
- /package/www/build/{p-63e970ee.entry.js.map → p-f425c6f2.entry.js.map} +0 -0
- /package/www/build/{p-f8d45aa4.entry.js.map → p-f703660d.entry.js.map} +0 -0
- /package/www/build/{p-49e4ce84.entry.js.map → p-f8bbca6e.entry.js.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.stories.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"index.stories.js","sourceRoot":"","sources":["../../../src/components/z-menu/index.stories.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,IAAI,EAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,yBAAyB,CAAC;AACjC,OAAO,SAAS,CAAC;AAEjB,MAAM,SAAS,GAAG;IAChB,KAAK,EAAE,aAAa;IACpB,SAAS,EAAE,QAAQ;IACnB,IAAI,EAAE;QACJ,MAAM,EAAE,KAAK;QACb,QAAQ,EAAE,IAAI;KACf;CACoB,CAAC;AAExB,eAAe,SAAS,CAAC;AAIzB,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAA;;gBAER,IAAI,CAAC,MAAM;kBACT,IAAI,CAAC,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6C5B;CACc,CAAC;AAElB,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAA;;gBAER,IAAI,CAAC,MAAM;kBACT,IAAI,CAAC,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqC5B;CACc,CAAC;AAElB,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,UAAU,EAAE;QACV,QAAQ,EAAE;YACR,OAAO,EAAE,CAAC,UAAU,CAAC;SACtB;KACF;IACD,MAAM,EAAE,GAAG,EAAE,CAAC,IAAI,CAAA;sBACE,IAAI;;;;;;;GAOvB;CACc,CAAC","sourcesContent":["import {Meta, StoryObj} from \"@storybook/web-components\";\nimport {html} from \"lit\";\nimport {type ZMenu} from \".\";\nimport \"../z-menu-section/index\";\nimport \"./index\";\n\nconst StoryMeta = {\n title: \"Zmenu/ZMenu\",\n component: \"z-menu\",\n args: {\n active: false,\n floating: true,\n },\n} satisfies Meta<ZMenu>;\n\nexport default StoryMeta;\n\ntype Story = StoryObj<ZMenu>;\n\nexport const FloatingContentLayout = {\n render: (args) => html`\n <z-menu\n .active=${args.active}\n .floating=${args.floating}\n >\n <h3>Menu label</h3>\n <a\n href=\"\"\n slot=\"item\"\n >Item 1</a\n >\n <a\n href=\"\"\n slot=\"item\"\n >Item 2</a\n >\n <z-menu-section slot=\"item\">\n <h3>Item 3</h3>\n <a\n href=\"\"\n slot=\"section\"\n >Item 3.1</a\n >\n <a\n href=\"\"\n slot=\"section\"\n >Item 3.2</a\n >\n </z-menu-section>\n <z-menu-section slot=\"item\">\n <h3>Item 4</h3>\n <a\n href=\"\"\n slot=\"section\"\n >Item 4.1</a\n >\n <a\n href=\"\"\n slot=\"section\"\n >Item 4.2</a\n >\n </z-menu-section>\n <a\n href=\"\"\n slot=\"item\"\n >Item 5</a\n >\n </z-menu>\n `,\n} satisfies Story;\n\nexport const WithHeader = {\n render: (args) => html`\n <z-menu\n .active=${args.active}\n .floating=${args.floating}\n >\n <img\n slot=\"header\"\n src=\"https://i.pinimg.com/originals/b9/fc/7e/b9fc7e6b2dd2ca128bcc3412e68994f0.jpg\"\n />\n <h4 slot=\"header\">Menu header</h4>\n <h3>Menu label</h3>\n <a\n href=\"\"\n slot=\"item\"\n >Item 1</a\n >\n <a\n href=\"\"\n slot=\"item\"\n >Item 2</a\n >\n <z-menu-section slot=\"item\">\n <h3>Item 3</h3>\n <a\n href=\"\"\n slot=\"section\"\n >Item 3.1</a\n >\n <a\n href=\"\"\n slot=\"section\"\n >Item 3.2</a\n >\n </z-menu-section>\n <a\n href=\"\"\n slot=\"item\"\n >Item 4</a\n >\n </z-menu>\n `,\n} satisfies Story;\n\nexport const ActiveWithoutItems = {\n parameters: {\n controls: {\n exclude: [\"floating\"],\n },\n },\n render: () => html`\n <z-menu .active=${true}>\n <a\n href=\"https://cataas.com/cat/gif\"\n target=\"_blank\"\n >Click me</a\n >\n </z-menu>\n `,\n} satisfies Story;\n"]}
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
:host {
|
|
9
|
+
--z-menu-label-color: ;
|
|
10
|
+
|
|
9
11
|
position: relative;
|
|
10
12
|
display: inline-flex;
|
|
13
|
+
height: fit-content;
|
|
11
14
|
flex-direction: column;
|
|
12
|
-
flex-shrink: 0;
|
|
13
|
-
|
|
14
|
-
--z-menu-label-color: var(--color-default-text);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
::slotted(a) {
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.menu-label {
|
|
28
|
+
position: relative;
|
|
28
29
|
width: 100%;
|
|
29
30
|
padding: 0;
|
|
30
31
|
border: 0;
|
|
@@ -32,7 +33,6 @@
|
|
|
32
33
|
background: transparent;
|
|
33
34
|
border-radius: 0;
|
|
34
35
|
color: inherit;
|
|
35
|
-
outline: none;
|
|
36
36
|
text-align: left;
|
|
37
37
|
}
|
|
38
38
|
|
|
@@ -41,26 +41,19 @@
|
|
|
41
41
|
align-items: center;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
.menu-wrapper:focus-visible,
|
|
45
|
-
.menu-label-content:focus-visible,
|
|
46
|
-
button:focus-visible {
|
|
47
|
-
outline: none;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
44
|
button.menu-label {
|
|
51
45
|
cursor: pointer;
|
|
52
46
|
}
|
|
53
47
|
|
|
54
48
|
.menu-label:focus-within {
|
|
55
|
-
z-index: 1;
|
|
56
49
|
box-shadow: var(--shadow-focus-primary);
|
|
57
50
|
}
|
|
58
51
|
|
|
59
52
|
.menu-label .menu-label-content {
|
|
60
53
|
position: relative;
|
|
61
54
|
display: flex;
|
|
62
|
-
height: 30px;
|
|
63
55
|
align-items: center;
|
|
56
|
+
border-bottom: var(--border-size-large) solid transparent;
|
|
64
57
|
}
|
|
65
58
|
|
|
66
59
|
:host(:is([active], [open])) .menu-label-content,
|
|
@@ -76,32 +69,32 @@ button.menu-label {
|
|
|
76
69
|
letter-spacing: normal;
|
|
77
70
|
}
|
|
78
71
|
|
|
79
|
-
:host
|
|
80
|
-
|
|
72
|
+
:host([vertical-context]) .menu-label-content {
|
|
73
|
+
padding: var(--space-unit) 0;
|
|
74
|
+
border-width: var(--border-size-small);
|
|
75
|
+
border-color: var(--color-surface03);
|
|
81
76
|
}
|
|
82
77
|
|
|
83
|
-
|
|
84
|
-
:
|
|
85
|
-
.menu-label .menu-label-content:hover::after,
|
|
86
|
-
.menu-label:focus-within .menu-label-content::after {
|
|
87
|
-
position: absolute;
|
|
88
|
-
bottom: 0;
|
|
89
|
-
left: 0;
|
|
90
|
-
width: 100%;
|
|
91
|
-
content: "";
|
|
92
|
-
pointer-events: none;
|
|
78
|
+
:host([vertical-context]) .menu-label-content ::slotted(*) {
|
|
79
|
+
padding: 0;
|
|
93
80
|
}
|
|
94
81
|
|
|
95
|
-
:host([
|
|
96
|
-
|
|
97
|
-
|
|
82
|
+
:host(:is([active], [open])) .menu-label .menu-label-content,
|
|
83
|
+
.menu-label .menu-label-content:hover,
|
|
84
|
+
.menu-label:focus-within .menu-label-content {
|
|
85
|
+
border-color: var(--color-secondary01);
|
|
98
86
|
}
|
|
99
87
|
|
|
100
|
-
:host(:is([active], [open])) .menu-label .menu-label-content::after,
|
|
101
|
-
|
|
102
|
-
.menu-label:focus-within .menu-label-content::after {
|
|
88
|
+
:host([vertical-context]:is([active], [open])) .menu-label .menu-label-content::after,
|
|
89
|
+
:host([vertical-context]) .menu-label:hover::after,
|
|
90
|
+
:host([vertical-context]) .menu-label:focus-within .menu-label-content::after {
|
|
91
|
+
position: absolute;
|
|
92
|
+
bottom: 0;
|
|
93
|
+
left: 0;
|
|
94
|
+
width: 100%;
|
|
103
95
|
height: var(--border-size-large);
|
|
104
96
|
background-color: var(--color-secondary01);
|
|
97
|
+
content: "";
|
|
105
98
|
}
|
|
106
99
|
|
|
107
100
|
/* Prevents layout shifts on font-weight changes.
|
|
@@ -110,7 +103,7 @@ so the needed space is correctly calculated before any hover/active state change
|
|
|
110
103
|
font-weight of the real text.
|
|
111
104
|
The hidden text has an height of 0px so it can expand the width without changing the height
|
|
112
105
|
when placed below the real text using `flex-direction: column`. */
|
|
113
|
-
::slotted([data-text])::after {
|
|
106
|
+
::slotted([data-text]:not([slot]))::after {
|
|
114
107
|
height: 0;
|
|
115
108
|
content: attr(data-text);
|
|
116
109
|
content: attr(data-text) / "";
|
|
@@ -122,12 +115,12 @@ when placed below the real text using `flex-direction: column`. */
|
|
|
122
115
|
}
|
|
123
116
|
|
|
124
117
|
@media speech {
|
|
125
|
-
::slotted([data-text])::after {
|
|
118
|
+
::slotted([data-text]:not([slot]))::after {
|
|
126
119
|
display: none;
|
|
127
120
|
}
|
|
128
121
|
}
|
|
129
122
|
|
|
130
|
-
::slotted([data-text]) {
|
|
123
|
+
::slotted([data-text]:not([slot])) {
|
|
131
124
|
display: inline-flex;
|
|
132
125
|
flex-direction: column;
|
|
133
126
|
}
|
|
@@ -136,18 +129,14 @@ when placed below the real text using `flex-direction: column`. */
|
|
|
136
129
|
display: inline-flex;
|
|
137
130
|
width: 100%;
|
|
138
131
|
min-width: fit-content;
|
|
132
|
+
padding-bottom: 2px;
|
|
139
133
|
margin: 0;
|
|
140
134
|
appearance: none;
|
|
141
|
-
color: var(--z-menu-label-color);
|
|
135
|
+
color: var(--z-menu-label-color, var(--color-default-text));
|
|
142
136
|
font-family: var(--font-family-sans);
|
|
143
137
|
font-size: var(--font-size-3);
|
|
144
138
|
font-weight: inherit;
|
|
145
|
-
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
.menu-label .menu-label-content ::slotted(*),
|
|
149
|
-
.menu-label .menu-label-content z-icon {
|
|
150
|
-
padding: var(--space-unit) 0;
|
|
139
|
+
line-height: 1.5;
|
|
151
140
|
}
|
|
152
141
|
|
|
153
142
|
.menu-label .menu-label-content z-icon {
|
|
@@ -163,14 +152,14 @@ when placed below the real text using `flex-direction: column`. */
|
|
|
163
152
|
display: none;
|
|
164
153
|
}
|
|
165
154
|
|
|
166
|
-
:host([floating]) .content {
|
|
155
|
+
:host([floating]:not([vertical-context])) .content {
|
|
167
156
|
position: absolute;
|
|
168
157
|
top: 100%;
|
|
169
158
|
left: 0;
|
|
170
159
|
width: 375px;
|
|
171
160
|
min-width: 100%;
|
|
172
161
|
max-width: 100vw;
|
|
173
|
-
padding:
|
|
162
|
+
padding: 0 calc(var(--space-unit) * 2);
|
|
174
163
|
box-shadow: var(--shadow-2);
|
|
175
164
|
}
|
|
176
165
|
|
|
@@ -209,8 +198,7 @@ when placed below the real text using `flex-direction: column`. */
|
|
|
209
198
|
width: 100%;
|
|
210
199
|
margin: 0;
|
|
211
200
|
font-size: var(--font-size-3);
|
|
212
|
-
line-height: 1.
|
|
213
|
-
outline: none;
|
|
201
|
+
line-height: 1.5;
|
|
214
202
|
}
|
|
215
203
|
|
|
216
204
|
.items > ::slotted([slot="item"]:focus:focus-visible) {
|
|
@@ -218,8 +206,12 @@ when placed below the real text using `flex-direction: column`. */
|
|
|
218
206
|
}
|
|
219
207
|
|
|
220
208
|
.items > ::slotted([slot="item"]:not(z-menu-section)) {
|
|
221
|
-
padding:
|
|
222
|
-
border-bottom: var(--border-size-small) solid var(--color-
|
|
209
|
+
padding: var(--space-unit) 0;
|
|
210
|
+
border-bottom: var(--border-size-small) solid var(--color-surface03);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
:host(:not([vertical-context])) .items > ::slotted([slot="item"]:not(z-menu-section):last-of-type) {
|
|
214
|
+
border-bottom: 0;
|
|
223
215
|
}
|
|
224
216
|
|
|
225
217
|
.items > ::slotted([slot="item"]:hover),
|
|
@@ -6,111 +6,29 @@ import { KeyboardCode } from "../../beans";
|
|
|
6
6
|
* @slot item - Single entry of the section. Set the same slot name to different items to put many of them. Add the `active` attribute to a slotted item to highlight it.
|
|
7
7
|
*/
|
|
8
8
|
export class ZMenuSection {
|
|
9
|
-
|
|
10
|
-
this.
|
|
11
|
-
this.currentCanvasOpenStatus = false;
|
|
12
|
-
this.active = undefined;
|
|
13
|
-
this.open = undefined;
|
|
14
|
-
this.hasContent = undefined;
|
|
15
|
-
}
|
|
16
|
-
canvasOpenStatusChanged(e) {
|
|
17
|
-
this.currentCanvasOpenStatus = e.detail;
|
|
18
|
-
}
|
|
19
|
-
handleKeyDown(e) {
|
|
20
|
-
if (e.code === KeyboardCode.ENTER) {
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
if (this.open && !this.currentCanvasOpenStatus) {
|
|
24
|
-
this.handleNavigationSideArrow(e);
|
|
25
|
-
}
|
|
26
|
-
this.handleArrowsNav(e);
|
|
27
|
-
}
|
|
28
|
-
handleNavigationSideArrow(e) {
|
|
29
|
-
if (e.code !== KeyboardCode.ARROW_RIGHT && e.code !== KeyboardCode.ARROW_LEFT) {
|
|
30
|
-
return;
|
|
31
|
-
}
|
|
32
|
-
if (e.code === KeyboardCode.ARROW_RIGHT) {
|
|
33
|
-
const nextElement = this.hostElement.parentElement.nextElementSibling;
|
|
34
|
-
if (nextElement) {
|
|
35
|
-
const menuButton = nextElement.shadowRoot.querySelector(".menu-label");
|
|
36
|
-
console.log(this.hostElement.parentElement);
|
|
37
|
-
menuButton.focus();
|
|
38
|
-
}
|
|
39
|
-
this.open = false;
|
|
40
|
-
nextElement.setAttribute("open", "true");
|
|
41
|
-
}
|
|
42
|
-
else if (e.code === KeyboardCode.ARROW_LEFT) {
|
|
43
|
-
const prevElement = this.hostElement.parentElement.previousElementSibling;
|
|
44
|
-
if (prevElement) {
|
|
45
|
-
const menuButton = prevElement.shadowRoot.querySelector(".menu-label");
|
|
46
|
-
menuButton.focus();
|
|
47
|
-
}
|
|
48
|
-
prevElement.setAttribute("open", "true");
|
|
49
|
-
this.open = false;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
handleArrowsNav(e) {
|
|
53
|
-
const menuItems = Array.from(this.hostElement.querySelectorAll('[slot="section"]'));
|
|
54
|
-
if (this.open) {
|
|
55
|
-
e.preventDefault();
|
|
56
|
-
e.stopPropagation();
|
|
57
|
-
if (e.code === KeyboardCode.ARROW_DOWN || e.code === KeyboardCode.ARROW_UP) {
|
|
58
|
-
let nextFocusableItem;
|
|
59
|
-
// INFO: reset focus on all menu items
|
|
60
|
-
menuItems.forEach((item) => item.setAttribute("tabindex", "-1"));
|
|
61
|
-
if (e.code === KeyboardCode.ARROW_DOWN) {
|
|
62
|
-
nextFocusableItem = this.getNextItem(menuItems, 1);
|
|
63
|
-
}
|
|
64
|
-
else if (e.code === KeyboardCode.ARROW_UP) {
|
|
65
|
-
nextFocusableItem = this.getNextItem(menuItems, -1);
|
|
66
|
-
}
|
|
67
|
-
if (nextFocusableItem) {
|
|
68
|
-
nextFocusableItem.setAttribute("tabindex", "0");
|
|
69
|
-
nextFocusableItem.focus();
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
else if (e.code === KeyboardCode.ESC) {
|
|
73
|
-
this.focusToParentAndCloseMenu();
|
|
74
|
-
}
|
|
75
|
-
else if (e.shiftKey && e.code === KeyboardCode.TAB) {
|
|
76
|
-
this.focusToParentAndCloseMenu();
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
getNextItem(menuItems, direction) {
|
|
81
|
-
if (this.currentIndex === -1) {
|
|
82
|
-
this.currentIndex = direction === 1 ? 0 : menuItems.length - 1;
|
|
83
|
-
return menuItems[this.currentIndex];
|
|
84
|
-
}
|
|
85
|
-
this.currentIndex = (this.currentIndex + direction + menuItems.length) % menuItems.length;
|
|
86
|
-
return menuItems[this.currentIndex];
|
|
87
|
-
}
|
|
88
|
-
focusToParentAndCloseMenu() {
|
|
89
|
-
const menuButton = this.hostElement.shadowRoot.querySelector("button");
|
|
90
|
-
menuButton.focus();
|
|
91
|
-
this.currentIndex = -1;
|
|
92
|
-
this.open = false;
|
|
9
|
+
get focusableItem() {
|
|
10
|
+
return this.items.find(({ tabIndex }) => tabIndex === 0);
|
|
93
11
|
}
|
|
94
12
|
toggle() {
|
|
95
|
-
if (!this.
|
|
13
|
+
if (!this.hasItems) {
|
|
96
14
|
return;
|
|
97
15
|
}
|
|
98
16
|
this.open = !this.open;
|
|
99
|
-
this.
|
|
17
|
+
this.setFocus();
|
|
100
18
|
}
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
if (!this.open || this.hostElement.contains(ev.target)) {
|
|
19
|
+
setItemsA11yAttrs() {
|
|
20
|
+
if (!this.hasItems) {
|
|
104
21
|
return;
|
|
105
22
|
}
|
|
106
|
-
this.
|
|
107
|
-
|
|
23
|
+
this.items.forEach((item, index) => {
|
|
24
|
+
item.setAttribute("role", "menuitem");
|
|
25
|
+
item.setAttribute("tabindex", index === 0 ? "0" : "-1");
|
|
26
|
+
});
|
|
108
27
|
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
this.hasContent = this.hostElement.querySelectorAll('[slot="section"]').length > 0;
|
|
28
|
+
onItemsChange() {
|
|
29
|
+
this.items = Array.from(this.host.querySelectorAll('[slot="section"]'));
|
|
30
|
+
this.hasItems = this.items.length > 0;
|
|
31
|
+
this.setItemsA11yAttrs();
|
|
114
32
|
}
|
|
115
33
|
/**
|
|
116
34
|
* Sets slotted item text as `data-text` attribute value, to let CSS use it through `attr()`.
|
|
@@ -118,20 +36,127 @@ export class ZMenuSection {
|
|
|
118
36
|
*/
|
|
119
37
|
onLabelSlotChange(ev) {
|
|
120
38
|
const labelElement = ev.target.assignedElements()[0];
|
|
121
|
-
labelElement.dataset.text =
|
|
39
|
+
labelElement.dataset.text = labelElement === null || labelElement === void 0 ? void 0 : labelElement.textContent;
|
|
40
|
+
}
|
|
41
|
+
onLabelKeydown(ev) {
|
|
42
|
+
if (ev.key === KeyboardCode.ENTER || ev.key === KeyboardCode.SPACE) {
|
|
43
|
+
ev.preventDefault();
|
|
44
|
+
ev.stopPropagation();
|
|
45
|
+
this.toggle();
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Move focus and adjust the tabindex value of `receiver` and `current` elements,
|
|
50
|
+
* setting -1 to the `current` and 0 to the `receiver`, then focus the `receiver` element.
|
|
51
|
+
*/
|
|
52
|
+
moveFocus(receiver, current) {
|
|
53
|
+
receiver.tabIndex = 0;
|
|
54
|
+
setTimeout(() => {
|
|
55
|
+
receiver.focus();
|
|
56
|
+
}, 100);
|
|
57
|
+
if (current) {
|
|
58
|
+
current.tabIndex = -1;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
/** Set tabindex of the label to 0, then focus it. */
|
|
62
|
+
async setFocus() {
|
|
63
|
+
this.htmlTabindex = 0;
|
|
64
|
+
setTimeout(() => {
|
|
65
|
+
this.label.focus();
|
|
66
|
+
}, 100);
|
|
67
|
+
}
|
|
68
|
+
/** Focus the last item. */
|
|
69
|
+
async focusLastItem() {
|
|
70
|
+
this.htmlTabindex = 0;
|
|
71
|
+
this.moveFocus(this.items[this.items.length - 1]);
|
|
122
72
|
}
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
73
|
+
onOpenChange() {
|
|
74
|
+
if (!this.open) {
|
|
75
|
+
this.closed.emit();
|
|
76
|
+
this.setItemsA11yAttrs();
|
|
77
|
+
}
|
|
78
|
+
else {
|
|
79
|
+
this.opened.emit();
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
onTabindexChange() {
|
|
83
|
+
this.label.tabIndex = this.htmlTabindex;
|
|
84
|
+
}
|
|
85
|
+
onItemsKeydown(ev) {
|
|
86
|
+
switch (ev.key) {
|
|
87
|
+
case KeyboardCode.ESC:
|
|
88
|
+
case KeyboardCode.ARROW_LEFT:
|
|
89
|
+
if (!this.open) {
|
|
90
|
+
break;
|
|
91
|
+
}
|
|
92
|
+
ev.preventDefault();
|
|
93
|
+
ev.stopPropagation();
|
|
94
|
+
this.label.focus();
|
|
95
|
+
this.open = false;
|
|
96
|
+
break;
|
|
97
|
+
case KeyboardCode.ARROW_RIGHT:
|
|
98
|
+
if (this.open) {
|
|
99
|
+
break;
|
|
100
|
+
}
|
|
101
|
+
ev.preventDefault();
|
|
102
|
+
ev.stopPropagation();
|
|
103
|
+
this.open = true;
|
|
104
|
+
break;
|
|
105
|
+
case KeyboardCode.ARROW_DOWN: {
|
|
106
|
+
if (!this.open) {
|
|
107
|
+
break;
|
|
108
|
+
}
|
|
109
|
+
if (document.activeElement === this.host) {
|
|
110
|
+
ev.preventDefault();
|
|
111
|
+
ev.stopPropagation();
|
|
112
|
+
this.moveFocus(this.items[0]);
|
|
113
|
+
break;
|
|
114
|
+
}
|
|
115
|
+
const currentIndex = this.items.indexOf(this.focusableItem);
|
|
116
|
+
const receiver = this.items[currentIndex + 1];
|
|
117
|
+
if (receiver) {
|
|
118
|
+
ev.preventDefault();
|
|
119
|
+
ev.stopPropagation();
|
|
120
|
+
this.moveFocus(receiver, this.focusableItem);
|
|
121
|
+
}
|
|
122
|
+
break;
|
|
123
|
+
}
|
|
124
|
+
case KeyboardCode.ARROW_UP: {
|
|
125
|
+
if (!this.open || document.activeElement === this.host) {
|
|
126
|
+
break;
|
|
127
|
+
}
|
|
128
|
+
const currentIndex = this.items.indexOf(this.focusableItem);
|
|
129
|
+
const receiver = this.items[currentIndex - 1];
|
|
130
|
+
ev.preventDefault();
|
|
131
|
+
ev.stopPropagation();
|
|
132
|
+
if (receiver) {
|
|
133
|
+
this.moveFocus(receiver, this.focusableItem);
|
|
134
|
+
}
|
|
135
|
+
else {
|
|
136
|
+
// since there isn't a previous item to focus, give the focus to the label element
|
|
137
|
+
this.setFocus();
|
|
138
|
+
}
|
|
139
|
+
break;
|
|
140
|
+
}
|
|
128
141
|
}
|
|
129
142
|
}
|
|
130
|
-
|
|
131
|
-
this.
|
|
143
|
+
constructor() {
|
|
144
|
+
this.active = undefined;
|
|
145
|
+
this.htmlTabindex = -1;
|
|
146
|
+
this.open = undefined;
|
|
147
|
+
this.hasItems = undefined;
|
|
148
|
+
this.items = undefined;
|
|
149
|
+
this.toggle = this.toggle.bind(this);
|
|
150
|
+
this.onItemsChange = this.onItemsChange.bind(this);
|
|
151
|
+
this.onLabelSlotChange = this.onLabelSlotChange.bind(this);
|
|
152
|
+
this.onLabelKeydown = this.onLabelKeydown.bind(this);
|
|
153
|
+
this.onItemsKeydown = this.onItemsKeydown.bind(this);
|
|
154
|
+
}
|
|
155
|
+
connectedCallback() {
|
|
156
|
+
this.onItemsChange();
|
|
132
157
|
}
|
|
133
158
|
render() {
|
|
134
|
-
return (h(Host, { key: '
|
|
159
|
+
return (h(Host, { key: '387e43b42ac8233f88d329a592bef924ebcf9ee9', open: this.open }, h("button", { key: 'd6014cdeb9a6ff2b4e95c43db7d2bae2b4d1c811', ref: (el) => (this.label = el), class: "label", "aria-haspopup": `${this.hasItems}`, "aria-expanded": `${!!this.open}`, role: "menuitem", tabindex: this.htmlTabindex, onClick: this.toggle, onKeyDown: this.onLabelKeydown }, h("slot", { key: 'd0065cf62f83d83df43b5c2413d3e13b23a1bb6a', onSlotchange: this.onLabelSlotChange }), this.hasItems && h("z-icon", { key: 'e6adc51de79f1fbcb76b025cd6226388ff4d90f0', name: this.open ? "chevron-up" : "chevron-down" })), this.open && (h("div", { key: '151f31f24ec306ce4cb45b70b8ae5a6023fd063d', class: "items", role: "menu" }, h("slot", { key: 'd4d67539788121360de0e4dabf51ba22086c1345', name: "section", onSlotchange: this.onItemsChange })))));
|
|
135
160
|
}
|
|
136
161
|
static get is() { return "z-menu-section"; }
|
|
137
162
|
static get encapsulation() { return "shadow"; }
|
|
@@ -163,13 +188,48 @@ export class ZMenuSection {
|
|
|
163
188
|
},
|
|
164
189
|
"attribute": "active",
|
|
165
190
|
"reflect": true
|
|
191
|
+
},
|
|
192
|
+
"htmlTabindex": {
|
|
193
|
+
"type": "number",
|
|
194
|
+
"mutable": false,
|
|
195
|
+
"complexType": {
|
|
196
|
+
"original": "number",
|
|
197
|
+
"resolved": "number",
|
|
198
|
+
"references": {}
|
|
199
|
+
},
|
|
200
|
+
"required": false,
|
|
201
|
+
"optional": false,
|
|
202
|
+
"docs": {
|
|
203
|
+
"tags": [],
|
|
204
|
+
"text": "Tabindex value to set on the label button.\nUseful to manage keyboard navigation focus with roving tabindex handled by this component's parent (usually ZMenu)."
|
|
205
|
+
},
|
|
206
|
+
"attribute": "html-tabindex",
|
|
207
|
+
"reflect": false,
|
|
208
|
+
"defaultValue": "-1"
|
|
209
|
+
},
|
|
210
|
+
"open": {
|
|
211
|
+
"type": "boolean",
|
|
212
|
+
"mutable": true,
|
|
213
|
+
"complexType": {
|
|
214
|
+
"original": "boolean",
|
|
215
|
+
"resolved": "boolean",
|
|
216
|
+
"references": {}
|
|
217
|
+
},
|
|
218
|
+
"required": false,
|
|
219
|
+
"optional": false,
|
|
220
|
+
"docs": {
|
|
221
|
+
"tags": [],
|
|
222
|
+
"text": "The opening state of the section."
|
|
223
|
+
},
|
|
224
|
+
"attribute": "open",
|
|
225
|
+
"reflect": false
|
|
166
226
|
}
|
|
167
227
|
};
|
|
168
228
|
}
|
|
169
229
|
static get states() {
|
|
170
230
|
return {
|
|
171
|
-
"
|
|
172
|
-
"
|
|
231
|
+
"hasItems": {},
|
|
232
|
+
"items": {}
|
|
173
233
|
};
|
|
174
234
|
}
|
|
175
235
|
static get events() {
|
|
@@ -205,26 +265,61 @@ export class ZMenuSection {
|
|
|
205
265
|
}
|
|
206
266
|
}];
|
|
207
267
|
}
|
|
208
|
-
static get
|
|
209
|
-
|
|
268
|
+
static get methods() {
|
|
269
|
+
return {
|
|
270
|
+
"setFocus": {
|
|
271
|
+
"complexType": {
|
|
272
|
+
"signature": "() => Promise<void>",
|
|
273
|
+
"parameters": [],
|
|
274
|
+
"references": {
|
|
275
|
+
"Promise": {
|
|
276
|
+
"location": "global",
|
|
277
|
+
"id": "global::Promise"
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
"return": "Promise<void>"
|
|
281
|
+
},
|
|
282
|
+
"docs": {
|
|
283
|
+
"text": "Set tabindex of the label to 0, then focus it.",
|
|
284
|
+
"tags": []
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
"focusLastItem": {
|
|
288
|
+
"complexType": {
|
|
289
|
+
"signature": "() => Promise<void>",
|
|
290
|
+
"parameters": [],
|
|
291
|
+
"references": {
|
|
292
|
+
"Promise": {
|
|
293
|
+
"location": "global",
|
|
294
|
+
"id": "global::Promise"
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
"return": "Promise<void>"
|
|
298
|
+
},
|
|
299
|
+
"docs": {
|
|
300
|
+
"text": "Focus the last item.",
|
|
301
|
+
"tags": []
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
};
|
|
305
|
+
}
|
|
306
|
+
static get elementRef() { return "host"; }
|
|
307
|
+
static get watchers() {
|
|
210
308
|
return [{
|
|
211
|
-
"
|
|
212
|
-
"
|
|
213
|
-
"target": "document",
|
|
214
|
-
"capture": false,
|
|
215
|
-
"passive": false
|
|
309
|
+
"propName": "open",
|
|
310
|
+
"methodName": "onOpenChange"
|
|
216
311
|
}, {
|
|
312
|
+
"propName": "htmlTabindex",
|
|
313
|
+
"methodName": "onTabindexChange"
|
|
314
|
+
}];
|
|
315
|
+
}
|
|
316
|
+
static get listeners() {
|
|
317
|
+
return [{
|
|
217
318
|
"name": "keydown",
|
|
218
|
-
"method": "
|
|
319
|
+
"method": "onItemsKeydown",
|
|
219
320
|
"target": undefined,
|
|
220
321
|
"capture": false,
|
|
221
322
|
"passive": false
|
|
222
|
-
}, {
|
|
223
|
-
"name": "click",
|
|
224
|
-
"method": "handleClick",
|
|
225
|
-
"target": "document",
|
|
226
|
-
"capture": false,
|
|
227
|
-
"passive": false
|
|
228
323
|
}];
|
|
229
324
|
}
|
|
230
325
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/z-menu-section/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAC,MAAM,eAAe,CAAC;AACpG,OAAO,EAAC,YAAY,EAAC,MAAM,aAAa,CAAC;AAEzC;;;;GAIG;AAMH,MAAM,OAAO,YAAY;;QAqBf,iBAAY,GAAG,CAAC,CAAC,CAAC;QAElB,4BAAuB,GAAG,KAAK,CAAC;;;;;IAGxC,uBAAuB,CAAC,CAAc;QACpC,IAAI,CAAC,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,CAAC;IAGD,aAAa,CAAC,CAAgB;QAC5B,IAAI,CAAC,CAAC,IAAI,KAAK,YAAY,CAAC,KAAK,EAAE,CAAC;YAClC,OAAO;QACT,CAAC;QAED,IAAI,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,uBAAuB,EAAE,CAAC;YAC/C,IAAI,CAAC,yBAAyB,CAAC,CAAC,CAAC,CAAC;QACpC,CAAC;QAED,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;IAC1B,CAAC;IAEO,yBAAyB,CAAC,CAAgB;QAChD,IAAI,CAAC,CAAC,IAAI,KAAK,YAAY,CAAC,WAAW,IAAI,CAAC,CAAC,IAAI,KAAK,YAAY,CAAC,UAAU,EAAE,CAAC;YAC9E,OAAO;QACT,CAAC;QAC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IAAI,CAAC,GACpC,CACJ,CACP,CACI,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {Component, Element, Event, EventEmitter, Host, Listen, Prop, State, h} from \"@stencil/core\";\nimport {KeyboardCode} from \"../../beans\";\n\n/**\n * A component to create submenus inside the ZMenu.\n * @slot - Label of the menu section.\n * @slot item - Single entry of the section. Set the same slot name to different items to put many of them. Add the `active` attribute to a slotted item to highlight it.\n */\n@Component({\n tag: \"z-menu-section\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZMenuSection {\n @Element() hostElement: HTMLZMenuSectionElement;\n\n /** Active state */\n @Prop({reflect: true})\n active?: boolean;\n\n @State()\n open: boolean;\n\n @State()\n hasContent: boolean;\n\n /** The section has been opened. */\n @Event()\n opened: EventEmitter;\n\n /** The section has been closed. */\n @Event()\n closed: EventEmitter;\n\n private currentIndex = -1;\n\n private currentCanvasOpenStatus = false;\n\n @Listen(\"canvasOpenStatusChanged\", {target: \"document\"})\n canvasOpenStatusChanged(e: CustomEvent): void {\n this.currentCanvasOpenStatus = e.detail;\n }\n\n @Listen(\"keydown\")\n handleKeyDown(e: KeyboardEvent): void {\n if (e.code === KeyboardCode.ENTER) {\n return;\n }\n\n if (this.open && !this.currentCanvasOpenStatus) {\n this.handleNavigationSideArrow(e);\n }\n\n this.handleArrowsNav(e);\n }\n\n private handleNavigationSideArrow(e: KeyboardEvent): void {\n if (e.code !== KeyboardCode.ARROW_RIGHT && e.code !== KeyboardCode.ARROW_LEFT) {\n return;\n }\n if (e.code === KeyboardCode.ARROW_RIGHT) {\n const nextElement = this.hostElement.parentElement.nextElementSibling;\n if (nextElement) {\n const menuButton = nextElement.shadowRoot.querySelector(\".menu-label\") as HTMLElement;\n console.log(this.hostElement.parentElement);\n menuButton.focus();\n }\n this.open = false;\n nextElement.setAttribute(\"open\", \"true\");\n } else if (e.code === KeyboardCode.ARROW_LEFT) {\n const prevElement = this.hostElement.parentElement.previousElementSibling;\n if (prevElement) {\n const menuButton = prevElement.shadowRoot.querySelector(\".menu-label\") as HTMLElement;\n menuButton.focus();\n }\n prevElement.setAttribute(\"open\", \"true\");\n this.open = false;\n }\n }\n\n private handleArrowsNav(e: KeyboardEvent): void {\n const menuItems = Array.from(this.hostElement.querySelectorAll('[slot=\"section\"]')) as HTMLElement[];\n if (this.open) {\n e.preventDefault();\n e.stopPropagation();\n if (e.code === KeyboardCode.ARROW_DOWN || e.code === KeyboardCode.ARROW_UP) {\n let nextFocusableItem: HTMLElement;\n // INFO: reset focus on all menu items\n menuItems.forEach((item: HTMLElement) => item.setAttribute(\"tabindex\", \"-1\"));\n\n if (e.code === KeyboardCode.ARROW_DOWN) {\n nextFocusableItem = this.getNextItem(menuItems, 1);\n } else if (e.code === KeyboardCode.ARROW_UP) {\n nextFocusableItem = this.getNextItem(menuItems, -1);\n }\n\n if (nextFocusableItem) {\n nextFocusableItem.setAttribute(\"tabindex\", \"0\");\n nextFocusableItem.focus();\n }\n } else if (e.code === KeyboardCode.ESC) {\n this.focusToParentAndCloseMenu();\n } else if (e.shiftKey && e.code === KeyboardCode.TAB) {\n this.focusToParentAndCloseMenu();\n }\n }\n }\n\n private getNextItem(menuItems: HTMLElement[], direction: number): HTMLElement {\n if (this.currentIndex === -1) {\n this.currentIndex = direction === 1 ? 0 : menuItems.length - 1;\n\n return menuItems[this.currentIndex];\n }\n\n this.currentIndex = (this.currentIndex + direction + menuItems.length) % menuItems.length;\n\n return menuItems[this.currentIndex];\n }\n\n private focusToParentAndCloseMenu(): void {\n const menuButton = this.hostElement.shadowRoot.querySelector(\"button\") as HTMLElement;\n menuButton.focus();\n this.currentIndex = -1;\n this.open = false;\n }\n\n private toggle(): void {\n if (!this.hasContent) {\n return;\n }\n\n this.open = !this.open;\n this.open ? this.opened.emit() : this.closed.emit();\n }\n\n /** Close the list when a click is performed outside of this Element. */\n @Listen(\"click\", {target: \"document\"})\n handleClick(ev: MouseEvent): void {\n if (!this.open || this.hostElement.contains(ev.target as Node)) {\n return;\n }\n\n this.open = false;\n this.closed.emit();\n }\n\n /**\n * Check if some content slot is set.\n */\n private checkContent(): void {\n this.hasContent = this.hostElement.querySelectorAll('[slot=\"section\"]').length > 0;\n }\n\n /**\n * Sets slotted item text as `data-text` attribute value, to let CSS use it through `attr()`.\n * @param ev Slotchange event\n */\n private onLabelSlotChange(ev: Event): void {\n const labelElement = (ev.target as HTMLSlotElement).assignedElements()[0] as HTMLElement;\n labelElement.dataset.text = labelElement?.innerText || null;\n }\n\n private focusFirstSectionItemOnKeyUp(): void {\n const firstElement = this.hostElement.querySelectorAll('[slot=\"section\"]')[0] as HTMLElement;\n if (firstElement) {\n firstElement.focus();\n this.currentIndex = 0;\n }\n }\n\n componentWillLoad(): void {\n this.checkContent();\n }\n\n render(): HTMLZMenuSectionElement {\n return (\n <Host\n role=\"menu\"\n open={this.open}\n >\n <button\n class=\"label\"\n aria-pressed={this.open ? \"true\" : \"false\"}\n onClick={this.toggle.bind(this)}\n onKeyUp={this.focusFirstSectionItemOnKeyUp.bind(this)}\n >\n <slot onSlotchange={this.onLabelSlotChange.bind(this)}></slot>\n {this.hasContent && <z-icon name={this.open ? \"chevron-up\" : \"chevron-down\"} />}\n </button>\n {this.open && (\n <div class=\"items\">\n <slot\n name=\"section\"\n onSlotchange={this.checkContent.bind(this)}\n ></slot>\n </div>\n )}\n </Host>\n );\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/z-menu-section/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,EAAC,MAAM,eAAe,CAAC;AACnH,OAAO,EAAC,YAAY,EAAC,MAAM,aAAa,CAA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ter, Host, Listen, Method, Prop, State, Watch, h} from \"@stencil/core\";\nimport {KeyboardCode} from \"../../beans\";\n\n/**\n * A component to create submenus inside the ZMenu.\n * @slot - Label of the menu section.\n * @slot item - Single entry of the section. Set the same slot name to different items to put many of them. Add the `active` attribute to a slotted item to highlight it.\n */\n@Component({\n tag: \"z-menu-section\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZMenuSection {\n @Element() host: HTMLZMenuSectionElement;\n\n /** Active state */\n @Prop({reflect: true})\n active?: boolean;\n\n /**\n * Tabindex value to set on the label button.\n * Useful to manage keyboard navigation focus with roving tabindex handled by this component's parent (usually ZMenu).\n */\n @Prop()\n htmlTabindex = -1;\n\n /** The opening state of the section. */\n @Prop({mutable: true})\n open: boolean;\n\n @State()\n hasItems: boolean;\n\n @State()\n items: HTMLElement[];\n\n /** The section has been opened. */\n @Event()\n opened: EventEmitter;\n\n /** The section has been closed. */\n @Event()\n closed: EventEmitter;\n\n private label: HTMLButtonElement;\n\n private get focusableItem(): HTMLElement {\n return this.items.find(({tabIndex}) => tabIndex === 0);\n }\n\n private toggle(): void {\n if (!this.hasItems) {\n return;\n }\n\n this.open = !this.open;\n this.setFocus();\n }\n\n private setItemsA11yAttrs(): void {\n if (!this.hasItems) {\n return;\n }\n\n this.items.forEach((item, index) => {\n item.setAttribute(\"role\", \"menuitem\");\n item.setAttribute(\"tabindex\", index === 0 ? \"0\" : \"-1\");\n });\n }\n\n private onItemsChange(): void {\n this.items = Array.from(this.host.querySelectorAll('[slot=\"section\"]')) as HTMLElement[];\n this.hasItems = this.items.length > 0;\n this.setItemsA11yAttrs();\n }\n\n /**\n * Sets slotted item text as `data-text` attribute value, to let CSS use it through `attr()`.\n * @param ev Slotchange event\n */\n private onLabelSlotChange(ev: Event): void {\n const labelElement = (ev.target as HTMLSlotElement).assignedElements()[0] as HTMLElement;\n labelElement.dataset.text = labelElement?.textContent;\n }\n\n private onLabelKeydown(ev: KeyboardEvent): void {\n if (ev.key === KeyboardCode.ENTER || ev.key === KeyboardCode.SPACE) {\n ev.preventDefault();\n ev.stopPropagation();\n this.toggle();\n }\n }\n\n /**\n * Move focus and adjust the tabindex value of `receiver` and `current` elements,\n * setting -1 to the `current` and 0 to the `receiver`, then focus the `receiver` element.\n */\n private moveFocus(receiver: HTMLElement, current?: HTMLElement): void {\n receiver.tabIndex = 0;\n setTimeout(() => {\n receiver.focus();\n }, 100);\n if (current) {\n current.tabIndex = -1;\n }\n }\n\n /** Set tabindex of the label to 0, then focus it. */\n @Method()\n async setFocus(): Promise<void> {\n this.htmlTabindex = 0;\n setTimeout(() => {\n this.label.focus();\n }, 100);\n }\n\n /** Focus the last item. */\n @Method()\n async focusLastItem(): Promise<void> {\n this.htmlTabindex = 0;\n this.moveFocus(this.items[this.items.length - 1]);\n }\n\n @Watch(\"open\")\n onOpenChange(): void {\n if (!this.open) {\n this.closed.emit();\n this.setItemsA11yAttrs();\n } else {\n this.opened.emit();\n }\n }\n\n @Watch(\"htmlTabindex\")\n onTabindexChange(): void {\n this.label.tabIndex = this.htmlTabindex;\n }\n\n @Listen(\"keydown\")\n private onItemsKeydown(ev: KeyboardEvent): void {\n switch (ev.key) {\n case KeyboardCode.ESC:\n case KeyboardCode.ARROW_LEFT:\n if (!this.open) {\n break;\n }\n ev.preventDefault();\n ev.stopPropagation();\n this.label.focus();\n this.open = false;\n break;\n case KeyboardCode.ARROW_RIGHT:\n if (this.open) {\n break;\n }\n ev.preventDefault();\n ev.stopPropagation();\n this.open = true;\n break;\n case KeyboardCode.ARROW_DOWN: {\n if (!this.open) {\n break;\n }\n if (document.activeElement === this.host) {\n ev.preventDefault();\n ev.stopPropagation();\n this.moveFocus(this.items[0]);\n break;\n }\n const currentIndex = this.items.indexOf(this.focusableItem);\n const receiver = this.items[currentIndex + 1];\n if (receiver) {\n ev.preventDefault();\n ev.stopPropagation();\n this.moveFocus(receiver, this.focusableItem);\n }\n break;\n }\n case KeyboardCode.ARROW_UP: {\n if (!this.open || document.activeElement === this.host) {\n break;\n }\n const currentIndex = this.items.indexOf(this.focusableItem);\n const receiver = this.items[currentIndex - 1];\n ev.preventDefault();\n ev.stopPropagation();\n if (receiver) {\n this.moveFocus(receiver, this.focusableItem);\n } else {\n // since there isn't a previous item to focus, give the focus to the label element\n this.setFocus();\n }\n break;\n }\n }\n }\n\n constructor() {\n this.toggle = this.toggle.bind(this);\n this.onItemsChange = this.onItemsChange.bind(this);\n this.onLabelSlotChange = this.onLabelSlotChange.bind(this);\n this.onLabelKeydown = this.onLabelKeydown.bind(this);\n this.onItemsKeydown = this.onItemsKeydown.bind(this);\n }\n\n connectedCallback(): void {\n this.onItemsChange();\n }\n\n render(): HTMLZMenuSectionElement {\n return (\n <Host open={this.open}>\n <button\n ref={(el) => (this.label = el)}\n class=\"label\"\n aria-haspopup={`${this.hasItems}`}\n aria-expanded={`${!!this.open}`}\n role=\"menuitem\"\n tabindex={this.htmlTabindex}\n onClick={this.toggle}\n onKeyDown={this.onLabelKeydown}\n >\n <slot onSlotchange={this.onLabelSlotChange} />\n {this.hasItems && <z-icon name={this.open ? \"chevron-up\" : \"chevron-down\"} />}\n </button>\n {this.open && (\n <div\n class=\"items\"\n role=\"menu\"\n >\n <slot\n name=\"section\"\n onSlotchange={this.onItemsChange}\n />\n </div>\n )}\n </Host>\n );\n }\n}\n"]}
|