@zanichelli/albe-web-components 2.40.1 → 2.42.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.
Files changed (367) hide show
  1. package/CHANGELOG.md +79 -0
  2. package/dist/cjs/{index-dee3e21d.js → index-84b7063a.js} +182 -88
  3. package/dist/cjs/{index-6b11e272.js → index-ef6dc2ee.js} +10 -0
  4. package/dist/cjs/index.cjs.js +2 -2
  5. package/dist/cjs/loader.cjs.js +3 -3
  6. package/dist/cjs/{utils-428c57eb.js → utils-d3a23e75.js} +3 -3
  7. package/dist/cjs/web-components-library.cjs.js +3 -3
  8. package/dist/cjs/z-alert.cjs.entry.js +1 -1
  9. package/dist/cjs/z-app-header.cjs.entry.js +1 -1
  10. package/dist/cjs/z-app-switcher_10.cjs.entry.js +2 -2
  11. package/dist/cjs/z-aria-alert.cjs.entry.js +2 -2
  12. package/dist/cjs/z-avatar.cjs.entry.js +2 -2
  13. package/dist/cjs/z-body_2.cjs.entry.js +1 -1
  14. package/dist/cjs/z-button-filter_5.cjs.entry.js +3 -3
  15. package/dist/cjs/z-button-sort.cjs.entry.js +1 -1
  16. package/dist/cjs/z-candybar.cjs.entry.js +1 -1
  17. package/dist/cjs/z-chip.cjs.entry.js +2 -2
  18. package/dist/cjs/z-combobox.cjs.entry.js +3 -3
  19. package/dist/cjs/z-contextual-menu.cjs.entry.js +2 -2
  20. package/dist/cjs/z-cookiebar.cjs.entry.js +2 -2
  21. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +49 -0
  22. package/dist/cjs/z-file-upload.cjs.entry.js +169 -0
  23. package/dist/cjs/z-file.cjs.entry.js +53 -0
  24. package/dist/cjs/z-footer-link_3.cjs.entry.js +1 -1
  25. package/dist/cjs/z-footer.cjs.entry.js +2 -2
  26. package/dist/cjs/z-ghost-loading.cjs.entry.js +1 -1
  27. package/dist/cjs/z-icon-package.cjs.entry.js +1 -1
  28. package/dist/cjs/z-info-box.cjs.entry.js +1 -1
  29. package/dist/cjs/z-list_3.cjs.entry.js +2 -2
  30. package/dist/cjs/z-menu-dropdown_2.cjs.entry.js +3 -3
  31. package/dist/cjs/z-menu-section.cjs.entry.js +1 -1
  32. package/dist/cjs/z-menu.cjs.entry.js +1 -1
  33. package/dist/cjs/z-messages-pocket.cjs.entry.js +2 -2
  34. package/dist/cjs/z-modal-login.cjs.entry.js +2 -2
  35. package/dist/cjs/z-modal.cjs.entry.js +1 -1
  36. package/dist/cjs/z-myz-card-alert.cjs.entry.js +2 -2
  37. package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +2 -2
  38. package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +1 -1
  39. package/dist/cjs/z-myz-card-footer.cjs.entry.js +2 -2
  40. package/dist/cjs/z-myz-card-icon.cjs.entry.js +1 -1
  41. package/dist/cjs/z-myz-card-info.cjs.entry.js +3 -3
  42. package/dist/cjs/z-myz-card-list.cjs.entry.js +1 -1
  43. package/dist/cjs/z-myz-card_4.cjs.entry.js +2 -2
  44. package/dist/cjs/z-myz-list-item.cjs.entry.js +3 -3
  45. package/dist/cjs/z-myz-topbar.cjs.entry.js +2 -2
  46. package/dist/cjs/z-navigation-tab.cjs.entry.js +1 -1
  47. package/dist/cjs/z-navigation-tabs.cjs.entry.js +2 -2
  48. package/dist/cjs/z-notification.cjs.entry.js +2 -2
  49. package/dist/cjs/z-otp.cjs.entry.js +2 -2
  50. package/dist/cjs/z-pagination-bar.cjs.entry.js +3 -3
  51. package/dist/cjs/z-pagination-page.cjs.entry.js +1 -1
  52. package/dist/cjs/z-panel-elem.cjs.entry.js +1 -1
  53. package/dist/cjs/z-pocket-message.cjs.entry.js +1 -1
  54. package/dist/cjs/z-pocket_3.cjs.entry.js +3 -3
  55. package/dist/cjs/z-popover.cjs.entry.js +3 -3
  56. package/dist/cjs/z-slideshow.cjs.entry.js +3 -3
  57. package/dist/cjs/z-status-tag.cjs.entry.js +2 -2
  58. package/dist/cjs/z-stepper-item.cjs.entry.js +1 -1
  59. package/dist/cjs/z-stepper.cjs.entry.js +1 -1
  60. package/dist/cjs/z-table-body.cjs.entry.js +1 -1
  61. package/dist/cjs/z-table-cell.cjs.entry.js +2 -2
  62. package/dist/cjs/z-table-empty-box.cjs.entry.js +1 -1
  63. package/dist/cjs/z-table-expanded-row.cjs.entry.js +1 -1
  64. package/dist/cjs/z-table-footer.cjs.entry.js +1 -1
  65. package/dist/cjs/z-table-head.cjs.entry.js +1 -1
  66. package/dist/cjs/z-table-header-row.cjs.entry.js +1 -1
  67. package/dist/cjs/z-table-header.cjs.entry.js +3 -3
  68. package/dist/cjs/z-table-row.cjs.entry.js +2 -2
  69. package/dist/cjs/z-table-sticky-footer.cjs.entry.js +1 -1
  70. package/dist/cjs/z-table.cjs.entry.js +2 -2
  71. package/dist/cjs/z-toast-notification-list.cjs.entry.js +2 -2
  72. package/dist/cjs/z-toast-notification.cjs.entry.js +2 -2
  73. package/dist/cjs/z-toggle-button.cjs.entry.js +1 -1
  74. package/dist/cjs/z-toggle-switch.cjs.entry.js +49 -0
  75. package/dist/cjs/z-tooltip.cjs.entry.js +2 -2
  76. package/dist/cjs/z-user-dropdown.cjs.entry.js +1 -1
  77. package/dist/cjs/z-visually-hidden.cjs.entry.js +1 -1
  78. package/dist/collection/beans/index.js +10 -0
  79. package/dist/collection/collection-manifest.json +6 -2
  80. package/dist/collection/components/buttons/z-button/index.js +2 -2
  81. package/dist/collection/components/buttons/z-toggle-switch/index.js +143 -0
  82. package/dist/collection/components/buttons/z-toggle-switch/styles.css +106 -0
  83. package/dist/collection/components/file-upload/z-dragdrop-area/index.js +52 -0
  84. package/dist/collection/components/file-upload/z-dragdrop-area/styles.css +62 -0
  85. package/dist/collection/components/file-upload/z-file/index.js +109 -0
  86. package/dist/collection/components/file-upload/z-file/styles.css +61 -0
  87. package/dist/collection/components/file-upload/z-file-upload/index.js +329 -0
  88. package/dist/collection/components/file-upload/z-file-upload/styles.css +87 -0
  89. package/dist/collection/components/navigation/z-menu/index.js +4 -4
  90. package/dist/collection/components/notification/z-tooltip/index.js +2 -2
  91. package/dist/collection/utils/utils.js +2 -2
  92. package/dist/esm/{index-fa9e549c.js → index-90e18641.js} +182 -88
  93. package/dist/esm/{index-9d70864c.js → index-cda2110a.js} +11 -1
  94. package/dist/esm/index.js +2 -2
  95. package/dist/esm/loader.js +3 -3
  96. package/dist/esm/polyfills/css-shim.js +1 -1
  97. package/dist/esm/{utils-347de6f5.js → utils-436360f5.js} +3 -3
  98. package/dist/esm/web-components-library.js +3 -3
  99. package/dist/esm/z-alert.entry.js +1 -1
  100. package/dist/esm/z-app-header.entry.js +1 -1
  101. package/dist/esm/z-app-switcher_10.entry.js +2 -2
  102. package/dist/esm/z-aria-alert.entry.js +2 -2
  103. package/dist/esm/z-avatar.entry.js +2 -2
  104. package/dist/esm/z-body_2.entry.js +1 -1
  105. package/dist/esm/z-button-filter_5.entry.js +3 -3
  106. package/dist/esm/z-button-sort.entry.js +1 -1
  107. package/dist/esm/z-candybar.entry.js +1 -1
  108. package/dist/esm/z-chip.entry.js +2 -2
  109. package/dist/esm/z-combobox.entry.js +3 -3
  110. package/dist/esm/z-contextual-menu.entry.js +2 -2
  111. package/dist/esm/z-cookiebar.entry.js +2 -2
  112. package/dist/esm/z-dragdrop-area_2.entry.js +44 -0
  113. package/dist/esm/z-file-upload.entry.js +165 -0
  114. package/dist/esm/z-file.entry.js +49 -0
  115. package/dist/esm/z-footer-link_3.entry.js +1 -1
  116. package/dist/esm/z-footer.entry.js +2 -2
  117. package/dist/esm/z-ghost-loading.entry.js +1 -1
  118. package/dist/esm/z-icon-package.entry.js +1 -1
  119. package/dist/esm/z-info-box.entry.js +1 -1
  120. package/dist/esm/z-list_3.entry.js +2 -2
  121. package/dist/esm/z-menu-dropdown_2.entry.js +3 -3
  122. package/dist/esm/z-menu-section.entry.js +1 -1
  123. package/dist/esm/z-menu.entry.js +1 -1
  124. package/dist/esm/z-messages-pocket.entry.js +2 -2
  125. package/dist/esm/z-modal-login.entry.js +2 -2
  126. package/dist/esm/z-modal.entry.js +1 -1
  127. package/dist/esm/z-myz-card-alert.entry.js +2 -2
  128. package/dist/esm/z-myz-card-dictionary.entry.js +2 -2
  129. package/dist/esm/z-myz-card-footer-sections.entry.js +1 -1
  130. package/dist/esm/z-myz-card-footer.entry.js +2 -2
  131. package/dist/esm/z-myz-card-icon.entry.js +1 -1
  132. package/dist/esm/z-myz-card-info.entry.js +3 -3
  133. package/dist/esm/z-myz-card-list.entry.js +1 -1
  134. package/dist/esm/z-myz-card_4.entry.js +2 -2
  135. package/dist/esm/z-myz-list-item.entry.js +3 -3
  136. package/dist/esm/z-myz-topbar.entry.js +2 -2
  137. package/dist/esm/z-navigation-tab.entry.js +1 -1
  138. package/dist/esm/z-navigation-tabs.entry.js +2 -2
  139. package/dist/esm/z-notification.entry.js +2 -2
  140. package/dist/esm/z-otp.entry.js +2 -2
  141. package/dist/esm/z-pagination-bar.entry.js +3 -3
  142. package/dist/esm/z-pagination-page.entry.js +1 -1
  143. package/dist/esm/z-panel-elem.entry.js +1 -1
  144. package/dist/esm/z-pocket-message.entry.js +1 -1
  145. package/dist/esm/z-pocket_3.entry.js +3 -3
  146. package/dist/esm/z-popover.entry.js +3 -3
  147. package/dist/esm/z-slideshow.entry.js +3 -3
  148. package/dist/esm/z-status-tag.entry.js +2 -2
  149. package/dist/esm/z-stepper-item.entry.js +1 -1
  150. package/dist/esm/z-stepper.entry.js +1 -1
  151. package/dist/esm/z-table-body.entry.js +1 -1
  152. package/dist/esm/z-table-cell.entry.js +2 -2
  153. package/dist/esm/z-table-empty-box.entry.js +1 -1
  154. package/dist/esm/z-table-expanded-row.entry.js +1 -1
  155. package/dist/esm/z-table-footer.entry.js +1 -1
  156. package/dist/esm/z-table-head.entry.js +1 -1
  157. package/dist/esm/z-table-header-row.entry.js +1 -1
  158. package/dist/esm/z-table-header.entry.js +3 -3
  159. package/dist/esm/z-table-row.entry.js +2 -2
  160. package/dist/esm/z-table-sticky-footer.entry.js +1 -1
  161. package/dist/esm/z-table.entry.js +2 -2
  162. package/dist/esm/z-toast-notification-list.entry.js +2 -2
  163. package/dist/esm/z-toast-notification.entry.js +2 -2
  164. package/dist/esm/z-toggle-button.entry.js +1 -1
  165. package/dist/esm/z-toggle-switch.entry.js +45 -0
  166. package/dist/esm/z-tooltip.entry.js +2 -2
  167. package/dist/esm/z-user-dropdown.entry.js +1 -1
  168. package/dist/esm/z-visually-hidden.entry.js +1 -1
  169. package/dist/types/beans/index.d.ts +8 -0
  170. package/dist/types/components/buttons/z-toggle-switch/index.d.ts +12 -0
  171. package/dist/types/components/file-upload/z-dragdrop-area/index.d.ts +9 -0
  172. package/dist/types/components/file-upload/z-file/index.d.ts +18 -0
  173. package/dist/types/components/file-upload/z-file-upload/index.d.ts +49 -0
  174. package/dist/types/components.d.ts +124 -1
  175. package/dist/types/stencil-public-runtime.d.ts +189 -186
  176. package/dist/web-components-library/index.esm.js +1 -1
  177. package/dist/web-components-library/{p-cf914ea7.entry.js → p-02474663.entry.js} +1 -1
  178. package/{www/build/p-4a414eb2.entry.js → dist/web-components-library/p-104b70e5.entry.js} +1 -1
  179. package/dist/web-components-library/{p-8deddec7.entry.js → p-105b82a6.entry.js} +1 -1
  180. package/dist/web-components-library/{p-3552098c.entry.js → p-21a85d4f.entry.js} +1 -1
  181. package/dist/web-components-library/{p-29df410a.entry.js → p-24d62d5d.entry.js} +1 -1
  182. package/{www/build/p-74200866.entry.js → dist/web-components-library/p-26286e79.entry.js} +1 -1
  183. package/dist/web-components-library/{p-9af1322d.entry.js → p-2c836d42.entry.js} +1 -1
  184. package/dist/web-components-library/{p-698e18cf.entry.js → p-2c8e542b.entry.js} +1 -1
  185. package/dist/web-components-library/{p-f1cc3489.entry.js → p-2d74660a.entry.js} +1 -1
  186. package/{www/build/p-ca136ef7.entry.js → dist/web-components-library/p-2edeb36b.entry.js} +1 -1
  187. package/dist/web-components-library/{p-a025a565.entry.js → p-32fbc96b.entry.js} +1 -1
  188. package/dist/web-components-library/{p-d9917511.entry.js → p-3371604c.entry.js} +1 -1
  189. package/dist/web-components-library/{p-e1f1f39e.entry.js → p-3fc438b7.entry.js} +1 -1
  190. package/dist/web-components-library/{p-cfebc80e.entry.js → p-41c5beec.entry.js} +1 -1
  191. package/dist/web-components-library/{p-8ef035ce.entry.js → p-49fd1045.entry.js} +1 -1
  192. package/dist/web-components-library/{p-4a1404e2.entry.js → p-4aaf3433.entry.js} +1 -1
  193. package/dist/web-components-library/{p-4665d79f.entry.js → p-4d9667dc.entry.js} +1 -1
  194. package/{www/build/p-c2dfaef9.entry.js → dist/web-components-library/p-5590d187.entry.js} +1 -1
  195. package/dist/web-components-library/p-5651167f.entry.js +1 -0
  196. package/dist/web-components-library/{p-15b45bd6.entry.js → p-5683fb4a.entry.js} +1 -1
  197. package/dist/web-components-library/{p-ebcad010.entry.js → p-5789bbe7.entry.js} +1 -1
  198. package/dist/web-components-library/{p-140cc18f.entry.js → p-578a5ad1.entry.js} +1 -1
  199. package/{www/build/p-45a41bff.entry.js → dist/web-components-library/p-5dfad268.entry.js} +1 -1
  200. package/dist/web-components-library/{p-f113a03a.entry.js → p-5e41c6c2.entry.js} +1 -1
  201. package/dist/web-components-library/{p-6583cbec.entry.js → p-6375f662.entry.js} +1 -1
  202. package/dist/web-components-library/{p-01a920d1.entry.js → p-654c1830.entry.js} +1 -1
  203. package/dist/web-components-library/{p-4c1dc891.entry.js → p-6baa8e33.entry.js} +1 -1
  204. package/dist/web-components-library/{p-1094e4de.entry.js → p-6bb8de3e.entry.js} +1 -1
  205. package/dist/web-components-library/{p-250926fe.entry.js → p-71e8c2af.entry.js} +1 -1
  206. package/dist/web-components-library/{p-bbbdb48a.entry.js → p-729a98ab.entry.js} +1 -1
  207. package/dist/web-components-library/{p-71cc7ed0.entry.js → p-78e26102.entry.js} +1 -1
  208. package/dist/web-components-library/{p-3c5e84f2.entry.js → p-7a3c0d01.entry.js} +1 -1
  209. package/dist/web-components-library/{p-b78fb152.entry.js → p-7ebb03d8.entry.js} +1 -1
  210. package/dist/web-components-library/{p-aa0f7169.entry.js → p-7f2fa336.entry.js} +1 -1
  211. package/dist/web-components-library/{p-5c860beb.entry.js → p-83dda293.entry.js} +1 -1
  212. package/dist/web-components-library/{p-1231efbf.entry.js → p-8537e37d.entry.js} +1 -1
  213. package/dist/web-components-library/{p-be15a83a.entry.js → p-889bcfab.entry.js} +1 -1
  214. package/dist/web-components-library/{p-fa0e0402.entry.js → p-8ddeda29.entry.js} +1 -1
  215. package/dist/web-components-library/{p-0ce6293a.entry.js → p-9260abad.entry.js} +1 -1
  216. package/dist/web-components-library/{p-ac3bc4c2.entry.js → p-9352da73.entry.js} +1 -1
  217. package/dist/web-components-library/{p-b52459fd.entry.js → p-9409540b.entry.js} +1 -1
  218. package/dist/web-components-library/{p-2df6d015.entry.js → p-96da0513.entry.js} +1 -1
  219. package/dist/web-components-library/p-98268a57.js +1 -0
  220. package/{www/build/p-017ddee6.entry.js → dist/web-components-library/p-98e15cf2.entry.js} +1 -1
  221. package/{www/build/p-a7733104.entry.js → dist/web-components-library/p-9c7cf598.entry.js} +1 -1
  222. package/dist/web-components-library/p-9dc8fdb1.entry.js +1 -0
  223. package/dist/web-components-library/{p-1879f46c.entry.js → p-a61ee49c.entry.js} +1 -1
  224. package/dist/web-components-library/{p-c7af96eb.entry.js → p-a759ab46.entry.js} +1 -1
  225. package/dist/web-components-library/p-a785ff38.entry.js +1 -0
  226. package/dist/web-components-library/p-a90d876c.entry.js +1 -0
  227. package/dist/web-components-library/{p-db5863cf.entry.js → p-a9eea65b.entry.js} +1 -1
  228. package/dist/web-components-library/{p-9cb6848c.entry.js → p-b359a48a.entry.js} +1 -1
  229. package/dist/web-components-library/{p-9d3ea635.entry.js → p-b48105a4.entry.js} +1 -1
  230. package/dist/web-components-library/{p-f34a707c.entry.js → p-b68c2b06.entry.js} +1 -1
  231. package/dist/web-components-library/{p-eadaf008.entry.js → p-bc4df198.entry.js} +1 -1
  232. package/dist/web-components-library/{p-24a2786b.js → p-c17b64f1.js} +1 -1
  233. package/dist/web-components-library/{p-1c72783c.entry.js → p-c284139b.entry.js} +1 -1
  234. package/dist/web-components-library/p-c9c7071f.entry.js +1 -0
  235. package/dist/web-components-library/{p-f7f9db16.entry.js → p-caa452fc.entry.js} +1 -1
  236. package/dist/web-components-library/{p-5bbbc979.entry.js → p-cb13d050.entry.js} +1 -1
  237. package/dist/web-components-library/{p-fa1e086f.entry.js → p-cf00f379.entry.js} +1 -1
  238. package/dist/web-components-library/{p-fdfca9b7.entry.js → p-d39c0372.entry.js} +1 -1
  239. package/dist/web-components-library/{p-8edb6b65.entry.js → p-d4927410.entry.js} +1 -1
  240. package/dist/web-components-library/{p-5aff6913.entry.js → p-d59d1090.entry.js} +1 -1
  241. package/dist/web-components-library/p-d64c6f56.entry.js +1 -0
  242. package/dist/web-components-library/{p-6847ed50.entry.js → p-d97dd15a.entry.js} +1 -1
  243. package/dist/web-components-library/{p-74fb3d69.entry.js → p-e2560604.entry.js} +1 -1
  244. package/dist/web-components-library/p-e5602e1b.js +1 -0
  245. package/dist/web-components-library/p-f6a11970.entry.js +1 -0
  246. package/dist/web-components-library/{p-4e896ed8.entry.js → p-fc2043f7.entry.js} +1 -1
  247. package/{www/build/p-b171474c.entry.js → dist/web-components-library/p-fc5bb8d5.entry.js} +1 -1
  248. package/{www/build/p-f333967e.entry.js → dist/web-components-library/p-fd167bfb.entry.js} +1 -1
  249. package/dist/web-components-library/p-febe0261.entry.js +1 -0
  250. package/dist/web-components-library/web-components-library.css +1 -1
  251. package/dist/web-components-library/web-components-library.esm.js +1 -1
  252. package/loader/index.d.ts +0 -1
  253. package/package.json +2 -2
  254. package/react/components.d.ts +4 -0
  255. package/react/components.js +6 -2
  256. package/react/components.js.map +1 -1
  257. package/react/react-component-lib/createComponent.d.ts +1 -1
  258. package/react/react-component-lib/createComponent.js +42 -10
  259. package/react/react-component-lib/createComponent.js.map +1 -1
  260. package/react/react-component-lib/createOverlayComponent.d.ts +5 -4
  261. package/react/react-component-lib/createOverlayComponent.js +28 -8
  262. package/react/react-component-lib/createOverlayComponent.js.map +1 -1
  263. package/react/react-component-lib/utils/attachProps.d.ts +1 -1
  264. package/react/react-component-lib/utils/attachProps.js +14 -12
  265. package/react/react-component-lib/utils/attachProps.js.map +1 -1
  266. package/react/react-component-lib/utils/index.d.ts +4 -1
  267. package/react/react-component-lib/utils/index.js +20 -5
  268. package/react/react-component-lib/utils/index.js.map +1 -1
  269. package/www/build/index.esm.js +1 -1
  270. package/www/build/{p-cf914ea7.entry.js → p-02474663.entry.js} +1 -1
  271. package/{dist/web-components-library/p-4a414eb2.entry.js → www/build/p-104b70e5.entry.js} +1 -1
  272. package/www/build/{p-8deddec7.entry.js → p-105b82a6.entry.js} +1 -1
  273. package/www/build/{p-3552098c.entry.js → p-21a85d4f.entry.js} +1 -1
  274. package/www/build/{p-29df410a.entry.js → p-24d62d5d.entry.js} +1 -1
  275. package/{dist/web-components-library/p-74200866.entry.js → www/build/p-26286e79.entry.js} +1 -1
  276. package/www/build/{p-9af1322d.entry.js → p-2c836d42.entry.js} +1 -1
  277. package/www/build/{p-698e18cf.entry.js → p-2c8e542b.entry.js} +1 -1
  278. package/www/build/{p-f1cc3489.entry.js → p-2d74660a.entry.js} +1 -1
  279. package/{dist/web-components-library/p-ca136ef7.entry.js → www/build/p-2edeb36b.entry.js} +1 -1
  280. package/www/build/{p-a025a565.entry.js → p-32fbc96b.entry.js} +1 -1
  281. package/www/build/{p-d9917511.entry.js → p-3371604c.entry.js} +1 -1
  282. package/www/build/{p-e1f1f39e.entry.js → p-3fc438b7.entry.js} +1 -1
  283. package/www/build/{p-cfebc80e.entry.js → p-41c5beec.entry.js} +1 -1
  284. package/www/build/{p-8ef035ce.entry.js → p-49fd1045.entry.js} +1 -1
  285. package/www/build/{p-4a1404e2.entry.js → p-4aaf3433.entry.js} +1 -1
  286. package/www/build/{p-4665d79f.entry.js → p-4d9667dc.entry.js} +1 -1
  287. package/{dist/web-components-library/p-c2dfaef9.entry.js → www/build/p-5590d187.entry.js} +1 -1
  288. package/www/build/p-5651167f.entry.js +1 -0
  289. package/www/build/{p-15b45bd6.entry.js → p-5683fb4a.entry.js} +1 -1
  290. package/www/build/{p-ebcad010.entry.js → p-5789bbe7.entry.js} +1 -1
  291. package/www/build/{p-140cc18f.entry.js → p-578a5ad1.entry.js} +1 -1
  292. package/{dist/web-components-library/p-45a41bff.entry.js → www/build/p-5dfad268.entry.js} +1 -1
  293. package/www/build/{p-f113a03a.entry.js → p-5e41c6c2.entry.js} +1 -1
  294. package/www/build/{p-6583cbec.entry.js → p-6375f662.entry.js} +1 -1
  295. package/www/build/{p-01a920d1.entry.js → p-654c1830.entry.js} +1 -1
  296. package/www/build/{p-4c1dc891.entry.js → p-6baa8e33.entry.js} +1 -1
  297. package/www/build/{p-1094e4de.entry.js → p-6bb8de3e.entry.js} +1 -1
  298. package/www/build/{p-250926fe.entry.js → p-71e8c2af.entry.js} +1 -1
  299. package/www/build/{p-bbbdb48a.entry.js → p-729a98ab.entry.js} +1 -1
  300. package/www/build/{p-71cc7ed0.entry.js → p-78e26102.entry.js} +1 -1
  301. package/www/build/{p-3c5e84f2.entry.js → p-7a3c0d01.entry.js} +1 -1
  302. package/www/build/{p-b78fb152.entry.js → p-7ebb03d8.entry.js} +1 -1
  303. package/www/build/{p-aa0f7169.entry.js → p-7f2fa336.entry.js} +1 -1
  304. package/www/build/{p-5c860beb.entry.js → p-83dda293.entry.js} +1 -1
  305. package/www/build/{p-1231efbf.entry.js → p-8537e37d.entry.js} +1 -1
  306. package/www/build/{p-be15a83a.entry.js → p-889bcfab.entry.js} +1 -1
  307. package/www/build/{p-fa0e0402.entry.js → p-8ddeda29.entry.js} +1 -1
  308. package/www/build/{p-0ce6293a.entry.js → p-9260abad.entry.js} +1 -1
  309. package/www/build/{p-ac3bc4c2.entry.js → p-9352da73.entry.js} +1 -1
  310. package/www/build/{p-b52459fd.entry.js → p-9409540b.entry.js} +1 -1
  311. package/www/build/{p-2df6d015.entry.js → p-96da0513.entry.js} +1 -1
  312. package/www/build/p-98268a57.js +1 -0
  313. package/{dist/web-components-library/p-017ddee6.entry.js → www/build/p-98e15cf2.entry.js} +1 -1
  314. package/{dist/web-components-library/p-a7733104.entry.js → www/build/p-9c7cf598.entry.js} +1 -1
  315. package/www/build/p-9dc8fdb1.entry.js +1 -0
  316. package/www/build/{p-1879f46c.entry.js → p-a61ee49c.entry.js} +1 -1
  317. package/www/build/{p-c7af96eb.entry.js → p-a759ab46.entry.js} +1 -1
  318. package/www/build/p-a785ff38.entry.js +1 -0
  319. package/www/build/p-a90d876c.entry.js +1 -0
  320. package/www/build/{p-db5863cf.entry.js → p-a9eea65b.entry.js} +1 -1
  321. package/www/build/{p-9cb6848c.entry.js → p-b359a48a.entry.js} +1 -1
  322. package/www/build/{p-9d3ea635.entry.js → p-b48105a4.entry.js} +1 -1
  323. package/www/build/{p-f34a707c.entry.js → p-b68c2b06.entry.js} +1 -1
  324. package/www/build/{p-eadaf008.entry.js → p-bc4df198.entry.js} +1 -1
  325. package/www/build/{p-24a2786b.js → p-c17b64f1.js} +1 -1
  326. package/www/build/{p-1c72783c.entry.js → p-c284139b.entry.js} +1 -1
  327. package/www/build/p-c9c7071f.entry.js +1 -0
  328. package/www/build/{p-f7f9db16.entry.js → p-caa452fc.entry.js} +1 -1
  329. package/www/build/{p-5bbbc979.entry.js → p-cb13d050.entry.js} +1 -1
  330. package/www/build/{p-fa1e086f.entry.js → p-cf00f379.entry.js} +1 -1
  331. package/www/build/{p-fdfca9b7.entry.js → p-d39c0372.entry.js} +1 -1
  332. package/www/build/{p-8edb6b65.entry.js → p-d4927410.entry.js} +1 -1
  333. package/www/build/{p-5aff6913.entry.js → p-d59d1090.entry.js} +1 -1
  334. package/www/build/p-d64c6f56.entry.js +1 -0
  335. package/www/build/{p-6847ed50.entry.js → p-d97dd15a.entry.js} +1 -1
  336. package/www/build/{p-74fb3d69.entry.js → p-e2560604.entry.js} +1 -1
  337. package/www/build/p-e5602e1b.js +1 -0
  338. package/www/build/p-f6a11970.entry.js +1 -0
  339. package/www/build/{p-4e896ed8.entry.js → p-fc2043f7.entry.js} +1 -1
  340. package/{dist/web-components-library/p-b171474c.entry.js → www/build/p-fc5bb8d5.entry.js} +1 -1
  341. package/www/build/p-fcff1237.css +812 -0
  342. package/{dist/web-components-library/p-f333967e.entry.js → www/build/p-fd167bfb.entry.js} +1 -1
  343. package/www/build/p-fe32c7fa.js +129 -0
  344. package/www/build/p-febe0261.entry.js +1 -0
  345. package/www/build/web-components-library.css +1 -1
  346. package/www/build/web-components-library.esm.js +1 -1
  347. package/www/build/web-components-library.js +1 -1
  348. package/www/index.html +1 -1
  349. package/www/pages/file-upload.html +236 -0
  350. package/dist/cjs/z-heading.cjs.entry.js +0 -17
  351. package/dist/esm/z-heading.entry.js +0 -13
  352. package/dist/web-components-library/p-3b3cd128.js +0 -1
  353. package/dist/web-components-library/p-483d10ba.entry.js +0 -1
  354. package/dist/web-components-library/p-48e0a763.entry.js +0 -1
  355. package/dist/web-components-library/p-8a061b5b.entry.js +0 -1
  356. package/dist/web-components-library/p-904a85e4.js +0 -1
  357. package/dist/web-components-library/p-a1bb6af2.entry.js +0 -1
  358. package/dist/web-components-library/p-e60c2a06.entry.js +0 -1
  359. package/www/build/p-3b3cd128.js +0 -1
  360. package/www/build/p-483d10ba.entry.js +0 -1
  361. package/www/build/p-48e0a763.entry.js +0 -1
  362. package/www/build/p-8a061b5b.entry.js +0 -1
  363. package/www/build/p-8af945c2.js +0 -1
  364. package/www/build/p-904a85e4.js +0 -1
  365. package/www/build/p-a1bb6af2.entry.js +0 -1
  366. package/www/build/p-e60c2a06.entry.js +0 -1
  367. package/www/build/p-ea943cbd.css +0 -1
