@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
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-dee3e21d.js');
|
|
6
|
+
const breakpoints = require('./breakpoints-88c4fd6c.js');
|
|
7
|
+
|
|
8
|
+
const stylesCss = ":host,button{max-width:100%}button{height:36px;border:var(--border-size-medium) solid var(--myz-blue);border-radius:var(--border-radius);color:var(--myz-blue);fill:var(--myz-blue);background-color:var(--bg-white);outline:none;padding:0 var(--space-unit);cursor:pointer}button::-moz-focus-inner{border:0}button:hover{border-color:var(--myz-blue-dark);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.selected{border-color:var(--myz-blue-dark);background-color:var(--myz-blue-dark);color:var(--bg-white);fill:var(--bg-white)}button>label{cursor:pointer;font-family:var(--dashboard-font);font-weight:var(--font-sb);font-size:14px;display:flex;align-items:center}button>label>span.ellipsis{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin:0;padding:0}button>label>span.counter{margin-left:calc(var(--space-unit) / 2);margin-right:calc(var(--space-unit) * 2)}button>label>span.sort{margin-right:var(--half-x1);white-space:nowrap}button>span{font-family:var(--dashboard-font);font-weight:var(--font-rg);font-size:14px;margin-right:calc(var(--space-unit) * 0.5)}button>z-icon{padding-top:calc(var(--space-unit) * 0.5)}@media only screen and (min-width: 768px){:host,button{max-width:325px}}@media only screen and (min-width: 1025px){:host,button{max-width:490px}}";
|
|
9
|
+
|
|
10
|
+
const ZButtonSort = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
this.buttonSortClick = index.createEvent(this, "buttonSortClick", 7);
|
|
14
|
+
/** sort label content (ascending) (optional) */
|
|
15
|
+
this.sortlabelasc = "A-Z";
|
|
16
|
+
/** sort label content (descending) (optional) */
|
|
17
|
+
this.sortlabeldesc = "Z-A";
|
|
18
|
+
/** selected flag (optional) */
|
|
19
|
+
this.isselected = false;
|
|
20
|
+
/** sortable flag (optional) */
|
|
21
|
+
this.sortasc = true;
|
|
22
|
+
this.allowTooltip = false;
|
|
23
|
+
}
|
|
24
|
+
emitButtonSortClick() {
|
|
25
|
+
if (!this.isselected) {
|
|
26
|
+
this.isselected = true;
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
this.sortasc = !this.sortasc;
|
|
30
|
+
}
|
|
31
|
+
this.buttonSortClick.emit({
|
|
32
|
+
buttonid: this.buttonid,
|
|
33
|
+
sortAsc: this.sortasc,
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
componentDidLoad() {
|
|
37
|
+
if (this.elementHasEllipsis() && window.innerWidth > breakpoints.tabletBreakpoint)
|
|
38
|
+
this.allowTooltip = true;
|
|
39
|
+
}
|
|
40
|
+
setButtonTitle() {
|
|
41
|
+
return this.allowTooltip
|
|
42
|
+
? `${this.sortasc ? this.label : this.desclabel}`
|
|
43
|
+
: "";
|
|
44
|
+
}
|
|
45
|
+
elementHasEllipsis() {
|
|
46
|
+
return this.ellipsis.offsetWidth < this.ellipsis.scrollWidth;
|
|
47
|
+
}
|
|
48
|
+
render() {
|
|
49
|
+
return (index.h("button", { title: this.setButtonTitle(), id: this.buttonid, class: this.isselected && "selected", onClick: () => this.emitButtonSortClick() }, index.h("label", null, index.h("span", { ref: (el) => (this.ellipsis = el), class: "ellipsis" }, !this.sortasc && this.desclabel ? this.desclabel : this.label), index.h("span", { class: "counter" }, this.counter && ` (${this.counter})`), index.h("span", { class: "sort" }, this.sortasc ? this.sortlabelasc : this.sortlabeldesc), index.h("z-icon", { name: "caret-up-down", width: 16, height: 16 }))));
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
ZButtonSort.style = stylesCss;
|
|
53
|
+
|
|
54
|
+
exports.z_button_sort = ZButtonSort;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-dee3e21d.js');
|
|
6
|
+
const index$1 = require('./index-de6c491e.js');
|
|
7
|
+
|
|
8
|
+
const stylesCss = ":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)}";
|
|
9
|
+
|
|
10
|
+
const ZCard = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
this.cardClicked = index.createEvent(this, "cardClicked", 7);
|
|
14
|
+
/** Enable click interactions on the card. Default: false */
|
|
15
|
+
this.clickable = false;
|
|
16
|
+
}
|
|
17
|
+
onClick(ev) {
|
|
18
|
+
// Do nothing for clicks on actions.
|
|
19
|
+
if (ev.target.getAttribute('slot') === 'action') {
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
if (!this.clickable) {
|
|
23
|
+
ev.preventDefault();
|
|
24
|
+
ev.stopPropagation();
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
this.cardClicked.emit();
|
|
28
|
+
}
|
|
29
|
+
componentWillLoad() {
|
|
30
|
+
this.hasCoverImage = !!this.host.querySelector('[slot="cover"]');
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Template for a card without image cover.
|
|
34
|
+
* A colored background replaces the image and some data is moved over it.
|
|
35
|
+
*/
|
|
36
|
+
renderColorCoverCard() {
|
|
37
|
+
return [
|
|
38
|
+
index.h("div", { class: "cover-container" }, index.h("div", { class: "color-cover" }, index.h("div", { class: "cover-content" }, index.h("slot", { name: "metadata" }), index.h("slot", { name: "title" })))),
|
|
39
|
+
index.h("div", { class: "content" }, index.h("slot", { name: "text" }), index.h("div", { class: "actions" }, index.h("slot", { name: "action" })))
|
|
40
|
+
];
|
|
41
|
+
}
|
|
42
|
+
render() {
|
|
43
|
+
if (this.variant === index$1.CardVariants.overlay || this.hasCoverImage) {
|
|
44
|
+
return [
|
|
45
|
+
index.h("div", { class: "cover-container" }, this.hasCoverImage && [
|
|
46
|
+
index.h("slot", { name: "cover" }),
|
|
47
|
+
(this.variant !== index$1.CardVariants.overlay) && this.coverIcon && index.h("z-icon", { name: this.coverIcon })
|
|
48
|
+
], !this.hasCoverImage && index.h("div", { class: "color-cover" })),
|
|
49
|
+
index.h("div", { class: "content" }, index.h("slot", { name: "metadata" }), index.h("slot", { name: "title" }), index.h("slot", { name: "text" }), index.h("div", { class: "actions" }, index.h("slot", { name: "action" })))
|
|
50
|
+
];
|
|
51
|
+
}
|
|
52
|
+
return this.renderColorCoverCard();
|
|
53
|
+
}
|
|
54
|
+
get host() { return index.getElement(this); }
|
|
55
|
+
};
|
|
56
|
+
ZCard.style = stylesCss;
|
|
57
|
+
|
|
58
|
+
exports.z_card = ZCard;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-dee3e21d.js');
|
|
6
|
+
|
|
7
|
+
const stylesCss = ":host>div{display:inline-block;min-height:28px;line-height:28px;padding:0 calc(var(--space-unit) * 1.5);background-color:var(--bg-white);border:var(--border-size-small) solid var(--bg-grey-200);border-radius:14px;color:var(--text-grey-800);fill:var(--text-grey-800);font-family:var(--dashboard-font);font-size:12px}.boldtext{font-weight:bold}";
|
|
8
|
+
|
|
9
|
+
const ZChip = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
}
|
|
13
|
+
renderLegacyChip() {
|
|
14
|
+
return index.h("div", null, index.h("span", { class: "boldtext" }, this.boldtext), " ", this.regulartext);
|
|
15
|
+
}
|
|
16
|
+
render() {
|
|
17
|
+
return this.boldtext != null || this.regulartext != null ?
|
|
18
|
+
this.renderLegacyChip() :
|
|
19
|
+
index.h("div", null, index.h("slot", null));
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
ZChip.style = stylesCss;
|
|
23
|
+
|
|
24
|
+
exports.z_chip = ZChip;
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-dee3e21d.js');
|
|
6
|
+
const index$1 = require('./index-de6c491e.js');
|
|
7
|
+
const utils = require('./utils-12053886.js');
|
|
8
|
+
require('./breakpoints-88c4fd6c.js');
|
|
9
|
+
|
|
10
|
+
const stylesCss = ":host{display:block}:host>div.fixed{position:relative;height:42px}:host>div>.header{background-color:var(--bg-white);border-radius:var(--border-radius-small);border:var(--border-size-small) solid var(--bg-grey-700);position:relative;z-index:10;min-height:42px;margin:0;padding:0 calc(var(--space-unit) * 2);display:flex;justify-content:space-between;align-items:center;cursor:pointer}:host>div>.header:focus:focus-visible{border:var(--border-size-small) solid var(--blue500);box-shadow:var(--shadow-focus-primary);outline:none}:host>div>.header>z-body{margin:0;padding:var(--space-unit) 0;color:var(--text-grey-800)}:host>div>.header>z-body>span{font-weight:var(--font-sb)}:host>div>.header>z-icon{fill:var(--text-grey-800);transform:rotate(360deg);transition:all 200ms linear}:host>div.open>.header{border-radius:var(border-radius-small) var(border-radius-small) 0 0;border:var(--border-size-small) solid var(--blue500)}:host>div.open>.header>z-icon{fill:var(--text-grey-800);transform:rotate(180deg);transition:all 200ms linear}:host>div.open>div.openComboData{background-color:var(--bg-white);border-radius:0;border:var(--border-size-small) solid var(--gray200);border-top:0px;position:relative;z-index:12;padding:var(--space-unit) calc(var(--space-unit) * 2)}:host>div.open>div.openComboData>div{padding:0;max-height:235px;overflow:auto;scrollbar-width:thin;scrollbar-color:var(--myz-blue) var(--gray200)}:host>div.open>div.openComboData>z-input{margin-bottom:calc(var(--space-unit) * 2);width:100%}:host>div.open>div.openComboData>div>ul{margin:0;padding:0 3px;max-height:235px}::-webkit-scrollbar{background:linear-gradient(\n 90deg,\n var(--bg-white) 2px,\n var(--bg-grey-200) 4px,\n var(--bg-white) 8px\n );border-radius:var(--border-radius);width:10px}::-webkit-scrollbar-thumb{background-color:var(--myz-blue);border-radius:var(--border-radius);width:10px}:host>div.open>z-input{color:var(--myz-blue);margin:0 calc(var(--space-unit) * 2);width:238px;position:relative;z-index:1}:host>div.open>div.openComboData>div.search{box-shadow:1px 1px 4px 2px rgba(217, 222, 227, 0.5);margin-top:0;max-height:auto;overflow:hidden}:host>div.open>div.openComboData>div.search>ul{padding:var(--space-unit) calc(var(--space-unit) * 2);max-height:180px;overflow:auto;scrollbar-width:thin;scrollbar-color:var(--myz-blue) var(--bg-grey-200)}:host>div.open>div.openComboData>div.search>div{display:flex;justify-content:center}:host>div.open>div.openComboData>div.search>div>a{display:inline-block;cursor:pointer;color:var(--myz-blue);font-family:var(--dashboard-font);font-weight:var(--font-sb);font-size:14px;height:44px;line-height:44px;text-align:center;text-transform:uppercase}:host>div.open>div.openComboData>div.checkAllWrapper{padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * .5);text-align:left}";
|
|
11
|
+
|
|
12
|
+
const ZCombobox = class {
|
|
13
|
+
constructor(hostRef) {
|
|
14
|
+
index.registerInstance(this, hostRef);
|
|
15
|
+
this.comboboxChange = index.createEvent(this, "comboboxChange", 7);
|
|
16
|
+
/** show search input flag (optional) */
|
|
17
|
+
this.hassearch = false;
|
|
18
|
+
/** no result text message */
|
|
19
|
+
this.noresultslabel = "Nessun risultato";
|
|
20
|
+
/** toggle combo list opening flag */
|
|
21
|
+
this.isopen = false;
|
|
22
|
+
/** fixed style flag */
|
|
23
|
+
this.isfixed = false;
|
|
24
|
+
/** close combobox list text */
|
|
25
|
+
this.closesearchtext = "Chiudi";
|
|
26
|
+
/** show "check all" checkbox (optional) */
|
|
27
|
+
this.hascheckall = false;
|
|
28
|
+
/** check all label (optional) */
|
|
29
|
+
this.checkalltext = "Seleziona tutti";
|
|
30
|
+
/** uncheck all label (optional) */
|
|
31
|
+
this.uncheckalltext = "Deseleziona tutti";
|
|
32
|
+
/** max number of checkable items (0 = unlimited) */
|
|
33
|
+
this.maxcheckableitems = 0;
|
|
34
|
+
this.renderItemsList = []; // used for render only
|
|
35
|
+
this.itemsList = [];
|
|
36
|
+
this.inputType = index$1.InputTypeEnum.text;
|
|
37
|
+
this.toggleComboBox = this.toggleComboBox.bind(this);
|
|
38
|
+
this.closeFilterItems = this.closeFilterItems.bind(this);
|
|
39
|
+
}
|
|
40
|
+
watchItems() {
|
|
41
|
+
this.itemsList =
|
|
42
|
+
typeof this.items === "string" ? JSON.parse(this.items) : this.items;
|
|
43
|
+
this.selectedCounter = this.itemsList.filter((item) => item.checked).length;
|
|
44
|
+
if (this.searchValue) {
|
|
45
|
+
this.filterItems(this.searchValue);
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
this.resetRenderItemsList();
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
inputCheckListener(e) {
|
|
52
|
+
const id = e.detail.id.replace(`combo-checkbox-${this.inputid}-`, "");
|
|
53
|
+
if (id === "check-all" &&
|
|
54
|
+
(!this.maxcheckableitems ||
|
|
55
|
+
this.maxcheckableitems >= this.itemsList.length)) {
|
|
56
|
+
return this.checkAll(e.detail.checked);
|
|
57
|
+
}
|
|
58
|
+
this.itemsList = this.itemsList.map((item) => {
|
|
59
|
+
if (item.id === id)
|
|
60
|
+
item.checked = e.detail.checked;
|
|
61
|
+
return item;
|
|
62
|
+
});
|
|
63
|
+
this.resetRenderItemsList();
|
|
64
|
+
this.emitComboboxChange();
|
|
65
|
+
}
|
|
66
|
+
emitComboboxChange() {
|
|
67
|
+
this.comboboxChange.emit({ id: this.inputid, items: this.itemsList });
|
|
68
|
+
}
|
|
69
|
+
componentWillLoad() {
|
|
70
|
+
this.watchItems();
|
|
71
|
+
}
|
|
72
|
+
componentWillRender() {
|
|
73
|
+
this.selectedCounter = this.itemsList.filter((item) => item.checked).length;
|
|
74
|
+
if (this.searchValue) {
|
|
75
|
+
this.filterItems(this.searchValue);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
resetRenderItemsList() {
|
|
79
|
+
const renderItemsList = [];
|
|
80
|
+
this.itemsList.forEach((item) => {
|
|
81
|
+
renderItemsList.push(Object.assign({}, item));
|
|
82
|
+
});
|
|
83
|
+
this.renderItemsList = renderItemsList;
|
|
84
|
+
}
|
|
85
|
+
filterItems(value) {
|
|
86
|
+
if (!value)
|
|
87
|
+
return this.closeFilterItems();
|
|
88
|
+
this.searchValue = value;
|
|
89
|
+
this.resetRenderItemsList();
|
|
90
|
+
this.renderItemsList = this.renderItemsList.filter((item) => {
|
|
91
|
+
const start = item.name.toUpperCase().indexOf(value.toUpperCase());
|
|
92
|
+
const end = start + value.length;
|
|
93
|
+
const newName = item.name.substring(0, start) +
|
|
94
|
+
item.name.substring(start, end).bold() +
|
|
95
|
+
item.name.substring(end, item.name.length);
|
|
96
|
+
item.name = newName;
|
|
97
|
+
return start >= 0;
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
checkAll(checked = true) {
|
|
101
|
+
this.itemsList = this.itemsList.map((item) => (Object.assign(Object.assign({}, item), { checked: checked })));
|
|
102
|
+
this.resetRenderItemsList();
|
|
103
|
+
this.emitComboboxChange();
|
|
104
|
+
}
|
|
105
|
+
closeFilterItems() {
|
|
106
|
+
this.searchValue = "";
|
|
107
|
+
this.resetRenderItemsList();
|
|
108
|
+
}
|
|
109
|
+
toggleComboBox() {
|
|
110
|
+
this.isopen = !this.isopen;
|
|
111
|
+
}
|
|
112
|
+
renderHeader() {
|
|
113
|
+
return (index.h("div", { class: "header", onClick: () => this.toggleComboBox(), onKeyDown: (ev) => {
|
|
114
|
+
if (ev.keyCode === index$1.keybordKeyCodeEnum.SPACE)
|
|
115
|
+
ev.preventDefault();
|
|
116
|
+
}, onKeyUp: (ev) => utils.handleKeyboardSubmit(ev, this.toggleComboBox), role: "button", tabindex: 0 }, index.h("z-body", { level: 3, component: "p" }, this.label, index.h("span", null, this.selectedCounter > 0 && ` (${this.selectedCounter})`)), index.h("z-icon", { name: "caret-down", width: 18, height: 18 })));
|
|
117
|
+
}
|
|
118
|
+
renderContent() {
|
|
119
|
+
if (!this.isopen)
|
|
120
|
+
return;
|
|
121
|
+
return (index.h("div", { class: "openComboData" }, this.hassearch && this.renderSearchInput(), this.hascheckall && this.renderCheckAll(), this.renderItems()));
|
|
122
|
+
}
|
|
123
|
+
renderItems() {
|
|
124
|
+
if (!this.isopen)
|
|
125
|
+
return;
|
|
126
|
+
return (index.h("div", { class: this.searchValue && "search", tabindex: -1 }, this.renderList(this.renderItemsList), this.searchValue && this.renderCloseButton()));
|
|
127
|
+
}
|
|
128
|
+
renderList(items) {
|
|
129
|
+
if (!items)
|
|
130
|
+
return;
|
|
131
|
+
if (!items.length && this.searchValue)
|
|
132
|
+
return this.renderNoSearchResults();
|
|
133
|
+
return (index.h("ul", null, items.map((item, i) => {
|
|
134
|
+
return (index.h("z-myz-list-item", { id: item.id, listitemid: item.id, action: `combo-li-${this.inputid}`, underlined: i !== items.length - 1 }, index.h("z-input", { type: index$1.InputTypeEnum.checkbox, checked: item.checked, htmlid: `combo-checkbox-${this.inputid}-${item.id}`, label: item.name, disabled: !item.checked &&
|
|
135
|
+
this.maxcheckableitems &&
|
|
136
|
+
this.maxcheckableitems === this.selectedCounter })));
|
|
137
|
+
})));
|
|
138
|
+
}
|
|
139
|
+
renderNoSearchResults() {
|
|
140
|
+
return (index.h("ul", null, index.h("z-myz-list-item", { id: "no-results", text: this.noresultslabel, listitemid: "no-results", icon: "multiply-circle" })));
|
|
141
|
+
}
|
|
142
|
+
renderCloseButton() {
|
|
143
|
+
return (index.h("div", null, index.h("a", { onClick: () => this.closeFilterItems(), onKeyUp: (e) => utils.handleKeyboardSubmit(e, this.closeFilterItems), role: "button", tabindex: 0 }, this.closesearchtext)));
|
|
144
|
+
}
|
|
145
|
+
renderSearchInput() {
|
|
146
|
+
if (!this.isopen)
|
|
147
|
+
return;
|
|
148
|
+
return (index.h("z-input", { htmlid: `${this.inputid}_search`, label: this.searchlabel, placeholder: this.searchplaceholder, htmltitle: this.searchtitle, type: this.inputType, value: this.searchValue, hasmessage: false, onInputChange: (e) => {
|
|
149
|
+
if (e.detail.keycode === 27)
|
|
150
|
+
return this.closeFilterItems();
|
|
151
|
+
this.filterItems(e.detail.value);
|
|
152
|
+
} }));
|
|
153
|
+
}
|
|
154
|
+
renderCheckAll() {
|
|
155
|
+
if (this.searchValue)
|
|
156
|
+
return;
|
|
157
|
+
const allChecked = this.selectedCounter === this.itemsList.length;
|
|
158
|
+
return (index.h("div", { class: "checkAllWrapper" }, index.h("z-input", { type: index$1.InputTypeEnum.checkbox, checked: allChecked, htmlid: `combo-checkbox-${this.inputid}-check-all`, label: allChecked ? this.uncheckalltext : this.checkalltext, disabled: this.maxcheckableitems &&
|
|
159
|
+
this.maxcheckableitems < this.itemsList.length })));
|
|
160
|
+
}
|
|
161
|
+
render() {
|
|
162
|
+
return (index.h("div", { "data-action": `combo-${this.inputid}`, class: `${this.isopen ? "open" : ""} ${this.isfixed ? "fixed" : ""}`, id: this.inputid }, this.renderHeader(), this.renderContent()));
|
|
163
|
+
}
|
|
164
|
+
static get watchers() { return {
|
|
165
|
+
"items": ["watchItems"]
|
|
166
|
+
}; }
|
|
167
|
+
};
|
|
168
|
+
ZCombobox.style = stylesCss;
|
|
169
|
+
|
|
170
|
+
exports.z_combobox = ZCombobox;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-dee3e21d.js');
|
|
6
|
+
const index$1 = require('./index-de6c491e.js');
|
|
7
|
+
|
|
8
|
+
const stylesCss = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host(:focus-within)>z-popover{box-shadow:var(--shadow-focus-primary)}.popover-content-container{min-width:112px;max-width:280px;white-space:nowrap;padding:calc(var(--space-unit) / 2) 0}.element-container:hover{color:var(--myz-blue-dark);fill:var(--myz-blue-dark)}.element-text{overflow:hidden;text-overflow:ellipsis;font-size:14px}.element-container,.disabled-element-container{display:flex;align-items:center;gap:var(--space-unit);fill:var(--color-disabled03);padding:calc(var(--space-unit) / 2) var(--space-unit);min-height:calc(var(--space-unit) * 4);box-sizing:border-box}.element-container{fill:var(--color-primary01)}.element-icon{display:flex}";
|
|
9
|
+
|
|
10
|
+
const ZContextualMenu = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
this.clickContextualMenu = index.createEvent(this, "clickContextualMenu", 7);
|
|
14
|
+
/**
|
|
15
|
+
* [optional] Sets text color of ZContextualMenu's content
|
|
16
|
+
*/
|
|
17
|
+
this.color = "color-primary01";
|
|
18
|
+
/**
|
|
19
|
+
* [optional] Sets the position of the popover
|
|
20
|
+
*/
|
|
21
|
+
this.popoverPosition = index$1.PopoverPosition["after-down"];
|
|
22
|
+
}
|
|
23
|
+
componentWillRender() {
|
|
24
|
+
if (this.elements) {
|
|
25
|
+
this.jsonElements = JSON.parse(this.elements.replace(/"/g, '"'));
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
showIcon() {
|
|
29
|
+
return !this.jsonElements.some((element) => !element.icon);
|
|
30
|
+
}
|
|
31
|
+
render() {
|
|
32
|
+
var _a;
|
|
33
|
+
return (index.h(index.Host, null, index.h("z-popover", { "background-color": "color-background", "box-shadow": "shadow-2", position: this.popoverPosition, padding: "0" }, index.h("z-icon", { "aria-label": "apri-menu-contestuale", slot: "trigger", name: "contextual-menu", fill: this.color, style: { cursor: "pointer" } }), index.h("div", { class: "popover-content-container", slot: "popover" }, index.h("z-list", null, index.h("z-list-group", { "divider-type": "element" }, (_a = this.jsonElements) === null || _a === void 0 ? void 0 : _a.map((element, index$1) => (index.h("z-list-element", { clickable: !element.disabled, class: "my-z-list-element", "align-button": "left", "expandable-style": "accordion", color: element.disabled ? `color-disabled03` : this.color, isContextualMenu: true, listElementId: index$1, onClickItem: (event) => this.clickContextualMenu.emit(event.detail) }, index.h("div", { class: element.disabled
|
|
34
|
+
? "disabled-element-container"
|
|
35
|
+
: "element-container" }, this.showIcon() && (index.h("div", { class: "element-icon" }, index.h("z-icon", { name: element.icon, width: 16, height: 16 }))), index.h("div", { class: "element-text" }, index.h("span", null, element.text))))))))))));
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
ZContextualMenu.style = stylesCss;
|
|
39
|
+
|
|
40
|
+
exports.z_contextual_menu = ZContextualMenu;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-dee3e21d.js');
|
|
6
|
-
const index$1 = require('./index-
|
|
6
|
+
const index$1 = require('./index-de6c491e.js');
|
|
7
7
|
|
|
8
8
|
const stylesCss = ":host{font-family:var(--dashboard-font);font-weight:var(--font-rg)}z-candybar.hidden{display:none}.content{display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:space-between;align-items:stretch;align-content:space-between;color:var(--text-grey-800);border-radius:calc(var(--space-unit) * .5);font-size:16px;letter-spacing:0px;line-height:24px;padding:calc(var(--space-unit) * 3) calc(var(--space-unit) * 2)}.content>div>h2{margin:0;padding:0;color:var(--text-grey-800);border-radius:0px;font-size:18px;font-weight:var(--font-sb);letter-spacing:0px}.content>div>div{padding:calc(var(--space-unit) * 3) 0;font-size:14px;letter-spacing:0.16px;line-height:20px}.content>div>div>p{margin:0}.content>div>div>p>a{cursor:pointer;font-weight:var(--font-sb);color:var(--text-grey-800);text-decoration:underline;height:14px;display:inline-flex}.content>div>div>p>a:visited{color:var(--text-grey-800);cursor:pointer;z-index:1000}.content>z-button{margin:0;width:100%}@media only screen and (min-width: 768px){.content{width:100%;flex-direction:row;align-items:center;font-size:16px;letter-spacing:0px;line-height:24px;padding:calc(var(--space-unit) * 4) calc(var(--space-unit) * 3)}.content>div{width:560px}.content>div>h2{height:calc(var(--space-unit) * 3.5)}.content>div>div{padding:0}.content>z-button{margin:0;width:initial}}@media only screen and (min-width: 1152px){.content>div{width:935px}}@media only screen and (min-width: 1366px){.content{padding-left:calc(var(--space-unit) * 4);padding-right:calc(var(--space-unit) * 4)}}";
|
|
9
9
|
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-dee3e21d.js');
|
|
6
|
+
const index$1 = require('./index-de6c491e.js');
|
|
7
|
+
|
|
8
|
+
const stylesCss = ".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)}";
|
|
9
|
+
|
|
10
|
+
const ZDivider = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
/** [optional] Divider size */
|
|
14
|
+
this.size = index$1.DividerSize.small;
|
|
15
|
+
/** [optional] Divider color */
|
|
16
|
+
this.color = "gray200";
|
|
17
|
+
/** [optional] Divider orintation */
|
|
18
|
+
this.orientation = index$1.DividerOrientation.horizontal;
|
|
19
|
+
}
|
|
20
|
+
render() {
|
|
21
|
+
return (index.h(index.Host, { class: `divider-${this.size} divider-${this.orientation}`, style: { backgroundColor: `var(--${this.color})` } }));
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
ZDivider.style = stylesCss;
|
|
25
|
+
|
|
26
|
+
exports.z_divider = ZDivider;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-dee3e21d.js');
|
|
6
|
+
|
|
7
|
+
const stylesCss$2 = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>a{display:inline-block;color:var(--color-white);padding:calc(var(--space-unit) / 2 * 3) 0;border-bottom:1px solid var(--gray50);text-decoration:none;font-size:14px;width:100%}@media only screen and (min-width: 768px){:host a{font-size:12px;border-bottom:none;text-decoration:underline;padding:0;width:initial}}";
|
|
8
|
+
|
|
9
|
+
const ZFooterLink = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
}
|
|
13
|
+
render() {
|
|
14
|
+
return (index.h("a", { href: this.href, target: "_blank" }, index.h("slot", null)));
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
ZFooterLink.style = stylesCss$2;
|
|
18
|
+
|
|
19
|
+
const stylesCss$1 = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>nav{background-color:var(--gray900);display:flex;flex-direction:column;justify-items:flex-start;overflow:hidden;margin:calc(var(--space-unit) / 2) 0;padding:0}:host>nav>.header{position:relative;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;align-items:stretch;align-content:flex-start;height:calc(var(--space-unit) * 4);border-bottom:1px solid var(--gray50);line-height:1}:host>nav>.header>h2{color:var(--color-white);font-size:16px;margin:var(--space-unit) 0}:host>nav>.header{fill:var(--color-white)}:host>nav>.header>button{position:absolute;top:var(--space-unit);right:0;margin:0;padding:0;background:transparent;border:0;appearance:none;cursor:pointer}:host>nav>.header>z-icon{display:block}:host>nav>.content{background-color:var(--gray800);display:none;height:0;transition:0.3s ease;padding:calc(var(--space-unit) * 3) calc(var(--space-unit) * 2)}:host>nav>.content.show{display:block;height:auto;transition:0.3s ease}@media only screen and (min-width: 768px){:host>nav{display:grid;grid-template-columns:repeat(4, 1fr);grid-template-rows:1fr;grid-column-gap:var(--grid-tablet-margin);padding:calc(var(--space-unit) * 2) 0;border-bottom:1px solid var(--color-white);margin:0;background-color:var(--gray800)}:host>nav>.header>button.toggleButton{display:none}:host>nav>.header{border-bottom:none;padding:0;margin:0}:host>nav>.header>h2{border:none}:host>nav>.content,:host>nav>.content.show{grid-column:span 3;width:100%;padding:0;margin:0;display:grid;grid-template-columns:repeat(3, 1fr);grid-column-gap:var(--grid-tablet-margin);grid-row-gap:var(--space-unit);height:auto;align-items:stretch;align-content:stretch;margin:0}}@media only screen and (min-width: 1152px){:host>nav{display:grid;grid-template-columns:1fr;grid-template-rows:40px 4fr;padding:0;border-bottom:none}:host>nav>.header{position:relative;display:inline-flex;height:24px}:host>nav>.header>h2{width:auto;font-size:16px;line-height:1;font-weight:600;color:var(--gray50);padding:0 0 var(--space-unit);margin:0}:host>nav>.header::after{content:\"\";display:block;position:absolute;top:100%;left:0;width:120px;border-bottom:1px solid var(--gray50)}:host>nav>.content,:host>nav>.content.show{grid-column:auto;display:flex;flex-direction:column;flex-wrap:wrap;justify-content:flex-start}}";
|
|
20
|
+
|
|
21
|
+
const ZFooterSection = class {
|
|
22
|
+
constructor(hostRef) {
|
|
23
|
+
index.registerInstance(this, hostRef);
|
|
24
|
+
this.isOpen = false;
|
|
25
|
+
}
|
|
26
|
+
renderToggleButton() {
|
|
27
|
+
return (index.h("button", { class: "toggleButton", onClick: () => (this.isOpen = !this.isOpen) }, index.h("z-icon", { name: this.isOpen ? "chevron-up" : "chevron-down", width: 16, height: 16 })));
|
|
28
|
+
}
|
|
29
|
+
render() {
|
|
30
|
+
return (index.h("nav", null, index.h("div", { class: "header" }, index.h("h2", null, this.name), this.renderToggleButton()), index.h("div", { class: `content ${this.isOpen ? "show" : ""}` }, index.h("slot", null))));
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
ZFooterSection.style = stylesCss$1;
|
|
34
|
+
|
|
35
|
+
const stylesCss = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>a>img{width:calc(var(--space-unit) * 3)}@media only screen and (min-width: 1152px){:host>a>img{width:16px}}";
|
|
36
|
+
|
|
37
|
+
const ZFooterSocial = class {
|
|
38
|
+
constructor(hostRef) {
|
|
39
|
+
index.registerInstance(this, hostRef);
|
|
40
|
+
}
|
|
41
|
+
render() {
|
|
42
|
+
return (index.h("a", { href: this.href, target: "_blank" }, index.h("img", { src: this.icon, alt: this.description })));
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
ZFooterSocial.style = stylesCss;
|
|
46
|
+
|
|
47
|
+
exports.z_footer_link = ZFooterLink;
|
|
48
|
+
exports.z_footer_section = ZFooterSection;
|
|
49
|
+
exports.z_footer_social = ZFooterSocial;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-dee3e21d.js');
|
|
6
|
+
const index$1 = require('./index-de6c491e.js');
|
|
7
|
+
|
|
8
|
+
const stylesCss = ":host{width:100%}footer{width:auto;height:auto;box-sizing:border-box;font-family:var(--font-family-sans);font-size:13px;padding:var(--space-unit) 0;background-color:var(--gray900);color:var(--gray50)}footer *{box-sizing:border-box}footer>section>div{display:grid}#top{padding:0 calc(var(--space-unit) * 2)}#bottom{width:auto;height:auto;margin:0;padding:0 calc(var(--space-unit) * 2);white-space:pre-line;font-size:12px}#bottom>div{display:grid;grid-template-columns:1fr}#bottom>div>div.item{display:flex;flex-direction:column;align-items:flex-start;grid-column:span 1;height:auto;width:auto;padding:calc(var(--space-unit) * 2) 0}#bottom>div>div.item:nth-child(1){order:2}#bottom>div>div.item:nth-child(2){order:1;border-bottom:1px solid var(--gray50)}#bottom>div>div.item>div.social{display:grid;grid-template-columns:repeat(5, 1fr);grid-template-rows:repeat(auto-fill, 24px);column-gap:12px;padding:0;margin-bottom:0px}#bottom>div>div.bottom-links{display:none}#bottom>div>div.item>p{margin:var(--space-unit) 0;padding:var(--space-unit) 0}#bottom>div>div.item>p:first-child{margin-top:0}#bottom>div>div.item>p:last-child{margin-bottom:0}#bottom>div>div.logo>p>span{display:block}#extension{padding:0 calc(var(--space-unit) * 2)}#extension>div{display:grid;grid-template-columns:1fr;grid-row-gap:var(--space-unit);align-items:center}#extension z-divider{margin-top:var(--space-unit)}#extension z-button{margin-left:var(--space-unit)}div.limited-width{margin:auto;max-width:var(--mw)}@media only screen and (min-width: 768px){footer{padding:0}#top{background-color:var(--gray800);padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 3)}#top z-footer-section:last-child{display:none}#bottom{background-color:var(--gray900);padding:0 calc(var(--space-unit) * 3)}#bottom>div{grid-template-columns:repeat(4, 1fr);grid-column-gap:var(--grid-tablet-margin)}#bottom>div>div.item{margin:0}#bottom>div>div.item:nth-child(1){order:1}#bottom>div>div.item:nth-child(2){order:2;border-bottom:none}#bottom>div>div.item>p{padding-top:0}#bottom>div>div.logo>z-logo{width:auto;height:39px}#bottom>div>div.bottom-links{display:block;grid-column:span 2;order:3}#bottom>div>div.bottom-links{display:grid;grid-template-columns:repeat(2, 1fr);grid-template-rows:repeat(auto-fill, 24px);grid-column-gap:var(--grid-tablet-margin);font-size:12px}#extension{margin:auto;padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 3) 0;background-color:var(--gray800);color:white;grid-template-columns:1fr 1fr}#extension>div>div{text-align:end}#extension z-divider{grid-column:1 / span 2}}@media only screen and (min-width: 1152px){#top{width:100%}#top>div{grid-template-columns:repeat(6, 1fr);grid-column-gap:var(--grid-desktop-margin)}#bottom>div>div.item:nth-child(1)>p:nth-of-type(2){font-size:10px}#bottom>div>div.item>p{padding-bottom:0;margin-bottom:calc(var(--space-unit) * 2)}#bottom>div>div.item>div.social{margin-top:0}#bottom>div>div.bottom-links{padding:calc(var(--space-unit) * 2) 0 0 0}#bottom>div>div.bottom-links{grid-template-columns:repeat(3, 1fr);grid-column-gap:var(--grid-desktop-margin);margin:0}}@media only screen and (min-width: 1366px){#top{padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 4)}#bottom{padding:0 calc(var(--space-unit) * 4)}#extension{padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 4) 0}}";
|
|
9
|
+
|
|
10
|
+
const ZFooter = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
this.creditsLinkClick = index.createEvent(this, "creditsLinkClick", 7);
|
|
14
|
+
this.reportAProblemButtonClick = index.createEvent(this, "reportAProblemButtonClick", 7);
|
|
15
|
+
this.creditsLinkId = "creditsLinkId";
|
|
16
|
+
this.emitReportAProblemButtonClick = this.emitReportAProblemButtonClick.bind(this);
|
|
17
|
+
}
|
|
18
|
+
componentWillLoad() {
|
|
19
|
+
if (this.data) {
|
|
20
|
+
console.warn("z-footer: `data` prop is deprecated and will be removed in a future version. Use slots instead.");
|
|
21
|
+
this.jsonData = JSON.parse(this.data);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
zLinkClickListener(e) {
|
|
25
|
+
if (e.detail.linkId === this.creditsLinkId) {
|
|
26
|
+
this.emitCreditsLinkClick();
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
emitCreditsLinkClick() {
|
|
30
|
+
this.creditsLinkClick.emit();
|
|
31
|
+
}
|
|
32
|
+
emitReportAProblemButtonClick() {
|
|
33
|
+
this.reportAProblemButtonClick.emit();
|
|
34
|
+
}
|
|
35
|
+
renderZLogo() {
|
|
36
|
+
return (index.h("z-logo", { link: "https://www.zanichelli.it", width: 144, height: 38, imageAlt: "Home Zanichelli", targetBlank: true }));
|
|
37
|
+
}
|
|
38
|
+
renderAddress() {
|
|
39
|
+
return (index.h("p", null, "Zanichelli editore S.p.A. via Irnerio 34, 40126 Bologna", index.h("br", null), "Fax 051 - 249.782 / 293.224 | Tel. 051 - 293.111 / 245.024", index.h("br", null), "Partita IVA 03978000374"));
|
|
40
|
+
}
|
|
41
|
+
renderSocial() {
|
|
42
|
+
return (index.h("div", { class: "social" }, index.h("slot", { name: "social" }), this.renderFooterSocialJsonData()));
|
|
43
|
+
}
|
|
44
|
+
renderCopyright() {
|
|
45
|
+
return (index.h("p", null, "Copyright \u2013 2018-", new Date().getFullYear(), " Zanichelli", index.h("span", null, "All rights reserved")));
|
|
46
|
+
}
|
|
47
|
+
renderCertification() {
|
|
48
|
+
return (index.h("p", null, "Zanichelli editore S.p.A. opera con sistema qualit\u00E0 certificato CertiCarGraf n. 477", index.h("br", null), "secondo la norma UNI EN ISO 9001:2015"));
|
|
49
|
+
}
|
|
50
|
+
renderBottomLinks() {
|
|
51
|
+
return (index.h("div", { class: "item bottom-links" }, index.h("slot", { name: "links" }), this.renderFooterBottomJsonData()));
|
|
52
|
+
}
|
|
53
|
+
renderFooterBottom() {
|
|
54
|
+
return (index.h("section", { id: "bottom" }, index.h("div", { class: { "limited-width": !!this.contentMaxWidth }, style: this.contentMaxWidth ? { "--mw": `${this.contentMaxWidth}px` } : {} }, index.h("div", { class: "item logo" }, this.renderZLogo(), this.renderCopyright(), this.renderCertification()), index.h("div", { class: "item" }, this.renderAddress(), this.renderSocial()), this.renderBottomLinks())));
|
|
55
|
+
}
|
|
56
|
+
renderFooterTop() {
|
|
57
|
+
return (index.h("section", { id: "top" }, index.h("div", { class: { "limited-width": !!this.contentMaxWidth }, style: this.contentMaxWidth ? { "--mw": `${this.contentMaxWidth}px` } : {} }, index.h("slot", null), this.renderFooterTopJsonData())));
|
|
58
|
+
}
|
|
59
|
+
renderFooterProductInfo() {
|
|
60
|
+
var _a;
|
|
61
|
+
if (this.productName || this.productVersion || this.productCreditsLink != null || this.showReportAProblemButton) {
|
|
62
|
+
const versionString = `${this.productName ? ' versione' : 'Versione'} ${this.productVersion}`;
|
|
63
|
+
const creditsObject = index.h("z-body", { level: 5 }, (this.productName || this.productVersion) && ' - ', index.h("z-link", { htmlid: this.creditsLinkId, href: (_a = this.productCreditsLink) === null || _a === void 0 ? void 0 : _a.trim(), target: "_blank", textcolor: "white" }, "Credits"));
|
|
64
|
+
return (index.h("div", { id: "extension" }, index.h("div", { class: { "limited-width": !!this.contentMaxWidth }, style: this.contentMaxWidth ? { "--mw": `${this.contentMaxWidth}px` } : {} }, index.h("span", null, this.productName && index.h("z-body", { level: 5, variant: "semibold" }, this.productName), this.productVersion && index.h("z-body", { level: 5 }, versionString), this.productCreditsLink != null && creditsObject), this.showReportAProblemButton &&
|
|
65
|
+
index.h("div", null, index.h("z-body", { level: 5 }, "Hai bisogno di aiuto?"), index.h("z-button", { variant: index$1.ButtonVariantEnum["dark-bg"], size: index$1.ButtonSizeEnum.small, onClick: this.emitReportAProblemButtonClick }, "SEGNALA UN PROBLEMA")), index.h("z-divider", { color: "gray500" }))));
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
// INFO: backward compatibility
|
|
69
|
+
renderFooterTopJsonData() {
|
|
70
|
+
if (!this.jsonData || !this.jsonData.zanichelliLinks)
|
|
71
|
+
return null;
|
|
72
|
+
const zanichelliLinks = this.jsonData.zanichelliLinks;
|
|
73
|
+
if (this.jsonData.bottomLinks) {
|
|
74
|
+
const bottomLinks = this.jsonData.bottomLinks;
|
|
75
|
+
zanichelliLinks.push({
|
|
76
|
+
title: "Altre informazioni",
|
|
77
|
+
items: bottomLinks,
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
return zanichelliLinks.map((item) => (index.h("z-footer-section", { name: item.title }, item.items.map((item) => (index.h("z-footer-link", { href: item.link }, item.label))))));
|
|
81
|
+
}
|
|
82
|
+
// INFO: backward compatibility
|
|
83
|
+
renderFooterBottomJsonData() {
|
|
84
|
+
if (!this.jsonData || !this.jsonData.bottomLinks)
|
|
85
|
+
return null;
|
|
86
|
+
const bottomLinks = this.jsonData.bottomLinks;
|
|
87
|
+
return bottomLinks.map((item) => (index.h("z-footer-link", { href: item.link }, item.label)));
|
|
88
|
+
}
|
|
89
|
+
// INFO: backward compatibility
|
|
90
|
+
renderFooterSocialJsonData() {
|
|
91
|
+
if (!this.jsonData || !this.jsonData.social)
|
|
92
|
+
return null;
|
|
93
|
+
const social = this.jsonData.social;
|
|
94
|
+
return social.map((item) => (index.h("z-footer-social", { href: item.link, icon: item.icon, description: item.description })));
|
|
95
|
+
}
|
|
96
|
+
render() {
|
|
97
|
+
return (index.h("footer", null, this.renderFooterProductInfo(), this.renderFooterTop(), this.renderFooterBottom()));
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
ZFooter.style = stylesCss;
|
|
101
|
+
|
|
102
|
+
exports.z_footer = ZFooter;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-dee3e21d.js');
|
|
6
|
+
|
|
7
|
+
const stylesCss = ":host{display:inline-block;width:100%;height:100%;background:var(--bg-neutral-100);overflow:hidden;border-radius:4px;transform:translate3d(0, 0, 0)}:host::after{content:' ';display:block;width:100%;height:100%;box-shadow:#e8ebee20 0px 0px 1px;background-image:linear-gradient(\n 90deg,\n var(--bg-neutral-100) 0%,\n var(--bg-neutral-150) 95%,\n var(--bg-neutral-100) 100%\n );animation:progress 1.6s ease-in-out infinite}@keyframes progress{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}";
|
|
8
|
+
|
|
9
|
+
const ZGhostLoading = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
}
|
|
13
|
+
render() {
|
|
14
|
+
return (index.h(index.Host, null));
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
ZGhostLoading.style = stylesCss;
|
|
18
|
+
|
|
19
|
+
exports.z_ghost_loading = ZGhostLoading;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-dee3e21d.js');
|
|
6
|
+
const icons = require('./icons-74891aae.js');
|
|
7
|
+
|
|
8
|
+
const stylesCss = ":host>div{display:flex;flex-flow:row wrap;justify-content:flex-start;font-family:Verdana, Arial, Helvetica, sans-serif;font-size:12px}:host>div>div{width:300px;margin:5px}:host>div>div>label{margin:0 10px}";
|
|
9
|
+
|
|
10
|
+
const ZIconPackage = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
}
|
|
14
|
+
render() {
|
|
15
|
+
const iconsNames = Object.keys(icons.icons);
|
|
16
|
+
return (index.h("div", null, iconsNames.map((icon) => {
|
|
17
|
+
return (index.h("div", null, index.h("z-icon", { name: icon }), index.h("label", null, icon)));
|
|
18
|
+
})));
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
ZIconPackage.style = stylesCss;
|
|
22
|
+
|
|
23
|
+
exports.z_icon_package = ZIconPackage;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-dee3e21d.js');
|
|
6
|
+
|
|
7
|
+
const stylesCss = ":host{font-family:var(--dashboard-font);font-weight:var(--font-rg)}:host>div{background:var(--accent-lighter);padding:calc(var(--space-unit) * 2);border-radius:var(--border-radius);display:flex;width:inherit}:host>div>slot{color:var(--text-grey-800);font-size:14px}:host>div>z-icon{fill:var(--myz-blue);cursor:pointer;margin-left:calc(var(--space-unit) * 2)}";
|
|
8
|
+
|
|
9
|
+
const ZInfoBox = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
this.infoBoxClose = index.createEvent(this, "infoBoxClose", 7);
|
|
13
|
+
/** render close icon flag */
|
|
14
|
+
this.isclosable = true;
|
|
15
|
+
}
|
|
16
|
+
emitInfoBoxClose() {
|
|
17
|
+
this.infoBoxClose.emit({ boxid: this.boxid });
|
|
18
|
+
}
|
|
19
|
+
render() {
|
|
20
|
+
return (index.h("div", { id: this.boxid }, index.h("slot", { name: "content" }), this.isclosable && index.h("z-icon", { name: "multiply", "data-action": "infoBoxClose", onClick: () => this.emitInfoBoxClose() })));
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
ZInfoBox.style = stylesCss;
|
|
24
|
+
|
|
25
|
+
exports.z_info_box = ZInfoBox;
|