@zanichelli/delta_share 3.1.0 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/wc/cjs/{breakpoints-a55736d0.js → breakpoints-e7c8838e.js} +3 -1
- package/dist/wc/cjs/delta_share.cjs.js +1 -1
- package/dist/wc/cjs/{icons-9d7fe21e.js → icons-5006d741.js} +30 -0
- package/dist/wc/cjs/index-0119322e.js +20 -0
- package/dist/wc/cjs/index-044ebc8a.js +67 -0
- package/dist/wc/cjs/index-05a1b9dc.js +70 -0
- package/dist/wc/cjs/index-18a2a552.js +49 -0
- package/dist/wc/cjs/index-47449986.js +41 -0
- package/dist/wc/cjs/index-4a04e2aa.js +21 -0
- package/dist/wc/cjs/index-51009bcf.js +29 -0
- package/dist/wc/cjs/index-6d0848b5.js +21 -0
- package/dist/wc/cjs/index-732ae62f.js +22 -0
- package/dist/wc/cjs/index-81603b4a.js +17 -0
- package/dist/wc/cjs/index-8da01bc6.js +34 -0
- package/dist/wc/cjs/index-9886a665.js +21 -0
- package/dist/wc/cjs/index-a9a1f262.js +79 -0
- package/dist/wc/cjs/{index-1112cdb1.js → index-c0af2262.js} +43 -9
- package/dist/wc/cjs/index-db42857f.js +17 -0
- package/dist/wc/cjs/index-f4792a6f.js +21 -0
- package/dist/wc/cjs/index-f824355b.js +17 -0
- package/dist/wc/cjs/license-activation_11.cjs.entry.js +937 -39
- package/dist/wc/cjs/loader.cjs.js +1 -1
- package/dist/wc/cjs/{utils-3ac19501.js → utils-8fd01df0.js} +13 -3
- package/dist/wc/cjs/{utils-2bfaab77.js → utils-f2cac0dc.js} +1 -1
- package/dist/wc/cjs/z-accordion.cjs.entry.js +67 -0
- package/dist/wc/cjs/z-anchor-navigation.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-app-header.cjs.entry.js +91 -39
- package/dist/wc/cjs/z-aria-alert.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-avatar.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-book-card.cjs.entry.js +111 -0
- package/dist/wc/cjs/z-breadcrumb.cjs.entry.js +232 -0
- package/dist/wc/cjs/z-button-sort.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-card.cjs.entry.js +5 -18
- package/dist/wc/cjs/z-carousel.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-chip.cjs.entry.js +10 -7
- package/dist/wc/cjs/z-combobox.cjs.entry.js +11 -9
- package/dist/wc/cjs/z-contextual-menu.cjs.entry.js +5 -5
- package/dist/wc/cjs/z-cover-hero.cjs.entry.js +24 -7
- package/dist/wc/cjs/z-date-picker.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-divider.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-file-upload.cjs.entry.js +4 -4
- package/dist/wc/cjs/z-file.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-info-reveal.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-list_3.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-menu-section.cjs.entry.js +11 -3
- package/dist/wc/cjs/z-menu.cjs.entry.js +26 -14
- package/dist/wc/cjs/z-messages-pocket.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-myz-card-alert.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-myz-card-dictionary.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-myz-card-footer.cjs.entry.js +14 -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 +3 -3
- package/dist/wc/cjs/z-myz-card_4.cjs.entry.js +3 -3
- package/dist/wc/cjs/z-myz-list-item.cjs.entry.js +4 -4
- package/dist/wc/cjs/z-navigation-tab-link.cjs.entry.js +3 -3
- package/dist/wc/cjs/z-navigation-tab.cjs.entry.js +3 -3
- package/dist/wc/cjs/z-navigation-tabs.cjs.entry.js +75 -3
- package/dist/wc/cjs/z-offcanvas_2.cjs.entry.js +281 -0
- package/dist/wc/cjs/z-otp.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-pagination.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-pocket_3.cjs.entry.js +3 -3
- package/dist/wc/cjs/z-popover.cjs.entry.js +3 -2
- package/dist/wc/cjs/z-range-picker.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-section-title.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-select.cjs.entry.js +18 -10
- package/dist/wc/cjs/z-skip-to-content.cjs.entry.js +3 -3
- 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-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 +36 -58
- 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 +1 -1
- package/dist/wc/cjs/z-toast-notification.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-toggle-button.cjs.entry.js +4 -2
- package/dist/wc/cjs/z-toggle-switch.cjs.entry.js +3 -3
- package/dist/wc/cjs/z-tooltip.cjs.entry.js +10 -4
- package/dist/wc/cjs/z-tr.cjs.entry.js +15 -0
- package/dist/wc/collection/collection-manifest.json +10 -1
- package/dist/wc/collection/components/license-activation/license-activation.js +13 -10
- package/dist/wc/collection/components/license-activation-form/license-activation-form.css +4 -4
- package/dist/wc/collection/components/license-activation-form/license-activation-form.js +1 -1
- package/dist/wc/custom-elements/index.js +2412 -627
- package/dist/wc/delta_share/delta_share.esm.js +1 -1
- package/dist/wc/delta_share/p-057858cb.entry.js +1 -0
- package/dist/wc/delta_share/p-06aacfed.entry.js +1 -0
- package/dist/wc/delta_share/{p-42dd4f36.entry.js → p-06fa5b43.entry.js} +1 -1
- package/dist/wc/delta_share/p-09fe90e6.entry.js +1 -0
- package/dist/wc/delta_share/p-0acc73cd.entry.js +1 -0
- package/dist/wc/delta_share/{p-c51ebb01.entry.js → p-0fe7f1ad.entry.js} +1 -1
- package/dist/wc/delta_share/{p-99ffd017.entry.js → p-171202cb.js} +1 -1
- package/dist/wc/delta_share/p-1b8b3092.entry.js +1 -0
- package/dist/wc/delta_share/p-1c4015c7.entry.js +1 -0
- package/dist/wc/delta_share/p-27537f0b.js +1 -0
- package/dist/wc/delta_share/p-2d1b1197.entry.js +1 -0
- package/dist/wc/delta_share/{p-a2b564ef.entry.js → p-2e12c305.entry.js} +1 -1
- package/dist/wc/delta_share/{p-3fa29874.entry.js → p-2eed13ce.entry.js} +1 -1
- package/dist/wc/delta_share/p-30b524e2.entry.js +1 -0
- package/dist/wc/delta_share/{p-81ddcb87.entry.js → p-31922918.entry.js} +1 -1
- package/dist/wc/delta_share/p-3605faee.entry.js +1 -0
- package/dist/wc/delta_share/p-3b4879bc.js +1 -0
- package/dist/wc/delta_share/p-3b7aeb99.entry.js +1 -0
- package/dist/wc/delta_share/p-3de56f4a.entry.js +1 -0
- package/dist/wc/delta_share/{p-950aa417.entry.js → p-3e66faf7.entry.js} +1 -1
- package/dist/wc/delta_share/{p-57f2b8d8.entry.js → p-46e4fe9d.entry.js} +1 -1
- package/dist/wc/delta_share/p-4bcbac62.entry.js +1 -0
- package/dist/wc/delta_share/p-5588386c.entry.js +1 -0
- package/dist/wc/delta_share/p-55924409.entry.js +1 -0
- package/dist/wc/delta_share/p-589b8717.js +1 -0
- package/dist/wc/delta_share/p-5d29a5a7.entry.js +1 -0
- package/dist/wc/delta_share/p-5f021095.js +1 -0
- package/dist/wc/delta_share/{p-b38b27f2.entry.js → p-627de5ca.entry.js} +1 -1
- package/dist/wc/delta_share/p-63f5644d.js +1 -0
- package/dist/wc/delta_share/{p-8876b438.entry.js → p-6619cb5a.entry.js} +1 -1
- package/dist/wc/delta_share/p-6776c695.entry.js +1 -0
- package/dist/wc/delta_share/{p-9ad5616e.entry.js → p-699d0efb.entry.js} +1 -1
- package/dist/wc/delta_share/p-6d1c4af9.js +1 -0
- package/dist/wc/delta_share/p-6d888c61.js +1 -0
- package/dist/wc/delta_share/{p-2f289949.entry.js → p-71af40a8.entry.js} +1 -1
- package/dist/wc/delta_share/{p-8d532866.entry.js → p-74027654.js} +1 -1
- package/dist/wc/delta_share/{p-6d853df0.entry.js → p-75b9448a.entry.js} +1 -1
- package/dist/wc/delta_share/p-776a9611.entry.js +1 -0
- package/dist/wc/delta_share/p-78b1d100.js +1 -0
- package/dist/wc/delta_share/p-7966c7e6.entry.js +1 -0
- package/dist/wc/delta_share/p-7ae04b31.entry.js +1 -0
- package/dist/wc/delta_share/{p-963999a8.entry.js → p-81a1b7cc.entry.js} +1 -1
- package/dist/wc/delta_share/p-83156f0c.entry.js +1 -0
- package/dist/wc/delta_share/{p-8825d8e4.entry.js → p-858613c0.entry.js} +1 -1
- package/dist/wc/delta_share/p-8649f025.entry.js +1 -0
- package/dist/wc/delta_share/{p-c885d25c.entry.js → p-86683a1d.entry.js} +1 -1
- package/dist/wc/delta_share/{p-7546c464.entry.js → p-86dfdccc.js} +1 -1
- package/dist/wc/delta_share/{p-d8e80ee8.entry.js → p-8b3b862c.js} +1 -1
- package/dist/wc/delta_share/p-93504934.entry.js +1 -0
- package/dist/wc/delta_share/p-967acc0e.entry.js +1 -0
- package/dist/wc/delta_share/{p-c436e1af.entry.js → p-974d6235.entry.js} +1 -1
- package/dist/wc/delta_share/{p-3cf0c6a5.entry.js → p-9c3fcef2.entry.js} +1 -1
- package/dist/wc/delta_share/{p-cb16715b.entry.js → p-9cc6b2ff.entry.js} +1 -1
- package/dist/wc/delta_share/p-9d3e6cff.entry.js +1 -0
- package/dist/wc/delta_share/p-a54c1c69.entry.js +1 -0
- package/dist/wc/delta_share/p-a6252f41.entry.js +1 -0
- package/dist/wc/delta_share/{p-c31b160e.entry.js → p-a7afd1e8.entry.js} +1 -1
- package/dist/wc/delta_share/p-ade21d10.entry.js +1 -0
- package/dist/wc/delta_share/p-b0dc0f33.entry.js +1 -0
- package/dist/wc/delta_share/p-bcac4e8a.entry.js +1 -0
- package/dist/wc/delta_share/p-bd5862be.js +1 -0
- package/dist/wc/delta_share/{p-925fc6c3.entry.js → p-bdbd52af.entry.js} +1 -1
- package/dist/wc/delta_share/p-c16ef2ed.js +1 -0
- package/dist/wc/delta_share/{p-0bb97b61.js → p-c176a537.js} +1 -1
- package/dist/wc/delta_share/p-c86f3f18.entry.js +1 -0
- package/dist/wc/delta_share/{p-1009b417.entry.js → p-ca0ad68e.entry.js} +1 -1
- package/dist/wc/delta_share/p-ce9c796f.entry.js +1 -0
- package/dist/wc/delta_share/p-cf49d91e.entry.js +1 -0
- package/dist/wc/delta_share/p-cf520177.entry.js +1 -0
- package/dist/wc/delta_share/p-cfd5d8d9.entry.js +1 -0
- package/dist/wc/delta_share/{p-45dcece4.entry.js → p-d57e2650.entry.js} +1 -1
- package/dist/wc/delta_share/p-d736e782.js +1 -0
- package/dist/wc/delta_share/p-d8592d42.js +1 -0
- package/dist/wc/delta_share/p-d85af2d2.entry.js +1 -0
- package/dist/wc/delta_share/p-d91beeb4.js +1 -0
- package/dist/wc/delta_share/{p-6c54d53f.entry.js → p-db957062.entry.js} +1 -1
- package/dist/wc/delta_share/p-df19c0b3.entry.js +3 -0
- package/dist/wc/delta_share/p-df665c83.entry.js +1 -0
- package/dist/wc/delta_share/p-e27aa743.entry.js +1 -0
- package/dist/wc/delta_share/p-e47768ad.entry.js +1 -0
- package/dist/wc/delta_share/p-e533db54.entry.js +1 -0
- package/dist/wc/delta_share/{p-0aa553ea.entry.js → p-e849b3b3.entry.js} +1 -1
- package/dist/wc/delta_share/p-e9fa5c23.js +1 -0
- package/dist/wc/delta_share/p-ecb09670.js +1 -0
- package/dist/wc/delta_share/p-f366927f.entry.js +1 -0
- package/dist/wc/delta_share/{p-badf3f24.entry.js → p-f6bd0767.js} +1 -1
- package/dist/wc/delta_share/p-f8604cd3.entry.js +1 -0
- package/dist/wc/delta_share/p-fe94390e.entry.js +1 -0
- package/dist/wc/delta_share/{p-5e503d5f.entry.js → p-fff3f7a2.entry.js} +1 -1
- package/dist/wc/esm/breakpoints-3c3dbb8c.js +5 -0
- package/dist/wc/esm/delta_share.js +1 -1
- package/dist/wc/esm/{icons-7a34b033.js → icons-5cd8a05c.js} +30 -0
- package/dist/wc/esm/index-01c34720.js +77 -0
- package/dist/wc/esm/index-23578879.js +19 -0
- package/dist/wc/esm/index-2dfebd9d.js +15 -0
- package/dist/wc/esm/index-474bdeac.js +18 -0
- package/dist/wc/esm/index-4cbd9bd5.js +19 -0
- package/dist/wc/esm/index-5ee15750.js +68 -0
- package/dist/wc/esm/{index-4f1e2705.js → index-6b9f0af9.js} +44 -10
- package/dist/wc/esm/index-7ab3efeb.js +15 -0
- package/dist/wc/esm/index-8304b962.js +65 -0
- package/dist/wc/esm/index-8c51661a.js +19 -0
- package/dist/wc/esm/index-a4bf756b.js +19 -0
- package/dist/wc/esm/index-a4c6be93.js +39 -0
- package/dist/wc/esm/index-a9ad9a02.js +47 -0
- package/dist/wc/esm/index-be1fa551.js +32 -0
- package/dist/wc/esm/index-d0687862.js +27 -0
- package/dist/wc/esm/index-eb1fc2a8.js +15 -0
- package/dist/wc/esm/index-fcff2847.js +20 -0
- package/dist/wc/esm/license-activation_11.entry.js +937 -39
- package/dist/wc/esm/loader.js +1 -1
- package/dist/wc/esm/{utils-5a24a17b.js → utils-90d51f4b.js} +13 -4
- package/dist/wc/esm/{utils-711517a4.js → utils-e64576be.js} +1 -1
- package/dist/wc/esm/z-accordion.entry.js +63 -0
- package/dist/wc/esm/z-anchor-navigation.entry.js +1 -1
- package/dist/wc/esm/z-app-header.entry.js +91 -39
- package/dist/wc/esm/z-aria-alert.entry.js +1 -1
- package/dist/wc/esm/z-avatar.entry.js +1 -1
- package/dist/wc/esm/z-book-card.entry.js +107 -0
- package/dist/wc/esm/z-breadcrumb.entry.js +228 -0
- package/dist/wc/esm/z-button-sort.entry.js +2 -2
- package/dist/wc/esm/z-card.entry.js +6 -19
- package/dist/wc/esm/z-carousel.entry.js +2 -2
- package/dist/wc/esm/z-chip.entry.js +10 -7
- package/dist/wc/esm/z-combobox.entry.js +11 -9
- package/dist/wc/esm/z-contextual-menu.entry.js +5 -5
- package/dist/wc/esm/z-cover-hero.entry.js +24 -7
- package/dist/wc/esm/z-date-picker.entry.js +2 -2
- package/dist/wc/esm/z-divider.entry.js +1 -1
- package/dist/wc/esm/z-file-upload.entry.js +4 -4
- package/dist/wc/esm/z-file.entry.js +2 -2
- package/dist/wc/esm/z-info-reveal.entry.js +1 -1
- package/dist/wc/esm/z-list_3.entry.js +2 -2
- package/dist/wc/esm/z-menu-section.entry.js +11 -3
- package/dist/wc/esm/z-menu.entry.js +26 -14
- package/dist/wc/esm/z-messages-pocket.entry.js +1 -1
- package/dist/wc/esm/z-myz-card-alert.entry.js +1 -1
- package/dist/wc/esm/z-myz-card-dictionary.entry.js +1 -1
- package/dist/wc/esm/z-myz-card-footer.entry.js +15 -3
- package/dist/wc/esm/z-myz-card-icon.entry.js +1 -1
- package/dist/wc/esm/z-myz-card-info.entry.js +3 -3
- package/dist/wc/esm/z-myz-card_4.entry.js +3 -3
- package/dist/wc/esm/z-myz-list-item.entry.js +4 -4
- package/dist/wc/esm/z-navigation-tab-link.entry.js +3 -3
- package/dist/wc/esm/z-navigation-tab.entry.js +3 -3
- package/dist/wc/esm/z-navigation-tabs.entry.js +75 -3
- package/dist/wc/esm/z-offcanvas_2.entry.js +276 -0
- package/dist/wc/esm/z-otp.entry.js +1 -1
- package/dist/wc/esm/z-pagination.entry.js +1 -1
- package/dist/wc/esm/z-pocket_3.entry.js +3 -3
- package/dist/wc/esm/z-popover.entry.js +3 -2
- package/dist/wc/esm/z-range-picker.entry.js +2 -2
- package/dist/wc/esm/z-section-title.entry.js +2 -2
- package/dist/wc/esm/z-select.entry.js +18 -10
- package/dist/wc/esm/z-skip-to-content.entry.js +3 -3
- 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-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-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 +1 -1
- package/dist/wc/esm/z-toast-notification.entry.js +2 -2
- package/dist/wc/esm/z-toggle-button.entry.js +4 -2
- package/dist/wc/esm/z-toggle-switch.entry.js +3 -3
- package/dist/wc/esm/z-tooltip.entry.js +10 -4
- package/dist/wc/esm/z-tr.entry.js +7 -0
- package/dist/wc/types/components/license-activation/license-activation.d.ts +1 -1
- package/package.json +1 -1
- package/dist/wc/cjs/z-app-switcher.cjs.entry.js +0 -29
- 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/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-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-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-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-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-a150a778.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-c229c90e.entry.js +0 -1
- package/dist/wc/delta_share/p-c9df8e5d.entry.js +0 -1
- package/dist/wc/delta_share/p-cf58d833.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-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-offcanvas.entry.js +0 -66
- package/dist/wc/esm/z-searchbar.entry.js +0 -231
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-9ca7d5e5.js');
|
|
6
|
+
const index$1 = require('./index-c0af2262.js');
|
|
7
|
+
const breakpoints = require('./breakpoints-e7c8838e.js');
|
|
8
|
+
const utils = require('./utils-8fd01df0.js');
|
|
9
|
+
|
|
10
|
+
const stylesCss = ":host{--z-book-card-ribbon-background-color:var(--avatar-C08);--z-book-card-ribbon-shadow-color:var(--green950);--z-book-card-compact-width:262px;--z-book-card-compact-height:568px}:host>article{display:block;width:100%;max-width:360px;box-sizing:border-box;border:var(--border-size-medium) solid var(--color-surface03);background-color:var(--color-surface01);border-radius:var(--border-radius);font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>article div.cover{position:relative}:host>article div.cover div.img-wrapper{display:flex;overflow:hidden;border:var(--border-size-small) solid var(--color-surface03);line-height:0}:host>article div.cover div.img-wrapper img{width:auto;max-width:100%;height:auto;max-height:100%;align-self:flex-end}:host>article div.cover div.ribbon{position:absolute;z-index:10;top:calc(var(--space-unit) * 2);left:calc(var(--space-unit) * -2);display:flex;max-width:100%;height:calc(var(--space-unit) * 4);box-sizing:border-box;align-items:center;padding:0 calc(var(--space-unit) * 2);border:var(--border-size-medium) solid var(--color-surface01);background:var(--z-book-card-ribbon-background-color);border-radius:0 var(--border-radius) var(--border-radius) 0;box-shadow:var(--shadow-2);color:var(--color-text04);font-size:var(--font-size-2);font-weight:var(--font-sb);line-height:initial}:host>article div.cover div.ribbon span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:nowrap}:host>article div.cover div.ribbon::before{position:absolute;bottom:-12px;left:-2px;width:0;height:0;border-top:10px solid var(--z-book-card-ribbon-shadow-color);border-left:16px solid transparent;content:\"\"}:host>article div.content{margin:var(--space-unit) 0;border-radius:var(--border-radius)}:host>article .title{display:flex;height:100%;align-self:center;color:var(--color-text02);font-size:var(--font-size-4);font-weight:var(--font-sb);line-height:1.5}:host>article .title *{all:unset}:host>article div.subtitle{color:var(--color-text02);font-size:var(--font-size-2);font-weight:var(--font-rg);line-height:1.4}:host>article div.authors{color:var(--color-text02);font-size:var(--font-size-1);font-weight:var(--font-rg);line-height:1.33}:host>article div.isbn{overflow:hidden;color:var(--color-text02);font-size:var(--font-size-2);line-height:1.33;text-overflow:ellipsis;white-space:nowrap;word-wrap:nowrap}:host>article div.isbn>.code{font-weight:var(--font-sb)}:host>article div.tags{display:flex;overflow:hidden;max-height:32px;flex-flow:row wrap;align-content:stretch;align-items:stretch;justify-content:flex-start;gap:calc(var(--space-unit) / 2)}:host>article ::slotted([slot=\"tags\"]){margin-bottom:var(--space-unit)}:host>article ::slotted([slot=\"header-cta\"]){--z-icon-width:20px;--z-icon-height:20px;padding:var(--space-unit);cursor:pointer;fill:var(--color-icon01)}:host>article.expanded{width:100%;min-width:328px;padding:calc(var(--space-unit) * 2);padding-bottom:0}:host>article.expanded div.header{display:flex;flex-flow:row nowrap;align-content:stretch;align-items:top;justify-content:space-between;margin-bottom:var(--space-unit);white-space:nowrap}:host>article.expanded div.cover div.img-wrapper{border-radius:var(--border-radius)}:host>article.expanded div.cover div.img-wrapper img{width:100%}:host>article.expanded .title,:host>article.expanded .subtitle,:host>article.expanded .authors{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:initial}:host>article.expanded div.footer{border-top:var(--border-size-small) solid var(--color-surface03);margin-bottom:calc(var(--space-unit) * 1.5)}:host>article.expanded div.footer.open{padding-top:calc(var(--space-unit) * 1.5)}:host>article.expanded div.footer.open div.resources{display:initial}:host>article.expanded div.footer.close div.resources{display:none}:host>article.expanded button.show-resources{--z-icon-height:16px;--z-icon-width:16px;all:unset;display:flex;width:100%;flex-flow:row nowrap;align-content:center;align-items:center;justify-content:center;padding:calc(var(--space-unit) * 1) 0;color:var(--color-link-primary);cursor:pointer;fill:var(--color-link-primary);font-size:var(--font-size-2);font-weight:var(--font-sb);gap:var(--space-unit)}:host>article.expanded button.show-resources:focus{box-shadow:var(--shadow-focus-primary)}:host>article.search{width:262px;height:536px;padding:calc(var(--space-unit) * 2);padding-bottom:0}:host>article.search .wrapper-container{display:flex;height:100%;flex-direction:column;justify-content:space-between}:host>article.search .wrapper-container .wrapper{height:451px}:host>article.search .wrapper-container .action-container{padding-bottom:calc(var(--space-unit) * 2);margin:0 auto}:host>article.search div.header{display:flex;height:24px;flex-flow:row nowrap;align-content:stretch;align-items:center;justify-content:space-between;margin-bottom:calc(var(--space-unit) * 1.5);white-space:nowrap}:host>article.search div.cover div.img-wrapper{height:314px;border-radius:var(--border-radius)}:host>article.search .title{display:block;height:initial;align-self:unset;font-size:var(--font-size-3)}:host>article.search .title,:host>article.search .subtitle,:host>article.search .authors{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host>article.compact{width:var(--z-book-card-compact-width);height:var(--z-book-card-compact-height)}:host>article.compact.borderless{border:none}:host>article.compact div.cover div.img-wrapper{width:100%;height:calc(var(--z-book-card-compact-width) * 1.36);box-sizing:border-box;border:none;background:var(--color-white);border-radius:var(--border-radius) var(--border-radius) 0 0;box-shadow:var(--shadow-2)}:host>article.compact div.wrapper{display:flex;height:100%;flex-flow:column nowrap;align-content:stretch;align-items:stretch;justify-content:flex-start}:host>article.compact div.content{display:flex;box-sizing:border-box;flex-flow:column nowrap;align-content:stretch;align-items:stretch;justify-content:space-between;padding:calc(var(--space-unit) * 2);padding-top:var(--space-unit);margin:0}:host>article.compact div.action-container{padding:calc(var(--space-unit) * 2);padding-top:0;margin-top:auto}:host>article.compact.borderless div.cover div.img-wrapper{width:var(--z-book-card-compact-width)}:host>article.compact.borderless div.content{padding:0;padding-top:var(--space-unit)}:host>article.compact.borderless div.action-container{padding:0;padding-bottom:calc(var(--space-unit) * 2)}:host>article.compact .title{display:block;height:initial;align-self:unset}:host>article.compact .title,:host>article.compact .subtitle,:host>article.compact .authors{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:initial}@media (min-width: 768px){:host>article{width:100%;max-width:initial}:host>article .title{display:block;height:initial;align-self:unset}:host>article.expanded{width:100%;min-width:initial;max-width:initial;height:360px;padding:0;border:0}:host>article.expanded div.wrapper{display:flex;flex-flow:row nowrap;align-content:stretch;align-items:stretch;justify-content:flex-start}:host>article.expanded div.cover div.img-wrapper{width:262px;height:356px;border:0;border:var(--border-size-medium) solid var(--color-surface03);border-right:none;background:var(--color-surface01);border-radius:var(--border-radius) 0 0 var(--border-radius)}:host>article.expanded div.cover div.img-wrapper img{width:auto;border-radius:0}:host>article.expanded div.content{display:flex;overflow:hidden;width:100%;height:356px;flex-flow:column nowrap;align-content:stretch;align-items:stretch;justify-content:space-between;border:var(--border-size-medium) solid var(--color-surface03);border-left:none;margin:0;background:var(--color-surface01);border-radius:0 var(--border-radius) var(--border-radius) 0}:host>article.expanded div.content div.top{padding:calc(var(--space-unit) * 2);padding-bottom:0}:host>article.expanded div.content div.top div.info{display:flex;flex-flow:row nowrap;align-content:stretch;align-items:stretch;justify-content:space-between;margin-bottom:calc(var(--space-unit) / 2)}:host>article.expanded div.content div.top div.info>div.left{width:100%}:host>article.expanded div.content div.bottom{padding:calc(var(--space-unit) * 2);padding-bottom:0}}@media (min-width: 1152px){:host>article{width:fit-content;max-width:initial}}@media (min-width: 1366px){:host>article.expanded{width:635px}:host>article.expanded div.content{width:369px}}";
|
|
11
|
+
|
|
12
|
+
const ZBookCard = class {
|
|
13
|
+
constructor(hostRef) {
|
|
14
|
+
index.registerInstance(this, hostRef);
|
|
15
|
+
this.isMobile = false;
|
|
16
|
+
this.hasResources = false;
|
|
17
|
+
this.showResources = false;
|
|
18
|
+
}
|
|
19
|
+
componentWillLoad() {
|
|
20
|
+
this.id = `id-${utils.randomId()}`;
|
|
21
|
+
const mobileMediaQuery = window.matchMedia(`(max-width: ${breakpoints.mobileBreakpoint}px)`);
|
|
22
|
+
this.isMobile = mobileMediaQuery.matches;
|
|
23
|
+
mobileMediaQuery.onchange = (mql) => (this.isMobile = mql.matches);
|
|
24
|
+
}
|
|
25
|
+
componentDidLoad() {
|
|
26
|
+
this.handleResources();
|
|
27
|
+
}
|
|
28
|
+
handleResources() {
|
|
29
|
+
var _a;
|
|
30
|
+
if (this.variant !== index$1.BookCardVariant.EXPANDED || !this.isMobile) {
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
this.hasResources = ((_a = this.hostElement.querySelectorAll("[slot=resources]")) === null || _a === void 0 ? void 0 : _a.length) > 0;
|
|
34
|
+
}
|
|
35
|
+
toggleResources() {
|
|
36
|
+
this.showResources = !this.showResources;
|
|
37
|
+
}
|
|
38
|
+
renderCard() {
|
|
39
|
+
switch (this.variant) {
|
|
40
|
+
case index$1.BookCardVariant.EXPANDED:
|
|
41
|
+
return this.isMobile ? this.renderMobileExpandedCard() : this.renderExpandedCard();
|
|
42
|
+
case index$1.BookCardVariant.COMPACT:
|
|
43
|
+
return this.renderCompactCard();
|
|
44
|
+
case index$1.BookCardVariant.SEARCH:
|
|
45
|
+
return this.renderSearchCard();
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
renderExpandedCard() {
|
|
49
|
+
return (index.h("div", { class: "wrapper" }, this.renderCover(), index.h("div", { class: "content" }, index.h("div", { class: "top" }, index.h("div", { class: "info" }, index.h("div", { class: "left" }, this.renderAuthors(), this.renderOperaTitle(), this.renderVolumeTitle(), this.renderIsbn()), index.h("div", { class: "right" }, this.renderHeaderCtaSlot())), this.renderTagsSlot()), index.h("div", { class: "bottom" }, this.renderResourcesSlot()))));
|
|
50
|
+
}
|
|
51
|
+
renderMobileExpandedCard() {
|
|
52
|
+
return (index.h("div", { class: "wrapper" }, index.h("div", { class: "header" }, this.renderOperaTitle(), this.renderHeaderCtaSlot()), this.renderCover(), index.h("div", { class: "content" }, this.renderTagsSlot(), this.renderAuthors(), this.renderVolumeTitle(), this.renderIsbn()), this.hasResources && (index.h("div", { class: {
|
|
53
|
+
footer: true,
|
|
54
|
+
open: this.showResources,
|
|
55
|
+
close: !this.showResources,
|
|
56
|
+
} }, !this.showResources && this.renderShowResources(), this.renderResourcesSlot(), this.showResources && this.renderShowResources()))));
|
|
57
|
+
}
|
|
58
|
+
renderSearchCard() {
|
|
59
|
+
return (index.h("div", { class: "wrapper-container" }, index.h("div", { class: "wrapper" }, index.h("div", { class: "header" }, this.renderOperaTitle(), this.renderHeaderCtaSlot()), this.renderCover(), index.h("div", { class: "content" }, this.renderTagsSlot(), this.renderAuthors(), this.renderVolumeTitle(), this.renderIsbn())), this.renderFooterCtaSlot()));
|
|
60
|
+
}
|
|
61
|
+
renderCompactCard() {
|
|
62
|
+
return (index.h("div", { class: "wrapper" }, this.renderCover(), index.h("div", { class: "content" }, this.renderAuthors(), this.renderOperaTitle(), this.renderVolumeTitle(), this.renderIsbn()), this.renderFooterCtaSlot()));
|
|
63
|
+
}
|
|
64
|
+
renderCover() {
|
|
65
|
+
return (index.h("div", { class: "cover" }, this.ribbon && this.variant !== index$1.BookCardVariant.COMPACT && (index.h("div", { class: "ribbon" }, index.h("span", null, this.ribbon))), index.h("div", { class: "img-wrapper" }, index.h("img", { src: this.cover, onError: () => {
|
|
66
|
+
if (this.fallbackCover) {
|
|
67
|
+
this.cover = this.fallbackCover;
|
|
68
|
+
}
|
|
69
|
+
}, "aria-hidden": "true" }))));
|
|
70
|
+
}
|
|
71
|
+
renderOperaTitle() {
|
|
72
|
+
const title = this.operaTitleTag
|
|
73
|
+
? `<${this.operaTitleTag}>${this.operaTitle}</${this.operaTitleTag}>`
|
|
74
|
+
: this.operaTitle;
|
|
75
|
+
return (index.h("div", { class: "title", innerHTML: title }));
|
|
76
|
+
}
|
|
77
|
+
renderVolumeTitle() {
|
|
78
|
+
return this.volumeTitle ? index.h("div", { class: "subtitle" }, this.volumeTitle) : null;
|
|
79
|
+
}
|
|
80
|
+
renderAuthors() {
|
|
81
|
+
return this.authors ? (index.h("div", { class: "authors", "aria-description": "Autori" }, this.authors)) : null;
|
|
82
|
+
}
|
|
83
|
+
renderIsbn() {
|
|
84
|
+
return this.isbn ? (index.h("div", { class: "isbn" }, index.h("span", { class: "code", "aria-description": "ISBN edizione cartacea" }, this.isbn), index.h("span", { class: "label" }, " (ed. cartacea)"))) : null;
|
|
85
|
+
}
|
|
86
|
+
renderShowResources() {
|
|
87
|
+
return (index.h("button", { class: "show-resources", "aria-label": `Risorse del libro ${this.operaTitle}`, "aria-expanded": this.showResources.toString(), "aria-controls": `resources-${this.id}`, onClick: () => this.toggleResources() }, this.showResources ? "Chiudi" : "Vedi tutto", index.h("z-icon", { name: this.showResources ? "chevron-up" : "chevron-down" })));
|
|
88
|
+
}
|
|
89
|
+
renderTagsSlot() {
|
|
90
|
+
return (index.h("div", { class: "tags" }, index.h("slot", { name: "tags" })));
|
|
91
|
+
}
|
|
92
|
+
renderHeaderCtaSlot() {
|
|
93
|
+
return index.h("slot", { name: "header-cta" });
|
|
94
|
+
}
|
|
95
|
+
renderResourcesSlot() {
|
|
96
|
+
return (index.h("div", { id: `resources-${this.id}`, class: "resources" }, index.h("slot", { name: "resources", onSlotchange: () => this.handleResources() })));
|
|
97
|
+
}
|
|
98
|
+
renderFooterCtaSlot() {
|
|
99
|
+
return (index.h("div", { class: "action-container" }, index.h("slot", { name: "footer-cta" })));
|
|
100
|
+
}
|
|
101
|
+
render() {
|
|
102
|
+
return (index.h("article", { class: {
|
|
103
|
+
[this.variant]: true,
|
|
104
|
+
borderless: !!this.borderless,
|
|
105
|
+
} }, this.renderCard()));
|
|
106
|
+
}
|
|
107
|
+
get hostElement() { return index.getElement(this); }
|
|
108
|
+
};
|
|
109
|
+
ZBookCard.style = stylesCss;
|
|
110
|
+
|
|
111
|
+
exports.z_book_card = ZBookCard;
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-9ca7d5e5.js');
|
|
6
|
+
const index$1 = require('./index-c0af2262.js');
|
|
7
|
+
const utils = require('./utils-8fd01df0.js');
|
|
8
|
+
require('./breakpoints-e7c8838e.js');
|
|
9
|
+
|
|
10
|
+
const stylesCss = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg);--line-clamp-popover:0;--line-clamp-mobile:1}button{padding:0;border:none;margin:0;background-color:transparent}nav{display:flex;height:30px;align-items:center;padding-left:calc(var(--space-unit) / 2);overflow-x:hidden}li{display:flex;align-items:baseline}:host a:focus,:host button:focus{box-shadow:var(--shadow-focus-primary);outline:0}:host a{color:var(--color-link-primary);font-size:var(--font-size-2);text-decoration:none;white-space:nowrap}:host a.homepage-icon{display:list-item}:host a.homepage-text{display:initial;margin-top:calc(var(--space-unit) / 4);margin-right:var(--space-unit)}:host a.missing-path{color:var(--color-text01)}:host a.text-ellipsis{display:-webkit-box !important;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:var(--line-clamp-mobile);text-overflow:ellipsis;white-space:normal}:host ol{display:flex;padding:0;margin:0;list-style-type:none}:host ol>li:not(:first-child,:last-child){margin-right:var(--space-unit)}nav.underlined>ol>li a:not(.missing-path),nav.underlined>ol>li button{text-decoration:underline}nav.semibold>ol>li a:not(.missing-path),nav.semibold>ol>li button{font-weight:var(--font-sb)}:host z-icon{margin-right:var(--space-unit);--z-icon-width:12px;--z-icon-height:12px}:host button.dots{display:inline-block;color:var(--color-link-primary);cursor:pointer}:host .hidden-paths-popover .popover-content{max-width:302px;padding:calc(var(--space-unit) / 2) var(--space-unit);text-align:left}:host .hidden-paths-popover .popover-content a{font-weight:var(--font-rg);text-decoration:none}:host .hidden-paths-popover{--z-popover-theme--surface:var(--color-surface02);--z-popover-padding:0}:host .hidden-paths-popover::before,.full-path-tooltip::before{--arrow-edge-offset:calc(100% - (var(--space-unit) * 2.55))}:host .full-path-tooltip{--z-popover-theme--surface:var(--color-surface05);--z-popover-theme--text:var(--color-text-inverse);--z-popover-padding:0}:host .tooltip-content{padding:0 var(--space-unit);font-size:var(--font-size-2)}@media (min-width: 768px){:host ol>li+li::before{display:inline-block;width:10px;height:10px;flex:1;margin-right:2px;color:var(--color-disabled03);content:\"\\203A\"}:host a.text-ellipsis{-webkit-line-clamp:var(--line-clamp-popover)}}";
|
|
11
|
+
|
|
12
|
+
const ZBreadcrumb = class {
|
|
13
|
+
constructor(hostRef) {
|
|
14
|
+
index.registerInstance(this, hostRef);
|
|
15
|
+
this.clickOnNode = index.createEvent(this, "clickOnNode", 7);
|
|
16
|
+
/** [optional] Sets the path style */
|
|
17
|
+
this.pathStyle = index$1.BreadcrumbPathStyle.UNDERLINED;
|
|
18
|
+
/** [optional] Variant of first node */
|
|
19
|
+
this.homepageVariant = index$1.BreadcrumbHomepageVariant.ICON;
|
|
20
|
+
/** [optional] Sets max number of element to show */
|
|
21
|
+
this.maxNodesToShow = 5;
|
|
22
|
+
/** [optional] Controls the behaviour on <a> tag click/enter */
|
|
23
|
+
this.preventFollowUrl = false;
|
|
24
|
+
/** [optional] Sets max number of row for each path inside the popover. Zero equals unlimited */
|
|
25
|
+
this.overflowMenuItemRows = 0;
|
|
26
|
+
/** [optional] Sets the maximun number of chars per single node */
|
|
27
|
+
this.truncateChar = 30;
|
|
28
|
+
/** Detect whether the length of the nodes shown exceeds the container length */
|
|
29
|
+
this.hasOverflow = false;
|
|
30
|
+
this.popoverEllipsisOpen = false;
|
|
31
|
+
this.collapsedElements = [];
|
|
32
|
+
this.currentIndex = 0;
|
|
33
|
+
this.truncatePosition = null;
|
|
34
|
+
}
|
|
35
|
+
handleResize() {
|
|
36
|
+
this.viewPortWidth = utils.getDevice();
|
|
37
|
+
if (this.viewPortWidth !== index$1.Device.MOBILE &&
|
|
38
|
+
this.wrapElement &&
|
|
39
|
+
this.wrapElement.scrollWidth > this.wrapElement.clientWidth) {
|
|
40
|
+
this.hasOverflow = true;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
// eslint-disable-next-line lines-between-class-members
|
|
44
|
+
handlePropChange() {
|
|
45
|
+
this.initializeBreadcrumb(this.viewPortWidth === index$1.Device.MOBILE);
|
|
46
|
+
}
|
|
47
|
+
handleResizeUp(newValue, oldValue) {
|
|
48
|
+
if (newValue === index$1.Device.MOBILE ||
|
|
49
|
+
(oldValue === index$1.Device.MOBILE && newValue === index$1.Device.TABLET) ||
|
|
50
|
+
(oldValue === index$1.Device.MOBILE && newValue === index$1.Device.DESKTOP) ||
|
|
51
|
+
(oldValue === index$1.Device.MOBILE && newValue === index$1.Device.DESKTOP_WIDE) ||
|
|
52
|
+
(oldValue === index$1.Device.TABLET && newValue === index$1.Device.DESKTOP) ||
|
|
53
|
+
(oldValue === index$1.Device.TABLET && newValue === index$1.Device.DESKTOP_WIDE) ||
|
|
54
|
+
(oldValue === index$1.Device.DESKTOP && newValue === index$1.Device.DESKTOP_WIDE)) {
|
|
55
|
+
this.initializeBreadcrumb(this.viewPortWidth === index$1.Device.MOBILE);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
componentWillLoad() {
|
|
59
|
+
this.viewPortWidth = utils.getDevice();
|
|
60
|
+
this.initializeBreadcrumb(this.viewPortWidth === index$1.Device.MOBILE);
|
|
61
|
+
}
|
|
62
|
+
componentWillRender() {
|
|
63
|
+
if (this.viewPortWidth !== index$1.Device.MOBILE && this.hasOverflow) {
|
|
64
|
+
this.checkEllipsisOrOverflowMenu();
|
|
65
|
+
this.hasOverflow = false;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
componentDidRender() {
|
|
69
|
+
if (this.collapsedElementsRef) {
|
|
70
|
+
this.anchorElements = Array.from(this.hostElement.shadowRoot.querySelectorAll("z-list-group a"));
|
|
71
|
+
}
|
|
72
|
+
if (this.viewPortWidth !== index$1.Device.MOBILE && this.wrapElement.scrollWidth > this.wrapElement.clientWidth) {
|
|
73
|
+
this.hasOverflow = true;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
initializeBreadcrumb(isMobile) {
|
|
77
|
+
if (isMobile) {
|
|
78
|
+
this.pathsList = this.getPathsItemsList().filter((item) => !!item.path);
|
|
79
|
+
}
|
|
80
|
+
else {
|
|
81
|
+
this.pathsList = this.getPathsItemsList();
|
|
82
|
+
}
|
|
83
|
+
this.totalLenght = this.pathsList.length;
|
|
84
|
+
this.homepageNode = this.pathsList.shift();
|
|
85
|
+
this.pathListCopy = JSON.parse(JSON.stringify(this.pathsList));
|
|
86
|
+
this.collapsedElements = [];
|
|
87
|
+
if (this.totalLenght > this.maxNodesToShow) {
|
|
88
|
+
this.collapsedElements = this.pathsList.splice(0, this.pathsList.length - 2);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
checkEllipsisOrOverflowMenu() {
|
|
92
|
+
if (this.pathListCopy.length > 0) {
|
|
93
|
+
for (let i = 0; i < this.pathsList.length; i++) {
|
|
94
|
+
if (this.pathsList[i].text.length > this.truncateChar) {
|
|
95
|
+
if (this.truncatePosition !== null) {
|
|
96
|
+
if (this.truncatePosition > 0) {
|
|
97
|
+
const arrayToPush = this.pathListCopy.splice(0, this.truncatePosition);
|
|
98
|
+
arrayToPush.forEach((item) => {
|
|
99
|
+
this.collapsedElements.push(item);
|
|
100
|
+
});
|
|
101
|
+
this.pathsList.splice(0, this.truncatePosition);
|
|
102
|
+
this.truncatePosition = 0;
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
if (this.truncatePosition === 0) {
|
|
106
|
+
const arrayToPush = this.pathListCopy.splice(0, this.truncatePosition + 1);
|
|
107
|
+
this.collapsedElements.push(...arrayToPush);
|
|
108
|
+
this.pathsList.splice(0, this.truncatePosition + 1);
|
|
109
|
+
this.truncatePosition = null;
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
if (i !== this.pathsList.length - 1) {
|
|
114
|
+
const truncatedString = this.truncateWithEllipsis(this.pathsList[i].text, this.truncateChar);
|
|
115
|
+
this.currentEllipsisText = this.pathsList[i].text;
|
|
116
|
+
this.pathsList[i].text = truncatedString;
|
|
117
|
+
this.pathsList[i].hasTooltip = true;
|
|
118
|
+
this.truncatePosition = i;
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
truncateWithEllipsis(str, length) {
|
|
126
|
+
const ending = "…";
|
|
127
|
+
if (str.length > length) {
|
|
128
|
+
return str.substring(0, length - 1) + ending;
|
|
129
|
+
}
|
|
130
|
+
return str;
|
|
131
|
+
}
|
|
132
|
+
getPathsItemsList() {
|
|
133
|
+
return Array.from(this.hostElement.children).map((item) => {
|
|
134
|
+
return {
|
|
135
|
+
text: item.textContent,
|
|
136
|
+
path: item.href,
|
|
137
|
+
hasTooltip: false,
|
|
138
|
+
};
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
renderMobileBreadcrumb() {
|
|
142
|
+
const lastPath = this.pathsList[this.pathsList.length - 1];
|
|
143
|
+
return (index.h("nav", { "aria-label": "Breadcrumb", class: {
|
|
144
|
+
underlined: this.pathStyle === index$1.BreadcrumbPathStyle.UNDERLINED,
|
|
145
|
+
semibold: this.pathStyle === index$1.BreadcrumbPathStyle.SEMIBOLD,
|
|
146
|
+
} }, index.h("ol", null, this.renderNode(lastPath, true))));
|
|
147
|
+
}
|
|
148
|
+
renderHomepageNode(item) {
|
|
149
|
+
return (index.h("li", null, index.h("a", { class: {
|
|
150
|
+
"homepage-icon": this.homepageVariant === index$1.BreadcrumbHomepageVariant.ICON,
|
|
151
|
+
"homepage-text": this.homepageVariant === index$1.BreadcrumbHomepageVariant.TEXT,
|
|
152
|
+
}, href: item.path, onClick: (e) => this.handlePreventFollowUrl(e, item) }, this.homepageVariant === index$1.BreadcrumbHomepageVariant.ICON ? (index.h("z-icon", { name: "home", fill: "color-link-primary", height: 16, width: 16 })) : ("Home"))));
|
|
153
|
+
}
|
|
154
|
+
renderNode(item, mobile) {
|
|
155
|
+
return (index.h("li", null, item.hasTooltip && (index.h("z-popover", { class: "full-path-tooltip", "bind-to": this.triggerEllipsis, open: this.popoverEllipsisOpen, position: index$1.PopoverPosition.BOTTOM_RIGHT, closable: false, showArrow: true }, index.h("span", { class: "tooltip-content" }, this.currentEllipsisText))), index.h("a", { class: {
|
|
156
|
+
"missing-path": !item.path,
|
|
157
|
+
"text-ellipsis": mobile,
|
|
158
|
+
}, ref: (val) => (this.triggerEllipsis = val), "aria-current": item.path ? undefined : "page", href: item.path, onClick: (e) => this.handlePreventFollowUrl(e, item), onMouseOver: () => {
|
|
159
|
+
if (item.hasTooltip) {
|
|
160
|
+
this.popoverEllipsisOpen = true;
|
|
161
|
+
}
|
|
162
|
+
}, onMouseLeave: () => {
|
|
163
|
+
if (item.hasTooltip) {
|
|
164
|
+
this.popoverEllipsisOpen = false;
|
|
165
|
+
}
|
|
166
|
+
}, innerHTML: mobile ? `<z-icon fill="color-link-primary" name="chevron-left"></z-icon> ${item.text}` : item.text })));
|
|
167
|
+
}
|
|
168
|
+
renderBreadcrumb() {
|
|
169
|
+
return (index.h("nav", { ref: (val) => (this.wrapElement = val), "aria-label": "Breadcrumb", class: {
|
|
170
|
+
underlined: this.pathStyle === index$1.BreadcrumbPathStyle.UNDERLINED,
|
|
171
|
+
semibold: this.pathStyle === index$1.BreadcrumbPathStyle.SEMIBOLD,
|
|
172
|
+
} }, index.h("ol", null, this.renderHomepageNode(this.homepageNode), this.collapsedElements.length ? this.renderOverflowMenu() : "", this.pathsList.map((item) => this.renderNode(item, false)))));
|
|
173
|
+
}
|
|
174
|
+
togglePopover() {
|
|
175
|
+
if (!this.collapsedElementsRef.open) {
|
|
176
|
+
this.collapsedElementsRef.open = true;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
handlePreventFollowUrl(e, item) {
|
|
180
|
+
if (this.preventFollowUrl) {
|
|
181
|
+
e.preventDefault();
|
|
182
|
+
this.clickOnNode.emit(item.path);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
handleOverflowMenuAccessibility(e) {
|
|
186
|
+
const anchorElementsLenght = this.anchorElements.length;
|
|
187
|
+
if (e.key === index$1.KeyboardCode.TAB) {
|
|
188
|
+
e.preventDefault();
|
|
189
|
+
return;
|
|
190
|
+
}
|
|
191
|
+
e.stopPropagation();
|
|
192
|
+
const arrows = [index$1.KeyboardCode.ARROW_DOWN, index$1.KeyboardCode.ARROW_UP];
|
|
193
|
+
if (arrows.includes(e.key)) {
|
|
194
|
+
e.preventDefault();
|
|
195
|
+
if (e.key === index$1.KeyboardCode.ARROW_DOWN) {
|
|
196
|
+
this.currentIndex = anchorElementsLenght === this.currentIndex + 1 ? 0 : this.currentIndex + 1;
|
|
197
|
+
}
|
|
198
|
+
if (e.key === index$1.KeyboardCode.ARROW_UP) {
|
|
199
|
+
this.currentIndex = this.currentIndex <= 0 ? anchorElementsLenght - 1 : this.currentIndex - 1;
|
|
200
|
+
}
|
|
201
|
+
this.anchorElements[this.currentIndex].focus();
|
|
202
|
+
}
|
|
203
|
+
if (e.key === index$1.KeyboardCode.ESC) {
|
|
204
|
+
this.triggerButton.focus();
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
renderOverflowMenu() {
|
|
208
|
+
if (this.collapsedElements.length) {
|
|
209
|
+
return (index.h("li", null, index.h("z-popover", { class: "hidden-paths-popover", ref: (val) => (this.collapsedElementsRef = val), "bind-to": this.triggerButton, position: index$1.PopoverPosition.BOTTOM_RIGHT, closable: true, showArrow: true }, index.h("div", { class: "popover-content" }, index.h("z-list", null, index.h("z-list-group", { size: index$1.ListSize.SMALL }, this.collapsedElements.map((item, index$1, array) => {
|
|
210
|
+
return (index.h("div", null, index.h("z-list-element", { clickable: true }, index.h("a", { class: "text-ellipsis", href: item.path, onClick: (e) => this.handlePreventFollowUrl(e, item), onKeyDown: (e) => this.handleOverflowMenuAccessibility(e) }, item.text)), index$1 < array.length - 1 && index.h("z-divider", { color: "color-surface03" })));
|
|
211
|
+
}))))), index.h("button", { "aria-label": "Mostra pi\u00F9 breadcrumb", "aria-haspopup": "true", ref: (el) => (this.triggerButton = el), class: "dots", onClick: () => {
|
|
212
|
+
this.togglePopover();
|
|
213
|
+
}, onKeyDown: (e) => {
|
|
214
|
+
utils.handleKeyboardSubmit(e, this.togglePopover.bind(this));
|
|
215
|
+
setTimeout(() => {
|
|
216
|
+
this.anchorElements[0].focus();
|
|
217
|
+
}, 100);
|
|
218
|
+
} }, "...")));
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
render() {
|
|
222
|
+
return (index.h(index.Host, { style: { "--line-clamp-popover": `${this.overflowMenuItemRows}` } }, this.viewPortWidth === index$1.Device.MOBILE ? this.renderMobileBreadcrumb() : this.renderBreadcrumb()));
|
|
223
|
+
}
|
|
224
|
+
get hostElement() { return index.getElement(this); }
|
|
225
|
+
static get watchers() { return {
|
|
226
|
+
"maxNodesToShow": ["handlePropChange"],
|
|
227
|
+
"viewPortWidth": ["handleResizeUp"]
|
|
228
|
+
}; }
|
|
229
|
+
};
|
|
230
|
+
ZBreadcrumb.style = stylesCss;
|
|
231
|
+
|
|
232
|
+
exports.z_breadcrumb = ZBreadcrumb;
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-9ca7d5e5.js');
|
|
6
|
-
const breakpoints = require('./breakpoints-
|
|
6
|
+
const breakpoints = require('./breakpoints-e7c8838e.js');
|
|
7
7
|
|
|
8
|
-
const stylesCss = ":host,button{max-width:100%}button{height:36px;padding:0 var(--space-unit);border:var(--border-size-medium) solid var(--myz-blue);background-color:var(--bg-white);border-radius:var(--border-radius);color:var(--myz-blue);cursor:pointer;fill:var(--myz-blue);outline:none}button::-moz-focus-inner{border:0}button:hover{border-color:var(--myz-blue-dark);color:var(--myz-blue-dark);fill:var(--myz-blue-dark)}button:focus{border-color:var(--myz-blue);box-shadow:
|
|
8
|
+
const stylesCss = ":host,button{max-width:100%}button{height:36px;padding:0 var(--space-unit);border:var(--border-size-medium) solid var(--myz-blue);background-color:var(--bg-white);border-radius:var(--border-radius);color:var(--myz-blue);cursor:pointer;fill:var(--myz-blue);outline:none}button::-moz-focus-inner{border:0}button:hover{border-color:var(--myz-blue-dark);color:var(--myz-blue-dark);fill:var(--myz-blue-dark)}button:focus{border-color:var(--myz-blue);box-shadow:var(--shadow-focus-primary);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.selected{border-color:var(--myz-blue-dark);background-color:var(--myz-blue-dark);color:var(--bg-white);fill:var(--bg-white)}button>label{display:flex;align-items:center;cursor:pointer;font-family:var(--dashboard-font);font-size:14px;font-weight:var(--font-sb)}button>label>span.ellipsis{overflow:hidden;padding:0;margin:0;text-overflow:ellipsis;white-space:nowrap}button>label>span.counter{margin-right:calc(var(--space-unit) * 2);margin-left:calc(var(--space-unit) / 2)}button>label>span.sort{margin-right:var(--half-x1);white-space:nowrap}button>span{margin-right:calc(var(--space-unit) * 0.5);font-family:var(--dashboard-font);font-size:14px;font-weight:var(--font-rg)}button>z-icon{padding-top:calc(var(--space-unit) * 0.5)}@media only screen and (min-width: 768px){:host,button{max-width:325px}}@media only screen and (min-width: 1025px){:host,button{max-width:490px}}";
|
|
9
9
|
|
|
10
10
|
const ZButtonSort = class {
|
|
11
11
|
constructor(hostRef) {
|
|
@@ -3,30 +3,17 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-9ca7d5e5.js');
|
|
6
|
-
const index$1 = require('./index-
|
|
6
|
+
const index$1 = require('./index-c0af2262.js');
|
|
7
7
|
|
|
8
|
-
const stylesCss = ":host{--aspect-ratio:1.62;--z-card--border-color:var(--gray200);--z-card--color-cover-background:var(--color-surface01);--z-card--text-background:var(--color-surface01);--z-card--text-border-radius:none;--z-card--text-border:none;position:relative;display:flex;flex-direction:column;font-family:var(--font-family-sans);font-weight:var(--font-rg)}*,::slotted(*){box-sizing:border-box}:host(:not([variant=\"overlay\"])) .cover-container{position:relative;width:100%}.cover-container{padding-bottom:calc(100% / var(--aspect-ratio))}::slotted([slot=\"cover\"]),.color-cover{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:center}.cover-container>z-icon{--z-icon-width:calc(var(--space-unit) * 11);--z-icon-height:var(--z-icon-width);position:absolute;top:calc(50% - calc(var(--z-icon-height) / 2));left:calc(50% - calc(var(--z-icon-width) / 2));fill:var(--color-primary01)}.color-cover{background-color:var(--z-card--color-cover-background)}.content{display:flex;flex-direction:column;padding-top:var(--space-unit)}.color-cover .cover-content{display:flex;height:100%;flex-direction:column;justify-content:flex-end;padding:var(--space-unit)}::slotted([slot=\"metadata\"]),::slotted([slot=\"title\"]),::slotted([slot=\"text\"]){display:box;overflow:hidden;-webkit-box-orient:vertical}::slotted([slot=\"title\"]:not(:last-child)),::slotted([slot=\"text\"]:not(:last-child)){margin-bottom:var(--space-unit)}::slotted([slot=\"
|
|
8
|
+
const stylesCss = ":host{--aspect-ratio:1.62;--z-card--border-color:var(--gray200);--z-card--color-cover-background:var(--color-surface01);--z-card--text-background:var(--color-surface01);--z-card--text-border-radius:none;--z-card--text-border:none;--z-card--text-padding:calc(var(--space-unit) * 2) var(--space-unit);position:relative;display:flex;flex-direction:column;font-family:var(--font-family-sans);font-weight:var(--font-rg)}*,::slotted(*){box-sizing:border-box}:host(:not([variant=\"overlay\"])) .cover-container{position:relative;width:100%}.cover-container{padding-bottom:calc(100% / var(--aspect-ratio))}::slotted([slot=\"cover\"]),.color-cover{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:center}.cover-container>z-icon{--z-icon-width:calc(var(--space-unit) * 11);--z-icon-height:var(--z-icon-width);position:absolute;top:calc(50% - calc(var(--z-icon-height) / 2));left:calc(50% - calc(var(--z-icon-width) / 2));fill:var(--color-primary01)}.color-cover{background-color:var(--z-card--color-cover-background)}.content{display:flex;flex-direction:column;padding-top:var(--space-unit)}.color-cover .cover-content{display:flex;height:100%;flex-direction:column;justify-content:flex-end;padding:var(--space-unit)}::slotted([slot=\"metadata\"]),::slotted([slot=\"title\"]),::slotted([slot=\"text\"]){display:box;overflow:hidden;-webkit-box-orient:vertical}::slotted([slot=\"title\"]:not(:last-child)),::slotted([slot=\"text\"]:not(:last-child)){margin-bottom:var(--space-unit)}::slotted([slot=\"title\"])::before{position:absolute;z-index:1;top:0;right:0;bottom:0;left:0;content:\"\"}::slotted([slot=\"metadata\"]:not(:last-child)){margin:0 0 calc(var(--space-unit) * 0.25);-webkit-line-clamp:1;text-transform:uppercase}::slotted([slot=\"title\"]){margin:0;color:inherit;font-size:inherit;font-weight:var(--font-sb);-webkit-line-clamp:2;text-decoration:none}::slotted([slot=\"text\"]){margin:0;-webkit-line-clamp:3}.actions{position:relative;z-index:2;display:flex;width:fit-content;flex-direction:row;align-items:center}::slotted([slot=\"action\"]:not(:last-child)){margin-right:calc(var(--space-unit) * 2)}:host([clickable]) ::slotted([slot=\"title\"]:focus:focus-visible)::before{box-shadow:var(--shadow-focus-primary)}:host([clickable]) ::slotted([slot=\"title\"]:focus:focus-visible){outline:none}:host([variant=\"text\"]){border:var(--z-card--text-border);background-color:var(--z-card--text-background);border-radius:var(--z-card--text-border-radius)}:host([show-shadow])>.content,:host([variant=\"border\"])>.content,:host([variant=\"shadow\"])>.content{height:100%;padding:var(--space-unit) var(--space-unit) calc(var(--space-unit) * 2)}:host([variant=\"text\"])>.content{padding:var(--z-card--text-padding)}:host([variant=\"border\"]) .actions,:host([variant=\"shadow\"]) .actions{margin-top:auto}:host([variant=\"border\"]){border:var(--border-size-small) solid var(--z-card--border-color)}:host([variant=\"border\"][clickable]:hover)>.content{background:var(--color-background)}:host([variant=\"border\"][clickable]:focus:focus-visible){box-shadow:var(--shadow-focus-primary)}:host([variant=\"border\"][clickable]:active){border-color:transparent}:host([variant=\"shadow\"]),:host([show-shadow]){box-shadow:var(--shadow-2)}:host([variant=\"shadow\"][clickable]:hover),:host([clickable][show-shadow]:hover){box-shadow:var(--shadow-4)}:host([variant=\"shadow\"][clickable]:focus:focus-visible),:host([clickable][show-shadow]:focus:focus-visible){box-shadow:var(--shadow-focus-primary)}:host([variant=\"shadow\"][clickable]:active),:host([clickable][show-shadow]:active){box-shadow:none}:host([variant=\"overlay\"]) .content{position:absolute;top:0;right:0;bottom:0;left:0;justify-content:flex-end;padding:var(--space-unit);background-image:linear-gradient(to top, rgb(0 0 0 / 100%), rgb(0 0 0 / 0%));color:var(--color-text-inverse);fill:var(--color-text-inverse)}";
|
|
9
9
|
|
|
10
10
|
const ZCard = class {
|
|
11
11
|
constructor(hostRef) {
|
|
12
12
|
index.registerInstance(this, hostRef);
|
|
13
|
-
this.cardClicked = index.createEvent(this, "cardClicked", 7);
|
|
14
|
-
/** Enable click interactions on the card. Default: false */
|
|
15
|
-
this.clickable = false;
|
|
16
13
|
/** Enable shadow. Default: false. */
|
|
17
|
-
this.
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
// Do nothing for clicks on actions.
|
|
21
|
-
if (ev.target.getAttribute("slot") === "action") {
|
|
22
|
-
return;
|
|
23
|
-
}
|
|
24
|
-
if (!this.clickable) {
|
|
25
|
-
ev.preventDefault();
|
|
26
|
-
ev.stopPropagation();
|
|
27
|
-
return;
|
|
28
|
-
}
|
|
29
|
-
this.cardClicked.emit();
|
|
14
|
+
this.showShadow = false;
|
|
15
|
+
/** Enable 'clickable' style like hover and focus style. */
|
|
16
|
+
this.clickable = false;
|
|
30
17
|
}
|
|
31
18
|
componentWillLoad() {
|
|
32
19
|
this.hasCoverImage = this.host.querySelector('[slot="cover"]') !== null;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-9ca7d5e5.js');
|
|
6
|
-
const index$1 = require('./index-
|
|
6
|
+
const index$1 = require('./index-c0af2262.js');
|
|
7
7
|
|
|
8
8
|
const stylesCss = "z-carousel{font-family:var(--font-family-sans);font-weight:var(--font-rg);--z-carousel-gutter:0}z-carousel[single],z-carousel[single=\"true\"]{display:flex;flex-direction:column;align-items:center;justify-content:center}z-carousel[single=\"true\"] .z-carousel-container,z-carousel[single] .z-carousel-container{width:fit-content;max-width:100%}z-carousel .loading-items-container{display:none}z-carousel .z-carousel-container{display:flex;flex-direction:column}z-carousel .z-carousel-wrapper{position:relative}z-carousel .z-carousel-title{margin-bottom:var(--space-unit);color:var(--gray800)}z-carousel .z-carousel-items-container{display:flex;max-width:100%;flex-direction:row;margin:0;list-style:none;-ms-overflow-style:none;overflow-x:scroll;padding-inline-start:0;scroll-snap-type:x mandatory;scrollbar-width:none;}z-carousel .z-carousel-items-container::-webkit-scrollbar{display:none}z-carousel .z-carousel-items-container>*:not(:last-child){margin-right:var(--z-carousel-gutter)}z-carousel[single=\"true\"] .z-carousel-items-container>*:not(:last-child),z-carousel[single] .z-carousel-items-container>*:not(:last-child){margin-right:0}z-carousel .z-carousel-items-container>li{scroll-snap-align:center}z-button[data-direction]{--z-icon-width:32px;--z-icon-height:32px;position:absolute;bottom:50%;transform:translateY(50%)}z-button[data-direction=\"next\"]{right:0}z-carousel .z-carousel-footer{display:flex;flex-direction:row;align-items:center;justify-content:center;margin-top:var(--space-unit)}z-carousel .z-carousel-footer .numbers-progress,z-carousel .z-carousel-footer .dots-progress{display:flex;align-items:center;justify-content:center}z-carousel .z-carousel-footer .dots-progress button{display:flex;align-items:center;padding:0;border:none;margin:0;background-color:transparent}z-carousel .z-carousel-footer .dots-progress button:not(.current){cursor:pointer}z-carousel .z-carousel-footer .numbers-progress{margin:0 calc(var(--space-unit) / 2);column-gap:calc(var(--space-unit) / 2)}z-carousel .z-carousel-footer .numbers-progress .current{font-weight:var(--font-sb)}z-carousel .z-carousel-footer .dots-progress button.current z-icon{fill:var(--gray800)}z-carousel .z-carousel-footer .dots-progress button:not(.current) z-icon{fill:var(--gray200)}";
|
|
9
9
|
|
|
@@ -122,7 +122,7 @@ const ZCarousel = class {
|
|
|
122
122
|
if (!this.itemsContainer) {
|
|
123
123
|
return;
|
|
124
124
|
}
|
|
125
|
-
this.items = Array.from(this.itemsContainer.querySelectorAll("li"));
|
|
125
|
+
this.items = Array.from(this.itemsContainer.querySelectorAll(":scope > li"));
|
|
126
126
|
if (this.single) {
|
|
127
127
|
this.setIntersectionObserver();
|
|
128
128
|
}
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-9ca7d5e5.js');
|
|
6
|
-
const index$1 = require('./index-
|
|
7
|
-
const utils = require('./utils-
|
|
8
|
-
require('./breakpoints-
|
|
6
|
+
const index$1 = require('./index-c0af2262.js');
|
|
7
|
+
const utils = require('./utils-8fd01df0.js');
|
|
8
|
+
require('./breakpoints-e7c8838e.js');
|
|
9
9
|
|
|
10
|
-
const stylesCss = ".sc-z-chip-h
|
|
10
|
+
const stylesCss = ".sc-z-chip-h>.z-chip-container.sc-z-chip{display:inline-flex;align-items:center;padding:0 calc(var(--space-unit) * 1.5);border:var(--border-size-small) solid var(--gray400);background-color:var(--bg-white);border-radius:14px;color:var(--text-grey-800);fill:var(--text-grey-800);font-family:var(--dashboard-font);font-size:14px;font-weight:var(--font-sb)}.sc-z-chip-h>.z-chip-container.sc-z-chip:not([aria-disabled]) button.sc-z-chip>z-icon.sc-z-chip:last-child:hover{color:var(--color-hover-primary);fill:var(--color-hover-primary)}.sc-z-chip-h>.z-chip-container.sc-z-chip:hover:not([aria-disabled])>z-icon.sc-z-chip:first-child{fill:var(--color-icon02)}.sc-z-chip-h>.z-chip-container.sc-z-chip>button.sc-z-chip{padding:0;border:none;margin-left:var(--space-unit);background-color:transparent;cursor:pointer}.sc-z-chip-h>.z-chip-container.sc-z-chip>z-icon.icon-sx.sc-z-chip{margin-right:calc(var(--space-unit) / 2)}.sc-z-chip-h>.z-chip-container.sc-z-chip>button.sc-z-chip>z-icon.sc-z-chip:last-child{fill:var(--color-primary01)}.sc-z-chip-h>.z-chip-container[aria-disabled].sc-z-chip,.sc-z-chip-h>.z-chip-container[aria-disabled].sc-z-chip>z-icon.sc-z-chip,.sc-z-chip-h>.z-chip-container[aria-disabled].sc-z-chip>button.sc-z-chip>z-icon.sc-z-chip{color:var(--color-disabled03);fill:var(--color-disabled03)}.sc-z-chip-h>.z-chip-container[aria-disabled].sc-z-chip>button.sc-z-chip>z-icon.sc-z-chip{cursor:auto}.sc-z-chip-h>.z-chip-container[aria-disabled].sc-z-chip{border:var(--border-size-small) solid var(--color-disabled01)}.sc-z-chip-h>.z-chip-container.sc-z-chip>button.sc-z-chip:focus:focus-visible{border-radius:100%;box-shadow:var(--shadow-focus-primary);outline:none}.sc-z-chip-h>button.sc-z-chip:hover:not(:disabled):active:hover>button.sc-z-chip>z-icon.sc-z-chip:last-child{color:var(--color-primary01);fill:var(--color-primary01)}.sc-z-chip-h>div.sc-z-chip{display:inline-flex;min-height:28px;align-items:center;padding:0 calc(var(--space-unit) * 1.5);border:var(--border-size-small) solid var(--bg-grey-200);background-color:var(--bg-white);border-radius:14px;color:var(--text-grey-800);fill:var(--text-grey-800);font-family:var(--dashboard-font);font-size:14px;line-height:28px}.sc-z-chip-h>div.sc-z-chip>z-icon.sc-z-chip{margin-right:calc(var(--space-unit) / 2)}.sc-z-chip-h>.z-chip-container.default.sc-z-chip,.sc-z-chip-h>div.default.sc-z-chip{min-height:44px;border-radius:22px;line-height:44px}.sc-z-chip-h>.z-chip-container.medium.sc-z-chip,.sc-z-chip-h>div.medium.sc-z-chip{min-height:40px;border-radius:22px;line-height:40px}.sc-z-chip-h>.z-chip-container.small.sc-z-chip,.sc-z-chip-h>div.small.sc-z-chip{min-height:36px;border-radius:22px;line-height:36px}@media only screen and (min-width: 1152px){.sc-z-chip-h>.z-chip-container.sc-z-chip{font-size:12px}.sc-z-chip-h>div.sc-z-chip{font-size:12px}.sc-z-chip-h>.z-chip-container.default.sc-z-chip,.sc-z-chip-h>div.default.sc-z-chip{min-height:32px;border-radius:16px;line-height:32px}.sc-z-chip-h>.z-chip-container.medium.sc-z-chip,.sc-z-chip-h>div.medium.sc-z-chip{min-height:28px;border-radius:16px;line-height:28px}.sc-z-chip-h>.z-chip-container.small.sc-z-chip,.sc-z-chip-h>div.small.sc-z-chip{min-height:24px;border-radius:16px;line-height:24px}}";
|
|
11
11
|
|
|
12
12
|
const ZChip = class {
|
|
13
13
|
constructor(hostRef) {
|
|
@@ -17,18 +17,21 @@ const ZChip = class {
|
|
|
17
17
|
this.type = index$1.ZChipType.DEFAULT;
|
|
18
18
|
/** set z-chip as disabled */
|
|
19
19
|
this.disabled = false;
|
|
20
|
+
/** z-chip aria-label string */
|
|
21
|
+
this.ariaLabel = "";
|
|
20
22
|
}
|
|
21
23
|
emitinteractiveIconClick() {
|
|
22
24
|
this.interactiveIconClick.emit();
|
|
23
25
|
}
|
|
24
26
|
getIconSize() {
|
|
25
|
-
return utils.getDevice() !== index$1.Device.DESKTOP ? 22 : 14;
|
|
27
|
+
return utils.getDevice() !== index$1.Device.DESKTOP && utils.getDevice() !== index$1.Device.DESKTOP_WIDE ? 22 : 14;
|
|
26
28
|
}
|
|
27
29
|
render() {
|
|
28
30
|
if (this.interactiveIcon) {
|
|
29
|
-
return (index.h("
|
|
31
|
+
return (index.h("div", { class: `z-chip-container ${this.type}`, "aria-disabled": this.disabled }, this.icon && (index.h("z-icon", { class: "icon-sx", name: this.icon, width: this.getIconSize(), height: this.getIconSize() })), index.h("slot", null), index.h("button", { type: "button", onClick: () => this.emitinteractiveIconClick(), onKeyUp: () => {
|
|
32
|
+
}, "aria-label": this.ariaLabel, disabled: this.disabled }, index.h("z-icon", { name: this.interactiveIcon, width: this.getIconSize(), height: this.getIconSize() }))));
|
|
30
33
|
}
|
|
31
|
-
return (index.h("div", { class: `${this.type}
|
|
34
|
+
return (index.h("div", { class: `${this.type}` }, this.icon && (index.h("z-icon", { name: this.icon, width: this.getIconSize(), height: this.getIconSize() })), index.h("slot", null)));
|
|
32
35
|
}
|
|
33
36
|
get el() { return index.getElement(this); }
|
|
34
37
|
};
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-9ca7d5e5.js');
|
|
6
|
-
const index$1 = require('./index-
|
|
7
|
-
const utils = require('./utils-
|
|
8
|
-
require('./breakpoints-
|
|
6
|
+
const index$1 = require('./index-c0af2262.js');
|
|
7
|
+
const utils = require('./utils-8fd01df0.js');
|
|
8
|
+
require('./breakpoints-e7c8838e.js');
|
|
9
9
|
|
|
10
|
-
const stylesCss = ":host{display:block}:host>div.fixed{position:relative}:host>div>.header{position:relative;z-index:10;display:flex;min-height:42px;align-items:center;justify-content:space-between;padding:0 calc(var(--space-unit) * 1.5);border:var(--border-size-small) solid var(--bg-grey-700);margin:0;background-color:var(--bg-white);border-radius:var(--border-radius-small);cursor:pointer}:host>div>.header:hover{outline:var(--border-size-medium) solid var(--gray700);outline-offset:-2px}:host>div.open>div.header:focus:focus-visible{box-shadow:none}:host>div>div.header:focus:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none}:host>div>.header>p.body-3{padding:var(--space-unit) 0;margin:0;color:var(--text-grey-800)}:host>div>.header>p.body-3>span{font-weight:var(--font-sb)}:host>div>.header>z-icon{fill:var(--text-grey-800);transform:rotate(360deg);transition:all 200ms linear}:host>div.open>.header{border:var(--border-size-small) solid var(--blue500);border-radius:var(--border-radius-small) var(--border-radius-small) 0 0}:host>div.disabled{pointer-events:none}:host>div.disabled .header{border-color:var(--color-disabled01);fill:var(--color-disabled01)}:host>div.disabled .header>p.body-3{color:var(--text-grey-700)}:host>div.disabled .header>z-icon:last-child{fill:var(--color-disabled01)}:host>div.open>.header>z-icon{fill:var(--text-grey-800);transform:rotate(180deg);transition:all 200ms linear}:host>div.open>div.open-combo-data{position:relative;z-index:12;padding:var(--space-unit) calc(var(--space-unit) * 2);border:var(--border-size-small) solid var(--gray200);border-top:0;background-color:var(--bg-white);border-radius:0}:host>div.open>div.open-combo-data>div{overflow:auto;max-height:235px;padding:0;scrollbar-color:var(--myz-blue) var(--gray200);scrollbar-width:thin}:host>div.open>div.open-combo-data>z-input{width:100%;margin-bottom:calc(var(--space-unit) * 2)}:host>div.open>div.open-combo-data>div>ul{max-height:235px;padding:0 3px;margin:0}::-webkit-scrollbar{width:10px;background:linear-gradient(90deg, var(--bg-white) 2px, var(--bg-grey-200) 4px, var(--bg-white) 8px);border-radius:var(--border-radius)}::-webkit-scrollbar-thumb{width:10px;background-color:var(--myz-blue);border-radius:var(--border-radius)}:host>div.open>z-input{position:relative;z-index:1;width:238px;margin:0 calc(var(--space-unit) * 2);color:var(--myz-blue)}:host>div.open>div.open-combo-data>div.search{overflow:hidden;max-height:auto;margin-top:0;box-shadow:1px 1px 4px 2px rgb(217 222 227 / 50%)}:host>div.open>div.open-combo-data>div.search>ul{overflow:auto;max-height:180px;padding:var(--space-unit) calc(var(--space-unit) * 2);scrollbar-color:var(--myz-blue) var(--bg-grey-200);scrollbar-width:thin}:host>div.open>div.open-combo-data>div.search>div{display:flex;justify-content:center}:host>div.open>div.open-combo-data>div.search>div>a{display:inline-block;height:44px;color:var(--myz-blue);cursor:pointer;font-family:var(--dashboard-font);font-size:14px;font-weight:var(--font-sb);line-height:44px;text-align:center;text-transform:uppercase}:host>div.open>div.open-combo-data>div.check-all-wrapper{padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 0.5);border-bottom:var(--border-size-small) solid var(--gray800);margin-bottom:var(--space-unit);text-align:left}";
|
|
10
|
+
const stylesCss = ":host{display:block}:host>div.fixed{position:relative}:host>div>.header{position:relative;z-index:10;display:flex;min-height:42px;align-items:center;justify-content:space-between;padding:0 calc(var(--space-unit) * 1.5);border:var(--border-size-small) solid var(--bg-grey-700);margin:0;background-color:var(--bg-white);border-radius:var(--border-radius-small);cursor:pointer}:host([size=\"small\"])>div>.header{min-height:34px;font-size:var(--font-size-2)}:host([size=\"x-small\"])>div>.header{min-height:30px;font-size:var(--font-size-2)}:host([size=\"x-small\"])>div>.header p.body-3{padding:calc(var(--space-unit) * 0.5) 0}:host>div>.header:hover{outline:var(--border-size-medium) solid var(--gray700);outline-offset:-2px}:host>div.open>div.header:focus:focus-visible{box-shadow:none}:host>div>div.header:focus:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none}:host>div>.header>p.body-3{padding:var(--space-unit) 0;margin:0;color:var(--text-grey-800)}:host>div>.header>p.body-3>span{font-weight:var(--font-sb)}:host>div>.header>z-icon{fill:var(--text-grey-800);transform:rotate(360deg);transition:all 200ms linear}:host>div>.header>z-icon.small,:host>div>.header>z-icon.x-small{--z-icon-width:16px;--z-icon-height:16px}:host>div.open>.header{border:var(--border-size-small) solid var(--blue500);border-radius:var(--border-radius-small) var(--border-radius-small) 0 0}:host>div.disabled{pointer-events:none}:host>div.disabled .header{border-color:var(--color-disabled01);fill:var(--color-disabled01)}:host>div.disabled .header>p.body-3{color:var(--text-grey-700)}:host>div.disabled .header>z-icon:last-child{fill:var(--color-disabled01)}:host>div.open>.header>z-icon{fill:var(--text-grey-800);transform:rotate(180deg);transition:all 200ms linear}:host>div.open>div.open-combo-data{position:relative;z-index:12;padding:var(--space-unit) calc(var(--space-unit) * 2);border:var(--border-size-small) solid var(--gray200);border-top:0;background-color:var(--bg-white);border-radius:0}:host>div.open>div.open-combo-data>div{overflow:auto;max-height:235px;padding:0;scrollbar-color:var(--myz-blue) var(--gray200);scrollbar-width:thin}:host>div.open>div.open-combo-data>z-input{width:100%;margin-bottom:calc(var(--space-unit) * 2)}:host>div.open>div.open-combo-data>div>ul{max-height:235px;padding:0 3px;margin:0}::-webkit-scrollbar{width:10px;background:linear-gradient(90deg, var(--bg-white) 2px, var(--bg-grey-200) 4px, var(--bg-white) 8px);border-radius:var(--border-radius)}::-webkit-scrollbar-thumb{width:10px;background-color:var(--myz-blue);border-radius:var(--border-radius)}:host>div.open>z-input{position:relative;z-index:1;width:238px;margin:0 calc(var(--space-unit) * 2);color:var(--myz-blue)}:host>div.open>div.open-combo-data>div.search{overflow:hidden;max-height:auto;margin-top:0;box-shadow:1px 1px 4px 2px rgb(217 222 227 / 50%)}:host>div.open>div.open-combo-data>div.search>ul{overflow:auto;max-height:180px;padding:var(--space-unit) calc(var(--space-unit) * 2);scrollbar-color:var(--myz-blue) var(--bg-grey-200);scrollbar-width:thin}:host>div.open>div.open-combo-data>div.search>div{display:flex;justify-content:center}:host>div.open>div.open-combo-data>div.search>div>a{display:inline-block;height:44px;color:var(--myz-blue);cursor:pointer;font-family:var(--dashboard-font);font-size:14px;font-weight:var(--font-sb);line-height:44px;text-align:center;text-transform:uppercase}:host>div.open>div.open-combo-data>div.check-all-wrapper{padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 0.5);border-bottom:var(--border-size-small) solid var(--gray800);margin-bottom:var(--space-unit);text-align:left}:host([size=\"small\"])>div.open>div.open-combo-data>div.check-all-wrapper{padding:calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 0.5)}:host([size=\"x-small\"])>div.open>div.open-combo-data>div.check-all-wrapper{padding:var(--space-unit) calc(var(--space-unit) * 0.5)}";
|
|
11
11
|
|
|
12
12
|
const ZCombobox = class {
|
|
13
13
|
constructor(hostRef) {
|
|
@@ -33,6 +33,8 @@ const ZCombobox = class {
|
|
|
33
33
|
this.uncheckalltext = "Deseleziona tutti";
|
|
34
34
|
/** max number of checkable items (0 = unlimited) */
|
|
35
35
|
this.maxcheckableitems = 0;
|
|
36
|
+
/** Available sizes: `big`, `small` and `x-small`. Defaults to `big`. */
|
|
37
|
+
this.size = index$1.ControlSize.BIG;
|
|
36
38
|
this.renderItemsList = []; // used for render only
|
|
37
39
|
this.itemsList = [];
|
|
38
40
|
this.inputType = index$1.InputType.TEXT;
|
|
@@ -117,7 +119,7 @@ const ZCombobox = class {
|
|
|
117
119
|
if (ev.keyCode === index$1.KeyboardKeyCode.SPACE) {
|
|
118
120
|
ev.preventDefault();
|
|
119
121
|
}
|
|
120
|
-
}, onKeyUp: (ev) => utils.handleKeyboardSubmit(ev, this.toggleComboBox), role: "button", tabindex: 0 }, index.h("p", { class: "body-3" }, this.label, index.h("span", null, this.selectedCounter > 0 && ` (${this.selectedCounter})`)), index.h("z-icon", { name: "caret-down",
|
|
122
|
+
}, onKeyUp: (ev) => utils.handleKeyboardSubmit(ev, this.toggleComboBox), role: "button", tabindex: 0 }, index.h("p", { class: "body-3" }, this.label, index.h("span", null, this.selectedCounter > 0 && ` (${this.selectedCounter})`)), index.h("z-icon", { name: "caret-down", class: this.size })));
|
|
121
123
|
}
|
|
122
124
|
renderContent() {
|
|
123
125
|
if (!this.isopen) {
|
|
@@ -132,7 +134,7 @@ const ZCombobox = class {
|
|
|
132
134
|
return (index.h("div", { class: this.searchValue && "search", tabindex: -1 }, this.renderList(this.renderItemsList), this.searchValue && this.renderCloseButton()));
|
|
133
135
|
}
|
|
134
136
|
renderItem(item, index$2, length) {
|
|
135
|
-
return (index.h("z-myz-list-item", { id: item.id, listitemid: item.id, action: `combo-li-${this.inputid}`, underlined: index$2 !== length - 1 }, index.h("z-input", { type: index$1.InputType.CHECKBOX, checked: item.checked, htmlid: `combo-checkbox-${this.inputid}-${item.id}`, label: item.name, disabled: !item.checked && this.maxcheckableitems && this.maxcheckableitems === this.selectedCounter })));
|
|
137
|
+
return (index.h("z-myz-list-item", { id: item.id, listitemid: item.id, action: `combo-li-${this.inputid}`, underlined: index$2 !== length - 1, class: this.size }, index.h("z-input", { type: index$1.InputType.CHECKBOX, checked: item.checked, htmlid: `combo-checkbox-${this.inputid}-${item.id}`, label: item.name, disabled: !item.checked && this.maxcheckableitems && this.maxcheckableitems === this.selectedCounter, size: this.size === index$1.ControlSize.X_SMALL ? index$1.ControlSize.SMALL : this.size })));
|
|
136
138
|
}
|
|
137
139
|
renderList(items) {
|
|
138
140
|
if (!items) {
|
|
@@ -163,7 +165,7 @@ const ZCombobox = class {
|
|
|
163
165
|
return index.h("ul", null, listGroups);
|
|
164
166
|
}
|
|
165
167
|
renderNoSearchResults() {
|
|
166
|
-
return (index.h("ul", null, index.h("z-myz-list-item", { id: "no-results", text: this.noresultslabel, listitemid: "no-results", icon: "multiply-circle" })));
|
|
168
|
+
return (index.h("ul", null, index.h("z-myz-list-item", { id: "no-results", text: this.noresultslabel, listitemid: "no-results", icon: "multiply-circle", class: this.size })));
|
|
167
169
|
}
|
|
168
170
|
renderCloseButton() {
|
|
169
171
|
return (index.h("div", null, index.h("a", { onClick: () => this.closeFilterItems(), onKeyUp: (e) => utils.handleKeyboardSubmit(e, this.closeFilterItems), role: "button", tabindex: 0 }, this.closesearchtext)));
|
|
@@ -172,7 +174,7 @@ const ZCombobox = class {
|
|
|
172
174
|
if (!this.isopen) {
|
|
173
175
|
return;
|
|
174
176
|
}
|
|
175
|
-
return (index.h("z-input", { htmlid: `${this.inputid}_search`, label: this.searchlabel, placeholder: this.searchplaceholder, htmltitle: this.searchtitle, type: this.inputType, value: this.searchValue, message: false, onInputChange: (e) => {
|
|
177
|
+
return (index.h("z-input", { htmlid: `${this.inputid}_search`, label: this.searchlabel, placeholder: this.searchplaceholder, htmltitle: this.searchtitle, type: this.inputType, value: this.searchValue, message: false, size: this.size, onInputChange: (e) => {
|
|
176
178
|
if (e.detail.keycode === 27) {
|
|
177
179
|
return this.closeFilterItems();
|
|
178
180
|
}
|
|
@@ -184,7 +186,7 @@ const ZCombobox = class {
|
|
|
184
186
|
return;
|
|
185
187
|
}
|
|
186
188
|
const allChecked = this.selectedCounter === this.itemsList.length;
|
|
187
|
-
return (index.h("div", { class: "check-all-wrapper" }, index.h("z-input", { type: index$1.InputType.CHECKBOX, checked: allChecked, htmlid: `combo-checkbox-${this.inputid}-check-all`, label: allChecked ? this.uncheckalltext : this.checkalltext, disabled: this.maxcheckableitems && this.maxcheckableitems < this.itemsList.length })));
|
|
189
|
+
return (index.h("div", { class: "check-all-wrapper" }, index.h("z-input", { type: index$1.InputType.CHECKBOX, checked: allChecked, htmlid: `combo-checkbox-${this.inputid}-check-all`, label: allChecked ? this.uncheckalltext : this.checkalltext, disabled: this.maxcheckableitems && this.maxcheckableitems < this.itemsList.length, size: this.size === index$1.ControlSize.X_SMALL ? index$1.ControlSize.SMALL : this.size })));
|
|
188
190
|
}
|
|
189
191
|
render() {
|
|
190
192
|
return (index.h("div", { "data-action": `combo-${this.inputid}`, class: { open: this.isopen, fixed: this.isfixed, disabled: this.disabled }, id: this.inputid }, this.renderHeader(), !this.disabled && this.renderContent()));
|