@@ -0,0 +1,106 @@
1
+ :host {
2
+ font-family: var(--font-family-sans);
3
+ font-weight: var(--font-rg);
4
+ display: inline-flex;
5
+ }
6
+
7
+ label {
8
+ display: flex;
9
+ align-items: center;
10
+ flex-direction: row;
11
+ cursor: pointer;
12
+ }
13
+
14
+ label.disabled {
15
+ cursor: default;
16
+ }
17
+
18
+ label.right {
19
+ flex-direction: row-reverse;
20
+ }
21
+
22
+ label > span:first-child {
23
+ letter-spacing: 0;
24
+ color: var(--color-text01);
25
+ }
26
+
27
+ label.left > span:first-child {
28
+ margin-right: var(--space-unit);
29
+ }
30
+
31
+ label.right > span:first-child {
32
+ margin-left: var(--space-unit);
33
+ }
34
+
35
+ label > span.container {
36
+ display: flex;
37
+ align-items: center;
38
+ }
39
+
40
+ label > span.container {
41
+ top: 1px;
42
+ left: 1px;
43
+ height: 18px;
44
+ width: calc(var(--space-unit) * 4);
45
+ border-radius: var(--space-unit);
46
+ color: var(--gray500);
47
+ background-color: var(--gray500);
48
+ position: relative;
49
+ cursor: pointer;
50
+ }
51
+
52
+ label > span.container.disabled,
53
+ label > span.container.checked.disabled {
54
+ background-color: var(--color-disabled01);
55
+ cursor: default;
56
+ }
57
+
58
+ label > span.container.checked.disabled > span.circle > z-icon {
59
+ fill: var(--color-disabled01);
60
+ }
61
+
62
+ label > span.container.checked {
63
+ background-color: var(--color-primary01);
64
+ fill: var(--color-primary01);
65
+ }
66
+
67
+ input:focus:focus-visible + label > span.container:not(.disabled) {
68
+ outline: none;
69
+ box-shadow: var(--shadow-focus-primary);
70
+ }
71
+
72
+ input:focus:focus-visible + label > span.container.disabled {
73
+ outline: none;
74
+ }
75
+
76
+ label > span.container:not(.disabled):hover {
77
+ background-color: var(--color-hover-primary);
78
+ fill: var(--color-hover-primary);
79
+ }
80
+
81
+ label > span.container > span.circle {
82
+ top: 1px;
83
+ left: 1px;
84
+ position: absolute;
85
+ display: flex;
86
+ align-items: center;
87
+ justify-content: center;
88
+ margin: 0;
89
+ height: calc(var(--space-unit) * 2);
90
+ width: calc(var(--space-unit) * 2);
91
+ border-radius: 7px;
92
+ background-color: var(--color-white);
93
+ box-shadow: var(--shadow-1);
94
+ transition: transform 0.3s ease;
95
+ }
96
+
97
+ label > span.container.checked > span.circle {
98
+ transform: translateX(calc(100% - 2px));
99
+ }
100
+
101
+ input[type="checkbox"] {
102
+ position: absolute;
103
+ opacity: 0;
104
+ z-index: -1;
105
+ pointer-events: none;
106
+ }
@@ -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,109 @@
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
+ import './index';
6
+ export class ZFile {
7
+ constructor() {
8
+ this.allowTooltip = false;
9
+ this.tooltipVisible = false;
10
+ }
11
+ removeFileHandler() {
12
+ this.removeFile.emit();
13
+ this.el.remove();
14
+ }
15
+ onMouseOver() {
16
+ this.tooltipVisible = true;
17
+ }
18
+ onMouseLeave() {
19
+ this.tooltipVisible = false;
20
+ }
21
+ componentDidLoad() {
22
+ var _a, _b;
23
+ if (this.elementHasEllipsis() && window.innerWidth > tabletBreakpoint)
24
+ this.allowTooltip = true;
25
+ (_b = (_a = this.icon) === null || _a === void 0 ? void 0 : _a.focus) === null || _b === void 0 ? void 0 : _b.call(_a);
26
+ }
27
+ elementHasEllipsis() {
28
+ return this.ellipsis.offsetWidth < this.ellipsis.scrollWidth;
29
+ }
30
+ render() {
31
+ return (h(Host, null,
32
+ this.allowTooltip && (h("z-tooltip", { open: this.tooltipVisible, type: TooltipPosition.AUTO, "bind-to": `#chip-${this.fileNumber}` },
33
+ h("span", { class: "body-5 tootip-content" }, this.ellipsis.innerText))),
34
+ h("z-chip", { id: `chip-${this.fileNumber}`, filter: true, type: ZChipType.default },
35
+ h("div", { class: "chip-content" },
36
+ h("span", { ref: (el) => (this.ellipsis = el), tabIndex: -1, class: {
37
+ "body-3-sb": getDevice() == DeviceEnum.desktop,
38
+ "body-2-sb": getDevice() !== DeviceEnum.desktop,
39
+ } },
40
+ h("slot", null)),
41
+ h("z-icon", { "aria-label": "Elimina file", tabIndex: 0, onClick: () => this.removeFileHandler(), onKeyPress: (e) => {
42
+ if (e.code == "Space" || e.code == "Enter") {
43
+ e.preventDefault();
44
+ this.removeFileHandler();
45
+ }
46
+ }, name: "multiply-circled", height: getDevice() !== DeviceEnum.desktop ? 20 : 15, width: getDevice() !== DeviceEnum.desktop ? 20 : 15, ref: (val) => (this.icon = val) })))));
47
+ }
48
+ static get is() { return "z-file"; }
49
+ static get encapsulation() { return "scoped"; }
50
+ static get originalStyleUrls() { return {
51
+ "$": ["styles.css"]
52
+ }; }
53
+ static get styleUrls() { return {
54
+ "$": ["styles.css"]
55
+ }; }
56
+ static get properties() { return {
57
+ "fileNumber": {
58
+ "type": "number",
59
+ "mutable": false,
60
+ "complexType": {
61
+ "original": "number",
62
+ "resolved": "number",
63
+ "references": {}
64
+ },
65
+ "required": false,
66
+ "optional": false,
67
+ "docs": {
68
+ "tags": [],
69
+ "text": ""
70
+ },
71
+ "attribute": "file-number",
72
+ "reflect": false
73
+ }
74
+ }; }
75
+ static get states() { return {
76
+ "allowTooltip": {},
77
+ "tooltipVisible": {}
78
+ }; }
79
+ static get events() { return [{
80
+ "method": "removeFile",
81
+ "name": "removeFile",
82
+ "bubbles": true,
83
+ "cancelable": true,
84
+ "composed": true,
85
+ "docs": {
86
+ "tags": [],
87
+ "text": "Emitted when a z-file component is removed from the DOM"
88
+ },
89
+ "complexType": {
90
+ "original": "any",
91
+ "resolved": "any",
92
+ "references": {}
93
+ }
94
+ }]; }
95
+ static get elementRef() { return "el"; }
96
+ static get listeners() { return [{
97
+ "name": "mouseover",
98
+ "method": "onMouseOver",
99
+ "target": undefined,
100
+ "capture": false,
101
+ "passive": true
102
+ }, {
103
+ "name": "mouseleave",
104
+ "method": "onMouseLeave",
105
+ "target": undefined,
106
+ "capture": false,
107
+ "passive": true
108
+ }]; }
109
+ }
@@ -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
+ }