@zanichelli/delta_share 2.0.13 → 2.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/wc/cjs/delta_share.cjs.js +1 -1
- package/dist/wc/cjs/icons-9d7fe21e.js +751 -0
- package/dist/wc/cjs/index-1112cdb1.js +311 -0
- package/dist/wc/cjs/{license-activation_13.cjs.entry.js → license-activation_11.cjs.entry.js} +193 -143
- package/dist/wc/cjs/loader.cjs.js +1 -1
- package/dist/wc/cjs/utils-2bfaab77.js +2706 -0
- package/dist/wc/cjs/{utils-8a10bba9.js → utils-3ac19501.js} +9 -10
- package/dist/wc/cjs/z-alert.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-anchor-navigation.cjs.entry.js +53 -0
- package/dist/wc/cjs/z-app-header.cjs.entry.js +21 -19
- package/dist/wc/cjs/z-app-switcher.cjs.entry.js +3 -3
- package/dist/wc/cjs/z-aria-alert.cjs.entry.js +3 -2
- package/dist/wc/cjs/z-avatar.cjs.entry.js +8 -7
- package/dist/wc/cjs/z-body.cjs.entry.js +18 -0
- package/dist/wc/cjs/z-button-sort.cjs.entry.js +4 -5
- package/dist/wc/cjs/z-card.cjs.entry.js +15 -18
- package/dist/wc/cjs/z-carousel.cjs.entry.js +126 -4
- package/dist/wc/cjs/z-chip.cjs.entry.js +6 -6
- package/dist/wc/cjs/z-combobox.cjs.entry.js +66 -37
- package/dist/wc/cjs/z-contextual-menu.cjs.entry.js +13 -7
- package/dist/wc/cjs/z-cover-hero.cjs.entry.js +40 -0
- package/dist/wc/cjs/z-date-picker.cjs.entry.js +104 -2731
- package/dist/wc/cjs/z-divider.cjs.entry.js +3 -3
- package/dist/wc/cjs/z-dragdrop-area.cjs.entry.js +37 -0
- package/dist/wc/cjs/z-file-upload.cjs.entry.js +50 -37
- package/dist/wc/cjs/z-file.cjs.entry.js +11 -10
- package/dist/wc/cjs/z-ghost-loading.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-heading.cjs.entry.js +18 -0
- package/dist/wc/cjs/z-info-reveal.cjs.entry.js +65 -0
- package/dist/wc/cjs/z-list_3.cjs.entry.js +261 -0
- package/dist/wc/cjs/z-logo.cjs.entry.js +2 -4
- package/dist/wc/cjs/z-menu-section.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-menu.cjs.entry.js +9 -12
- package/dist/wc/cjs/z-messages-pocket.cjs.entry.js +6 -6
- package/dist/wc/cjs/z-myz-card-alert.cjs.entry.js +7 -7
- package/dist/wc/cjs/z-myz-card-dictionary.cjs.entry.js +3 -3
- package/dist/wc/cjs/z-myz-card-footer-sections.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-myz-card-footer.cjs.entry.js +10 -9
- package/dist/wc/cjs/z-myz-card-icon.cjs.entry.js +3 -1
- package/dist/wc/cjs/z-myz-card-info.cjs.entry.js +26 -16
- package/dist/wc/cjs/z-myz-card-list.cjs.entry.js +3 -2
- package/dist/wc/cjs/z-myz-card_4.cjs.entry.js +17 -13
- package/dist/wc/cjs/z-myz-list-item.cjs.entry.js +3 -3
- package/dist/wc/cjs/z-myz-list.cjs.entry.js +35 -0
- package/dist/wc/cjs/z-navigation-tab-link.cjs.entry.js +10 -10
- package/dist/wc/cjs/z-navigation-tab.cjs.entry.js +11 -11
- package/dist/wc/cjs/z-navigation-tabs.cjs.entry.js +20 -20
- package/dist/wc/cjs/z-notification.cjs.entry.js +2 -7
- package/dist/wc/cjs/z-offcanvas.cjs.entry.js +21 -14
- package/dist/wc/cjs/z-otp.cjs.entry.js +17 -17
- package/dist/wc/cjs/z-pagination.cjs.entry.js +14 -14
- package/dist/wc/cjs/z-panel-elem.cjs.entry.js +3 -3
- package/dist/wc/cjs/z-pocket-message.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-pocket_3.cjs.entry.js +18 -18
- package/dist/wc/cjs/z-popover.cjs.entry.js +293 -98
- package/dist/wc/cjs/z-range-picker.cjs.entry.js +343 -0
- package/dist/wc/cjs/z-searchbar.cjs.entry.js +235 -0
- package/dist/wc/cjs/z-section-title.cjs.entry.js +4 -13
- package/dist/wc/cjs/z-select.cjs.entry.js +325 -0
- package/dist/wc/cjs/z-skip-to-content.cjs.entry.js +18 -20
- package/dist/wc/cjs/z-slideshow.cjs.entry.js +28 -11
- package/dist/wc/cjs/z-stepper-item.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-stepper.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-table-cell.cjs.entry.js +10 -10
- package/dist/wc/cjs/z-table-empty-box.cjs.entry.js +5 -6
- package/dist/wc/cjs/z-table-expanded-row.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-table-header-row.cjs.entry.js +3 -3
- package/dist/wc/cjs/z-table-header.cjs.entry.js +20 -26
- package/dist/wc/cjs/z-table-row.cjs.entry.js +9 -9
- package/dist/wc/cjs/z-table-sticky-footer.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-table.cjs.entry.js +7 -9
- package/dist/wc/cjs/z-tag.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-toast-notification-list.cjs.entry.js +16 -16
- package/dist/wc/cjs/z-toast-notification.cjs.entry.js +37 -40
- package/dist/wc/cjs/z-toggle-button.cjs.entry.js +7 -9
- package/dist/wc/cjs/z-toggle-switch.cjs.entry.js +18 -16
- package/dist/wc/cjs/z-tooltip.cjs.entry.js +8 -251
- package/dist/wc/cjs/z-typography.cjs.entry.js +30 -0
- package/dist/wc/cjs/z-visually-hidden.cjs.entry.js +1 -1
- package/dist/wc/collection/collection-manifest.json +5 -20
- package/dist/wc/collection/components/license-activation-form/license-activation-form.css +2 -1
- package/dist/wc/collection/components/license-activation-form/license-activation-form.js +11 -6
- package/dist/wc/collection/components/license-activation-modal/license-activation-modal.js +4 -13
- package/dist/wc/custom-elements/index.js +3401 -3332
- package/dist/wc/delta_share/delta_share.esm.js +1 -1
- package/dist/wc/delta_share/{p-cfc122de.entry.js → p-0434c900.entry.js} +1 -1
- package/dist/wc/delta_share/p-063881e2.entry.js +1 -0
- package/dist/wc/delta_share/p-0667e9cd.entry.js +1 -0
- package/dist/wc/delta_share/p-0aa553ea.entry.js +1 -0
- package/dist/wc/delta_share/p-0bb97b61.js +1 -0
- package/dist/wc/delta_share/p-0bff6d57.entry.js +1 -0
- package/dist/wc/delta_share/p-1009b417.entry.js +1 -0
- package/dist/wc/delta_share/p-1c2d7c30.entry.js +1 -0
- package/dist/wc/delta_share/p-1d2cb6f9.entry.js +1 -0
- package/dist/wc/delta_share/p-23905d08.entry.js +1 -0
- package/dist/wc/delta_share/p-29310a24.entry.js +1 -0
- package/dist/wc/delta_share/p-2f289949.entry.js +1 -0
- package/dist/wc/delta_share/p-3cf0c6a5.entry.js +1 -0
- package/dist/wc/delta_share/p-3fa29874.entry.js +1 -0
- package/dist/wc/delta_share/p-42dd4f36.entry.js +1 -0
- package/dist/wc/delta_share/p-42e9c740.entry.js +1 -0
- package/dist/wc/delta_share/p-45dcece4.entry.js +1 -0
- package/dist/wc/delta_share/p-4eb940ca.entry.js +1 -0
- package/dist/wc/delta_share/p-500ff0dd.entry.js +1 -0
- package/dist/wc/delta_share/p-5530ca81.entry.js +1 -0
- package/dist/wc/delta_share/p-578f4d61.entry.js +1 -0
- package/dist/wc/delta_share/p-57f2b8d8.entry.js +1 -0
- package/dist/wc/delta_share/p-5e503d5f.entry.js +1 -0
- package/dist/wc/delta_share/{p-43ae8e0a.entry.js → p-61264c72.entry.js} +1 -1
- package/dist/wc/delta_share/p-64decd7d.entry.js +1 -0
- package/dist/wc/delta_share/p-65be6de6.entry.js +1 -0
- package/dist/wc/delta_share/p-6c54d53f.entry.js +1 -0
- package/dist/wc/delta_share/p-6cb8def6.entry.js +1 -0
- package/dist/wc/delta_share/p-6d853df0.entry.js +1 -0
- package/dist/wc/delta_share/{p-6a39042b.entry.js → p-702dd7b4.entry.js} +1 -1
- package/dist/wc/delta_share/p-74b71f61.entry.js +1 -0
- package/dist/wc/delta_share/p-7546c464.entry.js +1 -0
- package/dist/wc/delta_share/p-78d71789.js +1 -0
- package/dist/wc/delta_share/{p-91a4ef35.js → p-7ae0c21f.js} +1 -1
- package/dist/wc/delta_share/p-81ddcb87.entry.js +1 -0
- package/dist/wc/delta_share/p-829539a5.entry.js +1 -0
- package/dist/wc/delta_share/p-8710e686.entry.js +1 -0
- package/dist/wc/delta_share/p-8794c0c7.entry.js +1 -0
- package/dist/wc/delta_share/p-8825d8e4.entry.js +1 -0
- package/dist/wc/delta_share/p-8876b438.entry.js +16 -0
- package/dist/wc/delta_share/p-8cc7c2c7.entry.js +1 -0
- package/dist/wc/delta_share/{p-06543221.entry.js → p-8d532866.entry.js} +1 -1
- package/dist/wc/delta_share/{p-cccef23b.entry.js → p-8d91a5b7.entry.js} +1 -1
- package/dist/wc/delta_share/p-90fdd23f.entry.js +1 -0
- package/dist/wc/delta_share/p-925fc6c3.entry.js +1 -0
- package/dist/wc/delta_share/p-950aa417.entry.js +1 -0
- package/dist/wc/delta_share/p-963999a8.entry.js +1 -0
- package/dist/wc/delta_share/p-963f64a8.entry.js +1 -0
- package/dist/wc/delta_share/p-99ffd017.entry.js +1 -0
- package/dist/wc/delta_share/{p-94df01a9.entry.js → p-9ad5616e.entry.js} +1 -1
- package/dist/wc/delta_share/p-9e5596cd.entry.js +1 -0
- package/dist/wc/delta_share/p-a2b564ef.entry.js +1 -0
- package/dist/wc/delta_share/{p-06b89fb4.entry.js → p-a64544de.entry.js} +1 -1
- package/dist/wc/delta_share/p-a6b403f9.entry.js +1 -0
- package/dist/wc/delta_share/p-a77930ad.entry.js +3 -0
- package/dist/wc/delta_share/{p-e7932e20.entry.js → p-a815651c.entry.js} +1 -1
- package/dist/wc/delta_share/p-afb5bfe5.entry.js +1 -0
- package/dist/wc/delta_share/p-b16fd965.entry.js +1 -0
- package/dist/wc/delta_share/p-b38b27f2.entry.js +1 -0
- package/dist/wc/delta_share/{p-dec6ab35.entry.js → p-bc10cf1a.entry.js} +1 -1
- package/dist/wc/delta_share/p-bcb29c7a.entry.js +1 -0
- package/dist/wc/delta_share/p-be7f8da0.entry.js +1 -0
- package/dist/wc/delta_share/p-c229c90e.entry.js +1 -0
- package/dist/wc/delta_share/p-c31b160e.entry.js +1 -0
- package/dist/wc/delta_share/p-c436e1af.entry.js +1 -0
- package/dist/wc/delta_share/p-c51ebb01.entry.js +1 -0
- package/dist/wc/delta_share/p-c885d25c.entry.js +1 -0
- package/dist/wc/delta_share/p-c9df8e5d.entry.js +1 -0
- package/dist/wc/delta_share/p-cb16715b.entry.js +1 -0
- package/dist/wc/delta_share/p-cf58d833.js +1 -0
- package/dist/wc/delta_share/p-d586adfc.entry.js +1 -0
- package/dist/wc/delta_share/{p-91af6142.entry.js → p-d69c3b08.entry.js} +1 -1
- package/dist/wc/delta_share/p-d8e80ee8.entry.js +1 -0
- package/dist/wc/delta_share/p-ddab353c.entry.js +1 -0
- package/dist/wc/delta_share/p-ea6c67f2.entry.js +1 -0
- package/dist/wc/delta_share/p-ee0a8f1f.entry.js +1 -0
- package/dist/wc/delta_share/p-fc49c455.entry.js +1 -0
- package/dist/wc/esm/delta_share.js +1 -1
- package/dist/wc/esm/icons-7a34b033.js +749 -0
- package/dist/wc/esm/index-4f1e2705.js +311 -0
- package/dist/wc/esm/{license-activation_13.entry.js → license-activation_11.entry.js} +194 -142
- package/dist/wc/esm/loader.js +1 -1
- package/dist/wc/esm/{utils-417652d9.js → utils-5a24a17b.js} +10 -11
- package/dist/wc/esm/utils-711517a4.js +2700 -0
- package/dist/wc/esm/z-alert.entry.js +1 -1
- package/dist/wc/esm/z-anchor-navigation.entry.js +49 -0
- package/dist/wc/esm/z-app-header.entry.js +21 -19
- package/dist/wc/esm/z-app-switcher.entry.js +3 -3
- package/dist/wc/esm/z-aria-alert.entry.js +3 -2
- package/dist/wc/esm/z-avatar.entry.js +8 -7
- package/dist/wc/esm/z-body.entry.js +14 -0
- package/dist/wc/esm/z-button-sort.entry.js +4 -5
- package/dist/wc/esm/z-card.entry.js +16 -19
- package/dist/wc/esm/z-carousel.entry.js +127 -5
- package/dist/wc/esm/z-chip.entry.js +6 -6
- package/dist/wc/esm/z-combobox.entry.js +66 -37
- package/dist/wc/esm/z-contextual-menu.entry.js +13 -7
- package/dist/wc/esm/z-cover-hero.entry.js +36 -0
- package/dist/wc/esm/z-date-picker.entry.js +103 -2730
- package/dist/wc/esm/z-divider.entry.js +3 -3
- package/dist/wc/esm/z-dragdrop-area.entry.js +33 -0
- package/dist/wc/esm/z-file-upload.entry.js +51 -38
- package/dist/wc/esm/z-file.entry.js +11 -10
- package/dist/wc/esm/z-ghost-loading.entry.js +2 -2
- package/dist/wc/esm/z-heading.entry.js +14 -0
- package/dist/wc/esm/z-info-reveal.entry.js +61 -0
- package/dist/wc/esm/z-list_3.entry.js +255 -0
- package/dist/wc/esm/z-logo.entry.js +2 -4
- package/dist/wc/esm/z-menu-section.entry.js +2 -2
- package/dist/wc/esm/z-menu.entry.js +10 -13
- package/dist/wc/esm/z-messages-pocket.entry.js +6 -6
- package/dist/wc/esm/z-myz-card-alert.entry.js +7 -7
- package/dist/wc/esm/z-myz-card-dictionary.entry.js +3 -3
- package/dist/wc/esm/z-myz-card-footer-sections.entry.js +1 -1
- package/dist/wc/esm/z-myz-card-footer.entry.js +10 -9
- package/dist/wc/esm/z-myz-card-icon.entry.js +3 -1
- package/dist/wc/esm/z-myz-card-info.entry.js +26 -16
- package/dist/wc/esm/z-myz-card-list.entry.js +3 -2
- package/dist/wc/esm/z-myz-card_4.entry.js +17 -13
- package/dist/wc/esm/z-myz-list-item.entry.js +3 -3
- package/dist/wc/esm/z-myz-list.entry.js +31 -0
- package/dist/wc/esm/z-navigation-tab-link.entry.js +10 -10
- package/dist/wc/esm/z-navigation-tab.entry.js +11 -11
- package/dist/wc/esm/z-navigation-tabs.entry.js +20 -20
- package/dist/wc/esm/z-notification.entry.js +3 -8
- package/dist/wc/esm/z-offcanvas.entry.js +22 -15
- package/dist/wc/esm/z-otp.entry.js +17 -17
- package/dist/wc/esm/z-pagination.entry.js +15 -15
- package/dist/wc/esm/z-panel-elem.entry.js +3 -3
- package/dist/wc/esm/z-pocket-message.entry.js +2 -2
- package/dist/wc/esm/z-pocket_3.entry.js +18 -18
- package/dist/wc/esm/z-popover.entry.js +294 -99
- package/dist/wc/esm/z-range-picker.entry.js +339 -0
- package/dist/wc/esm/z-searchbar.entry.js +231 -0
- package/dist/wc/esm/z-section-title.entry.js +5 -14
- package/dist/wc/esm/z-select.entry.js +321 -0
- package/dist/wc/esm/z-skip-to-content.entry.js +18 -20
- package/dist/wc/esm/z-slideshow.entry.js +28 -11
- package/dist/wc/esm/z-stepper-item.entry.js +1 -1
- package/dist/wc/esm/z-stepper.entry.js +2 -2
- package/dist/wc/esm/z-table-cell.entry.js +10 -10
- package/dist/wc/esm/z-table-empty-box.entry.js +5 -6
- package/dist/wc/esm/z-table-expanded-row.entry.js +1 -1
- package/dist/wc/esm/z-table-header-row.entry.js +3 -3
- package/dist/wc/esm/z-table-header.entry.js +20 -26
- package/dist/wc/esm/z-table-row.entry.js +9 -9
- package/dist/wc/esm/z-table-sticky-footer.entry.js +2 -2
- package/dist/wc/esm/z-table.entry.js +7 -9
- package/dist/wc/esm/z-tag.entry.js +2 -2
- package/dist/wc/esm/z-toast-notification-list.entry.js +17 -17
- package/dist/wc/esm/z-toast-notification.entry.js +37 -40
- package/dist/wc/esm/z-toggle-button.entry.js +7 -9
- package/dist/wc/esm/z-toggle-switch.entry.js +19 -17
- package/dist/wc/esm/z-tooltip.entry.js +9 -252
- package/dist/wc/esm/z-typography.entry.js +26 -0
- package/dist/wc/esm/z-visually-hidden.entry.js +1 -1
- package/dist/wc/types/components/license-activation-form/license-activation-form.d.ts +2 -2
- package/dist/wc/types/components/license-activation-modal/license-activation-modal.d.ts +2 -3
- package/package.json +1 -1
- package/dist/wc/cjs/icons-2aca6c75.js +0 -513
- package/dist/wc/cjs/index-1fda0714.js +0 -60
- package/dist/wc/cjs/index-9c6fd1db.js +0 -315
- package/dist/wc/cjs/z-app-topbar.cjs.entry.js +0 -41
- package/dist/wc/cjs/z-button-deprecated.cjs.entry.js +0 -38
- package/dist/wc/cjs/z-button-filter.cjs.entry.js +0 -49
- package/dist/wc/cjs/z-candybar.cjs.entry.js +0 -19
- package/dist/wc/cjs/z-chip-deprecated.cjs.entry.js +0 -24
- package/dist/wc/cjs/z-cookiebar.cjs.entry.js +0 -42
- package/dist/wc/cjs/z-dragdrop-area_2.cjs.entry.js +0 -48
- package/dist/wc/cjs/z-footer-link_3.cjs.entry.js +0 -49
- package/dist/wc/cjs/z-footer.cjs.entry.js +0 -107
- package/dist/wc/cjs/z-icon-package.cjs.entry.js +0 -23
- package/dist/wc/cjs/z-input-deprecated.cjs.entry.js +0 -271
- package/dist/wc/cjs/z-input-label_2.cjs.entry.js +0 -272
- package/dist/wc/cjs/z-list-group.cjs.entry.js +0 -54
- package/dist/wc/cjs/z-list_2.cjs.entry.js +0 -179
- package/dist/wc/cjs/z-menu-dropdown_2.cjs.entry.js +0 -89
- package/dist/wc/cjs/z-modal-login.cjs.entry.js +0 -82
- package/dist/wc/cjs/z-myz-topbar.cjs.entry.js +0 -194
- package/dist/wc/cjs/z-pagination-bar.cjs.entry.js +0 -128
- package/dist/wc/cjs/z-pagination-page.cjs.entry.js +0 -25
- package/dist/wc/cjs/z-status-tag.cjs.entry.js +0 -29
- package/dist/wc/cjs/z-user-dropdown.cjs.entry.js +0 -95
- package/dist/wc/delta_share/p-0b0179c7.js +0 -1
- package/dist/wc/delta_share/p-103f926c.entry.js +0 -1
- package/dist/wc/delta_share/p-11b446d7.entry.js +0 -1
- package/dist/wc/delta_share/p-13093633.entry.js +0 -1
- package/dist/wc/delta_share/p-20c14e4e.entry.js +0 -1
- package/dist/wc/delta_share/p-243df9e5.entry.js +0 -1
- package/dist/wc/delta_share/p-244accd2.entry.js +0 -1
- package/dist/wc/delta_share/p-261611b1.js +0 -1
- package/dist/wc/delta_share/p-286363e2.js +0 -7
- package/dist/wc/delta_share/p-29729c73.entry.js +0 -1
- package/dist/wc/delta_share/p-29cb5018.entry.js +0 -1
- package/dist/wc/delta_share/p-29d111de.entry.js +0 -1
- package/dist/wc/delta_share/p-2b05751b.entry.js +0 -1
- package/dist/wc/delta_share/p-32975e01.entry.js +0 -1
- package/dist/wc/delta_share/p-32d34db1.entry.js +0 -1
- package/dist/wc/delta_share/p-3341f25e.entry.js +0 -1
- package/dist/wc/delta_share/p-33fb12fc.entry.js +0 -1
- package/dist/wc/delta_share/p-36955fc5.entry.js +0 -1
- package/dist/wc/delta_share/p-39440988.entry.js +0 -1
- package/dist/wc/delta_share/p-3bb7f110.entry.js +0 -1
- package/dist/wc/delta_share/p-3f61bc0d.entry.js +0 -1
- package/dist/wc/delta_share/p-422f29e8.entry.js +0 -1
- package/dist/wc/delta_share/p-44eba966.entry.js +0 -1
- package/dist/wc/delta_share/p-464dc49d.entry.js +0 -1
- package/dist/wc/delta_share/p-5374191c.entry.js +0 -16
- package/dist/wc/delta_share/p-5559856c.entry.js +0 -1
- package/dist/wc/delta_share/p-55ecb7aa.entry.js +0 -1
- package/dist/wc/delta_share/p-5af0e3cd.entry.js +0 -1
- package/dist/wc/delta_share/p-5b320481.entry.js +0 -1
- package/dist/wc/delta_share/p-5d085d01.entry.js +0 -1
- package/dist/wc/delta_share/p-5e9898dd.entry.js +0 -1
- package/dist/wc/delta_share/p-6422731e.entry.js +0 -1
- package/dist/wc/delta_share/p-64ffaf7b.entry.js +0 -1
- package/dist/wc/delta_share/p-6613eeee.entry.js +0 -1
- package/dist/wc/delta_share/p-6a9fb59c.entry.js +0 -1
- package/dist/wc/delta_share/p-6f7064dc.entry.js +0 -1
- package/dist/wc/delta_share/p-767a8d6e.entry.js +0 -1
- package/dist/wc/delta_share/p-76cfb0be.entry.js +0 -1
- package/dist/wc/delta_share/p-7f71c41e.entry.js +0 -1
- package/dist/wc/delta_share/p-8b6617d8.entry.js +0 -1
- package/dist/wc/delta_share/p-8fb4a4ea.entry.js +0 -1
- package/dist/wc/delta_share/p-94b8f342.entry.js +0 -1
- package/dist/wc/delta_share/p-9656b290.entry.js +0 -1
- package/dist/wc/delta_share/p-97e4d621.entry.js +0 -1
- package/dist/wc/delta_share/p-98853ba5.entry.js +0 -1
- package/dist/wc/delta_share/p-9c147330.entry.js +0 -1
- package/dist/wc/delta_share/p-9d35fb61.entry.js +0 -1
- package/dist/wc/delta_share/p-a0663266.entry.js +0 -1
- package/dist/wc/delta_share/p-a823768b.entry.js +0 -1
- package/dist/wc/delta_share/p-b1b05625.entry.js +0 -1
- package/dist/wc/delta_share/p-b1c1f030.entry.js +0 -1
- package/dist/wc/delta_share/p-bb38e604.entry.js +0 -1
- package/dist/wc/delta_share/p-bcb49d1a.entry.js +0 -1
- package/dist/wc/delta_share/p-c2dde3b3.entry.js +0 -1
- package/dist/wc/delta_share/p-c750a121.entry.js +0 -3
- package/dist/wc/delta_share/p-cd42e0b5.entry.js +0 -1
- package/dist/wc/delta_share/p-d282ce22.entry.js +0 -1
- package/dist/wc/delta_share/p-d610565d.entry.js +0 -1
- package/dist/wc/delta_share/p-da0b941f.entry.js +0 -1
- package/dist/wc/delta_share/p-da8144e5.entry.js +0 -1
- package/dist/wc/delta_share/p-dafefe1f.entry.js +0 -1
- package/dist/wc/delta_share/p-dc148f92.entry.js +0 -1
- package/dist/wc/delta_share/p-dd50dd54.entry.js +0 -1
- package/dist/wc/delta_share/p-de117646.entry.js +0 -1
- package/dist/wc/delta_share/p-e37c7b62.entry.js +0 -1
- package/dist/wc/delta_share/p-e9412ef0.entry.js +0 -1
- package/dist/wc/delta_share/p-ea6c7be0.entry.js +0 -1
- package/dist/wc/delta_share/p-ebb9a3f9.entry.js +0 -1
- package/dist/wc/delta_share/p-ee76ecea.entry.js +0 -1
- package/dist/wc/delta_share/p-f2323f2a.entry.js +0 -1
- package/dist/wc/delta_share/p-f441efc3.entry.js +0 -1
- package/dist/wc/delta_share/p-f531a563.entry.js +0 -1
- package/dist/wc/delta_share/p-fa3d96ab.entry.js +0 -1
- package/dist/wc/delta_share/p-fd83d815.entry.js +0 -1
- package/dist/wc/delta_share/p-ff2508eb.entry.js +0 -1
- package/dist/wc/esm/icons-74713b55.js +0 -511
- package/dist/wc/esm/index-654849a7.js +0 -315
- package/dist/wc/esm/index-abb47b30.js +0 -58
- package/dist/wc/esm/z-app-topbar.entry.js +0 -37
- package/dist/wc/esm/z-button-deprecated.entry.js +0 -34
- package/dist/wc/esm/z-button-filter.entry.js +0 -45
- package/dist/wc/esm/z-candybar.entry.js +0 -15
- package/dist/wc/esm/z-chip-deprecated.entry.js +0 -20
- package/dist/wc/esm/z-cookiebar.entry.js +0 -38
- package/dist/wc/esm/z-dragdrop-area_2.entry.js +0 -43
- package/dist/wc/esm/z-footer-link_3.entry.js +0 -43
- package/dist/wc/esm/z-footer.entry.js +0 -103
- package/dist/wc/esm/z-icon-package.entry.js +0 -19
- package/dist/wc/esm/z-input-deprecated.entry.js +0 -267
- package/dist/wc/esm/z-input-label_2.entry.js +0 -267
- package/dist/wc/esm/z-list-group.entry.js +0 -50
- package/dist/wc/esm/z-list_2.entry.js +0 -174
- package/dist/wc/esm/z-menu-dropdown_2.entry.js +0 -84
- package/dist/wc/esm/z-modal-login.entry.js +0 -78
- package/dist/wc/esm/z-myz-topbar.entry.js +0 -190
- package/dist/wc/esm/z-pagination-bar.entry.js +0 -124
- package/dist/wc/esm/z-pagination-page.entry.js +0 -21
- package/dist/wc/esm/z-status-tag.entry.js +0 -25
- package/dist/wc/esm/z-user-dropdown.entry.js +0 -91
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h } from './index-b3a91e19.js';
|
|
2
2
|
|
|
3
|
-
const stylesCss = ":host{display:block;font-family:var(--font-family-sans);font-weight:var(--font-rg);
|
|
3
|
+
const stylesCss = ":host{display:block;box-sizing:border-box;color:var(--color-surface05);font-family:var(--font-family-sans);font-size:14px;font-weight:var(--font-rg);line-height:calc(var(--space-unit) * 2)}:host>div{padding:calc(var(--space-unit) * 2)}:host>.success{background:var(--color-success-inverse);fill:var(--color-success01)}:host>.warning{background:var(--color-warning-inverse);fill:var(--color-warning01)}:host>.error{background:var(--color-error-inverse);fill:var(--color-error01)}";
|
|
4
4
|
|
|
5
5
|
const ZAlert = class {
|
|
6
6
|
constructor(hostRef) {
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-b3a91e19.js';
|
|
2
|
+
import { B as ButtonVariant } from './index-4f1e2705.js';
|
|
3
|
+
|
|
4
|
+
const stylesCss = "html{scroll-behavior:smooth}z-anchor-navigation nav{display:none;flex-direction:column;justify-content:flex-start;row-gap:calc(var(--space-unit) / 2)}z-anchor-navigation[collapsed] nav{display:flex;margin-top:var(--space-unit)}z-anchor-navigation nav a{display:-webkit-box;overflow:clip;width:100%;box-sizing:border-box;padding:calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 2);-webkit-box-orient:vertical;color:inherit;font-weight:inherit;-webkit-line-clamp:2;overflow-clip-margin:content-box;text-decoration:none}z-anchor-navigation nav * a:not(:only-child){padding-right:calc(var(--space-unit) * 5)}@supports not (overflow-clip-margin: content-box){z-anchor-navigation nav a{display:inline-block;overflow:hidden;-webkit-line-clamp:none;text-overflow:ellipsis;white-space:nowrap}}z-anchor-navigation nav>*{position:relative;border-left:var(--border-size-large) solid var(--color-surface04);color:var(--color-text01);font-family:var(--font-family-sans);transition:background-color 0.3s ease-in-out, border-color 0.3s ease-in-out, color 0.3s ease-in-out}z-anchor-navigation nav>[current]{border-left-color:var(--color-primary01);color:var(--color-link-primary);font-weight:var(--font-sb)}z-anchor-navigation nav>*>*:is(z-button,button,z-icon){position:absolute;top:50%;right:0;transform:translateY(-50%);transition:opacity 0.3s ease-in-out}z-anchor-navigation nav button{padding:0;border:none;margin:0;background-color:transparent}z-anchor-navigation nav z-icon{--z-icon-width:16px;--z-icon-height:16px;display:flex;padding:calc(var(--space-unit) * 1.5);fill:var(--color-icon02)}@media (min-width: 768px){z-anchor-navigation z-button.toggle{display:none !important}z-anchor-navigation nav{display:flex}z-anchor-navigation nav a{outline:none}@media (hover: hover){z-anchor-navigation nav>*:hover{border-left-color:var(--color-hover-secondary);background-color:var(--color-hover-surface);color:var(--color-hover-link)}}z-anchor-navigation nav>*:is(:focus,:focus-within),z-anchor-navigation nav :is(z-icon,button):focus:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none}z-anchor-navigation[hide-unselected] nav>*:not([current],:hover,:focus,:focus-within){color:transparent}z-anchor-navigation nav>*:not([current],:hover,:focus,:focus-within)>*:is(z-button,button,z-icon):not(:focus:focus-visible){opacity:0;pointer-events:none}@media (hover: none){z-anchor-navigation:not([hide-unselected]) nav>*>*:is(z-button,button,z-icon){opacity:1;pointer-events:all}}}";
|
|
5
|
+
|
|
6
|
+
const ZAnchorNavigation = class {
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
registerInstance(this, hostRef);
|
|
9
|
+
/**
|
|
10
|
+
* If enabled, the text of each anchor will be hidden unless
|
|
11
|
+
* for the current one or the one the user is hovering.
|
|
12
|
+
*/
|
|
13
|
+
this.hideUnselected = false;
|
|
14
|
+
/**
|
|
15
|
+
* Whether the mobile list is collapsed.
|
|
16
|
+
*/
|
|
17
|
+
this.collapsed = false;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Set aria-current attribute to the anchors and `current` to nav children.
|
|
21
|
+
*/
|
|
22
|
+
setAriaCurrent() {
|
|
23
|
+
Array.from(this.nav.children).forEach((item) => {
|
|
24
|
+
const anchor = item instanceof HTMLAnchorElement ? item : item.querySelector("a");
|
|
25
|
+
const isCurrent = window.location.href === anchor.href;
|
|
26
|
+
anchor.setAttribute("aria-current", isCurrent.toString());
|
|
27
|
+
item.toggleAttribute("current", isCurrent);
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Toggle collapsed state.
|
|
32
|
+
*/
|
|
33
|
+
toggleCollapsed() {
|
|
34
|
+
this.collapsed = !this.collapsed;
|
|
35
|
+
}
|
|
36
|
+
componentDidLoad() {
|
|
37
|
+
window.addEventListener("hashchange", this.setAriaCurrent.bind(this));
|
|
38
|
+
this.setAriaCurrent();
|
|
39
|
+
}
|
|
40
|
+
disconnectedCallback() {
|
|
41
|
+
window.removeEventListener("hashchange", this.setAriaCurrent);
|
|
42
|
+
}
|
|
43
|
+
render() {
|
|
44
|
+
return (h(Host, { collapsed: this.collapsed }, h("z-button", { class: "toggle", variant: ButtonVariant.SECONDARY, icon: this.collapsed ? "chevron-up" : "chevron-down", onClick: this.toggleCollapsed.bind(this) }, "salta a"), h("nav", { ref: (el) => (this.nav = el) }, h("slot", null))));
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
ZAnchorNavigation.style = stylesCss;
|
|
48
|
+
|
|
49
|
+
export { ZAnchorNavigation as z_anchor_navigation };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-b3a91e19.js';
|
|
2
2
|
|
|
3
|
-
const stylesCss = ":host{--app-header-height:auto;--app-header-typography-1-size:24px;--app-header-typography-2-size:28px;--app-header-typography-3-size:32px;--app-header-typography-4-size:36px;--app-header-typography-5-size:42px;--app-header-typography-6-size:48px;--app-header-typography-7-size:54px;--app-header-typography-8-size:60px;--app-header-typography-9-size:68px;--app-header-typography-10-size:76px;--app-header-typography-11-size:84px;--app-header-typography-12-size:92px;--app-header-typography-1-lineheight:1.33;--app-header-typography-2-lineheight:1.29;--app-header-typography-3-lineheight:1.25;--app-header-typography-4-lineheight:1.24;--app-header-typography-5-lineheight:1.24;--app-header-typography-6-lineheight:1.25;--app-header-typography-7-lineheight:1.2;--app-header-typography-8-lineheight:1.26;--app-header-typography-9-lineheight:1.24;--app-header-typography-10-lineheight:1.26;--app-header-typography-11-lineheight:1.2;--app-header-typography-12-lineheight:1.2;--app-header-typography-1-tracking:calc(-0.2 / 1em);--app-header-typography-2-tracking:calc(-0.4 / 1em);--app-header-typography-3-tracking:calc(-0.6 / 1em);--app-header-typography-4-tracking:calc(-0.8 / 1em);--app-header-typography-5-tracking:calc(-1 / 1em);--app-header-typography-6-tracking:calc(-1.2 / 1em);--app-header-typography-7-tracking:calc(-1.4 / 1em);--app-header-typography-8-tracking:calc(-1.6 / 1em);--app-header-typography-9-tracking:calc(-1.8 / 1em);--app-header-typography-10-tracking:calc(-2 / 1em);--app-header-typography-11-tracking:calc(-2.2 / 1em);--app-header-typography-12-tracking:calc(-2.4 / 1em);--app-header-top-offset:48px;--app-header-drawer-trigger-size:calc(var(--space-unit) * 4);--app-header-bg:var(--color-white);--app-header-stucked-bg:var(--color-white);--app-header-text-color:var(--gray800);--app-header-stucked-text-color:var(--gray800);display:block;color:var(--app-header-text-color)}:host,*{box-sizing:border-box}.heading-panel{position:relative;display:flex;
|
|
3
|
+
const stylesCss = ":host{--app-header-content-max-width:100%;--app-header-height:auto;--app-header-typography-1-size:24px;--app-header-typography-2-size:28px;--app-header-typography-3-size:32px;--app-header-typography-4-size:36px;--app-header-typography-5-size:42px;--app-header-typography-6-size:48px;--app-header-typography-7-size:54px;--app-header-typography-8-size:60px;--app-header-typography-9-size:68px;--app-header-typography-10-size:76px;--app-header-typography-11-size:84px;--app-header-typography-12-size:92px;--app-header-typography-1-lineheight:1.33;--app-header-typography-2-lineheight:1.29;--app-header-typography-3-lineheight:1.25;--app-header-typography-4-lineheight:1.24;--app-header-typography-5-lineheight:1.24;--app-header-typography-6-lineheight:1.25;--app-header-typography-7-lineheight:1.2;--app-header-typography-8-lineheight:1.26;--app-header-typography-9-lineheight:1.24;--app-header-typography-10-lineheight:1.26;--app-header-typography-11-lineheight:1.2;--app-header-typography-12-lineheight:1.2;--app-header-typography-1-tracking:calc(-0.2 / 1em);--app-header-typography-2-tracking:calc(-0.4 / 1em);--app-header-typography-3-tracking:calc(-0.6 / 1em);--app-header-typography-4-tracking:calc(-0.8 / 1em);--app-header-typography-5-tracking:calc(-1 / 1em);--app-header-typography-6-tracking:calc(-1.2 / 1em);--app-header-typography-7-tracking:calc(-1.4 / 1em);--app-header-typography-8-tracking:calc(-1.6 / 1em);--app-header-typography-9-tracking:calc(-1.8 / 1em);--app-header-typography-10-tracking:calc(-2 / 1em);--app-header-typography-11-tracking:calc(-2.2 / 1em);--app-header-typography-12-tracking:calc(-2.4 / 1em);--app-header-top-offset:48px;--app-header-drawer-trigger-size:calc(var(--space-unit) * 4);--app-header-bg:var(--color-white);--app-header-stucked-bg:var(--color-white);--app-header-text-color:var(--gray800);--app-header-stucked-text-color:var(--gray800);display:block;color:var(--app-header-text-color)}:host,*{box-sizing:border-box}.heading-panel{position:relative;display:flex;width:100%;max-width:var(--app-header-content-max-width);height:var(--app-header-height);flex-direction:column;flex-grow:0;flex-shrink:0;align-items:baseline;justify-content:flex-start;padding:var(--grid-margin);margin:0 auto;background:var(--app-header-bg)}:host(:empty) .heading-panel{padding:0}.heading-title{display:flex;max-width:100%;flex-direction:row;align-items:center}:host(:not([menu-length=\"0\"])) .heading-subtitle{padding-left:calc(var(--app-header-drawer-trigger-size) + (var(--space-unit) * 1.5))}.heading-stuck{position:fixed;z-index:20;top:var(--app-header-top-offset);left:0;width:100%;max-width:100%;animation:slide-stuck-heading-in 250ms ease-out;background:var(--app-header-stucked-bg);box-shadow:var(--shadow-2);color:var(--app-header-stucked-text-color)}.heading-stuck-content{display:flex;max-width:var(--app-header-content-max-width);padding:var(--space-unit) var(--grid-margin);margin:0 auto}.heading-stuck .heading-title,.heading-stuck .heading-title>*,.heading-stuck .heading-title ::slotted([slot=\"stucked-title\"]){display:block;overflow:hidden;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}.heading-stuck .heading-title>*,::slotted([slot=\"title\"]),::slotted([slot=\"stucked-title\"]){margin:0;font-family:\"IBM Plex Serif\", serif;font-size:var(--app-header-typography-3-size);font-weight:700;letter-spacing:var(--app-header-typography-3-tracking)}::slotted([slot=\"title\"]){line-height:1}::slotted([slot=\"subtitle\"]){margin:var(--space-unit) 0 0;font-family:var(--font-family-sans);font-size:20px;font-style:italic;font-weight:500;line-height:1.2}.heading-container{position:relative;z-index:1;display:flex;max-width:100%;flex-direction:column;align-items:flex-start;justify-content:flex-start;margin-right:auto}.menu-container{display:none;flex-flow:row wrap;align-items:baseline}.menu-container ::slotted([open]){position:relative;z-index:3}.menu-container ::slotted(*:not(:last-of-type)){margin-right:calc(var(--space-unit) * 4.5)}.drawer-trigger{padding:0;border:0;margin:0 calc(var(--space-unit) * 1.5) 0 0;appearance:none;background:none;border-radius:0;color:inherit;cursor:pointer}.drawer-trigger z-icon{--z-icon-width:var(--app-header-drawer-trigger-size);--z-icon-height:var(--app-header-drawer-trigger-size);fill:currentcolor}.drawer-container{position:fixed;z-index:100;top:var(--app-header-top-offset);left:0;width:100%;height:100%;pointer-events:none}.drawer-container .drawer-overlay{position:absolute;z-index:1;top:0;left:0;display:block;width:100%;height:100%;background:var(--gray900);opacity:0;pointer-events:none;transition:opacity 400ms ease-out}.drawer-panel{position:absolute;z-index:2;top:0;left:0;display:flex;width:375px;max-width:100%;height:100%;flex-direction:column;align-items:flex-start;padding:calc(var(--space-unit) * 2) var(--space-unit);background:var(--color-white);color:var(--gray800);pointer-events:none;transform:translate3d(-100%, 0, 0);transition:transform 400ms ease-out}.drawer-content{display:flex;overflow:auto;width:100%;flex:1 auto;flex-direction:column;padding:calc(var(--space-unit) * 0.5) var(--space-unit)}.drawer-content::-webkit-scrollbar{width:10px;background:linear-gradient(to right, transparent 0 3px, var(--gray200) 3px 7px, transparent 7px 10px);border-radius:var(--border-radius)}.drawer-content::-webkit-scrollbar-track{background-color:transparent}.drawer-content::-webkit-scrollbar-thumb{width:10px;background-color:var(--color-primary01);border-radius:var(--border-radius)}.drawer-content::-webkit-scrollbar-thumb:hover{background-color:var(--color-hover-primary)}.drawer-content ::slotted(z-menu){width:100%}.drawer-content ::slotted(z-menu:not(:last-of-type)){margin-bottom:calc(var(--space-unit) * 2.5)}.drawer-close{--z-icon-width:var(--app-header-drawer-trigger-size);--z-icon-height:var(--app-header-drawer-trigger-size);padding:0;border:0;margin:0 0 calc(var(--space-unit) * 2.5) var(--space-unit);appearance:none;background:transparent;border-radius:0;color:inherit;cursor:pointer;fill:currentcolor;font-size:inherit;outline:none}.drawer-close:focus-visible{box-shadow:var(--shadow-focus-primary)}:host([drawer-open]) .drawer-container .drawer-overlay{opacity:0.7;pointer-events:all}:host([drawer-open]) .drawer-container .drawer-panel{pointer-events:all;transform:none}.hero-container{position:absolute;z-index:0;top:0;left:0;width:100%;height:100%}:host([overlay]) .heading-panel .drawer-trigger z-icon,:host([overlay]) .heading-panel .heading-container,:host([overlay]) .heading-panel .menu-container{color:var(--color-white);fill:var(--color-white)}:host([overlay]) .heading-panel .menu-container ::slotted(z-menu:not([open])){--color-surface05:var(--color-white)}:host([overlay]) .hero-container::after{position:absolute;z-index:0;top:0;left:0;width:100%;height:100%;background:var(--color-black);content:\"\";opacity:0.5}.hero-container img,.hero-container ::slotted(*){position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:top center;-webkit-user-drag:none}@media (min-width: 768px){:host(:not([flow=\"offcanvas\"])) .heading-subtitle{padding-left:0}:host(:not([flow=\"offcanvas\"])) .menu-container{display:flex}:host(:not([flow=\"offcanvas\"])) .heading-container .drawer-trigger{display:none}:host(:not([flow=\"offcanvas\"],[menu-length=\"0\"])) .heading-container:not(:last-child){margin-bottom:calc(var(--space-unit) * 3)}::slotted([slot=\"title\"]){font-size:var(--app-header-typography-6-size);letter-spacing:var(--app-header-typography-6-tracking)}::slotted([slot=\"subtitle\"]){margin-top:calc(var(--space-unit) * 1.5)}}@media (min-width: 1152px){:host(:not([flow=\"stack\"])) .heading-panel{flex-flow:row wrap}::slotted([slot=\"title\"]){margin-right:var(--grid-gutter);font-size:var(--app-header-typography-7-size);letter-spacing:var(--app-header-typography-7-tracking)}:host(:not([flow=\"offcanvas\"],[menu-length=\"0\"])) .heading-container:not(:last-child){margin-bottom:calc(var(--space-unit) * 2)}.menu-container{margin-top:var(--space-unit)}}@media (min-width: 1366px){::slotted([slot=\"title\"]){font-size:var(--app-header-typography-9-size);letter-spacing:var(--app-header-typography-9-tracking)}:host(:not([flow=\"offcanvas\"],[menu-length=\"0\"])) .heading-container:not(:last-child){margin-bottom:0}}@keyframes slide-stuck-heading-in{0%{transform:translate3d(0, -100%, 0)}100%{transform:none}}";
|
|
4
4
|
|
|
5
|
-
const SUPPORT_INTERSECTION_OBSERVER = typeof IntersectionObserver !==
|
|
5
|
+
const SUPPORT_INTERSECTION_OBSERVER = typeof IntersectionObserver !== "undefined";
|
|
6
6
|
const ZAppHeader = class {
|
|
7
7
|
constructor(hostRef) {
|
|
8
8
|
registerInstance(this, hostRef);
|
|
@@ -27,25 +27,27 @@ const ZAppHeader = class {
|
|
|
27
27
|
*
|
|
28
28
|
* **Optional**
|
|
29
29
|
*/
|
|
30
|
-
this.flow =
|
|
30
|
+
this.flow = "auto";
|
|
31
31
|
/**
|
|
32
32
|
* The opening state of the drawer.
|
|
33
33
|
*/
|
|
34
34
|
this.drawerOpen = false;
|
|
35
35
|
/**
|
|
36
|
-
* The
|
|
36
|
+
* The stuck state of the bar.
|
|
37
37
|
*/
|
|
38
|
-
this.
|
|
39
|
-
this.observer = SUPPORT_INTERSECTION_OBSERVER &&
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
38
|
+
this._stuck = false;
|
|
39
|
+
this.observer = SUPPORT_INTERSECTION_OBSERVER &&
|
|
40
|
+
new IntersectionObserver(([entry]) => {
|
|
41
|
+
this._stuck = !entry.isIntersecting;
|
|
42
|
+
}, {
|
|
43
|
+
threshold: 0.5,
|
|
44
|
+
});
|
|
44
45
|
this.openDrawer = this.openDrawer.bind(this);
|
|
45
46
|
this.closeDrawer = this.closeDrawer.bind(this);
|
|
47
|
+
this.collectMenuElements.bind(this);
|
|
46
48
|
}
|
|
47
49
|
emitStickingEvent() {
|
|
48
|
-
this.sticking.emit(this.
|
|
50
|
+
this.sticking.emit(this._stuck);
|
|
49
51
|
}
|
|
50
52
|
componentDidLoad() {
|
|
51
53
|
this.collectMenuElements();
|
|
@@ -53,8 +55,8 @@ const ZAppHeader = class {
|
|
|
53
55
|
}
|
|
54
56
|
get title() {
|
|
55
57
|
const titleElement = this.hostElement.querySelector('[slot="title"]');
|
|
56
|
-
if (
|
|
57
|
-
return
|
|
58
|
+
if (titleElement === null) {
|
|
59
|
+
return "";
|
|
58
60
|
}
|
|
59
61
|
return titleElement.textContent.trim();
|
|
60
62
|
}
|
|
@@ -66,7 +68,7 @@ const ZAppHeader = class {
|
|
|
66
68
|
return parent;
|
|
67
69
|
}
|
|
68
70
|
collectMenuElements() {
|
|
69
|
-
const menuElements = this.menuElements = this.hostElement.querySelectorAll('[slot="menu"]');
|
|
71
|
+
const menuElements = (this.menuElements = this.hostElement.querySelectorAll('[slot="menu"]'));
|
|
70
72
|
this.menuLength = menuElements.length;
|
|
71
73
|
this.setMenuFloatingMode();
|
|
72
74
|
}
|
|
@@ -84,12 +86,12 @@ const ZAppHeader = class {
|
|
|
84
86
|
}
|
|
85
87
|
}
|
|
86
88
|
disableStuckMode() {
|
|
87
|
-
this.
|
|
89
|
+
this._stuck = false;
|
|
88
90
|
if (this.observer) {
|
|
89
91
|
this.observer.unobserve(this.container);
|
|
90
92
|
}
|
|
91
93
|
}
|
|
92
|
-
|
|
94
|
+
onStuck() {
|
|
93
95
|
const scrollParent = this.scrollParent;
|
|
94
96
|
if (!scrollParent) {
|
|
95
97
|
return;
|
|
@@ -97,7 +99,7 @@ const ZAppHeader = class {
|
|
|
97
99
|
this.emitStickingEvent();
|
|
98
100
|
}
|
|
99
101
|
setMenuFloatingMode() {
|
|
100
|
-
if (
|
|
102
|
+
if (this.menuElements.length === 0) {
|
|
101
103
|
return;
|
|
102
104
|
}
|
|
103
105
|
const elements = this.menuElements;
|
|
@@ -107,7 +109,7 @@ const ZAppHeader = class {
|
|
|
107
109
|
}
|
|
108
110
|
}
|
|
109
111
|
render() {
|
|
110
|
-
return h(Host, { "menu-length": this.menuLength }, h("div", { class: "heading-panel", ref: (el) => this.container = el }, h("div", { class: "hero-container" }, h("slot", { name: "hero" }, this.hero && h("img", { alt: "", src: this.hero }))), h("div", { class: "heading-container" }, h("div", { class: "heading-title" }, this.menuLength > 0 && h("button", { class: "drawer-trigger", "aria-label": "Apri menu", onClick: this.openDrawer }, h("z-icon", { name: "burger-menu" })), h("slot", { name: "title" })), h("div", { class: "heading-subtitle" }, h("slot", { name: "subtitle" }))), h("div", { class: "menu-container" }, !this.drawerOpen && this.flow !==
|
|
112
|
+
return (h(Host, { "menu-length": this.menuLength }, h("div", { class: "heading-panel", ref: (el) => (this.container = el) }, h("div", { class: "hero-container" }, h("slot", { name: "hero" }, this.hero && (h("img", { alt: "", src: this.hero })))), h("div", { class: "heading-container" }, h("div", { class: "heading-title" }, this.menuLength > 0 && (h("button", { class: "drawer-trigger", "aria-label": "Apri menu", onClick: this.openDrawer }, h("z-icon", { name: "burger-menu" }))), h("slot", { name: "title" })), h("div", { class: "heading-subtitle" }, h("slot", { name: "subtitle" }))), h("div", { class: "menu-container" }, !this.drawerOpen && this.flow !== "offcanvas" && (h("slot", { name: "menu", onSlotchange: () => this.collectMenuElements() })))), h("div", { class: "drawer-container" }, h("div", { class: "drawer-overlay", onClick: this.closeDrawer }), h("div", { class: "drawer-panel" }, h("button", { class: "drawer-close", "aria-label": "Chiudi menu", onClick: this.closeDrawer }, h("z-icon", { name: "close" })), h("div", { class: "drawer-content" }, this.drawerOpen && (h("slot", { name: "menu", onSlotchange: () => this.collectMenuElements() }))))), this._stuck && (h("div", { class: "heading-stuck" }, h("div", { class: "heading-stuck-content" }, this.menuLength > 0 && (h("button", { class: "drawer-trigger", "aria-label": "Apri menu", onClick: this.openDrawer }, h("z-icon", { name: "burger-menu" }))), h("div", { class: "heading-title" }, h("slot", { name: "stucked-title" }, this.title)))))));
|
|
111
113
|
}
|
|
112
114
|
openDrawer() {
|
|
113
115
|
this.drawerOpen = true;
|
|
@@ -118,7 +120,7 @@ const ZAppHeader = class {
|
|
|
118
120
|
get hostElement() { return getElement(this); }
|
|
119
121
|
static get watchers() { return {
|
|
120
122
|
"stuck": ["onStuckMode"],
|
|
121
|
-
"
|
|
123
|
+
"_stuck": ["onStuck"],
|
|
122
124
|
"drawerOpen": ["setMenuFloatingMode"]
|
|
123
125
|
}; }
|
|
124
126
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-b3a91e19.js';
|
|
2
|
-
import { T as ThemeVariant } from './index-
|
|
2
|
+
import { T as ThemeVariant } from './index-4f1e2705.js';
|
|
3
3
|
|
|
4
|
-
const stylesCss = ":host{font-family:var(--dashboard-font);font-weight:var(--font-rg)}button{display:flex;
|
|
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
5
|
|
|
6
6
|
const ZAppSwitcher = class {
|
|
7
7
|
constructor(hostRef) {
|
|
8
8
|
registerInstance(this, hostRef);
|
|
9
9
|
this.appButtonClick = createEvent(this, "appButtonClick", 7);
|
|
10
10
|
/** theme variant, default 'dark' */
|
|
11
|
-
this.theme = ThemeVariant.
|
|
11
|
+
this.theme = ThemeVariant.DARK;
|
|
12
12
|
this.isopen = false;
|
|
13
13
|
this.emitAppButtonClick = this.emitAppButtonClick.bind(this);
|
|
14
14
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host } from './index-b3a91e19.js';
|
|
2
|
-
import { Z as ZAriaAlertMode } from './index-
|
|
2
|
+
import { Z as ZAriaAlertMode } from './index-4f1e2705.js';
|
|
3
3
|
|
|
4
4
|
const ZAriaAlert = class {
|
|
5
5
|
constructor(hostRef) {
|
|
6
6
|
registerInstance(this, hostRef);
|
|
7
|
-
|
|
7
|
+
/** Aria live mode */
|
|
8
|
+
this.mode = ZAriaAlertMode.POLITE;
|
|
8
9
|
}
|
|
9
10
|
render() {
|
|
10
11
|
return (h(Host, { "aria-live": this.mode, "aria-atomic": "true", "aria-relevant": "additions" }, h("slot", null)));
|
|
@@ -1,29 +1,30 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host } from './index-b3a91e19.js';
|
|
2
|
-
import { A as AvatarSize } from './index-
|
|
2
|
+
import { A as AvatarSize } from './index-4f1e2705.js';
|
|
3
3
|
|
|
4
|
-
const stylesCss = ":host{
|
|
4
|
+
const stylesCss = ":host{display:inline-flex;overflow:hidden;align-items:center;justify-content:center;background-color:var(--bg-grey-700);border-radius:50%;font-family:var(--font-family-sans);text-transform:uppercase}:host(.small),:host(.small)>img{width:calc(var(--space-unit) * 3);height:calc(var(--space-unit) * 3)}:host(.medium),:host(.medium)>img{width:calc(var(--space-unit) * 4);height:calc(var(--space-unit) * 4)}:host(.large),:host(.large)>img{width:calc(var(--space-unit) * 5);height:calc(var(--space-unit) * 5)}:host>img{object-fit:cover}";
|
|
5
5
|
|
|
6
6
|
const ZAvatar = class {
|
|
7
7
|
constructor(hostRef) {
|
|
8
8
|
registerInstance(this, hostRef);
|
|
9
|
+
var _a, _b;
|
|
9
10
|
/** [optional] Avatar size */
|
|
10
|
-
this.size = AvatarSize.
|
|
11
|
+
this.size = AvatarSize.MEDIUM;
|
|
11
12
|
/** [optional] Avatar text color */
|
|
12
13
|
this.textColor = "text-white";
|
|
13
14
|
/** [optional] Avatar background color */
|
|
14
15
|
this.backgroundColor = "bg-grey-700";
|
|
15
|
-
if (
|
|
16
|
+
if (((_a = this.text) === null || _a === void 0 ? void 0 : _a.length) === 0 && ((_b = this.image) === null || _b === void 0 ? void 0 : _b.length) === 0) {
|
|
16
17
|
console.warn("z-avatar must contain at least one prop between text and image");
|
|
17
18
|
}
|
|
18
19
|
}
|
|
19
20
|
getTextSize() {
|
|
20
|
-
if (this.size === AvatarSize.
|
|
21
|
+
if (this.size === AvatarSize.SMALL) {
|
|
21
22
|
return "5";
|
|
22
23
|
}
|
|
23
|
-
else if (this.size === AvatarSize.
|
|
24
|
+
else if (this.size === AvatarSize.MEDIUM) {
|
|
24
25
|
return "4";
|
|
25
26
|
}
|
|
26
|
-
else if (this.size === AvatarSize.
|
|
27
|
+
else if (this.size === AvatarSize.LARGE) {
|
|
27
28
|
return "2";
|
|
28
29
|
}
|
|
29
30
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
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,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-b3a91e19.js';
|
|
2
2
|
import { t as tabletBreakpoint } from './breakpoints-e07f80e7.js';
|
|
3
3
|
|
|
4
|
-
const stylesCss = ":host,button{max-width:100%}button{height:36px;border:var(--border-size-medium) solid var(--myz-blue);border-radius:var(--border-radius);color:var(--myz-blue);fill:var(--myz-blue);
|
|
4
|
+
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: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.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}}";
|
|
5
5
|
|
|
6
6
|
const ZButtonSort = class {
|
|
7
7
|
constructor(hostRef) {
|
|
@@ -30,13 +30,12 @@ const ZButtonSort = class {
|
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
32
|
componentDidLoad() {
|
|
33
|
-
if (this.elementHasEllipsis() && window.innerWidth > tabletBreakpoint)
|
|
33
|
+
if (this.elementHasEllipsis() && window.innerWidth > tabletBreakpoint) {
|
|
34
34
|
this.allowTooltip = true;
|
|
35
|
+
}
|
|
35
36
|
}
|
|
36
37
|
setButtonTitle() {
|
|
37
|
-
return this.allowTooltip
|
|
38
|
-
? `${this.sortasc ? this.label : this.desclabel}`
|
|
39
|
-
: "";
|
|
38
|
+
return this.allowTooltip ? `${this.sortasc ? this.label : this.desclabel}` : "";
|
|
40
39
|
}
|
|
41
40
|
elementHasEllipsis() {
|
|
42
41
|
return this.ellipsis.offsetWidth < this.ellipsis.scrollWidth;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, a as getElement } from './index-b3a91e19.js';
|
|
2
|
-
import { C as
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-b3a91e19.js';
|
|
2
|
+
import { C as CardVariant } from './index-4f1e2705.js';
|
|
3
3
|
|
|
4
|
-
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
|
|
4
|
+
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=\"text\"]),::slotted([slot=\"actions\"]){margin:0}::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;font-weight:var(--font-sb);-webkit-line-clamp:2}::slotted([slot=\"text\"]){-webkit-line-clamp:3}.actions{display:flex;flex-direction:row;align-items:center}::slotted([slot=\"action\"]:not(:last-child)){margin-right:calc(var(--space-unit) * 1.5)}:host([clickable]){cursor:pointer}:host([clickable]:focus:focus-visible){outline:none}:host(:not([variant])[clickable]:focus:focus-visible){padding:calc(var(--space-unit) * 0.5);box-shadow:var(--shadow-focus-primary)}: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([showshadow])>.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:calc(var(--space-unit) * 2) var(--space-unit)}: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([showshadow]){box-shadow:var(--shadow-2)}:host([variant=\"shadow\"][clickable]:hover),:host([clickable][showshadow]:hover){box-shadow:var(--shadow-4)}:host([variant=\"shadow\"][clickable]:focus:focus-visible),:host([clickable][showshadow]:focus:focus-visible){box-shadow:var(--shadow-4)}:host([variant=\"shadow\"][clickable]:active),:host([clickable][showshadow]: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)}";
|
|
5
5
|
|
|
6
6
|
const ZCard = class {
|
|
7
7
|
constructor(hostRef) {
|
|
@@ -14,7 +14,7 @@ const ZCard = class {
|
|
|
14
14
|
}
|
|
15
15
|
onClick(ev) {
|
|
16
16
|
// Do nothing for clicks on actions.
|
|
17
|
-
if (ev.target.getAttribute(
|
|
17
|
+
if (ev.target.getAttribute("slot") === "action") {
|
|
18
18
|
return;
|
|
19
19
|
}
|
|
20
20
|
if (!this.clickable) {
|
|
@@ -25,7 +25,7 @@ const ZCard = class {
|
|
|
25
25
|
this.cardClicked.emit();
|
|
26
26
|
}
|
|
27
27
|
componentWillLoad() {
|
|
28
|
-
this.hasCoverImage =
|
|
28
|
+
this.hasCoverImage = this.host.querySelector('[slot="cover"]') !== null;
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
31
|
* Template for a card without image cover.
|
|
@@ -34,29 +34,26 @@ const ZCard = class {
|
|
|
34
34
|
renderColorCoverCard() {
|
|
35
35
|
return [
|
|
36
36
|
h("div", { class: "cover-container" }, h("div", { class: "color-cover" }, h("div", { class: "cover-content" }, h("slot", { name: "metadata" }), h("slot", { name: "title" })))),
|
|
37
|
-
h("div", { class: "content" }, h("slot", { name: "text" }), h("div", { class: "actions" }, h("slot", { name: "action" })))
|
|
37
|
+
h("div", { class: "content" }, h("slot", { name: "text" }), h("div", { class: "actions" }, h("slot", { name: "action" }))),
|
|
38
38
|
];
|
|
39
39
|
}
|
|
40
40
|
/**
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
* Template for the content div.
|
|
42
|
+
*/
|
|
43
43
|
renderContentDiv() {
|
|
44
44
|
return (h("div", { class: "content" }, h("slot", { name: "metadata" }), h("slot", { name: "title" }), h("slot", { name: "text" }), h("div", { class: "actions" }, h("slot", { name: "action" }))));
|
|
45
45
|
}
|
|
46
46
|
render() {
|
|
47
|
-
if (this.variant ===
|
|
48
|
-
return this.renderContentDiv();
|
|
47
|
+
if (this.variant === CardVariant.TEXT) {
|
|
48
|
+
return h(Host, null, this.renderContentDiv());
|
|
49
49
|
}
|
|
50
|
-
if (this.variant ===
|
|
51
|
-
return [
|
|
52
|
-
h("
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
], !this.hasCoverImage && h("div", { class: "color-cover" })),
|
|
56
|
-
this.renderContentDiv()
|
|
57
|
-
];
|
|
50
|
+
if (this.variant === CardVariant.OVERLAY || this.hasCoverImage) {
|
|
51
|
+
return (h(Host, null, h("div", { class: "cover-container" }, this.hasCoverImage && [
|
|
52
|
+
h("slot", { name: "cover" }),
|
|
53
|
+
this.variant !== CardVariant.OVERLAY && this.coverIcon && h("z-icon", { name: this.coverIcon }),
|
|
54
|
+
], !this.hasCoverImage && h("div", { class: "color-cover" })), this.renderContentDiv()));
|
|
58
55
|
}
|
|
59
|
-
return this.renderColorCoverCard();
|
|
56
|
+
return h(Host, null, this.renderColorCoverCard());
|
|
60
57
|
}
|
|
61
58
|
get host() { return getElement(this); }
|
|
62
59
|
};
|
|
@@ -1,19 +1,141 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-b3a91e19.js';
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-b3a91e19.js';
|
|
2
|
+
import { c as CarouselArrowsPosition, d as CarouselProgressMode, b as ButtonSize, B as ButtonVariant } from './index-4f1e2705.js';
|
|
2
3
|
|
|
3
|
-
const stylesCss = "
|
|
4
|
+
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)}";
|
|
4
5
|
|
|
5
6
|
const ZCarousel = class {
|
|
6
7
|
constructor(hostRef) {
|
|
7
8
|
registerInstance(this, hostRef);
|
|
8
|
-
|
|
9
|
+
this.indexChange = createEvent(this, "indexChange", 7);
|
|
10
|
+
/** Shows only one content at a time */
|
|
11
|
+
this.single = false;
|
|
12
|
+
/** The height of z-carousel ghost loading, this prop is mandatory when isloading is set to true, as otherwise the component won't show. */
|
|
9
13
|
this.ghostLoadingHeight = 100;
|
|
14
|
+
/** Current item index for single mode. */
|
|
15
|
+
this.current = 0;
|
|
16
|
+
/** Flag indicating the items container is about to scroll programmatically towards the stored index. */
|
|
17
|
+
this.scrollingTo = null;
|
|
18
|
+
}
|
|
19
|
+
onIndexChange() {
|
|
20
|
+
this.indexChange.emit({ currentItem: this.current });
|
|
21
|
+
}
|
|
22
|
+
onSingleModeChange() {
|
|
23
|
+
if (this.single && !this.intersectionObserver) {
|
|
24
|
+
this.setIntersectionObserver();
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Set an intersection observer to:
|
|
29
|
+
* - highlight the indicator of the intersecting item during scroll
|
|
30
|
+
* - set the current item to the last intersecting item
|
|
31
|
+
*/
|
|
32
|
+
setIntersectionObserver() {
|
|
33
|
+
this.intersectionObserver = new window.IntersectionObserver((entries) => {
|
|
34
|
+
const entry = entries.find((entry) => entry.isIntersecting);
|
|
35
|
+
if (!entry) {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
const entryIndex = this.items.findIndex((item) => item === entry.target);
|
|
39
|
+
this.highlightedIndicator = entryIndex;
|
|
40
|
+
/* skip setting the current item if intersection has been triggered by a programmatic scroll
|
|
41
|
+
(@see `goTo` function) and the final index has not been reached */
|
|
42
|
+
if (this.scrollingTo !== null && entryIndex !== this.scrollingTo) {
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
this.scrollingTo = null;
|
|
46
|
+
this.current = entryIndex;
|
|
47
|
+
}, {
|
|
48
|
+
root: this.itemsContainer,
|
|
49
|
+
threshold: 0.5,
|
|
50
|
+
});
|
|
51
|
+
this.items.forEach((element) => this.intersectionObserver.observe(element));
|
|
52
|
+
}
|
|
53
|
+
onPrev() {
|
|
54
|
+
if (this.single) {
|
|
55
|
+
this.goTo(Math.max(0, this.current - 1));
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
const scroller = this.itemsContainer;
|
|
59
|
+
if (!scroller) {
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
scroller.scrollBy({
|
|
63
|
+
left: -scroller.clientWidth / 2,
|
|
64
|
+
behavior: "smooth",
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
onNext() {
|
|
68
|
+
if (this.single) {
|
|
69
|
+
this.goTo(Math.min(this.current + 1, this.items.length - 1));
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
const scroller = this.itemsContainer;
|
|
73
|
+
if (!scroller) {
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
scroller.scrollBy({
|
|
77
|
+
left: scroller.clientWidth / 2,
|
|
78
|
+
behavior: "smooth",
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Check if navigation buttons can be enabled or not and set local states.
|
|
83
|
+
*/
|
|
84
|
+
checkNavigationValidity() {
|
|
85
|
+
if (this.single) {
|
|
86
|
+
this.canNavigatePrev = this.current > 1;
|
|
87
|
+
this.canNavigateNext = this.current < this.items.length - 1;
|
|
88
|
+
}
|
|
89
|
+
this.canNavigatePrev = this.itemsContainer.scrollLeft > 0;
|
|
90
|
+
this.canNavigateNext =
|
|
91
|
+
this.itemsContainer.scrollLeft < this.itemsContainer.scrollWidth - this.itemsContainer.clientWidth;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Check if footer can be rendered.
|
|
95
|
+
*/
|
|
96
|
+
canShowFooter() {
|
|
97
|
+
return (this.arrowsPosition === CarouselArrowsPosition.BOTTOM ||
|
|
98
|
+
this.progressMode === CarouselProgressMode.DOTS ||
|
|
99
|
+
this.progressMode === CarouselProgressMode.NUMBERS);
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Set current item to passed index.
|
|
103
|
+
* @param {number} index Index to set
|
|
104
|
+
*/
|
|
105
|
+
goTo(index) {
|
|
106
|
+
if (this.current === index) {
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
this.scrollingTo = index;
|
|
110
|
+
// the scroll will trigger the IntersectionObserver and set the current item
|
|
111
|
+
this.itemsContainer.scroll({
|
|
112
|
+
left: this.items[index].offsetLeft,
|
|
113
|
+
behavior: "smooth",
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
componentDidLoad() {
|
|
117
|
+
this.itemsContainer = this.hostElement.querySelector(".z-carousel-items-container");
|
|
118
|
+
if (!this.itemsContainer) {
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
121
|
+
this.items = Array.from(this.itemsContainer.querySelectorAll("li"));
|
|
122
|
+
if (this.single) {
|
|
123
|
+
this.setIntersectionObserver();
|
|
124
|
+
}
|
|
125
|
+
this.itemsContainer.addEventListener("scroll", this.checkNavigationValidity.bind(this), { passive: true });
|
|
126
|
+
this.checkNavigationValidity();
|
|
10
127
|
}
|
|
11
128
|
render() {
|
|
12
129
|
if (this.isLoading) {
|
|
13
|
-
return (h("div", { style: { height: `${this.ghostLoadingHeight}px` } }, h("z-ghost-loading", null), h("div", {
|
|
130
|
+
return (h(Host, null, this.label && h("div", { class: "heading-4 z-carousel-title" }, this.label), h("div", { style: { height: `${this.ghostLoadingHeight}px` } }, h("z-ghost-loading", null), h("div", { class: "loading-items-container" }, h("slot", null)))));
|
|
14
131
|
}
|
|
15
|
-
return (h("ul", { class: "z-carousel-items-container" }, h("slot", null)));
|
|
132
|
+
return (h(Host, null, h("div", { class: "z-carousel-container" }, this.label && h("div", { class: "heading-4 z-carousel-title" }, this.label), h("div", { class: "z-carousel-wrapper" }, this.arrowsPosition === CarouselArrowsPosition.OVER && (h("z-button", { size: ButtonSize.SMALL, "data-direction": "prev", icon: "chevron-left", onClick: this.onPrev.bind(this), disabled: !this.canNavigatePrev })), h("ul", { class: "z-carousel-items-container" }, h("slot", null)), this.arrowsPosition === CarouselArrowsPosition.OVER && (h("z-button", { size: ButtonSize.SMALL, "data-direction": "next", icon: "chevron-right", onClick: this.onNext.bind(this), disabled: !this.canNavigateNext })))), this.canShowFooter() && (h("div", { class: "z-carousel-footer" }, this.arrowsPosition === CarouselArrowsPosition.BOTTOM && (h("z-button", { size: ButtonSize.SMALL, variant: ButtonVariant.TERTIARY, icon: "arrow-simple-left-filled", onClick: this.onPrev.bind(this), disabled: !this.canNavigatePrev })), this.progressMode === CarouselProgressMode.DOTS && this.single && this.items && (h("div", { class: "dots-progress" }, this.items.map((_item, key) => (h("button", { type: "button", class: { current: this.highlightedIndicator === key }, onClick: () => this.goTo(key) }, h("z-icon", { name: this.highlightedIndicator === key ? "white-circle-filled" : "black-circle-filled" })))))), this.progressMode === CarouselProgressMode.NUMBERS && this.single && this.items && (h("div", { class: "numbers-progress interactive-3" }, h("span", { class: "current" }, this.current + 1), h("span", null, "di"), h("span", null, this.items.length))), this.arrowsPosition === CarouselArrowsPosition.BOTTOM && (h("z-button", { size: ButtonSize.SMALL, variant: ButtonVariant.TERTIARY, icon: "arrow-simple-right-filled", onClick: this.onNext.bind(this), disabled: !this.canNavigateNext }))))));
|
|
16
133
|
}
|
|
134
|
+
get hostElement() { return getElement(this); }
|
|
135
|
+
static get watchers() { return {
|
|
136
|
+
"current": ["onIndexChange"],
|
|
137
|
+
"single": ["onSingleModeChange"]
|
|
138
|
+
}; }
|
|
17
139
|
};
|
|
18
140
|
ZCarousel.style = stylesCss;
|
|
19
141
|
|