@zanichelli/albe-web-components 6.3.2-rc1 → 6.3.2
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 +7 -0
- package/dist/cjs/index-e3299e0a.js +74 -18
- package/dist/cjs/{index-fa110f37.js → index-f08f7171.js} +54 -13
- package/dist/cjs/index.cjs.js +26 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{utils-600bad93.js → utils-73ead59e.js} +1 -1
- package/dist/cjs/{utils-8bc9056f.js → utils-7fde0c53.js} +1 -1
- package/dist/cjs/web-components-library.cjs.js +2 -2
- package/dist/cjs/z-alert.cjs.entry.js +1 -0
- package/dist/cjs/z-anchor-navigation.cjs.entry.js +1 -8
- package/dist/cjs/z-app-header_2.cjs.entry.js +12 -29
- package/dist/cjs/z-app-switcher.cjs.entry.js +28 -0
- package/dist/cjs/z-app-topbar.cjs.entry.js +7 -3
- package/dist/cjs/z-aria-alert.cjs.entry.js +1 -2
- package/dist/cjs/z-avatar.cjs.entry.js +3 -4
- package/dist/cjs/z-body_2.cjs.entry.js +4 -2
- package/dist/cjs/z-button-deprecated.cjs.entry.js +36 -0
- package/dist/cjs/z-button-filter.cjs.entry.js +49 -0
- package/dist/cjs/z-button-sort.cjs.entry.js +4 -4
- package/dist/cjs/z-button.cjs.entry.js +6 -6
- package/dist/cjs/z-candybar.cjs.entry.js +19 -0
- package/dist/cjs/z-card.cjs.entry.js +4 -3
- package/dist/cjs/z-carousel.cjs.entry.js +8 -6
- package/dist/cjs/z-chip-deprecated.cjs.entry.js +24 -0
- package/dist/cjs/z-chip.cjs.entry.js +4 -4
- package/dist/cjs/z-combobox.cjs.entry.js +13 -14
- package/dist/cjs/z-contextual-menu.cjs.entry.js +3 -8
- package/dist/cjs/z-cookiebar.cjs.entry.js +44 -0
- package/dist/cjs/z-cover-hero.cjs.entry.js +1 -8
- package/dist/cjs/z-date-picker.cjs.entry.js +4 -4
- package/dist/cjs/z-divider.cjs.entry.js +1 -4
- package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +2 -1
- package/dist/cjs/z-file-upload.cjs.entry.js +10 -6
- package/dist/cjs/z-file.cjs.entry.js +4 -2
- package/dist/cjs/z-footer-link_3.cjs.entry.js +54 -0
- package/dist/cjs/z-footer.cjs.entry.js +110 -0
- package/dist/cjs/z-info-box.cjs.entry.js +1 -1
- package/dist/cjs/z-info-reveal.cjs.entry.js +2 -5
- package/dist/cjs/z-input-deprecated.cjs.entry.js +261 -0
- package/dist/cjs/{z-select.cjs.entry.js → z-input-label_2.cjs.entry.js} +33 -14
- package/dist/cjs/z-input_2.cjs.entry.js +18 -12
- package/dist/cjs/z-link.cjs.entry.js +3 -9
- package/dist/cjs/z-list_3.cjs.entry.js +12 -71
- package/dist/cjs/{z-app-switcher_2.cjs.entry.js → z-logo.cjs.entry.js} +6 -23
- package/dist/cjs/z-menu-dropdown_2.cjs.entry.js +93 -0
- 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 +3 -2
- package/dist/cjs/z-modal-login.cjs.entry.js +5 -2
- package/dist/cjs/z-modal.cjs.entry.js +3 -1
- package/dist/cjs/z-myz-card-alert.cjs.entry.js +5 -1
- package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +3 -5
- package/dist/cjs/z-myz-card-footer.cjs.entry.js +6 -3
- package/dist/cjs/z-myz-card-icon.cjs.entry.js +1 -2
- package/dist/cjs/z-myz-card-info.cjs.entry.js +4 -4
- package/dist/cjs/z-myz-card-list.cjs.entry.js +1 -0
- package/dist/cjs/z-myz-card_4.cjs.entry.js +10 -3
- package/dist/cjs/z-myz-list-item.cjs.entry.js +7 -4
- package/dist/cjs/z-myz-topbar.cjs.entry.js +201 -0
- package/dist/cjs/z-navigation-tab-link.cjs.entry.js +6 -13
- package/dist/cjs/z-navigation-tab.cjs.entry.js +4 -13
- package/dist/cjs/z-navigation-tabs.cjs.entry.js +4 -7
- package/dist/cjs/z-notification.cjs.entry.js +3 -6
- package/dist/cjs/z-offcanvas.cjs.entry.js +1 -8
- package/dist/cjs/z-otp.cjs.entry.js +3 -2
- package/dist/cjs/z-pagination-bar.cjs.entry.js +116 -0
- package/dist/cjs/z-pagination-page.cjs.entry.js +25 -0
- package/dist/cjs/z-pagination.cjs.entry.js +6 -13
- package/dist/cjs/z-panel-elem.cjs.entry.js +7 -2
- package/dist/cjs/z-pocket_3.cjs.entry.js +5 -4
- package/dist/cjs/z-popover-deprecated.cjs.entry.js +129 -0
- package/dist/cjs/z-popover.cjs.entry.js +24 -35
- package/dist/cjs/z-range-picker.cjs.entry.js +7 -3
- package/dist/cjs/z-section-title.cjs.entry.js +1 -8
- package/dist/cjs/z-skip-to-content.cjs.entry.js +3 -3
- package/dist/cjs/z-slideshow.cjs.entry.js +5 -2
- package/dist/cjs/z-status-tag.cjs.entry.js +32 -0
- package/dist/cjs/z-stepper-item.cjs.entry.js +4 -0
- package/dist/cjs/z-table-cell.cjs.entry.js +2 -2
- 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 +6 -6
- package/dist/cjs/z-table-row.cjs.entry.js +1 -2
- package/dist/cjs/z-table.cjs.entry.js +7 -9
- package/dist/cjs/z-tag.cjs.entry.js +2 -0
- package/dist/cjs/z-toast-notification-list.cjs.entry.js +1 -3
- package/dist/cjs/z-toast-notification.cjs.entry.js +9 -5
- package/dist/cjs/z-toggle-button.cjs.entry.js +2 -2
- package/dist/cjs/z-toggle-switch.cjs.entry.js +2 -6
- package/dist/cjs/z-tooltip-deprecated.cjs.entry.js +262 -0
- package/dist/cjs/z-tooltip.cjs.entry.js +3 -7
- package/dist/cjs/z-user-dropdown.cjs.entry.js +5 -1
- package/dist/collection/beans/index.js +54 -13
- package/dist/collection/collection-manifest.json +18 -1
- package/dist/collection/components/buttons/z-button/index.js +5 -5
- package/dist/collection/components/buttons/z-button-sort/index.js +4 -4
- package/dist/collection/components/buttons/z-chip/index.js +2 -2
- package/dist/collection/components/buttons/z-toggle-button/index.js +2 -2
- package/dist/collection/components/buttons/z-toggle-switch/index.js +0 -4
- package/dist/collection/components/date-picker/z-date-picker/index.js +2 -2
- package/dist/collection/components/date-picker/z-range-picker/index.js +5 -1
- package/dist/collection/components/file-upload/z-file/index.js +4 -2
- package/dist/collection/components/file-upload/z-file-upload/index.js +8 -4
- package/dist/collection/components/footer/z-footer/index.js +262 -0
- package/dist/collection/components/footer/z-footer/styles.css +242 -0
- package/dist/collection/components/footer/z-footer-link/index.js +45 -0
- package/dist/collection/components/footer/z-footer-link/styles.css +25 -0
- package/dist/collection/components/footer/z-footer-section/index.js +54 -0
- package/dist/collection/components/footer/z-footer-section/styles.css +150 -0
- package/dist/collection/components/footer/z-footer-social/index.js +78 -0
- package/dist/collection/components/footer/z-footer-social/styles.css +15 -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 +11 -12
- package/dist/collection/components/inputs/z-input/index.js +14 -10
- package/dist/collection/components/inputs/z-input-message/index.js +2 -0
- package/dist/collection/components/inputs/z-select/index.js +15 -12
- package/dist/collection/components/list/z-list/index.js +0 -6
- package/dist/collection/components/list/z-list-element/index.js +11 -49
- package/dist/collection/components/list/z-list-group/index.js +0 -15
- package/dist/collection/components/list/z-toast-notification-list/index.js +0 -2
- 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 +4 -1
- package/dist/collection/components/navigation/tabs/z-navigation-tab/index.js +3 -12
- package/dist/collection/components/navigation/tabs/z-navigation-tab-link/index.js +5 -12
- package/dist/collection/components/navigation/tabs/z-navigation-tabs/index.js +3 -6
- package/dist/collection/components/navigation/z-app-header/index.js +7 -29
- package/dist/collection/components/navigation/z-app-switcher/index.js +0 -1
- package/dist/collection/components/navigation/z-app-topbar/index.js +6 -2
- 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 +3 -0
- 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-candybar/index.js +21 -0
- package/dist/collection/components/notification/z-candybar/styles.css +55 -0
- package/dist/collection/components/notification/z-cookiebar/index.js +115 -0
- package/dist/collection/components/notification/z-cookiebar/styles.css +108 -0
- 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 +8 -4
- package/dist/collection/components/notification/z-tooltip/index.js +7 -11
- 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-anchor-navigation/index.js +0 -7
- package/dist/collection/components/z-aria-alert/index.js +0 -1
- package/dist/collection/components/z-avatar/index.js +2 -3
- package/dist/collection/components/z-card/index.js +3 -2
- package/dist/collection/components/z-carousel/index.js +7 -5
- package/dist/collection/components/z-contextual-menu/index.js +7 -12
- package/dist/collection/components/z-cover-hero/index.js +0 -7
- package/dist/collection/components/z-divider/index.js +0 -3
- package/dist/collection/components/z-info-reveal/index.js +1 -4
- package/dist/collection/components/z-offcanvas/index.js +0 -7
- package/dist/collection/components/z-pagination/index.js +5 -12
- package/dist/collection/components/z-popover/index.js +27 -38
- package/dist/collection/components/z-section-title/index.js +0 -7
- package/dist/collection/components/z-skip-to-content/index.js +1 -1
- package/dist/collection/components/z-table/z-table/index.js +6 -8
- package/dist/collection/components/z-table/z-table-cell/index.js +1 -1
- 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 +5 -5
- 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 +0 -1
- package/dist/collection/components/z-tag/index.js +4 -0
- package/dist/collection/deprecated/pagination/z-pagination-bar/index.js +271 -0
- package/dist/collection/deprecated/pagination/z-pagination-bar/styles.css +22 -0
- package/dist/collection/deprecated/pagination/z-pagination-page/index.js +136 -0
- package/dist/collection/deprecated/pagination/z-pagination-page/styles.css +57 -0
- package/dist/collection/deprecated/z-button-deprecated/index.js +221 -0
- package/dist/collection/deprecated/z-button-deprecated/styles.css +231 -0
- package/dist/collection/deprecated/z-button-filter/index.js +159 -0
- package/dist/collection/deprecated/z-button-filter/styles.css +64 -0
- package/dist/collection/deprecated/z-chip-deprecated/index.js +63 -0
- package/dist/collection/deprecated/z-chip-deprecated/styles.css +17 -0
- package/dist/collection/deprecated/z-input-deprecated/index.js +810 -0
- package/dist/collection/deprecated/z-input-deprecated/styles.css +282 -0
- package/dist/collection/deprecated/z-input-label/index.js +79 -0
- package/dist/collection/deprecated/z-input-label/styles.css +16 -0
- package/dist/collection/deprecated/z-popover-deprecated/index.js +300 -0
- package/dist/collection/deprecated/z-popover-deprecated/styles.css +235 -0
- package/dist/collection/deprecated/z-status-tag/index.js +133 -0
- package/dist/collection/deprecated/z-status-tag/styles.css +131 -0
- package/dist/collection/deprecated/z-tooltip-deprecated/index.js +378 -0
- package/dist/collection/deprecated/z-tooltip-deprecated/styles.css +128 -0
- package/dist/collection/snowflakes/myz/card/z-myz-card/index.js +2 -2
- package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js +6 -0
- 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 +2 -4
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js +5 -2
- package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js +3 -0
- 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 +3 -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 +2 -1
- package/dist/collection/snowflakes/myz/pocket/z-pocket/index.js +1 -1
- package/dist/collection/snowflakes/myz/pocket/z-pocket-body/index.js +1 -1
- package/dist/collection/snowflakes/myz/pocket/z-pocket-header/index.js +1 -0
- package/dist/collection/snowflakes/myz/topbar/index.js +409 -0
- package/dist/collection/snowflakes/myz/topbar/styles.css +574 -0
- package/dist/collection/snowflakes/myz/z-alert/index.js +3 -0
- package/dist/collection/snowflakes/myz/z-otp/index.js +2 -1
- package/dist/collection/snowflakes/myz/z-slideshow/index.js +3 -0
- package/dist/esm/index-a2ca4b97.js +74 -18
- package/dist/esm/{index-968a240f.js → index-aee91593.js} +55 -14
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{utils-ccb4d66f.js → utils-5dc8ce33.js} +2 -2
- package/dist/esm/{utils-151f0ab4.js → utils-77c5c75d.js} +1 -1
- package/dist/esm/web-components-library.js +2 -2
- package/dist/esm/z-alert.entry.js +1 -0
- package/dist/esm/z-anchor-navigation.entry.js +1 -8
- package/dist/esm/z-app-header_2.entry.js +12 -29
- package/dist/esm/z-app-switcher.entry.js +24 -0
- package/dist/esm/z-app-topbar.entry.js +7 -3
- package/dist/esm/z-aria-alert.entry.js +1 -2
- package/dist/esm/z-avatar.entry.js +3 -4
- package/dist/esm/z-body_2.entry.js +4 -2
- package/dist/esm/z-button-deprecated.entry.js +32 -0
- package/dist/esm/z-button-filter.entry.js +45 -0
- package/dist/esm/z-button-sort.entry.js +4 -4
- package/dist/esm/z-button.entry.js +6 -6
- package/dist/esm/z-candybar.entry.js +15 -0
- package/dist/esm/z-card.entry.js +4 -3
- package/dist/esm/z-carousel.entry.js +8 -6
- package/dist/esm/z-chip-deprecated.entry.js +20 -0
- package/dist/esm/z-chip.entry.js +4 -4
- package/dist/esm/z-combobox.entry.js +13 -14
- package/dist/esm/z-contextual-menu.entry.js +3 -8
- package/dist/esm/z-cookiebar.entry.js +40 -0
- package/dist/esm/z-cover-hero.entry.js +1 -8
- package/dist/esm/z-date-picker.entry.js +4 -4
- package/dist/esm/z-divider.entry.js +1 -4
- package/dist/esm/z-dragdrop-area_2.entry.js +2 -1
- package/dist/esm/z-file-upload.entry.js +10 -6
- package/dist/esm/z-file.entry.js +4 -2
- package/dist/esm/z-footer-link_3.entry.js +48 -0
- package/dist/esm/z-footer.entry.js +106 -0
- package/dist/esm/z-info-box.entry.js +1 -1
- package/dist/esm/z-info-reveal.entry.js +2 -5
- package/dist/esm/z-input-deprecated.entry.js +257 -0
- package/dist/esm/{z-select.entry.js → z-input-label_2.entry.js} +34 -16
- package/dist/esm/z-input_2.entry.js +18 -12
- package/dist/esm/z-link.entry.js +3 -9
- package/dist/esm/z-list_3.entry.js +12 -71
- package/dist/esm/{z-app-switcher_2.entry.js → z-logo.entry.js} +8 -24
- package/dist/esm/z-menu-dropdown_2.entry.js +88 -0
- 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 +3 -2
- package/dist/esm/z-modal-login.entry.js +5 -2
- package/dist/esm/z-modal.entry.js +3 -1
- package/dist/esm/z-myz-card-alert.entry.js +5 -1
- package/dist/esm/z-myz-card-dictionary.entry.js +3 -5
- package/dist/esm/z-myz-card-footer.entry.js +6 -3
- package/dist/esm/z-myz-card-icon.entry.js +1 -2
- package/dist/esm/z-myz-card-info.entry.js +4 -4
- package/dist/esm/z-myz-card-list.entry.js +1 -0
- package/dist/esm/z-myz-card_4.entry.js +10 -3
- package/dist/esm/z-myz-list-item.entry.js +7 -4
- package/dist/esm/z-myz-topbar.entry.js +197 -0
- package/dist/esm/z-navigation-tab-link.entry.js +6 -13
- package/dist/esm/z-navigation-tab.entry.js +4 -13
- package/dist/esm/z-navigation-tabs.entry.js +4 -7
- package/dist/esm/z-notification.entry.js +3 -6
- package/dist/esm/z-offcanvas.entry.js +1 -8
- package/dist/esm/z-otp.entry.js +3 -2
- package/dist/esm/z-pagination-bar.entry.js +112 -0
- package/dist/esm/z-pagination-page.entry.js +21 -0
- package/dist/esm/z-pagination.entry.js +6 -13
- package/dist/esm/z-panel-elem.entry.js +7 -2
- package/dist/esm/z-pocket_3.entry.js +5 -4
- package/dist/esm/z-popover-deprecated.entry.js +125 -0
- package/dist/esm/z-popover.entry.js +24 -35
- package/dist/esm/z-range-picker.entry.js +7 -3
- package/dist/esm/z-section-title.entry.js +1 -8
- package/dist/esm/z-skip-to-content.entry.js +3 -3
- package/dist/esm/z-slideshow.entry.js +5 -2
- package/dist/esm/z-status-tag.entry.js +28 -0
- package/dist/esm/z-stepper-item.entry.js +4 -0
- package/dist/esm/z-table-cell.entry.js +2 -2
- 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 +6 -6
- package/dist/esm/z-table-row.entry.js +1 -2
- package/dist/esm/z-table.entry.js +7 -9
- package/dist/esm/z-tag.entry.js +2 -0
- package/dist/esm/z-toast-notification-list.entry.js +1 -3
- package/dist/esm/z-toast-notification.entry.js +9 -5
- package/dist/esm/z-toggle-button.entry.js +2 -2
- package/dist/esm/z-toggle-switch.entry.js +2 -6
- package/dist/esm/z-tooltip-deprecated.entry.js +258 -0
- package/dist/esm/z-tooltip.entry.js +3 -7
- package/dist/esm/z-user-dropdown.entry.js +5 -1
- package/dist/types/beans/index.d.ts +60 -1
- package/dist/types/components/footer/z-footer/index.d.ts +46 -0
- package/dist/types/components/footer/z-footer-link/index.d.ts +8 -0
- package/dist/types/components/footer/z-footer-section/index.d.ts +10 -0
- package/dist/types/components/footer/z-footer-social/index.d.ts +9 -0
- package/dist/types/components/notification/z-candybar/index.d.ts +6 -0
- package/dist/types/components/notification/z-cookiebar/index.d.ts +16 -0
- package/dist/types/components/notification/z-tooltip/index.d.ts +2 -2
- package/dist/types/components/z-contextual-menu/index.d.ts +2 -2
- package/dist/types/components/z-popover/index.d.ts +4 -4
- package/dist/types/components.d.ts +1057 -8
- package/dist/types/deprecated/pagination/z-pagination-bar/index.d.ts +40 -0
- package/dist/types/deprecated/pagination/z-pagination-page/index.d.ts +15 -0
- package/dist/types/deprecated/z-button-deprecated/index.d.ts +28 -0
- package/dist/types/deprecated/z-button-filter/index.d.ts +22 -0
- package/dist/types/deprecated/z-chip-deprecated/index.d.ts +8 -0
- package/dist/types/deprecated/z-input-deprecated/index.d.ts +91 -0
- package/dist/types/deprecated/z-input-label/index.d.ts +9 -0
- package/dist/types/deprecated/z-popover-deprecated/index.d.ts +33 -0
- package/dist/types/deprecated/z-status-tag/index.d.ts +15 -0
- package/dist/types/deprecated/z-tooltip-deprecated/index.d.ts +41 -0
- package/dist/types/snowflakes/myz/topbar/index.d.ts +59 -0
- 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-067bd5da.entry.js +1 -0
- package/dist/web-components-library/p-0afc555e.entry.js +1 -0
- package/dist/web-components-library/{p-214b6cee.entry.js → p-0f28f07e.entry.js} +1 -1
- 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-18448e4d.entry.js +1 -0
- package/dist/web-components-library/p-1ab0de76.entry.js +1 -0
- package/dist/web-components-library/p-1e163a87.entry.js +1 -0
- package/dist/web-components-library/p-1f187c54.entry.js +1 -0
- package/dist/web-components-library/p-1f8c8cd0.entry.js +1 -0
- package/dist/web-components-library/{p-9ed27651.entry.js → p-1f8c947e.entry.js} +1 -1
- package/dist/web-components-library/{p-2acd6a51.entry.js → p-1fdbd448.entry.js} +1 -1
- package/dist/web-components-library/{p-33352f9e.entry.js → p-279b422a.entry.js} +1 -1
- package/{www/build/p-f158d205.entry.js → dist/web-components-library/p-2c18a622.entry.js} +1 -1
- 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-3027c60b.entry.js +1 -0
- package/dist/web-components-library/p-30fcd62b.js +1 -0
- package/dist/web-components-library/{p-9c28b8fc.entry.js → p-323ae109.entry.js} +1 -1
- package/dist/web-components-library/p-35739670.entry.js +1 -0
- package/dist/web-components-library/p-36d2d081.entry.js +1 -0
- package/dist/web-components-library/{p-67d6cfcb.entry.js → p-3b1c4366.entry.js} +1 -1
- package/dist/web-components-library/p-3c7cf41f.entry.js +1 -0
- package/dist/web-components-library/p-3eb0d582.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/dist/web-components-library/p-42782d06.entry.js +1 -0
- package/dist/web-components-library/p-4465426a.entry.js +1 -0
- package/dist/web-components-library/p-468520f5.entry.js +1 -0
- package/dist/web-components-library/p-46e367c9.entry.js +1 -0
- package/dist/web-components-library/{p-496863be.entry.js → p-4a322ca6.entry.js} +1 -1
- package/dist/web-components-library/p-4ba0b17c.entry.js +1 -0
- package/dist/web-components-library/{p-b17981a4.entry.js → p-4c7f4a2c.entry.js} +1 -1
- package/dist/web-components-library/p-552c6686.entry.js +1 -0
- package/dist/web-components-library/p-563529f8.entry.js +1 -0
- package/dist/web-components-library/p-569f6cff.entry.js +1 -0
- package/dist/web-components-library/p-57faab40.entry.js +1 -0
- package/dist/web-components-library/p-5935151c.entry.js +1 -0
- package/dist/web-components-library/p-5b83568e.entry.js +1 -0
- package/dist/web-components-library/p-5c6108bb.entry.js +1 -0
- package/dist/web-components-library/p-63a99ad2.entry.js +16 -0
- package/dist/web-components-library/p-64033ee3.entry.js +1 -0
- package/dist/web-components-library/p-66bbcf76.entry.js +1 -0
- package/dist/web-components-library/p-69db61b5.entry.js +1 -0
- package/dist/web-components-library/p-6e4dd501.entry.js +1 -0
- package/dist/web-components-library/p-6fe1bffb.entry.js +1 -0
- package/dist/web-components-library/p-7171d686.entry.js +1 -0
- package/dist/web-components-library/p-75a4091f.entry.js +1 -0
- package/dist/web-components-library/p-7b22a446.entry.js +1 -0
- package/dist/web-components-library/p-7e13d026.entry.js +1 -0
- package/dist/web-components-library/p-82ff8f0e.entry.js +1 -0
- package/dist/web-components-library/p-84cc611a.entry.js +1 -0
- package/dist/web-components-library/p-8879211b.entry.js +1 -0
- package/dist/web-components-library/p-8949cd1d.entry.js +1 -0
- package/dist/web-components-library/{p-34c26207.entry.js → p-8fee871a.entry.js} +1 -1
- package/dist/web-components-library/p-9099124a.entry.js +1 -0
- package/dist/web-components-library/p-9ecf936d.js +1 -0
- package/dist/web-components-library/p-a1250f99.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-af4a9bb7.entry.js +1 -0
- package/dist/web-components-library/p-af9b8051.entry.js +1 -0
- package/dist/web-components-library/p-b01314fa.entry.js +1 -0
- package/dist/web-components-library/p-b4a9ba1d.entry.js +1 -0
- package/dist/web-components-library/p-b9a69a90.entry.js +1 -0
- package/dist/web-components-library/p-bbbfd2fa.entry.js +1 -0
- package/dist/web-components-library/p-bea5aa42.entry.js +1 -0
- package/dist/web-components-library/{p-b3c29822.js → p-bee26f96.js} +1 -1
- package/dist/web-components-library/p-c39c68b9.entry.js +1 -0
- package/dist/web-components-library/p-c7d7958c.entry.js +1 -0
- package/dist/web-components-library/p-c849a2a5.entry.js +1 -0
- package/dist/web-components-library/p-d1b45e96.entry.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-d8e17d3a.entry.js +1 -0
- package/dist/web-components-library/{p-9965827d.entry.js → p-db234892.entry.js} +1 -1
- package/dist/web-components-library/p-dc3c5f36.entry.js +1 -0
- package/dist/web-components-library/p-e0f82390.entry.js +1 -0
- package/dist/web-components-library/p-e1ddeb61.entry.js +1 -0
- package/dist/web-components-library/p-e4d761f4.entry.js +1 -0
- package/dist/web-components-library/p-efca7e17.entry.js +1 -0
- package/dist/web-components-library/p-f08d1cbd.entry.js +1 -0
- package/dist/web-components-library/p-f53d1d26.entry.js +1 -0
- package/dist/web-components-library/p-f8aef252.entry.js +1 -0
- package/dist/web-components-library/p-f94281ee.entry.js +1 -0
- package/dist/web-components-library/p-f9e8ac5d.entry.js +1 -0
- package/dist/web-components-library/web-components-library.esm.js +1 -1
- package/package.json +2 -2
- package/react/components.d.ts +17 -0
- package/react/components.js +20 -2
- package/react/components.js.map +1 -1
- package/www/build/index.esm.js +1 -1
- package/www/build/p-016b2800.entry.js +1 -0
- package/www/build/p-067bd5da.entry.js +1 -0
- package/www/build/p-0afc555e.entry.js +1 -0
- package/www/build/{p-214b6cee.entry.js → p-0f28f07e.entry.js} +1 -1
- package/www/build/p-10b84e8c.entry.js +1 -0
- package/www/build/p-12211a48.entry.js +1 -0
- package/www/build/p-18448e4d.entry.js +1 -0
- package/www/build/p-1ab0de76.entry.js +1 -0
- package/www/build/p-1e163a87.entry.js +1 -0
- package/www/build/p-1f187c54.entry.js +1 -0
- package/www/build/p-1f8c8cd0.entry.js +1 -0
- package/www/build/{p-9ed27651.entry.js → p-1f8c947e.entry.js} +1 -1
- package/www/build/{p-2acd6a51.entry.js → p-1fdbd448.entry.js} +1 -1
- package/www/build/{p-33352f9e.entry.js → p-279b422a.entry.js} +1 -1
- package/{dist/web-components-library/p-f158d205.entry.js → www/build/p-2c18a622.entry.js} +1 -1
- package/www/build/p-2d5d8e6f.entry.js +1 -0
- package/www/build/p-2e7a31ac.entry.js +1 -0
- package/www/build/p-3027c60b.entry.js +1 -0
- package/www/build/p-30fcd62b.js +1 -0
- package/www/build/{p-9c28b8fc.entry.js → p-323ae109.entry.js} +1 -1
- package/www/build/p-35739670.entry.js +1 -0
- package/www/build/p-36d2d081.entry.js +1 -0
- package/www/build/{p-67d6cfcb.entry.js → p-3b1c4366.entry.js} +1 -1
- package/www/build/p-3c7cf41f.entry.js +1 -0
- package/www/build/p-3eb0d582.entry.js +1 -0
- package/www/build/p-3ecfb7c1.entry.js +1 -0
- package/www/build/p-40f96085.entry.js +1 -0
- package/www/build/p-42782d06.entry.js +1 -0
- package/www/build/p-4465426a.entry.js +1 -0
- package/www/build/p-468520f5.entry.js +1 -0
- package/www/build/p-46e367c9.entry.js +1 -0
- package/www/build/{p-496863be.entry.js → p-4a322ca6.entry.js} +1 -1
- package/www/build/p-4ba0b17c.entry.js +1 -0
- package/www/build/{p-b17981a4.entry.js → p-4c7f4a2c.entry.js} +1 -1
- package/www/build/p-552c6686.entry.js +1 -0
- package/www/build/p-563529f8.entry.js +1 -0
- package/www/build/p-569f6cff.entry.js +1 -0
- package/www/build/p-57faab40.entry.js +1 -0
- package/www/build/p-5935151c.entry.js +1 -0
- package/www/build/p-5b83568e.entry.js +1 -0
- package/www/build/p-5c6108bb.entry.js +1 -0
- package/www/build/p-63a99ad2.entry.js +16 -0
- package/www/build/p-64033ee3.entry.js +1 -0
- package/www/build/p-66bbcf76.entry.js +1 -0
- package/www/build/p-69db61b5.entry.js +1 -0
- package/www/build/p-6e4dd501.entry.js +1 -0
- package/www/build/p-6fe1bffb.entry.js +1 -0
- package/www/build/p-7171d686.entry.js +1 -0
- package/www/build/p-75a4091f.entry.js +1 -0
- package/www/build/p-7b22a446.entry.js +1 -0
- package/www/build/p-7e13d026.entry.js +1 -0
- package/www/build/p-82ff8f0e.entry.js +1 -0
- package/www/build/p-84cc611a.entry.js +1 -0
- package/www/build/p-8879211b.entry.js +1 -0
- package/www/build/p-8949cd1d.entry.js +1 -0
- package/www/build/{p-34c26207.entry.js → p-8fee871a.entry.js} +1 -1
- package/www/build/p-9099124a.entry.js +1 -0
- package/www/build/p-9ecf936d.js +1 -0
- package/www/build/p-a1250f99.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-af4a9bb7.entry.js +1 -0
- package/www/build/p-af9b8051.entry.js +1 -0
- package/www/build/p-b01314fa.entry.js +1 -0
- package/www/build/p-b4a9ba1d.entry.js +1 -0
- package/www/build/p-b9a69a90.entry.js +1 -0
- package/www/build/p-bbbfd2fa.entry.js +1 -0
- package/www/build/p-bea5aa42.entry.js +1 -0
- package/www/build/{p-b3c29822.js → p-bee26f96.js} +1 -1
- package/www/build/p-c39c68b9.entry.js +1 -0
- package/www/build/p-c7d7958c.entry.js +1 -0
- package/www/build/p-c849a2a5.entry.js +1 -0
- package/www/build/p-d1b45e96.entry.js +1 -0
- package/www/build/p-d70c7670.css +1 -0
- package/www/build/p-d767f784.entry.js +1 -0
- package/www/build/p-d7e72cec.entry.js +1 -0
- package/www/build/p-d8e17d3a.entry.js +1 -0
- package/www/build/{p-9965827d.entry.js → p-db234892.entry.js} +1 -1
- package/www/build/p-dc3c5f36.entry.js +1 -0
- package/www/build/p-e0f82390.entry.js +1 -0
- package/www/build/p-e1ddeb61.entry.js +1 -0
- package/www/build/p-e4d761f4.entry.js +1 -0
- package/www/build/p-ef5f8af2.js +1 -0
- package/www/build/p-efca7e17.entry.js +1 -0
- package/www/build/p-f08d1cbd.entry.js +1 -0
- package/www/build/p-f53d1d26.entry.js +1 -0
- package/www/build/p-f8aef252.entry.js +1 -0
- package/www/build/p-f94281ee.entry.js +1 -0
- package/www/build/p-f9e8ac5d.entry.js +1 -0
- package/www/build/web-components-library.esm.js +1 -1
- package/www/index.html +1 -1
- package/dist/cjs/z-menu-dropdown.cjs.entry.js +0 -59
- package/dist/cjs/z-myz-list.cjs.entry.js +0 -35
- package/dist/esm/z-menu-dropdown.entry.js +0 -55
- package/dist/esm/z-myz-list.entry.js +0 -31
- package/dist/web-components-library/p-009c9f67.entry.js +0 -1
- package/dist/web-components-library/p-01f001fd.entry.js +0 -1
- 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-07e18572.entry.js +0 -1
- package/dist/web-components-library/p-0843b0e7.entry.js +0 -1
- package/dist/web-components-library/p-0fa4b50b.entry.js +0 -1
- package/dist/web-components-library/p-1b6279a6.entry.js +0 -1
- package/dist/web-components-library/p-1ba8d432.entry.js +0 -1
- package/dist/web-components-library/p-1cb23bbb.entry.js +0 -1
- package/dist/web-components-library/p-20a3247c.entry.js +0 -1
- package/dist/web-components-library/p-26f834e5.entry.js +0 -1
- package/dist/web-components-library/p-279655eb.entry.js +0 -1
- package/dist/web-components-library/p-2d1b6c3c.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-38a3cf3b.entry.js +0 -1
- package/dist/web-components-library/p-3a468aa9.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-411cbcd6.entry.js +0 -1
- package/dist/web-components-library/p-475ca461.entry.js +0 -1
- package/dist/web-components-library/p-4cd6c6f4.entry.js +0 -1
- package/dist/web-components-library/p-51e308ca.entry.js +0 -1
- package/dist/web-components-library/p-5921901c.entry.js +0 -1
- package/dist/web-components-library/p-59cfee8d.entry.js +0 -1
- package/dist/web-components-library/p-5dd9a2c6.entry.js +0 -1
- package/dist/web-components-library/p-61424b8a.entry.js +0 -1
- package/dist/web-components-library/p-682528b2.entry.js +0 -1
- package/dist/web-components-library/p-6b1a5309.entry.js +0 -1
- package/dist/web-components-library/p-7af991f5.entry.js +0 -1
- package/dist/web-components-library/p-810bd730.entry.js +0 -1
- package/dist/web-components-library/p-8980398c.entry.js +0 -1
- package/dist/web-components-library/p-8b960526.entry.js +0 -1
- package/dist/web-components-library/p-8bf0844b.entry.js +0 -1
- package/dist/web-components-library/p-8c105bd1.entry.js +0 -1
- package/dist/web-components-library/p-8f46e548.entry.js +0 -1
- package/dist/web-components-library/p-8ffc17b7.entry.js +0 -1
- package/dist/web-components-library/p-93dc6d51.entry.js +0 -1
- package/dist/web-components-library/p-95b8f109.entry.js +0 -1
- package/dist/web-components-library/p-9c338aeb.entry.js +0 -1
- package/dist/web-components-library/p-9d03a7d6.entry.js +0 -1
- package/dist/web-components-library/p-a23e9115.js +0 -1
- package/dist/web-components-library/p-a2b67e2d.entry.js +0 -1
- package/dist/web-components-library/p-a79d1412.entry.js +0 -1
- package/dist/web-components-library/p-a82ea410.entry.js +0 -1
- package/dist/web-components-library/p-b33f5e6a.entry.js +0 -1
- package/dist/web-components-library/p-b6f36170.entry.js +0 -16
- package/dist/web-components-library/p-bb0fe7bc.entry.js +0 -1
- package/dist/web-components-library/p-bdc6f2e5.entry.js +0 -1
- package/dist/web-components-library/p-beba3e67.entry.js +0 -1
- package/dist/web-components-library/p-c25b0b2a.entry.js +0 -1
- package/dist/web-components-library/p-c6aad085.entry.js +0 -1
- package/dist/web-components-library/p-cd43f80d.js +0 -1
- package/dist/web-components-library/p-ce83ce18.entry.js +0 -1
- package/dist/web-components-library/p-db3c8e3e.entry.js +0 -1
- package/dist/web-components-library/p-e40b16fa.entry.js +0 -1
- package/dist/web-components-library/p-ede9fbf5.entry.js +0 -1
- package/dist/web-components-library/p-f0653e72.entry.js +0 -1
- package/dist/web-components-library/p-f20d1242.entry.js +0 -1
- package/dist/web-components-library/p-f95cc914.entry.js +0 -1
- package/www/build/p-009c9f67.entry.js +0 -1
- package/www/build/p-01f001fd.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-07e18572.entry.js +0 -1
- package/www/build/p-0843b0e7.entry.js +0 -1
- package/www/build/p-0fa4b50b.entry.js +0 -1
- package/www/build/p-1b6279a6.entry.js +0 -1
- package/www/build/p-1ba8d432.entry.js +0 -1
- package/www/build/p-1cb23bbb.entry.js +0 -1
- package/www/build/p-20a3247c.entry.js +0 -1
- package/www/build/p-26f834e5.entry.js +0 -1
- package/www/build/p-279655eb.entry.js +0 -1
- package/www/build/p-2d1b6c3c.entry.js +0 -1
- package/www/build/p-2efedcf4.entry.js +0 -1
- package/www/build/p-32d42cfa.js +0 -129
- package/www/build/p-344e7ae7.entry.js +0 -1
- package/www/build/p-38a3cf3b.entry.js +0 -1
- package/www/build/p-3a468aa9.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-411cbcd6.entry.js +0 -1
- package/www/build/p-43a653ba.css +0 -1802
- package/www/build/p-475ca461.entry.js +0 -1
- package/www/build/p-4cd6c6f4.entry.js +0 -1
- package/www/build/p-51e308ca.entry.js +0 -1
- package/www/build/p-5921901c.entry.js +0 -1
- package/www/build/p-59cfee8d.entry.js +0 -1
- package/www/build/p-5dd9a2c6.entry.js +0 -1
- package/www/build/p-61424b8a.entry.js +0 -1
- package/www/build/p-682528b2.entry.js +0 -1
- package/www/build/p-6b1a5309.entry.js +0 -1
- package/www/build/p-7af991f5.entry.js +0 -1
- package/www/build/p-810bd730.entry.js +0 -1
- package/www/build/p-8980398c.entry.js +0 -1
- package/www/build/p-8b960526.entry.js +0 -1
- package/www/build/p-8bf0844b.entry.js +0 -1
- package/www/build/p-8c105bd1.entry.js +0 -1
- package/www/build/p-8f46e548.entry.js +0 -1
- package/www/build/p-8ffc17b7.entry.js +0 -1
- package/www/build/p-93dc6d51.entry.js +0 -1
- package/www/build/p-95b8f109.entry.js +0 -1
- package/www/build/p-9c338aeb.entry.js +0 -1
- package/www/build/p-9d03a7d6.entry.js +0 -1
- package/www/build/p-a23e9115.js +0 -1
- package/www/build/p-a2b67e2d.entry.js +0 -1
- package/www/build/p-a79d1412.entry.js +0 -1
- package/www/build/p-a82ea410.entry.js +0 -1
- package/www/build/p-b33f5e6a.entry.js +0 -1
- package/www/build/p-b6f36170.entry.js +0 -16
- package/www/build/p-bb0fe7bc.entry.js +0 -1
- package/www/build/p-bdc6f2e5.entry.js +0 -1
- package/www/build/p-beba3e67.entry.js +0 -1
- package/www/build/p-c25b0b2a.entry.js +0 -1
- package/www/build/p-c6aad085.entry.js +0 -1
- package/www/build/p-cd43f80d.js +0 -1
- package/www/build/p-ce83ce18.entry.js +0 -1
- package/www/build/p-db3c8e3e.entry.js +0 -1
- package/www/build/p-e40b16fa.entry.js +0 -1
- package/www/build/p-ede9fbf5.entry.js +0 -1
- package/www/build/p-f0653e72.entry.js +0 -1
- package/www/build/p-f20d1242.entry.js +0 -1
- package/www/build/p-f95cc914.entry.js +0 -1
|
@@ -0,0 +1,378 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { PopoverPositions } from "../../beans/index";
|
|
3
|
+
const DOCUMENT_ELEMENT = document.documentElement;
|
|
4
|
+
/**
|
|
5
|
+
* Find the closest scrollable parent of a node.
|
|
6
|
+
*
|
|
7
|
+
* @param {Element} element The node
|
|
8
|
+
*/
|
|
9
|
+
function findScrollableParent(element) {
|
|
10
|
+
let parent = element.parentNode;
|
|
11
|
+
while (parent && parent !== DOCUMENT_ELEMENT) {
|
|
12
|
+
const { overflow, overflowX, overflowY } = window.getComputedStyle(parent);
|
|
13
|
+
if (overflow === "hidden" || overflowY === "hidden" || overflowX === "hidden") {
|
|
14
|
+
return parent;
|
|
15
|
+
}
|
|
16
|
+
if ((parent.scrollHeight > parent.clientHeight && overflow !== "visible" && overflowY !== "visible") ||
|
|
17
|
+
(parent.scrollWidth > parent.clientWidth && overflow !== "visible" && overflowX !== "visible")) {
|
|
18
|
+
return parent;
|
|
19
|
+
}
|
|
20
|
+
parent = parent.parentNode;
|
|
21
|
+
}
|
|
22
|
+
return DOCUMENT_ELEMENT;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Calculate computed offset.
|
|
26
|
+
* It includes matrix transformations.
|
|
27
|
+
* @param element The target element.
|
|
28
|
+
* @param targetParentOffset The relative offset parent.
|
|
29
|
+
* @return A client rect object.
|
|
30
|
+
*/
|
|
31
|
+
function computeOffset(element, targetParentOffset) {
|
|
32
|
+
const rect = element.getBoundingClientRect();
|
|
33
|
+
const width = rect.width;
|
|
34
|
+
const height = rect.height;
|
|
35
|
+
let top = 0;
|
|
36
|
+
let left = 0;
|
|
37
|
+
let offsetParent = element;
|
|
38
|
+
while (offsetParent && offsetParent != targetParentOffset) {
|
|
39
|
+
left += offsetParent.offsetLeft;
|
|
40
|
+
// document.body sometimes has offsetTop == 0 but still has an
|
|
41
|
+
// offset because of children margins!
|
|
42
|
+
if (offsetParent === document.body) {
|
|
43
|
+
top += offsetParent.getBoundingClientRect().top + window.scrollY;
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
top += offsetParent.offsetTop;
|
|
47
|
+
}
|
|
48
|
+
if (window.DOMMatrix) {
|
|
49
|
+
const style = window.getComputedStyle(offsetParent);
|
|
50
|
+
const transform = style.transform || style.webkitTransform;
|
|
51
|
+
const domMatrix = new DOMMatrix(transform);
|
|
52
|
+
if (domMatrix) {
|
|
53
|
+
left += domMatrix.m41;
|
|
54
|
+
if (offsetParent !== document.body) {
|
|
55
|
+
top += domMatrix.m42;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
if (!offsetParent.offsetParent) {
|
|
60
|
+
break;
|
|
61
|
+
}
|
|
62
|
+
offsetParent = offsetParent.offsetParent;
|
|
63
|
+
}
|
|
64
|
+
let parentWidth;
|
|
65
|
+
let parentHeight;
|
|
66
|
+
if (offsetParent === document.body) {
|
|
67
|
+
parentWidth = window.innerWidth;
|
|
68
|
+
parentHeight = window.innerHeight;
|
|
69
|
+
}
|
|
70
|
+
else {
|
|
71
|
+
parentWidth = offsetParent.offsetWidth;
|
|
72
|
+
parentHeight = offsetParent.offsetHeight;
|
|
73
|
+
}
|
|
74
|
+
const right = parentWidth - left - rect.width;
|
|
75
|
+
const bottom = parentHeight - top - rect.height;
|
|
76
|
+
return { top, right, bottom, left, width, height };
|
|
77
|
+
}
|
|
78
|
+
export class ZTooltipDeprecated {
|
|
79
|
+
constructor() {
|
|
80
|
+
this.content = undefined;
|
|
81
|
+
this.type = PopoverPositions.AUTO;
|
|
82
|
+
this.open = false;
|
|
83
|
+
this.bindTo = undefined;
|
|
84
|
+
this.position = undefined;
|
|
85
|
+
}
|
|
86
|
+
validateType(newValue) {
|
|
87
|
+
if (newValue && Object.values(PopoverPositions).every((position) => newValue !== position)) {
|
|
88
|
+
this.type = PopoverPositions.AUTO;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
onPositionChange() {
|
|
92
|
+
this.positionChange.emit({ position: this.position });
|
|
93
|
+
}
|
|
94
|
+
disconnectedCallback() {
|
|
95
|
+
cancelAnimationFrame(this.animationFrameRequestId);
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Setup tooltip behaviors on opening.
|
|
99
|
+
*/
|
|
100
|
+
onOpen() {
|
|
101
|
+
cancelAnimationFrame(this.animationFrameRequestId);
|
|
102
|
+
if (this.content) {
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
if (this.open) {
|
|
106
|
+
const setPosition = () => {
|
|
107
|
+
if (this.open) {
|
|
108
|
+
this.setPosition();
|
|
109
|
+
this.animationFrameRequestId = requestAnimationFrame(setPosition);
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
setPosition();
|
|
113
|
+
}
|
|
114
|
+
else {
|
|
115
|
+
const style = this.host.style;
|
|
116
|
+
style.removeProperty("top");
|
|
117
|
+
style.removeProperty("right");
|
|
118
|
+
style.removeProperty("bottom");
|
|
119
|
+
style.removeProperty("left");
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Set the position of the tooltip.
|
|
124
|
+
*/
|
|
125
|
+
setPosition() {
|
|
126
|
+
let element;
|
|
127
|
+
if (typeof this.bindTo === "string") {
|
|
128
|
+
element = this.host.ownerDocument.querySelector(this.bindTo);
|
|
129
|
+
}
|
|
130
|
+
else if (this.bindTo) {
|
|
131
|
+
element = this.bindTo;
|
|
132
|
+
}
|
|
133
|
+
else {
|
|
134
|
+
element = this.host.parentElement;
|
|
135
|
+
}
|
|
136
|
+
if (!element) {
|
|
137
|
+
return;
|
|
138
|
+
}
|
|
139
|
+
const scrollContainer = findScrollableParent(element);
|
|
140
|
+
const scrollingBoundingRect = scrollContainer.getBoundingClientRect();
|
|
141
|
+
const offsetContainer = this.host.offsetParent;
|
|
142
|
+
const relativeBoundingRect = offsetContainer
|
|
143
|
+
? computeOffset(offsetContainer, scrollContainer)
|
|
144
|
+
: { top: 0, right: 0, bottom: 0, left: 0 };
|
|
145
|
+
const boundingRect = computeOffset(element, scrollContainer);
|
|
146
|
+
const top = boundingRect.top - scrollContainer.scrollTop;
|
|
147
|
+
const bottom = scrollingBoundingRect.height - (boundingRect.top + boundingRect.height) + scrollContainer.scrollTop;
|
|
148
|
+
const left = boundingRect.left - scrollContainer.scrollLeft;
|
|
149
|
+
const right = scrollingBoundingRect.width - (boundingRect.left + boundingRect.width) + scrollContainer.scrollLeft;
|
|
150
|
+
const overflowBottom = Math.max(0, scrollingBoundingRect.top + scrollingBoundingRect.height - window.innerHeight);
|
|
151
|
+
const overflowRight = Math.max(0, scrollingBoundingRect.left + scrollingBoundingRect.width - window.innerWidth);
|
|
152
|
+
const availableTop = Math.min(top, top + scrollingBoundingRect.top);
|
|
153
|
+
const availableBottom = Math.min(bottom, bottom - overflowBottom);
|
|
154
|
+
const availableLeft = Math.min(left, left + scrollingBoundingRect.left);
|
|
155
|
+
const availableRight = Math.min(right, right - overflowRight);
|
|
156
|
+
const availableHeight = availableTop + availableBottom + boundingRect.height;
|
|
157
|
+
const availableWidth = availableLeft + availableRight + boundingRect.width;
|
|
158
|
+
let position = this.type;
|
|
159
|
+
if (position === PopoverPositions.AUTO) {
|
|
160
|
+
/**
|
|
161
|
+
* The `AUTO` position tries to place the tooltip in the "safest" area,
|
|
162
|
+
* where there's more space available.
|
|
163
|
+
*/
|
|
164
|
+
const positions = [];
|
|
165
|
+
if (availableTop / availableHeight > 0.9) {
|
|
166
|
+
positions.unshift(PopoverPositions.TOP);
|
|
167
|
+
}
|
|
168
|
+
else if (availableTop / availableHeight > 0.6) {
|
|
169
|
+
positions.push(PopoverPositions.TOP);
|
|
170
|
+
}
|
|
171
|
+
else if (availableTop / availableHeight < 0.1) {
|
|
172
|
+
positions.unshift(PopoverPositions.BOTTOM);
|
|
173
|
+
}
|
|
174
|
+
else {
|
|
175
|
+
positions.push(PopoverPositions.BOTTOM);
|
|
176
|
+
}
|
|
177
|
+
if (availableLeft / availableWidth > 0.6) {
|
|
178
|
+
positions.push(PopoverPositions.LEFT);
|
|
179
|
+
}
|
|
180
|
+
else if (availableLeft / availableWidth < 0.4) {
|
|
181
|
+
positions.push(PopoverPositions.RIGHT);
|
|
182
|
+
}
|
|
183
|
+
position = positions.join("_");
|
|
184
|
+
}
|
|
185
|
+
const style = this.host.style;
|
|
186
|
+
if (!this.content) {
|
|
187
|
+
style.position = "absolute";
|
|
188
|
+
}
|
|
189
|
+
const offsetTop = boundingRect.top - relativeBoundingRect.top;
|
|
190
|
+
const offsetRight = boundingRect.right - relativeBoundingRect.right;
|
|
191
|
+
const offsetBottom = boundingRect.bottom - relativeBoundingRect.bottom;
|
|
192
|
+
const offsetLeft = boundingRect.left - relativeBoundingRect.left;
|
|
193
|
+
if (position === PopoverPositions.TOP ||
|
|
194
|
+
position === PopoverPositions.TOP_RIGHT ||
|
|
195
|
+
position === PopoverPositions.TOP_LEFT) {
|
|
196
|
+
style.top = "auto";
|
|
197
|
+
style.bottom = `${offsetBottom + boundingRect.height}px`;
|
|
198
|
+
}
|
|
199
|
+
if (position === PopoverPositions.BOTTOM ||
|
|
200
|
+
position === PopoverPositions.BOTTOM_RIGHT ||
|
|
201
|
+
position === PopoverPositions.BOTTOM_LEFT) {
|
|
202
|
+
style.top = `${offsetTop + boundingRect.height}px`;
|
|
203
|
+
style.bottom = "auto";
|
|
204
|
+
}
|
|
205
|
+
if (position === PopoverPositions.TOP || position === PopoverPositions.BOTTOM) {
|
|
206
|
+
style.left = `${offsetLeft + boundingRect.width / 2 - this.host.clientWidth / 2}px`;
|
|
207
|
+
}
|
|
208
|
+
if (position === PopoverPositions.TOP_RIGHT || position === PopoverPositions.BOTTOM_RIGHT) {
|
|
209
|
+
style.right = "auto";
|
|
210
|
+
style.left = `${offsetLeft + boundingRect.width}px`;
|
|
211
|
+
}
|
|
212
|
+
if (position === PopoverPositions.TOP_LEFT || position === PopoverPositions.BOTTOM_LEFT) {
|
|
213
|
+
style.left = "auto";
|
|
214
|
+
style.right = `${offsetRight + boundingRect.width}px`;
|
|
215
|
+
}
|
|
216
|
+
if (position === PopoverPositions.RIGHT || position === PopoverPositions.LEFT) {
|
|
217
|
+
style.top = `${offsetTop + boundingRect.height / 2 - this.host.clientHeight / 2}px`;
|
|
218
|
+
style.bottom = "auto";
|
|
219
|
+
}
|
|
220
|
+
if (position === PopoverPositions.RIGHT) {
|
|
221
|
+
style.right = "auto";
|
|
222
|
+
style.left = `${offsetLeft + boundingRect.width}px`;
|
|
223
|
+
}
|
|
224
|
+
if (position === PopoverPositions.LEFT) {
|
|
225
|
+
style.left = "auto";
|
|
226
|
+
style.right = `${offsetRight + boundingRect.width}px`;
|
|
227
|
+
}
|
|
228
|
+
this.position = position;
|
|
229
|
+
}
|
|
230
|
+
componentWillLoad() {
|
|
231
|
+
// Keep backward compatibility
|
|
232
|
+
if (this.content) {
|
|
233
|
+
this.open = true;
|
|
234
|
+
}
|
|
235
|
+
this.validateType(this.type);
|
|
236
|
+
this.onOpen();
|
|
237
|
+
}
|
|
238
|
+
render() {
|
|
239
|
+
if (this.content) {
|
|
240
|
+
return (h(Host, { class: "legacy", position: this.type }, this.content));
|
|
241
|
+
}
|
|
242
|
+
return (h(Host, { position: this.position }, h("slot", null)));
|
|
243
|
+
}
|
|
244
|
+
static get is() { return "z-tooltip-deprecated"; }
|
|
245
|
+
static get encapsulation() { return "shadow"; }
|
|
246
|
+
static get originalStyleUrls() {
|
|
247
|
+
return {
|
|
248
|
+
"$": ["styles.css"]
|
|
249
|
+
};
|
|
250
|
+
}
|
|
251
|
+
static get styleUrls() {
|
|
252
|
+
return {
|
|
253
|
+
"$": ["styles.css"]
|
|
254
|
+
};
|
|
255
|
+
}
|
|
256
|
+
static get properties() {
|
|
257
|
+
return {
|
|
258
|
+
"content": {
|
|
259
|
+
"type": "string",
|
|
260
|
+
"mutable": false,
|
|
261
|
+
"complexType": {
|
|
262
|
+
"original": "string",
|
|
263
|
+
"resolved": "string",
|
|
264
|
+
"references": {}
|
|
265
|
+
},
|
|
266
|
+
"required": false,
|
|
267
|
+
"optional": false,
|
|
268
|
+
"docs": {
|
|
269
|
+
"tags": [{
|
|
270
|
+
"name": "deprecated",
|
|
271
|
+
"text": undefined
|
|
272
|
+
}],
|
|
273
|
+
"text": "Content text."
|
|
274
|
+
},
|
|
275
|
+
"attribute": "content",
|
|
276
|
+
"reflect": false
|
|
277
|
+
},
|
|
278
|
+
"type": {
|
|
279
|
+
"type": "string",
|
|
280
|
+
"mutable": true,
|
|
281
|
+
"complexType": {
|
|
282
|
+
"original": "PopoverPositions",
|
|
283
|
+
"resolved": "PopoverPositions.AUTO | PopoverPositions.BOTTOM | PopoverPositions.BOTTOM_LEFT | PopoverPositions.BOTTOM_RIGHT | PopoverPositions.LEFT | PopoverPositions.LEFT_BOTTOM | PopoverPositions.LEFT_TOP | PopoverPositions.RIGHT | PopoverPositions.RIGHT_BOTTOM | PopoverPositions.RIGHT_TOP | PopoverPositions.TOP | PopoverPositions.TOP_LEFT | PopoverPositions.TOP_RIGHT",
|
|
284
|
+
"references": {
|
|
285
|
+
"PopoverPositions": {
|
|
286
|
+
"location": "import",
|
|
287
|
+
"path": "../../beans/index"
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
"required": false,
|
|
292
|
+
"optional": false,
|
|
293
|
+
"docs": {
|
|
294
|
+
"tags": [],
|
|
295
|
+
"text": "Tooltip position."
|
|
296
|
+
},
|
|
297
|
+
"attribute": "type",
|
|
298
|
+
"reflect": false,
|
|
299
|
+
"defaultValue": "PopoverPositions.AUTO"
|
|
300
|
+
},
|
|
301
|
+
"open": {
|
|
302
|
+
"type": "boolean",
|
|
303
|
+
"mutable": true,
|
|
304
|
+
"complexType": {
|
|
305
|
+
"original": "boolean",
|
|
306
|
+
"resolved": "boolean",
|
|
307
|
+
"references": {}
|
|
308
|
+
},
|
|
309
|
+
"required": false,
|
|
310
|
+
"optional": false,
|
|
311
|
+
"docs": {
|
|
312
|
+
"tags": [],
|
|
313
|
+
"text": "The open state of the tooltip."
|
|
314
|
+
},
|
|
315
|
+
"attribute": "open",
|
|
316
|
+
"reflect": true,
|
|
317
|
+
"defaultValue": "false"
|
|
318
|
+
},
|
|
319
|
+
"bindTo": {
|
|
320
|
+
"type": "string",
|
|
321
|
+
"mutable": false,
|
|
322
|
+
"complexType": {
|
|
323
|
+
"original": "string | HTMLElement",
|
|
324
|
+
"resolved": "HTMLElement | string",
|
|
325
|
+
"references": {
|
|
326
|
+
"HTMLElement": {
|
|
327
|
+
"location": "global"
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
},
|
|
331
|
+
"required": false,
|
|
332
|
+
"optional": true,
|
|
333
|
+
"docs": {
|
|
334
|
+
"tags": [],
|
|
335
|
+
"text": "The selector or the element bound with the tooltip."
|
|
336
|
+
},
|
|
337
|
+
"attribute": "bind-to",
|
|
338
|
+
"reflect": false
|
|
339
|
+
}
|
|
340
|
+
};
|
|
341
|
+
}
|
|
342
|
+
static get states() {
|
|
343
|
+
return {
|
|
344
|
+
"position": {}
|
|
345
|
+
};
|
|
346
|
+
}
|
|
347
|
+
static get events() {
|
|
348
|
+
return [{
|
|
349
|
+
"method": "positionChange",
|
|
350
|
+
"name": "positionChange",
|
|
351
|
+
"bubbles": true,
|
|
352
|
+
"cancelable": true,
|
|
353
|
+
"composed": true,
|
|
354
|
+
"docs": {
|
|
355
|
+
"tags": [],
|
|
356
|
+
"text": "Position change event."
|
|
357
|
+
},
|
|
358
|
+
"complexType": {
|
|
359
|
+
"original": "any",
|
|
360
|
+
"resolved": "any",
|
|
361
|
+
"references": {}
|
|
362
|
+
}
|
|
363
|
+
}];
|
|
364
|
+
}
|
|
365
|
+
static get elementRef() { return "host"; }
|
|
366
|
+
static get watchers() {
|
|
367
|
+
return [{
|
|
368
|
+
"propName": "type",
|
|
369
|
+
"methodName": "validateType"
|
|
370
|
+
}, {
|
|
371
|
+
"propName": "position",
|
|
372
|
+
"methodName": "onPositionChange"
|
|
373
|
+
}, {
|
|
374
|
+
"propName": "open",
|
|
375
|
+
"methodName": "onOpen"
|
|
376
|
+
}];
|
|
377
|
+
}
|
|
378
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
--z-tooltip-theme--surface: var(--color-surface01);
|
|
3
|
+
--z-tooltip-theme--text: var(--color-text01);
|
|
4
|
+
--arrow-size: 6px;
|
|
5
|
+
--edge-offset: calc(-1 * (var(--arrow-size) + calc(var(--space-unit) * 2)));
|
|
6
|
+
|
|
7
|
+
position: relative;
|
|
8
|
+
display: none;
|
|
9
|
+
min-width: calc(var(--space-unit) * 8);
|
|
10
|
+
min-height: calc(var(--space-unit) * 4);
|
|
11
|
+
align-items: center;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
padding: var(--space-unit);
|
|
14
|
+
background: var(--z-tooltip-theme--surface);
|
|
15
|
+
border-radius: var(--border-radius-small);
|
|
16
|
+
color: var(--z-tooltip-theme--text);
|
|
17
|
+
fill: currentcolor;
|
|
18
|
+
filter: drop-shadow(0 4px 8px var(--shadow-color-base));
|
|
19
|
+
font-family: var(--font-family-sans);
|
|
20
|
+
text-align: center;
|
|
21
|
+
will-change: filter;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
:host(.legacy) {
|
|
25
|
+
display: inline-flex;
|
|
26
|
+
min-width: auto;
|
|
27
|
+
max-width: 200px;
|
|
28
|
+
min-height: auto;
|
|
29
|
+
padding: calc(var(--space-unit) * 2);
|
|
30
|
+
border: var(--border-size-small) solid var(--gray200);
|
|
31
|
+
border-radius: var(--border-radius);
|
|
32
|
+
filter: drop-shadow(0 0 2px rgb(0 0 0 / 8%));
|
|
33
|
+
font-size: 12px;
|
|
34
|
+
font-style: italic;
|
|
35
|
+
letter-spacing: 0.32px;
|
|
36
|
+
line-height: 16px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
:host(.legacy)::before {
|
|
40
|
+
--arrow-size: 14px;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
:host([position])::before {
|
|
44
|
+
--arrow-edge-offset: calc(100% - var(--arrow-size) - var(--space-unit));
|
|
45
|
+
--arrow-center-x-offset: calc(50% - calc(var(--arrow-size) / 2));
|
|
46
|
+
--arrow-center-y-offset: calc(100% - calc(var(--arrow-size) / 2));
|
|
47
|
+
|
|
48
|
+
position: absolute;
|
|
49
|
+
width: var(--arrow-size);
|
|
50
|
+
height: var(--arrow-size);
|
|
51
|
+
background: inherit;
|
|
52
|
+
content: "";
|
|
53
|
+
transform: rotate(45deg);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
:host([open][style*="top:"]),
|
|
57
|
+
:host([open][style*="inset:"]) {
|
|
58
|
+
display: inline-flex;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
:host([position^="top"]) {
|
|
62
|
+
margin-bottom: var(--space-unit);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
:host([position="right"]) {
|
|
66
|
+
margin-left: var(--space-unit);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
:host([position="top_right"]),
|
|
70
|
+
:host([position="bottom_right"]) {
|
|
71
|
+
margin-left: var(--edge-offset);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
:host([position^="bottom"]) {
|
|
75
|
+
margin-top: var(--space-unit);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
:host([position="left"]) {
|
|
79
|
+
margin-right: var(--space-unit);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
:host([position="top_left"]),
|
|
83
|
+
:host([position="bottom_left"]) {
|
|
84
|
+
margin-right: var(--edge-offset);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/* Arrow style */
|
|
88
|
+
|
|
89
|
+
:host([position^="top"])::before {
|
|
90
|
+
top: var(--arrow-center-y-offset);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
:host([position^="bottom"])::before {
|
|
94
|
+
bottom: var(--arrow-center-y-offset);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
:host([position="top"])::before,
|
|
98
|
+
:host([position="bottom"])::before {
|
|
99
|
+
left: var(--arrow-center-x-offset);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
:host([position="right"])::before,
|
|
103
|
+
:host([position="left"])::before {
|
|
104
|
+
top: var(--arrow-center-x-offset);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
:host([position="right"])::before {
|
|
108
|
+
right: var(--arrow-center-y-offset);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
:host([position="top_right"])::before,
|
|
112
|
+
:host([position="bottom_right"])::before {
|
|
113
|
+
right: var(--arrow-edge-offset);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
:host([position="left"])::before {
|
|
117
|
+
left: var(--arrow-center-y-offset);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
:host([position="top_left"])::before,
|
|
121
|
+
:host([position="bottom_left"])::before {
|
|
122
|
+
left: var(--arrow-edge-offset);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
::slotted(*) {
|
|
126
|
+
overflow: auto;
|
|
127
|
+
flex: 1 auto;
|
|
128
|
+
}
|
|
@@ -5,9 +5,9 @@ import { LicenseType } from "../../../../beans/index";
|
|
|
5
5
|
*/
|
|
6
6
|
export class ZMyzCardComponent {
|
|
7
7
|
constructor() {
|
|
8
|
-
|
|
8
|
+
this.faded = undefined;
|
|
9
|
+
this.cardtype = undefined;
|
|
9
10
|
this.ispressed = false;
|
|
10
|
-
/** highlighted status */
|
|
11
11
|
this.ishighlighted = false;
|
|
12
12
|
}
|
|
13
13
|
retrieveClass() {
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { AlertType } from "../../../../beans";
|
|
3
3
|
export class ZMyzCardAlert {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.iconname = undefined;
|
|
6
|
+
this.contenttext = undefined;
|
|
7
|
+
this.actiontext = undefined;
|
|
8
|
+
this.type = undefined;
|
|
9
|
+
}
|
|
4
10
|
emitUndoAction() {
|
|
5
11
|
this.undoAction.emit({ actionType: this.type });
|
|
6
12
|
}
|
|
@@ -6,13 +6,11 @@ import { ButtonSize, ButtonVariant } from "../../../../beans";
|
|
|
6
6
|
*/
|
|
7
7
|
export class ZMyzCardDictionary {
|
|
8
8
|
constructor() {
|
|
9
|
-
|
|
9
|
+
this.name = undefined;
|
|
10
|
+
this.cover = undefined;
|
|
10
11
|
this.disabled = false;
|
|
11
|
-
/** card is flipped */
|
|
12
12
|
this.flipped = false;
|
|
13
|
-
/** flip button label */
|
|
14
13
|
this.flipbuttonlabel = "INFO";
|
|
15
|
-
/** hide info button */
|
|
16
14
|
this.hideinfobtn = false;
|
|
17
15
|
}
|
|
18
16
|
handleFlipCard(e) {
|
|
@@ -6,9 +6,12 @@ import { LicenseType } from "../../../../beans/index";
|
|
|
6
6
|
*/
|
|
7
7
|
export class ZMyzCardFooter {
|
|
8
8
|
constructor() {
|
|
9
|
-
|
|
9
|
+
this.titolo = undefined;
|
|
10
|
+
this.autori = undefined;
|
|
11
|
+
this.isbn = undefined;
|
|
12
|
+
this.faded = undefined;
|
|
13
|
+
this.cardtype = undefined;
|
|
10
14
|
this.opened = false;
|
|
11
|
-
/** display footer custom slotted content */
|
|
12
15
|
this.customContent = false;
|
|
13
16
|
this.isOpen = false;
|
|
14
17
|
this.allowTooltipAuthors = false;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import {
|
|
2
|
+
import { PopoverPositions } from "../../../../beans";
|
|
3
3
|
import { handleKeyboardSubmit } from "../../../../utils/utils";
|
|
4
4
|
/**
|
|
5
5
|
* @slot - content
|
|
6
6
|
*/
|
|
7
7
|
export class ZMyzCardInfo {
|
|
8
8
|
constructor() {
|
|
9
|
-
|
|
9
|
+
this.data = undefined;
|
|
10
10
|
this.htmltabindex = 0;
|
|
11
11
|
this.hiddenContent = false;
|
|
12
12
|
this.tooltip = false;
|
|
@@ -87,7 +87,7 @@ export class ZMyzCardInfo {
|
|
|
87
87
|
return;
|
|
88
88
|
}
|
|
89
89
|
const { title, year, author, description } = this.cardData;
|
|
90
|
-
return (h("z-popover", { position:
|
|
90
|
+
return (h("z-popover", { position: PopoverPositions.RIGHT, onClick: () => (this.tooltip = false) }, `${title} ${year} ${author} ${description}`));
|
|
91
91
|
}
|
|
92
92
|
setExpirationLicenseMessage(type) {
|
|
93
93
|
if ((type === "online" && this.cardData.onlineLicense.expired) ||
|
|
@@ -2,9 +2,12 @@ import { h } from "@stencil/core";
|
|
|
2
2
|
import { handleKeyboardSubmit } from "../../../../utils/utils";
|
|
3
3
|
export class ZMyzListItem {
|
|
4
4
|
constructor() {
|
|
5
|
-
|
|
5
|
+
this.text = undefined;
|
|
6
|
+
this.link = undefined;
|
|
6
7
|
this.linktarget = "_self";
|
|
7
|
-
|
|
8
|
+
this.icon = undefined;
|
|
9
|
+
this.listitemid = undefined;
|
|
10
|
+
this.action = undefined;
|
|
8
11
|
this.underlined = true;
|
|
9
12
|
this.emitZListItemLinkClick = this.emitZListItemLinkClick.bind(this);
|
|
10
13
|
this.emitZListItemClick = this.emitZListItemClick.bind(this);
|