@zanichelli/albe-web-components 6.2.0-a1 → 6.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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.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-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-d70c7670.css +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.esm.js +1 -1
- package/www/index.html +1 -24
- package/CHANGELOG.md +0 -2036
- 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/src-react/index.ts +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
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-e3299e0a.js');
|
|
6
|
+
const index$1 = require('./index-199cd650.js');
|
|
6
7
|
|
|
7
8
|
const stylesCss = ":host{--z-tooltip-theme--surface:var(--color-surface01);--z-tooltip-theme--text:var(--color-text01);--arrow-size:6px;--edge-offset:calc(-1 * (var(--arrow-size) + calc(var(--space-unit) * 2)));position:relative;display:none;min-width:calc(var(--space-unit) * 8);min-height:calc(var(--space-unit) * 4);align-items:center;justify-content:center;padding:var(--space-unit);background:var(--z-tooltip-theme--surface);border-radius:var(--border-radius-small);color:var(--z-tooltip-theme--text);fill:currentcolor;filter:drop-shadow(0 4px 8px var(--shadow-color-base));font-family:var(--font-family-sans);text-align:center;will-change:filter}:host(.legacy){display:inline-flex;min-width:auto;max-width:200px;min-height:auto;padding:calc(var(--space-unit) * 2);border:var(--border-size-small) solid var(--gray200);border-radius:var(--border-radius);filter:drop-shadow(0 0 2px rgb(0 0 0 / 8%));font-size:12px;font-style:italic;letter-spacing:0.32px;line-height:16px}:host(.legacy)::before{--arrow-size:14px}:host([position])::before{--arrow-edge-offset:calc(100% - var(--arrow-size) - var(--space-unit));--arrow-center-x-offset:calc(50% - calc(var(--arrow-size) / 2));--arrow-center-y-offset:calc(100% - calc(var(--arrow-size) / 2));position:absolute;width:var(--arrow-size);height:var(--arrow-size);background:inherit;content:\"\";transform:rotate(45deg)}:host([open][style*=\"top:\"]),:host([open][style*=\"inset:\"]){display:inline-flex}:host([position^=\"top\"]){margin-bottom:var(--space-unit)}:host([position=\"right\"]){margin-left:var(--space-unit)}:host([position=\"top_right\"]),:host([position=\"bottom_right\"]){margin-left:var(--edge-offset)}:host([position^=\"bottom\"]){margin-top:var(--space-unit)}:host([position=\"left\"]){margin-right:var(--space-unit)}:host([position=\"top_left\"]),:host([position=\"bottom_left\"]){margin-right:var(--edge-offset)}:host([position^=\"top\"])::before{top:var(--arrow-center-y-offset)}:host([position^=\"bottom\"])::before{bottom:var(--arrow-center-y-offset)}:host([position=\"top\"])::before,:host([position=\"bottom\"])::before{left:var(--arrow-center-x-offset)}:host([position=\"right\"])::before,:host([position=\"left\"])::before{top:var(--arrow-center-x-offset)}:host([position=\"right\"])::before{right:var(--arrow-center-y-offset)}:host([position=\"top_right\"])::before,:host([position=\"bottom_right\"])::before{right:var(--arrow-edge-offset)}:host([position=\"left\"])::before{left:var(--arrow-center-y-offset)}:host([position=\"top_left\"])::before,:host([position=\"bottom_left\"])::before{left:var(--arrow-edge-offset)}::slotted(*){overflow:auto;flex:1 auto}";
|
|
8
9
|
|
|
@@ -85,29 +86,16 @@ const ZTooltipDeprecated = class {
|
|
|
85
86
|
constructor(hostRef) {
|
|
86
87
|
index.registerInstance(this, hostRef);
|
|
87
88
|
this.positionChange = index.createEvent(this, "positionChange", 7);
|
|
88
|
-
|
|
89
|
-
this.type =
|
|
89
|
+
/** Tooltip position. */
|
|
90
|
+
this.type = index$1.PopoverPositions.AUTO;
|
|
91
|
+
/**
|
|
92
|
+
* The open state of the tooltip.
|
|
93
|
+
*/
|
|
90
94
|
this.open = false;
|
|
91
|
-
this.bindTo = undefined;
|
|
92
|
-
this.position = undefined;
|
|
93
95
|
}
|
|
94
96
|
validateType(newValue) {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
newValue !== "auto" /* PopoverPositions.AUTO */ &&
|
|
98
|
-
newValue !== "bottom" /* PopoverPositions.BOTTOM */ &&
|
|
99
|
-
newValue !== "bottom_left" /* PopoverPositions.BOTTOM_LEFT */ &&
|
|
100
|
-
newValue !== "bottom_right" /* PopoverPositions.BOTTOM_RIGHT */ &&
|
|
101
|
-
newValue !== "left" /* PopoverPositions.LEFT */ &&
|
|
102
|
-
newValue !== "left_bottom" /* PopoverPositions.LEFT_BOTTOM */ &&
|
|
103
|
-
newValue !== "left_top" /* PopoverPositions.LEFT_TOP */ &&
|
|
104
|
-
newValue !== "right" /* PopoverPositions.RIGHT */ &&
|
|
105
|
-
newValue !== "right_bottom" /* PopoverPositions.RIGHT_BOTTOM */ &&
|
|
106
|
-
newValue !== "right_top" /* PopoverPositions.RIGHT_TOP */ &&
|
|
107
|
-
newValue !== "top" /* PopoverPositions.TOP */ &&
|
|
108
|
-
newValue !== "top_left" /* PopoverPositions.TOP_LEFT */ &&
|
|
109
|
-
newValue !== "top_right" /* PopoverPositions.TOP_RIGHT */) {
|
|
110
|
-
this.type = "auto" /* PopoverPositions.AUTO */;
|
|
97
|
+
if (newValue && Object.values(index$1.PopoverPositions).every((position) => newValue !== position)) {
|
|
98
|
+
this.type = index$1.PopoverPositions.AUTO;
|
|
111
99
|
}
|
|
112
100
|
}
|
|
113
101
|
onPositionChange() {
|
|
@@ -178,29 +166,29 @@ const ZTooltipDeprecated = class {
|
|
|
178
166
|
const availableHeight = availableTop + availableBottom + boundingRect.height;
|
|
179
167
|
const availableWidth = availableLeft + availableRight + boundingRect.width;
|
|
180
168
|
let position = this.type;
|
|
181
|
-
if (position ===
|
|
169
|
+
if (position === index$1.PopoverPositions.AUTO) {
|
|
182
170
|
/**
|
|
183
171
|
* The `AUTO` position tries to place the tooltip in the "safest" area,
|
|
184
172
|
* where there's more space available.
|
|
185
173
|
*/
|
|
186
174
|
const positions = [];
|
|
187
175
|
if (availableTop / availableHeight > 0.9) {
|
|
188
|
-
positions.unshift(
|
|
176
|
+
positions.unshift(index$1.PopoverPositions.TOP);
|
|
189
177
|
}
|
|
190
178
|
else if (availableTop / availableHeight > 0.6) {
|
|
191
|
-
positions.push(
|
|
179
|
+
positions.push(index$1.PopoverPositions.TOP);
|
|
192
180
|
}
|
|
193
181
|
else if (availableTop / availableHeight < 0.1) {
|
|
194
|
-
positions.unshift(
|
|
182
|
+
positions.unshift(index$1.PopoverPositions.BOTTOM);
|
|
195
183
|
}
|
|
196
184
|
else {
|
|
197
|
-
positions.push(
|
|
185
|
+
positions.push(index$1.PopoverPositions.BOTTOM);
|
|
198
186
|
}
|
|
199
187
|
if (availableLeft / availableWidth > 0.6) {
|
|
200
|
-
positions.push(
|
|
188
|
+
positions.push(index$1.PopoverPositions.LEFT);
|
|
201
189
|
}
|
|
202
190
|
else if (availableLeft / availableWidth < 0.4) {
|
|
203
|
-
positions.push(
|
|
191
|
+
positions.push(index$1.PopoverPositions.RIGHT);
|
|
204
192
|
}
|
|
205
193
|
position = positions.join("_");
|
|
206
194
|
}
|
|
@@ -212,38 +200,38 @@ const ZTooltipDeprecated = class {
|
|
|
212
200
|
const offsetRight = boundingRect.right - relativeBoundingRect.right;
|
|
213
201
|
const offsetBottom = boundingRect.bottom - relativeBoundingRect.bottom;
|
|
214
202
|
const offsetLeft = boundingRect.left - relativeBoundingRect.left;
|
|
215
|
-
if (position ===
|
|
216
|
-
position ===
|
|
217
|
-
position ===
|
|
203
|
+
if (position === index$1.PopoverPositions.TOP ||
|
|
204
|
+
position === index$1.PopoverPositions.TOP_RIGHT ||
|
|
205
|
+
position === index$1.PopoverPositions.TOP_LEFT) {
|
|
218
206
|
style.top = "auto";
|
|
219
207
|
style.bottom = `${offsetBottom + boundingRect.height}px`;
|
|
220
208
|
}
|
|
221
|
-
if (position ===
|
|
222
|
-
position ===
|
|
223
|
-
position ===
|
|
209
|
+
if (position === index$1.PopoverPositions.BOTTOM ||
|
|
210
|
+
position === index$1.PopoverPositions.BOTTOM_RIGHT ||
|
|
211
|
+
position === index$1.PopoverPositions.BOTTOM_LEFT) {
|
|
224
212
|
style.top = `${offsetTop + boundingRect.height}px`;
|
|
225
213
|
style.bottom = "auto";
|
|
226
214
|
}
|
|
227
|
-
if (position ===
|
|
215
|
+
if (position === index$1.PopoverPositions.TOP || position === index$1.PopoverPositions.BOTTOM) {
|
|
228
216
|
style.left = `${offsetLeft + boundingRect.width / 2 - this.host.clientWidth / 2}px`;
|
|
229
217
|
}
|
|
230
|
-
if (position ===
|
|
218
|
+
if (position === index$1.PopoverPositions.TOP_RIGHT || position === index$1.PopoverPositions.BOTTOM_RIGHT) {
|
|
231
219
|
style.right = "auto";
|
|
232
220
|
style.left = `${offsetLeft + boundingRect.width}px`;
|
|
233
221
|
}
|
|
234
|
-
if (position ===
|
|
222
|
+
if (position === index$1.PopoverPositions.TOP_LEFT || position === index$1.PopoverPositions.BOTTOM_LEFT) {
|
|
235
223
|
style.left = "auto";
|
|
236
224
|
style.right = `${offsetRight + boundingRect.width}px`;
|
|
237
225
|
}
|
|
238
|
-
if (position ===
|
|
226
|
+
if (position === index$1.PopoverPositions.RIGHT || position === index$1.PopoverPositions.LEFT) {
|
|
239
227
|
style.top = `${offsetTop + boundingRect.height / 2 - this.host.clientHeight / 2}px`;
|
|
240
228
|
style.bottom = "auto";
|
|
241
229
|
}
|
|
242
|
-
if (position ===
|
|
230
|
+
if (position === index$1.PopoverPositions.RIGHT) {
|
|
243
231
|
style.right = "auto";
|
|
244
232
|
style.left = `${offsetLeft + boundingRect.width}px`;
|
|
245
233
|
}
|
|
246
|
-
if (position ===
|
|
234
|
+
if (position === index$1.PopoverPositions.LEFT) {
|
|
247
235
|
style.left = "auto";
|
|
248
236
|
style.right = `${offsetRight + boundingRect.width}px`;
|
|
249
237
|
}
|
|
@@ -3,16 +3,21 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-e3299e0a.js');
|
|
6
|
+
const index$1 = require('./index-199cd650.js');
|
|
6
7
|
|
|
7
8
|
const stylesCss = ":host{--z-tooltip-theme--surface:var(--color-surface01);--z-tooltip-theme--text:var(--color-text01);--z-tooltip-shadow-filter:drop-shadow(0 1px 2px var(--shadow-color-base))}:host([dark]) z-popover{--z-popover-theme--surface:var(--color-surface05)}z-popover{--z-popover-padding:var(--space-unit);--z-popover-theme--surface:var(--z-tooltip-theme--surface);--z-popover-theme--text:var(--z-tooltip-theme--text);--z-popover-shadow-filter:var(--z-tooltip-shadow-filter)}";
|
|
8
9
|
|
|
9
10
|
const ZTooltip = class {
|
|
10
11
|
constructor(hostRef) {
|
|
11
12
|
index.registerInstance(this, hostRef);
|
|
12
|
-
|
|
13
|
+
/** Tooltip position. */
|
|
14
|
+
this.position = index$1.PopoverPositions.AUTO;
|
|
15
|
+
/** Enable tooltip dark mode. */
|
|
13
16
|
this.dark = false;
|
|
17
|
+
/**
|
|
18
|
+
* The open state of the tooltip.
|
|
19
|
+
*/
|
|
14
20
|
this.open = false;
|
|
15
|
-
this.bindTo = undefined;
|
|
16
21
|
}
|
|
17
22
|
onPopoverOpenChange() {
|
|
18
23
|
this.open = this.popover.open;
|
|
@@ -12,13 +12,9 @@ const ZUserDropdown = class {
|
|
|
12
12
|
index.registerInstance(this, hostRef);
|
|
13
13
|
this.userButtonClick = index.createEvent(this, "userButtonClick", 7);
|
|
14
14
|
this.dropdownMenuLinkClick = index.createEvent(this, "dropdownMenuLinkClick", 7);
|
|
15
|
-
|
|
16
|
-
this.userFullName = undefined;
|
|
17
|
-
this.userEmail = undefined;
|
|
18
|
-
this.menuContent = undefined;
|
|
15
|
+
/** if inner components colors are inverted, or not, default false */
|
|
19
16
|
this.useInverseColors = false;
|
|
20
17
|
this.isMenuOpen = false;
|
|
21
|
-
this.isMobile = undefined;
|
|
22
18
|
this.handleLoggedButtonClick = this.handleLoggedButtonClick.bind(this);
|
|
23
19
|
this.emitDropdownMenuLinkClick = this.emitDropdownMenuLinkClick.bind(this);
|
|
24
20
|
}
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
"./components/panel/z-panel-elem/index.js",
|
|
51
51
|
"./components/typography/z-body/index.js",
|
|
52
52
|
"./components/typography/z-heading/index.js",
|
|
53
|
+
"./components/z-anchor-navigation/index.js",
|
|
53
54
|
"./components/z-aria-alert/index.js",
|
|
54
55
|
"./components/z-avatar/index.js",
|
|
55
56
|
"./components/z-card/index.js",
|
|
@@ -112,7 +113,7 @@
|
|
|
112
113
|
],
|
|
113
114
|
"compiler": {
|
|
114
115
|
"name": "@stencil/core",
|
|
115
|
-
"version": "2.
|
|
116
|
+
"version": "2.18.1",
|
|
116
117
|
"typescriptVersion": "4.7.4"
|
|
117
118
|
},
|
|
118
119
|
"collections": [],
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
+
import { ButtonVariant, ButtonType, ButtonSize } from "../../../beans";
|
|
2
3
|
/**
|
|
3
4
|
* @slot - button label
|
|
4
5
|
*/
|
|
5
6
|
export class ZButton {
|
|
6
7
|
constructor() {
|
|
8
|
+
/** defines a string value that labels an interactive element, used for accessibility. */
|
|
7
9
|
this.ariaLabel = "";
|
|
8
|
-
|
|
9
|
-
this.target = undefined;
|
|
10
|
-
this.htmlid = undefined;
|
|
11
|
-
this.name = undefined;
|
|
10
|
+
/** HTML button disabled attribute. */
|
|
12
11
|
this.disabled = false;
|
|
13
|
-
|
|
14
|
-
this.
|
|
15
|
-
|
|
16
|
-
this.
|
|
12
|
+
/** HTML button type attribute. */
|
|
13
|
+
this.type = ButtonType.BUTTON;
|
|
14
|
+
/** Graphical variant: `primary`, `secondary`, `tertiary`. Defaults to `primary`. */
|
|
15
|
+
this.variant = ButtonVariant.PRIMARY;
|
|
16
|
+
/** Available sizes: `big`, `small` and `x-small`. Defaults to `big`. */
|
|
17
|
+
this.size = ButtonSize.BIG;
|
|
17
18
|
}
|
|
18
19
|
getAttributes() {
|
|
19
20
|
return {
|
|
@@ -2,13 +2,13 @@ import { h } from "@stencil/core";
|
|
|
2
2
|
import { tabletBreakpoint } from "../../../constants/breakpoints";
|
|
3
3
|
export class ZButtonSort {
|
|
4
4
|
constructor() {
|
|
5
|
-
|
|
6
|
-
this.label = undefined;
|
|
7
|
-
this.desclabel = undefined;
|
|
8
|
-
this.counter = undefined;
|
|
5
|
+
/** sort label content (ascending) (optional) */
|
|
9
6
|
this.sortlabelasc = "A-Z";
|
|
7
|
+
/** sort label content (descending) (optional) */
|
|
10
8
|
this.sortlabeldesc = "Z-A";
|
|
9
|
+
/** selected flag (optional) */
|
|
11
10
|
this.isselected = false;
|
|
11
|
+
/** sortable flag (optional) */
|
|
12
12
|
this.sortasc = true;
|
|
13
13
|
this.allowTooltip = false;
|
|
14
14
|
}
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
+
import { Device, ZChipType } from "../../../beans";
|
|
2
3
|
import { getDevice, handleKeyboardSubmit } from "../../../utils/utils";
|
|
3
4
|
export class ZChip {
|
|
4
5
|
constructor() {
|
|
5
|
-
|
|
6
|
-
this.type =
|
|
7
|
-
|
|
6
|
+
/** z-chip size type, can be default, medium or small */
|
|
7
|
+
this.type = ZChipType.DEFAULT;
|
|
8
|
+
/** set z-chip as disabled */
|
|
8
9
|
this.disabled = false;
|
|
9
10
|
}
|
|
10
11
|
emitinteractiveIconClick() {
|
|
11
12
|
this.interactiveIconClick.emit();
|
|
12
13
|
}
|
|
13
14
|
getIconSize() {
|
|
14
|
-
return getDevice() !==
|
|
15
|
+
return getDevice() !== Device.DESKTOP ? 22 : 14;
|
|
15
16
|
}
|
|
16
17
|
render() {
|
|
17
18
|
if (this.interactiveIcon) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
export class ZToggleButton {
|
|
3
3
|
constructor() {
|
|
4
|
-
|
|
4
|
+
/** disabled status flag (optional) */
|
|
5
5
|
this.isdisabled = false;
|
|
6
|
-
|
|
6
|
+
/** open by default (optional) */
|
|
7
7
|
this.opened = false;
|
|
8
8
|
}
|
|
9
9
|
emitToggleClick() {
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
import { randomId } from "../../../utils/utils";
|
|
3
|
+
import { LabelPosition } from "../../../beans";
|
|
3
4
|
export class ZToggleSwitch {
|
|
4
5
|
constructor() {
|
|
6
|
+
/** Disabled flag */
|
|
5
7
|
this.disabled = false;
|
|
6
|
-
|
|
8
|
+
/** Label position */
|
|
9
|
+
this.labelPosition = LabelPosition.LEFT;
|
|
10
|
+
/** Checked state */
|
|
7
11
|
this.checked = false;
|
|
12
|
+
/** HTML id attribute to set to the internal checkbox */
|
|
8
13
|
this.htmlid = `toggle-switch-id-${randomId()}`;
|
|
9
14
|
}
|
|
10
15
|
emitToggleClick() {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ZDatePickerMode, ZDatePickerModeValue, ZDatePickerPosition } from "../../beans";
|
|
1
2
|
export function validateDate(dateStr, hasTime = false) {
|
|
2
3
|
const regex = hasTime ? /^\d{1,2}[/-]\d{1,2}[/-]\d{2,4} - \d{2}:\d{2}$/ : /^\d{1,2}[/-]\d{1,2}[/-]\d{2,4}$/;
|
|
3
4
|
if (dateStr.match(regex) === null) {
|
|
@@ -8,18 +9,18 @@ export function validateDate(dateStr, hasTime = false) {
|
|
|
8
9
|
export function setFlatpickrPosition(element, mode) {
|
|
9
10
|
const toggleHeight = element.children[0].clientHeight;
|
|
10
11
|
element.style.setProperty("--z-range-picker--toggle-height", `${toggleHeight}px`);
|
|
11
|
-
const flatpickrHeight = mode ===
|
|
12
|
-
?
|
|
13
|
-
: mode ===
|
|
14
|
-
?
|
|
15
|
-
:
|
|
12
|
+
const flatpickrHeight = mode === ZDatePickerMode.DATE_TIME
|
|
13
|
+
? ZDatePickerModeValue.DATE_TIME
|
|
14
|
+
: mode === ZDatePickerMode.MONTHS
|
|
15
|
+
? ZDatePickerModeValue.MONTHS
|
|
16
|
+
: ZDatePickerModeValue.DATE;
|
|
16
17
|
const bottom = element.getBoundingClientRect().bottom;
|
|
17
18
|
const overflowBottom = bottom + flatpickrHeight > window.innerHeight;
|
|
18
19
|
const overflowTop = bottom - flatpickrHeight - toggleHeight < 0;
|
|
19
20
|
if (!overflowTop && overflowBottom) {
|
|
20
|
-
return
|
|
21
|
+
return ZDatePickerPosition.TOP;
|
|
21
22
|
}
|
|
22
|
-
return
|
|
23
|
+
return ZDatePickerPosition.BOTTOM;
|
|
23
24
|
}
|
|
24
25
|
export function setAriaOptions(element, mode) {
|
|
25
26
|
const calendar = element.getElementsByClassName("flatpickr-calendar");
|
|
@@ -39,13 +40,13 @@ export function setAriaOptions(element, mode) {
|
|
|
39
40
|
prevMonthArrow.setAttribute("role", "button");
|
|
40
41
|
nextMonthArrow.setAttribute("role", "button");
|
|
41
42
|
element.getElementsByClassName("cur-year")[0].setAttribute("aria-label", "Anno");
|
|
42
|
-
if (mode ===
|
|
43
|
+
if (mode === ZDatePickerMode.DATE) {
|
|
43
44
|
setDateAriaOptions(element, prevMonthArrow, nextMonthArrow);
|
|
44
45
|
}
|
|
45
|
-
if (mode ===
|
|
46
|
+
if (mode === ZDatePickerMode.DATE_TIME) {
|
|
46
47
|
setDateTimeAriaOptions(element, prevMonthArrow, nextMonthArrow);
|
|
47
48
|
}
|
|
48
|
-
if (mode ===
|
|
49
|
+
if (mode === ZDatePickerMode.MONTHS) {
|
|
49
50
|
setMonthsAriaOptions(element, prevMonthArrow, nextMonthArrow);
|
|
50
51
|
}
|
|
51
52
|
});
|
|
@@ -2,14 +2,15 @@ import { h } from "@stencil/core";
|
|
|
2
2
|
import flatpickr from "flatpickr";
|
|
3
3
|
import { Italian } from "flatpickr/dist/l10n/it.js";
|
|
4
4
|
import monthSelectPlugin from "flatpickr/dist/plugins/monthSelect";
|
|
5
|
+
import { InputType, ZDatePickerMode, ZDatePickerPosition } from "../../../beans";
|
|
5
6
|
import { setAriaOptions, setFlatpickrPosition, validateDate } from "../utils";
|
|
6
7
|
export class ZDatePicker {
|
|
7
8
|
constructor() {
|
|
8
|
-
|
|
9
|
+
/** z-input aria label */
|
|
9
10
|
this.ariaLabel = "";
|
|
10
|
-
|
|
11
|
-
this.mode =
|
|
12
|
-
this.flatpickrPosition =
|
|
11
|
+
/** [Optional] datepicker mode: date, datetime, only months */
|
|
12
|
+
this.mode = ZDatePickerMode.DATE;
|
|
13
|
+
this.flatpickrPosition = ZDatePickerPosition.BOTTOM;
|
|
13
14
|
this.inputError = false;
|
|
14
15
|
}
|
|
15
16
|
emitDateSelect(date) {
|
|
@@ -36,7 +37,7 @@ export class ZDatePicker {
|
|
|
36
37
|
const isNextArrowEntered = document.activeElement.classList.contains("flatpickr-next-month");
|
|
37
38
|
const arrowPressed = isPrevArrowEntered || isNextArrowEntered;
|
|
38
39
|
arrowPressed && ev.key === " " && ev.preventDefault();
|
|
39
|
-
if (this.mode ===
|
|
40
|
+
if (this.mode === ZDatePickerMode.MONTHS) {
|
|
40
41
|
isPrevArrowEntered && ((_d = this.picker) === null || _d === void 0 ? void 0 : _d.changeYear(this.picker.currentYear - 1));
|
|
41
42
|
isNextArrowEntered && ((_e = this.picker) === null || _e === void 0 ? void 0 : _e.changeYear(this.picker.currentYear + 1));
|
|
42
43
|
if (arrowPressed) {
|
|
@@ -81,11 +82,11 @@ export class ZDatePicker {
|
|
|
81
82
|
const classToAppend = this.hasChildren ? `${this.datePickerId}-hidden` : `${this.datePickerId}-container`;
|
|
82
83
|
this.picker = flatpickr(`.${classToAppend}`, {
|
|
83
84
|
appendTo: this.element.children[0],
|
|
84
|
-
enableTime: this.mode ===
|
|
85
|
+
enableTime: this.mode === ZDatePickerMode.DATE_TIME,
|
|
85
86
|
locale: Italian,
|
|
86
87
|
allowInput: true,
|
|
87
|
-
dateFormat: this.mode ===
|
|
88
|
-
ariaDateFormat: this.mode ===
|
|
88
|
+
dateFormat: this.mode === ZDatePickerMode.DATE_TIME ? "d-m-Y - H:i" : "d-m-Y",
|
|
89
|
+
ariaDateFormat: this.mode === ZDatePickerMode.MONTHS ? "F Y" : "d F Y",
|
|
89
90
|
minuteIncrement: 1,
|
|
90
91
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
91
92
|
time_24hr: true,
|
|
@@ -100,7 +101,7 @@ export class ZDatePicker {
|
|
|
100
101
|
setAriaOptions(this.element, this.mode);
|
|
101
102
|
},
|
|
102
103
|
wrap: true,
|
|
103
|
-
plugins: this.mode ===
|
|
104
|
+
plugins: this.mode === ZDatePickerMode.MONTHS && [
|
|
104
105
|
monthSelectPlugin({
|
|
105
106
|
dateFormat: "m-Y",
|
|
106
107
|
altFormat: "m-Y",
|
|
@@ -112,23 +113,23 @@ export class ZDatePicker {
|
|
|
112
113
|
});
|
|
113
114
|
}
|
|
114
115
|
formatDate(date) {
|
|
115
|
-
if (this.mode ===
|
|
116
|
+
if (this.mode === ZDatePickerMode.DATE) {
|
|
116
117
|
return `${flatpickr.formatDate(date, "d-m-Y")}`;
|
|
117
118
|
}
|
|
118
|
-
else if (this.mode ===
|
|
119
|
+
else if (this.mode === ZDatePickerMode.MONTHS) {
|
|
119
120
|
return `${flatpickr.formatDate(date, "m-Y")}`;
|
|
120
121
|
}
|
|
121
122
|
return `${flatpickr.formatDate(date, "d-m-Y - H:i")}`;
|
|
122
123
|
}
|
|
123
124
|
onStopTyping(value) {
|
|
124
125
|
let text = value.detail.value;
|
|
125
|
-
if (this.mode ===
|
|
126
|
+
if (this.mode === ZDatePickerMode.MONTHS) {
|
|
126
127
|
text = "01-".concat(value.detail.value);
|
|
127
128
|
}
|
|
128
129
|
const englishData = text.split("-");
|
|
129
|
-
const time = this.mode ===
|
|
130
|
+
const time = this.mode === ZDatePickerMode.DATE_TIME ? `T${englishData[3]}:00` : "";
|
|
130
131
|
const englishParsedData = `${englishData[2]}-${englishData[1]}-${englishData[0]}${time}`.split(" ").join("");
|
|
131
|
-
const isValidDate = validateDate(englishParsedData, this.mode ===
|
|
132
|
+
const isValidDate = validateDate(englishParsedData, this.mode === ZDatePickerMode.DATE_TIME);
|
|
132
133
|
if (text === "") {
|
|
133
134
|
this.inputError = false;
|
|
134
135
|
this.picker.setDate([]);
|
|
@@ -148,7 +149,7 @@ export class ZDatePicker {
|
|
|
148
149
|
return (h("div", { class: `${this.datePickerId}-hidden` }, h("input", { class: "hidden-input", "data-input": true }), h("slot", { name: "toggle" })));
|
|
149
150
|
}
|
|
150
151
|
renderZInput() {
|
|
151
|
-
return (h("div", { class: `${this.datePickerId}-container` }, h("z-input", { "data-input": "data-input", ariaLabel: this.ariaLabel, label: this.label, class: this.datePickerId, type:
|
|
152
|
+
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) => {
|
|
152
153
|
this.onStopTyping(value);
|
|
153
154
|
}, onStartTyping: () => {
|
|
154
155
|
this.inputError = false;
|
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import flatpickr from "flatpickr";
|
|
3
3
|
import { Italian } from "flatpickr/dist/l10n/it.js";
|
|
4
|
+
import { ZRangePickerMode, ZDatePickerPosition, InputType, InputStatus } from "../../../beans";
|
|
4
5
|
import { setAriaOptions, setFlatpickrPosition, validateDate } from "../utils";
|
|
5
6
|
export class ZRangePicker {
|
|
6
7
|
constructor() {
|
|
7
|
-
|
|
8
|
-
this.
|
|
9
|
-
this.
|
|
10
|
-
this.secondAriaLabel = undefined;
|
|
11
|
-
this.secondLabel = undefined;
|
|
12
|
-
this.mode = "date" /* ZRangePickerMode.DATE */;
|
|
13
|
-
this.flatpickrPosition = "bottom" /* ZDatePickerPosition.BOTTOM */;
|
|
8
|
+
/** [Optional] datepicker mode: date or datetime */
|
|
9
|
+
this.mode = ZRangePickerMode.DATE;
|
|
10
|
+
this.flatpickrPosition = ZDatePickerPosition.BOTTOM;
|
|
14
11
|
this.activeInput = "start-input";
|
|
15
12
|
this.firstInputError = false;
|
|
16
13
|
this.lastInputError = false;
|
|
@@ -57,11 +54,11 @@ export class ZRangePicker {
|
|
|
57
54
|
}
|
|
58
55
|
setupPickers() {
|
|
59
56
|
const config = {
|
|
60
|
-
enableTime: this.mode ===
|
|
57
|
+
enableTime: this.mode === ZRangePickerMode.DATE_TIME,
|
|
61
58
|
locale: Italian,
|
|
62
59
|
allowInput: true,
|
|
63
60
|
wrap: true,
|
|
64
|
-
dateFormat: this.mode ===
|
|
61
|
+
dateFormat: this.mode === ZRangePickerMode.DATE_TIME ? "d-m-Y - H:i" : "d-m-Y",
|
|
65
62
|
ariaDateFormat: "d F Y",
|
|
66
63
|
minuteIncrement: 1,
|
|
67
64
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
@@ -150,7 +147,7 @@ export class ZRangePicker {
|
|
|
150
147
|
setAriaOptions(this.element, this.mode);
|
|
151
148
|
}
|
|
152
149
|
formatDate(date) {
|
|
153
|
-
if (this.mode ===
|
|
150
|
+
if (this.mode === ZRangePickerMode.DATE) {
|
|
154
151
|
return `${flatpickr.formatDate(date, "d-m-Y")}`;
|
|
155
152
|
}
|
|
156
153
|
return `${flatpickr.formatDate(date, "d-m-Y - H:i")}`;
|
|
@@ -246,9 +243,9 @@ export class ZRangePicker {
|
|
|
246
243
|
onStopTyping(value) {
|
|
247
244
|
const text = value.detail.value.replace("/", "-");
|
|
248
245
|
const englishData = text.split("-");
|
|
249
|
-
const time = this.mode ===
|
|
246
|
+
const time = this.mode === ZRangePickerMode.DATE_TIME ? `T${englishData[3]}:00` : "";
|
|
250
247
|
const englishParsedData = `${englishData[2]}-${englishData[1]}-${englishData[0]}${time}`.split(" ").join("");
|
|
251
|
-
const isValidDate = validateDate(text, this.mode ===
|
|
248
|
+
const isValidDate = validateDate(text, this.mode === ZRangePickerMode.DATE_TIME);
|
|
252
249
|
const date = Date.parse(englishParsedData).toString();
|
|
253
250
|
if (this.activeInput === "start-input") {
|
|
254
251
|
if (text === "") {
|
|
@@ -310,7 +307,7 @@ export class ZRangePicker {
|
|
|
310
307
|
}
|
|
311
308
|
render() {
|
|
312
309
|
const zInputProps = {
|
|
313
|
-
type:
|
|
310
|
+
type: InputType.TEXT,
|
|
314
311
|
icon: "event",
|
|
315
312
|
tabindex: "0",
|
|
316
313
|
message: false,
|
|
@@ -322,9 +319,9 @@ export class ZRangePicker {
|
|
|
322
319
|
[this.mode]: true,
|
|
323
320
|
[this.activeInput]: true,
|
|
324
321
|
[this.flatpickrPosition]: true,
|
|
325
|
-
} }, h("div", { class: `${this.rangePickerId}-1-wrapper` }, h("div", { class: `${this.rangePickerId}-1-container` }, h("z-input", Object.assign({}, zInputProps, { "data-input": "data-input", class: `start-input ${this.rangePickerId}-1`, ariaLabel: this.firstAriaLabel, label: this.firstLabel, status: this.firstInputError &&
|
|
322
|
+
} }, h("div", { class: `${this.rangePickerId}-1-wrapper` }, h("div", { class: `${this.rangePickerId}-1-container` }, h("z-input", Object.assign({}, zInputProps, { "data-input": "data-input", class: `start-input ${this.rangePickerId}-1`, ariaLabel: this.firstAriaLabel, label: this.firstLabel, status: this.firstInputError && InputStatus.ERROR, onStartTyping: () => {
|
|
326
323
|
this.firstInputError = false;
|
|
327
|
-
} })))), h("div", { class: `${this.rangePickerId}-2-wrapper` }, h("div", { class: `${this.rangePickerId}-2-container` }, h("z-input", Object.assign({}, zInputProps, { "data-input": "data-input", class: `end-input ${this.rangePickerId}-2`, ariaLabel: this.secondAriaLabel, label: this.secondLabel, status: this.lastInputError &&
|
|
324
|
+
} })))), h("div", { class: `${this.rangePickerId}-2-wrapper` }, h("div", { class: `${this.rangePickerId}-2-container` }, h("z-input", Object.assign({}, zInputProps, { "data-input": "data-input", class: `end-input ${this.rangePickerId}-2`, ariaLabel: this.secondAriaLabel, label: this.secondLabel, status: this.lastInputError && InputStatus.ERROR, onStartTyping: () => {
|
|
328
325
|
this.lastInputError = false;
|
|
329
326
|
} }))))));
|
|
330
327
|
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { PopoverPositions, ZChipType } from "../../../beans";
|
|
2
3
|
import { tabletBreakpoint } from "../../../constants/breakpoints";
|
|
3
4
|
export class ZFile {
|
|
4
5
|
constructor() {
|
|
5
|
-
this.fileNumber = undefined;
|
|
6
|
-
this.fileName = undefined;
|
|
7
6
|
this.allowPopover = false;
|
|
8
7
|
this.popoverVisible = false;
|
|
9
8
|
}
|
|
@@ -31,7 +30,7 @@ export class ZFile {
|
|
|
31
30
|
return this.ellipsis.offsetWidth < this.ellipsis.scrollWidth;
|
|
32
31
|
}
|
|
33
32
|
render() {
|
|
34
|
-
return (h(Host, null, this.allowPopover && (h("z-popover", { open: this.popoverVisible, position:
|
|
33
|
+
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))));
|
|
35
34
|
}
|
|
36
35
|
static get is() { return "z-file"; }
|
|
37
36
|
static get encapsulation() { return "scoped"; }
|
|
@@ -1,20 +1,17 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { Device, DividerSize, ZFileUploadType } from "../../../beans";
|
|
2
3
|
import { getDevice } from "../../../utils/utils";
|
|
3
4
|
export class ZFileUpload {
|
|
4
5
|
constructor() {
|
|
6
|
+
/** Prop indicating the file upload type - can be default or dragdrop */
|
|
7
|
+
this.type = ZFileUploadType.DEFAULT;
|
|
8
|
+
/** Files added by the user */
|
|
9
|
+
this.files = [];
|
|
5
10
|
this.inputAttributes = {
|
|
6
11
|
type: "file",
|
|
7
12
|
id: "file-elem",
|
|
8
13
|
multiple: true,
|
|
9
14
|
};
|
|
10
|
-
this.type = "default" /* ZFileUploadType.DEFAULT */;
|
|
11
|
-
this.buttonVariant = undefined;
|
|
12
|
-
this.acceptedFormat = undefined;
|
|
13
|
-
this.fileMaxSize = undefined;
|
|
14
|
-
this.mainTitle = undefined;
|
|
15
|
-
this.description = undefined;
|
|
16
|
-
this.files = [];
|
|
17
|
-
this.invalidFiles = undefined;
|
|
18
15
|
}
|
|
19
16
|
/** Listen removeFile event sent from z-file component */
|
|
20
17
|
removeFileListener(e) {
|
|
@@ -50,8 +47,8 @@ export class ZFileUpload {
|
|
|
50
47
|
return this.files;
|
|
51
48
|
}
|
|
52
49
|
getType() {
|
|
53
|
-
if (getDevice() !==
|
|
54
|
-
return
|
|
50
|
+
if (getDevice() !== Device.DESKTOP)
|
|
51
|
+
return ZFileUploadType.DEFAULT;
|
|
55
52
|
return this.type;
|
|
56
53
|
}
|
|
57
54
|
handleAccessibility() {
|
|
@@ -60,7 +57,7 @@ export class ZFileUpload {
|
|
|
60
57
|
lastFile.focus();
|
|
61
58
|
}
|
|
62
59
|
else {
|
|
63
|
-
this.getType() ===
|
|
60
|
+
this.getType() === ZFileUploadType.DEFAULT
|
|
64
61
|
? this.button.querySelector("button").focus()
|
|
65
62
|
: this.uploadLink.focus();
|
|
66
63
|
}
|
|
@@ -116,7 +113,7 @@ export class ZFileUpload {
|
|
|
116
113
|
return h("z-body", { level: 3 }, fileFormatString || fileWeightString ? finalString : null);
|
|
117
114
|
}
|
|
118
115
|
renderFileSection() {
|
|
119
|
-
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:
|
|
116
|
+
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 })));
|
|
120
117
|
}
|
|
121
118
|
renderInput() {
|
|
122
119
|
return (h("input", Object.assign({}, this.inputAttributes, { onChange: () => this.fileInputHandler(), accept: this.acceptedFormat, ref: (val) => (this.input = val) })));
|
|
@@ -168,7 +165,7 @@ export class ZFileUpload {
|
|
|
168
165
|
})))));
|
|
169
166
|
}
|
|
170
167
|
render() {
|
|
171
|
-
return (h(Host, null, h("div", { tabIndex: 0, class: `container ${this.getType()}` }, this.renderTitle(), this.getType() ==
|
|
168
|
+
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()))));
|
|
172
169
|
}
|
|
173
170
|
static get is() { return "z-file-upload"; }
|
|
174
171
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
+
import { ButtonSize } from "../../../beans";
|
|
2
3
|
/**
|
|
3
4
|
* @slot - main navigation
|
|
4
5
|
* @slot links - bottom navigation
|
|
@@ -7,12 +8,6 @@ import { h } from "@stencil/core";
|
|
|
7
8
|
export class ZFooter {
|
|
8
9
|
constructor() {
|
|
9
10
|
this.creditsLinkId = "creditsLinkId";
|
|
10
|
-
this.data = undefined;
|
|
11
|
-
this.productName = undefined;
|
|
12
|
-
this.productVersion = undefined;
|
|
13
|
-
this.productCreditsLink = undefined;
|
|
14
|
-
this.showReportAProblemButton = undefined;
|
|
15
|
-
this.contentMaxWidth = undefined;
|
|
16
11
|
this.emitReportAProblemButtonClick = this.emitReportAProblemButtonClick.bind(this);
|
|
17
12
|
}
|
|
18
13
|
componentWillLoad() {
|
|
@@ -61,7 +56,7 @@ export class ZFooter {
|
|
|
61
56
|
if (this.productName || this.productVersion || this.productCreditsLink != null || this.showReportAProblemButton) {
|
|
62
57
|
const versionString = `${this.productName ? " versione" : "Versione"} ${this.productVersion}`;
|
|
63
58
|
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")));
|
|
64
|
-
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:
|
|
59
|
+
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" }))));
|
|
65
60
|
}
|
|
66
61
|
}
|
|
67
62
|
// INFO: backward compatibility
|