@zanichelli/albe-web-components 5.0.0 → 5.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 +48 -0
- package/dist/cjs/{index-5c16dc2b.js → index-69339d64.js} +23 -13
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{utils-15c8b978.js → utils-98ed20af.js} +1 -1
- package/dist/cjs/{utils-58afb908.js → utils-bfd07a33.js} +1 -2
- package/dist/cjs/web-components-library.cjs.js +1 -1
- package/dist/cjs/z-app-switcher_9.cjs.entry.js +31 -6
- 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 +4 -6
- 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 +3 -3
- package/dist/cjs/z-cookiebar.cjs.entry.js +1 -1
- package/dist/cjs/z-date-picker.cjs.entry.js +2 -2
- 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 +23 -13
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/buttons/z-button/index.js +5 -7
- package/dist/collection/components/buttons/z-button/styles.css +23 -23
- 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-contextual-menu/styles.css +5 -1
- 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-0944317b.js} +24 -14
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{utils-d49ae9f0.js → utils-0d95f520.js} +1 -1
- package/dist/esm/{utils-14da09de.js → utils-20383a26.js} +1 -2
- package/dist/esm/web-components-library.js +1 -1
- package/dist/esm/z-app-switcher_9.entry.js +31 -6
- 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 +4 -6
- 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 +3 -3
- package/dist/esm/z-cookiebar.entry.js +1 -1
- package/dist/esm/z-date-picker.entry.js +2 -2
- 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 +24 -14
- package/dist/types/components/buttons/z-button/index.d.ts +2 -3
- 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 +66 -3
- package/dist/web-components-library/index.esm.js +1 -1
- package/{www/build/p-5c20338f.entry.js → dist/web-components-library/p-0818a02f.entry.js} +1 -1
- package/{www/build/p-82217c76.entry.js → dist/web-components-library/p-095a0982.entry.js} +1 -1
- package/dist/web-components-library/p-0a7ebd31.entry.js +1 -0
- package/{www/build/p-49602979.entry.js → dist/web-components-library/p-0be8daa3.entry.js} +1 -1
- package/dist/web-components-library/{p-d41ca4c3.js → p-122f0f28.js} +1 -1
- package/dist/web-components-library/{p-3dc21b58.entry.js → p-1fae466d.entry.js} +1 -1
- package/dist/web-components-library/p-223566d6.entry.js +1 -0
- package/{www/build/p-9b563575.entry.js → dist/web-components-library/p-2275728f.entry.js} +1 -1
- package/{www/build/p-ec0c7a06.entry.js → dist/web-components-library/p-251fce3e.entry.js} +1 -1
- package/{www/build/p-f9f5ab0b.entry.js → dist/web-components-library/p-269a9ec5.entry.js} +1 -1
- package/dist/web-components-library/{p-248e6c7d.entry.js → p-275bebf2.entry.js} +1 -1
- package/dist/web-components-library/{p-a98ccf36.entry.js → p-37e06523.entry.js} +1 -1
- package/dist/web-components-library/{p-18c0f701.entry.js → p-3a57ff32.entry.js} +1 -1
- package/{www/build/p-95414290.entry.js → dist/web-components-library/p-546616a7.entry.js} +1 -1
- package/dist/web-components-library/p-5cbe4445.entry.js +1 -0
- package/dist/web-components-library/{p-9c81ed70.entry.js → p-687ba257.entry.js} +1 -1
- package/dist/web-components-library/{p-49f8c86b.entry.js → p-6aa8b260.entry.js} +1 -1
- package/dist/web-components-library/{p-287678e2.entry.js → p-6f18a0fc.entry.js} +1 -1
- package/dist/web-components-library/{p-5a2dd46c.entry.js → p-6ff49230.entry.js} +1 -1
- package/dist/web-components-library/p-717c5e20.entry.js +1 -0
- package/dist/web-components-library/{p-0bcc78d4.entry.js → p-721d1645.entry.js} +1 -1
- package/dist/web-components-library/{p-80044bc0.entry.js → p-84d7a0ed.entry.js} +1 -1
- package/dist/web-components-library/{p-35f7cac2.entry.js → p-854f5b2e.entry.js} +1 -1
- package/dist/web-components-library/{p-25b1a634.entry.js → p-8d50bfa9.entry.js} +1 -1
- package/dist/web-components-library/{p-2c86d1ea.entry.js → p-919cdfbf.entry.js} +1 -1
- package/dist/web-components-library/p-9247f214.js +1 -0
- package/dist/web-components-library/{p-0487d5f1.entry.js → p-939662fa.entry.js} +1 -1
- package/{www/build/p-6d79baec.entry.js → dist/web-components-library/p-955942fc.entry.js} +1 -1
- package/dist/web-components-library/{p-33120ebd.entry.js → p-98350ea9.entry.js} +1 -1
- package/dist/web-components-library/{p-044edef0.entry.js → p-9ac122ea.entry.js} +1 -1
- package/{www/build/p-5553f117.entry.js → dist/web-components-library/p-9b873fe5.entry.js} +1 -1
- package/dist/web-components-library/{p-0ccda54f.entry.js → p-a72503d2.entry.js} +1 -1
- package/dist/web-components-library/{p-1c2331a4.entry.js → p-ac41dd18.entry.js} +1 -1
- package/dist/web-components-library/p-ac4f1a90.entry.js +1 -0
- package/dist/web-components-library/{p-60e042a0.entry.js → p-adb293aa.entry.js} +1 -1
- package/{www/build/p-7ce57dfd.entry.js → dist/web-components-library/p-af353020.entry.js} +1 -1
- package/dist/web-components-library/p-b40d8313.entry.js +1 -0
- package/dist/web-components-library/{p-a88f4e49.entry.js → p-b5b5e5e3.entry.js} +1 -1
- package/dist/web-components-library/{p-24ec049a.entry.js → p-bdf5ab5b.entry.js} +1 -1
- package/dist/web-components-library/{p-4a8fe1e0.entry.js → p-bfa1813d.entry.js} +1 -1
- package/dist/web-components-library/{p-0610360b.entry.js → p-bfccbf81.entry.js} +1 -1
- package/{www/build/p-6db40dac.entry.js → dist/web-components-library/p-c36ad471.entry.js} +1 -1
- package/dist/web-components-library/{p-4906f5a6.entry.js → p-cd6ec70f.entry.js} +1 -1
- package/dist/web-components-library/{p-2d93e9e9.entry.js → p-cdabcb55.entry.js} +1 -1
- package/{www/build/p-71f19680.entry.js → dist/web-components-library/p-ce351931.entry.js} +1 -1
- package/{www/build/p-99a76b4d.entry.js → dist/web-components-library/p-d3ce433b.entry.js} +1 -1
- package/dist/web-components-library/{p-286c4c99.entry.js → p-db7dbb44.entry.js} +1 -1
- package/dist/web-components-library/p-de2b2858.entry.js +1 -0
- package/dist/web-components-library/{p-987f1f8a.entry.js → p-e150820d.entry.js} +1 -1
- package/dist/web-components-library/{p-24f3a39e.entry.js → p-ea4a063a.entry.js} +1 -1
- package/dist/web-components-library/{p-bf3ea7b5.entry.js → p-ebcda09e.entry.js} +1 -1
- package/dist/web-components-library/{p-a4245c8a.entry.js → p-ed40ca4d.entry.js} +1 -1
- package/{www/build/p-e30a093f.entry.js → dist/web-components-library/p-f1eee91e.entry.js} +1 -1
- package/dist/web-components-library/{p-fd404599.entry.js → p-f24e569d.entry.js} +1 -1
- package/dist/web-components-library/p-fb7d64f2.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/www/build/index.esm.js +1 -1
- package/{dist/web-components-library/p-5c20338f.entry.js → www/build/p-0818a02f.entry.js} +1 -1
- package/{dist/web-components-library/p-82217c76.entry.js → www/build/p-095a0982.entry.js} +1 -1
- package/www/build/p-0a7ebd31.entry.js +1 -0
- package/{dist/web-components-library/p-49602979.entry.js → www/build/p-0be8daa3.entry.js} +1 -1
- package/www/build/{p-d41ca4c3.js → p-122f0f28.js} +1 -1
- package/www/build/{p-3dc21b58.entry.js → p-1fae466d.entry.js} +1 -1
- package/www/build/p-223566d6.entry.js +1 -0
- package/{dist/web-components-library/p-9b563575.entry.js → www/build/p-2275728f.entry.js} +1 -1
- package/{dist/web-components-library/p-ec0c7a06.entry.js → www/build/p-251fce3e.entry.js} +1 -1
- package/{dist/web-components-library/p-f9f5ab0b.entry.js → www/build/p-269a9ec5.entry.js} +1 -1
- package/www/build/{p-248e6c7d.entry.js → p-275bebf2.entry.js} +1 -1
- package/www/build/{p-a98ccf36.entry.js → p-37e06523.entry.js} +1 -1
- package/www/build/{p-18c0f701.entry.js → p-3a57ff32.entry.js} +1 -1
- package/{dist/web-components-library/p-95414290.entry.js → www/build/p-546616a7.entry.js} +1 -1
- package/www/build/p-5cbe4445.entry.js +1 -0
- package/www/build/{p-9c81ed70.entry.js → p-687ba257.entry.js} +1 -1
- package/www/build/{p-49f8c86b.entry.js → p-6aa8b260.entry.js} +1 -1
- package/www/build/{p-287678e2.entry.js → p-6f18a0fc.entry.js} +1 -1
- package/www/build/{p-5a2dd46c.entry.js → p-6ff49230.entry.js} +1 -1
- package/www/build/p-717c5e20.entry.js +1 -0
- package/www/build/{p-0bcc78d4.entry.js → p-721d1645.entry.js} +1 -1
- package/www/build/p-7ed835e0.js +1 -0
- package/www/build/{p-80044bc0.entry.js → p-84d7a0ed.entry.js} +1 -1
- package/www/build/{p-35f7cac2.entry.js → p-854f5b2e.entry.js} +1 -1
- package/www/build/{p-25b1a634.entry.js → p-8d50bfa9.entry.js} +1 -1
- package/www/build/{p-2c86d1ea.entry.js → p-919cdfbf.entry.js} +1 -1
- package/www/build/p-9247f214.js +1 -0
- package/www/build/{p-0487d5f1.entry.js → p-939662fa.entry.js} +1 -1
- package/{dist/web-components-library/p-6d79baec.entry.js → www/build/p-955942fc.entry.js} +1 -1
- package/www/build/{p-33120ebd.entry.js → p-98350ea9.entry.js} +1 -1
- package/www/build/{p-044edef0.entry.js → p-9ac122ea.entry.js} +1 -1
- package/{dist/web-components-library/p-5553f117.entry.js → www/build/p-9b873fe5.entry.js} +1 -1
- package/www/build/{p-0ccda54f.entry.js → p-a72503d2.entry.js} +1 -1
- package/www/build/{p-1c2331a4.entry.js → p-ac41dd18.entry.js} +1 -1
- package/www/build/p-ac4f1a90.entry.js +1 -0
- package/www/build/{p-60e042a0.entry.js → p-adb293aa.entry.js} +1 -1
- package/{dist/web-components-library/p-7ce57dfd.entry.js → www/build/p-af353020.entry.js} +1 -1
- package/www/build/p-b40d8313.entry.js +1 -0
- package/www/build/{p-a88f4e49.entry.js → p-b5b5e5e3.entry.js} +1 -1
- package/www/build/{p-24ec049a.entry.js → p-bdf5ab5b.entry.js} +1 -1
- package/www/build/{p-4a8fe1e0.entry.js → p-bfa1813d.entry.js} +1 -1
- package/www/build/{p-0610360b.entry.js → p-bfccbf81.entry.js} +1 -1
- package/{dist/web-components-library/p-6db40dac.entry.js → www/build/p-c36ad471.entry.js} +1 -1
- package/www/build/{p-4906f5a6.entry.js → p-cd6ec70f.entry.js} +1 -1
- package/www/build/{p-2d93e9e9.entry.js → p-cdabcb55.entry.js} +1 -1
- package/{dist/web-components-library/p-71f19680.entry.js → www/build/p-ce351931.entry.js} +1 -1
- package/{dist/web-components-library/p-99a76b4d.entry.js → www/build/p-d3ce433b.entry.js} +1 -1
- package/www/build/{p-286c4c99.entry.js → p-db7dbb44.entry.js} +1 -1
- package/www/build/p-de2b2858.entry.js +1 -0
- package/www/build/{p-987f1f8a.entry.js → p-e150820d.entry.js} +1 -1
- package/www/build/{p-24f3a39e.entry.js → p-ea4a063a.entry.js} +1 -1
- package/www/build/{p-bf3ea7b5.entry.js → p-ebcda09e.entry.js} +1 -1
- package/www/build/{p-a4245c8a.entry.js → p-ed40ca4d.entry.js} +1 -1
- package/{dist/web-components-library/p-e30a093f.entry.js → www/build/p-f1eee91e.entry.js} +1 -1
- package/www/build/{p-fd404599.entry.js → p-f24e569d.entry.js} +1 -1
- package/www/build/p-fb7d64f2.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-0b222589.js +0 -1
- package/dist/web-components-library/p-10c3285d.entry.js +0 -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-286a2d0e.entry.js +0 -1
- package/dist/web-components-library/p-6897ca8c.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-0b222589.js +0 -1
- package/www/build/p-10c3285d.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-286a2d0e.entry.js +0 -1
- package/www/build/p-6897ca8c.js +0 -1
- package/www/build/p-99d7ab2f.entry.js +0 -1
- package/www/build/p-ae4eff83.js +0 -1
- package/www/build/p-e9628876.entry.js +0 -1
|
@@ -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 { P as PopoverPositions } from './index-
|
|
2
|
+
import { P as PopoverPositions } from './index-0944317b.js';
|
|
3
3
|
|
|
4
4
|
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}";
|
|
5
5
|
|
|
@@ -85,7 +85,7 @@ const ZTooltipDeprecated = class {
|
|
|
85
85
|
registerInstance(this, hostRef);
|
|
86
86
|
this.positionChange = createEvent(this, "positionChange", 7);
|
|
87
87
|
/** Tooltip position. */
|
|
88
|
-
this.type = PopoverPositions.
|
|
88
|
+
this.type = PopoverPositions.auto;
|
|
89
89
|
/**
|
|
90
90
|
* The open state of the tooltip.
|
|
91
91
|
*/
|
|
@@ -96,7 +96,7 @@ const ZTooltipDeprecated = class {
|
|
|
96
96
|
Object
|
|
97
97
|
.values(PopoverPositions)
|
|
98
98
|
.every((position) => newValue !== position)) {
|
|
99
|
-
this.type = PopoverPositions.
|
|
99
|
+
this.type = PopoverPositions.auto;
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
onPositionChange() {
|
|
@@ -165,29 +165,29 @@ const ZTooltipDeprecated = class {
|
|
|
165
165
|
const availableHeight = availableTop + availableBottom + boundingRect.height;
|
|
166
166
|
const availableWidth = availableLeft + availableRight + boundingRect.width;
|
|
167
167
|
let position = this.type;
|
|
168
|
-
if (position === PopoverPositions.
|
|
168
|
+
if (position === PopoverPositions.auto) {
|
|
169
169
|
/**
|
|
170
170
|
* The `AUTO` position tries to place the tooltip in the "safest" area,
|
|
171
171
|
* where there's more space available.
|
|
172
172
|
*/
|
|
173
173
|
const positions = [];
|
|
174
174
|
if (availableTop / availableHeight > 0.9) {
|
|
175
|
-
positions.unshift(PopoverPositions.
|
|
175
|
+
positions.unshift(PopoverPositions.top);
|
|
176
176
|
}
|
|
177
177
|
else if (availableTop / availableHeight > 0.6) {
|
|
178
|
-
positions.push(PopoverPositions.
|
|
178
|
+
positions.push(PopoverPositions.top);
|
|
179
179
|
}
|
|
180
180
|
else if (availableTop / availableHeight < 0.1) {
|
|
181
|
-
positions.unshift(PopoverPositions.
|
|
181
|
+
positions.unshift(PopoverPositions.bottom);
|
|
182
182
|
}
|
|
183
183
|
else {
|
|
184
|
-
positions.push(PopoverPositions.
|
|
184
|
+
positions.push(PopoverPositions.bottom);
|
|
185
185
|
}
|
|
186
186
|
if (availableLeft / availableWidth > 0.6) {
|
|
187
|
-
positions.push(PopoverPositions.
|
|
187
|
+
positions.push(PopoverPositions.left);
|
|
188
188
|
}
|
|
189
189
|
else if (availableLeft / availableWidth < 0.4) {
|
|
190
|
-
positions.push(PopoverPositions.
|
|
190
|
+
positions.push(PopoverPositions.right);
|
|
191
191
|
}
|
|
192
192
|
position = positions.join("_");
|
|
193
193
|
}
|
|
@@ -199,46 +199,46 @@ const ZTooltipDeprecated = class {
|
|
|
199
199
|
const offsetRight = boundingRect.right - relativeBoundingRect.right;
|
|
200
200
|
const offsetBottom = boundingRect.bottom - relativeBoundingRect.bottom;
|
|
201
201
|
const offsetLeft = boundingRect.left - relativeBoundingRect.left;
|
|
202
|
-
if (position === PopoverPositions.
|
|
203
|
-
position === PopoverPositions.
|
|
204
|
-
position === PopoverPositions.
|
|
202
|
+
if (position === PopoverPositions.top ||
|
|
203
|
+
position === PopoverPositions.top_right ||
|
|
204
|
+
position === PopoverPositions.top_left) {
|
|
205
205
|
style.top = "auto";
|
|
206
206
|
style.bottom = `${offsetBottom + boundingRect.height}px`;
|
|
207
207
|
}
|
|
208
|
-
if (position === PopoverPositions.
|
|
209
|
-
position === PopoverPositions.
|
|
210
|
-
position === PopoverPositions.
|
|
208
|
+
if (position === PopoverPositions.bottom ||
|
|
209
|
+
position === PopoverPositions.bottom_right ||
|
|
210
|
+
position === PopoverPositions.bottom_left) {
|
|
211
211
|
style.top = `${offsetTop + boundingRect.height}px`;
|
|
212
212
|
style.bottom = "auto";
|
|
213
213
|
}
|
|
214
|
-
if (position === PopoverPositions.
|
|
215
|
-
position === PopoverPositions.
|
|
214
|
+
if (position === PopoverPositions.top ||
|
|
215
|
+
position === PopoverPositions.bottom) {
|
|
216
216
|
style.left = `${offsetLeft +
|
|
217
217
|
(boundingRect.width / 2) -
|
|
218
218
|
(this.host.clientWidth / 2)}px`;
|
|
219
219
|
}
|
|
220
|
-
if (position === PopoverPositions.
|
|
221
|
-
position === PopoverPositions.
|
|
220
|
+
if (position === PopoverPositions.top_right ||
|
|
221
|
+
position === PopoverPositions.bottom_right) {
|
|
222
222
|
style.right = "auto";
|
|
223
223
|
style.left = `${offsetLeft + boundingRect.width}px`;
|
|
224
224
|
}
|
|
225
|
-
if (position === PopoverPositions.
|
|
226
|
-
position === PopoverPositions.
|
|
225
|
+
if (position === PopoverPositions.top_left ||
|
|
226
|
+
position === PopoverPositions.bottom_left) {
|
|
227
227
|
style.left = "auto";
|
|
228
228
|
style.right = `${offsetRight + boundingRect.width}px`;
|
|
229
229
|
}
|
|
230
|
-
if (position === PopoverPositions.
|
|
231
|
-
position === PopoverPositions.
|
|
230
|
+
if (position === PopoverPositions.right ||
|
|
231
|
+
position === PopoverPositions.left) {
|
|
232
232
|
style.top = `${offsetTop +
|
|
233
233
|
(boundingRect.height / 2) -
|
|
234
234
|
(this.host.clientHeight / 2)}px`;
|
|
235
235
|
style.bottom = "auto";
|
|
236
236
|
}
|
|
237
|
-
if (position === PopoverPositions.
|
|
237
|
+
if (position === PopoverPositions.right) {
|
|
238
238
|
style.right = "auto";
|
|
239
239
|
style.left = `${offsetLeft + boundingRect.width}px`;
|
|
240
240
|
}
|
|
241
|
-
if (position === PopoverPositions.
|
|
241
|
+
if (position === PopoverPositions.left) {
|
|
242
242
|
style.left = "auto";
|
|
243
243
|
style.right = `${offsetRight + boundingRect.width}px`;
|
|
244
244
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h } from './index-90e18641.js';
|
|
2
|
-
import { P as PopoverPositions } from './index-
|
|
2
|
+
import { P as PopoverPositions } from './index-0944317b.js';
|
|
3
3
|
|
|
4
4
|
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)}";
|
|
5
5
|
|
|
@@ -7,7 +7,7 @@ const ZTooltip = class {
|
|
|
7
7
|
constructor(hostRef) {
|
|
8
8
|
registerInstance(this, hostRef);
|
|
9
9
|
/** Tooltip position. */
|
|
10
|
-
this.position = PopoverPositions.
|
|
10
|
+
this.position = PopoverPositions.auto;
|
|
11
11
|
/** Enable tooltip dark mode. */
|
|
12
12
|
this.dark = false;
|
|
13
13
|
/**
|
|
@@ -130,7 +130,10 @@ export declare enum InputTypeEnum {
|
|
|
130
130
|
email = "email",
|
|
131
131
|
textarea = "textarea",
|
|
132
132
|
checkbox = "checkbox",
|
|
133
|
-
radio = "radio"
|
|
133
|
+
radio = "radio",
|
|
134
|
+
tel = "tel",
|
|
135
|
+
url = "url",
|
|
136
|
+
search = "search"
|
|
134
137
|
}
|
|
135
138
|
export declare type InputStatusBean = keyof typeof InputStatusEnum;
|
|
136
139
|
export declare enum InputStatusEnum {
|
|
@@ -140,19 +143,19 @@ export declare enum InputStatusEnum {
|
|
|
140
143
|
}
|
|
141
144
|
export declare type PopoverPositionBean = keyof typeof PopoverPositions;
|
|
142
145
|
export declare enum PopoverPositions {
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
146
|
+
auto = "auto",
|
|
147
|
+
top = "top",
|
|
148
|
+
right = "right",
|
|
149
|
+
bottom = "bottom",
|
|
150
|
+
left = "left",
|
|
151
|
+
top_right = "top_right",
|
|
152
|
+
top_left = "top_left",
|
|
153
|
+
bottom_right = "bottom_right",
|
|
154
|
+
bottom_left = "bottom_left",
|
|
155
|
+
right_top = "right_top",
|
|
156
|
+
right_bottom = "right_bottom",
|
|
157
|
+
left_top = "left_top",
|
|
158
|
+
left_bottom = "left_bottom"
|
|
156
159
|
}
|
|
157
160
|
export declare enum PopoverPosition {
|
|
158
161
|
"after-down" = "after-down",
|
|
@@ -396,3 +399,10 @@ export declare enum StatusTagStatus {
|
|
|
396
399
|
neutral = "neutral",
|
|
397
400
|
default = "default"
|
|
398
401
|
}
|
|
402
|
+
export declare type InfoRevealPositionBean = keyof typeof InfoRevealPosition;
|
|
403
|
+
export declare enum InfoRevealPosition {
|
|
404
|
+
top_right = "top_right",
|
|
405
|
+
top_left = "top_left",
|
|
406
|
+
bottom_right = "bottom_right",
|
|
407
|
+
bottom_left = "bottom_left"
|
|
408
|
+
}
|
|
@@ -38,6 +38,14 @@ export declare class ZInput {
|
|
|
38
38
|
hasclearicon?: boolean;
|
|
39
39
|
/** render icon (optional): available for text */
|
|
40
40
|
icon?: string;
|
|
41
|
+
/** min number value (optional): available for number */
|
|
42
|
+
min?: number;
|
|
43
|
+
/** max number value (optional): available for number */
|
|
44
|
+
max?: number;
|
|
45
|
+
/** step number value (optional): available for number */
|
|
46
|
+
step?: number;
|
|
47
|
+
/** pattern value (optional): available for tel, text, search, url, email, password*/
|
|
48
|
+
pattern?: string;
|
|
41
49
|
isTyping: boolean;
|
|
42
50
|
passwordHidden: boolean;
|
|
43
51
|
private timer;
|
|
@@ -74,6 +82,14 @@ export declare class ZInput {
|
|
|
74
82
|
autocomplete: string;
|
|
75
83
|
onInput: (e: any) => void;
|
|
76
84
|
};
|
|
85
|
+
getNumberAttributes(type: InputTypeBean): {
|
|
86
|
+
min: number;
|
|
87
|
+
max: number;
|
|
88
|
+
step: number;
|
|
89
|
+
};
|
|
90
|
+
getPatternAttribute(type: InputTypeBean): {
|
|
91
|
+
pattern: string;
|
|
92
|
+
};
|
|
77
93
|
renderInputText(type?: InputTypeBean): any;
|
|
78
94
|
renderLabel(): any;
|
|
79
95
|
renderIcons(): any;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { InfoRevealPositionBean } from "../../beans";
|
|
2
|
+
export declare class ZInfoReveal {
|
|
3
|
+
el: HTMLElement;
|
|
4
|
+
/** Name of the icon for the open button */
|
|
5
|
+
icon?: string;
|
|
6
|
+
position?: InfoRevealPositionBean;
|
|
7
|
+
/** Text that appears on closed panel next to the open button. */
|
|
8
|
+
label?: string;
|
|
9
|
+
/** Whether the info panel is open. */
|
|
10
|
+
open: boolean;
|
|
11
|
+
/** Current index for the info queue. */
|
|
12
|
+
currentIndex: number;
|
|
13
|
+
watchItems(): void;
|
|
14
|
+
/**
|
|
15
|
+
* Open the info box.
|
|
16
|
+
*/
|
|
17
|
+
openInfoBox(): void;
|
|
18
|
+
/**
|
|
19
|
+
* Close the info box.
|
|
20
|
+
*/
|
|
21
|
+
closeInfoBox(): void;
|
|
22
|
+
/**
|
|
23
|
+
* Navigate slotted info.
|
|
24
|
+
* It closes the info box after the last info has been navigated.
|
|
25
|
+
*/
|
|
26
|
+
next(): void;
|
|
27
|
+
render(): any;
|
|
28
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { PopoverPositionBean } from "../../beans";
|
|
3
3
|
/**
|
|
4
4
|
* Popover component.
|
|
5
5
|
*
|
|
@@ -10,7 +10,7 @@ import { PopoverPositions } from "../../beans";
|
|
|
10
10
|
*/
|
|
11
11
|
export declare class ZPopover {
|
|
12
12
|
/** Popover position. */
|
|
13
|
-
position:
|
|
13
|
+
position: PopoverPositionBean;
|
|
14
14
|
/**
|
|
15
15
|
* The open state of the popover.
|
|
16
16
|
*/
|
|
@@ -34,7 +34,7 @@ export declare class ZPopover {
|
|
|
34
34
|
/**
|
|
35
35
|
* The current position of the popover.
|
|
36
36
|
*/
|
|
37
|
-
currentPosition?:
|
|
37
|
+
currentPosition?: PopoverPositionBean;
|
|
38
38
|
/**
|
|
39
39
|
* Position change event.
|
|
40
40
|
*/
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
8
|
import { AlertTypes, LicenseTypeEnum, MenuItem as MenuItem1, PopoverPositions as PopoverPositions1 } from "./beans/index";
|
|
9
|
-
import { AvatarSize, ButtonSizeEnum, ButtonVariantBean, ButtonVariantEnum, CardVariants, ComboItemBean, DictionaryData, DividerOrientation, DividerSize, ExpandableListButtonAlign, ExpandableListStyle, HeaderUserData, InputStatusBean, InputTypeBean, LabelPosition, ListDividerType, ListSize, MenuItem, NavigationTabsOrientation, NavigationTabsSize, NotificationType, OffCanvasVariantsEnum, PocketStatus, PopoverBorderRadius, PopoverPosition, PopoverPositions, PopoverShadow, SelectItemBean, Size, SkipToContentLink, SortDirection, StatusTagStatus, ThemeVariant, ThemeVariantBean, ToastNotificationPositionsTypes, ToastNotificationTransitionTypes, ToastNotificationTypes, TransitionDirectionEnum, ZChipType, ZDatePickerMode, ZFileUploadTypeEnum, ZSectionTitleDividerPosition, ZTableRowExpandedType } from "./beans";
|
|
9
|
+
import { AvatarSize, ButtonSizeEnum, ButtonVariantBean, ButtonVariantEnum, CardVariants, ComboItemBean, DictionaryData, DividerOrientation, DividerSize, ExpandableListButtonAlign, ExpandableListStyle, HeaderUserData, InfoRevealPositionBean, InputStatusBean, InputTypeBean, LabelPosition, ListDividerType, ListSize, MenuItem, NavigationTabsOrientation, NavigationTabsSize, NotificationType, OffCanvasVariantsEnum, PocketStatus, PopoverBorderRadius, PopoverPosition, PopoverPositionBean, PopoverPositions, PopoverShadow, SelectItemBean, Size, SkipToContentLink, SortDirection, StatusTagStatus, ThemeVariant, ThemeVariantBean, ToastNotificationPositionsTypes, ToastNotificationTransitionTypes, ToastNotificationTypes, TransitionDirectionEnum, ZChipType, ZDatePickerMode, ZFileUploadTypeEnum, ZSectionTitleDividerPosition, ZTableRowExpandedType } from "./beans";
|
|
10
10
|
import { ListItemBean } from "./beans/index.js";
|
|
11
11
|
import { ZTypographyLevels } from "./components/typography/z-typography/index";
|
|
12
12
|
export namespace Components {
|
|
@@ -531,6 +531,17 @@ export namespace Components {
|
|
|
531
531
|
*/
|
|
532
532
|
"isclosable": boolean;
|
|
533
533
|
}
|
|
534
|
+
interface ZInfoReveal {
|
|
535
|
+
/**
|
|
536
|
+
* Name of the icon for the open button
|
|
537
|
+
*/
|
|
538
|
+
"icon"?: string;
|
|
539
|
+
/**
|
|
540
|
+
* Text that appears on closed panel next to the open button.
|
|
541
|
+
*/
|
|
542
|
+
"label"?: string;
|
|
543
|
+
"position"?: InfoRevealPositionBean;
|
|
544
|
+
}
|
|
534
545
|
interface ZInput {
|
|
535
546
|
/**
|
|
536
547
|
* the input aria-label
|
|
@@ -576,14 +587,26 @@ export namespace Components {
|
|
|
576
587
|
* the input label position: available for checkbox, radio
|
|
577
588
|
*/
|
|
578
589
|
"labelPosition"?: LabelPosition;
|
|
590
|
+
/**
|
|
591
|
+
* max number value (optional): available for number
|
|
592
|
+
*/
|
|
593
|
+
"max"?: number;
|
|
579
594
|
/**
|
|
580
595
|
* input helper message (optional): available for text, password, number, email, textarea - if set to `false` message won't be displayed
|
|
581
596
|
*/
|
|
582
597
|
"message"?: string | boolean;
|
|
598
|
+
/**
|
|
599
|
+
* min number value (optional): available for number
|
|
600
|
+
*/
|
|
601
|
+
"min"?: number;
|
|
583
602
|
/**
|
|
584
603
|
* the input name
|
|
585
604
|
*/
|
|
586
605
|
"name"?: string;
|
|
606
|
+
/**
|
|
607
|
+
* pattern value (optional): available for tel, text, search, url, email, password
|
|
608
|
+
*/
|
|
609
|
+
"pattern"?: string;
|
|
587
610
|
/**
|
|
588
611
|
* the input placeholder (optional)
|
|
589
612
|
*/
|
|
@@ -600,6 +623,10 @@ export namespace Components {
|
|
|
600
623
|
* the input status (optional): available for text, password, number, email, textarea
|
|
601
624
|
*/
|
|
602
625
|
"status"?: InputStatusBean;
|
|
626
|
+
/**
|
|
627
|
+
* step number value (optional): available for number
|
|
628
|
+
*/
|
|
629
|
+
"step"?: number;
|
|
603
630
|
/**
|
|
604
631
|
* input types
|
|
605
632
|
*/
|
|
@@ -1513,7 +1540,7 @@ export namespace Components {
|
|
|
1513
1540
|
/**
|
|
1514
1541
|
* Popover position.
|
|
1515
1542
|
*/
|
|
1516
|
-
"position":
|
|
1543
|
+
"position": PopoverPositionBean;
|
|
1517
1544
|
/**
|
|
1518
1545
|
* Whether to show popover's arrow.
|
|
1519
1546
|
*/
|
|
@@ -2170,6 +2197,12 @@ declare global {
|
|
|
2170
2197
|
prototype: HTMLZInfoBoxElement;
|
|
2171
2198
|
new (): HTMLZInfoBoxElement;
|
|
2172
2199
|
};
|
|
2200
|
+
interface HTMLZInfoRevealElement extends Components.ZInfoReveal, HTMLStencilElement {
|
|
2201
|
+
}
|
|
2202
|
+
var HTMLZInfoRevealElement: {
|
|
2203
|
+
prototype: HTMLZInfoRevealElement;
|
|
2204
|
+
new (): HTMLZInfoRevealElement;
|
|
2205
|
+
};
|
|
2173
2206
|
interface HTMLZInputElement extends Components.ZInput, HTMLStencilElement {
|
|
2174
2207
|
}
|
|
2175
2208
|
var HTMLZInputElement: {
|
|
@@ -2648,6 +2681,7 @@ declare global {
|
|
|
2648
2681
|
"z-icon": HTMLZIconElement;
|
|
2649
2682
|
"z-icon-package": HTMLZIconPackageElement;
|
|
2650
2683
|
"z-info-box": HTMLZInfoBoxElement;
|
|
2684
|
+
"z-info-reveal": HTMLZInfoRevealElement;
|
|
2651
2685
|
"z-input": HTMLZInputElement;
|
|
2652
2686
|
"z-input-deprecated": HTMLZInputDeprecatedElement;
|
|
2653
2687
|
"z-input-label": HTMLZInputLabelElement;
|
|
@@ -3310,6 +3344,17 @@ declare namespace LocalJSX {
|
|
|
3310
3344
|
*/
|
|
3311
3345
|
"onInfoBoxClose"?: (event: CustomEvent<any>) => void;
|
|
3312
3346
|
}
|
|
3347
|
+
interface ZInfoReveal {
|
|
3348
|
+
/**
|
|
3349
|
+
* Name of the icon for the open button
|
|
3350
|
+
*/
|
|
3351
|
+
"icon"?: string;
|
|
3352
|
+
/**
|
|
3353
|
+
* Text that appears on closed panel next to the open button.
|
|
3354
|
+
*/
|
|
3355
|
+
"label"?: string;
|
|
3356
|
+
"position"?: InfoRevealPositionBean;
|
|
3357
|
+
}
|
|
3313
3358
|
interface ZInput {
|
|
3314
3359
|
/**
|
|
3315
3360
|
* the input aria-label
|
|
@@ -3351,10 +3396,18 @@ declare namespace LocalJSX {
|
|
|
3351
3396
|
* the input label position: available for checkbox, radio
|
|
3352
3397
|
*/
|
|
3353
3398
|
"labelPosition"?: LabelPosition;
|
|
3399
|
+
/**
|
|
3400
|
+
* max number value (optional): available for number
|
|
3401
|
+
*/
|
|
3402
|
+
"max"?: number;
|
|
3354
3403
|
/**
|
|
3355
3404
|
* input helper message (optional): available for text, password, number, email, textarea - if set to `false` message won't be displayed
|
|
3356
3405
|
*/
|
|
3357
3406
|
"message"?: string | boolean;
|
|
3407
|
+
/**
|
|
3408
|
+
* min number value (optional): available for number
|
|
3409
|
+
*/
|
|
3410
|
+
"min"?: number;
|
|
3358
3411
|
/**
|
|
3359
3412
|
* the input name
|
|
3360
3413
|
*/
|
|
@@ -3375,6 +3428,10 @@ declare namespace LocalJSX {
|
|
|
3375
3428
|
* Emitted when user stops typing, returns value, validity
|
|
3376
3429
|
*/
|
|
3377
3430
|
"onStopTyping"?: (event: CustomEvent<any>) => void;
|
|
3431
|
+
/**
|
|
3432
|
+
* pattern value (optional): available for tel, text, search, url, email, password
|
|
3433
|
+
*/
|
|
3434
|
+
"pattern"?: string;
|
|
3378
3435
|
/**
|
|
3379
3436
|
* the input placeholder (optional)
|
|
3380
3437
|
*/
|
|
@@ -3391,6 +3448,10 @@ declare namespace LocalJSX {
|
|
|
3391
3448
|
* the input status (optional): available for text, password, number, email, textarea
|
|
3392
3449
|
*/
|
|
3393
3450
|
"status"?: InputStatusBean;
|
|
3451
|
+
/**
|
|
3452
|
+
* step number value (optional): available for number
|
|
3453
|
+
*/
|
|
3454
|
+
"step"?: number;
|
|
3394
3455
|
/**
|
|
3395
3456
|
* input types
|
|
3396
3457
|
*/
|
|
@@ -4431,7 +4492,7 @@ declare namespace LocalJSX {
|
|
|
4431
4492
|
/**
|
|
4432
4493
|
* Popover position.
|
|
4433
4494
|
*/
|
|
4434
|
-
"position"?:
|
|
4495
|
+
"position"?: PopoverPositionBean;
|
|
4435
4496
|
/**
|
|
4436
4497
|
* Whether to show popover's arrow.
|
|
4437
4498
|
*/
|
|
@@ -4956,6 +5017,7 @@ declare namespace LocalJSX {
|
|
|
4956
5017
|
"z-icon": ZIcon;
|
|
4957
5018
|
"z-icon-package": ZIconPackage;
|
|
4958
5019
|
"z-info-box": ZInfoBox;
|
|
5020
|
+
"z-info-reveal": ZInfoReveal;
|
|
4959
5021
|
"z-input": ZInput;
|
|
4960
5022
|
"z-input-deprecated": ZInputDeprecated;
|
|
4961
5023
|
"z-input-label": ZInputLabel;
|
|
@@ -5069,6 +5131,7 @@ declare module "@stencil/core" {
|
|
|
5069
5131
|
"z-icon": LocalJSX.ZIcon & JSXBase.HTMLAttributes<HTMLZIconElement>;
|
|
5070
5132
|
"z-icon-package": LocalJSX.ZIconPackage & JSXBase.HTMLAttributes<HTMLZIconPackageElement>;
|
|
5071
5133
|
"z-info-box": LocalJSX.ZInfoBox & JSXBase.HTMLAttributes<HTMLZInfoBoxElement>;
|
|
5134
|
+
"z-info-reveal": LocalJSX.ZInfoReveal & JSXBase.HTMLAttributes<HTMLZInfoRevealElement>;
|
|
5072
5135
|
"z-input": LocalJSX.ZInput & JSXBase.HTMLAttributes<HTMLZInputElement>;
|
|
5073
5136
|
"z-input-deprecated": LocalJSX.ZInputDeprecated & JSXBase.HTMLAttributes<HTMLZInputDeprecatedElement>;
|
|
5074
5137
|
"z-input-label": LocalJSX.ZInputLabel & JSXBase.HTMLAttributes<HTMLZInputLabelElement>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as o}from"./p-
|
|
1
|
+
import{c as o}from"./p-122f0f28.js";import"./p-9247f214.js";import"./p-d69e14fb.js";const p={colorFromId:o};export{p as Utils}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as e,H as n,g as i,c as a}from"./p-98268a57.js";import{
|
|
1
|
+
import{r as t,h as e,H as n,g as i,c as a}from"./p-98268a57.js";import{E as o,H as s,z as c,b as l,J as r,u as h}from"./p-9247f214.js";const u=class{constructor(e){t(this,e),this.size=o.medium}setChildrenSizeType(){const t=this.host.children;for(let e=0;e<t.length-1;e++)t[e].setAttribute("size",this.size)}componentDidLoad(){this.setChildrenSizeType()}render(){return e(n,{role:"list"},e("slot",null))}get host(){return i(this)}};u.style=":host{font-family:var(--font-family-sans);font-weight:var(--font-rg);display:flex;flex-direction:column}";const d=class{constructor(e){t(this,e),this.accessibleFocus=a(this,"accessibleFocus",7),this.clickItem=a(this,"clickItem",7),this.alignButton=s.left,this.clickable=!1,this.dividerColor="color-surface03",this.dividerType=c.none,this.dividerSize=l.small,this.expandable=!1,this.expandableStyle=r.accordion,this.size=o.medium,this.color="none",this.disabled=!1,this.isContextualMenu=!1,this.showInnerContent=!1,this.openElementConfig={accordion:{open:"minus-circled",close:"plus-circled"},menu:{open:"chevron-up",close:"chevron-down"}},this.handleClick=this.handleClick.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this)}accessibleFocusHandler(t){this.listElementId===t.detail&&this.host.shadowRoot.getElementById(`z-list-element-id-${t.detail}`).focus()}handleClick(){this.clickItem.emit(this.listElementId),this.expandable&&(this.showInnerContent=!this.showInnerContent)}calculateClass(){return this.isContextualMenu?"container-contextual-menu":"container"}handleKeyDown(t){const e=t.code===h.ENTER;switch(t.code){case h.ARROW_DOWN:t.preventDefault(),this.accessibleFocus.emit(this.listElementId+1);break;case h.ARROW_UP:t.preventDefault(),this.accessibleFocus.emit(this.listElementId-1);break;case h.ENTER:t.preventDefault(),this.clickItem.emit(this.listElementId)}this.expandable&&e&&(this.showInnerContent=!this.showInnerContent)}renderExpandableButton(){return this.expandable?e("z-icon",{name:this.showInnerContent?this.openElementConfig[this.expandableStyle].open:this.openElementConfig[this.expandableStyle].close}):null}renderExpandedContent(){return this.expandable?e("div",{class:{"z-list-element-inner-container":!0,expanded:this.showInnerContent}},e("slot",{name:"inner-content"})):null}render(){return e(n,{role:"listitem","aria-expanded":this.expandable?this.showInnerContent:null,onClick:this.handleClick,onKeyDown:this.handleKeyDown,clickable:this.clickable&&!this.disabled,tabIndex:this.isContextualMenu?null:"0"},e("div",{class:`${this.calculateClass()}`,style:{color:`var(--${this.color})`},tabindex:this.isContextualMenu?"0":"-1",id:`z-list-element-id-${this.listElementId}`},e("div",{class:"z-list-element-container"},this.renderExpandableButton(),e("slot",null)),this.renderExpandedContent()),this.dividerType===c.element&&e("z-divider",{color:this.dividerColor,size:this.dividerSize}))}get host(){return i(this)}};d.style=':host{outline:none}:host>.container,:host>.container-contextual-menu{--background-color-list-element:var(--bg-white);--background-hover-color-list-element:var(--color-surface02);--background-active-color-list-element:var(--color-surface02);font-family:var(--font-family-sans);font-weight:var(--font-rg);outline:none;display:flex;flex-direction:column;justify-content:center;box-sizing:border-box}:host([size="small"])>.container{padding:calc(var(--space-unit) / 2) 0;min-height:calc(var(--space-unit) * 4)}:host([size="medium"])>.container{padding:var(--space-unit) 0;min-height:calc(var(--space-unit) * 5)}:host([size="large"])>.container{padding:calc(var(--space-unit) * 2) 0;min-height:calc(var(--space-unit) * 7)}:host([size="x-large"])>.container{padding:calc(var(--space-unit) * 3) 0;min-height:calc(var(--space-unit) * 9)}:host([expandable])>.container,:host([expandable])>.container-contextual-menu,:host([clickable])>.container,:host([clickable])>.container-contextual-menu{cursor:pointer}:host([expandable]:hover)>.container,:host([expandable]:hover)>.container-contextual-menu,:host([clickable]:hover)>.container,:host([clickable]:hover)>.container-contextual-menu{background-color:var(--background-hover-color-list-element)}:host([expandable]:focus:focus-visible)>.container,:host([expandable]:focus:focus-visible)>.container-contextual-menu,:host([clickable]:focus:focus-visible)>.container,:host([clickable]:focus:focus-visible)>.container-contextual-menu{box-shadow:var(--shadow-focus-primary)}:host([expandable]:active)>.container,:host([expandable]:active)>.container-contextual-menu,:host([clickable]:active)>.container,:host([clickable]:active)>.container-contextual-menu{background-color:var(--background-active-color-list-element)}:host([align-button="left"][expandable])>.container>.z-list-element-container,:host([align-button="left"][expandable])>.container-contextual-menu>.z-list-element-container{display:flex}:host([align-button="right"][expandable])>.container>.z-list-element-container,:host([align-button="right"][expandable])>.container-contextual-menu>.z-list-element-container{display:flex;flex-direction:row-reverse;justify-content:space-between}:host([align-button="left"][expandable])>.container>.z-list-element-container>z-icon,:host([align-button="left"][expandable])>.container-contextual-menu>.z-list-element-container>z-icon{margin-right:var(--space-unit)}:host([align-button="right"][expandable])>.container>.z-list-element-container>z-icon,:host([align-button="right"][expandable])>.container-contextual-menu>.z-list-element-container>z-icon{margin-left:var(--space-unit)}:host>.container>.z-list-element-inner-container,:host>.container-contextual-menu>.z-list-element-inner-container{display:none}:host>.container>.z-list-element-inner-container.expanded,:host>.container-contextual-menu>.z-list-element-inner-container.expanded{display:block}:host([clickable]:hover)>.container-contextual-menu{background-color:var(--color-surface03)}.container-contextual-menu:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none}';export{u as z_list,d as z_list_element}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,c as t,h as r,g as i}from"./p-98268a57.js";import{I as a}from"./p-6897ca8c.js";import{r as c}from"./p-d41ca4c3.js";import"./p-d69e14fb.js";const s=class{constructor(r){e(this,r),this.inputChange=t(this,"inputChange",7),this.startTyping=t(this,"startTyping",7),this.stopTyping=t(this,"stopTyping",7),this.inputCheck=t(this,"inputCheck",7),this.optionSelect=t(this,"optionSelect",7),this.htmlid=`id-${c()}`,this.disabled=!1,this.readonly=!1,this.required=!1,this.checked=!1,this.hasmessage=!0,this.labelafter=!0,this.typingtimeout=300,this.multiple=!1,this.hasclearicon=!0,this.isTyping=!1,this.textareaWrapperHover="",this.textareaWrapperFocus="",this.passwordHidden=!0}inputCheckListener(e){const t=e.detail;switch(this.type){case a.radio:t.type===a.radio&&t.name===this.name&&t.id!==this.htmlid&&(this.checked=!1);default:return}}async getValue(){switch(this.type){case"select":return this.selectElem.getValue();default:return this.value}}async setValue(e){switch(this.type){case"select":this.selectElem.setValue(e);break;default:"string"==typeof e&&(this.value=e)}}async isChecked(){switch(this.type){case a.checkbox:case a.radio:return this.checked;default:return!1}}emitInputChange(e,t){this.isTyping||this.emitStartTyping();let r={};r=this.getValidity(this.type===a.textarea?"textarea":"input"),this.value=e,this.inputChange.emit({value:e,keycode:t,validity:r}),clearTimeout(this.timer),this.timer=setTimeout((()=>{this.emitStopTyping(this.value,r)}),this.typingtimeout)}emitStartTyping(){this.isTyping=!0,this.startTyping.emit()}emitStopTyping(e,t){this.isTyping=!1,this.stopTyping.emit({value:e,validity:t})}emitInputCheck(e){this.inputCheck.emit({id:this.htmlid,checked:e,type:this.type,name:this.name,value:this.value,validity:this.getValidity("input")})}getValidity(e){return this.hostElement.querySelector(e).validity}getTextAttributes(){const e={id:this.htmlid,name:this.name,placeholder:this.placeholder,value:this.value,disabled:this.disabled,readonly:this.readonly,required:this.required,title:this.htmltitle,class:[`input_${this.status||"default"}`,this.isTyping&&"istyping",!this.isTyping&&this.value&&"filled"].filter(Boolean).join(" "),onInput:e=>this.emitInputChange(e.target.value,e.keyCode)};return this.autocomplete&&(e.autocomplete=this.autocomplete),e}renderInputText(e=a.text){const t=this.getTextAttributes();return(this.icon||e===a.password)&&(t.class+=" hasIcon"),this.hasclearicon&&(t.class+=" hasClearIcon"),r("div",{class:"textWrapper"},this.renderLabel(),r("div",null,r("input",Object.assign({type:e!==a.password||this.passwordHidden?e:a.text},t,{"aria-label":this.ariaLabel||this.label})),this.renderIcons()),this.renderMessage())}renderLabel(){if(this.label)return r("z-input-label",{htmlfor:this.htmlid,value:this.label,disabled:this.disabled,"aria-label":this.label,id:`${this.htmlid}_label`})}renderIcons(){return r("span",{class:{iconsWrapper:!0,disabled:this.disabled}},this.renderResetIcon(),this.renderIcon())}renderIcon(){return this.type===a.password?this.renderShowHidePassword():this.icon?r("z-icon",{class:"inputIcon",name:this.icon}):void 0}renderResetIcon(){if(this.hasclearicon&&this.value&&!this.disabled&&!this.readonly)return r("z-icon",{class:"resetIcon",name:"multiply",onClick:e=>this.emitInputChange("",e.keyCode)})}renderShowHidePassword(){return r("z-icon",{class:"showHidePasswordIcon",name:this.passwordHidden?"view-filled":"view-off-filled",onClick:()=>this.passwordHidden=!this.passwordHidden})}renderMessage(){if(this.hasmessage)return r("z-input-message",{message:this.message,status:this.status})}renderTextarea(){const e=this.getTextAttributes();return r("div",{class:"textWrapper"},this.renderLabel(),r("div",{class:["textareaWrapper",e.class,e.disabled&&"disabled",e.readonly&&"readonly",this.isTyping&&"istyping",this.textareaWrapperFocus,this.textareaWrapperHover].filter(Boolean).join(" ")},r("textarea",Object.assign({},e,{onFocus:()=>this.textareaWrapperFocus="focus",onBlur:()=>this.textareaWrapperFocus="",onMouseOver:()=>this.textareaWrapperHover="hover",onMouseOut:()=>this.textareaWrapperHover="","aria-label":this.ariaLabel||this.label}))),this.renderMessage())}handleCheck(e){this.checked=e.target.checked,this.emitInputCheck(this.checked)}renderCheckbox(){return r("div",{class:"checkboxWrapper"},r("input",{id:this.htmlid,type:"checkbox",name:this.name,checked:this.checked,disabled:this.disabled,readonly:this.readonly,required:this.required,onChange:this.handleCheck.bind(this),value:this.value}),r("label",{htmlFor:this.htmlid,class:{checkboxLabel:!0,after:this.labelafter,before:!this.labelafter}},r("z-icon",{name:this.checked?"checkbox-checked":"checkbox","aria-hidden":"true"}),this.label&&r("span",{innerHTML:this.label})))}renderRadio(){return r("div",{class:"radioWrapper"},r("input",{id:this.htmlid,type:"radio",name:this.name,checked:this.checked,disabled:this.disabled,readonly:this.readonly,onChange:this.handleCheck.bind(this),value:this.value}),r("label",{htmlFor:this.htmlid,class:{radioLabel:!0,after:this.labelafter,before:!this.labelafter}},r("z-icon",{name:this.checked?"radio-button-checked":"radio-button","aria-hidden":"true"}),this.label&&r("span",{innerHTML:this.label})))}renderSelect(){return r("z-select",{htmlid:this.htmlid,items:this.items,name:this.name,label:this.label,"aria-label":this.ariaLabel,disabled:this.disabled,readonly:this.readonly,placeholder:this.placeholder,htmltitle:this.htmltitle,status:this.status,message:!!this.hasmessage&&this.message,autocomplete:this.autocomplete,ref:e=>this.selectElem=e})}render(){switch(this.type){case a.text:case a.password:case a.number:case a.email:return this.renderInputText(this.type);case a.textarea:return this.renderTextarea();case a.checkbox:return this.renderCheckbox();case a.radio:return this.renderRadio();case"select":return this.renderSelect();default:return this.renderInputText()}}get hostElement(){return i(this)}};s.style='.sc-z-input-deprecated-h{display:inline-block;width:inherit}input.sc-z-input-deprecated::-ms-clear,input.sc-z-input-deprecated::-ms-reveal{display:none}.sc-z-input-deprecated-h input.sc-z-input-deprecated::-ms-clear,.sc-z-input-deprecated-h input.sc-z-input-deprecated::-ms-reveal{display:none}input.sc-z-input-deprecated,textarea.sc-z-input-deprecated,.textareaWrapper.sc-z-input-deprecated,ul[role="listbox"].sc-z-input-deprecated{background:var(--color-input-field01);border-radius:var(--border-radius-small);border:var(--border-size-small) solid var(--color-surface04);box-sizing:border-box;color:var(--color-text02);fill:var(--color-icon02);font-family:var(--font-family-sans);font-weight:var(--font-rg);font-size:var(--font-size-3);outline:none}input.sc-z-input-deprecated:focus:focus-visible,li[role="option"].sc-z-input-deprecated:focus:focus-visible,.focus.sc-z-input-deprecated{box-shadow:var(--shadow-focus-primary)}.filled.sc-z-input-deprecated{border-color:var(--color-surface05)}.input_success.sc-z-input-deprecated,.input_success.sc-z-input-deprecated:hover,.input_success.hover.sc-z-input-deprecated{background:var(--color-success-inverse);border-color:var(--color-success01);fill:var(--color-success01)}.input_error.sc-z-input-deprecated,.input_error.sc-z-input-deprecated:hover,.input_error.hover.sc-z-input-deprecated{background:var(--color-error-inverse);border-color:var(--color-error01);fill:var(--color-error01)}.input_warning.sc-z-input-deprecated,.input_warning.sc-z-input-deprecated:hover,.input_warning.hover.sc-z-input-deprecated{background:var(--color-warning-inverse);border-color:var(--color-warning01);fill:var(--color-warning01)}input[readonly].sc-z-input-deprecated,.readonly.sc-z-input-deprecated{border-color:var(--color-disabled01);fill:var(--color-disabled01);pointer-events:none}input.sc-z-input-deprecated:disabled,.disabled.sc-z-input-deprecated,.filled.sc-z-input-deprecated:disabled{border-color:var(--color-disabled01);color:var(--color-disabled02);fill:var(--color-disabled01);pointer-events:none;box-shadow:none}input.sc-z-input-deprecated::placeholder,textarea.sc-z-input-deprecated::placeholder{color:var(--color-text05)}.sc-z-input-deprecated::-webkit-input-placeholder,.sc-z-input-deprecated::-webkit-textarea-placeholder{color:var(--color-text05)}.sc-z-input-deprecated:-ms-input-placeholder,.sc-z-input-deprecated:-ms-textarea-placeholder{color:var(--color-text05)}.sc-z-input-deprecated::-moz-placeholder{color:var(--color-text05)}.sc-z-input-deprecated:-moz-placeholder{color:var(--color-text05)}.textWrapper.sc-z-input-deprecated>div.sc-z-input-deprecated{fill:var(--color-icon02)}.textWrapper.sc-z-input-deprecated>div.sc-z-input-deprecated>input.sc-z-input-deprecated{width:100%;height:calc(var(--space-unit) * 5.5);margin:0;padding:0 calc(var(--space-unit) * 4.5) 0 calc(var(--space-unit) * 1.5);box-sizing:border-box}.textWrapper.sc-z-input-deprecated>div.sc-z-input-deprecated>input.hasIcon.sc-z-input-deprecated,.textWrapper.sc-z-input-deprecated>div.sc-z-input-deprecated>input.hasClearIcon.sc-z-input-deprecated{padding-right:calc(var(--space-unit) * 4)}.textWrapper.sc-z-input-deprecated>div.sc-z-input-deprecated>input.hasIcon.hasClearIcon.sc-z-input-deprecated{padding-right:calc(var(--space-unit) * 7)}.textWrapper.sc-z-input-deprecated>div.sc-z-input-deprecated{position:relative;z-index:1}.textWrapper.sc-z-input-deprecated .iconsWrapper.sc-z-input-deprecated{position:absolute;bottom:calc(var(--space-unit) * 1.5);right:calc(var(--space-unit) * 1.5);display:flex;z-index:2}.textWrapper.sc-z-input-deprecated .iconsWrapper.sc-z-input-deprecated>z-icon.sc-z-input-deprecated{--z-icon-width:18px;--z-icon-height:18px;display:block;margin-left:calc(var(--space-unit) * 0.5)}.textWrapper.sc-z-input-deprecated .iconsWrapper.sc-z-input-deprecated>z-icon.resetIcon.sc-z-input-deprecated,.textWrapper.sc-z-input-deprecated .iconsWrapper.sc-z-input-deprecated>z-icon.showHidePasswordIcon.sc-z-input-deprecated{cursor:pointer}.textWrapper.sc-z-input-deprecated>div.sc-z-input-deprecated>input.sc-z-input-deprecated:-webkit-autofill,.textWrapper.sc-z-input-deprecated>div.sc-z-input-deprecated>input.sc-z-input-deprecated:-webkit-autofill:hover,.textWrapper.sc-z-input-deprecated>div.sc-z-input-deprecated>input.sc-z-input-deprecated:-webkit-autofill:focus,.textWrapper.sc-z-input-deprecated>div.sc-z-input-deprecated>input.sc-z-input-deprecated:-webkit-autofill:active{-webkit-background-clip:text !important}.textareaWrapper.sc-z-input-deprecated{padding:calc(var(--space-unit) * 1.5);scrollbar-color:var(--color-primary01) transparent}textarea.sc-z-input-deprecated::-webkit-scrollbar{background:linear-gradient(\n to right,\n transparent 0 3px,\n var(--gray200) 3px 7px,\n transparent 7px 10px\n );width:10px;border-radius:var(--border-radius)}textarea.sc-z-input-deprecated::-webkit-scrollbar-track{background-color:transparent}textarea.sc-z-input-deprecated::-webkit-scrollbar-thumb{width:10px;background-color:var(--color-primary01);border-radius:var(--border-radius)}textarea.sc-z-input-deprecated::-webkit-scrollbar-thumb:hover{background-color:var(--color-hover-primary)}textarea.sc-z-input-deprecated{min-height:132px;width:100%;margin:0;padding:0;border:none;resize:none}.radioWrapper.sc-z-input-deprecated,.checkboxWrapper.sc-z-input-deprecated{display:inline-flex;flex-direction:row;align-items:center;font-family:var(--font-family-sans);position:relative;color:var(--color-text01);fill:var(--color-primary01)}.radioWrapper.sc-z-input-deprecated:hover,.checkboxWrapper.sc-z-input-deprecated:hover{color:var(--color-hover-primary);fill:currentColor}.radioWrapper.sc-z-input-deprecated>input.sc-z-input-deprecated,.checkboxWrapper.sc-z-input-deprecated>input.sc-z-input-deprecated{position:absolute;opacity:0;z-index:-1;pointer-events:none}.radioWrapper.sc-z-input-deprecated .radioLabel.sc-z-input-deprecated,.checkboxWrapper.sc-z-input-deprecated .checkboxLabel.sc-z-input-deprecated{display:inline-flex;align-items:center;margin:0;line-height:1;color:inherit;font-family:inherit;font-weight:inherit;font-size:inherit;text-transform:inherit}.radioWrapper.sc-z-input-deprecated input.sc-z-input-deprecated:not(:disabled)+.radioLabel.sc-z-input-deprecated,.checkboxWrapper.sc-z-input-deprecated input.sc-z-input-deprecated:not(:disabled)+.checkboxLabel.sc-z-input-deprecated{cursor:pointer}.radioWrapper.sc-z-input-deprecated .radioLabel.sc-z-input-deprecated z-icon.sc-z-input-deprecated,.checkboxWrapper.sc-z-input-deprecated .checkboxLabel.sc-z-input-deprecated z-icon.sc-z-input-deprecated{fill:inherit;cursor:pointer}.radioWrapper.sc-z-input-deprecated .radioLabel.after.sc-z-input-deprecated,.checkboxWrapper.sc-z-input-deprecated .checkboxLabel.after.sc-z-input-deprecated{flex-direction:row}.radioWrapper.sc-z-input-deprecated .radioLabel.before.sc-z-input-deprecated,.checkboxWrapper.sc-z-input-deprecated .checkboxLabel.before.sc-z-input-deprecated{flex-direction:row-reverse}.radioWrapper.sc-z-input-deprecated .radioLabel.after.sc-z-input-deprecated>span.sc-z-input-deprecated,.checkboxWrapper.sc-z-input-deprecated .checkboxLabel.after.sc-z-input-deprecated>span.sc-z-input-deprecated{margin-left:var(--space-unit)}.radioWrapper.sc-z-input-deprecated .radioLabel.before.sc-z-input-deprecated>span.sc-z-input-deprecated,.checkboxWrapper.sc-z-input-deprecated .checkboxLabel.before.sc-z-input-deprecated>span.sc-z-input-deprecated{margin-right:var(--space-unit)}.radioWrapper.sc-z-input-deprecated>input.sc-z-input-deprecated:focus:focus-visible+.radioLabel.sc-z-input-deprecated>z-icon.sc-z-input-deprecated,.checkboxWrapper.sc-z-input-deprecated>input.sc-z-input-deprecated:focus:focus-visible+.checkboxLabel.sc-z-input-deprecated>z-icon.sc-z-input-deprecated{box-shadow:var(--shadow-focus-primary);border-radius:var(--border-radius-small)}.radioWrapper.sc-z-input-deprecated>input.sc-z-input-deprecated:disabled+.radioLabel.sc-z-input-deprecated,.checkboxWrapper.sc-z-input-deprecated>input.sc-z-input-deprecated:disabled+.checkboxLabel.sc-z-input-deprecated{color:var(--color-disabled02)}.radioWrapper.sc-z-input-deprecated>input.sc-z-input-deprecated:disabled+.radioLabel.sc-z-input-deprecated>z-icon.sc-z-input-deprecated,.checkboxWrapper.sc-z-input-deprecated>input.sc-z-input-deprecated:disabled+.checkboxLabel.sc-z-input-deprecated>z-icon.sc-z-input-deprecated{fill:var(--color-disabled01);cursor:default}';export{s as z_input_deprecated}
|
|
1
|
+
import{r as e,c as t,h as r,g as i}from"./p-98268a57.js";import{I as a}from"./p-9247f214.js";import{r as c}from"./p-122f0f28.js";import"./p-d69e14fb.js";const s=class{constructor(r){e(this,r),this.inputChange=t(this,"inputChange",7),this.startTyping=t(this,"startTyping",7),this.stopTyping=t(this,"stopTyping",7),this.inputCheck=t(this,"inputCheck",7),this.optionSelect=t(this,"optionSelect",7),this.htmlid=`id-${c()}`,this.disabled=!1,this.readonly=!1,this.required=!1,this.checked=!1,this.hasmessage=!0,this.labelafter=!0,this.typingtimeout=300,this.multiple=!1,this.hasclearicon=!0,this.isTyping=!1,this.textareaWrapperHover="",this.textareaWrapperFocus="",this.passwordHidden=!0}inputCheckListener(e){const t=e.detail;switch(this.type){case a.radio:t.type===a.radio&&t.name===this.name&&t.id!==this.htmlid&&(this.checked=!1);default:return}}async getValue(){switch(this.type){case"select":return this.selectElem.getValue();default:return this.value}}async setValue(e){switch(this.type){case"select":this.selectElem.setValue(e);break;default:"string"==typeof e&&(this.value=e)}}async isChecked(){switch(this.type){case a.checkbox:case a.radio:return this.checked;default:return!1}}emitInputChange(e,t){this.isTyping||this.emitStartTyping();let r={};r=this.getValidity(this.type===a.textarea?"textarea":"input"),this.value=e,this.inputChange.emit({value:e,keycode:t,validity:r}),clearTimeout(this.timer),this.timer=setTimeout((()=>{this.emitStopTyping(this.value,r)}),this.typingtimeout)}emitStartTyping(){this.isTyping=!0,this.startTyping.emit()}emitStopTyping(e,t){this.isTyping=!1,this.stopTyping.emit({value:e,validity:t})}emitInputCheck(e){this.inputCheck.emit({id:this.htmlid,checked:e,type:this.type,name:this.name,value:this.value,validity:this.getValidity("input")})}getValidity(e){return this.hostElement.querySelector(e).validity}getTextAttributes(){const e={id:this.htmlid,name:this.name,placeholder:this.placeholder,value:this.value,disabled:this.disabled,readonly:this.readonly,required:this.required,title:this.htmltitle,class:[`input_${this.status||"default"}`,this.isTyping&&"istyping",!this.isTyping&&this.value&&"filled"].filter(Boolean).join(" "),onInput:e=>this.emitInputChange(e.target.value,e.keyCode)};return this.autocomplete&&(e.autocomplete=this.autocomplete),e}renderInputText(e=a.text){const t=this.getTextAttributes();return(this.icon||e===a.password)&&(t.class+=" hasIcon"),this.hasclearicon&&(t.class+=" hasClearIcon"),r("div",{class:"textWrapper"},this.renderLabel(),r("div",null,r("input",Object.assign({type:e!==a.password||this.passwordHidden?e:a.text},t,{"aria-label":this.ariaLabel||this.label})),this.renderIcons()),this.renderMessage())}renderLabel(){if(this.label)return r("z-input-label",{htmlfor:this.htmlid,value:this.label,disabled:this.disabled,"aria-label":this.label,id:`${this.htmlid}_label`})}renderIcons(){return r("span",{class:{iconsWrapper:!0,disabled:this.disabled}},this.renderResetIcon(),this.renderIcon())}renderIcon(){return this.type===a.password?this.renderShowHidePassword():this.icon?r("z-icon",{class:"inputIcon",name:this.icon}):void 0}renderResetIcon(){if(this.hasclearicon&&this.value&&!this.disabled&&!this.readonly)return r("z-icon",{class:"resetIcon",name:"multiply",onClick:e=>this.emitInputChange("",e.keyCode)})}renderShowHidePassword(){return r("z-icon",{class:"showHidePasswordIcon",name:this.passwordHidden?"view-filled":"view-off-filled",onClick:()=>this.passwordHidden=!this.passwordHidden})}renderMessage(){if(this.hasmessage)return r("z-input-message",{message:this.message,status:this.status})}renderTextarea(){const e=this.getTextAttributes();return r("div",{class:"textWrapper"},this.renderLabel(),r("div",{class:["textareaWrapper",e.class,e.disabled&&"disabled",e.readonly&&"readonly",this.isTyping&&"istyping",this.textareaWrapperFocus,this.textareaWrapperHover].filter(Boolean).join(" ")},r("textarea",Object.assign({},e,{onFocus:()=>this.textareaWrapperFocus="focus",onBlur:()=>this.textareaWrapperFocus="",onMouseOver:()=>this.textareaWrapperHover="hover",onMouseOut:()=>this.textareaWrapperHover="","aria-label":this.ariaLabel||this.label}))),this.renderMessage())}handleCheck(e){this.checked=e.target.checked,this.emitInputCheck(this.checked)}renderCheckbox(){return r("div",{class:"checkboxWrapper"},r("input",{id:this.htmlid,type:"checkbox",name:this.name,checked:this.checked,disabled:this.disabled,readonly:this.readonly,required:this.required,onChange:this.handleCheck.bind(this),value:this.value}),r("label",{htmlFor:this.htmlid,class:{checkboxLabel:!0,after:this.labelafter,before:!this.labelafter}},r("z-icon",{name:this.checked?"checkbox-checked":"checkbox","aria-hidden":"true"}),this.label&&r("span",{innerHTML:this.label})))}renderRadio(){return r("div",{class:"radioWrapper"},r("input",{id:this.htmlid,type:"radio",name:this.name,checked:this.checked,disabled:this.disabled,readonly:this.readonly,onChange:this.handleCheck.bind(this),value:this.value}),r("label",{htmlFor:this.htmlid,class:{radioLabel:!0,after:this.labelafter,before:!this.labelafter}},r("z-icon",{name:this.checked?"radio-button-checked":"radio-button","aria-hidden":"true"}),this.label&&r("span",{innerHTML:this.label})))}renderSelect(){return r("z-select",{htmlid:this.htmlid,items:this.items,name:this.name,label:this.label,"aria-label":this.ariaLabel,disabled:this.disabled,readonly:this.readonly,placeholder:this.placeholder,htmltitle:this.htmltitle,status:this.status,message:!!this.hasmessage&&this.message,autocomplete:this.autocomplete,ref:e=>this.selectElem=e})}render(){switch(this.type){case a.text:case a.password:case a.number:case a.email:return this.renderInputText(this.type);case a.textarea:return this.renderTextarea();case a.checkbox:return this.renderCheckbox();case a.radio:return this.renderRadio();case"select":return this.renderSelect();default:return this.renderInputText()}}get hostElement(){return i(this)}};s.style='.sc-z-input-deprecated-h{display:inline-block;width:inherit}input.sc-z-input-deprecated::-ms-clear,input.sc-z-input-deprecated::-ms-reveal{display:none}.sc-z-input-deprecated-h input.sc-z-input-deprecated::-ms-clear,.sc-z-input-deprecated-h input.sc-z-input-deprecated::-ms-reveal{display:none}input.sc-z-input-deprecated,textarea.sc-z-input-deprecated,.textareaWrapper.sc-z-input-deprecated,ul[role="listbox"].sc-z-input-deprecated{background:var(--color-input-field01);border-radius:var(--border-radius-small);border:var(--border-size-small) solid var(--color-surface04);box-sizing:border-box;color:var(--color-text02);fill:var(--color-icon02);font-family:var(--font-family-sans);font-weight:var(--font-rg);font-size:var(--font-size-3);outline:none}input.sc-z-input-deprecated:focus:focus-visible,li[role="option"].sc-z-input-deprecated:focus:focus-visible,.focus.sc-z-input-deprecated{box-shadow:var(--shadow-focus-primary)}.filled.sc-z-input-deprecated{border-color:var(--color-surface05)}.input_success.sc-z-input-deprecated,.input_success.sc-z-input-deprecated:hover,.input_success.hover.sc-z-input-deprecated{background:var(--color-success-inverse);border-color:var(--color-success01);fill:var(--color-success01)}.input_error.sc-z-input-deprecated,.input_error.sc-z-input-deprecated:hover,.input_error.hover.sc-z-input-deprecated{background:var(--color-error-inverse);border-color:var(--color-error01);fill:var(--color-error01)}.input_warning.sc-z-input-deprecated,.input_warning.sc-z-input-deprecated:hover,.input_warning.hover.sc-z-input-deprecated{background:var(--color-warning-inverse);border-color:var(--color-warning01);fill:var(--color-warning01)}input[readonly].sc-z-input-deprecated,.readonly.sc-z-input-deprecated{border-color:var(--color-disabled01);fill:var(--color-disabled01);pointer-events:none}input.sc-z-input-deprecated:disabled,.disabled.sc-z-input-deprecated,.filled.sc-z-input-deprecated:disabled{border-color:var(--color-disabled01);color:var(--color-disabled02);fill:var(--color-disabled01);pointer-events:none;box-shadow:none}input.sc-z-input-deprecated::placeholder,textarea.sc-z-input-deprecated::placeholder{color:var(--color-text05)}.sc-z-input-deprecated::-webkit-input-placeholder,.sc-z-input-deprecated::-webkit-textarea-placeholder{color:var(--color-text05)}.sc-z-input-deprecated:-ms-input-placeholder,.sc-z-input-deprecated:-ms-textarea-placeholder{color:var(--color-text05)}.sc-z-input-deprecated::-moz-placeholder{color:var(--color-text05)}.sc-z-input-deprecated:-moz-placeholder{color:var(--color-text05)}.textWrapper.sc-z-input-deprecated>div.sc-z-input-deprecated{fill:var(--color-icon02)}.textWrapper.sc-z-input-deprecated>div.sc-z-input-deprecated>input.sc-z-input-deprecated{width:100%;height:calc(var(--space-unit) * 5.5);margin:0;padding:0 calc(var(--space-unit) * 4.5) 0 calc(var(--space-unit) * 1.5);box-sizing:border-box}.textWrapper.sc-z-input-deprecated>div.sc-z-input-deprecated>input.hasIcon.sc-z-input-deprecated,.textWrapper.sc-z-input-deprecated>div.sc-z-input-deprecated>input.hasClearIcon.sc-z-input-deprecated{padding-right:calc(var(--space-unit) * 4)}.textWrapper.sc-z-input-deprecated>div.sc-z-input-deprecated>input.hasIcon.hasClearIcon.sc-z-input-deprecated{padding-right:calc(var(--space-unit) * 7)}.textWrapper.sc-z-input-deprecated>div.sc-z-input-deprecated{position:relative;z-index:1}.textWrapper.sc-z-input-deprecated .iconsWrapper.sc-z-input-deprecated{position:absolute;bottom:calc(var(--space-unit) * 1.5);right:calc(var(--space-unit) * 1.5);display:flex;z-index:2}.textWrapper.sc-z-input-deprecated .iconsWrapper.sc-z-input-deprecated>z-icon.sc-z-input-deprecated{--z-icon-width:18px;--z-icon-height:18px;display:block;margin-left:calc(var(--space-unit) * 0.5)}.textWrapper.sc-z-input-deprecated .iconsWrapper.sc-z-input-deprecated>z-icon.resetIcon.sc-z-input-deprecated,.textWrapper.sc-z-input-deprecated .iconsWrapper.sc-z-input-deprecated>z-icon.showHidePasswordIcon.sc-z-input-deprecated{cursor:pointer}.textWrapper.sc-z-input-deprecated>div.sc-z-input-deprecated>input.sc-z-input-deprecated:-webkit-autofill,.textWrapper.sc-z-input-deprecated>div.sc-z-input-deprecated>input.sc-z-input-deprecated:-webkit-autofill:hover,.textWrapper.sc-z-input-deprecated>div.sc-z-input-deprecated>input.sc-z-input-deprecated:-webkit-autofill:focus,.textWrapper.sc-z-input-deprecated>div.sc-z-input-deprecated>input.sc-z-input-deprecated:-webkit-autofill:active{-webkit-background-clip:text !important}.textareaWrapper.sc-z-input-deprecated{padding:calc(var(--space-unit) * 1.5);scrollbar-color:var(--color-primary01) transparent}textarea.sc-z-input-deprecated::-webkit-scrollbar{background:linear-gradient(\n to right,\n transparent 0 3px,\n var(--gray200) 3px 7px,\n transparent 7px 10px\n );width:10px;border-radius:var(--border-radius)}textarea.sc-z-input-deprecated::-webkit-scrollbar-track{background-color:transparent}textarea.sc-z-input-deprecated::-webkit-scrollbar-thumb{width:10px;background-color:var(--color-primary01);border-radius:var(--border-radius)}textarea.sc-z-input-deprecated::-webkit-scrollbar-thumb:hover{background-color:var(--color-hover-primary)}textarea.sc-z-input-deprecated{min-height:132px;width:100%;margin:0;padding:0;border:none;resize:none}.radioWrapper.sc-z-input-deprecated,.checkboxWrapper.sc-z-input-deprecated{display:inline-flex;flex-direction:row;align-items:center;font-family:var(--font-family-sans);position:relative;color:var(--color-text01);fill:var(--color-primary01)}.radioWrapper.sc-z-input-deprecated:hover,.checkboxWrapper.sc-z-input-deprecated:hover{color:var(--color-hover-primary);fill:currentColor}.radioWrapper.sc-z-input-deprecated>input.sc-z-input-deprecated,.checkboxWrapper.sc-z-input-deprecated>input.sc-z-input-deprecated{position:absolute;opacity:0;z-index:-1;pointer-events:none}.radioWrapper.sc-z-input-deprecated .radioLabel.sc-z-input-deprecated,.checkboxWrapper.sc-z-input-deprecated .checkboxLabel.sc-z-input-deprecated{display:inline-flex;align-items:center;margin:0;line-height:1;color:inherit;font-family:inherit;font-weight:inherit;font-size:inherit;text-transform:inherit}.radioWrapper.sc-z-input-deprecated input.sc-z-input-deprecated:not(:disabled)+.radioLabel.sc-z-input-deprecated,.checkboxWrapper.sc-z-input-deprecated input.sc-z-input-deprecated:not(:disabled)+.checkboxLabel.sc-z-input-deprecated{cursor:pointer}.radioWrapper.sc-z-input-deprecated .radioLabel.sc-z-input-deprecated z-icon.sc-z-input-deprecated,.checkboxWrapper.sc-z-input-deprecated .checkboxLabel.sc-z-input-deprecated z-icon.sc-z-input-deprecated{fill:inherit;cursor:pointer}.radioWrapper.sc-z-input-deprecated .radioLabel.after.sc-z-input-deprecated,.checkboxWrapper.sc-z-input-deprecated .checkboxLabel.after.sc-z-input-deprecated{flex-direction:row}.radioWrapper.sc-z-input-deprecated .radioLabel.before.sc-z-input-deprecated,.checkboxWrapper.sc-z-input-deprecated .checkboxLabel.before.sc-z-input-deprecated{flex-direction:row-reverse}.radioWrapper.sc-z-input-deprecated .radioLabel.after.sc-z-input-deprecated>span.sc-z-input-deprecated,.checkboxWrapper.sc-z-input-deprecated .checkboxLabel.after.sc-z-input-deprecated>span.sc-z-input-deprecated{margin-left:var(--space-unit)}.radioWrapper.sc-z-input-deprecated .radioLabel.before.sc-z-input-deprecated>span.sc-z-input-deprecated,.checkboxWrapper.sc-z-input-deprecated .checkboxLabel.before.sc-z-input-deprecated>span.sc-z-input-deprecated{margin-right:var(--space-unit)}.radioWrapper.sc-z-input-deprecated>input.sc-z-input-deprecated:focus:focus-visible+.radioLabel.sc-z-input-deprecated>z-icon.sc-z-input-deprecated,.checkboxWrapper.sc-z-input-deprecated>input.sc-z-input-deprecated:focus:focus-visible+.checkboxLabel.sc-z-input-deprecated>z-icon.sc-z-input-deprecated{box-shadow:var(--shadow-focus-primary);border-radius:var(--border-radius-small)}.radioWrapper.sc-z-input-deprecated>input.sc-z-input-deprecated:disabled+.radioLabel.sc-z-input-deprecated,.checkboxWrapper.sc-z-input-deprecated>input.sc-z-input-deprecated:disabled+.checkboxLabel.sc-z-input-deprecated{color:var(--color-disabled02)}.radioWrapper.sc-z-input-deprecated>input.sc-z-input-deprecated:disabled+.radioLabel.sc-z-input-deprecated>z-icon.sc-z-input-deprecated,.checkboxWrapper.sc-z-input-deprecated>input.sc-z-input-deprecated:disabled+.checkboxLabel.sc-z-input-deprecated>z-icon.sc-z-input-deprecated{fill:var(--color-disabled01);cursor:default}';export{s as z_input_deprecated}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as o,H as e,g as i}from"./p-98268a57.js";import{k as r}from"./p-9247f214.js";const n=class{constructor(o){t(this,o),this.icon="informationsource",this.position=r.bottom_right,this.open=!1,this.currentIndex=null}watchItems(){Array.from(this.el.children).forEach(((t,o)=>{this.currentIndex===o?t.setAttribute("data-current",""):t.removeAttribute("data-current")}))}openInfoBox(){this.currentIndex=0,this.open=!0}closeInfoBox(){this.open=!1}next(){this.currentIndex=this.currentIndex+1,this.currentIndex===this.el.children.length&&this.closeInfoBox()}render(){return o(e,{open:this.open},o("button",{class:"z-info-reveal-trigger",onClick:this.openInfoBox.bind(this)},this.label&&o("span",{class:"z-info-reveal-label"},this.label),o("z-icon",{name:this.icon})),this.open&&o("div",{class:"info-box",onClick:this.next.bind(this),tabIndex:0},o("slot",null),o("button",{class:"z-info-reveal-close",onClick:this.closeInfoBox.bind(this)},o("z-icon",{name:"close"}))))}get el(){return i(this)}static get watchers(){return{currentIndex:["watchItems"]}}};n.style=':host{--z-info-reveal-theme--surface:var(--color-black);--z-info-reveal-theme--text:var(--color-white);--z-info-reveal-shadow:var(--shadow-2);--z-info-reveal-max-width:375px;position:relative;display:flex;width:fit-content;background-color:var(--z-info-reveal-theme--surface);color:var(--z-info-reveal-theme--text);font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5;letter-spacing:0}button{padding:0;background-color:transparent;cursor:pointer;border:none;border-radius:0;color:inherit;fill:currentColor;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;letter-spacing:inherit}z-icon{--z-icon-width:calc(var(--space-unit) * 3);--z-icon-height:calc(var(--space-unit) * 3);display:flex}.z-info-reveal-trigger{display:flex;align-items:center;width:fit-content;height:100%;column-gap:calc(var(--space-unit) / 2);padding:calc(var(--space-unit) / 2);box-shadow:var(--z-info-reveal-shadow)}:host([position="top_left"]) .z-info-reveal-trigger,:host([position="bottom_left"]) .z-info-reveal-trigger{flex-direction:row-reverse}:host([open]) .z-info-reveal-trigger{box-shadow:none}.info-box{position:absolute;display:flex;max-width:var(--z-info-reveal-max-width);column-gap:calc(var(--space-unit) / 2);padding:calc(var(--space-unit) / 2);background-color:var(--z-info-reveal-theme--surface);box-shadow:var(--z-info-reveal-shadow);cursor:pointer}:host([position="top_right"]) .info-box,:host([position="bottom_right"]) .info-box{right:0}:host([position="top_left"]) .info-box,:host([position="bottom_left"]) .info-box{left:0;flex-direction:row-reverse}::slotted(*){display:none;width:max-content}::slotted([data-current]){display:block}:host([position="top_left"]) .z-info-reveal-close,:host([position="top_right"]) .z-info-reveal-close{align-self:flex-start}:host([position="bottom_left"]) .z-info-reveal-close,:host([position="bottom_right"]) .z-info-reveal-close{align-self:flex-end}';export{n as z_info_reveal}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as o,h as i,H as e,g as r}from"./p-98268a57.js";import{P as s}from"./p-
|
|
1
|
+
import{r as t,c as o,h as i,H as e,g as r}from"./p-98268a57.js";import{P as s}from"./p-9247f214.js";const a=document.documentElement;function n(t,o){const i=t.getBoundingClientRect(),e=i.width,r=i.height;let s,a,n=0,h=0,p=t;for(;p&&p!=o;){if(h+=p.offsetLeft,p===document.body?n+=p.getBoundingClientRect().top+window.scrollY:n+=p.offsetTop,window.DOMMatrix){const t=window.getComputedStyle(p),o=new DOMMatrix(t.transform||t.webkitTransform);o&&(h+=o.m41,p!==document.body&&(n+=o.m42))}if(!p.offsetParent)break;p=p.offsetParent}return p===document.body?(s=window.innerWidth,a=window.innerHeight):(s=p.offsetWidth,a=p.offsetHeight),{top:n,right:s-h-i.width,bottom:a-n-i.height,left:h,width:e,height:r}}const h=class{constructor(i){t(this,i),this.positionChange=o(this,"positionChange",7),this.type=s.auto,this.open=!1}validateType(t){t&&Object.values(s).every((o=>t!==o))&&(this.type=s.auto)}onPositionChange(){this.positionChange.emit({position:this.position})}disconnectedCallback(){cancelAnimationFrame(this.animationFrameRequestId)}onOpen(){if(cancelAnimationFrame(this.animationFrameRequestId),!this.content)if(this.open){const t=()=>{this.open&&(this.setPosition(),this.animationFrameRequestId=requestAnimationFrame(t))};t()}else{const t=this.host.style;t.removeProperty("top"),t.removeProperty("right"),t.removeProperty("bottom"),t.removeProperty("left")}}setPosition(){let t;if(t="string"==typeof this.bindTo?this.host.ownerDocument.querySelector(this.bindTo):this.bindTo?this.bindTo:this.host.parentElement,!t)return;const o=function(t){let o=t.parentNode;for(;o&&o!==a;){const{overflow:t,overflowX:i,overflowY:e}=window.getComputedStyle(o);if("hidden"===t||"hidden"===e||"hidden"===i)return o;if(o.scrollHeight>o.clientHeight&&"visible"!==t&&"visible"!==e||o.scrollWidth>o.clientWidth&&"visible"!==t&&"visible"!==i)return o;o=o.parentNode}return a}(t),i=o.getBoundingClientRect(),e=this.host.offsetParent,r=e?n(e,o):{top:0,right:0,bottom:0,left:0},h=n(t,o),p=h.top-o.scrollTop,l=i.height-(h.top+h.height)+o.scrollTop,f=h.left-o.scrollLeft,c=i.width-(h.left+h.width)+o.scrollLeft,d=Math.max(0,i.top+i.height-window.innerHeight),g=Math.max(0,i.left+i.width-window.innerWidth),u=Math.min(p,p+i.top),w=Math.min(l,l-d),m=Math.min(f,f+i.left),v=Math.min(c,c-g),b=u+w+h.height,x=m+v+h.width;let y=this.type;if(y===s.auto){const t=[];u/b>.9?t.unshift(s.top):u/b>.6?t.push(s.top):u/b<.1?t.unshift(s.bottom):t.push(s.bottom),m/x>.6?t.push(s.left):m/x<.4&&t.push(s.right),y=t.join("_")}const z=this.host.style;this.content||(z.position="absolute");const _=h.top-r.top,M=h.right-r.right,$=h.bottom-r.bottom,C=h.left-r.left;y!==s.top&&y!==s.top_right&&y!==s.top_left||(z.top="auto",z.bottom=`${$+h.height}px`),y!==s.bottom&&y!==s.bottom_right&&y!==s.bottom_left||(z.top=`${_+h.height}px`,z.bottom="auto"),y!==s.top&&y!==s.bottom||(z.left=C+h.width/2-this.host.clientWidth/2+"px"),y!==s.top_right&&y!==s.bottom_right||(z.right="auto",z.left=`${C+h.width}px`),y!==s.top_left&&y!==s.bottom_left||(z.left="auto",z.right=`${M+h.width}px`),y!==s.right&&y!==s.left||(z.top=_+h.height/2-this.host.clientHeight/2+"px",z.bottom="auto"),y===s.right&&(z.right="auto",z.left=`${C+h.width}px`),y===s.left&&(z.left="auto",z.right=`${M+h.width}px`),this.position=y}componentWillLoad(){this.content&&(this.open=!0),this.validateType(this.type),this.onOpen()}render(){return this.content?i(e,{class:"legacy",position:this.type},this.content):i(e,{position:this.position},i("slot",null))}get host(){return r(this)}static get watchers(){return{type:["validateType"],position:["onPositionChange"],open:["onOpen"]}}};h.style=":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}";export{h as z_tooltip_deprecated}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{K as a,D as t}from"./p-
|
|
1
|
+
import{K as a,D as t}from"./p-9247f214.js";import{t as e,m as n}from"./p-d69e14fb.js";function r(a){switch(a){case!0:case"true":case 1:case"1":case"on":case"yes":return!0;case!1:case"false":case 0:case"0":case"off":case"no":return!1;default:return a}}function s(){return Math.random().toString(36).replace("0.","")}function c(t,e,...n){t.code!==a.ENTER&&t.code!==a.SPACE||(t.preventDefault(),e(...n))}function u(a=null){return a||(a=document.activeElement),a&&a.shadowRoot&&a.shadowRoot.activeElement?u(a=a.shadowRoot.activeElement):a}function o(a,t=[]){return t.push(a),a.parentElement?o(a=a.parentElement,t):a.parentNode&&a.parentNode.host?o(a=a.parentNode.host,t):t}function f(){switch(!0){case window.innerWidth<=n:return t.mobile;case window.innerWidth<=e:return t.tablet;default:return t.desktop}}function i(a){try{return JSON.parse(a)}catch(a){return!1}}function d(a){const t=Math.ceil(2**31-1)*parseFloat(`0.${a}`);let e=Math.ceil(t%1*19);return 0===e&&(e=1),`avatar-C${e.toString().padStart(2,"0")}`}export{o as a,r as b,d as c,i as d,u as e,f as g,c as h,s as r}
|