@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,36 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-dee3e21d.js');
|
|
6
|
+
|
|
7
|
+
const stylesCss = ":host{position:fixed;top:0;left:0;right:0;bottom:0;z-index:1000;display:flex;flex-direction:row;justify-content:center;width:100%;height:100%;font-family:var(--font-family-sans);font-weight:var(--font-rg)}.modal-background{position:fixed;top:0;left:0;width:100%;height:100%;background-color:var(--gray900);opacity:0.7}.modal-container{display:flex;flex-direction:column;z-index:1010;width:100%;height:100vh;overflow:-moz-scrollbars-none;overflow:hidden}.modal-container>header{display:flex;flex-wrap:nowrap;flex-direction:row;align-items:flex-start;justify-content:flex-start;padding:calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 2);background:var(--color-surface02)}.modal-container>header button{margin:0;padding:0;border:none;background:transparent;cursor:pointer;margin-left:auto}.modal-container>header z-icon{--z-icon-width:calc(var(--space-unit) * 2.5);--z-icon-height:calc(var(--space-unit) * 2.5);display:flex;fill:var(--color-icon01)}.modal-container>header>div{display:flex;flex-direction:column;width:100%;margin-right:calc(var(--space-unit) * 2)}.modal-container>header h1,.modal-container>header h2{margin:0;padding:0;font-weight:var(--font-rg);color:var(--color-text01)}.modal-container>header h1{font-size:var(--font-size-5);line-height:1.4;letter-spacing:0}.modal-container>header h2{font-size:var(--font-size-3);line-height:1.5;letter-spacing:0}.modal-container>header>div *:empty{display:none}.modal-container>header h1+h2{margin-top:calc(var(--space-unit) * 0.5)}.modal-container>.modal-content{flex:1 auto;background:var(--color-surface01);overflow:auto;overflow-x:hidden}.modal-container .modal-content::-webkit-scrollbar{background:linear-gradient(\n to right,\n transparent 0 3px,\n var(--gray200) 3px 7px,\n transparent 7px 10px\n );width:10px;border-radius:var(--border-radius)}.modal-container .modal-content::-webkit-scrollbar-track{background-color:transparent}.modal-container .modal-content::-webkit-scrollbar-thumb{background-color:var(--color-primary01);border-radius:var(--border-radius);width:10px}.modal-container .modal-content::-webkit-scrollbar-thumb:hover{background-color:var(--color-hover-primary)}.modal-container .modal-content{scrollbar-color:var(--color-primary01) transparent}@media only screen and (min-width: 768px){.modal-container{position:fixed;top:calc(var(--space-unit) * 6);left:50%;transform:translateX(-50%);width:auto;height:auto;min-width:calc(var(--space-unit) * 40);min-height:calc(var(--space-unit) * 40);max-height:calc(100vh - calc(var(--space-unit) * 6 * 2));border-radius:var(--border-radius)}.modal-container>header z-icon{--z-icon-width:calc(var(--space-unit) * 3);--z-icon-height:calc(var(--space-unit) * 3)}}@media only screen and (min-width: 768px) and (max-width: 1151px){.modal-container>header{padding:calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 3)}}@media only screen and (min-width: 1152px){.modal-container>header{padding:calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 4)}.modal-container>header h1{font-size:var(--font-size-6);line-height:1.33;letter-spacing:0}.modal-container>header h2{font-size:var(--font-size-4);line-height:1.5;letter-spacing:0}.modal-container>header h1+h2{margin-top:0}}";
|
|
8
|
+
|
|
9
|
+
const ZModal = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
this.modalClose = index.createEvent(this, "modalClose", 7);
|
|
13
|
+
this.modalHeaderActive = index.createEvent(this, "modalHeaderActive", 7);
|
|
14
|
+
this.modalBackgroundClick = index.createEvent(this, "modalBackgroundClick", 7);
|
|
15
|
+
/** aria-label for close button (optional) */
|
|
16
|
+
this.closeButtonLabel = "close modal";
|
|
17
|
+
}
|
|
18
|
+
emitModalClose() {
|
|
19
|
+
this.modalClose.emit({ modalid: this.modalid });
|
|
20
|
+
}
|
|
21
|
+
emitModalHeaderActive() {
|
|
22
|
+
this.modalHeaderActive.emit({ modalid: this.modalid });
|
|
23
|
+
}
|
|
24
|
+
emitBackgroundClick() {
|
|
25
|
+
this.modalBackgroundClick.emit({ modalid: this.modalid });
|
|
26
|
+
}
|
|
27
|
+
render() {
|
|
28
|
+
return [
|
|
29
|
+
index.h("div", { class: "modal-container", id: this.modalid, role: "dialog" }, index.h("header", { onClick: this.emitModalHeaderActive.bind(this) }, index.h("div", null, this.modaltitle && index.h("h1", null, this.modaltitle), this.modalsubtitle && index.h("h2", null, this.modalsubtitle)), index.h("slot", { name: "modalCloseButton" }, index.h("button", { "aria-label": this.closeButtonLabel, onClick: this.emitModalClose.bind(this) }, index.h("z-icon", { name: "multiply-circle-filled" })))), index.h("div", { class: "modal-content" }, index.h("slot", { name: "modalContent" }))),
|
|
30
|
+
index.h("div", { class: "modal-background", "data-action": "modalBackground", "data-modal": this.modalid, onClick: this.emitBackgroundClick.bind(this) })
|
|
31
|
+
];
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
ZModal.style = stylesCss;
|
|
35
|
+
|
|
36
|
+
exports.z_modal = ZModal;
|
|
@@ -0,0 +1,63 @@
|
|
|
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{position:absolute;font-family:var(--font-family-sans);font-weight:var(--font-rg);width:100%;top:0px;left:0px;z-index:2}:host>z-alert{height:calc(var(--space-unit) * 6)}.relativeContainer{position:relative;display:grid;grid-template-columns:18px auto 46px;grid-template-rows:1fr;grid-column-gap:var(--space-unit);align-items:center;padding:0;outline:none}.relativeContainer::-moz-focus-inner{border:0}.alert-external-wrapper.removeAlert{border:var(--border-size-medium) solid var(--color-surface02);border-top:none}:host div.addAlert{background:var(--color-success-inverse)}:host div.removeAlert{background:var(--color-warning-inverse)}:host div>.contentText{color:var(--color-surface05);font-size:14px;letter-spacing:0.16px;line-height:20px}:host div>.contentAction{color:var(--color-primary01);font-size:12px;font-weight:var(--font-sb);height:20px;letter-spacing:0.32px;line-height:20px;cursor:pointer}:host div>z-icon{justify-self:center}";
|
|
9
|
+
|
|
10
|
+
const ZMyzCardAlert = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
this.undoAction = index.createEvent(this, "undoAction", 7);
|
|
14
|
+
}
|
|
15
|
+
emitUndoAction() {
|
|
16
|
+
this.undoAction.emit({ actionType: this.type });
|
|
17
|
+
}
|
|
18
|
+
handleSpaceKeyPress(e) {
|
|
19
|
+
if (e.keyCode == 32 || e.keyCode == 13) {
|
|
20
|
+
e.preventDefault();
|
|
21
|
+
this.emitUndoAction();
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
handleActionButtonClick(e) {
|
|
25
|
+
e.preventDefault();
|
|
26
|
+
this.emitUndoAction();
|
|
27
|
+
}
|
|
28
|
+
retrieveClass() {
|
|
29
|
+
let className = "";
|
|
30
|
+
switch (this.type) {
|
|
31
|
+
case "add":
|
|
32
|
+
className = "addAlert";
|
|
33
|
+
break;
|
|
34
|
+
case "remove":
|
|
35
|
+
className = "removeAlert";
|
|
36
|
+
break;
|
|
37
|
+
default:
|
|
38
|
+
className = "";
|
|
39
|
+
break;
|
|
40
|
+
}
|
|
41
|
+
return className;
|
|
42
|
+
}
|
|
43
|
+
getAlertType() {
|
|
44
|
+
switch (this.type) {
|
|
45
|
+
case "add":
|
|
46
|
+
return index$1.AlertTypesEnum.success;
|
|
47
|
+
case "remove":
|
|
48
|
+
return index$1.AlertTypesEnum.warning;
|
|
49
|
+
default:
|
|
50
|
+
return null;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
render() {
|
|
54
|
+
return (index.h("div", { class: "alert-external-wrapper " + this.retrieveClass() }, index.h("z-alert", { type: this.getAlertType() }, index.h("div", { class: "relativeContainer" }, index.h("z-icon", { name: this.iconname, width: 18, height: 18, class: this.retrieveClass() }), index.h("span", { class: "contentText" }, this.contenttext), this.actiontext && !!this.actiontext.trim().length && (index.h("span", { role: "button", tabindex: "0", class: "contentAction", onClick: (e) => {
|
|
55
|
+
this.handleActionButtonClick(e);
|
|
56
|
+
}, onKeyPress: (e) => {
|
|
57
|
+
this.handleSpaceKeyPress(e);
|
|
58
|
+
} }, this.actiontext))))));
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
ZMyzCardAlert.style = stylesCss;
|
|
62
|
+
|
|
63
|
+
exports.z_myz_card_alert = ZMyzCardAlert;
|
|
@@ -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(--font-family-sans);font-weight:var(--font-rg)}:host>div{position:relative;height:522px;width:100%;transition:-webkit-transform 0.5s ease-out;transition:transform 0.5s ease-out;transition:transform 0.5s ease-out, -webkit-transform 0.5s ease-out}:host>div .content{position:relative;height:522px;width:100%;-webkit-transform-style:preserve-3d;transform-style:preserve-3d;transition:-webkit-transform 0.5s ease-out;transition:transform 0.5s ease-out;transition:transform 0.5s ease-out, -webkit-transform 0.5s ease-out;z-index:2}:host>div .content.flipped{-webkit-transform:rotateY(180deg);transform:rotateY(180deg);margin-top:-2px}:host>div .front,:host>div .back{position:absolute;height:100%;width:100%;top:0;left:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}:host>div .front{z-index:2;top:0;left:0;-webkit-transform:rotateY(0deg);transform:rotateY(0deg)}:host>div .front z-button{position:absolute;z-index:3;top:calc(var(--space-unit) * 0.5);left:calc(-1 * var(--space-unit))}:host>div .back{padding:0 var(--space-unit);margin-left:calc(-1 * var(--space-unit));z-index:1;top:0;left:0;-webkit-transform:rotateY(180deg);transform:rotateY(180deg);display:flex;justify-content:center}.hideInfo{display:none}";
|
|
9
9
|
|
|
@@ -0,0 +1,52 @@
|
|
|
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 = "footer{font-family:var(--font-family-sans);font-weight:var(--font-rg);color:var(--color-surface05);background-color:var(--color-surface01);margin:0px;padding:0px;position:relative;z-index:5;height:calc(var(--space-unit) * 6);width:auto;top:0px;transition:height 500ms ease-in-out, top 500ms ease-in-out;border-radius:0px 0px var(--border-radius) var(--border-radius);border-top:var(--border-size-medium) solid var(--color-surface03)}footer.real,footer.trial{border-top:var(--border-size-medium) solid var(--accent)}footer .bold{font-family:var(--font-family-sans);font-weight:var(--font-sb)}footer>p{font-family:var(--font-family-sans);font-weight:var(--font-rg);font-size:16px;line-height:22px;height:40px;margin:0px;padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 2)\n var(--space-unit) calc(var(--space-unit) * 2);overflow:hidden;background-color:var(--color-surface01);transition:all 200ms linear}footer.isopen>p{font-size:14px;font-weight:var(--font-sb);transition:all 200ms linear;background-color:var(--bg-neutral-200)}footer.isopen.real>p,footer.isopen.trial>p{background-color:var(--accent)}footer .visible{display:block}footer .hidden{display:none}footer>div.content{height:60px;overflow:hidden}footer>div.content>div:not(.slot-handler){padding:var(--space-unit) calc(var(--space-unit) * 2)}footer>div.content>div>p{font-size:14px;height:20px;line-height:20px;margin:0px;padding:0px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}footer>div.content>div>p.year_isbn{padding-top:var(--space-unit);display:flex;flex-direction:row;justify-content:space-between}footer>div.content>div>p.year_isbn>span.isbn{text-overflow:ellipsis;overflow:hidden}footer.isopen>div.content>div:not(.slot-handler){height:68px}footer.isopen>div.content>div>p.authors{height:40px;white-space:initial;text-overflow:initial}footer.isopen>div.content>div>p.year_isbn{flex-direction:column;height:50px;padding-left:0px}footer.isopen>div.content>div>p.year_isbn>span.isbn{display:inline-grid;padding-left:0px}footer.isopen{height:295px;top:-212px;transition:height 500ms ease-in-out, top 500ms ease-in-out}footer.isopen>div.content{height:280px;transition:height 500ms ease-in-out, top 500ms ease-in-out}.toggle{position:absolute;top:-24px;left:16px;z-index:10}.faded{opacity:0.3;pointer-events:none}";
|
|
9
|
+
|
|
10
|
+
const ZMyzCardFooter = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
/** footer opened by default (optional) */
|
|
14
|
+
this.opened = false;
|
|
15
|
+
this.isOpen = false;
|
|
16
|
+
this.allowTooltipAuthors = false;
|
|
17
|
+
}
|
|
18
|
+
handleToggle() {
|
|
19
|
+
this.isOpen = !this.isOpen;
|
|
20
|
+
}
|
|
21
|
+
getTitleAuthors() {
|
|
22
|
+
return this.allowTooltipAuthors ? this.autori : "";
|
|
23
|
+
}
|
|
24
|
+
componentWillLoad() {
|
|
25
|
+
if (this.opened)
|
|
26
|
+
this.isOpen = true;
|
|
27
|
+
}
|
|
28
|
+
elementsEllipsis() {
|
|
29
|
+
this.allowTooltipAuthors = this.elementAuthorsHasEllipsis() ? true : false;
|
|
30
|
+
}
|
|
31
|
+
elementAuthorsHasEllipsis() {
|
|
32
|
+
return this.ellipsisAuthors.offsetWidth < this.ellipsisAuthors.scrollWidth;
|
|
33
|
+
}
|
|
34
|
+
retrieveClass() {
|
|
35
|
+
return {
|
|
36
|
+
isopen: this.isOpen,
|
|
37
|
+
real: this.cardtype === index$1.LicenseTypeEnum.real,
|
|
38
|
+
trial: this.cardtype === index$1.LicenseTypeEnum.trial,
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
footerTransitionHandler(e) {
|
|
42
|
+
if (["visibility", "height"].includes(e.propertyName)) {
|
|
43
|
+
this.elementsEllipsis();
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
render() {
|
|
47
|
+
return (index.h("div", { class: this.faded && "faded" }, index.h("footer", { class: this.retrieveClass(), onTransitionEnd: (e) => this.footerTransitionHandler(e) }, index.h("span", { class: "toggle" }, index.h("slot", { name: "toggle" })), this.titolo && index.h("p", null, this.titolo), index.h("div", { class: "content" }, index.h("div", null, index.h("p", { class: "authors", ref: (el) => (this.ellipsisAuthors = el) }, index.h("span", { title: this.getTitleAuthors() }, index.h("span", { class: "bold" }, this.autori))), index.h("p", { class: "year_isbn" }, index.h("span", { class: "isbn" }, index.h("span", null, index.h("span", { class: "bold" }, this.isbn), " (ed. cartacea)")))), index.h("div", { class: `slot-handler ${this.isOpen ? "visible" : "hidden"}` }, index.h("slot", { name: "list" }))))));
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
ZMyzCardFooter.style = stylesCss;
|
|
51
|
+
|
|
52
|
+
exports.z_myz_card_footer = ZMyzCardFooter;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-dee3e21d.js');
|
|
6
|
+
|
|
7
|
+
const stylesCss = "button{width:42px;height:calc(var(--space-unit) * 5);display:flex;align-items:center;justify-content:center;color:var(--color-primary01);fill:var(--color-primary01);cursor:pointer;outline:none;background:none;border:none;border-left:var(--border-size-medium) solid var(--color-surface03);border-radius:0px var(--border-radius) 0px 0px;margin:0;padding:0px;width:calc(var(--space-unit) * 6);height:calc(var(--space-unit) * 6)}button:active,button:focus{color:var(--blue700);fill:var(--blue700)}button>span{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:var(--border-radius);border:0px}button:hover>span{background:var(--color-primary03)}button:focus>span{background:var(--color-surface01);border-radius:var(--border-radius);box-shadow:0px 0px 2px 2px var(--accent-dark)}button:active>span{background:var(--color-surface01);border-radius:var(--border-radius);box-shadow:var(--shadow-2)}button:disabled{cursor:not-allowed}button:disabled>span{background:none;box-shadow:var(--shadow-0);pointer-events:none}button:disabled>span>z-icon{fill:var(--color-surface03)}button::-moz-focus-inner{border:0}";
|
|
8
|
+
|
|
9
|
+
const ZMyzCardIcon = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
/** disabled status flag */
|
|
13
|
+
this.isdisabled = false;
|
|
14
|
+
}
|
|
15
|
+
render() {
|
|
16
|
+
return (index.h("button", { disabled: this.isdisabled, "aria-label": this.ariaLabel }, index.h("span", null, index.h("z-icon", { name: this.icon, width: 16, height: 16 }))));
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
ZMyzCardIcon.style = stylesCss;
|
|
20
|
+
|
|
21
|
+
exports.z_myz_card_icon = ZMyzCardIcon;
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-dee3e21d.js');
|
|
6
|
-
const index$1 = require('./index-
|
|
7
|
-
const utils = require('./utils-
|
|
6
|
+
const index$1 = require('./index-de6c491e.js');
|
|
7
|
+
const utils = require('./utils-12053886.js');
|
|
8
8
|
require('./breakpoints-88c4fd6c.js');
|
|
9
9
|
|
|
10
10
|
const stylesCss = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg);width:100%}:host>div{background:var(--color-surface01);width:calc(100% + calc(var(--space-unit) * 2));margin-left:calc(-1 * var(--space-unit));height:402px;border:var(--border-size-small) solid var(--color-primary01);box-shadow:0px 2px 4px 0px rgba(66, 69, 72, 0.35);border-radius:0px;box-sizing:border-box;padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 3);position:relative}:host>div>z-icon{fill:var(--color-primary01);cursor:pointer;position:absolute;top:var(--space-unit);right:var(--space-unit)}:host>div{display:grid}:host>div>div.cta-wrapper{align-self:end;display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:space-between}:host>div>div.content-wrapper{overflow:hidden;position:relative;align-self:stretch}:host>div>div.content-wrapper>section{border-bottom:var(--border-size-small) solid var(--color-surface04);color:var(--color-surface05);padding:var(--space-unit) 0;font-size:14px;line-height:20px;box-sizing:border-box}:host>div>div.content-wrapper>section:last-child{border-bottom:none}:host>div>div.content-wrapper>section.info-wrapper{position:relative;overflow:hidden;box-sizing:border-box}:host>div>div.content-wrapper>section.info-wrapper.hidden:after{background:linear-gradient(\n 180deg,\n rgba(255, 0, 0, 0),\n rgba(255, 0, 0, 0) 60%,\n white\n );content:\"\";position:absolute;pointer-events:none;top:0;left:0;right:0;bottom:0}:host>div>div.content-wrapper>section>span.license-heading{display:flex;justify-content:space-between}:host>div>div.content-wrapper>section>span.license-heading>span.expired{color:var(--color-secondary02);font-size:12px;font-weight:600}:host>div>div.content-wrapper>section>span.license-heading>span.expiring{color:var(--color-warning01);font-size:12px;font-weight:600}:host>div>div.content-wrapper>z-tooltip{position:absolute;top:0px;left:calc(var(--space-unit) * 4)}";
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-dee3e21d.js');
|
|
6
|
+
|
|
7
|
+
const stylesCss = "ul{font-family:var(--font-family-sans);color:var(--color-primary02);margin:0 calc(var(--space-unit) * 2);padding:0px;overflow:hidden;list-style:none;width:auto;height:auto}ul>li{padding-left:10px;text-indent:-10px}ul>li>a{display:block;font-size:14px;font-weight:var(--font-sb);text-decoration:none;color:var(--color-primary01);letter-spacing:0.16px;line-height:calc(var(--space-unit) * 2.5);padding-top:calc(var(--space-unit) * .5)}ul>li>a:before{content:\"•\";padding-right:5px}ul>li>span{font-size:14px;font-weight:var(--font-rg);text-decoration:none;color:var(--color-surface04);padding:0 calc(var(--space-unit) * 2);letter-spacing:0.16px;line-height:calc(var(--space-unit) * 2.5)}";
|
|
8
|
+
|
|
9
|
+
const ZMyzCardList = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
this.renderList = this.renderList.bind(this);
|
|
13
|
+
}
|
|
14
|
+
handleSpaceKeyPress(e, url) {
|
|
15
|
+
if (e.keyCode == 32 || e.keyCode == 13) {
|
|
16
|
+
e.preventDefault();
|
|
17
|
+
window.open(url, "_blank");
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
formatListContent(data) {
|
|
21
|
+
const { value, isLink, url } = data;
|
|
22
|
+
if (!isLink)
|
|
23
|
+
return index.h("span", null, value);
|
|
24
|
+
return (index.h("a", { role: "button", onKeyPress: (e) => this.handleSpaceKeyPress(e, url), href: url, target: "_blank" }, value));
|
|
25
|
+
}
|
|
26
|
+
renderList(dataArray) {
|
|
27
|
+
return dataArray.map((data) => {
|
|
28
|
+
return index.h("li", null, this.formatListContent(data));
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
render() {
|
|
32
|
+
return index.h("ul", null, this.renderList(JSON.parse(this.listdata)));
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
ZMyzCardList.style = stylesCss;
|
|
36
|
+
|
|
37
|
+
exports.z_myz_card_list = ZMyzCardList;
|
|
@@ -0,0 +1,101 @@
|
|
|
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$3 = "div{background-color:var(--color-surface01);display:flex;flex-direction:column;width:auto;box-sizing:border-box;width:256px;height:522px;border:var(--border-size-medium) solid var(--color-surface03);border-radius:var(--border-radius)}div.real,div.trial{border-color:var(--accent)}div.faded{border:var(--border-size-medium) solid var(--color-surface02)}div.highlighted{box-shadow:var(--shadow-4);outline:none}div.pressed{box-shadow:var(--shadow-8);outline:none}div:focus{box-shadow:var(--shadow-focus-primary);outline:none}";
|
|
9
|
+
|
|
10
|
+
const ZMyzCardComponent = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
/** pressed status */
|
|
14
|
+
this.ispressed = false;
|
|
15
|
+
/** highlighted status */
|
|
16
|
+
this.ishighlighted = false;
|
|
17
|
+
}
|
|
18
|
+
retrieveClass() {
|
|
19
|
+
let elemClasses = "";
|
|
20
|
+
if (this.cardtype === index$1.LicenseTypeEnum.real)
|
|
21
|
+
elemClasses += "real";
|
|
22
|
+
else if (this.cardtype === index$1.LicenseTypeEnum.trial)
|
|
23
|
+
elemClasses += "trial";
|
|
24
|
+
if (this.faded) {
|
|
25
|
+
elemClasses += " faded";
|
|
26
|
+
}
|
|
27
|
+
else if (this.ispressed) {
|
|
28
|
+
elemClasses += " pressed";
|
|
29
|
+
}
|
|
30
|
+
else if (this.ishighlighted) {
|
|
31
|
+
elemClasses += " highlighted";
|
|
32
|
+
}
|
|
33
|
+
return elemClasses;
|
|
34
|
+
}
|
|
35
|
+
render() {
|
|
36
|
+
return (index.h("div", { class: this.retrieveClass(), tabindex: "0" }, index.h("slot", null)));
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
ZMyzCardComponent.style = stylesCss$3;
|
|
40
|
+
|
|
41
|
+
const stylesCss$2 = ":host{height:340px;width:auto}:host>div{height:340px;width:auto;display:flex;align-items:center;justify-content:center;position:relative}";
|
|
42
|
+
|
|
43
|
+
const ZMyzCardBody = class {
|
|
44
|
+
constructor(hostRef) {
|
|
45
|
+
index.registerInstance(this, hostRef);
|
|
46
|
+
}
|
|
47
|
+
render() {
|
|
48
|
+
return (index.h("div", null, index.h("slot", { name: "alert" }), index.h("slot", { name: "cover" })));
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
ZMyzCardBody.style = stylesCss$2;
|
|
52
|
+
|
|
53
|
+
const stylesCss$1 = "img{display:block;margin:auto auto;height:340px;max-width:100%;object-fit:cover}img.faded{opacity:0.3}";
|
|
54
|
+
|
|
55
|
+
const ZMyzCardCover = class {
|
|
56
|
+
constructor(hostRef) {
|
|
57
|
+
index.registerInstance(this, hostRef);
|
|
58
|
+
}
|
|
59
|
+
hadleOnImageError() {
|
|
60
|
+
this.img = this.defaultimg;
|
|
61
|
+
}
|
|
62
|
+
render() {
|
|
63
|
+
return (index.h("img", { class: this.faded && "faded", onError: this.hadleOnImageError.bind(this), alt: this.titolo, src: this.img }));
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
ZMyzCardCover.style = stylesCss$1;
|
|
67
|
+
|
|
68
|
+
const stylesCss = "header{display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;width:auto;height:calc(var(--space-unit) * 6);position:relative;border-bottom:var(--border-size-medium) solid var(--color-surface03);border-radius:var(--border-radius) var(--border-radius)\n var(--border-no-radius) var(--border-no-radius);background-color:var(--color-surface01)}header.real,header.trial{background-color:var(--accent-lighter);border-bottom:var(--border-size-medium) solid var(--accent)}h2{font-family:var(--font-family-sans);font-weight:var(--font-sb);color:var(--color-surface05);height:calc(var(--space-unit) * 2);font-size:12px;text-transform:uppercase;letter-spacing:0.22px;line-height:calc(var(--space-unit) * 2);margin:0px;padding:calc(var(--space-unit) * 2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.faded{border-bottom:var(--border-size-medium) solid var(--color-surface02)}.faded.real,.faded.trial{border-top:var(--border-size-medium) solid var(--accent);border-right:var(--border-size-medium) solid var(--accent);border-left:var(--border-size-medium) solid var(--accent)}";
|
|
69
|
+
|
|
70
|
+
const ZMyzCardHeader = class {
|
|
71
|
+
constructor(hostRef) {
|
|
72
|
+
index.registerInstance(this, hostRef);
|
|
73
|
+
this.allowTooltip = false;
|
|
74
|
+
}
|
|
75
|
+
getTitle() {
|
|
76
|
+
return this.allowTooltip ? this.titolo : "";
|
|
77
|
+
}
|
|
78
|
+
componentDidLoad() {
|
|
79
|
+
if (this.elementHasEllipsis())
|
|
80
|
+
this.allowTooltip = true;
|
|
81
|
+
}
|
|
82
|
+
elementHasEllipsis() {
|
|
83
|
+
return this.ellipsis.offsetWidth < this.ellipsis.scrollWidth;
|
|
84
|
+
}
|
|
85
|
+
retrieveClass() {
|
|
86
|
+
return {
|
|
87
|
+
real: this.cardtype === index$1.LicenseTypeEnum.real,
|
|
88
|
+
trial: this.cardtype === index$1.LicenseTypeEnum.trial,
|
|
89
|
+
faded: this.faded
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
render() {
|
|
93
|
+
return (index.h("header", { class: this.retrieveClass() }, index.h("h2", { ref: el => (this.ellipsis = el), title: this.getTitle() }, this.titolo), index.h("slot", { name: "icon" })));
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
ZMyzCardHeader.style = stylesCss;
|
|
97
|
+
|
|
98
|
+
exports.z_myz_card = ZMyzCardComponent;
|
|
99
|
+
exports.z_myz_card_body = ZMyzCardBody;
|
|
100
|
+
exports.z_myz_card_cover = ZMyzCardCover;
|
|
101
|
+
exports.z_myz_card_header = ZMyzCardHeader;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-dee3e21d.js');
|
|
6
|
+
const utils = require('./utils-12053886.js');
|
|
7
|
+
require('./index-de6c491e.js');
|
|
8
|
+
require('./breakpoints-88c4fd6c.js');
|
|
9
|
+
|
|
10
|
+
const stylesCss = ":host li{all:unset;all:reset;width:100%}:host li{list-style-type:none;line-height:14px}:host li>span{line-height:14px;padding:calc(var(--space-unit) * 2) 0;display:flex;font-family:var(--dashboard-font);font-weight:var(--font-rg);font-size:16px;letter-spacing:0.23px;color:var(--text-grey-800);fill:var(--text-grey-800)}:host li>span.border{border-bottom:2px solid var(--bg-grey-200)}:host li span:hover,a:hover{color:var(--myz-blue);fill:var(--myz-blue)}a,a:visited,a:active{color:inherit;fill:inherit;text-decoration:none}:host li span z-icon{color:var(--myz-blue);fill:var(--myz-blue);height:calc(var(--space-unit) * 2);width:calc(var(--space-unit) * 2);padding:0 calc(var(--space-unit) * 1.5) 0 0;background-size:contain;background-repeat:no-repeat}";
|
|
11
|
+
|
|
12
|
+
const ZMyzListItem = class {
|
|
13
|
+
constructor(hostRef) {
|
|
14
|
+
index.registerInstance(this, hostRef);
|
|
15
|
+
this.zListItemLinkClick = index.createEvent(this, "zListItemLinkClick", 7);
|
|
16
|
+
this.zListItemClick = index.createEvent(this, "zListItemClick", 7);
|
|
17
|
+
/** link target (optional) */
|
|
18
|
+
this.linktarget = "_self";
|
|
19
|
+
/** underlined style flag */
|
|
20
|
+
this.underlined = true;
|
|
21
|
+
this.emitZListItemLinkClick = this.emitZListItemLinkClick.bind(this);
|
|
22
|
+
this.emitZListItemClick = this.emitZListItemClick.bind(this);
|
|
23
|
+
}
|
|
24
|
+
emitZListItemLinkClick(e, linkId) {
|
|
25
|
+
this.zListItemLinkClick.emit({ e, linkId });
|
|
26
|
+
}
|
|
27
|
+
emitZListItemClick(e, listitemid) {
|
|
28
|
+
this.zListItemClick.emit({ e, listitemid });
|
|
29
|
+
}
|
|
30
|
+
render() {
|
|
31
|
+
const linkId = this.listitemid ? `link_${this.listitemid}` : "";
|
|
32
|
+
return (index.h("li", { role: "button", id: this.listitemid, "data-action": this.action, onClick: (e) => this.emitZListItemClick(e, this.listitemid), onKeyPress: (ev) => utils.handleKeyboardSubmit(ev, this.emitZListItemClick, this.listitemid) }, index.h("span", { class: this.underlined && "border" }, this.icon && index.h("z-icon", { name: this.icon }), this.link ? (index.h("a", { href: this.link ? this.link : null, target: this.linktarget, id: linkId, onClick: (e) => this.emitZListItemLinkClick(e, linkId), onKeyPress: (ev) => utils.handleKeyboardSubmit(ev, this.emitZListItemLinkClick, linkId), role: this.link ? "link" : "button", tabindex: "0" }, this.text)) : (index.h("span", { innerHTML: this.text })), index.h("slot", null))));
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
ZMyzListItem.style = stylesCss;
|
|
36
|
+
|
|
37
|
+
exports.z_myz_list_item = ZMyzListItem;
|
|
@@ -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
|
const breakpoints = require('./breakpoints-88c4fd6c.js');
|
|
8
8
|
|
|
9
9
|
const stylesCss = ":host a{cursor:pointer}header{position:sticky;top:0;z-index:99;display:grid;grid-template-columns:1fr;grid-template-rows:1fr;grid-template-areas:\"main-header\";margin-bottom:calc(var(--space-unit) * 6.5);font-family:var(--dashboard-font);font-weight:var(--font-rg)}.main-header{display:grid;grid-template-columns:2fr 2fr 4fr 100px;grid-template-rows:1fr;grid-template-areas:\"logo link-int link-ext login\";grid-area:main-header;grid-column-gap:calc(var(--space-unit) * .5);align-items:center;background-color:var(--bg-grey-900);height:auto;align-items:center;z-index:10}.main-header.myz-out{background-color:var(--bg-white)}.logo{grid-area:logo;padding:6px}z-logo{transform:scale(0.9)}.dropdown-menu{display:none}.dropdown-menu.hidden{visibility:hidden}.dropdown-links{grid-area:dropdown-links;list-style:none;display:block;max-height:32px;margin:0;padding:0}.arrow{fill:var(--text-grey-200)}.dropdown-links>li{list-style:none;display:inline-block;margin:0;padding:0}.dropdown-links>li>a{width:auto;height:auto;color:var(--myz-blue);font-size:14px;letter-spacing:0.18px;line-height:32px;text-decoration:none;margin:var(--space-unit);padding-bottom:calc(var(--space-unit) * .5)}.dropdown-links>li>a:hover,.dropdown-links>li>a.active{color:var(--text-grey-800);border-bottom:2px solid var(--myz-blue)}.mobile-header{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;align-items:stretch;align-content:center;align-items:center;width:100%;background-color:var(--bg-grey-900);z-index:inherit;height:52px;position:fixed;top:0px;left:0;z-index:999}.mobile-header.myz-out{background-color:var(--bg-white)}.mobile-header>z-button{margin:0 calc(var(--space-unit) * 2)}.mobile-content{display:flex;flex-direction:column;flex-wrap:nowrap;align-content:center;justify-content:center;align-items:center;width:100%;background-color:var(--bg-grey-900);position:fixed;top:52px;left:0;z-index:999;max-height:0px;overflow:hidden;transition:max-height 1s cubic-bezier(0.46, 0, 1, 0.79)}.mobile-content.open{max-height:100vh;transition:max-height 2s cubic-bezier(0, 0.79, 0.46, 1)}.mobile-content.myz-out{background-color:var(--bg-white)}hr{display:block;position:relative;padding:0;margin:0px calc(var(--space-unit) * 4);height:0;width:calc(100% - 64px);max-height:0;font-size:1px;line-height:0;clear:both;border:none;border-top:1px solid var(--text-grey-700)}.menu-mobile{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;align-items:center;align-content:center;color:var(--bg-white);padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 3);cursor:pointer}.myz-out .menu-mobile{color:var(--text-grey-800)}.menu-toggle{grid-area:menu-toggle;display:flex;flex-direction:column;margin:0 var(--space-unit)}.menu-toggle .bar{width:20px;height:2px;background-color:var(--bg-white);margin:2px auto;transition:all 0.3s ease-in-out}.myz-out .menu-toggle .bar{background-color:var(--text-grey-800)}.menu-toggle:hover{cursor:pointer}#mobile-menu.is-active .bar:nth-child(2){opacity:0}#mobile-menu.is-active .bar:nth-child(1){transform:translateY(6px) rotate(45deg)}#mobile-menu.is-active .bar:nth-child(3){transform:translateY(-6px) rotate(-45deg)}.booktab-button,.mobile-login{overflow:hidden;height:0%;max-height:100%;width:100%;height:100%;display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:space-between;align-items:stretch;align-content:stretch;padding:0}.hidden{visibility:hidden}.login{grid-area:login;display:flex;justify-content:flex-end;padding:0 calc(var(--space-unit) * 2)}.login>z-button{color:var(--bg-white);fill:var(--bg-white)}.booktab-button>z-button{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:center;align-items:center;align-content:center;padding:calc(var(--space-unit) * 2) 0px calc(var(--space-unit) * 4) 0px}.link-ext{grid-area:link-ext;overflow:hidden;height:0%;max-height:100%;width:100%;height:100%;display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:space-between;align-items:stretch;align-content:stretch;padding:0}.link-ext-span{display:inline-block;width:100%;margin:calc(var(--space-unit) * .5) auto;box-sizing:border-box;margin:0px auto 0px auto;padding:0px calc(var(--space-unit) * 4) 0px calc(var(--space-unit) * 4);line-height:44px}.link-ext-span.myz:hover,.link-ext-span.myz:focus{background:var(--text-grey-800);border-radius:var(--border-radius);cursor:pointer}.link-ext z-link{font-size:12px;font-weight:var(--font-sb)}.link-int{overflow:hidden;max-height:100%;width:100%;height:100%;display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:space-between;align-items:stretch;align-content:stretch;padding:0}.link-int>span{width:100%;display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:flex-start;align-items:stretch;align-content:flex-start}.link-int>span>.menu-item{height:auto;color:var(--bg-white);letter-spacing:0.2px;font-weight:var(--font-sb);font-size:16px;text-decoration:none;outline:none;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;align-items:stretch;align-content:stretch;width:100%;box-sizing:border-box;margin:0px auto 0px auto;padding:0px calc(var(--space-unit) * 4) 0px calc(var(--space-unit) * 4);line-height:44px}.link-int>span>.menu-item:hover,.link-int>span>.menu-item:focus{border-radius:0px}.link-int>span>.menu-item>span{white-space:nowrap}.link-int>span>.menu-item>i{padding-top:calc(var(--space-unit) * 2);height:28px;width:24px;text-align:right}.link-int>span:first-child>.menu-item{margin-top:0}.link-int>span>svg{display:none}.link-int>.mobile-dropdown{padding:0 48px}.mobile-login>span{display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:flex-start;align-items:stretch;align-content:flex-start;fill:white}.mobile-login>span:focus,.mobile-login>span:hover{background:var(--text-grey-800)}.myz-out .mobile-login>span:focus,.myz-out .mobile-login>span:hover{background:none}.mobile-login>span>.menu-item{height:auto;color:var(--bg-white);letter-spacing:0.2px;font-weight:var(--font-sb);font-size:16px;text-decoration:none;outline:none;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;align-items:stretch;align-content:stretch;width:100%;box-sizing:border-box;margin:0px auto 0px auto;padding:0px calc(var(--space-unit) * 4) 0px calc(var(--space-unit) * 4);line-height:44px}.myz-out .mobile-login>span>.menu-item{color:var(--text-grey-800)}.mobile-login>span>.menu-item>i{padding-top:calc(var(--space-unit) * 2);height:28px;width:24px;text-align:right}.mobile-login>span>.menu-item>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-login>span>.menu-item>span>z-icon{padding-right:var(--space-unit);fill:var(--bg-white)}.menu-item>i::before{border-style:solid;border-width:0.12em 0.12em 0 0;content:\" \";display:inline-block;height:0.45em;left:0.16em;position:relative;top:-0.12em;transform:rotate(135deg) scale(1.2);vertical-align:top;width:0.45em;margin-top:2px;margin-left:2px;margin-right:6px;transition:all 0.5s ease}.menu-item.isopen>i::before{top:0.24em;transform:rotate(-45deg) scale(1.2);transition:all 0.5s ease}.mobile-dropdown{background:white;display:block;overflow:hidden;width:100%;box-sizing:border-box;margin:0px auto 0px auto;padding:0px calc(var(--space-unit) * 4) 0px calc(var(--space-unit) * 4);line-height:44px;max-height:0px;transition:max-height 0.3s ease}.mobile-dropdown.visible{max-height:100vh;transition:max-height 0.5s ease}@media only screen and (min-width: 768px){header{grid-template-columns:1fr 0.8fr 1.5fr 1.1fr 0.7fr;grid-template-rows:0.2fr auto;grid-template-areas:\"main-header main-header main-header main-header main-header\" \"dropdown-menu dropdown-menu dropdown-menu dropdown-menu dropdown-menu\";margin-bottom:0}header.myz-out{top:0px;grid-template-rows:1fr}.main-header{display:grid;grid-template-columns:170px auto auto 120px;grid-template-rows:1fr;grid-template-areas:\"logo link-int link-ext login\";grid-area:main-header}.dropdown-menu{display:grid;grid-template-columns:1fr;grid-template-rows:1fr;grid-template-areas:\"dropdown-links\";grid-area:dropdown-menu;grid-column-gap:var(--space-unit);background:var(--bg-grey-200);height:32px;visibility:visible;z-index:9;padding-left:160px}.booktab-button,.mobile-header,.mobile-login,.mobile-dropdown,.menu-mobile{display:none}.link-int{grid-area:link-int;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;align-items:center;align-content:center;max-height:46px;margin-top:calc(var(--space-unit) * .5)}.link-int>span{display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:flex-start;align-items:center;align-content:center;width:auto}.link-int>span>.menu-item{width:auto;height:auto;color:var(--bg-white);letter-spacing:0.2px;line-height:14px;font-weight:var(--font-sb);text-decoration:none;outline:none;padding:calc(var(--space-unit) * 1.5)}.link-int>span>svg{display:block}.menu-item>i{display:none}.link-int>span>.menu-item:focus,.link-int>span>.menu-item:hover{background:var(--text-grey-800);border-radius:var(--border-radius);cursor:pointer}.link-int>span>.menu-item::-moz-focus-inner{border:0}.link-int>span>.menu-item:focus+svg{visibility:visible}.link-ext{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-end;align-items:center;align-content:center;max-height:46px}.link-ext-span{width:auto;line-height:14px;margin:var(--space-unit);padding:calc(var(--space-unit) * .5) var(--space-unit)}}@media only screen and (min-width: 1152px){.main-header{grid-template-columns:170px auto auto 180px}}";
|
|
@@ -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{--safe-scroll-area:4px;--negative-safe-scroll-area:calc(-1 * var(--safe-scroll-area));position:relative;display:flex;flex-direction:row;z-index:0;margin:var(--negative-safe-scroll-area);padding:var(--safe-scroll-area);font-family:var(--font-family-sans);font-weight:var(--font-rg);overflow:hidden}:host,:host *,::slotted(*){box-sizing:border-box}::-webkit-scrollbar{display:none}button.navigation{position:absolute;display:flex;align-items:center;justify-content:center;margin:0;padding:0;background:var(--color-white);border:none;outline:none;fill:var(--color-primary01);border-radius:var(--border-no-radius);cursor:pointer;z-index:1}button.navigation:focus{fill:var(--color-primary01);box-shadow:var(--shadow-focus-primary)}button.navigation:disabled{display:none}nav{display:flex;align-items:center;justify-content:flex-start;overflow:auto;margin:var(--negative-safe-scroll-area);padding:var(--safe-scroll-area);scroll-padding:var(--safe-scroll-area);scrollbar-width:none}:host([orientation='horizontal']) nav{width:100%}:host([orientation='horizontal']) button.navigation{top:0;height:100%;width:calc((var(--space-unit) * 4) + var(--safe-scroll-area))}:host([orientation='horizontal']) button.navigation:first-child{left:0;padding-left:var(--safe-scroll-area);box-shadow:5px 0px var(--safe-scroll-area) var(--negative-safe-scroll-area) rgba(66, 69, 72, 0.40)}:host([orientation='horizontal']) button.navigation:last-child{right:0;padding-right:4px;box-shadow:-5px 0px var(--safe-scroll-area) var(--negative-safe-scroll-area) rgba(66, 69, 72, 0.40)}:host([orientation='vertical']){flex-direction:column}:host([orientation='vertical']) nav{flex-direction:column;align-items:stretch;height:100%}:host([orientation='vertical']) button.navigation{left:0;width:100%;height:calc((var(--space-unit) * 4) + var(--safe-scroll-area))}:host([orientation='vertical']) button.navigation:first-child{top:0;padding-top:var(--safe-scroll-area);box-shadow:0px 5px var(--safe-scroll-area) var(--negative-safe-scroll-area) rgba(66, 69, 72, 0.40)}:host([orientation='vertical']) button.navigation:last-child{bottom:0;padding-bottom:var(--safe-scroll-area);box-shadow:0px -5px var(--safe-scroll-area) var(--negative-safe-scroll-area) rgba(66, 69, 72, 0.40)}:host([size='small'][orientation='vertical']) button.navigation{height:calc(var(--space-unit) * 4)}";
|
|
9
9
|
|
|
@@ -0,0 +1,42 @@
|
|
|
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%;color:var(--color-text01)}.notification-container{display:flex;padding:0 0 calc(var(--space-unit) * 2) calc(var(--space-unit) * 2);outline:none;border-bottom:var(--border-size-medium) solid var(--color-surface03)}.shadow{box-shadow:var(--shadow-3)}.content-container{display:flex;justify-content:space-between;flex:1 1 auto;flex-wrap:wrap}.content-text{max-width:800px;margin-top:calc(var(--space-unit) * 2);margin-right:calc(var(--space-unit) * 2)}.action-text{margin-top:calc(var(--space-unit) * 2);margin-right:calc(var(--space-unit) * 2);height:fit-content;color:var(--color-primary01);cursor:pointer;white-space:nowrap}:host div>z-icon{justify-self:center;margin-top:calc(var(--space-unit) * 2);margin-right:calc(var(--space-unit))}:host div.success-notification{background:var(--color-success-inverse)}:host div.warning-notification{background:var(--color-warning-inverse)}:host div.error-notification{background:var(--color-error-inverse)}:host div.success-notification>z-icon{fill:var(--color-success01)}:host div.warning-notification>z-icon{fill:var(--color-warning02)}:host div.error-notification>z-icon{fill:var(--color-error01)}:host div>z-icon.close-icon{cursor:pointer;fill:var(--color-primary01);margin-right:calc(var(--space-unit) * 2)}@media only screen and (min-width: 768px){.content-container{flex-wrap:nowrap}.content-text{margin-right:calc(var(--space-unit) * 5)}}";
|
|
9
|
+
|
|
10
|
+
const ZNotification = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
this.notificationAction = index.createEvent(this, "notificationAction", 7);
|
|
14
|
+
this.notificationClose = index.createEvent(this, "notificationClose", 7);
|
|
15
|
+
/** enable close icon */
|
|
16
|
+
this.showclose = false;
|
|
17
|
+
/** enable shadow */
|
|
18
|
+
this.showshadow = false;
|
|
19
|
+
}
|
|
20
|
+
handleActionButtonClick(e) {
|
|
21
|
+
e.preventDefault();
|
|
22
|
+
this.notificationAction.emit();
|
|
23
|
+
}
|
|
24
|
+
handleCloseButtonClick(e) {
|
|
25
|
+
e.preventDefault();
|
|
26
|
+
this.notificationClose.emit();
|
|
27
|
+
}
|
|
28
|
+
render() {
|
|
29
|
+
return (index.h("div", { class: {
|
|
30
|
+
"notification-container": true,
|
|
31
|
+
"success-notification": this.type === index$1.NotificationType.success,
|
|
32
|
+
"warning-notification": this.type === index$1.NotificationType.warning,
|
|
33
|
+
"error-notification": this.type === index$1.NotificationType.error,
|
|
34
|
+
"shadow": this.showshadow
|
|
35
|
+
} }, this.contenticonname && (index.h("z-icon", { name: this.contenticonname, width: 16, height: 16 })), index.h("div", { class: "content-container" }, index.h("z-body", { class: "content-text", level: 4 }, index.h("slot", null)), this.actiontext && !!this.actiontext.trim().length && (index.h("z-body", { class: "action-text", role: "button", tabindex: "0", onClick: (e) => {
|
|
36
|
+
this.handleActionButtonClick(e);
|
|
37
|
+
}, level: 5, variant: "semibold" }, this.actiontext))), this.showclose && (index.h("z-icon", { class: "close-icon", name: "multiply-circle", width: 16, height: 16, onClick: (e) => this.handleCloseButtonClick(e) }))));
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
ZNotification.style = stylesCss;
|
|
41
|
+
|
|
42
|
+
exports.z_notification = ZNotification;
|
|
@@ -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(--font-family-sans);font-weight:var(--font-rg)}.digits-container{display:flex;justify-content:flex-start}input{height:72px;width:calc(var(--space-unit) * 5);font-size:32px;font-weight:300;font-family:var(--font-family-sans);text-align:center;caret-color:transparent;box-sizing:border-box;padding:0;color:var(--color-surface05)}input.error{border:1px solid;border-radius:4px;border-color:var(--color-error01);background-color:var(--color-error-inverse)}input:not(:last-of-type){margin-right:var(--space-unit)}@media only screen and (min-width: 768px){input:not(:last-of-type){margin-right:calc(var(--space-unit) * 2)}}@media only screen and (min-width: 1025px){input{width:calc(var(--space-unit) * 6)}}";
|
|
9
9
|
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-dee3e21d.js');
|
|
6
|
+
const hammer = require('./hammer-54230951.js');
|
|
7
|
+
const utils = require('./utils-12053886.js');
|
|
8
|
+
require('./_commonjsHelpers-119ffc74.js');
|
|
9
|
+
require('./index-de6c491e.js');
|
|
10
|
+
require('./breakpoints-88c4fd6c.js');
|
|
11
|
+
|
|
12
|
+
const stylesCss = ":host>div{height:48px;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-around;align-items:center;align-content:center}:host>div>z-icon{cursor:pointer;margin:calc(var(--space-unit) * 2) 0;color:var(--color-primary01);fill:var(--color-primary01)}:host>div>z-icon.disabled{cursor:default;pointer-events:none;color:var(--color-disabled01);fill:var(--color-disabled01)}";
|
|
13
|
+
|
|
14
|
+
const ZPaginationBar = class {
|
|
15
|
+
constructor(hostRef) {
|
|
16
|
+
index.registerInstance(this, hostRef);
|
|
17
|
+
this.goToPage = index.createEvent(this, "goToPage", 7);
|
|
18
|
+
this.changeStartPage = index.createEvent(this, "changeStartPage", 7);
|
|
19
|
+
this.addPageToHistory = index.createEvent(this, "addPageToHistory", 7);
|
|
20
|
+
/** current displayed page (mutable) */
|
|
21
|
+
this.currentpage = 1;
|
|
22
|
+
/** initial page (mutable) */
|
|
23
|
+
this.startpage = 1;
|
|
24
|
+
/** array of history of visited pages (mutable, optional) */
|
|
25
|
+
this.listhistoryrow = [];
|
|
26
|
+
this.currentPages = [];
|
|
27
|
+
this.velocityConstantMultiplier = 2;
|
|
28
|
+
this.navigateRight = this.navigateRight.bind(this);
|
|
29
|
+
this.navigateLeft = this.navigateLeft.bind(this);
|
|
30
|
+
this.emitGoToPage = this.emitGoToPage.bind(this);
|
|
31
|
+
}
|
|
32
|
+
componentDidLoad() {
|
|
33
|
+
this.scrollPage = this.scrollPage.bind(this);
|
|
34
|
+
let mc = new hammer.hammer(this.bar);
|
|
35
|
+
// listen to events...
|
|
36
|
+
mc.on("swiperight", this.scrollPage);
|
|
37
|
+
mc.on("swipeleft", this.scrollPage);
|
|
38
|
+
}
|
|
39
|
+
componentWillRender() {
|
|
40
|
+
this.initPagination();
|
|
41
|
+
}
|
|
42
|
+
componentWillUpdate() {
|
|
43
|
+
this.initPagination();
|
|
44
|
+
}
|
|
45
|
+
initPagination() {
|
|
46
|
+
this.loadPages();
|
|
47
|
+
if (this.historyraw) {
|
|
48
|
+
this.parsehistoryraw(this.historyraw);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
parsehistoryraw(historyraw) {
|
|
52
|
+
this.listhistoryrow = [...JSON.parse(historyraw)];
|
|
53
|
+
}
|
|
54
|
+
scrollPage(ev) {
|
|
55
|
+
let vel = Math.round(Math.abs(ev.velocity)) * this.velocityConstantMultiplier;
|
|
56
|
+
const deltaPage = Math.max(1, vel);
|
|
57
|
+
switch (ev.type) {
|
|
58
|
+
case "swiperight":
|
|
59
|
+
if (!this.canNavigateLeft())
|
|
60
|
+
break;
|
|
61
|
+
const newstartPage1 = this.startpage - deltaPage;
|
|
62
|
+
if (newstartPage1 > 1)
|
|
63
|
+
this.emitChangeStartPage(newstartPage1);
|
|
64
|
+
else
|
|
65
|
+
this.emitChangeStartPage(1);
|
|
66
|
+
break;
|
|
67
|
+
case "swipeleft":
|
|
68
|
+
if (!this.canNavigateRight())
|
|
69
|
+
break;
|
|
70
|
+
const newstartPage2 = this.startpage + deltaPage;
|
|
71
|
+
if (newstartPage2 < this.pages - this.visiblepages + 1)
|
|
72
|
+
this.emitChangeStartPage(newstartPage2);
|
|
73
|
+
else
|
|
74
|
+
this.emitChangeStartPage(this.pages - this.visiblepages + 1);
|
|
75
|
+
break;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
emitGoToPage(page) {
|
|
79
|
+
this.currentpage = page;
|
|
80
|
+
this.goToPage.emit({ page: page });
|
|
81
|
+
this.addPageToHistory.emit({ page: page });
|
|
82
|
+
}
|
|
83
|
+
emitChangeStartPage(startpage) {
|
|
84
|
+
this.startpage = startpage;
|
|
85
|
+
this.changeStartPage.emit({ startpage: startpage });
|
|
86
|
+
}
|
|
87
|
+
emitAddPageToHistory(page) {
|
|
88
|
+
this.listhistoryrow.push(page);
|
|
89
|
+
this.changeStartPage.emit({ page: page });
|
|
90
|
+
}
|
|
91
|
+
loadPages() {
|
|
92
|
+
this.currentPages.splice(0);
|
|
93
|
+
const lastPage = this.pageWindow();
|
|
94
|
+
let i;
|
|
95
|
+
for (i = 0; i < lastPage; i++) {
|
|
96
|
+
this.currentPages.push(i + this.startpage);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
pageWindow() {
|
|
100
|
+
return Math.min(this.pages, this.visiblepages); //How many pages are there to show?
|
|
101
|
+
}
|
|
102
|
+
canNavigateLeft() {
|
|
103
|
+
return this.startpage > 1;
|
|
104
|
+
}
|
|
105
|
+
canNavigateRight() {
|
|
106
|
+
return this.startpage + this.visiblepages - 1 < this.pages;
|
|
107
|
+
}
|
|
108
|
+
navigateLeft() {
|
|
109
|
+
if (this.canNavigateLeft()) {
|
|
110
|
+
this.startpage--;
|
|
111
|
+
this.emitChangeStartPage(this.startpage);
|
|
112
|
+
this.loadPages();
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
navigateRight() {
|
|
116
|
+
if (this.canNavigateRight()) {
|
|
117
|
+
this.startpage++;
|
|
118
|
+
this.emitChangeStartPage(this.startpage);
|
|
119
|
+
this.loadPages();
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
render() {
|
|
123
|
+
return (index.h("div", { ref: el => (this.bar = el) }, index.h("z-icon", { name: "chevron-left", class: !this.canNavigateLeft() && "disabled", onClick: () => this.navigateLeft(), onKeyPress: (ev) => utils.handleKeyboardSubmit(ev, this.navigateLeft), tabindex: this.canNavigateLeft() ? 0 : -1 }), this.currentPages.map(page => (index.h("z-pagination-page", { value: page, isselected: page === this.currentpage, onClick: () => this.emitGoToPage(page), onKeyDown: (ev) => utils.handleKeyboardSubmit(ev, this.emitGoToPage, page), isvisited: this.listhistoryrow.includes(page) }))), index.h("z-icon", { name: "chevron-right", class: !this.canNavigateRight() && "disabled", onClick: () => this.navigateRight(), onKeyPress: (ev) => utils.handleKeyboardSubmit(ev, this.navigateRight), tabindex: this.canNavigateRight() ? 0 : -1 })));
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
ZPaginationBar.style = stylesCss;
|
|
127
|
+
|
|
128
|
+
exports.z_pagination_bar = ZPaginationBar;
|