@zanichelli/delta_share 2.0.13 → 2.0.14
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/dist/wc/cjs/delta_share.cjs.js +1 -1
- package/dist/wc/cjs/icons-9d7fe21e.js +751 -0
- package/dist/wc/cjs/index-1112cdb1.js +311 -0
- package/dist/wc/cjs/{license-activation_13.cjs.entry.js → license-activation_11.cjs.entry.js} +189 -144
- package/dist/wc/cjs/loader.cjs.js +1 -1
- package/dist/wc/cjs/utils-2bfaab77.js +2706 -0
- package/dist/wc/cjs/{utils-8a10bba9.js → utils-3ac19501.js} +9 -10
- package/dist/wc/cjs/z-alert.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-anchor-navigation.cjs.entry.js +53 -0
- package/dist/wc/cjs/z-app-header.cjs.entry.js +21 -19
- package/dist/wc/cjs/z-app-switcher.cjs.entry.js +3 -3
- package/dist/wc/cjs/z-aria-alert.cjs.entry.js +3 -2
- package/dist/wc/cjs/z-avatar.cjs.entry.js +8 -7
- package/dist/wc/cjs/z-body_2.cjs.entry.js +42 -0
- package/dist/wc/cjs/z-button-sort.cjs.entry.js +4 -5
- package/dist/wc/cjs/z-card.cjs.entry.js +15 -18
- package/dist/wc/cjs/z-carousel.cjs.entry.js +126 -4
- package/dist/wc/cjs/z-chip.cjs.entry.js +6 -6
- package/dist/wc/cjs/z-combobox.cjs.entry.js +65 -36
- package/dist/wc/cjs/z-contextual-menu.cjs.entry.js +13 -7
- package/dist/wc/cjs/z-cover-hero.cjs.entry.js +40 -0
- package/dist/wc/cjs/z-date-picker.cjs.entry.js +104 -2731
- package/dist/wc/cjs/z-divider.cjs.entry.js +3 -3
- package/dist/wc/cjs/z-dragdrop-area_2.cjs.entry.js +3 -2
- package/dist/wc/cjs/z-file-upload.cjs.entry.js +42 -29
- package/dist/wc/cjs/z-file.cjs.entry.js +11 -10
- package/dist/wc/cjs/z-ghost-loading.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-info-reveal.cjs.entry.js +65 -0
- package/dist/wc/cjs/z-list_3.cjs.entry.js +261 -0
- package/dist/wc/cjs/z-logo.cjs.entry.js +2 -4
- package/dist/wc/cjs/z-menu-section.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-menu.cjs.entry.js +9 -12
- package/dist/wc/cjs/z-messages-pocket.cjs.entry.js +6 -6
- package/dist/wc/cjs/z-myz-card-alert.cjs.entry.js +7 -7
- package/dist/wc/cjs/z-myz-card-dictionary.cjs.entry.js +3 -3
- package/dist/wc/cjs/z-myz-card-footer-sections.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-myz-card-footer.cjs.entry.js +10 -9
- package/dist/wc/cjs/z-myz-card-icon.cjs.entry.js +3 -1
- package/dist/wc/cjs/z-myz-card-info.cjs.entry.js +26 -16
- package/dist/wc/cjs/z-myz-card-list.cjs.entry.js +3 -2
- package/dist/wc/cjs/z-myz-card_4.cjs.entry.js +17 -13
- package/dist/wc/cjs/z-myz-list-item.cjs.entry.js +3 -3
- package/dist/wc/cjs/z-myz-list.cjs.entry.js +35 -0
- package/dist/wc/cjs/z-navigation-tab-link.cjs.entry.js +10 -10
- package/dist/wc/cjs/z-navigation-tab.cjs.entry.js +11 -11
- package/dist/wc/cjs/z-navigation-tabs.cjs.entry.js +20 -20
- package/dist/wc/cjs/z-notification.cjs.entry.js +2 -7
- package/dist/wc/cjs/z-offcanvas.cjs.entry.js +21 -14
- package/dist/wc/cjs/z-otp.cjs.entry.js +17 -17
- package/dist/wc/cjs/z-pagination.cjs.entry.js +14 -14
- package/dist/wc/cjs/z-panel-elem.cjs.entry.js +3 -3
- package/dist/wc/cjs/z-pocket-message.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-pocket_3.cjs.entry.js +18 -18
- package/dist/wc/cjs/z-popover.cjs.entry.js +293 -98
- package/dist/wc/cjs/z-range-picker.cjs.entry.js +343 -0
- package/dist/wc/cjs/z-searchbar.cjs.entry.js +235 -0
- package/dist/wc/cjs/z-section-title.cjs.entry.js +4 -13
- package/dist/wc/cjs/z-select.cjs.entry.js +325 -0
- package/dist/wc/cjs/z-skip-to-content.cjs.entry.js +18 -20
- package/dist/wc/cjs/z-slideshow.cjs.entry.js +28 -11
- package/dist/wc/cjs/z-stepper-item.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-stepper.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-table-cell.cjs.entry.js +10 -10
- package/dist/wc/cjs/z-table-empty-box.cjs.entry.js +5 -6
- package/dist/wc/cjs/z-table-expanded-row.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-table-header-row.cjs.entry.js +3 -3
- package/dist/wc/cjs/z-table-header.cjs.entry.js +20 -26
- package/dist/wc/cjs/z-table-row.cjs.entry.js +9 -9
- package/dist/wc/cjs/z-table-sticky-footer.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-table.cjs.entry.js +6 -8
- package/dist/wc/cjs/z-tag.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-toast-notification-list.cjs.entry.js +16 -16
- package/dist/wc/cjs/z-toast-notification.cjs.entry.js +37 -40
- package/dist/wc/cjs/z-toggle-button.cjs.entry.js +7 -9
- package/dist/wc/cjs/z-toggle-switch.cjs.entry.js +18 -16
- package/dist/wc/cjs/z-tooltip.cjs.entry.js +8 -251
- package/dist/wc/cjs/z-visually-hidden.cjs.entry.js +1 -1
- package/dist/wc/collection/collection-manifest.json +5 -20
- package/dist/wc/collection/components/license-activation-form/license-activation-form.css +2 -1
- package/dist/wc/collection/components/license-activation-form/license-activation-form.js +11 -6
- package/dist/wc/collection/components/license-activation-modal/license-activation-modal.js +4 -13
- package/dist/wc/custom-elements/index.js +3383 -3319
- package/dist/wc/delta_share/delta_share.esm.js +1 -1
- package/dist/wc/delta_share/{p-cfc122de.entry.js → p-0434c900.entry.js} +1 -1
- package/dist/wc/delta_share/p-063881e2.entry.js +1 -0
- package/dist/wc/delta_share/p-0aa553ea.entry.js +1 -0
- package/dist/wc/delta_share/p-0bb97b61.js +1 -0
- package/dist/wc/delta_share/p-0bff6d57.entry.js +1 -0
- package/dist/wc/delta_share/p-0cee6faa.entry.js +1 -0
- package/dist/wc/delta_share/p-1009b417.entry.js +1 -0
- package/dist/wc/delta_share/p-1d2cb6f9.entry.js +1 -0
- package/dist/wc/delta_share/p-23905d08.entry.js +1 -0
- package/dist/wc/delta_share/p-29310a24.entry.js +1 -0
- package/dist/wc/delta_share/p-2f289949.entry.js +1 -0
- package/dist/wc/delta_share/p-302c022a.entry.js +1 -0
- package/dist/wc/delta_share/p-3cf0c6a5.entry.js +1 -0
- package/dist/wc/delta_share/p-3fa29874.entry.js +1 -0
- package/dist/wc/delta_share/p-42dd4f36.entry.js +1 -0
- package/dist/wc/delta_share/p-42e9c740.entry.js +1 -0
- package/dist/wc/delta_share/p-45dcece4.entry.js +1 -0
- package/dist/wc/delta_share/p-48384226.entry.js +1 -0
- package/dist/wc/delta_share/p-4eb940ca.entry.js +1 -0
- package/dist/wc/delta_share/p-500ff0dd.entry.js +1 -0
- package/dist/wc/delta_share/p-5530ca81.entry.js +1 -0
- package/dist/wc/delta_share/p-57f2b8d8.entry.js +1 -0
- package/dist/wc/delta_share/p-5e503d5f.entry.js +1 -0
- package/dist/wc/delta_share/{p-43ae8e0a.entry.js → p-61264c72.entry.js} +1 -1
- package/dist/wc/delta_share/p-64decd7d.entry.js +1 -0
- package/dist/wc/delta_share/p-65be6de6.entry.js +1 -0
- package/dist/wc/delta_share/p-6c54d53f.entry.js +1 -0
- package/dist/wc/delta_share/p-6cb8def6.entry.js +1 -0
- package/dist/wc/delta_share/p-6d853df0.entry.js +1 -0
- package/dist/wc/delta_share/{p-6a39042b.entry.js → p-702dd7b4.entry.js} +1 -1
- package/dist/wc/delta_share/p-74b71f61.entry.js +1 -0
- package/dist/wc/delta_share/p-7546c464.entry.js +1 -0
- package/dist/wc/delta_share/p-78d71789.js +1 -0
- package/dist/wc/delta_share/{p-91a4ef35.js → p-7ae0c21f.js} +1 -1
- package/dist/wc/delta_share/p-81ddcb87.entry.js +1 -0
- package/dist/wc/delta_share/p-829539a5.entry.js +1 -0
- package/dist/wc/delta_share/p-8710e686.entry.js +1 -0
- package/dist/wc/delta_share/p-8794c0c7.entry.js +1 -0
- package/dist/wc/delta_share/p-8825d8e4.entry.js +1 -0
- package/dist/wc/delta_share/p-8876b438.entry.js +16 -0
- package/dist/wc/delta_share/p-8cc7c2c7.entry.js +1 -0
- package/dist/wc/delta_share/{p-06543221.entry.js → p-8d532866.entry.js} +1 -1
- package/dist/wc/delta_share/{p-cccef23b.entry.js → p-8d91a5b7.entry.js} +1 -1
- package/dist/wc/delta_share/p-925fc6c3.entry.js +1 -0
- package/dist/wc/delta_share/p-950aa417.entry.js +1 -0
- package/dist/wc/delta_share/p-963999a8.entry.js +1 -0
- package/dist/wc/delta_share/p-963f64a8.entry.js +1 -0
- package/dist/wc/delta_share/{p-b1b05625.entry.js → p-982608ce.entry.js} +1 -1
- package/dist/wc/delta_share/{p-94df01a9.entry.js → p-9ad5616e.entry.js} +1 -1
- package/dist/wc/delta_share/p-9e5596cd.entry.js +1 -0
- package/dist/wc/delta_share/p-a2b564ef.entry.js +1 -0
- package/dist/wc/delta_share/{p-06b89fb4.entry.js → p-a64544de.entry.js} +1 -1
- package/dist/wc/delta_share/p-a6b403f9.entry.js +1 -0
- package/dist/wc/delta_share/{p-e7932e20.entry.js → p-a815651c.entry.js} +1 -1
- package/dist/wc/delta_share/p-afb5bfe5.entry.js +1 -0
- package/dist/wc/delta_share/p-b16fd965.entry.js +1 -0
- package/dist/wc/delta_share/p-b38b27f2.entry.js +1 -0
- package/dist/wc/delta_share/{p-dec6ab35.entry.js → p-bc10cf1a.entry.js} +1 -1
- package/dist/wc/delta_share/p-bcb29c7a.entry.js +1 -0
- package/dist/wc/delta_share/p-c2aef9f6.entry.js +1 -0
- package/dist/wc/delta_share/p-c31b160e.entry.js +1 -0
- package/dist/wc/delta_share/p-c41efa42.entry.js +3 -0
- package/dist/wc/delta_share/p-c436e1af.entry.js +1 -0
- package/dist/wc/delta_share/p-c51ebb01.entry.js +1 -0
- package/dist/wc/delta_share/p-c885d25c.entry.js +1 -0
- package/dist/wc/delta_share/p-c9df8e5d.entry.js +1 -0
- package/dist/wc/delta_share/p-cb16715b.entry.js +1 -0
- package/dist/wc/delta_share/p-cf58d833.js +1 -0
- package/dist/wc/delta_share/p-d2715819.entry.js +1 -0
- package/dist/wc/delta_share/{p-91af6142.entry.js → p-d69c3b08.entry.js} +1 -1
- package/dist/wc/delta_share/p-d8e80ee8.entry.js +1 -0
- package/dist/wc/delta_share/p-ea6c67f2.entry.js +1 -0
- package/dist/wc/delta_share/p-ee0a8f1f.entry.js +1 -0
- package/dist/wc/delta_share/p-f0453d1c.entry.js +1 -0
- package/dist/wc/delta_share/p-fc49c455.entry.js +1 -0
- package/dist/wc/esm/delta_share.js +1 -1
- package/dist/wc/esm/icons-7a34b033.js +749 -0
- package/dist/wc/esm/index-4f1e2705.js +311 -0
- package/dist/wc/esm/{license-activation_13.entry.js → license-activation_11.entry.js} +190 -143
- package/dist/wc/esm/loader.js +1 -1
- package/dist/wc/esm/{utils-417652d9.js → utils-5a24a17b.js} +10 -11
- package/dist/wc/esm/utils-711517a4.js +2700 -0
- package/dist/wc/esm/z-alert.entry.js +1 -1
- package/dist/wc/esm/z-anchor-navigation.entry.js +49 -0
- package/dist/wc/esm/z-app-header.entry.js +21 -19
- package/dist/wc/esm/z-app-switcher.entry.js +3 -3
- package/dist/wc/esm/z-aria-alert.entry.js +3 -2
- package/dist/wc/esm/z-avatar.entry.js +8 -7
- package/dist/wc/esm/z-body_2.entry.js +37 -0
- package/dist/wc/esm/z-button-sort.entry.js +4 -5
- package/dist/wc/esm/z-card.entry.js +16 -19
- package/dist/wc/esm/z-carousel.entry.js +127 -5
- package/dist/wc/esm/z-chip.entry.js +6 -6
- package/dist/wc/esm/z-combobox.entry.js +65 -36
- package/dist/wc/esm/z-contextual-menu.entry.js +13 -7
- package/dist/wc/esm/z-cover-hero.entry.js +36 -0
- package/dist/wc/esm/z-date-picker.entry.js +103 -2730
- package/dist/wc/esm/z-divider.entry.js +3 -3
- package/dist/wc/esm/z-dragdrop-area_2.entry.js +3 -2
- package/dist/wc/esm/z-file-upload.entry.js +43 -30
- package/dist/wc/esm/z-file.entry.js +11 -10
- package/dist/wc/esm/z-ghost-loading.entry.js +2 -2
- package/dist/wc/esm/z-info-reveal.entry.js +61 -0
- package/dist/wc/esm/z-list_3.entry.js +255 -0
- package/dist/wc/esm/z-logo.entry.js +2 -4
- package/dist/wc/esm/z-menu-section.entry.js +2 -2
- package/dist/wc/esm/z-menu.entry.js +10 -13
- package/dist/wc/esm/z-messages-pocket.entry.js +6 -6
- package/dist/wc/esm/z-myz-card-alert.entry.js +7 -7
- package/dist/wc/esm/z-myz-card-dictionary.entry.js +3 -3
- package/dist/wc/esm/z-myz-card-footer-sections.entry.js +1 -1
- package/dist/wc/esm/z-myz-card-footer.entry.js +10 -9
- package/dist/wc/esm/z-myz-card-icon.entry.js +3 -1
- package/dist/wc/esm/z-myz-card-info.entry.js +26 -16
- package/dist/wc/esm/z-myz-card-list.entry.js +3 -2
- package/dist/wc/esm/z-myz-card_4.entry.js +17 -13
- package/dist/wc/esm/z-myz-list-item.entry.js +3 -3
- package/dist/wc/esm/z-myz-list.entry.js +31 -0
- package/dist/wc/esm/z-navigation-tab-link.entry.js +10 -10
- package/dist/wc/esm/z-navigation-tab.entry.js +11 -11
- package/dist/wc/esm/z-navigation-tabs.entry.js +20 -20
- package/dist/wc/esm/z-notification.entry.js +3 -8
- package/dist/wc/esm/z-offcanvas.entry.js +22 -15
- package/dist/wc/esm/z-otp.entry.js +17 -17
- package/dist/wc/esm/z-pagination.entry.js +15 -15
- package/dist/wc/esm/z-panel-elem.entry.js +3 -3
- package/dist/wc/esm/z-pocket-message.entry.js +2 -2
- package/dist/wc/esm/z-pocket_3.entry.js +18 -18
- package/dist/wc/esm/z-popover.entry.js +294 -99
- package/dist/wc/esm/z-range-picker.entry.js +339 -0
- package/dist/wc/esm/z-searchbar.entry.js +231 -0
- package/dist/wc/esm/z-section-title.entry.js +5 -14
- package/dist/wc/esm/z-select.entry.js +321 -0
- package/dist/wc/esm/z-skip-to-content.entry.js +18 -20
- package/dist/wc/esm/z-slideshow.entry.js +28 -11
- package/dist/wc/esm/z-stepper-item.entry.js +1 -1
- package/dist/wc/esm/z-stepper.entry.js +2 -2
- package/dist/wc/esm/z-table-cell.entry.js +10 -10
- package/dist/wc/esm/z-table-empty-box.entry.js +5 -6
- package/dist/wc/esm/z-table-expanded-row.entry.js +1 -1
- package/dist/wc/esm/z-table-header-row.entry.js +3 -3
- package/dist/wc/esm/z-table-header.entry.js +20 -26
- package/dist/wc/esm/z-table-row.entry.js +9 -9
- package/dist/wc/esm/z-table-sticky-footer.entry.js +2 -2
- package/dist/wc/esm/z-table.entry.js +6 -8
- package/dist/wc/esm/z-tag.entry.js +2 -2
- package/dist/wc/esm/z-toast-notification-list.entry.js +17 -17
- package/dist/wc/esm/z-toast-notification.entry.js +37 -40
- package/dist/wc/esm/z-toggle-button.entry.js +7 -9
- package/dist/wc/esm/z-toggle-switch.entry.js +19 -17
- package/dist/wc/esm/z-tooltip.entry.js +9 -252
- package/dist/wc/esm/z-visually-hidden.entry.js +1 -1
- package/dist/wc/types/components/license-activation-form/license-activation-form.d.ts +2 -2
- package/dist/wc/types/components/license-activation-modal/license-activation-modal.d.ts +2 -3
- package/package.json +1 -1
- package/dist/wc/cjs/icons-2aca6c75.js +0 -513
- package/dist/wc/cjs/index-1fda0714.js +0 -60
- package/dist/wc/cjs/index-9c6fd1db.js +0 -315
- package/dist/wc/cjs/z-app-topbar.cjs.entry.js +0 -41
- package/dist/wc/cjs/z-button-deprecated.cjs.entry.js +0 -38
- package/dist/wc/cjs/z-button-filter.cjs.entry.js +0 -49
- package/dist/wc/cjs/z-candybar.cjs.entry.js +0 -19
- package/dist/wc/cjs/z-chip-deprecated.cjs.entry.js +0 -24
- package/dist/wc/cjs/z-cookiebar.cjs.entry.js +0 -42
- package/dist/wc/cjs/z-footer-link_3.cjs.entry.js +0 -49
- package/dist/wc/cjs/z-footer.cjs.entry.js +0 -107
- package/dist/wc/cjs/z-icon-package.cjs.entry.js +0 -23
- package/dist/wc/cjs/z-input-deprecated.cjs.entry.js +0 -271
- package/dist/wc/cjs/z-input-label_2.cjs.entry.js +0 -272
- package/dist/wc/cjs/z-list-group.cjs.entry.js +0 -54
- package/dist/wc/cjs/z-list_2.cjs.entry.js +0 -179
- package/dist/wc/cjs/z-menu-dropdown_2.cjs.entry.js +0 -89
- package/dist/wc/cjs/z-modal-login.cjs.entry.js +0 -82
- package/dist/wc/cjs/z-myz-topbar.cjs.entry.js +0 -194
- package/dist/wc/cjs/z-pagination-bar.cjs.entry.js +0 -128
- package/dist/wc/cjs/z-pagination-page.cjs.entry.js +0 -25
- package/dist/wc/cjs/z-status-tag.cjs.entry.js +0 -29
- package/dist/wc/cjs/z-user-dropdown.cjs.entry.js +0 -95
- package/dist/wc/delta_share/p-0b0179c7.js +0 -1
- package/dist/wc/delta_share/p-103f926c.entry.js +0 -1
- package/dist/wc/delta_share/p-11b446d7.entry.js +0 -1
- package/dist/wc/delta_share/p-13093633.entry.js +0 -1
- package/dist/wc/delta_share/p-20c14e4e.entry.js +0 -1
- package/dist/wc/delta_share/p-243df9e5.entry.js +0 -1
- package/dist/wc/delta_share/p-244accd2.entry.js +0 -1
- package/dist/wc/delta_share/p-261611b1.js +0 -1
- package/dist/wc/delta_share/p-286363e2.js +0 -7
- package/dist/wc/delta_share/p-29729c73.entry.js +0 -1
- package/dist/wc/delta_share/p-29cb5018.entry.js +0 -1
- package/dist/wc/delta_share/p-29d111de.entry.js +0 -1
- package/dist/wc/delta_share/p-2b05751b.entry.js +0 -1
- package/dist/wc/delta_share/p-32975e01.entry.js +0 -1
- package/dist/wc/delta_share/p-32d34db1.entry.js +0 -1
- package/dist/wc/delta_share/p-3341f25e.entry.js +0 -1
- package/dist/wc/delta_share/p-33fb12fc.entry.js +0 -1
- package/dist/wc/delta_share/p-36955fc5.entry.js +0 -1
- package/dist/wc/delta_share/p-39440988.entry.js +0 -1
- package/dist/wc/delta_share/p-3bb7f110.entry.js +0 -1
- package/dist/wc/delta_share/p-3f61bc0d.entry.js +0 -1
- package/dist/wc/delta_share/p-422f29e8.entry.js +0 -1
- package/dist/wc/delta_share/p-44eba966.entry.js +0 -1
- package/dist/wc/delta_share/p-464dc49d.entry.js +0 -1
- package/dist/wc/delta_share/p-5374191c.entry.js +0 -16
- package/dist/wc/delta_share/p-5559856c.entry.js +0 -1
- package/dist/wc/delta_share/p-55ecb7aa.entry.js +0 -1
- package/dist/wc/delta_share/p-5af0e3cd.entry.js +0 -1
- package/dist/wc/delta_share/p-5b320481.entry.js +0 -1
- package/dist/wc/delta_share/p-5d085d01.entry.js +0 -1
- package/dist/wc/delta_share/p-5e9898dd.entry.js +0 -1
- package/dist/wc/delta_share/p-6422731e.entry.js +0 -1
- package/dist/wc/delta_share/p-64ffaf7b.entry.js +0 -1
- package/dist/wc/delta_share/p-6613eeee.entry.js +0 -1
- package/dist/wc/delta_share/p-6a9fb59c.entry.js +0 -1
- package/dist/wc/delta_share/p-6f7064dc.entry.js +0 -1
- package/dist/wc/delta_share/p-767a8d6e.entry.js +0 -1
- package/dist/wc/delta_share/p-76cfb0be.entry.js +0 -1
- package/dist/wc/delta_share/p-7f71c41e.entry.js +0 -1
- package/dist/wc/delta_share/p-8b6617d8.entry.js +0 -1
- package/dist/wc/delta_share/p-8fb4a4ea.entry.js +0 -1
- package/dist/wc/delta_share/p-94b8f342.entry.js +0 -1
- package/dist/wc/delta_share/p-9656b290.entry.js +0 -1
- package/dist/wc/delta_share/p-97e4d621.entry.js +0 -1
- package/dist/wc/delta_share/p-98853ba5.entry.js +0 -1
- package/dist/wc/delta_share/p-9c147330.entry.js +0 -1
- package/dist/wc/delta_share/p-9d35fb61.entry.js +0 -1
- package/dist/wc/delta_share/p-a0663266.entry.js +0 -1
- package/dist/wc/delta_share/p-a823768b.entry.js +0 -1
- package/dist/wc/delta_share/p-b1c1f030.entry.js +0 -1
- package/dist/wc/delta_share/p-bb38e604.entry.js +0 -1
- package/dist/wc/delta_share/p-bcb49d1a.entry.js +0 -1
- package/dist/wc/delta_share/p-c2dde3b3.entry.js +0 -1
- package/dist/wc/delta_share/p-c750a121.entry.js +0 -3
- package/dist/wc/delta_share/p-cd42e0b5.entry.js +0 -1
- package/dist/wc/delta_share/p-d282ce22.entry.js +0 -1
- package/dist/wc/delta_share/p-d610565d.entry.js +0 -1
- package/dist/wc/delta_share/p-da0b941f.entry.js +0 -1
- package/dist/wc/delta_share/p-da8144e5.entry.js +0 -1
- package/dist/wc/delta_share/p-dafefe1f.entry.js +0 -1
- package/dist/wc/delta_share/p-dc148f92.entry.js +0 -1
- package/dist/wc/delta_share/p-dd50dd54.entry.js +0 -1
- package/dist/wc/delta_share/p-de117646.entry.js +0 -1
- package/dist/wc/delta_share/p-e37c7b62.entry.js +0 -1
- package/dist/wc/delta_share/p-e9412ef0.entry.js +0 -1
- package/dist/wc/delta_share/p-ea6c7be0.entry.js +0 -1
- package/dist/wc/delta_share/p-ebb9a3f9.entry.js +0 -1
- package/dist/wc/delta_share/p-ee76ecea.entry.js +0 -1
- package/dist/wc/delta_share/p-f2323f2a.entry.js +0 -1
- package/dist/wc/delta_share/p-f441efc3.entry.js +0 -1
- package/dist/wc/delta_share/p-f531a563.entry.js +0 -1
- package/dist/wc/delta_share/p-fa3d96ab.entry.js +0 -1
- package/dist/wc/delta_share/p-fd83d815.entry.js +0 -1
- package/dist/wc/delta_share/p-ff2508eb.entry.js +0 -1
- package/dist/wc/esm/icons-74713b55.js +0 -511
- package/dist/wc/esm/index-654849a7.js +0 -315
- package/dist/wc/esm/index-abb47b30.js +0 -58
- package/dist/wc/esm/z-app-topbar.entry.js +0 -37
- package/dist/wc/esm/z-button-deprecated.entry.js +0 -34
- package/dist/wc/esm/z-button-filter.entry.js +0 -45
- package/dist/wc/esm/z-candybar.entry.js +0 -15
- package/dist/wc/esm/z-chip-deprecated.entry.js +0 -20
- package/dist/wc/esm/z-cookiebar.entry.js +0 -38
- package/dist/wc/esm/z-footer-link_3.entry.js +0 -43
- package/dist/wc/esm/z-footer.entry.js +0 -103
- package/dist/wc/esm/z-icon-package.entry.js +0 -19
- package/dist/wc/esm/z-input-deprecated.entry.js +0 -267
- package/dist/wc/esm/z-input-label_2.entry.js +0 -267
- package/dist/wc/esm/z-list-group.entry.js +0 -50
- package/dist/wc/esm/z-list_2.entry.js +0 -174
- package/dist/wc/esm/z-menu-dropdown_2.entry.js +0 -84
- package/dist/wc/esm/z-modal-login.entry.js +0 -78
- package/dist/wc/esm/z-myz-topbar.entry.js +0 -190
- package/dist/wc/esm/z-pagination-bar.entry.js +0 -124
- package/dist/wc/esm/z-pagination-page.entry.js +0 -21
- package/dist/wc/esm/z-status-tag.entry.js +0 -25
- package/dist/wc/esm/z-user-dropdown.entry.js +0 -91
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, a as getElement } from './index-b3a91e19.js';
|
|
2
|
-
import {
|
|
3
|
-
import { h as handleKeyboardSubmit } from './utils-
|
|
2
|
+
import { p as PocketStatus } from './index-4f1e2705.js';
|
|
3
|
+
import { h as handleKeyboardSubmit } from './utils-5a24a17b.js';
|
|
4
4
|
import { h as hammer } from './hammer-c3266b17.js';
|
|
5
5
|
import './breakpoints-e07f80e7.js';
|
|
6
6
|
import './_commonjsHelpers-9943807e.js';
|
|
7
7
|
|
|
8
|
-
const stylesCss$2 = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg)
|
|
8
|
+
const stylesCss$2 = ":host{width:inherit;height:100%;margin:inherit;font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>div{width:inherit;height:100%;margin:inherit}:host>div>div.background{position:fixed;z-index:998;top:0;right:0;bottom:0;left:0;width:0;height:0}:host>div>div.background.open{width:100%;height:100%}:host>div>div.content-wrapper{position:fixed;z-index:999;bottom:0;left:0;width:inherit;margin:inherit}:host>div>div.content-wrapper>div{margin:calc(var(--space-unit) * 0.5) calc(var(--space-unit) * 0.5) 0 calc(var(--space-unit) * 0.5);border-radius:var(--space-unit) var(--space-unit) 0 0;box-shadow:0 -2px calc(var(--space-unit) * 0.5) 0 rgb(66 69 72 / 40%)}";
|
|
9
9
|
|
|
10
10
|
const ZPocket = class {
|
|
11
11
|
constructor(hostRef) {
|
|
12
12
|
registerInstance(this, hostRef);
|
|
13
13
|
this.pocketToggle = createEvent(this, "pocketToggle", 7);
|
|
14
14
|
/** pocket status */
|
|
15
|
-
this.status =
|
|
15
|
+
this.status = PocketStatus.PREVIEW;
|
|
16
16
|
}
|
|
17
17
|
/** open z-pocket */
|
|
18
18
|
async open() {
|
|
19
|
-
this.status =
|
|
19
|
+
this.status = PocketStatus.OPEN;
|
|
20
20
|
}
|
|
21
21
|
/** close z-pocket */
|
|
22
22
|
async close() {
|
|
23
|
-
this.status =
|
|
23
|
+
this.status = PocketStatus.CLOSED;
|
|
24
24
|
}
|
|
25
25
|
emitPocketToggle(id, status) {
|
|
26
26
|
this.pocketToggle.emit({ id, status });
|
|
@@ -28,12 +28,12 @@ const ZPocket = class {
|
|
|
28
28
|
handlePocketHeaderClick(e) {
|
|
29
29
|
if (e.detail.id && e.detail.id === this.pocketid) {
|
|
30
30
|
switch (this.status) {
|
|
31
|
-
case
|
|
32
|
-
case
|
|
33
|
-
this.status =
|
|
31
|
+
case PocketStatus.PREVIEW:
|
|
32
|
+
case PocketStatus.CLOSED:
|
|
33
|
+
this.status = PocketStatus.OPEN;
|
|
34
34
|
break;
|
|
35
|
-
case
|
|
36
|
-
this.status =
|
|
35
|
+
case PocketStatus.OPEN:
|
|
36
|
+
this.status = PocketStatus.CLOSED;
|
|
37
37
|
break;
|
|
38
38
|
}
|
|
39
39
|
}
|
|
@@ -41,10 +41,10 @@ const ZPocket = class {
|
|
|
41
41
|
handlePocketHeaderPan(e) {
|
|
42
42
|
if (e.detail.id && e.detail.id === this.pocketid) {
|
|
43
43
|
if (e.detail.direction === "up") {
|
|
44
|
-
this.status =
|
|
44
|
+
this.status = PocketStatus.OPEN;
|
|
45
45
|
}
|
|
46
46
|
else if (e.detail.direction === "down") {
|
|
47
|
-
this.status =
|
|
47
|
+
this.status = PocketStatus.CLOSED;
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
}
|
|
@@ -60,7 +60,7 @@ const ZPocket = class {
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
render() {
|
|
63
|
-
return (h("div", null, h("div", { "data-action": "pocketBackground", "data-pocket": this.pocketid, class: `background ${this.status}`, onClick: (e) => this.handleBackgroundClick(e) }), h("div", { id: this.pocketid, class: "
|
|
63
|
+
return (h("div", null, h("div", { "data-action": "pocketBackground", "data-pocket": this.pocketid, class: `background ${this.status}`, onClick: (e) => this.handleBackgroundClick(e) }), h("div", { id: this.pocketid, class: "content-wrapper" }, h("div", null, h("slot", null)))));
|
|
64
64
|
}
|
|
65
65
|
get hostElement() { return getElement(this); }
|
|
66
66
|
static get watchers() { return {
|
|
@@ -69,13 +69,13 @@ const ZPocket = class {
|
|
|
69
69
|
};
|
|
70
70
|
ZPocket.style = stylesCss$2;
|
|
71
71
|
|
|
72
|
-
const stylesCss$1 = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg)
|
|
72
|
+
const stylesCss$1 = ":host{display:block;width:100%;box-sizing:border-box;font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>main{overflow:auto;border-right:var(--border-size-small) solid var(--color-surface03);border-left:var(--border-size-small) solid var(--color-surface03);background:var(--color-surface01);scrollbar-width:none}:host>main.preview{max-height:225px;transition:all 200ms ease-in-out, top 200ms ease-in-out}:host>main.open{max-height:calc(100vh - 48px);transition:all 200ms ease-in-out, top 200ms ease-in-out}:host>main.closed{height:0;transition:all 200ms ease-in-out, top 200ms ease-in-out}:host ::-webkit-scrollbar{width:0}@media only screen and (min-width: 768px){:host>main.preview{max-height:157px}}";
|
|
73
73
|
|
|
74
74
|
const ZPocketBody = class {
|
|
75
75
|
constructor(hostRef) {
|
|
76
76
|
registerInstance(this, hostRef);
|
|
77
77
|
/** pocket status */
|
|
78
|
-
this.status =
|
|
78
|
+
this.status = PocketStatus.PREVIEW;
|
|
79
79
|
}
|
|
80
80
|
handlePocketToggle(e) {
|
|
81
81
|
if (e.detail.id && e.detail.id === this.pocketid) {
|
|
@@ -88,7 +88,7 @@ const ZPocketBody = class {
|
|
|
88
88
|
};
|
|
89
89
|
ZPocketBody.style = stylesCss$1;
|
|
90
90
|
|
|
91
|
-
const stylesCss = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg)
|
|
91
|
+
const stylesCss = ":host{display:block;width:100%;box-sizing:border-box;font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>header{display:flex;height:36px;flex-flow:row nowrap;align-items:center;justify-content:center;border:var(--border-size-small) solid var(--color-surface03);background:var(--color-surface01);border-radius:var(--space-unit) var(--space-unit) 0 0;cursor:pointer}:host>header:focus{outline:none}:host>header::-moz-focus-inner{border:0}";
|
|
92
92
|
|
|
93
93
|
const ZPocketHeader = class {
|
|
94
94
|
constructor(hostRef) {
|
|
@@ -111,7 +111,7 @@ const ZPocketHeader = class {
|
|
|
111
111
|
mc.on("pandown", () => this.emitPocketHeaderPan("down"));
|
|
112
112
|
}
|
|
113
113
|
render() {
|
|
114
|
-
return (h("header", { role: "button", tabindex: 0, onClick: () => this.emitPocketHeaderClick(), onKeyPress: (ev) => handleKeyboardSubmit(ev, this.emitPocketHeaderClick), ref: el => (this.swipeWrap = el) }, h("slot", null)));
|
|
114
|
+
return (h("header", { role: "button", tabindex: 0, onClick: () => this.emitPocketHeaderClick(), onKeyPress: (ev) => handleKeyboardSubmit(ev, this.emitPocketHeaderClick), ref: (el) => (this.swipeWrap = el) }, h("slot", null)));
|
|
115
115
|
}
|
|
116
116
|
};
|
|
117
117
|
ZPocketHeader.style = stylesCss;
|
|
@@ -1,127 +1,322 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h,
|
|
2
|
-
import {
|
|
3
|
-
import { P as PopoverPosition, G as PopoverBorderRadius, H as PopoverShadow, F as KeyboardKeys } from './index-654849a7.js';
|
|
4
|
-
import { a as getElementTree } from './utils-417652d9.js';
|
|
5
|
-
import './_commonjsHelpers-9943807e.js';
|
|
6
|
-
import './breakpoints-e07f80e7.js';
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, a as getElement } from './index-b3a91e19.js';
|
|
2
|
+
import { P as PopoverPosition, K as KeyboardCode } from './index-4f1e2705.js';
|
|
7
3
|
|
|
8
|
-
const stylesCss = "
|
|
4
|
+
const stylesCss = ":host{--z-popover-theme--surface:var(--color-surface01);--z-popover-theme--text:var(--color-text01);--z-popover-padding:0;--z-popover-shadow-filter:drop-shadow(0 1px 2px var(--shadow-color-base));position:relative;display:none;min-width:calc(var(--space-unit) * 8);min-height:calc(var(--space-unit) * 4);align-items:center;justify-content:center;padding:var(--z-popover-padding);background:var(--z-popover-theme--surface);border-radius:var(--border-radius-small);color:var(--z-popover-theme--text);fill:currentcolor;filter:var(--z-popover-shadow-filter);font-family:var(--font-family-sans);text-align:center}: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);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
5
|
|
|
6
|
+
const DOCUMENT_ELEMENT = document.documentElement;
|
|
7
|
+
function getParentElement(element) {
|
|
8
|
+
if (element.parentNode.host) {
|
|
9
|
+
return element.parentNode.host;
|
|
10
|
+
}
|
|
11
|
+
return element.parentNode;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Find the closest scrollable parent of a node.
|
|
15
|
+
*
|
|
16
|
+
* @param {Element} element The node
|
|
17
|
+
*/
|
|
18
|
+
function findScrollableParent(element) {
|
|
19
|
+
let parent = getParentElement(element);
|
|
20
|
+
while (parent && parent !== DOCUMENT_ELEMENT) {
|
|
21
|
+
const { overflow, overflowX, overflowY } = window.getComputedStyle(parent);
|
|
22
|
+
if (overflow === "hidden" || overflowY === "hidden" || overflowX === "hidden") {
|
|
23
|
+
return parent;
|
|
24
|
+
}
|
|
25
|
+
if ((parent.scrollHeight > parent.clientHeight && overflow !== "visible" && overflowY !== "visible") ||
|
|
26
|
+
(parent.scrollWidth > parent.clientWidth && overflow !== "visible" && overflowX !== "visible")) {
|
|
27
|
+
return parent;
|
|
28
|
+
}
|
|
29
|
+
parent = getParentElement(parent);
|
|
30
|
+
}
|
|
31
|
+
return DOCUMENT_ELEMENT;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Calculate computed offset.
|
|
35
|
+
* It includes matrix transformations.
|
|
36
|
+
* @param element The target element.
|
|
37
|
+
* @param targetParentOffset The relative offset parent.
|
|
38
|
+
* @return A client rect object.
|
|
39
|
+
*/
|
|
40
|
+
function computeOffset(element, targetParentOffset) {
|
|
41
|
+
const rect = element.getBoundingClientRect();
|
|
42
|
+
const width = rect.width;
|
|
43
|
+
const height = rect.height;
|
|
44
|
+
let top = 0;
|
|
45
|
+
let left = 0;
|
|
46
|
+
let offsetParent = element;
|
|
47
|
+
while (offsetParent && offsetParent != targetParentOffset) {
|
|
48
|
+
left += offsetParent.offsetLeft;
|
|
49
|
+
// document.body sometimes has offsetTop == 0 but still has an
|
|
50
|
+
// offset because of children margins!
|
|
51
|
+
if (offsetParent === document.body) {
|
|
52
|
+
top += offsetParent.getBoundingClientRect().top + window.scrollY;
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
top += offsetParent.offsetTop;
|
|
56
|
+
}
|
|
57
|
+
if (window.DOMMatrix) {
|
|
58
|
+
const style = window.getComputedStyle(offsetParent);
|
|
59
|
+
const transform = style.transform || style.webkitTransform;
|
|
60
|
+
const domMatrix = new DOMMatrix(transform);
|
|
61
|
+
if (domMatrix) {
|
|
62
|
+
left += domMatrix.m41;
|
|
63
|
+
if (offsetParent !== document.body) {
|
|
64
|
+
top += domMatrix.m42;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
if (!offsetParent.offsetParent) {
|
|
69
|
+
break;
|
|
70
|
+
}
|
|
71
|
+
offsetParent = offsetParent.offsetParent;
|
|
72
|
+
}
|
|
73
|
+
let parentWidth;
|
|
74
|
+
let parentHeight;
|
|
75
|
+
if (offsetParent === document.body) {
|
|
76
|
+
parentWidth = window.innerWidth;
|
|
77
|
+
parentHeight = window.innerHeight;
|
|
78
|
+
}
|
|
79
|
+
else {
|
|
80
|
+
parentWidth = offsetParent.offsetWidth;
|
|
81
|
+
parentHeight = offsetParent.offsetHeight;
|
|
82
|
+
}
|
|
83
|
+
const right = parentWidth - left - rect.width;
|
|
84
|
+
const bottom = parentHeight - top - rect.height;
|
|
85
|
+
return { top, right, bottom, left, width, height };
|
|
86
|
+
}
|
|
10
87
|
const ZPopover = class {
|
|
11
|
-
/**
|
|
12
|
-
* Constructor.
|
|
13
|
-
*/
|
|
14
88
|
constructor(hostRef) {
|
|
15
89
|
registerInstance(this, hostRef);
|
|
16
|
-
this.
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
90
|
+
this.positionChange = createEvent(this, "positionChange", 7);
|
|
91
|
+
this.openChange = createEvent(this, "openChange", 7);
|
|
92
|
+
/** Popover position. */
|
|
93
|
+
this.position = PopoverPosition.AUTO;
|
|
94
|
+
/**
|
|
95
|
+
* The open state of the popover.
|
|
96
|
+
*/
|
|
97
|
+
this.open = false;
|
|
98
|
+
/**
|
|
99
|
+
* Whether to show popover's arrow.
|
|
100
|
+
*/
|
|
26
101
|
this.showArrow = false;
|
|
27
|
-
/**
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
this.
|
|
31
|
-
|
|
102
|
+
/**
|
|
103
|
+
* Whether to center the popup on the main side (according to "position").
|
|
104
|
+
*/
|
|
105
|
+
this.center = false;
|
|
106
|
+
/**
|
|
107
|
+
* Whether the popover should be closed when the user clicks outside of it or hit "ESC".
|
|
108
|
+
*/
|
|
109
|
+
this.closable = true;
|
|
32
110
|
}
|
|
33
|
-
|
|
34
|
-
this.
|
|
35
|
-
|
|
36
|
-
}
|
|
111
|
+
closePopoverWithKeyboard(e) {
|
|
112
|
+
if (this.closable && e.key === KeyboardCode.ESC) {
|
|
113
|
+
this.open = false;
|
|
114
|
+
}
|
|
37
115
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
else {
|
|
54
|
-
secondSide = "down";
|
|
116
|
+
/**
|
|
117
|
+
* Close the popover when clicking outside of its content.
|
|
118
|
+
* Stop event propagation if the click was fired by popover's trigger element,
|
|
119
|
+
* to prevent close and reopen glitches.
|
|
120
|
+
* @param {MouseEvent} e
|
|
121
|
+
*/
|
|
122
|
+
handleOutsideClick(e) {
|
|
123
|
+
if (!this.closable || !this.open) {
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
if (!e.composedPath().includes(this.host)) {
|
|
127
|
+
const target = e.target;
|
|
128
|
+
const triggerElemClicked = this.bindTo instanceof HTMLElement ? this.bindTo.contains(target) : target.closest(this.bindTo);
|
|
129
|
+
if (triggerElemClicked) {
|
|
130
|
+
e.stopPropagation();
|
|
55
131
|
}
|
|
132
|
+
this.open = false;
|
|
133
|
+
this.positionChange.emit({ position: this.currentPosition });
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
validatePosition(newValue) {
|
|
137
|
+
if (newValue && !Object.values(PopoverPosition).includes(newValue)) {
|
|
138
|
+
this.position = PopoverPosition.AUTO;
|
|
56
139
|
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
140
|
+
this.currentPosition = this.position;
|
|
141
|
+
this.positionChange.emit({ position: this.currentPosition });
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Setup popover behaviors on opening.
|
|
145
|
+
*/
|
|
146
|
+
onOpen() {
|
|
147
|
+
cancelAnimationFrame(this.animationFrameRequestId);
|
|
148
|
+
if (this.open) {
|
|
149
|
+
const setPosition = () => {
|
|
150
|
+
if (this.open) {
|
|
151
|
+
this.setPosition();
|
|
152
|
+
this.animationFrameRequestId = requestAnimationFrame(setPosition);
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
setPosition();
|
|
156
|
+
}
|
|
157
|
+
else if (this.host.hasAttribute("current-position")) {
|
|
158
|
+
this.host.removeAttribute("current-position");
|
|
159
|
+
this.currentPosition = undefined;
|
|
160
|
+
}
|
|
161
|
+
this.openChange.emit({ open: this.open });
|
|
162
|
+
}
|
|
163
|
+
disconnectedCallback() {
|
|
164
|
+
cancelAnimationFrame(this.animationFrameRequestId);
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Set the position of the popover.
|
|
168
|
+
*/
|
|
169
|
+
setPosition() {
|
|
170
|
+
let element;
|
|
171
|
+
if (typeof this.bindTo === "string") {
|
|
172
|
+
element = this.host.ownerDocument.querySelector(this.bindTo);
|
|
173
|
+
}
|
|
174
|
+
else if (this.bindTo) {
|
|
175
|
+
element = this.bindTo;
|
|
176
|
+
}
|
|
177
|
+
else {
|
|
178
|
+
element = this.host.parentElement;
|
|
179
|
+
}
|
|
180
|
+
if (!element) {
|
|
181
|
+
return;
|
|
182
|
+
}
|
|
183
|
+
const scrollContainer = findScrollableParent(element);
|
|
184
|
+
const scrollingBoundingRect = scrollContainer.getBoundingClientRect();
|
|
185
|
+
const offsetContainer = this.host.offsetParent;
|
|
186
|
+
const relativeBoundingRect = offsetContainer
|
|
187
|
+
? computeOffset(offsetContainer, scrollContainer)
|
|
188
|
+
: { top: 0, right: 0, bottom: 0, left: 0 };
|
|
189
|
+
const boundingRect = computeOffset(element, scrollContainer);
|
|
190
|
+
const top = boundingRect.top - scrollContainer.scrollTop;
|
|
191
|
+
const bottom = scrollingBoundingRect.height - (boundingRect.top + boundingRect.height) + scrollContainer.scrollTop;
|
|
192
|
+
const left = boundingRect.left - scrollContainer.scrollLeft;
|
|
193
|
+
const right = scrollingBoundingRect.width - (boundingRect.left + boundingRect.width) + scrollContainer.scrollLeft;
|
|
194
|
+
const overflowBottom = Math.max(0, scrollingBoundingRect.top + scrollingBoundingRect.height - window.innerHeight);
|
|
195
|
+
const overflowRight = Math.max(0, scrollingBoundingRect.left + scrollingBoundingRect.width - window.innerWidth);
|
|
196
|
+
const availableTop = Math.min(top, top + scrollingBoundingRect.top);
|
|
197
|
+
const availableBottom = Math.min(bottom, bottom - overflowBottom);
|
|
198
|
+
const availableLeft = Math.min(left, left + scrollingBoundingRect.left);
|
|
199
|
+
const availableRight = Math.min(right, right - overflowRight);
|
|
200
|
+
const availableHeight = availableTop + availableBottom + boundingRect.height;
|
|
201
|
+
const availableWidth = availableLeft + availableRight + boundingRect.width;
|
|
202
|
+
let position = this.currentPosition;
|
|
203
|
+
const positions = [];
|
|
204
|
+
if (this.position === PopoverPosition.AUTO) {
|
|
205
|
+
/**
|
|
206
|
+
* The `AUTO` position tries to place the popover in the 'safest' area,
|
|
207
|
+
* where there's more space available.
|
|
208
|
+
*/
|
|
209
|
+
if (availableLeft / availableWidth > 0.6) {
|
|
210
|
+
positions.push(PopoverPosition.LEFT);
|
|
61
211
|
}
|
|
62
|
-
else {
|
|
63
|
-
|
|
212
|
+
else if (availableLeft / availableWidth < 0.4) {
|
|
213
|
+
positions.push(PopoverPosition.RIGHT);
|
|
64
214
|
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
if (
|
|
69
|
-
|
|
70
|
-
|
|
215
|
+
if (availableTop / availableHeight > 0.9) {
|
|
216
|
+
positions.unshift(PopoverPosition.TOP);
|
|
217
|
+
}
|
|
218
|
+
else if (availableTop / availableHeight > 0.6) {
|
|
219
|
+
positions.push(PopoverPosition.TOP);
|
|
220
|
+
}
|
|
221
|
+
else if (availableTop / availableHeight < 0.1) {
|
|
222
|
+
positions.unshift(PopoverPosition.BOTTOM);
|
|
71
223
|
}
|
|
72
224
|
else {
|
|
73
|
-
|
|
225
|
+
positions.push(PopoverPosition.BOTTOM);
|
|
74
226
|
}
|
|
227
|
+
position = positions.join("_");
|
|
75
228
|
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
229
|
+
const style = this.host.style;
|
|
230
|
+
style.position = "absolute";
|
|
231
|
+
const offsetTop = boundingRect.top - relativeBoundingRect.top;
|
|
232
|
+
const offsetRight = boundingRect.right - relativeBoundingRect.right;
|
|
233
|
+
const offsetBottom = boundingRect.bottom - relativeBoundingRect.bottom;
|
|
234
|
+
const offsetLeft = boundingRect.left - relativeBoundingRect.left;
|
|
235
|
+
const offsetModifier = this.center ? 0.5 : 0;
|
|
236
|
+
const sizeModifier = this.center ? 0.5 : 0;
|
|
237
|
+
if (position === PopoverPosition.TOP || position === PopoverPosition.TOP_RIGHT) {
|
|
238
|
+
style.top = "auto";
|
|
239
|
+
style.right = "auto";
|
|
240
|
+
style.bottom = `${offsetBottom + boundingRect.height}px`;
|
|
241
|
+
style.left = `${offsetLeft + boundingRect.width * offsetModifier}px`;
|
|
242
|
+
style.maxHeight = `${availableTop}px`;
|
|
243
|
+
if (position === PopoverPosition.TOP_RIGHT) {
|
|
244
|
+
style.maxWidth = `${availableRight + boundingRect.width * sizeModifier}px`;
|
|
81
245
|
}
|
|
82
|
-
|
|
83
|
-
|
|
246
|
+
}
|
|
247
|
+
else if (position === PopoverPosition.TOP_LEFT) {
|
|
248
|
+
style.top = "auto";
|
|
249
|
+
style.right = `${offsetRight + boundingRect.width * offsetModifier}px`;
|
|
250
|
+
style.bottom = `${offsetBottom + boundingRect.height}px`;
|
|
251
|
+
style.left = "auto";
|
|
252
|
+
style.maxWidth = `${availableLeft}px`;
|
|
253
|
+
style.maxHeight = `${availableTop}px`;
|
|
254
|
+
}
|
|
255
|
+
else if (position === PopoverPosition.BOTTOM || position === PopoverPosition.BOTTOM_RIGHT) {
|
|
256
|
+
style.top = `${offsetTop + boundingRect.height}px`;
|
|
257
|
+
style.right = "auto";
|
|
258
|
+
style.bottom = "auto";
|
|
259
|
+
style.left = `${offsetLeft + boundingRect.width * offsetModifier}px`;
|
|
260
|
+
style.maxHeight = `${availableBottom}px`;
|
|
261
|
+
if (position === PopoverPosition.BOTTOM_RIGHT) {
|
|
262
|
+
style.maxWidth = `${availableRight + boundingRect.width * sizeModifier}px`;
|
|
84
263
|
}
|
|
85
264
|
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
closePopoverWithKeyboard(e) {
|
|
94
|
-
if (e.key === KeyboardKeys.ESC) {
|
|
95
|
-
this.closePopover();
|
|
265
|
+
else if (position === PopoverPosition.BOTTOM_LEFT) {
|
|
266
|
+
style.top = `${offsetTop + boundingRect.height}px`;
|
|
267
|
+
style.right = `${offsetRight + boundingRect.width * offsetModifier}px`;
|
|
268
|
+
style.bottom = "auto";
|
|
269
|
+
style.left = "auto";
|
|
270
|
+
style.maxWidth = `${availableLeft}px`;
|
|
271
|
+
style.maxHeight = `${availableBottom}px`;
|
|
96
272
|
}
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
if (event.code === KeyboardKeys.ENTER) {
|
|
105
|
-
this.isVisible ? this.closePopover() : this.openPopover();
|
|
273
|
+
else if (position === PopoverPosition.RIGHT || position === PopoverPosition.RIGHT_BOTTOM) {
|
|
274
|
+
style.top = `${offsetTop + boundingRect.height * offsetModifier}px`;
|
|
275
|
+
style.right = "auto";
|
|
276
|
+
style.bottom = "auto";
|
|
277
|
+
style.left = `${offsetLeft + boundingRect.width}px`;
|
|
278
|
+
style.maxWidth = `${availableRight}px`;
|
|
279
|
+
style.maxHeight = `${availableBottom + boundingRect.height * sizeModifier}px`;
|
|
106
280
|
}
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
281
|
+
else if (position === PopoverPosition.RIGHT_TOP) {
|
|
282
|
+
style.top = "auto";
|
|
283
|
+
style.right = "auto";
|
|
284
|
+
style.bottom = `${offsetBottom + boundingRect.height * offsetModifier}px`;
|
|
285
|
+
style.left = `${offsetLeft + boundingRect.width}px`;
|
|
286
|
+
style.maxWidth = `${availableRight}px`;
|
|
287
|
+
style.maxHeight = `${availableTop + boundingRect.height * sizeModifier}px`;
|
|
288
|
+
}
|
|
289
|
+
else if (position === PopoverPosition.LEFT || position === PopoverPosition.LEFT_BOTTOM) {
|
|
290
|
+
style.top = `${offsetTop + boundingRect.height * offsetModifier}px`;
|
|
291
|
+
style.right = `${offsetRight + boundingRect.width}px`;
|
|
292
|
+
style.bottom = "auto";
|
|
293
|
+
style.left = "auto";
|
|
294
|
+
style.maxWidth = `${availableLeft}px`;
|
|
295
|
+
style.maxHeight = `${availableBottom + boundingRect.height * sizeModifier}px`;
|
|
113
296
|
}
|
|
297
|
+
else if (position === PopoverPosition.LEFT_TOP) {
|
|
298
|
+
style.top = "auto";
|
|
299
|
+
style.right = `${offsetRight + boundingRect.width}px`;
|
|
300
|
+
style.bottom = `${offsetBottom + boundingRect.height * offsetModifier}px`;
|
|
301
|
+
style.left = "auto";
|
|
302
|
+
style.maxWidth = `${availableLeft}px`;
|
|
303
|
+
style.maxHeight = `${availableTop + boundingRect.height * sizeModifier}px`;
|
|
304
|
+
}
|
|
305
|
+
this.currentPosition = position || this.position;
|
|
306
|
+
this.host.setAttribute("current-position", this.currentPosition);
|
|
307
|
+
}
|
|
308
|
+
componentWillLoad() {
|
|
309
|
+
this.validatePosition(this.position);
|
|
310
|
+
this.onOpen();
|
|
114
311
|
}
|
|
115
312
|
render() {
|
|
116
|
-
return
|
|
117
|
-
if (event.key === KeyboardKeys.ENTER) {
|
|
118
|
-
this.handleClick(event);
|
|
119
|
-
}
|
|
120
|
-
} }, h("slot", { name: "trigger" })), h("div", { ref: (e) => (this.popoverElem = e), class: classnames("popover-content-container", this.popoverPosition, `border-radius-${this.borderRadius}`, this.boxShadow, { "show-arrow": this.showArrow }, { visible: this.isVisible }), style: {
|
|
121
|
-
backgroundColor: `var(--${this.backgroundColor})`,
|
|
122
|
-
padding: this.padding,
|
|
123
|
-
} }, h("slot", { name: "popover" }))));
|
|
313
|
+
return h("slot", null);
|
|
124
314
|
}
|
|
315
|
+
get host() { return getElement(this); }
|
|
316
|
+
static get watchers() { return {
|
|
317
|
+
"position": ["validatePosition"],
|
|
318
|
+
"open": ["onOpen"]
|
|
319
|
+
}; }
|
|
125
320
|
};
|
|
126
321
|
ZPopover.style = stylesCss;
|
|
127
322
|
|