@zanichelli/albe-web-components 18.4.1 → 18.4.2-RC1
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 +0 -40
- package/dist/cjs/_commonjsHelpers-68cdf74f.js +7 -0
- package/dist/cjs/_commonjsHelpers-68cdf74f.js.map +1 -0
- package/dist/cjs/{index-f0b0a7d1.js → index-443b084a.js} +2 -2
- package/dist/cjs/{index-f0b0a7d1.js.map → index-443b084a.js.map} +1 -1
- package/dist/cjs/{index-4f18c0e2.js → index-be0b8cf5.js} +6 -1
- package/dist/cjs/index-be0b8cf5.js.map +1 -0
- package/dist/cjs/{index-d1759a5a.js → index-e98b419e.js} +2 -2
- package/dist/cjs/{index-d1759a5a.js.map → index-e98b419e.js.map} +1 -1
- package/dist/cjs/{index-394da17e.js → index-f67078cb.js} +4 -4
- package/dist/cjs/{index-394da17e.js.map → index-f67078cb.js.map} +1 -1
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{utils-123c371d.js → utils-4087e353.js} +4 -6
- package/dist/cjs/utils-4087e353.js.map +1 -0
- package/dist/cjs/{utils-67ea6e35.js → utils-714b7a92.js} +2 -2
- package/dist/cjs/{utils-67ea6e35.js.map → utils-714b7a92.js.map} +1 -1
- package/dist/cjs/web-components-library.cjs.js +1 -1
- package/dist/cjs/z-accordion.cjs.entry.js +1 -1
- package/dist/cjs/z-alert.cjs.entry.js +1 -1
- package/dist/cjs/z-anchor-navigation.cjs.entry.js +1 -1
- package/dist/cjs/z-app-header-deprecated.cjs.entry.js +1 -1
- package/dist/cjs/z-app-header_12.cjs.entry.js +3 -3
- package/dist/cjs/z-aria-alert.cjs.entry.js +1 -1
- package/dist/cjs/z-avatar.cjs.entry.js +1 -1
- package/dist/cjs/z-book-card-app.cjs.entry.js +1 -1
- package/dist/cjs/z-book-card-deprecated.cjs.entry.js +2 -2
- package/dist/cjs/z-book-card.cjs.entry.js +1 -1
- package/dist/cjs/z-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/z-card.cjs.entry.js +1 -1
- package/dist/cjs/z-carousel.cjs.entry.js +1 -1
- package/dist/cjs/z-chip.cjs.entry.js +1 -1
- package/dist/cjs/z-combobox.cjs.entry.js +2 -2
- package/dist/cjs/z-cover-hero.cjs.entry.js +1 -1
- package/dist/cjs/z-date-picker.cjs.entry.js +4 -3
- package/dist/cjs/z-date-picker.cjs.entry.js.map +1 -1
- package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +1 -1
- package/dist/cjs/z-file-upload.cjs.entry.js +1 -1
- package/dist/cjs/z-file.cjs.entry.js +1 -1
- package/dist/cjs/z-info-reveal.cjs.entry.js +1 -1
- package/dist/cjs/z-menu-section.cjs.entry.js +1 -1
- package/dist/cjs/z-menu.cjs.entry.js +2 -2
- package/dist/cjs/z-myz-card-alert.cjs.entry.js +2 -2
- package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +2 -2
- package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-footer.cjs.entry.js +2 -2
- package/dist/cjs/z-myz-card-icon.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-info.cjs.entry.js +3 -3
- package/dist/cjs/z-myz-card-list.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card_4.cjs.entry.js +5 -5
- package/dist/cjs/z-myz-list-item.cjs.entry.js +3 -3
- 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-navigation-tabs.cjs.entry.js.map +1 -1
- package/dist/cjs/z-otp.cjs.entry.js +3 -3
- package/dist/cjs/z-pagination.cjs.entry.js +1 -1
- package/dist/cjs/z-popover.cjs.entry.js +307 -153
- package/dist/cjs/z-popover.cjs.entry.js.map +1 -1
- package/dist/cjs/z-range-picker.cjs.entry.js +3 -2
- package/dist/cjs/z-range-picker.cjs.entry.js.map +1 -1
- package/dist/cjs/z-section-title.cjs.entry.js +1 -1
- package/dist/cjs/z-select.cjs.entry.js +2 -2
- package/dist/cjs/z-skip-to-content.cjs.entry.js +3 -3
- package/dist/cjs/z-slideshow.cjs.entry.js +2 -2
- 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-table.cjs.entry.js +5 -5
- package/dist/cjs/z-td.cjs.entry.js +2 -2
- package/dist/cjs/z-th.cjs.entry.js +2 -2
- package/dist/cjs/z-toast-notification-list.cjs.entry.js +2 -2
- package/dist/cjs/z-toast-notification.cjs.entry.js +1387 -11
- package/dist/cjs/z-toast-notification.cjs.entry.js.map +1 -1
- package/dist/cjs/z-toggle-button.cjs.entry.js +2 -2
- package/dist/cjs/z-toggle-switch.cjs.entry.js +5 -5
- package/dist/cjs/z-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/z-tr.cjs.entry.js +5 -5
- package/dist/cjs/z-tree-list.cjs.entry.js +1 -1
- package/dist/collection/beans/index.js +5 -0
- package/dist/collection/beans/index.js.map +1 -1
- package/dist/collection/components/file-upload/z-file-upload/index.js +1 -1
- package/dist/collection/components/z-navigation-tabs/styles.css +1 -1
- package/dist/collection/components/z-popover/index.js +316 -156
- package/dist/collection/components/z-popover/index.js.map +1 -1
- package/dist/collection/components/z-popover/index.stories.js +124 -41
- package/dist/collection/components/z-popover/index.stories.js.map +1 -1
- package/dist/collection/components/z-popover/styles.css +16 -10
- package/dist/collection/components/z-searchbar/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 +28 -10
- package/dist/collection/components/z-toast-notification/index.js.map +1 -1
- package/dist/collection/components/z-toast-notification/index.stories.js +6 -2
- package/dist/collection/components/z-toast-notification/index.stories.js.map +1 -1
- package/dist/collection/components/z-toast-notification-list/index.js +1 -1
- package/dist/collection/components/z-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/_commonjsHelpers.js +5 -0
- package/dist/components/_commonjsHelpers.js.map +1 -0
- package/dist/components/index17.js +1 -1
- package/dist/components/index18.js +1 -1
- package/dist/components/index19.js +1 -1
- package/dist/components/index2.js +5 -0
- package/dist/components/index2.js.map +1 -1
- package/dist/components/index20.js +1 -1
- package/dist/components/index21.js +1 -1
- package/dist/components/index23.js +308 -154
- package/dist/components/index23.js.map +1 -1
- package/dist/components/index24.js +1 -1
- package/dist/components/index3.js +1 -1
- package/dist/components/utils2.js +2 -3
- package/dist/components/utils2.js.map +1 -1
- package/dist/components/z-date-picker.js +2 -1
- package/dist/components/z-date-picker.js.map +1 -1
- package/dist/components/z-myz-card-alert.js +1 -1
- package/dist/components/z-myz-card-dictionary.js +1 -1
- package/dist/components/z-myz-card-footer-sections.js +1 -1
- package/dist/components/z-myz-card-footer.js +1 -1
- package/dist/components/z-myz-card-icon.js +1 -1
- package/dist/components/z-myz-card-info.js +1 -1
- package/dist/components/z-myz-card-list.js +1 -1
- package/dist/components/z-myz-list.js +1 -1
- package/dist/components/z-navigation-tabs.js +1 -1
- package/dist/components/z-navigation-tabs.js.map +1 -1
- package/dist/components/z-otp.js +2 -2
- package/dist/components/z-skip-to-content.js +1 -1
- package/dist/components/z-stepper-item.js +1 -1
- package/dist/components/z-stepper.js +1 -1
- package/dist/components/z-table.js +1 -0
- package/dist/components/z-table.js.map +1 -1
- package/dist/components/z-toast-notification-list.js +1 -1
- package/dist/components/z-toast-notification.js +1386 -10
- package/dist/components/z-toast-notification.js.map +1 -1
- package/dist/components/z-toggle-button.js +2 -2
- package/dist/components/z-toggle-switch.js +3 -3
- package/dist/components/z-tooltip.js +1 -1
- package/dist/components/z-tr.js +1 -0
- package/dist/components/z-tr.js.map +1 -1
- package/dist/esm/_commonjsHelpers-1c8beb5f.js +5 -0
- package/dist/esm/_commonjsHelpers-1c8beb5f.js.map +1 -0
- package/dist/esm/{index-fc0913d1.js → index-2a26d10b.js} +2 -2
- package/dist/esm/{index-fc0913d1.js.map → index-2a26d10b.js.map} +1 -1
- package/dist/esm/{index-2ccbb96f.js → index-406138db.js} +2 -2
- package/dist/esm/{index-2ccbb96f.js.map → index-406138db.js.map} +1 -1
- package/dist/esm/{index-fe87283d.js → index-9f584e0a.js} +6 -1
- package/dist/esm/index-9f584e0a.js.map +1 -0
- package/dist/esm/{index-ceebee64.js → index-be3c8aaa.js} +4 -4
- package/dist/esm/{index-ceebee64.js.map → index-be3c8aaa.js.map} +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{utils-c7062cf7.js → utils-6e83ba99.js} +2 -2
- package/dist/esm/{utils-c7062cf7.js.map → utils-6e83ba99.js.map} +1 -1
- package/dist/esm/{utils-5e53516d.js → utils-fa0dd1c1.js} +4 -5
- package/dist/esm/utils-fa0dd1c1.js.map +1 -0
- package/dist/esm/web-components-library.js +1 -1
- package/dist/esm/z-accordion.entry.js +1 -1
- package/dist/esm/z-alert.entry.js +1 -1
- package/dist/esm/z-anchor-navigation.entry.js +1 -1
- package/dist/esm/z-app-header-deprecated.entry.js +1 -1
- package/dist/esm/z-app-header_12.entry.js +3 -3
- package/dist/esm/z-aria-alert.entry.js +1 -1
- package/dist/esm/z-avatar.entry.js +1 -1
- package/dist/esm/z-book-card-app.entry.js +1 -1
- package/dist/esm/z-book-card-deprecated.entry.js +2 -2
- package/dist/esm/z-book-card.entry.js +1 -1
- package/dist/esm/z-breadcrumb.entry.js +2 -2
- package/dist/esm/z-card.entry.js +1 -1
- package/dist/esm/z-carousel.entry.js +1 -1
- package/dist/esm/z-chip.entry.js +1 -1
- package/dist/esm/z-combobox.entry.js +2 -2
- package/dist/esm/z-cover-hero.entry.js +1 -1
- package/dist/esm/z-date-picker.entry.js +3 -2
- package/dist/esm/z-date-picker.entry.js.map +1 -1
- package/dist/esm/z-dragdrop-area_2.entry.js +1 -1
- package/dist/esm/z-file-upload.entry.js +1 -1
- package/dist/esm/z-file.entry.js +1 -1
- package/dist/esm/z-info-reveal.entry.js +1 -1
- package/dist/esm/z-menu-section.entry.js +1 -1
- package/dist/esm/z-menu.entry.js +2 -2
- package/dist/esm/z-myz-card-alert.entry.js +2 -2
- package/dist/esm/z-myz-card-dictionary.entry.js +2 -2
- package/dist/esm/z-myz-card-footer-sections.entry.js +1 -1
- package/dist/esm/z-myz-card-footer.entry.js +2 -2
- package/dist/esm/z-myz-card-icon.entry.js +1 -1
- package/dist/esm/z-myz-card-info.entry.js +3 -3
- package/dist/esm/z-myz-card-list.entry.js +1 -1
- package/dist/esm/z-myz-card_4.entry.js +5 -5
- package/dist/esm/z-myz-list-item.entry.js +3 -3
- package/dist/esm/z-myz-list.entry.js +1 -1
- package/dist/esm/z-navigation-tabs.entry.js +2 -2
- package/dist/esm/z-navigation-tabs.entry.js.map +1 -1
- package/dist/esm/z-otp.entry.js +3 -3
- package/dist/esm/z-pagination.entry.js +1 -1
- package/dist/esm/z-popover.entry.js +308 -154
- package/dist/esm/z-popover.entry.js.map +1 -1
- package/dist/esm/z-range-picker.entry.js +3 -2
- package/dist/esm/z-range-picker.entry.js.map +1 -1
- package/dist/esm/z-section-title.entry.js +1 -1
- package/dist/esm/z-select.entry.js +2 -2
- package/dist/esm/z-skip-to-content.entry.js +3 -3
- package/dist/esm/z-slideshow.entry.js +2 -2
- package/dist/esm/z-stepper-item.entry.js +1 -1
- package/dist/esm/z-stepper.entry.js +1 -1
- package/dist/esm/z-table.entry.js +5 -5
- package/dist/esm/z-td.entry.js +2 -2
- package/dist/esm/z-th.entry.js +2 -2
- package/dist/esm/z-toast-notification-list.entry.js +2 -2
- package/dist/esm/z-toast-notification.entry.js +1387 -11
- package/dist/esm/z-toast-notification.entry.js.map +1 -1
- package/dist/esm/z-toggle-button.entry.js +2 -2
- package/dist/esm/z-toggle-switch.entry.js +5 -5
- package/dist/esm/z-tooltip.entry.js +2 -2
- package/dist/esm/z-tr.entry.js +5 -5
- package/dist/esm/z-tree-list.entry.js +1 -1
- package/dist/types/beans/index.d.ts +5 -0
- package/dist/types/components/z-popover/index.d.ts +50 -4
- package/dist/types/components/z-popover/index.stories.d.ts +26 -6
- package/dist/types/components/z-toast-notification/index.stories.d.ts +6 -2
- package/dist/types/components.d.ts +23 -3
- package/dist/web-components-library/index.esm.js +1 -1
- package/dist/web-components-library/{p-6b679226.entry.js → p-0084024e.entry.js} +2 -2
- package/{www/build/p-0b26a8e0.js → dist/web-components-library/p-06b31bf5.js} +2 -2
- package/{www/build/p-b705fba3.entry.js → dist/web-components-library/p-0e91e5b6.entry.js} +2 -2
- package/dist/web-components-library/{p-f609b40e.entry.js → p-1252814d.entry.js} +2 -2
- package/{www/build/p-c6b7c8e4.entry.js → dist/web-components-library/p-12a7af3b.entry.js} +2 -2
- package/{www/build/p-dfcf9936.js → dist/web-components-library/p-137c2618.js} +1 -1
- package/dist/web-components-library/p-137c2618.js.map +1 -0
- package/dist/web-components-library/p-1fb48014.js +2 -0
- package/{www/build/p-ef2484b8.js.map → dist/web-components-library/p-1fb48014.js.map} +1 -1
- package/{www/build/p-d60b9285.entry.js → dist/web-components-library/p-245a7cf6.entry.js} +2 -2
- package/dist/web-components-library/{p-43aea424.entry.js → p-26ea588a.entry.js} +2 -2
- package/dist/web-components-library/{p-611e6579.entry.js → p-2dee7eef.entry.js} +2 -2
- package/{www/build/p-f7d7cf44.entry.js → dist/web-components-library/p-353952ef.entry.js} +2 -2
- package/dist/web-components-library/{p-2726182b.entry.js → p-359fddfd.entry.js} +2 -2
- package/{www/build/p-c7d5971f.js → dist/web-components-library/p-36e71b13.js} +2 -2
- package/dist/web-components-library/p-37d31461.entry.js +2 -0
- package/dist/web-components-library/{p-dc46730d.entry.js → p-3cc02ff9.entry.js} +2 -2
- package/{www/build/p-49f99fa3.entry.js → dist/web-components-library/p-3fe267a1.entry.js} +2 -2
- package/dist/web-components-library/p-4573c419.js +2 -0
- package/dist/web-components-library/{p-b1561f18.entry.js → p-5123ff9e.entry.js} +2 -2
- package/dist/web-components-library/{p-d9592fa6.entry.js → p-512a8f43.entry.js} +2 -2
- package/dist/web-components-library/{p-c419dba3.entry.js → p-5ba4f3cf.entry.js} +2 -2
- package/dist/web-components-library/{p-604602a8.entry.js → p-5f58b59c.entry.js} +2 -2
- package/{www/build/p-a3860bef.entry.js → dist/web-components-library/p-5f5fd804.entry.js} +2 -2
- package/dist/web-components-library/{p-8e7554c4.entry.js → p-610207c1.entry.js} +2 -2
- package/dist/web-components-library/p-651250c2.entry.js +2 -0
- package/dist/web-components-library/{p-6598aee0.entry.js → p-6ba34f6e.entry.js} +2 -2
- package/{www/build/p-d8d7db0e.entry.js → dist/web-components-library/p-7248bddb.entry.js} +2 -2
- package/dist/web-components-library/p-725b253d.entry.js +2 -0
- package/dist/web-components-library/{p-222d4160.entry.js → p-74301de8.entry.js} +2 -2
- package/dist/web-components-library/p-76ee5c89.entry.js +2 -0
- package/{www/build/p-93af4721.entry.js → dist/web-components-library/p-77b02b31.entry.js} +2 -2
- package/dist/web-components-library/{p-b0f758e7.entry.js → p-7934dde1.entry.js} +2 -2
- package/{www/build/p-f73d8a87.entry.js → dist/web-components-library/p-7e554fad.entry.js} +2 -2
- package/dist/web-components-library/{p-e2b57681.js → p-84635654.js} +2 -2
- package/dist/web-components-library/{p-37a34984.entry.js → p-84fe65a8.entry.js} +2 -2
- package/dist/web-components-library/{p-f3145212.js → p-8c322c9a.js} +2 -2
- package/dist/web-components-library/{p-1ef90472.entry.js → p-93bea5f7.entry.js} +2 -2
- package/dist/web-components-library/{p-96b5a35d.entry.js → p-9c3cea8c.entry.js} +2 -2
- package/{www/build/p-506d2cdb.entry.js → dist/web-components-library/p-9dc90af3.entry.js} +2 -2
- package/dist/web-components-library/{p-2a657ab1.entry.js → p-9f506297.entry.js} +2 -2
- package/dist/web-components-library/{p-290f832a.entry.js → p-a02dc4e3.entry.js} +3 -3
- package/{www/build/p-290f832a.entry.js.map → dist/web-components-library/p-a02dc4e3.entry.js.map} +1 -1
- package/dist/web-components-library/{p-e4627f9a.entry.js → p-a33b1a31.entry.js} +2 -2
- package/dist/web-components-library/{p-a1d45a8b.entry.js → p-a3aef2c0.entry.js} +2 -2
- package/dist/web-components-library/p-a4e05ee2.entry.js +2 -0
- package/dist/web-components-library/{p-ee7185cf.entry.js → p-b2313d3c.entry.js} +2 -2
- package/dist/web-components-library/p-b256f1e9.entry.js +2 -0
- package/dist/web-components-library/p-b256f1e9.entry.js.map +1 -0
- package/{www/build/p-564ddab3.entry.js → dist/web-components-library/p-b6de2c30.entry.js} +2 -2
- package/{www/build/p-3d8cdd34.entry.js → dist/web-components-library/p-bba086fb.entry.js} +2 -2
- package/dist/web-components-library/{p-e853ccde.entry.js → p-c231ed32.entry.js} +2 -2
- package/dist/web-components-library/{p-07da09b0.entry.js → p-c381b01c.entry.js} +2 -2
- package/dist/web-components-library/{p-8ec302f8.entry.js → p-c6ae7dfa.entry.js} +2 -2
- package/dist/web-components-library/p-cdd36026.entry.js +2 -0
- package/dist/web-components-library/p-cdd36026.entry.js.map +1 -0
- package/dist/web-components-library/p-d9f9d864.entry.js +8 -0
- package/dist/web-components-library/p-d9f9d864.entry.js.map +1 -0
- package/{www/build/p-996446e2.entry.js → dist/web-components-library/p-dd021fcb.entry.js} +2 -2
- package/dist/web-components-library/{p-430916e9.entry.js → p-e540d235.entry.js} +2 -2
- package/dist/web-components-library/{p-c1d89e00.entry.js → p-e5ac7dfc.entry.js} +2 -2
- package/{www/build/p-8ca5851b.entry.js → dist/web-components-library/p-e7270ec2.entry.js} +2 -2
- package/dist/web-components-library/{p-e8bab6ad.entry.js → p-ee8c03e3.entry.js} +2 -2
- package/{www/build/p-6949d27d.entry.js → dist/web-components-library/p-f0dd44c4.entry.js} +2 -2
- package/dist/web-components-library/p-f20f1ed3.entry.js +2 -0
- package/dist/web-components-library/p-f5d29077.entry.js +2 -0
- package/dist/web-components-library/{p-8e43f5ee.entry.js.map → p-f5d29077.entry.js.map} +1 -1
- package/{www/build/p-b0856b23.entry.js → dist/web-components-library/p-f7461e10.entry.js} +2 -2
- package/dist/web-components-library/web-components-library.esm.js +1 -1
- package/dist/web-components-library/web-components-library.esm.js.map +1 -1
- package/package.json +3 -1
- package/www/build/index.esm.js +1 -1
- package/www/build/{p-6b679226.entry.js → p-0084024e.entry.js} +2 -2
- package/{dist/web-components-library/p-0b26a8e0.js → www/build/p-06b31bf5.js} +2 -2
- package/{dist/web-components-library/p-b705fba3.entry.js → www/build/p-0e91e5b6.entry.js} +2 -2
- package/www/build/{p-f609b40e.entry.js → p-1252814d.entry.js} +2 -2
- package/{dist/web-components-library/p-c6b7c8e4.entry.js → www/build/p-12a7af3b.entry.js} +2 -2
- package/{dist/web-components-library/p-dfcf9936.js → www/build/p-137c2618.js} +1 -1
- package/www/build/p-137c2618.js.map +1 -0
- package/www/build/p-1fb48014.js +2 -0
- package/{dist/web-components-library/p-ef2484b8.js.map → www/build/p-1fb48014.js.map} +1 -1
- package/{dist/web-components-library/p-d60b9285.entry.js → www/build/p-245a7cf6.entry.js} +2 -2
- package/www/build/{p-43aea424.entry.js → p-26ea588a.entry.js} +2 -2
- package/www/build/{p-611e6579.entry.js → p-2dee7eef.entry.js} +2 -2
- package/{dist/web-components-library/p-f7d7cf44.entry.js → www/build/p-353952ef.entry.js} +2 -2
- package/www/build/{p-2726182b.entry.js → p-359fddfd.entry.js} +2 -2
- package/{dist/web-components-library/p-c7d5971f.js → www/build/p-36e71b13.js} +2 -2
- package/www/build/p-37d31461.entry.js +2 -0
- package/www/build/{p-dc46730d.entry.js → p-3cc02ff9.entry.js} +2 -2
- package/{dist/web-components-library/p-49f99fa3.entry.js → www/build/p-3fe267a1.entry.js} +2 -2
- package/www/build/p-4573c419.js +2 -0
- package/www/build/{p-b1561f18.entry.js → p-5123ff9e.entry.js} +2 -2
- package/www/build/{p-d9592fa6.entry.js → p-512a8f43.entry.js} +2 -2
- package/www/build/{p-c419dba3.entry.js → p-5ba4f3cf.entry.js} +2 -2
- package/www/build/{p-604602a8.entry.js → p-5f58b59c.entry.js} +2 -2
- package/{dist/web-components-library/p-a3860bef.entry.js → www/build/p-5f5fd804.entry.js} +2 -2
- package/www/build/{p-8e7554c4.entry.js → p-610207c1.entry.js} +2 -2
- package/www/build/p-651250c2.entry.js +2 -0
- package/www/build/{p-6598aee0.entry.js → p-6ba34f6e.entry.js} +2 -2
- package/{dist/web-components-library/p-d8d7db0e.entry.js → www/build/p-7248bddb.entry.js} +2 -2
- package/www/build/p-725b253d.entry.js +2 -0
- package/www/build/{p-222d4160.entry.js → p-74301de8.entry.js} +2 -2
- package/www/build/p-76ee5c89.entry.js +2 -0
- package/{dist/web-components-library/p-93af4721.entry.js → www/build/p-77b02b31.entry.js} +2 -2
- package/www/build/{p-b0f758e7.entry.js → p-7934dde1.entry.js} +2 -2
- package/{dist/web-components-library/p-f73d8a87.entry.js → www/build/p-7e554fad.entry.js} +2 -2
- package/www/build/{p-e2b57681.js → p-84635654.js} +2 -2
- package/www/build/{p-37a34984.entry.js → p-84fe65a8.entry.js} +2 -2
- package/www/build/{p-f3145212.js → p-8c322c9a.js} +2 -2
- package/www/build/{p-1ef90472.entry.js → p-93bea5f7.entry.js} +2 -2
- package/www/build/{p-96b5a35d.entry.js → p-9c3cea8c.entry.js} +2 -2
- package/{dist/web-components-library/p-506d2cdb.entry.js → www/build/p-9dc90af3.entry.js} +2 -2
- package/www/build/{p-2a657ab1.entry.js → p-9f506297.entry.js} +2 -2
- package/www/build/{p-290f832a.entry.js → p-a02dc4e3.entry.js} +3 -3
- package/{dist/web-components-library/p-290f832a.entry.js.map → www/build/p-a02dc4e3.entry.js.map} +1 -1
- package/www/build/{p-e4627f9a.entry.js → p-a33b1a31.entry.js} +2 -2
- package/www/build/{p-a1d45a8b.entry.js → p-a3aef2c0.entry.js} +2 -2
- package/www/build/p-a4e05ee2.entry.js +2 -0
- package/www/build/p-a4e05ee2.entry.js.map +1 -0
- package/www/build/{p-ee7185cf.entry.js → p-b2313d3c.entry.js} +2 -2
- package/www/build/p-b256f1e9.entry.js +2 -0
- package/www/build/p-b256f1e9.entry.js.map +1 -0
- package/{dist/web-components-library/p-564ddab3.entry.js → www/build/p-b6de2c30.entry.js} +2 -2
- package/www/build/{p-992ea73d.js → p-baea1326.js} +1 -1
- package/{dist/web-components-library/p-3d8cdd34.entry.js → www/build/p-bba086fb.entry.js} +2 -2
- package/www/build/{p-e853ccde.entry.js → p-c231ed32.entry.js} +2 -2
- package/www/build/{p-07da09b0.entry.js → p-c381b01c.entry.js} +2 -2
- package/www/build/{p-8ec302f8.entry.js → p-c6ae7dfa.entry.js} +2 -2
- package/www/build/p-cdd36026.entry.js +2 -0
- package/www/build/p-cdd36026.entry.js.map +1 -0
- package/www/build/p-d9f9d864.entry.js +8 -0
- package/www/build/p-d9f9d864.entry.js.map +1 -0
- package/{dist/web-components-library/p-996446e2.entry.js → www/build/p-dd021fcb.entry.js} +2 -2
- package/www/build/{p-430916e9.entry.js → p-e540d235.entry.js} +2 -2
- package/www/build/{p-c1d89e00.entry.js → p-e5ac7dfc.entry.js} +2 -2
- package/{dist/web-components-library/p-8ca5851b.entry.js → www/build/p-e7270ec2.entry.js} +2 -2
- package/www/build/{p-e8bab6ad.entry.js → p-ee8c03e3.entry.js} +2 -2
- package/{dist/web-components-library/p-6949d27d.entry.js → www/build/p-f0dd44c4.entry.js} +2 -2
- package/www/build/p-f20f1ed3.entry.js +2 -0
- package/www/build/p-f20f1ed3.entry.js.map +1 -0
- package/www/build/p-f5d29077.entry.js +2 -0
- package/www/build/{p-8e43f5ee.entry.js.map → p-f5d29077.entry.js.map} +1 -1
- package/{dist/web-components-library/p-b0856b23.entry.js → www/build/p-f7461e10.entry.js} +2 -2
- package/www/build/web-components-library.esm.js +1 -1
- package/www/build/web-components-library.esm.js.map +1 -1
- package/www/index.html +1 -1
- package/dist/cjs/index-4f18c0e2.js.map +0 -1
- package/dist/cjs/utils-123c371d.js.map +0 -1
- package/dist/esm/index-fe87283d.js.map +0 -1
- package/dist/esm/utils-5e53516d.js.map +0 -1
- package/dist/web-components-library/p-0bd2b21e.entry.js +0 -2
- package/dist/web-components-library/p-1dd6dff4.entry.js +0 -7
- package/dist/web-components-library/p-1dd6dff4.entry.js.map +0 -1
- package/dist/web-components-library/p-43f9569d.entry.js +0 -2
- package/dist/web-components-library/p-43f9569d.entry.js.map +0 -1
- package/dist/web-components-library/p-83e3b2ff.entry.js +0 -2
- package/dist/web-components-library/p-8e43f5ee.entry.js +0 -2
- package/dist/web-components-library/p-a2217ed8.entry.js +0 -2
- package/dist/web-components-library/p-a9d05a92.entry.js +0 -2
- package/dist/web-components-library/p-cf837902.entry.js +0 -2
- package/dist/web-components-library/p-d8e88ea8.entry.js +0 -2
- package/dist/web-components-library/p-d8e88ea8.entry.js.map +0 -1
- package/dist/web-components-library/p-dfcf9936.js.map +0 -1
- package/dist/web-components-library/p-ef2484b8.js +0 -2
- package/dist/web-components-library/p-fd7c7885.entry.js +0 -2
- package/www/build/p-0bd2b21e.entry.js +0 -2
- package/www/build/p-1dd6dff4.entry.js +0 -7
- package/www/build/p-1dd6dff4.entry.js.map +0 -1
- package/www/build/p-43f9569d.entry.js +0 -2
- package/www/build/p-43f9569d.entry.js.map +0 -1
- package/www/build/p-83e3b2ff.entry.js +0 -2
- package/www/build/p-8e43f5ee.entry.js +0 -2
- package/www/build/p-a2217ed8.entry.js +0 -2
- package/www/build/p-a9d05a92.entry.js +0 -2
- package/www/build/p-cf837902.entry.js +0 -2
- package/www/build/p-d8e88ea8.entry.js +0 -2
- package/www/build/p-d8e88ea8.entry.js.map +0 -1
- package/www/build/p-dfcf9936.js.map +0 -1
- package/www/build/p-ef2484b8.js +0 -2
- package/www/build/p-fd7c7885.entry.js +0 -2
- /package/dist/types/{Users/dario/Progetti/Zanichelli → home/utente/Scrivania/Progetti-Zanichelli}/design-system/.stencil/docs/grid/index.stories.d.ts +0 -0
- /package/dist/types/{Users/dario/Progetti/Zanichelli → home/utente/Scrivania/Progetti-Zanichelli}/design-system/.stencil/docs/iconset/index.stories.d.ts +0 -0
- /package/dist/types/{Users/dario/Progetti/Zanichelli → home/utente/Scrivania/Progetti-Zanichelli}/design-system/.stencil/docs/themes/index.stories.d.ts +0 -0
- /package/dist/types/{Users/dario/Progetti/Zanichelli → home/utente/Scrivania/Progetti-Zanichelli}/design-system/.stencil/docs/typography/index.stories.d.ts +0 -0
- /package/dist/web-components-library/{p-6b679226.entry.js.map → p-0084024e.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-0b26a8e0.js.map → p-06b31bf5.js.map} +0 -0
- /package/dist/web-components-library/{p-b705fba3.entry.js.map → p-0e91e5b6.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-f609b40e.entry.js.map → p-1252814d.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-c6b7c8e4.entry.js.map → p-12a7af3b.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-d60b9285.entry.js.map → p-245a7cf6.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-43aea424.entry.js.map → p-26ea588a.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-611e6579.entry.js.map → p-2dee7eef.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-f7d7cf44.entry.js.map → p-353952ef.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-2726182b.entry.js.map → p-359fddfd.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-c7d5971f.js.map → p-36e71b13.js.map} +0 -0
- /package/dist/web-components-library/{p-fd7c7885.entry.js.map → p-37d31461.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-dc46730d.entry.js.map → p-3cc02ff9.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-49f99fa3.entry.js.map → p-3fe267a1.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-0bd2b21e.entry.js.map → p-4573c419.js.map} +0 -0
- /package/dist/web-components-library/{p-b1561f18.entry.js.map → p-5123ff9e.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-d9592fa6.entry.js.map → p-512a8f43.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-c419dba3.entry.js.map → p-5ba4f3cf.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-604602a8.entry.js.map → p-5f58b59c.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-a3860bef.entry.js.map → p-5f5fd804.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-8e7554c4.entry.js.map → p-610207c1.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-a2217ed8.entry.js.map → p-651250c2.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-6598aee0.entry.js.map → p-6ba34f6e.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-d8d7db0e.entry.js.map → p-7248bddb.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-83e3b2ff.entry.js.map → p-725b253d.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-222d4160.entry.js.map → p-74301de8.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-a9d05a92.entry.js.map → p-76ee5c89.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-93af4721.entry.js.map → p-77b02b31.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-b0f758e7.entry.js.map → p-7934dde1.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-f73d8a87.entry.js.map → p-7e554fad.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-e2b57681.js.map → p-84635654.js.map} +0 -0
- /package/dist/web-components-library/{p-37a34984.entry.js.map → p-84fe65a8.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-f3145212.js.map → p-8c322c9a.js.map} +0 -0
- /package/dist/web-components-library/{p-1ef90472.entry.js.map → p-93bea5f7.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-96b5a35d.entry.js.map → p-9c3cea8c.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-506d2cdb.entry.js.map → p-9dc90af3.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-2a657ab1.entry.js.map → p-9f506297.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-e4627f9a.entry.js.map → p-a33b1a31.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-a1d45a8b.entry.js.map → p-a3aef2c0.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-cf837902.entry.js.map → p-a4e05ee2.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-ee7185cf.entry.js.map → p-b2313d3c.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-564ddab3.entry.js.map → p-b6de2c30.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-3d8cdd34.entry.js.map → p-bba086fb.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-e853ccde.entry.js.map → p-c231ed32.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-07da09b0.entry.js.map → p-c381b01c.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-8ec302f8.entry.js.map → p-c6ae7dfa.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-996446e2.entry.js.map → p-dd021fcb.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-430916e9.entry.js.map → p-e540d235.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-c1d89e00.entry.js.map → p-e5ac7dfc.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-8ca5851b.entry.js.map → p-e7270ec2.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-e8bab6ad.entry.js.map → p-ee8c03e3.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-6949d27d.entry.js.map → p-f0dd44c4.entry.js.map} +0 -0
- /package/{www/build/p-0bd2b21e.entry.js.map → dist/web-components-library/p-f20f1ed3.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-b0856b23.entry.js.map → p-f7461e10.entry.js.map} +0 -0
- /package/www/build/{p-6b679226.entry.js.map → p-0084024e.entry.js.map} +0 -0
- /package/www/build/{p-0b26a8e0.js.map → p-06b31bf5.js.map} +0 -0
- /package/www/build/{p-b705fba3.entry.js.map → p-0e91e5b6.entry.js.map} +0 -0
- /package/www/build/{p-f609b40e.entry.js.map → p-1252814d.entry.js.map} +0 -0
- /package/www/build/{p-c6b7c8e4.entry.js.map → p-12a7af3b.entry.js.map} +0 -0
- /package/www/build/{p-d60b9285.entry.js.map → p-245a7cf6.entry.js.map} +0 -0
- /package/www/build/{p-43aea424.entry.js.map → p-26ea588a.entry.js.map} +0 -0
- /package/www/build/{p-611e6579.entry.js.map → p-2dee7eef.entry.js.map} +0 -0
- /package/www/build/{p-f7d7cf44.entry.js.map → p-353952ef.entry.js.map} +0 -0
- /package/www/build/{p-2726182b.entry.js.map → p-359fddfd.entry.js.map} +0 -0
- /package/www/build/{p-c7d5971f.js.map → p-36e71b13.js.map} +0 -0
- /package/www/build/{p-fd7c7885.entry.js.map → p-37d31461.entry.js.map} +0 -0
- /package/www/build/{p-dc46730d.entry.js.map → p-3cc02ff9.entry.js.map} +0 -0
- /package/www/build/{p-49f99fa3.entry.js.map → p-3fe267a1.entry.js.map} +0 -0
- /package/www/build/{p-83e3b2ff.entry.js.map → p-4573c419.js.map} +0 -0
- /package/www/build/{p-b1561f18.entry.js.map → p-5123ff9e.entry.js.map} +0 -0
- /package/www/build/{p-d9592fa6.entry.js.map → p-512a8f43.entry.js.map} +0 -0
- /package/www/build/{p-c419dba3.entry.js.map → p-5ba4f3cf.entry.js.map} +0 -0
- /package/www/build/{p-604602a8.entry.js.map → p-5f58b59c.entry.js.map} +0 -0
- /package/www/build/{p-a3860bef.entry.js.map → p-5f5fd804.entry.js.map} +0 -0
- /package/www/build/{p-8e7554c4.entry.js.map → p-610207c1.entry.js.map} +0 -0
- /package/www/build/{p-a2217ed8.entry.js.map → p-651250c2.entry.js.map} +0 -0
- /package/www/build/{p-6598aee0.entry.js.map → p-6ba34f6e.entry.js.map} +0 -0
- /package/www/build/{p-d8d7db0e.entry.js.map → p-7248bddb.entry.js.map} +0 -0
- /package/www/build/{p-cf837902.entry.js.map → p-725b253d.entry.js.map} +0 -0
- /package/www/build/{p-222d4160.entry.js.map → p-74301de8.entry.js.map} +0 -0
- /package/www/build/{p-a9d05a92.entry.js.map → p-76ee5c89.entry.js.map} +0 -0
- /package/www/build/{p-93af4721.entry.js.map → p-77b02b31.entry.js.map} +0 -0
- /package/www/build/{p-b0f758e7.entry.js.map → p-7934dde1.entry.js.map} +0 -0
- /package/www/build/{p-f73d8a87.entry.js.map → p-7e554fad.entry.js.map} +0 -0
- /package/www/build/{p-e2b57681.js.map → p-84635654.js.map} +0 -0
- /package/www/build/{p-37a34984.entry.js.map → p-84fe65a8.entry.js.map} +0 -0
- /package/www/build/{p-f3145212.js.map → p-8c322c9a.js.map} +0 -0
- /package/www/build/{p-1ef90472.entry.js.map → p-93bea5f7.entry.js.map} +0 -0
- /package/www/build/{p-96b5a35d.entry.js.map → p-9c3cea8c.entry.js.map} +0 -0
- /package/www/build/{p-506d2cdb.entry.js.map → p-9dc90af3.entry.js.map} +0 -0
- /package/www/build/{p-2a657ab1.entry.js.map → p-9f506297.entry.js.map} +0 -0
- /package/www/build/{p-e4627f9a.entry.js.map → p-a33b1a31.entry.js.map} +0 -0
- /package/www/build/{p-a1d45a8b.entry.js.map → p-a3aef2c0.entry.js.map} +0 -0
- /package/www/build/{p-ee7185cf.entry.js.map → p-b2313d3c.entry.js.map} +0 -0
- /package/www/build/{p-564ddab3.entry.js.map → p-b6de2c30.entry.js.map} +0 -0
- /package/www/build/{p-3d8cdd34.entry.js.map → p-bba086fb.entry.js.map} +0 -0
- /package/www/build/{p-e853ccde.entry.js.map → p-c231ed32.entry.js.map} +0 -0
- /package/www/build/{p-07da09b0.entry.js.map → p-c381b01c.entry.js.map} +0 -0
- /package/www/build/{p-8ec302f8.entry.js.map → p-c6ae7dfa.entry.js.map} +0 -0
- /package/www/build/{p-996446e2.entry.js.map → p-dd021fcb.entry.js.map} +0 -0
- /package/www/build/{p-430916e9.entry.js.map → p-e540d235.entry.js.map} +0 -0
- /package/www/build/{p-c1d89e00.entry.js.map → p-e5ac7dfc.entry.js.map} +0 -0
- /package/www/build/{p-8ca5851b.entry.js.map → p-e7270ec2.entry.js.map} +0 -0
- /package/www/build/{p-e8bab6ad.entry.js.map → p-ee8c03e3.entry.js.map} +0 -0
- /package/www/build/{p-6949d27d.entry.js.map → p-f0dd44c4.entry.js.map} +0 -0
- /package/www/build/{p-b0856b23.entry.js.map → p-f7461e10.entry.js.map} +0 -0
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-96af6326.js');
|
|
6
|
-
const index$1 = require('./index-
|
|
6
|
+
const index$1 = require('./index-be0b8cf5.js');
|
|
7
7
|
|
|
8
|
-
const stylesCss = ":host{
|
|
8
|
+
const stylesCss = ":host{position:absolute;display:none;min-width:calc(var(--space-unit) * 8);max-width:100%;min-height:calc(var(--space-unit) * 4);max-height:100%;align-items:center;justify-content:center;padding:var(--z-popover-padding, 0);background:var(--z-popover-theme--surface, var(--color-surface01));border-radius:var(--border-radius-small);color:var(--z-popover-theme--text, var(--color-default-text));fill:currentcolor;filter:var(--z-popover-shadow-filter, drop-shadow(0 1px 2px var(--shadow-color-base)));font-family:var(--font-family-sans);text-align:center}:host([open]:not([current-position])){visibility:hidden}:host([open][current-position]),:host([open=\"true\"][current-position]){display:flex}:host([center][current-position=\"top\"]),:host([center][current-position=\"bottom\"]){transform:translateX(-50%)}:host([center][current-position=\"right\"]),:host([center][current-position=\"left\"]){transform:translateY(-50%)}:host([current-position^=\"top\"]){margin:0 0 var(--space-unit)}:host([current-position^=\"bottom\"]){margin:var(--space-unit) 0 0}:host([current-position^=\"left\"]){margin:0 var(--space-unit) 0 0}:host([current-position^=\"right\"]){margin:0 0 0 var(--space-unit)}:host([current-position])::before{--arrow-size:6px;--arrow-edge-offset:calc(100% - var(--space-unit) - (var(--arrow-size) / 2));--arrow-center-x-offset:calc(50% - (var(--arrow-size) / 2));--arrow-center-y-offset:calc(100% - (var(--arrow-size) / 2));position:absolute;display:block;width:var(--arrow-size);height:var(--arrow-size);background:var(--z-popover-theme--surface, var(--color-surface01));content:\"\";transform:rotate(45deg)}:host([show-arrow=\"false\"])::before,:host(:not([show-arrow]))::before{display:none}:host([current-position^=\"top\"])::before{top:var(--arrow-center-y-offset)}:host([current-position^=\"bottom\"])::before{bottom:var(--arrow-center-y-offset)}:host([current-position=\"top\"])::before,:host([current-position=\"bottom\"])::before{right:var(--arrow-edge-offset)}:host([current-position=\"right\"])::before,:host([current-position=\"left\"])::before{bottom:var(--arrow-edge-offset)}:host([current-position=\"right\"])::before{right:var(--arrow-center-y-offset)}:host([current-position=\"left\"])::before{left:var(--arrow-center-y-offset)}:host([current-position=\"top_right\"])::before,:host([current-position=\"bottom_right\"])::before{right:var(--arrow-edge-offset)}:host([current-position=\"top_left\"])::before,:host([current-position=\"bottom_left\"])::before{left:var(--arrow-edge-offset)}:host([current-position=\"right_top\"])::before,:host([current-position=\"left_top\"])::before{top:var(--arrow-edge-offset)}:host([current-position=\"right_top\"])::before,:host([current-position=\"right_bottom\"])::before{right:var(--arrow-center-y-offset)}:host([current-position=\"left_top\"])::before,:host([current-position=\"left_bottom\"])::before{left:var(--arrow-center-y-offset)}:host([current-position=\"right_bottom\"])::before,:host([current-position=\"left_bottom\"])::before{bottom:var(--arrow-edge-offset)}:host([center][current-position=\"top\"])::before,:host([center][current-position=\"bottom\"])::before{right:auto;left:var(--arrow-center-x-offset)}:host([center][current-position=\"right\"])::before,:host([center][current-position=\"left\"])::before{top:var(--arrow-center-x-offset);bottom:auto}::slotted(*){overflow:auto;flex:1 auto}";
|
|
9
9
|
const ZPopoverStyle0 = stylesCss;
|
|
10
10
|
|
|
11
11
|
const DOCUMENT_ELEMENT = document.documentElement;
|
|
@@ -23,12 +23,18 @@ function getParentElement(element) {
|
|
|
23
23
|
function findScrollableParent(element) {
|
|
24
24
|
let parent = getParentElement(element);
|
|
25
25
|
while (parent && parent !== DOCUMENT_ELEMENT) {
|
|
26
|
-
const
|
|
26
|
+
const style = window.getComputedStyle(parent);
|
|
27
|
+
const { overflow, overflowX, overflowY } = style;
|
|
28
|
+
// Check for hidden overflow first (early return)
|
|
27
29
|
if (overflow === "hidden" || overflowY === "hidden" || overflowX === "hidden") {
|
|
28
30
|
return parent;
|
|
29
31
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
+
// Only check scrollable if overflow is not visible
|
|
33
|
+
const isOverflowNotVisible = overflow !== "visible";
|
|
34
|
+
const isOverflowYNotVisible = overflowY !== "visible";
|
|
35
|
+
const isOverflowXNotVisible = overflowX !== "visible";
|
|
36
|
+
if ((parent.scrollHeight > parent.clientHeight && isOverflowNotVisible && isOverflowYNotVisible) ||
|
|
37
|
+
(parent.scrollWidth > parent.clientWidth && isOverflowNotVisible && isOverflowXNotVisible)) {
|
|
32
38
|
return parent;
|
|
33
39
|
}
|
|
34
40
|
parent = getParentElement(parent);
|
|
@@ -40,30 +46,28 @@ function findScrollableParent(element) {
|
|
|
40
46
|
* It includes matrix transformations.
|
|
41
47
|
* @param element The target element.
|
|
42
48
|
* @param targetParentOffset The relative offset parent.
|
|
43
|
-
* @return A client rect object.
|
|
44
49
|
*/
|
|
45
50
|
function computeOffset(element, targetParentOffset) {
|
|
46
51
|
const rect = element.getBoundingClientRect();
|
|
47
|
-
const width = rect
|
|
48
|
-
const height = rect.height;
|
|
52
|
+
const { width, height } = rect;
|
|
49
53
|
let top = 0;
|
|
50
54
|
let left = 0;
|
|
51
55
|
let offsetParent = element;
|
|
52
|
-
while (offsetParent && offsetParent
|
|
56
|
+
while (offsetParent && offsetParent !== targetParentOffset) {
|
|
53
57
|
left += offsetParent.offsetLeft;
|
|
54
|
-
// document.body sometimes has offsetTop == 0 but still has an
|
|
55
|
-
// offset because of children margins!
|
|
58
|
+
// document.body sometimes has offsetTop == 0 but still has an offset because of children margins!
|
|
56
59
|
if (offsetParent === document.body) {
|
|
57
60
|
top += offsetParent.getBoundingClientRect().top + window.scrollY;
|
|
58
61
|
}
|
|
59
62
|
else {
|
|
60
63
|
top += offsetParent.offsetTop;
|
|
61
64
|
}
|
|
65
|
+
// Handle CSS transforms only when DOMMatrix is available
|
|
62
66
|
if (window.DOMMatrix) {
|
|
63
67
|
const style = window.getComputedStyle(offsetParent);
|
|
64
|
-
const transform = style
|
|
65
|
-
|
|
66
|
-
|
|
68
|
+
const { transform } = style;
|
|
69
|
+
if (transform && transform !== "none") {
|
|
70
|
+
const domMatrix = new DOMMatrix(transform);
|
|
67
71
|
left += domMatrix.m41;
|
|
68
72
|
if (offsetParent !== document.body) {
|
|
69
73
|
top += domMatrix.m42;
|
|
@@ -85,8 +89,8 @@ function computeOffset(element, targetParentOffset) {
|
|
|
85
89
|
parentWidth = offsetParent.offsetWidth;
|
|
86
90
|
parentHeight = offsetParent.offsetHeight;
|
|
87
91
|
}
|
|
88
|
-
const right = parentWidth - left -
|
|
89
|
-
const bottom = parentHeight - top -
|
|
92
|
+
const right = parentWidth - left - width;
|
|
93
|
+
const bottom = parentHeight - top - height;
|
|
90
94
|
return { top, right, bottom, left, width, height };
|
|
91
95
|
}
|
|
92
96
|
const ZPopover = class {
|
|
@@ -94,7 +98,8 @@ const ZPopover = class {
|
|
|
94
98
|
index.registerInstance(this, hostRef);
|
|
95
99
|
this.positionChange = index.createEvent(this, "positionChange", 7);
|
|
96
100
|
this.openChange = index.createEvent(this, "openChange", 7);
|
|
97
|
-
this.
|
|
101
|
+
this.spaceTolerance = 3; // 3px tolerance for space calculations
|
|
102
|
+
this.position = index$1.PopoverPosition.TOP;
|
|
98
103
|
this.open = false;
|
|
99
104
|
this.bindTo = undefined;
|
|
100
105
|
this.showArrow = false;
|
|
@@ -117,10 +122,18 @@ const ZPopover = class {
|
|
|
117
122
|
if (!this.closable || !this.open) {
|
|
118
123
|
return;
|
|
119
124
|
}
|
|
120
|
-
|
|
125
|
+
const eventPath = e.composedPath();
|
|
126
|
+
if (!eventPath.includes(this.host)) {
|
|
121
127
|
const target = e.target;
|
|
122
|
-
|
|
128
|
+
let triggerElemClicked = false;
|
|
129
|
+
if (typeof this.bindTo === "string") {
|
|
130
|
+
triggerElemClicked = !!target.closest(this.bindTo);
|
|
131
|
+
}
|
|
132
|
+
else if (this.bindTo) {
|
|
133
|
+
triggerElemClicked = this.bindTo.contains(target);
|
|
134
|
+
}
|
|
123
135
|
if (triggerElemClicked) {
|
|
136
|
+
// stop propagation if the click was on the trigger element to prevent close and reopen glitches
|
|
124
137
|
e.stopPropagation();
|
|
125
138
|
}
|
|
126
139
|
this.open = false;
|
|
@@ -128,11 +141,13 @@ const ZPopover = class {
|
|
|
128
141
|
}
|
|
129
142
|
}
|
|
130
143
|
validatePosition(newValue) {
|
|
131
|
-
if (
|
|
132
|
-
|
|
144
|
+
if (!Object.values(index$1.PopoverPosition).includes(newValue) || newValue === index$1.PopoverPosition.AUTO) {
|
|
145
|
+
newValue = index$1.PopoverPosition.TOP;
|
|
133
146
|
}
|
|
134
|
-
this.
|
|
147
|
+
this.position = newValue;
|
|
148
|
+
this.currentPosition = newValue;
|
|
135
149
|
this.positionChange.emit({ position: this.currentPosition });
|
|
150
|
+
this.setPosition();
|
|
136
151
|
}
|
|
137
152
|
/**
|
|
138
153
|
* Setup popover behaviors on opening.
|
|
@@ -146,165 +161,289 @@ const ZPopover = class {
|
|
|
146
161
|
this.animationFrameRequestId = requestAnimationFrame(setPosition);
|
|
147
162
|
}
|
|
148
163
|
};
|
|
149
|
-
setPosition
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
this.currentPosition = undefined;
|
|
164
|
+
// call `setPosition` after a tick to ensure the DOM is ready and sizes are available
|
|
165
|
+
setTimeout(() => {
|
|
166
|
+
setPosition();
|
|
167
|
+
}, 0);
|
|
154
168
|
}
|
|
155
169
|
this.openChange.emit({ open: this.open });
|
|
156
170
|
}
|
|
157
|
-
|
|
158
|
-
|
|
171
|
+
/**
|
|
172
|
+
* Helper functions for space calculation
|
|
173
|
+
*/
|
|
174
|
+
hasCenteredHorizontalSpace(availableLeft, availableRight, hostWidth, boundWidth, offsetModifier) {
|
|
175
|
+
const requiredSpace = (hostWidth - boundWidth) * (1 - offsetModifier);
|
|
176
|
+
return (availableLeft >= requiredSpace - this.spaceTolerance && availableRight >= requiredSpace - this.spaceTolerance);
|
|
177
|
+
}
|
|
178
|
+
hasCenteredVerticalSpace(availableTop, availableBottom, hostHeight, boundHeight, offsetModifier) {
|
|
179
|
+
const requiredSpace = (hostHeight - boundHeight) * (1 - offsetModifier);
|
|
180
|
+
return (availableTop >= requiredSpace - this.spaceTolerance && availableBottom >= requiredSpace - this.spaceTolerance);
|
|
181
|
+
}
|
|
182
|
+
hasOffsetSpace(availableSpace, hostSize, boundSize, offsetModifier) {
|
|
183
|
+
return availableSpace >= hostSize - boundSize * (1 - offsetModifier) - this.spaceTolerance;
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* Given a desired position and available space around the bound element, returns the best position
|
|
187
|
+
* that fits the popover, trying all positions if needed.
|
|
188
|
+
* Takes into account offsetModifier for centering.
|
|
189
|
+
* @param desiredPosition The desired position of the popover.
|
|
190
|
+
* @param availableSpace The available space around the bound element.
|
|
191
|
+
* @param boundElemSizes The sizes of the bound element.
|
|
192
|
+
* @param offsetModifier The modifier to apply to the offset for centering.
|
|
193
|
+
*/
|
|
194
|
+
getOptimalPopoverPosition(desiredPosition, availableSpace, boundElemSizes, offsetModifier) {
|
|
195
|
+
const hostWidth = this.host.offsetWidth;
|
|
196
|
+
const hostHeight = this.host.offsetHeight;
|
|
197
|
+
// Check if the desired position has enough space
|
|
198
|
+
const fits = (pos) => {
|
|
199
|
+
switch (pos) {
|
|
200
|
+
case index$1.PopoverPosition.TOP:
|
|
201
|
+
return (availableSpace.top >= hostHeight &&
|
|
202
|
+
this.hasCenteredHorizontalSpace(availableSpace.left, availableSpace.right, hostWidth, boundElemSizes.width, offsetModifier));
|
|
203
|
+
case index$1.PopoverPosition.TOP_RIGHT:
|
|
204
|
+
return (availableSpace.top >= hostHeight &&
|
|
205
|
+
this.hasOffsetSpace(availableSpace.right, hostWidth, boundElemSizes.width, offsetModifier));
|
|
206
|
+
case index$1.PopoverPosition.TOP_LEFT:
|
|
207
|
+
return (availableSpace.top >= hostHeight &&
|
|
208
|
+
this.hasOffsetSpace(availableSpace.left, hostWidth, boundElemSizes.width, offsetModifier));
|
|
209
|
+
case index$1.PopoverPosition.RIGHT:
|
|
210
|
+
return (availableSpace.right >= hostWidth &&
|
|
211
|
+
this.hasCenteredVerticalSpace(availableSpace.top, availableSpace.bottom, hostHeight, boundElemSizes.height, offsetModifier));
|
|
212
|
+
case index$1.PopoverPosition.RIGHT_BOTTOM:
|
|
213
|
+
return (availableSpace.right >= hostWidth &&
|
|
214
|
+
this.hasOffsetSpace(availableSpace.bottom, hostHeight, boundElemSizes.height, offsetModifier));
|
|
215
|
+
case index$1.PopoverPosition.RIGHT_TOP:
|
|
216
|
+
return (availableSpace.right >= hostWidth &&
|
|
217
|
+
this.hasOffsetSpace(availableSpace.top, hostHeight, boundElemSizes.height, offsetModifier));
|
|
218
|
+
case index$1.PopoverPosition.BOTTOM:
|
|
219
|
+
return (availableSpace.bottom >= hostHeight &&
|
|
220
|
+
this.hasCenteredHorizontalSpace(availableSpace.left, availableSpace.right, hostWidth, boundElemSizes.width, offsetModifier));
|
|
221
|
+
case index$1.PopoverPosition.BOTTOM_LEFT:
|
|
222
|
+
return (availableSpace.bottom >= hostHeight &&
|
|
223
|
+
this.hasOffsetSpace(availableSpace.left, hostWidth, boundElemSizes.width, offsetModifier));
|
|
224
|
+
case index$1.PopoverPosition.BOTTOM_RIGHT:
|
|
225
|
+
return (availableSpace.bottom >= hostHeight &&
|
|
226
|
+
this.hasOffsetSpace(availableSpace.right, hostWidth, boundElemSizes.width, offsetModifier));
|
|
227
|
+
case index$1.PopoverPosition.LEFT:
|
|
228
|
+
return (availableSpace.left >= hostWidth &&
|
|
229
|
+
this.hasCenteredVerticalSpace(availableSpace.top, availableSpace.bottom, hostHeight, boundElemSizes.height, offsetModifier));
|
|
230
|
+
case index$1.PopoverPosition.LEFT_TOP:
|
|
231
|
+
return (availableSpace.left >= hostWidth &&
|
|
232
|
+
this.hasOffsetSpace(availableSpace.top, hostHeight, boundElemSizes.height, offsetModifier));
|
|
233
|
+
case index$1.PopoverPosition.LEFT_BOTTOM:
|
|
234
|
+
return (availableSpace.left >= hostWidth &&
|
|
235
|
+
this.hasOffsetSpace(availableSpace.bottom, hostHeight, boundElemSizes.height, offsetModifier));
|
|
236
|
+
default:
|
|
237
|
+
return false;
|
|
238
|
+
}
|
|
239
|
+
};
|
|
240
|
+
// Check desired position first
|
|
241
|
+
if (fits(desiredPosition)) {
|
|
242
|
+
return desiredPosition;
|
|
243
|
+
}
|
|
244
|
+
// Find position index and create rotation starting from next position
|
|
245
|
+
const positions = ZPopover.positionOrder;
|
|
246
|
+
const startIndex = positions.indexOf(desiredPosition);
|
|
247
|
+
if (startIndex === -1) {
|
|
248
|
+
return desiredPosition; // fallback if position not found
|
|
249
|
+
}
|
|
250
|
+
// Try all other positions starting from the next one
|
|
251
|
+
for (let i = 1; i < positions.length; i++) {
|
|
252
|
+
const posIndex = (startIndex + i) % positions.length;
|
|
253
|
+
const pos = positions[posIndex];
|
|
254
|
+
if (fits(pos)) {
|
|
255
|
+
return pos;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
// If no position fits, find the best fallback based on available space
|
|
259
|
+
return this.findBestFallbackPosition(availableSpace);
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* Find the best fallback position based on available space when no position fits perfectly
|
|
263
|
+
*/
|
|
264
|
+
findBestFallbackPosition(availableSpace) {
|
|
265
|
+
// Determine the directions with the most space
|
|
266
|
+
const bestHorizontalDirection = availableSpace.right >= availableSpace.left ? index$1.PopoverPosition.RIGHT : index$1.PopoverPosition.LEFT;
|
|
267
|
+
const bestVerticalDirection = availableSpace.bottom >= availableSpace.top ? index$1.PopoverPosition.BOTTOM : index$1.PopoverPosition.TOP;
|
|
268
|
+
// Choose the main direction based on which has more space
|
|
269
|
+
const maxHorizontalSpace = Math.max(availableSpace.right, availableSpace.left);
|
|
270
|
+
const maxVerticalSpace = Math.max(availableSpace.bottom, availableSpace.top);
|
|
271
|
+
const mainDirection = maxVerticalSpace >= maxHorizontalSpace ? bestVerticalDirection : bestHorizontalDirection;
|
|
272
|
+
// Check if secondary direction is necessary
|
|
273
|
+
// Only add secondary direction if the difference between min and max in that direction is at least double
|
|
274
|
+
let needsSecondaryDirection = false;
|
|
275
|
+
if (mainDirection === bestVerticalDirection) {
|
|
276
|
+
// Main direction is vertical, check horizontal space difference
|
|
277
|
+
const minHorizontalSpace = Math.min(availableSpace.right, availableSpace.left);
|
|
278
|
+
needsSecondaryDirection = maxHorizontalSpace >= minHorizontalSpace * 2;
|
|
279
|
+
}
|
|
280
|
+
else {
|
|
281
|
+
// Main direction is horizontal, check vertical space difference
|
|
282
|
+
const minVerticalSpace = Math.min(availableSpace.bottom, availableSpace.top);
|
|
283
|
+
needsSecondaryDirection = maxVerticalSpace >= minVerticalSpace * 2;
|
|
284
|
+
}
|
|
285
|
+
if (!needsSecondaryDirection) {
|
|
286
|
+
return mainDirection;
|
|
287
|
+
}
|
|
288
|
+
const secondaryDirection = mainDirection === bestVerticalDirection ? bestHorizontalDirection : bestVerticalDirection;
|
|
289
|
+
// Create a combined position (e.g., "bottom_right")
|
|
290
|
+
return `${mainDirection}_${secondaryDirection}`;
|
|
291
|
+
}
|
|
292
|
+
/**
|
|
293
|
+
* Calculate available space around the bound element
|
|
294
|
+
*/
|
|
295
|
+
calculateAvailableSpace(boundElementRect, scrollContainer, scrollingBoundingRect) {
|
|
296
|
+
const top = boundElementRect.top - scrollContainer.scrollTop;
|
|
297
|
+
const bottom = scrollingBoundingRect.height - (boundElementRect.top + boundElementRect.height) + scrollContainer.scrollTop;
|
|
298
|
+
const left = boundElementRect.left - scrollContainer.scrollLeft;
|
|
299
|
+
const right = scrollingBoundingRect.width - (boundElementRect.left + boundElementRect.width) + scrollContainer.scrollLeft;
|
|
300
|
+
const overflowBottom = Math.max(0, scrollingBoundingRect.top + scrollingBoundingRect.height - window.innerHeight);
|
|
301
|
+
const overflowRight = Math.max(0, scrollingBoundingRect.left + scrollingBoundingRect.width - window.innerWidth);
|
|
302
|
+
return {
|
|
303
|
+
top: Math.min(top, top + scrollingBoundingRect.top),
|
|
304
|
+
bottom: Math.min(bottom, bottom - overflowBottom),
|
|
305
|
+
left: Math.min(left, left + scrollingBoundingRect.left),
|
|
306
|
+
right: Math.min(right, right - overflowRight),
|
|
307
|
+
};
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* Calculate relative offsets for positioning
|
|
311
|
+
*/
|
|
312
|
+
calculateRelativeOffsets(boundElementRect, relativeBoundingRect) {
|
|
313
|
+
return {
|
|
314
|
+
top: boundElementRect.top - relativeBoundingRect.top,
|
|
315
|
+
right: boundElementRect.right - relativeBoundingRect.right,
|
|
316
|
+
bottom: boundElementRect.bottom - relativeBoundingRect.bottom,
|
|
317
|
+
left: boundElementRect.left - relativeBoundingRect.left,
|
|
318
|
+
};
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
* Apply positioning styles based on position
|
|
322
|
+
*/
|
|
323
|
+
applyPositionStyles(position, style, offsets, boundElementSizes, availableSpace, offsetModifier, arrowModifier) {
|
|
324
|
+
const distanceFromBound = 8; // 8px is the distance of the popover from the bound element
|
|
325
|
+
// Reset all positioning properties
|
|
326
|
+
style.top = "auto";
|
|
327
|
+
style.right = "auto";
|
|
328
|
+
style.bottom = "auto";
|
|
329
|
+
style.left = "auto";
|
|
330
|
+
style.maxWidth = "";
|
|
331
|
+
style.maxHeight = "";
|
|
332
|
+
switch (position) {
|
|
333
|
+
case index$1.PopoverPosition.TOP:
|
|
334
|
+
case index$1.PopoverPosition.TOP_RIGHT:
|
|
335
|
+
style.bottom = `${offsets.bottom + boundElementSizes.height}px`;
|
|
336
|
+
style.left = `${offsets.left + boundElementSizes.width * offsetModifier - (position === index$1.PopoverPosition.TOP_RIGHT ? arrowModifier : 0)}px`;
|
|
337
|
+
style.maxHeight = `${availableSpace.top - distanceFromBound}px`;
|
|
338
|
+
if (position === index$1.PopoverPosition.TOP_RIGHT) {
|
|
339
|
+
style.maxWidth = `${availableSpace.right + boundElementSizes.width * offsetModifier}px`;
|
|
340
|
+
}
|
|
341
|
+
break;
|
|
342
|
+
case index$1.PopoverPosition.TOP_LEFT:
|
|
343
|
+
style.right = `${offsets.right + boundElementSizes.width * offsetModifier - arrowModifier}px`;
|
|
344
|
+
style.bottom = `${offsets.bottom + boundElementSizes.height}px`;
|
|
345
|
+
style.maxWidth = `${availableSpace.left}px`;
|
|
346
|
+
style.maxHeight = `${availableSpace.top - distanceFromBound}px`;
|
|
347
|
+
break;
|
|
348
|
+
case index$1.PopoverPosition.BOTTOM:
|
|
349
|
+
case index$1.PopoverPosition.BOTTOM_RIGHT:
|
|
350
|
+
style.top = `${offsets.top + boundElementSizes.height}px`;
|
|
351
|
+
style.left = `${offsets.left + boundElementSizes.width * offsetModifier - (position === index$1.PopoverPosition.BOTTOM_RIGHT ? arrowModifier : 0)}px`;
|
|
352
|
+
style.maxHeight = `${availableSpace.bottom - distanceFromBound}px`;
|
|
353
|
+
if (position === index$1.PopoverPosition.BOTTOM_RIGHT) {
|
|
354
|
+
style.maxWidth = `${availableSpace.right + boundElementSizes.width * offsetModifier}px`;
|
|
355
|
+
}
|
|
356
|
+
break;
|
|
357
|
+
case index$1.PopoverPosition.BOTTOM_LEFT:
|
|
358
|
+
style.top = `${offsets.top + boundElementSizes.height}px`;
|
|
359
|
+
style.right = `${offsets.right + boundElementSizes.width * offsetModifier - arrowModifier}px`;
|
|
360
|
+
style.maxWidth = `${availableSpace.left}px`;
|
|
361
|
+
style.maxHeight = `${availableSpace.bottom - distanceFromBound}px`;
|
|
362
|
+
break;
|
|
363
|
+
case index$1.PopoverPosition.RIGHT:
|
|
364
|
+
case index$1.PopoverPosition.RIGHT_BOTTOM:
|
|
365
|
+
style.top = `${offsets.top + boundElementSizes.height * offsetModifier - (position === index$1.PopoverPosition.RIGHT_BOTTOM ? arrowModifier : 0)}px`;
|
|
366
|
+
style.left = `${offsets.left + boundElementSizes.width}px`;
|
|
367
|
+
style.maxWidth = `${availableSpace.right - distanceFromBound}px`;
|
|
368
|
+
if (position === index$1.PopoverPosition.RIGHT) {
|
|
369
|
+
style.maxHeight = `${Math.min(availableSpace.top + availableSpace.bottom + boundElementSizes.height, window.innerHeight - 20)}px`;
|
|
370
|
+
}
|
|
371
|
+
else {
|
|
372
|
+
style.maxHeight = `${availableSpace.bottom + boundElementSizes.height * offsetModifier}px`;
|
|
373
|
+
}
|
|
374
|
+
break;
|
|
375
|
+
case index$1.PopoverPosition.RIGHT_TOP:
|
|
376
|
+
style.bottom = `${offsets.bottom + boundElementSizes.height * offsetModifier - arrowModifier}px`;
|
|
377
|
+
style.left = `${offsets.left + boundElementSizes.width}px`;
|
|
378
|
+
style.maxWidth = `${availableSpace.right - distanceFromBound}px`;
|
|
379
|
+
if (position === index$1.PopoverPosition.RIGHT_TOP) {
|
|
380
|
+
style.maxHeight = `${availableSpace.top + boundElementSizes.height * offsetModifier}px`;
|
|
381
|
+
}
|
|
382
|
+
break;
|
|
383
|
+
case index$1.PopoverPosition.LEFT:
|
|
384
|
+
case index$1.PopoverPosition.LEFT_BOTTOM:
|
|
385
|
+
style.top = `${offsets.top + boundElementSizes.height * offsetModifier - (position === index$1.PopoverPosition.LEFT_BOTTOM ? arrowModifier : 0)}px`;
|
|
386
|
+
style.right = `${offsets.right + boundElementSizes.width}px`;
|
|
387
|
+
style.maxWidth = `${availableSpace.left - distanceFromBound}px`;
|
|
388
|
+
if (position === index$1.PopoverPosition.LEFT_BOTTOM) {
|
|
389
|
+
style.maxHeight = `${availableSpace.bottom + boundElementSizes.height * offsetModifier}px`;
|
|
390
|
+
}
|
|
391
|
+
break;
|
|
392
|
+
case index$1.PopoverPosition.LEFT_TOP:
|
|
393
|
+
style.right = `${offsets.right + boundElementSizes.width}px`;
|
|
394
|
+
style.bottom = `${offsets.bottom + boundElementSizes.height * offsetModifier - arrowModifier}px`;
|
|
395
|
+
style.maxWidth = `${availableSpace.left - distanceFromBound}px`;
|
|
396
|
+
if (position === index$1.PopoverPosition.LEFT_TOP) {
|
|
397
|
+
style.maxHeight = `${availableSpace.top + boundElementSizes.height * offsetModifier}px`;
|
|
398
|
+
}
|
|
399
|
+
break;
|
|
400
|
+
}
|
|
159
401
|
}
|
|
160
402
|
/**
|
|
161
403
|
* Set the position of the popover.
|
|
162
404
|
*/
|
|
163
405
|
setPosition() {
|
|
164
|
-
let
|
|
406
|
+
let boundElement;
|
|
165
407
|
if (typeof this.bindTo === "string") {
|
|
166
|
-
|
|
408
|
+
boundElement = this.host.ownerDocument.querySelector(this.bindTo);
|
|
167
409
|
}
|
|
168
410
|
else if (this.bindTo) {
|
|
169
|
-
|
|
411
|
+
boundElement = this.bindTo;
|
|
170
412
|
}
|
|
171
413
|
else {
|
|
172
|
-
|
|
414
|
+
boundElement = this.host.parentElement;
|
|
173
415
|
}
|
|
174
|
-
if (!
|
|
416
|
+
if (!boundElement) {
|
|
175
417
|
return;
|
|
176
418
|
}
|
|
177
|
-
const scrollContainer = findScrollableParent(
|
|
419
|
+
const scrollContainer = findScrollableParent(boundElement);
|
|
178
420
|
const scrollingBoundingRect = scrollContainer.getBoundingClientRect();
|
|
179
421
|
const offsetContainer = this.host.offsetParent;
|
|
180
422
|
const relativeBoundingRect = offsetContainer
|
|
181
423
|
? computeOffset(offsetContainer, scrollContainer)
|
|
182
424
|
: { top: 0, right: 0, bottom: 0, left: 0 };
|
|
183
|
-
const
|
|
184
|
-
const
|
|
185
|
-
const
|
|
186
|
-
const left = boundingRect.left - scrollContainer.scrollLeft;
|
|
187
|
-
const right = scrollingBoundingRect.width - (boundingRect.left + boundingRect.width) + scrollContainer.scrollLeft;
|
|
188
|
-
const overflowBottom = Math.max(0, scrollingBoundingRect.top + scrollingBoundingRect.height - window.innerHeight);
|
|
189
|
-
const overflowRight = Math.max(0, scrollingBoundingRect.left + scrollingBoundingRect.width - window.innerWidth);
|
|
190
|
-
const availableTop = Math.min(top, top + scrollingBoundingRect.top);
|
|
191
|
-
const availableBottom = Math.min(bottom, bottom - overflowBottom);
|
|
192
|
-
const availableLeft = Math.min(left, left + scrollingBoundingRect.left);
|
|
193
|
-
const availableRight = Math.min(right, right - overflowRight);
|
|
194
|
-
const availableHeight = availableTop + availableBottom + boundingRect.height;
|
|
195
|
-
const availableWidth = availableLeft + availableRight + boundingRect.width;
|
|
196
|
-
let position = this.currentPosition;
|
|
197
|
-
const positions = [];
|
|
198
|
-
if (this.position === index$1.PopoverPosition.AUTO) {
|
|
199
|
-
/**
|
|
200
|
-
* The `AUTO` position tries to place the popover in the 'safest' area,
|
|
201
|
-
* where there's more space available.
|
|
202
|
-
*/
|
|
203
|
-
if (availableLeft / availableWidth > 0.6) {
|
|
204
|
-
positions.push(index$1.PopoverPosition.LEFT);
|
|
205
|
-
}
|
|
206
|
-
else if (availableLeft / availableWidth < 0.4) {
|
|
207
|
-
positions.push(index$1.PopoverPosition.RIGHT);
|
|
208
|
-
}
|
|
209
|
-
if (availableTop / availableHeight > 0.9) {
|
|
210
|
-
positions.unshift(index$1.PopoverPosition.TOP);
|
|
211
|
-
}
|
|
212
|
-
else if (availableTop / availableHeight > 0.6) {
|
|
213
|
-
positions.push(index$1.PopoverPosition.TOP);
|
|
214
|
-
}
|
|
215
|
-
else if (availableTop / availableHeight < 0.1) {
|
|
216
|
-
positions.unshift(index$1.PopoverPosition.BOTTOM);
|
|
217
|
-
}
|
|
218
|
-
else {
|
|
219
|
-
positions.push(index$1.PopoverPosition.BOTTOM);
|
|
220
|
-
}
|
|
221
|
-
position = positions.join("_");
|
|
222
|
-
}
|
|
223
|
-
const style = this.host.style;
|
|
224
|
-
style.position = "absolute";
|
|
225
|
-
const offsetTop = boundingRect.top - relativeBoundingRect.top;
|
|
226
|
-
const offsetRight = boundingRect.right - relativeBoundingRect.right;
|
|
227
|
-
const offsetBottom = boundingRect.bottom - relativeBoundingRect.bottom;
|
|
228
|
-
const offsetLeft = boundingRect.left - relativeBoundingRect.left;
|
|
425
|
+
const boundElementRect = computeOffset(boundElement, scrollContainer);
|
|
426
|
+
const availableSpace = this.calculateAvailableSpace(boundElementRect, scrollContainer, scrollingBoundingRect);
|
|
427
|
+
const offsets = this.calculateRelativeOffsets(boundElementRect, relativeBoundingRect);
|
|
229
428
|
const offsetModifier = this.center ? 0.5 : 0;
|
|
230
|
-
const
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
style.left = `${offsetLeft + boundingRect.width * offsetModifier}px`;
|
|
236
|
-
style.maxHeight = `${availableTop}px`;
|
|
237
|
-
if (position === index$1.PopoverPosition.TOP_RIGHT) {
|
|
238
|
-
style.maxWidth = `${availableRight + boundingRect.width * sizeModifier}px`;
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
else if (position === index$1.PopoverPosition.TOP_LEFT) {
|
|
242
|
-
style.top = "auto";
|
|
243
|
-
style.right = `${offsetRight + boundingRect.width * offsetModifier}px`;
|
|
244
|
-
style.bottom = `${offsetBottom + boundingRect.height}px`;
|
|
245
|
-
style.left = "auto";
|
|
246
|
-
style.maxWidth = `${availableLeft}px`;
|
|
247
|
-
style.maxHeight = `${availableTop}px`;
|
|
248
|
-
}
|
|
249
|
-
else if (position === index$1.PopoverPosition.BOTTOM || position === index$1.PopoverPosition.BOTTOM_RIGHT) {
|
|
250
|
-
style.top = `${offsetTop + boundingRect.height}px`;
|
|
251
|
-
style.right = "auto";
|
|
252
|
-
style.bottom = "auto";
|
|
253
|
-
style.left = `${offsetLeft + boundingRect.width * offsetModifier}px`;
|
|
254
|
-
style.maxHeight = `${availableBottom}px`;
|
|
255
|
-
if (position === index$1.PopoverPosition.BOTTOM_RIGHT) {
|
|
256
|
-
style.maxWidth = `${availableRight + boundingRect.width * sizeModifier}px`;
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
else if (position === index$1.PopoverPosition.BOTTOM_LEFT) {
|
|
260
|
-
style.top = `${offsetTop + boundingRect.height}px`;
|
|
261
|
-
style.right = `${offsetRight + boundingRect.width * offsetModifier}px`;
|
|
262
|
-
style.bottom = "auto";
|
|
263
|
-
style.left = "auto";
|
|
264
|
-
style.maxWidth = `${availableLeft}px`;
|
|
265
|
-
style.maxHeight = `${availableBottom}px`;
|
|
266
|
-
}
|
|
267
|
-
else if (position === index$1.PopoverPosition.RIGHT || position === index$1.PopoverPosition.RIGHT_BOTTOM) {
|
|
268
|
-
style.top = `${offsetTop + boundingRect.height * offsetModifier}px`;
|
|
269
|
-
style.right = "auto";
|
|
270
|
-
style.bottom = "auto";
|
|
271
|
-
style.left = `${offsetLeft + boundingRect.width}px`;
|
|
272
|
-
style.maxWidth = `${availableRight}px`;
|
|
273
|
-
style.maxHeight = `${availableBottom + boundingRect.height * sizeModifier}px`;
|
|
274
|
-
}
|
|
275
|
-
else if (position === index$1.PopoverPosition.RIGHT_TOP) {
|
|
276
|
-
style.top = "auto";
|
|
277
|
-
style.right = "auto";
|
|
278
|
-
style.bottom = `${offsetBottom + boundingRect.height * offsetModifier}px`;
|
|
279
|
-
style.left = `${offsetLeft + boundingRect.width}px`;
|
|
280
|
-
style.maxWidth = `${availableRight}px`;
|
|
281
|
-
style.maxHeight = `${availableTop + boundingRect.height * sizeModifier}px`;
|
|
282
|
-
}
|
|
283
|
-
else if (position === index$1.PopoverPosition.LEFT || position === index$1.PopoverPosition.LEFT_BOTTOM) {
|
|
284
|
-
style.top = `${offsetTop + boundingRect.height * offsetModifier}px`;
|
|
285
|
-
style.right = `${offsetRight + boundingRect.width}px`;
|
|
286
|
-
style.bottom = "auto";
|
|
287
|
-
style.left = "auto";
|
|
288
|
-
style.maxWidth = `${availableLeft}px`;
|
|
289
|
-
style.maxHeight = `${availableBottom + boundingRect.height * sizeModifier}px`;
|
|
290
|
-
}
|
|
291
|
-
else if (position === index$1.PopoverPosition.LEFT_TOP) {
|
|
292
|
-
style.top = "auto";
|
|
293
|
-
style.right = `${offsetRight + boundingRect.width}px`;
|
|
294
|
-
style.bottom = `${offsetBottom + boundingRect.height * offsetModifier}px`;
|
|
295
|
-
style.left = "auto";
|
|
296
|
-
style.maxWidth = `${availableLeft}px`;
|
|
297
|
-
style.maxHeight = `${availableTop + boundingRect.height * sizeModifier}px`;
|
|
298
|
-
}
|
|
299
|
-
this.currentPosition = position || this.position;
|
|
300
|
-
this.host.setAttribute("current-position", this.currentPosition);
|
|
429
|
+
const arrowModifier = this.showArrow && this.center ? 8 : 0; // 8px is the distance of the arrow center from the edge of the popover
|
|
430
|
+
const position = this.getOptimalPopoverPosition(this.position, availableSpace, { width: boundElementRect.width, height: boundElementRect.height }, offsetModifier);
|
|
431
|
+
const style = this.host.style;
|
|
432
|
+
this.applyPositionStyles(position, style, offsets, boundElementRect, availableSpace, offsetModifier, arrowModifier);
|
|
433
|
+
this.currentPosition = position;
|
|
301
434
|
}
|
|
302
435
|
componentWillLoad() {
|
|
303
436
|
this.validatePosition(this.position);
|
|
304
437
|
this.onOpen();
|
|
305
438
|
}
|
|
439
|
+
componentDidLoad() {
|
|
440
|
+
this.setPosition();
|
|
441
|
+
}
|
|
442
|
+
disconnectedCallback() {
|
|
443
|
+
cancelAnimationFrame(this.animationFrameRequestId);
|
|
444
|
+
}
|
|
306
445
|
render() {
|
|
307
|
-
return index.h("slot", { key: '
|
|
446
|
+
return (index.h(index.Host, { key: '38c84d7959587dfef4ef66a4b76be519fe1e0f82', "current-position": this.currentPosition }, index.h("slot", { key: 'ccd1f8a455c7755e38b5aac231adcb9efeebee17' })));
|
|
308
447
|
}
|
|
309
448
|
get host() { return index.getElement(this); }
|
|
310
449
|
static get watchers() { return {
|
|
@@ -312,6 +451,21 @@ const ZPopover = class {
|
|
|
312
451
|
"open": ["onOpen"]
|
|
313
452
|
}; }
|
|
314
453
|
};
|
|
454
|
+
// Clockwise order of positions.
|
|
455
|
+
ZPopover.positionOrder = [
|
|
456
|
+
index$1.PopoverPosition.TOP_RIGHT,
|
|
457
|
+
index$1.PopoverPosition.TOP,
|
|
458
|
+
index$1.PopoverPosition.TOP_LEFT,
|
|
459
|
+
index$1.PopoverPosition.RIGHT_BOTTOM,
|
|
460
|
+
index$1.PopoverPosition.RIGHT,
|
|
461
|
+
index$1.PopoverPosition.RIGHT_TOP,
|
|
462
|
+
index$1.PopoverPosition.BOTTOM_LEFT,
|
|
463
|
+
index$1.PopoverPosition.BOTTOM,
|
|
464
|
+
index$1.PopoverPosition.BOTTOM_RIGHT,
|
|
465
|
+
index$1.PopoverPosition.LEFT_TOP,
|
|
466
|
+
index$1.PopoverPosition.LEFT,
|
|
467
|
+
index$1.PopoverPosition.LEFT_BOTTOM,
|
|
468
|
+
];
|
|
315
469
|
ZPopover.style = ZPopoverStyle0;
|
|
316
470
|
|
|
317
471
|
exports.z_popover = ZPopover;
|