@zanichelli/albe-web-components 6.1.0-a1 → 6.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index-199cd650.js +346 -0
- package/dist/cjs/index.cjs.js +302 -346
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{utils-7c92be74.js → utils-ce225fb3.js} +5 -4
- package/dist/cjs/{utils-f681590c.js → utils-ebe45309.js} +11 -10
- package/dist/cjs/web-components-library.cjs.js +2 -2
- package/dist/cjs/z-alert.cjs.entry.js +0 -1
- package/dist/cjs/z-app-header.cjs.entry.js +29 -7
- package/dist/cjs/z-app-switcher_9.cjs.entry.js +70 -84
- package/dist/cjs/z-aria-alert.cjs.entry.js +3 -1
- package/dist/cjs/z-avatar.cjs.entry.js +8 -6
- package/dist/cjs/z-body_2.cjs.entry.js +2 -4
- package/dist/cjs/z-button-deprecated.cjs.entry.js +12 -6
- package/dist/cjs/z-button-filter.cjs.entry.js +3 -2
- package/dist/cjs/z-button-sort.cjs.entry.js +4 -4
- package/dist/cjs/z-button.cjs.entry.js +9 -8
- package/dist/cjs/z-card.cjs.entry.js +6 -6
- package/dist/cjs/z-carousel.cjs.entry.js +10 -11
- package/dist/cjs/z-chip-deprecated.cjs.entry.js +0 -2
- package/dist/cjs/z-chip.cjs.entry.js +6 -5
- package/dist/cjs/z-combobox.cjs.entry.js +17 -15
- package/dist/cjs/z-contextual-menu.cjs.entry.js +8 -2
- package/dist/cjs/z-cookiebar.cjs.entry.js +2 -4
- package/dist/cjs/z-cover-hero.cjs.entry.js +14 -6
- package/dist/cjs/z-date-picker.cjs.entry.js +17 -16
- package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +1 -2
- package/dist/cjs/z-file-upload.cjs.entry.js +16 -17
- package/dist/cjs/z-file.cjs.entry.js +2 -3
- package/dist/cjs/z-footer-link_3.cjs.entry.js +0 -5
- package/dist/cjs/z-footer.cjs.entry.js +2 -7
- package/dist/cjs/z-info-box.cjs.entry.js +1 -1
- package/dist/cjs/z-info-reveal.cjs.entry.js +6 -2
- package/dist/cjs/z-input-deprecated.cjs.entry.js +29 -28
- package/dist/cjs/z-input-label_2.cjs.entry.js +17 -17
- package/dist/cjs/z-list-group.cjs.entry.js +17 -4
- package/dist/cjs/z-list_2.cjs.entry.js +55 -19
- package/dist/cjs/z-menu-dropdown_2.cjs.entry.js +3 -7
- package/dist/cjs/z-menu-section.cjs.entry.js +0 -3
- package/dist/cjs/z-menu.cjs.entry.js +10 -3
- package/dist/cjs/z-messages-pocket.cjs.entry.js +6 -6
- package/dist/cjs/z-modal-login.cjs.entry.js +5 -7
- package/dist/cjs/z-modal.cjs.entry.js +1 -3
- package/dist/cjs/z-myz-card-alert.cjs.entry.js +3 -6
- package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +6 -3
- package/dist/cjs/z-myz-card-footer.cjs.entry.js +6 -8
- package/dist/cjs/z-myz-card-icon.cjs.entry.js +2 -1
- package/dist/cjs/z-myz-card-info.cjs.entry.js +4 -3
- package/dist/cjs/z-myz-card-list.cjs.entry.js +0 -1
- package/dist/cjs/z-myz-card_4.cjs.entry.js +9 -15
- package/dist/cjs/z-myz-list-item.cjs.entry.js +4 -6
- package/dist/cjs/z-myz-topbar.cjs.entry.js +4 -14
- package/dist/cjs/z-navigation-tab-link.cjs.entry.js +16 -8
- package/dist/cjs/z-navigation-tab.cjs.entry.js +17 -7
- package/dist/cjs/z-navigation-tabs.cjs.entry.js +14 -10
- package/dist/cjs/z-notification.cjs.entry.js +6 -3
- package/dist/cjs/z-offcanvas.cjs.entry.js +12 -4
- package/dist/cjs/z-otp.cjs.entry.js +3 -3
- package/dist/cjs/z-pagination-bar.cjs.entry.js +6 -5
- package/dist/cjs/z-pagination-page.cjs.entry.js +4 -2
- package/dist/cjs/z-pagination.cjs.entry.js +15 -7
- package/dist/cjs/z-panel-elem.cjs.entry.js +2 -7
- package/dist/cjs/z-pocket_3.cjs.entry.js +15 -15
- package/dist/cjs/z-popover-deprecated.cjs.entry.js +15 -8
- package/dist/cjs/z-popover.cjs.entry.js +36 -31
- package/dist/cjs/z-section-title.cjs.entry.js +10 -2
- package/dist/cjs/z-skip-to-content.cjs.entry.js +4 -3
- package/dist/cjs/z-slideshow.cjs.entry.js +4 -6
- package/dist/cjs/z-status-tag.cjs.entry.js +3 -5
- package/dist/cjs/z-stepper-item.cjs.entry.js +0 -4
- package/dist/cjs/z-table-cell.cjs.entry.js +4 -3
- package/dist/cjs/z-table-empty-box.cjs.entry.js +2 -0
- package/dist/cjs/z-table-expanded-row.cjs.entry.js +0 -1
- package/dist/cjs/z-table-header-row.cjs.entry.js +0 -1
- package/dist/cjs/z-table-header.cjs.entry.js +16 -15
- package/dist/cjs/z-table-row.cjs.entry.js +6 -4
- package/dist/cjs/z-table.cjs.entry.js +12 -9
- package/dist/cjs/z-tag.cjs.entry.js +0 -2
- package/dist/cjs/z-toast-notification-list.cjs.entry.js +4 -1
- package/dist/cjs/z-toast-notification.cjs.entry.js +14 -17
- package/dist/cjs/z-toggle-button.cjs.entry.js +2 -2
- package/dist/cjs/z-toggle-switch.cjs.entry.js +7 -2
- package/dist/cjs/z-tooltip-deprecated.cjs.entry.js +27 -32
- package/dist/cjs/z-tooltip.cjs.entry.js +7 -2
- package/dist/cjs/z-user-dropdown.cjs.entry.js +1 -5
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/buttons/z-button/index.js +9 -8
- package/dist/collection/components/buttons/z-button-sort/index.js +4 -4
- package/dist/collection/components/buttons/z-chip/index.js +5 -4
- package/dist/collection/components/buttons/z-toggle-button/index.js +2 -2
- package/dist/collection/components/buttons/z-toggle-switch/index.js +6 -1
- package/dist/collection/components/date-picker/utils.js +11 -10
- package/dist/collection/components/date-picker/z-date-picker/index.js +16 -15
- package/dist/collection/components/date-picker/z-range-picker/index.js +12 -15
- package/dist/collection/components/file-upload/z-file/index.js +2 -3
- package/dist/collection/components/file-upload/z-file-upload/index.js +16 -17
- package/dist/collection/components/footer/z-footer/index.js +2 -7
- package/dist/collection/components/footer/z-footer-link/index.js +0 -3
- package/dist/collection/components/footer/z-footer-section/index.js +0 -1
- package/dist/collection/components/footer/z-footer-social/index.js +0 -5
- package/dist/collection/components/icons/z-icon/index.js +0 -7
- package/dist/collection/components/index.js +8 -0
- package/dist/collection/components/indicators/z-stepper-item/index.js +0 -6
- package/dist/collection/components/inputs/z-combobox/index.js +16 -14
- package/dist/collection/components/inputs/z-input/index.js +37 -40
- package/dist/collection/components/inputs/z-input-message/index.js +0 -2
- package/dist/collection/components/inputs/z-select/index.js +15 -14
- package/dist/collection/components/list/z-list/index.js +5 -1
- package/dist/collection/components/list/z-list-element/index.js +51 -18
- package/dist/collection/components/list/z-list-group/index.js +17 -4
- package/dist/collection/components/list/z-toast-notification-list/index.js +4 -1
- package/dist/collection/components/logo/z-logo/index.js +0 -8
- package/dist/collection/components/modal/z-modal/index.js +1 -3
- package/dist/collection/components/modal/z-modal-login/index.js +5 -7
- package/dist/collection/components/navigation/tabs/z-navigation-tab/index.js +17 -7
- package/dist/collection/components/navigation/tabs/z-navigation-tab-link/index.js +16 -8
- package/dist/collection/components/navigation/tabs/z-navigation-tabs/index.js +14 -10
- package/dist/collection/components/navigation/z-app-header/index.js +29 -7
- package/dist/collection/components/navigation/z-app-switcher/index.js +3 -1
- package/dist/collection/components/navigation/z-app-topbar/index.js +5 -8
- package/dist/collection/components/navigation/z-link/index.js +9 -3
- package/dist/collection/components/navigation/z-menu/index.js +10 -3
- package/dist/collection/components/navigation/z-menu-dropdown/index.js +2 -4
- package/dist/collection/components/navigation/z-menu-section/index.js +0 -5
- package/dist/collection/components/navigation/z-user-dropdown/index.js +1 -5
- package/dist/collection/components/notification/z-cookiebar/index.js +2 -6
- package/dist/collection/components/notification/z-info-box/index.js +1 -1
- package/dist/collection/components/notification/z-notification/index.js +6 -3
- package/dist/collection/components/notification/z-toast-notification/index.js +14 -17
- package/dist/collection/components/notification/z-tooltip/index.js +7 -2
- package/dist/collection/components/panel/z-panel-elem/index.js +2 -7
- package/dist/collection/components/typography/z-body/index.js +1 -2
- package/dist/collection/components/typography/z-heading/index.js +1 -2
- package/dist/collection/components/typography/z-typography/index.js +1 -2
- package/dist/collection/components/z-aria-alert/index.js +3 -1
- package/dist/collection/components/z-avatar/index.js +8 -6
- package/dist/collection/components/z-card/index.js +6 -6
- package/dist/collection/components/z-carousel/index.js +10 -11
- package/dist/collection/components/z-contextual-menu/index.js +8 -2
- package/dist/collection/components/z-cover-hero/index.js +14 -6
- package/dist/collection/components/z-divider/index.js +6 -2
- package/dist/collection/components/z-info-reveal/index.js +6 -2
- package/dist/collection/components/z-offcanvas/index.js +12 -4
- package/dist/collection/components/z-pagination/index.js +15 -7
- package/dist/collection/components/z-popover/index.js +35 -30
- package/dist/collection/components/z-section-title/index.js +10 -2
- package/dist/collection/components/z-skip-to-content/index.js +3 -2
- package/dist/collection/components/z-table/z-table/index.js +12 -9
- package/dist/collection/components/z-table/z-table-cell/index.js +4 -3
- package/dist/collection/components/z-table/z-table-empty-box/index.js +2 -0
- package/dist/collection/components/z-table/z-table-expanded-row/index.js +0 -3
- package/dist/collection/components/z-table/z-table-header/index.js +15 -14
- package/dist/collection/components/z-table/z-table-header-row/index.js +0 -3
- package/dist/collection/components/z-table/z-table-row/index.js +6 -4
- package/dist/collection/components/z-tag/index.js +0 -4
- package/dist/collection/deprecated/pagination/z-pagination-bar/index.js +4 -4
- package/dist/collection/deprecated/pagination/z-pagination-page/index.js +4 -2
- package/dist/collection/deprecated/z-button-deprecated/index.js +12 -6
- package/dist/collection/deprecated/z-button-filter/index.js +3 -2
- package/dist/collection/deprecated/z-chip-deprecated/index.js +0 -4
- package/dist/collection/deprecated/z-input-deprecated/index.js +28 -27
- package/dist/collection/deprecated/z-input-label/index.js +1 -2
- package/dist/collection/deprecated/z-popover-deprecated/index.js +14 -7
- package/dist/collection/deprecated/z-status-tag/index.js +3 -5
- package/dist/collection/deprecated/z-tooltip-deprecated/index.js +27 -32
- package/dist/collection/snowflakes/myz/card/z-myz-card/index.js +6 -5
- package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js +3 -8
- package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js +0 -6
- package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js +6 -3
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js +6 -8
- package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js +4 -6
- package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js +2 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +3 -2
- package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js +0 -1
- package/dist/collection/snowflakes/myz/list/z-myz-list/index.js +0 -4
- package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js +2 -5
- package/dist/collection/snowflakes/myz/pocket/z-messages-pocket/index.js +6 -6
- package/dist/collection/snowflakes/myz/pocket/z-pocket/index.js +12 -11
- package/dist/collection/snowflakes/myz/pocket/z-pocket-body/index.js +3 -2
- package/dist/collection/snowflakes/myz/pocket/z-pocket-header/index.js +0 -1
- package/dist/collection/snowflakes/myz/topbar/index.js +4 -14
- package/dist/collection/snowflakes/myz/z-alert/index.js +0 -3
- package/dist/collection/snowflakes/myz/z-otp/index.js +3 -3
- package/dist/collection/snowflakes/myz/z-slideshow/index.js +3 -5
- package/dist/collection/utils/utils.js +5 -4
- package/dist/esm/index-9d028352.js +346 -0
- package/dist/esm/index.js +3 -347
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{utils-420e8552.js → utils-39ca028c.js} +5 -4
- package/dist/esm/{utils-ff91a03a.js → utils-fbe04cd6.js} +11 -10
- package/dist/esm/web-components-library.js +2 -2
- package/dist/esm/z-alert.entry.js +0 -1
- package/dist/esm/z-app-header.entry.js +29 -7
- package/dist/esm/z-app-switcher_9.entry.js +70 -84
- package/dist/esm/z-aria-alert.entry.js +3 -1
- package/dist/esm/z-avatar.entry.js +8 -6
- package/dist/esm/z-body_2.entry.js +2 -4
- package/dist/esm/z-button-deprecated.entry.js +12 -6
- package/dist/esm/z-button-filter.entry.js +3 -2
- package/dist/esm/z-button-sort.entry.js +4 -4
- package/dist/esm/z-button.entry.js +9 -8
- package/dist/esm/z-card.entry.js +6 -6
- package/dist/esm/z-carousel.entry.js +10 -11
- package/dist/esm/z-chip-deprecated.entry.js +0 -2
- package/dist/esm/z-chip.entry.js +6 -5
- package/dist/esm/z-combobox.entry.js +17 -15
- package/dist/esm/z-contextual-menu.entry.js +8 -2
- package/dist/esm/z-cookiebar.entry.js +2 -4
- package/dist/esm/z-cover-hero.entry.js +14 -6
- package/dist/esm/z-date-picker.entry.js +17 -16
- package/dist/esm/z-dragdrop-area_2.entry.js +1 -2
- package/dist/esm/z-file-upload.entry.js +16 -17
- package/dist/esm/z-file.entry.js +2 -3
- package/dist/esm/z-footer-link_3.entry.js +0 -5
- package/dist/esm/z-footer.entry.js +2 -7
- package/dist/esm/z-info-box.entry.js +1 -1
- package/dist/esm/z-info-reveal.entry.js +6 -2
- package/dist/esm/z-input-deprecated.entry.js +29 -28
- package/dist/esm/z-input-label_2.entry.js +17 -17
- package/dist/esm/z-list-group.entry.js +17 -4
- package/dist/esm/z-list_2.entry.js +55 -19
- package/dist/esm/z-menu-dropdown_2.entry.js +3 -7
- package/dist/esm/z-menu-section.entry.js +0 -3
- package/dist/esm/z-menu.entry.js +10 -3
- package/dist/esm/z-messages-pocket.entry.js +6 -6
- package/dist/esm/z-modal-login.entry.js +5 -7
- package/dist/esm/z-modal.entry.js +1 -3
- package/dist/esm/z-myz-card-alert.entry.js +3 -6
- package/dist/esm/z-myz-card-dictionary.entry.js +6 -3
- package/dist/esm/z-myz-card-footer.entry.js +6 -8
- package/dist/esm/z-myz-card-icon.entry.js +2 -1
- package/dist/esm/z-myz-card-info.entry.js +4 -3
- package/dist/esm/z-myz-card-list.entry.js +0 -1
- package/dist/esm/z-myz-card_4.entry.js +9 -15
- package/dist/esm/z-myz-list-item.entry.js +4 -6
- package/dist/esm/z-myz-topbar.entry.js +4 -14
- package/dist/esm/z-navigation-tab-link.entry.js +16 -8
- package/dist/esm/z-navigation-tab.entry.js +17 -7
- package/dist/esm/z-navigation-tabs.entry.js +14 -10
- package/dist/esm/z-notification.entry.js +6 -3
- package/dist/esm/z-offcanvas.entry.js +12 -4
- package/dist/esm/z-otp.entry.js +3 -3
- package/dist/esm/z-pagination-bar.entry.js +6 -5
- package/dist/esm/z-pagination-page.entry.js +4 -2
- package/dist/esm/z-pagination.entry.js +15 -7
- package/dist/esm/z-panel-elem.entry.js +2 -7
- package/dist/esm/z-pocket_3.entry.js +15 -15
- package/dist/esm/z-popover-deprecated.entry.js +15 -8
- package/dist/esm/z-popover.entry.js +36 -31
- package/dist/esm/z-section-title.entry.js +10 -2
- package/dist/esm/z-skip-to-content.entry.js +4 -3
- package/dist/esm/z-slideshow.entry.js +4 -6
- package/dist/esm/z-status-tag.entry.js +3 -5
- package/dist/esm/z-stepper-item.entry.js +0 -4
- package/dist/esm/z-table-cell.entry.js +4 -3
- package/dist/esm/z-table-empty-box.entry.js +2 -0
- package/dist/esm/z-table-expanded-row.entry.js +0 -1
- package/dist/esm/z-table-header-row.entry.js +0 -1
- package/dist/esm/z-table-header.entry.js +16 -15
- package/dist/esm/z-table-row.entry.js +6 -4
- package/dist/esm/z-table.entry.js +12 -9
- package/dist/esm/z-tag.entry.js +0 -2
- package/dist/esm/z-toast-notification-list.entry.js +4 -1
- package/dist/esm/z-toast-notification.entry.js +14 -17
- package/dist/esm/z-toggle-button.entry.js +2 -2
- package/dist/esm/z-toggle-switch.entry.js +7 -2
- package/dist/esm/z-tooltip-deprecated.entry.js +27 -32
- package/dist/esm/z-tooltip.entry.js +7 -2
- package/dist/esm/z-user-dropdown.entry.js +1 -5
- package/dist/types/beans/index.d.ts +50 -50
- package/dist/types/components/file-upload/z-file-upload/index.d.ts +1 -1
- package/dist/types/components/index.d.ts +0 -0
- package/dist/types/stencil-public-runtime.d.ts +0 -5
- package/dist/web-components-library/index.esm.js +1 -1
- package/dist/web-components-library/p-05ced71c.entry.js +1 -0
- package/dist/web-components-library/p-074ea569.entry.js +1 -0
- package/dist/web-components-library/p-10b46635.entry.js +1 -0
- package/dist/web-components-library/p-1106ead2.entry.js +1 -0
- package/dist/web-components-library/p-15b8a920.entry.js +1 -0
- package/dist/web-components-library/p-15fe7b71.entry.js +1 -0
- package/dist/web-components-library/p-1bd6592f.entry.js +1 -0
- package/dist/web-components-library/p-1e6a2a56.entry.js +1 -0
- package/dist/web-components-library/p-23781e2b.entry.js +1 -0
- package/dist/web-components-library/p-28ff9383.entry.js +1 -0
- package/dist/web-components-library/p-2efedcf4.entry.js +1 -0
- package/dist/web-components-library/p-344e7ae7.entry.js +1 -0
- package/dist/web-components-library/p-35ceae27.entry.js +1 -0
- package/dist/web-components-library/p-3913bff2.entry.js +1 -0
- package/dist/web-components-library/p-3a431f04.entry.js +1 -0
- package/dist/web-components-library/p-3c2d438b.entry.js +1 -0
- package/dist/web-components-library/p-3f55dce6.entry.js +1 -0
- package/dist/web-components-library/p-442b8b35.entry.js +1 -0
- package/dist/web-components-library/p-4cd6c6f4.entry.js +1 -0
- package/dist/web-components-library/p-4d093e07.entry.js +1 -0
- package/dist/web-components-library/{p-48624926.entry.js → p-4d42f224.entry.js} +1 -1
- package/dist/web-components-library/p-4e733fbd.entry.js +1 -0
- package/dist/web-components-library/p-4ec9ab53.entry.js +1 -0
- package/dist/web-components-library/p-53a03f2a.entry.js +1 -0
- package/dist/web-components-library/p-562ad563.entry.js +1 -0
- package/dist/web-components-library/p-58650e22.entry.js +1 -0
- package/dist/web-components-library/p-5bec950e.entry.js +1 -0
- package/dist/web-components-library/p-5c9556e3.entry.js +1 -0
- package/dist/web-components-library/p-5cf4a412.entry.js +1 -0
- package/dist/web-components-library/p-5d4a6659.entry.js +1 -0
- package/dist/web-components-library/p-5f3baf14.entry.js +1 -0
- package/dist/web-components-library/p-61424b8a.entry.js +1 -0
- package/dist/web-components-library/p-681e1f5a.entry.js +1 -0
- package/dist/web-components-library/p-686545fa.entry.js +1 -0
- package/dist/web-components-library/p-6f64e8a8.entry.js +1 -0
- package/dist/web-components-library/p-70d16b2c.entry.js +1 -0
- package/dist/web-components-library/p-7688f8ca.entry.js +1 -0
- package/dist/web-components-library/p-77e4774d.entry.js +1 -0
- package/dist/web-components-library/p-79b8d87e.entry.js +1 -0
- package/dist/web-components-library/p-7d696941.entry.js +1 -0
- package/dist/web-components-library/p-7d792297.entry.js +1 -0
- package/dist/web-components-library/p-810bd730.entry.js +1 -0
- package/dist/web-components-library/p-87fdd14f.js +1 -0
- package/dist/web-components-library/p-982254e5.entry.js +1 -0
- package/dist/web-components-library/p-9d03a7d6.entry.js +1 -0
- package/dist/web-components-library/p-9ecc5eba.entry.js +1 -0
- package/dist/web-components-library/p-9f80c0b8.js +1 -0
- package/dist/web-components-library/p-9fe267fc.entry.js +1 -0
- package/dist/web-components-library/p-a6d6178a.entry.js +1 -0
- package/dist/web-components-library/p-a79cc147.entry.js +1 -0
- package/dist/web-components-library/p-a79d1412.entry.js +1 -0
- package/dist/web-components-library/p-aded8a43.entry.js +1 -0
- package/dist/web-components-library/{p-4c7f4a2c.entry.js → p-b17981a4.entry.js} +1 -1
- package/dist/web-components-library/p-b4fbb6e4.entry.js +1 -0
- package/dist/web-components-library/p-b5086d6d.entry.js +1 -0
- package/dist/web-components-library/p-bb0fe7bc.entry.js +1 -0
- package/dist/web-components-library/p-bb15a265.js +1 -0
- package/dist/web-components-library/p-bb95b82f.entry.js +1 -0
- package/dist/web-components-library/p-c2d1785b.entry.js +1 -0
- package/dist/web-components-library/p-c6a662e6.entry.js +1 -0
- package/dist/web-components-library/p-c6aad085.entry.js +1 -0
- package/dist/web-components-library/p-cb5d8a84.entry.js +1 -0
- package/dist/web-components-library/p-cbb3ea13.entry.js +1 -0
- package/dist/web-components-library/p-ccf67abf.entry.js +1 -0
- package/dist/web-components-library/p-ce83ce18.entry.js +1 -0
- package/dist/web-components-library/p-d199b781.entry.js +1 -0
- package/dist/web-components-library/p-d3645ced.entry.js +1 -0
- package/dist/web-components-library/p-d3733579.entry.js +1 -0
- package/dist/web-components-library/p-d531d1d2.entry.js +1 -0
- package/dist/web-components-library/p-e68c18e5.entry.js +1 -0
- package/dist/web-components-library/p-ecc4afa1.entry.js +1 -0
- package/dist/web-components-library/p-ede9fbf5.entry.js +1 -0
- package/dist/web-components-library/p-edf0195b.entry.js +1 -0
- package/dist/web-components-library/{p-2c18a622.entry.js → p-f158d205.entry.js} +1 -1
- package/dist/web-components-library/p-f2f9a1bc.entry.js +1 -0
- package/dist/web-components-library/p-f2fd1e20.entry.js +1 -0
- package/dist/web-components-library/p-f7c1eb3f.entry.js +16 -0
- package/dist/web-components-library/p-f95cc914.entry.js +1 -0
- package/dist/web-components-library/p-fb7d33f2.entry.js +1 -0
- package/dist/web-components-library/p-ff18690f.entry.js +1 -0
- package/dist/web-components-library/web-components-library.css +1 -1
- package/dist/web-components-library/web-components-library.esm.js +1 -1
- package/package.json +5 -5
- package/www/build/index.esm.js +1 -1
- package/www/build/p-05ced71c.entry.js +1 -0
- package/www/build/p-074ea569.entry.js +1 -0
- package/www/build/p-10b46635.entry.js +1 -0
- package/www/build/p-1106ead2.entry.js +1 -0
- package/www/build/p-15b8a920.entry.js +1 -0
- package/www/build/p-15fe7b71.entry.js +1 -0
- package/www/build/p-1bd6592f.entry.js +1 -0
- package/www/build/p-1e6a2a56.entry.js +1 -0
- package/www/build/p-23781e2b.entry.js +1 -0
- package/www/build/p-28ff9383.entry.js +1 -0
- package/www/build/p-2efedcf4.entry.js +1 -0
- package/www/build/p-344e7ae7.entry.js +1 -0
- package/www/build/p-35ceae27.entry.js +1 -0
- package/www/build/p-36654297.js +1 -0
- package/www/build/p-3913bff2.entry.js +1 -0
- package/www/build/p-3a431f04.entry.js +1 -0
- package/www/build/p-3c2d438b.entry.js +1 -0
- package/www/build/p-3f55dce6.entry.js +1 -0
- package/www/build/p-442b8b35.entry.js +1 -0
- package/www/build/p-4cd6c6f4.entry.js +1 -0
- package/www/build/p-4d093e07.entry.js +1 -0
- package/www/build/{p-48624926.entry.js → p-4d42f224.entry.js} +1 -1
- package/www/build/p-4e733fbd.entry.js +1 -0
- package/www/build/p-4ec9ab53.entry.js +1 -0
- package/www/build/p-53a03f2a.entry.js +1 -0
- package/www/build/p-562ad563.entry.js +1 -0
- package/www/build/p-58650e22.entry.js +1 -0
- package/www/build/p-5bec950e.entry.js +1 -0
- package/www/build/p-5c9556e3.entry.js +1 -0
- package/www/build/p-5cf4a412.entry.js +1 -0
- package/www/build/p-5d4a6659.entry.js +1 -0
- package/www/build/p-5f3baf14.entry.js +1 -0
- package/www/build/p-61424b8a.entry.js +1 -0
- package/www/build/p-681e1f5a.entry.js +1 -0
- package/www/build/p-686545fa.entry.js +1 -0
- package/www/build/p-6f64e8a8.entry.js +1 -0
- package/www/build/p-70d16b2c.entry.js +1 -0
- package/www/build/p-7688f8ca.entry.js +1 -0
- package/www/build/p-77e4774d.entry.js +1 -0
- package/www/build/p-79b8d87e.entry.js +1 -0
- package/www/build/p-7d696941.entry.js +1 -0
- package/www/build/p-7d792297.entry.js +1 -0
- package/www/build/p-810bd730.entry.js +1 -0
- package/www/build/p-87fdd14f.js +1 -0
- package/www/build/p-982254e5.entry.js +1 -0
- package/www/build/p-9d03a7d6.entry.js +1 -0
- package/www/build/p-9ecc5eba.entry.js +1 -0
- package/www/build/p-9f80c0b8.js +1 -0
- package/www/build/p-9fe267fc.entry.js +1 -0
- package/www/build/p-a6d6178a.entry.js +1 -0
- package/www/build/p-a79cc147.entry.js +1 -0
- package/www/build/p-a79d1412.entry.js +1 -0
- package/www/build/p-aded8a43.entry.js +1 -0
- package/www/build/{p-4c7f4a2c.entry.js → p-b17981a4.entry.js} +1 -1
- package/www/build/p-b4fbb6e4.entry.js +1 -0
- package/www/build/p-b5086d6d.entry.js +1 -0
- package/www/build/p-bb0fe7bc.entry.js +1 -0
- package/www/build/p-bb15a265.js +1 -0
- package/www/build/p-bb95b82f.entry.js +1 -0
- package/www/build/p-c2d1785b.entry.js +1 -0
- package/www/build/p-c6a662e6.entry.js +1 -0
- package/www/build/p-c6aad085.entry.js +1 -0
- package/www/build/p-cb5d8a84.entry.js +1 -0
- package/www/build/p-cbb3ea13.entry.js +1 -0
- package/www/build/p-ccf67abf.entry.js +1 -0
- package/www/build/p-ce83ce18.entry.js +1 -0
- package/www/build/p-d199b781.entry.js +1 -0
- package/www/build/p-d3645ced.entry.js +1 -0
- package/www/build/p-d3733579.entry.js +1 -0
- package/www/build/p-d531d1d2.entry.js +1 -0
- package/www/build/p-d70c7670.css +1 -0
- package/www/build/p-e68c18e5.entry.js +1 -0
- package/www/build/p-ecc4afa1.entry.js +1 -0
- package/www/build/p-ede9fbf5.entry.js +1 -0
- package/www/build/p-edf0195b.entry.js +1 -0
- package/www/build/{p-2c18a622.entry.js → p-f158d205.entry.js} +1 -1
- package/www/build/p-f2f9a1bc.entry.js +1 -0
- package/www/build/p-f2fd1e20.entry.js +1 -0
- package/www/build/p-f7c1eb3f.entry.js +16 -0
- package/www/build/p-f95cc914.entry.js +1 -0
- package/www/build/p-fb7d33f2.entry.js +1 -0
- package/www/build/p-ff18690f.entry.js +1 -0
- package/www/build/web-components-library.css +1 -1
- package/www/build/web-components-library.esm.js +1 -1
- package/www/index.html +1 -1
- package/CHANGELOG.md +0 -2016
- package/dist/web-components-library/p-016b2800.entry.js +0 -1
- package/dist/web-components-library/p-04908405.entry.js +0 -1
- package/dist/web-components-library/p-06430481.entry.js +0 -1
- package/dist/web-components-library/p-067bd5da.entry.js +0 -1
- package/dist/web-components-library/p-082d65b1.entry.js +0 -1
- package/dist/web-components-library/p-0cff6cce.entry.js +0 -1
- package/dist/web-components-library/p-0e743002.entry.js +0 -1
- package/dist/web-components-library/p-10b84e8c.entry.js +0 -1
- package/dist/web-components-library/p-12211a48.entry.js +0 -1
- package/dist/web-components-library/p-14233b99.entry.js +0 -1
- package/dist/web-components-library/p-176256ee.js +0 -1
- package/dist/web-components-library/p-1ab0de76.entry.js +0 -1
- package/dist/web-components-library/p-1d2d5232.entry.js +0 -1
- package/dist/web-components-library/p-20109d3a.entry.js +0 -1
- package/dist/web-components-library/p-2cf26585.entry.js +0 -1
- package/dist/web-components-library/p-2d506c48.entry.js +0 -1
- package/dist/web-components-library/p-2d5d8e6f.entry.js +0 -1
- package/dist/web-components-library/p-2e7a31ac.entry.js +0 -1
- package/dist/web-components-library/p-2f6f3729.entry.js +0 -1
- package/dist/web-components-library/p-30cbafaf.entry.js +0 -1
- package/dist/web-components-library/p-341ddb5d.entry.js +0 -1
- package/dist/web-components-library/p-34a96008.entry.js +0 -1
- package/dist/web-components-library/p-35b30271.entry.js +0 -1
- package/dist/web-components-library/p-36f4ce3f.entry.js +0 -1
- package/dist/web-components-library/p-3c28f72e.entry.js +0 -1
- package/dist/web-components-library/p-3c7cf41f.entry.js +0 -1
- package/dist/web-components-library/p-3e414cf1.entry.js +0 -1
- package/dist/web-components-library/p-3ecfb7c1.entry.js +0 -1
- package/dist/web-components-library/p-40f96085.entry.js +0 -1
- package/dist/web-components-library/p-53d22727.entry.js +0 -1
- package/dist/web-components-library/p-563529f8.entry.js +0 -1
- package/dist/web-components-library/p-57faab40.entry.js +0 -1
- package/dist/web-components-library/p-5b2d8a91.entry.js +0 -1
- package/dist/web-components-library/p-6037dce0.entry.js +0 -1
- package/dist/web-components-library/p-670232c4.entry.js +0 -1
- package/dist/web-components-library/p-67f346d9.entry.js +0 -1
- package/dist/web-components-library/p-691678c8.entry.js +0 -1
- package/dist/web-components-library/p-69b27fe9.entry.js +0 -16
- package/dist/web-components-library/p-6fe1bffb.entry.js +0 -1
- package/dist/web-components-library/p-728e7dcd.entry.js +0 -1
- package/dist/web-components-library/p-74e31a32.entry.js +0 -1
- package/dist/web-components-library/p-759fb7c4.entry.js +0 -1
- package/dist/web-components-library/p-79223014.entry.js +0 -1
- package/dist/web-components-library/p-7b22a446.entry.js +0 -1
- package/dist/web-components-library/p-7c40fb15.entry.js +0 -1
- package/dist/web-components-library/p-7cbc1836.entry.js +0 -1
- package/dist/web-components-library/p-830b21a4.entry.js +0 -1
- package/dist/web-components-library/p-87099b68.entry.js +0 -1
- package/dist/web-components-library/p-8cabed58.entry.js +0 -1
- package/dist/web-components-library/p-8cf14a47.entry.js +0 -1
- package/dist/web-components-library/p-8eaa46ac.entry.js +0 -1
- package/dist/web-components-library/p-985c5ed8.entry.js +0 -1
- package/dist/web-components-library/p-9f6b43a0.entry.js +0 -1
- package/dist/web-components-library/p-9f8d0f79.entry.js +0 -1
- package/dist/web-components-library/p-a3b8dd69.entry.js +0 -1
- package/dist/web-components-library/p-aa271ed7.entry.js +0 -1
- package/dist/web-components-library/p-ac1a9d63.entry.js +0 -1
- package/dist/web-components-library/p-af4a9bb7.entry.js +0 -1
- package/dist/web-components-library/p-ba495cad.entry.js +0 -1
- package/dist/web-components-library/p-ba9210e9.entry.js +0 -1
- package/dist/web-components-library/p-bf9348e6.entry.js +0 -1
- package/dist/web-components-library/p-c0df6e96.entry.js +0 -1
- package/dist/web-components-library/p-c2b368ff.entry.js +0 -1
- package/dist/web-components-library/p-c39c68b9.entry.js +0 -1
- package/dist/web-components-library/p-cadba1e5.entry.js +0 -1
- package/dist/web-components-library/p-ccb3764b.entry.js +0 -1
- package/dist/web-components-library/p-d668461a.js +0 -1
- package/dist/web-components-library/p-d767f784.entry.js +0 -1
- package/dist/web-components-library/p-d7e72cec.entry.js +0 -1
- package/dist/web-components-library/p-dbc23998.entry.js +0 -1
- package/dist/web-components-library/p-def721df.entry.js +0 -1
- package/dist/web-components-library/p-e12cd68a.entry.js +0 -1
- package/dist/web-components-library/p-e84d2839.entry.js +0 -1
- package/dist/web-components-library/p-eadb185e.entry.js +0 -1
- package/dist/web-components-library/p-f9f9518a.entry.js +0 -1
- package/dist/web-components-library/p-fd305e08.entry.js +0 -1
- package/src-react/index.ts +0 -1
- package/www/build/p-016b2800.entry.js +0 -1
- package/www/build/p-04908405.entry.js +0 -1
- package/www/build/p-06430481.entry.js +0 -1
- package/www/build/p-067bd5da.entry.js +0 -1
- package/www/build/p-082d65b1.entry.js +0 -1
- package/www/build/p-0cff6cce.entry.js +0 -1
- package/www/build/p-0e743002.entry.js +0 -1
- package/www/build/p-10b84e8c.entry.js +0 -1
- package/www/build/p-12211a48.entry.js +0 -1
- package/www/build/p-14233b99.entry.js +0 -1
- package/www/build/p-176256ee.js +0 -1
- package/www/build/p-1ab0de76.entry.js +0 -1
- package/www/build/p-1d2d5232.entry.js +0 -1
- package/www/build/p-20109d3a.entry.js +0 -1
- package/www/build/p-2cf26585.entry.js +0 -1
- package/www/build/p-2d506c48.entry.js +0 -1
- package/www/build/p-2d5d8e6f.entry.js +0 -1
- package/www/build/p-2e7a31ac.entry.js +0 -1
- package/www/build/p-2f6f3729.entry.js +0 -1
- package/www/build/p-30cbafaf.entry.js +0 -1
- package/www/build/p-341ddb5d.entry.js +0 -1
- package/www/build/p-34a96008.entry.js +0 -1
- package/www/build/p-35b30271.entry.js +0 -1
- package/www/build/p-36f4ce3f.entry.js +0 -1
- package/www/build/p-3c28f72e.entry.js +0 -1
- package/www/build/p-3c7cf41f.entry.js +0 -1
- package/www/build/p-3e414cf1.entry.js +0 -1
- package/www/build/p-3ecfb7c1.entry.js +0 -1
- package/www/build/p-40f96085.entry.js +0 -1
- package/www/build/p-4c9c83c0.css +0 -1
- package/www/build/p-53d22727.entry.js +0 -1
- package/www/build/p-563529f8.entry.js +0 -1
- package/www/build/p-57faab40.entry.js +0 -1
- package/www/build/p-5b2d8a91.entry.js +0 -1
- package/www/build/p-6037dce0.entry.js +0 -1
- package/www/build/p-60ec44c6.js +0 -1
- package/www/build/p-670232c4.entry.js +0 -1
- package/www/build/p-67f346d9.entry.js +0 -1
- package/www/build/p-691678c8.entry.js +0 -1
- package/www/build/p-69b27fe9.entry.js +0 -16
- package/www/build/p-6fe1bffb.entry.js +0 -1
- package/www/build/p-728e7dcd.entry.js +0 -1
- package/www/build/p-74e31a32.entry.js +0 -1
- package/www/build/p-759fb7c4.entry.js +0 -1
- package/www/build/p-79223014.entry.js +0 -1
- package/www/build/p-7b22a446.entry.js +0 -1
- package/www/build/p-7c40fb15.entry.js +0 -1
- package/www/build/p-7cbc1836.entry.js +0 -1
- package/www/build/p-830b21a4.entry.js +0 -1
- package/www/build/p-87099b68.entry.js +0 -1
- package/www/build/p-8cabed58.entry.js +0 -1
- package/www/build/p-8cf14a47.entry.js +0 -1
- package/www/build/p-8eaa46ac.entry.js +0 -1
- package/www/build/p-985c5ed8.entry.js +0 -1
- package/www/build/p-9f6b43a0.entry.js +0 -1
- package/www/build/p-9f8d0f79.entry.js +0 -1
- package/www/build/p-a3b8dd69.entry.js +0 -1
- package/www/build/p-aa271ed7.entry.js +0 -1
- package/www/build/p-ac1a9d63.entry.js +0 -1
- package/www/build/p-af4a9bb7.entry.js +0 -1
- package/www/build/p-ba495cad.entry.js +0 -1
- package/www/build/p-ba9210e9.entry.js +0 -1
- package/www/build/p-bf9348e6.entry.js +0 -1
- package/www/build/p-c0df6e96.entry.js +0 -1
- package/www/build/p-c2b368ff.entry.js +0 -1
- package/www/build/p-c39c68b9.entry.js +0 -1
- package/www/build/p-cadba1e5.entry.js +0 -1
- package/www/build/p-ccb3764b.entry.js +0 -1
- package/www/build/p-d668461a.js +0 -1
- package/www/build/p-d767f784.entry.js +0 -1
- package/www/build/p-d7e72cec.entry.js +0 -1
- package/www/build/p-dbc23998.entry.js +0 -1
- package/www/build/p-def721df.entry.js +0 -1
- package/www/build/p-e12cd68a.entry.js +0 -1
- package/www/build/p-e84d2839.entry.js +0 -1
- package/www/build/p-eadb185e.entry.js +0 -1
- package/www/build/p-f9f9518a.entry.js +0 -1
- package/www/build/p-fd305e08.entry.js +0 -1
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { DividerSize, DividerOrientation } from "../../beans";
|
|
2
3
|
export class ZDivider {
|
|
3
4
|
constructor() {
|
|
4
|
-
|
|
5
|
+
/** [optional] Divider size */
|
|
6
|
+
this.size = DividerSize.SMALL;
|
|
7
|
+
/** [optional] Divider color */
|
|
5
8
|
this.color = "gray200";
|
|
6
|
-
|
|
9
|
+
/** [optional] Divider orintation */
|
|
10
|
+
this.orientation = DividerOrientation.HORIZONTAL;
|
|
7
11
|
}
|
|
8
12
|
render() {
|
|
9
13
|
return (h(Host, { class: `divider-${this.size} divider-${this.orientation}`, style: { backgroundColor: `var(--${this.color})` } }));
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { InfoRevealPosition } from "../../beans";
|
|
2
3
|
/**
|
|
3
4
|
* Info reveal component.
|
|
4
5
|
*
|
|
@@ -11,10 +12,13 @@ import { h, Host } from "@stencil/core";
|
|
|
11
12
|
*/
|
|
12
13
|
export class ZInfoReveal {
|
|
13
14
|
constructor() {
|
|
15
|
+
/** Name of the icon for the open button */
|
|
14
16
|
this.icon = "informationsource";
|
|
15
|
-
|
|
16
|
-
this.
|
|
17
|
+
/** Info reveal's position */
|
|
18
|
+
this.position = InfoRevealPosition.BOTTOM_RIGHT;
|
|
19
|
+
/** Whether the info panel is open. */
|
|
17
20
|
this.open = false;
|
|
21
|
+
/** Current index for the info queue. */
|
|
18
22
|
this.currentIndex = null;
|
|
19
23
|
}
|
|
20
24
|
watchItems() {
|
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { OffCanvasVariant, TransitionDirection } from "../../beans";
|
|
2
3
|
/**
|
|
3
4
|
* @slot canvasContent - set the content of the canvas
|
|
4
5
|
*/
|
|
5
6
|
export class ZOffcanvas {
|
|
6
7
|
constructor() {
|
|
7
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Offcanvas variant.
|
|
10
|
+
* Can be one of "overlay", "pushcontent"
|
|
11
|
+
* Default variant: pushcontent
|
|
12
|
+
*/
|
|
13
|
+
this.variant = OffCanvasVariant.PUSHCONTENT;
|
|
14
|
+
/** open component. Default: false */
|
|
8
15
|
this.open = false;
|
|
9
|
-
|
|
16
|
+
/** open content transitioning in a specified direction left | right. Default: left */
|
|
17
|
+
this.transitiondirection = TransitionDirection.LEFT;
|
|
10
18
|
}
|
|
11
19
|
componentWillLoad() {
|
|
12
20
|
this.handleOpenStatus();
|
|
@@ -19,7 +27,7 @@ export class ZOffcanvas {
|
|
|
19
27
|
if (this.open) {
|
|
20
28
|
this.hostElement.style.display = "flex";
|
|
21
29
|
}
|
|
22
|
-
else if (this.variant ===
|
|
30
|
+
else if (this.variant === OffCanvasVariant.PUSHCONTENT) {
|
|
23
31
|
this.hostElement.style.display = "none";
|
|
24
32
|
document.body.style.overflowX = "hidden";
|
|
25
33
|
}
|
|
@@ -28,7 +36,7 @@ export class ZOffcanvas {
|
|
|
28
36
|
if (this.hostElement.hasAttribute("open")) {
|
|
29
37
|
this.hostElement.querySelector(`.canvas-content`).focus();
|
|
30
38
|
}
|
|
31
|
-
else if (this.variant ===
|
|
39
|
+
else if (this.variant === OffCanvasVariant.OVERLAY) {
|
|
32
40
|
this.hostElement.style.display = "none";
|
|
33
41
|
document.body.style.overflowX = "initial";
|
|
34
42
|
}
|
|
@@ -1,20 +1,28 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { InputType } from "../../beans";
|
|
2
3
|
/**
|
|
3
4
|
* Pagination bar component.
|
|
4
5
|
*/
|
|
5
6
|
export class ZPagination {
|
|
6
7
|
constructor() {
|
|
7
|
-
|
|
8
|
+
/** Enable navigation arrows. */
|
|
8
9
|
this.navArrows = true;
|
|
9
|
-
|
|
10
|
+
/** Number of pages to skip. */
|
|
10
11
|
this.skip = 0;
|
|
12
|
+
/** Enable buttons to go to the first and last pages. */
|
|
11
13
|
this.edges = false;
|
|
12
|
-
|
|
13
|
-
this.visiblePages = undefined;
|
|
14
|
+
/** Current page. */
|
|
14
15
|
this.currentPage = 1;
|
|
15
|
-
|
|
16
|
+
/**
|
|
17
|
+
* Internal visible pages variable.
|
|
18
|
+
* Needed to better handle conflicting props like `visiblePages` and `split`.
|
|
19
|
+
* This state will change based on props values and validation,
|
|
20
|
+
* keeping original `visiblePages` value intact.
|
|
21
|
+
*/
|
|
16
22
|
this._visiblePages = this.visiblePages;
|
|
23
|
+
/** Used to hides/change some functionalities on smaller screen sizes */
|
|
17
24
|
this.isMobile = false;
|
|
25
|
+
/** Value of the go to page input */
|
|
18
26
|
this.goToPageValue = null;
|
|
19
27
|
}
|
|
20
28
|
/**
|
|
@@ -179,7 +187,7 @@ export class ZPagination {
|
|
|
179
187
|
pagesChunks.map((chunk) => h("div", { class: "pages-chunk" }, chunk.map((page) => this.renderPage(page)))))), this.goToPage && (h("form", { class: "mobile-go-to-page", onSubmit: (ev) => {
|
|
180
188
|
ev.preventDefault();
|
|
181
189
|
this.selectPage(this.goToPageValue);
|
|
182
|
-
} }, h("z-input", { class: "go-to-page-input", type:
|
|
190
|
+
} }, h("z-input", { class: "go-to-page-input", type: InputType.NUMBER, min: 1, max: this.totalPages, message: false, onInput: (ev) => {
|
|
183
191
|
this.goToPageValue = ev.target.value;
|
|
184
192
|
}, placeholder: this.currentPage.toString(), hasclearicon: false }), h("span", null, `/${this.totalPages}`))), this.renderForwardButton()),
|
|
185
193
|
];
|
|
@@ -198,7 +206,7 @@ export class ZPagination {
|
|
|
198
206
|
if (this.isMobile) {
|
|
199
207
|
return h(Host, null, this.renderMobile());
|
|
200
208
|
}
|
|
201
|
-
return (h(Host, null, h("div", { class: "pagination-bar" }, this.label && h("span", { class: "page-label body-1-sb" }, this.label), this.edges && (h("button", { class: "pagination-button", type: "button", title: "Vai alla pagina 1", disabled: this.currentPage === 1, onClick: () => this.selectPage(1) }, "Pagina 1")), this.skip < this.totalPages && this.skip > 1 && (h("button", { class: "pagination-button", type: "button", title: `Vai alla pagina ${this.currentPage - this.skip}`, disabled: this.currentPage <= this.skip, onClick: () => this.selectPage(this.currentPage - this.skip) }, "-", this.skip)), this.navArrows && this.renderBackButton(), h("div", { class: "pages-container", role: "navigation", tabIndex: -1 }, this.split ? this.renderSplitPages() : this.renderPages()), this.navArrows && this.renderForwardButton(), this.skip < this.totalPages && this.skip > 1 && (h("button", { class: "pagination-button", type: "button", title: `Vai alla pagina ${this.currentPage + this.skip}`, disabled: this.currentPage > this.totalPages - this.skip, onClick: () => this.selectPage(this.currentPage + this.skip) }, "+", this.skip)), this.edges && (h("button", { class: "pagination-button", type: "button", title: `Vai alla pagina ${this.totalPages}`, disabled: this.currentPage === this.totalPages, onClick: () => this.selectPage(this.totalPages) }, "Pagina ", this.totalPages))), this.goToPage && (h("div", { class: "go-to-page" }, h("span", { class: "label body-5-sb" }, "Vai a pagina:"), h("div", { class: "inputs" }, h("z-input", { class: "go-to-page-input", type:
|
|
209
|
+
return (h(Host, null, h("div", { class: "pagination-bar" }, this.label && h("span", { class: "page-label body-1-sb" }, this.label), this.edges && (h("button", { class: "pagination-button", type: "button", title: "Vai alla pagina 1", disabled: this.currentPage === 1, onClick: () => this.selectPage(1) }, "Pagina 1")), this.skip < this.totalPages && this.skip > 1 && (h("button", { class: "pagination-button", type: "button", title: `Vai alla pagina ${this.currentPage - this.skip}`, disabled: this.currentPage <= this.skip, onClick: () => this.selectPage(this.currentPage - this.skip) }, "-", this.skip)), this.navArrows && this.renderBackButton(), h("div", { class: "pages-container", role: "navigation", tabIndex: -1 }, this.split ? this.renderSplitPages() : this.renderPages()), this.navArrows && this.renderForwardButton(), this.skip < this.totalPages && this.skip > 1 && (h("button", { class: "pagination-button", type: "button", title: `Vai alla pagina ${this.currentPage + this.skip}`, disabled: this.currentPage > this.totalPages - this.skip, onClick: () => this.selectPage(this.currentPage + this.skip) }, "+", this.skip)), this.edges && (h("button", { class: "pagination-button", type: "button", title: `Vai alla pagina ${this.totalPages}`, disabled: this.currentPage === this.totalPages, onClick: () => this.selectPage(this.totalPages) }, "Pagina ", this.totalPages))), this.goToPage && (h("div", { class: "go-to-page" }, h("span", { class: "label body-5-sb" }, "Vai a pagina:"), h("div", { class: "inputs" }, h("z-input", { class: "go-to-page-input", type: InputType.NUMBER, min: 1, max: this.totalPages, message: false, placeholder: "2", hasclearicon: false, onInput: (ev) => {
|
|
202
210
|
this.goToPageValue = ev.target.value;
|
|
203
211
|
}, onKeyDown: (ev) => ev.key === "Enter" && this.selectPage(this.goToPageValue) }), h("z-button", { disabled: !this.goToPageValue, title: "Vai alla pagina inserita", onClick: () => this.selectPage(this.goToPageValue) }, "vai"))))));
|
|
204
212
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
+
import { PopoverPositions, KeyboardCode } from "../../beans";
|
|
2
3
|
import { getElementTree } from "../../utils/utils";
|
|
3
4
|
const DOCUMENT_ELEMENT = document.documentElement;
|
|
4
5
|
function getParentElement(element) {
|
|
@@ -91,16 +92,27 @@ function computeOffset(element, targetParentOffset) {
|
|
|
91
92
|
*/
|
|
92
93
|
export class ZPopover {
|
|
93
94
|
constructor() {
|
|
94
|
-
|
|
95
|
+
/** Popover position. */
|
|
96
|
+
this.position = PopoverPositions.AUTO;
|
|
97
|
+
/**
|
|
98
|
+
* The open state of the popover.
|
|
99
|
+
*/
|
|
95
100
|
this.open = false;
|
|
96
|
-
|
|
101
|
+
/**
|
|
102
|
+
* Whether to show popover's arrow.
|
|
103
|
+
*/
|
|
97
104
|
this.showArrow = false;
|
|
105
|
+
/**
|
|
106
|
+
* Whether to center the popup on the main side (according to "position").
|
|
107
|
+
*/
|
|
98
108
|
this.center = false;
|
|
109
|
+
/**
|
|
110
|
+
* Whether the popover should be closed when the user clicks outside of it or hit "ESC".
|
|
111
|
+
*/
|
|
99
112
|
this.closable = true;
|
|
100
|
-
this.currentPosition = undefined;
|
|
101
113
|
}
|
|
102
114
|
closePopoverWithKeyboard(e) {
|
|
103
|
-
if (this.closable && e.key ===
|
|
115
|
+
if (this.closable && e.key === KeyboardCode.ESC) {
|
|
104
116
|
this.open = false;
|
|
105
117
|
}
|
|
106
118
|
}
|
|
@@ -116,15 +128,8 @@ export class ZPopover {
|
|
|
116
128
|
}
|
|
117
129
|
}
|
|
118
130
|
validatePosition(newValue) {
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
&& newValue !== "bottom_left" /* PopoverPositions.BOTTOM_LEFT */ && newValue !== "bottom_right" /* PopoverPositions.BOTTOM_RIGHT */
|
|
122
|
-
&& newValue !== "left" /* PopoverPositions.LEFT */ && newValue !== "left_bottom" /* PopoverPositions.LEFT_BOTTOM */
|
|
123
|
-
&& newValue !== "left_top" /* PopoverPositions.LEFT_TOP */ && newValue !== "right" /* PopoverPositions.RIGHT */
|
|
124
|
-
&& newValue !== "right_bottom" /* PopoverPositions.RIGHT_BOTTOM */ && newValue !== "right_top" /* PopoverPositions.RIGHT_TOP */
|
|
125
|
-
&& newValue !== "top" /* PopoverPositions.TOP */ && newValue !== "top_left" /* PopoverPositions.TOP_LEFT */
|
|
126
|
-
&& newValue !== "top_right" /* PopoverPositions.TOP_RIGHT */) {
|
|
127
|
-
this.position = "auto" /* PopoverPositions.AUTO */;
|
|
131
|
+
if (newValue && !Object.values(PopoverPositions).includes(newValue)) {
|
|
132
|
+
this.position = PopoverPositions.AUTO;
|
|
128
133
|
}
|
|
129
134
|
this.currentPosition = this.position;
|
|
130
135
|
this.positionChange.emit({ position: this.currentPosition });
|
|
@@ -190,28 +195,28 @@ export class ZPopover {
|
|
|
190
195
|
const availableWidth = availableLeft + availableRight + boundingRect.width;
|
|
191
196
|
let position = this.currentPosition;
|
|
192
197
|
const positions = [];
|
|
193
|
-
if (this.position ===
|
|
198
|
+
if (this.position === PopoverPositions.AUTO) {
|
|
194
199
|
/**
|
|
195
200
|
* The `AUTO` position tries to place the popover in the 'safest' area,
|
|
196
201
|
* where there's more space available.
|
|
197
202
|
*/
|
|
198
203
|
if (availableLeft / availableWidth > 0.6) {
|
|
199
|
-
positions.push(
|
|
204
|
+
positions.push(PopoverPositions.LEFT);
|
|
200
205
|
}
|
|
201
206
|
else if (availableLeft / availableWidth < 0.4) {
|
|
202
|
-
positions.push(
|
|
207
|
+
positions.push(PopoverPositions.RIGHT);
|
|
203
208
|
}
|
|
204
209
|
if (availableTop / availableHeight > 0.9) {
|
|
205
|
-
positions.unshift(
|
|
210
|
+
positions.unshift(PopoverPositions.TOP);
|
|
206
211
|
}
|
|
207
212
|
else if (availableTop / availableHeight > 0.6) {
|
|
208
|
-
positions.push(
|
|
213
|
+
positions.push(PopoverPositions.TOP);
|
|
209
214
|
}
|
|
210
215
|
else if (availableTop / availableHeight < 0.1) {
|
|
211
|
-
positions.unshift(
|
|
216
|
+
positions.unshift(PopoverPositions.BOTTOM);
|
|
212
217
|
}
|
|
213
218
|
else {
|
|
214
|
-
positions.push(
|
|
219
|
+
positions.push(PopoverPositions.BOTTOM);
|
|
215
220
|
}
|
|
216
221
|
position = positions.join("_");
|
|
217
222
|
}
|
|
@@ -223,17 +228,17 @@ export class ZPopover {
|
|
|
223
228
|
const offsetLeft = boundingRect.left - relativeBoundingRect.left;
|
|
224
229
|
const offsetModifier = this.center ? 0.5 : 0;
|
|
225
230
|
const sizeModifier = this.center ? 0.5 : 0;
|
|
226
|
-
if (position ===
|
|
231
|
+
if (position === PopoverPositions.TOP || position === PopoverPositions.TOP_RIGHT) {
|
|
227
232
|
style.top = "auto";
|
|
228
233
|
style.right = "auto";
|
|
229
234
|
style.bottom = `${offsetBottom + boundingRect.height}px`;
|
|
230
235
|
style.left = `${offsetLeft + boundingRect.width * offsetModifier}px`;
|
|
231
236
|
style.maxHeight = `${availableTop}px`;
|
|
232
|
-
if (position ===
|
|
237
|
+
if (position === PopoverPositions.TOP_RIGHT) {
|
|
233
238
|
style.maxWidth = `${availableRight + boundingRect.width * sizeModifier}px`;
|
|
234
239
|
}
|
|
235
240
|
}
|
|
236
|
-
else if (position ===
|
|
241
|
+
else if (position === PopoverPositions.TOP_LEFT) {
|
|
237
242
|
style.top = "auto";
|
|
238
243
|
style.right = `${offsetRight + boundingRect.width * offsetModifier}px`;
|
|
239
244
|
style.bottom = `${offsetBottom + boundingRect.height}px`;
|
|
@@ -241,17 +246,17 @@ export class ZPopover {
|
|
|
241
246
|
style.maxWidth = `${availableLeft}px`;
|
|
242
247
|
style.maxHeight = `${availableTop}px`;
|
|
243
248
|
}
|
|
244
|
-
else if (position ===
|
|
249
|
+
else if (position === PopoverPositions.BOTTOM || position === PopoverPositions.BOTTOM_RIGHT) {
|
|
245
250
|
style.top = `${offsetTop + boundingRect.height}px`;
|
|
246
251
|
style.right = "auto";
|
|
247
252
|
style.bottom = "auto";
|
|
248
253
|
style.left = `${offsetLeft + boundingRect.width * offsetModifier}px`;
|
|
249
254
|
style.maxHeight = `${availableBottom}px`;
|
|
250
|
-
if (position ===
|
|
255
|
+
if (position === PopoverPositions.BOTTOM_RIGHT) {
|
|
251
256
|
style.maxWidth = `${availableRight + boundingRect.width * sizeModifier}px`;
|
|
252
257
|
}
|
|
253
258
|
}
|
|
254
|
-
else if (position ===
|
|
259
|
+
else if (position === PopoverPositions.BOTTOM_LEFT) {
|
|
255
260
|
style.top = `${offsetTop + boundingRect.height}px`;
|
|
256
261
|
style.right = `${offsetRight + boundingRect.width * offsetModifier}px`;
|
|
257
262
|
style.bottom = "auto";
|
|
@@ -259,7 +264,7 @@ export class ZPopover {
|
|
|
259
264
|
style.maxWidth = `${availableLeft}px`;
|
|
260
265
|
style.maxHeight = `${availableBottom}px`;
|
|
261
266
|
}
|
|
262
|
-
else if (position ===
|
|
267
|
+
else if (position === PopoverPositions.RIGHT || position === PopoverPositions.RIGHT_BOTTOM) {
|
|
263
268
|
style.top = `${offsetTop + boundingRect.height * offsetModifier}px`;
|
|
264
269
|
style.right = "auto";
|
|
265
270
|
style.bottom = "auto";
|
|
@@ -267,7 +272,7 @@ export class ZPopover {
|
|
|
267
272
|
style.maxWidth = `${availableRight}px`;
|
|
268
273
|
style.maxHeight = `${availableBottom + boundingRect.height * sizeModifier}px`;
|
|
269
274
|
}
|
|
270
|
-
else if (position ===
|
|
275
|
+
else if (position === PopoverPositions.RIGHT_TOP) {
|
|
271
276
|
style.top = "auto";
|
|
272
277
|
style.right = "auto";
|
|
273
278
|
style.bottom = `${offsetBottom + boundingRect.height * offsetModifier}px`;
|
|
@@ -275,7 +280,7 @@ export class ZPopover {
|
|
|
275
280
|
style.maxWidth = `${availableRight}px`;
|
|
276
281
|
style.maxHeight = `${availableTop + boundingRect.height * sizeModifier}px`;
|
|
277
282
|
}
|
|
278
|
-
else if (position ===
|
|
283
|
+
else if (position === PopoverPositions.LEFT || position === PopoverPositions.LEFT_BOTTOM) {
|
|
279
284
|
style.top = `${offsetTop + boundingRect.height * offsetModifier}px`;
|
|
280
285
|
style.right = `${offsetRight + boundingRect.width}px`;
|
|
281
286
|
style.bottom = "auto";
|
|
@@ -283,7 +288,7 @@ export class ZPopover {
|
|
|
283
288
|
style.maxWidth = `${availableLeft}px`;
|
|
284
289
|
style.maxHeight = `${availableBottom + boundingRect.height * sizeModifier}px`;
|
|
285
290
|
}
|
|
286
|
-
else if (position ===
|
|
291
|
+
else if (position === PopoverPositions.LEFT_TOP) {
|
|
287
292
|
style.top = "auto";
|
|
288
293
|
style.right = `${offsetRight + boundingRect.width}px`;
|
|
289
294
|
style.bottom = `${offsetBottom + boundingRect.height * offsetModifier}px`;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { DividerSize, ZSectionTitleDividerPosition } from "../../beans";
|
|
2
3
|
/**
|
|
3
4
|
* Section title component.
|
|
4
5
|
* An optional secondary title can be put over the primary one.
|
|
@@ -10,14 +11,21 @@ import { h, Host } from "@stencil/core";
|
|
|
10
11
|
*/
|
|
11
12
|
export class ZSectionTitle {
|
|
12
13
|
constructor() {
|
|
13
|
-
|
|
14
|
+
/**
|
|
15
|
+
* Divider position for the primary title.
|
|
16
|
+
* This prop only works if the secondary title is not set.
|
|
17
|
+
*/
|
|
18
|
+
this.dividerPosition = ZSectionTitleDividerPosition.BEFORE;
|
|
19
|
+
/**
|
|
20
|
+
* Whether the primary title text is uppercase.
|
|
21
|
+
*/
|
|
14
22
|
this.uppercase = true;
|
|
15
23
|
}
|
|
16
24
|
componentWillRender() {
|
|
17
25
|
this.hasSecondaryTitle = !!this.host.querySelector("[slot=secondary-title]");
|
|
18
26
|
}
|
|
19
27
|
render() {
|
|
20
|
-
return (h(Host, null, h("slot", { name: "secondary-title" }), !this.hasSecondaryTitle && this.dividerPosition ===
|
|
28
|
+
return (h(Host, null, h("slot", { name: "secondary-title" }), !this.hasSecondaryTitle && this.dividerPosition === ZSectionTitleDividerPosition.BEFORE && (h("z-divider", { size: DividerSize.LARGE, color: "z-section-title--divider-color" })), h("slot", { name: "primary-title" }), !this.hasSecondaryTitle && this.dividerPosition === ZSectionTitleDividerPosition.AFTER && (h("z-divider", { size: DividerSize.LARGE, color: "z-section-title--divider-color" }))));
|
|
21
29
|
}
|
|
22
30
|
static get is() { return "z-section-title"; }
|
|
23
31
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
import { getElementTree, handleKeyboardSubmit } from "../../utils/utils";
|
|
3
|
+
import { ThemeVariant } from "../../beans";
|
|
3
4
|
/**
|
|
4
5
|
* Component short description.
|
|
5
6
|
*/
|
|
6
7
|
export class ZSkipToContent {
|
|
7
8
|
constructor() {
|
|
8
|
-
|
|
9
|
+
/** Array to fill link into skip-content */
|
|
9
10
|
this.links = [];
|
|
10
11
|
this.visible = false;
|
|
11
12
|
this.visibleLink = "";
|
|
@@ -49,7 +50,7 @@ export class ZSkipToContent {
|
|
|
49
50
|
"skip-to-content-visible": this.visible,
|
|
50
51
|
} }, this.links.map((link, i) => {
|
|
51
52
|
const id = `skip-to-content-${i}`;
|
|
52
|
-
return (h("z-link", { id: id, underline: true, "aria-label": link.ariaLabel || link.label, class: `body-1-sb ${id == this.visibleLink ? "link-visible" : "link-invisible"}`, href: link.href, textcolor: this.variant ===
|
|
53
|
+
return (h("z-link", { id: id, underline: true, "aria-label": link.ariaLabel || link.label, class: `body-1-sb ${id == this.visibleLink ? "link-visible" : "link-invisible"}`, href: link.href, textcolor: this.variant === ThemeVariant.DARK ? "white" : "black", onFocus: () => (this.visibleLink = id), onClick: () => this.handleLinkClick(), onKeyUp: (e) => handleKeyboardSubmit(e, this.handleLinkClick.bind(this)) }, link.label));
|
|
53
54
|
})));
|
|
54
55
|
}
|
|
55
56
|
static get is() { return "z-skip-to-content"; }
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
|
+
import { ButtonSize, ButtonVariant } from "../../../beans";
|
|
2
3
|
import { mobileBreakpoint } from "../../../constants/breakpoints";
|
|
3
4
|
/**
|
|
4
5
|
* @slot - table elements
|
|
@@ -6,20 +7,22 @@ import { mobileBreakpoint } from "../../../constants/breakpoints";
|
|
|
6
7
|
*/
|
|
7
8
|
export class ZTable {
|
|
8
9
|
constructor() {
|
|
9
|
-
|
|
10
|
+
/** Error message */
|
|
10
11
|
this.errorMessage = "Siamo spiacenti, non siamo riusciti a caricare il contenuto richiesto";
|
|
12
|
+
/** Sets table with border */
|
|
11
13
|
this.bordered = false;
|
|
12
|
-
|
|
13
|
-
this.callToActionTwoLabel = undefined;
|
|
14
|
+
/** Sets first column sticky */
|
|
14
15
|
this.columnSticky = false;
|
|
16
|
+
/** Sets empty table */
|
|
15
17
|
this.empty = false;
|
|
18
|
+
/** Set error status */
|
|
16
19
|
this.error = false;
|
|
17
|
-
|
|
20
|
+
/** Sets header sticky */
|
|
18
21
|
this.headerSticky = false;
|
|
22
|
+
/** Set message */
|
|
19
23
|
this.message = "Siamo spiacenti, al momento non sono presenti dati da visualizzare";
|
|
24
|
+
/** Set subtitle */
|
|
20
25
|
this.subtitle = "";
|
|
21
|
-
this.hasTableBody = undefined;
|
|
22
|
-
this.isMobile = undefined;
|
|
23
26
|
}
|
|
24
27
|
handleResize() {
|
|
25
28
|
this.isMobile = window.innerWidth <= mobileBreakpoint;
|
|
@@ -44,12 +47,12 @@ export class ZTable {
|
|
|
44
47
|
return (h(Host, null, h("div", { class: tableClass }, h("slot", { name: "table-header" })), h("z-table-error", null, h("div", { class: "error-content", style: { minHeight } }, h("slot", { name: "error-image" }), h("div", { class: "text" }, h("z-body", { class: "error-message", level: 3, variant: "semibold" }, this.errorMessage), h("slot", { name: "error-action" }))))));
|
|
45
48
|
}
|
|
46
49
|
renderEmpty(tableClass) {
|
|
47
|
-
const buttonSize = this.isMobile ?
|
|
50
|
+
const buttonSize = this.isMobile ? ButtonSize.SMALL : ButtonSize.BIG;
|
|
48
51
|
const tableContentClass = `${this.hasTableBody ? "table-content" : ""}`;
|
|
49
52
|
if (this.hasTableBody) {
|
|
50
|
-
return (h(Host, null, h("div", { class: tableClass }, h("slot", { name: "table-header" }), h("div", { class: tableContentClass }, h("slot", { name: "table-body" }), h("z-table-empty-box", { class: this.bordered && "bordered", message: this.message, subtitle: this.subtitle }, !!this.callToActionLabel && (h("z-button", { slot: "cta1", variant:
|
|
53
|
+
return (h(Host, null, h("div", { class: tableClass }, h("slot", { name: "table-header" }), h("div", { class: tableContentClass }, h("slot", { name: "table-body" }), h("z-table-empty-box", { class: this.bordered && "bordered", message: this.message, subtitle: this.subtitle }, !!this.callToActionLabel && (h("z-button", { slot: "cta1", variant: ButtonVariant.TERTIARY, onClick: () => this.callToAction.emit(), size: buttonSize }, this.callToActionLabel)), !!this.callToActionTwoLabel && (h("z-button", { slot: "cta2", variant: ButtonVariant.TERTIARY, onClick: () => this.callToActionTwo.emit(), size: buttonSize }, this.callToActionTwoLabel)))))));
|
|
51
54
|
}
|
|
52
|
-
return (h(Host, null, h("div", { class: tableClass }, h("slot", { name: "table-header" })), h("z-table-empty-box", { class: this.bordered && "bordered", message: this.message, subtitle: this.subtitle }, !!this.callToActionLabel && (h("z-button", { slot: "cta1", variant:
|
|
55
|
+
return (h(Host, null, h("div", { class: tableClass }, h("slot", { name: "table-header" })), h("z-table-empty-box", { class: this.bordered && "bordered", message: this.message, subtitle: this.subtitle }, !!this.callToActionLabel && (h("z-button", { slot: "cta1", variant: ButtonVariant.TERTIARY, onClick: () => this.callToAction.emit(), size: buttonSize }, this.callToActionLabel)), !!this.callToActionTwoLabel && (h("z-button", { slot: "cta2", variant: ButtonVariant.TERTIARY, onClick: () => this.callToActionTwo.emit(), size: buttonSize }, this.callToActionTwoLabel)))));
|
|
53
56
|
}
|
|
54
57
|
render() {
|
|
55
58
|
const tableClass = `table ${this.empty ? "table-empty" : ""} ${this.bordered ? "table-bordered" : ""}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { ButtonVariant, ButtonSize, Size } from "../../../beans";
|
|
2
3
|
export class ZTableCell {
|
|
3
4
|
constructor() {
|
|
4
|
-
|
|
5
|
-
this.padding =
|
|
5
|
+
/** Set padding size of cell, if special 0px padding will be set */
|
|
6
|
+
this.padding = Size.MEDIUM;
|
|
6
7
|
this.isMenuOpened = false;
|
|
7
8
|
}
|
|
8
9
|
handleMenu() {
|
|
@@ -15,7 +16,7 @@ export class ZTableCell {
|
|
|
15
16
|
return (h(Host, null, this.showButton && (h("div", { class: {
|
|
16
17
|
"button-container": true,
|
|
17
18
|
"visible": this.isMenuOpened,
|
|
18
|
-
} }, h("div", { class: "button-content" }, h("z-button", { icon: "contextual-menu", variant:
|
|
19
|
+
} }, h("div", { class: "button-content" }, h("z-button", { icon: "contextual-menu", variant: ButtonVariant.TERTIARY, size: ButtonSize.X_SMALL, onClick: () => this.handleMenu() }), h("div", { class: {
|
|
19
20
|
"contextual-menu-container": true,
|
|
20
21
|
"visible": this.isMenuOpened,
|
|
21
22
|
} }, h("slot", { name: "contextual-menu" }))))), h("slot", null)));
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
export class ZTableEmptyBox {
|
|
3
3
|
constructor() {
|
|
4
|
+
/** Sets main title message*/
|
|
4
5
|
this.message = "Siamo spiacenti, al momento non sono presenti dati da visualizzare.";
|
|
6
|
+
/** Sets message */
|
|
5
7
|
this.subtitle = "";
|
|
6
8
|
}
|
|
7
9
|
componentWillLoad() {
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { ButtonSize, ButtonVariant, PopoverPositions, Size, SortDirection } from "../../../beans";
|
|
2
3
|
import { getElementTree } from "../../../utils/utils";
|
|
3
4
|
export class ZTableHeader {
|
|
4
5
|
constructor() {
|
|
5
|
-
|
|
6
|
-
this.padding =
|
|
7
|
-
|
|
8
|
-
this.
|
|
9
|
-
|
|
10
|
-
this.sortDirection =
|
|
6
|
+
/** Set padding size of cell, if special 0px padding will be set */
|
|
7
|
+
this.padding = Size.MEDIUM;
|
|
8
|
+
/** [Optional] Default sort order */
|
|
9
|
+
this.defaultSortDirection = SortDirection.ASC;
|
|
10
|
+
/** Sort direction */
|
|
11
|
+
this.sortDirection = SortDirection.NONE;
|
|
11
12
|
this.emitOnSort = this.emitOnSort.bind(this);
|
|
12
13
|
}
|
|
13
14
|
emitOnSort() {
|
|
@@ -22,14 +23,14 @@ export class ZTableHeader {
|
|
|
22
23
|
}
|
|
23
24
|
this.sortDirection = (() => {
|
|
24
25
|
switch (this.sortDirection) {
|
|
25
|
-
case
|
|
26
|
-
return
|
|
27
|
-
case
|
|
28
|
-
return
|
|
29
|
-
case
|
|
26
|
+
case SortDirection.ASC:
|
|
27
|
+
return SortDirection.DESC;
|
|
28
|
+
case SortDirection.DESC:
|
|
29
|
+
return SortDirection.ASC;
|
|
30
|
+
case SortDirection.NONE:
|
|
30
31
|
return this.defaultSortDirection;
|
|
31
32
|
default:
|
|
32
|
-
return
|
|
33
|
+
return SortDirection.NONE;
|
|
33
34
|
}
|
|
34
35
|
})();
|
|
35
36
|
this.emitOnSort();
|
|
@@ -53,7 +54,7 @@ export class ZTableHeader {
|
|
|
53
54
|
const parentColumnId = parent.attributes.getNamedItem("column-id").value;
|
|
54
55
|
const isSortable = target.parentNode.sortable || target.sortable;
|
|
55
56
|
if (parentColumnId !== this.columnId && isSortable) {
|
|
56
|
-
this.sortDirection =
|
|
57
|
+
this.sortDirection = SortDirection.NONE;
|
|
57
58
|
}
|
|
58
59
|
}
|
|
59
60
|
componentWillRender() {
|
|
@@ -62,7 +63,7 @@ export class ZTableHeader {
|
|
|
62
63
|
render() {
|
|
63
64
|
return (h(Host, { class: {
|
|
64
65
|
sortable: this.sortable,
|
|
65
|
-
}, onClick: () => this.handleSort() }, h("div", { class: "container" }, h("slot", null), this.sortable && this.sortDirection !==
|
|
66
|
+
}, onClick: () => this.handleSort() }, h("div", { class: "container" }, h("slot", null), this.sortable && this.sortDirection !== SortDirection.NONE && (h("z-icon", { name: this.sortDirection === SortDirection.ASC ? "arrow-up" : "arrow-down", class: "arrow" }))), this.showButton && (h("div", { class: "popover-container" }, h("z-button", { ref: (el) => (this.triggerButton = el), class: "contextual-popover-button", icon: "contextual-menu", variant: ButtonVariant.TERTIARY, size: ButtonSize.X_SMALL, onClick: () => this.handleMenuClick() }), h("z-popover", { ref: (el) => (this.popover = el), position: PopoverPositions.BOTTOM, center: true, bindTo: this.triggerButton }, h("div", null, h("slot", { name: "contextual-menu" })))))));
|
|
66
67
|
}
|
|
67
68
|
static get is() { return "z-table-header"; }
|
|
68
69
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
|
+
import { ZTableRowExpandedType } from "../../../beans";
|
|
2
3
|
export class ZTableRow {
|
|
3
4
|
constructor() {
|
|
4
|
-
|
|
5
|
+
/** Table row expanded type */
|
|
6
|
+
this.expandedType = ZTableRowExpandedType.NONE;
|
|
5
7
|
this.expanded = false;
|
|
6
8
|
}
|
|
7
9
|
emitOnExpand() {
|
|
@@ -12,7 +14,7 @@ export class ZTableRow {
|
|
|
12
14
|
this.emitOnExpand();
|
|
13
15
|
}
|
|
14
16
|
renderExpandButton() {
|
|
15
|
-
if (this.expandedType ==
|
|
17
|
+
if (this.expandedType == ZTableRowExpandedType.EXPANDABLE) {
|
|
16
18
|
return (h("z-table-cell", { style: { borderRight: "none" } }, h("z-icon", { name: this.expanded ? "minus-circled" : "plus-circled" })));
|
|
17
19
|
}
|
|
18
20
|
return (h("z-table-cell", { style: { borderRight: "none" } }, h("div", { class: "z-icon-placeholder" })));
|
|
@@ -20,11 +22,11 @@ export class ZTableRow {
|
|
|
20
22
|
render() {
|
|
21
23
|
return (h(Host, { role: "row", expanded: this.expanded, onClick: (event) => {
|
|
22
24
|
const contextualMenuClick = event.target.nodeName === "Z-CONTEXTUAL-MENU";
|
|
23
|
-
const isExpandable = this.expandedType ===
|
|
25
|
+
const isExpandable = this.expandedType === ZTableRowExpandedType.EXPANDABLE;
|
|
24
26
|
if (isExpandable && !contextualMenuClick) {
|
|
25
27
|
this.handleExpand();
|
|
26
28
|
}
|
|
27
|
-
} }, this.expandedType !==
|
|
29
|
+
} }, this.expandedType !== ZTableRowExpandedType.NONE && this.renderExpandButton(), h("slot", null)));
|
|
28
30
|
}
|
|
29
31
|
static get is() { return "z-table-row"; }
|
|
30
32
|
static get originalStyleUrls() {
|
|
@@ -6,10 +6,6 @@ import { h, Host } from "@stencil/core";
|
|
|
6
6
|
* @cssprop --z-tag-bg - background color of the z-tag.
|
|
7
7
|
*/
|
|
8
8
|
export class ZTag {
|
|
9
|
-
constructor() {
|
|
10
|
-
this.icon = undefined;
|
|
11
|
-
this.expandable = undefined;
|
|
12
|
-
}
|
|
13
9
|
render() {
|
|
14
10
|
return (h(Host, { class: {
|
|
15
11
|
"body-5-sb": true,
|
|
@@ -3,14 +3,14 @@ import Hammer from "hammerjs";
|
|
|
3
3
|
import { handleKeyboardSubmit } from "../../../utils/utils";
|
|
4
4
|
export class ZPaginationBar {
|
|
5
5
|
constructor() {
|
|
6
|
-
|
|
7
|
-
this.pages = undefined;
|
|
8
|
-
this.visiblepages = undefined;
|
|
6
|
+
/** current displayed page (mutable) */
|
|
9
7
|
this.currentpage = 1;
|
|
8
|
+
/** initial page (mutable) */
|
|
10
9
|
this.startpage = 1;
|
|
11
|
-
|
|
10
|
+
/** array of history of visited pages (mutable, optional) */
|
|
12
11
|
this.listhistoryrow = [];
|
|
13
12
|
this.currentPages = [];
|
|
13
|
+
this.velocityConstantMultiplier = 2;
|
|
14
14
|
this.navigateRight = this.navigateRight.bind(this);
|
|
15
15
|
this.navigateLeft = this.navigateLeft.bind(this);
|
|
16
16
|
this.emitGoToPage = this.emitGoToPage.bind(this);
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
export class ZPaginationPage {
|
|
3
3
|
constructor() {
|
|
4
|
-
|
|
5
|
-
this.value = undefined;
|
|
4
|
+
/** selected status flag */
|
|
6
5
|
this.isselected = false;
|
|
6
|
+
/** disabled status flag */
|
|
7
7
|
this.isdisabled = false;
|
|
8
|
+
/** visited status flag */
|
|
8
9
|
this.isvisited = false;
|
|
10
|
+
/** aria-label string */
|
|
9
11
|
this.ariaLabel = "";
|
|
10
12
|
}
|
|
11
13
|
render() {
|