@zanichelli/delta_share 3.2.5 → 4.0.0
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-7770f79c.js +9 -0
- package/dist/wc/cjs/delta_share.cjs.js +2 -2
- package/dist/wc/cjs/{index-675ba3c5.js → index-405a1782.js} +2 -2
- package/dist/wc/cjs/{index-c98ff1cc.js → index-48ad79ef.js} +52 -80
- package/dist/wc/cjs/index-5854a783.js +64 -0
- package/dist/wc/cjs/index-9c3aec20.js +340 -0
- package/dist/wc/cjs/{index-e790a3c5.js → index-a1571f05.js} +2 -5
- package/dist/wc/cjs/{index-23e5e843.js → index-c22b1079.js} +2 -5
- package/dist/wc/cjs/index-ce49a372.js +44 -0
- package/dist/wc/cjs/index-f209baa4.js +56 -0
- package/dist/wc/cjs/license-activation_10.cjs.entry.js +993 -50
- package/dist/wc/cjs/loader.cjs.js +2 -2
- package/dist/wc/cjs/{utils-1ed1ec98.js → utils-1b80375b.js} +63 -63
- package/dist/wc/cjs/utils-ff107ab4.js +111 -0
- package/dist/wc/cjs/z-accordion.cjs.entry.js +6 -22
- package/dist/wc/cjs/z-alert.cjs.entry.js +3 -2
- package/dist/wc/cjs/z-anchor-navigation.cjs.entry.js +16 -18
- package/dist/wc/cjs/z-app-header-deprecated.cjs.entry.js +155 -0
- package/dist/wc/cjs/z-app-header.cjs.entry.js +201 -119
- package/dist/wc/cjs/z-aria-alert.cjs.entry.js +3 -4
- package/dist/wc/cjs/z-avatar.cjs.entry.js +6 -7
- package/dist/wc/cjs/z-book-card.cjs.entry.js +20 -11
- package/dist/wc/cjs/z-breadcrumb.cjs.entry.js +87 -100
- package/dist/wc/cjs/z-button-sort.cjs.entry.js +8 -8
- package/dist/wc/cjs/z-card.cjs.entry.js +10 -9
- package/dist/wc/cjs/z-carousel.cjs.entry.js +75 -44
- package/dist/wc/cjs/z-chip.cjs.entry.js +7 -8
- package/dist/wc/cjs/z-combobox.cjs.entry.js +141 -67
- package/dist/wc/cjs/z-cover-hero.cjs.entry.js +5 -17
- package/dist/wc/cjs/z-date-picker.cjs.entry.js +7 -7
- package/dist/wc/cjs/z-divider.cjs.entry.js +3 -6
- package/dist/wc/cjs/z-dragdrop-area.cjs.entry.js +6 -5
- package/dist/wc/cjs/z-file-upload.cjs.entry.js +59 -32
- package/dist/wc/cjs/z-file.cjs.entry.js +7 -5
- package/dist/wc/cjs/z-ghost-loading.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-info-reveal.cjs.entry.js +31 -34
- package/dist/wc/cjs/z-list_4.cjs.entry.js +216 -0
- package/dist/wc/cjs/z-logo.cjs.entry.js +8 -2
- package/dist/wc/cjs/z-menu-deprecated.cjs.entry.js +112 -0
- package/dist/wc/cjs/z-menu-section-deprecated.cjs.entry.js +57 -0
- package/dist/wc/cjs/z-menu-section.cjs.entry.js +158 -23
- package/dist/wc/cjs/z-menu.cjs.entry.js +260 -61
- package/dist/wc/cjs/z-myz-card-alert.cjs.entry.js +7 -3
- package/dist/wc/cjs/z-myz-card-dictionary.cjs.entry.js +6 -8
- package/dist/wc/cjs/z-myz-card-footer-sections.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-myz-card-footer.cjs.entry.js +9 -6
- package/dist/wc/cjs/z-myz-card-icon.cjs.entry.js +3 -4
- package/dist/wc/cjs/z-myz-card-info.cjs.entry.js +9 -9
- package/dist/wc/cjs/z-myz-card-list.cjs.entry.js +4 -3
- package/dist/wc/cjs/z-myz-card_4.cjs.entry.js +15 -8
- package/dist/wc/cjs/z-myz-list-item.cjs.entry.js +17 -14
- package/dist/wc/cjs/z-myz-list.cjs.entry.js +4 -2
- package/dist/wc/cjs/z-navigation-tabs.cjs.entry.js +18 -21
- package/dist/wc/cjs/z-notification.cjs.entry.js +14 -17
- package/dist/wc/cjs/z-offcanvas_2.cjs.entry.js +103 -40
- package/dist/wc/cjs/z-otp.cjs.entry.js +7 -6
- package/dist/wc/cjs/z-pagination.cjs.entry.js +8 -15
- package/dist/wc/cjs/z-panel-elem.cjs.entry.js +10 -11
- package/dist/wc/cjs/z-popover.cjs.entry.js +11 -23
- package/dist/wc/cjs/z-range-picker.cjs.entry.js +12 -12
- package/dist/wc/cjs/z-section-title.cjs.entry.js +3 -10
- package/dist/wc/cjs/z-select.cjs.entry.js +26 -21
- package/dist/wc/cjs/z-skip-to-content.cjs.entry.js +7 -7
- package/dist/wc/cjs/z-slideshow.cjs.entry.js +8 -5
- package/dist/wc/cjs/z-stepper-item.cjs.entry.js +15 -6
- package/dist/wc/cjs/z-stepper.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-table.cjs.entry.js +14 -19
- package/dist/wc/cjs/z-tbody.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-td.cjs.entry.js +3 -3
- package/dist/wc/cjs/z-tfoot.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-th.cjs.entry.js +3 -3
- package/dist/wc/cjs/z-thead.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-toast-notification-list.cjs.entry.js +7 -7
- package/dist/wc/cjs/z-toast-notification.cjs.entry.js +2664 -16
- package/dist/wc/cjs/z-toggle-button.cjs.entry.js +6 -7
- package/dist/wc/cjs/z-toggle-switch.cjs.entry.js +8 -12
- package/dist/wc/cjs/z-tooltip.cjs.entry.js +5 -14
- package/dist/wc/cjs/z-tr.cjs.entry.js +7 -7
- package/dist/wc/cjs/z-visually-hidden.cjs.entry.js +2 -2
- package/dist/wc/collection/collection-manifest.json +3 -20
- package/dist/wc/collection/components/license-activation-form/license-activation-form.css +3 -3
- package/dist/wc/custom-elements/index.js +6930 -6837
- package/dist/wc/delta_share/delta_share.esm.js +1 -1
- package/dist/wc/delta_share/p-03cc4be4.entry.js +1 -0
- package/dist/wc/delta_share/p-056fe365.js +2 -0
- package/dist/wc/delta_share/p-069cc2de.entry.js +1 -0
- package/dist/wc/delta_share/p-0a67ed21.entry.js +1 -0
- package/dist/wc/delta_share/p-0b2e7aa5.js +1 -0
- package/dist/wc/delta_share/p-133d17f0.entry.js +1 -0
- package/dist/wc/delta_share/p-146386e4.entry.js +1 -0
- package/dist/wc/delta_share/p-148ce1f3.entry.js +1 -0
- package/dist/wc/delta_share/p-152e098e.js +1 -0
- package/dist/wc/delta_share/p-160b3aa1.js +1 -0
- package/dist/wc/delta_share/p-185c06b2.js +1 -0
- package/dist/wc/delta_share/p-18f180f7.entry.js +1 -0
- package/dist/wc/delta_share/p-193ddfc3.entry.js +1 -0
- package/dist/wc/delta_share/p-20a0d980.entry.js +1 -0
- package/dist/wc/delta_share/p-21c82b99.entry.js +1 -0
- package/dist/wc/delta_share/p-2d2b2bb4.entry.js +1 -0
- package/dist/wc/delta_share/p-2df15f43.entry.js +1 -0
- package/dist/wc/delta_share/p-2e8f2b22.entry.js +1 -0
- package/dist/wc/delta_share/p-2fc2aa62.entry.js +1 -0
- package/dist/wc/delta_share/p-33e298a6.entry.js +1 -0
- package/dist/wc/delta_share/p-3a21c604.js +1 -0
- package/dist/wc/delta_share/p-3b183716.entry.js +1 -0
- package/dist/wc/delta_share/p-423a64c4.js +1 -0
- package/dist/wc/delta_share/p-47c9e381.entry.js +1 -0
- package/dist/wc/delta_share/p-4e7c6413.entry.js +1 -0
- package/dist/wc/delta_share/p-4f085f30.entry.js +1 -0
- package/dist/wc/delta_share/p-576def78.entry.js +1 -0
- package/dist/wc/delta_share/p-5dcbb1d5.entry.js +1 -0
- package/dist/wc/delta_share/p-5ef85199.js +1 -0
- package/dist/wc/delta_share/p-63351f72.entry.js +1 -0
- package/dist/wc/delta_share/p-63a90675.entry.js +1 -0
- package/dist/wc/delta_share/p-6b0f653f.entry.js +1 -0
- package/dist/wc/delta_share/p-6c56754f.entry.js +1 -0
- package/dist/wc/delta_share/p-6f585df9.entry.js +1 -0
- package/dist/wc/delta_share/p-72dfd888.entry.js +1 -0
- package/dist/wc/delta_share/p-7768e58a.entry.js +1 -0
- package/dist/wc/delta_share/p-7c207e2e.entry.js +1 -0
- package/dist/wc/delta_share/p-7e79bb6e.entry.js +1 -0
- package/dist/wc/delta_share/p-841f8f71.entry.js +1 -0
- package/dist/wc/delta_share/p-873f0f34.js +1 -0
- package/dist/wc/delta_share/p-89879344.entry.js +1 -0
- package/dist/wc/delta_share/p-8ff9652b.entry.js +1 -0
- package/dist/wc/delta_share/p-903067b4.entry.js +1 -0
- package/dist/wc/delta_share/p-93a18eb7.entry.js +1 -0
- package/dist/wc/delta_share/p-93ad6bbd.entry.js +1 -0
- package/dist/wc/delta_share/p-9c968734.entry.js +16 -0
- package/dist/wc/delta_share/p-a03a7dbd.entry.js +1 -0
- package/dist/wc/delta_share/p-a8e34ef2.entry.js +1 -0
- package/dist/wc/delta_share/p-adf4d729.entry.js +1 -0
- package/dist/wc/delta_share/p-b0edd600.entry.js +1 -0
- package/dist/wc/delta_share/{p-d50ea6ea.js → p-b307c221.js} +1 -1
- package/dist/wc/delta_share/p-b724df69.entry.js +1 -0
- package/dist/wc/delta_share/p-bab3d1cb.entry.js +1 -0
- package/dist/wc/delta_share/p-baff4861.entry.js +1 -0
- package/dist/wc/delta_share/p-c0ca33be.entry.js +1 -0
- package/dist/wc/delta_share/p-c9c8b659.entry.js +1 -0
- package/dist/wc/delta_share/p-cb11c710.entry.js +1 -0
- package/dist/wc/delta_share/p-ccf2fd6c.entry.js +1 -0
- package/dist/wc/delta_share/p-cf6f7c96.entry.js +3 -0
- package/dist/wc/delta_share/p-d0444907.entry.js +1 -0
- package/dist/wc/delta_share/p-d1724071.entry.js +1 -0
- package/dist/wc/delta_share/p-d23fb987.entry.js +1 -0
- package/dist/wc/delta_share/p-e0973089.entry.js +1 -0
- package/dist/wc/delta_share/p-e237572d.entry.js +1 -0
- package/dist/wc/delta_share/p-e3eb4863.entry.js +1 -0
- package/dist/wc/delta_share/p-e7d0cdcf.entry.js +1 -0
- package/dist/wc/delta_share/p-e9ec361e.entry.js +1 -0
- package/dist/wc/delta_share/p-ea23ec67.entry.js +1 -0
- package/dist/wc/delta_share/p-ee09fc8d.entry.js +1 -0
- package/dist/wc/delta_share/p-efd9e806.entry.js +1 -0
- package/dist/wc/delta_share/p-f002c0bd.entry.js +1 -0
- package/dist/wc/delta_share/p-f1c47fff.entry.js +7 -0
- package/dist/wc/delta_share/p-f6075d7c.entry.js +1 -0
- package/dist/wc/delta_share/p-f685348b.js +1 -0
- package/dist/wc/delta_share/p-f7a0336e.entry.js +1 -0
- package/dist/wc/delta_share/p-f90ae8fc.entry.js +1 -0
- package/dist/wc/delta_share/p-fd19aa4b.entry.js +1 -0
- package/dist/wc/esm/breakpoints-9229197d.js +9 -0
- package/dist/wc/esm/delta_share.js +2 -2
- package/dist/wc/esm/index-02968d97.js +54 -0
- package/dist/wc/esm/index-477f3c77.js +62 -0
- package/dist/wc/esm/index-65780d25.js +15 -0
- package/dist/wc/esm/index-74e0ef99.js +340 -0
- package/dist/wc/esm/{index-1b01fa0e.js → index-b69e88d4.js} +52 -81
- package/dist/wc/esm/index-cd166cda.js +42 -0
- package/dist/wc/esm/{index-2be1634d.js → index-db80adda.js} +2 -5
- package/dist/wc/esm/{index-64993358.js → index-f98b91fa.js} +2 -5
- package/dist/wc/esm/license-activation_10.entry.js +991 -48
- package/dist/wc/esm/loader.js +2 -2
- package/dist/wc/esm/utils-1f351a57.js +101 -0
- package/dist/wc/esm/{utils-5e6dc3fe.js → utils-9550bfa1.js} +63 -63
- package/dist/wc/esm/z-accordion.entry.js +6 -22
- package/dist/wc/esm/z-alert.entry.js +3 -2
- package/dist/wc/esm/z-anchor-navigation.entry.js +16 -18
- package/dist/wc/esm/z-app-header-deprecated.entry.js +151 -0
- package/dist/wc/esm/z-app-header.entry.js +200 -118
- package/dist/wc/esm/z-aria-alert.entry.js +3 -4
- package/dist/wc/esm/z-avatar.entry.js +6 -7
- package/dist/wc/esm/z-book-card.entry.js +20 -11
- package/dist/wc/esm/z-breadcrumb.entry.js +87 -100
- package/dist/wc/esm/z-button-sort.entry.js +8 -8
- package/dist/wc/esm/z-card.entry.js +10 -9
- package/dist/wc/esm/z-carousel.entry.js +75 -44
- package/dist/wc/esm/z-chip.entry.js +7 -8
- package/dist/wc/esm/z-combobox.entry.js +141 -67
- package/dist/wc/esm/z-cover-hero.entry.js +5 -17
- package/dist/wc/esm/z-date-picker.entry.js +7 -7
- package/dist/wc/esm/z-divider.entry.js +3 -6
- package/dist/wc/esm/z-dragdrop-area.entry.js +6 -5
- package/dist/wc/esm/z-file-upload.entry.js +59 -32
- package/dist/wc/esm/z-file.entry.js +7 -5
- package/dist/wc/esm/z-ghost-loading.entry.js +2 -2
- package/dist/wc/esm/z-info-reveal.entry.js +31 -34
- package/dist/wc/esm/z-list_4.entry.js +209 -0
- package/dist/wc/esm/z-logo.entry.js +8 -2
- package/dist/wc/esm/z-menu-deprecated.entry.js +108 -0
- package/dist/wc/esm/z-menu-section-deprecated.entry.js +53 -0
- package/dist/wc/esm/z-menu-section.entry.js +158 -23
- package/dist/wc/esm/z-menu.entry.js +260 -61
- package/dist/wc/esm/z-myz-card-alert.entry.js +7 -3
- package/dist/wc/esm/z-myz-card-dictionary.entry.js +6 -8
- package/dist/wc/esm/z-myz-card-footer-sections.entry.js +2 -2
- package/dist/wc/esm/z-myz-card-footer.entry.js +9 -6
- package/dist/wc/esm/z-myz-card-icon.entry.js +3 -4
- package/dist/wc/esm/z-myz-card-info.entry.js +9 -9
- package/dist/wc/esm/z-myz-card-list.entry.js +4 -3
- package/dist/wc/esm/z-myz-card_4.entry.js +15 -8
- package/dist/wc/esm/z-myz-list-item.entry.js +17 -14
- package/dist/wc/esm/z-myz-list.entry.js +4 -2
- package/dist/wc/esm/z-navigation-tabs.entry.js +18 -21
- package/dist/wc/esm/z-notification.entry.js +14 -17
- package/dist/wc/esm/z-offcanvas_2.entry.js +103 -40
- package/dist/wc/esm/z-otp.entry.js +7 -6
- package/dist/wc/esm/z-pagination.entry.js +8 -15
- package/dist/wc/esm/z-panel-elem.entry.js +10 -11
- package/dist/wc/esm/z-popover.entry.js +11 -23
- package/dist/wc/esm/z-range-picker.entry.js +12 -12
- package/dist/wc/esm/z-section-title.entry.js +3 -10
- package/dist/wc/esm/z-select.entry.js +26 -21
- package/dist/wc/esm/z-skip-to-content.entry.js +7 -7
- package/dist/wc/esm/z-slideshow.entry.js +8 -5
- package/dist/wc/esm/z-stepper-item.entry.js +15 -6
- package/dist/wc/esm/z-stepper.entry.js +2 -2
- package/dist/wc/esm/z-table.entry.js +14 -19
- package/dist/wc/esm/z-tbody.entry.js +2 -2
- package/dist/wc/esm/z-td.entry.js +3 -3
- package/dist/wc/esm/z-tfoot.entry.js +2 -2
- package/dist/wc/esm/z-th.entry.js +3 -3
- package/dist/wc/esm/z-thead.entry.js +2 -2
- package/dist/wc/esm/z-toast-notification-list.entry.js +7 -7
- package/dist/wc/esm/z-toast-notification.entry.js +2660 -12
- package/dist/wc/esm/z-toggle-button.entry.js +6 -7
- package/dist/wc/esm/z-toggle-switch.entry.js +8 -12
- package/dist/wc/esm/z-tooltip.entry.js +5 -14
- package/dist/wc/esm/z-tr.entry.js +7 -7
- package/dist/wc/esm/z-visually-hidden.entry.js +2 -2
- package/package.json +1 -1
- package/dist/wc/cjs/breakpoints-e7c8838e.js +0 -9
- package/dist/wc/cjs/hammer-4f20813e.js +0 -2650
- package/dist/wc/cjs/icons-6d7ce4fc.js +0 -862
- package/dist/wc/cjs/index-029f1a7e.js +0 -344
- package/dist/wc/cjs/index-2693f4d5.js +0 -21
- package/dist/wc/cjs/index-30694024.js +0 -41
- package/dist/wc/cjs/index-3171b6c3.js +0 -79
- package/dist/wc/cjs/index-3218642b.js +0 -67
- package/dist/wc/cjs/index-422e5a81.js +0 -17
- package/dist/wc/cjs/index-452ee215.js +0 -20
- package/dist/wc/cjs/index-668dd84e.js +0 -34
- package/dist/wc/cjs/index-68c03627.js +0 -53
- package/dist/wc/cjs/index-72da8f73.js +0 -17
- package/dist/wc/cjs/index-8a564949.js +0 -29
- package/dist/wc/cjs/index-929abcb2.js +0 -74
- package/dist/wc/cjs/index-dbb9c380.js +0 -21
- package/dist/wc/cjs/index-e47a42d9.js +0 -22
- package/dist/wc/cjs/utils-43a3deb6.js +0 -97
- package/dist/wc/cjs/z-contextual-menu.cjs.entry.js +0 -46
- package/dist/wc/cjs/z-link.cjs.entry.js +0 -74
- package/dist/wc/cjs/z-list_3.cjs.entry.js +0 -261
- package/dist/wc/cjs/z-messages-pocket.cjs.entry.js +0 -46
- package/dist/wc/cjs/z-navigation-tab-link.cjs.entry.js +0 -74
- package/dist/wc/cjs/z-navigation-tab.cjs.entry.js +0 -73
- package/dist/wc/cjs/z-pocket-message.cjs.entry.js +0 -19
- package/dist/wc/cjs/z-pocket_3.cjs.entry.js +0 -125
- package/dist/wc/cjs/z-table-body.cjs.entry.js +0 -10
- package/dist/wc/cjs/z-table-cell.cjs.entry.js +0 -11
- package/dist/wc/cjs/z-table-deprecated.cjs.entry.js +0 -91
- package/dist/wc/cjs/z-table-empty-box.cjs.entry.js +0 -10
- package/dist/wc/cjs/z-table-expanded-row.cjs.entry.js +0 -10
- package/dist/wc/cjs/z-table-footer.cjs.entry.js +0 -10
- package/dist/wc/cjs/z-table-head.cjs.entry.js +0 -10
- package/dist/wc/cjs/z-table-header-row.cjs.entry.js +0 -10
- package/dist/wc/cjs/z-table-header.cjs.entry.js +0 -13
- package/dist/wc/cjs/z-table-row.cjs.entry.js +0 -11
- package/dist/wc/cjs/z-table-sticky-footer.cjs.entry.js +0 -10
- package/dist/wc/cjs/z-tag.cjs.entry.js +0 -22
- package/dist/wc/delta_share/p-007a1bc5.entry.js +0 -1
- package/dist/wc/delta_share/p-0188e962.entry.js +0 -1
- package/dist/wc/delta_share/p-01dd7a45.entry.js +0 -1
- package/dist/wc/delta_share/p-029a7353.entry.js +0 -1
- package/dist/wc/delta_share/p-032199e9.entry.js +0 -1
- package/dist/wc/delta_share/p-043cdbf1.js +0 -1
- package/dist/wc/delta_share/p-047a8524.entry.js +0 -1
- package/dist/wc/delta_share/p-0fe4e8b2.entry.js +0 -1
- package/dist/wc/delta_share/p-112478b5.js +0 -1
- package/dist/wc/delta_share/p-162d0233.entry.js +0 -1
- package/dist/wc/delta_share/p-1b701b0e.entry.js +0 -1
- package/dist/wc/delta_share/p-1bb7af24.js +0 -1
- package/dist/wc/delta_share/p-1d427e0a.entry.js +0 -1
- package/dist/wc/delta_share/p-1e3d2b14.entry.js +0 -1
- package/dist/wc/delta_share/p-1f4909c7.entry.js +0 -1
- package/dist/wc/delta_share/p-20ff5410.entry.js +0 -1
- package/dist/wc/delta_share/p-2427835b.js +0 -1
- package/dist/wc/delta_share/p-26d1744f.entry.js +0 -1
- package/dist/wc/delta_share/p-271ab47a.js +0 -1
- package/dist/wc/delta_share/p-2b5da773.js +0 -1
- package/dist/wc/delta_share/p-2da22eda.entry.js +0 -1
- package/dist/wc/delta_share/p-32498aa3.entry.js +0 -1
- package/dist/wc/delta_share/p-354d0aa4.entry.js +0 -1
- package/dist/wc/delta_share/p-3747affc.entry.js +0 -1
- package/dist/wc/delta_share/p-38341cfb.entry.js +0 -1
- package/dist/wc/delta_share/p-3b046489.entry.js +0 -1
- package/dist/wc/delta_share/p-3e0d58c3.entry.js +0 -1
- package/dist/wc/delta_share/p-40b1f526.entry.js +0 -1
- package/dist/wc/delta_share/p-40db0c2f.entry.js +0 -1
- package/dist/wc/delta_share/p-41580384.js +0 -1
- package/dist/wc/delta_share/p-45e62587.entry.js +0 -1
- package/dist/wc/delta_share/p-46575ead.js +0 -1
- package/dist/wc/delta_share/p-4666e9fb.entry.js +0 -1
- package/dist/wc/delta_share/p-47c1de64.entry.js +0 -1
- package/dist/wc/delta_share/p-4b9be5d5.entry.js +0 -1
- package/dist/wc/delta_share/p-4bf8f33b.js +0 -1
- package/dist/wc/delta_share/p-50d72747.entry.js +0 -1
- package/dist/wc/delta_share/p-553d3d4e.js +0 -1
- package/dist/wc/delta_share/p-5ab3a4b0.entry.js +0 -1
- package/dist/wc/delta_share/p-5bb251dd.entry.js +0 -1
- package/dist/wc/delta_share/p-5cecb6db.entry.js +0 -1
- package/dist/wc/delta_share/p-62970c74.entry.js +0 -1
- package/dist/wc/delta_share/p-6347f0d8.entry.js +0 -1
- package/dist/wc/delta_share/p-66454c1b.entry.js +0 -1
- package/dist/wc/delta_share/p-6676c375.entry.js +0 -1
- package/dist/wc/delta_share/p-697c4ac9.js +0 -1
- package/dist/wc/delta_share/p-72442d2b.js +0 -1
- package/dist/wc/delta_share/p-72c4a523.entry.js +0 -1
- package/dist/wc/delta_share/p-7856ba3d.entry.js +0 -1
- package/dist/wc/delta_share/p-7eb297a7.entry.js +0 -1
- package/dist/wc/delta_share/p-8589abd7.js +0 -1
- package/dist/wc/delta_share/p-86f2958b.entry.js +0 -1
- package/dist/wc/delta_share/p-8745c480.entry.js +0 -1
- package/dist/wc/delta_share/p-8f123d77.entry.js +0 -1
- package/dist/wc/delta_share/p-90289241.entry.js +0 -1
- package/dist/wc/delta_share/p-95056ca8.entry.js +0 -1
- package/dist/wc/delta_share/p-95945f29.entry.js +0 -1
- package/dist/wc/delta_share/p-97577c0b.entry.js +0 -1
- package/dist/wc/delta_share/p-97d82f7e.entry.js +0 -1
- package/dist/wc/delta_share/p-9ebfdadf.entry.js +0 -1
- package/dist/wc/delta_share/p-a430cb52.entry.js +0 -1
- package/dist/wc/delta_share/p-a6a819d5.entry.js +0 -1
- package/dist/wc/delta_share/p-ac9574a6.entry.js +0 -1
- package/dist/wc/delta_share/p-aefef80d.entry.js +0 -1
- package/dist/wc/delta_share/p-b052dab7.entry.js +0 -3
- package/dist/wc/delta_share/p-b2f3596c.entry.js +0 -1
- package/dist/wc/delta_share/p-b4d3ca7d.entry.js +0 -1
- package/dist/wc/delta_share/p-b7a409df.entry.js +0 -1
- package/dist/wc/delta_share/p-b7b93904.entry.js +0 -1
- package/dist/wc/delta_share/p-b9b6c478.entry.js +0 -1
- package/dist/wc/delta_share/p-bb8ec114.entry.js +0 -1
- package/dist/wc/delta_share/p-c3bcf36d.entry.js +0 -1
- package/dist/wc/delta_share/p-c4faf4eb.entry.js +0 -1
- package/dist/wc/delta_share/p-c61d7a11.js +0 -1
- package/dist/wc/delta_share/p-c64b3da1.entry.js +0 -1
- package/dist/wc/delta_share/p-c72a8f42.entry.js +0 -1
- package/dist/wc/delta_share/p-c7678d37.js +0 -1
- package/dist/wc/delta_share/p-ca2494fb.entry.js +0 -1
- package/dist/wc/delta_share/p-cc222b2f.entry.js +0 -1
- package/dist/wc/delta_share/p-ce15fdd1.entry.js +0 -1
- package/dist/wc/delta_share/p-cf6854c4.entry.js +0 -1
- package/dist/wc/delta_share/p-d79b35a8.entry.js +0 -1
- package/dist/wc/delta_share/p-d8592d42.js +0 -1
- package/dist/wc/delta_share/p-d86cd1ff.entry.js +0 -1
- package/dist/wc/delta_share/p-da254424.entry.js +0 -1
- package/dist/wc/delta_share/p-db4d5b29.entry.js +0 -1
- package/dist/wc/delta_share/p-dbf33c0f.entry.js +0 -1
- package/dist/wc/delta_share/p-df6ae14f.js +0 -1
- package/dist/wc/delta_share/p-e43e61ac.js +0 -7
- package/dist/wc/delta_share/p-e4fdcfc5.entry.js +0 -1
- package/dist/wc/delta_share/p-e573c206.entry.js +0 -1
- package/dist/wc/delta_share/p-e708b262.entry.js +0 -1
- package/dist/wc/delta_share/p-e8cda39a.js +0 -1
- package/dist/wc/delta_share/p-e94ef0ed.entry.js +0 -1
- package/dist/wc/delta_share/p-eb889b01.js +0 -2
- package/dist/wc/delta_share/p-edaf6126.entry.js +0 -1
- package/dist/wc/delta_share/p-efa66157.js +0 -1
- package/dist/wc/delta_share/p-f1bf817c.entry.js +0 -1
- package/dist/wc/delta_share/p-f25116a7.js +0 -1
- package/dist/wc/delta_share/p-f3023043.entry.js +0 -1
- package/dist/wc/delta_share/p-f42019e4.entry.js +0 -1
- package/dist/wc/delta_share/p-f5bb55e0.entry.js +0 -16
- package/dist/wc/delta_share/p-f635c868.entry.js +0 -1
- package/dist/wc/delta_share/p-fbc9f1bc.entry.js +0 -1
- package/dist/wc/esm/breakpoints-3c3dbb8c.js +0 -5
- package/dist/wc/esm/hammer-c3266b17.js +0 -2648
- package/dist/wc/esm/icons-6196a79a.js +0 -860
- package/dist/wc/esm/index-03cc51b1.js +0 -39
- package/dist/wc/esm/index-1082a536.js +0 -20
- package/dist/wc/esm/index-113e6780.js +0 -15
- package/dist/wc/esm/index-4854c8af.js +0 -27
- package/dist/wc/esm/index-485971a0.js +0 -15
- package/dist/wc/esm/index-9d240d39.js +0 -344
- package/dist/wc/esm/index-b3f3a99c.js +0 -77
- package/dist/wc/esm/index-ba38e8d5.js +0 -15
- package/dist/wc/esm/index-ce7e02a3.js +0 -72
- package/dist/wc/esm/index-cfd5ec9b.js +0 -65
- package/dist/wc/esm/index-de36993f.js +0 -18
- package/dist/wc/esm/index-df808f62.js +0 -32
- package/dist/wc/esm/index-f7dfdf1f.js +0 -19
- package/dist/wc/esm/index-faec138b.js +0 -19
- package/dist/wc/esm/index-ff4885bf.js +0 -51
- package/dist/wc/esm/utils-bc5ea6f7.js +0 -88
- package/dist/wc/esm/z-contextual-menu.entry.js +0 -42
- package/dist/wc/esm/z-link.entry.js +0 -70
- package/dist/wc/esm/z-list_3.entry.js +0 -255
- package/dist/wc/esm/z-messages-pocket.entry.js +0 -42
- package/dist/wc/esm/z-navigation-tab-link.entry.js +0 -70
- package/dist/wc/esm/z-navigation-tab.entry.js +0 -69
- package/dist/wc/esm/z-pocket-message.entry.js +0 -15
- package/dist/wc/esm/z-pocket_3.entry.js +0 -119
- package/dist/wc/esm/z-table-body.entry.js +0 -2
- package/dist/wc/esm/z-table-cell.entry.js +0 -3
- package/dist/wc/esm/z-table-deprecated.entry.js +0 -87
- package/dist/wc/esm/z-table-empty-box.entry.js +0 -2
- package/dist/wc/esm/z-table-expanded-row.entry.js +0 -2
- package/dist/wc/esm/z-table-footer.entry.js +0 -2
- package/dist/wc/esm/z-table-head.entry.js +0 -2
- package/dist/wc/esm/z-table-header-row.entry.js +0 -2
- package/dist/wc/esm/z-table-header.entry.js +0 -5
- package/dist/wc/esm/z-table-row.entry.js +0 -3
- package/dist/wc/esm/z-table-sticky-footer.entry.js +0 -2
- package/dist/wc/esm/z-tag.entry.js +0 -18
|
@@ -2,23 +2,30 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const index$1 = require('./index-
|
|
5
|
+
const index = require('./index-48ad79ef.js');
|
|
6
|
+
const index$1 = require('./index-9c3aec20.js');
|
|
7
7
|
|
|
8
|
-
const stylesCss = "
|
|
8
|
+
const stylesCss = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg);--z-carousel-gutter:0;}:host([single]){display:flex;flex-direction:column;align-items:center;justify-content:center}:host([single]) .z-carousel-container{width:fit-content;max-width:100%}.z-carousel-container{display:flex;flex-direction:column}.z-carousel-title{margin-bottom:calc(var(--space-unit) * 2)}.z-carousel-wrapper{position:relative}.z-carousel-items-container{display:flex;max-width:100%;flex-direction:row;margin:0;box-shadow:var(--z-carousel-items-shadow, none);column-gap:var(--z-carousel-gutter);list-style:none;-ms-overflow-style:none;overflow-x:scroll;padding-inline-start:0;scroll-behavior:smooth;scroll-snap-type:x mandatory;scrollbar-width:none;}.z-carousel-items-container::-webkit-scrollbar{display:none}.z-carousel-items-container ::slotted(*){scroll-snap-align:center}.z-carousel-navigation-arrow[hidden]{display:none}.z-carousel-navigation-arrow[data-direction]{position:absolute;z-index:1;bottom:50%;transform:translateY(50%)}.z-carousel-navigation-arrow[data-direction=\"next\"]{right:0}:host(:not([fixed-arrows])) .z-carousel-wrapper .z-carousel-navigation-arrow{display:none}.z-carousel-footer{display:flex;flex-direction:row;align-items:center;justify-content:center;column-gap:calc(var(--space-unit) * 3)}:host([arrows-position=\"bottom\"]) .z-carousel-footer{margin-top:calc(var(--space-unit) * 0.75)}.z-carousel-footer .numbers-progress,.z-carousel-footer .dots-progress{display:flex;align-items:center;justify-content:center}.z-carousel-footer .dots-progress{column-gap:calc(var(--space-unit) * 3)}:host(:not([arrows-position=\"bottom\"])) .z-carousel-footer .dots-progress{margin-top:calc(var(--space-unit) * 2)}.z-carousel-footer .dots-progress button{display:flex;width:calc(var(--space-unit) * 3);height:calc(var(--space-unit) * 3);align-items:center;padding:0;border:none;margin:0;background-color:var(--color-surface03);border-radius:calc(var(--space-unit) * 3)}.z-carousel-footer .dots-progress button.current{background-color:var(--color-primary01)}.z-carousel-footer .dots-progress button:focus:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none}.z-carousel-footer .dots-progress button:not(.current){cursor:pointer}.z-carousel-footer .numbers-progress{column-gap:calc(var(--space-unit) / 2)}:host(:not([arrows-position=\"bottom\"])) .z-carousel-footer .numbers-progress{margin-top:var(--space-unit)}.z-carousel-footer .numbers-progress .current{font-weight:var(--font-sb)}@media (min-width: 768px){:host(:not([fixed-arrows])) .z-carousel-wrapper:hover .z-carousel-navigation-arrow:not([hidden]){display:flex}}";
|
|
9
9
|
|
|
10
10
|
const ZCarousel = class {
|
|
11
11
|
constructor(hostRef) {
|
|
12
12
|
index.registerInstance(this, hostRef);
|
|
13
13
|
this.indexChange = index.createEvent(this, "indexChange", 7);
|
|
14
|
-
/**
|
|
14
|
+
/** Flag indicating the items container is about to scroll programmatically towards the stored index. */
|
|
15
|
+
this.scrollingTo = null;
|
|
16
|
+
this.isLoading = undefined;
|
|
17
|
+
this.label = undefined;
|
|
15
18
|
this.single = false;
|
|
16
|
-
|
|
19
|
+
this.arrowsPosition = undefined;
|
|
20
|
+
this.progressMode = undefined;
|
|
21
|
+
this.fixedArrows = true;
|
|
17
22
|
this.ghostLoadingHeight = 100;
|
|
18
|
-
|
|
23
|
+
this.infinite = false;
|
|
19
24
|
this.current = 0;
|
|
20
|
-
|
|
21
|
-
this.
|
|
25
|
+
this.items = undefined;
|
|
26
|
+
this.highlightedIndicator = undefined;
|
|
27
|
+
this.canNavigatePrev = undefined;
|
|
28
|
+
this.canNavigateNext = undefined;
|
|
22
29
|
}
|
|
23
30
|
onIndexChange() {
|
|
24
31
|
this.indexChange.emit({ currentItem: this.current });
|
|
@@ -28,14 +35,17 @@ const ZCarousel = class {
|
|
|
28
35
|
this.setIntersectionObserver();
|
|
29
36
|
}
|
|
30
37
|
}
|
|
38
|
+
onInfiniteModeChange() {
|
|
39
|
+
this.checkNavigationValidity();
|
|
40
|
+
}
|
|
31
41
|
/**
|
|
32
42
|
* Set an intersection observer to:
|
|
33
43
|
* - highlight the indicator of the intersecting item during scroll
|
|
34
44
|
* - set the current item to the last intersecting item
|
|
35
45
|
*/
|
|
36
46
|
setIntersectionObserver() {
|
|
37
|
-
this.intersectionObserver = new
|
|
38
|
-
const entry = entries.find((
|
|
47
|
+
this.intersectionObserver = new IntersectionObserver((entries) => {
|
|
48
|
+
const entry = entries.find(({ isIntersecting }) => isIntersecting);
|
|
39
49
|
if (!entry) {
|
|
40
50
|
return;
|
|
41
51
|
}
|
|
@@ -54,95 +64,116 @@ const ZCarousel = class {
|
|
|
54
64
|
});
|
|
55
65
|
this.items.forEach((element) => this.intersectionObserver.observe(element));
|
|
56
66
|
}
|
|
67
|
+
/** Update items' list and check conditions to allow navigation */
|
|
68
|
+
onSlotChange() {
|
|
69
|
+
this.items = Array.from(this.host.children);
|
|
70
|
+
this.checkNavigationValidity();
|
|
71
|
+
this.setIntersectionObserver();
|
|
72
|
+
this.goTo(this.current);
|
|
73
|
+
}
|
|
57
74
|
onPrev() {
|
|
58
75
|
if (this.single) {
|
|
59
|
-
this.goTo(Math.max(0, this.current - 1));
|
|
60
|
-
return;
|
|
61
|
-
}
|
|
62
|
-
const scroller = this.itemsContainer;
|
|
63
|
-
if (!scroller) {
|
|
76
|
+
this.goTo(this.infinite && this.current - 1 < 0 ? this.items.length - 1 : Math.max(0, this.current - 1));
|
|
64
77
|
return;
|
|
65
78
|
}
|
|
66
|
-
|
|
67
|
-
left:
|
|
79
|
+
this.itemsContainer.scrollBy({
|
|
80
|
+
left: this.infinite && this.itemsContainer.scrollLeft == 0
|
|
81
|
+
? this.itemsContainer.scrollWidth - this.itemsContainer.clientWidth
|
|
82
|
+
: -this.itemsContainer.clientWidth / 2,
|
|
68
83
|
behavior: "smooth",
|
|
69
84
|
});
|
|
70
85
|
}
|
|
71
86
|
onNext() {
|
|
72
87
|
if (this.single) {
|
|
73
|
-
this.
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
if (!scroller) {
|
|
78
|
-
return;
|
|
88
|
+
const next = this.infinite && this.current + 1 > this.items.length - 1
|
|
89
|
+
? 0
|
|
90
|
+
: Math.min(this.current + 1, this.items.length - 1);
|
|
91
|
+
return this.goTo(next);
|
|
79
92
|
}
|
|
80
|
-
|
|
81
|
-
left:
|
|
93
|
+
this.itemsContainer.scrollBy({
|
|
94
|
+
left: this.infinite &&
|
|
95
|
+
this.itemsContainer.scrollLeft == this.itemsContainer.scrollWidth - this.itemsContainer.clientWidth
|
|
96
|
+
? -this.itemsContainer.scrollWidth
|
|
97
|
+
: this.itemsContainer.clientWidth / 2,
|
|
82
98
|
behavior: "smooth",
|
|
83
99
|
});
|
|
84
100
|
}
|
|
85
101
|
/**
|
|
86
|
-
* Check if navigation buttons can be enabled
|
|
102
|
+
* Check if navigation buttons can be enabled and set the related local states.
|
|
87
103
|
*/
|
|
88
104
|
checkNavigationValidity() {
|
|
89
105
|
if (this.single) {
|
|
90
|
-
this.canNavigatePrev = this.current >
|
|
106
|
+
this.canNavigatePrev = this.current > 0;
|
|
91
107
|
this.canNavigateNext = this.current < this.items.length - 1;
|
|
108
|
+
return;
|
|
92
109
|
}
|
|
93
110
|
this.canNavigatePrev = this.itemsContainer.scrollLeft > 0;
|
|
94
111
|
this.canNavigateNext =
|
|
95
112
|
this.itemsContainer.scrollLeft < this.itemsContainer.scrollWidth - this.itemsContainer.clientWidth;
|
|
96
113
|
}
|
|
97
114
|
/**
|
|
98
|
-
* Check if footer
|
|
115
|
+
* Check if footer has to be rendered.
|
|
99
116
|
*/
|
|
100
117
|
canShowFooter() {
|
|
118
|
+
if (!this.canNavigatePrev && !this.canNavigateNext) {
|
|
119
|
+
return false;
|
|
120
|
+
}
|
|
101
121
|
return (this.arrowsPosition === index$1.CarouselArrowsPosition.BOTTOM ||
|
|
102
122
|
this.progressMode === index$1.CarouselProgressMode.DOTS ||
|
|
103
123
|
this.progressMode === index$1.CarouselProgressMode.NUMBERS);
|
|
104
124
|
}
|
|
105
125
|
/**
|
|
106
126
|
* Set current item to passed index.
|
|
107
|
-
* @param
|
|
127
|
+
* @param index Index to set
|
|
108
128
|
*/
|
|
109
129
|
goTo(index) {
|
|
110
130
|
if (this.current === index) {
|
|
111
131
|
return;
|
|
112
132
|
}
|
|
113
133
|
this.scrollingTo = index;
|
|
134
|
+
const left = this.items.slice(0, index).reduce((acc, item) => (acc += item.clientWidth), 0);
|
|
114
135
|
// the scroll will trigger the IntersectionObserver and set the current item
|
|
115
136
|
this.itemsContainer.scroll({
|
|
116
|
-
left
|
|
137
|
+
left,
|
|
117
138
|
behavior: "smooth",
|
|
118
139
|
});
|
|
119
140
|
}
|
|
141
|
+
/** Check if navigation of at least one direction is enabled */
|
|
142
|
+
get canNavigate() {
|
|
143
|
+
return this.canNavigatePrev || this.canNavigateNext;
|
|
144
|
+
}
|
|
145
|
+
setupItems() {
|
|
146
|
+
this.items = Array.from(this.host.children);
|
|
147
|
+
this.items.forEach((item) => {
|
|
148
|
+
item.setAttribute("aria-roledescription", "slide");
|
|
149
|
+
});
|
|
150
|
+
}
|
|
120
151
|
componentDidLoad() {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
this.
|
|
152
|
+
var _a;
|
|
153
|
+
(_a = this.itemsContainer) === null || _a === void 0 ? void 0 : _a.addEventListener("scroll", this.checkNavigationValidity.bind(this), { passive: true });
|
|
154
|
+
this.resizeObserver = new ResizeObserver(this.checkNavigationValidity.bind(this));
|
|
155
|
+
this.resizeObserver.observe(this.itemsContainer);
|
|
156
|
+
this.setupItems();
|
|
126
157
|
if (this.single) {
|
|
127
158
|
this.setIntersectionObserver();
|
|
128
159
|
}
|
|
129
|
-
this.itemsContainer.addEventListener("scroll", this.checkNavigationValidity.bind(this), { passive: true });
|
|
130
160
|
this.checkNavigationValidity();
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
161
|
+
}
|
|
162
|
+
disconnectedCallback() {
|
|
163
|
+
var _a;
|
|
164
|
+
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
135
165
|
}
|
|
136
166
|
render() {
|
|
137
167
|
if (this.isLoading) {
|
|
138
|
-
return (index.h(
|
|
168
|
+
return (index.h("div", { class: "z-carousel-container" }, this.label && index.h("div", { class: "heading-3-sb z-carousel-title" }, this.label), index.h("div", { style: { height: `${this.ghostLoadingHeight}px` } }, index.h("z-ghost-loading", null))));
|
|
139
169
|
}
|
|
140
|
-
return (index.h(index.Host, null, index.h("div", { class: "z-carousel-container",
|
|
170
|
+
return (index.h(index.Host, null, index.h("div", { class: "z-carousel-container", "aria-roledescription": "carousel", "aria-label": this.label || "Carousel" }, this.label && index.h("div", { class: "z-carousel-title heading-3-sb" }, this.label), index.h("div", { class: "z-carousel-wrapper" }, index.h("z-button", { class: "z-carousel-navigation-arrow", variant: index$1.ButtonVariant.SECONDARY, "data-direction": "prev", icon: "arrow-left", onClick: this.onPrev.bind(this), disabled: !this.infinite && !this.canNavigatePrev, hidden: this.arrowsPosition !== index$1.CarouselArrowsPosition.OVER || !this.canNavigate, ariaLabel: this.single ? "Mostra l'elemento precedente" : "Mostra gli elementi precedenti" }), index.h("ul", { class: "z-carousel-items-container", "aria-atomic": "false", "aria-live": "polite", ref: (el) => (this.itemsContainer = el) }, index.h("slot", { onSlotchange: this.onSlotChange.bind(this) })), index.h("z-button", { class: "z-carousel-navigation-arrow", variant: index$1.ButtonVariant.SECONDARY, "data-direction": "next", icon: "arrow-right", onClick: this.onNext.bind(this), disabled: !this.infinite && !this.canNavigateNext, hidden: this.arrowsPosition !== index$1.CarouselArrowsPosition.OVER || !this.canNavigate, ariaLabel: this.single ? "Mostra l'elemento successivo" : "Mostra gli elementi successivi" }))), this.canShowFooter() && (index.h("div", { class: "z-carousel-footer" }, this.arrowsPosition === index$1.CarouselArrowsPosition.BOTTOM && (index.h("z-button", { class: "z-carousel-navigation-arrow", variant: index$1.ButtonVariant.TERTIARY, icon: "arrow-left", onClick: this.onPrev.bind(this), disabled: !this.infinite && !this.canNavigatePrev, ariaLabel: this.single ? "Mostra l'elemento precedente" : "Mostra gli elementi precedenti" })), this.progressMode === index$1.CarouselProgressMode.DOTS && this.single && this.items && (index.h("div", { class: "dots-progress" }, this.items.map((_, index$1) => (index.h("button", { type: "button", class: { current: this.highlightedIndicator === index$1 }, "aria-label": this.highlightedIndicator === index$1 ? "Elemento corrente" : `Spostati all'elemento ${index$1 + 1}`, onClick: () => this.goTo(index$1) }))))), this.progressMode === index$1.CarouselProgressMode.NUMBERS && this.single && this.items && (index.h("div", { class: "numbers-progress interactive-1" }, index.h("span", { class: "current" }, this.current + 1), index.h("span", null, "di"), index.h("span", null, this.items.length))), this.arrowsPosition === index$1.CarouselArrowsPosition.BOTTOM && (index.h("z-button", { class: "z-carousel-navigation-arrow", variant: index$1.ButtonVariant.TERTIARY, icon: "arrow-right", onClick: this.onNext.bind(this), disabled: !this.infinite && !this.canNavigateNext, ariaLabel: this.single ? "Mostra l'elemento successivo" : "Mostra gli elementi successivi" }))))));
|
|
141
171
|
}
|
|
142
|
-
get
|
|
172
|
+
get host() { return index.getElement(this); }
|
|
143
173
|
static get watchers() { return {
|
|
144
174
|
"current": ["onIndexChange"],
|
|
145
|
-
"single": ["onSingleModeChange"]
|
|
175
|
+
"single": ["onSingleModeChange"],
|
|
176
|
+
"infinite": ["onInfiniteModeChange"]
|
|
146
177
|
}; }
|
|
147
178
|
};
|
|
148
179
|
ZCarousel.style = stylesCss;
|
|
@@ -2,28 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const index$1 = require('./index-
|
|
5
|
+
const index = require('./index-48ad79ef.js');
|
|
6
|
+
const index$1 = require('./index-9c3aec20.js');
|
|
7
7
|
|
|
8
|
-
const stylesCss = ".sc-z-chip-h>.z-chip-container.sc-z-chip{display:inline-flex;min-height:28px;align-items:center;padding:0 calc(var(--space-unit) * 1.5);border:var(--border-size-small) solid var(--gray400);background-color:var(--color-surface01);border-radius:14px;color:var(--color-
|
|
8
|
+
const stylesCss = ".sc-z-chip-h>.z-chip-container.sc-z-chip{display:inline-flex;min-height:28px;align-items:center;padding:0 calc(var(--space-unit) * 1.5);border:var(--border-size-small) solid var(--gray400);background-color:var(--color-surface01);border-radius:14px;color:var(--color-default-text);fill:var(--color-default-text);font-family:var(--font-family-sans);font-size:14px;line-height:28px}.sc-z-chip-h>.z-chip-interactive.sc-z-chip{font-weight:var(--font-sb)}.sc-z-chip-h>.z-chip-container.sc-z-chip>button.sc-z-chip{padding:0;border:none;margin-left:var(--space-unit);background-color:transparent;cursor:pointer}.sc-z-chip-h>.z-chip-container.sc-z-chip>z-icon.sc-z-chip:first-child{margin-right:calc(var(--space-unit) / 2)}.sc-z-chip-h>.z-chip-container.sc-z-chip:not([aria-disabled]):hover>z-icon.sc-z-chip:first-child{fill:var(--color-default-icon)}.sc-z-chip-h>.z-chip-container.sc-z-chip .interactive-icon.sc-z-chip{fill:var(--color-primary01)}.sc-z-chip-h>.z-chip-container.sc-z-chip:not([aria-disabled]) .interactive-icon.sc-z-chip:hover{color:var(--color-hover-primary);fill:var(--color-hover-primary)}.sc-z-chip-h>.z-chip-container[aria-disabled].sc-z-chip,.sc-z-chip-h>.z-chip-container[aria-disabled].sc-z-chip z-icon.sc-z-chip{color:var(--color-disabled03);cursor:auto;fill:var(--color-disabled03)}.sc-z-chip-h>.z-chip-container[aria-disabled].sc-z-chip{border:var(--border-size-small) solid var(--color-disabled01)}.sc-z-chip-h>.z-chip-container.sc-z-chip>button.sc-z-chip:focus:focus-visible{border-radius:100%;box-shadow:var(--shadow-focus-primary);outline:none}.sc-z-chip-h>button.sc-z-chip:not([disabled]):active:hover .interactive-icon.sc-z-chip{color:var(--color-primary01);fill:var(--color-primary01)}.sc-z-chip-h>.z-chip-container.sc-z-chip>z-icon.sc-z-chip,.sc-z-chip-h>.z-chip-container.sc-z-chip .interactive-icon.sc-z-chip{--z-icon-width:22px;--z-icon-height:22px}.sc-z-chip-h>.z-chip-container.default.sc-z-chip{min-height:44px;border-radius:22px;line-height:44px}.sc-z-chip-h>.z-chip-container.medium.sc-z-chip{min-height:40px;border-radius:22px;line-height:40px}.sc-z-chip-h>.z-chip-container.small.sc-z-chip{min-height:36px;border-radius:22px;line-height:36px}@media (min-width: 1152px){.sc-z-chip-h>.z-chip-container.sc-z-chip{font-size:12px}.sc-z-chip-h>.z-chip-container.default.sc-z-chip{min-height:32px;border-radius:16px;line-height:32px}.sc-z-chip-h>.z-chip-container.medium.sc-z-chip{min-height:28px;border-radius:16px;line-height:28px}.sc-z-chip-h>.z-chip-container.small.sc-z-chip{min-height:24px;border-radius:16px;line-height:24px}.sc-z-chip-h>.z-chip-container.sc-z-chip>z-icon.sc-z-chip,.sc-z-chip-h>.z-chip-container.sc-z-chip .interactive-icon.sc-z-chip{--z-icon-width:14px;--z-icon-height:14px}}";
|
|
9
9
|
|
|
10
10
|
const ZChip = class {
|
|
11
11
|
constructor(hostRef) {
|
|
12
12
|
index.registerInstance(this, hostRef);
|
|
13
13
|
this.interactiveIconClick = index.createEvent(this, "interactiveIconClick", 7);
|
|
14
|
-
|
|
14
|
+
this.icon = undefined;
|
|
15
15
|
this.type = index$1.ZChipType.DEFAULT;
|
|
16
|
-
|
|
16
|
+
this.interactiveIcon = undefined;
|
|
17
17
|
this.disabled = false;
|
|
18
|
-
/** z-chip aria-label string */
|
|
19
18
|
this.ariaLabel = "";
|
|
20
19
|
}
|
|
21
20
|
render() {
|
|
22
|
-
return (index.h("div", { class: {
|
|
21
|
+
return (index.h("div", { key: 'fe1e1ba8b794a0e67a04236808573c3ae9bcc4ce', class: {
|
|
23
22
|
"z-chip-container": true,
|
|
24
23
|
"z-chip-interactive": !!this.interactiveIcon,
|
|
25
24
|
[this.type]: true,
|
|
26
|
-
}, "aria-disabled": this.disabled }, this.icon && index.h("z-icon", { name: this.icon }), index.h("slot",
|
|
25
|
+
}, "aria-disabled": this.disabled }, this.icon && index.h("z-icon", { key: 'a1ee44f219dd0b451851aadd081d29d8a03fbeaf', name: this.icon }), index.h("slot", { key: '126b3211e329d893d6b5b3f567cc20630dd02534' }), this.interactiveIcon && (index.h("button", { key: '059813ec42ff86dff2ce9fb96650ad35b38e5622', type: "button", onClick: () => this.interactiveIconClick.emit(), "aria-label": this.ariaLabel, disabled: this.disabled }, index.h("z-icon", { key: '3fb748bef5acea52a4d4cd565b1da11ae777e784', class: "interactive-icon", name: this.interactiveIcon })))));
|
|
27
26
|
}
|
|
28
27
|
get el() { return index.getElement(this); }
|
|
29
28
|
};
|
|
@@ -2,75 +2,133 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const index$1 = require('./index-
|
|
7
|
-
const utils = require('./utils-
|
|
8
|
-
require('./breakpoints-
|
|
5
|
+
const index = require('./index-48ad79ef.js');
|
|
6
|
+
const index$1 = require('./index-9c3aec20.js');
|
|
7
|
+
const utils = require('./utils-ff107ab4.js');
|
|
8
|
+
require('./breakpoints-7770f79c.js');
|
|
9
9
|
|
|
10
|
-
const stylesCss = ":host{display:block}:host>div.fixed{position:relative}:host>div>.header{position:relative;z-index:10;display:flex;min-height:42px;align-items:center;justify-content:space-between;padding:0 calc(var(--space-unit) * 1.5);border:var(--border-size-small) solid var(--color-surface04);margin:0;background-color:var(--color-input-field01);border-radius:var(--border-radius-small);cursor:pointer}:host([size=\"small\"])>div>.header{min-height:34px;font-size:var(--font-size-2)}:host([size=\"x-small\"])>div>.header{min-height:30px;font-size:var(--font-size-2)}:host([size=\"x-small\"])>div>.header p.body-3{padding:calc(var(--space-unit) * 0.5) 0}:host>div>.header:hover{outline:var(--border-size-medium) solid var(--color-surface04);outline-offset:-2px}:host>div
|
|
10
|
+
const stylesCss = ":host{display:block;font-family:var(--font-family-sans)}:host>div.fixed{position:relative}:host>div>.header{position:relative;z-index:10;display:flex;min-height:42px;align-items:center;justify-content:space-between;padding:0 calc(var(--space-unit) * 1.5);border:var(--border-size-small) solid var(--color-surface04);margin:0;background-color:var(--color-input-field01);border-radius:var(--border-radius-small);cursor:pointer}:host([size=\"small\"])>div>.header{min-height:34px;font-size:var(--font-size-2)}:host([size=\"x-small\"])>div>.header{min-height:30px;font-size:var(--font-size-2)}:host([size=\"x-small\"])>div>.header p.body-3{padding:calc(var(--space-unit) * 0.5) 0}:host>div>.header:hover{outline:var(--border-size-medium) solid var(--color-surface04);outline-offset:-2px}:host>div>div.header:focus:focus-visible{z-index:16;box-shadow:var(--shadow-focus-primary);outline:none}:host>div>.header>p.body-3{padding:var(--space-unit) 0;margin:0;color:var(--color-default-text)}:host>div>.header>p.body-3>span{font-weight:var(--font-sb)}:host>div>.header>z-icon{fill:var(--color-default-icon);transform:rotate(360deg);transition:all 200ms linear}:host>div>.header>z-icon.small,:host>div>.header>z-icon.x-small{--z-icon-width:16px;--z-icon-height:16px}:host>div.open>.header{border:var(--border-size-small) solid var(--color-primary01);border-radius:var(--border-radius-small) var(--border-radius-small) 0 0}:host>div.disabled{pointer-events:none}:host>div.disabled .header{border-color:var(--color-disabled01);fill:var(--color-disabled01)}:host>div.disabled .header>p.body-3{color:var(--color-disabled03)}:host>div.disabled .header>z-icon:last-child{fill:var(--color-disabled01)}:host>div.open>.header>z-icon{fill:var(--color-default-icon);transform:rotate(180deg);transition:all 200ms linear}:host>div.open>div.open-combo-data{position:relative;z-index:12;padding:var(--space-unit) calc(var(--space-unit) * 2);border:var(--border-size-small) solid var(--gray200);border-top:0;background-color:var(--color-input-field01);border-radius:0}:host>div.open>div.open-combo-data>div>div{overflow:auto;max-height:235px;padding:0;scrollbar-color:var(--color-primary01) transparent}:host>div.open>div.open-combo-data>z-input{width:100%;margin-bottom:calc(var(--space-unit) * 2)}:host>div.open>div.open-combo-data>div>div>ul{max-height:235px;padding:0 3px;margin:0}::-webkit-scrollbar{width:10px;background:linear-gradient(to right, transparent 0 3px, var(--gray200) 3px 7px, transparent 7px 10px);border-radius:var(--border-radius)}::-webkit-scrollbar-thumb{width:10px;background-color:var(--color-primary01)}:host>div.open>z-input{position:relative;z-index:1;width:238px;margin:0 calc(var(--space-unit) * 2);color:var(--color-primary01)}:host>div.open>div.open-combo-data>div>div.search{overflow:hidden;max-height:auto;margin-top:0;box-shadow:1px 1px 4px 2px rgb(217 222 227 / 50%)}:host>div.open>div.open-combo-data>div>div.search>ul{overflow:auto;max-height:180px;padding:var(--space-unit) calc(var(--space-unit) * 2);scrollbar-color:var(--color-primary01) transparent}:host>div.open>div.open-combo-data>div>div.search>div{display:flex;justify-content:center}:host>div.open>div.open-combo-data>div>div.search>div>a{display:inline-block;height:44px;color:var(--color-primary01);cursor:pointer;font-size:14px;font-weight:var(--font-sb);line-height:44px;text-align:center;text-transform:uppercase}:host>div.open>div.open-combo-data>div>div.search>div>a:focus:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none}:host>div.open>div.open-combo-data>div>div.check-all-wrapper{padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 0.5);border-bottom:var(--border-size-small) solid var(--gray800);margin-bottom:var(--space-unit);text-align:left}:host([size=\"small\"])>div.open>div.open-combo-data>div>div.check-all-wrapper{padding:calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 0.5)}:host([size=\"x-small\"])>div.open>div.open-combo-data>div>div.check-all-wrapper{padding:var(--space-unit) calc(var(--space-unit) * 0.5)}";
|
|
11
11
|
|
|
12
12
|
const ZCombobox = class {
|
|
13
|
+
watchItems() {
|
|
14
|
+
this.itemsList = typeof this.items === "string" ? JSON.parse(this.items) : this.items;
|
|
15
|
+
this.selectedCounter = this.itemsList.filter((item) => item.checked).length;
|
|
16
|
+
this.updateRenderItemsList();
|
|
17
|
+
}
|
|
18
|
+
watchSearchValue() {
|
|
19
|
+
this.filterItems(this.searchValue);
|
|
20
|
+
}
|
|
21
|
+
watchCheckboxes() {
|
|
22
|
+
this.checkboxes.forEach((item, index) => item.setAttribute("tabindex", index === 0 ? "0" : "-1"));
|
|
23
|
+
}
|
|
24
|
+
emitComboboxChange() {
|
|
25
|
+
this.comboboxChange.emit({ id: this.inputid, items: this.itemsList });
|
|
26
|
+
}
|
|
13
27
|
constructor(hostRef) {
|
|
14
28
|
index.registerInstance(this, hostRef);
|
|
15
29
|
this.comboboxChange = index.createEvent(this, "comboboxChange", 7);
|
|
16
|
-
|
|
30
|
+
this.itemsList = [];
|
|
31
|
+
this.inputType = index$1.InputType.TEXT;
|
|
32
|
+
this.inputid = `combo-${utils.randomId()}`;
|
|
33
|
+
this.items = undefined;
|
|
34
|
+
this.label = undefined;
|
|
17
35
|
this.disabled = false;
|
|
18
|
-
/** show search input flag (optional) */
|
|
19
36
|
this.hassearch = false;
|
|
20
|
-
|
|
37
|
+
this.searchlabel = undefined;
|
|
38
|
+
this.searchplaceholder = undefined;
|
|
39
|
+
this.searchtitle = undefined;
|
|
21
40
|
this.noresultslabel = "Nessun risultato";
|
|
22
|
-
/** toggle combo list opening flag */
|
|
23
41
|
this.isopen = false;
|
|
24
|
-
/** fixed style flag */
|
|
25
42
|
this.isfixed = false;
|
|
26
|
-
/** close combobox list text */
|
|
27
43
|
this.closesearchtext = "Chiudi";
|
|
28
|
-
/** show "check all" checkbox (optional) */
|
|
29
44
|
this.hascheckall = false;
|
|
30
|
-
/** check all label (optional) */
|
|
31
45
|
this.checkalltext = "Seleziona tutti";
|
|
32
|
-
/** uncheck all label (optional) */
|
|
33
46
|
this.uncheckalltext = "Deseleziona tutti";
|
|
34
|
-
/** max number of checkable items (0 = unlimited) */
|
|
35
47
|
this.maxcheckableitems = 0;
|
|
36
|
-
|
|
48
|
+
this.hasgroupitems = undefined;
|
|
37
49
|
this.size = index$1.ControlSize.BIG;
|
|
38
|
-
this.
|
|
39
|
-
this.
|
|
40
|
-
this.
|
|
50
|
+
this.searchValue = undefined;
|
|
51
|
+
this.selectedCounter = undefined;
|
|
52
|
+
this.renderItemsList = [];
|
|
53
|
+
this.focusedItemId = undefined;
|
|
54
|
+
this.checkboxes = [];
|
|
41
55
|
this.toggleComboBox = this.toggleComboBox.bind(this);
|
|
42
56
|
this.closeFilterItems = this.closeFilterItems.bind(this);
|
|
43
57
|
}
|
|
44
|
-
|
|
45
|
-
this.
|
|
58
|
+
componentWillLoad() {
|
|
59
|
+
this.watchItems();
|
|
60
|
+
}
|
|
61
|
+
componentWillRender() {
|
|
46
62
|
this.selectedCounter = this.itemsList.filter((item) => item.checked).length;
|
|
47
|
-
this.updateRenderItemsList();
|
|
48
63
|
}
|
|
49
|
-
|
|
50
|
-
this.
|
|
64
|
+
componentDidRender() {
|
|
65
|
+
const checkboxes = this.getAllCheckboxes();
|
|
66
|
+
if (JSON.stringify(checkboxes) !== JSON.stringify(this.checkboxes)) {
|
|
67
|
+
this.checkboxes = checkboxes;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
getItemId(item) {
|
|
71
|
+
return `combo-checkbox-${this.inputid}-${item.id}`;
|
|
72
|
+
}
|
|
73
|
+
getCheckboxClass() {
|
|
74
|
+
return `combo-item-checkbox-input-${this.inputid}`;
|
|
75
|
+
}
|
|
76
|
+
getAllCheckboxes() {
|
|
77
|
+
return Array.from(this.element.shadowRoot.querySelectorAll(`.${this.getCheckboxClass()} input:not([disabled])`));
|
|
51
78
|
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
79
|
+
getControlToListSize() {
|
|
80
|
+
switch (this.size) {
|
|
81
|
+
case index$1.ControlSize.X_SMALL:
|
|
82
|
+
return index$1.ListSize.SMALL;
|
|
83
|
+
case index$1.ControlSize.SMALL:
|
|
84
|
+
return index$1.ListSize.MEDIUM;
|
|
85
|
+
default:
|
|
86
|
+
return index$1.ListSize.LARGE;
|
|
56
87
|
}
|
|
57
|
-
this.itemsList = this.itemsList.map((item) => {
|
|
58
|
-
if (item.id === id) {
|
|
59
|
-
item.checked = e.detail.checked;
|
|
60
|
-
}
|
|
61
|
-
return item;
|
|
62
|
-
});
|
|
63
|
-
this.updateRenderItemsList();
|
|
64
|
-
this.emitComboboxChange();
|
|
65
88
|
}
|
|
66
|
-
|
|
67
|
-
|
|
89
|
+
handleSelectArrowsNavigation(e, currId) {
|
|
90
|
+
if (![index$1.KeyboardCode.ARROW_DOWN, index$1.KeyboardCode.ARROW_UP].includes(e.key) || !this.isopen) {
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
e.preventDefault();
|
|
94
|
+
e.stopPropagation();
|
|
95
|
+
const currElem = this.element.shadowRoot.querySelector(`#${currId}`);
|
|
96
|
+
if (!currElem) {
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
const checkboxes = this.checkboxes;
|
|
100
|
+
if (!checkboxes.length) {
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
const currElemIndex = checkboxes.indexOf(currElem);
|
|
104
|
+
const firstElemIndex = 0;
|
|
105
|
+
const lastElemIndex = checkboxes.length - 1;
|
|
106
|
+
let nextElem = null;
|
|
107
|
+
if (e.key === index$1.KeyboardCode.ARROW_DOWN) {
|
|
108
|
+
nextElem = currElemIndex === lastElemIndex ? checkboxes[firstElemIndex] : checkboxes[currElemIndex + 1];
|
|
109
|
+
}
|
|
110
|
+
else if (e.key === index$1.KeyboardCode.ARROW_UP) {
|
|
111
|
+
nextElem = currElemIndex === firstElemIndex ? checkboxes[lastElemIndex] : checkboxes[currElemIndex - 1];
|
|
112
|
+
}
|
|
113
|
+
this.focusComboboxItem(nextElem);
|
|
68
114
|
}
|
|
69
|
-
|
|
70
|
-
|
|
115
|
+
handleHeaderKeyboardEvent(ev) {
|
|
116
|
+
if (ev.key === index$1.KeyboardCode.SPACE) {
|
|
117
|
+
ev.preventDefault();
|
|
118
|
+
}
|
|
119
|
+
if ((ev.key === index$1.KeyboardCode.ARROW_DOWN && !this.isopen) || (ev.key === index$1.KeyboardCode.ARROW_UP && this.isopen)) {
|
|
120
|
+
this.toggleComboBox();
|
|
121
|
+
}
|
|
71
122
|
}
|
|
72
|
-
|
|
73
|
-
this.
|
|
123
|
+
handleCheckboxFocus(id) {
|
|
124
|
+
this.focusedItemId = id;
|
|
125
|
+
}
|
|
126
|
+
focusComboboxItem(elem) {
|
|
127
|
+
this.checkboxes.forEach(function (item) {
|
|
128
|
+
item.setAttribute("tabindex", "-1");
|
|
129
|
+
});
|
|
130
|
+
elem.setAttribute("tabindex", "0");
|
|
131
|
+
elem.focus();
|
|
74
132
|
}
|
|
75
133
|
updateRenderItemsList() {
|
|
76
134
|
if (this.searchValue) {
|
|
@@ -96,7 +154,9 @@ const ZCombobox = class {
|
|
|
96
154
|
const start = item.name.toUpperCase().indexOf(value.toUpperCase());
|
|
97
155
|
const end = start + value.length;
|
|
98
156
|
const newName = item.name.substring(0, start) +
|
|
99
|
-
|
|
157
|
+
"<strong>" +
|
|
158
|
+
item.name.substring(start, end) +
|
|
159
|
+
"</strong>" +
|
|
100
160
|
item.name.substring(end, item.name.length);
|
|
101
161
|
item.name = newName;
|
|
102
162
|
return start >= 0;
|
|
@@ -114,27 +174,40 @@ const ZCombobox = class {
|
|
|
114
174
|
toggleComboBox() {
|
|
115
175
|
this.isopen = !this.isopen;
|
|
116
176
|
}
|
|
177
|
+
getComboboxA11yAttributes() {
|
|
178
|
+
return {
|
|
179
|
+
"role": "combobox",
|
|
180
|
+
"aria-label": this.label,
|
|
181
|
+
"aria-expanded": this.isopen ? "true" : "false",
|
|
182
|
+
"aria-activedescendant": this.isopen ? this.focusedItemId : "",
|
|
183
|
+
"aria-controls": `${this.inputid}_list`,
|
|
184
|
+
};
|
|
185
|
+
}
|
|
117
186
|
renderHeader() {
|
|
118
187
|
return (index.h("div", { class: "header", onClick: () => this.toggleComboBox(), onKeyDown: (ev) => {
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
}
|
|
122
|
-
}, onKeyUp: (ev) => utils.handleKeyboardSubmit(ev, this.toggleComboBox), role: "button", tabindex: 0 }, index.h("p", { class: "body-3" }, this.label, index.h("span", null, this.selectedCounter > 0 && ` (${this.selectedCounter})`)), index.h("z-icon", { name: "caret-down", class: this.size })));
|
|
188
|
+
this.handleHeaderKeyboardEvent(ev);
|
|
189
|
+
}, onKeyUp: (ev) => utils.handleKeyboardSubmit(ev, this.toggleComboBox), role: "button", tabindex: 0, "aria-expanded": this.isopen ? "true" : "false" }, index.h("p", { class: "body-3" }, this.label, index.h("span", null, this.selectedCounter > 0 && ` (${this.selectedCounter})`)), index.h("z-icon", { name: "caret-down", class: this.size })));
|
|
123
190
|
}
|
|
124
191
|
renderContent() {
|
|
125
192
|
if (!this.isopen) {
|
|
126
193
|
return;
|
|
127
194
|
}
|
|
128
|
-
return (index.h("div", { class: "open-combo-data" }, this.hassearch && this.renderSearchInput(), this.hascheckall && this.renderCheckAll(), this.renderItems()));
|
|
195
|
+
return (index.h("div", { class: "open-combo-data" }, this.hassearch && this.renderSearchInput(), !this.hassearch ? index.h("span", Object.assign({}, this.getComboboxA11yAttributes())) : null, index.h("div", { role: "listbox", "aria-label": this.label, "aria-multiselectable": true, id: `${this.inputid}_list`, "aria-owns": `${this.checkboxes.map((item) => item.id).join(" ")}` }, this.hascheckall && this.renderCheckAll(), this.renderItems())));
|
|
129
196
|
}
|
|
130
197
|
renderItems() {
|
|
131
|
-
|
|
132
|
-
return;
|
|
133
|
-
}
|
|
134
|
-
return (index.h("div", { class: this.searchValue && "search", tabindex: -1 }, this.renderList(this.renderItemsList), this.searchValue && this.renderCloseButton()));
|
|
198
|
+
return (index.h("div", { class: this.searchValue && "search" }, this.renderList(this.renderItemsList), this.searchValue && this.renderCloseButton()));
|
|
135
199
|
}
|
|
136
200
|
renderItem(item, index$2, length) {
|
|
137
|
-
return (index.h("z-
|
|
201
|
+
return (index.h("z-list-element", { id: item.id, htmlTabindex: null, dividerType: index$2 !== length - 1 ? index$1.ListDividerType.ELEMENT : index$1.ListDividerType.NONE, size: this.getControlToListSize() }, index.h("z-input", { type: index$1.InputType.CHECKBOX, checked: item.checked, htmlid: this.getItemId(item), label: item.name, class: this.getCheckboxClass(), disabled: !item.checked && this.maxcheckableitems && this.selectedCounter >= this.maxcheckableitems, size: this.size === index$1.ControlSize.X_SMALL ? index$1.ControlSize.SMALL : this.size, role: "option", "aria-selected": item.checked ? "true" : "false", onKeyDown: (e) => this.handleSelectArrowsNavigation(e, this.getItemId(item)), onInputCheck: (e) => {
|
|
202
|
+
this.itemsList = this.itemsList.map((i) => {
|
|
203
|
+
if (item.id === i.id) {
|
|
204
|
+
i.checked = e.detail.checked;
|
|
205
|
+
}
|
|
206
|
+
return i;
|
|
207
|
+
});
|
|
208
|
+
this.updateRenderItemsList();
|
|
209
|
+
this.emitComboboxChange();
|
|
210
|
+
}, onInputFocus: (e) => this.handleCheckboxFocus(e.detail.id) })));
|
|
138
211
|
}
|
|
139
212
|
renderList(items) {
|
|
140
213
|
if (!items) {
|
|
@@ -144,9 +217,9 @@ const ZCombobox = class {
|
|
|
144
217
|
return this.renderNoSearchResults();
|
|
145
218
|
}
|
|
146
219
|
if (this.hasgroupitems) {
|
|
147
|
-
return this.renderGroups(
|
|
220
|
+
return this.renderGroups(items);
|
|
148
221
|
}
|
|
149
|
-
return (index.h("ul",
|
|
222
|
+
return (index.h("ul", { role: "none" }, items.map((item, i) => {
|
|
150
223
|
return this.renderItem(item, i, items.length);
|
|
151
224
|
})));
|
|
152
225
|
}
|
|
@@ -162,38 +235,39 @@ const ZCombobox = class {
|
|
|
162
235
|
const listGroups = Object.entries(newData).map(([key, value]) => {
|
|
163
236
|
return (index.h("z-list-group", { "divider-type": index$1.ListDividerType.ELEMENT }, index.h("span", { class: "body-3-sb z-list-group-title", slot: "header-title" }, key), value.map((item) => item)));
|
|
164
237
|
});
|
|
165
|
-
return index.h("ul",
|
|
238
|
+
return index.h("ul", { role: "none" }, listGroups);
|
|
166
239
|
}
|
|
167
240
|
renderNoSearchResults() {
|
|
168
|
-
return (index.h("ul",
|
|
241
|
+
return (index.h("ul", { role: "none" }, index.h("z-myz-list-item", { id: "no-results", text: this.noresultslabel, listitemid: "no-results", icon: "multiply-circle", class: this.size })));
|
|
169
242
|
}
|
|
170
243
|
renderCloseButton() {
|
|
171
244
|
return (index.h("div", null, index.h("a", { onClick: () => this.closeFilterItems(), onKeyUp: (e) => utils.handleKeyboardSubmit(e, this.closeFilterItems), role: "button", tabindex: 0 }, this.closesearchtext)));
|
|
172
245
|
}
|
|
173
246
|
renderSearchInput() {
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
return (index.h("z-input", { htmlid: `${this.inputid}_search`, label: this.searchlabel, placeholder: this.searchplaceholder, htmltitle: this.searchtitle, type: this.inputType, value: this.searchValue, message: false, size: this.size, onInputChange: (e) => {
|
|
178
|
-
if (e.detail.keycode === 27) {
|
|
179
|
-
return this.closeFilterItems();
|
|
247
|
+
return (index.h("z-input", Object.assign({ htmlid: `${this.inputid}_search`, label: this.searchlabel, placeholder: this.searchplaceholder, htmltitle: this.searchtitle, type: this.inputType, value: this.searchValue, message: false, size: this.size, "aria-autocomplete": "list" }, this.getComboboxA11yAttributes(), { onKeyUp: (e) => {
|
|
248
|
+
if (e.key === index$1.KeyboardCode.ESC) {
|
|
249
|
+
this.closeFilterItems();
|
|
180
250
|
}
|
|
251
|
+
}, onInputChange: (e) => {
|
|
181
252
|
this.searchValue = e.detail.value;
|
|
182
|
-
} }));
|
|
253
|
+
} })));
|
|
183
254
|
}
|
|
184
255
|
renderCheckAll() {
|
|
185
256
|
if (this.searchValue) {
|
|
186
257
|
return;
|
|
187
258
|
}
|
|
259
|
+
const checkAllId = `combo-checkbox-${this.inputid}-check-all`;
|
|
188
260
|
const allChecked = this.selectedCounter === this.itemsList.length;
|
|
189
|
-
return (index.h("div", { class: "check-all-wrapper" }, index.h("z-input", { type: index$1.InputType.CHECKBOX, checked: allChecked, htmlid:
|
|
261
|
+
return (index.h("div", { class: "check-all-wrapper" }, index.h("z-input", { type: index$1.InputType.CHECKBOX, checked: allChecked, htmlid: checkAllId, class: this.getCheckboxClass(), label: allChecked ? this.uncheckalltext : this.checkalltext, disabled: this.maxcheckableitems && this.maxcheckableitems < this.itemsList.length, size: this.size === index$1.ControlSize.X_SMALL ? index$1.ControlSize.SMALL : this.size, role: "option", "aria-selected": allChecked ? "true" : "false", onKeyDown: (e) => this.handleSelectArrowsNavigation(e, checkAllId), onInputCheck: (e) => this.checkAll(e.detail.checked), onInputFocus: (e) => this.handleCheckboxFocus(e.detail.id) })));
|
|
190
262
|
}
|
|
191
263
|
render() {
|
|
192
|
-
return (index.h("div", { "data-action": `combo-${this.inputid}`, class: { open: this.isopen, fixed: this.isfixed, disabled: this.disabled }, id: this.inputid }, this.renderHeader(), !this.disabled && this.renderContent()));
|
|
264
|
+
return (index.h("div", { key: '303335d1978e653877985ff2435f836bca278400', "data-action": `combo-${this.inputid}`, class: { open: this.isopen, fixed: this.isfixed, disabled: this.disabled }, id: this.inputid }, this.renderHeader(), !this.disabled && this.renderContent()));
|
|
193
265
|
}
|
|
266
|
+
get element() { return index.getElement(this); }
|
|
194
267
|
static get watchers() { return {
|
|
195
268
|
"items": ["watchItems"],
|
|
196
|
-
"searchValue": ["watchSearchValue"]
|
|
269
|
+
"searchValue": ["watchSearchValue"],
|
|
270
|
+
"checkboxes": ["watchCheckboxes"]
|
|
197
271
|
}; }
|
|
198
272
|
};
|
|
199
273
|
ZCombobox.style = stylesCss;
|