@zanichelli/delta_share 2.0.5 → 2.0.8
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} +137 -489
- package/dist/wc/cjs/loader.cjs.js +2 -2
- package/dist/wc/cjs/utils-8a10bba9.js +88 -0
- package/dist/wc/cjs/z-alert.cjs.entry.js +19 -0
- package/dist/wc/cjs/z-app-header.cjs.entry.js +115 -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 +4 -4
- 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 +13 -4
- package/dist/wc/cjs/z-myz-card-alert.cjs.entry.js +63 -0
- package/dist/wc/cjs/z-myz-card-dictionary.cjs.entry.js +36 -0
- package/dist/wc/cjs/z-myz-card-footer-sections.cjs.entry.js +19 -0
- package/dist/wc/cjs/z-myz-card-footer.cjs.entry.js +56 -0
- package/dist/wc/cjs/z-myz-card-icon.cjs.entry.js +21 -0
- package/dist/wc/cjs/z-myz-card-info.cjs.entry.js +119 -0
- package/dist/wc/cjs/{z-card-list.cjs.entry.js → z-myz-card-list.cjs.entry.js} +5 -5
- package/dist/wc/cjs/z-myz-card_4.cjs.entry.js +104 -0
- package/dist/wc/cjs/{z-list-item.cjs.entry.js → z-myz-list-item.cjs.entry.js} +7 -6
- package/dist/wc/cjs/z-myz-topbar.cjs.entry.js +194 -0
- package/dist/wc/cjs/z-navigation-tab-link.cjs.entry.js +71 -0
- package/dist/wc/cjs/z-navigation-tab.cjs.entry.js +73 -0
- package/dist/wc/cjs/z-navigation-tabs.cjs.entry.js +126 -0
- package/dist/wc/cjs/z-notification.cjs.entry.js +46 -0
- package/dist/wc/cjs/z-offcanvas.cjs.entry.js +63 -0
- package/dist/wc/cjs/z-otp.cjs.entry.js +41 -0
- package/dist/wc/cjs/z-pagination-bar.cjs.entry.js +8 -2651
- package/dist/wc/cjs/z-pagination-page.cjs.entry.js +3 -4
- package/dist/wc/cjs/z-pagination.cjs.entry.js +229 -0
- package/dist/wc/cjs/z-panel-elem.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-pocket-message.cjs.entry.js +19 -0
- package/dist/wc/cjs/z-pocket_3.cjs.entry.js +125 -0
- package/dist/wc/cjs/z-popover.cjs.entry.js +132 -0
- package/dist/wc/cjs/z-section-title.cjs.entry.js +42 -0
- package/dist/wc/cjs/z-skip-to-content.cjs.entry.js +68 -0
- package/dist/wc/cjs/z-slideshow.cjs.entry.js +112 -0
- package/dist/wc/cjs/z-status-tag.cjs.entry.js +29 -0
- package/dist/wc/cjs/z-stepper-item.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-stepper.cjs.entry.js +1 -1
- package/dist/wc/cjs/{z-registro-table-body.cjs.entry.js → z-table-body.cjs.entry.js} +5 -5
- package/dist/wc/cjs/z-table-cell.cjs.entry.js +36 -0
- package/dist/wc/cjs/z-table-empty-box.cjs.entry.js +32 -0
- package/dist/wc/cjs/z-table-expanded-row.cjs.entry.js +19 -0
- package/dist/wc/cjs/{z-registro-table-head.cjs.entry.js → z-table-footer.cjs.entry.js} +5 -5
- package/dist/wc/cjs/{z-registro-table-footer.cjs.entry.js → z-table-head.cjs.entry.js} +5 -5
- package/dist/wc/cjs/z-table-header-row.cjs.entry.js +22 -0
- package/dist/wc/cjs/z-table-header.cjs.entry.js +88 -0
- package/dist/wc/cjs/z-table-row.cjs.entry.js +43 -0
- package/dist/wc/cjs/z-table-sticky-footer.cjs.entry.js +19 -0
- package/dist/wc/cjs/z-table.cjs.entry.js +82 -0
- package/dist/wc/cjs/z-tag.cjs.entry.js +22 -0
- package/dist/wc/cjs/z-toast-notification-list.cjs.entry.js +56 -0
- package/dist/wc/cjs/z-toast-notification.cjs.entry.js +203 -0
- package/dist/wc/cjs/z-toggle-button.cjs.entry.js +7 -6
- package/dist/wc/cjs/z-toggle-switch.cjs.entry.js +49 -0
- package/dist/wc/cjs/z-tooltip.cjs.entry.js +254 -24
- package/dist/wc/cjs/z-user-dropdown.cjs.entry.js +46 -51
- package/dist/wc/cjs/z-visually-hidden.cjs.entry.js +19 -0
- package/dist/wc/collection/collection-manifest.json +63 -18
- package/dist/wc/collection/components/license-activation-form/license-activation-form.css +1 -1
- package/dist/wc/collection/components/license-activation-form/license-activation-form.js +18 -18
- package/dist/wc/custom-elements/index.js +8650 -1964
- package/dist/wc/delta_share/delta_share.esm.js +1 -1
- 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-11b446d7.entry.js +1 -0
- package/dist/wc/delta_share/p-13093633.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-29729c73.entry.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-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-36955fc5.entry.js +1 -0
- package/dist/wc/delta_share/p-39440988.entry.js +1 -0
- package/dist/wc/delta_share/p-3bb7f110.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-464dc49d.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-55ecb7aa.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-7f71c41e.entry.js +1 -0
- package/dist/wc/delta_share/p-8b6617d8.entry.js +1 -0
- package/dist/wc/delta_share/p-8b88f257.entry.js +3 -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-98853ba5.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-b1b05625.entry.js +1 -0
- package/dist/wc/delta_share/p-b1c1f030.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-bcb49d1a.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-da0b941f.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-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-fa3d96ab.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} +138 -487
- package/dist/wc/esm/loader.js +2 -2
- package/dist/wc/esm/utils-417652d9.js +80 -0
- package/dist/wc/esm/z-alert.entry.js +15 -0
- package/dist/wc/esm/z-app-header.entry.js +115 -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 +4 -4
- 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 +13 -4
- 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 +1 -2
- 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
|
@@ -1,83 +1,174 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
2
|
-
import { k as
|
|
3
|
-
import { g as getElementTree, h as handleKeyboardSubmit, a as getClickedElement } from './utils-1c638931.js';
|
|
1
|
+
import { r as registerInstance, h, H as Host, a as getElement, c as createEvent } from './index-b3a91e19.js';
|
|
2
|
+
import { w as ListSize, E as ExpandableListButtonAlign, v as ListDividerType, k as DividerSize, z as ExpandableListStyle, F as KeyboardKeys } from './index-654849a7.js';
|
|
4
3
|
|
|
5
|
-
const stylesCss$1 = "
|
|
4
|
+
const stylesCss$1 = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg);display:flex;flex-direction:column}";
|
|
6
5
|
|
|
7
6
|
const ZList = class {
|
|
8
7
|
constructor(hostRef) {
|
|
9
8
|
registerInstance(this, hostRef);
|
|
9
|
+
/**
|
|
10
|
+
* [optional] Sets size of inside elements.
|
|
11
|
+
*/
|
|
12
|
+
this.size = ListSize.medium;
|
|
10
13
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
+
setChildrenSizeType() {
|
|
15
|
+
const children = this.host.children;
|
|
16
|
+
for (let i = 0; i < children.length - 1; i++) {
|
|
17
|
+
children[i].setAttribute("size", this.size);
|
|
14
18
|
}
|
|
15
19
|
}
|
|
16
|
-
|
|
17
|
-
this.
|
|
18
|
-
}
|
|
19
|
-
oninputrawdataChange(newValue) {
|
|
20
|
-
this.parseinputrawdata(newValue);
|
|
20
|
+
componentDidLoad() {
|
|
21
|
+
this.setChildrenSizeType();
|
|
21
22
|
}
|
|
22
23
|
render() {
|
|
23
|
-
|
|
24
|
-
return (h("ul", null, this.list &&
|
|
25
|
-
this.list.map((bean, i) => (h("z-list-item", { listitemid: bean.listitemid, text: bean.text, link: bean.link, linktarget: bean.linktarget, icon: bean.icon, underlined: lastElem != i })))));
|
|
24
|
+
return (h(Host, { role: "list" }, h("slot", null)));
|
|
26
25
|
}
|
|
27
|
-
|
|
28
|
-
"inputrawdata": ["oninputrawdataChange"]
|
|
29
|
-
}; }
|
|
26
|
+
get host() { return getElement(this); }
|
|
30
27
|
};
|
|
31
28
|
ZList.style = stylesCss$1;
|
|
32
29
|
|
|
33
|
-
const stylesCss = ":host{font-family:var(--
|
|
30
|
+
const stylesCss = ":host{outline:none}:host>.container,:host>.container-contextual-menu{--background-color-list-element:var(--bg-white);--background-hover-color-list-element:var(--color-surface02);--background-active-color-list-element:var(--color-surface02);font-family:var(--font-family-sans);font-weight:var(--font-rg);outline:none;display:flex;flex-direction:column;justify-content:center;box-sizing:border-box}:host([size=\"small\"])>.container{padding:calc(var(--space-unit) / 2) 0;min-height:calc(var(--space-unit) * 4)}:host([size=\"medium\"])>.container{padding:var(--space-unit) 0;min-height:calc(var(--space-unit) * 5)}:host([size=\"large\"])>.container{padding:calc(var(--space-unit) * 2) 0;min-height:calc(var(--space-unit) * 7)}:host([size=\"x-large\"])>.container{padding:calc(var(--space-unit) * 3) 0;min-height:calc(var(--space-unit) * 9)}:host([expandable])>.container,:host([expandable])>.container-contextual-menu,:host([clickable])>.container,:host([clickable])>.container-contextual-menu{cursor:pointer}:host([expandable]:hover)>.container,:host([expandable]:hover)>.container-contextual-menu,:host([clickable]:hover)>.container,:host([clickable]:hover)>.container-contextual-menu{background-color:var(--background-hover-color-list-element)}:host([expandable]:focus:focus-visible)>.container,:host([expandable]:focus:focus-visible)>.container-contextual-menu,:host([clickable]:focus:focus-visible)>.container,:host([clickable]:focus:focus-visible)>.container-contextual-menu{box-shadow:var(--shadow-focus-primary)}:host([expandable]:active)>.container,:host([expandable]:active)>.container-contextual-menu,:host([clickable]:active)>.container,:host([clickable]:active)>.container-contextual-menu{background-color:var(--background-active-color-list-element)}:host([align-button=\"left\"][expandable])>.container>.z-list-element-container,:host([align-button=\"left\"][expandable])>.container-contextual-menu>.z-list-element-container{display:flex}:host([align-button=\"right\"][expandable])>.container>.z-list-element-container,:host([align-button=\"right\"][expandable])>.container-contextual-menu>.z-list-element-container{display:flex;flex-direction:row-reverse;justify-content:space-between}:host([align-button=\"left\"][expandable])>.container>.z-list-element-container>z-icon,:host([align-button=\"left\"][expandable])>.container-contextual-menu>.z-list-element-container>z-icon{margin-right:var(--space-unit)}:host([align-button=\"right\"][expandable])>.container>.z-list-element-container>z-icon,:host([align-button=\"right\"][expandable])>.container-contextual-menu>.z-list-element-container>z-icon{margin-left:var(--space-unit)}:host>.container>.z-list-element-inner-container,:host>.container-contextual-menu>.z-list-element-inner-container{display:none}:host>.container>.z-list-element-inner-container.expanded,:host>.container-contextual-menu>.z-list-element-inner-container.expanded{display:block}:host([clickable]:hover)>.container-contextual-menu{background-color:var(--color-surface03)}.container-contextual-menu:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none}";
|
|
34
31
|
|
|
35
|
-
const
|
|
32
|
+
const ZListElement = class {
|
|
33
|
+
/**
|
|
34
|
+
* Constructor.
|
|
35
|
+
*/
|
|
36
36
|
constructor(hostRef) {
|
|
37
37
|
registerInstance(this, hostRef);
|
|
38
|
-
this.
|
|
39
|
-
this.
|
|
40
|
-
|
|
38
|
+
this.accessibleFocus = createEvent(this, "accessibleFocus", 7);
|
|
39
|
+
this.clickItem = createEvent(this, "clickItem", 7);
|
|
40
|
+
/**
|
|
41
|
+
* [optional] Align expandable button left or right.
|
|
42
|
+
*/
|
|
43
|
+
this.alignButton = ExpandableListButtonAlign.left;
|
|
44
|
+
/**
|
|
45
|
+
* [optional] Sets element clickable.
|
|
46
|
+
*/
|
|
47
|
+
this.clickable = false;
|
|
48
|
+
/**
|
|
49
|
+
* [optional] Sets the divider color.
|
|
50
|
+
*/
|
|
51
|
+
this.dividerColor = "color-surface03";
|
|
52
|
+
/**
|
|
53
|
+
* [optional] Sets the position where to insert the divider.
|
|
54
|
+
*/
|
|
55
|
+
this.dividerType = ListDividerType.none;
|
|
56
|
+
/**
|
|
57
|
+
* [optional] Sets the divider size.
|
|
58
|
+
*/
|
|
59
|
+
this.dividerSize = DividerSize.small;
|
|
60
|
+
/**
|
|
61
|
+
* [optional] Sets element as expandable.
|
|
62
|
+
*/
|
|
63
|
+
this.expandable = false;
|
|
64
|
+
/**
|
|
65
|
+
* [optional] Sets expandable style to element.
|
|
66
|
+
*/
|
|
67
|
+
this.expandableStyle = ExpandableListStyle.accordion;
|
|
68
|
+
/**
|
|
69
|
+
* [optional] Sets size of inside elements.
|
|
70
|
+
*/
|
|
71
|
+
this.size = ListSize.medium;
|
|
72
|
+
/**
|
|
73
|
+
* [optional] Sets text color of the element.
|
|
74
|
+
*/
|
|
75
|
+
this.color = "none";
|
|
76
|
+
/**
|
|
77
|
+
* [optional] Sets disabled style of the element.
|
|
78
|
+
*/
|
|
79
|
+
this.disabled = false;
|
|
80
|
+
/**
|
|
81
|
+
* [optional] If is used in ZContextualMenu component
|
|
82
|
+
*/
|
|
83
|
+
this.isContextualMenu = false;
|
|
84
|
+
this.showInnerContent = false;
|
|
85
|
+
this.openElementConfig = {
|
|
86
|
+
accordion: {
|
|
87
|
+
open: "minus-circled",
|
|
88
|
+
close: "plus-circled",
|
|
89
|
+
},
|
|
90
|
+
menu: {
|
|
91
|
+
open: "chevron-up",
|
|
92
|
+
close: "chevron-down",
|
|
93
|
+
},
|
|
94
|
+
};
|
|
95
|
+
this.handleClick = this.handleClick.bind(this);
|
|
96
|
+
this.handleKeyDown = this.handleKeyDown.bind(this);
|
|
41
97
|
}
|
|
42
|
-
|
|
43
|
-
this.
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
98
|
+
accessibleFocusHandler(e) {
|
|
99
|
+
if (this.listElementId === e.detail) {
|
|
100
|
+
const toFocus = this.host.shadowRoot.getElementById(`z-list-element-id-${e.detail}`);
|
|
101
|
+
toFocus.focus();
|
|
102
|
+
}
|
|
47
103
|
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
104
|
+
/**
|
|
105
|
+
* Handler for click on element. If element is expandable, change state.
|
|
106
|
+
* @returns void
|
|
107
|
+
*/
|
|
108
|
+
handleClick() {
|
|
109
|
+
this.clickItem.emit(this.listElementId);
|
|
110
|
+
if (!this.expandable) {
|
|
111
|
+
return;
|
|
51
112
|
}
|
|
113
|
+
this.showInnerContent = !this.showInnerContent;
|
|
52
114
|
}
|
|
53
|
-
|
|
54
|
-
|
|
115
|
+
calculateClass() {
|
|
116
|
+
if (this.isContextualMenu) {
|
|
117
|
+
return "container-contextual-menu";
|
|
118
|
+
}
|
|
119
|
+
return "container";
|
|
55
120
|
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
121
|
+
handleKeyDown(event) {
|
|
122
|
+
const expandByKey = event.code === KeyboardKeys.ENTER;
|
|
123
|
+
switch (event.code) {
|
|
124
|
+
case KeyboardKeys.ARROW_DOWN:
|
|
125
|
+
event.preventDefault();
|
|
126
|
+
this.accessibleFocus.emit(this.listElementId + 1);
|
|
127
|
+
break;
|
|
128
|
+
case KeyboardKeys.ARROW_UP:
|
|
129
|
+
event.preventDefault();
|
|
130
|
+
this.accessibleFocus.emit(this.listElementId - 1);
|
|
131
|
+
break;
|
|
132
|
+
case KeyboardKeys.ENTER:
|
|
133
|
+
event.preventDefault();
|
|
134
|
+
this.clickItem.emit(this.listElementId);
|
|
135
|
+
break;
|
|
136
|
+
}
|
|
137
|
+
if (!this.expandable || !expandByKey) {
|
|
138
|
+
return;
|
|
139
|
+
}
|
|
140
|
+
this.showInnerContent = !this.showInnerContent;
|
|
59
141
|
}
|
|
60
|
-
|
|
61
|
-
|
|
142
|
+
/**
|
|
143
|
+
* Renders button to expand element.
|
|
144
|
+
* @returns expadable button
|
|
145
|
+
*/
|
|
146
|
+
renderExpandableButton() {
|
|
147
|
+
if (!this.expandable) {
|
|
148
|
+
return null;
|
|
149
|
+
}
|
|
150
|
+
return (h("z-icon", { name: this.showInnerContent
|
|
151
|
+
? this.openElementConfig[this.expandableStyle].open
|
|
152
|
+
: this.openElementConfig[this.expandableStyle].close }));
|
|
62
153
|
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
if (!
|
|
69
|
-
|
|
70
|
-
document.removeEventListener("keyup", this.handleFocus);
|
|
71
|
-
this.ismenuopen = false;
|
|
154
|
+
/**
|
|
155
|
+
* Renders expanded content if element is expandable.
|
|
156
|
+
* @returns expanded content
|
|
157
|
+
*/
|
|
158
|
+
renderExpandedContent() {
|
|
159
|
+
if (!this.expandable) {
|
|
160
|
+
return null;
|
|
72
161
|
}
|
|
162
|
+
return (h("div", { class: {
|
|
163
|
+
"z-list-element-inner-container": true,
|
|
164
|
+
expanded: this.showInnerContent,
|
|
165
|
+
} }, h("slot", { name: "inner-content" })));
|
|
73
166
|
}
|
|
74
167
|
render() {
|
|
75
|
-
return (h("
|
|
76
|
-
document.addEventListener("click", this.handleFocus);
|
|
77
|
-
document.addEventListener("keyup", this.handleFocus);
|
|
78
|
-
}, onKeyUp: (e) => handleKeyboardSubmit(e, this.handleToggle) }, h("div", { class: "container", onClick: () => this.handleToggle() }, h("span", { class: "user-wrapper" }, h("z-icon", { name: "user-avatar", width: 14, height: 14 }), h("span", { class: "user" }, this.nomeutente)), this.renderButtonMenu()), this.renderMenuOpen()));
|
|
168
|
+
return (h(Host, { role: "listitem", "aria-expanded": this.expandable ? this.showInnerContent : null, onClick: this.handleClick, onKeyDown: this.handleKeyDown, clickable: this.clickable && !this.disabled, tabIndex: !this.isContextualMenu ? "0" : null }, h("div", { class: `${this.calculateClass()}`, style: { color: `var(--${this.color})` }, tabindex: this.isContextualMenu ? "0" : "-1", id: `z-list-element-id-${this.listElementId}` }, h("div", { class: "z-list-element-container" }, this.renderExpandableButton(), h("slot", null)), this.renderExpandedContent()), this.dividerType === ListDividerType.element && (h("z-divider", { color: this.dividerColor, size: this.dividerSize }))));
|
|
79
169
|
}
|
|
170
|
+
get host() { return getElement(this); }
|
|
80
171
|
};
|
|
81
|
-
|
|
172
|
+
ZListElement.style = stylesCss;
|
|
82
173
|
|
|
83
|
-
export { ZList as z_list,
|
|
174
|
+
export { ZList as z_list, ZListElement as z_list_element };
|
|
@@ -1,20 +1,22 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-b3a91e19.js';
|
|
2
2
|
|
|
3
|
-
const stylesCss = ":host{
|
|
3
|
+
const stylesCss = ":host{display:inline-block;vertical-align:top;width:255px;height:64px}img{display:block;margin:auto;width:100%;height:100%;content:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='255px' height='64px' viewBox='0 0 255 64'%3E%3Cg id='Logo/Zanichelli/Centered-(reworked)' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg id='Group'%3E%3Cpolygon id='Background' fill='%23E2001A' points='1.70530257e-13 64 254.39 64 254.39 0 1.70530257e-13 0'%3E%3C/polygon%3E%3Cpath d='M233.36,51.3553859 L242.390252,51.3553859 L242.390252,12.6427292 L233.36,12.6427292 L233.36,51.3553859 Z M211.120346,51.3553859 L230.477617,51.3553859 L230.477617,44.5040053 L220.685891,44.5040053 L220.685891,12.6427292 L211.120346,12.6427292 L211.120346,51.3553859 Z M188.880124,51.3553859 L208.23551,51.3553859 L208.23551,44.5040053 L198.445669,44.5040053 L198.445669,12.6427292 L188.880124,12.6427292 L188.880124,51.3553859 Z M165.354444,12.6427292 L165.354444,51.3553859 L185.999058,51.3553859 L185.999058,44.5021204 L175.027425,44.5021204 L175.027425,35.1778343 L185.377062,35.1778343 L185.377062,28.2699086 L175.027425,28.2699086 L175.027425,19.4978796 L185.999058,19.4978796 L185.999058,12.6427292 L165.354444,12.6427292 Z M136.666196,51.3553859 L146.239281,51.3553859 L146.239281,35.1778343 L152.902178,35.1778343 L152.902178,51.3553859 L162.473377,51.3553859 L162.473377,12.6427292 L152.902178,12.6427292 L152.902178,28.2717934 L146.239281,28.2717934 L146.239281,12.6427292 L136.666196,12.6427292 L136.666196,51.3553859 Z M96.064744,51.3553859 L105.098765,51.3553859 L105.098765,12.6427292 L96.064744,12.6427292 L96.064744,51.3553859 Z M53.2364527,36.5160682 L50.6824993,19.7429083 L48.0757704,36.5160682 L53.2364527,36.5160682 Z M65.4935444,51.3553859 L56.2710395,51.3553859 L54.9441146,42.5286966 L47.7101121,42.5286966 L46.3304118,51.3553859 L37.1060221,51.3553859 L45.0053718,12.6427292 L57.5960795,12.6427292 L65.4935444,51.3553859 Z M85.0468382,37.7581755 L76.7969089,12.6427292 L67.3764961,12.6427292 L67.3764961,51.3553859 L75.4040147,51.3553859 L75.4040147,26.132504 L83.5955141,51.3553859 L93.1855622,51.3553859 L93.1855622,12.6427292 L85.0468382,12.6427292 L85.0468382,37.7581755 Z M107.977948,32 C107.977948,34.5200264 107.977948,36.7893695 108.187165,39.1246819 C108.396382,41.4713034 108.818585,43.6878711 109.678071,45.6009801 C111.423429,49.487513 114.932995,52 121.708982,52 C129.508435,52 133.787014,48.4753558 133.787014,38.0220526 L133.787014,37.5640373 L124.937707,37.5640373 L124.922628,38.0050891 C124.894356,38.7571388 124.884931,39.6185091 124.826501,40.4855339 C124.769956,41.3431345 124.66629,42.1875412 124.460843,42.9301668 C124.048064,44.3965696 123.279051,45.3559514 121.708982,45.3559514 C117.743286,45.3559514 117.057205,42.0574875 117.057205,32 C117.057205,21.9425125 117.743286,18.6440486 121.708982,18.6440486 C123.605127,18.6440486 124.547546,20.0030157 124.547546,25.1806616 L124.547546,25.6424465 L133.344077,25.6424465 L133.361041,25.1995099 C133.689003,16.7855998 130.235982,12 121.708982,12 C114.934879,12 111.427199,14.4823297 109.678071,18.3594383 C108.818585,20.265008 108.396382,22.4778061 108.187165,24.830082 C107.977948,27.1710489 107.977948,29.4554707 107.977948,32 L107.977948,32 Z M34.9007634,12.6446141 L34.9007634,20.3196683 L21.6051268,44.5040053 L35.2268401,44.5040053 L35.2268401,51.3553859 L12,51.3553859 L12,43.7915371 L25.2975214,19.4997644 L13.683159,19.4997644 L13.683159,12.6446141 L34.9007634,12.6446141 Z' id='Logotipo-(reworked)' fill='%23FFFFFF'%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/svg%3E\")}a{display:block;width:100%;height:100%}:host(.mobile){width:31px;height:40px}:host(.mobile) img{content:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='31px' height='40px' viewBox='0 0 31 40'%3E%3Cg id='Symbols' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg id='Topbar/Mobile/Logged' transform='translate(-16.000000, -4.000000)'%3E%3Cg id='Group' transform='translate(16.000000, 4.000000)'%3E%3Cpolygon id='Fill-1' fill='%23E2001A' points='0 40 30.625 40 30.625 0 0 0'%3E%3C/polygon%3E%3Cpolygon id='Fill-2' fill='%23FEFEFE' points='8.17111587 6.20689655 23.4311708 6.20689655 23.4311708 11.671267 13.8691261 28.9163861 23.6647727 28.9163861 23.6647727 33.7931034 6.96022727 33.7931034 6.96022727 28.408218 16.522272 11.0831673 8.17111587 11.0831673'%3E%3C/polygon%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E\")}";
|
|
4
4
|
|
|
5
5
|
const ZLogo = class {
|
|
6
6
|
constructor(hostRef) {
|
|
7
7
|
registerInstance(this, hostRef);
|
|
8
|
-
/** image width */
|
|
9
|
-
this.width = 163;
|
|
10
|
-
/** image height */
|
|
11
|
-
this.height = 42;
|
|
12
|
-
}
|
|
13
|
-
renderSvg() {
|
|
14
|
-
return (h("svg", { width: `${this.width}px`, height: `${this.height}px`, viewBox: "0 0 163 42" }, h("title", null, this.imagealt), h("g", { stroke: "none", "stroke-width": "1", fill: "none", "fill-rule": "evenodd" }, h("g", { transform: "translate(-663.000000, -534.000000)" }, h("g", { transform: "translate(371.000000, 369.000000)" }, h("g", { transform: "translate(285.000000, 2.000000)" }, h("g", { transform: "translate(0.000000, 156.000000)" }, h("g", null, h("g", { transform: "translate(7.636364, 7.636364)" }, h("polygon", { points: "1.70530257e-13 40.7272727 161.884545 40.7272727 161.884545 0 1.70530257e-13 0" }), h("path", { d: "M148.501818,32.6807001 L154.248342,32.6807001 L154.248342,8.04537315 L148.501818,8.04537315 L148.501818,32.6807001 Z M134.349311,32.6807001 L146.667574,32.6807001 L146.667574,28.3207306 L140.436476,28.3207306 L140.436476,8.04537315 L134.349311,8.04537315 L134.349311,32.6807001 Z M120.196443,32.6807001 L132.513506,32.6807001 L132.513506,28.3207306 L126.283608,28.3207306 L126.283608,8.04537315 L120.196443,8.04537315 L120.196443,32.6807001 Z M105.225555,8.04537315 L105.225555,32.6807001 L118.363037,32.6807001 L118.363037,28.3195312 L111.381089,28.3195312 L111.381089,22.3858946 L117.967221,22.3858946 L117.967221,17.9899418 L111.381089,17.9899418 L111.381089,12.4077415 L118.363037,12.4077415 L118.363037,8.04537315 L105.225555,8.04537315 Z M86.9693975,32.6807001 L93.0613603,32.6807001 L93.0613603,22.3858946 L97.3013857,22.3858946 L97.3013857,32.6807001 L103.392149,32.6807001 L103.392149,8.04537315 L97.3013857,8.04537315 L97.3013857,17.9911413 L93.0613603,17.9911413 L93.0613603,8.04537315 L86.9693975,8.04537315 L86.9693975,32.6807001 Z M61.1321098,32.6807001 L66.8810325,32.6807001 L66.8810325,8.04537315 L61.1321098,8.04537315 L61.1321098,32.6807001 Z M33.8777427,23.237498 L32.2524996,12.5636689 L30.5936721,23.237498 L33.8777427,23.237498 Z M41.6777101,32.6807001 L35.8088433,32.6807001 L34.9644366,27.063716 L30.3609805,27.063716 L29.4829894,32.6807001 L23.6129231,32.6807001 L28.639782,8.04537315 L36.6520506,8.04537315 L41.6777101,32.6807001 Z M54.1207152,24.0279298 L48.8707602,8.04537315 L42.8759521,8.04537315 L42.8759521,32.6807001 L47.984373,32.6807001 L47.984373,16.6297753 L53.1971453,32.6807001 L59.2999032,32.6807001 L59.2999032,8.04537315 L54.1207152,8.04537315 L54.1207152,24.0279298 Z M68.7132396,20.3636364 C68.7132396,21.9672895 68.7132396,23.411417 68.8463776,24.8975249 C68.9795156,26.3908294 69.2481905,27.8013725 69.7951358,29.0188055 C70.9058185,31.4920537 73.1391784,33.0909091 77.4511703,33.0909091 C82.4144588,33.0909091 85.1371908,30.8479537 85.1371908,24.1958516 L85.1371908,23.9043874 L79.5058134,23.9043874 L79.4962178,24.1850567 C79.4782262,24.6636338 79.472229,25.2117785 79.4350463,25.7635216 C79.3990631,26.3092674 79.3330938,26.8466171 79.2023547,27.3191971 C78.939677,28.2523625 78.4503049,28.8628781 77.4511703,28.8628781 C74.9275455,28.8628781 74.4909489,26.7638557 74.4909489,20.3636364 C74.4909489,13.963417 74.9275455,11.8643946 77.4511703,11.8643946 C78.6578083,11.8643946 79.257529,12.7291918 79.257529,16.0240574 L79.257529,16.3179205 L84.855322,16.3179205 L84.866117,16.0360518 C85.0748198,10.6817454 82.8774432,7.63636364 77.4511703,7.63636364 C73.1403779,7.63636364 70.9082174,9.21602796 69.7951358,11.6832789 C69.2481905,12.8959142 68.9795156,14.3040584 68.8463776,15.8009613 C68.7132396,17.2906675 68.7132396,18.7443905 68.7132396,20.3636364 L68.7132396,20.3636364 Z M22.2095767,8.0465726 L22.2095767,12.930698 L13.748717,28.3207306 L22.41708,28.3207306 L22.41708,32.6807001 L7.63636364,32.6807001 L7.63636364,27.8673418 L16.0984227,12.408941 L8.70746481,12.408941 L8.70746481,8.0465726 L22.2095767,8.0465726 Z" }))))))))));
|
|
15
8
|
}
|
|
16
9
|
render() {
|
|
17
|
-
|
|
10
|
+
const style = {};
|
|
11
|
+
if (this.width) {
|
|
12
|
+
style["width"] = style["max-width"] = `${this.width}px`;
|
|
13
|
+
}
|
|
14
|
+
if (this.height) {
|
|
15
|
+
style["height"] = style["max-height"] = `${this.height}px`;
|
|
16
|
+
}
|
|
17
|
+
return (h(Host, { style: style, class: { "mobile": !!this.mobileLogo } }, this.link ?
|
|
18
|
+
h("a", { href: this.link, target: this.targetBlank ? "_blank" : "_self" }, h("img", { alt: this.imageAlt })) :
|
|
19
|
+
h("img", { alt: this.imageAlt })));
|
|
18
20
|
}
|
|
19
21
|
};
|
|
20
22
|
ZLogo.style = stylesCss;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { r as registerInstance, h } from './index-b3a91e19.js';
|
|
2
|
+
import { d as KeyboardKeyCodeEnum } from './index-654849a7.js';
|
|
3
|
+
import { a as getElementTree, h as handleKeyboardSubmit, d as getClickedElement } from './utils-417652d9.js';
|
|
4
|
+
import './breakpoints-e07f80e7.js';
|
|
5
|
+
|
|
6
|
+
const stylesCss$1 = ":host{font-family:var(--dashboard-font);font-weight:var(--font-sb);font-size:12px;height:32px;width:inherit;letter-spacing:0.17px}a,a:visited,a:active{color:inherit;text-decoration:none}:host>a{display:block;background:var(--bg-grey-050);color:var(--text-grey-800);border-radius:var(--border-radius);border:var(--border-size-small) solid transparent;outline:none}:host>a::-moz-focus-inner{border:0}:host>a:hover,:host>a.menu-opened:hover{color:var(--myz-blue-dark);fill:var(--myz-blue-dark)}:host>a:focus{color:var(--myz-blue);fill:var(--myz-blue);border:var(--border-size-small) solid var(--myz-blue);box-shadow:0px 0px 2px 2px var(--myz-blue-light)}:host>a:active{color:var(--myz-blue-light);fill:var(--myz-blue-light);border:var(--border-size-small) solid var(--myz-blue-light);box-shadow:0px 2px 4px 0px rgba(0, 0, 0, 0.4)}div.container{display:flex;align-items:center;justify-content:space-between;height:32px;position:relative;padding:0 var(--basex1)}div.container>span.user-wrapper{display:flex}div.container>span.user-wrapper>span.user{padding:0 var(--basex1);text-overflow:ellipsis;white-space:nowrap;overflow:hidden;cursor:pointer;width:30px}div.container>span.arrow{display:flex;justify-content:center;align-items:center}div.container>span.arrow>z-icon{transform:rotate(360deg);transition:all 200ms linear}ul{list-style:none;padding:0 calc(var(--space-unit) * 2);margin:0px}li{height:var(--basex3);display:flex;align-items:center;padding:calc(var(--space-unit) / 4) 0;width:max-content}.menu-opened{padding-bottom:calc(var(--space-unit) * 2);width:auto !important;min-width:147px;position:inherit}.menu-opened a,.menu-opened a:active,.menu-opened a:visited{color:var(--myz-blue);fill:var(--myz-blue)}.menu-opened a:hover{color:var(--myz-blue-dark);fill:var(--myz-blue-dark)}.menu-opened>div.container{margin-bottom:var(--basex1)}.menu-opened>div.container>span.user-wrapper>span.user{width:auto}.menu-opened>div.container>span.arrow>z-icon{transform:rotate(180deg);transition:all 200ms linear}@media only screen and (min-width: 1152px){:host>a{width:147px;padding:0 calc(var(--space-unit) / 4)}:host>a.menu-opened{width:147px;padding-bottom:calc(var(--space-unit) * 2)}div.container>span.user-wrapper>span.user{width:80px}}";
|
|
7
|
+
|
|
8
|
+
const ZMenuDropdown = class {
|
|
9
|
+
constructor(hostRef) {
|
|
10
|
+
registerInstance(this, hostRef);
|
|
11
|
+
this.ismenuopen = false;
|
|
12
|
+
this.handleToggle = this.handleToggle.bind(this);
|
|
13
|
+
this.handleFocus = this.handleFocus.bind(this);
|
|
14
|
+
}
|
|
15
|
+
componentWillRender() {
|
|
16
|
+
this.linkarray =
|
|
17
|
+
typeof this.menucontent === "string"
|
|
18
|
+
? JSON.parse(this.menucontent)
|
|
19
|
+
: this.menucontent;
|
|
20
|
+
}
|
|
21
|
+
renderMenuOpen() {
|
|
22
|
+
if (this.ismenuopen) {
|
|
23
|
+
return (h("ul", null, this.linkarray.map((bean) => (h("li", null, h("z-link", { htmlid: bean.id, href: bean.link, icon: bean.icon }, bean.label))))));
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
renderButtonMenu() {
|
|
27
|
+
return (h("span", { class: "arrow" }, h("z-icon", { name: "caret-down", width: 14, height: 14 })));
|
|
28
|
+
}
|
|
29
|
+
retriveMenuClass() {
|
|
30
|
+
if (this.ismenuopen)
|
|
31
|
+
return "menu-opened";
|
|
32
|
+
}
|
|
33
|
+
handleToggle() {
|
|
34
|
+
this.ismenuopen = !this.ismenuopen;
|
|
35
|
+
}
|
|
36
|
+
handleFocus(e) {
|
|
37
|
+
if (e instanceof KeyboardEvent && e.keyCode !== KeyboardKeyCodeEnum.TAB)
|
|
38
|
+
return;
|
|
39
|
+
const tree = getElementTree(getClickedElement());
|
|
40
|
+
const menuParent = tree.find((elem) => elem.nodeName.toLowerCase() === "z-menu-dropdown");
|
|
41
|
+
if (!menuParent) {
|
|
42
|
+
document.removeEventListener("click", this.handleFocus);
|
|
43
|
+
document.removeEventListener("keyup", this.handleFocus);
|
|
44
|
+
this.ismenuopen = false;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
render() {
|
|
48
|
+
return (h("a", { class: this.retriveMenuClass(), role: "button", tabindex: "0", onFocus: () => {
|
|
49
|
+
document.addEventListener("click", this.handleFocus);
|
|
50
|
+
document.addEventListener("keyup", this.handleFocus);
|
|
51
|
+
}, onKeyUp: (e) => handleKeyboardSubmit(e, this.handleToggle) }, h("div", { class: "container", onClick: () => this.handleToggle() }, h("span", { class: "user-wrapper" }, h("z-icon", { name: "user-avatar", width: 14, height: 14 }), h("span", { class: "user" }, this.nomeutente)), this.renderButtonMenu()), this.renderMenuOpen()));
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
ZMenuDropdown.style = stylesCss$1;
|
|
55
|
+
|
|
56
|
+
const stylesCss = "ul{margin:0;padding:0}";
|
|
57
|
+
|
|
58
|
+
const ZMyzList = class {
|
|
59
|
+
constructor(hostRef) {
|
|
60
|
+
registerInstance(this, hostRef);
|
|
61
|
+
}
|
|
62
|
+
componentWillLoad() {
|
|
63
|
+
if (this.inputrawdata) {
|
|
64
|
+
this.parseinputrawdata(this.inputrawdata);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
parseinputrawdata(inputrawdata) {
|
|
68
|
+
this.list = [...JSON.parse(inputrawdata)];
|
|
69
|
+
}
|
|
70
|
+
oninputrawdataChange(newValue) {
|
|
71
|
+
this.parseinputrawdata(newValue);
|
|
72
|
+
}
|
|
73
|
+
render() {
|
|
74
|
+
const lastElem = this.list ? this.list.length - 1 : -1;
|
|
75
|
+
return (h("ul", null, this.list &&
|
|
76
|
+
this.list.map((bean, i) => (h("z-myz-list-item", { listitemid: bean.listitemid, text: bean.text, link: bean.link, linktarget: bean.linktarget, icon: bean.icon, underlined: lastElem != i })))));
|
|
77
|
+
}
|
|
78
|
+
static get watchers() { return {
|
|
79
|
+
"inputrawdata": ["oninputrawdataChange"]
|
|
80
|
+
}; }
|
|
81
|
+
};
|
|
82
|
+
ZMyzList.style = stylesCss;
|
|
83
|
+
|
|
84
|
+
export { ZMenuDropdown as z_menu_dropdown, ZMyzList as z_myz_list };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-b3a91e19.js';
|
|
2
2
|
|
|
3
|
-
const stylesCss = ":host{display:inline-flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:0;font-family:var(--
|
|
3
|
+
const stylesCss = ":host{display:inline-flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:0;font-family:var(--font-family-sans)}:host,::slotted(*),*{box-sizing:border-box}::slotted(a){text-decoration:none}::slotted(*){font-family:var(--font-family-sans);font-weight:var(--font-rg);color:var(--color-text01)}:host([active]) .label,:host([open]) .label,.label:hover{border-color:var(--color-secondary01)}.label{display:flex;align-items:center;width:100%;margin:0;padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 0.5);text-align:left;background:transparent;border-radius:0;border:0;border-bottom:var(--border-size-small) solid var(--color-surface05);cursor:pointer}.label ::slotted(*){width:100%;margin:0;font-size:var(--font-size-3);line-height:1.25}.label:focus:focus-visible{outline:none;box-shadow:var(--shadow-focus-primary)}.label z-icon{margin-left:calc(var(--space-unit) * 4);fill:currentColor}.items{display:flex;flex-direction:column;width:100%;padding:calc(var(--space-unit) * 0.5);padding-bottom:calc(var(--space-unit) * 2)}.items>::slotted([slot='item']){display:inline-flex;margin:0;padding:calc(var(--space-unit) * 0.5);font-size:var(--font-size-2);line-height:1.4;outline:none}.items>::slotted([slot='item']:last-child){padding-bottom:0}.items>::slotted([slot='item']:focus:focus-visible){box-shadow:var(--shadow-focus-primary);color:var(--color-secondary01)}.items>::slotted([slot='item']:hover){color:var(--color-secondary01)}";
|
|
4
4
|
|
|
5
5
|
const ZMenuSection = class {
|
|
6
6
|
constructor(hostRef) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h,
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, a as getElement } from './index-b3a91e19.js';
|
|
2
2
|
|
|
3
|
-
const stylesCss = ":host,::slotted(*),*{box-sizing:border-box}:host{display:inline-flex;flex-direction:column;
|
|
3
|
+
const stylesCss = ":host,::slotted(*),*{box-sizing:border-box}:host{display:inline-flex;flex-direction:column;position:relative}::slotted(a){color:var(--color-text01);text-decoration:none}::slotted(*){font-family:var(--font-family-sans);font-weight:var(--font-rg)}.menu-label{margin:0;padding:0;color:inherit;background:transparent;border:0;border-radius:0;outline:none;text-align:left}button.menu-label{cursor:pointer}.menu-label:focus-within{z-index:1;box-shadow:var(--shadow-focus-primary);margin-right:calc(var(--space-unit) * -0.5);margin-left:calc(var(--space-unit) * -0.5);padding-right:calc(var(--space-unit) * 0.5);padding-left:calc(var(--space-unit) * 0.5)}.menu-label .menu-label-content{display:flex;align-items:center;padding:var(--space-unit) 0;border-bottom:var(--border-size-large) solid var(--color-surface05)}:host([active]) .menu-label-content,:host([open]) .menu-label-content,.menu-label:hover .menu-label-content,.menu-label:focus-within .menu-label-content{border-color:var(--color-secondary01)}.menu-label ::slotted(*){width:100%;margin:0;appearance:none;font-size:var(--font-size-5);line-height:1.2;outline:none}.menu-label z-icon{margin-left:calc(var(--space-unit) * 4);fill:currentColor}.content{background:var(--color-surface01)}.content[hidden]{display:none}:host([floating]) .content{width:375px;max-width:100vw;padding:var(--space-unit) var(--space-unit) calc(var(--space-unit) * 2)}:host(:not([floating])) .content{width:100%}:host([floating]) .content{position:absolute;top:100%;left:0;box-shadow:var(--shadow-2);min-width:100%}.header{display:flex;align-items:center;padding:var(--space-unit) 0 calc(var(--space-unit) * 2)}.header ::slotted(img[slot='header']){width:calc(var(--space-unit) * 11.25);object-fit:contain;height:auto}.header ::slotted([slot='header']:not(:first-child)){margin:auto 0;margin-left:calc(var(--space-unit) * 2.5);font-weight:var(--font-sb);font-size:var(--font-size-3);line-height:1.5}.items{display:flex;flex-direction:column;align-items:flex-start;background:inherit}.items>::slotted([slot='item']){display:inline-flex;width:100%;margin:0;font-size:var(--font-size-3);line-height:1.25;outline:none}.items>::slotted([slot='item']:focus:focus-visible){box-shadow:var(--shadow-focus-primary)}.items>::slotted([slot='item']:not(z-menu-section)){padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 0.5);border-bottom:var(--border-size-small) solid var(--color-surface05)}.items>::slotted([slot='item']:hover),.items>::slotted([slot='item']:active){border-color:var(--color-secondary01)}";
|
|
4
4
|
|
|
5
5
|
const ZMenu = class {
|
|
6
6
|
constructor(hostRef) {
|
|
@@ -14,6 +14,14 @@ const ZMenu = class {
|
|
|
14
14
|
* @default false
|
|
15
15
|
*/
|
|
16
16
|
this.floating = false;
|
|
17
|
+
/**
|
|
18
|
+
* The opening state of the menu.
|
|
19
|
+
* @default false
|
|
20
|
+
*/
|
|
21
|
+
this.open = false;
|
|
22
|
+
this.toggle = this.toggle.bind(this);
|
|
23
|
+
this.checkContent = this.checkContent.bind(this);
|
|
24
|
+
this.onItemsChange = this.onItemsChange.bind(this);
|
|
17
25
|
}
|
|
18
26
|
toggle() {
|
|
19
27
|
if (!this.hasContent) {
|
|
@@ -29,9 +37,38 @@ const ZMenu = class {
|
|
|
29
37
|
this.hostElement.contains(ev.target)) {
|
|
30
38
|
return;
|
|
31
39
|
}
|
|
40
|
+
this.reflow();
|
|
32
41
|
this.open = false;
|
|
33
42
|
this.closed.emit();
|
|
34
43
|
}
|
|
44
|
+
onOpenChanged() {
|
|
45
|
+
if (this.open) {
|
|
46
|
+
this.reflow(true);
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
cancelAnimationFrame(this.raf);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
componentWillLoad() {
|
|
53
|
+
this.checkContent();
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Correctly set position of the floating menu in order to prevent overflow.
|
|
57
|
+
* @param live Should run the method on every refresh frame.
|
|
58
|
+
*/
|
|
59
|
+
reflow(live = false) {
|
|
60
|
+
if (this.content) {
|
|
61
|
+
const { style } = this.content;
|
|
62
|
+
const { left } = this.hostElement.getBoundingClientRect();
|
|
63
|
+
const widthPx = getComputedStyle(this.content).width;
|
|
64
|
+
const width = widthPx ? parseFloat(widthPx.replace('px', '')) : 375;
|
|
65
|
+
const safeScrollbarSpace = 30;
|
|
66
|
+
style.left = `${Math.min(window.innerWidth - left - width - safeScrollbarSpace, 0)}px`;
|
|
67
|
+
}
|
|
68
|
+
if (live) {
|
|
69
|
+
this.raf = requestAnimationFrame(this.reflow.bind(this, live));
|
|
70
|
+
}
|
|
71
|
+
}
|
|
35
72
|
/**
|
|
36
73
|
* Check if some content slot is set.
|
|
37
74
|
*/
|
|
@@ -39,13 +76,30 @@ const ZMenu = class {
|
|
|
39
76
|
this.hasHeader = !!this.hostElement.querySelectorAll('[slot="header"]').length;
|
|
40
77
|
this.hasContent = !!this.hostElement.querySelectorAll('[slot="item"]').length || this.hasHeader;
|
|
41
78
|
}
|
|
42
|
-
|
|
79
|
+
/**
|
|
80
|
+
* Set `menuitem` role to all menu items.
|
|
81
|
+
*/
|
|
82
|
+
onItemsChange() {
|
|
43
83
|
this.checkContent();
|
|
84
|
+
const items = this.hostElement.querySelectorAll('[slot="item"]');
|
|
85
|
+
items === null || items === void 0 ? void 0 : items.forEach((item) => item.setAttribute('role', 'menuitem'));
|
|
86
|
+
}
|
|
87
|
+
renderMenuLabel() {
|
|
88
|
+
if (this.hasContent) {
|
|
89
|
+
return h("button", { class: "menu-label", "aria-expanded": this.open ? 'true' : 'false', "aria-label": this.open ? 'Chiudi menù' : 'Apri menù', onClick: this.toggle }, h("div", { class: "menu-label-content" }, h("slot", null), h("z-icon", { name: this.open ? 'chevron-up' : 'chevron-down' })));
|
|
90
|
+
}
|
|
91
|
+
return h("div", { class: "menu-label" }, h("div", { class: "menu-label-content" }, h("slot", null)));
|
|
44
92
|
}
|
|
45
93
|
render() {
|
|
46
|
-
return
|
|
94
|
+
return [
|
|
95
|
+
this.renderMenuLabel(),
|
|
96
|
+
h("div", { class: "content", ref: (el) => { this.content = el; }, hidden: !this.open }, this.hasHeader && h("header", { class: "header" }, h("slot", { name: "header", onSlotchange: this.checkContent })), h("div", { class: "items", role: "menu" }, h("slot", { name: "item", onSlotchange: this.onItemsChange })))
|
|
97
|
+
];
|
|
47
98
|
}
|
|
48
99
|
get hostElement() { return getElement(this); }
|
|
100
|
+
static get watchers() { return {
|
|
101
|
+
"open": ["onOpenChanged"]
|
|
102
|
+
}; }
|
|
49
103
|
};
|
|
50
104
|
ZMenu.style = stylesCss;
|
|
51
105
|
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { r as registerInstance, h } from './index-b3a91e19.js';
|
|
2
|
+
import { l as PocketStatusEnum } from './index-654849a7.js';
|
|
3
|
+
|
|
4
|
+
const stylesCss = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>z-pocket{width:100%}:host>z-pocket.closed{width:158px}:host>z-pocket>z-pocket-header{font-size:12px;font-weight:var(--font-sb);color:var(--color-primary01);fill:var(--color-primary01)}:host>z-pocket>z-pocket-header span.badge{background:var(--color-secondary02);color:var(--color-surface01);border-radius:50%;padding:0 calc(var(--space-unit)* 0.5);display:inline-block;margin-left:var(--space-unit)}:host>z-pocket>z-pocket-header>z-icon{margin-left:var(--space-unit)}:host>z-pocket>z-pocket-body>div.body{overflow:hidden;margin:0 var(--space-unit);padding:var(--space-unit)}:host>z-pocket.preview>z-pocket-body{position:relative}:host>z-pocket.preview>z-pocket-body>div.gradient{background-image:linear-gradient(rgba(255, 0, 0, 0), white);position:absolute;top:0;left:0;right:0;bottom:0}:host>z-pocket.open>z-pocket-body>div.body{max-height:calc(100vh - 166px);overflow:auto;scrollbar-width:none}:host ::-webkit-scrollbar{width:0}@media only screen and (min-width: 768px){:host>z-pocket{width:768px;margin:0 calc((100% - 768px) / 2)}:host>z-pocket.closed{margin:0 calc((100% - 158px) / 2)}:host>z-pocket.open>z-pocket-body>div.body{max-height:326px}}@media only screen and (min-width: 1152px){:host>z-pocket.open>z-pocket-body>div.body{scrollbar-width:thin;scrollbar-color:var(--color-primary01) var(--color-surface03)}:host ::-webkit-scrollbar{background:linear-gradient(\n 90deg,\n var(--color-surface01) 2px,\n var(--color-surface03) 4px,\n var(--color-surface01) 8px\n );border-radius:var(--radius-base);width:10px}:host ::-webkit-scrollbar-thumb{background-color:var(--color-primary01);border-radius:var(--radius-base);width:var(--space-unit)}}";
|
|
5
|
+
|
|
6
|
+
const ZMessagesPocket = class {
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
registerInstance(this, hostRef);
|
|
9
|
+
/** pocket status */
|
|
10
|
+
this.status = PocketStatusEnum.preview;
|
|
11
|
+
}
|
|
12
|
+
handlePocketToggle(e) {
|
|
13
|
+
if (e.detail.id === this.pocketid) {
|
|
14
|
+
this.status = e.detail.status;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
renderHeader() {
|
|
18
|
+
let message;
|
|
19
|
+
let icon;
|
|
20
|
+
switch (this.status) {
|
|
21
|
+
case PocketStatusEnum.preview:
|
|
22
|
+
case PocketStatusEnum.closed:
|
|
23
|
+
message = (h("span", null, "Messaggi ", h("span", { class: "badge" }, this.messages)));
|
|
24
|
+
icon = "chevron-up";
|
|
25
|
+
break;
|
|
26
|
+
case PocketStatusEnum.open:
|
|
27
|
+
message = h("span", null, "Riduci");
|
|
28
|
+
icon = "chevron-down";
|
|
29
|
+
break;
|
|
30
|
+
}
|
|
31
|
+
return (h("z-pocket-header", { pocketid: this.pocketid }, message, h("z-icon", { name: icon, width: 14, height: 14 })));
|
|
32
|
+
}
|
|
33
|
+
renderBody() {
|
|
34
|
+
return (h("z-pocket-body", { pocketid: this.pocketid }, h("div", { class: "body" }, h("slot", null)), h("div", { class: "gradient" })));
|
|
35
|
+
}
|
|
36
|
+
render() {
|
|
37
|
+
return (h("z-pocket", { pocketid: this.pocketid, status: this.status, class: this.status }, this.renderHeader(), this.renderBody()));
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
ZMessagesPocket.style = stylesCss;
|
|
41
|
+
|
|
42
|
+
export { ZMessagesPocket as z_messages_pocket };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, a as getElement } from './index-
|
|
2
|
-
import {
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, a as getElement } from './index-b3a91e19.js';
|
|
2
|
+
import { m as InputStatusEnum, B as ButtonVariantEnum } from './index-654849a7.js';
|
|
3
3
|
|
|
4
4
|
const stylesCss = ".sc-z-modal-login-h{font-family:var(--dashboard-font);font-weight:var(--font-rg)}.sc-z-modal-login-h div.wrapper.sc-z-modal-login{color:var(--text-grey-800);padding:calc(var(--space-unit) * 4) calc(var(--space-unit) * 2)\n calc(var(--space-unit) * 3) calc(var(--space-unit) * 2);box-sizing:border-box;display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:flex-start;align-items:stretch}z-button.sc-z-modal-login,z-input.sc-z-modal-login,.sc-z-modal-login-s>z-button,.sc-z-modal-login-s>z-input{display:inline-block;width:100%}z-link.sc-z-modal-login,.sc-z-modal-login-s>z-link{font-size:12px}.sc-z-modal-login-h div.wrapper.sc-z-modal-login>form.sc-z-modal-login{display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:flex-start;align-items:stretch}div.wrapper>form>div.username.sc-z-modal-login-s>z-input,div.wrapper>form>div.password.sc-z-modal-login-s>z-input,.sc-z-modal-login-h div.wrapper.sc-z-modal-login>form.sc-z-modal-login>div.username.sc-z-modal-login z-input.sc-z-modal-login,.sc-z-modal-login-h div.wrapper.sc-z-modal-login>form.sc-z-modal-login>div.password.sc-z-modal-login z-input.sc-z-modal-login{margin-bottom:var(--space-unit)}.sc-z-modal-login-h div.wrapper.sc-z-modal-login>form.sc-z-modal-login>z-link.forget.sc-z-modal-login{font-size:12px;align-self:flex-end}div.wrapper>form>div.login.sc-z-modal-login-s>z-button,.sc-z-modal-login-h div.wrapper.sc-z-modal-login>form.sc-z-modal-login>div.login.sc-z-modal-login z-button.sc-z-modal-login{margin:calc(var(--space-unit) * 3) 0;align-self:flex-start}.sc-z-modal-login-h div.wrapper.sc-z-modal-login>hr.sc-z-modal-login{width:100%;margin-bottom:calc(var(--space-unit) * 3);border:none;border-top:var(--border-size-medium) solid var(--bg-grey-200);margin-block-start:unset}div.wrapper>div.signup.sc-z-modal-login-s>z-button,.sc-z-modal-login-h div.wrapper.sc-z-modal-login>div.signup.sc-z-modal-login z-button.sc-z-modal-login{display:inline-block;margin:calc(var(--space-unit) * 2) 0}.sc-z-modal-login-h div.providers.sc-z-modal-login{display:grid;grid-template-columns:1fr;grid-auto-rows:auto;gap:calc(var(--space-unit) * 2) 0px}slot-fb[name=\"provider\"].sc-z-modal-login{display:grid;grid-template-columns:1fr;grid-auto-rows:auto;gap:calc(var(--space-unit) * 2) 0px}.sc-z-modal-login-h div.providers.sc-z-modal-login>z-body.sc-z-modal-login{padding-top:calc(var(--space-unit) * 2)}.sc-z-modal-login-h div.wrapper.sc-z-modal-login>div.providers.sc-z-modal-login .zd.sc-z-modal-login{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:center;align-items:center;align-content:center}.sc-z-modal-login-h div.wrapper.sc-z-modal-login>div.providers.sc-z-modal-login .zd.sc-z-modal-login>svg.sc-z-modal-login{margin-right:var(--space-unit)}@media only screen and (min-width: 768px){z-button.sc-z-modal-login,.sc-z-modal-login-s>z-button{width:initial}.sc-z-modal-login-h div.wrapper.sc-z-modal-login{width:396px;padding:calc(var(--space-unit) * 3)}.sc-z-modal-login-h div.providers.sc-z-modal-login{display:grid;grid-template-columns:1fr 1fr;grid-auto-rows:auto;gap:var(--space-unit);justify-content:center;align-items:center}.sc-z-modal-login-h div.providers.sc-z-modal-login>z-body.sc-z-modal-login{grid-column-start:1;grid-column-end:3;padding-bottom:var(--space-unit)}.sc-z-modal-login-s>[slot=\"provider\"]{width:100%}slot-fb[name=\"provider\"].sc-z-modal-login{grid-column-start:1;grid-column-end:3;display:grid;grid-template-columns:1fr 1fr;grid-auto-rows:auto;gap:var(--space-unit);justify-content:center;align-items:center}slot-fb[name=\"provider\"].sc-z-modal-login>*.sc-z-modal-login{width:100%}}@media only screen and (min-width: 1366px){.sc-z-modal-login-h div.wrapper.sc-z-modal-login{width:477px;padding:calc(var(--space-unit) * 4)}}";
|
|
5
5
|
|
|
@@ -7,6 +7,7 @@ const zModalLogin = class {
|
|
|
7
7
|
constructor(hostRef) {
|
|
8
8
|
registerInstance(this, hostRef);
|
|
9
9
|
this.loginSubmit = createEvent(this, "loginSubmit", 7);
|
|
10
|
+
this.statusUpdate = createEvent(this, "statusUpdate", 7);
|
|
10
11
|
this.signupClick = createEvent(this, "signupClick", 7);
|
|
11
12
|
this.zainoDigitaleClick = createEvent(this, "zainoDigitaleClick", 7);
|
|
12
13
|
/** Login modal title */
|
|
@@ -14,7 +15,8 @@ const zModalLogin = class {
|
|
|
14
15
|
this.externalProviderCheck = false;
|
|
15
16
|
}
|
|
16
17
|
componentDidLoad() {
|
|
17
|
-
this.externalProviderCheck =
|
|
18
|
+
this.externalProviderCheck =
|
|
19
|
+
!!this.hostElement.querySelectorAll('[slot="provider"]').length;
|
|
18
20
|
}
|
|
19
21
|
emitLoginSubmit() {
|
|
20
22
|
const usernameInput = this.hostElement.querySelector("z-input#username");
|
|
@@ -35,6 +37,9 @@ const zModalLogin = class {
|
|
|
35
37
|
originalUsername: usernameInput.value,
|
|
36
38
|
});
|
|
37
39
|
}
|
|
40
|
+
emitStatusUpdate(status) {
|
|
41
|
+
this.statusUpdate.emit(status);
|
|
42
|
+
}
|
|
38
43
|
emitSignupClick() {
|
|
39
44
|
this.signupClick.emit();
|
|
40
45
|
}
|
|
@@ -46,6 +51,10 @@ const zModalLogin = class {
|
|
|
46
51
|
return;
|
|
47
52
|
this.emitLoginSubmit();
|
|
48
53
|
}
|
|
54
|
+
handleInputChange() {
|
|
55
|
+
this.status = null;
|
|
56
|
+
this.emitStatusUpdate(this.status);
|
|
57
|
+
}
|
|
49
58
|
cleanUsername(username) {
|
|
50
59
|
username = username.trim().toLowerCase();
|
|
51
60
|
const mobileRegex = /^[+]?[\s./0-9]*[(]?[0-9]{1,4}[)]?[(]?[0-9]{1,4}[)]?[-\s./0-9]*$/g;
|
|
@@ -60,7 +69,7 @@ const zModalLogin = class {
|
|
|
60
69
|
return (h("z-button", { variant: ButtonVariantEnum.secondary, onClick: () => this.emitZainoDigitaleClick(), class: "zainoDigitale" }, h("div", { class: "zd" }, h("svg", { width: "18px", height: "24px", viewBox: "0 0 18 24" }, h("g", { stroke: "none", "stroke-width": "1", fill: "none", "fill-rule": "evenodd" }, h("g", { transform: "translate(-313.000000, -329.000000)", fill: "#E2001A", "fill-rule": "nonzero" }, h("g", { transform: "translate(25.000000, 191.000000)" }, h("g", null, h("g", { transform: "translate(0.000000, 100.000000)" }, h("g", null, h("g", { transform: "translate(276.000000, 28.000000)" }, h("path", { d: "M29.8953704,30.5632326 C29.9143039,30.3327754 29.5356326,30.0447041 29.1380277,29.8142469 C29.2516291,28.7963947 29.4409647,26.9719425 29.2705626,26.3189807 C29.0433598,25.416357 28.3428178,24.8018047 28.380685,23.822362 C28.4185521,22.8429193 28.1913493,16.5437582 27.0364017,15.1802202 C26.1654576,14.162368 25.4649156,12.8372396 23.4390239,12.2418921 C23.4390239,12.0498445 23.4390239,11.8770016 23.4200903,11.7425683 C23.3822232,10.9167637 21.9622056,10.090959 21.6214014,10.0525495 C21.2805972,10.01414 20.371786,9.95652568 20.0309818,10.0525495 C19.6901775,10.1293685 19.0464362,11.128016 18.7434992,11.4352922 C18.5920306,11.5889302 18.5541635,11.9538207 18.5730971,12.3187111 C17.437083,12.6836015 16.1306669,13.4325871 15.4490584,14.9497631 C14.2941108,17.676839 13.4799674,18.9251483 13.6693031,24.1680477 C13.5935688,25.1090809 13.2906318,25.6084046 13.1012961,25.6852237 C12.9119604,25.7620427 12.798359,25.9156808 12.7604919,26.1077284 C12.7226247,26.2805712 12.5522226,28.37389 12.7415583,29.8718612 C12.3818205,30.1023183 12.0788834,30.3519802 12.097817,30.5632326 C12.1546177,31.0625563 11.8516806,31.7731324 12.097817,32.0612038 C12.230352,32.2148419 12.7226247,32.5413228 13.3284989,32.8293942 C13.6125024,33.4631512 14.199443,33.9240655 15.467992,33.9816797 C18.1565586,34.0584988 26.2601254,33.8664512 26.5630625,33.9048607 C26.847066,33.9432702 28.4374857,34.0008845 28.683622,32.8293942 C29.2894962,32.5413228 29.781769,32.2148419 29.9143039,32.0612038 C30.1415067,31.7731324 29.8385697,31.0625563 29.8953704,30.5632326 Z M12.0319858,31.2 C12.1173988,31.1230769 12.3736379,31.0461538 12.743761,31 C12.857645,31.3230769 12.914587,31.6615385 13,32 C12.4021089,31.8153846 11.8611598,31.5692308 12.0319858,31.2 Z M21.1618497,12.8394441 C21.1618497,12.8394441 20.6763006,12.8165075 20,13 L20,12.9770634 C20,12.5642053 20.3121387,11.3256309 20.3988439,11.1192018 C20.4855491,10.9127728 21.265896,11.0274556 21.8554913,11.0733287 C22.6358382,11.0503922 22.4624277,11.2568212 22.8092486,11.9907912 C22.9306358,12.2889666 22.982659,12.6559516 23,13 C22.4797688,12.8623806 21.8728324,12.8165075 21.1618497,12.8394441 Z M28.3324094,30 C28.6648189,30.0833333 28.9085858,30.2222222 28.9750677,30.3888889 C29.1301921,31.1666667 28.5318551,31.6388889 28,32 C28.0221606,31.5 28.0664819,31.1111111 28.0664819,31.1111111 L28.2437669,30.6111111 L28.3324094,30 Z M21.8571429,23 L21.8571429,23.8 L22.7142857,23.8 L22.7142857,24.6 L23.5714286,24.6 L23.5714286,25.4 L24.4285714,25.4 L24.4285714,26.2 L25.2857143,26.2 L25.2857143,27 L26.1428571,27 L26.1428571,27.8 L27,27.8 L27,28.6 L24.4285714,28.6 L24.4285714,29.4 L25.2857143,29.4 L25.2857143,31 L24.4285714,31 L24.4285714,30.2 L23.5714286,30.2 L23.5714286,29.4 L22.7142857,29.4 L22.7142857,30.2 L21.8571429,30.2 L21.8571429,31 L21,31 L21,23 L21.8571429,23 Z" }))))))))), h("span", null, "ZAINO DIGITALE"))));
|
|
61
70
|
}
|
|
62
71
|
render() {
|
|
63
|
-
return (h("z-modal", { modaltitle: this.heading }, h("div", { class: "wrapper", slot: "modalContent" }, h("form", { method: "post" }, h("div", { class: "username" }, h("slot", { name: "username" }, h("z-input", { id: "username", label: "email o numero di cellulare", placeholder: "Inserisci l'email o il cellulare", autocomplete: "username", name: "username", status: this.status, message: this.message, onKeyUp: (e) => this.handleInputKeyUp(e), onInputChange: () =>
|
|
72
|
+
return (h("z-modal", { modaltitle: this.heading }, h("div", { class: "wrapper", slot: "modalContent" }, h("form", { method: "post" }, h("div", { class: "username" }, h("slot", { name: "username" }, h("z-input", { id: "username", label: "email o numero di cellulare", placeholder: "Inserisci l'email o il cellulare", autocomplete: "username", name: "username", status: this.status, message: this.message, onKeyUp: (e) => this.handleInputKeyUp(e), onInputChange: () => this.handleInputChange() }))), h("div", { class: "password" }, h("slot", { name: "password" }, h("z-input", { id: "password", label: "password", placeholder: "Inserisci la tua password", type: "password", name: "password", autocomplete: "current-password", status: this.status, message: this.pwdmessage, onKeyUp: (e) => this.handleInputKeyUp(e), onInputChange: () => this.handleInputChange() }))), h("z-link", { class: "forget", href: this.forgotPasswordUrl }, "Password dimenticata?"), h("div", { class: "login" }, h("slot", { name: "login" }, h("z-button", { variant: ButtonVariantEnum.primary, onClick: () => this.emitLoginSubmit() }, "Accedi")))), h("hr", null), h("z-body", { class: "signup", level: 4, variant: "semibold" }, "Non hai ancora un account?"), h("div", { class: "signup" }, h("slot", { name: "signup" }, h("z-button", { variant: ButtonVariantEnum.secondary, onClick: () => this.emitSignupClick() }, "Registrati"))), !this.externalProviderCheck && (h("div", { class: "providers" }, h("z-body", { class: "provider", level: 5, variant: "regular" }, "OPPURE ACCEDI CON:"), h("slot", { name: "provider" }, this.renderZainoDigitaleButton(), h("z-link", { icon: "informationsource", href: "https://www.zainodigitale.it/#/landing" }, "Cos'\u00E8 Zaino Digitale?")))))));
|
|
64
73
|
}
|
|
65
74
|
get hostElement() { return getElement(this); }
|
|
66
75
|
};
|