@zanichelli/albe-web-components 2.40.0 → 2.40.1
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/CHANGELOG.md +2 -0
- package/dist/cjs/{index-25206491.js → index-6b11e272.js} +10 -10
- package/dist/cjs/{index-e826b4ad.js → index-dee3e21d.js} +0 -3
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{utils-6410fc7d.js → utils-428c57eb.js} +3 -3
- package/dist/cjs/web-components-library.cjs.js +2 -2
- package/dist/cjs/z-alert.cjs.entry.js +1 -1
- package/dist/cjs/z-app-header.cjs.entry.js +1 -1
- package/dist/cjs/z-app-switcher_10.cjs.entry.js +353 -0
- package/dist/cjs/z-aria-alert.cjs.entry.js +2 -2
- package/dist/cjs/z-avatar.cjs.entry.js +2 -2
- package/dist/cjs/z-body_2.cjs.entry.js +1 -1
- package/dist/cjs/z-button-filter_5.cjs.entry.js +3 -3
- package/dist/cjs/z-button-sort.cjs.entry.js +1 -1
- package/dist/cjs/z-candybar.cjs.entry.js +1 -1
- package/dist/cjs/z-chip.cjs.entry.js +2 -2
- package/dist/cjs/z-combobox.cjs.entry.js +3 -3
- package/dist/cjs/z-contextual-menu.cjs.entry.js +2 -2
- package/dist/cjs/z-cookiebar.cjs.entry.js +2 -2
- package/dist/cjs/z-footer-link_3.cjs.entry.js +1 -1
- package/dist/cjs/z-footer.cjs.entry.js +2 -2
- package/dist/cjs/z-ghost-loading.cjs.entry.js +1 -1
- package/dist/cjs/z-heading.cjs.entry.js +17 -0
- package/dist/cjs/z-icon-package.cjs.entry.js +1 -1
- package/dist/cjs/z-info-box.cjs.entry.js +1 -1
- package/dist/cjs/z-list_3.cjs.entry.js +2 -2
- package/dist/cjs/z-menu-dropdown_2.cjs.entry.js +3 -3
- package/dist/cjs/z-menu-section.cjs.entry.js +1 -1
- package/dist/cjs/z-menu.cjs.entry.js +1 -1
- package/dist/cjs/z-messages-pocket.cjs.entry.js +2 -2
- package/dist/cjs/z-modal-login.cjs.entry.js +2 -2
- package/dist/cjs/z-modal.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-alert.cjs.entry.js +2 -2
- package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +2 -2
- package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-footer.cjs.entry.js +2 -2
- package/dist/cjs/z-myz-card-icon.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-info.cjs.entry.js +3 -3
- package/dist/cjs/z-myz-card-list.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card_4.cjs.entry.js +2 -2
- package/dist/cjs/z-myz-list-item.cjs.entry.js +3 -3
- package/dist/cjs/z-myz-topbar.cjs.entry.js +2 -2
- package/dist/cjs/z-navigation-tab.cjs.entry.js +1 -1
- package/dist/cjs/z-navigation-tabs.cjs.entry.js +2 -2
- package/dist/cjs/z-notification.cjs.entry.js +2 -2
- package/dist/cjs/z-otp.cjs.entry.js +2 -2
- package/dist/cjs/z-pagination-bar.cjs.entry.js +3 -3
- package/dist/cjs/z-pagination-page.cjs.entry.js +1 -1
- package/dist/cjs/z-panel-elem.cjs.entry.js +1 -1
- package/dist/cjs/z-pocket-message.cjs.entry.js +1 -1
- package/dist/cjs/z-pocket_3.cjs.entry.js +3 -3
- package/dist/cjs/z-popover.cjs.entry.js +3 -3
- package/dist/cjs/z-slideshow.cjs.entry.js +3 -3
- package/dist/cjs/z-status-tag.cjs.entry.js +2 -2
- package/dist/cjs/z-stepper-item.cjs.entry.js +1 -1
- package/dist/cjs/z-stepper.cjs.entry.js +1 -1
- package/dist/cjs/z-table-body.cjs.entry.js +1 -1
- package/dist/cjs/z-table-cell.cjs.entry.js +2 -2
- package/dist/cjs/z-table-empty-box.cjs.entry.js +1 -1
- package/dist/cjs/z-table-expanded-row.cjs.entry.js +1 -1
- package/dist/cjs/z-table-footer.cjs.entry.js +1 -1
- package/dist/cjs/z-table-head.cjs.entry.js +1 -1
- package/dist/cjs/z-table-header-row.cjs.entry.js +1 -1
- package/dist/cjs/z-table-header.cjs.entry.js +3 -3
- package/dist/cjs/z-table-row.cjs.entry.js +2 -2
- package/dist/cjs/z-table-sticky-footer.cjs.entry.js +1 -1
- package/dist/cjs/z-table.cjs.entry.js +2 -2
- package/dist/cjs/z-toast-notification-list.cjs.entry.js +2 -2
- package/dist/cjs/z-toast-notification.cjs.entry.js +2 -2
- package/dist/cjs/z-toggle-button.cjs.entry.js +1 -1
- package/dist/cjs/z-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/z-user-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/z-visually-hidden.cjs.entry.js +1 -1
- package/dist/collection/beans/index.js +10 -10
- package/dist/collection/collection-manifest.json +1 -4
- package/dist/collection/components/buttons/z-button/index.js +1 -2
- package/dist/collection/components/z-offcanvas/index.js +147 -0
- package/dist/collection/components/z-offcanvas/styles.css +163 -0
- package/dist/collection/utils/utils.js +2 -2
- package/dist/esm/{index-cca2b0d2.js → index-9d70864c.js} +11 -11
- package/dist/esm/{index-8782dff4.js → index-fa9e549c.js} +0 -3
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{utils-cdd5a909.js → utils-347de6f5.js} +3 -3
- package/dist/esm/web-components-library.js +2 -2
- package/dist/esm/z-alert.entry.js +1 -1
- package/dist/esm/z-app-header.entry.js +1 -1
- package/dist/esm/z-app-switcher_10.entry.js +340 -0
- package/dist/esm/z-aria-alert.entry.js +2 -2
- package/dist/esm/z-avatar.entry.js +2 -2
- package/dist/esm/z-body_2.entry.js +1 -1
- package/dist/esm/z-button-filter_5.entry.js +3 -3
- package/dist/esm/z-button-sort.entry.js +1 -1
- package/dist/esm/z-candybar.entry.js +1 -1
- package/dist/esm/z-chip.entry.js +2 -2
- package/dist/esm/z-combobox.entry.js +3 -3
- package/dist/esm/z-contextual-menu.entry.js +2 -2
- package/dist/esm/z-cookiebar.entry.js +2 -2
- package/dist/esm/z-footer-link_3.entry.js +1 -1
- package/dist/esm/z-footer.entry.js +2 -2
- package/dist/esm/z-ghost-loading.entry.js +1 -1
- package/dist/esm/z-heading.entry.js +13 -0
- package/dist/esm/z-icon-package.entry.js +1 -1
- package/dist/esm/z-info-box.entry.js +1 -1
- package/dist/esm/z-list_3.entry.js +2 -2
- package/dist/esm/z-menu-dropdown_2.entry.js +3 -3
- package/dist/esm/z-menu-section.entry.js +1 -1
- package/dist/esm/z-menu.entry.js +1 -1
- package/dist/esm/z-messages-pocket.entry.js +2 -2
- package/dist/esm/z-modal-login.entry.js +2 -2
- package/dist/esm/z-modal.entry.js +1 -1
- package/dist/esm/z-myz-card-alert.entry.js +2 -2
- package/dist/esm/z-myz-card-dictionary.entry.js +2 -2
- package/dist/esm/z-myz-card-footer-sections.entry.js +1 -1
- package/dist/esm/z-myz-card-footer.entry.js +2 -2
- package/dist/esm/z-myz-card-icon.entry.js +1 -1
- package/dist/esm/z-myz-card-info.entry.js +3 -3
- package/dist/esm/z-myz-card-list.entry.js +1 -1
- package/dist/esm/z-myz-card_4.entry.js +2 -2
- package/dist/esm/z-myz-list-item.entry.js +3 -3
- package/dist/esm/z-myz-topbar.entry.js +2 -2
- package/dist/esm/z-navigation-tab.entry.js +1 -1
- package/dist/esm/z-navigation-tabs.entry.js +2 -2
- package/dist/esm/z-notification.entry.js +2 -2
- package/dist/esm/z-otp.entry.js +2 -2
- package/dist/esm/z-pagination-bar.entry.js +3 -3
- package/dist/esm/z-pagination-page.entry.js +1 -1
- package/dist/esm/z-panel-elem.entry.js +1 -1
- package/dist/esm/z-pocket-message.entry.js +1 -1
- package/dist/esm/z-pocket_3.entry.js +3 -3
- package/dist/esm/z-popover.entry.js +3 -3
- package/dist/esm/z-slideshow.entry.js +3 -3
- package/dist/esm/z-status-tag.entry.js +2 -2
- package/dist/esm/z-stepper-item.entry.js +1 -1
- package/dist/esm/z-stepper.entry.js +1 -1
- package/dist/esm/z-table-body.entry.js +1 -1
- package/dist/esm/z-table-cell.entry.js +2 -2
- package/dist/esm/z-table-empty-box.entry.js +1 -1
- package/dist/esm/z-table-expanded-row.entry.js +1 -1
- package/dist/esm/z-table-footer.entry.js +1 -1
- package/dist/esm/z-table-head.entry.js +1 -1
- package/dist/esm/z-table-header-row.entry.js +1 -1
- package/dist/esm/z-table-header.entry.js +3 -3
- package/dist/esm/z-table-row.entry.js +2 -2
- package/dist/esm/z-table-sticky-footer.entry.js +1 -1
- package/dist/esm/z-table.entry.js +2 -2
- package/dist/esm/z-toast-notification-list.entry.js +2 -2
- package/dist/esm/z-toast-notification.entry.js +2 -2
- package/dist/esm/z-toggle-button.entry.js +1 -1
- package/dist/esm/z-tooltip.entry.js +2 -2
- package/dist/esm/z-user-dropdown.entry.js +1 -1
- package/dist/esm/z-visually-hidden.entry.js +1 -1
- package/dist/types/beans/index.d.ts +8 -8
- package/dist/types/components/buttons/z-button/index.d.ts +1 -2
- package/dist/types/components/z-offcanvas/index.d.ts +25 -0
- package/dist/types/components.d.ts +42 -124
- package/dist/web-components-library/index.esm.js +1 -1
- package/dist/web-components-library/{p-95b95a4c.entry.js → p-017ddee6.entry.js} +1 -1
- package/dist/web-components-library/{p-a73f0693.entry.js → p-01a920d1.entry.js} +1 -1
- package/dist/web-components-library/{p-99f91860.entry.js → p-0ce6293a.entry.js} +1 -1
- package/dist/web-components-library/{p-68fab13e.entry.js → p-1094e4de.entry.js} +1 -1
- package/dist/web-components-library/{p-daec8d7f.entry.js → p-1231efbf.entry.js} +1 -1
- package/dist/web-components-library/{p-7dcda694.entry.js → p-140cc18f.entry.js} +1 -1
- package/dist/web-components-library/{p-a5460f1e.entry.js → p-15b45bd6.entry.js} +1 -1
- package/dist/web-components-library/{p-1c66e50c.entry.js → p-1879f46c.entry.js} +1 -1
- package/dist/web-components-library/{p-cddc1de0.entry.js → p-1c72783c.entry.js} +1 -1
- package/dist/web-components-library/p-24a2786b.js +1 -0
- package/dist/web-components-library/{p-431d0295.entry.js → p-250926fe.entry.js} +1 -1
- package/dist/web-components-library/{p-6a4dfee8.entry.js → p-29df410a.entry.js} +1 -1
- package/{www/build/p-621a7fac.entry.js → dist/web-components-library/p-2df6d015.entry.js} +1 -1
- package/dist/web-components-library/{p-d9a14771.entry.js → p-3552098c.entry.js} +1 -1
- package/dist/web-components-library/p-3b3cd128.js +1 -0
- package/dist/web-components-library/{p-006a91ce.entry.js → p-3c5e84f2.entry.js} +1 -1
- package/{www/build/p-e88726bc.entry.js → dist/web-components-library/p-45a41bff.entry.js} +1 -1
- package/dist/web-components-library/{p-d1a0cb4c.entry.js → p-4665d79f.entry.js} +1 -1
- package/dist/web-components-library/p-483d10ba.entry.js +1 -0
- package/dist/web-components-library/p-48e0a763.entry.js +1 -0
- package/dist/web-components-library/{p-f4062940.entry.js → p-4a1404e2.entry.js} +1 -1
- package/dist/web-components-library/{p-c277d035.entry.js → p-4a414eb2.entry.js} +1 -1
- package/dist/web-components-library/{p-d338e5a9.entry.js → p-4c1dc891.entry.js} +1 -1
- package/dist/web-components-library/{p-db1508ed.entry.js → p-4e896ed8.entry.js} +1 -1
- package/dist/web-components-library/{p-a3820e7d.entry.js → p-5aff6913.entry.js} +1 -1
- package/dist/web-components-library/{p-97c04e0c.entry.js → p-5bbbc979.entry.js} +1 -1
- package/dist/web-components-library/{p-277f19e8.entry.js → p-5c860beb.entry.js} +1 -1
- package/dist/web-components-library/{p-335768cc.entry.js → p-6583cbec.entry.js} +1 -1
- package/{www/build/p-8741a278.entry.js → dist/web-components-library/p-6847ed50.entry.js} +1 -1
- package/dist/web-components-library/{p-3830db49.entry.js → p-698e18cf.entry.js} +1 -1
- package/dist/web-components-library/{p-016c1fd4.entry.js → p-71cc7ed0.entry.js} +1 -1
- package/dist/web-components-library/p-74200866.entry.js +1 -0
- package/dist/web-components-library/{p-d1432a24.entry.js → p-74fb3d69.entry.js} +1 -1
- package/dist/web-components-library/{p-84f934a8.entry.js → p-8a061b5b.entry.js} +1 -1
- package/dist/web-components-library/{p-f6bfde21.entry.js → p-8deddec7.entry.js} +1 -1
- package/dist/web-components-library/{p-8497f556.entry.js → p-8edb6b65.entry.js} +1 -1
- package/dist/web-components-library/{p-8c298051.entry.js → p-8ef035ce.entry.js} +1 -1
- package/dist/web-components-library/{p-1acbd992.js → p-904a85e4.js} +1 -1
- package/dist/web-components-library/{p-22e61c79.entry.js → p-9af1322d.entry.js} +1 -1
- package/dist/web-components-library/{p-e4739505.entry.js → p-9cb6848c.entry.js} +1 -1
- package/dist/web-components-library/{p-7f866d57.entry.js → p-9d3ea635.entry.js} +1 -1
- package/dist/web-components-library/{p-6043d78f.entry.js → p-a025a565.entry.js} +1 -1
- package/dist/web-components-library/p-a1bb6af2.entry.js +1 -0
- package/{www/build/p-99f59836.entry.js → dist/web-components-library/p-a7733104.entry.js} +1 -1
- package/dist/web-components-library/{p-39a787af.entry.js → p-aa0f7169.entry.js} +1 -1
- package/dist/web-components-library/{p-b1e6a2ae.entry.js → p-ac3bc4c2.entry.js} +1 -1
- package/{www/build/p-70c7f657.entry.js → dist/web-components-library/p-b171474c.entry.js} +1 -1
- package/dist/web-components-library/{p-a0fef4f3.entry.js → p-b52459fd.entry.js} +1 -1
- package/dist/web-components-library/{p-e8305a91.entry.js → p-b78fb152.entry.js} +1 -1
- package/dist/web-components-library/p-bbbdb48a.entry.js +1 -0
- package/dist/web-components-library/{p-031de7f3.entry.js → p-be15a83a.entry.js} +1 -1
- package/{www/build/p-51957070.entry.js → dist/web-components-library/p-c2dfaef9.entry.js} +1 -1
- package/dist/web-components-library/{p-1a6b8d43.entry.js → p-c7af96eb.entry.js} +1 -1
- package/dist/web-components-library/{p-d950fcf8.entry.js → p-ca136ef7.entry.js} +1 -1
- package/dist/web-components-library/{p-836d2cb2.entry.js → p-cf914ea7.entry.js} +1 -1
- package/dist/web-components-library/{p-b0027b69.entry.js → p-cfebc80e.entry.js} +1 -1
- package/{www/build/p-1c7ed895.entry.js → dist/web-components-library/p-d9917511.entry.js} +1 -1
- package/dist/web-components-library/{p-2d45e45e.entry.js → p-db5863cf.entry.js} +1 -1
- package/dist/web-components-library/{p-18d36e2e.entry.js → p-e1f1f39e.entry.js} +1 -1
- package/dist/web-components-library/p-e60c2a06.entry.js +1 -0
- package/dist/web-components-library/{p-824875b4.entry.js → p-eadaf008.entry.js} +1 -1
- package/dist/web-components-library/{p-3504da90.entry.js → p-ebcad010.entry.js} +1 -1
- package/{www/build/p-8fe1b60c.entry.js → dist/web-components-library/p-f113a03a.entry.js} +1 -1
- package/dist/web-components-library/{p-152f95de.entry.js → p-f1cc3489.entry.js} +1 -1
- package/dist/web-components-library/{p-823cbb37.entry.js → p-f333967e.entry.js} +1 -1
- package/dist/web-components-library/{p-ee19d602.entry.js → p-f34a707c.entry.js} +1 -1
- package/dist/web-components-library/{p-13a0a93a.entry.js → p-f7f9db16.entry.js} +1 -1
- package/dist/web-components-library/{p-ee432245.entry.js → p-fa0e0402.entry.js} +1 -1
- package/dist/web-components-library/{p-d943ee16.entry.js → p-fa1e086f.entry.js} +1 -1
- package/dist/web-components-library/{p-b1e3a655.entry.js → p-fdfca9b7.entry.js} +1 -1
- package/dist/web-components-library/web-components-library.esm.js +1 -1
- package/package.json +1 -1
- package/react/components.d.ts +1 -4
- package/react/components.js +3 -6
- package/react/components.js.map +1 -1
- package/www/assets/favicon.png +0 -0
- package/www/build/index.esm.js +1 -1
- package/www/build/{p-95b95a4c.entry.js → p-017ddee6.entry.js} +1 -1
- package/www/build/{p-a73f0693.entry.js → p-01a920d1.entry.js} +1 -1
- package/www/build/{p-99f91860.entry.js → p-0ce6293a.entry.js} +1 -1
- package/www/build/{p-68fab13e.entry.js → p-1094e4de.entry.js} +1 -1
- package/www/build/{p-daec8d7f.entry.js → p-1231efbf.entry.js} +1 -1
- package/www/build/{p-7dcda694.entry.js → p-140cc18f.entry.js} +1 -1
- package/www/build/{p-a5460f1e.entry.js → p-15b45bd6.entry.js} +1 -1
- package/www/build/{p-1c66e50c.entry.js → p-1879f46c.entry.js} +1 -1
- package/www/build/{p-cddc1de0.entry.js → p-1c72783c.entry.js} +1 -1
- package/www/build/p-24a2786b.js +1 -0
- package/www/build/{p-431d0295.entry.js → p-250926fe.entry.js} +1 -1
- package/www/build/{p-6a4dfee8.entry.js → p-29df410a.entry.js} +1 -1
- package/{dist/web-components-library/p-621a7fac.entry.js → www/build/p-2df6d015.entry.js} +1 -1
- package/www/build/{p-d9a14771.entry.js → p-3552098c.entry.js} +1 -1
- package/www/build/p-3b3cd128.js +1 -0
- package/www/build/{p-006a91ce.entry.js → p-3c5e84f2.entry.js} +1 -1
- package/{dist/web-components-library/p-e88726bc.entry.js → www/build/p-45a41bff.entry.js} +1 -1
- package/www/build/{p-d1a0cb4c.entry.js → p-4665d79f.entry.js} +1 -1
- package/www/build/p-483d10ba.entry.js +1 -0
- package/www/build/p-48e0a763.entry.js +1 -0
- package/www/build/{p-f4062940.entry.js → p-4a1404e2.entry.js} +1 -1
- package/www/build/{p-c277d035.entry.js → p-4a414eb2.entry.js} +1 -1
- package/www/build/{p-d338e5a9.entry.js → p-4c1dc891.entry.js} +1 -1
- package/www/build/{p-db1508ed.entry.js → p-4e896ed8.entry.js} +1 -1
- package/www/build/{p-a3820e7d.entry.js → p-5aff6913.entry.js} +1 -1
- package/www/build/{p-97c04e0c.entry.js → p-5bbbc979.entry.js} +1 -1
- package/www/build/{p-277f19e8.entry.js → p-5c860beb.entry.js} +1 -1
- package/www/build/{p-335768cc.entry.js → p-6583cbec.entry.js} +1 -1
- package/{dist/web-components-library/p-8741a278.entry.js → www/build/p-6847ed50.entry.js} +1 -1
- package/www/build/{p-3830db49.entry.js → p-698e18cf.entry.js} +1 -1
- package/www/build/{p-016c1fd4.entry.js → p-71cc7ed0.entry.js} +1 -1
- package/www/build/p-74200866.entry.js +1 -0
- package/www/build/{p-d1432a24.entry.js → p-74fb3d69.entry.js} +1 -1
- package/www/build/{p-84f934a8.entry.js → p-8a061b5b.entry.js} +1 -1
- package/www/build/p-8af945c2.js +1 -0
- package/www/build/{p-f6bfde21.entry.js → p-8deddec7.entry.js} +1 -1
- package/www/build/{p-8497f556.entry.js → p-8edb6b65.entry.js} +1 -1
- package/www/build/{p-8c298051.entry.js → p-8ef035ce.entry.js} +1 -1
- package/www/build/{p-1acbd992.js → p-904a85e4.js} +1 -1
- package/www/build/{p-22e61c79.entry.js → p-9af1322d.entry.js} +1 -1
- package/www/build/{p-e4739505.entry.js → p-9cb6848c.entry.js} +1 -1
- package/www/build/{p-7f866d57.entry.js → p-9d3ea635.entry.js} +1 -1
- package/www/build/{p-6043d78f.entry.js → p-a025a565.entry.js} +1 -1
- package/www/build/p-a1bb6af2.entry.js +1 -0
- package/{dist/web-components-library/p-99f59836.entry.js → www/build/p-a7733104.entry.js} +1 -1
- package/www/build/{p-39a787af.entry.js → p-aa0f7169.entry.js} +1 -1
- package/www/build/{p-b1e6a2ae.entry.js → p-ac3bc4c2.entry.js} +1 -1
- package/{dist/web-components-library/p-70c7f657.entry.js → www/build/p-b171474c.entry.js} +1 -1
- package/www/build/{p-a0fef4f3.entry.js → p-b52459fd.entry.js} +1 -1
- package/www/build/{p-e8305a91.entry.js → p-b78fb152.entry.js} +1 -1
- package/www/build/p-bbbdb48a.entry.js +1 -0
- package/www/build/{p-031de7f3.entry.js → p-be15a83a.entry.js} +1 -1
- package/{dist/web-components-library/p-51957070.entry.js → www/build/p-c2dfaef9.entry.js} +1 -1
- package/www/build/{p-1a6b8d43.entry.js → p-c7af96eb.entry.js} +1 -1
- package/www/build/{p-d950fcf8.entry.js → p-ca136ef7.entry.js} +1 -1
- package/www/build/{p-836d2cb2.entry.js → p-cf914ea7.entry.js} +1 -1
- package/www/build/{p-b0027b69.entry.js → p-cfebc80e.entry.js} +1 -1
- package/{dist/web-components-library/p-1c7ed895.entry.js → www/build/p-d9917511.entry.js} +1 -1
- package/www/build/{p-2d45e45e.entry.js → p-db5863cf.entry.js} +1 -1
- package/www/build/{p-18d36e2e.entry.js → p-e1f1f39e.entry.js} +1 -1
- package/www/build/p-e60c2a06.entry.js +1 -0
- package/www/build/p-ea943cbd.css +1 -0
- package/www/build/{p-824875b4.entry.js → p-eadaf008.entry.js} +1 -1
- package/www/build/{p-3504da90.entry.js → p-ebcad010.entry.js} +1 -1
- package/{dist/web-components-library/p-8fe1b60c.entry.js → www/build/p-f113a03a.entry.js} +1 -1
- package/www/build/{p-152f95de.entry.js → p-f1cc3489.entry.js} +1 -1
- package/www/build/{p-823cbb37.entry.js → p-f333967e.entry.js} +1 -1
- package/www/build/{p-ee19d602.entry.js → p-f34a707c.entry.js} +1 -1
- package/www/build/{p-13a0a93a.entry.js → p-f7f9db16.entry.js} +1 -1
- package/www/build/{p-ee432245.entry.js → p-fa0e0402.entry.js} +1 -1
- package/www/build/{p-d943ee16.entry.js → p-fa1e086f.entry.js} +1 -1
- package/www/build/{p-b1e3a655.entry.js → p-fdfca9b7.entry.js} +1 -1
- package/www/build/web-components-library.esm.js +1 -1
- package/www/index.html +32 -8
- package/dist/cjs/z-app-switcher.cjs.entry.js +0 -29
- package/dist/cjs/z-app-topbar.cjs.entry.js +0 -41
- package/dist/cjs/z-button.cjs.entry.js +0 -39
- package/dist/cjs/z-card.cjs.entry.js +0 -69
- package/dist/cjs/z-carousel.cjs.entry.js +0 -19
- package/dist/cjs/z-divider.cjs.entry.js +0 -26
- package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +0 -49
- package/dist/cjs/z-file-upload.cjs.entry.js +0 -169
- package/dist/cjs/z-file.cjs.entry.js +0 -53
- package/dist/cjs/z-icon.cjs.entry.js +0 -28
- package/dist/cjs/z-link.cjs.entry.js +0 -71
- package/dist/cjs/z-logo.cjs.entry.js +0 -28
- package/dist/cjs/z-toggle-switch.cjs.entry.js +0 -42
- package/dist/collection/components/buttons/z-toggle-switch/index.js +0 -136
- package/dist/collection/components/buttons/z-toggle-switch/styles.css +0 -115
- package/dist/collection/components/file-upload/z-dragdrop-area/index.js +0 -52
- package/dist/collection/components/file-upload/z-dragdrop-area/styles.css +0 -62
- package/dist/collection/components/file-upload/z-file/index.js +0 -108
- package/dist/collection/components/file-upload/z-file/styles.css +0 -61
- package/dist/collection/components/file-upload/z-file-upload/index.js +0 -329
- package/dist/collection/components/file-upload/z-file-upload/styles.css +0 -87
- package/dist/esm/z-app-switcher.entry.js +0 -25
- package/dist/esm/z-app-topbar.entry.js +0 -37
- package/dist/esm/z-button.entry.js +0 -35
- package/dist/esm/z-card.entry.js +0 -65
- package/dist/esm/z-carousel.entry.js +0 -15
- package/dist/esm/z-divider.entry.js +0 -22
- package/dist/esm/z-dragdrop-area_2.entry.js +0 -44
- package/dist/esm/z-file-upload.entry.js +0 -165
- package/dist/esm/z-file.entry.js +0 -49
- package/dist/esm/z-icon.entry.js +0 -24
- package/dist/esm/z-link.entry.js +0 -67
- package/dist/esm/z-logo.entry.js +0 -24
- package/dist/esm/z-toggle-switch.entry.js +0 -38
- package/dist/types/components/buttons/z-toggle-switch/index.d.ts +0 -12
- package/dist/types/components/file-upload/z-dragdrop-area/index.d.ts +0 -9
- package/dist/types/components/file-upload/z-file/index.d.ts +0 -17
- package/dist/types/components/file-upload/z-file-upload/index.d.ts +0 -49
- package/dist/web-components-library/p-0e7fe7c1.js +0 -1
- package/dist/web-components-library/p-117c6e89.entry.js +0 -1
- package/dist/web-components-library/p-11d4e9b7.entry.js +0 -1
- package/dist/web-components-library/p-13abb76e.entry.js +0 -1
- package/dist/web-components-library/p-1f439216.entry.js +0 -1
- package/dist/web-components-library/p-42d64757.js +0 -1
- package/dist/web-components-library/p-4ce434aa.entry.js +0 -1
- package/dist/web-components-library/p-5ff0b130.entry.js +0 -1
- package/dist/web-components-library/p-7076e9fd.entry.js +0 -1
- package/dist/web-components-library/p-73e8c323.entry.js +0 -1
- package/dist/web-components-library/p-8ed29309.entry.js +0 -1
- package/dist/web-components-library/p-9b4f979f.entry.js +0 -1
- package/dist/web-components-library/p-a3792cf0.entry.js +0 -1
- package/dist/web-components-library/p-a4b2df38.entry.js +0 -1
- package/dist/web-components-library/p-b10f1aaa.entry.js +0 -1
- package/dist/web-components-library/p-c1a7b740.entry.js +0 -1
- package/dist/web-components-library/p-db38494e.entry.js +0 -1
- package/dist/web-components-library/p-e5c89d9f.entry.js +0 -1
- package/dist/web-components-library/p-fc23b15f.entry.js +0 -1
- package/www/build/p-0e7fe7c1.js +0 -1
- package/www/build/p-117c6e89.entry.js +0 -1
- package/www/build/p-11d4e9b7.entry.js +0 -1
- package/www/build/p-13abb76e.entry.js +0 -1
- package/www/build/p-1f439216.entry.js +0 -1
- package/www/build/p-42d64757.js +0 -1
- package/www/build/p-4ce434aa.entry.js +0 -1
- package/www/build/p-5ff0b130.entry.js +0 -1
- package/www/build/p-7076e9fd.entry.js +0 -1
- package/www/build/p-73e8c323.entry.js +0 -1
- package/www/build/p-7fab4941.js +0 -122
- package/www/build/p-8ed29309.entry.js +0 -1
- package/www/build/p-97a11655.css +0 -789
- package/www/build/p-9b4f979f.entry.js +0 -1
- package/www/build/p-a3792cf0.entry.js +0 -1
- package/www/build/p-a4b2df38.entry.js +0 -1
- package/www/build/p-b10f1aaa.entry.js +0 -1
- package/www/build/p-c1a7b740.entry.js +0 -1
- package/www/build/p-db38494e.entry.js +0 -1
- package/www/build/p-e5c89d9f.entry.js +0 -1
- package/www/build/p-fc23b15f.entry.js +0 -1
- package/www/pages/file-upload.html +0 -236
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-e826b4ad.js');
|
|
6
|
-
const utils = require('./utils-6410fc7d.js');
|
|
7
|
-
const index$1 = require('./index-25206491.js');
|
|
8
|
-
require('./breakpoints-88c4fd6c.js');
|
|
9
|
-
|
|
10
|
-
const stylesCss = ".sc-z-toggle-switch-h{font-family:var(--font-family-sans);font-weight:var(--font-rg);display:inline-flex;position:relative}label.sc-z-toggle-switch{display:flex;align-items:center;flex-direction:row}label.left.sc-z-toggle-switch{margin:0 var(--space-unit) 0 0}label.right.sc-z-toggle-switch{margin:0 var(--space-unit) 0 0;flex-direction:row-reverse}label.sc-z-toggle-switch>span.sc-z-toggle-switch{letter-spacing:0;color:var(--text-grey-800)}label.sc-z-toggle-switch>span.left.sc-z-toggle-switch{margin-right:var(--space-unit)}label.sc-z-toggle-switch>span.right.sc-z-toggle-switch{margin-left:var(--space-unit)}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch{display:flex;align-items:center}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch{height:18px;width:calc(var(--space-unit) * 4);border-radius:var(--space-unit);color:var(--gray500);background-color:var(--gray500);position:relative;cursor:pointer}label.sc-z-toggle-switch>span.container.disabled.sc-z-toggle-switch,label.sc-z-toggle-switch>span.container.active.disabled.sc-z-toggle-switch{background-color:var(--bg-grey-200);cursor:default}label.sc-z-toggle-switch>span.container.active.disabled.sc-z-toggle-switch>span.circle.checked.disabled.sc-z-toggle-switch>z-icon.sc-z-toggle-switch{fill:var(--gray200)}label.sc-z-toggle-switch>span.container.active.sc-z-toggle-switch{background-color:var(--color-primary01);fill:var(--color-primary01)}input.sc-z-toggle-switch:focus:focus-visible+label.sc-z-toggle-switch>span.container.sc-z-toggle-switch:not(.disabled){outline:none;box-shadow:var(--shadow-focus-primary)}input.sc-z-toggle-switch:focus:focus-visible+label.sc-z-toggle-switch>span.container.disabled.sc-z-toggle-switch{outline:none}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch:not(.disabled):hover{background-color:var(--color-hover-primary);fill:var(--color-hover-primary)}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch>span.circle.sc-z-toggle-switch{position:absolute;display:flex;align-items:center;justify-content:center;margin:0;height:calc(var(--space-unit) * 2);width:calc(var(--space-unit) * 2);border-radius:7px;background-color:var(--bg-white);box-shadow:var(--shadow-2);transition:transform 0.3s ease}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch>span.circle.checked.sc-z-toggle-switch{transform:translateX(100%)}input[type=\"checkbox\"].sc-z-toggle-switch{position:absolute;opacity:0;z-index:-1;pointer-events:none}";
|
|
11
|
-
|
|
12
|
-
const ZToggleSwitch = class {
|
|
13
|
-
constructor(hostRef) {
|
|
14
|
-
index.registerInstance(this, hostRef);
|
|
15
|
-
this.toggleClick = index.createEvent(this, "toggleClick", 7);
|
|
16
|
-
this.disabled = false;
|
|
17
|
-
this.labelPosition = index$1.ZtoggleSwitchPositionEnum.left;
|
|
18
|
-
this.checked = false;
|
|
19
|
-
this.htmlid = `id-${utils.randomId()}`;
|
|
20
|
-
}
|
|
21
|
-
emitToggleClick(checked) {
|
|
22
|
-
this.toggleClick.emit({
|
|
23
|
-
id: this.htmlid,
|
|
24
|
-
checked: checked,
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
handleClick(ev) {
|
|
28
|
-
if (this.disabled)
|
|
29
|
-
return;
|
|
30
|
-
this.checked = ev.target.checked;
|
|
31
|
-
this.emitToggleClick(this.checked);
|
|
32
|
-
}
|
|
33
|
-
render() {
|
|
34
|
-
return [
|
|
35
|
-
index.h("input", { id: this.htmlid, type: "checkbox", checked: this.checked, disabled: this.disabled, onChange: this.handleClick.bind(this) }),
|
|
36
|
-
index.h("label", { htmlFor: this.htmlid, class: this.labelPosition }, index.h("span", { class: this.labelPosition }, index.h("slot", null)), index.h("span", { class: `container ${this.disabled && "disabled"} ${this.checked && "active"}` }, index.h("span", { class: `circle ${this.disabled && "disabled"} ${this.checked && "checked"}` }, this.checked && (index.h("z-icon", { width: 12, height: 12, name: "checkmark" }))))),
|
|
37
|
-
];
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
ZToggleSwitch.style = stylesCss;
|
|
41
|
-
|
|
42
|
-
exports.z_toggle_switch = ZToggleSwitch;
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
import { Component, Prop, h, Event } from "@stencil/core";
|
|
2
|
-
import { randomId } from "../../../utils/utils";
|
|
3
|
-
import { ZtoggleSwitchPositionEnum, } from "../../../beans";
|
|
4
|
-
export class ZToggleSwitch {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.disabled = false;
|
|
7
|
-
this.labelPosition = ZtoggleSwitchPositionEnum.left;
|
|
8
|
-
this.checked = false;
|
|
9
|
-
this.htmlid = `id-${randomId()}`;
|
|
10
|
-
}
|
|
11
|
-
emitToggleClick(checked) {
|
|
12
|
-
this.toggleClick.emit({
|
|
13
|
-
id: this.htmlid,
|
|
14
|
-
checked: checked,
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
handleClick(ev) {
|
|
18
|
-
if (this.disabled)
|
|
19
|
-
return;
|
|
20
|
-
this.checked = ev.target.checked;
|
|
21
|
-
this.emitToggleClick(this.checked);
|
|
22
|
-
}
|
|
23
|
-
render() {
|
|
24
|
-
return [
|
|
25
|
-
h("input", { id: this.htmlid, type: "checkbox", checked: this.checked, disabled: this.disabled, onChange: this.handleClick.bind(this) }),
|
|
26
|
-
h("label", { htmlFor: this.htmlid, class: this.labelPosition },
|
|
27
|
-
h("span", { class: this.labelPosition },
|
|
28
|
-
h("slot", null)),
|
|
29
|
-
h("span", { class: `container ${this.disabled && "disabled"} ${this.checked && "active"}` },
|
|
30
|
-
h("span", { class: `circle ${this.disabled && "disabled"} ${this.checked && "checked"}` }, this.checked && (h("z-icon", { width: 12, height: 12, name: "checkmark" }))))),
|
|
31
|
-
];
|
|
32
|
-
}
|
|
33
|
-
static get is() { return "z-toggle-switch"; }
|
|
34
|
-
static get encapsulation() { return "scoped"; }
|
|
35
|
-
static get originalStyleUrls() { return {
|
|
36
|
-
"$": ["styles.css"]
|
|
37
|
-
}; }
|
|
38
|
-
static get styleUrls() { return {
|
|
39
|
-
"$": ["styles.css"]
|
|
40
|
-
}; }
|
|
41
|
-
static get properties() { return {
|
|
42
|
-
"disabled": {
|
|
43
|
-
"type": "boolean",
|
|
44
|
-
"mutable": false,
|
|
45
|
-
"complexType": {
|
|
46
|
-
"original": "boolean",
|
|
47
|
-
"resolved": "boolean",
|
|
48
|
-
"references": {}
|
|
49
|
-
},
|
|
50
|
-
"required": false,
|
|
51
|
-
"optional": true,
|
|
52
|
-
"docs": {
|
|
53
|
-
"tags": [],
|
|
54
|
-
"text": ""
|
|
55
|
-
},
|
|
56
|
-
"attribute": "disabled",
|
|
57
|
-
"reflect": true,
|
|
58
|
-
"defaultValue": "false"
|
|
59
|
-
},
|
|
60
|
-
"labelPosition": {
|
|
61
|
-
"type": "string",
|
|
62
|
-
"mutable": false,
|
|
63
|
-
"complexType": {
|
|
64
|
-
"original": "ZtoggleSwitchPositionEnum",
|
|
65
|
-
"resolved": "ZtoggleSwitchPositionEnum.left | ZtoggleSwitchPositionEnum.right",
|
|
66
|
-
"references": {
|
|
67
|
-
"ZtoggleSwitchPositionEnum": {
|
|
68
|
-
"location": "import",
|
|
69
|
-
"path": "../../../beans"
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
"required": false,
|
|
74
|
-
"optional": true,
|
|
75
|
-
"docs": {
|
|
76
|
-
"tags": [],
|
|
77
|
-
"text": ""
|
|
78
|
-
},
|
|
79
|
-
"attribute": "label-position",
|
|
80
|
-
"reflect": true,
|
|
81
|
-
"defaultValue": "ZtoggleSwitchPositionEnum.left"
|
|
82
|
-
},
|
|
83
|
-
"checked": {
|
|
84
|
-
"type": "boolean",
|
|
85
|
-
"mutable": true,
|
|
86
|
-
"complexType": {
|
|
87
|
-
"original": "boolean",
|
|
88
|
-
"resolved": "boolean",
|
|
89
|
-
"references": {}
|
|
90
|
-
},
|
|
91
|
-
"required": false,
|
|
92
|
-
"optional": true,
|
|
93
|
-
"docs": {
|
|
94
|
-
"tags": [],
|
|
95
|
-
"text": ""
|
|
96
|
-
},
|
|
97
|
-
"attribute": "checked",
|
|
98
|
-
"reflect": false,
|
|
99
|
-
"defaultValue": "false"
|
|
100
|
-
},
|
|
101
|
-
"htmlid": {
|
|
102
|
-
"type": "string",
|
|
103
|
-
"mutable": false,
|
|
104
|
-
"complexType": {
|
|
105
|
-
"original": "string",
|
|
106
|
-
"resolved": "string",
|
|
107
|
-
"references": {}
|
|
108
|
-
},
|
|
109
|
-
"required": false,
|
|
110
|
-
"optional": false,
|
|
111
|
-
"docs": {
|
|
112
|
-
"tags": [],
|
|
113
|
-
"text": ""
|
|
114
|
-
},
|
|
115
|
-
"attribute": "htmlid",
|
|
116
|
-
"reflect": false,
|
|
117
|
-
"defaultValue": "`id-${randomId()}`"
|
|
118
|
-
}
|
|
119
|
-
}; }
|
|
120
|
-
static get events() { return [{
|
|
121
|
-
"method": "toggleClick",
|
|
122
|
-
"name": "toggleClick",
|
|
123
|
-
"bubbles": true,
|
|
124
|
-
"cancelable": true,
|
|
125
|
-
"composed": true,
|
|
126
|
-
"docs": {
|
|
127
|
-
"tags": [],
|
|
128
|
-
"text": ""
|
|
129
|
-
},
|
|
130
|
-
"complexType": {
|
|
131
|
-
"original": "any",
|
|
132
|
-
"resolved": "any",
|
|
133
|
-
"references": {}
|
|
134
|
-
}
|
|
135
|
-
}]; }
|
|
136
|
-
}
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
font-family: var(--font-family-sans);
|
|
3
|
-
font-weight: var(--font-rg);
|
|
4
|
-
display: inline-flex;
|
|
5
|
-
position: relative;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
label {
|
|
9
|
-
display: flex;
|
|
10
|
-
align-items: center;
|
|
11
|
-
flex-direction: row;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
label.left {
|
|
15
|
-
margin: 0 var(--space-unit) 0 0;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
label.right {
|
|
19
|
-
margin: 0 var(--space-unit) 0 0;
|
|
20
|
-
flex-direction: row-reverse;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
label > span {
|
|
24
|
-
letter-spacing: 0;
|
|
25
|
-
color: var(--text-grey-800);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
label > span.left {
|
|
29
|
-
margin-right: var(--space-unit);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
label > span.right {
|
|
33
|
-
margin-left: var(--space-unit);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
label > span.container {
|
|
37
|
-
display: flex;
|
|
38
|
-
align-items: center;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
label > span.container {
|
|
42
|
-
height: 18px;
|
|
43
|
-
width: calc(var(--space-unit) * 4);
|
|
44
|
-
border-radius: var(--space-unit);
|
|
45
|
-
color: var(--gray500);
|
|
46
|
-
background-color: var(--gray500);
|
|
47
|
-
position: relative;
|
|
48
|
-
cursor: pointer;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
label > span.container.disabled,
|
|
52
|
-
label > span.container.active.disabled {
|
|
53
|
-
background-color: var(--bg-grey-200);
|
|
54
|
-
cursor: default;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
label > span.container.active.disabled > span.circle.checked.disabled > z-icon {
|
|
58
|
-
fill: var(--gray200);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
label > span.container.active {
|
|
62
|
-
background-color: var(--color-primary01);
|
|
63
|
-
fill: var(--color-primary01);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
input:focus:focus-visible + label > span.container:not(.disabled) {
|
|
67
|
-
outline: none;
|
|
68
|
-
box-shadow: var(--shadow-focus-primary);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
input:focus:focus-visible + label > span.container.disabled {
|
|
72
|
-
outline: none;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
label > span.container:not(.disabled):hover {
|
|
76
|
-
background-color: var(--color-hover-primary);
|
|
77
|
-
fill: var(--color-hover-primary);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
label > span.container > span.circle {
|
|
81
|
-
position: absolute;
|
|
82
|
-
display: flex;
|
|
83
|
-
align-items: center;
|
|
84
|
-
justify-content: center;
|
|
85
|
-
margin: 0;
|
|
86
|
-
height: calc(var(--space-unit) * 2);
|
|
87
|
-
width: calc(var(--space-unit) * 2);
|
|
88
|
-
border-radius: 7px;
|
|
89
|
-
background-color: var(--bg-white);
|
|
90
|
-
box-shadow: var(--shadow-2);
|
|
91
|
-
transition: transform 0.3s ease;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
label > span.container > span.circle.checked {
|
|
95
|
-
transform: translateX(100%);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
input[type="checkbox"] {
|
|
99
|
-
position: absolute;
|
|
100
|
-
opacity: 0;
|
|
101
|
-
z-index: -1;
|
|
102
|
-
pointer-events: none;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
/* Tablet breakpoint */
|
|
106
|
-
@media only screen and (min-width: 768px) {
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
/* Desktop breakpoint */
|
|
110
|
-
@media only screen and (min-width: 1152px) {
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
/* Wide breakpoint */
|
|
114
|
-
@media only screen and (min-width: 1366px) {
|
|
115
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { Component, h, Event } from "@stencil/core";
|
|
2
|
-
export class ZDragdropArea {
|
|
3
|
-
fileDroppedHandler(files) {
|
|
4
|
-
this.fileDropped.emit(files);
|
|
5
|
-
}
|
|
6
|
-
renderOnDragOverMessage() {
|
|
7
|
-
return (h("div", { class: "dragover-container" },
|
|
8
|
-
h("div", { class: "dragover-message" },
|
|
9
|
-
h("z-body", { variant: "semibold", level: 2 }, "Rilascia i file in questa area per allegarli."))));
|
|
10
|
-
}
|
|
11
|
-
render() {
|
|
12
|
-
return (h("div", { tabIndex: 0, ref: (val) => (this.dragDropContainer = val), class: "dragdrop", onDragOver: (e) => {
|
|
13
|
-
console.log(e);
|
|
14
|
-
e.preventDefault();
|
|
15
|
-
this.dragDropContainer.classList.add("dragover");
|
|
16
|
-
}, onDragLeave: () => {
|
|
17
|
-
this.dragDropContainer.classList.remove("dragover");
|
|
18
|
-
}, onDragEnd: () => { }, onDrop: (e) => {
|
|
19
|
-
e.preventDefault();
|
|
20
|
-
if (e.dataTransfer.files.length) {
|
|
21
|
-
this.dragDropContainer.classList.remove("dragover");
|
|
22
|
-
this.fileDroppedHandler(e.dataTransfer.files);
|
|
23
|
-
}
|
|
24
|
-
} },
|
|
25
|
-
this.renderOnDragOverMessage(),
|
|
26
|
-
h("slot", null)));
|
|
27
|
-
}
|
|
28
|
-
static get is() { return "z-dragdrop-area"; }
|
|
29
|
-
static get encapsulation() { return "scoped"; }
|
|
30
|
-
static get originalStyleUrls() { return {
|
|
31
|
-
"$": ["styles.css"]
|
|
32
|
-
}; }
|
|
33
|
-
static get styleUrls() { return {
|
|
34
|
-
"$": ["styles.css"]
|
|
35
|
-
}; }
|
|
36
|
-
static get events() { return [{
|
|
37
|
-
"method": "fileDropped",
|
|
38
|
-
"name": "fileDropped",
|
|
39
|
-
"bubbles": true,
|
|
40
|
-
"cancelable": true,
|
|
41
|
-
"composed": true,
|
|
42
|
-
"docs": {
|
|
43
|
-
"tags": [],
|
|
44
|
-
"text": "Emitted when user drop one or more files"
|
|
45
|
-
},
|
|
46
|
-
"complexType": {
|
|
47
|
-
"original": "any",
|
|
48
|
-
"resolved": "any",
|
|
49
|
-
"references": {}
|
|
50
|
-
}
|
|
51
|
-
}]; }
|
|
52
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
font-family: var(--font-family-sans);
|
|
3
|
-
font-weight: var(--font-rg);
|
|
4
|
-
margin-top: calc(var(--space-unit) * 3);
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
:host > .dragdrop {
|
|
8
|
-
display: flex;
|
|
9
|
-
color: var(--color-text01);
|
|
10
|
-
flex-direction: column;
|
|
11
|
-
position: relative;
|
|
12
|
-
/* Native CSS properties don't support the customization of border-style.
|
|
13
|
-
Therefore, we use a trick with an SVG image inside background-image property.
|
|
14
|
-
The SVG features give us the ability to change the distance between dashed lines, set custom pattern, add dash offset or even change a line cap.
|
|
15
|
-
Generated SVG image is vector and it fills width and height of elements by 100%, so it doesn't matter what size elements have. */
|
|
16
|
-
background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='2' ry='2' stroke='%23CACCCEFF' stroke-width='2' stroke-dasharray='15%2c 10%2c 14%2c 11' stroke-dashoffset='3' stroke-linecap='square'/%3e%3c/svg%3e");
|
|
17
|
-
border-radius: 2px;
|
|
18
|
-
border-color: var(--color-surface04);
|
|
19
|
-
height: 228px;
|
|
20
|
-
background-color: var(--color-surface02);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/* https://stackoverflow.com/questions/7110353/html5-dragleave-fired-when-hovering-a-child-element */
|
|
24
|
-
:host > .dragdrop.dragover * {
|
|
25
|
-
pointer-events: none;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
:host > .dragdrop .dragover-container {
|
|
29
|
-
position: absolute;
|
|
30
|
-
top: 0;
|
|
31
|
-
left: 0;
|
|
32
|
-
width: 100%;
|
|
33
|
-
height: 100%;
|
|
34
|
-
z-index: 10;
|
|
35
|
-
display: none;
|
|
36
|
-
background-color: var(--color-primary03);
|
|
37
|
-
box-shadow: var(--shadow-focus-primary);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
:host > .dragdrop .dragover-container .dragover-message {
|
|
41
|
-
background-color: var(--color-link-primary);
|
|
42
|
-
color: var(--color-text04);
|
|
43
|
-
padding: 10px 28px;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
:host > .dragdrop.dragover .dragover-container {
|
|
47
|
-
display: flex;
|
|
48
|
-
justify-content: center;
|
|
49
|
-
align-items: center;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
/* Tablet breakpoint */
|
|
53
|
-
@media only screen and (min-width: 768px) {
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/* Desktop breakpoint */
|
|
57
|
-
@media only screen and (min-width: 1152px) {
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/* Wide breakpoint */
|
|
61
|
-
@media only screen and (min-width: 1366px) {
|
|
62
|
-
}
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import { Component, h, Event, Element, Host, State, Listen, Prop, } from "@stencil/core";
|
|
2
|
-
import { DeviceEnum, TooltipPosition, ZChipType } from "../../../beans";
|
|
3
|
-
import { tabletBreakpoint } from "../../../constants/breakpoints";
|
|
4
|
-
import { getDevice } from "../../../utils/utils";
|
|
5
|
-
export class ZFile {
|
|
6
|
-
constructor() {
|
|
7
|
-
this.allowTooltip = false;
|
|
8
|
-
this.tooltipVisible = false;
|
|
9
|
-
}
|
|
10
|
-
removeFileHandler() {
|
|
11
|
-
this.removeFile.emit();
|
|
12
|
-
this.el.remove();
|
|
13
|
-
}
|
|
14
|
-
onMouseOver() {
|
|
15
|
-
this.tooltipVisible = true;
|
|
16
|
-
}
|
|
17
|
-
onMouseLeave() {
|
|
18
|
-
this.tooltipVisible = false;
|
|
19
|
-
}
|
|
20
|
-
componentDidLoad() {
|
|
21
|
-
var _a, _b;
|
|
22
|
-
if (this.elementHasEllipsis() && window.innerWidth > tabletBreakpoint)
|
|
23
|
-
this.allowTooltip = true;
|
|
24
|
-
(_b = (_a = this.icon) === null || _a === void 0 ? void 0 : _a.focus) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
25
|
-
}
|
|
26
|
-
elementHasEllipsis() {
|
|
27
|
-
return this.ellipsis.offsetWidth < this.ellipsis.scrollWidth;
|
|
28
|
-
}
|
|
29
|
-
render() {
|
|
30
|
-
return (h(Host, null,
|
|
31
|
-
this.allowTooltip && (h("z-tooltip", { open: this.tooltipVisible, type: TooltipPosition.AUTO, "bind-to": `#chip-${this.fileNumber}` },
|
|
32
|
-
h("span", { class: "body-5 tootip-content" }, this.ellipsis.innerText))),
|
|
33
|
-
h("z-chip", { id: `chip-${this.fileNumber}`, filter: true, type: ZChipType.default },
|
|
34
|
-
h("div", { class: "chip-content" },
|
|
35
|
-
h("span", { ref: (el) => (this.ellipsis = el), tabIndex: -1, class: {
|
|
36
|
-
"body-3-sb": getDevice() == DeviceEnum.desktop,
|
|
37
|
-
"body-2-sb": getDevice() !== DeviceEnum.desktop,
|
|
38
|
-
} },
|
|
39
|
-
h("slot", null)),
|
|
40
|
-
h("z-icon", { "aria-label": "Elimina file", tabIndex: 0, onClick: () => this.removeFileHandler(), onKeyPress: (e) => {
|
|
41
|
-
if (e.code == "Space" || e.code == "Enter") {
|
|
42
|
-
e.preventDefault();
|
|
43
|
-
this.removeFileHandler();
|
|
44
|
-
}
|
|
45
|
-
}, name: "multiply-circled", height: getDevice() !== DeviceEnum.desktop ? 20 : 15, width: getDevice() !== DeviceEnum.desktop ? 20 : 15, ref: (val) => (this.icon = val) })))));
|
|
46
|
-
}
|
|
47
|
-
static get is() { return "z-file"; }
|
|
48
|
-
static get encapsulation() { return "scoped"; }
|
|
49
|
-
static get originalStyleUrls() { return {
|
|
50
|
-
"$": ["styles.css"]
|
|
51
|
-
}; }
|
|
52
|
-
static get styleUrls() { return {
|
|
53
|
-
"$": ["styles.css"]
|
|
54
|
-
}; }
|
|
55
|
-
static get properties() { return {
|
|
56
|
-
"fileNumber": {
|
|
57
|
-
"type": "any",
|
|
58
|
-
"mutable": false,
|
|
59
|
-
"complexType": {
|
|
60
|
-
"original": "any",
|
|
61
|
-
"resolved": "any",
|
|
62
|
-
"references": {}
|
|
63
|
-
},
|
|
64
|
-
"required": false,
|
|
65
|
-
"optional": false,
|
|
66
|
-
"docs": {
|
|
67
|
-
"tags": [],
|
|
68
|
-
"text": ""
|
|
69
|
-
},
|
|
70
|
-
"attribute": "file-number",
|
|
71
|
-
"reflect": false
|
|
72
|
-
}
|
|
73
|
-
}; }
|
|
74
|
-
static get states() { return {
|
|
75
|
-
"allowTooltip": {},
|
|
76
|
-
"tooltipVisible": {}
|
|
77
|
-
}; }
|
|
78
|
-
static get events() { return [{
|
|
79
|
-
"method": "removeFile",
|
|
80
|
-
"name": "removeFile",
|
|
81
|
-
"bubbles": true,
|
|
82
|
-
"cancelable": true,
|
|
83
|
-
"composed": true,
|
|
84
|
-
"docs": {
|
|
85
|
-
"tags": [],
|
|
86
|
-
"text": "Emitted when a z-file component is removed from the DOM"
|
|
87
|
-
},
|
|
88
|
-
"complexType": {
|
|
89
|
-
"original": "any",
|
|
90
|
-
"resolved": "any",
|
|
91
|
-
"references": {}
|
|
92
|
-
}
|
|
93
|
-
}]; }
|
|
94
|
-
static get elementRef() { return "el"; }
|
|
95
|
-
static get listeners() { return [{
|
|
96
|
-
"name": "mouseover",
|
|
97
|
-
"method": "onMouseOver",
|
|
98
|
-
"target": undefined,
|
|
99
|
-
"capture": false,
|
|
100
|
-
"passive": true
|
|
101
|
-
}, {
|
|
102
|
-
"name": "mouseleave",
|
|
103
|
-
"method": "onMouseLeave",
|
|
104
|
-
"target": undefined,
|
|
105
|
-
"capture": false,
|
|
106
|
-
"passive": true
|
|
107
|
-
}]; }
|
|
108
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
font-family: var(--font-family-sans);
|
|
3
|
-
font-weight: var(--font-rg);
|
|
4
|
-
position: relative;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
:host .chip-content {
|
|
8
|
-
display: flex;
|
|
9
|
-
align-items: center;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
:host > z-tooltip {
|
|
13
|
-
z-index: 10;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
:host > z-tooltip > .tootip-content {
|
|
17
|
-
white-space: nowrap;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
:host > z-chip > .chip-content > span {
|
|
21
|
-
max-width: 250px;
|
|
22
|
-
overflow: hidden;
|
|
23
|
-
text-overflow: ellipsis;
|
|
24
|
-
white-space: nowrap;
|
|
25
|
-
font-size: 14px;
|
|
26
|
-
line-height: 1.33;
|
|
27
|
-
letter-spacing: 0.32px;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
:host > z-chip > .chip-content > span.regular {
|
|
31
|
-
font-weight: var(--font-rg);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
:host > z-chip > .chip-content > span.bold {
|
|
35
|
-
font-weight: var(--font-sb);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
:host .chip-content > z-icon:last-child {
|
|
39
|
-
margin-left: var(--space-unit);
|
|
40
|
-
cursor: pointer;
|
|
41
|
-
fill: var(--color-icon01);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/* Tablet breakpoint */
|
|
45
|
-
@media only screen and (min-width: 768px) {
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/* Desktop breakpoint */
|
|
49
|
-
@media only screen and (min-width: 1152px) {
|
|
50
|
-
:host {
|
|
51
|
-
border-radius: 16px;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
:host > z-chip > .chip-content > span {
|
|
55
|
-
font-size: 12px;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/* Wide breakpoint */
|
|
60
|
-
@media only screen and (min-width: 1366px) {
|
|
61
|
-
}
|