@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,236 +1,147 @@
|
|
|
1
1
|
:host {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
--z-popover-theme--surface: var(--color-surface01);
|
|
3
|
+
--z-popover-theme--text: var(--color-text01);
|
|
4
|
+
--z-popover-padding: 0;
|
|
5
|
+
--z-popover-shadow-filter: drop-shadow(0 1px 2px var(--shadow-color-base));
|
|
4
6
|
|
|
5
7
|
position: relative;
|
|
6
|
-
display:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
--
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
min-width: 64px;
|
|
17
|
-
min-height: 32px;
|
|
18
|
-
z-index: 999;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.popover-content-container.visible {
|
|
22
|
-
visibility: visible;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
/** Border-radius */
|
|
26
|
-
|
|
27
|
-
.popover-content-container.border-radius-none {
|
|
28
|
-
border-radius: 0;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.popover-content-container.border-radius-small {
|
|
8
|
+
display: none;
|
|
9
|
+
align-items: center;
|
|
10
|
+
justify-content: center;
|
|
11
|
+
padding: var(--z-popover-padding);
|
|
12
|
+
min-width: calc(var(--space-unit) * 8);
|
|
13
|
+
min-height: calc(var(--space-unit) * 4);
|
|
14
|
+
color: var(--z-popover-theme--text);
|
|
15
|
+
fill: currentColor;
|
|
16
|
+
font-family: var(--font-family-sans);
|
|
17
|
+
text-align: center;
|
|
32
18
|
border-radius: var(--border-radius-small);
|
|
19
|
+
background: var(--z-popover-theme--surface);
|
|
20
|
+
filter: var(--z-popover-shadow-filter);
|
|
33
21
|
}
|
|
34
22
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
/*
|
|
40
|
-
Box-shadow
|
|
41
|
-
*/
|
|
42
|
-
|
|
43
|
-
.popover-content-container.shadow-1 {
|
|
44
|
-
box-shadow: var(--shadow-1);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.popover-content-container.shadow-2 {
|
|
48
|
-
box-shadow: var(--shadow-2);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.popover-content-container.shadow-3 {
|
|
52
|
-
box-shadow: var(--shadow-3);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.popover-content-container.shadow-4 {
|
|
56
|
-
box-shadow: var(--shadow-4);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.popover-content-container.shadow-6 {
|
|
60
|
-
box-shadow: var(--shadow-6);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.popover-content-container.shadow-8 {
|
|
64
|
-
box-shadow: var(--shadow-8);
|
|
23
|
+
:host([open][current-position]),
|
|
24
|
+
:host([open="true"][current-position]) {
|
|
25
|
+
display: flex;
|
|
65
26
|
}
|
|
66
27
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
.popover-content-container.shadow-16 {
|
|
72
|
-
box-shadow: var(--shadow-16);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.popover-content-container.shadow-24 {
|
|
76
|
-
box-shadow: var(--shadow-24);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
/*
|
|
80
|
-
Popover-positions
|
|
81
|
-
*/
|
|
82
|
-
|
|
83
|
-
.popover-content-container.after-down {
|
|
84
|
-
top: 0;
|
|
85
|
-
left: calc(100% + var(--space-unit));
|
|
28
|
+
:host([center][current-position="top"]),
|
|
29
|
+
:host([center][current-position="bottom"]) {
|
|
30
|
+
transform: translateX(-50%);
|
|
86
31
|
}
|
|
87
32
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
left: calc(100% + var(--space-unit));
|
|
33
|
+
:host([center][current-position="right"]),
|
|
34
|
+
:host([center][current-position="left"]) {
|
|
91
35
|
transform: translateY(-50%);
|
|
92
36
|
}
|
|
93
37
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
left: calc(100% + var(--space-unit));
|
|
38
|
+
:host([current-position^="top"]) {
|
|
39
|
+
margin: 0 0 var(--space-unit);
|
|
97
40
|
}
|
|
98
41
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
top: calc(100% + var(--space-unit));
|
|
42
|
+
:host([current-position^="bottom"]) {
|
|
43
|
+
margin: var(--space-unit) 0 0;
|
|
102
44
|
}
|
|
103
45
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
top: calc(100% + var(--space-unit));
|
|
107
|
-
transform: translateX(-50%);
|
|
46
|
+
:host([current-position^="left"]) {
|
|
47
|
+
margin: 0 var(--space-unit) 0 0;
|
|
108
48
|
}
|
|
109
49
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
top: calc(100% + var(--space-unit));
|
|
50
|
+
:host([current-position^="right"]) {
|
|
51
|
+
margin: 0 0 0 var(--space-unit);
|
|
113
52
|
}
|
|
114
53
|
|
|
115
|
-
|
|
116
|
-
top: 0;
|
|
117
|
-
right: calc(100% + var(--space-unit));
|
|
118
|
-
}
|
|
54
|
+
/* Arrow style */
|
|
119
55
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
56
|
+
:host([current-position])::before {
|
|
57
|
+
--arrow-size: 6px;
|
|
58
|
+
--arrow-edge-offset: calc(100% - var(--space-unit) - (var(--arrow-size) / 2));
|
|
59
|
+
--arrow-center-x-offset: calc(50% - (var(--arrow-size) / 2));
|
|
60
|
+
--arrow-center-y-offset: calc(100% - (var(--arrow-size) / 2));
|
|
125
61
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
bottom: calc(100% + var(--space-unit));
|
|
62
|
+
display: block;
|
|
63
|
+
content: "";
|
|
64
|
+
position: absolute;
|
|
65
|
+
width: var(--arrow-size);
|
|
66
|
+
height: var(--arrow-size);
|
|
67
|
+
background: var(--z-popover-theme--surface);
|
|
68
|
+
transform: rotate(45deg);
|
|
134
69
|
}
|
|
135
70
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
transform: translateX(-50%);
|
|
71
|
+
:host([show-arrow="false"])::before,
|
|
72
|
+
:host(:not([show-arrow]))::before {
|
|
73
|
+
display: none;
|
|
140
74
|
}
|
|
141
75
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
bottom: calc(100% + var(--space-unit));
|
|
76
|
+
:host([current-position^="top"])::before {
|
|
77
|
+
top: var(--arrow-center-y-offset);
|
|
145
78
|
}
|
|
146
79
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
*/
|
|
150
|
-
.popover-content-container:before {
|
|
151
|
-
display: none;
|
|
152
|
-
position: absolute;
|
|
153
|
-
content: "";
|
|
154
|
-
width: 8px;
|
|
155
|
-
height: 8px;
|
|
156
|
-
z-index: -1;
|
|
157
|
-
background-color: inherit;
|
|
158
|
-
transform: rotate(45deg);
|
|
80
|
+
:host([current-position^="bottom"])::before {
|
|
81
|
+
bottom: var(--arrow-center-y-offset);
|
|
159
82
|
}
|
|
160
83
|
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
box-shadow: -1px 1px 1.5px var(--shadow-arrow-color);
|
|
84
|
+
:host([current-position="top"])::before,
|
|
85
|
+
:host([current-position="bottom"])::before {
|
|
86
|
+
right: var(--arrow-edge-offset);
|
|
165
87
|
}
|
|
166
88
|
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
box-shadow: -1px 1px 1.5px var(--shadow-arrow-color);
|
|
89
|
+
:host([current-position="right"])::before,
|
|
90
|
+
:host([current-position="left"])::before {
|
|
91
|
+
bottom: var(--arrow-edge-offset);
|
|
171
92
|
}
|
|
172
93
|
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
left: -4px;
|
|
176
|
-
box-shadow: -1px 1px 1.5px var(--shadow-arrow-color);
|
|
94
|
+
:host([current-position="right"])::before {
|
|
95
|
+
right: var(--arrow-center-y-offset);
|
|
177
96
|
}
|
|
178
97
|
|
|
179
|
-
|
|
180
|
-
left:
|
|
181
|
-
top: -4px;
|
|
182
|
-
box-shadow: -1px -1px 2px var(--shadow-arrow-below-color);
|
|
98
|
+
:host([current-position="left"])::before {
|
|
99
|
+
left: var(--arrow-center-y-offset);
|
|
183
100
|
}
|
|
184
101
|
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
box-shadow: -1px -1px 2px var(--shadow-arrow-below-color);
|
|
102
|
+
:host([current-position="top_right"])::before,
|
|
103
|
+
:host([current-position="bottom_right"])::before {
|
|
104
|
+
right: var(--arrow-edge-offset);
|
|
189
105
|
}
|
|
190
106
|
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
box-shadow: -1px -1px 2px var(--shadow-arrow-below-color);
|
|
107
|
+
:host([current-position="top_left"])::before,
|
|
108
|
+
:host([current-position="bottom_left"])::before {
|
|
109
|
+
left: var(--arrow-edge-offset);
|
|
195
110
|
}
|
|
196
111
|
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
box-shadow: 1px -1px 1.5px var(--shadow-arrow-color);
|
|
112
|
+
:host([current-position="right_top"])::before,
|
|
113
|
+
:host([current-position="left_top"])::before {
|
|
114
|
+
top: var(--arrow-edge-offset);
|
|
201
115
|
}
|
|
202
116
|
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
right: -
|
|
206
|
-
box-shadow: 1px -1px 1.5px var(--shadow-arrow-color);
|
|
117
|
+
:host([current-position="right_top"])::before,
|
|
118
|
+
:host([current-position="right_bottom"])::before {
|
|
119
|
+
right: var(--arrow-center-y-offset);
|
|
207
120
|
}
|
|
208
121
|
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
box-shadow: 1px -1px 1.5px var(--shadow-arrow-color);
|
|
122
|
+
:host([current-position="left_top"])::before,
|
|
123
|
+
:host([current-position="left_bottom"])::before {
|
|
124
|
+
left: var(--arrow-center-y-offset);
|
|
213
125
|
}
|
|
214
126
|
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
bottom: -
|
|
218
|
-
box-shadow: 1px 1px 1.5px var(--shadow-arrow-color);
|
|
127
|
+
:host([current-position="right_bottom"])::before,
|
|
128
|
+
:host([current-position="left_bottom"])::before {
|
|
129
|
+
bottom: var(--arrow-edge-offset);
|
|
219
130
|
}
|
|
220
131
|
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
132
|
+
:host([center][current-position="top"])::before,
|
|
133
|
+
:host([center][current-position="bottom"])::before {
|
|
134
|
+
right: auto;
|
|
135
|
+
left: var(--arrow-center-x-offset);
|
|
225
136
|
}
|
|
226
137
|
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
138
|
+
:host([center][current-position="right"])::before,
|
|
139
|
+
:host([center][current-position="left"])::before {
|
|
140
|
+
top: var(--arrow-center-x-offset);
|
|
141
|
+
bottom: auto;
|
|
231
142
|
}
|
|
232
143
|
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
144
|
+
::slotted(*) {
|
|
145
|
+
flex: 1 auto;
|
|
146
|
+
overflow: auto;
|
|
236
147
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Component, Element, Event, h, Host, Listen, Prop,
|
|
1
|
+
import { Component, Element, Event, h, Host, Listen, Prop, } from "@stencil/core";
|
|
2
2
|
import classNames from "classnames";
|
|
3
|
-
import { ButtonSizeEnum, ButtonVariantEnum,
|
|
3
|
+
import { ButtonSizeEnum, ButtonVariantEnum, PopoverPositions, Size, SortDirectionEnum, } from "../../../beans";
|
|
4
4
|
import { getElementTree } from "../../../utils/utils";
|
|
5
5
|
export class ZTableHeader {
|
|
6
6
|
constructor() {
|
|
@@ -9,7 +9,6 @@ export class ZTableHeader {
|
|
|
9
9
|
/** [Optional] Default sort order */
|
|
10
10
|
this.defaultSortDirection = SortDirectionEnum.asc;
|
|
11
11
|
this.sortDirection = SortDirectionEnum.none;
|
|
12
|
-
this.isMenuOpened = false;
|
|
13
12
|
this.emitOnSort = this.emitOnSort.bind(this);
|
|
14
13
|
}
|
|
15
14
|
emitOnSort() {
|
|
@@ -37,13 +36,13 @@ export class ZTableHeader {
|
|
|
37
36
|
this.emitOnSort();
|
|
38
37
|
}
|
|
39
38
|
handleMenuClick() {
|
|
40
|
-
this.
|
|
39
|
+
this.popover.open = !this.popover.open;
|
|
41
40
|
}
|
|
42
41
|
handleOutsideClick(e) {
|
|
43
42
|
const tree = getElementTree(e.target);
|
|
44
43
|
const parent = tree.find((elem) => elem.nodeName.toLowerCase() === "z-popover");
|
|
45
|
-
if (!parent) {
|
|
46
|
-
this.
|
|
44
|
+
if (!parent && this.popover) {
|
|
45
|
+
this.popover.open = false;
|
|
47
46
|
}
|
|
48
47
|
}
|
|
49
48
|
handleClickHeaders(e) {
|
|
@@ -65,17 +64,15 @@ export class ZTableHeader {
|
|
|
65
64
|
return (h(Host, { class: classNames({
|
|
66
65
|
sortable: this.sortable,
|
|
67
66
|
}), onClick: () => this.handleSort() },
|
|
68
|
-
h("div", { class:
|
|
67
|
+
h("div", { class: 'container' },
|
|
69
68
|
h("slot", null),
|
|
70
69
|
this.sortable && this.sortDirection !== SortDirectionEnum.none && (h("z-icon", { name: this.sortDirection === SortDirectionEnum.asc
|
|
71
70
|
? "arrow-up"
|
|
72
71
|
: "arrow-down", class: "arrow" }))),
|
|
73
|
-
this.showButton && (h("div", { class:
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
h("z-button", { icon: "contextual-menu", variant: ButtonVariantEnum["tertiary"], size: ButtonSizeEnum["x-small"], slot: "trigger", onClick: () => this.handleMenuClick() }),
|
|
78
|
-
h("div", { slot: "popover" },
|
|
72
|
+
this.showButton && (h("div", { class: 'popover-container' },
|
|
73
|
+
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() }),
|
|
74
|
+
h("z-popover", { ref: (el) => (this.popover = el), position: PopoverPositions.BOTTOM, center: true, bindTo: this.triggerButton },
|
|
75
|
+
h("div", null,
|
|
79
76
|
h("slot", { name: "contextual-menu" })))))));
|
|
80
77
|
}
|
|
81
78
|
static get is() { return "z-table-header"; }
|
|
@@ -208,9 +205,6 @@ export class ZTableHeader {
|
|
|
208
205
|
"defaultValue": "SortDirectionEnum.none"
|
|
209
206
|
}
|
|
210
207
|
}; }
|
|
211
|
-
static get states() { return {
|
|
212
|
-
"isMenuOpened": {}
|
|
213
|
-
}; }
|
|
214
208
|
static get events() { return [{
|
|
215
209
|
"method": "sort",
|
|
216
210
|
"name": "sort",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
:host {
|
|
2
|
+
position: relative;
|
|
2
3
|
display: table-cell;
|
|
3
4
|
background-color: var(--gray50);
|
|
4
5
|
border-bottom: var(--border-size-medium) solid var(--gray200);
|
|
5
6
|
font-family: var(--dashboard-font);
|
|
6
7
|
font-weight: var(--font-sb);
|
|
7
8
|
text-align: start;
|
|
8
|
-
position: relative;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
.container {
|
|
@@ -54,6 +54,12 @@ Contextual menu
|
|
|
54
54
|
display: none;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
+
.popover-container z-popover {
|
|
58
|
+
--z-popover-theme--surface: var(--gray200);
|
|
59
|
+
position: relative;
|
|
60
|
+
z-index: 1;
|
|
61
|
+
}
|
|
62
|
+
|
|
57
63
|
.popover-container.visible {
|
|
58
64
|
display: block;
|
|
59
65
|
}
|