@zanichelli/delta_share 2.0.3 → 2.0.6
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-da666109.js → breakpoints-a55736d0.js} +2 -0
- package/dist/wc/cjs/delta_share.cjs.js +2 -2
- package/dist/wc/cjs/hammer-4f20813e.js +2650 -0
- package/dist/wc/cjs/{icons-f65fa82e.js → icons-2aca6c75.js} +132 -58
- package/dist/wc/cjs/index-9c6fd1db.js +315 -0
- package/dist/wc/cjs/{index-458dc8f4.js → index-9ca7d5e5.js} +12 -0
- package/dist/wc/cjs/{license-activation_16.cjs.entry.js → license-activation_13.cjs.entry.js} +145 -489
- package/dist/wc/cjs/loader.cjs.js +2 -2
- package/dist/wc/cjs/utils-8a10bba9.js +88 -0
- package/dist/wc/cjs/z-alert.cjs.entry.js +19 -0
- package/dist/wc/cjs/z-app-header.cjs.entry.js +132 -6
- package/dist/wc/cjs/z-app-switcher.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-app-topbar.cjs.entry.js +15 -28
- package/dist/wc/cjs/z-aria-alert.cjs.entry.js +18 -0
- package/dist/wc/cjs/z-avatar.cjs.entry.js +43 -0
- package/dist/wc/cjs/z-button-deprecated.cjs.entry.js +38 -0
- package/dist/wc/cjs/z-button-filter.cjs.entry.js +49 -0
- package/dist/wc/cjs/z-button-sort.cjs.entry.js +17 -3
- package/dist/wc/cjs/z-candybar.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-card.cjs.entry.js +53 -25
- package/dist/wc/cjs/z-carousel.cjs.entry.js +24 -0
- package/dist/wc/cjs/z-chip-deprecated.cjs.entry.js +24 -0
- package/dist/wc/cjs/z-chip.cjs.entry.js +20 -7
- package/dist/wc/cjs/z-combobox.cjs.entry.js +18 -17
- package/dist/wc/cjs/z-contextual-menu.cjs.entry.js +40 -0
- package/dist/wc/cjs/z-cookiebar.cjs.entry.js +5 -5
- package/dist/wc/cjs/z-date-picker.cjs.entry.js +3104 -0
- package/dist/wc/cjs/z-divider.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-dragdrop-area_2.cjs.entry.js +48 -0
- package/dist/wc/cjs/z-file-upload.cjs.entry.js +172 -0
- package/dist/wc/cjs/z-file.cjs.entry.js +47 -0
- package/dist/wc/cjs/z-footer-link_3.cjs.entry.js +4 -4
- package/dist/wc/cjs/z-footer.cjs.entry.js +35 -8
- package/dist/wc/cjs/z-ghost-loading.cjs.entry.js +19 -0
- package/dist/wc/cjs/z-icon-package.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-input-deprecated.cjs.entry.js +271 -0
- package/dist/wc/cjs/z-input-label_2.cjs.entry.js +272 -0
- package/dist/wc/cjs/z-list-group.cjs.entry.js +54 -0
- package/dist/wc/cjs/z-list_2.cjs.entry.js +144 -53
- package/dist/wc/cjs/z-logo.cjs.entry.js +12 -10
- package/dist/wc/cjs/z-menu-dropdown_2.cjs.entry.js +89 -0
- package/dist/wc/cjs/z-menu-section.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-menu.cjs.entry.js +58 -4
- package/dist/wc/cjs/z-messages-pocket.cjs.entry.js +46 -0
- package/dist/wc/cjs/z-modal-login.cjs.entry.js +15 -6
- package/dist/wc/cjs/z-myz-card-alert.cjs.entry.js +63 -0
- package/dist/wc/cjs/z-myz-card-dictionary.cjs.entry.js +36 -0
- package/dist/wc/cjs/z-myz-card-footer-sections.cjs.entry.js +19 -0
- package/dist/wc/cjs/z-myz-card-footer.cjs.entry.js +56 -0
- package/dist/wc/cjs/z-myz-card-icon.cjs.entry.js +21 -0
- package/dist/wc/cjs/z-myz-card-info.cjs.entry.js +119 -0
- package/dist/wc/cjs/{z-card-list.cjs.entry.js → z-myz-card-list.cjs.entry.js} +5 -5
- package/dist/wc/cjs/z-myz-card_4.cjs.entry.js +104 -0
- package/dist/wc/cjs/{z-list-item.cjs.entry.js → z-myz-list-item.cjs.entry.js} +7 -6
- package/dist/wc/cjs/z-myz-topbar.cjs.entry.js +194 -0
- package/dist/wc/cjs/z-navigation-tab-link.cjs.entry.js +71 -0
- package/dist/wc/cjs/z-navigation-tab.cjs.entry.js +73 -0
- package/dist/wc/cjs/z-navigation-tabs.cjs.entry.js +126 -0
- package/dist/wc/cjs/z-notification.cjs.entry.js +46 -0
- package/dist/wc/cjs/z-offcanvas.cjs.entry.js +63 -0
- package/dist/wc/cjs/z-otp.cjs.entry.js +41 -0
- package/dist/wc/cjs/z-pagination-bar.cjs.entry.js +8 -2651
- package/dist/wc/cjs/z-pagination-page.cjs.entry.js +3 -4
- package/dist/wc/cjs/z-pagination.cjs.entry.js +229 -0
- package/dist/wc/cjs/z-panel-elem.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-pocket-message.cjs.entry.js +19 -0
- package/dist/wc/cjs/z-pocket_3.cjs.entry.js +125 -0
- package/dist/wc/cjs/z-popover.cjs.entry.js +132 -0
- package/dist/wc/cjs/z-section-title.cjs.entry.js +42 -0
- package/dist/wc/cjs/z-skip-to-content.cjs.entry.js +68 -0
- package/dist/wc/cjs/z-slideshow.cjs.entry.js +112 -0
- package/dist/wc/cjs/z-status-tag.cjs.entry.js +29 -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-registro-table-body.cjs.entry.js → z-table-body.cjs.entry.js} +5 -5
- package/dist/wc/cjs/z-table-cell.cjs.entry.js +36 -0
- package/dist/wc/cjs/z-table-empty-box.cjs.entry.js +32 -0
- package/dist/wc/cjs/z-table-expanded-row.cjs.entry.js +19 -0
- package/dist/wc/cjs/{z-registro-table-head.cjs.entry.js → z-table-footer.cjs.entry.js} +5 -5
- package/dist/wc/cjs/{z-registro-table-footer.cjs.entry.js → z-table-head.cjs.entry.js} +5 -5
- package/dist/wc/cjs/z-table-header-row.cjs.entry.js +22 -0
- package/dist/wc/cjs/z-table-header.cjs.entry.js +88 -0
- package/dist/wc/cjs/z-table-row.cjs.entry.js +43 -0
- package/dist/wc/cjs/z-table-sticky-footer.cjs.entry.js +19 -0
- package/dist/wc/cjs/z-table.cjs.entry.js +82 -0
- package/dist/wc/cjs/z-tag.cjs.entry.js +22 -0
- package/dist/wc/cjs/z-toast-notification-list.cjs.entry.js +56 -0
- package/dist/wc/cjs/z-toast-notification.cjs.entry.js +203 -0
- package/dist/wc/cjs/z-toggle-button.cjs.entry.js +7 -6
- package/dist/wc/cjs/z-toggle-switch.cjs.entry.js +49 -0
- package/dist/wc/cjs/z-tooltip.cjs.entry.js +254 -24
- package/dist/wc/cjs/z-user-dropdown.cjs.entry.js +46 -51
- package/dist/wc/cjs/z-visually-hidden.cjs.entry.js +19 -0
- package/dist/wc/collection/collection-manifest.json +63 -18
- package/dist/wc/collection/components/license-activation-form/license-activation-form.css +6 -1
- package/dist/wc/collection/components/license-activation-form/license-activation-form.js +25 -16
- package/dist/wc/custom-elements/index.js +8655 -1943
- package/dist/wc/delta_share/delta_share.esm.js +1 -1
- package/dist/wc/delta_share/p-041ff3e2.entry.js +1 -0
- package/dist/wc/delta_share/p-06543221.entry.js +1 -0
- package/dist/wc/delta_share/{p-ef4da7dc.entry.js → p-06b89fb4.entry.js} +1 -1
- package/dist/wc/delta_share/p-0b0179c7.js +1 -0
- package/dist/wc/delta_share/p-0f55558e.js +1 -0
- package/dist/wc/delta_share/p-103f926c.entry.js +1 -0
- package/dist/wc/delta_share/p-12aa58e4.entry.js +1 -0
- package/dist/wc/delta_share/p-20c14e4e.entry.js +1 -0
- package/dist/wc/delta_share/p-243df9e5.entry.js +1 -0
- package/dist/wc/delta_share/p-244accd2.entry.js +1 -0
- package/dist/wc/delta_share/p-261611b1.js +1 -0
- package/dist/wc/delta_share/p-29cb5018.entry.js +1 -0
- package/dist/wc/delta_share/{p-6215ddbd.entry.js → p-29d111de.entry.js} +1 -1
- package/dist/wc/delta_share/p-2b05751b.entry.js +1 -0
- package/dist/wc/delta_share/p-3094900a.entry.js +1 -0
- package/dist/wc/delta_share/p-32975e01.entry.js +1 -0
- package/dist/wc/delta_share/p-32d34db1.entry.js +1 -0
- package/dist/wc/delta_share/{p-10d9e4f5.entry.js → p-3341f25e.entry.js} +1 -1
- package/dist/wc/delta_share/p-33fb12fc.entry.js +1 -0
- package/dist/wc/delta_share/p-35bccab3.entry.js +1 -0
- package/dist/wc/delta_share/p-36955fc5.entry.js +1 -0
- package/dist/wc/delta_share/p-39440988.entry.js +1 -0
- package/dist/wc/delta_share/p-3f61bc0d.entry.js +1 -0
- package/dist/wc/delta_share/p-422f29e8.entry.js +1 -0
- package/dist/wc/delta_share/p-43ae8e0a.entry.js +1 -0
- package/dist/wc/delta_share/p-44eba966.entry.js +1 -0
- package/dist/wc/delta_share/p-51431ace.js +1 -0
- package/dist/wc/delta_share/p-5374191c.entry.js +16 -0
- package/dist/wc/delta_share/p-5559856c.entry.js +1 -0
- package/dist/wc/delta_share/p-5af0e3cd.entry.js +1 -0
- package/dist/wc/delta_share/{p-ca57e6ec.entry.js → p-5b320481.entry.js} +1 -1
- package/dist/wc/delta_share/p-5d085d01.entry.js +1 -0
- package/dist/wc/delta_share/p-5d88112c.entry.js +1 -0
- package/dist/wc/delta_share/p-5e9898dd.entry.js +1 -0
- package/dist/wc/delta_share/p-6422731e.entry.js +1 -0
- package/dist/wc/delta_share/p-64ffaf7b.entry.js +1 -0
- package/dist/wc/delta_share/p-6613eeee.entry.js +1 -0
- package/dist/wc/delta_share/p-6a39042b.entry.js +1 -0
- package/dist/wc/delta_share/{p-a03963a8.entry.js → p-6a9fb59c.entry.js} +1 -1
- package/dist/wc/delta_share/p-6f7064dc.entry.js +1 -0
- package/dist/wc/delta_share/p-767a8d6e.entry.js +1 -0
- package/dist/wc/delta_share/p-76cfb0be.entry.js +1 -0
- package/dist/wc/delta_share/p-775af9dc.entry.js +1 -0
- package/dist/wc/delta_share/p-7f71c41e.entry.js +1 -0
- package/dist/wc/delta_share/p-8b6617d8.entry.js +1 -0
- package/dist/wc/delta_share/p-8fb4a4ea.entry.js +1 -0
- package/dist/wc/delta_share/p-91a4ef35.js +1 -0
- package/dist/wc/delta_share/p-91af6142.entry.js +1 -0
- package/dist/wc/delta_share/p-94b8f342.entry.js +1 -0
- package/dist/wc/delta_share/{p-65c48026.entry.js → p-94df01a9.entry.js} +1 -1
- package/dist/wc/delta_share/p-9656b290.entry.js +1 -0
- package/dist/wc/delta_share/p-97e4d621.entry.js +1 -0
- package/dist/wc/delta_share/p-9a1d266e.entry.js +1 -0
- package/dist/wc/delta_share/p-9c147330.entry.js +1 -0
- package/dist/wc/delta_share/p-9d35fb61.entry.js +1 -0
- package/dist/wc/delta_share/{p-6684b880.entry.js → p-a0663266.entry.js} +1 -1
- package/dist/wc/delta_share/p-a150a778.entry.js +1 -0
- package/dist/wc/delta_share/p-a823768b.entry.js +1 -0
- package/dist/wc/delta_share/p-a880ae33.entry.js +3 -0
- package/dist/wc/delta_share/p-a949636a.entry.js +1 -0
- package/dist/wc/delta_share/p-b1c1f030.entry.js +1 -0
- package/dist/wc/delta_share/p-b5f0d2dc.entry.js +1 -0
- package/dist/wc/delta_share/p-badf3f24.entry.js +1 -0
- package/dist/wc/delta_share/p-bb38e604.entry.js +1 -0
- package/dist/wc/delta_share/p-bc225deb.entry.js +1 -0
- package/dist/wc/delta_share/p-bf58b24b.entry.js +1 -0
- package/dist/wc/delta_share/p-c2dde3b3.entry.js +1 -0
- package/dist/wc/delta_share/p-cccef23b.entry.js +1 -0
- package/dist/wc/delta_share/p-cd42e0b5.entry.js +1 -0
- package/dist/wc/delta_share/{p-800cd436.entry.js → p-cfc122de.entry.js} +1 -1
- package/dist/wc/delta_share/p-d282ce22.entry.js +1 -0
- package/dist/wc/delta_share/p-d610565d.entry.js +1 -0
- package/dist/wc/delta_share/p-da8144e5.entry.js +1 -0
- package/dist/wc/delta_share/p-dafefe1f.entry.js +1 -0
- package/dist/wc/delta_share/p-dc148f92.entry.js +1 -0
- package/dist/wc/delta_share/p-dd50dd54.entry.js +1 -0
- package/dist/wc/delta_share/p-de117646.entry.js +1 -0
- package/dist/wc/delta_share/p-dec6ab35.entry.js +1 -0
- package/dist/wc/delta_share/p-e37c7b62.entry.js +1 -0
- package/dist/wc/delta_share/p-e43e61ac.js +7 -0
- package/dist/wc/delta_share/p-e7932e20.entry.js +1 -0
- package/dist/wc/delta_share/p-e9412ef0.entry.js +1 -0
- package/dist/wc/delta_share/p-ea6c7be0.entry.js +1 -0
- package/dist/wc/delta_share/p-ebb9a3f9.entry.js +1 -0
- package/dist/wc/delta_share/p-ee76ecea.entry.js +1 -0
- package/dist/wc/delta_share/p-f0723bcc.entry.js +1 -0
- package/dist/wc/delta_share/p-f2323f2a.entry.js +1 -0
- package/dist/wc/delta_share/p-f441efc3.entry.js +1 -0
- package/dist/wc/delta_share/{p-873e098b.entry.js → p-f531a563.entry.js} +1 -1
- package/dist/wc/delta_share/p-fd83d815.entry.js +1 -0
- package/dist/wc/delta_share/p-ff2508eb.entry.js +1 -0
- package/dist/wc/esm/breakpoints-e07f80e7.js +4 -0
- package/dist/wc/esm/delta_share.js +2 -2
- package/dist/wc/esm/hammer-c3266b17.js +2648 -0
- package/dist/wc/esm/{icons-973d360b.js → icons-74713b55.js} +132 -58
- package/dist/wc/esm/index-654849a7.js +315 -0
- package/dist/wc/esm/{index-5ecd661f.js → index-b3a91e19.js} +12 -0
- package/dist/wc/esm/{license-activation_16.entry.js → license-activation_13.entry.js} +146 -487
- package/dist/wc/esm/loader.js +2 -2
- package/dist/wc/esm/utils-417652d9.js +80 -0
- package/dist/wc/esm/z-alert.entry.js +15 -0
- package/dist/wc/esm/z-app-header.entry.js +132 -6
- package/dist/wc/esm/z-app-switcher.entry.js +2 -2
- package/dist/wc/esm/z-app-topbar.entry.js +15 -28
- package/dist/wc/esm/z-aria-alert.entry.js +14 -0
- package/dist/wc/esm/z-avatar.entry.js +39 -0
- package/dist/wc/esm/z-button-deprecated.entry.js +34 -0
- package/dist/wc/esm/z-button-filter.entry.js +45 -0
- package/dist/wc/esm/z-button-sort.entry.js +17 -3
- package/dist/wc/esm/z-candybar.entry.js +1 -1
- package/dist/wc/esm/z-card.entry.js +53 -25
- package/dist/wc/esm/z-carousel.entry.js +20 -0
- package/dist/wc/esm/z-chip-deprecated.entry.js +20 -0
- package/dist/wc/esm/z-chip.entry.js +20 -7
- package/dist/wc/esm/z-combobox.entry.js +18 -17
- package/dist/wc/esm/z-contextual-menu.entry.js +36 -0
- package/dist/wc/esm/z-cookiebar.entry.js +5 -5
- package/dist/wc/esm/z-date-picker.entry.js +3100 -0
- package/dist/wc/esm/z-divider.entry.js +2 -2
- package/dist/wc/esm/z-dragdrop-area_2.entry.js +43 -0
- package/dist/wc/esm/z-file-upload.entry.js +168 -0
- package/dist/wc/esm/z-file.entry.js +43 -0
- package/dist/wc/esm/z-footer-link_3.entry.js +4 -4
- package/dist/wc/esm/z-footer.entry.js +35 -8
- package/dist/wc/esm/z-ghost-loading.entry.js +15 -0
- package/dist/wc/esm/z-icon-package.entry.js +2 -2
- package/dist/wc/esm/z-input-deprecated.entry.js +267 -0
- package/dist/wc/esm/z-input-label_2.entry.js +267 -0
- package/dist/wc/esm/z-list-group.entry.js +50 -0
- package/dist/wc/esm/z-list_2.entry.js +144 -53
- package/dist/wc/esm/z-logo.entry.js +12 -10
- package/dist/wc/esm/z-menu-dropdown_2.entry.js +84 -0
- package/dist/wc/esm/z-menu-section.entry.js +2 -2
- package/dist/wc/esm/z-menu.entry.js +58 -4
- package/dist/wc/esm/z-messages-pocket.entry.js +42 -0
- package/dist/wc/esm/z-modal-login.entry.js +15 -6
- package/dist/wc/esm/z-myz-card-alert.entry.js +59 -0
- package/dist/wc/esm/z-myz-card-dictionary.entry.js +32 -0
- package/dist/wc/esm/z-myz-card-footer-sections.entry.js +15 -0
- package/dist/wc/esm/z-myz-card-footer.entry.js +52 -0
- package/dist/wc/esm/z-myz-card-icon.entry.js +17 -0
- package/dist/wc/esm/z-myz-card-info.entry.js +115 -0
- package/dist/wc/esm/z-myz-card-list.entry.js +33 -0
- package/dist/wc/esm/z-myz-card_4.entry.js +97 -0
- package/dist/wc/esm/{z-list-item.entry.js → z-myz-list-item.entry.js} +7 -6
- package/dist/wc/esm/z-myz-topbar.entry.js +190 -0
- package/dist/wc/esm/z-navigation-tab-link.entry.js +67 -0
- package/dist/wc/esm/z-navigation-tab.entry.js +69 -0
- package/dist/wc/esm/z-navigation-tabs.entry.js +122 -0
- package/dist/wc/esm/z-notification.entry.js +42 -0
- package/dist/wc/esm/z-offcanvas.entry.js +59 -0
- package/dist/wc/esm/z-otp.entry.js +37 -0
- package/dist/wc/esm/z-pagination-bar.entry.js +8 -2651
- package/dist/wc/esm/z-pagination-page.entry.js +3 -4
- package/dist/wc/esm/z-pagination.entry.js +225 -0
- package/dist/wc/esm/z-panel-elem.entry.js +1 -1
- package/dist/wc/esm/z-pocket-message.entry.js +15 -0
- package/dist/wc/esm/z-pocket_3.entry.js +119 -0
- package/dist/wc/esm/z-popover.entry.js +128 -0
- package/dist/wc/esm/z-section-title.entry.js +38 -0
- package/dist/wc/esm/z-skip-to-content.entry.js +64 -0
- package/dist/wc/esm/z-slideshow.entry.js +108 -0
- package/dist/wc/esm/z-status-tag.entry.js +25 -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-registro-table-body.entry.js → z-table-body.entry.js} +5 -5
- package/dist/wc/esm/z-table-cell.entry.js +32 -0
- package/dist/wc/esm/z-table-empty-box.entry.js +28 -0
- package/dist/wc/esm/z-table-expanded-row.entry.js +15 -0
- package/dist/wc/esm/{z-registro-table-head.entry.js → z-table-footer.entry.js} +5 -5
- package/dist/wc/esm/{z-registro-table-footer.entry.js → z-table-head.entry.js} +5 -5
- package/dist/wc/esm/z-table-header-row.entry.js +18 -0
- package/dist/wc/esm/z-table-header.entry.js +84 -0
- package/dist/wc/esm/z-table-row.entry.js +39 -0
- package/dist/wc/esm/z-table-sticky-footer.entry.js +15 -0
- package/dist/wc/esm/z-table.entry.js +78 -0
- package/dist/wc/esm/z-tag.entry.js +18 -0
- package/dist/wc/esm/z-toast-notification-list.entry.js +52 -0
- package/dist/wc/esm/z-toast-notification.entry.js +199 -0
- package/dist/wc/esm/z-toggle-button.entry.js +7 -6
- package/dist/wc/esm/z-toggle-switch.entry.js +45 -0
- package/dist/wc/esm/z-tooltip.entry.js +254 -24
- package/dist/wc/esm/z-user-dropdown.entry.js +46 -51
- package/dist/wc/esm/z-visually-hidden.entry.js +15 -0
- 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 +3 -1
- package/package.json +1 -1
- package/dist/wc/cjs/index-b9bd2767.js +0 -81
- package/dist/wc/cjs/utils-1f907efa.js +0 -42
- package/dist/wc/cjs/z-card-alert.cjs.entry.js +0 -52
- package/dist/wc/cjs/z-card-body.cjs.entry.js +0 -19
- package/dist/wc/cjs/z-card-cover.cjs.entry.js +0 -22
- package/dist/wc/cjs/z-card-footer.cjs.entry.js +0 -46
- package/dist/wc/cjs/z-card-header.cjs.entry.js +0 -38
- package/dist/wc/cjs/z-card-icon.cjs.entry.js +0 -21
- package/dist/wc/cjs/z-header.cjs.entry.js +0 -180
- package/dist/wc/cjs/z-heading.cjs.entry.js +0 -17
- package/dist/wc/cjs/z-registro-table-cell.cjs.entry.js +0 -34
- package/dist/wc/cjs/z-registro-table-header.cjs.entry.js +0 -23
- package/dist/wc/cjs/z-registro-table-row.cjs.entry.js +0 -23
- package/dist/wc/cjs/z-registro-table-sticky-footer.cjs.entry.js +0 -19
- package/dist/wc/cjs/z-registro-table.cjs.entry.js +0 -31
- package/dist/wc/delta_share/p-04b614bf.entry.js +0 -1
- package/dist/wc/delta_share/p-0a05abe2.entry.js +0 -1
- package/dist/wc/delta_share/p-21e76fc5.entry.js +0 -1
- package/dist/wc/delta_share/p-26d039ff.entry.js +0 -1
- package/dist/wc/delta_share/p-3995e58c.entry.js +0 -1
- package/dist/wc/delta_share/p-3c0ba1d7.entry.js +0 -1
- package/dist/wc/delta_share/p-3dae174e.entry.js +0 -1
- package/dist/wc/delta_share/p-466d0fc0.entry.js +0 -1
- package/dist/wc/delta_share/p-57e825ae.entry.js +0 -1
- package/dist/wc/delta_share/p-5a2d329b.entry.js +0 -1
- package/dist/wc/delta_share/p-5e35124a.entry.js +0 -1
- package/dist/wc/delta_share/p-6422287d.entry.js +0 -3
- package/dist/wc/delta_share/p-7145c713.entry.js +0 -1
- package/dist/wc/delta_share/p-7a08a26d.entry.js +0 -1
- package/dist/wc/delta_share/p-7adbb1ec.entry.js +0 -1
- package/dist/wc/delta_share/p-804eb658.entry.js +0 -1
- package/dist/wc/delta_share/p-81d7702b.entry.js +0 -1
- package/dist/wc/delta_share/p-85623203.entry.js +0 -1
- package/dist/wc/delta_share/p-9dd299b2.js +0 -1
- package/dist/wc/delta_share/p-a259b62e.entry.js +0 -1
- package/dist/wc/delta_share/p-ab7c95da.entry.js +0 -1
- package/dist/wc/delta_share/p-abd1d378.entry.js +0 -1
- package/dist/wc/delta_share/p-acfe9eb3.entry.js +0 -1
- package/dist/wc/delta_share/p-b5e27e10.js +0 -1
- package/dist/wc/delta_share/p-b5eb340c.entry.js +0 -1
- package/dist/wc/delta_share/p-b60651f2.entry.js +0 -1
- package/dist/wc/delta_share/p-c56e8a41.entry.js +0 -1
- package/dist/wc/delta_share/p-c69e24bf.entry.js +0 -1
- package/dist/wc/delta_share/p-cac71697.js +0 -1
- package/dist/wc/delta_share/p-cad0320b.entry.js +0 -1
- package/dist/wc/delta_share/p-d1270e75.entry.js +0 -1
- package/dist/wc/delta_share/p-d2b8f445.entry.js +0 -1
- package/dist/wc/delta_share/p-d489328b.js +0 -1
- package/dist/wc/delta_share/p-de921fbb.entry.js +0 -1
- package/dist/wc/delta_share/p-ec64cd8e.entry.js +0 -1
- package/dist/wc/delta_share/p-f1ba2542.entry.js +0 -1
- package/dist/wc/delta_share/p-f500eb2e.entry.js +0 -1
- package/dist/wc/delta_share/p-f5d6ffbf.entry.js +0 -1
- package/dist/wc/delta_share/p-f6cf7f9f.entry.js +0 -1
- package/dist/wc/delta_share/p-f9175533.entry.js +0 -7
- package/dist/wc/delta_share/p-fb1885ec.js +0 -1
- package/dist/wc/esm/breakpoints-75d56fd9.js +0 -3
- package/dist/wc/esm/index-e68ea3a2.js +0 -81
- package/dist/wc/esm/utils-1c638931.js +0 -37
- package/dist/wc/esm/z-card-alert.entry.js +0 -48
- package/dist/wc/esm/z-card-body.entry.js +0 -15
- package/dist/wc/esm/z-card-cover.entry.js +0 -18
- package/dist/wc/esm/z-card-footer.entry.js +0 -42
- package/dist/wc/esm/z-card-header.entry.js +0 -34
- package/dist/wc/esm/z-card-icon.entry.js +0 -17
- package/dist/wc/esm/z-card-list.entry.js +0 -33
- package/dist/wc/esm/z-header.entry.js +0 -176
- package/dist/wc/esm/z-heading.entry.js +0 -13
- package/dist/wc/esm/z-registro-table-cell.entry.js +0 -30
- package/dist/wc/esm/z-registro-table-header.entry.js +0 -19
- package/dist/wc/esm/z-registro-table-row.entry.js +0 -19
- package/dist/wc/esm/z-registro-table-sticky-footer.entry.js +0 -15
- package/dist/wc/esm/z-registro-table.entry.js +0 -27
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-b3a91e19.js';
|
|
2
|
+
import { t as ToastNotificationTransitionsEnum } from './index-654849a7.js';
|
|
3
|
+
import { m as mobileBreakpoint } from './breakpoints-e07f80e7.js';
|
|
4
|
+
import { h as hammer } from './hammer-c3266b17.js';
|
|
5
|
+
import './_commonjsHelpers-9943807e.js';
|
|
6
|
+
|
|
7
|
+
const stylesCss = ":host{display:inline-block;min-width:200px;width:100vw}:host(.slide-in-left){animation:slideinleft 1s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-in-right){animation:slideinright 1s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-in-down){animation:slideindown 1s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-in-up){animation:slideinup 1s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-out-left){animation:slideoutleft 0.5s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-out-right){animation:slideoutright 0.5s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-out-down){animation:slideoutdown 0.5s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-out-up){animation:slideoutup 0.5s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}@keyframes slideinleft{0%{transform:translateX(100%)}100%{transform:translateX(0)}}@keyframes slideinright{0%{transform:translateX(-100%)}100%{transform:translateX(0)}}@keyframes slideinup{0%{transform:translateY(100%);opacity:0}100%{transform:translateY(0);opacity:100%}}@keyframes slideindown{0%{transform:translateY(-100%);opacity:0}100%{transform:translateY(0);opacity:100%}}@keyframes slideoutleft{0%{transform:translateX(var(--percentuale));opacity:calc(100-var(--percentuale))}100%{transform:translateX(-100%);opacity:0%}}@keyframes slideoutright{0%{transform:translateX(var(--percentuale));opacity:calc(100-var(--percentuale))}100%{transform:translateX(100%);opacity:0%}}@keyframes slideoutup{0%{transform:translateY(var(--percentuale));opacity:100%}100%{transform:translateY(-100%);opacity:0}}@keyframes slideoutdown{0%{transform:translateY(var(--percentuale));opacity:100%}100%{transform:translateY(100%);opacity:0}}:host>#external-container{font-family:var(--font-family-sans);font-weight:var(--font-rg);border-radius:4px;font-size:14px;letter-spacing:0.16px;box-sizing:border-box;min-height:52px;padding:calc(var(--space-unit) * 1) calc(var(--space-unit) * 2);display:flex;align-items:center;justify-content:space-between;box-shadow:var(--shadow-3)}:host>#external-container.mobile-wrapped>#icon{align-self:flex-start}:host>#external-container.several-lines-padding{padding:calc(var(--space-unit) * 2)}:host>#external-container>#flex-container{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;width:100%}:host>#external-container #text{color:var(--color-white);line-height:20px;margin-right:calc(var(--space-unit) * 2);letter-spacing:0.16px;text-align:left}:host>#external-container #text>.title{margin-right:4px;font-weight:600}:host>#external-container.mobile-wrapped #button ::slotted(z-button-deprecated){margin-top:calc(var(--space-unit) * 2)}:host>#external-container #icon{cursor:pointer;fill:var(--color-white);margin-left:calc(var(--space-unit) * 2)}:host>#external-container.dark{background:var(--gray800)}:host>#external-container.light{background:var(--color-background)}:host>#external-container.light #icon,:host>#external-container.warning #text,:host>#external-container.warning #icon{fill:var(--color-icon01)}:host>#external-container.light #text,:host>#external-container.warning #text{color:var(--grey800)}:host>#external-container.accent{background:var(--color-primary01)}:host>#external-container.error{background:var(--color-error-default)}:host>#external-container.success{background:var(--color-success-default)}:host>#external-container.warning{background:var(--color-warning-default)}@media only screen and (min-width: 768px){:host{width:unset;max-width:50vw}:host>#external-container>#flex-container{flex-wrap:nowrap}:host>#external-container #text{width:100%}}@media only screen and (min-width: 1366px){:host{width:unset;max-width:33vw}}";
|
|
8
|
+
|
|
9
|
+
const ZToastNotification = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
registerInstance(this, hostRef);
|
|
12
|
+
this.toastClose = createEvent(this, "toastClose", 7);
|
|
13
|
+
/** toast notification autoclose can be paused */
|
|
14
|
+
this.pauseonfocusloss = true;
|
|
15
|
+
/** toast notification can be draggable*/
|
|
16
|
+
this.isdraggable = true;
|
|
17
|
+
/** toast notification draggable percentage*/
|
|
18
|
+
this.draggablepercentage = 80;
|
|
19
|
+
this.isCloseEventCalled = false;
|
|
20
|
+
this.visibilityChangeEventHandler = () => {
|
|
21
|
+
if (document.visibilityState === "hidden") {
|
|
22
|
+
this.timeoutHandle && this.onBlur();
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
this.elapsedTime && this.onFocus();
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
watchPropIsdraggable(newValue) {
|
|
30
|
+
if (newValue) {
|
|
31
|
+
this.sliderManager.get('pan').set({ enable: true });
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
this.sliderManager.get('pan').set({ enable: false });
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
watchPropAutoclose(newValue) {
|
|
38
|
+
clearTimeout(this.timeoutHandle);
|
|
39
|
+
this.startClosingTimeout(newValue);
|
|
40
|
+
}
|
|
41
|
+
watchPropPauseonfocusloss(newValue) {
|
|
42
|
+
if (this.autoclose) {
|
|
43
|
+
if (newValue) {
|
|
44
|
+
document.addEventListener("visibilitychange", this.visibilityChangeEventHandler);
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
document.removeEventListener("visibilitychange", this.visibilityChangeEventHandler);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
emitToastClose(cssClass) {
|
|
52
|
+
this.timeoutHandle = null;
|
|
53
|
+
this.elapsedTime = null;
|
|
54
|
+
this.hostElement.classList.add(cssClass);
|
|
55
|
+
this.toastClose.emit();
|
|
56
|
+
}
|
|
57
|
+
componentWillLoad() {
|
|
58
|
+
this.isMobile = window.innerWidth <= mobileBreakpoint;
|
|
59
|
+
this.validateAutoclose();
|
|
60
|
+
}
|
|
61
|
+
componentDidLoad() {
|
|
62
|
+
this.isTextLong = this.detectWrap() || this.toastText.offsetHeight > 20;
|
|
63
|
+
this.startTime = Date.now();
|
|
64
|
+
if (this.autoclose && this.pauseonfocusloss) {
|
|
65
|
+
document.addEventListener("visibilitychange", this.visibilityChangeEventHandler);
|
|
66
|
+
}
|
|
67
|
+
this.isdraggable && this.handleSlideOutDragAnimation();
|
|
68
|
+
this.percentage = 0;
|
|
69
|
+
}
|
|
70
|
+
validateAutoclose() {
|
|
71
|
+
if (!this.autoclose && !this.closebutton)
|
|
72
|
+
console.error("At least one between autoclose and closebutton must be present");
|
|
73
|
+
}
|
|
74
|
+
mapSlideOutClass() {
|
|
75
|
+
switch (this.transition) {
|
|
76
|
+
case ToastNotificationTransitionsEnum.slideInDown:
|
|
77
|
+
return ToastNotificationTransitionsEnum.slideOutUp;
|
|
78
|
+
case ToastNotificationTransitionsEnum.slideInUp:
|
|
79
|
+
return ToastNotificationTransitionsEnum.slideOutDown;
|
|
80
|
+
case ToastNotificationTransitionsEnum.slideInLeft:
|
|
81
|
+
return ToastNotificationTransitionsEnum.slideOutRight;
|
|
82
|
+
case ToastNotificationTransitionsEnum.slideInRight:
|
|
83
|
+
return ToastNotificationTransitionsEnum.slideOutLeft;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
calculateDraggedPercentage(e) {
|
|
87
|
+
const bounding = this.hostElement.getBoundingClientRect();
|
|
88
|
+
return Math.round((100 * e.deltaX) / bounding.width);
|
|
89
|
+
}
|
|
90
|
+
handleSlideOutDragAnimation() {
|
|
91
|
+
this.sliderManager = new hammer(this.hostElement);
|
|
92
|
+
this.sliderManager.get("pan").set({
|
|
93
|
+
direction: hammer.DIRECTION_HORIZONTAL,
|
|
94
|
+
});
|
|
95
|
+
this.sliderManager.on("pan", (e) => {
|
|
96
|
+
this.percentage = this.calculateDraggedPercentage(e);
|
|
97
|
+
this.hostElement.style.transition = "none";
|
|
98
|
+
this.hostElement.classList.remove(this.transition);
|
|
99
|
+
const translateObj = {
|
|
100
|
+
translate: "translateX( " + this.percentage + "% )",
|
|
101
|
+
translateBack: "translateX(0)",
|
|
102
|
+
};
|
|
103
|
+
this.hostElement.style.opacity = `${100 - Math.abs(this.percentage)}%`;
|
|
104
|
+
if (e.eventType === hammer.DIRECTION_LEFT ||
|
|
105
|
+
e.eventType === hammer.DIRECTION_RIGHT) {
|
|
106
|
+
this.hostElement.style.transform = translateObj.translate;
|
|
107
|
+
if (Math.abs(this.percentage) > this.draggablepercentage &&
|
|
108
|
+
!this.isCloseEventCalled) {
|
|
109
|
+
this.isCloseEventCalled = true;
|
|
110
|
+
this.emitToastClose(e.direction === hammer.DIRECTION_LEFT
|
|
111
|
+
? "slide-out-left"
|
|
112
|
+
: "slide-out-right");
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
if (e.isFinal && Math.abs(this.percentage) < this.draggablepercentage) {
|
|
116
|
+
this.hostElement.style.transform = translateObj.translateBack;
|
|
117
|
+
this.hostElement.style.transition = "all 1s";
|
|
118
|
+
this.hostElement.style.opacity = `100%`;
|
|
119
|
+
this.percentage = 0;
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
onFocus() {
|
|
124
|
+
let time;
|
|
125
|
+
time = this.autoclose;
|
|
126
|
+
if (this.elapsedTime) {
|
|
127
|
+
time = this.autoclose - this.elapsedTime;
|
|
128
|
+
}
|
|
129
|
+
if (time > 0) {
|
|
130
|
+
this.startClosingTimeout(time);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
onBlur() {
|
|
134
|
+
this.elapsedTime = Date.now() - this.startTime;
|
|
135
|
+
clearTimeout(this.timeoutHandle);
|
|
136
|
+
}
|
|
137
|
+
startClosingTimeout(time) {
|
|
138
|
+
this.timeoutHandle = setTimeout(() => this.emitToastClose(this.mapSlideOutClass()), time);
|
|
139
|
+
}
|
|
140
|
+
detectWrap() {
|
|
141
|
+
const parentWidth = this.container.offsetWidth;
|
|
142
|
+
const children = this.container.children;
|
|
143
|
+
let totalWidth = 0;
|
|
144
|
+
for (let i = 0; i < children.length; i++) {
|
|
145
|
+
totalWidth += children[i].offsetWidth;
|
|
146
|
+
}
|
|
147
|
+
return totalWidth > parentWidth;
|
|
148
|
+
}
|
|
149
|
+
renderText() {
|
|
150
|
+
return (h("div", { id: "text", ref: (el) => (this.toastText = el) }, h("span", { class: "title" }, this.heading), h("span", { class: "message" }, this.message)));
|
|
151
|
+
}
|
|
152
|
+
renderButton() {
|
|
153
|
+
return (h("div", { id: "button" }, h("slot", { name: "button" })));
|
|
154
|
+
}
|
|
155
|
+
renderCloseIcon() {
|
|
156
|
+
return (this.closebutton && (h("div", { id: "icon" }, h("z-icon", { tabIndex: 0, name: "multiply-circled", width: 15, height: 15, onClick: () => this.emitToastClose(this.mapSlideOutClass()), onKeyPress: (e) => {
|
|
157
|
+
if (e.keyCode == 32 || e.keyCode == 13) {
|
|
158
|
+
e.preventDefault();
|
|
159
|
+
this.emitToastClose(this.mapSlideOutClass());
|
|
160
|
+
}
|
|
161
|
+
} }))));
|
|
162
|
+
}
|
|
163
|
+
renderContainer() {
|
|
164
|
+
return (h("div", { tabIndex: 0, id: "external-container", class: {
|
|
165
|
+
[this.type]: !!this.type,
|
|
166
|
+
"several-lines-padding": this.isTextLong,
|
|
167
|
+
}, ref: (el) => (this.container = el) }, this.renderText(), this.renderButton(), this.renderCloseIcon()));
|
|
168
|
+
}
|
|
169
|
+
renderMobileContainer() {
|
|
170
|
+
return (h("div", { id: "external-container", class: {
|
|
171
|
+
[this.type]: !!this.type,
|
|
172
|
+
"several-lines-padding": this.isTextLong,
|
|
173
|
+
"mobile-wrapped": this.isTextLong,
|
|
174
|
+
} }, h("div", { id: "flex-container", ref: (el) => (this.container = el) }, this.renderText(), this.renderButton()), this.renderCloseIcon()));
|
|
175
|
+
}
|
|
176
|
+
render() {
|
|
177
|
+
return (h(Host, { style: {
|
|
178
|
+
["--percentuale"]: `${this.percentage}%`,
|
|
179
|
+
}, class: this.transition
|
|
180
|
+
? this.transition
|
|
181
|
+
: ToastNotificationTransitionsEnum.slideInDown, onAnimationEnd: (e) => {
|
|
182
|
+
if (this.autoclose && e.animationName.includes("slidein")) {
|
|
183
|
+
this.startClosingTimeout(this.autoclose);
|
|
184
|
+
}
|
|
185
|
+
if (e.animationName.includes("slideout")) {
|
|
186
|
+
this.hostElement.parentNode.removeChild(this.hostElement);
|
|
187
|
+
}
|
|
188
|
+
} }, this.isMobile ? this.renderMobileContainer() : this.renderContainer()));
|
|
189
|
+
}
|
|
190
|
+
get hostElement() { return getElement(this); }
|
|
191
|
+
static get watchers() { return {
|
|
192
|
+
"isdraggable": ["watchPropIsdraggable"],
|
|
193
|
+
"autoclose": ["watchPropAutoclose"],
|
|
194
|
+
"pauseonfocusloss": ["watchPropPauseonfocusloss"]
|
|
195
|
+
}; }
|
|
196
|
+
};
|
|
197
|
+
ZToastNotification.style = stylesCss;
|
|
198
|
+
|
|
199
|
+
export { ZToastNotification as z_toast_notification };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-b3a91e19.js';
|
|
2
2
|
|
|
3
3
|
const stylesCss = "button{font-family:var(--dashboard-font);font-weight:var(--font-sb);height:36px;border:var(--border-size-medium) solid;border-color:transparent;border-radius:var(--border-radius);color:var(--myz-blue);fill:var(--myz-blue);background-color:var(--bg-white);box-shadow:0px 0px 4px 0px rgba(0, 0, 0, 0.2);text-transform:uppercase;font-size:14px;outline:none;padding-left:0px;padding-right:calc(var(--space-unit) * 2);transition:all 200ms linear;cursor:pointer}button::-moz-focus-inner{border:0}button:hover{color:var(--myz-blue-dark);fill:var(--myz-blue-dark)}button:focus{border-color:var(--myz-blue);color:var(--myz-blue);fill:var(--myz-blue);box-shadow:0px 0px 2px 2px var(--accent-dark)}button:active{border-color:var(--myz-blue-light);color:var(--myz-blue-light);fill:var(--myz-blue-light);box-shadow:0px 2px 4px 0px rgba(0, 0, 0, 0.4)}button:disabled{color:var(--text-grey-700);fill:var(--text-grey-700)}z-icon{display:inline-block;margin:0 var(--space-unit) 0 calc(var(--space-unit) * 2);transform:rotate(360deg);transition:all 200ms linear}button.isopen{top:-20px}button.avoid-clicks{pointer-events:none}";
|
|
4
4
|
|
|
@@ -8,22 +8,23 @@ const ZToggleButton = class {
|
|
|
8
8
|
this.toggleClick = createEvent(this, "toggleClick", 7);
|
|
9
9
|
/** disabled status flag (optional) */
|
|
10
10
|
this.isdisabled = false;
|
|
11
|
-
|
|
11
|
+
/** open by default (optional) */
|
|
12
|
+
this.opened = false;
|
|
12
13
|
}
|
|
13
14
|
emitToggleClick() {
|
|
14
15
|
if (this.isdisabled)
|
|
15
16
|
return;
|
|
16
|
-
this.
|
|
17
|
-
this.toggleClick.emit(this.
|
|
17
|
+
this.opened = !this.opened;
|
|
18
|
+
this.toggleClick.emit(this.opened);
|
|
18
19
|
}
|
|
19
20
|
retrieveButtonClass() {
|
|
20
|
-
let className = this.
|
|
21
|
+
let className = this.opened && "isopen";
|
|
21
22
|
if (this.avoidclick)
|
|
22
23
|
className = className + " avoid-clicks";
|
|
23
24
|
return className;
|
|
24
25
|
}
|
|
25
26
|
render() {
|
|
26
|
-
return (h("button", { tabindex: this.avoidclick ? "-1" : "0", class: this.retrieveButtonClass(), disabled: this.isdisabled, onClick: () => this.emitToggleClick() }, h("z-icon", { name: this.
|
|
27
|
+
return (h("button", { tabindex: this.avoidclick ? "-1" : "0", class: this.retrieveButtonClass(), disabled: this.isdisabled, onClick: () => this.emitToggleClick() }, h("z-icon", { name: this.opened ? "chevron-down" : "chevron-up", width: 16, height: 16 }), this.label));
|
|
27
28
|
}
|
|
28
29
|
};
|
|
29
30
|
ZToggleButton.style = stylesCss;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-b3a91e19.js';
|
|
2
|
+
import { r as randomId } from './utils-417652d9.js';
|
|
3
|
+
import { L as LabelPositions } from './index-654849a7.js';
|
|
4
|
+
import './breakpoints-e07f80e7.js';
|
|
5
|
+
|
|
6
|
+
const stylesCss = ".sc-z-toggle-switch-h{font-family:var(--font-family-sans);font-weight:var(--font-rg);display:inline-flex;position:relative}label.sc-z-toggle-switch{display:flex;align-items:center;flex-direction:row;cursor:pointer}label.disabled.sc-z-toggle-switch{cursor:default}label.right.sc-z-toggle-switch{flex-direction:row-reverse}label.sc-z-toggle-switch>span.sc-z-toggle-switch:first-child{letter-spacing:0;color:var(--color-text01)}label.left.sc-z-toggle-switch>span.sc-z-toggle-switch:first-child{margin-right:var(--space-unit)}label.right.sc-z-toggle-switch>span.sc-z-toggle-switch:first-child{margin-left:var(--space-unit)}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch{display:flex;align-items:center}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch{top:1px;left:1px;height:18px;width:calc(var(--space-unit) * 4);border-radius:var(--space-unit);color:var(--gray500);background-color:var(--gray500);position:relative;cursor:pointer}label.sc-z-toggle-switch>span.container.disabled.sc-z-toggle-switch,label.sc-z-toggle-switch>span.container.checked.disabled.sc-z-toggle-switch{background-color:var(--color-disabled01);cursor:default}label.sc-z-toggle-switch>span.container.checked.disabled.sc-z-toggle-switch>span.circle.sc-z-toggle-switch>z-icon.sc-z-toggle-switch{fill:var(--color-disabled01)}label.sc-z-toggle-switch>span.container.checked.sc-z-toggle-switch{background-color:var(--color-primary01);fill:var(--color-primary01)}input.sc-z-toggle-switch:focus:focus-visible+label.sc-z-toggle-switch>span.container.sc-z-toggle-switch:not(.disabled){outline:none;box-shadow:var(--shadow-focus-primary)}input.sc-z-toggle-switch:focus:focus-visible+label.sc-z-toggle-switch>span.container.disabled.sc-z-toggle-switch{outline:none}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch:not(.disabled):hover{background-color:var(--color-hover-primary);fill:var(--color-hover-primary)}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch>span.circle.sc-z-toggle-switch{top:1px;left:1px;position:absolute;display:flex;align-items:center;justify-content:center;margin:0;height:calc(var(--space-unit) * 2);width:calc(var(--space-unit) * 2);border-radius:7px;background-color:var(--color-white);box-shadow:var(--shadow-1);transition:transform 0.3s ease}label.sc-z-toggle-switch>span.container.checked.sc-z-toggle-switch>span.circle.sc-z-toggle-switch{transform:translateX(calc(100% - 2px))}input[type=\"checkbox\"].sc-z-toggle-switch{position:absolute;opacity:0;z-index:-1;pointer-events:none}";
|
|
7
|
+
|
|
8
|
+
const ZToggleSwitch = class {
|
|
9
|
+
constructor(hostRef) {
|
|
10
|
+
registerInstance(this, hostRef);
|
|
11
|
+
this.toggleClick = createEvent(this, "toggleClick", 7);
|
|
12
|
+
this.disabled = false;
|
|
13
|
+
this.labelPosition = LabelPositions.left;
|
|
14
|
+
this.checked = false;
|
|
15
|
+
this.htmlid = `toggle-switch-id-${randomId()}`;
|
|
16
|
+
}
|
|
17
|
+
emitToggleClick() {
|
|
18
|
+
this.toggleClick.emit({
|
|
19
|
+
id: this.htmlid,
|
|
20
|
+
checked: this.checked,
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
handleClick(ev) {
|
|
24
|
+
if (this.disabled)
|
|
25
|
+
return;
|
|
26
|
+
this.checked = ev.target.checked;
|
|
27
|
+
this.emitToggleClick();
|
|
28
|
+
}
|
|
29
|
+
render() {
|
|
30
|
+
return [
|
|
31
|
+
h("input", { id: this.htmlid, type: "checkbox", checked: this.checked, disabled: this.disabled, onChange: this.handleClick.bind(this) }),
|
|
32
|
+
h("label", { htmlFor: this.htmlid, class: {
|
|
33
|
+
[this.labelPosition]: true,
|
|
34
|
+
disabled: this.disabled,
|
|
35
|
+
} }, h("span", null, h("slot", null)), h("span", { class: {
|
|
36
|
+
container: true,
|
|
37
|
+
disabled: this.disabled,
|
|
38
|
+
checked: this.checked,
|
|
39
|
+
} }, h("span", { class: "circle" }, this.checked && (h("z-icon", { width: 12, height: 12, name: "checkmark" }))))),
|
|
40
|
+
];
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
ZToggleSwitch.style = stylesCss;
|
|
44
|
+
|
|
45
|
+
export { ZToggleSwitch as z_toggle_switch };
|
|
@@ -1,39 +1,269 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
2
|
-
import {
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-b3a91e19.js';
|
|
2
|
+
import { i as TooltipPosition } from './index-654849a7.js';
|
|
3
3
|
|
|
4
|
-
const stylesCss = ":host{--z-tooltip-
|
|
4
|
+
const stylesCss = ":host{--z-tooltip-theme--surface:var(--color-surface01);--z-tooltip-theme--text:var(--color-text01);--arrow-size:6px;--edge-offset:calc(-1 * (var(--arrow-size) + calc(var(--space-unit) * 2)));position:relative;display:none;align-items:center;justify-content:center;padding:var(--space-unit);min-width:calc(var(--space-unit) * 8);min-height:calc(var(--space-unit) * 4);color:var(--z-tooltip-theme--text);fill:currentColor;font-family:var(--font-family-sans);text-align:center;border-radius:var(--border-radius-small);background:var(--z-tooltip-theme--surface);filter:drop-shadow(0 4px 8px var(--shadow-color-base));will-change:filter}:host(.legacy){display:inline-flex;padding:calc(var(--space-unit) * 2);min-width:auto;min-height:auto;max-width:200px;font-style:italic;line-height:16px;letter-spacing:0.32px;font-size:12px;border:var(--border-size-small) solid var(--gray200);border-radius:var(--border-radius);filter:drop-shadow(0px 0px 2px rgba(0, 0, 0, 0.08))}:host(.legacy)::before{--arrow-size:14px}:host([position])::before{--arrow-edge-offset:calc(100% - var(--arrow-size) - var(--space-unit));--arrow-center-x-offset:calc(50% - calc(var(--arrow-size) / 2));--arrow-center-y-offset:calc(100% - calc(var(--arrow-size) / 2));content:'';position:absolute;width:var(--arrow-size);height:var(--arrow-size);background:inherit;transform:rotate(45deg)}:host([open][style*='top:']),:host([open][style*='inset:']){display:inline-flex}:host([position^='top']){margin-bottom:var(--space-unit)}:host([position='right']){margin-left:var(--space-unit)}:host([position='top_right']),:host([position='bottom_right']){margin-left:var(--edge-offset)}:host([position^='bottom']){margin-top:var(--space-unit)}:host([position='left']){margin-right:var(--space-unit)}:host([position='top_left']),:host([position='bottom_left']){margin-right:var(--edge-offset)}:host([position^='top'])::before{top:var(--arrow-center-y-offset)}:host([position^='bottom'])::before{bottom:var(--arrow-center-y-offset)}:host([position='top'])::before,:host([position='bottom'])::before{left:var(--arrow-center-x-offset)}:host([position='right'])::before,:host([position='left'])::before{top:var(--arrow-center-x-offset)}:host([position='right'])::before{right:var(--arrow-center-y-offset)}:host([position='top_right'])::before,:host([position='bottom_right'])::before{right:var(--arrow-edge-offset)}:host([position='left'])::before{left:var(--arrow-center-y-offset)}:host([position='top_left'])::before,:host([position='bottom_left'])::before{left:var(--arrow-edge-offset)}::slotted(*){flex:1 auto;overflow:auto}";
|
|
5
5
|
|
|
6
|
+
const documentElement = document.documentElement;
|
|
7
|
+
/**
|
|
8
|
+
* Find the closest scrollable parent of a node.
|
|
9
|
+
*
|
|
10
|
+
* @param {Element} element The node
|
|
11
|
+
*/
|
|
12
|
+
function findScrollableParent(element) {
|
|
13
|
+
let parent = element.parentNode;
|
|
14
|
+
while (parent && parent !== documentElement) {
|
|
15
|
+
const { overflow, overflowX, overflowY } = window.getComputedStyle(parent);
|
|
16
|
+
if (overflow === 'hidden' ||
|
|
17
|
+
overflowY === 'hidden' ||
|
|
18
|
+
overflowX === 'hidden') {
|
|
19
|
+
return parent;
|
|
20
|
+
}
|
|
21
|
+
if ((parent.scrollHeight > parent.clientHeight && overflow !== 'visible' && overflowY !== 'visible') ||
|
|
22
|
+
(parent.scrollWidth > parent.clientWidth && overflow !== 'visible' && overflowX !== 'visible')) {
|
|
23
|
+
return parent;
|
|
24
|
+
}
|
|
25
|
+
parent = parent.parentNode;
|
|
26
|
+
}
|
|
27
|
+
return documentElement;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Calculate computed offset.
|
|
31
|
+
* It includes matrix transformations.
|
|
32
|
+
* @param element The target element.
|
|
33
|
+
* @param targetParentOffset The relative offset parent.
|
|
34
|
+
* @return A client rect object.
|
|
35
|
+
*/
|
|
36
|
+
function computeOffset(element, targetParentOffset) {
|
|
37
|
+
const rect = element.getBoundingClientRect();
|
|
38
|
+
const width = rect.width;
|
|
39
|
+
const height = rect.height;
|
|
40
|
+
let top = 0;
|
|
41
|
+
let left = 0;
|
|
42
|
+
let offsetParent = element;
|
|
43
|
+
while (offsetParent && offsetParent != targetParentOffset) {
|
|
44
|
+
left += offsetParent.offsetLeft;
|
|
45
|
+
// document.body sometimes has offsetTop == 0 but still has an
|
|
46
|
+
// offset because of children margins!
|
|
47
|
+
if (offsetParent === document.body) {
|
|
48
|
+
top += offsetParent.getBoundingClientRect().top + window.scrollY;
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
top += offsetParent.offsetTop;
|
|
52
|
+
}
|
|
53
|
+
if (window.DOMMatrix) {
|
|
54
|
+
const style = window.getComputedStyle(offsetParent);
|
|
55
|
+
const transform = style.transform || style.webkitTransform;
|
|
56
|
+
const domMatrix = new DOMMatrix(transform);
|
|
57
|
+
if (domMatrix) {
|
|
58
|
+
left += domMatrix.m41;
|
|
59
|
+
if (offsetParent !== document.body) {
|
|
60
|
+
top += domMatrix.m42;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
if (!offsetParent.offsetParent) {
|
|
65
|
+
break;
|
|
66
|
+
}
|
|
67
|
+
offsetParent = offsetParent.offsetParent;
|
|
68
|
+
}
|
|
69
|
+
let parentWidth;
|
|
70
|
+
let parentHeight;
|
|
71
|
+
if (offsetParent === document.body) {
|
|
72
|
+
parentWidth = window.innerWidth;
|
|
73
|
+
parentHeight = window.innerHeight;
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
parentWidth = offsetParent.offsetWidth;
|
|
77
|
+
parentHeight = offsetParent.offsetHeight;
|
|
78
|
+
}
|
|
79
|
+
const right = parentWidth - left - rect.width;
|
|
80
|
+
const bottom = parentHeight - top - rect.height;
|
|
81
|
+
return { top, right, bottom, left, width, height };
|
|
82
|
+
}
|
|
6
83
|
const ZTooltip = class {
|
|
7
84
|
constructor(hostRef) {
|
|
8
85
|
registerInstance(this, hostRef);
|
|
86
|
+
this.positionChange = createEvent(this, "positionChange", 7);
|
|
87
|
+
/** Tooltip position. */
|
|
88
|
+
this.type = TooltipPosition.AUTO;
|
|
89
|
+
/**
|
|
90
|
+
* The open state of the tooltip.
|
|
91
|
+
*/
|
|
92
|
+
this.open = false;
|
|
93
|
+
}
|
|
94
|
+
validateType(newValue) {
|
|
95
|
+
if (newValue &&
|
|
96
|
+
Object
|
|
97
|
+
.values(TooltipPosition)
|
|
98
|
+
.every((position) => newValue !== position)) {
|
|
99
|
+
this.type = TooltipPosition.AUTO;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
onPositionChange() {
|
|
103
|
+
this.positionChange.emit({ position: this.position });
|
|
104
|
+
}
|
|
105
|
+
disconnectedCallback() {
|
|
106
|
+
cancelAnimationFrame(this.animationFrameRequestId);
|
|
9
107
|
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
108
|
+
/**
|
|
109
|
+
* Setup tooltip behaviors on opening.
|
|
110
|
+
*/
|
|
111
|
+
onOpen() {
|
|
112
|
+
cancelAnimationFrame(this.animationFrameRequestId);
|
|
113
|
+
if (this.content) {
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
if (this.open) {
|
|
117
|
+
const setPosition = () => {
|
|
118
|
+
if (this.open) {
|
|
119
|
+
this.setPosition();
|
|
120
|
+
this.animationFrameRequestId = requestAnimationFrame(setPosition);
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
setPosition();
|
|
124
|
+
}
|
|
125
|
+
else {
|
|
126
|
+
const style = this.host.style;
|
|
127
|
+
style.removeProperty("top");
|
|
128
|
+
style.removeProperty("right");
|
|
129
|
+
style.removeProperty("bottom");
|
|
130
|
+
style.removeProperty("left");
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Set the position of the tooltip.
|
|
135
|
+
*/
|
|
136
|
+
setPosition() {
|
|
137
|
+
let element;
|
|
138
|
+
if (typeof this.bindTo === "string") {
|
|
139
|
+
element = this.host.ownerDocument.querySelector(this.bindTo);
|
|
140
|
+
}
|
|
141
|
+
else if (this.bindTo) {
|
|
142
|
+
element = this.bindTo;
|
|
143
|
+
}
|
|
144
|
+
else {
|
|
145
|
+
element = this.host.parentElement;
|
|
146
|
+
}
|
|
147
|
+
if (!element) {
|
|
148
|
+
return;
|
|
149
|
+
}
|
|
150
|
+
const scrollContainer = findScrollableParent(element);
|
|
151
|
+
const scrollingBoundingRect = scrollContainer.getBoundingClientRect();
|
|
152
|
+
const offsetContainer = this.host.offsetParent;
|
|
153
|
+
const relativeBoundingRect = offsetContainer ? computeOffset(offsetContainer, scrollContainer) : { top: 0, right: 0, bottom: 0, left: 0 };
|
|
154
|
+
const boundingRect = computeOffset(element, scrollContainer);
|
|
155
|
+
const top = boundingRect.top - scrollContainer.scrollTop;
|
|
156
|
+
const bottom = scrollingBoundingRect.height - (boundingRect.top + boundingRect.height) + scrollContainer.scrollTop;
|
|
157
|
+
const left = boundingRect.left - scrollContainer.scrollLeft;
|
|
158
|
+
const right = scrollingBoundingRect.width - (boundingRect.left + boundingRect.width) + scrollContainer.scrollLeft;
|
|
159
|
+
const overflowBottom = Math.max(0, scrollingBoundingRect.top + scrollingBoundingRect.height - window.innerHeight);
|
|
160
|
+
const overflowRight = Math.max(0, scrollingBoundingRect.left + scrollingBoundingRect.width - window.innerWidth);
|
|
161
|
+
const availableTop = Math.min(top, top + scrollingBoundingRect.top);
|
|
162
|
+
const availableBottom = Math.min(bottom, bottom - overflowBottom);
|
|
163
|
+
const availableLeft = Math.min(left, left + scrollingBoundingRect.left);
|
|
164
|
+
const availableRight = Math.min(right, right - overflowRight);
|
|
165
|
+
const availableHeight = availableTop + availableBottom + boundingRect.height;
|
|
166
|
+
const availableWidth = availableLeft + availableRight + boundingRect.width;
|
|
167
|
+
let position = this.type;
|
|
168
|
+
if (position === TooltipPosition.AUTO) {
|
|
169
|
+
/**
|
|
170
|
+
* The `AUTO` position tries to place the tooltip in the "safest" area,
|
|
171
|
+
* where there's more space available.
|
|
172
|
+
*/
|
|
173
|
+
const positions = [];
|
|
174
|
+
if (availableTop / availableHeight > 0.9) {
|
|
175
|
+
positions.unshift(TooltipPosition.TOP);
|
|
176
|
+
}
|
|
177
|
+
else if (availableTop / availableHeight > 0.6) {
|
|
178
|
+
positions.push(TooltipPosition.TOP);
|
|
179
|
+
}
|
|
180
|
+
else if (availableTop / availableHeight < 0.1) {
|
|
181
|
+
positions.unshift(TooltipPosition.BOTTOM);
|
|
182
|
+
}
|
|
183
|
+
else {
|
|
184
|
+
positions.push(TooltipPosition.BOTTOM);
|
|
185
|
+
}
|
|
186
|
+
if (availableLeft / availableWidth > 0.6) {
|
|
187
|
+
positions.push(TooltipPosition.LEFT);
|
|
188
|
+
}
|
|
189
|
+
else if (availableLeft / availableWidth < 0.4) {
|
|
190
|
+
positions.push(TooltipPosition.RIGHT);
|
|
191
|
+
}
|
|
192
|
+
position = positions.join("_");
|
|
193
|
+
}
|
|
194
|
+
const style = this.host.style;
|
|
195
|
+
if (!this.content) {
|
|
196
|
+
style.position = "absolute";
|
|
197
|
+
}
|
|
198
|
+
const offsetTop = boundingRect.top - relativeBoundingRect.top;
|
|
199
|
+
const offsetRight = boundingRect.right - relativeBoundingRect.right;
|
|
200
|
+
const offsetBottom = boundingRect.bottom - relativeBoundingRect.bottom;
|
|
201
|
+
const offsetLeft = boundingRect.left - relativeBoundingRect.left;
|
|
202
|
+
if (position === TooltipPosition.TOP ||
|
|
203
|
+
position === TooltipPosition.TOP_RIGHT ||
|
|
204
|
+
position === TooltipPosition.TOP_LEFT) {
|
|
205
|
+
style.top = "auto";
|
|
206
|
+
style.bottom = `${offsetBottom + boundingRect.height}px`;
|
|
207
|
+
}
|
|
208
|
+
if (position === TooltipPosition.BOTTOM ||
|
|
209
|
+
position === TooltipPosition.BOTTOM_RIGHT ||
|
|
210
|
+
position === TooltipPosition.BOTTOM_LEFT) {
|
|
211
|
+
style.top = `${offsetTop + boundingRect.height}px`;
|
|
212
|
+
style.bottom = "auto";
|
|
213
|
+
}
|
|
214
|
+
if (position === TooltipPosition.TOP ||
|
|
215
|
+
position === TooltipPosition.BOTTOM) {
|
|
216
|
+
style.left = `${offsetLeft +
|
|
217
|
+
(boundingRect.width / 2) -
|
|
218
|
+
(this.host.clientWidth / 2)}px`;
|
|
219
|
+
}
|
|
220
|
+
if (position === TooltipPosition.TOP_RIGHT ||
|
|
221
|
+
position === TooltipPosition.BOTTOM_RIGHT) {
|
|
222
|
+
style.right = "auto";
|
|
223
|
+
style.left = `${offsetLeft + boundingRect.width}px`;
|
|
224
|
+
}
|
|
225
|
+
if (position === TooltipPosition.TOP_LEFT ||
|
|
226
|
+
position === TooltipPosition.BOTTOM_LEFT) {
|
|
227
|
+
style.left = "auto";
|
|
228
|
+
style.right = `${offsetRight + boundingRect.width}px`;
|
|
229
|
+
}
|
|
230
|
+
if (position === TooltipPosition.RIGHT ||
|
|
231
|
+
position === TooltipPosition.LEFT) {
|
|
232
|
+
style.top = `${offsetTop +
|
|
233
|
+
(boundingRect.height / 2) -
|
|
234
|
+
(this.host.clientHeight / 2)}px`;
|
|
235
|
+
style.bottom = "auto";
|
|
236
|
+
}
|
|
237
|
+
if (position === TooltipPosition.RIGHT) {
|
|
238
|
+
style.right = "auto";
|
|
239
|
+
style.left = `${offsetLeft + boundingRect.width}px`;
|
|
240
|
+
}
|
|
241
|
+
if (position === TooltipPosition.LEFT) {
|
|
242
|
+
style.left = "auto";
|
|
243
|
+
style.right = `${offsetRight + boundingRect.width}px`;
|
|
244
|
+
}
|
|
245
|
+
this.position = position;
|
|
246
|
+
}
|
|
247
|
+
componentWillLoad() {
|
|
248
|
+
// Keep backward compatibility
|
|
249
|
+
if (this.content) {
|
|
250
|
+
this.open = true;
|
|
29
251
|
}
|
|
252
|
+
this.validateType(this.type);
|
|
253
|
+
this.onOpen();
|
|
30
254
|
}
|
|
31
255
|
render() {
|
|
32
256
|
if (this.content) {
|
|
33
|
-
return (h(
|
|
257
|
+
return (h(Host, { class: "legacy", position: this.type }, this.content));
|
|
34
258
|
}
|
|
35
|
-
return (h(
|
|
259
|
+
return (h(Host, { position: this.position }, h("slot", null)));
|
|
36
260
|
}
|
|
261
|
+
get host() { return getElement(this); }
|
|
262
|
+
static get watchers() { return {
|
|
263
|
+
"type": ["validateType"],
|
|
264
|
+
"position": ["onPositionChange"],
|
|
265
|
+
"open": ["onOpen"]
|
|
266
|
+
}; }
|
|
37
267
|
};
|
|
38
268
|
ZTooltip.style = stylesCss;
|
|
39
269
|
|