@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
|
@@ -1,255 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, a as getElement, c as createEvent } from './index-1b01fa0e.js';
|
|
2
|
-
import { f as ListSize, R as ListType, U as ExpandableListButtonAlign, k as ListDividerType, s as DividerSize, V as ExpandableListStyle, K as KeyboardCode } from './index-9d240d39.js';
|
|
3
|
-
|
|
4
|
-
const stylesCss$2 = ":host{display:flex;flex-direction:column;font-family:var(--font-family-sans);font-weight:var(--font-rg)}";
|
|
5
|
-
|
|
6
|
-
const ZList = class {
|
|
7
|
-
constructor(hostRef) {
|
|
8
|
-
registerInstance(this, hostRef);
|
|
9
|
-
/**
|
|
10
|
-
* [optional] Sets size of inside elements.
|
|
11
|
-
*/
|
|
12
|
-
this.size = ListSize.MEDIUM;
|
|
13
|
-
/**
|
|
14
|
-
* [optional] type of the list marker for each element
|
|
15
|
-
*/
|
|
16
|
-
this.listType = ListType.NONE;
|
|
17
|
-
}
|
|
18
|
-
setChildrenSizeType() {
|
|
19
|
-
const children = this.host.children;
|
|
20
|
-
for (let i = 0; i < children.length; i++) {
|
|
21
|
-
children[i].setAttribute("size", this.size);
|
|
22
|
-
children[i].setAttribute("list-type", this.listType);
|
|
23
|
-
children[i].setAttribute("list-element-position", (i + 1).toString());
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
componentDidLoad() {
|
|
27
|
-
this.setChildrenSizeType();
|
|
28
|
-
}
|
|
29
|
-
render() {
|
|
30
|
-
return (h(Host, { role: "list" }, h("slot", null)));
|
|
31
|
-
}
|
|
32
|
-
get host() { return getElement(this); }
|
|
33
|
-
};
|
|
34
|
-
ZList.style = stylesCss$2;
|
|
35
|
-
|
|
36
|
-
const stylesCss$1 = ":host{outline:none}:host>.container,:host>.container-contextual-menu{--background-color-list-element:var(--color-surface01);--background-hover-color-list-element:var(--color-surface02);--background-active-color-list-element:var(--color-surface02);display:flex;box-sizing:border-box;flex-direction:column;justify-content:center;font-family:var(--font-family-sans);font-weight:var(--font-rg);outline:none}:host([size=\"small\"])>.container{min-height:calc(var(--space-unit) * 4);padding:calc(var(--space-unit) / 2) 0}:host([size=\"medium\"])>.container{min-height:calc(var(--space-unit) * 5);padding:var(--space-unit) 0}:host([size=\"large\"])>.container{min-height:calc(var(--space-unit) * 7);padding:calc(var(--space-unit) * 2) 0}:host([size=\"x-large\"])>.container{min-height:calc(var(--space-unit) * 9);padding:calc(var(--space-unit) * 3) 0}:host([expandable])>.container,:host([expandable])>.container-contextual-menu,:host([clickable])>.container,:host([clickable])>.container-contextual-menu{cursor:pointer}:host([expandable]:hover)>.container,:host([expandable]:hover)>.container-contextual-menu,:host([clickable]:hover)>.container,:host([clickable]:hover)>.container-contextual-menu{background-color:var(--background-hover-color-list-element)}:host([expandable]:focus:focus-visible)>.container,:host([expandable]:focus:focus-visible)>.container-contextual-menu,:host([clickable]:focus:focus-visible)>.container,:host([clickable]:focus:focus-visible)>.container-contextual-menu{box-shadow:var(--shadow-focus-primary)}:host([clickable]:not([expandable]))>.container.clicked,:host([clickable]:not([expandable]))>.container-contextual-menu.clicked{box-shadow:var(--shadow-focus-primary)}:host([expandable]:active)>.container,:host([expandable]:active)>.container-contextual-menu,:host([clickable]:active)>.container,:host([clickable]:active)>.container-contextual-menu{background-color:var(--background-active-color-list-element)}:host([align-button=\"left\"][expandable])>.container>.z-list-element-container,:host([align-button=\"left\"][expandable])>.container-contextual-menu>.z-list-element-container{display:flex}:host([align-button=\"right\"][expandable])>.container>.z-list-element-container,:host([align-button=\"right\"][expandable])>.container-contextual-menu>.z-list-element-container{display:flex;flex-direction:row-reverse;justify-content:space-between}:host([align-button=\"left\"][expandable])>.container>.z-list-element-container>z-icon,:host([align-button=\"left\"][expandable])>.container-contextual-menu>.z-list-element-container>z-icon{margin-right:var(--space-unit)}:host([align-button=\"right\"][expandable])>.container>.z-list-element-container>z-icon,:host([align-button=\"right\"][expandable])>.container-contextual-menu>.z-list-element-container>z-icon{margin-left:var(--space-unit)}:host>.container>.z-list-element-inner-container,:host>.container-contextual-menu>.z-list-element-inner-container{display:none}:host>.container>.z-list-element-inner-container.expanded,:host>.container-contextual-menu>.z-list-element-inner-container.expanded{display:block}:host([clickable]:hover)>.container-contextual-menu{background-color:var(--color-surface03)}.container-contextual-menu:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none}.z-list-content-container{display:flex;align-items:center}";
|
|
37
|
-
|
|
38
|
-
const ZListElement = class {
|
|
39
|
-
/**
|
|
40
|
-
* Constructor.
|
|
41
|
-
*/
|
|
42
|
-
constructor(hostRef) {
|
|
43
|
-
registerInstance(this, hostRef);
|
|
44
|
-
this.accessibleFocus = createEvent(this, "accessibleFocus", 7);
|
|
45
|
-
this.clickItem = createEvent(this, "clickItem", 7);
|
|
46
|
-
/**
|
|
47
|
-
* [optional] Align expandable button left or right.
|
|
48
|
-
*/
|
|
49
|
-
this.alignButton = ExpandableListButtonAlign.LEFT;
|
|
50
|
-
/**
|
|
51
|
-
* [optional] Sets element clickable.
|
|
52
|
-
*/
|
|
53
|
-
this.clickable = false;
|
|
54
|
-
/**
|
|
55
|
-
* [optional] Sets the divider color.
|
|
56
|
-
*/
|
|
57
|
-
this.dividerColor = "color-surface03";
|
|
58
|
-
/**
|
|
59
|
-
* [optional] Sets the position where to insert the divider.
|
|
60
|
-
*/
|
|
61
|
-
this.dividerType = ListDividerType.NONE;
|
|
62
|
-
/**
|
|
63
|
-
* [optional] Sets the divider size.
|
|
64
|
-
*/
|
|
65
|
-
this.dividerSize = DividerSize.SMALL;
|
|
66
|
-
/**
|
|
67
|
-
* [optional] Sets element as expandable.
|
|
68
|
-
*/
|
|
69
|
-
this.expandable = false;
|
|
70
|
-
/**
|
|
71
|
-
* [optional] Sets expandable style to element.
|
|
72
|
-
*/
|
|
73
|
-
this.expandableStyle = ExpandableListStyle.ACCORDION;
|
|
74
|
-
/**
|
|
75
|
-
* [optional] Sets size of inside elements.
|
|
76
|
-
*/
|
|
77
|
-
this.size = ListSize.MEDIUM;
|
|
78
|
-
/**
|
|
79
|
-
* [optional] Sets text color of the element.
|
|
80
|
-
*/
|
|
81
|
-
this.color = "none";
|
|
82
|
-
/**
|
|
83
|
-
* [optional] Sets disabled style of the element.
|
|
84
|
-
*/
|
|
85
|
-
this.disabled = false;
|
|
86
|
-
/**
|
|
87
|
-
* [optional] If is used in ZContextualMenu component
|
|
88
|
-
*/
|
|
89
|
-
this.isContextualMenu = false;
|
|
90
|
-
/**
|
|
91
|
-
* [optional] position of the list element inside the list or the group
|
|
92
|
-
*/
|
|
93
|
-
this.listElementPosition = "0";
|
|
94
|
-
/**
|
|
95
|
-
* [optional] type of the list marker for each element
|
|
96
|
-
*/
|
|
97
|
-
this.listType = ListType.NONE;
|
|
98
|
-
this.showInnerContent = false;
|
|
99
|
-
this.openElementConfig = {
|
|
100
|
-
accordion: {
|
|
101
|
-
open: "minus-circled",
|
|
102
|
-
close: "plus-circled",
|
|
103
|
-
},
|
|
104
|
-
menu: {
|
|
105
|
-
open: "chevron-up",
|
|
106
|
-
close: "chevron-down",
|
|
107
|
-
},
|
|
108
|
-
};
|
|
109
|
-
this.handleClick = this.handleClick.bind(this);
|
|
110
|
-
this.handleKeyDown = this.handleKeyDown.bind(this);
|
|
111
|
-
}
|
|
112
|
-
accessibleFocusHandler(e) {
|
|
113
|
-
if (this.listElementId === e.detail) {
|
|
114
|
-
const toFocus = this.host.shadowRoot.getElementById(`z-list-element-id-${e.detail}`);
|
|
115
|
-
toFocus.focus();
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
* Handler for click on element. If element is expandable, change state.
|
|
120
|
-
* @returns void
|
|
121
|
-
*/
|
|
122
|
-
handleClick() {
|
|
123
|
-
this.clickItem.emit(this.listElementId);
|
|
124
|
-
if (!this.expandable) {
|
|
125
|
-
return;
|
|
126
|
-
}
|
|
127
|
-
this.showInnerContent = !this.showInnerContent;
|
|
128
|
-
}
|
|
129
|
-
calculateClass() {
|
|
130
|
-
if (this.isContextualMenu) {
|
|
131
|
-
return "container-contextual-menu";
|
|
132
|
-
}
|
|
133
|
-
return "container";
|
|
134
|
-
}
|
|
135
|
-
handleKeyDown(event) {
|
|
136
|
-
const expandByKey = event.code === KeyboardCode.ENTER;
|
|
137
|
-
switch (event.code) {
|
|
138
|
-
case KeyboardCode.ARROW_DOWN:
|
|
139
|
-
event.preventDefault();
|
|
140
|
-
this.accessibleFocus.emit(this.listElementId + 1);
|
|
141
|
-
break;
|
|
142
|
-
case KeyboardCode.ARROW_UP:
|
|
143
|
-
event.preventDefault();
|
|
144
|
-
this.accessibleFocus.emit(this.listElementId - 1);
|
|
145
|
-
break;
|
|
146
|
-
case KeyboardCode.ENTER:
|
|
147
|
-
event.preventDefault();
|
|
148
|
-
this.clickItem.emit(this.listElementId);
|
|
149
|
-
break;
|
|
150
|
-
}
|
|
151
|
-
if (!this.expandable || !expandByKey) {
|
|
152
|
-
return;
|
|
153
|
-
}
|
|
154
|
-
this.showInnerContent = !this.showInnerContent;
|
|
155
|
-
}
|
|
156
|
-
/**
|
|
157
|
-
* Renders button to expand element.
|
|
158
|
-
* @returns expadable button
|
|
159
|
-
*/
|
|
160
|
-
renderExpandableButton() {
|
|
161
|
-
if (!this.expandable) {
|
|
162
|
-
return null;
|
|
163
|
-
}
|
|
164
|
-
return (h("z-icon", { name: this.showInnerContent
|
|
165
|
-
? this.openElementConfig[this.expandableStyle].open
|
|
166
|
-
: this.openElementConfig[this.expandableStyle].close }));
|
|
167
|
-
}
|
|
168
|
-
/**
|
|
169
|
-
* Renders expanded content if element is expandable.
|
|
170
|
-
* @returns expanded content
|
|
171
|
-
*/
|
|
172
|
-
renderExpandedContent() {
|
|
173
|
-
if (!this.expandable) {
|
|
174
|
-
return null;
|
|
175
|
-
}
|
|
176
|
-
return (h("div", { class: {
|
|
177
|
-
"z-list-element-inner-container": true,
|
|
178
|
-
"expanded": this.showInnerContent,
|
|
179
|
-
} }, h("slot", { name: "inner-content" })));
|
|
180
|
-
}
|
|
181
|
-
/**
|
|
182
|
-
* Renders content of the z-list-element
|
|
183
|
-
* @returns list content
|
|
184
|
-
*/
|
|
185
|
-
renderContent() {
|
|
186
|
-
if (this.listType === ListType.NONE) {
|
|
187
|
-
return h("slot", null);
|
|
188
|
-
}
|
|
189
|
-
if (this.listType === ListType.ORDERED) {
|
|
190
|
-
return (h("div", { class: "z-list-content-container" }, h("div", null, this.listElementPosition, ".\u2003"), h("slot", null)));
|
|
191
|
-
}
|
|
192
|
-
if (this.listType === ListType.UNORDERED) {
|
|
193
|
-
return (h("div", { class: "z-list-content-container" }, h("span", null, "\u2022\u2003"), h("slot", null)));
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
render() {
|
|
197
|
-
return (h(Host, { role: "listitem", "aria-expanded": this.expandable ? this.showInnerContent : null, onClick: this.handleClick, onKeyDown: this.handleKeyDown, clickable: this.clickable && !this.disabled, tabIndex: !this.isContextualMenu ? "0" : null }, h("div", { class: `${this.calculateClass()}`, style: { color: `var(--${this.color})` }, tabindex: this.isContextualMenu ? "0" : "-1", id: `z-list-element-id-${this.listElementId}`, part: "list-item-container" }, h("div", { class: "z-list-element-container" }, this.renderExpandableButton(), this.renderContent()), this.renderExpandedContent()), this.dividerType === ListDividerType.ELEMENT && (h("z-divider", { color: this.dividerColor, size: this.dividerSize }))));
|
|
198
|
-
}
|
|
199
|
-
get host() { return getElement(this); }
|
|
200
|
-
};
|
|
201
|
-
ZListElement.style = stylesCss$1;
|
|
202
|
-
|
|
203
|
-
const stylesCss = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>.z-list-group-header-container{color:var(--gray700);font-size:var(--font-size-2);font-weight:var(--font-sb) !important;letter-spacing:0.16px;line-height:1.4}:host>.z-list-group-header-container.has-header{padding-top:var(--space-unit);padding-bottom:var(--space-unit)}:host>.z-list-group-header-container.has-header>z-divider{margin-top:var(--space-unit)}";
|
|
204
|
-
|
|
205
|
-
const ZListGroup = class {
|
|
206
|
-
constructor(hostRef) {
|
|
207
|
-
registerInstance(this, hostRef);
|
|
208
|
-
/**
|
|
209
|
-
* [optional] Sets size of inside elements.
|
|
210
|
-
*/
|
|
211
|
-
this.size = ListSize.MEDIUM;
|
|
212
|
-
/**
|
|
213
|
-
* [optional] Sets the position where to insert the divider.
|
|
214
|
-
*/
|
|
215
|
-
this.dividerType = ListDividerType.NONE;
|
|
216
|
-
/**
|
|
217
|
-
* [optional] Sets the divider size.
|
|
218
|
-
*/
|
|
219
|
-
this.dividerSize = DividerSize.SMALL;
|
|
220
|
-
/**
|
|
221
|
-
* [optional] Sets the divider color.
|
|
222
|
-
*/
|
|
223
|
-
this.dividerColor = "gray200";
|
|
224
|
-
/**
|
|
225
|
-
* [optional] type of the list marker for each element
|
|
226
|
-
*/
|
|
227
|
-
this.listType = ListType.NONE;
|
|
228
|
-
}
|
|
229
|
-
componentDidLoad() {
|
|
230
|
-
const children = this.host.children;
|
|
231
|
-
for (let i = 0; i < children.length; i++) {
|
|
232
|
-
if (children.length - 1 > i) {
|
|
233
|
-
children[i].setAttribute("divider-type", this.dividerType);
|
|
234
|
-
children[i].setAttribute("divider-size", this.dividerSize);
|
|
235
|
-
children[i].setAttribute("divider-color", this.dividerColor);
|
|
236
|
-
}
|
|
237
|
-
children[i].setAttribute("size", this.size);
|
|
238
|
-
children[i].setAttribute("list-type", this.listType);
|
|
239
|
-
children[i].setAttribute("list-element-position", i.toString());
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
componentWillLoad() {
|
|
243
|
-
this.hasHeader = !!this.host.querySelector('[slot="header-title"]');
|
|
244
|
-
}
|
|
245
|
-
render() {
|
|
246
|
-
return (h(Host, { role: "group" }, h("div", { class: {
|
|
247
|
-
"z-list-group-header-container": true,
|
|
248
|
-
"has-header": this.hasHeader,
|
|
249
|
-
} }, h("slot", { name: "header-title" }), this.dividerType === ListDividerType.HEADER && (h("z-divider", { color: this.dividerColor, size: this.dividerSize }))), h("slot", null)));
|
|
250
|
-
}
|
|
251
|
-
get host() { return getElement(this); }
|
|
252
|
-
};
|
|
253
|
-
ZListGroup.style = stylesCss;
|
|
254
|
-
|
|
255
|
-
export { ZList as z_list, ZListElement as z_list_element, ZListGroup as z_list_group };
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-1b01fa0e.js';
|
|
2
|
-
import { u as PocketStatus } from './index-9d240d39.js';
|
|
3
|
-
|
|
4
|
-
const stylesCss = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>z-pocket{width:100%}:host>z-pocket.closed{width:158px}:host>z-pocket>z-pocket-header{color:var(--color-primary01);fill:var(--color-primary01);font-size:12px;font-weight:var(--font-sb)}:host>z-pocket>z-pocket-header span.badge{display:inline-block;padding:0 calc(var(--space-unit) * 0.5);margin-left:var(--space-unit);background:var(--color-secondary02);border-radius:50%;color:var(--color-surface01)}:host>z-pocket>z-pocket-header>z-icon{margin-left:var(--space-unit)}:host>z-pocket>z-pocket-body>div.body{overflow:hidden;padding:var(--space-unit);margin:0 var(--space-unit)}:host>z-pocket.preview>z-pocket-body{position:relative}:host>z-pocket.preview>z-pocket-body>div.gradient{position:absolute;top:0;right:0;bottom:0;left:0;background-image:linear-gradient(rgb(255 0 0 / 0%), white)}:host>z-pocket.open>z-pocket-body>div.body{overflow:auto;max-height:calc(100vh - 166px);scrollbar-width:none}:host ::-webkit-scrollbar{width:0}@media only screen and (min-width: 768px){:host>z-pocket{width:768px;margin:0 calc((100% - 768px) / 2)}:host>z-pocket.closed{margin:0 calc((100% - 158px) / 2)}:host>z-pocket.open>z-pocket-body>div.body{max-height:326px}}@media only screen and (min-width: 1152px){:host>z-pocket.open>z-pocket-body>div.body{scrollbar-color:var(--color-primary01) var(--color-surface03);scrollbar-width:thin}:host ::-webkit-scrollbar{width:10px;background:linear-gradient(\n 90deg,\n var(--color-surface01) 2px,\n var(--color-surface03) 4px,\n var(--color-surface01) 8px\n );border-radius:var(--border-radius)}:host ::-webkit-scrollbar-thumb{width:var(--space-unit);background-color:var(--color-primary01);border-radius:var(--border-radius)}}";
|
|
5
|
-
|
|
6
|
-
const ZMessagesPocket = class {
|
|
7
|
-
constructor(hostRef) {
|
|
8
|
-
registerInstance(this, hostRef);
|
|
9
|
-
/** pocket status */
|
|
10
|
-
this.status = PocketStatus.PREVIEW;
|
|
11
|
-
}
|
|
12
|
-
handlePocketToggle(e) {
|
|
13
|
-
if (e.detail.id === this.pocketid) {
|
|
14
|
-
this.status = e.detail.status;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
renderHeader() {
|
|
18
|
-
let message;
|
|
19
|
-
let icon;
|
|
20
|
-
switch (this.status) {
|
|
21
|
-
case PocketStatus.PREVIEW:
|
|
22
|
-
case PocketStatus.CLOSED:
|
|
23
|
-
message = (h("span", null, "Messaggi ", h("span", { class: "badge" }, this.messages)));
|
|
24
|
-
icon = "chevron-up";
|
|
25
|
-
break;
|
|
26
|
-
case PocketStatus.OPEN:
|
|
27
|
-
message = h("span", null, "Riduci");
|
|
28
|
-
icon = "chevron-down";
|
|
29
|
-
break;
|
|
30
|
-
}
|
|
31
|
-
return (h("z-pocket-header", { pocketid: this.pocketid }, message, h("z-icon", { name: icon, width: 14, height: 14 })));
|
|
32
|
-
}
|
|
33
|
-
renderBody() {
|
|
34
|
-
return (h("z-pocket-body", { pocketid: this.pocketid }, h("div", { class: "body" }, h("slot", null)), h("div", { class: "gradient" })));
|
|
35
|
-
}
|
|
36
|
-
render() {
|
|
37
|
-
return (h("z-pocket", { pocketid: this.pocketid, status: this.status, class: this.status }, this.renderHeader(), this.renderBody()));
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
ZMessagesPocket.style = stylesCss;
|
|
41
|
-
|
|
42
|
-
export { ZMessagesPocket as z_messages_pocket };
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host } from './index-1b01fa0e.js';
|
|
2
|
-
import { N as NavigationTabsOrientation, y as NavigationTabsSize } from './index-9d240d39.js';
|
|
3
|
-
import { I as ICONS } from './icons-6196a79a.js';
|
|
4
|
-
|
|
5
|
-
const navigationTabCss = "z-navigation-tab>button,z-navigation-tab-link>a{position:relative;z-index:0;display:inline-flex;width:auto;align-items:center;justify-content:center;padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 5);border:none;margin:0;background-color:unset;border-radius:var(--border-no-radius);color:var(--color-primary01);cursor:pointer;fill:currentcolor;font-family:var(--font-family-sans);font-size:inherit;letter-spacing:inherit;line-height:inherit;outline:none;text-align:center;white-space:nowrap}z-navigation-tab-link>a{text-decoration:none}z-navigation-tab *,z-navigation-tab-link *,z-navigation-tab *::before,z-navigation-tab *::after,z-navigation-tab-link *::before,z-navigation-tab-link *::after{box-sizing:border-box}z-navigation-tab>*:focus:focus-visible,z-navigation-tab-link>*:focus:focus-visible{z-index:1;box-shadow:inset 0 0 4px 3px var(--color-highlight)}z-navigation-tab:not([disabled]):hover>*,z-navigation-tab[selected]>*,z-navigation-tab-link:not([disabled]):hover>*,z-navigation-tab-link[selected]>*{color:var(--color-hover-secondary);fill:currentcolor}z-navigation-tab:not([disabled]):hover>*::after,z-navigation-tab[selected]>*::after,z-navigation-tab-link:not([disabled]):hover>*::after,z-navigation-tab-link[selected]>*::after{position:absolute;background-color:var(--color-hover-secondary);content:\"\"}z-navigation-tab[orientation=\"horizontal\"]:not([disabled]):hover>*::after,z-navigation-tab[orientation=\"horizontal\"][selected]>*::after,z-navigation-tab-link[orientation=\"horizontal\"]:not([disabled]):hover>*::after,z-navigation-tab-link[orientation=\"horizontal\"][selected]>*::after{bottom:0;left:0;width:100%;height:var(--border-size-large)}z-navigation-tab z-icon,z-navigation-tab-link z-icon{--z-icon-width:calc(var(--space-unit) * 2);--z-icon-height:calc(var(--space-unit) * 2);display:flex;margin:0}z-navigation-tab[orientation=\"horizontal\"] z-icon,z-navigation-tab-link[orientation=\"horizontal\"] z-icon{margin-right:var(--space-unit)}z-navigation-tab:not([disabled]):hover>*{background-color:var(--color-background)}z-navigation-tab[disabled]>*,z-navigation-tab-link[disabled]>*{color:var(--gray500);cursor:not-allowed;fill:currentcolor;pointer-events:all}z-navigation-tab[size=\"small\"]>*,z-navigation-tab-link[size=\"small\"]>*{font-size:var(--font-size-2);letter-spacing:0.16px;line-height:1.4}z-navigation-tab[size=\"small\"][orientation=\"horizontal\"]>*,z-navigation-tab-link[size=\"small\"][orientation=\"horizontal\"]>*{padding:var(--space-unit) calc(var(--space-unit) * 2)}z-navigation-tab[size=\"small\"][orientation=\"horizontal\"]:not([disabled]):hover>*::after,z-navigation-tab[size=\"small\"][orientation=\"horizontal\"][selected]>*::after,z-navigation-tab-link[size=\"small\"][orientation=\"horizontal\"]:not([disabled]):hover>*::after,z-navigation-tab-link[size=\"small\"][orientation=\"horizontal\"][selected]>*::after{height:var(--border-size-medium)}z-navigation-tab[size=\"small\"]:not([orientation=\"vertical\"]) z-icon,z-navigation-tab-link[size=\"small\"]:not([orientation=\"vertical\"]) z-icon{--z-icon-width:14px;--z-icon-height:14px}z-navigation-tab[orientation=\"vertical\"]>*,z-navigation-tab-link[orientation=\"vertical\"]>*{padding:calc(var(--space-unit) * 3) calc(var(--space-unit) * 2)}z-navigation-tab[orientation=\"vertical\"]:not([disabled]):hover>*::after,z-navigation-tab[orientation=\"vertical\"][selected]>*::after,z-navigation-tab-link[orientation=\"vertical\"]:not([disabled]):hover>*::after,z-navigation-tab-link[orientation=\"vertical\"][selected]>*::after{top:0;right:0;width:var(--border-size-large);height:100%}";
|
|
6
|
-
|
|
7
|
-
const ZNavigationTabLink = class {
|
|
8
|
-
constructor(hostRef) {
|
|
9
|
-
registerInstance(this, hostRef);
|
|
10
|
-
this.selectedEvent = createEvent(this, "selected", 7);
|
|
11
|
-
/**
|
|
12
|
-
* Whether the tab is selected.
|
|
13
|
-
*/
|
|
14
|
-
this.selected = false;
|
|
15
|
-
/**
|
|
16
|
-
* Whether the tab is disabled.
|
|
17
|
-
*/
|
|
18
|
-
this.disabled = false;
|
|
19
|
-
/**
|
|
20
|
-
* Tab orientation. Do not set this manually: `z-navigation-tabs` will handle this.
|
|
21
|
-
*/
|
|
22
|
-
this.orientation = NavigationTabsOrientation.HORIZONTAL;
|
|
23
|
-
/**
|
|
24
|
-
* Tab size. Do not set this manually: `z-navigation-tabs` will handle this.
|
|
25
|
-
*/
|
|
26
|
-
this.size = NavigationTabsSize.BIG;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Scroll into view to center the tab.
|
|
30
|
-
*/
|
|
31
|
-
scrollToTab({ target: button }) {
|
|
32
|
-
const scrollOptions = (this.orientation === NavigationTabsOrientation.HORIZONTAL
|
|
33
|
-
? { block: "nearest", inline: "center" }
|
|
34
|
-
: { block: "center", inline: "nearest" });
|
|
35
|
-
button.scrollIntoView(Object.assign({ behavior: "smooth" }, scrollOptions));
|
|
36
|
-
}
|
|
37
|
-
onClick() {
|
|
38
|
-
if (this.disabled) {
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
41
|
-
this.selected = true;
|
|
42
|
-
}
|
|
43
|
-
onSelected() {
|
|
44
|
-
if (this.selected) {
|
|
45
|
-
this.selectedEvent.emit();
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Render the icon component using the icon's name passed from prop.
|
|
50
|
-
* Use the `filled` version when the tab is `selected`.
|
|
51
|
-
* @returns {HTMLElement}
|
|
52
|
-
*/
|
|
53
|
-
renderIcon() {
|
|
54
|
-
let icon = this.icon;
|
|
55
|
-
const iconFilled = `${icon.replace(/-filled$/, "")}-filled`;
|
|
56
|
-
if (this.selected && Object.keys(ICONS).includes(iconFilled)) {
|
|
57
|
-
icon = iconFilled;
|
|
58
|
-
}
|
|
59
|
-
return h("z-icon", { name: icon });
|
|
60
|
-
}
|
|
61
|
-
render() {
|
|
62
|
-
return (h(Host, { role: "tab", id: this.tabId, "aria-selected": this.selected ? "true" : "false", "aria-controls": this.ariaControls }, h("a", { tabIndex: this.selected ? 0 : -1, onFocus: this.scrollToTab.bind(this), href: this.disabled ? null : this.href, title: this.htmlTitle, target: this.target }, this.icon && this.renderIcon(), this.orientation === "horizontal" && this.label)));
|
|
63
|
-
}
|
|
64
|
-
static get watchers() { return {
|
|
65
|
-
"selected": ["onSelected"]
|
|
66
|
-
}; }
|
|
67
|
-
};
|
|
68
|
-
ZNavigationTabLink.style = navigationTabCss;
|
|
69
|
-
|
|
70
|
-
export { ZNavigationTabLink as z_navigation_tab_link };
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host } from './index-1b01fa0e.js';
|
|
2
|
-
import { N as NavigationTabsOrientation, y as NavigationTabsSize } from './index-9d240d39.js';
|
|
3
|
-
import { I as ICONS } from './icons-6196a79a.js';
|
|
4
|
-
|
|
5
|
-
const navigationTabCss = "z-navigation-tab>button,z-navigation-tab-link>a{position:relative;z-index:0;display:inline-flex;width:auto;align-items:center;justify-content:center;padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 5);border:none;margin:0;background-color:unset;border-radius:var(--border-no-radius);color:var(--color-primary01);cursor:pointer;fill:currentcolor;font-family:var(--font-family-sans);font-size:inherit;letter-spacing:inherit;line-height:inherit;outline:none;text-align:center;white-space:nowrap}z-navigation-tab-link>a{text-decoration:none}z-navigation-tab *,z-navigation-tab-link *,z-navigation-tab *::before,z-navigation-tab *::after,z-navigation-tab-link *::before,z-navigation-tab-link *::after{box-sizing:border-box}z-navigation-tab>*:focus:focus-visible,z-navigation-tab-link>*:focus:focus-visible{z-index:1;box-shadow:inset 0 0 4px 3px var(--color-highlight)}z-navigation-tab:not([disabled]):hover>*,z-navigation-tab[selected]>*,z-navigation-tab-link:not([disabled]):hover>*,z-navigation-tab-link[selected]>*{color:var(--color-hover-secondary);fill:currentcolor}z-navigation-tab:not([disabled]):hover>*::after,z-navigation-tab[selected]>*::after,z-navigation-tab-link:not([disabled]):hover>*::after,z-navigation-tab-link[selected]>*::after{position:absolute;background-color:var(--color-hover-secondary);content:\"\"}z-navigation-tab[orientation=\"horizontal\"]:not([disabled]):hover>*::after,z-navigation-tab[orientation=\"horizontal\"][selected]>*::after,z-navigation-tab-link[orientation=\"horizontal\"]:not([disabled]):hover>*::after,z-navigation-tab-link[orientation=\"horizontal\"][selected]>*::after{bottom:0;left:0;width:100%;height:var(--border-size-large)}z-navigation-tab z-icon,z-navigation-tab-link z-icon{--z-icon-width:calc(var(--space-unit) * 2);--z-icon-height:calc(var(--space-unit) * 2);display:flex;margin:0}z-navigation-tab[orientation=\"horizontal\"] z-icon,z-navigation-tab-link[orientation=\"horizontal\"] z-icon{margin-right:var(--space-unit)}z-navigation-tab:not([disabled]):hover>*{background-color:var(--color-background)}z-navigation-tab[disabled]>*,z-navigation-tab-link[disabled]>*{color:var(--gray500);cursor:not-allowed;fill:currentcolor;pointer-events:all}z-navigation-tab[size=\"small\"]>*,z-navigation-tab-link[size=\"small\"]>*{font-size:var(--font-size-2);letter-spacing:0.16px;line-height:1.4}z-navigation-tab[size=\"small\"][orientation=\"horizontal\"]>*,z-navigation-tab-link[size=\"small\"][orientation=\"horizontal\"]>*{padding:var(--space-unit) calc(var(--space-unit) * 2)}z-navigation-tab[size=\"small\"][orientation=\"horizontal\"]:not([disabled]):hover>*::after,z-navigation-tab[size=\"small\"][orientation=\"horizontal\"][selected]>*::after,z-navigation-tab-link[size=\"small\"][orientation=\"horizontal\"]:not([disabled]):hover>*::after,z-navigation-tab-link[size=\"small\"][orientation=\"horizontal\"][selected]>*::after{height:var(--border-size-medium)}z-navigation-tab[size=\"small\"]:not([orientation=\"vertical\"]) z-icon,z-navigation-tab-link[size=\"small\"]:not([orientation=\"vertical\"]) z-icon{--z-icon-width:14px;--z-icon-height:14px}z-navigation-tab[orientation=\"vertical\"]>*,z-navigation-tab-link[orientation=\"vertical\"]>*{padding:calc(var(--space-unit) * 3) calc(var(--space-unit) * 2)}z-navigation-tab[orientation=\"vertical\"]:not([disabled]):hover>*::after,z-navigation-tab[orientation=\"vertical\"][selected]>*::after,z-navigation-tab-link[orientation=\"vertical\"]:not([disabled]):hover>*::after,z-navigation-tab-link[orientation=\"vertical\"][selected]>*::after{top:0;right:0;width:var(--border-size-large);height:100%}";
|
|
6
|
-
|
|
7
|
-
const ZNavigationTab = class {
|
|
8
|
-
constructor(hostRef) {
|
|
9
|
-
registerInstance(this, hostRef);
|
|
10
|
-
this.selectedEvent = createEvent(this, "selected", 7);
|
|
11
|
-
/**
|
|
12
|
-
* Whether the tab is selected.
|
|
13
|
-
*/
|
|
14
|
-
this.selected = false;
|
|
15
|
-
/**
|
|
16
|
-
* Whether the tab is disabled.
|
|
17
|
-
*/
|
|
18
|
-
this.disabled = false;
|
|
19
|
-
/**
|
|
20
|
-
* Tab orientation. Do not set this manually: `z-navigation-tabs` will handle this.
|
|
21
|
-
*/
|
|
22
|
-
this.orientation = NavigationTabsOrientation.HORIZONTAL;
|
|
23
|
-
/**
|
|
24
|
-
* Tab size. Do not set this manually: `z-navigation-tabs` will handle this.
|
|
25
|
-
*/
|
|
26
|
-
this.size = NavigationTabsSize.BIG;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Scroll into view to center the tab.
|
|
30
|
-
*/
|
|
31
|
-
scrollToTab({ target: button }) {
|
|
32
|
-
const scrollOptions = (this.orientation === NavigationTabsOrientation.HORIZONTAL
|
|
33
|
-
? { block: "nearest", inline: "center" }
|
|
34
|
-
: { block: "center", inline: "nearest" });
|
|
35
|
-
button.scrollIntoView(Object.assign({ behavior: "smooth" }, scrollOptions));
|
|
36
|
-
}
|
|
37
|
-
onClick() {
|
|
38
|
-
if (!this.disabled) {
|
|
39
|
-
this.selected = true;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
onSelected() {
|
|
43
|
-
if (this.selected) {
|
|
44
|
-
this.selectedEvent.emit();
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Render the icon component using the icon's name passed from prop.
|
|
49
|
-
* Use the `filled` version when the tab is `selected`.
|
|
50
|
-
* @returns {HTMLElement}
|
|
51
|
-
*/
|
|
52
|
-
renderIcon() {
|
|
53
|
-
let icon = this.icon;
|
|
54
|
-
const iconFilled = `${icon.replace(/-filled$/, "")}-filled`;
|
|
55
|
-
if (this.selected && Object.keys(ICONS).includes(iconFilled)) {
|
|
56
|
-
icon = iconFilled;
|
|
57
|
-
}
|
|
58
|
-
return h("z-icon", { name: icon });
|
|
59
|
-
}
|
|
60
|
-
render() {
|
|
61
|
-
return (h(Host, { role: "tab", id: this.tabId, "aria-selected": this.selected ? "true" : "false", "aria-controls": this.ariaControls }, h("button", { tabIndex: this.selected ? 0 : -1, onFocus: this.scrollToTab.bind(this), disabled: this.disabled, title: this.htmlTitle }, this.icon && this.renderIcon(), this.orientation === NavigationTabsOrientation.HORIZONTAL && this.label)));
|
|
62
|
-
}
|
|
63
|
-
static get watchers() { return {
|
|
64
|
-
"selected": ["onSelected"]
|
|
65
|
-
}; }
|
|
66
|
-
};
|
|
67
|
-
ZNavigationTab.style = navigationTabCss;
|
|
68
|
-
|
|
69
|
-
export { ZNavigationTab as z_navigation_tab };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-1b01fa0e.js';
|
|
2
|
-
|
|
3
|
-
const stylesCss = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>div{display:grid;padding-top:calc(var(--space-unit) * 1.5);border-bottom:var(--border-size-small) solid var(--color-surface03);color:var(--color-surface05);fill:var(--color-surface05);font-size:14px;grid-template-columns:36px auto;grid-template-rows:auto auto}:host>div>z-icon{grid-column:1 / 2;grid-row:1 / 2}:host>div>div.content{margin-bottom:var(--space-unit);grid-column:2 / 3;grid-row:1 / 2}:host>div>div.cta-wrapper{display:flex;flex-flow:column nowrap;align-items:center;justify-content:flex-start;margin-bottom:var(--space-unit);grid-column:1 / 3;grid-row:2 / 3}@media only screen and (min-width: 768px){:host>div>div.cta-wrapper{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: "cta-wrapper" }, h("slot", { name: "cta" }))));
|
|
11
|
-
}
|
|
12
|
-
};
|
|
13
|
-
ZPocketMessage.style = stylesCss;
|
|
14
|
-
|
|
15
|
-
export { ZPocketMessage as z_pocket_message };
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, a as getElement } from './index-1b01fa0e.js';
|
|
2
|
-
import { u as PocketStatus } from './index-9d240d39.js';
|
|
3
|
-
import { h as handleKeyboardSubmit } from './utils-bc5ea6f7.js';
|
|
4
|
-
import { h as hammer } from './hammer-c3266b17.js';
|
|
5
|
-
import './breakpoints-3c3dbb8c.js';
|
|
6
|
-
import './_commonjsHelpers-9943807e.js';
|
|
7
|
-
|
|
8
|
-
const stylesCss$2 = ":host{width:inherit;height:100%;margin:inherit;font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>div{width:inherit;height:100%;margin:inherit}:host>div>div.background{position:fixed;z-index:998;top:0;right:0;bottom:0;left:0;width:0;height:0}:host>div>div.background.open{width:100%;height:100%}:host>div>div.content-wrapper{position:fixed;z-index:999;bottom:0;left:0;width:inherit;margin:inherit}:host>div>div.content-wrapper>div{margin:calc(var(--space-unit) * 0.5) calc(var(--space-unit) * 0.5) 0 calc(var(--space-unit) * 0.5);border-radius:var(--space-unit) var(--space-unit) 0 0;box-shadow:0 -2px calc(var(--space-unit) * 0.5) 0 rgb(66 69 72 / 40%)}";
|
|
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 = PocketStatus.PREVIEW;
|
|
16
|
-
}
|
|
17
|
-
/** open z-pocket */
|
|
18
|
-
async open() {
|
|
19
|
-
this.status = PocketStatus.OPEN;
|
|
20
|
-
}
|
|
21
|
-
/** close z-pocket */
|
|
22
|
-
async close() {
|
|
23
|
-
this.status = PocketStatus.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 PocketStatus.PREVIEW:
|
|
32
|
-
case PocketStatus.CLOSED:
|
|
33
|
-
this.status = PocketStatus.OPEN;
|
|
34
|
-
break;
|
|
35
|
-
case PocketStatus.OPEN:
|
|
36
|
-
this.status = PocketStatus.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 = PocketStatus.OPEN;
|
|
45
|
-
}
|
|
46
|
-
else if (e.detail.direction === "down") {
|
|
47
|
-
this.status = PocketStatus.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: "content-wrapper" }, 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{display:block;width:100%;box-sizing:border-box;font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>main{overflow:auto;border-right:var(--border-size-small) solid var(--color-surface03);border-left:var(--border-size-small) solid var(--color-surface03);background:var(--color-surface01);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:0;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 = PocketStatus.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{display:block;width:100%;box-sizing:border-box;font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>header{display:flex;height:36px;flex-flow:row nowrap;align-items:center;justify-content:center;border:var(--border-size-small) solid var(--color-surface03);background:var(--color-surface01);border-radius:var(--space-unit) var(--space-unit) 0 0;cursor:pointer}: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 };
|