@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,29 +1,30 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
+
import { InputType } from "../../beans";
|
|
2
3
|
import { randomId } from "../../utils/utils";
|
|
3
4
|
export class ZInputDeprecated {
|
|
4
5
|
constructor() {
|
|
6
|
+
/** the id of the input element */
|
|
5
7
|
this.htmlid = `id-${randomId()}`;
|
|
6
|
-
|
|
7
|
-
this.name = undefined;
|
|
8
|
-
this.label = undefined;
|
|
8
|
+
/** the input aria-label */
|
|
9
9
|
this.ariaLabel = "";
|
|
10
|
-
|
|
10
|
+
/** the input is disabled */
|
|
11
11
|
this.disabled = false;
|
|
12
|
+
/** the input is readonly */
|
|
12
13
|
this.readonly = false;
|
|
14
|
+
/** the input is required (optional): available for text, password, number, email, textarea, checkbox */
|
|
13
15
|
this.required = false;
|
|
16
|
+
/** checked: available for checkbox, radio */
|
|
14
17
|
this.checked = false;
|
|
15
|
-
|
|
16
|
-
this.htmltitle = undefined;
|
|
17
|
-
this.status = undefined;
|
|
18
|
+
/** show input helper message (optional): available for text, password, number, email, textarea, select */
|
|
18
19
|
this.hasmessage = true;
|
|
19
|
-
|
|
20
|
+
/** the input label position: available for checkbox, radio */
|
|
20
21
|
this.labelafter = true;
|
|
22
|
+
/** timeout setting before trigger `inputChange` event (optional): available for text, textarea */
|
|
21
23
|
this.typingtimeout = 300;
|
|
22
|
-
|
|
23
|
-
this.autocomplete = undefined;
|
|
24
|
+
/** multiple options can be selected (optional): available for select */
|
|
24
25
|
this.multiple = false;
|
|
26
|
+
/** render clear icon when typing (optional): available for text */
|
|
25
27
|
this.hasclearicon = true;
|
|
26
|
-
this.icon = undefined;
|
|
27
28
|
this.isTyping = false;
|
|
28
29
|
this.textareaWrapperHover = "";
|
|
29
30
|
this.textareaWrapperFocus = "";
|
|
@@ -32,8 +33,8 @@ export class ZInputDeprecated {
|
|
|
32
33
|
inputCheckListener(e) {
|
|
33
34
|
const data = e.detail;
|
|
34
35
|
switch (this.type) {
|
|
35
|
-
case
|
|
36
|
-
if (data.type ===
|
|
36
|
+
case InputType.RADIO:
|
|
37
|
+
if (data.type === InputType.RADIO && data.name === this.name && data.id !== this.htmlid) {
|
|
37
38
|
this.checked = false;
|
|
38
39
|
}
|
|
39
40
|
break;
|
|
@@ -66,8 +67,8 @@ export class ZInputDeprecated {
|
|
|
66
67
|
/** get checked status */
|
|
67
68
|
async isChecked() {
|
|
68
69
|
switch (this.type) {
|
|
69
|
-
case
|
|
70
|
-
case
|
|
70
|
+
case InputType.CHECKBOX:
|
|
71
|
+
case InputType.RADIO:
|
|
71
72
|
return this.checked;
|
|
72
73
|
default:
|
|
73
74
|
return false;
|
|
@@ -78,7 +79,7 @@ export class ZInputDeprecated {
|
|
|
78
79
|
this.emitStartTyping();
|
|
79
80
|
}
|
|
80
81
|
let validity;
|
|
81
|
-
if (this.type ===
|
|
82
|
+
if (this.type === InputType.TEXTAREA) {
|
|
82
83
|
validity = this.getValidity("textarea");
|
|
83
84
|
}
|
|
84
85
|
else {
|
|
@@ -139,15 +140,15 @@ export class ZInputDeprecated {
|
|
|
139
140
|
}
|
|
140
141
|
return attr;
|
|
141
142
|
}
|
|
142
|
-
renderInputText(type =
|
|
143
|
+
renderInputText(type = InputType.TEXT) {
|
|
143
144
|
const attr = this.getTextAttributes();
|
|
144
|
-
if (this.icon || type ===
|
|
145
|
+
if (this.icon || type === InputType.PASSWORD) {
|
|
145
146
|
Object.assign(attr.class, { "has-icon": true });
|
|
146
147
|
}
|
|
147
148
|
if (this.hasclearicon) {
|
|
148
149
|
Object.assign(attr.class, { "has-clear-icon": true });
|
|
149
150
|
}
|
|
150
|
-
return (h("div", { class: "text-wrapper" }, this.renderLabel(), h("div", null, h("input", Object.assign({ type: type ===
|
|
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()));
|
|
151
152
|
}
|
|
152
153
|
renderLabel() {
|
|
153
154
|
if (!this.label) {
|
|
@@ -162,7 +163,7 @@ export class ZInputDeprecated {
|
|
|
162
163
|
} }, this.renderResetIcon(), this.renderIcon()));
|
|
163
164
|
}
|
|
164
165
|
renderIcon() {
|
|
165
|
-
if (this.type ===
|
|
166
|
+
if (this.type === InputType.PASSWORD) {
|
|
166
167
|
return this.renderShowHidePassword();
|
|
167
168
|
}
|
|
168
169
|
if (!this.icon) {
|
|
@@ -221,16 +222,16 @@ export class ZInputDeprecated {
|
|
|
221
222
|
/* END select */
|
|
222
223
|
render() {
|
|
223
224
|
switch (this.type) {
|
|
224
|
-
case
|
|
225
|
-
case
|
|
226
|
-
case
|
|
227
|
-
case
|
|
225
|
+
case InputType.TEXT:
|
|
226
|
+
case InputType.PASSWORD:
|
|
227
|
+
case InputType.NUMBER:
|
|
228
|
+
case InputType.EMAIL:
|
|
228
229
|
return this.renderInputText(this.type);
|
|
229
|
-
case
|
|
230
|
+
case InputType.TEXTAREA:
|
|
230
231
|
return this.renderTextarea();
|
|
231
|
-
case
|
|
232
|
+
case InputType.CHECKBOX:
|
|
232
233
|
return this.renderCheckbox();
|
|
233
|
-
case
|
|
234
|
+
case InputType.RADIO:
|
|
234
235
|
return this.renderRadio();
|
|
235
236
|
// @ts-ignore
|
|
236
237
|
case "select":
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
export class ZInputLabel {
|
|
3
3
|
constructor() {
|
|
4
|
-
|
|
4
|
+
/** the label is disabled */
|
|
5
5
|
this.disabled = false;
|
|
6
|
-
this.htmlfor = undefined;
|
|
7
6
|
}
|
|
8
7
|
render() {
|
|
9
8
|
return (h("label", { htmlFor: this.htmlfor, class: { disabled: this.disabled } }, this.value));
|
|
@@ -1,15 +1,22 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { PopoverPosition, PopoverBorderRadius, PopoverShadow, KeyboardCode } from "../../beans";
|
|
2
3
|
import { getElementTree } from "../../utils/utils";
|
|
3
4
|
export class ZPopoverDeprecated {
|
|
4
5
|
/**
|
|
5
6
|
* Constructor.
|
|
6
7
|
*/
|
|
7
8
|
constructor() {
|
|
8
|
-
|
|
9
|
+
/** [optional] Popover position */
|
|
10
|
+
this.position = PopoverPosition.AFTER_UP;
|
|
11
|
+
/** [optional] Background color token for popover */
|
|
9
12
|
this.backgroundColor = "color-white";
|
|
10
|
-
|
|
11
|
-
this.
|
|
13
|
+
/** [optional] Border radius token for popover */
|
|
14
|
+
this.borderRadius = PopoverBorderRadius.SMALL;
|
|
15
|
+
/** [optional] Box shadow token for popover */
|
|
16
|
+
this.boxShadow = PopoverShadow.SHADOW_1;
|
|
17
|
+
/** [optional] Show or hide arrow */
|
|
12
18
|
this.showArrow = false;
|
|
19
|
+
/** [optional] Sets padding for Popover container */
|
|
13
20
|
this.padding = "8px";
|
|
14
21
|
this.isVisible = false;
|
|
15
22
|
this.popoverPosition = this.position;
|
|
@@ -66,7 +73,7 @@ export class ZPopoverDeprecated {
|
|
|
66
73
|
firstSide = "after";
|
|
67
74
|
}
|
|
68
75
|
}
|
|
69
|
-
this.popoverPosition = `${firstSide}-${secondSide}
|
|
76
|
+
this.popoverPosition = PopoverPosition[`${firstSide}-${secondSide}`];
|
|
70
77
|
this.isVisible = true;
|
|
71
78
|
}
|
|
72
79
|
closePopover() {
|
|
@@ -74,7 +81,7 @@ export class ZPopoverDeprecated {
|
|
|
74
81
|
this.isVisible = false;
|
|
75
82
|
}
|
|
76
83
|
closePopoverWithKeyboard(e) {
|
|
77
|
-
if (e.key ===
|
|
84
|
+
if (e.key === KeyboardCode.ESC) {
|
|
78
85
|
this.closePopover();
|
|
79
86
|
}
|
|
80
87
|
}
|
|
@@ -84,7 +91,7 @@ export class ZPopoverDeprecated {
|
|
|
84
91
|
event.stopPropagation();
|
|
85
92
|
}
|
|
86
93
|
handleKeyDown(event) {
|
|
87
|
-
if (event.code ===
|
|
94
|
+
if (event.code === KeyboardCode.ENTER) {
|
|
88
95
|
this.isVisible ? this.closePopover() : this.openPopover();
|
|
89
96
|
}
|
|
90
97
|
}
|
|
@@ -97,7 +104,7 @@ export class ZPopoverDeprecated {
|
|
|
97
104
|
}
|
|
98
105
|
render() {
|
|
99
106
|
return (h(Host, { onKeyDown: this.handleKeyDown }, h("div", { tabindex: "0", onClick: (event) => this.handleClick(event), onKeyDown: (event) => {
|
|
100
|
-
if (event.key ===
|
|
107
|
+
if (event.key === KeyboardCode.ENTER) {
|
|
101
108
|
this.handleClick(event);
|
|
102
109
|
}
|
|
103
110
|
} }, h("slot", { name: "trigger" })), h("div", { ref: (e) => (this.popoverElem = e), class: {
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { StatusTagStatus } from "../../beans";
|
|
2
3
|
export class ZStatusTag {
|
|
3
4
|
constructor() {
|
|
4
|
-
|
|
5
|
-
this.
|
|
6
|
-
this.expandable = undefined;
|
|
7
|
-
this.status = "default" /* StatusTagStatus.DEFAULT */;
|
|
8
|
-
this.variant = undefined;
|
|
5
|
+
/** [optional] Status tag color */
|
|
6
|
+
this.status = StatusTagStatus.DEFAULT;
|
|
9
7
|
if (!this.icon && !this.text) {
|
|
10
8
|
console.warn("z-status-tag must contain at least one prop between icon and text");
|
|
11
9
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { PopoverPositions } from "../../beans/index";
|
|
2
3
|
const DOCUMENT_ELEMENT = document.documentElement;
|
|
3
4
|
/**
|
|
4
5
|
* Find the closest scrollable parent of a node.
|
|
@@ -76,29 +77,16 @@ function computeOffset(element, targetParentOffset) {
|
|
|
76
77
|
}
|
|
77
78
|
export class ZTooltipDeprecated {
|
|
78
79
|
constructor() {
|
|
79
|
-
|
|
80
|
-
this.type =
|
|
80
|
+
/** Tooltip position. */
|
|
81
|
+
this.type = PopoverPositions.AUTO;
|
|
82
|
+
/**
|
|
83
|
+
* The open state of the tooltip.
|
|
84
|
+
*/
|
|
81
85
|
this.open = false;
|
|
82
|
-
this.bindTo = undefined;
|
|
83
|
-
this.position = undefined;
|
|
84
86
|
}
|
|
85
87
|
validateType(newValue) {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
newValue !== "auto" /* PopoverPositions.AUTO */ &&
|
|
89
|
-
newValue !== "bottom" /* PopoverPositions.BOTTOM */ &&
|
|
90
|
-
newValue !== "bottom_left" /* PopoverPositions.BOTTOM_LEFT */ &&
|
|
91
|
-
newValue !== "bottom_right" /* PopoverPositions.BOTTOM_RIGHT */ &&
|
|
92
|
-
newValue !== "left" /* PopoverPositions.LEFT */ &&
|
|
93
|
-
newValue !== "left_bottom" /* PopoverPositions.LEFT_BOTTOM */ &&
|
|
94
|
-
newValue !== "left_top" /* PopoverPositions.LEFT_TOP */ &&
|
|
95
|
-
newValue !== "right" /* PopoverPositions.RIGHT */ &&
|
|
96
|
-
newValue !== "right_bottom" /* PopoverPositions.RIGHT_BOTTOM */ &&
|
|
97
|
-
newValue !== "right_top" /* PopoverPositions.RIGHT_TOP */ &&
|
|
98
|
-
newValue !== "top" /* PopoverPositions.TOP */ &&
|
|
99
|
-
newValue !== "top_left" /* PopoverPositions.TOP_LEFT */ &&
|
|
100
|
-
newValue !== "top_right" /* PopoverPositions.TOP_RIGHT */) {
|
|
101
|
-
this.type = "auto" /* PopoverPositions.AUTO */;
|
|
88
|
+
if (newValue && Object.values(PopoverPositions).every((position) => newValue !== position)) {
|
|
89
|
+
this.type = PopoverPositions.AUTO;
|
|
102
90
|
}
|
|
103
91
|
}
|
|
104
92
|
onPositionChange() {
|
|
@@ -169,29 +157,29 @@ export class ZTooltipDeprecated {
|
|
|
169
157
|
const availableHeight = availableTop + availableBottom + boundingRect.height;
|
|
170
158
|
const availableWidth = availableLeft + availableRight + boundingRect.width;
|
|
171
159
|
let position = this.type;
|
|
172
|
-
if (position ===
|
|
160
|
+
if (position === PopoverPositions.AUTO) {
|
|
173
161
|
/**
|
|
174
162
|
* The `AUTO` position tries to place the tooltip in the "safest" area,
|
|
175
163
|
* where there's more space available.
|
|
176
164
|
*/
|
|
177
165
|
const positions = [];
|
|
178
166
|
if (availableTop / availableHeight > 0.9) {
|
|
179
|
-
positions.unshift(
|
|
167
|
+
positions.unshift(PopoverPositions.TOP);
|
|
180
168
|
}
|
|
181
169
|
else if (availableTop / availableHeight > 0.6) {
|
|
182
|
-
positions.push(
|
|
170
|
+
positions.push(PopoverPositions.TOP);
|
|
183
171
|
}
|
|
184
172
|
else if (availableTop / availableHeight < 0.1) {
|
|
185
|
-
positions.unshift(
|
|
173
|
+
positions.unshift(PopoverPositions.BOTTOM);
|
|
186
174
|
}
|
|
187
175
|
else {
|
|
188
|
-
positions.push(
|
|
176
|
+
positions.push(PopoverPositions.BOTTOM);
|
|
189
177
|
}
|
|
190
178
|
if (availableLeft / availableWidth > 0.6) {
|
|
191
|
-
positions.push(
|
|
179
|
+
positions.push(PopoverPositions.LEFT);
|
|
192
180
|
}
|
|
193
181
|
else if (availableLeft / availableWidth < 0.4) {
|
|
194
|
-
positions.push(
|
|
182
|
+
positions.push(PopoverPositions.RIGHT);
|
|
195
183
|
}
|
|
196
184
|
position = positions.join("_");
|
|
197
185
|
}
|
|
@@ -203,38 +191,38 @@ export class ZTooltipDeprecated {
|
|
|
203
191
|
const offsetRight = boundingRect.right - relativeBoundingRect.right;
|
|
204
192
|
const offsetBottom = boundingRect.bottom - relativeBoundingRect.bottom;
|
|
205
193
|
const offsetLeft = boundingRect.left - relativeBoundingRect.left;
|
|
206
|
-
if (position ===
|
|
207
|
-
position ===
|
|
208
|
-
position ===
|
|
194
|
+
if (position === PopoverPositions.TOP ||
|
|
195
|
+
position === PopoverPositions.TOP_RIGHT ||
|
|
196
|
+
position === PopoverPositions.TOP_LEFT) {
|
|
209
197
|
style.top = "auto";
|
|
210
198
|
style.bottom = `${offsetBottom + boundingRect.height}px`;
|
|
211
199
|
}
|
|
212
|
-
if (position ===
|
|
213
|
-
position ===
|
|
214
|
-
position ===
|
|
200
|
+
if (position === PopoverPositions.BOTTOM ||
|
|
201
|
+
position === PopoverPositions.BOTTOM_RIGHT ||
|
|
202
|
+
position === PopoverPositions.BOTTOM_LEFT) {
|
|
215
203
|
style.top = `${offsetTop + boundingRect.height}px`;
|
|
216
204
|
style.bottom = "auto";
|
|
217
205
|
}
|
|
218
|
-
if (position ===
|
|
206
|
+
if (position === PopoverPositions.TOP || position === PopoverPositions.BOTTOM) {
|
|
219
207
|
style.left = `${offsetLeft + boundingRect.width / 2 - this.host.clientWidth / 2}px`;
|
|
220
208
|
}
|
|
221
|
-
if (position ===
|
|
209
|
+
if (position === PopoverPositions.TOP_RIGHT || position === PopoverPositions.BOTTOM_RIGHT) {
|
|
222
210
|
style.right = "auto";
|
|
223
211
|
style.left = `${offsetLeft + boundingRect.width}px`;
|
|
224
212
|
}
|
|
225
|
-
if (position ===
|
|
213
|
+
if (position === PopoverPositions.TOP_LEFT || position === PopoverPositions.BOTTOM_LEFT) {
|
|
226
214
|
style.left = "auto";
|
|
227
215
|
style.right = `${offsetRight + boundingRect.width}px`;
|
|
228
216
|
}
|
|
229
|
-
if (position ===
|
|
217
|
+
if (position === PopoverPositions.RIGHT || position === PopoverPositions.LEFT) {
|
|
230
218
|
style.top = `${offsetTop + boundingRect.height / 2 - this.host.clientHeight / 2}px`;
|
|
231
219
|
style.bottom = "auto";
|
|
232
220
|
}
|
|
233
|
-
if (position ===
|
|
221
|
+
if (position === PopoverPositions.RIGHT) {
|
|
234
222
|
style.right = "auto";
|
|
235
223
|
style.left = `${offsetLeft + boundingRect.width}px`;
|
|
236
224
|
}
|
|
237
|
-
if (position ===
|
|
225
|
+
if (position === PopoverPositions.LEFT) {
|
|
238
226
|
style.left = "auto";
|
|
239
227
|
style.right = `${offsetRight + boundingRect.width}px`;
|
|
240
228
|
}
|
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
+
import { LicenseType } from "../../../../beans/index";
|
|
2
3
|
/**
|
|
3
4
|
* @slot - generic card slot
|
|
4
5
|
*/
|
|
5
6
|
export class ZMyzCardComponent {
|
|
6
7
|
constructor() {
|
|
7
|
-
|
|
8
|
-
this.cardtype = undefined;
|
|
8
|
+
/** pressed status */
|
|
9
9
|
this.ispressed = false;
|
|
10
|
+
/** highlighted status */
|
|
10
11
|
this.ishighlighted = false;
|
|
11
12
|
}
|
|
12
13
|
retrieveClass() {
|
|
13
14
|
let elemClasses = "";
|
|
14
|
-
if (this.cardtype ===
|
|
15
|
+
if (this.cardtype === LicenseType.REAL) {
|
|
15
16
|
elemClasses += "real";
|
|
16
17
|
}
|
|
17
|
-
else if (this.cardtype ===
|
|
18
|
+
else if (this.cardtype === LicenseType.TRIAL) {
|
|
18
19
|
elemClasses += "trial";
|
|
19
20
|
}
|
|
20
|
-
else if (this.cardtype ===
|
|
21
|
+
else if (this.cardtype === LicenseType.TEMP) {
|
|
21
22
|
elemClasses += "temp";
|
|
22
23
|
}
|
|
23
24
|
if (this.faded) {
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
+
import { AlertType } from "../../../../beans";
|
|
2
3
|
export class ZMyzCardAlert {
|
|
3
|
-
constructor() {
|
|
4
|
-
this.iconname = undefined;
|
|
5
|
-
this.contenttext = undefined;
|
|
6
|
-
this.actiontext = undefined;
|
|
7
|
-
this.type = undefined;
|
|
8
|
-
}
|
|
9
4
|
emitUndoAction() {
|
|
10
5
|
this.undoAction.emit({ actionType: this.type });
|
|
11
6
|
}
|
|
@@ -37,9 +32,9 @@ export class ZMyzCardAlert {
|
|
|
37
32
|
getAlertType() {
|
|
38
33
|
switch (this.type) {
|
|
39
34
|
case "add":
|
|
40
|
-
return
|
|
35
|
+
return AlertType.SUCCESS;
|
|
41
36
|
case "remove":
|
|
42
|
-
return
|
|
37
|
+
return AlertType.WARNING;
|
|
43
38
|
default:
|
|
44
39
|
return null;
|
|
45
40
|
}
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
+
import { ButtonSize, ButtonVariant } from "../../../../beans";
|
|
2
3
|
/**
|
|
3
4
|
* @slot - generic card slot
|
|
4
5
|
* @slot info - flipped card info
|
|
5
6
|
*/
|
|
6
7
|
export class ZMyzCardDictionary {
|
|
7
8
|
constructor() {
|
|
8
|
-
|
|
9
|
-
this.cover = undefined;
|
|
9
|
+
/** card is disabled */
|
|
10
10
|
this.disabled = false;
|
|
11
|
+
/** card is flipped */
|
|
11
12
|
this.flipped = false;
|
|
13
|
+
/** flip button label */
|
|
12
14
|
this.flipbuttonlabel = "INFO";
|
|
15
|
+
/** hide info button */
|
|
13
16
|
this.hideinfobtn = false;
|
|
14
17
|
}
|
|
15
18
|
handleFlipCard(e) {
|
|
@@ -20,7 +23,7 @@ export class ZMyzCardDictionary {
|
|
|
20
23
|
this.cardFlipped.emit(showBack);
|
|
21
24
|
}
|
|
22
25
|
render() {
|
|
23
|
-
return (h("div", null, h("z-myz-card", null, h("z-myz-card-header", { titolo: this.name }), h("div", { class: `content ${this.flipped ? "flipped" : ""}` }, h("div", { class: "front" }, h("z-myz-card-body", null, h("z-myz-card-cover", { slot: "cover", titolo: this.name, img: this.cover, faded: this.disabled })), h("z-button", { class: { "hide-info": this.hideinfobtn }, variant:
|
|
26
|
+
return (h("div", null, h("z-myz-card", null, h("z-myz-card-header", { titolo: this.name }), h("div", { class: `content ${this.flipped ? "flipped" : ""}` }, h("div", { class: "front" }, h("z-myz-card-body", null, h("z-myz-card-cover", { slot: "cover", titolo: this.name, img: this.cover, faded: this.disabled })), h("z-button", { class: { "hide-info": this.hideinfobtn }, variant: ButtonVariant.SECONDARY, icon: "informationsource", size: ButtonSize.X_SMALL, onClick: () => this.flipCard(true), disabled: this.flipped }, this.flipbuttonlabel)), h("div", { class: "back" }, h("slot", { name: "info" }))), h("slot", null))));
|
|
24
27
|
}
|
|
25
28
|
static get is() { return "z-myz-card-dictionary"; }
|
|
26
29
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
+
import { LicenseType } from "../../../../beans/index";
|
|
2
3
|
/**
|
|
3
4
|
* @slot toggle - toggle button slot
|
|
4
5
|
* @slot list - card resources list slot
|
|
5
6
|
*/
|
|
6
7
|
export class ZMyzCardFooter {
|
|
7
8
|
constructor() {
|
|
8
|
-
|
|
9
|
-
this.autori = undefined;
|
|
10
|
-
this.isbn = undefined;
|
|
11
|
-
this.faded = undefined;
|
|
12
|
-
this.cardtype = undefined;
|
|
9
|
+
/** footer opened by default (optional) */
|
|
13
10
|
this.opened = false;
|
|
11
|
+
/** display footer custom slotted content */
|
|
14
12
|
this.customContent = false;
|
|
15
13
|
this.isOpen = false;
|
|
16
14
|
this.allowTooltipAuthors = false;
|
|
@@ -35,9 +33,9 @@ export class ZMyzCardFooter {
|
|
|
35
33
|
retrieveClass() {
|
|
36
34
|
return {
|
|
37
35
|
"isopen": this.isOpen,
|
|
38
|
-
"real": this.cardtype ===
|
|
39
|
-
"trial": this.cardtype ===
|
|
40
|
-
"temp": this.cardtype ===
|
|
36
|
+
"real": this.cardtype === LicenseType.REAL,
|
|
37
|
+
"trial": this.cardtype === LicenseType.TRIAL,
|
|
38
|
+
"temp": this.cardtype === LicenseType.TEMP,
|
|
41
39
|
"custom-content": this.customContent,
|
|
42
40
|
};
|
|
43
41
|
}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
+
import { LicenseType } from "../../../../beans/index";
|
|
2
3
|
/**
|
|
3
4
|
* @slot icon - card header icon slot
|
|
4
5
|
*/
|
|
5
6
|
export class ZMyzCardHeader {
|
|
6
7
|
constructor() {
|
|
7
|
-
this.titolo = undefined;
|
|
8
|
-
this.faded = undefined;
|
|
9
|
-
this.cardtype = undefined;
|
|
10
8
|
this.allowTooltip = false;
|
|
11
9
|
}
|
|
12
10
|
getTitle() {
|
|
@@ -22,9 +20,9 @@ export class ZMyzCardHeader {
|
|
|
22
20
|
}
|
|
23
21
|
retrieveClass() {
|
|
24
22
|
return {
|
|
25
|
-
real: this.cardtype ===
|
|
26
|
-
trial: this.cardtype ===
|
|
27
|
-
temp: this.cardtype ===
|
|
23
|
+
real: this.cardtype === LicenseType.REAL,
|
|
24
|
+
trial: this.cardtype === LicenseType.TRIAL,
|
|
25
|
+
temp: this.cardtype === LicenseType.TEMP,
|
|
28
26
|
faded: this.faded,
|
|
29
27
|
};
|
|
30
28
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
+
import { PopoverPositions } from "../../../../beans";
|
|
2
3
|
import { handleKeyboardSubmit } from "../../../../utils/utils";
|
|
3
4
|
/**
|
|
4
5
|
* @slot - content
|
|
5
6
|
*/
|
|
6
7
|
export class ZMyzCardInfo {
|
|
7
8
|
constructor() {
|
|
8
|
-
|
|
9
|
+
/** tabindex link attribute (optional) */
|
|
9
10
|
this.htmltabindex = 0;
|
|
10
11
|
this.hiddenContent = false;
|
|
11
12
|
this.tooltip = false;
|
|
@@ -86,7 +87,7 @@ export class ZMyzCardInfo {
|
|
|
86
87
|
return;
|
|
87
88
|
}
|
|
88
89
|
const { title, year, author, description } = this.cardData;
|
|
89
|
-
return (h("z-popover", { position:
|
|
90
|
+
return (h("z-popover", { position: PopoverPositions.RIGHT, onClick: () => (this.tooltip = false) }, `${title} ${year} ${author} ${description}`));
|
|
90
91
|
}
|
|
91
92
|
setExpirationLicenseMessage(type) {
|
|
92
93
|
if ((type === "online" && this.cardData.onlineLicense.expired) ||
|
|
@@ -2,12 +2,9 @@ import { h } from "@stencil/core";
|
|
|
2
2
|
import { handleKeyboardSubmit } from "../../../../utils/utils";
|
|
3
3
|
export class ZMyzListItem {
|
|
4
4
|
constructor() {
|
|
5
|
-
|
|
6
|
-
this.link = undefined;
|
|
5
|
+
/** link target (optional) */
|
|
7
6
|
this.linktarget = "_self";
|
|
8
|
-
|
|
9
|
-
this.listitemid = undefined;
|
|
10
|
-
this.action = undefined;
|
|
7
|
+
/** underlined style flag */
|
|
11
8
|
this.underlined = true;
|
|
12
9
|
this.emitZListItemLinkClick = this.emitZListItemLinkClick.bind(this);
|
|
13
10
|
this.emitZListItemClick = this.emitZListItemClick.bind(this);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
+
import { PocketStatus } from "../../../../beans";
|
|
2
3
|
/**
|
|
3
4
|
* @slot - pocket body content
|
|
4
5
|
*/
|
|
5
6
|
export class ZMessagesPocket {
|
|
6
7
|
constructor() {
|
|
7
|
-
|
|
8
|
-
this.
|
|
9
|
-
this.status = "preview" /* PocketStatus.PREVIEW */;
|
|
8
|
+
/** pocket status */
|
|
9
|
+
this.status = PocketStatus.PREVIEW;
|
|
10
10
|
}
|
|
11
11
|
handlePocketToggle(e) {
|
|
12
12
|
if (e.detail.id === this.pocketid) {
|
|
@@ -17,12 +17,12 @@ export class ZMessagesPocket {
|
|
|
17
17
|
let message;
|
|
18
18
|
let icon;
|
|
19
19
|
switch (this.status) {
|
|
20
|
-
case
|
|
21
|
-
case
|
|
20
|
+
case PocketStatus.PREVIEW:
|
|
21
|
+
case PocketStatus.CLOSED:
|
|
22
22
|
message = (h("span", null, "Messaggi ", h("span", { class: "badge" }, this.messages)));
|
|
23
23
|
icon = "chevron-up";
|
|
24
24
|
break;
|
|
25
|
-
case
|
|
25
|
+
case PocketStatus.OPEN:
|
|
26
26
|
message = h("span", null, "Riduci");
|
|
27
27
|
icon = "chevron-down";
|
|
28
28
|
break;
|