@zanichelli/delta_share 2.0.6 → 2.0.7
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/dist/wc/cjs/{breakpoints-a55736d0.js → breakpoints-da666109.js} +0 -2
- package/dist/wc/cjs/delta_share.cjs.js +2 -2
- package/dist/wc/cjs/{icons-2aca6c75.js → icons-f65fa82e.js} +58 -132
- package/dist/wc/cjs/{index-9ca7d5e5.js → index-458dc8f4.js} +0 -12
- package/dist/wc/cjs/index-b9bd2767.js +81 -0
- package/dist/wc/cjs/{license-activation_13.cjs.entry.js → license-activation_16.cjs.entry.js} +493 -131
- package/dist/wc/cjs/loader.cjs.js +2 -2
- package/dist/wc/cjs/utils-1f907efa.js +42 -0
- package/dist/wc/cjs/z-app-header.cjs.entry.js +6 -132
- package/dist/wc/cjs/z-app-switcher.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-app-topbar.cjs.entry.js +28 -15
- package/dist/wc/cjs/z-button-sort.cjs.entry.js +3 -17
- package/dist/wc/cjs/z-candybar.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-card-alert.cjs.entry.js +52 -0
- package/dist/wc/cjs/z-card-body.cjs.entry.js +19 -0
- package/dist/wc/cjs/z-card-cover.cjs.entry.js +22 -0
- package/dist/wc/cjs/z-card-footer.cjs.entry.js +46 -0
- package/dist/wc/cjs/z-card-header.cjs.entry.js +38 -0
- package/dist/wc/cjs/z-card-icon.cjs.entry.js +21 -0
- package/dist/wc/cjs/{z-myz-card-list.cjs.entry.js → z-card-list.cjs.entry.js} +5 -5
- package/dist/wc/cjs/z-card.cjs.entry.js +25 -53
- package/dist/wc/cjs/z-chip.cjs.entry.js +7 -20
- package/dist/wc/cjs/z-combobox.cjs.entry.js +17 -18
- package/dist/wc/cjs/z-cookiebar.cjs.entry.js +5 -5
- package/dist/wc/cjs/z-divider.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-footer-link_3.cjs.entry.js +4 -4
- package/dist/wc/cjs/z-footer.cjs.entry.js +8 -35
- package/dist/wc/cjs/z-header.cjs.entry.js +180 -0
- package/dist/wc/cjs/z-heading.cjs.entry.js +17 -0
- package/dist/wc/cjs/z-icon-package.cjs.entry.js +2 -2
- package/dist/wc/cjs/{z-myz-list-item.cjs.entry.js → z-list-item.cjs.entry.js} +6 -7
- package/dist/wc/cjs/z-list_2.cjs.entry.js +53 -144
- package/dist/wc/cjs/z-logo.cjs.entry.js +10 -12
- package/dist/wc/cjs/z-menu-section.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-menu.cjs.entry.js +4 -58
- package/dist/wc/cjs/z-modal-login.cjs.entry.js +6 -15
- package/dist/wc/cjs/z-pagination-bar.cjs.entry.js +2651 -8
- package/dist/wc/cjs/z-pagination-page.cjs.entry.js +4 -3
- package/dist/wc/cjs/z-panel-elem.cjs.entry.js +1 -1
- package/dist/wc/cjs/{z-table-body.cjs.entry.js → z-registro-table-body.cjs.entry.js} +5 -5
- package/dist/wc/cjs/z-registro-table-cell.cjs.entry.js +34 -0
- package/dist/wc/cjs/{z-table-head.cjs.entry.js → z-registro-table-footer.cjs.entry.js} +5 -5
- package/dist/wc/cjs/{z-table-footer.cjs.entry.js → z-registro-table-head.cjs.entry.js} +5 -5
- package/dist/wc/cjs/z-registro-table-header.cjs.entry.js +23 -0
- package/dist/wc/cjs/z-registro-table-row.cjs.entry.js +23 -0
- package/dist/wc/cjs/z-registro-table-sticky-footer.cjs.entry.js +19 -0
- package/dist/wc/cjs/z-registro-table.cjs.entry.js +31 -0
- package/dist/wc/cjs/z-stepper-item.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-stepper.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-toggle-button.cjs.entry.js +6 -7
- package/dist/wc/cjs/z-tooltip.cjs.entry.js +24 -254
- package/dist/wc/cjs/z-user-dropdown.cjs.entry.js +51 -46
- package/dist/wc/collection/collection-manifest.json +18 -63
- package/dist/wc/collection/components/license-activation-form/license-activation-form.js +23 -11
- package/dist/wc/custom-elements/index.js +2802 -9496
- package/dist/wc/delta_share/delta_share.esm.js +1 -1
- package/dist/wc/delta_share/p-04b614bf.entry.js +1 -0
- package/dist/wc/delta_share/p-0a05abe2.entry.js +1 -0
- package/dist/wc/delta_share/{p-3341f25e.entry.js → p-10d9e4f5.entry.js} +1 -1
- package/dist/wc/delta_share/p-21e76fc5.entry.js +1 -0
- package/dist/wc/delta_share/p-26d039ff.entry.js +1 -0
- package/dist/wc/delta_share/p-3995e58c.entry.js +1 -0
- package/dist/wc/delta_share/p-3c0ba1d7.entry.js +1 -0
- package/dist/wc/delta_share/p-3dae174e.entry.js +1 -0
- package/dist/wc/delta_share/p-466d0fc0.entry.js +1 -0
- package/dist/wc/delta_share/p-57e825ae.entry.js +1 -0
- package/dist/wc/delta_share/p-5a2d329b.entry.js +1 -0
- package/dist/wc/delta_share/p-5e35124a.entry.js +1 -0
- package/dist/wc/delta_share/{p-29d111de.entry.js → p-6215ddbd.entry.js} +1 -1
- package/dist/wc/delta_share/{p-94df01a9.entry.js → p-65c48026.entry.js} +1 -1
- package/dist/wc/delta_share/{p-a0663266.entry.js → p-6684b880.entry.js} +1 -1
- package/dist/wc/delta_share/p-7145c713.entry.js +1 -0
- package/dist/wc/delta_share/p-79e22647.entry.js +3 -0
- package/dist/wc/delta_share/p-7a08a26d.entry.js +1 -0
- package/dist/wc/delta_share/p-7adbb1ec.entry.js +1 -0
- package/dist/wc/delta_share/{p-cfc122de.entry.js → p-800cd436.entry.js} +1 -1
- package/dist/wc/delta_share/p-804eb658.entry.js +1 -0
- package/dist/wc/delta_share/p-81d7702b.entry.js +1 -0
- package/dist/wc/delta_share/p-85623203.entry.js +1 -0
- package/dist/wc/delta_share/{p-f531a563.entry.js → p-873e098b.entry.js} +1 -1
- package/dist/wc/delta_share/p-9dd299b2.js +1 -0
- package/dist/wc/delta_share/{p-6a9fb59c.entry.js → p-a03963a8.entry.js} +1 -1
- package/dist/wc/delta_share/p-a259b62e.entry.js +1 -0
- package/dist/wc/delta_share/p-ab7c95da.entry.js +1 -0
- package/dist/wc/delta_share/p-abd1d378.entry.js +1 -0
- package/dist/wc/delta_share/p-acfe9eb3.entry.js +1 -0
- package/dist/wc/delta_share/p-b5e27e10.js +1 -0
- package/dist/wc/delta_share/p-b5eb340c.entry.js +1 -0
- package/dist/wc/delta_share/p-b60651f2.entry.js +1 -0
- package/dist/wc/delta_share/p-c56e8a41.entry.js +1 -0
- package/dist/wc/delta_share/p-c69e24bf.entry.js +1 -0
- package/dist/wc/delta_share/{p-5b320481.entry.js → p-ca57e6ec.entry.js} +1 -1
- package/dist/wc/delta_share/p-cac71697.js +1 -0
- package/dist/wc/delta_share/p-cad0320b.entry.js +1 -0
- package/dist/wc/delta_share/p-d1270e75.entry.js +1 -0
- package/dist/wc/delta_share/p-d2b8f445.entry.js +1 -0
- package/dist/wc/delta_share/p-d489328b.js +1 -0
- package/dist/wc/delta_share/p-de921fbb.entry.js +1 -0
- package/dist/wc/delta_share/p-ec64cd8e.entry.js +1 -0
- package/dist/wc/delta_share/{p-06b89fb4.entry.js → p-ef4da7dc.entry.js} +1 -1
- package/dist/wc/delta_share/p-f1ba2542.entry.js +1 -0
- package/dist/wc/delta_share/p-f500eb2e.entry.js +1 -0
- package/dist/wc/delta_share/p-f5d6ffbf.entry.js +1 -0
- package/dist/wc/delta_share/p-f6cf7f9f.entry.js +1 -0
- package/dist/wc/delta_share/p-f9175533.entry.js +7 -0
- package/dist/wc/delta_share/p-fb1885ec.js +1 -0
- package/dist/wc/esm/breakpoints-75d56fd9.js +3 -0
- package/dist/wc/esm/delta_share.js +2 -2
- package/dist/wc/esm/{icons-74713b55.js → icons-973d360b.js} +58 -132
- package/dist/wc/esm/{index-b3a91e19.js → index-5ecd661f.js} +0 -12
- package/dist/wc/esm/index-e68ea3a2.js +81 -0
- package/dist/wc/esm/{license-activation_13.entry.js → license-activation_16.entry.js} +491 -132
- package/dist/wc/esm/loader.js +2 -2
- package/dist/wc/esm/utils-1c638931.js +37 -0
- package/dist/wc/esm/z-app-header.entry.js +6 -132
- package/dist/wc/esm/z-app-switcher.entry.js +2 -2
- package/dist/wc/esm/z-app-topbar.entry.js +28 -15
- package/dist/wc/esm/z-button-sort.entry.js +3 -17
- package/dist/wc/esm/z-candybar.entry.js +1 -1
- package/dist/wc/esm/z-card-alert.entry.js +48 -0
- package/dist/wc/esm/z-card-body.entry.js +15 -0
- package/dist/wc/esm/z-card-cover.entry.js +18 -0
- package/dist/wc/esm/z-card-footer.entry.js +42 -0
- package/dist/wc/esm/z-card-header.entry.js +34 -0
- package/dist/wc/esm/z-card-icon.entry.js +17 -0
- package/dist/wc/esm/z-card-list.entry.js +33 -0
- package/dist/wc/esm/z-card.entry.js +25 -53
- package/dist/wc/esm/z-chip.entry.js +7 -20
- package/dist/wc/esm/z-combobox.entry.js +17 -18
- package/dist/wc/esm/z-cookiebar.entry.js +5 -5
- package/dist/wc/esm/z-divider.entry.js +2 -2
- package/dist/wc/esm/z-footer-link_3.entry.js +4 -4
- package/dist/wc/esm/z-footer.entry.js +8 -35
- package/dist/wc/esm/z-header.entry.js +176 -0
- package/dist/wc/esm/z-heading.entry.js +13 -0
- package/dist/wc/esm/z-icon-package.entry.js +2 -2
- package/dist/wc/esm/{z-myz-list-item.entry.js → z-list-item.entry.js} +6 -7
- package/dist/wc/esm/z-list_2.entry.js +53 -144
- package/dist/wc/esm/z-logo.entry.js +10 -12
- package/dist/wc/esm/z-menu-section.entry.js +2 -2
- package/dist/wc/esm/z-menu.entry.js +4 -58
- package/dist/wc/esm/z-modal-login.entry.js +6 -15
- package/dist/wc/esm/z-pagination-bar.entry.js +2651 -8
- package/dist/wc/esm/z-pagination-page.entry.js +4 -3
- package/dist/wc/esm/z-panel-elem.entry.js +1 -1
- package/dist/wc/esm/{z-table-body.entry.js → z-registro-table-body.entry.js} +5 -5
- package/dist/wc/esm/z-registro-table-cell.entry.js +30 -0
- package/dist/wc/esm/{z-table-footer.entry.js → z-registro-table-footer.entry.js} +5 -5
- package/dist/wc/esm/{z-table-head.entry.js → z-registro-table-head.entry.js} +5 -5
- package/dist/wc/esm/z-registro-table-header.entry.js +19 -0
- package/dist/wc/esm/z-registro-table-row.entry.js +19 -0
- package/dist/wc/esm/z-registro-table-sticky-footer.entry.js +15 -0
- package/dist/wc/esm/z-registro-table.entry.js +27 -0
- package/dist/wc/esm/z-stepper-item.entry.js +1 -1
- package/dist/wc/esm/z-stepper.entry.js +1 -1
- package/dist/wc/esm/z-toggle-button.entry.js +6 -7
- package/dist/wc/esm/z-tooltip.entry.js +24 -254
- package/dist/wc/esm/z-user-dropdown.entry.js +51 -46
- package/dist/wc/types/beans/index.d.ts +1 -1
- package/dist/wc/types/components/license-activation/license-activation.d.ts +1 -1
- package/dist/wc/types/components/license-activation-form/license-activation-form.d.ts +2 -1
- package/package.json +1 -1
- package/dist/wc/cjs/hammer-4f20813e.js +0 -2650
- package/dist/wc/cjs/index-9c6fd1db.js +0 -315
- package/dist/wc/cjs/utils-8a10bba9.js +0 -88
- package/dist/wc/cjs/z-alert.cjs.entry.js +0 -19
- package/dist/wc/cjs/z-aria-alert.cjs.entry.js +0 -18
- package/dist/wc/cjs/z-avatar.cjs.entry.js +0 -43
- package/dist/wc/cjs/z-button-deprecated.cjs.entry.js +0 -38
- package/dist/wc/cjs/z-button-filter.cjs.entry.js +0 -49
- package/dist/wc/cjs/z-carousel.cjs.entry.js +0 -24
- package/dist/wc/cjs/z-chip-deprecated.cjs.entry.js +0 -24
- package/dist/wc/cjs/z-contextual-menu.cjs.entry.js +0 -40
- package/dist/wc/cjs/z-date-picker.cjs.entry.js +0 -3104
- package/dist/wc/cjs/z-dragdrop-area_2.cjs.entry.js +0 -48
- package/dist/wc/cjs/z-file-upload.cjs.entry.js +0 -172
- package/dist/wc/cjs/z-file.cjs.entry.js +0 -47
- package/dist/wc/cjs/z-ghost-loading.cjs.entry.js +0 -19
- package/dist/wc/cjs/z-input-deprecated.cjs.entry.js +0 -271
- package/dist/wc/cjs/z-input-label_2.cjs.entry.js +0 -272
- package/dist/wc/cjs/z-list-group.cjs.entry.js +0 -54
- package/dist/wc/cjs/z-menu-dropdown_2.cjs.entry.js +0 -89
- package/dist/wc/cjs/z-messages-pocket.cjs.entry.js +0 -46
- package/dist/wc/cjs/z-myz-card-alert.cjs.entry.js +0 -63
- package/dist/wc/cjs/z-myz-card-dictionary.cjs.entry.js +0 -36
- package/dist/wc/cjs/z-myz-card-footer-sections.cjs.entry.js +0 -19
- package/dist/wc/cjs/z-myz-card-footer.cjs.entry.js +0 -56
- package/dist/wc/cjs/z-myz-card-icon.cjs.entry.js +0 -21
- package/dist/wc/cjs/z-myz-card-info.cjs.entry.js +0 -119
- package/dist/wc/cjs/z-myz-card_4.cjs.entry.js +0 -104
- package/dist/wc/cjs/z-myz-topbar.cjs.entry.js +0 -194
- package/dist/wc/cjs/z-navigation-tab-link.cjs.entry.js +0 -71
- package/dist/wc/cjs/z-navigation-tab.cjs.entry.js +0 -73
- package/dist/wc/cjs/z-navigation-tabs.cjs.entry.js +0 -126
- package/dist/wc/cjs/z-notification.cjs.entry.js +0 -46
- package/dist/wc/cjs/z-offcanvas.cjs.entry.js +0 -63
- package/dist/wc/cjs/z-otp.cjs.entry.js +0 -41
- package/dist/wc/cjs/z-pagination.cjs.entry.js +0 -229
- package/dist/wc/cjs/z-pocket-message.cjs.entry.js +0 -19
- package/dist/wc/cjs/z-pocket_3.cjs.entry.js +0 -125
- package/dist/wc/cjs/z-popover.cjs.entry.js +0 -132
- package/dist/wc/cjs/z-section-title.cjs.entry.js +0 -42
- package/dist/wc/cjs/z-skip-to-content.cjs.entry.js +0 -68
- package/dist/wc/cjs/z-slideshow.cjs.entry.js +0 -112
- package/dist/wc/cjs/z-status-tag.cjs.entry.js +0 -29
- package/dist/wc/cjs/z-table-cell.cjs.entry.js +0 -36
- package/dist/wc/cjs/z-table-empty-box.cjs.entry.js +0 -32
- package/dist/wc/cjs/z-table-expanded-row.cjs.entry.js +0 -19
- package/dist/wc/cjs/z-table-header-row.cjs.entry.js +0 -22
- package/dist/wc/cjs/z-table-header.cjs.entry.js +0 -88
- package/dist/wc/cjs/z-table-row.cjs.entry.js +0 -43
- package/dist/wc/cjs/z-table-sticky-footer.cjs.entry.js +0 -19
- package/dist/wc/cjs/z-table.cjs.entry.js +0 -82
- package/dist/wc/cjs/z-tag.cjs.entry.js +0 -22
- package/dist/wc/cjs/z-toast-notification-list.cjs.entry.js +0 -56
- package/dist/wc/cjs/z-toast-notification.cjs.entry.js +0 -203
- package/dist/wc/cjs/z-toggle-switch.cjs.entry.js +0 -49
- package/dist/wc/cjs/z-visually-hidden.cjs.entry.js +0 -19
- package/dist/wc/delta_share/p-041ff3e2.entry.js +0 -1
- package/dist/wc/delta_share/p-06543221.entry.js +0 -1
- package/dist/wc/delta_share/p-0b0179c7.js +0 -1
- package/dist/wc/delta_share/p-0f55558e.js +0 -1
- package/dist/wc/delta_share/p-103f926c.entry.js +0 -1
- package/dist/wc/delta_share/p-12aa58e4.entry.js +0 -1
- package/dist/wc/delta_share/p-20c14e4e.entry.js +0 -1
- package/dist/wc/delta_share/p-243df9e5.entry.js +0 -1
- package/dist/wc/delta_share/p-244accd2.entry.js +0 -1
- package/dist/wc/delta_share/p-261611b1.js +0 -1
- package/dist/wc/delta_share/p-29cb5018.entry.js +0 -1
- package/dist/wc/delta_share/p-2b05751b.entry.js +0 -1
- package/dist/wc/delta_share/p-3094900a.entry.js +0 -1
- package/dist/wc/delta_share/p-32975e01.entry.js +0 -1
- package/dist/wc/delta_share/p-32d34db1.entry.js +0 -1
- package/dist/wc/delta_share/p-33fb12fc.entry.js +0 -1
- package/dist/wc/delta_share/p-35bccab3.entry.js +0 -1
- package/dist/wc/delta_share/p-36955fc5.entry.js +0 -1
- package/dist/wc/delta_share/p-39440988.entry.js +0 -1
- package/dist/wc/delta_share/p-3f61bc0d.entry.js +0 -1
- package/dist/wc/delta_share/p-422f29e8.entry.js +0 -1
- package/dist/wc/delta_share/p-43ae8e0a.entry.js +0 -1
- package/dist/wc/delta_share/p-44eba966.entry.js +0 -1
- package/dist/wc/delta_share/p-51431ace.js +0 -1
- package/dist/wc/delta_share/p-5374191c.entry.js +0 -16
- package/dist/wc/delta_share/p-5559856c.entry.js +0 -1
- package/dist/wc/delta_share/p-5af0e3cd.entry.js +0 -1
- package/dist/wc/delta_share/p-5d085d01.entry.js +0 -1
- package/dist/wc/delta_share/p-5d88112c.entry.js +0 -1
- package/dist/wc/delta_share/p-5e9898dd.entry.js +0 -1
- package/dist/wc/delta_share/p-6422731e.entry.js +0 -1
- package/dist/wc/delta_share/p-64ffaf7b.entry.js +0 -1
- package/dist/wc/delta_share/p-6613eeee.entry.js +0 -1
- package/dist/wc/delta_share/p-6a39042b.entry.js +0 -1
- package/dist/wc/delta_share/p-6f7064dc.entry.js +0 -1
- package/dist/wc/delta_share/p-767a8d6e.entry.js +0 -1
- package/dist/wc/delta_share/p-76cfb0be.entry.js +0 -1
- package/dist/wc/delta_share/p-775af9dc.entry.js +0 -1
- package/dist/wc/delta_share/p-7f71c41e.entry.js +0 -1
- package/dist/wc/delta_share/p-8b6617d8.entry.js +0 -1
- package/dist/wc/delta_share/p-8fb4a4ea.entry.js +0 -1
- package/dist/wc/delta_share/p-91a4ef35.js +0 -1
- package/dist/wc/delta_share/p-91af6142.entry.js +0 -1
- package/dist/wc/delta_share/p-94b8f342.entry.js +0 -1
- package/dist/wc/delta_share/p-9656b290.entry.js +0 -1
- package/dist/wc/delta_share/p-97e4d621.entry.js +0 -1
- package/dist/wc/delta_share/p-9a1d266e.entry.js +0 -1
- package/dist/wc/delta_share/p-9c147330.entry.js +0 -1
- package/dist/wc/delta_share/p-9d35fb61.entry.js +0 -1
- package/dist/wc/delta_share/p-a150a778.entry.js +0 -1
- package/dist/wc/delta_share/p-a823768b.entry.js +0 -1
- package/dist/wc/delta_share/p-a880ae33.entry.js +0 -3
- package/dist/wc/delta_share/p-a949636a.entry.js +0 -1
- package/dist/wc/delta_share/p-b1c1f030.entry.js +0 -1
- package/dist/wc/delta_share/p-b5f0d2dc.entry.js +0 -1
- package/dist/wc/delta_share/p-badf3f24.entry.js +0 -1
- package/dist/wc/delta_share/p-bb38e604.entry.js +0 -1
- package/dist/wc/delta_share/p-bc225deb.entry.js +0 -1
- package/dist/wc/delta_share/p-bf58b24b.entry.js +0 -1
- package/dist/wc/delta_share/p-c2dde3b3.entry.js +0 -1
- package/dist/wc/delta_share/p-cccef23b.entry.js +0 -1
- package/dist/wc/delta_share/p-cd42e0b5.entry.js +0 -1
- package/dist/wc/delta_share/p-d282ce22.entry.js +0 -1
- package/dist/wc/delta_share/p-d610565d.entry.js +0 -1
- package/dist/wc/delta_share/p-da8144e5.entry.js +0 -1
- package/dist/wc/delta_share/p-dafefe1f.entry.js +0 -1
- package/dist/wc/delta_share/p-dc148f92.entry.js +0 -1
- package/dist/wc/delta_share/p-dd50dd54.entry.js +0 -1
- package/dist/wc/delta_share/p-de117646.entry.js +0 -1
- package/dist/wc/delta_share/p-dec6ab35.entry.js +0 -1
- package/dist/wc/delta_share/p-e37c7b62.entry.js +0 -1
- package/dist/wc/delta_share/p-e43e61ac.js +0 -7
- package/dist/wc/delta_share/p-e7932e20.entry.js +0 -1
- package/dist/wc/delta_share/p-e9412ef0.entry.js +0 -1
- package/dist/wc/delta_share/p-ea6c7be0.entry.js +0 -1
- package/dist/wc/delta_share/p-ebb9a3f9.entry.js +0 -1
- package/dist/wc/delta_share/p-ee76ecea.entry.js +0 -1
- package/dist/wc/delta_share/p-f0723bcc.entry.js +0 -1
- package/dist/wc/delta_share/p-f2323f2a.entry.js +0 -1
- package/dist/wc/delta_share/p-f441efc3.entry.js +0 -1
- package/dist/wc/delta_share/p-fd83d815.entry.js +0 -1
- package/dist/wc/delta_share/p-ff2508eb.entry.js +0 -1
- package/dist/wc/esm/breakpoints-e07f80e7.js +0 -4
- package/dist/wc/esm/hammer-c3266b17.js +0 -2648
- package/dist/wc/esm/index-654849a7.js +0 -315
- package/dist/wc/esm/utils-417652d9.js +0 -80
- package/dist/wc/esm/z-alert.entry.js +0 -15
- package/dist/wc/esm/z-aria-alert.entry.js +0 -14
- package/dist/wc/esm/z-avatar.entry.js +0 -39
- package/dist/wc/esm/z-button-deprecated.entry.js +0 -34
- package/dist/wc/esm/z-button-filter.entry.js +0 -45
- package/dist/wc/esm/z-carousel.entry.js +0 -20
- package/dist/wc/esm/z-chip-deprecated.entry.js +0 -20
- package/dist/wc/esm/z-contextual-menu.entry.js +0 -36
- package/dist/wc/esm/z-date-picker.entry.js +0 -3100
- package/dist/wc/esm/z-dragdrop-area_2.entry.js +0 -43
- package/dist/wc/esm/z-file-upload.entry.js +0 -168
- package/dist/wc/esm/z-file.entry.js +0 -43
- package/dist/wc/esm/z-ghost-loading.entry.js +0 -15
- package/dist/wc/esm/z-input-deprecated.entry.js +0 -267
- package/dist/wc/esm/z-input-label_2.entry.js +0 -267
- package/dist/wc/esm/z-list-group.entry.js +0 -50
- package/dist/wc/esm/z-menu-dropdown_2.entry.js +0 -84
- package/dist/wc/esm/z-messages-pocket.entry.js +0 -42
- package/dist/wc/esm/z-myz-card-alert.entry.js +0 -59
- package/dist/wc/esm/z-myz-card-dictionary.entry.js +0 -32
- package/dist/wc/esm/z-myz-card-footer-sections.entry.js +0 -15
- package/dist/wc/esm/z-myz-card-footer.entry.js +0 -52
- package/dist/wc/esm/z-myz-card-icon.entry.js +0 -17
- package/dist/wc/esm/z-myz-card-info.entry.js +0 -115
- package/dist/wc/esm/z-myz-card-list.entry.js +0 -33
- package/dist/wc/esm/z-myz-card_4.entry.js +0 -97
- package/dist/wc/esm/z-myz-topbar.entry.js +0 -190
- package/dist/wc/esm/z-navigation-tab-link.entry.js +0 -67
- package/dist/wc/esm/z-navigation-tab.entry.js +0 -69
- package/dist/wc/esm/z-navigation-tabs.entry.js +0 -122
- package/dist/wc/esm/z-notification.entry.js +0 -42
- package/dist/wc/esm/z-offcanvas.entry.js +0 -59
- package/dist/wc/esm/z-otp.entry.js +0 -37
- package/dist/wc/esm/z-pagination.entry.js +0 -225
- package/dist/wc/esm/z-pocket-message.entry.js +0 -15
- package/dist/wc/esm/z-pocket_3.entry.js +0 -119
- package/dist/wc/esm/z-popover.entry.js +0 -128
- package/dist/wc/esm/z-section-title.entry.js +0 -38
- package/dist/wc/esm/z-skip-to-content.entry.js +0 -64
- package/dist/wc/esm/z-slideshow.entry.js +0 -108
- package/dist/wc/esm/z-status-tag.entry.js +0 -25
- package/dist/wc/esm/z-table-cell.entry.js +0 -32
- package/dist/wc/esm/z-table-empty-box.entry.js +0 -28
- package/dist/wc/esm/z-table-expanded-row.entry.js +0 -15
- package/dist/wc/esm/z-table-header-row.entry.js +0 -18
- package/dist/wc/esm/z-table-header.entry.js +0 -84
- package/dist/wc/esm/z-table-row.entry.js +0 -39
- package/dist/wc/esm/z-table-sticky-footer.entry.js +0 -15
- package/dist/wc/esm/z-table.entry.js +0 -78
- package/dist/wc/esm/z-tag.entry.js +0 -18
- package/dist/wc/esm/z-toast-notification-list.entry.js +0 -52
- package/dist/wc/esm/z-toast-notification.entry.js +0 -199
- package/dist/wc/esm/z-toggle-switch.entry.js +0 -45
- package/dist/wc/esm/z-visually-hidden.entry.js +0 -15
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-b3a91e19.js';
|
|
2
|
-
import { N as NavigationTabsOrientations, p as NavigationTabsSizes } from './index-654849a7.js';
|
|
3
|
-
|
|
4
|
-
const stylesCss = ":host{position:relative;display:flex;flex-direction:row;z-index:0;font-family:var(--font-family-sans);font-weight:var(--font-rg);overflow:hidden}:host,:host *,::slotted(*){box-sizing:border-box}::-webkit-scrollbar{display:none}.navigation-button{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;box-shadow:0px 0px 4px 1px rgb(66, 69, 72, 0.40)}.navigation-button:focus:focus-visible{fill:var(--color-primary01);box-shadow:inset var(--shadow-focus-primary)}.navigation-button:disabled{display:none}nav{display:flex;align-items:center;justify-content:flex-start;overflow:auto;scroll-behavior:smooth;scrollbar-width:none}:host([orientation='horizontal']) nav{width:100%}:host([orientation='horizontal']) .navigation-button{top:0;height:100%;width:calc(var(--space-unit) * 4)}:host([orientation='horizontal']) .navigation-button:first-child{left:0}:host([orientation='horizontal']) .navigation-button:last-child{right:0}:host([orientation='vertical']){flex-direction:column;width:fit-content}:host([orientation='vertical']) nav{flex-direction:column;align-items:stretch;height:100%}:host([orientation='vertical']) .navigation-button{left:0;width:100%;height:calc(var(--space-unit) * 4)}:host([orientation='vertical']) .navigation-button:first-child{top:0}:host([orientation='vertical']) .navigation-button:last-child{bottom:0}:host([size='small'][orientation='vertical']) .navigation-button{height:calc(var(--space-unit) * 4)}";
|
|
5
|
-
|
|
6
|
-
const ZNavigationTabs = class {
|
|
7
|
-
constructor(hostRef) {
|
|
8
|
-
registerInstance(this, hostRef);
|
|
9
|
-
/**
|
|
10
|
-
* Navigation tabs orientation.
|
|
11
|
-
*/
|
|
12
|
-
this.orientation = NavigationTabsOrientations.horizontal;
|
|
13
|
-
/**
|
|
14
|
-
* Navigation tabs size.
|
|
15
|
-
*/
|
|
16
|
-
this.size = NavigationTabsSizes.big;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Getter for the direction to check based on current orientation.
|
|
20
|
-
*/
|
|
21
|
-
get direction() {
|
|
22
|
-
return this.orientation == NavigationTabsOrientations.horizontal ? 'Left' : 'Top';
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Getter for the dimension to check based on current orientation.
|
|
26
|
-
*/
|
|
27
|
-
get dimension() {
|
|
28
|
-
return this.orientation == NavigationTabsOrientations.horizontal ? 'Width' : 'Height';
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Set the `size` prop to all `z-navigation-tab` children.
|
|
32
|
-
*/
|
|
33
|
-
setChildrenSize() {
|
|
34
|
-
const children = Array.from(this.host.children);
|
|
35
|
-
children.forEach((child) => {
|
|
36
|
-
child.setAttribute('size', this.size);
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Set the `orientation` prop to all `z-navigation-tab` children.
|
|
41
|
-
*/
|
|
42
|
-
setChildrenOrientation() {
|
|
43
|
-
const children = Array.from(this.host.children);
|
|
44
|
-
children.forEach((child) => {
|
|
45
|
-
child.setAttribute('orientation', this.orientation);
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Check if the navigation buttons are needed on window resize.
|
|
50
|
-
*/
|
|
51
|
-
checkScrollVisible() {
|
|
52
|
-
if (!this.tabsNav) {
|
|
53
|
-
return;
|
|
54
|
-
}
|
|
55
|
-
this.canNavigate = this.tabsNav[`scroll${this.dimension}`] > this.tabsNav[`client${this.dimension}`];
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Check if navigation buttons can be enabled for each direction.
|
|
59
|
-
*/
|
|
60
|
-
checkScrollEnabled() {
|
|
61
|
-
if (!this.tabsNav) {
|
|
62
|
-
return;
|
|
63
|
-
}
|
|
64
|
-
this.canNavigateNext = (this.tabsNav[`scroll${this.direction}`] + this.tabsNav[`client${this.dimension}`]) <
|
|
65
|
-
this.tabsNav[`scroll${this.dimension}`];
|
|
66
|
-
this.canNavigatePrev = this.tabsNav[`scroll${this.direction}`] > 0;
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Listen for child tab selection.
|
|
70
|
-
* Deselect all other previously selected tabs,
|
|
71
|
-
* then scroll to the new selected tab and center it.
|
|
72
|
-
* @param {CustomEvent} event `selected` event triggered by a child tab
|
|
73
|
-
*/
|
|
74
|
-
onTabSelected(event) {
|
|
75
|
-
const tab = event.target;
|
|
76
|
-
const children = Array.from(this.host.children);
|
|
77
|
-
children.forEach((child) => {
|
|
78
|
-
if (child !== tab) {
|
|
79
|
-
child.removeAttribute('selected');
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
/**
|
|
84
|
-
* Scroll the navigation bar half of its size backward.
|
|
85
|
-
*/
|
|
86
|
-
navigateBackwards() {
|
|
87
|
-
this.tabsNav.scrollBy({
|
|
88
|
-
[this.direction.toLowerCase()]: 0 - (this.tabsNav[`client${this.dimension}`] / 2),
|
|
89
|
-
behavior: 'smooth',
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* Scroll the navigation bar half of its size forward.
|
|
94
|
-
*/
|
|
95
|
-
navigateForward() {
|
|
96
|
-
this.tabsNav.scrollBy({
|
|
97
|
-
[this.direction.toLowerCase()]: this.tabsNav[`scroll${this.direction}`] +
|
|
98
|
-
(this.tabsNav[`client${this.dimension}`] / 2),
|
|
99
|
-
behavior: 'smooth',
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
componentDidRender() {
|
|
103
|
-
this.setChildrenSize();
|
|
104
|
-
this.setChildrenOrientation();
|
|
105
|
-
this.checkScrollVisible();
|
|
106
|
-
}
|
|
107
|
-
render() {
|
|
108
|
-
return h(Host, { class: {
|
|
109
|
-
'interactive-2': this.size === NavigationTabsSizes.small,
|
|
110
|
-
'interactive-1': this.size !== NavigationTabsSizes.small
|
|
111
|
-
}, scrollable: this.canNavigate }, this.canNavigate && h("button", { class: "navigation-button", onClick: this.navigateBackwards.bind(this), tabindex: "-1", disabled: !this.canNavigatePrev }, h("z-icon", { name: this.orientation == NavigationTabsOrientations.horizontal ? 'chevron-left' : 'chevron-up', width: 16, height: 16 })), h("nav", { role: "tablist", ref: (el) => this.tabsNav = el !== null && el !== void 0 ? el : this.tabsNav, onScroll: this.checkScrollEnabled.bind(this) }, h("slot", null)), this.canNavigate && h("button", { class: "navigation-button", onClick: this.navigateForward.bind(this), tabindex: "-1", disabled: !this.canNavigateNext }, h("z-icon", { name: this.orientation == NavigationTabsOrientations.horizontal ? 'chevron-right' : 'chevron-down', width: 16, height: 16 })));
|
|
112
|
-
}
|
|
113
|
-
get host() { return getElement(this); }
|
|
114
|
-
static get watchers() { return {
|
|
115
|
-
"size": ["setChildrenSize"],
|
|
116
|
-
"orientation": ["setChildrenOrientation"],
|
|
117
|
-
"canNavigate": ["checkScrollEnabled"]
|
|
118
|
-
}; }
|
|
119
|
-
};
|
|
120
|
-
ZNavigationTabs.style = stylesCss;
|
|
121
|
-
|
|
122
|
-
export { ZNavigationTabs as z_navigation_tabs };
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-b3a91e19.js';
|
|
2
|
-
|
|
3
|
-
const stylesCss = ":host{--z-notification--top-offset:0;display:flex;align-items:flex-start;width:100%;padding:calc(var(--space-unit) * 2);font-family:var(--font-family-sans);border-bottom:var(--border-size-medium) solid var(--color-surface03);outline:none;box-sizing:border-box}:host[sticky]{position:sticky;top:var(--z-notification--top-offset)}:host[sticky],:host([showshadow]){box-shadow:var(--shadow-3)}:host([type=\"success\"]){background:var(--color-success-inverse)}:host([type=\"warning\"]){background:var(--color-warning-inverse)}:host([type=\"error\"]){background:var(--color-error-inverse)}.status-icon,.close-button{display:flex;align-items:center;height:20px}:host([type=\"success\"]) .status-icon{fill:var(--color-success01)}:host([type=\"warning\"]) .status-icon{fill:var(--color-warning02)}:host([type=\"error\"]) .status-icon{fill:var(--color-error01)}:host>button,.content-container>button{margin:0;padding:0;background:transparent;border:none;font-family:inherit;cursor:pointer}.status-icon+.content-container{margin-left:var(--space-unit)}.content-container{display:flex;align-items:baseline;justify-content:space-between;row-gap:calc(var(--space-unit) * 2);flex-wrap:wrap;flex:1 auto}.content-text{max-width:800px;color:var(--color-text01);font-size:var(--font-size-2);font-weight:var(--font-rg);line-height:20px;letter-spacing:0.16px}.action-button{color:var(--color-primary01);font-size:var(--font-size-1);font-weight:var(--font-sb);line-height:16px;letter-spacing:0.32px}.content-container+.close-button{margin-left:calc(var(--space-unit) * 2)}.close-button z-icon{fill:var(--color-primary01)}@media and (min-width: 768px){.content-container{flex-wrap:nowrap}.content-text+.action-button{margin-left:calc(var(--space-unit) * 5)}}";
|
|
4
|
-
|
|
5
|
-
const ZNotification = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
this.notificationAction = createEvent(this, "notificationAction", 7);
|
|
9
|
-
this.notificationClose = createEvent(this, "notificationClose", 7);
|
|
10
|
-
/** Enable close icon */
|
|
11
|
-
this.showclose = false;
|
|
12
|
-
/**
|
|
13
|
-
* Enable shadow.
|
|
14
|
-
* @deprecated shadow is available only for the `sticky` version of the notification.
|
|
15
|
-
*/
|
|
16
|
-
this.showshadow = false;
|
|
17
|
-
/** Enable sticky notification bar. */
|
|
18
|
-
this.sticky = false;
|
|
19
|
-
this.handleActionButtonClick = this.handleActionButtonClick.bind(this);
|
|
20
|
-
this.handleCloseButtonClick = this.handleCloseButtonClick.bind(this);
|
|
21
|
-
}
|
|
22
|
-
handleActionButtonClick(e) {
|
|
23
|
-
e.preventDefault();
|
|
24
|
-
this.notificationAction.emit();
|
|
25
|
-
}
|
|
26
|
-
handleCloseButtonClick(e) {
|
|
27
|
-
e.preventDefault();
|
|
28
|
-
this.notificationClose.emit();
|
|
29
|
-
}
|
|
30
|
-
render() {
|
|
31
|
-
var _a;
|
|
32
|
-
return [
|
|
33
|
-
this.contenticonname && h("z-icon", { class: "status-icon", name: this.contenticonname, width: 16, height: 16 }),
|
|
34
|
-
h("div", { class: "content-container" }, h("div", { class: "content-text" }, h("slot", null)), !!((_a = this.actiontext) === null || _a === void 0 ? void 0 : _a.trim()) &&
|
|
35
|
-
h("button", { class: "action-button", type: "button", onClick: this.handleActionButtonClick }, this.actiontext)),
|
|
36
|
-
this.showclose && h("button", { class: "close-button", type: "button", onClick: this.handleCloseButtonClick }, h("z-icon", { name: "multiply-circle", width: 16, height: 16 }))
|
|
37
|
-
];
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
ZNotification.style = stylesCss;
|
|
41
|
-
|
|
42
|
-
export { ZNotification as z_notification };
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, a as getElement } from './index-b3a91e19.js';
|
|
2
|
-
import { O as OffCanvasVariantsEnum, q as TransitionDirectionEnum } from './index-654849a7.js';
|
|
3
|
-
|
|
4
|
-
const stylesCss = ".sc-z-offcanvas-h{--z-offcanvas--container-width:375px;--z-offcanvas--top-space:0px;z-index:1000;display:none;justify-content:end;height:100%;min-width:100%;font-family:var(--font-family-sans);font-weight:var(--font-rg)}.canvas-container.sc-z-offcanvas{display:flex;flex-direction:column;z-index:1010;min-width:100%;height:100%;overflow:-moz-scrollbars-none;overflow:hidden;background:var(--color-surface01);transform:translateX(100%)}@keyframes enterRight{from{transform:translateX(100%)}to{transform:translateX(0)}}[open].sc-z-offcanvas-h>.canvas-container.sc-z-offcanvas{animation-name:enterRight;animation-duration:0.4s;animation-timing-function:ease-out;transform:translateX(0)}@keyframes exitRight{from{transform:translateX(0)}to{transform:translateX(100%)}}.sc-z-offcanvas-h:not([open])[variant=\"overlay\"]>.canvas-container.sc-z-offcanvas{animation-name:exitRight;animation-duration:0.4s;animation-timing-function:ease-out;transform:translateX(100%)}[variant=\"overlay\"].sc-z-offcanvas-h{position:fixed;height:calc(100% - var(--z-offcanvas--top-space));top:var(--z-offcanvas--top-space);left:0;right:0;bottom:0}[variant=\"overlay\"].sc-z-offcanvas-h .canvas-background.sc-z-offcanvas{position:absolute;left:0;width:100%;height:100%;background-color:var(--gray900);opacity:0.7}[transitiondirection=\"right\"].sc-z-offcanvas-h{justify-content:start}[transitiondirection=\"right\"].sc-z-offcanvas-h>.canvas-container.sc-z-offcanvas{transform:translateX(-100%)}@keyframes enterLeft{from{transform:translateX(-100%)}to{transform:translateX(0)}}[transitiondirection=\"right\"][open].sc-z-offcanvas-h>.canvas-container.sc-z-offcanvas{animation-name:enterLeft;animation-duration:0.4s;animation-timing-function:ease-out;transform:translateX(0)}@keyframes exitLeft{from{transform:translateX(0)}to{transform:translateX(-100%)}}.sc-z-offcanvas-h:not([open])[variant=\"overlay\"][transitiondirection=\"right\"]>.canvas-container.sc-z-offcanvas{animation-name:exitLeft;animation-duration:0.4s;animation-timing-function:ease-out;transform:translateX(-100%)}.canvas-container.sc-z-offcanvas>.canvas-content.sc-z-offcanvas{flex:1 auto;overflow:auto;overflow-x:hidden;padding:0 calc(var(--space-unit) * 2);margin:calc(var(--space-unit) * 2) calc(var(--space-unit) / 2) calc(var(--space-unit) * 2) 0}.canvas-container.sc-z-offcanvas .canvas-content.sc-z-offcanvas::-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)}.canvas-container.sc-z-offcanvas .canvas-content.sc-z-offcanvas::-webkit-scrollbar-track{background-color:transparent}.canvas-container.sc-z-offcanvas .canvas-content.sc-z-offcanvas::-webkit-scrollbar-thumb{background-color:var(--color-primary01);border-radius:var(--border-radius);width:10px}.canvas-container.sc-z-offcanvas .canvas-content.sc-z-offcanvas::-webkit-scrollbar-thumb:hover{background-color:var(--color-hover-primary)}.canvas-container.sc-z-offcanvas .canvas-content.sc-z-offcanvas{scrollbar-color:var(--color-primary01) transparent}@media only screen and (min-width: 768px){.sc-z-offcanvas-h{min-width:auto}.canvas-container.sc-z-offcanvas{width:auto;height:auto;min-width:max(var(--z-offcanvas--container-width), 375px);min-height:calc(var(--space-unit) * 40);max-width:max(var(--z-offcanvas--container-width), 375px)}@keyframes grow{from{width:0}to{width:max(var(--z-offcanvas--container-width), 375px)}}.sc-z-offcanvas-h:not([variant=\"overlay\"])[open]{animation-name:grow;animation-duration:0.4s;animation-timing-function:ease-out;width:auto}}";
|
|
5
|
-
|
|
6
|
-
const ZOffcanvas = class {
|
|
7
|
-
constructor(hostRef) {
|
|
8
|
-
registerInstance(this, hostRef);
|
|
9
|
-
this.canvasOpenStatusChanged = createEvent(this, "canvasOpenStatusChanged", 7);
|
|
10
|
-
/**
|
|
11
|
-
* Offcanvas variant.
|
|
12
|
-
* Can be one of "overlay", "pushcontent"
|
|
13
|
-
* Default variant: pushcontent
|
|
14
|
-
*/
|
|
15
|
-
this.variant = OffCanvasVariantsEnum.pushcontent;
|
|
16
|
-
/** open component. Default: false */
|
|
17
|
-
this.open = false;
|
|
18
|
-
/** open content transitioning in a specified direction left | right. Default: left */
|
|
19
|
-
this.transitiondirection = TransitionDirectionEnum.left;
|
|
20
|
-
}
|
|
21
|
-
componentWillLoad() {
|
|
22
|
-
this.handleOpenStatus();
|
|
23
|
-
}
|
|
24
|
-
onOpenChanged() {
|
|
25
|
-
this.handleOpenStatus();
|
|
26
|
-
this.canvasOpenStatusChanged.emit(this.open);
|
|
27
|
-
}
|
|
28
|
-
handleOpenStatus() {
|
|
29
|
-
if (this.open) {
|
|
30
|
-
this.hostElement.style.display = "flex";
|
|
31
|
-
}
|
|
32
|
-
else if (this.variant === OffCanvasVariantsEnum.pushcontent) {
|
|
33
|
-
this.hostElement.style.display = "none";
|
|
34
|
-
document.body.style.overflowX = "hidden";
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
handleAnimationEnd() {
|
|
38
|
-
if (this.hostElement.hasAttribute("open")) {
|
|
39
|
-
this.hostElement.querySelector(`.canvas-content`).focus();
|
|
40
|
-
}
|
|
41
|
-
else if (this.variant === OffCanvasVariantsEnum.overlay) {
|
|
42
|
-
this.hostElement.style.display = "none";
|
|
43
|
-
document.body.style.overflowX = "initial";
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
render() {
|
|
47
|
-
return [
|
|
48
|
-
h("div", { class: "canvas-container", onAnimationEnd: () => this.handleAnimationEnd() }, h("div", { class: "canvas-content", tabindex: "0" }, h("slot", { name: "canvasContent" }))),
|
|
49
|
-
h("div", { class: "canvas-background", "data-action": "canvasBackground", onClick: () => this.open = false })
|
|
50
|
-
];
|
|
51
|
-
}
|
|
52
|
-
get hostElement() { return getElement(this); }
|
|
53
|
-
static get watchers() { return {
|
|
54
|
-
"open": ["onOpenChanged"]
|
|
55
|
-
}; }
|
|
56
|
-
};
|
|
57
|
-
ZOffcanvas.style = stylesCss;
|
|
58
|
-
|
|
59
|
-
export { ZOffcanvas as z_offcanvas };
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-b3a91e19.js';
|
|
2
|
-
import { m as InputStatusEnum } from './index-654849a7.js';
|
|
3
|
-
|
|
4
|
-
const stylesCss = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg)}.digits-container{display:flex;justify-content:flex-start}input{height:72px;width:calc(var(--space-unit) * 5);font-size:32px;font-weight:300;font-family:var(--font-family-sans);text-align:center;caret-color:transparent;box-sizing:border-box;padding:0;color:var(--color-surface05)}input.error{border:1px solid;border-radius:4px;border-color:var(--color-error01);background-color:var(--color-error-inverse)}input:not(:last-of-type){margin-right:var(--space-unit)}@media only screen and (min-width: 768px){input:not(:last-of-type){margin-right:calc(var(--space-unit) * 2)}}@media only screen and (min-width: 1025px){input{width:calc(var(--space-unit) * 6)}}";
|
|
5
|
-
|
|
6
|
-
const ZOtp = class {
|
|
7
|
-
constructor(hostRef) {
|
|
8
|
-
registerInstance(this, hostRef);
|
|
9
|
-
this.otpChange = createEvent(this, "otpChange", 7);
|
|
10
|
-
this.inputNum = 6;
|
|
11
|
-
}
|
|
12
|
-
emitInputChange(value) {
|
|
13
|
-
this.otpChange.emit({ value });
|
|
14
|
-
}
|
|
15
|
-
componentWillLoad() {
|
|
16
|
-
this.otp = Array.apply(null, Array(this.inputNum));
|
|
17
|
-
this.otpRef = Array.apply(null, Array(this.inputNum));
|
|
18
|
-
}
|
|
19
|
-
render() {
|
|
20
|
-
return (h("div", { class: "otp-container" }, h("div", { class: "digits-container" }, this.otp.map((_elem, i) => {
|
|
21
|
-
return (h("input", { class: this.status == InputStatusEnum.error ? "error" : null, onKeyDown: (e) => {
|
|
22
|
-
if (e.keyCode > 47)
|
|
23
|
-
this.otpRef[i].value = "";
|
|
24
|
-
}, onKeyUp: (e) => {
|
|
25
|
-
if (e.keyCode > 47) {
|
|
26
|
-
i < this.inputNum - 1 && this.otpRef[i + 1].focus();
|
|
27
|
-
}
|
|
28
|
-
}, onInput: (e) => {
|
|
29
|
-
this.otp[i] = e.target.value;
|
|
30
|
-
this.emitInputChange(this.otp.join(""));
|
|
31
|
-
}, type: "text", minlength: "1", maxlength: "1", autoComplete: "off", ref: input => (this.otpRef[i] = input) }));
|
|
32
|
-
})), h("z-input-message", { message: this.message, status: this.status })));
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
ZOtp.style = stylesCss;
|
|
36
|
-
|
|
37
|
-
export { ZOtp as z_otp };
|
|
@@ -1,225 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, a as getElement } from './index-b3a91e19.js';
|
|
2
|
-
|
|
3
|
-
const stylesCss = "z-pagination{--z-pagination--page-button-width:64px;--z-pagination--pages-container-max-width:100%;display:flex;flex-direction:column;gap:calc(var(--space-unit) * 2) calc(var(--space-unit) * 4);max-width:100%;flex-wrap:wrap;font-family:var(--font-family-sans);font-weight:var(--font-rg)}z-pagination,z-pagination *{box-sizing:border-box}z-pagination button{height:100%}z-pagination z-icon{fill:var(--color-icon01)}z-pagination *:disabled z-icon{fill:var(--color-disabled02)}z-pagination .page-label{margin-right:calc(var(--space-unit) * 3);color:var(--color-text02)}z-pagination .pagination-bar{display:flex;align-items:center;height:48px;max-width:100%}z-pagination .pagination-bar button{display:flex;align-items:center;justify-content:center;margin:0;background-color:var(--color-surface03);transition:background-color .150s ease-out,\n color .150s ease-out,\n border-bottom-color .150s ease-out,\n font-size .150s ease-in-out,\n font-weight .150s ease-in-out;color:var(--color-primary01);border:none;font-family:inherit;font-weight:inherit;cursor:pointer}z-pagination .pagination-bar button:focus-visible{outline:none;box-shadow:inset var(--shadow-focus-primary);background-color:var(--color-hover-surface)}z-pagination .pagination-bar .pagination-button{padding:calc(var(--space-unit) * 2);text-transform:uppercase;white-space:nowrap;font-weight:var(--font-sb)}z-pagination .pagination-bar .navigation-button{padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 1.5)}z-pagination .pagination-bar .pagination-button:disabled,z-pagination .pagination-bar .navigation-button:disabled{background-color:var(--color-disabled01);color:var(--color-disabled02);cursor:default;pointer-events:none}z-pagination .pagination-bar .page-button,z-pagination .pagination-bar .ellipsis-button{width:var(--z-pagination--page-button-width)}z-pagination .pages-container{position:relative;display:inline-flex;max-width:100%;height:100%;overflow-x:auto;scroll-behavior:smooth;scroll-snap-align:center;scrollbar-width:none}z-pagination .pages-container::-webkit-scrollbar{display:none}z-pagination .pages-chunk{display:flex;scroll-snap-align:center}z-pagination .pagination-bar .page-button{padding-top:var(--border-size-large) solid transparent;border-bottom:var(--border-size-large) solid transparent;font-size:var(--font-size-2);font-weight:var(--font-sb)}z-pagination .pagination-bar .page-button:focus-visible{border-bottom-color:var(--color-hover-light)}z-pagination .pagination-bar .page-button[data-current]{font-size:var(--font-size-7);border-bottom-color:var(--color-primary01)}z-pagination .go-to-page{display:flex;flex-direction:column;row-gap:var(--space-unit)}z-pagination .go-to-page .label{color:var(--color-text02);text-transform:uppercase}z-pagination .go-to-page .inputs{display:flex;column-gap:var(--space-unit)}z-pagination .go-to-page .inputs z-input{width:calc(var(--space-unit) * 11)}z-pagination .go-to-page .inputs z-input input,z-pagination .mobile-go-to-page z-input input{padding:0 calc(var(--space-unit) * 1.5) !important;-moz-appearance:none}z-pagination .mobile-go-to-page{display:flex;justify-content:center;align-items:center;flex:1 auto;height:100%;background-color:var(--color-surface03)}z-pagination .mobile-go-to-page z-input{width:var(--z-pagination--page-button-width);margin-right:var(--space-unit)}z-pagination .mobile-go-to-page z-input input{text-align:center}z-pagination .mobile-go-to-page z-input input::-webkit-outer-spin-button,z-pagination .mobile-go-to-page z-input input::-webkit-inner-spin-button{appearance:none;-webkit-appearance:none}z-pagination .mobile-go-to-page>span{font-size:var(--font-size-2)}@media (hover: hover){z-pagination .pagination-bar button:hover{background-color:var(--color-hover-surface)}z-pagination .pagination-bar .page-button:hover{border-bottom-color:var(--color-hover-light)}}@media (min-width: 768px){z-pagination{--z-pagination--page-button-width:88px;flex-direction:row;align-items:flex-end}z-pagination .pages-container{max-width:var(--z-pagination--pages-container-max-width)}}";
|
|
4
|
-
|
|
5
|
-
const ZPagination = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
this.pageChanged = createEvent(this, "pageChanged", 7);
|
|
9
|
-
/** Enable navigation arrows. */
|
|
10
|
-
this.navArrows = true;
|
|
11
|
-
/** Number of pages to skip. */
|
|
12
|
-
this.skip = 0;
|
|
13
|
-
/** Enable buttons to go to the first and last pages. */
|
|
14
|
-
this.edges = false;
|
|
15
|
-
/** Current page. */
|
|
16
|
-
this.currentPage = 1;
|
|
17
|
-
/**
|
|
18
|
-
* Internal visible pages variable.
|
|
19
|
-
* Needed to better handle conflicting props like `visiblePages` and `split`.
|
|
20
|
-
* This state will change based on props values and validation,
|
|
21
|
-
* keeping original `visiblePages` value intact.
|
|
22
|
-
*/
|
|
23
|
-
this._visiblePages = this.visiblePages;
|
|
24
|
-
/** Used to hides/change some functionalities on smaller screen sizes */
|
|
25
|
-
this.isMobile = false;
|
|
26
|
-
/** Value of the go to page input */
|
|
27
|
-
this.goToPageValue = null;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Set the max width of the pages container.
|
|
31
|
-
*/
|
|
32
|
-
setPagesContainerWidth() {
|
|
33
|
-
if (!this._visiblePages || this.split) {
|
|
34
|
-
this.host.style.setProperty("--z-pagination--pages-container-max-width", "100%");
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
|
-
const pagesContainerStyle = window.getComputedStyle(this.host);
|
|
38
|
-
const pageButtonWidth = pagesContainerStyle.getPropertyValue("--z-pagination--page-button-width");
|
|
39
|
-
this.host.style.setProperty("--z-pagination--pages-container-max-width", `calc(${pageButtonWidth} * ${this._visiblePages})`);
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Set visible pages.
|
|
43
|
-
* Ensure that the visible pages are always <= the total pages.
|
|
44
|
-
* If `visiblePages` isn't set, fallback to the total pages.
|
|
45
|
-
*/
|
|
46
|
-
setVisiblePages() {
|
|
47
|
-
this._visiblePages = Math.min(this.visiblePages || this.totalPages, this.totalPages);
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* On page changed.
|
|
51
|
-
* @emits pageChanged
|
|
52
|
-
*/
|
|
53
|
-
onPageChanged() {
|
|
54
|
-
this.pageChanged.emit(this.currentPage);
|
|
55
|
-
this.scrollToPage();
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* On split changed.
|
|
59
|
-
* Empty `edges` value. The split feature wins over the pages chunks and edges.
|
|
60
|
-
*/
|
|
61
|
-
onSplitChanged() {
|
|
62
|
-
if (this.split) {
|
|
63
|
-
this.edges = false;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Hide stuff on mobile.
|
|
68
|
-
*/
|
|
69
|
-
onResize() {
|
|
70
|
-
this.setMobile();
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Set functionalities according to screen size.
|
|
74
|
-
*/
|
|
75
|
-
setMobile() {
|
|
76
|
-
const mobileMediaQuery = "screen and (max-width: 767px)";
|
|
77
|
-
this.isMobile = window.matchMedia(mobileMediaQuery).matches;
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Get a list of pages chunks, each of `visiblePages` length.
|
|
81
|
-
* @returns {number[][]}
|
|
82
|
-
*/
|
|
83
|
-
getPagesChunks() {
|
|
84
|
-
// array of numbers from 1 to `totalPages`
|
|
85
|
-
const pages = Array.from({ length: this.totalPages }, (_, i) => i + 1);
|
|
86
|
-
let chunks = [];
|
|
87
|
-
const chunksCount = Math.ceil(pages.length / this._visiblePages);
|
|
88
|
-
for (let index = 0; index < chunksCount; index++) {
|
|
89
|
-
chunks.push(pages.slice(index * this._visiblePages, (index + 1) * this._visiblePages));
|
|
90
|
-
}
|
|
91
|
-
return chunks;
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* Scroll to the left the chunk of pages containing the current page.
|
|
95
|
-
*/
|
|
96
|
-
scrollToPage() {
|
|
97
|
-
const pageBtn = this.host.querySelector(`[data-page="${this.currentPage}"]`);
|
|
98
|
-
if (!pageBtn) {
|
|
99
|
-
return;
|
|
100
|
-
}
|
|
101
|
-
pageBtn.scrollIntoView({
|
|
102
|
-
behavior: "smooth",
|
|
103
|
-
block: "nearest",
|
|
104
|
-
inline: "center",
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* Select a page.
|
|
109
|
-
* Do validations on the passed value before assigning it to `currentPage`.
|
|
110
|
-
* @param {number} page Page number to set
|
|
111
|
-
*/
|
|
112
|
-
selectPage(page) {
|
|
113
|
-
this.currentPage = Math.min(Math.max(page, 1), this.totalPages);
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
* Render page number button.
|
|
117
|
-
* @param {number} page Page number to render
|
|
118
|
-
* @returns {HTMLButtonElement}
|
|
119
|
-
*/
|
|
120
|
-
renderPage(page) {
|
|
121
|
-
return (h("button", { class: "page-button", type: "button", "aria-current": this.currentPage === page ? "page" : "false", title: `Vai alla pagina ${page}`, "data-page": page, "data-current": this.currentPage === page, onClick: () => this.selectPage(page) }, page));
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* Render split button.
|
|
125
|
-
* @param {number} page Page to select on click.
|
|
126
|
-
* @returns {HTMLButtonElement}
|
|
127
|
-
*/
|
|
128
|
-
renderEllipsisButton(page) {
|
|
129
|
-
return (h("button", { class: "ellipsis-button", type: "button", title: `Vai alla pagina ${page}`, onClick: () => this.selectPage(page) }, "\u2026"));
|
|
130
|
-
}
|
|
131
|
-
/**
|
|
132
|
-
* Render chunked page buttons.
|
|
133
|
-
* @returns {HTMLDivElement}
|
|
134
|
-
*/
|
|
135
|
-
renderPages() {
|
|
136
|
-
const pagesChunks = this.getPagesChunks();
|
|
137
|
-
if (pagesChunks.length <= 0) {
|
|
138
|
-
return;
|
|
139
|
-
}
|
|
140
|
-
return pagesChunks.map((chunk) => (h("div", { class: "pages-chunk" }, chunk.map((page) => this.renderPage(page)))));
|
|
141
|
-
}
|
|
142
|
-
/**
|
|
143
|
-
* Render page buttons when split feature is enabled.
|
|
144
|
-
* @returns {HTMLButtonElement[]}
|
|
145
|
-
*/
|
|
146
|
-
renderSplitPages() {
|
|
147
|
-
// left and right split pages, current page, first and last page, left and right ellipsis button
|
|
148
|
-
if (this.totalPages <= this.split * 2 + 5) {
|
|
149
|
-
// Too few pages: ellipsis will never be rendered, so let's just render all pages and that's it.
|
|
150
|
-
return Array.from({ length: this.totalPages }, (_, i) => this.renderPage(i + 1));
|
|
151
|
-
}
|
|
152
|
-
if (this.currentPage <= this.split * 2 + 2) {
|
|
153
|
-
// Render first (2 * split + 3) pages, ellipsis, then last page.
|
|
154
|
-
return [
|
|
155
|
-
...Array.from({ length: this.split * 2 + 3 }, (_, i) => this.renderPage(i + 1)),
|
|
156
|
-
this.renderEllipsisButton(this.split * 2 + 4),
|
|
157
|
-
this.renderPage(this.totalPages),
|
|
158
|
-
];
|
|
159
|
-
}
|
|
160
|
-
if (this.currentPage > this.split * 2 + 2 && this.currentPage < this.totalPages - this.split * 2 - 1) {
|
|
161
|
-
// Render first page, ellipsis, current page surrounded by (split) pages both before and after, another ellipsis, then last page.
|
|
162
|
-
return [
|
|
163
|
-
this.renderPage(1),
|
|
164
|
-
this.renderEllipsisButton(this.currentPage - this.split - 1),
|
|
165
|
-
...Array.from({ length: this.split * 2 + 1 }, (_, i) => this.renderPage(this.currentPage - this.split + i)),
|
|
166
|
-
this.renderEllipsisButton(this.currentPage + this.split + 1),
|
|
167
|
-
this.renderPage(this.totalPages),
|
|
168
|
-
];
|
|
169
|
-
}
|
|
170
|
-
// Render first page, ellipsis, then last (2 * split + 3) pages.
|
|
171
|
-
return [
|
|
172
|
-
this.renderPage(1),
|
|
173
|
-
this.renderEllipsisButton(this.totalPages - this.split * 2 - 3),
|
|
174
|
-
...Array.from({ length: this.split * 2 + 3 }, (_, i) => this.renderPage(this.totalPages - this.split * 2 - 2 + i)),
|
|
175
|
-
];
|
|
176
|
-
}
|
|
177
|
-
renderBackButton() {
|
|
178
|
-
return (h("button", { class: "navigation-button", type: "button", title: "Vai alla pagina precedente", disabled: this.currentPage === 1, onClick: () => this.selectPage(this.currentPage - 1) }, h("z-icon", { name: "chevron-left" })));
|
|
179
|
-
}
|
|
180
|
-
renderForwardButton() {
|
|
181
|
-
return (h("button", { class: "navigation-button", type: "button", title: "Vai alla prossima pagina", disabled: this.currentPage === this.totalPages, onClick: () => this.selectPage(this.currentPage + 1) }, h("z-icon", { name: "chevron-right" })));
|
|
182
|
-
}
|
|
183
|
-
renderMobile() {
|
|
184
|
-
const pagesChunks = this.getPagesChunks();
|
|
185
|
-
return [
|
|
186
|
-
this.label && h("span", { class: "page-label body-1-sb" }, this.label),
|
|
187
|
-
h("div", { class: "pagination-bar" }, this.renderBackButton(), !this.goToPage && (h("div", { class: "pages-container", role: "navigation", tabIndex: -1 }, pagesChunks.length > 0 &&
|
|
188
|
-
pagesChunks.map((chunk) => (h("div", { class: "pages-chunk" }, chunk.map((page) => this.renderPage(page))))))), this.goToPage && (h("form", { class: "mobile-go-to-page", onSubmit: (ev) => {
|
|
189
|
-
ev.preventDefault();
|
|
190
|
-
this.selectPage(this.goToPageValue);
|
|
191
|
-
} }, h("z-input", { class: "go-to-page-input", type: "number", message: false, onInput: (ev) => { this.goToPageValue = ev.target.value; }, placeholder: this.currentPage.toString(), hasclearicon: false }), h("span", null, `/${this.totalPages}`))), this.renderForwardButton()),
|
|
192
|
-
];
|
|
193
|
-
}
|
|
194
|
-
componentDidLoad() {
|
|
195
|
-
this.setVisiblePages();
|
|
196
|
-
}
|
|
197
|
-
componentDidRender() {
|
|
198
|
-
if (this.split) {
|
|
199
|
-
this.edges = false;
|
|
200
|
-
}
|
|
201
|
-
this.setPagesContainerWidth();
|
|
202
|
-
this.setMobile();
|
|
203
|
-
}
|
|
204
|
-
render() {
|
|
205
|
-
if (this.isMobile) {
|
|
206
|
-
return this.renderMobile();
|
|
207
|
-
}
|
|
208
|
-
return [
|
|
209
|
-
h("div", { class: "pagination-bar" }, this.label && h("span", { class: "page-label body-1-sb" }, this.label), this.edges && (h("button", { class: "pagination-button", type: "button", title: "Vai alla pagina 1", disabled: this.currentPage === 1, onClick: () => this.selectPage(1) }, "Pagina 1")), this.skip < this.totalPages && this.skip > 1 && (h("button", { class: "pagination-button", type: "button", title: `Vai alla pagina ${this.currentPage - this.skip}`, disabled: this.currentPage <= this.skip, onClick: () => this.selectPage(this.currentPage - this.skip) }, "-", this.skip)), this.navArrows && this.renderBackButton(), h("div", { class: "pages-container", role: "navigation", tabIndex: -1 }, this.split ?
|
|
210
|
-
this.renderSplitPages() :
|
|
211
|
-
this.renderPages()), this.navArrows && this.renderForwardButton(), this.skip < this.totalPages && this.skip > 1 && (h("button", { class: "pagination-button", type: "button", title: `Vai alla pagina ${this.currentPage + this.skip}`, disabled: this.currentPage > this.totalPages - this.skip, onClick: () => this.selectPage(this.currentPage + this.skip) }, "+", this.skip)), this.edges && (h("button", { class: "pagination-button", type: "button", title: `Vai alla pagina ${this.totalPages}`, disabled: this.currentPage === this.totalPages, onClick: () => this.selectPage(this.totalPages) }, "Pagina ", this.totalPages))),
|
|
212
|
-
this.goToPage && (h("div", { class: "go-to-page" }, h("span", { class: "label body-5-sb" }, "Vai a pagina:"), h("div", { class: "inputs" }, h("z-input", { class: "go-to-page-input", type: "number", message: false, placeholder: "2", hasclearicon: false, onInput: (ev) => { this.goToPageValue = ev.target.value; }, onKeyDown: (ev) => ev.key === "Enter" && this.selectPage(this.goToPageValue) }), h("z-button", { disabled: !this.goToPageValue, title: "Vai alla pagina inserita", onClick: () => this.selectPage(this.goToPageValue) }, "vai")))),
|
|
213
|
-
];
|
|
214
|
-
}
|
|
215
|
-
get host() { return getElement(this); }
|
|
216
|
-
static get watchers() { return {
|
|
217
|
-
"_visiblePages": ["setPagesContainerWidth"],
|
|
218
|
-
"visiblePages": ["setVisiblePages"],
|
|
219
|
-
"currentPage": ["onPageChanged"],
|
|
220
|
-
"split": ["onSplitChanged"]
|
|
221
|
-
}; }
|
|
222
|
-
};
|
|
223
|
-
ZPagination.style = stylesCss;
|
|
224
|
-
|
|
225
|
-
export { ZPagination as z_pagination };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-b3a91e19.js';
|
|
2
|
-
|
|
3
|
-
const stylesCss = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>div{color:var(--color-surface05);fill:var(--color-surface05);font-size:14px;border-bottom:var(--border-size-small) solid var(--color-surface03);padding-top:calc(var(--space-unit) * 1.5);display:grid;grid-template-rows:auto auto;grid-template-columns:36px auto}:host>div>z-icon{grid-row:1 / 2;grid-column:1 / 2}:host>div>div.content{grid-row:1 / 2;grid-column:2 / 3;margin-bottom:var(--space-unit)}:host>div>div.ctaWrapper{grid-row:2 / 3;grid-column:1 / 3;display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:flex-start;align-items:center;margin-bottom:var(--space-unit)}@media only screen and (min-width: 768px){:host>div>div.ctaWrapper{flex-direction:row;grid-column:2 / 3}}";
|
|
4
|
-
|
|
5
|
-
const ZPocketMessage = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
}
|
|
9
|
-
render() {
|
|
10
|
-
return (h("div", null, h("z-icon", { name: "exclamation-circle" }), h("div", { class: "content" }, h("slot", null)), h("div", { class: "ctaWrapper" }, h("slot", { name: "cta" }))));
|
|
11
|
-
}
|
|
12
|
-
};
|
|
13
|
-
ZPocketMessage.style = stylesCss;
|
|
14
|
-
|
|
15
|
-
export { ZPocketMessage as z_pocket_message };
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, a as getElement } from './index-b3a91e19.js';
|
|
2
|
-
import { l as PocketStatusEnum } from './index-654849a7.js';
|
|
3
|
-
import { h as handleKeyboardSubmit } from './utils-417652d9.js';
|
|
4
|
-
import { h as hammer } from './hammer-c3266b17.js';
|
|
5
|
-
import './breakpoints-e07f80e7.js';
|
|
6
|
-
import './_commonjsHelpers-9943807e.js';
|
|
7
|
-
|
|
8
|
-
const stylesCss$2 = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg);width:inherit;height:100%;margin:inherit}:host>div{width:inherit;height:100%;margin:inherit}:host>div>div.background{position:fixed;left:0;right:0;top:0;bottom:0;z-index:998;width:0;height:0}:host>div>div.background.open{height:100%;width:100%}:host>div>div.contentWrapper{position:fixed;z-index:999;bottom:0;left:0;width:inherit;margin:inherit}:host>div>div.contentWrapper>div{border-radius:var(--space-unit) var(--space-unit) 0px 0px;box-shadow:0px -2px calc(var(--space-unit) * 0.5) 0px rgba(66, 69, 72, 0.4);margin:calc(var(--space-unit) * 0.5) calc(var(--space-unit) * 0.5) 0 calc(var(--space-unit) * 0.5)}";
|
|
9
|
-
|
|
10
|
-
const ZPocket = class {
|
|
11
|
-
constructor(hostRef) {
|
|
12
|
-
registerInstance(this, hostRef);
|
|
13
|
-
this.pocketToggle = createEvent(this, "pocketToggle", 7);
|
|
14
|
-
/** pocket status */
|
|
15
|
-
this.status = PocketStatusEnum.preview;
|
|
16
|
-
}
|
|
17
|
-
/** open z-pocket */
|
|
18
|
-
async open() {
|
|
19
|
-
this.status = PocketStatusEnum.open;
|
|
20
|
-
}
|
|
21
|
-
/** close z-pocket */
|
|
22
|
-
async close() {
|
|
23
|
-
this.status = PocketStatusEnum.closed;
|
|
24
|
-
}
|
|
25
|
-
emitPocketToggle(id, status) {
|
|
26
|
-
this.pocketToggle.emit({ id, status });
|
|
27
|
-
}
|
|
28
|
-
handlePocketHeaderClick(e) {
|
|
29
|
-
if (e.detail.id && e.detail.id === this.pocketid) {
|
|
30
|
-
switch (this.status) {
|
|
31
|
-
case PocketStatusEnum.preview:
|
|
32
|
-
case PocketStatusEnum.closed:
|
|
33
|
-
this.status = PocketStatusEnum.open;
|
|
34
|
-
break;
|
|
35
|
-
case PocketStatusEnum.open:
|
|
36
|
-
this.status = PocketStatusEnum.closed;
|
|
37
|
-
break;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
handlePocketHeaderPan(e) {
|
|
42
|
-
if (e.detail.id && e.detail.id === this.pocketid) {
|
|
43
|
-
if (e.detail.direction === "up") {
|
|
44
|
-
this.status = PocketStatusEnum.open;
|
|
45
|
-
}
|
|
46
|
-
else if (e.detail.direction === "down") {
|
|
47
|
-
this.status = PocketStatusEnum.closed;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
watchStatusHandler(newVal) {
|
|
52
|
-
this.emitPocketToggle(this.pocketid, newVal);
|
|
53
|
-
}
|
|
54
|
-
componentWillLoad() {
|
|
55
|
-
this.emitPocketToggle(this.pocketid, this.status);
|
|
56
|
-
}
|
|
57
|
-
handleBackgroundClick(e) {
|
|
58
|
-
if (e.target.dataset.action == "pocketBackground") {
|
|
59
|
-
this.close();
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
render() {
|
|
63
|
-
return (h("div", null, h("div", { "data-action": "pocketBackground", "data-pocket": this.pocketid, class: `background ${this.status}`, onClick: (e) => this.handleBackgroundClick(e) }), h("div", { id: this.pocketid, class: "contentWrapper" }, h("div", null, h("slot", null)))));
|
|
64
|
-
}
|
|
65
|
-
get hostElement() { return getElement(this); }
|
|
66
|
-
static get watchers() { return {
|
|
67
|
-
"status": ["watchStatusHandler"]
|
|
68
|
-
}; }
|
|
69
|
-
};
|
|
70
|
-
ZPocket.style = stylesCss$2;
|
|
71
|
-
|
|
72
|
-
const stylesCss$1 = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg);display:block;width:100%;box-sizing:border-box}:host>main{background:var(--color-surface01);border-left:var(--border-size-small) solid var(--color-surface03);border-right:var(--border-size-small) solid var(--color-surface03);overflow:auto;scrollbar-width:none}:host>main.preview{max-height:225px;transition:all 200ms ease-in-out, top 200ms ease-in-out}:host>main.open{max-height:calc(100vh - 48px);transition:all 200ms ease-in-out, top 200ms ease-in-out}:host>main.closed{height:0px;transition:all 200ms ease-in-out, top 200ms ease-in-out}:host ::-webkit-scrollbar{width:0}@media only screen and (min-width: 768px){:host>main.preview{max-height:157px}}";
|
|
73
|
-
|
|
74
|
-
const ZPocketBody = class {
|
|
75
|
-
constructor(hostRef) {
|
|
76
|
-
registerInstance(this, hostRef);
|
|
77
|
-
/** pocket status */
|
|
78
|
-
this.status = PocketStatusEnum.preview;
|
|
79
|
-
}
|
|
80
|
-
handlePocketToggle(e) {
|
|
81
|
-
if (e.detail.id && e.detail.id === this.pocketid) {
|
|
82
|
-
this.status = e.detail.status;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
render() {
|
|
86
|
-
return (h("main", { class: this.status }, h("slot", null)));
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
ZPocketBody.style = stylesCss$1;
|
|
90
|
-
|
|
91
|
-
const stylesCss = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg);display:block;width:100%;box-sizing:border-box}:host>header{background:var(--color-surface01);border:var(--border-size-small) solid var(--color-surface03);border-radius:var(--space-unit) var(--space-unit) 0px 0px;height:36px;cursor:pointer;display:flex;flex-wrap:nowrap;flex-direction:row;justify-content:center;align-items:center}:host>header:focus{outline:none}:host>header::-moz-focus-inner{border:0}";
|
|
92
|
-
|
|
93
|
-
const ZPocketHeader = class {
|
|
94
|
-
constructor(hostRef) {
|
|
95
|
-
registerInstance(this, hostRef);
|
|
96
|
-
this.pocketHeaderClick = createEvent(this, "pocketHeaderClick", 7);
|
|
97
|
-
this.pocketHeaderPan = createEvent(this, "pocketHeaderPan", 7);
|
|
98
|
-
this.emitPocketHeaderClick = this.emitPocketHeaderClick.bind(this);
|
|
99
|
-
}
|
|
100
|
-
emitPocketHeaderClick() {
|
|
101
|
-
this.pocketHeaderClick.emit({ id: this.pocketid });
|
|
102
|
-
}
|
|
103
|
-
emitPocketHeaderPan(direction) {
|
|
104
|
-
this.pocketHeaderPan.emit({ id: this.pocketid, direction });
|
|
105
|
-
}
|
|
106
|
-
componentDidLoad() {
|
|
107
|
-
// INFO: swipe handling
|
|
108
|
-
const mc = new hammer(this.swipeWrap);
|
|
109
|
-
mc.get("pan").set({ direction: hammer.DIRECTION_VERTICAL });
|
|
110
|
-
mc.on("panup", () => this.emitPocketHeaderPan("up"));
|
|
111
|
-
mc.on("pandown", () => this.emitPocketHeaderPan("down"));
|
|
112
|
-
}
|
|
113
|
-
render() {
|
|
114
|
-
return (h("header", { role: "button", tabindex: 0, onClick: () => this.emitPocketHeaderClick(), onKeyPress: (ev) => handleKeyboardSubmit(ev, this.emitPocketHeaderClick), ref: el => (this.swipeWrap = el) }, h("slot", null)));
|
|
115
|
-
}
|
|
116
|
-
};
|
|
117
|
-
ZPocketHeader.style = stylesCss;
|
|
118
|
-
|
|
119
|
-
export { ZPocket as z_pocket, ZPocketBody as z_pocket_body, ZPocketHeader as z_pocket_header };
|