@zanichelli/albe-web-components 2.33.4 → 2.34.0
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 +1229 -0
- package/dist/cjs/_commonjsHelpers-119ffc74.js +17 -0
- package/dist/cjs/{hammer-6e321f0b.js → hammer-54230951.js} +2 -15
- package/dist/cjs/icons-74891aae.js +477 -0
- package/dist/cjs/index-9651dba8.js +60 -0
- package/dist/cjs/{index-11a8a536.js → index-de6c491e.js} +8 -8
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{utils-00e14fba.js → utils-12053886.js} +1 -1
- package/dist/cjs/web-components-library.cjs.js +1 -1
- package/dist/cjs/z-alert.cjs.entry.js +19 -0
- package/dist/cjs/z-app-switcher.cjs.entry.js +29 -0
- package/dist/cjs/z-app-topbar.cjs.entry.js +41 -0
- package/dist/cjs/z-aria-alert.cjs.entry.js +1 -1
- package/dist/cjs/z-avatar.cjs.entry.js +43 -0
- package/dist/cjs/z-body_14.cjs.entry.js +513 -0
- package/dist/cjs/z-button-filter_5.cjs.entry.js +620 -0
- package/dist/cjs/z-button-sort.cjs.entry.js +54 -0
- package/dist/cjs/z-card.cjs.entry.js +58 -0
- package/dist/cjs/z-chip.cjs.entry.js +24 -0
- package/dist/cjs/z-combobox.cjs.entry.js +170 -0
- package/dist/cjs/z-contextual-menu.cjs.entry.js +40 -0
- package/dist/cjs/z-cookiebar.cjs.entry.js +1 -1
- package/dist/cjs/z-divider.cjs.entry.js +26 -0
- package/dist/cjs/z-footer-link_3.cjs.entry.js +49 -0
- package/dist/cjs/z-footer.cjs.entry.js +102 -0
- package/dist/cjs/z-ghost-loading.cjs.entry.js +19 -0
- package/dist/cjs/z-icon-package.cjs.entry.js +23 -0
- package/dist/cjs/z-info-box.cjs.entry.js +25 -0
- package/dist/cjs/z-link.cjs.entry.js +71 -0
- package/dist/cjs/z-list_3.cjs.entry.js +226 -0
- package/dist/cjs/z-logo.cjs.entry.js +28 -0
- package/dist/cjs/z-menu-dropdown_2.cjs.entry.js +89 -0
- package/dist/cjs/z-menu-section.cjs.entry.js +46 -0
- package/dist/cjs/z-menu.cjs.entry.js +110 -0
- package/dist/cjs/z-messages-pocket.cjs.entry.js +1 -1
- package/dist/cjs/z-modal-login.cjs.entry.js +1 -1
- package/dist/cjs/z-modal.cjs.entry.js +36 -0
- package/dist/cjs/z-myz-card-alert.cjs.entry.js +63 -0
- package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-footer.cjs.entry.js +52 -0
- package/dist/cjs/z-myz-card-icon.cjs.entry.js +21 -0
- package/dist/cjs/z-myz-card-info.cjs.entry.js +2 -2
- package/dist/cjs/z-myz-card-list.cjs.entry.js +37 -0
- package/dist/cjs/z-myz-card_4.cjs.entry.js +101 -0
- package/dist/cjs/z-myz-list-item.cjs.entry.js +37 -0
- package/dist/cjs/z-myz-topbar.cjs.entry.js +1 -1
- package/dist/cjs/z-navigation-tabs.cjs.entry.js +1 -1
- package/dist/cjs/z-notification.cjs.entry.js +42 -0
- package/dist/cjs/z-otp.cjs.entry.js +1 -1
- package/dist/cjs/z-pagination-bar.cjs.entry.js +128 -0
- package/dist/cjs/z-pagination-page.cjs.entry.js +25 -0
- package/dist/cjs/z-panel-elem.cjs.entry.js +30 -0
- package/dist/cjs/z-pocket_3.cjs.entry.js +4 -3
- package/dist/cjs/z-registro-table-expanded-row.cjs.entry.js +19 -0
- package/dist/cjs/z-slideshow.cjs.entry.js +2 -2
- package/dist/cjs/z-status-tag.cjs.entry.js +29 -0
- package/dist/cjs/z-stepper-item.cjs.entry.js +22 -0
- package/dist/cjs/z-stepper.cjs.entry.js +19 -0
- package/dist/cjs/z-toast-notification-list.cjs.entry.js +1 -1
- package/dist/cjs/z-toast-notification.cjs.entry.js +3 -2
- package/dist/cjs/z-toggle-button.cjs.entry.js +36 -0
- package/dist/cjs/z-tooltip.cjs.entry.js +274 -0
- package/dist/cjs/z-user-dropdown.cjs.entry.js +95 -0
- package/dist/collection/beans/index.js +8 -8
- package/dist/collection/snowflakes/registro-table/z-registro-table-cell/index.js +26 -1
- package/dist/collection/snowflakes/registro-table/z-registro-table-cell/styles.css +19 -1
- package/dist/collection/snowflakes/registro-table/z-registro-table-header/index.js +22 -18
- package/dist/collection/snowflakes/registro-table/z-registro-table-header/styles.css +9 -13
- package/dist/esm/_commonjsHelpers-8b28c6fa.js +15 -0
- package/dist/esm/{hammer-c807d0b5.js → hammer-501342a9.js} +2 -14
- package/dist/esm/icons-9a191d79.js +475 -0
- package/dist/esm/{index-4952bfe3.js → index-09b57d95.js} +9 -9
- package/dist/esm/index-aa3a4feb.js +58 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{utils-889efe17.js → utils-f0067254.js} +2 -2
- package/dist/esm/web-components-library.js +1 -1
- package/dist/esm/z-alert.entry.js +15 -0
- package/dist/esm/z-app-switcher.entry.js +25 -0
- package/dist/esm/z-app-topbar.entry.js +37 -0
- package/dist/esm/z-aria-alert.entry.js +1 -1
- package/dist/esm/z-avatar.entry.js +39 -0
- package/dist/esm/z-body_14.entry.js +496 -0
- package/dist/esm/z-button-filter_5.entry.js +612 -0
- package/dist/esm/z-button-sort.entry.js +50 -0
- package/dist/esm/z-card.entry.js +54 -0
- package/dist/esm/z-chip.entry.js +20 -0
- package/dist/esm/z-combobox.entry.js +166 -0
- package/dist/esm/z-contextual-menu.entry.js +36 -0
- package/dist/esm/z-cookiebar.entry.js +1 -1
- package/dist/esm/z-divider.entry.js +22 -0
- package/dist/esm/z-footer-link_3.entry.js +43 -0
- package/dist/esm/z-footer.entry.js +98 -0
- package/dist/esm/z-ghost-loading.entry.js +15 -0
- package/dist/esm/z-icon-package.entry.js +19 -0
- package/dist/esm/z-info-box.entry.js +21 -0
- package/dist/esm/z-link.entry.js +67 -0
- package/dist/esm/z-list_3.entry.js +220 -0
- package/dist/esm/z-logo.entry.js +24 -0
- package/dist/esm/z-menu-dropdown_2.entry.js +84 -0
- package/dist/esm/z-menu-section.entry.js +42 -0
- package/dist/esm/z-menu.entry.js +106 -0
- package/dist/esm/z-messages-pocket.entry.js +1 -1
- package/dist/esm/z-modal-login.entry.js +1 -1
- package/dist/esm/z-modal.entry.js +32 -0
- package/dist/esm/z-myz-card-alert.entry.js +59 -0
- package/dist/esm/z-myz-card-dictionary.entry.js +1 -1
- package/dist/esm/z-myz-card-footer.entry.js +48 -0
- package/dist/esm/z-myz-card-icon.entry.js +17 -0
- package/dist/esm/z-myz-card-info.entry.js +2 -2
- package/dist/esm/z-myz-card-list.entry.js +33 -0
- package/dist/esm/z-myz-card_4.entry.js +94 -0
- package/dist/esm/z-myz-list-item.entry.js +33 -0
- package/dist/esm/z-myz-topbar.entry.js +1 -1
- package/dist/esm/z-navigation-tabs.entry.js +1 -1
- package/dist/esm/z-notification.entry.js +38 -0
- package/dist/esm/z-otp.entry.js +1 -1
- package/dist/esm/z-pagination-bar.entry.js +124 -0
- package/dist/esm/z-pagination-page.entry.js +21 -0
- package/dist/esm/z-panel-elem.entry.js +26 -0
- package/dist/esm/z-pocket_3.entry.js +4 -3
- package/dist/esm/z-registro-table-expanded-row.entry.js +15 -0
- package/dist/esm/z-slideshow.entry.js +2 -2
- package/dist/esm/z-status-tag.entry.js +25 -0
- package/dist/esm/z-stepper-item.entry.js +18 -0
- package/dist/esm/z-stepper.entry.js +15 -0
- package/dist/esm/z-toast-notification-list.entry.js +1 -1
- package/dist/esm/z-toast-notification.entry.js +3 -2
- package/dist/esm/z-toggle-button.entry.js +32 -0
- package/dist/esm/z-tooltip.entry.js +270 -0
- package/dist/esm/z-user-dropdown.entry.js +91 -0
- package/dist/types/beans/index.d.ts +7 -7
- package/dist/types/components.d.ts +17 -9
- package/dist/types/snowflakes/registro-table/z-registro-table-cell/index.d.ts +3 -0
- package/dist/types/snowflakes/registro-table/z-registro-table-header/index.d.ts +3 -3
- package/dist/web-components-library/index.esm.js +1 -1
- package/dist/web-components-library/p-01d11ec3.entry.js +1 -0
- package/dist/web-components-library/p-0455dc43.entry.js +1 -0
- package/dist/web-components-library/{p-fcf19092.entry.js → p-05f4fa42.entry.js} +1 -1
- package/dist/web-components-library/p-08158e57.entry.js +1 -0
- package/dist/web-components-library/p-0ce6293a.entry.js +1 -0
- package/dist/web-components-library/{p-65c08b33.js → p-0e6906af.js} +1 -1
- package/dist/web-components-library/p-0fe60379.entry.js +1 -0
- package/dist/web-components-library/p-10ad64bc.entry.js +1 -0
- package/dist/web-components-library/p-166a212e.entry.js +1 -0
- package/dist/web-components-library/p-18705ae9.entry.js +1 -0
- package/{www/build/p-9912e411.js → dist/web-components-library/p-1d371408.js} +2 -2
- package/dist/web-components-library/p-250926fe.entry.js +1 -0
- package/dist/web-components-library/p-255c9150.entry.js +1 -0
- package/dist/web-components-library/p-3247dee9.js +7 -0
- package/dist/web-components-library/{p-40972dfd.entry.js → p-34f4e805.entry.js} +1 -1
- package/dist/web-components-library/p-35fd465c.entry.js +1 -0
- package/dist/web-components-library/{p-d1fed95b.entry.js → p-400e26c7.entry.js} +1 -1
- package/dist/web-components-library/p-4a414eb2.entry.js +1 -0
- package/dist/web-components-library/p-4ce8c176.entry.js +1 -0
- package/dist/web-components-library/p-4f66fee4.js +1 -0
- package/dist/web-components-library/p-5bbbc979.entry.js +1 -0
- package/dist/web-components-library/{p-e64c06a4.entry.js → p-5e2762e6.entry.js} +1 -1
- package/dist/web-components-library/p-5fa8dc13.entry.js +1 -0
- package/dist/web-components-library/p-60e40371.entry.js +1 -0
- package/dist/web-components-library/p-6583cbec.entry.js +1 -0
- package/dist/web-components-library/p-71cc7ed0.entry.js +1 -0
- package/dist/web-components-library/p-74fb3d69.entry.js +1 -0
- package/dist/web-components-library/p-7e926220.entry.js +1 -0
- package/dist/web-components-library/p-80589729.entry.js +1 -0
- package/dist/web-components-library/p-82a59ded.entry.js +1 -0
- package/dist/web-components-library/p-880a50a6.entry.js +1 -0
- package/dist/web-components-library/p-94814f44.entry.js +1 -0
- package/dist/web-components-library/{p-8c24ac2e.entry.js → p-957f298f.entry.js} +1 -1
- package/dist/web-components-library/{p-d430b1aa.entry.js → p-9959e453.entry.js} +1 -1
- package/dist/web-components-library/p-9d9dc98f.entry.js +1 -0
- package/dist/web-components-library/p-a15f8b52.entry.js +1 -0
- package/dist/web-components-library/p-a7733104.entry.js +1 -0
- package/dist/web-components-library/{p-3ea97390.entry.js → p-a82c9a77.entry.js} +1 -1
- package/dist/web-components-library/p-aa0f7169.entry.js +1 -0
- package/dist/web-components-library/p-ac3bc4c2.entry.js +1 -0
- package/dist/web-components-library/p-b13d5b98.entry.js +1 -0
- package/dist/web-components-library/{p-6e8f444c.entry.js → p-b630127d.entry.js} +1 -1
- package/dist/web-components-library/p-b68038b5.js +1 -0
- package/dist/web-components-library/p-b78fb152.entry.js +1 -0
- package/dist/web-components-library/p-c92c3f20.entry.js +1 -0
- package/dist/web-components-library/p-cc6363b9.entry.js +1 -0
- package/dist/web-components-library/p-cf914ea7.entry.js +1 -0
- package/dist/web-components-library/p-cfebc80e.entry.js +1 -0
- package/dist/web-components-library/{p-0bf8988b.entry.js → p-d227a145.entry.js} +1 -1
- package/dist/web-components-library/p-d83eee10.entry.js +1 -0
- package/dist/web-components-library/p-db5863cf.entry.js +1 -0
- package/dist/web-components-library/p-e1f1f39e.entry.js +1 -0
- package/dist/web-components-library/{p-798d5c2f.entry.js → p-e29fe790.entry.js} +1 -1
- package/dist/web-components-library/p-ebcad010.entry.js +1 -0
- package/dist/web-components-library/p-f3354152.entry.js +1 -0
- package/dist/web-components-library/p-f77f6f60.entry.js +1 -0
- package/dist/web-components-library/p-f8446b1e.entry.js +1 -0
- package/dist/web-components-library/p-f90dd488.js +1 -0
- package/dist/web-components-library/p-fc47897e.entry.js +1 -0
- package/dist/web-components-library/p-fce08912.entry.js +1 -0
- package/dist/web-components-library/web-components-library.esm.js +1 -1
- package/package.json +1 -1
- package/www/build/index.esm.js +1 -1
- package/www/build/p-01d11ec3.entry.js +1 -0
- package/www/build/p-0455dc43.entry.js +1 -0
- package/www/build/{p-fcf19092.entry.js → p-05f4fa42.entry.js} +1 -1
- package/www/build/p-08158e57.entry.js +1 -0
- package/www/build/p-0ce6293a.entry.js +1 -0
- package/www/build/{p-65c08b33.js → p-0e6906af.js} +1 -1
- package/www/build/p-0fe60379.entry.js +1 -0
- package/www/build/p-10ad64bc.entry.js +1 -0
- package/www/build/p-166a212e.entry.js +1 -0
- package/www/build/p-18705ae9.entry.js +1 -0
- package/{dist/web-components-library/p-9912e411.js → www/build/p-1d371408.js} +2 -2
- package/www/build/p-250926fe.entry.js +1 -0
- package/www/build/p-255c9150.entry.js +1 -0
- package/www/build/p-3247dee9.js +7 -0
- package/www/build/{p-40972dfd.entry.js → p-34f4e805.entry.js} +1 -1
- package/www/build/p-35fd465c.entry.js +1 -0
- package/www/build/{p-d1fed95b.entry.js → p-400e26c7.entry.js} +1 -1
- package/www/build/p-4a414eb2.entry.js +1 -0
- package/www/build/p-4ce8c176.entry.js +1 -0
- package/www/build/p-4f66fee4.js +1 -0
- package/www/build/p-5bbbc979.entry.js +1 -0
- package/www/build/{p-e64c06a4.entry.js → p-5e2762e6.entry.js} +1 -1
- package/www/build/p-5fa8dc13.entry.js +1 -0
- package/www/build/p-60e40371.entry.js +1 -0
- package/www/build/p-6583cbec.entry.js +1 -0
- package/www/build/p-71cc7ed0.entry.js +1 -0
- package/www/build/p-74fb3d69.entry.js +1 -0
- package/www/build/p-7e926220.entry.js +1 -0
- package/www/build/p-80589729.entry.js +1 -0
- package/www/build/p-82a59ded.entry.js +1 -0
- package/www/build/p-880a50a6.entry.js +1 -0
- package/www/build/p-94814f44.entry.js +1 -0
- package/www/build/{p-8c24ac2e.entry.js → p-957f298f.entry.js} +1 -1
- package/www/build/{p-d430b1aa.entry.js → p-9959e453.entry.js} +1 -1
- package/www/build/p-9d9dc98f.entry.js +1 -0
- package/www/build/p-a15f8b52.entry.js +1 -0
- package/www/build/p-a7733104.entry.js +1 -0
- package/www/build/{p-3ea97390.entry.js → p-a82c9a77.entry.js} +1 -1
- package/www/build/p-aa0f7169.entry.js +1 -0
- package/www/build/p-ac3bc4c2.entry.js +1 -0
- package/www/build/p-b13d5b98.entry.js +1 -0
- package/www/build/{p-6e8f444c.entry.js → p-b630127d.entry.js} +1 -1
- package/www/build/p-b68038b5.js +1 -0
- package/www/build/p-b78fb152.entry.js +1 -0
- package/www/build/p-c92c3f20.entry.js +1 -0
- package/www/build/p-cc6363b9.entry.js +1 -0
- package/www/build/p-cf914ea7.entry.js +1 -0
- package/www/build/p-cfebc80e.entry.js +1 -0
- package/www/build/{p-0bf8988b.entry.js → p-d227a145.entry.js} +1 -1
- package/www/build/p-d83eee10.entry.js +1 -0
- package/www/build/p-db5863cf.entry.js +1 -0
- package/www/build/p-e1f1f39e.entry.js +1 -0
- package/www/build/{p-798d5c2f.entry.js → p-e29fe790.entry.js} +1 -1
- package/www/build/p-eaf64f7c.js +1 -0
- package/www/build/p-ebcad010.entry.js +1 -0
- package/www/build/p-f3354152.entry.js +1 -0
- package/www/build/p-f77f6f60.entry.js +1 -0
- package/www/build/p-f8446b1e.entry.js +1 -0
- package/www/build/p-f90dd488.js +1 -0
- package/www/build/p-fc47897e.entry.js +1 -0
- package/www/build/p-fce08912.entry.js +1 -0
- package/www/build/web-components-library.esm.js +1 -1
- package/www/index.html +2 -454
- package/dist/cjs/z-alert_66.cjs.entry.js +0 -3735
- package/dist/esm/z-alert_66.entry.js +0 -3666
- package/dist/web-components-library/p-04c73ec1.entry.js +0 -1
- package/dist/web-components-library/p-43d00d2f.entry.js +0 -1
- package/dist/web-components-library/p-57ceab75.entry.js +0 -7
- package/dist/web-components-library/p-881b4877.js +0 -1
- package/dist/web-components-library/p-b4420ba3.entry.js +0 -1
- package/www/build/p-002ed333.js +0 -1
- package/www/build/p-04c73ec1.entry.js +0 -1
- package/www/build/p-43d00d2f.entry.js +0 -1
- package/www/build/p-57ceab75.entry.js +0 -7
- package/www/build/p-881b4877.js +0 -1
- package/www/build/p-b4420ba3.entry.js +0 -1
|
@@ -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 { q as ToastNotificationPositionsEnum } from './index-09b57d95.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,7 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-fa9e549c.js';
|
|
2
|
-
import {
|
|
2
|
+
import { p as ToastNotificationTransitionsEnum } from './index-09b57d95.js';
|
|
3
3
|
import { m as mobileBreakpoint } from './breakpoints-c386984e.js';
|
|
4
|
-
import { h as hammer } from './hammer-
|
|
4
|
+
import { h as hammer } from './hammer-501342a9.js';
|
|
5
|
+
import './_commonjsHelpers-8b28c6fa.js';
|
|
5
6
|
|
|
6
7
|
const stylesCss = ":host{display:inline-block;min-width:200px;width:100vw}:host(.slide-in-left){animation:slideinleft 1s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-in-right){animation:slideinright 1s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-in-down){animation:slideindown 1s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-in-up){animation:slideinup 1s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-out-left){animation:slideoutleft 0.5s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-out-right){animation:slideoutright 0.5s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-out-down){animation:slideoutdown 0.5s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-out-up){animation:slideoutup 0.5s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}@keyframes slideinleft{0%{transform:translateX(100%)}100%{transform:translateX(0)}}@keyframes slideinright{0%{transform:translateX(-100%)}100%{transform:translateX(0)}}@keyframes slideinup{0%{transform:translateY(100%);opacity:0}100%{transform:translateY(0);opacity:100%}}@keyframes slideindown{0%{transform:translateY(-100%);opacity:0}100%{transform:translateY(0);opacity:100%}}@keyframes slideoutleft{0%{transform:translateX(var(--percentuale));opacity:calc(100-var(--percentuale))}100%{transform:translateX(-100%);opacity:0%}}@keyframes slideoutright{0%{transform:translateX(var(--percentuale));opacity:calc(100-var(--percentuale))}100%{transform:translateX(100%);opacity:0%}}@keyframes slideoutup{0%{transform:translateY(var(--percentuale));opacity:100%}100%{transform:translateY(-100%);opacity:0}}@keyframes slideoutdown{0%{transform:translateY(var(--percentuale));opacity:100%}100%{transform:translateY(100%);opacity:0}}:host>#external-container{font-family:var(--font-family-sans);font-weight:var(--font-rg);border-radius:4px;font-size:14px;letter-spacing:0.16px;box-sizing:border-box;min-height:52px;padding:calc(var(--space-unit) * 1) calc(var(--space-unit) * 2);display:flex;align-items:center;justify-content:space-between;box-shadow:var(--shadow-3)}:host>#external-container.mobile-wrapped>#icon{align-self:flex-start}:host>#external-container.several-lines-padding{padding:calc(var(--space-unit) * 2)}:host>#external-container>#flex-container{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;width:100%}:host>#external-container #text{color:var(--color-white);line-height:20px;margin-right:calc(var(--space-unit) * 2);letter-spacing:0.16px;text-align:left}:host>#external-container #text>.title{margin-right:4px;font-weight:600}:host>#external-container.mobile-wrapped #button ::slotted(z-button){margin-top:calc(var(--space-unit) * 2)}:host>#external-container #icon{cursor:pointer;fill:var(--color-white);margin-left:calc(var(--space-unit) * 2)}:host>#external-container.dark{background:var(--gray800)}:host>#external-container.light{background:var(--color-background)}:host>#external-container.light #icon,:host>#external-container.warning #text,:host>#external-container.warning #icon{fill:var(--color-icon01)}:host>#external-container.light #text,:host>#external-container.warning #text{color:var(--grey800)}:host>#external-container.accent{background:var(--color-primary01)}:host>#external-container.error{background:var(--color-error-default)}:host>#external-container.success{background:var(--color-success-default)}:host>#external-container.warning{background:var(--color-warning-default)}@media only screen and (min-width: 768px){:host{width:unset;max-width:50vw}:host>#external-container>#flex-container{flex-wrap:nowrap}:host>#external-container #text{width:100%}}@media only screen and (min-width: 1366px){:host{width:unset;max-width:33vw}}";
|
|
7
8
|
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-fa9e549c.js';
|
|
2
|
+
|
|
3
|
+
const stylesCss = "button{font-family:var(--dashboard-font);font-weight:var(--font-sb);height:36px;border:var(--border-size-medium) solid;border-color:transparent;border-radius:var(--border-radius);color:var(--myz-blue);fill:var(--myz-blue);background-color:var(--bg-white);box-shadow:0px 0px 4px 0px rgba(0, 0, 0, 0.2);text-transform:uppercase;font-size:14px;outline:none;padding-left:0px;padding-right:calc(var(--space-unit) * 2);transition:all 200ms linear;cursor:pointer}button::-moz-focus-inner{border:0}button:hover{color:var(--myz-blue-dark);fill:var(--myz-blue-dark)}button:focus{border-color:var(--myz-blue);color:var(--myz-blue);fill:var(--myz-blue);box-shadow:0px 0px 2px 2px var(--accent-dark)}button:active{border-color:var(--myz-blue-light);color:var(--myz-blue-light);fill:var(--myz-blue-light);box-shadow:0px 2px 4px 0px rgba(0, 0, 0, 0.4)}button:disabled{color:var(--text-grey-700);fill:var(--text-grey-700)}z-icon{display:inline-block;margin:0 var(--space-unit) 0 calc(var(--space-unit) * 2);transform:rotate(360deg);transition:all 200ms linear}button.isopen{top:-20px}button.avoid-clicks{pointer-events:none}";
|
|
4
|
+
|
|
5
|
+
const ZToggleButton = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.toggleClick = createEvent(this, "toggleClick", 7);
|
|
9
|
+
/** disabled status flag (optional) */
|
|
10
|
+
this.isdisabled = false;
|
|
11
|
+
/** open by default (optional) */
|
|
12
|
+
this.opened = false;
|
|
13
|
+
}
|
|
14
|
+
emitToggleClick() {
|
|
15
|
+
if (this.isdisabled)
|
|
16
|
+
return;
|
|
17
|
+
this.opened = !this.opened;
|
|
18
|
+
this.toggleClick.emit(this.opened);
|
|
19
|
+
}
|
|
20
|
+
retrieveButtonClass() {
|
|
21
|
+
let className = this.opened && "isopen";
|
|
22
|
+
if (this.avoidclick)
|
|
23
|
+
className = className + " avoid-clicks";
|
|
24
|
+
return className;
|
|
25
|
+
}
|
|
26
|
+
render() {
|
|
27
|
+
return (h("button", { tabindex: this.avoidclick ? "-1" : "0", class: this.retrieveButtonClass(), disabled: this.isdisabled, onClick: () => this.emitToggleClick() }, h("z-icon", { name: this.opened ? "chevron-down" : "chevron-up", width: 16, height: 16 }), this.label));
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
ZToggleButton.style = stylesCss;
|
|
31
|
+
|
|
32
|
+
export { ZToggleButton as z_toggle_button };
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-fa9e549c.js';
|
|
2
|
+
import { l as TooltipPosition } from './index-09b57d95.js';
|
|
3
|
+
|
|
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
|
+
|
|
6
|
+
const documentElement = document.documentElement;
|
|
7
|
+
/**
|
|
8
|
+
* Find the closest scrollable parent of a node.
|
|
9
|
+
*
|
|
10
|
+
* @param {Element} element The node
|
|
11
|
+
*/
|
|
12
|
+
function findScrollableParent(element) {
|
|
13
|
+
let parent = element.parentNode;
|
|
14
|
+
while (parent && parent !== documentElement) {
|
|
15
|
+
const { overflow, overflowX, overflowY } = window.getComputedStyle(parent);
|
|
16
|
+
if (overflow === 'hidden' ||
|
|
17
|
+
overflowY === 'hidden' ||
|
|
18
|
+
overflowX === 'hidden') {
|
|
19
|
+
return parent;
|
|
20
|
+
}
|
|
21
|
+
if ((parent.scrollHeight > parent.clientHeight && overflow !== 'visible' && overflowY !== 'visible') ||
|
|
22
|
+
(parent.scrollWidth > parent.clientWidth && overflow !== 'visible' && overflowX !== 'visible')) {
|
|
23
|
+
return parent;
|
|
24
|
+
}
|
|
25
|
+
parent = parent.parentNode;
|
|
26
|
+
}
|
|
27
|
+
return documentElement;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Calculate computed offset.
|
|
31
|
+
* It includes matrix transformations.
|
|
32
|
+
* @param element The target element.
|
|
33
|
+
* @param targetParentOffset The relative offset parent.
|
|
34
|
+
* @return A client rect object.
|
|
35
|
+
*/
|
|
36
|
+
function computeOffset(element, targetParentOffset) {
|
|
37
|
+
const rect = element.getBoundingClientRect();
|
|
38
|
+
const width = rect.width;
|
|
39
|
+
const height = rect.height;
|
|
40
|
+
let top = 0;
|
|
41
|
+
let left = 0;
|
|
42
|
+
let offsetParent = element;
|
|
43
|
+
while (offsetParent && offsetParent != targetParentOffset) {
|
|
44
|
+
left += offsetParent.offsetLeft;
|
|
45
|
+
// document.body sometimes has offsetTop == 0 but still has an
|
|
46
|
+
// offset because of children margins!
|
|
47
|
+
if (offsetParent === document.body) {
|
|
48
|
+
top += offsetParent.getBoundingClientRect().top + window.scrollY;
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
top += offsetParent.offsetTop;
|
|
52
|
+
}
|
|
53
|
+
if (window.DOMMatrix) {
|
|
54
|
+
const style = window.getComputedStyle(offsetParent);
|
|
55
|
+
const transform = style.transform || style.webkitTransform;
|
|
56
|
+
const domMatrix = new DOMMatrix(transform);
|
|
57
|
+
if (domMatrix) {
|
|
58
|
+
left += domMatrix.m41;
|
|
59
|
+
if (offsetParent !== document.body) {
|
|
60
|
+
top += domMatrix.m42;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
if (!offsetParent.offsetParent) {
|
|
65
|
+
break;
|
|
66
|
+
}
|
|
67
|
+
offsetParent = offsetParent.offsetParent;
|
|
68
|
+
}
|
|
69
|
+
let parentWidth;
|
|
70
|
+
let parentHeight;
|
|
71
|
+
if (offsetParent === document.body) {
|
|
72
|
+
parentWidth = window.innerWidth;
|
|
73
|
+
parentHeight = window.innerHeight;
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
parentWidth = offsetParent.offsetWidth;
|
|
77
|
+
parentHeight = offsetParent.offsetHeight;
|
|
78
|
+
}
|
|
79
|
+
const right = parentWidth - left - rect.width;
|
|
80
|
+
const bottom = parentHeight - top - rect.height;
|
|
81
|
+
return { top, right, bottom, left, width, height };
|
|
82
|
+
}
|
|
83
|
+
const ZTooltip = class {
|
|
84
|
+
constructor(hostRef) {
|
|
85
|
+
registerInstance(this, hostRef);
|
|
86
|
+
this.positionChange = createEvent(this, "positionChange", 7);
|
|
87
|
+
/** Tooltip position. */
|
|
88
|
+
this.type = TooltipPosition.AUTO;
|
|
89
|
+
/**
|
|
90
|
+
* The open state of the tooltip.
|
|
91
|
+
*/
|
|
92
|
+
this.open = false;
|
|
93
|
+
}
|
|
94
|
+
validateType(newValue) {
|
|
95
|
+
if (newValue &&
|
|
96
|
+
Object
|
|
97
|
+
.values(TooltipPosition)
|
|
98
|
+
.every((position) => newValue !== position)) {
|
|
99
|
+
this.type = TooltipPosition.AUTO;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
onPositionChange() {
|
|
103
|
+
this.positionChange.emit({ position: this.position });
|
|
104
|
+
}
|
|
105
|
+
disconnectedCallback() {
|
|
106
|
+
cancelAnimationFrame(this.animationFrameRequestId);
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Setup tooltip behaviors on opening.
|
|
110
|
+
*/
|
|
111
|
+
onOpen() {
|
|
112
|
+
cancelAnimationFrame(this.animationFrameRequestId);
|
|
113
|
+
if (this.content) {
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
if (this.open) {
|
|
117
|
+
const setPosition = () => {
|
|
118
|
+
if (this.open) {
|
|
119
|
+
this.setPosition();
|
|
120
|
+
this.animationFrameRequestId = requestAnimationFrame(setPosition);
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
setPosition();
|
|
124
|
+
}
|
|
125
|
+
else {
|
|
126
|
+
const style = this.host.style;
|
|
127
|
+
style.removeProperty("top");
|
|
128
|
+
style.removeProperty("right");
|
|
129
|
+
style.removeProperty("bottom");
|
|
130
|
+
style.removeProperty("left");
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Set the position of the tooltip.
|
|
135
|
+
*/
|
|
136
|
+
setPosition() {
|
|
137
|
+
let element;
|
|
138
|
+
if (typeof this.bindTo === "string") {
|
|
139
|
+
element = this.host.ownerDocument.querySelector(this.bindTo);
|
|
140
|
+
}
|
|
141
|
+
else if (this.bindTo) {
|
|
142
|
+
element = this.bindTo;
|
|
143
|
+
}
|
|
144
|
+
else {
|
|
145
|
+
element = this.host.parentElement;
|
|
146
|
+
}
|
|
147
|
+
if (!element) {
|
|
148
|
+
return;
|
|
149
|
+
}
|
|
150
|
+
const scrollContainer = findScrollableParent(element);
|
|
151
|
+
const scrollingBoundingRect = scrollContainer.getBoundingClientRect();
|
|
152
|
+
const offsetContainer = this.host.offsetParent;
|
|
153
|
+
const relativeBoundingRect = offsetContainer ? computeOffset(offsetContainer, scrollContainer) : { top: 0, right: 0, bottom: 0, left: 0 };
|
|
154
|
+
const boundingRect = computeOffset(element, scrollContainer);
|
|
155
|
+
const top = boundingRect.top - scrollContainer.scrollTop;
|
|
156
|
+
const bottom = scrollingBoundingRect.height - (boundingRect.top + boundingRect.height) + scrollContainer.scrollTop;
|
|
157
|
+
const left = boundingRect.left - scrollContainer.scrollLeft;
|
|
158
|
+
const right = scrollingBoundingRect.width - (boundingRect.left + boundingRect.width) + scrollContainer.scrollLeft;
|
|
159
|
+
const overflowBottom = Math.max(0, scrollingBoundingRect.top + scrollingBoundingRect.height - window.innerHeight);
|
|
160
|
+
const overflowRight = Math.max(0, scrollingBoundingRect.left + scrollingBoundingRect.width - window.innerWidth);
|
|
161
|
+
const availableTop = Math.min(top, top + scrollingBoundingRect.top);
|
|
162
|
+
const availableBottom = Math.min(bottom, bottom - overflowBottom);
|
|
163
|
+
const availableLeft = Math.min(left, left + scrollingBoundingRect.left);
|
|
164
|
+
const availableRight = Math.min(right, right - overflowRight);
|
|
165
|
+
const availableHeight = availableTop + availableBottom + boundingRect.height;
|
|
166
|
+
const availableWidth = availableLeft + availableRight + boundingRect.width;
|
|
167
|
+
let position = this.type;
|
|
168
|
+
if (position === TooltipPosition.AUTO) {
|
|
169
|
+
/**
|
|
170
|
+
* The `AUTO` position tries to place the tooltip in the "safest" area,
|
|
171
|
+
* where there's more space available.
|
|
172
|
+
*/
|
|
173
|
+
const positions = [];
|
|
174
|
+
if (availableTop / availableHeight > 0.9) {
|
|
175
|
+
positions.unshift(TooltipPosition.TOP);
|
|
176
|
+
}
|
|
177
|
+
else if (availableTop / availableHeight > 0.6) {
|
|
178
|
+
positions.push(TooltipPosition.TOP);
|
|
179
|
+
}
|
|
180
|
+
else if (availableTop / availableHeight < 0.1) {
|
|
181
|
+
positions.unshift(TooltipPosition.BOTTOM);
|
|
182
|
+
}
|
|
183
|
+
else {
|
|
184
|
+
positions.push(TooltipPosition.BOTTOM);
|
|
185
|
+
}
|
|
186
|
+
if (availableLeft / availableWidth > 0.6) {
|
|
187
|
+
positions.push(TooltipPosition.LEFT);
|
|
188
|
+
}
|
|
189
|
+
else if (availableLeft / availableWidth < 0.4) {
|
|
190
|
+
positions.push(TooltipPosition.RIGHT);
|
|
191
|
+
}
|
|
192
|
+
position = positions.join("_");
|
|
193
|
+
}
|
|
194
|
+
const style = this.host.style;
|
|
195
|
+
if (!this.content) {
|
|
196
|
+
style.position = "absolute";
|
|
197
|
+
}
|
|
198
|
+
const offsetTop = boundingRect.top - relativeBoundingRect.top;
|
|
199
|
+
const offsetRight = boundingRect.right - relativeBoundingRect.right;
|
|
200
|
+
const offsetBottom = boundingRect.bottom - relativeBoundingRect.bottom;
|
|
201
|
+
const offsetLeft = boundingRect.left - relativeBoundingRect.left;
|
|
202
|
+
if (position === TooltipPosition.TOP ||
|
|
203
|
+
position === TooltipPosition.TOP_RIGHT ||
|
|
204
|
+
position === TooltipPosition.TOP_LEFT) {
|
|
205
|
+
style.top = "auto";
|
|
206
|
+
style.bottom = `${offsetBottom + boundingRect.height}px`;
|
|
207
|
+
}
|
|
208
|
+
if (position === TooltipPosition.BOTTOM ||
|
|
209
|
+
position === TooltipPosition.BOTTOM_RIGHT ||
|
|
210
|
+
position === TooltipPosition.BOTTOM_LEFT) {
|
|
211
|
+
style.top = `${offsetTop + boundingRect.height}px`;
|
|
212
|
+
style.bottom = "auto";
|
|
213
|
+
}
|
|
214
|
+
if (position === TooltipPosition.TOP ||
|
|
215
|
+
position === TooltipPosition.BOTTOM) {
|
|
216
|
+
style.left = `${offsetLeft +
|
|
217
|
+
(boundingRect.width / 2) -
|
|
218
|
+
(this.host.clientWidth / 2)}px`;
|
|
219
|
+
}
|
|
220
|
+
if (position === TooltipPosition.TOP_RIGHT ||
|
|
221
|
+
position === TooltipPosition.BOTTOM_RIGHT) {
|
|
222
|
+
style.right = "auto";
|
|
223
|
+
style.left = `${offsetLeft + boundingRect.width}px`;
|
|
224
|
+
}
|
|
225
|
+
if (position === TooltipPosition.TOP_LEFT ||
|
|
226
|
+
position === TooltipPosition.BOTTOM_LEFT) {
|
|
227
|
+
style.left = "auto";
|
|
228
|
+
style.right = `${offsetRight + boundingRect.width}px`;
|
|
229
|
+
}
|
|
230
|
+
if (position === TooltipPosition.RIGHT ||
|
|
231
|
+
position === TooltipPosition.LEFT) {
|
|
232
|
+
style.top = `${offsetTop +
|
|
233
|
+
(boundingRect.height / 2) -
|
|
234
|
+
(this.host.clientHeight / 2)}px`;
|
|
235
|
+
style.bottom = "auto";
|
|
236
|
+
}
|
|
237
|
+
if (position === TooltipPosition.RIGHT) {
|
|
238
|
+
style.right = "auto";
|
|
239
|
+
style.left = `${offsetLeft + boundingRect.width}px`;
|
|
240
|
+
}
|
|
241
|
+
if (position === TooltipPosition.LEFT) {
|
|
242
|
+
style.left = "auto";
|
|
243
|
+
style.right = `${offsetRight + boundingRect.width}px`;
|
|
244
|
+
}
|
|
245
|
+
this.position = position;
|
|
246
|
+
}
|
|
247
|
+
componentWillLoad() {
|
|
248
|
+
// Keep backward compatibility
|
|
249
|
+
if (this.content) {
|
|
250
|
+
this.open = true;
|
|
251
|
+
}
|
|
252
|
+
this.validateType(this.type);
|
|
253
|
+
this.onOpen();
|
|
254
|
+
}
|
|
255
|
+
render() {
|
|
256
|
+
if (this.content) {
|
|
257
|
+
return (h(Host, { class: "legacy", position: this.type }, this.content));
|
|
258
|
+
}
|
|
259
|
+
return (h(Host, { position: this.position }, h("slot", null)));
|
|
260
|
+
}
|
|
261
|
+
get host() { return getElement(this); }
|
|
262
|
+
static get watchers() { return {
|
|
263
|
+
"type": ["validateType"],
|
|
264
|
+
"position": ["onPositionChange"],
|
|
265
|
+
"open": ["onOpen"]
|
|
266
|
+
}; }
|
|
267
|
+
};
|
|
268
|
+
ZTooltip.style = stylesCss;
|
|
269
|
+
|
|
270
|
+
export { ZTooltip as z_tooltip };
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-fa9e549c.js';
|
|
2
|
+
import { m as mobileBreakpoint } from './breakpoints-c386984e.js';
|
|
3
|
+
|
|
4
|
+
const stylesCss = ":host{background-color:var(--gray900)}:host(.inverse){background-color:var(--color-white)}button{cursor:pointer;display:flex;flex-direction:column;width:100%;margin:0;background-color:var(--gray900);border:none;padding:0;letter-spacing:0.16px;white-space:nowrap}button.inverse{background-color:var(--color-white)}button div.firstline{display:flex;justify-content:flex-end;align-items:center;max-width:200px}button.open div.firstline{max-width:none}z-icon{padding:0 2px;fill:var(--color-white)}z-icon.inverse{fill:var(--gray900)}ul{box-sizing:border-box;position:absolute;left:0;padding:calc(var(--space-unit) / 2) calc(var(--space-unit) * 2) 0 calc(var(--space-unit) * 2);width:100%;margin:calc(var(--space-unit) * 1.5) 0 0 0;background-color:var(--gray900);font-family:var(--font-family-sans);font-weight:var(--font-sb);font-size:14px;line-height:20px;letter-spacing:0.3px}ul.inverse{background-color:var(--color-white)}ul>li{display:flex;justify-content:flex-end;white-space:nowrap;padding:calc(var(--space-unit) * 1.5 - 1px) 0;margin:0;border-bottom:var(--border-base) solid var(--gray700)}ul>li.inverse{border-bottom-color:var(--gray400)}ul>li:first-child{border-top:none;padding-top:0;padding-bottom:calc(var(--space-unit) + 6px);flex-direction:column;align-items:end}ul>li:last-child{border-bottom:none;margin-bottom:0}#guestbutton{box-sizing:border-box;display:inline-flex;flex-direction:row;align-items:center;justify-content:center;width:100%;font-family:var(--font-family-sans);font-weight:var(--font-sb);font-size:14px;line-height:1;letter-spacing:0.3px;border-width:var(--border-size-medium);border-style:solid;border-radius:var(--border-radius);vertical-align:middle;text-transform:uppercase;text-decoration:none;cursor:pointer;outline:none;fill:currentColor;height:32px;min-width:32px;padding:0 calc(var(--space-unit) * 2);background-color:var(--color-white);border-color:var(--color-white);color:var(--gray800)}#guestbutton.inverse{background-color:var(--gray800);border-color:var(--gray800);color:var(--color-white)}.userfullname{padding:0;overflow:hidden;max-width:250px;text-overflow:ellipsis;width:100%;color:var(--color-white);font-family:var(--font-family-sans);font-weight:var(--font-sb);font-size:16px;line-height:24px;letter-spacing:0;text-align:right}.userfullname.inverse{color:var(--gray800)}.useremail{color:var(--color-white);font-family:var(--font-family-sans);font-weight:var(--font-rg);font-size:12px;line-height:16px;letter-spacing:0.32px;overflow:hidden;text-overflow:ellipsis;width:100%;text-align:right}.useremail.inverse{color:var(--gray800)}@media only screen and (min-width: 768px){:host{height:calc(var(--space-unit) * 4);background-color:var(--gray900)}:host(.inverse){background-color:var(--color-white)}:host>div{position:relative;top:50%;transform:translateY(-50%)}:host>div.open{top:auto;transform:none}:host>div>div{padding:0}:host>div>div.open{position:absolute;right:calc(var(--space-unit) * -1);box-shadow:0px 2px calc(var(--space-unit) * .5) 0px rgba(0, 0, 0, 0.5);background-color:var(--color-white);margin-top:calc(var(--space-unit) / 2);padding:calc(var(--space-unit) / 2 + 1px) var(--space-unit) 0 var(--space-unit);transform:translate(0, -4px)}:host>div>div.inverse.open{background-color:var(--gray800)}button{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-end;align-items:end;align-content:center}button.open{background-color:var(--color-white);border-top:var(--border-size-small) solid var(--color-white);border-top-left-radius:calc(var(--space-unit) * .5);border-top-right-radius:calc(var(--space-unit) * .5);max-width:initial;margin-left:var(--space-unit);padding-right:var(--space-unit)}button.open.inverse{border-top-color:var(--gray800);background-color:var(--gray800)}button:not(.open) z-icon{fill:var(--color-white)}button:not(.open) z-icon.inverse{fill:var(--gray800)}button.open z-icon{fill:var(--gray800)}button.open z-icon.inverse{fill:var(--color-white)}.userfullname{font-family:var(--font-family-sans);font-weight:var(--font-sb);font-size:14px;line-height:20px;letter-spacing:0.16px;padding:0 calc(var(--space-unit) - 6px) 0 calc(var(--space-unit) - 2px);width:auto}.userfullname.inverse{color:var(--gray800)}button.open div.userfullname{color:var(--gray800);max-width:none;text-overflow:clip}button.open div.userfullname.inverse{color:var(--color-white)}.useremail{padding-right:calc(var(--space-unit) * 3 - 2px);box-sizing:border-box}button.open div.useremail{color:var(--gray800)}button.open div.useremail.inverse{color:var(--color-white)}ul{position:initial;left:initial;padding:0;width:100%;background-color:var(--color-white)}ul.inverse{border-bottom-color:var(--gray800);background-color:var(--gray800)}ul>li{color:var(--gray800);border-bottom:var(--border-base) solid var(--gray400);margin:0 var(--space-unit)}ul>li.inverse{color:var(--color-white)}ul>li:first-child{border-top:var(--border-base) solid var(--gray400);padding-top:calc(var(--space-unit) + 3px);padding-bottom:calc(var(--space-unit) + 5px)}}";
|
|
5
|
+
|
|
6
|
+
const ZUserDropdown = class {
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
registerInstance(this, hostRef);
|
|
9
|
+
this.userButtonClick = createEvent(this, "userButtonClick", 7);
|
|
10
|
+
this.dropdownMenuLinkClick = createEvent(this, "dropdownMenuLinkClick", 7);
|
|
11
|
+
/** if inner components colors are inverted, or not, default false */
|
|
12
|
+
this.useInverseColors = false;
|
|
13
|
+
this.isMenuOpen = false;
|
|
14
|
+
this.handleLoggedButtonClick = this.handleLoggedButtonClick.bind(this);
|
|
15
|
+
this.emitDropdownMenuLinkClick = this.emitDropdownMenuLinkClick.bind(this);
|
|
16
|
+
}
|
|
17
|
+
componentDidLoad() {
|
|
18
|
+
this.setMobileAndDivToResizeWidth();
|
|
19
|
+
}
|
|
20
|
+
componentWillUpdate() {
|
|
21
|
+
this.setMobileAndDivToResizeWidth();
|
|
22
|
+
}
|
|
23
|
+
componentWillRender() {
|
|
24
|
+
if (this.menuContent) {
|
|
25
|
+
this.linkArray = typeof this.menuContent === "string" ? JSON.parse(this.menuContent) : this.menuContent;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
setMobileAndDivToResizeWidth() {
|
|
29
|
+
var _a;
|
|
30
|
+
if (this.divToResize) {
|
|
31
|
+
this.isMobile = window.screen.width <= mobileBreakpoint || window.innerWidth <= mobileBreakpoint;
|
|
32
|
+
if (this.logged && !this.isMobile && this.isMenuOpen) {
|
|
33
|
+
this.divToResize.style.width = `${(_a = this.userButton) === null || _a === void 0 ? void 0 : _a.offsetWidth}px`;
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
this.divToResize.removeAttribute('style');
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
emitUserButtonClick() {
|
|
41
|
+
this.userButtonClick.emit(this.isMenuOpen);
|
|
42
|
+
}
|
|
43
|
+
emitDropdownMenuLinkClick(e) {
|
|
44
|
+
this.isMenuOpen = false;
|
|
45
|
+
this.dropdownMenuLinkClick.emit({ e, linkId: e.detail.linkId });
|
|
46
|
+
}
|
|
47
|
+
handleResize() {
|
|
48
|
+
this.isMobile = window.innerWidth <= mobileBreakpoint;
|
|
49
|
+
}
|
|
50
|
+
handleOrientationChange() {
|
|
51
|
+
this.isMobile = screen.width <= mobileBreakpoint;
|
|
52
|
+
}
|
|
53
|
+
handleClickOutside(e) {
|
|
54
|
+
if (e.target.nodeName !== "Z-USER-DROPDOWN") {
|
|
55
|
+
this.isMenuOpen = false;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
handleLoggedButtonClick() {
|
|
59
|
+
this.isMenuOpen = !this.isMenuOpen;
|
|
60
|
+
this.emitUserButtonClick();
|
|
61
|
+
}
|
|
62
|
+
renderGuestButton() {
|
|
63
|
+
return (h("button", { id: "guestbutton", class: this.useInverseColors ? "inverse" : "", onClick: () => this.emitUserButtonClick() }, "ENTRA"));
|
|
64
|
+
}
|
|
65
|
+
renderLoggedButton() {
|
|
66
|
+
const direction = this.isMenuOpen ? "up" : "down";
|
|
67
|
+
const colorClass = this.useInverseColors ? "inverse" : "";
|
|
68
|
+
return (h("button", { ref: (el) => (this.userButton = el), title: this.userFullName, class: `${colorClass} ${this.isMenuOpen ? "open" : ""}`, onClick: this.handleLoggedButtonClick }, h("div", null, h("div", { class: "firstline" }, h("z-icon", { class: colorClass, name: "user-avatar-filled", height: 16, width: 16 }), !this.isMobile && h("div", { class: `userfullname ${colorClass}` }, this.userFullName), h("z-icon", { class: colorClass, name: `caret-${direction}-filled`, height: 16, width: 16 })), !this.isMobile && this.isMenuOpen && h("div", { class: `useremail ${colorClass}` }, this.userEmail))));
|
|
69
|
+
}
|
|
70
|
+
getZLinkTextcolor() {
|
|
71
|
+
if (this.isMobile) {
|
|
72
|
+
return this.useInverseColors ? "black" : "white";
|
|
73
|
+
}
|
|
74
|
+
else {
|
|
75
|
+
return this.useInverseColors ? "white" : "black";
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
renderDropdownMenu() {
|
|
79
|
+
const colorClass = this.useInverseColors ? "inverse" : "";
|
|
80
|
+
return (this.isMenuOpen && (h("ul", { class: colorClass }, this.isMobile &&
|
|
81
|
+
h("li", { class: colorClass }, h("div", { class: `userfullname ${colorClass}` }, this.userFullName), h("div", { class: `useremail ${colorClass}` }, this.userEmail)), this.linkArray && this.linkArray.map((link) => h("li", { id: link.id, class: colorClass }, h("z-link", { textcolor: this.getZLinkTextcolor(), href: link.link, htmlid: link.id, target: link.target, icon: link.icon, onZLinkClick: this.emitDropdownMenuLinkClick }, link.label))))));
|
|
82
|
+
}
|
|
83
|
+
render() {
|
|
84
|
+
const openClass = `${this.logged && this.isMenuOpen ? "open" : ""}`;
|
|
85
|
+
const colorClass = this.useInverseColors ? "inverse" : "";
|
|
86
|
+
return (h(Host, { class: colorClass }, h("div", { ref: (el) => (this.divToResize = el), class: openClass }, h("div", { class: `${colorClass} ${openClass}` }, this.logged ? this.renderLoggedButton() : this.renderGuestButton(), this.logged && this.renderDropdownMenu()))));
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
ZUserDropdown.style = stylesCss;
|
|
90
|
+
|
|
91
|
+
export { ZUserDropdown as z_user_dropdown };
|
|
@@ -217,13 +217,6 @@ export declare enum DividerOrientation {
|
|
|
217
217
|
horizontal = "horizontal",
|
|
218
218
|
vertical = "vertical"
|
|
219
219
|
}
|
|
220
|
-
export declare enum TableHeaderSize {
|
|
221
|
-
"x-small" = "x-small",
|
|
222
|
-
small = "small",
|
|
223
|
-
medium = "medium",
|
|
224
|
-
large = "large",
|
|
225
|
-
special = "special"
|
|
226
|
-
}
|
|
227
220
|
export declare enum SortDirectionEnum {
|
|
228
221
|
asc = "asc",
|
|
229
222
|
desc = "desc",
|
|
@@ -248,6 +241,13 @@ export declare enum ListSize {
|
|
|
248
241
|
large = "large",
|
|
249
242
|
"x-large" = "x-large"
|
|
250
243
|
}
|
|
244
|
+
export declare enum Size {
|
|
245
|
+
"x-small" = "x-small",
|
|
246
|
+
small = "small",
|
|
247
|
+
medium = "medium",
|
|
248
|
+
large = "large",
|
|
249
|
+
special = "special"
|
|
250
|
+
}
|
|
251
251
|
export declare enum ExpandableListStyle {
|
|
252
252
|
accordion = "accordion",
|
|
253
253
|
menu = "menu"
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
8
|
import { AlertTypes, LicenseTypeEnum, MenuItem as MenuItem1, TooltipPosition } from "./beans/index";
|
|
9
|
-
import { AvatarSize, ButtonSizeEnum, ButtonVariantBean, CardVariants, ComboItemBean, DictionaryData, DividerOrientation, DividerSize, ExpandableListButtonAlign, ExpandableListStyle, HeaderUserData, InputStatusBean, InputTypeBean, ListDividerType, ListSize, MenuItem, NotificationType, PocketStatus, PopoverBorderRadius, PopoverPosition, PopoverShadow, SelectItemBean, SortDirection, StatusTagStatus,
|
|
9
|
+
import { AvatarSize, ButtonSizeEnum, ButtonVariantBean, CardVariants, ComboItemBean, DictionaryData, DividerOrientation, DividerSize, ExpandableListButtonAlign, ExpandableListStyle, HeaderUserData, InputStatusBean, InputTypeBean, ListDividerType, ListSize, MenuItem, NotificationType, PocketStatus, PopoverBorderRadius, PopoverPosition, PopoverShadow, SelectItemBean, Size, SortDirection, StatusTagStatus, TabOrientationBean, TabSizeBean, ThemeVariant, ThemeVariantBean, ToastNotificationPositionsTypes, ToastNotificationTransitionTypes, ToastNotificationTypes, ZRegistroTableRowExpandedType } from "./beans";
|
|
10
10
|
import { ListItemBean } from "./beans/index.js";
|
|
11
11
|
import { ZTypographyLevels } from "./components/typography/z-typography/index";
|
|
12
12
|
export namespace Components {
|
|
@@ -1248,6 +1248,10 @@ export namespace Components {
|
|
|
1248
1248
|
interface ZRegistroTableBody {
|
|
1249
1249
|
}
|
|
1250
1250
|
interface ZRegistroTableCell {
|
|
1251
|
+
/**
|
|
1252
|
+
* Set padding size of cell, if special 0px padding will be set
|
|
1253
|
+
*/
|
|
1254
|
+
"padding": Size;
|
|
1251
1255
|
/**
|
|
1252
1256
|
* [Optional] Show contextual menu button
|
|
1253
1257
|
*/
|
|
@@ -1283,13 +1287,13 @@ export namespace Components {
|
|
|
1283
1287
|
*/
|
|
1284
1288
|
"defaultSortDirection"?: SortDirection;
|
|
1285
1289
|
/**
|
|
1286
|
-
*
|
|
1290
|
+
* Set padding size of cell, if special 0px padding will be set
|
|
1287
1291
|
*/
|
|
1288
|
-
"
|
|
1292
|
+
"padding": Size;
|
|
1289
1293
|
/**
|
|
1290
|
-
* [Optional]
|
|
1294
|
+
* [Optional] Show contextual menu button
|
|
1291
1295
|
*/
|
|
1292
|
-
"
|
|
1296
|
+
"showButton"?: boolean;
|
|
1293
1297
|
"sortDirection": SortDirection;
|
|
1294
1298
|
/**
|
|
1295
1299
|
* [Optional] Make the header sortable
|
|
@@ -3569,6 +3573,10 @@ declare namespace LocalJSX {
|
|
|
3569
3573
|
interface ZRegistroTableBody {
|
|
3570
3574
|
}
|
|
3571
3575
|
interface ZRegistroTableCell {
|
|
3576
|
+
/**
|
|
3577
|
+
* Set padding size of cell, if special 0px padding will be set
|
|
3578
|
+
*/
|
|
3579
|
+
"padding"?: Size;
|
|
3572
3580
|
/**
|
|
3573
3581
|
* [Optional] Show contextual menu button
|
|
3574
3582
|
*/
|
|
@@ -3608,13 +3616,13 @@ declare namespace LocalJSX {
|
|
|
3608
3616
|
*/
|
|
3609
3617
|
"onSort"?: (event: CustomEvent<any>) => void;
|
|
3610
3618
|
/**
|
|
3611
|
-
*
|
|
3619
|
+
* Set padding size of cell, if special 0px padding will be set
|
|
3612
3620
|
*/
|
|
3613
|
-
"
|
|
3621
|
+
"padding"?: Size;
|
|
3614
3622
|
/**
|
|
3615
|
-
* [Optional]
|
|
3623
|
+
* [Optional] Show contextual menu button
|
|
3616
3624
|
*/
|
|
3617
|
-
"
|
|
3625
|
+
"showButton"?: boolean;
|
|
3618
3626
|
"sortDirection"?: SortDirection;
|
|
3619
3627
|
/**
|
|
3620
3628
|
* [Optional] Make the header sortable
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import { Size } from "../../../beans";
|
|
1
2
|
export declare class ZRegistroTableCell {
|
|
2
3
|
host: HTMLElement;
|
|
3
4
|
/** [Optional] Show contextual menu button */
|
|
4
5
|
showButton?: boolean;
|
|
6
|
+
/** Set padding size of cell, if special 0px padding will be set */
|
|
7
|
+
padding: Size;
|
|
5
8
|
isMenuOpened: boolean;
|
|
6
9
|
handleMenu(): void;
|
|
7
10
|
componentWillRender(): void;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { EventEmitter } from "../../../stencil-public-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Size, SortDirection } from "../../../beans";
|
|
3
3
|
export declare class ZRegistroTableHeader {
|
|
4
4
|
host: HTMLElement;
|
|
5
5
|
/** Column ID */
|
|
6
6
|
columnId: string;
|
|
7
|
-
/**
|
|
8
|
-
|
|
7
|
+
/** Set padding size of cell, if special 0px padding will be set */
|
|
8
|
+
padding: Size;
|
|
9
9
|
/** [Optional] Make the header sortable */
|
|
10
10
|
sortable?: boolean;
|
|
11
11
|
/** [Optional] Show contextual menu button */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as o}from"./p-
|
|
1
|
+
import{c as o}from"./p-f90dd488.js";import"./p-0e6906af.js";import"./p-d69e14fb.js";const p={colorFromId:o};export{p as Utils}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as o,h as a,g as e}from"./p-904a85e4.js";import{C as i}from"./p-0e6906af.js";const r=class{constructor(a){t(this,a),this.cardClicked=o(this,"cardClicked",7),this.clickable=!1}onClick(t){if("action"!==t.target.getAttribute("slot"))return this.clickable?void this.cardClicked.emit():(t.preventDefault(),void t.stopPropagation())}componentWillLoad(){this.hasCoverImage=!!this.host.querySelector('[slot="cover"]')}renderColorCoverCard(){return[a("div",{class:"cover-container"},a("div",{class:"color-cover"},a("div",{class:"cover-content"},a("slot",{name:"metadata"}),a("slot",{name:"title"})))),a("div",{class:"content"},a("slot",{name:"text"}),a("div",{class:"actions"},a("slot",{name:"action"})))]}render(){return this.variant===i.overlay||this.hasCoverImage?[a("div",{class:"cover-container"},this.hasCoverImage&&[a("slot",{name:"cover"}),this.variant!==i.overlay&&this.coverIcon&&a("z-icon",{name:this.coverIcon})],!this.hasCoverImage&&a("div",{class:"color-cover"})),a("div",{class:"content"},a("slot",{name:"metadata"}),a("slot",{name:"title"}),a("slot",{name:"text"}),a("div",{class:"actions"},a("slot",{name:"action"})))]:this.renderColorCoverCard()}get host(){return e(this)}};r.style=":host{--aspect-ratio:1.62;--z-card--border-color:var(--gray200);--z-card--color-cover-background:var(--color-surface01);position:relative;display:flex;flex-direction:column;font-family:var(--font-family-sans);font-weight:var(--font-rg)}*,::slotted(*){box-sizing:border-box}:host(:not([variant='overlay'])) .cover-container{position:relative;width:100%}.cover-container{padding-bottom:calc(100% / var(--aspect-ratio))}::slotted([slot='cover']),.color-cover{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:center}.cover-container>z-icon{--z-icon-width:calc(var(--space-unit) * 11);--z-icon-height:var(--z-icon-width);position:absolute;top:calc(50% - calc(var(--z-icon-height) / 2));left:calc(50% - calc(var(--z-icon-width) / 2));fill:var(--color-primary01)}.color-cover{background-color:var(--z-card--color-cover-background)}.content{display:flex;flex-direction:column;padding-top:var(--space-unit)}.color-cover .cover-content{display:flex;flex-direction:column;justify-content:flex-end;height:100%;padding:var(--space-unit)}::slotted([slot='metadata']),::slotted([slot='title']),::slotted([slot='text']){display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}::slotted([slot='title']:not(:last-child)),::slotted([slot='text']:not(:last-child)){margin-bottom:var(--space-unit)}::slotted([slot='text']),::slotted([slot='actions']){margin:0}::slotted([slot='metadata']:not(:last-child)){margin:0 0 calc(var(--space-unit) * 0.25);-webkit-line-clamp:1;text-transform:uppercase}::slotted([slot='title']){margin:0;font-weight:var(--font-sb);-webkit-line-clamp:2}::slotted([slot='text']){-webkit-line-clamp:3}.actions{display:flex;flex-direction:row;align-items:center}::slotted([slot='action']:not(:last-child)){margin-right:calc(var(--space-unit) * 1.5)}:host([clickable]){cursor:pointer}:host([clickable]:focus:focus-visible){outline:none}:host(:not([variant])[clickable]:focus:focus-visible){padding:calc(var(--space-unit) * 0.5);box-shadow:var(--shadow-focus-primary)}:host([variant='border'])>.content,:host([variant='shadow'])>.content{height:100%;padding:var(--space-unit) var(--space-unit) calc(var(--space-unit) * 2)}:host([variant='border']) .actions,:host([variant='shadow']) .actions{margin-top:auto}:host([variant='border']){border:var(--border-size-small) solid var(--z-card--border-color)}:host([variant='border'][clickable]:hover)>.content{background:var(--color-background)}:host([variant='border'][clickable]:focus:focus-visible){box-shadow:var(--shadow-focus-primary)}:host([variant='border'][clickable]:active){border-color:transparent}:host([variant='shadow']){box-shadow:var(--shadow-2)}:host([variant='shadow'][clickable]:hover){box-shadow:var(--shadow-4)}:host([variant='shadow'][clickable]:focus:focus-visible){box-shadow:var(--shadow-4)}:host([variant='shadow'][clickable]:active){box-shadow:none}:host([variant='overlay']) .content{position:absolute;top:0;right:0;bottom:0;left:0;justify-content:flex-end;padding:var(--space-unit);background-image:linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));color:var(--color-text-inverse);fill:var(--color-text-inverse)}";export{r as z_card}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as i,h as r,H as d}from"./p-904a85e4.js";import{t as e,f as s}from"./p-0e6906af.js";const a=class{constructor(r){i(this,r),this.size=e.small,this.color="gray200",this.orientation=s.horizontal}render(){return r(d,{class:`divider-${this.size} divider-${this.orientation}`,style:{backgroundColor:`var(--${this.color})`}})}};a.style=".sc-z-divider-h{display:block;padding:0;margin:0}.divider-horizontal.sc-z-divider-h{width:100%}.divider-vertical.sc-z-divider-h{height:100%}.divider-small.divider-horizontal.sc-z-divider-h{height:var(--border-size-small)}.divider-medium.divider-horizontal.sc-z-divider-h{height:var(--border-size-medium)}.divider-large.divider-horizontal.sc-z-divider-h{height:var(--border-size-large)}.divider-small.divider-vertical.sc-z-divider-h{width:var(--border-size-small)}.divider-medium.divider-vertical.sc-z-divider-h{width:var(--border-size-medium)}.divider-large.divider-vertical.sc-z-divider-h{width:var(--border-size-large)}";export{a as z_divider}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as o,H as s,g as e}from"./p-904a85e4.js";import{
|
|
1
|
+
import{r as t,h as o,H as s,g as e}from"./p-904a85e4.js";import{q as i}from"./p-0e6906af.js";const n=class{constructor(o){t(this,o),this.newestontop=!0,this.slotChangeHandler=()=>{const t=Array.from(this.hostElement.children).filter((t=>!this.notificationArray.includes(t)));t&&t.forEach((t=>{this.notificationArray.push(t);const o=t;t.remove(),this.hostElement.prepend(o)}))}}watchPropNewestontop(t){this.hostElement.append(...this.notificationArray.reverse()),t?this.hostElement.shadowRoot.addEventListener("slotchange",this.slotChangeHandler):this.hostElement.shadowRoot.removeEventListener("slotchange",this.slotChangeHandler)}componentWillLoad(){this.newestontop&&this.handleNewestOnTop()}handleNewestOnTop(){this.notificationArray=Array.from(this.hostElement.children),this.hostElement.append(...this.notificationArray.reverse()),this.hostElement.shadowRoot.addEventListener("slotchange",this.slotChangeHandler)}render(){return o(s,{class:this.position?this.position:i.topRight},o("slot",{name:"toasts"}))}get hostElement(){return e(this)}static get watchers(){return{newestontop:["watchPropNewestontop"]}}};n.style=":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}}";export{n as z_toast_notification_list}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as t}from"./p-904a85e4.js";import{k as a}from"./p-0e6906af.js";import{g as i,h as n,d as r}from"./p-f90dd488.js";import"./p-d69e14fb.js";const s=class{constructor(t){e(this,t),this.ismenuopen=!1,this.handleToggle=this.handleToggle.bind(this),this.handleFocus=this.handleFocus.bind(this)}componentWillRender(){this.linkarray="string"==typeof this.menucontent?JSON.parse(this.menucontent):this.menucontent}renderMenuOpen(){if(this.ismenuopen)return t("ul",null,this.linkarray.map((e=>t("li",null,t("z-link",{htmlid:e.id,href:e.link,icon:e.icon},e.label)))))}renderButtonMenu(){return t("span",{class:"arrow"},t("z-icon",{name:"caret-down",width:14,height:14}))}retriveMenuClass(){if(this.ismenuopen)return"menu-opened"}handleToggle(){this.ismenuopen=!this.ismenuopen}handleFocus(e){e instanceof KeyboardEvent&&e.keyCode!==a.TAB||i(r()).find((e=>"z-menu-dropdown"===e.nodeName.toLowerCase()))||(document.removeEventListener("click",this.handleFocus),document.removeEventListener("keyup",this.handleFocus),this.ismenuopen=!1)}render(){return t("a",{class:this.retriveMenuClass(),role:"button",tabindex:"0",onFocus:()=>{document.addEventListener("click",this.handleFocus),document.addEventListener("keyup",this.handleFocus)},onKeyUp:e=>n(e,this.handleToggle)},t("div",{class:"container",onClick:()=>this.handleToggle()},t("span",{class:"user-wrapper"},t("z-icon",{name:"user-avatar",width:14,height:14}),t("span",{class:"user"},this.nomeutente)),this.renderButtonMenu()),this.renderMenuOpen())}};s.style=":host{font-family:var(--dashboard-font);font-weight:var(--font-sb);font-size:12px;height:32px;width:inherit;letter-spacing:0.17px}a,a:visited,a:active{color:inherit;text-decoration:none}:host>a{display:block;background:var(--bg-grey-050);color:var(--text-grey-800);border-radius:var(--border-radius);border:var(--border-size-small) solid transparent;outline:none}:host>a::-moz-focus-inner{border:0}:host>a:hover,:host>a.menu-opened:hover{color:var(--myz-blue-dark);fill:var(--myz-blue-dark)}:host>a:focus{color:var(--myz-blue);fill:var(--myz-blue);border:var(--border-size-small) solid var(--myz-blue);box-shadow:0px 0px 2px 2px var(--myz-blue-light)}:host>a:active{color:var(--myz-blue-light);fill:var(--myz-blue-light);border:var(--border-size-small) solid var(--myz-blue-light);box-shadow:0px 2px 4px 0px rgba(0, 0, 0, 0.4)}div.container{display:flex;align-items:center;justify-content:space-between;height:32px;position:relative;padding:0 var(--basex1)}div.container>span.user-wrapper{display:flex}div.container>span.user-wrapper>span.user{padding:0 var(--basex1);text-overflow:ellipsis;white-space:nowrap;overflow:hidden;cursor:pointer;width:30px}div.container>span.arrow{display:flex;justify-content:center;align-items:center}div.container>span.arrow>z-icon{transform:rotate(360deg);transition:all 200ms linear}ul{list-style:none;padding:0 calc(var(--space-unit) * 2);margin:0px}li{height:var(--basex3);display:flex;align-items:center;padding:calc(var(--space-unit) / 4) 0;width:max-content}.menu-opened{padding-bottom:calc(var(--space-unit) * 2);width:auto !important;min-width:147px;position:inherit}.menu-opened a,.menu-opened a:active,.menu-opened a:visited{color:var(--myz-blue);fill:var(--myz-blue)}.menu-opened a:hover{color:var(--myz-blue-dark);fill:var(--myz-blue-dark)}.menu-opened>div.container{margin-bottom:var(--basex1)}.menu-opened>div.container>span.user-wrapper>span.user{width:auto}.menu-opened>div.container>span.arrow>z-icon{transform:rotate(180deg);transition:all 200ms linear}@media only screen and (min-width: 1152px){:host>a{width:147px;padding:0 calc(var(--space-unit) / 4)}:host>a.menu-opened{width:147px;padding-bottom:calc(var(--space-unit) * 2)}div.container>span.user-wrapper>span.user{width:80px}}";const o=class{constructor(t){e(this,t)}componentWillLoad(){this.inputrawdata&&this.parseinputrawdata(this.inputrawdata)}parseinputrawdata(e){this.list=[...JSON.parse(e)]}oninputrawdataChange(e){this.parseinputrawdata(e)}render(){const e=this.list?this.list.length-1:-1;return t("ul",null,this.list&&this.list.map(((a,i)=>t("z-myz-list-item",{listitemid:a.listitemid,text:a.text,link:a.link,linktarget:a.linktarget,icon:a.icon,underlined:e!=i}))))}static get watchers(){return{inputrawdata:["oninputrawdataChange"]}}};o.style="ul{margin:0;padding:0}";export{s as z_menu_dropdown,o as z_myz_list}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as o,h as i}from"./p-904a85e4.js";const r=class{constructor(i){t(this,i),this.infoBoxClose=o(this,"infoBoxClose",7),this.isclosable=!0}emitInfoBoxClose(){this.infoBoxClose.emit({boxid:this.boxid})}render(){return i("div",{id:this.boxid},i("slot",{name:"content"}),this.isclosable&&i("z-icon",{name:"multiply","data-action":"infoBoxClose",onClick:()=>this.emitInfoBoxClose()}))}};r.style=":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)}";export{r as z_info_box}
|