@zanichelli/delta_share 3.1.0 → 3.2.1
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/{breakpoints-a55736d0.js → breakpoints-e7c8838e.js} +3 -1
- package/dist/wc/cjs/delta_share.cjs.js +2 -2
- package/dist/wc/cjs/{icons-9d7fe21e.js → icons-6d7ce4fc.js} +111 -0
- package/dist/wc/cjs/{index-1112cdb1.js → index-029f1a7e.js} +43 -10
- package/dist/wc/cjs/index-0c6fe5a8.js +34 -0
- package/dist/wc/cjs/index-1a5d1f46.js +67 -0
- package/dist/wc/cjs/index-2bd3ba9a.js +74 -0
- package/dist/wc/cjs/index-2cac2542.js +79 -0
- package/dist/wc/cjs/index-32a6c022.js +21 -0
- package/dist/wc/cjs/index-42c0b32c.js +20 -0
- package/dist/wc/cjs/index-5da586ad.js +41 -0
- package/dist/wc/cjs/index-6d707e7c.js +21 -0
- package/dist/wc/cjs/index-77820e6c.js +17 -0
- package/dist/wc/cjs/index-7b42e7ce.js +21 -0
- package/dist/wc/cjs/index-903cb132.js +17 -0
- package/dist/wc/cjs/index-9ad9039f.js +22 -0
- package/dist/wc/cjs/index-a8dfd3f3.js +53 -0
- package/dist/wc/cjs/index-d6d2e8ac.js +21 -0
- package/dist/wc/cjs/index-e5699190.js +17 -0
- package/dist/wc/cjs/index-ef01acde.js +29 -0
- package/dist/wc/cjs/{index-9ca7d5e5.js → index-fd6e6c28.js} +8 -0
- package/dist/wc/cjs/{license-activation_11.cjs.entry.js → license-activation_10.cjs.entry.js} +966 -129
- package/dist/wc/cjs/loader.cjs.js +2 -2
- package/dist/wc/cjs/{utils-2bfaab77.js → utils-1ed1ec98.js} +1 -1
- package/dist/wc/cjs/{utils-3ac19501.js → utils-43a3deb6.js} +13 -3
- package/dist/wc/cjs/z-accordion.cjs.entry.js +67 -0
- package/dist/wc/cjs/z-alert.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-anchor-navigation.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-app-header.cjs.entry.js +92 -40
- package/dist/wc/cjs/z-aria-alert.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-avatar.cjs.entry.js +5 -5
- package/dist/wc/cjs/z-book-card.cjs.entry.js +126 -0
- package/dist/wc/cjs/z-breadcrumb.cjs.entry.js +232 -0
- package/dist/wc/cjs/z-button-sort.cjs.entry.js +4 -4
- package/dist/wc/cjs/z-card.cjs.entry.js +6 -19
- package/dist/wc/cjs/z-carousel.cjs.entry.js +8 -4
- package/dist/wc/cjs/z-chip.cjs.entry.js +11 -16
- package/dist/wc/cjs/z-combobox.cjs.entry.js +12 -10
- package/dist/wc/cjs/z-contextual-menu.cjs.entry.js +6 -6
- package/dist/wc/cjs/z-cover-hero.cjs.entry.js +25 -8
- 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 +1 -1
- package/dist/wc/cjs/z-file-upload.cjs.entry.js +5 -5
- package/dist/wc/cjs/z-file.cjs.entry.js +3 -3
- package/dist/wc/cjs/z-ghost-loading.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-info-reveal.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-link.cjs.entry.js +74 -0
- package/dist/wc/cjs/z-list_3.cjs.entry.js +4 -4
- package/dist/wc/cjs/z-logo.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-menu-section.cjs.entry.js +12 -4
- package/dist/wc/cjs/z-menu.cjs.entry.js +27 -15
- package/dist/wc/cjs/z-messages-pocket.cjs.entry.js +3 -3
- package/dist/wc/cjs/z-myz-card-alert.cjs.entry.js +2 -2
- 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 +2 -2
- package/dist/wc/cjs/z-myz-card-footer.cjs.entry.js +16 -4
- package/dist/wc/cjs/z-myz-card-icon.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-myz-card-info.cjs.entry.js +4 -4
- package/dist/wc/cjs/z-myz-card-list.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-myz-card_4.cjs.entry.js +5 -5
- package/dist/wc/cjs/z-myz-list-item.cjs.entry.js +5 -5
- package/dist/wc/cjs/z-myz-list.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-navigation-tab-link.cjs.entry.js +10 -7
- package/dist/wc/cjs/z-navigation-tab.cjs.entry.js +7 -7
- package/dist/wc/cjs/z-navigation-tabs.cjs.entry.js +152 -49
- package/dist/wc/cjs/z-notification.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-offcanvas_2.cjs.entry.js +281 -0
- package/dist/wc/cjs/z-otp.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-pagination.cjs.entry.js +3 -3
- package/dist/wc/cjs/z-panel-elem.cjs.entry.js +7 -3
- package/dist/wc/cjs/z-pocket-message.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-pocket_3.cjs.entry.js +4 -4
- package/dist/wc/cjs/z-popover.cjs.entry.js +6 -5
- package/dist/wc/cjs/z-range-picker.cjs.entry.js +25 -7
- package/dist/wc/cjs/z-section-title.cjs.entry.js +3 -3
- package/dist/wc/cjs/z-select.cjs.entry.js +20 -13
- package/dist/wc/cjs/z-skip-to-content.cjs.entry.js +14 -6
- package/dist/wc/cjs/z-slideshow.cjs.entry.js +5 -5
- package/dist/wc/cjs/z-stepper-item.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-stepper.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-table-body.cjs.entry.js +3 -17
- package/dist/wc/cjs/z-table-cell.cjs.entry.js +4 -29
- package/dist/wc/cjs/z-table-deprecated.cjs.entry.js +91 -0
- package/dist/wc/cjs/z-table-empty-box.cjs.entry.js +3 -24
- package/dist/wc/cjs/z-table-expanded-row.cjs.entry.js +3 -12
- package/dist/wc/cjs/z-table-footer.cjs.entry.js +3 -16
- package/dist/wc/cjs/z-table-head.cjs.entry.js +3 -16
- package/dist/wc/cjs/z-table-header-row.cjs.entry.js +3 -15
- package/dist/wc/cjs/z-table-header.cjs.entry.js +6 -75
- package/dist/wc/cjs/z-table-row.cjs.entry.js +4 -36
- package/dist/wc/cjs/z-table-sticky-footer.cjs.entry.js +3 -12
- package/dist/wc/cjs/z-table.cjs.entry.js +37 -59
- package/dist/wc/cjs/z-tag.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-tbody.cjs.entry.js +10 -0
- package/dist/wc/cjs/z-td.cjs.entry.js +11 -0
- package/dist/wc/cjs/z-tfoot.cjs.entry.js +10 -0
- package/dist/wc/cjs/z-th.cjs.entry.js +11 -0
- package/dist/wc/cjs/z-thead.cjs.entry.js +10 -0
- package/dist/wc/cjs/z-toast-notification-list.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-toast-notification.cjs.entry.js +3 -3
- package/dist/wc/cjs/z-toggle-button.cjs.entry.js +5 -3
- package/dist/wc/cjs/z-toggle-switch.cjs.entry.js +4 -4
- package/dist/wc/cjs/z-tooltip.cjs.entry.js +11 -5
- package/dist/wc/cjs/z-tr.cjs.entry.js +15 -0
- package/dist/wc/cjs/z-visually-hidden.cjs.entry.js +1 -1
- package/dist/wc/collection/collection-manifest.json +10 -4
- package/dist/wc/collection/components/license-activation/license-activation.js +23 -19
- package/dist/wc/collection/components/license-activation-form/license-activation-form.css +15 -8
- package/dist/wc/collection/components/license-activation-form/license-activation-form.js +13 -37
- package/dist/wc/custom-elements/index.js +2737 -840
- package/dist/wc/delta_share/delta_share.esm.js +1 -1
- package/dist/wc/delta_share/p-0365fad8.entry.js +1 -0
- package/dist/wc/delta_share/p-042bd3f6.js +1 -0
- package/dist/wc/delta_share/{p-9ad5616e.entry.js → p-059e9ee0.entry.js} +1 -1
- package/dist/wc/delta_share/p-05c9d96f.entry.js +1 -0
- package/dist/wc/delta_share/{p-578f4d61.entry.js → p-065a8ef6.entry.js} +1 -1
- package/dist/wc/delta_share/{p-5e503d5f.entry.js → p-08af13db.entry.js} +1 -1
- package/dist/wc/delta_share/{p-c31b160e.entry.js → p-09de99b2.entry.js} +1 -1
- package/dist/wc/delta_share/p-0e74cc07.entry.js +1 -0
- package/dist/wc/delta_share/{p-9e5596cd.entry.js → p-105ddd7d.entry.js} +1 -1
- package/dist/wc/delta_share/p-112478b5.js +1 -0
- package/dist/wc/delta_share/p-1553bc63.entry.js +1 -0
- package/dist/wc/delta_share/{p-0aa553ea.entry.js → p-16e61c27.entry.js} +1 -1
- package/dist/wc/delta_share/p-172a32d0.entry.js +1 -0
- package/dist/wc/delta_share/p-18ac49f8.entry.js +1 -0
- package/dist/wc/delta_share/p-18fcc8c7.js +1 -0
- package/dist/wc/delta_share/p-1c37c8f2.js +1 -0
- package/dist/wc/delta_share/{p-3cf0c6a5.entry.js → p-1e9b4693.entry.js} +1 -1
- package/dist/wc/delta_share/{p-bc10cf1a.entry.js → p-2439bd5d.entry.js} +1 -1
- package/dist/wc/delta_share/p-293a7ee2.entry.js +1 -0
- package/dist/wc/delta_share/{p-bcb29c7a.entry.js → p-2a4fe864.entry.js} +1 -1
- package/dist/wc/delta_share/p-2b4c3aab.js +1 -0
- package/dist/wc/delta_share/{p-6c54d53f.entry.js → p-2ca8ccb2.entry.js} +1 -1
- package/dist/wc/delta_share/p-2ed166b8.entry.js +1 -0
- package/dist/wc/delta_share/p-319c1a3e.entry.js +1 -0
- package/dist/wc/delta_share/p-37c5c92e.js +1 -0
- package/dist/wc/delta_share/p-3984a6c2.entry.js +1 -0
- package/dist/wc/delta_share/p-3b3f83a6.entry.js +1 -0
- package/dist/wc/delta_share/p-3f4dbb4f.entry.js +3 -0
- package/dist/wc/delta_share/{p-a815651c.entry.js → p-3fac6e84.entry.js} +1 -1
- package/dist/wc/delta_share/p-4018719d.entry.js +1 -0
- package/dist/wc/delta_share/{p-57f2b8d8.entry.js → p-44d6f07c.entry.js} +1 -1
- package/dist/wc/delta_share/{p-8d532866.entry.js → p-47ec520c.js} +1 -1
- package/dist/wc/delta_share/p-47f3e677.js +1 -0
- package/dist/wc/delta_share/{p-42dd4f36.entry.js → p-4a51a3c6.entry.js} +1 -1
- package/dist/wc/delta_share/p-4b2719fc.entry.js +1 -0
- package/dist/wc/delta_share/p-4c9ec16c.entry.js +1 -0
- package/dist/wc/delta_share/p-4ff6d958.entry.js +1 -0
- package/dist/wc/delta_share/p-536412c7.entry.js +1 -0
- package/dist/wc/delta_share/p-551bf917.js +1 -0
- package/dist/wc/delta_share/{p-8876b438.entry.js → p-57a1a7a3.entry.js} +1 -1
- package/dist/wc/delta_share/p-58991db7.js +1 -0
- package/dist/wc/delta_share/p-595c8d39.entry.js +1 -0
- package/dist/wc/delta_share/p-5989869c.js +1 -0
- package/dist/wc/delta_share/p-5f97902c.entry.js +1 -0
- package/dist/wc/delta_share/{p-950aa417.entry.js → p-6658206d.entry.js} +1 -1
- package/dist/wc/delta_share/p-67f03907.entry.js +1 -0
- package/dist/wc/delta_share/{p-d8e80ee8.entry.js → p-69d9835f.js} +1 -1
- package/dist/wc/delta_share/p-6bd46452.entry.js +1 -0
- package/dist/wc/delta_share/p-6be926f4.js +1 -0
- package/dist/wc/delta_share/p-6cb698e0.entry.js +1 -0
- package/dist/wc/delta_share/p-6e8df0ae.entry.js +1 -0
- package/dist/wc/delta_share/p-6f95cb22.entry.js +1 -0
- package/dist/wc/delta_share/p-7142f1dc.entry.js +1 -0
- package/dist/wc/delta_share/p-7b00c3b1.entry.js +1 -0
- package/dist/wc/delta_share/{p-963999a8.entry.js → p-7b668937.entry.js} +1 -1
- package/dist/wc/delta_share/p-7cb2f788.entry.js +1 -0
- package/dist/wc/delta_share/{p-8710e686.entry.js → p-82630451.entry.js} +1 -1
- package/dist/wc/delta_share/p-84a8b959.entry.js +1 -0
- package/dist/wc/delta_share/p-84e4e924.entry.js +1 -0
- package/dist/wc/delta_share/{p-829539a5.entry.js → p-8650dcb7.entry.js} +1 -1
- package/dist/wc/delta_share/p-8a0d51f7.entry.js +1 -0
- package/dist/wc/delta_share/{p-2f289949.entry.js → p-8f286d70.entry.js} +1 -1
- package/dist/wc/delta_share/p-8f38cd92.entry.js +1 -0
- package/dist/wc/delta_share/{p-81ddcb87.entry.js → p-8f6424ca.entry.js} +1 -1
- package/dist/wc/delta_share/p-96f53236.entry.js +1 -0
- package/dist/wc/delta_share/p-9ef9046f.entry.js +1 -0
- package/dist/wc/delta_share/p-9faa9434.entry.js +1 -0
- package/dist/wc/delta_share/{p-b38b27f2.entry.js → p-a051e83a.entry.js} +1 -1
- package/dist/wc/delta_share/{p-45dcece4.entry.js → p-a14153cc.entry.js} +1 -1
- package/dist/wc/delta_share/p-a3dc62bb.js +1 -0
- package/dist/wc/delta_share/p-aa8f533e.entry.js +1 -0
- package/dist/wc/delta_share/p-ab6dbdae.entry.js +1 -0
- package/dist/wc/delta_share/p-aeec6792.entry.js +1 -0
- package/dist/wc/delta_share/p-af60173c.entry.js +1 -0
- package/dist/wc/delta_share/p-bb15cf8b.entry.js +1 -0
- package/dist/wc/delta_share/p-c0ccd95c.entry.js +1 -0
- package/dist/wc/delta_share/p-c1b16c6e.entry.js +1 -0
- package/dist/wc/delta_share/p-c5f5fb78.entry.js +1 -0
- package/dist/wc/delta_share/p-c64950a2.entry.js +1 -0
- package/dist/wc/delta_share/p-c7678d37.js +1 -0
- package/dist/wc/delta_share/{p-1009b417.entry.js → p-ce115f77.entry.js} +1 -1
- package/dist/wc/delta_share/{p-7546c464.entry.js → p-d1062520.js} +1 -1
- package/dist/wc/delta_share/p-d231964b.entry.js +1 -0
- package/dist/wc/delta_share/p-d4fbf66b.entry.js +1 -0
- package/dist/wc/delta_share/{p-0bb97b61.js → p-d50ea6ea.js} +1 -1
- package/dist/wc/delta_share/p-d52d3e5c.js +1 -0
- package/dist/wc/delta_share/p-d6eef1ed.entry.js +1 -0
- package/dist/wc/delta_share/p-d8592d42.js +1 -0
- package/dist/wc/delta_share/p-d888ec2a.entry.js +1 -0
- package/dist/wc/delta_share/p-db7371fa.entry.js +1 -0
- package/dist/wc/delta_share/p-dd409bfb.js +1 -0
- package/dist/wc/delta_share/p-df6ae14f.js +1 -0
- package/dist/wc/delta_share/{p-4eb940ca.entry.js → p-e182b6dc.entry.js} +1 -1
- package/dist/wc/delta_share/p-e7f23a1e.entry.js +1 -0
- package/dist/wc/delta_share/p-ebd0e41d.entry.js +1 -0
- package/dist/wc/delta_share/{p-0bff6d57.entry.js → p-eddfcccc.entry.js} +1 -1
- package/dist/wc/delta_share/p-f77ae63f.entry.js +1 -0
- package/dist/wc/delta_share/p-f8091230.entry.js +1 -0
- package/dist/wc/delta_share/p-f894f849.entry.js +1 -0
- package/dist/wc/delta_share/p-f903c87f.entry.js +1 -0
- package/dist/wc/delta_share/p-fe486d84.entry.js +1 -0
- package/dist/wc/delta_share/p-fe53cbde.entry.js +1 -0
- package/dist/wc/delta_share/p-ff24a080.js +1 -0
- package/dist/wc/delta_share/p-ff98ef8e.entry.js +1 -0
- package/dist/wc/esm/breakpoints-3c3dbb8c.js +5 -0
- package/dist/wc/esm/delta_share.js +2 -2
- package/dist/wc/esm/{icons-7a34b033.js → icons-6196a79a.js} +111 -0
- package/dist/wc/esm/index-0cf1e7ae.js +19 -0
- package/dist/wc/esm/index-2a8923e8.js +18 -0
- package/dist/wc/esm/index-2ae14d02.js +65 -0
- package/dist/wc/esm/{index-b3a91e19.js → index-396432db.js} +8 -0
- package/dist/wc/esm/index-48b6c0e6.js +15 -0
- package/dist/wc/esm/index-5445c84d.js +19 -0
- package/dist/wc/esm/index-6642fa3a.js +15 -0
- package/dist/wc/esm/index-81516a9a.js +19 -0
- package/dist/wc/esm/{index-4f1e2705.js → index-9d240d39.js} +44 -11
- package/dist/wc/esm/index-b6d67648.js +39 -0
- package/dist/wc/esm/index-be084691.js +77 -0
- package/dist/wc/esm/index-c3e3c74b.js +51 -0
- package/dist/wc/esm/index-c74188e2.js +19 -0
- package/dist/wc/esm/index-c8e57c08.js +20 -0
- package/dist/wc/esm/index-cbe7ef0a.js +27 -0
- package/dist/wc/esm/index-df217b14.js +32 -0
- package/dist/wc/esm/index-e14dd015.js +15 -0
- package/dist/wc/esm/index-ea60f2c2.js +72 -0
- package/dist/wc/esm/{license-activation_11.entry.js → license-activation_10.entry.js} +967 -129
- package/dist/wc/esm/loader.js +2 -2
- package/dist/wc/esm/{utils-711517a4.js → utils-5e6dc3fe.js} +1 -1
- package/dist/wc/esm/{utils-5a24a17b.js → utils-bc5ea6f7.js} +13 -4
- package/dist/wc/esm/z-accordion.entry.js +63 -0
- package/dist/wc/esm/z-alert.entry.js +1 -1
- package/dist/wc/esm/z-anchor-navigation.entry.js +2 -2
- package/dist/wc/esm/z-app-header.entry.js +92 -40
- package/dist/wc/esm/z-aria-alert.entry.js +2 -2
- package/dist/wc/esm/z-avatar.entry.js +5 -5
- package/dist/wc/esm/z-book-card.entry.js +122 -0
- package/dist/wc/esm/z-breadcrumb.entry.js +228 -0
- package/dist/wc/esm/z-button-sort.entry.js +4 -4
- package/dist/wc/esm/z-card.entry.js +6 -19
- package/dist/wc/esm/z-carousel.entry.js +8 -4
- package/dist/wc/esm/z-chip.entry.js +11 -16
- package/dist/wc/esm/z-combobox.entry.js +12 -10
- package/dist/wc/esm/z-contextual-menu.entry.js +6 -6
- package/dist/wc/esm/z-cover-hero.entry.js +25 -8
- 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 +1 -1
- package/dist/wc/esm/z-file-upload.entry.js +5 -5
- package/dist/wc/esm/z-file.entry.js +3 -3
- package/dist/wc/esm/z-ghost-loading.entry.js +2 -2
- package/dist/wc/esm/z-info-reveal.entry.js +2 -2
- package/dist/wc/esm/z-link.entry.js +70 -0
- package/dist/wc/esm/z-list_3.entry.js +4 -4
- package/dist/wc/esm/z-logo.entry.js +1 -1
- package/dist/wc/esm/z-menu-section.entry.js +12 -4
- package/dist/wc/esm/z-menu.entry.js +27 -15
- package/dist/wc/esm/z-messages-pocket.entry.js +3 -3
- package/dist/wc/esm/z-myz-card-alert.entry.js +2 -2
- package/dist/wc/esm/z-myz-card-dictionary.entry.js +2 -2
- package/dist/wc/esm/z-myz-card-footer-sections.entry.js +2 -2
- package/dist/wc/esm/z-myz-card-footer.entry.js +16 -4
- package/dist/wc/esm/z-myz-card-icon.entry.js +2 -2
- package/dist/wc/esm/z-myz-card-info.entry.js +4 -4
- package/dist/wc/esm/z-myz-card-list.entry.js +2 -2
- package/dist/wc/esm/z-myz-card_4.entry.js +5 -5
- package/dist/wc/esm/z-myz-list-item.entry.js +5 -5
- package/dist/wc/esm/z-myz-list.entry.js +1 -1
- package/dist/wc/esm/z-navigation-tab-link.entry.js +10 -7
- package/dist/wc/esm/z-navigation-tab.entry.js +7 -7
- package/dist/wc/esm/z-navigation-tabs.entry.js +152 -49
- package/dist/wc/esm/z-notification.entry.js +1 -1
- package/dist/wc/esm/z-offcanvas_2.entry.js +276 -0
- package/dist/wc/esm/z-otp.entry.js +2 -2
- package/dist/wc/esm/z-pagination.entry.js +3 -3
- package/dist/wc/esm/z-panel-elem.entry.js +7 -3
- package/dist/wc/esm/z-pocket-message.entry.js +1 -1
- package/dist/wc/esm/z-pocket_3.entry.js +4 -4
- package/dist/wc/esm/z-popover.entry.js +6 -5
- package/dist/wc/esm/z-range-picker.entry.js +25 -7
- package/dist/wc/esm/z-section-title.entry.js +3 -3
- package/dist/wc/esm/z-select.entry.js +20 -13
- package/dist/wc/esm/z-skip-to-content.entry.js +14 -6
- package/dist/wc/esm/z-slideshow.entry.js +5 -5
- package/dist/wc/esm/z-stepper-item.entry.js +2 -2
- package/dist/wc/esm/z-stepper.entry.js +2 -2
- package/dist/wc/esm/z-table-body.entry.js +2 -20
- package/dist/wc/esm/z-table-cell.entry.js +3 -32
- package/dist/wc/esm/z-table-deprecated.entry.js +87 -0
- package/dist/wc/esm/z-table-empty-box.entry.js +2 -27
- package/dist/wc/esm/z-table-expanded-row.entry.js +2 -15
- package/dist/wc/esm/z-table-footer.entry.js +2 -19
- package/dist/wc/esm/z-table-head.entry.js +2 -19
- package/dist/wc/esm/z-table-header-row.entry.js +2 -18
- package/dist/wc/esm/z-table-header.entry.js +5 -78
- package/dist/wc/esm/z-table-row.entry.js +3 -39
- package/dist/wc/esm/z-table-sticky-footer.entry.js +2 -15
- package/dist/wc/esm/z-table.entry.js +37 -59
- package/dist/wc/esm/z-tag.entry.js +1 -1
- package/dist/wc/esm/z-tbody.entry.js +2 -0
- package/dist/wc/esm/z-td.entry.js +3 -0
- package/dist/wc/esm/z-tfoot.entry.js +2 -0
- package/dist/wc/esm/z-th.entry.js +3 -0
- package/dist/wc/esm/z-thead.entry.js +2 -0
- package/dist/wc/esm/z-toast-notification-list.entry.js +2 -2
- package/dist/wc/esm/z-toast-notification.entry.js +3 -3
- package/dist/wc/esm/z-toggle-button.entry.js +5 -3
- package/dist/wc/esm/z-toggle-switch.entry.js +4 -4
- package/dist/wc/esm/z-tooltip.entry.js +11 -5
- package/dist/wc/esm/z-tr.entry.js +7 -0
- package/dist/wc/esm/z-visually-hidden.entry.js +1 -1
- package/dist/wc/types/components/license-activation/license-activation.d.ts +2 -3
- package/dist/wc/types/components/license-activation-form/license-activation-form.d.ts +2 -5
- package/dist/wc/types/components.d.ts +0 -2
- package/package.json +1 -1
- package/dist/wc/cjs/z-app-switcher.cjs.entry.js +0 -29
- package/dist/wc/cjs/z-body.cjs.entry.js +0 -18
- package/dist/wc/cjs/z-heading.cjs.entry.js +0 -18
- package/dist/wc/cjs/z-offcanvas.cjs.entry.js +0 -70
- package/dist/wc/cjs/z-searchbar.cjs.entry.js +0 -235
- package/dist/wc/cjs/z-typography.cjs.entry.js +0 -30
- package/dist/wc/delta_share/p-0434c900.entry.js +0 -1
- package/dist/wc/delta_share/p-063881e2.entry.js +0 -1
- package/dist/wc/delta_share/p-0667e9cd.entry.js +0 -1
- package/dist/wc/delta_share/p-0f55558e.js +0 -1
- package/dist/wc/delta_share/p-1c2d7c30.entry.js +0 -1
- package/dist/wc/delta_share/p-1d2cb6f9.entry.js +0 -1
- package/dist/wc/delta_share/p-23905d08.entry.js +0 -1
- package/dist/wc/delta_share/p-29310a24.entry.js +0 -1
- package/dist/wc/delta_share/p-3fa29874.entry.js +0 -1
- package/dist/wc/delta_share/p-42e9c740.entry.js +0 -1
- package/dist/wc/delta_share/p-500ff0dd.entry.js +0 -1
- package/dist/wc/delta_share/p-51431ace.js +0 -1
- package/dist/wc/delta_share/p-5530ca81.entry.js +0 -1
- package/dist/wc/delta_share/p-5d88112c.entry.js +0 -1
- package/dist/wc/delta_share/p-61264c72.entry.js +0 -1
- package/dist/wc/delta_share/p-64decd7d.entry.js +0 -1
- package/dist/wc/delta_share/p-65be6de6.entry.js +0 -1
- package/dist/wc/delta_share/p-6cb8def6.entry.js +0 -1
- package/dist/wc/delta_share/p-6d853df0.entry.js +0 -1
- package/dist/wc/delta_share/p-702dd7b4.entry.js +0 -1
- package/dist/wc/delta_share/p-74b71f61.entry.js +0 -1
- package/dist/wc/delta_share/p-78d71789.js +0 -1
- package/dist/wc/delta_share/p-7ae0c21f.js +0 -1
- package/dist/wc/delta_share/p-86a8888e.entry.js +0 -3
- package/dist/wc/delta_share/p-8794c0c7.entry.js +0 -1
- package/dist/wc/delta_share/p-8825d8e4.entry.js +0 -1
- package/dist/wc/delta_share/p-8cc7c2c7.entry.js +0 -1
- package/dist/wc/delta_share/p-8d91a5b7.entry.js +0 -1
- package/dist/wc/delta_share/p-90fdd23f.entry.js +0 -1
- package/dist/wc/delta_share/p-925fc6c3.entry.js +0 -1
- package/dist/wc/delta_share/p-963f64a8.entry.js +0 -1
- package/dist/wc/delta_share/p-99ffd017.entry.js +0 -1
- package/dist/wc/delta_share/p-a150a778.entry.js +0 -1
- package/dist/wc/delta_share/p-a2b564ef.entry.js +0 -1
- package/dist/wc/delta_share/p-a64544de.entry.js +0 -1
- package/dist/wc/delta_share/p-a6b403f9.entry.js +0 -1
- package/dist/wc/delta_share/p-afb5bfe5.entry.js +0 -1
- package/dist/wc/delta_share/p-b16fd965.entry.js +0 -1
- package/dist/wc/delta_share/p-badf3f24.entry.js +0 -1
- package/dist/wc/delta_share/p-be7f8da0.entry.js +0 -1
- package/dist/wc/delta_share/p-c229c90e.entry.js +0 -1
- package/dist/wc/delta_share/p-c436e1af.entry.js +0 -1
- package/dist/wc/delta_share/p-c51ebb01.entry.js +0 -1
- package/dist/wc/delta_share/p-c885d25c.entry.js +0 -1
- package/dist/wc/delta_share/p-c9df8e5d.entry.js +0 -1
- package/dist/wc/delta_share/p-cb16715b.entry.js +0 -1
- package/dist/wc/delta_share/p-cf58d833.js +0 -1
- package/dist/wc/delta_share/p-d586adfc.entry.js +0 -1
- package/dist/wc/delta_share/p-d69c3b08.entry.js +0 -1
- package/dist/wc/delta_share/p-ddab353c.entry.js +0 -1
- package/dist/wc/delta_share/p-ea6c67f2.entry.js +0 -1
- package/dist/wc/delta_share/p-ee0a8f1f.entry.js +0 -1
- package/dist/wc/delta_share/p-fc49c455.entry.js +0 -1
- package/dist/wc/esm/breakpoints-e07f80e7.js +0 -4
- package/dist/wc/esm/z-app-switcher.entry.js +0 -25
- package/dist/wc/esm/z-body.entry.js +0 -14
- package/dist/wc/esm/z-heading.entry.js +0 -14
- package/dist/wc/esm/z-offcanvas.entry.js +0 -66
- package/dist/wc/esm/z-searchbar.entry.js +0 -231
- package/dist/wc/esm/z-typography.entry.js +0 -26
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h,a as s,H as i}from"./p-0f55558e.js";const e=class{constructor(h){t(this,h),this.variant="regular"}render(){const t=document.createElement(this.component||"span");return t.innerHTML="<slot />",this.hostElement.shadowRoot.appendChild(t),h(i,{class:{[this.level]:Boolean(this.level),regular:"regular"===this.variant,semibold:"semibold"===this.variant,light:"light"===this.variant}})}get hostElement(){return s(this)}};e.style=":host>*{margin:0;font-family:var(--dashboard-font)}:host(.regular)>*{font-weight:var(--font-rg)}:host(.semibold)>*{font-weight:600}:host(.light)>*{font-weight:300}:host(.h1)>*{font-size:32px;line-height:40px}:host(.h2)>*{font-size:28px;line-height:36px}:host(.h3)>*{font-size:24px;line-height:32px}:host(.h4)>*{font-size:20px;line-height:28px}:host(.b1)>*{font-size:20px;line-height:28px}:host(.b2)>*{font-size:18px;line-height:28px}:host(.b3)>*{font-size:16px;line-height:24px}:host(.b4)>*{font-size:14px;line-height:20px}:host(.b5)>*{font-size:12px;line-height:16px}:host(:focus-visible){outline:none}";export{e as z_typography}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as i,c as t,h as a}from"./p-0f55558e.js";import{N as n,s as o}from"./p-78d71789.js";import{I as e}from"./p-cf58d833.js";const r=class{constructor(a){i(this,a),this.selectedEvent=t(this,"selected",7),this.selected=!1,this.disabled=!1,this.orientation=n.HORIZONTAL,this.size=o.BIG}scrollToTab({target:i}){i.scrollIntoView(Object.assign({behavior:"smooth"},this.orientation===n.HORIZONTAL?{block:"nearest",inline:"center"}:{block:"center",inline:"nearest"}))}onClick(){this.selected=!0}onSelected(){this.selected&&this.selectedEvent.emit()}renderIcon(){let i=this.icon;const t=`${i.replace(/-filled$/,"")}-filled`;return this.selected&&Object.keys(e).includes(t)&&(i=t),a("z-icon",{name:i})}render(){return a("a",{role:"tab",href:!this.disabled&&this.href,title:this.htmlTitle,target:this.target,onFocus:this.scrollToTab.bind(this)},this.icon&&this.renderIcon(),"horizontal"===this.orientation&&this.label)}static get watchers(){return{selected:["onSelected"]}}};r.style='z-navigation-tab>button,z-navigation-tab-link>a{position:relative;z-index:0;display:inline-flex;width:auto;align-items:center;justify-content:center;padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 5);border:none;margin:0;background-color:unset;border-radius:var(--border-no-radius);color:var(--color-primary01);cursor:pointer;fill:currentcolor;font-family:var(--font-family-sans);font-size:inherit;letter-spacing:inherit;line-height:inherit;outline:none;text-align:center;white-space:nowrap}z-navigation-tab-link>a{text-decoration:none}z-navigation-tab *,z-navigation-tab-link *,z-navigation-tab *::before,z-navigation-tab *::after,z-navigation-tab-link *::before,z-navigation-tab-link *::after{box-sizing:border-box}z-navigation-tab>*:focus:focus-visible,z-navigation-tab-link>*:focus:focus-visible{box-shadow:inset var(--shadow-focus-primary)}z-navigation-tab:not([disabled]):hover>*,z-navigation-tab[selected]>*,z-navigation-tab-link:not([disabled]):hover>*,z-navigation-tab-link[selected]>*{color:var(--color-hover-secondary);fill:currentcolor}z-navigation-tab:not([disabled]):hover>*::after,z-navigation-tab[selected]>*::after,z-navigation-tab-link:not([disabled]):hover>*::after,z-navigation-tab-link[selected]>*::after{position:absolute;background-color:var(--color-hover-secondary);content:""}z-navigation-tab[orientation="horizontal"]:not([disabled]):hover>*::after,z-navigation-tab[orientation="horizontal"][selected]>*::after,z-navigation-tab-link[orientation="horizontal"]:not([disabled]):hover>*::after,z-navigation-tab-link[orientation="horizontal"][selected]>*::after{bottom:0;left:0;width:100%;height:var(--border-size-large)}z-navigation-tab z-icon,z-navigation-tab-link z-icon{--z-icon-width:calc(var(--space-unit) * 2);--z-icon-height:calc(var(--space-unit) * 2);display:flex;margin:0}z-navigation-tab[orientation="horizontal"] z-icon,z-navigation-tab-link[orientation="horizontal"] z-icon{margin-right:var(--space-unit)}z-navigation-tab:not([disabled]):hover>*{background-color:var(--color-background)}z-navigation-tab[disabled]>*{color:var(--gray500);cursor:not-allowed;fill:currentcolor;pointer-events:all}z-navigation-tab[size="small"]>*,z-navigation-tab-link[size="small"]>*{font-size:var(--font-size-2);letter-spacing:0.16px;line-height:1.4}z-navigation-tab[size="small"][orientation="horizontal"]>*,z-navigation-tab-link[size="small"][orientation="horizontal"]>*{padding:var(--space-unit) calc(var(--space-unit) * 2)}z-navigation-tab[size="small"][orientation="horizontal"]:not([disabled]):hover>*::after,z-navigation-tab[size="small"][orientation="horizontal"][selected]>*::after,z-navigation-tab-link[size="small"][orientation="horizontal"]:hover>*::after,z-navigation-tab-link[size="small"][orientation="horizontal"][selected]>*::after{height:var(--border-size-medium)}z-navigation-tab[size="small"]:not([orientation="vertical"]) z-icon,z-navigation-tab-link[size="small"]:not([orientation="vertical"]) z-icon{--z-icon-width:14px;--z-icon-height:14px}z-navigation-tab[orientation="vertical"]>*,z-navigation-tab-link[orientation="vertical"]>*{padding:calc(var(--space-unit) * 3) calc(var(--space-unit) * 2)}z-navigation-tab[orientation="vertical"]:hover:not([disabled])>*::after,z-navigation-tab[orientation="vertical"][selected]>*::after,z-navigation-tab-link[orientation="vertical"]:hover>*::after,z-navigation-tab-link[orientation="vertical"][selected]>*::after{top:0;right:0;width:var(--border-size-large);height:100%}';export{r as z_navigation_tab_link}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as i,h as e,H as s,a as n}from"./p-0f55558e.js";import{m as a,D as r,n as o}from"./p-78d71789.js";import{g as l}from"./p-7ae0c21f.js";import"./p-51431ace.js";const c=class{constructor(e){t(this,e),this.fileInput=i(this,"fileInput",7),this.type=a.DEFAULT,this.files=[],this.inputAttributes={type:"file",id:"file-elem",multiple:!0}}removeFileListener(t){const i=this.files,e=i.find((i=>i.name===t.detail.fileName));if(e){const t=i.indexOf(e);t>=0&&(i.splice(t,1),this.files=[...i])}}fileDroppedListener(t){this.input.files=t.detail,this.fileInputHandler()}componentDidUpdate(){this.handleAccessibility(),this.invalidFiles.size&&this.errorModal.focus()}componentWillLoad(){this.invalidFiles=new Map}fileInputHandler(){this.input.files.length&&(this.invalidFiles=this.checkFiles(Array.from(this.input.files)))}async getFiles(){return this.files}getType(){return l()!==r.DESKTOP?a.DEFAULT:this.type}handleAccessibility(){const t=this.el.querySelector("z-file:last-child z-chip button");this.files.length>0&&t?t.focus():this.getType()===a.DEFAULT?this.button.querySelector("button").focus():this.uploadLink.focus()}checkFiles(t){const i=new Map,e=`supera i ${this.fileMaxSize}MB`;return t.forEach((t=>{const s=t.size/1024/1024,n=this.acceptedFormat.split(",").some((i=>t.name.toLowerCase().endsWith(i.trim()))),a=s<=this.fileMaxSize;a&&n?this.files.find((i=>i.name===t.name))||(this.files.push(t),this.fileInput.emit(t),this.input.value=""):(i.set(t.name,[]),a||i.get(t.name).push(e),n||i.get(t.name).push(" ha un'estensione non prevista"))})),i}renderTitle(){return e("h2",{class:"heading-2-sb",id:"title"},this.mainTitle)}renderDescription(t){return e("span",{class:t},this.description)}renderAllowedFileExtensions(){let t="",i="";return this.acceptedFormat&&(t=` nei formati ${this.acceptedFormat.split(", ").map((t=>t.substring(1).toUpperCase())).join(", ")}`),this.fileMaxSize&&(i=` per un massimo di ${this.fileMaxSize}MB di peso`),e("span",{class:"body-3"},t||i?`Puoi allegare file${t}${i}.`:null)}renderFileSection(){return e("section",{class:"files-container "+(this.files.length?"":"hidden")},e("h4",{class:"heading-4-sb"},"File appena caricati"),e("div",{class:"files-wrapper"},e("slot",{name:"files"})),e("z-divider",{size:o.MEDIUM}))}renderInput(){return e("input",Object.assign({},this.inputAttributes,{onChange:()=>this.fileInputHandler(),accept:this.acceptedFormat,ref:t=>this.input=t}))}renderUploadButton(){return[this.renderInput(),e("z-button",{onClick:()=>this.input.click(),onKeyPress:t=>{"Space"!=t.code&&"Enter"!=t.code||(t.preventDefault(),this.input.click())},id:"fileSelect",variant:this.buttonVariant,icon:"upload",ref:t=>this.button=t},"Allega")]}renderUploadLink(){return[this.renderInput(),e("span",{class:"body-1 upload-link-text"},"Trascinalo qui o"," ",e("span",{tabIndex:0,class:"body-1-sb upload-link",onClick:()=>this.input.click(),onKeyPress:t=>{"Space"!=t.code&&"Enter"!=t.code||(t.preventDefault(),this.input.click())},ref:t=>this.uploadLink=t},"caricalo")," ","dal tuo computer")]}renderDefaultMode(){return[this.renderDescription("body-3-sb"),this.renderAllowedFileExtensions(),this.renderFileSection(),this.renderUploadButton()]}renderDragDropMode(){return[this.renderFileSection(),e("z-dragdrop-area",null,e("div",{class:"text-container"},this.renderDescription("body-1"),this.renderUploadLink(),this.renderAllowedFileExtensions()))]}formatErrorString(t,i){var e,s;return`Il file ${t} ${null!==(e=i[0])&&void 0!==e?e:""}${i[0]&&i[1]?", ":""} ${null!==(s=i[1])&&void 0!==s?s:""} e non può quindi essere caricato.`}handleErrorModalContent(){return e("div",{slot:"modalContent"},e("div",{class:"modal-wrapper"},e("div",{class:"files"},Array.from(this.invalidFiles).map((([t,i])=>e("span",{class:"body-3"},this.formatErrorString(t,i)))))))}render(){return e(s,null,e("div",{tabIndex:0,class:`container ${this.getType()}`},this.renderTitle(),this.getType()==a.DEFAULT?this.renderDefaultMode():this.renderDragDropMode()),!!this.invalidFiles.size&&e("z-modal",{tabIndex:0,ref:t=>this.errorModal=t,modaltitle:"Attenzione",onModalClose:()=>this.invalidFiles=new Map,onModalBackgroundClick:()=>this.invalidFiles=new Map},this.handleErrorModalContent()))}get el(){return n(this)}};c.style=":host{color:var(--color-text01);font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>.container{display:flex;flex-direction:column}:host .modal-wrapper{display:flex;align-items:center;justify-content:center}:host .modal-wrapper>.files-wrapper{display:flex;flex-direction:column;margin:calc(var(--space-unit) * 4);gap:var(--space-unit)}:host .text-container{display:flex;flex-direction:column;margin:auto}:host .text-container .body-1{text-align:center}:host .text-container .upload-link{color:var(--color-link-primary);cursor:pointer}:host .text-container .upload-link-text{margin-bottom:var(--space-unit)}input#file-elem{display:none}#title{display:inline-block;margin-bottom:var(--space-unit)}:host>.container>z-button{display:inline-block;margin-top:calc(var(--space-unit) * 3)}:host>.container>.files-container.hidden{display:none}:host>.container>.files-container>.heading-4-sb{display:inline-block;margin:calc(var(--space-unit) * 3) 0}:host>.container>.files-container>.files-wrapper{display:flex;flex-wrap:wrap;column-gap:calc(var(--space-unit) * 2);row-gap:calc(var(--space-unit) * 2)}:host>.container>.files-container>z-divider{margin-top:calc(var(--space-unit) * 3);margin-bottom:0}@media only screen and (min-width: 768px){:host>.container>z-button{align-self:flex-start}}";export{c as z_file_upload}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as n,H as a,a as i}from"./p-0f55558e.js";import{S as o,B as s,b as e}from"./p-78d71789.js";const l=class{constructor(n){t(this,n),this.padding=o.MEDIUM,this.isMenuOpened=!1}handleMenu(){this.isMenuOpened=!this.isMenuOpened}componentWillRender(){this.host.setAttribute("role","cell")}render(){return n(a,null,this.showButton&&n("div",{class:{"button-container":!0,visible:this.isMenuOpened}},n("div",{class:"button-content"},n("z-button",{icon:"contextual-menu",variant:s.TERTIARY,size:e.X_SMALL,onClick:()=>this.handleMenu()}),n("div",{class:{"contextual-menu-container":!0,visible:this.isMenuOpened}},n("slot",{name:"contextual-menu"})))),n("slot",null))}get host(){return i(this)}};l.style=':host{display:table-cell;border-bottom:var(--border-size-small) solid var(--bg-grey-200);background-color:var(--color-white);font-family:var(--dashboard-font);font-weight:var(--font-rg)}:host>.button-container{display:none}:host:hover>.button-container{display:initial}.button-container{position:absolute;z-index:5;top:8px;right:8px}.button-content{position:relative}.contextual-menu-container{position:absolute;top:calc(100% - var(--space-unit));right:0;display:none}.button-container.visible,.contextual-menu-container.visible{display:initial}:host([padding="x-small"]){padding:calc(var(--space-unit) * 0.5)}:host([padding="small"]){padding:calc(var(--space-unit))}:host([padding="medium"]){padding:calc(var(--space-unit) * 2)}:host([padding="large"]){padding:calc(var(--space-unit) * 2.5)}:host([padding="special"]){padding:0}';export{l as z_table_cell}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as i,h as e}from"./p-0f55558e.js";const t=class{constructor(e){i(this,e),this.target="_blank",this.isdisabled=!1}renderIcon(){return this.isdisabled?e("img",{src:this.imgurl,alt:this.imgalt}):e("a",{class:"elem-icon",href:this.url,target:this.target},e("img",{src:this.imgurl,alt:this.imgalt}))}render(){const i=this.elemid?this.elemid:"";return e("div",{class:"panel-elem-container"},(this.imgurl||this.imgalt)&&e("div",{"aria-hidden":"true",class:"panel-elem-icon"},this.renderIcon()),e("div",{class:"panel-elem-link"},e("z-link",{href:this.url,icon:this.linkicon,isdisabled:this.isdisabled,target:this.target,htmlid:i+"link_id"},this.linklabel)),this.descrSlotName&&e("div",{class:"panel-elem-desc body-long-01"},e("slot",{name:this.descrSlotName})))}};t.style=":host{width:inherit;font-family:var(--dashboard-font);font-weight:var(--font-rg)}.panel-elem-container{width:100%}.panel-elem-icon{margin:auto calc(var(--space-unit) * 3)}.panel-elem-icon img{display:block;max-width:96px;height:32px;margin:auto;object-fit:contain}.panel-elem-link{margin:var(--space-unit) auto 0;border-radius:var(--border-no-radius);font-size:12px;text-align:center}.panel-elem-link>z-link{font-weight:var(--font-sb)}.panel-elem-desc{padding-top:var(--space-unit);margin:0;letter-spacing:0.16px;text-align:center}";export{t as z_panel_elem}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r,c as t,h as o}from"./p-0f55558e.js";const i=class{constructor(o){r(this,o),this.toggleClick=t(this,"toggleClick",7),this.isdisabled=!1,this.opened=!1}emitToggleClick(){this.isdisabled||(this.opened=!this.opened,this.toggleClick.emit(this.opened))}render(){return o("button",{tabindex:this.avoidclick?"-1":"0",class:{isopen:this.opened,"avoid-clicks":this.avoidclick},disabled:this.isdisabled,onClick:()=>this.emitToggleClick()},o("z-icon",{name:this.opened?"chevron-down":"chevron-up",width:16,height:16}),this.label)}};i.style="button{height:36px;padding-right:calc(var(--space-unit) * 2);padding-left:0;border:var(--border-size-medium) solid;border-color:transparent;background-color:var(--bg-white);border-radius:var(--border-radius);box-shadow:0 0 4px 0 rgb(0 0 0 / 20%);color:var(--myz-blue);cursor:pointer;fill:var(--myz-blue);font-family:var(--dashboard-font);font-size:14px;font-weight:var(--font-sb);outline:none;text-transform:uppercase;transition:all 200ms linear}button::-moz-focus-inner{border:0}button:hover{color:var(--myz-blue-dark);fill:var(--myz-blue-dark)}button:focus{border-color:var(--myz-blue);box-shadow:0 0 2px 2px var(--accent-dark);color:var(--myz-blue);fill:var(--myz-blue)}button:active{border-color:var(--myz-blue-light);box-shadow:0 2px 4px 0 rgb(0 0 0 / 40%);color:var(--myz-blue-light);fill:var(--myz-blue-light)}button:disabled{color:var(--text-grey-700);fill:var(--text-grey-700)}z-icon{display:inline-block;margin:0 var(--space-unit) 0 calc(var(--space-unit) * 2);transform:rotate(360deg);transition:all 200ms linear}button.isopen{top:-20px}button.avoid-clicks{pointer-events:none}";export{i as z_toggle_button}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-b3a91e19.js';
|
|
2
|
-
import { T as ThemeVariant } from './index-4f1e2705.js';
|
|
3
|
-
|
|
4
|
-
const stylesCss = ":host{font-family:var(--dashboard-font);font-weight:var(--font-rg)}button{display:flex;align-content:center;justify-content:center;padding:0;border:none;background-color:transparent}button>z-icon{color:var(--bg-white);fill:currentcolor}button>z-icon.light{color:var(--bg-grey-900);fill:currentcolor}";
|
|
5
|
-
|
|
6
|
-
const ZAppSwitcher = class {
|
|
7
|
-
constructor(hostRef) {
|
|
8
|
-
registerInstance(this, hostRef);
|
|
9
|
-
this.appButtonClick = createEvent(this, "appButtonClick", 7);
|
|
10
|
-
/** theme variant, default 'dark' */
|
|
11
|
-
this.theme = ThemeVariant.DARK;
|
|
12
|
-
this.isopen = false;
|
|
13
|
-
this.emitAppButtonClick = this.emitAppButtonClick.bind(this);
|
|
14
|
-
}
|
|
15
|
-
emitAppButtonClick() {
|
|
16
|
-
this.isopen = !this.isopen;
|
|
17
|
-
this.appButtonClick.emit({ isopen: this.isopen });
|
|
18
|
-
}
|
|
19
|
-
render() {
|
|
20
|
-
return (h("button", { title: "app-switcher", onClick: () => this.emitAppButtonClick() }, h("z-icon", { name: "app-switcher", class: this.theme })));
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
ZAppSwitcher.style = stylesCss;
|
|
24
|
-
|
|
25
|
-
export { ZAppSwitcher as z_app_switcher };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-b3a91e19.js';
|
|
2
|
-
|
|
3
|
-
const ZBody = class {
|
|
4
|
-
constructor(hostRef) {
|
|
5
|
-
registerInstance(this, hostRef);
|
|
6
|
-
/** Font weight variant */
|
|
7
|
-
this.variant = "regular";
|
|
8
|
-
}
|
|
9
|
-
render() {
|
|
10
|
-
return (h("z-typography", { tabIndex: 0, component: this.component || "span", level: `b${this.level}`, variant: this.variant }, h("slot", null)));
|
|
11
|
-
}
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export { ZBody as z_body };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-b3a91e19.js';
|
|
2
|
-
|
|
3
|
-
const ZHeading = class {
|
|
4
|
-
constructor(hostRef) {
|
|
5
|
-
registerInstance(this, hostRef);
|
|
6
|
-
/** Font weight variant */
|
|
7
|
-
this.variant = "regular";
|
|
8
|
-
}
|
|
9
|
-
render() {
|
|
10
|
-
return (h("z-typography", { tabIndex: 0, component: this.component || `h${this.level}`, level: `h${this.level}`, variant: this.variant }, h("slot", null)));
|
|
11
|
-
}
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export { ZHeading as z_heading };
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-b3a91e19.js';
|
|
2
|
-
import { O as OffCanvasVariant, t as TransitionDirection } from './index-4f1e2705.js';
|
|
3
|
-
|
|
4
|
-
const stylesCss = ".sc-z-offcanvas-h{--z-offcanvas--container-width:375px;--z-offcanvas--top-space:0;display:none;min-width:100%;height:100%;justify-content:end;font-family:var(--font-family-sans);font-weight:var(--font-rg)}.canvas-container.sc-z-offcanvas{display:flex;overflow:-moz-scrollbars-none;overflow:hidden;min-width:100%;height:100%;flex-direction:column;background:var(--color-surface01);transform:translateX(100%)}@keyframes enter-right{from{transform:translateX(100%)}to{transform:translateX(0)}}[open].sc-z-offcanvas-h>.canvas-container.sc-z-offcanvas{animation-duration:0.4s;animation-name:enter-right;animation-timing-function:ease-out;transform:translateX(0)}@keyframes exit-right{from{transform:translateX(0)}to{transform:translateX(100%)}}.sc-z-offcanvas-h:not([open])[variant=\"overlay\"]>.canvas-container.sc-z-offcanvas{animation-duration:0.4s;animation-name:exit-right;animation-timing-function:ease-out;transform:translateX(100%)}[variant=\"overlay\"].sc-z-offcanvas-h{position:fixed;z-index:1000;top:var(--z-offcanvas--top-space);right:0;bottom:0;left:0;height:calc(100% - var(--z-offcanvas--top-space))}[variant=\"overlay\"].sc-z-offcanvas-h>.canvas-container.sc-z-offcanvas{z-index:1010}[variant=\"overlay\"].sc-z-offcanvas-h .canvas-background.sc-z-offcanvas{position:absolute;left:0;width:100%;height:100%;background-color:var(--gray900);opacity:0.7}[transitiondirection=\"right\"].sc-z-offcanvas-h{justify-content:start}[transitiondirection=\"right\"].sc-z-offcanvas-h>.canvas-container.sc-z-offcanvas{transform:translateX(-100%)}@keyframes enter-left{from{transform:translateX(-100%)}to{transform:translateX(0)}}[transitiondirection=\"right\"][open].sc-z-offcanvas-h>.canvas-container.sc-z-offcanvas{animation-duration:0.4s;animation-name:enter-left;animation-timing-function:ease-out;transform:translateX(0)}@keyframes exit-left{from{transform:translateX(0)}to{transform:translateX(-100%)}}.sc-z-offcanvas-h:not([open])[variant=\"overlay\"][transitiondirection=\"right\"]>.canvas-container.sc-z-offcanvas{animation-duration:0.4s;animation-name:exit-left;animation-timing-function:ease-out;transform:translateX(-100%)}.canvas-container.sc-z-offcanvas>.canvas-content.sc-z-offcanvas{overflow:auto;flex:1 auto;padding:0 calc(var(--space-unit) * 2);margin:calc(var(--space-unit) * 2) calc(var(--space-unit) / 2) calc(var(--space-unit) * 2) 0;overflow-x:hidden}[variant=\"overlay\"].sc-z-offcanvas-h>.canvas-container.sc-z-offcanvas>.canvas-content.sc-z-offcanvas{padding:0 calc(var(--space-unit) * 2) calc(var(--space-unit) * 2) calc(var(--space-unit) * 2);margin:calc(var(--space-unit) * 2) calc(var(--space-unit) / 2) 0 0}.canvas-container.sc-z-offcanvas .canvas-content.sc-z-offcanvas::-webkit-scrollbar{width:10px;background:linear-gradient(to right, transparent 0 3px, var(--gray200) 3px 7px, transparent 7px 10px);border-radius:var(--border-radius)}.canvas-container.sc-z-offcanvas .canvas-content.sc-z-offcanvas::-webkit-scrollbar-track{background-color:transparent}.canvas-container.sc-z-offcanvas .canvas-content.sc-z-offcanvas::-webkit-scrollbar-thumb{width:10px;background-color:var(--color-primary01);border-radius:var(--border-radius)}.canvas-container.sc-z-offcanvas .canvas-content.sc-z-offcanvas::-webkit-scrollbar-thumb:hover{background-color:var(--color-hover-primary)}.canvas-container.sc-z-offcanvas .canvas-content.sc-z-offcanvas{scrollbar-color:var(--color-primary01) transparent}@media only screen and (min-width: 768px){.sc-z-offcanvas-h{min-width:auto}.canvas-container.sc-z-offcanvas{width:auto;min-width:max(var(--z-offcanvas--container-width), 375px);max-width:max(var(--z-offcanvas--container-width), 375px);height:auto;min-height:calc(var(--space-unit) * 40)}@keyframes grow{from{width:0}to{width:max(var(--z-offcanvas--container-width), 375px)}}.sc-z-offcanvas-h:not([variant=\"overlay\"])[open]{width:auto;animation-duration:0.4s;animation-name:grow;animation-timing-function:ease-out}}";
|
|
5
|
-
|
|
6
|
-
const ZOffcanvas = class {
|
|
7
|
-
constructor(hostRef) {
|
|
8
|
-
registerInstance(this, hostRef);
|
|
9
|
-
this.canvasOpenStatusChanged = createEvent(this, "canvasOpenStatusChanged", 7);
|
|
10
|
-
/**
|
|
11
|
-
* Offcanvas variant.
|
|
12
|
-
* Can be one of "overlay", "pushcontent"
|
|
13
|
-
* Default variant: pushcontent
|
|
14
|
-
*/
|
|
15
|
-
this.variant = OffCanvasVariant.PUSHCONTENT;
|
|
16
|
-
/** open component. Default: false */
|
|
17
|
-
this.open = false;
|
|
18
|
-
/** open content transitioning in a specified direction left | right. Default: left */
|
|
19
|
-
this.transitiondirection = TransitionDirection.LEFT;
|
|
20
|
-
}
|
|
21
|
-
componentWillLoad() {
|
|
22
|
-
this.handleOpenStatus();
|
|
23
|
-
}
|
|
24
|
-
onOpenChanged() {
|
|
25
|
-
this.handleOpenStatus();
|
|
26
|
-
this.canvasOpenStatusChanged.emit(this.open);
|
|
27
|
-
}
|
|
28
|
-
handleOpenStatus() {
|
|
29
|
-
if (this.open) {
|
|
30
|
-
this.hostElement.style.opacity = "0";
|
|
31
|
-
this.hostElement.style.display = "flex";
|
|
32
|
-
if (this.variant === OffCanvasVariant.OVERLAY) {
|
|
33
|
-
document.body.style.overflowY = "hidden";
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
else if (this.variant === OffCanvasVariant.PUSHCONTENT) {
|
|
37
|
-
this.hostElement.style.display = "none";
|
|
38
|
-
document.body.style.overflowX = "hidden";
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
handleAnimationEnd() {
|
|
42
|
-
if (this.hostElement.hasAttribute("open")) {
|
|
43
|
-
this.hostElement.querySelector(`.canvas-content`).focus();
|
|
44
|
-
}
|
|
45
|
-
else if (this.variant === OffCanvasVariant.OVERLAY) {
|
|
46
|
-
this.hostElement.style.display = "none";
|
|
47
|
-
document.body.style.overflowX = "initial";
|
|
48
|
-
document.body.style.overflowY = "initial";
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
handleAnimationStart() {
|
|
52
|
-
if (this.hostElement.hasAttribute("open")) {
|
|
53
|
-
this.hostElement.style.opacity = "1";
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
render() {
|
|
57
|
-
return (h(Host, null, h("div", { class: "canvas-container", onAnimationEnd: () => this.handleAnimationEnd(), onAnimationStart: () => this.handleAnimationStart() }, h("div", { class: "canvas-content" }, h("slot", { name: "canvasContent" }))), h("div", { class: "canvas-background", "data-action": "canvasBackground", onClick: () => (this.open = false) })));
|
|
58
|
-
}
|
|
59
|
-
get hostElement() { return getElement(this); }
|
|
60
|
-
static get watchers() { return {
|
|
61
|
-
"open": ["onOpenChanged"]
|
|
62
|
-
}; }
|
|
63
|
-
};
|
|
64
|
-
ZOffcanvas.style = stylesCss;
|
|
65
|
-
|
|
66
|
-
export { ZOffcanvas as z_offcanvas };
|
|
@@ -1,231 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host } from './index-b3a91e19.js';
|
|
2
|
-
import { f as ListDividerType, B as ButtonVariant } from './index-4f1e2705.js';
|
|
3
|
-
import { r as randomId, h as handleKeyboardSubmit } from './utils-5a24a17b.js';
|
|
4
|
-
import './breakpoints-e07f80e7.js';
|
|
5
|
-
|
|
6
|
-
const stylesCss = ":host{position:relative;z-index:5;display:block;width:inherit;height:44px;font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>div{position:absolute;z-index:10;display:grid;width:100%;gap:0 calc(var(--space-unit) * 2);grid-template-columns:auto;grid-template-rows:auto}:host>div.has-submit{grid-template-columns:auto min-content}:host>div.has-results{grid-template-rows:auto auto}:host>div>z-input{width:100%;grid-column:1;grid-row:1}:host>div>z-button{grid-column:2;grid-row:1}:host>div>div.results-wrapper{overflow:auto;padding:calc(var(--space-unit) / 4);padding-bottom:calc(var(--space-unit) / 4);border:var(--border-size-small) solid var(--color-surface03);border-top:none;margin-top:-1px;background:var(--color-surface01);grid-column:1;grid-row:2}:host>div>div.results-wrapper>div.results{overflow:auto;max-height:var(--z-searchbar-results-height, 540px);padding:var(--space-unit) calc(var(--space-unit) * 1.5);padding-bottom:calc(var(--space-unit) / 2);scrollbar-color:var(--color-primary01) transparent}:host>div>div.results-wrapper>div.results::-webkit-scrollbar{width:10px;background:linear-gradient(to right, transparent 0 3px, var(--gray200) 3px 7px, transparent 7px 10px);border-radius:var(--border-radius)}:host>div>div.results-wrapper>div.results::-webkit-scrollbar-track{background-color:transparent}:host>div>div.results-wrapper>div.results::-webkit-scrollbar-thumb{width:10px;background-color:var(--color-primary01);border-radius:var(--border-radius)}:host>div>div.results-wrapper>div.results .category-heading{display:block;font-size:var(--font-size-2);font-weight:var(--font-rg);line-height:var(--font-size-3)}:host>div>div.results-wrapper>div.results .category-heading>*{display:block}:host>div>div.results-wrapper>div.results span.category-heading>span.category{color:var(--color-text05);font-style:italic}:host>div>div.results-wrapper>div.results span.category-heading>span.subcategory{margin-top:8px;color:var(--color-text01);text-transform:uppercase}:host>div>div.results-wrapper>div.results z-list-element{display:block}:host>div>div.results-wrapper>div.results z-list-element:focus{box-shadow:var(--shadow-focus-primary)}:host>div>div.results-wrapper>div.results .item{--z-icon-height:12px;--z-icon-width:12px;display:flex;flex-flow:row nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;color:var(--color-text01);fill:var(--color-icon02);font-size:var(--font-size-2);line-height:var(--font-size-3)}:host>div>div.results-wrapper>div.results .item.ellipsis>span.item-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host>div>div.results-wrapper>div.results .item>span.item-label>mark,:host>div>div.results-wrapper>div.results .item>span.item-label>*>mark{background:var(--color-primary03)}:host>div>div.results-wrapper>div.results .item.has-category{padding-left:calc(var(--space-unit) * 3)}:host>div>div.results-wrapper>div.results .item>z-icon.item-icon{padding:2px 0;margin-right:calc(var(--space-unit) * 1.5)}:host>div>div.results-wrapper>div.results .item.item-search{--z-icon-height:16px;--z-icon-width:16px}:host>div>div.results-wrapper>div.results .item.item-search>z-icon{margin-right:var(--space-unit)}:host>div>div.results-wrapper>div.results .item-show-all{display:block;text-align:center}:host>div>div.results-wrapper>div.results .item-no-results{display:block;font-size:var(--font-size-2);font-style:italic;line-height:var(--font-size-5)}:host>div>div.results-wrapper>div.results .item-no-results>ul{padding-left:calc(var(--space-unit) * 2);margin:var(--space-unit)}@media (min-width: 768px){:host>div>div.results-wrapper>div.results .category-heading{font-size:var(--font-size-3);line-height:var(--font-size-6)}:host>div>div.results-wrapper>div.results .item{--z-icon-height:12px;--z-icon-width:12px;font-size:var(--font-size-3);line-height:var(--font-size-6)}:host>div>div.results-wrapper>div.results .item.item-search{--z-icon-height:18px;--z-icon-width:18px}:host>div>div.results-wrapper>div.results .item.item-search>z-icon{margin-top:calc(var(--space-unit) / 4)}:host>div>div.results-wrapper>div.results .item.ellipsis>span.item-label{height:24px}:host>div>div.results-wrapper>div.results .item>z-icon.item-icon{padding:6px 0}}@media (min-width: 1152px){:host>div>div.results-wrapper>div.results .item{cursor:pointer}:host>div>div.results-wrapper>div.results .item-no-results{cursor:default;font-size:var(--font-size-3);line-height:var(--font-size-6)}}";
|
|
7
|
-
|
|
8
|
-
const ZSearchbar = class {
|
|
9
|
-
constructor(hostRef) {
|
|
10
|
-
registerInstance(this, hostRef);
|
|
11
|
-
this.searchSubmit = createEvent(this, "searchSubmit", 7);
|
|
12
|
-
this.searchTyping = createEvent(this, "searchTyping", 7);
|
|
13
|
-
this.searchItemClick = createEvent(this, "searchItemClick", 7);
|
|
14
|
-
/** the id of the searchbar element */
|
|
15
|
-
this.htmlid = `searchbar-${randomId()}`;
|
|
16
|
-
/** Show simple input without submit button */
|
|
17
|
-
this.preventSubmit = false;
|
|
18
|
-
/** Show autocomplete results */
|
|
19
|
-
this.autocomplete = false;
|
|
20
|
-
/** Minimun number of characters to dispatch typing event */
|
|
21
|
-
this.autocompleteMinChars = 3;
|
|
22
|
-
/** Truncate results to single row */
|
|
23
|
-
this.resultsEllipsis = true;
|
|
24
|
-
/** Search helper text */
|
|
25
|
-
this.searchHelperLabel = "Cerca {searchString}";
|
|
26
|
-
/** Sort autocomplete results items */
|
|
27
|
-
this.sortResultsItems = false;
|
|
28
|
-
this.searchString = "";
|
|
29
|
-
this.currResultsCount = 0;
|
|
30
|
-
this.showResults = false;
|
|
31
|
-
this.resultsItemsList = null;
|
|
32
|
-
}
|
|
33
|
-
emitSearchSubmit() {
|
|
34
|
-
this.searchSubmit.emit(this.searchString);
|
|
35
|
-
}
|
|
36
|
-
emitSearchTyping(search) {
|
|
37
|
-
this.searchTyping.emit(search);
|
|
38
|
-
}
|
|
39
|
-
emitSearchItemClick(item) {
|
|
40
|
-
this.searchItemClick.emit(item);
|
|
41
|
-
}
|
|
42
|
-
watchItems() {
|
|
43
|
-
this.resultsItemsList = this.getResultsItemsList();
|
|
44
|
-
}
|
|
45
|
-
watchResultsCount() {
|
|
46
|
-
this.currResultsCount = this.resultsCount;
|
|
47
|
-
}
|
|
48
|
-
watchValue() {
|
|
49
|
-
this.handleInput(this.value);
|
|
50
|
-
}
|
|
51
|
-
watchSearchString() {
|
|
52
|
-
this.emitSearchTyping(this.searchString);
|
|
53
|
-
if (!this.searchString) {
|
|
54
|
-
this.currResultsCount = this.resultsCount;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
clickListener(e) {
|
|
58
|
-
this.handleOutsideClick(e);
|
|
59
|
-
}
|
|
60
|
-
componentWillLoad() {
|
|
61
|
-
this.resultsItemsList = this.getResultsItemsList();
|
|
62
|
-
this.currResultsCount = this.resultsCount;
|
|
63
|
-
this.handleInput(this.value);
|
|
64
|
-
}
|
|
65
|
-
getResultsItemsList() {
|
|
66
|
-
return typeof this.resultsItems === "string" ? JSON.parse(this.resultsItems) : this.resultsItems;
|
|
67
|
-
}
|
|
68
|
-
getGroupedItems(items) {
|
|
69
|
-
const groupedItems = {};
|
|
70
|
-
items.forEach((item) => {
|
|
71
|
-
var _a;
|
|
72
|
-
const key = `${item === null || item === void 0 ? void 0 : item.category}${item === null || item === void 0 ? void 0 : item.subcategory}`;
|
|
73
|
-
groupedItems[key] = (_a = groupedItems[key]) !== null && _a !== void 0 ? _a : {
|
|
74
|
-
category: item === null || item === void 0 ? void 0 : item.category,
|
|
75
|
-
subcategory: item === null || item === void 0 ? void 0 : item.subcategory,
|
|
76
|
-
items: [],
|
|
77
|
-
};
|
|
78
|
-
groupedItems[key]["items"].push(item);
|
|
79
|
-
});
|
|
80
|
-
if (this.sortResultsItems) {
|
|
81
|
-
return Object.keys(groupedItems)
|
|
82
|
-
.sort()
|
|
83
|
-
.reduce((obj, key) => {
|
|
84
|
-
obj[key] = Object.assign(Object.assign({}, groupedItems[key]), { items: groupedItems[key]["items"].sort((a, b) => {
|
|
85
|
-
const nameA = a.label.toUpperCase();
|
|
86
|
-
const nameB = b.label.toUpperCase();
|
|
87
|
-
if (nameA < nameB) {
|
|
88
|
-
return -1;
|
|
89
|
-
}
|
|
90
|
-
if (nameA > nameB) {
|
|
91
|
-
return 1;
|
|
92
|
-
}
|
|
93
|
-
return 0;
|
|
94
|
-
}) });
|
|
95
|
-
return obj;
|
|
96
|
-
}, {});
|
|
97
|
-
}
|
|
98
|
-
return groupedItems;
|
|
99
|
-
}
|
|
100
|
-
checkResultsCount(counter) {
|
|
101
|
-
if (!this.currResultsCount || counter < this.currResultsCount) {
|
|
102
|
-
return true;
|
|
103
|
-
}
|
|
104
|
-
return false;
|
|
105
|
-
}
|
|
106
|
-
handleStopTyping(e) {
|
|
107
|
-
e.stopPropagation();
|
|
108
|
-
this.handleInput(e.detail.value);
|
|
109
|
-
}
|
|
110
|
-
handleInput(value) {
|
|
111
|
-
if ((value === null || value === void 0 ? void 0 : value.length) >= this.autocompleteMinChars) {
|
|
112
|
-
this.searchString = value;
|
|
113
|
-
}
|
|
114
|
-
else if (this.searchString) {
|
|
115
|
-
this.searchString = "";
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
handleSubmit() {
|
|
119
|
-
if (this.preventSubmit) {
|
|
120
|
-
return;
|
|
121
|
-
}
|
|
122
|
-
this.emitSearchSubmit();
|
|
123
|
-
}
|
|
124
|
-
handleOutsideClick(e) {
|
|
125
|
-
const cp = e.composedPath();
|
|
126
|
-
const searchbar = cp.find((elem) => elem.nodeName === "Z-SEARCHBAR");
|
|
127
|
-
if (!searchbar || searchbar.htmlid !== this.htmlid) {
|
|
128
|
-
this.showResults = false;
|
|
129
|
-
return;
|
|
130
|
-
}
|
|
131
|
-
if (cp.find((elem) => { var _a; return (elem === null || elem === void 0 ? void 0 : elem.nodeName) === "Z-INPUT" || ((_a = elem === null || elem === void 0 ? void 0 : elem.classList) === null || _a === void 0 ? void 0 : _a.contains("results")); })) {
|
|
132
|
-
this.showResults = true;
|
|
133
|
-
return;
|
|
134
|
-
}
|
|
135
|
-
this.showResults = false;
|
|
136
|
-
}
|
|
137
|
-
renderInput() {
|
|
138
|
-
return (h("z-input", { message: false, placeholder: this.placeholder, onStopTyping: (e) => this.handleStopTyping(e), onKeyUp: (e) => handleKeyboardSubmit(e, () => this.handleSubmit()), value: this.value }));
|
|
139
|
-
}
|
|
140
|
-
renderButton() {
|
|
141
|
-
if (this.preventSubmit) {
|
|
142
|
-
return null;
|
|
143
|
-
}
|
|
144
|
-
return (h("z-button", { variant: ButtonVariant.PRIMARY, onClick: () => this.handleSubmit() }, "CERCA"));
|
|
145
|
-
}
|
|
146
|
-
renderResults() {
|
|
147
|
-
if (!this.showResults ||
|
|
148
|
-
!this.autocomplete ||
|
|
149
|
-
!this.searchString ||
|
|
150
|
-
this.searchString.length < this.autocompleteMinChars ||
|
|
151
|
-
!this.resultsItemsList) {
|
|
152
|
-
return null;
|
|
153
|
-
}
|
|
154
|
-
return (h("div", { class: "results-wrapper" }, h("div", { class: "results" }, this.renderResultsList())));
|
|
155
|
-
}
|
|
156
|
-
renderResultsList() {
|
|
157
|
-
var _a, _b;
|
|
158
|
-
if (this.preventSubmit && !((_a = this.resultsItemsList) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
159
|
-
return (h("span", { class: "item item-no-results" }, "Non abbiamo trovato risultati per ", h("b", null, this.searchString), h("br", null), h("br", null), "Cosa puoi fare?", h("ul", null, h("li", null, "Verificare di aver scritto bene"), h("li", null, "Provare a cercare un'altra parola"), h("li", null, "Provare a cercare qualcosa di pi\u00F9 generico"))));
|
|
160
|
-
}
|
|
161
|
-
return (h("z-list", { role: "listbox", id: `list-${this.htmlid}` }, this.renderSearchHelper(!!((_b = this.resultsItemsList) === null || _b === void 0 ? void 0 : _b.length)), this.renderItems(), this.renderShowAllResults()));
|
|
162
|
-
}
|
|
163
|
-
renderItems() {
|
|
164
|
-
var _a;
|
|
165
|
-
if (!((_a = this.resultsItemsList) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
166
|
-
return [];
|
|
167
|
-
}
|
|
168
|
-
const groupedItems = this.getGroupedItems(this.resultsItemsList);
|
|
169
|
-
const listGroups = [];
|
|
170
|
-
let counter = 0;
|
|
171
|
-
Object.values(groupedItems).forEach((groupItem, index, array) => {
|
|
172
|
-
if (this.checkResultsCount(counter)) {
|
|
173
|
-
const listGroupsElements = [];
|
|
174
|
-
groupItem.items.forEach((item, subindex, subarray) => {
|
|
175
|
-
if (this.checkResultsCount(counter)) {
|
|
176
|
-
const isLast = index === array.length - 1 && subindex === subarray.length - 1;
|
|
177
|
-
listGroupsElements.push(this.renderItem(item, subindex, !isLast));
|
|
178
|
-
}
|
|
179
|
-
counter++;
|
|
180
|
-
});
|
|
181
|
-
if (listGroupsElements.length) {
|
|
182
|
-
listGroups.push(h("z-list-group", { "divider-type": ListDividerType.ELEMENT }, this.renderItemCategory(groupItem), listGroupsElements));
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
});
|
|
186
|
-
return listGroups;
|
|
187
|
-
}
|
|
188
|
-
renderItem(item, key, divider) {
|
|
189
|
-
return (h("z-list-element", { id: `list-item-${this.htmlid}-${key}`, role: "option", tabindex: 0, dividerType: divider ? ListDividerType.ELEMENT : undefined, clickable: true, onClickItem: () => this.emitSearchItemClick(item) }, h("span", { class: { "item": true, "ellipsis": this.resultsEllipsis, "has-category": !!item.category } }, (item === null || item === void 0 ? void 0 : item.icon) && (h("z-icon", { class: "item-icon", name: item.icon })), h("span", { class: "item-label", title: item.label, innerHTML: this.renderItemLabel(item.label) }))));
|
|
190
|
-
}
|
|
191
|
-
renderItemLabel(label) {
|
|
192
|
-
if (!this.searchString) {
|
|
193
|
-
return label;
|
|
194
|
-
}
|
|
195
|
-
return label.replace(new RegExp(this.searchString.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "gmi"), (found) => `<mark>${found}</mark>`);
|
|
196
|
-
}
|
|
197
|
-
renderItemCategory(groupItem) {
|
|
198
|
-
if (!(groupItem === null || groupItem === void 0 ? void 0 : groupItem.category)) {
|
|
199
|
-
return null;
|
|
200
|
-
}
|
|
201
|
-
return (h("span", { class: "category-heading", slot: "header-title" }, h("span", { class: "category" }, groupItem.category), (groupItem === null || groupItem === void 0 ? void 0 : groupItem.subcategory) && h("span", { class: "subcategory" }, groupItem.subcategory)));
|
|
202
|
-
}
|
|
203
|
-
renderSearchHelper(hasDivider = true) {
|
|
204
|
-
if (!this.autocomplete || this.preventSubmit || !this.searchString) {
|
|
205
|
-
return null;
|
|
206
|
-
}
|
|
207
|
-
return (h("z-list-element", { role: "option", tabindex: 0, dividerType: hasDivider ? ListDividerType.ELEMENT : undefined, clickable: true, id: `list-item-${this.htmlid}-search`, onClickItem: () => this.emitSearchSubmit() }, h("span", { class: "item item-search" }, h("z-icon", { class: "search-icon", name: "left-magnifying-glass" }), h("span", { class: "item-label", innerHTML: this.searchHelperLabel.replace("{searchString}", `<mark>${this.searchString}</mark>`) }))));
|
|
208
|
-
}
|
|
209
|
-
renderShowAllResults() {
|
|
210
|
-
var _a, _b;
|
|
211
|
-
if (!this.currResultsCount ||
|
|
212
|
-
!this.searchString ||
|
|
213
|
-
!((_a = this.resultsItemsList) === null || _a === void 0 ? void 0 : _a.length) ||
|
|
214
|
-
this.currResultsCount >= ((_b = this.resultsItemsList) === null || _b === void 0 ? void 0 : _b.length)) {
|
|
215
|
-
return null;
|
|
216
|
-
}
|
|
217
|
-
return (h("z-list-element", { role: "option", tabindex: 0, clickable: true, id: `list-item-${this.htmlid}-show-all`, onClickItem: () => (this.currResultsCount = 0) }, h("span", { class: "item-show-all" }, h("z-link", null, "Vedi tutti i risultati"))));
|
|
218
|
-
}
|
|
219
|
-
render() {
|
|
220
|
-
return (h(Host, { onFocus: () => (this.showResults = true), onClick: (e) => this.handleOutsideClick(e) }, h("div", { class: { "has-submit": !this.preventSubmit, "has-results": this.autocomplete } }, this.renderInput(), this.renderResults(), this.renderButton())));
|
|
221
|
-
}
|
|
222
|
-
static get watchers() { return {
|
|
223
|
-
"resultsItems": ["watchItems"],
|
|
224
|
-
"resultsCount": ["watchResultsCount"],
|
|
225
|
-
"value": ["watchValue"],
|
|
226
|
-
"searchString": ["watchSearchString"]
|
|
227
|
-
}; }
|
|
228
|
-
};
|
|
229
|
-
ZSearchbar.style = stylesCss;
|
|
230
|
-
|
|
231
|
-
export { ZSearchbar as z_searchbar };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, a as getElement, H as Host } from './index-b3a91e19.js';
|
|
2
|
-
|
|
3
|
-
const stylesCss = ":host>*{margin:0;font-family:var(--dashboard-font)}:host(.regular)>*{font-weight:var(--font-rg)}:host(.semibold)>*{font-weight:600}:host(.light)>*{font-weight:300}:host(.h1)>*{font-size:32px;line-height:40px}:host(.h2)>*{font-size:28px;line-height:36px}:host(.h3)>*{font-size:24px;line-height:32px}:host(.h4)>*{font-size:20px;line-height:28px}:host(.b1)>*{font-size:20px;line-height:28px}:host(.b2)>*{font-size:18px;line-height:28px}:host(.b3)>*{font-size:16px;line-height:24px}:host(.b4)>*{font-size:14px;line-height:20px}:host(.b5)>*{font-size:12px;line-height:16px}:host(:focus-visible){outline:none}";
|
|
4
|
-
|
|
5
|
-
const ZTypography = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
/** Font weight variant */
|
|
9
|
-
this.variant = "regular";
|
|
10
|
-
}
|
|
11
|
-
render() {
|
|
12
|
-
const el = document.createElement(this.component || "span");
|
|
13
|
-
el.innerHTML = `<slot />`;
|
|
14
|
-
this.hostElement.shadowRoot.appendChild(el);
|
|
15
|
-
return (h(Host, { class: {
|
|
16
|
-
[this.level]: Boolean(this.level),
|
|
17
|
-
regular: this.variant === "regular",
|
|
18
|
-
semibold: this.variant === "semibold",
|
|
19
|
-
light: this.variant === "light",
|
|
20
|
-
} }));
|
|
21
|
-
}
|
|
22
|
-
get hostElement() { return getElement(this); }
|
|
23
|
-
};
|
|
24
|
-
ZTypography.style = stylesCss;
|
|
25
|
-
|
|
26
|
-
export { ZTypography as z_typography };
|