@zanichelli/albe-web-components 5.0.1 → 5.3.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 +1868 -0
- package/dist/cjs/{index-5c16dc2b.js → index-a8bdcb9c.js} +28 -13
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{utils-64ac0753.js → utils-21d41d92.js} +17 -2
- package/dist/cjs/{utils-15c8b978.js → utils-eca6932d.js} +1 -1
- package/dist/cjs/web-components-library.cjs.js +1 -1
- package/dist/cjs/z-app-switcher_9.cjs.entry.js +244 -193
- 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 +1 -1
- package/dist/cjs/z-card.cjs.entry.js +1 -1
- 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 +2 -2
- package/dist/cjs/z-cookiebar.cjs.entry.js +1 -1
- package/dist/cjs/z-date-picker.cjs.entry.js +95 -26
- package/dist/cjs/z-file-upload.cjs.entry.js +2 -2
- package/dist/cjs/z-file.cjs.entry.js +2 -2
- package/dist/cjs/z-footer.cjs.entry.js +1 -1
- package/dist/cjs/z-info-reveal.cjs.entry.js +64 -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 +3 -3
- 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 +1 -1
- 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-pagination.cjs.entry.js +9 -6
- package/dist/cjs/z-pocket_3.cjs.entry.js +2 -2
- package/dist/cjs/z-popover-deprecated.cjs.entry.js +2 -2
- package/dist/cjs/z-popover.cjs.entry.js +26 -29
- 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 +3 -3
- 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 +26 -26
- package/dist/cjs/z-tooltip.cjs.entry.js +2 -2
- package/dist/collection/beans/index.js +28 -13
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/date-picker/styles.css +32 -26
- package/dist/collection/components/date-picker/utils.js +15 -1
- package/dist/collection/components/date-picker/z-date-picker/index.js +102 -27
- package/dist/collection/components/date-picker/z-range-picker/index.js +230 -207
- package/dist/collection/components/file-upload/z-file/index.js +1 -1
- package/dist/collection/components/inputs/z-input/index.js +97 -4
- package/dist/collection/components/notification/z-tooltip/index.js +3 -3
- package/dist/collection/components/z-contextual-menu/index.js +3 -3
- package/dist/collection/components/z-info-reveal/index.js +143 -0
- package/dist/collection/components/z-info-reveal/styles.css +97 -0
- package/dist/collection/components/z-pagination/index.js +9 -6
- package/dist/collection/components/z-popover/index.js +30 -32
- package/dist/collection/components/z-table/z-table-header/index.js +1 -1
- package/dist/collection/deprecated/z-input-deprecated/index.js +1 -1
- package/dist/collection/deprecated/z-tooltip-deprecated/index.js +27 -27
- package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +1 -1
- package/dist/esm/{index-3786a7ff.js → index-e5e2b27f.js} +29 -14
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{utils-a9a836d2.js → utils-34c0d609.js} +17 -3
- package/dist/esm/{utils-d49ae9f0.js → utils-9fa9c37c.js} +1 -1
- package/dist/esm/web-components-library.js +1 -1
- package/dist/esm/z-app-switcher_9.entry.js +244 -193
- 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 +1 -1
- package/dist/esm/z-card.entry.js +1 -1
- 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 +2 -2
- package/dist/esm/z-cookiebar.entry.js +1 -1
- package/dist/esm/z-date-picker.entry.js +95 -26
- package/dist/esm/z-file-upload.entry.js +2 -2
- package/dist/esm/z-file.entry.js +2 -2
- package/dist/esm/z-footer.entry.js +1 -1
- package/dist/esm/z-info-reveal.entry.js +60 -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 +3 -3
- 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 +1 -1
- package/dist/esm/z-otp.entry.js +1 -1
- package/dist/esm/z-pagination-bar.entry.js +2 -2
- package/dist/esm/z-pagination.entry.js +9 -6
- package/dist/esm/z-pocket_3.entry.js +2 -2
- package/dist/esm/z-popover-deprecated.entry.js +2 -2
- package/dist/esm/z-popover.entry.js +26 -29
- 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 +3 -3
- 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 +26 -26
- package/dist/esm/z-tooltip.entry.js +2 -2
- package/dist/types/beans/index.d.ts +28 -14
- package/dist/types/components/date-picker/utils.d.ts +4 -3
- package/dist/types/components/date-picker/z-date-picker/index.d.ts +6 -1
- package/dist/types/components/date-picker/z-range-picker/index.d.ts +16 -15
- package/dist/types/components/inputs/z-input/index.d.ts +16 -0
- package/dist/types/components/z-info-reveal/index.d.ts +28 -0
- package/dist/types/components/z-popover/index.d.ts +3 -3
- package/dist/types/components.d.ts +70 -7
- package/dist/web-components-library/index.esm.js +1 -1
- package/dist/web-components-library/p-0146081c.entry.js +16 -0
- package/{www/build/p-6db40dac.entry.js → dist/web-components-library/p-040ea013.entry.js} +1 -1
- package/dist/web-components-library/{p-0610360b.entry.js → p-07ae4f7d.entry.js} +1 -1
- package/dist/web-components-library/p-0c3e7bc3.js +1 -0
- package/dist/web-components-library/p-1356eb90.entry.js +1 -0
- package/dist/web-components-library/{p-80044bc0.entry.js → p-1c790896.entry.js} +1 -1
- package/dist/web-components-library/{p-24f3a39e.entry.js → p-215adfd1.entry.js} +1 -1
- package/dist/web-components-library/p-223566d6.entry.js +1 -0
- package/{www/build/p-5c20338f.entry.js → dist/web-components-library/p-27666111.entry.js} +1 -1
- package/dist/web-components-library/{p-4a8fe1e0.entry.js → p-2ed37f62.entry.js} +1 -1
- package/dist/web-components-library/{p-60e042a0.entry.js → p-35573e0e.entry.js} +1 -1
- package/{www/build/p-9b563575.entry.js → dist/web-components-library/p-3700ad63.entry.js} +1 -1
- package/dist/web-components-library/{p-248e6c7d.entry.js → p-39dbb042.entry.js} +1 -1
- package/dist/web-components-library/p-3a991f9c.entry.js +1 -0
- package/dist/web-components-library/{p-49602979.entry.js → p-3ade68ff.entry.js} +1 -1
- package/dist/web-components-library/{p-fd404599.entry.js → p-3d748f0d.entry.js} +1 -1
- package/dist/web-components-library/p-47a55354.entry.js +1 -0
- package/dist/web-components-library/{p-1c2331a4.entry.js → p-4965b6db.entry.js} +1 -1
- package/dist/web-components-library/{p-d41ca4c3.js → p-5aa819f8.js} +1 -1
- package/dist/web-components-library/p-5e3b8207.entry.js +1 -0
- package/dist/web-components-library/{p-35f7cac2.entry.js → p-766eb9cf.entry.js} +1 -1
- package/dist/web-components-library/{p-fb7c83f6.js → p-7a5ecafb.js} +1 -1
- package/dist/web-components-library/{p-f9f5ab0b.entry.js → p-7e691a4e.entry.js} +1 -1
- package/dist/web-components-library/{p-4906f5a6.entry.js → p-7f48b622.entry.js} +1 -1
- package/dist/web-components-library/{p-287678e2.entry.js → p-80f26a20.entry.js} +1 -1
- package/dist/web-components-library/{p-18c0f701.entry.js → p-818c073b.entry.js} +1 -1
- package/dist/web-components-library/{p-2d93e9e9.entry.js → p-846f16e8.entry.js} +1 -1
- package/dist/web-components-library/{p-0bcc78d4.entry.js → p-8712d63f.entry.js} +1 -1
- package/{www/build/p-95414290.entry.js → dist/web-components-library/p-878e62e2.entry.js} +1 -1
- package/dist/web-components-library/{p-49f8c86b.entry.js → p-91cbf793.entry.js} +1 -1
- package/{www/build/p-5553f117.entry.js → dist/web-components-library/p-9504d075.entry.js} +1 -1
- package/dist/web-components-library/{p-5a2dd46c.entry.js → p-96bf5b15.entry.js} +1 -1
- package/dist/web-components-library/{p-987f1f8a.entry.js → p-977c81d3.entry.js} +1 -1
- package/{www/build/p-ec0c7a06.entry.js → dist/web-components-library/p-97d62d2a.entry.js} +1 -1
- package/dist/web-components-library/{p-9c81ed70.entry.js → p-a73195b6.entry.js} +1 -1
- package/dist/web-components-library/{p-a98ccf36.entry.js → p-aba00527.entry.js} +1 -1
- package/dist/web-components-library/{p-0487d5f1.entry.js → p-ac52264c.entry.js} +1 -1
- package/dist/web-components-library/{p-044edef0.entry.js → p-afed0692.entry.js} +1 -1
- package/{www/build/p-898e37bd.entry.js → dist/web-components-library/p-b369bf2f.entry.js} +1 -1
- package/dist/web-components-library/{p-286c4c99.entry.js → p-b621a765.entry.js} +1 -1
- package/dist/web-components-library/{p-25b1a634.entry.js → p-b6794d0f.entry.js} +1 -1
- package/{www/build/p-82217c76.entry.js → dist/web-components-library/p-ba76f52b.entry.js} +1 -1
- package/dist/web-components-library/{p-2c86d1ea.entry.js → p-cb3663e6.entry.js} +1 -1
- package/dist/web-components-library/{p-33120ebd.entry.js → p-cb4a854e.entry.js} +1 -1
- package/dist/web-components-library/{p-a88f4e49.entry.js → p-d4c5085b.entry.js} +1 -1
- package/dist/web-components-library/{p-0ccda54f.entry.js → p-d5e67db8.entry.js} +1 -1
- package/dist/web-components-library/{p-a4245c8a.entry.js → p-d986d368.entry.js} +1 -1
- package/dist/web-components-library/p-e4a2811a.entry.js +1 -0
- package/{www/build/p-e30a093f.entry.js → dist/web-components-library/p-e5eb1fa4.entry.js} +1 -1
- package/dist/web-components-library/{p-3dc21b58.entry.js → p-e6fb8b76.entry.js} +1 -1
- package/dist/web-components-library/p-e82cee27.entry.js +1 -0
- package/dist/web-components-library/{p-bf3ea7b5.entry.js → p-eddde828.entry.js} +1 -1
- package/dist/web-components-library/{p-99a76b4d.entry.js → p-f2962121.entry.js} +1 -1
- package/dist/web-components-library/{p-7407a0c3.entry.js → p-f5f15b8e.entry.js} +1 -1
- package/dist/web-components-library/p-faeb0c6e.entry.js +1 -0
- package/dist/web-components-library/web-components-library.esm.js +1 -1
- package/package.json +2 -2
- package/react/components.d.ts +1 -0
- package/react/components.js +4 -3
- 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-0146081c.entry.js +16 -0
- package/{dist/web-components-library/p-6db40dac.entry.js → www/build/p-040ea013.entry.js} +1 -1
- package/www/build/{p-0610360b.entry.js → p-07ae4f7d.entry.js} +1 -1
- package/www/build/p-0c3e7bc3.js +1 -0
- package/www/build/p-1356eb90.entry.js +1 -0
- package/www/build/{p-80044bc0.entry.js → p-1c790896.entry.js} +1 -1
- package/www/build/{p-24f3a39e.entry.js → p-215adfd1.entry.js} +1 -1
- package/www/build/p-223566d6.entry.js +1 -0
- package/{dist/web-components-library/p-5c20338f.entry.js → www/build/p-27666111.entry.js} +1 -1
- package/www/build/{p-4a8fe1e0.entry.js → p-2ed37f62.entry.js} +1 -1
- package/www/build/{p-60e042a0.entry.js → p-35573e0e.entry.js} +1 -1
- package/{dist/web-components-library/p-9b563575.entry.js → www/build/p-3700ad63.entry.js} +1 -1
- package/www/build/p-388b2ac4.js +1 -0
- package/www/build/{p-248e6c7d.entry.js → p-39dbb042.entry.js} +1 -1
- package/www/build/p-3a991f9c.entry.js +1 -0
- package/www/build/{p-49602979.entry.js → p-3ade68ff.entry.js} +1 -1
- package/www/build/{p-fd404599.entry.js → p-3d748f0d.entry.js} +1 -1
- package/www/build/p-47a55354.entry.js +1 -0
- package/www/build/{p-1c2331a4.entry.js → p-4965b6db.entry.js} +1 -1
- package/www/build/{p-d41ca4c3.js → p-5aa819f8.js} +1 -1
- package/www/build/p-5e3b8207.entry.js +1 -0
- package/www/build/{p-35f7cac2.entry.js → p-766eb9cf.entry.js} +1 -1
- package/www/build/{p-fb7c83f6.js → p-7a5ecafb.js} +1 -1
- package/www/build/{p-f9f5ab0b.entry.js → p-7e691a4e.entry.js} +1 -1
- package/www/build/{p-4906f5a6.entry.js → p-7f48b622.entry.js} +1 -1
- package/www/build/{p-287678e2.entry.js → p-80f26a20.entry.js} +1 -1
- package/www/build/{p-18c0f701.entry.js → p-818c073b.entry.js} +1 -1
- package/www/build/{p-2d93e9e9.entry.js → p-846f16e8.entry.js} +1 -1
- package/www/build/{p-0bcc78d4.entry.js → p-8712d63f.entry.js} +1 -1
- package/{dist/web-components-library/p-95414290.entry.js → www/build/p-878e62e2.entry.js} +1 -1
- package/www/build/{p-4c9c83c0.css → p-88b56b6e.css} +1 -1
- package/www/build/{p-49f8c86b.entry.js → p-91cbf793.entry.js} +1 -1
- package/{dist/web-components-library/p-5553f117.entry.js → www/build/p-9504d075.entry.js} +1 -1
- package/www/build/{p-5a2dd46c.entry.js → p-96bf5b15.entry.js} +1 -1
- package/www/build/{p-987f1f8a.entry.js → p-977c81d3.entry.js} +1 -1
- package/{dist/web-components-library/p-ec0c7a06.entry.js → www/build/p-97d62d2a.entry.js} +1 -1
- package/www/build/{p-9c81ed70.entry.js → p-a73195b6.entry.js} +1 -1
- package/www/build/{p-a98ccf36.entry.js → p-aba00527.entry.js} +1 -1
- package/www/build/{p-0487d5f1.entry.js → p-ac52264c.entry.js} +1 -1
- package/www/build/{p-044edef0.entry.js → p-afed0692.entry.js} +1 -1
- package/{dist/web-components-library/p-898e37bd.entry.js → www/build/p-b369bf2f.entry.js} +1 -1
- package/www/build/{p-286c4c99.entry.js → p-b621a765.entry.js} +1 -1
- package/www/build/{p-25b1a634.entry.js → p-b6794d0f.entry.js} +1 -1
- package/{dist/web-components-library/p-82217c76.entry.js → www/build/p-ba76f52b.entry.js} +1 -1
- package/www/build/{p-2c86d1ea.entry.js → p-cb3663e6.entry.js} +1 -1
- package/www/build/{p-33120ebd.entry.js → p-cb4a854e.entry.js} +1 -1
- package/www/build/{p-a88f4e49.entry.js → p-d4c5085b.entry.js} +1 -1
- package/www/build/{p-0ccda54f.entry.js → p-d5e67db8.entry.js} +1 -1
- package/www/build/{p-a4245c8a.entry.js → p-d986d368.entry.js} +1 -1
- package/www/build/p-e4a2811a.entry.js +1 -0
- package/{dist/web-components-library/p-e30a093f.entry.js → www/build/p-e5eb1fa4.entry.js} +1 -1
- package/www/build/{p-3dc21b58.entry.js → p-e6fb8b76.entry.js} +1 -1
- package/www/build/p-e82cee27.entry.js +1 -0
- package/www/build/{p-bf3ea7b5.entry.js → p-eddde828.entry.js} +1 -1
- package/www/build/{p-99a76b4d.entry.js → p-f2962121.entry.js} +1 -1
- package/www/build/{p-7407a0c3.entry.js → p-f5f15b8e.entry.js} +1 -1
- package/www/build/p-faeb0c6e.entry.js +1 -0
- package/www/build/web-components-library.esm.js +1 -1
- package/www/index.html +1 -1
- package/dist/web-components-library/p-13174553.entry.js +0 -1
- package/dist/web-components-library/p-206e5b31.entry.js +0 -1
- package/dist/web-components-library/p-2e0885d6.entry.js +0 -16
- package/dist/web-components-library/p-45d4987c.entry.js +0 -1
- package/dist/web-components-library/p-6897ca8c.js +0 -1
- package/dist/web-components-library/p-71f19680.entry.js +0 -1
- package/dist/web-components-library/p-7ce57dfd.entry.js +0 -1
- package/dist/web-components-library/p-99d7ab2f.entry.js +0 -1
- package/dist/web-components-library/p-e9628876.entry.js +0 -1
- package/www/build/p-13174553.entry.js +0 -1
- package/www/build/p-206e5b31.entry.js +0 -1
- package/www/build/p-2e0885d6.entry.js +0 -16
- package/www/build/p-45d4987c.entry.js +0 -1
- package/www/build/p-58d420a2.js +0 -1
- package/www/build/p-6897ca8c.js +0 -1
- package/www/build/p-71f19680.entry.js +0 -1
- package/www/build/p-7ce57dfd.entry.js +0 -1
- package/www/build/p-99d7ab2f.entry.js +0 -1
- package/www/build/p-e9628876.entry.js +0 -1
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-84b7063a.js');
|
|
6
6
|
const index$2 = require('./index-1fda0714.js');
|
|
7
|
-
const index$1 = require('./index-
|
|
8
|
-
const utils = require('./utils-
|
|
7
|
+
const index$1 = require('./index-a8bdcb9c.js');
|
|
8
|
+
const utils = require('./utils-eca6932d.js');
|
|
9
9
|
require('./_commonjsHelpers-537d719a.js');
|
|
10
10
|
require('./breakpoints-88c4fd6c.js');
|
|
11
11
|
|
|
@@ -76,7 +76,7 @@ const ZTableHeader = class {
|
|
|
76
76
|
sortable: this.sortable,
|
|
77
77
|
}), onClick: () => this.handleSort() }, index.h("div", { class: 'container' }, index.h("slot", null), this.sortable && this.sortDirection !== index$1.SortDirectionEnum.none && (index.h("z-icon", { name: this.sortDirection === index$1.SortDirectionEnum.asc
|
|
78
78
|
? "arrow-up"
|
|
79
|
-
: "arrow-down", class: "arrow" }))), this.showButton && (index.h("div", { class: 'popover-container' }, index.h("z-button", { ref: (el) => (this.triggerButton = el), class: "contextual-popover-button", icon: "contextual-menu", variant: index$1.ButtonVariantEnum["tertiary"], size: index$1.ButtonSizeEnum["x-small"], onClick: () => this.handleMenuClick() }), index.h("z-popover", { ref: (el) => (this.popover = el), position: index$1.PopoverPositions.
|
|
79
|
+
: "arrow-down", class: "arrow" }))), this.showButton && (index.h("div", { class: 'popover-container' }, index.h("z-button", { ref: (el) => (this.triggerButton = el), class: "contextual-popover-button", icon: "contextual-menu", variant: index$1.ButtonVariantEnum["tertiary"], size: index$1.ButtonSizeEnum["x-small"], onClick: () => this.handleMenuClick() }), index.h("z-popover", { ref: (el) => (this.popover = el), position: index$1.PopoverPositions.bottom, center: true, bindTo: this.triggerButton }, index.h("div", null, index.h("slot", { name: "contextual-menu" })))))));
|
|
80
80
|
}
|
|
81
81
|
get host() { return index.getElement(this); }
|
|
82
82
|
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-84b7063a.js');
|
|
6
|
-
const index$1 = require('./index-
|
|
6
|
+
const index$1 = require('./index-a8bdcb9c.js');
|
|
7
7
|
|
|
8
8
|
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}";
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-84b7063a.js');
|
|
6
|
-
const index$1 = require('./index-
|
|
6
|
+
const index$1 = require('./index-a8bdcb9c.js');
|
|
7
7
|
const breakpoints = require('./breakpoints-88c4fd6c.js');
|
|
8
8
|
|
|
9
9
|
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}}";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-84b7063a.js');
|
|
6
|
-
const index$1 = require('./index-
|
|
6
|
+
const index$1 = require('./index-a8bdcb9c.js');
|
|
7
7
|
|
|
8
8
|
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}}";
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-84b7063a.js');
|
|
6
|
-
const index$1 = require('./index-
|
|
6
|
+
const index$1 = require('./index-a8bdcb9c.js');
|
|
7
7
|
const breakpoints = require('./breakpoints-88c4fd6c.js');
|
|
8
8
|
const hammer = require('./hammer-4f20813e.js');
|
|
9
9
|
require('./_commonjsHelpers-537d719a.js');
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-84b7063a.js');
|
|
6
|
-
const utils = require('./utils-
|
|
7
|
-
const index$1 = require('./index-
|
|
6
|
+
const utils = require('./utils-eca6932d.js');
|
|
7
|
+
const index$1 = require('./index-a8bdcb9c.js');
|
|
8
8
|
require('./breakpoints-88c4fd6c.js');
|
|
9
9
|
|
|
10
10
|
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}";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-84b7063a.js');
|
|
6
|
-
const index$1 = require('./index-
|
|
6
|
+
const index$1 = require('./index-a8bdcb9c.js');
|
|
7
7
|
|
|
8
8
|
const stylesCss = ":host{--z-tooltip-theme--surface:var(--color-surface01);--z-tooltip-theme--text:var(--color-text01);--arrow-size:6px;--edge-offset:calc(-1 * (var(--arrow-size) + calc(var(--space-unit) * 2)));position:relative;display:none;align-items:center;justify-content:center;padding:var(--space-unit);min-width:calc(var(--space-unit) * 8);min-height:calc(var(--space-unit) * 4);color:var(--z-tooltip-theme--text);fill:currentColor;font-family:var(--font-family-sans);text-align:center;border-radius:var(--border-radius-small);background:var(--z-tooltip-theme--surface);filter:drop-shadow(0 4px 8px var(--shadow-color-base));will-change:filter}:host(.legacy){display:inline-flex;padding:calc(var(--space-unit) * 2);min-width:auto;min-height:auto;max-width:200px;font-style:italic;line-height:16px;letter-spacing:0.32px;font-size:12px;border:var(--border-size-small) solid var(--gray200);border-radius:var(--border-radius);filter:drop-shadow(0px 0px 2px rgba(0, 0, 0, 0.08))}:host(.legacy)::before{--arrow-size:14px}:host([position])::before{--arrow-edge-offset:calc(100% - var(--arrow-size) - var(--space-unit));--arrow-center-x-offset:calc(50% - calc(var(--arrow-size) / 2));--arrow-center-y-offset:calc(100% - calc(var(--arrow-size) / 2));content:'';position:absolute;width:var(--arrow-size);height:var(--arrow-size);background:inherit;transform:rotate(45deg)}:host([open][style*='top:']),:host([open][style*='inset:']){display:inline-flex}:host([position^='top']){margin-bottom:var(--space-unit)}:host([position='right']){margin-left:var(--space-unit)}:host([position='top_right']),:host([position='bottom_right']){margin-left:var(--edge-offset)}:host([position^='bottom']){margin-top:var(--space-unit)}:host([position='left']){margin-right:var(--space-unit)}:host([position='top_left']),:host([position='bottom_left']){margin-right:var(--edge-offset)}:host([position^='top'])::before{top:var(--arrow-center-y-offset)}:host([position^='bottom'])::before{bottom:var(--arrow-center-y-offset)}:host([position='top'])::before,:host([position='bottom'])::before{left:var(--arrow-center-x-offset)}:host([position='right'])::before,:host([position='left'])::before{top:var(--arrow-center-x-offset)}:host([position='right'])::before{right:var(--arrow-center-y-offset)}:host([position='top_right'])::before,:host([position='bottom_right'])::before{right:var(--arrow-edge-offset)}:host([position='left'])::before{left:var(--arrow-center-y-offset)}:host([position='top_left'])::before,:host([position='bottom_left'])::before{left:var(--arrow-edge-offset)}::slotted(*){flex:1 auto;overflow:auto}";
|
|
9
9
|
|
|
@@ -89,7 +89,7 @@ const ZTooltipDeprecated = class {
|
|
|
89
89
|
index.registerInstance(this, hostRef);
|
|
90
90
|
this.positionChange = index.createEvent(this, "positionChange", 7);
|
|
91
91
|
/** Tooltip position. */
|
|
92
|
-
this.type = index$1.PopoverPositions.
|
|
92
|
+
this.type = index$1.PopoverPositions.auto;
|
|
93
93
|
/**
|
|
94
94
|
* The open state of the tooltip.
|
|
95
95
|
*/
|
|
@@ -100,7 +100,7 @@ const ZTooltipDeprecated = class {
|
|
|
100
100
|
Object
|
|
101
101
|
.values(index$1.PopoverPositions)
|
|
102
102
|
.every((position) => newValue !== position)) {
|
|
103
|
-
this.type = index$1.PopoverPositions.
|
|
103
|
+
this.type = index$1.PopoverPositions.auto;
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
onPositionChange() {
|
|
@@ -169,29 +169,29 @@ const ZTooltipDeprecated = class {
|
|
|
169
169
|
const availableHeight = availableTop + availableBottom + boundingRect.height;
|
|
170
170
|
const availableWidth = availableLeft + availableRight + boundingRect.width;
|
|
171
171
|
let position = this.type;
|
|
172
|
-
if (position === index$1.PopoverPositions.
|
|
172
|
+
if (position === index$1.PopoverPositions.auto) {
|
|
173
173
|
/**
|
|
174
174
|
* The `AUTO` position tries to place the tooltip in the "safest" area,
|
|
175
175
|
* where there's more space available.
|
|
176
176
|
*/
|
|
177
177
|
const positions = [];
|
|
178
178
|
if (availableTop / availableHeight > 0.9) {
|
|
179
|
-
positions.unshift(index$1.PopoverPositions.
|
|
179
|
+
positions.unshift(index$1.PopoverPositions.top);
|
|
180
180
|
}
|
|
181
181
|
else if (availableTop / availableHeight > 0.6) {
|
|
182
|
-
positions.push(index$1.PopoverPositions.
|
|
182
|
+
positions.push(index$1.PopoverPositions.top);
|
|
183
183
|
}
|
|
184
184
|
else if (availableTop / availableHeight < 0.1) {
|
|
185
|
-
positions.unshift(index$1.PopoverPositions.
|
|
185
|
+
positions.unshift(index$1.PopoverPositions.bottom);
|
|
186
186
|
}
|
|
187
187
|
else {
|
|
188
|
-
positions.push(index$1.PopoverPositions.
|
|
188
|
+
positions.push(index$1.PopoverPositions.bottom);
|
|
189
189
|
}
|
|
190
190
|
if (availableLeft / availableWidth > 0.6) {
|
|
191
|
-
positions.push(index$1.PopoverPositions.
|
|
191
|
+
positions.push(index$1.PopoverPositions.left);
|
|
192
192
|
}
|
|
193
193
|
else if (availableLeft / availableWidth < 0.4) {
|
|
194
|
-
positions.push(index$1.PopoverPositions.
|
|
194
|
+
positions.push(index$1.PopoverPositions.right);
|
|
195
195
|
}
|
|
196
196
|
position = positions.join("_");
|
|
197
197
|
}
|
|
@@ -203,46 +203,46 @@ const ZTooltipDeprecated = class {
|
|
|
203
203
|
const offsetRight = boundingRect.right - relativeBoundingRect.right;
|
|
204
204
|
const offsetBottom = boundingRect.bottom - relativeBoundingRect.bottom;
|
|
205
205
|
const offsetLeft = boundingRect.left - relativeBoundingRect.left;
|
|
206
|
-
if (position === index$1.PopoverPositions.
|
|
207
|
-
position === index$1.PopoverPositions.
|
|
208
|
-
position === index$1.PopoverPositions.
|
|
206
|
+
if (position === index$1.PopoverPositions.top ||
|
|
207
|
+
position === index$1.PopoverPositions.top_right ||
|
|
208
|
+
position === index$1.PopoverPositions.top_left) {
|
|
209
209
|
style.top = "auto";
|
|
210
210
|
style.bottom = `${offsetBottom + boundingRect.height}px`;
|
|
211
211
|
}
|
|
212
|
-
if (position === index$1.PopoverPositions.
|
|
213
|
-
position === index$1.PopoverPositions.
|
|
214
|
-
position === index$1.PopoverPositions.
|
|
212
|
+
if (position === index$1.PopoverPositions.bottom ||
|
|
213
|
+
position === index$1.PopoverPositions.bottom_right ||
|
|
214
|
+
position === index$1.PopoverPositions.bottom_left) {
|
|
215
215
|
style.top = `${offsetTop + boundingRect.height}px`;
|
|
216
216
|
style.bottom = "auto";
|
|
217
217
|
}
|
|
218
|
-
if (position === index$1.PopoverPositions.
|
|
219
|
-
position === index$1.PopoverPositions.
|
|
218
|
+
if (position === index$1.PopoverPositions.top ||
|
|
219
|
+
position === index$1.PopoverPositions.bottom) {
|
|
220
220
|
style.left = `${offsetLeft +
|
|
221
221
|
(boundingRect.width / 2) -
|
|
222
222
|
(this.host.clientWidth / 2)}px`;
|
|
223
223
|
}
|
|
224
|
-
if (position === index$1.PopoverPositions.
|
|
225
|
-
position === index$1.PopoverPositions.
|
|
224
|
+
if (position === index$1.PopoverPositions.top_right ||
|
|
225
|
+
position === index$1.PopoverPositions.bottom_right) {
|
|
226
226
|
style.right = "auto";
|
|
227
227
|
style.left = `${offsetLeft + boundingRect.width}px`;
|
|
228
228
|
}
|
|
229
|
-
if (position === index$1.PopoverPositions.
|
|
230
|
-
position === index$1.PopoverPositions.
|
|
229
|
+
if (position === index$1.PopoverPositions.top_left ||
|
|
230
|
+
position === index$1.PopoverPositions.bottom_left) {
|
|
231
231
|
style.left = "auto";
|
|
232
232
|
style.right = `${offsetRight + boundingRect.width}px`;
|
|
233
233
|
}
|
|
234
|
-
if (position === index$1.PopoverPositions.
|
|
235
|
-
position === index$1.PopoverPositions.
|
|
234
|
+
if (position === index$1.PopoverPositions.right ||
|
|
235
|
+
position === index$1.PopoverPositions.left) {
|
|
236
236
|
style.top = `${offsetTop +
|
|
237
237
|
(boundingRect.height / 2) -
|
|
238
238
|
(this.host.clientHeight / 2)}px`;
|
|
239
239
|
style.bottom = "auto";
|
|
240
240
|
}
|
|
241
|
-
if (position === index$1.PopoverPositions.
|
|
241
|
+
if (position === index$1.PopoverPositions.right) {
|
|
242
242
|
style.right = "auto";
|
|
243
243
|
style.left = `${offsetLeft + boundingRect.width}px`;
|
|
244
244
|
}
|
|
245
|
-
if (position === index$1.PopoverPositions.
|
|
245
|
+
if (position === index$1.PopoverPositions.left) {
|
|
246
246
|
style.left = "auto";
|
|
247
247
|
style.right = `${offsetRight + boundingRect.width}px`;
|
|
248
248
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-84b7063a.js');
|
|
6
|
-
const index$1 = require('./index-
|
|
6
|
+
const index$1 = require('./index-a8bdcb9c.js');
|
|
7
7
|
|
|
8
8
|
const stylesCss = ":host{--z-tooltip-theme--surface:var(--color-surface01);--z-tooltip-theme--text:var(--color-text01);--z-tooltip-shadow-filter:drop-shadow(0 1px 2px var(--shadow-color-base))}:host([dark]) z-popover{--z-popover-theme--surface:var(--color-surface05)}z-popover{--z-popover-padding:var(--space-unit);--z-popover-theme--surface:var(--z-tooltip-theme--surface);--z-popover-theme--text:var(--z-tooltip-theme--text);--z-popover-shadow-filter:var(--z-tooltip-shadow-filter)}";
|
|
9
9
|
|
|
@@ -11,7 +11,7 @@ const ZTooltip = class {
|
|
|
11
11
|
constructor(hostRef) {
|
|
12
12
|
index.registerInstance(this, hostRef);
|
|
13
13
|
/** Tooltip position. */
|
|
14
|
-
this.position = index$1.PopoverPositions.
|
|
14
|
+
this.position = index$1.PopoverPositions.auto;
|
|
15
15
|
/** Enable tooltip dark mode. */
|
|
16
16
|
this.dark = false;
|
|
17
17
|
/**
|
|
@@ -50,6 +50,9 @@ export var InputTypeEnum;
|
|
|
50
50
|
InputTypeEnum["textarea"] = "textarea";
|
|
51
51
|
InputTypeEnum["checkbox"] = "checkbox";
|
|
52
52
|
InputTypeEnum["radio"] = "radio";
|
|
53
|
+
InputTypeEnum["tel"] = "tel";
|
|
54
|
+
InputTypeEnum["url"] = "url";
|
|
55
|
+
InputTypeEnum["search"] = "search";
|
|
53
56
|
})(InputTypeEnum || (InputTypeEnum = {}));
|
|
54
57
|
export var InputStatusEnum;
|
|
55
58
|
(function (InputStatusEnum) {
|
|
@@ -59,19 +62,19 @@ export var InputStatusEnum;
|
|
|
59
62
|
})(InputStatusEnum || (InputStatusEnum = {}));
|
|
60
63
|
export var PopoverPositions;
|
|
61
64
|
(function (PopoverPositions) {
|
|
62
|
-
PopoverPositions["
|
|
63
|
-
PopoverPositions["
|
|
64
|
-
PopoverPositions["
|
|
65
|
-
PopoverPositions["
|
|
66
|
-
PopoverPositions["
|
|
67
|
-
PopoverPositions["
|
|
68
|
-
PopoverPositions["
|
|
69
|
-
PopoverPositions["
|
|
70
|
-
PopoverPositions["
|
|
71
|
-
PopoverPositions["
|
|
72
|
-
PopoverPositions["
|
|
73
|
-
PopoverPositions["
|
|
74
|
-
PopoverPositions["
|
|
65
|
+
PopoverPositions["auto"] = "auto";
|
|
66
|
+
PopoverPositions["top"] = "top";
|
|
67
|
+
PopoverPositions["right"] = "right";
|
|
68
|
+
PopoverPositions["bottom"] = "bottom";
|
|
69
|
+
PopoverPositions["left"] = "left";
|
|
70
|
+
PopoverPositions["top_right"] = "top_right";
|
|
71
|
+
PopoverPositions["top_left"] = "top_left";
|
|
72
|
+
PopoverPositions["bottom_right"] = "bottom_right";
|
|
73
|
+
PopoverPositions["bottom_left"] = "bottom_left";
|
|
74
|
+
PopoverPositions["right_top"] = "right_top";
|
|
75
|
+
PopoverPositions["right_bottom"] = "right_bottom";
|
|
76
|
+
PopoverPositions["left_top"] = "left_top";
|
|
77
|
+
PopoverPositions["left_bottom"] = "left_bottom";
|
|
75
78
|
})(PopoverPositions || (PopoverPositions = {}));
|
|
76
79
|
export var PopoverPosition;
|
|
77
80
|
(function (PopoverPosition) {
|
|
@@ -307,6 +310,11 @@ export var ZDatePickerPosition;
|
|
|
307
310
|
ZDatePickerPosition["top"] = "top";
|
|
308
311
|
ZDatePickerPosition["bottom"] = "bottom";
|
|
309
312
|
})(ZDatePickerPosition || (ZDatePickerPosition = {}));
|
|
313
|
+
export var ZRangePickerMode;
|
|
314
|
+
(function (ZRangePickerMode) {
|
|
315
|
+
ZRangePickerMode["date"] = "date";
|
|
316
|
+
ZRangePickerMode["dateTime"] = "date-time";
|
|
317
|
+
})(ZRangePickerMode || (ZRangePickerMode = {}));
|
|
310
318
|
export var StatusTagStatus;
|
|
311
319
|
(function (StatusTagStatus) {
|
|
312
320
|
StatusTagStatus["warning"] = "warning";
|
|
@@ -315,3 +323,10 @@ export var StatusTagStatus;
|
|
|
315
323
|
StatusTagStatus["neutral"] = "neutral";
|
|
316
324
|
StatusTagStatus["default"] = "default";
|
|
317
325
|
})(StatusTagStatus || (StatusTagStatus = {}));
|
|
326
|
+
export var InfoRevealPosition;
|
|
327
|
+
(function (InfoRevealPosition) {
|
|
328
|
+
InfoRevealPosition["top_right"] = "top_right";
|
|
329
|
+
InfoRevealPosition["top_left"] = "top_left";
|
|
330
|
+
InfoRevealPosition["bottom_right"] = "bottom_right";
|
|
331
|
+
InfoRevealPosition["bottom_left"] = "bottom_left";
|
|
332
|
+
})(InfoRevealPosition || (InfoRevealPosition = {}));
|
|
@@ -57,6 +57,7 @@
|
|
|
57
57
|
"./components/z-contextual-menu/index.js",
|
|
58
58
|
"./components/z-divider/index.js",
|
|
59
59
|
"./components/z-ghost-loading/index.js",
|
|
60
|
+
"./components/z-info-reveal/index.js",
|
|
60
61
|
"./components/z-offcanvas/index.js",
|
|
61
62
|
"./components/z-pagination/index.js",
|
|
62
63
|
"./components/z-popover/index.js",
|
|
@@ -153,8 +153,7 @@ z-range-picker {
|
|
|
153
153
|
width: fit-content;
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
.range-
|
|
157
|
-
cursor: pointer !important;
|
|
156
|
+
.range-pickers-container > div {
|
|
158
157
|
position: relative;
|
|
159
158
|
}
|
|
160
159
|
|
|
@@ -382,10 +381,17 @@ z-range-picker {
|
|
|
382
381
|
border: 2px solid var(--color-surface01) !important;
|
|
383
382
|
}
|
|
384
383
|
|
|
385
|
-
.flatpickr-day:hover,
|
|
386
|
-
.flatpickr-day.
|
|
387
|
-
.flatpickr-day.
|
|
384
|
+
.flatpickr-day:not(.flatpickr-disabled):hover,
|
|
385
|
+
.flatpickr-day:not(.flatpickr-disabled):active,
|
|
386
|
+
.flatpickr-day:not(.flatpickr-disabled):focus,
|
|
387
|
+
.flatpickr-day:not(.flatpickr-disabled).prevMonthDay:hover,
|
|
388
|
+
.flatpickr-day:not(.flatpickr-disabled).prevMonthDay:active,
|
|
389
|
+
.flatpickr-day:not(.flatpickr-disabled).prevMonthDay:focus,
|
|
390
|
+
.flatpickr-day:not(.flatpickr-disabled).selected:hover,
|
|
391
|
+
.flatpickr-day:not(.flatpickr-disabled).selected:active,
|
|
392
|
+
.flatpickr-day:not(.flatpickr-disabled).selected:focus,
|
|
388
393
|
.flatpickr-monthSelect-month:hover,
|
|
394
|
+
.flatpickr-monthSelect-month:active,
|
|
389
395
|
.flatpickr-monthSelect-month:focus {
|
|
390
396
|
background-color: var(--color-hover-primary) !important;
|
|
391
397
|
border-color: var(--color-hover-primary) !important;
|
|
@@ -397,8 +403,8 @@ z-range-picker {
|
|
|
397
403
|
border: 2px solid var(--color-hover-primary) !important;
|
|
398
404
|
}
|
|
399
405
|
|
|
400
|
-
.flatpickr-day.selected,
|
|
401
|
-
.flatpickr-monthSelect-month.selected {
|
|
406
|
+
.flatpickr-day.selected:not(.flatpickr-disabled),
|
|
407
|
+
.flatpickr-monthSelect-month.selected:not(.flatpickr-disabled) {
|
|
402
408
|
background-color: var(--color-primary01) !important;
|
|
403
409
|
border-color: var(--color-primary01) !important;
|
|
404
410
|
}
|
|
@@ -537,32 +543,32 @@ z-range-picker {
|
|
|
537
543
|
|
|
538
544
|
/* range-date-picker selectors */
|
|
539
545
|
|
|
540
|
-
.flatpickr-day.inRange,
|
|
541
|
-
.flatpickr-day.today.inRange,
|
|
542
|
-
.flatpickr-day.prevMonthDay.inRange,
|
|
543
|
-
.flatpickr-monthSelect-month.inRange {
|
|
544
|
-
background-color: var(--color-primary03) !important;
|
|
545
|
-
border-color: var(--color-primary03) !important;
|
|
546
|
-
}
|
|
547
|
-
|
|
548
|
-
.flatpickr-day.inRange:hover,
|
|
549
|
-
.flatpickr-day.today.inRange:hover,
|
|
550
|
-
.flatpickr-day.prevMonthDay.inRange:hover,
|
|
551
|
-
.flatpickr-monthSelect-month.inRange:hover {
|
|
546
|
+
.flatpickr-day:not(.flatpickr-disabled).inRange:hover,
|
|
547
|
+
.flatpickr-day:not(.flatpickr-disabled).today.inRange:hover,
|
|
548
|
+
.flatpickr-day.prevMonthDay:not(.flatpickr-disabled).inRange:hover,
|
|
549
|
+
.flatpickr-monthSelect-month:not(.flatpickr-disabled).inRange:hover {
|
|
552
550
|
background-color: var(--color-hover-primary) !important;
|
|
553
551
|
border-color: var(--color-hover-primary) !important;
|
|
554
552
|
}
|
|
555
553
|
|
|
556
|
-
.flatpickr-day.
|
|
557
|
-
.flatpickr-day.
|
|
558
|
-
.flatpickr-
|
|
559
|
-
.flatpickr-monthSelect-month.
|
|
554
|
+
.flatpickr-day:not(.flatpickr-disabled).inRange,
|
|
555
|
+
.flatpickr-day:not(.flatpickr-disabled).today.inRange,
|
|
556
|
+
.flatpickr-day:not(.flatpickr-disabled).prevMonthDay.inRange,
|
|
557
|
+
.flatpickr-monthSelect-month:not(.flatpickr-disabled).inRange {
|
|
558
|
+
background-color: var(--color-primary03);
|
|
559
|
+
border-color: var(--color-primary03);
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
.flatpickr-day:not(.flatpickr-disabled).startRange,
|
|
563
|
+
.flatpickr-day:not(.flatpickr-disabled).endRange,
|
|
564
|
+
.flatpickr-monthSelect-month:not(.flatpickr-disabled).startRange,
|
|
565
|
+
.flatpickr-monthSelect-month:not(.flatpickr-disabled).endRange {
|
|
560
566
|
background-color: var(--color-primary01) !important;
|
|
561
567
|
border-color: var(--color-primary01) !important;
|
|
562
568
|
}
|
|
563
569
|
|
|
564
|
-
.flatpickr-day.prevMonthDay.selected.startRange,
|
|
565
|
-
.flatpickr-day.prevMonthDay.selected.endRange {
|
|
570
|
+
.flatpickr-day:not(.flatpickr-disabled).prevMonthDay.selected.startRange,
|
|
571
|
+
.flatpickr-day:not(.flatpickr-disabled).prevMonthDay.selected.endRange {
|
|
566
572
|
background-color: var(--color-primary01) !important;
|
|
567
573
|
border-color: var(--color-primary01) !important;
|
|
568
574
|
}
|
|
@@ -571,7 +577,7 @@ z-range-picker {
|
|
|
571
577
|
cursor: pointer;
|
|
572
578
|
}
|
|
573
579
|
|
|
574
|
-
.range-
|
|
580
|
+
.range-pickers-container {
|
|
575
581
|
display: flex;
|
|
576
582
|
gap: 16px;
|
|
577
583
|
}
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
import { ZDatePickerMode, ZDatePickerModeValues, ZDatePickerPosition, } from "../../beans";
|
|
2
|
+
export function validateDate(dateStr, hasTime = false) {
|
|
3
|
+
const regex = hasTime
|
|
4
|
+
? /^\d{1,2}[\/-]\d{1,2}[\/-]\d{2,4} - \d{2}:\d{2}$/
|
|
5
|
+
: /^\d{1,2}[\/-]\d{1,2}[\/-]\d{2,4}$/;
|
|
6
|
+
if (dateStr.match(regex) === null) {
|
|
7
|
+
return false;
|
|
8
|
+
}
|
|
9
|
+
return true;
|
|
10
|
+
}
|
|
2
11
|
export function setFlatpickrPosition(element, mode) {
|
|
3
12
|
const toggleHeight = element.children[0].clientHeight;
|
|
4
13
|
element.style.setProperty("--z-range-picker--toggle-height", `${toggleHeight}px`);
|
|
@@ -25,6 +34,11 @@ export function setAriaOptions(element, mode) {
|
|
|
25
34
|
let nextMonthArrow = element.getElementsByClassName("flatpickr-next-month")[0];
|
|
26
35
|
let tabindexElements = element.querySelectorAll('[tabindex = "-1"]');
|
|
27
36
|
tabindexElements.forEach((element) => element.setAttribute("tabindex", "0"));
|
|
37
|
+
Array.from(element.getElementsByClassName("flatpickr-day")).forEach((date) => {
|
|
38
|
+
if (date.classList.contains("flatpickr-disabled")) {
|
|
39
|
+
date.setAttribute("tabindex", "-1");
|
|
40
|
+
}
|
|
41
|
+
});
|
|
28
42
|
prevMonthArrow.setAttribute("tabindex", "0");
|
|
29
43
|
nextMonthArrow.setAttribute("tabindex", "0");
|
|
30
44
|
prevMonthArrow.setAttribute("role", "button");
|
|
@@ -39,7 +53,7 @@ export function setAriaOptions(element, mode) {
|
|
|
39
53
|
setDateTimeAriaOptions(element, prevMonthArrow, nextMonthArrow);
|
|
40
54
|
}
|
|
41
55
|
if (mode === ZDatePickerMode.months) {
|
|
42
|
-
setMonthsAriaOptions(
|
|
56
|
+
setMonthsAriaOptions(element, prevMonthArrow, nextMonthArrow);
|
|
43
57
|
}
|
|
44
58
|
});
|
|
45
59
|
}
|