@zanichelli/albe-web-components 2.33.3 → 2.33.5-rc2
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 +1221 -1214
- package/LICENSE +21 -21
- package/dist/cjs/_commonjsHelpers-119ffc74.js +17 -0
- package/dist/cjs/{breakpoints-88c4fd6c.js → breakpoints-776c8868.js} +1 -1
- package/dist/cjs/{hammer-6e321f0b.js → hammer-54230951.js} +2 -15
- package/dist/cjs/icons-8ecf1231.js +477 -0
- package/dist/cjs/{index-11a8a536.js → index-21817092.js} +253 -253
- package/dist/cjs/index-9651dba8.js +60 -0
- package/dist/cjs/index.cjs.js +5 -5
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{utils-00e14fba.js → utils-c3cf6ba2.js} +63 -63
- package/dist/cjs/web-components-library.cjs.js +1 -1
- package/dist/cjs/z-alert.cjs.entry.js +19 -0
- package/dist/cjs/z-app-header.cjs.entry.js +133 -133
- package/dist/cjs/z-app-switcher.cjs.entry.js +29 -0
- package/dist/cjs/z-app-topbar.cjs.entry.js +41 -0
- package/dist/cjs/z-aria-alert.cjs.entry.js +9 -9
- package/dist/cjs/z-avatar.cjs.entry.js +43 -0
- package/dist/cjs/z-body_14.cjs.entry.js +513 -0
- package/dist/cjs/z-button-filter_5.cjs.entry.js +620 -0
- package/dist/cjs/z-button-sort.cjs.entry.js +54 -0
- package/dist/cjs/z-candybar.cjs.entry.js +8 -8
- package/dist/cjs/z-card.cjs.entry.js +58 -0
- package/dist/cjs/z-chip.cjs.entry.js +24 -0
- package/dist/cjs/z-combobox.cjs.entry.js +170 -0
- package/dist/cjs/z-contextual-menu.cjs.entry.js +40 -0
- package/dist/cjs/z-cookiebar.cjs.entry.js +31 -31
- package/dist/cjs/z-divider.cjs.entry.js +26 -0
- package/dist/cjs/z-footer-link_3.cjs.entry.js +49 -0
- package/dist/cjs/z-footer.cjs.entry.js +102 -0
- package/dist/cjs/z-ghost-loading.cjs.entry.js +19 -0
- package/dist/cjs/z-heading.cjs.entry.js +8 -8
- package/dist/cjs/z-icon-package.cjs.entry.js +23 -0
- package/dist/cjs/z-info-box.cjs.entry.js +25 -0
- package/dist/cjs/z-link.cjs.entry.js +71 -0
- package/dist/cjs/z-list_3.cjs.entry.js +226 -0
- package/dist/cjs/z-logo.cjs.entry.js +28 -0
- package/dist/cjs/z-menu-dropdown_2.cjs.entry.js +89 -0
- package/dist/cjs/z-menu-section.cjs.entry.js +46 -0
- package/dist/cjs/z-menu.cjs.entry.js +110 -0
- package/dist/cjs/z-messages-pocket.cjs.entry.js +36 -36
- package/dist/cjs/z-modal-login.cjs.entry.js +71 -71
- package/dist/cjs/z-modal.cjs.entry.js +36 -0
- package/dist/cjs/z-myz-card-alert.cjs.entry.js +63 -0
- package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +25 -25
- package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +8 -8
- package/dist/cjs/z-myz-card-footer.cjs.entry.js +52 -0
- package/dist/cjs/z-myz-card-icon.cjs.entry.js +21 -0
- package/dist/cjs/z-myz-card-info.cjs.entry.js +109 -109
- package/dist/cjs/z-myz-card-list.cjs.entry.js +37 -0
- package/dist/cjs/z-myz-card_4.cjs.entry.js +101 -0
- package/dist/cjs/z-myz-list-item.cjs.entry.js +37 -0
- package/dist/cjs/z-myz-topbar.cjs.entry.js +183 -183
- package/dist/cjs/z-navigation-tab.cjs.entry.js +34 -34
- package/dist/cjs/z-navigation-tabs.cjs.entry.js +90 -90
- package/dist/cjs/z-notification.cjs.entry.js +42 -0
- package/dist/cjs/z-otp.cjs.entry.js +30 -30
- package/dist/cjs/z-pagination-bar.cjs.entry.js +128 -0
- package/dist/cjs/z-pagination-page.cjs.entry.js +25 -0
- package/dist/cjs/z-panel-elem.cjs.entry.js +30 -0
- package/dist/cjs/z-pocket-message.cjs.entry.js +8 -8
- package/dist/cjs/z-pocket_3.cjs.entry.js +104 -103
- package/dist/cjs/z-registro-table-expanded-row.cjs.entry.js +19 -0
- package/dist/cjs/z-registro-table-footer.cjs.entry.js +12 -12
- package/dist/cjs/z-slideshow.cjs.entry.js +101 -101
- package/dist/cjs/z-status-tag.cjs.entry.js +29 -0
- package/dist/cjs/z-stepper-item.cjs.entry.js +22 -0
- package/dist/cjs/z-stepper.cjs.entry.js +19 -0
- package/dist/cjs/z-toast-notification-list.cjs.entry.js +45 -45
- package/dist/cjs/z-toast-notification.cjs.entry.js +192 -191
- package/dist/cjs/z-toggle-button.cjs.entry.js +36 -0
- package/dist/cjs/z-tooltip.cjs.entry.js +274 -0
- package/dist/cjs/z-user-dropdown.cjs.entry.js +95 -0
- package/dist/cjs/z-visually-hidden.cjs.entry.js +8 -8
- package/dist/collection/beans/index.js +254 -254
- package/dist/collection/components/buttons/z-button/index.js +219 -219
- package/dist/collection/components/buttons/z-button/styles.css +231 -231
- package/dist/collection/components/buttons/z-button-filter/index.js +155 -155
- package/dist/collection/components/buttons/z-button-filter/styles.css +74 -74
- package/dist/collection/components/buttons/z-button-sort/index.js +216 -216
- package/dist/collection/components/buttons/z-button-sort/styles.css +101 -101
- package/dist/collection/components/buttons/z-chip/index.js +59 -59
- package/dist/collection/components/buttons/z-chip/styles.css +17 -17
- package/dist/collection/components/buttons/z-toggle-button/index.js +122 -122
- package/dist/collection/components/buttons/z-toggle-button/styles.css +62 -62
- package/dist/collection/components/footer/z-footer/index.js +286 -286
- package/dist/collection/components/footer/z-footer/styles.css +241 -241
- package/dist/collection/components/footer/z-footer-link/index.js +37 -37
- package/dist/collection/components/footer/z-footer-link/styles.css +33 -33
- package/dist/collection/components/footer/z-footer-section/index.js +51 -51
- package/dist/collection/components/footer/z-footer-section/styles.css +163 -163
- package/dist/collection/components/footer/z-footer-social/index.js +68 -68
- package/dist/collection/components/footer/z-footer-social/styles.css +23 -23
- package/dist/collection/components/icons/icons.js +473 -473
- package/dist/collection/components/icons/z-icon/index.js +110 -110
- package/dist/collection/components/icons/z-icon/styles.css +14 -14
- package/dist/collection/components/icons/z-icon-package/index.js +20 -20
- package/dist/collection/components/icons/z-icon-package/styles.css +16 -16
- package/dist/collection/components/indicators/z-stepper/index.js +17 -17
- package/dist/collection/components/indicators/z-stepper/styles.css +19 -19
- package/dist/collection/components/indicators/z-stepper-item/index.js +93 -93
- package/dist/collection/components/indicators/z-stepper-item/styles.css +115 -115
- package/dist/collection/components/inputs/z-combobox/index.js +480 -480
- package/dist/collection/components/inputs/z-combobox/styles.css +148 -148
- package/dist/collection/components/inputs/z-input/index.js +821 -821
- package/dist/collection/components/inputs/z-input/styles.css +304 -304
- package/dist/collection/components/inputs/z-input-label/index.js +72 -72
- package/dist/collection/components/inputs/z-input-label/styles.css +16 -16
- package/dist/collection/components/inputs/z-input-message/index.js +64 -64
- package/dist/collection/components/inputs/z-input-message/styles.css +33 -33
- package/dist/collection/components/inputs/z-select/index.js +647 -647
- package/dist/collection/components/inputs/z-select/styles.css +131 -131
- package/dist/collection/components/list/z-list/index.js +57 -57
- package/dist/collection/components/list/z-list/styles.css +7 -7
- package/dist/collection/components/list/z-list-element/index.js +439 -439
- package/dist/collection/components/list/z-list-element/styles.css +133 -133
- package/dist/collection/components/list/z-list-group/index.js +144 -144
- package/dist/collection/components/list/z-list-group/styles.css +22 -22
- package/dist/collection/components/list/z-toast-notification-list/index.js +97 -97
- package/dist/collection/components/list/z-toast-notification-list/styles.css +107 -107
- package/dist/collection/components/logo/z-logo/index.js +128 -128
- package/dist/collection/components/logo/z-logo/styles.css +28 -28
- package/dist/collection/components/modal/z-modal/index.js +160 -160
- package/dist/collection/components/modal/z-modal/styles.css +185 -185
- package/dist/collection/components/modal/z-modal-login/index.js +272 -272
- package/dist/collection/components/modal/z-modal-login/styles.css +159 -159
- package/dist/collection/components/navigation/z-app-header/index.js +267 -267
- package/dist/collection/components/navigation/z-app-header/styles.css +445 -445
- package/dist/collection/components/navigation/z-app-switcher/index.js +70 -70
- package/dist/collection/components/navigation/z-app-switcher/styles.css +35 -35
- package/dist/collection/components/navigation/z-app-topbar/index.js +156 -156
- package/dist/collection/components/navigation/z-app-topbar/styles.css +71 -71
- package/dist/collection/components/navigation/z-link/index.js +309 -309
- package/dist/collection/components/navigation/z-link/styles.css +164 -164
- package/dist/collection/components/navigation/z-menu/index.js +223 -223
- package/dist/collection/components/navigation/z-menu/styles.css +149 -149
- package/dist/collection/components/navigation/z-menu-dropdown/index.js +125 -125
- package/dist/collection/components/navigation/z-menu-dropdown/styles.css +146 -146
- package/dist/collection/components/navigation/z-menu-section/index.js +109 -109
- package/dist/collection/components/navigation/z-menu-section/styles.css +91 -91
- package/dist/collection/components/navigation/z-navigation-tab/index.js +151 -151
- package/dist/collection/components/navigation/z-navigation-tab/styles.css +113 -113
- package/dist/collection/components/navigation/z-navigation-tabs/index.js +179 -179
- package/dist/collection/components/navigation/z-navigation-tabs/styles.css +117 -117
- package/dist/collection/components/navigation/z-user-dropdown/index.js +252 -252
- package/dist/collection/components/navigation/z-user-dropdown/styles.css +315 -315
- package/dist/collection/components/notification/z-candybar/index.js +18 -18
- package/dist/collection/components/notification/z-candybar/styles.css +61 -61
- package/dist/collection/components/notification/z-cookiebar/index.js +111 -111
- package/dist/collection/components/notification/z-cookiebar/styles.css +109 -109
- package/dist/collection/components/notification/z-info-box/index.js +79 -79
- package/dist/collection/components/notification/z-info-box/styles.css +23 -23
- package/dist/collection/components/notification/z-notification/index.js +171 -171
- package/dist/collection/components/notification/z-notification/styles.css +93 -93
- package/dist/collection/components/notification/z-toast-notification/index.js +402 -402
- package/dist/collection/components/notification/z-toast-notification/styles.css +247 -247
- package/dist/collection/components/notification/z-tooltip/index.js +379 -379
- package/dist/collection/components/notification/z-tooltip/styles.css +128 -128
- package/dist/collection/components/pagination/z-pagination-bar/index.js +278 -278
- package/dist/collection/components/pagination/z-pagination-bar/styles.css +23 -23
- package/dist/collection/components/pagination/z-pagination-page/index.js +129 -129
- package/dist/collection/components/pagination/z-pagination-page/styles.css +57 -57
- package/dist/collection/components/panel/z-panel-elem/index.js +193 -193
- package/dist/collection/components/panel/z-panel-elem/styles.css +39 -39
- package/dist/collection/components/typography/z-body/index.js +66 -66
- package/dist/collection/components/typography/z-heading/index.js +66 -66
- package/dist/collection/components/typography/z-typography/index.js +84 -84
- package/dist/collection/components/typography/z-typography/styles.css +61 -61
- package/dist/collection/components/z-aria-alert/index.js +32 -32
- package/dist/collection/components/z-avatar/index.js +137 -137
- package/dist/collection/components/z-avatar/styles.css +35 -35
- package/dist/collection/components/z-card/index.js +153 -153
- package/dist/collection/components/z-card/styles.css +188 -188
- package/dist/collection/components/z-contextual-menu/index.js +122 -122
- package/dist/collection/components/z-contextual-menu/styles.css +45 -45
- package/dist/collection/components/z-divider/index.js +89 -89
- package/dist/collection/components/z-divider/styles.css +37 -37
- package/dist/collection/components/z-ghost-loading/index.js +14 -14
- package/dist/collection/components/z-ghost-loading/styles.css +34 -34
- package/dist/collection/components/z-popover/index.js +273 -274
- package/dist/collection/components/z-popover/styles.css +236 -236
- package/dist/collection/components/z-status-tag/index.js +125 -125
- package/dist/collection/components/z-status-tag/styles.css +133 -133
- package/dist/collection/components/z-visually-hidden/index.js +14 -14
- package/dist/collection/components/z-visually-hidden/styles.css +12 -12
- package/dist/collection/constants/breakpoints.js +3 -3
- package/dist/collection/constants/icons.js +6 -6
- package/dist/collection/index.js +5 -5
- package/dist/collection/snowflakes/myz/card/z-myz-card/index.js +119 -119
- package/dist/collection/snowflakes/myz/card/z-myz-card/styles.css +38 -38
- package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js +148 -148
- package/dist/collection/snowflakes/myz/card/z-myz-card-alert/styles.css +62 -62
- package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js +20 -20
- package/dist/collection/snowflakes/myz/card/z-myz-card-body/styles.css +13 -13
- package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js +87 -87
- package/dist/collection/snowflakes/myz/card/z-myz-card-cover/styles.css +11 -11
- package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js +177 -177
- package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/styles.css +85 -85
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js +190 -190
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer/styles.css +137 -137
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js +23 -23
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/styles.css +32 -32
- package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js +101 -101
- package/dist/collection/snowflakes/myz/card/z-myz-card-header/styles.css +46 -46
- package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js +74 -74
- package/dist/collection/snowflakes/myz/card/z-myz-card-icon/styles.css +70 -70
- package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +213 -213
- package/dist/collection/snowflakes/myz/card/z-myz-card-info/styles.css +124 -124
- package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js +53 -53
- package/dist/collection/snowflakes/myz/card/z-myz-card-list/styles.css +41 -41
- package/dist/collection/snowflakes/myz/list/z-myz-list/index.js +70 -70
- package/dist/collection/snowflakes/myz/list/z-myz-list/styles.css +4 -4
- package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js +188 -188
- package/dist/collection/snowflakes/myz/list/z-myz-list-item/styles.css +48 -48
- package/dist/collection/snowflakes/myz/pocket/z-messages-pocket/index.js +121 -121
- package/dist/collection/snowflakes/myz/pocket/z-messages-pocket/styles.css +106 -106
- package/dist/collection/snowflakes/myz/pocket/z-pocket/index.js +181 -181
- package/dist/collection/snowflakes/myz/pocket/z-pocket/styles.css +56 -56
- package/dist/collection/snowflakes/myz/pocket/z-pocket-body/index.js +77 -77
- package/dist/collection/snowflakes/myz/pocket/z-pocket-body/styles.css +49 -49
- package/dist/collection/snowflakes/myz/pocket/z-pocket-header/index.js +86 -86
- package/dist/collection/snowflakes/myz/pocket/z-pocket-header/styles.css +40 -40
- package/dist/collection/snowflakes/myz/pocket/z-pocket-message/index.js +23 -23
- package/dist/collection/snowflakes/myz/pocket/z-pocket-message/styles.css +53 -53
- package/dist/collection/snowflakes/myz/topbar/index.js +428 -428
- package/dist/collection/snowflakes/myz/topbar/styles.css +594 -594
- package/dist/collection/snowflakes/myz/z-alert/index.js +42 -42
- package/dist/collection/snowflakes/myz/z-alert/styles.css +28 -28
- package/dist/collection/snowflakes/myz/z-otp/index.js +114 -114
- package/dist/collection/snowflakes/myz/z-otp/styles.css +47 -47
- package/dist/collection/snowflakes/myz/z-slideshow/index.js +165 -165
- package/dist/collection/snowflakes/myz/z-slideshow/styles.css +128 -128
- package/dist/collection/snowflakes/registro-table/z-registro-table/index.js +365 -365
- package/dist/collection/snowflakes/registro-table/z-registro-table/styles.css +166 -166
- package/dist/collection/snowflakes/registro-table/z-registro-table-body/index.js +19 -19
- package/dist/collection/snowflakes/registro-table/z-registro-table-body/styles.css +9 -9
- package/dist/collection/snowflakes/registro-table/z-registro-table-cell/index.js +83 -58
- package/dist/collection/snowflakes/registro-table/z-registro-table-cell/styles.css +57 -39
- package/dist/collection/snowflakes/registro-table/z-registro-table-empty-box/index.js +69 -69
- package/dist/collection/snowflakes/registro-table/z-registro-table-empty-box/styles.css +24 -24
- package/dist/collection/snowflakes/registro-table/z-registro-table-expanded-row/index.js +52 -35
- package/dist/collection/snowflakes/registro-table/z-registro-table-expanded-row/styles.css +9 -9
- package/dist/collection/snowflakes/registro-table/z-registro-table-footer/index.js +18 -18
- package/dist/collection/snowflakes/registro-table/z-registro-table-footer/styles.css +5 -5
- package/dist/collection/snowflakes/registro-table/z-registro-table-head/index.js +18 -18
- package/dist/collection/snowflakes/registro-table/z-registro-table-head/styles.css +5 -5
- package/dist/collection/snowflakes/registro-table/z-registro-table-header/index.js +244 -240
- package/dist/collection/snowflakes/registro-table/z-registro-table-header/styles.css +63 -67
- package/dist/collection/snowflakes/registro-table/z-registro-table-header-row/index.js +37 -37
- package/dist/collection/snowflakes/registro-table/z-registro-table-header-row/styles.css +13 -13
- package/dist/collection/snowflakes/registro-table/z-registro-table-row/index.js +86 -86
- package/dist/collection/snowflakes/registro-table/z-registro-table-row/styles.css +54 -54
- package/dist/collection/snowflakes/registro-table/z-registro-table-sticky-footer/index.js +17 -17
- package/dist/collection/snowflakes/registro-table/z-registro-table-sticky-footer/styles.css +10 -10
- package/dist/collection/themes/index.story.js +18 -18
- package/dist/collection/utils/utils.js +82 -82
- package/dist/esm/_commonjsHelpers-8b28c6fa.js +15 -0
- package/dist/esm/{breakpoints-c386984e.js → breakpoints-14432d05.js} +1 -1
- package/dist/esm/{hammer-c807d0b5.js → hammer-501342a9.js} +2 -14
- package/dist/esm/icons-c51b7576.js +475 -0
- package/dist/esm/{index-4952bfe3.js → index-0821f9c7.js} +254 -254
- package/dist/esm/index-aa3a4feb.js +58 -0
- package/dist/esm/index.js +5 -5
- package/dist/esm/loader.js +1 -1
- package/dist/esm/polyfills/core-js.js +0 -0
- package/dist/esm/polyfills/dom.js +0 -0
- package/dist/esm/polyfills/es5-html-element.js +0 -0
- package/dist/esm/polyfills/index.js +0 -0
- package/dist/esm/polyfills/system.js +0 -0
- package/dist/esm/{utils-889efe17.js → utils-81743fd3.js} +64 -64
- package/dist/esm/web-components-library.js +1 -1
- package/dist/esm/z-alert.entry.js +15 -0
- package/dist/esm/z-app-header.entry.js +133 -133
- package/dist/esm/z-app-switcher.entry.js +25 -0
- package/dist/esm/z-app-topbar.entry.js +37 -0
- package/dist/esm/z-aria-alert.entry.js +9 -9
- package/dist/esm/z-avatar.entry.js +39 -0
- package/dist/esm/z-body_14.entry.js +496 -0
- package/dist/esm/z-button-filter_5.entry.js +612 -0
- package/dist/esm/z-button-sort.entry.js +50 -0
- package/dist/esm/z-candybar.entry.js +8 -8
- package/dist/esm/z-card.entry.js +54 -0
- package/dist/esm/z-chip.entry.js +20 -0
- package/dist/esm/z-combobox.entry.js +166 -0
- package/dist/esm/z-contextual-menu.entry.js +36 -0
- package/dist/esm/z-cookiebar.entry.js +31 -31
- package/dist/esm/z-divider.entry.js +22 -0
- package/dist/esm/z-footer-link_3.entry.js +43 -0
- package/dist/esm/z-footer.entry.js +98 -0
- package/dist/esm/z-ghost-loading.entry.js +15 -0
- package/dist/esm/z-heading.entry.js +8 -8
- package/dist/esm/z-icon-package.entry.js +19 -0
- package/dist/esm/z-info-box.entry.js +21 -0
- package/dist/esm/z-link.entry.js +67 -0
- package/dist/esm/z-list_3.entry.js +220 -0
- package/dist/esm/z-logo.entry.js +24 -0
- package/dist/esm/z-menu-dropdown_2.entry.js +84 -0
- package/dist/esm/z-menu-section.entry.js +42 -0
- package/dist/esm/z-menu.entry.js +106 -0
- package/dist/esm/z-messages-pocket.entry.js +36 -36
- package/dist/esm/z-modal-login.entry.js +71 -71
- package/dist/esm/z-modal.entry.js +32 -0
- package/dist/esm/z-myz-card-alert.entry.js +59 -0
- package/dist/esm/z-myz-card-dictionary.entry.js +25 -25
- package/dist/esm/z-myz-card-footer-sections.entry.js +8 -8
- package/dist/esm/z-myz-card-footer.entry.js +48 -0
- package/dist/esm/z-myz-card-icon.entry.js +17 -0
- package/dist/esm/z-myz-card-info.entry.js +109 -109
- package/dist/esm/z-myz-card-list.entry.js +33 -0
- package/dist/esm/z-myz-card_4.entry.js +94 -0
- package/dist/esm/z-myz-list-item.entry.js +33 -0
- package/dist/esm/z-myz-topbar.entry.js +183 -183
- package/dist/esm/z-navigation-tab.entry.js +34 -34
- package/dist/esm/z-navigation-tabs.entry.js +90 -90
- package/dist/esm/z-notification.entry.js +38 -0
- package/dist/esm/z-otp.entry.js +30 -30
- package/dist/esm/z-pagination-bar.entry.js +124 -0
- package/dist/esm/z-pagination-page.entry.js +21 -0
- package/dist/esm/z-panel-elem.entry.js +26 -0
- package/dist/esm/z-pocket-message.entry.js +8 -8
- package/dist/esm/z-pocket_3.entry.js +104 -103
- package/dist/esm/z-registro-table-expanded-row.entry.js +15 -0
- package/dist/esm/z-registro-table-footer.entry.js +12 -12
- package/dist/esm/z-slideshow.entry.js +101 -101
- package/dist/esm/z-status-tag.entry.js +25 -0
- package/dist/esm/z-stepper-item.entry.js +18 -0
- package/dist/esm/z-stepper.entry.js +15 -0
- package/dist/esm/z-toast-notification-list.entry.js +45 -45
- package/dist/esm/z-toast-notification.entry.js +192 -191
- package/dist/esm/z-toggle-button.entry.js +32 -0
- package/dist/esm/z-tooltip.entry.js +270 -0
- package/dist/esm/z-user-dropdown.entry.js +91 -0
- package/dist/esm/z-visually-hidden.entry.js +8 -8
- package/dist/types/beans/index.d.ts +338 -338
- package/dist/types/components/buttons/z-button/index.d.ts +29 -29
- package/dist/types/components/buttons/z-button-filter/index.d.ts +22 -22
- package/dist/types/components/buttons/z-button-sort/index.d.ts +28 -28
- package/dist/types/components/buttons/z-chip/index.d.ts +6 -6
- package/dist/types/components/buttons/z-toggle-button/index.d.ts +16 -16
- package/dist/types/components/footer/z-footer/index.d.ts +46 -46
- package/dist/types/components/footer/z-footer-link/index.d.ts +8 -8
- package/dist/types/components/footer/z-footer-section/index.d.ts +10 -10
- package/dist/types/components/footer/z-footer-social/index.d.ts +9 -9
- package/dist/types/components/icons/icons.d.ts +443 -443
- package/dist/types/components/icons/z-icon/index.d.ts +14 -14
- package/dist/types/components/icons/z-icon-package/index.d.ts +3 -3
- package/dist/types/components/indicators/z-stepper/index.d.ts +6 -6
- package/dist/types/components/indicators/z-stepper-item/index.d.ts +19 -19
- package/dist/types/components/inputs/z-combobox/index.d.ts +62 -62
- package/dist/types/components/inputs/z-input/index.d.ts +102 -102
- package/dist/types/components/inputs/z-input-label/index.d.ts +9 -9
- package/dist/types/components/inputs/z-input-message/index.d.ts +9 -9
- package/dist/types/components/inputs/z-select/index.d.ts +73 -73
- package/dist/types/components/list/z-list/index.d.ts +11 -11
- package/dist/types/components/list/z-list-element/index.d.ts +79 -79
- package/dist/types/components/list/z-list-group/index.d.ts +24 -24
- package/dist/types/components/list/z-toast-notification-list/index.d.ts +14 -14
- package/dist/types/components/logo/z-logo/index.d.ts +15 -15
- package/dist/types/components/modal/z-modal/index.d.ts +25 -25
- package/dist/types/components/modal/z-modal-login/index.d.ts +42 -42
- package/dist/types/components/navigation/z-app-header/index.d.ts +67 -67
- package/dist/types/components/navigation/z-app-switcher/index.d.ts +12 -12
- package/dist/types/components/navigation/z-app-topbar/index.d.ts +20 -20
- package/dist/types/components/navigation/z-link/index.d.ts +41 -41
- package/dist/types/components/navigation/z-menu/index.d.ts +52 -52
- package/dist/types/components/navigation/z-menu-dropdown/index.d.ts +19 -19
- package/dist/types/components/navigation/z-menu-section/index.d.ts +24 -24
- package/dist/types/components/navigation/z-navigation-tab/index.d.ts +16 -16
- package/dist/types/components/navigation/z-navigation-tabs/index.d.ts +32 -32
- package/dist/types/components/navigation/z-user-dropdown/index.d.ts +39 -39
- package/dist/types/components/notification/z-candybar/index.d.ts +6 -6
- package/dist/types/components/notification/z-cookiebar/index.d.ts +16 -16
- package/dist/types/components/notification/z-info-box/index.d.ts +14 -14
- package/dist/types/components/notification/z-notification/index.d.ts +24 -24
- package/dist/types/components/notification/z-toast-notification/index.d.ts +56 -56
- package/dist/types/components/notification/z-tooltip/index.d.ts +41 -41
- package/dist/types/components/pagination/z-pagination-bar/index.d.ts +42 -42
- package/dist/types/components/pagination/z-pagination-page/index.d.ts +15 -15
- package/dist/types/components/panel/z-panel-elem/index.d.ts +25 -25
- package/dist/types/components/typography/z-body/index.d.ts +6 -6
- package/dist/types/components/typography/z-heading/index.d.ts +6 -6
- package/dist/types/components/typography/z-typography/index.d.ts +8 -8
- package/dist/types/components/z-aria-alert/index.d.ts +4 -4
- package/dist/types/components/z-avatar/index.d.ts +16 -16
- package/dist/types/components/z-card/index.d.ts +29 -29
- package/dist/types/components/z-contextual-menu/index.d.ts +22 -22
- package/dist/types/components/z-divider/index.d.ts +10 -10
- package/dist/types/components/z-ghost-loading/index.d.ts +3 -3
- package/dist/types/components/z-popover/index.d.ts +29 -29
- package/dist/types/components/z-status-tag/index.d.ts +15 -15
- package/dist/types/components/z-visually-hidden/index.d.ts +3 -3
- package/dist/types/components.d.ts +19 -9
- package/dist/types/constants/breakpoints.d.ts +3 -3
- package/dist/types/constants/icons.d.ts +6 -6
- package/dist/types/index.d.ts +5 -5
- package/dist/types/snowflakes/myz/card/z-myz-card/index.d.ts +16 -16
- package/dist/types/snowflakes/myz/card/z-myz-card-alert/index.d.ts +20 -20
- package/dist/types/snowflakes/myz/card/z-myz-card-body/index.d.ts +7 -7
- package/dist/types/snowflakes/myz/card/z-myz-card-cover/index.d.ts +12 -12
- package/dist/types/snowflakes/myz/card/z-myz-card-dictionary/index.d.ts +24 -24
- package/dist/types/snowflakes/myz/card/z-myz-card-footer/index.d.ts +34 -34
- package/dist/types/snowflakes/myz/card/z-myz-card-footer-sections/index.d.ts +7 -7
- package/dist/types/snowflakes/myz/card/z-myz-card-header/index.d.ts +23 -23
- package/dist/types/snowflakes/myz/card/z-myz-card-icon/index.d.ts +9 -9
- package/dist/types/snowflakes/myz/card/z-myz-card-info/index.d.ts +36 -36
- package/dist/types/snowflakes/myz/card/z-myz-card-list/index.d.ts +10 -10
- package/dist/types/snowflakes/myz/list/z-myz-list/index.d.ts +11 -11
- package/dist/types/snowflakes/myz/list/z-myz-list-item/index.d.ts +25 -25
- package/dist/types/snowflakes/myz/pocket/z-messages-pocket/index.d.ts +16 -16
- package/dist/types/snowflakes/myz/pocket/z-pocket/index.d.ts +25 -25
- package/dist/types/snowflakes/myz/pocket/z-pocket-body/index.d.ts +12 -12
- package/dist/types/snowflakes/myz/pocket/z-pocket-header/index.d.ts +18 -18
- package/dist/types/snowflakes/myz/pocket/z-pocket-message/index.d.ts +7 -7
- package/dist/types/snowflakes/myz/topbar/index.d.ts +61 -61
- package/dist/types/snowflakes/myz/z-alert/index.d.ts +9 -9
- package/dist/types/snowflakes/myz/z-otp/index.d.ts +13 -13
- package/dist/types/snowflakes/myz/z-slideshow/index.d.ts +30 -30
- package/dist/types/snowflakes/registro-table/z-registro-table/index.d.ts +48 -48
- package/dist/types/snowflakes/registro-table/z-registro-table-body/index.d.ts +5 -5
- package/dist/types/snowflakes/registro-table/z-registro-table-cell/index.d.ts +12 -9
- package/dist/types/snowflakes/registro-table/z-registro-table-empty-box/index.d.ts +12 -12
- package/dist/types/snowflakes/registro-table/z-registro-table-expanded-row/index.d.ts +6 -5
- package/dist/types/snowflakes/registro-table/z-registro-table-footer/index.d.ts +5 -5
- package/dist/types/snowflakes/registro-table/z-registro-table-head/index.d.ts +5 -5
- package/dist/types/snowflakes/registro-table/z-registro-table-header/index.d.ts +27 -27
- package/dist/types/snowflakes/registro-table/z-registro-table-header-row/index.d.ts +5 -5
- package/dist/types/snowflakes/registro-table/z-registro-table-row/index.d.ts +11 -11
- package/dist/types/snowflakes/registro-table/z-registro-table-sticky-footer/index.d.ts +6 -6
- package/dist/types/utils/utils.d.ts +11 -11
- package/dist/web-components-library/index.esm.js +1 -1
- package/dist/web-components-library/p-015af05a.entry.js +1 -0
- package/dist/web-components-library/p-02006641.entry.js +1 -0
- package/dist/web-components-library/p-08bc9807.entry.js +1 -0
- package/dist/web-components-library/p-0b347583.entry.js +1 -0
- package/dist/web-components-library/p-0ce6293a.entry.js +1 -0
- package/dist/web-components-library/p-0fe60379.entry.js +1 -0
- package/dist/web-components-library/p-110cb323.entry.js +1 -0
- package/{www/build/p-8c24ac2e.entry.js → dist/web-components-library/p-16a1a17c.entry.js} +1 -1
- package/dist/web-components-library/{p-3ea97390.entry.js → p-1d19c88d.entry.js} +1 -1
- package/dist/web-components-library/{p-9912e411.js → p-1d371408.js} +2 -2
- package/dist/web-components-library/p-2119ed80.entry.js +1 -0
- package/dist/web-components-library/p-2381edd3.entry.js +1 -0
- package/dist/web-components-library/p-250926fe.entry.js +1 -0
- package/dist/web-components-library/{p-6e8f444c.entry.js → p-297ca258.entry.js} +1 -1
- package/dist/web-components-library/p-2c8ec11d.js +1 -0
- package/dist/web-components-library/{p-fcf19092.entry.js → p-2ce4a266.entry.js} +1 -1
- package/dist/web-components-library/{p-8ad12683.entry.js → p-30bd0f04.entry.js} +1 -1
- package/dist/web-components-library/p-3247dee9.js +7 -0
- package/dist/web-components-library/{p-798d5c2f.entry.js → p-33e2c404.entry.js} +1 -1
- package/dist/web-components-library/{p-881b4877.js → p-391760fd.js} +1 -1
- package/dist/web-components-library/{p-d430b1aa.entry.js → p-4aa82030.entry.js} +1 -1
- package/dist/web-components-library/p-4bdbeee9.entry.js +1 -0
- package/dist/web-components-library/p-519e2237.entry.js +1 -0
- package/dist/web-components-library/p-5bbbc979.entry.js +1 -0
- package/dist/web-components-library/p-6041fb4f.entry.js +1 -0
- package/dist/web-components-library/p-60e40371.entry.js +1 -0
- package/dist/web-components-library/p-6583cbec.entry.js +1 -0
- package/dist/web-components-library/p-676f8160.entry.js +1 -0
- package/dist/web-components-library/{p-40972dfd.entry.js → p-68946b44.entry.js} +1 -1
- package/dist/web-components-library/p-71b134e2.entry.js +1 -0
- package/dist/web-components-library/p-71cc7ed0.entry.js +1 -0
- package/dist/web-components-library/p-74fb3d69.entry.js +1 -0
- package/dist/web-components-library/p-7c866bef.entry.js +1 -0
- package/dist/web-components-library/p-7f4d03e8.entry.js +1 -0
- package/dist/web-components-library/p-80589729.entry.js +1 -0
- package/dist/web-components-library/p-8743724e.entry.js +1 -0
- package/dist/web-components-library/p-8d62e6e4.entry.js +1 -0
- package/dist/web-components-library/p-8e43775e.entry.js +1 -0
- package/dist/web-components-library/p-90cbf584.entry.js +1 -0
- package/dist/web-components-library/{p-e64c06a4.entry.js → p-9a57e8d0.entry.js} +1 -1
- package/dist/web-components-library/p-9fdb83ea.entry.js +1 -0
- package/dist/web-components-library/p-a6d50680.entry.js +1 -0
- package/dist/web-components-library/{p-65c08b33.js → p-a73e7e46.js} +1 -1
- package/dist/web-components-library/p-a7733104.entry.js +1 -0
- package/dist/web-components-library/p-aa0f7169.entry.js +1 -0
- package/dist/web-components-library/p-ac3bc4c2.entry.js +1 -0
- package/dist/web-components-library/p-b1542657.entry.js +1 -0
- package/dist/web-components-library/p-b68038b5.js +1 -0
- package/dist/web-components-library/p-bda07a88.entry.js +1 -0
- package/dist/web-components-library/p-c2fddaea.entry.js +1 -0
- package/dist/web-components-library/{p-d1fed95b.entry.js → p-c5d41e22.entry.js} +1 -1
- package/dist/web-components-library/p-c81058ce.entry.js +1 -0
- package/dist/web-components-library/p-cf914ea7.entry.js +1 -0
- package/dist/web-components-library/p-cfebc80e.entry.js +1 -0
- package/dist/web-components-library/p-d6e756ad.entry.js +1 -0
- package/dist/web-components-library/p-db5863cf.entry.js +1 -0
- package/dist/web-components-library/{p-d69e14fb.js → p-e35d3552.js} +0 -0
- package/dist/web-components-library/{p-0bf8988b.entry.js → p-e4578ccd.entry.js} +1 -1
- package/dist/web-components-library/p-ea4c57b6.entry.js +1 -0
- package/dist/web-components-library/p-f7516af7.entry.js +1 -0
- package/dist/web-components-library/p-f8446b1e.entry.js +1 -0
- package/dist/web-components-library/p-ff0d54da.entry.js +1 -0
- package/dist/web-components-library/web-components-library.esm.js +1 -1
- package/package.json +90 -90
- package/react/components.d.ts +91 -91
- package/react/components.js +97 -97
- package/react/index.d.ts +1 -1
- package/react/index.js +13 -13
- package/react/react-component-lib/createComponent.d.ts +10 -10
- package/react/react-component-lib/createComponent.js +65 -65
- package/react/react-component-lib/createOverlayComponent.d.ts +20 -20
- package/react/react-component-lib/createOverlayComponent.js +95 -95
- package/react/react-component-lib/index.d.ts +2 -2
- package/react/react-component-lib/index.js +7 -7
- package/react/react-component-lib/interfaces.d.ts +29 -29
- package/react/react-component-lib/interfaces.js +2 -2
- package/react/react-component-lib/utils/attachProps.d.ts +12 -12
- package/react/react-component-lib/utils/attachProps.js +102 -102
- package/react/react-component-lib/utils/case.d.ts +2 -2
- package/react/react-component-lib/utils/case.js +11 -11
- package/react/react-component-lib/utils/dev.d.ts +2 -2
- package/react/react-component-lib/utils/dev.js +17 -17
- package/react/react-component-lib/utils/index.d.ts +7 -7
- package/react/react-component-lib/utils/index.js +38 -38
- package/readme.md +236 -236
- package/www/build/index.esm.js +1 -1
- package/www/build/p-015af05a.entry.js +1 -0
- package/www/build/p-02006641.entry.js +1 -0
- package/www/build/p-08bc9807.entry.js +1 -0
- package/www/build/p-0b347583.entry.js +1 -0
- package/www/build/p-0ce6293a.entry.js +1 -0
- package/www/build/p-0fe60379.entry.js +1 -0
- package/www/build/p-110cb323.entry.js +1 -0
- package/www/build/{p-b9f0c115.js → p-1505df3a.js} +2 -2
- package/{dist/web-components-library/p-8c24ac2e.entry.js → www/build/p-16a1a17c.entry.js} +1 -1
- package/www/build/{p-3ea97390.entry.js → p-1d19c88d.entry.js} +1 -1
- package/www/build/{p-9912e411.js → p-1d371408.js} +2 -2
- package/www/build/p-2119ed80.entry.js +1 -0
- package/www/build/p-2381edd3.entry.js +1 -0
- package/www/build/p-250926fe.entry.js +1 -0
- package/www/build/{p-6e8f444c.entry.js → p-297ca258.entry.js} +1 -1
- package/www/build/p-2c8ec11d.js +1 -0
- package/www/build/{p-fcf19092.entry.js → p-2ce4a266.entry.js} +1 -1
- package/www/build/{p-8ad12683.entry.js → p-30bd0f04.entry.js} +1 -1
- package/www/build/p-3247dee9.js +7 -0
- package/www/build/{p-798d5c2f.entry.js → p-33e2c404.entry.js} +1 -1
- package/www/build/{p-881b4877.js → p-391760fd.js} +1 -1
- package/www/build/{p-d430b1aa.entry.js → p-4aa82030.entry.js} +1 -1
- package/www/build/p-4bdbeee9.entry.js +1 -0
- package/www/build/p-519e2237.entry.js +1 -0
- package/www/build/p-5bbbc979.entry.js +1 -0
- package/www/build/p-6041fb4f.entry.js +1 -0
- package/www/build/p-60e40371.entry.js +1 -0
- package/www/build/p-6583cbec.entry.js +1 -0
- package/www/build/p-676f8160.entry.js +1 -0
- package/www/build/{p-40972dfd.entry.js → p-68946b44.entry.js} +1 -1
- package/www/build/p-71b134e2.entry.js +1 -0
- package/www/build/p-71cc7ed0.entry.js +1 -0
- package/www/build/p-74fb3d69.entry.js +1 -0
- package/www/build/p-7c866bef.entry.js +1 -0
- package/www/build/p-7f4d03e8.entry.js +1 -0
- package/www/build/p-80589729.entry.js +1 -0
- package/www/build/p-8743724e.entry.js +1 -0
- package/www/build/p-8d62e6e4.entry.js +1 -0
- package/www/build/p-8e43775e.entry.js +1 -0
- package/www/build/p-90cbf584.entry.js +1 -0
- package/www/build/{p-e64c06a4.entry.js → p-9a57e8d0.entry.js} +1 -1
- package/www/build/p-9fdb83ea.entry.js +1 -0
- package/www/build/p-a6d50680.entry.js +1 -0
- package/www/build/{p-65c08b33.js → p-a73e7e46.js} +1 -1
- package/www/build/p-a7733104.entry.js +1 -0
- package/www/build/p-aa0f7169.entry.js +1 -0
- package/www/build/p-ac3bc4c2.entry.js +1 -0
- package/www/build/p-b1542657.entry.js +1 -0
- package/www/build/p-b68038b5.js +1 -0
- package/www/build/p-bda07a88.entry.js +1 -0
- package/www/build/p-c2fddaea.entry.js +1 -0
- package/www/build/{p-d1fed95b.entry.js → p-c5d41e22.entry.js} +1 -1
- package/www/build/{p-97a11655.css → p-c6932a85.css} +4 -4
- package/www/build/p-c81058ce.entry.js +1 -0
- package/www/build/p-cf914ea7.entry.js +1 -0
- package/www/build/p-cfebc80e.entry.js +1 -0
- package/www/build/p-d6e756ad.entry.js +1 -0
- package/www/build/p-db5863cf.entry.js +1 -0
- package/www/build/{p-d69e14fb.js → p-e35d3552.js} +0 -0
- package/www/build/{p-0bf8988b.entry.js → p-e4578ccd.entry.js} +1 -1
- package/www/build/p-ea4c57b6.entry.js +1 -0
- package/www/build/p-f7516af7.entry.js +1 -0
- package/www/build/p-f8446b1e.entry.js +1 -0
- package/www/build/p-ff0d54da.entry.js +1 -0
- package/www/build/web-components-library.esm.js +1 -1
- package/www/index.html +2 -454
- package/www/pages/notification.html +244 -244
- package/dist/cjs/z-alert_66.cjs.entry.js +0 -3736
- package/dist/esm/z-alert_66.entry.js +0 -3667
- package/dist/web-components-library/p-04c73ec1.entry.js +0 -1
- package/dist/web-components-library/p-43d00d2f.entry.js +0 -1
- package/dist/web-components-library/p-6719b8e1.entry.js +0 -7
- package/dist/web-components-library/p-b4420ba3.entry.js +0 -1
- package/src-react/index.ts +0 -1
- package/www/build/p-04c73ec1.entry.js +0 -1
- package/www/build/p-43d00d2f.entry.js +0 -1
- package/www/build/p-6719b8e1.entry.js +0 -7
- package/www/build/p-b4420ba3.entry.js +0 -1
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-dee3e21d.js');
|
|
6
|
+
const index$1 = require('./index-21817092.js');
|
|
7
|
+
|
|
8
|
+
const stylesCss = ":host{--z-tooltip-theme--surface:var(--color-surface01);--z-tooltip-theme--text:var(--color-text01);--arrow-size:6px;--edge-offset:calc(-1 * (var(--arrow-size) + calc(var(--space-unit) * 2)));position:relative;display:none;align-items:center;justify-content:center;padding:var(--space-unit);min-width:calc(var(--space-unit) * 8);min-height:calc(var(--space-unit) * 4);color:var(--z-tooltip-theme--text);fill:currentColor;font-family:var(--font-family-sans);text-align:center;border-radius:var(--border-radius-small);background:var(--z-tooltip-theme--surface);filter:drop-shadow(0 4px 8px var(--shadow-color-base));will-change:filter}:host(.legacy){display:inline-flex;padding:calc(var(--space-unit) * 2);min-width:auto;min-height:auto;max-width:200px;font-style:italic;line-height:16px;letter-spacing:0.32px;font-size:12px;border:var(--border-size-small) solid var(--gray200);border-radius:var(--border-radius);filter:drop-shadow(0px 0px 2px rgba(0, 0, 0, 0.08))}:host(.legacy)::before{--arrow-size:14px}:host([position])::before{--arrow-edge-offset:calc(100% - var(--arrow-size) - var(--space-unit));--arrow-center-x-offset:calc(50% - calc(var(--arrow-size) / 2));--arrow-center-y-offset:calc(100% - calc(var(--arrow-size) / 2));content:'';position:absolute;width:var(--arrow-size);height:var(--arrow-size);background:inherit;transform:rotate(45deg)}:host([open][style*='top:']),:host([open][style*='inset:']){display:inline-flex}:host([position^='top']){margin-bottom:var(--space-unit)}:host([position='right']){margin-left:var(--space-unit)}:host([position='top_right']),:host([position='bottom_right']){margin-left:var(--edge-offset)}:host([position^='bottom']){margin-top:var(--space-unit)}:host([position='left']){margin-right:var(--space-unit)}:host([position='top_left']),:host([position='bottom_left']){margin-right:var(--edge-offset)}:host([position^='top'])::before{top:var(--arrow-center-y-offset)}:host([position^='bottom'])::before{bottom:var(--arrow-center-y-offset)}:host([position='top'])::before,:host([position='bottom'])::before{left:var(--arrow-center-x-offset)}:host([position='right'])::before,:host([position='left'])::before{top:var(--arrow-center-x-offset)}:host([position='right'])::before{right:var(--arrow-center-y-offset)}:host([position='top_right'])::before,:host([position='bottom_right'])::before{right:var(--arrow-edge-offset)}:host([position='left'])::before{left:var(--arrow-center-y-offset)}:host([position='top_left'])::before,:host([position='bottom_left'])::before{left:var(--arrow-edge-offset)}::slotted(*){flex:1 auto;overflow:auto}";
|
|
9
|
+
|
|
10
|
+
const documentElement = document.documentElement;
|
|
11
|
+
/**
|
|
12
|
+
* Find the closest scrollable parent of a node.
|
|
13
|
+
*
|
|
14
|
+
* @param {Element} element The node
|
|
15
|
+
*/
|
|
16
|
+
function findScrollableParent(element) {
|
|
17
|
+
let parent = element.parentNode;
|
|
18
|
+
while (parent && parent !== documentElement) {
|
|
19
|
+
const { overflow, overflowX, overflowY } = window.getComputedStyle(parent);
|
|
20
|
+
if (overflow === 'hidden' ||
|
|
21
|
+
overflowY === 'hidden' ||
|
|
22
|
+
overflowX === 'hidden') {
|
|
23
|
+
return parent;
|
|
24
|
+
}
|
|
25
|
+
if ((parent.scrollHeight > parent.clientHeight && overflow !== 'visible' && overflowY !== 'visible') ||
|
|
26
|
+
(parent.scrollWidth > parent.clientWidth && overflow !== 'visible' && overflowX !== 'visible')) {
|
|
27
|
+
return parent;
|
|
28
|
+
}
|
|
29
|
+
parent = parent.parentNode;
|
|
30
|
+
}
|
|
31
|
+
return documentElement;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Calculate computed offset.
|
|
35
|
+
* It includes matrix transformations.
|
|
36
|
+
* @param element The target element.
|
|
37
|
+
* @param targetParentOffset The relative offset parent.
|
|
38
|
+
* @return A client rect object.
|
|
39
|
+
*/
|
|
40
|
+
function computeOffset(element, targetParentOffset) {
|
|
41
|
+
const rect = element.getBoundingClientRect();
|
|
42
|
+
const width = rect.width;
|
|
43
|
+
const height = rect.height;
|
|
44
|
+
let top = 0;
|
|
45
|
+
let left = 0;
|
|
46
|
+
let offsetParent = element;
|
|
47
|
+
while (offsetParent && offsetParent != targetParentOffset) {
|
|
48
|
+
left += offsetParent.offsetLeft;
|
|
49
|
+
// document.body sometimes has offsetTop == 0 but still has an
|
|
50
|
+
// offset because of children margins!
|
|
51
|
+
if (offsetParent === document.body) {
|
|
52
|
+
top += offsetParent.getBoundingClientRect().top + window.scrollY;
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
top += offsetParent.offsetTop;
|
|
56
|
+
}
|
|
57
|
+
if (window.DOMMatrix) {
|
|
58
|
+
const style = window.getComputedStyle(offsetParent);
|
|
59
|
+
const transform = style.transform || style.webkitTransform;
|
|
60
|
+
const domMatrix = new DOMMatrix(transform);
|
|
61
|
+
if (domMatrix) {
|
|
62
|
+
left += domMatrix.m41;
|
|
63
|
+
if (offsetParent !== document.body) {
|
|
64
|
+
top += domMatrix.m42;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
if (!offsetParent.offsetParent) {
|
|
69
|
+
break;
|
|
70
|
+
}
|
|
71
|
+
offsetParent = offsetParent.offsetParent;
|
|
72
|
+
}
|
|
73
|
+
let parentWidth;
|
|
74
|
+
let parentHeight;
|
|
75
|
+
if (offsetParent === document.body) {
|
|
76
|
+
parentWidth = window.innerWidth;
|
|
77
|
+
parentHeight = window.innerHeight;
|
|
78
|
+
}
|
|
79
|
+
else {
|
|
80
|
+
parentWidth = offsetParent.offsetWidth;
|
|
81
|
+
parentHeight = offsetParent.offsetHeight;
|
|
82
|
+
}
|
|
83
|
+
const right = parentWidth - left - rect.width;
|
|
84
|
+
const bottom = parentHeight - top - rect.height;
|
|
85
|
+
return { top, right, bottom, left, width, height };
|
|
86
|
+
}
|
|
87
|
+
const ZTooltip = class {
|
|
88
|
+
constructor(hostRef) {
|
|
89
|
+
index.registerInstance(this, hostRef);
|
|
90
|
+
this.positionChange = index.createEvent(this, "positionChange", 7);
|
|
91
|
+
/** Tooltip position. */
|
|
92
|
+
this.type = index$1.TooltipPosition.AUTO;
|
|
93
|
+
/**
|
|
94
|
+
* The open state of the tooltip.
|
|
95
|
+
*/
|
|
96
|
+
this.open = false;
|
|
97
|
+
}
|
|
98
|
+
validateType(newValue) {
|
|
99
|
+
if (newValue &&
|
|
100
|
+
Object
|
|
101
|
+
.values(index$1.TooltipPosition)
|
|
102
|
+
.every((position) => newValue !== position)) {
|
|
103
|
+
this.type = index$1.TooltipPosition.AUTO;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
onPositionChange() {
|
|
107
|
+
this.positionChange.emit({ position: this.position });
|
|
108
|
+
}
|
|
109
|
+
disconnectedCallback() {
|
|
110
|
+
cancelAnimationFrame(this.animationFrameRequestId);
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Setup tooltip behaviors on opening.
|
|
114
|
+
*/
|
|
115
|
+
onOpen() {
|
|
116
|
+
cancelAnimationFrame(this.animationFrameRequestId);
|
|
117
|
+
if (this.content) {
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
120
|
+
if (this.open) {
|
|
121
|
+
const setPosition = () => {
|
|
122
|
+
if (this.open) {
|
|
123
|
+
this.setPosition();
|
|
124
|
+
this.animationFrameRequestId = requestAnimationFrame(setPosition);
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
setPosition();
|
|
128
|
+
}
|
|
129
|
+
else {
|
|
130
|
+
const style = this.host.style;
|
|
131
|
+
style.removeProperty("top");
|
|
132
|
+
style.removeProperty("right");
|
|
133
|
+
style.removeProperty("bottom");
|
|
134
|
+
style.removeProperty("left");
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Set the position of the tooltip.
|
|
139
|
+
*/
|
|
140
|
+
setPosition() {
|
|
141
|
+
let element;
|
|
142
|
+
if (typeof this.bindTo === "string") {
|
|
143
|
+
element = this.host.ownerDocument.querySelector(this.bindTo);
|
|
144
|
+
}
|
|
145
|
+
else if (this.bindTo) {
|
|
146
|
+
element = this.bindTo;
|
|
147
|
+
}
|
|
148
|
+
else {
|
|
149
|
+
element = this.host.parentElement;
|
|
150
|
+
}
|
|
151
|
+
if (!element) {
|
|
152
|
+
return;
|
|
153
|
+
}
|
|
154
|
+
const scrollContainer = findScrollableParent(element);
|
|
155
|
+
const scrollingBoundingRect = scrollContainer.getBoundingClientRect();
|
|
156
|
+
const offsetContainer = this.host.offsetParent;
|
|
157
|
+
const relativeBoundingRect = offsetContainer ? computeOffset(offsetContainer, scrollContainer) : { top: 0, right: 0, bottom: 0, left: 0 };
|
|
158
|
+
const boundingRect = computeOffset(element, scrollContainer);
|
|
159
|
+
const top = boundingRect.top - scrollContainer.scrollTop;
|
|
160
|
+
const bottom = scrollingBoundingRect.height - (boundingRect.top + boundingRect.height) + scrollContainer.scrollTop;
|
|
161
|
+
const left = boundingRect.left - scrollContainer.scrollLeft;
|
|
162
|
+
const right = scrollingBoundingRect.width - (boundingRect.left + boundingRect.width) + scrollContainer.scrollLeft;
|
|
163
|
+
const overflowBottom = Math.max(0, scrollingBoundingRect.top + scrollingBoundingRect.height - window.innerHeight);
|
|
164
|
+
const overflowRight = Math.max(0, scrollingBoundingRect.left + scrollingBoundingRect.width - window.innerWidth);
|
|
165
|
+
const availableTop = Math.min(top, top + scrollingBoundingRect.top);
|
|
166
|
+
const availableBottom = Math.min(bottom, bottom - overflowBottom);
|
|
167
|
+
const availableLeft = Math.min(left, left + scrollingBoundingRect.left);
|
|
168
|
+
const availableRight = Math.min(right, right - overflowRight);
|
|
169
|
+
const availableHeight = availableTop + availableBottom + boundingRect.height;
|
|
170
|
+
const availableWidth = availableLeft + availableRight + boundingRect.width;
|
|
171
|
+
let position = this.type;
|
|
172
|
+
if (position === index$1.TooltipPosition.AUTO) {
|
|
173
|
+
/**
|
|
174
|
+
* The `AUTO` position tries to place the tooltip in the "safest" area,
|
|
175
|
+
* where there's more space available.
|
|
176
|
+
*/
|
|
177
|
+
const positions = [];
|
|
178
|
+
if (availableTop / availableHeight > 0.9) {
|
|
179
|
+
positions.unshift(index$1.TooltipPosition.TOP);
|
|
180
|
+
}
|
|
181
|
+
else if (availableTop / availableHeight > 0.6) {
|
|
182
|
+
positions.push(index$1.TooltipPosition.TOP);
|
|
183
|
+
}
|
|
184
|
+
else if (availableTop / availableHeight < 0.1) {
|
|
185
|
+
positions.unshift(index$1.TooltipPosition.BOTTOM);
|
|
186
|
+
}
|
|
187
|
+
else {
|
|
188
|
+
positions.push(index$1.TooltipPosition.BOTTOM);
|
|
189
|
+
}
|
|
190
|
+
if (availableLeft / availableWidth > 0.6) {
|
|
191
|
+
positions.push(index$1.TooltipPosition.LEFT);
|
|
192
|
+
}
|
|
193
|
+
else if (availableLeft / availableWidth < 0.4) {
|
|
194
|
+
positions.push(index$1.TooltipPosition.RIGHT);
|
|
195
|
+
}
|
|
196
|
+
position = positions.join("_");
|
|
197
|
+
}
|
|
198
|
+
const style = this.host.style;
|
|
199
|
+
if (!this.content) {
|
|
200
|
+
style.position = "absolute";
|
|
201
|
+
}
|
|
202
|
+
const offsetTop = boundingRect.top - relativeBoundingRect.top;
|
|
203
|
+
const offsetRight = boundingRect.right - relativeBoundingRect.right;
|
|
204
|
+
const offsetBottom = boundingRect.bottom - relativeBoundingRect.bottom;
|
|
205
|
+
const offsetLeft = boundingRect.left - relativeBoundingRect.left;
|
|
206
|
+
if (position === index$1.TooltipPosition.TOP ||
|
|
207
|
+
position === index$1.TooltipPosition.TOP_RIGHT ||
|
|
208
|
+
position === index$1.TooltipPosition.TOP_LEFT) {
|
|
209
|
+
style.top = "auto";
|
|
210
|
+
style.bottom = `${offsetBottom + boundingRect.height}px`;
|
|
211
|
+
}
|
|
212
|
+
if (position === index$1.TooltipPosition.BOTTOM ||
|
|
213
|
+
position === index$1.TooltipPosition.BOTTOM_RIGHT ||
|
|
214
|
+
position === index$1.TooltipPosition.BOTTOM_LEFT) {
|
|
215
|
+
style.top = `${offsetTop + boundingRect.height}px`;
|
|
216
|
+
style.bottom = "auto";
|
|
217
|
+
}
|
|
218
|
+
if (position === index$1.TooltipPosition.TOP ||
|
|
219
|
+
position === index$1.TooltipPosition.BOTTOM) {
|
|
220
|
+
style.left = `${offsetLeft +
|
|
221
|
+
(boundingRect.width / 2) -
|
|
222
|
+
(this.host.clientWidth / 2)}px`;
|
|
223
|
+
}
|
|
224
|
+
if (position === index$1.TooltipPosition.TOP_RIGHT ||
|
|
225
|
+
position === index$1.TooltipPosition.BOTTOM_RIGHT) {
|
|
226
|
+
style.right = "auto";
|
|
227
|
+
style.left = `${offsetLeft + boundingRect.width}px`;
|
|
228
|
+
}
|
|
229
|
+
if (position === index$1.TooltipPosition.TOP_LEFT ||
|
|
230
|
+
position === index$1.TooltipPosition.BOTTOM_LEFT) {
|
|
231
|
+
style.left = "auto";
|
|
232
|
+
style.right = `${offsetRight + boundingRect.width}px`;
|
|
233
|
+
}
|
|
234
|
+
if (position === index$1.TooltipPosition.RIGHT ||
|
|
235
|
+
position === index$1.TooltipPosition.LEFT) {
|
|
236
|
+
style.top = `${offsetTop +
|
|
237
|
+
(boundingRect.height / 2) -
|
|
238
|
+
(this.host.clientHeight / 2)}px`;
|
|
239
|
+
style.bottom = "auto";
|
|
240
|
+
}
|
|
241
|
+
if (position === index$1.TooltipPosition.RIGHT) {
|
|
242
|
+
style.right = "auto";
|
|
243
|
+
style.left = `${offsetLeft + boundingRect.width}px`;
|
|
244
|
+
}
|
|
245
|
+
if (position === index$1.TooltipPosition.LEFT) {
|
|
246
|
+
style.left = "auto";
|
|
247
|
+
style.right = `${offsetRight + boundingRect.width}px`;
|
|
248
|
+
}
|
|
249
|
+
this.position = position;
|
|
250
|
+
}
|
|
251
|
+
componentWillLoad() {
|
|
252
|
+
// Keep backward compatibility
|
|
253
|
+
if (this.content) {
|
|
254
|
+
this.open = true;
|
|
255
|
+
}
|
|
256
|
+
this.validateType(this.type);
|
|
257
|
+
this.onOpen();
|
|
258
|
+
}
|
|
259
|
+
render() {
|
|
260
|
+
if (this.content) {
|
|
261
|
+
return (index.h(index.Host, { class: "legacy", position: this.type }, this.content));
|
|
262
|
+
}
|
|
263
|
+
return (index.h(index.Host, { position: this.position }, index.h("slot", null)));
|
|
264
|
+
}
|
|
265
|
+
get host() { return index.getElement(this); }
|
|
266
|
+
static get watchers() { return {
|
|
267
|
+
"type": ["validateType"],
|
|
268
|
+
"position": ["onPositionChange"],
|
|
269
|
+
"open": ["onOpen"]
|
|
270
|
+
}; }
|
|
271
|
+
};
|
|
272
|
+
ZTooltip.style = stylesCss;
|
|
273
|
+
|
|
274
|
+
exports.z_tooltip = ZTooltip;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-dee3e21d.js');
|
|
6
|
+
const breakpoints = require('./breakpoints-776c8868.js');
|
|
7
|
+
|
|
8
|
+
const stylesCss = ":host{background-color:var(--gray900)}:host(.inverse){background-color:var(--color-white)}button{cursor:pointer;display:flex;flex-direction:column;width:100%;margin:0;background-color:var(--gray900);border:none;padding:0;letter-spacing:0.16px;white-space:nowrap}button.inverse{background-color:var(--color-white)}button div.firstline{display:flex;justify-content:flex-end;align-items:center;max-width:200px}button.open div.firstline{max-width:none}z-icon{padding:0 2px;fill:var(--color-white)}z-icon.inverse{fill:var(--gray900)}ul{box-sizing:border-box;position:absolute;left:0;padding:calc(var(--space-unit) / 2) calc(var(--space-unit) * 2) 0 calc(var(--space-unit) * 2);width:100%;margin:calc(var(--space-unit) * 1.5) 0 0 0;background-color:var(--gray900);font-family:var(--font-family-sans);font-weight:var(--font-sb);font-size:14px;line-height:20px;letter-spacing:0.3px}ul.inverse{background-color:var(--color-white)}ul>li{display:flex;justify-content:flex-end;white-space:nowrap;padding:calc(var(--space-unit) * 1.5 - 1px) 0;margin:0;border-bottom:var(--border-base) solid var(--gray700)}ul>li.inverse{border-bottom-color:var(--gray400)}ul>li:first-child{border-top:none;padding-top:0;padding-bottom:calc(var(--space-unit) + 6px);flex-direction:column;align-items:end}ul>li:last-child{border-bottom:none;margin-bottom:0}#guestbutton{box-sizing:border-box;display:inline-flex;flex-direction:row;align-items:center;justify-content:center;width:100%;font-family:var(--font-family-sans);font-weight:var(--font-sb);font-size:14px;line-height:1;letter-spacing:0.3px;border-width:var(--border-size-medium);border-style:solid;border-radius:var(--border-radius);vertical-align:middle;text-transform:uppercase;text-decoration:none;cursor:pointer;outline:none;fill:currentColor;height:32px;min-width:32px;padding:0 calc(var(--space-unit) * 2);background-color:var(--color-white);border-color:var(--color-white);color:var(--gray800)}#guestbutton.inverse{background-color:var(--gray800);border-color:var(--gray800);color:var(--color-white)}.userfullname{padding:0;overflow:hidden;max-width:250px;text-overflow:ellipsis;width:100%;color:var(--color-white);font-family:var(--font-family-sans);font-weight:var(--font-sb);font-size:16px;line-height:24px;letter-spacing:0;text-align:right}.userfullname.inverse{color:var(--gray800)}.useremail{color:var(--color-white);font-family:var(--font-family-sans);font-weight:var(--font-rg);font-size:12px;line-height:16px;letter-spacing:0.32px;overflow:hidden;text-overflow:ellipsis;width:100%;text-align:right}.useremail.inverse{color:var(--gray800)}@media only screen and (min-width: 768px){:host{height:calc(var(--space-unit) * 4);background-color:var(--gray900)}:host(.inverse){background-color:var(--color-white)}:host>div{position:relative;top:50%;transform:translateY(-50%)}:host>div.open{top:auto;transform:none}:host>div>div{padding:0}:host>div>div.open{position:absolute;right:calc(var(--space-unit) * -1);box-shadow:0px 2px calc(var(--space-unit) * .5) 0px rgba(0, 0, 0, 0.5);background-color:var(--color-white);margin-top:calc(var(--space-unit) / 2);padding:calc(var(--space-unit) / 2 + 1px) var(--space-unit) 0 var(--space-unit);transform:translate(0, -4px)}:host>div>div.inverse.open{background-color:var(--gray800)}button{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-end;align-items:end;align-content:center}button.open{background-color:var(--color-white);border-top:var(--border-size-small) solid var(--color-white);border-top-left-radius:calc(var(--space-unit) * .5);border-top-right-radius:calc(var(--space-unit) * .5);max-width:initial;margin-left:var(--space-unit);padding-right:var(--space-unit)}button.open.inverse{border-top-color:var(--gray800);background-color:var(--gray800)}button:not(.open) z-icon{fill:var(--color-white)}button:not(.open) z-icon.inverse{fill:var(--gray800)}button.open z-icon{fill:var(--gray800)}button.open z-icon.inverse{fill:var(--color-white)}.userfullname{font-family:var(--font-family-sans);font-weight:var(--font-sb);font-size:14px;line-height:20px;letter-spacing:0.16px;padding:0 calc(var(--space-unit) - 6px) 0 calc(var(--space-unit) - 2px);width:auto}.userfullname.inverse{color:var(--gray800)}button.open div.userfullname{color:var(--gray800);max-width:none;text-overflow:clip}button.open div.userfullname.inverse{color:var(--color-white)}.useremail{padding-right:calc(var(--space-unit) * 3 - 2px);box-sizing:border-box}button.open div.useremail{color:var(--gray800)}button.open div.useremail.inverse{color:var(--color-white)}ul{position:initial;left:initial;padding:0;width:100%;background-color:var(--color-white)}ul.inverse{border-bottom-color:var(--gray800);background-color:var(--gray800)}ul>li{color:var(--gray800);border-bottom:var(--border-base) solid var(--gray400);margin:0 var(--space-unit)}ul>li.inverse{color:var(--color-white)}ul>li:first-child{border-top:var(--border-base) solid var(--gray400);padding-top:calc(var(--space-unit) + 3px);padding-bottom:calc(var(--space-unit) + 5px)}}";
|
|
9
|
+
|
|
10
|
+
const ZUserDropdown = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
this.userButtonClick = index.createEvent(this, "userButtonClick", 7);
|
|
14
|
+
this.dropdownMenuLinkClick = index.createEvent(this, "dropdownMenuLinkClick", 7);
|
|
15
|
+
/** if inner components colors are inverted, or not, default false */
|
|
16
|
+
this.useInverseColors = false;
|
|
17
|
+
this.isMenuOpen = false;
|
|
18
|
+
this.handleLoggedButtonClick = this.handleLoggedButtonClick.bind(this);
|
|
19
|
+
this.emitDropdownMenuLinkClick = this.emitDropdownMenuLinkClick.bind(this);
|
|
20
|
+
}
|
|
21
|
+
componentDidLoad() {
|
|
22
|
+
this.setMobileAndDivToResizeWidth();
|
|
23
|
+
}
|
|
24
|
+
componentWillUpdate() {
|
|
25
|
+
this.setMobileAndDivToResizeWidth();
|
|
26
|
+
}
|
|
27
|
+
componentWillRender() {
|
|
28
|
+
if (this.menuContent) {
|
|
29
|
+
this.linkArray = typeof this.menuContent === "string" ? JSON.parse(this.menuContent) : this.menuContent;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
setMobileAndDivToResizeWidth() {
|
|
33
|
+
var _a;
|
|
34
|
+
if (this.divToResize) {
|
|
35
|
+
this.isMobile = window.screen.width <= breakpoints.mobileBreakpoint || window.innerWidth <= breakpoints.mobileBreakpoint;
|
|
36
|
+
if (this.logged && !this.isMobile && this.isMenuOpen) {
|
|
37
|
+
this.divToResize.style.width = `${(_a = this.userButton) === null || _a === void 0 ? void 0 : _a.offsetWidth}px`;
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
40
|
+
this.divToResize.removeAttribute('style');
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
emitUserButtonClick() {
|
|
45
|
+
this.userButtonClick.emit(this.isMenuOpen);
|
|
46
|
+
}
|
|
47
|
+
emitDropdownMenuLinkClick(e) {
|
|
48
|
+
this.isMenuOpen = false;
|
|
49
|
+
this.dropdownMenuLinkClick.emit({ e, linkId: e.detail.linkId });
|
|
50
|
+
}
|
|
51
|
+
handleResize() {
|
|
52
|
+
this.isMobile = window.innerWidth <= breakpoints.mobileBreakpoint;
|
|
53
|
+
}
|
|
54
|
+
handleOrientationChange() {
|
|
55
|
+
this.isMobile = screen.width <= breakpoints.mobileBreakpoint;
|
|
56
|
+
}
|
|
57
|
+
handleClickOutside(e) {
|
|
58
|
+
if (e.target.nodeName !== "Z-USER-DROPDOWN") {
|
|
59
|
+
this.isMenuOpen = false;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
handleLoggedButtonClick() {
|
|
63
|
+
this.isMenuOpen = !this.isMenuOpen;
|
|
64
|
+
this.emitUserButtonClick();
|
|
65
|
+
}
|
|
66
|
+
renderGuestButton() {
|
|
67
|
+
return (index.h("button", { id: "guestbutton", class: this.useInverseColors ? "inverse" : "", onClick: () => this.emitUserButtonClick() }, "ENTRA"));
|
|
68
|
+
}
|
|
69
|
+
renderLoggedButton() {
|
|
70
|
+
const direction = this.isMenuOpen ? "up" : "down";
|
|
71
|
+
const colorClass = this.useInverseColors ? "inverse" : "";
|
|
72
|
+
return (index.h("button", { ref: (el) => (this.userButton = el), title: this.userFullName, class: `${colorClass} ${this.isMenuOpen ? "open" : ""}`, onClick: this.handleLoggedButtonClick }, index.h("div", null, index.h("div", { class: "firstline" }, index.h("z-icon", { class: colorClass, name: "user-avatar-filled", height: 16, width: 16 }), !this.isMobile && index.h("div", { class: `userfullname ${colorClass}` }, this.userFullName), index.h("z-icon", { class: colorClass, name: `caret-${direction}-filled`, height: 16, width: 16 })), !this.isMobile && this.isMenuOpen && index.h("div", { class: `useremail ${colorClass}` }, this.userEmail))));
|
|
73
|
+
}
|
|
74
|
+
getZLinkTextcolor() {
|
|
75
|
+
if (this.isMobile) {
|
|
76
|
+
return this.useInverseColors ? "black" : "white";
|
|
77
|
+
}
|
|
78
|
+
else {
|
|
79
|
+
return this.useInverseColors ? "white" : "black";
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
renderDropdownMenu() {
|
|
83
|
+
const colorClass = this.useInverseColors ? "inverse" : "";
|
|
84
|
+
return (this.isMenuOpen && (index.h("ul", { class: colorClass }, this.isMobile &&
|
|
85
|
+
index.h("li", { class: colorClass }, index.h("div", { class: `userfullname ${colorClass}` }, this.userFullName), index.h("div", { class: `useremail ${colorClass}` }, this.userEmail)), this.linkArray && this.linkArray.map((link) => index.h("li", { id: link.id, class: colorClass }, index.h("z-link", { textcolor: this.getZLinkTextcolor(), href: link.link, htmlid: link.id, target: link.target, icon: link.icon, onZLinkClick: this.emitDropdownMenuLinkClick }, link.label))))));
|
|
86
|
+
}
|
|
87
|
+
render() {
|
|
88
|
+
const openClass = `${this.logged && this.isMenuOpen ? "open" : ""}`;
|
|
89
|
+
const colorClass = this.useInverseColors ? "inverse" : "";
|
|
90
|
+
return (index.h(index.Host, { class: colorClass }, index.h("div", { ref: (el) => (this.divToResize = el), class: openClass }, index.h("div", { class: `${colorClass} ${openClass}` }, this.logged ? this.renderLoggedButton() : this.renderGuestButton(), this.logged && this.renderDropdownMenu()))));
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
ZUserDropdown.style = stylesCss;
|
|
94
|
+
|
|
95
|
+
exports.z_user_dropdown = ZUserDropdown;
|
|
@@ -6,14 +6,14 @@ const index = require('./index-dee3e21d.js');
|
|
|
6
6
|
|
|
7
7
|
const stylesCss = ":host{border:0;clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;margin:0 -1px -1px 0;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}";
|
|
8
8
|
|
|
9
|
-
const ZVisuallyHidden = class {
|
|
10
|
-
constructor(hostRef) {
|
|
11
|
-
index.registerInstance(this, hostRef);
|
|
12
|
-
}
|
|
13
|
-
render() {
|
|
14
|
-
return index.h("slot", null);
|
|
15
|
-
}
|
|
16
|
-
};
|
|
9
|
+
const ZVisuallyHidden = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
}
|
|
13
|
+
render() {
|
|
14
|
+
return index.h("slot", null);
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
17
|
ZVisuallyHidden.style = stylesCss;
|
|
18
18
|
|
|
19
19
|
exports.z_visually_hidden = ZVisuallyHidden;
|