@zanichelli/albe-web-components 19.3.0-RC6 → 19.3.0
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 +31 -0
- package/dist/cjs/_commonjsHelpers-CFO10eej.js +3 -0
- package/dist/cjs/_commonjsHelpers-CFO10eej.js.map +1 -0
- package/dist/cjs/breakpoints-B7vFm-3T.js +3 -0
- package/dist/cjs/breakpoints-B7vFm-3T.js.map +1 -0
- package/dist/cjs/iconset-Cz-UsfoU.js +3 -0
- package/dist/cjs/iconset-Cz-UsfoU.js.map +1 -0
- package/dist/cjs/{index-wGaSHN1_.js → index-Cn7FFDHr.js} +8 -0
- package/dist/cjs/index-Cn7FFDHr.js.map +1 -0
- package/dist/cjs/{index-DnscebL4.js → index-DY2I5wAY.js} +51 -7
- package/dist/cjs/index-DY2I5wAY.js.map +1 -0
- package/dist/cjs/index.cjs.js +9 -2
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +5 -2
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/reactive-controller-CxJYkamG.js +1446 -0
- package/dist/cjs/reactive-controller-CxJYkamG.js.map +1 -0
- package/dist/cjs/{utils-C5_wGVkJ.js → utils-By4U4KkV.js} +4 -1
- package/dist/cjs/utils-By4U4KkV.js.map +1 -0
- package/dist/cjs/utils-kQZHfpti.js +919 -0
- package/dist/cjs/utils-kQZHfpti.js.map +1 -0
- package/dist/cjs/web-components-library.cjs.js +5 -2
- package/dist/cjs/web-components-library.cjs.js.map +1 -0
- package/dist/cjs/z-accordion.cjs.entry.js +5 -2
- package/dist/cjs/z-accordion.cjs.entry.js.map +1 -0
- package/dist/cjs/z-alert.cjs.entry.js +5 -2
- package/dist/cjs/z-alert.cjs.entry.js.map +1 -0
- package/dist/cjs/z-anchor-navigation.cjs.entry.js +5 -2
- package/dist/cjs/z-anchor-navigation.cjs.entry.js.map +1 -0
- package/dist/cjs/z-app-header-deprecated.cjs.entry.js +5 -2
- package/dist/cjs/z-app-header-deprecated.cjs.entry.js.map +1 -0
- package/dist/cjs/z-app-header_12.cjs.entry.js +45 -109
- package/dist/cjs/z-app-header_12.cjs.entry.js.map +1 -0
- package/dist/cjs/z-aria-alert.cjs.entry.js +5 -2
- package/dist/cjs/z-aria-alert.cjs.entry.js.map +1 -0
- package/dist/cjs/z-avatar.cjs.entry.js +5 -2
- package/dist/cjs/z-avatar.cjs.entry.js.map +1 -0
- package/dist/cjs/z-book-card-app.cjs.entry.js +5 -2
- package/dist/cjs/z-book-card-app.cjs.entry.js.map +1 -0
- package/dist/cjs/z-book-card-deprecated.cjs.entry.js +6 -3
- package/dist/cjs/z-book-card-deprecated.cjs.entry.js.map +1 -0
- package/dist/cjs/z-book-card.cjs.entry.js +5 -2
- package/dist/cjs/z-book-card.cjs.entry.js.map +1 -0
- package/dist/cjs/z-book-cover.cjs.entry.js +4 -1
- package/dist/cjs/z-book-cover.cjs.entry.js.map +1 -0
- package/dist/cjs/z-breadcrumb.cjs.entry.js +6 -3
- package/dist/cjs/z-breadcrumb.cjs.entry.js.map +1 -0
- package/dist/cjs/z-button-sort.cjs.entry.js +4 -1
- package/dist/cjs/z-button-sort.cjs.entry.js.map +1 -0
- package/dist/cjs/z-card.cjs.entry.js +5 -2
- package/dist/cjs/z-card.cjs.entry.js.map +1 -0
- package/dist/cjs/z-carousel.cjs.entry.js +5 -2
- package/dist/cjs/z-carousel.cjs.entry.js.map +1 -0
- package/dist/cjs/z-chip.cjs.entry.js +5 -2
- package/dist/cjs/z-chip.cjs.entry.js.map +1 -0
- package/dist/cjs/z-color-picker.cjs.entry.js +6 -3
- package/dist/cjs/z-color-picker.cjs.entry.js.map +1 -0
- package/dist/cjs/z-combobox.cjs.entry.js +6 -3
- package/dist/cjs/z-combobox.cjs.entry.js.map +1 -0
- package/dist/cjs/z-cover-hero.cjs.entry.js +5 -2
- package/dist/cjs/z-cover-hero.cjs.entry.js.map +1 -0
- package/dist/cjs/z-date-picker.cjs.entry.js +6 -3
- package/dist/cjs/z-date-picker.cjs.entry.js.map +1 -0
- package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +22 -38
- package/dist/cjs/z-dragdrop-area_2.cjs.entry.js.map +1 -0
- package/dist/cjs/z-file-upload.cjs.entry.js +5 -2
- package/dist/cjs/z-file-upload.cjs.entry.js.map +1 -0
- package/dist/cjs/z-file.cjs.entry.js +5 -2
- package/dist/cjs/z-file.cjs.entry.js.map +1 -0
- package/dist/cjs/z-ghost-loading.cjs.entry.js +4 -1
- package/dist/cjs/z-ghost-loading.cjs.entry.js.map +1 -0
- package/dist/cjs/z-info-box.cjs.entry.js +4 -1
- package/dist/cjs/z-info-box.cjs.entry.js.map +1 -0
- package/dist/cjs/z-info-reveal.cjs.entry.js +5 -2
- package/dist/cjs/z-info-reveal.cjs.entry.js.map +1 -0
- package/dist/cjs/z-input-range.cjs.entry.js +145 -0
- package/dist/cjs/z-input-range.cjs.entry.js.map +1 -0
- package/dist/cjs/z-logo.cjs.entry.js +5 -2
- package/dist/cjs/z-logo.cjs.entry.js.map +1 -0
- package/dist/cjs/z-menu-deprecated.cjs.entry.js +4 -1
- package/dist/cjs/z-menu-deprecated.cjs.entry.js.map +1 -0
- package/dist/cjs/z-menu-section-deprecated.cjs.entry.js +4 -1
- package/dist/cjs/z-menu-section-deprecated.cjs.entry.js.map +1 -0
- package/dist/cjs/z-menu-section.cjs.entry.js +6 -3
- package/dist/cjs/z-menu-section.cjs.entry.js.map +1 -0
- package/dist/cjs/z-menu.cjs.entry.js +6 -3
- package/dist/cjs/z-menu.cjs.entry.js.map +1 -0
- package/dist/cjs/z-myz-card-alert.cjs.entry.js +6 -3
- package/dist/cjs/z-myz-card-alert.cjs.entry.js.map +1 -0
- package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +6 -3
- package/dist/cjs/z-myz-card-dictionary.cjs.entry.js.map +1 -0
- package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +5 -2
- package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js.map +1 -0
- package/dist/cjs/z-myz-card-footer.cjs.entry.js +6 -3
- package/dist/cjs/z-myz-card-footer.cjs.entry.js.map +1 -0
- package/dist/cjs/z-myz-card-icon.cjs.entry.js +5 -2
- package/dist/cjs/z-myz-card-icon.cjs.entry.js.map +1 -0
- package/dist/cjs/z-myz-card-info.cjs.entry.js +7 -4
- package/dist/cjs/z-myz-card-info.cjs.entry.js.map +1 -0
- package/dist/cjs/z-myz-card-list.cjs.entry.js +5 -2
- package/dist/cjs/z-myz-card-list.cjs.entry.js.map +1 -0
- package/dist/cjs/z-myz-card_4.cjs.entry.js +9 -6
- package/dist/cjs/z-myz-card_4.cjs.entry.js.map +1 -0
- package/dist/cjs/z-myz-list-item.cjs.entry.js +7 -4
- package/dist/cjs/z-myz-list-item.cjs.entry.js.map +1 -0
- package/dist/cjs/z-myz-list.cjs.entry.js +5 -2
- package/dist/cjs/z-myz-list.cjs.entry.js.map +1 -0
- package/dist/cjs/z-navigation-tabs.cjs.entry.js +7 -4
- package/dist/cjs/z-navigation-tabs.cjs.entry.js.map +1 -0
- package/dist/cjs/z-notification.cjs.entry.js +5 -2
- package/dist/cjs/z-notification.cjs.entry.js.map +1 -0
- package/dist/cjs/z-otp.cjs.entry.js +7 -4
- package/dist/cjs/z-otp.cjs.entry.js.map +1 -0
- package/dist/cjs/z-pagination.cjs.entry.js +5 -2
- package/dist/cjs/z-pagination.cjs.entry.js.map +1 -0
- package/dist/cjs/z-panel-elem.cjs.entry.js +6 -3
- package/dist/cjs/z-panel-elem.cjs.entry.js.map +1 -0
- package/dist/cjs/z-popover.cjs.entry.js +7 -4
- package/dist/cjs/z-popover.cjs.entry.js.map +1 -0
- package/dist/cjs/z-range-picker.cjs.entry.js +6 -3
- package/dist/cjs/z-range-picker.cjs.entry.js.map +1 -0
- package/dist/cjs/z-result-card.cjs.entry.js +4 -1
- package/dist/cjs/z-result-card.cjs.entry.js.map +1 -0
- package/dist/cjs/z-section-title.cjs.entry.js +5 -2
- package/dist/cjs/z-section-title.cjs.entry.js.map +1 -0
- package/dist/cjs/z-select.cjs.entry.js +11 -8
- package/dist/cjs/z-select.cjs.entry.js.map +1 -0
- package/dist/cjs/z-skip-to-content.cjs.entry.js +7 -4
- package/dist/cjs/z-skip-to-content.cjs.entry.js.map +1 -0
- package/dist/cjs/z-slideshow.cjs.entry.js +6 -3
- package/dist/cjs/z-slideshow.cjs.entry.js.map +1 -0
- package/dist/cjs/z-stepper-item.cjs.entry.js +5 -2
- package/dist/cjs/z-stepper-item.cjs.entry.js.map +1 -0
- package/dist/cjs/z-stepper.cjs.entry.js +5 -2
- package/dist/cjs/z-stepper.cjs.entry.js.map +1 -0
- package/dist/cjs/z-table.cjs.entry.js +9 -8
- package/dist/cjs/z-table.cjs.entry.js.map +1 -0
- package/dist/cjs/z-tbody.cjs.entry.js +7 -6
- package/dist/cjs/z-tbody.cjs.entry.js.map +1 -0
- package/dist/cjs/z-td.cjs.entry.js +8 -7
- package/dist/cjs/z-td.cjs.entry.js.map +1 -0
- package/dist/cjs/z-tfoot.cjs.entry.js +7 -6
- package/dist/cjs/z-tfoot.cjs.entry.js.map +1 -0
- package/dist/cjs/z-th.cjs.entry.js +9 -8
- package/dist/cjs/z-th.cjs.entry.js.map +1 -0
- package/dist/cjs/z-thead.cjs.entry.js +7 -6
- package/dist/cjs/z-thead.cjs.entry.js.map +1 -0
- package/dist/cjs/z-toast-notification-list.cjs.entry.js +6 -3
- package/dist/cjs/z-toast-notification-list.cjs.entry.js.map +1 -0
- package/dist/cjs/z-toast-notification.cjs.entry.js +8 -5
- package/dist/cjs/z-toast-notification.cjs.entry.js.map +1 -0
- package/dist/cjs/z-toggle-button.cjs.entry.js +6 -3
- package/dist/cjs/z-toggle-button.cjs.entry.js.map +1 -0
- package/dist/cjs/z-toggle-switch.cjs.entry.js +9 -6
- package/dist/cjs/z-toggle-switch.cjs.entry.js.map +1 -0
- package/dist/cjs/z-tool.cjs.entry.js +8 -5
- package/dist/cjs/z-tool.cjs.entry.js.map +1 -0
- package/dist/cjs/z-toolbar.cjs.entry.js +6 -3
- package/dist/cjs/z-toolbar.cjs.entry.js.map +1 -0
- package/dist/cjs/z-tooltip.cjs.entry.js +6 -3
- package/dist/cjs/z-tooltip.cjs.entry.js.map +1 -0
- package/dist/cjs/z-tr.cjs.entry.js +9 -8
- package/dist/cjs/z-tr.cjs.entry.js.map +1 -0
- package/dist/cjs/z-tree-list.cjs.entry.js +5 -2
- package/dist/cjs/z-tree-list.cjs.entry.js.map +1 -0
- package/dist/cjs/z-visually-hidden.cjs.entry.js +5 -2
- package/dist/cjs/z-visually-hidden.cjs.entry.js.map +1 -0
- package/dist/collection/beans/index.js +6 -0
- package/dist/collection/beans/index.js.map +1 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/book-card/z-book-card/index.js +1 -0
- package/dist/collection/components/book-card/z-book-card/index.js.map +1 -0
- package/dist/collection/components/book-card/z-book-card-app/index.js +1 -0
- package/dist/collection/components/book-card/z-book-card-app/index.js.map +1 -0
- package/dist/collection/components/date-picker/utils.js +1 -0
- package/dist/collection/components/date-picker/utils.js.map +1 -0
- package/dist/collection/components/date-picker/z-date-picker/index.js +1 -0
- package/dist/collection/components/date-picker/z-date-picker/index.js.map +1 -0
- package/dist/collection/components/date-picker/z-range-picker/index.js +1 -0
- package/dist/collection/components/date-picker/z-range-picker/index.js.map +1 -0
- package/dist/collection/components/deprecated/z-app-header-deprecated/index.js +1 -0
- package/dist/collection/components/deprecated/z-app-header-deprecated/index.js.map +1 -0
- package/dist/collection/components/deprecated/z-book-card-deprecated/index.js +1 -0
- package/dist/collection/components/deprecated/z-book-card-deprecated/index.js.map +1 -0
- package/dist/collection/components/deprecated/z-menu-deprecated/index.js +1 -0
- package/dist/collection/components/deprecated/z-menu-deprecated/index.js.map +1 -0
- package/dist/collection/components/deprecated/z-menu-section-deprecated/index.js +1 -0
- package/dist/collection/components/deprecated/z-menu-section-deprecated/index.js.map +1 -0
- package/dist/collection/components/deprecated/z-section-title/index.js +1 -0
- package/dist/collection/components/deprecated/z-section-title/index.js.map +1 -0
- package/dist/collection/components/file-upload/z-dragdrop-area/index.js +1 -0
- package/dist/collection/components/file-upload/z-dragdrop-area/index.js.map +1 -0
- package/dist/collection/components/file-upload/z-file/index.js +1 -0
- package/dist/collection/components/file-upload/z-file/index.js.map +1 -0
- package/dist/collection/components/file-upload/z-file-upload/index.js +1 -0
- package/dist/collection/components/file-upload/z-file-upload/index.js.map +1 -0
- package/dist/collection/components/index.js +1 -0
- package/dist/collection/components/index.js.map +1 -0
- package/dist/collection/components/list/z-list/index.js +1 -0
- package/dist/collection/components/list/z-list/index.js.map +1 -0
- package/dist/collection/components/list/z-list-element/index.js +1 -0
- package/dist/collection/components/list/z-list-element/index.js.map +1 -0
- package/dist/collection/components/list/z-list-group/index.js +1 -0
- package/dist/collection/components/list/z-list-group/index.js.map +1 -0
- package/dist/collection/components/list/z-tree-list/index.js +1 -0
- package/dist/collection/components/list/z-tree-list/index.js.map +1 -0
- package/dist/collection/components/table/cells/z-table-cells.css +1 -0
- package/dist/collection/components/table/cells/z-td/index.js +4 -3
- package/dist/collection/components/table/cells/z-td/index.js.map +1 -0
- package/dist/collection/components/table/cells/z-th/index.js +4 -3
- package/dist/collection/components/table/cells/z-th/index.js.map +1 -0
- package/dist/collection/components/table/cells/z-th/styles.css +2 -2
- package/dist/collection/components/table/z-table/index.js +4 -3
- package/dist/collection/components/table/z-table/index.js.map +1 -0
- package/dist/collection/components/table/z-table/styles.css +6 -0
- package/dist/collection/components/table/z-tbody/index.js +4 -3
- package/dist/collection/components/table/z-tbody/index.js.map +1 -0
- package/dist/collection/components/table/z-tfoot/index.js +4 -3
- package/dist/collection/components/table/z-tfoot/index.js.map +1 -0
- package/dist/collection/components/table/z-tfoot/styles.css +2 -1
- package/dist/collection/components/table/z-thead/index.js +4 -3
- package/dist/collection/components/table/z-thead/index.js.map +1 -0
- package/dist/collection/components/table/z-thead/styles.css +4 -0
- package/dist/collection/components/table/z-tr/index.js +4 -3
- package/dist/collection/components/table/z-tr/index.js.map +1 -0
- package/dist/collection/components/table/z-tr/styles.css +9 -3
- package/dist/collection/components/z-accordion/index.js +1 -0
- package/dist/collection/components/z-accordion/index.js.map +1 -0
- package/dist/collection/components/z-anchor-navigation/index.js +1 -0
- package/dist/collection/components/z-anchor-navigation/index.js.map +1 -0
- package/dist/collection/components/z-app-header/index.js +1 -0
- package/dist/collection/components/z-app-header/index.js.map +1 -0
- package/dist/collection/components/z-aria-alert/index.js +1 -0
- package/dist/collection/components/z-aria-alert/index.js.map +1 -0
- package/dist/collection/components/z-avatar/index.js +1 -0
- package/dist/collection/components/z-avatar/index.js.map +1 -0
- package/dist/collection/components/z-book-cover/index.js +1 -0
- package/dist/collection/components/z-book-cover/index.js.map +1 -0
- package/dist/collection/components/z-breadcrumb/index.js +1 -0
- package/dist/collection/components/z-breadcrumb/index.js.map +1 -0
- package/dist/collection/components/z-button/index.js +1 -0
- package/dist/collection/components/z-button/index.js.map +1 -0
- package/dist/collection/components/z-button-sort/index.js +1 -0
- package/dist/collection/components/z-button-sort/index.js.map +1 -0
- package/dist/collection/components/z-card/index.js +1 -0
- package/dist/collection/components/z-card/index.js.map +1 -0
- package/dist/collection/components/z-carousel/index.js +1 -0
- package/dist/collection/components/z-carousel/index.js.map +1 -0
- package/dist/collection/components/z-chip/index.js +1 -0
- package/dist/collection/components/z-chip/index.js.map +1 -0
- package/dist/collection/components/z-color-picker/index.js +1 -0
- package/dist/collection/components/z-color-picker/index.js.map +1 -0
- package/dist/collection/components/z-combobox/index.js +1 -0
- package/dist/collection/components/z-combobox/index.js.map +1 -0
- package/dist/collection/components/z-cover-hero/index.js +1 -0
- package/dist/collection/components/z-cover-hero/index.js.map +1 -0
- package/dist/collection/components/z-divider/index.js +1 -0
- package/dist/collection/components/z-divider/index.js.map +1 -0
- package/dist/collection/components/z-ghost-loading/index.js +1 -0
- package/dist/collection/components/z-ghost-loading/index.js.map +1 -0
- package/dist/collection/components/z-icon/index.js +1 -0
- package/dist/collection/components/z-icon/index.js.map +1 -0
- package/dist/collection/components/z-info-box/index.js +1 -0
- package/dist/collection/components/z-info-box/index.js.map +1 -0
- package/dist/collection/components/z-info-reveal/index.js +1 -0
- package/dist/collection/components/z-info-reveal/index.js.map +1 -0
- package/dist/collection/components/z-input/index.js +1 -0
- package/dist/collection/components/z-input/index.js.map +1 -0
- package/dist/collection/components/z-input-message/index.js +1 -0
- package/dist/collection/components/z-input-message/index.js.map +1 -0
- package/dist/collection/components/z-input-range/index.js +438 -0
- package/dist/collection/components/z-input-range/index.js.map +1 -0
- package/dist/collection/components/z-input-range/styles.css +262 -0
- package/dist/collection/components/z-logo/index.js +2 -1
- package/dist/collection/components/z-logo/index.js.map +1 -0
- package/dist/collection/components/z-menu/index.js +1 -0
- package/dist/collection/components/z-menu/index.js.map +1 -0
- package/dist/collection/components/z-menu-section/index.js +2 -1
- package/dist/collection/components/z-menu-section/index.js.map +1 -0
- package/dist/collection/components/z-modal/index.js +17 -36
- package/dist/collection/components/z-modal/index.js.map +1 -0
- package/dist/collection/components/z-navigation-tabs/index.js +3 -2
- package/dist/collection/components/z-navigation-tabs/index.js.map +1 -0
- package/dist/collection/components/z-notification/index.js +2 -1
- package/dist/collection/components/z-notification/index.js.map +1 -0
- package/dist/collection/components/z-offcanvas/index.js +43 -116
- package/dist/collection/components/z-offcanvas/index.js.map +1 -0
- package/dist/collection/components/z-offcanvas/styles.css +1 -0
- package/dist/collection/components/z-pagination/index.js +1 -0
- package/dist/collection/components/z-pagination/index.js.map +1 -0
- package/dist/collection/components/z-panel-elem/index.js +3 -2
- package/dist/collection/components/z-panel-elem/index.js.map +1 -0
- package/dist/collection/components/z-popover/index.js +2 -1
- package/dist/collection/components/z-popover/index.js.map +1 -0
- package/dist/collection/components/z-result-card/index.js +1 -0
- package/dist/collection/components/z-result-card/index.js.map +1 -0
- package/dist/collection/components/z-searchbar/index.js +4 -3
- package/dist/collection/components/z-searchbar/index.js.map +1 -0
- package/dist/collection/components/z-select/index.js +6 -5
- package/dist/collection/components/z-select/index.js.map +1 -0
- package/dist/collection/components/z-skip-to-content/index.js +2 -1
- package/dist/collection/components/z-skip-to-content/index.js.map +1 -0
- package/dist/collection/components/z-stepper/index.js +2 -1
- package/dist/collection/components/z-stepper/index.js.map +1 -0
- package/dist/collection/components/z-stepper-item/index.js +2 -1
- package/dist/collection/components/z-stepper-item/index.js.map +1 -0
- package/dist/collection/components/z-tag/index.js +3 -2
- package/dist/collection/components/z-tag/index.js.map +1 -0
- package/dist/collection/components/z-toast-notification/index.js +4 -3
- package/dist/collection/components/z-toast-notification/index.js.map +1 -0
- package/dist/collection/components/z-toast-notification-list/index.js +2 -1
- package/dist/collection/components/z-toast-notification-list/index.js.map +1 -0
- package/dist/collection/components/z-toggle-button/index.js +3 -2
- package/dist/collection/components/z-toggle-button/index.js.map +1 -0
- package/dist/collection/components/z-toggle-switch/index.js +4 -3
- package/dist/collection/components/z-toggle-switch/index.js.map +1 -0
- package/dist/collection/components/z-tool/index.js +3 -2
- package/dist/collection/components/z-tool/index.js.map +1 -0
- package/dist/collection/components/z-toolbar/index.js +2 -1
- package/dist/collection/components/z-toolbar/index.js.map +1 -0
- package/dist/collection/components/z-tooltip/index.js +2 -1
- package/dist/collection/components/z-tooltip/index.js.map +1 -0
- package/dist/collection/components/z-visually-hidden/index.js +2 -1
- package/dist/collection/components/z-visually-hidden/index.js.map +1 -0
- package/dist/collection/constants/breakpoints.js +1 -0
- package/dist/collection/constants/breakpoints.js.map +1 -0
- package/dist/collection/constants/icons.js +1 -0
- package/dist/collection/constants/icons.js.map +1 -0
- package/dist/collection/constants/iconset.js +1 -0
- package/dist/collection/constants/iconset.js.map +1 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/snowflakes/myz/card/z-myz-card/index.js +2 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card/index.js.map +1 -0
- package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js +2 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js.map +1 -0
- package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js +2 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js.map +1 -0
- package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js +2 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js.map +1 -0
- package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js +2 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js.map +1 -0
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js +2 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js.map +1 -0
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js +2 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js.map +1 -0
- package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js +2 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js.map +1 -0
- package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js +2 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js.map +1 -0
- package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +2 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js.map +1 -0
- package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js +2 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js.map +1 -0
- package/dist/collection/snowflakes/myz/list/z-myz-list/index.js +2 -1
- package/dist/collection/snowflakes/myz/list/z-myz-list/index.js.map +1 -0
- package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js +2 -1
- package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js.map +1 -0
- package/dist/collection/snowflakes/myz/z-alert/index.js +2 -1
- package/dist/collection/snowflakes/myz/z-alert/index.js.map +1 -0
- package/dist/collection/snowflakes/myz/z-otp/index.js +3 -2
- package/dist/collection/snowflakes/myz/z-otp/index.js.map +1 -0
- package/dist/collection/snowflakes/myz/z-slideshow/index.js +1 -0
- package/dist/collection/snowflakes/myz/z-slideshow/index.js.map +1 -0
- package/dist/collection/utils/focus-trap-controller.js +100 -0
- package/dist/collection/utils/focus-trap-controller.js.map +1 -0
- package/dist/collection/utils/reactive-controller.js +46 -0
- package/dist/collection/utils/reactive-controller.js.map +1 -0
- package/dist/collection/utils/storybook-utils.js +1 -0
- package/dist/collection/utils/storybook-utils.js.map +1 -0
- package/dist/collection/utils/utils.js +60 -1
- package/dist/collection/utils/utils.js.map +1 -0
- package/dist/components/_commonjsHelpers.js +2 -1
- package/dist/components/_commonjsHelpers.js.map +1 -0
- package/dist/components/breakpoints.js +2 -1
- package/dist/components/breakpoints.js.map +1 -0
- package/dist/components/iconset.js +2 -1
- package/dist/components/iconset.js.map +1 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +2 -1
- package/dist/components/index.js.map +1 -0
- package/dist/components/index10.js +2 -1
- package/dist/components/index10.js.map +1 -0
- package/dist/components/index11.js +2 -1
- package/dist/components/index11.js.map +1 -0
- package/dist/components/index12.js +2 -1
- package/dist/components/index12.js.map +1 -0
- package/dist/components/index13.js +2 -1
- package/dist/components/index13.js.map +1 -0
- package/dist/components/index14.js +2 -1
- package/dist/components/index14.js.map +1 -0
- package/dist/components/index15.js +2 -1
- package/dist/components/index15.js.map +1 -0
- package/dist/components/index16.js +2 -1
- package/dist/components/index16.js.map +1 -0
- package/dist/components/index17.js +2 -1
- package/dist/components/index17.js.map +1 -0
- package/dist/components/index18.js +2 -1
- package/dist/components/index18.js.map +1 -0
- package/dist/components/index19.js +2 -1
- package/dist/components/index19.js.map +1 -0
- package/dist/components/index2.js +2 -1
- package/dist/components/index2.js.map +1 -0
- package/dist/components/index20.js +2 -1
- package/dist/components/index20.js.map +1 -0
- package/dist/components/index21.js +2 -1
- package/dist/components/index21.js.map +1 -0
- package/dist/components/index22.js +2 -1
- package/dist/components/index22.js.map +1 -0
- package/dist/components/index23.js +2 -1
- package/dist/components/index23.js.map +1 -0
- package/dist/components/index24.js +2 -1
- package/dist/components/index24.js.map +1 -0
- package/dist/components/index25.js +2 -1
- package/dist/components/index25.js.map +1 -0
- package/dist/components/index26.js +2 -1
- package/dist/components/index26.js.map +1 -0
- package/dist/components/index27.js +2 -1
- package/dist/components/index27.js.map +1 -0
- package/dist/components/index3.js +2 -1
- package/dist/components/index3.js.map +1 -0
- package/dist/components/index4.js +2 -1
- package/dist/components/index4.js.map +1 -0
- package/dist/components/index5.js +2 -1
- package/dist/components/index5.js.map +1 -0
- package/dist/components/index6.js +2 -1
- package/dist/components/index6.js.map +1 -0
- package/dist/components/index7.js +2 -1
- package/dist/components/index7.js.map +1 -0
- package/dist/components/index8.js +2 -1
- package/dist/components/index8.js.map +1 -0
- package/dist/components/index9.js +2 -1
- package/dist/components/index9.js.map +1 -0
- package/dist/components/reactive-controller.js +6 -0
- package/dist/components/reactive-controller.js.map +1 -0
- package/dist/components/utils.js +7 -1
- package/dist/components/utils.js.map +1 -0
- package/dist/components/utils2.js +2 -1
- package/dist/components/utils2.js.map +1 -0
- package/dist/components/z-accordion.js +2 -1
- package/dist/components/z-accordion.js.map +1 -0
- package/dist/components/z-alert.js +2 -1
- package/dist/components/z-alert.js.map +1 -0
- package/dist/components/z-anchor-navigation.js +2 -1
- package/dist/components/z-anchor-navigation.js.map +1 -0
- package/dist/components/z-app-header-deprecated.js +2 -1
- package/dist/components/z-app-header-deprecated.js.map +1 -0
- package/dist/components/z-app-header.js +2 -1
- package/dist/components/z-app-header.js.map +1 -0
- package/dist/components/z-aria-alert.js +2 -1
- package/dist/components/z-aria-alert.js.map +1 -0
- package/dist/components/z-avatar.js +2 -1
- package/dist/components/z-avatar.js.map +1 -0
- package/dist/components/z-book-card-app.js +2 -1
- package/dist/components/z-book-card-app.js.map +1 -0
- package/dist/components/z-book-card-deprecated.js +2 -1
- package/dist/components/z-book-card-deprecated.js.map +1 -0
- package/dist/components/z-book-card.js +2 -1
- package/dist/components/z-book-card.js.map +1 -0
- package/dist/components/z-book-cover.js +2 -1
- package/dist/components/z-book-cover.js.map +1 -0
- package/dist/components/z-breadcrumb.js +2 -1
- package/dist/components/z-breadcrumb.js.map +1 -0
- package/dist/components/z-button-sort.js +2 -1
- package/dist/components/z-button-sort.js.map +1 -0
- package/dist/components/z-button.js +2 -1
- package/dist/components/z-button.js.map +1 -0
- package/dist/components/z-card.js +2 -1
- package/dist/components/z-card.js.map +1 -0
- package/dist/components/z-carousel.js +2 -1
- package/dist/components/z-carousel.js.map +1 -0
- package/dist/components/z-chip.js +2 -1
- package/dist/components/z-chip.js.map +1 -0
- package/dist/components/z-color-picker.js +2 -1
- package/dist/components/z-color-picker.js.map +1 -0
- package/dist/components/z-combobox.js +2 -1
- package/dist/components/z-combobox.js.map +1 -0
- package/dist/components/z-cover-hero.js +2 -1
- package/dist/components/z-cover-hero.js.map +1 -0
- package/dist/components/z-date-picker.js +3 -2
- package/dist/components/z-date-picker.js.map +1 -0
- package/dist/components/z-divider.js +2 -1
- package/dist/components/z-divider.js.map +1 -0
- package/dist/components/z-dragdrop-area.js +2 -1
- package/dist/components/z-dragdrop-area.js.map +1 -0
- package/dist/components/z-file-upload.js +2 -1
- package/dist/components/z-file-upload.js.map +1 -0
- package/dist/components/z-file.js +2 -1
- package/dist/components/z-file.js.map +1 -0
- package/dist/components/z-ghost-loading.js +2 -1
- package/dist/components/z-ghost-loading.js.map +1 -0
- package/dist/components/z-icon.js +2 -1
- package/dist/components/z-icon.js.map +1 -0
- package/dist/components/z-info-box.js +2 -1
- package/dist/components/z-info-box.js.map +1 -0
- package/dist/components/z-info-reveal.js +2 -1
- package/dist/components/z-info-reveal.js.map +1 -0
- package/dist/components/z-input-message.js +2 -1
- package/dist/components/z-input-message.js.map +1 -0
- package/dist/components/z-input-range.d.ts +11 -0
- package/dist/components/z-input-range.js +2 -0
- package/dist/components/z-input-range.js.map +1 -0
- package/dist/components/z-input.js +2 -1
- package/dist/components/z-input.js.map +1 -0
- package/dist/components/z-list-element.js +2 -1
- package/dist/components/z-list-element.js.map +1 -0
- package/dist/components/z-list-group.js +2 -1
- package/dist/components/z-list-group.js.map +1 -0
- package/dist/components/z-list.js +2 -1
- package/dist/components/z-list.js.map +1 -0
- package/dist/components/z-logo.js +2 -1
- package/dist/components/z-logo.js.map +1 -0
- package/dist/components/z-menu-deprecated.js +2 -1
- package/dist/components/z-menu-deprecated.js.map +1 -0
- package/dist/components/z-menu-section-deprecated.js +2 -1
- package/dist/components/z-menu-section-deprecated.js.map +1 -0
- package/dist/components/z-menu-section.js +2 -1
- package/dist/components/z-menu-section.js.map +1 -0
- package/dist/components/z-menu.js +2 -1
- package/dist/components/z-menu.js.map +1 -0
- package/dist/components/z-modal.js +2 -1
- package/dist/components/z-modal.js.map +1 -0
- package/dist/components/z-myz-card-alert.js +2 -1
- package/dist/components/z-myz-card-alert.js.map +1 -0
- package/dist/components/z-myz-card-body.js +2 -1
- package/dist/components/z-myz-card-body.js.map +1 -0
- package/dist/components/z-myz-card-cover.js +2 -1
- package/dist/components/z-myz-card-cover.js.map +1 -0
- package/dist/components/z-myz-card-dictionary.js +2 -1
- package/dist/components/z-myz-card-dictionary.js.map +1 -0
- package/dist/components/z-myz-card-footer-sections.js +2 -1
- package/dist/components/z-myz-card-footer-sections.js.map +1 -0
- package/dist/components/z-myz-card-footer.js +2 -1
- package/dist/components/z-myz-card-footer.js.map +1 -0
- package/dist/components/z-myz-card-header.js +2 -1
- package/dist/components/z-myz-card-header.js.map +1 -0
- package/dist/components/z-myz-card-icon.js +2 -1
- package/dist/components/z-myz-card-icon.js.map +1 -0
- package/dist/components/z-myz-card-info.js +2 -1
- package/dist/components/z-myz-card-info.js.map +1 -0
- package/dist/components/z-myz-card-list.js +2 -1
- package/dist/components/z-myz-card-list.js.map +1 -0
- package/dist/components/z-myz-card.js +2 -1
- package/dist/components/z-myz-card.js.map +1 -0
- package/dist/components/z-myz-list-item.js +2 -1
- package/dist/components/z-myz-list-item.js.map +1 -0
- package/dist/components/z-myz-list.js +2 -1
- package/dist/components/z-myz-list.js.map +1 -0
- package/dist/components/z-navigation-tabs.js +2 -1
- package/dist/components/z-navigation-tabs.js.map +1 -0
- package/dist/components/z-notification.js +2 -1
- package/dist/components/z-notification.js.map +1 -0
- package/dist/components/z-offcanvas.js +2 -1
- package/dist/components/z-offcanvas.js.map +1 -0
- package/dist/components/z-otp.js +2 -1
- package/dist/components/z-otp.js.map +1 -0
- package/dist/components/z-pagination.js +2 -1
- package/dist/components/z-pagination.js.map +1 -0
- package/dist/components/z-panel-elem.js +2 -1
- package/dist/components/z-panel-elem.js.map +1 -0
- package/dist/components/z-popover.js +2 -1
- package/dist/components/z-popover.js.map +1 -0
- package/dist/components/z-range-picker.js +2 -1
- package/dist/components/z-range-picker.js.map +1 -0
- package/dist/components/z-result-card.js +2 -1
- package/dist/components/z-result-card.js.map +1 -0
- package/dist/components/z-searchbar.js +2 -1
- package/dist/components/z-searchbar.js.map +1 -0
- package/dist/components/z-section-title.js +2 -1
- package/dist/components/z-section-title.js.map +1 -0
- package/dist/components/z-select.js +2 -1
- package/dist/components/z-select.js.map +1 -0
- package/dist/components/z-skip-to-content.js +2 -1
- package/dist/components/z-skip-to-content.js.map +1 -0
- package/dist/components/z-slideshow.js +2 -1
- package/dist/components/z-slideshow.js.map +1 -0
- package/dist/components/z-stepper-item.js +2 -1
- package/dist/components/z-stepper-item.js.map +1 -0
- package/dist/components/z-stepper.js +2 -1
- package/dist/components/z-stepper.js.map +1 -0
- package/dist/components/z-table.js +2 -1
- package/dist/components/z-table.js.map +1 -0
- package/dist/components/z-tag.js +2 -1
- package/dist/components/z-tag.js.map +1 -0
- package/dist/components/z-tbody.js +2 -1
- package/dist/components/z-tbody.js.map +1 -0
- package/dist/components/z-td.js +2 -1
- package/dist/components/z-td.js.map +1 -0
- package/dist/components/z-tfoot.js +2 -1
- package/dist/components/z-tfoot.js.map +1 -0
- package/dist/components/z-th.js +2 -1
- package/dist/components/z-th.js.map +1 -0
- package/dist/components/z-thead.js +2 -1
- package/dist/components/z-thead.js.map +1 -0
- package/dist/components/z-toast-notification-list.js +2 -1
- package/dist/components/z-toast-notification-list.js.map +1 -0
- package/dist/components/z-toast-notification.js +8 -2
- package/dist/components/z-toast-notification.js.map +1 -0
- package/dist/components/z-toggle-button.js +2 -1
- package/dist/components/z-toggle-button.js.map +1 -0
- package/dist/components/z-toggle-switch.js +2 -1
- package/dist/components/z-toggle-switch.js.map +1 -0
- package/dist/components/z-tool.js +2 -1
- package/dist/components/z-tool.js.map +1 -0
- package/dist/components/z-toolbar.js +2 -1
- package/dist/components/z-toolbar.js.map +1 -0
- package/dist/components/z-tooltip.js +2 -1
- package/dist/components/z-tooltip.js.map +1 -0
- package/dist/components/z-tr.js +2 -1
- package/dist/components/z-tr.js.map +1 -0
- package/dist/components/z-tree-list.js +2 -1
- package/dist/components/z-tree-list.js.map +1 -0
- package/dist/components/z-visually-hidden.js +2 -1
- package/dist/components/z-visually-hidden.js.map +1 -0
- package/dist/esm/_commonjsHelpers-B85MJLTf.js +3 -0
- package/dist/esm/_commonjsHelpers-B85MJLTf.js.map +1 -0
- package/dist/esm/breakpoints-Q-tWjk7P.js +3 -0
- package/dist/esm/breakpoints-Q-tWjk7P.js.map +1 -0
- package/dist/esm/iconset-AwzX9V8L.js +3 -0
- package/dist/esm/iconset-AwzX9V8L.js.map +1 -0
- package/dist/esm/{index-BKCj6NR2.js → index-B3nR3-Jw.js} +9 -1
- package/dist/esm/index-B3nR3-Jw.js.map +1 -0
- package/dist/esm/{index-fIt9Ytc6.js → index-BEHxru6n.js} +51 -7
- package/dist/esm/index-BEHxru6n.js.map +1 -0
- package/dist/esm/index.js +5 -2
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/loader.js +6 -3
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/reactive-controller-DXvzHFid.js +1443 -0
- package/dist/esm/reactive-controller-DXvzHFid.js.map +1 -0
- package/dist/esm/utils-C9lc3rtK.js +896 -0
- package/dist/esm/utils-C9lc3rtK.js.map +1 -0
- package/dist/esm/{utils-DuuLzXZj.js → utils-DP4zBIll.js} +4 -1
- package/dist/esm/utils-DP4zBIll.js.map +1 -0
- package/dist/esm/web-components-library.js +6 -3
- package/dist/esm/web-components-library.js.map +1 -0
- package/dist/esm/z-accordion.entry.js +5 -2
- package/dist/esm/z-accordion.entry.js.map +1 -0
- package/dist/esm/z-alert.entry.js +5 -2
- package/dist/esm/z-alert.entry.js.map +1 -0
- package/dist/esm/z-anchor-navigation.entry.js +5 -2
- package/dist/esm/z-anchor-navigation.entry.js.map +1 -0
- package/dist/esm/z-app-header-deprecated.entry.js +5 -2
- package/dist/esm/z-app-header-deprecated.entry.js.map +1 -0
- package/dist/esm/z-app-header_12.entry.js +45 -109
- package/dist/esm/z-app-header_12.entry.js.map +1 -0
- package/dist/esm/z-aria-alert.entry.js +5 -2
- package/dist/esm/z-aria-alert.entry.js.map +1 -0
- package/dist/esm/z-avatar.entry.js +5 -2
- package/dist/esm/z-avatar.entry.js.map +1 -0
- package/dist/esm/z-book-card-app.entry.js +5 -2
- package/dist/esm/z-book-card-app.entry.js.map +1 -0
- package/dist/esm/z-book-card-deprecated.entry.js +6 -3
- package/dist/esm/z-book-card-deprecated.entry.js.map +1 -0
- package/dist/esm/z-book-card.entry.js +5 -2
- package/dist/esm/z-book-card.entry.js.map +1 -0
- package/dist/esm/z-book-cover.entry.js +4 -1
- package/dist/esm/z-book-cover.entry.js.map +1 -0
- package/dist/esm/z-breadcrumb.entry.js +6 -3
- package/dist/esm/z-breadcrumb.entry.js.map +1 -0
- package/dist/esm/z-button-sort.entry.js +4 -1
- package/dist/esm/z-button-sort.entry.js.map +1 -0
- package/dist/esm/z-card.entry.js +5 -2
- package/dist/esm/z-card.entry.js.map +1 -0
- package/dist/esm/z-carousel.entry.js +5 -2
- package/dist/esm/z-carousel.entry.js.map +1 -0
- package/dist/esm/z-chip.entry.js +5 -2
- package/dist/esm/z-chip.entry.js.map +1 -0
- package/dist/esm/z-color-picker.entry.js +6 -3
- package/dist/esm/z-color-picker.entry.js.map +1 -0
- package/dist/esm/z-combobox.entry.js +6 -3
- package/dist/esm/z-combobox.entry.js.map +1 -0
- package/dist/esm/z-cover-hero.entry.js +5 -2
- package/dist/esm/z-cover-hero.entry.js.map +1 -0
- package/dist/esm/z-date-picker.entry.js +6 -3
- package/dist/esm/z-date-picker.entry.js.map +1 -0
- package/dist/esm/z-dragdrop-area_2.entry.js +22 -38
- package/dist/esm/z-dragdrop-area_2.entry.js.map +1 -0
- package/dist/esm/z-file-upload.entry.js +5 -2
- package/dist/esm/z-file-upload.entry.js.map +1 -0
- package/dist/esm/z-file.entry.js +5 -2
- package/dist/esm/z-file.entry.js.map +1 -0
- package/dist/esm/z-ghost-loading.entry.js +4 -1
- package/dist/esm/z-ghost-loading.entry.js.map +1 -0
- package/dist/esm/z-info-box.entry.js +4 -1
- package/dist/esm/z-info-box.entry.js.map +1 -0
- package/dist/esm/z-info-reveal.entry.js +5 -2
- package/dist/esm/z-info-reveal.entry.js.map +1 -0
- package/dist/esm/z-input-range.entry.js +143 -0
- package/dist/esm/z-input-range.entry.js.map +1 -0
- package/dist/esm/z-logo.entry.js +5 -2
- package/dist/esm/z-logo.entry.js.map +1 -0
- package/dist/esm/z-menu-deprecated.entry.js +4 -1
- package/dist/esm/z-menu-deprecated.entry.js.map +1 -0
- package/dist/esm/z-menu-section-deprecated.entry.js +4 -1
- package/dist/esm/z-menu-section-deprecated.entry.js.map +1 -0
- package/dist/esm/z-menu-section.entry.js +6 -3
- package/dist/esm/z-menu-section.entry.js.map +1 -0
- package/dist/esm/z-menu.entry.js +6 -3
- package/dist/esm/z-menu.entry.js.map +1 -0
- package/dist/esm/z-myz-card-alert.entry.js +6 -3
- package/dist/esm/z-myz-card-alert.entry.js.map +1 -0
- package/dist/esm/z-myz-card-dictionary.entry.js +6 -3
- package/dist/esm/z-myz-card-dictionary.entry.js.map +1 -0
- package/dist/esm/z-myz-card-footer-sections.entry.js +5 -2
- package/dist/esm/z-myz-card-footer-sections.entry.js.map +1 -0
- package/dist/esm/z-myz-card-footer.entry.js +6 -3
- package/dist/esm/z-myz-card-footer.entry.js.map +1 -0
- package/dist/esm/z-myz-card-icon.entry.js +5 -2
- package/dist/esm/z-myz-card-icon.entry.js.map +1 -0
- package/dist/esm/z-myz-card-info.entry.js +7 -4
- package/dist/esm/z-myz-card-info.entry.js.map +1 -0
- package/dist/esm/z-myz-card-list.entry.js +5 -2
- package/dist/esm/z-myz-card-list.entry.js.map +1 -0
- package/dist/esm/z-myz-card_4.entry.js +9 -6
- package/dist/esm/z-myz-card_4.entry.js.map +1 -0
- package/dist/esm/z-myz-list-item.entry.js +7 -4
- package/dist/esm/z-myz-list-item.entry.js.map +1 -0
- package/dist/esm/z-myz-list.entry.js +5 -2
- package/dist/esm/z-myz-list.entry.js.map +1 -0
- package/dist/esm/z-navigation-tabs.entry.js +7 -4
- package/dist/esm/z-navigation-tabs.entry.js.map +1 -0
- package/dist/esm/z-notification.entry.js +5 -2
- package/dist/esm/z-notification.entry.js.map +1 -0
- package/dist/esm/z-otp.entry.js +7 -4
- package/dist/esm/z-otp.entry.js.map +1 -0
- package/dist/esm/z-pagination.entry.js +5 -2
- package/dist/esm/z-pagination.entry.js.map +1 -0
- package/dist/esm/z-panel-elem.entry.js +6 -3
- package/dist/esm/z-panel-elem.entry.js.map +1 -0
- package/dist/esm/z-popover.entry.js +7 -4
- package/dist/esm/z-popover.entry.js.map +1 -0
- package/dist/esm/z-range-picker.entry.js +6 -3
- package/dist/esm/z-range-picker.entry.js.map +1 -0
- package/dist/esm/z-result-card.entry.js +4 -1
- package/dist/esm/z-result-card.entry.js.map +1 -0
- package/dist/esm/z-section-title.entry.js +5 -2
- package/dist/esm/z-section-title.entry.js.map +1 -0
- package/dist/esm/z-select.entry.js +11 -8
- package/dist/esm/z-select.entry.js.map +1 -0
- package/dist/esm/z-skip-to-content.entry.js +7 -4
- package/dist/esm/z-skip-to-content.entry.js.map +1 -0
- package/dist/esm/z-slideshow.entry.js +6 -3
- package/dist/esm/z-slideshow.entry.js.map +1 -0
- package/dist/esm/z-stepper-item.entry.js +5 -2
- package/dist/esm/z-stepper-item.entry.js.map +1 -0
- package/dist/esm/z-stepper.entry.js +5 -2
- package/dist/esm/z-stepper.entry.js.map +1 -0
- package/dist/esm/z-table.entry.js +9 -8
- package/dist/esm/z-table.entry.js.map +1 -0
- package/dist/esm/z-tbody.entry.js +7 -6
- package/dist/esm/z-tbody.entry.js.map +1 -0
- package/dist/esm/z-td.entry.js +8 -7
- package/dist/esm/z-td.entry.js.map +1 -0
- package/dist/esm/z-tfoot.entry.js +7 -6
- package/dist/esm/z-tfoot.entry.js.map +1 -0
- package/dist/esm/z-th.entry.js +9 -8
- package/dist/esm/z-th.entry.js.map +1 -0
- package/dist/esm/z-thead.entry.js +7 -6
- package/dist/esm/z-thead.entry.js.map +1 -0
- package/dist/esm/z-toast-notification-list.entry.js +6 -3
- package/dist/esm/z-toast-notification-list.entry.js.map +1 -0
- package/dist/esm/z-toast-notification.entry.js +8 -5
- package/dist/esm/z-toast-notification.entry.js.map +1 -0
- package/dist/esm/z-toggle-button.entry.js +6 -3
- package/dist/esm/z-toggle-button.entry.js.map +1 -0
- package/dist/esm/z-toggle-switch.entry.js +9 -6
- package/dist/esm/z-toggle-switch.entry.js.map +1 -0
- package/dist/esm/z-tool.entry.js +8 -5
- package/dist/esm/z-tool.entry.js.map +1 -0
- package/dist/esm/z-toolbar.entry.js +6 -3
- package/dist/esm/z-toolbar.entry.js.map +1 -0
- package/dist/esm/z-tooltip.entry.js +6 -3
- package/dist/esm/z-tooltip.entry.js.map +1 -0
- package/dist/esm/z-tr.entry.js +9 -8
- package/dist/esm/z-tr.entry.js.map +1 -0
- package/dist/esm/z-tree-list.entry.js +5 -2
- package/dist/esm/z-tree-list.entry.js.map +1 -0
- package/dist/esm/z-visually-hidden.entry.js +5 -2
- package/dist/esm/z-visually-hidden.entry.js.map +1 -0
- package/dist/types/beans/index.d.ts +4 -0
- package/dist/types/components/z-input-range/index.d.ts +83 -0
- package/dist/types/components/z-modal/index.d.ts +4 -10
- package/dist/types/components/z-offcanvas/index.d.ts +12 -34
- package/dist/types/components.d.ts +187 -6
- package/dist/types/utils/focus-trap-controller.d.ts +53 -0
- package/dist/types/utils/reactive-controller.d.ts +39 -0
- package/dist/types/utils/utils.d.ts +10 -0
- package/dist/web-components-library/index.esm.js +2 -1
- package/dist/web-components-library/index.esm.js.map +1 -0
- package/dist/web-components-library/p-0a10c7d7.entry.js +2 -0
- package/dist/web-components-library/p-0a10c7d7.entry.js.map +1 -0
- package/dist/web-components-library/p-0de3e2fa.entry.js +2 -0
- package/dist/web-components-library/p-0de3e2fa.entry.js.map +1 -0
- package/dist/web-components-library/p-0eb833b6.entry.js +2 -0
- package/dist/web-components-library/p-0eb833b6.entry.js.map +1 -0
- package/dist/web-components-library/p-17a9c2b3.entry.js +2 -0
- package/dist/web-components-library/p-17a9c2b3.entry.js.map +1 -0
- package/dist/web-components-library/p-235a1c1d.entry.js +2 -0
- package/dist/web-components-library/p-235a1c1d.entry.js.map +1 -0
- package/dist/web-components-library/p-286690fd.entry.js +2 -0
- package/dist/web-components-library/p-286690fd.entry.js.map +1 -0
- package/dist/web-components-library/p-288c1f55.entry.js +2 -0
- package/dist/web-components-library/p-288c1f55.entry.js.map +1 -0
- package/dist/web-components-library/p-2b05eaef.entry.js +2 -0
- package/dist/web-components-library/p-2b05eaef.entry.js.map +1 -0
- package/dist/web-components-library/p-2c63a798.entry.js +2 -0
- package/dist/web-components-library/p-2c63a798.entry.js.map +1 -0
- package/dist/web-components-library/p-315ac39c.entry.js +2 -0
- package/dist/web-components-library/p-315ac39c.entry.js.map +1 -0
- package/dist/web-components-library/p-35653b5e.entry.js +2 -0
- package/dist/web-components-library/p-35653b5e.entry.js.map +1 -0
- package/dist/web-components-library/p-38e4e01f.entry.js +2 -0
- package/dist/web-components-library/p-38e4e01f.entry.js.map +1 -0
- package/dist/web-components-library/p-3b3e1ffb.entry.js +2 -0
- package/dist/web-components-library/p-3b3e1ffb.entry.js.map +1 -0
- package/dist/web-components-library/p-3b7f5d80.entry.js +2 -0
- package/dist/web-components-library/p-3b7f5d80.entry.js.map +1 -0
- package/dist/web-components-library/p-40694478.entry.js +2 -0
- package/dist/web-components-library/p-40694478.entry.js.map +1 -0
- package/dist/web-components-library/p-440e5b62.entry.js +2 -0
- package/dist/web-components-library/p-440e5b62.entry.js.map +1 -0
- package/dist/web-components-library/p-44410388.entry.js +2 -0
- package/dist/web-components-library/p-44410388.entry.js.map +1 -0
- package/dist/web-components-library/p-508eb530.entry.js +2 -0
- package/dist/web-components-library/p-508eb530.entry.js.map +1 -0
- package/dist/web-components-library/p-50a09bf1.entry.js +2 -0
- package/dist/web-components-library/p-50a09bf1.entry.js.map +1 -0
- package/dist/web-components-library/p-54f98f8e.entry.js +2 -0
- package/dist/web-components-library/p-54f98f8e.entry.js.map +1 -0
- package/dist/web-components-library/p-5a0424cd.entry.js +2 -0
- package/dist/web-components-library/p-5a0424cd.entry.js.map +1 -0
- package/dist/web-components-library/p-5ba350d8.entry.js +2 -0
- package/dist/web-components-library/p-5ba350d8.entry.js.map +1 -0
- package/dist/web-components-library/p-643aaedc.entry.js +2 -0
- package/dist/web-components-library/p-643aaedc.entry.js.map +1 -0
- package/dist/web-components-library/p-654cbe9f.entry.js +2 -0
- package/dist/web-components-library/p-654cbe9f.entry.js.map +1 -0
- package/dist/web-components-library/p-6fc4fd53.entry.js +2 -0
- package/dist/web-components-library/p-6fc4fd53.entry.js.map +1 -0
- package/dist/web-components-library/{p-2621b31f.entry.js → p-72356b43.entry.js} +2 -1
- package/dist/web-components-library/p-72356b43.entry.js.map +1 -0
- package/dist/web-components-library/p-723c700f.entry.js +2 -0
- package/dist/web-components-library/p-723c700f.entry.js.map +1 -0
- package/dist/web-components-library/p-72da35ee.entry.js +2 -0
- package/dist/web-components-library/p-72da35ee.entry.js.map +1 -0
- package/dist/web-components-library/p-7313202f.entry.js +2 -0
- package/dist/web-components-library/p-7313202f.entry.js.map +1 -0
- package/dist/web-components-library/p-73ed9922.entry.js +2 -0
- package/dist/web-components-library/p-73ed9922.entry.js.map +1 -0
- package/dist/web-components-library/p-779a7476.entry.js +2 -0
- package/dist/web-components-library/p-779a7476.entry.js.map +1 -0
- package/dist/web-components-library/p-7a25961e.entry.js +2 -0
- package/dist/web-components-library/p-7a25961e.entry.js.map +1 -0
- package/dist/web-components-library/p-7dfb5290.entry.js +2 -0
- package/dist/web-components-library/p-7dfb5290.entry.js.map +1 -0
- package/dist/web-components-library/p-7fff6cfd.entry.js +2 -0
- package/dist/web-components-library/p-7fff6cfd.entry.js.map +1 -0
- package/dist/web-components-library/p-8041306f.entry.js +2 -0
- package/dist/web-components-library/p-8041306f.entry.js.map +1 -0
- package/dist/web-components-library/p-8046cab0.entry.js +2 -0
- package/dist/web-components-library/p-8046cab0.entry.js.map +1 -0
- package/dist/web-components-library/{p-ebd8c113.entry.js → p-82c43c62.entry.js} +2 -1
- package/dist/web-components-library/p-82c43c62.entry.js.map +1 -0
- package/dist/web-components-library/p-82e04f79.entry.js +2 -0
- package/dist/web-components-library/p-82e04f79.entry.js.map +1 -0
- package/dist/web-components-library/p-87a5a352.entry.js +2 -0
- package/dist/web-components-library/p-87a5a352.entry.js.map +1 -0
- package/dist/web-components-library/p-8b0c232c.entry.js +2 -0
- package/dist/web-components-library/p-8b0c232c.entry.js.map +1 -0
- package/dist/web-components-library/p-8b1f745c.entry.js +2 -0
- package/dist/web-components-library/p-8b1f745c.entry.js.map +1 -0
- package/dist/web-components-library/p-8bd0e3e2.entry.js +2 -0
- package/dist/web-components-library/p-8bd0e3e2.entry.js.map +1 -0
- package/dist/web-components-library/p-8ca86be7.entry.js +2 -0
- package/dist/web-components-library/p-8ca86be7.entry.js.map +1 -0
- package/dist/web-components-library/p-8ce8d90d.entry.js +2 -0
- package/dist/web-components-library/p-8ce8d90d.entry.js.map +1 -0
- package/dist/web-components-library/p-927d9062.entry.js +2 -0
- package/dist/web-components-library/p-927d9062.entry.js.map +1 -0
- package/dist/web-components-library/p-931f2a16.entry.js +2 -0
- package/dist/web-components-library/p-931f2a16.entry.js.map +1 -0
- package/dist/web-components-library/p-960cd1d9.entry.js +2 -0
- package/dist/web-components-library/p-960cd1d9.entry.js.map +1 -0
- package/dist/web-components-library/p-9f0e91f5.entry.js +2 -0
- package/dist/web-components-library/p-9f0e91f5.entry.js.map +1 -0
- package/dist/web-components-library/p-AwzX9V8L.js +2 -1
- package/dist/web-components-library/p-AwzX9V8L.js.map +1 -0
- package/dist/web-components-library/p-B3nR3-Jw.js +2 -0
- package/dist/web-components-library/p-B3nR3-Jw.js.map +1 -0
- package/dist/web-components-library/p-B85MJLTf.js +2 -1
- package/dist/web-components-library/p-B85MJLTf.js.map +1 -0
- package/dist/web-components-library/p-BEHxru6n.js +3 -0
- package/dist/web-components-library/p-BEHxru6n.js.map +1 -0
- package/dist/web-components-library/p-Bx6o9v2_.js +2 -0
- package/dist/web-components-library/p-Bx6o9v2_.js.map +1 -0
- package/dist/web-components-library/p-C8pbzcmM.js +7 -0
- package/dist/web-components-library/p-C8pbzcmM.js.map +1 -0
- package/dist/web-components-library/p-CscBC1Z4.js +6 -0
- package/dist/web-components-library/p-CscBC1Z4.js.map +1 -0
- package/dist/web-components-library/p-Q-tWjk7P.js +2 -1
- package/dist/web-components-library/p-Q-tWjk7P.js.map +1 -0
- package/dist/web-components-library/p-a1db3939.entry.js +2 -0
- package/dist/web-components-library/p-a1db3939.entry.js.map +1 -0
- package/dist/web-components-library/p-a6f29ff5.entry.js +2 -0
- package/dist/web-components-library/p-a6f29ff5.entry.js.map +1 -0
- package/dist/web-components-library/p-a8e42a7c.entry.js +2 -0
- package/dist/web-components-library/p-a8e42a7c.entry.js.map +1 -0
- package/dist/web-components-library/p-a8fe9ae0.entry.js +2 -0
- package/dist/web-components-library/p-a8fe9ae0.entry.js.map +1 -0
- package/dist/web-components-library/p-ab64e360.entry.js +2 -0
- package/dist/web-components-library/p-ab64e360.entry.js.map +1 -0
- package/dist/web-components-library/p-acba8f34.entry.js +2 -0
- package/dist/web-components-library/p-acba8f34.entry.js.map +1 -0
- package/dist/web-components-library/p-ace68b04.entry.js +2 -0
- package/dist/web-components-library/p-ace68b04.entry.js.map +1 -0
- package/dist/web-components-library/p-ad88d4a5.entry.js +2 -0
- package/dist/web-components-library/p-ad88d4a5.entry.js.map +1 -0
- package/dist/web-components-library/p-ae8d5494.entry.js +2 -0
- package/dist/web-components-library/p-ae8d5494.entry.js.map +1 -0
- package/dist/web-components-library/p-af8fec68.entry.js +17 -0
- package/dist/web-components-library/p-af8fec68.entry.js.map +1 -0
- package/dist/web-components-library/p-b4140668.entry.js +2 -0
- package/dist/web-components-library/p-b4140668.entry.js.map +1 -0
- package/dist/web-components-library/p-bff500a3.entry.js +2 -0
- package/dist/web-components-library/p-bff500a3.entry.js.map +1 -0
- package/dist/web-components-library/p-d09060af.entry.js +2 -0
- package/dist/web-components-library/p-d09060af.entry.js.map +1 -0
- package/dist/web-components-library/p-da213c6e.entry.js +2 -0
- package/dist/web-components-library/p-da213c6e.entry.js.map +1 -0
- package/dist/web-components-library/p-e4622c5d.entry.js +2 -0
- package/dist/web-components-library/p-e4622c5d.entry.js.map +1 -0
- package/dist/web-components-library/p-e7e98d15.entry.js +2 -0
- package/dist/web-components-library/p-e7e98d15.entry.js.map +1 -0
- package/dist/web-components-library/p-e87e13b0.entry.js +2 -0
- package/dist/web-components-library/p-e87e13b0.entry.js.map +1 -0
- package/dist/web-components-library/p-e9212c7a.entry.js +2 -0
- package/dist/web-components-library/p-e9212c7a.entry.js.map +1 -0
- package/dist/web-components-library/p-e9722221.entry.js +8 -0
- package/dist/web-components-library/p-e9722221.entry.js.map +1 -0
- package/dist/web-components-library/p-e9ed3594.entry.js +2 -0
- package/dist/web-components-library/p-e9ed3594.entry.js.map +1 -0
- package/dist/web-components-library/p-eb5e4333.entry.js +2 -0
- package/dist/web-components-library/p-eb5e4333.entry.js.map +1 -0
- package/dist/web-components-library/p-ee711acf.entry.js +2 -0
- package/dist/web-components-library/p-ee711acf.entry.js.map +1 -0
- package/dist/web-components-library/p-fa4e8b1b.entry.js +2 -0
- package/dist/web-components-library/p-fa4e8b1b.entry.js.map +1 -0
- package/dist/web-components-library/p-fe279683.entry.js +2 -0
- package/dist/web-components-library/p-fe279683.entry.js.map +1 -0
- package/dist/web-components-library/web-components-library.css +0 -62
- package/dist/web-components-library/web-components-library.esm.js +2 -1
- package/dist/web-components-library/web-components-library.esm.js.map +1 -0
- package/package.json +5 -5
- package/react/components.d.ts +1 -0
- package/react/components.js +3 -2
- package/www/build/index.esm.js +2 -1
- package/www/build/index.esm.js.map +1 -0
- package/www/build/p-0a10c7d7.entry.js +2 -0
- package/www/build/p-0a10c7d7.entry.js.map +1 -0
- package/www/build/p-0de3e2fa.entry.js +2 -0
- package/www/build/p-0de3e2fa.entry.js.map +1 -0
- package/www/build/p-0eb833b6.entry.js +2 -0
- package/www/build/p-0eb833b6.entry.js.map +1 -0
- package/www/build/p-17a9c2b3.entry.js +2 -0
- package/www/build/p-17a9c2b3.entry.js.map +1 -0
- package/www/build/p-235a1c1d.entry.js +2 -0
- package/www/build/p-235a1c1d.entry.js.map +1 -0
- package/www/build/p-286690fd.entry.js +2 -0
- package/www/build/p-286690fd.entry.js.map +1 -0
- package/www/build/p-288c1f55.entry.js +2 -0
- package/www/build/p-288c1f55.entry.js.map +1 -0
- package/www/build/p-2b05eaef.entry.js +2 -0
- package/www/build/p-2b05eaef.entry.js.map +1 -0
- package/www/build/p-2c63a798.entry.js +2 -0
- package/www/build/p-2c63a798.entry.js.map +1 -0
- package/www/build/p-315ac39c.entry.js +2 -0
- package/www/build/p-315ac39c.entry.js.map +1 -0
- package/www/build/p-35653b5e.entry.js +2 -0
- package/www/build/p-35653b5e.entry.js.map +1 -0
- package/www/build/p-38e4e01f.entry.js +2 -0
- package/www/build/p-38e4e01f.entry.js.map +1 -0
- package/www/build/p-3b3e1ffb.entry.js +2 -0
- package/www/build/p-3b3e1ffb.entry.js.map +1 -0
- package/www/build/p-3b7f5d80.entry.js +2 -0
- package/www/build/p-3b7f5d80.entry.js.map +1 -0
- package/www/build/p-40694478.entry.js +2 -0
- package/www/build/p-40694478.entry.js.map +1 -0
- package/www/build/p-440e5b62.entry.js +2 -0
- package/www/build/p-440e5b62.entry.js.map +1 -0
- package/www/build/p-44410388.entry.js +2 -0
- package/www/build/p-44410388.entry.js.map +1 -0
- package/www/build/p-508eb530.entry.js +2 -0
- package/www/build/p-508eb530.entry.js.map +1 -0
- package/www/build/p-50a09bf1.entry.js +2 -0
- package/www/build/p-50a09bf1.entry.js.map +1 -0
- package/www/build/p-54f98f8e.entry.js +2 -0
- package/www/build/p-54f98f8e.entry.js.map +1 -0
- package/www/build/p-5a0424cd.entry.js +2 -0
- package/www/build/p-5a0424cd.entry.js.map +1 -0
- package/www/build/p-5ba350d8.entry.js +2 -0
- package/www/build/p-5ba350d8.entry.js.map +1 -0
- package/www/build/p-643aaedc.entry.js +2 -0
- package/www/build/p-643aaedc.entry.js.map +1 -0
- package/www/build/p-654cbe9f.entry.js +2 -0
- package/www/build/p-654cbe9f.entry.js.map +1 -0
- package/www/build/p-6fc4fd53.entry.js +2 -0
- package/www/build/p-6fc4fd53.entry.js.map +1 -0
- package/www/build/{p-2621b31f.entry.js → p-72356b43.entry.js} +2 -1
- package/www/build/p-72356b43.entry.js.map +1 -0
- package/www/build/p-723c700f.entry.js +2 -0
- package/www/build/p-723c700f.entry.js.map +1 -0
- package/www/build/p-72da35ee.entry.js +2 -0
- package/www/build/p-72da35ee.entry.js.map +1 -0
- package/www/build/p-7313202f.entry.js +2 -0
- package/www/build/p-7313202f.entry.js.map +1 -0
- package/www/build/p-73ed9922.entry.js +2 -0
- package/www/build/p-73ed9922.entry.js.map +1 -0
- package/www/build/p-779a7476.entry.js +2 -0
- package/www/build/p-779a7476.entry.js.map +1 -0
- package/www/build/p-7a25961e.entry.js +2 -0
- package/www/build/p-7a25961e.entry.js.map +1 -0
- package/www/build/p-7dfb5290.entry.js +2 -0
- package/www/build/p-7dfb5290.entry.js.map +1 -0
- package/www/build/p-7fff6cfd.entry.js +2 -0
- package/www/build/p-7fff6cfd.entry.js.map +1 -0
- package/www/build/p-8041306f.entry.js +2 -0
- package/www/build/p-8041306f.entry.js.map +1 -0
- package/www/build/p-8046cab0.entry.js +2 -0
- package/www/build/p-8046cab0.entry.js.map +1 -0
- package/www/build/{p-ebd8c113.entry.js → p-82c43c62.entry.js} +2 -1
- package/www/build/p-82c43c62.entry.js.map +1 -0
- package/www/build/p-82e04f79.entry.js +2 -0
- package/www/build/p-82e04f79.entry.js.map +1 -0
- package/www/build/p-87a5a352.entry.js +2 -0
- package/www/build/p-87a5a352.entry.js.map +1 -0
- package/www/build/p-8b0c232c.entry.js +2 -0
- package/www/build/p-8b0c232c.entry.js.map +1 -0
- package/www/build/p-8b1f745c.entry.js +2 -0
- package/www/build/p-8b1f745c.entry.js.map +1 -0
- package/www/build/p-8bd0e3e2.entry.js +2 -0
- package/www/build/p-8bd0e3e2.entry.js.map +1 -0
- package/www/build/p-8ca86be7.entry.js +2 -0
- package/www/build/p-8ca86be7.entry.js.map +1 -0
- package/www/build/p-8ce8d90d.entry.js +2 -0
- package/www/build/p-8ce8d90d.entry.js.map +1 -0
- package/www/build/p-927d9062.entry.js +2 -0
- package/www/build/p-927d9062.entry.js.map +1 -0
- package/www/build/p-931f2a16.entry.js +2 -0
- package/www/build/p-931f2a16.entry.js.map +1 -0
- package/www/build/p-960cd1d9.entry.js +2 -0
- package/www/build/p-960cd1d9.entry.js.map +1 -0
- package/www/build/p-9f0e91f5.entry.js +2 -0
- package/www/build/p-9f0e91f5.entry.js.map +1 -0
- package/www/build/p-AwzX9V8L.js +2 -1
- package/www/build/p-AwzX9V8L.js.map +1 -0
- package/www/build/p-B3nR3-Jw.js +2 -0
- package/www/build/p-B3nR3-Jw.js.map +1 -0
- package/www/build/p-B85MJLTf.js +2 -1
- package/www/build/p-B85MJLTf.js.map +1 -0
- package/www/build/p-BEHxru6n.js +3 -0
- package/www/build/p-BEHxru6n.js.map +1 -0
- package/www/build/p-Bx6o9v2_.js +2 -0
- package/www/build/p-Bx6o9v2_.js.map +1 -0
- package/www/build/p-C8pbzcmM.js +7 -0
- package/www/build/p-C8pbzcmM.js.map +1 -0
- package/www/build/p-CscBC1Z4.js +6 -0
- package/www/build/p-CscBC1Z4.js.map +1 -0
- package/www/build/p-Q-tWjk7P.js +2 -1
- package/www/build/p-Q-tWjk7P.js.map +1 -0
- package/www/build/p-a1db3939.entry.js +2 -0
- package/www/build/p-a1db3939.entry.js.map +1 -0
- package/www/build/p-a6f29ff5.entry.js +2 -0
- package/www/build/p-a6f29ff5.entry.js.map +1 -0
- package/www/build/p-a8e42a7c.entry.js +2 -0
- package/www/build/p-a8e42a7c.entry.js.map +1 -0
- package/www/build/p-a8fe9ae0.entry.js +2 -0
- package/www/build/p-a8fe9ae0.entry.js.map +1 -0
- package/www/build/p-ab64e360.entry.js +2 -0
- package/www/build/p-ab64e360.entry.js.map +1 -0
- package/www/build/p-acba8f34.entry.js +2 -0
- package/www/build/p-acba8f34.entry.js.map +1 -0
- package/www/build/p-ace68b04.entry.js +2 -0
- package/www/build/p-ace68b04.entry.js.map +1 -0
- package/www/build/p-ad88d4a5.entry.js +2 -0
- package/www/build/p-ad88d4a5.entry.js.map +1 -0
- package/www/build/p-ae8d5494.entry.js +2 -0
- package/www/build/p-ae8d5494.entry.js.map +1 -0
- package/www/build/p-af8fec68.entry.js +17 -0
- package/www/build/p-af8fec68.entry.js.map +1 -0
- package/www/build/p-b289ae9e.js +2 -0
- package/www/build/p-b4140668.entry.js +2 -0
- package/www/build/p-b4140668.entry.js.map +1 -0
- package/www/build/p-bff500a3.entry.js +2 -0
- package/www/build/p-bff500a3.entry.js.map +1 -0
- package/www/build/{p-c9523ede.css → p-c60c851a.css} +0 -62
- package/www/build/p-d09060af.entry.js +2 -0
- package/www/build/p-d09060af.entry.js.map +1 -0
- package/www/build/p-da213c6e.entry.js +2 -0
- package/www/build/p-da213c6e.entry.js.map +1 -0
- package/www/build/p-e4622c5d.entry.js +2 -0
- package/www/build/p-e4622c5d.entry.js.map +1 -0
- package/www/build/p-e7e98d15.entry.js +2 -0
- package/www/build/p-e7e98d15.entry.js.map +1 -0
- package/www/build/p-e87e13b0.entry.js +2 -0
- package/www/build/p-e87e13b0.entry.js.map +1 -0
- package/www/build/p-e9212c7a.entry.js +2 -0
- package/www/build/p-e9212c7a.entry.js.map +1 -0
- package/www/build/p-e9722221.entry.js +8 -0
- package/www/build/p-e9722221.entry.js.map +1 -0
- package/www/build/p-e9ed3594.entry.js +2 -0
- package/www/build/p-e9ed3594.entry.js.map +1 -0
- package/www/build/p-eb5e4333.entry.js +2 -0
- package/www/build/p-eb5e4333.entry.js.map +1 -0
- package/www/build/p-ee711acf.entry.js +2 -0
- package/www/build/p-ee711acf.entry.js.map +1 -0
- package/www/build/p-fa4e8b1b.entry.js +2 -0
- package/www/build/p-fa4e8b1b.entry.js.map +1 -0
- package/www/build/p-fe279683.entry.js +2 -0
- package/www/build/p-fe279683.entry.js.map +1 -0
- package/www/build/web-components-library.css +0 -62
- package/www/build/web-components-library.esm.js +2 -1
- package/www/build/web-components-library.esm.js.map +1 -0
- package/www/index.html +1 -1
- package/dist/cjs/utils-BY7xrW7W.js +0 -265
- package/dist/collection/components/css-components/z-table/styles.css +0 -61
- package/dist/esm/utils-BEzZQwOB.js +0 -249
- package/dist/web-components-library/p-053470ec.entry.js +0 -1
- package/dist/web-components-library/p-071d2a57.entry.js +0 -1
- package/dist/web-components-library/p-0e9e73ed.entry.js +0 -1
- package/dist/web-components-library/p-1397ebb2.entry.js +0 -1
- package/dist/web-components-library/p-13d3c53c.entry.js +0 -1
- package/dist/web-components-library/p-1418f4d2.entry.js +0 -1
- package/dist/web-components-library/p-1432864e.entry.js +0 -1
- package/dist/web-components-library/p-150171da.entry.js +0 -1
- package/dist/web-components-library/p-16d99a59.entry.js +0 -1
- package/dist/web-components-library/p-17276ae7.entry.js +0 -1
- package/dist/web-components-library/p-1afc3227.entry.js +0 -1
- package/dist/web-components-library/p-1d00c30e.entry.js +0 -1
- package/dist/web-components-library/p-263b4960.entry.js +0 -1
- package/dist/web-components-library/p-2f79d3fd.entry.js +0 -1
- package/dist/web-components-library/p-3aa12417.entry.js +0 -1
- package/dist/web-components-library/p-4170d86b.entry.js +0 -1
- package/dist/web-components-library/p-41edfbd3.entry.js +0 -1
- package/dist/web-components-library/p-420b547f.entry.js +0 -1
- package/dist/web-components-library/p-473594e3.entry.js +0 -1
- package/dist/web-components-library/p-48ef2fb1.entry.js +0 -1
- package/dist/web-components-library/p-50a15c76.entry.js +0 -16
- package/dist/web-components-library/p-5c3bc8a1.entry.js +0 -1
- package/dist/web-components-library/p-733ddcca.entry.js +0 -1
- package/dist/web-components-library/p-7648a0b0.entry.js +0 -1
- package/dist/web-components-library/p-7a58bb24.entry.js +0 -1
- package/dist/web-components-library/p-7b4ca721.entry.js +0 -1
- package/dist/web-components-library/p-7fa3211f.entry.js +0 -2
- package/dist/web-components-library/p-80eb4ada.entry.js +0 -1
- package/dist/web-components-library/p-8237255f.entry.js +0 -1
- package/dist/web-components-library/p-8711674f.entry.js +0 -1
- package/dist/web-components-library/p-90a25f58.entry.js +0 -1
- package/dist/web-components-library/p-93e2f49e.entry.js +0 -1
- package/dist/web-components-library/p-94bc612d.entry.js +0 -1
- package/dist/web-components-library/p-98165529.entry.js +0 -1
- package/dist/web-components-library/p-99d355d6.entry.js +0 -1
- package/dist/web-components-library/p-9b2589a6.entry.js +0 -1
- package/dist/web-components-library/p-9f9b9b8e.entry.js +0 -1
- package/dist/web-components-library/p-B0bOjMSb.js +0 -1
- package/dist/web-components-library/p-B8WJfd4z.js +0 -1
- package/dist/web-components-library/p-BKCj6NR2.js +0 -1
- package/dist/web-components-library/p-a0675e97.entry.js +0 -1
- package/dist/web-components-library/p-a26011c7.entry.js +0 -1
- package/dist/web-components-library/p-a336b496.entry.js +0 -1
- package/dist/web-components-library/p-a9282ee9.entry.js +0 -1
- package/dist/web-components-library/p-acd32089.entry.js +0 -1
- package/dist/web-components-library/p-addac0e0.entry.js +0 -1
- package/dist/web-components-library/p-b127d150.entry.js +0 -1
- package/dist/web-components-library/p-b64dd64c.entry.js +0 -1
- package/dist/web-components-library/p-b757d2dc.entry.js +0 -1
- package/dist/web-components-library/p-b76f39fa.entry.js +0 -1
- package/dist/web-components-library/p-b7907578.entry.js +0 -1
- package/dist/web-components-library/p-bb319405.entry.js +0 -1
- package/dist/web-components-library/p-c3a6159b.entry.js +0 -1
- package/dist/web-components-library/p-ca89f8e8.entry.js +0 -1
- package/dist/web-components-library/p-cb6af60f.entry.js +0 -1
- package/dist/web-components-library/p-d0c0e9f1.entry.js +0 -1
- package/dist/web-components-library/p-d6ff2160.entry.js +0 -1
- package/dist/web-components-library/p-d756e131.entry.js +0 -1
- package/dist/web-components-library/p-d79a7787.entry.js +0 -1
- package/dist/web-components-library/p-d7fc390f.entry.js +0 -1
- package/dist/web-components-library/p-d9998674.entry.js +0 -1
- package/dist/web-components-library/p-d9a20a51.entry.js +0 -1
- package/dist/web-components-library/p-da977942.entry.js +0 -1
- package/dist/web-components-library/p-e03fc01d.entry.js +0 -1
- package/dist/web-components-library/p-eb093728.entry.js +0 -1
- package/dist/web-components-library/p-ecf55fe6.entry.js +0 -1
- package/dist/web-components-library/p-f2ebf81b.entry.js +0 -1
- package/dist/web-components-library/p-f33d8f8d.entry.js +0 -1
- package/dist/web-components-library/p-f4082ec2.entry.js +0 -1
- package/dist/web-components-library/p-fIt9Ytc6.js +0 -2
- package/dist/web-components-library/p-fad8e9b8.entry.js +0 -1
- package/dist/web-components-library/p-fb7edb66.entry.js +0 -1
- package/dist/web-components-library/p-fea76ac6.entry.js +0 -1
- package/www/build/p-053470ec.entry.js +0 -1
- package/www/build/p-071d2a57.entry.js +0 -1
- package/www/build/p-0e9e73ed.entry.js +0 -1
- package/www/build/p-1397ebb2.entry.js +0 -1
- package/www/build/p-13d3c53c.entry.js +0 -1
- package/www/build/p-1418f4d2.entry.js +0 -1
- package/www/build/p-1432864e.entry.js +0 -1
- package/www/build/p-150171da.entry.js +0 -1
- package/www/build/p-16d99a59.entry.js +0 -1
- package/www/build/p-17276ae7.entry.js +0 -1
- package/www/build/p-1afc3227.entry.js +0 -1
- package/www/build/p-1d00c30e.entry.js +0 -1
- package/www/build/p-263b4960.entry.js +0 -1
- package/www/build/p-2f79d3fd.entry.js +0 -1
- package/www/build/p-3aa12417.entry.js +0 -1
- package/www/build/p-40eed148.js +0 -1
- package/www/build/p-4170d86b.entry.js +0 -1
- package/www/build/p-41edfbd3.entry.js +0 -1
- package/www/build/p-420b547f.entry.js +0 -1
- package/www/build/p-473594e3.entry.js +0 -1
- package/www/build/p-48ef2fb1.entry.js +0 -1
- package/www/build/p-50a15c76.entry.js +0 -16
- package/www/build/p-5c3bc8a1.entry.js +0 -1
- package/www/build/p-733ddcca.entry.js +0 -1
- package/www/build/p-7648a0b0.entry.js +0 -1
- package/www/build/p-7a58bb24.entry.js +0 -1
- package/www/build/p-7b4ca721.entry.js +0 -1
- package/www/build/p-7fa3211f.entry.js +0 -2
- package/www/build/p-80eb4ada.entry.js +0 -1
- package/www/build/p-8237255f.entry.js +0 -1
- package/www/build/p-8711674f.entry.js +0 -1
- package/www/build/p-90a25f58.entry.js +0 -1
- package/www/build/p-93e2f49e.entry.js +0 -1
- package/www/build/p-94bc612d.entry.js +0 -1
- package/www/build/p-98165529.entry.js +0 -1
- package/www/build/p-99d355d6.entry.js +0 -1
- package/www/build/p-9b2589a6.entry.js +0 -1
- package/www/build/p-9f9b9b8e.entry.js +0 -1
- package/www/build/p-B0bOjMSb.js +0 -1
- package/www/build/p-B8WJfd4z.js +0 -1
- package/www/build/p-BKCj6NR2.js +0 -1
- package/www/build/p-a0675e97.entry.js +0 -1
- package/www/build/p-a26011c7.entry.js +0 -1
- package/www/build/p-a336b496.entry.js +0 -1
- package/www/build/p-a9282ee9.entry.js +0 -1
- package/www/build/p-acd32089.entry.js +0 -1
- package/www/build/p-addac0e0.entry.js +0 -1
- package/www/build/p-b127d150.entry.js +0 -1
- package/www/build/p-b64dd64c.entry.js +0 -1
- package/www/build/p-b757d2dc.entry.js +0 -1
- package/www/build/p-b76f39fa.entry.js +0 -1
- package/www/build/p-b7907578.entry.js +0 -1
- package/www/build/p-bb319405.entry.js +0 -1
- package/www/build/p-c3a6159b.entry.js +0 -1
- package/www/build/p-ca89f8e8.entry.js +0 -1
- package/www/build/p-cb6af60f.entry.js +0 -1
- package/www/build/p-d0c0e9f1.entry.js +0 -1
- package/www/build/p-d6ff2160.entry.js +0 -1
- package/www/build/p-d756e131.entry.js +0 -1
- package/www/build/p-d79a7787.entry.js +0 -1
- package/www/build/p-d7fc390f.entry.js +0 -1
- package/www/build/p-d9998674.entry.js +0 -1
- package/www/build/p-d9a20a51.entry.js +0 -1
- package/www/build/p-da977942.entry.js +0 -1
- package/www/build/p-e03fc01d.entry.js +0 -1
- package/www/build/p-eb093728.entry.js +0 -1
- package/www/build/p-ecf55fe6.entry.js +0 -1
- package/www/build/p-f2ebf81b.entry.js +0 -1
- package/www/build/p-f33d8f8d.entry.js +0 -1
- package/www/build/p-f4082ec2.entry.js +0 -1
- package/www/build/p-fIt9Ytc6.js +0 -2
- package/www/build/p-fad8e9b8.entry.js +0 -1
- package/www/build/p-fb7edb66.entry.js +0 -1
- package/www/build/p-fea76ac6.entry.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/z-notification/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAsB,KAAK,EAAgB,IAAI,EAAE,IAAI,EAAE,CAAC,EAAC,MAAM,eAAe,CAAC;AAChG,OAAO,EAAC,gBAAgB,EAAC,MA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C,SAAS,IAAI,CACjB,+DACE,KAAK,EAAC,cAAc,EACpB,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,IAAI,CAAC,sBAAsB;oBAEpC,+DACE,IAAI,EAAC,iBAAiB,EACtB,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,GACV,CACK,CACV,CACG,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {Component, ComponentInterface, Event, EventEmitter, Host, Prop, h} from \"@stencil/core\";\nimport {NotificationType} from \"../../beans\";\n\n/**\n * Notification bar component.\n * @slot - The text of the notification.\n */\n@Component({\n tag: \"z-notification\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZNotification implements ComponentInterface {\n /** Name of the icon on the left of the content */\n @Prop()\n contenticonname?: string;\n\n /** Action button text */\n @Prop()\n actiontext?: string;\n\n /** Alert variant type */\n @Prop({reflect: true})\n type: NotificationType;\n\n /** Enable close icon */\n @Prop()\n showclose?: boolean = false;\n\n /**\n * Enable shadow.\n * @deprecated shadow is available only for the `sticky` version of the notification.\n */\n @Prop({reflect: true})\n showshadow?: boolean = false;\n\n /** Enable sticky notification bar. */\n @Prop({reflect: true})\n sticky?: boolean = false;\n\n /** Border position */\n @Prop({reflect: true})\n borderposition?: \"top\" | \"bottom\" = \"bottom\";\n\n /** Call to action clicked */\n @Event()\n notificationAction: EventEmitter;\n\n private handleActionButtonClick(e: MouseEvent): void {\n e.preventDefault();\n this.notificationAction.emit();\n }\n\n /** Close button clicked */\n @Event()\n notificationClose: EventEmitter;\n\n private handleCloseButtonClick(e: MouseEvent): void {\n e.preventDefault();\n this.notificationClose.emit();\n }\n\n constructor() {\n this.handleActionButtonClick = this.handleActionButtonClick.bind(this);\n this.handleCloseButtonClick = this.handleCloseButtonClick.bind(this);\n }\n\n render(): HTMLZNotificationElement {\n return (\n <Host>\n <div class=\"main-container\">\n {this.contenticonname && (\n <z-icon\n class=\"status-icon\"\n name={this.contenticonname}\n width={16}\n height={16}\n />\n )}\n <div class=\"content-container\">\n <div class=\"content-text\">\n <slot></slot>\n </div>\n {!!this.actiontext?.trim() && (\n <button\n class=\"action-button\"\n type=\"button\"\n onClick={this.handleActionButtonClick}\n >\n {this.actiontext}\n </button>\n )}\n </div>\n {this.showclose && (\n <button\n class=\"close-button\"\n type=\"button\"\n onClick={this.handleCloseButtonClick}\n >\n <z-icon\n name=\"multiply-circle\"\n width={16}\n height={16}\n />\n </button>\n )}\n </div>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
2
|
import { KeyboardCode, OffCanvasVariant, TransitionDirection } from "../../beans";
|
|
3
|
+
import { FocusTrapController } from "../../utils/focus-trap-controller";
|
|
4
|
+
import { ReactiveControllerHost } from "../../utils/reactive-controller";
|
|
5
|
+
import { getTabbableElements } from "../../utils/utils";
|
|
3
6
|
/**
|
|
4
7
|
* @slot canvasContent - Slot for the offcanvas content.
|
|
5
8
|
*/
|
|
6
|
-
export class ZOffcanvas {
|
|
9
|
+
export class ZOffcanvas extends ReactiveControllerHost {
|
|
7
10
|
constructor() {
|
|
8
11
|
/**
|
|
9
12
|
* Offcanvas variant.
|
|
@@ -23,64 +26,24 @@ export class ZOffcanvas {
|
|
|
23
26
|
/**
|
|
24
27
|
* Skip the opening transition when the offcanvas is already open at the first render.
|
|
25
28
|
* @deprecated This prop is not needed anymore, the component will automatically skip the transition
|
|
26
|
-
*
|
|
29
|
+
* when it starts with `open` set to `true`. Only exists for Typescript backward compatibility.
|
|
27
30
|
*/
|
|
28
31
|
this.skipLoadAnimation = false;
|
|
29
|
-
/** Whether to show the backdrop when the offcanvas is open
|
|
32
|
+
/** Whether to show the backdrop when the offcanvas is open and variant is not `pushcontent`. Default: `true` */
|
|
30
33
|
this.showBackdrop = true;
|
|
31
34
|
/** Used to skip the opening transition when the offcanvas is already open at the first render. */
|
|
32
35
|
this.skipAnimation = false;
|
|
33
|
-
this.
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Returns all focusable elements inside the offcanvas content.
|
|
38
|
-
* Elements are considered focusable if:
|
|
39
|
-
* - They are not disabled
|
|
40
|
-
* - They are visible in the layout
|
|
41
|
-
* - They have a non-negative tabIndex or an explicit tabindex="0"
|
|
42
|
-
*/
|
|
43
|
-
getFocusableElements() {
|
|
44
|
-
if (!this.canvasContent) {
|
|
45
|
-
return [];
|
|
46
|
-
}
|
|
47
|
-
const all = Array.from(this.canvasContent.querySelectorAll("*"));
|
|
48
|
-
return all.filter((el) => {
|
|
49
|
-
const tabindex = el.getAttribute("tabindex");
|
|
50
|
-
const isDisabled = el.hasAttribute("disabled");
|
|
51
|
-
const isHidden = el.offsetParent === null;
|
|
52
|
-
return !isDisabled && !isHidden && (el.tabIndex >= 0 || tabindex === "0");
|
|
36
|
+
this.focusTrapController = new FocusTrapController(this, {
|
|
37
|
+
fallbackFocus: () => this.canvasContent,
|
|
38
|
+
isActive: () => this.open && this.variant === OffCanvasVariant.OVERLAY,
|
|
53
39
|
});
|
|
40
|
+
super();
|
|
54
41
|
}
|
|
55
42
|
/**
|
|
56
|
-
*
|
|
57
|
-
* Implements circular tab navigation:
|
|
58
|
-
* - If Shift + Tab is pressed on the first focusable element, move focus to the last.
|
|
59
|
-
* - If Tab is pressed on the last focusable element, move focus to the first.
|
|
60
|
-
*/
|
|
61
|
-
trapFocus(event) {
|
|
62
|
-
if (!this.allFocusableElements.length) {
|
|
63
|
-
return;
|
|
64
|
-
}
|
|
65
|
-
const first = this.allFocusableElements[0];
|
|
66
|
-
const last = this.allFocusableElements[this.allFocusableElements.length - 1];
|
|
67
|
-
const active = document.activeElement;
|
|
68
|
-
if (event.shiftKey && active === first) {
|
|
69
|
-
event.preventDefault();
|
|
70
|
-
last.focus();
|
|
71
|
-
}
|
|
72
|
-
if (!event.shiftKey && active === last) {
|
|
73
|
-
event.preventDefault();
|
|
74
|
-
first.focus();
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Handles keyboard interactions when the offcanvas is open.
|
|
79
|
-
* - Closes the offcanvas when the Escape key is pressed.
|
|
80
|
-
* - Traps focus inside the component when the Tab key is used.
|
|
43
|
+
* Handles Escape and wrap-around Tab navigation at the focus boundaries.
|
|
81
44
|
*/
|
|
82
45
|
handleKeyDown(event) {
|
|
83
|
-
if (!this.open) {
|
|
46
|
+
if (!this.open || this.variant !== OffCanvasVariant.OVERLAY) {
|
|
84
47
|
return;
|
|
85
48
|
}
|
|
86
49
|
if (event.key === KeyboardCode.ESC) {
|
|
@@ -88,76 +51,47 @@ export class ZOffcanvas {
|
|
|
88
51
|
this.open = false;
|
|
89
52
|
return;
|
|
90
53
|
}
|
|
91
|
-
|
|
92
|
-
this.trapFocus(event);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* Stop the event default behavior and propagation when the offcanvas is closed.
|
|
97
|
-
*/
|
|
98
|
-
stopEvent(event) {
|
|
99
|
-
if (this.open) {
|
|
100
|
-
return;
|
|
101
|
-
}
|
|
102
|
-
event.preventDefault();
|
|
103
|
-
event.stopPropagation();
|
|
54
|
+
this.focusTrapController.handleWrapTab(event);
|
|
104
55
|
}
|
|
105
56
|
/**
|
|
106
|
-
*
|
|
57
|
+
* Lock the page scroll when the offcanvas is open and unlock it when the offcanvas is closed.
|
|
107
58
|
*/
|
|
108
|
-
|
|
59
|
+
handlePageScroll() {
|
|
109
60
|
const overflow = this.variant === OffCanvasVariant.OVERLAY || this.transitiondirection === TransitionDirection.UP
|
|
110
61
|
? "overflow-y"
|
|
111
62
|
: "overflow-x";
|
|
112
|
-
|
|
63
|
+
this.host.ownerDocument.body.style[overflow] = this.open ? "hidden" : "";
|
|
113
64
|
}
|
|
114
65
|
onOpenChanged() {
|
|
115
|
-
var _a, _b, _c;
|
|
116
66
|
this.canvasOpenStatusChanged.emit(this.open);
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
this.previouslyFocusedElement = document.activeElement;
|
|
120
|
-
// Move focus inside the offcanvas once it is rendered.
|
|
121
|
-
if (this.allFocusableElements.length > 0) {
|
|
122
|
-
this.allFocusableElements[0].focus();
|
|
123
|
-
}
|
|
124
|
-
else {
|
|
125
|
-
(_a = this.canvasContent) === null || _a === void 0 ? void 0 : _a.focus();
|
|
126
|
-
}
|
|
127
|
-
this.handlePageOverflow();
|
|
128
|
-
}
|
|
129
|
-
else {
|
|
130
|
-
// Restore focus to the element that was focused before the offcanvas was opened.
|
|
131
|
-
(_b = this.previouslyFocusedElement) === null || _b === void 0 ? void 0 : _b.focus();
|
|
132
|
-
// When the offcanvas is closing, wait for the transitionend event before restoring the page overflow.
|
|
133
|
-
const listenerCallback = () => {
|
|
134
|
-
this.handlePageOverflow();
|
|
135
|
-
this.canvasContainer.removeEventListener("transitionend", listenerCallback);
|
|
136
|
-
};
|
|
137
|
-
(_c = this.canvasContainer) === null || _c === void 0 ? void 0 : _c.addEventListener("transitionend", listenerCallback);
|
|
138
|
-
}
|
|
67
|
+
this.handlePageScroll();
|
|
68
|
+
this.focusTrapController.sync();
|
|
139
69
|
}
|
|
140
70
|
componentWillLoad() {
|
|
141
71
|
if (this.open) {
|
|
142
|
-
this.skipAnimation = true;
|
|
72
|
+
this.skipAnimation = true; // TODO: remove this line when `skipLoadAnimation` prop is removed.
|
|
143
73
|
}
|
|
144
|
-
|
|
145
|
-
componentDidLoad() {
|
|
146
|
-
this.handlePageOverflow();
|
|
74
|
+
return super.componentWillLoad();
|
|
147
75
|
}
|
|
148
76
|
componentDidRender() {
|
|
149
|
-
this.skipAnimation = false;
|
|
150
|
-
this.allFocusableElements = this.getFocusableElements();
|
|
77
|
+
this.skipAnimation = false; // TODO: remove this line when `skipLoadAnimation` prop is removed.
|
|
151
78
|
}
|
|
152
|
-
|
|
153
|
-
this.
|
|
79
|
+
componentDidLoad() {
|
|
80
|
+
if (this.open) {
|
|
81
|
+
this.onOpenChanged();
|
|
82
|
+
}
|
|
154
83
|
}
|
|
155
84
|
disconnectedCallback() {
|
|
156
|
-
this.
|
|
85
|
+
this.handlePageScroll();
|
|
86
|
+
super.disconnectedCallback();
|
|
157
87
|
}
|
|
158
88
|
render() {
|
|
159
|
-
return (h(Host, { key: '
|
|
160
|
-
this.showBackdrop && (h("div", { key: '
|
|
89
|
+
return (h(Host, { key: '7296200f4eb4aa2f332af790ea04d6e6e78e824c', "skip-animation": this.skipAnimation, "aria-hidden": !this.open ? "true" : null, "aria-modal": this.open && this.variant === OffCanvasVariant.OVERLAY ? "true" : null, role: this.open && this.variant === OffCanvasVariant.OVERLAY ? "dialog" : null }, h("div", { key: '8aef7db88fcecdc89484aad70c3a30973dbf17d8', class: "canvas-container" }, h("div", { key: 'ca715459c24fe5256987efd279db222446186692', class: "canvas-content z-scrollbar", ref: (el) => (this.canvasContent = el), tabIndex: getTabbableElements(this.host).length ? undefined : -1 }, h("slot", { key: 'a365eb11a346deaa1d93deee0e0625858070296e', name: "canvasContent" }))), (this.variant == OffCanvasVariant.OVERLAY || this.transitiondirection === TransitionDirection.UP) &&
|
|
90
|
+
this.showBackdrop && (h("div", { key: '4e918c25bda62190bc87720ceb3269d99bd4ad5d', class: "backdrop", onClick: (ev) => {
|
|
91
|
+
ev.preventDefault();
|
|
92
|
+
ev.stopPropagation();
|
|
93
|
+
this.open = false;
|
|
94
|
+
} }))));
|
|
161
95
|
}
|
|
162
96
|
static get is() { return "z-offcanvas"; }
|
|
163
97
|
static get encapsulation() { return "scoped"; }
|
|
@@ -282,7 +216,7 @@ export class ZOffcanvas {
|
|
|
282
216
|
"optional": false,
|
|
283
217
|
"docs": {
|
|
284
218
|
"tags": [],
|
|
285
|
-
"text": "Whether to show the backdrop when the offcanvas is open
|
|
219
|
+
"text": "Whether to show the backdrop when the offcanvas is open and variant is not `pushcontent`. Default: `true`"
|
|
286
220
|
},
|
|
287
221
|
"getter": false,
|
|
288
222
|
"setter": false,
|
|
@@ -309,16 +243,20 @@ export class ZOffcanvas {
|
|
|
309
243
|
"text": "emitted when `open` prop changes"
|
|
310
244
|
},
|
|
311
245
|
"complexType": {
|
|
312
|
-
"original": "
|
|
313
|
-
"resolved": "
|
|
246
|
+
"original": "boolean",
|
|
247
|
+
"resolved": "boolean",
|
|
314
248
|
"references": {}
|
|
315
249
|
}
|
|
316
250
|
}];
|
|
317
251
|
}
|
|
252
|
+
static get elementRef() { return "host"; }
|
|
318
253
|
static get watchers() {
|
|
319
254
|
return [{
|
|
320
255
|
"propName": "variant",
|
|
321
|
-
"methodName": "
|
|
256
|
+
"methodName": "handlePageScroll",
|
|
257
|
+
"handlerOptions": {
|
|
258
|
+
"immediate": true
|
|
259
|
+
}
|
|
322
260
|
}, {
|
|
323
261
|
"propName": "open",
|
|
324
262
|
"methodName": "onOpenChanged"
|
|
@@ -331,18 +269,7 @@ export class ZOffcanvas {
|
|
|
331
269
|
"target": "document",
|
|
332
270
|
"capture": false,
|
|
333
271
|
"passive": false
|
|
334
|
-
}, {
|
|
335
|
-
"name": "click",
|
|
336
|
-
"method": "stopEvent",
|
|
337
|
-
"target": undefined,
|
|
338
|
-
"capture": true,
|
|
339
|
-
"passive": false
|
|
340
|
-
}, {
|
|
341
|
-
"name": "focusin",
|
|
342
|
-
"method": "stopEvent",
|
|
343
|
-
"target": undefined,
|
|
344
|
-
"capture": true,
|
|
345
|
-
"passive": false
|
|
346
272
|
}];
|
|
347
273
|
}
|
|
348
274
|
}
|
|
275
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/z-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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {Component, Element, Event, EventEmitter, Host, Listen, Prop, State, Watch, h} from \"@stencil/core\";\nimport {KeyboardCode, OffCanvasVariant, TransitionDirection} from \"../../beans\";\nimport {FocusTrapController} from \"../../utils/focus-trap-controller\";\nimport {ReactiveControllerHost} from \"../../utils/reactive-controller\";\nimport {getTabbableElements} from \"../../utils/utils\";\n\n/**\n * @slot canvasContent - Slot for the offcanvas content.\n */\n@Component({\n tag: \"z-offcanvas\",\n styleUrl: \"styles.css\",\n shadow: false,\n scoped: true,\n})\nexport class ZOffcanvas extends ReactiveControllerHost {\n @Element() host: HTMLZOffcanvasElement;\n\n /**\n * Offcanvas variant.\n * - `overlay`: The offcanvas covers the page content putting an overlay.\n * - `pushcontent`: The offcanvas isn't absolutely positioned and \"pushes\" the page content.\n * > NB: `pushcontent` variant may need some extra style tuning of the context around the component to work properly.\n * Also, the `pushcontent` variant doesn't have the open/close transition.\n */\n @Prop({reflect: true})\n variant?: OffCanvasVariant = OffCanvasVariant.PUSHCONTENT;\n\n /** Whether the offcanvas is open. Default: false */\n @Prop({reflect: true, mutable: true})\n open = false;\n\n /**\n * Open the content transitioning to a specified direction.\n * The `up` direction always show the `overlay`, also when the variant is `pushcontent`.\n */\n @Prop({reflect: true})\n transitiondirection?: TransitionDirection = TransitionDirection.LEFT;\n\n /**\n * Skip the opening transition when the offcanvas is already open at the first render.\n * @deprecated This prop is not needed anymore, the component will automatically skip the transition\n * when it starts with `open` set to `true`. Only exists for Typescript backward compatibility.\n */\n @Prop()\n skipLoadAnimation = false;\n\n /** Whether to show the backdrop when the offcanvas is open and variant is not `pushcontent`. Default: `true` */\n @Prop()\n showBackdrop = true;\n\n /** emitted when `open` prop changes */\n @Event()\n canvasOpenStatusChanged: EventEmitter<boolean>;\n\n /** Used to skip the opening transition when the offcanvas is already open at the first render. */\n @State()\n private skipAnimation = false;\n\n private canvasContent: HTMLElement;\n\n private focusTrapController = new FocusTrapController(this, {\n fallbackFocus: () => this.canvasContent,\n isActive: () => this.open && this.variant === OffCanvasVariant.OVERLAY,\n });\n\n /**\n * Handles Escape and wrap-around Tab navigation at the focus boundaries.\n */\n @Listen(\"keydown\", {target: \"document\"})\n handleKeyDown(event: KeyboardEvent): void {\n if (!this.open || this.variant !== OffCanvasVariant.OVERLAY) {\n return;\n }\n\n if (event.key === KeyboardCode.ESC) {\n event.preventDefault();\n this.open = false;\n\n return;\n }\n\n this.focusTrapController.handleWrapTab(event);\n }\n\n /**\n * Lock the page scroll when the offcanvas is open and unlock it when the offcanvas is closed.\n */\n @Watch(\"variant\", {immediate: true})\n private handlePageScroll(): void {\n const overflow =\n this.variant === OffCanvasVariant.OVERLAY || this.transitiondirection === TransitionDirection.UP\n ? \"overflow-y\"\n : \"overflow-x\";\n\n this.host.ownerDocument.body.style[overflow] = this.open ? \"hidden\" : \"\";\n }\n\n @Watch(\"open\")\n onOpenChanged(): void {\n this.canvasOpenStatusChanged.emit(this.open);\n\n this.handlePageScroll();\n this.focusTrapController.sync();\n }\n\n componentWillLoad() {\n if (this.open) {\n this.skipAnimation = true; // TODO: remove this line when `skipLoadAnimation` prop is removed.\n }\n\n return super.componentWillLoad();\n }\n\n componentDidRender() {\n this.skipAnimation = false; // TODO: remove this line when `skipLoadAnimation` prop is removed.\n }\n\n componentDidLoad() {\n if (this.open) {\n this.onOpenChanged();\n }\n }\n\n disconnectedCallback() {\n this.handlePageScroll();\n super.disconnectedCallback();\n }\n\n render(): HTMLZOffcanvasElement {\n return (\n <Host\n skip-animation={this.skipAnimation}\n aria-hidden={!this.open ? \"true\" : null}\n aria-modal={this.open && this.variant === OffCanvasVariant.OVERLAY ? \"true\" : null}\n role={this.open && this.variant === OffCanvasVariant.OVERLAY ? \"dialog\" : null}\n >\n <div class=\"canvas-container\">\n <div\n class=\"canvas-content z-scrollbar\"\n ref={(el) => (this.canvasContent = el)}\n tabIndex={getTabbableElements(this.host).length ? undefined : -1} // allows the div to programmatically receive focus when there are no focusable elements inside, necessary for the focus trap to work properly\n >\n <slot name=\"canvasContent\"></slot>\n </div>\n </div>\n {(this.variant == OffCanvasVariant.OVERLAY || this.transitiondirection === TransitionDirection.UP) &&\n this.showBackdrop && (\n <div\n class=\"backdrop\"\n onClick={(ev) => {\n ev.preventDefault();\n ev.stopPropagation();\n this.open = false;\n }}\n ></div>\n )}\n </Host>\n );\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/z-pagination/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAET,OAAO,EACP,KAAK,EAEL,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,KAAK,EACL,KAAK,EACL,CAAC,GACF,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AAEtC;;GAEG;AAKH,MAAM,OAAO,WAAW;IAJxB;QAWE,gCAAgC;QAEhC,cAAS,GAAG,IAAI,CAAC;QAMjB,+BAA+B;QAE/B,SAAI,GAAG,CAAC,CAAC;QAET,wDAAwD;QAExD,UAAK,GAAG,KAAK,CAAC;QAUd,oBAAoB;QAEpB,gBAAW,GAAG,CAAC,CAAC;QAMhB;;;;;WAKG;QAEK,kBAAa,GAAG,IAAI,CAAC,YAAY,CAAC;QAE1C,wEAAwE;QAExE,aAAQ,GAAG,KAAK,CAAC;QAEjB,oCAAoC;QAEpC,kBAAa,GAAG,IAAI,CAAC;KAiZtB;IA3YC;;OAEG;IAEH,sBAAsB;QACpB,IAAI,CAAC,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;YACtC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,2CAA2C,EAAE,MAAM,CAAC,CAAC;YAEjF,OAAO;QACT,CAAC;QAED,MAAM,mBAAmB,GAAG,M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n Host,\n Listen,\n Prop,\n State,\n Watch,\n h,\n} from \"@stencil/core\";\nimport {InputType} from \"../../beans\";\n\n/**\n * Pagination bar component.\n */\n@Component({\n tag: \"z-pagination\",\n styleUrl: \"styles.css\",\n})\nexport class ZPagination implements ComponentInterface {\n @Element() host: HTMLZPaginationElement;\n\n /** Pagination label placed before the bar. */\n @Prop()\n label?: string;\n\n /** Enable navigation arrows. */\n @Prop()\n navArrows = true;\n\n /** Total number of pages. Required. */\n @Prop()\n totalPages!: number;\n\n /** Number of pages to skip. */\n @Prop()\n skip = 0;\n\n /** Enable buttons to go to the first and last pages. */\n @Prop()\n edges = false;\n\n /** Number of pages to show left/right of the current, before showing \"load more\" symbol (…). */\n @Prop()\n split?: number;\n\n /** Number of pages to show at a time. If not set, all pages will be shown. */\n @Prop()\n visiblePages?: number;\n\n /** Current page. */\n @Prop({mutable: true})\n currentPage = 1;\n\n /** Whether to show \"go to page\" feature. */\n @Prop()\n goToPage: boolean;\n\n /**\n * Internal visible pages variable.\n * Needed to better handle conflicting props like `visiblePages` and `split`.\n * This state will change based on props values and validation,\n * keeping original `visiblePages` value intact.\n */\n @State()\n private _visiblePages = this.visiblePages;\n\n /** Used to hides/change some functionalities on smaller screen sizes */\n @State()\n isMobile = false;\n\n /** Value of the go to page input */\n @State()\n goToPageValue = null;\n\n /** Event emitted when the current page has changed. */\n @Event()\n pageChanged: EventEmitter;\n\n /**\n * Set the max width of the pages container.\n */\n @Watch(\"_visiblePages\")\n setPagesContainerWidth(): void {\n if (!this._visiblePages || this.split) {\n this.host.style.setProperty(\"--z-pagination--pages-container-max-width\", \"100%\");\n\n return;\n }\n\n const pagesContainerStyle = window.getComputedStyle(this.host);\n const pageButtonWidth = pagesContainerStyle.getPropertyValue(\"--z-pagination--page-button-width\");\n this.host.style.setProperty(\n \"--z-pagination--pages-container-max-width\",\n `calc(${pageButtonWidth} * ${this._visiblePages})`\n );\n }\n\n /**\n * Set visible pages.\n * Ensure that the visible pages are always <= the total pages.\n * If `visiblePages` isn't set, fallback to the total pages.\n */\n @Watch(\"visiblePages\")\n setVisiblePages(): void {\n this._visiblePages = Math.min(this.visiblePages || this.totalPages, this.totalPages);\n }\n\n /**\n * On page changed.\n * @emits pageChanged\n */\n @Watch(\"currentPage\")\n onPageChanged(): void {\n this.pageChanged.emit(this.currentPage);\n this.scrollToPage();\n }\n\n /**\n * On split changed.\n * Empty `edges` value. The split feature wins over the pages chunks and edges.\n */\n @Watch(\"split\")\n onSplitChanged(): void {\n if (this.split) {\n this.edges = false;\n }\n }\n\n /**\n * Hide stuff on mobile.\n */\n @Listen(\"resize\", {target: \"window\", passive: true})\n onResize(): void {\n this.setMobile();\n }\n\n /**\n * Set functionalities according to screen size.\n */\n private setMobile(): void {\n const mobileMediaQuery = \"screen and (max-width: 767px)\";\n this.isMobile = window.matchMedia(mobileMediaQuery).matches;\n }\n\n /**\n * Get a list of pages chunks, each of `visiblePages` length.\n * @returns {number[][]}\n */\n private getPagesChunks(): number[][] {\n // array of numbers from 1 to `totalPages`\n const pages = Array.from({length: this.totalPages}, (_, i) => i + 1);\n\n const chunks = [];\n const chunksCount = Math.ceil(pages.length / this._visiblePages);\n for (let index = 0; index < chunksCount; index++) {\n chunks.push(pages.slice(index * this._visiblePages, (index + 1) * this._visiblePages));\n }\n\n return chunks;\n }\n\n /**\n * Scroll to the left the chunk of pages containing the current page.\n */\n private scrollToPage(): void {\n const container = this.host.querySelector(\".pages-container\") as HTMLElement;\n const pageBtn = this.host.querySelector(`[data-page=\"${this.currentPage}\"]`) as HTMLElement;\n const navBtn = this.host.querySelector(\".navigation-button\") as HTMLElement;\n\n if (!pageBtn || !container) {\n return;\n }\n\n const containerWidth = container.getBoundingClientRect().width;\n const pageBtnWidth = pageBtn.getBoundingClientRect().width;\n const navBtnWidth = navBtn?.getBoundingClientRect()?.width ?? 0;\n\n container.scrollLeft = this.currentPage * pageBtnWidth - navBtnWidth - containerWidth / 2;\n }\n\n /**\n * Select a page.\n * Do validations on the passed value before assigning it to `currentPage`.\n * @param {number} page Page number to set\n */\n private selectPage(page): void {\n this.currentPage = Math.min(Math.max(page, 1), this.totalPages);\n }\n\n /**\n * Render page number button.\n * @param {number} page Page number to render\n * @returns {HTMLButtonElement}\n */\n private renderPage(page): HTMLButtonElement {\n return (\n <button\n class=\"page-button\"\n type=\"button\"\n aria-current={this.currentPage === page ? \"page\" : \"false\"}\n title={`Vai alla pagina ${page}`}\n data-page={page}\n data-current={this.currentPage === page}\n onClick={() => this.selectPage(page)}\n >\n {page}\n </button>\n );\n }\n\n /**\n * Render split button.\n * @param {number} page Page to select on click.\n * @returns {HTMLButtonElement}\n */\n private renderEllipsisButton(page): HTMLButtonElement {\n return (\n <button\n class=\"ellipsis-button\"\n type=\"button\"\n title={`Vai alla pagina ${page}`}\n onClick={() => this.selectPage(page)}\n >\n …\n </button>\n );\n }\n\n /**\n * Render chunked page buttons.\n * @returns {HTMLDivElement[]}\n */\n private renderPages(): HTMLDivElement[] {\n const pagesChunks = this.getPagesChunks();\n if (pagesChunks.length <= 0) {\n return;\n }\n\n return pagesChunks.map((chunk) => <div class=\"pages-chunk\">{chunk.map((page) => this.renderPage(page))}</div>);\n }\n\n /**\n * Render page buttons when split feature is enabled.\n * @returns {HTMLButtonElement[]}\n */\n private renderSplitPages(): HTMLButtonElement[] {\n // left and right split pages, current page, first and last page, left and right ellipsis button\n if (this.totalPages <= this.split * 2 + 5) {\n // Too few pages: ellipsis will never be rendered, so let's just render all pages and that's it.\n return Array.from({length: this.totalPages}, (_, i) => this.renderPage(i + 1));\n }\n\n if (this.currentPage <= this.split * 2 + 2) {\n // Render first (2 * split + 3) pages, ellipsis, then last page.\n return [\n ...Array.from({length: this.split * 2 + 3}, (_, i) => this.renderPage(i + 1)),\n this.renderEllipsisButton(this.split * 2 + 4),\n this.renderPage(this.totalPages),\n ];\n }\n\n if (this.currentPage > this.split * 2 + 2 && this.currentPage < this.totalPages - this.split * 2 - 1) {\n // Render first page, ellipsis, current page surrounded by (split) pages both before and after, another ellipsis, then last page.\n return [\n this.renderPage(1),\n this.renderEllipsisButton(this.currentPage - this.split - 1),\n ...Array.from({length: this.split * 2 + 1}, (_, i) => this.renderPage(this.currentPage - this.split + i)),\n this.renderEllipsisButton(this.currentPage + this.split + 1),\n this.renderPage(this.totalPages),\n ];\n }\n\n // Render first page, ellipsis, then last (2 * split + 3) pages.\n return [\n this.renderPage(1),\n this.renderEllipsisButton(this.totalPages - this.split * 2 - 3),\n ...Array.from({length: this.split * 2 + 3}, (_, i) => this.renderPage(this.totalPages - this.split * 2 - 2 + i)),\n ];\n }\n\n private renderBackButton(): HTMLButtonElement {\n return (\n <button\n class=\"navigation-button\"\n type=\"button\"\n aria-label=\"Vai alla pagina precedente\"\n title=\"Vai alla pagina precedente\"\n disabled={this.currentPage === 1}\n onClick={() => this.selectPage(this.currentPage - 1)}\n >\n <z-icon name=\"chevron-left\"></z-icon>\n </button>\n );\n }\n\n private renderForwardButton(): HTMLButtonElement {\n return (\n <button\n class=\"navigation-button\"\n type=\"button\"\n aria-label=\"Vai alla prossima pagina\"\n title=\"Vai alla prossima pagina\"\n disabled={this.currentPage === this.totalPages}\n onClick={() => this.selectPage(this.currentPage + 1)}\n >\n <z-icon name=\"chevron-right\"></z-icon>\n </button>\n );\n }\n\n private renderMobile(): HTMLElement[] {\n const pagesChunks = this.getPagesChunks();\n\n return [\n this.label && <span class=\"page-label body-1-sb\">{this.label}</span>,\n\n <div class=\"pagination-bar\">\n {this.renderBackButton()}\n\n {!this.goToPage && (\n <div\n class=\"pages-container\"\n role=\"navigation\"\n tabIndex={-1}\n >\n {pagesChunks.length > 0 &&\n pagesChunks.map((chunk) => <div class=\"pages-chunk\">{chunk.map((page) => this.renderPage(page))}</div>)}\n </div>\n )}\n\n {this.goToPage && (\n <form\n class=\"mobile-go-to-page\"\n onSubmit={(ev) => {\n ev.preventDefault();\n this.selectPage(this.goToPageValue);\n }}\n >\n <z-input\n class=\"go-to-page-input\"\n type={InputType.NUMBER}\n min={1}\n max={this.totalPages}\n message={false}\n onInput={(ev: InputEvent) => {\n this.goToPageValue = (ev.target as HTMLZInputElement).value;\n }}\n placeholder={this.currentPage.toString()}\n hasclearicon={false}\n ></z-input>\n <span>{`/${this.totalPages}`}</span>\n </form>\n )}\n\n {this.renderForwardButton()}\n </div>,\n ];\n }\n\n componentDidLoad(): void {\n this.setVisiblePages();\n }\n\n componentDidRender(): void {\n if (this.split) {\n this.edges = false;\n }\n\n this.setPagesContainerWidth();\n this.setMobile();\n this.scrollToPage();\n }\n\n render(): HTMLZPaginationElement {\n if (this.isMobile) {\n return <Host>{this.renderMobile()}</Host>;\n }\n\n return (\n <Host>\n <div class=\"pagination-bar\">\n {this.label && <span class=\"page-label body-1-sb\">{this.label}</span>}\n\n {this.edges && (\n <button\n class=\"pagination-button\"\n type=\"button\"\n title=\"Vai alla pagina 1\"\n disabled={this.currentPage === 1}\n onClick={() => this.selectPage(1)}\n >\n Pagina 1\n </button>\n )}\n\n {this.skip < this.totalPages && this.skip > 1 && (\n <button\n class=\"pagination-button\"\n type=\"button\"\n title={`Vai alla pagina ${this.currentPage - this.skip}`}\n disabled={this.currentPage <= this.skip}\n onClick={() => this.selectPage(this.currentPage - this.skip)}\n >\n -{this.skip}\n </button>\n )}\n\n {this.navArrows && this.renderBackButton()}\n\n <div\n class=\"pages-container\"\n role=\"navigation\"\n tabIndex={-1}\n >\n {this.split ? this.renderSplitPages() : this.renderPages()}\n </div>\n\n {this.navArrows && this.renderForwardButton()}\n\n {this.skip < this.totalPages && this.skip > 1 && (\n <button\n class=\"pagination-button\"\n type=\"button\"\n title={`Vai alla pagina ${this.currentPage + this.skip}`}\n disabled={this.currentPage > this.totalPages - this.skip}\n onClick={() => this.selectPage(this.currentPage + this.skip)}\n >\n +{this.skip}\n </button>\n )}\n\n {this.edges && (\n <button\n class=\"pagination-button\"\n type=\"button\"\n title={`Vai alla pagina ${this.totalPages}`}\n disabled={this.currentPage === this.totalPages}\n onClick={() => this.selectPage(this.totalPages)}\n >\n Pagina {this.totalPages}\n </button>\n )}\n </div>\n {this.goToPage && (\n <div class=\"go-to-page\">\n <span class=\"z-label body-5-sb\">Vai a pagina:</span>\n <div class=\"inputs\">\n <z-input\n class=\"go-to-page-input\"\n type={InputType.NUMBER}\n min={1}\n max={this.totalPages}\n message={false}\n placeholder=\"2\"\n hasclearicon={false}\n onInput={(ev: InputEvent) => {\n this.goToPageValue = (ev.target as HTMLZInputElement).value;\n }}\n onKeyDown={(ev) => ev.key === \"Enter\" && this.selectPage(this.goToPageValue)}\n ></z-input>\n <z-button\n disabled={!this.goToPageValue}\n title=\"Vai alla pagina inserita\"\n onClick={() => this.selectPage(this.goToPageValue)}\n >\n vai\n </z-button>\n </div>\n </div>\n )}\n </Host>\n );\n }\n}\n"]}
|
|
@@ -11,12 +11,12 @@ export class ZPanelElem {
|
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
13
|
const elemId = this.elemid ? this.elemid : "";
|
|
14
|
-
return (h("div", { key: '
|
|
14
|
+
return (h("div", { key: '46e51aca7f95d8725e6dcdc8c59827ff746bb1eb', class: "panel-elem-container" }, (this.imgurl || this.imgalt) && (h("div", { key: '70da90dd66acdd19751cd3b80834d151857497be', "aria-hidden": "true", class: "panel-elem-icon" }, h("img", { key: '5f44b565c0fffe7056ec217066c9ffd1ad2aa5ec', src: this.imgurl, alt: this.imgalt }))), h("div", { key: 'dd425e4fb93951570cd66f605c6e39cb12234646', class: "panel-elem-link" }, h("a", { key: 'ac7e5734b47ead56cc3d2e0ecf7eb81eb3e0dd18', class: {
|
|
15
15
|
"z-link": true,
|
|
16
16
|
"z-link-disabled": this.isdisabled,
|
|
17
17
|
"z-link-icon": true,
|
|
18
18
|
"z-link-blue": true,
|
|
19
|
-
}, id: elemId + "link_id", href: this.url, target: this.target }, h("z-icon", { key: '
|
|
19
|
+
}, id: elemId + "link_id", href: this.url, target: this.target }, h("z-icon", { key: '405152dd34d8aaacee615f0ec8302d2c305e3dc3', height: 14, width: 14, name: this.linkicon }), this.linklabel)), this.descrSlotName && (h("div", { key: '1ce8a5eda374656fe7bdd750d2be29f65d102395', class: "panel-elem-desc" }, h("slot", { key: 'fb7f00494aad2bc3228fdc2221d329ec52460676', name: this.descrSlotName })))));
|
|
20
20
|
}
|
|
21
21
|
static get is() { return "z-panel-elem"; }
|
|
22
22
|
static get encapsulation() { return "scoped"; }
|
|
@@ -208,3 +208,4 @@ export class ZPanelElem {
|
|
|
208
208
|
};
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/z-panel-elem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAsB,IAAI,EAAE,CAAC,EAAC,MAAM,eAAe,CAAC;AAErE;;GAEG;AAOH,MAAM,OAAO,UAAU;IANvB;QA+BE,6BAA6B;QAE7B,WAAM,GAAY,QAAQ,CAAC;QAE3B,sCAAsC;QAEtC,eAAU,GAAa,KAAK,CAAC;KAkD9B;IA5CC,MAAM;QACJ,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;QAE9C,OAAO,CACL,4DAAK,KAAK,EAAC,sBAAsB;YAC9B,CAAC,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,CAC/B,2EACc,MAAM,EAClB,KAAK,EAAC,iBAAiB;gBAEvB,4DACE,GAAG,EAAE,IAAI,CAAC,MAAM,EAChB,GAAG,EAAE,IAAI,CAAC,MAAM,GAChB,CACE,CACP;YACD,4DAAK,KAAK,EAAC,iBAAiB;gBAC1B,0DACE,KAAK,EAAE;wBACL,QAAQ,EAAE,IAAI;wBACd,iBAAiB,EAAE,IAAI,CAAC,UAAU;wBAClC,aAAa,EAAE,IAAI;wBACnB,aAAa,EAAE,IAAI;qBACpB,EACD,EAAE,EAAE,MAAM,GAAG,SAAS,EACtB,IAAI,EAAE,IAAI,CAAC,GAAG,EACd,MAAM,EAAE,IAAI,CAAC,MAAM;oBAEnB,+DACE,MAAM,EAAE,EAAE,EACV,KAAK,EAAE,EAAE,EACT,IAAI,EAAE,IAAI,CAAC,QAAQ,GACX;oBACT,IAAI,CAAC,SAAS,CACb,CACA;YACL,IAAI,CAAC,aAAa,IAAI,CACrB,4DAAK,KAAK,EAAC,iBAAiB;gBAC1B,6DAAM,IAAI,EAAE,IAAI,CAAC,aAAa,GAAI,CAC9B,CACP,CACG,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {Component, ComponentInterface, Prop, h} from \"@stencil/core\";\n\n/**\n * @slot `descrSlotName` - description content\n */\n@Component({\n tag: \"z-panel-elem\",\n styleUrl: \"styles.css\",\n shadow: false,\n scoped: true,\n})\nexport class ZPanelElem implements ComponentInterface {\n /** html element id (optional) */\n @Prop()\n elemid?: string;\n\n /** image url source (optional) */\n @Prop()\n imgurl?: string;\n\n /** alternative image text (optional) */\n @Prop()\n imgalt?: string;\n\n /** icon link name (optional) */\n @Prop()\n linkicon?: string;\n\n /** link label text*/\n @Prop()\n linklabel: string;\n\n /** link url */\n @Prop()\n url: string;\n\n /** link target (optional) */\n @Prop()\n target?: string = \"_blank\";\n\n /** disabled status flag (optional) */\n @Prop()\n isdisabled?: boolean = false;\n\n /** name of slot container (optional) */\n @Prop()\n descrSlotName?: string;\n\n render(): HTMLDivElement {\n const elemId = this.elemid ? this.elemid : \"\";\n\n return (\n <div class=\"panel-elem-container\">\n {(this.imgurl || this.imgalt) && (\n <div\n aria-hidden=\"true\"\n class=\"panel-elem-icon\"\n >\n <img\n src={this.imgurl}\n alt={this.imgalt}\n />\n </div>\n )}\n <div class=\"panel-elem-link\">\n <a\n class={{\n \"z-link\": true,\n \"z-link-disabled\": this.isdisabled,\n \"z-link-icon\": true,\n \"z-link-blue\": true,\n }}\n id={elemId + \"link_id\"}\n href={this.url}\n target={this.target}\n >\n <z-icon\n height={14}\n width={14}\n name={this.linkicon}\n ></z-icon>\n {this.linklabel}\n </a>\n </div>\n {this.descrSlotName && (\n <div class=\"panel-elem-desc\">\n <slot name={this.descrSlotName} />\n </div>\n )}\n </div>\n );\n }\n}\n"]}
|
|
@@ -507,7 +507,7 @@ export class ZPopover {
|
|
|
507
507
|
cancelAnimationFrame(this.animationFrameRequestId);
|
|
508
508
|
}
|
|
509
509
|
render() {
|
|
510
|
-
return (h(Host, { key: '
|
|
510
|
+
return (h(Host, { key: '7fbbbdd9f347c6b5159070e3c6e59748d6fc93f1', "current-position": this.currentPosition }, h("slot", { key: 'f23968908e927fb14a32b74834918aa837f984cd' })));
|
|
511
511
|
}
|
|
512
512
|
static get is() { return "z-popover"; }
|
|
513
513
|
static get encapsulation() { return "shadow"; }
|
|
@@ -745,3 +745,4 @@ ZPopover.positionOrder = [
|
|
|
745
745
|
PopoverPosition.LEFT_TOP,
|
|
746
746
|
PopoverPosition.LEFT_BOTTOM,
|
|
747
747
|
];
|
|
748
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/z-popover/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAET,OAAO,EACP,KAAK,EAEL,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,KAAK,EACL,KAAK,EACL,CAAC,GACF,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,MAAM,EAAE,YAAY,EAAE,eAAe,EAAC,MAAM,aAAa,CAAC;AAClE,OAAO,EACL,e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eAAe,CAAC,SAAS;IACzB,eAAe,CAAC,MAAM;IACtB,eAAe,CAAC,WAAW;IAC3B,eAAe,CAAC,YAAY;IAC5B,eAAe,CAAC,IAAI;IACpB,eAAe,CAAC,QAAQ;IACxB,eAAe,CAAC,WAAW;CACnB,AAb2B,CAa1B","sourcesContent":["import {\n Component,\n ComponentInterface,\n Element,\n Event,\n EventEmitter,\n Host,\n Listen,\n Prop,\n State,\n Watch,\n h,\n} from \"@stencil/core\";\nimport {Device, KeyboardCode, PopoverPosition} from \"../../beans\";\nimport {\n containsElement,\n findContainingBlockAncestor,\n getDevice,\n getParentElement,\n isElementVisibleInContainer,\n} from \"../../utils/utils\";\n\n/** Centering offset modifier. 0 for no offset, 0.5 for centering. */\ntype OffsetModifier = 0 | 0.5;\ntype Offsets = {top: number; right: number; bottom: number; left: number};\n\n/**\n * Popover component.\n * This component displays a popover bound to an element.\n * It supports various positions and can automatically adjust it based on available space, accounting for scrollable containers.\n *\n * Notes:\n * - If positioning has an odd behavior, consider manually adjusting the size of the slotted elements (using `width`, `height`, `max-width`, `max-height`, etc...) when its content is \"fluid\" (like text), because it can interfere with the position calculation (for example a long text on one single line can be bigger than the available space, letting the algorithm think the popover doesn't fits).\n */\n@Component({\n tag: \"z-popover\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZPopover implements ComponentInterface {\n /**\n * The preferred position to render the popover.\n * The popover will automatically search another position if not enough space is available for the preferred position.\n * If the preferred position is not available, it will try to find the best position starting from `TOP` and going clockwise.\n */\n @Prop({reflect: true, mutable: true})\n position?: PopoverPosition = PopoverPosition.TOP;\n\n /**\n * The initial open state of the popover.\n * Internal changes of this prop are emitted through the `openChange` event.\n * Make sure to listen to that event if you need the updated state of the popover from the outside, to avoid inconsistent values.\n */\n @Prop({reflect: true, mutable: true})\n open = false;\n\n /**\n * The selector or the element bound with the popover.\n * If string css selector is provided make sure to use a valid selector.\n */\n @Prop()\n bindTo?: string | HTMLElement;\n\n /** Whether to show popover's arrow. */\n @Prop({reflect: true})\n showArrow = false;\n\n /** Whether to center the popup on the main side (according to \"position\"). */\n @Prop({reflect: true})\n center = false;\n\n /**\n * Whether the popover can be closed by clicking outside of it or pressing the escape key.\n * Otherwise, it will be closed only programmatically (by setting `open` to `false`).\n * Default: `true`.\n */\n @Prop()\n closable = true;\n\n /**\n * The current position of the popover.\n * It differs from `position` only when calculated automatically for space reasons.\n */\n @State()\n currentPosition?: PopoverPosition;\n\n @Element() host: HTMLZPopoverElement;\n\n // Clockwise order of positions.\n private static readonly positionOrder: PopoverPosition[] = [\n PopoverPosition.TOP,\n PopoverPosition.TOP_RIGHT,\n PopoverPosition.TOP_LEFT,\n PopoverPosition.RIGHT,\n PopoverPosition.RIGHT_BOTTOM,\n PopoverPosition.RIGHT_TOP,\n PopoverPosition.BOTTOM,\n PopoverPosition.BOTTOM_LEFT,\n PopoverPosition.BOTTOM_RIGHT,\n PopoverPosition.LEFT,\n PopoverPosition.LEFT_TOP,\n PopoverPosition.LEFT_BOTTOM,\n ] as const;\n\n private animationFrameRequestId?: number;\n\n /** space tolerance for space calculations */\n private readonly spaceTolerance = 3;\n\n /** The element bound to the popover. */\n private boundElement?: HTMLElement;\n\n /** Cached available space around the bound element to avoid unnecessary recalculations */\n private cachedAvailableSpace?: Offsets;\n\n /** Last bounding rect of the bound element to detect changes and eventually invalidate the caches. */\n private lastBoundRect?: DOMRect;\n\n /** Fired when the position changes. */\n @Event()\n positionChange: EventEmitter<{position: PopoverPosition}>;\n\n /** Event emitted when the open state of the popover changes (e.g. when the user clicks outside the popover to close it, if `closable` is true). */\n @Event()\n openChange: EventEmitter<{open: boolean}>;\n\n @Listen(\"keyup\", {target: \"window\", capture: true})\n closePopoverWithKeyboard(e: KeyboardEvent): void {\n if (this.closable && e.key === KeyboardCode.ESC) {\n e.stopPropagation();\n this.open = false;\n }\n }\n\n /**\n * Close the popover when clicking outside of its content.\n * Stop event propagation if the click was fired by popover's trigger element,\n * to prevent close and reopen glitches.\n */\n @Listen(\"click\", {target: \"body\", capture: true})\n handleOutsideClick(e: MouseEvent): void {\n const target = e.target as Element;\n if (!this.closable || !this.open || containsElement(this.host, target)) {\n return;\n }\n\n if (containsElement(this.boundElement, target)) {\n // stop propagation if the click was on the trigger element to prevent close and reopen glitches\n e.stopPropagation();\n }\n this.open = false;\n }\n\n @Watch(\"position\")\n validatePosition(newValue: PopoverPosition): void {\n if (!Object.values(PopoverPosition).includes(newValue as PopoverPosition) || newValue === PopoverPosition.AUTO) {\n newValue = PopoverPosition.TOP;\n this.position = newValue;\n }\n this.currentPosition = newValue;\n if (this.open) {\n this.setPosition();\n }\n }\n\n /** Setup popover behaviors when `open` changes. */\n @Watch(\"open\")\n onOpen(): void {\n cancelAnimationFrame(this.animationFrameRequestId);\n this.openChange.emit({open: this.open});\n if (!this.open) {\n Object.assign(this.host.style, {\n // Reset all positioning properties\n top: \"auto\",\n right: \"auto\",\n bottom: \"auto\",\n left: \"auto\",\n maxWidth: \"\",\n maxHeight: \"\",\n // Set initial visibility to hidden while calculating position...\n visibility: \"hidden\",\n });\n this.currentPosition = undefined;\n\n return;\n }\n\n const updatePositionLoop = (): void => {\n if (!this.open) {\n return;\n }\n\n this.setPosition();\n this.animationFrameRequestId = requestAnimationFrame(updatePositionLoop);\n };\n\n // call `setPosition` after a tick to ensure the DOM is ready and sizes are available\n setTimeout(() => {\n updatePositionLoop();\n }, 0);\n }\n\n @Watch(\"bindTo\")\n onBindingChange(): void {\n this.findBoundElement();\n }\n\n /** Returns the offset modifier to use in calculations to align the popover with the bound element. */\n private get offsetModifier(): OffsetModifier {\n return this.center ? 0.5 : 0;\n }\n\n private findBoundElement(): void {\n if (typeof this.bindTo === \"string\") {\n this.boundElement = this.host.ownerDocument.querySelector(this.bindTo) as HTMLElement;\n } else if (this.bindTo) {\n this.boundElement = this.bindTo;\n } else {\n this.boundElement = getParentElement(this.host) as HTMLElement;\n if (this.boundElement.tagName.toLowerCase() === \"z-tooltip\") {\n // If the popover is used inside a tooltip without a specified `bindTo`, bind it to the parent of the tooltip.\n this.boundElement = getParentElement(this.boundElement) as HTMLElement;\n }\n }\n }\n\n /**\n * Check if element has enough space to the right and left to be centered.\n * Used for `TOP` and `BOTTOM` position.\n * When `center` is not enabled, only one side needs to be checked and `RIGHT` is the default.\n */\n private hasCenteredHorizontalSpace(\n availableLeft: number,\n availableRight: number,\n hostWidth: number,\n boundElementWidth: number\n ): boolean {\n const requiredSideSpace = (hostWidth - boundElementWidth) * (1 - this.offsetModifier);\n\n if (!this.center) {\n return availableRight >= requiredSideSpace - this.spaceTolerance;\n }\n\n return (\n availableRight >= requiredSideSpace - this.spaceTolerance &&\n availableLeft >= requiredSideSpace - this.spaceTolerance\n );\n }\n\n /**\n * Check if element has enough space to the top and bottom to be centered.\n * Used for `RIGHT` and `LEFT` position.\n * When `center` is not enabled, only one side needs to be checked and `BOTTOM` is the default.\n */\n private hasCenteredVerticalSpace(\n availableTop: number,\n availableBottom: number,\n hostHeight: number,\n boundElementHeight: number\n ): boolean {\n const requiredSideSpace = (hostHeight - boundElementHeight) * (1 - this.offsetModifier);\n\n if (!this.center) {\n return availableBottom >= requiredSideSpace - this.spaceTolerance;\n }\n\n return (\n availableTop >= requiredSideSpace - this.spaceTolerance &&\n availableBottom >= requiredSideSpace - this.spaceTolerance\n );\n }\n\n /**\n * Check if there is enough space in the given direction to fit the popover.\n * Used for composed positions like TOP_RIGHT, LEFT_BOTTOM, etc.\n */\n private hasEnoughSideSpace(\n availableSpace: number,\n hostSize: number,\n boundElementSize: number,\n offsetModifier: OffsetModifier\n ): boolean {\n return availableSpace >= hostSize - boundElementSize * (1 - offsetModifier) - this.spaceTolerance;\n }\n\n /**\n * Given a desired position and available space around the bound element, returns the best position\n * that fits the popover, trying all positions if needed.\n * Takes into account offsetModifier for centering.\n * @param desiredPosition The desired position of the popover.\n * @param availableSpace The available space around the bound element.\n */\n private getOptimalPopoverPosition(desiredPosition: PopoverPosition, availableSpace: Offsets): PopoverPosition {\n const hostWidth = this.host.offsetWidth;\n const hostHeight = this.host.offsetHeight;\n const boundElementWidth = this.boundElement.getBoundingClientRect().width;\n const boundElementHeight = this.boundElement.getBoundingClientRect().height;\n const offsetModifier = this.offsetModifier;\n\n /** Check if there is enough space to fit the popover in the desired position */\n const fits = (pos: PopoverPosition): boolean => {\n switch (pos) {\n case PopoverPosition.TOP:\n return (\n availableSpace.top >= hostHeight - this.spaceTolerance &&\n this.hasCenteredHorizontalSpace(availableSpace.left, availableSpace.right, hostWidth, boundElementWidth)\n );\n case PopoverPosition.TOP_RIGHT:\n return (\n availableSpace.top >= hostHeight &&\n this.hasEnoughSideSpace(availableSpace.right, hostWidth, boundElementWidth, offsetModifier)\n );\n case PopoverPosition.TOP_LEFT:\n return (\n availableSpace.top >= hostHeight &&\n this.hasEnoughSideSpace(availableSpace.left, hostWidth, boundElementWidth, offsetModifier)\n );\n case PopoverPosition.RIGHT:\n return (\n availableSpace.right >= hostWidth &&\n this.hasCenteredVerticalSpace(availableSpace.top, availableSpace.bottom, hostHeight, boundElementHeight)\n );\n case PopoverPosition.RIGHT_BOTTOM:\n return (\n availableSpace.right >= hostWidth &&\n this.hasEnoughSideSpace(availableSpace.bottom, hostHeight, boundElementHeight, offsetModifier)\n );\n case PopoverPosition.RIGHT_TOP:\n return (\n availableSpace.right >= hostWidth &&\n this.hasEnoughSideSpace(availableSpace.top, hostHeight, boundElementHeight, offsetModifier)\n );\n case PopoverPosition.BOTTOM:\n return (\n availableSpace.bottom >= hostHeight &&\n this.hasCenteredHorizontalSpace(availableSpace.left, availableSpace.right, hostWidth, boundElementWidth)\n );\n case PopoverPosition.BOTTOM_LEFT:\n return (\n availableSpace.bottom >= hostHeight &&\n this.hasEnoughSideSpace(availableSpace.left, hostWidth, boundElementWidth, offsetModifier)\n );\n case PopoverPosition.BOTTOM_RIGHT:\n return (\n availableSpace.bottom >= hostHeight &&\n this.hasEnoughSideSpace(availableSpace.right, hostWidth, boundElementWidth, offsetModifier)\n );\n case PopoverPosition.LEFT:\n return (\n availableSpace.left >= hostWidth &&\n this.hasCenteredVerticalSpace(availableSpace.top, availableSpace.bottom, hostHeight, boundElementHeight)\n );\n case PopoverPosition.LEFT_TOP:\n return (\n availableSpace.left >= hostWidth &&\n this.hasEnoughSideSpace(availableSpace.top, hostHeight, boundElementHeight, offsetModifier)\n );\n case PopoverPosition.LEFT_BOTTOM:\n return (\n availableSpace.left >= hostWidth &&\n this.hasEnoughSideSpace(availableSpace.bottom, hostHeight, boundElementHeight, offsetModifier)\n );\n\n default:\n return false;\n }\n };\n\n // Check desired position first\n if (fits(desiredPosition)) {\n return desiredPosition;\n }\n\n // Find position index and create rotation starting from next position\n const positions = ZPopover.positionOrder;\n const startIndex = positions.indexOf(desiredPosition);\n\n if (startIndex === -1) {\n return desiredPosition; // fallback if position not found\n }\n\n // Try all other positions starting from the next one\n for (let i = 1; i < positions.length; i++) {\n const posIndex = (startIndex + i) % positions.length;\n const pos = positions[posIndex];\n if (fits(pos)) {\n return pos;\n }\n }\n\n return this.findBestFallbackPosition(availableSpace);\n }\n\n /** Find the best fallback position based on available space when no position fits perfectly. */\n private findBestFallbackPosition(availableSpace: Offsets): PopoverPosition {\n // Determine which horizontal and vertical direction has the most available space\n const bestHorizontalDirection =\n availableSpace.right >= availableSpace.left ? PopoverPosition.RIGHT : PopoverPosition.LEFT;\n\n const bestVerticalDirection =\n availableSpace.bottom >= availableSpace.top ? PopoverPosition.BOTTOM : PopoverPosition.TOP;\n\n // Choose the main direction based on which axis has more space overall\n const maxHorizontalSpace = Math.max(availableSpace.right, availableSpace.left);\n const maxVerticalSpace = Math.max(availableSpace.bottom, availableSpace.top);\n\n const mainDirection = maxVerticalSpace >= maxHorizontalSpace ? bestVerticalDirection : bestHorizontalDirection;\n\n // Decide if a secondary direction is needed\n // Only add a secondary direction if the difference between min and max in that axis is at least double\n let needsSecondaryDirection = false;\n\n if (mainDirection === bestVerticalDirection) {\n // If main direction is vertical, check horizontal space difference\n const minHorizontalSpace = Math.min(availableSpace.right, availableSpace.left);\n needsSecondaryDirection = maxHorizontalSpace >= minHorizontalSpace * 2;\n } else {\n // If main direction is horizontal, check vertical space difference\n const minVerticalSpace = Math.min(availableSpace.bottom, availableSpace.top);\n needsSecondaryDirection = maxVerticalSpace >= minVerticalSpace * 2;\n }\n\n if (!needsSecondaryDirection) {\n return mainDirection;\n }\n\n const secondaryDirection =\n mainDirection === bestVerticalDirection ? bestHorizontalDirection : bestVerticalDirection;\n\n // Return a combined position (e.g., \"bottom_right\")\n return `${mainDirection}_${secondaryDirection}` as PopoverPosition;\n }\n\n /**\n * Find the nearest scrollable ancestor of an element to take as a reference for positioning.\n * The ancestor is considered scrollable if it doesn't have `overflow` property set to `hidden` and its scroll size is bigger than its client size.\n */\n private findScrollableAncestor(element: HTMLElement): HTMLElement {\n let parent = getParentElement(element);\n\n while (parent) {\n if (parent === element.ownerDocument.documentElement) {\n return parent as HTMLElement;\n }\n\n const style = getComputedStyle(parent);\n const {overflow, overflowX, overflowY} = style;\n const hasHiddenOverflow = overflow === \"hidden\" || overflowY === \"hidden\" || overflowX === \"hidden\";\n const isScrollable =\n (parent.scrollHeight > parent.clientHeight && overflow !== \"visible\" && overflowY !== \"visible\") ||\n (parent.scrollWidth > parent.clientWidth && overflow !== \"visible\" && overflowX !== \"visible\");\n\n if (!hasHiddenOverflow && isScrollable) {\n return parent as HTMLElement;\n }\n\n parent = getParentElement(parent);\n }\n\n return element.ownerDocument.documentElement;\n }\n\n /**\n * Calculate available space around the element bound with the popover, based on its nearest scrollable ancestor.\n *\n * Calculations for `right` and `bottom` can be a little bit confusing because `boundingRect.right` and `bottom` may not be what you expect...\n * For more information see the explanation in the docs.\n * @link https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect#return_value\n */\n private calculateAvailableSpace(): Offsets {\n const boundElementRect = this.boundElement.getBoundingClientRect();\n\n if (\n this.lastBoundRect &&\n this.lastBoundRect.x === boundElementRect.x &&\n this.lastBoundRect.y === boundElementRect.y &&\n this.lastBoundRect.width === boundElementRect.width &&\n this.lastBoundRect.height === boundElementRect.height &&\n this.cachedAvailableSpace\n ) {\n // If the bound element's rect hasn't changed, return the cached rect\n return this.cachedAvailableSpace;\n }\n\n this.lastBoundRect = boundElementRect;\n const scrollableAncestor = this.findScrollableAncestor(this.boundElement);\n const scrollableAncestorRect = scrollableAncestor.getBoundingClientRect();\n const isScrollableAncestorNested = scrollableAncestor !== this.boundElement.ownerDocument.documentElement;\n const documentWidth = this.boundElement.ownerDocument.documentElement.clientWidth;\n const documentHeight = this.boundElement.ownerDocument.documentElement.clientHeight;\n const safeSpace = 8; // extra space to avoid popover being too close to the edges\n\n // These deltas represent the offset between the scrollable ancestor and the viewport.\n // They are used to adjust the available space calculations when the scrollable ancestor is not the document or body,\n // to try to fit the popover inside the scrollable ancestor.\n const deltaTop = isScrollableAncestorNested ? scrollableAncestorRect.top : 0;\n const deltaRight = isScrollableAncestorNested ? documentWidth - scrollableAncestorRect.right : 0;\n const deltaBottom = isScrollableAncestorNested ? documentHeight - scrollableAncestorRect.bottom : 0;\n const deltaLeft = isScrollableAncestorNested ? scrollableAncestorRect.left : 0;\n\n this.cachedAvailableSpace = {\n top: boundElementRect.top - deltaTop - safeSpace,\n right: documentWidth - boundElementRect.right - deltaRight - safeSpace,\n bottom: documentHeight - boundElementRect.bottom - deltaBottom - safeSpace,\n left: boundElementRect.left - deltaLeft - safeSpace,\n };\n\n return this.cachedAvailableSpace;\n }\n\n /** Calculate the space around the bound element relative to the viewport. */\n private getBoundElementOffsets(): Offsets {\n const elementRect = this.boundElement.getBoundingClientRect();\n const documentWidth = this.boundElement.ownerDocument.documentElement.clientWidth;\n const documentHeight = this.boundElement.ownerDocument.documentElement.clientHeight;\n\n return {\n top: elementRect.top,\n right: documentWidth - elementRect.right,\n bottom: documentHeight - elementRect.bottom,\n left: elementRect.left,\n };\n }\n\n /** Compute positioning offsets in the appropriate coordinate space, accounting for transformed containing blocks and scroll. */\n private computePositionOffsets(): Offsets {\n const boundElementOffsets = this.getBoundElementOffsets();\n const containingBlockAncestor = findContainingBlockAncestor(this.host);\n const isDocumentElement = containingBlockAncestor === this.host.ownerDocument.documentElement;\n\n if (isDocumentElement) {\n return boundElementOffsets;\n }\n\n const containingBlockRect = containingBlockAncestor.getBoundingClientRect();\n const containingBlockStyle = getComputedStyle(containingBlockAncestor);\n /** Padding box of the containing block, accounting for borders. */\n const paddingBox = {\n top: containingBlockRect.top + parseFloat(containingBlockStyle.borderTopWidth),\n right: containingBlockRect.right - parseFloat(containingBlockStyle.borderRightWidth),\n bottom: containingBlockRect.bottom - parseFloat(containingBlockStyle.borderBottomWidth),\n left: containingBlockRect.left + parseFloat(containingBlockStyle.borderLeftWidth),\n };\n\n const boundElementRect = this.boundElement.getBoundingClientRect();\n /** Bound element offsets relative to the containing block padding box. */\n const relativeOffsets = {\n top: boundElementRect.top - paddingBox.top,\n right: paddingBox.right - boundElementRect.right,\n bottom: paddingBox.bottom - boundElementRect.bottom,\n left: boundElementRect.left - paddingBox.left,\n };\n\n /** Account for scroll to keep the popover aligned while the containing block scrolls. */\n return {\n top: relativeOffsets.top + containingBlockAncestor.scrollTop,\n right: relativeOffsets.right - containingBlockAncestor.scrollLeft,\n bottom: relativeOffsets.bottom - containingBlockAncestor.scrollTop,\n left: relativeOffsets.left + containingBlockAncestor.scrollLeft,\n };\n }\n\n /** Apply positioning styles based on `position` parameter. */\n private applyPositionStyles(position: PopoverPosition, availableSpace: Offsets): void {\n const boundElementWidth = this.boundElement.offsetWidth;\n const boundElementHeight = this.boundElement.offsetHeight;\n const offsetModifier = this.offsetModifier;\n /**\n * Distance between the arrow center and the popover edge.\n * Needed to align the center of the arrow with the center of the bound element when `showArrow` and `center` are enabled.\n */\n const arrowModifier = this.showArrow && this.center ? 8 : 0;\n const hostStyle = this.host.style;\n /** Gap between the popover and the bound element, set as margin in CSS. */\n const distanceFromBound = parseFloat(getComputedStyle(this.host).marginTop.replace(\"px\", \"\")) || 0;\n const positionOffsets = this.computePositionOffsets();\n\n /**\n * Precomputed bases to reduce repeated arithmetic in the switch below.\n * They represent the bound element edges plus optional centering offsets.\n */\n const leftBase = positionOffsets.left + boundElementWidth * offsetModifier;\n const rightBase = positionOffsets.right + boundElementWidth * offsetModifier;\n const topBase = positionOffsets.top + boundElementHeight;\n const bottomBase = positionOffsets.bottom + boundElementHeight;\n const sideTopBase = positionOffsets.top + boundElementHeight * offsetModifier;\n const sideBottomBase = positionOffsets.bottom + boundElementHeight * offsetModifier;\n\n let maxWidth: number;\n let maxHeight: number;\n\n switch (position) {\n case PopoverPosition.TOP:\n case PopoverPosition.TOP_RIGHT:\n hostStyle.bottom = `${bottomBase}px`;\n hostStyle.left = `${leftBase - (position === PopoverPosition.TOP_RIGHT ? arrowModifier : 0)}px`;\n maxHeight = availableSpace.top - distanceFromBound;\n if (position === PopoverPosition.TOP_RIGHT) {\n maxWidth = availableSpace.right + boundElementWidth * offsetModifier;\n }\n break;\n\n case PopoverPosition.TOP_LEFT:\n hostStyle.right = `${rightBase - arrowModifier}px`;\n hostStyle.bottom = `${bottomBase}px`;\n maxWidth = availableSpace.left + boundElementWidth * offsetModifier;\n maxHeight = availableSpace.top - distanceFromBound;\n break;\n\n case PopoverPosition.BOTTOM:\n case PopoverPosition.BOTTOM_RIGHT:\n hostStyle.top = `${topBase}px`;\n hostStyle.left = `${leftBase - (position === PopoverPosition.BOTTOM_RIGHT ? arrowModifier : 0)}px`;\n maxHeight = availableSpace.bottom - distanceFromBound;\n if (position === PopoverPosition.BOTTOM_RIGHT) {\n maxWidth = availableSpace.right + boundElementWidth * offsetModifier;\n }\n break;\n\n case PopoverPosition.BOTTOM_LEFT:\n hostStyle.top = `${topBase}px`;\n hostStyle.right = `${rightBase - arrowModifier}px`;\n maxWidth = availableSpace.left + boundElementWidth * offsetModifier;\n maxHeight = availableSpace.bottom - distanceFromBound;\n break;\n\n case PopoverPosition.RIGHT:\n case PopoverPosition.RIGHT_BOTTOM:\n hostStyle.top = `${sideTopBase - (position === PopoverPosition.RIGHT_BOTTOM ? arrowModifier : 0)}px`;\n hostStyle.left = `${positionOffsets.left + boundElementWidth}px`;\n maxWidth = availableSpace.right - distanceFromBound;\n if (position === PopoverPosition.RIGHT) {\n maxHeight = availableSpace.top + availableSpace.bottom + boundElementHeight;\n } else {\n maxHeight = availableSpace.bottom + boundElementHeight * offsetModifier;\n }\n break;\n\n case PopoverPosition.RIGHT_TOP:\n hostStyle.bottom = `${sideBottomBase - arrowModifier}px`;\n hostStyle.left = `${positionOffsets.left + boundElementWidth}px`;\n maxWidth = availableSpace.right - distanceFromBound;\n maxHeight = availableSpace.top + boundElementHeight * offsetModifier;\n break;\n\n case PopoverPosition.LEFT:\n case PopoverPosition.LEFT_BOTTOM:\n hostStyle.top = `${sideTopBase - (position === PopoverPosition.LEFT_BOTTOM ? arrowModifier : 0)}px`;\n hostStyle.right = `${positionOffsets.right + boundElementWidth}px`;\n maxWidth = availableSpace.left - distanceFromBound;\n if (position === PopoverPosition.LEFT_BOTTOM) {\n maxHeight = availableSpace.bottom + boundElementHeight * offsetModifier;\n }\n break;\n\n case PopoverPosition.LEFT_TOP:\n hostStyle.right = `${positionOffsets.right + boundElementWidth}px`;\n hostStyle.bottom = `${sideBottomBase - arrowModifier}px`;\n maxWidth = availableSpace.left - distanceFromBound;\n maxHeight = availableSpace.top + boundElementHeight * offsetModifier;\n break;\n }\n\n if (getDevice() !== Device.MOBILE) {\n // Only force max sizes on non-mobile viewports\n Object.assign(hostStyle, {\n maxWidth: maxWidth ? `${maxWidth}px` : \"\",\n maxHeight: maxHeight ? `${maxHeight}px` : \"\",\n });\n }\n }\n\n /** Set the position of the popover. */\n private setPosition(): void {\n if (!this.boundElement) {\n return;\n }\n\n if (!isElementVisibleInContainer(this.boundElement, this.findScrollableAncestor(this.boundElement))) {\n // If the bound element is not visible, hide the popover too\n this.open = false;\n\n return;\n }\n\n Object.assign(this.host.style, {\n // Reset all positioning properties\n top: \"auto\",\n right: \"auto\",\n bottom: \"auto\",\n left: \"auto\",\n maxWidth: \"\",\n maxHeight: \"\",\n // Set initial visibility to hidden while calculating position...\n visibility: \"hidden\",\n });\n\n const availableSpace = this.calculateAvailableSpace();\n const position = this.getOptimalPopoverPosition(this.position, availableSpace);\n\n this.applyPositionStyles(position, availableSpace);\n this.currentPosition = position;\n this.positionChange.emit({position: this.currentPosition});\n\n // ...then restore the visibility\n this.host.style.visibility = \"visible\";\n }\n\n componentWillLoad(): void {\n this.validatePosition(this.position);\n }\n\n componentDidLoad(): void {\n this.findBoundElement();\n if (this.open) {\n this.onOpen();\n }\n }\n\n disconnectedCallback(): void {\n cancelAnimationFrame(this.animationFrameRequestId);\n }\n\n render(): HTMLZPopoverElement {\n return (\n <Host current-position={this.currentPosition}>\n <slot></slot>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/z-result-card/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAsB,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAC,MAAM,eAAe,CAAC;AAEpF;;;GAGG;AAMH,MAAM,OAAO,WAAW;IALxB;QA4BE,qEAAqE;QAErE,sBAAiB,GAAG,KAAK,CAAC;QAE1B,8CAA8C;QAE9C,eAAU,GAAG,KAAK,CAAC;QA+CX,kBAAa,GAAG,GAAS,EAAE;YACjC,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;YACtC,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YACpC,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACzC,CAAC,CAAC;QAUM,gBAAW,GAAG,GAAgB,EAAE;YACtC,MAAM,QAAQ,GAAG,IAAI,CAAC,YAAY,IAAI,KAAK,CAAC;YAE5C,OAAO,CACL,EAAC,QAAQ,IACP,KAAK,EAAC,YAAY,EAClB,GAA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AC;QACpC,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IACzC,CAAC;IAQD,gBAAgB;QACd,MAAM,CAAC,gBAAgB,CAAC,QAAQ,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;IACxD,CAAC;IAED,oBAAoB;QAClB,MAAM,CAAC,mBAAmB,CAAC,QAAQ,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;IAC3D,CAAC;IA0ED,MAAM;QACJ,OAAO,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,EAAE,CAAC;IAC1E,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {Component, ComponentInterface, Element, Host, Prop, h} from \"@stencil/core\";\n\n/**\n * @slot tags - slot containing the descriptors for the opera variant\n * @slot volumes - slot containing the volume count to be displayed in the opera variant\n */\n@Component({\n tag: \"z-result-card\",\n styleUrls: [\"styles.css\"],\n shadow: true,\n})\nexport class ZResultCard implements ComponentInterface {\n @Element() hostElement: HTMLZResultCardElement;\n\n /** The title of the card. */\n @Prop()\n cardTitle: string;\n\n /** The subtitle of the card. */\n @Prop()\n cardSubtitle: string;\n\n /** The authors of the opera. */\n @Prop()\n authors?: string;\n\n /** The URL of the cover image of the opera. */\n @Prop()\n cover?: string;\n\n /** [optional] Fallback cover URL. */\n @Prop()\n fallbackCover?: string;\n\n /** Whether to show a stack of covers to represent multiple books. */\n @Prop()\n hasMultipleCovers = false;\n\n /** Enables the \"info\" variant of the card. */\n @Prop()\n isInfoCard = false;\n\n /** [optional] Set a specific heading level as html tag for the title. */\n @Prop()\n titleHtmlTag?: string;\n\n private authorsRef: HTMLElement;\n\n private titleRef: HTMLElement;\n\n private subtitleRef: HTMLElement;\n\n private setTooltipTitle(el: HTMLElement): void {\n if (!el) {\n return;\n }\n\n // Check if element uses line-clamp\n const style = window.getComputedStyle(el);\n const hasLineClamp = style.getPropertyValue(\"-webkit-line-clamp\") !== \"none\";\n\n let isTruncated;\n if (hasLineClamp) {\n // For elements with line-clamp, check if content height exceeds line-clamp height\n const lineHeight = parseInt(style.lineHeight);\n const maxLines = parseInt(style.getPropertyValue(\"-webkit-line-clamp\"));\n const maxHeight = lineHeight * maxLines;\n\n isTruncated = el.scrollHeight > maxHeight;\n } else {\n // Original check for elements without line-clamp\n isTruncated = el.scrollWidth > el.clientWidth || el.scrollHeight > el.clientHeight;\n }\n\n if (isTruncated) {\n el.setAttribute(\"title\", el.textContent.trim());\n } else {\n el.removeAttribute(\"title\");\n }\n }\n\n componentDidRender(): void {\n this.setTooltipTitle(this.authorsRef);\n this.setTooltipTitle(this.titleRef);\n this.setTooltipTitle(this.subtitleRef);\n }\n\n private resizeHandler = (): void => {\n this.setTooltipTitle(this.authorsRef);\n this.setTooltipTitle(this.titleRef);\n this.setTooltipTitle(this.subtitleRef);\n };\n\n componentDidLoad(): void {\n window.addEventListener(\"resize\", this.resizeHandler);\n }\n\n disconnectedCallback(): void {\n window.removeEventListener(\"resize\", this.resizeHandler);\n }\n\n private renderTitle = (): HTMLElement => {\n const TitleTag = this.titleHtmlTag || \"div\";\n\n return (\n <TitleTag\n class=\"card-title\"\n ref={(el) => (this.titleRef = el as HTMLElement)}\n >\n {this.cardTitle}\n </TitleTag>\n );\n };\n\n private renderSubtitle = (): HTMLSpanElement => {\n return (\n <span\n class=\"card-subtitle\"\n ref={(el) => (this.subtitleRef = el as HTMLElement)}\n >\n {this.cardSubtitle}\n </span>\n );\n };\n\n private renderOperaCard = (): HTMLZResultCardElement => {\n return (\n <Host>\n <z-book-cover\n cover={this.cover}\n fallbackCover={this.fallbackCover}\n multiple={this.hasMultipleCovers}\n bordered={true}\n ></z-book-cover>\n <div class=\"info-container\">\n {this.authors && (\n <span\n class=\"authors-label\"\n ref={(el) => (this.authorsRef = el as HTMLElement)}\n >\n {this.authors}\n </span>\n )}\n {this.renderTitle()}\n {this.renderSubtitle()}\n <div class=\"tags-container\">\n <slot name=\"tags\"></slot>\n </div>\n <div class=\"volumes-label\">\n <slot name=\"volumes\"></slot>\n </div>\n </div>\n </Host>\n );\n };\n\n private renderInfoCard = (): HTMLZResultCardElement => {\n return (\n <Host class=\"info-card\">\n <div class=\"info-icon-container\">\n <z-icon\n class=\"info-icon\"\n name=\"link\"\n />\n </div>\n <div class=\"info-container\">\n {this.renderTitle()}\n {this.renderSubtitle()}\n </div>\n </Host>\n );\n };\n\n render(): HTMLZResultCardElement {\n return this.isInfoCard ? this.renderInfoCard() : this.renderOperaCard();\n }\n}\n"]}
|
|
@@ -201,17 +201,17 @@ export class ZSearchbar {
|
|
|
201
201
|
}
|
|
202
202
|
render() {
|
|
203
203
|
var _a, _b, _c, _d, _e;
|
|
204
|
-
return (h(Host, { key: '
|
|
204
|
+
return (h(Host, { key: '511bdb107a222201f119e5d9fc0e936adb2e9658', onFocus: () => (this.showResults = true), onClick: (e) => this.handleOutsideClick(e), class: { "has-submit": !!this.showSearchButton, "has-results": !!this.autocomplete } }, h("div", { key: 'b31f7c2ece0d26218f8d586217180061ee84a02f', class: "input-container" }, h("z-input", { key: 'c2d0d0f22126a5676949664e21f37c6450e6e645', ref: (el) => (this.inputRef = el), htmlid: `input-${this.htmlid}`, message: false, placeholder: this.placeholder, onStopTyping: (e) => this.handleStopTyping(e), onKeyUp: (e) => {
|
|
205
205
|
handleEnterKeydSubmit(e, () => this.handleSubmit());
|
|
206
206
|
this.handleArrowsNavigation(e);
|
|
207
207
|
}, onFocus: () => (this.showResults = true), value: this.searchString || ((_a = this.selectedItem) === null || _a === void 0 ? void 0 : _a.label), size: this.size, label: this.label, "aria-label": this.htmlAriaLabel || this.placeholder || undefined }), !!(this.showResults &&
|
|
208
208
|
this.autocomplete &&
|
|
209
209
|
this.searchString &&
|
|
210
210
|
this.searchString.length >= this.autocompleteMinChars &&
|
|
211
|
-
this.resultsItemsList) && (h("div", { key: '
|
|
211
|
+
this.resultsItemsList) && (h("div", { key: 'acbce883c61063828aa863072282a806da42abef', class: "results z-scrollbar" }, this.preventSubmit && !((_b = this.resultsItemsList) === null || _b === void 0 ? void 0 : _b.length) ? (h("div", { class: "item-no-results body-3 mobile-body-4" }, "Non abbiamo trovato risultati per ", h("b", null, this.searchString), h("br", null), h("br", null), "Cosa puoi fare?", h("ul", null, h("li", null, "Verificare di aver scritto bene"), h("li", null, "Provare a cercare un'altra parola"), h("li", null, "Provare a cercare qualcosa di pi\u00F9 generico")))) : (h("z-list", { role: "listbox", id: `list-${this.htmlid}`, "aria-label": this.htmlAriaLabel || this.label || undefined }, this.autocomplete && !this.preventSubmit && !!this.searchString && (h("z-list-element", { role: "presentation", htmlTabindex: -1, id: `list-item-${this.htmlid}-search`, onKeyDown: (e) => this.onSearchHelperKeyDown(e), onClick: () => this.emitSearchSubmit() }, h("div", { class: "list-item item-search", role: "option", tabindex: 0 }, h("z-icon", { class: "search-icon", name: "left-magnifying-glass" }), h("div", { class: "item-label body-3 mobile-body-4", innerHTML: (_c = this.searchHelperLabel) === null || _c === void 0 ? void 0 : _c.replace("{searchString}", `<mark>${this.searchString}</mark>`) })))), this.renderItemGroups(), !!(this.searchString &&
|
|
212
212
|
((_d = this.resultsItemsList) === null || _d === void 0 ? void 0 : _d.length) &&
|
|
213
213
|
this.currResultsCount &&
|
|
214
|
-
this.currResultsCount < ((_e = this.resultsItemsList) === null || _e === void 0 ? void 0 : _e.length)) && (h("z-list-element", { role: "presentation", htmlTabindex: -1, id: `list-item-${this.htmlid}-show-all` }, h("div", { role: "option", class: "item-show-all body-3 mobile-body-4", tabindex: 0, onClick: () => (this.currResultsCount = undefined) }, "Vedi tutti i risultati")))))))), this.showSearchButton && (h("z-button", { key: '
|
|
214
|
+
this.currResultsCount < ((_e = this.resultsItemsList) === null || _e === void 0 ? void 0 : _e.length)) && (h("z-list-element", { role: "presentation", htmlTabindex: -1, id: `list-item-${this.htmlid}-show-all` }, h("div", { role: "option", class: "item-show-all body-3 mobile-body-4", tabindex: 0, onClick: () => (this.currResultsCount = undefined) }, "Vedi tutti i risultati")))))))), this.showSearchButton && (h("z-button", { key: 'dda2667e972cbe44b36f35b53363020ca96de5dc', icon: this.searchButtonIconOnly ? "search" : undefined, "aria-label": this.searchButtonIconOnly ? this.searchButtonLabel.trim() || "CERCA" : undefined, disabled: !!this.preventSubmit, variant: this.variant, size: this.size, onClick: () => this.handleSubmit() }, this.searchButtonIconOnly ? "" : this.searchButtonLabel.trim() || "CERCA"))));
|
|
215
215
|
}
|
|
216
216
|
static get is() { return "z-searchbar"; }
|
|
217
217
|
static get encapsulation() { return "shadow"; }
|
|
@@ -674,3 +674,4 @@ export class ZSearchbar {
|
|
|
674
674
|
}];
|
|
675
675
|
}
|
|
676
676
|
}
|
|
677
|
+
//# sourceMappingURL=index.js.map
|