@zanichelli/delta_share 3.2.5 → 4.1.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-376d9f31.js} +2 -2
- package/dist/wc/cjs/{index-c98ff1cc.js → index-48ad79ef.js} +64 -84
- package/dist/wc/cjs/{index-23e5e843.js → index-49643807.js} +2 -5
- package/dist/wc/cjs/index-bdde15d7.js +44 -0
- package/dist/wc/cjs/index-c56dd0b3.js +64 -0
- package/dist/wc/cjs/index-dca3e969.js +18 -0
- package/dist/wc/cjs/index-ee150627.js +56 -0
- package/dist/wc/cjs/index-f043c44c.js +351 -0
- package/dist/wc/cjs/license-activation_10.cjs.entry.js +1001 -51
- package/dist/wc/cjs/loader.cjs.js +2 -2
- package/dist/wc/cjs/utils-19feebcd.js +111 -0
- package/dist/wc/cjs/{utils-1ed1ec98.js → utils-e18cc609.js} +63 -63
- 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-app.cjs.entry.js +36 -0
- package/dist/wc/cjs/z-book-card-deprecated.cjs.entry.js +135 -0
- package/dist/wc/cjs/z-book-card.cjs.entry.js +90 -95
- 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 +14 -17
- package/dist/wc/cjs/z-file-upload.cjs.entry.js +99 -96
- package/dist/wc/cjs/z-file.cjs.entry.js +7 -5
- package/dist/wc/cjs/z-ghost-loading.cjs.entry.js +3 -3
- 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 +8 -4
- 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 +10 -10
- package/dist/wc/cjs/z-myz-card-list.cjs.entry.js +4 -3
- package/dist/wc/cjs/z-myz-card_4.cjs.entry.js +17 -10
- 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 +146 -44
- 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 +11 -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 +8 -9
- 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 +5 -20
- package/dist/wc/collection/components/license-activation-form/license-activation-form.css +5 -5
- package/dist/wc/collection/components/license-activation-form/license-activation-form.js +1 -1
- package/dist/wc/custom-elements/index.js +7222 -6950
- package/dist/wc/delta_share/delta_share.esm.js +1 -1
- package/dist/wc/delta_share/p-013e4409.entry.js +1 -0
- package/dist/wc/delta_share/p-018ee9d6.entry.js +1 -0
- package/dist/wc/delta_share/p-02ebcfea.entry.js +1 -0
- package/dist/wc/delta_share/p-056fe365.js +2 -0
- package/dist/wc/delta_share/p-0ae2c3f2.entry.js +1 -0
- package/dist/wc/delta_share/p-0b2e7aa5.js +1 -0
- package/dist/wc/delta_share/p-19676cde.entry.js +1 -0
- package/dist/wc/delta_share/p-1d029eee.entry.js +1 -0
- package/dist/wc/delta_share/p-262ab797.entry.js +7 -0
- package/dist/wc/delta_share/p-28cf49f6.entry.js +1 -0
- package/dist/wc/delta_share/p-295518af.entry.js +1 -0
- package/dist/wc/delta_share/p-29f14555.entry.js +1 -0
- package/dist/wc/delta_share/p-29fc3a79.entry.js +1 -0
- package/dist/wc/delta_share/p-2a01a3f3.entry.js +1 -0
- package/dist/wc/delta_share/p-2b97cd87.entry.js +1 -0
- package/dist/wc/delta_share/p-3104a139.entry.js +1 -0
- package/dist/wc/delta_share/p-3870dbe2.entry.js +1 -0
- package/dist/wc/delta_share/p-3b354b80.entry.js +1 -0
- package/dist/wc/delta_share/p-3b4d4f00.entry.js +1 -0
- package/dist/wc/delta_share/p-3d013235.entry.js +1 -0
- package/dist/wc/delta_share/p-4449733f.entry.js +1 -0
- package/dist/wc/delta_share/p-444db53b.js +1 -0
- package/dist/wc/delta_share/p-44ceafee.entry.js +1 -0
- package/dist/wc/delta_share/p-4cfc333d.js +1 -0
- package/dist/wc/delta_share/p-5212008a.entry.js +1 -0
- package/dist/wc/delta_share/p-566c9267.entry.js +1 -0
- package/dist/wc/delta_share/p-59f14c8d.entry.js +1 -0
- package/dist/wc/delta_share/p-5adb7aa8.entry.js +1 -0
- package/dist/wc/delta_share/p-620a959a.entry.js +1 -0
- package/dist/wc/delta_share/p-62a61516.js +1 -0
- package/dist/wc/delta_share/p-63d78af3.entry.js +1 -0
- package/dist/wc/delta_share/p-6653b9a1.entry.js +1 -0
- package/dist/wc/delta_share/{p-d50ea6ea.js → p-6c8159ea.js} +1 -1
- package/dist/wc/delta_share/p-707c5585.entry.js +1 -0
- package/dist/wc/delta_share/p-7fda0bed.entry.js +1 -0
- package/dist/wc/delta_share/p-8134fe51.entry.js +1 -0
- package/dist/wc/delta_share/p-866f8a49.entry.js +1 -0
- package/dist/wc/delta_share/p-86964f3b.entry.js +16 -0
- package/dist/wc/delta_share/p-87332b01.entry.js +1 -0
- package/dist/wc/delta_share/p-8c81d9b2.entry.js +1 -0
- package/dist/wc/delta_share/p-8f9ed094.entry.js +1 -0
- package/dist/wc/delta_share/p-99acd07f.entry.js +1 -0
- package/dist/wc/delta_share/p-9c18160e.entry.js +1 -0
- package/dist/wc/delta_share/p-9ed10859.entry.js +1 -0
- package/dist/wc/delta_share/p-a21fd966.entry.js +1 -0
- package/dist/wc/delta_share/p-a74a2ea7.entry.js +1 -0
- package/dist/wc/delta_share/p-a85812cb.entry.js +1 -0
- package/dist/wc/delta_share/p-b0a69730.entry.js +1 -0
- package/dist/wc/delta_share/p-b0c09e8c.entry.js +1 -0
- package/dist/wc/delta_share/p-ba1facc4.entry.js +1 -0
- package/dist/wc/delta_share/p-bcbf4111.js +1 -0
- package/dist/wc/delta_share/p-c2331325.js +1 -0
- package/dist/wc/delta_share/p-c804a012.entry.js +1 -0
- package/dist/wc/delta_share/p-c8bbe9e8.entry.js +1 -0
- package/dist/wc/delta_share/p-ca9baa11.entry.js +1 -0
- package/dist/wc/delta_share/p-cb91ed58.entry.js +1 -0
- package/dist/wc/delta_share/p-ce5a0e4a.js +1 -0
- package/dist/wc/delta_share/p-cee50bb2.entry.js +1 -0
- package/dist/wc/delta_share/p-d0c5e474.entry.js +1 -0
- package/dist/wc/delta_share/p-d46bf9a5.js +1 -0
- package/dist/wc/delta_share/p-ddde8778.entry.js +1 -0
- package/dist/wc/delta_share/p-de08796d.entry.js +1 -0
- package/dist/wc/delta_share/p-e04a44e2.entry.js +1 -0
- package/dist/wc/delta_share/p-e070058d.entry.js +1 -0
- package/dist/wc/delta_share/p-e1e28def.entry.js +1 -0
- package/dist/wc/delta_share/p-e433303b.entry.js +1 -0
- package/dist/wc/delta_share/p-e4fd3b00.entry.js +1 -0
- package/dist/wc/delta_share/p-e642c65b.entry.js +1 -0
- package/dist/wc/delta_share/p-e8902ced.entry.js +1 -0
- package/dist/wc/delta_share/p-e90554fa.entry.js +1 -0
- package/dist/wc/delta_share/p-e9369c2c.entry.js +1 -0
- package/dist/wc/delta_share/p-eab0941b.entry.js +3 -0
- package/dist/wc/delta_share/p-ecc6113d.entry.js +1 -0
- package/dist/wc/delta_share/p-f44c8791.entry.js +1 -0
- package/dist/wc/delta_share/p-fb066b3f.entry.js +1 -0
- package/dist/wc/delta_share/p-fc5a8411.entry.js +1 -0
- package/dist/wc/delta_share/p-fc6c2cae.entry.js +1 -0
- package/dist/wc/delta_share/p-ff64ac0d.js +1 -0
- package/dist/wc/delta_share/p-ff7ff884.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-022ca053.js +42 -0
- package/dist/wc/esm/index-2f04648d.js +351 -0
- package/dist/wc/esm/{index-2be1634d.js → index-46586cb9.js} +2 -5
- package/dist/wc/esm/index-65a6f17d.js +16 -0
- package/dist/wc/esm/index-68d2aa41.js +54 -0
- package/dist/wc/esm/index-a0e81965.js +15 -0
- package/dist/wc/esm/{index-1b01fa0e.js → index-b69e88d4.js} +64 -85
- package/dist/wc/esm/index-df47a432.js +62 -0
- package/dist/wc/esm/license-activation_10.entry.js +999 -49
- package/dist/wc/esm/loader.js +2 -2
- package/dist/wc/esm/{utils-5e6dc3fe.js → utils-098de0ea.js} +63 -63
- package/dist/wc/esm/utils-aa5e2546.js +101 -0
- 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-app.entry.js +32 -0
- package/dist/wc/esm/z-book-card-deprecated.entry.js +131 -0
- package/dist/wc/esm/z-book-card.entry.js +90 -95
- 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 +14 -17
- package/dist/wc/esm/z-file-upload.entry.js +99 -96
- package/dist/wc/esm/z-file.entry.js +7 -5
- package/dist/wc/esm/z-ghost-loading.entry.js +3 -3
- 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 +8 -4
- 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 +10 -10
- package/dist/wc/esm/z-myz-card-list.entry.js +4 -3
- package/dist/wc/esm/z-myz-card_4.entry.js +17 -10
- 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 +146 -44
- 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 +11 -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 +8 -9
- 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/index-e790a3c5.js +0 -21
- 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-64993358.js +0 -19
- 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,8 +2,8 @@
|
|
|
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-f043c44c.js');
|
|
7
7
|
|
|
8
8
|
const stylesCss = ":host{display:inline-flex;overflow:hidden;align-items:center;justify-content:center;background-color:var(--gray700);border-radius:50%;font-family:var(--font-family-sans);text-transform:uppercase}:host(.small),:host(.small)>img{width:calc(var(--space-unit) * 3);height:calc(var(--space-unit) * 3)}:host(.medium),:host(.medium)>img{width:calc(var(--space-unit) * 4);height:calc(var(--space-unit) * 4)}:host(.large),:host(.large)>img{width:calc(var(--space-unit) * 5);height:calc(var(--space-unit) * 5)}:host>img{object-fit:cover}";
|
|
9
9
|
|
|
@@ -11,12 +11,11 @@ const ZAvatar = class {
|
|
|
11
11
|
constructor(hostRef) {
|
|
12
12
|
index.registerInstance(this, hostRef);
|
|
13
13
|
var _a, _b;
|
|
14
|
-
/** [optional] Avatar size */
|
|
15
14
|
this.size = index$1.AvatarSize.MEDIUM;
|
|
16
|
-
|
|
15
|
+
this.text = undefined;
|
|
17
16
|
this.textColor = "color-white";
|
|
18
|
-
/** [optional] Avatar background color */
|
|
19
17
|
this.backgroundColor = "gray700";
|
|
18
|
+
this.image = undefined;
|
|
20
19
|
if (((_a = this.text) === null || _a === void 0 ? void 0 : _a.length) === 0 && ((_b = this.image) === null || _b === void 0 ? void 0 : _b.length) === 0) {
|
|
21
20
|
console.warn("z-avatar must contain at least one prop between text and image");
|
|
22
21
|
}
|
|
@@ -33,10 +32,10 @@ const ZAvatar = class {
|
|
|
33
32
|
}
|
|
34
33
|
}
|
|
35
34
|
render() {
|
|
36
|
-
return (index.h(index.Host, { class: { [this.size]: true, [`body-${this.getTextSize()}-sb`]: true }, style: {
|
|
35
|
+
return (index.h(index.Host, { key: '77ef834dbf6ba1e73562dea4e1011196d8decee4', class: { [this.size]: true, [`body-${this.getTextSize()}-sb`]: true }, style: {
|
|
37
36
|
color: `var(--${this.textColor})`,
|
|
38
37
|
backgroundColor: `var(--${this.backgroundColor})`,
|
|
39
|
-
} }, this.text && !this.image && index.h("span",
|
|
38
|
+
} }, this.text && !this.image && index.h("span", { key: '41eab447479aa532c45f39aae303d7388928aedf' }, this.text.substring(0, 2)), this.image && (index.h("img", { key: 'e6ebedad5e2bf6c73107b174dad478ba0dd4c9d2', src: this.image, onError: () => (this.image = "") }))));
|
|
40
39
|
}
|
|
41
40
|
};
|
|
42
41
|
ZAvatar.style = stylesCss;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-48ad79ef.js');
|
|
6
|
+
const index$1 = require('./index-f043c44c.js');
|
|
7
|
+
|
|
8
|
+
const stylesCss = ":host{display:block;width:inherit;min-width:300px;height:inherit;min-height:32px;background-color:var(--color-surface01)}:host>div{display:flex;width:100%;height:100%;box-sizing:border-box;align-items:center;justify-content:space-between;padding:var(--z-book-card-app-padding-y, calc(var(--space-unit) * 1.5))\n var(--z-book-card-app-padding-x, var(--space-unit));gap:calc(var(--space-unit) * 2)}:host>div .app{display:flex;flex:1;align-items:center;gap:var(--space-unit)}:host>div .app.z-link{color:inherit;text-decoration:none}:host>div .app.z-link:focus{text-decoration:none}:host>div .app img{width:24px;height:24px}:host>div .app .name{display:-webkit-box;overflow:hidden;height:20px;-webkit-box-orient:vertical;font-family:var(--font-family-serif);-webkit-line-clamp:1;line-clamp:1;text-overflow:ellipsis;word-break:break-all}:host>div .app .name .laz{color:var(--red500)}:host>div z-info-reveal{--z-info-reveal-panel-width:250px;font-family:var(--font-family-sans);--color-surface05:var(--color-surface01);--color-text-inverse:var(--color-default-text);--color-inverse-icon:var(--color-primary01)}";
|
|
9
|
+
|
|
10
|
+
const ZBookCardApp = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
this.appClick = index.createEvent(this, "appClick", 7);
|
|
14
|
+
this.logo = undefined;
|
|
15
|
+
this.name = undefined;
|
|
16
|
+
this.link = undefined;
|
|
17
|
+
this.laz = true;
|
|
18
|
+
this.info = undefined;
|
|
19
|
+
}
|
|
20
|
+
emitAppClick() {
|
|
21
|
+
this.appClick.emit();
|
|
22
|
+
}
|
|
23
|
+
renderLaz() {
|
|
24
|
+
if (this.laz) {
|
|
25
|
+
return index.h("span", { class: "laz" }, "laZ ");
|
|
26
|
+
}
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
render() {
|
|
30
|
+
return (index.h("div", { key: 'e2bac004a35f7e5959ff55345a348d5abb02904f' }, index.h("a", { key: '42e4a549cf32b1ebe08ab73d79a2d61a3d90e66d', class: "app z-link", href: this.link, "aria-label": `vai a ${this.laz ? "laz" : ""} ${this.name}`, onClick: () => this.emitAppClick(), target: "_blank" }, this.logo && (index.h("img", { key: '4c7add8e362fc0cc2e6dfac9e705bfd3fa15b85c', src: this.logo, alt: "" })), index.h("div", { key: 'ce6a811f5688a04a3881612c731edbc02ab76a3f', class: "name body-4-sb" }, this.renderLaz(), this.name)), this.info && (index.h("z-info-reveal", { key: '5c560813db506113ceb38eb629a95dc98a757920', icon: "info", size: index$1.ControlSize.X_SMALL, position: index$1.InfoRevealPosition.TOP_RIGHT, class: "info body-5" }, index.h("div", { key: 'adffe6242bc25944d92e996952afe11ff8888c35' }, this.info))), index.h("a", { key: '816c5fdc2e3506f7f7b10e3e7bf35d38b1ba4857', class: "z-link z-link-icon", href: this.link, "aria-label": `vai a ${this.laz ? "laz" : ""} ${this.name}`, onClick: () => this.emitAppClick(), target: "_blank" }, index.h("z-icon", { key: '4ee25aca2744712aa70fba66d0487111acea3776', name: "chevron-right", width: 16, height: 16, fill: "color-primary01-icon" }))));
|
|
31
|
+
}
|
|
32
|
+
get hostElement() { return index.getElement(this); }
|
|
33
|
+
};
|
|
34
|
+
ZBookCardApp.style = stylesCss;
|
|
35
|
+
|
|
36
|
+
exports.z_book_card_app = ZBookCardApp;
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-48ad79ef.js');
|
|
6
|
+
const index$1 = require('./index-f043c44c.js');
|
|
7
|
+
const breakpoints = require('./breakpoints-7770f79c.js');
|
|
8
|
+
const utils = require('./utils-19feebcd.js');
|
|
9
|
+
|
|
10
|
+
const stylesCss = ":host{--z-book-card-ribbon-background-color:var(--avatar-C08);--z-book-card-ribbon-shadow-color:var(--green950);--z-book-card-compact-width:262px;--z-book-card-compact-height:568px}:host>article{display:block;width:100%;max-width:360px;box-sizing:border-box;border:var(--border-size-medium) solid var(--color-surface03);background-color:var(--color-surface01);border-radius:var(--border-radius);font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>article div.cover{position:relative}:host>article div.cover div.img-wrapper{display:flex;overflow:hidden;border:var(--border-size-small) solid var(--color-surface03);line-height:0}:host>article div.cover div.img-wrapper img{width:auto;max-width:100%;height:auto;max-height:100%;align-self:flex-end}:host>article div.cover .ribbon{position:absolute;z-index:10;top:calc(var(--space-unit) * 2);left:calc(var(--space-unit) * -2);display:flex;max-width:100%;height:calc(var(--space-unit) * 4);box-sizing:border-box;align-items:center;padding:0 calc(var(--space-unit) * 2);border:var(--border-size-medium) solid var(--color-surface01);background:var(--z-book-card-ribbon-background-color);border-radius:0 var(--border-radius) var(--border-radius) 0;box-shadow:var(--shadow-2);color:var(--color-text-inverse);font-family:var(--font-family-sans);font-size:var(--font-size-2);font-weight:var(--font-sb);line-height:initial}:host>article div.cover .ribbon.interactive:hover{cursor:pointer}:host>article div.cover .ribbon.interactive:focus{box-shadow:var(--shadow-focus-primary);outline:none !important}:host>article div.cover .ribbon span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:nowrap}:host>article div.cover .ribbon::before{position:absolute;bottom:-12px;left:-2px;width:0;height:0;border-top:10px solid var(--z-book-card-ribbon-shadow-color);border-left:16px solid transparent;content:\"\"}:host>article div.cover .ribbon z-icon{margin-right:var(--space-unit)}:host>article div.content{margin:var(--space-unit) 0;border-radius:var(--border-radius)}:host>article .title{display:flex;height:100%;align-self:center;color:var(--color-default-text);font-size:var(--font-size-4);font-weight:var(--font-sb);line-height:1.5}:host>article .title *{all:unset}:host>article div.subtitle{color:var(--color-default-text);font-size:var(--font-size-2);font-weight:var(--font-rg);line-height:1.4}:host>article div.authors{color:var(--color-default-text);font-size:var(--font-size-1);font-weight:var(--font-rg);line-height:1.33}:host>article div.isbn{overflow:hidden;color:var(--color-default-text);font-size:var(--font-size-2);line-height:1.33;text-overflow:ellipsis;white-space:nowrap;word-wrap:nowrap}:host>article div.isbn>.code{font-weight:var(--font-sb)}:host>article div.tags{display:flex;overflow:hidden;max-height:32px;flex-flow:row wrap;align-content:stretch;align-items:stretch;justify-content:flex-start;gap:calc(var(--space-unit) / 2)}:host>article ::slotted([slot=\"tags\"]){margin-bottom:var(--space-unit)}:host>article ::slotted([slot=\"header-cta\"]){--z-icon-width:20px;--z-icon-height:20px;padding:var(--space-unit);cursor:pointer;fill:var(--color-primary01-icon)}:host>article ::slotted([slot=\"header-cta\"]:focus){box-shadow:var(--shadow-focus-primary);outline:none !important}:host>article.expanded{width:100%;min-width:328px;padding:calc(var(--space-unit) * 2);padding-bottom:0}:host>article.expanded div.header{display:flex;flex-flow:row nowrap;align-content:stretch;align-items:top;justify-content:space-between;margin-bottom:var(--space-unit);white-space:nowrap}:host>article.expanded div.cover div.img-wrapper{border-radius:var(--border-radius)}:host>article.expanded div.cover div.img-wrapper img{width:100%}:host>article.expanded .title,:host>article.expanded .subtitle,:host>article.expanded .authors{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:initial}:host>article.expanded div.footer{border-top:var(--border-size-small) solid var(--color-surface03);margin-bottom:calc(var(--space-unit) * 1.5)}:host>article.expanded div.footer.open{padding-top:calc(var(--space-unit) * 1.5)}:host>article.expanded div.footer.open div.resources{display:initial}:host>article.expanded div.footer.close div.resources{display:none}:host>article.expanded button.show-resources{--z-icon-height:16px;--z-icon-width:16px;all:unset;display:flex;width:100%;flex-flow:row nowrap;align-content:center;align-items:center;justify-content:center;padding:calc(var(--space-unit) * 1) 0;color:var(--color-text-link-blue);cursor:pointer;fill:var(--color-text-link-blue);font-size:var(--font-size-2);font-weight:var(--font-sb);gap:var(--space-unit)}:host>article.expanded button.show-resources:focus{box-shadow:var(--shadow-focus-primary)}:host>article.search{width:262px;height:616px;padding:calc(var(--space-unit) * 2);padding-bottom:0}:host>article.search .wrapper-container{display:flex;height:100%;flex-direction:column;justify-content:space-between}:host>article.search .wrapper-container .wrapper{height:451px}:host>article.search .wrapper-container .action-container{padding-bottom:calc(var(--space-unit) * 2)}:host>article.search div.header{display:flex;height:24px;flex-flow:row nowrap;align-content:stretch;align-items:center;justify-content:space-between;margin-bottom:calc(var(--space-unit) * 1.5);white-space:nowrap}:host>article.search div.cover div.img-wrapper{height:314px;border-radius:var(--border-radius)}:host>article.search .title{display:block;height:initial;align-self:unset;font-size:var(--font-size-3)}:host>article.search .title,:host>article.search .subtitle,:host>article.search .authors{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host>article.compact{width:var(--z-book-card-compact-width);height:var(--z-book-card-compact-height)}:host>article.compact.borderless{border:none}:host>article.compact div.cover div.img-wrapper{width:100%;height:calc(var(--z-book-card-compact-width) * 1.36);box-sizing:border-box;border:none;background:var(--color-white);border-radius:var(--border-radius) var(--border-radius) 0 0;box-shadow:var(--shadow-2)}:host>article.compact div.wrapper{display:flex;height:100%;flex-flow:column nowrap;align-content:stretch;align-items:stretch;justify-content:flex-start}:host>article.compact div.content{display:flex;box-sizing:border-box;flex-flow:column nowrap;align-content:stretch;align-items:stretch;justify-content:space-between;padding:calc(var(--space-unit) * 2);padding-top:var(--space-unit);margin:0}:host>article.compact div.action-container{padding:calc(var(--space-unit) * 2);padding-top:0;margin-top:auto}:host>article.compact.borderless div.cover div.img-wrapper{width:var(--z-book-card-compact-width)}:host>article.compact.borderless div.content{padding:0;padding-top:var(--space-unit)}:host>article.compact.borderless div.action-container{padding:0;padding-bottom:calc(var(--space-unit) * 2)}:host>article.compact .title{display:block;height:initial;align-self:unset}:host>article.compact .title,:host>article.compact .subtitle,:host>article.compact .authors{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:initial}@media (min-width: 768px){:host>article{width:100%;max-width:initial}:host>article .title{display:block;height:initial;align-self:unset}:host>article.expanded{width:100%;min-width:initial;max-width:initial;height:360px;padding:0;border:0}:host>article.expanded div.wrapper{display:flex;flex-flow:row nowrap;align-content:stretch;align-items:stretch;justify-content:flex-start}:host>article.expanded div.cover div.img-wrapper{width:262px;height:356px;border:0;border:var(--border-size-medium) solid var(--color-surface03);border-right:none;background:var(--color-surface01);border-radius:var(--border-radius) 0 0 var(--border-radius)}:host>article.expanded div.cover div.img-wrapper img{width:auto;border-radius:0}:host>article.expanded div.content{display:flex;overflow:hidden;width:100%;height:356px;flex-flow:column nowrap;align-content:stretch;align-items:stretch;justify-content:space-between;border:var(--border-size-medium) solid var(--color-surface03);border-left:none;margin:0;background:var(--color-surface01);border-radius:0 var(--border-radius) var(--border-radius) 0}:host>article.expanded div.content div.top{padding:calc(var(--space-unit) * 2);padding-bottom:0}:host>article.expanded div.content div.top div.info{display:flex;flex-flow:row nowrap;align-content:stretch;align-items:stretch;justify-content:space-between;margin-bottom:calc(var(--space-unit) / 2)}:host>article.expanded div.content div.top div.info>div.left{width:100%}:host>article.expanded div.content div.bottom{padding:calc(var(--space-unit) * 2);padding-bottom:0}}@media (min-width: 1152px){:host>article{width:fit-content;max-width:initial}}@media (min-width: 1366px){:host>article.expanded{width:635px}:host>article.expanded div.content{width:369px}}";
|
|
11
|
+
|
|
12
|
+
const ZBookCardDeprecated = class {
|
|
13
|
+
constructor(hostRef) {
|
|
14
|
+
index.registerInstance(this, hostRef);
|
|
15
|
+
this.ribbonClick = index.createEvent(this, "ribbonClick", 7);
|
|
16
|
+
this.variant = undefined;
|
|
17
|
+
this.cover = undefined;
|
|
18
|
+
this.operaTitle = undefined;
|
|
19
|
+
this.volumeTitle = undefined;
|
|
20
|
+
this.authors = undefined;
|
|
21
|
+
this.isbn = undefined;
|
|
22
|
+
this.isbnLabel = "";
|
|
23
|
+
this.ribbon = undefined;
|
|
24
|
+
this.ribbonIcon = undefined;
|
|
25
|
+
this.ribbonInteractive = undefined;
|
|
26
|
+
this.borderless = undefined;
|
|
27
|
+
this.fallbackCover = undefined;
|
|
28
|
+
this.operaTitleTag = undefined;
|
|
29
|
+
this.isMobile = false;
|
|
30
|
+
this.hasResources = false;
|
|
31
|
+
this.showResources = false;
|
|
32
|
+
}
|
|
33
|
+
emitRibbonClick() {
|
|
34
|
+
this.ribbonClick.emit();
|
|
35
|
+
}
|
|
36
|
+
componentWillLoad() {
|
|
37
|
+
this.id = `id-${utils.randomId()}`;
|
|
38
|
+
const mobileMediaQuery = window.matchMedia(`(max-width: ${breakpoints.Breakpoints.MOBILE}px)`);
|
|
39
|
+
this.isMobile = mobileMediaQuery.matches;
|
|
40
|
+
mobileMediaQuery.onchange = (mql) => (this.isMobile = mql.matches);
|
|
41
|
+
}
|
|
42
|
+
componentDidLoad() {
|
|
43
|
+
this.handleResources();
|
|
44
|
+
}
|
|
45
|
+
handleResources() {
|
|
46
|
+
var _a;
|
|
47
|
+
if (this.variant !== index$1.BookCardDeprecatedVariant.EXPANDED || !this.isMobile) {
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
this.hasResources = ((_a = this.hostElement.querySelectorAll("[slot=resources]")) === null || _a === void 0 ? void 0 : _a.length) > 0;
|
|
51
|
+
}
|
|
52
|
+
toggleResources() {
|
|
53
|
+
this.showResources = !this.showResources;
|
|
54
|
+
}
|
|
55
|
+
renderCard() {
|
|
56
|
+
switch (this.variant) {
|
|
57
|
+
case index$1.BookCardDeprecatedVariant.EXPANDED:
|
|
58
|
+
return this.isMobile ? this.renderMobileExpandedCard() : this.renderExpandedCard();
|
|
59
|
+
case index$1.BookCardDeprecatedVariant.COMPACT:
|
|
60
|
+
return this.renderCompactCard();
|
|
61
|
+
case index$1.BookCardDeprecatedVariant.SEARCH:
|
|
62
|
+
return this.renderSearchCard();
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
renderExpandedCard() {
|
|
66
|
+
return (index.h("div", { class: "wrapper" }, this.renderCover(), index.h("div", { class: "content" }, index.h("div", { class: "top" }, index.h("div", { class: "info" }, index.h("div", { class: "left" }, this.renderAuthors(), this.renderOperaTitle(), this.renderVolumeTitle(), this.renderIsbn()), index.h("div", { class: "right" }, this.renderHeaderCtaSlot())), this.renderTagsSlot()), index.h("div", { class: "bottom" }, this.renderResourcesSlot()))));
|
|
67
|
+
}
|
|
68
|
+
renderMobileExpandedCard() {
|
|
69
|
+
return (index.h("div", { class: "wrapper" }, index.h("div", { class: "header" }, this.renderOperaTitle(), this.renderHeaderCtaSlot()), this.renderCover(), index.h("div", { class: "content" }, this.renderTagsSlot(), this.renderAuthors(), this.renderVolumeTitle(), this.renderIsbn()), this.hasResources && (index.h("div", { class: {
|
|
70
|
+
footer: true,
|
|
71
|
+
open: this.showResources,
|
|
72
|
+
close: !this.showResources,
|
|
73
|
+
} }, !this.showResources && this.renderShowResources(), this.renderResourcesSlot(), this.showResources && this.renderShowResources()))));
|
|
74
|
+
}
|
|
75
|
+
renderSearchCard() {
|
|
76
|
+
return (index.h("div", { class: "wrapper-container" }, index.h("div", { class: "wrapper" }, index.h("div", { class: "header" }, this.renderOperaTitle(), this.renderHeaderCtaSlot()), this.renderCover(), index.h("div", { class: "content" }, this.renderTagsSlot(), this.renderAuthors(), this.renderVolumeTitle(), this.renderIsbn())), this.renderFooterCtaSlot()));
|
|
77
|
+
}
|
|
78
|
+
renderCompactCard() {
|
|
79
|
+
return (index.h("div", { class: "wrapper" }, this.renderCover(), index.h("div", { class: "content" }, this.renderAuthors(), this.renderOperaTitle(), this.renderVolumeTitle(), this.renderIsbn()), this.renderFooterCtaSlot()));
|
|
80
|
+
}
|
|
81
|
+
renderCover() {
|
|
82
|
+
return (index.h("div", { class: "cover" }, this.ribbon && this.variant !== index$1.BookCardDeprecatedVariant.COMPACT && this.renderRibbon(), index.h("div", { class: "img-wrapper" }, index.h("img", { src: this.cover, onError: () => {
|
|
83
|
+
if (this.fallbackCover) {
|
|
84
|
+
this.cover = this.fallbackCover;
|
|
85
|
+
}
|
|
86
|
+
}, "aria-hidden": "true" }))));
|
|
87
|
+
}
|
|
88
|
+
renderRibbon() {
|
|
89
|
+
const content = [
|
|
90
|
+
this.ribbonIcon && (index.h("z-icon", { name: this.ribbonIcon, width: 16, height: 16, fill: "color-inverse-icon" })),
|
|
91
|
+
index.h("span", null, this.ribbon),
|
|
92
|
+
];
|
|
93
|
+
return this.ribbonInteractive ? (index.h("button", { class: "ribbon interactive", onClick: () => this.emitRibbonClick() }, content)) : (index.h("div", { class: "ribbon" }, content));
|
|
94
|
+
}
|
|
95
|
+
renderOperaTitle() {
|
|
96
|
+
const title = this.operaTitleTag
|
|
97
|
+
? `<${this.operaTitleTag}>${this.operaTitle}</${this.operaTitleTag}>`
|
|
98
|
+
: this.operaTitle;
|
|
99
|
+
return (index.h("div", { class: "title", innerHTML: title }));
|
|
100
|
+
}
|
|
101
|
+
renderVolumeTitle() {
|
|
102
|
+
return this.volumeTitle ? index.h("div", { class: "subtitle" }, this.volumeTitle) : null;
|
|
103
|
+
}
|
|
104
|
+
renderAuthors() {
|
|
105
|
+
return this.authors ? (index.h("div", { class: "authors", "aria-description": "Autori" }, this.authors)) : null;
|
|
106
|
+
}
|
|
107
|
+
renderIsbn() {
|
|
108
|
+
return this.isbn ? (index.h("div", { class: "isbn" }, index.h("span", { class: "code", "aria-description": `ISBN ${this.isbnLabel}` }, this.isbn), this.isbnLabel ? index.h("span", { class: "label" }, " ", this.isbnLabel) : null)) : null;
|
|
109
|
+
}
|
|
110
|
+
renderShowResources() {
|
|
111
|
+
return (index.h("button", { class: "show-resources", "aria-label": `Risorse del libro ${this.operaTitle}`, "aria-expanded": this.showResources.toString(), "aria-controls": `resources-${this.id}`, onClick: () => this.toggleResources() }, this.showResources ? "Chiudi" : "Vedi tutto", index.h("z-icon", { name: this.showResources ? "chevron-up" : "chevron-down" })));
|
|
112
|
+
}
|
|
113
|
+
renderTagsSlot() {
|
|
114
|
+
return (index.h("div", { class: "tags" }, index.h("slot", { name: "tags" })));
|
|
115
|
+
}
|
|
116
|
+
renderHeaderCtaSlot() {
|
|
117
|
+
return index.h("slot", { name: "header-cta" });
|
|
118
|
+
}
|
|
119
|
+
renderResourcesSlot() {
|
|
120
|
+
return (index.h("div", { id: `resources-${this.id}`, class: "resources" }, index.h("slot", { name: "resources", onSlotchange: () => this.handleResources() })));
|
|
121
|
+
}
|
|
122
|
+
renderFooterCtaSlot() {
|
|
123
|
+
return (index.h("div", { class: "action-container" }, index.h("slot", { name: "footer-cta" })));
|
|
124
|
+
}
|
|
125
|
+
render() {
|
|
126
|
+
return (index.h("article", { key: 'a2248d9206aec07d317dddb8cb8d6061eccc7a53', class: {
|
|
127
|
+
[this.variant]: true,
|
|
128
|
+
borderless: !!this.borderless,
|
|
129
|
+
} }, this.renderCard()));
|
|
130
|
+
}
|
|
131
|
+
get hostElement() { return index.getElement(this); }
|
|
132
|
+
};
|
|
133
|
+
ZBookCardDeprecated.style = stylesCss;
|
|
134
|
+
|
|
135
|
+
exports.z_book_card_deprecated = ZBookCardDeprecated;
|
|
@@ -2,124 +2,119 @@
|
|
|
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 breakpoints = require('./breakpoints-e7c8838e.js');
|
|
8
|
-
const utils = require('./utils-43a3deb6.js');
|
|
5
|
+
const index = require('./index-48ad79ef.js');
|
|
6
|
+
const index$1 = require('./index-f043c44c.js');
|
|
9
7
|
|
|
10
|
-
const stylesCss = ":host{
|
|
8
|
+
const stylesCss = ":host{display:block;max-width:fit-content;border-radius:var(--border-radius)}:host>article{width:304px;min-height:686px;box-sizing:border-box;padding:var(--space-unit) 0;border:solid var(--border-size-medium) var(--color-surface03);background-color:var(--color-surface01);border-radius:var(--border-radius);color:var(--color-default-text);font-family:var(--font-family-sans)}:host>article .main-content{display:flex;flex-direction:column;gap:calc(var(--space-unit) * 2)}:host>article .main-content .cover{display:flex;overflow:hidden;height:378px;margin:0 var(--space-unit);border-radius:var(--border-radius)}:host>article .main-content .cover img{max-width:100%;max-height:100%;align-self:end}:host>article .main-content .card-info{display:flex;flex:1;flex-direction:column;justify-content:space-between;gap:calc(var(--space-unit) * 2)}:host>article .main-content .card-info .book-data{display:flex;flex:1;flex-direction:column;justify-content:space-between;margin:0 var(--space-unit);gap:var(--space-unit)}:host>article .main-content .card-info .book-data .authors-title-cta-section{display:grid;column-gap:var(--space-unit);grid-template-areas:\"authors authors\"\n \"title cta\";grid-template-columns:auto 24px}:host>article .main-content .card-info .book-data .authors-title-cta-section .authors{display:-webkit-box;overflow:hidden;height:20px;margin-bottom:calc(var(--space-unit) / 2);-webkit-box-orient:vertical;grid-area:authors;-webkit-line-clamp:1;line-clamp:1;text-overflow:ellipsis;word-break:break-all}:host>article .main-content .card-info .book-data .authors-title-cta-section .opera-title{display:-webkit-box;overflow:hidden;height:54px;-webkit-box-orient:vertical;grid-area:title;-webkit-line-clamp:2;line-clamp:2;text-overflow:ellipsis}:host>article .main-content .card-info .book-data .authors-title-cta-section .opera-title *{all:unset}:host>article .main-content .card-info .book-data .isbn-tags-link-section .isbn-tags-section{margin-bottom:var(--space-unit)}:host>article .main-content .card-info .book-data .isbn-tags-link-section .isbn-tags-section .volume-title{display:-webkit-box;overflow:hidden;height:20px;-webkit-box-orient:vertical;-webkit-line-clamp:1;line-clamp:1;text-overflow:ellipsis;word-break:break-all}:host>article .main-content .card-info .book-data .isbn-tags-link-section .isbn-tags-section .isbn{display:-webkit-box;overflow:hidden;height:20px;-webkit-box-orient:vertical;-webkit-line-clamp:1;line-clamp:1;text-overflow:ellipsis;word-break:break-all}:host>article .main-content .card-info .book-data .isbn-tags-link-section .isbn-tags-section .tags{display:flex;overflow:hidden;height:22px;flex-flow:wrap;align-items:center;padding:var(--space-unit);margin:calc(calc(var(--space-unit) / 2) * -1) calc(var(--space-unit) * -1) 0;gap:var(--space-unit)}:host>article .main-content .card-info .book-data .isbn-tags-link-section .isbn-tags-section .tags z-tag.active{--z-tag-bg:var(--color-primary03);--z-tag-text-color:var(--color-default-text)}:host>article .main-content .card-info .book-data .isbn-tags-link-section .isbn-tags-section .tags z-tag.disabled{--z-tag-bg:var(--color-surface03);--z-tag-text-color:var(--color-default-text)}:host>article .main-content .card-info .book-data .isbn-tags-link-section .isbn-tags-section .tags z-tag.interactive{cursor:pointer}:host>article .main-content .card-info .book-data .isbn-tags-link-section .isbn-tags-section .tags z-tag:focus{box-shadow:var(--shadow-focus-primary);outline:none}:host>article .main-content .card-info .book-data .isbn-tags-link-section .link-section{display:flex;height:24px;align-items:center;justify-content:space-between;gap:var(--space-unit)}:host>article .main-content .card-info .book-data .isbn-tags-link-section .link-section .adoption-tag{padding:calc(var(--space-unit) / 2) var(--space-unit);background-color:var(--green100);border-radius:100px;text-transform:uppercase}:host>article .main-content .card-info .ebook-container{height:64px}:host>article .main-content .card-info .ebook-container .ebook{display:flex;align-items:center;justify-content:space-between;padding:calc(var(--space-unit) * 2) var(--space-unit);background-color:var(--color-primary02);border-radius:var(--border-radius);gap:var(--space-unit)}:host>article .main-content .card-info .ebook-container .ebook .app-name{display:flex;align-items:center;padding:calc(var(--space-unit) / 2) 0;font-family:var(--font-family-serif);gap:calc(var(--space-unit) / 2)}:host>article .main-content .card-info .ebook-container .ebook .app-name .ebook-logo{content:url(\"data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2220%22 height=%2220%22 viewBox=%220 0 20 20%22 fill=%22none%22 aria-hidden=%22true%22%3E%3Cg clip-path=%22url(%23clip0_11996_224)%22%3E%3Cpath d=%22M14.6644 0.469604H5.00141C2.33305 0.469604 0.169922 2.63274 0.169922 5.3011V14.9641C0.169922 17.6324 2.33305 19.7956 5.00141 19.7956H14.6644C17.3328 19.7956 19.4959 17.6324 19.4959 14.9641V5.3011C19.4959 2.63274 17.3328 0.469604 14.6644 0.469604Z%22 fill=%22%23E2011A%22/%3E%3Cpath d=%22M15.9523 13.3536H12.7313C11.6861 13.3536 10.6683 13.6934 9.83241 14.3199C8.99657 13.6934 7.97873 13.3536 6.93352 13.3536H3.71252V5.30115H6.93352C7.97873 5.30115 8.99657 5.64096 9.83241 6.26745C10.6683 5.64096 11.6861 5.30115 12.7313 5.30115H15.9523V13.3536Z%22 fill=%22white%22/%3E%3Cpath d=%22M15.9523 14.3201H3.71252V14.9643H15.9523V14.3201Z%22 fill=%22black%22/%3E%3Cpath d=%22M8.22229 10.732V8.24543C8.22229 7.97165 8.51057 7.79449 8.75375 7.91689L11.2404 9.16019C11.5109 9.29548 11.5109 9.682 11.2404 9.81728L8.75375 11.0606C8.50896 11.183 8.22229 11.0058 8.22229 10.732Z%22 fill=%22black%22/%3E%3Cpath d=%22M4.35704 7.87826C5.42438 7.87826 6.28963 7.013 6.28963 5.94566C6.28963 4.87831 5.42438 4.01306 4.35704 4.01306C3.28969 4.01306 2.42444 4.87831 2.42444 5.94566C2.42444 7.013 3.28969 7.87826 4.35704 7.87826Z%22 fill=%22black%22/%3E%3Cpath d=%22M5.6454 5.62354H3.0686V6.26773H5.6454V5.62354Z%22 fill=%22white%22/%3E%3Cpath d=%22M4.67917 4.65723H4.03497V7.23402H4.67917V4.65723Z%22 fill=%22white%22/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id=%22clip0_11996_224%22%3E%3Crect width=%2219.326%22 height=%2219.326%22 fill=%22white%22 transform=%22translate(0.169922 0.469604)%22/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E\")}:host>article .main-content .card-info .ebook-container .ebook .app-name .laz{color:var(--red500)}::slotted([slot=\"cta\"]){grid-area:cta}:host>article.landscape{width:635px;min-height:332px;max-height:428px;padding:0}:host>article.landscape .main-content{height:296px;flex-direction:row;padding:calc(var(--space-unit) * 2)}:host>article.landscape .main-content .cover{display:flex;overflow:hidden;width:221px;height:auto;margin:0}:host>article.landscape .main-content .card-info .book-data{margin:0;gap:unset}:host>article.landscape .main-content .card-info .book-data .authors-title-cta-section{column-gap:calc(var(--space-unit) * 2);grid-template-areas:\"authors cta\"\n \"title title\"}:host>article.landscape .main-content .card-info .book-data .isbn-tags-link-section .isbn-tags-section .tags{margin:calc(calc(var(--space-unit) / 2) * -1) calc(var(--space-unit) * -1)}:host>article.landscape .main-content .card-info .ebook-container{height:76px}:host>article.landscape .main-content .card-info .ebook-container .ebook{padding:var(--space-unit)}";
|
|
11
9
|
|
|
12
10
|
const ZBookCard = class {
|
|
13
11
|
constructor(hostRef) {
|
|
14
12
|
index.registerInstance(this, hostRef);
|
|
15
|
-
this.
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
this.tagClick = index.createEvent(this, "tagClick", 7);
|
|
14
|
+
this.catalogClick = index.createEvent(this, "catalogClick", 7);
|
|
15
|
+
this.ebookClick = index.createEvent(this, "ebookClick", 7);
|
|
16
|
+
this.immersiveReaderClick = index.createEvent(this, "immersiveReaderClick", 7);
|
|
17
|
+
this.variant = index$1.BookCardVariant.PORTRAIT;
|
|
18
|
+
this.cover = undefined;
|
|
19
|
+
this.authors = undefined;
|
|
20
|
+
this.operaTitle = undefined;
|
|
21
|
+
this.volumeTitle = undefined;
|
|
22
|
+
this.isbn = undefined;
|
|
19
23
|
this.isbnLabel = "";
|
|
20
|
-
this.
|
|
21
|
-
this.
|
|
22
|
-
this.
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
this.
|
|
24
|
+
this.edi = undefined;
|
|
25
|
+
this.annotated = undefined;
|
|
26
|
+
this.teacherVersion = undefined;
|
|
27
|
+
this.adoption = false;
|
|
28
|
+
this.catalogUrl = undefined;
|
|
29
|
+
this.ebookUrl = undefined;
|
|
30
|
+
this.fallbackCover = undefined;
|
|
31
|
+
this.operaTitleHtmlTag = undefined;
|
|
32
|
+
this.ediTag = undefined;
|
|
33
|
+
this.annotatedTag = undefined;
|
|
34
|
+
this.teacherVersionTag = undefined;
|
|
35
|
+
}
|
|
36
|
+
watchEdi() {
|
|
37
|
+
this.ediTag = typeof this.edi === "string" ? JSON.parse(this.edi) : this.edi;
|
|
38
|
+
}
|
|
39
|
+
watchAnnotated() {
|
|
40
|
+
this.annotatedTag = typeof this.annotated === "string" ? JSON.parse(this.annotated) : this.annotated;
|
|
41
|
+
}
|
|
42
|
+
watchTeacherVersion() {
|
|
43
|
+
this.teacherVersionTag =
|
|
44
|
+
typeof this.teacherVersion === "string" ? JSON.parse(this.teacherVersion) : this.teacherVersion;
|
|
26
45
|
}
|
|
27
46
|
componentWillLoad() {
|
|
28
|
-
this.
|
|
29
|
-
|
|
30
|
-
this.
|
|
31
|
-
mobileMediaQuery.onchange = (mql) => (this.isMobile = mql.matches);
|
|
32
|
-
}
|
|
33
|
-
componentDidLoad() {
|
|
34
|
-
this.handleResources();
|
|
35
|
-
}
|
|
36
|
-
handleResources() {
|
|
37
|
-
var _a;
|
|
38
|
-
if (this.variant !== index$1.BookCardVariant.EXPANDED || !this.isMobile) {
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
41
|
-
this.hasResources = ((_a = this.hostElement.querySelectorAll("[slot=resources]")) === null || _a === void 0 ? void 0 : _a.length) > 0;
|
|
42
|
-
}
|
|
43
|
-
toggleResources() {
|
|
44
|
-
this.showResources = !this.showResources;
|
|
47
|
+
this.watchEdi();
|
|
48
|
+
this.watchAnnotated();
|
|
49
|
+
this.watchTeacherVersion();
|
|
45
50
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
case index$1.BookCardVariant.EXPANDED:
|
|
49
|
-
return this.isMobile ? this.renderMobileExpandedCard() : this.renderExpandedCard();
|
|
50
|
-
case index$1.BookCardVariant.COMPACT:
|
|
51
|
-
return this.renderCompactCard();
|
|
52
|
-
case index$1.BookCardVariant.SEARCH:
|
|
53
|
-
return this.renderSearchCard();
|
|
54
|
-
}
|
|
51
|
+
emitTagClick(e) {
|
|
52
|
+
this.tagClick.emit(e);
|
|
55
53
|
}
|
|
56
|
-
|
|
57
|
-
|
|
54
|
+
emitCatalogClick() {
|
|
55
|
+
this.catalogClick.emit();
|
|
58
56
|
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
footer: true,
|
|
62
|
-
open: this.showResources,
|
|
63
|
-
close: !this.showResources,
|
|
64
|
-
} }, !this.showResources && this.renderShowResources(), this.renderResourcesSlot(), this.showResources && this.renderShowResources()))));
|
|
57
|
+
emitEbookClick() {
|
|
58
|
+
this.ebookClick.emit();
|
|
65
59
|
}
|
|
66
|
-
|
|
67
|
-
|
|
60
|
+
emitImmersiveReaderClick() {
|
|
61
|
+
this.immersiveReaderClick.emit();
|
|
68
62
|
}
|
|
69
|
-
|
|
70
|
-
|
|
63
|
+
renderOperaTitle() {
|
|
64
|
+
const title = this.operaTitleHtmlTag
|
|
65
|
+
? `<${this.operaTitleHtmlTag}>${this.operaTitle}</${this.operaTitleHtmlTag}>`
|
|
66
|
+
: this.operaTitle;
|
|
67
|
+
return (index.h("div", { class: "opera-title body-2-sb", innerHTML: title }));
|
|
68
|
+
}
|
|
69
|
+
renderIsbnLabel() {
|
|
70
|
+
return this.isbnLabel ? index.h("span", { class: "body-4" }, this.isbnLabel) : null;
|
|
71
|
+
}
|
|
72
|
+
renderTag(label, tag, id) {
|
|
73
|
+
return (index.h("z-tag", { class: { [tag.status]: true, interactive: tag.interactive }, role: tag.interactive ? "button" : undefined, tabIndex: tag.interactive ? 0 : undefined, onClick: () => tag.interactive &&
|
|
74
|
+
this.emitTagClick({
|
|
75
|
+
tag: id,
|
|
76
|
+
state: tag.status,
|
|
77
|
+
}), onKeyUp: (e) => tag.interactive &&
|
|
78
|
+
e.key === "Enter" &&
|
|
79
|
+
this.emitTagClick({
|
|
80
|
+
tag: id,
|
|
81
|
+
state: tag.status,
|
|
82
|
+
}) }, label));
|
|
83
|
+
}
|
|
84
|
+
renderTags() {
|
|
85
|
+
const tags = [];
|
|
86
|
+
if (this.edi && Object.values(index$1.BookCardTagStatus).includes(this.ediTag.status)) {
|
|
87
|
+
tags.push(this.renderTag("edi", this.ediTag, "edi"));
|
|
88
|
+
}
|
|
89
|
+
if (this.annotated && Object.values(index$1.BookCardTagStatus).includes(this.annotatedTag.status)) {
|
|
90
|
+
tags.push(this.renderTag("annotata", this.annotatedTag, "annotated"));
|
|
91
|
+
}
|
|
92
|
+
if (this.teacherVersion && Object.values(index$1.BookCardTagStatus).includes(this.teacherVersionTag.status)) {
|
|
93
|
+
tags.push(this.renderTag("versione insegnante", this.teacherVersionTag, "teacherVersion"));
|
|
94
|
+
}
|
|
95
|
+
if (tags.length > 0) {
|
|
96
|
+
return tags;
|
|
97
|
+
}
|
|
98
|
+
return null;
|
|
71
99
|
}
|
|
72
100
|
renderCover() {
|
|
73
|
-
return (index.h("div", { class: "cover" },
|
|
101
|
+
return (index.h("div", { class: "cover" }, index.h("img", { src: this.cover, onError: () => {
|
|
74
102
|
if (this.fallbackCover) {
|
|
75
103
|
this.cover = this.fallbackCover;
|
|
76
104
|
}
|
|
77
|
-
}, "aria-hidden": "true" })))
|
|
78
|
-
}
|
|
79
|
-
renderRibbon() {
|
|
80
|
-
const content = [
|
|
81
|
-
this.ribbonIcon && (index.h("z-icon", { name: this.ribbonIcon, width: 16, height: 16, fill: "color-icon03" })),
|
|
82
|
-
index.h("span", null, this.ribbon),
|
|
83
|
-
];
|
|
84
|
-
return this.ribbonInteractive ? (index.h("button", { class: "ribbon interactive", onClick: () => this.emitRibbonClick() }, content)) : (index.h("div", { class: "ribbon" }, content));
|
|
85
|
-
}
|
|
86
|
-
renderOperaTitle() {
|
|
87
|
-
const title = this.operaTitleTag
|
|
88
|
-
? `<${this.operaTitleTag}>${this.operaTitle}</${this.operaTitleTag}>`
|
|
89
|
-
: this.operaTitle;
|
|
90
|
-
return (index.h("div", { class: "title", innerHTML: title }));
|
|
91
|
-
}
|
|
92
|
-
renderVolumeTitle() {
|
|
93
|
-
return this.volumeTitle ? index.h("div", { class: "subtitle" }, this.volumeTitle) : null;
|
|
94
|
-
}
|
|
95
|
-
renderAuthors() {
|
|
96
|
-
return this.authors ? (index.h("div", { class: "authors", "aria-description": "Autori" }, this.authors)) : null;
|
|
97
|
-
}
|
|
98
|
-
renderIsbn() {
|
|
99
|
-
return this.isbn ? (index.h("div", { class: "isbn" }, index.h("span", { class: "code", "aria-description": `ISBN ${this.isbnLabel}` }, this.isbn), this.isbnLabel ? index.h("span", { class: "label" }, " ", this.isbnLabel) : null)) : null;
|
|
100
|
-
}
|
|
101
|
-
renderShowResources() {
|
|
102
|
-
return (index.h("button", { class: "show-resources", "aria-label": `Risorse del libro ${this.operaTitle}`, "aria-expanded": this.showResources.toString(), "aria-controls": `resources-${this.id}`, onClick: () => this.toggleResources() }, this.showResources ? "Chiudi" : "Vedi tutto", index.h("z-icon", { name: this.showResources ? "chevron-up" : "chevron-down" })));
|
|
103
|
-
}
|
|
104
|
-
renderTagsSlot() {
|
|
105
|
-
return (index.h("div", { class: "tags" }, index.h("slot", { name: "tags" })));
|
|
106
|
-
}
|
|
107
|
-
renderHeaderCtaSlot() {
|
|
108
|
-
return index.h("slot", { name: "header-cta" });
|
|
109
|
-
}
|
|
110
|
-
renderResourcesSlot() {
|
|
111
|
-
return (index.h("div", { id: `resources-${this.id}`, class: "resources" }, index.h("slot", { name: "resources", onSlotchange: () => this.handleResources() })));
|
|
112
|
-
}
|
|
113
|
-
renderFooterCtaSlot() {
|
|
114
|
-
return (index.h("div", { class: "action-container" }, index.h("slot", { name: "footer-cta" })));
|
|
105
|
+
}, "aria-hidden": "true" })));
|
|
115
106
|
}
|
|
116
107
|
render() {
|
|
117
|
-
return (index.h("article", { class: {
|
|
108
|
+
return (index.h("article", { key: 'a2b8d8a72f3868b6e846e552aa6b48012334b15b', class: {
|
|
118
109
|
[this.variant]: true,
|
|
119
|
-
|
|
120
|
-
} }, this.renderCard()));
|
|
110
|
+
} }, index.h("div", { key: '24c08d9d84dc669395b1c255f6730a7a9d536886', class: "main-content" }, this.renderCover(), index.h("div", { key: '91389d7afb5971377c098cf8fb2dee3c870e870c', class: "card-info" }, index.h("div", { key: '3802460d92d4324c032ec3de0b978ce346b46827', class: "book-data" }, index.h("div", { key: 'e901801f93e778721b5def9c2cea89e4ae86a500', class: "authors-title-cta-section" }, index.h("div", { key: '44367ab6d0cdbe447133018b5dc3a6b77c6a6a51', class: "authors body-4", "aria-description": "autori" }, this.authors), this.renderOperaTitle(), index.h("slot", { key: '50b0ac7e8dfbc13601e9e89077b8f42345af6633', name: "cta" })), index.h("div", { key: '8a537e6ceb34a39ff9b0c2402e0d0a8ca09fda36', class: "isbn-tags-link-section" }, index.h("div", { key: '8fe9ab44fe6023b1c4239a0df7af05b93d9e6684', class: "isbn-tags-section" }, index.h("div", { key: '718d0984d6b8b856e784ba910327a91b160b915e', class: "volume-title body-4" }, this.volumeTitle), index.h("div", { key: 'db66e0b7d648cae395ed29eb010d568a181f5544', class: "isbn body-4-sb", "aria-description": `isbn ${this.isbnLabel}` }, this.isbn, " ", this.renderIsbnLabel()), index.h("div", { key: '70aeccbe9e186547b4b750a99e5509c2efa927d4', class: "tags" }, this.renderTags())), index.h("div", { key: '6764f5d95bf2ebf570087bb625bbda046578549a', class: "link-section" }, index.h("div", { key: '07bca683d50d1c8982b1904f856b37acbb2a94bd', class: "catalog-link" }, this.catalogUrl && (index.h("a", { key: '6faca33c8d1f2173135105befc9b4fbee5855c52', href: this.catalogUrl, target: "_blank", class: "z-link z-link-blue z-link-icon body-4-sb", onClick: () => this.emitCatalogClick() }, "Scheda catalogo", index.h("z-icon", { key: '22cddd865dddf80e9a650a607ce6d64ca6d948f9', name: "arrow-quad-north-east", height: 16, width: 16, fill: "color-primary01-icon" })))), this.adoption && index.h("div", { key: '995c42cf714d22b150e8e02a6268cef1d3574541', class: "adoption-tag body-5-sb" }, "adottato")))), index.h("div", { key: '6fc66aefd3283743ec694bada263ffd8983b7eb8', class: "ebook-container" }, index.h("slot", { key: 'd9abf1a8dc88aaea97f71c549494e659429ee8a2', name: "ebook" }, this.ebookUrl && (index.h("div", { key: '908353624cc50d5c8aea7e8c57f99e377a179fca', class: "ebook" }, index.h("div", { key: 'f0958bbf194b6fb6feed8fcc6ab9505706d15010' }, index.h("div", { key: '3db12530a458250e7307fd9d33eb48e1f3cc8d18', class: "app-name" }, index.h("img", { key: 'ada52e2efaa84e29e8ba790572a88ee3b4b23166', class: "ebook-logo", "aria-hidden": "true" }), index.h("div", { key: '9c56a0a269f6b41486ea4e88482f2e160a381f47', class: "body-4-sb" }, index.h("span", { key: 'db6def7b5672dc9877711e275ebee9a8fece0e82', class: "laz" }, "laZ"), " Ebook")), this.variant === index$1.BookCardVariant.LANDSCAPE && (index.h("div", { key: '5daa3a7f9a261c189387e13d6b41d8bbb5db4c63', class: "body-5" }, "Anche nella versione libro liquido con", " ", index.h("button", { key: '1e5359de3842dd1d609aef58b7dfa9d64ca13692', class: "body-5-sb immersive-reader z-link", onClick: () => this.emitImmersiveReaderClick(), tabIndex: 0 }, "strumento di lettura immersiva")))), index.h("z-button", { key: 'b4f8f376351891c9ff4ef1ee13f6afb26e24713d', size: index$1.ControlSize.X_SMALL, href: this.ebookUrl, target: "_blank", onClick: () => this.emitEbookClick(), role: "link", "aria-description": `leggi l'ebook ${this.operaTitle} su laZ Ebook` }, "leggi ebook"))))))), index.h("slot", { key: '98f64442f263ad3bb1f596d87194b78dc091e782', name: "apps" })));
|
|
121
111
|
}
|
|
122
112
|
get hostElement() { return index.getElement(this); }
|
|
113
|
+
static get watchers() { return {
|
|
114
|
+
"edi": ["watchEdi"],
|
|
115
|
+
"annotated": ["watchAnnotated"],
|
|
116
|
+
"teacherVersion": ["watchTeacherVersion"]
|
|
117
|
+
}; }
|
|
123
118
|
};
|
|
124
119
|
ZBookCard.style = stylesCss;
|
|
125
120
|
|