@zanichelli/albe-web-components 6.0.3 → 6.1.0-a1
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.cjs.js +346 -302
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{utils-ce225fb3.js → utils-7c92be74.js} +4 -5
- package/dist/cjs/{utils-ebe45309.js → utils-f681590c.js} +10 -11
- package/dist/cjs/web-components-library.cjs.js +1 -1
- package/dist/cjs/z-alert.cjs.entry.js +1 -0
- package/dist/cjs/z-app-header.cjs.entry.js +7 -29
- package/dist/cjs/z-app-switcher_9.cjs.entry.js +84 -70
- package/dist/cjs/z-aria-alert.cjs.entry.js +1 -3
- package/dist/cjs/z-avatar.cjs.entry.js +6 -8
- package/dist/cjs/z-body_2.cjs.entry.js +4 -2
- package/dist/cjs/z-button-deprecated.cjs.entry.js +6 -12
- package/dist/cjs/z-button-filter.cjs.entry.js +2 -3
- package/dist/cjs/z-button-sort.cjs.entry.js +4 -4
- package/dist/cjs/z-button.cjs.entry.js +8 -9
- package/dist/cjs/z-card.cjs.entry.js +6 -6
- package/dist/cjs/z-carousel.cjs.entry.js +11 -10
- package/dist/cjs/z-chip-deprecated.cjs.entry.js +2 -0
- package/dist/cjs/z-chip.cjs.entry.js +5 -6
- package/dist/cjs/z-combobox.cjs.entry.js +15 -17
- package/dist/cjs/z-contextual-menu.cjs.entry.js +2 -8
- package/dist/cjs/z-cookiebar.cjs.entry.js +4 -2
- package/dist/cjs/z-cover-hero.cjs.entry.js +6 -14
- package/dist/cjs/z-date-picker.cjs.entry.js +16 -17
- package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +2 -1
- package/dist/cjs/z-file-upload.cjs.entry.js +14 -11
- package/dist/cjs/z-file.cjs.entry.js +3 -2
- package/dist/cjs/z-footer-link_3.cjs.entry.js +5 -0
- package/dist/cjs/z-footer.cjs.entry.js +7 -2
- package/dist/cjs/z-info-box.cjs.entry.js +1 -1
- package/dist/cjs/z-info-reveal.cjs.entry.js +2 -6
- package/dist/cjs/z-input-deprecated.cjs.entry.js +28 -29
- package/dist/cjs/z-input-label_2.cjs.entry.js +17 -17
- package/dist/cjs/z-list-group.cjs.entry.js +4 -17
- package/dist/cjs/z-list_2.cjs.entry.js +19 -55
- package/dist/cjs/z-menu-dropdown_2.cjs.entry.js +7 -3
- package/dist/cjs/z-menu-section.cjs.entry.js +3 -0
- package/dist/cjs/z-menu.cjs.entry.js +3 -10
- package/dist/cjs/z-messages-pocket.cjs.entry.js +6 -6
- package/dist/cjs/z-modal-login.cjs.entry.js +7 -5
- package/dist/cjs/z-modal.cjs.entry.js +3 -1
- package/dist/cjs/z-myz-card-alert.cjs.entry.js +6 -3
- package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +3 -6
- package/dist/cjs/z-myz-card-footer.cjs.entry.js +8 -6
- package/dist/cjs/z-myz-card-icon.cjs.entry.js +1 -2
- package/dist/cjs/z-myz-card-info.cjs.entry.js +3 -4
- package/dist/cjs/z-myz-card-list.cjs.entry.js +1 -0
- package/dist/cjs/z-myz-card_4.cjs.entry.js +15 -9
- package/dist/cjs/z-myz-list-item.cjs.entry.js +6 -4
- package/dist/cjs/z-myz-topbar.cjs.entry.js +14 -4
- package/dist/cjs/z-navigation-tab-link.cjs.entry.js +8 -16
- package/dist/cjs/z-navigation-tab.cjs.entry.js +7 -17
- package/dist/cjs/z-navigation-tabs.cjs.entry.js +10 -14
- package/dist/cjs/z-notification.cjs.entry.js +3 -6
- package/dist/cjs/z-offcanvas.cjs.entry.js +4 -12
- package/dist/cjs/z-otp.cjs.entry.js +3 -3
- package/dist/cjs/z-pagination-bar.cjs.entry.js +5 -6
- package/dist/cjs/z-pagination-page.cjs.entry.js +2 -4
- package/dist/cjs/z-pagination.cjs.entry.js +7 -15
- package/dist/cjs/z-panel-elem.cjs.entry.js +7 -2
- package/dist/cjs/z-pocket_3.cjs.entry.js +15 -15
- package/dist/cjs/z-popover-deprecated.cjs.entry.js +8 -15
- package/dist/cjs/z-popover.cjs.entry.js +31 -36
- package/dist/cjs/z-section-title.cjs.entry.js +2 -10
- package/dist/cjs/z-skip-to-content.cjs.entry.js +3 -4
- package/dist/cjs/z-slideshow.cjs.entry.js +6 -4
- package/dist/cjs/z-status-tag.cjs.entry.js +5 -3
- package/dist/cjs/z-stepper-item.cjs.entry.js +4 -0
- package/dist/cjs/z-table-cell.cjs.entry.js +3 -4
- package/dist/cjs/z-table-empty-box.cjs.entry.js +0 -2
- package/dist/cjs/z-table-expanded-row.cjs.entry.js +1 -0
- package/dist/cjs/z-table-header-row.cjs.entry.js +1 -0
- package/dist/cjs/z-table-header.cjs.entry.js +15 -16
- package/dist/cjs/z-table-row.cjs.entry.js +4 -6
- package/dist/cjs/z-table.cjs.entry.js +9 -12
- package/dist/cjs/z-tag.cjs.entry.js +2 -0
- package/dist/cjs/z-toast-notification-list.cjs.entry.js +1 -4
- package/dist/cjs/z-toast-notification.cjs.entry.js +17 -14
- package/dist/cjs/z-toggle-button.cjs.entry.js +2 -2
- package/dist/cjs/z-toggle-switch.cjs.entry.js +2 -7
- package/dist/cjs/z-tooltip-deprecated.cjs.entry.js +32 -27
- package/dist/cjs/z-tooltip.cjs.entry.js +2 -7
- package/dist/cjs/z-user-dropdown.cjs.entry.js +5 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/buttons/z-button/index.js +8 -9
- package/dist/collection/components/buttons/z-button-sort/index.js +4 -4
- package/dist/collection/components/buttons/z-chip/index.js +4 -5
- package/dist/collection/components/buttons/z-toggle-button/index.js +2 -2
- package/dist/collection/components/buttons/z-toggle-switch/index.js +1 -6
- package/dist/collection/components/date-picker/utils.js +10 -11
- package/dist/collection/components/date-picker/z-date-picker/index.js +15 -16
- package/dist/collection/components/date-picker/z-range-picker/index.js +15 -12
- package/dist/collection/components/file-upload/z-file/index.js +3 -2
- package/dist/collection/components/file-upload/z-file-upload/index.js +13 -10
- package/dist/collection/components/footer/z-footer/index.js +7 -2
- package/dist/collection/components/footer/z-footer-link/index.js +3 -0
- package/dist/collection/components/footer/z-footer-section/index.js +1 -0
- package/dist/collection/components/footer/z-footer-social/index.js +5 -0
- package/dist/collection/components/icons/z-icon/index.js +7 -0
- package/dist/collection/components/indicators/z-stepper-item/index.js +6 -0
- package/dist/collection/components/inputs/z-combobox/index.js +14 -16
- package/dist/collection/components/inputs/z-input/index.js +40 -37
- package/dist/collection/components/inputs/z-input-message/index.js +2 -0
- package/dist/collection/components/inputs/z-select/index.js +14 -15
- package/dist/collection/components/list/z-list/index.js +1 -5
- package/dist/collection/components/list/z-list-element/index.js +18 -51
- package/dist/collection/components/list/z-list-group/index.js +4 -17
- package/dist/collection/components/list/z-toast-notification-list/index.js +1 -4
- package/dist/collection/components/logo/z-logo/index.js +8 -0
- package/dist/collection/components/modal/z-modal/index.js +3 -1
- package/dist/collection/components/modal/z-modal-login/index.js +7 -5
- package/dist/collection/components/navigation/tabs/z-navigation-tab/index.js +7 -17
- package/dist/collection/components/navigation/tabs/z-navigation-tab-link/index.js +8 -16
- package/dist/collection/components/navigation/tabs/z-navigation-tabs/index.js +10 -14
- package/dist/collection/components/navigation/z-app-header/index.js +7 -29
- package/dist/collection/components/navigation/z-app-switcher/index.js +1 -3
- package/dist/collection/components/navigation/z-app-topbar/index.js +8 -5
- package/dist/collection/components/navigation/z-link/index.js +3 -9
- package/dist/collection/components/navigation/z-menu/index.js +3 -10
- package/dist/collection/components/navigation/z-menu-dropdown/index.js +4 -2
- package/dist/collection/components/navigation/z-menu-section/index.js +5 -0
- package/dist/collection/components/navigation/z-user-dropdown/index.js +5 -1
- package/dist/collection/components/notification/z-cookiebar/index.js +6 -2
- package/dist/collection/components/notification/z-info-box/index.js +1 -1
- package/dist/collection/components/notification/z-notification/index.js +3 -6
- package/dist/collection/components/notification/z-toast-notification/index.js +17 -14
- package/dist/collection/components/notification/z-tooltip/index.js +2 -7
- package/dist/collection/components/panel/z-panel-elem/index.js +7 -2
- package/dist/collection/components/typography/z-body/index.js +2 -1
- package/dist/collection/components/typography/z-heading/index.js +2 -1
- package/dist/collection/components/typography/z-typography/index.js +2 -1
- package/dist/collection/components/z-aria-alert/index.js +1 -3
- package/dist/collection/components/z-avatar/index.js +6 -8
- package/dist/collection/components/z-card/index.js +6 -6
- package/dist/collection/components/z-carousel/index.js +11 -10
- package/dist/collection/components/z-contextual-menu/index.js +2 -8
- package/dist/collection/components/z-cover-hero/index.js +6 -14
- package/dist/collection/components/z-divider/index.js +2 -6
- package/dist/collection/components/z-info-reveal/index.js +2 -6
- package/dist/collection/components/z-offcanvas/index.js +4 -12
- package/dist/collection/components/z-pagination/index.js +7 -15
- package/dist/collection/components/z-popover/index.js +30 -35
- package/dist/collection/components/z-section-title/index.js +2 -10
- package/dist/collection/components/z-skip-to-content/index.js +2 -3
- package/dist/collection/components/z-table/z-table/index.js +9 -12
- package/dist/collection/components/z-table/z-table-cell/index.js +3 -4
- package/dist/collection/components/z-table/z-table-empty-box/index.js +0 -2
- package/dist/collection/components/z-table/z-table-expanded-row/index.js +3 -0
- package/dist/collection/components/z-table/z-table-header/index.js +14 -15
- package/dist/collection/components/z-table/z-table-header-row/index.js +3 -0
- package/dist/collection/components/z-table/z-table-row/index.js +4 -6
- package/dist/collection/components/z-tag/index.js +4 -0
- package/dist/collection/deprecated/pagination/z-pagination-bar/index.js +4 -4
- package/dist/collection/deprecated/pagination/z-pagination-page/index.js +2 -4
- package/dist/collection/deprecated/z-button-deprecated/index.js +6 -12
- package/dist/collection/deprecated/z-button-filter/index.js +2 -3
- package/dist/collection/deprecated/z-chip-deprecated/index.js +4 -0
- package/dist/collection/deprecated/z-input-deprecated/index.js +27 -28
- package/dist/collection/deprecated/z-input-label/index.js +2 -1
- package/dist/collection/deprecated/z-popover-deprecated/index.js +7 -14
- package/dist/collection/deprecated/z-status-tag/index.js +5 -3
- package/dist/collection/deprecated/z-tooltip-deprecated/index.js +32 -27
- package/dist/collection/snowflakes/myz/card/z-myz-card/index.js +5 -6
- package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js +8 -3
- package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js +6 -0
- package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js +3 -6
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js +8 -6
- package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js +6 -4
- package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js +1 -2
- package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +2 -3
- package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js +1 -0
- package/dist/collection/snowflakes/myz/list/z-myz-list/index.js +4 -0
- package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js +5 -2
- package/dist/collection/snowflakes/myz/pocket/z-messages-pocket/index.js +6 -6
- package/dist/collection/snowflakes/myz/pocket/z-pocket/index.js +11 -12
- package/dist/collection/snowflakes/myz/pocket/z-pocket-body/index.js +2 -3
- package/dist/collection/snowflakes/myz/pocket/z-pocket-header/index.js +1 -0
- package/dist/collection/snowflakes/myz/topbar/index.js +14 -4
- package/dist/collection/snowflakes/myz/z-alert/index.js +3 -0
- package/dist/collection/snowflakes/myz/z-otp/index.js +3 -3
- package/dist/collection/snowflakes/myz/z-slideshow/index.js +5 -3
- package/dist/collection/utils/utils.js +4 -5
- package/dist/esm/index.js +347 -3
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{utils-39ca028c.js → utils-420e8552.js} +4 -5
- package/dist/esm/{utils-fbe04cd6.js → utils-ff91a03a.js} +10 -11
- package/dist/esm/web-components-library.js +1 -1
- package/dist/esm/z-alert.entry.js +1 -0
- package/dist/esm/z-app-header.entry.js +7 -29
- package/dist/esm/z-app-switcher_9.entry.js +84 -70
- package/dist/esm/z-aria-alert.entry.js +1 -3
- package/dist/esm/z-avatar.entry.js +6 -8
- package/dist/esm/z-body_2.entry.js +4 -2
- package/dist/esm/z-button-deprecated.entry.js +6 -12
- package/dist/esm/z-button-filter.entry.js +2 -3
- package/dist/esm/z-button-sort.entry.js +4 -4
- package/dist/esm/z-button.entry.js +8 -9
- package/dist/esm/z-card.entry.js +6 -6
- package/dist/esm/z-carousel.entry.js +11 -10
- package/dist/esm/z-chip-deprecated.entry.js +2 -0
- package/dist/esm/z-chip.entry.js +5 -6
- package/dist/esm/z-combobox.entry.js +15 -17
- package/dist/esm/z-contextual-menu.entry.js +2 -8
- package/dist/esm/z-cookiebar.entry.js +4 -2
- package/dist/esm/z-cover-hero.entry.js +6 -14
- package/dist/esm/z-date-picker.entry.js +16 -17
- package/dist/esm/z-dragdrop-area_2.entry.js +2 -1
- package/dist/esm/z-file-upload.entry.js +14 -11
- package/dist/esm/z-file.entry.js +3 -2
- package/dist/esm/z-footer-link_3.entry.js +5 -0
- package/dist/esm/z-footer.entry.js +7 -2
- package/dist/esm/z-info-box.entry.js +1 -1
- package/dist/esm/z-info-reveal.entry.js +2 -6
- package/dist/esm/z-input-deprecated.entry.js +28 -29
- package/dist/esm/z-input-label_2.entry.js +17 -17
- package/dist/esm/z-list-group.entry.js +4 -17
- package/dist/esm/z-list_2.entry.js +19 -55
- package/dist/esm/z-menu-dropdown_2.entry.js +7 -3
- package/dist/esm/z-menu-section.entry.js +3 -0
- package/dist/esm/z-menu.entry.js +3 -10
- package/dist/esm/z-messages-pocket.entry.js +6 -6
- package/dist/esm/z-modal-login.entry.js +7 -5
- package/dist/esm/z-modal.entry.js +3 -1
- package/dist/esm/z-myz-card-alert.entry.js +6 -3
- package/dist/esm/z-myz-card-dictionary.entry.js +3 -6
- package/dist/esm/z-myz-card-footer.entry.js +8 -6
- package/dist/esm/z-myz-card-icon.entry.js +1 -2
- package/dist/esm/z-myz-card-info.entry.js +3 -4
- package/dist/esm/z-myz-card-list.entry.js +1 -0
- package/dist/esm/z-myz-card_4.entry.js +15 -9
- package/dist/esm/z-myz-list-item.entry.js +6 -4
- package/dist/esm/z-myz-topbar.entry.js +14 -4
- package/dist/esm/z-navigation-tab-link.entry.js +8 -16
- package/dist/esm/z-navigation-tab.entry.js +7 -17
- package/dist/esm/z-navigation-tabs.entry.js +10 -14
- package/dist/esm/z-notification.entry.js +3 -6
- package/dist/esm/z-offcanvas.entry.js +4 -12
- package/dist/esm/z-otp.entry.js +3 -3
- package/dist/esm/z-pagination-bar.entry.js +5 -6
- package/dist/esm/z-pagination-page.entry.js +2 -4
- package/dist/esm/z-pagination.entry.js +7 -15
- package/dist/esm/z-panel-elem.entry.js +7 -2
- package/dist/esm/z-pocket_3.entry.js +15 -15
- package/dist/esm/z-popover-deprecated.entry.js +8 -15
- package/dist/esm/z-popover.entry.js +31 -36
- package/dist/esm/z-section-title.entry.js +2 -10
- package/dist/esm/z-skip-to-content.entry.js +3 -4
- package/dist/esm/z-slideshow.entry.js +6 -4
- package/dist/esm/z-status-tag.entry.js +5 -3
- package/dist/esm/z-stepper-item.entry.js +4 -0
- package/dist/esm/z-table-cell.entry.js +3 -4
- package/dist/esm/z-table-empty-box.entry.js +0 -2
- package/dist/esm/z-table-expanded-row.entry.js +1 -0
- package/dist/esm/z-table-header-row.entry.js +1 -0
- package/dist/esm/z-table-header.entry.js +15 -16
- package/dist/esm/z-table-row.entry.js +4 -6
- package/dist/esm/z-table.entry.js +9 -12
- package/dist/esm/z-tag.entry.js +2 -0
- package/dist/esm/z-toast-notification-list.entry.js +1 -4
- package/dist/esm/z-toast-notification.entry.js +17 -14
- package/dist/esm/z-toggle-button.entry.js +2 -2
- package/dist/esm/z-toggle-switch.entry.js +2 -7
- package/dist/esm/z-tooltip-deprecated.entry.js +32 -27
- package/dist/esm/z-tooltip.entry.js +2 -7
- package/dist/esm/z-user-dropdown.entry.js +5 -1
- package/dist/types/beans/index.d.ts +50 -50
- package/dist/types/stencil-public-runtime.d.ts +5 -0
- package/dist/web-components-library/index.esm.js +1 -1
- package/dist/web-components-library/p-016b2800.entry.js +1 -0
- package/dist/web-components-library/p-04908405.entry.js +1 -0
- package/dist/web-components-library/p-06430481.entry.js +1 -0
- package/dist/web-components-library/p-067bd5da.entry.js +1 -0
- package/dist/web-components-library/p-082d65b1.entry.js +1 -0
- package/dist/web-components-library/p-0cff6cce.entry.js +1 -0
- package/dist/web-components-library/p-0e743002.entry.js +1 -0
- package/dist/web-components-library/p-10b84e8c.entry.js +1 -0
- package/dist/web-components-library/p-12211a48.entry.js +1 -0
- package/dist/web-components-library/p-14233b99.entry.js +1 -0
- package/dist/web-components-library/p-176256ee.js +1 -0
- package/dist/web-components-library/p-1ab0de76.entry.js +1 -0
- package/dist/web-components-library/p-1d2d5232.entry.js +1 -0
- package/dist/web-components-library/p-20109d3a.entry.js +1 -0
- package/dist/web-components-library/{p-f158d205.entry.js → p-2c18a622.entry.js} +1 -1
- package/dist/web-components-library/p-2cf26585.entry.js +1 -0
- package/dist/web-components-library/p-2d506c48.entry.js +1 -0
- package/dist/web-components-library/p-2d5d8e6f.entry.js +1 -0
- package/dist/web-components-library/p-2e7a31ac.entry.js +1 -0
- package/dist/web-components-library/p-2f6f3729.entry.js +1 -0
- package/dist/web-components-library/p-30cbafaf.entry.js +1 -0
- package/dist/web-components-library/p-341ddb5d.entry.js +1 -0
- package/dist/web-components-library/p-34a96008.entry.js +1 -0
- package/dist/web-components-library/p-35b30271.entry.js +1 -0
- package/dist/web-components-library/p-36f4ce3f.entry.js +1 -0
- package/dist/web-components-library/p-3c28f72e.entry.js +1 -0
- package/dist/web-components-library/p-3c7cf41f.entry.js +1 -0
- package/dist/web-components-library/p-3e414cf1.entry.js +1 -0
- package/dist/web-components-library/p-3ecfb7c1.entry.js +1 -0
- package/dist/web-components-library/p-40f96085.entry.js +1 -0
- package/{www/build/p-4d42f224.entry.js → dist/web-components-library/p-48624926.entry.js} +1 -1
- package/dist/web-components-library/{p-b17981a4.entry.js → p-4c7f4a2c.entry.js} +1 -1
- package/dist/web-components-library/p-53d22727.entry.js +1 -0
- package/dist/web-components-library/p-563529f8.entry.js +1 -0
- package/dist/web-components-library/p-57faab40.entry.js +1 -0
- package/dist/web-components-library/p-5b2d8a91.entry.js +1 -0
- package/dist/web-components-library/p-6037dce0.entry.js +1 -0
- package/dist/web-components-library/p-670232c4.entry.js +1 -0
- package/dist/web-components-library/p-67f346d9.entry.js +1 -0
- package/dist/web-components-library/p-691678c8.entry.js +1 -0
- package/dist/web-components-library/p-69b27fe9.entry.js +16 -0
- package/dist/web-components-library/p-6fe1bffb.entry.js +1 -0
- package/dist/web-components-library/p-728e7dcd.entry.js +1 -0
- package/dist/web-components-library/p-74e31a32.entry.js +1 -0
- package/dist/web-components-library/p-759fb7c4.entry.js +1 -0
- package/dist/web-components-library/p-79223014.entry.js +1 -0
- package/dist/web-components-library/p-7b22a446.entry.js +1 -0
- package/dist/web-components-library/p-7c40fb15.entry.js +1 -0
- package/dist/web-components-library/p-7cbc1836.entry.js +1 -0
- package/dist/web-components-library/p-830b21a4.entry.js +1 -0
- package/dist/web-components-library/p-87099b68.entry.js +1 -0
- package/dist/web-components-library/p-8cabed58.entry.js +1 -0
- package/dist/web-components-library/p-8cf14a47.entry.js +1 -0
- package/dist/web-components-library/p-8eaa46ac.entry.js +1 -0
- package/dist/web-components-library/p-985c5ed8.entry.js +1 -0
- package/dist/web-components-library/p-9f6b43a0.entry.js +1 -0
- package/dist/web-components-library/p-9f8d0f79.entry.js +1 -0
- package/dist/web-components-library/p-a3b8dd69.entry.js +1 -0
- package/dist/web-components-library/p-aa271ed7.entry.js +1 -0
- package/dist/web-components-library/p-ac1a9d63.entry.js +1 -0
- package/dist/web-components-library/p-af4a9bb7.entry.js +1 -0
- package/dist/web-components-library/p-ba495cad.entry.js +1 -0
- package/dist/web-components-library/p-ba9210e9.entry.js +1 -0
- package/dist/web-components-library/p-bf9348e6.entry.js +1 -0
- package/dist/web-components-library/p-c0df6e96.entry.js +1 -0
- package/dist/web-components-library/p-c2b368ff.entry.js +1 -0
- package/dist/web-components-library/p-c39c68b9.entry.js +1 -0
- package/dist/web-components-library/p-cadba1e5.entry.js +1 -0
- package/dist/web-components-library/p-ccb3764b.entry.js +1 -0
- package/dist/web-components-library/p-d668461a.js +1 -0
- package/dist/web-components-library/p-d767f784.entry.js +1 -0
- package/dist/web-components-library/p-d7e72cec.entry.js +1 -0
- package/dist/web-components-library/p-dbc23998.entry.js +1 -0
- package/dist/web-components-library/p-def721df.entry.js +1 -0
- package/dist/web-components-library/p-e12cd68a.entry.js +1 -0
- package/dist/web-components-library/p-e84d2839.entry.js +1 -0
- package/dist/web-components-library/p-eadb185e.entry.js +1 -0
- package/dist/web-components-library/p-f9f9518a.entry.js +1 -0
- package/dist/web-components-library/p-fd305e08.entry.js +1 -0
- package/dist/web-components-library/web-components-library.esm.js +1 -1
- package/package.json +4 -4
- package/www/build/index.esm.js +1 -1
- package/www/build/p-016b2800.entry.js +1 -0
- package/www/build/p-04908405.entry.js +1 -0
- package/www/build/p-06430481.entry.js +1 -0
- package/www/build/p-067bd5da.entry.js +1 -0
- package/www/build/p-082d65b1.entry.js +1 -0
- package/www/build/p-0cff6cce.entry.js +1 -0
- package/www/build/p-0e743002.entry.js +1 -0
- package/www/build/p-10b84e8c.entry.js +1 -0
- package/www/build/p-12211a48.entry.js +1 -0
- package/www/build/p-14233b99.entry.js +1 -0
- package/www/build/p-176256ee.js +1 -0
- package/www/build/p-1ab0de76.entry.js +1 -0
- package/www/build/p-1d2d5232.entry.js +1 -0
- package/www/build/p-20109d3a.entry.js +1 -0
- package/www/build/{p-f158d205.entry.js → p-2c18a622.entry.js} +1 -1
- package/www/build/p-2cf26585.entry.js +1 -0
- package/www/build/p-2d506c48.entry.js +1 -0
- package/www/build/p-2d5d8e6f.entry.js +1 -0
- package/www/build/p-2e7a31ac.entry.js +1 -0
- package/www/build/p-2f6f3729.entry.js +1 -0
- package/www/build/p-30cbafaf.entry.js +1 -0
- package/www/build/p-341ddb5d.entry.js +1 -0
- package/www/build/p-34a96008.entry.js +1 -0
- package/www/build/p-35b30271.entry.js +1 -0
- package/www/build/p-36f4ce3f.entry.js +1 -0
- package/www/build/p-3c28f72e.entry.js +1 -0
- package/www/build/p-3c7cf41f.entry.js +1 -0
- package/www/build/p-3e414cf1.entry.js +1 -0
- package/www/build/p-3ecfb7c1.entry.js +1 -0
- package/www/build/p-40f96085.entry.js +1 -0
- package/{dist/web-components-library/p-4d42f224.entry.js → www/build/p-48624926.entry.js} +1 -1
- package/www/build/{p-b17981a4.entry.js → p-4c7f4a2c.entry.js} +1 -1
- package/www/build/p-53d22727.entry.js +1 -0
- package/www/build/p-563529f8.entry.js +1 -0
- package/www/build/p-57faab40.entry.js +1 -0
- package/www/build/p-5b2d8a91.entry.js +1 -0
- package/www/build/p-6037dce0.entry.js +1 -0
- package/www/build/{p-0134d685.js → p-60ec44c6.js} +1 -1
- package/www/build/p-670232c4.entry.js +1 -0
- package/www/build/p-67f346d9.entry.js +1 -0
- package/www/build/p-691678c8.entry.js +1 -0
- package/www/build/p-69b27fe9.entry.js +16 -0
- package/www/build/p-6fe1bffb.entry.js +1 -0
- package/www/build/p-728e7dcd.entry.js +1 -0
- package/www/build/p-74e31a32.entry.js +1 -0
- package/www/build/p-759fb7c4.entry.js +1 -0
- package/www/build/p-79223014.entry.js +1 -0
- package/www/build/p-7b22a446.entry.js +1 -0
- package/www/build/p-7c40fb15.entry.js +1 -0
- package/www/build/p-7cbc1836.entry.js +1 -0
- package/www/build/p-830b21a4.entry.js +1 -0
- package/www/build/p-87099b68.entry.js +1 -0
- package/www/build/p-8cabed58.entry.js +1 -0
- package/www/build/p-8cf14a47.entry.js +1 -0
- package/www/build/p-8eaa46ac.entry.js +1 -0
- package/www/build/p-985c5ed8.entry.js +1 -0
- package/www/build/p-9f6b43a0.entry.js +1 -0
- package/www/build/p-9f8d0f79.entry.js +1 -0
- package/www/build/p-a3b8dd69.entry.js +1 -0
- package/www/build/p-aa271ed7.entry.js +1 -0
- package/www/build/p-ac1a9d63.entry.js +1 -0
- package/www/build/p-af4a9bb7.entry.js +1 -0
- package/www/build/p-ba495cad.entry.js +1 -0
- package/www/build/p-ba9210e9.entry.js +1 -0
- package/www/build/p-bf9348e6.entry.js +1 -0
- package/www/build/p-c0df6e96.entry.js +1 -0
- package/www/build/p-c2b368ff.entry.js +1 -0
- package/www/build/p-c39c68b9.entry.js +1 -0
- package/www/build/p-cadba1e5.entry.js +1 -0
- package/www/build/p-ccb3764b.entry.js +1 -0
- package/www/build/p-d668461a.js +1 -0
- package/www/build/p-d767f784.entry.js +1 -0
- package/www/build/p-d7e72cec.entry.js +1 -0
- package/www/build/p-dbc23998.entry.js +1 -0
- package/www/build/p-def721df.entry.js +1 -0
- package/www/build/p-e12cd68a.entry.js +1 -0
- package/www/build/p-e84d2839.entry.js +1 -0
- package/www/build/p-eadb185e.entry.js +1 -0
- package/www/build/p-f9f9518a.entry.js +1 -0
- package/www/build/p-fd305e08.entry.js +1 -0
- package/www/build/web-components-library.esm.js +1 -1
- package/www/index.html +1 -1
- package/dist/cjs/index-199cd650.js +0 -346
- package/dist/collection/components/index.js +0 -8
- package/dist/esm/index-9d028352.js +0 -346
- package/dist/types/components/index.d.ts +0 -0
- package/dist/web-components-library/p-05ced71c.entry.js +0 -1
- package/dist/web-components-library/p-074ea569.entry.js +0 -1
- package/dist/web-components-library/p-10b46635.entry.js +0 -1
- package/dist/web-components-library/p-1106ead2.entry.js +0 -1
- package/dist/web-components-library/p-15b8a920.entry.js +0 -1
- package/dist/web-components-library/p-15fe7b71.entry.js +0 -1
- package/dist/web-components-library/p-1bd6592f.entry.js +0 -1
- package/dist/web-components-library/p-1e6a2a56.entry.js +0 -1
- package/dist/web-components-library/p-23781e2b.entry.js +0 -1
- package/dist/web-components-library/p-28ff9383.entry.js +0 -1
- package/dist/web-components-library/p-2d0cb337.entry.js +0 -1
- package/dist/web-components-library/p-2efedcf4.entry.js +0 -1
- package/dist/web-components-library/p-344e7ae7.entry.js +0 -1
- package/dist/web-components-library/p-35ceae27.entry.js +0 -1
- package/dist/web-components-library/p-3913bff2.entry.js +0 -1
- package/dist/web-components-library/p-3a431f04.entry.js +0 -1
- package/dist/web-components-library/p-3c2d438b.entry.js +0 -1
- package/dist/web-components-library/p-3f55dce6.entry.js +0 -1
- package/dist/web-components-library/p-442b8b35.entry.js +0 -1
- package/dist/web-components-library/p-4cd6c6f4.entry.js +0 -1
- package/dist/web-components-library/p-4d093e07.entry.js +0 -1
- package/dist/web-components-library/p-4e733fbd.entry.js +0 -1
- package/dist/web-components-library/p-4ec9ab53.entry.js +0 -1
- package/dist/web-components-library/p-53a03f2a.entry.js +0 -1
- package/dist/web-components-library/p-562ad563.entry.js +0 -1
- package/dist/web-components-library/p-58650e22.entry.js +0 -1
- package/dist/web-components-library/p-5bec950e.entry.js +0 -1
- package/dist/web-components-library/p-5c9556e3.entry.js +0 -1
- package/dist/web-components-library/p-5cf4a412.entry.js +0 -1
- package/dist/web-components-library/p-5d4a6659.entry.js +0 -1
- package/dist/web-components-library/p-5f3baf14.entry.js +0 -1
- package/dist/web-components-library/p-61424b8a.entry.js +0 -1
- package/dist/web-components-library/p-681e1f5a.entry.js +0 -1
- package/dist/web-components-library/p-686545fa.entry.js +0 -1
- package/dist/web-components-library/p-6f64e8a8.entry.js +0 -1
- package/dist/web-components-library/p-70d16b2c.entry.js +0 -1
- package/dist/web-components-library/p-7688f8ca.entry.js +0 -1
- package/dist/web-components-library/p-77e4774d.entry.js +0 -1
- package/dist/web-components-library/p-79b8d87e.entry.js +0 -1
- package/dist/web-components-library/p-7d696941.entry.js +0 -1
- package/dist/web-components-library/p-7d792297.entry.js +0 -1
- package/dist/web-components-library/p-810bd730.entry.js +0 -1
- package/dist/web-components-library/p-87fdd14f.js +0 -1
- package/dist/web-components-library/p-982254e5.entry.js +0 -1
- package/dist/web-components-library/p-9d03a7d6.entry.js +0 -1
- package/dist/web-components-library/p-9ecc5eba.entry.js +0 -1
- package/dist/web-components-library/p-9f80c0b8.js +0 -1
- package/dist/web-components-library/p-9fe267fc.entry.js +0 -1
- package/dist/web-components-library/p-a6d6178a.entry.js +0 -1
- package/dist/web-components-library/p-a79cc147.entry.js +0 -1
- package/dist/web-components-library/p-a79d1412.entry.js +0 -1
- package/dist/web-components-library/p-aded8a43.entry.js +0 -1
- package/dist/web-components-library/p-b4fbb6e4.entry.js +0 -1
- package/dist/web-components-library/p-b5086d6d.entry.js +0 -1
- package/dist/web-components-library/p-bb0fe7bc.entry.js +0 -1
- package/dist/web-components-library/p-bb15a265.js +0 -1
- package/dist/web-components-library/p-bb95b82f.entry.js +0 -1
- package/dist/web-components-library/p-c2d1785b.entry.js +0 -1
- package/dist/web-components-library/p-c6a662e6.entry.js +0 -1
- package/dist/web-components-library/p-c6aad085.entry.js +0 -1
- package/dist/web-components-library/p-cb5d8a84.entry.js +0 -1
- package/dist/web-components-library/p-cbb3ea13.entry.js +0 -1
- package/dist/web-components-library/p-ccf67abf.entry.js +0 -1
- package/dist/web-components-library/p-ce83ce18.entry.js +0 -1
- package/dist/web-components-library/p-d199b781.entry.js +0 -1
- package/dist/web-components-library/p-d3645ced.entry.js +0 -1
- package/dist/web-components-library/p-d3733579.entry.js +0 -1
- package/dist/web-components-library/p-d531d1d2.entry.js +0 -1
- package/dist/web-components-library/p-e68c18e5.entry.js +0 -1
- package/dist/web-components-library/p-ecc4afa1.entry.js +0 -1
- package/dist/web-components-library/p-ede9fbf5.entry.js +0 -1
- package/dist/web-components-library/p-edf0195b.entry.js +0 -1
- package/dist/web-components-library/p-f2f9a1bc.entry.js +0 -1
- package/dist/web-components-library/p-f2fd1e20.entry.js +0 -1
- package/dist/web-components-library/p-f7c1eb3f.entry.js +0 -16
- package/dist/web-components-library/p-f95cc914.entry.js +0 -1
- package/dist/web-components-library/p-fb7d33f2.entry.js +0 -1
- package/www/build/p-05ced71c.entry.js +0 -1
- package/www/build/p-074ea569.entry.js +0 -1
- package/www/build/p-10b46635.entry.js +0 -1
- package/www/build/p-1106ead2.entry.js +0 -1
- package/www/build/p-15b8a920.entry.js +0 -1
- package/www/build/p-15fe7b71.entry.js +0 -1
- package/www/build/p-1bd6592f.entry.js +0 -1
- package/www/build/p-1e6a2a56.entry.js +0 -1
- package/www/build/p-23781e2b.entry.js +0 -1
- package/www/build/p-28ff9383.entry.js +0 -1
- package/www/build/p-2d0cb337.entry.js +0 -1
- package/www/build/p-2efedcf4.entry.js +0 -1
- package/www/build/p-344e7ae7.entry.js +0 -1
- package/www/build/p-35ceae27.entry.js +0 -1
- package/www/build/p-3913bff2.entry.js +0 -1
- package/www/build/p-3a431f04.entry.js +0 -1
- package/www/build/p-3c2d438b.entry.js +0 -1
- package/www/build/p-3f55dce6.entry.js +0 -1
- package/www/build/p-442b8b35.entry.js +0 -1
- package/www/build/p-4cd6c6f4.entry.js +0 -1
- package/www/build/p-4d093e07.entry.js +0 -1
- package/www/build/p-4e733fbd.entry.js +0 -1
- package/www/build/p-4ec9ab53.entry.js +0 -1
- package/www/build/p-53a03f2a.entry.js +0 -1
- package/www/build/p-562ad563.entry.js +0 -1
- package/www/build/p-58650e22.entry.js +0 -1
- package/www/build/p-5bec950e.entry.js +0 -1
- package/www/build/p-5c9556e3.entry.js +0 -1
- package/www/build/p-5cf4a412.entry.js +0 -1
- package/www/build/p-5d4a6659.entry.js +0 -1
- package/www/build/p-5f3baf14.entry.js +0 -1
- package/www/build/p-61424b8a.entry.js +0 -1
- package/www/build/p-681e1f5a.entry.js +0 -1
- package/www/build/p-686545fa.entry.js +0 -1
- package/www/build/p-6f64e8a8.entry.js +0 -1
- package/www/build/p-70d16b2c.entry.js +0 -1
- package/www/build/p-7688f8ca.entry.js +0 -1
- package/www/build/p-77e4774d.entry.js +0 -1
- package/www/build/p-79b8d87e.entry.js +0 -1
- package/www/build/p-7d696941.entry.js +0 -1
- package/www/build/p-7d792297.entry.js +0 -1
- package/www/build/p-810bd730.entry.js +0 -1
- package/www/build/p-87fdd14f.js +0 -1
- package/www/build/p-982254e5.entry.js +0 -1
- package/www/build/p-9d03a7d6.entry.js +0 -1
- package/www/build/p-9ecc5eba.entry.js +0 -1
- package/www/build/p-9f80c0b8.js +0 -1
- package/www/build/p-9fe267fc.entry.js +0 -1
- package/www/build/p-a6d6178a.entry.js +0 -1
- package/www/build/p-a79cc147.entry.js +0 -1
- package/www/build/p-a79d1412.entry.js +0 -1
- package/www/build/p-aded8a43.entry.js +0 -1
- package/www/build/p-b4fbb6e4.entry.js +0 -1
- package/www/build/p-b5086d6d.entry.js +0 -1
- package/www/build/p-bb0fe7bc.entry.js +0 -1
- package/www/build/p-bb15a265.js +0 -1
- package/www/build/p-bb95b82f.entry.js +0 -1
- package/www/build/p-c2d1785b.entry.js +0 -1
- package/www/build/p-c6a662e6.entry.js +0 -1
- package/www/build/p-c6aad085.entry.js +0 -1
- package/www/build/p-cb5d8a84.entry.js +0 -1
- package/www/build/p-cbb3ea13.entry.js +0 -1
- package/www/build/p-ccf67abf.entry.js +0 -1
- package/www/build/p-ce83ce18.entry.js +0 -1
- package/www/build/p-d199b781.entry.js +0 -1
- package/www/build/p-d3645ced.entry.js +0 -1
- package/www/build/p-d3733579.entry.js +0 -1
- package/www/build/p-d531d1d2.entry.js +0 -1
- package/www/build/p-e68c18e5.entry.js +0 -1
- package/www/build/p-ecc4afa1.entry.js +0 -1
- package/www/build/p-ede9fbf5.entry.js +0 -1
- package/www/build/p-edf0195b.entry.js +0 -1
- package/www/build/p-f2f9a1bc.entry.js +0 -1
- package/www/build/p-f2fd1e20.entry.js +0 -1
- package/www/build/p-f7c1eb3f.entry.js +0 -16
- package/www/build/p-f95cc914.entry.js +0 -1
- package/www/build/p-fb7d33f2.entry.js +0 -1
|
@@ -1,35 +1,38 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { InputType, LabelPosition } from "../../../beans";
|
|
3
2
|
import { boolean, randomId } from "../../../utils/utils";
|
|
4
3
|
export class ZInput {
|
|
5
4
|
constructor() {
|
|
6
|
-
|
|
5
|
+
this.typingtimeout = 300;
|
|
7
6
|
this.htmlid = `id-${randomId()}`;
|
|
8
|
-
|
|
7
|
+
this.type = undefined;
|
|
8
|
+
this.name = undefined;
|
|
9
|
+
this.label = undefined;
|
|
9
10
|
this.ariaLabel = "";
|
|
10
|
-
|
|
11
|
+
this.value = undefined;
|
|
11
12
|
this.disabled = false;
|
|
12
|
-
/** the input is readonly */
|
|
13
13
|
this.readonly = false;
|
|
14
|
-
/** the input is required (optional): available for text, password, number, email, textarea, checkbox */
|
|
15
14
|
this.required = false;
|
|
16
|
-
/** checked: available for checkbox, radio */
|
|
17
15
|
this.checked = false;
|
|
18
|
-
|
|
16
|
+
this.placeholder = undefined;
|
|
17
|
+
this.htmltitle = undefined;
|
|
18
|
+
this.status = undefined;
|
|
19
19
|
this.message = true;
|
|
20
|
-
|
|
21
|
-
this.
|
|
22
|
-
/** render clear icon when typing (optional): available for text */
|
|
20
|
+
this.labelPosition = "right" /* LabelPosition.RIGHT */;
|
|
21
|
+
this.autocomplete = undefined;
|
|
23
22
|
this.hasclearicon = true;
|
|
23
|
+
this.icon = undefined;
|
|
24
|
+
this.min = undefined;
|
|
25
|
+
this.max = undefined;
|
|
26
|
+
this.step = undefined;
|
|
27
|
+
this.pattern = undefined;
|
|
24
28
|
this.isTyping = false;
|
|
25
29
|
this.passwordHidden = true;
|
|
26
|
-
this.typingtimeout = 300;
|
|
27
30
|
}
|
|
28
31
|
inputCheckListener(e) {
|
|
29
32
|
const data = e.detail;
|
|
30
33
|
switch (this.type) {
|
|
31
|
-
case InputType.RADIO
|
|
32
|
-
if (data.type === InputType.RADIO && data.name === this.name && data.id !== this.htmlid) {
|
|
34
|
+
case "radio" /* InputType.RADIO */:
|
|
35
|
+
if (data.type === "radio" /* InputType.RADIO */ && data.name === this.name && data.id !== this.htmlid) {
|
|
33
36
|
this.checked = false;
|
|
34
37
|
}
|
|
35
38
|
break;
|
|
@@ -38,8 +41,8 @@ export class ZInput {
|
|
|
38
41
|
/** get checked status */
|
|
39
42
|
async isChecked() {
|
|
40
43
|
switch (this.type) {
|
|
41
|
-
case InputType.CHECKBOX
|
|
42
|
-
case InputType.RADIO
|
|
44
|
+
case "checkbox" /* InputType.CHECKBOX */:
|
|
45
|
+
case "radio" /* InputType.RADIO */:
|
|
43
46
|
return this.checked;
|
|
44
47
|
default:
|
|
45
48
|
console.warn("`isChecked` method is only available for type `checkbox` and `radio`");
|
|
@@ -51,7 +54,7 @@ export class ZInput {
|
|
|
51
54
|
this.emitStartTyping();
|
|
52
55
|
}
|
|
53
56
|
let validity;
|
|
54
|
-
if (this.type === InputType.TEXTAREA) {
|
|
57
|
+
if (this.type === "textarea" /* InputType.TEXTAREA */) {
|
|
55
58
|
validity = this.getValidity("textarea");
|
|
56
59
|
}
|
|
57
60
|
else {
|
|
@@ -109,7 +112,7 @@ export class ZInput {
|
|
|
109
112
|
};
|
|
110
113
|
}
|
|
111
114
|
getNumberAttributes(type) {
|
|
112
|
-
if (type != InputType.NUMBER) {
|
|
115
|
+
if (type != "number" /* InputType.NUMBER */) {
|
|
113
116
|
return;
|
|
114
117
|
}
|
|
115
118
|
return {
|
|
@@ -119,27 +122,27 @@ export class ZInput {
|
|
|
119
122
|
};
|
|
120
123
|
}
|
|
121
124
|
getPatternAttribute(type) {
|
|
122
|
-
if (type != InputType.PASSWORD &&
|
|
123
|
-
type != InputType.TEXT &&
|
|
124
|
-
type != InputType.TEL &&
|
|
125
|
-
type != InputType.SEARCH &&
|
|
126
|
-
type != InputType.URL &&
|
|
127
|
-
type != InputType.EMAIL) {
|
|
125
|
+
if (type != "password" /* InputType.PASSWORD */ &&
|
|
126
|
+
type != "text" /* InputType.TEXT */ &&
|
|
127
|
+
type != "tel" /* InputType.TEL */ &&
|
|
128
|
+
type != "search" /* InputType.SEARCH */ &&
|
|
129
|
+
type != "url" /* InputType.URL */ &&
|
|
130
|
+
type != "email" /* InputType.EMAIL */) {
|
|
128
131
|
return;
|
|
129
132
|
}
|
|
130
133
|
return {
|
|
131
134
|
pattern: this.pattern,
|
|
132
135
|
};
|
|
133
136
|
}
|
|
134
|
-
renderInputText(type = InputType.TEXT) {
|
|
137
|
+
renderInputText(type = "text" /* InputType.TEXT */) {
|
|
135
138
|
const attr = Object.assign(Object.assign(Object.assign({}, this.getTextAttributes()), this.getNumberAttributes(type)), this.getPatternAttribute(type));
|
|
136
|
-
if (this.icon || type === InputType.PASSWORD) {
|
|
139
|
+
if (this.icon || type === "password" /* InputType.PASSWORD */) {
|
|
137
140
|
Object.assign(attr.class, { "has-icon": true });
|
|
138
141
|
}
|
|
139
|
-
if (this.hasclearicon && type != InputType.NUMBER) {
|
|
142
|
+
if (this.hasclearicon && type != "number" /* InputType.NUMBER */) {
|
|
140
143
|
Object.assign(attr.class, { "has-clear-icon": true });
|
|
141
144
|
}
|
|
142
|
-
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()));
|
|
145
|
+
return (h("div", { class: "text-wrapper" }, this.renderLabel(), h("div", null, h("input", Object.assign({ type: type === "password" /* InputType.PASSWORD */ && !this.passwordHidden ? "text" /* InputType.TEXT */ : type }, attr, { "aria-label": this.ariaLabel || this.label })), this.renderIcons()), this.renderMessage()));
|
|
143
146
|
}
|
|
144
147
|
renderLabel() {
|
|
145
148
|
if (!this.label) {
|
|
@@ -151,7 +154,7 @@ export class ZInput {
|
|
|
151
154
|
return (h("span", { class: "icons-wrapper" }, this.renderResetIcon(), this.renderIcon()));
|
|
152
155
|
}
|
|
153
156
|
renderIcon() {
|
|
154
|
-
if (this.type === InputType.PASSWORD) {
|
|
157
|
+
if (this.type === "password" /* InputType.PASSWORD */) {
|
|
155
158
|
return this.renderShowHidePassword();
|
|
156
159
|
}
|
|
157
160
|
if (!this.icon) {
|
|
@@ -160,7 +163,7 @@ export class ZInput {
|
|
|
160
163
|
return (h("button", { type: "button", class: "icon-button input-icon", tabIndex: -1 }, h("z-icon", { name: this.icon })));
|
|
161
164
|
}
|
|
162
165
|
renderResetIcon() {
|
|
163
|
-
if (!this.hasclearicon || !this.value || this.disabled || this.readonly || this.type == InputType.NUMBER) {
|
|
166
|
+
if (!this.hasclearicon || !this.value || this.disabled || this.readonly || this.type == "number" /* InputType.NUMBER */) {
|
|
164
167
|
return;
|
|
165
168
|
}
|
|
166
169
|
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" })));
|
|
@@ -189,8 +192,8 @@ export class ZInput {
|
|
|
189
192
|
renderCheckbox() {
|
|
190
193
|
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: {
|
|
191
194
|
"checkbox-label": true,
|
|
192
|
-
"after": this.labelPosition === LabelPosition.RIGHT
|
|
193
|
-
"before": this.labelPosition === LabelPosition.LEFT
|
|
195
|
+
"after": this.labelPosition === "right" /* LabelPosition.RIGHT */,
|
|
196
|
+
"before": this.labelPosition === "left" /* LabelPosition.LEFT */,
|
|
194
197
|
} }, h("z-icon", { name: this.checked ? "checkbox-checked" : "checkbox", "aria-hidden": "true" }), this.label && h("span", { innerHTML: this.label }))));
|
|
195
198
|
}
|
|
196
199
|
/* END checkbox */
|
|
@@ -198,18 +201,18 @@ export class ZInput {
|
|
|
198
201
|
renderRadio() {
|
|
199
202
|
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: {
|
|
200
203
|
"radio-label": true,
|
|
201
|
-
"after": this.labelPosition === LabelPosition.RIGHT
|
|
202
|
-
"before": this.labelPosition === LabelPosition.LEFT
|
|
204
|
+
"after": this.labelPosition === "right" /* LabelPosition.RIGHT */,
|
|
205
|
+
"before": this.labelPosition === "left" /* LabelPosition.LEFT */,
|
|
203
206
|
} }, h("z-icon", { name: this.checked ? "radio-button-checked" : "radio-button", "aria-hidden": "true" }), this.label && h("span", { innerHTML: this.label }))));
|
|
204
207
|
}
|
|
205
208
|
/* END radio */
|
|
206
209
|
render() {
|
|
207
210
|
switch (this.type) {
|
|
208
|
-
case InputType.TEXTAREA
|
|
211
|
+
case "textarea" /* InputType.TEXTAREA */:
|
|
209
212
|
return this.renderTextarea();
|
|
210
|
-
case InputType.CHECKBOX
|
|
213
|
+
case "checkbox" /* InputType.CHECKBOX */:
|
|
211
214
|
return this.renderCheckbox();
|
|
212
|
-
case InputType.RADIO
|
|
215
|
+
case "radio" /* InputType.RADIO */:
|
|
213
216
|
return this.renderRadio();
|
|
214
217
|
default:
|
|
215
218
|
return this.renderInputText(this.type);
|
|
@@ -6,6 +6,8 @@ export class ZInputMessage {
|
|
|
6
6
|
error: "multiply-circled",
|
|
7
7
|
warning: "exclamation-circle",
|
|
8
8
|
};
|
|
9
|
+
this.message = undefined;
|
|
10
|
+
this.status = undefined;
|
|
9
11
|
}
|
|
10
12
|
render() {
|
|
11
13
|
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 })));
|
|
@@ -1,25 +1,24 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { ListDividerType, KeyboardCode } from "../../../beans";
|
|
3
2
|
import { randomId, handleKeyboardSubmit, getClickedElement, getElementTree, boolean } from "../../../utils/utils";
|
|
4
3
|
export class ZSelect {
|
|
5
4
|
constructor() {
|
|
6
|
-
|
|
5
|
+
this.itemsList = [];
|
|
7
6
|
this.htmlid = `id-${randomId()}`;
|
|
8
|
-
|
|
7
|
+
this.items = undefined;
|
|
8
|
+
this.name = undefined;
|
|
9
|
+
this.label = undefined;
|
|
9
10
|
this.ariaLabel = "";
|
|
10
|
-
/** the input is disabled */
|
|
11
11
|
this.disabled = false;
|
|
12
|
-
/** the input is readonly */
|
|
13
12
|
this.readonly = false;
|
|
14
|
-
|
|
13
|
+
this.placeholder = undefined;
|
|
14
|
+
this.htmltitle = undefined;
|
|
15
|
+
this.status = undefined;
|
|
15
16
|
this.message = true;
|
|
16
|
-
/** the input has autocomplete option */
|
|
17
17
|
this.autocomplete = false;
|
|
18
|
-
/** no result text message */
|
|
19
18
|
this.noresultslabel = "Nessun risultato";
|
|
20
19
|
this.isOpen = false;
|
|
21
20
|
this.selectedItem = null;
|
|
22
|
-
this.
|
|
21
|
+
this.searchString = undefined;
|
|
23
22
|
this.toggleSelectUl = this.toggleSelectUl.bind(this);
|
|
24
23
|
this.selectItem = this.selectItem.bind(this);
|
|
25
24
|
this.handleSelectFocus = this.handleSelectFocus.bind(this);
|
|
@@ -123,7 +122,7 @@ export class ZSelect {
|
|
|
123
122
|
}
|
|
124
123
|
}
|
|
125
124
|
arrowsSelectNav(e, key) {
|
|
126
|
-
const arrows = [KeyboardCode.ARROW_DOWN
|
|
125
|
+
const arrows = ["ArrowDown" /* KeyboardCode.ARROW_DOWN */, "ArrowUp" /* KeyboardCode.ARROW_UP */];
|
|
127
126
|
if (!arrows.includes(e.key)) {
|
|
128
127
|
return;
|
|
129
128
|
}
|
|
@@ -133,10 +132,10 @@ export class ZSelect {
|
|
|
133
132
|
this.toggleSelectUl();
|
|
134
133
|
}
|
|
135
134
|
let index;
|
|
136
|
-
if (e.key === KeyboardCode.ARROW_DOWN) {
|
|
135
|
+
if (e.key === "ArrowDown" /* KeyboardCode.ARROW_DOWN */) {
|
|
137
136
|
index = key + 1 === this.itemsList.length ? 0 : key + 1;
|
|
138
137
|
}
|
|
139
|
-
else if (e.key === KeyboardCode.ARROW_UP) {
|
|
138
|
+
else if (e.key === "ArrowUp" /* KeyboardCode.ARROW_UP */) {
|
|
140
139
|
index = key <= 0 ? this.itemsList.length - 1 : key - 1;
|
|
141
140
|
}
|
|
142
141
|
this.focusSelectItem(index);
|
|
@@ -174,11 +173,11 @@ export class ZSelect {
|
|
|
174
173
|
this.toggleSelectUl();
|
|
175
174
|
}
|
|
176
175
|
handleSelectFocus(e) {
|
|
177
|
-
if (e instanceof KeyboardEvent && e.key === KeyboardCode.ESC) {
|
|
176
|
+
if (e instanceof KeyboardEvent && e.key === "Escape" /* KeyboardCode.ESC */) {
|
|
178
177
|
e.stopPropagation();
|
|
179
178
|
return this.toggleSelectUl(true);
|
|
180
179
|
}
|
|
181
|
-
if (e instanceof KeyboardEvent && e.key !== KeyboardCode.TAB && e.key !== KeyboardCode.ENTER) {
|
|
180
|
+
if (e instanceof KeyboardEvent && e.key !== "Tab" /* KeyboardCode.TAB */ && e.key !== "Enter" /* KeyboardCode.ENTER */) {
|
|
182
181
|
return;
|
|
183
182
|
}
|
|
184
183
|
const tree = getElementTree(getClickedElement());
|
|
@@ -228,7 +227,7 @@ export class ZSelect {
|
|
|
228
227
|
return this.renderNoSearchResults();
|
|
229
228
|
}
|
|
230
229
|
return this.itemsList.map((item, key) => {
|
|
231
|
-
return (h("z-list-element", { clickable: !item.disabled, disabled: item.disabled, dividerType: ListDividerType.ELEMENT
|
|
230
|
+
return (h("z-list-element", { clickable: !item.disabled, disabled: item.disabled, dividerType: "element" /* 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 })));
|
|
232
231
|
});
|
|
233
232
|
}
|
|
234
233
|
renderNoSearchResults() {
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
-
import { ListSize } from "../../../beans";
|
|
3
2
|
export class ZList {
|
|
4
3
|
constructor() {
|
|
5
|
-
|
|
6
|
-
* [optional] Sets size of inside elements.
|
|
7
|
-
*/
|
|
8
|
-
this.size = ListSize.MEDIUM;
|
|
4
|
+
this.size = "medium" /* ListSize.MEDIUM */;
|
|
9
5
|
}
|
|
10
6
|
setChildrenSizeType() {
|
|
11
7
|
const children = this.host.children;
|
|
@@ -1,55 +1,9 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
-
import { DividerSize, ExpandableListButtonAlign, ExpandableListStyle, KeyboardCode, ListDividerType, ListSize, } from "../../../beans";
|
|
3
2
|
export class ZListElement {
|
|
4
3
|
/**
|
|
5
4
|
* Constructor.
|
|
6
5
|
*/
|
|
7
6
|
constructor() {
|
|
8
|
-
/**
|
|
9
|
-
* [optional] Align expandable button left or right.
|
|
10
|
-
*/
|
|
11
|
-
this.alignButton = ExpandableListButtonAlign.LEFT;
|
|
12
|
-
/**
|
|
13
|
-
* [optional] Sets element clickable.
|
|
14
|
-
*/
|
|
15
|
-
this.clickable = false;
|
|
16
|
-
/**
|
|
17
|
-
* [optional] Sets the divider color.
|
|
18
|
-
*/
|
|
19
|
-
this.dividerColor = "color-surface03";
|
|
20
|
-
/**
|
|
21
|
-
* [optional] Sets the position where to insert the divider.
|
|
22
|
-
*/
|
|
23
|
-
this.dividerType = ListDividerType.NONE;
|
|
24
|
-
/**
|
|
25
|
-
* [optional] Sets the divider size.
|
|
26
|
-
*/
|
|
27
|
-
this.dividerSize = DividerSize.SMALL;
|
|
28
|
-
/**
|
|
29
|
-
* [optional] Sets element as expandable.
|
|
30
|
-
*/
|
|
31
|
-
this.expandable = false;
|
|
32
|
-
/**
|
|
33
|
-
* [optional] Sets expandable style to element.
|
|
34
|
-
*/
|
|
35
|
-
this.expandableStyle = ExpandableListStyle.ACCORDION;
|
|
36
|
-
/**
|
|
37
|
-
* [optional] Sets size of inside elements.
|
|
38
|
-
*/
|
|
39
|
-
this.size = ListSize.MEDIUM;
|
|
40
|
-
/**
|
|
41
|
-
* [optional] Sets text color of the element.
|
|
42
|
-
*/
|
|
43
|
-
this.color = "none";
|
|
44
|
-
/**
|
|
45
|
-
* [optional] Sets disabled style of the element.
|
|
46
|
-
*/
|
|
47
|
-
this.disabled = false;
|
|
48
|
-
/**
|
|
49
|
-
* [optional] If is used in ZContextualMenu component
|
|
50
|
-
*/
|
|
51
|
-
this.isContextualMenu = false;
|
|
52
|
-
this.showInnerContent = false;
|
|
53
7
|
this.openElementConfig = {
|
|
54
8
|
accordion: {
|
|
55
9
|
open: "minus-circled",
|
|
@@ -60,6 +14,19 @@ export class ZListElement {
|
|
|
60
14
|
close: "chevron-down",
|
|
61
15
|
},
|
|
62
16
|
};
|
|
17
|
+
this.alignButton = "left" /* ExpandableListButtonAlign.LEFT */;
|
|
18
|
+
this.clickable = false;
|
|
19
|
+
this.dividerColor = "color-surface03";
|
|
20
|
+
this.dividerType = "none" /* ListDividerType.NONE */;
|
|
21
|
+
this.dividerSize = "small" /* DividerSize.SMALL */;
|
|
22
|
+
this.expandable = false;
|
|
23
|
+
this.expandableStyle = "accordion" /* ExpandableListStyle.ACCORDION */;
|
|
24
|
+
this.listElementId = undefined;
|
|
25
|
+
this.size = "medium" /* ListSize.MEDIUM */;
|
|
26
|
+
this.color = "none";
|
|
27
|
+
this.disabled = false;
|
|
28
|
+
this.isContextualMenu = false;
|
|
29
|
+
this.showInnerContent = false;
|
|
63
30
|
this.handleClick = this.handleClick.bind(this);
|
|
64
31
|
this.handleKeyDown = this.handleKeyDown.bind(this);
|
|
65
32
|
}
|
|
@@ -87,17 +54,17 @@ export class ZListElement {
|
|
|
87
54
|
return "container";
|
|
88
55
|
}
|
|
89
56
|
handleKeyDown(event) {
|
|
90
|
-
const expandByKey = event.code === KeyboardCode.ENTER
|
|
57
|
+
const expandByKey = event.code === "Enter" /* KeyboardCode.ENTER */;
|
|
91
58
|
switch (event.code) {
|
|
92
|
-
case KeyboardCode.ARROW_DOWN
|
|
59
|
+
case "ArrowDown" /* KeyboardCode.ARROW_DOWN */:
|
|
93
60
|
event.preventDefault();
|
|
94
61
|
this.accessibleFocus.emit(this.listElementId + 1);
|
|
95
62
|
break;
|
|
96
|
-
case KeyboardCode.ARROW_UP
|
|
63
|
+
case "ArrowUp" /* KeyboardCode.ARROW_UP */:
|
|
97
64
|
event.preventDefault();
|
|
98
65
|
this.accessibleFocus.emit(this.listElementId - 1);
|
|
99
66
|
break;
|
|
100
|
-
case KeyboardCode.ENTER
|
|
67
|
+
case "Enter" /* KeyboardCode.ENTER */:
|
|
101
68
|
event.preventDefault();
|
|
102
69
|
this.clickItem.emit(this.listElementId);
|
|
103
70
|
break;
|
|
@@ -135,7 +102,7 @@ export class ZListElement {
|
|
|
135
102
|
} }, h("slot", { name: "inner-content" })));
|
|
136
103
|
}
|
|
137
104
|
render() {
|
|
138
|
-
return (h(Host, { role: "listitem", "aria-expanded": this.expandable ? this.showInnerContent : null, onClick: this.handleClick, onKeyDown: this.handleKeyDown, clickable: this.clickable && !this.disabled, tabIndex: !this.isContextualMenu ? "0" : null }, h("div", { class: `${this.calculateClass()}`, style: { color: `var(--${this.color})` }, tabindex: this.isContextualMenu ? "0" : "-1", id: `z-list-element-id-${this.listElementId}` }, h("div", { class: "z-list-element-container" }, this.renderExpandableButton(), h("slot", null)), this.renderExpandedContent()), this.dividerType === ListDividerType.ELEMENT && (h("z-divider", { color: this.dividerColor, size: this.dividerSize }))));
|
|
105
|
+
return (h(Host, { role: "listitem", "aria-expanded": this.expandable ? this.showInnerContent : null, onClick: this.handleClick, onKeyDown: this.handleKeyDown, clickable: this.clickable && !this.disabled, tabIndex: !this.isContextualMenu ? "0" : null }, h("div", { class: `${this.calculateClass()}`, style: { color: `var(--${this.color})` }, tabindex: this.isContextualMenu ? "0" : "-1", id: `z-list-element-id-${this.listElementId}` }, h("div", { class: "z-list-element-container" }, this.renderExpandableButton(), h("slot", null)), this.renderExpandedContent()), this.dividerType === "element" /* ListDividerType.ELEMENT */ && (h("z-divider", { color: this.dividerColor, size: this.dividerSize }))));
|
|
139
106
|
}
|
|
140
107
|
static get is() { return "z-list-element"; }
|
|
141
108
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,22 +1,9 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
-
import { DividerSize, ListSize, ListDividerType } from "../../../beans";
|
|
3
2
|
export class ZListGroup {
|
|
4
3
|
constructor() {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
this.size = ListSize.MEDIUM;
|
|
9
|
-
/**
|
|
10
|
-
* [optional] Sets the position where to insert the divider.
|
|
11
|
-
*/
|
|
12
|
-
this.dividerType = ListDividerType.NONE;
|
|
13
|
-
/**
|
|
14
|
-
* [optional] Sets the divider size.
|
|
15
|
-
*/
|
|
16
|
-
this.dividerSize = DividerSize.SMALL;
|
|
17
|
-
/**
|
|
18
|
-
* [optional] Sets the divider color.
|
|
19
|
-
*/
|
|
4
|
+
this.size = "medium" /* ListSize.MEDIUM */;
|
|
5
|
+
this.dividerType = "none" /* ListDividerType.NONE */;
|
|
6
|
+
this.dividerSize = "small" /* DividerSize.SMALL */;
|
|
20
7
|
this.dividerColor = "gray200";
|
|
21
8
|
}
|
|
22
9
|
componentDidLoad() {
|
|
@@ -37,7 +24,7 @@ export class ZListGroup {
|
|
|
37
24
|
return (h(Host, { role: "group" }, h("div", { class: {
|
|
38
25
|
"z-list-group-header-container": true,
|
|
39
26
|
"has-header": this.hasHeader,
|
|
40
|
-
} }, h("slot", { name: "header-title" }), this.dividerType === ListDividerType.HEADER && (h("z-divider", { color: this.dividerColor, size: this.dividerSize }))), h("slot", null)));
|
|
27
|
+
} }, h("slot", { name: "header-title" }), this.dividerType === "header" /* ListDividerType.HEADER */ && (h("z-divider", { color: this.dividerColor, size: this.dividerSize }))), h("slot", null)));
|
|
41
28
|
}
|
|
42
29
|
static get is() { return "z-list-group"; }
|
|
43
30
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { ToastNotificationPosition } from "../../../beans";
|
|
3
2
|
export class ZToastNotificationList {
|
|
4
3
|
constructor() {
|
|
5
|
-
|
|
6
|
-
this.position = ToastNotificationPosition.TOP_RIGHT;
|
|
7
|
-
/**Set the entry position of new notification in the list */
|
|
4
|
+
this.position = "top-right" /* ToastNotificationPosition.TOP_RIGHT */;
|
|
8
5
|
this.newestontop = true;
|
|
9
6
|
}
|
|
10
7
|
watchPropNewestontop(newValue) {
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
2
|
export class ZLogo {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.width = undefined;
|
|
5
|
+
this.height = undefined;
|
|
6
|
+
this.imageAlt = undefined;
|
|
7
|
+
this.link = undefined;
|
|
8
|
+
this.targetBlank = undefined;
|
|
9
|
+
this.mobileLogo = undefined;
|
|
10
|
+
}
|
|
3
11
|
render() {
|
|
4
12
|
const style = {};
|
|
5
13
|
if (this.width) {
|
|
@@ -5,7 +5,9 @@ import { h, Host } from "@stencil/core";
|
|
|
5
5
|
*/
|
|
6
6
|
export class ZModal {
|
|
7
7
|
constructor() {
|
|
8
|
-
|
|
8
|
+
this.modalid = undefined;
|
|
9
|
+
this.modaltitle = undefined;
|
|
10
|
+
this.modalsubtitle = undefined;
|
|
9
11
|
this.closeButtonLabel = "close modal";
|
|
10
12
|
}
|
|
11
13
|
emitModalClose() {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { ButtonVariant, InputStatus, InputType } from "../../../beans";
|
|
3
2
|
/**
|
|
4
3
|
* @slot username - username input
|
|
5
4
|
* @slot password - password input
|
|
@@ -9,8 +8,11 @@ import { ButtonVariant, InputStatus, InputType } from "../../../beans";
|
|
|
9
8
|
*/
|
|
10
9
|
export class ZModalLogin {
|
|
11
10
|
constructor() {
|
|
12
|
-
|
|
11
|
+
this.forgotPasswordUrl = undefined;
|
|
13
12
|
this.heading = "Entra in MyZanichelli";
|
|
13
|
+
this.status = undefined;
|
|
14
|
+
this.message = undefined;
|
|
15
|
+
this.pwdmessage = undefined;
|
|
14
16
|
this.externalProviderCheck = false;
|
|
15
17
|
}
|
|
16
18
|
componentDidLoad() {
|
|
@@ -26,7 +28,7 @@ export class ZModalLogin {
|
|
|
26
28
|
let username = usernameInput.value;
|
|
27
29
|
const password = passwordInput.value;
|
|
28
30
|
if (!username || !password) {
|
|
29
|
-
this.status = InputStatus.ERROR
|
|
31
|
+
this.status = "error" /* InputStatus.ERROR */;
|
|
30
32
|
return;
|
|
31
33
|
}
|
|
32
34
|
username = this.cleanUsername(username);
|
|
@@ -67,10 +69,10 @@ export class ZModalLogin {
|
|
|
67
69
|
return username;
|
|
68
70
|
}
|
|
69
71
|
renderZainoDigitaleButton() {
|
|
70
|
-
return (h("z-button", { variant: ButtonVariant.SECONDARY
|
|
72
|
+
return (h("z-button", { variant: "secondary" /* ButtonVariant.SECONDARY */, onClick: () => this.emitZainoDigitaleClick(), class: "zainoDigitale" }, h("div", { class: "zd" }, h("svg", { width: "18px", height: "24px", viewBox: "0 0 18 24" }, h("g", { stroke: "none", "stroke-width": "1", fill: "none", "fill-rule": "evenodd" }, h("g", { transform: "translate(-313.000000, -329.000000)", fill: "#E2001A", "fill-rule": "nonzero" }, h("g", { transform: "translate(25.000000, 191.000000)" }, h("g", null, h("g", { transform: "translate(0.000000, 100.000000)" }, h("g", null, h("g", { transform: "translate(276.000000, 28.000000)" }, h("path", { d: "M29.8953704,30.5632326 C29.9143039,30.3327754 29.5356326,30.0447041 29.1380277,29.8142469 C29.2516291,28.7963947 29.4409647,26.9719425 29.2705626,26.3189807 C29.0433598,25.416357 28.3428178,24.8018047 28.380685,23.822362 C28.4185521,22.8429193 28.1913493,16.5437582 27.0364017,15.1802202 C26.1654576,14.162368 25.4649156,12.8372396 23.4390239,12.2418921 C23.4390239,12.0498445 23.4390239,11.8770016 23.4200903,11.7425683 C23.3822232,10.9167637 21.9622056,10.090959 21.6214014,10.0525495 C21.2805972,10.01414 20.371786,9.95652568 20.0309818,10.0525495 C19.6901775,10.1293685 19.0464362,11.128016 18.7434992,11.4352922 C18.5920306,11.5889302 18.5541635,11.9538207 18.5730971,12.3187111 C17.437083,12.6836015 16.1306669,13.4325871 15.4490584,14.9497631 C14.2941108,17.676839 13.4799674,18.9251483 13.6693031,24.1680477 C13.5935688,25.1090809 13.2906318,25.6084046 13.1012961,25.6852237 C12.9119604,25.7620427 12.798359,25.9156808 12.7604919,26.1077284 C12.7226247,26.2805712 12.5522226,28.37389 12.7415583,29.8718612 C12.3818205,30.1023183 12.0788834,30.3519802 12.097817,30.5632326 C12.1546177,31.0625563 11.8516806,31.7731324 12.097817,32.0612038 C12.230352,32.2148419 12.7226247,32.5413228 13.3284989,32.8293942 C13.6125024,33.4631512 14.199443,33.9240655 15.467992,33.9816797 C18.1565586,34.0584988 26.2601254,33.8664512 26.5630625,33.9048607 C26.847066,33.9432702 28.4374857,34.0008845 28.683622,32.8293942 C29.2894962,32.5413228 29.781769,32.2148419 29.9143039,32.0612038 C30.1415067,31.7731324 29.8385697,31.0625563 29.8953704,30.5632326 Z M12.0319858,31.2 C12.1173988,31.1230769 12.3736379,31.0461538 12.743761,31 C12.857645,31.3230769 12.914587,31.6615385 13,32 C12.4021089,31.8153846 11.8611598,31.5692308 12.0319858,31.2 Z M21.1618497,12.8394441 C21.1618497,12.8394441 20.6763006,12.8165075 20,13 L20,12.9770634 C20,12.5642053 20.3121387,11.3256309 20.3988439,11.1192018 C20.4855491,10.9127728 21.265896,11.0274556 21.8554913,11.0733287 C22.6358382,11.0503922 22.4624277,11.2568212 22.8092486,11.9907912 C22.9306358,12.2889666 22.982659,12.6559516 23,13 C22.4797688,12.8623806 21.8728324,12.8165075 21.1618497,12.8394441 Z M28.3324094,30 C28.6648189,30.0833333 28.9085858,30.2222222 28.9750677,30.3888889 C29.1301921,31.1666667 28.5318551,31.6388889 28,32 C28.0221606,31.5 28.0664819,31.1111111 28.0664819,31.1111111 L28.2437669,30.6111111 L28.3324094,30 Z M21.8571429,23 L21.8571429,23.8 L22.7142857,23.8 L22.7142857,24.6 L23.5714286,24.6 L23.5714286,25.4 L24.4285714,25.4 L24.4285714,26.2 L25.2857143,26.2 L25.2857143,27 L26.1428571,27 L26.1428571,27.8 L27,27.8 L27,28.6 L24.4285714,28.6 L24.4285714,29.4 L25.2857143,29.4 L25.2857143,31 L24.4285714,31 L24.4285714,30.2 L23.5714286,30.2 L23.5714286,29.4 L22.7142857,29.4 L22.7142857,30.2 L21.8571429,30.2 L21.8571429,31 L21,31 L21,23 L21.8571429,23 Z" }))))))))), h("span", null, "ZAINO DIGITALE"))));
|
|
71
73
|
}
|
|
72
74
|
render() {
|
|
73
|
-
return (h("z-modal", { modaltitle: this.heading }, h("div", { class: "wrapper", slot: "modalContent" }, h("form", { method: "post" }, h("div", { class: "username" }, h("slot", { name: "username" }, h("z-input", { id: "username", label: "email o numero di cellulare", placeholder: "Inserisci l'email o il cellulare", autocomplete: "username", name: "username", status: this.status, message: this.message, onKeyUp: (e) => this.handleInputKeyUp(e), onInputChange: () => this.handleInputChange() }))), h("div", { class: "password" }, h("slot", { name: "password" }, h("z-input", { id: "password", label: "password", placeholder: "Inserisci la tua password", type: InputType.PASSWORD
|
|
75
|
+
return (h("z-modal", { modaltitle: this.heading }, h("div", { class: "wrapper", slot: "modalContent" }, h("form", { method: "post" }, h("div", { class: "username" }, h("slot", { name: "username" }, h("z-input", { id: "username", label: "email o numero di cellulare", placeholder: "Inserisci l'email o il cellulare", autocomplete: "username", name: "username", status: this.status, message: this.message, onKeyUp: (e) => this.handleInputKeyUp(e), onInputChange: () => this.handleInputChange() }))), h("div", { class: "password" }, h("slot", { name: "password" }, h("z-input", { id: "password", label: "password", placeholder: "Inserisci la tua password", type: "password" /* InputType.PASSWORD */, name: "password", autocomplete: "current-password", status: this.status, message: this.pwdmessage, onKeyUp: (e) => this.handleInputKeyUp(e), onInputChange: () => this.handleInputChange() }))), h("z-link", { class: "forget", href: this.forgotPasswordUrl }, "Password dimenticata?"), h("div", { class: "login" }, h("slot", { name: "login" }, h("z-button", { variant: "primary" /* ButtonVariant.PRIMARY */, onClick: () => this.emitLoginSubmit() }, "Accedi")))), h("hr", null), h("z-body", { class: "signup", level: 4, variant: "semibold" }, "Non hai ancora un account?"), h("div", { class: "signup" }, h("slot", { name: "signup" }, h("z-button", { variant: "secondary" /* ButtonVariant.SECONDARY */, onClick: () => this.emitSignupClick() }, "Registrati"))), !this.externalProviderCheck && (h("div", { class: "providers" }, h("z-body", { class: "provider", level: 5, variant: "regular" }, "OPPURE ACCEDI CON:"), h("slot", { name: "provider" }, this.renderZainoDigitaleButton(), h("z-link", { icon: "informationsource", href: "https://www.zainodigitale.it/#/landing" }, "Cos'\u00E8 Zaino Digitale?")))))));
|
|
74
76
|
}
|
|
75
77
|
static get is() { return "z-modal-login"; }
|
|
76
78
|
static get encapsulation() { return "scoped"; }
|
|
@@ -1,33 +1,23 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { NavigationTabsOrientation, NavigationTabsSize } from "../../../../beans";
|
|
3
2
|
import { ICONS } from "../../../icons/icons";
|
|
4
3
|
/**
|
|
5
4
|
* Single tab component to use inside `z-navigation-tabs`. It renders a button.
|
|
6
5
|
*/
|
|
7
6
|
export class ZNavigationTab {
|
|
8
7
|
constructor() {
|
|
9
|
-
/**
|
|
10
|
-
* Whether the tab is selected.
|
|
11
|
-
*/
|
|
12
8
|
this.selected = false;
|
|
13
|
-
/**
|
|
14
|
-
* Whether the tab is disabled.
|
|
15
|
-
*/
|
|
16
9
|
this.disabled = false;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
this.
|
|
21
|
-
|
|
22
|
-
* Tab size. Do not set this manually: `z-navigation-tabs` will handle this.
|
|
23
|
-
*/
|
|
24
|
-
this.size = NavigationTabsSize.BIG;
|
|
10
|
+
this.orientation = "horizontal" /* NavigationTabsOrientation.HORIZONTAL */;
|
|
11
|
+
this.size = "big" /* NavigationTabsSize.BIG */;
|
|
12
|
+
this.icon = undefined;
|
|
13
|
+
this.label = undefined;
|
|
14
|
+
this.htmlTitle = undefined;
|
|
25
15
|
}
|
|
26
16
|
/**
|
|
27
17
|
* Scroll into view to center the tab.
|
|
28
18
|
*/
|
|
29
19
|
scrollToTab({ target: button }) {
|
|
30
|
-
const scrollOptions = this.orientation === NavigationTabsOrientation.HORIZONTAL
|
|
20
|
+
const scrollOptions = this.orientation === "horizontal" /* NavigationTabsOrientation.HORIZONTAL */
|
|
31
21
|
? { block: "nearest", inline: "center" }
|
|
32
22
|
: { block: "center", inline: "nearest" };
|
|
33
23
|
button.scrollIntoView(Object.assign({ behavior: "smooth" }, scrollOptions));
|
|
@@ -56,7 +46,7 @@ export class ZNavigationTab {
|
|
|
56
46
|
return h("z-icon", { name: icon });
|
|
57
47
|
}
|
|
58
48
|
render() {
|
|
59
|
-
return (h("button", { role: "tab", disabled: this.disabled, title: this.htmlTitle, onFocus: this.scrollToTab.bind(this) }, this.icon && this.renderIcon(), this.orientation === NavigationTabsOrientation.HORIZONTAL && this.label));
|
|
49
|
+
return (h("button", { role: "tab", disabled: this.disabled, title: this.htmlTitle, onFocus: this.scrollToTab.bind(this) }, this.icon && this.renderIcon(), this.orientation === "horizontal" /* NavigationTabsOrientation.HORIZONTAL */ && this.label));
|
|
60
50
|
}
|
|
61
51
|
static get is() { return "z-navigation-tab"; }
|
|
62
52
|
static get originalStyleUrls() {
|
|
@@ -1,33 +1,25 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { NavigationTabsOrientation, NavigationTabsSize } from "../../../../beans";
|
|
3
2
|
import { ICONS } from "../../../icons/icons";
|
|
4
3
|
/**
|
|
5
4
|
* Single tab component to use inside `z-navigation-tabs`. It renders an anchor element.
|
|
6
5
|
*/
|
|
7
6
|
export class ZNavigationTabLink {
|
|
8
7
|
constructor() {
|
|
9
|
-
/**
|
|
10
|
-
* Whether the tab is selected.
|
|
11
|
-
*/
|
|
12
8
|
this.selected = false;
|
|
13
|
-
/**
|
|
14
|
-
* Whether the tab is disabled.
|
|
15
|
-
*/
|
|
16
9
|
this.disabled = false;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
this.
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
this.size = NavigationTabsSize.BIG;
|
|
10
|
+
this.orientation = "horizontal" /* NavigationTabsOrientation.HORIZONTAL */;
|
|
11
|
+
this.size = "big" /* NavigationTabsSize.BIG */;
|
|
12
|
+
this.htmlTitle = undefined;
|
|
13
|
+
this.target = undefined;
|
|
14
|
+
this.href = undefined;
|
|
15
|
+
this.icon = undefined;
|
|
16
|
+
this.label = undefined;
|
|
25
17
|
}
|
|
26
18
|
/**
|
|
27
19
|
* Scroll into view to center the tab.
|
|
28
20
|
*/
|
|
29
21
|
scrollToTab({ target: button }) {
|
|
30
|
-
const scrollOptions = this.orientation === NavigationTabsOrientation.HORIZONTAL
|
|
22
|
+
const scrollOptions = this.orientation === "horizontal" /* NavigationTabsOrientation.HORIZONTAL */
|
|
31
23
|
? { block: "nearest", inline: "center" }
|
|
32
24
|
: { block: "center", inline: "nearest" };
|
|
33
25
|
button.scrollIntoView(Object.assign({ behavior: "smooth" }, scrollOptions));
|