@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
|
@@ -1,31 +1,27 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
-
import { NavigationTabsSize, NavigationTabsOrientation } from "../../../../beans";
|
|
3
2
|
/**
|
|
4
3
|
* Navigation tabs component.
|
|
5
4
|
* @slot - Main slot. Use `z-navigation-tab` or `z-navigation-tab-link` components as children.
|
|
6
5
|
*/
|
|
7
6
|
export class ZNavigationTabs {
|
|
8
7
|
constructor() {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
this.
|
|
13
|
-
|
|
14
|
-
* Navigation tabs size.
|
|
15
|
-
*/
|
|
16
|
-
this.size = NavigationTabsSize.BIG;
|
|
8
|
+
this.orientation = "horizontal" /* NavigationTabsOrientation.HORIZONTAL */;
|
|
9
|
+
this.size = "big" /* NavigationTabsSize.BIG */;
|
|
10
|
+
this.canNavigate = undefined;
|
|
11
|
+
this.canNavigatePrev = undefined;
|
|
12
|
+
this.canNavigateNext = undefined;
|
|
17
13
|
}
|
|
18
14
|
/**
|
|
19
15
|
* Getter for the direction to check based on current orientation.
|
|
20
16
|
*/
|
|
21
17
|
get direction() {
|
|
22
|
-
return this.orientation == NavigationTabsOrientation.HORIZONTAL ? "Left" : "Top";
|
|
18
|
+
return this.orientation == "horizontal" /* NavigationTabsOrientation.HORIZONTAL */ ? "Left" : "Top";
|
|
23
19
|
}
|
|
24
20
|
/**
|
|
25
21
|
* Getter for the dimension to check based on current orientation.
|
|
26
22
|
*/
|
|
27
23
|
get dimension() {
|
|
28
|
-
return this.orientation == NavigationTabsOrientation.HORIZONTAL ? "Width" : "Height";
|
|
24
|
+
return this.orientation == "horizontal" /* NavigationTabsOrientation.HORIZONTAL */ ? "Width" : "Height";
|
|
29
25
|
}
|
|
30
26
|
/**
|
|
31
27
|
* Set the `size` prop to all `z-navigation-tab` children.
|
|
@@ -106,9 +102,9 @@ export class ZNavigationTabs {
|
|
|
106
102
|
}
|
|
107
103
|
render() {
|
|
108
104
|
return (h(Host, { class: {
|
|
109
|
-
"interactive-2": this.size === NavigationTabsSize.SMALL
|
|
110
|
-
"interactive-1": this.size !== NavigationTabsSize.SMALL
|
|
111
|
-
}, scrollable: this.canNavigate }, this.canNavigate && (h("button", { class: "navigation-button", onClick: this.navigateBackwards.bind(this), tabindex: "-1", disabled: !this.canNavigatePrev }, h("z-icon", { name: this.orientation === NavigationTabsOrientation.HORIZONTAL ? "chevron-left" : "chevron-up", width: 16, height: 16 }))), h("nav", { role: "tablist", ref: (el) => (this.tabsNav = el !== null && el !== void 0 ? el : this.tabsNav), onScroll: this.checkScrollEnabled.bind(this) }, h("slot", null)), this.canNavigate && (h("button", { class: "navigation-button", onClick: this.navigateForward.bind(this), tabindex: "-1", disabled: !this.canNavigateNext }, h("z-icon", { name: this.orientation === NavigationTabsOrientation.HORIZONTAL ? "chevron-right" : "chevron-down", width: 16, height: 16 })))));
|
|
105
|
+
"interactive-2": this.size === "small" /* NavigationTabsSize.SMALL */,
|
|
106
|
+
"interactive-1": this.size !== "small" /* NavigationTabsSize.SMALL */,
|
|
107
|
+
}, scrollable: this.canNavigate }, this.canNavigate && (h("button", { class: "navigation-button", onClick: this.navigateBackwards.bind(this), tabindex: "-1", disabled: !this.canNavigatePrev }, h("z-icon", { name: this.orientation === "horizontal" /* NavigationTabsOrientation.HORIZONTAL */ ? "chevron-left" : "chevron-up", width: 16, height: 16 }))), h("nav", { role: "tablist", ref: (el) => (this.tabsNav = el !== null && el !== void 0 ? el : this.tabsNav), onScroll: this.checkScrollEnabled.bind(this) }, h("slot", null)), this.canNavigate && (h("button", { class: "navigation-button", onClick: this.navigateForward.bind(this), tabindex: "-1", disabled: !this.canNavigateNext }, h("z-icon", { name: this.orientation === "horizontal" /* NavigationTabsOrientation.HORIZONTAL */ ? "chevron-right" : "chevron-down", width: 16, height: 16 })))));
|
|
112
108
|
}
|
|
113
109
|
static get is() { return "z-navigation-tabs"; }
|
|
114
110
|
static get encapsulation() { return "shadow"; }
|
|
@@ -7,41 +7,19 @@ const SUPPORT_INTERSECTION_OBSERVER = typeof IntersectionObserver !== "undefined
|
|
|
7
7
|
*/
|
|
8
8
|
export class ZAppHeader {
|
|
9
9
|
constructor() {
|
|
10
|
-
/**
|
|
11
|
-
* Stuck mode for the header.
|
|
12
|
-
* You can programmatically set it using an IntersectionObserver.
|
|
13
|
-
* **Optional**
|
|
14
|
-
*/
|
|
15
|
-
this.stuck = false;
|
|
16
|
-
/**
|
|
17
|
-
* Should place an overlay over the hero image.
|
|
18
|
-
* Useful for legibility purpose.
|
|
19
|
-
* **Optional**
|
|
20
|
-
*/
|
|
21
|
-
this.overlay = false;
|
|
22
|
-
/**
|
|
23
|
-
* Control menu bar position in the header.
|
|
24
|
-
* - auto: the menu bar is positioned near the title
|
|
25
|
-
* - stack: the menu bar is positioned below the title
|
|
26
|
-
* - offcanvas: the menu bar is not displayed and a burger icon appears to open the offcanvas menu
|
|
27
|
-
*
|
|
28
|
-
* **Optional**
|
|
29
|
-
*/
|
|
30
|
-
this.flow = "auto";
|
|
31
|
-
/**
|
|
32
|
-
* The opening state of the drawer.
|
|
33
|
-
*/
|
|
34
|
-
this.drawerOpen = false;
|
|
35
|
-
/**
|
|
36
|
-
* The stucked state of the bar.
|
|
37
|
-
*/
|
|
38
|
-
this.stucked = false;
|
|
39
10
|
this.observer = SUPPORT_INTERSECTION_OBSERVER &&
|
|
40
11
|
new IntersectionObserver(([entry]) => {
|
|
41
12
|
this.stucked = !entry.isIntersecting;
|
|
42
13
|
}, {
|
|
43
14
|
threshold: 0.5,
|
|
44
15
|
});
|
|
16
|
+
this.stuck = false;
|
|
17
|
+
this.hero = undefined;
|
|
18
|
+
this.overlay = false;
|
|
19
|
+
this.flow = "auto";
|
|
20
|
+
this.drawerOpen = false;
|
|
21
|
+
this.stucked = false;
|
|
22
|
+
this.menuLength = undefined;
|
|
45
23
|
this.openDrawer = this.openDrawer.bind(this);
|
|
46
24
|
this.closeDrawer = this.closeDrawer.bind(this);
|
|
47
25
|
this.collectMenuElements.bind(this);
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { ThemeVariant } from "../../../beans";
|
|
3
2
|
export class ZAppSwitcher {
|
|
4
3
|
constructor() {
|
|
5
|
-
|
|
6
|
-
this.theme = ThemeVariant.DARK;
|
|
4
|
+
this.theme = "dark" /* ThemeVariant.DARK */;
|
|
7
5
|
this.isopen = false;
|
|
8
6
|
this.emitAppButtonClick = this.emitAppButtonClick.bind(this);
|
|
9
7
|
}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
-
import { DividerOrientation, ThemeVariant } from "../../../beans";
|
|
3
2
|
import { mobileBreakpoint } from "../../../constants/breakpoints";
|
|
4
3
|
export class ZAppTopbar {
|
|
5
4
|
constructor() {
|
|
6
|
-
/** theme variant, default 'dark' */
|
|
7
|
-
this.theme = ThemeVariant.DARK;
|
|
8
5
|
this.topbarLinks = [];
|
|
6
|
+
this.theme = "dark" /* ThemeVariant.DARK */;
|
|
7
|
+
this.contentMaxWidth = undefined;
|
|
8
|
+
this.topbarContent = undefined;
|
|
9
|
+
this.logoLink = undefined;
|
|
10
|
+
this.showAppSwitcher = undefined;
|
|
11
|
+
this.isMobile = undefined;
|
|
9
12
|
}
|
|
10
13
|
handleResize() {
|
|
11
14
|
this.isMobile = window.innerWidth <= mobileBreakpoint;
|
|
@@ -19,13 +22,13 @@ export class ZAppTopbar {
|
|
|
19
22
|
}
|
|
20
23
|
}
|
|
21
24
|
renderTopbarLinks() {
|
|
22
|
-
return this.topbarLinks.map((link) => (h("z-link", { htmlid: link.id, textcolor: this.theme === ThemeVariant.LIGHT ? "black" : "white", href: link.link, target: link.target, icon: this.isMobile ? link.icon : undefined }, !this.isMobile && link.label)));
|
|
25
|
+
return this.topbarLinks.map((link) => (h("z-link", { htmlid: link.id, textcolor: this.theme === "light" /* ThemeVariant.LIGHT */ ? "black" : "white", href: link.link, target: link.target, icon: this.isMobile ? link.icon : undefined }, !this.isMobile && link.label)));
|
|
23
26
|
}
|
|
24
27
|
render() {
|
|
25
28
|
return (h(Host, { class: {
|
|
26
29
|
[this.theme]: true,
|
|
27
30
|
"limited-width": !!this.contentMaxWidth,
|
|
28
|
-
} }, h("div", { id: "content-container", style: this.contentMaxWidth ? { "--mw": `${this.contentMaxWidth}px` } : {} }, h("div", { id: "left-panel", class: "content-panel" }, h("z-logo", { mobileLogo: this.isMobile, width: this.isMobile ? 32 : 128, height: this.isMobile ? 40 : 32, imageAlt: "zanichelli-logo", link: this.logoLink, targetBlank: true }), this.isMobile && this.renderTopbarLinks()), h("div", { id: "right-panel", class: "content-panel" }, !this.isMobile && this.renderTopbarLinks(), this.showAppSwitcher && h("z-app-switcher", { theme: this.theme }), h("div", { id: "divider-container" }, h("z-divider", { orientation: DividerOrientation.VERTICAL
|
|
31
|
+
} }, h("div", { id: "content-container", style: this.contentMaxWidth ? { "--mw": `${this.contentMaxWidth}px` } : {} }, h("div", { id: "left-panel", class: "content-panel" }, h("z-logo", { mobileLogo: this.isMobile, width: this.isMobile ? 32 : 128, height: this.isMobile ? 40 : 32, imageAlt: "zanichelli-logo", link: this.logoLink, targetBlank: true }), this.isMobile && this.renderTopbarLinks()), h("div", { id: "right-panel", class: "content-panel" }, !this.isMobile && this.renderTopbarLinks(), this.showAppSwitcher && h("z-app-switcher", { theme: this.theme }), h("div", { id: "divider-container" }, h("z-divider", { orientation: "vertical" /* DividerOrientation.VERTICAL */, color: this.theme === "light" /* ThemeVariant.LIGHT */ ? "gray800" : "color-white" })), h("slot", { name: "login" })))));
|
|
29
32
|
}
|
|
30
33
|
static get is() { return "z-app-topbar"; }
|
|
31
34
|
static get encapsulation() { return "shadow"; }
|
|
@@ -4,23 +4,17 @@ import { h } from "@stencil/core";
|
|
|
4
4
|
*/
|
|
5
5
|
export class ZLink {
|
|
6
6
|
constructor() {
|
|
7
|
-
|
|
7
|
+
this.htmlid = undefined;
|
|
8
|
+
this.href = undefined;
|
|
8
9
|
this.target = "_self";
|
|
9
|
-
/** tabindex link attribute (optional) */
|
|
10
10
|
this.htmltabindex = 0;
|
|
11
|
-
/** disable link flag (optional) */
|
|
12
11
|
this.isdisabled = false;
|
|
13
|
-
/** active link flag (optional) */
|
|
14
12
|
this.isactive = false;
|
|
15
|
-
/** white variant flag (optional) */
|
|
16
13
|
this.iswhite = false;
|
|
17
|
-
/** link text variant (optional) */
|
|
18
14
|
this.textcolor = "primary";
|
|
19
|
-
|
|
15
|
+
this.icon = undefined;
|
|
20
16
|
this.big = false;
|
|
21
|
-
/** link icon position (optional) */
|
|
22
17
|
this.iconposition = "left";
|
|
23
|
-
/** draw underline on text (optional) */
|
|
24
18
|
this.underline = false;
|
|
25
19
|
this.iconSize = 18;
|
|
26
20
|
this.emitZLinkClick = this.emitZLinkClick.bind(this);
|
|
@@ -6,18 +6,11 @@ import { h, Host } from "@stencil/core";
|
|
|
6
6
|
*/
|
|
7
7
|
export class ZMenu {
|
|
8
8
|
constructor() {
|
|
9
|
-
|
|
10
|
-
* Flag to set the display mode of the list.
|
|
11
|
-
* If true, the list will be absolutely positioned under the menu label,
|
|
12
|
-
* stacked beneath it otherwise.
|
|
13
|
-
* @default false
|
|
14
|
-
*/
|
|
9
|
+
this.active = undefined;
|
|
15
10
|
this.floating = false;
|
|
16
|
-
/**
|
|
17
|
-
* The opening state of the menu.
|
|
18
|
-
* @default false
|
|
19
|
-
*/
|
|
20
11
|
this.open = false;
|
|
12
|
+
this.hasHeader = undefined;
|
|
13
|
+
this.hasContent = undefined;
|
|
21
14
|
this.toggle = this.toggle.bind(this);
|
|
22
15
|
this.checkContent = this.checkContent.bind(this);
|
|
23
16
|
this.onItemsChange = this.onItemsChange.bind(this);
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { KeyboardKeyCode } from "../../../beans/index";
|
|
3
2
|
import { handleKeyboardSubmit, getClickedElement, getElementTree } from "../../../utils/utils";
|
|
4
3
|
export class ZMenuDropdown {
|
|
5
4
|
constructor() {
|
|
5
|
+
this.nomeutente = undefined;
|
|
6
|
+
this.menucontent = undefined;
|
|
7
|
+
this.buttonid = undefined;
|
|
6
8
|
this.ismenuopen = false;
|
|
7
9
|
this.handleToggle = this.handleToggle.bind(this);
|
|
8
10
|
this.handleFocus = this.handleFocus.bind(this);
|
|
@@ -27,7 +29,7 @@ export class ZMenuDropdown {
|
|
|
27
29
|
this.ismenuopen = !this.ismenuopen;
|
|
28
30
|
}
|
|
29
31
|
handleFocus(e) {
|
|
30
|
-
if (e instanceof KeyboardEvent && e.keyCode !== KeyboardKeyCode.TAB) {
|
|
32
|
+
if (e instanceof KeyboardEvent && e.keyCode !== 9 /* KeyboardKeyCode.TAB */) {
|
|
31
33
|
return;
|
|
32
34
|
}
|
|
33
35
|
const tree = getElementTree(getClickedElement());
|
|
@@ -4,6 +4,11 @@ import { h, Host } from "@stencil/core";
|
|
|
4
4
|
* @slot item - Single entry of the section. Can be slotted multiple times to insert items.
|
|
5
5
|
*/
|
|
6
6
|
export class ZMenuSection {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.active = undefined;
|
|
9
|
+
this.open = undefined;
|
|
10
|
+
this.hasContent = undefined;
|
|
11
|
+
}
|
|
7
12
|
toggle() {
|
|
8
13
|
if (!this.hasContent) {
|
|
9
14
|
return;
|
|
@@ -2,9 +2,13 @@ import { h, Host } from "@stencil/core";
|
|
|
2
2
|
import { mobileBreakpoint } from "../../../constants/breakpoints";
|
|
3
3
|
export class ZUserDropdown {
|
|
4
4
|
constructor() {
|
|
5
|
-
|
|
5
|
+
this.logged = undefined;
|
|
6
|
+
this.userFullName = undefined;
|
|
7
|
+
this.userEmail = undefined;
|
|
8
|
+
this.menuContent = undefined;
|
|
6
9
|
this.useInverseColors = false;
|
|
7
10
|
this.isMenuOpen = false;
|
|
11
|
+
this.isMobile = undefined;
|
|
8
12
|
this.handleLoggedButtonClick = this.handleLoggedButtonClick.bind(this);
|
|
9
13
|
this.emitDropdownMenuLinkClick = this.emitDropdownMenuLinkClick.bind(this);
|
|
10
14
|
}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { ButtonVariant } from "../../../beans";
|
|
3
2
|
export class ZCookiebar {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.cookiepolicyurl = undefined;
|
|
5
|
+
this.hide = undefined;
|
|
6
|
+
this.callback = undefined;
|
|
7
|
+
}
|
|
4
8
|
emitAccept(ev) {
|
|
5
9
|
this.accept.emit({ ev });
|
|
6
10
|
}
|
|
@@ -19,7 +23,7 @@ export class ZCookiebar {
|
|
|
19
23
|
}
|
|
20
24
|
}
|
|
21
25
|
renderContentSlot() {
|
|
22
|
-
return (h("div", { class: "content", slot: "content" }, h("div", null, h("h2", null, "Su questo sito usiamo i cookie."), h("div", null, h("p", null, "Se continui a navigare ci permetti di farlo secondo le regole spiegate nella nostra informativa sulla privacy relativa ai \u00A0", h("a", { href: this.cookiepolicyurl, target: "_blank" }, "cookie"), "."))), h("z-button", { variant: ButtonVariant.PRIMARY
|
|
26
|
+
return (h("div", { class: "content", slot: "content" }, h("div", null, h("h2", null, "Su questo sito usiamo i cookie."), h("div", null, h("p", null, "Se continui a navigare ci permetti di farlo secondo le regole spiegate nella nostra informativa sulla privacy relativa ai \u00A0", h("a", { href: this.cookiepolicyurl, target: "_blank" }, "cookie"), "."))), h("z-button", { variant: "primary" /* ButtonVariant.PRIMARY */, onClick: (ev) => this.handleOkButtonClick(ev), onKeyUp: (ev) => this.handleOkButtonKeyUp(ev) }, "ACCETTA")));
|
|
23
27
|
}
|
|
24
28
|
render() {
|
|
25
29
|
return h("z-candybar", { class: `${this.hide ? "hidden" : ""}` }, this.renderContentSlot());
|
|
@@ -6,14 +6,11 @@ import { h, Host } from "@stencil/core";
|
|
|
6
6
|
*/
|
|
7
7
|
export class ZNotification {
|
|
8
8
|
constructor() {
|
|
9
|
-
|
|
9
|
+
this.contenticonname = undefined;
|
|
10
|
+
this.actiontext = undefined;
|
|
11
|
+
this.type = undefined;
|
|
10
12
|
this.showclose = false;
|
|
11
|
-
/**
|
|
12
|
-
* Enable shadow.
|
|
13
|
-
* @deprecated shadow is available only for the `sticky` version of the notification.
|
|
14
|
-
*/
|
|
15
13
|
this.showshadow = false;
|
|
16
|
-
/** Enable sticky notification bar. */
|
|
17
14
|
this.sticky = false;
|
|
18
15
|
this.handleActionButtonClick = this.handleActionButtonClick.bind(this);
|
|
19
16
|
this.handleCloseButtonClick = this.handleCloseButtonClick.bind(this);
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
-
import { ToastNotificationTransition } from "../../../beans";
|
|
3
2
|
import { mobileBreakpoint } from "../../../constants/breakpoints";
|
|
4
3
|
import Hammer from "hammerjs";
|
|
5
4
|
export class ZToastNotification {
|
|
6
5
|
constructor() {
|
|
7
|
-
|
|
6
|
+
this.isCloseEventCalled = false;
|
|
7
|
+
this.heading = undefined;
|
|
8
|
+
this.message = undefined;
|
|
9
|
+
this.closebutton = undefined;
|
|
10
|
+
this.autoclose = undefined;
|
|
8
11
|
this.pauseonfocusloss = true;
|
|
9
|
-
|
|
12
|
+
this.type = undefined;
|
|
10
13
|
this.isdraggable = true;
|
|
11
|
-
/** toast notification draggable percentage*/
|
|
12
14
|
this.draggablepercentage = 80;
|
|
13
|
-
this.
|
|
15
|
+
this.transition = undefined;
|
|
16
|
+
this.percentage = undefined;
|
|
14
17
|
}
|
|
15
18
|
watchPropIsdraggable(newValue) {
|
|
16
19
|
if (newValue) {
|
|
@@ -68,14 +71,14 @@ export class ZToastNotification {
|
|
|
68
71
|
}
|
|
69
72
|
mapSlideOutClass() {
|
|
70
73
|
switch (this.transition) {
|
|
71
|
-
case ToastNotificationTransition.SLIDE_IN_DOWN
|
|
72
|
-
return ToastNotificationTransition.SLIDE_OUT_UP
|
|
73
|
-
case ToastNotificationTransition.SLIDE_IN_UP
|
|
74
|
-
return ToastNotificationTransition.SLIDE_OUT_DOWN
|
|
75
|
-
case ToastNotificationTransition.SLIDE_IN_LEFT
|
|
76
|
-
return ToastNotificationTransition.SLIDE_OUT_RIGHT
|
|
77
|
-
case ToastNotificationTransition.SLIDE_IN_RIGHT
|
|
78
|
-
return ToastNotificationTransition.SLIDE_OUT_LEFT
|
|
74
|
+
case "slide-in-down" /* ToastNotificationTransition.SLIDE_IN_DOWN */:
|
|
75
|
+
return "slide-out-up" /* ToastNotificationTransition.SLIDE_OUT_UP */;
|
|
76
|
+
case "slide-in-up" /* ToastNotificationTransition.SLIDE_IN_UP */:
|
|
77
|
+
return "slide-out-down" /* ToastNotificationTransition.SLIDE_OUT_DOWN */;
|
|
78
|
+
case "slide-in-left" /* ToastNotificationTransition.SLIDE_IN_LEFT */:
|
|
79
|
+
return "slide-out-right" /* ToastNotificationTransition.SLIDE_OUT_RIGHT */;
|
|
80
|
+
case "slide-in-right" /* ToastNotificationTransition.SLIDE_IN_RIGHT */:
|
|
81
|
+
return "slide-out-left" /* ToastNotificationTransition.SLIDE_OUT_LEFT */;
|
|
79
82
|
}
|
|
80
83
|
}
|
|
81
84
|
calculateDraggedPercentage(e) {
|
|
@@ -169,7 +172,7 @@ export class ZToastNotification {
|
|
|
169
172
|
render() {
|
|
170
173
|
return (h(Host, { style: {
|
|
171
174
|
"--percentuale": `${this.percentage}%`,
|
|
172
|
-
}, class: this.transition ? this.transition : ToastNotificationTransition.SLIDE_IN_DOWN
|
|
175
|
+
}, class: this.transition ? this.transition : "slide-in-down" /* ToastNotificationTransition.SLIDE_IN_DOWN */, onAnimationEnd: (e) => {
|
|
173
176
|
if (this.autoclose && e.animationName.includes("slidein")) {
|
|
174
177
|
this.startClosingTimeout(this.autoclose);
|
|
175
178
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { PopoverPositions } from "../../../beans";
|
|
3
2
|
/**
|
|
4
3
|
* Tooltip component.
|
|
5
4
|
* It is basically a wrapper for the `<z-popover>` component with custom configuration.
|
|
@@ -10,14 +9,10 @@ import { PopoverPositions } from "../../../beans";
|
|
|
10
9
|
*/
|
|
11
10
|
export class ZTooltip {
|
|
12
11
|
constructor() {
|
|
13
|
-
|
|
14
|
-
this.position = 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;
|
|
@@ -4,10 +4,15 @@ import { h } from "@stencil/core";
|
|
|
4
4
|
*/
|
|
5
5
|
export class ZPanelElem {
|
|
6
6
|
constructor() {
|
|
7
|
-
|
|
7
|
+
this.elemid = undefined;
|
|
8
|
+
this.imgurl = undefined;
|
|
9
|
+
this.imgalt = undefined;
|
|
10
|
+
this.linkicon = undefined;
|
|
11
|
+
this.linklabel = undefined;
|
|
12
|
+
this.url = undefined;
|
|
8
13
|
this.target = "_blank";
|
|
9
|
-
/** disabled status flag (optional) */
|
|
10
14
|
this.isdisabled = false;
|
|
15
|
+
this.descrSlotName = undefined;
|
|
11
16
|
}
|
|
12
17
|
renderIcon() {
|
|
13
18
|
if (this.isdisabled) {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
export class ZBody {
|
|
3
3
|
constructor() {
|
|
4
|
-
|
|
4
|
+
this.level = undefined;
|
|
5
5
|
this.variant = "regular";
|
|
6
|
+
this.component = undefined;
|
|
6
7
|
}
|
|
7
8
|
render() {
|
|
8
9
|
return (h("z-typography", { tabIndex: 0, component: this.component || "span", level: `b${this.level}`, variant: this.variant }, h("slot", null)));
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
export class ZHeading {
|
|
3
3
|
constructor() {
|
|
4
|
-
|
|
4
|
+
this.level = undefined;
|
|
5
5
|
this.variant = "regular";
|
|
6
|
+
this.component = undefined;
|
|
6
7
|
}
|
|
7
8
|
render() {
|
|
8
9
|
return (h("z-typography", { tabIndex: 0, component: this.component || `h${this.level}`, level: `h${this.level}`, variant: this.variant }, h("slot", null)));
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
export class ZTypography {
|
|
3
3
|
constructor() {
|
|
4
|
-
|
|
4
|
+
this.level = undefined;
|
|
5
5
|
this.variant = "regular";
|
|
6
|
+
this.component = undefined;
|
|
6
7
|
}
|
|
7
8
|
render() {
|
|
8
9
|
const el = document.createElement(this.component || "span");
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
-
import { ZAriaAlertMode } from "../../beans";
|
|
3
2
|
export class ZAriaAlert {
|
|
4
3
|
constructor() {
|
|
5
|
-
|
|
6
|
-
this.mode = ZAriaAlertMode.POLITE;
|
|
4
|
+
this.mode = "polite" /* ZAriaAlertMode.POLITE */;
|
|
7
5
|
}
|
|
8
6
|
render() {
|
|
9
7
|
return (h(Host, { "aria-live": this.mode, "aria-atomic": "true", "aria-relevant": "additions" }, h("slot", null)));
|
|
@@ -1,26 +1,24 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
-
import { AvatarSize } from "../../beans";
|
|
3
2
|
export class ZAvatar {
|
|
4
3
|
constructor() {
|
|
5
4
|
var _a, _b;
|
|
6
|
-
|
|
7
|
-
this.
|
|
8
|
-
/** [optional] Avatar text color */
|
|
5
|
+
this.size = "medium" /* AvatarSize.MEDIUM */;
|
|
6
|
+
this.text = undefined;
|
|
9
7
|
this.textColor = "text-white";
|
|
10
|
-
/** [optional] Avatar background color */
|
|
11
8
|
this.backgroundColor = "bg-grey-700";
|
|
9
|
+
this.image = undefined;
|
|
12
10
|
if (((_a = this.text) === null || _a === void 0 ? void 0 : _a.length) === 0 && ((_b = this.image) === null || _b === void 0 ? void 0 : _b.length) === 0) {
|
|
13
11
|
console.warn("z-avatar must contain at least one prop between text and image");
|
|
14
12
|
}
|
|
15
13
|
}
|
|
16
14
|
getTextSize() {
|
|
17
|
-
if (this.size === AvatarSize.SMALL) {
|
|
15
|
+
if (this.size === "small" /* AvatarSize.SMALL */) {
|
|
18
16
|
return "5";
|
|
19
17
|
}
|
|
20
|
-
else if (this.size === AvatarSize.MEDIUM) {
|
|
18
|
+
else if (this.size === "medium" /* AvatarSize.MEDIUM */) {
|
|
21
19
|
return "4";
|
|
22
20
|
}
|
|
23
|
-
else if (this.size === AvatarSize.LARGE) {
|
|
21
|
+
else if (this.size === "large" /* AvatarSize.LARGE */) {
|
|
24
22
|
return "2";
|
|
25
23
|
}
|
|
26
24
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
-
import { CardVariant } from "../../beans";
|
|
3
2
|
export class ZCard {
|
|
4
3
|
constructor() {
|
|
5
|
-
|
|
4
|
+
this.variant = undefined;
|
|
5
|
+
this.coverIcon = undefined;
|
|
6
6
|
this.clickable = false;
|
|
7
|
-
/** Enable shadow. Default: false. */
|
|
8
7
|
this.showshadow = false;
|
|
8
|
+
this.hasCoverImage = undefined;
|
|
9
9
|
}
|
|
10
10
|
onClick(ev) {
|
|
11
11
|
// Do nothing for clicks on actions.
|
|
@@ -39,13 +39,13 @@ export class ZCard {
|
|
|
39
39
|
return (h("div", { class: "content" }, h("slot", { name: "metadata" }), h("slot", { name: "title" }), h("slot", { name: "text" }), h("div", { class: "actions" }, h("slot", { name: "action" }))));
|
|
40
40
|
}
|
|
41
41
|
render() {
|
|
42
|
-
if (this.variant === CardVariant.TEXT) {
|
|
42
|
+
if (this.variant === "text" /* CardVariant.TEXT */) {
|
|
43
43
|
return h(Host, null, this.renderContentDiv());
|
|
44
44
|
}
|
|
45
|
-
if (this.variant === CardVariant.OVERLAY || this.hasCoverImage) {
|
|
45
|
+
if (this.variant === "overlay" /* CardVariant.OVERLAY */ || this.hasCoverImage) {
|
|
46
46
|
return (h(Host, null, h("div", { class: "cover-container" }, this.hasCoverImage && [
|
|
47
47
|
h("slot", { name: "cover" }),
|
|
48
|
-
this.variant !== CardVariant.OVERLAY && this.coverIcon && h("z-icon", { name: this.coverIcon }),
|
|
48
|
+
this.variant !== "overlay" /* CardVariant.OVERLAY */ && this.coverIcon && h("z-icon", { name: this.coverIcon }),
|
|
49
49
|
], !this.hasCoverImage && h("div", { class: "color-cover" })), this.renderContentDiv()));
|
|
50
50
|
}
|
|
51
51
|
return h(Host, null, this.renderColorCoverCard());
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
-
import { CarouselArrowsPosition, CarouselProgressMode, ButtonVariant, ButtonSize } from "../../beans";
|
|
3
2
|
/**
|
|
4
3
|
* ZCarousel component.
|
|
5
4
|
* @cssprop --z-carousel-gutter - The gutter between items.
|
|
@@ -7,14 +6,16 @@ import { CarouselArrowsPosition, CarouselProgressMode, ButtonVariant, ButtonSize
|
|
|
7
6
|
*/
|
|
8
7
|
export class ZCarousel {
|
|
9
8
|
constructor() {
|
|
10
|
-
/**
|
|
9
|
+
/** Flag indicating the items container is scrolling programmatically towards the stored index. */
|
|
10
|
+
this.scrollingTo = null;
|
|
11
|
+
this.isLoading = undefined;
|
|
12
|
+
this.label = undefined;
|
|
11
13
|
this.single = false;
|
|
12
|
-
|
|
14
|
+
this.arrowsPosition = undefined;
|
|
15
|
+
this.progressMode = undefined;
|
|
13
16
|
this.ghostLoadingHeight = 100;
|
|
14
|
-
/** Current item index for single mode. */
|
|
15
17
|
this.current = 0;
|
|
16
|
-
|
|
17
|
-
this.scrollingTo = null;
|
|
18
|
+
this.items = undefined;
|
|
18
19
|
}
|
|
19
20
|
onIndexChange() {
|
|
20
21
|
this.scrollingTo = this.current;
|
|
@@ -95,9 +96,9 @@ export class ZCarousel {
|
|
|
95
96
|
* @returns {boolean}
|
|
96
97
|
*/
|
|
97
98
|
canShowFooter() {
|
|
98
|
-
return (this.arrowsPosition === CarouselArrowsPosition.BOTTOM ||
|
|
99
|
-
this.progressMode === CarouselProgressMode.DOTS ||
|
|
100
|
-
this.progressMode === CarouselProgressMode.NUMBERS);
|
|
99
|
+
return (this.arrowsPosition === "bottom" /* CarouselArrowsPosition.BOTTOM */ ||
|
|
100
|
+
this.progressMode === "dots" /* CarouselProgressMode.DOTS */ ||
|
|
101
|
+
this.progressMode === "numbers" /* CarouselProgressMode.NUMBERS */);
|
|
101
102
|
}
|
|
102
103
|
/**
|
|
103
104
|
* Set current item to passed index.
|
|
@@ -114,7 +115,7 @@ export class ZCarousel {
|
|
|
114
115
|
if (this.isLoading) {
|
|
115
116
|
return (h(Host, null, this.label && h("div", { class: "heading-4 z-carousel-title" }, this.label), h("div", { style: { height: `${this.ghostLoadingHeight}px` } }, h("z-ghost-loading", null), h("div", { class: "loading-items-container" }, h("slot", null)))));
|
|
116
117
|
}
|
|
117
|
-
return (h(Host, null, h("div", { class: "z-carousel-container" }, this.label && h("div", { class: "heading-4 z-carousel-title" }, this.label), h("div", { class: "z-carousel-wrapper" }, this.arrowsPosition === CarouselArrowsPosition.OVER && (h("z-button", { size: ButtonSize.SMALL
|
|
118
|
+
return (h(Host, null, h("div", { class: "z-carousel-container" }, this.label && h("div", { class: "heading-4 z-carousel-title" }, this.label), h("div", { class: "z-carousel-wrapper" }, this.arrowsPosition === "over" /* CarouselArrowsPosition.OVER */ && (h("z-button", { size: "small" /* ButtonSize.SMALL */, "data-direction": "prev", icon: "chevron-left", onClick: this.onPrev.bind(this) })), h("ul", { class: "z-carousel-items-container" }, h("slot", null)), this.arrowsPosition === "over" /* CarouselArrowsPosition.OVER */ && (h("z-button", { size: "small" /* ButtonSize.SMALL */, "data-direction": "next", icon: "chevron-right", onClick: this.onNext.bind(this) })))), this.canShowFooter() && (h("div", { class: "z-carousel-footer" }, this.arrowsPosition === "bottom" /* CarouselArrowsPosition.BOTTOM */ && (h("z-button", { size: "small" /* ButtonSize.SMALL */, variant: "tertiary" /* ButtonVariant.TERTIARY */, icon: "arrow-left-filled", onClick: this.onPrev.bind(this) })), this.progressMode === "dots" /* CarouselProgressMode.DOTS */ && this.single && this.items && (h("div", { class: "dots-progress" }, this.items.map((_item, key) => (h("button", { type: "button", class: { current: this.current === key }, onClick: () => this.goTo(key) }, h("z-icon", { name: this.current === key ? "white-circle-filled" : "black-circle-filled" })))))), this.progressMode === "numbers" /* CarouselProgressMode.NUMBERS */ && this.single && this.items && (h("div", { class: "numbers-progress" }, h("span", { class: "interactive-3 current" }, this.current + 1), h("span", { class: "interactive-3" }, "di"), h("span", { class: "interactive-3" }, this.items.length))), this.arrowsPosition === "bottom" /* CarouselArrowsPosition.BOTTOM */ && (h("z-button", { size: "small" /* ButtonSize.SMALL */, variant: "tertiary" /* ButtonVariant.TERTIARY */, icon: "arrow-right-filled", onClick: this.onNext.bind(this) }))))));
|
|
118
119
|
}
|
|
119
120
|
static get is() { return "z-carousel"; }
|
|
120
121
|
static get originalStyleUrls() {
|
|
@@ -1,15 +1,9 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
-
import { PopoverPositions } from "../../beans";
|
|
3
2
|
export class ZContextualMenu {
|
|
4
3
|
constructor() {
|
|
5
|
-
|
|
6
|
-
* [optional] Sets text color of ZContextualMenu's content
|
|
7
|
-
*/
|
|
4
|
+
this.elements = undefined;
|
|
8
5
|
this.color = "color-primary01";
|
|
9
|
-
|
|
10
|
-
* [optional] Sets the position of the popover
|
|
11
|
-
*/
|
|
12
|
-
this.popoverPosition = PopoverPositions.BOTTOM_RIGHT;
|
|
6
|
+
this.popoverPosition = "bottom_right" /* PopoverPositions.BOTTOM_RIGHT */;
|
|
13
7
|
}
|
|
14
8
|
componentWillRender() {
|
|
15
9
|
if (this.elements) {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
-
import { CoverHeroVariant, CoverHeroContentPosition } from "../../beans";
|
|
3
2
|
/**
|
|
4
3
|
* Cover hero component.
|
|
5
4
|
* Component to display a hero image with content.
|
|
@@ -13,15 +12,8 @@ import { CoverHeroVariant, CoverHeroContentPosition } from "../../beans";
|
|
|
13
12
|
*/
|
|
14
13
|
export class ZCoverHero {
|
|
15
14
|
constructor() {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
* Can be one of "OVERLAY", "STACKED".
|
|
19
|
-
*/
|
|
20
|
-
this.variant = CoverHeroVariant.OVERLAY;
|
|
21
|
-
/**
|
|
22
|
-
* Cover hero content position (only for STACKED variant).
|
|
23
|
-
*/
|
|
24
|
-
this.contentPosition = CoverHeroContentPosition.TOP;
|
|
15
|
+
this.variant = "overlay" /* CoverHeroVariant.OVERLAY */;
|
|
16
|
+
this.contentPosition = "top" /* CoverHeroContentPosition.TOP */;
|
|
25
17
|
}
|
|
26
18
|
/**
|
|
27
19
|
* Template for the content.
|
|
@@ -30,10 +22,10 @@ export class ZCoverHero {
|
|
|
30
22
|
return (h("div", { class: "content-container" }, h("slot", { name: "content" })));
|
|
31
23
|
}
|
|
32
24
|
render() {
|
|
33
|
-
return (h(Host, null, this.variant === CoverHeroVariant.STACKED &&
|
|
34
|
-
this.contentPosition === CoverHeroContentPosition.TOP &&
|
|
35
|
-
this.renderContent(), h("div", { class: "content-hero" }, h("div", { class: "cover" }, h("slot", { name: "cover" })), h("slot", { name: "info-reveal" }), this.variant === CoverHeroVariant.OVERLAY && this.renderContent()), this.variant === CoverHeroVariant.STACKED &&
|
|
36
|
-
this.contentPosition === CoverHeroContentPosition.BOTTOM &&
|
|
25
|
+
return (h(Host, null, this.variant === "stacked" /* CoverHeroVariant.STACKED */ &&
|
|
26
|
+
this.contentPosition === "top" /* CoverHeroContentPosition.TOP */ &&
|
|
27
|
+
this.renderContent(), h("div", { class: "content-hero" }, h("div", { class: "cover" }, h("slot", { name: "cover" })), h("slot", { name: "info-reveal" }), this.variant === "overlay" /* CoverHeroVariant.OVERLAY */ && this.renderContent()), this.variant === "stacked" /* CoverHeroVariant.STACKED */ &&
|
|
28
|
+
this.contentPosition === "bottom" /* CoverHeroContentPosition.BOTTOM */ &&
|
|
37
29
|
this.renderContent()));
|
|
38
30
|
}
|
|
39
31
|
static get is() { return "z-cover-hero"; }
|