@zanichelli/albe-web-components 2.37.0 → 2.38.1
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 +24 -0
- package/dist/cjs/{index-73c33cf4.js → index-dcab1bda.js} +5 -0
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{utils-95a9a879.js → utils-971854fc.js} +1 -1
- package/dist/cjs/web-components-library.cjs.js +1 -1
- package/dist/cjs/z-app-switcher.cjs.entry.js +1 -1
- package/dist/cjs/z-app-topbar.cjs.entry.js +1 -1
- package/dist/cjs/z-aria-alert.cjs.entry.js +1 -1
- package/dist/cjs/z-avatar.cjs.entry.js +1 -1
- package/dist/cjs/z-body_2.cjs.entry.js +40 -0
- package/dist/cjs/z-button-filter_5.cjs.entry.js +2 -2
- package/dist/cjs/z-button.cjs.entry.js +39 -0
- package/dist/cjs/z-card.cjs.entry.js +69 -0
- package/dist/cjs/z-carousel.cjs.entry.js +19 -0
- package/dist/cjs/z-chip.cjs.entry.js +15 -5
- package/dist/cjs/z-combobox.cjs.entry.js +2 -2
- package/dist/cjs/z-contextual-menu.cjs.entry.js +1 -1
- package/dist/cjs/z-cookiebar.cjs.entry.js +1 -1
- package/dist/cjs/z-divider.cjs.entry.js +1 -1
- package/dist/cjs/z-footer.cjs.entry.js +1 -1
- package/dist/cjs/z-icon.cjs.entry.js +28 -0
- package/dist/cjs/z-list_3.cjs.entry.js +1 -1
- package/dist/cjs/z-menu-dropdown_2.cjs.entry.js +2 -2
- package/dist/cjs/z-messages-pocket.cjs.entry.js +1 -1
- package/dist/cjs/z-modal-login.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-alert.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-footer.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-info.cjs.entry.js +2 -2
- package/dist/cjs/z-myz-card_4.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-list-item.cjs.entry.js +2 -2
- package/dist/cjs/z-myz-topbar.cjs.entry.js +1 -1
- package/dist/cjs/z-navigation-tabs.cjs.entry.js +1 -1
- package/dist/cjs/z-notification.cjs.entry.js +1 -1
- package/dist/cjs/z-otp.cjs.entry.js +1 -1
- package/dist/cjs/z-pagination-bar.cjs.entry.js +2 -2
- package/dist/cjs/z-pocket_3.cjs.entry.js +2 -2
- package/dist/cjs/z-popover.cjs.entry.js +125 -0
- package/dist/cjs/z-slideshow.cjs.entry.js +2 -2
- package/dist/cjs/z-status-tag.cjs.entry.js +1 -1
- package/dist/cjs/z-table-body.cjs.entry.js +24 -0
- package/dist/cjs/z-table-cell.cjs.entry.js +36 -0
- package/dist/cjs/z-table-empty-box.cjs.entry.js +32 -0
- package/dist/cjs/z-table-head.cjs.entry.js +23 -0
- package/dist/cjs/z-table-header-row.cjs.entry.js +22 -0
- package/dist/cjs/z-table-header.cjs.entry.js +88 -0
- package/dist/cjs/z-table-row.cjs.entry.js +43 -0
- package/dist/cjs/z-table-sticky-footer.cjs.entry.js +19 -0
- package/dist/cjs/z-table.cjs.entry.js +82 -0
- package/dist/cjs/z-toast-notification-list.cjs.entry.js +1 -1
- package/dist/cjs/z-toast-notification.cjs.entry.js +1 -1
- package/dist/cjs/z-tooltip.cjs.entry.js +1 -1
- package/dist/collection/beans/index.js +5 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/buttons/z-chip/index.js +78 -7
- package/dist/collection/components/buttons/z-chip/styles.css +66 -0
- package/dist/collection/components/z-carousel/index.js +19 -0
- package/dist/collection/components/z-carousel/styles.css +27 -0
- package/dist/esm/{index-a4f73ed9.js → index-6b86a3f1.js} +6 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{utils-7032aa6d.js → utils-351595e0.js} +2 -2
- package/dist/esm/web-components-library.js +1 -1
- package/dist/esm/z-app-switcher.entry.js +1 -1
- package/dist/esm/z-app-topbar.entry.js +1 -1
- package/dist/esm/z-aria-alert.entry.js +1 -1
- package/dist/esm/z-avatar.entry.js +1 -1
- package/dist/esm/z-body_2.entry.js +35 -0
- package/dist/esm/z-button-filter_5.entry.js +2 -2
- package/dist/esm/z-button.entry.js +35 -0
- package/dist/esm/z-card.entry.js +65 -0
- package/dist/esm/z-carousel.entry.js +15 -0
- package/dist/esm/z-chip.entry.js +16 -6
- package/dist/esm/z-combobox.entry.js +2 -2
- package/dist/esm/z-contextual-menu.entry.js +1 -1
- package/dist/esm/z-cookiebar.entry.js +1 -1
- package/dist/esm/z-divider.entry.js +1 -1
- package/dist/esm/z-footer.entry.js +1 -1
- package/dist/esm/z-icon.entry.js +24 -0
- package/dist/esm/z-list_3.entry.js +1 -1
- package/dist/esm/z-menu-dropdown_2.entry.js +2 -2
- package/dist/esm/z-messages-pocket.entry.js +1 -1
- package/dist/esm/z-modal-login.entry.js +1 -1
- package/dist/esm/z-myz-card-alert.entry.js +1 -1
- package/dist/esm/z-myz-card-dictionary.entry.js +1 -1
- package/dist/esm/z-myz-card-footer.entry.js +1 -1
- package/dist/esm/z-myz-card-info.entry.js +2 -2
- package/dist/esm/z-myz-card_4.entry.js +1 -1
- package/dist/esm/z-myz-list-item.entry.js +2 -2
- package/dist/esm/z-myz-topbar.entry.js +1 -1
- package/dist/esm/z-navigation-tabs.entry.js +1 -1
- package/dist/esm/z-notification.entry.js +1 -1
- package/dist/esm/z-otp.entry.js +1 -1
- package/dist/esm/z-pagination-bar.entry.js +2 -2
- package/dist/esm/z-pocket_3.entry.js +2 -2
- package/dist/esm/z-popover.entry.js +121 -0
- package/dist/esm/z-slideshow.entry.js +2 -2
- package/dist/esm/z-status-tag.entry.js +1 -1
- package/dist/esm/z-table-body.entry.js +20 -0
- package/dist/esm/z-table-cell.entry.js +32 -0
- package/dist/esm/z-table-empty-box.entry.js +28 -0
- package/dist/esm/z-table-head.entry.js +19 -0
- package/dist/esm/z-table-header-row.entry.js +18 -0
- package/dist/esm/z-table-header.entry.js +84 -0
- package/dist/esm/z-table-row.entry.js +39 -0
- package/dist/esm/z-table-sticky-footer.entry.js +15 -0
- package/dist/esm/z-table.entry.js +78 -0
- package/dist/esm/z-toast-notification-list.entry.js +1 -1
- package/dist/esm/z-toast-notification.entry.js +1 -1
- package/dist/esm/z-tooltip.entry.js +1 -1
- package/dist/types/beans/index.d.ts +4 -0
- package/dist/types/components/buttons/z-chip/index.d.ts +6 -0
- package/dist/types/components/z-carousel/index.d.ts +8 -0
- package/dist/types/components.d.ts +20 -1
- package/dist/web-components-library/index.esm.js +1 -1
- package/dist/web-components-library/{p-e27b9cba.entry.js → p-02796506.entry.js} +1 -1
- package/dist/web-components-library/p-1094e4de.entry.js +1 -0
- package/dist/web-components-library/{p-9c8aac51.entry.js → p-209cc06f.entry.js} +1 -1
- package/dist/web-components-library/{p-25cfbd3a.entry.js → p-28b18ca4.entry.js} +1 -1
- package/dist/web-components-library/p-3241471c.entry.js +1 -0
- package/dist/web-components-library/p-3b3cb18b.entry.js +1 -0
- package/dist/web-components-library/{p-7595ed18.entry.js → p-3d8b00fd.entry.js} +1 -1
- package/dist/web-components-library/{p-7e9a16c8.entry.js → p-41f6c8c4.entry.js} +1 -1
- package/dist/web-components-library/p-4665d79f.entry.js +1 -0
- package/dist/web-components-library/p-48e0a763.entry.js +1 -0
- package/dist/web-components-library/p-4c1dc891.entry.js +1 -0
- package/dist/web-components-library/{p-21a50621.entry.js → p-4c8e6232.entry.js} +1 -1
- package/dist/web-components-library/{p-efeecbb7.entry.js → p-509408f3.entry.js} +1 -1
- package/dist/web-components-library/p-597e767a.entry.js +1 -0
- package/dist/web-components-library/{p-fd60b041.entry.js → p-5d4bb66b.entry.js} +1 -1
- package/dist/web-components-library/{p-346db6a6.entry.js → p-5ee63e7f.entry.js} +1 -1
- package/dist/web-components-library/p-6934ea47.js +1 -0
- package/dist/web-components-library/{p-06e7159b.entry.js → p-71bb86a8.entry.js} +1 -1
- package/dist/web-components-library/p-733ba674.entry.js +1 -0
- package/dist/web-components-library/{p-d329ffe4.entry.js → p-74217d44.entry.js} +1 -1
- package/dist/web-components-library/{p-4fef4307.entry.js → p-7ce4db78.entry.js} +1 -1
- package/dist/web-components-library/{p-3543cfd5.entry.js → p-8923f36d.entry.js} +1 -1
- package/dist/web-components-library/{p-2b94e667.entry.js → p-89dbe6e9.entry.js} +1 -1
- package/dist/web-components-library/p-8c9e3bb8.entry.js +1 -0
- package/dist/web-components-library/p-8deddec7.entry.js +1 -0
- package/dist/web-components-library/{p-e40bf20d.entry.js → p-913cd0da.entry.js} +1 -1
- package/dist/web-components-library/{p-0c7427ec.entry.js → p-98a7eedb.entry.js} +1 -1
- package/dist/web-components-library/p-9af1322d.entry.js +1 -0
- package/dist/web-components-library/{p-0ab6a465.entry.js → p-9b2f8028.entry.js} +1 -1
- package/{www/build/p-8aaba07d.entry.js → dist/web-components-library/p-a0b11f65.entry.js} +1 -1
- package/dist/web-components-library/p-a3a64dc8.entry.js +1 -0
- package/dist/web-components-library/{p-44dc89cf.entry.js → p-a4fe497a.entry.js} +1 -1
- package/{www/build/p-c3e5e43e.entry.js → dist/web-components-library/p-ba1db0fc.entry.js} +1 -1
- package/dist/web-components-library/{p-819b5d17.entry.js → p-bd717ced.entry.js} +1 -1
- package/dist/web-components-library/{p-ecac657b.entry.js → p-beda87c3.entry.js} +1 -1
- package/dist/web-components-library/{p-453af930.entry.js → p-bf4539a7.entry.js} +1 -1
- package/dist/web-components-library/{p-29e389cb.entry.js → p-c6265fbb.entry.js} +1 -1
- package/dist/web-components-library/p-c8f19ca8.entry.js +1 -0
- package/dist/web-components-library/{p-b85f7e9a.entry.js → p-d1a52660.entry.js} +1 -1
- package/dist/web-components-library/p-d4c4b90a.entry.js +1 -0
- package/dist/web-components-library/p-d945c8d2.js +1 -0
- package/dist/web-components-library/p-ddc3c8c2.entry.js +1 -0
- package/dist/web-components-library/{p-f552b72d.entry.js → p-ded374d7.entry.js} +1 -1
- package/dist/web-components-library/{p-4081b879.entry.js → p-e55fc434.entry.js} +1 -1
- package/dist/web-components-library/{p-1ce5ea61.entry.js → p-e6b971b9.entry.js} +1 -1
- package/dist/web-components-library/p-e84d871b.entry.js +1 -0
- package/dist/web-components-library/p-e9be115a.entry.js +1 -0
- package/dist/web-components-library/{p-6252d20b.entry.js → p-ea84969a.entry.js} +1 -1
- package/dist/web-components-library/p-f7b1dc68.entry.js +1 -0
- package/dist/web-components-library/web-components-library.esm.js +1 -1
- package/package.json +1 -1
- package/react/components.d.ts +1 -0
- package/react/components.js +3 -2
- package/react/components.js.map +1 -1
- package/www/build/index.esm.js +1 -1
- package/www/build/{p-e27b9cba.entry.js → p-02796506.entry.js} +1 -1
- package/www/build/p-1094e4de.entry.js +1 -0
- package/www/build/{p-9c8aac51.entry.js → p-209cc06f.entry.js} +1 -1
- package/www/build/{p-25cfbd3a.entry.js → p-28b18ca4.entry.js} +1 -1
- package/www/build/p-3241471c.entry.js +1 -0
- package/www/build/p-3b3cb18b.entry.js +1 -0
- package/www/build/{p-7595ed18.entry.js → p-3d8b00fd.entry.js} +1 -1
- package/www/build/{p-7e9a16c8.entry.js → p-41f6c8c4.entry.js} +1 -1
- package/www/build/p-4665d79f.entry.js +1 -0
- package/www/build/p-48e0a763.entry.js +1 -0
- package/www/build/p-4c1dc891.entry.js +1 -0
- package/www/build/{p-21a50621.entry.js → p-4c8e6232.entry.js} +1 -1
- package/www/build/{p-efeecbb7.entry.js → p-509408f3.entry.js} +1 -1
- package/www/build/p-597e767a.entry.js +1 -0
- package/www/build/{p-fd60b041.entry.js → p-5d4bb66b.entry.js} +1 -1
- package/www/build/{p-346db6a6.entry.js → p-5ee63e7f.entry.js} +1 -1
- package/www/build/p-6934ea47.js +1 -0
- package/www/build/p-69f277e5.js +1 -0
- package/www/build/{p-06e7159b.entry.js → p-71bb86a8.entry.js} +1 -1
- package/www/build/p-733ba674.entry.js +1 -0
- package/www/build/{p-d329ffe4.entry.js → p-74217d44.entry.js} +1 -1
- package/www/build/{p-4fef4307.entry.js → p-7ce4db78.entry.js} +1 -1
- package/www/build/{p-3543cfd5.entry.js → p-8923f36d.entry.js} +1 -1
- package/www/build/{p-2b94e667.entry.js → p-89dbe6e9.entry.js} +1 -1
- package/www/build/p-8c9e3bb8.entry.js +1 -0
- package/www/build/p-8deddec7.entry.js +1 -0
- package/www/build/{p-e40bf20d.entry.js → p-913cd0da.entry.js} +1 -1
- package/www/build/{p-0c7427ec.entry.js → p-98a7eedb.entry.js} +1 -1
- package/www/build/p-9af1322d.entry.js +1 -0
- package/www/build/{p-0ab6a465.entry.js → p-9b2f8028.entry.js} +1 -1
- package/{dist/web-components-library/p-8aaba07d.entry.js → www/build/p-a0b11f65.entry.js} +1 -1
- package/www/build/p-a3a64dc8.entry.js +1 -0
- package/www/build/{p-44dc89cf.entry.js → p-a4fe497a.entry.js} +1 -1
- package/{dist/web-components-library/p-c3e5e43e.entry.js → www/build/p-ba1db0fc.entry.js} +1 -1
- package/www/build/{p-819b5d17.entry.js → p-bd717ced.entry.js} +1 -1
- package/www/build/{p-ecac657b.entry.js → p-beda87c3.entry.js} +1 -1
- package/www/build/{p-453af930.entry.js → p-bf4539a7.entry.js} +1 -1
- package/www/build/{p-29e389cb.entry.js → p-c6265fbb.entry.js} +1 -1
- package/www/build/p-c8f19ca8.entry.js +1 -0
- package/www/build/{p-b85f7e9a.entry.js → p-d1a52660.entry.js} +1 -1
- package/www/build/p-d4c4b90a.entry.js +1 -0
- package/www/build/p-d945c8d2.js +1 -0
- package/www/build/p-ddc3c8c2.entry.js +1 -0
- package/www/build/{p-f552b72d.entry.js → p-ded374d7.entry.js} +1 -1
- package/www/build/{p-4081b879.entry.js → p-e55fc434.entry.js} +1 -1
- package/www/build/{p-1ce5ea61.entry.js → p-e6b971b9.entry.js} +1 -1
- package/www/build/p-e84d871b.entry.js +1 -0
- package/www/build/p-e9be115a.entry.js +1 -0
- package/www/build/{p-6252d20b.entry.js → p-ea84969a.entry.js} +1 -1
- package/www/build/p-ea943cbd.css +1 -0
- package/www/build/p-f7b1dc68.entry.js +1 -0
- package/www/build/web-components-library.esm.js +1 -1
- package/www/index.html +2 -4
- package/dist/cjs/z-body_15.cjs.entry.js +0 -575
- package/dist/esm/z-body_15.entry.js +0 -557
- package/dist/web-components-library/p-0af2894e.js +0 -1
- package/dist/web-components-library/p-29c08c91.js +0 -1
- package/dist/web-components-library/p-3355b667.entry.js +0 -1
- package/dist/web-components-library/p-5d34d798.entry.js +0 -1
- package/dist/web-components-library/p-976cdbfa.entry.js +0 -1
- package/dist/web-components-library/p-f8446b1e.entry.js +0 -1
- package/www/build/p-053e68f0.js +0 -122
- package/www/build/p-0af2894e.js +0 -1
- package/www/build/p-29c08c91.js +0 -1
- package/www/build/p-3355b667.entry.js +0 -1
- package/www/build/p-5d34d798.entry.js +0 -1
- package/www/build/p-976cdbfa.entry.js +0 -1
- package/www/build/p-97a11655.css +0 -789
- package/www/build/p-f8446b1e.entry.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, g as getElement } from './index-fa9e549c.js';
|
|
2
|
-
import {
|
|
2
|
+
import { B as ButtonVariantEnum } from './index-6b86a3f1.js';
|
|
3
3
|
import { m as mobileBreakpoint, t as tabletBreakpoint } from './breakpoints-c386984e.js';
|
|
4
4
|
|
|
5
5
|
const stylesCss = ":host a{cursor:pointer}header{position:sticky;top:0;z-index:99;display:grid;grid-template-columns:1fr;grid-template-rows:1fr;grid-template-areas:\"main-header\";margin-bottom:calc(var(--space-unit) * 6.5);font-family:var(--dashboard-font);font-weight:var(--font-rg)}.main-header{display:grid;grid-template-columns:2fr 2fr 4fr 100px;grid-template-rows:1fr;grid-template-areas:\"logo link-int link-ext login\";grid-area:main-header;grid-column-gap:calc(var(--space-unit) * .5);align-items:center;background-color:var(--bg-grey-900);height:auto;align-items:center;z-index:10}.main-header.myz-out{background-color:var(--bg-white)}.logo{grid-area:logo;padding:6px}z-logo{transform:scale(0.9)}.dropdown-menu{display:none}.dropdown-menu.hidden{visibility:hidden}.dropdown-links{grid-area:dropdown-links;list-style:none;display:block;max-height:32px;margin:0;padding:0}.arrow{fill:var(--text-grey-200)}.dropdown-links>li{list-style:none;display:inline-block;margin:0;padding:0}.dropdown-links>li>a{width:auto;height:auto;color:var(--myz-blue);font-size:14px;letter-spacing:0.18px;line-height:32px;text-decoration:none;margin:var(--space-unit);padding-bottom:calc(var(--space-unit) * .5)}.dropdown-links>li>a:hover,.dropdown-links>li>a.active{color:var(--text-grey-800);border-bottom:2px solid var(--myz-blue)}.mobile-header{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;align-items:stretch;align-content:center;align-items:center;width:100%;background-color:var(--bg-grey-900);z-index:inherit;height:52px;position:fixed;top:0px;left:0;z-index:999}.mobile-header.myz-out{background-color:var(--bg-white)}.mobile-header>z-button{margin:0 calc(var(--space-unit) * 2)}.mobile-content{display:flex;flex-direction:column;flex-wrap:nowrap;align-content:center;justify-content:center;align-items:center;width:100%;background-color:var(--bg-grey-900);position:fixed;top:52px;left:0;z-index:999;max-height:0px;overflow:hidden;transition:max-height 1s cubic-bezier(0.46, 0, 1, 0.79)}.mobile-content.open{max-height:100vh;transition:max-height 2s cubic-bezier(0, 0.79, 0.46, 1)}.mobile-content.myz-out{background-color:var(--bg-white)}hr{display:block;position:relative;padding:0;margin:0px calc(var(--space-unit) * 4);height:0;width:calc(100% - 64px);max-height:0;font-size:1px;line-height:0;clear:both;border:none;border-top:1px solid var(--text-grey-700)}.menu-mobile{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;align-items:center;align-content:center;color:var(--bg-white);padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 3);cursor:pointer}.myz-out .menu-mobile{color:var(--text-grey-800)}.menu-toggle{grid-area:menu-toggle;display:flex;flex-direction:column;margin:0 var(--space-unit)}.menu-toggle .bar{width:20px;height:2px;background-color:var(--bg-white);margin:2px auto;transition:all 0.3s ease-in-out}.myz-out .menu-toggle .bar{background-color:var(--text-grey-800)}.menu-toggle:hover{cursor:pointer}#mobile-menu.is-active .bar:nth-child(2){opacity:0}#mobile-menu.is-active .bar:nth-child(1){transform:translateY(6px) rotate(45deg)}#mobile-menu.is-active .bar:nth-child(3){transform:translateY(-6px) rotate(-45deg)}.booktab-button,.mobile-login{overflow:hidden;height:0%;max-height:100%;width:100%;height:100%;display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:space-between;align-items:stretch;align-content:stretch;padding:0}.hidden{visibility:hidden}.login{grid-area:login;display:flex;justify-content:flex-end;padding:0 calc(var(--space-unit) * 2)}.login>z-button{color:var(--bg-white);fill:var(--bg-white)}.booktab-button>z-button{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:center;align-items:center;align-content:center;padding:calc(var(--space-unit) * 2) 0px calc(var(--space-unit) * 4) 0px}.link-ext{grid-area:link-ext;overflow:hidden;height:0%;max-height:100%;width:100%;height:100%;display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:space-between;align-items:stretch;align-content:stretch;padding:0}.link-ext-span{display:inline-block;width:100%;margin:calc(var(--space-unit) * .5) auto;box-sizing:border-box;margin:0px auto 0px auto;padding:0px calc(var(--space-unit) * 4) 0px calc(var(--space-unit) * 4);line-height:44px}.link-ext-span.myz:hover,.link-ext-span.myz:focus{background:var(--text-grey-800);border-radius:var(--border-radius);cursor:pointer}.link-ext z-link{font-size:12px;font-weight:var(--font-sb)}.link-int{overflow:hidden;max-height:100%;width:100%;height:100%;display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:space-between;align-items:stretch;align-content:stretch;padding:0}.link-int>span{width:100%;display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:flex-start;align-items:stretch;align-content:flex-start}.link-int>span>.menu-item{height:auto;color:var(--bg-white);letter-spacing:0.2px;font-weight:var(--font-sb);font-size:16px;text-decoration:none;outline:none;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;align-items:stretch;align-content:stretch;width:100%;box-sizing:border-box;margin:0px auto 0px auto;padding:0px calc(var(--space-unit) * 4) 0px calc(var(--space-unit) * 4);line-height:44px}.link-int>span>.menu-item:hover,.link-int>span>.menu-item:focus{border-radius:0px}.link-int>span>.menu-item>span{white-space:nowrap}.link-int>span>.menu-item>i{padding-top:calc(var(--space-unit) * 2);height:28px;width:24px;text-align:right}.link-int>span:first-child>.menu-item{margin-top:0}.link-int>span>svg{display:none}.link-int>.mobile-dropdown{padding:0 48px}.mobile-login>span{display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:flex-start;align-items:stretch;align-content:flex-start;fill:white}.mobile-login>span:focus,.mobile-login>span:hover{background:var(--text-grey-800)}.myz-out .mobile-login>span:focus,.myz-out .mobile-login>span:hover{background:none}.mobile-login>span>.menu-item{height:auto;color:var(--bg-white);letter-spacing:0.2px;font-weight:var(--font-sb);font-size:16px;text-decoration:none;outline:none;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;align-items:stretch;align-content:stretch;width:100%;box-sizing:border-box;margin:0px auto 0px auto;padding:0px calc(var(--space-unit) * 4) 0px calc(var(--space-unit) * 4);line-height:44px}.myz-out .mobile-login>span>.menu-item{color:var(--text-grey-800)}.mobile-login>span>.menu-item>i{padding-top:calc(var(--space-unit) * 2);height:28px;width:24px;text-align:right}.mobile-login>span>.menu-item>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-login>span>.menu-item>span>z-icon{padding-right:var(--space-unit);fill:var(--bg-white)}.menu-item>i::before{border-style:solid;border-width:0.12em 0.12em 0 0;content:\" \";display:inline-block;height:0.45em;left:0.16em;position:relative;top:-0.12em;transform:rotate(135deg) scale(1.2);vertical-align:top;width:0.45em;margin-top:2px;margin-left:2px;margin-right:6px;transition:all 0.5s ease}.menu-item.isopen>i::before{top:0.24em;transform:rotate(-45deg) scale(1.2);transition:all 0.5s ease}.mobile-dropdown{background:white;display:block;overflow:hidden;width:100%;box-sizing:border-box;margin:0px auto 0px auto;padding:0px calc(var(--space-unit) * 4) 0px calc(var(--space-unit) * 4);line-height:44px;max-height:0px;transition:max-height 0.3s ease}.mobile-dropdown.visible{max-height:100vh;transition:max-height 0.5s ease}@media only screen and (min-width: 768px){header{grid-template-columns:1fr 0.8fr 1.5fr 1.1fr 0.7fr;grid-template-rows:0.2fr auto;grid-template-areas:\"main-header main-header main-header main-header main-header\" \"dropdown-menu dropdown-menu dropdown-menu dropdown-menu dropdown-menu\";margin-bottom:0}header.myz-out{top:0px;grid-template-rows:1fr}.main-header{display:grid;grid-template-columns:170px auto auto 120px;grid-template-rows:1fr;grid-template-areas:\"logo link-int link-ext login\";grid-area:main-header}.dropdown-menu{display:grid;grid-template-columns:1fr;grid-template-rows:1fr;grid-template-areas:\"dropdown-links\";grid-area:dropdown-menu;grid-column-gap:var(--space-unit);background:var(--bg-grey-200);height:32px;visibility:visible;z-index:9;padding-left:160px}.booktab-button,.mobile-header,.mobile-login,.mobile-dropdown,.menu-mobile{display:none}.link-int{grid-area:link-int;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;align-items:center;align-content:center;max-height:46px;margin-top:calc(var(--space-unit) * .5)}.link-int>span{display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:flex-start;align-items:center;align-content:center;width:auto}.link-int>span>.menu-item{width:auto;height:auto;color:var(--bg-white);letter-spacing:0.2px;line-height:14px;font-weight:var(--font-sb);text-decoration:none;outline:none;padding:calc(var(--space-unit) * 1.5)}.link-int>span>svg{display:block}.menu-item>i{display:none}.link-int>span>.menu-item:focus,.link-int>span>.menu-item:hover{background:var(--text-grey-800);border-radius:var(--border-radius);cursor:pointer}.link-int>span>.menu-item::-moz-focus-inner{border:0}.link-int>span>.menu-item:focus+svg{visibility:visible}.link-ext{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-end;align-items:center;align-content:center;max-height:46px}.link-ext-span{width:auto;line-height:14px;margin:var(--space-unit);padding:calc(var(--space-unit) * .5) var(--space-unit)}}@media only screen and (min-width: 1152px){.main-header{grid-template-columns:170px auto auto 180px}}";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-fa9e549c.js';
|
|
2
|
-
import {
|
|
2
|
+
import { h as TabOrientationEnum, i as TabSizeEnum } from './index-6b86a3f1.js';
|
|
3
3
|
|
|
4
4
|
const stylesCss = ":host{--safe-scroll-area:4px;--negative-safe-scroll-area:calc(-1 * var(--safe-scroll-area));position:relative;display:flex;flex-direction:row;z-index:0;margin:var(--negative-safe-scroll-area);padding:var(--safe-scroll-area);font-family:var(--font-family-sans);font-weight:var(--font-rg);overflow:hidden}:host,:host *,::slotted(*){box-sizing:border-box}::-webkit-scrollbar{display:none}button.navigation{position:absolute;display:flex;align-items:center;justify-content:center;margin:0;padding:0;background:var(--color-white);border:none;outline:none;fill:var(--color-primary01);border-radius:var(--border-no-radius);cursor:pointer;z-index:1}button.navigation:focus{fill:var(--color-primary01);box-shadow:var(--shadow-focus-primary)}button.navigation:disabled{display:none}nav{display:flex;align-items:center;justify-content:flex-start;overflow:auto;margin:var(--negative-safe-scroll-area);padding:var(--safe-scroll-area);scroll-padding:var(--safe-scroll-area);scrollbar-width:none}:host([orientation='horizontal']) nav{width:100%}:host([orientation='horizontal']) button.navigation{top:0;height:100%;width:calc((var(--space-unit) * 4) + var(--safe-scroll-area))}:host([orientation='horizontal']) button.navigation:first-child{left:0;padding-left:var(--safe-scroll-area);box-shadow:5px 0px var(--safe-scroll-area) var(--negative-safe-scroll-area) rgba(66, 69, 72, 0.40)}:host([orientation='horizontal']) button.navigation:last-child{right:0;padding-right:4px;box-shadow:-5px 0px var(--safe-scroll-area) var(--negative-safe-scroll-area) rgba(66, 69, 72, 0.40)}:host([orientation='vertical']){flex-direction:column}:host([orientation='vertical']) nav{flex-direction:column;align-items:stretch;height:100%}:host([orientation='vertical']) button.navigation{left:0;width:100%;height:calc((var(--space-unit) * 4) + var(--safe-scroll-area))}:host([orientation='vertical']) button.navigation:first-child{top:0;padding-top:var(--safe-scroll-area);box-shadow:0px 5px var(--safe-scroll-area) var(--negative-safe-scroll-area) rgba(66, 69, 72, 0.40)}:host([orientation='vertical']) button.navigation:last-child{bottom:0;padding-bottom:var(--safe-scroll-area);box-shadow:0px -5px var(--safe-scroll-area) var(--negative-safe-scroll-area) rgba(66, 69, 72, 0.40)}:host([size='small'][orientation='vertical']) button.navigation{height:calc(var(--space-unit) * 4)}";
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-fa9e549c.js';
|
|
2
|
-
import { N as NotificationType } from './index-
|
|
2
|
+
import { N as NotificationType } from './index-6b86a3f1.js';
|
|
3
3
|
|
|
4
4
|
const stylesCss = ":host{width:100%;color:var(--color-text01)}.notification-container{display:flex;padding:0 0 calc(var(--space-unit) * 2) calc(var(--space-unit) * 2);outline:none;border-bottom:var(--border-size-medium) solid var(--color-surface03)}.shadow{box-shadow:var(--shadow-3)}.content-container{display:flex;justify-content:space-between;flex:1 1 auto;flex-wrap:wrap}.content-text{max-width:800px;margin-top:calc(var(--space-unit) * 2);margin-right:calc(var(--space-unit) * 2)}.action-text{margin-top:calc(var(--space-unit) * 2);margin-right:calc(var(--space-unit) * 2);height:fit-content;color:var(--color-primary01);cursor:pointer;white-space:nowrap}:host div>z-icon{justify-self:center;margin-top:calc(var(--space-unit) * 2);margin-right:calc(var(--space-unit))}:host div.success-notification{background:var(--color-success-inverse)}:host div.warning-notification{background:var(--color-warning-inverse)}:host div.error-notification{background:var(--color-error-inverse)}:host div.success-notification>z-icon{fill:var(--color-success01)}:host div.warning-notification>z-icon{fill:var(--color-warning02)}:host div.error-notification>z-icon{fill:var(--color-error01)}:host div>z-icon.close-icon{cursor:pointer;fill:var(--color-primary01);margin-right:calc(var(--space-unit) * 2)}@media only screen and (min-width: 768px){.content-container{flex-wrap:nowrap}.content-text{margin-right:calc(var(--space-unit) * 5)}}";
|
|
5
5
|
|
package/dist/esm/z-otp.entry.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-fa9e549c.js';
|
|
2
|
-
import {
|
|
2
|
+
import { e as InputStatusEnum } from './index-6b86a3f1.js';
|
|
3
3
|
|
|
4
4
|
const stylesCss = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg)}.digits-container{display:flex;justify-content:flex-start}input{height:72px;width:calc(var(--space-unit) * 5);font-size:32px;font-weight:300;font-family:var(--font-family-sans);text-align:center;caret-color:transparent;box-sizing:border-box;padding:0;color:var(--color-surface05)}input.error{border:1px solid;border-radius:4px;border-color:var(--color-error01);background-color:var(--color-error-inverse)}input:not(:last-of-type){margin-right:var(--space-unit)}@media only screen and (min-width: 768px){input:not(:last-of-type){margin-right:calc(var(--space-unit) * 2)}}@media only screen and (min-width: 1025px){input{width:calc(var(--space-unit) * 6)}}";
|
|
5
5
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-fa9e549c.js';
|
|
2
2
|
import { h as hammer } from './hammer-501342a9.js';
|
|
3
|
-
import { h as handleKeyboardSubmit } from './utils-
|
|
3
|
+
import { h as handleKeyboardSubmit } from './utils-351595e0.js';
|
|
4
4
|
import './_commonjsHelpers-8b28c6fa.js';
|
|
5
|
-
import './index-
|
|
5
|
+
import './index-6b86a3f1.js';
|
|
6
6
|
import './breakpoints-c386984e.js';
|
|
7
7
|
|
|
8
8
|
const stylesCss = ":host>div{height:48px;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-around;align-items:center;align-content:center}:host>div>z-icon{cursor:pointer;margin:calc(var(--space-unit) * 2) 0;color:var(--color-primary01);fill:var(--color-primary01)}:host>div>z-icon.disabled{cursor:default;pointer-events:none;color:var(--color-disabled01);fill:var(--color-disabled01)}";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-fa9e549c.js';
|
|
2
|
-
import {
|
|
3
|
-
import { h as handleKeyboardSubmit } from './utils-
|
|
2
|
+
import { d as PocketStatusEnum } from './index-6b86a3f1.js';
|
|
3
|
+
import { h as handleKeyboardSubmit } from './utils-351595e0.js';
|
|
4
4
|
import { h as hammer } from './hammer-501342a9.js';
|
|
5
5
|
import './breakpoints-c386984e.js';
|
|
6
6
|
import './_commonjsHelpers-8b28c6fa.js';
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-fa9e549c.js';
|
|
2
|
+
import { c as classnames } from './index-aa3a4feb.js';
|
|
3
|
+
import { P as PopoverPosition, t as PopoverBorderRadius, u as PopoverShadow, K as KeyboardKeys } from './index-6b86a3f1.js';
|
|
4
|
+
import { b as getElementTree } from './utils-351595e0.js';
|
|
5
|
+
import './_commonjsHelpers-8b28c6fa.js';
|
|
6
|
+
import './breakpoints-c386984e.js';
|
|
7
|
+
|
|
8
|
+
const stylesCss = ".sc-z-popover-h{font-family:var(--dashboard-font);font-weight:var(--font-rg);position:relative;display:inline-block;--shadow-arrow-color:rgba(66, 69, 72, 0.2);--shadow-arrow-below-color:rgba(66, 69, 72, 0.1)}.popover-content-container.sc-z-popover{box-sizing:border-box;visibility:hidden;position:absolute;min-width:64px;min-height:32px;z-index:999}.popover-content-container.visible.sc-z-popover{visibility:visible}.popover-content-container.border-radius-none.sc-z-popover{border-radius:0}.popover-content-container.border-radius-small.sc-z-popover{border-radius:var(--border-radius-small)}.popover-content-container.border-radius-medium.sc-z-popover{border-radius:var(--border-radius)}.popover-content-container.shadow-1.sc-z-popover{box-shadow:var(--shadow-1)}.popover-content-container.shadow-2.sc-z-popover{box-shadow:var(--shadow-2)}.popover-content-container.shadow-3.sc-z-popover{box-shadow:var(--shadow-3)}.popover-content-container.shadow-4.sc-z-popover{box-shadow:var(--shadow-4)}.popover-content-container.shadow-6.sc-z-popover{box-shadow:var(--shadow-6)}.popover-content-container.shadow-8.sc-z-popover{box-shadow:var(--shadow-8)}.popover-content-container.shadow-12.sc-z-popover{box-shadow:var(--shadow-12)}.popover-content-container.shadow-16.sc-z-popover{box-shadow:var(--shadow-16)}.popover-content-container.shadow-24.sc-z-popover{box-shadow:var(--shadow-24)}.popover-content-container.after-down.sc-z-popover{top:0;left:calc(100% + var(--space-unit))}.popover-content-container.after-center.sc-z-popover{top:50%;left:calc(100% + var(--space-unit));transform:translateY(-50%)}.popover-content-container.after-up.sc-z-popover{bottom:0;left:calc(100% + var(--space-unit))}.popover-content-container.below-right.sc-z-popover{left:0;top:calc(100% + var(--space-unit))}.popover-content-container.below-center.sc-z-popover{left:50%;top:calc(100% + var(--space-unit));transform:translateX(-50%)}.popover-content-container.below-left.sc-z-popover{right:0;top:calc(100% + var(--space-unit))}.popover-content-container.before-down.sc-z-popover{top:0;right:calc(100% + var(--space-unit))}.popover-content-container.before-center.sc-z-popover{top:50%;right:calc(100% + var(--space-unit));transform:translateY(-50%)}.popover-content-container.before-up.sc-z-popover{bottom:0;right:calc(100% + var(--space-unit))}.popover-content-container.above-right.sc-z-popover{left:0;bottom:calc(100% + var(--space-unit))}.popover-content-container.above-center.sc-z-popover{left:50%;bottom:calc(100% + var(--space-unit));transform:translateX(-50%)}.popover-content-container.above-left.sc-z-popover{right:0;bottom:calc(100% + var(--space-unit))}.popover-content-container.sc-z-popover:before{display:none;position:absolute;content:\"\";width:8px;height:8px;z-index:-1;background-color:inherit;transform:rotate(45deg)}.popover-content-container.after-down.sc-z-popover:before{top:12px;left:-4px;box-shadow:-1px 1px 1.5px var(--shadow-arrow-color)}.popover-content-container.after-center.sc-z-popover:before{top:calc(50% - 4px);left:-4px;box-shadow:-1px 1px 1.5px var(--shadow-arrow-color)}.popover-content-container.after-up.sc-z-popover:before{bottom:12px;left:-4px;box-shadow:-1px 1px 1.5px var(--shadow-arrow-color)}.popover-content-container.below-right.sc-z-popover:before{left:12px;top:-4px;box-shadow:-1px -1px 2px var(--shadow-arrow-below-color)}.popover-content-container.below-center.sc-z-popover:before{left:calc(50% - 4px);top:-4px;box-shadow:-1px -1px 2px var(--shadow-arrow-below-color)}.popover-content-container.below-left.sc-z-popover:before{right:12px;top:-4px;box-shadow:-1px -1px 2px var(--shadow-arrow-below-color)}.popover-content-container.before-down.sc-z-popover:before{top:12px;right:-4px;box-shadow:1px -1px 1.5px var(--shadow-arrow-color)}.popover-content-container.before-center.sc-z-popover:before{top:calc(50% - 4px);right:-4px;box-shadow:1px -1px 1.5px var(--shadow-arrow-color)}.popover-content-container.before-up.sc-z-popover:before{bottom:12px;right:-4px;box-shadow:1px -1px 1.5px var(--shadow-arrow-color)}.popover-content-container.above-right.sc-z-popover:before{left:12px;bottom:-4px;box-shadow:1px 1px 1.5px var(--shadow-arrow-color)}.popover-content-container.above-center.sc-z-popover:before{left:calc(50% - 4px);bottom:-4px;box-shadow:1px 1px 1.5px var(--shadow-arrow-color)}.popover-content-container.above-left.sc-z-popover:before{right:12px;bottom:-4px;box-shadow:1px 1px 1.5px var(--shadow-arrow-color)}.popover-content-container.show-arrow.sc-z-popover:before{display:block}";
|
|
9
|
+
|
|
10
|
+
const ZPopover = class {
|
|
11
|
+
/**
|
|
12
|
+
* Constructor.
|
|
13
|
+
*/
|
|
14
|
+
constructor(hostRef) {
|
|
15
|
+
registerInstance(this, hostRef);
|
|
16
|
+
/** [optional] Popover position */
|
|
17
|
+
this.position = PopoverPosition["after-up"];
|
|
18
|
+
/** [optional] Background color token for popover */
|
|
19
|
+
this.backgroundColor = "color-white";
|
|
20
|
+
/** [optional] Border radius token for popover */
|
|
21
|
+
this.borderRadius = PopoverBorderRadius.small;
|
|
22
|
+
/** [optional] Box shadow token for popover */
|
|
23
|
+
this.boxShadow = PopoverShadow["shadow-1"];
|
|
24
|
+
/** [optional] Show or hide arrow */
|
|
25
|
+
this.showArrow = false;
|
|
26
|
+
/** [optional] Sets padding for Popover container */
|
|
27
|
+
this.padding = "8px";
|
|
28
|
+
this.isVisible = false;
|
|
29
|
+
this.popoverPosition = this.position;
|
|
30
|
+
this.handleKeyDown = this.handleKeyDown.bind(this);
|
|
31
|
+
}
|
|
32
|
+
openPopover() {
|
|
33
|
+
const width = document.body.clientWidth;
|
|
34
|
+
const height = window.innerHeight;
|
|
35
|
+
const rect = this.popoverElem.getBoundingClientRect();
|
|
36
|
+
const l = rect.left;
|
|
37
|
+
const r = rect.right;
|
|
38
|
+
const t = rect.top;
|
|
39
|
+
const b = rect.bottom;
|
|
40
|
+
let firstSide = this.position.split("-")[0];
|
|
41
|
+
let secondSide = this.position.split("-")[1];
|
|
42
|
+
// If top is outside viewport
|
|
43
|
+
if (t < 0) {
|
|
44
|
+
if (this.position.startsWith("above")) {
|
|
45
|
+
firstSide = "below";
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
secondSide = "down";
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
// If bottom is outside viewport
|
|
52
|
+
if (b > height) {
|
|
53
|
+
if (this.position.startsWith("below")) {
|
|
54
|
+
firstSide = "above";
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
secondSide = "up";
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
// If right is outside viewport
|
|
61
|
+
if (r > width) {
|
|
62
|
+
if (this.position.startsWith("above") ||
|
|
63
|
+
this.position.startsWith("below")) {
|
|
64
|
+
secondSide = "left";
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
firstSide = "before";
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
// If left is outside viewport
|
|
71
|
+
if (l < 0) {
|
|
72
|
+
if (this.position.startsWith("above") ||
|
|
73
|
+
this.position.startsWith("below")) {
|
|
74
|
+
secondSide = "right";
|
|
75
|
+
}
|
|
76
|
+
else {
|
|
77
|
+
firstSide = "after";
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
this.popoverPosition = PopoverPosition[`${firstSide}-${secondSide}`];
|
|
81
|
+
this.isVisible = true;
|
|
82
|
+
}
|
|
83
|
+
closePopover() {
|
|
84
|
+
this.popoverPosition = this.position;
|
|
85
|
+
this.isVisible = false;
|
|
86
|
+
}
|
|
87
|
+
closePopoverWithKeyboard(e) {
|
|
88
|
+
if (e.key === KeyboardKeys.ESC) {
|
|
89
|
+
this.closePopover();
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
handleClick(event) {
|
|
93
|
+
this.isVisible ? this.closePopover() : this.openPopover();
|
|
94
|
+
event.stopPropagation();
|
|
95
|
+
}
|
|
96
|
+
handleKeyDown(event) {
|
|
97
|
+
if (event.code === KeyboardKeys.ENTER) {
|
|
98
|
+
this.isVisible ? this.closePopover() : this.openPopover();
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
handleOutsideClick(e) {
|
|
102
|
+
const tree = getElementTree(e.target);
|
|
103
|
+
const parent = tree.find((elem) => elem.nodeName.toLowerCase() === "z-popover");
|
|
104
|
+
if (!parent) {
|
|
105
|
+
this.closePopover();
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
render() {
|
|
109
|
+
return (h(Host, { onKeyDown: this.handleKeyDown }, h("div", { tabindex: "0", onClick: (event) => this.handleClick(event), onKeyDown: (event) => {
|
|
110
|
+
if (event.key === KeyboardKeys.ENTER) {
|
|
111
|
+
this.handleClick(event);
|
|
112
|
+
}
|
|
113
|
+
} }, h("slot", { name: "trigger" })), h("div", { ref: (e) => (this.popoverElem = e), class: classnames("popover-content-container", this.popoverPosition, `border-radius-${this.borderRadius}`, this.boxShadow, { "show-arrow": this.showArrow }, { visible: this.isVisible }), style: {
|
|
114
|
+
backgroundColor: `var(--${this.backgroundColor})`,
|
|
115
|
+
padding: this.padding,
|
|
116
|
+
} }, h("slot", { name: "popover" }))));
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
ZPopover.style = stylesCss;
|
|
120
|
+
|
|
121
|
+
export { ZPopover as z_popover };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h, g as getElement } from './index-fa9e549c.js';
|
|
2
|
-
import { D as DeviceEnum } from './index-
|
|
3
|
-
import { a as convertJson,
|
|
2
|
+
import { D as DeviceEnum } from './index-6b86a3f1.js';
|
|
3
|
+
import { a as convertJson, g as getDevice, h as handleKeyboardSubmit } from './utils-351595e0.js';
|
|
4
4
|
import './breakpoints-c386984e.js';
|
|
5
5
|
|
|
6
6
|
const stylesCss = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg);display:block;width:inherit}:host>div{display:flex;flex-direction:column;width:inherit}main{position:relative;overflow:hidden;width:100%}main z-icon.scroll{position:absolute;top:50%;width:auto;cursor:pointer;transition:0.6s ease;margin:0 var(--space-unit);fill:var(--color-primary01);z-index:10}main .scroll.disabled{opacity:50%;pointer-events:none}main .scroll.right{right:0}#slides{display:flex;flex-wrap:wrap;transition:all 300ms;line-height:0px;overflow-y:hidden}footer{height:56px;width:100%;align-items:center;display:grid;grid-template-columns:2;grid-template-rows:2;grid-template-areas:\"center center\" \"left right\";border-top:var(--border-base) solid var(--color-surface02)}footer>div{align-items:center;width:100%}footer .footerCenter{grid-area:center}footer .footerLeft{grid-area:left}footer .footerRight{grid-area:right}footer .bulletContainer{display:flex;margin:0 auto;justify-content:center;align-items:center;min-height:60px}footer .bulletContainer .bullet{width:8px;height:8px;border-radius:50%;background-color:var(--bg-neutral-150);margin:var(--space-unit) 2px;pointer-events:none}footer .bulletContainer .bullet.selected{background-color:var(--bg-neutral-400)}@media only screen and (min-width: 768px){footer{grid-template-columns:1fr 2fr 1fr;grid-template-rows:1;grid-template-areas:\"left center right\";height:76px;border-top:var(--border-base) solid var(--color-surface02)}footer .bulletContainer .bullet{width:10px;height:10px;margin:var(--space-unit) 3px}}@media only screen and (min-width: 1025px){main z-icon.scroll{margin:0 10px}footer .bulletContainer .bullet{width:16px;height:16px;margin:var(--space-unit) calc(var(--space-unit) * 0.5);pointer-events:auto;cursor:pointer}}";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host } from './index-fa9e549c.js';
|
|
2
|
-
import {
|
|
2
|
+
import { S as StatusTagStatus } from './index-6b86a3f1.js';
|
|
3
3
|
import { c as classnames } from './index-aa3a4feb.js';
|
|
4
4
|
import './_commonjsHelpers-8b28c6fa.js';
|
|
5
5
|
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { r as registerInstance, h, g as getElement } from './index-fa9e549c.js';
|
|
2
|
+
|
|
3
|
+
const stylesCss = ".sc-z-table-body-h{display:table-row-group;font-family:var(--dashboard-font);font-weight:var(--font-rg)}.sc-z-table-body-h>z-table-row[expanded].sc-z-table-body+z-table-expanded-row.sc-z-table-body{display:table-row}";
|
|
4
|
+
|
|
5
|
+
const ZTableBody = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
}
|
|
9
|
+
componentWillRender() {
|
|
10
|
+
this.host.setAttribute("role", "rowgroup");
|
|
11
|
+
Array.from(this.host.children).forEach((child, index) => child.setAttribute("aria-rowindex", `${index}`));
|
|
12
|
+
}
|
|
13
|
+
render() {
|
|
14
|
+
return h("slot", null);
|
|
15
|
+
}
|
|
16
|
+
get host() { return getElement(this); }
|
|
17
|
+
};
|
|
18
|
+
ZTableBody.style = stylesCss;
|
|
19
|
+
|
|
20
|
+
export { ZTableBody as z_table_body };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-fa9e549c.js';
|
|
2
|
+
import { r as Size, B as ButtonVariantEnum, c as ButtonSizeEnum } from './index-6b86a3f1.js';
|
|
3
|
+
import { c as classnames } from './index-aa3a4feb.js';
|
|
4
|
+
import './_commonjsHelpers-8b28c6fa.js';
|
|
5
|
+
|
|
6
|
+
const stylesCss = ":host{display:table-cell;background-color:var(--color-white);border-bottom:var(--border-size-small) solid var(--bg-grey-200);font-family:var(--dashboard-font);font-weight:var(--font-rg)}:host>.button-container{display:none}:host:hover>.button-container{display:initial}.button-container{position:absolute;right:8px;top:8px;z-index:5}.button-content{position:relative}.contextual-menu-container{display:none;position:absolute;top:calc(100% - var(--space-unit));right:0}.button-container.visible,.contextual-menu-container.visible{display:initial}:host([padding=\"x-small\"]){padding:calc(var(--space-unit) * 0.5)}:host([padding=\"small\"]){padding:calc(var(--space-unit))}:host([padding=\"medium\"]){padding:calc(var(--space-unit) * 2)}:host([padding=\"large\"]){padding:calc(var(--space-unit) * 2.5)}:host([padding=\"special\"]){padding:0}";
|
|
7
|
+
|
|
8
|
+
const ZTableCell = class {
|
|
9
|
+
constructor(hostRef) {
|
|
10
|
+
registerInstance(this, hostRef);
|
|
11
|
+
/** Set padding size of cell, if special 0px padding will be set */
|
|
12
|
+
this.padding = Size.medium;
|
|
13
|
+
this.isMenuOpened = false;
|
|
14
|
+
}
|
|
15
|
+
handleMenu() {
|
|
16
|
+
this.isMenuOpened = !this.isMenuOpened;
|
|
17
|
+
}
|
|
18
|
+
componentWillRender() {
|
|
19
|
+
this.host.setAttribute("role", "cell");
|
|
20
|
+
}
|
|
21
|
+
render() {
|
|
22
|
+
return (h(Host, null, this.showButton && (h("div", { class: classnames("button-container", {
|
|
23
|
+
visible: this.isMenuOpened,
|
|
24
|
+
}) }, h("div", { class: "button-content" }, h("z-button", { icon: "contextual-menu", variant: ButtonVariantEnum.tertiary, size: ButtonSizeEnum["x-small"], onClick: () => this.handleMenu(), square: true }), h("div", { class: classnames("contextual-menu-container", {
|
|
25
|
+
visible: this.isMenuOpened,
|
|
26
|
+
}) }, h("slot", { name: "contextual-menu" }))))), h("slot", null)));
|
|
27
|
+
}
|
|
28
|
+
get host() { return getElement(this); }
|
|
29
|
+
};
|
|
30
|
+
ZTableCell.style = stylesCss;
|
|
31
|
+
|
|
32
|
+
export { ZTableCell as z_table_cell };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-fa9e549c.js';
|
|
2
|
+
import { c as classnames } from './index-aa3a4feb.js';
|
|
3
|
+
import './_commonjsHelpers-8b28c6fa.js';
|
|
4
|
+
|
|
5
|
+
const stylesCss = ".sc-z-table-empty-box-h{display:block;padding:calc(var(--space-unit)) calc(var(--space-unit) * 3)\n calc(var(--space-unit) * 3) calc(var(--space-unit) * 3);background-color:var(--bg-white)}.sc-z-table-empty-box-s>*{margin-top:var(--space-unit)}.cta.sc-z-table-empty-box{display:flex;flex-direction:row;margin-top:calc(var(--space-unit) / 2)}.cta.has2Cta.sc-z-table-empty-box{flex-direction:column}@media only screen and (min-width: 768px){.sc-z-table-empty-box-h{padding:calc(var(--space-unit) * 3) calc(var(--space-unit) * 7)\n calc(var(--space-unit) * 3) calc(var(--space-unit) * 7)}.sc-z-table-empty-box-s>*{margin-right:calc(var(--space-unit) * 2)}.cta.sc-z-table-empty-box{margin-top:var(--space-unit)}.cta.has2Cta.sc-z-table-empty-box{flex-direction:row}}";
|
|
6
|
+
|
|
7
|
+
const ZTableEmptyBox = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
registerInstance(this, hostRef);
|
|
10
|
+
/** Sets main title message*/
|
|
11
|
+
this.message = "Siamo spiacenti, al momento non sono presenti dati da visualizzare.";
|
|
12
|
+
/** Sets message */
|
|
13
|
+
this.subtitle = "";
|
|
14
|
+
}
|
|
15
|
+
componentWillLoad() {
|
|
16
|
+
this.hasCta1Slot = !!this.hostElement.querySelector('[slot="cta1"]');
|
|
17
|
+
this.hasCta2Slot = !!this.hostElement.querySelector('[slot="cta2"]');
|
|
18
|
+
}
|
|
19
|
+
render() {
|
|
20
|
+
return (h(Host, null, h("z-body", { level: 3, variant: "semibold" }, this.message), h("br", null), !!this.subtitle && (h("z-body", { level: 4, variant: "regular" }, this.subtitle)), (!!this.hasCta1Slot || !!this.hasCta2Slot) && (h("div", { class: classnames("cta", {
|
|
21
|
+
has2Cta: !!this.hasCta1Slot && !!this.hasCta2Slot
|
|
22
|
+
}) }, h("slot", { name: "cta1" }), h("slot", { name: "cta2" })))));
|
|
23
|
+
}
|
|
24
|
+
get hostElement() { return getElement(this); }
|
|
25
|
+
};
|
|
26
|
+
ZTableEmptyBox.style = stylesCss;
|
|
27
|
+
|
|
28
|
+
export { ZTableEmptyBox as z_table_empty_box };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { r as registerInstance, h, g as getElement } from './index-fa9e549c.js';
|
|
2
|
+
|
|
3
|
+
const stylesCss = ".sc-z-table-head-h{display:table-header-group;font-family:var(--dashboard-font);font-weight:var(--font-rg)}";
|
|
4
|
+
|
|
5
|
+
const ZTableHead = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
}
|
|
9
|
+
componentWillRender() {
|
|
10
|
+
this.host.setAttribute("role", "rowgroup");
|
|
11
|
+
}
|
|
12
|
+
render() {
|
|
13
|
+
return h("slot", null);
|
|
14
|
+
}
|
|
15
|
+
get host() { return getElement(this); }
|
|
16
|
+
};
|
|
17
|
+
ZTableHead.style = stylesCss;
|
|
18
|
+
|
|
19
|
+
export { ZTableHead as z_table_head };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-fa9e549c.js';
|
|
2
|
+
|
|
3
|
+
const stylesCss = "z-table-header-row{display:table-row}z-table-header-row[expandable]>z-table-header:first-child{width:40px;user-select:none;box-sizing:border-box}z-table-header-row[expandable]>z-table-header:nth-child(2){padding-left:8px}";
|
|
4
|
+
|
|
5
|
+
const ZTableHeaderRow = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
}
|
|
9
|
+
_renderExpandHeader() {
|
|
10
|
+
return h("z-table-header", null);
|
|
11
|
+
}
|
|
12
|
+
render() {
|
|
13
|
+
return (h(Host, { role: "row" }, this.expandable && this._renderExpandHeader(), h("slot", null)));
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
ZTableHeaderRow.style = stylesCss;
|
|
17
|
+
|
|
18
|
+
export { ZTableHeaderRow as z_table_header_row };
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-fa9e549c.js';
|
|
2
|
+
import { c as classnames } from './index-aa3a4feb.js';
|
|
3
|
+
import { r as Size, s as SortDirectionEnum, P as PopoverPosition, B as ButtonVariantEnum, c as ButtonSizeEnum } from './index-6b86a3f1.js';
|
|
4
|
+
import { b as getElementTree } from './utils-351595e0.js';
|
|
5
|
+
import './_commonjsHelpers-8b28c6fa.js';
|
|
6
|
+
import './breakpoints-c386984e.js';
|
|
7
|
+
|
|
8
|
+
const stylesCss = ":host{display:table-cell;background-color:var(--gray50);border-bottom:var(--border-size-medium) solid var(--gray200);font-family:var(--dashboard-font);font-weight:var(--font-sb);text-align:start;position:relative}.container{display:flex;align-items:flex-end}:host(.sortable){cursor:pointer}:host([padding=\"x-small\"]){padding:calc(var(--space-unit) * 0.5)}:host([padding=\"small\"]){padding:calc(var(--space-unit))}:host([padding=\"medium\"]){padding:calc(var(--space-unit) * 2)}:host([padding=\"large\"]){padding:calc(var(--space-unit) * 2.5)}:host([padding=\"special\"]){padding:0}.arrow{opacity:1;padding-left:var(--space-unit)}.popover-container{position:absolute;top:var(--space-unit);right:var(--space-unit);display:none}.popover-container.visible{display:block}:host(:hover) .popover-container{display:block}";
|
|
9
|
+
|
|
10
|
+
const ZTableHeader = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
registerInstance(this, hostRef);
|
|
13
|
+
this.sort = createEvent(this, "sort", 7);
|
|
14
|
+
/** Set padding size of cell, if special 0px padding will be set */
|
|
15
|
+
this.padding = Size.medium;
|
|
16
|
+
/** [Optional] Default sort order */
|
|
17
|
+
this.defaultSortDirection = SortDirectionEnum.asc;
|
|
18
|
+
this.sortDirection = SortDirectionEnum.none;
|
|
19
|
+
this.isMenuOpened = false;
|
|
20
|
+
this.emitOnSort = this.emitOnSort.bind(this);
|
|
21
|
+
}
|
|
22
|
+
emitOnSort() {
|
|
23
|
+
this.sort.emit({
|
|
24
|
+
columnId: this.columnId,
|
|
25
|
+
sortDirection: this.sortDirection,
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
handleSort() {
|
|
29
|
+
if (!this.sortable) {
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
this.sortDirection = (() => {
|
|
33
|
+
switch (this.sortDirection) {
|
|
34
|
+
case SortDirectionEnum.asc:
|
|
35
|
+
return SortDirectionEnum.desc;
|
|
36
|
+
case SortDirectionEnum.desc:
|
|
37
|
+
return SortDirectionEnum.asc;
|
|
38
|
+
case SortDirectionEnum.none:
|
|
39
|
+
return this.defaultSortDirection;
|
|
40
|
+
default:
|
|
41
|
+
return SortDirectionEnum.none;
|
|
42
|
+
}
|
|
43
|
+
})();
|
|
44
|
+
this.emitOnSort();
|
|
45
|
+
}
|
|
46
|
+
handleMenuClick() {
|
|
47
|
+
this.isMenuOpened = !this.isMenuOpened;
|
|
48
|
+
}
|
|
49
|
+
handleOutsideClick(e) {
|
|
50
|
+
const tree = getElementTree(e.target);
|
|
51
|
+
const parent = tree.find((elem) => elem.nodeName.toLowerCase() === "z-popover");
|
|
52
|
+
if (!parent) {
|
|
53
|
+
this.isMenuOpened = false;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
handleClickHeaders(e) {
|
|
57
|
+
const { target } = e;
|
|
58
|
+
const parent = getElementTree(target).find((elem) => elem.nodeName.toLowerCase() === "z-table-header");
|
|
59
|
+
if (!this.sortable || !parent) {
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
const parentColumnId = parent.attributes.getNamedItem("column-id").value;
|
|
63
|
+
const isSortable = target.parentNode.sortable || target.sortable;
|
|
64
|
+
if (parentColumnId !== this.columnId && isSortable) {
|
|
65
|
+
this.sortDirection = SortDirectionEnum.none;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
componentWillRender() {
|
|
69
|
+
this.host.setAttribute("role", "columnheader");
|
|
70
|
+
}
|
|
71
|
+
render() {
|
|
72
|
+
return (h(Host, { class: classnames({
|
|
73
|
+
sortable: this.sortable,
|
|
74
|
+
}), onClick: () => this.handleSort() }, h("div", { class: classnames("container") }, h("slot", null), this.sortable && this.sortDirection !== SortDirectionEnum.none && (h("z-icon", { name: this.sortDirection === SortDirectionEnum.asc
|
|
75
|
+
? "arrow-up"
|
|
76
|
+
: "arrow-down", class: "arrow" }))), this.showButton && (h("div", { class: classnames("popover-container", {
|
|
77
|
+
visible: this.isMenuOpened,
|
|
78
|
+
}) }, h("z-popover", { position: PopoverPosition["below-center"], "background-color": "gray200" }, h("z-button", { icon: "contextual-menu", variant: ButtonVariantEnum["tertiary"], size: ButtonSizeEnum["x-small"], square: true, slot: "trigger", onClick: () => this.handleMenuClick() }), h("div", { slot: "popover" }, h("slot", { name: "contextual-menu" })))))));
|
|
79
|
+
}
|
|
80
|
+
get host() { return getElement(this); }
|
|
81
|
+
};
|
|
82
|
+
ZTableHeader.style = stylesCss;
|
|
83
|
+
|
|
84
|
+
export { ZTableHeader as z_table_header };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-fa9e549c.js';
|
|
2
|
+
import { j as ZTableRowExpandedType } from './index-6b86a3f1.js';
|
|
3
|
+
|
|
4
|
+
const stylesCss = "z-table-row{display:table-row;font-family:var(--font-family-sans)}z-table-row[expanded-type=\"expandable\"]:hover{cursor:pointer}z-table-row[expanded-type=\"expandable\"]>z-table-cell:first-child,z-table-row[expanded-type=\"padding\"]>z-table-cell:first-child{--z-icon-width:16px;--z-icon-height:16px;width:24px;padding-left:16px;padding-right:0px;box-sizing:border-box;text-align:center;fill:var(--gray800);user-select:none}.z-icon-placeholder{width:24px;padding-right:0px}z-table-row[expanded-type=\"expandable\"]>z-table-cell:nth-child(2),z-table-row[expanded-type=\"padding\"]>z-table-cell:nth-child(2){padding-left:8px}z-table-row[expanded-type]:hover>z-table-cell:first-child{fill:var(--myz-blue-dark)}z-table-row[expanded]>z-table-cell{background-color:var(--gray50)}z-table-row[expanded]+z-table-expanded-row{display:table-row}z-table-row[expanded]>z-table-cell{border-bottom:none}";
|
|
5
|
+
|
|
6
|
+
const ZTableRow = class {
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
registerInstance(this, hostRef);
|
|
9
|
+
this.expand = createEvent(this, "expand", 7);
|
|
10
|
+
this.expandedType = ZTableRowExpandedType.none;
|
|
11
|
+
this.expanded = false;
|
|
12
|
+
}
|
|
13
|
+
emitOnExpand() {
|
|
14
|
+
this.expand.emit({ expanded: this.expanded });
|
|
15
|
+
}
|
|
16
|
+
handleExpand() {
|
|
17
|
+
this.expanded = !this.expanded;
|
|
18
|
+
this.emitOnExpand();
|
|
19
|
+
}
|
|
20
|
+
renderExpandButton() {
|
|
21
|
+
if (this.expandedType == ZTableRowExpandedType.expandable) {
|
|
22
|
+
return (h("z-table-cell", { style: { borderRight: "none" } }, h("z-icon", { name: this.expanded ? "minus-circled" : "plus-circled" })));
|
|
23
|
+
}
|
|
24
|
+
return (h("z-table-cell", { style: { borderRight: "none" } }, h("div", { class: "z-icon-placeholder" })));
|
|
25
|
+
}
|
|
26
|
+
render() {
|
|
27
|
+
return (h(Host, { role: "row", expanded: this.expanded, onClick: (event) => {
|
|
28
|
+
const contextualMenuClick = event.target.nodeName === 'Z-CONTEXTUAL-MENU';
|
|
29
|
+
const isExpandable = this.expandedType === ZTableRowExpandedType.expandable;
|
|
30
|
+
if (isExpandable && !contextualMenuClick) {
|
|
31
|
+
this.handleExpand();
|
|
32
|
+
}
|
|
33
|
+
} }, this.expandedType !== ZTableRowExpandedType.none &&
|
|
34
|
+
this.renderExpandButton(), h("slot", null)));
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
ZTableRow.style = stylesCss;
|
|
38
|
+
|
|
39
|
+
export { ZTableRow as z_table_row };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { r as registerInstance, h } from './index-fa9e549c.js';
|
|
2
|
+
|
|
3
|
+
const stylesCss = ".sc-z-table-sticky-footer-h{display:block;position:sticky;left:0;padding:var(--basex2);background-color:var(--bg-white);border-style:solid;border-color:var(--gray200);border-width:var(--border-size-small) 0 var(--border-base);font-weight:var(--font-rg)}";
|
|
4
|
+
|
|
5
|
+
const ZTableStickyFooter = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
}
|
|
9
|
+
render() {
|
|
10
|
+
return (h("slot", null));
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
ZTableStickyFooter.style = stylesCss;
|
|
14
|
+
|
|
15
|
+
export { ZTableStickyFooter as z_table_sticky_footer };
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-fa9e549c.js';
|
|
2
|
+
import { B as ButtonVariantEnum, c as ButtonSizeEnum } from './index-6b86a3f1.js';
|
|
3
|
+
import { m as mobileBreakpoint } from './breakpoints-c386984e.js';
|
|
4
|
+
|
|
5
|
+
const stylesCss = "z-table{overflow-x:auto;display:block;width:100%;font-family:var(--dashboard-font);font-weight:var(--font-rg);background-color:var(--color-white)}z-table>div.table{display:table;width:100%;border-collapse:separate}z-table>div.table-bordered>z-table-body>z-table-row>z-table-cell:not(:last-child),z-table>div.table-bordered>z-table-head>z-table-header-row>z-table-header:not(:last-child){border-right:var(--border-size-small) solid var(--bg-grey-200)}z-table>div>z-table-body>z-table-row[expandable]>z-table-cell:first-child,z-table>div>z-table-head>z-table-header-row[expandable]>z-table-header:first-child{border-right:none}z-table>div>z-table-body>z-table-row[expanded]>z-table-cell{background-color:var(--gray50)}z-table>div>z-table-body>z-table-row[expanded]+z-table-expanded-row{border-bottom:1px solid var(--gray200)}z-table>div.table-column-sticky>z-table-body>z-table-row>z-table-cell:first-child,z-table>div.table-column-sticky>z-table-head>z-table-header-row>z-table-header:first-child{position:sticky;left:0;box-shadow:1px 0 4px -1px rgba(66, 69, 72, 0.4);z-index:1}z-table>div.table-header-sticky>z-table-head>z-table-header-row>z-table-header{position:sticky;top:0;box-shadow:0 2px 3px -3px rgba(66, 69, 72, 0.4)}z-table>div.table-header-sticky>z-table-head>z-table-header-row>z-table-header{z-index:2}z-table>div.table-header-sticky>z-table-head>z-table-header-row>z-table-header:first-child,z-table>div.table-column-sticky>z-table-head>z-table-header-row>z-table-header:first-child{z-index:5}z-table-body{width:auto;background-color:var(--color-white)}z-table-empty-box{display:flex;flex-direction:column;flex-grow:1;border-bottom:var(--border-size-small) solid var(--bg-grey-200)}z-table-empty-box.bordered{border-left:var(--border-size-small) solid var(--bg-grey-200)}.error-message{margin-top:calc(var(--space-unit) * 2)}.table-content{display:flex;flex-direction:row;width:100%}.error-content{font-family:var(--dashboard-font);padding:calc(var(--space-unit) * 3);display:flex}.error-content>img{width:244px;height:188px;margin-right:calc(var(--space-unit) * 3)}@media only screen and (max-width: 768px){z-table>div.table-empty{display:none}.error-content{display:flex;flex-direction:column}.error-content>img{width:auto;height:auto}.text{padding:calc(var(--space-unit) * 3) 0}}";
|
|
6
|
+
|
|
7
|
+
const ZTable = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
registerInstance(this, hostRef);
|
|
10
|
+
this.callToAction = createEvent(this, "callToAction", 7);
|
|
11
|
+
this.callToActionTwo = createEvent(this, "callToActionTwo", 7);
|
|
12
|
+
/** Error message */
|
|
13
|
+
this.errorMessage = "Siamo spiacenti, non siamo riusciti a caricare il contenuto richiesto";
|
|
14
|
+
/** Sets table with border */
|
|
15
|
+
this.bordered = false;
|
|
16
|
+
/** Sets first column sticky */
|
|
17
|
+
this.columnSticky = false;
|
|
18
|
+
/** Sets empty table */
|
|
19
|
+
this.empty = false;
|
|
20
|
+
/** Set error status */
|
|
21
|
+
this.error = false;
|
|
22
|
+
/** Sets header sticky */
|
|
23
|
+
this.headerSticky = false;
|
|
24
|
+
/** Set message */
|
|
25
|
+
this.message = "Siamo spiacenti, al momento non sono presenti dati da visualizzare";
|
|
26
|
+
/** Set subtitle */
|
|
27
|
+
this.subtitle = "";
|
|
28
|
+
}
|
|
29
|
+
handleResize() {
|
|
30
|
+
this.isMobile = window.innerWidth <= mobileBreakpoint;
|
|
31
|
+
}
|
|
32
|
+
handleOrientationChange() {
|
|
33
|
+
this.isMobile = screen.width <= mobileBreakpoint;
|
|
34
|
+
}
|
|
35
|
+
componentWillLoad() {
|
|
36
|
+
var _a;
|
|
37
|
+
this.isMobile = window.innerWidth <= mobileBreakpoint;
|
|
38
|
+
const tableBody = this.host.querySelector('[slot="table-body"]');
|
|
39
|
+
this.hasTableBody = !!((_a = tableBody === null || tableBody === void 0 ? void 0 : tableBody.children) === null || _a === void 0 ? void 0 : _a.length);
|
|
40
|
+
if (!!tableBody && !this.hasTableBody) {
|
|
41
|
+
tableBody.remove();
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
componentWillRender() {
|
|
45
|
+
this.host.setAttribute("role", "table");
|
|
46
|
+
}
|
|
47
|
+
renderError(tableClass) {
|
|
48
|
+
const minHeight = this.lines ? `calc(40px * ${this.lines})` : "auto";
|
|
49
|
+
return (h(Host, null, h("div", { class: tableClass }, h("slot", { name: "table-header" })), h("z-table-error", null, h("div", { class: "error-content", style: { minHeight } }, h("slot", { name: "error-image" }), h("div", { class: "text" }, h("z-body", { class: "error-message", level: 3, variant: "semibold" }, this.errorMessage), h("slot", { name: "error-action" }))))));
|
|
50
|
+
}
|
|
51
|
+
renderEmpty(tableClass) {
|
|
52
|
+
const buttonSize = this.isMobile
|
|
53
|
+
? ButtonSizeEnum.small
|
|
54
|
+
: ButtonSizeEnum.big;
|
|
55
|
+
const tableContentClass = `${!!this.hasTableBody ? "table-content" : ""}`;
|
|
56
|
+
if (this.hasTableBody) {
|
|
57
|
+
return (h(Host, null, h("div", { class: tableClass }, h("slot", { name: "table-header" }), h("div", { class: tableContentClass }, h("slot", { name: "table-body" }), h("z-table-empty-box", { class: this.bordered && "bordered", message: this.message, subtitle: this.subtitle }, !!this.callToActionLabel && (h("z-button", { slot: "cta1", variant: ButtonVariantEnum.tertiary, onClick: () => this.callToAction.emit(), size: buttonSize }, this.callToActionLabel)), !!this.callToActionTwoLabel && (h("z-button", { slot: "cta2", variant: ButtonVariantEnum.tertiary, onClick: () => this.callToActionTwo.emit(), size: buttonSize }, this.callToActionTwoLabel)))))));
|
|
58
|
+
}
|
|
59
|
+
return (h(Host, null, h("div", { class: tableClass }, h("slot", { name: "table-header" })), h("z-table-empty-box", { class: this.bordered && "bordered", message: this.message, subtitle: this.subtitle }, !!this.callToActionLabel && (h("z-button", { slot: "cta1", variant: ButtonVariantEnum.tertiary, onClick: () => this.callToAction.emit(), size: buttonSize }, this.callToActionLabel)), !!this.callToActionTwoLabel && (h("z-button", { slot: "cta2", variant: ButtonVariantEnum.tertiary, onClick: () => this.callToActionTwo.emit(), size: buttonSize }, this.callToActionTwoLabel)))));
|
|
60
|
+
}
|
|
61
|
+
render() {
|
|
62
|
+
const tableClass = `table ${this.empty ? "table-empty" : ""} ${this.bordered ? "table-bordered" : ""}
|
|
63
|
+
${this.columnSticky ? "table-column-sticky" : ""}
|
|
64
|
+
${this.headerSticky ? "table-header-sticky" : ""}`;
|
|
65
|
+
if (this.error) {
|
|
66
|
+
return this.renderError(tableClass);
|
|
67
|
+
}
|
|
68
|
+
if (this.empty) {
|
|
69
|
+
return this.renderEmpty(tableClass);
|
|
70
|
+
}
|
|
71
|
+
return (h(Host, null, h("div", { class: tableClass }, h("slot", null)), h("slot", { name: "sticky-footer" })));
|
|
72
|
+
}
|
|
73
|
+
static get assetsDirs() { return ["assets"]; }
|
|
74
|
+
get host() { return getElement(this); }
|
|
75
|
+
};
|
|
76
|
+
ZTable.style = stylesCss;
|
|
77
|
+
|
|
78
|
+
export { ZTable as z_table };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-fa9e549c.js';
|
|
2
|
-
import {
|
|
2
|
+
import { m as ToastNotificationPositionsEnum } from './index-6b86a3f1.js';
|
|
3
3
|
|
|
4
4
|
const stylesCss = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg);position:fixed;display:flex;flex-direction:column;flex-wrap:nowrap;z-index:10000;margin-bottom:calc(var(--space-unit) * 2);margin-top:calc(var(--space-unit) * 2)}::slotted(z-toast-notification){width:100vw}::slotted(:not(:last-child)){margin-bottom:calc(var(--space-unit) * 1)}:host(.bottom-centre),:host(.bottom-right),:host(.bottom-left){justify-content:flex-end;align-items:flex-end;bottom:0}:host(.top-left),:host(.top-right),:host(.top-centre){justify-content:flex-start;align-items:flex-start;top:0}@media only screen and (min-width: 768px){:host{margin:calc(var(--space-unit) * 3)}:host(.top-centre){justify-content:flex-start;align-items:center;top:0;left:50%;transform:translateX(-50%)}:host(.top-left){justify-content:flex-start;align-items:flex-start;top:0;left:0}:host(.top-right){justify-content:flex-start;align-items:flex-end;top:0;right:0}:host(.bottom-centre){justify-content:flex-end;align-items:center;bottom:0;left:50%;transform:translateX(-50%)}:host(.bottom-right){justify-content:flex-end;align-items:flex-end;bottom:0;right:0}:host(.bottom-left){justify-content:flex-end;align-items:flex-start;bottom:0;left:0}::slotted(z-toast-notification){width:50vw}}@media only screen and (min-width: 1366px){:host{margin:calc(var(--space-unit) * 4)}::slotted(z-toast-notification){width:33vw}}";
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-fa9e549c.js';
|
|
2
|
-
import {
|
|
2
|
+
import { l as ToastNotificationTransitionsEnum } from './index-6b86a3f1.js';
|
|
3
3
|
import { m as mobileBreakpoint } from './breakpoints-c386984e.js';
|
|
4
4
|
import { h as hammer } from './hammer-501342a9.js';
|
|
5
5
|
import './_commonjsHelpers-8b28c6fa.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-fa9e549c.js';
|
|
2
|
-
import {
|
|
2
|
+
import { g as TooltipPosition } from './index-6b86a3f1.js';
|
|
3
3
|
|
|
4
4
|
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}";
|
|
5
5
|
|