@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
|
@@ -2,99 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const index
|
|
7
|
-
const
|
|
8
|
-
require('./
|
|
5
|
+
const index$1 = require('./index-96af6326.js');
|
|
6
|
+
const index = require('./index-bab7a651.js');
|
|
7
|
+
const breakpoints = require('./breakpoints-8a1e87e0.js');
|
|
8
|
+
const utils = require('./utils-257558ff.js');
|
|
9
9
|
|
|
10
|
-
const stylesCss$b = ":host{
|
|
10
|
+
const stylesCss$b = ":host{position:relative;display:block;box-shadow:var(--shadow-2)}:host,*{box-sizing:border-box}.heading-panel{--title-line-height:1.333;--title-font-size:var(--font-size-6);position:relative;display:flex;width:100%;max-width:var(--app-header-content-max-width, 100%);flex-direction:column;flex-grow:0;flex-shrink:0;align-items:baseline;padding:calc(var(--space-unit) * 2);margin:0 auto;background:var(--app-header-bg)}:host(:empty) .heading-panel{padding:0}.heading-container{position:relative;z-index:1;display:flex;width:100%;max-width:100%;flex:1 auto;flex-direction:column;justify-content:flex-start}.heading-panel.has-menubar{padding-bottom:0}.heading-panel .heading-container{flex-direction:column-reverse}:host([enable-search]) .heading-panel .heading-container{flex-direction:column}:host([enable-search][search-page-url]) .heading-panel .heading-container{flex-direction:row}.heading-title{display:flex;width:100%;flex-direction:row;align-items:flex-start}.z-logo{display:flex;height:calc(var(--title-font-size) * var(--title-line-height));align-items:center}.z-logo img{height:24px;margin:0 var(--space-unit) 0 0;content:url('data:image/svg+xml,<svg width=\"61\" height=\"32\" viewBox=\"0 0 61 32\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M15.9874 32C7.1595 32 0 24.8349 0 16C0 7.16513 7.1595 0 15.9874 0H45.0126C53.8405 0 61 7.16513 61 16C61 24.8349 53.8405 32 45.0126 32H15.9874Z\" fill=\"%23E2011A\"/><path d=\"M58.5435 15.9992C58.5435 23.4743 52.4892 29.5403 45.0129 29.5403C37.5367 29.5403 31.4824 23.4813 31.4824 15.9992C31.4824 8.51701 37.5367 2.45801 45.0129 2.45801C52.4892 2.45801 58.5435 8.51701 58.5435 15.9992Z\" fill=\"white\"/><path d=\"M40.7107 8.01862H49.8976V11.3158L44.139 21.7077H50.0384V24.6457H39.9785V21.4048L45.7371 10.9636H40.7107V8.01862Z\" fill=\"%23E2011A\"/><path d=\"M12.2914 24.6449C10.982 24.6449 10.271 23.8136 10.271 22.6722V7.04565H12.1718V22.9822H13.981V24.6449H12.2914Z\" fill=\"white\"/><path d=\"M25.6461 24.6448C24.2452 24.6448 23.675 23.7853 23.5342 22.6439H23.4145C22.8935 24.1446 21.5841 24.9266 19.8735 24.9266C17.2828 24.9266 15.7622 23.4964 15.7622 21.2137C15.7622 18.931 17.4236 17.6206 20.9928 17.6206H23.4145V16.4088C23.4145 14.6756 22.4641 13.7245 20.5141 13.7245C19.0428 13.7245 18.0642 14.4361 17.4025 15.5563L16.262 14.4854C16.9308 13.175 18.4021 12.0829 20.6126 12.0829C23.5623 12.0829 25.3152 13.6259 25.3152 16.2186V22.9751H26.7162V24.6378H25.6461V24.6448ZM23.4145 21.0799V19.0578H20.8942C18.733 19.0578 17.7545 19.7272 17.7545 20.9108V21.411C17.7545 22.6228 18.7049 23.3132 20.1762 23.3132C22.0558 23.3132 23.4074 22.341 23.4074 21.0799H23.4145Z\" fill=\"white\"/></svg>')}.product-logo{display:none}.product-logo ::slotted([slot=\"product-logo\"]){width:32px;height:32px;margin-right:var(--space-unit);border-radius:50%}::slotted([slot=\"title\"]),::slotted([slot=\"stucked-title\"]),.stucked-title{margin:0;color:var(--app-header-text-color, var(--gray950));font-family:var(--font-family-serif);font-weight:var(--font-sb)}::slotted([slot=\"title\"]){display:-webkit-box;overflow:hidden;flex-grow:1;-webkit-box-orient:vertical;font-size:var(--title-font-size);-webkit-line-clamp:2;line-clamp:2;line-height:var(--title-line-height);text-overflow:ellipsis}:host([enable-search]) ::slotted([slot=\"title\"])+*{margin-left:calc(var(--space-unit) * 2)}:host([enable-offcanvas]:not([menu-length=\"0\"])) .top-subtitle{padding-left:calc(var(--space-unit) * 4 + var(--space-unit))}::slotted([slot=\"top-subtitle\"]){display:-webkit-box;overflow:hidden;max-width:80%;margin:0;-webkit-box-orient:vertical;color:var(--color-default-text);font-family:var(--font-family-sans);font-size:var(--font-size-2);font-style:italic;font-weight:var(--font-rg);-webkit-line-clamp:2;line-clamp:2}.menu-container{display:flex;flex:1 auto;column-gap:calc(var(--space-unit) * 4)}.menu-container:focus:focus-visible{outline:none}:host([menu-length=\"0\"]) .menu-container,.menu-container:empty{display:none}.menu-container ::slotted([open]){position:relative;z-index:3}.menu-container ::slotted([slot=\"menu\"]:not(:last-child))::after{position:absolute;top:calc(1.5em / 2);right:calc(var(--space-unit) * -2);width:var(--border-size-small);height:1em;background-color:currentcolor;content:\"\";transform:translateY(-50%)}z-searchbar{z-index:0;display:flex;width:100%;align-items:center;padding-top:calc(var(--space-unit) * 2)}.heading-stuck{position:fixed;z-index:20;top:var(--app-header-top-offset, 48px);left:0;width:100%;max-width:100%;animation:slide-stuck-heading-in 250ms ease-out;background:var(--app-header-stucked-bg, var(--color-surface01));box-shadow:var(--shadow-2);color:var(--app-header-stucked-text-color, var(--color-default-text))}.heading-stuck-content{display:flex;max-width:var(--app-header-content-max-width, 100%);align-items:center;padding:var(--space-unit) var(--grid-margin);margin:0 auto}.heading-stuck .heading-title{--title-font-size:var(--font-size-5);--title-line-height:1.4;overflow:hidden;align-items:center}.heading-stuck .heading-title:not(:last-child){margin-right:calc(var(--space-unit) * 2)}.heading-stuck .stucked-title{overflow:hidden;font-size:var(--title-font-size);line-height:var(--title-line-height);text-overflow:ellipsis;white-space:nowrap}.heading-stuck-content z-button.search-page-button{margin-left:auto}.drawer-trigger{display:flex;height:calc(var(--title-font-size) * var(--title-line-height));align-items:center;padding:0;border:0;margin-right:var(--space-unit);appearance:none;background:none;border-radius:0;color:inherit;cursor:pointer;outline:none}.drawer-trigger:focus:focus-visible z-icon{box-shadow:var(--shadow-focus-primary)}.drawer-trigger z-icon{--z-icon-width:calc(var(--space-unit) * 4);--z-icon-height:calc(var(--space-unit) * 4);fill:currentcolor}.heading-container z-button.search-page-button{margin-left:auto}.drawer-content{display:none}z-offcanvas[open] .drawer-content{display:flex;width:100%;flex:1 auto;flex-direction:column}z-offcanvas[open] .drawer-content ::slotted(z-menu){width:100%}.drawer-close{--z-icon-width:calc(var(--space-unit) * 4);--z-icon-height:calc(var(--space-unit) * 4);padding:0;border:0;margin:var(--space-unit) 0 calc(var(--space-unit) * 2.5);appearance:none;background:transparent;border-radius:0;cursor:pointer;fill:currentcolor;outline:none}.drawer-close:focus-visible{box-shadow:var(--shadow-focus-primary)}@media (min-width: 768px){.heading-panel{--title-font-size:var(--font-size-9);padding:calc(var(--space-unit) * 1.5) var(--grid-margin) calc(var(--space-unit) * 1.25)}:host([enable-search][search-page-url]) .heading-panel .heading-container{flex-direction:column}.heading-panel .heading-container{flex-direction:column;margin-right:auto}.z-logo img{height:32px}.product-logo{display:flex;height:calc(var(--title-font-size) * var(--title-line-height));align-items:center}:host([enable-search]:not([search-page-url])) .heading-container .heading-title{flex-wrap:nowrap}z-searchbar{width:30%;height:calc(var(--title-font-size) * var(--title-line-height));padding-top:0}.menu-container{flex:initial}.menu-container>[role=\"menubar\"]{display:contents}:host(:not([enable-offcanvas])) .menu-container{margin-top:calc((var(--space-unit) * 1.75))}:host(:not([enable-offcanvas])) .heading-container .drawer-trigger{display:none}.heading-stuck .heading-title{--title-font-size:var(--font-size-8);--title-line-height:1.5}.heading-stuck-content{padding:6px var(--grid-margin)}:host(:not([enable-offcanvas],[menu-length=\"0\"])){padding-left:0}}@media (min-width: 1152px){z-searchbar{min-width:calc(var(--space-unit) * 45);flex:initial}}@keyframes slide-stuck-heading-in{0%{transform:translate3d(0, -100%, 0)}100%{transform:none}}";
|
|
11
11
|
const ZAppHeaderStyle0 = stylesCss$b;
|
|
12
12
|
|
|
13
13
|
const SUPPORT_INTERSECTION_OBSERVER = typeof IntersectionObserver !== "undefined";
|
|
14
14
|
const ZAppHeader = class {
|
|
15
|
-
constructor(hostRef) {
|
|
16
|
-
index.registerInstance(this, hostRef);
|
|
17
|
-
this.sticking = index.createEvent(this, "sticking", 7);
|
|
18
|
-
this.currentIndex = -1;
|
|
19
|
-
this.observer = SUPPORT_INTERSECTION_OBSERVER &&
|
|
20
|
-
new IntersectionObserver(([entry]) => {
|
|
21
|
-
this._stuck = !entry.isIntersecting;
|
|
22
|
-
}, {
|
|
23
|
-
threshold: 0.5,
|
|
24
|
-
});
|
|
25
|
-
this.stuck = false;
|
|
26
|
-
this.enableOffcanvas = false;
|
|
27
|
-
this.enableSearch = false;
|
|
28
|
-
this.searchPlaceholder = "Cerca";
|
|
29
|
-
this.searchString = "";
|
|
30
|
-
this.searchPageUrl = undefined;
|
|
31
|
-
this.enableZLogo = true;
|
|
32
|
-
this._stuck = false;
|
|
33
|
-
this.currentViewport = index$1.Device.MOBILE;
|
|
34
|
-
this.menuLength = undefined;
|
|
35
|
-
this.drawerOpen = false;
|
|
36
|
-
this.openDrawer = this.openDrawer.bind(this);
|
|
37
|
-
this.closeDrawer = this.closeDrawer.bind(this);
|
|
38
|
-
this.collectMenuElements = this.collectMenuElements.bind(this);
|
|
39
|
-
}
|
|
40
|
-
evaluateViewport() {
|
|
41
|
-
this.currentViewport = utils.getDevice();
|
|
42
|
-
}
|
|
43
|
-
handleKeyDown(e) {
|
|
44
|
-
if (e.code === index$1.KeyboardCode.ESC && this.drawerOpen) {
|
|
45
|
-
this.closeDrawer();
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
this.handleArrowsNav(e);
|
|
49
|
-
}
|
|
50
|
-
handleArrowsNav(e) {
|
|
51
|
-
if (e.code !== index$1.KeyboardCode.ARROW_DOWN && e.code !== index$1.KeyboardCode.ARROW_UP && this.enableOffcanvas) {
|
|
52
|
-
return;
|
|
53
|
-
}
|
|
54
|
-
if (document.activeElement.slot === "item") {
|
|
55
|
-
return;
|
|
56
|
-
}
|
|
57
|
-
const menuItems = Array.from(this.menuElements).map((el) => el.shadowRoot.querySelector(".menu-label"));
|
|
58
|
-
let nextFocusableItem;
|
|
59
|
-
if (this.enableOffcanvas || this._stuck) {
|
|
60
|
-
// INFO: reset focus on all menu items
|
|
61
|
-
menuItems.forEach((item) => item.setAttribute("tabindex", "-1"));
|
|
62
|
-
e.preventDefault();
|
|
63
|
-
e.stopPropagation();
|
|
64
|
-
if (e.code === index$1.KeyboardCode.ARROW_DOWN) {
|
|
65
|
-
nextFocusableItem = this.getNextItem(menuItems, 1);
|
|
66
|
-
}
|
|
67
|
-
else if (e.code === index$1.KeyboardCode.ARROW_UP) {
|
|
68
|
-
nextFocusableItem = this.getNextItem(menuItems, -1);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
else {
|
|
72
|
-
if (e.code === index$1.KeyboardCode.ARROW_DOWN || e.code === index$1.KeyboardCode.ARROW_UP) {
|
|
73
|
-
e.preventDefault();
|
|
74
|
-
return;
|
|
75
|
-
}
|
|
76
|
-
//INFO: reset focus on all menu items
|
|
77
|
-
menuItems.forEach((item) => item.setAttribute("tabindex", "-1"));
|
|
78
|
-
if (e.code === index$1.KeyboardCode.ARROW_RIGHT) {
|
|
79
|
-
nextFocusableItem = this.getNextItem(menuItems, 1);
|
|
80
|
-
}
|
|
81
|
-
else if (e.code === index$1.KeyboardCode.ARROW_LEFT) {
|
|
82
|
-
nextFocusableItem = this.getNextItem(menuItems, -1);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
if (nextFocusableItem) {
|
|
86
|
-
nextFocusableItem.setAttribute("tabindex", "0");
|
|
87
|
-
nextFocusableItem.focus();
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
getNextItem(menuItems, direction) {
|
|
91
|
-
if (this.currentIndex === -1) {
|
|
92
|
-
this.currentIndex = direction === 1 ? 0 : menuItems.length - 1;
|
|
93
|
-
return menuItems[this.currentIndex];
|
|
94
|
-
}
|
|
95
|
-
this.currentIndex = (this.currentIndex + direction + menuItems.length) % menuItems.length;
|
|
96
|
-
return menuItems[this.currentIndex];
|
|
97
|
-
}
|
|
98
15
|
onStuck() {
|
|
99
16
|
const scrollParent = this.scrollParent;
|
|
100
17
|
if (!scrollParent) {
|
|
@@ -108,37 +25,22 @@ const ZAppHeader = class {
|
|
|
108
25
|
}
|
|
109
26
|
this.menuElements.forEach((element) => {
|
|
110
27
|
element.open = false;
|
|
111
|
-
element.floating = !this.drawerOpen;
|
|
112
28
|
element.verticalContext = this.drawerOpen;
|
|
113
|
-
element.setAttribute("role", "menuitem");
|
|
114
|
-
element.setAttribute("tabindex", "-1");
|
|
115
29
|
});
|
|
116
30
|
}
|
|
117
|
-
|
|
31
|
+
onStuckChange() {
|
|
32
|
+
var _a, _b;
|
|
118
33
|
if (this.stuck) {
|
|
119
|
-
this.
|
|
34
|
+
(_a = this.stuckIntersecObserver) === null || _a === void 0 ? void 0 : _a.observe(this.container);
|
|
120
35
|
}
|
|
121
36
|
else {
|
|
122
|
-
this.
|
|
123
|
-
|
|
124
|
-
}
|
|
125
|
-
enableStuckObserver() {
|
|
126
|
-
if (this.observer) {
|
|
127
|
-
this.observer.observe(this.container);
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
disableStuckMode() {
|
|
131
|
-
this._stuck = false;
|
|
132
|
-
if (this.observer) {
|
|
133
|
-
this.observer.unobserve(this.container);
|
|
37
|
+
this._stuck = false;
|
|
38
|
+
(_b = this.stuckIntersecObserver) === null || _b === void 0 ? void 0 : _b.unobserve(this.container);
|
|
134
39
|
}
|
|
135
40
|
}
|
|
136
41
|
get title() {
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
return "";
|
|
140
|
-
}
|
|
141
|
-
return titleElement.textContent.trim();
|
|
42
|
+
var _a;
|
|
43
|
+
return (_a = this.hostElement.querySelector('[slot="title"]')) === null || _a === void 0 ? void 0 : _a.textContent.trim();
|
|
142
44
|
}
|
|
143
45
|
get scrollParent() {
|
|
144
46
|
const parent = this.hostElement.offsetParent;
|
|
@@ -148,139 +50,172 @@ const ZAppHeader = class {
|
|
|
148
50
|
return parent;
|
|
149
51
|
}
|
|
150
52
|
get canShowMenu() {
|
|
151
|
-
return
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
53
|
+
return !this.enableOffcanvas && this.menuElements.length > 0 && !this.isMobile && !this.drawerOpen;
|
|
54
|
+
}
|
|
55
|
+
get focusableMenu() {
|
|
56
|
+
return this.menuElements.find((el) => el.htmlTabindex === 0);
|
|
155
57
|
}
|
|
156
58
|
openDrawer() {
|
|
157
59
|
this.drawerOpen = true;
|
|
60
|
+
this.menuElements.forEach((element, index) => (element.htmlTabindex = index === 0 ? 0 : -1));
|
|
61
|
+
setTimeout(() => this.closeMenuButton.focus(), 100);
|
|
158
62
|
}
|
|
159
63
|
closeDrawer() {
|
|
160
64
|
this.drawerOpen = false;
|
|
161
|
-
this.burgerButton.focus();
|
|
162
|
-
this.currentIndex = -1;
|
|
65
|
+
setTimeout(() => this.burgerButton.focus(), 100);
|
|
163
66
|
}
|
|
164
67
|
collectMenuElements() {
|
|
165
|
-
|
|
166
|
-
this.
|
|
68
|
+
this.menuElements = Array.from(this.hostElement.querySelectorAll('[slot="menu"]'));
|
|
69
|
+
this.menuElements.forEach((element, index) => (element.htmlTabindex = index === 0 ? 0 : -1));
|
|
70
|
+
this.menuLength = this.menuElements.length;
|
|
71
|
+
if (!this.enableOffcanvas) {
|
|
72
|
+
this.menuWidth =
|
|
73
|
+
this.menuElements.reduce((acc, el) => acc + el.getBoundingClientRect().width, 0) +
|
|
74
|
+
(this.menuLength - 1) * 32 /* 32px is the gap between each menu item */;
|
|
75
|
+
}
|
|
167
76
|
this.setMenuFloatingMode();
|
|
168
77
|
}
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
78
|
+
/** Automatically use offcanvas mode when the menubar doesn't fit in the header. */
|
|
79
|
+
setupMenuResizeObserver() {
|
|
80
|
+
if (this.enableOffcanvas) {
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
this.menuResizeObserver = new ResizeObserver((entries) => {
|
|
84
|
+
if (this.isMobile) {
|
|
85
|
+
this.enableOffcanvas = true;
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
const containerWidth = entries[0].contentBoxSize[0].inlineSize;
|
|
89
|
+
if (this.menuWidth === 0) {
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
if (this.menuWidth > containerWidth && !this.enableOffcanvas) {
|
|
93
|
+
this.enableOffcanvas = true;
|
|
94
|
+
}
|
|
95
|
+
else if (this.menuWidth <= containerWidth && this.enableOffcanvas) {
|
|
96
|
+
this.enableOffcanvas = false;
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
this.menuResizeObserver.observe(this.container);
|
|
100
|
+
}
|
|
101
|
+
hasSlot(slotName) {
|
|
102
|
+
return this.hostElement.querySelector(`[slot="${slotName}"]`) !== null;
|
|
103
|
+
}
|
|
104
|
+
moveFocus(current, receiver) {
|
|
105
|
+
current.htmlTabindex = -1;
|
|
106
|
+
receiver.setFocus();
|
|
107
|
+
}
|
|
108
|
+
/** Close each menu except the one receiving focus/click */
|
|
109
|
+
manageMenus(ev) {
|
|
110
|
+
this.menuElements.forEach((menu) => {
|
|
111
|
+
if (!menu.open || !menu.floating || menu.verticalContext || utils.containsElement(menu, ev.target)) {
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
menu.open = false;
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
handleMenubarKeydown(ev) {
|
|
118
|
+
var _a, _b;
|
|
119
|
+
if (!this.menuElements.some((elem) => elem.contains(ev.target))) {
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
122
|
+
const current = this.focusableMenu;
|
|
123
|
+
const currentIndex = this.menuElements.indexOf(current);
|
|
124
|
+
let receiver;
|
|
125
|
+
if ((ev.key === index.KeyboardCode.ARROW_RIGHT && !current.verticalContext) ||
|
|
126
|
+
(ev.key === index.KeyboardCode.ARROW_DOWN && current.verticalContext)) {
|
|
127
|
+
receiver = (_a = this.menuElements[currentIndex + 1]) !== null && _a !== void 0 ? _a : this.menuElements[0];
|
|
128
|
+
}
|
|
129
|
+
else if ((ev.key === index.KeyboardCode.ARROW_LEFT && !current.verticalContext) ||
|
|
130
|
+
(ev.key === index.KeyboardCode.ARROW_UP && current.verticalContext)) {
|
|
131
|
+
receiver = (_b = this.menuElements[currentIndex - 1]) !== null && _b !== void 0 ? _b : this.menuElements[this.menuLength - 1];
|
|
132
|
+
}
|
|
133
|
+
if (!receiver) {
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
136
|
+
if (ev.key === index.KeyboardCode.ARROW_UP && current.verticalContext) {
|
|
137
|
+
if (receiver.open) {
|
|
138
|
+
current.htmlTabindex = -1;
|
|
139
|
+
receiver.focusLastItem();
|
|
140
|
+
return;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
this.moveFocus(current, receiver);
|
|
172
144
|
}
|
|
173
145
|
renderSeachbar() {
|
|
174
|
-
|
|
175
|
-
if (this.currentViewport === index$1.Device.MOBILE && !this.searchPageUrl && this._stuck) {
|
|
146
|
+
if (this.isMobile && !this.searchPageUrl && this._stuck) {
|
|
176
147
|
return;
|
|
177
148
|
}
|
|
178
|
-
if (this.searchPageUrl && (this.
|
|
179
|
-
return (index.h("z-button", { class: "search-page-button", variant: index
|
|
149
|
+
if (this.searchPageUrl && (this.isMobile || this.isTablet)) {
|
|
150
|
+
return (index$1.h("z-button", { class: "search-page-button", variant: index.ButtonVariant.SECONDARY, href: this.searchPageUrl, icon: "search", size: index.ControlSize.X_SMALL }));
|
|
180
151
|
}
|
|
181
|
-
return (index.h("z-searchbar", {
|
|
182
|
-
if (e.code === index$1.KeyboardCode.ARROW_RIGHT || e.code === index$1.KeyboardCode.ARROW_LEFT) {
|
|
183
|
-
e.stopPropagation();
|
|
184
|
-
}
|
|
185
|
-
} }));
|
|
152
|
+
return (index$1.h("z-searchbar", { value: this.searchString, placeholder: this.searchPlaceholder, showSearchButton: true, searchButtonIconOnly: this.isMobile || this.isTablet, size: index.ControlSize.X_SMALL, variant: index.ButtonVariant.SECONDARY, preventSubmit: this.searchString.length < 3, onSearchTyping: (e) => (this.searchString = e.detail) }));
|
|
186
153
|
}
|
|
187
154
|
renderProductLogos() {
|
|
188
|
-
return (index.h(index.Fragment, null, this.enableZLogo && (index.h("
|
|
155
|
+
return (index$1.h(index$1.Fragment, null, this.enableZLogo && (index$1.h("span", { class: "z-logo" }, index$1.h("img", { alt: "Logo Zanichelli" }))), this.hostElement.querySelector("[slot='product-logo']") && (index$1.h("span", { class: "product-logo" }, index$1.h("slot", { name: "product-logo" })))));
|
|
189
156
|
}
|
|
190
157
|
renderMenuButton() {
|
|
191
158
|
return (this.menuLength > 0 &&
|
|
192
|
-
(this.enableOffcanvas || this._stuck || this.
|
|
193
|
-
if (ev.code === index$1.KeyboardCode.ENTER || ev.code === index$1.KeyboardCode.SPACE) {
|
|
194
|
-
this.closeMenuButton.focus();
|
|
195
|
-
}
|
|
196
|
-
} }, index.h("z-icon", { name: "burger-menu" }))));
|
|
159
|
+
(this.enableOffcanvas || this._stuck || this.isMobile) && (index$1.h("button", { ref: (el) => (this.burgerButton = el), "aria-label": "Apri menu", "aria-haspopup": "menu", "aria-expanded": `${this.drawerOpen}`, "aria-controls": "offcanvas-menu", class: "drawer-trigger", onClick: this.openDrawer }, index$1.h("z-icon", { name: "burger-menu" }))));
|
|
197
160
|
}
|
|
198
161
|
renderOffcanvas() {
|
|
199
|
-
return (index.h("z-offcanvas", { variant: index
|
|
162
|
+
return (index$1.h("z-offcanvas", { id: "offcanvas-menu", variant: index.OffCanvasVariant.OVERLAY, transitiondirection: index.TransitionDirection.RIGHT, open: this.drawerOpen, onCanvasOpenStatusChanged: (ev) => (this.drawerOpen = ev.detail) }, index$1.h("div", { slot: "canvasContent" }, index$1.h("button", { ref: (el) => (this.closeMenuButton = el), class: "drawer-close", "aria-label": "Chiudi menu", onClick: this.closeDrawer, "aria-hidden": `${!this.drawerOpen}`, disabled: !this.drawerOpen }, index$1.h("z-icon", { name: "close" })), index$1.h("div", { class: "drawer-content", "aria-hidden": `${!this.drawerOpen}` }, index$1.h("slot", { name: "menu", onSlotchange: this.collectMenuElements })))));
|
|
200
163
|
}
|
|
201
164
|
renderStuck() {
|
|
202
|
-
return (index.h("div", { class: "heading-stuck" }, index.h("div", { class: "heading-stuck-content" }, this.renderMenuButton(), index.h("div", { class: "heading-title" }, this.renderProductLogos(), index.h("slot", { name: "stucked-title" }, this.title)), this.enableSearch && this.renderSeachbar())));
|
|
165
|
+
return (index$1.h("div", { class: "heading-stuck" }, index$1.h("div", { class: "heading-stuck-content" }, this.renderMenuButton(), index$1.h("div", { class: "heading-title" }, this.renderProductLogos(), index$1.h("div", { class: "stucked-title" }, index$1.h("slot", { name: "stucked-title" }, this.title))), this.enableSearch && this.renderSeachbar())));
|
|
203
166
|
}
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
this.
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
input.focus();
|
|
229
|
-
this.currentIndex = -1;
|
|
230
|
-
}
|
|
231
|
-
if (this.currentIndex !== -1) {
|
|
232
|
-
menuItems[this.currentIndex].focus();
|
|
233
|
-
}
|
|
167
|
+
constructor(hostRef) {
|
|
168
|
+
index$1.registerInstance(this, hostRef);
|
|
169
|
+
this.sticking = index$1.createEvent(this, "sticking", 7);
|
|
170
|
+
this.menuElements = [];
|
|
171
|
+
this.stuckIntersecObserver = SUPPORT_INTERSECTION_OBSERVER
|
|
172
|
+
? new IntersectionObserver(([entry]) => {
|
|
173
|
+
this._stuck = !entry.isIntersecting;
|
|
174
|
+
}, { threshold: 0.5 })
|
|
175
|
+
: undefined;
|
|
176
|
+
this.stuck = false;
|
|
177
|
+
this.enableOffcanvas = false;
|
|
178
|
+
this.enableSearch = false;
|
|
179
|
+
this.searchPlaceholder = "Cerca";
|
|
180
|
+
this.searchString = "";
|
|
181
|
+
this.searchPageUrl = undefined;
|
|
182
|
+
this.enableZLogo = true;
|
|
183
|
+
this._stuck = false;
|
|
184
|
+
this.menuLength = undefined;
|
|
185
|
+
this.drawerOpen = false;
|
|
186
|
+
this.isMobile = true;
|
|
187
|
+
this.isTablet = false;
|
|
188
|
+
this.openDrawer = this.openDrawer.bind(this);
|
|
189
|
+
this.closeDrawer = this.closeDrawer.bind(this);
|
|
190
|
+
this.collectMenuElements = this.collectMenuElements.bind(this);
|
|
234
191
|
}
|
|
235
192
|
componentWillLoad() {
|
|
236
193
|
this.collectMenuElements();
|
|
237
|
-
|
|
194
|
+
// mobile and tablet media queries listeners
|
|
195
|
+
const mobileMediaQuery = window.matchMedia(`(max-width: ${breakpoints.Breakpoints.MOBILE}px)`);
|
|
196
|
+
this.isMobile = mobileMediaQuery.matches;
|
|
197
|
+
mobileMediaQuery.addEventListener("change", (e) => (this.isMobile = e.matches));
|
|
198
|
+
const tabletMediaQuery = window.matchMedia(`(min-width: ${breakpoints.Breakpoints.MOBILE + 1}px) and (max-width: ${breakpoints.Breakpoints.TABLET}px)`);
|
|
199
|
+
this.isTablet = tabletMediaQuery.matches;
|
|
200
|
+
tabletMediaQuery.addEventListener("change", (e) => (this.isTablet = e.matches));
|
|
238
201
|
}
|
|
239
202
|
componentDidLoad() {
|
|
240
|
-
this.
|
|
241
|
-
|
|
242
|
-
return;
|
|
243
|
-
}
|
|
244
|
-
const menuWidth = this.getWidthMenu();
|
|
245
|
-
const containerSidePadding = 50;
|
|
246
|
-
this.resizeObserver = new ResizeObserver((observer) => {
|
|
247
|
-
const containerWidth = observer[0].contentRect.width;
|
|
248
|
-
if (this.currentViewport === index$1.Device.MOBILE) {
|
|
249
|
-
return (this.enableOffcanvas = true);
|
|
250
|
-
}
|
|
251
|
-
if (menuWidth > containerWidth - containerSidePadding && !this.enableOffcanvas) {
|
|
252
|
-
this.enableOffcanvas = true;
|
|
253
|
-
}
|
|
254
|
-
else if (menuWidth <= containerWidth - containerSidePadding && this.enableOffcanvas) {
|
|
255
|
-
this.enableOffcanvas = false;
|
|
256
|
-
}
|
|
257
|
-
});
|
|
258
|
-
this.resizeObserver.observe(this.container);
|
|
203
|
+
this.onStuckChange();
|
|
204
|
+
this.setupMenuResizeObserver();
|
|
259
205
|
}
|
|
260
206
|
disconnectedCallback() {
|
|
261
207
|
var _a;
|
|
262
|
-
(_a = this.
|
|
208
|
+
(_a = this.menuResizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
263
209
|
}
|
|
264
210
|
render() {
|
|
265
|
-
const hasTopSubtitle = this.
|
|
266
|
-
return (index.h(index.Host, { key: '
|
|
267
|
-
this.currentViewport !== index$1.Device.MOBILE) && (index.h("div", { key: 'd520fb97f1fe09340b6265be94b09ff26dc0e9cf', class: `${this.enableOffcanvas ? "p-left" : ""}` }, index.h("slot", { key: 'a8f1d05fd7f71603f3b63c43317859ee8c5e37bf', name: "top-subtitle" }))), index.h("div", { key: 'ec1b3adc2e17d8713849166799c553122d1e7c80', class: "heading-title" }, this.renderMenuButton(), !hasTopSubtitle && !this._stuck && this.renderProductLogos(), index.h("slot", { key: '263a9099b08065da250a1d0c228caac435dc9dd7', name: "title" }), this.enableSearch && this.currentViewport !== index$1.Device.MOBILE && this.renderSeachbar()), this.enableSearch && this.currentViewport === index$1.Device.MOBILE && this.renderSeachbar()), this.canShowMenu && (index.h("div", { key: '2c952c6e1b1ec608f73f5c5210ab5b5331d379bf', class: "menu-container", onKeyUp: (e) => {
|
|
268
|
-
if (this.enableOffcanvas) {
|
|
269
|
-
return;
|
|
270
|
-
}
|
|
271
|
-
if (this.currentIndex === -1) {
|
|
272
|
-
this.focusToFirstItemMenu();
|
|
273
|
-
}
|
|
274
|
-
else {
|
|
275
|
-
this.handleFocusItem(e);
|
|
276
|
-
}
|
|
277
|
-
}, role: "hidden", tabIndex: 0 }, index.h("slot", { key: '0b71f1d0aa78599592213f61ee49e68daad5d04f', name: "menu", onSlotchange: this.collectMenuElements })))), this.renderOffcanvas(), this._stuck && this.renderStuck()));
|
|
211
|
+
const hasTopSubtitle = this.hasSlot("top-subtitle");
|
|
212
|
+
return (index$1.h(index$1.Host, { key: '7e11b4451932dc22ef2b1379bafceacadc4ce45a', "menu-length": this.menuLength }, index$1.h("div", { key: 'd5885b5ebfaf18aa55c83eabaee0d76f335c3f95', class: { "heading-panel": true, "has-menubar": this.menuLength > 0 && !this.enableOffcanvas }, ref: (el) => (this.container = el) }, index$1.h("div", { key: 'f98e05c6f10213c8d04e1b9217bea3119a678af5', class: "heading-container" }, ((!this.enableSearch && this.isMobile) || !this.isMobile) && (index$1.h("div", { key: '8331716775beda5ef8f90472d20d0a13e8842e87', class: "top-subtitle" }, index$1.h("slot", { key: '55080f2143085802d7e9f5e77330120409dbf650', name: "top-subtitle" }))), index$1.h("div", { key: 'bda64ee9d54163101cb53b9cdab40764ab6501b8', class: "heading-title" }, this.renderMenuButton(), !hasTopSubtitle && !this._stuck && this.renderProductLogos(), index$1.h("slot", { key: '45d66d5b36ed1bde12a27f8b79e7b11dc5f1c8f3', name: "title" }), this.enableSearch && !this.isMobile && this.renderSeachbar()), this.enableSearch && this.isMobile && this.renderSeachbar()), index$1.h("nav", { key: '45e17efbf3ad93ad9cd0b55f5515022e1fe26d3f', class: "menu-container", "aria-label": this.title || undefined }, this.canShowMenu && (index$1.h("div", { key: '0c8d73e0c9dc85c341dc1ca999ada16eb9188ada', role: "menubar", "aria-label": this.title || undefined }, index$1.h("slot", { key: 'b907682a3866680a84557192a163fa179a01374a', name: "menu", onSlotchange: this.collectMenuElements }))))), this.renderOffcanvas(), this._stuck && this.renderStuck()));
|
|
278
213
|
}
|
|
279
|
-
get hostElement() { return index.getElement(this); }
|
|
214
|
+
get hostElement() { return index$1.getElement(this); }
|
|
280
215
|
static get watchers() { return {
|
|
281
216
|
"_stuck": ["onStuck"],
|
|
282
217
|
"drawerOpen": ["setMenuFloatingMode"],
|
|
283
|
-
"stuck": ["
|
|
218
|
+
"stuck": ["onStuckChange"]
|
|
284
219
|
}; }
|
|
285
220
|
};
|
|
286
221
|
ZAppHeader.style = ZAppHeaderStyle0;
|
|
@@ -290,7 +225,7 @@ const ZButtonStyle0 = stylesCss$a;
|
|
|
290
225
|
|
|
291
226
|
const ZButton = class {
|
|
292
227
|
constructor(hostRef) {
|
|
293
|
-
index.registerInstance(this, hostRef);
|
|
228
|
+
index$1.registerInstance(this, hostRef);
|
|
294
229
|
this.ariaLabel = "";
|
|
295
230
|
this.role = "";
|
|
296
231
|
this.href = undefined;
|
|
@@ -298,10 +233,10 @@ const ZButton = class {
|
|
|
298
233
|
this.htmlid = undefined;
|
|
299
234
|
this.name = undefined;
|
|
300
235
|
this.disabled = false;
|
|
301
|
-
this.type = index
|
|
302
|
-
this.variant = index
|
|
236
|
+
this.type = index.ButtonType.BUTTON;
|
|
237
|
+
this.variant = index.ButtonVariant.PRIMARY;
|
|
303
238
|
this.icon = undefined;
|
|
304
|
-
this.size = index
|
|
239
|
+
this.size = index.ControlSize.BIG;
|
|
305
240
|
}
|
|
306
241
|
getAttributes() {
|
|
307
242
|
return {
|
|
@@ -314,11 +249,11 @@ const ZButton = class {
|
|
|
314
249
|
}
|
|
315
250
|
render() {
|
|
316
251
|
if (this.href) {
|
|
317
|
-
return (index.h("a", Object.assign({}, this.getAttributes(), { "aria-label": this.ariaLabel, href: this.href, target: this.target }), this.icon && index.h("z-icon", { name: this.icon }), index.h("slot", null)));
|
|
252
|
+
return (index$1.h("a", Object.assign({}, this.getAttributes(), { "aria-label": this.ariaLabel, href: this.href, target: this.target }), this.icon && index$1.h("z-icon", { name: this.icon }), index$1.h("slot", null)));
|
|
318
253
|
}
|
|
319
|
-
return (index.h("button", Object.assign({}, this.getAttributes(), { "aria-label": this.ariaLabel, name: this.name, type: this.type, role: this.role, disabled: this.disabled }), this.icon && index.h("z-icon", { name: this.icon }), index.h("slot", null)));
|
|
254
|
+
return (index$1.h("button", Object.assign({}, this.getAttributes(), { "aria-label": this.ariaLabel, name: this.name, type: this.type, role: this.role, disabled: this.disabled }), this.icon && index$1.h("z-icon", { name: this.icon }), index$1.h("slot", null)));
|
|
320
255
|
}
|
|
321
|
-
get hostElement() { return index.getElement(this); }
|
|
256
|
+
get hostElement() { return index$1.getElement(this); }
|
|
322
257
|
};
|
|
323
258
|
ZButton.style = ZButtonStyle0;
|
|
324
259
|
|
|
@@ -327,13 +262,13 @@ const ZDividerStyle0 = stylesCss$9;
|
|
|
327
262
|
|
|
328
263
|
const ZDivider = class {
|
|
329
264
|
constructor(hostRef) {
|
|
330
|
-
index.registerInstance(this, hostRef);
|
|
331
|
-
this.size = index
|
|
265
|
+
index$1.registerInstance(this, hostRef);
|
|
266
|
+
this.size = index.DividerSize.SMALL;
|
|
332
267
|
this.color = "gray200";
|
|
333
|
-
this.orientation = index
|
|
268
|
+
this.orientation = index.DividerOrientation.HORIZONTAL;
|
|
334
269
|
}
|
|
335
270
|
render() {
|
|
336
|
-
return (index.h(index.Host, { key: '
|
|
271
|
+
return (index$1.h(index$1.Host, { key: '4612250289778d2d13742de66a2d4d5fd1d35450', class: `divider-${this.size} divider-${this.orientation}`, style: { backgroundColor: `var(--${this.color})` } }));
|
|
337
272
|
}
|
|
338
273
|
};
|
|
339
274
|
ZDivider.style = ZDividerStyle0;
|
|
@@ -1232,7 +1167,7 @@ const ZIconStyle0 = stylesCss$8;
|
|
|
1232
1167
|
|
|
1233
1168
|
const ZIcon = class {
|
|
1234
1169
|
constructor(hostRef) {
|
|
1235
|
-
index.registerInstance(this, hostRef);
|
|
1170
|
+
index$1.registerInstance(this, hostRef);
|
|
1236
1171
|
this.name = undefined;
|
|
1237
1172
|
this.height = undefined;
|
|
1238
1173
|
this.width = undefined;
|
|
@@ -1241,12 +1176,12 @@ const ZIcon = class {
|
|
|
1241
1176
|
}
|
|
1242
1177
|
selectPathOrPolygon(iconValue) {
|
|
1243
1178
|
if (iconValue === null || iconValue === void 0 ? void 0 : iconValue.startsWith("M")) {
|
|
1244
|
-
return index.h("path", { d: ICONS[this.name] });
|
|
1179
|
+
return index$1.h("path", { d: ICONS[this.name] });
|
|
1245
1180
|
}
|
|
1246
|
-
return index.h("polygon", { points: ICONS[this.name] });
|
|
1181
|
+
return index$1.h("polygon", { points: ICONS[this.name] });
|
|
1247
1182
|
}
|
|
1248
1183
|
render() {
|
|
1249
|
-
return (index.h(index.Host, { key: '1a1e571015e571d47fe06be2014c56c63ae2243d', "aria-hidden": "true" }, index.h("svg", { key: 'e2cc3ec6fc9d8e2fe31dc1b6a6ec0ed17556b3e4', viewBox: "0 0 1000 1000", width: this.width, height: this.height, id: this.iconid, fill: this.fill ? `var(--${this.fill})` : "" }, this.selectPathOrPolygon(ICONS[this.name]))));
|
|
1184
|
+
return (index$1.h(index$1.Host, { key: '1a1e571015e571d47fe06be2014c56c63ae2243d', "aria-hidden": "true" }, index$1.h("svg", { key: 'e2cc3ec6fc9d8e2fe31dc1b6a6ec0ed17556b3e4', viewBox: "0 0 1000 1000", width: this.width, height: this.height, id: this.iconid, fill: this.fill ? `var(--${this.fill})` : "" }, this.selectPathOrPolygon(ICONS[this.name]))));
|
|
1250
1185
|
}
|
|
1251
1186
|
};
|
|
1252
1187
|
ZIcon.style = ZIconStyle0;
|
|
@@ -1256,13 +1191,13 @@ const ZInputStyle0 = stylesCss$7;
|
|
|
1256
1191
|
|
|
1257
1192
|
const ZInput = class {
|
|
1258
1193
|
constructor(hostRef) {
|
|
1259
|
-
index.registerInstance(this, hostRef);
|
|
1260
|
-
this.inputChange = index.createEvent(this, "inputChange", 7);
|
|
1261
|
-
this.startTyping = index.createEvent(this, "startTyping", 7);
|
|
1262
|
-
this.stopTyping = index.createEvent(this, "stopTyping", 7);
|
|
1263
|
-
this.inputCheck = index.createEvent(this, "inputCheck", 7);
|
|
1264
|
-
this.inputFocus = index.createEvent(this, "inputFocus", 7);
|
|
1265
|
-
this.inputBlur = index.createEvent(this, "inputBlur", 7);
|
|
1194
|
+
index$1.registerInstance(this, hostRef);
|
|
1195
|
+
this.inputChange = index$1.createEvent(this, "inputChange", 7);
|
|
1196
|
+
this.startTyping = index$1.createEvent(this, "startTyping", 7);
|
|
1197
|
+
this.stopTyping = index$1.createEvent(this, "stopTyping", 7);
|
|
1198
|
+
this.inputCheck = index$1.createEvent(this, "inputCheck", 7);
|
|
1199
|
+
this.inputFocus = index$1.createEvent(this, "inputFocus", 7);
|
|
1200
|
+
this.inputBlur = index$1.createEvent(this, "inputBlur", 7);
|
|
1266
1201
|
this.typingtimeout = 300;
|
|
1267
1202
|
this.htmlid = `id-${utils.randomId()}`;
|
|
1268
1203
|
this.type = undefined;
|
|
@@ -1282,7 +1217,7 @@ const ZInput = class {
|
|
|
1282
1217
|
this.htmltitle = undefined;
|
|
1283
1218
|
this.status = undefined;
|
|
1284
1219
|
this.message = true;
|
|
1285
|
-
this.labelPosition = index
|
|
1220
|
+
this.labelPosition = index.LabelPosition.RIGHT;
|
|
1286
1221
|
this.autocomplete = undefined;
|
|
1287
1222
|
this.role = "";
|
|
1288
1223
|
this.hasclearicon = true;
|
|
@@ -1293,15 +1228,15 @@ const ZInput = class {
|
|
|
1293
1228
|
this.maxlength = undefined;
|
|
1294
1229
|
this.step = undefined;
|
|
1295
1230
|
this.pattern = undefined;
|
|
1296
|
-
this.size = index
|
|
1231
|
+
this.size = index.ControlSize.BIG;
|
|
1297
1232
|
this.isTyping = false;
|
|
1298
1233
|
this.passwordHidden = true;
|
|
1299
1234
|
}
|
|
1300
1235
|
inputCheckListener(e) {
|
|
1301
1236
|
const data = e.detail;
|
|
1302
1237
|
switch (this.type) {
|
|
1303
|
-
case index
|
|
1304
|
-
if (data.type === index
|
|
1238
|
+
case index.InputType.RADIO:
|
|
1239
|
+
if (data.type === index.InputType.RADIO && data.name === this.name && data.id !== this.htmlid) {
|
|
1305
1240
|
this.checked = false;
|
|
1306
1241
|
}
|
|
1307
1242
|
break;
|
|
@@ -1310,8 +1245,8 @@ const ZInput = class {
|
|
|
1310
1245
|
/** get checked status */
|
|
1311
1246
|
async isChecked() {
|
|
1312
1247
|
switch (this.type) {
|
|
1313
|
-
case index
|
|
1314
|
-
case index
|
|
1248
|
+
case index.InputType.CHECKBOX:
|
|
1249
|
+
case index.InputType.RADIO:
|
|
1315
1250
|
return this.checked;
|
|
1316
1251
|
default:
|
|
1317
1252
|
console.warn("`isChecked` method is only available for type `checkbox` and `radio`");
|
|
@@ -1323,7 +1258,7 @@ const ZInput = class {
|
|
|
1323
1258
|
this.emitStartTyping();
|
|
1324
1259
|
}
|
|
1325
1260
|
let validity;
|
|
1326
|
-
if (this.type === index
|
|
1261
|
+
if (this.type === index.InputType.TEXTAREA) {
|
|
1327
1262
|
validity = this.getValidity("textarea");
|
|
1328
1263
|
}
|
|
1329
1264
|
else {
|
|
@@ -1389,7 +1324,7 @@ const ZInput = class {
|
|
|
1389
1324
|
};
|
|
1390
1325
|
}
|
|
1391
1326
|
getNumberAttributes(type) {
|
|
1392
|
-
if (type != index
|
|
1327
|
+
if (type != index.InputType.NUMBER) {
|
|
1393
1328
|
return;
|
|
1394
1329
|
}
|
|
1395
1330
|
return {
|
|
@@ -1399,12 +1334,12 @@ const ZInput = class {
|
|
|
1399
1334
|
};
|
|
1400
1335
|
}
|
|
1401
1336
|
getPatternAttribute(type) {
|
|
1402
|
-
if (type != index
|
|
1403
|
-
type != index
|
|
1404
|
-
type != index
|
|
1405
|
-
type != index
|
|
1406
|
-
type != index
|
|
1407
|
-
type != index
|
|
1337
|
+
if (type != index.InputType.PASSWORD &&
|
|
1338
|
+
type != index.InputType.TEXT &&
|
|
1339
|
+
type != index.InputType.TEL &&
|
|
1340
|
+
type != index.InputType.SEARCH &&
|
|
1341
|
+
type != index.InputType.URL &&
|
|
1342
|
+
type != index.InputType.EMAIL) {
|
|
1408
1343
|
return;
|
|
1409
1344
|
}
|
|
1410
1345
|
return {
|
|
@@ -1427,60 +1362,60 @@ const ZInput = class {
|
|
|
1427
1362
|
onBlur: () => this.emitInputBlur(),
|
|
1428
1363
|
};
|
|
1429
1364
|
}
|
|
1430
|
-
renderInputText(type = index
|
|
1365
|
+
renderInputText(type = index.InputType.TEXT) {
|
|
1431
1366
|
const ariaLabel = this.ariaLabel ? { "aria-label": this.ariaLabel } : {};
|
|
1432
1367
|
const attr = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, this.getTextAttributes()), this.getNumberAttributes(type)), this.getPatternAttribute(type)), ariaLabel), this.getRoleAttribute()), this.getAriaAttrubutes()), this.getFocusBlurAttributes());
|
|
1433
|
-
if (this.icon || type === index
|
|
1368
|
+
if (this.icon || type === index.InputType.PASSWORD) {
|
|
1434
1369
|
Object.assign(attr.class, { "has-icon": true });
|
|
1435
1370
|
}
|
|
1436
|
-
if (this.hasclearicon && type != index
|
|
1371
|
+
if (this.hasclearicon && type != index.InputType.NUMBER) {
|
|
1437
1372
|
Object.assign(attr.class, { "has-clear-icon": true });
|
|
1438
1373
|
}
|
|
1439
|
-
return (index.h("div", { class: "text-wrapper" }, this.renderLabel(), index.h("div", null, index.h("input", Object.assign({ type: type === index
|
|
1374
|
+
return (index$1.h("div", { class: "text-wrapper" }, this.renderLabel(), index$1.h("div", null, index$1.h("input", Object.assign({ type: type === index.InputType.PASSWORD && !this.passwordHidden ? index.InputType.TEXT : type }, attr, { ref: (el) => (this.inputRef = el) })), this.renderIcons()), this.renderMessage()));
|
|
1440
1375
|
}
|
|
1441
1376
|
renderLabel() {
|
|
1442
1377
|
if (!this.label) {
|
|
1443
1378
|
return;
|
|
1444
1379
|
}
|
|
1445
|
-
return (index.h("label", { class: "input-label body-5-sb", id: `${this.htmlid}_label`, htmlFor: this.htmlid }, this.label));
|
|
1380
|
+
return (index$1.h("label", { class: "input-label body-5-sb", id: `${this.htmlid}_label`, htmlFor: this.htmlid }, this.label));
|
|
1446
1381
|
}
|
|
1447
1382
|
renderIcons() {
|
|
1448
|
-
return (index.h("span", { class: "icons-wrapper" }, this.renderResetIcon(), this.renderIcon()));
|
|
1383
|
+
return (index$1.h("span", { class: "icons-wrapper" }, this.renderResetIcon(), this.renderIcon()));
|
|
1449
1384
|
}
|
|
1450
1385
|
renderIcon() {
|
|
1451
|
-
if (this.type === index
|
|
1386
|
+
if (this.type === index.InputType.PASSWORD) {
|
|
1452
1387
|
return this.renderShowHidePassword();
|
|
1453
1388
|
}
|
|
1454
1389
|
if (!this.icon) {
|
|
1455
1390
|
return;
|
|
1456
1391
|
}
|
|
1457
|
-
return (index.h("button", { type: "button", class: "icon-button input-icon", tabIndex: -1, "aria-hidden": "true" }, index.h("z-icon", { name: this.icon, class: this.size })));
|
|
1392
|
+
return (index$1.h("button", { type: "button", class: "icon-button input-icon", tabIndex: -1, "aria-hidden": "true" }, index$1.h("z-icon", { name: this.icon, class: this.size })));
|
|
1458
1393
|
}
|
|
1459
1394
|
renderResetIcon() {
|
|
1460
1395
|
let hidden = false;
|
|
1461
|
-
if (!this.hasclearicon || !this.value || this.disabled || this.readonly || this.type == index
|
|
1396
|
+
if (!this.hasclearicon || !this.value || this.disabled || this.readonly || this.type == index.InputType.NUMBER) {
|
|
1462
1397
|
hidden = true;
|
|
1463
1398
|
}
|
|
1464
|
-
return (index.h("button", { type: "button", class: `icon-button reset-icon ${hidden ? "hidden" : ""}`, "aria-label": "cancella il contenuto dell'input", onClick: () => {
|
|
1399
|
+
return (index$1.h("button", { type: "button", class: `icon-button reset-icon ${hidden ? "hidden" : ""}`, "aria-label": "cancella il contenuto dell'input", onClick: () => {
|
|
1465
1400
|
this.inputRef.value = "";
|
|
1466
1401
|
this.emitInputChange("");
|
|
1467
|
-
} }, index.h("z-icon", { name: "multiply", class: this.size })));
|
|
1402
|
+
} }, index$1.h("z-icon", { name: "multiply", class: this.size })));
|
|
1468
1403
|
}
|
|
1469
1404
|
renderShowHidePassword() {
|
|
1470
|
-
return (index.h("button", { type: "button", class: "icon-button toggle-password-icon", disabled: this.disabled, "aria-label": this.passwordHidden ? "mostra password" : "nascondi password", onClick: () => (this.passwordHidden = !this.passwordHidden) }, index.h("z-icon", { name: this.passwordHidden ? "view-filled" : "view-off-filled", class: this.size })));
|
|
1405
|
+
return (index$1.h("button", { type: "button", class: "icon-button toggle-password-icon", disabled: this.disabled, "aria-label": this.passwordHidden ? "mostra password" : "nascondi password", onClick: () => (this.passwordHidden = !this.passwordHidden) }, index$1.h("z-icon", { name: this.passwordHidden ? "view-filled" : "view-off-filled", class: this.size })));
|
|
1471
1406
|
}
|
|
1472
1407
|
renderMessage() {
|
|
1473
1408
|
if (utils.boolean(this.message) === false) {
|
|
1474
1409
|
return;
|
|
1475
1410
|
}
|
|
1476
|
-
return (index.h("z-input-message", { message: utils.boolean(this.message) === true ? undefined : this.message, status: this.status, class: this.size }));
|
|
1411
|
+
return (index$1.h("z-input-message", { message: utils.boolean(this.message) === true ? undefined : this.message, status: this.status, class: this.size }));
|
|
1477
1412
|
}
|
|
1478
1413
|
/* END text/password/email/number */
|
|
1479
1414
|
/* START textarea */
|
|
1480
1415
|
renderTextarea() {
|
|
1481
1416
|
const attributes = this.getTextAttributes();
|
|
1482
1417
|
const ariaLabel = this.ariaLabel ? { "aria-label": this.ariaLabel } : {};
|
|
1483
|
-
return (index.h("div", { class: "text-wrapper" }, this.renderLabel(), index.h("div", { class: Object.assign(Object.assign({}, attributes.class), { "textarea-wrapper": true, "readonly": attributes.readonly }) }, index.h("textarea", Object.assign({}, attributes, ariaLabel, this.getRoleAttribute()))), this.renderMessage()));
|
|
1418
|
+
return (index$1.h("div", { class: "text-wrapper" }, this.renderLabel(), index$1.h("div", { class: Object.assign(Object.assign({}, attributes.class), { "textarea-wrapper": true, "readonly": attributes.readonly }) }, index$1.h("textarea", Object.assign({}, attributes, ariaLabel, this.getRoleAttribute()))), this.renderMessage()));
|
|
1484
1419
|
}
|
|
1485
1420
|
/* END textarea */
|
|
1486
1421
|
handleCheck(ev) {
|
|
@@ -1489,40 +1424,40 @@ const ZInput = class {
|
|
|
1489
1424
|
}
|
|
1490
1425
|
/* START checkbox */
|
|
1491
1426
|
renderCheckbox() {
|
|
1492
|
-
return (index.h("div", { class: "checkbox-wrapper" }, index.h("input", Object.assign({ id: this.htmlid, type: "checkbox", name: this.name, checked: this.checked, disabled: this.disabled, readonly: this.readonly, required: this.required, onChange: this.handleCheck.bind(this), value: this.value }, this.getRoleAttribute(), this.getFocusBlurAttributes())), index.h("label", { htmlFor: this.htmlid, class: {
|
|
1427
|
+
return (index$1.h("div", { class: "checkbox-wrapper" }, index$1.h("input", Object.assign({ id: this.htmlid, type: "checkbox", name: this.name, checked: this.checked, disabled: this.disabled, readonly: this.readonly, required: this.required, onChange: this.handleCheck.bind(this), value: this.value }, this.getRoleAttribute(), this.getFocusBlurAttributes())), index$1.h("label", { htmlFor: this.htmlid, class: {
|
|
1493
1428
|
"checkbox-label": true,
|
|
1494
|
-
"after": this.labelPosition === index
|
|
1495
|
-
"before": this.labelPosition === index
|
|
1496
|
-
} }, index.h("z-icon", { name: this.checked ? "checkbox-checked" : "checkbox", "aria-hidden": "true", class: this.size }), this.label && index.h("span", { innerHTML: this.label }))));
|
|
1429
|
+
"after": this.labelPosition === index.LabelPosition.RIGHT,
|
|
1430
|
+
"before": this.labelPosition === index.LabelPosition.LEFT,
|
|
1431
|
+
} }, index$1.h("z-icon", { name: this.checked ? "checkbox-checked" : "checkbox", "aria-hidden": "true", class: this.size }), this.label && index$1.h("span", { innerHTML: this.label }))));
|
|
1497
1432
|
}
|
|
1498
1433
|
/* END checkbox */
|
|
1499
1434
|
/* START radio */
|
|
1500
1435
|
renderRadio() {
|
|
1501
|
-
return (index.h("div", { class: "radio-wrapper" }, index.h("input", Object.assign({ id: this.htmlid, type: "radio", name: this.name, checked: this.checked, disabled: this.disabled, readonly: this.readonly, onChange: this.handleCheck.bind(this), value: this.value }, this.getRoleAttribute(), this.getFocusBlurAttributes())), index.h("label", { htmlFor: this.htmlid, class: {
|
|
1436
|
+
return (index$1.h("div", { class: "radio-wrapper" }, index$1.h("input", Object.assign({ id: this.htmlid, type: "radio", name: this.name, checked: this.checked, disabled: this.disabled, readonly: this.readonly, onChange: this.handleCheck.bind(this), value: this.value }, this.getRoleAttribute(), this.getFocusBlurAttributes())), index$1.h("label", { htmlFor: this.htmlid, class: {
|
|
1502
1437
|
"radio-label": true,
|
|
1503
|
-
"after": this.labelPosition === index
|
|
1504
|
-
"before": this.labelPosition === index
|
|
1505
|
-
} }, index.h("z-icon", { name: this.checked ? "radio-button-checked" : "radio-button", "aria-hidden": "true", class: this.size }), this.label && index.h("span", { innerHTML: this.label }))));
|
|
1438
|
+
"after": this.labelPosition === index.LabelPosition.RIGHT,
|
|
1439
|
+
"before": this.labelPosition === index.LabelPosition.LEFT,
|
|
1440
|
+
} }, index$1.h("z-icon", { name: this.checked ? "radio-button-checked" : "radio-button", "aria-hidden": "true", class: this.size }), this.label && index$1.h("span", { innerHTML: this.label }))));
|
|
1506
1441
|
}
|
|
1507
1442
|
/* END radio */
|
|
1508
1443
|
render() {
|
|
1509
1444
|
let input;
|
|
1510
1445
|
switch (this.type) {
|
|
1511
|
-
case index
|
|
1446
|
+
case index.InputType.TEXTAREA:
|
|
1512
1447
|
input = this.renderTextarea();
|
|
1513
1448
|
break;
|
|
1514
|
-
case index
|
|
1449
|
+
case index.InputType.CHECKBOX:
|
|
1515
1450
|
input = this.renderCheckbox();
|
|
1516
1451
|
break;
|
|
1517
|
-
case index
|
|
1452
|
+
case index.InputType.RADIO:
|
|
1518
1453
|
input = this.renderRadio();
|
|
1519
1454
|
break;
|
|
1520
1455
|
default:
|
|
1521
1456
|
input = this.renderInputText(this.type);
|
|
1522
1457
|
}
|
|
1523
|
-
return index.h(index.Host, { key: '
|
|
1458
|
+
return index$1.h(index$1.Host, { key: '2d4c53596f0adbb763e2b8fbc0088d564173f0dd' }, input);
|
|
1524
1459
|
}
|
|
1525
|
-
get hostElement() { return index.getElement(this); }
|
|
1460
|
+
get hostElement() { return index$1.getElement(this); }
|
|
1526
1461
|
};
|
|
1527
1462
|
ZInput.style = ZInputStyle0;
|
|
1528
1463
|
|
|
@@ -1531,7 +1466,7 @@ const ZInputMessageStyle0 = stylesCss$6;
|
|
|
1531
1466
|
|
|
1532
1467
|
const ZInputMessage = class {
|
|
1533
1468
|
constructor(hostRef) {
|
|
1534
|
-
index.registerInstance(this, hostRef);
|
|
1469
|
+
index$1.registerInstance(this, hostRef);
|
|
1535
1470
|
this.statusIcons = {
|
|
1536
1471
|
success: "checkmark-circle",
|
|
1537
1472
|
error: "multiply-circled",
|
|
@@ -1548,7 +1483,7 @@ const ZInputMessage = class {
|
|
|
1548
1483
|
this.onMessageChange();
|
|
1549
1484
|
}
|
|
1550
1485
|
render() {
|
|
1551
|
-
return (index.h(index.Host, Object.assign({ key: '
|
|
1486
|
+
return (index$1.h(index$1.Host, Object.assign({ key: '618b83c814f36e4ee9b06f6e7873c8278ddb39e7' }, this.statusRole, { "aria-label": this.message }), this.statusIcons[this.status] && this.message && index$1.h("z-icon", { key: '9c1b3b21d7fc6f0097cc5dc6011c518007f58513', name: this.statusIcons[this.status] }), index$1.h("span", { key: 'f37f42e47227afd0a86fcf0040ea094b48567bd4', innerHTML: this.message })));
|
|
1552
1487
|
}
|
|
1553
1488
|
static get watchers() { return {
|
|
1554
1489
|
"message": ["onMessageChange"],
|
|
@@ -1562,9 +1497,9 @@ const ZListStyle0 = stylesCss$5;
|
|
|
1562
1497
|
|
|
1563
1498
|
const ZList = class {
|
|
1564
1499
|
constructor(hostRef) {
|
|
1565
|
-
index.registerInstance(this, hostRef);
|
|
1566
|
-
this.size = index
|
|
1567
|
-
this.listType = index
|
|
1500
|
+
index$1.registerInstance(this, hostRef);
|
|
1501
|
+
this.size = index.ListSize.MEDIUM;
|
|
1502
|
+
this.listType = index.ListType.NONE;
|
|
1568
1503
|
this.role = "list";
|
|
1569
1504
|
}
|
|
1570
1505
|
setChildrenSizeType() {
|
|
@@ -1579,9 +1514,9 @@ const ZList = class {
|
|
|
1579
1514
|
this.setChildrenSizeType();
|
|
1580
1515
|
}
|
|
1581
1516
|
render() {
|
|
1582
|
-
return (index.h(index.Host, { key: '633a5d569f1cf8bb85c40da691e254fb9f78f6bd' }, index.h("slot", { key: 'bd1315c66e0dca81cfe6607f4a82245b94c84e6b' })));
|
|
1517
|
+
return (index$1.h(index$1.Host, { key: '633a5d569f1cf8bb85c40da691e254fb9f78f6bd' }, index$1.h("slot", { key: 'bd1315c66e0dca81cfe6607f4a82245b94c84e6b' })));
|
|
1583
1518
|
}
|
|
1584
|
-
get host() { return index.getElement(this); }
|
|
1519
|
+
get host() { return index$1.getElement(this); }
|
|
1585
1520
|
};
|
|
1586
1521
|
ZList.style = ZListStyle0;
|
|
1587
1522
|
|
|
@@ -1599,10 +1534,10 @@ const ZListElement = class {
|
|
|
1599
1534
|
* Constructor.
|
|
1600
1535
|
*/
|
|
1601
1536
|
constructor(hostRef) {
|
|
1602
|
-
index.registerInstance(this, hostRef);
|
|
1603
|
-
this.accessibleFocus = index.createEvent(this, "accessibleFocus", 7);
|
|
1604
|
-
this.ariaDescendantFocus = index.createEvent(this, "ariaDescendantFocus", 7);
|
|
1605
|
-
this.clickItem = index.createEvent(this, "clickItem", 7);
|
|
1537
|
+
index$1.registerInstance(this, hostRef);
|
|
1538
|
+
this.accessibleFocus = index$1.createEvent(this, "accessibleFocus", 7);
|
|
1539
|
+
this.ariaDescendantFocus = index$1.createEvent(this, "ariaDescendantFocus", 7);
|
|
1540
|
+
this.clickItem = index$1.createEvent(this, "clickItem", 7);
|
|
1606
1541
|
this.openElementConfig = {
|
|
1607
1542
|
accordion: {
|
|
1608
1543
|
open: "minus-circled",
|
|
@@ -1613,19 +1548,19 @@ const ZListElement = class {
|
|
|
1613
1548
|
close: "chevron-down",
|
|
1614
1549
|
},
|
|
1615
1550
|
};
|
|
1616
|
-
this.alignButton = index
|
|
1551
|
+
this.alignButton = index.ExpandableListButtonAlign.LEFT;
|
|
1617
1552
|
this.clickable = false;
|
|
1618
1553
|
this.dividerColor = "color-surface03";
|
|
1619
|
-
this.dividerType = index
|
|
1620
|
-
this.dividerSize = index
|
|
1554
|
+
this.dividerType = index.ListDividerType.NONE;
|
|
1555
|
+
this.dividerSize = index.DividerSize.SMALL;
|
|
1621
1556
|
this.expandable = false;
|
|
1622
|
-
this.expandableStyle = index
|
|
1557
|
+
this.expandableStyle = index.ExpandableListStyle.ACCORDION;
|
|
1623
1558
|
this.listElementId = undefined;
|
|
1624
|
-
this.size = index
|
|
1559
|
+
this.size = index.ListSize.MEDIUM;
|
|
1625
1560
|
this.color = "none";
|
|
1626
1561
|
this.disabled = false;
|
|
1627
1562
|
this.listElementPosition = "0";
|
|
1628
|
-
this.listType = index
|
|
1563
|
+
this.listType = index.ListType.NONE;
|
|
1629
1564
|
this.role = "listitem";
|
|
1630
1565
|
this.htmlTabindex = 0;
|
|
1631
1566
|
this.showInnerContent = false;
|
|
@@ -1644,17 +1579,17 @@ const ZListElement = class {
|
|
|
1644
1579
|
this.showInnerContent = !this.showInnerContent;
|
|
1645
1580
|
}
|
|
1646
1581
|
handleKeyDown(event) {
|
|
1647
|
-
const expandByKey = event.code === index
|
|
1582
|
+
const expandByKey = event.code === index.KeyboardCode.ENTER;
|
|
1648
1583
|
switch (event.code) {
|
|
1649
|
-
case index
|
|
1584
|
+
case index.KeyboardCode.ARROW_DOWN:
|
|
1650
1585
|
event.preventDefault();
|
|
1651
1586
|
this.accessibleFocus.emit(this.listElementId + 1);
|
|
1652
1587
|
break;
|
|
1653
|
-
case index
|
|
1588
|
+
case index.KeyboardCode.ARROW_UP:
|
|
1654
1589
|
event.preventDefault();
|
|
1655
1590
|
this.accessibleFocus.emit(this.listElementId - 1);
|
|
1656
1591
|
break;
|
|
1657
|
-
case index
|
|
1592
|
+
case index.KeyboardCode.ENTER:
|
|
1658
1593
|
event.preventDefault();
|
|
1659
1594
|
this.clickItem.emit(this.listElementId);
|
|
1660
1595
|
break;
|
|
@@ -1672,7 +1607,7 @@ const ZListElement = class {
|
|
|
1672
1607
|
if (!this.expandable) {
|
|
1673
1608
|
return null;
|
|
1674
1609
|
}
|
|
1675
|
-
return (index.h("z-icon", { name: this.showInnerContent
|
|
1610
|
+
return (index$1.h("z-icon", { name: this.showInnerContent
|
|
1676
1611
|
? this.openElementConfig[this.expandableStyle].open
|
|
1677
1612
|
: this.openElementConfig[this.expandableStyle].close }));
|
|
1678
1613
|
}
|
|
@@ -1684,30 +1619,30 @@ const ZListElement = class {
|
|
|
1684
1619
|
if (!this.expandable) {
|
|
1685
1620
|
return null;
|
|
1686
1621
|
}
|
|
1687
|
-
return (index.h("div", { class: {
|
|
1622
|
+
return (index$1.h("div", { class: {
|
|
1688
1623
|
"z-list-element-inner-container": true,
|
|
1689
1624
|
"expanded": this.showInnerContent,
|
|
1690
|
-
} }, index.h("slot", { name: "inner-content" })));
|
|
1625
|
+
} }, index$1.h("slot", { name: "inner-content" })));
|
|
1691
1626
|
}
|
|
1692
1627
|
/**
|
|
1693
1628
|
* Renders content of the z-list-element
|
|
1694
1629
|
* @returns list content
|
|
1695
1630
|
*/
|
|
1696
1631
|
renderContent() {
|
|
1697
|
-
if (this.listType === index
|
|
1698
|
-
return index.h("slot", null);
|
|
1632
|
+
if (this.listType === index.ListType.NONE) {
|
|
1633
|
+
return index$1.h("slot", null);
|
|
1699
1634
|
}
|
|
1700
|
-
if (this.listType === index
|
|
1701
|
-
return (index.h("div", { class: "z-list-content-container" }, index.h("div", null, this.listElementPosition, ".\u2003"), index.h("slot", null)));
|
|
1635
|
+
if (this.listType === index.ListType.ORDERED) {
|
|
1636
|
+
return (index$1.h("div", { class: "z-list-content-container" }, index$1.h("div", null, this.listElementPosition, ".\u2003"), index$1.h("slot", null)));
|
|
1702
1637
|
}
|
|
1703
|
-
if (this.listType === index
|
|
1704
|
-
return (index.h("div", { class: "z-list-content-container" }, index.h("span", null, "\u2022\u2003"), index.h("slot", null)));
|
|
1638
|
+
if (this.listType === index.ListType.UNORDERED) {
|
|
1639
|
+
return (index$1.h("div", { class: "z-list-content-container" }, index$1.h("span", null, "\u2022\u2003"), index$1.h("slot", null)));
|
|
1705
1640
|
}
|
|
1706
1641
|
}
|
|
1707
1642
|
render() {
|
|
1708
|
-
return (index.h(index.Host, { key: '8b3fcd0834960a5549178f3f26d48b8236f27449', "aria-expanded": this.expandable ? this.showInnerContent : null, onClick: this.handleClick, onFocus: () => this.ariaDescendantFocus.emit(this.listElementId), onKeyDown: this.handleKeyDown, clickable: this.clickable && !this.disabled, tabIndex: this.htmlTabindex }, index.h("div", { key: '6cd5ef8d54e9bb0780737cbd300a3809464c9901', class: "container", style: { color: `var(--${this.color})` }, tabindex: "-1", id: `z-list-element-id-${this.listElementId}`, part: "list-item-container" }, index.h("div", { key: '4ba2505a4483ec70134f6b39ce18351b679db379', class: "z-list-element-container" }, this.renderExpandableButton(), this.renderContent()), this.renderExpandedContent()), this.dividerType === index
|
|
1643
|
+
return (index$1.h(index$1.Host, { key: '8b3fcd0834960a5549178f3f26d48b8236f27449', "aria-expanded": this.expandable ? this.showInnerContent : null, onClick: this.handleClick, onFocus: () => this.ariaDescendantFocus.emit(this.listElementId), onKeyDown: this.handleKeyDown, clickable: this.clickable && !this.disabled, tabIndex: this.htmlTabindex }, index$1.h("div", { key: '6cd5ef8d54e9bb0780737cbd300a3809464c9901', class: "container", style: { color: `var(--${this.color})` }, tabindex: "-1", id: `z-list-element-id-${this.listElementId}`, part: "list-item-container" }, index$1.h("div", { key: '4ba2505a4483ec70134f6b39ce18351b679db379', class: "z-list-element-container" }, this.renderExpandableButton(), this.renderContent()), this.renderExpandedContent()), this.dividerType === index.ListDividerType.ELEMENT && (index$1.h("z-divider", { key: 'ac96ea3379df56b2a3b67164d52a0633764aab23', color: this.dividerColor, size: this.dividerSize }))));
|
|
1709
1644
|
}
|
|
1710
|
-
get host() { return index.getElement(this); }
|
|
1645
|
+
get host() { return index$1.getElement(this); }
|
|
1711
1646
|
};
|
|
1712
1647
|
ZListElement.style = ZListElementStyle0;
|
|
1713
1648
|
|
|
@@ -1716,12 +1651,12 @@ const ZListGroupStyle0 = stylesCss$3;
|
|
|
1716
1651
|
|
|
1717
1652
|
const ZListGroup = class {
|
|
1718
1653
|
constructor(hostRef) {
|
|
1719
|
-
index.registerInstance(this, hostRef);
|
|
1720
|
-
this.size = index
|
|
1721
|
-
this.dividerType = index
|
|
1722
|
-
this.dividerSize = index
|
|
1654
|
+
index$1.registerInstance(this, hostRef);
|
|
1655
|
+
this.size = index.ListSize.MEDIUM;
|
|
1656
|
+
this.dividerType = index.ListDividerType.NONE;
|
|
1657
|
+
this.dividerSize = index.DividerSize.SMALL;
|
|
1723
1658
|
this.dividerColor = "gray200";
|
|
1724
|
-
this.listType = index
|
|
1659
|
+
this.listType = index.ListType.NONE;
|
|
1725
1660
|
}
|
|
1726
1661
|
componentDidLoad() {
|
|
1727
1662
|
const children = this.host.children;
|
|
@@ -1740,12 +1675,12 @@ const ZListGroup = class {
|
|
|
1740
1675
|
this.hasHeader = !!this.host.querySelector('[slot="header-title"]');
|
|
1741
1676
|
}
|
|
1742
1677
|
render() {
|
|
1743
|
-
return (index.h(index.Host, { key: 'a2bd11f2847f5bc4e955b1db58e73f8caa65ad63', role: "group" }, index.h("div", { key: '073b18d2d7fe3c04dea626217dbf0c964853bbc1', class: {
|
|
1678
|
+
return (index$1.h(index$1.Host, { key: 'a2bd11f2847f5bc4e955b1db58e73f8caa65ad63', role: "group" }, index$1.h("div", { key: '073b18d2d7fe3c04dea626217dbf0c964853bbc1', class: {
|
|
1744
1679
|
"z-list-group-header-container": true,
|
|
1745
1680
|
"has-header": this.hasHeader,
|
|
1746
|
-
} }, index.h("slot", { key: '4683cdfdd16d2dba19b4580ff7819edbe42953cd', name: "header-title" }), this.dividerType === index
|
|
1681
|
+
} }, index$1.h("slot", { key: '4683cdfdd16d2dba19b4580ff7819edbe42953cd', name: "header-title" }), this.dividerType === index.ListDividerType.HEADER && (index$1.h("z-divider", { key: '3fa3dd94bcdde1f2bd4f7d17ed48cec4916719f4', color: this.dividerColor, size: this.dividerSize }))), index$1.h("slot", { key: 'ce8e83727c6a050df7df95e4c2321619f5d5da33' })));
|
|
1747
1682
|
}
|
|
1748
|
-
get host() { return index.getElement(this); }
|
|
1683
|
+
get host() { return index$1.getElement(this); }
|
|
1749
1684
|
};
|
|
1750
1685
|
ZListGroup.style = ZListGroupStyle0;
|
|
1751
1686
|
|
|
@@ -1754,11 +1689,11 @@ const ZOffcanvasStyle0 = stylesCss$2;
|
|
|
1754
1689
|
|
|
1755
1690
|
const ZOffcanvas = class {
|
|
1756
1691
|
constructor(hostRef) {
|
|
1757
|
-
index.registerInstance(this, hostRef);
|
|
1758
|
-
this.canvasOpenStatusChanged = index.createEvent(this, "canvasOpenStatusChanged", 7);
|
|
1759
|
-
this.variant = index
|
|
1692
|
+
index$1.registerInstance(this, hostRef);
|
|
1693
|
+
this.canvasOpenStatusChanged = index$1.createEvent(this, "canvasOpenStatusChanged", 7);
|
|
1694
|
+
this.variant = index.OffCanvasVariant.PUSHCONTENT;
|
|
1760
1695
|
this.open = false;
|
|
1761
|
-
this.transitiondirection = index
|
|
1696
|
+
this.transitiondirection = index.TransitionDirection.LEFT;
|
|
1762
1697
|
this.skipLoadAnimation = false;
|
|
1763
1698
|
}
|
|
1764
1699
|
onOpenChanged() {
|
|
@@ -1769,14 +1704,14 @@ const ZOffcanvas = class {
|
|
|
1769
1704
|
this.canvasOpenStatusChanged.emit(this.open);
|
|
1770
1705
|
}
|
|
1771
1706
|
handlePageOverflow() {
|
|
1772
|
-
const overflow = this.variant === index
|
|
1707
|
+
const overflow = this.variant === index.OffCanvasVariant.OVERLAY ? "overflow-y" : "overflow-x";
|
|
1773
1708
|
document.body.style[overflow] = this.open ? "hidden" : "";
|
|
1774
1709
|
}
|
|
1775
1710
|
disconnectedCallback() {
|
|
1776
1711
|
this.open = false;
|
|
1777
1712
|
}
|
|
1778
1713
|
render() {
|
|
1779
|
-
return (index.h(index.Host, { key: '
|
|
1714
|
+
return (index$1.h(index$1.Host, { key: 'fcab905788db2b161b57069dcaea66f31b191a8c', class: { "skip-animation": this.skipLoadAnimation } }, index$1.h("div", { key: '235b3fde2fd77aadd45b580ddb6eb59d16f534a8', role: "presentation", class: "canvas-container", onTransitionEnd: () => this.handlePageOverflow() }, index$1.h("div", { key: '3bf75a309014335ef17029ff0612a1bf3007f88a', role: "presentation", class: "canvas-content" }, index$1.h("slot", { key: '332d04d2254dc91e4ef757c2e4c4d4af5a7080fd', name: "canvasContent" }))), this.variant == index.OffCanvasVariant.OVERLAY && (index$1.h("div", { key: 'd2bed4922a7a1512b046b037137c7dcba9daf7b6', class: "canvas-background", "data-action": "canvasBackground", onClick: () => (this.open = false) }))));
|
|
1780
1715
|
}
|
|
1781
1716
|
static get watchers() { return {
|
|
1782
1717
|
"open": ["onOpenChanged"]
|
|
@@ -1789,10 +1724,10 @@ const ZSearchbarStyle0 = stylesCss$1;
|
|
|
1789
1724
|
|
|
1790
1725
|
const ZSearchbar = class {
|
|
1791
1726
|
constructor(hostRef) {
|
|
1792
|
-
index.registerInstance(this, hostRef);
|
|
1793
|
-
this.searchSubmit = index.createEvent(this, "searchSubmit", 7);
|
|
1794
|
-
this.searchTyping = index.createEvent(this, "searchTyping", 7);
|
|
1795
|
-
this.searchItemClick = index.createEvent(this, "searchItemClick", 7);
|
|
1727
|
+
index$1.registerInstance(this, hostRef);
|
|
1728
|
+
this.searchSubmit = index$1.createEvent(this, "searchSubmit", 7);
|
|
1729
|
+
this.searchTyping = index$1.createEvent(this, "searchTyping", 7);
|
|
1730
|
+
this.searchItemClick = index$1.createEvent(this, "searchItemClick", 7);
|
|
1796
1731
|
this.resultsItemsList = null;
|
|
1797
1732
|
this.items = [];
|
|
1798
1733
|
this.htmlid = `searchbar-${utils.randomId()}`;
|
|
@@ -1807,8 +1742,8 @@ const ZSearchbar = class {
|
|
|
1807
1742
|
this.sortResultsItems = false;
|
|
1808
1743
|
this.showSearchButton = false;
|
|
1809
1744
|
this.searchButtonIconOnly = false;
|
|
1810
|
-
this.size = index
|
|
1811
|
-
this.variant = index
|
|
1745
|
+
this.size = index.ControlSize.BIG;
|
|
1746
|
+
this.variant = index.ButtonVariant.PRIMARY;
|
|
1812
1747
|
this.searchString = this.value;
|
|
1813
1748
|
this.currResultsCount = 0;
|
|
1814
1749
|
this.showResults = false;
|
|
@@ -1845,14 +1780,15 @@ const ZSearchbar = class {
|
|
|
1845
1780
|
}
|
|
1846
1781
|
}
|
|
1847
1782
|
disconnectedCallback() {
|
|
1848
|
-
|
|
1783
|
+
var _a;
|
|
1784
|
+
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
1849
1785
|
}
|
|
1850
1786
|
componentDidLoad() {
|
|
1851
1787
|
this.resizeObserver = new ResizeObserver(() => {
|
|
1852
|
-
if (utils.getDevice() === index
|
|
1788
|
+
if (utils.getDevice() === index.Device.MOBILE && !this.isMobile) {
|
|
1853
1789
|
this.isMobile = true;
|
|
1854
1790
|
}
|
|
1855
|
-
if (utils.getDevice() !== index
|
|
1791
|
+
if (utils.getDevice() !== index.Device.MOBILE && this.isMobile) {
|
|
1856
1792
|
this.isMobile = false;
|
|
1857
1793
|
}
|
|
1858
1794
|
});
|
|
@@ -1927,12 +1863,12 @@ const ZSearchbar = class {
|
|
|
1927
1863
|
this.showResults = false;
|
|
1928
1864
|
}
|
|
1929
1865
|
renderInput() {
|
|
1930
|
-
return (index.h("z-input", { ref: (val) => {
|
|
1866
|
+
return (index$1.h("z-input", { ref: (val) => {
|
|
1931
1867
|
this.inputRef = val;
|
|
1932
1868
|
}, message: false, placeholder: this.placeholder, onStopTyping: (e) => this.handleStopTyping(e), onKeyUp: (e) => {
|
|
1933
1869
|
utils.handleEnterKeydSubmit(e, () => this.handleSubmit());
|
|
1934
1870
|
this.handleArrowsNavigation(e);
|
|
1935
|
-
}, value: this.value, ariaLabel: this.placeholder, size: this.size
|
|
1871
|
+
}, value: this.value, ariaLabel: this.placeholder, size: this.size }));
|
|
1936
1872
|
}
|
|
1937
1873
|
renderButton() {
|
|
1938
1874
|
if (!this.showSearchButton) {
|
|
@@ -1941,7 +1877,7 @@ const ZSearchbar = class {
|
|
|
1941
1877
|
const iconProp = this.searchButtonIconOnly ? { icon: "search" } : null;
|
|
1942
1878
|
const buttonLabel = this.searchButtonIconOnly ? "" : "CERCA";
|
|
1943
1879
|
const defaultProps = Object.assign({ disabled: this.preventSubmit, variant: this.variant, size: this.size, onClick: () => this.handleSubmit() }, iconProp);
|
|
1944
|
-
return index.h("z-button", Object.assign({}, defaultProps), buttonLabel);
|
|
1880
|
+
return index$1.h("z-button", Object.assign({}, defaultProps), buttonLabel);
|
|
1945
1881
|
}
|
|
1946
1882
|
renderResults() {
|
|
1947
1883
|
if (!this.showResults ||
|
|
@@ -1951,14 +1887,14 @@ const ZSearchbar = class {
|
|
|
1951
1887
|
!this.resultsItemsList) {
|
|
1952
1888
|
return null;
|
|
1953
1889
|
}
|
|
1954
|
-
return (index.h("div", { class: "results-wrapper" }, index.h("div", { class: "results" }, this.renderResultsList())));
|
|
1890
|
+
return (index$1.h("div", { class: "results-wrapper" }, index$1.h("div", { class: "results" }, this.renderResultsList())));
|
|
1955
1891
|
}
|
|
1956
1892
|
renderResultsList() {
|
|
1957
1893
|
var _a, _b;
|
|
1958
1894
|
if (this.preventSubmit && !((_a = this.resultsItemsList) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
1959
|
-
return (index.h("span", { class: "item item-no-results" }, "Non abbiamo trovato risultati per ", index.h("b", null, this.searchString), index.h("br", null), index.h("br", null), "Cosa puoi fare?", index.h("ul", null, index.h("li", null, "Verificare di aver scritto bene"), index.h("li", null, "Provare a cercare un'altra parola"), index.h("li", null, "Provare a cercare qualcosa di pi\u00F9 generico"))));
|
|
1895
|
+
return (index$1.h("span", { class: "item item-no-results" }, "Non abbiamo trovato risultati per ", index$1.h("b", null, this.searchString), index$1.h("br", null), index$1.h("br", null), "Cosa puoi fare?", index$1.h("ul", null, index$1.h("li", null, "Verificare di aver scritto bene"), index$1.h("li", null, "Provare a cercare un'altra parola"), index$1.h("li", null, "Provare a cercare qualcosa di pi\u00F9 generico"))));
|
|
1960
1896
|
}
|
|
1961
|
-
return (index.h("z-list", { role: "listbox", id: `list-${this.htmlid}` }, this.renderSearchHelper(!!((_b = this.resultsItemsList) === null || _b === void 0 ? void 0 : _b.length)), this.renderItems(), this.renderShowAllResults()));
|
|
1897
|
+
return (index$1.h("z-list", { role: "listbox", id: `list-${this.htmlid}` }, this.renderSearchHelper(!!((_b = this.resultsItemsList) === null || _b === void 0 ? void 0 : _b.length)), this.renderItems(), this.renderShowAllResults()));
|
|
1962
1898
|
}
|
|
1963
1899
|
renderItems() {
|
|
1964
1900
|
var _a;
|
|
@@ -1979,7 +1915,7 @@ const ZSearchbar = class {
|
|
|
1979
1915
|
counter++;
|
|
1980
1916
|
});
|
|
1981
1917
|
if (listGroupsElements.length) {
|
|
1982
|
-
listGroups.push(index.h("z-list-group", { "divider-type": index
|
|
1918
|
+
listGroups.push(index$1.h("z-list-group", { "divider-type": index.ListDividerType.ELEMENT }, this.renderItemCategory(groupItem), listGroupsElements));
|
|
1983
1919
|
}
|
|
1984
1920
|
}
|
|
1985
1921
|
});
|
|
@@ -1987,7 +1923,7 @@ const ZSearchbar = class {
|
|
|
1987
1923
|
}
|
|
1988
1924
|
handleArrowsNavigation(e) {
|
|
1989
1925
|
const currentElement = e.target;
|
|
1990
|
-
const arrows = [index
|
|
1926
|
+
const arrows = [index.KeyboardCode.ARROW_DOWN, index.KeyboardCode.ARROW_UP];
|
|
1991
1927
|
if (!arrows.includes(e.key)) {
|
|
1992
1928
|
e.preventDefault();
|
|
1993
1929
|
return;
|
|
@@ -2001,7 +1937,7 @@ const ZSearchbar = class {
|
|
|
2001
1937
|
}
|
|
2002
1938
|
this.items.forEach((item) => item.classList.contains("focused") && item.classList.remove("focused"));
|
|
2003
1939
|
const currentIndex = this.items.indexOf(currentElement);
|
|
2004
|
-
if (e.key === index
|
|
1940
|
+
if (e.key === index.KeyboardCode.ARROW_DOWN) {
|
|
2005
1941
|
e.preventDefault();
|
|
2006
1942
|
const nextIndex = currentIndex + 1;
|
|
2007
1943
|
if (nextIndex < this.items.length) {
|
|
@@ -2009,7 +1945,7 @@ const ZSearchbar = class {
|
|
|
2009
1945
|
this.items[nextIndex].classList.add("focused");
|
|
2010
1946
|
}
|
|
2011
1947
|
}
|
|
2012
|
-
if (e.key === index
|
|
1948
|
+
if (e.key === index.KeyboardCode.ARROW_UP) {
|
|
2013
1949
|
e.preventDefault();
|
|
2014
1950
|
const prevIndex = currentIndex - 1;
|
|
2015
1951
|
if (prevIndex < 0) {
|
|
@@ -2025,13 +1961,13 @@ const ZSearchbar = class {
|
|
|
2025
1961
|
}
|
|
2026
1962
|
}
|
|
2027
1963
|
renderItem(item, key, divider) {
|
|
2028
|
-
return (index.h("z-list-element", { id: `list-item-${this.htmlid}-${key}`, tabIndex: 0, role: "option", dividerType: divider ? index
|
|
1964
|
+
return (index$1.h("z-list-element", { id: `list-item-${this.htmlid}-${key}`, tabIndex: 0, role: "option", dividerType: divider ? index.ListDividerType.ELEMENT : undefined, onKeyDown: (e) => this.handleArrowsNavigation(e) }, index$1.h("div", { class: "list-element", tabIndex: 0, onClick: () => this.emitSearchItemClick(item), onKeyDown: (e) => utils.handleEnterKeydSubmit(e, () => this.emitSearchItemClick(item)), onMouseEnter: (e) => {
|
|
2029
1965
|
const currentElement = e.target;
|
|
2030
1966
|
currentElement.classList.add("hovered");
|
|
2031
1967
|
}, onMouseLeave: (e) => {
|
|
2032
1968
|
const currentElement = e.target;
|
|
2033
1969
|
currentElement.classList.contains("hovered") && currentElement.classList.remove("hovered");
|
|
2034
|
-
} }, index.h("span", { class: "item ellipsis" }, (item === null || item === void 0 ? void 0 : item.icon) && (index.h("z-icon", { class: "item-icon", name: item.icon })), index.h("span", { class: "item-label", title: item.label, innerHTML: this.renderItemLabel(item.label) })), (item === null || item === void 0 ? void 0 : item.tag) && index.h("z-tag", { icon: item.tag.icon }, !this.isMobile ? item.tag.text : "")), item.children && item.children.length > 0 ? (index.h("z-list", null, index.h("div", { class: "children-node" }, item.children.map((child, index) => this.renderItem(child, index, false))))) : null));
|
|
1970
|
+
} }, index$1.h("span", { class: "item ellipsis" }, (item === null || item === void 0 ? void 0 : item.icon) && (index$1.h("z-icon", { class: "item-icon", name: item.icon })), index$1.h("span", { class: "item-label", title: item.label, innerHTML: this.renderItemLabel(item.label) })), (item === null || item === void 0 ? void 0 : item.tag) && index$1.h("z-tag", { icon: item.tag.icon }, !this.isMobile ? item.tag.text : "")), item.children && item.children.length > 0 ? (index$1.h("z-list", null, index$1.h("div", { class: "children-node" }, item.children.map((child, index) => this.renderItem(child, index, false))))) : null));
|
|
2035
1971
|
}
|
|
2036
1972
|
renderItemLabel(label) {
|
|
2037
1973
|
if (!this.searchString) {
|
|
@@ -2043,13 +1979,13 @@ const ZSearchbar = class {
|
|
|
2043
1979
|
if (!(groupItem === null || groupItem === void 0 ? void 0 : groupItem.category)) {
|
|
2044
1980
|
return null;
|
|
2045
1981
|
}
|
|
2046
|
-
return (index.h("span", { class: "category-heading", slot: "header-title" }, index.h("span", { class: "category" }, groupItem.category), (groupItem === null || groupItem === void 0 ? void 0 : groupItem.subcategory) && index.h("span", { class: "subcategory" }, groupItem.subcategory)));
|
|
1982
|
+
return (index$1.h("span", { class: "category-heading", slot: "header-title" }, index$1.h("span", { class: "category" }, groupItem.category), (groupItem === null || groupItem === void 0 ? void 0 : groupItem.subcategory) && index$1.h("span", { class: "subcategory" }, groupItem.subcategory)));
|
|
2047
1983
|
}
|
|
2048
1984
|
renderSearchHelper(hasDivider = true) {
|
|
2049
1985
|
if (!this.autocomplete || this.preventSubmit || !this.searchString) {
|
|
2050
1986
|
return null;
|
|
2051
1987
|
}
|
|
2052
|
-
return (index.h("z-list-element", { role: "option", dividerType: hasDivider ? index
|
|
1988
|
+
return (index$1.h("z-list-element", { role: "option", dividerType: hasDivider ? index.ListDividerType.ELEMENT : undefined, id: `list-item-${this.htmlid}-search`, onKeyDown: (e) => this.handleArrowsNavigation(e) }, index$1.h("div", { tabindex: 0, onClick: () => this.emitSearchSubmit(), onKeyDown: (e) => utils.handleEnterKeydSubmit(e, () => this.emitSearchSubmit()), class: "list-element" }, index$1.h("span", { class: "item item-search" }, index$1.h("z-icon", { class: "search-icon", name: "left-magnifying-glass" }), index$1.h("span", { class: "item-label", innerHTML: this.searchHelperLabel.replace("{searchString}", `<mark>${this.searchString}</mark>`) })))));
|
|
2053
1989
|
}
|
|
2054
1990
|
renderShowAllResults() {
|
|
2055
1991
|
var _a, _b;
|
|
@@ -2059,12 +1995,12 @@ const ZSearchbar = class {
|
|
|
2059
1995
|
this.currResultsCount >= ((_b = this.resultsItemsList) === null || _b === void 0 ? void 0 : _b.length)) {
|
|
2060
1996
|
return null;
|
|
2061
1997
|
}
|
|
2062
|
-
return (index.h("z-list-element", { role: "option", tabindex: 0, clickable: true, id: `list-item-${this.htmlid}-show-all`, onClickItem: () => (this.currResultsCount = 0), color: "color-primary01" }, index.h("div", { class: "item-show-all" }, "Vedi tutti i risultati")));
|
|
1998
|
+
return (index$1.h("z-list-element", { role: "option", tabindex: 0, clickable: true, id: `list-item-${this.htmlid}-show-all`, onClickItem: () => (this.currResultsCount = 0), color: "color-primary01" }, index$1.h("div", { class: "item-show-all" }, "Vedi tutti i risultati")));
|
|
2063
1999
|
}
|
|
2064
2000
|
render() {
|
|
2065
|
-
return (index.h(index.Host, { key: '
|
|
2001
|
+
return (index$1.h(index$1.Host, { key: 'aa20154a2cde6b9302f800c467a5b1fdd7052647', onFocus: () => (this.showResults = true), onClick: (e) => this.handleOutsideClick(e), class: { "has-submit": this.showSearchButton, "has-results": this.autocomplete } }, index$1.h("div", { key: '0b15d76f9252ba940393fa38c05f8dc35ec04cb6', class: "input-container" }, this.renderInput(), this.renderResults()), this.renderButton()));
|
|
2066
2002
|
}
|
|
2067
|
-
get element() { return index.getElement(this); }
|
|
2003
|
+
get element() { return index$1.getElement(this); }
|
|
2068
2004
|
static get watchers() { return {
|
|
2069
2005
|
"resultsItems": ["watchItems"],
|
|
2070
2006
|
"resultsCount": ["watchResultsCount"],
|
|
@@ -2080,14 +2016,14 @@ const ZTagStyle0 = stylesCss;
|
|
|
2080
2016
|
|
|
2081
2017
|
const ZTag = class {
|
|
2082
2018
|
constructor(hostRef) {
|
|
2083
|
-
index.registerInstance(this, hostRef);
|
|
2019
|
+
index$1.registerInstance(this, hostRef);
|
|
2084
2020
|
this.icon = undefined;
|
|
2085
2021
|
this.expandable = undefined;
|
|
2086
2022
|
}
|
|
2087
2023
|
render() {
|
|
2088
|
-
return (index.h(index.Host, { key: 'dab9210f7c3cfc75d0c009f4bc8a1841bdbc371b', class: {
|
|
2024
|
+
return (index$1.h(index$1.Host, { key: 'dab9210f7c3cfc75d0c009f4bc8a1841bdbc371b', class: {
|
|
2089
2025
|
expandable: this.expandable && !!this.icon,
|
|
2090
|
-
} }, this.icon && index.h("z-icon", { key: 'e7dc02062a4c525977b3734540dd1c2f4b5375a3', name: this.icon }), index.h("div", { key: '9b72b749cddf039f2c92345e9b02061c322c3e58' }, index.h("slot", { key: 'df6fe3eaea544ad012168bce4049d0d7fa239944' }))));
|
|
2026
|
+
} }, this.icon && index$1.h("z-icon", { key: 'e7dc02062a4c525977b3734540dd1c2f4b5375a3', name: this.icon }), index$1.h("div", { key: '9b72b749cddf039f2c92345e9b02061c322c3e58' }, index$1.h("slot", { key: 'df6fe3eaea544ad012168bce4049d0d7fa239944' }))));
|
|
2091
2027
|
}
|
|
2092
2028
|
};
|
|
2093
2029
|
ZTag.style = ZTagStyle0;
|