@zanichelli/delta_share 4.0.0 → 4.1.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/dist/wc/cjs/delta_share.cjs.js +1 -1
- package/dist/wc/cjs/{index-405a1782.js → index-376d9f31.js} +1 -1
- package/dist/wc/cjs/index-48ad79ef.js +12 -4
- package/dist/wc/cjs/{index-c22b1079.js → index-49643807.js} +1 -1
- package/dist/wc/cjs/{index-ce49a372.js → index-bdde15d7.js} +2 -2
- package/dist/wc/cjs/{index-5854a783.js → index-c56dd0b3.js} +3 -3
- package/dist/wc/cjs/{index-a1571f05.js → index-dca3e969.js} +2 -2
- package/dist/wc/cjs/{index-f209baa4.js → index-ee150627.js} +5 -5
- package/dist/wc/cjs/{index-9c3aec20.js → index-f043c44c.js} +14 -3
- package/dist/wc/cjs/license-activation_10.cjs.entry.js +27 -20
- package/dist/wc/cjs/loader.cjs.js +1 -1
- package/dist/wc/cjs/{utils-ff107ab4.js → utils-19feebcd.js} +1 -1
- package/dist/wc/cjs/{utils-1b80375b.js → utils-e18cc609.js} +1 -1
- package/dist/wc/cjs/z-accordion.cjs.entry.js +3 -3
- package/dist/wc/cjs/z-alert.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-anchor-navigation.cjs.entry.js +3 -3
- package/dist/wc/cjs/z-app-header-deprecated.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-app-header.cjs.entry.js +4 -4
- package/dist/wc/cjs/z-aria-alert.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-avatar.cjs.entry.js +3 -3
- package/dist/wc/cjs/z-book-card-app.cjs.entry.js +36 -0
- package/dist/wc/cjs/z-book-card-deprecated.cjs.entry.js +135 -0
- package/dist/wc/cjs/z-book-card.cjs.entry.js +82 -96
- package/dist/wc/cjs/z-breadcrumb.cjs.entry.js +5 -5
- package/dist/wc/cjs/z-button-sort.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-card.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-carousel.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-chip.cjs.entry.js +3 -3
- package/dist/wc/cjs/z-combobox.cjs.entry.js +4 -4
- package/dist/wc/cjs/z-cover-hero.cjs.entry.js +3 -3
- package/dist/wc/cjs/z-date-picker.cjs.entry.js +3 -3
- package/dist/wc/cjs/z-divider.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-dragdrop-area.cjs.entry.js +12 -16
- package/dist/wc/cjs/z-file-upload.cjs.entry.js +78 -102
- package/dist/wc/cjs/z-file.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-ghost-loading.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-info-reveal.cjs.entry.js +3 -3
- package/dist/wc/cjs/z-list_4.cjs.entry.js +8 -8
- package/dist/wc/cjs/z-logo.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-menu-deprecated.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-menu-section-deprecated.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-menu-section.cjs.entry.js +3 -3
- package/dist/wc/cjs/z-menu.cjs.entry.js +3 -3
- package/dist/wc/cjs/z-myz-card-alert.cjs.entry.js +3 -3
- package/dist/wc/cjs/z-myz-card-dictionary.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-myz-card-footer-sections.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-myz-card-footer.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-myz-card-icon.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-myz-card-info.cjs.entry.js +4 -4
- package/dist/wc/cjs/z-myz-card-list.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-myz-card_4.cjs.entry.js +7 -7
- package/dist/wc/cjs/z-myz-list-item.cjs.entry.js +3 -3
- package/dist/wc/cjs/z-myz-list.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-navigation-tabs.cjs.entry.js +4 -4
- package/dist/wc/cjs/z-notification.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-offcanvas_2.cjs.entry.js +51 -12
- package/dist/wc/cjs/z-otp.cjs.entry.js +3 -3
- package/dist/wc/cjs/z-pagination.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-panel-elem.cjs.entry.js +3 -2
- package/dist/wc/cjs/z-popover.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-range-picker.cjs.entry.js +5 -5
- package/dist/wc/cjs/z-section-title.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-select.cjs.entry.js +3 -3
- package/dist/wc/cjs/z-skip-to-content.cjs.entry.js +4 -5
- package/dist/wc/cjs/z-slideshow.cjs.entry.js +3 -3
- package/dist/wc/cjs/z-stepper-item.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-stepper.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-table.cjs.entry.js +9 -9
- package/dist/wc/cjs/z-tbody.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-td.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-tfoot.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-th.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-thead.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-toast-notification-list.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-toast-notification.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-toggle-button.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-toggle-switch.cjs.entry.js +5 -5
- package/dist/wc/cjs/z-tooltip.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-tr.cjs.entry.js +5 -5
- package/dist/wc/cjs/z-visually-hidden.cjs.entry.js +1 -1
- package/dist/wc/collection/collection-manifest.json +2 -0
- package/dist/wc/collection/components/license-activation-form/license-activation-form.css +2 -2
- package/dist/wc/collection/components/license-activation-form/license-activation-form.js +1 -1
- package/dist/wc/custom-elements/index.js +445 -266
- package/dist/wc/delta_share/delta_share.esm.js +1 -1
- package/dist/wc/delta_share/p-013e4409.entry.js +1 -0
- package/dist/wc/delta_share/{p-148ce1f3.entry.js → p-018ee9d6.entry.js} +1 -1
- package/dist/wc/delta_share/{p-2df15f43.entry.js → p-02ebcfea.entry.js} +1 -1
- package/dist/wc/delta_share/p-0ae2c3f2.entry.js +1 -0
- package/dist/wc/delta_share/{p-6b0f653f.entry.js → p-19676cde.entry.js} +1 -1
- package/dist/wc/delta_share/{p-903067b4.entry.js → p-1d029eee.entry.js} +1 -1
- package/dist/wc/delta_share/{p-f1c47fff.entry.js → p-262ab797.entry.js} +2 -2
- package/dist/wc/delta_share/{p-f002c0bd.entry.js → p-28cf49f6.entry.js} +1 -1
- package/dist/wc/delta_share/p-295518af.entry.js +1 -0
- package/dist/wc/delta_share/{p-8ff9652b.entry.js → p-29f14555.entry.js} +1 -1
- package/dist/wc/delta_share/p-29fc3a79.entry.js +1 -0
- package/dist/wc/delta_share/{p-bab3d1cb.entry.js → p-2a01a3f3.entry.js} +1 -1
- package/dist/wc/delta_share/{p-e0973089.entry.js → p-2b97cd87.entry.js} +1 -1
- package/dist/wc/delta_share/{p-576def78.entry.js → p-3104a139.entry.js} +1 -1
- package/dist/wc/delta_share/{p-0a67ed21.entry.js → p-3870dbe2.entry.js} +1 -1
- package/dist/wc/delta_share/p-3b354b80.entry.js +1 -0
- package/dist/wc/delta_share/{p-c0ca33be.entry.js → p-3b4d4f00.entry.js} +1 -1
- package/dist/wc/delta_share/{p-cb11c710.entry.js → p-3d013235.entry.js} +1 -1
- package/dist/wc/delta_share/p-4449733f.entry.js +1 -0
- package/dist/wc/delta_share/{p-5ef85199.js → p-444db53b.js} +1 -1
- package/dist/wc/delta_share/{p-b724df69.entry.js → p-44ceafee.entry.js} +1 -1
- package/dist/wc/delta_share/p-4cfc333d.js +1 -0
- package/dist/wc/delta_share/{p-193ddfc3.entry.js → p-5212008a.entry.js} +1 -1
- package/dist/wc/delta_share/{p-f90ae8fc.entry.js → p-566c9267.entry.js} +1 -1
- package/dist/wc/delta_share/p-59f14c8d.entry.js +1 -0
- package/dist/wc/delta_share/{p-2e8f2b22.entry.js → p-5adb7aa8.entry.js} +1 -1
- package/dist/wc/delta_share/{p-adf4d729.entry.js → p-620a959a.entry.js} +1 -1
- package/dist/wc/delta_share/p-62a61516.js +1 -0
- package/dist/wc/delta_share/{p-069cc2de.entry.js → p-63d78af3.entry.js} +1 -1
- package/dist/wc/delta_share/{p-ee09fc8d.entry.js → p-6653b9a1.entry.js} +1 -1
- package/dist/wc/delta_share/{p-b307c221.js → p-6c8159ea.js} +1 -1
- package/dist/wc/delta_share/{p-4e7c6413.entry.js → p-707c5585.entry.js} +1 -1
- package/dist/wc/delta_share/{p-c9c8b659.entry.js → p-7fda0bed.entry.js} +1 -1
- package/dist/wc/delta_share/p-8134fe51.entry.js +1 -0
- package/dist/wc/delta_share/p-866f8a49.entry.js +1 -0
- package/dist/wc/delta_share/{p-9c968734.entry.js → p-86964f3b.entry.js} +2 -2
- package/dist/wc/delta_share/{p-93a18eb7.entry.js → p-87332b01.entry.js} +1 -1
- package/dist/wc/delta_share/p-8c81d9b2.entry.js +1 -0
- package/dist/wc/delta_share/{p-f6075d7c.entry.js → p-8f9ed094.entry.js} +1 -1
- package/dist/wc/delta_share/{p-2fc2aa62.entry.js → p-99acd07f.entry.js} +1 -1
- package/dist/wc/delta_share/p-9c18160e.entry.js +1 -0
- package/dist/wc/delta_share/{p-baff4861.entry.js → p-9ed10859.entry.js} +1 -1
- package/dist/wc/delta_share/{p-7c207e2e.entry.js → p-a21fd966.entry.js} +1 -1
- package/dist/wc/delta_share/{p-3b183716.entry.js → p-a74a2ea7.entry.js} +1 -1
- package/dist/wc/delta_share/{p-841f8f71.entry.js → p-a85812cb.entry.js} +1 -1
- package/dist/wc/delta_share/p-b0a69730.entry.js +1 -0
- package/dist/wc/delta_share/p-b0c09e8c.entry.js +1 -0
- package/dist/wc/delta_share/p-ba1facc4.entry.js +1 -0
- package/dist/wc/delta_share/{p-152e098e.js → p-bcbf4111.js} +1 -1
- package/dist/wc/delta_share/{p-873f0f34.js → p-c2331325.js} +1 -1
- package/dist/wc/delta_share/p-c804a012.entry.js +1 -0
- package/dist/wc/delta_share/p-c8bbe9e8.entry.js +1 -0
- package/dist/wc/delta_share/p-ca9baa11.entry.js +1 -0
- package/dist/wc/delta_share/p-cb91ed58.entry.js +1 -0
- package/dist/wc/delta_share/p-ce5a0e4a.js +1 -0
- package/dist/wc/delta_share/p-cee50bb2.entry.js +1 -0
- package/dist/wc/delta_share/p-d0c5e474.entry.js +1 -0
- package/dist/wc/delta_share/p-d46bf9a5.js +1 -0
- package/dist/wc/delta_share/p-ddde8778.entry.js +1 -0
- package/dist/wc/delta_share/p-de08796d.entry.js +1 -0
- package/dist/wc/delta_share/p-e04a44e2.entry.js +1 -0
- package/dist/wc/delta_share/{p-20a0d980.entry.js → p-e070058d.entry.js} +1 -1
- package/dist/wc/delta_share/{p-93ad6bbd.entry.js → p-e1e28def.entry.js} +1 -1
- package/dist/wc/delta_share/{p-ccf2fd6c.entry.js → p-e433303b.entry.js} +1 -1
- package/dist/wc/delta_share/{p-ea23ec67.entry.js → p-e4fd3b00.entry.js} +1 -1
- package/dist/wc/delta_share/p-e642c65b.entry.js +1 -0
- package/dist/wc/delta_share/p-e8902ced.entry.js +1 -0
- package/dist/wc/delta_share/{p-133d17f0.entry.js → p-e90554fa.entry.js} +1 -1
- package/dist/wc/delta_share/{p-a03a7dbd.entry.js → p-e9369c2c.entry.js} +1 -1
- package/dist/wc/delta_share/p-eab0941b.entry.js +3 -0
- package/dist/wc/delta_share/p-ecc6113d.entry.js +1 -0
- package/dist/wc/delta_share/{p-21c82b99.entry.js → p-f44c8791.entry.js} +1 -1
- package/dist/wc/delta_share/p-fb066b3f.entry.js +1 -0
- package/dist/wc/delta_share/{p-5dcbb1d5.entry.js → p-fc5a8411.entry.js} +1 -1
- package/dist/wc/delta_share/p-fc6c2cae.entry.js +1 -0
- package/dist/wc/delta_share/{p-f685348b.js → p-ff64ac0d.js} +1 -1
- package/dist/wc/delta_share/{p-89879344.entry.js → p-ff7ff884.entry.js} +1 -1
- package/dist/wc/esm/delta_share.js +1 -1
- package/dist/wc/esm/{index-cd166cda.js → index-022ca053.js} +2 -2
- package/dist/wc/esm/{index-74e0ef99.js → index-2f04648d.js} +15 -4
- package/dist/wc/esm/{index-db80adda.js → index-46586cb9.js} +1 -1
- package/dist/wc/esm/{index-f98b91fa.js → index-65a6f17d.js} +2 -2
- package/dist/wc/esm/{index-02968d97.js → index-68d2aa41.js} +5 -5
- package/dist/wc/esm/{index-65780d25.js → index-a0e81965.js} +1 -1
- package/dist/wc/esm/index-b69e88d4.js +12 -4
- package/dist/wc/esm/{index-477f3c77.js → index-df47a432.js} +3 -3
- package/dist/wc/esm/license-activation_10.entry.js +27 -20
- package/dist/wc/esm/loader.js +1 -1
- package/dist/wc/esm/{utils-9550bfa1.js → utils-098de0ea.js} +1 -1
- package/dist/wc/esm/{utils-1f351a57.js → utils-aa5e2546.js} +1 -1
- package/dist/wc/esm/z-accordion.entry.js +3 -3
- package/dist/wc/esm/z-alert.entry.js +1 -1
- package/dist/wc/esm/z-anchor-navigation.entry.js +3 -3
- package/dist/wc/esm/z-app-header-deprecated.entry.js +2 -2
- package/dist/wc/esm/z-app-header.entry.js +4 -4
- package/dist/wc/esm/z-aria-alert.entry.js +2 -2
- package/dist/wc/esm/z-avatar.entry.js +3 -3
- package/dist/wc/esm/z-book-card-app.entry.js +32 -0
- package/dist/wc/esm/z-book-card-deprecated.entry.js +131 -0
- package/dist/wc/esm/z-book-card.entry.js +82 -96
- package/dist/wc/esm/z-breadcrumb.entry.js +5 -5
- package/dist/wc/esm/z-button-sort.entry.js +1 -1
- package/dist/wc/esm/z-card.entry.js +1 -1
- package/dist/wc/esm/z-carousel.entry.js +1 -1
- package/dist/wc/esm/z-chip.entry.js +3 -3
- package/dist/wc/esm/z-combobox.entry.js +4 -4
- package/dist/wc/esm/z-cover-hero.entry.js +3 -3
- package/dist/wc/esm/z-date-picker.entry.js +3 -3
- package/dist/wc/esm/z-divider.entry.js +2 -2
- package/dist/wc/esm/z-dragdrop-area.entry.js +13 -17
- package/dist/wc/esm/z-file-upload.entry.js +78 -102
- package/dist/wc/esm/z-file.entry.js +2 -2
- package/dist/wc/esm/z-ghost-loading.entry.js +2 -2
- package/dist/wc/esm/z-info-reveal.entry.js +3 -3
- package/dist/wc/esm/z-list_4.entry.js +8 -8
- package/dist/wc/esm/z-logo.entry.js +1 -1
- package/dist/wc/esm/z-menu-deprecated.entry.js +2 -2
- package/dist/wc/esm/z-menu-section-deprecated.entry.js +2 -2
- package/dist/wc/esm/z-menu-section.entry.js +3 -3
- package/dist/wc/esm/z-menu.entry.js +3 -3
- package/dist/wc/esm/z-myz-card-alert.entry.js +3 -3
- package/dist/wc/esm/z-myz-card-dictionary.entry.js +2 -2
- package/dist/wc/esm/z-myz-card-footer-sections.entry.js +1 -1
- package/dist/wc/esm/z-myz-card-footer.entry.js +2 -2
- package/dist/wc/esm/z-myz-card-icon.entry.js +1 -1
- package/dist/wc/esm/z-myz-card-info.entry.js +4 -4
- package/dist/wc/esm/z-myz-card-list.entry.js +1 -1
- package/dist/wc/esm/z-myz-card_4.entry.js +7 -7
- package/dist/wc/esm/z-myz-list-item.entry.js +3 -3
- package/dist/wc/esm/z-myz-list.entry.js +1 -1
- package/dist/wc/esm/z-navigation-tabs.entry.js +4 -4
- package/dist/wc/esm/z-notification.entry.js +1 -1
- package/dist/wc/esm/z-offcanvas_2.entry.js +51 -12
- package/dist/wc/esm/z-otp.entry.js +3 -3
- package/dist/wc/esm/z-pagination.entry.js +1 -1
- package/dist/wc/esm/z-panel-elem.entry.js +3 -2
- package/dist/wc/esm/z-popover.entry.js +2 -2
- package/dist/wc/esm/z-range-picker.entry.js +5 -5
- package/dist/wc/esm/z-section-title.entry.js +2 -2
- package/dist/wc/esm/z-select.entry.js +3 -3
- package/dist/wc/esm/z-skip-to-content.entry.js +4 -5
- package/dist/wc/esm/z-slideshow.entry.js +3 -3
- package/dist/wc/esm/z-stepper-item.entry.js +1 -1
- package/dist/wc/esm/z-stepper.entry.js +1 -1
- package/dist/wc/esm/z-table.entry.js +9 -9
- package/dist/wc/esm/z-tbody.entry.js +1 -1
- package/dist/wc/esm/z-td.entry.js +2 -2
- package/dist/wc/esm/z-tfoot.entry.js +1 -1
- package/dist/wc/esm/z-th.entry.js +2 -2
- package/dist/wc/esm/z-thead.entry.js +1 -1
- package/dist/wc/esm/z-toast-notification-list.entry.js +2 -2
- package/dist/wc/esm/z-toast-notification.entry.js +2 -2
- package/dist/wc/esm/z-toggle-button.entry.js +2 -2
- package/dist/wc/esm/z-toggle-switch.entry.js +5 -5
- package/dist/wc/esm/z-tooltip.entry.js +2 -2
- package/dist/wc/esm/z-tr.entry.js +5 -5
- package/dist/wc/esm/z-visually-hidden.entry.js +1 -1
- package/package.json +1 -1
- package/dist/wc/delta_share/p-03cc4be4.entry.js +0 -1
- package/dist/wc/delta_share/p-146386e4.entry.js +0 -1
- package/dist/wc/delta_share/p-160b3aa1.js +0 -1
- package/dist/wc/delta_share/p-185c06b2.js +0 -1
- package/dist/wc/delta_share/p-18f180f7.entry.js +0 -1
- package/dist/wc/delta_share/p-2d2b2bb4.entry.js +0 -1
- package/dist/wc/delta_share/p-33e298a6.entry.js +0 -1
- package/dist/wc/delta_share/p-3a21c604.js +0 -1
- package/dist/wc/delta_share/p-423a64c4.js +0 -1
- package/dist/wc/delta_share/p-47c9e381.entry.js +0 -1
- package/dist/wc/delta_share/p-4f085f30.entry.js +0 -1
- package/dist/wc/delta_share/p-63351f72.entry.js +0 -1
- package/dist/wc/delta_share/p-63a90675.entry.js +0 -1
- package/dist/wc/delta_share/p-6c56754f.entry.js +0 -1
- package/dist/wc/delta_share/p-6f585df9.entry.js +0 -1
- package/dist/wc/delta_share/p-72dfd888.entry.js +0 -1
- package/dist/wc/delta_share/p-7768e58a.entry.js +0 -1
- package/dist/wc/delta_share/p-7e79bb6e.entry.js +0 -1
- package/dist/wc/delta_share/p-a8e34ef2.entry.js +0 -1
- package/dist/wc/delta_share/p-b0edd600.entry.js +0 -1
- package/dist/wc/delta_share/p-cf6f7c96.entry.js +0 -3
- package/dist/wc/delta_share/p-d0444907.entry.js +0 -1
- package/dist/wc/delta_share/p-d1724071.entry.js +0 -1
- package/dist/wc/delta_share/p-d23fb987.entry.js +0 -1
- package/dist/wc/delta_share/p-e237572d.entry.js +0 -1
- package/dist/wc/delta_share/p-e3eb4863.entry.js +0 -1
- package/dist/wc/delta_share/p-e7d0cdcf.entry.js +0 -1
- package/dist/wc/delta_share/p-e9ec361e.entry.js +0 -1
- package/dist/wc/delta_share/p-efd9e806.entry.js +0 -1
- package/dist/wc/delta_share/p-f7a0336e.entry.js +0 -1
- package/dist/wc/delta_share/p-fd19aa4b.entry.js +0 -1
|
@@ -1,26 +1,19 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-b69e88d4.js';
|
|
2
|
-
import {
|
|
3
|
-
import { g as getDevice } from './utils-1f351a57.js';
|
|
4
|
-
import './breakpoints-9229197d.js';
|
|
2
|
+
import { t as ZFileUploadType } from './index-2f04648d.js';
|
|
5
3
|
|
|
6
|
-
const stylesCss = ":
|
|
4
|
+
const stylesCss = ".sc-z-file-upload-h{display:flex;flex-direction:column;align-items:flex-start;color:var(--color-default-text);font-family:var(--font-family-sans);font-weight:var(--font-rg)}.sc-z-file-upload-h .modal-wrapper.sc-z-file-upload{display:flex;flex-direction:column;justify-content:center;padding:calc(var(--space-unit) * 2);row-gap:calc(var(--space-unit) * 2)}.sc-z-file-upload-h .modal-wrapper.sc-z-file-upload>.files-wrapper.sc-z-file-upload{display:flex;flex-direction:column;margin:calc(var(--space-unit) * 4);gap:var(--space-unit)}.sc-z-file-upload-h .text-container.sc-z-file-upload{display:flex;flex-direction:column;margin:auto;text-align:center}.sc-z-file-upload-h .text-container.sc-z-file-upload .upload-link.sc-z-file-upload{color:var(--color-text-link-blue);cursor:pointer;text-decoration:underline}.sc-z-file-upload-h .text-container.sc-z-file-upload .upload-link.sc-z-file-upload:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none !important}.sc-z-file-upload-h .text-container.sc-z-file-upload .upload-link-text.sc-z-file-upload{margin-bottom:var(--space-unit)}.sc-z-file-upload-h input[type=\"file\"].sc-z-file-upload{display:none}.sc-z-file-upload-h #title.sc-z-file-upload+#description.sc-z-file-upload{margin-top:var(--space-unit)}.sc-z-file-upload-h>*.sc-z-file-upload+z-button.sc-z-file-upload,.sc-z-file-upload-h>.files-container.sc-z-file-upload+*.sc-z-file-upload,.sc-z-file-upload-h>.files-container.sc-z-file-upload:not(:first-child){margin-top:calc(var(--space-unit) * 3)}.sc-z-file-upload-h>.files-container.hidden.sc-z-file-upload{display:none}.sc-z-file-upload-h>.files-container.sc-z-file-upload>.uploaded-files-label.sc-z-file-upload{margin-bottom:calc(var(--space-unit) * 2)}.sc-z-file-upload-h>.files-container.sc-z-file-upload>.files-wrapper.sc-z-file-upload{display:flex;flex-wrap:wrap;column-gap:calc(var(--space-unit) * 2);row-gap:calc(var(--space-unit) * 2)}@media (min-width: 768px){.sc-z-file-upload-h>.container.sc-z-file-upload>z-button.sc-z-file-upload{align-self:flex-start}.sc-z-file-upload-h .modal-wrapper.sc-z-file-upload{padding:calc(var(--space-unit) * 3)}}@media (min-width: 1152px){.sc-z-file-upload-h .modal-wrapper.sc-z-file-upload{padding:calc(var(--space-unit) * 4)}}";
|
|
7
5
|
|
|
8
6
|
const ZFileUpload = class {
|
|
9
7
|
constructor(hostRef) {
|
|
10
8
|
registerInstance(this, hostRef);
|
|
11
9
|
this.fileInput = createEvent(this, "fileInput", 7);
|
|
12
|
-
this.
|
|
13
|
-
type: "file",
|
|
14
|
-
id: "file-elem",
|
|
15
|
-
multiple: true,
|
|
16
|
-
};
|
|
10
|
+
this.fileError = createEvent(this, "fileError", 7);
|
|
17
11
|
this.type = ZFileUploadType.DEFAULT;
|
|
18
12
|
this.buttonVariant = undefined;
|
|
19
13
|
this.acceptedFormat = undefined;
|
|
20
14
|
this.fileMaxSize = undefined;
|
|
21
15
|
this.mainTitle = undefined;
|
|
22
16
|
this.description = undefined;
|
|
23
|
-
this.files = [];
|
|
24
17
|
this.uploadBtnLabel = "allega";
|
|
25
18
|
this.dragAndDropLabel = "Rilascia i file in questa area per allegarli.";
|
|
26
19
|
this.allowedFilesMessage = undefined;
|
|
@@ -30,100 +23,88 @@ const ZFileUpload = class {
|
|
|
30
23
|
this.errorModalMessage = undefined;
|
|
31
24
|
this.uploadedFilesLabel = "File appena caricati";
|
|
32
25
|
this.hasFileSection = true;
|
|
33
|
-
this.
|
|
26
|
+
this.inputName = "z-file-upload";
|
|
27
|
+
this.showErrors = true;
|
|
28
|
+
this._type = this.type;
|
|
29
|
+
this.files = [];
|
|
30
|
+
this.invalidFiles = new Map();
|
|
34
31
|
}
|
|
35
|
-
/** Listen removeFile event sent from z-file component */
|
|
36
|
-
|
|
37
|
-
this.
|
|
32
|
+
/** Listen `removeFile` event sent from z-file component */
|
|
33
|
+
onFileRemoved(e) {
|
|
34
|
+
this.removeFile(e.detail);
|
|
38
35
|
}
|
|
39
36
|
/** Listen fileDropped event sent from z-dragdrop-area component */
|
|
40
37
|
fileDroppedListener(e) {
|
|
41
38
|
this.input.files = e.detail;
|
|
42
|
-
this.
|
|
43
|
-
}
|
|
44
|
-
componentDidUpdate() {
|
|
45
|
-
this.handleAccessibility();
|
|
46
|
-
this.invalidFiles.size && this.errorModal.focus();
|
|
47
|
-
}
|
|
48
|
-
componentWillLoad() {
|
|
49
|
-
this.invalidFiles = new Map();
|
|
50
|
-
}
|
|
51
|
-
fileInputHandler() {
|
|
52
|
-
if (this.input.files.length) {
|
|
53
|
-
this.invalidFiles = this.checkFiles(Array.from(this.input.files));
|
|
54
|
-
}
|
|
39
|
+
this.checkFilesValidity(this.input.files);
|
|
55
40
|
}
|
|
56
|
-
/**
|
|
41
|
+
/** Get the list of uploaded files */
|
|
57
42
|
async getFiles() {
|
|
58
43
|
return this.files;
|
|
59
44
|
}
|
|
60
|
-
/**
|
|
45
|
+
/** Remove a previously uploaded file */
|
|
61
46
|
async removeFile(fileName) {
|
|
62
|
-
this.removeFileHandler(fileName);
|
|
63
|
-
}
|
|
64
|
-
removeFileHandler(fileName) {
|
|
65
47
|
const files = this.files;
|
|
66
|
-
const
|
|
67
|
-
if (
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
files.splice(index, 1);
|
|
71
|
-
this.files = [...files];
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
getType() {
|
|
76
|
-
if (getDevice() !== Device.DESKTOP && getDevice() !== Device.DESKTOP_WIDE) {
|
|
77
|
-
return ZFileUploadType.DEFAULT;
|
|
48
|
+
const index = files.findIndex((file) => file.name === fileName);
|
|
49
|
+
if (index >= 0) {
|
|
50
|
+
files.splice(index, 1);
|
|
51
|
+
this.files = [...files];
|
|
78
52
|
}
|
|
79
|
-
return this.type;
|
|
80
53
|
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
lastFile.focus();
|
|
85
|
-
}
|
|
86
|
-
else {
|
|
87
|
-
this.getType() === ZFileUploadType.DEFAULT
|
|
88
|
-
? this.button.querySelector("button").focus()
|
|
89
|
-
: this.uploadLink.focus();
|
|
54
|
+
checkFilesValidity(files) {
|
|
55
|
+
if (!files.length) {
|
|
56
|
+
return;
|
|
90
57
|
}
|
|
91
|
-
|
|
92
|
-
checkFiles(files) {
|
|
93
|
-
const errors = new Map();
|
|
94
|
-
const sizeErrorString = `supera il limite di ${this.fileMaxSize}MB`;
|
|
95
|
-
const formatErrorString = " ha un formato non supportato";
|
|
96
|
-
files.forEach((file) => {
|
|
58
|
+
Array.from(files).forEach((file) => {
|
|
97
59
|
const fileSize = file.size / 1024 / 1024;
|
|
98
60
|
const fileFormatOk = this.acceptedFormat
|
|
99
61
|
.split(",")
|
|
100
62
|
.some((ext) => file.name.toLowerCase().endsWith(ext.trim()));
|
|
101
63
|
const fileSizeOk = fileSize <= this.fileMaxSize;
|
|
102
|
-
if (fileSizeOk && fileFormatOk) {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
this.input.value = "";
|
|
107
|
-
}
|
|
64
|
+
if (fileSizeOk && fileFormatOk && !this.files.find((f) => f.name === file.name)) {
|
|
65
|
+
this.files = [...this.files, file];
|
|
66
|
+
this.fileInput.emit(file);
|
|
67
|
+
this.input.value = "";
|
|
108
68
|
return;
|
|
109
69
|
}
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
70
|
+
const sizeError = `Il file ${file.name} supera il limite di ${this.fileMaxSize}MB`;
|
|
71
|
+
const formatError = `Il file ${file.name} ha un formato non supportato`;
|
|
72
|
+
const errors = [
|
|
73
|
+
!fileSizeOk && { cause: "size", message: sizeError },
|
|
74
|
+
!fileFormatOk && { cause: "format", message: formatError },
|
|
75
|
+
].filter(Boolean);
|
|
76
|
+
this.invalidFiles.set(file.name, errors);
|
|
77
|
+
this.invalidFiles = new Map(this.invalidFiles); // trigger state update
|
|
78
|
+
this.fileError.emit({ file: file.name, errors });
|
|
117
79
|
});
|
|
118
|
-
return errors;
|
|
119
80
|
}
|
|
120
|
-
|
|
121
|
-
|
|
81
|
+
resetErrors() {
|
|
82
|
+
this.invalidFiles = new Map();
|
|
83
|
+
}
|
|
84
|
+
onFilesChange(e) {
|
|
85
|
+
this.checkFilesValidity(e.target.files);
|
|
86
|
+
}
|
|
87
|
+
componentWillLoad() {
|
|
88
|
+
// force default type on mobile and tablet viewport
|
|
89
|
+
const mql = window.matchMedia("(max-width: 1151px)");
|
|
90
|
+
this._type = mql.matches ? ZFileUploadType.DEFAULT : this.type;
|
|
91
|
+
mql.addEventListener("change", (e) => {
|
|
92
|
+
this._type = e.matches ? ZFileUploadType.DEFAULT : this.type;
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
componentDidUpdate() {
|
|
96
|
+
if (!this.showErrors || !this.invalidFiles.size) {
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
this.errorModal.open();
|
|
122
100
|
}
|
|
123
101
|
renderDescription(cssClass) {
|
|
124
|
-
|
|
102
|
+
if (!this.description) {
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
return (h("span", { id: "description", class: cssClass }, this.description));
|
|
125
106
|
}
|
|
126
|
-
|
|
107
|
+
renderAllowedFilesMessage() {
|
|
127
108
|
let fileFormatString = "";
|
|
128
109
|
let fileWeightString = "";
|
|
129
110
|
if (this.acceptedFormat) {
|
|
@@ -136,31 +117,30 @@ const ZFileUpload = class {
|
|
|
136
117
|
if (this.fileMaxSize) {
|
|
137
118
|
fileWeightString = ` per un massimo di ${this.fileMaxSize}MB di peso`;
|
|
138
119
|
}
|
|
139
|
-
const
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
: null));
|
|
120
|
+
const defaultMessage = fileFormatString || fileWeightString ? `Puoi allegare file${fileFormatString}${fileWeightString}.` : undefined;
|
|
121
|
+
if (!this.allowedFilesMessage && !defaultMessage) {
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
124
|
+
return h("span", { class: "allowed-files-message body-3" }, this.allowedFilesMessage || defaultMessage);
|
|
145
125
|
}
|
|
146
126
|
renderFileSection() {
|
|
147
127
|
if (!this.hasFileSection) {
|
|
148
128
|
return;
|
|
149
129
|
}
|
|
150
|
-
return (h("section", { class:
|
|
130
|
+
return (h("section", { class: { "files-container": true, "hidden": !this.files.length } }, h("div", { class: "uploaded-files-label heading-3-sb" }, this.uploadedFilesLabel), h("div", { class: "files-wrapper" }, h("slot", { name: "files" }))));
|
|
151
131
|
}
|
|
152
132
|
renderInput() {
|
|
153
|
-
return (h("input",
|
|
133
|
+
return (h("input", { type: "file", name: this.inputName, multiple: true, onChange: (e) => this.onFilesChange(e), accept: this.acceptedFormat, ref: (val) => (this.input = val) }));
|
|
154
134
|
}
|
|
155
135
|
renderUploadButton() {
|
|
156
136
|
return [
|
|
157
|
-
this.renderInput(),
|
|
158
137
|
h("z-button", { onClick: () => this.input.click(), onKeyPress: (e) => {
|
|
159
138
|
if (e.code == "Space" || e.code == "Enter") {
|
|
160
139
|
e.preventDefault();
|
|
161
140
|
this.input.click();
|
|
162
141
|
}
|
|
163
|
-
}, id: "fileSelect", variant: this.buttonVariant, icon: "upload"
|
|
142
|
+
}, id: "fileSelect", variant: this.buttonVariant, icon: "upload" }, this.uploadBtnLabel),
|
|
143
|
+
this.renderInput(),
|
|
164
144
|
];
|
|
165
145
|
}
|
|
166
146
|
renderUploadLink() {
|
|
@@ -171,13 +151,13 @@ const ZFileUpload = class {
|
|
|
171
151
|
e.preventDefault();
|
|
172
152
|
this.input.click();
|
|
173
153
|
}
|
|
174
|
-
}
|
|
154
|
+
} }, this.uploadClickableMessage), " ", this.uploadMessage),
|
|
175
155
|
];
|
|
176
156
|
}
|
|
177
157
|
renderDefaultMode() {
|
|
178
158
|
return [
|
|
179
159
|
this.renderDescription("body-3-sb"),
|
|
180
|
-
this.
|
|
160
|
+
this.renderAllowedFilesMessage(),
|
|
181
161
|
this.renderFileSection(),
|
|
182
162
|
this.renderUploadButton(),
|
|
183
163
|
];
|
|
@@ -185,23 +165,19 @@ const ZFileUpload = class {
|
|
|
185
165
|
renderDragDropMode() {
|
|
186
166
|
return [
|
|
187
167
|
this.renderFileSection(),
|
|
188
|
-
h("z-dragdrop-area", { "drag-and-drop-label": this.dragAndDropLabel }, h("div", { class: "text-container" }, this.renderDescription("body-1"), this.renderUploadLink(), this.
|
|
168
|
+
h("z-dragdrop-area", { "drag-and-drop-label": this.dragAndDropLabel }, h("div", { class: "text-container" }, this.renderDescription("body-1"), this.renderUploadLink(), this.renderAllowedFilesMessage())),
|
|
189
169
|
];
|
|
190
170
|
}
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
handleErrorModalContent() {
|
|
197
|
-
return (h("div", { slot: "modalContent" }, h("div", { class: "modal-wrapper" }, h("div", { class: "files" }, this.errorModalMessage ? (h("span", { class: "body-3" }, this.errorModalMessage)) : (Array.from(this.invalidFiles).map(([key, value]) => {
|
|
198
|
-
return h("span", { class: "body-3" }, this.formatErrorString(key, value));
|
|
199
|
-
}))))));
|
|
171
|
+
renderFileErrors() {
|
|
172
|
+
return Array.from(this.invalidFiles).map(([fileName, errors]) => {
|
|
173
|
+
const prefix = `Il file ${fileName}`;
|
|
174
|
+
return (h("span", { class: "error-message" }, "Il file ", h("span", { class: "body-3-sb" }, fileName), errors.map(({ message }) => message.replace(prefix, "")).join(" e "), "."));
|
|
175
|
+
});
|
|
200
176
|
}
|
|
201
177
|
render() {
|
|
202
|
-
return (h(Host, { key: '
|
|
178
|
+
return (h(Host, { key: 'ea57cc0462e4358d04bfc8f5709b61be50947e7a' }, this.mainTitle && (h("div", { key: '59e23f66172333b963922832782a8ac89611acb9', id: "title", class: "heading-3-sb" }, this.mainTitle)), this._type == ZFileUploadType.DEFAULT ? this.renderDefaultMode() : this.renderDragDropMode(), !!this.invalidFiles.size && this.showErrors && (h("z-modal", { key: '64cb55a1c0fb491a9dd5b414a309b284e4f2d24e', modalid: `file-upload-${this.type}-error-modal`, ref: (val) => (this.errorModal = val), modaltitle: this.errorModalTitle, onModalClose: () => this.resetErrors(), onModalBackgroundClick: () => this.resetErrors() }, h("div", { key: '255cf2140f1ca881f90df6952965abc8f364f4d0', slot: "modalContent" }, h("div", { key: '03638b6b970c72c73ac7014f0c7848a032029963', class: "modal-wrapper body-3" }, this.errorModalMessage ? this.errorModalMessage : this.renderFileErrors()))))));
|
|
203
179
|
}
|
|
204
|
-
get
|
|
180
|
+
get host() { return getElement(this); }
|
|
205
181
|
};
|
|
206
182
|
ZFileUpload.style = stylesCss;
|
|
207
183
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-b69e88d4.js';
|
|
2
|
-
import {
|
|
2
|
+
import { s as ZChipType, P as PopoverPosition } from './index-2f04648d.js';
|
|
3
3
|
import { B as Breakpoints } from './breakpoints-9229197d.js';
|
|
4
4
|
|
|
5
5
|
const stylesCss = ".sc-z-file-h{position:relative;font-family:var(--font-family-sans);font-weight:var(--font-rg)}.sc-z-file-h>z-popover.sc-z-file{z-index:10}.sc-z-file-h>z-popover.sc-z-file>.tooltip-content.sc-z-file{white-space:nowrap}.sc-z-file-h>z-chip.sc-z-file span.sc-z-file{display:block;overflow:hidden;max-width:250px;letter-spacing:0.32px;line-height:1.33;text-overflow:ellipsis;white-space:nowrap}";
|
|
@@ -37,7 +37,7 @@ const ZFile = class {
|
|
|
37
37
|
return this.ellipsis.offsetWidth < this.ellipsis.scrollWidth;
|
|
38
38
|
}
|
|
39
39
|
render() {
|
|
40
|
-
return (h(Host, { key: '
|
|
40
|
+
return (h(Host, { key: '9a670c454baa87afc7d1c9e47a744eecaa074c68' }, this.allowPopover && (h("z-popover", { key: '8d5d38d65a09aee75d56b888b9828a3f8a9e1626', open: this.popoverVisible, position: PopoverPosition.AUTO, bindTo: this.chip }, h("span", { key: 'c24e0d8afecbe3fdfb6370c76ddc0db54f597497', class: "body-5 tooltip-content" }, this.ellipsis.innerText))), h("z-chip", { key: 'a5c4ff0f9366bb59d581c9d48606d8989bbed678', ref: (el) => (this.chip = el), id: `chip-${this.fileNumber}`, interactiveIcon: "multiply-circled", type: ZChipType.DEFAULT }, h("span", { key: 'eed1a949170a44f7ff618ec3e363923aea656742', ref: (el) => (this.ellipsis = el), tabIndex: -1 }, this.fileName))));
|
|
41
41
|
}
|
|
42
42
|
get el() { return getElement(this); }
|
|
43
43
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host } from './index-b69e88d4.js';
|
|
2
2
|
|
|
3
|
-
const stylesCss = ":host{display:inline-block;overflow:hidden;width:100%;height:100%;background:var(--color-
|
|
3
|
+
const stylesCss = ":host{display:inline-block;overflow:hidden;width:100%;height:100%;background:var(--color-background);border-radius:var(--border-radius);transform:translate3d(0, 0, 0)}:host::after{display:block;width:100%;height:100%;animation:progress 1.6s ease-in-out infinite;background-image:linear-gradient(\n 90deg,\n var(--color-background) 0%,\n var(--color-surface03) 95%,\n var(--color-background) 100%\n );content:\"\";filter:blur(6px)}@keyframes progress{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}";
|
|
4
4
|
|
|
5
5
|
const ZGhostLoading = class {
|
|
6
6
|
constructor(hostRef) {
|
|
7
7
|
registerInstance(this, hostRef);
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return h(Host, { key: '
|
|
10
|
+
return h(Host, { key: '8824327c1d3ba1c9b13dfdfd605c58dd7cd71b55' });
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
13
|
ZGhostLoading.style = stylesCss;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, a as getElement } from './index-b69e88d4.js';
|
|
2
|
-
import {
|
|
2
|
+
import { e as InfoRevealPosition, C as ControlSize } from './index-2f04648d.js';
|
|
3
3
|
|
|
4
|
-
const stylesCss = ":host{--z-info-reveal-panel-width:384px;--trigger-size:44px;position:relative}:host *{box-sizing:border-box}button{--trigger-icon-size:calc(var(--trigger-size) / 2);display:flex;align-items:center;justify-content:center;padding:0;border:none;background-color:transparent;cursor:pointer;font-family:inherit;letter-spacing:inherit}button:focus:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none}.z-info-reveal-trigger{min-width:var(--trigger-size);height:var(--trigger-size);padding:calc((var(--trigger-size) - var(--trigger-icon-size)) / 2);background-color:var(--color-surface05);border-radius:var(--border-radius);color:var(--color-text-inverse);column-gap:var(--space-unit);font-weight:var(--font-sb);line-height:1rem}:host([size=\"big\"]) .z-info-reveal-trigger{font-size:var(--font-size-2)}:host([size=\"small\"]) .z-info-reveal-trigger{--trigger-size:36px;font-size:var(--font-size-2)}:host([size=\"x-small\"]) .z-info-reveal-trigger{--trigger-size:32px;padding:var(--space-unit);font-size:var(--font-size-1)}:host>.z-info-reveal-trigger z-icon{--z-icon-width:var(--trigger-icon-size);--z-icon-height:var(--trigger-icon-size);display:flex;fill:var(--color-inverse-icon)}:host([size=\"small\"])>.z-info-reveal-trigger z-icon{--trigger-icon-size:18px}:host([size=\"x-small\"])>.z-info-reveal-trigger z-icon{--trigger-icon-size:16px}.z-info-reveal-panel{position:absolute;display:flex;width:var(--z-info-reveal-panel-width);height:fit-content;align-items:flex-start;padding:calc(var(--space-unit) * 1.5);background-color:var(--color-surface05);border-radius:var(--border-radius);box-shadow:var(--shadow-4);color:var(--color-text-inverse);column-gap:var(--space-unit)}.z-info-reveal-panel[hidden]{display:none}:host([position=\"top_left\"]) .z-info-reveal-panel,:host([position=\"top_right\"]) .z-info-reveal-panel{top:0}:host([position=\"bottom_left\"]) .z-info-reveal-panel,:host([position=\"bottom_right\"]) .z-info-reveal-panel{bottom:0}:host([position=\"top_right\"]) .z-info-reveal-panel,:host([position=\"bottom_right\"]) .z-info-reveal-panel{right:0}:host([position=\"top_left\"]) .z-info-reveal-panel,:host([position=\"bottom_left\"]) .z-info-reveal-panel{left:0}.z-info-reveal-panel .z-info-reveal-close{margin-left:auto}.z-info-reveal-panel z-icon{fill:var(--color-inverse-icon)}@media (max-width: 767px){.z-info-reveal-panel{position:fixed;top:auto !important;bottom:auto !important;left:var(--grid-margin) !important;width:calc(100% - (var(--grid-margin) * 2)) !important;max-width:none !important;margin-top:calc(var(--trigger-size) * -1)}}";
|
|
4
|
+
const stylesCss = ":host{--z-info-reveal-panel-width:384px;--trigger-size:44px;position:relative}:host *{box-sizing:border-box}button{--trigger-icon-size:calc(var(--trigger-size) / 2);display:flex;align-items:center;justify-content:center;padding:0;border:none;background-color:transparent;cursor:pointer;font-family:inherit;letter-spacing:inherit}button:focus:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none}.z-info-reveal-trigger{min-width:var(--trigger-size);height:var(--trigger-size);padding:calc((var(--trigger-size) - var(--trigger-icon-size)) / 2);background-color:var(--color-surface05);border-radius:var(--border-radius);color:var(--color-text-inverse);column-gap:var(--space-unit);font-weight:var(--font-sb);line-height:1rem}:host([size=\"big\"]) .z-info-reveal-trigger{font-size:var(--font-size-2)}:host([size=\"small\"]) .z-info-reveal-trigger{--trigger-size:36px;font-size:var(--font-size-2)}:host([size=\"x-small\"]) .z-info-reveal-trigger{--trigger-size:32px;padding:var(--space-unit);font-size:var(--font-size-1)}:host>.z-info-reveal-trigger z-icon{--z-icon-width:var(--trigger-icon-size);--z-icon-height:var(--trigger-icon-size);display:flex;fill:var(--color-inverse-icon)}:host([size=\"small\"])>.z-info-reveal-trigger z-icon{--trigger-icon-size:18px}:host([size=\"x-small\"])>.z-info-reveal-trigger z-icon{--trigger-icon-size:16px}.z-info-reveal-panel{position:absolute;z-index:99;display:flex;width:var(--z-info-reveal-panel-width);height:fit-content;align-items:flex-start;padding:calc(var(--space-unit) * 1.5);background-color:var(--color-surface05);border-radius:var(--border-radius);box-shadow:var(--shadow-4);color:var(--color-text-inverse);column-gap:var(--space-unit)}.z-info-reveal-panel[hidden]{display:none}:host([position=\"top_left\"]) .z-info-reveal-panel,:host([position=\"top_right\"]) .z-info-reveal-panel{top:0}:host([position=\"bottom_left\"]) .z-info-reveal-panel,:host([position=\"bottom_right\"]) .z-info-reveal-panel{bottom:0}:host([position=\"top_right\"]) .z-info-reveal-panel,:host([position=\"bottom_right\"]) .z-info-reveal-panel{right:0}:host([position=\"top_left\"]) .z-info-reveal-panel,:host([position=\"bottom_left\"]) .z-info-reveal-panel{left:0}.z-info-reveal-panel .z-info-reveal-close{margin-left:auto}.z-info-reveal-panel z-icon{fill:var(--color-inverse-icon)}@media (max-width: 767px){.z-info-reveal-panel{position:fixed;top:auto !important;bottom:auto !important;left:var(--grid-margin) !important;width:calc(100% - (var(--grid-margin) * 2)) !important;max-width:none !important;margin-top:calc(var(--trigger-size) * -1)}}";
|
|
5
5
|
|
|
6
6
|
const ZInfoReveal = class {
|
|
7
7
|
constructor(hostRef) {
|
|
@@ -45,7 +45,7 @@ const ZInfoReveal = class {
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
|
-
return (h(Host, { key: '
|
|
48
|
+
return (h(Host, { key: '7098ea723139c78a7ecca1bbc924d5e17925bdc5', open: this.open }, h("button", { key: '8f798611b1069939b18ab3bdc9c197bec5fc6d20', class: "z-info-reveal-trigger", type: "button", onClick: this.togglePanel.bind(this), "aria-label": !this.label ? this.ariaLabel : undefined, "aria-expanded": this.open ? "true" : "false", "aria-controls": "z-info-reveal-panel" }, this.icon && h("z-icon", { key: '2db6409fe7db09738f83135e58300c235ce988db', name: this.icon }), this.label && h("span", { key: '71ca110cd12256dcfe5e7b37026537fb5ea324b8', class: "z-info-reveal-label" }, this.label)), h("div", { key: '1385b98d28160c1e5578d47f63ba37f26e63eeb8', class: "z-info-reveal-panel", id: "z-info-reveal-panel", ref: (el) => (this.panel = el), hidden: !this.open }, h("slot", { key: 'dbbcff160f1dceaa336362f5a43436d57f357e01' }), h("button", { key: 'e6f4778d55de1de95fa3d509ed01c3b555ff225b', class: "z-info-reveal-close", type: "button", onClick: this.closePanel.bind(this), "aria-label": "Chiudi pannello informazioni" }, h("z-icon", { key: '51b13036bb93efce68db3f0cbf5d9f718ddcb266', name: "multiply" })))));
|
|
49
49
|
}
|
|
50
50
|
get host() { return getElement(this); }
|
|
51
51
|
static get watchers() { return {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, a as getElement, c as createEvent } from './index-b69e88d4.js';
|
|
2
|
-
import {
|
|
2
|
+
import { i as ListSize, Q as ListType, R as ExpandableListButtonAlign, m as ListDividerType, G as DividerSize, U as ExpandableListStyle, K as KeyboardCode } from './index-2f04648d.js';
|
|
3
3
|
|
|
4
4
|
const stylesCss$3 = ":host{display:flex;flex-direction:column;font-family:var(--font-family-sans);font-weight:var(--font-rg)}";
|
|
5
5
|
|
|
@@ -22,13 +22,13 @@ const ZList = class {
|
|
|
22
22
|
this.setChildrenSizeType();
|
|
23
23
|
}
|
|
24
24
|
render() {
|
|
25
|
-
return (h(Host, { key: '
|
|
25
|
+
return (h(Host, { key: '566e607d30100064c22bd292fce144f2d6105b5e' }, h("slot", { key: '43da8ff297f1610dbaa8cb67c9c498de90b7fa1e' })));
|
|
26
26
|
}
|
|
27
27
|
get host() { return getElement(this); }
|
|
28
28
|
};
|
|
29
29
|
ZList.style = stylesCss$3;
|
|
30
30
|
|
|
31
|
-
const stylesCss$2 = ":host{outline:none}:host>.container{--background-color-list-element:var(--color-surface01);--background-hover-color-list-element:var(--color-
|
|
31
|
+
const stylesCss$2 = ":host{outline:none}:host>.container{--background-color-list-element:var(--color-surface01);--background-hover-color-list-element:var(--color-background);--background-active-color-list-element:var(--color-background);display:flex;box-sizing:border-box;flex-direction:column;justify-content:center;font-family:var(--font-family-sans);font-weight:var(--font-rg);outline:none}:host([size=\"small\"])>.container{min-height:calc(var(--space-unit) * 4);padding:calc(var(--space-unit) / 2) 0}:host([size=\"medium\"])>.container{min-height:calc(var(--space-unit) * 5);padding:var(--space-unit) 0}:host([size=\"large\"])>.container{min-height:calc(var(--space-unit) * 7);padding:calc(var(--space-unit) * 2) 0}:host([size=\"x-large\"])>.container{min-height:calc(var(--space-unit) * 9);padding:calc(var(--space-unit) * 3) 0}:host([expandable])>.container,:host([clickable])>.container{cursor:pointer}:host([expandable]:hover)>.container,:host([clickable]:hover)>.container{background-color:var(--background-hover-color-list-element)}:host([expandable]:focus:focus-visible)>.container,:host([clickable]:focus:focus-visible)>.container{box-shadow:var(--shadow-focus-primary)}:host([clickable]:not([expandable]))>.container.clicked{box-shadow:var(--shadow-focus-primary)}:host([expandable]:active)>.container,:host([clickable]:active)>.container{background-color:var(--background-active-color-list-element)}:host([align-button=\"left\"][expandable])>.container>.z-list-element-container{display:flex}:host([align-button=\"right\"][expandable])>.container>.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{margin-right:var(--space-unit)}:host([align-button=\"right\"][expandable])>.container>.z-list-element-container>z-icon{margin-left:var(--space-unit)}:host>.container>.z-list-element-inner-container{display:none}:host>.container>.z-list-element-inner-container.expanded{display:block}.z-list-content-container{display:flex;align-items:center}";
|
|
32
32
|
|
|
33
33
|
const ZListElement = class {
|
|
34
34
|
accessibleFocusHandler(e) {
|
|
@@ -147,7 +147,7 @@ const ZListElement = class {
|
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
149
|
render() {
|
|
150
|
-
return (h(Host, { key: '
|
|
150
|
+
return (h(Host, { key: 'f6dd19e9069d3a997b632111b4f5591da82ab5af', "aria-expanded": this.expandable ? this.showInnerContent : null, onClick: this.handleClick, onFocus: () => this.ariaDescendantFocus.emit(this.listElementId), onKeyDown: this.handleKeyDown, clickable: this.clickable && !this.disabled, tabIndex: this.htmlTabindex }, h("div", { key: '98bff5c0bd43f0063d0f42a18c17da4845090f28', class: "container", style: { color: `var(--${this.color})` }, tabindex: "-1", id: `z-list-element-id-${this.listElementId}`, part: "list-item-container" }, h("div", { key: 'c33f1e05a2e73d8f53b89d2b5a55c4dc8b946dd6', class: "z-list-element-container" }, this.renderExpandableButton(), this.renderContent()), this.renderExpandedContent()), this.dividerType === ListDividerType.ELEMENT && (h("z-divider", { key: '143400cd7da18698207481174e55d9897ddd6327', color: this.dividerColor, size: this.dividerSize }))));
|
|
151
151
|
}
|
|
152
152
|
get host() { return getElement(this); }
|
|
153
153
|
};
|
|
@@ -181,10 +181,10 @@ const ZListGroup = class {
|
|
|
181
181
|
this.hasHeader = !!this.host.querySelector('[slot="header-title"]');
|
|
182
182
|
}
|
|
183
183
|
render() {
|
|
184
|
-
return (h(Host, { key: '
|
|
184
|
+
return (h(Host, { key: 'a4e30022d776b3480bc6f143a7c55644730a0e74', role: "group" }, h("div", { key: '3061f0130f4f66d558f0da519ea723718bb67bad', class: {
|
|
185
185
|
"z-list-group-header-container": true,
|
|
186
186
|
"has-header": this.hasHeader,
|
|
187
|
-
} }, h("slot", { key: '
|
|
187
|
+
} }, h("slot", { key: 'b2d8f666e049b4d0c5ee11fbdd09dc474a1f6f1c', name: "header-title" }), this.dividerType === ListDividerType.HEADER && (h("z-divider", { key: 'a66c2ca968963e6e55dc305ea35ecf8002fbb4b4', color: this.dividerColor, size: this.dividerSize }))), h("slot", { key: '126bfa9566cc4f15f7dc89b3e811a84924a2908c' })));
|
|
188
188
|
}
|
|
189
189
|
get host() { return getElement(this); }
|
|
190
190
|
};
|
|
@@ -199,9 +199,9 @@ const ZTag = class {
|
|
|
199
199
|
this.expandable = undefined;
|
|
200
200
|
}
|
|
201
201
|
render() {
|
|
202
|
-
return (h(Host, { key: '
|
|
202
|
+
return (h(Host, { key: '531b3069d9339b05377f89c350a5ed6becaf9dbd', class: {
|
|
203
203
|
expandable: this.expandable && !!this.icon,
|
|
204
|
-
} }, this.icon && h("z-icon", { key: '
|
|
204
|
+
} }, this.icon && h("z-icon", { key: '5abaf6a26667e26e6a11661c49c18d8677a2a130', name: this.icon }), h("div", { key: 'a52c9c030320f2c0687bd896c33dd75ffc497ad2' }, h("slot", { key: 'ff3046c07a2fb70478adb354079d8d26834746ce' }))));
|
|
205
205
|
}
|
|
206
206
|
};
|
|
207
207
|
ZTag.style = stylesCss;
|
|
@@ -20,7 +20,7 @@ const ZLogo = class {
|
|
|
20
20
|
if (this.height) {
|
|
21
21
|
style["height"] = style["max-height"] = `${this.height}px`;
|
|
22
22
|
}
|
|
23
|
-
return (h(Host, { key: '
|
|
23
|
+
return (h(Host, { key: '43def5f659303a7fa03bdf8a48bf03dacc379dde', style: style, class: { mobile: !!this.mobileLogo } }, this.link ? (h("a", { href: this.link, target: this.targetBlank ? "_blank" : "_self" }, h("img", { alt: this.imageAlt }))) : (h("img", { alt: this.imageAlt }))));
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
26
|
ZLogo.style = stylesCss;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-b69e88d4.js';
|
|
2
2
|
|
|
3
|
-
const stylesCss = ":host,::slotted(*),*{box-sizing:border-box}:host{position:relative;display:inline-flex;flex-direction:column;--z-menu-label-color:var(--color-default-text)}::slotted(a){text-decoration:none}::slotted(*){color:var(--color-default-text);font-family:var(--font-family-sans);font-weight:var(--font-rg)}.menu-label{padding:0;border:0;margin:0;background:transparent;border-radius:0;color:inherit;outline:none;text-align:left}button.menu-label{cursor:pointer}.menu-label:focus-within{z-index:1;padding-right:calc(var(--space-unit) * 0.5);padding-left:calc(var(--space-unit) * 0.5);margin-right:calc(var(--space-unit) * -0.5);margin-left:calc(var(--space-unit) * -0.5);box-shadow:var(--shadow-focus-primary)}.menu-label .menu-label-content{position:relative;display:flex;align-items:center}:host(:is([active],[open])) .menu-label-content,.menu-label:focus-within .menu-label-content{font-weight:var(--font-bd)}:host(:is([active],[open])) .menu-label-content ::slotted(*),.menu-label:focus-within .menu-label-content ::slotted(*){letter-spacing:normal}:host .menu-label .menu-label-content ::slotted(*:not([slot]):focus:focus-visible){box-shadow:none !important}:host(:is([active],[open],[vertical-context])) .menu-label .menu-label-content::after,.menu-label .menu-label-content:hover::after,.menu-label:focus-within .menu-label-content::after{position:absolute;bottom:0;left:0;width:100%;content:\"\";pointer-events:none}:host([vertical-context]) .menu-label-content::after{height:var(--border-size-small);background-color:var(--color-surface03)}:host(:is([active],[open])) .menu-label .menu-label-content::after,.menu-label .menu-label-content:hover::after,.menu-label:focus-within .menu-label-content::after{height:var(--border-size-large);background-color:var(--color-
|
|
3
|
+
const stylesCss = ":host,::slotted(*),*{box-sizing:border-box}:host{position:relative;display:inline-flex;flex-direction:column;--z-menu-label-color:var(--color-default-text)}::slotted(a){text-decoration:none}::slotted(*){color:var(--color-default-text);font-family:var(--font-family-sans);font-weight:var(--font-rg)}.menu-label{padding:0;border:0;margin:0;background:transparent;border-radius:0;color:inherit;outline:none;text-align:left}button.menu-label{cursor:pointer}.menu-label:focus-within{z-index:1;padding-right:calc(var(--space-unit) * 0.5);padding-left:calc(var(--space-unit) * 0.5);margin-right:calc(var(--space-unit) * -0.5);margin-left:calc(var(--space-unit) * -0.5);box-shadow:var(--shadow-focus-primary)}.menu-label .menu-label-content{position:relative;display:flex;align-items:center}:host(:is([active],[open])) .menu-label-content,.menu-label:focus-within .menu-label-content{font-weight:var(--font-bd)}:host(:is([active],[open])) .menu-label-content ::slotted(*),.menu-label:focus-within .menu-label-content ::slotted(*){letter-spacing:normal}:host .menu-label .menu-label-content ::slotted(*:not([slot]):focus:focus-visible){box-shadow:none !important}:host(:is([active],[open],[vertical-context])) .menu-label .menu-label-content::after,.menu-label .menu-label-content:hover::after,.menu-label:focus-within .menu-label-content::after{position:absolute;bottom:0;left:0;width:100%;content:\"\";pointer-events:none}:host([vertical-context]) .menu-label-content::after{height:var(--border-size-small);background-color:var(--color-surface03)}:host(:is([active],[open])) .menu-label .menu-label-content::after,.menu-label .menu-label-content:hover::after,.menu-label:focus-within .menu-label-content::after{height:var(--border-size-large);background-color:var(--color-primary01)}::slotted([data-text])::after{height:0;content:attr(data-text);content:attr(data-text) / \"\";font-weight:var(--font-bd);letter-spacing:normal;pointer-events:none;user-select:none;visibility:hidden}@media speech{::slotted([data-text])::after{display:none}}::slotted([data-text]){display:inline-flex;flex-direction:column}.menu-label .menu-label-content ::slotted(*){display:inline-flex;width:100%;margin:0;appearance:none;color:var(--z-menu-label-color);font-family:var(--font-family-sans);font-size:var(--font-size-5);font-weight:inherit;letter-spacing:0.36px;line-height:1.2;outline:none}.menu-label .menu-label-content ::slotted(*),.menu-label .menu-label-content z-icon{padding:var(--space-unit) 0}.menu-label .menu-label-content z-icon{margin-left:calc(var(--space-unit) * 1.5);fill:currentcolor}.content{background:var(--color-surface01)}:host(:not([open])) .content{display:none}:host([floating]) .content{position:absolute;top:100%;left:0;width:375px;min-width:100%;max-width:100vw;padding:var(--space-unit) var(--space-unit) calc(var(--space-unit) * 2);box-shadow:var(--shadow-2)}:host(:not([floating])) .content{width:100%}.header{display:flex;align-items:center;padding:var(--space-unit) 0 calc(var(--space-unit) * 2)}.header ::slotted(img[slot=\"header\"]){width:calc(var(--space-unit) * 11.25);height:auto;object-fit:contain}.header ::slotted([slot=\"header\"]:not(:first-child)){margin:auto 0;margin-left:calc(var(--space-unit) * 2.5);font-size:var(--font-size-3);font-weight:var(--font-sb);line-height:1.5}.items{display:flex;flex-direction:column;align-items:flex-start;background:inherit}.items>::slotted([slot=\"item\"]){width:100%;margin:0;font-size:var(--font-size-3);line-height:1.25;outline:none}.items>::slotted([slot=\"item\"]:focus:focus-visible){box-shadow:var(--shadow-focus-primary)}.items>::slotted([slot=\"item\"]:not(z-menu-section)){padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 0.5);border-bottom:var(--border-size-small) solid var(--color-surface05)}.items>::slotted([slot=\"item\"]:hover),.items>::slotted([slot=\"item\"]:focus:focus-visible),.items>::slotted([slot=\"item\"]:active){border-color:var(--color-primary01);font-weight:var(--font-bd)}";
|
|
4
4
|
|
|
5
5
|
const ZMenuDeprecated = class {
|
|
6
6
|
toggle() {
|
|
@@ -96,7 +96,7 @@ const ZMenuDeprecated = class {
|
|
|
96
96
|
return (h("div", { class: "menu-label" }, h("div", { class: "menu-label-content" }, h("slot", { onSlotchange: this.onLabelSlotChange }))));
|
|
97
97
|
}
|
|
98
98
|
render() {
|
|
99
|
-
return (h(Host, { key: '
|
|
99
|
+
return (h(Host, { key: 'b85eb4e974d6e49d326f637e96f467d867588cc4' }, this.renderMenuLabel(), this.hasContent && (h("div", { key: '36e4f36123dd6e49f334a6f5e98cce0875df158c', class: "content", ref: (el) => (this.content = el) }, this.hasHeader && (h("header", { key: 'd8d980f037bd593ca7388946f27f08372d19f7e8', class: "header" }, h("slot", { key: '1d40e062cc0d24b5c7adcb707341d438e0089cb7', name: "header", onSlotchange: this.checkContent }))), h("div", { key: '93cdd787bb371624be8311ca32539a576ee1fcb7', class: "items", role: "menu" }, h("slot", { key: '2d1ffad0d4c6fec04d202e371118535f5454eaef', name: "item", onSlotchange: this.onItemsChange }))))));
|
|
100
100
|
}
|
|
101
101
|
get hostElement() { return getElement(this); }
|
|
102
102
|
static get watchers() { return {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-b69e88d4.js';
|
|
2
2
|
|
|
3
|
-
const stylesCss = ":host{display:inline-flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:0;font-family:var(--font-family-sans)}:host,::slotted(*),*{box-sizing:border-box}::slotted(a){text-decoration:none}::slotted(*){color:var(--color-default-text);font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host(:is([active],[open])) .label,.label:hover{border-color:var(--color-
|
|
3
|
+
const stylesCss = ":host{display:inline-flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:0;font-family:var(--font-family-sans)}:host,::slotted(*),*{box-sizing:border-box}::slotted(a){text-decoration:none}::slotted(*){color:var(--color-default-text);font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host(:is([active],[open])) .label,.label:hover{border-color:var(--color-primary01)}:host(:is([active],[open])) .label ::slotted(*),.label:focus:focus-visible ::slotted(*),.label:hover ::slotted(*){font-weight:var(--font-bd)}.label{display:flex;width:100%;align-items:center;padding:calc(var(--space-unit) * 2) calc(var(--space-unit) / 2);border:0;border-bottom:var(--border-size-small) solid var(--color-surface05);margin:0;background:transparent;border-radius:0;cursor:pointer;text-align:left}::slotted([data-text]){display:inline-flex;flex-direction:column}::slotted([data-text])::after{overflow:hidden;height:0;content:attr(data-text);content:attr(data-text) / \"\";font-weight:var(--font-bd);pointer-events:none;user-select:none;visibility:hidden}@media speech{::slotted([data-text])::after{display:none}}.label ::slotted(*){width:100%;margin:0;font-size:var(--font-size-3);line-height:1.25}.label:focus:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none}.label z-icon{margin-left:calc(var(--space-unit) * 4);fill:var(--color-default-icon)}.items{display:flex;width:100%;flex-direction:column;padding:calc(var(--space-unit) / 2);padding-bottom:calc(var(--space-unit) * 1.5)}.items>::slotted([slot=\"item\"]){display:inline-flex;padding:calc(var(--space-unit) / 2);margin:0;font-size:var(--font-size-2);line-height:1.4;outline:none}.items>::slotted([slot=\"item\"]:focus:focus-visible){box-shadow:var(--shadow-focus-primary);color:var(--color-primary01)}.items>::slotted([slot=\"item\"]:hover),.items>::slotted([slot=\"item\"]:focus:focus-visible),.items>::slotted([slot=\"item\"][active]){color:var(--color-primary01);font-weight:var(--font-bd)}";
|
|
4
4
|
|
|
5
5
|
const ZMenuSectionDeprecated = class {
|
|
6
6
|
constructor(hostRef) {
|
|
@@ -44,7 +44,7 @@ const ZMenuSectionDeprecated = class {
|
|
|
44
44
|
this.checkContent();
|
|
45
45
|
}
|
|
46
46
|
render() {
|
|
47
|
-
return (h(Host, { key: '
|
|
47
|
+
return (h(Host, { key: '683c1153c92167f03d2324765485f0c42d9e088e', role: "menu", open: this.open }, h("button", { key: '774e5b28393d489684864d4e3ad3e5f2f9ad8ffe', class: "label", "aria-pressed": this.open ? "true" : "false", onClick: this.toggle.bind(this) }, h("slot", { key: 'f27ceb99398725734be2027e191c7bba8e3bf593', onSlotchange: this.onLabelSlotChange.bind(this) }), this.hasContent && h("z-icon", { key: 'a5a2a175c5ec52579d184afbed86135f0c43ea8e', name: this.open ? "chevron-up" : "chevron-down" })), this.open && (h("div", { key: 'd27cf75d9481eae65039adc296246776b09fbc3a', class: "items" }, h("slot", { key: 'dbb67c5b4f7587a4f83a4ffe8a8af6d91d1180c8', name: "item", onSlotchange: this.checkContent.bind(this) })))));
|
|
48
48
|
}
|
|
49
49
|
get hostElement() { return getElement(this); }
|
|
50
50
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-b69e88d4.js';
|
|
2
|
-
import { K as KeyboardCode } from './index-
|
|
2
|
+
import { K as KeyboardCode } from './index-2f04648d.js';
|
|
3
3
|
|
|
4
|
-
const stylesCss = ":host{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:0;font-family:var(--font-family-sans)}:host,::slotted(*),*{box-sizing:border-box}::slotted(a){text-decoration:none}::slotted(*){color:var(--color-default-text);font-family:var(--font-family-sans);font-weight:var(--font-rg)}.label{display:flex;width:100%;align-items:center;padding:var(--space-unit) 0;border:0;border-bottom:var(--border-size-small) solid var(--color-surface03);margin:0;background:transparent;border-radius:0;cursor:pointer;text-align:left}:host(:last-child:not([open])) .label{border-bottom:none}:host(:is([active],[open])) .label,.label:focus:focus-visible,.label:hover{border-color:var(--color-
|
|
4
|
+
const stylesCss = ":host{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:0;font-family:var(--font-family-sans)}:host,::slotted(*),*{box-sizing:border-box}::slotted(a){text-decoration:none}::slotted(*){color:var(--color-default-text);font-family:var(--font-family-sans);font-weight:var(--font-rg)}.label{display:flex;width:100%;align-items:center;padding:var(--space-unit) 0;border:0;border-bottom:var(--border-size-small) solid var(--color-surface03);margin:0;background:transparent;border-radius:0;cursor:pointer;text-align:left}:host(:last-child:not([open])) .label{border-bottom:none}:host(:is([active],[open])) .label,.label:focus:focus-visible,.label:hover{border-color:var(--color-primary01)}.label:focus:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none}:host(:is([active],[open])) .label ::slotted(*),.label:focus:focus-visible ::slotted(*),.label:hover ::slotted(*){font-weight:var(--font-bd)}::slotted([data-text]){display:inline-flex;flex-direction:column}::slotted([data-text])::after{overflow:hidden;height:0;content:attr(data-text);content:attr(data-text) / \"\";font-weight:var(--font-bd);pointer-events:none;user-select:none;visibility:hidden}@media speech{::slotted([data-text])::after{display:none}}.label ::slotted(*){width:100%;margin:0;font-size:var(--font-size-3);line-height:1.5}.label z-icon{margin-left:calc(var(--space-unit) * 4);fill:var(--color-default-icon)}.items{display:flex;width:100%;flex-direction:column;padding:calc(var(--space-unit) / 2);padding-bottom:calc(var(--space-unit) * 1.5)}.items[hidden]{display:none}::slotted([slot=\"section\"]){display:inline-flex;padding:calc(var(--space-unit) / 2);margin:0;font-size:var(--font-size-1);line-height:1.333;outline:none}::slotted([slot=\"section\"]:last-of-type){border:none}::slotted([slot=\"section\"]:focus:focus-visible){box-shadow:var(--shadow-focus-primary);color:var(--color-primary01)}::slotted([slot=\"section\"]:hover),::slotted([slot=\"section\"]:focus:focus-visible),::slotted([slot=\"section\"][active]){color:var(--color-primary01);font-weight:var(--font-bd)}";
|
|
5
5
|
|
|
6
6
|
const ZMenuSection = class {
|
|
7
7
|
get focusableItem() {
|
|
@@ -172,7 +172,7 @@ const ZMenuSection = class {
|
|
|
172
172
|
this.onItemsChange();
|
|
173
173
|
}
|
|
174
174
|
render() {
|
|
175
|
-
return (h(Host, { key: '
|
|
175
|
+
return (h(Host, { key: 'ca61d9daac35484cf3fa3a7ab4d6b5700dade8b0', open: this.open }, h("button", { key: 'd2750e008a22b0de43075ed947d1b9e0f6917bd5', ref: (el) => (this.label = el), class: "label", "aria-haspopup": `${!!this.hasItems}`, "aria-expanded": `${!!this.open}`, role: "menuitem", tabindex: this.htmlTabindex, onClick: this.onLabelClick, onKeyDown: this.onLabelKeydown }, h("slot", { key: 'be5dad19dd6fece321bb68ff89e17372f4353539', onSlotchange: this.onLabelSlotChange }), this.hasItems && h("z-icon", { key: '7c6fecfd96a4391394b17f3eea38aa7f29786a18', name: this.open ? "chevron-up" : "chevron-down" })), h("div", { key: '87512635c2b4377a6c304cc0bb1345131997e5f4', class: "items", role: "menu", hidden: !this.open }, h("slot", { key: 'b2dfb0d5a94adb555fb08c7592d5c58feb3c6c5f', name: "section", onSlotchange: this.onItemsChange }))));
|
|
176
176
|
}
|
|
177
177
|
get host() { return getElement(this); }
|
|
178
178
|
static get watchers() { return {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-b69e88d4.js';
|
|
2
|
-
import { K as KeyboardCode } from './index-
|
|
3
|
-
import { c as containsElement } from './utils-
|
|
2
|
+
import { K as KeyboardCode } from './index-2f04648d.js';
|
|
3
|
+
import { c as containsElement } from './utils-aa5e2546.js';
|
|
4
4
|
import './breakpoints-9229197d.js';
|
|
5
5
|
|
|
6
|
-
const stylesCss = ":host,::slotted(*),*{box-sizing:border-box;outline:none}:host{position:relative;display:inline-flex;height:fit-content;flex-direction:column}::slotted(a){text-decoration:none}::slotted(*){color:var(--color-default-text);font-family:var(--font-family-sans);font-weight:var(--font-rg)}.menu-label{position:relative;display:flex;width:100%;align-items:center;padding:0;border:0;border-bottom:var(--border-size-large) solid transparent;margin:0;background:transparent;border-radius:0;color:inherit;text-align:left}button.menu-label{cursor:pointer}.menu-label:focus-visible,div.menu-label:focus-within{box-shadow:var(--shadow-focus-primary)}:host(:is([active],[open])) .menu-label ::slotted(*),.menu-label:focus-visible ::slotted(*),div.menu-label:focus-within ::slotted(*){color:var(--color-primary01);font-weight:var(--font-bd)}:host([vertical-context]) .menu-label{padding:var(--space-unit) 0;border-width:var(--border-size-small);border-color:var(--color-surface03)}:host(:is([active],[open])) .menu-label,.menu-label:hover,.menu-label:focus-visible,div.menu-label:focus-within{border-color:var(--color-
|
|
6
|
+
const stylesCss = ":host,::slotted(*),*{box-sizing:border-box;outline:none}:host{position:relative;display:inline-flex;height:fit-content;flex-direction:column}::slotted(a){text-decoration:none}::slotted(*){color:var(--color-default-text);font-family:var(--font-family-sans);font-weight:var(--font-rg)}.menu-label{position:relative;display:flex;width:100%;align-items:center;padding:0;border:0;border-bottom:var(--border-size-large) solid transparent;margin:0;background:transparent;border-radius:0;color:inherit;text-align:left}button.menu-label{cursor:pointer}.menu-label:focus-visible,div.menu-label:focus-within{box-shadow:var(--shadow-focus-primary)}:host(:is([active],[open])) .menu-label ::slotted(*),.menu-label:focus-visible ::slotted(*),div.menu-label:focus-within ::slotted(*){color:var(--color-primary01);font-weight:var(--font-bd)}:host([vertical-context]) .menu-label{padding:var(--space-unit) 0;border-width:var(--border-size-small);border-color:var(--color-surface03)}:host(:is([active],[open])) .menu-label,.menu-label:hover,.menu-label:focus-visible,div.menu-label:focus-within{border-color:var(--color-primary01)}:host([vertical-context]:is([active],[open])) .menu-label::after,:host([vertical-context]) .menu-label:hover::after,:host([vertical-context]) .menu-label:focus-visible::after,:host([vertical-context]) div.menu-label:focus-within::after{position:absolute;bottom:0;left:0;width:100%;height:var(--border-size-large);background-color:var(--color-primary01);content:\"\"}:host([vertical-context]) .menu-label ::slotted(*){padding:0}.menu-label ::slotted(*){display:inline-flex;width:100%;min-width:fit-content;padding-bottom:2px;margin:0;appearance:none;color:var(--z-menu-label-color, var(--color-default-text));font-family:var(--font-family-sans);font-size:var(--font-size-3);font-weight:inherit;line-height:1.5;white-space:nowrap}.menu-label z-icon{margin-left:calc(var(--space-unit) * 1.5);fill:var(--color-default-icon)}::slotted([data-text]:not([slot]))::after{height:0;content:attr(data-text);content:attr(data-text) / \"\";font-weight:var(--font-bd);letter-spacing:normal;pointer-events:none;user-select:none;visibility:hidden}@media speech{::slotted([data-text]:not([slot]))::after{display:none}}::slotted([data-text]:not([slot])){display:inline-flex;flex-direction:column}.content{background:var(--color-surface01)}:host(:not([open])) .content{display:none}:host([floating]:not([vertical-context])) .content{position:absolute;top:100%;left:0;width:375px;min-width:100%;max-width:100vw;padding:0 calc(var(--space-unit) * 2);box-shadow:var(--shadow-2)}:host(:not([floating])) .content{width:100%}.header{display:flex;align-items:center;padding:var(--space-unit) 0 calc(var(--space-unit) * 2)}.header ::slotted(img[slot=\"header\"]){width:calc(var(--space-unit) * 11.25);height:auto;object-fit:contain}.header ::slotted([slot=\"header\"]:not(:first-child)){margin:auto 0;margin-left:calc(var(--space-unit) * 2.5);font-size:var(--font-size-3);font-weight:var(--font-sb);line-height:1.5}.items{display:flex;flex-direction:column;align-items:flex-start;background:inherit}.items>::slotted([slot=\"item\"]){width:100%;margin:0;font-size:var(--font-size-3);line-height:1.5}.items>::slotted([slot=\"item\"]:focus:focus-visible){box-shadow:var(--shadow-focus-primary)}.items>::slotted([slot=\"item\"]:not(z-menu-section)){padding:var(--space-unit) 0;border-bottom:var(--border-size-small) solid var(--color-surface03)}:host(:not([vertical-context])) .items>::slotted([slot=\"item\"]:last-child){border-bottom:0}.items>::slotted([slot=\"item\"]:hover),.items>::slotted([slot=\"item\"]:focus:focus-visible),.items>::slotted([slot=\"item\"]:active){border-color:var(--color-primary01);font-weight:var(--font-bd)}";
|
|
7
7
|
|
|
8
8
|
const isZMenuSection = (el) => (el === null || el === void 0 ? void 0 : el.tagName) === "Z-MENU-SECTION";
|
|
9
9
|
const ZMenu = class {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-b69e88d4.js';
|
|
2
|
-
import {
|
|
2
|
+
import { u as AlertType } from './index-2f04648d.js';
|
|
3
3
|
|
|
4
|
-
const stylesCss = ":host{position:absolute;z-index:2;top:0;left:0;width:100%;font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>z-alert{height:calc(var(--space-unit) * 6)}.relative-container{position:relative;display:grid;align-items:center;padding:0;grid-column-gap:var(--space-unit);grid-template-columns:18px auto 46px;grid-template-rows:1fr;outline:none}.relative-container::-moz-focus-inner{border:0}.alert-external-wrapper.remove-alert{border:var(--border-size-medium) solid var(--color-
|
|
4
|
+
const stylesCss = ":host{position:absolute;z-index:2;top:0;left:0;width:100%;font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>z-alert{height:calc(var(--space-unit) * 6)}.relative-container{position:relative;display:grid;align-items:center;padding:0;grid-column-gap:var(--space-unit);grid-template-columns:18px auto 46px;grid-template-rows:1fr;outline:none}.relative-container::-moz-focus-inner{border:0}.alert-external-wrapper.remove-alert{border:var(--border-size-medium) solid var(--color-background);border-top:none}:host div.add-alert{background:var(--color-success-inverse)}:host div.remove-alert{background:var(--color-warning-inverse)}:host div>.content-text{color:var(--color-surface05);font-size:14px;letter-spacing:0.16px;line-height:20px}:host div>.content-action{height:20px;color:var(--color-primary01);cursor:pointer;font-size:12px;font-weight:var(--font-sb);letter-spacing:0.32px;line-height:20px}:host div>z-icon{justify-self:center}";
|
|
5
5
|
|
|
6
6
|
const ZMyzCardAlert = class {
|
|
7
7
|
constructor(hostRef) {
|
|
@@ -51,7 +51,7 @@ const ZMyzCardAlert = class {
|
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
render() {
|
|
54
|
-
return (h("div", { key: '
|
|
54
|
+
return (h("div", { key: '26730317345595013e625708599fa1c6c5ea04a0', class: "alert-external-wrapper " + this.retrieveClass() }, h("z-alert", { key: '3318a79be3865ad94eb7a9f7df385bf47c132048', type: this.getAlertType() }, h("div", { key: 'c0b39a452f0529901918b50d983ad1fa2e756778', class: "relative-container" }, h("z-icon", { key: '2dea8db0df9990f375656b78f4e8389b543b5887', name: this.iconname, width: 18, height: 18, class: this.retrieveClass() }), h("span", { key: 'ba7891b7139df477a8e2e7a912537181b428b713', class: "content-text" }, this.contenttext), this.actiontext && !!this.actiontext.trim().length && (h("span", { key: '9ec182dbb44b0f9cd5450f25f5fbcda04b67986d', role: "button", tabindex: "0", class: "content-action", onClick: (e) => {
|
|
55
55
|
this.handleActionButtonClick(e);
|
|
56
56
|
}, onKeyPress: (e) => {
|
|
57
57
|
this.handleSpaceKeyPress(e);
|