@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
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
pointer-events: none;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
:host .container {
|
|
12
|
+
:host .z-button--container {
|
|
13
13
|
box-sizing: border-box;
|
|
14
14
|
display: inline-flex;
|
|
15
15
|
align-items: center;
|
|
@@ -32,116 +32,116 @@
|
|
|
32
32
|
fill: currentColor;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
:host .container
|
|
35
|
+
:host .z-button--container:focus:focus-visible {
|
|
36
|
+
box-shadow: var(--shadow-focus-primary);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
:host .z-button--container.z-button--has-text {
|
|
36
40
|
min-width: calc(var(--space-unit) * 8);
|
|
37
41
|
padding: 0 calc(var(--space-unit) * 2);
|
|
38
42
|
}
|
|
39
43
|
|
|
40
|
-
:host .container.has-text z-icon {
|
|
44
|
+
:host .z-button--container.z-button--has-text z-icon {
|
|
41
45
|
--z-icon-right-margin: var(--space-unit);
|
|
42
46
|
}
|
|
43
47
|
|
|
44
|
-
:host .
|
|
48
|
+
:host([size="big"]) .z-button--container {
|
|
45
49
|
height: 44px;
|
|
46
50
|
min-width: 44px;
|
|
47
51
|
}
|
|
48
52
|
|
|
49
|
-
:host .
|
|
53
|
+
:host([size="small"]) .z-button--container {
|
|
50
54
|
height: 36px;
|
|
51
55
|
min-width: 36px;
|
|
52
56
|
}
|
|
53
57
|
|
|
54
|
-
:host
|
|
58
|
+
:host([size="x-small"]) .z-button--container {
|
|
55
59
|
height: 32px;
|
|
56
60
|
min-width: 32px;
|
|
57
61
|
}
|
|
58
62
|
|
|
59
|
-
:host .
|
|
63
|
+
:host([variant="primary"]) .z-button--container {
|
|
60
64
|
background-color: var(--color-primary01);
|
|
61
65
|
border-color: var(--color-primary01);
|
|
62
66
|
color: var(--color-text-inverse);
|
|
63
67
|
}
|
|
64
68
|
|
|
65
69
|
@media (hover: hover) {
|
|
66
|
-
:host .
|
|
70
|
+
:host([variant="primary"]) .z-button--container:hover {
|
|
67
71
|
background-color: var(--color-hover-primary);
|
|
68
72
|
border-color: var(--color-hover-primary);
|
|
69
73
|
color: var(--color-text-inverse);
|
|
70
74
|
}
|
|
71
75
|
}
|
|
72
76
|
|
|
73
|
-
:host .container:
|
|
74
|
-
box-shadow: var(--shadow-focus-primary);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
:host .primary:active {
|
|
77
|
+
:host([variant="primary"]) .z-button--container:active {
|
|
78
78
|
background-color: var(--color-pressed-primary);
|
|
79
79
|
border-color: var(--color-pressed-primary);
|
|
80
80
|
color: var(--color-text-inverse);
|
|
81
81
|
box-shadow: var(--shadow-2);
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
:host([disabled]:not([disabled="false"])) .
|
|
84
|
+
:host([variant="primary"][disabled]:not([disabled="false"])) .z-button--container {
|
|
85
85
|
background-color: var(--color-disabled01);
|
|
86
86
|
border-color: var(--color-disabled01);
|
|
87
87
|
color: var(--color-disabled02);
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
:host .
|
|
90
|
+
:host([variant="secondary"]) .z-button--container {
|
|
91
91
|
background-color: var(--color-surface01);
|
|
92
92
|
border-color: var(--color-primary01);
|
|
93
93
|
color: var(--color-primary01);
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
@media (hover: hover) {
|
|
97
|
-
:host .
|
|
97
|
+
:host([variant="secondary"]) .z-button--container:hover {
|
|
98
98
|
background-color: var(--color-surface01);
|
|
99
99
|
border-color: var(--color-hover-primary);
|
|
100
100
|
color: var(--color-hover-primary);
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
:host .
|
|
104
|
+
:host([variant="secondary"]) .z-button--container:active {
|
|
105
105
|
background-color: var(--color-surface01);
|
|
106
106
|
border-color: var(--color-pressed-primary);
|
|
107
107
|
color: var(--color-pressed-primary);
|
|
108
108
|
box-shadow: var(--shadow-2);
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
:host([disabled]:not([disabled="false"])) .
|
|
111
|
+
:host([variant="secondary"][disabled]:not([disabled="false"])) .z-button--container {
|
|
112
112
|
background-color: var(--color-surface01);
|
|
113
113
|
border-color: var(--color-disabled01);
|
|
114
114
|
color: var(--color-disabled02);
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
:host .
|
|
117
|
+
:host([variant="tertiary"]) .z-button--container {
|
|
118
118
|
background-color: transparent;
|
|
119
119
|
border-color: transparent;
|
|
120
120
|
color: var(--color-primary01);
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
@media (hover: hover) {
|
|
124
|
-
:host .
|
|
124
|
+
:host([variant="tertiary"]) .z-button--container:hover {
|
|
125
125
|
background-color: var(--color-primary03);
|
|
126
126
|
border-color: var(--color-primary03);
|
|
127
127
|
color: var(--color-hover-primary);
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
-
:host .
|
|
131
|
+
:host([variant="tertiary"]) .z-button--container:focus:focus-visible {
|
|
132
132
|
background-color: var(--color-surface01);
|
|
133
133
|
border-color: var(--color-surface01);
|
|
134
134
|
color: var(--color-primary01);
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
-
:host .
|
|
137
|
+
:host([variant="tertiary"]) .z-button--container:active {
|
|
138
138
|
background-color: var(--color-surface01);
|
|
139
139
|
border-color: var(--color-surface01);
|
|
140
140
|
color: var(--color-primary01);
|
|
141
141
|
box-shadow: var(--shadow-2);
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
-
:host([disabled]:not([disabled="false"])) .
|
|
144
|
+
:host([variant="tertiary"][disabled]:not([disabled="false"])) .z-button--container {
|
|
145
145
|
background-color: transparent;
|
|
146
146
|
border-color: transparent;
|
|
147
147
|
color: var(--color-disabled02);
|
|
@@ -31,7 +31,7 @@ export class ZFile {
|
|
|
31
31
|
}
|
|
32
32
|
render() {
|
|
33
33
|
return (h(Host, null,
|
|
34
|
-
this.allowPopover && (h("z-popover", { open: this.popoverVisible, position: PopoverPositions.
|
|
34
|
+
this.allowPopover && (h("z-popover", { open: this.popoverVisible, position: PopoverPositions.auto, bindTo: this.chip },
|
|
35
35
|
h("span", { class: "body-5 tooltip-content" }, this.ellipsis.innerText))),
|
|
36
36
|
h("z-chip", { ref: (el) => (this.chip = el), id: `chip-${this.fileNumber}`, interactiveIcon: "multiply-circled", type: ZChipType.default },
|
|
37
37
|
h("span", { ref: (el) => (this.ellipsis = el), tabIndex: -1 },
|
|
@@ -108,12 +108,33 @@ export class ZInput {
|
|
|
108
108
|
onInput: (e) => this.emitInputChange(e.target.value),
|
|
109
109
|
};
|
|
110
110
|
}
|
|
111
|
+
getNumberAttributes(type) {
|
|
112
|
+
if (type != InputTypeEnum.number)
|
|
113
|
+
return;
|
|
114
|
+
return {
|
|
115
|
+
min: this.min,
|
|
116
|
+
max: this.max,
|
|
117
|
+
step: this.step,
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
getPatternAttribute(type) {
|
|
121
|
+
if (type != InputTypeEnum.password &&
|
|
122
|
+
type != InputTypeEnum.text &&
|
|
123
|
+
type != InputTypeEnum.tel &&
|
|
124
|
+
type != InputTypeEnum.search &&
|
|
125
|
+
type != InputTypeEnum.url &&
|
|
126
|
+
type != InputTypeEnum.email)
|
|
127
|
+
return;
|
|
128
|
+
return {
|
|
129
|
+
pattern: this.pattern,
|
|
130
|
+
};
|
|
131
|
+
}
|
|
111
132
|
renderInputText(type = InputTypeEnum.text) {
|
|
112
|
-
const attr = this.getTextAttributes();
|
|
133
|
+
const attr = Object.assign(Object.assign(Object.assign({}, this.getTextAttributes()), this.getNumberAttributes(type)), this.getPatternAttribute(type));
|
|
113
134
|
if (this.icon || type === InputTypeEnum.password) {
|
|
114
135
|
attr.class = Object.assign(Object.assign({}, attr.class), { hasIcon: true });
|
|
115
136
|
}
|
|
116
|
-
if (this.hasclearicon) {
|
|
137
|
+
if (this.hasclearicon && type != InputTypeEnum.number) {
|
|
117
138
|
attr.class = Object.assign(Object.assign({}, attr.class), { hasClearIcon: true });
|
|
118
139
|
}
|
|
119
140
|
return (h("div", { class: "textWrapper" },
|
|
@@ -145,7 +166,11 @@ export class ZInput {
|
|
|
145
166
|
h("z-icon", { name: this.icon })));
|
|
146
167
|
}
|
|
147
168
|
renderResetIcon() {
|
|
148
|
-
if (!this.hasclearicon ||
|
|
169
|
+
if (!this.hasclearicon ||
|
|
170
|
+
!this.value ||
|
|
171
|
+
this.disabled ||
|
|
172
|
+
this.readonly ||
|
|
173
|
+
this.type == InputTypeEnum.number)
|
|
149
174
|
return;
|
|
150
175
|
return (h("button", { type: "button", class: "iconButton resetIcon", "aria-label": "cancella il contenuto dell'input", onClick: () => this.emitInputChange("") },
|
|
151
176
|
h("z-icon", { name: "multiply" })));
|
|
@@ -244,7 +269,7 @@ export class ZInput {
|
|
|
244
269
|
"mutable": false,
|
|
245
270
|
"complexType": {
|
|
246
271
|
"original": "InputTypeBean",
|
|
247
|
-
"resolved": "\"checkbox\" | \"email\" | \"number\" | \"password\" | \"radio\" | \"text\" | \"textarea\"",
|
|
272
|
+
"resolved": "\"checkbox\" | \"email\" | \"number\" | \"password\" | \"radio\" | \"search\" | \"tel\" | \"text\" | \"textarea\" | \"url\"",
|
|
248
273
|
"references": {
|
|
249
274
|
"InputTypeBean": {
|
|
250
275
|
"location": "import",
|
|
@@ -549,6 +574,74 @@ export class ZInput {
|
|
|
549
574
|
},
|
|
550
575
|
"attribute": "icon",
|
|
551
576
|
"reflect": false
|
|
577
|
+
},
|
|
578
|
+
"min": {
|
|
579
|
+
"type": "number",
|
|
580
|
+
"mutable": false,
|
|
581
|
+
"complexType": {
|
|
582
|
+
"original": "number",
|
|
583
|
+
"resolved": "number",
|
|
584
|
+
"references": {}
|
|
585
|
+
},
|
|
586
|
+
"required": false,
|
|
587
|
+
"optional": true,
|
|
588
|
+
"docs": {
|
|
589
|
+
"tags": [],
|
|
590
|
+
"text": "min number value (optional): available for number"
|
|
591
|
+
},
|
|
592
|
+
"attribute": "min",
|
|
593
|
+
"reflect": false
|
|
594
|
+
},
|
|
595
|
+
"max": {
|
|
596
|
+
"type": "number",
|
|
597
|
+
"mutable": false,
|
|
598
|
+
"complexType": {
|
|
599
|
+
"original": "number",
|
|
600
|
+
"resolved": "number",
|
|
601
|
+
"references": {}
|
|
602
|
+
},
|
|
603
|
+
"required": false,
|
|
604
|
+
"optional": true,
|
|
605
|
+
"docs": {
|
|
606
|
+
"tags": [],
|
|
607
|
+
"text": "max number value (optional): available for number"
|
|
608
|
+
},
|
|
609
|
+
"attribute": "max",
|
|
610
|
+
"reflect": false
|
|
611
|
+
},
|
|
612
|
+
"step": {
|
|
613
|
+
"type": "number",
|
|
614
|
+
"mutable": false,
|
|
615
|
+
"complexType": {
|
|
616
|
+
"original": "number",
|
|
617
|
+
"resolved": "number",
|
|
618
|
+
"references": {}
|
|
619
|
+
},
|
|
620
|
+
"required": false,
|
|
621
|
+
"optional": true,
|
|
622
|
+
"docs": {
|
|
623
|
+
"tags": [],
|
|
624
|
+
"text": "step number value (optional): available for number"
|
|
625
|
+
},
|
|
626
|
+
"attribute": "step",
|
|
627
|
+
"reflect": false
|
|
628
|
+
},
|
|
629
|
+
"pattern": {
|
|
630
|
+
"type": "string",
|
|
631
|
+
"mutable": false,
|
|
632
|
+
"complexType": {
|
|
633
|
+
"original": "string",
|
|
634
|
+
"resolved": "string",
|
|
635
|
+
"references": {}
|
|
636
|
+
},
|
|
637
|
+
"required": false,
|
|
638
|
+
"optional": true,
|
|
639
|
+
"docs": {
|
|
640
|
+
"tags": [],
|
|
641
|
+
"text": "pattern value (optional): available for tel, text, search, url, email, password"
|
|
642
|
+
},
|
|
643
|
+
"attribute": "pattern",
|
|
644
|
+
"reflect": false
|
|
552
645
|
}
|
|
553
646
|
}; }
|
|
554
647
|
static get states() { return {
|
|
@@ -11,7 +11,7 @@ import { PopoverPositions } from "../../../beans";
|
|
|
11
11
|
export class ZTooltip {
|
|
12
12
|
constructor() {
|
|
13
13
|
/** Tooltip position. */
|
|
14
|
-
this.position = PopoverPositions.
|
|
14
|
+
this.position = PopoverPositions.auto;
|
|
15
15
|
/** Enable tooltip dark mode. */
|
|
16
16
|
this.dark = false;
|
|
17
17
|
/**
|
|
@@ -40,7 +40,7 @@ export class ZTooltip {
|
|
|
40
40
|
"mutable": true,
|
|
41
41
|
"complexType": {
|
|
42
42
|
"original": "PopoverPositions",
|
|
43
|
-
"resolved": "PopoverPositions.
|
|
43
|
+
"resolved": "PopoverPositions.auto | PopoverPositions.bottom | PopoverPositions.bottom_left | PopoverPositions.bottom_right | PopoverPositions.left | PopoverPositions.left_bottom | PopoverPositions.left_top | PopoverPositions.right | PopoverPositions.right_bottom | PopoverPositions.right_top | PopoverPositions.top | PopoverPositions.top_left | PopoverPositions.top_right",
|
|
44
44
|
"references": {
|
|
45
45
|
"PopoverPositions": {
|
|
46
46
|
"location": "import",
|
|
@@ -56,7 +56,7 @@ export class ZTooltip {
|
|
|
56
56
|
},
|
|
57
57
|
"attribute": "position",
|
|
58
58
|
"reflect": true,
|
|
59
|
-
"defaultValue": "PopoverPositions.
|
|
59
|
+
"defaultValue": "PopoverPositions.auto"
|
|
60
60
|
},
|
|
61
61
|
"dark": {
|
|
62
62
|
"type": "boolean",
|
|
@@ -9,7 +9,7 @@ export class ZContextualMenu {
|
|
|
9
9
|
/**
|
|
10
10
|
* [optional] Sets the position of the popover
|
|
11
11
|
*/
|
|
12
|
-
this.popoverPosition = PopoverPositions.
|
|
12
|
+
this.popoverPosition = PopoverPositions.bottom_right;
|
|
13
13
|
}
|
|
14
14
|
componentWillRender() {
|
|
15
15
|
if (this.elements) {
|
|
@@ -94,7 +94,7 @@ export class ZContextualMenu {
|
|
|
94
94
|
"mutable": false,
|
|
95
95
|
"complexType": {
|
|
96
96
|
"original": "PopoverPositions",
|
|
97
|
-
"resolved": "PopoverPositions.
|
|
97
|
+
"resolved": "PopoverPositions.auto | PopoverPositions.bottom | PopoverPositions.bottom_left | PopoverPositions.bottom_right | PopoverPositions.left | PopoverPositions.left_bottom | PopoverPositions.left_top | PopoverPositions.right | PopoverPositions.right_bottom | PopoverPositions.right_top | PopoverPositions.top | PopoverPositions.top_left | PopoverPositions.top_right",
|
|
98
98
|
"references": {
|
|
99
99
|
"PopoverPositions": {
|
|
100
100
|
"location": "import",
|
|
@@ -110,7 +110,7 @@ export class ZContextualMenu {
|
|
|
110
110
|
},
|
|
111
111
|
"attribute": "popover-position",
|
|
112
112
|
"reflect": true,
|
|
113
|
-
"defaultValue": "PopoverPositions.
|
|
113
|
+
"defaultValue": "PopoverPositions.bottom_right"
|
|
114
114
|
}
|
|
115
115
|
}; }
|
|
116
116
|
static get events() { return [{
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
:host {
|
|
2
|
-
display: flex;
|
|
3
2
|
position: relative;
|
|
3
|
+
display: flex;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
align-items: center;
|
|
4
6
|
font-family: var(--font-family-sans);
|
|
5
7
|
font-weight: var(--font-rg);
|
|
6
8
|
}
|
|
7
9
|
|
|
8
10
|
button {
|
|
11
|
+
width: 100%;
|
|
12
|
+
height: 100%;
|
|
9
13
|
border: none;
|
|
10
14
|
background: transparent;
|
|
11
15
|
cursor: pointer;
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { Component, h, Prop, State, Watch, Element, Host, } from '@stencil/core';
|
|
2
|
+
import { InfoRevealPosition } from "../../beans";
|
|
3
|
+
/**
|
|
4
|
+
* Info reveal component.
|
|
5
|
+
*
|
|
6
|
+
* @slot - info to display in the info box. If more than one element has been slotted,
|
|
7
|
+
* by clicking on the panel it switches to the next info element.
|
|
8
|
+
* @cssprop --z-info-reveal-theme--surface - background color of the info reveal panel.
|
|
9
|
+
* @cssprop --z-info-reveal-theme--text - foreground color of the info reveal panel.
|
|
10
|
+
* @cssprop --z-info-reveal-shadow - shadow of the info reveal panel.
|
|
11
|
+
* @cssprop --z-info-reveal-max-width - max width of the info reveal panel.
|
|
12
|
+
*/
|
|
13
|
+
export class ZInfoReveal {
|
|
14
|
+
constructor() {
|
|
15
|
+
/** Name of the icon for the open button */
|
|
16
|
+
this.icon = 'informationsource';
|
|
17
|
+
this.position = InfoRevealPosition.bottom_right;
|
|
18
|
+
/** Whether the info panel is open. */
|
|
19
|
+
this.open = false;
|
|
20
|
+
/** Current index for the info queue. */
|
|
21
|
+
this.currentIndex = null;
|
|
22
|
+
}
|
|
23
|
+
watchItems() {
|
|
24
|
+
Array.from(this.el.children).forEach((child, index) => {
|
|
25
|
+
if (this.currentIndex === index) {
|
|
26
|
+
child.setAttribute('data-current', '');
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
child.removeAttribute('data-current');
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Open the info box.
|
|
35
|
+
*/
|
|
36
|
+
openInfoBox() {
|
|
37
|
+
this.currentIndex = 0;
|
|
38
|
+
this.open = true;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Close the info box.
|
|
42
|
+
*/
|
|
43
|
+
closeInfoBox() {
|
|
44
|
+
this.open = false;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Navigate slotted info.
|
|
48
|
+
* It closes the info box after the last info has been navigated.
|
|
49
|
+
*/
|
|
50
|
+
next() {
|
|
51
|
+
this.currentIndex = this.currentIndex + 1;
|
|
52
|
+
if (this.currentIndex === this.el.children.length) {
|
|
53
|
+
this.closeInfoBox();
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
render() {
|
|
57
|
+
return h(Host, { open: this.open },
|
|
58
|
+
h("button", { class: "z-info-reveal-trigger", onClick: this.openInfoBox.bind(this) },
|
|
59
|
+
this.label && h("span", { class: "z-info-reveal-label" }, this.label),
|
|
60
|
+
h("z-icon", { name: this.icon })),
|
|
61
|
+
this.open && h("div", { class: "info-box", onClick: this.next.bind(this), tabIndex: 0 },
|
|
62
|
+
h("slot", null),
|
|
63
|
+
h("button", { class: "z-info-reveal-close", onClick: this.closeInfoBox.bind(this) },
|
|
64
|
+
h("z-icon", { name: "close" }))));
|
|
65
|
+
}
|
|
66
|
+
static get is() { return "z-info-reveal"; }
|
|
67
|
+
static get encapsulation() { return "shadow"; }
|
|
68
|
+
static get originalStyleUrls() { return {
|
|
69
|
+
"$": ["styles.css"]
|
|
70
|
+
}; }
|
|
71
|
+
static get styleUrls() { return {
|
|
72
|
+
"$": ["styles.css"]
|
|
73
|
+
}; }
|
|
74
|
+
static get properties() { return {
|
|
75
|
+
"icon": {
|
|
76
|
+
"type": "string",
|
|
77
|
+
"mutable": false,
|
|
78
|
+
"complexType": {
|
|
79
|
+
"original": "string",
|
|
80
|
+
"resolved": "string",
|
|
81
|
+
"references": {}
|
|
82
|
+
},
|
|
83
|
+
"required": false,
|
|
84
|
+
"optional": true,
|
|
85
|
+
"docs": {
|
|
86
|
+
"tags": [],
|
|
87
|
+
"text": "Name of the icon for the open button"
|
|
88
|
+
},
|
|
89
|
+
"attribute": "icon",
|
|
90
|
+
"reflect": false,
|
|
91
|
+
"defaultValue": "'informationsource'"
|
|
92
|
+
},
|
|
93
|
+
"position": {
|
|
94
|
+
"type": "string",
|
|
95
|
+
"mutable": false,
|
|
96
|
+
"complexType": {
|
|
97
|
+
"original": "InfoRevealPositionBean",
|
|
98
|
+
"resolved": "\"bottom_left\" | \"bottom_right\" | \"top_left\" | \"top_right\"",
|
|
99
|
+
"references": {
|
|
100
|
+
"InfoRevealPositionBean": {
|
|
101
|
+
"location": "import",
|
|
102
|
+
"path": "../../beans"
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"required": false,
|
|
107
|
+
"optional": true,
|
|
108
|
+
"docs": {
|
|
109
|
+
"tags": [],
|
|
110
|
+
"text": ""
|
|
111
|
+
},
|
|
112
|
+
"attribute": "position",
|
|
113
|
+
"reflect": true,
|
|
114
|
+
"defaultValue": "InfoRevealPosition.bottom_right"
|
|
115
|
+
},
|
|
116
|
+
"label": {
|
|
117
|
+
"type": "string",
|
|
118
|
+
"mutable": false,
|
|
119
|
+
"complexType": {
|
|
120
|
+
"original": "string",
|
|
121
|
+
"resolved": "string",
|
|
122
|
+
"references": {}
|
|
123
|
+
},
|
|
124
|
+
"required": false,
|
|
125
|
+
"optional": true,
|
|
126
|
+
"docs": {
|
|
127
|
+
"tags": [],
|
|
128
|
+
"text": "Text that appears on closed panel next to the open button."
|
|
129
|
+
},
|
|
130
|
+
"attribute": "label",
|
|
131
|
+
"reflect": false
|
|
132
|
+
}
|
|
133
|
+
}; }
|
|
134
|
+
static get states() { return {
|
|
135
|
+
"open": {},
|
|
136
|
+
"currentIndex": {}
|
|
137
|
+
}; }
|
|
138
|
+
static get elementRef() { return "el"; }
|
|
139
|
+
static get watchers() { return [{
|
|
140
|
+
"propName": "currentIndex",
|
|
141
|
+
"methodName": "watchItems"
|
|
142
|
+
}]; }
|
|
143
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
--z-info-reveal-theme--surface: var(--color-black);
|
|
3
|
+
--z-info-reveal-theme--text: var(--color-white);
|
|
4
|
+
--z-info-reveal-shadow: var(--shadow-2);
|
|
5
|
+
--z-info-reveal-max-width: 375px; /* defaults to average width of mobile devices */
|
|
6
|
+
|
|
7
|
+
position: relative;
|
|
8
|
+
display: flex;
|
|
9
|
+
width: fit-content;
|
|
10
|
+
background-color: var(--z-info-reveal-theme--surface);
|
|
11
|
+
color: var(--z-info-reveal-theme--text);
|
|
12
|
+
font-size: var(--font-size-3);
|
|
13
|
+
font-weight: var(--font-rg);
|
|
14
|
+
line-height: 1.5;
|
|
15
|
+
letter-spacing: 0;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
button {
|
|
19
|
+
padding: 0;
|
|
20
|
+
background-color: transparent;
|
|
21
|
+
cursor: pointer;
|
|
22
|
+
border: none;
|
|
23
|
+
border-radius: 0;
|
|
24
|
+
color: inherit;
|
|
25
|
+
fill: currentColor;
|
|
26
|
+
font-family: inherit;
|
|
27
|
+
font-size: inherit;
|
|
28
|
+
font-weight: inherit;
|
|
29
|
+
line-height: inherit;
|
|
30
|
+
letter-spacing: inherit;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
z-icon {
|
|
34
|
+
--z-icon-width: calc(var(--space-unit) * 3);
|
|
35
|
+
--z-icon-height: calc(var(--space-unit) * 3);
|
|
36
|
+
display: flex;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.z-info-reveal-trigger {
|
|
40
|
+
display: flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
width: fit-content;
|
|
43
|
+
height: 100%;
|
|
44
|
+
column-gap: calc(var(--space-unit) / 2);
|
|
45
|
+
padding: calc(var(--space-unit) / 2);
|
|
46
|
+
box-shadow: var(--z-info-reveal-shadow);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
:host([position="top_left"]) .z-info-reveal-trigger,
|
|
50
|
+
:host([position="bottom_left"]) .z-info-reveal-trigger {
|
|
51
|
+
flex-direction: row-reverse;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
:host([open]) .z-info-reveal-trigger {
|
|
55
|
+
box-shadow: none;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.info-box {
|
|
59
|
+
position: absolute;
|
|
60
|
+
display: flex;
|
|
61
|
+
max-width: var(--z-info-reveal-max-width);
|
|
62
|
+
column-gap: calc(var(--space-unit) / 2);
|
|
63
|
+
padding: calc(var(--space-unit) / 2);
|
|
64
|
+
background-color: var(--z-info-reveal-theme--surface);
|
|
65
|
+
box-shadow: var(--z-info-reveal-shadow);
|
|
66
|
+
cursor: pointer;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
:host([position="top_right"]) .info-box,
|
|
70
|
+
:host([position="bottom_right"]) .info-box {
|
|
71
|
+
right: 0;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
:host([position="top_left"]) .info-box,
|
|
75
|
+
:host([position="bottom_left"]) .info-box {
|
|
76
|
+
left: 0;
|
|
77
|
+
flex-direction: row-reverse;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
::slotted(*) {
|
|
81
|
+
display: none;
|
|
82
|
+
width: max-content;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
::slotted([data-current]) {
|
|
86
|
+
display: block;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
:host([position="top_left"]) .z-info-reveal-close,
|
|
90
|
+
:host([position="top_right"]) .z-info-reveal-close {
|
|
91
|
+
align-self: flex-start;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
:host([position="bottom_left"]) .z-info-reveal-close,
|
|
95
|
+
:host([position="bottom_right"]) .z-info-reveal-close {
|
|
96
|
+
align-self: flex-end;
|
|
97
|
+
}
|
|
@@ -155,7 +155,8 @@ export class ZPagination {
|
|
|
155
155
|
this.renderPage(this.totalPages),
|
|
156
156
|
];
|
|
157
157
|
}
|
|
158
|
-
if (this.currentPage > this.split * 2 + 2 &&
|
|
158
|
+
if (this.currentPage > this.split * 2 + 2 &&
|
|
159
|
+
this.currentPage < this.totalPages - this.split * 2 - 1) {
|
|
159
160
|
// Render first page, ellipsis, current page surrounded by (split) pages both before and after, another ellipsis, then last page.
|
|
160
161
|
return [
|
|
161
162
|
this.renderPage(1),
|
|
@@ -192,7 +193,9 @@ export class ZPagination {
|
|
|
192
193
|
ev.preventDefault();
|
|
193
194
|
this.selectPage(this.goToPageValue);
|
|
194
195
|
} },
|
|
195
|
-
h("z-input", { class: "go-to-page-input", type: "number",
|
|
196
|
+
h("z-input", { class: "go-to-page-input", type: "number", min: 1, max: this.totalPages, message: false, onInput: (ev) => {
|
|
197
|
+
this.goToPageValue = ev.target.value;
|
|
198
|
+
}, placeholder: this.currentPage.toString(), hasclearicon: false }),
|
|
196
199
|
h("span", null, `/${this.totalPages}`))),
|
|
197
200
|
this.renderForwardButton()),
|
|
198
201
|
];
|
|
@@ -219,9 +222,7 @@ export class ZPagination {
|
|
|
219
222
|
"-",
|
|
220
223
|
this.skip)),
|
|
221
224
|
this.navArrows && this.renderBackButton(),
|
|
222
|
-
h("div", { class: "pages-container", role: "navigation", tabIndex: -1 }, this.split ?
|
|
223
|
-
this.renderSplitPages() :
|
|
224
|
-
this.renderPages()),
|
|
225
|
+
h("div", { class: "pages-container", role: "navigation", tabIndex: -1 }, this.split ? this.renderSplitPages() : this.renderPages()),
|
|
225
226
|
this.navArrows && this.renderForwardButton(),
|
|
226
227
|
this.skip < this.totalPages && this.skip > 1 && (h("button", { class: "pagination-button", type: "button", title: `Vai alla pagina ${this.currentPage + this.skip}`, disabled: this.currentPage > this.totalPages - this.skip, onClick: () => this.selectPage(this.currentPage + this.skip) },
|
|
227
228
|
"+",
|
|
@@ -232,7 +233,9 @@ export class ZPagination {
|
|
|
232
233
|
this.goToPage && (h("div", { class: "go-to-page" },
|
|
233
234
|
h("span", { class: "label body-5-sb" }, "Vai a pagina:"),
|
|
234
235
|
h("div", { class: "inputs" },
|
|
235
|
-
h("z-input", { class: "go-to-page-input", type: "number", message: false, placeholder: "2", hasclearicon: false, onInput: (ev) => {
|
|
236
|
+
h("z-input", { class: "go-to-page-input", type: "number", min: 1, max: this.totalPages, message: false, placeholder: "2", hasclearicon: false, onInput: (ev) => {
|
|
237
|
+
this.goToPageValue = ev.target.value;
|
|
238
|
+
}, onKeyDown: (ev) => ev.key === "Enter" && this.selectPage(this.goToPageValue) }),
|
|
236
239
|
h("z-button", { disabled: !this.goToPageValue, title: "Vai alla pagina inserita", onClick: () => this.selectPage(this.goToPageValue) }, "vai")))),
|
|
237
240
|
];
|
|
238
241
|
}
|