@zanichelli/albe-web-components 6.0.4 → 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/CHANGELOG.md +0 -8
- package/dist/cjs/index.cjs.js +346 -302
- package/dist/cjs/loader.cjs.js +2 -2
- 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 +2 -2
- 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 +17 -16
- 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 +17 -16
- 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 +2 -2
- 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 +2 -2
- 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 +17 -16
- 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/components/file-upload/z-file-upload/index.d.ts +1 -1
- 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-60ec44c6.js +1 -0
- 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-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/dist/web-components-library/p-ff18690f.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-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-36654297.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
- package/www/build/p-ff18690f.entry.js +0 -1
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-e3299e0a.js');
|
|
6
|
-
const
|
|
7
|
-
const utils = require('./utils-ce225fb3.js');
|
|
6
|
+
const utils = require('./utils-7c92be74.js');
|
|
8
7
|
require('./breakpoints-88c4fd6c.js');
|
|
9
8
|
|
|
10
9
|
const stylesCss = ":host{position:relative;display:table-cell;border-bottom:var(--border-size-medium) solid var(--gray200);background-color:var(--gray50);font-family:var(--dashboard-font);font-weight:var(--font-sb);text-align:start}.container{display:flex;align-items:flex-end}:host(.sortable){cursor:pointer}:host([padding=\"x-small\"]){padding:calc(var(--space-unit) * 0.5)}:host([padding=\"small\"]){padding:calc(var(--space-unit))}:host([padding=\"medium\"]){padding:calc(var(--space-unit) * 2)}:host([padding=\"large\"]){padding:calc(var(--space-unit) * 2.5)}:host([padding=\"special\"]){padding:0}.arrow{padding-left:var(--space-unit);opacity:1}.popover-container{position:absolute;top:var(--space-unit);right:var(--space-unit);display:none}.popover-container z-popover{--z-popover-theme--surface:var(--gray200);position:relative;z-index:1}.popover-container.visible{display:block}:host(:hover) .popover-container{display:block}";
|
|
@@ -13,12 +12,12 @@ const ZTableHeader = class {
|
|
|
13
12
|
constructor(hostRef) {
|
|
14
13
|
index.registerInstance(this, hostRef);
|
|
15
14
|
this.sort = index.createEvent(this, "sort", 7);
|
|
16
|
-
|
|
17
|
-
this.padding =
|
|
18
|
-
|
|
19
|
-
this.
|
|
20
|
-
|
|
21
|
-
this.sortDirection =
|
|
15
|
+
this.columnId = undefined;
|
|
16
|
+
this.padding = "medium" /* Size.MEDIUM */;
|
|
17
|
+
this.sortable = undefined;
|
|
18
|
+
this.showButton = undefined;
|
|
19
|
+
this.defaultSortDirection = "asc" /* SortDirection.ASC */;
|
|
20
|
+
this.sortDirection = "none" /* SortDirection.NONE */;
|
|
22
21
|
this.emitOnSort = this.emitOnSort.bind(this);
|
|
23
22
|
}
|
|
24
23
|
emitOnSort() {
|
|
@@ -33,14 +32,14 @@ const ZTableHeader = class {
|
|
|
33
32
|
}
|
|
34
33
|
this.sortDirection = (() => {
|
|
35
34
|
switch (this.sortDirection) {
|
|
36
|
-
case
|
|
37
|
-
return
|
|
38
|
-
case
|
|
39
|
-
return
|
|
40
|
-
case
|
|
35
|
+
case "asc" /* SortDirection.ASC */:
|
|
36
|
+
return "desc" /* SortDirection.DESC */;
|
|
37
|
+
case "desc" /* SortDirection.DESC */:
|
|
38
|
+
return "asc" /* SortDirection.ASC */;
|
|
39
|
+
case "none" /* SortDirection.NONE */:
|
|
41
40
|
return this.defaultSortDirection;
|
|
42
41
|
default:
|
|
43
|
-
return
|
|
42
|
+
return "none" /* SortDirection.NONE */;
|
|
44
43
|
}
|
|
45
44
|
})();
|
|
46
45
|
this.emitOnSort();
|
|
@@ -64,7 +63,7 @@ const ZTableHeader = class {
|
|
|
64
63
|
const parentColumnId = parent.attributes.getNamedItem("column-id").value;
|
|
65
64
|
const isSortable = target.parentNode.sortable || target.sortable;
|
|
66
65
|
if (parentColumnId !== this.columnId && isSortable) {
|
|
67
|
-
this.sortDirection =
|
|
66
|
+
this.sortDirection = "none" /* SortDirection.NONE */;
|
|
68
67
|
}
|
|
69
68
|
}
|
|
70
69
|
componentWillRender() {
|
|
@@ -73,7 +72,7 @@ const ZTableHeader = class {
|
|
|
73
72
|
render() {
|
|
74
73
|
return (index.h(index.Host, { class: {
|
|
75
74
|
sortable: this.sortable,
|
|
76
|
-
}, onClick: () => this.handleSort() }, index.h("div", { class: "container" }, index.h("slot", null), this.sortable && this.sortDirection !==
|
|
75
|
+
}, onClick: () => this.handleSort() }, index.h("div", { class: "container" }, index.h("slot", null), this.sortable && this.sortDirection !== "none" /* SortDirection.NONE */ && (index.h("z-icon", { name: this.sortDirection === "asc" /* SortDirection.ASC */ ? "arrow-up" : "arrow-down", class: "arrow" }))), this.showButton && (index.h("div", { class: "popover-container" }, index.h("z-button", { ref: (el) => (this.triggerButton = el), class: "contextual-popover-button", icon: "contextual-menu", variant: "tertiary" /* ButtonVariant.TERTIARY */, size: "x-small" /* ButtonSize.X_SMALL */, onClick: () => this.handleMenuClick() }), index.h("z-popover", { ref: (el) => (this.popover = el), position: "bottom" /* PopoverPositions.BOTTOM */, center: true, bindTo: this.triggerButton }, index.h("div", null, index.h("slot", { name: "contextual-menu" })))))));
|
|
77
76
|
}
|
|
78
77
|
get host() { return index.getElement(this); }
|
|
79
78
|
};
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-e3299e0a.js');
|
|
6
|
-
const index$1 = require('./index-199cd650.js');
|
|
7
6
|
|
|
8
7
|
const stylesCss = "z-table-row{display:table-row;font-family:var(--font-family-sans)}z-table-row[expanded-type=\"expandable\"]:hover{cursor:pointer}z-table-row[expanded-type=\"expandable\"]>z-table-cell:first-child,z-table-row[expanded-type=\"padding\"]>z-table-cell:first-child{--z-icon-width:16px;--z-icon-height:16px;width:24px;box-sizing:border-box;padding-right:0;padding-left:16px;fill:var(--gray800);text-align:center;user-select:none}.z-icon-placeholder{width:24px;padding-right:0}z-table-row[expanded-type=\"expandable\"]>z-table-cell:nth-child(2),z-table-row[expanded-type=\"padding\"]>z-table-cell:nth-child(2){padding-left:8px}z-table-row[expanded-type]:hover>z-table-cell:first-child{fill:var(--myz-blue-dark)}z-table-row[expanded]>z-table-cell{border-bottom:none;background-color:var(--gray50)}z-table-row[expanded]+z-table-expanded-row{display:table-row}";
|
|
9
8
|
|
|
@@ -11,8 +10,7 @@ const ZTableRow = class {
|
|
|
11
10
|
constructor(hostRef) {
|
|
12
11
|
index.registerInstance(this, hostRef);
|
|
13
12
|
this.expand = index.createEvent(this, "expand", 7);
|
|
14
|
-
|
|
15
|
-
this.expandedType = index$1.ZTableRowExpandedType.NONE;
|
|
13
|
+
this.expandedType = "none" /* ZTableRowExpandedType.NONE */;
|
|
16
14
|
this.expanded = false;
|
|
17
15
|
}
|
|
18
16
|
emitOnExpand() {
|
|
@@ -23,7 +21,7 @@ const ZTableRow = class {
|
|
|
23
21
|
this.emitOnExpand();
|
|
24
22
|
}
|
|
25
23
|
renderExpandButton() {
|
|
26
|
-
if (this.expandedType ==
|
|
24
|
+
if (this.expandedType == "expandable" /* ZTableRowExpandedType.EXPANDABLE */) {
|
|
27
25
|
return (index.h("z-table-cell", { style: { borderRight: "none" } }, index.h("z-icon", { name: this.expanded ? "minus-circled" : "plus-circled" })));
|
|
28
26
|
}
|
|
29
27
|
return (index.h("z-table-cell", { style: { borderRight: "none" } }, index.h("div", { class: "z-icon-placeholder" })));
|
|
@@ -31,11 +29,11 @@ const ZTableRow = class {
|
|
|
31
29
|
render() {
|
|
32
30
|
return (index.h(index.Host, { role: "row", expanded: this.expanded, onClick: (event) => {
|
|
33
31
|
const contextualMenuClick = event.target.nodeName === "Z-CONTEXTUAL-MENU";
|
|
34
|
-
const isExpandable = this.expandedType ===
|
|
32
|
+
const isExpandable = this.expandedType === "expandable" /* ZTableRowExpandedType.EXPANDABLE */;
|
|
35
33
|
if (isExpandable && !contextualMenuClick) {
|
|
36
34
|
this.handleExpand();
|
|
37
35
|
}
|
|
38
|
-
} }, this.expandedType !==
|
|
36
|
+
} }, this.expandedType !== "none" /* ZTableRowExpandedType.NONE */ && this.renderExpandButton(), index.h("slot", null)));
|
|
39
37
|
}
|
|
40
38
|
};
|
|
41
39
|
ZTableRow.style = stylesCss;
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-e3299e0a.js');
|
|
6
|
-
const index$1 = require('./index-199cd650.js');
|
|
7
6
|
const breakpoints = require('./breakpoints-88c4fd6c.js');
|
|
8
7
|
|
|
9
8
|
const stylesCss = "z-table{display:block;width:100%;background-color:var(--color-white);font-family:var(--dashboard-font);font-weight:var(--font-rg);overflow-x:auto}z-table>div.table{display:table;width:100%;border-collapse:separate}z-table>div.table-bordered>z-table-body>z-table-row>z-table-cell:not(:last-child),z-table>div.table-bordered>z-table-head>z-table-header-row>z-table-header:not(:last-child){border-right:var(--border-size-small) solid var(--bg-grey-200)}z-table>div>z-table-body>z-table-row[expandable]>z-table-cell:first-child,z-table>div>z-table-head>z-table-header-row[expandable]>z-table-header:first-child{border-right:none}z-table>div>z-table-body>z-table-row[expanded]>z-table-cell{background-color:var(--gray50)}z-table>div>z-table-body>z-table-row[expanded]+z-table-expanded-row{border-bottom:1px solid var(--gray200)}z-table>div.table-column-sticky>z-table-body>z-table-row>z-table-cell:first-child,z-table>div.table-column-sticky>z-table-head>z-table-header-row>z-table-header:first-child{position:sticky;z-index:1;left:0;box-shadow:1px 0 4px -1px rgb(66 69 72 / 40%)}z-table>div.table-header-sticky>z-table-head>z-table-header-row>z-table-header{position:sticky;z-index:2;top:0;box-shadow:0 2px 3px -3px rgb(66 69 72 / 40%)}z-table>div.table-header-sticky>z-table-head>z-table-header-row>z-table-header:first-child,z-table>div.table-column-sticky>z-table-head>z-table-header-row>z-table-header:first-child{z-index:5}z-table-body{width:auto;background-color:var(--color-white)}z-table-empty-box{display:flex;flex-direction:column;flex-grow:1;border-bottom:var(--border-size-small) solid var(--bg-grey-200)}z-table-empty-box.bordered{border-left:var(--border-size-small) solid var(--bg-grey-200)}.error-message{margin-top:calc(var(--space-unit) * 2)}.table-content{display:flex;width:100%;flex-direction:row}.error-content{display:flex;padding:calc(var(--space-unit) * 3);font-family:var(--dashboard-font)}.error-content>img{width:244px;height:188px;margin-right:calc(var(--space-unit) * 3)}@media only screen and (max-width: 768px){z-table>div.table-empty{display:none}.error-content{display:flex;flex-direction:column}.error-content>img{width:auto;height:auto}.text{padding:calc(var(--space-unit) * 3) 0}}";
|
|
@@ -13,22 +12,20 @@ const ZTable = class {
|
|
|
13
12
|
index.registerInstance(this, hostRef);
|
|
14
13
|
this.callToAction = index.createEvent(this, "callToAction", 7);
|
|
15
14
|
this.callToActionTwo = index.createEvent(this, "callToActionTwo", 7);
|
|
16
|
-
|
|
15
|
+
this.lines = undefined;
|
|
17
16
|
this.errorMessage = "Siamo spiacenti, non siamo riusciti a caricare il contenuto richiesto";
|
|
18
|
-
/** Sets table with border */
|
|
19
17
|
this.bordered = false;
|
|
20
|
-
|
|
18
|
+
this.callToActionLabel = undefined;
|
|
19
|
+
this.callToActionTwoLabel = undefined;
|
|
21
20
|
this.columnSticky = false;
|
|
22
|
-
/** Sets empty table */
|
|
23
21
|
this.empty = false;
|
|
24
|
-
/** Set error status */
|
|
25
22
|
this.error = false;
|
|
26
|
-
|
|
23
|
+
this.errorLink = undefined;
|
|
27
24
|
this.headerSticky = false;
|
|
28
|
-
/** Set message */
|
|
29
25
|
this.message = "Siamo spiacenti, al momento non sono presenti dati da visualizzare";
|
|
30
|
-
/** Set subtitle */
|
|
31
26
|
this.subtitle = "";
|
|
27
|
+
this.hasTableBody = undefined;
|
|
28
|
+
this.isMobile = undefined;
|
|
32
29
|
}
|
|
33
30
|
handleResize() {
|
|
34
31
|
this.isMobile = window.innerWidth <= breakpoints.mobileBreakpoint;
|
|
@@ -53,12 +50,12 @@ const ZTable = class {
|
|
|
53
50
|
return (index.h(index.Host, null, index.h("div", { class: tableClass }, index.h("slot", { name: "table-header" })), index.h("z-table-error", null, index.h("div", { class: "error-content", style: { minHeight } }, index.h("slot", { name: "error-image" }), index.h("div", { class: "text" }, index.h("z-body", { class: "error-message", level: 3, variant: "semibold" }, this.errorMessage), index.h("slot", { name: "error-action" }))))));
|
|
54
51
|
}
|
|
55
52
|
renderEmpty(tableClass) {
|
|
56
|
-
const buttonSize = this.isMobile ?
|
|
53
|
+
const buttonSize = this.isMobile ? "small" /* ButtonSize.SMALL */ : "big" /* ButtonSize.BIG */;
|
|
57
54
|
const tableContentClass = `${this.hasTableBody ? "table-content" : ""}`;
|
|
58
55
|
if (this.hasTableBody) {
|
|
59
|
-
return (index.h(index.Host, null, index.h("div", { class: tableClass }, index.h("slot", { name: "table-header" }), index.h("div", { class: tableContentClass }, index.h("slot", { name: "table-body" }), index.h("z-table-empty-box", { class: this.bordered && "bordered", message: this.message, subtitle: this.subtitle }, !!this.callToActionLabel && (index.h("z-button", { slot: "cta1", variant:
|
|
56
|
+
return (index.h(index.Host, null, index.h("div", { class: tableClass }, index.h("slot", { name: "table-header" }), index.h("div", { class: tableContentClass }, index.h("slot", { name: "table-body" }), index.h("z-table-empty-box", { class: this.bordered && "bordered", message: this.message, subtitle: this.subtitle }, !!this.callToActionLabel && (index.h("z-button", { slot: "cta1", variant: "tertiary" /* ButtonVariant.TERTIARY */, onClick: () => this.callToAction.emit(), size: buttonSize }, this.callToActionLabel)), !!this.callToActionTwoLabel && (index.h("z-button", { slot: "cta2", variant: "tertiary" /* ButtonVariant.TERTIARY */, onClick: () => this.callToActionTwo.emit(), size: buttonSize }, this.callToActionTwoLabel)))))));
|
|
60
57
|
}
|
|
61
|
-
return (index.h(index.Host, null, index.h("div", { class: tableClass }, index.h("slot", { name: "table-header" })), index.h("z-table-empty-box", { class: this.bordered && "bordered", message: this.message, subtitle: this.subtitle }, !!this.callToActionLabel && (index.h("z-button", { slot: "cta1", variant:
|
|
58
|
+
return (index.h(index.Host, null, index.h("div", { class: tableClass }, index.h("slot", { name: "table-header" })), index.h("z-table-empty-box", { class: this.bordered && "bordered", message: this.message, subtitle: this.subtitle }, !!this.callToActionLabel && (index.h("z-button", { slot: "cta1", variant: "tertiary" /* ButtonVariant.TERTIARY */, onClick: () => this.callToAction.emit(), size: buttonSize }, this.callToActionLabel)), !!this.callToActionTwoLabel && (index.h("z-button", { slot: "cta2", variant: "tertiary" /* ButtonVariant.TERTIARY */, onClick: () => this.callToActionTwo.emit(), size: buttonSize }, this.callToActionTwoLabel)))));
|
|
62
59
|
}
|
|
63
60
|
render() {
|
|
64
61
|
const tableClass = `table ${this.empty ? "table-empty" : ""} ${this.bordered ? "table-bordered" : ""}
|
|
@@ -9,6 +9,8 @@ const stylesCss = ".sc-z-tag-h{--z-icon-width:14px;--z-icon-height:14px;--z-tag-
|
|
|
9
9
|
const ZTag = class {
|
|
10
10
|
constructor(hostRef) {
|
|
11
11
|
index.registerInstance(this, hostRef);
|
|
12
|
+
this.icon = undefined;
|
|
13
|
+
this.expandable = undefined;
|
|
12
14
|
}
|
|
13
15
|
render() {
|
|
14
16
|
return (index.h(index.Host, { class: {
|
|
@@ -3,16 +3,13 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-e3299e0a.js');
|
|
6
|
-
const index$1 = require('./index-199cd650.js');
|
|
7
6
|
|
|
8
7
|
const stylesCss = ":host{position:fixed;z-index:10000;display:flex;flex-flow:column nowrap;margin-top:calc(var(--space-unit) * 2);margin-bottom:calc(var(--space-unit) * 2);font-family:var(--font-family-sans);font-weight:var(--font-rg)}::slotted(z-toast-notification){width:100vw}::slotted(:not(:last-child)){margin-bottom:calc(var(--space-unit) * 1)}:host([position=\"bottom-centre\"]),:host([position=\"bottom-right\"]),:host([position=\"bottom-left\"]){bottom:0;align-items:flex-end;justify-content:flex-end}:host([position=\"top-left\"]),:host([position=\"top-right\"]),:host([position=\"top-centre\"]){top:0;align-items:flex-start;justify-content:flex-start}@media only screen and (min-width: 768px){:host{margin:calc(var(--space-unit) * 3)}:host([position=\"top-centre\"]){top:0;left:50%;align-items:center;justify-content:flex-start;transform:translateX(-50%)}:host([position=\"top-left\"]){top:0;left:0;align-items:flex-start;justify-content:flex-start}:host([position=\"top-right\"]){top:0;right:0;align-items:flex-end;justify-content:flex-start}:host([position=\"bottom-centre\"]){bottom:0;left:50%;align-items:center;justify-content:flex-end;transform:translateX(-50%)}:host([position=\"bottom-right\"]){right:0;bottom:0;align-items:flex-end;justify-content:flex-end}:host([position=\"bottom-left\"]){bottom:0;left:0;align-items:flex-start;justify-content:flex-end}::slotted(z-toast-notification){width:50vw}}@media only screen and (min-width: 1366px){:host{margin:calc(var(--space-unit) * 4)}::slotted(z-toast-notification){width:33vw}}";
|
|
9
8
|
|
|
10
9
|
const ZToastNotificationList = class {
|
|
11
10
|
constructor(hostRef) {
|
|
12
11
|
index.registerInstance(this, hostRef);
|
|
13
|
-
|
|
14
|
-
this.position = index$1.ToastNotificationPosition.TOP_RIGHT;
|
|
15
|
-
/**Set the entry position of new notification in the list */
|
|
12
|
+
this.position = "top-right" /* ToastNotificationPosition.TOP_RIGHT */;
|
|
16
13
|
this.newestontop = true;
|
|
17
14
|
}
|
|
18
15
|
watchPropNewestontop(newValue) {
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-e3299e0a.js');
|
|
6
|
-
const index$1 = require('./index-199cd650.js');
|
|
7
6
|
const breakpoints = require('./breakpoints-88c4fd6c.js');
|
|
8
7
|
const hammer = require('./hammer-4f20813e.js');
|
|
9
8
|
require('./_commonjsHelpers-537d719a.js');
|
|
@@ -14,13 +13,17 @@ const ZToastNotification = class {
|
|
|
14
13
|
constructor(hostRef) {
|
|
15
14
|
index.registerInstance(this, hostRef);
|
|
16
15
|
this.toastClose = index.createEvent(this, "toastClose", 7);
|
|
17
|
-
|
|
16
|
+
this.isCloseEventCalled = false;
|
|
17
|
+
this.heading = undefined;
|
|
18
|
+
this.message = undefined;
|
|
19
|
+
this.closebutton = undefined;
|
|
20
|
+
this.autoclose = undefined;
|
|
18
21
|
this.pauseonfocusloss = true;
|
|
19
|
-
|
|
22
|
+
this.type = undefined;
|
|
20
23
|
this.isdraggable = true;
|
|
21
|
-
/** toast notification draggable percentage*/
|
|
22
24
|
this.draggablepercentage = 80;
|
|
23
|
-
this.
|
|
25
|
+
this.transition = undefined;
|
|
26
|
+
this.percentage = undefined;
|
|
24
27
|
}
|
|
25
28
|
watchPropIsdraggable(newValue) {
|
|
26
29
|
if (newValue) {
|
|
@@ -78,14 +81,14 @@ const ZToastNotification = class {
|
|
|
78
81
|
}
|
|
79
82
|
mapSlideOutClass() {
|
|
80
83
|
switch (this.transition) {
|
|
81
|
-
case
|
|
82
|
-
return
|
|
83
|
-
case
|
|
84
|
-
return
|
|
85
|
-
case
|
|
86
|
-
return
|
|
87
|
-
case
|
|
88
|
-
return
|
|
84
|
+
case "slide-in-down" /* ToastNotificationTransition.SLIDE_IN_DOWN */:
|
|
85
|
+
return "slide-out-up" /* ToastNotificationTransition.SLIDE_OUT_UP */;
|
|
86
|
+
case "slide-in-up" /* ToastNotificationTransition.SLIDE_IN_UP */:
|
|
87
|
+
return "slide-out-down" /* ToastNotificationTransition.SLIDE_OUT_DOWN */;
|
|
88
|
+
case "slide-in-left" /* ToastNotificationTransition.SLIDE_IN_LEFT */:
|
|
89
|
+
return "slide-out-right" /* ToastNotificationTransition.SLIDE_OUT_RIGHT */;
|
|
90
|
+
case "slide-in-right" /* ToastNotificationTransition.SLIDE_IN_RIGHT */:
|
|
91
|
+
return "slide-out-left" /* ToastNotificationTransition.SLIDE_OUT_LEFT */;
|
|
89
92
|
}
|
|
90
93
|
}
|
|
91
94
|
calculateDraggedPercentage(e) {
|
|
@@ -179,7 +182,7 @@ const ZToastNotification = class {
|
|
|
179
182
|
render() {
|
|
180
183
|
return (index.h(index.Host, { style: {
|
|
181
184
|
"--percentuale": `${this.percentage}%`,
|
|
182
|
-
}, class: this.transition ? this.transition :
|
|
185
|
+
}, class: this.transition ? this.transition : "slide-in-down" /* ToastNotificationTransition.SLIDE_IN_DOWN */, onAnimationEnd: (e) => {
|
|
183
186
|
if (this.autoclose && e.animationName.includes("slidein")) {
|
|
184
187
|
this.startClosingTimeout(this.autoclose);
|
|
185
188
|
}
|
|
@@ -10,9 +10,9 @@ const ZToggleButton = class {
|
|
|
10
10
|
constructor(hostRef) {
|
|
11
11
|
index.registerInstance(this, hostRef);
|
|
12
12
|
this.toggleClick = index.createEvent(this, "toggleClick", 7);
|
|
13
|
-
|
|
13
|
+
this.label = undefined;
|
|
14
14
|
this.isdisabled = false;
|
|
15
|
-
|
|
15
|
+
this.avoidclick = undefined;
|
|
16
16
|
this.opened = false;
|
|
17
17
|
}
|
|
18
18
|
emitToggleClick() {
|
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-e3299e0a.js');
|
|
6
|
-
const utils = require('./utils-
|
|
7
|
-
const index$1 = require('./index-199cd650.js');
|
|
6
|
+
const utils = require('./utils-7c92be74.js');
|
|
8
7
|
require('./breakpoints-88c4fd6c.js');
|
|
9
8
|
|
|
10
9
|
const stylesCss = ".sc-z-toggle-switch-h{position:relative;display:inline-flex;font-family:var(--font-family-sans);font-weight:var(--font-rg)}label.sc-z-toggle-switch{display:flex;flex-direction:row;align-items:center;cursor:pointer}label.disabled.sc-z-toggle-switch{cursor:default}label.right.sc-z-toggle-switch{flex-direction:row-reverse}label.sc-z-toggle-switch>span.sc-z-toggle-switch:first-child{color:var(--color-text01);letter-spacing:0}label.left.sc-z-toggle-switch>span.sc-z-toggle-switch:first-child{margin-right:var(--space-unit)}label.right.sc-z-toggle-switch>span.sc-z-toggle-switch:first-child{margin-left:var(--space-unit)}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch{position:relative;top:1px;left:1px;display:flex;width:calc(var(--space-unit) * 4);height:18px;align-items:center;background-color:var(--gray500);border-radius:var(--space-unit);color:var(--gray500);cursor:pointer}label.sc-z-toggle-switch>span.container.disabled.sc-z-toggle-switch,label.sc-z-toggle-switch>span.container.checked.disabled.sc-z-toggle-switch{background-color:var(--color-disabled01);cursor:default}label.sc-z-toggle-switch>span.container.checked.disabled.sc-z-toggle-switch>span.circle.sc-z-toggle-switch>z-icon.sc-z-toggle-switch{fill:var(--color-disabled01)}label.sc-z-toggle-switch>span.container.checked.sc-z-toggle-switch{background-color:var(--color-primary01);fill:var(--color-primary01)}input.sc-z-toggle-switch:focus:focus-visible+label.sc-z-toggle-switch>span.container.sc-z-toggle-switch:not(.disabled){box-shadow:var(--shadow-focus-primary);outline:none}input.sc-z-toggle-switch:focus:focus-visible+label.sc-z-toggle-switch>span.container.disabled.sc-z-toggle-switch{outline:none}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch:not(.disabled):hover{background-color:var(--color-hover-primary);fill:var(--color-hover-primary)}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch>span.circle.sc-z-toggle-switch{position:absolute;top:1px;left:1px;display:flex;width:calc(var(--space-unit) * 2);height:calc(var(--space-unit) * 2);align-items:center;justify-content:center;margin:0;background-color:var(--color-white);border-radius:7px;box-shadow:var(--shadow-1);transition:transform 0.3s ease}label.sc-z-toggle-switch>span.container.checked.sc-z-toggle-switch>span.circle.sc-z-toggle-switch{transform:translateX(calc(100% - 2px))}input[type=\"checkbox\"].sc-z-toggle-switch{position:absolute;z-index:-1;opacity:0;pointer-events:none}";
|
|
@@ -13,13 +12,9 @@ const ZToggleSwitch = class {
|
|
|
13
12
|
constructor(hostRef) {
|
|
14
13
|
index.registerInstance(this, hostRef);
|
|
15
14
|
this.toggleClick = index.createEvent(this, "toggleClick", 7);
|
|
16
|
-
/** Disabled flag */
|
|
17
15
|
this.disabled = false;
|
|
18
|
-
|
|
19
|
-
this.labelPosition = index$1.LabelPosition.LEFT;
|
|
20
|
-
/** Checked state */
|
|
16
|
+
this.labelPosition = "left" /* LabelPosition.LEFT */;
|
|
21
17
|
this.checked = false;
|
|
22
|
-
/** HTML id attribute to set to the internal checkbox */
|
|
23
18
|
this.htmlid = `toggle-switch-id-${utils.randomId()}`;
|
|
24
19
|
}
|
|
25
20
|
emitToggleClick() {
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-e3299e0a.js');
|
|
6
|
-
const index$1 = require('./index-199cd650.js');
|
|
7
6
|
|
|
8
7
|
const stylesCss = ":host{--z-tooltip-theme--surface:var(--color-surface01);--z-tooltip-theme--text:var(--color-text01);--arrow-size:6px;--edge-offset:calc(-1 * (var(--arrow-size) + calc(var(--space-unit) * 2)));position:relative;display:none;min-width:calc(var(--space-unit) * 8);min-height:calc(var(--space-unit) * 4);align-items:center;justify-content:center;padding:var(--space-unit);background:var(--z-tooltip-theme--surface);border-radius:var(--border-radius-small);color:var(--z-tooltip-theme--text);fill:currentcolor;filter:drop-shadow(0 4px 8px var(--shadow-color-base));font-family:var(--font-family-sans);text-align:center;will-change:filter}:host(.legacy){display:inline-flex;min-width:auto;max-width:200px;min-height:auto;padding:calc(var(--space-unit) * 2);border:var(--border-size-small) solid var(--gray200);border-radius:var(--border-radius);filter:drop-shadow(0 0 2px rgb(0 0 0 / 8%));font-size:12px;font-style:italic;letter-spacing:0.32px;line-height:16px}:host(.legacy)::before{--arrow-size:14px}:host([position])::before{--arrow-edge-offset:calc(100% - var(--arrow-size) - var(--space-unit));--arrow-center-x-offset:calc(50% - calc(var(--arrow-size) / 2));--arrow-center-y-offset:calc(100% - calc(var(--arrow-size) / 2));position:absolute;width:var(--arrow-size);height:var(--arrow-size);background:inherit;content:\"\";transform:rotate(45deg)}:host([open][style*=\"top:\"]),:host([open][style*=\"inset:\"]){display:inline-flex}:host([position^=\"top\"]){margin-bottom:var(--space-unit)}:host([position=\"right\"]){margin-left:var(--space-unit)}:host([position=\"top_right\"]),:host([position=\"bottom_right\"]){margin-left:var(--edge-offset)}:host([position^=\"bottom\"]){margin-top:var(--space-unit)}:host([position=\"left\"]){margin-right:var(--space-unit)}:host([position=\"top_left\"]),:host([position=\"bottom_left\"]){margin-right:var(--edge-offset)}:host([position^=\"top\"])::before{top:var(--arrow-center-y-offset)}:host([position^=\"bottom\"])::before{bottom:var(--arrow-center-y-offset)}:host([position=\"top\"])::before,:host([position=\"bottom\"])::before{left:var(--arrow-center-x-offset)}:host([position=\"right\"])::before,:host([position=\"left\"])::before{top:var(--arrow-center-x-offset)}:host([position=\"right\"])::before{right:var(--arrow-center-y-offset)}:host([position=\"top_right\"])::before,:host([position=\"bottom_right\"])::before{right:var(--arrow-edge-offset)}:host([position=\"left\"])::before{left:var(--arrow-center-y-offset)}:host([position=\"top_left\"])::before,:host([position=\"bottom_left\"])::before{left:var(--arrow-edge-offset)}::slotted(*){overflow:auto;flex:1 auto}";
|
|
9
8
|
|
|
@@ -86,16 +85,22 @@ const ZTooltipDeprecated = class {
|
|
|
86
85
|
constructor(hostRef) {
|
|
87
86
|
index.registerInstance(this, hostRef);
|
|
88
87
|
this.positionChange = index.createEvent(this, "positionChange", 7);
|
|
89
|
-
|
|
90
|
-
this.type =
|
|
91
|
-
/**
|
|
92
|
-
* The open state of the tooltip.
|
|
93
|
-
*/
|
|
88
|
+
this.content = undefined;
|
|
89
|
+
this.type = "auto" /* PopoverPositions.AUTO */;
|
|
94
90
|
this.open = false;
|
|
91
|
+
this.bindTo = undefined;
|
|
92
|
+
this.position = undefined;
|
|
95
93
|
}
|
|
96
94
|
validateType(newValue) {
|
|
97
|
-
|
|
98
|
-
|
|
95
|
+
// FIXME: avoid this check and treat "AUTO" as the default case when modifying tooltip position
|
|
96
|
+
if (newValue && newValue !== "auto" /* PopoverPositions.AUTO */ && newValue !== "bottom" /* PopoverPositions.BOTTOM */
|
|
97
|
+
&& newValue !== "bottom_left" /* PopoverPositions.BOTTOM_LEFT */ && newValue !== "bottom_right" /* PopoverPositions.BOTTOM_RIGHT */
|
|
98
|
+
&& newValue !== "left" /* PopoverPositions.LEFT */ && newValue !== "left_bottom" /* PopoverPositions.LEFT_BOTTOM */
|
|
99
|
+
&& newValue !== "left_top" /* PopoverPositions.LEFT_TOP */ && newValue !== "right" /* PopoverPositions.RIGHT */
|
|
100
|
+
&& newValue !== "right_bottom" /* PopoverPositions.RIGHT_BOTTOM */ && newValue !== "right_top" /* PopoverPositions.RIGHT_TOP */
|
|
101
|
+
&& newValue !== "top" /* PopoverPositions.TOP */ && newValue !== "top_left" /* PopoverPositions.TOP_LEFT */
|
|
102
|
+
&& newValue !== "top_right" /* PopoverPositions.TOP_RIGHT */) {
|
|
103
|
+
this.type = "auto" /* PopoverPositions.AUTO */;
|
|
99
104
|
}
|
|
100
105
|
}
|
|
101
106
|
onPositionChange() {
|
|
@@ -166,29 +171,29 @@ const ZTooltipDeprecated = class {
|
|
|
166
171
|
const availableHeight = availableTop + availableBottom + boundingRect.height;
|
|
167
172
|
const availableWidth = availableLeft + availableRight + boundingRect.width;
|
|
168
173
|
let position = this.type;
|
|
169
|
-
if (position ===
|
|
174
|
+
if (position === "auto" /* PopoverPositions.AUTO */) {
|
|
170
175
|
/**
|
|
171
176
|
* The `AUTO` position tries to place the tooltip in the "safest" area,
|
|
172
177
|
* where there's more space available.
|
|
173
178
|
*/
|
|
174
179
|
const positions = [];
|
|
175
180
|
if (availableTop / availableHeight > 0.9) {
|
|
176
|
-
positions.unshift(
|
|
181
|
+
positions.unshift("top" /* PopoverPositions.TOP */);
|
|
177
182
|
}
|
|
178
183
|
else if (availableTop / availableHeight > 0.6) {
|
|
179
|
-
positions.push(
|
|
184
|
+
positions.push("top" /* PopoverPositions.TOP */);
|
|
180
185
|
}
|
|
181
186
|
else if (availableTop / availableHeight < 0.1) {
|
|
182
|
-
positions.unshift(
|
|
187
|
+
positions.unshift("bottom" /* PopoverPositions.BOTTOM */);
|
|
183
188
|
}
|
|
184
189
|
else {
|
|
185
|
-
positions.push(
|
|
190
|
+
positions.push("bottom" /* PopoverPositions.BOTTOM */);
|
|
186
191
|
}
|
|
187
192
|
if (availableLeft / availableWidth > 0.6) {
|
|
188
|
-
positions.push(
|
|
193
|
+
positions.push("left" /* PopoverPositions.LEFT */);
|
|
189
194
|
}
|
|
190
195
|
else if (availableLeft / availableWidth < 0.4) {
|
|
191
|
-
positions.push(
|
|
196
|
+
positions.push("right" /* PopoverPositions.RIGHT */);
|
|
192
197
|
}
|
|
193
198
|
position = positions.join("_");
|
|
194
199
|
}
|
|
@@ -200,38 +205,38 @@ const ZTooltipDeprecated = class {
|
|
|
200
205
|
const offsetRight = boundingRect.right - relativeBoundingRect.right;
|
|
201
206
|
const offsetBottom = boundingRect.bottom - relativeBoundingRect.bottom;
|
|
202
207
|
const offsetLeft = boundingRect.left - relativeBoundingRect.left;
|
|
203
|
-
if (position ===
|
|
204
|
-
position ===
|
|
205
|
-
position ===
|
|
208
|
+
if (position === "top" /* PopoverPositions.TOP */ ||
|
|
209
|
+
position === "top_right" /* PopoverPositions.TOP_RIGHT */ ||
|
|
210
|
+
position === "top_left" /* PopoverPositions.TOP_LEFT */) {
|
|
206
211
|
style.top = "auto";
|
|
207
212
|
style.bottom = `${offsetBottom + boundingRect.height}px`;
|
|
208
213
|
}
|
|
209
|
-
if (position ===
|
|
210
|
-
position ===
|
|
211
|
-
position ===
|
|
214
|
+
if (position === "bottom" /* PopoverPositions.BOTTOM */ ||
|
|
215
|
+
position === "bottom_right" /* PopoverPositions.BOTTOM_RIGHT */ ||
|
|
216
|
+
position === "bottom_left" /* PopoverPositions.BOTTOM_LEFT */) {
|
|
212
217
|
style.top = `${offsetTop + boundingRect.height}px`;
|
|
213
218
|
style.bottom = "auto";
|
|
214
219
|
}
|
|
215
|
-
if (position ===
|
|
220
|
+
if (position === "top" /* PopoverPositions.TOP */ || position === "bottom" /* PopoverPositions.BOTTOM */) {
|
|
216
221
|
style.left = `${offsetLeft + boundingRect.width / 2 - this.host.clientWidth / 2}px`;
|
|
217
222
|
}
|
|
218
|
-
if (position ===
|
|
223
|
+
if (position === "top_right" /* PopoverPositions.TOP_RIGHT */ || position === "bottom_right" /* PopoverPositions.BOTTOM_RIGHT */) {
|
|
219
224
|
style.right = "auto";
|
|
220
225
|
style.left = `${offsetLeft + boundingRect.width}px`;
|
|
221
226
|
}
|
|
222
|
-
if (position ===
|
|
227
|
+
if (position === "top_left" /* PopoverPositions.TOP_LEFT */ || position === "bottom_left" /* PopoverPositions.BOTTOM_LEFT */) {
|
|
223
228
|
style.left = "auto";
|
|
224
229
|
style.right = `${offsetRight + boundingRect.width}px`;
|
|
225
230
|
}
|
|
226
|
-
if (position ===
|
|
231
|
+
if (position === "right" /* PopoverPositions.RIGHT */ || position === "left" /* PopoverPositions.LEFT */) {
|
|
227
232
|
style.top = `${offsetTop + boundingRect.height / 2 - this.host.clientHeight / 2}px`;
|
|
228
233
|
style.bottom = "auto";
|
|
229
234
|
}
|
|
230
|
-
if (position ===
|
|
235
|
+
if (position === "right" /* PopoverPositions.RIGHT */) {
|
|
231
236
|
style.right = "auto";
|
|
232
237
|
style.left = `${offsetLeft + boundingRect.width}px`;
|
|
233
238
|
}
|
|
234
|
-
if (position ===
|
|
239
|
+
if (position === "left" /* PopoverPositions.LEFT */) {
|
|
235
240
|
style.left = "auto";
|
|
236
241
|
style.right = `${offsetRight + boundingRect.width}px`;
|
|
237
242
|
}
|
|
@@ -3,21 +3,16 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-e3299e0a.js');
|
|
6
|
-
const index$1 = require('./index-199cd650.js');
|
|
7
6
|
|
|
8
7
|
const stylesCss = ":host{--z-tooltip-theme--surface:var(--color-surface01);--z-tooltip-theme--text:var(--color-text01);--z-tooltip-shadow-filter:drop-shadow(0 1px 2px var(--shadow-color-base))}:host([dark]) z-popover{--z-popover-theme--surface:var(--color-surface05)}z-popover{--z-popover-padding:var(--space-unit);--z-popover-theme--surface:var(--z-tooltip-theme--surface);--z-popover-theme--text:var(--z-tooltip-theme--text);--z-popover-shadow-filter:var(--z-tooltip-shadow-filter)}";
|
|
9
8
|
|
|
10
9
|
const ZTooltip = class {
|
|
11
10
|
constructor(hostRef) {
|
|
12
11
|
index.registerInstance(this, hostRef);
|
|
13
|
-
|
|
14
|
-
this.position = index$1.PopoverPositions.AUTO;
|
|
15
|
-
/** Enable tooltip dark mode. */
|
|
12
|
+
this.position = "auto" /* PopoverPositions.AUTO */;
|
|
16
13
|
this.dark = false;
|
|
17
|
-
/**
|
|
18
|
-
* The open state of the tooltip.
|
|
19
|
-
*/
|
|
20
14
|
this.open = false;
|
|
15
|
+
this.bindTo = undefined;
|
|
21
16
|
}
|
|
22
17
|
onPopoverOpenChange() {
|
|
23
18
|
this.open = this.popover.open;
|
|
@@ -12,9 +12,13 @@ const ZUserDropdown = class {
|
|
|
12
12
|
index.registerInstance(this, hostRef);
|
|
13
13
|
this.userButtonClick = index.createEvent(this, "userButtonClick", 7);
|
|
14
14
|
this.dropdownMenuLinkClick = index.createEvent(this, "dropdownMenuLinkClick", 7);
|
|
15
|
-
|
|
15
|
+
this.logged = undefined;
|
|
16
|
+
this.userFullName = undefined;
|
|
17
|
+
this.userEmail = undefined;
|
|
18
|
+
this.menuContent = undefined;
|
|
16
19
|
this.useInverseColors = false;
|
|
17
20
|
this.isMenuOpen = false;
|
|
21
|
+
this.isMobile = undefined;
|
|
18
22
|
this.handleLoggedButtonClick = this.handleLoggedButtonClick.bind(this);
|
|
19
23
|
this.emitDropdownMenuLinkClick = this.emitDropdownMenuLinkClick.bind(this);
|
|
20
24
|
}
|
|
@@ -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() {
|