@zanichelli/albe-web-components 2.40.0 → 2.41.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 +38 -0
- package/dist/cjs/{index-25206491.js → index-15dc9f49.js} +10 -5
- package/dist/cjs/{index-e826b4ad.js → index-ec1433b8.js} +179 -91
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{utils-6410fc7d.js → utils-50477402.js} +3 -3
- package/dist/cjs/web-components-library.cjs.js +3 -3
- 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-toggle-switch.cjs.entry.js +13 -12
- 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 -5
- package/dist/collection/collection-manifest.json +3 -5
- package/dist/collection/components/buttons/z-button/index.js +3 -4
- package/dist/collection/components/buttons/z-toggle-switch/index.js +14 -11
- package/dist/collection/components/buttons/z-toggle-switch/styles.css +19 -32
- package/dist/collection/components/navigation/z-menu/index.js +4 -4
- package/dist/collection/components/notification/z-tooltip/index.js +2 -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-8782dff4.js → index-1877eca4.js} +179 -91
- package/dist/esm/{index-cca2b0d2.js → index-672bd95c.js} +11 -6
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/{utils-cdd5a909.js → utils-c01fe130.js} +3 -3
- package/dist/esm/web-components-library.js +3 -3
- 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-toggle-switch.entry.js +13 -12
- 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 -4
- package/dist/types/components/buttons/z-button/index.d.ts +1 -2
- package/dist/types/components/buttons/z-toggle-switch/index.d.ts +2 -2
- package/dist/types/components/z-offcanvas/index.d.ts +25 -0
- package/dist/types/components.d.ts +42 -102
- package/dist/types/stencil-public-runtime.d.ts +189 -186
- package/dist/web-components-library/index.esm.js +1 -1
- package/dist/web-components-library/{p-d9a14771.entry.js → p-0084ea9f.entry.js} +1 -1
- package/dist/web-components-library/{p-18d36e2e.entry.js → p-0293d6c6.entry.js} +1 -1
- package/dist/web-components-library/{p-6a4dfee8.entry.js → p-02fa9e81.entry.js} +1 -1
- package/dist/web-components-library/{p-daec8d7f.entry.js → p-032bfb5c.entry.js} +1 -1
- package/dist/web-components-library/{p-c277d035.entry.js → p-04daa863.entry.js} +1 -1
- package/dist/web-components-library/{p-006a91ce.entry.js → p-07938fc2.entry.js} +1 -1
- package/dist/web-components-library/{p-db1508ed.entry.js → p-0948e843.entry.js} +1 -1
- package/dist/web-components-library/{p-b1e6a2ae.entry.js → p-09ded8b4.entry.js} +1 -1
- package/dist/web-components-library/{p-431d0295.entry.js → p-0b6bd214.entry.js} +1 -1
- package/dist/web-components-library/{p-824875b4.entry.js → p-1584dfb4.entry.js} +1 -1
- package/dist/web-components-library/{p-3830db49.entry.js → p-1bd60c44.entry.js} +1 -1
- package/dist/web-components-library/{p-031de7f3.entry.js → p-23c46ff2.entry.js} +1 -1
- package/{www/build/p-1c7ed895.entry.js → dist/web-components-library/p-24a2ecc0.entry.js} +1 -1
- package/dist/web-components-library/{p-7f866d57.entry.js → p-2c120632.entry.js} +1 -1
- package/dist/web-components-library/{p-68fab13e.entry.js → p-2cc0c93f.entry.js} +1 -1
- package/dist/web-components-library/p-3bbf16c8.entry.js +1 -0
- package/dist/web-components-library/{p-277f19e8.entry.js → p-3ea930a5.entry.js} +1 -1
- package/dist/web-components-library/{p-e8305a91.entry.js → p-40e6d79d.entry.js} +1 -1
- package/dist/web-components-library/{p-d1432a24.entry.js → p-45cbf885.entry.js} +1 -1
- package/{www/build/p-8fe1b60c.entry.js → dist/web-components-library/p-4b756d6a.entry.js} +1 -1
- package/dist/web-components-library/{p-1c66e50c.entry.js → p-4c7189d2.entry.js} +1 -1
- package/dist/web-components-library/{p-d950fcf8.entry.js → p-4e2763b2.entry.js} +1 -1
- package/dist/web-components-library/p-56640ea6.js +1 -0
- package/dist/web-components-library/{p-a5460f1e.entry.js → p-56fe8986.entry.js} +1 -1
- package/dist/web-components-library/{p-3504da90.entry.js → p-57aaa3d2.entry.js} +1 -1
- package/{www/build/p-99f59836.entry.js → dist/web-components-library/p-5fb435ca.entry.js} +1 -1
- package/dist/web-components-library/{p-42d64757.js → p-5ff60fcd.js} +1 -1
- package/dist/web-components-library/{p-8c298051.entry.js → p-61d066ee.entry.js} +1 -1
- package/dist/web-components-library/{p-d943ee16.entry.js → p-706eb92e.entry.js} +1 -1
- package/dist/web-components-library/{p-621a7fac.entry.js → p-732213f9.entry.js} +1 -1
- package/dist/web-components-library/{p-99f91860.entry.js → p-761eb0ec.entry.js} +1 -1
- package/dist/web-components-library/{p-ee432245.entry.js → p-77610e66.entry.js} +1 -1
- package/dist/web-components-library/{p-1a6b8d43.entry.js → p-779bc51a.entry.js} +1 -1
- package/dist/web-components-library/{p-a0fef4f3.entry.js → p-7bbf377b.entry.js} +1 -1
- package/dist/web-components-library/{p-7dcda694.entry.js → p-7d57c388.entry.js} +1 -1
- package/dist/web-components-library/{p-8497f556.entry.js → p-7e13c57d.entry.js} +1 -1
- package/dist/web-components-library/{p-95b95a4c.entry.js → p-82b2c47c.entry.js} +1 -1
- package/{www/build/p-823cbb37.entry.js → dist/web-components-library/p-8680baaf.entry.js} +1 -1
- package/dist/web-components-library/{p-a3820e7d.entry.js → p-8788a24f.entry.js} +1 -1
- package/dist/web-components-library/{p-d338e5a9.entry.js → p-8aa42057.entry.js} +1 -1
- package/dist/web-components-library/{p-6043d78f.entry.js → p-8b780334.entry.js} +1 -1
- package/dist/web-components-library/p-8b806916.entry.js +1 -0
- package/dist/web-components-library/{p-ee19d602.entry.js → p-915f59a5.entry.js} +1 -1
- package/dist/web-components-library/{p-d1a0cb4c.entry.js → p-979882a5.entry.js} +1 -1
- package/dist/web-components-library/{p-a73f0693.entry.js → p-9a764099.entry.js} +1 -1
- package/dist/web-components-library/p-a321fe03.js +1 -0
- package/dist/web-components-library/{p-836d2cb2.entry.js → p-a56f935f.entry.js} +1 -1
- package/dist/web-components-library/{p-f6bfde21.entry.js → p-a61ea96d.entry.js} +1 -1
- package/{www/build/p-8741a278.entry.js → dist/web-components-library/p-ad105cb1.entry.js} +1 -1
- package/dist/web-components-library/{p-b1e3a655.entry.js → p-af9c81d0.entry.js} +1 -1
- package/dist/web-components-library/{p-13a0a93a.entry.js → p-b33f83f6.entry.js} +1 -1
- package/dist/web-components-library/p-b4981c43.entry.js +1 -0
- package/dist/web-components-library/{p-2d45e45e.entry.js → p-b4bc83ea.entry.js} +1 -1
- package/dist/web-components-library/{p-39a787af.entry.js → p-b87c4984.entry.js} +1 -1
- package/dist/web-components-library/{p-97c04e0c.entry.js → p-bbc60b23.entry.js} +1 -1
- package/dist/web-components-library/{p-cddc1de0.entry.js → p-bd8a9e22.entry.js} +1 -1
- package/dist/web-components-library/p-c273c377.entry.js +1 -0
- package/{www/build/p-51957070.entry.js → dist/web-components-library/p-c932e698.entry.js} +1 -1
- package/dist/web-components-library/{p-016c1fd4.entry.js → p-cdf09ad7.entry.js} +1 -1
- package/dist/web-components-library/p-d0de0319.entry.js +1 -0
- package/dist/web-components-library/{p-335768cc.entry.js → p-d1d26026.entry.js} +1 -1
- package/dist/web-components-library/{p-f4062940.entry.js → p-d2848d7c.entry.js} +1 -1
- package/dist/web-components-library/{p-b0027b69.entry.js → p-dbbae18b.entry.js} +1 -1
- package/dist/web-components-library/p-df58b251.entry.js +1 -0
- package/dist/web-components-library/{p-e4739505.entry.js → p-e697181c.entry.js} +1 -1
- package/dist/web-components-library/{p-84f934a8.entry.js → p-e776d206.entry.js} +1 -1
- package/{www/build/p-70c7f657.entry.js → dist/web-components-library/p-f0913e02.entry.js} +1 -1
- package/dist/web-components-library/p-f52fb47b.entry.js +1 -0
- package/dist/web-components-library/{p-22e61c79.entry.js → p-f78ddbf1.entry.js} +1 -1
- package/dist/web-components-library/{p-152f95de.entry.js → p-f9a31c55.entry.js} +1 -1
- package/dist/web-components-library/p-f9e401fa.entry.js +1 -0
- package/dist/web-components-library/web-components-library.css +1 -1
- package/dist/web-components-library/web-components-library.esm.js +1 -1
- package/loader/index.d.ts +0 -1
- package/package.json +1 -1
- package/react/components.d.ts +1 -3
- package/react/components.js +3 -5
- package/react/components.js.map +1 -1
- package/react/react-component-lib/createComponent.d.ts +1 -1
- package/react/react-component-lib/createComponent.js +42 -10
- package/react/react-component-lib/createComponent.js.map +1 -1
- package/react/react-component-lib/createOverlayComponent.d.ts +5 -4
- package/react/react-component-lib/createOverlayComponent.js +28 -8
- package/react/react-component-lib/createOverlayComponent.js.map +1 -1
- package/react/react-component-lib/utils/attachProps.d.ts +1 -1
- package/react/react-component-lib/utils/attachProps.js +14 -12
- package/react/react-component-lib/utils/attachProps.js.map +1 -1
- package/react/react-component-lib/utils/index.d.ts +4 -1
- package/react/react-component-lib/utils/index.js +20 -5
- package/react/react-component-lib/utils/index.js.map +1 -1
- package/www/assets/favicon.png +0 -0
- package/www/build/index.esm.js +1 -1
- package/www/build/{p-d9a14771.entry.js → p-0084ea9f.entry.js} +1 -1
- package/www/build/{p-18d36e2e.entry.js → p-0293d6c6.entry.js} +1 -1
- package/www/build/{p-6a4dfee8.entry.js → p-02fa9e81.entry.js} +1 -1
- package/www/build/{p-daec8d7f.entry.js → p-032bfb5c.entry.js} +1 -1
- package/www/build/{p-c277d035.entry.js → p-04daa863.entry.js} +1 -1
- package/www/build/{p-006a91ce.entry.js → p-07938fc2.entry.js} +1 -1
- package/www/build/{p-db1508ed.entry.js → p-0948e843.entry.js} +1 -1
- package/www/build/{p-b1e6a2ae.entry.js → p-09ded8b4.entry.js} +1 -1
- package/www/build/{p-431d0295.entry.js → p-0b6bd214.entry.js} +1 -1
- package/www/build/{p-824875b4.entry.js → p-1584dfb4.entry.js} +1 -1
- package/www/build/{p-3830db49.entry.js → p-1bd60c44.entry.js} +1 -1
- package/www/build/p-1ef0dee5.js +129 -0
- package/www/build/{p-031de7f3.entry.js → p-23c46ff2.entry.js} +1 -1
- package/{dist/web-components-library/p-1c7ed895.entry.js → www/build/p-24a2ecc0.entry.js} +1 -1
- package/www/build/{p-7f866d57.entry.js → p-2c120632.entry.js} +1 -1
- package/www/build/{p-68fab13e.entry.js → p-2cc0c93f.entry.js} +1 -1
- package/www/build/p-3bbf16c8.entry.js +1 -0
- package/www/build/{p-277f19e8.entry.js → p-3ea930a5.entry.js} +1 -1
- package/www/build/{p-e8305a91.entry.js → p-40e6d79d.entry.js} +1 -1
- package/www/build/{p-d1432a24.entry.js → p-45cbf885.entry.js} +1 -1
- package/{dist/web-components-library/p-8fe1b60c.entry.js → www/build/p-4b756d6a.entry.js} +1 -1
- package/www/build/{p-1c66e50c.entry.js → p-4c7189d2.entry.js} +1 -1
- package/www/build/{p-d950fcf8.entry.js → p-4e2763b2.entry.js} +1 -1
- package/www/build/p-56640ea6.js +1 -0
- package/www/build/{p-a5460f1e.entry.js → p-56fe8986.entry.js} +1 -1
- package/www/build/{p-3504da90.entry.js → p-57aaa3d2.entry.js} +1 -1
- package/{dist/web-components-library/p-99f59836.entry.js → www/build/p-5fb435ca.entry.js} +1 -1
- package/www/build/{p-42d64757.js → p-5ff60fcd.js} +1 -1
- package/www/build/{p-8c298051.entry.js → p-61d066ee.entry.js} +1 -1
- package/www/build/{p-d943ee16.entry.js → p-706eb92e.entry.js} +1 -1
- package/www/build/{p-621a7fac.entry.js → p-732213f9.entry.js} +1 -1
- package/www/build/{p-99f91860.entry.js → p-761eb0ec.entry.js} +1 -1
- package/www/build/{p-ee432245.entry.js → p-77610e66.entry.js} +1 -1
- package/www/build/{p-1a6b8d43.entry.js → p-779bc51a.entry.js} +1 -1
- package/www/build/{p-a0fef4f3.entry.js → p-7bbf377b.entry.js} +1 -1
- package/www/build/{p-7dcda694.entry.js → p-7d57c388.entry.js} +1 -1
- package/www/build/{p-8497f556.entry.js → p-7e13c57d.entry.js} +1 -1
- package/www/build/{p-95b95a4c.entry.js → p-82b2c47c.entry.js} +1 -1
- package/{dist/web-components-library/p-823cbb37.entry.js → www/build/p-8680baaf.entry.js} +1 -1
- package/www/build/{p-a3820e7d.entry.js → p-8788a24f.entry.js} +1 -1
- package/www/build/{p-d338e5a9.entry.js → p-8aa42057.entry.js} +1 -1
- package/www/build/{p-6043d78f.entry.js → p-8b780334.entry.js} +1 -1
- package/www/build/p-8b806916.entry.js +1 -0
- package/www/build/{p-ee19d602.entry.js → p-915f59a5.entry.js} +1 -1
- package/www/build/{p-d1a0cb4c.entry.js → p-979882a5.entry.js} +1 -1
- package/www/build/{p-a73f0693.entry.js → p-9a764099.entry.js} +1 -1
- package/www/build/p-a321fe03.js +1 -0
- package/www/build/{p-836d2cb2.entry.js → p-a56f935f.entry.js} +1 -1
- package/www/build/{p-f6bfde21.entry.js → p-a61ea96d.entry.js} +1 -1
- package/{dist/web-components-library/p-8741a278.entry.js → www/build/p-ad105cb1.entry.js} +1 -1
- package/www/build/{p-b1e3a655.entry.js → p-af9c81d0.entry.js} +1 -1
- package/www/build/{p-13a0a93a.entry.js → p-b33f83f6.entry.js} +1 -1
- package/www/build/p-b4981c43.entry.js +1 -0
- package/www/build/{p-2d45e45e.entry.js → p-b4bc83ea.entry.js} +1 -1
- package/www/build/{p-39a787af.entry.js → p-b87c4984.entry.js} +1 -1
- package/www/build/{p-97c04e0c.entry.js → p-bbc60b23.entry.js} +1 -1
- package/www/build/{p-cddc1de0.entry.js → p-bd8a9e22.entry.js} +1 -1
- package/www/build/p-c273c377.entry.js +1 -0
- package/{dist/web-components-library/p-51957070.entry.js → www/build/p-c932e698.entry.js} +1 -1
- package/www/build/{p-016c1fd4.entry.js → p-cdf09ad7.entry.js} +1 -1
- package/www/build/p-d0de0319.entry.js +1 -0
- package/www/build/{p-335768cc.entry.js → p-d1d26026.entry.js} +1 -1
- package/www/build/{p-f4062940.entry.js → p-d2848d7c.entry.js} +1 -1
- package/www/build/{p-b0027b69.entry.js → p-dbbae18b.entry.js} +1 -1
- package/www/build/p-df58b251.entry.js +1 -0
- package/www/build/{p-e4739505.entry.js → p-e697181c.entry.js} +1 -1
- package/www/build/{p-84f934a8.entry.js → p-e776d206.entry.js} +1 -1
- package/{dist/web-components-library/p-70c7f657.entry.js → www/build/p-f0913e02.entry.js} +1 -1
- package/www/build/p-f52fb47b.entry.js +1 -0
- package/www/build/{p-22e61c79.entry.js → p-f78ddbf1.entry.js} +1 -1
- package/www/build/{p-152f95de.entry.js → p-f9a31c55.entry.js} +1 -1
- package/www/build/p-f9e401fa.entry.js +1 -0
- package/www/build/{p-97a11655.css → p-fcff1237.css} +24 -1
- package/www/build/web-components-library.css +1 -1
- package/www/build/web-components-library.esm.js +1 -1
- package/www/build/web-components-library.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/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/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-1acbd992.js +0 -1
- package/dist/web-components-library/p-1f439216.entry.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-e88726bc.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-1acbd992.js +0 -1
- package/www/build/p-1f439216.entry.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-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-e88726bc.entry.js +0 -1
- package/www/build/p-fc23b15f.entry.js +0 -1
- package/www/pages/file-upload.html +0 -236
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-e826b4ad.js');
|
|
6
|
-
const icons = require('./icons-05eba7ee.js');
|
|
7
|
-
|
|
8
|
-
const stylesCss = ":host{line-height:0;vertical-align:middle;margin-right:var(--z-icon-right-margin, 0);margin-left:var(--z-icon-left-margin, 0)}:host svg:not([width]){width:var(--z-icon-width, 18px)}:host svg:not([height]){height:var(--z-icon-height, 18px)}";
|
|
9
|
-
|
|
10
|
-
const ZIcon = class {
|
|
11
|
-
constructor(hostRef) {
|
|
12
|
-
index.registerInstance(this, hostRef);
|
|
13
|
-
}
|
|
14
|
-
selectPathOrPolygon(iconName) {
|
|
15
|
-
if (iconName && iconName.startsWith("M")) {
|
|
16
|
-
return index.h("path", { d: icons.icons[this.name] });
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
return index.h("polygon", { points: icons.icons[this.name] });
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
render() {
|
|
23
|
-
return (index.h("svg", { viewBox: "0 0 1000 1000", width: this.width, height: this.height, id: this.iconid, fill: this.fill ? `var(--${this.fill})` : "" }, this.selectPathOrPolygon(icons.icons[this.name])));
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
ZIcon.style = stylesCss;
|
|
27
|
-
|
|
28
|
-
exports.z_icon = ZIcon;
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-e826b4ad.js');
|
|
6
|
-
|
|
7
|
-
const stylesCss = ":host{--font-size-link:inherit;--font-weight-link:inherit}:host{font-family:var(--dashboard-font);font-weight:var(--font-weight-link);font-size:var(--font-size-link);line-height:inherit;outline:none}a{cursor:pointer;color:var(--color-link-primary);fill:var(--color-link-primary);display:inline-flex;align-items:center;text-decoration:none;padding:calc(var(--space-unit) * 0.5) 0;border-top:var(--border-size-medium) solid transparent;border-bottom:var(--border-size-medium) solid transparent}a:hover,a:focus,a:active{text-decoration:underline}a.active{color:var(--color-active-link);fill:var(--color-active-link)}a:hover,a:focus{color:var(--color-hover-link);fill:var(--color-hover-link)}a:active{color:var(--color-pressed-link);fill:var(--color-pressed-link)}a:visited{color:var(--color-visited-link);fill:var(--color-visited-link)}a.disabled,a.inverse.disabled{cursor:default;pointer-events:none;color:var(--color-disabled03);fill:var(--color-disabled03)}a.underline,a.underline:active,a.underline:hover,a.underline:visited,a.underline.disabled,a.underline.black,a.underline.white{text-decoration:underline}a.disabled,a.disabled:active,a.disabled:visited,a.disabled:hover{text-decoration:none}a.inverse{color:var(--color-inverse-link);fill:var(--color-inverse-link)}a.inverse.active{color:var(--color-inverse-active-link);fill:var(--color-inverse-active-link)}a.inverse:hover,a.inverse:focus{color:var(--color-inverse-hover-link);fill:var(--color-inverse-hover-link)}a.inverse:active{color:var(--color-inverse-pressed-link);fill:var(--color-inverse-pressed-link)}a.inverse:visited{color:var(--color-inverse-visited-link);fill:var(--color-inverse-visited-link)}a.black{color:var(--gray800);fill:var(--gray800);text-decoration:none}a.black:hover,a.black.active{color:var(--color-black);fill:var(--color-black)}a.black:visited{color:var(--gray800);fill:var(--gray800)}a.black:hover,a.black:focus,a.black:active{text-decoration:underline}a.black:active{color:var(--gray700);fill:var(--gray700)}a.white,a.white:active,a.white:hover,a.white.active{color:var(--bg-white);fill:var(--bg-white);text-decoration:none}a.white:visited{color:var(--bg-white);fill:var(--bg-white)}a.white:hover,a.white:focus,a.white:active{text-decoration:underline}a.white.disabled,a.black.disabled{color:var(--gray500);fill:var(--gray500)}a>z-icon:first-child{margin-right:8px}a>z-icon:last-child{margin-left:8px}";
|
|
8
|
-
|
|
9
|
-
const ZLink = class {
|
|
10
|
-
constructor(hostRef) {
|
|
11
|
-
index.registerInstance(this, hostRef);
|
|
12
|
-
this.zLinkClick = index.createEvent(this, "zLinkClick", 7);
|
|
13
|
-
/** link target (optional) */
|
|
14
|
-
this.target = "_self";
|
|
15
|
-
/** tabindex link attribute (optional) */
|
|
16
|
-
this.htmltabindex = 0;
|
|
17
|
-
/** disable link flag (optional) */
|
|
18
|
-
this.isdisabled = false;
|
|
19
|
-
/** active link flag (optional) */
|
|
20
|
-
this.isactive = false;
|
|
21
|
-
/** white variant flag (optional) */
|
|
22
|
-
this.iswhite = false;
|
|
23
|
-
/** link text variant (optional) */
|
|
24
|
-
this.textcolor = "primary";
|
|
25
|
-
/** big link version */
|
|
26
|
-
this.big = false;
|
|
27
|
-
/** link icon position (optional) */
|
|
28
|
-
this.iconposition = "left";
|
|
29
|
-
/** draw underline on text (optional) */
|
|
30
|
-
this.underline = false;
|
|
31
|
-
this.iconSize = 18;
|
|
32
|
-
this.emitZLinkClick = this.emitZLinkClick.bind(this);
|
|
33
|
-
this.emitZLinkInteraction = this.emitZLinkInteraction.bind(this);
|
|
34
|
-
}
|
|
35
|
-
componentWillRender() {
|
|
36
|
-
if (this.iswhite) {
|
|
37
|
-
console.warn("z-link iswhite prop is deprecated and will be dropped in a next release, please use textcolor prop instead");
|
|
38
|
-
}
|
|
39
|
-
if (this.big) {
|
|
40
|
-
console.warn("z-link big prop is deprecated and will be dropped in a next release, please override --font-size-link and --font-weight-link variables instead");
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
emitZLinkClick(e, linkId) {
|
|
44
|
-
this.emitZLinkInteraction(e, linkId);
|
|
45
|
-
}
|
|
46
|
-
emitZLinkInteraction(e, linkId) {
|
|
47
|
-
this.zLinkClick.emit({ e, linkId });
|
|
48
|
-
}
|
|
49
|
-
componentDidRender() {
|
|
50
|
-
if (this.icon) {
|
|
51
|
-
const height = parseFloat(window.getComputedStyle(this.hostElement).getPropertyValue('font-size'));
|
|
52
|
-
const currentSize = this.big ? 18 : Math.round(height * 1.125);
|
|
53
|
-
if (!Number.isNaN(currentSize) && this.iconSize !== currentSize) {
|
|
54
|
-
this.iconSize = currentSize;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
render() {
|
|
59
|
-
const style = this.big ? { "--font-size-link": "16px", "--font-weight-link": "600" } : {};
|
|
60
|
-
return (index.h(index.Host, { style: style }, index.h("a", { id: this.htmlid, href: this.href ? this.href : null, class: `${this.isdisabled ? "disabled" : ""}
|
|
61
|
-
${this.isactive ? "active" : ""}
|
|
62
|
-
${this.textcolor}
|
|
63
|
-
${this.iswhite ? "white" : ""}
|
|
64
|
-
${this.underline ? "underline" : ""}`, target: this.target, role: this.href ? "link" : "button", tabindex: this.isdisabled ? -1 : this.htmltabindex, onClick: (e) => this.emitZLinkClick(e, this.htmlid) }, this.iconposition === "right" && index.h("slot", null), this.icon &&
|
|
65
|
-
index.h("z-icon", { style: { "--z-icon-width": this.iconSize.toString(), "--z-icon-height": this.iconSize.toString() }, name: this.icon, height: this.iconSize, width: this.iconSize }), this.iconposition === "left" && index.h("slot", null))));
|
|
66
|
-
}
|
|
67
|
-
get hostElement() { return index.getElement(this); }
|
|
68
|
-
};
|
|
69
|
-
ZLink.style = stylesCss;
|
|
70
|
-
|
|
71
|
-
exports.z_link = ZLink;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-e826b4ad.js');
|
|
6
|
-
|
|
7
|
-
const stylesCss = ":host{display:inline-block;vertical-align:top;width:255px;height:64px}img{display:block;margin:auto;width:100%;height:100%;content:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='255px' height='64px' viewBox='0 0 255 64'%3E%3Cg id='Logo/Zanichelli/Centered-(reworked)' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg id='Group'%3E%3Cpolygon id='Background' fill='%23E2001A' points='1.70530257e-13 64 254.39 64 254.39 0 1.70530257e-13 0'%3E%3C/polygon%3E%3Cpath d='M233.36,51.3553859 L242.390252,51.3553859 L242.390252,12.6427292 L233.36,12.6427292 L233.36,51.3553859 Z M211.120346,51.3553859 L230.477617,51.3553859 L230.477617,44.5040053 L220.685891,44.5040053 L220.685891,12.6427292 L211.120346,12.6427292 L211.120346,51.3553859 Z M188.880124,51.3553859 L208.23551,51.3553859 L208.23551,44.5040053 L198.445669,44.5040053 L198.445669,12.6427292 L188.880124,12.6427292 L188.880124,51.3553859 Z M165.354444,12.6427292 L165.354444,51.3553859 L185.999058,51.3553859 L185.999058,44.5021204 L175.027425,44.5021204 L175.027425,35.1778343 L185.377062,35.1778343 L185.377062,28.2699086 L175.027425,28.2699086 L175.027425,19.4978796 L185.999058,19.4978796 L185.999058,12.6427292 L165.354444,12.6427292 Z M136.666196,51.3553859 L146.239281,51.3553859 L146.239281,35.1778343 L152.902178,35.1778343 L152.902178,51.3553859 L162.473377,51.3553859 L162.473377,12.6427292 L152.902178,12.6427292 L152.902178,28.2717934 L146.239281,28.2717934 L146.239281,12.6427292 L136.666196,12.6427292 L136.666196,51.3553859 Z M96.064744,51.3553859 L105.098765,51.3553859 L105.098765,12.6427292 L96.064744,12.6427292 L96.064744,51.3553859 Z M53.2364527,36.5160682 L50.6824993,19.7429083 L48.0757704,36.5160682 L53.2364527,36.5160682 Z M65.4935444,51.3553859 L56.2710395,51.3553859 L54.9441146,42.5286966 L47.7101121,42.5286966 L46.3304118,51.3553859 L37.1060221,51.3553859 L45.0053718,12.6427292 L57.5960795,12.6427292 L65.4935444,51.3553859 Z M85.0468382,37.7581755 L76.7969089,12.6427292 L67.3764961,12.6427292 L67.3764961,51.3553859 L75.4040147,51.3553859 L75.4040147,26.132504 L83.5955141,51.3553859 L93.1855622,51.3553859 L93.1855622,12.6427292 L85.0468382,12.6427292 L85.0468382,37.7581755 Z M107.977948,32 C107.977948,34.5200264 107.977948,36.7893695 108.187165,39.1246819 C108.396382,41.4713034 108.818585,43.6878711 109.678071,45.6009801 C111.423429,49.487513 114.932995,52 121.708982,52 C129.508435,52 133.787014,48.4753558 133.787014,38.0220526 L133.787014,37.5640373 L124.937707,37.5640373 L124.922628,38.0050891 C124.894356,38.7571388 124.884931,39.6185091 124.826501,40.4855339 C124.769956,41.3431345 124.66629,42.1875412 124.460843,42.9301668 C124.048064,44.3965696 123.279051,45.3559514 121.708982,45.3559514 C117.743286,45.3559514 117.057205,42.0574875 117.057205,32 C117.057205,21.9425125 117.743286,18.6440486 121.708982,18.6440486 C123.605127,18.6440486 124.547546,20.0030157 124.547546,25.1806616 L124.547546,25.6424465 L133.344077,25.6424465 L133.361041,25.1995099 C133.689003,16.7855998 130.235982,12 121.708982,12 C114.934879,12 111.427199,14.4823297 109.678071,18.3594383 C108.818585,20.265008 108.396382,22.4778061 108.187165,24.830082 C107.977948,27.1710489 107.977948,29.4554707 107.977948,32 L107.977948,32 Z M34.9007634,12.6446141 L34.9007634,20.3196683 L21.6051268,44.5040053 L35.2268401,44.5040053 L35.2268401,51.3553859 L12,51.3553859 L12,43.7915371 L25.2975214,19.4997644 L13.683159,19.4997644 L13.683159,12.6446141 L34.9007634,12.6446141 Z' id='Logotipo-(reworked)' fill='%23FFFFFF'%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/svg%3E\")}a{display:block;width:100%;height:100%}:host(.mobile){width:31px;height:40px}:host(.mobile) img{content:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='31px' height='40px' viewBox='0 0 31 40'%3E%3Cg id='Symbols' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg id='Topbar/Mobile/Logged' transform='translate(-16.000000, -4.000000)'%3E%3Cg id='Group' transform='translate(16.000000, 4.000000)'%3E%3Cpolygon id='Fill-1' fill='%23E2001A' points='0 40 30.625 40 30.625 0 0 0'%3E%3C/polygon%3E%3Cpolygon id='Fill-2' fill='%23FEFEFE' points='8.17111587 6.20689655 23.4311708 6.20689655 23.4311708 11.671267 13.8691261 28.9163861 23.6647727 28.9163861 23.6647727 33.7931034 6.96022727 33.7931034 6.96022727 28.408218 16.522272 11.0831673 8.17111587 11.0831673'%3E%3C/polygon%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E\")}";
|
|
8
|
-
|
|
9
|
-
const ZLogo = class {
|
|
10
|
-
constructor(hostRef) {
|
|
11
|
-
index.registerInstance(this, hostRef);
|
|
12
|
-
}
|
|
13
|
-
render() {
|
|
14
|
-
const style = {};
|
|
15
|
-
if (this.width) {
|
|
16
|
-
style["width"] = style["max-width"] = `${this.width}px`;
|
|
17
|
-
}
|
|
18
|
-
if (this.height) {
|
|
19
|
-
style["height"] = style["max-height"] = `${this.height}px`;
|
|
20
|
-
}
|
|
21
|
-
return (index.h(index.Host, { style: style, class: { "mobile": !!this.mobileLogo } }, this.link ?
|
|
22
|
-
index.h("a", { href: this.link, target: this.targetBlank ? "_blank" : "_self" }, index.h("img", { alt: this.imageAlt })) :
|
|
23
|
-
index.h("img", { alt: this.imageAlt })));
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
ZLogo.style = stylesCss;
|
|
27
|
-
|
|
28
|
-
exports.z_logo = ZLogo;
|
|
@@ -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
|
-
}
|