@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,20 +1,19 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { ButtonVariant, ButtonType, ButtonSize } from "../../../beans";
|
|
3
2
|
/**
|
|
4
3
|
* @slot - button label
|
|
5
4
|
*/
|
|
6
5
|
export class ZButton {
|
|
7
6
|
constructor() {
|
|
8
|
-
/** defines a string value that labels an interactive element, used for accessibility. */
|
|
9
7
|
this.ariaLabel = "";
|
|
10
|
-
|
|
8
|
+
this.href = undefined;
|
|
9
|
+
this.target = undefined;
|
|
10
|
+
this.htmlid = undefined;
|
|
11
|
+
this.name = undefined;
|
|
11
12
|
this.disabled = false;
|
|
12
|
-
|
|
13
|
-
this.
|
|
14
|
-
|
|
15
|
-
this.
|
|
16
|
-
/** Available sizes: `big`, `small` and `x-small`. Defaults to `big`. */
|
|
17
|
-
this.size = ButtonSize.BIG;
|
|
13
|
+
this.type = "button" /* ButtonType.BUTTON */;
|
|
14
|
+
this.variant = "primary" /* ButtonVariant.PRIMARY */;
|
|
15
|
+
this.icon = undefined;
|
|
16
|
+
this.size = "big" /* ButtonSize.BIG */;
|
|
18
17
|
}
|
|
19
18
|
getAttributes() {
|
|
20
19
|
return {
|
|
@@ -2,13 +2,13 @@ import { h } from "@stencil/core";
|
|
|
2
2
|
import { tabletBreakpoint } from "../../../constants/breakpoints";
|
|
3
3
|
export class ZButtonSort {
|
|
4
4
|
constructor() {
|
|
5
|
-
|
|
5
|
+
this.buttonid = undefined;
|
|
6
|
+
this.label = undefined;
|
|
7
|
+
this.desclabel = undefined;
|
|
8
|
+
this.counter = undefined;
|
|
6
9
|
this.sortlabelasc = "A-Z";
|
|
7
|
-
/** sort label content (descending) (optional) */
|
|
8
10
|
this.sortlabeldesc = "Z-A";
|
|
9
|
-
/** selected flag (optional) */
|
|
10
11
|
this.isselected = false;
|
|
11
|
-
/** sortable flag (optional) */
|
|
12
12
|
this.sortasc = true;
|
|
13
13
|
this.allowTooltip = false;
|
|
14
14
|
}
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { Device, ZChipType } from "../../../beans";
|
|
3
2
|
import { getDevice, handleKeyboardSubmit } from "../../../utils/utils";
|
|
4
3
|
export class ZChip {
|
|
5
4
|
constructor() {
|
|
6
|
-
|
|
7
|
-
this.type = ZChipType.DEFAULT
|
|
8
|
-
|
|
5
|
+
this.icon = undefined;
|
|
6
|
+
this.type = "default" /* ZChipType.DEFAULT */;
|
|
7
|
+
this.interactiveIcon = undefined;
|
|
9
8
|
this.disabled = false;
|
|
10
9
|
}
|
|
11
10
|
emitinteractiveIconClick() {
|
|
12
11
|
this.interactiveIconClick.emit();
|
|
13
12
|
}
|
|
14
13
|
getIconSize() {
|
|
15
|
-
return getDevice() !== Device.DESKTOP ? 22 : 14;
|
|
14
|
+
return getDevice() !== "desktop" /* Device.DESKTOP */ ? 22 : 14;
|
|
16
15
|
}
|
|
17
16
|
render() {
|
|
18
17
|
if (this.interactiveIcon) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
export class ZToggleButton {
|
|
3
3
|
constructor() {
|
|
4
|
-
|
|
4
|
+
this.label = undefined;
|
|
5
5
|
this.isdisabled = false;
|
|
6
|
-
|
|
6
|
+
this.avoidclick = undefined;
|
|
7
7
|
this.opened = false;
|
|
8
8
|
}
|
|
9
9
|
emitToggleClick() {
|
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
import { randomId } from "../../../utils/utils";
|
|
3
|
-
import { LabelPosition } from "../../../beans";
|
|
4
3
|
export class ZToggleSwitch {
|
|
5
4
|
constructor() {
|
|
6
|
-
/** Disabled flag */
|
|
7
5
|
this.disabled = false;
|
|
8
|
-
|
|
9
|
-
this.labelPosition = LabelPosition.LEFT;
|
|
10
|
-
/** Checked state */
|
|
6
|
+
this.labelPosition = "left" /* LabelPosition.LEFT */;
|
|
11
7
|
this.checked = false;
|
|
12
|
-
/** HTML id attribute to set to the internal checkbox */
|
|
13
8
|
this.htmlid = `toggle-switch-id-${randomId()}`;
|
|
14
9
|
}
|
|
15
10
|
emitToggleClick() {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ZDatePickerMode, ZDatePickerModeValue, ZDatePickerPosition } from "../../beans";
|
|
2
1
|
export function validateDate(dateStr, hasTime = false) {
|
|
3
2
|
const regex = hasTime ? /^\d{1,2}[/-]\d{1,2}[/-]\d{2,4} - \d{2}:\d{2}$/ : /^\d{1,2}[/-]\d{1,2}[/-]\d{2,4}$/;
|
|
4
3
|
if (dateStr.match(regex) === null) {
|
|
@@ -9,18 +8,18 @@ export function validateDate(dateStr, hasTime = false) {
|
|
|
9
8
|
export function setFlatpickrPosition(element, mode) {
|
|
10
9
|
const toggleHeight = element.children[0].clientHeight;
|
|
11
10
|
element.style.setProperty("--z-range-picker--toggle-height", `${toggleHeight}px`);
|
|
12
|
-
const flatpickrHeight = mode === ZDatePickerMode.DATE_TIME
|
|
13
|
-
? ZDatePickerModeValue.DATE_TIME
|
|
14
|
-
: mode === ZDatePickerMode.MONTHS
|
|
15
|
-
? ZDatePickerModeValue.MONTHS
|
|
16
|
-
: ZDatePickerModeValue.DATE
|
|
11
|
+
const flatpickrHeight = mode === "date-time" /* ZDatePickerMode.DATE_TIME */
|
|
12
|
+
? 523 /* ZDatePickerModeValue.DATE_TIME */
|
|
13
|
+
: mode === "months" /* ZDatePickerMode.MONTHS */
|
|
14
|
+
? 288 /* ZDatePickerModeValue.MONTHS */
|
|
15
|
+
: 401 /* ZDatePickerModeValue.DATE */;
|
|
17
16
|
const bottom = element.getBoundingClientRect().bottom;
|
|
18
17
|
const overflowBottom = bottom + flatpickrHeight > window.innerHeight;
|
|
19
18
|
const overflowTop = bottom - flatpickrHeight - toggleHeight < 0;
|
|
20
19
|
if (!overflowTop && overflowBottom) {
|
|
21
|
-
return ZDatePickerPosition.TOP
|
|
20
|
+
return "top" /* ZDatePickerPosition.TOP */;
|
|
22
21
|
}
|
|
23
|
-
return ZDatePickerPosition.BOTTOM
|
|
22
|
+
return "bottom" /* ZDatePickerPosition.BOTTOM */;
|
|
24
23
|
}
|
|
25
24
|
export function setAriaOptions(element, mode) {
|
|
26
25
|
const calendar = element.getElementsByClassName("flatpickr-calendar");
|
|
@@ -40,13 +39,13 @@ export function setAriaOptions(element, mode) {
|
|
|
40
39
|
prevMonthArrow.setAttribute("role", "button");
|
|
41
40
|
nextMonthArrow.setAttribute("role", "button");
|
|
42
41
|
element.getElementsByClassName("cur-year")[0].setAttribute("aria-label", "Anno");
|
|
43
|
-
if (mode === ZDatePickerMode.DATE) {
|
|
42
|
+
if (mode === "date" /* ZDatePickerMode.DATE */) {
|
|
44
43
|
setDateAriaOptions(element, prevMonthArrow, nextMonthArrow);
|
|
45
44
|
}
|
|
46
|
-
if (mode === ZDatePickerMode.DATE_TIME) {
|
|
45
|
+
if (mode === "date-time" /* ZDatePickerMode.DATE_TIME */) {
|
|
47
46
|
setDateTimeAriaOptions(element, prevMonthArrow, nextMonthArrow);
|
|
48
47
|
}
|
|
49
|
-
if (mode === ZDatePickerMode.MONTHS) {
|
|
48
|
+
if (mode === "months" /* ZDatePickerMode.MONTHS */) {
|
|
50
49
|
setMonthsAriaOptions(element, prevMonthArrow, nextMonthArrow);
|
|
51
50
|
}
|
|
52
51
|
});
|
|
@@ -2,15 +2,14 @@ import { h } from "@stencil/core";
|
|
|
2
2
|
import flatpickr from "flatpickr";
|
|
3
3
|
import { Italian } from "flatpickr/dist/l10n/it.js";
|
|
4
4
|
import monthSelectPlugin from "flatpickr/dist/plugins/monthSelect";
|
|
5
|
-
import { InputType, ZDatePickerMode, ZDatePickerPosition } from "../../../beans";
|
|
6
5
|
import { setAriaOptions, setFlatpickrPosition, validateDate } from "../utils";
|
|
7
6
|
export class ZDatePicker {
|
|
8
7
|
constructor() {
|
|
9
|
-
|
|
8
|
+
this.datePickerId = undefined;
|
|
10
9
|
this.ariaLabel = "";
|
|
11
|
-
|
|
12
|
-
this.mode = ZDatePickerMode.DATE
|
|
13
|
-
this.flatpickrPosition = ZDatePickerPosition.BOTTOM
|
|
10
|
+
this.label = undefined;
|
|
11
|
+
this.mode = "date" /* ZDatePickerMode.DATE */;
|
|
12
|
+
this.flatpickrPosition = "bottom" /* ZDatePickerPosition.BOTTOM */;
|
|
14
13
|
this.inputError = false;
|
|
15
14
|
}
|
|
16
15
|
emitDateSelect(date) {
|
|
@@ -37,7 +36,7 @@ export class ZDatePicker {
|
|
|
37
36
|
const isNextArrowEntered = document.activeElement.classList.contains("flatpickr-next-month");
|
|
38
37
|
const arrowPressed = isPrevArrowEntered || isNextArrowEntered;
|
|
39
38
|
arrowPressed && ev.key === " " && ev.preventDefault();
|
|
40
|
-
if (this.mode === ZDatePickerMode.MONTHS) {
|
|
39
|
+
if (this.mode === "months" /* ZDatePickerMode.MONTHS */) {
|
|
41
40
|
isPrevArrowEntered && ((_d = this.picker) === null || _d === void 0 ? void 0 : _d.changeYear(this.picker.currentYear - 1));
|
|
42
41
|
isNextArrowEntered && ((_e = this.picker) === null || _e === void 0 ? void 0 : _e.changeYear(this.picker.currentYear + 1));
|
|
43
42
|
if (arrowPressed) {
|
|
@@ -82,11 +81,11 @@ export class ZDatePicker {
|
|
|
82
81
|
const classToAppend = this.hasChildren ? `${this.datePickerId}-hidden` : `${this.datePickerId}-container`;
|
|
83
82
|
this.picker = flatpickr(`.${classToAppend}`, {
|
|
84
83
|
appendTo: this.element.children[0],
|
|
85
|
-
enableTime: this.mode === ZDatePickerMode.DATE_TIME
|
|
84
|
+
enableTime: this.mode === "date-time" /* ZDatePickerMode.DATE_TIME */,
|
|
86
85
|
locale: Italian,
|
|
87
86
|
allowInput: true,
|
|
88
|
-
dateFormat: this.mode === ZDatePickerMode.DATE_TIME ? "d-m-Y - H:i" : "d-m-Y",
|
|
89
|
-
ariaDateFormat: this.mode === ZDatePickerMode.MONTHS ? "F Y" : "d F Y",
|
|
87
|
+
dateFormat: this.mode === "date-time" /* ZDatePickerMode.DATE_TIME */ ? "d-m-Y - H:i" : "d-m-Y",
|
|
88
|
+
ariaDateFormat: this.mode === "months" /* ZDatePickerMode.MONTHS */ ? "F Y" : "d F Y",
|
|
90
89
|
minuteIncrement: 1,
|
|
91
90
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
92
91
|
time_24hr: true,
|
|
@@ -101,7 +100,7 @@ export class ZDatePicker {
|
|
|
101
100
|
setAriaOptions(this.element, this.mode);
|
|
102
101
|
},
|
|
103
102
|
wrap: true,
|
|
104
|
-
plugins: this.mode === ZDatePickerMode.MONTHS && [
|
|
103
|
+
plugins: this.mode === "months" /* ZDatePickerMode.MONTHS */ && [
|
|
105
104
|
monthSelectPlugin({
|
|
106
105
|
dateFormat: "m-Y",
|
|
107
106
|
altFormat: "m-Y",
|
|
@@ -113,23 +112,23 @@ export class ZDatePicker {
|
|
|
113
112
|
});
|
|
114
113
|
}
|
|
115
114
|
formatDate(date) {
|
|
116
|
-
if (this.mode === ZDatePickerMode.DATE) {
|
|
115
|
+
if (this.mode === "date" /* ZDatePickerMode.DATE */) {
|
|
117
116
|
return `${flatpickr.formatDate(date, "d-m-Y")}`;
|
|
118
117
|
}
|
|
119
|
-
else if (this.mode === ZDatePickerMode.MONTHS) {
|
|
118
|
+
else if (this.mode === "months" /* ZDatePickerMode.MONTHS */) {
|
|
120
119
|
return `${flatpickr.formatDate(date, "m-Y")}`;
|
|
121
120
|
}
|
|
122
121
|
return `${flatpickr.formatDate(date, "d-m-Y - H:i")}`;
|
|
123
122
|
}
|
|
124
123
|
onStopTyping(value) {
|
|
125
124
|
let text = value.detail.value;
|
|
126
|
-
if (this.mode === ZDatePickerMode.MONTHS) {
|
|
125
|
+
if (this.mode === "months" /* ZDatePickerMode.MONTHS */) {
|
|
127
126
|
text = "01-".concat(value.detail.value);
|
|
128
127
|
}
|
|
129
128
|
const englishData = text.split("-");
|
|
130
|
-
const time = this.mode === ZDatePickerMode.DATE_TIME ? `T${englishData[3]}:00` : "";
|
|
129
|
+
const time = this.mode === "date-time" /* ZDatePickerMode.DATE_TIME */ ? `T${englishData[3]}:00` : "";
|
|
131
130
|
const englishParsedData = `${englishData[2]}-${englishData[1]}-${englishData[0]}${time}`.split(" ").join("");
|
|
132
|
-
const isValidDate = validateDate(englishParsedData, this.mode === ZDatePickerMode.DATE_TIME);
|
|
131
|
+
const isValidDate = validateDate(englishParsedData, this.mode === "date-time" /* ZDatePickerMode.DATE_TIME */);
|
|
133
132
|
if (text === "") {
|
|
134
133
|
this.inputError = false;
|
|
135
134
|
this.picker.setDate([]);
|
|
@@ -149,7 +148,7 @@ export class ZDatePicker {
|
|
|
149
148
|
return (h("div", { class: `${this.datePickerId}-hidden` }, h("input", { class: "hidden-input", "data-input": true }), h("slot", { name: "toggle" })));
|
|
150
149
|
}
|
|
151
150
|
renderZInput() {
|
|
152
|
-
return (h("div", { class: `${this.datePickerId}-container` }, h("z-input", { "data-input": "data-input", ariaLabel: this.ariaLabel, label: this.label, class: this.datePickerId, type: InputType.TEXT
|
|
151
|
+
return (h("div", { class: `${this.datePickerId}-container` }, h("z-input", { "data-input": "data-input", ariaLabel: this.ariaLabel, label: this.label, class: this.datePickerId, type: "text" /* InputType.TEXT */, icon: "event", message: false, tabindex: "0", value: "", onStopTyping: (value) => {
|
|
153
152
|
this.onStopTyping(value);
|
|
154
153
|
}, onStartTyping: () => {
|
|
155
154
|
this.inputError = false;
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import flatpickr from "flatpickr";
|
|
3
3
|
import { Italian } from "flatpickr/dist/l10n/it.js";
|
|
4
|
-
import { ZRangePickerMode, ZDatePickerPosition, InputType, InputStatus } from "../../../beans";
|
|
5
4
|
import { setAriaOptions, setFlatpickrPosition, validateDate } from "../utils";
|
|
6
5
|
export class ZRangePicker {
|
|
7
6
|
constructor() {
|
|
8
|
-
|
|
9
|
-
this.
|
|
10
|
-
this.
|
|
7
|
+
this.rangePickerId = undefined;
|
|
8
|
+
this.firstAriaLabel = undefined;
|
|
9
|
+
this.firstLabel = undefined;
|
|
10
|
+
this.secondAriaLabel = undefined;
|
|
11
|
+
this.secondLabel = undefined;
|
|
12
|
+
this.mode = "date" /* ZRangePickerMode.DATE */;
|
|
13
|
+
this.flatpickrPosition = "bottom" /* ZDatePickerPosition.BOTTOM */;
|
|
11
14
|
this.activeInput = "start-input";
|
|
12
15
|
this.firstInputError = false;
|
|
13
16
|
this.lastInputError = false;
|
|
@@ -54,11 +57,11 @@ export class ZRangePicker {
|
|
|
54
57
|
}
|
|
55
58
|
setupPickers() {
|
|
56
59
|
const config = {
|
|
57
|
-
enableTime: this.mode === ZRangePickerMode.DATE_TIME
|
|
60
|
+
enableTime: this.mode === "date-time" /* ZRangePickerMode.DATE_TIME */,
|
|
58
61
|
locale: Italian,
|
|
59
62
|
allowInput: true,
|
|
60
63
|
wrap: true,
|
|
61
|
-
dateFormat: this.mode === ZRangePickerMode.DATE_TIME ? "d-m-Y - H:i" : "d-m-Y",
|
|
64
|
+
dateFormat: this.mode === "date-time" /* ZRangePickerMode.DATE_TIME */ ? "d-m-Y - H:i" : "d-m-Y",
|
|
62
65
|
ariaDateFormat: "d F Y",
|
|
63
66
|
minuteIncrement: 1,
|
|
64
67
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
@@ -147,7 +150,7 @@ export class ZRangePicker {
|
|
|
147
150
|
setAriaOptions(this.element, this.mode);
|
|
148
151
|
}
|
|
149
152
|
formatDate(date) {
|
|
150
|
-
if (this.mode === ZRangePickerMode.DATE) {
|
|
153
|
+
if (this.mode === "date" /* ZRangePickerMode.DATE */) {
|
|
151
154
|
return `${flatpickr.formatDate(date, "d-m-Y")}`;
|
|
152
155
|
}
|
|
153
156
|
return `${flatpickr.formatDate(date, "d-m-Y - H:i")}`;
|
|
@@ -243,9 +246,9 @@ export class ZRangePicker {
|
|
|
243
246
|
onStopTyping(value) {
|
|
244
247
|
const text = value.detail.value.replace("/", "-");
|
|
245
248
|
const englishData = text.split("-");
|
|
246
|
-
const time = this.mode === ZRangePickerMode.DATE_TIME ? `T${englishData[3]}:00` : "";
|
|
249
|
+
const time = this.mode === "date-time" /* ZRangePickerMode.DATE_TIME */ ? `T${englishData[3]}:00` : "";
|
|
247
250
|
const englishParsedData = `${englishData[2]}-${englishData[1]}-${englishData[0]}${time}`.split(" ").join("");
|
|
248
|
-
const isValidDate = validateDate(text, this.mode === ZRangePickerMode.DATE_TIME);
|
|
251
|
+
const isValidDate = validateDate(text, this.mode === "date-time" /* ZRangePickerMode.DATE_TIME */);
|
|
249
252
|
const date = Date.parse(englishParsedData).toString();
|
|
250
253
|
if (this.activeInput === "start-input") {
|
|
251
254
|
if (text === "") {
|
|
@@ -307,7 +310,7 @@ export class ZRangePicker {
|
|
|
307
310
|
}
|
|
308
311
|
render() {
|
|
309
312
|
const zInputProps = {
|
|
310
|
-
type: InputType.TEXT
|
|
313
|
+
type: "text" /* InputType.TEXT */,
|
|
311
314
|
icon: "event",
|
|
312
315
|
tabindex: "0",
|
|
313
316
|
message: false,
|
|
@@ -319,9 +322,9 @@ export class ZRangePicker {
|
|
|
319
322
|
[this.mode]: true,
|
|
320
323
|
[this.activeInput]: true,
|
|
321
324
|
[this.flatpickrPosition]: true,
|
|
322
|
-
} }, h("div", { class: `${this.rangePickerId}-1-wrapper` }, h("div", { class: `${this.rangePickerId}-1-container` }, h("z-input", Object.assign({}, zInputProps, { "data-input": "data-input", class: `start-input ${this.rangePickerId}-1`, ariaLabel: this.firstAriaLabel, label: this.firstLabel, status: this.firstInputError && InputStatus.ERROR
|
|
325
|
+
} }, h("div", { class: `${this.rangePickerId}-1-wrapper` }, h("div", { class: `${this.rangePickerId}-1-container` }, h("z-input", Object.assign({}, zInputProps, { "data-input": "data-input", class: `start-input ${this.rangePickerId}-1`, ariaLabel: this.firstAriaLabel, label: this.firstLabel, status: this.firstInputError && "error" /* InputStatus.ERROR */, onStartTyping: () => {
|
|
323
326
|
this.firstInputError = false;
|
|
324
|
-
} })))), h("div", { class: `${this.rangePickerId}-2-wrapper` }, h("div", { class: `${this.rangePickerId}-2-container` }, h("z-input", Object.assign({}, zInputProps, { "data-input": "data-input", class: `end-input ${this.rangePickerId}-2`, ariaLabel: this.secondAriaLabel, label: this.secondLabel, status: this.lastInputError && InputStatus.ERROR
|
|
327
|
+
} })))), h("div", { class: `${this.rangePickerId}-2-wrapper` }, h("div", { class: `${this.rangePickerId}-2-container` }, h("z-input", Object.assign({}, zInputProps, { "data-input": "data-input", class: `end-input ${this.rangePickerId}-2`, ariaLabel: this.secondAriaLabel, label: this.secondLabel, status: this.lastInputError && "error" /* InputStatus.ERROR */, onStartTyping: () => {
|
|
325
328
|
this.lastInputError = false;
|
|
326
329
|
} }))))));
|
|
327
330
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
-
import { PopoverPositions, ZChipType } from "../../../beans";
|
|
3
2
|
import { tabletBreakpoint } from "../../../constants/breakpoints";
|
|
4
3
|
export class ZFile {
|
|
5
4
|
constructor() {
|
|
5
|
+
this.fileNumber = undefined;
|
|
6
|
+
this.fileName = undefined;
|
|
6
7
|
this.allowPopover = false;
|
|
7
8
|
this.popoverVisible = false;
|
|
8
9
|
}
|
|
@@ -30,7 +31,7 @@ export class ZFile {
|
|
|
30
31
|
return this.ellipsis.offsetWidth < this.ellipsis.scrollWidth;
|
|
31
32
|
}
|
|
32
33
|
render() {
|
|
33
|
-
return (h(Host, null, this.allowPopover && (h("z-popover", { open: this.popoverVisible, position: PopoverPositions.AUTO
|
|
34
|
+
return (h(Host, null, this.allowPopover && (h("z-popover", { open: this.popoverVisible, position: "auto" /* PopoverPositions.AUTO */, bindTo: this.chip }, h("span", { class: "body-5 tooltip-content" }, this.ellipsis.innerText))), h("z-chip", { ref: (el) => (this.chip = el), id: `chip-${this.fileNumber}`, interactiveIcon: "multiply-circled", type: "default" /* ZChipType.DEFAULT */ }, h("span", { ref: (el) => (this.ellipsis = el), tabIndex: -1 }, this.fileName))));
|
|
34
35
|
}
|
|
35
36
|
static get is() { return "z-file"; }
|
|
36
37
|
static get encapsulation() { return "scoped"; }
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
-
import { Device, DividerSize, ZFileUploadType } from "../../../beans";
|
|
3
2
|
import { getDevice } from "../../../utils/utils";
|
|
4
3
|
export class ZFileUpload {
|
|
5
4
|
constructor() {
|
|
6
|
-
/** Prop indicating the file upload type - can be default or dragdrop */
|
|
7
|
-
this.type = ZFileUploadType.DEFAULT;
|
|
8
|
-
/** Files added by the user */
|
|
9
|
-
this.files = [];
|
|
10
5
|
this.inputAttributes = {
|
|
11
6
|
type: "file",
|
|
12
7
|
id: "file-elem",
|
|
13
8
|
multiple: true,
|
|
14
9
|
};
|
|
10
|
+
this.type = "default" /* ZFileUploadType.DEFAULT */;
|
|
11
|
+
this.buttonVariant = undefined;
|
|
12
|
+
this.acceptedFormat = undefined;
|
|
13
|
+
this.fileMaxSize = undefined;
|
|
14
|
+
this.mainTitle = undefined;
|
|
15
|
+
this.description = undefined;
|
|
16
|
+
this.files = [];
|
|
17
|
+
this.invalidFiles = undefined;
|
|
15
18
|
}
|
|
16
19
|
/** Listen removeFile event sent from z-file component */
|
|
17
20
|
removeFileListener(e) {
|
|
@@ -38,8 +41,8 @@ export class ZFileUpload {
|
|
|
38
41
|
this.invalidFiles = new Map();
|
|
39
42
|
}
|
|
40
43
|
componentWillRender() {
|
|
41
|
-
if (this.type === ZFileUploadType.DRAGDROP && getDevice() !== Device.DESKTOP) {
|
|
42
|
-
this.type = ZFileUploadType.DEFAULT
|
|
44
|
+
if (this.type === "dragdrop" /* ZFileUploadType.DRAGDROP */ && getDevice() !== "desktop" /* Device.DESKTOP */) {
|
|
45
|
+
this.type = "default" /* ZFileUploadType.DEFAULT */;
|
|
43
46
|
}
|
|
44
47
|
}
|
|
45
48
|
fileInputHandler() {
|
|
@@ -57,7 +60,7 @@ export class ZFileUpload {
|
|
|
57
60
|
lastFile.focus();
|
|
58
61
|
}
|
|
59
62
|
else {
|
|
60
|
-
this.type === ZFileUploadType.DEFAULT ? this.button.querySelector("button").focus() : this.uploadLink.focus();
|
|
63
|
+
this.type === "default" /* ZFileUploadType.DEFAULT */ ? this.button.querySelector("button").focus() : this.uploadLink.focus();
|
|
61
64
|
}
|
|
62
65
|
}
|
|
63
66
|
checkFiles(files) {
|
|
@@ -111,7 +114,7 @@ export class ZFileUpload {
|
|
|
111
114
|
return h("z-body", { level: 3 }, fileFormatString || fileWeightString ? finalString : null);
|
|
112
115
|
}
|
|
113
116
|
renderFileSection() {
|
|
114
|
-
return (h("section", { class: `files-container ${!this.files.length ? "hidden" : ""}` }, h("z-heading", { variant: "semibold", level: 4 }, "File appena caricati"), h("div", { class: "files-wrapper" }, h("slot", { name: "files" })), h("z-divider", { size: DividerSize.MEDIUM })));
|
|
117
|
+
return (h("section", { class: `files-container ${!this.files.length ? "hidden" : ""}` }, h("z-heading", { variant: "semibold", level: 4 }, "File appena caricati"), h("div", { class: "files-wrapper" }, h("slot", { name: "files" })), h("z-divider", { size: "medium" /* DividerSize.MEDIUM */ })));
|
|
115
118
|
}
|
|
116
119
|
renderInput() {
|
|
117
120
|
return (h("input", Object.assign({}, this.inputAttributes, { onChange: () => this.fileInputHandler(), accept: this.acceptedFormat, ref: (val) => (this.input = val) })));
|
|
@@ -163,7 +166,7 @@ export class ZFileUpload {
|
|
|
163
166
|
})))));
|
|
164
167
|
}
|
|
165
168
|
render() {
|
|
166
|
-
return (h(Host, null, h("div", { tabIndex: 0, class: `container ${this.type}` }, this.renderTitle(), this.type == ZFileUploadType.DEFAULT ? this.renderDefaultMode() : this.renderDragDropMode()), !!this.invalidFiles.size && (h("z-modal", { tabIndex: 0, ref: (val) => (this.errorModal = val), modaltitle: "Attenzione", onModalClose: () => (this.invalidFiles = new Map()), onModalBackgroundClick: () => (this.invalidFiles = new Map()) }, this.handleErrorModalContent()))));
|
|
169
|
+
return (h(Host, null, h("div", { tabIndex: 0, class: `container ${this.type}` }, this.renderTitle(), this.type == "default" /* ZFileUploadType.DEFAULT */ ? this.renderDefaultMode() : this.renderDragDropMode()), !!this.invalidFiles.size && (h("z-modal", { tabIndex: 0, ref: (val) => (this.errorModal = val), modaltitle: "Attenzione", onModalClose: () => (this.invalidFiles = new Map()), onModalBackgroundClick: () => (this.invalidFiles = new Map()) }, this.handleErrorModalContent()))));
|
|
167
170
|
}
|
|
168
171
|
static get is() { return "z-file-upload"; }
|
|
169
172
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { ButtonSize } from "../../../beans";
|
|
3
2
|
/**
|
|
4
3
|
* @slot - main navigation
|
|
5
4
|
* @slot links - bottom navigation
|
|
@@ -8,6 +7,12 @@ import { ButtonSize } from "../../../beans";
|
|
|
8
7
|
export class ZFooter {
|
|
9
8
|
constructor() {
|
|
10
9
|
this.creditsLinkId = "creditsLinkId";
|
|
10
|
+
this.data = undefined;
|
|
11
|
+
this.productName = undefined;
|
|
12
|
+
this.productVersion = undefined;
|
|
13
|
+
this.productCreditsLink = undefined;
|
|
14
|
+
this.showReportAProblemButton = undefined;
|
|
15
|
+
this.contentMaxWidth = undefined;
|
|
11
16
|
this.emitReportAProblemButtonClick = this.emitReportAProblemButtonClick.bind(this);
|
|
12
17
|
}
|
|
13
18
|
componentWillLoad() {
|
|
@@ -56,7 +61,7 @@ export class ZFooter {
|
|
|
56
61
|
if (this.productName || this.productVersion || this.productCreditsLink != null || this.showReportAProblemButton) {
|
|
57
62
|
const versionString = `${this.productName ? " versione" : "Versione"} ${this.productVersion}`;
|
|
58
63
|
const creditsObject = (h("z-body", { level: 5 }, (this.productName || this.productVersion) && " - ", h("z-link", { htmlid: this.creditsLinkId, href: (_a = this.productCreditsLink) === null || _a === void 0 ? void 0 : _a.trim(), target: "_blank", textcolor: "white" }, "Credits")));
|
|
59
|
-
return (h("div", { id: "extension" }, h("div", { class: { "limited-width": !!this.contentMaxWidth }, style: this.contentMaxWidth ? { "--mw": `${this.contentMaxWidth}px` } : {} }, h("span", null, this.productName && (h("z-body", { level: 5, variant: "semibold" }, this.productName)), this.productVersion && h("z-body", { level: 5 }, versionString), this.productCreditsLink != null && creditsObject), this.showReportAProblemButton && (h("div", null, h("z-body", { level: 5 }, "Hai bisogno di aiuto?"), h("z-button", { size: ButtonSize.SMALL
|
|
64
|
+
return (h("div", { id: "extension" }, h("div", { class: { "limited-width": !!this.contentMaxWidth }, style: this.contentMaxWidth ? { "--mw": `${this.contentMaxWidth}px` } : {} }, h("span", null, this.productName && (h("z-body", { level: 5, variant: "semibold" }, this.productName)), this.productVersion && h("z-body", { level: 5 }, versionString), this.productCreditsLink != null && creditsObject), this.showReportAProblemButton && (h("div", null, h("z-body", { level: 5 }, "Hai bisogno di aiuto?"), h("z-button", { size: "small" /* ButtonSize.SMALL */, onClick: this.emitReportAProblemButtonClick }, "SEGNALA UN PROBLEMA"))), h("z-divider", { color: "gray500" }))));
|
|
60
65
|
}
|
|
61
66
|
}
|
|
62
67
|
// INFO: backward compatibility
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
export class ZFooterSocial {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.icon = undefined;
|
|
5
|
+
this.href = undefined;
|
|
6
|
+
this.description = undefined;
|
|
7
|
+
}
|
|
3
8
|
render() {
|
|
4
9
|
return (h("a", { href: this.href, target: "_blank" }, h("img", { src: this.icon, alt: this.description })));
|
|
5
10
|
}
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { ICONS } from "../icons";
|
|
3
3
|
export class ZIcon {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.name = undefined;
|
|
6
|
+
this.height = undefined;
|
|
7
|
+
this.width = undefined;
|
|
8
|
+
this.iconid = undefined;
|
|
9
|
+
this.fill = undefined;
|
|
10
|
+
}
|
|
4
11
|
selectPathOrPolygon(iconValue) {
|
|
5
12
|
if (iconValue === null || iconValue === void 0 ? void 0 : iconValue.startsWith("M")) {
|
|
6
13
|
return h("path", { d: ICONS[this.name] });
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
export class ZStepperItem {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.index = undefined;
|
|
5
|
+
this.href = undefined;
|
|
6
|
+
this.pressed = undefined;
|
|
7
|
+
this.disabled = undefined;
|
|
8
|
+
}
|
|
3
9
|
render() {
|
|
4
10
|
if (this.href) {
|
|
5
11
|
return (h("a", { href: !this.disabled && this.href, class: "stepper-item" }, h("div", { class: "indicator" }, this.index), h("span", null, h("slot", null))));
|
|
@@ -1,29 +1,27 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { InputType, KeyboardKeyCode } from "../../../beans";
|
|
3
2
|
import { handleKeyboardSubmit } from "../../../utils/utils";
|
|
4
3
|
export class ZCombobox {
|
|
5
4
|
constructor() {
|
|
6
|
-
|
|
5
|
+
this.itemsList = [];
|
|
6
|
+
this.inputType = "text" /* InputType.TEXT */;
|
|
7
|
+
this.inputid = undefined;
|
|
8
|
+
this.items = undefined;
|
|
9
|
+
this.label = undefined;
|
|
7
10
|
this.hassearch = false;
|
|
8
|
-
|
|
11
|
+
this.searchlabel = undefined;
|
|
12
|
+
this.searchplaceholder = undefined;
|
|
13
|
+
this.searchtitle = undefined;
|
|
9
14
|
this.noresultslabel = "Nessun risultato";
|
|
10
|
-
/** toggle combo list opening flag */
|
|
11
15
|
this.isopen = false;
|
|
12
|
-
/** fixed style flag */
|
|
13
16
|
this.isfixed = false;
|
|
14
|
-
/** close combobox list text */
|
|
15
17
|
this.closesearchtext = "Chiudi";
|
|
16
|
-
/** show "check all" checkbox (optional) */
|
|
17
18
|
this.hascheckall = false;
|
|
18
|
-
/** check all label (optional) */
|
|
19
19
|
this.checkalltext = "Seleziona tutti";
|
|
20
|
-
/** uncheck all label (optional) */
|
|
21
20
|
this.uncheckalltext = "Deseleziona tutti";
|
|
22
|
-
/** max number of checkable items (0 = unlimited) */
|
|
23
21
|
this.maxcheckableitems = 0;
|
|
24
|
-
this.
|
|
25
|
-
this.
|
|
26
|
-
this.
|
|
22
|
+
this.searchValue = undefined;
|
|
23
|
+
this.selectedCounter = undefined;
|
|
24
|
+
this.renderItemsList = [];
|
|
27
25
|
this.toggleComboBox = this.toggleComboBox.bind(this);
|
|
28
26
|
this.closeFilterItems = this.closeFilterItems.bind(this);
|
|
29
27
|
}
|
|
@@ -100,7 +98,7 @@ export class ZCombobox {
|
|
|
100
98
|
}
|
|
101
99
|
renderHeader() {
|
|
102
100
|
return (h("div", { class: "header", onClick: () => this.toggleComboBox(), onKeyDown: (ev) => {
|
|
103
|
-
if (ev.keyCode === KeyboardKeyCode.SPACE) {
|
|
101
|
+
if (ev.keyCode === 32 /* KeyboardKeyCode.SPACE */) {
|
|
104
102
|
ev.preventDefault();
|
|
105
103
|
}
|
|
106
104
|
}, onKeyUp: (ev) => handleKeyboardSubmit(ev, this.toggleComboBox), role: "button", tabindex: 0 }, h("z-body", { level: 3, component: "p" }, this.label, h("span", null, this.selectedCounter > 0 && ` (${this.selectedCounter})`)), h("z-icon", { name: "caret-down", width: 18, height: 18 })));
|
|
@@ -125,7 +123,7 @@ export class ZCombobox {
|
|
|
125
123
|
return this.renderNoSearchResults();
|
|
126
124
|
}
|
|
127
125
|
return (h("ul", null, items.map((item, i) => {
|
|
128
|
-
return (h("z-myz-list-item", { id: item.id, listitemid: item.id, action: `combo-li-${this.inputid}`, underlined: i !== items.length - 1 }, h("z-input", { type: InputType.CHECKBOX
|
|
126
|
+
return (h("z-myz-list-item", { id: item.id, listitemid: item.id, action: `combo-li-${this.inputid}`, underlined: i !== items.length - 1 }, h("z-input", { type: "checkbox" /* InputType.CHECKBOX */, checked: item.checked, htmlid: `combo-checkbox-${this.inputid}-${item.id}`, label: item.name, disabled: !item.checked && this.maxcheckableitems && this.maxcheckableitems === this.selectedCounter })));
|
|
129
127
|
})));
|
|
130
128
|
}
|
|
131
129
|
renderNoSearchResults() {
|
|
@@ -150,7 +148,7 @@ export class ZCombobox {
|
|
|
150
148
|
return;
|
|
151
149
|
}
|
|
152
150
|
const allChecked = this.selectedCounter === this.itemsList.length;
|
|
153
|
-
return (h("div", { class: "check-all-wrapper" }, h("z-input", { type: InputType.CHECKBOX
|
|
151
|
+
return (h("div", { class: "check-all-wrapper" }, h("z-input", { type: "checkbox" /* InputType.CHECKBOX */, checked: allChecked, htmlid: `combo-checkbox-${this.inputid}-check-all`, label: allChecked ? this.uncheckalltext : this.checkalltext, disabled: this.maxcheckableitems && this.maxcheckableitems < this.itemsList.length })));
|
|
154
152
|
}
|
|
155
153
|
render() {
|
|
156
154
|
return (h("div", { "data-action": `combo-${this.inputid}`, class: { open: this.isopen, fixed: this.isfixed }, id: this.inputid }, this.renderHeader(), this.renderContent()));
|