@zanichelli/albe-web-components 18.7.7 → 18.8.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 +13 -0
- package/dist/cjs/index-96af6326.js +4 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/web-components-library.cjs.js +1 -1
- package/dist/cjs/z-alert.cjs.entry.js +1 -1
- package/dist/cjs/z-app-header_12.cjs.entry.js +6 -6
- package/dist/cjs/z-book-card.cjs.entry.js +15 -14
- package/dist/cjs/z-book-card.cjs.entry.js.map +1 -1
- package/dist/{components/placeholder-cover.js → cjs/z-book-cover.cjs.entry.js} +26 -2
- package/dist/cjs/z-book-cover.cjs.entry.js.map +1 -0
- package/dist/cjs/z-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/z-button-sort.cjs.entry.js +1 -1
- package/dist/cjs/z-chip.cjs.entry.js +2 -2
- package/dist/cjs/z-combobox.cjs.entry.js +1 -1
- package/dist/cjs/z-cover-hero.cjs.entry.js +2 -2
- package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +4 -4
- package/dist/cjs/z-ghost-loading.cjs.entry.js +1 -1
- package/dist/cjs/z-info-box.cjs.entry.js +1 -1
- package/dist/cjs/z-info-reveal.cjs.entry.js +1 -1
- package/dist/cjs/z-logo.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-alert.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-footer.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-icon.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-info.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-list.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card_4.cjs.entry.js +4 -4
- package/dist/cjs/z-myz-list-item.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-list.cjs.entry.js +1 -1
- package/dist/cjs/z-navigation-tabs.cjs.entry.js +2 -2
- package/dist/cjs/z-notification.cjs.entry.js +1 -1
- package/dist/cjs/z-otp.cjs.entry.js +2 -2
- package/dist/cjs/z-panel-elem.cjs.entry.js +2 -2
- package/dist/cjs/z-popover.cjs.entry.js +1 -1
- package/dist/cjs/z-result-card.cjs.entry.js +6 -14
- package/dist/cjs/z-result-card.cjs.entry.js.map +1 -1
- package/dist/cjs/z-select.cjs.entry.js +1 -1
- package/dist/cjs/z-skip-to-content.cjs.entry.js +1 -1
- package/dist/cjs/z-stepper-item.cjs.entry.js +1 -1
- package/dist/cjs/z-stepper.cjs.entry.js +1 -1
- package/dist/cjs/z-toast-notification-list.cjs.entry.js +1 -1
- package/dist/cjs/z-toast-notification.cjs.entry.js +1 -1
- package/dist/cjs/z-toggle-button.cjs.entry.js +2 -2
- package/dist/cjs/z-toggle-switch.cjs.entry.js +3 -3
- package/dist/cjs/z-tooltip.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/book-card/z-book-card/index.js +66 -29
- package/dist/collection/components/book-card/z-book-card/index.js.map +1 -1
- package/dist/collection/components/book-card/z-book-card/index.stories.js +11 -13
- package/dist/collection/components/book-card/z-book-card/index.stories.js.map +1 -1
- package/dist/collection/components/book-card/z-book-card/styles.css +35 -67
- package/dist/collection/components/z-book-cover/index.js +113 -0
- package/dist/collection/components/z-book-cover/index.js.map +1 -0
- package/dist/collection/components/z-book-cover/index.stories.js +31 -0
- package/dist/collection/components/z-book-cover/index.stories.js.map +1 -0
- package/dist/collection/components/z-book-cover/styles.css +95 -0
- package/dist/collection/components/z-breadcrumb/index.js +2 -2
- package/dist/collection/components/z-button-sort/index.js +1 -1
- package/dist/collection/components/z-chip/index.js +2 -2
- package/dist/collection/components/z-combobox/index.js +1 -1
- package/dist/collection/components/z-cover-hero/index.js +2 -2
- package/dist/collection/components/z-divider/index.js +1 -1
- package/dist/collection/components/z-ghost-loading/index.js +1 -1
- package/dist/collection/components/z-info-box/index.js +1 -1
- package/dist/collection/components/z-info-reveal/index.js +1 -1
- package/dist/collection/components/z-input/index.js +1 -1
- package/dist/collection/components/z-input-message/index.js +1 -1
- package/dist/collection/components/z-logo/index.js +1 -1
- package/dist/collection/components/z-modal/index.js +4 -4
- package/dist/collection/components/z-navigation-tabs/index.js +2 -2
- package/dist/collection/components/z-notification/index.js +1 -1
- package/dist/collection/components/z-offcanvas/index.js +2 -2
- package/dist/collection/components/z-panel-elem/index.js +2 -2
- package/dist/collection/components/z-popover/index.js +1 -1
- package/dist/collection/components/{result-card/z-result-card → z-result-card}/index.js +10 -18
- package/dist/collection/components/z-result-card/index.js.map +1 -0
- package/dist/collection/components/{result-card/z-result-card → z-result-card}/styles.css +39 -108
- package/dist/collection/components/z-result-card/z-result-card.stories.js.map +1 -0
- package/dist/collection/components/z-searchbar/index.js +1 -1
- package/dist/collection/components/z-select/index.js +1 -1
- package/dist/collection/components/z-skip-to-content/index.js +1 -1
- package/dist/collection/components/z-stepper/index.js +1 -1
- package/dist/collection/components/z-stepper-item/index.js +1 -1
- package/dist/collection/components/z-toast-notification/index.js +1 -1
- package/dist/collection/components/z-toast-notification-list/index.js +1 -1
- package/dist/collection/components/z-toggle-button/index.js +2 -2
- package/dist/collection/components/z-toggle-switch/index.js +3 -3
- package/dist/collection/components/z-tooltip/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js +1 -1
- package/dist/collection/snowflakes/myz/list/z-myz-list/index.js +1 -1
- package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js +1 -1
- package/dist/collection/snowflakes/myz/z-alert/index.js +1 -1
- package/dist/collection/snowflakes/myz/z-otp/index.js +2 -2
- package/dist/components/index.d.ts +3 -1
- package/dist/components/index.js +1 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/index10.js +24 -65
- package/dist/components/index10.js.map +1 -1
- package/dist/components/index11.js +58 -306
- package/dist/components/index11.js.map +1 -1
- package/dist/components/index12.js +311 -37
- package/dist/components/index12.js.map +1 -1
- package/dist/components/index13.js +40 -27
- package/dist/components/index13.js.map +1 -1
- package/dist/components/index14.js +23 -151
- package/dist/components/index14.js.map +1 -1
- package/dist/components/index15.js +144 -37
- package/dist/components/index15.js.map +1 -1
- package/dist/components/index16.js +42 -1008
- package/dist/components/index16.js.map +1 -1
- package/dist/components/index17.js +1012 -37
- package/dist/components/index17.js.map +1 -1
- package/dist/components/index18.js +42 -10
- package/dist/components/index18.js.map +1 -1
- package/dist/components/index19.js +10 -22
- package/dist/components/index19.js.map +1 -1
- package/dist/components/index20.js +16 -33
- package/dist/components/index20.js.map +1 -1
- package/dist/components/index21.js +39 -43
- package/dist/components/index21.js.map +1 -1
- package/dist/components/index22.js +44 -84
- package/dist/components/index22.js.map +1 -1
- package/dist/components/index23.js +60 -430
- package/dist/components/index23.js.map +1 -1
- package/dist/components/index24.js +415 -341
- package/dist/components/index24.js.map +1 -1
- package/dist/components/index25.js +376 -19
- package/dist/components/index25.js.map +1 -1
- package/dist/components/index26.js +45 -0
- package/dist/components/index26.js.map +1 -0
- package/dist/components/index3.js +1 -1
- package/dist/components/index4.js +23 -60
- package/dist/components/index4.js.map +1 -1
- package/dist/components/index5.js +53 -27
- package/dist/components/index5.js.map +1 -1
- package/dist/components/index6.js +34 -18
- package/dist/components/index6.js.map +1 -1
- package/dist/components/index7.js +18 -41
- package/dist/components/index7.js.map +1 -1
- package/dist/components/index8.js +41 -11
- package/dist/components/index8.js.map +1 -1
- package/dist/components/index9.js +10 -28
- package/dist/components/index9.js.map +1 -1
- package/dist/components/z-accordion.js +1 -1
- package/dist/components/z-anchor-navigation.js +2 -2
- package/dist/components/z-app-header-deprecated.js +11 -11
- package/dist/components/z-app-header.js +11 -11
- package/dist/components/z-book-card-app.js +2 -2
- package/dist/components/z-book-card-deprecated.js +1 -1
- package/dist/components/z-book-card.js +26 -17
- package/dist/components/z-book-card.js.map +1 -1
- package/dist/components/z-book-cover.d.ts +11 -0
- package/dist/components/z-book-cover.js +8 -0
- package/dist/components/z-book-cover.js.map +1 -0
- package/dist/components/z-breadcrumb.js +8 -8
- package/dist/components/z-button-sort.js +2 -2
- package/dist/components/z-button.js +1 -1
- package/dist/components/z-card.js +1 -1
- package/dist/components/z-carousel.js +3 -3
- package/dist/components/z-chip.js +1 -1
- package/dist/components/z-combobox.js +7 -7
- package/dist/components/z-cover-hero.js +2 -2
- package/dist/components/z-date-picker.js +3 -3
- package/dist/components/z-divider.js +1 -1
- package/dist/components/z-dragdrop-area.js +1 -1
- package/dist/components/z-file-upload.js +4 -4
- package/dist/components/z-file.js +3 -3
- package/dist/components/z-ghost-loading.js +1 -1
- package/dist/components/z-icon.js +1 -1
- package/dist/components/z-info-box.js +2 -2
- package/dist/components/z-info-reveal.js +1 -1
- package/dist/components/z-input-message.js +1 -1
- package/dist/components/z-input.js +1 -1
- package/dist/components/z-list-element.js +1 -1
- package/dist/components/z-list-group.js +1 -1
- package/dist/components/z-list.js +1 -1
- package/dist/components/z-logo.js +1 -1
- package/dist/components/z-menu-deprecated.js +1 -1
- package/dist/components/z-menu-section-deprecated.js +1 -1
- package/dist/components/z-menu-section.js +1 -1
- package/dist/components/z-menu.js +1 -1
- package/dist/components/z-modal.js +1 -1
- package/dist/components/z-myz-card-alert.js +2 -2
- package/dist/components/z-myz-card-body.js +1 -1
- package/dist/components/z-myz-card-cover.js +1 -1
- package/dist/components/z-myz-card-dictionary.js +7 -7
- package/dist/components/z-myz-card-footer-sections.js +1 -1
- package/dist/components/z-myz-card-footer.js +1 -1
- package/dist/components/z-myz-card-header.js +1 -1
- package/dist/components/z-myz-card-icon.js +2 -2
- package/dist/components/z-myz-card-info.js +3 -3
- package/dist/components/z-myz-card-list.js +1 -1
- package/dist/components/z-myz-card.js +1 -1
- package/dist/components/z-myz-list-item.js +1 -1
- package/dist/components/z-myz-list.js +3 -3
- package/dist/components/z-navigation-tabs.js +3 -3
- package/dist/components/z-notification.js +2 -2
- package/dist/components/z-offcanvas.js +1 -1
- package/dist/components/z-otp.js +4 -4
- package/dist/components/z-pagination.js +4 -4
- package/dist/components/z-panel-elem.js +3 -3
- package/dist/components/z-popover.js +1 -1
- package/dist/components/z-range-picker.js +3 -3
- package/dist/components/z-result-card.js +14 -16
- package/dist/components/z-result-card.js.map +1 -1
- package/dist/components/z-searchbar.js +1 -1
- package/dist/components/z-section-title.js +1 -1
- package/dist/components/z-select.js +9 -9
- package/dist/components/z-skip-to-content.js +1 -1
- package/dist/components/z-slideshow.js +1 -1
- package/dist/components/z-stepper-item.js +2 -2
- package/dist/components/z-stepper.js +1 -1
- package/dist/components/z-table.js +1 -1
- package/dist/components/z-tag.js +1 -1
- package/dist/components/z-td.js +3 -3
- package/dist/components/z-th.js +3 -3
- package/dist/components/z-toast-notification-list.js +1 -1
- package/dist/components/z-toast-notification.js +2 -2
- package/dist/components/z-toggle-button.js +3 -3
- package/dist/components/z-toggle-switch.js +4 -4
- package/dist/components/z-tooltip.js +2 -2
- package/dist/components/z-tr.js +2 -2
- package/dist/components/z-tree-list.js +4 -4
- package/dist/esm/index-c8ceadeb.js +4 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/web-components-library.js +1 -1
- package/dist/esm/z-alert.entry.js +1 -1
- package/dist/esm/z-app-header_12.entry.js +6 -6
- package/dist/esm/z-book-card.entry.js +15 -14
- package/dist/esm/z-book-card.entry.js.map +1 -1
- package/dist/{cjs/placeholder-cover-b679e768.js → esm/z-book-cover.entry.js} +21 -3
- package/dist/esm/z-book-cover.entry.js.map +1 -0
- package/dist/esm/z-breadcrumb.entry.js +2 -2
- package/dist/esm/z-button-sort.entry.js +1 -1
- package/dist/esm/z-chip.entry.js +2 -2
- package/dist/esm/z-combobox.entry.js +1 -1
- package/dist/esm/z-cover-hero.entry.js +2 -2
- package/dist/esm/z-dragdrop-area_2.entry.js +4 -4
- package/dist/esm/z-ghost-loading.entry.js +1 -1
- package/dist/esm/z-info-box.entry.js +1 -1
- package/dist/esm/z-info-reveal.entry.js +1 -1
- package/dist/esm/z-logo.entry.js +1 -1
- package/dist/esm/z-myz-card-alert.entry.js +1 -1
- package/dist/esm/z-myz-card-dictionary.entry.js +1 -1
- package/dist/esm/z-myz-card-footer-sections.entry.js +1 -1
- package/dist/esm/z-myz-card-footer.entry.js +1 -1
- package/dist/esm/z-myz-card-icon.entry.js +1 -1
- package/dist/esm/z-myz-card-info.entry.js +1 -1
- package/dist/esm/z-myz-card-list.entry.js +1 -1
- package/dist/esm/z-myz-card_4.entry.js +4 -4
- package/dist/esm/z-myz-list-item.entry.js +1 -1
- package/dist/esm/z-myz-list.entry.js +1 -1
- package/dist/esm/z-navigation-tabs.entry.js +2 -2
- package/dist/esm/z-notification.entry.js +1 -1
- package/dist/esm/z-otp.entry.js +2 -2
- package/dist/esm/z-panel-elem.entry.js +2 -2
- package/dist/esm/z-popover.entry.js +1 -1
- package/dist/esm/z-result-card.entry.js +6 -14
- package/dist/esm/z-result-card.entry.js.map +1 -1
- package/dist/esm/z-select.entry.js +1 -1
- package/dist/esm/z-skip-to-content.entry.js +1 -1
- package/dist/esm/z-stepper-item.entry.js +1 -1
- package/dist/esm/z-stepper.entry.js +1 -1
- package/dist/esm/z-toast-notification-list.entry.js +1 -1
- package/dist/esm/z-toast-notification.entry.js +1 -1
- package/dist/esm/z-toggle-button.entry.js +2 -2
- package/dist/esm/z-toggle-switch.entry.js +3 -3
- package/dist/esm/z-tooltip.entry.js +1 -1
- package/dist/types/components/book-card/z-book-card/index.d.ts +20 -16
- package/dist/types/components/book-card/z-book-card/index.stories.d.ts +2 -35
- package/dist/types/components/z-book-cover/index.d.ts +23 -0
- package/dist/types/components/z-book-cover/index.stories.d.ts +21 -0
- package/dist/types/components/{result-card/z-result-card → z-result-card}/index.d.ts +8 -26
- package/dist/types/components.d.ts +145 -44
- package/dist/web-components-library/{p-17259f80.entry.js → p-01f941c2.entry.js} +2 -2
- package/{www/build/p-a4e26cad.entry.js → dist/web-components-library/p-028dd72a.entry.js} +2 -2
- package/{www/build/p-fef12692.entry.js → dist/web-components-library/p-0990d475.entry.js} +2 -2
- package/dist/web-components-library/{p-fa9c35b7.entry.js → p-0a49dd1c.entry.js} +2 -2
- package/dist/web-components-library/{p-7faf6680.entry.js → p-240de9aa.entry.js} +2 -2
- package/dist/web-components-library/p-28534fb5.entry.js +2 -0
- package/dist/web-components-library/{p-755e5bb3.entry.js → p-28d83c86.entry.js} +2 -2
- package/dist/web-components-library/{p-04f578d3.entry.js → p-2ffdfbb1.entry.js} +2 -2
- package/dist/web-components-library/p-31bd2a1c.entry.js +2 -0
- package/dist/web-components-library/p-31bd2a1c.entry.js.map +1 -0
- package/dist/web-components-library/{p-da6ba08a.entry.js → p-460b2068.entry.js} +2 -2
- package/dist/web-components-library/{p-bfa7b528.entry.js → p-46ea0b2e.entry.js} +2 -2
- package/{www/build/p-add09050.entry.js → dist/web-components-library/p-4a257653.entry.js} +2 -2
- package/{www/build/p-d3a51980.entry.js → dist/web-components-library/p-4aaf0172.entry.js} +2 -2
- package/dist/web-components-library/{p-22056263.entry.js → p-4affbb99.entry.js} +2 -2
- package/dist/web-components-library/{p-9f516be2.entry.js → p-5989465b.entry.js} +2 -2
- package/dist/web-components-library/{p-1775f79b.entry.js → p-5a1f98a2.entry.js} +2 -2
- package/dist/web-components-library/{p-a25c7fdb.entry.js → p-5c5882c6.entry.js} +2 -2
- package/dist/web-components-library/{p-a80faa78.entry.js → p-5f94986f.entry.js} +2 -2
- package/dist/web-components-library/p-6cff173f.entry.js +2 -0
- package/dist/web-components-library/p-6cffbabc.entry.js +2 -0
- package/{www/build/p-5f231799.entry.js.map → dist/web-components-library/p-6cffbabc.entry.js.map} +1 -1
- package/dist/web-components-library/{p-9e3116b0.entry.js → p-7194003a.entry.js} +2 -2
- package/{www/build/p-9de4915b.entry.js → dist/web-components-library/p-78146cef.entry.js} +2 -2
- package/dist/web-components-library/{p-f39f6ee8.entry.js → p-7a4f6a5b.entry.js} +2 -2
- package/dist/web-components-library/{p-945928ff.entry.js → p-7ceddb7a.entry.js} +2 -2
- package/dist/web-components-library/{p-50b800e6.entry.js → p-86160fe3.entry.js} +2 -2
- package/dist/web-components-library/{p-2105d5ec.entry.js → p-863fd1c4.entry.js} +2 -2
- package/dist/web-components-library/p-8fc213c2.entry.js +2 -0
- package/{www/build/p-b0f80e50.entry.js.map → dist/web-components-library/p-8fc213c2.entry.js.map} +1 -1
- package/dist/web-components-library/{p-70aa0b22.entry.js → p-943db3a8.entry.js} +2 -2
- package/dist/web-components-library/{p-6d2a6434.entry.js → p-94916bdf.entry.js} +2 -2
- package/dist/web-components-library/{p-8e5bc362.entry.js → p-a2e87cec.entry.js} +2 -2
- package/dist/web-components-library/{p-fe663393.entry.js → p-ac477ae7.entry.js} +2 -2
- package/dist/web-components-library/p-af5e8524.entry.js +2 -0
- package/dist/web-components-library/{p-fb78c343.entry.js → p-b3f1b5c1.entry.js} +2 -2
- package/dist/web-components-library/{p-6ebaa41d.entry.js → p-d60684d5.entry.js} +2 -2
- package/dist/web-components-library/{p-2264883d.entry.js → p-dc086eb5.entry.js} +2 -2
- package/dist/web-components-library/{p-f3287280.entry.js → p-e0b88075.entry.js} +2 -2
- package/dist/web-components-library/p-e4bb1256.entry.js +2 -0
- package/dist/web-components-library/p-e4bb1256.entry.js.map +1 -0
- package/dist/web-components-library/{p-7eb0e121.entry.js → p-f487290e.entry.js} +2 -2
- package/dist/web-components-library/p-f4bac89b.entry.js +2 -0
- package/dist/web-components-library/p-f4bac89b.entry.js.map +1 -0
- package/dist/web-components-library/web-components-library.esm.js +1 -1
- package/dist/web-components-library/web-components-library.esm.js.map +1 -1
- package/package.json +1 -1
- package/react/components.d.ts +1 -0
- package/react/components.js +3 -2
- package/react/components.js.map +1 -1
- package/www/build/{p-17259f80.entry.js → p-01f941c2.entry.js} +2 -2
- package/{dist/web-components-library/p-a4e26cad.entry.js → www/build/p-028dd72a.entry.js} +2 -2
- package/{dist/web-components-library/p-fef12692.entry.js → www/build/p-0990d475.entry.js} +2 -2
- package/www/build/{p-fa9c35b7.entry.js → p-0a49dd1c.entry.js} +2 -2
- package/www/build/{p-7faf6680.entry.js → p-240de9aa.entry.js} +2 -2
- package/www/build/p-28534fb5.entry.js +2 -0
- package/www/build/{p-755e5bb3.entry.js → p-28d83c86.entry.js} +2 -2
- package/www/build/{p-04f578d3.entry.js → p-2ffdfbb1.entry.js} +2 -2
- package/www/build/p-31bd2a1c.entry.js +2 -0
- package/www/build/p-31bd2a1c.entry.js.map +1 -0
- package/www/build/{p-da6ba08a.entry.js → p-460b2068.entry.js} +2 -2
- package/www/build/{p-bfa7b528.entry.js → p-46ea0b2e.entry.js} +2 -2
- package/{dist/web-components-library/p-add09050.entry.js → www/build/p-4a257653.entry.js} +2 -2
- package/{dist/web-components-library/p-d3a51980.entry.js → www/build/p-4aaf0172.entry.js} +2 -2
- package/www/build/{p-22056263.entry.js → p-4affbb99.entry.js} +2 -2
- package/www/build/{p-9f516be2.entry.js → p-5989465b.entry.js} +2 -2
- package/www/build/{p-1775f79b.entry.js → p-5a1f98a2.entry.js} +2 -2
- package/www/build/{p-a25c7fdb.entry.js → p-5c5882c6.entry.js} +2 -2
- package/www/build/{p-a80faa78.entry.js → p-5f94986f.entry.js} +2 -2
- package/www/build/p-6cff173f.entry.js +2 -0
- package/www/build/p-6cffbabc.entry.js +2 -0
- package/{dist/web-components-library/p-5f231799.entry.js.map → www/build/p-6cffbabc.entry.js.map} +1 -1
- package/www/build/{p-9e3116b0.entry.js → p-7194003a.entry.js} +2 -2
- package/{dist/web-components-library/p-9de4915b.entry.js → www/build/p-78146cef.entry.js} +2 -2
- package/www/build/{p-f39f6ee8.entry.js → p-7a4f6a5b.entry.js} +2 -2
- package/www/build/{p-945928ff.entry.js → p-7ceddb7a.entry.js} +2 -2
- package/www/build/{p-50b800e6.entry.js → p-86160fe3.entry.js} +2 -2
- package/www/build/{p-2105d5ec.entry.js → p-863fd1c4.entry.js} +2 -2
- package/www/build/p-8fc213c2.entry.js +2 -0
- package/{dist/web-components-library/p-b0f80e50.entry.js.map → www/build/p-8fc213c2.entry.js.map} +1 -1
- package/www/build/{p-70aa0b22.entry.js → p-943db3a8.entry.js} +2 -2
- package/www/build/{p-6d2a6434.entry.js → p-94916bdf.entry.js} +2 -2
- package/www/build/{p-8e5bc362.entry.js → p-a2e87cec.entry.js} +2 -2
- package/www/build/{p-fe663393.entry.js → p-ac477ae7.entry.js} +2 -2
- package/www/build/p-af5e8524.entry.js +2 -0
- package/www/build/{p-fb78c343.entry.js → p-b3f1b5c1.entry.js} +2 -2
- package/www/build/p-b716b49c.js +2 -0
- package/www/build/{p-6ebaa41d.entry.js → p-d60684d5.entry.js} +2 -2
- package/www/build/{p-2264883d.entry.js → p-dc086eb5.entry.js} +2 -2
- package/www/build/{p-f3287280.entry.js → p-e0b88075.entry.js} +2 -2
- package/www/build/p-e4bb1256.entry.js +2 -0
- package/www/build/p-e4bb1256.entry.js.map +1 -0
- package/www/build/{p-7eb0e121.entry.js → p-f487290e.entry.js} +2 -2
- package/www/build/p-f4bac89b.entry.js +2 -0
- package/www/build/p-f4bac89b.entry.js.map +1 -0
- package/www/build/web-components-library.esm.js +1 -1
- package/www/build/web-components-library.esm.js.map +1 -1
- package/www/index.html +1 -1
- package/dist/cjs/placeholder-cover-b679e768.js.map +0 -1
- package/dist/collection/components/result-card/z-result-card/index.js.map +0 -1
- package/dist/collection/components/result-card/z-result-card/z-result-card.stories.js.map +0 -1
- package/dist/components/placeholder-cover.js.map +0 -1
- package/dist/esm/placeholder-cover-9346be8f.js +0 -5
- package/dist/esm/placeholder-cover-9346be8f.js.map +0 -1
- package/dist/web-components-library/p-165d5acc.entry.js +0 -2
- package/dist/web-components-library/p-165d5acc.entry.js.map +0 -1
- package/dist/web-components-library/p-5f231799.entry.js +0 -2
- package/dist/web-components-library/p-75d50d5f.entry.js +0 -2
- package/dist/web-components-library/p-8d923a1d.js +0 -2
- package/dist/web-components-library/p-8d923a1d.js.map +0 -1
- package/dist/web-components-library/p-970de597.entry.js +0 -2
- package/dist/web-components-library/p-abd17b10.entry.js +0 -2
- package/dist/web-components-library/p-abd17b10.entry.js.map +0 -1
- package/dist/web-components-library/p-b0f80e50.entry.js +0 -2
- package/dist/web-components-library/p-e0320349.entry.js +0 -2
- package/www/build/p-165d5acc.entry.js +0 -2
- package/www/build/p-165d5acc.entry.js.map +0 -1
- package/www/build/p-29dcbeae.js +0 -2
- package/www/build/p-5f231799.entry.js +0 -2
- package/www/build/p-75d50d5f.entry.js +0 -2
- package/www/build/p-8d923a1d.js +0 -2
- package/www/build/p-8d923a1d.js.map +0 -1
- package/www/build/p-970de597.entry.js +0 -2
- package/www/build/p-abd17b10.entry.js +0 -2
- package/www/build/p-abd17b10.entry.js.map +0 -1
- package/www/build/p-b0f80e50.entry.js +0 -2
- package/www/build/p-e0320349.entry.js +0 -2
- /package/dist/collection/components/{result-card/z-result-card → z-result-card}/z-result-card.stories.js +0 -0
- /package/dist/types/components/{result-card/z-result-card → z-result-card}/z-result-card.stories.d.ts +0 -0
- /package/dist/web-components-library/{p-17259f80.entry.js.map → p-01f941c2.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-a4e26cad.entry.js.map → p-028dd72a.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-fef12692.entry.js.map → p-0990d475.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-fa9c35b7.entry.js.map → p-0a49dd1c.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-7faf6680.entry.js.map → p-240de9aa.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-970de597.entry.js.map → p-28534fb5.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-755e5bb3.entry.js.map → p-28d83c86.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-04f578d3.entry.js.map → p-2ffdfbb1.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-da6ba08a.entry.js.map → p-460b2068.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-bfa7b528.entry.js.map → p-46ea0b2e.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-add09050.entry.js.map → p-4a257653.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-d3a51980.entry.js.map → p-4aaf0172.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-22056263.entry.js.map → p-4affbb99.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-9f516be2.entry.js.map → p-5989465b.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-1775f79b.entry.js.map → p-5a1f98a2.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-a25c7fdb.entry.js.map → p-5c5882c6.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-a80faa78.entry.js.map → p-5f94986f.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-e0320349.entry.js.map → p-6cff173f.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-9e3116b0.entry.js.map → p-7194003a.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-9de4915b.entry.js.map → p-78146cef.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-f39f6ee8.entry.js.map → p-7a4f6a5b.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-945928ff.entry.js.map → p-7ceddb7a.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-50b800e6.entry.js.map → p-86160fe3.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-2105d5ec.entry.js.map → p-863fd1c4.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-70aa0b22.entry.js.map → p-943db3a8.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-6d2a6434.entry.js.map → p-94916bdf.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-8e5bc362.entry.js.map → p-a2e87cec.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-fe663393.entry.js.map → p-ac477ae7.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-75d50d5f.entry.js.map → p-af5e8524.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-fb78c343.entry.js.map → p-b3f1b5c1.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-6ebaa41d.entry.js.map → p-d60684d5.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-2264883d.entry.js.map → p-dc086eb5.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-f3287280.entry.js.map → p-e0b88075.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-7eb0e121.entry.js.map → p-f487290e.entry.js.map} +0 -0
- /package/www/build/{p-17259f80.entry.js.map → p-01f941c2.entry.js.map} +0 -0
- /package/www/build/{p-a4e26cad.entry.js.map → p-028dd72a.entry.js.map} +0 -0
- /package/www/build/{p-fef12692.entry.js.map → p-0990d475.entry.js.map} +0 -0
- /package/www/build/{p-fa9c35b7.entry.js.map → p-0a49dd1c.entry.js.map} +0 -0
- /package/www/build/{p-7faf6680.entry.js.map → p-240de9aa.entry.js.map} +0 -0
- /package/www/build/{p-970de597.entry.js.map → p-28534fb5.entry.js.map} +0 -0
- /package/www/build/{p-755e5bb3.entry.js.map → p-28d83c86.entry.js.map} +0 -0
- /package/www/build/{p-04f578d3.entry.js.map → p-2ffdfbb1.entry.js.map} +0 -0
- /package/www/build/{p-da6ba08a.entry.js.map → p-460b2068.entry.js.map} +0 -0
- /package/www/build/{p-bfa7b528.entry.js.map → p-46ea0b2e.entry.js.map} +0 -0
- /package/www/build/{p-add09050.entry.js.map → p-4a257653.entry.js.map} +0 -0
- /package/www/build/{p-d3a51980.entry.js.map → p-4aaf0172.entry.js.map} +0 -0
- /package/www/build/{p-22056263.entry.js.map → p-4affbb99.entry.js.map} +0 -0
- /package/www/build/{p-9f516be2.entry.js.map → p-5989465b.entry.js.map} +0 -0
- /package/www/build/{p-1775f79b.entry.js.map → p-5a1f98a2.entry.js.map} +0 -0
- /package/www/build/{p-a25c7fdb.entry.js.map → p-5c5882c6.entry.js.map} +0 -0
- /package/www/build/{p-a80faa78.entry.js.map → p-5f94986f.entry.js.map} +0 -0
- /package/www/build/{p-e0320349.entry.js.map → p-6cff173f.entry.js.map} +0 -0
- /package/www/build/{p-9e3116b0.entry.js.map → p-7194003a.entry.js.map} +0 -0
- /package/www/build/{p-9de4915b.entry.js.map → p-78146cef.entry.js.map} +0 -0
- /package/www/build/{p-f39f6ee8.entry.js.map → p-7a4f6a5b.entry.js.map} +0 -0
- /package/www/build/{p-945928ff.entry.js.map → p-7ceddb7a.entry.js.map} +0 -0
- /package/www/build/{p-50b800e6.entry.js.map → p-86160fe3.entry.js.map} +0 -0
- /package/www/build/{p-2105d5ec.entry.js.map → p-863fd1c4.entry.js.map} +0 -0
- /package/www/build/{p-70aa0b22.entry.js.map → p-943db3a8.entry.js.map} +0 -0
- /package/www/build/{p-6d2a6434.entry.js.map → p-94916bdf.entry.js.map} +0 -0
- /package/www/build/{p-8e5bc362.entry.js.map → p-a2e87cec.entry.js.map} +0 -0
- /package/www/build/{p-fe663393.entry.js.map → p-ac477ae7.entry.js.map} +0 -0
- /package/www/build/{p-75d50d5f.entry.js.map → p-af5e8524.entry.js.map} +0 -0
- /package/www/build/{p-fb78c343.entry.js.map → p-b3f1b5c1.entry.js.map} +0 -0
- /package/www/build/{p-6ebaa41d.entry.js.map → p-d60684d5.entry.js.map} +0 -0
- /package/www/build/{p-2264883d.entry.js.map → p-dc086eb5.entry.js.map} +0 -0
- /package/www/build/{p-f3287280.entry.js.map → p-e0b88075.entry.js.map} +0 -0
- /package/www/build/{p-7eb0e121.entry.js.map → p-f487290e.entry.js.map} +0 -0
|
@@ -1,476 +1,106 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import {
|
|
3
|
-
import { a as containsElement, i as findScrollableParent, g as getDevice, j as isElementVisibleInContainer } from './utils.js';
|
|
2
|
+
import { O as OffCanvasVariant, u as TransitionDirection } from './index2.js';
|
|
4
3
|
|
|
5
|
-
const stylesCss = "
|
|
6
|
-
const
|
|
4
|
+
const stylesCss = ".sc-z-offcanvas-h{font-family:var(--font-family-sans);font-weight:var(--font-rg)}[variant=\"pushcontent\"].sc-z-offcanvas-h:not([transitiondirection=\"up\"]){overflow:hidden}.canvas-container.sc-z-offcanvas{display:flex;overflow:hidden;min-width:100%;height:100%;background:var(--color-surface01);transform:translateX(0);transition:transform 0.4s ease-out}.sc-z-offcanvas-h>*.sc-z-offcanvas{position:fixed;top:var(--z-offcanvas--top-space, 0);right:0;bottom:0;left:0}[open].sc-z-offcanvas-h>*.sc-z-offcanvas{height:calc(100% - var(--z-offcanvas--top-space, 0px))}[transitiondirection=\"right\"].sc-z-offcanvas-h>.canvas-container.sc-z-offcanvas{transform:translateX(-100%)}[transitiondirection=\"left\"].sc-z-offcanvas-h>.canvas-container.sc-z-offcanvas{transform:translateX(100%)}[open][transitiondirection=\"right\"].sc-z-offcanvas-h>.canvas-container.sc-z-offcanvas,[open][transitiondirection=\"left\"].sc-z-offcanvas-h>.canvas-container.sc-z-offcanvas{transform:translateX(0)}[transitiondirection=\"up\"].sc-z-offcanvas-h>.canvas-container.sc-z-offcanvas{top:auto;bottom:0;height:var(--z-offcanvas--container-height, 90%);transform:translateY(100%)}[transitiondirection=\"up\"].sc-z-offcanvas-h>.canvas-container.sc-z-offcanvas,[variant=\"overlay\"].sc-z-offcanvas-h>.canvas-container.sc-z-offcanvas{z-index:1001}[open][transitiondirection=\"up\"].sc-z-offcanvas-h>.canvas-container.sc-z-offcanvas{transform:translateY(0)}[variant=\"pushcontent\"].sc-z-offcanvas-h:not([transitiondirection=\"up\"])>.canvas-container.sc-z-offcanvas{position:relative;height:100%}[variant=\"pushcontent\"].sc-z-offcanvas-h:not([open]){display:none}[skip-animation].sc-z-offcanvas-h>.canvas-container.sc-z-offcanvas{transition:none}.backdrop.sc-z-offcanvas{z-index:1000;width:100%;height:100%;background-color:var(--gray900);opacity:0;pointer-events:none;transition:opacity 0.4s ease-out}[open].sc-z-offcanvas-h>.backdrop.sc-z-offcanvas{opacity:0.7;pointer-events:unset}.canvas-container.sc-z-offcanvas>.canvas-content.sc-z-offcanvas{overflow:hidden auto;flex:1 auto;padding:0 calc(var(--space-unit) * 2);margin:calc(var(--space-unit) * 2) calc(var(--space-unit) / 2) calc(var(--space-unit) * 2) 0}@media (min-width: 768px){[variant=\"pushcontent\"].sc-z-offcanvas-h:not([transitiondirection=\"up\"]){flex:none}.canvas-container.sc-z-offcanvas{width:var(--z-offcanvas--container-width, 375px);min-width:var(--z-offcanvas--container-width, 375px)}[transitiondirection=\"up\"].sc-z-offcanvas-h>.canvas-container.sc-z-offcanvas{width:100%}[transitiondirection=\"right\"].sc-z-offcanvas-h>.canvas-container.sc-z-offcanvas{right:auto;left:0}[transitiondirection=\"left\"].sc-z-offcanvas-h>.canvas-container.sc-z-offcanvas{right:0;left:auto}}";
|
|
5
|
+
const ZOffcanvasStyle0 = stylesCss;
|
|
7
6
|
|
|
8
|
-
const
|
|
7
|
+
const ZOffcanvas = /*@__PURE__*/ proxyCustomElement(class ZOffcanvas extends HTMLElement {
|
|
9
8
|
constructor() {
|
|
10
9
|
super();
|
|
11
10
|
this.__registerHost();
|
|
12
|
-
this.
|
|
13
|
-
this.
|
|
14
|
-
this.openChange = createEvent(this, "openChange", 7);
|
|
15
|
-
/** space tolerance for space calculations */
|
|
16
|
-
this.spaceTolerance = 3;
|
|
17
|
-
this.position = PopoverPosition.TOP;
|
|
11
|
+
this.canvasOpenStatusChanged = createEvent(this, "canvasOpenStatusChanged", 7);
|
|
12
|
+
this.variant = OffCanvasVariant.PUSHCONTENT;
|
|
18
13
|
this.open = false;
|
|
19
|
-
this.
|
|
20
|
-
this.
|
|
21
|
-
this.
|
|
22
|
-
this.
|
|
23
|
-
this.currentPosition = undefined;
|
|
24
|
-
}
|
|
25
|
-
closePopoverWithKeyboard(e) {
|
|
26
|
-
if (this.closable && e.key === KeyboardCode.ESC) {
|
|
27
|
-
this.open = false;
|
|
28
|
-
}
|
|
14
|
+
this.transitiondirection = TransitionDirection.LEFT;
|
|
15
|
+
this.skipLoadAnimation = false;
|
|
16
|
+
this.showBackdrop = true;
|
|
17
|
+
this.skipAnimation = false;
|
|
29
18
|
}
|
|
30
19
|
/**
|
|
31
|
-
*
|
|
32
|
-
* Stop event propagation if the click was fired by popover's trigger element,
|
|
33
|
-
* to prevent close and reopen glitches.
|
|
20
|
+
* Stop the event default behavior and propagation when the offcanvas is closed.
|
|
34
21
|
*/
|
|
35
|
-
|
|
36
|
-
const target = e.target;
|
|
37
|
-
if (!this.closable || !this.open || containsElement(this.host, target)) {
|
|
38
|
-
return;
|
|
39
|
-
}
|
|
40
|
-
if (containsElement(this.boundElement, target)) {
|
|
41
|
-
// stop propagation if the click was on the trigger element to prevent close and reopen glitches
|
|
42
|
-
e.stopPropagation();
|
|
43
|
-
}
|
|
44
|
-
this.open = false;
|
|
45
|
-
}
|
|
46
|
-
validatePosition(newValue) {
|
|
47
|
-
if (!Object.values(PopoverPosition).includes(newValue) || newValue === PopoverPosition.AUTO) {
|
|
48
|
-
newValue = PopoverPosition.TOP;
|
|
49
|
-
this.position = newValue;
|
|
50
|
-
}
|
|
51
|
-
this.currentPosition = newValue;
|
|
22
|
+
stopEvent(event) {
|
|
52
23
|
if (this.open) {
|
|
53
|
-
this.setPosition();
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
/** Setup popover behaviors when `open` changes. */
|
|
57
|
-
onOpen() {
|
|
58
|
-
cancelAnimationFrame(this.animationFrameRequestId);
|
|
59
|
-
this.openChange.emit({ open: this.open });
|
|
60
|
-
if (!this.open) {
|
|
61
|
-
Object.assign(this.host.style, {
|
|
62
|
-
// Reset all positioning properties
|
|
63
|
-
top: "auto",
|
|
64
|
-
right: "auto",
|
|
65
|
-
bottom: "auto",
|
|
66
|
-
left: "auto",
|
|
67
|
-
maxWidth: "",
|
|
68
|
-
maxHeight: "",
|
|
69
|
-
// Set initial visibility to hidden while calculating position...
|
|
70
|
-
visibility: "hidden",
|
|
71
|
-
});
|
|
72
|
-
this.currentPosition = undefined;
|
|
73
24
|
return;
|
|
74
25
|
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
return;
|
|
78
|
-
}
|
|
79
|
-
this.setPosition();
|
|
80
|
-
this.animationFrameRequestId = requestAnimationFrame(updatePositionLoop);
|
|
81
|
-
};
|
|
82
|
-
// call `setPosition` after a tick to ensure the DOM is ready and sizes are available
|
|
83
|
-
setTimeout(() => {
|
|
84
|
-
updatePositionLoop();
|
|
85
|
-
}, 0);
|
|
86
|
-
}
|
|
87
|
-
onBindingChange() {
|
|
88
|
-
this.findBoundElement();
|
|
89
|
-
}
|
|
90
|
-
/** Returns the offset modifier to use in calculations to align the popover with the bound element. */
|
|
91
|
-
get offsetModifier() {
|
|
92
|
-
return this.center ? 0.5 : 0;
|
|
93
|
-
}
|
|
94
|
-
findBoundElement() {
|
|
95
|
-
if (typeof this.bindTo === "string") {
|
|
96
|
-
this.boundElement = this.host.ownerDocument.querySelector(this.bindTo);
|
|
97
|
-
}
|
|
98
|
-
else if (this.bindTo) {
|
|
99
|
-
this.boundElement = this.bindTo;
|
|
100
|
-
}
|
|
101
|
-
else {
|
|
102
|
-
this.boundElement = this.host.parentElement;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
* Check if element has enough space to the right and left to be centered.
|
|
107
|
-
* Used for `TOP` and `BOTTOM` position.
|
|
108
|
-
* When `center` is not enabled, only one side needs to be checked and `RIGHT` is the default.
|
|
109
|
-
*/
|
|
110
|
-
hasCenteredHorizontalSpace(availableLeft, availableRight, hostWidth, boundElementWidth) {
|
|
111
|
-
const requiredSideSpace = (hostWidth - boundElementWidth) * (1 - this.offsetModifier);
|
|
112
|
-
if (!this.center) {
|
|
113
|
-
return availableRight >= requiredSideSpace - this.spaceTolerance;
|
|
114
|
-
}
|
|
115
|
-
return (availableRight >= requiredSideSpace - this.spaceTolerance &&
|
|
116
|
-
availableLeft >= requiredSideSpace - this.spaceTolerance);
|
|
117
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
* Check if element has enough space to the top and bottom to be centered.
|
|
120
|
-
* Used for `RIGHT` and `LEFT` position.
|
|
121
|
-
* When `center` is not enabled, only one side needs to be checked and `BOTTOM` is the default.
|
|
122
|
-
*/
|
|
123
|
-
hasCenteredVerticalSpace(availableTop, availableBottom, hostHeight, boundElementHeight) {
|
|
124
|
-
const requiredSideSpace = (hostHeight - boundElementHeight) * (1 - this.offsetModifier);
|
|
125
|
-
if (!this.center) {
|
|
126
|
-
return availableBottom >= requiredSideSpace - this.spaceTolerance;
|
|
127
|
-
}
|
|
128
|
-
return (availableTop >= requiredSideSpace - this.spaceTolerance &&
|
|
129
|
-
availableBottom >= requiredSideSpace - this.spaceTolerance);
|
|
130
|
-
}
|
|
131
|
-
/**
|
|
132
|
-
* Check if there is enough space in the given direction to fit the popover.
|
|
133
|
-
* Used for composed positions like TOP_RIGHT, LEFT_BOTTOM, etc.
|
|
134
|
-
*/
|
|
135
|
-
hasEnoughSideSpace(availableSpace, hostSize, boundElementSize, offsetModifier) {
|
|
136
|
-
return availableSpace >= hostSize - boundElementSize * (1 - offsetModifier) - this.spaceTolerance;
|
|
26
|
+
event.preventDefault();
|
|
27
|
+
event.stopPropagation();
|
|
137
28
|
}
|
|
138
29
|
/**
|
|
139
|
-
*
|
|
140
|
-
* that fits the popover, trying all positions if needed.
|
|
141
|
-
* Takes into account offsetModifier for centering.
|
|
142
|
-
* @param desiredPosition The desired position of the popover.
|
|
143
|
-
* @param availableSpace The available space around the bound element.
|
|
30
|
+
* Hide the body overflow when the offcanvas is open.
|
|
144
31
|
*/
|
|
145
|
-
|
|
146
|
-
const
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
return (availableSpace.top >= hostHeight &&
|
|
162
|
-
this.hasEnoughSideSpace(availableSpace.left, hostWidth, boundElementWidth, offsetModifier));
|
|
163
|
-
case PopoverPosition.RIGHT:
|
|
164
|
-
return (availableSpace.right >= hostWidth &&
|
|
165
|
-
this.hasCenteredVerticalSpace(availableSpace.top, availableSpace.bottom, hostHeight, boundElementHeight));
|
|
166
|
-
case PopoverPosition.RIGHT_BOTTOM:
|
|
167
|
-
return (availableSpace.right >= hostWidth &&
|
|
168
|
-
this.hasEnoughSideSpace(availableSpace.bottom, hostHeight, boundElementHeight, offsetModifier));
|
|
169
|
-
case PopoverPosition.RIGHT_TOP:
|
|
170
|
-
return (availableSpace.right >= hostWidth &&
|
|
171
|
-
this.hasEnoughSideSpace(availableSpace.top, hostHeight, boundElementHeight, offsetModifier));
|
|
172
|
-
case PopoverPosition.BOTTOM:
|
|
173
|
-
return (availableSpace.bottom >= hostHeight &&
|
|
174
|
-
this.hasCenteredHorizontalSpace(availableSpace.left, availableSpace.right, hostWidth, boundElementWidth));
|
|
175
|
-
case PopoverPosition.BOTTOM_LEFT:
|
|
176
|
-
return (availableSpace.bottom >= hostHeight &&
|
|
177
|
-
this.hasEnoughSideSpace(availableSpace.left, hostWidth, boundElementWidth, offsetModifier));
|
|
178
|
-
case PopoverPosition.BOTTOM_RIGHT:
|
|
179
|
-
return (availableSpace.bottom >= hostHeight &&
|
|
180
|
-
this.hasEnoughSideSpace(availableSpace.right, hostWidth, boundElementWidth, offsetModifier));
|
|
181
|
-
case PopoverPosition.LEFT:
|
|
182
|
-
return (availableSpace.left >= hostWidth &&
|
|
183
|
-
this.hasCenteredVerticalSpace(availableSpace.top, availableSpace.bottom, hostHeight, boundElementHeight));
|
|
184
|
-
case PopoverPosition.LEFT_TOP:
|
|
185
|
-
return (availableSpace.left >= hostWidth &&
|
|
186
|
-
this.hasEnoughSideSpace(availableSpace.top, hostHeight, boundElementHeight, offsetModifier));
|
|
187
|
-
case PopoverPosition.LEFT_BOTTOM:
|
|
188
|
-
return (availableSpace.left >= hostWidth &&
|
|
189
|
-
this.hasEnoughSideSpace(availableSpace.bottom, hostHeight, boundElementHeight, offsetModifier));
|
|
190
|
-
default:
|
|
191
|
-
return false;
|
|
192
|
-
}
|
|
193
|
-
};
|
|
194
|
-
// Check desired position first
|
|
195
|
-
if (fits(desiredPosition)) {
|
|
196
|
-
return desiredPosition;
|
|
197
|
-
}
|
|
198
|
-
// Find position index and create rotation starting from next position
|
|
199
|
-
const positions = ZPopover.positionOrder;
|
|
200
|
-
const startIndex = positions.indexOf(desiredPosition);
|
|
201
|
-
if (startIndex === -1) {
|
|
202
|
-
return desiredPosition; // fallback if position not found
|
|
203
|
-
}
|
|
204
|
-
// Try all other positions starting from the next one
|
|
205
|
-
for (let i = 1; i < positions.length; i++) {
|
|
206
|
-
const posIndex = (startIndex + i) % positions.length;
|
|
207
|
-
const pos = positions[posIndex];
|
|
208
|
-
if (fits(pos)) {
|
|
209
|
-
return pos;
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
return this.findBestFallbackPosition(availableSpace);
|
|
213
|
-
}
|
|
214
|
-
/** Find the best fallback position based on available space when no position fits perfectly. */
|
|
215
|
-
findBestFallbackPosition(availableSpace) {
|
|
216
|
-
// Determine which horizontal and vertical direction has the most available space
|
|
217
|
-
const bestHorizontalDirection = availableSpace.right >= availableSpace.left ? PopoverPosition.RIGHT : PopoverPosition.LEFT;
|
|
218
|
-
const bestVerticalDirection = availableSpace.bottom >= availableSpace.top ? PopoverPosition.BOTTOM : PopoverPosition.TOP;
|
|
219
|
-
// Choose the main direction based on which axis has more space overall
|
|
220
|
-
const maxHorizontalSpace = Math.max(availableSpace.right, availableSpace.left);
|
|
221
|
-
const maxVerticalSpace = Math.max(availableSpace.bottom, availableSpace.top);
|
|
222
|
-
const mainDirection = maxVerticalSpace >= maxHorizontalSpace ? bestVerticalDirection : bestHorizontalDirection;
|
|
223
|
-
// Decide if a secondary direction is needed
|
|
224
|
-
// Only add a secondary direction if the difference between min and max in that axis is at least double
|
|
225
|
-
let needsSecondaryDirection = false;
|
|
226
|
-
if (mainDirection === bestVerticalDirection) {
|
|
227
|
-
// If main direction is vertical, check horizontal space difference
|
|
228
|
-
const minHorizontalSpace = Math.min(availableSpace.right, availableSpace.left);
|
|
229
|
-
needsSecondaryDirection = maxHorizontalSpace >= minHorizontalSpace * 2;
|
|
32
|
+
handlePageOverflow() {
|
|
33
|
+
const overflow = this.variant === OffCanvasVariant.OVERLAY || this.transitiondirection === TransitionDirection.UP
|
|
34
|
+
? "overflow-y"
|
|
35
|
+
: "overflow-x";
|
|
36
|
+
document.body.style[overflow] = this.open ? "hidden" : "";
|
|
37
|
+
}
|
|
38
|
+
onOpenChanged() {
|
|
39
|
+
var _a;
|
|
40
|
+
this.canvasOpenStatusChanged.emit(this.open);
|
|
41
|
+
if (!this.open) {
|
|
42
|
+
// when the offcanvas is closing, wait for the transitionend event to end before handling the body overflow
|
|
43
|
+
const listenerCallback = () => {
|
|
44
|
+
this.handlePageOverflow();
|
|
45
|
+
this.canvasContainer.removeEventListener("transitionend", listenerCallback);
|
|
46
|
+
};
|
|
47
|
+
(_a = this.canvasContainer) === null || _a === void 0 ? void 0 : _a.addEventListener("transitionend", listenerCallback);
|
|
230
48
|
}
|
|
231
49
|
else {
|
|
232
|
-
|
|
233
|
-
const minVerticalSpace = Math.min(availableSpace.bottom, availableSpace.top);
|
|
234
|
-
needsSecondaryDirection = maxVerticalSpace >= minVerticalSpace * 2;
|
|
235
|
-
}
|
|
236
|
-
if (!needsSecondaryDirection) {
|
|
237
|
-
return mainDirection;
|
|
238
|
-
}
|
|
239
|
-
const secondaryDirection = mainDirection === bestVerticalDirection ? bestHorizontalDirection : bestVerticalDirection;
|
|
240
|
-
// Return a combined position (e.g., "bottom_right")
|
|
241
|
-
return `${mainDirection}_${secondaryDirection}`;
|
|
242
|
-
}
|
|
243
|
-
/**
|
|
244
|
-
* Calculate available space around the element bound with the popover, based on its nearest scrollable ancestor.
|
|
245
|
-
*
|
|
246
|
-
* Calculations for `right` and `bottom` can be a little bit confusing because `boundingRect.right` and `bottom` may not be what you expect...
|
|
247
|
-
* For more information see the explanation in the docs.
|
|
248
|
-
* @link https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect#return_value
|
|
249
|
-
*/
|
|
250
|
-
calculateAvailableSpace() {
|
|
251
|
-
const boundElementRect = this.boundElement.getBoundingClientRect();
|
|
252
|
-
if (this.lastBoundRect &&
|
|
253
|
-
this.lastBoundRect.x === boundElementRect.x &&
|
|
254
|
-
this.lastBoundRect.y === boundElementRect.y &&
|
|
255
|
-
this.lastBoundRect.width === boundElementRect.width &&
|
|
256
|
-
this.lastBoundRect.height === boundElementRect.height &&
|
|
257
|
-
this.cachedAvailableSpace) {
|
|
258
|
-
// If the bound element's rect hasn't changed, return the cached rect
|
|
259
|
-
return this.cachedAvailableSpace;
|
|
50
|
+
this.handlePageOverflow();
|
|
260
51
|
}
|
|
261
|
-
this.lastBoundRect = boundElementRect;
|
|
262
|
-
const scrollableParent = findScrollableParent(this.boundElement);
|
|
263
|
-
const scrollableParentRect = scrollableParent.getBoundingClientRect();
|
|
264
|
-
const hasNestedScrollableParent = scrollableParent !== this.boundElement.ownerDocument.documentElement;
|
|
265
|
-
const documentWidth = this.boundElement.ownerDocument.documentElement.clientWidth;
|
|
266
|
-
const documentHeight = this.boundElement.ownerDocument.documentElement.clientHeight;
|
|
267
|
-
const safeSpace = 8; // extra space to avoid popover being too close to the edges
|
|
268
|
-
// These deltas represent the offset between the scrollable parent and the viewport.
|
|
269
|
-
// They are used to adjust the available space calculations when the scrollable parent is not the document or body,
|
|
270
|
-
// to try to fit the popover inside the scrollable parent.
|
|
271
|
-
const deltaTop = hasNestedScrollableParent ? scrollableParentRect.top : 0;
|
|
272
|
-
const deltaRight = hasNestedScrollableParent ? documentWidth - scrollableParentRect.right : 0;
|
|
273
|
-
const deltaBottom = hasNestedScrollableParent ? documentHeight - scrollableParentRect.bottom : 0;
|
|
274
|
-
const deltaLeft = hasNestedScrollableParent ? scrollableParentRect.left : 0;
|
|
275
|
-
this.cachedAvailableSpace = {
|
|
276
|
-
top: boundElementRect.top - deltaTop - safeSpace,
|
|
277
|
-
right: documentWidth - boundElementRect.right - deltaRight - safeSpace,
|
|
278
|
-
bottom: documentHeight - boundElementRect.bottom - deltaBottom - safeSpace,
|
|
279
|
-
left: boundElementRect.left - deltaLeft - safeSpace,
|
|
280
|
-
};
|
|
281
|
-
return this.cachedAvailableSpace;
|
|
282
52
|
}
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
const viewportWidth = element.ownerDocument.documentElement.clientWidth;
|
|
287
|
-
const viewportHeight = element.ownerDocument.documentElement.clientHeight;
|
|
288
|
-
return {
|
|
289
|
-
top: elementRect.top,
|
|
290
|
-
right: viewportWidth - elementRect.right,
|
|
291
|
-
bottom: viewportHeight - elementRect.bottom,
|
|
292
|
-
left: elementRect.left,
|
|
293
|
-
};
|
|
294
|
-
}
|
|
295
|
-
/** Apply positioning styles based on passed position. */
|
|
296
|
-
applyPositionStyles(position, availableSpace) {
|
|
297
|
-
const boundElementWidth = this.boundElement.offsetWidth;
|
|
298
|
-
const boundElementHeight = this.boundElement.offsetHeight;
|
|
299
|
-
/** Distance between the popover and the bound element */
|
|
300
|
-
const distanceFromBound = 8;
|
|
301
|
-
const offsetModifier = this.offsetModifier;
|
|
302
|
-
/** Distance between the arrow center and the popover edge. Needed to align the center of the arrow with the center of the bound element when `showArrow` and `center` are enabled. */
|
|
303
|
-
const arrowModifier = this.showArrow && this.center ? 8 : 0;
|
|
304
|
-
const hostStyle = this.host.style;
|
|
305
|
-
const boundElementOffsets = this.calculateElementOffsets(this.boundElement);
|
|
306
|
-
let maxWidth;
|
|
307
|
-
let maxHeight;
|
|
308
|
-
switch (position) {
|
|
309
|
-
case PopoverPosition.TOP:
|
|
310
|
-
case PopoverPosition.TOP_RIGHT:
|
|
311
|
-
hostStyle.bottom = `${boundElementOffsets.bottom + boundElementHeight}px`;
|
|
312
|
-
hostStyle.left = `${boundElementOffsets.left + boundElementWidth * offsetModifier - (position === PopoverPosition.TOP_RIGHT ? arrowModifier : 0)}px`;
|
|
313
|
-
maxHeight = availableSpace.top - distanceFromBound;
|
|
314
|
-
if (position === PopoverPosition.TOP_RIGHT) {
|
|
315
|
-
maxWidth = availableSpace.right + boundElementWidth * offsetModifier;
|
|
316
|
-
}
|
|
317
|
-
break;
|
|
318
|
-
case PopoverPosition.TOP_LEFT:
|
|
319
|
-
hostStyle.right = `${boundElementOffsets.right + boundElementWidth * offsetModifier - arrowModifier}px`;
|
|
320
|
-
hostStyle.bottom = `${boundElementOffsets.bottom + boundElementHeight}px`;
|
|
321
|
-
maxWidth = availableSpace.left + boundElementWidth * offsetModifier;
|
|
322
|
-
maxHeight = availableSpace.top - distanceFromBound;
|
|
323
|
-
break;
|
|
324
|
-
case PopoverPosition.BOTTOM:
|
|
325
|
-
case PopoverPosition.BOTTOM_RIGHT:
|
|
326
|
-
hostStyle.top = `${boundElementOffsets.top + boundElementHeight}px`;
|
|
327
|
-
hostStyle.left = `${boundElementOffsets.left + boundElementWidth * offsetModifier - (position === PopoverPosition.BOTTOM_RIGHT ? arrowModifier : 0)}px`;
|
|
328
|
-
maxHeight = availableSpace.bottom - distanceFromBound;
|
|
329
|
-
if (position === PopoverPosition.BOTTOM_RIGHT) {
|
|
330
|
-
maxWidth = availableSpace.right + boundElementWidth * offsetModifier;
|
|
331
|
-
}
|
|
332
|
-
break;
|
|
333
|
-
case PopoverPosition.BOTTOM_LEFT:
|
|
334
|
-
hostStyle.top = `${boundElementOffsets.top + boundElementHeight}px`;
|
|
335
|
-
hostStyle.right = `${boundElementOffsets.right + boundElementWidth * offsetModifier - arrowModifier}px`;
|
|
336
|
-
maxWidth = availableSpace.left + boundElementWidth * offsetModifier;
|
|
337
|
-
maxHeight = availableSpace.bottom - distanceFromBound;
|
|
338
|
-
break;
|
|
339
|
-
case PopoverPosition.RIGHT:
|
|
340
|
-
case PopoverPosition.RIGHT_BOTTOM:
|
|
341
|
-
hostStyle.top = `${boundElementOffsets.top + boundElementHeight * offsetModifier - (position === PopoverPosition.RIGHT_BOTTOM ? arrowModifier : 0)}px`;
|
|
342
|
-
hostStyle.left = `${boundElementOffsets.left + boundElementWidth}px`;
|
|
343
|
-
maxWidth = availableSpace.right - distanceFromBound;
|
|
344
|
-
if (position === PopoverPosition.RIGHT) {
|
|
345
|
-
maxHeight = availableSpace.top + availableSpace.bottom + boundElementHeight;
|
|
346
|
-
}
|
|
347
|
-
else {
|
|
348
|
-
maxHeight = availableSpace.bottom + boundElementHeight * offsetModifier;
|
|
349
|
-
}
|
|
350
|
-
break;
|
|
351
|
-
case PopoverPosition.RIGHT_TOP:
|
|
352
|
-
hostStyle.bottom = `${boundElementOffsets.bottom + boundElementHeight * offsetModifier - arrowModifier}px`;
|
|
353
|
-
hostStyle.left = `${boundElementOffsets.left + boundElementWidth}px`;
|
|
354
|
-
maxWidth = availableSpace.right - distanceFromBound;
|
|
355
|
-
maxHeight = availableSpace.top + boundElementHeight * offsetModifier;
|
|
356
|
-
break;
|
|
357
|
-
case PopoverPosition.LEFT:
|
|
358
|
-
case PopoverPosition.LEFT_BOTTOM:
|
|
359
|
-
hostStyle.top = `${boundElementOffsets.top + boundElementHeight * offsetModifier - (position === PopoverPosition.LEFT_BOTTOM ? arrowModifier : 0)}px`;
|
|
360
|
-
hostStyle.right = `${boundElementOffsets.right + boundElementWidth}px`;
|
|
361
|
-
maxWidth = availableSpace.left - distanceFromBound;
|
|
362
|
-
if (position === PopoverPosition.LEFT_BOTTOM) {
|
|
363
|
-
maxHeight = availableSpace.bottom + boundElementHeight * offsetModifier;
|
|
364
|
-
}
|
|
365
|
-
break;
|
|
366
|
-
case PopoverPosition.LEFT_TOP:
|
|
367
|
-
hostStyle.right = `${boundElementOffsets.right + boundElementWidth}px`;
|
|
368
|
-
hostStyle.bottom = `${boundElementOffsets.bottom + boundElementHeight * offsetModifier - arrowModifier}px`;
|
|
369
|
-
maxWidth = availableSpace.left - distanceFromBound;
|
|
370
|
-
maxHeight = availableSpace.top + boundElementHeight * offsetModifier;
|
|
371
|
-
break;
|
|
372
|
-
}
|
|
373
|
-
if (getDevice() !== Device.MOBILE) {
|
|
374
|
-
// Only force max sizes on non-mobile viewports
|
|
375
|
-
Object.assign(hostStyle, {
|
|
376
|
-
maxWidth: maxWidth ? `${maxWidth}px` : "",
|
|
377
|
-
maxHeight: maxHeight ? `${maxHeight}px` : "",
|
|
378
|
-
});
|
|
53
|
+
componentWillLoad() {
|
|
54
|
+
if (this.open) {
|
|
55
|
+
this.skipAnimation = true;
|
|
379
56
|
}
|
|
380
57
|
}
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
if (!this.boundElement) {
|
|
384
|
-
return;
|
|
385
|
-
}
|
|
386
|
-
if (!isElementVisibleInContainer(this.boundElement, findScrollableParent(this.boundElement))) {
|
|
387
|
-
// If the bound element is not visible, hide the popover too
|
|
388
|
-
this.open = false;
|
|
389
|
-
return;
|
|
390
|
-
}
|
|
391
|
-
Object.assign(this.host.style, {
|
|
392
|
-
// Reset all positioning properties
|
|
393
|
-
top: "auto",
|
|
394
|
-
right: "auto",
|
|
395
|
-
bottom: "auto",
|
|
396
|
-
left: "auto",
|
|
397
|
-
maxWidth: "",
|
|
398
|
-
maxHeight: "",
|
|
399
|
-
// Set initial visibility to hidden while calculating position...
|
|
400
|
-
visibility: "hidden",
|
|
401
|
-
});
|
|
402
|
-
const availableSpace = this.calculateAvailableSpace();
|
|
403
|
-
const position = this.getOptimalPopoverPosition(this.position, availableSpace);
|
|
404
|
-
this.applyPositionStyles(position, availableSpace);
|
|
405
|
-
this.currentPosition = position;
|
|
406
|
-
this.positionChange.emit({ position: this.currentPosition });
|
|
407
|
-
// ...then restore the visibility
|
|
408
|
-
this.host.style.visibility = "visible";
|
|
58
|
+
componentDidLoad() {
|
|
59
|
+
this.handlePageOverflow();
|
|
409
60
|
}
|
|
410
|
-
|
|
411
|
-
this.
|
|
61
|
+
componentDidRender() {
|
|
62
|
+
this.skipAnimation = false;
|
|
412
63
|
}
|
|
413
|
-
|
|
414
|
-
this.
|
|
415
|
-
if (this.open) {
|
|
416
|
-
this.onOpen();
|
|
417
|
-
}
|
|
64
|
+
connectedCallback() {
|
|
65
|
+
this.handlePageOverflow();
|
|
418
66
|
}
|
|
419
67
|
disconnectedCallback() {
|
|
420
|
-
|
|
68
|
+
this.open = false;
|
|
421
69
|
}
|
|
422
70
|
render() {
|
|
423
|
-
return (h(Host, { key: '
|
|
71
|
+
return (h(Host, { key: '52ce71415709ffe342802b789448fe168eef9d3d', "skip-animation": this.skipAnimation, "aria-hidden": !this.open ? "true" : null }, h("div", { key: '93173c6176acd24a8f02541b5becd3dfd7f98ac3', class: "canvas-container", role: "presentation", ref: (el) => (this.canvasContainer = el) }, h("div", { key: '82b36a24cbf7856d8f8ee17952e0cf733529f7ae', class: "canvas-content z-scrollbar", role: "presentation" }, h("slot", { key: 'e5281598686c2d0de459045ceaa81c1c31dbcd22', name: "canvasContent" }))), (this.variant == OffCanvasVariant.OVERLAY || this.transitiondirection === TransitionDirection.UP) &&
|
|
72
|
+
this.showBackdrop && (h("div", { key: 'b912144f9bf525114394cd03f84f38f810c8cb29', class: "backdrop", onClick: () => (this.open = false) }))));
|
|
424
73
|
}
|
|
425
|
-
get host() { return this; }
|
|
426
74
|
static get watchers() { return {
|
|
427
|
-
"
|
|
428
|
-
"open": ["
|
|
429
|
-
"bindTo": ["onBindingChange"]
|
|
75
|
+
"variant": ["handlePageOverflow"],
|
|
76
|
+
"open": ["onOpenChanged"]
|
|
430
77
|
}; }
|
|
431
|
-
static get style() { return
|
|
432
|
-
}, [
|
|
433
|
-
"
|
|
78
|
+
static get style() { return ZOffcanvasStyle0; }
|
|
79
|
+
}, [6, "z-offcanvas", {
|
|
80
|
+
"variant": [513],
|
|
434
81
|
"open": [1540],
|
|
435
|
-
"
|
|
436
|
-
"
|
|
437
|
-
"
|
|
438
|
-
"
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
"
|
|
442
|
-
"open": ["onOpen"],
|
|
443
|
-
"bindTo": ["onBindingChange"]
|
|
82
|
+
"transitiondirection": [513],
|
|
83
|
+
"skipLoadAnimation": [4, "skip-load-animation"],
|
|
84
|
+
"showBackdrop": [4, "show-backdrop"],
|
|
85
|
+
"skipAnimation": [32]
|
|
86
|
+
}, [[2, "click", "stopEvent"], [2, "focusin", "stopEvent"]], {
|
|
87
|
+
"variant": ["handlePageOverflow"],
|
|
88
|
+
"open": ["onOpenChanged"]
|
|
444
89
|
}]);
|
|
445
|
-
// Clockwise order of positions.
|
|
446
|
-
ZPopover.positionOrder = [
|
|
447
|
-
PopoverPosition.TOP,
|
|
448
|
-
PopoverPosition.TOP_RIGHT,
|
|
449
|
-
PopoverPosition.TOP_LEFT,
|
|
450
|
-
PopoverPosition.RIGHT,
|
|
451
|
-
PopoverPosition.RIGHT_BOTTOM,
|
|
452
|
-
PopoverPosition.RIGHT_TOP,
|
|
453
|
-
PopoverPosition.BOTTOM,
|
|
454
|
-
PopoverPosition.BOTTOM_LEFT,
|
|
455
|
-
PopoverPosition.BOTTOM_RIGHT,
|
|
456
|
-
PopoverPosition.LEFT,
|
|
457
|
-
PopoverPosition.LEFT_TOP,
|
|
458
|
-
PopoverPosition.LEFT_BOTTOM,
|
|
459
|
-
];
|
|
460
90
|
function defineCustomElement() {
|
|
461
91
|
if (typeof customElements === "undefined") {
|
|
462
92
|
return;
|
|
463
93
|
}
|
|
464
|
-
const components = ["z-
|
|
94
|
+
const components = ["z-offcanvas"];
|
|
465
95
|
components.forEach(tagName => { switch (tagName) {
|
|
466
|
-
case "z-
|
|
96
|
+
case "z-offcanvas":
|
|
467
97
|
if (!customElements.get(tagName)) {
|
|
468
|
-
customElements.define(tagName,
|
|
98
|
+
customElements.define(tagName, ZOffcanvas);
|
|
469
99
|
}
|
|
470
100
|
break;
|
|
471
101
|
} });
|
|
472
102
|
}
|
|
473
103
|
|
|
474
|
-
export {
|
|
104
|
+
export { ZOffcanvas as Z, defineCustomElement as d };
|
|
475
105
|
|
|
476
106
|
//# sourceMappingURL=index23.js.map
|