@zanichelli/delta_share 2.0.5 → 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-771eb01e.js → index-9ca7d5e5.js} +9 -0
- package/dist/wc/cjs/{license-activation_16.cjs.entry.js → license-activation_13.cjs.entry.js} +126 -483
- 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.js +5 -11
- package/dist/wc/custom-elements/index.js +8647 -1948
- 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-8c8c2605.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-f70f03be.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-ece80039.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-20c65209.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-165af99f.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-eee2d197.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-d68368aa.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-e8390258.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-f531a563.entry.js +1 -0
- 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-2fc5398d.js → index-b3a91e19.js} +9 -0
- package/dist/wc/esm/{license-activation_16.entry.js → license-activation_13.entry.js} +127 -481
- 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 +0 -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-01886650.entry.js +0 -1
- package/dist/wc/delta_share/p-04aac627.entry.js +0 -1
- package/dist/wc/delta_share/p-0712f9d3.entry.js +0 -1
- package/dist/wc/delta_share/p-16484902.entry.js +0 -1
- package/dist/wc/delta_share/p-21601525.entry.js +0 -1
- package/dist/wc/delta_share/p-235bcd66.entry.js +0 -1
- package/dist/wc/delta_share/p-28b46738.entry.js +0 -1
- package/dist/wc/delta_share/p-2eba2455.entry.js +0 -1
- package/dist/wc/delta_share/p-2ec1c7f6.entry.js +0 -1
- package/dist/wc/delta_share/p-34f2c21d.entry.js +0 -1
- package/dist/wc/delta_share/p-35f7bacb.entry.js +0 -1
- package/dist/wc/delta_share/p-3e244a3d.entry.js +0 -1
- package/dist/wc/delta_share/p-49c2342b.entry.js +0 -1
- package/dist/wc/delta_share/p-5363ac78.entry.js +0 -1
- package/dist/wc/delta_share/p-56331fcd.entry.js +0 -1
- package/dist/wc/delta_share/p-56cdbd95.entry.js +0 -1
- package/dist/wc/delta_share/p-5dd5dcba.entry.js +0 -1
- package/dist/wc/delta_share/p-5f995b84.entry.js +0 -1
- package/dist/wc/delta_share/p-63ce3cde.entry.js +0 -1
- package/dist/wc/delta_share/p-6523780b.entry.js +0 -1
- package/dist/wc/delta_share/p-69565c8e.entry.js +0 -1
- package/dist/wc/delta_share/p-69825d47.entry.js +0 -1
- package/dist/wc/delta_share/p-69dee729.entry.js +0 -1
- package/dist/wc/delta_share/p-7050a138.entry.js +0 -1
- package/dist/wc/delta_share/p-8025bbbe.entry.js +0 -1
- package/dist/wc/delta_share/p-80bc280b.entry.js +0 -3
- package/dist/wc/delta_share/p-80cd9ec1.entry.js +0 -1
- package/dist/wc/delta_share/p-83363ed1.entry.js +0 -1
- package/dist/wc/delta_share/p-8daed5d0.entry.js +0 -1
- package/dist/wc/delta_share/p-95b560f6.entry.js +0 -1
- package/dist/wc/delta_share/p-9ba5ddb4.js +0 -1
- package/dist/wc/delta_share/p-9dd299b2.js +0 -1
- package/dist/wc/delta_share/p-a65a76cb.entry.js +0 -1
- package/dist/wc/delta_share/p-b5e27e10.js +0 -1
- package/dist/wc/delta_share/p-b76e0aee.entry.js +0 -1
- package/dist/wc/delta_share/p-b8c95b08.entry.js +0 -1
- package/dist/wc/delta_share/p-cac71697.js +0 -1
- package/dist/wc/delta_share/p-e0160074.entry.js +0 -7
- package/dist/wc/delta_share/p-e1c8d36a.entry.js +0 -1
- package/dist/wc/delta_share/p-f8cddd5b.entry.js +0 -1
- package/dist/wc/delta_share/p-fb1885ec.js +0 -1
- package/dist/wc/delta_share/p-ffd4a20e.entry.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
package/dist/wc/cjs/{license-activation_16.cjs.entry.js → license-activation_13.cjs.entry.js}
RENAMED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-9ca7d5e5.js');
|
|
6
6
|
const _commonjsHelpers = require('./_commonjsHelpers-537d719a.js');
|
|
7
|
-
const index$1 = require('./index-
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
|
|
7
|
+
const index$1 = require('./index-9c6fd1db.js');
|
|
8
|
+
const icons = require('./icons-2aca6c75.js');
|
|
9
|
+
const utils = require('./utils-8a10bba9.js');
|
|
10
|
+
require('./breakpoints-a55736d0.js');
|
|
11
11
|
|
|
12
12
|
var DeviceEnum;
|
|
13
13
|
(function (DeviceEnum) {
|
|
@@ -1999,7 +1999,7 @@ const LicenseActivationForm = class {
|
|
|
1999
1999
|
? previewInputPlaceholder
|
|
2000
2000
|
: placeholder, status: this.variant === LicenseActivationVariantEnum.box
|
|
2001
2001
|
? null
|
|
2002
|
-
: inputStatus,
|
|
2002
|
+
: inputStatus, message: false, htmltitle: placeholder, disabled: !!this.requestLoading, onInputChange: (e) => this.handleFormInputChange(e.detail) }), this.renderInputMessage()));
|
|
2003
2003
|
}
|
|
2004
2004
|
renderInputMessage() {
|
|
2005
2005
|
const { inputMessage, inputStatus } = this.formTexts;
|
|
@@ -2014,13 +2014,9 @@ const LicenseActivationForm = class {
|
|
|
2014
2014
|
}
|
|
2015
2015
|
renderButton() {
|
|
2016
2016
|
const disabled = (this.variant === LicenseActivationVariantEnum.modal && !this.inputVal) ||
|
|
2017
|
-
!!this.requestLoading
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
renderButtonValue(variant, disabled = false) {
|
|
2021
|
-
const icon = this.getButtonIcon(variant);
|
|
2022
|
-
const label = this.getButtonLabel(variant);
|
|
2023
|
-
return (index.h("button", { slot: "element", disabled: disabled }, icon ? index.h("z-icon", { name: icon }) : null, label));
|
|
2017
|
+
!!this.requestLoading ||
|
|
2018
|
+
!this.enableButton;
|
|
2019
|
+
return (index.h("z-button", { variant: index$1.ButtonVariantEnum.primary, size: this.getButtonSize(this.variant), icon: this.getButtonIcon(this.variant), disabled: disabled, onClick: () => this.handleSubmitButtonClick(this.inputVal) }, this.getButtonLabel(this.variant)));
|
|
2024
2020
|
}
|
|
2025
2021
|
renderAdditionalDescription() {
|
|
2026
2022
|
const { additionalDescription } = this.formTexts;
|
|
@@ -2126,11 +2122,11 @@ const ZBody = class {
|
|
|
2126
2122
|
this.variant = "regular";
|
|
2127
2123
|
}
|
|
2128
2124
|
render() {
|
|
2129
|
-
return (index.h("z-typography", { component: this.component || "span", level: `b${this.level}`, variant: this.variant }, index.h("slot", null)));
|
|
2125
|
+
return (index.h("z-typography", { tabIndex: 0, component: this.component || "span", level: `b${this.level}`, variant: this.variant }, index.h("slot", null)));
|
|
2130
2126
|
}
|
|
2131
2127
|
};
|
|
2132
2128
|
|
|
2133
|
-
const stylesCss$
|
|
2129
|
+
const stylesCss$7 = ".sc-z-button-h{display:inline-block;--z-icon-width:16px;--z-icon-height:16px;--z-icon-right-margin:0}[disabled].sc-z-button-h:not([disabled=\"false\"]){pointer-events:none}.sc-z-button-h .container.sc-z-button{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:100%;padding:0;font-family:var(--font-family-sans);font-weight:var(--font-sb);font-size:14px;line-height:1;letter-spacing:0.3px;border-width:var(--border-size-medium);border-style:solid;border-radius:var(--border-radius);text-transform:uppercase;text-decoration:none;cursor:pointer;white-space:nowrap;outline:none;fill:currentColor}.sc-z-button-h .container.has-text.sc-z-button{min-width:calc(var(--space-unit) * 8);padding:0 calc(var(--space-unit) * 2)}.sc-z-button-h .container.has-text.sc-z-button z-icon.sc-z-button{--z-icon-right-margin:var(--space-unit)}.sc-z-button-h .big.sc-z-button{height:44px;min-width:44px}.sc-z-button-h .small.sc-z-button{height:36px;min-width:36px}.sc-z-button-h .x-small.sc-z-button{height:32px;min-width:32px}.sc-z-button-h .primary.sc-z-button{background-color:var(--color-primary01);border-color:var(--color-primary01);color:var(--color-text-inverse)}@media (hover: hover){.sc-z-button-h .primary.sc-z-button:hover{background-color:var(--color-hover-primary);border-color:var(--color-hover-primary);color:var(--color-text-inverse)}}.sc-z-button-h .container.sc-z-button:focus:focus-visible{box-shadow:var(--shadow-focus-primary)}.sc-z-button-h .primary.sc-z-button:active{background-color:var(--color-pressed-primary);border-color:var(--color-pressed-primary);color:var(--color-text-inverse);box-shadow:var(--shadow-2)}[disabled].sc-z-button-h:not([disabled=\"false\"]) .primary.sc-z-button{background-color:var(--color-disabled01);border-color:var(--color-disabled01);color:var(--color-disabled02)}.sc-z-button-h .secondary.sc-z-button{background-color:var(--color-surface01);border-color:var(--color-primary01);color:var(--color-primary01)}@media (hover: hover){.sc-z-button-h .secondary.sc-z-button:hover{background-color:var(--color-surface01);border-color:var(--color-hover-primary);color:var(--color-hover-primary)}}.sc-z-button-h .secondary.sc-z-button:active{background-color:var(--color-surface01);border-color:var(--color-pressed-primary);color:var(--color-pressed-primary);box-shadow:var(--shadow-2)}[disabled].sc-z-button-h:not([disabled=\"false\"]) .secondary.sc-z-button{background-color:var(--color-surface01);border-color:var(--color-disabled01);color:var(--color-disabled02)}.sc-z-button-h .tertiary.sc-z-button{background-color:transparent;border-color:transparent;color:var(--color-primary01)}@media (hover: hover){.sc-z-button-h .tertiary.sc-z-button:hover{background-color:var(--color-primary03);border-color:var(--color-primary03);color:var(--color-hover-primary)}}.sc-z-button-h .tertiary.sc-z-button:focus:focus-visible{background-color:var(--color-surface01);border-color:var(--color-surface01);color:var(--color-primary01)}.sc-z-button-h .tertiary.sc-z-button:active{background-color:var(--color-surface01);border-color:var(--color-surface01);color:var(--color-primary01);box-shadow:var(--shadow-2)}[disabled].sc-z-button-h:not([disabled=\"false\"]) .tertiary.sc-z-button{background-color:transparent;border-color:transparent;color:var(--color-disabled02)}";
|
|
2134
2130
|
|
|
2135
2131
|
const ZButton = class {
|
|
2136
2132
|
constructor(hostRef) {
|
|
@@ -2139,72 +2135,41 @@ const ZButton = class {
|
|
|
2139
2135
|
this.disabled = false;
|
|
2140
2136
|
/** HTML button type attribute. */
|
|
2141
2137
|
this.type = index$1.ButtonTypeEnum.button;
|
|
2142
|
-
/** Graphical variant: `primary`, `secondary
|
|
2138
|
+
/** Graphical variant: `primary`, `secondary`, `tertiary`. Defaults to `primary`. */
|
|
2143
2139
|
this.variant = index$1.ButtonVariantEnum.primary;
|
|
2144
2140
|
/** Available sizes: `big`, `small` and `x-small`. Defaults to `big`. */
|
|
2145
2141
|
this.size = index$1.ButtonSizeEnum.big;
|
|
2146
|
-
/** Reduce button size (deprecated).
|
|
2147
|
-
*
|
|
2148
|
-
* @deprecated Use `size` prop.
|
|
2149
|
-
* */
|
|
2150
|
-
this.issmall = false;
|
|
2151
|
-
/** Spy to render square button. */
|
|
2152
|
-
this.square = false;
|
|
2153
2142
|
}
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
constructor(hostRef) {
|
|
2166
|
-
index.registerInstance(this, hostRef);
|
|
2167
|
-
this.removefilter = index.createEvent(this, "removefilter", 7);
|
|
2168
|
-
/** disable action on button */
|
|
2169
|
-
this.isfixed = false;
|
|
2170
|
-
/** add icon to button */
|
|
2171
|
-
this.hasicon = true;
|
|
2172
|
-
/** reduce button size (optional) */
|
|
2173
|
-
this.issmall = false;
|
|
2174
|
-
this.handleRemovingFilterClick = this.handleRemovingFilterClick.bind(this);
|
|
2175
|
-
}
|
|
2176
|
-
handleRemovingFilterClick() {
|
|
2177
|
-
this.removefilter.emit({
|
|
2178
|
-
filterid: this.filterid
|
|
2179
|
-
});
|
|
2180
|
-
}
|
|
2181
|
-
renderFixedPillow(filtername) {
|
|
2182
|
-
return (index.h("button", { class: "container" }, this.hasicon && (index.h("z-icon", { class: "close-icon-container", name: "multiply", height: 12, width: 12 })), index.h("span", { class: "text-container" }, filtername)));
|
|
2183
|
-
}
|
|
2184
|
-
renderDynamicPillow(filtername) {
|
|
2185
|
-
return (index.h("button", { class: `container isactive ${this.issmall ? "small" : ""}`, onClick: this.handleRemovingFilterClick }, this.hasicon && (index.h("z-icon", { class: "close-icon-container", name: "multiply", height: 12, width: 12 })), index.h("span", { class: "text-container" }, filtername)));
|
|
2143
|
+
getAttributes() {
|
|
2144
|
+
return {
|
|
2145
|
+
id: this.htmlid,
|
|
2146
|
+
"aria-label": this.ariaLabel,
|
|
2147
|
+
class: {
|
|
2148
|
+
container: true,
|
|
2149
|
+
[this.variant]: true,
|
|
2150
|
+
[this.size]: true,
|
|
2151
|
+
"has-text": !!this.hostElement.textContent
|
|
2152
|
+
}
|
|
2153
|
+
};
|
|
2186
2154
|
}
|
|
2187
2155
|
render() {
|
|
2188
|
-
if (this.
|
|
2189
|
-
return this.
|
|
2156
|
+
if (this.href) {
|
|
2157
|
+
return (index.h("a", Object.assign({}, this.getAttributes(), { href: this.href, target: this.target }), this.icon && index.h("z-icon", { name: this.icon, width: 16, height: 16 }), index.h("slot", null)));
|
|
2190
2158
|
}
|
|
2191
|
-
return this.
|
|
2159
|
+
return (index.h("button", Object.assign({}, this.getAttributes(), { name: this.name, type: this.type, disabled: this.disabled }), this.icon && index.h("z-icon", { name: this.icon, width: 16, height: 16 }), index.h("slot", null)));
|
|
2192
2160
|
}
|
|
2161
|
+
get hostElement() { return index.getElement(this); }
|
|
2193
2162
|
};
|
|
2194
|
-
|
|
2163
|
+
ZButton.style = stylesCss$7;
|
|
2195
2164
|
|
|
2196
|
-
const stylesCss$
|
|
2165
|
+
const stylesCss$6 = ":host{line-height:0;vertical-align:middle;margin-right:var(--z-icon-right-margin, 0);margin-left:var(--z-icon-left-margin, 0)}:host svg:not([width]){width:var(--z-icon-width, 18px)}:host svg:not([height]){height:var(--z-icon-height, 18px)}";
|
|
2197
2166
|
|
|
2198
2167
|
const ZIcon = class {
|
|
2199
2168
|
constructor(hostRef) {
|
|
2200
2169
|
index.registerInstance(this, hostRef);
|
|
2201
|
-
/** icon height (optional) */
|
|
2202
|
-
this.height = 18;
|
|
2203
|
-
/** icon width (optional) */
|
|
2204
|
-
this.width = 18;
|
|
2205
2170
|
}
|
|
2206
2171
|
selectPathOrPolygon(iconName) {
|
|
2207
|
-
if (iconName && iconName.startsWith(
|
|
2172
|
+
if (iconName && iconName.startsWith("M")) {
|
|
2208
2173
|
return index.h("path", { d: icons.icons[this.name] });
|
|
2209
2174
|
}
|
|
2210
2175
|
else {
|
|
@@ -2212,12 +2177,12 @@ const ZIcon = class {
|
|
|
2212
2177
|
}
|
|
2213
2178
|
}
|
|
2214
2179
|
render() {
|
|
2215
|
-
return (index.h("svg", { viewBox: "0 0 1000 1000", width: this.width, height: this.height, id: this.iconid }, this.selectPathOrPolygon(icons.icons[this.name])));
|
|
2180
|
+
return (index.h("svg", { viewBox: "0 0 1000 1000", width: this.width, height: this.height, id: this.iconid, fill: this.fill ? `var(--${this.fill})` : "" }, this.selectPathOrPolygon(icons.icons[this.name])));
|
|
2216
2181
|
}
|
|
2217
2182
|
};
|
|
2218
|
-
ZIcon.style = stylesCss$
|
|
2183
|
+
ZIcon.style = stylesCss$6;
|
|
2219
2184
|
|
|
2220
|
-
const stylesCss$
|
|
2185
|
+
const stylesCss$5 = ":host{font-family:var(--dashboard-font);font-weight:var(--font-rg)}:host>div{background:var(--accent-lighter);padding:calc(var(--space-unit) * 2);border-radius:var(--border-radius);display:flex;width:inherit}:host>div>slot{color:var(--text-grey-800);font-size:14px}:host>div>z-icon{fill:var(--myz-blue);cursor:pointer;margin-left:calc(var(--space-unit) * 2)}";
|
|
2221
2186
|
|
|
2222
2187
|
const ZInfoBox = class {
|
|
2223
2188
|
constructor(hostRef) {
|
|
@@ -2233,9 +2198,9 @@ const ZInfoBox = class {
|
|
|
2233
2198
|
return (index.h("div", { id: this.boxid }, index.h("slot", { name: "content" }), this.isclosable && index.h("z-icon", { name: "multiply", "data-action": "infoBoxClose", onClick: () => this.emitInfoBoxClose() })));
|
|
2234
2199
|
}
|
|
2235
2200
|
};
|
|
2236
|
-
ZInfoBox.style = stylesCss$
|
|
2201
|
+
ZInfoBox.style = stylesCss$5;
|
|
2237
2202
|
|
|
2238
|
-
const stylesCss$6 = ".sc-z-input-h{display:inline-block;width:inherit}.sc-z-input-h input.sc-z-input::-ms-clear,.sc-z-input-h input.sc-z-input::-ms-reveal{display:none}.sc-z-input-h input.sc-z-input,.sc-z-input-h textarea.sc-z-input,.sc-z-input-h ul[role=\"listbox\"].sc-z-input{background:var(--bg-white);border-radius:0px;border:var(--border-size-small) solid var(--bg-grey-200);border-color:var(--bg-grey-200);box-sizing:border-box;color:var(--text-grey-800);fill:var(--text-grey-800);font-family:var(--dashboard-font);font-weight:var(--font-rg);font-size:16px;outline:none}.sc-z-input-h .filled.sc-z-input{border-color:var(--text-grey-800) !important}.sc-z-input-h input.sc-z-input:focus,.sc-z-input-h ul[role=\"listbox\"].closed.sc-z-input:focus,.sc-z-input-h li[role=\"option\"].sc-z-input:focus,.sc-z-input-h .focus.sc-z-input{border-color:transparent;box-shadow:0 0 2px 2px var(--accent-dark);outline:none}.sc-z-input-h input.sc-z-input:hover,.sc-z-input-h textarea.sc-z-input:hover,.sc-z-input-h ul[role=\"listbox\"].closed.sc-z-input:hover,.sc-z-input-h .hover.sc-z-input{background:var(--bg-grey-050) !important;border-color:var(--text-grey-800) !important}.sc-z-input-h input[readonly].sc-z-input,.sc-z-input-h .readonly.sc-z-input,.sc-z-input-h input[readonly].filled.sc-z-input,.sc-z-input-h .readonly.filled.sc-z-input,.sc-z-input-h ul[role=\"listbox\"].closed.readonly.sc-z-input{border-color:var(--text-grey-200) !important;color:var(--text-grey-800) !important;pointer-events:none}.sc-z-input-h input[readonly].sc-z-input:hover,.sc-z-input-h textarea[readonly].sc-z-input:hover,.sc-z-input-h .readonly.hover.sc-z-input,.sc-z-input-h ul[role=\"listbox\"].closed[readonly].sc-z-input:hover{background:var(--bg-white)}.sc-z-input-h input.sc-z-input:disabled,.sc-z-input-h .disabled.sc-z-input,.sc-z-input-h .filled.sc-z-input:disabled,.sc-z-input-h input.sc-z-input:disabled:hover,.sc-z-input-h textarea.sc-z-input:disabled:hover,.sc-z-input-h .disabled.hover.sc-z-input,.sc-z-input-h ul[role=\"listbox\"].closed.disabled.sc-z-input,.sc-z-input-h ul[role=\"listbox\"].closed.disabled.sc-z-input:hover{background:var(--bg-white) !important;border-color:var(--bg-grey-200) !important;box-shadow:none !important;color:var(--text-grey-700) !important;fill:var(--bg-grey-200) !important;pointer-events:none}.sc-z-input-h .input_success.sc-z-input,.sc-z-input-h .input_success.sc-z-input:hover,.sc-z-input-h .input_success.hover.sc-z-input{background:var(--status-success-green-lighter) !important;border-color:var(--status-success-green) !important}.sc-z-input-h .input_error.sc-z-input,.sc-z-input-h .input_error.sc-z-input:hover,.sc-z-input-h .input_error.hover.sc-z-input{background:var(--status-error-red-lighter) !important;border-color:var(--status-error-red) !important}.sc-z-input-h .input_warning.sc-z-input,.sc-z-input-h .input_warning.sc-z-input:hover,.sc-z-input-h .input_warning.hover.sc-z-input{background:var(--status-warning-yellow-lighter) !important;border-color:var(--status-warning-yellow) !important}.sc-z-input-h .input_selecting.sc-z-input,.sc-z-input-h .input_selecting.sc-z-input:hover,.sc-z-input-h input[readonly].input_selecting.sc-z-input,.sc-z-input-h input[readonly].input_selecting.sc-z-input:hover{border-color:var(--myz-blue) !important;box-shadow:0 0 0 0 transparent !important;color:var(--myz-blue) !important}.sc-z-input-h input.sc-z-input:focus.istyping,.sc-z-input-h .focus.istyping.sc-z-input{border-color:var(--myz-blue) !important;box-shadow:var(--shadow-0);color:var(--myz-blue)}.sc-z-input-h input.sc-z-input::placeholder,.sc-z-input-h textarea.sc-z-input::placeholder{color:var(--text-grey-700)}.sc-z-input::-webkit-input-placeholder,.sc-z-input::-webkit-textarea-placeholder{color:var(--text-grey-700)}.sc-z-input:-ms-input-placeholder,.sc-z-input:-ms-textarea-placeholder{color:var(--text-grey-700)}.sc-z-input::-moz-placeholder{color:var(--text-grey-700)}.sc-z-input:-moz-placeholder{color:var(--text-grey-700)}.sc-z-input-h>div.textWrapper.sc-z-input>div.sc-z-input{fill:var(--text-grey-800)}.sc-z-input-h>div.textWrapper.sc-z-input>div.sc-z-input>input.sc-z-input{height:44px;width:100%;margin:0;padding:0 calc(var(--space-unit) * 4.5) 0 calc(var(--space-unit) * 1.5);box-sizing:border-box}.sc-z-input-h>div.textWrapper.sc-z-input>div.sc-z-input>input.hasIcon.sc-z-input,.sc-z-input-h>div.textWrapper.sc-z-input>div.sc-z-input>input.hasClearIcon.sc-z-input{padding-right:calc(var(--space-unit) * 4)}.sc-z-input-h>div.textWrapper.sc-z-input>div.sc-z-input>input.hasIcon.hasClearIcon.sc-z-input{padding-right:calc(var(--space-unit) * 7)}.sc-z-input-h>div.textWrapper.sc-z-input>div.sc-z-input{position:relative;z-index:1}.sc-z-input-h>div.textWrapper.sc-z-input>div.sc-z-input>span.iconsWrapper.sc-z-input{position:absolute;bottom:calc(var(--space-unit) * 1.5);right:calc(var(--space-unit) * 1.5);z-index:2;height:18px;display:flex}.sc-z-input-h>div.textWrapper.sc-z-input>div.sc-z-input>span.iconsWrapper.sc-z-input>z-icon.sc-z-input{display:block;height:18px;width:18px;margin-left:calc(var(--space-unit) * 0.5)}.sc-z-input-h>div.textWrapper.sc-z-input>div.sc-z-input>span.iconsWrapper.sc-z-input>z-icon.resetIcon.sc-z-input{cursor:pointer}.sc-z-input-h>div.textWrapper.sc-z-input>div.sc-z-input>input.sc-z-input:-webkit-autofill,.sc-z-input-h>div.textWrapper.sc-z-input>div.sc-z-input>input.sc-z-input:-webkit-autofill:hover,.sc-z-input-h>div.textWrapper.sc-z-input>div.sc-z-input>input.sc-z-input:-webkit-autofill:focus,.sc-z-input-h>div.textWrapper.sc-z-input>div.sc-z-input>input.sc-z-input:-webkit-autofill:active{-webkit-background-clip:text !important}.sc-z-input-h>div.textWrapper.sc-z-input>div.sc-z-input>div.textareaWrapper.sc-z-input{background:var(--bg-white);border:var(--border-size-small) solid var(--bg-grey-200);padding:calc(var(--space-unit) * 1.5)}.sc-z-input-h>div.textWrapper.sc-z-input>div.sc-z-input>div.textareaWrapper.sc-z-input>textarea.sc-z-input{min-height:132px;width:100%;margin:0;padding:0;resize:none;scrollbar-width:thin;scrollbar-color:var(--myz-blue) var(--bg-grey-200);border-color:transparent}.sc-z-input-h>div.textWrapper.sc-z-input>div.sc-z-input>div.textareaWrapper.sc-z-input>textarea.sc-z-input:hover{border-color:transparent !important}.sc-z-input-h>div.textWrapper.sc-z-input>div.sc-z-input>div.textareaWrapper.sc-z-input>textarea.filled.sc-z-input,.sc-z-input-h>div.textWrapper.sc-z-input>div.sc-z-input>div.textareaWrapper.sc-z-input>textarea.input_success.sc-z-input,.sc-z-input-h>div.textWrapper.sc-z-input>div.sc-z-input>div.textareaWrapper.sc-z-input>textarea.input_warning.sc-z-input,.sc-z-input-h>div.textWrapper.sc-z-input>div.sc-z-input>div.textareaWrapper.sc-z-input>textarea.input_error.sc-z-input{border:none}.sc-z-input-h>div.textWrapper.sc-z-input>div.sc-z-input>div.textareaWrapper.input_success.disabled.sc-z-input,.sc-z-input-h>div.textWrapper.sc-z-input>div.sc-z-input>div.textareaWrapper.input_warning.disabled.sc-z-input,.sc-z-input-h>div.textWrapper.sc-z-input>div.sc-z-input>div.textareaWrapper.input_error.disabled.sc-z-input{background:var(--bg-white) !important;border-color:var(--bg-grey-200) !important}.sc-z-input-h>div.textWrapper.sc-z-input>div.sc-z-input>div.textareaWrapper.sc-z-input>textarea.istyping.sc-z-input{color:var(--myz-blue)}.sc-z-input::-webkit-scrollbar{background:linear-gradient(\n 90deg,\n var(--bg-white) 2px,\n var(--bg-grey-200) 4px,\n var(--bg-white) 8px\n );border-radius:var(--border-radius);width:10px;margin-right:20px;padding-right:20px}.sc-z-input::-webkit-scrollbar-thumb{background-color:var(--myz-blue);border-radius:var(--border-radius);width:10px;margin-right:20px;padding:20px}.sc-z-input-h>.checkboxWrapper.sc-z-input{display:inline-block;font-family:var(--dashboard-font);font-weight:var(--font-rg);font-size:inherit;position:relative}.sc-z-input-h>.checkboxWrapper.sc-z-input>input[type=\"checkbox\"].sc-z-input{opacity:0;position:absolute;z-index:0}.sc-z-input-h label.sc-z-input{display:block}.sc-z-input-h label.disabledLabel.sc-z-input{color:var(--text-grey-700)}.sc-z-input-h>.checkboxWrapper.sc-z-input>label.checkboxLabel.sc-z-input{display:inline-flex;line-height:16px;color:inherit;font-family:inherit;font-weight:inherit;font-size:inherit;text-transform:inherit;margin:0}.sc-z-input-h>.checkboxWrapper.sc-z-input>label.checkboxLabel.after.sc-z-input{flex-direction:row}.sc-z-input-h>.checkboxWrapper.sc-z-input>label.checkboxLabel.before.sc-z-input{flex-direction:row-reverse}.sc-z-input-h>.checkboxWrapper.sc-z-input>label.checkboxLabel.after.sc-z-input>span.sc-z-input{margin-left:var(--space-unit)}.sc-z-input-h>.checkboxWrapper.sc-z-input>label.checkboxLabel.before.sc-z-input>span.sc-z-input{margin-right:var(--space-unit)}.sc-z-input-h>.checkboxWrapper.sc-z-input>label.checkboxLabel.sc-z-input>z-icon.sc-z-input{fill:var(--myz-blue);height:18px;width:18px}.sc-z-input-h>.checkboxWrapper.sc-z-input>input[type=\"checkbox\"].sc-z-input:focus+label.checkboxLabel.sc-z-input>z-icon.sc-z-input{box-shadow:0 0 2px 2px var(--accent-dark);border-radius:2px}.sc-z-input-h>.checkboxWrapper.sc-z-input>input[type=\"checkbox\"].sc-z-input:disabled+label.checkboxLabel.sc-z-input>z-icon.sc-z-input{fill:var(--bg-grey-700);cursor:default}.sc-z-input-h>.checkboxWrapper.sc-z-input>input[type=\"checkbox\"][readonly].sc-z-input+label.checkboxLabel.sc-z-input>z-icon.sc-z-input{fill:var(--bg-grey-800);pointer-events:none;cursor:default}.sc-z-input-h>.radioWrapper.sc-z-input{display:inline-block;font-family:var(--dashboard-font);font-weight:var(--font-rg);font-size:inherit;position:relative}.sc-z-input-h>.radioWrapper.sc-z-input>input[type=\"radio\"].sc-z-input{opacity:0;position:absolute;z-index:0}.sc-z-input-h label.sc-z-input{display:block}.sc-z-input-h label.disabledLabel.sc-z-input{color:var(--text-grey-700)}.sc-z-input-h>.radioWrapper.sc-z-input>label.radioLabel.sc-z-input{display:inline-flex;line-height:16px;color:inherit;font-family:inherit;font-weight:inherit;font-size:inherit;text-transform:inherit;margin:0}.sc-z-input-h>.radioWrapper.sc-z-input>label.radioLabel.after.sc-z-input{flex-direction:row}.sc-z-input-h>.radioWrapper.sc-z-input>label.radioLabel.before.sc-z-input{flex-direction:row-reverse}.sc-z-input-h>.radioWrapper.sc-z-input>label.radioLabel.after.sc-z-input>span.sc-z-input{margin-left:var(--space-unit)}.sc-z-input-h>.radioWrapper.sc-z-input>label.radioLabel.before.sc-z-input>span.sc-z-input{margin-right:var(--space-unit)}.sc-z-input-h>.radioWrapper.sc-z-input>label.radioLabel.sc-z-input>z-icon.sc-z-input{fill:var(--myz-blue);height:18px;width:18px}.sc-z-input-h>.radioWrapper.sc-z-input>input[type=\"radio\"].sc-z-input:focus+label.radioLabel.sc-z-input>z-icon.sc-z-input{box-shadow:0 0 2px 2px var(--accent-dark);border-radius:50%}.sc-z-input-h>.radioWrapper.sc-z-input>input[type=\"radio\"].sc-z-input:disabled+label.radioLabel.sc-z-input>z-icon.sc-z-input{fill:var(--bg-grey-700);cursor:default}.sc-z-input-h>.radioWrapper.sc-z-input>input[type=\"radio\"][readonly].sc-z-input+label.radioLabel.sc-z-input>z-icon.sc-z-input{fill:var(--bg-grey-800);pointer-events:none;cursor:default}";
|
|
2203
|
+
const stylesCss$4 = ".sc-z-input-h{display:inline-block;width:inherit}input.sc-z-input::-ms-clear,input.sc-z-input::-ms-reveal{display:none}.sc-z-input-h input.sc-z-input::-ms-clear,.sc-z-input-h input.sc-z-input::-ms-reveal{display:none}input.sc-z-input,textarea.sc-z-input,.textareaWrapper.sc-z-input{background:var(--color-input-field01);border-radius:var(--border-radius-small);border:var(--border-size-small) solid var(--color-surface04);box-sizing:border-box;color:var(--color-text02);fill:var(--color-icon02);font-family:var(--font-family-sans);font-weight:var(--font-rg);font-size:var(--font-size-3);outline:none}input.sc-z-input:focus:focus-visible,.textareaWrapper.sc-z-input:focus-within{box-shadow:var(--shadow-focus-primary)}input.sc-z-input:focus:focus-visible,textarea.sc-z-input:focus:focus-visible{color:var(--color-primary01)}.filled.sc-z-input{border-color:var(--color-surface05)}.input_success.sc-z-input{background:var(--color-success-inverse);border-color:var(--color-success01);fill:var(--color-success01)}.input_error.sc-z-input{background:var(--color-error-inverse);border-color:var(--color-error01);fill:var(--color-error01)}.input_warning.sc-z-input{background:var(--color-warning-inverse);border-color:var(--color-warning01);fill:var(--color-warning01)}input.sc-z-input:hover,.textareaWrapper.sc-z-input:hover{border-width:var(--border-size-medium)}input[readonly].sc-z-input,.readonly.sc-z-input{border-color:var(--color-disabled01);fill:var(--color-disabled01);pointer-events:none}[disabled].sc-z-input-h:not([disabled=\"false\"]) input.sc-z-input,[disabled].sc-z-input-h:not([disabled=\"false\"]) .textareaWrapper.sc-z-input,[disabled].sc-z-input-h:not([disabled=\"false\"]) z-icon.sc-z-input{border-color:var(--color-disabled01);color:var(--color-disabled02);fill:var(--color-disabled01);pointer-events:none;box-shadow:none}[disabled].sc-z-input-h:not([disabled=\"false\"]) input.sc-z-input:hover{border-width:var(--border-size-small)}input.sc-z-input::placeholder,textarea.sc-z-input::placeholder{color:var(--color-text05)}.sc-z-input::-webkit-input-placeholder,.sc-z-input::-webkit-textarea-placeholder{color:var(--color-text05)}.sc-z-input:-ms-input-placeholder,.sc-z-input:-ms-textarea-placeholder{color:var(--color-text05)}.sc-z-input::-moz-placeholder{color:var(--color-text05)}.sc-z-input:-moz-placeholder{color:var(--color-text05)}label.inputLabel.sc-z-input{display:block;margin-bottom:var(--space-unit);color:var(--color-text02);font-family:var(--font-family-sans);text-transform:uppercase;text-align:left}[disabled].sc-z-input-h:not([disabled=\"false\"]) label.inputLabel.sc-z-input{color:var(--color-disabled02)}.textWrapper.sc-z-input>div.sc-z-input{fill:var(--color-icon02)}.textWrapper.sc-z-input>div.sc-z-input>input.sc-z-input{width:100%;height:calc(var(--space-unit) * 5.5);margin:0;padding:0 calc(var(--space-unit) * 1.5);box-sizing:border-box}.textWrapper.sc-z-input>div.sc-z-input>input.hasIcon.sc-z-input,.textWrapper.sc-z-input>div.sc-z-input>input.hasClearIcon.sc-z-input{padding-right:calc(var(--space-unit) * 5.25)}.textWrapper.sc-z-input>div.sc-z-input>input.hasIcon.hasClearIcon.sc-z-input{padding-right:calc(var(--space-unit) * 8)}.textWrapper.sc-z-input>div.sc-z-input{position:relative;z-index:1}.textWrapper.sc-z-input .iconsWrapper.sc-z-input{position:absolute;right:calc(var(--space-unit) * 1.5);top:50%;transform:translateY(-50%);display:flex;z-index:2;pointer-events:none}.textWrapper.sc-z-input .iconsWrapper.sc-z-input>button.iconButton.sc-z-input{background:none;color:inherit;border:0;padding:0;font:inherit;pointer-events:initial}.textWrapper.sc-z-input .iconsWrapper.sc-z-input>button.iconButton.sc-z-input+button.iconButton.sc-z-input{margin-left:calc(var(--space-unit) * 0.5)}.textWrapper.sc-z-input .iconsWrapper.sc-z-input>button.iconButton.resetIcon.sc-z-input,.textWrapper.sc-z-input .iconsWrapper.sc-z-input>button.iconButton.showHidePasswordIcon.sc-z-input{cursor:pointer}.textWrapper.sc-z-input .iconsWrapper.sc-z-input>button.iconButton.sc-z-input>z-icon.sc-z-input{--z-icon-width:18px;--z-icon-height:18px;display:block}.textWrapper.sc-z-input>div.sc-z-input>input.sc-z-input:-webkit-autofill,.textWrapper.sc-z-input>div.sc-z-input>input.sc-z-input:-webkit-autofill:hover,.textWrapper.sc-z-input>div.sc-z-input>input.sc-z-input:-webkit-autofill:focus,.textWrapper.sc-z-input>div.sc-z-input>input.sc-z-input:-webkit-autofill:active{-webkit-background-clip:text !important}.textareaWrapper.sc-z-input{padding:calc(var(--space-unit) * 1.5);scrollbar-color:var(--color-primary01) transparent}textarea.sc-z-input::-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)}textarea.sc-z-input::-webkit-scrollbar-track{background-color:transparent}textarea.sc-z-input::-webkit-scrollbar-thumb{width:10px;background-color:var(--color-primary01);border-radius:var(--border-radius)}textarea.sc-z-input::-webkit-scrollbar-thumb:hover{background-color:var(--color-hover-primary)}textarea.sc-z-input{min-height:132px;width:100%;margin:0;padding:0;border:none;resize:none}.radioWrapper.sc-z-input,.checkboxWrapper.sc-z-input{display:inline-flex;flex-direction:row;align-items:center;font-family:var(--font-family-sans);position:relative;color:var(--color-text01);fill:var(--color-primary01)}.radioWrapper.sc-z-input:hover,.checkboxWrapper.sc-z-input:hover{color:var(--color-hover-primary);fill:currentColor}.radioWrapper.sc-z-input>input.sc-z-input,.checkboxWrapper.sc-z-input>input.sc-z-input{position:absolute;opacity:0;z-index:-1;pointer-events:none}.radioWrapper.sc-z-input .radioLabel.sc-z-input,.checkboxWrapper.sc-z-input .checkboxLabel.sc-z-input{display:inline-flex;align-items:center;margin:0;line-height:1;color:inherit;font-family:inherit;font-weight:inherit;font-size:inherit;text-transform:inherit}.radioWrapper.sc-z-input input.sc-z-input:not(:disabled)+.radioLabel.sc-z-input,.checkboxWrapper.sc-z-input input.sc-z-input:not(:disabled)+.checkboxLabel.sc-z-input{cursor:pointer}.radioWrapper.sc-z-input .radioLabel.sc-z-input z-icon.sc-z-input,.checkboxWrapper.sc-z-input .checkboxLabel.sc-z-input z-icon.sc-z-input{fill:inherit;cursor:pointer}.radioWrapper.sc-z-input .radioLabel.after.sc-z-input,.checkboxWrapper.sc-z-input .checkboxLabel.after.sc-z-input{flex-direction:row}.radioWrapper.sc-z-input .radioLabel.before.sc-z-input,.checkboxWrapper.sc-z-input .checkboxLabel.before.sc-z-input{flex-direction:row-reverse}.radioWrapper.sc-z-input .radioLabel.after.sc-z-input>span.sc-z-input,.checkboxWrapper.sc-z-input .checkboxLabel.after.sc-z-input>span.sc-z-input{margin-left:var(--space-unit)}.radioWrapper.sc-z-input .radioLabel.before.sc-z-input>span.sc-z-input,.checkboxWrapper.sc-z-input .checkboxLabel.before.sc-z-input>span.sc-z-input{margin-right:var(--space-unit)}.radioWrapper.sc-z-input>input.sc-z-input:focus:focus-visible+.radioLabel.sc-z-input>z-icon.sc-z-input,.checkboxWrapper.sc-z-input>input.sc-z-input:focus:focus-visible+.checkboxLabel.sc-z-input>z-icon.sc-z-input{box-shadow:var(--shadow-focus-primary);border-radius:var(--border-radius-small)}.radioWrapper.sc-z-input>input.sc-z-input:disabled+.radioLabel.sc-z-input,.checkboxWrapper.sc-z-input>input.sc-z-input:disabled+.checkboxLabel.sc-z-input{color:var(--color-disabled02)}.radioWrapper.sc-z-input>input.sc-z-input:disabled+.radioLabel.sc-z-input>z-icon.sc-z-input,.checkboxWrapper.sc-z-input>input.sc-z-input:disabled+.checkboxLabel.sc-z-input>z-icon.sc-z-input{fill:var(--color-disabled01);cursor:default}";
|
|
2239
2204
|
|
|
2240
2205
|
const ZInput = class {
|
|
2241
2206
|
constructor(hostRef) {
|
|
@@ -2244,9 +2209,8 @@ const ZInput = class {
|
|
|
2244
2209
|
this.startTyping = index.createEvent(this, "startTyping", 7);
|
|
2245
2210
|
this.stopTyping = index.createEvent(this, "stopTyping", 7);
|
|
2246
2211
|
this.inputCheck = index.createEvent(this, "inputCheck", 7);
|
|
2247
|
-
this.optionSelect = index.createEvent(this, "optionSelect", 7);
|
|
2248
2212
|
/** the id of the input element */
|
|
2249
|
-
this.htmlid = utils.randomId()
|
|
2213
|
+
this.htmlid = `id-${utils.randomId()}`;
|
|
2250
2214
|
/** the input is disabled */
|
|
2251
2215
|
this.disabled = false;
|
|
2252
2216
|
/** the input is readonly */
|
|
@@ -2255,20 +2219,15 @@ const ZInput = class {
|
|
|
2255
2219
|
this.required = false;
|
|
2256
2220
|
/** checked: available for checkbox, radio */
|
|
2257
2221
|
this.checked = false;
|
|
2258
|
-
/**
|
|
2259
|
-
this.
|
|
2222
|
+
/** input helper message (optional): available for text, password, number, email, textarea - if set to `false` message won't be displayed */
|
|
2223
|
+
this.message = true;
|
|
2260
2224
|
/** the input label position: available for checkbox, radio */
|
|
2261
|
-
this.
|
|
2262
|
-
/** timeout setting before trigger `inputChange` event (optional): available for text, textarea */
|
|
2263
|
-
this.typingtimeout = 300;
|
|
2264
|
-
/** multiple options can be selected (optional): available for select */
|
|
2265
|
-
this.multiple = false;
|
|
2225
|
+
this.labelPosition = index$1.LabelPositions.right;
|
|
2266
2226
|
/** render clear icon when typing (optional): available for text */
|
|
2267
2227
|
this.hasclearicon = true;
|
|
2268
2228
|
this.isTyping = false;
|
|
2269
|
-
this.textareaWrapperHover = "";
|
|
2270
|
-
this.textareaWrapperFocus = "";
|
|
2271
2229
|
this.passwordHidden = true;
|
|
2230
|
+
this.typingtimeout = 300;
|
|
2272
2231
|
}
|
|
2273
2232
|
inputCheckListener(e) {
|
|
2274
2233
|
const data = e.detail;
|
|
@@ -2283,27 +2242,6 @@ const ZInput = class {
|
|
|
2283
2242
|
return;
|
|
2284
2243
|
}
|
|
2285
2244
|
}
|
|
2286
|
-
/** get the input value */
|
|
2287
|
-
async getValue() {
|
|
2288
|
-
switch (this.type) {
|
|
2289
|
-
case index$1.InputTypeEnum.select:
|
|
2290
|
-
return this.selectElem.getValue();
|
|
2291
|
-
default:
|
|
2292
|
-
return this.value;
|
|
2293
|
-
}
|
|
2294
|
-
}
|
|
2295
|
-
/** set the input value */
|
|
2296
|
-
async setValue(value) {
|
|
2297
|
-
switch (this.type) {
|
|
2298
|
-
case index$1.InputTypeEnum.select:
|
|
2299
|
-
this.selectElem.setValue(value);
|
|
2300
|
-
break;
|
|
2301
|
-
default:
|
|
2302
|
-
if (typeof value === "string")
|
|
2303
|
-
this.value = value;
|
|
2304
|
-
break;
|
|
2305
|
-
}
|
|
2306
|
-
}
|
|
2307
2245
|
/** get checked status */
|
|
2308
2246
|
async isChecked() {
|
|
2309
2247
|
switch (this.type) {
|
|
@@ -2311,13 +2249,13 @@ const ZInput = class {
|
|
|
2311
2249
|
case index$1.InputTypeEnum.radio:
|
|
2312
2250
|
return this.checked;
|
|
2313
2251
|
default:
|
|
2252
|
+
console.warn("`isChecked` method is only available for type `checkbox` and `radio`");
|
|
2314
2253
|
return false;
|
|
2315
2254
|
}
|
|
2316
2255
|
}
|
|
2317
|
-
emitInputChange(value
|
|
2318
|
-
if (!this.isTyping)
|
|
2256
|
+
emitInputChange(value) {
|
|
2257
|
+
if (!this.isTyping)
|
|
2319
2258
|
this.emitStartTyping();
|
|
2320
|
-
}
|
|
2321
2259
|
let validity = {};
|
|
2322
2260
|
if (this.type === index$1.InputTypeEnum.textarea) {
|
|
2323
2261
|
validity = this.getValidity("textarea");
|
|
@@ -2326,7 +2264,7 @@ const ZInput = class {
|
|
|
2326
2264
|
validity = this.getValidity("input");
|
|
2327
2265
|
}
|
|
2328
2266
|
this.value = value;
|
|
2329
|
-
this.inputChange.emit({ value,
|
|
2267
|
+
this.inputChange.emit({ value, validity });
|
|
2330
2268
|
clearTimeout(this.timer);
|
|
2331
2269
|
this.timer = setTimeout(() => {
|
|
2332
2270
|
this.emitStopTyping(this.value, validity);
|
|
@@ -2359,7 +2297,7 @@ const ZInput = class {
|
|
|
2359
2297
|
}
|
|
2360
2298
|
/* START text/password/email/number */
|
|
2361
2299
|
getTextAttributes() {
|
|
2362
|
-
|
|
2300
|
+
return {
|
|
2363
2301
|
id: this.htmlid,
|
|
2364
2302
|
name: this.name,
|
|
2365
2303
|
placeholder: this.placeholder,
|
|
@@ -2368,34 +2306,33 @@ const ZInput = class {
|
|
|
2368
2306
|
readonly: this.readonly,
|
|
2369
2307
|
required: this.required,
|
|
2370
2308
|
title: this.htmltitle,
|
|
2371
|
-
class:
|
|
2372
|
-
${this.status
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
onInput: (e) => this.emitInputChange(e.target.value
|
|
2309
|
+
class: {
|
|
2310
|
+
[`input_${this.status || "default"}`]: true,
|
|
2311
|
+
filled: !!this.value,
|
|
2312
|
+
},
|
|
2313
|
+
autocomplete: this.autocomplete,
|
|
2314
|
+
onInput: (e) => this.emitInputChange(e.target.value),
|
|
2377
2315
|
};
|
|
2378
|
-
if (this.autocomplete)
|
|
2379
|
-
attr["autocomplete"] = this.autocomplete;
|
|
2380
|
-
return attr;
|
|
2381
2316
|
}
|
|
2382
2317
|
renderInputText(type = index$1.InputTypeEnum.text) {
|
|
2383
2318
|
const attr = this.getTextAttributes();
|
|
2384
|
-
if (this.icon || type === index$1.InputTypeEnum.password)
|
|
2385
|
-
attr.class = attr.class
|
|
2386
|
-
|
|
2387
|
-
|
|
2319
|
+
if (this.icon || type === index$1.InputTypeEnum.password) {
|
|
2320
|
+
attr.class = Object.assign(Object.assign({}, attr.class), { hasIcon: true });
|
|
2321
|
+
}
|
|
2322
|
+
if (this.hasclearicon) {
|
|
2323
|
+
attr.class = Object.assign(Object.assign({}, attr.class), { hasClearIcon: true });
|
|
2324
|
+
}
|
|
2388
2325
|
return (index.h("div", { class: "textWrapper" }, this.renderLabel(), index.h("div", null, index.h("input", Object.assign({ type: type === index$1.InputTypeEnum.password && !this.passwordHidden
|
|
2389
2326
|
? index$1.InputTypeEnum.text
|
|
2390
|
-
: type }, attr, { "aria-
|
|
2327
|
+
: type }, attr, { "aria-label": this.ariaLabel || this.label })), this.renderIcons()), this.renderMessage()));
|
|
2391
2328
|
}
|
|
2392
2329
|
renderLabel() {
|
|
2393
2330
|
if (!this.label)
|
|
2394
2331
|
return;
|
|
2395
|
-
return (index.h("
|
|
2332
|
+
return (index.h("label", { class: "inputLabel body-5-sb", id: `${this.htmlid}_label`, htmlFor: this.htmlid, "aria-label": this.label }, this.label));
|
|
2396
2333
|
}
|
|
2397
2334
|
renderIcons() {
|
|
2398
|
-
return (index.h("span", { class:
|
|
2335
|
+
return (index.h("span", { class: "iconsWrapper" }, this.renderResetIcon(), this.renderIcon()));
|
|
2399
2336
|
}
|
|
2400
2337
|
renderIcon() {
|
|
2401
2338
|
if (this.type === index$1.InputTypeEnum.password) {
|
|
@@ -2403,108 +2340,67 @@ const ZInput = class {
|
|
|
2403
2340
|
}
|
|
2404
2341
|
if (!this.icon)
|
|
2405
2342
|
return;
|
|
2406
|
-
return index.h("
|
|
2343
|
+
return (index.h("button", { type: "button", class: "iconButton inputIcon", tabIndex: -1 }, index.h("z-icon", { name: this.icon })));
|
|
2407
2344
|
}
|
|
2408
2345
|
renderResetIcon() {
|
|
2409
2346
|
if (!this.hasclearicon || !this.value || this.disabled || this.readonly)
|
|
2410
2347
|
return;
|
|
2411
|
-
return (index.h("
|
|
2348
|
+
return (index.h("button", { type: "button", class: "iconButton resetIcon", "aria-label": "cancella il contenuto dell'input", onClick: () => this.emitInputChange("") }, index.h("z-icon", { name: "multiply" })));
|
|
2412
2349
|
}
|
|
2413
2350
|
renderShowHidePassword() {
|
|
2414
|
-
return (index.h("
|
|
2351
|
+
return (index.h("button", { type: "button", class: "iconButton showHidePasswordIcon", disabled: this.disabled, "aria-label": this.passwordHidden ? "mostra password" : "nascondi password", onClick: () => (this.passwordHidden = !this.passwordHidden) }, index.h("z-icon", { name: this.passwordHidden ? "view-filled" : "view-off-filled" })));
|
|
2415
2352
|
}
|
|
2416
2353
|
renderMessage() {
|
|
2417
|
-
if (
|
|
2354
|
+
if (utils.boolean(this.message) === false)
|
|
2418
2355
|
return;
|
|
2419
|
-
return index.h("z-input-message", { message: this.message, status: this.status });
|
|
2356
|
+
return (index.h("z-input-message", { message: utils.boolean(this.message) === true ? undefined : this.message, status: this.status }));
|
|
2420
2357
|
}
|
|
2421
2358
|
/* END text/password/email/number */
|
|
2422
2359
|
/* START textarea */
|
|
2423
2360
|
renderTextarea() {
|
|
2424
|
-
return (index.h("div", { class: "textWrapper" }, this.renderLabel(), index.h("div", null, this.renderTextareaBody()), this.renderMessage()));
|
|
2425
|
-
}
|
|
2426
|
-
renderTextareaBody() {
|
|
2427
2361
|
const attributes = this.getTextAttributes();
|
|
2428
|
-
return (index.h("div", { class:
|
|
2429
|
-
textareaWrapper
|
|
2430
|
-
${attributes.class}
|
|
2431
|
-
${attributes.disabled && " disabled"}
|
|
2432
|
-
${attributes.readonly && " readonly"}
|
|
2433
|
-
${this.isTyping && " istyping"}
|
|
2434
|
-
${this.textareaWrapperFocus}
|
|
2435
|
-
${this.textareaWrapperHover}
|
|
2436
|
-
` }, index.h("textarea", Object.assign({}, attributes, this.getTextareaExtraAttributes()))));
|
|
2437
|
-
}
|
|
2438
|
-
getTextareaExtraAttributes() {
|
|
2439
|
-
return {
|
|
2440
|
-
onFocus: () => (this.textareaWrapperFocus = "focus"),
|
|
2441
|
-
onBlur: () => (this.textareaWrapperFocus = ""),
|
|
2442
|
-
onMouseOver: () => (this.textareaWrapperHover = "hover"),
|
|
2443
|
-
onMouseOut: () => (this.textareaWrapperHover = ""),
|
|
2444
|
-
};
|
|
2362
|
+
return (index.h("div", { class: "textWrapper" }, this.renderLabel(), index.h("div", { class: Object.assign(Object.assign({}, attributes.class), { textareaWrapper: true, readonly: attributes.readonly }) }, index.h("textarea", Object.assign({}, attributes, { "aria-label": this.ariaLabel || this.label }))), this.renderMessage()));
|
|
2445
2363
|
}
|
|
2446
2364
|
/* END textarea */
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
this.checked = !this.checked;
|
|
2365
|
+
handleCheck(ev) {
|
|
2366
|
+
this.checked = ev.target.checked;
|
|
2450
2367
|
this.emitInputCheck(this.checked);
|
|
2451
2368
|
}
|
|
2369
|
+
/* START checkbox */
|
|
2452
2370
|
renderCheckbox() {
|
|
2453
|
-
return (index.h("div", { class: "checkboxWrapper" }, index.h("input", { id: this.htmlid, type: "checkbox", name: this.name, checked: this.checked, disabled: this.disabled, readonly: this.readonly, required: this.required, onChange:
|
|
2371
|
+
return (index.h("div", { class: "checkboxWrapper" }, index.h("input", { id: this.htmlid, type: "checkbox", name: this.name, checked: this.checked, disabled: this.disabled, readonly: this.readonly, required: this.required, onChange: this.handleCheck.bind(this), value: this.value }), index.h("label", { htmlFor: this.htmlid, class: {
|
|
2372
|
+
checkboxLabel: true,
|
|
2373
|
+
after: this.labelPosition === index$1.LabelPositions.right,
|
|
2374
|
+
before: this.labelPosition === index$1.LabelPositions.left,
|
|
2375
|
+
} }, index.h("z-icon", { name: this.checked ? "checkbox-checked" : "checkbox", "aria-hidden": "true" }), this.label && index.h("span", { innerHTML: this.label }))));
|
|
2454
2376
|
}
|
|
2455
2377
|
/* END checkbox */
|
|
2456
2378
|
/* START radio */
|
|
2457
|
-
handleRadioChange() {
|
|
2458
|
-
this.checked = true;
|
|
2459
|
-
this.emitInputCheck(this.checked);
|
|
2460
|
-
}
|
|
2461
2379
|
renderRadio() {
|
|
2462
|
-
return (index.h("div", { class: "radioWrapper" }, index.h("input", { id: this.htmlid, type: "radio", name: this.name, checked: this.checked, disabled: this.disabled, readonly: this.readonly, onChange:
|
|
2380
|
+
return (index.h("div", { class: "radioWrapper" }, index.h("input", { id: this.htmlid, type: "radio", name: this.name, checked: this.checked, disabled: this.disabled, readonly: this.readonly, onChange: this.handleCheck.bind(this), value: this.value }), index.h("label", { htmlFor: this.htmlid, class: {
|
|
2381
|
+
radioLabel: true,
|
|
2382
|
+
after: this.labelPosition === index$1.LabelPositions.right,
|
|
2383
|
+
before: this.labelPosition === index$1.LabelPositions.left,
|
|
2384
|
+
} }, index.h("z-icon", { name: this.checked ? "radio-button-checked" : "radio-button", "aria-hidden": "true" }), this.label && index.h("span", { innerHTML: this.label }))));
|
|
2463
2385
|
}
|
|
2464
2386
|
/* END radio */
|
|
2465
|
-
/* START select */
|
|
2466
|
-
renderSelect() {
|
|
2467
|
-
return (index.h("z-select", { htmlid: this.htmlid, items: this.items, name: this.name, label: this.label, disabled: this.disabled, readonly: this.readonly, placeholder: this.placeholder, htmltitle: this.htmltitle, status: this.status, hasmessage: this.hasmessage, message: this.message, autocomplete: this.autocomplete, multiple: this.multiple, ref: (el) => (this.selectElem = el) }));
|
|
2468
|
-
}
|
|
2469
|
-
/* END select */
|
|
2470
2387
|
render() {
|
|
2471
2388
|
switch (this.type) {
|
|
2472
|
-
case index$1.InputTypeEnum.text:
|
|
2473
|
-
case index$1.InputTypeEnum.password:
|
|
2474
|
-
case index$1.InputTypeEnum.number:
|
|
2475
|
-
case index$1.InputTypeEnum.email:
|
|
2476
|
-
return this.renderInputText(this.type);
|
|
2477
2389
|
case index$1.InputTypeEnum.textarea:
|
|
2478
2390
|
return this.renderTextarea();
|
|
2479
2391
|
case index$1.InputTypeEnum.checkbox:
|
|
2480
2392
|
return this.renderCheckbox();
|
|
2481
2393
|
case index$1.InputTypeEnum.radio:
|
|
2482
2394
|
return this.renderRadio();
|
|
2483
|
-
case index$1.InputTypeEnum.select:
|
|
2484
|
-
return this.renderSelect();
|
|
2485
2395
|
default:
|
|
2486
|
-
return this.renderInputText();
|
|
2396
|
+
return this.renderInputText(this.type);
|
|
2487
2397
|
}
|
|
2488
2398
|
}
|
|
2489
2399
|
get hostElement() { return index.getElement(this); }
|
|
2490
2400
|
};
|
|
2491
|
-
ZInput.style = stylesCss$
|
|
2492
|
-
|
|
2493
|
-
const stylesCss$5 = ":host>label{display:block;color:var(--text-grey-800);font-family:var(--dashboard-font);font-weight:var(--font-sb);font-size:12px;line-height:16px;text-transform:uppercase;text-align:left;margin:var(--space-unit) 0}:host>label.disabled{color:var(--text-grey-700)}";
|
|
2494
|
-
|
|
2495
|
-
const ZInputLabel = class {
|
|
2496
|
-
constructor(hostRef) {
|
|
2497
|
-
index.registerInstance(this, hostRef);
|
|
2498
|
-
/** the label is disabled */
|
|
2499
|
-
this.disabled = false;
|
|
2500
|
-
}
|
|
2501
|
-
render() {
|
|
2502
|
-
return index.h("label", { class: this.disabled ? "disabled" : "" }, this.value);
|
|
2503
|
-
}
|
|
2504
|
-
};
|
|
2505
|
-
ZInputLabel.style = stylesCss$5;
|
|
2401
|
+
ZInput.style = stylesCss$4;
|
|
2506
2402
|
|
|
2507
|
-
const stylesCss$
|
|
2403
|
+
const stylesCss$3 = ":host{display:flex;align-items:start;min-height:calc(var(--space-unit) * 2);margin-top:var(--space-unit);color:var(--color-text05);fill:currentColor;font-family:var(--font-family-sans);font-size:var(--font-size-2);letter-spacing:0.16px}:host([status='success']){color:var(--color-text-success)}:host([status='error']){color:var(--color-text-error)}:host([status='warning']){color:var(--color-warning02)}:host(:focus){outline:none}:host>z-icon{--z-icon-width:calc(var(--space-unit) * 2);--z-icon-height:calc(var(--space-unit) * 2);margin:calc(var(--space-unit) / 3) var(--space-unit) 0 0}";
|
|
2508
2404
|
|
|
2509
2405
|
const ZInputMessage = class {
|
|
2510
2406
|
constructor(hostRef) {
|
|
@@ -2512,19 +2408,16 @@ const ZInputMessage = class {
|
|
|
2512
2408
|
this.statusIcons = {
|
|
2513
2409
|
success: "checkmark-circle",
|
|
2514
2410
|
error: "multiply-circled",
|
|
2515
|
-
warning: "exclamation-circle"
|
|
2411
|
+
warning: "exclamation-circle",
|
|
2516
2412
|
};
|
|
2517
2413
|
}
|
|
2518
|
-
renderMsgClassName() {
|
|
2519
|
-
return this.status ? `msg_${this.status}` : '';
|
|
2520
|
-
}
|
|
2521
2414
|
render() {
|
|
2522
|
-
return (index.h(
|
|
2415
|
+
return (index.h(index.Host, { role: "alert", "aria-label": this.message, tabindex: this.message ? 0 : -1 }, this.statusIcons[this.status] && this.message && (index.h("z-icon", { name: this.statusIcons[this.status] })), index.h("span", { innerHTML: this.message })));
|
|
2523
2416
|
}
|
|
2524
2417
|
};
|
|
2525
|
-
ZInputMessage.style = stylesCss$
|
|
2418
|
+
ZInputMessage.style = stylesCss$3;
|
|
2526
2419
|
|
|
2527
|
-
const stylesCss$
|
|
2420
|
+
const stylesCss$2 = ":host{--font-size-link:inherit;--font-weight-link:inherit}:host{font-family:var(--dashboard-font);font-weight:var(--font-weight-link);font-size:var(--font-size-link);line-height:inherit;outline:none}a{cursor:pointer;color:var(--color-link-primary);fill:var(--color-link-primary);display:inline-flex;align-items:center;text-decoration:none;padding:calc(var(--space-unit) * 0.5) 0;border-top:var(--border-size-medium) solid transparent;border-bottom:var(--border-size-medium) solid transparent}a:hover,a:focus,a:active{text-decoration:underline}a.active{color:var(--color-active-link);fill:var(--color-active-link)}a:hover,a:focus{color:var(--color-hover-link);fill:var(--color-hover-link)}a:active{color:var(--color-pressed-link);fill:var(--color-pressed-link)}a:visited{color:var(--color-visited-link);fill:var(--color-visited-link)}a.disabled,a.inverse.disabled{cursor:default;pointer-events:none;color:var(--color-disabled03);fill:var(--color-disabled03)}a.underline,a.underline:active,a.underline:hover,a.underline:visited,a.underline.disabled,a.underline.black,a.underline.white{text-decoration:underline}a.disabled,a.disabled:active,a.disabled:visited,a.disabled:hover{text-decoration:none}a.inverse{color:var(--color-inverse-link);fill:var(--color-inverse-link)}a.inverse.active{color:var(--color-inverse-active-link);fill:var(--color-inverse-active-link)}a.inverse:hover,a.inverse:focus{color:var(--color-inverse-hover-link);fill:var(--color-inverse-hover-link)}a.inverse:active{color:var(--color-inverse-pressed-link);fill:var(--color-inverse-pressed-link)}a.inverse:visited{color:var(--color-inverse-visited-link);fill:var(--color-inverse-visited-link)}a.black{color:var(--gray800);fill:var(--gray800);text-decoration:none}a.black:hover,a.black.active{color:var(--color-black);fill:var(--color-black)}a.black:visited{color:var(--gray800);fill:var(--gray800)}a.black:hover,a.black:focus,a.black:active{text-decoration:underline}a.black:active{color:var(--gray700);fill:var(--gray700)}a.white,a.white:active,a.white:hover,a.white.active{color:var(--bg-white);fill:var(--bg-white);text-decoration:none}a.white:visited{color:var(--bg-white);fill:var(--bg-white)}a.white:hover,a.white:focus,a.white:active{text-decoration:underline}a.white.disabled,a.black.disabled{color:var(--gray500);fill:var(--gray500)}a>z-icon:first-child{margin-right:8px}a>z-icon:last-child{margin-left:8px}";
|
|
2528
2421
|
|
|
2529
2422
|
const ZLink = class {
|
|
2530
2423
|
constructor(hostRef) {
|
|
@@ -2541,15 +2434,23 @@ const ZLink = class {
|
|
|
2541
2434
|
/** white variant flag (optional) */
|
|
2542
2435
|
this.iswhite = false;
|
|
2543
2436
|
/** link text variant (optional) */
|
|
2544
|
-
this.textcolor =
|
|
2437
|
+
this.textcolor = "primary";
|
|
2545
2438
|
/** big link version */
|
|
2546
2439
|
this.big = false;
|
|
2440
|
+
/** link icon position (optional) */
|
|
2441
|
+
this.iconposition = "left";
|
|
2442
|
+
/** draw underline on text (optional) */
|
|
2443
|
+
this.underline = false;
|
|
2444
|
+
this.iconSize = 18;
|
|
2547
2445
|
this.emitZLinkClick = this.emitZLinkClick.bind(this);
|
|
2548
2446
|
this.emitZLinkInteraction = this.emitZLinkInteraction.bind(this);
|
|
2549
2447
|
}
|
|
2550
2448
|
componentWillRender() {
|
|
2551
2449
|
if (this.iswhite) {
|
|
2552
|
-
console.warn(
|
|
2450
|
+
console.warn("z-link iswhite prop is deprecated and will be dropped in a next release, please use textcolor prop instead");
|
|
2451
|
+
}
|
|
2452
|
+
if (this.big) {
|
|
2453
|
+
console.warn("z-link big prop is deprecated and will be dropped in a next release, please override --font-size-link and --font-weight-link variables instead");
|
|
2553
2454
|
}
|
|
2554
2455
|
}
|
|
2555
2456
|
emitZLinkClick(e, linkId) {
|
|
@@ -2558,25 +2459,38 @@ const ZLink = class {
|
|
|
2558
2459
|
emitZLinkInteraction(e, linkId) {
|
|
2559
2460
|
this.zLinkClick.emit({ e, linkId });
|
|
2560
2461
|
}
|
|
2462
|
+
componentDidRender() {
|
|
2463
|
+
if (this.icon) {
|
|
2464
|
+
const height = parseFloat(window.getComputedStyle(this.hostElement).getPropertyValue('font-size'));
|
|
2465
|
+
const currentSize = this.big ? 18 : Math.round(height * 1.125);
|
|
2466
|
+
if (!Number.isNaN(currentSize) && this.iconSize !== currentSize) {
|
|
2467
|
+
this.iconSize = currentSize;
|
|
2468
|
+
}
|
|
2469
|
+
}
|
|
2470
|
+
}
|
|
2561
2471
|
render() {
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2472
|
+
const style = this.big ? { "--font-size-link": "16px", "--font-weight-link": "600" } : {};
|
|
2473
|
+
return (index.h(index.Host, { style: style }, index.h("a", { id: this.htmlid, href: this.href ? this.href : null, class: `${this.isdisabled ? "disabled" : ""}
|
|
2474
|
+
${this.isactive ? "active" : ""}
|
|
2475
|
+
${this.textcolor}
|
|
2476
|
+
${this.iswhite ? "white" : ""}
|
|
2477
|
+
${this.underline ? "underline" : ""}`, target: this.target, role: this.href ? "link" : "button", tabindex: this.isdisabled ? -1 : this.htmltabindex, onClick: (e) => this.emitZLinkClick(e, this.htmlid) }, this.iconposition === "right" && index.h("slot", null), this.icon &&
|
|
2478
|
+
index.h("z-icon", { style: { "--z-icon-width": this.iconSize.toString(), "--z-icon-height": this.iconSize.toString() }, name: this.icon, height: this.iconSize, width: this.iconSize }), this.iconposition === "left" && index.h("slot", null))));
|
|
2567
2479
|
}
|
|
2480
|
+
get hostElement() { return index.getElement(this); }
|
|
2568
2481
|
};
|
|
2569
|
-
ZLink.style = stylesCss$
|
|
2482
|
+
ZLink.style = stylesCss$2;
|
|
2570
2483
|
|
|
2571
|
-
const stylesCss$
|
|
2484
|
+
const stylesCss$1 = ":host{position:fixed;top:0;left:0;right:0;bottom:0;z-index:1000;display:flex;flex-direction:row;justify-content:center;width:100%;height:100%;font-family:var(--font-family-sans);font-weight:var(--font-rg)}.modal-background{position:fixed;top:0;left:0;width:100%;height:100%;background-color:var(--gray900);opacity:0.7}.modal-container{display:flex;flex-direction:column;z-index:1010;width:100%;height:100vh;overflow:-moz-scrollbars-none;overflow:hidden}.modal-container>header{display:flex;flex-wrap:nowrap;flex-direction:row;align-items:flex-start;justify-content:flex-start;padding:calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 2);background:var(--color-surface02)}.modal-container>header button{margin:0;padding:0;border:none;background:transparent;cursor:pointer;margin-left:auto}.modal-container>header z-icon{--z-icon-width:calc(var(--space-unit) * 2.5);--z-icon-height:calc(var(--space-unit) * 2.5);display:flex;fill:var(--color-icon01)}.modal-container>header>div{display:flex;flex-direction:column;width:100%;margin-right:calc(var(--space-unit) * 2)}.modal-container>header h1,.modal-container>header h2{margin:0;padding:0;font-weight:var(--font-rg);color:var(--color-text01)}.modal-container>header h1{font-size:var(--font-size-5);line-height:1.4;letter-spacing:0}.modal-container>header h2{font-size:var(--font-size-3);line-height:1.5;letter-spacing:0}.modal-container>header>div *:empty{display:none}.modal-container>header h1+h2{margin-top:calc(var(--space-unit) * 0.5)}.modal-container>.modal-content{flex:1 auto;background:var(--color-surface01);overflow:auto;overflow-x:hidden}.modal-container .modal-content::-webkit-scrollbar{background:linear-gradient(\n to right,\n transparent 0 3px,\n var(--gray200) 3px 7px,\n transparent 7px 10px\n );width:10px;border-radius:var(--border-radius)}.modal-container .modal-content::-webkit-scrollbar-track{background-color:transparent}.modal-container .modal-content::-webkit-scrollbar-thumb{background-color:var(--color-primary01);border-radius:var(--border-radius);width:10px}.modal-container .modal-content::-webkit-scrollbar-thumb:hover{background-color:var(--color-hover-primary)}.modal-container .modal-content{scrollbar-color:var(--color-primary01) transparent}@media only screen and (min-width: 768px){.modal-container{position:fixed;top:calc(var(--space-unit) * 6);left:50%;transform:translateX(-50%);width:auto;height:auto;min-width:calc(var(--space-unit) * 40);min-height:calc(var(--space-unit) * 40);max-height:calc(100vh - calc(var(--space-unit) * 6 * 2));border-radius:var(--border-radius)}.modal-container>header z-icon{--z-icon-width:calc(var(--space-unit) * 3);--z-icon-height:calc(var(--space-unit) * 3)}}@media only screen and (min-width: 768px) and (max-width: 1151px){.modal-container>header{padding:calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 3)}}@media only screen and (min-width: 1152px){.modal-container>header{padding:calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 4)}.modal-container>header h1{font-size:var(--font-size-6);line-height:1.33;letter-spacing:0}.modal-container>header h2{font-size:var(--font-size-4);line-height:1.5;letter-spacing:0}.modal-container>header h1+h2{margin-top:0}}";
|
|
2572
2485
|
|
|
2573
2486
|
const ZModal = class {
|
|
2574
2487
|
constructor(hostRef) {
|
|
2575
2488
|
index.registerInstance(this, hostRef);
|
|
2576
2489
|
this.modalClose = index.createEvent(this, "modalClose", 7);
|
|
2577
2490
|
this.modalHeaderActive = index.createEvent(this, "modalHeaderActive", 7);
|
|
2578
|
-
this.
|
|
2579
|
-
|
|
2491
|
+
this.modalBackgroundClick = index.createEvent(this, "modalBackgroundClick", 7);
|
|
2492
|
+
/** aria-label for close button (optional) */
|
|
2493
|
+
this.closeButtonLabel = "close modal";
|
|
2580
2494
|
}
|
|
2581
2495
|
emitModalClose() {
|
|
2582
2496
|
this.modalClose.emit({ modalid: this.modalid });
|
|
@@ -2584,287 +2498,19 @@ const ZModal = class {
|
|
|
2584
2498
|
emitModalHeaderActive() {
|
|
2585
2499
|
this.modalHeaderActive.emit({ modalid: this.modalid });
|
|
2586
2500
|
}
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
}
|
|
2590
|
-
};
|
|
2591
|
-
ZModal.style = stylesCss$2;
|
|
2592
|
-
|
|
2593
|
-
const stylesCss$1 = ":host{display:inline-block;width:inherit}:host ul[role=\"listbox\"]{background:var(--bg-white);border-radius:0px;border:var(--border-size-small) solid var(--bg-grey-200);border-color:var(--bg-grey-200);box-sizing:border-box;color:var(--text-grey-800);fill:var(--text-grey-800);font-family:var(--dashboard-font);font-weight:var(--font-rg);font-size:16px;outline:none}:host .filled{border-color:var(--text-grey-800) !important}:host li[role=\"option\"]:focus{border-color:transparent;box-shadow:0 0 2px 2px var(--accent-dark);outline:none}:host>div.selectWrapper>z-input{width:100%}:host>div.selectWrapper>div{position:relative}:host>div.selectWrapper>div.closed{height:0px;overflow:hidden}:host>div.selectWrapper>div>div.ulScrollWrapper{background:var(--bg-white);position:absolute;padding:calc(var(--space-unit) * .5) var(--space-unit);border:var(--border-size-small) solid var(--bg-grey-200);border-top:none;width:100%;box-sizing:border-box}:host>div.selectWrapper>div.closed>div.ulScrollWrapper{z-index:10}:host>div.selectWrapper>div.open>div.ulScrollWrapper{z-index:20}:host>div.selectWrapper>div>div.ulScrollWrapper>ul{list-style:none;margin:0;padding:0;border:0px;max-height:240px;overflow:auto;scrollbar-width:thin;scrollbar-color:var(--myz-blue) var(--bg-grey-200);position:relative}:host>div.selectWrapper>div>div.ulScrollWrapper>ul::-webkit-scrollbar{background:linear-gradient(\n 90deg,\n var(--bg-white) 2px,\n var(--bg-grey-200) 4px,\n var(--bg-white) 8px\n );border-radius:var(--border-radius);width:10px}:host>div.selectWrapper>div>div.ulScrollWrapper>ul::-webkit-scrollbar-thumb{background-color:var(--myz-blue);border-radius:var(--border-radius);width:10px}:host>div.selectWrapper>div>div.ulScrollWrapper>ul>li{display:flex;align-items:center;box-sizing:border-box;min-height:44px;padding:calc(var(--space-unit) * 1.5);text-align:left;cursor:pointer;border-bottom:var(--border-size-small) solid var(--bg-grey-200)}:host>div.selectWrapper>div>div.ulScrollWrapper>ul>li:hover{color:var(--myz-blue-dark);background:var(--bg-grey-050)}:host>div.selectWrapper>div>div.ulScrollWrapper>ul>li:focus{margin:2px}:host>div.selectWrapper>div>div.ulScrollWrapper>ul>li[aria-selected=\"\"]{font-weight:var(--font-sb)}:host>div.selectWrapper>div>div.ulScrollWrapper>ul>li.disabled{color:var(--text-grey-700);cursor:default;pointer-events:none}:host>div.selectWrapper>div>div.ulScrollWrapper>ul>li.noResults{color:var(--myz-blue);fill:var(--myz-blue)}:host>div.selectWrapper>div>div.ulScrollWrapper>ul>li.noResults>z-icon{margin-right:var(--space-unit)}:host>div.selectWrapper>div.chipsWrapper{padding-bottom:var(--space-unit)}:host>div.selectWrapper>div.chipsWrapper>z-button-filter{display:inline-block;margin:4px}";
|
|
2594
|
-
|
|
2595
|
-
const ZSelect = class {
|
|
2596
|
-
constructor(hostRef) {
|
|
2597
|
-
index.registerInstance(this, hostRef);
|
|
2598
|
-
this.optionSelect = index.createEvent(this, "optionSelect", 7);
|
|
2599
|
-
/** the id of the input element */
|
|
2600
|
-
this.htmlid = utils.randomId();
|
|
2601
|
-
/** the input is disabled */
|
|
2602
|
-
this.disabled = false;
|
|
2603
|
-
/** the input is readonly */
|
|
2604
|
-
this.readonly = false;
|
|
2605
|
-
/** show input helper message (optional): available for text, password, number, email, textarea, select */
|
|
2606
|
-
this.hasmessage = true;
|
|
2607
|
-
/** the input has autocomplete option */
|
|
2608
|
-
this.autocomplete = false;
|
|
2609
|
-
/** multiple options can be selected */
|
|
2610
|
-
this.multiple = false;
|
|
2611
|
-
/** no result text message */
|
|
2612
|
-
this.noresultslabel = "Nessun risultato";
|
|
2613
|
-
this.isOpen = false;
|
|
2614
|
-
this.itemsList = [];
|
|
2615
|
-
this.toggleSelectUl = this.toggleSelectUl.bind(this);
|
|
2616
|
-
this.selectItem = this.selectItem.bind(this);
|
|
2617
|
-
this.handleSelectFocus = this.handleSelectFocus.bind(this);
|
|
2618
|
-
}
|
|
2619
|
-
watchItems() {
|
|
2620
|
-
this.itemsList = this.getInitialItemsArray();
|
|
2621
|
-
typeof this.items === "string" ? JSON.parse(this.items) : this.items;
|
|
2622
|
-
this.selectedItems = this.itemsList.filter((item) => item.selected);
|
|
2623
|
-
}
|
|
2624
|
-
/** get the input selected options */
|
|
2625
|
-
async getSelectedItems() {
|
|
2626
|
-
return this.selectedItems;
|
|
2627
|
-
}
|
|
2628
|
-
/** get the input value */
|
|
2629
|
-
async getValue() {
|
|
2630
|
-
return this.getSelectedValues();
|
|
2631
|
-
}
|
|
2632
|
-
/** set the input value */
|
|
2633
|
-
async setValue(value) {
|
|
2634
|
-
let values = [];
|
|
2635
|
-
if (typeof value === "string") {
|
|
2636
|
-
values.push(value);
|
|
2637
|
-
}
|
|
2638
|
-
else {
|
|
2639
|
-
values = value;
|
|
2640
|
-
}
|
|
2641
|
-
this.selectedItems = this.itemsList.filter((item) => values.includes(item.id));
|
|
2642
|
-
}
|
|
2643
|
-
emitOptionSelect() {
|
|
2644
|
-
this.optionSelect.emit({
|
|
2645
|
-
id: this.htmlid,
|
|
2646
|
-
selected: this.getSelectedValues(),
|
|
2647
|
-
});
|
|
2648
|
-
}
|
|
2649
|
-
componentWillLoad() {
|
|
2650
|
-
this.watchItems();
|
|
2651
|
-
}
|
|
2652
|
-
componentWillRender() {
|
|
2653
|
-
this.filterItems(this.searchString);
|
|
2654
|
-
}
|
|
2655
|
-
getInitialItemsArray() {
|
|
2656
|
-
return typeof this.items === "string" ? JSON.parse(this.items) : this.items;
|
|
2657
|
-
}
|
|
2658
|
-
mapSelectedItemsToItemsArray() {
|
|
2659
|
-
const initialItemsList = this.getInitialItemsArray();
|
|
2660
|
-
return initialItemsList.map((item) => {
|
|
2661
|
-
const found = this.selectedItems.find((selected) => selected.id === item.id);
|
|
2662
|
-
item.selected = !!found;
|
|
2663
|
-
return item;
|
|
2664
|
-
});
|
|
2665
|
-
}
|
|
2666
|
-
getSelectedValues() {
|
|
2667
|
-
if (this.multiple) {
|
|
2668
|
-
return this.selectedItems.map((item) => item.id);
|
|
2669
|
-
}
|
|
2670
|
-
if (!this.multiple && this.selectedItems.length) {
|
|
2671
|
-
return this.selectedItems[0].id;
|
|
2672
|
-
}
|
|
2673
|
-
return null;
|
|
2674
|
-
}
|
|
2675
|
-
filterItems(searchString) {
|
|
2676
|
-
const prevList = this.mapSelectedItemsToItemsArray();
|
|
2677
|
-
if (!(searchString === null || searchString === void 0 ? void 0 : searchString.length)) {
|
|
2678
|
-
this.itemsList = prevList;
|
|
2679
|
-
}
|
|
2680
|
-
else {
|
|
2681
|
-
this.itemsList = prevList
|
|
2682
|
-
.filter((item) => {
|
|
2683
|
-
return item.name.toUpperCase().includes(searchString.toUpperCase());
|
|
2684
|
-
})
|
|
2685
|
-
.map((item) => {
|
|
2686
|
-
const start = item.name
|
|
2687
|
-
.toUpperCase()
|
|
2688
|
-
.indexOf(searchString.toUpperCase());
|
|
2689
|
-
const end = start + searchString.length;
|
|
2690
|
-
const newName = item.name.substring(0, start) +
|
|
2691
|
-
item.name.substring(start, end).bold() +
|
|
2692
|
-
item.name.substring(end, item.name.length);
|
|
2693
|
-
item.name = newName;
|
|
2694
|
-
return item;
|
|
2695
|
-
});
|
|
2696
|
-
}
|
|
2697
|
-
}
|
|
2698
|
-
hasAutcomplete() {
|
|
2699
|
-
return (this.autocomplete === true ||
|
|
2700
|
-
this.autocomplete === "true" ||
|
|
2701
|
-
this.autocomplete === "on");
|
|
2702
|
-
}
|
|
2703
|
-
handleInputChange(e) {
|
|
2704
|
-
this.searchString = e.detail.value;
|
|
2705
|
-
if (!this.isOpen)
|
|
2706
|
-
this.toggleSelectUl();
|
|
2707
|
-
}
|
|
2708
|
-
selectItem(item, selected) {
|
|
2709
|
-
if (item && item.disabled)
|
|
2710
|
-
return;
|
|
2711
|
-
this.itemsList = this.mapSelectedItemsToItemsArray();
|
|
2712
|
-
this.itemsList = this.itemsList.map((i) => {
|
|
2713
|
-
if (!this.multiple)
|
|
2714
|
-
i.selected = false;
|
|
2715
|
-
if (i.id === (item ? item.id : null))
|
|
2716
|
-
i.selected = selected;
|
|
2717
|
-
return i;
|
|
2718
|
-
});
|
|
2719
|
-
this.selectedItems = this.itemsList.filter((item) => item.selected);
|
|
2720
|
-
this.emitOptionSelect();
|
|
2721
|
-
if (this.searchString)
|
|
2722
|
-
this.searchString = null;
|
|
2723
|
-
}
|
|
2724
|
-
arrowsSelectNav(e, key) {
|
|
2725
|
-
const arrows = [index$1.keybordKeyCodeEnum.ARROW_DOWN, index$1.keybordKeyCodeEnum.ARROW_UP];
|
|
2726
|
-
if (!arrows.includes(e.keyCode))
|
|
2727
|
-
return;
|
|
2728
|
-
e.preventDefault();
|
|
2729
|
-
e.stopPropagation();
|
|
2730
|
-
if (!this.isOpen)
|
|
2731
|
-
this.toggleSelectUl();
|
|
2732
|
-
let index;
|
|
2733
|
-
if (e.keyCode === index$1.keybordKeyCodeEnum.ARROW_DOWN) {
|
|
2734
|
-
index = key + 1 === this.itemsList.length ? 0 : key + 1;
|
|
2735
|
-
}
|
|
2736
|
-
else if (e.keyCode === index$1.keybordKeyCodeEnum.ARROW_UP) {
|
|
2737
|
-
index = key <= 0 ? this.itemsList.length - 1 : key - 1;
|
|
2738
|
-
}
|
|
2739
|
-
this.focusSelectItem(index);
|
|
2740
|
-
}
|
|
2741
|
-
focusSelectItem(index) {
|
|
2742
|
-
const focusElem = this.hostElement.shadowRoot.getElementById(`${this.htmlid}_${index}`);
|
|
2743
|
-
if (focusElem)
|
|
2744
|
-
focusElem.focus();
|
|
2745
|
-
}
|
|
2746
|
-
toggleSelectUl(selfFocusOnClose = false) {
|
|
2747
|
-
if (this.disabled || this.readonly)
|
|
2748
|
-
return;
|
|
2749
|
-
if (!this.isOpen) {
|
|
2750
|
-
document.addEventListener("click", this.handleSelectFocus);
|
|
2751
|
-
document.addEventListener("keyup", this.handleSelectFocus);
|
|
2752
|
-
}
|
|
2753
|
-
else {
|
|
2754
|
-
document.removeEventListener("click", this.handleSelectFocus);
|
|
2755
|
-
document.removeEventListener("keyup", this.handleSelectFocus);
|
|
2756
|
-
if (selfFocusOnClose) {
|
|
2757
|
-
this.hostElement.shadowRoot
|
|
2758
|
-
.getElementById(`${this.htmlid}_input`)
|
|
2759
|
-
.focus();
|
|
2760
|
-
}
|
|
2761
|
-
}
|
|
2762
|
-
this.isOpen = !this.isOpen;
|
|
2763
|
-
}
|
|
2764
|
-
handleInputClick(e) {
|
|
2765
|
-
const cp = e.composedPath();
|
|
2766
|
-
const clearIcon = cp.find((item) => item.classList && item.classList.contains("resetIcon"));
|
|
2767
|
-
if (clearIcon) {
|
|
2768
|
-
e.stopPropagation();
|
|
2769
|
-
return;
|
|
2770
|
-
}
|
|
2771
|
-
this.toggleSelectUl();
|
|
2772
|
-
}
|
|
2773
|
-
handleSelectFocus(e) {
|
|
2774
|
-
if (e instanceof KeyboardEvent && e.keyCode === index$1.keybordKeyCodeEnum.ESC) {
|
|
2775
|
-
e.stopPropagation();
|
|
2776
|
-
return this.toggleSelectUl(true);
|
|
2777
|
-
}
|
|
2778
|
-
if (e instanceof KeyboardEvent &&
|
|
2779
|
-
e.keyCode !== index$1.keybordKeyCodeEnum.TAB &&
|
|
2780
|
-
e.keyCode !== index$1.keybordKeyCodeEnum.ENTER) {
|
|
2781
|
-
return;
|
|
2782
|
-
}
|
|
2783
|
-
const tree = utils.getElementTree(utils.getClickedElement());
|
|
2784
|
-
const parent = tree.find((elem) => {
|
|
2785
|
-
return ((elem.nodeName.toLowerCase() === "z-input" &&
|
|
2786
|
-
elem.id === `${this.htmlid}_input`) ||
|
|
2787
|
-
(this.multiple &&
|
|
2788
|
-
elem.nodeName.toLowerCase() === "ul" &&
|
|
2789
|
-
elem.id === this.htmlid));
|
|
2790
|
-
});
|
|
2791
|
-
if (!parent) {
|
|
2792
|
-
this.toggleSelectUl(e instanceof MouseEvent ? true : false);
|
|
2793
|
-
}
|
|
2794
|
-
}
|
|
2795
|
-
scrollToLetter(letter) {
|
|
2796
|
-
const foundItem = this.itemsList.find((item) => item.name.charAt(0) === letter);
|
|
2797
|
-
if (foundItem)
|
|
2798
|
-
this.focusSelectItem(this.itemsList.indexOf(foundItem));
|
|
2799
|
-
}
|
|
2800
|
-
renderLabel() {
|
|
2801
|
-
if (!this.label)
|
|
2802
|
-
return;
|
|
2803
|
-
return (index.h("z-input-label", { value: this.label, disabled: this.disabled, "aria-label": this.label, id: `${this.htmlid}_input_label` }));
|
|
2804
|
-
}
|
|
2805
|
-
renderInput() {
|
|
2806
|
-
return (index.h("z-input", { id: `${this.htmlid}_input`, htmlid: `${this.htmlid}_input`, placeholder: this.placeholder, value: !this.isOpen && !this.multiple && this.selectedItems.length
|
|
2807
|
-
? this.selectedItems[0].name.replace(/<[^>]+>/g, "")
|
|
2808
|
-
: null, icon: this.isOpen ? "caret-up" : "caret-down", hasclearicon: this.hasAutcomplete(), hasmessage: false, disabled: this.disabled, readonly: this.readonly || (!this.hasAutcomplete() && this.isOpen), status: this.isOpen ? index$1.InputStatusEnum.selecting : this.status, onClick: (e) => {
|
|
2809
|
-
this.handleInputClick(e);
|
|
2810
|
-
}, onKeyUp: (e) => {
|
|
2811
|
-
if (e.keyCode !== 13)
|
|
2812
|
-
e.preventDefault();
|
|
2813
|
-
utils.handleKeyboardSubmit(e, this.toggleSelectUl);
|
|
2814
|
-
}, onKeyDown: (e) => this.arrowsSelectNav(e, this.selectedItems.length
|
|
2815
|
-
? this.itemsList.indexOf(this.selectedItems[0])
|
|
2816
|
-
: -1), onInputChange: (e) => {
|
|
2817
|
-
this.handleInputChange(e);
|
|
2818
|
-
}, onKeyPress: (e) => {
|
|
2819
|
-
if (!this.hasAutcomplete()) {
|
|
2820
|
-
e.preventDefault();
|
|
2821
|
-
this.scrollToLetter(String.fromCharCode(e.keyCode));
|
|
2822
|
-
}
|
|
2823
|
-
} }));
|
|
2824
|
-
}
|
|
2825
|
-
renderChips() {
|
|
2826
|
-
if (!this.multiple || !this.selectedItems.length)
|
|
2827
|
-
return;
|
|
2828
|
-
return (index.h("div", { class: `chipsWrapper ${this.isOpen ? "open" : ""}` }, this.selectedItems.map((item) => (index.h("z-button-filter", { filterid: item.id, filtername: item.name.replace(/<[^>]+>/g, ""), issmall: true, onRemovefilter: () => this.selectItem(item, false) })))));
|
|
2829
|
-
}
|
|
2830
|
-
renderSelectUl() {
|
|
2831
|
-
return (index.h("div", { class: this.isOpen ? "open" : "closed" }, index.h("div", { class: "ulScrollWrapper" }, index.h("ul", { role: "listbox", tabindex: this.disabled || this.readonly || !this.isOpen ? -1 : 0, id: this.htmlid, "aria-activedescendant": !this.multiple && this.selectedItems.length
|
|
2832
|
-
? this.selectedItems[0].id
|
|
2833
|
-
: null, "aria-multiselectable": !!this.multiple, class: `
|
|
2834
|
-
${this.disabled ? " disabled" : ""}
|
|
2835
|
-
${this.readonly ? " readonly" : ""}
|
|
2836
|
-
${!this.isOpen && this.status
|
|
2837
|
-
? " input_" + this.status
|
|
2838
|
-
: " input_default"}
|
|
2839
|
-
${this.selectedItems.length ? " filled" : ""}
|
|
2840
|
-
` }, this.renderSelectUlItems()))));
|
|
2841
|
-
}
|
|
2842
|
-
renderSelectUlItems() {
|
|
2843
|
-
if (!this.itemsList.length)
|
|
2844
|
-
return this.renderNoSearchResults();
|
|
2845
|
-
return this.itemsList.map((item, key) => {
|
|
2846
|
-
return (index.h("li", { role: "option", tabindex: item.disabled || !this.isOpen ? -1 : 0, "aria-selected": !!item.selected, class: item.disabled && "disabled", id: `${this.htmlid}_${key}`, onClick: () => this.selectItem(item, true), onKeyUp: (e) => utils.handleKeyboardSubmit(e, this.selectItem, item, true), onKeyDown: (e) => this.arrowsSelectNav(e, key) }, index.h("span", { innerHTML: item.name })));
|
|
2847
|
-
});
|
|
2848
|
-
}
|
|
2849
|
-
renderNoSearchResults() {
|
|
2850
|
-
return (index.h("li", { class: "noResults" }, index.h("z-icon", { name: "circle-cross-stroke" }), this.noresultslabel));
|
|
2851
|
-
}
|
|
2852
|
-
renderMessage() {
|
|
2853
|
-
if (!this.hasmessage)
|
|
2854
|
-
return;
|
|
2855
|
-
return index.h("z-input-message", { message: this.message, status: this.status });
|
|
2501
|
+
emitBackgroundClick() {
|
|
2502
|
+
this.modalBackgroundClick.emit({ modalid: this.modalid });
|
|
2856
2503
|
}
|
|
2857
2504
|
render() {
|
|
2858
|
-
return
|
|
2505
|
+
return [
|
|
2506
|
+
index.h("div", { class: "modal-container", id: this.modalid, role: "dialog" }, index.h("header", { onClick: this.emitModalHeaderActive.bind(this) }, index.h("div", null, this.modaltitle && index.h("h1", null, this.modaltitle), this.modalsubtitle && index.h("h2", null, this.modalsubtitle)), index.h("slot", { name: "modalCloseButton" }, index.h("button", { "aria-label": this.closeButtonLabel, onClick: this.emitModalClose.bind(this) }, index.h("z-icon", { name: "multiply-circle-filled" })))), index.h("div", { class: "modal-content" }, index.h("slot", { name: "modalContent" }))),
|
|
2507
|
+
index.h("div", { class: "modal-background", "data-action": "modalBackground", "data-modal": this.modalid, onClick: this.emitBackgroundClick.bind(this) })
|
|
2508
|
+
];
|
|
2859
2509
|
}
|
|
2860
|
-
get hostElement() { return index.getElement(this); }
|
|
2861
|
-
static get watchers() { return {
|
|
2862
|
-
"items": ["watchItems"]
|
|
2863
|
-
}; }
|
|
2864
2510
|
};
|
|
2865
|
-
|
|
2511
|
+
ZModal.style = stylesCss$1;
|
|
2866
2512
|
|
|
2867
|
-
const stylesCss = ":host>*{font-family:var(--dashboard-font);margin:0}:host(.regular)>*{font-weight:var(--font-rg)}:host(.semibold)>*{font-weight:600}:host(.light)>*{font-weight:300}:host(.h1)>*{font-size:32px;line-height:40px}:host(.h2)>*{font-size:28px;line-height:36px}:host(.h3)>*{font-size:24px;line-height:32px}:host(.h4)>*{font-size:20px;line-height:28px}:host(.b1)>*{font-size:20px;line-height:28px}:host(.b2)>*{font-size:18px;line-height:28px}:host(.b3)>*{font-size:16px;line-height:24px}:host(.b4)>*{font-size:14px;line-height:20px}:host(.b5)>*{font-size:12px;line-height:16px}";
|
|
2513
|
+
const stylesCss = ":host>*{font-family:var(--dashboard-font);margin:0}:host(.regular)>*{font-weight:var(--font-rg)}:host(.semibold)>*{font-weight:600}:host(.light)>*{font-weight:300}:host(.h1)>*{font-size:32px;line-height:40px}:host(.h2)>*{font-size:28px;line-height:36px}:host(.h3)>*{font-size:24px;line-height:32px}:host(.h4)>*{font-size:20px;line-height:28px}:host(.b1)>*{font-size:20px;line-height:28px}:host(.b2)>*{font-size:18px;line-height:28px}:host(.b3)>*{font-size:16px;line-height:24px}:host(.b4)>*{font-size:14px;line-height:20px}:host(.b5)>*{font-size:12px;line-height:16px}:host(:focus-visible){outline:none}";
|
|
2868
2514
|
|
|
2869
2515
|
const ZTypography = class {
|
|
2870
2516
|
constructor(hostRef) {
|
|
@@ -2892,13 +2538,10 @@ exports.license_activation_form = LicenseActivationForm;
|
|
|
2892
2538
|
exports.license_activation_modal = LicenseActivationModal;
|
|
2893
2539
|
exports.z_body = ZBody;
|
|
2894
2540
|
exports.z_button = ZButton;
|
|
2895
|
-
exports.z_button_filter = ZButtonFilter;
|
|
2896
2541
|
exports.z_icon = ZIcon;
|
|
2897
2542
|
exports.z_info_box = ZInfoBox;
|
|
2898
2543
|
exports.z_input = ZInput;
|
|
2899
|
-
exports.z_input_label = ZInputLabel;
|
|
2900
2544
|
exports.z_input_message = ZInputMessage;
|
|
2901
2545
|
exports.z_link = ZLink;
|
|
2902
2546
|
exports.z_modal = ZModal;
|
|
2903
|
-
exports.z_select = ZSelect;
|
|
2904
2547
|
exports.z_typography = ZTypography;
|