@zanichelli/delta_share 2.0.7 → 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-458dc8f4.js → index-9ca7d5e5.js} +12 -0
- package/dist/wc/cjs/{license-activation_16.cjs.entry.js → license-activation_13.cjs.entry.js} +127 -484
- 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 +7 -13
- package/dist/wc/custom-elements/index.js +8648 -1967
- 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-ef4da7dc.entry.js → p-06b89fb4.entry.js} +1 -1
- package/dist/wc/delta_share/p-0b0179c7.js +1 -0
- package/dist/wc/delta_share/p-0f55558e.js +1 -0
- package/dist/wc/delta_share/p-103f926c.entry.js +1 -0
- package/dist/wc/delta_share/p-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-6215ddbd.entry.js → p-29d111de.entry.js} +1 -1
- package/dist/wc/delta_share/p-2b05751b.entry.js +1 -0
- package/dist/wc/delta_share/p-32975e01.entry.js +1 -0
- package/dist/wc/delta_share/p-32d34db1.entry.js +1 -0
- package/dist/wc/delta_share/{p-10d9e4f5.entry.js → p-3341f25e.entry.js} +1 -1
- package/dist/wc/delta_share/p-33fb12fc.entry.js +1 -0
- package/dist/wc/delta_share/p-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-ca57e6ec.entry.js → p-5b320481.entry.js} +1 -1
- package/dist/wc/delta_share/p-5d085d01.entry.js +1 -0
- package/dist/wc/delta_share/p-5d88112c.entry.js +1 -0
- package/dist/wc/delta_share/p-5e9898dd.entry.js +1 -0
- package/dist/wc/delta_share/p-6422731e.entry.js +1 -0
- package/dist/wc/delta_share/p-64ffaf7b.entry.js +1 -0
- package/dist/wc/delta_share/p-6613eeee.entry.js +1 -0
- package/dist/wc/delta_share/p-6a39042b.entry.js +1 -0
- package/dist/wc/delta_share/{p-a03963a8.entry.js → p-6a9fb59c.entry.js} +1 -1
- package/dist/wc/delta_share/p-6f7064dc.entry.js +1 -0
- package/dist/wc/delta_share/p-767a8d6e.entry.js +1 -0
- package/dist/wc/delta_share/p-76cfb0be.entry.js +1 -0
- package/dist/wc/delta_share/p-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-65c48026.entry.js → p-94df01a9.entry.js} +1 -1
- package/dist/wc/delta_share/p-9656b290.entry.js +1 -0
- package/dist/wc/delta_share/p-97e4d621.entry.js +1 -0
- package/dist/wc/delta_share/p-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-6684b880.entry.js → p-a0663266.entry.js} +1 -1
- package/dist/wc/delta_share/p-a150a778.entry.js +1 -0
- package/dist/wc/delta_share/p-a823768b.entry.js +1 -0
- package/dist/wc/delta_share/p-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-800cd436.entry.js → p-cfc122de.entry.js} +1 -1
- package/dist/wc/delta_share/p-d282ce22.entry.js +1 -0
- package/dist/wc/delta_share/p-d610565d.entry.js +1 -0
- package/dist/wc/delta_share/p-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-873e098b.entry.js → p-f531a563.entry.js} +1 -1
- 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-5ecd661f.js → index-b3a91e19.js} +12 -0
- package/dist/wc/esm/{license-activation_16.entry.js → license-activation_13.entry.js} +128 -482
- 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 +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-04b614bf.entry.js +0 -1
- package/dist/wc/delta_share/p-0a05abe2.entry.js +0 -1
- package/dist/wc/delta_share/p-21e76fc5.entry.js +0 -1
- package/dist/wc/delta_share/p-26d039ff.entry.js +0 -1
- package/dist/wc/delta_share/p-3995e58c.entry.js +0 -1
- package/dist/wc/delta_share/p-3c0ba1d7.entry.js +0 -1
- package/dist/wc/delta_share/p-3dae174e.entry.js +0 -1
- package/dist/wc/delta_share/p-466d0fc0.entry.js +0 -1
- package/dist/wc/delta_share/p-57e825ae.entry.js +0 -1
- package/dist/wc/delta_share/p-5a2d329b.entry.js +0 -1
- package/dist/wc/delta_share/p-5e35124a.entry.js +0 -1
- package/dist/wc/delta_share/p-7145c713.entry.js +0 -1
- package/dist/wc/delta_share/p-79e22647.entry.js +0 -3
- package/dist/wc/delta_share/p-7a08a26d.entry.js +0 -1
- package/dist/wc/delta_share/p-7adbb1ec.entry.js +0 -1
- package/dist/wc/delta_share/p-804eb658.entry.js +0 -1
- package/dist/wc/delta_share/p-81d7702b.entry.js +0 -1
- package/dist/wc/delta_share/p-85623203.entry.js +0 -1
- package/dist/wc/delta_share/p-9dd299b2.js +0 -1
- package/dist/wc/delta_share/p-a259b62e.entry.js +0 -1
- package/dist/wc/delta_share/p-ab7c95da.entry.js +0 -1
- package/dist/wc/delta_share/p-abd1d378.entry.js +0 -1
- package/dist/wc/delta_share/p-acfe9eb3.entry.js +0 -1
- package/dist/wc/delta_share/p-b5e27e10.js +0 -1
- package/dist/wc/delta_share/p-b5eb340c.entry.js +0 -1
- package/dist/wc/delta_share/p-b60651f2.entry.js +0 -1
- package/dist/wc/delta_share/p-c56e8a41.entry.js +0 -1
- package/dist/wc/delta_share/p-c69e24bf.entry.js +0 -1
- package/dist/wc/delta_share/p-cac71697.js +0 -1
- package/dist/wc/delta_share/p-cad0320b.entry.js +0 -1
- package/dist/wc/delta_share/p-d1270e75.entry.js +0 -1
- package/dist/wc/delta_share/p-d2b8f445.entry.js +0 -1
- package/dist/wc/delta_share/p-d489328b.js +0 -1
- package/dist/wc/delta_share/p-de921fbb.entry.js +0 -1
- package/dist/wc/delta_share/p-ec64cd8e.entry.js +0 -1
- package/dist/wc/delta_share/p-f1ba2542.entry.js +0 -1
- package/dist/wc/delta_share/p-f500eb2e.entry.js +0 -1
- package/dist/wc/delta_share/p-f5d6ffbf.entry.js +0 -1
- package/dist/wc/delta_share/p-f6cf7f9f.entry.js +0 -1
- package/dist/wc/delta_share/p-f9175533.entry.js +0 -7
- package/dist/wc/delta_share/p-fb1885ec.js +0 -1
- package/dist/wc/esm/breakpoints-75d56fd9.js +0 -3
- package/dist/wc/esm/index-e68ea3a2.js +0 -81
- package/dist/wc/esm/utils-1c638931.js +0 -37
- package/dist/wc/esm/z-card-alert.entry.js +0 -48
- package/dist/wc/esm/z-card-body.entry.js +0 -15
- package/dist/wc/esm/z-card-cover.entry.js +0 -18
- package/dist/wc/esm/z-card-footer.entry.js +0 -42
- package/dist/wc/esm/z-card-header.entry.js +0 -34
- package/dist/wc/esm/z-card-icon.entry.js +0 -17
- package/dist/wc/esm/z-card-list.entry.js +0 -33
- package/dist/wc/esm/z-header.entry.js +0 -176
- package/dist/wc/esm/z-heading.entry.js +0 -13
- package/dist/wc/esm/z-registro-table-cell.entry.js +0 -30
- package/dist/wc/esm/z-registro-table-header.entry.js +0 -19
- package/dist/wc/esm/z-registro-table-row.entry.js +0 -19
- package/dist/wc/esm/z-registro-table-sticky-footer.entry.js +0 -15
- package/dist/wc/esm/z-registro-table.entry.js +0 -27
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-b3a91e19.js';
|
|
2
2
|
|
|
3
|
-
const stylesCss = ":host{font-family:var(--
|
|
3
|
+
const stylesCss = ":host{font-family:var(--font-family-sans);font-weight:var(--font-sb);display:inline-block}:host>button{cursor:pointer;outline:none;display:inline-block;box-sizing:border-box;margin:0;height:48px;line-height:48px;text-align:center;border:none;border-bottom:var(--border-size-large) solid transparent;color:var(--color-primary01);font-size:var(--font-size-2);font-family:var(--font-family-sans);font-weight:inherit;background:transparent;text-decoration:none;transition:border-bottom 0.2s ease, font-size 0.2s ease;min-width:56px}:host>button[disabled]{pointer-events:none;cursor:default;color:var(--color-disabled02)}:host>button:hover{border-bottom:var(--border-size-large) solid var(--color-hover-light);background-color:var(--color-background);text-decoration:none;transition:border-bottom 0.2s ease, background-color 0.2s ease}:host>button:focus{border-bottom:var(--border-size-large) solid var(--color-hover-light);box-shadow:var(--shadow-focus-primary);background-color:var(--color-background);text-decoration:none}:host>button.visited{border-color:var(--color-hover-light);text-decoration:none}:host>button.selected{border-bottom:var(--border-size-large) solid var(--color-primary01);font-size:var(--font-size-7);transition:border-bottom 0.2s ease, font-size 0.2s ease}";
|
|
4
4
|
|
|
5
5
|
const ZPaginationPage = class {
|
|
6
6
|
constructor(hostRef) {
|
|
@@ -13,8 +13,7 @@ const ZPaginationPage = class {
|
|
|
13
13
|
this.isvisited = false;
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
|
-
return (h("
|
|
17
|
-
"disabled"} ${this.isvisited && "visited"}`, tabindex: this.isdisabled ? -1 : 0, role: "button" }, this.value));
|
|
16
|
+
return (h("button", { id: this.pageid, "aria-label": this.ariaLabel ? this.ariaLabel : `Go to page ${this.value}`, class: { selected: this.isselected, visited: this.isvisited }, disabled: this.isdisabled, type: "button" }, this.value));
|
|
18
17
|
}
|
|
19
18
|
};
|
|
20
19
|
ZPaginationPage.style = stylesCss;
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, a as getElement } from './index-b3a91e19.js';
|
|
2
|
+
|
|
3
|
+
const stylesCss = "z-pagination{--z-pagination--page-button-width:64px;--z-pagination--pages-container-max-width:100%;display:flex;flex-direction:column;gap:calc(var(--space-unit) * 2) calc(var(--space-unit) * 4);max-width:100%;flex-wrap:wrap;font-family:var(--font-family-sans);font-weight:var(--font-rg)}z-pagination,z-pagination *{box-sizing:border-box}z-pagination button{height:100%}z-pagination z-icon{fill:var(--color-icon01)}z-pagination *:disabled z-icon{fill:var(--color-disabled02)}z-pagination .page-label{margin-right:calc(var(--space-unit) * 3);color:var(--color-text02)}z-pagination .pagination-bar{display:flex;align-items:center;height:48px;max-width:100%}z-pagination .pagination-bar button{display:flex;align-items:center;justify-content:center;margin:0;background-color:var(--color-surface03);transition:background-color .150s ease-out,\n color .150s ease-out,\n border-bottom-color .150s ease-out,\n font-size .150s ease-in-out,\n font-weight .150s ease-in-out;color:var(--color-primary01);border:none;font-family:inherit;font-weight:inherit;cursor:pointer}z-pagination .pagination-bar button:focus-visible{outline:none;box-shadow:inset var(--shadow-focus-primary);background-color:var(--color-hover-surface)}z-pagination .pagination-bar .pagination-button{padding:calc(var(--space-unit) * 2);text-transform:uppercase;white-space:nowrap;font-weight:var(--font-sb)}z-pagination .pagination-bar .navigation-button{padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 1.5)}z-pagination .pagination-bar .pagination-button:disabled,z-pagination .pagination-bar .navigation-button:disabled{background-color:var(--color-disabled01);color:var(--color-disabled02);cursor:default;pointer-events:none}z-pagination .pagination-bar .page-button,z-pagination .pagination-bar .ellipsis-button{width:var(--z-pagination--page-button-width)}z-pagination .pages-container{position:relative;display:inline-flex;max-width:100%;height:100%;overflow-x:auto;scroll-behavior:smooth;scroll-snap-align:center;scrollbar-width:none}z-pagination .pages-container::-webkit-scrollbar{display:none}z-pagination .pages-chunk{display:flex;scroll-snap-align:center}z-pagination .pagination-bar .page-button{padding-top:var(--border-size-large) solid transparent;border-bottom:var(--border-size-large) solid transparent;font-size:var(--font-size-2);font-weight:var(--font-sb)}z-pagination .pagination-bar .page-button:focus-visible{border-bottom-color:var(--color-hover-light)}z-pagination .pagination-bar .page-button[data-current]{font-size:var(--font-size-7);border-bottom-color:var(--color-primary01)}z-pagination .go-to-page{display:flex;flex-direction:column;row-gap:var(--space-unit)}z-pagination .go-to-page .label{color:var(--color-text02);text-transform:uppercase}z-pagination .go-to-page .inputs{display:flex;column-gap:var(--space-unit)}z-pagination .go-to-page .inputs z-input{width:calc(var(--space-unit) * 11)}z-pagination .go-to-page .inputs z-input input,z-pagination .mobile-go-to-page z-input input{padding:0 calc(var(--space-unit) * 1.5) !important;-moz-appearance:none}z-pagination .mobile-go-to-page{display:flex;justify-content:center;align-items:center;flex:1 auto;height:100%;background-color:var(--color-surface03)}z-pagination .mobile-go-to-page z-input{width:var(--z-pagination--page-button-width);margin-right:var(--space-unit)}z-pagination .mobile-go-to-page z-input input{text-align:center}z-pagination .mobile-go-to-page z-input input::-webkit-outer-spin-button,z-pagination .mobile-go-to-page z-input input::-webkit-inner-spin-button{appearance:none;-webkit-appearance:none}z-pagination .mobile-go-to-page>span{font-size:var(--font-size-2)}@media (hover: hover){z-pagination .pagination-bar button:hover{background-color:var(--color-hover-surface)}z-pagination .pagination-bar .page-button:hover{border-bottom-color:var(--color-hover-light)}}@media (min-width: 768px){z-pagination{--z-pagination--page-button-width:88px;flex-direction:row;align-items:flex-end}z-pagination .pages-container{max-width:var(--z-pagination--pages-container-max-width)}}";
|
|
4
|
+
|
|
5
|
+
const ZPagination = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.pageChanged = createEvent(this, "pageChanged", 7);
|
|
9
|
+
/** Enable navigation arrows. */
|
|
10
|
+
this.navArrows = true;
|
|
11
|
+
/** Number of pages to skip. */
|
|
12
|
+
this.skip = 0;
|
|
13
|
+
/** Enable buttons to go to the first and last pages. */
|
|
14
|
+
this.edges = false;
|
|
15
|
+
/** Current page. */
|
|
16
|
+
this.currentPage = 1;
|
|
17
|
+
/**
|
|
18
|
+
* Internal visible pages variable.
|
|
19
|
+
* Needed to better handle conflicting props like `visiblePages` and `split`.
|
|
20
|
+
* This state will change based on props values and validation,
|
|
21
|
+
* keeping original `visiblePages` value intact.
|
|
22
|
+
*/
|
|
23
|
+
this._visiblePages = this.visiblePages;
|
|
24
|
+
/** Used to hides/change some functionalities on smaller screen sizes */
|
|
25
|
+
this.isMobile = false;
|
|
26
|
+
/** Value of the go to page input */
|
|
27
|
+
this.goToPageValue = null;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Set the max width of the pages container.
|
|
31
|
+
*/
|
|
32
|
+
setPagesContainerWidth() {
|
|
33
|
+
if (!this._visiblePages || this.split) {
|
|
34
|
+
this.host.style.setProperty("--z-pagination--pages-container-max-width", "100%");
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
const pagesContainerStyle = window.getComputedStyle(this.host);
|
|
38
|
+
const pageButtonWidth = pagesContainerStyle.getPropertyValue("--z-pagination--page-button-width");
|
|
39
|
+
this.host.style.setProperty("--z-pagination--pages-container-max-width", `calc(${pageButtonWidth} * ${this._visiblePages})`);
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Set visible pages.
|
|
43
|
+
* Ensure that the visible pages are always <= the total pages.
|
|
44
|
+
* If `visiblePages` isn't set, fallback to the total pages.
|
|
45
|
+
*/
|
|
46
|
+
setVisiblePages() {
|
|
47
|
+
this._visiblePages = Math.min(this.visiblePages || this.totalPages, this.totalPages);
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* On page changed.
|
|
51
|
+
* @emits pageChanged
|
|
52
|
+
*/
|
|
53
|
+
onPageChanged() {
|
|
54
|
+
this.pageChanged.emit(this.currentPage);
|
|
55
|
+
this.scrollToPage();
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* On split changed.
|
|
59
|
+
* Empty `edges` value. The split feature wins over the pages chunks and edges.
|
|
60
|
+
*/
|
|
61
|
+
onSplitChanged() {
|
|
62
|
+
if (this.split) {
|
|
63
|
+
this.edges = false;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Hide stuff on mobile.
|
|
68
|
+
*/
|
|
69
|
+
onResize() {
|
|
70
|
+
this.setMobile();
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Set functionalities according to screen size.
|
|
74
|
+
*/
|
|
75
|
+
setMobile() {
|
|
76
|
+
const mobileMediaQuery = "screen and (max-width: 767px)";
|
|
77
|
+
this.isMobile = window.matchMedia(mobileMediaQuery).matches;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Get a list of pages chunks, each of `visiblePages` length.
|
|
81
|
+
* @returns {number[][]}
|
|
82
|
+
*/
|
|
83
|
+
getPagesChunks() {
|
|
84
|
+
// array of numbers from 1 to `totalPages`
|
|
85
|
+
const pages = Array.from({ length: this.totalPages }, (_, i) => i + 1);
|
|
86
|
+
let chunks = [];
|
|
87
|
+
const chunksCount = Math.ceil(pages.length / this._visiblePages);
|
|
88
|
+
for (let index = 0; index < chunksCount; index++) {
|
|
89
|
+
chunks.push(pages.slice(index * this._visiblePages, (index + 1) * this._visiblePages));
|
|
90
|
+
}
|
|
91
|
+
return chunks;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Scroll to the left the chunk of pages containing the current page.
|
|
95
|
+
*/
|
|
96
|
+
scrollToPage() {
|
|
97
|
+
const pageBtn = this.host.querySelector(`[data-page="${this.currentPage}"]`);
|
|
98
|
+
if (!pageBtn) {
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
pageBtn.scrollIntoView({
|
|
102
|
+
behavior: "smooth",
|
|
103
|
+
block: "nearest",
|
|
104
|
+
inline: "center",
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Select a page.
|
|
109
|
+
* Do validations on the passed value before assigning it to `currentPage`.
|
|
110
|
+
* @param {number} page Page number to set
|
|
111
|
+
*/
|
|
112
|
+
selectPage(page) {
|
|
113
|
+
this.currentPage = Math.min(Math.max(page, 1), this.totalPages);
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Render page number button.
|
|
117
|
+
* @param {number} page Page number to render
|
|
118
|
+
* @returns {HTMLButtonElement}
|
|
119
|
+
*/
|
|
120
|
+
renderPage(page) {
|
|
121
|
+
return (h("button", { class: "page-button", type: "button", "aria-current": this.currentPage === page ? "page" : "false", title: `Vai alla pagina ${page}`, "data-page": page, "data-current": this.currentPage === page, onClick: () => this.selectPage(page) }, page));
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Render split button.
|
|
125
|
+
* @param {number} page Page to select on click.
|
|
126
|
+
* @returns {HTMLButtonElement}
|
|
127
|
+
*/
|
|
128
|
+
renderEllipsisButton(page) {
|
|
129
|
+
return (h("button", { class: "ellipsis-button", type: "button", title: `Vai alla pagina ${page}`, onClick: () => this.selectPage(page) }, "\u2026"));
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Render chunked page buttons.
|
|
133
|
+
* @returns {HTMLDivElement}
|
|
134
|
+
*/
|
|
135
|
+
renderPages() {
|
|
136
|
+
const pagesChunks = this.getPagesChunks();
|
|
137
|
+
if (pagesChunks.length <= 0) {
|
|
138
|
+
return;
|
|
139
|
+
}
|
|
140
|
+
return pagesChunks.map((chunk) => (h("div", { class: "pages-chunk" }, chunk.map((page) => this.renderPage(page)))));
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Render page buttons when split feature is enabled.
|
|
144
|
+
* @returns {HTMLButtonElement[]}
|
|
145
|
+
*/
|
|
146
|
+
renderSplitPages() {
|
|
147
|
+
// left and right split pages, current page, first and last page, left and right ellipsis button
|
|
148
|
+
if (this.totalPages <= this.split * 2 + 5) {
|
|
149
|
+
// Too few pages: ellipsis will never be rendered, so let's just render all pages and that's it.
|
|
150
|
+
return Array.from({ length: this.totalPages }, (_, i) => this.renderPage(i + 1));
|
|
151
|
+
}
|
|
152
|
+
if (this.currentPage <= this.split * 2 + 2) {
|
|
153
|
+
// Render first (2 * split + 3) pages, ellipsis, then last page.
|
|
154
|
+
return [
|
|
155
|
+
...Array.from({ length: this.split * 2 + 3 }, (_, i) => this.renderPage(i + 1)),
|
|
156
|
+
this.renderEllipsisButton(this.split * 2 + 4),
|
|
157
|
+
this.renderPage(this.totalPages),
|
|
158
|
+
];
|
|
159
|
+
}
|
|
160
|
+
if (this.currentPage > this.split * 2 + 2 && this.currentPage < this.totalPages - this.split * 2 - 1) {
|
|
161
|
+
// Render first page, ellipsis, current page surrounded by (split) pages both before and after, another ellipsis, then last page.
|
|
162
|
+
return [
|
|
163
|
+
this.renderPage(1),
|
|
164
|
+
this.renderEllipsisButton(this.currentPage - this.split - 1),
|
|
165
|
+
...Array.from({ length: this.split * 2 + 1 }, (_, i) => this.renderPage(this.currentPage - this.split + i)),
|
|
166
|
+
this.renderEllipsisButton(this.currentPage + this.split + 1),
|
|
167
|
+
this.renderPage(this.totalPages),
|
|
168
|
+
];
|
|
169
|
+
}
|
|
170
|
+
// Render first page, ellipsis, then last (2 * split + 3) pages.
|
|
171
|
+
return [
|
|
172
|
+
this.renderPage(1),
|
|
173
|
+
this.renderEllipsisButton(this.totalPages - this.split * 2 - 3),
|
|
174
|
+
...Array.from({ length: this.split * 2 + 3 }, (_, i) => this.renderPage(this.totalPages - this.split * 2 - 2 + i)),
|
|
175
|
+
];
|
|
176
|
+
}
|
|
177
|
+
renderBackButton() {
|
|
178
|
+
return (h("button", { class: "navigation-button", type: "button", title: "Vai alla pagina precedente", disabled: this.currentPage === 1, onClick: () => this.selectPage(this.currentPage - 1) }, h("z-icon", { name: "chevron-left" })));
|
|
179
|
+
}
|
|
180
|
+
renderForwardButton() {
|
|
181
|
+
return (h("button", { class: "navigation-button", type: "button", title: "Vai alla prossima pagina", disabled: this.currentPage === this.totalPages, onClick: () => this.selectPage(this.currentPage + 1) }, h("z-icon", { name: "chevron-right" })));
|
|
182
|
+
}
|
|
183
|
+
renderMobile() {
|
|
184
|
+
const pagesChunks = this.getPagesChunks();
|
|
185
|
+
return [
|
|
186
|
+
this.label && h("span", { class: "page-label body-1-sb" }, this.label),
|
|
187
|
+
h("div", { class: "pagination-bar" }, this.renderBackButton(), !this.goToPage && (h("div", { class: "pages-container", role: "navigation", tabIndex: -1 }, pagesChunks.length > 0 &&
|
|
188
|
+
pagesChunks.map((chunk) => (h("div", { class: "pages-chunk" }, chunk.map((page) => this.renderPage(page))))))), this.goToPage && (h("form", { class: "mobile-go-to-page", onSubmit: (ev) => {
|
|
189
|
+
ev.preventDefault();
|
|
190
|
+
this.selectPage(this.goToPageValue);
|
|
191
|
+
} }, h("z-input", { class: "go-to-page-input", type: "number", message: false, onInput: (ev) => { this.goToPageValue = ev.target.value; }, placeholder: this.currentPage.toString(), hasclearicon: false }), h("span", null, `/${this.totalPages}`))), this.renderForwardButton()),
|
|
192
|
+
];
|
|
193
|
+
}
|
|
194
|
+
componentDidLoad() {
|
|
195
|
+
this.setVisiblePages();
|
|
196
|
+
}
|
|
197
|
+
componentDidRender() {
|
|
198
|
+
if (this.split) {
|
|
199
|
+
this.edges = false;
|
|
200
|
+
}
|
|
201
|
+
this.setPagesContainerWidth();
|
|
202
|
+
this.setMobile();
|
|
203
|
+
}
|
|
204
|
+
render() {
|
|
205
|
+
if (this.isMobile) {
|
|
206
|
+
return this.renderMobile();
|
|
207
|
+
}
|
|
208
|
+
return [
|
|
209
|
+
h("div", { class: "pagination-bar" }, this.label && h("span", { class: "page-label body-1-sb" }, this.label), this.edges && (h("button", { class: "pagination-button", type: "button", title: "Vai alla pagina 1", disabled: this.currentPage === 1, onClick: () => this.selectPage(1) }, "Pagina 1")), this.skip < this.totalPages && this.skip > 1 && (h("button", { class: "pagination-button", type: "button", title: `Vai alla pagina ${this.currentPage - this.skip}`, disabled: this.currentPage <= this.skip, onClick: () => this.selectPage(this.currentPage - this.skip) }, "-", this.skip)), this.navArrows && this.renderBackButton(), h("div", { class: "pages-container", role: "navigation", tabIndex: -1 }, this.split ?
|
|
210
|
+
this.renderSplitPages() :
|
|
211
|
+
this.renderPages()), this.navArrows && this.renderForwardButton(), this.skip < this.totalPages && this.skip > 1 && (h("button", { class: "pagination-button", type: "button", title: `Vai alla pagina ${this.currentPage + this.skip}`, disabled: this.currentPage > this.totalPages - this.skip, onClick: () => this.selectPage(this.currentPage + this.skip) }, "+", this.skip)), this.edges && (h("button", { class: "pagination-button", type: "button", title: `Vai alla pagina ${this.totalPages}`, disabled: this.currentPage === this.totalPages, onClick: () => this.selectPage(this.totalPages) }, "Pagina ", this.totalPages))),
|
|
212
|
+
this.goToPage && (h("div", { class: "go-to-page" }, h("span", { class: "label body-5-sb" }, "Vai a pagina:"), h("div", { class: "inputs" }, h("z-input", { class: "go-to-page-input", type: "number", message: false, placeholder: "2", hasclearicon: false, onInput: (ev) => { this.goToPageValue = ev.target.value; }, onKeyDown: (ev) => ev.key === "Enter" && this.selectPage(this.goToPageValue) }), h("z-button", { disabled: !this.goToPageValue, title: "Vai alla pagina inserita", onClick: () => this.selectPage(this.goToPageValue) }, "vai")))),
|
|
213
|
+
];
|
|
214
|
+
}
|
|
215
|
+
get host() { return getElement(this); }
|
|
216
|
+
static get watchers() { return {
|
|
217
|
+
"_visiblePages": ["setPagesContainerWidth"],
|
|
218
|
+
"visiblePages": ["setVisiblePages"],
|
|
219
|
+
"currentPage": ["onPageChanged"],
|
|
220
|
+
"split": ["onSplitChanged"]
|
|
221
|
+
}; }
|
|
222
|
+
};
|
|
223
|
+
ZPagination.style = stylesCss;
|
|
224
|
+
|
|
225
|
+
export { ZPagination as z_pagination };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-b3a91e19.js';
|
|
2
2
|
|
|
3
3
|
const stylesCss = ":host{font-family:var(--dashboard-font);font-weight:var(--font-rg);width:inherit}.panel-elem-container{width:100%}.panel-elem-icon{margin:auto calc(var(--space-unit) * 3)}.panel-elem-icon img{display:block;object-fit:contain;max-width:96px;height:32px;margin:auto}.panel-elem-link{border-radius:var(--border-no-radius);margin:var(--space-unit) auto 0;text-align:center;font-size:12px}.panel-elem-link>z-link{font-weight:var(--font-sb)}.panel-elem-desc{letter-spacing:0.16px;text-align:center;margin:0;padding-top:var(--space-unit)}";
|
|
4
4
|
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { r as registerInstance, h } from './index-b3a91e19.js';
|
|
2
|
+
|
|
3
|
+
const stylesCss = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>div{color:var(--color-surface05);fill:var(--color-surface05);font-size:14px;border-bottom:var(--border-size-small) solid var(--color-surface03);padding-top:calc(var(--space-unit) * 1.5);display:grid;grid-template-rows:auto auto;grid-template-columns:36px auto}:host>div>z-icon{grid-row:1 / 2;grid-column:1 / 2}:host>div>div.content{grid-row:1 / 2;grid-column:2 / 3;margin-bottom:var(--space-unit)}:host>div>div.ctaWrapper{grid-row:2 / 3;grid-column:1 / 3;display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:flex-start;align-items:center;margin-bottom:var(--space-unit)}@media only screen and (min-width: 768px){:host>div>div.ctaWrapper{flex-direction:row;grid-column:2 / 3}}";
|
|
4
|
+
|
|
5
|
+
const ZPocketMessage = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
}
|
|
9
|
+
render() {
|
|
10
|
+
return (h("div", null, h("z-icon", { name: "exclamation-circle" }), h("div", { class: "content" }, h("slot", null)), h("div", { class: "ctaWrapper" }, h("slot", { name: "cta" }))));
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
ZPocketMessage.style = stylesCss;
|
|
14
|
+
|
|
15
|
+
export { ZPocketMessage as z_pocket_message };
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, a as getElement } from './index-b3a91e19.js';
|
|
2
|
+
import { l as PocketStatusEnum } from './index-654849a7.js';
|
|
3
|
+
import { h as handleKeyboardSubmit } from './utils-417652d9.js';
|
|
4
|
+
import { h as hammer } from './hammer-c3266b17.js';
|
|
5
|
+
import './breakpoints-e07f80e7.js';
|
|
6
|
+
import './_commonjsHelpers-9943807e.js';
|
|
7
|
+
|
|
8
|
+
const stylesCss$2 = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg);width:inherit;height:100%;margin:inherit}:host>div{width:inherit;height:100%;margin:inherit}:host>div>div.background{position:fixed;left:0;right:0;top:0;bottom:0;z-index:998;width:0;height:0}:host>div>div.background.open{height:100%;width:100%}:host>div>div.contentWrapper{position:fixed;z-index:999;bottom:0;left:0;width:inherit;margin:inherit}:host>div>div.contentWrapper>div{border-radius:var(--space-unit) var(--space-unit) 0px 0px;box-shadow:0px -2px calc(var(--space-unit) * 0.5) 0px rgba(66, 69, 72, 0.4);margin:calc(var(--space-unit) * 0.5) calc(var(--space-unit) * 0.5) 0 calc(var(--space-unit) * 0.5)}";
|
|
9
|
+
|
|
10
|
+
const ZPocket = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
registerInstance(this, hostRef);
|
|
13
|
+
this.pocketToggle = createEvent(this, "pocketToggle", 7);
|
|
14
|
+
/** pocket status */
|
|
15
|
+
this.status = PocketStatusEnum.preview;
|
|
16
|
+
}
|
|
17
|
+
/** open z-pocket */
|
|
18
|
+
async open() {
|
|
19
|
+
this.status = PocketStatusEnum.open;
|
|
20
|
+
}
|
|
21
|
+
/** close z-pocket */
|
|
22
|
+
async close() {
|
|
23
|
+
this.status = PocketStatusEnum.closed;
|
|
24
|
+
}
|
|
25
|
+
emitPocketToggle(id, status) {
|
|
26
|
+
this.pocketToggle.emit({ id, status });
|
|
27
|
+
}
|
|
28
|
+
handlePocketHeaderClick(e) {
|
|
29
|
+
if (e.detail.id && e.detail.id === this.pocketid) {
|
|
30
|
+
switch (this.status) {
|
|
31
|
+
case PocketStatusEnum.preview:
|
|
32
|
+
case PocketStatusEnum.closed:
|
|
33
|
+
this.status = PocketStatusEnum.open;
|
|
34
|
+
break;
|
|
35
|
+
case PocketStatusEnum.open:
|
|
36
|
+
this.status = PocketStatusEnum.closed;
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
handlePocketHeaderPan(e) {
|
|
42
|
+
if (e.detail.id && e.detail.id === this.pocketid) {
|
|
43
|
+
if (e.detail.direction === "up") {
|
|
44
|
+
this.status = PocketStatusEnum.open;
|
|
45
|
+
}
|
|
46
|
+
else if (e.detail.direction === "down") {
|
|
47
|
+
this.status = PocketStatusEnum.closed;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
watchStatusHandler(newVal) {
|
|
52
|
+
this.emitPocketToggle(this.pocketid, newVal);
|
|
53
|
+
}
|
|
54
|
+
componentWillLoad() {
|
|
55
|
+
this.emitPocketToggle(this.pocketid, this.status);
|
|
56
|
+
}
|
|
57
|
+
handleBackgroundClick(e) {
|
|
58
|
+
if (e.target.dataset.action == "pocketBackground") {
|
|
59
|
+
this.close();
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
render() {
|
|
63
|
+
return (h("div", null, h("div", { "data-action": "pocketBackground", "data-pocket": this.pocketid, class: `background ${this.status}`, onClick: (e) => this.handleBackgroundClick(e) }), h("div", { id: this.pocketid, class: "contentWrapper" }, h("div", null, h("slot", null)))));
|
|
64
|
+
}
|
|
65
|
+
get hostElement() { return getElement(this); }
|
|
66
|
+
static get watchers() { return {
|
|
67
|
+
"status": ["watchStatusHandler"]
|
|
68
|
+
}; }
|
|
69
|
+
};
|
|
70
|
+
ZPocket.style = stylesCss$2;
|
|
71
|
+
|
|
72
|
+
const stylesCss$1 = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg);display:block;width:100%;box-sizing:border-box}:host>main{background:var(--color-surface01);border-left:var(--border-size-small) solid var(--color-surface03);border-right:var(--border-size-small) solid var(--color-surface03);overflow:auto;scrollbar-width:none}:host>main.preview{max-height:225px;transition:all 200ms ease-in-out, top 200ms ease-in-out}:host>main.open{max-height:calc(100vh - 48px);transition:all 200ms ease-in-out, top 200ms ease-in-out}:host>main.closed{height:0px;transition:all 200ms ease-in-out, top 200ms ease-in-out}:host ::-webkit-scrollbar{width:0}@media only screen and (min-width: 768px){:host>main.preview{max-height:157px}}";
|
|
73
|
+
|
|
74
|
+
const ZPocketBody = class {
|
|
75
|
+
constructor(hostRef) {
|
|
76
|
+
registerInstance(this, hostRef);
|
|
77
|
+
/** pocket status */
|
|
78
|
+
this.status = PocketStatusEnum.preview;
|
|
79
|
+
}
|
|
80
|
+
handlePocketToggle(e) {
|
|
81
|
+
if (e.detail.id && e.detail.id === this.pocketid) {
|
|
82
|
+
this.status = e.detail.status;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
render() {
|
|
86
|
+
return (h("main", { class: this.status }, h("slot", null)));
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
ZPocketBody.style = stylesCss$1;
|
|
90
|
+
|
|
91
|
+
const stylesCss = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg);display:block;width:100%;box-sizing:border-box}:host>header{background:var(--color-surface01);border:var(--border-size-small) solid var(--color-surface03);border-radius:var(--space-unit) var(--space-unit) 0px 0px;height:36px;cursor:pointer;display:flex;flex-wrap:nowrap;flex-direction:row;justify-content:center;align-items:center}:host>header:focus{outline:none}:host>header::-moz-focus-inner{border:0}";
|
|
92
|
+
|
|
93
|
+
const ZPocketHeader = class {
|
|
94
|
+
constructor(hostRef) {
|
|
95
|
+
registerInstance(this, hostRef);
|
|
96
|
+
this.pocketHeaderClick = createEvent(this, "pocketHeaderClick", 7);
|
|
97
|
+
this.pocketHeaderPan = createEvent(this, "pocketHeaderPan", 7);
|
|
98
|
+
this.emitPocketHeaderClick = this.emitPocketHeaderClick.bind(this);
|
|
99
|
+
}
|
|
100
|
+
emitPocketHeaderClick() {
|
|
101
|
+
this.pocketHeaderClick.emit({ id: this.pocketid });
|
|
102
|
+
}
|
|
103
|
+
emitPocketHeaderPan(direction) {
|
|
104
|
+
this.pocketHeaderPan.emit({ id: this.pocketid, direction });
|
|
105
|
+
}
|
|
106
|
+
componentDidLoad() {
|
|
107
|
+
// INFO: swipe handling
|
|
108
|
+
const mc = new hammer(this.swipeWrap);
|
|
109
|
+
mc.get("pan").set({ direction: hammer.DIRECTION_VERTICAL });
|
|
110
|
+
mc.on("panup", () => this.emitPocketHeaderPan("up"));
|
|
111
|
+
mc.on("pandown", () => this.emitPocketHeaderPan("down"));
|
|
112
|
+
}
|
|
113
|
+
render() {
|
|
114
|
+
return (h("header", { role: "button", tabindex: 0, onClick: () => this.emitPocketHeaderClick(), onKeyPress: (ev) => handleKeyboardSubmit(ev, this.emitPocketHeaderClick), ref: el => (this.swipeWrap = el) }, h("slot", null)));
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
ZPocketHeader.style = stylesCss;
|
|
118
|
+
|
|
119
|
+
export { ZPocket as z_pocket, ZPocketBody as z_pocket_body, ZPocketHeader as z_pocket_header };
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-b3a91e19.js';
|
|
2
|
+
import { c as classnames } from './index-abb47b30.js';
|
|
3
|
+
import { P as PopoverPosition, G as PopoverBorderRadius, H as PopoverShadow, F as KeyboardKeys } from './index-654849a7.js';
|
|
4
|
+
import { a as getElementTree } from './utils-417652d9.js';
|
|
5
|
+
import './_commonjsHelpers-9943807e.js';
|
|
6
|
+
import './breakpoints-e07f80e7.js';
|
|
7
|
+
|
|
8
|
+
const stylesCss = ".sc-z-popover-h{font-family:var(--dashboard-font);font-weight:var(--font-rg);position:relative;display:inline-block;--shadow-arrow-color:rgba(66, 69, 72, 0.2);--shadow-arrow-below-color:rgba(66, 69, 72, 0.1)}.popover-content-container.sc-z-popover{box-sizing:border-box;visibility:hidden;position:absolute;min-width:64px;min-height:32px;z-index:999}.popover-content-container.visible.sc-z-popover{visibility:visible}.popover-content-container.border-radius-none.sc-z-popover{border-radius:0}.popover-content-container.border-radius-small.sc-z-popover{border-radius:var(--border-radius-small)}.popover-content-container.border-radius-medium.sc-z-popover{border-radius:var(--border-radius)}.popover-content-container.shadow-1.sc-z-popover{box-shadow:var(--shadow-1)}.popover-content-container.shadow-2.sc-z-popover{box-shadow:var(--shadow-2)}.popover-content-container.shadow-3.sc-z-popover{box-shadow:var(--shadow-3)}.popover-content-container.shadow-4.sc-z-popover{box-shadow:var(--shadow-4)}.popover-content-container.shadow-6.sc-z-popover{box-shadow:var(--shadow-6)}.popover-content-container.shadow-8.sc-z-popover{box-shadow:var(--shadow-8)}.popover-content-container.shadow-12.sc-z-popover{box-shadow:var(--shadow-12)}.popover-content-container.shadow-16.sc-z-popover{box-shadow:var(--shadow-16)}.popover-content-container.shadow-24.sc-z-popover{box-shadow:var(--shadow-24)}.popover-content-container.after-down.sc-z-popover{top:0;left:calc(100% + var(--space-unit))}.popover-content-container.after-center.sc-z-popover{top:50%;left:calc(100% + var(--space-unit));transform:translateY(-50%)}.popover-content-container.after-up.sc-z-popover{bottom:0;left:calc(100% + var(--space-unit))}.popover-content-container.below-right.sc-z-popover{left:0;top:calc(100% + var(--space-unit))}.popover-content-container.below-center.sc-z-popover{left:50%;top:calc(100% + var(--space-unit));transform:translateX(-50%)}.popover-content-container.below-left.sc-z-popover{right:0;top:calc(100% + var(--space-unit))}.popover-content-container.before-down.sc-z-popover{top:0;right:calc(100% + var(--space-unit))}.popover-content-container.before-center.sc-z-popover{top:50%;right:calc(100% + var(--space-unit));transform:translateY(-50%)}.popover-content-container.before-up.sc-z-popover{bottom:0;right:calc(100% + var(--space-unit))}.popover-content-container.above-right.sc-z-popover{left:0;bottom:calc(100% + var(--space-unit))}.popover-content-container.above-center.sc-z-popover{left:50%;bottom:calc(100% + var(--space-unit));transform:translateX(-50%)}.popover-content-container.above-left.sc-z-popover{right:0;bottom:calc(100% + var(--space-unit))}.popover-content-container.sc-z-popover:before{display:none;position:absolute;content:\"\";width:8px;height:8px;z-index:-1;background-color:inherit;transform:rotate(45deg)}.popover-content-container.after-down.sc-z-popover:before{top:12px;left:-4px;box-shadow:-1px 1px 1.5px var(--shadow-arrow-color)}.popover-content-container.after-center.sc-z-popover:before{top:calc(50% - 4px);left:-4px;box-shadow:-1px 1px 1.5px var(--shadow-arrow-color)}.popover-content-container.after-up.sc-z-popover:before{bottom:12px;left:-4px;box-shadow:-1px 1px 1.5px var(--shadow-arrow-color)}.popover-content-container.below-right.sc-z-popover:before{left:12px;top:-4px;box-shadow:-1px -1px 2px var(--shadow-arrow-below-color)}.popover-content-container.below-center.sc-z-popover:before{left:calc(50% - 4px);top:-4px;box-shadow:-1px -1px 2px var(--shadow-arrow-below-color)}.popover-content-container.below-left.sc-z-popover:before{right:12px;top:-4px;box-shadow:-1px -1px 2px var(--shadow-arrow-below-color)}.popover-content-container.before-down.sc-z-popover:before{top:12px;right:-4px;box-shadow:1px -1px 1.5px var(--shadow-arrow-color)}.popover-content-container.before-center.sc-z-popover:before{top:calc(50% - 4px);right:-4px;box-shadow:1px -1px 1.5px var(--shadow-arrow-color)}.popover-content-container.before-up.sc-z-popover:before{bottom:12px;right:-4px;box-shadow:1px -1px 1.5px var(--shadow-arrow-color)}.popover-content-container.above-right.sc-z-popover:before{left:12px;bottom:-4px;box-shadow:1px 1px 1.5px var(--shadow-arrow-color)}.popover-content-container.above-center.sc-z-popover:before{left:calc(50% - 4px);bottom:-4px;box-shadow:1px 1px 1.5px var(--shadow-arrow-color)}.popover-content-container.above-left.sc-z-popover:before{right:12px;bottom:-4px;box-shadow:1px 1px 1.5px var(--shadow-arrow-color)}.popover-content-container.show-arrow.sc-z-popover:before{display:block}";
|
|
9
|
+
|
|
10
|
+
const ZPopover = class {
|
|
11
|
+
/**
|
|
12
|
+
* Constructor.
|
|
13
|
+
*/
|
|
14
|
+
constructor(hostRef) {
|
|
15
|
+
registerInstance(this, hostRef);
|
|
16
|
+
this.triggerClick = createEvent(this, "triggerClick", 7);
|
|
17
|
+
/** [optional] Popover position */
|
|
18
|
+
this.position = PopoverPosition["after-up"];
|
|
19
|
+
/** [optional] Background color token for popover */
|
|
20
|
+
this.backgroundColor = "color-white";
|
|
21
|
+
/** [optional] Border radius token for popover */
|
|
22
|
+
this.borderRadius = PopoverBorderRadius.small;
|
|
23
|
+
/** [optional] Box shadow token for popover */
|
|
24
|
+
this.boxShadow = PopoverShadow["shadow-1"];
|
|
25
|
+
/** [optional] Show or hide arrow */
|
|
26
|
+
this.showArrow = false;
|
|
27
|
+
/** [optional] Sets padding for Popover container */
|
|
28
|
+
this.padding = "8px";
|
|
29
|
+
this.isVisible = false;
|
|
30
|
+
this.popoverPosition = this.position;
|
|
31
|
+
this.handleKeyDown = this.handleKeyDown.bind(this);
|
|
32
|
+
}
|
|
33
|
+
emitTriggerClick() {
|
|
34
|
+
this.triggerClick.emit({
|
|
35
|
+
isVisible: this.isVisible,
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
openPopover() {
|
|
39
|
+
const width = document.body.clientWidth;
|
|
40
|
+
const height = window.innerHeight;
|
|
41
|
+
const rect = this.popoverElem.getBoundingClientRect();
|
|
42
|
+
const l = rect.left;
|
|
43
|
+
const r = rect.right;
|
|
44
|
+
const t = rect.top;
|
|
45
|
+
const b = rect.bottom;
|
|
46
|
+
let firstSide = this.position.split("-")[0];
|
|
47
|
+
let secondSide = this.position.split("-")[1];
|
|
48
|
+
// If top is outside viewport
|
|
49
|
+
if (t < 0) {
|
|
50
|
+
if (this.position.startsWith("above")) {
|
|
51
|
+
firstSide = "below";
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
secondSide = "down";
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
// If bottom is outside viewport
|
|
58
|
+
if (b > height) {
|
|
59
|
+
if (this.position.startsWith("below")) {
|
|
60
|
+
firstSide = "above";
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
secondSide = "up";
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
// If right is outside viewport
|
|
67
|
+
if (r > width) {
|
|
68
|
+
if (this.position.startsWith("above") ||
|
|
69
|
+
this.position.startsWith("below")) {
|
|
70
|
+
secondSide = "left";
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
firstSide = "before";
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
// If left is outside viewport
|
|
77
|
+
if (l < 0) {
|
|
78
|
+
if (this.position.startsWith("above") ||
|
|
79
|
+
this.position.startsWith("below")) {
|
|
80
|
+
secondSide = "right";
|
|
81
|
+
}
|
|
82
|
+
else {
|
|
83
|
+
firstSide = "after";
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
this.popoverPosition = PopoverPosition[`${firstSide}-${secondSide}`];
|
|
87
|
+
this.isVisible = true;
|
|
88
|
+
}
|
|
89
|
+
closePopover() {
|
|
90
|
+
this.popoverPosition = this.position;
|
|
91
|
+
this.isVisible = false;
|
|
92
|
+
}
|
|
93
|
+
closePopoverWithKeyboard(e) {
|
|
94
|
+
if (e.key === KeyboardKeys.ESC) {
|
|
95
|
+
this.closePopover();
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
handleClick(event) {
|
|
99
|
+
this.isVisible ? this.closePopover() : this.openPopover();
|
|
100
|
+
this.emitTriggerClick();
|
|
101
|
+
event.stopPropagation();
|
|
102
|
+
}
|
|
103
|
+
handleKeyDown(event) {
|
|
104
|
+
if (event.code === KeyboardKeys.ENTER) {
|
|
105
|
+
this.isVisible ? this.closePopover() : this.openPopover();
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
handleOutsideClick(e) {
|
|
109
|
+
const tree = getElementTree(e.target);
|
|
110
|
+
const parent = tree.find((elem) => elem.nodeName.toLowerCase() === "z-popover");
|
|
111
|
+
if (!parent) {
|
|
112
|
+
this.closePopover();
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
render() {
|
|
116
|
+
return (h(Host, { onKeyDown: this.handleKeyDown }, h("div", { tabindex: "0", onClick: (event) => this.handleClick(event), onKeyDown: (event) => {
|
|
117
|
+
if (event.key === KeyboardKeys.ENTER) {
|
|
118
|
+
this.handleClick(event);
|
|
119
|
+
}
|
|
120
|
+
} }, h("slot", { name: "trigger" })), h("div", { ref: (e) => (this.popoverElem = e), class: classnames("popover-content-container", this.popoverPosition, `border-radius-${this.borderRadius}`, this.boxShadow, { "show-arrow": this.showArrow }, { visible: this.isVisible }), style: {
|
|
121
|
+
backgroundColor: `var(--${this.backgroundColor})`,
|
|
122
|
+
padding: this.padding,
|
|
123
|
+
} }, h("slot", { name: "popover" }))));
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
ZPopover.style = stylesCss;
|
|
127
|
+
|
|
128
|
+
export { ZPopover as z_popover };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { r as registerInstance, h, a as getElement } from './index-b3a91e19.js';
|
|
2
|
+
import { r as ZSectionTitleDividerPositions, k as DividerSize } from './index-654849a7.js';
|
|
3
|
+
|
|
4
|
+
const stylesCss = ":host{--z-section-title--divider-color:var(--red500);display:flex;flex-direction:column;align-items:flex-start;width:fit-content;font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host,:host ::slotted(*){box-sizing:border-box}::slotted(*){margin:0}::slotted([slot=\"secondary-title\"]){padding-bottom:calc(var(--space-unit) / 2);border-bottom:var(--border-size-large) solid var(--z-section-title--divider-color);text-transform:uppercase;font-size:var(--font-size-3);line-height:1.5rem}::slotted([slot=\"primary-title\"]){font-size:var(--font-size-6);line-height:2rem}:host([uppercase]) ::slotted([slot=\"primary-title\"]){text-transform:uppercase}@media (min-width: 1152px){::slotted([slot=\"primary-title\"]){font-size:var(--font-size-7);line-height:2.25rem}}";
|
|
5
|
+
|
|
6
|
+
const ZSectionTitle = class {
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
registerInstance(this, hostRef);
|
|
9
|
+
/**
|
|
10
|
+
* Divider position for the primary title.
|
|
11
|
+
* This prop only works if the secondary title is not set.
|
|
12
|
+
*/
|
|
13
|
+
this.dividerPosition = ZSectionTitleDividerPositions.before;
|
|
14
|
+
/**
|
|
15
|
+
* Whether the primary title text is uppercase.
|
|
16
|
+
*/
|
|
17
|
+
this.uppercase = true;
|
|
18
|
+
}
|
|
19
|
+
componentWillRender() {
|
|
20
|
+
this.hasSecondaryTitle = !!this.host.querySelector("[slot=secondary-title]");
|
|
21
|
+
}
|
|
22
|
+
render() {
|
|
23
|
+
return [
|
|
24
|
+
h("slot", { name: "secondary-title" }),
|
|
25
|
+
!this.hasSecondaryTitle &&
|
|
26
|
+
this.dividerPosition == ZSectionTitleDividerPositions.before &&
|
|
27
|
+
h("z-divider", { size: DividerSize.large, color: "z-section-title--divider-color" }),
|
|
28
|
+
h("slot", { name: "primary-title" }),
|
|
29
|
+
!this.hasSecondaryTitle &&
|
|
30
|
+
this.dividerPosition == ZSectionTitleDividerPositions.after &&
|
|
31
|
+
h("z-divider", { size: DividerSize.large, color: "z-section-title--divider-color" }),
|
|
32
|
+
];
|
|
33
|
+
}
|
|
34
|
+
get host() { return getElement(this); }
|
|
35
|
+
};
|
|
36
|
+
ZSectionTitle.style = stylesCss;
|
|
37
|
+
|
|
38
|
+
export { ZSectionTitle as z_section_title };
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-b3a91e19.js';
|
|
2
|
+
import { a as getElementTree, h as handleKeyboardSubmit } from './utils-417652d9.js';
|
|
3
|
+
import { T as ThemeVariant } from './index-654849a7.js';
|
|
4
|
+
import './breakpoints-e07f80e7.js';
|
|
5
|
+
|
|
6
|
+
const stylesCss = ".sc-z-skip-to-content-h{font-family:var(--font-family-sans);font-weight:var(--font-rg);position:absolute;left:-100%;background-color:#24f4ff;padding:calc(var(--space-unit) * 1.25) calc(var(--space-unit) * 3);height:60px;box-sizing:border-box}.skip-to-content-visible.sc-z-skip-to-content-h,.sc-z-skip-to-content-h:focus{position:static;display:block}.sc-z-skip-to-content-h>z-link.sc-z-skip-to-content{display:block;text-align:center}.sc-z-skip-to-content-h>z-link.link-invisible.sc-z-skip-to-content{height:0;width:0;overflow:hidden}.sc-z-skip-to-content-h>z-link.link-visible.sc-z-skip-to-content{height:initial;width:initial}.dark.sc-z-skip-to-content-h{background-color:var(--bg-grey-800);color:var(--color-white)}.light.sc-z-skip-to-content-h{background-color:var(--bg-white);color:var(--text-grey-800);border:2px solid var(--text-grey-800)}@media (min-width: 768px){.sc-z-skip-to-content-h>z-link.sc-z-skip-to-content{text-align:left}}@media (min-width: 1152px){.sc-z-skip-to-content-h>z-link.sc-z-skip-to-content{display:inline-block;padding:0 calc(var(--space-unit) * 3);border-right:1px solid var(--bg-grey-800)}.sc-z-skip-to-content-h>z-link.link-invisible.sc-z-skip-to-content{height:initial;width:initial;overflow:initial}.sc-z-skip-to-content-h>z-link.sc-z-skip-to-content:first-child{padding-left:0}.sc-z-skip-to-content-h>z-link.sc-z-skip-to-content:last-child,.dark.sc-z-skip-to-content-h>z-link.sc-z-skip-to-content:last-child,.light.sc-z-skip-to-content-h>z-link.sc-z-skip-to-content:last-child{border-right:none;padding-right:0}.dark.sc-z-skip-to-content-h>z-link.sc-z-skip-to-content{border-right:1px solid var(--bg-white)}}";
|
|
7
|
+
|
|
8
|
+
const ZSkipToContent = class {
|
|
9
|
+
constructor(hostRef) {
|
|
10
|
+
registerInstance(this, hostRef);
|
|
11
|
+
/** Array to fill link into skip-content */
|
|
12
|
+
this.links = [];
|
|
13
|
+
this.visible = false;
|
|
14
|
+
this.visibleLink = "";
|
|
15
|
+
}
|
|
16
|
+
handleFocusOutSkipToContent(e) {
|
|
17
|
+
if (this.isInSkipToContent(e.target))
|
|
18
|
+
this.visible = false;
|
|
19
|
+
}
|
|
20
|
+
handleFocusSkipToContent(e) {
|
|
21
|
+
if (this.isInSkipToContent(e.target))
|
|
22
|
+
this.visible = true;
|
|
23
|
+
}
|
|
24
|
+
componentDidLoad() {
|
|
25
|
+
this.showFirstChild();
|
|
26
|
+
}
|
|
27
|
+
componentWillRender() {
|
|
28
|
+
if (this.links) {
|
|
29
|
+
this.links =
|
|
30
|
+
typeof this.links === "string" ? JSON.parse(this.links) : this.links;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
isInSkipToContent(elem) {
|
|
34
|
+
const tree = getElementTree(elem);
|
|
35
|
+
const menuParent = tree.find((elem) => elem.nodeName.toLowerCase() === "z-skip-to-content");
|
|
36
|
+
if (menuParent)
|
|
37
|
+
return true;
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
getFirstChild() {
|
|
41
|
+
const children = this.hostElement.children;
|
|
42
|
+
if (children.length)
|
|
43
|
+
return children[0];
|
|
44
|
+
return false;
|
|
45
|
+
}
|
|
46
|
+
showFirstChild() {
|
|
47
|
+
const firstChild = this.getFirstChild();
|
|
48
|
+
if (firstChild)
|
|
49
|
+
this.visibleLink = firstChild.id;
|
|
50
|
+
}
|
|
51
|
+
handleLinkClick() {
|
|
52
|
+
this.visible = false;
|
|
53
|
+
}
|
|
54
|
+
render() {
|
|
55
|
+
return (h(Host, { class: `${this.variant} ${this.visible && "skip-to-content-visible"} `, ref: (el) => el }, this.links.map((link, i) => {
|
|
56
|
+
const id = `skip-to-content-${i}`;
|
|
57
|
+
return (h("z-link", { id: id, underline: true, "aria-label": link.ariaLabel || link.label, class: `body-1-sb ${id == this.visibleLink ? "link-visible" : "link-invisible"}`, href: link.href, textcolor: this.variant === ThemeVariant.dark ? "white" : "black", onFocus: () => (this.visibleLink = id), onClick: () => this.handleLinkClick(), onKeyUp: (e) => handleKeyboardSubmit(e, this.handleLinkClick.bind(this)) }, link.label));
|
|
58
|
+
})));
|
|
59
|
+
}
|
|
60
|
+
get hostElement() { return getElement(this); }
|
|
61
|
+
};
|
|
62
|
+
ZSkipToContent.style = stylesCss;
|
|
63
|
+
|
|
64
|
+
export { ZSkipToContent as z_skip_to_content };
|