@zanichelli/albe-web-components 6.2.0-a1 → 6.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/dist/cjs/index-199cd650.js +346 -0
- package/dist/cjs/index-e3299e0a.js +34 -10
- package/dist/cjs/index.cjs.js +302 -346
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{utils-7c92be74.js → utils-ce225fb3.js} +5 -4
- package/dist/cjs/{utils-f681590c.js → utils-ebe45309.js} +11 -10
- package/dist/cjs/web-components-library.cjs.js +2 -2
- package/dist/cjs/z-alert.cjs.entry.js +0 -1
- package/dist/cjs/z-anchor-navigation.cjs.entry.js +53 -0
- package/dist/cjs/z-app-header_2.cjs.entry.js +153 -0
- package/dist/cjs/z-app-switcher.cjs.entry.js +29 -0
- package/dist/cjs/z-app-topbar.cjs.entry.js +41 -0
- package/dist/cjs/z-aria-alert.cjs.entry.js +3 -1
- package/dist/cjs/z-avatar.cjs.entry.js +8 -6
- package/dist/cjs/z-body_2.cjs.entry.js +2 -4
- package/dist/cjs/z-button-deprecated.cjs.entry.js +12 -6
- package/dist/cjs/z-button-filter.cjs.entry.js +3 -2
- package/dist/cjs/z-button-sort.cjs.entry.js +4 -4
- package/dist/cjs/z-button.cjs.entry.js +9 -8
- package/dist/cjs/z-card.cjs.entry.js +6 -6
- package/dist/cjs/z-carousel.cjs.entry.js +10 -11
- package/dist/cjs/z-chip-deprecated.cjs.entry.js +0 -2
- package/dist/cjs/z-chip.cjs.entry.js +6 -5
- package/dist/cjs/z-combobox.cjs.entry.js +17 -15
- package/dist/cjs/z-contextual-menu.cjs.entry.js +8 -2
- package/dist/cjs/z-cookiebar.cjs.entry.js +2 -4
- package/dist/cjs/z-cover-hero.cjs.entry.js +14 -6
- package/dist/cjs/z-date-picker.cjs.entry.js +17 -16
- package/dist/cjs/z-divider.cjs.entry.js +26 -0
- package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +1 -2
- package/dist/cjs/z-file-upload.cjs.entry.js +11 -14
- package/dist/cjs/z-file.cjs.entry.js +2 -3
- package/dist/cjs/z-footer-link_3.cjs.entry.js +0 -5
- package/dist/cjs/z-footer.cjs.entry.js +2 -7
- package/dist/cjs/z-info-box.cjs.entry.js +1 -1
- package/dist/cjs/z-info-reveal.cjs.entry.js +6 -2
- package/dist/cjs/z-input-deprecated.cjs.entry.js +29 -28
- package/dist/cjs/z-input-label_2.cjs.entry.js +36 -20
- package/dist/cjs/z-input_2.cjs.entry.js +253 -0
- package/dist/cjs/z-link.cjs.entry.js +74 -0
- package/dist/cjs/z-list_3.cjs.entry.js +226 -0
- package/dist/cjs/z-logo.cjs.entry.js +26 -0
- package/dist/cjs/z-menu-dropdown_2.cjs.entry.js +3 -7
- package/dist/cjs/z-menu-section.cjs.entry.js +0 -3
- package/dist/cjs/z-menu.cjs.entry.js +10 -3
- package/dist/cjs/z-messages-pocket.cjs.entry.js +6 -6
- package/dist/cjs/z-modal-login.cjs.entry.js +5 -7
- package/dist/cjs/z-modal.cjs.entry.js +1 -3
- package/dist/cjs/z-myz-card-alert.cjs.entry.js +3 -6
- package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +6 -3
- package/dist/cjs/z-myz-card-footer.cjs.entry.js +6 -8
- package/dist/cjs/z-myz-card-icon.cjs.entry.js +2 -1
- package/dist/cjs/z-myz-card-info.cjs.entry.js +4 -3
- package/dist/cjs/z-myz-card-list.cjs.entry.js +0 -1
- package/dist/cjs/z-myz-card_4.cjs.entry.js +9 -15
- package/dist/cjs/z-myz-list-item.cjs.entry.js +4 -6
- package/dist/cjs/z-myz-topbar.cjs.entry.js +4 -14
- package/dist/cjs/z-navigation-tab-link.cjs.entry.js +16 -8
- package/dist/cjs/z-navigation-tab.cjs.entry.js +17 -7
- package/dist/cjs/z-navigation-tabs.cjs.entry.js +14 -10
- package/dist/cjs/z-notification.cjs.entry.js +6 -3
- package/dist/cjs/z-offcanvas.cjs.entry.js +12 -4
- package/dist/cjs/z-otp.cjs.entry.js +3 -3
- package/dist/cjs/z-pagination-bar.cjs.entry.js +6 -5
- package/dist/cjs/z-pagination-page.cjs.entry.js +4 -2
- package/dist/cjs/z-pagination.cjs.entry.js +15 -7
- package/dist/cjs/z-panel-elem.cjs.entry.js +2 -7
- package/dist/cjs/z-pocket_3.cjs.entry.js +15 -15
- package/dist/cjs/z-popover-deprecated.cjs.entry.js +15 -8
- package/dist/cjs/z-popover.cjs.entry.js +36 -38
- package/dist/cjs/{z-app-switcher_9.cjs.entry.js → z-range-picker.cjs.entry.js} +22 -464
- package/dist/cjs/z-section-title.cjs.entry.js +10 -2
- package/dist/cjs/z-skip-to-content.cjs.entry.js +4 -3
- package/dist/cjs/z-slideshow.cjs.entry.js +4 -6
- package/dist/cjs/z-status-tag.cjs.entry.js +3 -5
- package/dist/cjs/z-stepper-item.cjs.entry.js +0 -4
- package/dist/cjs/z-table-cell.cjs.entry.js +4 -3
- package/dist/cjs/z-table-empty-box.cjs.entry.js +2 -0
- package/dist/cjs/z-table-expanded-row.cjs.entry.js +0 -1
- package/dist/cjs/z-table-header-row.cjs.entry.js +0 -1
- package/dist/cjs/z-table-header.cjs.entry.js +16 -15
- package/dist/cjs/z-table-row.cjs.entry.js +6 -4
- package/dist/cjs/z-table.cjs.entry.js +12 -9
- package/dist/cjs/z-tag.cjs.entry.js +0 -2
- package/dist/cjs/z-toast-notification-list.cjs.entry.js +4 -1
- package/dist/cjs/z-toast-notification.cjs.entry.js +14 -17
- package/dist/cjs/z-toggle-button.cjs.entry.js +2 -2
- package/dist/cjs/z-toggle-switch.cjs.entry.js +7 -2
- package/dist/cjs/z-tooltip-deprecated.cjs.entry.js +27 -39
- package/dist/cjs/z-tooltip.cjs.entry.js +7 -2
- package/dist/cjs/z-user-dropdown.cjs.entry.js +1 -5
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/buttons/z-button/index.js +9 -8
- package/dist/collection/components/buttons/z-button-sort/index.js +4 -4
- package/dist/collection/components/buttons/z-chip/index.js +5 -4
- package/dist/collection/components/buttons/z-toggle-button/index.js +2 -2
- package/dist/collection/components/buttons/z-toggle-switch/index.js +6 -1
- package/dist/collection/components/date-picker/utils.js +11 -10
- package/dist/collection/components/date-picker/z-date-picker/index.js +16 -15
- package/dist/collection/components/date-picker/z-range-picker/index.js +12 -15
- package/dist/collection/components/file-upload/z-file/index.js +2 -3
- package/dist/collection/components/file-upload/z-file-upload/index.js +10 -13
- package/dist/collection/components/footer/z-footer/index.js +2 -7
- package/dist/collection/components/footer/z-footer-link/index.js +0 -3
- package/dist/collection/components/footer/z-footer-section/index.js +0 -1
- package/dist/collection/components/footer/z-footer-social/index.js +0 -5
- package/dist/collection/components/icons/z-icon/index.js +0 -7
- package/dist/collection/components/index.js +8 -0
- package/dist/collection/components/indicators/z-stepper-item/index.js +0 -6
- package/dist/collection/components/inputs/z-combobox/index.js +16 -14
- package/dist/collection/components/inputs/z-input/index.js +37 -40
- package/dist/collection/components/inputs/z-input-message/index.js +0 -2
- package/dist/collection/components/inputs/z-select/index.js +50 -16
- package/dist/collection/components/inputs/z-select/styles.css +4 -0
- package/dist/collection/components/list/z-list/index.js +5 -1
- package/dist/collection/components/list/z-list-element/index.js +51 -18
- package/dist/collection/components/list/z-list-group/index.js +17 -4
- package/dist/collection/components/list/z-toast-notification-list/index.js +4 -1
- package/dist/collection/components/logo/z-logo/index.js +0 -8
- package/dist/collection/components/modal/z-modal/index.js +1 -3
- package/dist/collection/components/modal/z-modal-login/index.js +5 -7
- package/dist/collection/components/navigation/tabs/z-navigation-tab/index.js +17 -7
- package/dist/collection/components/navigation/tabs/z-navigation-tab-link/index.js +16 -8
- package/dist/collection/components/navigation/tabs/z-navigation-tabs/index.js +14 -10
- package/dist/collection/components/navigation/z-app-header/index.js +29 -7
- package/dist/collection/components/navigation/z-app-switcher/index.js +3 -1
- package/dist/collection/components/navigation/z-app-topbar/index.js +5 -8
- package/dist/collection/components/navigation/z-link/index.js +9 -3
- package/dist/collection/components/navigation/z-menu/index.js +10 -3
- package/dist/collection/components/navigation/z-menu-dropdown/index.js +2 -4
- package/dist/collection/components/navigation/z-menu-section/index.js +0 -5
- package/dist/collection/components/navigation/z-user-dropdown/index.js +1 -5
- package/dist/collection/components/notification/z-cookiebar/index.js +2 -6
- package/dist/collection/components/notification/z-info-box/index.js +1 -1
- package/dist/collection/components/notification/z-notification/index.js +6 -3
- package/dist/collection/components/notification/z-toast-notification/index.js +14 -17
- package/dist/collection/components/notification/z-tooltip/index.js +7 -2
- package/dist/collection/components/panel/z-panel-elem/index.js +2 -7
- package/dist/collection/components/typography/z-body/index.js +1 -2
- package/dist/collection/components/typography/z-heading/index.js +1 -2
- package/dist/collection/components/typography/z-typography/index.js +1 -2
- package/dist/collection/components/z-anchor-navigation/index.js +95 -0
- package/dist/collection/components/z-anchor-navigation/styles.css +118 -0
- package/dist/collection/components/z-aria-alert/index.js +3 -1
- package/dist/collection/components/z-avatar/index.js +8 -6
- package/dist/collection/components/z-card/index.js +6 -6
- package/dist/collection/components/z-carousel/index.js +10 -11
- package/dist/collection/components/z-contextual-menu/index.js +8 -2
- package/dist/collection/components/z-cover-hero/index.js +14 -6
- package/dist/collection/components/z-divider/index.js +6 -2
- package/dist/collection/components/z-info-reveal/index.js +6 -2
- package/dist/collection/components/z-offcanvas/index.js +12 -4
- package/dist/collection/components/z-pagination/index.js +15 -7
- package/dist/collection/components/z-popover/index.js +35 -37
- package/dist/collection/components/z-section-title/index.js +10 -2
- package/dist/collection/components/z-skip-to-content/index.js +3 -2
- package/dist/collection/components/z-table/z-table/index.js +12 -9
- package/dist/collection/components/z-table/z-table-cell/index.js +4 -3
- package/dist/collection/components/z-table/z-table-empty-box/index.js +2 -0
- package/dist/collection/components/z-table/z-table-expanded-row/index.js +0 -3
- package/dist/collection/components/z-table/z-table-header/index.js +15 -14
- package/dist/collection/components/z-table/z-table-header-row/index.js +0 -3
- package/dist/collection/components/z-table/z-table-row/index.js +6 -4
- package/dist/collection/components/z-tag/index.js +0 -4
- package/dist/collection/deprecated/pagination/z-pagination-bar/index.js +4 -4
- package/dist/collection/deprecated/pagination/z-pagination-page/index.js +4 -2
- package/dist/collection/deprecated/z-button-deprecated/index.js +12 -6
- package/dist/collection/deprecated/z-button-filter/index.js +3 -2
- package/dist/collection/deprecated/z-chip-deprecated/index.js +0 -4
- package/dist/collection/deprecated/z-input-deprecated/index.js +28 -27
- package/dist/collection/deprecated/z-input-label/index.js +1 -2
- package/dist/collection/deprecated/z-popover-deprecated/index.js +14 -7
- package/dist/collection/deprecated/z-status-tag/index.js +3 -5
- package/dist/collection/deprecated/z-tooltip-deprecated/index.js +27 -39
- package/dist/collection/snowflakes/myz/card/z-myz-card/index.js +6 -5
- package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js +3 -8
- package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js +0 -6
- package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js +6 -3
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js +6 -8
- package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js +4 -6
- package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js +2 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +3 -2
- package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js +0 -1
- package/dist/collection/snowflakes/myz/list/z-myz-list/index.js +0 -4
- package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js +2 -5
- package/dist/collection/snowflakes/myz/pocket/z-messages-pocket/index.js +6 -6
- package/dist/collection/snowflakes/myz/pocket/z-pocket/index.js +12 -11
- package/dist/collection/snowflakes/myz/pocket/z-pocket-body/index.js +3 -2
- package/dist/collection/snowflakes/myz/pocket/z-pocket-header/index.js +0 -1
- package/dist/collection/snowflakes/myz/topbar/index.js +4 -14
- package/dist/collection/snowflakes/myz/z-alert/index.js +0 -3
- package/dist/collection/snowflakes/myz/z-otp/index.js +3 -3
- package/dist/collection/snowflakes/myz/z-slideshow/index.js +3 -5
- package/dist/collection/utils/utils.js +5 -4
- package/dist/esm/index-9d028352.js +346 -0
- package/dist/esm/index-a2ca4b97.js +34 -10
- package/dist/esm/index.js +3 -347
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{utils-420e8552.js → utils-9e81727a.js} +6 -5
- package/dist/esm/{utils-ff91a03a.js → utils-fbe04cd6.js} +11 -10
- package/dist/esm/web-components-library.js +2 -2
- package/dist/esm/z-alert.entry.js +0 -1
- package/dist/esm/z-anchor-navigation.entry.js +49 -0
- package/dist/esm/z-app-header_2.entry.js +148 -0
- package/dist/esm/z-app-switcher.entry.js +25 -0
- package/dist/esm/z-app-topbar.entry.js +37 -0
- package/dist/esm/z-aria-alert.entry.js +3 -1
- package/dist/esm/z-avatar.entry.js +8 -6
- package/dist/esm/z-body_2.entry.js +2 -4
- package/dist/esm/z-button-deprecated.entry.js +12 -6
- package/dist/esm/z-button-filter.entry.js +3 -2
- package/dist/esm/z-button-sort.entry.js +4 -4
- package/dist/esm/z-button.entry.js +9 -8
- package/dist/esm/z-card.entry.js +6 -6
- package/dist/esm/z-carousel.entry.js +10 -11
- package/dist/esm/z-chip-deprecated.entry.js +0 -2
- package/dist/esm/z-chip.entry.js +6 -5
- package/dist/esm/z-combobox.entry.js +17 -15
- package/dist/esm/z-contextual-menu.entry.js +8 -2
- package/dist/esm/z-cookiebar.entry.js +2 -4
- package/dist/esm/z-cover-hero.entry.js +14 -6
- package/dist/esm/z-date-picker.entry.js +17 -16
- package/dist/esm/z-divider.entry.js +22 -0
- package/dist/esm/z-dragdrop-area_2.entry.js +1 -2
- package/dist/esm/z-file-upload.entry.js +11 -14
- package/dist/esm/z-file.entry.js +2 -3
- package/dist/esm/z-footer-link_3.entry.js +0 -5
- package/dist/esm/z-footer.entry.js +2 -7
- package/dist/esm/z-info-box.entry.js +1 -1
- package/dist/esm/z-info-reveal.entry.js +6 -2
- package/dist/esm/z-input-deprecated.entry.js +29 -28
- package/dist/esm/z-input-label_2.entry.js +36 -20
- package/dist/esm/z-input_2.entry.js +248 -0
- package/dist/esm/z-link.entry.js +70 -0
- package/dist/esm/z-list_3.entry.js +220 -0
- package/dist/esm/z-logo.entry.js +22 -0
- package/dist/esm/z-menu-dropdown_2.entry.js +3 -7
- package/dist/esm/z-menu-section.entry.js +0 -3
- package/dist/esm/z-menu.entry.js +10 -3
- package/dist/esm/z-messages-pocket.entry.js +6 -6
- package/dist/esm/z-modal-login.entry.js +5 -7
- package/dist/esm/z-modal.entry.js +1 -3
- package/dist/esm/z-myz-card-alert.entry.js +3 -6
- package/dist/esm/z-myz-card-dictionary.entry.js +6 -3
- package/dist/esm/z-myz-card-footer.entry.js +6 -8
- package/dist/esm/z-myz-card-icon.entry.js +2 -1
- package/dist/esm/z-myz-card-info.entry.js +4 -3
- package/dist/esm/z-myz-card-list.entry.js +0 -1
- package/dist/esm/z-myz-card_4.entry.js +9 -15
- package/dist/esm/z-myz-list-item.entry.js +4 -6
- package/dist/esm/z-myz-topbar.entry.js +4 -14
- package/dist/esm/z-navigation-tab-link.entry.js +16 -8
- package/dist/esm/z-navigation-tab.entry.js +17 -7
- package/dist/esm/z-navigation-tabs.entry.js +14 -10
- package/dist/esm/z-notification.entry.js +6 -3
- package/dist/esm/z-offcanvas.entry.js +12 -4
- package/dist/esm/z-otp.entry.js +3 -3
- package/dist/esm/z-pagination-bar.entry.js +6 -5
- package/dist/esm/z-pagination-page.entry.js +4 -2
- package/dist/esm/z-pagination.entry.js +15 -7
- package/dist/esm/z-panel-elem.entry.js +2 -7
- package/dist/esm/z-pocket_3.entry.js +15 -15
- package/dist/esm/z-popover-deprecated.entry.js +15 -8
- package/dist/esm/z-popover.entry.js +36 -38
- package/dist/esm/{z-app-switcher_9.entry.js → z-range-picker.entry.js} +15 -449
- package/dist/esm/z-section-title.entry.js +10 -2
- package/dist/esm/z-skip-to-content.entry.js +4 -3
- package/dist/esm/z-slideshow.entry.js +4 -6
- package/dist/esm/z-status-tag.entry.js +3 -5
- package/dist/esm/z-stepper-item.entry.js +0 -4
- package/dist/esm/z-table-cell.entry.js +4 -3
- package/dist/esm/z-table-empty-box.entry.js +2 -0
- package/dist/esm/z-table-expanded-row.entry.js +0 -1
- package/dist/esm/z-table-header-row.entry.js +0 -1
- package/dist/esm/z-table-header.entry.js +16 -15
- package/dist/esm/z-table-row.entry.js +6 -4
- package/dist/esm/z-table.entry.js +12 -9
- package/dist/esm/z-tag.entry.js +0 -2
- package/dist/esm/z-toast-notification-list.entry.js +4 -1
- package/dist/esm/z-toast-notification.entry.js +14 -17
- package/dist/esm/z-toggle-button.entry.js +2 -2
- package/dist/esm/z-toggle-switch.entry.js +7 -2
- package/dist/esm/z-tooltip-deprecated.entry.js +27 -39
- package/dist/esm/z-tooltip.entry.js +7 -2
- package/dist/esm/z-user-dropdown.entry.js +1 -5
- package/dist/types/beans/index.d.ts +51 -50
- package/dist/types/components/index.d.ts +0 -0
- package/dist/types/components/inputs/z-select/index.d.ts +3 -0
- package/dist/types/components/z-anchor-navigation/index.d.ts +39 -0
- package/dist/types/components.d.ts +23 -0
- package/dist/types/stencil-public-runtime.d.ts +0 -5
- package/dist/web-components-library/index.esm.js +1 -1
- package/dist/web-components-library/p-05ced71c.entry.js +1 -0
- package/dist/web-components-library/p-074ea569.entry.js +1 -0
- package/dist/web-components-library/p-1106ead2.entry.js +1 -0
- package/dist/web-components-library/p-15b8a920.entry.js +1 -0
- package/dist/web-components-library/p-15fe7b71.entry.js +1 -0
- package/dist/web-components-library/p-16da5460.js +1 -0
- package/dist/web-components-library/p-1cb23bbb.entry.js +1 -0
- package/dist/web-components-library/p-1e6a2a56.entry.js +1 -0
- package/dist/web-components-library/p-2774ab29.entry.js +1 -0
- package/dist/web-components-library/p-28ff9383.entry.js +1 -0
- package/dist/web-components-library/p-2efedcf4.entry.js +1 -0
- package/dist/web-components-library/p-344e7ae7.entry.js +1 -0
- package/dist/web-components-library/p-3ba1b96e.entry.js +1 -0
- package/dist/web-components-library/p-3c2d438b.entry.js +1 -0
- package/dist/web-components-library/p-3f55dce6.entry.js +1 -0
- package/dist/web-components-library/p-40e0d384.entry.js +1 -0
- package/dist/web-components-library/p-41e2bb0f.entry.js +1 -0
- package/dist/web-components-library/p-442b8b35.entry.js +1 -0
- package/dist/web-components-library/p-4cd6c6f4.entry.js +1 -0
- package/dist/web-components-library/p-4d093e07.entry.js +1 -0
- package/dist/web-components-library/{p-48624926.entry.js → p-4d42f224.entry.js} +1 -1
- package/dist/web-components-library/p-4d93268a.entry.js +1 -0
- package/dist/web-components-library/p-4ec9ab53.entry.js +1 -0
- package/dist/web-components-library/p-53a03f2a.entry.js +1 -0
- package/dist/web-components-library/p-562ad563.entry.js +1 -0
- package/dist/web-components-library/p-58650e22.entry.js +1 -0
- package/dist/web-components-library/p-5bec950e.entry.js +1 -0
- package/dist/web-components-library/p-5c02e500.entry.js +1 -0
- package/dist/web-components-library/p-5cf4a412.entry.js +1 -0
- package/dist/web-components-library/p-61424b8a.entry.js +1 -0
- package/dist/web-components-library/p-681e1f5a.entry.js +1 -0
- package/dist/web-components-library/p-686545fa.entry.js +1 -0
- package/dist/web-components-library/p-6b11cc16.entry.js +1 -0
- package/dist/web-components-library/p-6f64e8a8.entry.js +1 -0
- package/dist/web-components-library/p-70d16b2c.entry.js +1 -0
- package/dist/web-components-library/p-7688f8ca.entry.js +1 -0
- package/dist/web-components-library/p-77e4774d.entry.js +1 -0
- package/dist/web-components-library/p-7d696941.entry.js +1 -0
- package/dist/web-components-library/p-7d792297.entry.js +1 -0
- package/dist/web-components-library/p-7dd5431f.entry.js +1 -0
- package/dist/web-components-library/p-7ebdeefa.entry.js +1 -0
- package/dist/web-components-library/p-810bd730.entry.js +1 -0
- package/dist/web-components-library/p-9434d80c.entry.js +1 -0
- package/dist/web-components-library/p-9d03a7d6.entry.js +1 -0
- package/dist/web-components-library/p-9ecc5eba.entry.js +1 -0
- package/dist/web-components-library/p-9f80c0b8.js +1 -0
- package/dist/web-components-library/p-9fe267fc.entry.js +1 -0
- package/dist/web-components-library/p-a17b363e.entry.js +1 -0
- package/dist/web-components-library/p-a329f5ff.entry.js +1 -0
- package/dist/web-components-library/p-a79d1412.entry.js +1 -0
- package/dist/web-components-library/p-aded8a43.entry.js +1 -0
- package/dist/web-components-library/p-ae79573a.entry.js +1 -0
- package/dist/web-components-library/{p-4c7f4a2c.entry.js → p-b17981a4.entry.js} +1 -1
- package/dist/web-components-library/p-b4fbb6e4.entry.js +1 -0
- package/dist/web-components-library/p-b5086d6d.entry.js +1 -0
- package/dist/web-components-library/p-bb0fe7bc.entry.js +1 -0
- package/dist/web-components-library/p-bb15a265.js +1 -0
- package/dist/web-components-library/p-c2d1785b.entry.js +1 -0
- package/dist/web-components-library/p-c3f29701.entry.js +1 -0
- package/dist/web-components-library/p-c6a662e6.entry.js +1 -0
- package/dist/web-components-library/p-c6aad085.entry.js +1 -0
- package/dist/web-components-library/p-c75e80fb.entry.js +1 -0
- package/dist/web-components-library/p-cb5d8a84.entry.js +1 -0
- package/dist/web-components-library/p-ce83ce18.entry.js +1 -0
- package/dist/web-components-library/p-cea1f402.entry.js +1 -0
- package/dist/web-components-library/p-d199b781.entry.js +1 -0
- package/dist/web-components-library/p-d3645ced.entry.js +1 -0
- package/dist/web-components-library/p-d531d1d2.entry.js +1 -0
- package/dist/web-components-library/p-d572a365.entry.js +1 -0
- package/dist/web-components-library/p-d5f6bf94.entry.js +1 -0
- package/dist/web-components-library/p-db5a98d1.entry.js +1 -0
- package/dist/web-components-library/p-dc2ca41d.entry.js +1 -0
- package/dist/web-components-library/p-e68c18e5.entry.js +1 -0
- package/dist/web-components-library/p-e731914a.entry.js +1 -0
- package/dist/web-components-library/p-e8fbb103.entry.js +1 -0
- package/dist/web-components-library/p-ecc4afa1.entry.js +1 -0
- package/dist/web-components-library/p-ede9fbf5.entry.js +1 -0
- package/dist/web-components-library/p-f0653e72.entry.js +1 -0
- package/dist/web-components-library/{p-2c18a622.entry.js → p-f158d205.entry.js} +1 -1
- package/dist/web-components-library/p-f260c62b.entry.js +1 -0
- package/dist/web-components-library/p-f2f9a1bc.entry.js +1 -0
- package/dist/web-components-library/p-f2fd1e20.entry.js +1 -0
- package/dist/web-components-library/p-f7c1eb3f.entry.js +16 -0
- package/dist/web-components-library/p-f8ef69c4.entry.js +1 -0
- package/dist/web-components-library/p-f95cc914.entry.js +1 -0
- package/dist/web-components-library/p-fb7d33f2.entry.js +1 -0
- package/dist/web-components-library/web-components-library.css +1 -1
- package/dist/web-components-library/web-components-library.esm.js +1 -1
- package/package.json +4 -4
- package/react/components.d.ts +1 -0
- package/react/components.js +4 -3
- package/react/components.js.map +1 -1
- package/www/build/index.esm.js +1 -1
- package/www/build/p-05ced71c.entry.js +1 -0
- package/www/build/p-074ea569.entry.js +1 -0
- package/www/build/p-1106ead2.entry.js +1 -0
- package/www/build/p-15b8a920.entry.js +1 -0
- package/www/build/p-15fe7b71.entry.js +1 -0
- package/www/build/p-16da5460.js +1 -0
- package/www/build/p-1cb23bbb.entry.js +1 -0
- package/www/build/p-1e6a2a56.entry.js +1 -0
- package/www/build/p-2774ab29.entry.js +1 -0
- package/www/build/p-28ff9383.entry.js +1 -0
- package/www/build/p-2efedcf4.entry.js +1 -0
- package/www/build/p-344e7ae7.entry.js +1 -0
- package/www/build/p-3ba1b96e.entry.js +1 -0
- package/www/build/p-3c2d438b.entry.js +1 -0
- package/www/build/p-3f55dce6.entry.js +1 -0
- package/www/build/p-40e0d384.entry.js +1 -0
- package/www/build/p-41e2bb0f.entry.js +1 -0
- package/www/build/p-442b8b35.entry.js +1 -0
- package/www/build/p-4cd6c6f4.entry.js +1 -0
- package/www/build/p-4d093e07.entry.js +1 -0
- package/www/build/{p-48624926.entry.js → p-4d42f224.entry.js} +1 -1
- package/www/build/p-4d93268a.entry.js +1 -0
- package/www/build/p-4d9ae314.js +1 -0
- package/www/build/p-4ec9ab53.entry.js +1 -0
- package/www/build/p-53a03f2a.entry.js +1 -0
- package/www/build/p-562ad563.entry.js +1 -0
- package/www/build/p-58650e22.entry.js +1 -0
- package/www/build/p-5bec950e.entry.js +1 -0
- package/www/build/p-5c02e500.entry.js +1 -0
- package/www/build/p-5cf4a412.entry.js +1 -0
- package/www/build/p-61424b8a.entry.js +1 -0
- package/www/build/p-681e1f5a.entry.js +1 -0
- package/www/build/p-686545fa.entry.js +1 -0
- package/www/build/p-6b11cc16.entry.js +1 -0
- package/www/build/p-6f64e8a8.entry.js +1 -0
- package/www/build/p-70d16b2c.entry.js +1 -0
- package/www/build/p-7688f8ca.entry.js +1 -0
- package/www/build/p-77e4774d.entry.js +1 -0
- package/www/build/p-7d696941.entry.js +1 -0
- package/www/build/p-7d792297.entry.js +1 -0
- package/www/build/p-7dd5431f.entry.js +1 -0
- package/www/build/p-7ebdeefa.entry.js +1 -0
- package/www/build/p-810bd730.entry.js +1 -0
- package/www/build/p-9434d80c.entry.js +1 -0
- package/www/build/p-95af35f4.css +1 -0
- package/www/build/p-9d03a7d6.entry.js +1 -0
- package/www/build/p-9ecc5eba.entry.js +1 -0
- package/www/build/p-9f80c0b8.js +1 -0
- package/www/build/p-9fe267fc.entry.js +1 -0
- package/www/build/p-a17b363e.entry.js +1 -0
- package/www/build/p-a329f5ff.entry.js +1 -0
- package/www/build/p-a79d1412.entry.js +1 -0
- package/www/build/p-aded8a43.entry.js +1 -0
- package/www/build/p-ae79573a.entry.js +1 -0
- package/www/build/{p-4c7f4a2c.entry.js → p-b17981a4.entry.js} +1 -1
- package/www/build/p-b4fbb6e4.entry.js +1 -0
- package/www/build/p-b5086d6d.entry.js +1 -0
- package/www/build/p-bb0fe7bc.entry.js +1 -0
- package/www/build/p-bb15a265.js +1 -0
- package/www/build/p-c2d1785b.entry.js +1 -0
- package/www/build/p-c3f29701.entry.js +1 -0
- package/www/build/p-c6a662e6.entry.js +1 -0
- package/www/build/p-c6aad085.entry.js +1 -0
- package/www/build/p-c75e80fb.entry.js +1 -0
- package/www/build/p-cb5d8a84.entry.js +1 -0
- package/www/build/p-ce83ce18.entry.js +1 -0
- package/www/build/p-cea1f402.entry.js +1 -0
- package/www/build/p-d199b781.entry.js +1 -0
- package/www/build/p-d3645ced.entry.js +1 -0
- package/www/build/p-d531d1d2.entry.js +1 -0
- package/www/build/p-d572a365.entry.js +1 -0
- package/www/build/p-d5f6bf94.entry.js +1 -0
- package/www/build/p-db5a98d1.entry.js +1 -0
- package/www/build/p-dc2ca41d.entry.js +1 -0
- package/www/build/p-e68c18e5.entry.js +1 -0
- package/www/build/p-e731914a.entry.js +1 -0
- package/www/build/p-e8fbb103.entry.js +1 -0
- package/www/build/p-ecc4afa1.entry.js +1 -0
- package/www/build/p-ede9fbf5.entry.js +1 -0
- package/www/build/p-f0653e72.entry.js +1 -0
- package/www/build/{p-2c18a622.entry.js → p-f158d205.entry.js} +1 -1
- package/www/build/p-f260c62b.entry.js +1 -0
- package/www/build/p-f2f9a1bc.entry.js +1 -0
- package/www/build/p-f2fd1e20.entry.js +1 -0
- package/www/build/p-f7c1eb3f.entry.js +16 -0
- package/www/build/p-f8ef69c4.entry.js +1 -0
- package/www/build/p-f95cc914.entry.js +1 -0
- package/www/build/p-fb7d33f2.entry.js +1 -0
- package/www/build/web-components-library.css +1 -1
- package/www/build/web-components-library.esm.js +1 -1
- package/www/index.html +1 -24
- package/dist/cjs/z-app-header.cjs.entry.js +0 -111
- package/dist/cjs/z-list-group.cjs.entry.js +0 -41
- package/dist/cjs/z-list_2.cjs.entry.js +0 -143
- package/dist/esm/z-app-header.entry.js +0 -107
- package/dist/esm/z-list-group.entry.js +0 -37
- package/dist/esm/z-list_2.entry.js +0 -138
- package/dist/web-components-library/p-016b2800.entry.js +0 -1
- package/dist/web-components-library/p-04908405.entry.js +0 -1
- package/dist/web-components-library/p-06430481.entry.js +0 -1
- package/dist/web-components-library/p-067bd5da.entry.js +0 -1
- package/dist/web-components-library/p-082d65b1.entry.js +0 -1
- package/dist/web-components-library/p-0cff6cce.entry.js +0 -1
- package/dist/web-components-library/p-0e743002.entry.js +0 -1
- package/dist/web-components-library/p-10b84e8c.entry.js +0 -1
- package/dist/web-components-library/p-12211a48.entry.js +0 -1
- package/dist/web-components-library/p-14233b99.entry.js +0 -1
- package/dist/web-components-library/p-176256ee.js +0 -1
- package/dist/web-components-library/p-1ab0de76.entry.js +0 -1
- package/dist/web-components-library/p-1d2d5232.entry.js +0 -1
- package/dist/web-components-library/p-20109d3a.entry.js +0 -1
- package/dist/web-components-library/p-2cf26585.entry.js +0 -1
- package/dist/web-components-library/p-2d506c48.entry.js +0 -1
- package/dist/web-components-library/p-2d5d8e6f.entry.js +0 -1
- package/dist/web-components-library/p-2e7a31ac.entry.js +0 -1
- package/dist/web-components-library/p-2f6f3729.entry.js +0 -1
- package/dist/web-components-library/p-30cbafaf.entry.js +0 -1
- package/dist/web-components-library/p-341ddb5d.entry.js +0 -1
- package/dist/web-components-library/p-34a96008.entry.js +0 -1
- package/dist/web-components-library/p-35b30271.entry.js +0 -1
- package/dist/web-components-library/p-36f4ce3f.entry.js +0 -1
- package/dist/web-components-library/p-3c28f72e.entry.js +0 -1
- package/dist/web-components-library/p-3c7cf41f.entry.js +0 -1
- package/dist/web-components-library/p-3e414cf1.entry.js +0 -1
- package/dist/web-components-library/p-3ecfb7c1.entry.js +0 -1
- package/dist/web-components-library/p-40f96085.entry.js +0 -1
- package/dist/web-components-library/p-53d22727.entry.js +0 -1
- package/dist/web-components-library/p-563529f8.entry.js +0 -1
- package/dist/web-components-library/p-57faab40.entry.js +0 -1
- package/dist/web-components-library/p-5b2d8a91.entry.js +0 -1
- package/dist/web-components-library/p-670232c4.entry.js +0 -1
- package/dist/web-components-library/p-67f346d9.entry.js +0 -1
- package/dist/web-components-library/p-691678c8.entry.js +0 -1
- package/dist/web-components-library/p-69b27fe9.entry.js +0 -16
- package/dist/web-components-library/p-6fe1bffb.entry.js +0 -1
- package/dist/web-components-library/p-728e7dcd.entry.js +0 -1
- package/dist/web-components-library/p-74e31a32.entry.js +0 -1
- package/dist/web-components-library/p-759fb7c4.entry.js +0 -1
- package/dist/web-components-library/p-79223014.entry.js +0 -1
- package/dist/web-components-library/p-7b22a446.entry.js +0 -1
- package/dist/web-components-library/p-7c40fb15.entry.js +0 -1
- package/dist/web-components-library/p-7cbc1836.entry.js +0 -1
- package/dist/web-components-library/p-830b21a4.entry.js +0 -1
- package/dist/web-components-library/p-87099b68.entry.js +0 -1
- package/dist/web-components-library/p-8cabed58.entry.js +0 -1
- package/dist/web-components-library/p-8cf14a47.entry.js +0 -1
- package/dist/web-components-library/p-8eaa46ac.entry.js +0 -1
- package/dist/web-components-library/p-985c5ed8.entry.js +0 -1
- package/dist/web-components-library/p-9f6b43a0.entry.js +0 -1
- package/dist/web-components-library/p-9f8d0f79.entry.js +0 -1
- package/dist/web-components-library/p-a25a8231.entry.js +0 -1
- package/dist/web-components-library/p-a3b8dd69.entry.js +0 -1
- package/dist/web-components-library/p-aa271ed7.entry.js +0 -1
- package/dist/web-components-library/p-ac1a9d63.entry.js +0 -1
- package/dist/web-components-library/p-af4a9bb7.entry.js +0 -1
- package/dist/web-components-library/p-ba495cad.entry.js +0 -1
- package/dist/web-components-library/p-ba9210e9.entry.js +0 -1
- package/dist/web-components-library/p-bf9348e6.entry.js +0 -1
- package/dist/web-components-library/p-c0df6e96.entry.js +0 -1
- package/dist/web-components-library/p-c2b368ff.entry.js +0 -1
- package/dist/web-components-library/p-c39c68b9.entry.js +0 -1
- package/dist/web-components-library/p-cadba1e5.entry.js +0 -1
- package/dist/web-components-library/p-ccb3764b.entry.js +0 -1
- package/dist/web-components-library/p-d668461a.js +0 -1
- package/dist/web-components-library/p-d767f784.entry.js +0 -1
- package/dist/web-components-library/p-d7e72cec.entry.js +0 -1
- package/dist/web-components-library/p-dbc23998.entry.js +0 -1
- package/dist/web-components-library/p-def721df.entry.js +0 -1
- package/dist/web-components-library/p-e12cd68a.entry.js +0 -1
- package/dist/web-components-library/p-e84d2839.entry.js +0 -1
- package/dist/web-components-library/p-eadb185e.entry.js +0 -1
- package/dist/web-components-library/p-f9f9518a.entry.js +0 -1
- package/dist/web-components-library/p-fd305e08.entry.js +0 -1
- package/www/build/p-016b2800.entry.js +0 -1
- package/www/build/p-04908405.entry.js +0 -1
- package/www/build/p-06430481.entry.js +0 -1
- package/www/build/p-067bd5da.entry.js +0 -1
- package/www/build/p-082d65b1.entry.js +0 -1
- package/www/build/p-0cff6cce.entry.js +0 -1
- package/www/build/p-0e743002.entry.js +0 -1
- package/www/build/p-10b84e8c.entry.js +0 -1
- package/www/build/p-12211a48.entry.js +0 -1
- package/www/build/p-14233b99.entry.js +0 -1
- package/www/build/p-176256ee.js +0 -1
- package/www/build/p-1ab0de76.entry.js +0 -1
- package/www/build/p-1d2d5232.entry.js +0 -1
- package/www/build/p-20109d3a.entry.js +0 -1
- package/www/build/p-2cf26585.entry.js +0 -1
- package/www/build/p-2d506c48.entry.js +0 -1
- package/www/build/p-2d5d8e6f.entry.js +0 -1
- package/www/build/p-2e7a31ac.entry.js +0 -1
- package/www/build/p-2f6f3729.entry.js +0 -1
- package/www/build/p-30cbafaf.entry.js +0 -1
- package/www/build/p-341ddb5d.entry.js +0 -1
- package/www/build/p-34a96008.entry.js +0 -1
- package/www/build/p-35b30271.entry.js +0 -1
- package/www/build/p-36f4ce3f.entry.js +0 -1
- package/www/build/p-3c28f72e.entry.js +0 -1
- package/www/build/p-3c7cf41f.entry.js +0 -1
- package/www/build/p-3e414cf1.entry.js +0 -1
- package/www/build/p-3ecfb7c1.entry.js +0 -1
- package/www/build/p-40f96085.entry.js +0 -1
- package/www/build/p-4c9c83c0.css +0 -1
- package/www/build/p-53d22727.entry.js +0 -1
- package/www/build/p-563529f8.entry.js +0 -1
- package/www/build/p-57faab40.entry.js +0 -1
- package/www/build/p-5b2d8a91.entry.js +0 -1
- package/www/build/p-60ec44c6.js +0 -1
- package/www/build/p-670232c4.entry.js +0 -1
- package/www/build/p-67f346d9.entry.js +0 -1
- package/www/build/p-691678c8.entry.js +0 -1
- package/www/build/p-69b27fe9.entry.js +0 -16
- package/www/build/p-6fe1bffb.entry.js +0 -1
- package/www/build/p-728e7dcd.entry.js +0 -1
- package/www/build/p-74e31a32.entry.js +0 -1
- package/www/build/p-759fb7c4.entry.js +0 -1
- package/www/build/p-79223014.entry.js +0 -1
- package/www/build/p-7b22a446.entry.js +0 -1
- package/www/build/p-7c40fb15.entry.js +0 -1
- package/www/build/p-7cbc1836.entry.js +0 -1
- package/www/build/p-830b21a4.entry.js +0 -1
- package/www/build/p-87099b68.entry.js +0 -1
- package/www/build/p-8cabed58.entry.js +0 -1
- package/www/build/p-8cf14a47.entry.js +0 -1
- package/www/build/p-8eaa46ac.entry.js +0 -1
- package/www/build/p-985c5ed8.entry.js +0 -1
- package/www/build/p-9f6b43a0.entry.js +0 -1
- package/www/build/p-9f8d0f79.entry.js +0 -1
- package/www/build/p-a25a8231.entry.js +0 -1
- package/www/build/p-a3b8dd69.entry.js +0 -1
- package/www/build/p-aa271ed7.entry.js +0 -1
- package/www/build/p-ac1a9d63.entry.js +0 -1
- package/www/build/p-af4a9bb7.entry.js +0 -1
- package/www/build/p-ba495cad.entry.js +0 -1
- package/www/build/p-ba9210e9.entry.js +0 -1
- package/www/build/p-bf9348e6.entry.js +0 -1
- package/www/build/p-c0df6e96.entry.js +0 -1
- package/www/build/p-c2b368ff.entry.js +0 -1
- package/www/build/p-c39c68b9.entry.js +0 -1
- package/www/build/p-cadba1e5.entry.js +0 -1
- package/www/build/p-ccb3764b.entry.js +0 -1
- package/www/build/p-d668461a.js +0 -1
- package/www/build/p-d767f784.entry.js +0 -1
- package/www/build/p-d7e72cec.entry.js +0 -1
- package/www/build/p-dbc23998.entry.js +0 -1
- package/www/build/p-def721df.entry.js +0 -1
- package/www/build/p-e12cd68a.entry.js +0 -1
- package/www/build/p-e84d2839.entry.js +0 -1
- package/www/build/p-eadb185e.entry.js +0 -1
- package/www/build/p-f9f9518a.entry.js +0 -1
- package/www/build/p-fd305e08.entry.js +0 -1
package/dist/esm/z-card.entry.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-a2ca4b97.js';
|
|
2
|
+
import { C as CardVariant } from './index-9d028352.js';
|
|
2
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=\"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)}";
|
|
4
5
|
|
|
@@ -6,11 +7,10 @@ const ZCard = class {
|
|
|
6
7
|
constructor(hostRef) {
|
|
7
8
|
registerInstance(this, hostRef);
|
|
8
9
|
this.cardClicked = createEvent(this, "cardClicked", 7);
|
|
9
|
-
|
|
10
|
-
this.coverIcon = undefined;
|
|
10
|
+
/** Enable click interactions on the card. Default: false */
|
|
11
11
|
this.clickable = false;
|
|
12
|
+
/** Enable shadow. Default: false. */
|
|
12
13
|
this.showshadow = false;
|
|
13
|
-
this.hasCoverImage = undefined;
|
|
14
14
|
}
|
|
15
15
|
onClick(ev) {
|
|
16
16
|
// Do nothing for clicks on actions.
|
|
@@ -44,13 +44,13 @@ const ZCard = class {
|
|
|
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 ===
|
|
47
|
+
if (this.variant === CardVariant.TEXT) {
|
|
48
48
|
return h(Host, null, this.renderContentDiv());
|
|
49
49
|
}
|
|
50
|
-
if (this.variant ===
|
|
50
|
+
if (this.variant === CardVariant.OVERLAY || this.hasCoverImage) {
|
|
51
51
|
return (h(Host, null, h("div", { class: "cover-container" }, this.hasCoverImage && [
|
|
52
52
|
h("slot", { name: "cover" }),
|
|
53
|
-
this.variant !==
|
|
53
|
+
this.variant !== CardVariant.OVERLAY && this.coverIcon && h("z-icon", { name: this.coverIcon }),
|
|
54
54
|
], !this.hasCoverImage && h("div", { class: "color-cover" })), this.renderContentDiv()));
|
|
55
55
|
}
|
|
56
56
|
return h(Host, null, this.renderColorCoverCard());
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-a2ca4b97.js';
|
|
2
|
+
import { V as CarouselArrowsPosition, W as CarouselProgressMode, c as ButtonSize, B as ButtonVariant } from './index-9d028352.js';
|
|
2
3
|
|
|
3
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-container{display:flex;flex-direction:column}.z-carousel-wrapper{position:relative}.z-carousel-title{margin-bottom:var(--space-unit);color:var(--gray800)}.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-items-container::-webkit-scrollbar{display:none}.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-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-footer{display:flex;flex-direction:row;align-items:center;justify-content:center;margin-top:var(--space-unit)}.z-carousel-footer .number-progress,.z-carousel-footer .dots-progress{display:flex;align-items:center;justify-content:center}.z-carousel-footer .dots-progress button{display:flex;align-items:center;padding:0;border:none;margin:0;background-color:transparent}.z-carousel-footer .dots-progress button:not(.current){cursor:pointer}.z-carousel-footer .numbers-progress{margin:0 calc(var(--space-unit) / 2)}.z-carousel-footer .numbers-progress>*{margin-right:calc(var(--space-unit) / 2)}.z-carousel-footer .numbers-progress .current{font-weight:var(--font-sb)}.z-carousel-footer .dots-progress button.current z-icon{fill:var(--gray800)}.z-carousel-footer .dots-progress button:not(.current) z-icon{fill:var(--gray200)}";
|
|
4
5
|
|
|
@@ -6,16 +7,14 @@ const ZCarousel = class {
|
|
|
6
7
|
constructor(hostRef) {
|
|
7
8
|
registerInstance(this, hostRef);
|
|
8
9
|
this.indexChange = createEvent(this, "indexChange", 7);
|
|
9
|
-
/**
|
|
10
|
-
this.scrollingTo = null;
|
|
11
|
-
this.isLoading = undefined;
|
|
12
|
-
this.label = undefined;
|
|
10
|
+
/** Shows only one content at a time */
|
|
13
11
|
this.single = false;
|
|
14
|
-
this.
|
|
15
|
-
this.progressMode = undefined;
|
|
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. */
|
|
16
13
|
this.ghostLoadingHeight = 100;
|
|
14
|
+
/** Current item index for single mode. */
|
|
17
15
|
this.current = 0;
|
|
18
|
-
|
|
16
|
+
/** Flag indicating the items container is scrolling programmatically towards the stored index. */
|
|
17
|
+
this.scrollingTo = null;
|
|
19
18
|
}
|
|
20
19
|
onIndexChange() {
|
|
21
20
|
this.scrollingTo = this.current;
|
|
@@ -96,9 +95,9 @@ const ZCarousel = class {
|
|
|
96
95
|
* @returns {boolean}
|
|
97
96
|
*/
|
|
98
97
|
canShowFooter() {
|
|
99
|
-
return (this.arrowsPosition ===
|
|
100
|
-
this.progressMode ===
|
|
101
|
-
this.progressMode ===
|
|
98
|
+
return (this.arrowsPosition === CarouselArrowsPosition.BOTTOM ||
|
|
99
|
+
this.progressMode === CarouselProgressMode.DOTS ||
|
|
100
|
+
this.progressMode === CarouselProgressMode.NUMBERS);
|
|
102
101
|
}
|
|
103
102
|
/**
|
|
104
103
|
* Set current item to passed index.
|
|
@@ -115,7 +114,7 @@ const ZCarousel = class {
|
|
|
115
114
|
if (this.isLoading) {
|
|
116
115
|
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)))));
|
|
117
116
|
}
|
|
118
|
-
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 ===
|
|
117
|
+
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) })), 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) })))), this.canShowFooter() && (h("div", { class: "z-carousel-footer" }, this.arrowsPosition === CarouselArrowsPosition.BOTTOM && (h("z-button", { size: ButtonSize.SMALL, variant: ButtonVariant.TERTIARY, icon: "arrow-left-filled", onClick: this.onPrev.bind(this) })), 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.current === key }, onClick: () => this.goTo(key) }, h("z-icon", { name: this.current === key ? "white-circle-filled" : "black-circle-filled" })))))), this.progressMode === CarouselProgressMode.NUMBERS && this.single && this.items && (h("div", { class: "numbers-progress" }, h("span", { class: "interactive-3 current" }, this.current + 1), h("span", { class: "interactive-3" }, "di"), h("span", { class: "interactive-3" }, this.items.length))), this.arrowsPosition === CarouselArrowsPosition.BOTTOM && (h("z-button", { size: ButtonSize.SMALL, variant: ButtonVariant.TERTIARY, icon: "arrow-right-filled", onClick: this.onNext.bind(this) }))))));
|
|
119
118
|
}
|
|
120
119
|
get hostElement() { return getElement(this); }
|
|
121
120
|
static get watchers() { return {
|
|
@@ -5,8 +5,6 @@ const stylesCss = ":host>div{display:inline-block;min-height:28px;padding:0 calc
|
|
|
5
5
|
const ZChipDeprecated = class {
|
|
6
6
|
constructor(hostRef) {
|
|
7
7
|
registerInstance(this, hostRef);
|
|
8
|
-
this.regulartext = undefined;
|
|
9
|
-
this.boldtext = undefined;
|
|
10
8
|
}
|
|
11
9
|
renderLegacyChip() {
|
|
12
10
|
return (h("div", null, h("span", { class: "boldtext" }, this.boldtext), " ", this.regulartext));
|
package/dist/esm/z-chip.entry.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-a2ca4b97.js';
|
|
2
|
-
import {
|
|
2
|
+
import { y as ZChipType, q as Device } from './index-9d028352.js';
|
|
3
|
+
import { g as getDevice, h as handleKeyboardSubmit } from './utils-9e81727a.js';
|
|
3
4
|
import './breakpoints-c386984e.js';
|
|
4
5
|
|
|
5
6
|
const stylesCss = ".sc-z-chip-h>button.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>button.sc-z-chip:not(:disabled)>z-icon.sc-z-chip:last-child:hover{color:var(--color-hover-primary);fill:var(--color-hover-primary)}.sc-z-chip-h>button.sc-z-chip:hover:not(:disabled)>z-icon.sc-z-chip:first-child{fill:var(--color-icon02)}.sc-z-chip-h>button.sc-z-chip>z-icon.icon-sx.sc-z-chip{margin-right:calc(var(--space-unit) / 2)}.sc-z-chip-h>button.sc-z-chip>z-icon.sc-z-chip:last-child{margin-left:var(--space-unit);cursor:pointer;fill:var(--color-primary01)}.sc-z-chip-h>button.sc-z-chip:disabled,.sc-z-chip-h>button.sc-z-chip:disabled>z-icon.sc-z-chip{color:var(--color-disabled03);fill:var(--color-disabled03)}.sc-z-chip-h>button.sc-z-chip:disabled>z-icon.sc-z-chip{cursor:auto}.sc-z-chip-h>button.sc-z-chip:disabled{border:var(--border-size-small) solid var(--color-disabled01)}.sc-z-chip-h>button.sc-z-chip:focus:focus-visible,.sc-z-chip-h>div.sc-z-chip:focus:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none}.sc-z-chip-h>button.sc-z-chip:hover:not(:disabled):active:hover>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>button.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>button.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>button.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>button.sc-z-chip{font-size:12px}.sc-z-chip-h>div.sc-z-chip{font-size:12px}.sc-z-chip-h>button.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>button.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>button.small.sc-z-chip,.sc-z-chip-h>div.small.sc-z-chip{min-height:24px;border-radius:16px;line-height:24px}}";
|
|
@@ -8,16 +9,16 @@ const ZChip = class {
|
|
|
8
9
|
constructor(hostRef) {
|
|
9
10
|
registerInstance(this, hostRef);
|
|
10
11
|
this.interactiveIconClick = createEvent(this, "interactiveIconClick", 7);
|
|
11
|
-
|
|
12
|
-
this.type =
|
|
13
|
-
|
|
12
|
+
/** z-chip size type, can be default, medium or small */
|
|
13
|
+
this.type = ZChipType.DEFAULT;
|
|
14
|
+
/** set z-chip as disabled */
|
|
14
15
|
this.disabled = false;
|
|
15
16
|
}
|
|
16
17
|
emitinteractiveIconClick() {
|
|
17
18
|
this.interactiveIconClick.emit();
|
|
18
19
|
}
|
|
19
20
|
getIconSize() {
|
|
20
|
-
return getDevice() !==
|
|
21
|
+
return getDevice() !== Device.DESKTOP ? 22 : 14;
|
|
21
22
|
}
|
|
22
23
|
render() {
|
|
23
24
|
if (this.interactiveIcon) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-a2ca4b97.js';
|
|
2
|
-
import {
|
|
2
|
+
import { I as InputType, K as KeyboardKeyCode } from './index-9d028352.js';
|
|
3
|
+
import { h as handleKeyboardSubmit } from './utils-9e81727a.js';
|
|
3
4
|
import './breakpoints-c386984e.js';
|
|
4
5
|
|
|
5
6
|
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) * 2);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:focus:focus-visible{border:var(--border-size-small) solid var(--blue500);box-shadow:var(--shadow-focus-primary);outline:none}:host>div>.header>z-body{padding:var(--space-unit) 0;margin:0;color:var(--text-grey-800)}:host>div>.header>z-body>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.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);text-align:left}";
|
|
@@ -8,26 +9,27 @@ const ZCombobox = class {
|
|
|
8
9
|
constructor(hostRef) {
|
|
9
10
|
registerInstance(this, hostRef);
|
|
10
11
|
this.comboboxChange = createEvent(this, "comboboxChange", 7);
|
|
11
|
-
|
|
12
|
-
this.inputType = "text" /* InputType.TEXT */;
|
|
13
|
-
this.inputid = undefined;
|
|
14
|
-
this.items = undefined;
|
|
15
|
-
this.label = undefined;
|
|
12
|
+
/** show search input flag (optional) */
|
|
16
13
|
this.hassearch = false;
|
|
17
|
-
|
|
18
|
-
this.searchplaceholder = undefined;
|
|
19
|
-
this.searchtitle = undefined;
|
|
14
|
+
/** no result text message */
|
|
20
15
|
this.noresultslabel = "Nessun risultato";
|
|
16
|
+
/** toggle combo list opening flag */
|
|
21
17
|
this.isopen = false;
|
|
18
|
+
/** fixed style flag */
|
|
22
19
|
this.isfixed = false;
|
|
20
|
+
/** close combobox list text */
|
|
23
21
|
this.closesearchtext = "Chiudi";
|
|
22
|
+
/** show "check all" checkbox (optional) */
|
|
24
23
|
this.hascheckall = false;
|
|
24
|
+
/** check all label (optional) */
|
|
25
25
|
this.checkalltext = "Seleziona tutti";
|
|
26
|
+
/** uncheck all label (optional) */
|
|
26
27
|
this.uncheckalltext = "Deseleziona tutti";
|
|
28
|
+
/** max number of checkable items (0 = unlimited) */
|
|
27
29
|
this.maxcheckableitems = 0;
|
|
28
|
-
this.
|
|
29
|
-
this.
|
|
30
|
-
this.
|
|
30
|
+
this.renderItemsList = []; // used for render only
|
|
31
|
+
this.itemsList = [];
|
|
32
|
+
this.inputType = InputType.TEXT;
|
|
31
33
|
this.toggleComboBox = this.toggleComboBox.bind(this);
|
|
32
34
|
this.closeFilterItems = this.closeFilterItems.bind(this);
|
|
33
35
|
}
|
|
@@ -104,7 +106,7 @@ const ZCombobox = class {
|
|
|
104
106
|
}
|
|
105
107
|
renderHeader() {
|
|
106
108
|
return (h("div", { class: "header", onClick: () => this.toggleComboBox(), onKeyDown: (ev) => {
|
|
107
|
-
if (ev.keyCode ===
|
|
109
|
+
if (ev.keyCode === KeyboardKeyCode.SPACE) {
|
|
108
110
|
ev.preventDefault();
|
|
109
111
|
}
|
|
110
112
|
}, onKeyUp: (ev) => handleKeyboardSubmit(ev, this.toggleComboBox), role: "button", tabindex: 0 }, h("z-body", { level: 3, component: "p" }, this.label, h("span", null, this.selectedCounter > 0 && ` (${this.selectedCounter})`)), h("z-icon", { name: "caret-down", width: 18, height: 18 })));
|
|
@@ -129,7 +131,7 @@ const ZCombobox = class {
|
|
|
129
131
|
return this.renderNoSearchResults();
|
|
130
132
|
}
|
|
131
133
|
return (h("ul", null, items.map((item, i) => {
|
|
132
|
-
return (h("z-myz-list-item", { id: item.id, listitemid: item.id, action: `combo-li-${this.inputid}`, underlined: i !== items.length - 1 }, h("z-input", { type:
|
|
134
|
+
return (h("z-myz-list-item", { id: item.id, listitemid: item.id, action: `combo-li-${this.inputid}`, underlined: i !== items.length - 1 }, h("z-input", { type: InputType.CHECKBOX, checked: item.checked, htmlid: `combo-checkbox-${this.inputid}-${item.id}`, label: item.name, disabled: !item.checked && this.maxcheckableitems && this.maxcheckableitems === this.selectedCounter })));
|
|
133
135
|
})));
|
|
134
136
|
}
|
|
135
137
|
renderNoSearchResults() {
|
|
@@ -154,7 +156,7 @@ const ZCombobox = class {
|
|
|
154
156
|
return;
|
|
155
157
|
}
|
|
156
158
|
const allChecked = this.selectedCounter === this.itemsList.length;
|
|
157
|
-
return (h("div", { class: "check-all-wrapper" }, h("z-input", { type:
|
|
159
|
+
return (h("div", { class: "check-all-wrapper" }, h("z-input", { type: 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 })));
|
|
158
160
|
}
|
|
159
161
|
render() {
|
|
160
162
|
return (h("div", { "data-action": `combo-${this.inputid}`, class: { open: this.isopen, fixed: this.isfixed }, id: this.inputid }, this.renderHeader(), this.renderContent()));
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-a2ca4b97.js';
|
|
2
|
+
import { P as PopoverPositions } from './index-9d028352.js';
|
|
2
3
|
|
|
3
4
|
const stylesCss = ":host{position:relative;display:flex;align-items:center;justify-content:center;font-family:var(--font-family-sans);font-weight:var(--font-rg)}button{width:100%;height:100%;padding:0;border:none;background:transparent;cursor:pointer}z-popover{overflow:hidden}.popover-content-container{position:relative;min-width:112px;max-width:280px;background-color:var(--color-surface02);box-shadow:var(--shadow-2);white-space:nowrap}.element-container:hover{color:var(--color-hover-primary);fill:var(--color-hover-primary)}.element-text{overflow:hidden;font-size:14px;text-overflow:ellipsis}.element-container,.disabled-element-container{display:flex;min-height:calc(var(--space-unit) * 4);box-sizing:border-box;align-items:center;padding:calc(var(--space-unit) / 2) var(--space-unit);fill:var(--color-disabled03);gap:var(--space-unit)}.element-container{fill:var(--color-primary01)}.element-icon{display:flex}";
|
|
4
5
|
|
|
@@ -6,9 +7,14 @@ const ZContextualMenu = class {
|
|
|
6
7
|
constructor(hostRef) {
|
|
7
8
|
registerInstance(this, hostRef);
|
|
8
9
|
this.clickContextualMenu = createEvent(this, "clickContextualMenu", 7);
|
|
9
|
-
|
|
10
|
+
/**
|
|
11
|
+
* [optional] Sets text color of ZContextualMenu's content
|
|
12
|
+
*/
|
|
10
13
|
this.color = "color-primary01";
|
|
11
|
-
|
|
14
|
+
/**
|
|
15
|
+
* [optional] Sets the position of the popover
|
|
16
|
+
*/
|
|
17
|
+
this.popoverPosition = PopoverPositions.BOTTOM_RIGHT;
|
|
12
18
|
}
|
|
13
19
|
componentWillRender() {
|
|
14
20
|
if (this.elements) {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-a2ca4b97.js';
|
|
2
|
+
import { B as ButtonVariant } from './index-9d028352.js';
|
|
2
3
|
|
|
3
4
|
const stylesCss = ":host{font-family:var(--dashboard-font);font-weight:var(--font-rg)}z-candybar.hidden{display:none}.content{display:flex;flex-flow:column nowrap;align-content:space-between;align-items:stretch;justify-content:space-between;padding:calc(var(--space-unit) * 3) calc(var(--space-unit) * 2);border-radius:calc(var(--space-unit) * 0.5);color:var(--text-grey-800);font-size:16px;letter-spacing:0;line-height:24px}.content>div>h2{padding:0;margin:0;border-radius:0;color:var(--text-grey-800);font-size:18px;font-weight:var(--font-sb);letter-spacing:0}.content>div>div{padding:calc(var(--space-unit) * 3) 0;font-size:14px;letter-spacing:0.16px;line-height:20px}.content>div>div>p{margin:0}.content>div>div>p>a{display:inline-flex;height:14px;color:var(--text-grey-800);cursor:pointer;font-weight:var(--font-sb);text-decoration:underline}.content>div>div>p>a:visited{z-index:1000;color:var(--text-grey-800);cursor:pointer}.content>z-button{width:100%;margin:0}@media only screen and (min-width: 768px){.content{width:100%;flex-direction:row;align-items:center;padding:calc(var(--space-unit) * 4) calc(var(--space-unit) * 3);font-size:16px;letter-spacing:0;line-height:24px}.content>div{width:560px}.content>div>h2{height:calc(var(--space-unit) * 3.5)}.content>div>div{padding:0}.content>z-button{width:initial;margin:0}}@media only screen and (min-width: 1152px){.content>div{width:935px}}@media only screen and (min-width: 1366px){.content{padding-right:calc(var(--space-unit) * 4);padding-left:calc(var(--space-unit) * 4)}}";
|
|
4
5
|
|
|
@@ -6,9 +7,6 @@ const ZCookiebar = class {
|
|
|
6
7
|
constructor(hostRef) {
|
|
7
8
|
registerInstance(this, hostRef);
|
|
8
9
|
this.accept = createEvent(this, "accept", 7);
|
|
9
|
-
this.cookiepolicyurl = undefined;
|
|
10
|
-
this.hide = undefined;
|
|
11
|
-
this.callback = undefined;
|
|
12
10
|
}
|
|
13
11
|
emitAccept(ev) {
|
|
14
12
|
this.accept.emit({ ev });
|
|
@@ -28,7 +26,7 @@ const ZCookiebar = class {
|
|
|
28
26
|
}
|
|
29
27
|
}
|
|
30
28
|
renderContentSlot() {
|
|
31
|
-
return (h("div", { class: "content", slot: "content" }, h("div", null, h("h2", null, "Su questo sito usiamo i cookie."), h("div", null, h("p", null, "Se continui a navigare ci permetti di farlo secondo le regole spiegate nella nostra informativa sulla privacy relativa ai \u00A0", h("a", { href: this.cookiepolicyurl, target: "_blank" }, "cookie"), "."))), h("z-button", { variant:
|
|
29
|
+
return (h("div", { class: "content", slot: "content" }, h("div", null, h("h2", null, "Su questo sito usiamo i cookie."), h("div", null, h("p", null, "Se continui a navigare ci permetti di farlo secondo le regole spiegate nella nostra informativa sulla privacy relativa ai \u00A0", h("a", { href: this.cookiepolicyurl, target: "_blank" }, "cookie"), "."))), h("z-button", { variant: ButtonVariant.PRIMARY, onClick: (ev) => this.handleOkButtonClick(ev), onKeyUp: (ev) => this.handleOkButtonKeyUp(ev) }, "ACCETTA")));
|
|
32
30
|
}
|
|
33
31
|
render() {
|
|
34
32
|
return h("z-candybar", { class: `${this.hide ? "hidden" : ""}` }, this.renderContentSlot());
|
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-a2ca4b97.js';
|
|
2
|
+
import { R as CoverHeroVariant, U as CoverHeroContentPosition } from './index-9d028352.js';
|
|
2
3
|
|
|
3
4
|
const stylesCss = ":host{--cover-hero-height:auto;--cover-hero-overlay:none;--cover-hero-text-color:var(--color-text-inverse);display:block}:host,*{box-sizing:border-box}:host .content-hero{position:relative;width:100%;height:var(--cover-hero-height);min-height:calc(var(--space-unit) * 30);align-items:baseline;background-color:var(--gray600)}:host .content-container{color:var(--cover-hero-text-color);fill:var(--cover-hero-text-color)}:host .content-hero .cover{position:absolute;z-index:0;width:100%;height:100%}::slotted([slot=\"cover\"]){position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:top center}::slotted(z-info-reveal){position:absolute;z-index:1;right:var(--grid-margin);bottom:var(--grid-margin)}:host([variant=\"overlay\"]) .content-hero .cover::after{position:absolute;top:0;left:0;width:100%;height:100%;background:var(--cover-hero-overlay);content:\"\"}:host([variant=\"overlay\"]) .content-hero .content-container{position:relative;height:100%;padding:var(--grid-margin)}:host([variant=\"stacked\"]){--cover-hero-text-color:var(--color-text01)}:host([variant=\"stacked\"]) .content-container ::slotted(*){padding:var(--grid-margin) 0}";
|
|
4
5
|
|
|
5
6
|
const ZCoverHero = class {
|
|
6
7
|
constructor(hostRef) {
|
|
7
8
|
registerInstance(this, hostRef);
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Cover hero variant.
|
|
11
|
+
* Can be one of "OVERLAY", "STACKED".
|
|
12
|
+
*/
|
|
13
|
+
this.variant = CoverHeroVariant.OVERLAY;
|
|
14
|
+
/**
|
|
15
|
+
* Cover hero content position (only for STACKED variant).
|
|
16
|
+
*/
|
|
17
|
+
this.contentPosition = CoverHeroContentPosition.TOP;
|
|
10
18
|
}
|
|
11
19
|
/**
|
|
12
20
|
* Template for the content.
|
|
@@ -15,10 +23,10 @@ const ZCoverHero = class {
|
|
|
15
23
|
return (h("div", { class: "content-container" }, h("slot", { name: "content" })));
|
|
16
24
|
}
|
|
17
25
|
render() {
|
|
18
|
-
return (h(Host, null, this.variant ===
|
|
19
|
-
this.contentPosition ===
|
|
20
|
-
this.renderContent(), h("div", { class: "content-hero" }, h("div", { class: "cover" }, h("slot", { name: "cover" })), h("slot", { name: "info-reveal" }), this.variant ===
|
|
21
|
-
this.contentPosition ===
|
|
26
|
+
return (h(Host, null, this.variant === CoverHeroVariant.STACKED &&
|
|
27
|
+
this.contentPosition === CoverHeroContentPosition.TOP &&
|
|
28
|
+
this.renderContent(), h("div", { class: "content-hero" }, h("div", { class: "cover" }, h("slot", { name: "cover" })), h("slot", { name: "info-reveal" }), this.variant === CoverHeroVariant.OVERLAY && this.renderContent()), this.variant === CoverHeroVariant.STACKED &&
|
|
29
|
+
this.contentPosition === CoverHeroContentPosition.BOTTOM &&
|
|
22
30
|
this.renderContent()));
|
|
23
31
|
}
|
|
24
32
|
get el() { return getElement(this); }
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-a2ca4b97.js';
|
|
2
|
-
import { f as flatpickr, i as it, s as setAriaOptions, a as setFlatpickrPosition, v as validateDate } from './utils-
|
|
2
|
+
import { f as flatpickr, i as it, s as setAriaOptions, a as setFlatpickrPosition, v as validateDate } from './utils-fbe04cd6.js';
|
|
3
3
|
import { c as createCommonjsModule, a as commonjsGlobal } from './_commonjsHelpers-9943807e.js';
|
|
4
|
+
import { F as ZDatePickerMode, H as ZDatePickerPosition, I as InputType } from './index-9d028352.js';
|
|
4
5
|
|
|
5
6
|
var monthSelect = createCommonjsModule(function (module, exports) {
|
|
6
7
|
(function (global, factory) {
|
|
@@ -309,11 +310,11 @@ const ZDatePicker = class {
|
|
|
309
310
|
constructor(hostRef) {
|
|
310
311
|
registerInstance(this, hostRef);
|
|
311
312
|
this.dateSelect = createEvent(this, "dateSelect", 7);
|
|
312
|
-
|
|
313
|
+
/** z-input aria label */
|
|
313
314
|
this.ariaLabel = "";
|
|
314
|
-
|
|
315
|
-
this.mode =
|
|
316
|
-
this.flatpickrPosition =
|
|
315
|
+
/** [Optional] datepicker mode: date, datetime, only months */
|
|
316
|
+
this.mode = ZDatePickerMode.DATE;
|
|
317
|
+
this.flatpickrPosition = ZDatePickerPosition.BOTTOM;
|
|
317
318
|
this.inputError = false;
|
|
318
319
|
}
|
|
319
320
|
emitDateSelect(date) {
|
|
@@ -337,7 +338,7 @@ const ZDatePicker = class {
|
|
|
337
338
|
const isNextArrowEntered = document.activeElement.classList.contains("flatpickr-next-month");
|
|
338
339
|
const arrowPressed = isPrevArrowEntered || isNextArrowEntered;
|
|
339
340
|
arrowPressed && ev.key === " " && ev.preventDefault();
|
|
340
|
-
if (this.mode ===
|
|
341
|
+
if (this.mode === ZDatePickerMode.MONTHS) {
|
|
341
342
|
isPrevArrowEntered && ((_d = this.picker) === null || _d === void 0 ? void 0 : _d.changeYear(this.picker.currentYear - 1));
|
|
342
343
|
isNextArrowEntered && ((_e = this.picker) === null || _e === void 0 ? void 0 : _e.changeYear(this.picker.currentYear + 1));
|
|
343
344
|
if (arrowPressed) {
|
|
@@ -382,11 +383,11 @@ const ZDatePicker = class {
|
|
|
382
383
|
const classToAppend = this.hasChildren ? `${this.datePickerId}-hidden` : `${this.datePickerId}-container`;
|
|
383
384
|
this.picker = flatpickr(`.${classToAppend}`, {
|
|
384
385
|
appendTo: this.element.children[0],
|
|
385
|
-
enableTime: this.mode ===
|
|
386
|
+
enableTime: this.mode === ZDatePickerMode.DATE_TIME,
|
|
386
387
|
locale: it.Italian,
|
|
387
388
|
allowInput: true,
|
|
388
|
-
dateFormat: this.mode ===
|
|
389
|
-
ariaDateFormat: this.mode ===
|
|
389
|
+
dateFormat: this.mode === ZDatePickerMode.DATE_TIME ? "d-m-Y - H:i" : "d-m-Y",
|
|
390
|
+
ariaDateFormat: this.mode === ZDatePickerMode.MONTHS ? "F Y" : "d F Y",
|
|
390
391
|
minuteIncrement: 1,
|
|
391
392
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
392
393
|
time_24hr: true,
|
|
@@ -401,7 +402,7 @@ const ZDatePicker = class {
|
|
|
401
402
|
setAriaOptions(this.element, this.mode);
|
|
402
403
|
},
|
|
403
404
|
wrap: true,
|
|
404
|
-
plugins: this.mode ===
|
|
405
|
+
plugins: this.mode === ZDatePickerMode.MONTHS && [
|
|
405
406
|
monthSelect({
|
|
406
407
|
dateFormat: "m-Y",
|
|
407
408
|
altFormat: "m-Y",
|
|
@@ -413,23 +414,23 @@ const ZDatePicker = class {
|
|
|
413
414
|
});
|
|
414
415
|
}
|
|
415
416
|
formatDate(date) {
|
|
416
|
-
if (this.mode ===
|
|
417
|
+
if (this.mode === ZDatePickerMode.DATE) {
|
|
417
418
|
return `${flatpickr.formatDate(date, "d-m-Y")}`;
|
|
418
419
|
}
|
|
419
|
-
else if (this.mode ===
|
|
420
|
+
else if (this.mode === ZDatePickerMode.MONTHS) {
|
|
420
421
|
return `${flatpickr.formatDate(date, "m-Y")}`;
|
|
421
422
|
}
|
|
422
423
|
return `${flatpickr.formatDate(date, "d-m-Y - H:i")}`;
|
|
423
424
|
}
|
|
424
425
|
onStopTyping(value) {
|
|
425
426
|
let text = value.detail.value;
|
|
426
|
-
if (this.mode ===
|
|
427
|
+
if (this.mode === ZDatePickerMode.MONTHS) {
|
|
427
428
|
text = "01-".concat(value.detail.value);
|
|
428
429
|
}
|
|
429
430
|
const englishData = text.split("-");
|
|
430
|
-
const time = this.mode ===
|
|
431
|
+
const time = this.mode === ZDatePickerMode.DATE_TIME ? `T${englishData[3]}:00` : "";
|
|
431
432
|
const englishParsedData = `${englishData[2]}-${englishData[1]}-${englishData[0]}${time}`.split(" ").join("");
|
|
432
|
-
const isValidDate = validateDate(englishParsedData, this.mode ===
|
|
433
|
+
const isValidDate = validateDate(englishParsedData, this.mode === ZDatePickerMode.DATE_TIME);
|
|
433
434
|
if (text === "") {
|
|
434
435
|
this.inputError = false;
|
|
435
436
|
this.picker.setDate([]);
|
|
@@ -449,7 +450,7 @@ const ZDatePicker = class {
|
|
|
449
450
|
return (h("div", { class: `${this.datePickerId}-hidden` }, h("input", { class: "hidden-input", "data-input": true }), h("slot", { name: "toggle" })));
|
|
450
451
|
}
|
|
451
452
|
renderZInput() {
|
|
452
|
-
return (h("div", { class: `${this.datePickerId}-container` }, h("z-input", { "data-input": "data-input", ariaLabel: this.ariaLabel, label: this.label, class: this.datePickerId, type:
|
|
453
|
+
return (h("div", { class: `${this.datePickerId}-container` }, h("z-input", { "data-input": "data-input", ariaLabel: this.ariaLabel, label: this.label, class: this.datePickerId, type: InputType.TEXT, icon: "event", message: false, tabindex: "0", value: "", onStopTyping: (value) => {
|
|
453
454
|
this.onStopTyping(value);
|
|
454
455
|
}, onStartTyping: () => {
|
|
455
456
|
this.inputError = false;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-a2ca4b97.js';
|
|
2
|
+
import { D as DividerSize, i as DividerOrientation } from './index-9d028352.js';
|
|
3
|
+
|
|
4
|
+
const stylesCss = ".sc-z-divider-h{display:block;padding:0;margin:0}.divider-horizontal.sc-z-divider-h{width:100%}.divider-vertical.sc-z-divider-h{height:100%}.divider-small.divider-horizontal.sc-z-divider-h{height:var(--border-size-small)}.divider-medium.divider-horizontal.sc-z-divider-h{height:var(--border-size-medium)}.divider-large.divider-horizontal.sc-z-divider-h{height:var(--border-size-large)}.divider-small.divider-vertical.sc-z-divider-h{width:var(--border-size-small)}.divider-medium.divider-vertical.sc-z-divider-h{width:var(--border-size-medium)}.divider-large.divider-vertical.sc-z-divider-h{width:var(--border-size-large)}";
|
|
5
|
+
|
|
6
|
+
const ZDivider = class {
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
registerInstance(this, hostRef);
|
|
9
|
+
/** [optional] Divider size */
|
|
10
|
+
this.size = DividerSize.SMALL;
|
|
11
|
+
/** [optional] Divider color */
|
|
12
|
+
this.color = "gray200";
|
|
13
|
+
/** [optional] Divider orintation */
|
|
14
|
+
this.orientation = DividerOrientation.HORIZONTAL;
|
|
15
|
+
}
|
|
16
|
+
render() {
|
|
17
|
+
return (h(Host, { class: `divider-${this.size} divider-${this.orientation}`, style: { backgroundColor: `var(--${this.color})` } }));
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
ZDivider.style = stylesCss;
|
|
21
|
+
|
|
22
|
+
export { ZDivider as z_divider };
|
|
@@ -33,9 +33,8 @@ ZDragdropArea.style = stylesCss;
|
|
|
33
33
|
const ZHeading = class {
|
|
34
34
|
constructor(hostRef) {
|
|
35
35
|
registerInstance(this, hostRef);
|
|
36
|
-
|
|
36
|
+
/** Font weight variant */
|
|
37
37
|
this.variant = "regular";
|
|
38
|
-
this.component = undefined;
|
|
39
38
|
}
|
|
40
39
|
render() {
|
|
41
40
|
return (h("z-typography", { tabIndex: 0, component: this.component || `h${this.level}`, level: `h${this.level}`, variant: this.variant }, h("slot", null)));
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-a2ca4b97.js';
|
|
2
|
-
import {
|
|
2
|
+
import { x as ZFileUploadType, q as Device, D as DividerSize } from './index-9d028352.js';
|
|
3
|
+
import { g as getDevice } from './utils-9e81727a.js';
|
|
3
4
|
import './breakpoints-c386984e.js';
|
|
4
5
|
|
|
5
6
|
const stylesCss = ":host{color:var(--color-text01);font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>.container{display:flex;flex-direction:column}:host .modal-wrapper{display:flex;align-items:center;justify-content:center}:host .modal-wrapper>.files-wrapper{display:flex;flex-direction:column;margin:calc(var(--space-unit) * 4);gap:var(--space-unit)}:host .text-container{display:flex;flex-direction:column;margin:auto}:host .text-container z-body{text-align:center}:host .text-container .upload-link{color:var(--color-link-primary);cursor:pointer}:host .text-container .upload-link-text{margin-bottom:var(--space-unit)}input#file-elem{display:none}#title{display:inline-block;margin-bottom:var(--space-unit)}:host>.container>z-button{display:inline-block;margin-top:calc(var(--space-unit) * 3)}:host>.container>.files-container.hidden{display:none}:host>.container>.files-container>z-heading{display:inline-block;margin:calc(var(--space-unit) * 3) 0}:host>.container>.files-container>.files-wrapper{display:flex;flex-wrap:wrap;column-gap:calc(var(--space-unit) * 2);row-gap:calc(var(--space-unit) * 2)}:host>.container>.files-container>z-divider{margin-top:calc(var(--space-unit) * 3);margin-bottom:0}@media only screen and (min-width: 768px){:host>.container>z-button{align-self:flex-start}}";
|
|
@@ -8,19 +9,15 @@ const ZFileUpload = class {
|
|
|
8
9
|
constructor(hostRef) {
|
|
9
10
|
registerInstance(this, hostRef);
|
|
10
11
|
this.fileInput = createEvent(this, "fileInput", 7);
|
|
12
|
+
/** Prop indicating the file upload type - can be default or dragdrop */
|
|
13
|
+
this.type = ZFileUploadType.DEFAULT;
|
|
14
|
+
/** Files added by the user */
|
|
15
|
+
this.files = [];
|
|
11
16
|
this.inputAttributes = {
|
|
12
17
|
type: "file",
|
|
13
18
|
id: "file-elem",
|
|
14
19
|
multiple: true,
|
|
15
20
|
};
|
|
16
|
-
this.type = "default" /* ZFileUploadType.DEFAULT */;
|
|
17
|
-
this.buttonVariant = undefined;
|
|
18
|
-
this.acceptedFormat = undefined;
|
|
19
|
-
this.fileMaxSize = undefined;
|
|
20
|
-
this.mainTitle = undefined;
|
|
21
|
-
this.description = undefined;
|
|
22
|
-
this.files = [];
|
|
23
|
-
this.invalidFiles = undefined;
|
|
24
21
|
}
|
|
25
22
|
/** Listen removeFile event sent from z-file component */
|
|
26
23
|
removeFileListener(e) {
|
|
@@ -56,8 +53,8 @@ const ZFileUpload = class {
|
|
|
56
53
|
return this.files;
|
|
57
54
|
}
|
|
58
55
|
getType() {
|
|
59
|
-
if (getDevice() !==
|
|
60
|
-
return
|
|
56
|
+
if (getDevice() !== Device.DESKTOP)
|
|
57
|
+
return ZFileUploadType.DEFAULT;
|
|
61
58
|
return this.type;
|
|
62
59
|
}
|
|
63
60
|
handleAccessibility() {
|
|
@@ -66,7 +63,7 @@ const ZFileUpload = class {
|
|
|
66
63
|
lastFile.focus();
|
|
67
64
|
}
|
|
68
65
|
else {
|
|
69
|
-
this.getType() ===
|
|
66
|
+
this.getType() === ZFileUploadType.DEFAULT
|
|
70
67
|
? this.button.querySelector("button").focus()
|
|
71
68
|
: this.uploadLink.focus();
|
|
72
69
|
}
|
|
@@ -122,7 +119,7 @@ const ZFileUpload = class {
|
|
|
122
119
|
return h("z-body", { level: 3 }, fileFormatString || fileWeightString ? finalString : null);
|
|
123
120
|
}
|
|
124
121
|
renderFileSection() {
|
|
125
|
-
return (h("section", { class: `files-container ${!this.files.length ? "hidden" : ""}` }, h("z-heading", { variant: "semibold", level: 4 }, "File appena caricati"), h("div", { class: "files-wrapper" }, h("slot", { name: "files" })), h("z-divider", { size:
|
|
122
|
+
return (h("section", { class: `files-container ${!this.files.length ? "hidden" : ""}` }, h("z-heading", { variant: "semibold", level: 4 }, "File appena caricati"), h("div", { class: "files-wrapper" }, h("slot", { name: "files" })), h("z-divider", { size: DividerSize.MEDIUM })));
|
|
126
123
|
}
|
|
127
124
|
renderInput() {
|
|
128
125
|
return (h("input", Object.assign({}, this.inputAttributes, { onChange: () => this.fileInputHandler(), accept: this.acceptedFormat, ref: (val) => (this.input = val) })));
|
|
@@ -174,7 +171,7 @@ const ZFileUpload = class {
|
|
|
174
171
|
})))));
|
|
175
172
|
}
|
|
176
173
|
render() {
|
|
177
|
-
return (h(Host, null, h("div", { tabIndex: 0, class: `container ${this.getType()}` }, this.renderTitle(), this.getType() ==
|
|
174
|
+
return (h(Host, null, h("div", { tabIndex: 0, class: `container ${this.getType()}` }, this.renderTitle(), this.getType() == ZFileUploadType.DEFAULT ? this.renderDefaultMode() : this.renderDragDropMode()), !!this.invalidFiles.size && (h("z-modal", { tabIndex: 0, ref: (val) => (this.errorModal = val), modaltitle: "Attenzione", onModalClose: () => (this.invalidFiles = new Map()), onModalBackgroundClick: () => (this.invalidFiles = new Map()) }, this.handleErrorModalContent()))));
|
|
178
175
|
}
|
|
179
176
|
get el() { return getElement(this); }
|
|
180
177
|
};
|
package/dist/esm/z-file.entry.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-a2ca4b97.js';
|
|
2
|
+
import { y as ZChipType, P as PopoverPositions } from './index-9d028352.js';
|
|
2
3
|
import { t as tabletBreakpoint } from './breakpoints-c386984e.js';
|
|
3
4
|
|
|
4
5
|
const stylesCss = ".sc-z-file-h{position:relative;font-family:var(--font-family-sans);font-weight:var(--font-rg)}.sc-z-file-h>z-popover.sc-z-file{z-index:10}.sc-z-file-h>z-popover.sc-z-file>.tooltip-content.sc-z-file{white-space:nowrap}.sc-z-file-h>z-chip.sc-z-file span.sc-z-file{display:block;overflow:hidden;max-width:250px;letter-spacing:0.32px;line-height:1.33;text-overflow:ellipsis;white-space:nowrap}";
|
|
@@ -7,8 +8,6 @@ const ZFile = class {
|
|
|
7
8
|
constructor(hostRef) {
|
|
8
9
|
registerInstance(this, hostRef);
|
|
9
10
|
this.removeFile = createEvent(this, "removeFile", 7);
|
|
10
|
-
this.fileNumber = undefined;
|
|
11
|
-
this.fileName = undefined;
|
|
12
11
|
this.allowPopover = false;
|
|
13
12
|
this.popoverVisible = false;
|
|
14
13
|
}
|
|
@@ -36,7 +35,7 @@ const ZFile = class {
|
|
|
36
35
|
return this.ellipsis.offsetWidth < this.ellipsis.scrollWidth;
|
|
37
36
|
}
|
|
38
37
|
render() {
|
|
39
|
-
return (h(Host, null, this.allowPopover && (h("z-popover", { open: this.popoverVisible, position:
|
|
38
|
+
return (h(Host, null, this.allowPopover && (h("z-popover", { open: this.popoverVisible, position: PopoverPositions.AUTO, bindTo: this.chip }, h("span", { class: "body-5 tooltip-content" }, this.ellipsis.innerText))), h("z-chip", { ref: (el) => (this.chip = el), id: `chip-${this.fileNumber}`, interactiveIcon: "multiply-circled", type: ZChipType.DEFAULT }, h("span", { ref: (el) => (this.ellipsis = el), tabIndex: -1 }, this.fileName))));
|
|
40
39
|
}
|
|
41
40
|
get el() { return getElement(this); }
|
|
42
41
|
};
|
|
@@ -5,7 +5,6 @@ const stylesCss$2 = ":host{font-family:var(--font-family-sans);font-weight:var(-
|
|
|
5
5
|
const ZFooterLink = class {
|
|
6
6
|
constructor(hostRef) {
|
|
7
7
|
registerInstance(this, hostRef);
|
|
8
|
-
this.href = undefined;
|
|
9
8
|
}
|
|
10
9
|
render() {
|
|
11
10
|
return (h("a", { href: this.href, target: "_blank" }, h("slot", null)));
|
|
@@ -18,7 +17,6 @@ const stylesCss$1 = ":host{font-family:var(--font-family-sans);font-weight:var(-
|
|
|
18
17
|
const ZFooterSection = class {
|
|
19
18
|
constructor(hostRef) {
|
|
20
19
|
registerInstance(this, hostRef);
|
|
21
|
-
this.name = undefined;
|
|
22
20
|
this.isOpen = false;
|
|
23
21
|
}
|
|
24
22
|
renderToggleButton() {
|
|
@@ -35,9 +33,6 @@ const stylesCss = ":host{font-family:var(--font-family-sans);font-weight:var(--f
|
|
|
35
33
|
const ZFooterSocial = class {
|
|
36
34
|
constructor(hostRef) {
|
|
37
35
|
registerInstance(this, hostRef);
|
|
38
|
-
this.icon = undefined;
|
|
39
|
-
this.href = undefined;
|
|
40
|
-
this.description = undefined;
|
|
41
36
|
}
|
|
42
37
|
render() {
|
|
43
38
|
return (h("a", { href: this.href, target: "_blank" }, h("img", { src: this.icon, alt: this.description })));
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-a2ca4b97.js';
|
|
2
|
+
import { c as ButtonSize } from './index-9d028352.js';
|
|
2
3
|
|
|
3
4
|
const stylesCss = ":host{width:100%}footer{width:auto;height:auto;box-sizing:border-box;padding:var(--space-unit) 0;background-color:var(--gray900);color:var(--gray50);font-family:var(--font-family-sans);font-size:13px}footer *{box-sizing:border-box}footer>section>div{display:grid}#top{padding:0 calc(var(--space-unit) * 2)}#bottom{width:auto;height:auto;padding:0 calc(var(--space-unit) * 2);margin:0;font-size:12px;white-space:pre-line}#bottom>div{display:grid;grid-template-columns:1fr}#bottom>div>div.item{display:flex;width:auto;height:auto;flex-direction:column;align-items:flex-start;padding:calc(var(--space-unit) * 2) 0;grid-column:span 1}#bottom>div>div.item:nth-child(1){order:2}#bottom>div>div.item:nth-child(2){order:1;border-bottom:1px solid var(--gray50)}#bottom>div>div.item>div.social{display:grid;padding:0;margin-bottom:0;column-gap:12px;grid-template-columns:repeat(5, 1fr);grid-template-rows:repeat(auto-fill, 24px)}#bottom>div>div.bottom-links{display:none}#bottom>div>div.item>p{padding:var(--space-unit) 0;margin:var(--space-unit) 0}#bottom>div>div.item>p:first-child{margin-top:0}#bottom>div>div.item>p:last-child{margin-bottom:0}#bottom>div>div.logo>p>span{display:block}#extension{padding:0 calc(var(--space-unit) * 2)}#extension>div{display:grid;align-items:center;grid-row-gap:var(--space-unit);grid-template-columns:1fr}#extension z-divider{margin-top:var(--space-unit)}#extension z-button{margin-left:var(--space-unit)}div.limited-width{--mw:none;max-width:var(--mw);margin:auto}z-button{--color-primary01:var(--gray600);--color-hover-primary:var(--gray700)}@media only screen and (min-width: 768px){footer{padding:0}#top{padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 3);background-color:var(--gray800)}#top z-footer-section:last-child{display:none}#bottom{padding:0 calc(var(--space-unit) * 3);background-color:var(--gray900)}#bottom>div{grid-column-gap:var(--grid-tablet-margin);grid-template-columns:repeat(4, 1fr)}#bottom>div>div.item{margin:0}#bottom>div>div.item:nth-child(1){order:1}#bottom>div>div.item:nth-child(2){order:2;border-bottom:none}#bottom>div>div.item>p{padding-top:0}#bottom>div>div.logo>z-logo{width:auto;height:39px}#bottom>div>div.bottom-links{display:grid;order:3;font-size:12px;grid-column:span 2;grid-column-gap:var(--grid-tablet-margin);grid-template-columns:repeat(2, 1fr);grid-template-rows:repeat(auto-fill, 24px)}#extension{padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 3) 0;margin:auto;background-color:var(--gray800);color:white;grid-template-columns:1fr 1fr}#extension>div>div{text-align:end}#extension z-divider{grid-column:1 / span 2}}@media only screen and (min-width: 1152px){#top{width:100%}#top>div{grid-column-gap:var(--grid-desktop-margin);grid-template-columns:repeat(6, 1fr)}#bottom>div>div.item:nth-child(1)>p:nth-of-type(2){font-size:10px}#bottom>div>div.item>p{padding-bottom:0;margin-bottom:calc(var(--space-unit) * 2)}#bottom>div>div.item>div.social{margin-top:0}#bottom>div>div.bottom-links{padding:calc(var(--space-unit) * 2) 0 0 0;margin:0;grid-column-gap:var(--grid-desktop-margin);grid-template-columns:repeat(3, 1fr)}}@media only screen and (min-width: 1366px){#top{padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 4)}#bottom{padding:0 calc(var(--space-unit) * 4)}#extension{padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 4) 0}}";
|
|
4
5
|
|
|
@@ -8,12 +9,6 @@ const ZFooter = class {
|
|
|
8
9
|
this.creditsLinkClick = createEvent(this, "creditsLinkClick", 7);
|
|
9
10
|
this.reportAProblemButtonClick = createEvent(this, "reportAProblemButtonClick", 7);
|
|
10
11
|
this.creditsLinkId = "creditsLinkId";
|
|
11
|
-
this.data = undefined;
|
|
12
|
-
this.productName = undefined;
|
|
13
|
-
this.productVersion = undefined;
|
|
14
|
-
this.productCreditsLink = undefined;
|
|
15
|
-
this.showReportAProblemButton = undefined;
|
|
16
|
-
this.contentMaxWidth = undefined;
|
|
17
12
|
this.emitReportAProblemButtonClick = this.emitReportAProblemButtonClick.bind(this);
|
|
18
13
|
}
|
|
19
14
|
componentWillLoad() {
|
|
@@ -62,7 +57,7 @@ const ZFooter = class {
|
|
|
62
57
|
if (this.productName || this.productVersion || this.productCreditsLink != null || this.showReportAProblemButton) {
|
|
63
58
|
const versionString = `${this.productName ? " versione" : "Versione"} ${this.productVersion}`;
|
|
64
59
|
const creditsObject = (h("z-body", { level: 5 }, (this.productName || this.productVersion) && " - ", h("z-link", { htmlid: this.creditsLinkId, href: (_a = this.productCreditsLink) === null || _a === void 0 ? void 0 : _a.trim(), target: "_blank", textcolor: "white" }, "Credits")));
|
|
65
|
-
return (h("div", { id: "extension" }, h("div", { class: { "limited-width": !!this.contentMaxWidth }, style: this.contentMaxWidth ? { "--mw": `${this.contentMaxWidth}px` } : {} }, h("span", null, this.productName && (h("z-body", { level: 5, variant: "semibold" }, this.productName)), this.productVersion && h("z-body", { level: 5 }, versionString), this.productCreditsLink != null && creditsObject), this.showReportAProblemButton && (h("div", null, h("z-body", { level: 5 }, "Hai bisogno di aiuto?"), h("z-button", { size:
|
|
60
|
+
return (h("div", { id: "extension" }, h("div", { class: { "limited-width": !!this.contentMaxWidth }, style: this.contentMaxWidth ? { "--mw": `${this.contentMaxWidth}px` } : {} }, h("span", null, this.productName && (h("z-body", { level: 5, variant: "semibold" }, this.productName)), this.productVersion && h("z-body", { level: 5 }, versionString), this.productCreditsLink != null && creditsObject), this.showReportAProblemButton && (h("div", null, h("z-body", { level: 5 }, "Hai bisogno di aiuto?"), h("z-button", { size: ButtonSize.SMALL, onClick: this.emitReportAProblemButtonClick }, "SEGNALA UN PROBLEMA"))), h("z-divider", { color: "gray500" }))));
|
|
66
61
|
}
|
|
67
62
|
}
|
|
68
63
|
// INFO: backward compatibility
|