@zanichelli/albe-web-components 2.33.4 → 2.33.5-rc1
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 -0
- package/LICENSE +21 -21
- 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/_commonjsHelpers-cb1cd7bb.js +44 -0
- package/dist/web-components-library/app-globals-0f993ce5.js +3 -0
- package/dist/{esm/breakpoints-c386984e.js → web-components-library/breakpoints-14432d05.js} +1 -1
- package/dist/web-components-library/css-shim-003e9264.js +4 -0
- package/dist/web-components-library/dom-1b195079.js +73 -0
- package/dist/{esm/hammer-c807d0b5.js → web-components-library/hammer-52e2c4fe.js} +4 -15
- package/dist/{collection/components/icons/icons.js → web-components-library/icons-c51b7576.js} +474 -472
- package/dist/{esm/index-4952bfe3.js → web-components-library/index-08d9a3bf.js} +254 -254
- package/dist/web-components-library/index-44936066.js +2832 -0
- package/dist/web-components-library/index-8067f807.js +64 -0
- package/dist/web-components-library/index.esm.js +9 -1
- package/dist/web-components-library/shadow-css-c1ad5fdc.js +383 -0
- package/dist/{collection/utils/utils.js → web-components-library/utils-2e0fffb8.js} +84 -81
- package/dist/web-components-library/web-components-library.css +789 -1
- package/dist/web-components-library/web-components-library.esm.js +122 -1
- package/dist/web-components-library/z-alert.entry.js +15 -0
- package/dist/{esm → web-components-library}/z-app-header.entry.js +134 -134
- package/dist/web-components-library/z-app-switcher.entry.js +25 -0
- package/dist/web-components-library/z-app-topbar.entry.js +37 -0
- package/dist/{esm → web-components-library}/z-aria-alert.entry.js +10 -10
- package/dist/web-components-library/z-avatar.entry.js +39 -0
- package/dist/web-components-library/z-body.entry.js +13 -0
- package/dist/web-components-library/z-button-filter.entry.js +45 -0
- package/dist/web-components-library/z-button-sort.entry.js +50 -0
- package/dist/web-components-library/z-button.entry.js +35 -0
- package/dist/{esm → web-components-library}/z-candybar.entry.js +9 -9
- package/dist/web-components-library/z-card.entry.js +54 -0
- package/dist/web-components-library/z-chip.entry.js +20 -0
- package/dist/web-components-library/z-combobox.entry.js +166 -0
- package/dist/web-components-library/z-contextual-menu.entry.js +36 -0
- package/dist/{esm → web-components-library}/z-cookiebar.entry.js +32 -32
- package/dist/web-components-library/z-divider.entry.js +22 -0
- package/dist/web-components-library/z-footer-link.entry.js +15 -0
- package/dist/web-components-library/z-footer-section.entry.js +19 -0
- package/dist/web-components-library/z-footer-social.entry.js +15 -0
- package/dist/web-components-library/z-footer.entry.js +98 -0
- package/dist/web-components-library/z-ghost-loading.entry.js +15 -0
- package/dist/{esm → web-components-library}/z-heading.entry.js +9 -9
- package/dist/web-components-library/z-icon-package.entry.js +19 -0
- package/dist/web-components-library/z-icon.entry.js +24 -0
- package/dist/web-components-library/z-info-box.entry.js +21 -0
- package/dist/web-components-library/z-input-label.entry.js +17 -0
- package/dist/web-components-library/z-input-message.entry.js +20 -0
- package/dist/web-components-library/z-input.entry.js +264 -0
- package/dist/web-components-library/z-link.entry.js +67 -0
- package/dist/web-components-library/z-list-element.entry.js +150 -0
- package/dist/web-components-library/z-list-group.entry.js +50 -0
- package/dist/web-components-library/z-list.entry.js +30 -0
- package/dist/web-components-library/z-logo.entry.js +24 -0
- package/dist/web-components-library/z-menu-dropdown.entry.js +56 -0
- package/dist/web-components-library/z-menu-section.entry.js +42 -0
- package/dist/web-components-library/z-menu.entry.js +106 -0
- package/dist/{esm → web-components-library}/z-messages-pocket.entry.js +37 -37
- package/dist/{esm → web-components-library}/z-modal-login.entry.js +72 -72
- package/dist/web-components-library/z-modal.entry.js +32 -0
- package/dist/web-components-library/z-myz-card-alert.entry.js +59 -0
- package/dist/web-components-library/z-myz-card-body.entry.js +15 -0
- package/dist/web-components-library/z-myz-card-cover.entry.js +18 -0
- package/dist/{esm → web-components-library}/z-myz-card-dictionary.entry.js +26 -26
- package/dist/{esm → web-components-library}/z-myz-card-footer-sections.entry.js +9 -9
- package/dist/web-components-library/z-myz-card-footer.entry.js +48 -0
- package/dist/web-components-library/z-myz-card-header.entry.js +34 -0
- package/dist/web-components-library/z-myz-card-icon.entry.js +17 -0
- package/dist/{esm → web-components-library}/z-myz-card-info.entry.js +110 -110
- package/dist/web-components-library/z-myz-card-list.entry.js +33 -0
- package/dist/web-components-library/z-myz-card.entry.js +37 -0
- package/dist/web-components-library/z-myz-list-item.entry.js +33 -0
- package/dist/web-components-library/z-myz-list.entry.js +31 -0
- package/dist/{esm → web-components-library}/z-myz-topbar.entry.js +184 -184
- package/dist/{esm → web-components-library}/z-navigation-tab.entry.js +35 -35
- package/dist/{esm → web-components-library}/z-navigation-tabs.entry.js +91 -91
- package/dist/web-components-library/z-notification.entry.js +38 -0
- package/dist/{esm → web-components-library}/z-otp.entry.js +31 -31
- package/dist/web-components-library/z-pagination-bar.entry.js +126 -0
- package/dist/web-components-library/z-pagination-page.entry.js +21 -0
- package/dist/web-components-library/z-panel-elem.entry.js +26 -0
- package/dist/web-components-library/z-pocket-body.entry.js +23 -0
- package/dist/web-components-library/z-pocket-header.entry.js +36 -0
- package/dist/{esm → web-components-library}/z-pocket-message.entry.js +9 -9
- package/dist/web-components-library/z-pocket.entry.js +68 -0
- package/dist/web-components-library/z-popover.entry.js +123 -0
- package/dist/web-components-library/z-registro-table-body.entry.js +20 -0
- package/dist/web-components-library/z-registro-table-cell.entry.js +32 -0
- package/dist/web-components-library/z-registro-table-empty-box.entry.js +24 -0
- package/dist/web-components-library/z-registro-table-expanded-row.entry.js +15 -0
- package/dist/{esm → web-components-library}/z-registro-table-footer.entry.js +13 -13
- package/dist/web-components-library/z-registro-table-head.entry.js +19 -0
- package/dist/web-components-library/z-registro-table-header-row.entry.js +18 -0
- package/dist/web-components-library/z-registro-table-header.entry.js +84 -0
- package/dist/web-components-library/z-registro-table-row.entry.js +39 -0
- package/dist/web-components-library/z-registro-table-sticky-footer.entry.js +15 -0
- package/dist/web-components-library/z-registro-table.entry.js +78 -0
- package/dist/web-components-library/z-select.entry.js +281 -0
- package/dist/{esm → web-components-library}/z-slideshow.entry.js +102 -102
- package/dist/web-components-library/z-status-tag.entry.js +25 -0
- package/dist/web-components-library/z-stepper-item.entry.js +18 -0
- package/dist/web-components-library/z-stepper.entry.js +15 -0
- package/dist/{esm → web-components-library}/z-toast-notification-list.entry.js +46 -46
- package/dist/{esm → web-components-library}/z-toast-notification.entry.js +193 -192
- package/dist/web-components-library/z-toggle-button.entry.js +32 -0
- package/dist/{collection/components/notification/z-tooltip/index.js → web-components-library/z-tooltip.entry.js} +270 -379
- package/dist/web-components-library/z-typography.entry.js +25 -0
- package/dist/web-components-library/z-user-dropdown.entry.js +91 -0
- package/dist/{esm → web-components-library}/z-visually-hidden.entry.js +9 -9
- package/package.json +90 -90
- package/react/components.d.ts +89 -91
- package/react/components.js +95 -97
- package/react/components.js.map +1 -1
- 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/_commonjsHelpers-cb1cd7bb.js +44 -0
- package/www/build/app-globals-0f993ce5.js +3 -0
- package/{dist/collection/constants/breakpoints.js → www/build/breakpoints-14432d05.js} +3 -2
- package/www/build/css-shim-003e9264.js +4 -0
- package/www/build/dom-1b195079.js +73 -0
- package/{dist/cjs/hammer-6e321f0b.js → www/build/hammer-52e2c4fe.js} +4 -18
- package/www/build/icons-c51b7576.js +475 -0
- package/{dist/collection/beans/index.js → www/build/index-08d9a3bf.js} +255 -253
- package/www/build/index-44936066.js +2832 -0
- package/www/build/index-8067f807.js +64 -0
- package/www/build/index.esm.js +9 -1
- package/www/build/shadow-css-c1ad5fdc.js +383 -0
- package/{dist/esm/utils-889efe17.js → www/build/utils-2e0fffb8.js} +82 -64
- package/www/build/web-components-library.css +789 -1
- package/www/build/web-components-library.esm.js +122 -1
- package/www/build/z-alert.entry.js +15 -0
- package/{dist/cjs/z-app-header.cjs.entry.js → www/build/z-app-header.entry.js} +135 -139
- package/www/build/z-app-switcher.entry.js +25 -0
- package/www/build/z-app-topbar.entry.js +37 -0
- package/www/build/z-aria-alert.entry.js +14 -0
- package/www/build/z-avatar.entry.js +39 -0
- package/www/build/z-body.entry.js +13 -0
- package/www/build/z-button-filter.entry.js +45 -0
- package/www/build/z-button-sort.entry.js +50 -0
- package/www/build/z-button.entry.js +35 -0
- package/{dist/cjs/z-candybar.cjs.entry.js → www/build/z-candybar.entry.js} +10 -14
- package/www/build/z-card.entry.js +54 -0
- package/www/build/z-chip.entry.js +20 -0
- package/www/build/z-combobox.entry.js +166 -0
- package/www/build/z-contextual-menu.entry.js +36 -0
- package/{dist/cjs/z-cookiebar.cjs.entry.js → www/build/z-cookiebar.entry.js} +33 -37
- package/www/build/z-divider.entry.js +22 -0
- package/www/build/z-footer-link.entry.js +15 -0
- package/www/build/z-footer-section.entry.js +19 -0
- package/www/build/z-footer-social.entry.js +15 -0
- package/www/build/z-footer.entry.js +98 -0
- package/www/build/z-ghost-loading.entry.js +15 -0
- package/www/build/z-heading.entry.js +13 -0
- package/www/build/z-icon-package.entry.js +19 -0
- package/www/build/z-icon.entry.js +24 -0
- package/www/build/z-info-box.entry.js +21 -0
- package/www/build/z-input-label.entry.js +17 -0
- package/www/build/z-input-message.entry.js +20 -0
- package/www/build/z-input.entry.js +264 -0
- package/www/build/z-link.entry.js +67 -0
- package/www/build/z-list-element.entry.js +150 -0
- package/www/build/z-list-group.entry.js +50 -0
- package/www/build/z-list.entry.js +30 -0
- package/www/build/z-logo.entry.js +24 -0
- package/www/build/z-menu-dropdown.entry.js +56 -0
- package/www/build/z-menu-section.entry.js +42 -0
- package/www/build/z-menu.entry.js +106 -0
- package/{dist/cjs/z-messages-pocket.cjs.entry.js → www/build/z-messages-pocket.entry.js} +38 -42
- package/www/build/z-modal-login.entry.js +77 -0
- package/www/build/z-modal.entry.js +32 -0
- package/www/build/z-myz-card-alert.entry.js +59 -0
- package/www/build/z-myz-card-body.entry.js +15 -0
- package/www/build/z-myz-card-cover.entry.js +18 -0
- package/{dist/cjs/z-myz-card-dictionary.cjs.entry.js → www/build/z-myz-card-dictionary.entry.js} +27 -31
- package/{dist/cjs/z-myz-card-footer-sections.cjs.entry.js → www/build/z-myz-card-footer-sections.entry.js} +10 -14
- package/www/build/z-myz-card-footer.entry.js +48 -0
- package/www/build/z-myz-card-header.entry.js +34 -0
- package/www/build/z-myz-card-icon.entry.js +17 -0
- package/{dist/cjs/z-myz-card-info.cjs.entry.js → www/build/z-myz-card-info.entry.js} +111 -115
- package/www/build/z-myz-card-list.entry.js +33 -0
- package/www/build/z-myz-card.entry.js +37 -0
- package/www/build/z-myz-list-item.entry.js +33 -0
- package/www/build/z-myz-list.entry.js +31 -0
- package/{dist/cjs/z-myz-topbar.cjs.entry.js → www/build/z-myz-topbar.entry.js} +185 -189
- package/{dist/cjs/z-navigation-tab.cjs.entry.js → www/build/z-navigation-tab.entry.js} +36 -40
- package/{dist/cjs/z-navigation-tabs.cjs.entry.js → www/build/z-navigation-tabs.entry.js} +92 -96
- package/www/build/z-notification.entry.js +38 -0
- package/{dist/cjs/z-otp.cjs.entry.js → www/build/z-otp.entry.js} +32 -36
- package/www/build/z-pagination-bar.entry.js +126 -0
- package/www/build/z-pagination-page.entry.js +21 -0
- package/www/build/z-panel-elem.entry.js +26 -0
- package/www/build/z-pocket-body.entry.js +23 -0
- package/www/build/z-pocket-header.entry.js +36 -0
- package/{dist/cjs/z-pocket-message.cjs.entry.js → www/build/z-pocket-message.entry.js} +10 -14
- package/www/build/z-pocket.entry.js +68 -0
- package/www/build/z-popover.entry.js +123 -0
- package/www/build/z-registro-table-body.entry.js +20 -0
- package/www/build/z-registro-table-cell.entry.js +32 -0
- package/www/build/z-registro-table-empty-box.entry.js +24 -0
- package/www/build/z-registro-table-expanded-row.entry.js +15 -0
- package/{dist/cjs/z-registro-table-footer.cjs.entry.js → www/build/z-registro-table-footer.entry.js} +14 -18
- package/www/build/z-registro-table-head.entry.js +19 -0
- package/www/build/z-registro-table-header-row.entry.js +18 -0
- package/www/build/z-registro-table-header.entry.js +84 -0
- package/www/build/z-registro-table-row.entry.js +39 -0
- package/www/build/z-registro-table-sticky-footer.entry.js +15 -0
- package/www/build/z-registro-table.entry.js +78 -0
- package/www/build/z-select.entry.js +281 -0
- package/{dist/cjs/z-slideshow.cjs.entry.js → www/build/z-slideshow.entry.js} +103 -107
- package/www/build/z-status-tag.entry.js +25 -0
- package/www/build/z-stepper-item.entry.js +18 -0
- package/www/build/z-stepper.entry.js +15 -0
- package/{dist/cjs/z-toast-notification-list.cjs.entry.js → www/build/z-toast-notification-list.entry.js} +47 -51
- package/{dist/cjs/z-toast-notification.cjs.entry.js → www/build/z-toast-notification.entry.js} +194 -197
- package/www/build/z-toggle-button.entry.js +32 -0
- package/www/build/z-tooltip.entry.js +270 -0
- package/www/build/z-typography.entry.js +25 -0
- package/www/build/z-user-dropdown.entry.js +91 -0
- package/{dist/cjs/z-visually-hidden.cjs.entry.js → www/build/z-visually-hidden.entry.js} +10 -14
- package/www/index.html +11 -454
- package/www/pages/notification.html +244 -244
- package/dist/cjs/breakpoints-88c4fd6c.js +0 -7
- package/dist/cjs/index-11a8a536.js +0 -256
- package/dist/cjs/index-dee3e21d.js +0 -1694
- package/dist/cjs/index.cjs.js +0 -13
- package/dist/cjs/loader.cjs.js +0 -21
- package/dist/cjs/utils-00e14fba.js +0 -75
- package/dist/cjs/web-components-library.cjs.js +0 -19
- package/dist/cjs/z-alert_66.cjs.entry.js +0 -3735
- package/dist/cjs/z-aria-alert.cjs.entry.js +0 -18
- package/dist/cjs/z-heading.cjs.entry.js +0 -17
- package/dist/cjs/z-modal-login.cjs.entry.js +0 -81
- package/dist/cjs/z-pocket_3.cjs.entry.js +0 -124
- package/dist/collection/collection-manifest.json +0 -100
- package/dist/collection/components/buttons/z-button/index.js +0 -219
- package/dist/collection/components/buttons/z-button/styles.css +0 -231
- package/dist/collection/components/buttons/z-button-filter/index.js +0 -155
- package/dist/collection/components/buttons/z-button-filter/styles.css +0 -74
- package/dist/collection/components/buttons/z-button-sort/index.js +0 -216
- package/dist/collection/components/buttons/z-button-sort/styles.css +0 -101
- package/dist/collection/components/buttons/z-chip/index.js +0 -59
- package/dist/collection/components/buttons/z-chip/styles.css +0 -17
- package/dist/collection/components/buttons/z-toggle-button/index.js +0 -122
- package/dist/collection/components/buttons/z-toggle-button/styles.css +0 -62
- package/dist/collection/components/footer/z-footer/index.js +0 -286
- package/dist/collection/components/footer/z-footer/styles.css +0 -242
- package/dist/collection/components/footer/z-footer-link/index.js +0 -37
- package/dist/collection/components/footer/z-footer-link/styles.css +0 -33
- package/dist/collection/components/footer/z-footer-section/index.js +0 -51
- package/dist/collection/components/footer/z-footer-section/styles.css +0 -163
- package/dist/collection/components/footer/z-footer-social/index.js +0 -68
- package/dist/collection/components/footer/z-footer-social/styles.css +0 -23
- package/dist/collection/components/icons/z-icon/index.js +0 -110
- package/dist/collection/components/icons/z-icon/styles.css +0 -14
- package/dist/collection/components/icons/z-icon-package/index.js +0 -20
- package/dist/collection/components/icons/z-icon-package/styles.css +0 -16
- package/dist/collection/components/indicators/z-stepper/index.js +0 -17
- package/dist/collection/components/indicators/z-stepper/styles.css +0 -19
- package/dist/collection/components/indicators/z-stepper-item/index.js +0 -93
- package/dist/collection/components/indicators/z-stepper-item/styles.css +0 -115
- package/dist/collection/components/inputs/z-combobox/index.js +0 -480
- package/dist/collection/components/inputs/z-combobox/styles.css +0 -148
- package/dist/collection/components/inputs/z-input/index.js +0 -821
- package/dist/collection/components/inputs/z-input/styles.css +0 -304
- package/dist/collection/components/inputs/z-input-label/index.js +0 -72
- package/dist/collection/components/inputs/z-input-label/styles.css +0 -16
- package/dist/collection/components/inputs/z-input-message/index.js +0 -64
- package/dist/collection/components/inputs/z-input-message/styles.css +0 -33
- package/dist/collection/components/inputs/z-select/index.js +0 -647
- package/dist/collection/components/inputs/z-select/styles.css +0 -131
- package/dist/collection/components/list/z-list/index.js +0 -57
- package/dist/collection/components/list/z-list/styles.css +0 -7
- package/dist/collection/components/list/z-list-element/index.js +0 -439
- package/dist/collection/components/list/z-list-element/styles.css +0 -133
- package/dist/collection/components/list/z-list-group/index.js +0 -144
- package/dist/collection/components/list/z-list-group/styles.css +0 -22
- package/dist/collection/components/list/z-toast-notification-list/index.js +0 -97
- package/dist/collection/components/list/z-toast-notification-list/styles.css +0 -107
- package/dist/collection/components/logo/z-logo/index.js +0 -128
- package/dist/collection/components/logo/z-logo/styles.css +0 -29
- package/dist/collection/components/modal/z-modal/index.js +0 -160
- package/dist/collection/components/modal/z-modal/styles.css +0 -185
- package/dist/collection/components/modal/z-modal-login/index.js +0 -272
- package/dist/collection/components/modal/z-modal-login/styles.css +0 -159
- package/dist/collection/components/navigation/z-app-header/index.js +0 -267
- package/dist/collection/components/navigation/z-app-header/styles.css +0 -445
- package/dist/collection/components/navigation/z-app-switcher/index.js +0 -70
- package/dist/collection/components/navigation/z-app-switcher/styles.css +0 -35
- package/dist/collection/components/navigation/z-app-topbar/index.js +0 -156
- package/dist/collection/components/navigation/z-app-topbar/styles.css +0 -71
- package/dist/collection/components/navigation/z-link/index.js +0 -309
- package/dist/collection/components/navigation/z-link/styles.css +0 -164
- package/dist/collection/components/navigation/z-menu/index.js +0 -223
- package/dist/collection/components/navigation/z-menu/styles.css +0 -149
- package/dist/collection/components/navigation/z-menu-dropdown/index.js +0 -125
- package/dist/collection/components/navigation/z-menu-dropdown/styles.css +0 -146
- package/dist/collection/components/navigation/z-menu-section/index.js +0 -109
- package/dist/collection/components/navigation/z-menu-section/styles.css +0 -91
- package/dist/collection/components/navigation/z-navigation-tab/index.js +0 -151
- package/dist/collection/components/navigation/z-navigation-tab/styles.css +0 -113
- package/dist/collection/components/navigation/z-navigation-tabs/index.js +0 -179
- package/dist/collection/components/navigation/z-navigation-tabs/styles.css +0 -117
- package/dist/collection/components/navigation/z-user-dropdown/index.js +0 -252
- package/dist/collection/components/navigation/z-user-dropdown/styles.css +0 -315
- package/dist/collection/components/notification/z-candybar/index.js +0 -18
- package/dist/collection/components/notification/z-candybar/styles.css +0 -61
- package/dist/collection/components/notification/z-cookiebar/index.js +0 -111
- package/dist/collection/components/notification/z-cookiebar/styles.css +0 -109
- package/dist/collection/components/notification/z-info-box/index.js +0 -79
- package/dist/collection/components/notification/z-info-box/styles.css +0 -23
- package/dist/collection/components/notification/z-notification/index.js +0 -171
- package/dist/collection/components/notification/z-notification/styles.css +0 -93
- package/dist/collection/components/notification/z-toast-notification/index.js +0 -402
- package/dist/collection/components/notification/z-toast-notification/styles.css +0 -247
- package/dist/collection/components/notification/z-tooltip/styles.css +0 -128
- package/dist/collection/components/pagination/z-pagination-bar/index.js +0 -278
- package/dist/collection/components/pagination/z-pagination-bar/styles.css +0 -23
- package/dist/collection/components/pagination/z-pagination-page/index.js +0 -129
- package/dist/collection/components/pagination/z-pagination-page/styles.css +0 -57
- package/dist/collection/components/panel/z-panel-elem/index.js +0 -193
- package/dist/collection/components/panel/z-panel-elem/styles.css +0 -39
- package/dist/collection/components/typography/z-body/index.js +0 -66
- package/dist/collection/components/typography/z-heading/index.js +0 -66
- package/dist/collection/components/typography/z-typography/index.js +0 -84
- package/dist/collection/components/typography/z-typography/styles.css +0 -61
- package/dist/collection/components/z-aria-alert/index.js +0 -32
- package/dist/collection/components/z-avatar/index.js +0 -137
- package/dist/collection/components/z-avatar/styles.css +0 -35
- package/dist/collection/components/z-card/index.js +0 -153
- package/dist/collection/components/z-card/styles.css +0 -188
- package/dist/collection/components/z-contextual-menu/index.js +0 -122
- package/dist/collection/components/z-contextual-menu/styles.css +0 -45
- package/dist/collection/components/z-divider/index.js +0 -89
- package/dist/collection/components/z-divider/styles.css +0 -37
- package/dist/collection/components/z-ghost-loading/index.js +0 -14
- package/dist/collection/components/z-ghost-loading/styles.css +0 -34
- package/dist/collection/components/z-popover/index.js +0 -273
- package/dist/collection/components/z-popover/styles.css +0 -236
- package/dist/collection/components/z-status-tag/index.js +0 -125
- package/dist/collection/components/z-status-tag/styles.css +0 -133
- package/dist/collection/components/z-visually-hidden/index.js +0 -14
- package/dist/collection/components/z-visually-hidden/styles.css +0 -12
- package/dist/collection/constants/icons.js +0 -6
- package/dist/collection/index.js +0 -5
- package/dist/collection/snowflakes/myz/card/z-myz-card/index.js +0 -119
- package/dist/collection/snowflakes/myz/card/z-myz-card/styles.css +0 -38
- package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js +0 -148
- package/dist/collection/snowflakes/myz/card/z-myz-card-alert/styles.css +0 -62
- package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js +0 -20
- package/dist/collection/snowflakes/myz/card/z-myz-card-body/styles.css +0 -13
- package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js +0 -87
- package/dist/collection/snowflakes/myz/card/z-myz-card-cover/styles.css +0 -11
- package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js +0 -177
- package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/styles.css +0 -85
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js +0 -190
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer/styles.css +0 -137
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js +0 -23
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/styles.css +0 -32
- package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js +0 -101
- package/dist/collection/snowflakes/myz/card/z-myz-card-header/styles.css +0 -46
- package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js +0 -74
- package/dist/collection/snowflakes/myz/card/z-myz-card-icon/styles.css +0 -70
- package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +0 -213
- package/dist/collection/snowflakes/myz/card/z-myz-card-info/styles.css +0 -124
- package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js +0 -53
- package/dist/collection/snowflakes/myz/card/z-myz-card-list/styles.css +0 -41
- package/dist/collection/snowflakes/myz/list/z-myz-list/index.js +0 -70
- package/dist/collection/snowflakes/myz/list/z-myz-list/styles.css +0 -4
- package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js +0 -188
- package/dist/collection/snowflakes/myz/list/z-myz-list-item/styles.css +0 -48
- package/dist/collection/snowflakes/myz/pocket/z-messages-pocket/index.js +0 -121
- package/dist/collection/snowflakes/myz/pocket/z-messages-pocket/styles.css +0 -106
- package/dist/collection/snowflakes/myz/pocket/z-pocket/index.js +0 -181
- package/dist/collection/snowflakes/myz/pocket/z-pocket/styles.css +0 -56
- package/dist/collection/snowflakes/myz/pocket/z-pocket-body/index.js +0 -77
- package/dist/collection/snowflakes/myz/pocket/z-pocket-body/styles.css +0 -49
- package/dist/collection/snowflakes/myz/pocket/z-pocket-header/index.js +0 -86
- package/dist/collection/snowflakes/myz/pocket/z-pocket-header/styles.css +0 -40
- package/dist/collection/snowflakes/myz/pocket/z-pocket-message/index.js +0 -23
- package/dist/collection/snowflakes/myz/pocket/z-pocket-message/styles.css +0 -53
- package/dist/collection/snowflakes/myz/topbar/index.js +0 -428
- package/dist/collection/snowflakes/myz/topbar/styles.css +0 -594
- package/dist/collection/snowflakes/myz/z-alert/index.js +0 -42
- package/dist/collection/snowflakes/myz/z-alert/styles.css +0 -28
- package/dist/collection/snowflakes/myz/z-otp/index.js +0 -114
- package/dist/collection/snowflakes/myz/z-otp/styles.css +0 -47
- package/dist/collection/snowflakes/myz/z-slideshow/index.js +0 -165
- package/dist/collection/snowflakes/myz/z-slideshow/styles.css +0 -128
- package/dist/collection/snowflakes/registro-table/z-registro-table/index.js +0 -365
- package/dist/collection/snowflakes/registro-table/z-registro-table/styles.css +0 -166
- package/dist/collection/snowflakes/registro-table/z-registro-table-body/index.js +0 -19
- package/dist/collection/snowflakes/registro-table/z-registro-table-body/styles.css +0 -9
- package/dist/collection/snowflakes/registro-table/z-registro-table-cell/index.js +0 -58
- package/dist/collection/snowflakes/registro-table/z-registro-table-cell/styles.css +0 -39
- package/dist/collection/snowflakes/registro-table/z-registro-table-empty-box/index.js +0 -69
- package/dist/collection/snowflakes/registro-table/z-registro-table-empty-box/styles.css +0 -24
- package/dist/collection/snowflakes/registro-table/z-registro-table-expanded-row/index.js +0 -35
- package/dist/collection/snowflakes/registro-table/z-registro-table-expanded-row/styles.css +0 -9
- package/dist/collection/snowflakes/registro-table/z-registro-table-footer/index.js +0 -18
- package/dist/collection/snowflakes/registro-table/z-registro-table-footer/styles.css +0 -5
- package/dist/collection/snowflakes/registro-table/z-registro-table-head/index.js +0 -18
- package/dist/collection/snowflakes/registro-table/z-registro-table-head/styles.css +0 -5
- package/dist/collection/snowflakes/registro-table/z-registro-table-header/index.js +0 -240
- package/dist/collection/snowflakes/registro-table/z-registro-table-header/styles.css +0 -67
- package/dist/collection/snowflakes/registro-table/z-registro-table-header-row/index.js +0 -37
- package/dist/collection/snowflakes/registro-table/z-registro-table-header-row/styles.css +0 -13
- package/dist/collection/snowflakes/registro-table/z-registro-table-row/index.js +0 -86
- package/dist/collection/snowflakes/registro-table/z-registro-table-row/styles.css +0 -54
- package/dist/collection/snowflakes/registro-table/z-registro-table-sticky-footer/index.js +0 -17
- package/dist/collection/snowflakes/registro-table/z-registro-table-sticky-footer/styles.css +0 -11
- package/dist/collection/themes/index.story.js +0 -18
- package/dist/esm/index-fa9e549c.js +0 -1666
- package/dist/esm/index.js +0 -9
- package/dist/esm/loader.js +0 -17
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/esm/web-components-library.js +0 -17
- package/dist/esm/z-alert_66.entry.js +0 -3666
- package/dist/esm/z-pocket_3.entry.js +0 -118
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/web-components-library/p-017370c7.entry.js +0 -1
- package/dist/web-components-library/p-04c73ec1.entry.js +0 -1
- package/dist/web-components-library/p-0bf8988b.entry.js +0 -1
- package/dist/web-components-library/p-140cc18f.entry.js +0 -1
- package/dist/web-components-library/p-1c72783c.entry.js +0 -1
- package/dist/web-components-library/p-3ea97390.entry.js +0 -1
- package/dist/web-components-library/p-40972dfd.entry.js +0 -1
- package/dist/web-components-library/p-43d00d2f.entry.js +0 -1
- package/dist/web-components-library/p-483d10ba.entry.js +0 -1
- package/dist/web-components-library/p-57ceab75.entry.js +0 -7
- package/dist/web-components-library/p-65c08b33.js +0 -1
- package/dist/web-components-library/p-6e8f444c.entry.js +0 -1
- package/dist/web-components-library/p-798d5c2f.entry.js +0 -1
- package/dist/web-components-library/p-881b4877.js +0 -1
- package/dist/web-components-library/p-8ad12683.entry.js +0 -1
- package/dist/web-components-library/p-8c24ac2e.entry.js +0 -1
- package/dist/web-components-library/p-904a85e4.js +0 -1
- package/dist/web-components-library/p-96e3aec6.entry.js +0 -1
- package/dist/web-components-library/p-9912e411.js +0 -7
- package/dist/web-components-library/p-b4420ba3.entry.js +0 -1
- package/dist/web-components-library/p-c7af96eb.entry.js +0 -1
- package/dist/web-components-library/p-d1fed95b.entry.js +0 -1
- package/dist/web-components-library/p-d430b1aa.entry.js +0 -1
- package/dist/web-components-library/p-d69e14fb.js +0 -1
- package/dist/web-components-library/p-e64c06a4.entry.js +0 -1
- package/dist/web-components-library/p-f113a03a.entry.js +0 -1
- package/dist/web-components-library/p-fcf19092.entry.js +0 -1
- package/www/build/p-002ed333.js +0 -1
- package/www/build/p-017370c7.entry.js +0 -1
- package/www/build/p-04c73ec1.entry.js +0 -1
- package/www/build/p-0bf8988b.entry.js +0 -1
- package/www/build/p-140cc18f.entry.js +0 -1
- package/www/build/p-1c72783c.entry.js +0 -1
- package/www/build/p-3ea97390.entry.js +0 -1
- package/www/build/p-40972dfd.entry.js +0 -1
- package/www/build/p-43d00d2f.entry.js +0 -1
- package/www/build/p-483d10ba.entry.js +0 -1
- package/www/build/p-57ceab75.entry.js +0 -7
- package/www/build/p-65c08b33.js +0 -1
- package/www/build/p-6e8f444c.entry.js +0 -1
- package/www/build/p-798d5c2f.entry.js +0 -1
- package/www/build/p-881b4877.js +0 -1
- package/www/build/p-8ad12683.entry.js +0 -1
- package/www/build/p-8c24ac2e.entry.js +0 -1
- package/www/build/p-904a85e4.js +0 -1
- package/www/build/p-96e3aec6.entry.js +0 -1
- package/www/build/p-9912e411.js +0 -7
- package/www/build/p-b4420ba3.entry.js +0 -1
- package/www/build/p-c7af96eb.entry.js +0 -1
- package/www/build/p-d1fed95b.entry.js +0 -1
- package/www/build/p-d430b1aa.entry.js +0 -1
- package/www/build/p-d69e14fb.js +0 -1
- package/www/build/p-e64c06a4.entry.js +0 -1
- package/www/build/p-ea943cbd.css +0 -1
- package/www/build/p-f113a03a.entry.js +0 -1
- package/www/build/p-fcf19092.entry.js +0 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { r as registerInstance, h } from './index-44936066.js';
|
|
2
|
+
|
|
3
|
+
const stylesCss = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>nav{background-color:var(--gray900);display:flex;flex-direction:column;justify-items:flex-start;overflow:hidden;margin:calc(var(--space-unit) / 2) 0;padding:0}:host>nav>.header{position:relative;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;align-items:stretch;align-content:flex-start;height:calc(var(--space-unit) * 4);border-bottom:1px solid var(--gray50);line-height:1}:host>nav>.header>h2{color:var(--color-white);font-size:16px;margin:var(--space-unit) 0}:host>nav>.header{fill:var(--color-white)}:host>nav>.header>button{position:absolute;top:var(--space-unit);right:0;margin:0;padding:0;background:transparent;border:0;appearance:none;cursor:pointer}:host>nav>.header>z-icon{display:block}:host>nav>.content{background-color:var(--gray800);display:none;height:0;transition:0.3s ease;padding:calc(var(--space-unit) * 3) calc(var(--space-unit) * 2)}:host>nav>.content.show{display:block;height:auto;transition:0.3s ease}@media only screen and (min-width: 768px){:host>nav{display:grid;grid-template-columns:repeat(4, 1fr);grid-template-rows:1fr;grid-column-gap:var(--grid-tablet-margin);padding:calc(var(--space-unit) * 2) 0;border-bottom:1px solid var(--color-white);margin:0;background-color:var(--gray800)}:host>nav>.header>button.toggleButton{display:none}:host>nav>.header{border-bottom:none;padding:0;margin:0}:host>nav>.header>h2{border:none}:host>nav>.content,:host>nav>.content.show{grid-column:span 3;width:100%;padding:0;margin:0;display:grid;grid-template-columns:repeat(3, 1fr);grid-column-gap:var(--grid-tablet-margin);grid-row-gap:var(--space-unit);height:auto;align-items:stretch;align-content:stretch;margin:0}}@media only screen and (min-width: 1152px){:host>nav{display:grid;grid-template-columns:1fr;grid-template-rows:40px 4fr;padding:0;border-bottom:none}:host>nav>.header{position:relative;display:inline-flex;height:24px}:host>nav>.header>h2{width:auto;font-size:16px;line-height:1;font-weight:600;color:var(--gray50);padding:0 0 var(--space-unit);margin:0}:host>nav>.header::after{content:\"\";display:block;position:absolute;top:100%;left:0;width:120px;border-bottom:1px solid var(--gray50)}:host>nav>.content,:host>nav>.content.show{grid-column:auto;display:flex;flex-direction:column;flex-wrap:wrap;justify-content:flex-start}}";
|
|
4
|
+
|
|
5
|
+
const ZFooterSection = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.isOpen = false;
|
|
9
|
+
}
|
|
10
|
+
renderToggleButton() {
|
|
11
|
+
return (h("button", { class: "toggleButton", onClick: () => (this.isOpen = !this.isOpen) }, h("z-icon", { name: this.isOpen ? "chevron-up" : "chevron-down", width: 16, height: 16 })));
|
|
12
|
+
}
|
|
13
|
+
render() {
|
|
14
|
+
return (h("nav", null, h("div", { class: "header" }, h("h2", null, this.name), this.renderToggleButton()), h("div", { class: `content ${this.isOpen ? "show" : ""}` }, h("slot", null))));
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
ZFooterSection.style = stylesCss;
|
|
18
|
+
|
|
19
|
+
export { ZFooterSection as z_footer_section };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { r as registerInstance, h } from './index-44936066.js';
|
|
2
|
+
|
|
3
|
+
const stylesCss = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>a>img{width:calc(var(--space-unit) * 3)}@media only screen and (min-width: 1152px){:host>a>img{width:16px}}";
|
|
4
|
+
|
|
5
|
+
const ZFooterSocial = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
}
|
|
9
|
+
render() {
|
|
10
|
+
return (h("a", { href: this.href, target: "_blank" }, h("img", { src: this.icon, alt: this.description })));
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
ZFooterSocial.style = stylesCss;
|
|
14
|
+
|
|
15
|
+
export { ZFooterSocial as z_footer_social };
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { r as registerInstance, f as createEvent, h } from './index-44936066.js';
|
|
2
|
+
import { B as ButtonVariantEnum, b as ButtonSizeEnum } from './index-08d9a3bf.js';
|
|
3
|
+
|
|
4
|
+
const stylesCss = ":host{width:100%}footer{width:auto;height:auto;box-sizing:border-box;font-family:var(--font-family-sans);font-size:13px;padding:var(--space-unit) 0;background-color:var(--gray900);color:var(--gray50)}footer *{box-sizing:border-box}footer>section>div{display:grid}#top{padding:0 calc(var(--space-unit) * 2)}#bottom{width:auto;height:auto;margin:0;padding:0 calc(var(--space-unit) * 2);white-space:pre-line;font-size:12px}#bottom>div{display:grid;grid-template-columns:1fr}#bottom>div>div.item{display:flex;flex-direction:column;align-items:flex-start;grid-column:span 1;height:auto;width:auto;padding:calc(var(--space-unit) * 2) 0}#bottom>div>div.item:nth-child(1){order:2}#bottom>div>div.item:nth-child(2){order:1;border-bottom:1px solid var(--gray50)}#bottom>div>div.item>div.social{display:grid;grid-template-columns:repeat(5, 1fr);grid-template-rows:repeat(auto-fill, 24px);column-gap:12px;padding:0;margin-bottom:0px}#bottom>div>div.bottom-links{display:none}#bottom>div>div.item>p{margin:var(--space-unit) 0;padding:var(--space-unit) 0}#bottom>div>div.item>p:first-child{margin-top:0}#bottom>div>div.item>p:last-child{margin-bottom:0}#bottom>div>div.logo>p>span{display:block}#extension{padding:0 calc(var(--space-unit) * 2)}#extension>div{display:grid;grid-template-columns:1fr;grid-row-gap:var(--space-unit);align-items:center}#extension z-divider{margin-top:var(--space-unit)}#extension z-button{margin-left:var(--space-unit)}div.limited-width{margin:auto;max-width:var(--mw)}@media only screen and (min-width: 768px){footer{padding:0}#top{background-color:var(--gray800);padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 3)}#top z-footer-section:last-child{display:none}#bottom{background-color:var(--gray900);padding:0 calc(var(--space-unit) * 3)}#bottom>div{grid-template-columns:repeat(4, 1fr);grid-column-gap:var(--grid-tablet-margin)}#bottom>div>div.item{margin:0}#bottom>div>div.item:nth-child(1){order:1}#bottom>div>div.item:nth-child(2){order:2;border-bottom:none}#bottom>div>div.item>p{padding-top:0}#bottom>div>div.logo>z-logo{width:auto;height:39px}#bottom>div>div.bottom-links{display:block;grid-column:span 2;order:3}#bottom>div>div.bottom-links{display:grid;grid-template-columns:repeat(2, 1fr);grid-template-rows:repeat(auto-fill, 24px);grid-column-gap:var(--grid-tablet-margin);font-size:12px}#extension{margin:auto;padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 3) 0;background-color:var(--gray800);color:white;grid-template-columns:1fr 1fr}#extension>div>div{text-align:end}#extension z-divider{grid-column:1 / span 2}}@media only screen and (min-width: 1152px){#top{width:100%}#top>div{grid-template-columns:repeat(6, 1fr);grid-column-gap:var(--grid-desktop-margin)}#bottom>div>div.item:nth-child(1)>p:nth-of-type(2){font-size:10px}#bottom>div>div.item>p{padding-bottom:0;margin-bottom:calc(var(--space-unit) * 2)}#bottom>div>div.item>div.social{margin-top:0}#bottom>div>div.bottom-links{padding:calc(var(--space-unit) * 2) 0 0 0}#bottom>div>div.bottom-links{grid-template-columns:repeat(3, 1fr);grid-column-gap:var(--grid-desktop-margin);margin:0}}@media only screen and (min-width: 1366px){#top{padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 4)}#bottom{padding:0 calc(var(--space-unit) * 4)}#extension{padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 4) 0}}";
|
|
5
|
+
|
|
6
|
+
const ZFooter = class {
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
registerInstance(this, hostRef);
|
|
9
|
+
this.creditsLinkClick = createEvent(this, "creditsLinkClick", 7);
|
|
10
|
+
this.reportAProblemButtonClick = createEvent(this, "reportAProblemButtonClick", 7);
|
|
11
|
+
this.creditsLinkId = "creditsLinkId";
|
|
12
|
+
this.emitReportAProblemButtonClick = this.emitReportAProblemButtonClick.bind(this);
|
|
13
|
+
}
|
|
14
|
+
componentWillLoad() {
|
|
15
|
+
if (this.data) {
|
|
16
|
+
console.warn("z-footer: `data` prop is deprecated and will be removed in a future version. Use slots instead.");
|
|
17
|
+
this.jsonData = JSON.parse(this.data);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
zLinkClickListener(e) {
|
|
21
|
+
if (e.detail.linkId === this.creditsLinkId) {
|
|
22
|
+
this.emitCreditsLinkClick();
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
emitCreditsLinkClick() {
|
|
26
|
+
this.creditsLinkClick.emit();
|
|
27
|
+
}
|
|
28
|
+
emitReportAProblemButtonClick() {
|
|
29
|
+
this.reportAProblemButtonClick.emit();
|
|
30
|
+
}
|
|
31
|
+
renderZLogo() {
|
|
32
|
+
return (h("z-logo", { link: "https://www.zanichelli.it", width: 144, height: 38, imageAlt: "Home Zanichelli", targetBlank: true }));
|
|
33
|
+
}
|
|
34
|
+
renderAddress() {
|
|
35
|
+
return (h("p", null, "Zanichelli editore S.p.A. via Irnerio 34, 40126 Bologna", h("br", null), "Fax 051 - 249.782 / 293.224 | Tel. 051 - 293.111 / 245.024", h("br", null), "Partita IVA 03978000374"));
|
|
36
|
+
}
|
|
37
|
+
renderSocial() {
|
|
38
|
+
return (h("div", { class: "social" }, h("slot", { name: "social" }), this.renderFooterSocialJsonData()));
|
|
39
|
+
}
|
|
40
|
+
renderCopyright() {
|
|
41
|
+
return (h("p", null, "Copyright \u2013 2018-", new Date().getFullYear(), " Zanichelli", h("span", null, "All rights reserved")));
|
|
42
|
+
}
|
|
43
|
+
renderCertification() {
|
|
44
|
+
return (h("p", null, "Zanichelli editore S.p.A. opera con sistema qualit\u00E0 certificato CertiCarGraf n. 477", h("br", null), "secondo la norma UNI EN ISO 9001:2015"));
|
|
45
|
+
}
|
|
46
|
+
renderBottomLinks() {
|
|
47
|
+
return (h("div", { class: "item bottom-links" }, h("slot", { name: "links" }), this.renderFooterBottomJsonData()));
|
|
48
|
+
}
|
|
49
|
+
renderFooterBottom() {
|
|
50
|
+
return (h("section", { id: "bottom" }, h("div", { class: { "limited-width": !!this.contentMaxWidth }, style: this.contentMaxWidth ? { "--mw": `${this.contentMaxWidth}px` } : {} }, h("div", { class: "item logo" }, this.renderZLogo(), this.renderCopyright(), this.renderCertification()), h("div", { class: "item" }, this.renderAddress(), this.renderSocial()), this.renderBottomLinks())));
|
|
51
|
+
}
|
|
52
|
+
renderFooterTop() {
|
|
53
|
+
return (h("section", { id: "top" }, h("div", { class: { "limited-width": !!this.contentMaxWidth }, style: this.contentMaxWidth ? { "--mw": `${this.contentMaxWidth}px` } : {} }, h("slot", null), this.renderFooterTopJsonData())));
|
|
54
|
+
}
|
|
55
|
+
renderFooterProductInfo() {
|
|
56
|
+
var _a;
|
|
57
|
+
if (this.productName || this.productVersion || this.productCreditsLink != null || this.showReportAProblemButton) {
|
|
58
|
+
const versionString = `${this.productName ? ' versione' : 'Versione'} ${this.productVersion}`;
|
|
59
|
+
const creditsObject = h("z-body", { level: 5 }, (this.productName || this.productVersion) && ' - ', h("z-link", { htmlid: this.creditsLinkId, href: (_a = this.productCreditsLink) === null || _a === void 0 ? void 0 : _a.trim(), target: "_blank", textcolor: "white" }, "Credits"));
|
|
60
|
+
return (h("div", { id: "extension" }, h("div", { class: { "limited-width": !!this.contentMaxWidth }, style: this.contentMaxWidth ? { "--mw": `${this.contentMaxWidth}px` } : {} }, h("span", null, this.productName && h("z-body", { level: 5, variant: "semibold" }, this.productName), this.productVersion && h("z-body", { level: 5 }, versionString), this.productCreditsLink != null && creditsObject), this.showReportAProblemButton &&
|
|
61
|
+
h("div", null, h("z-body", { level: 5 }, "Hai bisogno di aiuto?"), h("z-button", { variant: ButtonVariantEnum["dark-bg"], size: ButtonSizeEnum.small, onClick: this.emitReportAProblemButtonClick }, "SEGNALA UN PROBLEMA")), h("z-divider", { color: "gray500" }))));
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
// INFO: backward compatibility
|
|
65
|
+
renderFooterTopJsonData() {
|
|
66
|
+
if (!this.jsonData || !this.jsonData.zanichelliLinks)
|
|
67
|
+
return null;
|
|
68
|
+
const zanichelliLinks = this.jsonData.zanichelliLinks;
|
|
69
|
+
if (this.jsonData.bottomLinks) {
|
|
70
|
+
const bottomLinks = this.jsonData.bottomLinks;
|
|
71
|
+
zanichelliLinks.push({
|
|
72
|
+
title: "Altre informazioni",
|
|
73
|
+
items: bottomLinks,
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
return zanichelliLinks.map((item) => (h("z-footer-section", { name: item.title }, item.items.map((item) => (h("z-footer-link", { href: item.link }, item.label))))));
|
|
77
|
+
}
|
|
78
|
+
// INFO: backward compatibility
|
|
79
|
+
renderFooterBottomJsonData() {
|
|
80
|
+
if (!this.jsonData || !this.jsonData.bottomLinks)
|
|
81
|
+
return null;
|
|
82
|
+
const bottomLinks = this.jsonData.bottomLinks;
|
|
83
|
+
return bottomLinks.map((item) => (h("z-footer-link", { href: item.link }, item.label)));
|
|
84
|
+
}
|
|
85
|
+
// INFO: backward compatibility
|
|
86
|
+
renderFooterSocialJsonData() {
|
|
87
|
+
if (!this.jsonData || !this.jsonData.social)
|
|
88
|
+
return null;
|
|
89
|
+
const social = this.jsonData.social;
|
|
90
|
+
return social.map((item) => (h("z-footer-social", { href: item.link, icon: item.icon, description: item.description })));
|
|
91
|
+
}
|
|
92
|
+
render() {
|
|
93
|
+
return (h("footer", null, this.renderFooterProductInfo(), this.renderFooterTop(), this.renderFooterBottom()));
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
ZFooter.style = stylesCss;
|
|
97
|
+
|
|
98
|
+
export { ZFooter as z_footer };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { r as registerInstance, h, e as Host } from './index-44936066.js';
|
|
2
|
+
|
|
3
|
+
const stylesCss = ":host{display:inline-block;width:100%;height:100%;background:var(--bg-neutral-100);overflow:hidden;border-radius:4px;transform:translate3d(0, 0, 0)}:host::after{content:' ';display:block;width:100%;height:100%;box-shadow:#e8ebee20 0px 0px 1px;background-image:linear-gradient(\r\n 90deg,\r\n var(--bg-neutral-100) 0%,\r\n var(--bg-neutral-150) 95%,\r\n var(--bg-neutral-100) 100%\r\n );animation:progress 1.6s ease-in-out infinite}@keyframes progress{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}";
|
|
4
|
+
|
|
5
|
+
const ZGhostLoading = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
}
|
|
9
|
+
render() {
|
|
10
|
+
return (h(Host, null));
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
ZGhostLoading.style = stylesCss;
|
|
14
|
+
|
|
15
|
+
export { ZGhostLoading as z_ghost_loading };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { r as registerInstance, h } from './index-44936066.js';
|
|
2
|
+
|
|
3
|
+
const ZHeading = class {
|
|
4
|
+
constructor(hostRef) {
|
|
5
|
+
registerInstance(this, hostRef);
|
|
6
|
+
this.variant = "regular";
|
|
7
|
+
}
|
|
8
|
+
render() {
|
|
9
|
+
return (h("z-typography", { component: this.component || `h${this.level}`, level: `h${this.level}`, variant: this.variant }, h("slot", null)));
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export { ZHeading as z_heading };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { r as registerInstance, h } from './index-44936066.js';
|
|
2
|
+
import { i as icons } from './icons-c51b7576.js';
|
|
3
|
+
|
|
4
|
+
const stylesCss = ":host>div{display:flex;flex-flow:row wrap;justify-content:flex-start;font-family:Verdana, Arial, Helvetica, sans-serif;font-size:12px}:host>div>div{width:300px;margin:5px}:host>div>div>label{margin:0 10px}";
|
|
5
|
+
|
|
6
|
+
const ZIconPackage = class {
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
registerInstance(this, hostRef);
|
|
9
|
+
}
|
|
10
|
+
render() {
|
|
11
|
+
const iconsNames = Object.keys(icons);
|
|
12
|
+
return (h("div", null, iconsNames.map((icon) => {
|
|
13
|
+
return (h("div", null, h("z-icon", { name: icon }), h("label", null, icon)));
|
|
14
|
+
})));
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
ZIconPackage.style = stylesCss;
|
|
18
|
+
|
|
19
|
+
export { ZIconPackage as z_icon_package };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { r as registerInstance, h } from './index-44936066.js';
|
|
2
|
+
import { i as icons } from './icons-c51b7576.js';
|
|
3
|
+
|
|
4
|
+
const stylesCss = ":host{line-height:0;vertical-align:middle;margin-right:var(--z-icon-right-margin, 0);margin-left:var(--z-icon-left-margin, 0)}:host svg:not([width]){width:var(--z-icon-width, 18px)}:host svg:not([height]){height:var(--z-icon-height, 18px)}";
|
|
5
|
+
|
|
6
|
+
const ZIcon = class {
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
registerInstance(this, hostRef);
|
|
9
|
+
}
|
|
10
|
+
selectPathOrPolygon(iconName) {
|
|
11
|
+
if (iconName && iconName.startsWith("M")) {
|
|
12
|
+
return h("path", { d: icons[this.name] });
|
|
13
|
+
}
|
|
14
|
+
else {
|
|
15
|
+
return h("polygon", { points: icons[this.name] });
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
render() {
|
|
19
|
+
return (h("svg", { viewBox: "0 0 1000 1000", width: this.width, height: this.height, id: this.iconid, fill: this.fill ? `var(--${this.fill})` : "" }, this.selectPathOrPolygon(icons[this.name])));
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
ZIcon.style = stylesCss;
|
|
23
|
+
|
|
24
|
+
export { ZIcon as z_icon };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { r as registerInstance, f as createEvent, h } from './index-44936066.js';
|
|
2
|
+
|
|
3
|
+
const stylesCss = ":host{font-family:var(--dashboard-font);font-weight:var(--font-rg)}:host>div{background:var(--accent-lighter);padding:calc(var(--space-unit) * 2);border-radius:var(--border-radius);display:flex;width:inherit}:host>div>slot{color:var(--text-grey-800);font-size:14px}:host>div>z-icon{fill:var(--myz-blue);cursor:pointer;margin-left:calc(var(--space-unit) * 2)}";
|
|
4
|
+
|
|
5
|
+
const ZInfoBox = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.infoBoxClose = createEvent(this, "infoBoxClose", 7);
|
|
9
|
+
/** render close icon flag */
|
|
10
|
+
this.isclosable = true;
|
|
11
|
+
}
|
|
12
|
+
emitInfoBoxClose() {
|
|
13
|
+
this.infoBoxClose.emit({ boxid: this.boxid });
|
|
14
|
+
}
|
|
15
|
+
render() {
|
|
16
|
+
return (h("div", { id: this.boxid }, h("slot", { name: "content" }), this.isclosable && h("z-icon", { name: "multiply", "data-action": "infoBoxClose", onClick: () => this.emitInfoBoxClose() })));
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
ZInfoBox.style = stylesCss;
|
|
20
|
+
|
|
21
|
+
export { ZInfoBox as z_info_box };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { r as registerInstance, h } from './index-44936066.js';
|
|
2
|
+
|
|
3
|
+
const stylesCss = "label{display:block;margin:var(--space-unit) 0;color:var(--color-text02);font-family:var(--font-family-sans);font-size:var(--font-size-1);font-weight:var(--font-sb);line-height:1.33;letter-spacing:0.32px;text-transform:uppercase;text-align:left}label.disabled{color:var(--color-disabled02)}";
|
|
4
|
+
|
|
5
|
+
const ZInputLabel = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
/** the label is disabled */
|
|
9
|
+
this.disabled = false;
|
|
10
|
+
}
|
|
11
|
+
render() {
|
|
12
|
+
return h("label", { htmlFor: this.htmlfor, class: { disabled: this.disabled } }, this.value);
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
ZInputLabel.style = stylesCss;
|
|
16
|
+
|
|
17
|
+
export { ZInputLabel as z_input_label };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { r as registerInstance, h, e as Host } from './index-44936066.js';
|
|
2
|
+
|
|
3
|
+
const stylesCss = ":host{display:flex;align-items:start;min-height:calc(var(--space-unit) * 2);margin-top:var(--space-unit);color:var(--color-text05);fill:currentColor;font-family:var(--font-family-sans);font-size:var(--font-size-2);letter-spacing:0.16px}:host([status='success']){color:var(--color-text-success)}:host([status='error']){color:var(--color-text-error)}:host([status='warning']){color:var(--color-warning02)}:host(:focus){outline:none}:host>z-icon{--z-icon-width:calc(var(--space-unit) * 2);--z-icon-height:calc(var(--space-unit) * 2);margin:calc(var(--space-unit) / 3) var(--space-unit) 0 0}";
|
|
4
|
+
|
|
5
|
+
const ZInputMessage = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.statusIcons = {
|
|
9
|
+
success: "checkmark-circle",
|
|
10
|
+
error: "multiply-circled",
|
|
11
|
+
warning: "exclamation-circle",
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
render() {
|
|
15
|
+
return (h(Host, { role: "alert", "aria-label": this.message, tabindex: this.message ? 0 : -1 }, this.statusIcons[this.status] && this.message && (h("z-icon", { name: this.statusIcons[this.status] })), h("span", { innerHTML: this.message })));
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
ZInputMessage.style = stylesCss;
|
|
19
|
+
|
|
20
|
+
export { ZInputMessage as z_input_message };
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
import { r as registerInstance, f as createEvent, h, g as getElement } from './index-44936066.js';
|
|
2
|
+
import { I as InputTypeEnum } from './index-08d9a3bf.js';
|
|
3
|
+
import { r as randomId } from './utils-2e0fffb8.js';
|
|
4
|
+
import './breakpoints-14432d05.js';
|
|
5
|
+
|
|
6
|
+
const stylesCss = ".sc-z-input-h{display:inline-block;width:inherit}input.sc-z-input::-ms-clear,input.sc-z-input::-ms-reveal{display:none}.sc-z-input-h input.sc-z-input::-ms-clear,.sc-z-input-h input.sc-z-input::-ms-reveal{display:none}input.sc-z-input,textarea.sc-z-input,.textareaWrapper.sc-z-input,ul[role=\"listbox\"].sc-z-input{background:var(--color-input-field01);border-radius:var(--border-radius-small);border:var(--border-size-small) solid var(--color-surface04);box-sizing:border-box;color:var(--color-text02);fill:var(--color-icon02);font-family:var(--font-family-sans);font-weight:var(--font-rg);font-size:var(--font-size-3);outline:none}input.sc-z-input:focus:focus-visible,li[role=\"option\"].sc-z-input:focus:focus-visible,.focus.sc-z-input{box-shadow:var(--shadow-focus-primary)}.filled.sc-z-input{border-color:var(--color-surface05)}.istyping.sc-z-input,.focus.istyping.sc-z-input,.input_selecting.sc-z-input{border-color:var(--color-primary01);color:var(--color-primary01)}.input_success.sc-z-input,.input_success.sc-z-input:hover,.input_success.hover.sc-z-input{background:var(--color-success-inverse);border-color:var(--color-success01);fill:var(--color-success01)}.input_error.sc-z-input,.input_error.sc-z-input:hover,.input_error.hover.sc-z-input{background:var(--color-error-inverse);border-color:var(--color-error01);fill:var(--color-error01)}.input_warning.sc-z-input,.input_warning.sc-z-input:hover,.input_warning.hover.sc-z-input{background:var(--color-warning-inverse);border-color:var(--color-warning01);fill:var(--color-warning01)}input[readonly].sc-z-input,.readonly.sc-z-input{border-color:var(--color-disabled01);fill:var(--color-disabled01);pointer-events:none}input.sc-z-input:disabled,.disabled.sc-z-input,.filled.sc-z-input:disabled{border-color:var(--color-disabled01);color:var(--color-disabled02);fill:var(--color-disabled01);pointer-events:none;box-shadow:none}input.sc-z-input::placeholder,textarea.sc-z-input::placeholder{color:var(--color-text05)}.sc-z-input::-webkit-input-placeholder,.sc-z-input::-webkit-textarea-placeholder{color:var(--color-text05)}.sc-z-input:-ms-input-placeholder,.sc-z-input:-ms-textarea-placeholder{color:var(--color-text05)}.sc-z-input::-moz-placeholder{color:var(--color-text05)}.sc-z-input:-moz-placeholder{color:var(--color-text05)}.textWrapper.sc-z-input>div.sc-z-input{fill:var(--color-icon02)}.textWrapper.sc-z-input>div.sc-z-input>input.sc-z-input{width:100%;height:calc(var(--space-unit) * 5.5);margin:0;padding:0 calc(var(--space-unit) * 4.5) 0 calc(var(--space-unit) * 1.5);box-sizing:border-box}.textWrapper.sc-z-input>div.sc-z-input>input.hasIcon.sc-z-input,.textWrapper.sc-z-input>div.sc-z-input>input.hasClearIcon.sc-z-input{padding-right:calc(var(--space-unit) * 4)}.textWrapper.sc-z-input>div.sc-z-input>input.hasIcon.hasClearIcon.sc-z-input{padding-right:calc(var(--space-unit) * 7)}.textWrapper.sc-z-input>div.sc-z-input{position:relative;z-index:1}.textWrapper.sc-z-input .iconsWrapper.sc-z-input{position:absolute;bottom:calc(var(--space-unit) * 1.5);right:calc(var(--space-unit) * 1.5);display:flex;z-index:2}.textWrapper.sc-z-input .iconsWrapper.sc-z-input>z-icon.sc-z-input{--z-icon-width:18px;--z-icon-height:18px;display:block;margin-left:calc(var(--space-unit) * 0.5)}.textWrapper.sc-z-input .iconsWrapper.sc-z-input>z-icon.resetIcon.sc-z-input,.textWrapper.sc-z-input .iconsWrapper.sc-z-input>z-icon.showHidePasswordIcon.sc-z-input{cursor:pointer}.textWrapper.sc-z-input>div.sc-z-input>input.sc-z-input:-webkit-autofill,.textWrapper.sc-z-input>div.sc-z-input>input.sc-z-input:-webkit-autofill:hover,.textWrapper.sc-z-input>div.sc-z-input>input.sc-z-input:-webkit-autofill:focus,.textWrapper.sc-z-input>div.sc-z-input>input.sc-z-input:-webkit-autofill:active{-webkit-background-clip:text !important}.textareaWrapper.sc-z-input{padding:calc(var(--space-unit) * 1.5);scrollbar-color:var(--color-primary01) transparent}textarea.sc-z-input::-webkit-scrollbar{background:linear-gradient(\r\n to right,\r\n transparent 0 3px,\r\n var(--gray200) 3px 7px,\r\n transparent 7px 10px\r\n );width:10px;border-radius:var(--border-radius)}textarea.sc-z-input::-webkit-scrollbar-track{background-color:transparent}textarea.sc-z-input::-webkit-scrollbar-thumb{width:10px;background-color:var(--color-primary01);border-radius:var(--border-radius)}textarea.sc-z-input::-webkit-scrollbar-thumb:hover{background-color:var(--color-hover-primary)}textarea.sc-z-input{min-height:132px;width:100%;margin:0;padding:0;border:none;resize:none}.radioWrapper.sc-z-input,.checkboxWrapper.sc-z-input{display:inline-flex;flex-direction:row;align-items:center;font-family:var(--font-family-sans);position:relative;color:var(--color-text01);fill:var(--color-primary01)}.radioWrapper.sc-z-input:hover,.checkboxWrapper.sc-z-input:hover{color:var(--color-hover-primary);fill:currentColor}.radioWrapper.sc-z-input>input.sc-z-input,.checkboxWrapper.sc-z-input>input.sc-z-input{position:absolute;opacity:0;z-index:-1;pointer-events:none}.radioWrapper.sc-z-input .radioLabel.sc-z-input,.checkboxWrapper.sc-z-input .checkboxLabel.sc-z-input{display:inline-flex;align-items:center;margin:0;line-height:1;color:inherit;font-family:inherit;font-weight:inherit;font-size:inherit;text-transform:inherit}.radioWrapper.sc-z-input input.sc-z-input:not(:disabled)+.radioLabel.sc-z-input,.checkboxWrapper.sc-z-input input.sc-z-input:not(:disabled)+.checkboxLabel.sc-z-input{cursor:pointer}.radioWrapper.sc-z-input .radioLabel.sc-z-input z-icon.sc-z-input,.checkboxWrapper.sc-z-input .checkboxLabel.sc-z-input z-icon.sc-z-input{fill:inherit;cursor:pointer}.radioWrapper.sc-z-input .radioLabel.after.sc-z-input,.checkboxWrapper.sc-z-input .checkboxLabel.after.sc-z-input{flex-direction:row}.radioWrapper.sc-z-input .radioLabel.before.sc-z-input,.checkboxWrapper.sc-z-input .checkboxLabel.before.sc-z-input{flex-direction:row-reverse}.radioWrapper.sc-z-input .radioLabel.after.sc-z-input>span.sc-z-input,.checkboxWrapper.sc-z-input .checkboxLabel.after.sc-z-input>span.sc-z-input{margin-left:var(--space-unit)}.radioWrapper.sc-z-input .radioLabel.before.sc-z-input>span.sc-z-input,.checkboxWrapper.sc-z-input .checkboxLabel.before.sc-z-input>span.sc-z-input{margin-right:var(--space-unit)}.radioWrapper.sc-z-input>input.sc-z-input:focus:focus-visible+.radioLabel.sc-z-input>z-icon.sc-z-input,.checkboxWrapper.sc-z-input>input.sc-z-input:focus:focus-visible+.checkboxLabel.sc-z-input>z-icon.sc-z-input{box-shadow:var(--shadow-focus-primary);border-radius:var(--border-radius-small)}.radioWrapper.sc-z-input>input.sc-z-input:disabled+.radioLabel.sc-z-input,.checkboxWrapper.sc-z-input>input.sc-z-input:disabled+.checkboxLabel.sc-z-input{color:var(--color-disabled02)}.radioWrapper.sc-z-input>input.sc-z-input:disabled+.radioLabel.sc-z-input>z-icon.sc-z-input,.checkboxWrapper.sc-z-input>input.sc-z-input:disabled+.checkboxLabel.sc-z-input>z-icon.sc-z-input{fill:var(--color-disabled01);cursor:default}";
|
|
7
|
+
|
|
8
|
+
const ZInput = class {
|
|
9
|
+
constructor(hostRef) {
|
|
10
|
+
registerInstance(this, hostRef);
|
|
11
|
+
this.inputChange = createEvent(this, "inputChange", 7);
|
|
12
|
+
this.startTyping = createEvent(this, "startTyping", 7);
|
|
13
|
+
this.stopTyping = createEvent(this, "stopTyping", 7);
|
|
14
|
+
this.inputCheck = createEvent(this, "inputCheck", 7);
|
|
15
|
+
this.optionSelect = createEvent(this, "optionSelect", 7);
|
|
16
|
+
/** the id of the input element */
|
|
17
|
+
this.htmlid = `id-${randomId()}`;
|
|
18
|
+
/** the input is disabled */
|
|
19
|
+
this.disabled = false;
|
|
20
|
+
/** the input is readonly */
|
|
21
|
+
this.readonly = false;
|
|
22
|
+
/** the input is required (optional): available for text, password, number, email, textarea, checkbox */
|
|
23
|
+
this.required = false;
|
|
24
|
+
/** checked: available for checkbox, radio */
|
|
25
|
+
this.checked = false;
|
|
26
|
+
/** show input helper message (optional): available for text, password, number, email, textarea, select */
|
|
27
|
+
this.hasmessage = true;
|
|
28
|
+
/** the input label position: available for checkbox, radio */
|
|
29
|
+
this.labelafter = true;
|
|
30
|
+
/** timeout setting before trigger `inputChange` event (optional): available for text, textarea */
|
|
31
|
+
this.typingtimeout = 300;
|
|
32
|
+
/** multiple options can be selected (optional): available for select */
|
|
33
|
+
this.multiple = false;
|
|
34
|
+
/** render clear icon when typing (optional): available for text */
|
|
35
|
+
this.hasclearicon = true;
|
|
36
|
+
this.isTyping = false;
|
|
37
|
+
this.textareaWrapperHover = "";
|
|
38
|
+
this.textareaWrapperFocus = "";
|
|
39
|
+
this.passwordHidden = true;
|
|
40
|
+
}
|
|
41
|
+
inputCheckListener(e) {
|
|
42
|
+
const data = e.detail;
|
|
43
|
+
switch (this.type) {
|
|
44
|
+
case InputTypeEnum.radio:
|
|
45
|
+
if (data.type === InputTypeEnum.radio &&
|
|
46
|
+
data.name === this.name &&
|
|
47
|
+
data.id !== this.htmlid) {
|
|
48
|
+
this.checked = false;
|
|
49
|
+
}
|
|
50
|
+
default:
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
/** get the input value */
|
|
55
|
+
async getValue() {
|
|
56
|
+
switch (this.type) {
|
|
57
|
+
case InputTypeEnum.select:
|
|
58
|
+
return this.selectElem.getValue();
|
|
59
|
+
default:
|
|
60
|
+
return this.value;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
/** set the input value */
|
|
64
|
+
async setValue(value) {
|
|
65
|
+
switch (this.type) {
|
|
66
|
+
case InputTypeEnum.select:
|
|
67
|
+
this.selectElem.setValue(value);
|
|
68
|
+
break;
|
|
69
|
+
default:
|
|
70
|
+
if (typeof value === "string")
|
|
71
|
+
this.value = value;
|
|
72
|
+
break;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
/** get checked status */
|
|
76
|
+
async isChecked() {
|
|
77
|
+
switch (this.type) {
|
|
78
|
+
case InputTypeEnum.checkbox:
|
|
79
|
+
case InputTypeEnum.radio:
|
|
80
|
+
return this.checked;
|
|
81
|
+
default:
|
|
82
|
+
return false;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
emitInputChange(value, keycode) {
|
|
86
|
+
if (!this.isTyping) {
|
|
87
|
+
this.emitStartTyping();
|
|
88
|
+
}
|
|
89
|
+
let validity = {};
|
|
90
|
+
if (this.type === InputTypeEnum.textarea) {
|
|
91
|
+
validity = this.getValidity("textarea");
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
validity = this.getValidity("input");
|
|
95
|
+
}
|
|
96
|
+
this.value = value;
|
|
97
|
+
this.inputChange.emit({ value, keycode, validity });
|
|
98
|
+
clearTimeout(this.timer);
|
|
99
|
+
this.timer = setTimeout(() => {
|
|
100
|
+
this.emitStopTyping(this.value, validity);
|
|
101
|
+
}, this.typingtimeout);
|
|
102
|
+
}
|
|
103
|
+
emitStartTyping() {
|
|
104
|
+
this.isTyping = true;
|
|
105
|
+
this.startTyping.emit();
|
|
106
|
+
}
|
|
107
|
+
emitStopTyping(value, validity) {
|
|
108
|
+
this.isTyping = false;
|
|
109
|
+
this.stopTyping.emit({
|
|
110
|
+
value: value,
|
|
111
|
+
validity: validity,
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
emitInputCheck(checked) {
|
|
115
|
+
this.inputCheck.emit({
|
|
116
|
+
id: this.htmlid,
|
|
117
|
+
checked: checked,
|
|
118
|
+
type: this.type,
|
|
119
|
+
name: this.name,
|
|
120
|
+
value: this.value,
|
|
121
|
+
validity: this.getValidity("input"),
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
getValidity(type) {
|
|
125
|
+
const input = this.hostElement.querySelector(type);
|
|
126
|
+
return input.validity;
|
|
127
|
+
}
|
|
128
|
+
/* START text/password/email/number */
|
|
129
|
+
getTextAttributes() {
|
|
130
|
+
const attr = {
|
|
131
|
+
id: this.htmlid,
|
|
132
|
+
name: this.name,
|
|
133
|
+
placeholder: this.placeholder,
|
|
134
|
+
value: this.value,
|
|
135
|
+
disabled: this.disabled,
|
|
136
|
+
readonly: this.readonly,
|
|
137
|
+
required: this.required,
|
|
138
|
+
title: this.htmltitle,
|
|
139
|
+
class: [
|
|
140
|
+
`input_${this.status || "default"}`,
|
|
141
|
+
this.isTyping && "istyping",
|
|
142
|
+
!this.isTyping && this.value && "filled",
|
|
143
|
+
]
|
|
144
|
+
.filter(Boolean)
|
|
145
|
+
.join(" "),
|
|
146
|
+
onInput: (e) => this.emitInputChange(e.target.value, e.keyCode),
|
|
147
|
+
};
|
|
148
|
+
if (this.autocomplete) {
|
|
149
|
+
attr["autocomplete"] = this.autocomplete;
|
|
150
|
+
}
|
|
151
|
+
return attr;
|
|
152
|
+
}
|
|
153
|
+
renderInputText(type = InputTypeEnum.text) {
|
|
154
|
+
const attr = this.getTextAttributes();
|
|
155
|
+
if (this.icon || type === InputTypeEnum.password) {
|
|
156
|
+
attr.class += " hasIcon";
|
|
157
|
+
}
|
|
158
|
+
if (this.hasclearicon) {
|
|
159
|
+
attr.class += " hasClearIcon";
|
|
160
|
+
}
|
|
161
|
+
return (h("div", { class: "textWrapper" }, this.renderLabel(), h("div", null, h("input", Object.assign({ type: type === InputTypeEnum.password && !this.passwordHidden
|
|
162
|
+
? InputTypeEnum.text
|
|
163
|
+
: type }, attr, { "aria-label": this.ariaLabel || this.label })), this.renderIcons()), this.renderMessage()));
|
|
164
|
+
}
|
|
165
|
+
renderLabel() {
|
|
166
|
+
if (!this.label)
|
|
167
|
+
return;
|
|
168
|
+
return (h("z-input-label", { htmlfor: this.htmlid, value: this.label, disabled: this.disabled, "aria-label": this.label, id: `${this.htmlid}_label` }));
|
|
169
|
+
}
|
|
170
|
+
renderIcons() {
|
|
171
|
+
return (h("span", { class: {
|
|
172
|
+
iconsWrapper: true,
|
|
173
|
+
disabled: this.disabled,
|
|
174
|
+
} }, this.renderResetIcon(), this.renderIcon()));
|
|
175
|
+
}
|
|
176
|
+
renderIcon() {
|
|
177
|
+
if (this.type === InputTypeEnum.password) {
|
|
178
|
+
return this.renderShowHidePassword();
|
|
179
|
+
}
|
|
180
|
+
if (!this.icon)
|
|
181
|
+
return;
|
|
182
|
+
return h("z-icon", { class: "inputIcon", name: this.icon });
|
|
183
|
+
}
|
|
184
|
+
renderResetIcon() {
|
|
185
|
+
if (!this.hasclearicon || !this.value || this.disabled || this.readonly)
|
|
186
|
+
return;
|
|
187
|
+
return (h("z-icon", { class: "resetIcon", name: "multiply", onClick: (e) => this.emitInputChange("", e.keyCode) }));
|
|
188
|
+
}
|
|
189
|
+
renderShowHidePassword() {
|
|
190
|
+
return (h("z-icon", { class: "showHidePasswordIcon", name: this.passwordHidden ? "view-filled" : "view-off-filled", onClick: () => (this.passwordHidden = !this.passwordHidden) }));
|
|
191
|
+
}
|
|
192
|
+
renderMessage() {
|
|
193
|
+
if (!this.hasmessage)
|
|
194
|
+
return;
|
|
195
|
+
return h("z-input-message", { message: this.message, status: this.status });
|
|
196
|
+
}
|
|
197
|
+
/* END text/password/email/number */
|
|
198
|
+
/* START textarea */
|
|
199
|
+
renderTextarea() {
|
|
200
|
+
const attributes = this.getTextAttributes();
|
|
201
|
+
return (h("div", { class: "textWrapper" }, this.renderLabel(), h("div", { class: [
|
|
202
|
+
"textareaWrapper",
|
|
203
|
+
attributes.class,
|
|
204
|
+
attributes.disabled && "disabled",
|
|
205
|
+
attributes.readonly && "readonly",
|
|
206
|
+
this.isTyping && "istyping",
|
|
207
|
+
this.textareaWrapperFocus,
|
|
208
|
+
this.textareaWrapperHover,
|
|
209
|
+
]
|
|
210
|
+
.filter(Boolean)
|
|
211
|
+
.join(" ") }, h("textarea", Object.assign({}, attributes, { onFocus: () => (this.textareaWrapperFocus = "focus"), onBlur: () => (this.textareaWrapperFocus = ""), onMouseOver: () => (this.textareaWrapperHover = "hover"), onMouseOut: () => (this.textareaWrapperHover = ""), "aria-label": this.ariaLabel || this.label }))), this.renderMessage()));
|
|
212
|
+
}
|
|
213
|
+
/* END textarea */
|
|
214
|
+
handleCheck(ev) {
|
|
215
|
+
this.checked = ev.target.checked;
|
|
216
|
+
this.emitInputCheck(this.checked);
|
|
217
|
+
}
|
|
218
|
+
/* START checkbox */
|
|
219
|
+
renderCheckbox() {
|
|
220
|
+
return (h("div", { class: "checkboxWrapper" }, h("input", { id: this.htmlid, type: "checkbox", name: this.name, checked: this.checked, disabled: this.disabled, readonly: this.readonly, required: this.required, onChange: this.handleCheck.bind(this), value: this.value }), h("label", { htmlFor: this.htmlid, class: {
|
|
221
|
+
checkboxLabel: true,
|
|
222
|
+
after: this.labelafter,
|
|
223
|
+
before: !this.labelafter,
|
|
224
|
+
} }, h("z-icon", { name: this.checked ? "checkbox-checked" : "checkbox", "aria-hidden": "true" }), this.label && h("span", { innerHTML: this.label }))));
|
|
225
|
+
}
|
|
226
|
+
/* END checkbox */
|
|
227
|
+
/* START radio */
|
|
228
|
+
renderRadio() {
|
|
229
|
+
return (h("div", { class: "radioWrapper" }, h("input", { id: this.htmlid, type: "radio", name: this.name, checked: this.checked, disabled: this.disabled, readonly: this.readonly, onChange: this.handleCheck.bind(this), value: this.value }), h("label", { htmlFor: this.htmlid, class: {
|
|
230
|
+
radioLabel: true,
|
|
231
|
+
after: this.labelafter,
|
|
232
|
+
before: !this.labelafter,
|
|
233
|
+
} }, h("z-icon", { name: this.checked ? "radio-button-checked" : "radio-button", "aria-hidden": "true" }), this.label && h("span", { innerHTML: this.label }))));
|
|
234
|
+
}
|
|
235
|
+
/* END radio */
|
|
236
|
+
/* START select */
|
|
237
|
+
renderSelect() {
|
|
238
|
+
return (h("z-select", { htmlid: this.htmlid, items: this.items, name: this.name, label: this.label, "aria-label": this.ariaLabel, disabled: this.disabled, readonly: this.readonly, placeholder: this.placeholder, htmltitle: this.htmltitle, status: this.status, hasmessage: this.hasmessage, message: this.message, autocomplete: this.autocomplete, multiple: this.multiple, ref: (el) => (this.selectElem = el) }));
|
|
239
|
+
}
|
|
240
|
+
/* END select */
|
|
241
|
+
render() {
|
|
242
|
+
switch (this.type) {
|
|
243
|
+
case InputTypeEnum.text:
|
|
244
|
+
case InputTypeEnum.password:
|
|
245
|
+
case InputTypeEnum.number:
|
|
246
|
+
case InputTypeEnum.email:
|
|
247
|
+
return this.renderInputText(this.type);
|
|
248
|
+
case InputTypeEnum.textarea:
|
|
249
|
+
return this.renderTextarea();
|
|
250
|
+
case InputTypeEnum.checkbox:
|
|
251
|
+
return this.renderCheckbox();
|
|
252
|
+
case InputTypeEnum.radio:
|
|
253
|
+
return this.renderRadio();
|
|
254
|
+
case InputTypeEnum.select:
|
|
255
|
+
return this.renderSelect();
|
|
256
|
+
default:
|
|
257
|
+
return this.renderInputText();
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
get hostElement() { return getElement(this); }
|
|
261
|
+
};
|
|
262
|
+
ZInput.style = stylesCss;
|
|
263
|
+
|
|
264
|
+
export { ZInput as z_input };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { r as registerInstance, f as createEvent, h, e as Host, g as getElement } from './index-44936066.js';
|
|
2
|
+
|
|
3
|
+
const stylesCss = ":host{--font-size-link:inherit;--font-weight-link:inherit}:host{font-family:var(--dashboard-font);font-weight:var(--font-weight-link);font-size:var(--font-size-link);line-height:inherit;outline:none}a{cursor:pointer;color:var(--color-link-primary);fill:var(--color-link-primary);display:inline-flex;align-items:center;text-decoration:none;padding:calc(var(--space-unit) * 0.5) 0;border-top:var(--border-size-medium) solid transparent;border-bottom:var(--border-size-medium) solid transparent}a:hover,a:focus,a:active{text-decoration:underline}a.active{color:var(--color-active-link);fill:var(--color-active-link)}a:hover,a:focus{color:var(--color-hover-link);fill:var(--color-hover-link)}a:active{color:var(--color-pressed-link);fill:var(--color-pressed-link)}a:visited{color:var(--color-visited-link);fill:var(--color-visited-link)}a.disabled,a.inverse.disabled{cursor:default;pointer-events:none;color:var(--color-disabled03);fill:var(--color-disabled03)}a.underline,a.underline:active,a.underline:hover,a.underline:visited,a.underline.disabled,a.underline.black,a.underline.white{text-decoration:underline}a.disabled,a.disabled:active,a.disabled:visited,a.disabled:hover{text-decoration:none}a.inverse{color:var(--color-inverse-link);fill:var(--color-inverse-link)}a.inverse.active{color:var(--color-inverse-active-link);fill:var(--color-inverse-active-link)}a.inverse:hover,a.inverse:focus{color:var(--color-inverse-hover-link);fill:var(--color-inverse-hover-link)}a.inverse:active{color:var(--color-inverse-pressed-link);fill:var(--color-inverse-pressed-link)}a.inverse:visited{color:var(--color-inverse-visited-link);fill:var(--color-inverse-visited-link)}a.black{color:var(--gray800);fill:var(--gray800);text-decoration:none}a.black:hover,a.black.active{color:var(--color-black);fill:var(--color-black)}a.black:visited{color:var(--gray800);fill:var(--gray800)}a.black:hover,a.black:focus,a.black:active{text-decoration:underline}a.black:active{color:var(--gray700);fill:var(--gray700)}a.white,a.white:active,a.white:hover,a.white.active{color:var(--bg-white);fill:var(--bg-white);text-decoration:none}a.white:visited{color:var(--bg-white);fill:var(--bg-white)}a.white:hover,a.white:focus,a.white:active{text-decoration:underline}a.white.disabled,a.black.disabled{color:var(--gray500);fill:var(--gray500)}a>z-icon:first-child{margin-right:8px}a>z-icon:last-child{margin-left:8px}";
|
|
4
|
+
|
|
5
|
+
const ZLink = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.zLinkClick = createEvent(this, "zLinkClick", 7);
|
|
9
|
+
/** link target (optional) */
|
|
10
|
+
this.target = "_self";
|
|
11
|
+
/** tabindex link attribute (optional) */
|
|
12
|
+
this.htmltabindex = 0;
|
|
13
|
+
/** disable link flag (optional) */
|
|
14
|
+
this.isdisabled = false;
|
|
15
|
+
/** active link flag (optional) */
|
|
16
|
+
this.isactive = false;
|
|
17
|
+
/** white variant flag (optional) */
|
|
18
|
+
this.iswhite = false;
|
|
19
|
+
/** link text variant (optional) */
|
|
20
|
+
this.textcolor = "primary";
|
|
21
|
+
/** big link version */
|
|
22
|
+
this.big = false;
|
|
23
|
+
/** link icon position (optional) */
|
|
24
|
+
this.iconposition = "left";
|
|
25
|
+
/** draw underline on text (optional) */
|
|
26
|
+
this.underline = false;
|
|
27
|
+
this.iconSize = 18;
|
|
28
|
+
this.emitZLinkClick = this.emitZLinkClick.bind(this);
|
|
29
|
+
this.emitZLinkInteraction = this.emitZLinkInteraction.bind(this);
|
|
30
|
+
}
|
|
31
|
+
componentWillRender() {
|
|
32
|
+
if (this.iswhite) {
|
|
33
|
+
console.warn("z-link iswhite prop is deprecated and will be dropped in a next release, please use textcolor prop instead");
|
|
34
|
+
}
|
|
35
|
+
if (this.big) {
|
|
36
|
+
console.warn("z-link big prop is deprecated and will be dropped in a next release, please override --font-size-link and --font-weight-link variables instead");
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
emitZLinkClick(e, linkId) {
|
|
40
|
+
this.emitZLinkInteraction(e, linkId);
|
|
41
|
+
}
|
|
42
|
+
emitZLinkInteraction(e, linkId) {
|
|
43
|
+
this.zLinkClick.emit({ e, linkId });
|
|
44
|
+
}
|
|
45
|
+
componentDidRender() {
|
|
46
|
+
if (this.icon) {
|
|
47
|
+
const height = parseFloat(window.getComputedStyle(this.hostElement).getPropertyValue('font-size'));
|
|
48
|
+
const currentSize = this.big ? 18 : Math.round(height * 1.125);
|
|
49
|
+
if (!Number.isNaN(currentSize) && this.iconSize !== currentSize) {
|
|
50
|
+
this.iconSize = currentSize;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
render() {
|
|
55
|
+
const style = this.big ? { "--font-size-link": "16px", "--font-weight-link": "600" } : {};
|
|
56
|
+
return (h(Host, { style: style }, h("a", { id: this.htmlid, href: this.href ? this.href : null, class: `${this.isdisabled ? "disabled" : ""}
|
|
57
|
+
${this.isactive ? "active" : ""}
|
|
58
|
+
${this.textcolor}
|
|
59
|
+
${this.iswhite ? "white" : ""}
|
|
60
|
+
${this.underline ? "underline" : ""}`, target: this.target, role: this.href ? "link" : "button", tabindex: this.isdisabled ? -1 : this.htmltabindex, onClick: (e) => this.emitZLinkClick(e, this.htmlid) }, this.iconposition === "right" && h("slot", null), this.icon &&
|
|
61
|
+
h("z-icon", { style: { "--z-icon-width": this.iconSize.toString(), "--z-icon-height": this.iconSize.toString() }, name: this.icon, height: this.iconSize, width: this.iconSize }), this.iconposition === "left" && h("slot", null))));
|
|
62
|
+
}
|
|
63
|
+
get hostElement() { return getElement(this); }
|
|
64
|
+
};
|
|
65
|
+
ZLink.style = stylesCss;
|
|
66
|
+
|
|
67
|
+
export { ZLink as z_link };
|