@zanichelli/albe-web-components 2.38.0 → 2.40.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/CHANGELOG.md +49 -0
- package/dist/cjs/{index-dcab1bda.js → index-25206491.js} +10 -0
- package/dist/cjs/{index-dee3e21d.js → index-e826b4ad.js} +3 -0
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{utils-971854fc.js → utils-6410fc7d.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.cjs.entry.js +2 -2
- package/dist/cjs/z-app-topbar.cjs.entry.js +2 -2
- 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-button.cjs.entry.js +2 -2
- package/dist/cjs/z-candybar.cjs.entry.js +1 -1
- package/dist/cjs/z-card.cjs.entry.js +2 -2
- package/dist/cjs/z-carousel.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-divider.cjs.entry.js +2 -2
- package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +49 -0
- package/dist/cjs/z-file-upload.cjs.entry.js +169 -0
- package/dist/cjs/z-file.cjs.entry.js +53 -0
- 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-icon-package.cjs.entry.js +1 -1
- package/dist/cjs/z-icon.cjs.entry.js +1 -1
- package/dist/cjs/z-info-box.cjs.entry.js +1 -1
- package/dist/cjs/z-link.cjs.entry.js +1 -1
- package/dist/cjs/z-list_3.cjs.entry.js +2 -2
- package/dist/cjs/z-logo.cjs.entry.js +1 -1
- 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-toggle-switch.cjs.entry.js +42 -0
- 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 -0
- package/dist/collection/collection-manifest.json +4 -0
- package/dist/collection/components/buttons/z-toggle-switch/index.js +136 -0
- package/dist/collection/components/buttons/z-toggle-switch/styles.css +115 -0
- package/dist/collection/components/file-upload/z-dragdrop-area/index.js +52 -0
- package/dist/collection/components/file-upload/z-dragdrop-area/styles.css +62 -0
- package/dist/collection/components/file-upload/z-file/index.js +108 -0
- package/dist/collection/components/file-upload/z-file/styles.css +61 -0
- package/dist/collection/components/file-upload/z-file-upload/index.js +329 -0
- package/dist/collection/components/file-upload/z-file-upload/styles.css +87 -0
- package/dist/collection/utils/utils.js +2 -2
- package/dist/esm/{index-fa9e549c.js → index-8782dff4.js} +3 -0
- package/dist/esm/{index-6b86a3f1.js → index-cca2b0d2.js} +11 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{utils-351595e0.js → utils-cdd5a909.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.entry.js +2 -2
- package/dist/esm/z-app-topbar.entry.js +2 -2
- 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-button.entry.js +2 -2
- package/dist/esm/z-candybar.entry.js +1 -1
- package/dist/esm/z-card.entry.js +2 -2
- package/dist/esm/z-carousel.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-divider.entry.js +2 -2
- package/dist/esm/z-dragdrop-area_2.entry.js +44 -0
- package/dist/esm/z-file-upload.entry.js +165 -0
- package/dist/esm/z-file.entry.js +49 -0
- 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-icon-package.entry.js +1 -1
- package/dist/esm/z-icon.entry.js +1 -1
- package/dist/esm/z-info-box.entry.js +1 -1
- package/dist/esm/z-link.entry.js +1 -1
- package/dist/esm/z-list_3.entry.js +2 -2
- package/dist/esm/z-logo.entry.js +1 -1
- 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-toggle-switch.entry.js +38 -0
- 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 -0
- package/dist/types/components/buttons/z-toggle-switch/index.d.ts +12 -0
- package/dist/types/components/file-upload/z-dragdrop-area/index.d.ts +9 -0
- package/dist/types/components/file-upload/z-file/index.d.ts +17 -0
- package/dist/types/components/file-upload/z-file-upload/index.d.ts +49 -0
- package/dist/types/components.d.ts +124 -1
- package/dist/web-components-library/index.esm.js +1 -1
- package/dist/web-components-library/{p-41f6c8c4.entry.js → p-006a91ce.entry.js} +1 -1
- package/dist/web-components-library/{p-71cc7ed0.entry.js → p-016c1fd4.entry.js} +1 -1
- package/dist/web-components-library/{p-ea84969a.entry.js → p-031de7f3.entry.js} +1 -1
- package/dist/web-components-library/p-0e7fe7c1.js +1 -0
- package/dist/web-components-library/{p-d4c4b90a.entry.js → p-117c6e89.entry.js} +1 -1
- package/dist/web-components-library/p-11d4e9b7.entry.js +1 -0
- package/dist/web-components-library/{p-209cc06f.entry.js → p-13a0a93a.entry.js} +1 -1
- package/dist/web-components-library/{p-c8f19ca8.entry.js → p-13abb76e.entry.js} +1 -1
- package/dist/web-components-library/{p-3241471c.entry.js → p-152f95de.entry.js} +1 -1
- package/dist/web-components-library/{p-e1f1f39e.entry.js → p-18d36e2e.entry.js} +1 -1
- package/dist/web-components-library/{p-c7af96eb.entry.js → p-1a6b8d43.entry.js} +1 -1
- package/{www/build/p-904a85e4.js → dist/web-components-library/p-1acbd992.js} +1 -1
- package/dist/web-components-library/{p-e9be115a.entry.js → p-1c66e50c.entry.js} +1 -1
- package/dist/web-components-library/{p-509408f3.entry.js → p-1c7ed895.entry.js} +1 -1
- package/dist/web-components-library/{p-c6265fbb.entry.js → p-1f439216.entry.js} +1 -1
- package/dist/web-components-library/{p-9af1322d.entry.js → p-22e61c79.entry.js} +1 -1
- package/dist/web-components-library/{p-f7b1dc68.entry.js → p-277f19e8.entry.js} +1 -1
- package/dist/web-components-library/{p-db5863cf.entry.js → p-2d45e45e.entry.js} +1 -1
- package/dist/web-components-library/{p-6583cbec.entry.js → p-335768cc.entry.js} +1 -1
- package/dist/web-components-library/{p-ebcad010.entry.js → p-3504da90.entry.js} +1 -1
- package/dist/web-components-library/{p-698e18cf.entry.js → p-3830db49.entry.js} +1 -1
- package/dist/web-components-library/{p-aa0f7169.entry.js → p-39a787af.entry.js} +1 -1
- package/dist/web-components-library/p-42d64757.js +1 -0
- package/dist/web-components-library/{p-250926fe.entry.js → p-431d0295.entry.js} +1 -1
- package/dist/web-components-library/p-4ce434aa.entry.js +1 -0
- package/dist/web-components-library/{p-7ce4db78.entry.js → p-51957070.entry.js} +1 -1
- package/dist/web-components-library/p-5ff0b130.entry.js +1 -0
- package/dist/web-components-library/{p-a4fe497a.entry.js → p-6043d78f.entry.js} +1 -1
- package/dist/web-components-library/{p-bf4539a7.entry.js → p-621a7fac.entry.js} +1 -1
- package/dist/web-components-library/{p-1094e4de.entry.js → p-68fab13e.entry.js} +1 -1
- package/dist/web-components-library/{p-d1a52660.entry.js → p-6a4dfee8.entry.js} +1 -1
- package/dist/web-components-library/p-7076e9fd.entry.js +1 -0
- package/{www/build/p-9b2f8028.entry.js → dist/web-components-library/p-70c7f657.entry.js} +1 -1
- package/dist/web-components-library/p-73e8c323.entry.js +1 -0
- package/dist/web-components-library/{p-140cc18f.entry.js → p-7dcda694.entry.js} +1 -1
- package/dist/web-components-library/{p-4c8e6232.entry.js → p-7f866d57.entry.js} +1 -1
- package/{www/build/p-a3a64dc8.entry.js → dist/web-components-library/p-823cbb37.entry.js} +1 -1
- package/dist/web-components-library/{p-8923f36d.entry.js → p-824875b4.entry.js} +1 -1
- package/dist/web-components-library/{p-cf914ea7.entry.js → p-836d2cb2.entry.js} +1 -1
- package/dist/web-components-library/{p-8edb6b65.entry.js → p-8497f556.entry.js} +1 -1
- package/dist/web-components-library/p-84f934a8.entry.js +1 -0
- package/{www/build/p-ba1db0fc.entry.js → dist/web-components-library/p-8741a278.entry.js} +1 -1
- package/dist/web-components-library/{p-8c9e3bb8.entry.js → p-8c298051.entry.js} +1 -1
- package/dist/web-components-library/p-8ed29309.entry.js +1 -0
- package/dist/web-components-library/{p-f113a03a.entry.js → p-8fe1b60c.entry.js} +1 -1
- package/dist/web-components-library/{p-e6b971b9.entry.js → p-95b95a4c.entry.js} +1 -1
- package/dist/web-components-library/{p-5bbbc979.entry.js → p-97c04e0c.entry.js} +1 -1
- package/{www/build/p-a7733104.entry.js → dist/web-components-library/p-99f59836.entry.js} +1 -1
- package/dist/web-components-library/{p-0ce6293a.entry.js → p-99f91860.entry.js} +1 -1
- package/dist/web-components-library/{p-733ba674.entry.js → p-9b4f979f.entry.js} +1 -1
- package/{www/build/p-bd717ced.entry.js → dist/web-components-library/p-a0fef4f3.entry.js} +1 -1
- package/dist/web-components-library/{p-ddc3c8c2.entry.js → p-a3792cf0.entry.js} +1 -1
- package/dist/web-components-library/{p-28b18ca4.entry.js → p-a3820e7d.entry.js} +1 -1
- package/dist/web-components-library/p-a4b2df38.entry.js +1 -0
- package/dist/web-components-library/{p-beda87c3.entry.js → p-a5460f1e.entry.js} +1 -1
- package/dist/web-components-library/{p-74217d44.entry.js → p-a73f0693.entry.js} +1 -1
- package/dist/web-components-library/{p-cfebc80e.entry.js → p-b0027b69.entry.js} +1 -1
- package/dist/web-components-library/p-b10f1aaa.entry.js +1 -0
- package/dist/web-components-library/{p-fdfca9b7.entry.js → p-b1e3a655.entry.js} +1 -1
- package/dist/web-components-library/{p-ac3bc4c2.entry.js → p-b1e6a2ae.entry.js} +1 -1
- package/dist/web-components-library/{p-e84d871b.entry.js → p-c1a7b740.entry.js} +1 -1
- package/{www/build/p-4a414eb2.entry.js → dist/web-components-library/p-c277d035.entry.js} +1 -1
- package/dist/web-components-library/{p-1c72783c.entry.js → p-cddc1de0.entry.js} +1 -1
- package/dist/web-components-library/{p-74fb3d69.entry.js → p-d1432a24.entry.js} +1 -1
- package/dist/web-components-library/{p-4665d79f.entry.js → p-d1a0cb4c.entry.js} +1 -1
- package/dist/web-components-library/{p-4c1dc891.entry.js → p-d338e5a9.entry.js} +1 -1
- package/dist/web-components-library/{p-e55fc434.entry.js → p-d943ee16.entry.js} +1 -1
- package/dist/web-components-library/{p-02796506.entry.js → p-d950fcf8.entry.js} +1 -1
- package/dist/web-components-library/{p-3b3cb18b.entry.js → p-d9a14771.entry.js} +1 -1
- package/dist/web-components-library/{p-3d8b00fd.entry.js → p-daec8d7f.entry.js} +1 -1
- package/dist/web-components-library/{p-ded374d7.entry.js → p-db1508ed.entry.js} +1 -1
- package/dist/web-components-library/p-db38494e.entry.js +1 -0
- package/dist/web-components-library/{p-71bb86a8.entry.js → p-e4739505.entry.js} +1 -1
- package/dist/web-components-library/{p-60e40371.entry.js → p-e5c89d9f.entry.js} +1 -1
- package/dist/web-components-library/{p-b78fb152.entry.js → p-e8305a91.entry.js} +1 -1
- package/dist/web-components-library/p-e88726bc.entry.js +1 -0
- package/dist/web-components-library/{p-89dbe6e9.entry.js → p-ee19d602.entry.js} +1 -1
- package/dist/web-components-library/{p-913cd0da.entry.js → p-ee432245.entry.js} +1 -1
- package/dist/web-components-library/{p-4a1404e2.entry.js → p-f4062940.entry.js} +1 -1
- package/dist/web-components-library/{p-8deddec7.entry.js → p-f6bfde21.entry.js} +1 -1
- package/dist/web-components-library/{p-80589729.entry.js → p-fc23b15f.entry.js} +1 -1
- package/dist/web-components-library/web-components-library.esm.js +1 -1
- package/package.json +24 -16
- package/react/components.d.ts +4 -0
- package/react/components.js +6 -2
- package/react/components.js.map +1 -1
- package/readme.md +12 -34
- package/www/build/index.esm.js +1 -1
- package/www/build/{p-41f6c8c4.entry.js → p-006a91ce.entry.js} +1 -1
- package/www/build/{p-71cc7ed0.entry.js → p-016c1fd4.entry.js} +1 -1
- package/www/build/{p-ea84969a.entry.js → p-031de7f3.entry.js} +1 -1
- package/www/build/p-0e7fe7c1.js +1 -0
- package/www/build/{p-d4c4b90a.entry.js → p-117c6e89.entry.js} +1 -1
- package/www/build/p-11d4e9b7.entry.js +1 -0
- package/www/build/{p-209cc06f.entry.js → p-13a0a93a.entry.js} +1 -1
- package/www/build/{p-c8f19ca8.entry.js → p-13abb76e.entry.js} +1 -1
- package/www/build/{p-3241471c.entry.js → p-152f95de.entry.js} +1 -1
- package/www/build/{p-e1f1f39e.entry.js → p-18d36e2e.entry.js} +1 -1
- package/www/build/{p-c7af96eb.entry.js → p-1a6b8d43.entry.js} +1 -1
- package/{dist/web-components-library/p-904a85e4.js → www/build/p-1acbd992.js} +1 -1
- package/www/build/{p-e9be115a.entry.js → p-1c66e50c.entry.js} +1 -1
- package/www/build/{p-509408f3.entry.js → p-1c7ed895.entry.js} +1 -1
- package/www/build/{p-c6265fbb.entry.js → p-1f439216.entry.js} +1 -1
- package/www/build/{p-9af1322d.entry.js → p-22e61c79.entry.js} +1 -1
- package/www/build/{p-f7b1dc68.entry.js → p-277f19e8.entry.js} +1 -1
- package/www/build/{p-db5863cf.entry.js → p-2d45e45e.entry.js} +1 -1
- package/www/build/{p-6583cbec.entry.js → p-335768cc.entry.js} +1 -1
- package/www/build/{p-ebcad010.entry.js → p-3504da90.entry.js} +1 -1
- package/www/build/{p-698e18cf.entry.js → p-3830db49.entry.js} +1 -1
- package/www/build/{p-aa0f7169.entry.js → p-39a787af.entry.js} +1 -1
- package/www/build/p-42d64757.js +1 -0
- package/www/build/{p-250926fe.entry.js → p-431d0295.entry.js} +1 -1
- package/www/build/p-4ce434aa.entry.js +1 -0
- package/www/build/{p-7ce4db78.entry.js → p-51957070.entry.js} +1 -1
- package/www/build/p-5ff0b130.entry.js +1 -0
- package/www/build/{p-a4fe497a.entry.js → p-6043d78f.entry.js} +1 -1
- package/www/build/{p-bf4539a7.entry.js → p-621a7fac.entry.js} +1 -1
- package/www/build/{p-1094e4de.entry.js → p-68fab13e.entry.js} +1 -1
- package/www/build/{p-d1a52660.entry.js → p-6a4dfee8.entry.js} +1 -1
- package/www/build/p-7076e9fd.entry.js +1 -0
- package/{dist/web-components-library/p-9b2f8028.entry.js → www/build/p-70c7f657.entry.js} +1 -1
- package/www/build/p-73e8c323.entry.js +1 -0
- package/www/build/{p-140cc18f.entry.js → p-7dcda694.entry.js} +1 -1
- package/www/build/{p-4c8e6232.entry.js → p-7f866d57.entry.js} +1 -1
- package/www/build/p-7fab4941.js +122 -0
- package/{dist/web-components-library/p-a3a64dc8.entry.js → www/build/p-823cbb37.entry.js} +1 -1
- package/www/build/{p-8923f36d.entry.js → p-824875b4.entry.js} +1 -1
- package/www/build/{p-cf914ea7.entry.js → p-836d2cb2.entry.js} +1 -1
- package/www/build/{p-8edb6b65.entry.js → p-8497f556.entry.js} +1 -1
- package/www/build/p-84f934a8.entry.js +1 -0
- package/{dist/web-components-library/p-ba1db0fc.entry.js → www/build/p-8741a278.entry.js} +1 -1
- package/www/build/{p-8c9e3bb8.entry.js → p-8c298051.entry.js} +1 -1
- package/www/build/p-8ed29309.entry.js +1 -0
- package/www/build/{p-f113a03a.entry.js → p-8fe1b60c.entry.js} +1 -1
- package/www/build/{p-e6b971b9.entry.js → p-95b95a4c.entry.js} +1 -1
- package/www/build/p-97a11655.css +789 -0
- package/www/build/{p-5bbbc979.entry.js → p-97c04e0c.entry.js} +1 -1
- package/{dist/web-components-library/p-a7733104.entry.js → www/build/p-99f59836.entry.js} +1 -1
- package/www/build/{p-0ce6293a.entry.js → p-99f91860.entry.js} +1 -1
- package/www/build/{p-733ba674.entry.js → p-9b4f979f.entry.js} +1 -1
- package/{dist/web-components-library/p-bd717ced.entry.js → www/build/p-a0fef4f3.entry.js} +1 -1
- package/www/build/{p-ddc3c8c2.entry.js → p-a3792cf0.entry.js} +1 -1
- package/www/build/{p-28b18ca4.entry.js → p-a3820e7d.entry.js} +1 -1
- package/www/build/p-a4b2df38.entry.js +1 -0
- package/www/build/{p-beda87c3.entry.js → p-a5460f1e.entry.js} +1 -1
- package/www/build/{p-74217d44.entry.js → p-a73f0693.entry.js} +1 -1
- package/www/build/{p-cfebc80e.entry.js → p-b0027b69.entry.js} +1 -1
- package/www/build/p-b10f1aaa.entry.js +1 -0
- package/www/build/{p-fdfca9b7.entry.js → p-b1e3a655.entry.js} +1 -1
- package/www/build/{p-ac3bc4c2.entry.js → p-b1e6a2ae.entry.js} +1 -1
- package/www/build/{p-e84d871b.entry.js → p-c1a7b740.entry.js} +1 -1
- package/{dist/web-components-library/p-4a414eb2.entry.js → www/build/p-c277d035.entry.js} +1 -1
- package/www/build/{p-1c72783c.entry.js → p-cddc1de0.entry.js} +1 -1
- package/www/build/{p-74fb3d69.entry.js → p-d1432a24.entry.js} +1 -1
- package/www/build/{p-4665d79f.entry.js → p-d1a0cb4c.entry.js} +1 -1
- package/www/build/{p-4c1dc891.entry.js → p-d338e5a9.entry.js} +1 -1
- package/www/build/{p-e55fc434.entry.js → p-d943ee16.entry.js} +1 -1
- package/www/build/{p-02796506.entry.js → p-d950fcf8.entry.js} +1 -1
- package/www/build/{p-3b3cb18b.entry.js → p-d9a14771.entry.js} +1 -1
- package/www/build/{p-3d8b00fd.entry.js → p-daec8d7f.entry.js} +1 -1
- package/www/build/{p-ded374d7.entry.js → p-db1508ed.entry.js} +1 -1
- package/www/build/p-db38494e.entry.js +1 -0
- package/www/build/{p-71bb86a8.entry.js → p-e4739505.entry.js} +1 -1
- package/www/build/{p-60e40371.entry.js → p-e5c89d9f.entry.js} +1 -1
- package/www/build/{p-b78fb152.entry.js → p-e8305a91.entry.js} +1 -1
- package/www/build/p-e88726bc.entry.js +1 -0
- package/www/build/{p-89dbe6e9.entry.js → p-ee19d602.entry.js} +1 -1
- package/www/build/{p-913cd0da.entry.js → p-ee432245.entry.js} +1 -1
- package/www/build/{p-4a1404e2.entry.js → p-f4062940.entry.js} +1 -1
- package/www/build/{p-8deddec7.entry.js → p-f6bfde21.entry.js} +1 -1
- package/www/build/{p-80589729.entry.js → p-fc23b15f.entry.js} +1 -1
- package/www/build/web-components-library.esm.js +1 -1
- package/www/index.html +1 -1
- package/www/pages/file-upload.html +236 -0
- package/dist/cjs/z-heading.cjs.entry.js +0 -17
- package/dist/esm/z-heading.entry.js +0 -13
- package/dist/web-components-library/p-483d10ba.entry.js +0 -1
- package/dist/web-components-library/p-48e0a763.entry.js +0 -1
- package/dist/web-components-library/p-597e767a.entry.js +0 -1
- package/dist/web-components-library/p-5d4bb66b.entry.js +0 -1
- package/dist/web-components-library/p-5ee63e7f.entry.js +0 -1
- package/dist/web-components-library/p-6934ea47.js +0 -1
- package/dist/web-components-library/p-98a7eedb.entry.js +0 -1
- package/dist/web-components-library/p-a0b11f65.entry.js +0 -1
- package/dist/web-components-library/p-a1bb6af2.entry.js +0 -1
- package/dist/web-components-library/p-d945c8d2.js +0 -1
- package/www/build/p-483d10ba.entry.js +0 -1
- package/www/build/p-48e0a763.entry.js +0 -1
- package/www/build/p-597e767a.entry.js +0 -1
- package/www/build/p-5d4bb66b.entry.js +0 -1
- package/www/build/p-5ee63e7f.entry.js +0 -1
- package/www/build/p-6934ea47.js +0 -1
- package/www/build/p-69f277e5.js +0 -1
- package/www/build/p-98a7eedb.entry.js +0 -1
- package/www/build/p-a0b11f65.entry.js +0 -1
- package/www/build/p-a1bb6af2.entry.js +0 -1
- package/www/build/p-d945c8d2.js +0 -1
- package/www/build/p-ea943cbd.css +0 -1
|
@@ -0,0 +1,136 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
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
|
+
}
|