@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
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-a2ca4b97.js';
|
|
2
|
+
import { Q as InfoRevealPosition } from './index-9d028352.js';
|
|
2
3
|
|
|
3
4
|
const stylesCss = ":host{--z-info-reveal-theme--surface:var(--color-black);--z-info-reveal-theme--text:var(--color-white);--z-info-reveal-shadow:var(--shadow-2);--z-info-reveal-max-width:375px;position:relative;display:flex;width:fit-content;background-color:var(--z-info-reveal-theme--surface);color:var(--z-info-reveal-theme--text);font-size:var(--font-size-3);font-weight:var(--font-rg);letter-spacing:0;line-height:1.5}button{padding:0;border:none;background-color:transparent;border-radius:0;color:inherit;cursor:pointer;fill:currentcolor;font-family:inherit;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit}z-icon{--z-icon-width:calc(var(--space-unit) * 3);--z-icon-height:calc(var(--space-unit) * 3);display:flex}.z-info-reveal-trigger{display:flex;width:fit-content;height:100%;align-items:center;padding:calc(var(--space-unit) / 2);box-shadow:var(--z-info-reveal-shadow);column-gap:calc(var(--space-unit) / 2)}:host([position=\"top_left\"]) .z-info-reveal-trigger,:host([position=\"bottom_left\"]) .z-info-reveal-trigger{flex-direction:row-reverse}:host([open]) .z-info-reveal-trigger{box-shadow:none}.info-box{position:absolute;display:flex;max-width:var(--z-info-reveal-max-width);padding:calc(var(--space-unit) / 2);background-color:var(--z-info-reveal-theme--surface);box-shadow:var(--z-info-reveal-shadow);column-gap:calc(var(--space-unit) / 2);cursor:pointer}:host([position=\"bottom_left\"]) .info-box,:host([position=\"bottom_right\"]) .info-box{bottom:0}:host([position=\"top_right\"]) .info-box,:host([position=\"bottom_right\"]) .info-box{right:0}:host([position=\"top_left\"]) .info-box,:host([position=\"bottom_left\"]) .info-box{left:0;flex-direction:row-reverse}::slotted(*){display:none;width:max-content}::slotted([data-current]){display:block}:host([position=\"top_left\"]) .z-info-reveal-close,:host([position=\"top_right\"]) .z-info-reveal-close{align-self:flex-start}:host([position=\"bottom_left\"]) .z-info-reveal-close,:host([position=\"bottom_right\"]) .z-info-reveal-close{align-self:flex-end}";
|
|
4
5
|
|
|
5
6
|
const ZInfoReveal = class {
|
|
6
7
|
constructor(hostRef) {
|
|
7
8
|
registerInstance(this, hostRef);
|
|
9
|
+
/** Name of the icon for the open button */
|
|
8
10
|
this.icon = "informationsource";
|
|
9
|
-
|
|
10
|
-
this.
|
|
11
|
+
/** Info reveal's position */
|
|
12
|
+
this.position = InfoRevealPosition.BOTTOM_RIGHT;
|
|
13
|
+
/** Whether the info panel is open. */
|
|
11
14
|
this.open = false;
|
|
15
|
+
/** Current index for the info queue. */
|
|
12
16
|
this.currentIndex = null;
|
|
13
17
|
}
|
|
14
18
|
watchItems() {
|
|
@@ -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 { I as InputType } from './index-9d028352.js';
|
|
3
|
+
import { r as randomId } from './utils-9e81727a.js';
|
|
3
4
|
import './breakpoints-c386984e.js';
|
|
4
5
|
|
|
5
6
|
const stylesCss = ".sc-z-input-deprecated-h{display:inline-block;width:inherit}input.sc-z-input-deprecated::-ms-clear,input.sc-z-input-deprecated::-ms-reveal{display:none}.sc-z-input-deprecated-h input.sc-z-input-deprecated::-ms-clear,.sc-z-input-deprecated-h input.sc-z-input-deprecated::-ms-reveal{display:none}input.sc-z-input-deprecated,textarea.sc-z-input-deprecated,.textarea-wrapper.sc-z-input-deprecated,ul[role=\"listbox\"].sc-z-input-deprecated{box-sizing:border-box;border:var(--border-size-small) solid var(--color-surface04);background:var(--color-input-field01);border-radius:var(--border-radius-small);color:var(--color-text02);fill:var(--color-icon02);font-family:var(--font-family-sans);font-size:var(--font-size-3);font-weight:var(--font-rg);outline:none}input.sc-z-input-deprecated:focus:focus-visible,li[role=\"option\"].sc-z-input-deprecated:focus:focus-visible,.focus.sc-z-input-deprecated{box-shadow:var(--shadow-focus-primary)}.filled.sc-z-input-deprecated{border-color:var(--color-surface05)}.input-success.sc-z-input-deprecated,.input-success.sc-z-input-deprecated:hover,.input-success.hover.sc-z-input-deprecated{border-color:var(--color-success01);background:var(--color-success-inverse);fill:var(--color-success01)}.input-error.sc-z-input-deprecated,.input-error.sc-z-input-deprecated:hover,.input-error.hover.sc-z-input-deprecated{border-color:var(--color-error01);background:var(--color-error-inverse);fill:var(--color-error01)}.input-warning.sc-z-input-deprecated,.input-warning.sc-z-input-deprecated:hover,.input-warning.hover.sc-z-input-deprecated{border-color:var(--color-warning01);background:var(--color-warning-inverse);fill:var(--color-warning01)}input[readonly].sc-z-input-deprecated,.readonly.sc-z-input-deprecated{border-color:var(--color-disabled01);fill:var(--color-disabled01);pointer-events:none}input.sc-z-input-deprecated:disabled,.disabled.sc-z-input-deprecated,.filled.sc-z-input-deprecated:disabled{border-color:var(--color-disabled01);box-shadow:none;color:var(--color-disabled02);fill:var(--color-disabled01);pointer-events:none}input.sc-z-input-deprecated::placeholder,textarea.sc-z-input-deprecated::placeholder{color:var(--color-text05)}.sc-z-input-deprecated::-webkit-textarea-placeholder{color:var(--color-text05)}.sc-z-input-deprecated:-ms-textarea-placeholder{color:var(--color-text05)}.sc-z-input-deprecated::placeholder{color:var(--color-text05)}.text-wrapper.sc-z-input-deprecated>div.sc-z-input-deprecated{position:relative;z-index:1;fill:var(--color-icon02)}.text-wrapper.sc-z-input-deprecated>div.sc-z-input-deprecated>input.sc-z-input-deprecated{width:100%;height:calc(var(--space-unit) * 5.5);box-sizing:border-box;padding:0 calc(var(--space-unit) * 4.5) 0 calc(var(--space-unit) * 1.5);margin:0}.text-wrapper.sc-z-input-deprecated>div.sc-z-input-deprecated>input.has-icon.sc-z-input-deprecated,.text-wrapper.sc-z-input-deprecated>div.sc-z-input-deprecated>input.has-clear-icon.sc-z-input-deprecated{padding-right:calc(var(--space-unit) * 4)}.text-wrapper.sc-z-input-deprecated>div.sc-z-input-deprecated>input.has-icon.has-clear-icon.sc-z-input-deprecated{padding-right:calc(var(--space-unit) * 7)}.text-wrapper.sc-z-input-deprecated .icons-wrapper.sc-z-input-deprecated{position:absolute;z-index:2;right:calc(var(--space-unit) * 1.5);bottom:calc(var(--space-unit) * 1.5);display:flex}.text-wrapper.sc-z-input-deprecated .icons-wrapper.sc-z-input-deprecated>z-icon.sc-z-input-deprecated{--z-icon-width:18px;--z-icon-height:18px;display:block;margin-left:calc(var(--space-unit) * 0.5)}.text-wrapper.sc-z-input-deprecated .icons-wrapper.sc-z-input-deprecated>z-icon.reset-icon.sc-z-input-deprecated,.text-wrapper.sc-z-input-deprecated .icons-wrapper.sc-z-input-deprecated>z-icon.toggle-password-icon.sc-z-input-deprecated{cursor:pointer}.text-wrapper.sc-z-input-deprecated>div.sc-z-input-deprecated>input.sc-z-input-deprecated:-webkit-autofill,.text-wrapper.sc-z-input-deprecated>div.sc-z-input-deprecated>input.sc-z-input-deprecated:-webkit-autofill:hover,.text-wrapper.sc-z-input-deprecated>div.sc-z-input-deprecated>input.sc-z-input-deprecated:-webkit-autofill:focus,.text-wrapper.sc-z-input-deprecated>div.sc-z-input-deprecated>input.sc-z-input-deprecated:-webkit-autofill:active{background-clip:text !important}.textarea-wrapper.sc-z-input-deprecated{padding:calc(var(--space-unit) * 1.5);scrollbar-color:var(--color-primary01) transparent}textarea.sc-z-input-deprecated::-webkit-scrollbar{width:10px;background:linear-gradient(to right, transparent 0 3px, var(--gray200) 3px 7px, transparent 7px 10px);border-radius:var(--border-radius)}textarea.sc-z-input-deprecated::-webkit-scrollbar-track{background-color:transparent}textarea.sc-z-input-deprecated::-webkit-scrollbar-thumb{width:10px;background-color:var(--color-primary01);border-radius:var(--border-radius)}textarea.sc-z-input-deprecated::-webkit-scrollbar-thumb:hover{background-color:var(--color-hover-primary)}textarea.sc-z-input-deprecated{width:100%;min-height:132px;padding:0;border:none;margin:0;resize:none}.radio-wrapper.sc-z-input-deprecated,.checkbox-wrapper.sc-z-input-deprecated{position:relative;display:inline-flex;flex-direction:row;align-items:center;color:var(--color-text01);fill:var(--color-primary01);font-family:var(--font-family-sans)}.radio-wrapper.sc-z-input-deprecated:hover,.checkbox-wrapper.sc-z-input-deprecated:hover{color:var(--color-hover-primary);fill:currentcolor}.radio-wrapper.sc-z-input-deprecated>input.sc-z-input-deprecated,.checkbox-wrapper.sc-z-input-deprecated>input.sc-z-input-deprecated{position:absolute;z-index:-1;opacity:0;pointer-events:none}.radio-wrapper.sc-z-input-deprecated .radio-label.sc-z-input-deprecated,.checkbox-wrapper.sc-z-input-deprecated .checkbox-label.sc-z-input-deprecated{display:inline-flex;align-items:center;margin:0;color:inherit;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:1;text-transform:inherit}.radio-wrapper.sc-z-input-deprecated input.sc-z-input-deprecated:not(:disabled)+.radio-label.sc-z-input-deprecated,.checkbox-wrapper.sc-z-input-deprecated input.sc-z-input-deprecated:not(:disabled)+.checkbox-label.sc-z-input-deprecated{cursor:pointer}.radio-wrapper.sc-z-input-deprecated .radio-label.sc-z-input-deprecated z-icon.sc-z-input-deprecated,.checkbox-wrapper.sc-z-input-deprecated .checkbox-label.sc-z-input-deprecated z-icon.sc-z-input-deprecated{cursor:pointer;fill:inherit}.radio-wrapper.sc-z-input-deprecated .radio-label.after.sc-z-input-deprecated,.checkbox-wrapper.sc-z-input-deprecated .checkbox-label.after.sc-z-input-deprecated{flex-direction:row}.radio-wrapper.sc-z-input-deprecated .radio-label.before.sc-z-input-deprecated,.checkbox-wrapper.sc-z-input-deprecated .checkbox-label.before.sc-z-input-deprecated{flex-direction:row-reverse}.radio-wrapper.sc-z-input-deprecated .radio-label.after.sc-z-input-deprecated>span.sc-z-input-deprecated,.checkbox-wrapper.sc-z-input-deprecated .checkbox-label.after.sc-z-input-deprecated>span.sc-z-input-deprecated{margin-left:var(--space-unit)}.radio-wrapper.sc-z-input-deprecated .radio-label.before.sc-z-input-deprecated>span.sc-z-input-deprecated,.checkbox-wrapper.sc-z-input-deprecated .checkbox-label.before.sc-z-input-deprecated>span.sc-z-input-deprecated{margin-right:var(--space-unit)}.radio-wrapper.sc-z-input-deprecated>input.sc-z-input-deprecated:focus:focus-visible+.radio-label.sc-z-input-deprecated>z-icon.sc-z-input-deprecated,.checkbox-wrapper.sc-z-input-deprecated>input.sc-z-input-deprecated:focus:focus-visible+.checkbox-label.sc-z-input-deprecated>z-icon.sc-z-input-deprecated{border-radius:var(--border-radius-small);box-shadow:var(--shadow-focus-primary)}.radio-wrapper.sc-z-input-deprecated>input.sc-z-input-deprecated:disabled+.radio-label.sc-z-input-deprecated,.checkbox-wrapper.sc-z-input-deprecated>input.sc-z-input-deprecated:disabled+.checkbox-label.sc-z-input-deprecated{color:var(--color-disabled02)}.radio-wrapper.sc-z-input-deprecated>input.sc-z-input-deprecated:disabled+.radio-label.sc-z-input-deprecated>z-icon.sc-z-input-deprecated,.checkbox-wrapper.sc-z-input-deprecated>input.sc-z-input-deprecated:disabled+.checkbox-label.sc-z-input-deprecated>z-icon.sc-z-input-deprecated{cursor:default;fill:var(--color-disabled01)}";
|
|
@@ -12,28 +13,28 @@ const ZInputDeprecated = class {
|
|
|
12
13
|
this.stopTyping = createEvent(this, "stopTyping", 7);
|
|
13
14
|
this.inputCheck = createEvent(this, "inputCheck", 7);
|
|
14
15
|
this.optionSelect = createEvent(this, "optionSelect", 7);
|
|
16
|
+
/** the id of the input element */
|
|
15
17
|
this.htmlid = `id-${randomId()}`;
|
|
16
|
-
|
|
17
|
-
this.name = undefined;
|
|
18
|
-
this.label = undefined;
|
|
18
|
+
/** the input aria-label */
|
|
19
19
|
this.ariaLabel = "";
|
|
20
|
-
|
|
20
|
+
/** the input is disabled */
|
|
21
21
|
this.disabled = false;
|
|
22
|
+
/** the input is readonly */
|
|
22
23
|
this.readonly = false;
|
|
24
|
+
/** the input is required (optional): available for text, password, number, email, textarea, checkbox */
|
|
23
25
|
this.required = false;
|
|
26
|
+
/** checked: available for checkbox, radio */
|
|
24
27
|
this.checked = false;
|
|
25
|
-
|
|
26
|
-
this.htmltitle = undefined;
|
|
27
|
-
this.status = undefined;
|
|
28
|
+
/** show input helper message (optional): available for text, password, number, email, textarea, select */
|
|
28
29
|
this.hasmessage = true;
|
|
29
|
-
|
|
30
|
+
/** the input label position: available for checkbox, radio */
|
|
30
31
|
this.labelafter = true;
|
|
32
|
+
/** timeout setting before trigger `inputChange` event (optional): available for text, textarea */
|
|
31
33
|
this.typingtimeout = 300;
|
|
32
|
-
|
|
33
|
-
this.autocomplete = undefined;
|
|
34
|
+
/** multiple options can be selected (optional): available for select */
|
|
34
35
|
this.multiple = false;
|
|
36
|
+
/** render clear icon when typing (optional): available for text */
|
|
35
37
|
this.hasclearicon = true;
|
|
36
|
-
this.icon = undefined;
|
|
37
38
|
this.isTyping = false;
|
|
38
39
|
this.textareaWrapperHover = "";
|
|
39
40
|
this.textareaWrapperFocus = "";
|
|
@@ -42,8 +43,8 @@ const ZInputDeprecated = class {
|
|
|
42
43
|
inputCheckListener(e) {
|
|
43
44
|
const data = e.detail;
|
|
44
45
|
switch (this.type) {
|
|
45
|
-
case
|
|
46
|
-
if (data.type ===
|
|
46
|
+
case InputType.RADIO:
|
|
47
|
+
if (data.type === InputType.RADIO && data.name === this.name && data.id !== this.htmlid) {
|
|
47
48
|
this.checked = false;
|
|
48
49
|
}
|
|
49
50
|
break;
|
|
@@ -76,8 +77,8 @@ const ZInputDeprecated = class {
|
|
|
76
77
|
/** get checked status */
|
|
77
78
|
async isChecked() {
|
|
78
79
|
switch (this.type) {
|
|
79
|
-
case
|
|
80
|
-
case
|
|
80
|
+
case InputType.CHECKBOX:
|
|
81
|
+
case InputType.RADIO:
|
|
81
82
|
return this.checked;
|
|
82
83
|
default:
|
|
83
84
|
return false;
|
|
@@ -88,7 +89,7 @@ const ZInputDeprecated = class {
|
|
|
88
89
|
this.emitStartTyping();
|
|
89
90
|
}
|
|
90
91
|
let validity;
|
|
91
|
-
if (this.type ===
|
|
92
|
+
if (this.type === InputType.TEXTAREA) {
|
|
92
93
|
validity = this.getValidity("textarea");
|
|
93
94
|
}
|
|
94
95
|
else {
|
|
@@ -149,15 +150,15 @@ const ZInputDeprecated = class {
|
|
|
149
150
|
}
|
|
150
151
|
return attr;
|
|
151
152
|
}
|
|
152
|
-
renderInputText(type =
|
|
153
|
+
renderInputText(type = InputType.TEXT) {
|
|
153
154
|
const attr = this.getTextAttributes();
|
|
154
|
-
if (this.icon || type ===
|
|
155
|
+
if (this.icon || type === InputType.PASSWORD) {
|
|
155
156
|
Object.assign(attr.class, { "has-icon": true });
|
|
156
157
|
}
|
|
157
158
|
if (this.hasclearicon) {
|
|
158
159
|
Object.assign(attr.class, { "has-clear-icon": true });
|
|
159
160
|
}
|
|
160
|
-
return (h("div", { class: "text-wrapper" }, this.renderLabel(), h("div", null, h("input", Object.assign({ type: type ===
|
|
161
|
+
return (h("div", { class: "text-wrapper" }, this.renderLabel(), h("div", null, h("input", Object.assign({ type: type === InputType.PASSWORD && !this.passwordHidden ? InputType.TEXT : type }, attr, { "aria-label": this.ariaLabel || this.label })), this.renderIcons()), this.renderMessage()));
|
|
161
162
|
}
|
|
162
163
|
renderLabel() {
|
|
163
164
|
if (!this.label) {
|
|
@@ -172,7 +173,7 @@ const ZInputDeprecated = class {
|
|
|
172
173
|
} }, this.renderResetIcon(), this.renderIcon()));
|
|
173
174
|
}
|
|
174
175
|
renderIcon() {
|
|
175
|
-
if (this.type ===
|
|
176
|
+
if (this.type === InputType.PASSWORD) {
|
|
176
177
|
return this.renderShowHidePassword();
|
|
177
178
|
}
|
|
178
179
|
if (!this.icon) {
|
|
@@ -231,16 +232,16 @@ const ZInputDeprecated = class {
|
|
|
231
232
|
/* END select */
|
|
232
233
|
render() {
|
|
233
234
|
switch (this.type) {
|
|
234
|
-
case
|
|
235
|
-
case
|
|
236
|
-
case
|
|
237
|
-
case
|
|
235
|
+
case InputType.TEXT:
|
|
236
|
+
case InputType.PASSWORD:
|
|
237
|
+
case InputType.NUMBER:
|
|
238
|
+
case InputType.EMAIL:
|
|
238
239
|
return this.renderInputText(this.type);
|
|
239
|
-
case
|
|
240
|
+
case InputType.TEXTAREA:
|
|
240
241
|
return this.renderTextarea();
|
|
241
|
-
case
|
|
242
|
+
case InputType.CHECKBOX:
|
|
242
243
|
return this.renderCheckbox();
|
|
243
|
-
case
|
|
244
|
+
case InputType.RADIO:
|
|
244
245
|
return this.renderRadio();
|
|
245
246
|
// @ts-ignore
|
|
246
247
|
case "select":
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h, c as createEvent, g as getElement } from './index-a2ca4b97.js';
|
|
2
|
-
import {
|
|
2
|
+
import { h as KeyboardCode, n as ListDividerType } from './index-9d028352.js';
|
|
3
|
+
import { r as randomId, d as boolean, a as getElementTree, h as handleKeyboardSubmit, e as getClickedElement } from './utils-9e81727a.js';
|
|
3
4
|
import './breakpoints-c386984e.js';
|
|
4
5
|
|
|
5
6
|
const stylesCss$1 = "label{display:block;margin:var(--space-unit) 0;color:var(--color-text02);font-family:var(--font-family-sans);font-size:var(--font-size-1);font-weight:var(--font-sb);letter-spacing:0.32px;line-height:1.33;text-align:left;text-transform:uppercase}label.disabled{color:var(--color-disabled02)}";
|
|
@@ -7,9 +8,8 @@ const stylesCss$1 = "label{display:block;margin:var(--space-unit) 0;color:var(--
|
|
|
7
8
|
const ZInputLabel = class {
|
|
8
9
|
constructor(hostRef) {
|
|
9
10
|
registerInstance(this, hostRef);
|
|
10
|
-
|
|
11
|
+
/** the label is disabled */
|
|
11
12
|
this.disabled = false;
|
|
12
|
-
this.htmlfor = undefined;
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
15
|
return (h("label", { htmlFor: this.htmlfor, class: { disabled: this.disabled } }, this.value));
|
|
@@ -17,29 +17,29 @@ const ZInputLabel = class {
|
|
|
17
17
|
};
|
|
18
18
|
ZInputLabel.style = stylesCss$1;
|
|
19
19
|
|
|
20
|
-
const stylesCss = ".sc-z-select-h{display:inline-block;width:inherit;color:var(--color-text02);font-family:var(--font-family-sans);font-size:var(--font-size-3);font-weight:var(--font-rg)}.select-wrapper.sc-z-select>z-input.sc-z-select{width:100%}.select-wrapper.sc-z-select>div.sc-z-select{position:relative}.select-wrapper.sc-z-select>div.closed.sc-z-select{overflow:hidden;height:0}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select{position:absolute;width:100%;box-sizing:border-box;padding:calc(var(--space-unit) * 0.5) var(--space-unit);border:var(--border-size-small) solid var(--gray200);border-top:none;background:var(--color-surface01);outline:none}.select-wrapper.sc-z-select .closed.sc-z-select .ul-scroll-wrapper.sc-z-select{z-index:10}.select-wrapper.sc-z-select .open.sc-z-select .ul-scroll-wrapper.sc-z-select{z-index:20}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select>z-list.sc-z-select{position:relative;overflow:auto;max-height:240px;padding:calc(var(--space-unit) * 0.5);outline:none;scrollbar-color:var(--color-primary01) transparent}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select>z-list.sc-z-select::-webkit-scrollbar{width:10px;background:linear-gradient(to right, transparent 0 3px, var(--gray200) 3px 7px, transparent 7px 10px);border-radius:var(--border-radius)}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select>z-list.sc-z-select::-webkit-scrollbar-track{background-color:transparent}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select>z-list.sc-z-select::-webkit-scrollbar-thumb{width:10px;background-color:var(--color-primary01);border-radius:var(--border-radius)}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select>z-list.sc-z-select::-webkit-scrollbar-thumb:hover{background-color:var(--color-hover-primary)}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select z-list.sc-z-select z-list-element.sc-z-select span.sc-z-select{display:block;padding:0 calc(var(--space-unit) * 1.5)}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select z-list.sc-z-select z-list-element.sc-z-select span.selected.sc-z-select{font-weight:bold}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select .no-results.sc-z-select z-icon.sc-z-select{margin-right:var(--space-unit)}";
|
|
20
|
+
const stylesCss = ".sc-z-select-h{display:inline-block;width:inherit;color:var(--color-text02);font-family:var(--font-family-sans);font-size:var(--font-size-3);font-weight:var(--font-rg)}.select-wrapper.sc-z-select>z-input.sc-z-select{width:100%}.select-wrapper.sc-z-select>div.sc-z-select{position:relative}.select-wrapper.sc-z-select>div.closed.sc-z-select{overflow:hidden;height:0}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select{position:absolute;width:100%;box-sizing:border-box;padding:calc(var(--space-unit) * 0.5) var(--space-unit);border:var(--border-size-small) solid var(--gray200);border-top:none;background:var(--color-surface01);outline:none}.select-wrapper.sc-z-select .closed.sc-z-select .ul-scroll-wrapper.sc-z-select{z-index:10}.select-wrapper.sc-z-select .open.sc-z-select .ul-scroll-wrapper.sc-z-select{z-index:20}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select>z-list.sc-z-select{position:relative;overflow:auto;max-height:240px;padding:calc(var(--space-unit) * 0.5);outline:none;scrollbar-color:var(--color-primary01) transparent}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select>z-list.sc-z-select::-webkit-scrollbar{width:10px;background:linear-gradient(to right, transparent 0 3px, var(--gray200) 3px 7px, transparent 7px 10px);border-radius:var(--border-radius)}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select>z-list.sc-z-select::-webkit-scrollbar-track{background-color:transparent}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select>z-list.sc-z-select::-webkit-scrollbar-thumb{width:10px;background-color:var(--color-primary01);border-radius:var(--border-radius)}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select>z-list.sc-z-select::-webkit-scrollbar-thumb:hover{background-color:var(--color-hover-primary)}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select z-list.sc-z-select z-list-element.sc-z-select span.sc-z-select{display:block;padding:0 calc(var(--space-unit) * 1.5)}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select z-list.sc-z-select z-list-element.sc-z-select span.selected.sc-z-select{font-weight:bold}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select .no-results.sc-z-select z-icon.sc-z-select{margin-right:var(--space-unit)}.z-list-group-title.sc-z-select{color:var(--gray800)}";
|
|
21
21
|
|
|
22
22
|
const ZSelect = class {
|
|
23
23
|
constructor(hostRef) {
|
|
24
24
|
registerInstance(this, hostRef);
|
|
25
25
|
this.optionSelect = createEvent(this, "optionSelect", 7);
|
|
26
|
-
|
|
26
|
+
/** the id of the input element */
|
|
27
27
|
this.htmlid = `id-${randomId()}`;
|
|
28
|
-
|
|
29
|
-
this.name = undefined;
|
|
30
|
-
this.label = undefined;
|
|
28
|
+
/** the input aria-label */
|
|
31
29
|
this.ariaLabel = "";
|
|
30
|
+
/** the input is disabled */
|
|
32
31
|
this.disabled = false;
|
|
32
|
+
/** the input is readonly */
|
|
33
33
|
this.readonly = false;
|
|
34
|
-
|
|
35
|
-
this.htmltitle = undefined;
|
|
36
|
-
this.status = undefined;
|
|
34
|
+
/** input helper message (optional) - if set to `false` message won't be displayed */
|
|
37
35
|
this.message = true;
|
|
36
|
+
/** the input has autocomplete option */
|
|
38
37
|
this.autocomplete = false;
|
|
38
|
+
/** no result text message */
|
|
39
39
|
this.noresultslabel = "Nessun risultato";
|
|
40
40
|
this.isOpen = false;
|
|
41
41
|
this.selectedItem = null;
|
|
42
|
-
this.
|
|
42
|
+
this.itemsList = [];
|
|
43
43
|
this.toggleSelectUl = this.toggleSelectUl.bind(this);
|
|
44
44
|
this.selectItem = this.selectItem.bind(this);
|
|
45
45
|
this.handleSelectFocus = this.handleSelectFocus.bind(this);
|
|
@@ -143,7 +143,7 @@ const ZSelect = class {
|
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
145
|
arrowsSelectNav(e, key) {
|
|
146
|
-
const arrows = [
|
|
146
|
+
const arrows = [KeyboardCode.ARROW_DOWN, KeyboardCode.ARROW_UP];
|
|
147
147
|
if (!arrows.includes(e.key)) {
|
|
148
148
|
return;
|
|
149
149
|
}
|
|
@@ -153,10 +153,10 @@ const ZSelect = class {
|
|
|
153
153
|
this.toggleSelectUl();
|
|
154
154
|
}
|
|
155
155
|
let index;
|
|
156
|
-
if (e.key ===
|
|
156
|
+
if (e.key === KeyboardCode.ARROW_DOWN) {
|
|
157
157
|
index = key + 1 === this.itemsList.length ? 0 : key + 1;
|
|
158
158
|
}
|
|
159
|
-
else if (e.key ===
|
|
159
|
+
else if (e.key === KeyboardCode.ARROW_UP) {
|
|
160
160
|
index = key <= 0 ? this.itemsList.length - 1 : key - 1;
|
|
161
161
|
}
|
|
162
162
|
this.focusSelectItem(index);
|
|
@@ -194,11 +194,11 @@ const ZSelect = class {
|
|
|
194
194
|
this.toggleSelectUl();
|
|
195
195
|
}
|
|
196
196
|
handleSelectFocus(e) {
|
|
197
|
-
if (e instanceof KeyboardEvent && e.key ===
|
|
197
|
+
if (e instanceof KeyboardEvent && e.key === KeyboardCode.ESC) {
|
|
198
198
|
e.stopPropagation();
|
|
199
199
|
return this.toggleSelectUl(true);
|
|
200
200
|
}
|
|
201
|
-
if (e instanceof KeyboardEvent && e.key !==
|
|
201
|
+
if (e instanceof KeyboardEvent && e.key !== KeyboardCode.TAB && e.key !== KeyboardCode.ENTER) {
|
|
202
202
|
return;
|
|
203
203
|
}
|
|
204
204
|
const tree = getElementTree(getClickedElement());
|
|
@@ -216,7 +216,7 @@ const ZSelect = class {
|
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
218
|
renderInput() {
|
|
219
|
-
return (h("z-input", { id: `${this.htmlid}_input`, htmlid: `${this.htmlid}_input`, placeholder: this.placeholder, value: !this.isOpen && this.selectedItem ? this.selectedItem.name.replace(/<[^>]+>/g, "") : null, label: this.label, "aria-label": this.ariaLabel, icon: this.isOpen ? "caret-up" : "caret-down", hasclearicon: this.hasAutocomplete(), message: false, disabled: this.disabled, readonly: this.readonly || (!this.hasAutocomplete() && this.isOpen), status: this.isOpen ? undefined : this.status, onClick: (e) => {
|
|
219
|
+
return (h("z-input", { id: `${this.htmlid}_input`, htmlid: `${this.htmlid}_input`, placeholder: this.placeholder, value: !this.isOpen && this.selectedItem ? this.selectedItem.name.replace(/<[^>]+>/g, "") : null, label: this.label, "aria-label": this.ariaLabel, icon: this.isOpen ? "caret-up" : "caret-down", hasclearicon: this.hasAutocomplete(), message: false, disabled: this.disabled, readonly: this.readonly || (!this.hasAutocomplete() && this.isOpen), status: this.isOpen ? undefined : this.status, autocomplete: "off", onClick: (e) => {
|
|
220
220
|
this.handleInputClick(e);
|
|
221
221
|
}, onKeyUp: (e) => {
|
|
222
222
|
if (e.keyCode !== 13) {
|
|
@@ -241,14 +241,30 @@ const ZSelect = class {
|
|
|
241
241
|
readonly: this.readonly,
|
|
242
242
|
filled: !!this.selectedItem,
|
|
243
243
|
[`input-${this.status}`]: !this.isOpen && !!this.status,
|
|
244
|
-
} }, this.renderSelectUlItems()))));
|
|
244
|
+
} }, this.hasGroupItems ? this.renderSelectGroupItems() : this.renderSelectUlItems()))));
|
|
245
245
|
}
|
|
246
246
|
renderSelectUlItems() {
|
|
247
247
|
if (!this.itemsList.length) {
|
|
248
248
|
return this.renderNoSearchResults();
|
|
249
249
|
}
|
|
250
250
|
return this.itemsList.map((item, key) => {
|
|
251
|
-
return (h("z-list-element", { clickable: !item.disabled, disabled: item.disabled, dividerType:
|
|
251
|
+
return (h("z-list-element", { clickable: !item.disabled, disabled: item.disabled, dividerType: ListDividerType.ELEMENT, role: "option", tabindex: item.disabled || !this.isOpen ? -1 : 0, "aria-selected": !!item.selected, id: `${this.htmlid}_${key}`, onClickItem: () => this.selectItem(item, true), onKeyDown: (e) => this.arrowsSelectNav(e, key) }, h("span", { class: { selected: !!item.selected }, innerHTML: item.name })));
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
renderSelectGroupItems() {
|
|
255
|
+
if (!this.itemsList.length) {
|
|
256
|
+
return this.renderNoSearchResults();
|
|
257
|
+
}
|
|
258
|
+
const newData = this.itemsList.reduce((group, item, index) => {
|
|
259
|
+
var _a;
|
|
260
|
+
const { category } = item;
|
|
261
|
+
const zListItem = (h("z-list-element", { clickable: !item.disabled, disabled: item.disabled, dividerType: ListDividerType.HEADER, role: "option", tabindex: item.disabled || !this.isOpen ? -1 : 0, "aria-selected": !!item.selected, id: `${this.htmlid}_${index}`, onClickItem: () => this.selectItem(item, true), onKeyDown: (e) => this.arrowsSelectNav(e, index) }, h("span", { class: { selected: !!item.selected }, innerHTML: item.name })));
|
|
262
|
+
group[category] = (_a = group[category]) !== null && _a !== void 0 ? _a : [];
|
|
263
|
+
group[category].push(zListItem);
|
|
264
|
+
return group;
|
|
265
|
+
}, {});
|
|
266
|
+
return Object.entries(newData).map(([key, value]) => {
|
|
267
|
+
return (h("z-list-group", { "divider-type": ListDividerType.ELEMENT }, h("z-body", { class: "z-list-group-title", level: 3, slot: "header-title", variant: "semibold" }, key), value.map((item) => item)));
|
|
252
268
|
});
|
|
253
269
|
}
|
|
254
270
|
renderNoSearchResults() {
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, g as getElement, H as Host } from './index-a2ca4b97.js';
|
|
2
|
+
import { m as LabelPosition, I as InputType } from './index-9d028352.js';
|
|
3
|
+
import { r as randomId, d as boolean } from './utils-9e81727a.js';
|
|
4
|
+
import './breakpoints-c386984e.js';
|
|
5
|
+
|
|
6
|
+
const stylesCss$1 = ".sc-z-input-h{display:inline-block;width:inherit}input.sc-z-input::-ms-clear,input.sc-z-input::-ms-reveal{display:none}.sc-z-input-h input.sc-z-input::-ms-clear,.sc-z-input-h input.sc-z-input::-ms-reveal{display:none}input.sc-z-input,textarea.sc-z-input,.textarea-wrapper.sc-z-input{box-sizing:border-box;border:var(--border-size-small) solid var(--color-surface04);background:var(--color-input-field01);border-radius:var(--border-radius-small);color:var(--color-text02);fill:var(--color-icon02);font-family:var(--font-family-sans);font-size:var(--font-size-3);font-weight:var(--font-rg);outline:none}input.sc-z-input:focus:focus-visible,.textarea-wrapper.sc-z-input:focus-within{box-shadow:var(--shadow-focus-primary)}input.sc-z-input:focus:focus-visible,textarea.sc-z-input:focus:focus-visible{color:var(--color-primary01)}.filled.sc-z-input{border-color:var(--color-surface05)}.input-success.sc-z-input{border-color:var(--color-success01);background:var(--color-success-inverse);fill:var(--color-success01)}.input-error.sc-z-input{border-color:var(--color-error01);background:var(--color-error-inverse);fill:var(--color-error01)}.input-warning.sc-z-input{border-color:var(--color-warning01);background:var(--color-warning-inverse);fill:var(--color-warning01)}input.sc-z-input:hover,.textarea-wrapper.sc-z-input:hover{outline:var(--border-size-medium) solid var(--color-surface04);outline-offset:-2px}input[readonly].sc-z-input,.readonly.sc-z-input{border-color:var(--color-disabled01);fill:var(--color-disabled01);pointer-events:none}[disabled].sc-z-input-h:not([disabled=\"false\"]) input.sc-z-input,[disabled].sc-z-input-h:not([disabled=\"false\"]) .textarea-wrapper.sc-z-input,[disabled].sc-z-input-h:not([disabled=\"false\"]) z-icon.sc-z-input{border-color:var(--color-disabled01);box-shadow:none;color:var(--color-disabled02);fill:var(--color-disabled01);pointer-events:none}[disabled].sc-z-input-h:not([disabled=\"false\"]) input.sc-z-input:hover{border-width:var(--border-size-small)}input.sc-z-input::placeholder,textarea.sc-z-input::placeholder{color:var(--color-text05)}.sc-z-input::-webkit-textarea-placeholder{color:var(--color-text05)}.sc-z-input:-ms-textarea-placeholder{color:var(--color-text05)}.sc-z-input::placeholder{color:var(--color-text05)}.sc-z-input:placeholder{color:var(--color-text05)}label.input-label.sc-z-input{display:block;padding-bottom:var(--space-unit);color:var(--color-text02);font-family:var(--font-family-sans);font-size:var(--font-size-1);font-weight:var(--font-sb);text-align:left;text-transform:uppercase}[disabled].sc-z-input-h:not([disabled=\"false\"]) label.input-label.sc-z-input{color:var(--color-disabled02)}.text-wrapper.sc-z-input>div.sc-z-input{position:relative;z-index:1;fill:var(--color-icon02)}.text-wrapper.sc-z-input>div.sc-z-input>input.sc-z-input{width:100%;height:calc(var(--space-unit) * 5.5);box-sizing:border-box;padding:0 calc(var(--space-unit) * 1.5);margin:0}.text-wrapper.sc-z-input>div.sc-z-input>input.has-icon.sc-z-input,.text-wrapper.sc-z-input>div.sc-z-input>input.has-clear-icon.sc-z-input{padding-right:calc(var(--space-unit) * 5.25)}.text-wrapper.sc-z-input>div.sc-z-input>input.has-icon.has-clear-icon.sc-z-input{padding-right:calc(var(--space-unit) * 8)}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input{position:absolute;z-index:2;top:50%;right:calc(var(--space-unit) * 1.5);display:flex;pointer-events:none;transform:translateY(-50%)}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.icon-button.sc-z-input{padding:0;border:0;background:none;color:inherit;font:inherit;pointer-events:initial}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.icon-button.sc-z-input+button.icon-button.sc-z-input{margin-left:calc(var(--space-unit) * 0.5)}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.icon-button.reset-icon.sc-z-input,.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.icon-button.toggle-password-icon.sc-z-input{cursor:pointer}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.icon-button.sc-z-input>z-icon.sc-z-input{--z-icon-width:18px;--z-icon-height:18px;display:block}.text-wrapper.sc-z-input>div.sc-z-input>input.sc-z-input:-webkit-autofill,.text-wrapper.sc-z-input>div.sc-z-input>input.sc-z-input:-webkit-autofill:hover,.text-wrapper.sc-z-input>div.sc-z-input>input.sc-z-input:-webkit-autofill:focus,.text-wrapper.sc-z-input>div.sc-z-input>input.sc-z-input:-webkit-autofill:active{background-clip:text !important}.textarea-wrapper.sc-z-input{padding:calc(var(--space-unit) * 1.5);scrollbar-color:var(--color-primary01) transparent}textarea.sc-z-input::-webkit-scrollbar{width:10px;background:linear-gradient(to right, transparent 0 3px, var(--gray200) 3px 7px, transparent 7px 10px);border-radius:var(--border-radius)}textarea.sc-z-input::-webkit-scrollbar-track{background-color:transparent}textarea.sc-z-input::-webkit-scrollbar-thumb{width:10px;background-color:var(--color-primary01);border-radius:var(--border-radius)}textarea.sc-z-input::-webkit-scrollbar-thumb:hover{background-color:var(--color-hover-primary)}textarea.sc-z-input{width:100%;min-height:132px;padding:0;border:none;margin:0;resize:none}.radio-wrapper.sc-z-input,.checkbox-wrapper.sc-z-input{position:relative;display:inline-flex;flex-direction:row;align-items:center;color:var(--color-text01);fill:var(--color-primary01);font-family:var(--font-family-sans)}.radio-wrapper.sc-z-input:hover,.checkbox-wrapper.sc-z-input:hover{color:var(--color-hover-primary);fill:currentcolor}.radio-wrapper.sc-z-input>input.sc-z-input,.checkbox-wrapper.sc-z-input>input.sc-z-input{position:absolute;z-index:-1;opacity:0;pointer-events:none}.radio-wrapper.sc-z-input .radio-label.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.sc-z-input{display:inline-flex;align-items:center;margin:0;color:inherit;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:1;text-transform:inherit}.radio-wrapper.sc-z-input input.sc-z-input:not(:disabled)+.radio-label.sc-z-input,.checkbox-wrapper.sc-z-input input.sc-z-input:not(:disabled)+.checkbox-label.sc-z-input{cursor:pointer}.radio-wrapper.sc-z-input .radio-label.sc-z-input z-icon.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.sc-z-input z-icon.sc-z-input{cursor:pointer;fill:inherit}.radio-wrapper.sc-z-input .radio-label.after.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.after.sc-z-input{flex-direction:row}.radio-wrapper.sc-z-input .radio-label.before.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.before.sc-z-input{flex-direction:row-reverse}.radio-wrapper.sc-z-input .radio-label.after.sc-z-input>span.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.after.sc-z-input>span.sc-z-input{margin-left:var(--space-unit)}.radio-wrapper.sc-z-input .radio-label.before.sc-z-input>span.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.before.sc-z-input>span.sc-z-input{margin-right:var(--space-unit)}.radio-wrapper.sc-z-input>input.sc-z-input:focus:focus-visible+.radio-label.sc-z-input>z-icon.sc-z-input,.checkbox-wrapper.sc-z-input>input.sc-z-input:focus:focus-visible+.checkbox-label.sc-z-input>z-icon.sc-z-input{border-radius:var(--border-radius-small);box-shadow:var(--shadow-focus-primary)}.radio-wrapper.sc-z-input>input.sc-z-input:disabled+.radio-label.sc-z-input,.checkbox-wrapper.sc-z-input>input.sc-z-input:disabled+.checkbox-label.sc-z-input{color:var(--color-disabled02)}.radio-wrapper.sc-z-input>input.sc-z-input:disabled+.radio-label.sc-z-input>z-icon.sc-z-input,.checkbox-wrapper.sc-z-input>input.sc-z-input:disabled+.checkbox-label.sc-z-input>z-icon.sc-z-input{cursor:default;fill:var(--color-disabled01)}";
|
|
7
|
+
|
|
8
|
+
const ZInput = class {
|
|
9
|
+
constructor(hostRef) {
|
|
10
|
+
registerInstance(this, hostRef);
|
|
11
|
+
this.inputChange = createEvent(this, "inputChange", 7);
|
|
12
|
+
this.startTyping = createEvent(this, "startTyping", 7);
|
|
13
|
+
this.stopTyping = createEvent(this, "stopTyping", 7);
|
|
14
|
+
this.inputCheck = createEvent(this, "inputCheck", 7);
|
|
15
|
+
/** the id of the input element */
|
|
16
|
+
this.htmlid = `id-${randomId()}`;
|
|
17
|
+
/** the input aria-label */
|
|
18
|
+
this.ariaLabel = "";
|
|
19
|
+
/** the input is disabled */
|
|
20
|
+
this.disabled = false;
|
|
21
|
+
/** the input is readonly */
|
|
22
|
+
this.readonly = false;
|
|
23
|
+
/** the input is required (optional): available for text, password, number, email, textarea, checkbox */
|
|
24
|
+
this.required = false;
|
|
25
|
+
/** checked: available for checkbox, radio */
|
|
26
|
+
this.checked = false;
|
|
27
|
+
/** input helper message (optional): available for text, password, number, email, textarea - if set to `false` message won't be displayed */
|
|
28
|
+
this.message = true;
|
|
29
|
+
/** the input label position: available for checkbox, radio */
|
|
30
|
+
this.labelPosition = LabelPosition.RIGHT;
|
|
31
|
+
/** render clear icon when typing (optional): available for text */
|
|
32
|
+
this.hasclearicon = true;
|
|
33
|
+
this.isTyping = false;
|
|
34
|
+
this.passwordHidden = true;
|
|
35
|
+
this.typingtimeout = 300;
|
|
36
|
+
}
|
|
37
|
+
inputCheckListener(e) {
|
|
38
|
+
const data = e.detail;
|
|
39
|
+
switch (this.type) {
|
|
40
|
+
case InputType.RADIO:
|
|
41
|
+
if (data.type === InputType.RADIO && data.name === this.name && data.id !== this.htmlid) {
|
|
42
|
+
this.checked = false;
|
|
43
|
+
}
|
|
44
|
+
break;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
/** get checked status */
|
|
48
|
+
async isChecked() {
|
|
49
|
+
switch (this.type) {
|
|
50
|
+
case InputType.CHECKBOX:
|
|
51
|
+
case InputType.RADIO:
|
|
52
|
+
return this.checked;
|
|
53
|
+
default:
|
|
54
|
+
console.warn("`isChecked` method is only available for type `checkbox` and `radio`");
|
|
55
|
+
return false;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
emitInputChange(value) {
|
|
59
|
+
if (!this.isTyping) {
|
|
60
|
+
this.emitStartTyping();
|
|
61
|
+
}
|
|
62
|
+
let validity;
|
|
63
|
+
if (this.type === InputType.TEXTAREA) {
|
|
64
|
+
validity = this.getValidity("textarea");
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
validity = this.getValidity("input");
|
|
68
|
+
}
|
|
69
|
+
this.value = value;
|
|
70
|
+
this.inputChange.emit({ value, validity });
|
|
71
|
+
clearTimeout(this.timer);
|
|
72
|
+
this.timer = setTimeout(() => {
|
|
73
|
+
this.emitStopTyping(this.value, validity);
|
|
74
|
+
}, this.typingtimeout);
|
|
75
|
+
}
|
|
76
|
+
emitStartTyping() {
|
|
77
|
+
this.isTyping = true;
|
|
78
|
+
this.startTyping.emit();
|
|
79
|
+
}
|
|
80
|
+
emitStopTyping(value, validity) {
|
|
81
|
+
this.isTyping = false;
|
|
82
|
+
this.stopTyping.emit({
|
|
83
|
+
value: value,
|
|
84
|
+
validity: validity,
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
emitInputCheck(checked) {
|
|
88
|
+
this.inputCheck.emit({
|
|
89
|
+
id: this.htmlid,
|
|
90
|
+
checked: checked,
|
|
91
|
+
type: this.type,
|
|
92
|
+
name: this.name,
|
|
93
|
+
value: this.value,
|
|
94
|
+
validity: this.getValidity("input"),
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
getValidity(type) {
|
|
98
|
+
const input = this.hostElement.querySelector(type);
|
|
99
|
+
return input.validity;
|
|
100
|
+
}
|
|
101
|
+
/* START text/password/email/number */
|
|
102
|
+
getTextAttributes() {
|
|
103
|
+
return {
|
|
104
|
+
id: this.htmlid,
|
|
105
|
+
name: this.name,
|
|
106
|
+
placeholder: this.placeholder,
|
|
107
|
+
value: this.value,
|
|
108
|
+
disabled: this.disabled,
|
|
109
|
+
readonly: this.readonly,
|
|
110
|
+
required: this.required,
|
|
111
|
+
title: this.htmltitle,
|
|
112
|
+
class: {
|
|
113
|
+
[`input-${this.status}`]: !!this.status,
|
|
114
|
+
filled: !!this.value,
|
|
115
|
+
},
|
|
116
|
+
autocomplete: this.autocomplete,
|
|
117
|
+
onInput: (e) => this.emitInputChange(e.target.value),
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
getNumberAttributes(type) {
|
|
121
|
+
if (type != InputType.NUMBER) {
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
124
|
+
return {
|
|
125
|
+
min: this.min,
|
|
126
|
+
max: this.max,
|
|
127
|
+
step: this.step,
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
getPatternAttribute(type) {
|
|
131
|
+
if (type != InputType.PASSWORD &&
|
|
132
|
+
type != InputType.TEXT &&
|
|
133
|
+
type != InputType.TEL &&
|
|
134
|
+
type != InputType.SEARCH &&
|
|
135
|
+
type != InputType.URL &&
|
|
136
|
+
type != InputType.EMAIL) {
|
|
137
|
+
return;
|
|
138
|
+
}
|
|
139
|
+
return {
|
|
140
|
+
pattern: this.pattern,
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
renderInputText(type = InputType.TEXT) {
|
|
144
|
+
const attr = Object.assign(Object.assign(Object.assign({}, this.getTextAttributes()), this.getNumberAttributes(type)), this.getPatternAttribute(type));
|
|
145
|
+
if (this.icon || type === InputType.PASSWORD) {
|
|
146
|
+
Object.assign(attr.class, { "has-icon": true });
|
|
147
|
+
}
|
|
148
|
+
if (this.hasclearicon && type != InputType.NUMBER) {
|
|
149
|
+
Object.assign(attr.class, { "has-clear-icon": true });
|
|
150
|
+
}
|
|
151
|
+
return (h("div", { class: "text-wrapper" }, this.renderLabel(), h("div", null, h("input", Object.assign({ type: type === InputType.PASSWORD && !this.passwordHidden ? InputType.TEXT : type }, attr, { "aria-label": this.ariaLabel || this.label })), this.renderIcons()), this.renderMessage()));
|
|
152
|
+
}
|
|
153
|
+
renderLabel() {
|
|
154
|
+
if (!this.label) {
|
|
155
|
+
return;
|
|
156
|
+
}
|
|
157
|
+
return (h("label", { class: "input-label body-5-sb", id: `${this.htmlid}_label`, htmlFor: this.htmlid, "aria-label": this.label }, this.label));
|
|
158
|
+
}
|
|
159
|
+
renderIcons() {
|
|
160
|
+
return (h("span", { class: "icons-wrapper" }, this.renderResetIcon(), this.renderIcon()));
|
|
161
|
+
}
|
|
162
|
+
renderIcon() {
|
|
163
|
+
if (this.type === InputType.PASSWORD) {
|
|
164
|
+
return this.renderShowHidePassword();
|
|
165
|
+
}
|
|
166
|
+
if (!this.icon) {
|
|
167
|
+
return;
|
|
168
|
+
}
|
|
169
|
+
return (h("button", { type: "button", class: "icon-button input-icon", tabIndex: -1 }, h("z-icon", { name: this.icon })));
|
|
170
|
+
}
|
|
171
|
+
renderResetIcon() {
|
|
172
|
+
if (!this.hasclearicon || !this.value || this.disabled || this.readonly || this.type == InputType.NUMBER) {
|
|
173
|
+
return;
|
|
174
|
+
}
|
|
175
|
+
return (h("button", { type: "button", class: "icon-button reset-icon", "aria-label": "cancella il contenuto dell'input", onClick: () => this.emitInputChange("") }, h("z-icon", { name: "multiply" })));
|
|
176
|
+
}
|
|
177
|
+
renderShowHidePassword() {
|
|
178
|
+
return (h("button", { type: "button", class: "icon-button toggle-password-icon", disabled: this.disabled, "aria-label": this.passwordHidden ? "mostra password" : "nascondi password", onClick: () => (this.passwordHidden = !this.passwordHidden) }, h("z-icon", { name: this.passwordHidden ? "view-filled" : "view-off-filled" })));
|
|
179
|
+
}
|
|
180
|
+
renderMessage() {
|
|
181
|
+
if (boolean(this.message) === false) {
|
|
182
|
+
return;
|
|
183
|
+
}
|
|
184
|
+
return (h("z-input-message", { message: boolean(this.message) === true ? undefined : this.message, status: this.status }));
|
|
185
|
+
}
|
|
186
|
+
/* END text/password/email/number */
|
|
187
|
+
/* START textarea */
|
|
188
|
+
renderTextarea() {
|
|
189
|
+
const attributes = this.getTextAttributes();
|
|
190
|
+
return (h("div", { class: "text-wrapper" }, this.renderLabel(), h("div", { class: Object.assign(Object.assign({}, attributes.class), { "textarea-wrapper": true, "readonly": attributes.readonly }) }, h("textarea", Object.assign({}, attributes, { "aria-label": this.ariaLabel || this.label }))), this.renderMessage()));
|
|
191
|
+
}
|
|
192
|
+
/* END textarea */
|
|
193
|
+
handleCheck(ev) {
|
|
194
|
+
this.checked = ev.target.checked;
|
|
195
|
+
this.emitInputCheck(this.checked);
|
|
196
|
+
}
|
|
197
|
+
/* START checkbox */
|
|
198
|
+
renderCheckbox() {
|
|
199
|
+
return (h("div", { class: "checkbox-wrapper" }, h("input", { id: this.htmlid, type: "checkbox", name: this.name, checked: this.checked, disabled: this.disabled, readonly: this.readonly, required: this.required, onChange: this.handleCheck.bind(this), value: this.value }), h("label", { htmlFor: this.htmlid, class: {
|
|
200
|
+
"checkbox-label": true,
|
|
201
|
+
"after": this.labelPosition === LabelPosition.RIGHT,
|
|
202
|
+
"before": this.labelPosition === LabelPosition.LEFT,
|
|
203
|
+
} }, h("z-icon", { name: this.checked ? "checkbox-checked" : "checkbox", "aria-hidden": "true" }), this.label && h("span", { innerHTML: this.label }))));
|
|
204
|
+
}
|
|
205
|
+
/* END checkbox */
|
|
206
|
+
/* START radio */
|
|
207
|
+
renderRadio() {
|
|
208
|
+
return (h("div", { class: "radio-wrapper" }, h("input", { id: this.htmlid, type: "radio", name: this.name, checked: this.checked, disabled: this.disabled, readonly: this.readonly, onChange: this.handleCheck.bind(this), value: this.value }), h("label", { htmlFor: this.htmlid, class: {
|
|
209
|
+
"radio-label": true,
|
|
210
|
+
"after": this.labelPosition === LabelPosition.RIGHT,
|
|
211
|
+
"before": this.labelPosition === LabelPosition.LEFT,
|
|
212
|
+
} }, h("z-icon", { name: this.checked ? "radio-button-checked" : "radio-button", "aria-hidden": "true" }), this.label && h("span", { innerHTML: this.label }))));
|
|
213
|
+
}
|
|
214
|
+
/* END radio */
|
|
215
|
+
render() {
|
|
216
|
+
switch (this.type) {
|
|
217
|
+
case InputType.TEXTAREA:
|
|
218
|
+
return this.renderTextarea();
|
|
219
|
+
case InputType.CHECKBOX:
|
|
220
|
+
return this.renderCheckbox();
|
|
221
|
+
case InputType.RADIO:
|
|
222
|
+
return this.renderRadio();
|
|
223
|
+
default:
|
|
224
|
+
return this.renderInputText(this.type);
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
get hostElement() { return getElement(this); }
|
|
228
|
+
};
|
|
229
|
+
ZInput.style = stylesCss$1;
|
|
230
|
+
|
|
231
|
+
const stylesCss = ":host{display:flex;min-height:calc(var(--space-unit) * 2.5);align-items:start;margin-top:var(--space-unit);color:var(--color-text05);fill:currentcolor;font-family:var(--font-family-sans);font-size:var(--font-size-2);letter-spacing:0.16px}:host([status=\"success\"]){color:var(--color-text-success)}:host([status=\"error\"]){color:var(--color-text-error)}:host([status=\"warning\"]){color:var(--color-warning02)}:host(:focus){outline:none}:host>z-icon{--z-icon-width:calc(var(--space-unit) * 2);--z-icon-height:calc(var(--space-unit) * 2);--z-icon-right-margin:var(--space-unit)}";
|
|
232
|
+
|
|
233
|
+
const ZInputMessage = class {
|
|
234
|
+
constructor(hostRef) {
|
|
235
|
+
registerInstance(this, hostRef);
|
|
236
|
+
this.statusIcons = {
|
|
237
|
+
success: "checkmark-circle",
|
|
238
|
+
error: "multiply-circled",
|
|
239
|
+
warning: "exclamation-circle",
|
|
240
|
+
};
|
|
241
|
+
}
|
|
242
|
+
render() {
|
|
243
|
+
return (h(Host, { role: "alert", "aria-label": this.message, tabindex: this.message ? 0 : -1 }, this.statusIcons[this.status] && this.message && h("z-icon", { name: this.statusIcons[this.status] }), h("span", { innerHTML: this.message })));
|
|
244
|
+
}
|
|
245
|
+
};
|
|
246
|
+
ZInputMessage.style = stylesCss;
|
|
247
|
+
|
|
248
|
+
export { ZInput as z_input, ZInputMessage as z_input_message };
|