@zanichelli/albe-web-components 4.1.0 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1788 -0
- package/dist/cjs/{index-6b6a3299.js → index-0e75c8cc.js} +16 -45
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/utils-155eec04.js +2706 -0
- package/dist/cjs/{utils-8cc414c9.js → utils-97262bbd.js} +1 -1
- package/dist/cjs/web-components-library.cjs.js +1 -1
- package/dist/cjs/z-app-switcher_9.cjs.entry.js +736 -0
- 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-button-deprecated.cjs.entry.js +1 -1
- package/dist/cjs/z-button.cjs.entry.js +44 -0
- package/dist/cjs/z-card.cjs.entry.js +69 -0
- package/dist/cjs/z-carousel.cjs.entry.js +24 -0
- package/dist/cjs/z-chip.cjs.entry.js +2 -2
- package/dist/cjs/z-combobox.cjs.entry.js +2 -2
- package/dist/cjs/z-contextual-menu.cjs.entry.js +18 -7
- package/dist/cjs/z-cookiebar.cjs.entry.js +1 -1
- package/dist/cjs/z-date-picker.cjs.entry.js +10 -2701
- package/dist/cjs/z-file-upload.cjs.entry.js +2 -2
- package/dist/cjs/z-file.cjs.entry.js +10 -9
- package/dist/cjs/z-footer.cjs.entry.js +1 -1
- package/dist/cjs/z-ghost-loading.cjs.entry.js +19 -0
- package/dist/cjs/z-input-deprecated.cjs.entry.js +2 -2
- package/dist/cjs/z-input-label_2.cjs.entry.js +2 -2
- package/dist/cjs/z-list-group.cjs.entry.js +1 -1
- package/dist/cjs/z-list_2.cjs.entry.js +1 -1
- package/dist/cjs/z-menu-dropdown_2.cjs.entry.js +2 -2
- package/dist/cjs/z-messages-pocket.cjs.entry.js +1 -1
- package/dist/cjs/z-modal-login.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-alert.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-footer.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-info.cjs.entry.js +4 -4
- package/dist/cjs/z-myz-card_4.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-list-item.cjs.entry.js +2 -2
- package/dist/cjs/z-myz-topbar.cjs.entry.js +1 -1
- package/dist/cjs/z-navigation-tab-link.cjs.entry.js +1 -1
- package/dist/cjs/z-navigation-tab.cjs.entry.js +1 -1
- package/dist/cjs/z-navigation-tabs.cjs.entry.js +1 -1
- package/dist/cjs/z-offcanvas.cjs.entry.js +63 -0
- package/dist/cjs/z-otp.cjs.entry.js +1 -1
- package/dist/cjs/z-pagination-bar.cjs.entry.js +2 -2
- package/dist/cjs/z-pocket_3.cjs.entry.js +2 -2
- package/dist/cjs/z-popover-deprecated.cjs.entry.js +338 -0
- package/dist/cjs/z-popover.cjs.entry.js +304 -97
- package/dist/cjs/z-section-title.cjs.entry.js +1 -1
- package/dist/cjs/z-skip-to-content.cjs.entry.js +2 -2
- package/dist/cjs/z-slideshow.cjs.entry.js +2 -2
- package/dist/cjs/z-status-tag.cjs.entry.js +1 -1
- package/dist/cjs/z-table-cell.cjs.entry.js +1 -1
- package/dist/cjs/z-table-header.cjs.entry.js +8 -11
- package/dist/cjs/z-table-row.cjs.entry.js +1 -1
- package/dist/cjs/z-table.cjs.entry.js +1 -1
- package/dist/cjs/z-toast-notification-list.cjs.entry.js +1 -1
- package/dist/cjs/z-toast-notification.cjs.entry.js +1 -1
- package/dist/cjs/z-toggle-switch.cjs.entry.js +2 -2
- package/dist/cjs/z-tooltip-deprecated.cjs.entry.js +274 -0
- package/dist/cjs/z-tooltip.cjs.entry.js +8 -251
- package/dist/collection/beans/index.js +16 -45
- package/dist/collection/collection-manifest.json +4 -1
- package/dist/collection/components/{z-date-picker → date-picker}/styles.css +69 -17
- package/dist/collection/components/date-picker/utils.js +76 -0
- package/dist/collection/components/{z-date-picker → date-picker/z-date-picker}/index.js +13 -84
- package/dist/collection/components/date-picker/z-range-picker/index.js +483 -0
- package/dist/collection/components/file-upload/z-file/index.js +13 -13
- package/dist/collection/components/file-upload/z-file/styles.css +2 -2
- package/dist/collection/components/notification/z-tooltip/index.js +45 -298
- package/dist/collection/components/notification/z-tooltip/styles.css +8 -120
- package/dist/collection/components/z-contextual-menu/index.js +26 -16
- package/dist/collection/components/z-contextual-menu/styles.css +16 -5
- package/dist/collection/components/z-popover/index.js +381 -166
- package/dist/collection/components/z-popover/styles.css +91 -180
- package/dist/collection/components/z-table/z-table-header/index.js +10 -16
- package/dist/collection/components/z-table/z-table-header/styles.css +7 -1
- package/dist/collection/deprecated/z-popover-deprecated/index.js +489 -0
- package/dist/collection/deprecated/z-popover-deprecated/styles.css +134 -0
- package/dist/collection/deprecated/z-tooltip-deprecated/index.js +379 -0
- package/dist/collection/deprecated/z-tooltip-deprecated/styles.css +128 -0
- package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +2 -2
- package/dist/collection/snowflakes/myz/card/z-myz-card-info/styles.css +1 -1
- package/dist/esm/{index-46ca649a.js → index-c1ce8cab.js} +17 -46
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{utils-5d5963ef.js → utils-99c70c57.js} +2 -2
- package/dist/esm/utils-fa9f38ec.js +2701 -0
- package/dist/esm/web-components-library.js +1 -1
- package/dist/esm/z-app-switcher_9.entry.js +724 -0
- package/dist/esm/z-aria-alert.entry.js +1 -1
- package/dist/esm/z-avatar.entry.js +1 -1
- package/dist/esm/z-button-deprecated.entry.js +1 -1
- package/dist/esm/z-button.entry.js +40 -0
- package/dist/esm/z-card.entry.js +65 -0
- package/dist/esm/z-carousel.entry.js +20 -0
- package/dist/esm/z-chip.entry.js +2 -2
- package/dist/esm/z-combobox.entry.js +2 -2
- package/dist/esm/z-contextual-menu.entry.js +19 -8
- package/dist/esm/z-cookiebar.entry.js +1 -1
- package/dist/esm/z-date-picker.entry.js +9 -2700
- package/dist/esm/z-file-upload.entry.js +2 -2
- package/dist/esm/z-file.entry.js +10 -9
- package/dist/esm/z-footer.entry.js +1 -1
- package/dist/esm/z-ghost-loading.entry.js +15 -0
- package/dist/esm/z-input-deprecated.entry.js +2 -2
- package/dist/esm/z-input-label_2.entry.js +2 -2
- package/dist/esm/z-list-group.entry.js +1 -1
- package/dist/esm/z-list_2.entry.js +1 -1
- package/dist/esm/z-menu-dropdown_2.entry.js +2 -2
- package/dist/esm/z-messages-pocket.entry.js +1 -1
- package/dist/esm/z-modal-login.entry.js +1 -1
- package/dist/esm/z-myz-card-alert.entry.js +1 -1
- package/dist/esm/z-myz-card-dictionary.entry.js +1 -1
- package/dist/esm/z-myz-card-footer.entry.js +1 -1
- package/dist/esm/z-myz-card-info.entry.js +4 -4
- package/dist/esm/z-myz-card_4.entry.js +1 -1
- package/dist/esm/z-myz-list-item.entry.js +2 -2
- package/dist/esm/z-myz-topbar.entry.js +1 -1
- package/dist/esm/z-navigation-tab-link.entry.js +1 -1
- package/dist/esm/z-navigation-tab.entry.js +1 -1
- package/dist/esm/z-navigation-tabs.entry.js +1 -1
- package/dist/esm/z-offcanvas.entry.js +59 -0
- package/dist/esm/z-otp.entry.js +1 -1
- package/dist/esm/z-pagination-bar.entry.js +2 -2
- package/dist/esm/z-pocket_3.entry.js +2 -2
- package/dist/esm/z-popover-deprecated.entry.js +334 -0
- package/dist/esm/z-popover.entry.js +305 -98
- package/dist/esm/z-section-title.entry.js +1 -1
- package/dist/esm/z-skip-to-content.entry.js +2 -2
- package/dist/esm/z-slideshow.entry.js +2 -2
- package/dist/esm/z-status-tag.entry.js +1 -1
- package/dist/esm/z-table-cell.entry.js +1 -1
- package/dist/esm/z-table-header.entry.js +8 -11
- package/dist/esm/z-table-row.entry.js +1 -1
- package/dist/esm/z-table.entry.js +1 -1
- package/dist/esm/z-toast-notification-list.entry.js +1 -1
- package/dist/esm/z-toast-notification.entry.js +1 -1
- package/dist/esm/z-toggle-switch.entry.js +2 -2
- package/dist/esm/z-tooltip-deprecated.entry.js +270 -0
- package/dist/esm/z-tooltip.entry.js +9 -252
- package/dist/types/beans/index.d.ts +7 -33
- package/dist/types/components/date-picker/utils.d.ts +3 -0
- package/dist/types/components/{z-date-picker → date-picker/z-date-picker}/index.d.ts +3 -8
- package/dist/types/components/date-picker/z-range-picker/index.d.ts +43 -0
- package/dist/types/components/file-upload/z-file/index.d.ts +3 -3
- package/dist/types/components/notification/z-tooltip/index.d.ts +14 -29
- package/dist/types/components/z-contextual-menu/index.d.ts +8 -4
- package/dist/types/components/z-popover/index.d.ts +57 -28
- package/dist/types/components/z-table/z-table-header/index.d.ts +2 -1
- package/dist/types/components.d.ts +210 -35
- package/dist/types/deprecated/z-popover-deprecated/index.d.ts +57 -0
- package/dist/types/deprecated/z-tooltip-deprecated/index.d.ts +41 -0
- package/dist/web-components-library/index.esm.js +1 -1
- package/dist/web-components-library/{p-4af112a7.entry.js → p-053846df.entry.js} +1 -1
- package/dist/web-components-library/{p-e2102da3.entry.js → p-0f6edb58.entry.js} +1 -1
- package/dist/web-components-library/p-10be0462.entry.js +1 -0
- package/dist/web-components-library/{p-b15efba3.entry.js → p-15fa8ca4.entry.js} +1 -1
- package/dist/web-components-library/{p-02ea7e49.entry.js → p-1a76a57d.entry.js} +1 -1
- package/{www/build/p-1f73a6d8.entry.js → dist/web-components-library/p-1b1717c9.entry.js} +1 -1
- package/{www/build/p-3edbd35c.entry.js → dist/web-components-library/p-1d5aa37b.entry.js} +1 -1
- package/dist/web-components-library/{p-9074e1a5.entry.js → p-1eb357e8.entry.js} +1 -1
- package/dist/web-components-library/{p-57d1acdc.entry.js → p-28e4abc4.entry.js} +1 -1
- package/dist/web-components-library/p-41f33f7b.entry.js +1 -0
- package/dist/web-components-library/{p-d33fea26.entry.js → p-46aecb12.entry.js} +1 -1
- package/dist/web-components-library/{p-63ccb013.entry.js → p-4be52491.entry.js} +1 -1
- package/dist/web-components-library/{p-55ddbfe9.entry.js → p-4d6f2f01.entry.js} +1 -1
- package/dist/web-components-library/p-514719d2.entry.js +1 -0
- package/dist/web-components-library/p-53dade4b.entry.js +16 -0
- package/{www/build/p-df4e963b.entry.js → dist/web-components-library/p-55f09348.entry.js} +1 -1
- package/dist/web-components-library/p-5789bbe7.entry.js +1 -0
- package/dist/web-components-library/{p-de25c7f0.entry.js → p-5dcbba4e.entry.js} +1 -1
- package/dist/web-components-library/{p-9f9e4266.entry.js → p-659fc25e.entry.js} +1 -1
- package/dist/web-components-library/{p-8fbc2ce9.entry.js → p-6bbd53ec.entry.js} +1 -1
- package/dist/web-components-library/{p-5be162d5.entry.js → p-6c52ed1b.entry.js} +1 -1
- package/dist/web-components-library/p-78df5dbf.entry.js +1 -0
- package/dist/web-components-library/{p-b9da171f.js → p-7f1cc90f.js} +1 -1
- package/dist/web-components-library/{p-0f17db30.entry.js → p-805af37b.entry.js} +1 -1
- package/dist/web-components-library/p-870dabdc.entry.js +1 -0
- package/dist/web-components-library/{p-43329b81.entry.js → p-897f9491.entry.js} +1 -1
- package/dist/web-components-library/{p-3c111c2a.entry.js → p-8ce4b2c4.entry.js} +1 -1
- package/dist/web-components-library/p-8cf3798f.entry.js +1 -0
- package/dist/web-components-library/p-8ddbbe24.entry.js +1 -0
- package/dist/web-components-library/{p-dffdf60a.entry.js → p-91ec5eb4.entry.js} +1 -1
- package/dist/web-components-library/{p-292bc0c4.entry.js → p-92895bce.entry.js} +1 -1
- package/dist/web-components-library/p-970bd07c.entry.js +1 -0
- package/dist/web-components-library/{p-6c6b4e80.entry.js → p-990b8236.entry.js} +1 -1
- package/dist/web-components-library/{p-51cdabeb.entry.js → p-99a562cb.entry.js} +1 -1
- package/dist/web-components-library/p-b359a3b4.entry.js +1 -0
- package/dist/web-components-library/p-b6cd034b.js +1 -0
- package/dist/web-components-library/{p-edb8d2ab.entry.js → p-b9cc2dfc.entry.js} +1 -1
- package/dist/web-components-library/p-bfc78a89.entry.js +1 -0
- package/dist/web-components-library/{p-d995d9dc.entry.js → p-c042e745.entry.js} +1 -1
- package/dist/web-components-library/{p-ccdebe3f.entry.js → p-c8383456.entry.js} +1 -1
- package/dist/web-components-library/{p-0e256fdc.entry.js → p-caa21a6f.entry.js} +1 -1
- package/{www/build/p-bfe5693d.entry.js → dist/web-components-library/p-cd88cead.entry.js} +1 -1
- package/dist/web-components-library/p-d04f3cb6.entry.js +1 -0
- package/{www/build/p-9a5ee6c2.entry.js → dist/web-components-library/p-d6361790.entry.js} +1 -1
- package/{www/build/p-69ef6ddc.entry.js → dist/web-components-library/p-dd0efdbf.entry.js} +1 -1
- package/dist/web-components-library/p-e007cd0b.entry.js +1 -0
- package/dist/web-components-library/{p-0a0aee35.entry.js → p-e74b3fd9.entry.js} +1 -1
- package/{www/build/p-d97a2db9.entry.js → dist/web-components-library/p-eca4cb15.entry.js} +1 -1
- package/dist/web-components-library/p-ed1cd6b1.js +1 -0
- package/dist/web-components-library/p-f26251dd.entry.js +1 -0
- package/dist/web-components-library/p-f61fd81e.entry.js +1 -0
- package/dist/web-components-library/{p-1727c1c8.entry.js → p-f78d6123.entry.js} +1 -1
- package/dist/web-components-library/p-fbfaa699.entry.js +1 -0
- package/dist/web-components-library/{p-ba29bc12.entry.js → p-fdd91263.entry.js} +1 -1
- package/dist/web-components-library/{p-fe927bf4.entry.js → p-ff4a0f6f.entry.js} +1 -1
- package/dist/web-components-library/web-components-library.esm.js +1 -1
- package/package.json +1 -1
- package/react/components.d.ts +3 -0
- package/react/components.js +5 -2
- package/react/components.js.map +1 -1
- package/src-react/index.ts +1 -0
- package/www/build/index.esm.js +1 -1
- package/www/build/{p-4af112a7.entry.js → p-053846df.entry.js} +1 -1
- package/www/build/{p-e2102da3.entry.js → p-0f6edb58.entry.js} +1 -1
- package/www/build/p-10be0462.entry.js +1 -0
- package/www/build/{p-b15efba3.entry.js → p-15fa8ca4.entry.js} +1 -1
- package/www/build/{p-02ea7e49.entry.js → p-1a76a57d.entry.js} +1 -1
- package/{dist/web-components-library/p-1f73a6d8.entry.js → www/build/p-1b1717c9.entry.js} +1 -1
- package/{dist/web-components-library/p-3edbd35c.entry.js → www/build/p-1d5aa37b.entry.js} +1 -1
- package/www/build/{p-9074e1a5.entry.js → p-1eb357e8.entry.js} +1 -1
- package/www/build/{p-57d1acdc.entry.js → p-28e4abc4.entry.js} +1 -1
- package/www/build/p-41f33f7b.entry.js +1 -0
- package/www/build/{p-d33fea26.entry.js → p-46aecb12.entry.js} +1 -1
- package/www/build/{p-63ccb013.entry.js → p-4be52491.entry.js} +1 -1
- package/www/build/{p-55ddbfe9.entry.js → p-4d6f2f01.entry.js} +1 -1
- package/www/build/p-514719d2.entry.js +1 -0
- package/www/build/p-53dade4b.entry.js +16 -0
- package/{dist/web-components-library/p-df4e963b.entry.js → www/build/p-55f09348.entry.js} +1 -1
- package/www/build/p-5789bbe7.entry.js +1 -0
- package/www/build/{p-de25c7f0.entry.js → p-5dcbba4e.entry.js} +1 -1
- package/www/build/{p-9f9e4266.entry.js → p-659fc25e.entry.js} +1 -1
- package/www/build/{p-8fbc2ce9.entry.js → p-6bbd53ec.entry.js} +1 -1
- package/www/build/{p-5be162d5.entry.js → p-6c52ed1b.entry.js} +1 -1
- package/www/build/p-78df5dbf.entry.js +1 -0
- package/www/build/{p-b9da171f.js → p-7f1cc90f.js} +1 -1
- package/www/build/{p-0f17db30.entry.js → p-805af37b.entry.js} +1 -1
- package/www/build/p-870dabdc.entry.js +1 -0
- package/www/build/{p-43329b81.entry.js → p-897f9491.entry.js} +1 -1
- package/www/build/{p-3c111c2a.entry.js → p-8ce4b2c4.entry.js} +1 -1
- package/www/build/p-8cf3798f.entry.js +1 -0
- package/www/build/p-8ddbbe24.entry.js +1 -0
- package/www/build/{p-dffdf60a.entry.js → p-91ec5eb4.entry.js} +1 -1
- package/www/build/{p-292bc0c4.entry.js → p-92895bce.entry.js} +1 -1
- package/www/build/p-970bd07c.entry.js +1 -0
- package/www/build/p-975e9d42.js +129 -0
- package/www/build/{p-6c6b4e80.entry.js → p-990b8236.entry.js} +1 -1
- package/www/build/{p-51cdabeb.entry.js → p-99a562cb.entry.js} +1 -1
- package/www/build/p-b359a3b4.entry.js +1 -0
- package/www/build/p-b6cd034b.js +1 -0
- package/www/build/{p-edb8d2ab.entry.js → p-b9cc2dfc.entry.js} +1 -1
- package/www/build/p-bfc78a89.entry.js +1 -0
- package/www/build/{p-d995d9dc.entry.js → p-c042e745.entry.js} +1 -1
- package/www/build/{p-ccdebe3f.entry.js → p-c8383456.entry.js} +1 -1
- package/www/build/{p-0e256fdc.entry.js → p-caa21a6f.entry.js} +1 -1
- package/{dist/web-components-library/p-bfe5693d.entry.js → www/build/p-cd88cead.entry.js} +1 -1
- package/www/build/p-d04f3cb6.entry.js +1 -0
- package/{dist/web-components-library/p-9a5ee6c2.entry.js → www/build/p-d6361790.entry.js} +1 -1
- package/{dist/web-components-library/p-69ef6ddc.entry.js → www/build/p-dd0efdbf.entry.js} +1 -1
- package/www/build/p-e007cd0b.entry.js +1 -0
- package/www/build/{p-0a0aee35.entry.js → p-e74b3fd9.entry.js} +1 -1
- package/{dist/web-components-library/p-d97a2db9.entry.js → www/build/p-eca4cb15.entry.js} +1 -1
- package/www/build/p-ed1cd6b1.js +1 -0
- package/www/build/p-f26251dd.entry.js +1 -0
- package/www/build/p-f61fd81e.entry.js +1 -0
- package/www/build/{p-1727c1c8.entry.js → p-f78d6123.entry.js} +1 -1
- package/www/build/p-fbfaa699.entry.js +1 -0
- package/www/build/p-fcff1237.css +812 -0
- package/www/build/{p-ba29bc12.entry.js → p-fdd91263.entry.js} +1 -1
- package/www/build/{p-fe927bf4.entry.js → p-ff4a0f6f.entry.js} +1 -1
- package/www/build/web-components-library.esm.js +1 -1
- package/www/index.html +6 -70
- package/dist/cjs/z-app-switcher_11.cjs.entry.js +0 -377
- package/dist/cjs/z-input_2.cjs.entry.js +0 -228
- package/dist/esm/z-app-switcher_11.entry.js +0 -363
- package/dist/esm/z-input_2.entry.js +0 -223
- package/dist/web-components-library/p-0d29d851.entry.js +0 -1
- package/dist/web-components-library/p-0ef6c549.entry.js +0 -1
- package/dist/web-components-library/p-20d62443.entry.js +0 -1
- package/dist/web-components-library/p-562e2d52.entry.js +0 -1
- package/dist/web-components-library/p-5eacbfc7.entry.js +0 -1
- package/dist/web-components-library/p-6218514a.entry.js +0 -1
- package/dist/web-components-library/p-71accd8e.entry.js +0 -1
- package/dist/web-components-library/p-7c6d4440.entry.js +0 -1
- package/dist/web-components-library/p-93cddf62.entry.js +0 -1
- package/dist/web-components-library/p-9f5d707a.js +0 -1
- package/dist/web-components-library/p-a8875b97.entry.js +0 -16
- package/dist/web-components-library/p-e2431b92.entry.js +0 -1
- package/www/build/p-0d29d851.entry.js +0 -1
- package/www/build/p-0ef6c549.entry.js +0 -1
- package/www/build/p-20d62443.entry.js +0 -1
- package/www/build/p-562e2d52.entry.js +0 -1
- package/www/build/p-5eacbfc7.entry.js +0 -1
- package/www/build/p-6218514a.entry.js +0 -1
- package/www/build/p-71accd8e.entry.js +0 -1
- package/www/build/p-7c6d4440.entry.js +0 -1
- package/www/build/p-88b56b6e.css +0 -1
- package/www/build/p-93cddf62.entry.js +0 -1
- package/www/build/p-9f5d707a.js +0 -1
- package/www/build/p-a8875b97.entry.js +0 -16
- package/www/build/p-e2431b92.entry.js +0 -1
- package/www/build/p-f01941e6.js +0 -1
|
@@ -1,127 +1,334 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h,
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { a as getElementTree } from './utils-5d5963ef.js';
|
|
5
|
-
import './_commonjsHelpers-9943807e.js';
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-90e18641.js';
|
|
2
|
+
import { P as PopoverPositions, q as KeyboardKeys } from './index-c1ce8cab.js';
|
|
3
|
+
import { a as getElementTree } from './utils-99c70c57.js';
|
|
6
4
|
import './breakpoints-c386984e.js';
|
|
7
5
|
|
|
8
|
-
const stylesCss = "
|
|
6
|
+
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;align-items:center;justify-content:center;padding:var(--z-popover-padding);min-width:calc(var(--space-unit) * 8);min-height:calc(var(--space-unit) * 4);color:var(--z-popover-theme--text);fill:currentColor;font-family:var(--font-family-sans);text-align:center;border-radius:var(--border-radius-small);background:var(--z-popover-theme--surface);filter:var(--z-popover-shadow-filter)}: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));display:block;content:\"\";position:absolute;width:var(--arrow-size);height:var(--arrow-size);background:var(--z-popover-theme--surface);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(*){flex:1 auto;overflow:auto}";
|
|
9
7
|
|
|
8
|
+
const documentElement = document.documentElement;
|
|
9
|
+
function getParentElement(element) {
|
|
10
|
+
if (element.parentNode.host) {
|
|
11
|
+
return element.parentNode.host;
|
|
12
|
+
}
|
|
13
|
+
return element.parentNode;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Find the closest scrollable parent of a node.
|
|
17
|
+
*
|
|
18
|
+
* @param {Element} element The node
|
|
19
|
+
*/
|
|
20
|
+
function findScrollableParent(element) {
|
|
21
|
+
let parent = getParentElement(element);
|
|
22
|
+
while (parent && parent !== documentElement) {
|
|
23
|
+
const { overflow, overflowX, overflowY } = window.getComputedStyle(parent);
|
|
24
|
+
if (overflow === "hidden" ||
|
|
25
|
+
overflowY === "hidden" ||
|
|
26
|
+
overflowX === "hidden") {
|
|
27
|
+
return parent;
|
|
28
|
+
}
|
|
29
|
+
if ((parent.scrollHeight > parent.clientHeight &&
|
|
30
|
+
overflow !== "visible" &&
|
|
31
|
+
overflowY !== "visible") ||
|
|
32
|
+
(parent.scrollWidth > parent.clientWidth &&
|
|
33
|
+
overflow !== "visible" &&
|
|
34
|
+
overflowX !== "visible")) {
|
|
35
|
+
return parent;
|
|
36
|
+
}
|
|
37
|
+
parent = getParentElement(parent);
|
|
38
|
+
}
|
|
39
|
+
return documentElement;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Calculate computed offset.
|
|
43
|
+
* It includes matrix transformations.
|
|
44
|
+
* @param element The target element.
|
|
45
|
+
* @param targetParentOffset The relative offset parent.
|
|
46
|
+
* @return A client rect object.
|
|
47
|
+
*/
|
|
48
|
+
function computeOffset(element, targetParentOffset) {
|
|
49
|
+
const rect = element.getBoundingClientRect();
|
|
50
|
+
const width = rect.width;
|
|
51
|
+
const height = rect.height;
|
|
52
|
+
let top = 0;
|
|
53
|
+
let left = 0;
|
|
54
|
+
let offsetParent = element;
|
|
55
|
+
while (offsetParent && offsetParent != targetParentOffset) {
|
|
56
|
+
left += offsetParent.offsetLeft;
|
|
57
|
+
// document.body sometimes has offsetTop == 0 but still has an
|
|
58
|
+
// offset because of children margins!
|
|
59
|
+
if (offsetParent === document.body) {
|
|
60
|
+
top += offsetParent.getBoundingClientRect().top + window.scrollY;
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
top += offsetParent.offsetTop;
|
|
64
|
+
}
|
|
65
|
+
if (window.DOMMatrix) {
|
|
66
|
+
const style = window.getComputedStyle(offsetParent);
|
|
67
|
+
const transform = style.transform || style.webkitTransform;
|
|
68
|
+
const domMatrix = new DOMMatrix(transform);
|
|
69
|
+
if (domMatrix) {
|
|
70
|
+
left += domMatrix.m41;
|
|
71
|
+
if (offsetParent !== document.body) {
|
|
72
|
+
top += domMatrix.m42;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
if (!offsetParent.offsetParent) {
|
|
77
|
+
break;
|
|
78
|
+
}
|
|
79
|
+
offsetParent = offsetParent.offsetParent;
|
|
80
|
+
}
|
|
81
|
+
let parentWidth;
|
|
82
|
+
let parentHeight;
|
|
83
|
+
if (offsetParent === document.body) {
|
|
84
|
+
parentWidth = window.innerWidth;
|
|
85
|
+
parentHeight = window.innerHeight;
|
|
86
|
+
}
|
|
87
|
+
else {
|
|
88
|
+
parentWidth = offsetParent.offsetWidth;
|
|
89
|
+
parentHeight = offsetParent.offsetHeight;
|
|
90
|
+
}
|
|
91
|
+
const right = parentWidth - left - rect.width;
|
|
92
|
+
const bottom = parentHeight - top - rect.height;
|
|
93
|
+
return { top, right, bottom, left, width, height };
|
|
94
|
+
}
|
|
10
95
|
const ZPopover = class {
|
|
11
|
-
/**
|
|
12
|
-
* Constructor.
|
|
13
|
-
*/
|
|
14
96
|
constructor(hostRef) {
|
|
15
97
|
registerInstance(this, hostRef);
|
|
16
|
-
this.
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
98
|
+
this.positionChange = createEvent(this, "positionChange", 7);
|
|
99
|
+
this.openChange = createEvent(this, "openChange", 7);
|
|
100
|
+
/** Popover position. */
|
|
101
|
+
this.position = PopoverPositions.AUTO;
|
|
102
|
+
/**
|
|
103
|
+
* The open state of the popover.
|
|
104
|
+
*/
|
|
105
|
+
this.open = false;
|
|
106
|
+
/**
|
|
107
|
+
* Whether to show popover's arrow.
|
|
108
|
+
*/
|
|
26
109
|
this.showArrow = false;
|
|
27
|
-
/**
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
this.
|
|
31
|
-
|
|
110
|
+
/**
|
|
111
|
+
* Whether to center the popup on the main side (according to "position").
|
|
112
|
+
*/
|
|
113
|
+
this.center = false;
|
|
114
|
+
/**
|
|
115
|
+
* Whether the popover should be closed when the user clicks outside of it or hit "ESC".
|
|
116
|
+
*/
|
|
117
|
+
this.closable = true;
|
|
118
|
+
}
|
|
119
|
+
closePopoverWithKeyboard(e) {
|
|
120
|
+
if (this.closable && e.key === KeyboardKeys.ESC) {
|
|
121
|
+
this.open = false;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
handleOutsideClick(e) {
|
|
125
|
+
if (!this.closable) {
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
const tree = getElementTree(e.target);
|
|
129
|
+
const parent = tree.find((elem) => elem.nodeName.toLowerCase() === "z-popover");
|
|
130
|
+
if (!parent) {
|
|
131
|
+
this.open = false;
|
|
132
|
+
this.positionChange.emit({ position: this.currentPosition });
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
validatePosition(newValue) {
|
|
136
|
+
if (newValue &&
|
|
137
|
+
Object.values(PopoverPositions).every((position) => newValue !== position)) {
|
|
138
|
+
this.position = PopoverPositions.AUTO;
|
|
139
|
+
}
|
|
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 });
|
|
32
162
|
}
|
|
33
|
-
|
|
34
|
-
this.
|
|
35
|
-
isVisible: this.isVisible,
|
|
36
|
-
});
|
|
163
|
+
disconnectedCallback() {
|
|
164
|
+
cancelAnimationFrame(this.animationFrameRequestId);
|
|
37
165
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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 -
|
|
192
|
+
(boundingRect.top + boundingRect.height) +
|
|
193
|
+
scrollContainer.scrollTop;
|
|
194
|
+
const left = boundingRect.left - scrollContainer.scrollLeft;
|
|
195
|
+
const right = scrollingBoundingRect.width -
|
|
196
|
+
(boundingRect.left + boundingRect.width) +
|
|
197
|
+
scrollContainer.scrollLeft;
|
|
198
|
+
const overflowBottom = Math.max(0, scrollingBoundingRect.top +
|
|
199
|
+
scrollingBoundingRect.height -
|
|
200
|
+
window.innerHeight);
|
|
201
|
+
const overflowRight = Math.max(0, scrollingBoundingRect.left +
|
|
202
|
+
scrollingBoundingRect.width -
|
|
203
|
+
window.innerWidth);
|
|
204
|
+
const availableTop = Math.min(top, top + scrollingBoundingRect.top);
|
|
205
|
+
const availableBottom = Math.min(bottom, bottom - overflowBottom);
|
|
206
|
+
const availableLeft = Math.min(left, left + scrollingBoundingRect.left);
|
|
207
|
+
const availableRight = Math.min(right, right - overflowRight);
|
|
208
|
+
const availableHeight = availableTop + availableBottom + boundingRect.height;
|
|
209
|
+
const availableWidth = availableLeft + availableRight + boundingRect.width;
|
|
210
|
+
let position = this.currentPosition;
|
|
211
|
+
const positions = [];
|
|
212
|
+
if (this.position === PopoverPositions.AUTO) {
|
|
213
|
+
/**
|
|
214
|
+
* The `AUTO` position tries to place the popover in the 'safest' area,
|
|
215
|
+
* where there's more space available.
|
|
216
|
+
*/
|
|
217
|
+
if (availableLeft / availableWidth > 0.6) {
|
|
218
|
+
positions.push(PopoverPositions.LEFT);
|
|
52
219
|
}
|
|
53
|
-
else {
|
|
54
|
-
|
|
220
|
+
else if (availableLeft / availableWidth < 0.4) {
|
|
221
|
+
positions.push(PopoverPositions.RIGHT);
|
|
55
222
|
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
if (b > height) {
|
|
59
|
-
if (this.position.startsWith("below")) {
|
|
60
|
-
firstSide = "above";
|
|
223
|
+
if (availableTop / availableHeight > 0.9) {
|
|
224
|
+
positions.unshift(PopoverPositions.TOP);
|
|
61
225
|
}
|
|
62
|
-
else {
|
|
63
|
-
|
|
226
|
+
else if (availableTop / availableHeight > 0.6) {
|
|
227
|
+
positions.push(PopoverPositions.TOP);
|
|
64
228
|
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
if (r > width) {
|
|
68
|
-
if (this.position.startsWith("above") ||
|
|
69
|
-
this.position.startsWith("below")) {
|
|
70
|
-
secondSide = "left";
|
|
229
|
+
else if (availableTop / availableHeight < 0.1) {
|
|
230
|
+
positions.unshift(PopoverPositions.BOTTOM);
|
|
71
231
|
}
|
|
72
232
|
else {
|
|
73
|
-
|
|
233
|
+
positions.push(PopoverPositions.BOTTOM);
|
|
74
234
|
}
|
|
235
|
+
position = positions.join("_");
|
|
75
236
|
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
237
|
+
const style = this.host.style;
|
|
238
|
+
style.position = "absolute";
|
|
239
|
+
const offsetTop = boundingRect.top - relativeBoundingRect.top;
|
|
240
|
+
const offsetRight = boundingRect.right - relativeBoundingRect.right;
|
|
241
|
+
const offsetBottom = boundingRect.bottom - relativeBoundingRect.bottom;
|
|
242
|
+
const offsetLeft = boundingRect.left - relativeBoundingRect.left;
|
|
243
|
+
const offsetModifier = this.center ? 0.5 : 0;
|
|
244
|
+
const sizeModifier = this.center ? 0.5 : 0;
|
|
245
|
+
if (position === PopoverPositions.TOP ||
|
|
246
|
+
position === PopoverPositions.TOP_RIGHT) {
|
|
247
|
+
style.top = "auto";
|
|
248
|
+
style.right = "auto";
|
|
249
|
+
style.bottom = `${offsetBottom + boundingRect.height}px`;
|
|
250
|
+
style.left = `${offsetLeft + boundingRect.width * offsetModifier}px`;
|
|
251
|
+
style.maxHeight = `${availableTop}px`;
|
|
252
|
+
if (position === PopoverPositions.TOP_RIGHT) {
|
|
253
|
+
style.maxWidth = `${availableRight + boundingRect.width * sizeModifier}px`;
|
|
81
254
|
}
|
|
82
|
-
|
|
83
|
-
|
|
255
|
+
}
|
|
256
|
+
else if (position === PopoverPositions.TOP_LEFT) {
|
|
257
|
+
style.top = "auto";
|
|
258
|
+
style.right = `${offsetRight + boundingRect.width * offsetModifier}px`;
|
|
259
|
+
style.bottom = `${offsetBottom + boundingRect.height}px`;
|
|
260
|
+
style.left = "auto";
|
|
261
|
+
style.maxWidth = `${availableLeft}px`;
|
|
262
|
+
style.maxHeight = `${availableTop}px`;
|
|
263
|
+
}
|
|
264
|
+
else if (position === PopoverPositions.BOTTOM ||
|
|
265
|
+
position === PopoverPositions.BOTTOM_RIGHT) {
|
|
266
|
+
style.top = `${offsetTop + boundingRect.height}px`;
|
|
267
|
+
style.right = "auto";
|
|
268
|
+
style.bottom = "auto";
|
|
269
|
+
style.left = `${offsetLeft + boundingRect.width * offsetModifier}px`;
|
|
270
|
+
style.maxHeight = `${availableBottom}px`;
|
|
271
|
+
if (position === PopoverPositions.BOTTOM_RIGHT) {
|
|
272
|
+
style.maxWidth = `${availableRight + boundingRect.width * sizeModifier}px`;
|
|
84
273
|
}
|
|
85
274
|
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
closePopoverWithKeyboard(e) {
|
|
94
|
-
if (e.key === KeyboardKeys.ESC) {
|
|
95
|
-
this.closePopover();
|
|
275
|
+
else if (position === PopoverPositions.BOTTOM_LEFT) {
|
|
276
|
+
style.top = `${offsetTop + boundingRect.height}px`;
|
|
277
|
+
style.right = `${offsetRight + boundingRect.width * offsetModifier}px`;
|
|
278
|
+
style.bottom = "auto";
|
|
279
|
+
style.left = "auto";
|
|
280
|
+
style.maxWidth = `${availableLeft}px`;
|
|
281
|
+
style.maxHeight = `${availableBottom}px`;
|
|
96
282
|
}
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
this.isVisible ? this.closePopover() : this.openPopover();
|
|
283
|
+
else if (position === PopoverPositions.RIGHT ||
|
|
284
|
+
position === PopoverPositions.RIGHT_BOTTOM) {
|
|
285
|
+
style.top = `${offsetTop + boundingRect.height * offsetModifier}px`;
|
|
286
|
+
style.right = "auto";
|
|
287
|
+
style.bottom = "auto";
|
|
288
|
+
style.left = `${offsetLeft + boundingRect.width}px`;
|
|
289
|
+
style.maxWidth = `${availableRight}px`;
|
|
290
|
+
style.maxHeight = `${availableBottom + boundingRect.height * sizeModifier}px`;
|
|
106
291
|
}
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
292
|
+
else if (position === PopoverPositions.RIGHT_TOP) {
|
|
293
|
+
style.top = "auto";
|
|
294
|
+
style.right = "auto";
|
|
295
|
+
style.bottom = `${offsetBottom + boundingRect.height * offsetModifier}px`;
|
|
296
|
+
style.left = `${offsetLeft + boundingRect.width}px`;
|
|
297
|
+
style.maxWidth = `${availableRight}px`;
|
|
298
|
+
style.maxHeight = `${availableTop + boundingRect.height * sizeModifier}px`;
|
|
299
|
+
}
|
|
300
|
+
else if (position === PopoverPositions.LEFT ||
|
|
301
|
+
position === PopoverPositions.LEFT_BOTTOM) {
|
|
302
|
+
style.top = `${offsetTop + boundingRect.height * offsetModifier}px`;
|
|
303
|
+
style.right = `${offsetRight + boundingRect.width}px`;
|
|
304
|
+
style.bottom = "auto";
|
|
305
|
+
style.left = "auto";
|
|
306
|
+
style.maxWidth = `${availableLeft}px`;
|
|
307
|
+
style.maxHeight = `${availableBottom + boundingRect.height * sizeModifier}px`;
|
|
113
308
|
}
|
|
309
|
+
else if (position === PopoverPositions.LEFT_TOP) {
|
|
310
|
+
style.top = "auto";
|
|
311
|
+
style.right = `${offsetRight + boundingRect.width}px`;
|
|
312
|
+
style.bottom = `${offsetBottom + boundingRect.height * offsetModifier}px`;
|
|
313
|
+
style.left = "auto";
|
|
314
|
+
style.maxWidth = `${availableLeft}px`;
|
|
315
|
+
style.maxHeight = `${availableTop + boundingRect.height * sizeModifier}px`;
|
|
316
|
+
}
|
|
317
|
+
this.currentPosition = position || this.position;
|
|
318
|
+
this.host.setAttribute('current-position', this.currentPosition);
|
|
319
|
+
}
|
|
320
|
+
componentWillLoad() {
|
|
321
|
+
this.validatePosition(this.position);
|
|
322
|
+
this.onOpen();
|
|
114
323
|
}
|
|
115
324
|
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" }))));
|
|
325
|
+
return h("slot", null);
|
|
124
326
|
}
|
|
327
|
+
get host() { return getElement(this); }
|
|
328
|
+
static get watchers() { return {
|
|
329
|
+
"position": ["validatePosition"],
|
|
330
|
+
"open": ["onOpen"]
|
|
331
|
+
}; }
|
|
125
332
|
};
|
|
126
333
|
ZPopover.style = stylesCss;
|
|
127
334
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, g as getElement } from './index-90e18641.js';
|
|
2
|
-
import {
|
|
2
|
+
import { r as ZSectionTitleDividerPositions, b as DividerSize } from './index-c1ce8cab.js';
|
|
3
3
|
|
|
4
4
|
const stylesCss = ":host{--z-section-title--divider-color:var(--red500);display:flex;flex-direction:column;align-items:flex-start;width:fit-content;font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host,:host ::slotted(*){box-sizing:border-box}::slotted(*){margin:0}::slotted([slot=\"secondary-title\"]){padding-bottom:calc(var(--space-unit) / 2);border-bottom:var(--border-size-large) solid var(--z-section-title--divider-color);text-transform:uppercase;font-size:var(--font-size-3);line-height:1.5rem}::slotted([slot=\"primary-title\"]){font-size:var(--font-size-6);line-height:2rem}:host([uppercase]) ::slotted([slot=\"primary-title\"]){text-transform:uppercase}@media (min-width: 1152px){::slotted([slot=\"primary-title\"]){font-size:var(--font-size-7);line-height:2.25rem}}";
|
|
5
5
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-90e18641.js';
|
|
2
|
-
import { a as getElementTree, h as handleKeyboardSubmit } from './utils-
|
|
3
|
-
import { T as ThemeVariant } from './index-
|
|
2
|
+
import { a as getElementTree, h as handleKeyboardSubmit } from './utils-99c70c57.js';
|
|
3
|
+
import { T as ThemeVariant } from './index-c1ce8cab.js';
|
|
4
4
|
import './breakpoints-c386984e.js';
|
|
5
5
|
|
|
6
6
|
const stylesCss = ".sc-z-skip-to-content-h{font-family:var(--font-family-sans);font-weight:var(--font-rg);position:absolute;left:-100%;background-color:#24f4ff;padding:calc(var(--space-unit) * 1.25) calc(var(--space-unit) * 3);height:60px;box-sizing:border-box}.skip-to-content-visible.sc-z-skip-to-content-h,.sc-z-skip-to-content-h:focus{position:static;display:block}.sc-z-skip-to-content-h>z-link.sc-z-skip-to-content{display:block;text-align:center}.sc-z-skip-to-content-h>z-link.link-invisible.sc-z-skip-to-content{height:0;width:0;overflow:hidden}.sc-z-skip-to-content-h>z-link.link-visible.sc-z-skip-to-content{height:initial;width:initial}.dark.sc-z-skip-to-content-h{background-color:var(--bg-grey-800);color:var(--color-white)}.light.sc-z-skip-to-content-h{background-color:var(--bg-white);color:var(--text-grey-800);border:2px solid var(--text-grey-800)}@media (min-width: 768px){.sc-z-skip-to-content-h>z-link.sc-z-skip-to-content{text-align:left}}@media (min-width: 1152px){.sc-z-skip-to-content-h>z-link.sc-z-skip-to-content{display:inline-block;padding:0 calc(var(--space-unit) * 3);border-right:1px solid var(--bg-grey-800)}.sc-z-skip-to-content-h>z-link.link-invisible.sc-z-skip-to-content{height:initial;width:initial;overflow:initial}.sc-z-skip-to-content-h>z-link.sc-z-skip-to-content:first-child{padding-left:0}.sc-z-skip-to-content-h>z-link.sc-z-skip-to-content:last-child,.dark.sc-z-skip-to-content-h>z-link.sc-z-skip-to-content:last-child,.light.sc-z-skip-to-content-h>z-link.sc-z-skip-to-content:last-child{border-right:none;padding-right:0}.dark.sc-z-skip-to-content-h>z-link.sc-z-skip-to-content{border-right:1px solid var(--bg-white)}}";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h, g as getElement } from './index-90e18641.js';
|
|
2
|
-
import { D as DeviceEnum } from './index-
|
|
3
|
-
import {
|
|
2
|
+
import { D as DeviceEnum } from './index-c1ce8cab.js';
|
|
3
|
+
import { d as convertJson, g as getDevice, h as handleKeyboardSubmit } from './utils-99c70c57.js';
|
|
4
4
|
import './breakpoints-c386984e.js';
|
|
5
5
|
|
|
6
6
|
const stylesCss = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg);display:block;width:inherit}:host>div{display:flex;flex-direction:column;width:inherit}main{position:relative;overflow:hidden;width:100%}main z-icon.scroll{position:absolute;top:50%;width:auto;cursor:pointer;transition:0.6s ease;margin:0 var(--space-unit);fill:var(--color-primary01);z-index:10}main .scroll.disabled{opacity:50%;pointer-events:none}main .scroll.right{right:0}#slides{display:flex;flex-wrap:wrap;transition:all 300ms;line-height:0px;overflow-y:hidden}footer{height:56px;width:100%;align-items:center;display:grid;grid-template-columns:2;grid-template-rows:2;grid-template-areas:\"center center\" \"left right\";border-top:var(--border-base) solid var(--color-surface02)}footer>div{align-items:center;width:100%}footer .footerCenter{grid-area:center}footer .footerLeft{grid-area:left}footer .footerRight{grid-area:right}footer .bulletContainer{display:flex;margin:0 auto;justify-content:center;align-items:center;min-height:60px}footer .bulletContainer .bullet{width:8px;height:8px;border-radius:50%;background-color:var(--bg-neutral-150);margin:var(--space-unit) 2px;pointer-events:none}footer .bulletContainer .bullet.selected{background-color:var(--bg-neutral-400)}@media only screen and (min-width: 768px){footer{grid-template-columns:1fr 2fr 1fr;grid-template-rows:1;grid-template-areas:\"left center right\";height:76px;border-top:var(--border-base) solid var(--color-surface02)}footer .bulletContainer .bullet{width:10px;height:10px;margin:var(--space-unit) 3px}}@media only screen and (min-width: 1025px){main z-icon.scroll{margin:0 10px}footer .bulletContainer .bullet{width:16px;height:16px;margin:var(--space-unit) calc(var(--space-unit) * 0.5);pointer-events:auto;cursor:pointer}}";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host } from './index-90e18641.js';
|
|
2
|
-
import { S as StatusTagStatus } from './index-
|
|
2
|
+
import { S as StatusTagStatus } from './index-c1ce8cab.js';
|
|
3
3
|
import { c as classnames } from './index-abb47b30.js';
|
|
4
4
|
import './_commonjsHelpers-9943807e.js';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-90e18641.js';
|
|
2
|
-
import { x as Size,
|
|
2
|
+
import { x as Size, f as ButtonVariantEnum, g as ButtonSizeEnum } from './index-c1ce8cab.js';
|
|
3
3
|
import { c as classnames } from './index-abb47b30.js';
|
|
4
4
|
import './_commonjsHelpers-9943807e.js';
|
|
5
5
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-90e18641.js';
|
|
2
2
|
import { c as classnames } from './index-abb47b30.js';
|
|
3
|
-
import { x as Size, y as SortDirectionEnum,
|
|
4
|
-
import { a as getElementTree } from './utils-
|
|
3
|
+
import { x as Size, y as SortDirectionEnum, f as ButtonVariantEnum, g as ButtonSizeEnum, P as PopoverPositions } from './index-c1ce8cab.js';
|
|
4
|
+
import { a as getElementTree } from './utils-99c70c57.js';
|
|
5
5
|
import './_commonjsHelpers-9943807e.js';
|
|
6
6
|
import './breakpoints-c386984e.js';
|
|
7
7
|
|
|
8
|
-
const stylesCss = ":host{display:table-cell;background-color:var(--gray50);border-bottom:var(--border-size-medium) solid var(--gray200);font-family:var(--dashboard-font);font-weight:var(--font-sb);text-align:start
|
|
8
|
+
const stylesCss = ":host{position:relative;display:table-cell;background-color:var(--gray50);border-bottom:var(--border-size-medium) solid var(--gray200);font-family:var(--dashboard-font);font-weight:var(--font-sb);text-align:start}.container{display:flex;align-items:flex-end}:host(.sortable){cursor:pointer}:host([padding=\"x-small\"]){padding:calc(var(--space-unit) * 0.5)}:host([padding=\"small\"]){padding:calc(var(--space-unit))}:host([padding=\"medium\"]){padding:calc(var(--space-unit) * 2)}:host([padding=\"large\"]){padding:calc(var(--space-unit) * 2.5)}:host([padding=\"special\"]){padding:0}.arrow{opacity:1;padding-left:var(--space-unit)}.popover-container{position:absolute;top:var(--space-unit);right:var(--space-unit);display:none}.popover-container z-popover{--z-popover-theme--surface:var(--gray200);position:relative;z-index:1}.popover-container.visible{display:block}:host(:hover) .popover-container{display:block}";
|
|
9
9
|
|
|
10
10
|
const ZTableHeader = class {
|
|
11
11
|
constructor(hostRef) {
|
|
@@ -16,7 +16,6 @@ const ZTableHeader = class {
|
|
|
16
16
|
/** [Optional] Default sort order */
|
|
17
17
|
this.defaultSortDirection = SortDirectionEnum.asc;
|
|
18
18
|
this.sortDirection = SortDirectionEnum.none;
|
|
19
|
-
this.isMenuOpened = false;
|
|
20
19
|
this.emitOnSort = this.emitOnSort.bind(this);
|
|
21
20
|
}
|
|
22
21
|
emitOnSort() {
|
|
@@ -44,13 +43,13 @@ const ZTableHeader = class {
|
|
|
44
43
|
this.emitOnSort();
|
|
45
44
|
}
|
|
46
45
|
handleMenuClick() {
|
|
47
|
-
this.
|
|
46
|
+
this.popover.open = !this.popover.open;
|
|
48
47
|
}
|
|
49
48
|
handleOutsideClick(e) {
|
|
50
49
|
const tree = getElementTree(e.target);
|
|
51
50
|
const parent = tree.find((elem) => elem.nodeName.toLowerCase() === "z-popover");
|
|
52
|
-
if (!parent) {
|
|
53
|
-
this.
|
|
51
|
+
if (!parent && this.popover) {
|
|
52
|
+
this.popover.open = false;
|
|
54
53
|
}
|
|
55
54
|
}
|
|
56
55
|
handleClickHeaders(e) {
|
|
@@ -71,11 +70,9 @@ const ZTableHeader = class {
|
|
|
71
70
|
render() {
|
|
72
71
|
return (h(Host, { class: classnames({
|
|
73
72
|
sortable: this.sortable,
|
|
74
|
-
}), onClick: () => this.handleSort() }, h("div", { class:
|
|
73
|
+
}), onClick: () => this.handleSort() }, h("div", { class: 'container' }, h("slot", null), this.sortable && this.sortDirection !== SortDirectionEnum.none && (h("z-icon", { name: this.sortDirection === SortDirectionEnum.asc
|
|
75
74
|
? "arrow-up"
|
|
76
|
-
: "arrow-down", class: "arrow" }))), this.showButton && (h("div", { class:
|
|
77
|
-
visible: this.isMenuOpened,
|
|
78
|
-
}) }, h("z-popover", { position: PopoverPosition["below-center"], "background-color": "gray200" }, h("z-button", { icon: "contextual-menu", variant: ButtonVariantEnum["tertiary"], size: ButtonSizeEnum["x-small"], slot: "trigger", onClick: () => this.handleMenuClick() }), h("div", { slot: "popover" }, h("slot", { name: "contextual-menu" })))))));
|
|
75
|
+
: "arrow-down", class: "arrow" }))), this.showButton && (h("div", { class: 'popover-container' }, h("z-button", { ref: (el) => (this.triggerButton = el), class: "contextual-popover-button", icon: "contextual-menu", variant: ButtonVariantEnum["tertiary"], size: ButtonSizeEnum["x-small"], onClick: () => this.handleMenuClick() }), h("z-popover", { ref: (el) => (this.popover = el), position: PopoverPositions.BOTTOM, center: true, bindTo: this.triggerButton }, h("div", null, h("slot", { name: "contextual-menu" })))))));
|
|
79
76
|
}
|
|
80
77
|
get host() { return getElement(this); }
|
|
81
78
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-90e18641.js';
|
|
2
|
-
import {
|
|
2
|
+
import { s as ZTableRowExpandedType } from './index-c1ce8cab.js';
|
|
3
3
|
|
|
4
4
|
const stylesCss = "z-table-row{display:table-row;font-family:var(--font-family-sans)}z-table-row[expanded-type=\"expandable\"]:hover{cursor:pointer}z-table-row[expanded-type=\"expandable\"]>z-table-cell:first-child,z-table-row[expanded-type=\"padding\"]>z-table-cell:first-child{--z-icon-width:16px;--z-icon-height:16px;width:24px;padding-left:16px;padding-right:0px;box-sizing:border-box;text-align:center;fill:var(--gray800);user-select:none}.z-icon-placeholder{width:24px;padding-right:0px}z-table-row[expanded-type=\"expandable\"]>z-table-cell:nth-child(2),z-table-row[expanded-type=\"padding\"]>z-table-cell:nth-child(2){padding-left:8px}z-table-row[expanded-type]:hover>z-table-cell:first-child{fill:var(--myz-blue-dark)}z-table-row[expanded]>z-table-cell{background-color:var(--gray50)}z-table-row[expanded]+z-table-expanded-row{display:table-row}z-table-row[expanded]>z-table-cell{border-bottom:none}";
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-90e18641.js';
|
|
2
|
-
import {
|
|
2
|
+
import { f as ButtonVariantEnum, g as ButtonSizeEnum } from './index-c1ce8cab.js';
|
|
3
3
|
import { m as mobileBreakpoint } from './breakpoints-c386984e.js';
|
|
4
4
|
|
|
5
5
|
const stylesCss = "z-table{overflow-x:auto;display:block;width:100%;font-family:var(--dashboard-font);font-weight:var(--font-rg);background-color:var(--color-white)}z-table>div.table{display:table;width:100%;border-collapse:separate}z-table>div.table-bordered>z-table-body>z-table-row>z-table-cell:not(:last-child),z-table>div.table-bordered>z-table-head>z-table-header-row>z-table-header:not(:last-child){border-right:var(--border-size-small) solid var(--bg-grey-200)}z-table>div>z-table-body>z-table-row[expandable]>z-table-cell:first-child,z-table>div>z-table-head>z-table-header-row[expandable]>z-table-header:first-child{border-right:none}z-table>div>z-table-body>z-table-row[expanded]>z-table-cell{background-color:var(--gray50)}z-table>div>z-table-body>z-table-row[expanded]+z-table-expanded-row{border-bottom:1px solid var(--gray200)}z-table>div.table-column-sticky>z-table-body>z-table-row>z-table-cell:first-child,z-table>div.table-column-sticky>z-table-head>z-table-header-row>z-table-header:first-child{position:sticky;left:0;box-shadow:1px 0 4px -1px rgba(66, 69, 72, 0.4);z-index:1}z-table>div.table-header-sticky>z-table-head>z-table-header-row>z-table-header{position:sticky;top:0;box-shadow:0 2px 3px -3px rgba(66, 69, 72, 0.4)}z-table>div.table-header-sticky>z-table-head>z-table-header-row>z-table-header{z-index:2}z-table>div.table-header-sticky>z-table-head>z-table-header-row>z-table-header:first-child,z-table>div.table-column-sticky>z-table-head>z-table-header-row>z-table-header:first-child{z-index:5}z-table-body{width:auto;background-color:var(--color-white)}z-table-empty-box{display:flex;flex-direction:column;flex-grow:1;border-bottom:var(--border-size-small) solid var(--bg-grey-200)}z-table-empty-box.bordered{border-left:var(--border-size-small) solid var(--bg-grey-200)}.error-message{margin-top:calc(var(--space-unit) * 2)}.table-content{display:flex;flex-direction:row;width:100%}.error-content{font-family:var(--dashboard-font);padding:calc(var(--space-unit) * 3);display:flex}.error-content>img{width:244px;height:188px;margin-right:calc(var(--space-unit) * 3)}@media only screen and (max-width: 768px){z-table>div.table-empty{display:none}.error-content{display:flex;flex-direction:column}.error-content>img{width:auto;height:auto}.text{padding:calc(var(--space-unit) * 3) 0}}";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-90e18641.js';
|
|
2
|
-
import {
|
|
2
|
+
import { u as ToastNotificationPositionsEnum } from './index-c1ce8cab.js';
|
|
3
3
|
|
|
4
4
|
const stylesCss = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg);position:fixed;display:flex;flex-direction:column;flex-wrap:nowrap;z-index:10000;margin-bottom:calc(var(--space-unit) * 2);margin-top:calc(var(--space-unit) * 2)}::slotted(z-toast-notification){width:100vw}::slotted(:not(:last-child)){margin-bottom:calc(var(--space-unit) * 1)}:host(.bottom-centre),:host(.bottom-right),:host(.bottom-left){justify-content:flex-end;align-items:flex-end;bottom:0}:host(.top-left),:host(.top-right),:host(.top-centre){justify-content:flex-start;align-items:flex-start;top:0}@media only screen and (min-width: 768px){:host{margin:calc(var(--space-unit) * 3)}:host(.top-centre){justify-content:flex-start;align-items:center;top:0;left:50%;transform:translateX(-50%)}:host(.top-left){justify-content:flex-start;align-items:flex-start;top:0;left:0}:host(.top-right){justify-content:flex-start;align-items:flex-end;top:0;right:0}:host(.bottom-centre){justify-content:flex-end;align-items:center;bottom:0;left:50%;transform:translateX(-50%)}:host(.bottom-right){justify-content:flex-end;align-items:flex-end;bottom:0;right:0}:host(.bottom-left){justify-content:flex-end;align-items:flex-start;bottom:0;left:0}::slotted(z-toast-notification){width:50vw}}@media only screen and (min-width: 1366px){:host{margin:calc(var(--space-unit) * 4)}::slotted(z-toast-notification){width:33vw}}";
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-90e18641.js';
|
|
2
|
-
import {
|
|
2
|
+
import { t as ToastNotificationTransitionsEnum } from './index-c1ce8cab.js';
|
|
3
3
|
import { m as mobileBreakpoint } from './breakpoints-c386984e.js';
|
|
4
4
|
import { h as hammer } from './hammer-c3266b17.js';
|
|
5
5
|
import './_commonjsHelpers-9943807e.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-90e18641.js';
|
|
2
|
-
import { r as randomId } from './utils-
|
|
3
|
-
import {
|
|
2
|
+
import { r as randomId } from './utils-99c70c57.js';
|
|
3
|
+
import { L as LabelPositions } from './index-c1ce8cab.js';
|
|
4
4
|
import './breakpoints-c386984e.js';
|
|
5
5
|
|
|
6
6
|
const stylesCss = ".sc-z-toggle-switch-h{font-family:var(--font-family-sans);font-weight:var(--font-rg);display:inline-flex;position:relative}label.sc-z-toggle-switch{display:flex;align-items:center;flex-direction:row;cursor:pointer}label.disabled.sc-z-toggle-switch{cursor:default}label.right.sc-z-toggle-switch{flex-direction:row-reverse}label.sc-z-toggle-switch>span.sc-z-toggle-switch:first-child{letter-spacing:0;color:var(--color-text01)}label.left.sc-z-toggle-switch>span.sc-z-toggle-switch:first-child{margin-right:var(--space-unit)}label.right.sc-z-toggle-switch>span.sc-z-toggle-switch:first-child{margin-left:var(--space-unit)}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch{display:flex;align-items:center}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch{top:1px;left:1px;height:18px;width:calc(var(--space-unit) * 4);border-radius:var(--space-unit);color:var(--gray500);background-color:var(--gray500);position:relative;cursor:pointer}label.sc-z-toggle-switch>span.container.disabled.sc-z-toggle-switch,label.sc-z-toggle-switch>span.container.checked.disabled.sc-z-toggle-switch{background-color:var(--color-disabled01);cursor:default}label.sc-z-toggle-switch>span.container.checked.disabled.sc-z-toggle-switch>span.circle.sc-z-toggle-switch>z-icon.sc-z-toggle-switch{fill:var(--color-disabled01)}label.sc-z-toggle-switch>span.container.checked.sc-z-toggle-switch{background-color:var(--color-primary01);fill:var(--color-primary01)}input.sc-z-toggle-switch:focus:focus-visible+label.sc-z-toggle-switch>span.container.sc-z-toggle-switch:not(.disabled){outline:none;box-shadow:var(--shadow-focus-primary)}input.sc-z-toggle-switch:focus:focus-visible+label.sc-z-toggle-switch>span.container.disabled.sc-z-toggle-switch{outline:none}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch:not(.disabled):hover{background-color:var(--color-hover-primary);fill:var(--color-hover-primary)}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch>span.circle.sc-z-toggle-switch{top:1px;left:1px;position:absolute;display:flex;align-items:center;justify-content:center;margin:0;height:calc(var(--space-unit) * 2);width:calc(var(--space-unit) * 2);border-radius:7px;background-color:var(--color-white);box-shadow:var(--shadow-1);transition:transform 0.3s ease}label.sc-z-toggle-switch>span.container.checked.sc-z-toggle-switch>span.circle.sc-z-toggle-switch{transform:translateX(calc(100% - 2px))}input[type=\"checkbox\"].sc-z-toggle-switch{position:absolute;opacity:0;z-index:-1;pointer-events:none}";
|