@zanichelli/albe-web-components 2.40.0 → 2.40.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (388) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/dist/cjs/{index-25206491.js → index-6b11e272.js} +10 -10
  3. package/dist/cjs/{index-e826b4ad.js → index-dee3e21d.js} +0 -3
  4. package/dist/cjs/index.cjs.js +2 -2
  5. package/dist/cjs/loader.cjs.js +2 -2
  6. package/dist/cjs/{utils-6410fc7d.js → utils-428c57eb.js} +3 -3
  7. package/dist/cjs/web-components-library.cjs.js +2 -2
  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 +353 -0
  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-footer-link_3.cjs.entry.js +1 -1
  22. package/dist/cjs/z-footer.cjs.entry.js +2 -2
  23. package/dist/cjs/z-ghost-loading.cjs.entry.js +1 -1
  24. package/dist/cjs/z-heading.cjs.entry.js +17 -0
  25. package/dist/cjs/z-icon-package.cjs.entry.js +1 -1
  26. package/dist/cjs/z-info-box.cjs.entry.js +1 -1
  27. package/dist/cjs/z-list_3.cjs.entry.js +2 -2
  28. package/dist/cjs/z-menu-dropdown_2.cjs.entry.js +3 -3
  29. package/dist/cjs/z-menu-section.cjs.entry.js +1 -1
  30. package/dist/cjs/z-menu.cjs.entry.js +1 -1
  31. package/dist/cjs/z-messages-pocket.cjs.entry.js +2 -2
  32. package/dist/cjs/z-modal-login.cjs.entry.js +2 -2
  33. package/dist/cjs/z-modal.cjs.entry.js +1 -1
  34. package/dist/cjs/z-myz-card-alert.cjs.entry.js +2 -2
  35. package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +2 -2
  36. package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +1 -1
  37. package/dist/cjs/z-myz-card-footer.cjs.entry.js +2 -2
  38. package/dist/cjs/z-myz-card-icon.cjs.entry.js +1 -1
  39. package/dist/cjs/z-myz-card-info.cjs.entry.js +3 -3
  40. package/dist/cjs/z-myz-card-list.cjs.entry.js +1 -1
  41. package/dist/cjs/z-myz-card_4.cjs.entry.js +2 -2
  42. package/dist/cjs/z-myz-list-item.cjs.entry.js +3 -3
  43. package/dist/cjs/z-myz-topbar.cjs.entry.js +2 -2
  44. package/dist/cjs/z-navigation-tab.cjs.entry.js +1 -1
  45. package/dist/cjs/z-navigation-tabs.cjs.entry.js +2 -2
  46. package/dist/cjs/z-notification.cjs.entry.js +2 -2
  47. package/dist/cjs/z-otp.cjs.entry.js +2 -2
  48. package/dist/cjs/z-pagination-bar.cjs.entry.js +3 -3
  49. package/dist/cjs/z-pagination-page.cjs.entry.js +1 -1
  50. package/dist/cjs/z-panel-elem.cjs.entry.js +1 -1
  51. package/dist/cjs/z-pocket-message.cjs.entry.js +1 -1
  52. package/dist/cjs/z-pocket_3.cjs.entry.js +3 -3
  53. package/dist/cjs/z-popover.cjs.entry.js +3 -3
  54. package/dist/cjs/z-slideshow.cjs.entry.js +3 -3
  55. package/dist/cjs/z-status-tag.cjs.entry.js +2 -2
  56. package/dist/cjs/z-stepper-item.cjs.entry.js +1 -1
  57. package/dist/cjs/z-stepper.cjs.entry.js +1 -1
  58. package/dist/cjs/z-table-body.cjs.entry.js +1 -1
  59. package/dist/cjs/z-table-cell.cjs.entry.js +2 -2
  60. package/dist/cjs/z-table-empty-box.cjs.entry.js +1 -1
  61. package/dist/cjs/z-table-expanded-row.cjs.entry.js +1 -1
  62. package/dist/cjs/z-table-footer.cjs.entry.js +1 -1
  63. package/dist/cjs/z-table-head.cjs.entry.js +1 -1
  64. package/dist/cjs/z-table-header-row.cjs.entry.js +1 -1
  65. package/dist/cjs/z-table-header.cjs.entry.js +3 -3
  66. package/dist/cjs/z-table-row.cjs.entry.js +2 -2
  67. package/dist/cjs/z-table-sticky-footer.cjs.entry.js +1 -1
  68. package/dist/cjs/z-table.cjs.entry.js +2 -2
  69. package/dist/cjs/z-toast-notification-list.cjs.entry.js +2 -2
  70. package/dist/cjs/z-toast-notification.cjs.entry.js +2 -2
  71. package/dist/cjs/z-toggle-button.cjs.entry.js +1 -1
  72. package/dist/cjs/z-tooltip.cjs.entry.js +2 -2
  73. package/dist/cjs/z-user-dropdown.cjs.entry.js +1 -1
  74. package/dist/cjs/z-visually-hidden.cjs.entry.js +1 -1
  75. package/dist/collection/beans/index.js +10 -10
  76. package/dist/collection/collection-manifest.json +1 -4
  77. package/dist/collection/components/buttons/z-button/index.js +1 -2
  78. package/dist/collection/components/z-offcanvas/index.js +147 -0
  79. package/dist/collection/components/z-offcanvas/styles.css +163 -0
  80. package/dist/collection/utils/utils.js +2 -2
  81. package/dist/esm/{index-cca2b0d2.js → index-9d70864c.js} +11 -11
  82. package/dist/esm/{index-8782dff4.js → index-fa9e549c.js} +0 -3
  83. package/dist/esm/index.js +2 -2
  84. package/dist/esm/loader.js +2 -2
  85. package/dist/esm/{utils-cdd5a909.js → utils-347de6f5.js} +3 -3
  86. package/dist/esm/web-components-library.js +2 -2
  87. package/dist/esm/z-alert.entry.js +1 -1
  88. package/dist/esm/z-app-header.entry.js +1 -1
  89. package/dist/esm/z-app-switcher_10.entry.js +340 -0
  90. package/dist/esm/z-aria-alert.entry.js +2 -2
  91. package/dist/esm/z-avatar.entry.js +2 -2
  92. package/dist/esm/z-body_2.entry.js +1 -1
  93. package/dist/esm/z-button-filter_5.entry.js +3 -3
  94. package/dist/esm/z-button-sort.entry.js +1 -1
  95. package/dist/esm/z-candybar.entry.js +1 -1
  96. package/dist/esm/z-chip.entry.js +2 -2
  97. package/dist/esm/z-combobox.entry.js +3 -3
  98. package/dist/esm/z-contextual-menu.entry.js +2 -2
  99. package/dist/esm/z-cookiebar.entry.js +2 -2
  100. package/dist/esm/z-footer-link_3.entry.js +1 -1
  101. package/dist/esm/z-footer.entry.js +2 -2
  102. package/dist/esm/z-ghost-loading.entry.js +1 -1
  103. package/dist/esm/z-heading.entry.js +13 -0
  104. package/dist/esm/z-icon-package.entry.js +1 -1
  105. package/dist/esm/z-info-box.entry.js +1 -1
  106. package/dist/esm/z-list_3.entry.js +2 -2
  107. package/dist/esm/z-menu-dropdown_2.entry.js +3 -3
  108. package/dist/esm/z-menu-section.entry.js +1 -1
  109. package/dist/esm/z-menu.entry.js +1 -1
  110. package/dist/esm/z-messages-pocket.entry.js +2 -2
  111. package/dist/esm/z-modal-login.entry.js +2 -2
  112. package/dist/esm/z-modal.entry.js +1 -1
  113. package/dist/esm/z-myz-card-alert.entry.js +2 -2
  114. package/dist/esm/z-myz-card-dictionary.entry.js +2 -2
  115. package/dist/esm/z-myz-card-footer-sections.entry.js +1 -1
  116. package/dist/esm/z-myz-card-footer.entry.js +2 -2
  117. package/dist/esm/z-myz-card-icon.entry.js +1 -1
  118. package/dist/esm/z-myz-card-info.entry.js +3 -3
  119. package/dist/esm/z-myz-card-list.entry.js +1 -1
  120. package/dist/esm/z-myz-card_4.entry.js +2 -2
  121. package/dist/esm/z-myz-list-item.entry.js +3 -3
  122. package/dist/esm/z-myz-topbar.entry.js +2 -2
  123. package/dist/esm/z-navigation-tab.entry.js +1 -1
  124. package/dist/esm/z-navigation-tabs.entry.js +2 -2
  125. package/dist/esm/z-notification.entry.js +2 -2
  126. package/dist/esm/z-otp.entry.js +2 -2
  127. package/dist/esm/z-pagination-bar.entry.js +3 -3
  128. package/dist/esm/z-pagination-page.entry.js +1 -1
  129. package/dist/esm/z-panel-elem.entry.js +1 -1
  130. package/dist/esm/z-pocket-message.entry.js +1 -1
  131. package/dist/esm/z-pocket_3.entry.js +3 -3
  132. package/dist/esm/z-popover.entry.js +3 -3
  133. package/dist/esm/z-slideshow.entry.js +3 -3
  134. package/dist/esm/z-status-tag.entry.js +2 -2
  135. package/dist/esm/z-stepper-item.entry.js +1 -1
  136. package/dist/esm/z-stepper.entry.js +1 -1
  137. package/dist/esm/z-table-body.entry.js +1 -1
  138. package/dist/esm/z-table-cell.entry.js +2 -2
  139. package/dist/esm/z-table-empty-box.entry.js +1 -1
  140. package/dist/esm/z-table-expanded-row.entry.js +1 -1
  141. package/dist/esm/z-table-footer.entry.js +1 -1
  142. package/dist/esm/z-table-head.entry.js +1 -1
  143. package/dist/esm/z-table-header-row.entry.js +1 -1
  144. package/dist/esm/z-table-header.entry.js +3 -3
  145. package/dist/esm/z-table-row.entry.js +2 -2
  146. package/dist/esm/z-table-sticky-footer.entry.js +1 -1
  147. package/dist/esm/z-table.entry.js +2 -2
  148. package/dist/esm/z-toast-notification-list.entry.js +2 -2
  149. package/dist/esm/z-toast-notification.entry.js +2 -2
  150. package/dist/esm/z-toggle-button.entry.js +1 -1
  151. package/dist/esm/z-tooltip.entry.js +2 -2
  152. package/dist/esm/z-user-dropdown.entry.js +1 -1
  153. package/dist/esm/z-visually-hidden.entry.js +1 -1
  154. package/dist/types/beans/index.d.ts +8 -8
  155. package/dist/types/components/buttons/z-button/index.d.ts +1 -2
  156. package/dist/types/components/z-offcanvas/index.d.ts +25 -0
  157. package/dist/types/components.d.ts +42 -124
  158. package/dist/web-components-library/index.esm.js +1 -1
  159. package/dist/web-components-library/{p-95b95a4c.entry.js → p-017ddee6.entry.js} +1 -1
  160. package/dist/web-components-library/{p-a73f0693.entry.js → p-01a920d1.entry.js} +1 -1
  161. package/dist/web-components-library/{p-99f91860.entry.js → p-0ce6293a.entry.js} +1 -1
  162. package/dist/web-components-library/{p-68fab13e.entry.js → p-1094e4de.entry.js} +1 -1
  163. package/dist/web-components-library/{p-daec8d7f.entry.js → p-1231efbf.entry.js} +1 -1
  164. package/dist/web-components-library/{p-7dcda694.entry.js → p-140cc18f.entry.js} +1 -1
  165. package/dist/web-components-library/{p-a5460f1e.entry.js → p-15b45bd6.entry.js} +1 -1
  166. package/dist/web-components-library/{p-1c66e50c.entry.js → p-1879f46c.entry.js} +1 -1
  167. package/dist/web-components-library/{p-cddc1de0.entry.js → p-1c72783c.entry.js} +1 -1
  168. package/dist/web-components-library/p-24a2786b.js +1 -0
  169. package/dist/web-components-library/{p-431d0295.entry.js → p-250926fe.entry.js} +1 -1
  170. package/dist/web-components-library/{p-6a4dfee8.entry.js → p-29df410a.entry.js} +1 -1
  171. package/{www/build/p-621a7fac.entry.js → dist/web-components-library/p-2df6d015.entry.js} +1 -1
  172. package/dist/web-components-library/{p-d9a14771.entry.js → p-3552098c.entry.js} +1 -1
  173. package/dist/web-components-library/p-3b3cd128.js +1 -0
  174. package/dist/web-components-library/{p-006a91ce.entry.js → p-3c5e84f2.entry.js} +1 -1
  175. package/{www/build/p-e88726bc.entry.js → dist/web-components-library/p-45a41bff.entry.js} +1 -1
  176. package/dist/web-components-library/{p-d1a0cb4c.entry.js → p-4665d79f.entry.js} +1 -1
  177. package/dist/web-components-library/p-483d10ba.entry.js +1 -0
  178. package/dist/web-components-library/p-48e0a763.entry.js +1 -0
  179. package/dist/web-components-library/{p-f4062940.entry.js → p-4a1404e2.entry.js} +1 -1
  180. package/dist/web-components-library/{p-c277d035.entry.js → p-4a414eb2.entry.js} +1 -1
  181. package/dist/web-components-library/{p-d338e5a9.entry.js → p-4c1dc891.entry.js} +1 -1
  182. package/dist/web-components-library/{p-db1508ed.entry.js → p-4e896ed8.entry.js} +1 -1
  183. package/dist/web-components-library/{p-a3820e7d.entry.js → p-5aff6913.entry.js} +1 -1
  184. package/dist/web-components-library/{p-97c04e0c.entry.js → p-5bbbc979.entry.js} +1 -1
  185. package/dist/web-components-library/{p-277f19e8.entry.js → p-5c860beb.entry.js} +1 -1
  186. package/dist/web-components-library/{p-335768cc.entry.js → p-6583cbec.entry.js} +1 -1
  187. package/{www/build/p-8741a278.entry.js → dist/web-components-library/p-6847ed50.entry.js} +1 -1
  188. package/dist/web-components-library/{p-3830db49.entry.js → p-698e18cf.entry.js} +1 -1
  189. package/dist/web-components-library/{p-016c1fd4.entry.js → p-71cc7ed0.entry.js} +1 -1
  190. package/dist/web-components-library/p-74200866.entry.js +1 -0
  191. package/dist/web-components-library/{p-d1432a24.entry.js → p-74fb3d69.entry.js} +1 -1
  192. package/dist/web-components-library/{p-84f934a8.entry.js → p-8a061b5b.entry.js} +1 -1
  193. package/dist/web-components-library/{p-f6bfde21.entry.js → p-8deddec7.entry.js} +1 -1
  194. package/dist/web-components-library/{p-8497f556.entry.js → p-8edb6b65.entry.js} +1 -1
  195. package/dist/web-components-library/{p-8c298051.entry.js → p-8ef035ce.entry.js} +1 -1
  196. package/dist/web-components-library/{p-1acbd992.js → p-904a85e4.js} +1 -1
  197. package/dist/web-components-library/{p-22e61c79.entry.js → p-9af1322d.entry.js} +1 -1
  198. package/dist/web-components-library/{p-e4739505.entry.js → p-9cb6848c.entry.js} +1 -1
  199. package/dist/web-components-library/{p-7f866d57.entry.js → p-9d3ea635.entry.js} +1 -1
  200. package/dist/web-components-library/{p-6043d78f.entry.js → p-a025a565.entry.js} +1 -1
  201. package/dist/web-components-library/p-a1bb6af2.entry.js +1 -0
  202. package/{www/build/p-99f59836.entry.js → dist/web-components-library/p-a7733104.entry.js} +1 -1
  203. package/dist/web-components-library/{p-39a787af.entry.js → p-aa0f7169.entry.js} +1 -1
  204. package/dist/web-components-library/{p-b1e6a2ae.entry.js → p-ac3bc4c2.entry.js} +1 -1
  205. package/{www/build/p-70c7f657.entry.js → dist/web-components-library/p-b171474c.entry.js} +1 -1
  206. package/dist/web-components-library/{p-a0fef4f3.entry.js → p-b52459fd.entry.js} +1 -1
  207. package/dist/web-components-library/{p-e8305a91.entry.js → p-b78fb152.entry.js} +1 -1
  208. package/dist/web-components-library/p-bbbdb48a.entry.js +1 -0
  209. package/dist/web-components-library/{p-031de7f3.entry.js → p-be15a83a.entry.js} +1 -1
  210. package/{www/build/p-51957070.entry.js → dist/web-components-library/p-c2dfaef9.entry.js} +1 -1
  211. package/dist/web-components-library/{p-1a6b8d43.entry.js → p-c7af96eb.entry.js} +1 -1
  212. package/dist/web-components-library/{p-d950fcf8.entry.js → p-ca136ef7.entry.js} +1 -1
  213. package/dist/web-components-library/{p-836d2cb2.entry.js → p-cf914ea7.entry.js} +1 -1
  214. package/dist/web-components-library/{p-b0027b69.entry.js → p-cfebc80e.entry.js} +1 -1
  215. package/{www/build/p-1c7ed895.entry.js → dist/web-components-library/p-d9917511.entry.js} +1 -1
  216. package/dist/web-components-library/{p-2d45e45e.entry.js → p-db5863cf.entry.js} +1 -1
  217. package/dist/web-components-library/{p-18d36e2e.entry.js → p-e1f1f39e.entry.js} +1 -1
  218. package/dist/web-components-library/p-e60c2a06.entry.js +1 -0
  219. package/dist/web-components-library/{p-824875b4.entry.js → p-eadaf008.entry.js} +1 -1
  220. package/dist/web-components-library/{p-3504da90.entry.js → p-ebcad010.entry.js} +1 -1
  221. package/{www/build/p-8fe1b60c.entry.js → dist/web-components-library/p-f113a03a.entry.js} +1 -1
  222. package/dist/web-components-library/{p-152f95de.entry.js → p-f1cc3489.entry.js} +1 -1
  223. package/dist/web-components-library/{p-823cbb37.entry.js → p-f333967e.entry.js} +1 -1
  224. package/dist/web-components-library/{p-ee19d602.entry.js → p-f34a707c.entry.js} +1 -1
  225. package/dist/web-components-library/{p-13a0a93a.entry.js → p-f7f9db16.entry.js} +1 -1
  226. package/dist/web-components-library/{p-ee432245.entry.js → p-fa0e0402.entry.js} +1 -1
  227. package/dist/web-components-library/{p-d943ee16.entry.js → p-fa1e086f.entry.js} +1 -1
  228. package/dist/web-components-library/{p-b1e3a655.entry.js → p-fdfca9b7.entry.js} +1 -1
  229. package/dist/web-components-library/web-components-library.esm.js +1 -1
  230. package/package.json +1 -1
  231. package/react/components.d.ts +1 -4
  232. package/react/components.js +3 -6
  233. package/react/components.js.map +1 -1
  234. package/www/assets/favicon.png +0 -0
  235. package/www/build/index.esm.js +1 -1
  236. package/www/build/{p-95b95a4c.entry.js → p-017ddee6.entry.js} +1 -1
  237. package/www/build/{p-a73f0693.entry.js → p-01a920d1.entry.js} +1 -1
  238. package/www/build/{p-99f91860.entry.js → p-0ce6293a.entry.js} +1 -1
  239. package/www/build/{p-68fab13e.entry.js → p-1094e4de.entry.js} +1 -1
  240. package/www/build/{p-daec8d7f.entry.js → p-1231efbf.entry.js} +1 -1
  241. package/www/build/{p-7dcda694.entry.js → p-140cc18f.entry.js} +1 -1
  242. package/www/build/{p-a5460f1e.entry.js → p-15b45bd6.entry.js} +1 -1
  243. package/www/build/{p-1c66e50c.entry.js → p-1879f46c.entry.js} +1 -1
  244. package/www/build/{p-cddc1de0.entry.js → p-1c72783c.entry.js} +1 -1
  245. package/www/build/p-24a2786b.js +1 -0
  246. package/www/build/{p-431d0295.entry.js → p-250926fe.entry.js} +1 -1
  247. package/www/build/{p-6a4dfee8.entry.js → p-29df410a.entry.js} +1 -1
  248. package/{dist/web-components-library/p-621a7fac.entry.js → www/build/p-2df6d015.entry.js} +1 -1
  249. package/www/build/{p-d9a14771.entry.js → p-3552098c.entry.js} +1 -1
  250. package/www/build/p-3b3cd128.js +1 -0
  251. package/www/build/{p-006a91ce.entry.js → p-3c5e84f2.entry.js} +1 -1
  252. package/{dist/web-components-library/p-e88726bc.entry.js → www/build/p-45a41bff.entry.js} +1 -1
  253. package/www/build/{p-d1a0cb4c.entry.js → p-4665d79f.entry.js} +1 -1
  254. package/www/build/p-483d10ba.entry.js +1 -0
  255. package/www/build/p-48e0a763.entry.js +1 -0
  256. package/www/build/{p-f4062940.entry.js → p-4a1404e2.entry.js} +1 -1
  257. package/www/build/{p-c277d035.entry.js → p-4a414eb2.entry.js} +1 -1
  258. package/www/build/{p-d338e5a9.entry.js → p-4c1dc891.entry.js} +1 -1
  259. package/www/build/{p-db1508ed.entry.js → p-4e896ed8.entry.js} +1 -1
  260. package/www/build/{p-a3820e7d.entry.js → p-5aff6913.entry.js} +1 -1
  261. package/www/build/{p-97c04e0c.entry.js → p-5bbbc979.entry.js} +1 -1
  262. package/www/build/{p-277f19e8.entry.js → p-5c860beb.entry.js} +1 -1
  263. package/www/build/{p-335768cc.entry.js → p-6583cbec.entry.js} +1 -1
  264. package/{dist/web-components-library/p-8741a278.entry.js → www/build/p-6847ed50.entry.js} +1 -1
  265. package/www/build/{p-3830db49.entry.js → p-698e18cf.entry.js} +1 -1
  266. package/www/build/{p-016c1fd4.entry.js → p-71cc7ed0.entry.js} +1 -1
  267. package/www/build/p-74200866.entry.js +1 -0
  268. package/www/build/{p-d1432a24.entry.js → p-74fb3d69.entry.js} +1 -1
  269. package/www/build/{p-84f934a8.entry.js → p-8a061b5b.entry.js} +1 -1
  270. package/www/build/p-8af945c2.js +1 -0
  271. package/www/build/{p-f6bfde21.entry.js → p-8deddec7.entry.js} +1 -1
  272. package/www/build/{p-8497f556.entry.js → p-8edb6b65.entry.js} +1 -1
  273. package/www/build/{p-8c298051.entry.js → p-8ef035ce.entry.js} +1 -1
  274. package/www/build/{p-1acbd992.js → p-904a85e4.js} +1 -1
  275. package/www/build/{p-22e61c79.entry.js → p-9af1322d.entry.js} +1 -1
  276. package/www/build/{p-e4739505.entry.js → p-9cb6848c.entry.js} +1 -1
  277. package/www/build/{p-7f866d57.entry.js → p-9d3ea635.entry.js} +1 -1
  278. package/www/build/{p-6043d78f.entry.js → p-a025a565.entry.js} +1 -1
  279. package/www/build/p-a1bb6af2.entry.js +1 -0
  280. package/{dist/web-components-library/p-99f59836.entry.js → www/build/p-a7733104.entry.js} +1 -1
  281. package/www/build/{p-39a787af.entry.js → p-aa0f7169.entry.js} +1 -1
  282. package/www/build/{p-b1e6a2ae.entry.js → p-ac3bc4c2.entry.js} +1 -1
  283. package/{dist/web-components-library/p-70c7f657.entry.js → www/build/p-b171474c.entry.js} +1 -1
  284. package/www/build/{p-a0fef4f3.entry.js → p-b52459fd.entry.js} +1 -1
  285. package/www/build/{p-e8305a91.entry.js → p-b78fb152.entry.js} +1 -1
  286. package/www/build/p-bbbdb48a.entry.js +1 -0
  287. package/www/build/{p-031de7f3.entry.js → p-be15a83a.entry.js} +1 -1
  288. package/{dist/web-components-library/p-51957070.entry.js → www/build/p-c2dfaef9.entry.js} +1 -1
  289. package/www/build/{p-1a6b8d43.entry.js → p-c7af96eb.entry.js} +1 -1
  290. package/www/build/{p-d950fcf8.entry.js → p-ca136ef7.entry.js} +1 -1
  291. package/www/build/{p-836d2cb2.entry.js → p-cf914ea7.entry.js} +1 -1
  292. package/www/build/{p-b0027b69.entry.js → p-cfebc80e.entry.js} +1 -1
  293. package/{dist/web-components-library/p-1c7ed895.entry.js → www/build/p-d9917511.entry.js} +1 -1
  294. package/www/build/{p-2d45e45e.entry.js → p-db5863cf.entry.js} +1 -1
  295. package/www/build/{p-18d36e2e.entry.js → p-e1f1f39e.entry.js} +1 -1
  296. package/www/build/p-e60c2a06.entry.js +1 -0
  297. package/www/build/p-ea943cbd.css +1 -0
  298. package/www/build/{p-824875b4.entry.js → p-eadaf008.entry.js} +1 -1
  299. package/www/build/{p-3504da90.entry.js → p-ebcad010.entry.js} +1 -1
  300. package/{dist/web-components-library/p-8fe1b60c.entry.js → www/build/p-f113a03a.entry.js} +1 -1
  301. package/www/build/{p-152f95de.entry.js → p-f1cc3489.entry.js} +1 -1
  302. package/www/build/{p-823cbb37.entry.js → p-f333967e.entry.js} +1 -1
  303. package/www/build/{p-ee19d602.entry.js → p-f34a707c.entry.js} +1 -1
  304. package/www/build/{p-13a0a93a.entry.js → p-f7f9db16.entry.js} +1 -1
  305. package/www/build/{p-ee432245.entry.js → p-fa0e0402.entry.js} +1 -1
  306. package/www/build/{p-d943ee16.entry.js → p-fa1e086f.entry.js} +1 -1
  307. package/www/build/{p-b1e3a655.entry.js → p-fdfca9b7.entry.js} +1 -1
  308. package/www/build/web-components-library.esm.js +1 -1
  309. package/www/index.html +32 -8
  310. package/dist/cjs/z-app-switcher.cjs.entry.js +0 -29
  311. package/dist/cjs/z-app-topbar.cjs.entry.js +0 -41
  312. package/dist/cjs/z-button.cjs.entry.js +0 -39
  313. package/dist/cjs/z-card.cjs.entry.js +0 -69
  314. package/dist/cjs/z-carousel.cjs.entry.js +0 -19
  315. package/dist/cjs/z-divider.cjs.entry.js +0 -26
  316. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +0 -49
  317. package/dist/cjs/z-file-upload.cjs.entry.js +0 -169
  318. package/dist/cjs/z-file.cjs.entry.js +0 -53
  319. package/dist/cjs/z-icon.cjs.entry.js +0 -28
  320. package/dist/cjs/z-link.cjs.entry.js +0 -71
  321. package/dist/cjs/z-logo.cjs.entry.js +0 -28
  322. package/dist/cjs/z-toggle-switch.cjs.entry.js +0 -42
  323. package/dist/collection/components/buttons/z-toggle-switch/index.js +0 -136
  324. package/dist/collection/components/buttons/z-toggle-switch/styles.css +0 -115
  325. package/dist/collection/components/file-upload/z-dragdrop-area/index.js +0 -52
  326. package/dist/collection/components/file-upload/z-dragdrop-area/styles.css +0 -62
  327. package/dist/collection/components/file-upload/z-file/index.js +0 -108
  328. package/dist/collection/components/file-upload/z-file/styles.css +0 -61
  329. package/dist/collection/components/file-upload/z-file-upload/index.js +0 -329
  330. package/dist/collection/components/file-upload/z-file-upload/styles.css +0 -87
  331. package/dist/esm/z-app-switcher.entry.js +0 -25
  332. package/dist/esm/z-app-topbar.entry.js +0 -37
  333. package/dist/esm/z-button.entry.js +0 -35
  334. package/dist/esm/z-card.entry.js +0 -65
  335. package/dist/esm/z-carousel.entry.js +0 -15
  336. package/dist/esm/z-divider.entry.js +0 -22
  337. package/dist/esm/z-dragdrop-area_2.entry.js +0 -44
  338. package/dist/esm/z-file-upload.entry.js +0 -165
  339. package/dist/esm/z-file.entry.js +0 -49
  340. package/dist/esm/z-icon.entry.js +0 -24
  341. package/dist/esm/z-link.entry.js +0 -67
  342. package/dist/esm/z-logo.entry.js +0 -24
  343. package/dist/esm/z-toggle-switch.entry.js +0 -38
  344. package/dist/types/components/buttons/z-toggle-switch/index.d.ts +0 -12
  345. package/dist/types/components/file-upload/z-dragdrop-area/index.d.ts +0 -9
  346. package/dist/types/components/file-upload/z-file/index.d.ts +0 -17
  347. package/dist/types/components/file-upload/z-file-upload/index.d.ts +0 -49
  348. package/dist/web-components-library/p-0e7fe7c1.js +0 -1
  349. package/dist/web-components-library/p-117c6e89.entry.js +0 -1
  350. package/dist/web-components-library/p-11d4e9b7.entry.js +0 -1
  351. package/dist/web-components-library/p-13abb76e.entry.js +0 -1
  352. package/dist/web-components-library/p-1f439216.entry.js +0 -1
  353. package/dist/web-components-library/p-42d64757.js +0 -1
  354. package/dist/web-components-library/p-4ce434aa.entry.js +0 -1
  355. package/dist/web-components-library/p-5ff0b130.entry.js +0 -1
  356. package/dist/web-components-library/p-7076e9fd.entry.js +0 -1
  357. package/dist/web-components-library/p-73e8c323.entry.js +0 -1
  358. package/dist/web-components-library/p-8ed29309.entry.js +0 -1
  359. package/dist/web-components-library/p-9b4f979f.entry.js +0 -1
  360. package/dist/web-components-library/p-a3792cf0.entry.js +0 -1
  361. package/dist/web-components-library/p-a4b2df38.entry.js +0 -1
  362. package/dist/web-components-library/p-b10f1aaa.entry.js +0 -1
  363. package/dist/web-components-library/p-c1a7b740.entry.js +0 -1
  364. package/dist/web-components-library/p-db38494e.entry.js +0 -1
  365. package/dist/web-components-library/p-e5c89d9f.entry.js +0 -1
  366. package/dist/web-components-library/p-fc23b15f.entry.js +0 -1
  367. package/www/build/p-0e7fe7c1.js +0 -1
  368. package/www/build/p-117c6e89.entry.js +0 -1
  369. package/www/build/p-11d4e9b7.entry.js +0 -1
  370. package/www/build/p-13abb76e.entry.js +0 -1
  371. package/www/build/p-1f439216.entry.js +0 -1
  372. package/www/build/p-42d64757.js +0 -1
  373. package/www/build/p-4ce434aa.entry.js +0 -1
  374. package/www/build/p-5ff0b130.entry.js +0 -1
  375. package/www/build/p-7076e9fd.entry.js +0 -1
  376. package/www/build/p-73e8c323.entry.js +0 -1
  377. package/www/build/p-7fab4941.js +0 -122
  378. package/www/build/p-8ed29309.entry.js +0 -1
  379. package/www/build/p-97a11655.css +0 -789
  380. package/www/build/p-9b4f979f.entry.js +0 -1
  381. package/www/build/p-a3792cf0.entry.js +0 -1
  382. package/www/build/p-a4b2df38.entry.js +0 -1
  383. package/www/build/p-b10f1aaa.entry.js +0 -1
  384. package/www/build/p-c1a7b740.entry.js +0 -1
  385. package/www/build/p-db38494e.entry.js +0 -1
  386. package/www/build/p-e5c89d9f.entry.js +0 -1
  387. package/www/build/p-fc23b15f.entry.js +0 -1
  388. package/www/pages/file-upload.html +0 -236
@@ -1,44 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h } from './index-8782dff4.js';
2
-
3
- const stylesCss = ".sc-z-dragdrop-area-h{font-family:var(--font-family-sans);font-weight:var(--font-rg);margin-top:calc(var(--space-unit) * 3)}.sc-z-dragdrop-area-h>.dragdrop.sc-z-dragdrop-area{display:flex;color:var(--color-text01);flex-direction:column;position:relative;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\");border-radius:2px;border-color:var(--color-surface04);height:228px;background-color:var(--color-surface02)}.sc-z-dragdrop-area-h>.dragdrop.dragover.sc-z-dragdrop-area *.sc-z-dragdrop-area{pointer-events:none}.sc-z-dragdrop-area-h>.dragdrop.sc-z-dragdrop-area .dragover-container.sc-z-dragdrop-area{position:absolute;top:0;left:0;width:100%;height:100%;z-index:10;display:none;background-color:var(--color-primary03);box-shadow:var(--shadow-focus-primary)}.sc-z-dragdrop-area-h>.dragdrop.sc-z-dragdrop-area .dragover-container.sc-z-dragdrop-area .dragover-message.sc-z-dragdrop-area{background-color:var(--color-link-primary);color:var(--color-text04);padding:10px 28px}.sc-z-dragdrop-area-h>.dragdrop.dragover.sc-z-dragdrop-area .dragover-container.sc-z-dragdrop-area{display:flex;justify-content:center;align-items:center}";
4
-
5
- const ZDragdropArea = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- this.fileDropped = createEvent(this, "fileDropped", 7);
9
- }
10
- fileDroppedHandler(files) {
11
- this.fileDropped.emit(files);
12
- }
13
- renderOnDragOverMessage() {
14
- return (h("div", { class: "dragover-container" }, h("div", { class: "dragover-message" }, h("z-body", { variant: "semibold", level: 2 }, "Rilascia i file in questa area per allegarli."))));
15
- }
16
- render() {
17
- return (h("div", { tabIndex: 0, ref: (val) => (this.dragDropContainer = val), class: "dragdrop", onDragOver: (e) => {
18
- console.log(e);
19
- e.preventDefault();
20
- this.dragDropContainer.classList.add("dragover");
21
- }, onDragLeave: () => {
22
- this.dragDropContainer.classList.remove("dragover");
23
- }, onDragEnd: () => { }, onDrop: (e) => {
24
- e.preventDefault();
25
- if (e.dataTransfer.files.length) {
26
- this.dragDropContainer.classList.remove("dragover");
27
- this.fileDroppedHandler(e.dataTransfer.files);
28
- }
29
- } }, this.renderOnDragOverMessage(), h("slot", null)));
30
- }
31
- };
32
- ZDragdropArea.style = stylesCss;
33
-
34
- const ZHeading = class {
35
- constructor(hostRef) {
36
- registerInstance(this, hostRef);
37
- this.variant = "regular";
38
- }
39
- render() {
40
- return (h("z-typography", { tabIndex: 0, component: this.component || `h${this.level}`, level: `h${this.level}`, variant: this.variant }, h("slot", null)));
41
- }
42
- };
43
-
44
- export { ZDragdropArea as z_dragdrop_area, ZHeading as z_heading };
@@ -1,165 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h, g as getElement } from './index-8782dff4.js';
2
- import { d as ZFileUploadTypeEnum, D as DeviceEnum, e as DividerSize } from './index-cca2b0d2.js';
3
- import { g as getDevice } from './utils-cdd5a909.js';
4
- import './breakpoints-c386984e.js';
5
-
6
- const stylesCss = ".sc-z-file-upload-h{font-family:var(--font-family-sans);font-weight:var(--font-rg);color:var(--color-text01)}.sc-z-file-upload-h>.container.sc-z-file-upload{display:flex;flex-direction:column}.sc-z-file-upload-h .modalWrapper.sc-z-file-upload{display:flex;justify-content:center;align-items:center}.sc-z-file-upload-h .modalWrapper.sc-z-file-upload>.files.sc-z-file-upload{margin:calc(var(--space-unit) * 4);display:flex;flex-direction:column;gap:var(--space-unit)}.sc-z-file-upload-h .text-container.sc-z-file-upload{display:flex;flex-direction:column;margin:auto}.sc-z-file-upload-h .text-container.sc-z-file-upload z-body.sc-z-file-upload{text-align:center}.sc-z-file-upload-h .text-container.sc-z-file-upload .upload-link.sc-z-file-upload{color:var(--color-link-primary);cursor:pointer}.sc-z-file-upload-h .text-container.sc-z-file-upload .upload-link-text.sc-z-file-upload{margin-bottom:var(--space-unit)}input#fileElem.sc-z-file-upload{display:none}#title.sc-z-file-upload{display:inline-block;margin-bottom:var(--space-unit)}.sc-z-file-upload-h>.container.sc-z-file-upload>z-button.sc-z-file-upload{display:inline-block;margin-top:calc(var(--space-unit) * 3)}.sc-z-file-upload-h>.container.sc-z-file-upload>.files-container.sc-z-file-upload>z-heading.sc-z-file-upload{display:inline-block;margin:calc(var(--space-unit) * 3) 0}.sc-z-file-upload-h>.container.sc-z-file-upload>.files-container.sc-z-file-upload>.files.sc-z-file-upload{display:flex;flex-wrap:wrap;row-gap:calc(var(--space-unit) * 2);column-gap:calc(var(--space-unit) * 2)}.sc-z-file-upload-h>.container.sc-z-file-upload>.files-container.sc-z-file-upload>z-divider.sc-z-file-upload{margin-top:calc(var(--space-unit) * 3);margin-bottom:0}@media only screen and (min-width: 768px){.sc-z-file-upload-h>.container.sc-z-file-upload>z-button.sc-z-file-upload{align-self:flex-start}}";
7
-
8
- const ZFileUpload = class {
9
- constructor(hostRef) {
10
- registerInstance(this, hostRef);
11
- this.fileInput = createEvent(this, "fileInput", 7);
12
- /** Prop indicating the file upload type - can be default or dragdrop */
13
- this.type = ZFileUploadTypeEnum.default;
14
- /** Number of files added by the user */
15
- this.filesNumber = 0;
16
- this.inputAttributes = {
17
- type: "file",
18
- id: "fileElem",
19
- multiple: true,
20
- };
21
- }
22
- /** Listen removeFile event sent from z-file component */
23
- removeFileListener() {
24
- this.filesNumber--;
25
- }
26
- /** Listen fileDropped event sent from z-dragdrop-area component */
27
- fileDroppedListener(e) {
28
- this.input.files = e.detail;
29
- this.fileInputHandler();
30
- }
31
- componentDidUpdate() {
32
- this.handleAccessibility();
33
- this.invalidFiles.size && this.errorModal.focus();
34
- }
35
- componentWillLoad() {
36
- this.invalidFiles = new Map();
37
- if (this.type === ZFileUploadTypeEnum.dragdrop &&
38
- getDevice() !== DeviceEnum.desktop)
39
- this.type = ZFileUploadTypeEnum.default;
40
- }
41
- fileInputHandler() {
42
- if (this.input.files.length) {
43
- this.invalidFiles = this.checkFiles(Array.from(this.input.files));
44
- }
45
- }
46
- handleAccessibility() {
47
- if (this.filesNumber > 0) {
48
- this.el.querySelector('z-file:last-child > z-chip').shadowRoot.querySelector('button').focus();
49
- }
50
- else {
51
- this.type === ZFileUploadTypeEnum.default ? this.button.shadowRoot.querySelector('button').focus() : this.uploadLink.focus();
52
- }
53
- }
54
- checkFiles(files) {
55
- let errors = new Map();
56
- const sizeErrorString = `supera i ${this.fileMaxSize}MB`;
57
- const formatErrorString = " ha un'estensione non prevista";
58
- files.forEach((file) => {
59
- const fileSize = file.size / 1024 / 1024;
60
- const fileFormatOk = this.acceptedFormat
61
- .split(",")
62
- .some((ext) => file.name.toLowerCase().endsWith(ext.trim()));
63
- const fileSizeOk = fileSize <= this.fileMaxSize;
64
- if (fileSizeOk && fileFormatOk) {
65
- this.fileInput.emit(file);
66
- this.filesNumber++;
67
- this.input.value = "";
68
- return;
69
- }
70
- errors.set(file.name, []);
71
- if (!fileSizeOk) {
72
- errors.get(file.name).push(sizeErrorString);
73
- }
74
- if (!fileFormatOk) {
75
- errors.get(file.name).push(formatErrorString);
76
- }
77
- });
78
- return errors;
79
- }
80
- renderTitle() {
81
- return (h("z-heading", { id: "title", variant: "semibold", level: 2 }, this.mainTitle));
82
- }
83
- renderDescription(variant, level) {
84
- return (h("z-body", { variant: variant, level: level }, this.description));
85
- }
86
- renderAllowedFileExtensions() {
87
- let fileFormatString = "";
88
- let fileWeightString = "";
89
- if (this.acceptedFormat) {
90
- const fileFormat = this.acceptedFormat.split(', ')
91
- .map((string) => string.substring(1).toUpperCase())
92
- .join(', ');
93
- fileFormatString = ` nei formati ${fileFormat}`;
94
- }
95
- if (this.fileMaxSize) {
96
- fileWeightString = ` per un massimo di ${this.fileMaxSize}MB di peso`;
97
- }
98
- const finalString = `Puoi allegare file${fileFormatString}${fileWeightString}.`;
99
- return (h("z-body", { level: 3 }, fileFormatString || fileWeightString ? finalString : null));
100
- }
101
- renderFileSection() {
102
- return (this.filesNumber > 0 && (h("section", { class: "files-container" }, h("z-heading", { variant: "semibold", level: 4 }, "File appena caricati"), h("div", { class: "files" }, h("slot", { name: "files" })), h("z-divider", { size: DividerSize.medium }))));
103
- }
104
- renderInput() {
105
- return (h("input", Object.assign({}, this.inputAttributes, { onChange: () => this.fileInputHandler(), accept: this.acceptedFormat, ref: (val) => (this.input = val) })));
106
- }
107
- renderUploadButton() {
108
- return [
109
- this.renderInput(),
110
- h("z-button", { onClick: () => this.input.click(), onKeyPress: (e) => {
111
- if (e.code == 'Space' || e.code == 'Enter') {
112
- e.preventDefault();
113
- this.input.click();
114
- }
115
- }, id: "fileSelect", variant: this.buttonVariant, icon: "plus", ref: (val) => this.button = val }, "Allega"),
116
- ];
117
- }
118
- renderUploadLink() {
119
- return [
120
- this.renderInput(),
121
- h("z-body", { class: "upload-link-text", variant: "regular", level: 1 }, "Trascinalo qui o", " ", h("z-body", { tabIndex: 0, class: "upload-link", onClick: () => this.input.click(), onKeyPress: (e) => {
122
- if (e.code == 'Space' || e.code == 'Enter') {
123
- e.preventDefault();
124
- this.input.click();
125
- }
126
- }, variant: "semibold", level: 1, ref: (val) => this.uploadLink = val }, "caricalo"), " ", "dal tuo computer"),
127
- ];
128
- }
129
- renderDefaultMode() {
130
- return [
131
- this.renderDescription("semibold", 3),
132
- this.renderAllowedFileExtensions(),
133
- this.renderFileSection(),
134
- this.renderUploadButton(),
135
- ];
136
- }
137
- renderDragDropMode() {
138
- return [
139
- this.renderFileSection(),
140
- h("z-dragdrop-area", null, h("div", { class: "text-container" }, this.renderDescription("regular", 1), this.renderUploadLink(), this.renderAllowedFileExtensions())),
141
- ];
142
- }
143
- formatErrorString(key, value) {
144
- var _a, _b;
145
- const bothErrors = value[0] && value[1] ? ", " : "";
146
- return `Il file ${key} ${(_a = value[0]) !== null && _a !== void 0 ? _a : ""}${bothErrors} ${(_b = value[1]) !== null && _b !== void 0 ? _b : ""} e non può quindi essere caricato.`;
147
- }
148
- handleErrorModalContent() {
149
- return (h("div", { slot: "modalContent" }, h("div", { class: "modalWrapper" }, h("div", { class: "files" }, Array.from(this.invalidFiles).map(([key, value]) => {
150
- return (h("z-body", { variant: "regular", level: 3 }, this.formatErrorString(key, value)));
151
- })))));
152
- }
153
- render() {
154
- return [
155
- h("div", { tabIndex: 0, class: `container ${this.type}` }, this.renderTitle(), this.type == ZFileUploadTypeEnum.default
156
- ? this.renderDefaultMode()
157
- : this.renderDragDropMode()),
158
- !!this.invalidFiles.size && (h("z-modal", { tabIndex: 0, ref: (val) => this.errorModal = val, modaltitle: "Attenzione", onModalClose: () => this.invalidFiles = new Map(), onModalBackgroundClick: () => this.invalidFiles = new Map() }, this.handleErrorModalContent()))
159
- ];
160
- }
161
- get el() { return getElement(this); }
162
- };
163
- ZFileUpload.style = stylesCss;
164
-
165
- export { ZFileUpload as z_file_upload };
@@ -1,49 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-8782dff4.js';
2
- import { b as ZChipType, D as DeviceEnum, c as TooltipPosition } from './index-cca2b0d2.js';
3
- import { t as tabletBreakpoint } from './breakpoints-c386984e.js';
4
- import { g as getDevice } from './utils-cdd5a909.js';
5
-
6
- const stylesCss = ".sc-z-file-h{font-family:var(--font-family-sans);font-weight:var(--font-rg);position:relative}.sc-z-file-h .chip-content.sc-z-file{display:flex;align-items:center}.sc-z-file-h>z-tooltip.sc-z-file{z-index:10}.sc-z-file-h>z-tooltip.sc-z-file>.tootip-content.sc-z-file{white-space:nowrap}.sc-z-file-h>z-chip.sc-z-file>.chip-content.sc-z-file>span.sc-z-file{max-width:250px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;line-height:1.33;letter-spacing:0.32px}.sc-z-file-h>z-chip.sc-z-file>.chip-content.sc-z-file>span.regular.sc-z-file{font-weight:var(--font-rg)}.sc-z-file-h>z-chip.sc-z-file>.chip-content.sc-z-file>span.bold.sc-z-file{font-weight:var(--font-sb)}.sc-z-file-h .chip-content.sc-z-file>z-icon.sc-z-file:last-child{margin-left:var(--space-unit);cursor:pointer;fill:var(--color-icon01)}@media only screen and (min-width: 1152px){.sc-z-file-h{border-radius:16px}.sc-z-file-h>z-chip.sc-z-file>.chip-content.sc-z-file>span.sc-z-file{font-size:12px}}";
7
-
8
- const ZFile = class {
9
- constructor(hostRef) {
10
- registerInstance(this, hostRef);
11
- this.removeFile = createEvent(this, "removeFile", 7);
12
- this.allowTooltip = false;
13
- this.tooltipVisible = false;
14
- }
15
- removeFileHandler() {
16
- this.removeFile.emit();
17
- this.el.remove();
18
- }
19
- onMouseOver() {
20
- this.tooltipVisible = true;
21
- }
22
- onMouseLeave() {
23
- this.tooltipVisible = false;
24
- }
25
- componentDidLoad() {
26
- var _a, _b;
27
- if (this.elementHasEllipsis() && window.innerWidth > tabletBreakpoint)
28
- this.allowTooltip = true;
29
- (_b = (_a = this.icon) === null || _a === void 0 ? void 0 : _a.focus) === null || _b === void 0 ? void 0 : _b.call(_a);
30
- }
31
- elementHasEllipsis() {
32
- return this.ellipsis.offsetWidth < this.ellipsis.scrollWidth;
33
- }
34
- render() {
35
- return (h(Host, null, this.allowTooltip && (h("z-tooltip", { open: this.tooltipVisible, type: TooltipPosition.AUTO, "bind-to": `#chip-${this.fileNumber}` }, h("span", { class: "body-5 tootip-content" }, this.ellipsis.innerText))), h("z-chip", { id: `chip-${this.fileNumber}`, filter: true, type: ZChipType.default }, h("div", { class: "chip-content" }, 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
- } }, h("slot", null)), h("z-icon", { "aria-label": "Elimina file", tabIndex: 0, onClick: () => this.removeFileHandler(), onKeyPress: (e) => {
39
- if (e.code == "Space" || e.code == "Enter") {
40
- e.preventDefault();
41
- this.removeFileHandler();
42
- }
43
- }, name: "multiply-circled", height: getDevice() !== DeviceEnum.desktop ? 20 : 15, width: getDevice() !== DeviceEnum.desktop ? 20 : 15, ref: (val) => (this.icon = val) })))));
44
- }
45
- get el() { return getElement(this); }
46
- };
47
- ZFile.style = stylesCss;
48
-
49
- export { ZFile as z_file };
@@ -1,24 +0,0 @@
1
- import { r as registerInstance, h } from './index-8782dff4.js';
2
- import { i as icons } from './icons-bceeb196.js';
3
-
4
- 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)}";
5
-
6
- const ZIcon = class {
7
- constructor(hostRef) {
8
- registerInstance(this, hostRef);
9
- }
10
- selectPathOrPolygon(iconName) {
11
- if (iconName && iconName.startsWith("M")) {
12
- return h("path", { d: icons[this.name] });
13
- }
14
- else {
15
- return h("polygon", { points: icons[this.name] });
16
- }
17
- }
18
- render() {
19
- return (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[this.name])));
20
- }
21
- };
22
- ZIcon.style = stylesCss;
23
-
24
- export { ZIcon as z_icon };
@@ -1,67 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-8782dff4.js';
2
-
3
- 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}";
4
-
5
- const ZLink = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- this.zLinkClick = createEvent(this, "zLinkClick", 7);
9
- /** link target (optional) */
10
- this.target = "_self";
11
- /** tabindex link attribute (optional) */
12
- this.htmltabindex = 0;
13
- /** disable link flag (optional) */
14
- this.isdisabled = false;
15
- /** active link flag (optional) */
16
- this.isactive = false;
17
- /** white variant flag (optional) */
18
- this.iswhite = false;
19
- /** link text variant (optional) */
20
- this.textcolor = "primary";
21
- /** big link version */
22
- this.big = false;
23
- /** link icon position (optional) */
24
- this.iconposition = "left";
25
- /** draw underline on text (optional) */
26
- this.underline = false;
27
- this.iconSize = 18;
28
- this.emitZLinkClick = this.emitZLinkClick.bind(this);
29
- this.emitZLinkInteraction = this.emitZLinkInteraction.bind(this);
30
- }
31
- componentWillRender() {
32
- if (this.iswhite) {
33
- console.warn("z-link iswhite prop is deprecated and will be dropped in a next release, please use textcolor prop instead");
34
- }
35
- if (this.big) {
36
- 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");
37
- }
38
- }
39
- emitZLinkClick(e, linkId) {
40
- this.emitZLinkInteraction(e, linkId);
41
- }
42
- emitZLinkInteraction(e, linkId) {
43
- this.zLinkClick.emit({ e, linkId });
44
- }
45
- componentDidRender() {
46
- if (this.icon) {
47
- const height = parseFloat(window.getComputedStyle(this.hostElement).getPropertyValue('font-size'));
48
- const currentSize = this.big ? 18 : Math.round(height * 1.125);
49
- if (!Number.isNaN(currentSize) && this.iconSize !== currentSize) {
50
- this.iconSize = currentSize;
51
- }
52
- }
53
- }
54
- render() {
55
- const style = this.big ? { "--font-size-link": "16px", "--font-weight-link": "600" } : {};
56
- return (h(Host, { style: style }, h("a", { id: this.htmlid, href: this.href ? this.href : null, class: `${this.isdisabled ? "disabled" : ""}
57
- ${this.isactive ? "active" : ""}
58
- ${this.textcolor}
59
- ${this.iswhite ? "white" : ""}
60
- ${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" && h("slot", null), this.icon &&
61
- 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" && h("slot", null))));
62
- }
63
- get hostElement() { return getElement(this); }
64
- };
65
- ZLink.style = stylesCss;
66
-
67
- export { ZLink as z_link };
@@ -1,24 +0,0 @@
1
- import { r as registerInstance, h, H as Host } from './index-8782dff4.js';
2
-
3
- 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\")}";
4
-
5
- const ZLogo = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- }
9
- render() {
10
- const style = {};
11
- if (this.width) {
12
- style["width"] = style["max-width"] = `${this.width}px`;
13
- }
14
- if (this.height) {
15
- style["height"] = style["max-height"] = `${this.height}px`;
16
- }
17
- return (h(Host, { style: style, class: { "mobile": !!this.mobileLogo } }, this.link ?
18
- h("a", { href: this.link, target: this.targetBlank ? "_blank" : "_self" }, h("img", { alt: this.imageAlt })) :
19
- h("img", { alt: this.imageAlt })));
20
- }
21
- };
22
- ZLogo.style = stylesCss;
23
-
24
- export { ZLogo as z_logo };
@@ -1,38 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h } from './index-8782dff4.js';
2
- import { r as randomId } from './utils-cdd5a909.js';
3
- import { p as ZtoggleSwitchPositionEnum } from './index-cca2b0d2.js';
4
- import './breakpoints-c386984e.js';
5
-
6
- const stylesCss = ".sc-z-toggle-switch-h{font-family:var(--font-family-sans);font-weight:var(--font-rg);display:inline-flex;position:relative}label.sc-z-toggle-switch{display:flex;align-items:center;flex-direction:row}label.left.sc-z-toggle-switch{margin:0 var(--space-unit) 0 0}label.right.sc-z-toggle-switch{margin:0 var(--space-unit) 0 0;flex-direction:row-reverse}label.sc-z-toggle-switch>span.sc-z-toggle-switch{letter-spacing:0;color:var(--text-grey-800)}label.sc-z-toggle-switch>span.left.sc-z-toggle-switch{margin-right:var(--space-unit)}label.sc-z-toggle-switch>span.right.sc-z-toggle-switch{margin-left:var(--space-unit)}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch{display:flex;align-items:center}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch{height:18px;width:calc(var(--space-unit) * 4);border-radius:var(--space-unit);color:var(--gray500);background-color:var(--gray500);position:relative;cursor:pointer}label.sc-z-toggle-switch>span.container.disabled.sc-z-toggle-switch,label.sc-z-toggle-switch>span.container.active.disabled.sc-z-toggle-switch{background-color:var(--bg-grey-200);cursor:default}label.sc-z-toggle-switch>span.container.active.disabled.sc-z-toggle-switch>span.circle.checked.disabled.sc-z-toggle-switch>z-icon.sc-z-toggle-switch{fill:var(--gray200)}label.sc-z-toggle-switch>span.container.active.sc-z-toggle-switch{background-color:var(--color-primary01);fill:var(--color-primary01)}input.sc-z-toggle-switch:focus:focus-visible+label.sc-z-toggle-switch>span.container.sc-z-toggle-switch:not(.disabled){outline:none;box-shadow:var(--shadow-focus-primary)}input.sc-z-toggle-switch:focus:focus-visible+label.sc-z-toggle-switch>span.container.disabled.sc-z-toggle-switch{outline:none}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch:not(.disabled):hover{background-color:var(--color-hover-primary);fill:var(--color-hover-primary)}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch>span.circle.sc-z-toggle-switch{position:absolute;display:flex;align-items:center;justify-content:center;margin:0;height:calc(var(--space-unit) * 2);width:calc(var(--space-unit) * 2);border-radius:7px;background-color:var(--bg-white);box-shadow:var(--shadow-2);transition:transform 0.3s ease}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch>span.circle.checked.sc-z-toggle-switch{transform:translateX(100%)}input[type=\"checkbox\"].sc-z-toggle-switch{position:absolute;opacity:0;z-index:-1;pointer-events:none}";
7
-
8
- const ZToggleSwitch = class {
9
- constructor(hostRef) {
10
- registerInstance(this, hostRef);
11
- this.toggleClick = createEvent(this, "toggleClick", 7);
12
- this.disabled = false;
13
- this.labelPosition = ZtoggleSwitchPositionEnum.left;
14
- this.checked = false;
15
- this.htmlid = `id-${randomId()}`;
16
- }
17
- emitToggleClick(checked) {
18
- this.toggleClick.emit({
19
- id: this.htmlid,
20
- checked: checked,
21
- });
22
- }
23
- handleClick(ev) {
24
- if (this.disabled)
25
- return;
26
- this.checked = ev.target.checked;
27
- this.emitToggleClick(this.checked);
28
- }
29
- render() {
30
- return [
31
- h("input", { id: this.htmlid, type: "checkbox", checked: this.checked, disabled: this.disabled, onChange: this.handleClick.bind(this) }),
32
- h("label", { htmlFor: this.htmlid, class: this.labelPosition }, h("span", { class: this.labelPosition }, h("slot", null)), h("span", { class: `container ${this.disabled && "disabled"} ${this.checked && "active"}` }, h("span", { class: `circle ${this.disabled && "disabled"} ${this.checked && "checked"}` }, this.checked && (h("z-icon", { width: 12, height: 12, name: "checkmark" }))))),
33
- ];
34
- }
35
- };
36
- ZToggleSwitch.style = stylesCss;
37
-
38
- export { ZToggleSwitch as z_toggle_switch };
@@ -1,12 +0,0 @@
1
- import { EventEmitter } from "../../../stencil-public-runtime";
2
- import { ZtoggleSwitchPositionEnum } from "../../../beans";
3
- export declare class ZToggleSwitch {
4
- disabled?: boolean;
5
- labelPosition?: ZtoggleSwitchPositionEnum;
6
- checked?: boolean;
7
- htmlid: string;
8
- toggleClick: EventEmitter;
9
- emitToggleClick(checked: boolean): void;
10
- handleClick(ev: any): void;
11
- render(): any[];
12
- }
@@ -1,9 +0,0 @@
1
- import { EventEmitter } from "../../../stencil-public-runtime";
2
- export declare class ZDragdropArea {
3
- /** Emitted when user drop one or more files */
4
- fileDropped: EventEmitter;
5
- fileDroppedHandler(files: FileList): void;
6
- private dragDropContainer;
7
- renderOnDragOverMessage(): any;
8
- render(): any;
9
- }
@@ -1,17 +0,0 @@
1
- import { EventEmitter } from "../../../stencil-public-runtime";
2
- export declare class ZFile {
3
- private icon;
4
- private ellipsis?;
5
- fileNumber: any;
6
- allowTooltip: boolean;
7
- tooltipVisible: boolean;
8
- el: HTMLElement;
9
- /** Emitted when a z-file component is removed from the DOM */
10
- removeFile: EventEmitter;
11
- removeFileHandler(): void;
12
- onMouseOver(): void;
13
- onMouseLeave(): void;
14
- componentDidLoad(): void;
15
- elementHasEllipsis(): boolean;
16
- render(): any;
17
- }
@@ -1,49 +0,0 @@
1
- import { EventEmitter } from "../../../stencil-public-runtime";
2
- import { ButtonVariantEnum, ZFileUploadTypeEnum } from "../../../beans";
3
- export declare class ZFileUpload {
4
- /** Prop indicating the file upload type - can be default or dragdrop */
5
- type: ZFileUploadTypeEnum;
6
- /** Prop indicating the button variant*/
7
- buttonVariant?: ButtonVariantEnum;
8
- /** Prop indicating the accepted file type: ex ".pdf, .doc, .jpg" */
9
- acceptedFormat?: string;
10
- /** Max file dimension in Megabyte */
11
- fileMaxSize?: number;
12
- /** Title */
13
- mainTitle?: string;
14
- /** Description */
15
- description?: string;
16
- /** Number of files added by the user */
17
- filesNumber: number;
18
- /** List of files not allowed to be uploaded */
19
- invalidFiles: Map<string, Array<string>>;
20
- el: HTMLElement;
21
- private input;
22
- private button;
23
- private errorModal;
24
- private uploadLink;
25
- private inputAttributes;
26
- /** Listen removeFile event sent from z-file component */
27
- removeFileListener(): void;
28
- /** Listen fileDropped event sent from z-dragdrop-area component */
29
- fileDroppedListener(e: CustomEvent): void;
30
- componentDidUpdate(): void;
31
- componentWillLoad(): void;
32
- /** Emitted when user select one or more files */
33
- fileInput: EventEmitter;
34
- fileInputHandler(): void;
35
- handleAccessibility(): void;
36
- checkFiles(files: Array<File>): Map<string, Array<string>>;
37
- renderTitle(): any;
38
- renderDescription(variant: any, level: any): any;
39
- renderAllowedFileExtensions(): any;
40
- renderFileSection(): any;
41
- renderInput(): any;
42
- renderUploadButton(): any[];
43
- renderUploadLink(): any[];
44
- renderDefaultMode(): any[];
45
- renderDragDropMode(): any[];
46
- formatErrorString(key: any, value: any): string;
47
- handleErrorModalContent(): any;
48
- render(): any[];
49
- }
@@ -1 +0,0 @@
1
- var t,n,e,o,a,i,s,r,c,l,u,f,d,m,g,h,w,b,p,v,E,x,A,k,_,C,R,S,y,D,P,T,B,N,O,W,z,K;!function(t){t.real="reale",t.virtual="virtuale",t.trial="saggio"}(t||(t={})),function(t){t.border="border",t.shadow="shadow",t.overlay="overlay",t.text="text"}(n||(n={})),function(t){t.horizontal="horizontal",t.vertical="vertical"}(e||(e={})),function(t){t.big="big",t.small="small"}(o||(o={})),function(t){t.primary="primary",t.secondary="secondary",t.tertiary="tertiary",t["dark-bg"]="dark-bg"}(a||(a={})),function(t){t.submit="submit",t.reset="reset",t.button="button"}(i||(i={})),function(t){t.big="big",t.small="small",t["x-small"]="x-small"}(s||(s={})),function(t){t.text="text",t.password="password",t.number="number",t.email="email",t.textarea="textarea",t.checkbox="checkbox",t.radio="radio",t.select="select"}(r||(r={})),function(t){t.success="success",t.error="error",t.warning="warning",t.selecting="selecting"}(c||(c={})),function(t){t.AUTO="auto",t.TOP="top",t.RIGHT="right",t.BOTTOM="bottom",t.LEFT="left",t.TOP_RIGHT="top_right",t.TOP_LEFT="top_left",t.BOTTOM_RIGHT="bottom_right",t.BOTTOM_LEFT="bottom_left"}(l||(l={})),function(t){t[t.TAB=9]="TAB",t[t.SPACE=32]="SPACE",t[t.ESC=27]="ESC",t[t.ENTER=13]="ENTER",t[t.ARROW_UP=38]="ARROW_UP",t[t.ARROW_DOWN=40]="ARROW_DOWN",t[t.BACKSPACE=8]="BACKSPACE",t[t.DELETE=46]="DELETE"}(u||(u={})),function(t){t.ARROW_DOWN="ArrowDown",t.ARROW_UP="ArrowUp",t.ENTER="Enter",t.ESC="Escape",t.SPACE="Space"}(f||(f={})),function(t){t.dark="dark",t.light="light"}(d||(d={})),function(t){t["after-down"]="after-down",t["after-center"]="after-center",t["after-up"]="after-up",t["below-right"]="below-right",t["below-center"]="below-center",t["below-left"]="below-left",t["before-down"]="before-down",t["before-center"]="before-center",t["before-up"]="before-up",t["above-right"]="above-right",t["above-center"]="above-center",t["above-left"]="above-left"}(m||(m={})),function(t){t.none="none",t.small="small",t.medium="medium"}(g||(g={})),function(t){t["shadow-1"]="shadow-1",t["shadow-2"]="shadow-2",t["shadow-3"]="shadow-3",t["shadow-4"]="shadow-4",t["shadow-6"]="shadow-6",t["shadow-8"]="shadow-8",t["shadow-12"]="shadow-12",t["shadow-16"]="shadow-16",t["shadow-24"]="shadow-24"}(h||(h={})),function(t){t.small="small",t.medium="medium",t.large="large"}(w||(w={})),function(t){t.horizontal="horizontal",t.vertical="vertical"}(b||(b={})),function(t){t.asc="asc",t.desc="desc",t.none="none"}(p||(p={})),function(t){t.small="small",t.medium="medium",t.large="large"}(v||(v={})),function(t){t.warning="warning",t.error="error",t.success="success",t.neutral="neutral",t.default="default"}(E||(E={})),function(t){t.small="small",t.medium="medium",t.large="large",t["x-large"]="x-large"}(x||(x={})),function(t){t["x-small"]="x-small",t.small="small",t.medium="medium",t.large="large",t.special="special"}(A||(A={})),function(t){t.accordion="accordion",t.menu="menu"}(k||(k={})),function(t){t.right="right",t.left="left"}(_||(_={})),function(t){t.right="right",t.left="left"}(C||(C={})),function(t){t.none="none",t.header="header",t.element="element"}(R||(R={})),function(t){t.success="success",t.warning="warning",t.error="error"}(S||(S={})),function(t){t.success="success",t.warning="warning",t.error="error"}(y||(y={})),function(t){t.mobile="mobile",t.tablet="tablet",t.desktop="desktop"}(D||(D={})),function(t){t.preview="preview",t.open="open",t.closed="closed"}(P||(P={})),function(t){t.dark="dark",t.light="light",t.accent="accent",t.error="error",t.success="success",t.warning="warning"}(T||(T={})),function(t){t.slideInLeft="slide-in-left",t.slideInRight="slide-in-right",t.slideInDown="slide-in-down",t.slideInUp="slide-in-up",t.slideOutLeft="slide-out-left",t.slideOutRight="slide-out-right",t.slideOutDown="slide-out-down",t.slideOutUp="slide-out-up"}(B||(B={})),function(t){t.topRight="top-right",t.topLeft="top-left",t.topCentre="top-centre",t.bottomRight="bottom-right",t.bottomLeft="bottom-left",t.bottomCentre="bottom-centre"}(N||(N={})),function(t){t.expandable="expandable",t.padding="padding",t.none="none"}(O||(O={})),function(t){t.polite="polite",t.assertive="assertive"}(W||(W={})),function(t){t.default="default",t.dragdrop="dragdrop"}(z||(z={})),function(t){t.default="default",t.mini="mini"}(K||(K={}));export{v as A,a as B,n as C,D,_ as E,r as I,f as K,t as L,S as N,m as P,E as S,d as T,W as Z,b as a,K as b,l as c,z as d,w as e,s as f,P as g,c as h,y as i,e as j,u as k,o as l,O as m,B as n,N as o,C as p,x as q,R as r,k as s,A as t,p as u,g as v,h as w,i as x}
@@ -1 +0,0 @@
1
- import{r as i,h as t}from"./p-1acbd992.js";import{i as h}from"./p-82048c15.js";const r=class{constructor(t){i(this,t)}selectPathOrPolygon(i){return i&&i.startsWith("M")?t("path",{d:h[this.name]}):t("polygon",{points:h[this.name]})}render(){return t("svg",{viewBox:"0 0 1000 1000",width:this.width,height:this.height,id:this.iconid,fill:this.fill?`var(--${this.fill})`:""},this.selectPathOrPolygon(h[this.name]))}};r.style=":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)}";export{r as z_icon}
@@ -1 +0,0 @@
1
- import{r as t,h as r}from"./p-1acbd992.js";const i=class{constructor(r){t(this,r)}render(){return r("slot",null)}};i.style=":host{border:0;clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;margin:0 -1px -1px 0;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}";export{i as z_visually_hidden}
@@ -1 +0,0 @@
1
- import{r as t,c as o,h as a,g as r}from"./p-1acbd992.js";import{C as e}from"./p-0e7fe7c1.js";const i=class{constructor(a){t(this,a),this.cardClicked=o(this,"cardClicked",7),this.clickable=!1,this.showshadow=!1}onClick(t){if("action"!==t.target.getAttribute("slot"))return this.clickable?void this.cardClicked.emit():(t.preventDefault(),void t.stopPropagation())}componentWillLoad(){this.hasCoverImage=!!this.host.querySelector('[slot="cover"]')}renderColorCoverCard(){return[a("div",{class:"cover-container"},a("div",{class:"color-cover"},a("div",{class:"cover-content"},a("slot",{name:"metadata"}),a("slot",{name:"title"})))),a("div",{class:"content"},a("slot",{name:"text"}),a("div",{class:"actions"},a("slot",{name:"action"})))]}renderContentDiv(){return a("div",{class:"content"},a("slot",{name:"metadata"}),a("slot",{name:"title"}),a("slot",{name:"text"}),a("div",{class:"actions"},a("slot",{name:"action"})))}render(){return this.variant===e.text?this.renderContentDiv():this.variant===e.overlay||this.hasCoverImage?[a("div",{class:"cover-container"},this.hasCoverImage&&[a("slot",{name:"cover"}),this.variant!==e.overlay&&this.coverIcon&&a("z-icon",{name:this.coverIcon})],!this.hasCoverImage&&a("div",{class:"color-cover"})),this.renderContentDiv()]:this.renderColorCoverCard()}get host(){return r(this)}};i.style=":host{--aspect-ratio:1.62;--z-card--border-color:var(--gray200);--z-card--color-cover-background:var(--color-surface01);--z-card--text-background:var(--color-surface01);--z-card--text-border-radius:none;--z-card--text-border:none;position:relative;display:flex;flex-direction:column;font-family:var(--font-family-sans);font-weight:var(--font-rg)}*,::slotted(*){box-sizing:border-box}:host(:not([variant='overlay'])) .cover-container{position:relative;width:100%}.cover-container{padding-bottom:calc(100% / var(--aspect-ratio))}::slotted([slot='cover']),.color-cover{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:center}.cover-container>z-icon{--z-icon-width:calc(var(--space-unit) * 11);--z-icon-height:var(--z-icon-width);position:absolute;top:calc(50% - calc(var(--z-icon-height) / 2));left:calc(50% - calc(var(--z-icon-width) / 2));fill:var(--color-primary01)}.color-cover{background-color:var(--z-card--color-cover-background)}.content{display:flex;flex-direction:column;padding-top:var(--space-unit)}.color-cover .cover-content{display:flex;flex-direction:column;justify-content:flex-end;height:100%;padding:var(--space-unit)}::slotted([slot='metadata']),::slotted([slot='title']),::slotted([slot='text']){display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}::slotted([slot='title']:not(:last-child)),::slotted([slot='text']:not(:last-child)){margin-bottom:var(--space-unit)}::slotted([slot='text']),::slotted([slot='actions']){margin:0}::slotted([slot='metadata']:not(:last-child)){margin:0 0 calc(var(--space-unit) * 0.25);-webkit-line-clamp:1;text-transform:uppercase}::slotted([slot='title']){margin:0;font-weight:var(--font-sb);-webkit-line-clamp:2}::slotted([slot='text']){-webkit-line-clamp:3}.actions{display:flex;flex-direction:row;align-items:center}::slotted([slot='action']:not(:last-child)){margin-right:calc(var(--space-unit) * 1.5)}:host([clickable]){cursor:pointer}:host([clickable]:focus:focus-visible){outline:none}:host(:not([variant])[clickable]:focus:focus-visible){padding:calc(var(--space-unit) * 0.5);box-shadow:var(--shadow-focus-primary)}:host([variant='text']){background-color:var(--z-card--text-background);border:var(--z-card--text-border);border-radius:var(--z-card--text-border-radius)}:host([showshadow])>.content,:host([variant='border'])>.content,:host([variant='shadow'])>.content{height:100%;padding:var(--space-unit) var(--space-unit) calc(var(--space-unit) * 2)}:host([variant='text'])>.content{padding:calc(var(--space-unit) * 2) var(--space-unit)}:host([variant='border']) .actions,:host([variant='shadow']) .actions{margin-top:auto}:host([variant='border']){border:var(--border-size-small) solid var(--z-card--border-color)}:host([variant='border'][clickable]:hover)>.content{background:var(--color-background)}:host([variant='border'][clickable]:focus:focus-visible){box-shadow:var(--shadow-focus-primary)}:host([variant='border'][clickable]:active){border-color:transparent}:host([variant='shadow']),:host([showshadow]){box-shadow:var(--shadow-2)}:host([variant='shadow'][clickable]:hover),:host([clickable][showshadow]:hover){box-shadow:var(--shadow-4)}:host([variant='shadow'][clickable]:focus:focus-visible),:host([clickable][showshadow]:focus:focus-visible){box-shadow:var(--shadow-4)}:host([variant='shadow'][clickable]:active),:host([clickable][showshadow]:active){box-shadow:none}:host([variant='overlay']) .content{position:absolute;top:0;right:0;bottom:0;left:0;justify-content:flex-end;padding:var(--space-unit);background-image:linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));color:var(--color-text-inverse);fill:var(--color-text-inverse)}";export{i as z_card}
@@ -1 +0,0 @@
1
- import{r as t,c as o,h as i}from"./p-1acbd992.js";import{T as r}from"./p-0e7fe7c1.js";const n=class{constructor(i){t(this,i),this.appButtonClick=o(this,"appButtonClick",7),this.theme=r.dark,this.isopen=!1,this.emitAppButtonClick=this.emitAppButtonClick.bind(this)}emitAppButtonClick(){this.isopen=!this.isopen,this.appButtonClick.emit({isopen:this.isopen})}render(){return i("button",{title:"app-switcher",onClick:()=>this.emitAppButtonClick()},i("z-icon",{name:"app-switcher",class:this.theme}))}};n.style=":host{font-family:var(--dashboard-font);font-weight:var(--font-rg)}button{display:flex;justify-content:center;align-content:center;background-color:transparent;border:none;padding:0}button>z-icon{color:var(--bg-white);fill:currentColor}button>z-icon.light{color:var(--bg-grey-900);fill:currentColor}";export{n as z_app_switcher}
@@ -1 +0,0 @@
1
- import{k as t,D as n}from"./p-0e7fe7c1.js";import{t as r,m as a}from"./p-d69e14fb.js";function e(){return Math.random().toString(36).replace("0.","")}function u(n,r,...a){n.keyCode!==t.ENTER&&n.keyCode!==t.SPACE||(n.preventDefault(),r(...a))}function s(t=null){return t||(t=document.activeElement),t&&t.shadowRoot&&t.shadowRoot.activeElement?s(t=t.shadowRoot.activeElement):t}function o(t,n=[]){return n.push(t),t.parentElement?o(t=t.parentElement,n):t.parentNode&&t.parentNode.host?o(t=t.parentNode.host,n):n}function c(){switch(!0){case window.innerWidth<=a:return n.mobile;case window.innerWidth<=r:return n.tablet;default:return n.desktop}}function f(t){try{return JSON.parse(t)}catch(t){return!1}}function i(t){const n=Math.ceil(2**31-1)*parseFloat(`0.${t}`);let r=Math.ceil(n%1*19);return 0===r&&(r=1),`avatar-C${r.toString().padStart(2,"0")}`}export{f as a,o as b,i as c,s as d,c as g,u as h,e as r}
@@ -1 +0,0 @@
1
- import{r as t,c as i,h as e,H as s,g as a}from"./p-1acbd992.js";import{n}from"./p-0e7fe7c1.js";import{m as r}from"./p-d69e14fb.js";import{h as o}from"./p-1d371408.js";import"./p-b68038b5.js";const l=class{constructor(e){t(this,e),this.toastClose=i(this,"toastClose",7),this.pauseonfocusloss=!0,this.isdraggable=!0,this.draggablepercentage=80,this.isCloseEventCalled=!1,this.visibilityChangeEventHandler=()=>{"hidden"===document.visibilityState?this.timeoutHandle&&this.onBlur():this.elapsedTime&&this.onFocus()}}watchPropIsdraggable(t){t?this.sliderManager.get("pan").set({enable:!0}):this.sliderManager.get("pan").set({enable:!1})}watchPropAutoclose(t){clearTimeout(this.timeoutHandle),this.startClosingTimeout(t)}watchPropPauseonfocusloss(t){this.autoclose&&(t?document.addEventListener("visibilitychange",this.visibilityChangeEventHandler):document.removeEventListener("visibilitychange",this.visibilityChangeEventHandler))}emitToastClose(t){this.timeoutHandle=null,this.elapsedTime=null,this.hostElement.classList.add(t),this.toastClose.emit()}componentWillLoad(){this.isMobile=window.innerWidth<=r,this.validateAutoclose()}componentDidLoad(){this.isTextLong=this.detectWrap()||this.toastText.offsetHeight>20,this.startTime=Date.now(),this.autoclose&&this.pauseonfocusloss&&document.addEventListener("visibilitychange",this.visibilityChangeEventHandler),this.isdraggable&&this.handleSlideOutDragAnimation(),this.percentage=0}validateAutoclose(){this.autoclose||this.closebutton||console.error("At least one between autoclose and closebutton must be present")}mapSlideOutClass(){switch(this.transition){case n.slideInDown:return n.slideOutUp;case n.slideInUp:return n.slideOutDown;case n.slideInLeft:return n.slideOutRight;case n.slideInRight:return n.slideOutLeft}}calculateDraggedPercentage(t){const i=this.hostElement.getBoundingClientRect();return Math.round(100*t.deltaX/i.width)}handleSlideOutDragAnimation(){this.sliderManager=new o(this.hostElement),this.sliderManager.get("pan").set({direction:o.DIRECTION_HORIZONTAL}),this.sliderManager.on("pan",(t=>{this.percentage=this.calculateDraggedPercentage(t),this.hostElement.style.transition="none",this.hostElement.classList.remove(this.transition);const i={translate:"translateX( "+this.percentage+"% )",translateBack:"translateX(0)"};this.hostElement.style.opacity=100-Math.abs(this.percentage)+"%",t.eventType!==o.DIRECTION_LEFT&&t.eventType!==o.DIRECTION_RIGHT||(this.hostElement.style.transform=i.translate,Math.abs(this.percentage)>this.draggablepercentage&&!this.isCloseEventCalled&&(this.isCloseEventCalled=!0,this.emitToastClose(t.direction===o.DIRECTION_LEFT?"slide-out-left":"slide-out-right"))),t.isFinal&&Math.abs(this.percentage)<this.draggablepercentage&&(this.hostElement.style.transform=i.translateBack,this.hostElement.style.transition="all 1s",this.hostElement.style.opacity="100%",this.percentage=0)}))}onFocus(){let t;t=this.autoclose,this.elapsedTime&&(t=this.autoclose-this.elapsedTime),t>0&&this.startClosingTimeout(t)}onBlur(){this.elapsedTime=Date.now()-this.startTime,clearTimeout(this.timeoutHandle)}startClosingTimeout(t){this.timeoutHandle=setTimeout((()=>this.emitToastClose(this.mapSlideOutClass())),t)}detectWrap(){const t=this.container.offsetWidth,i=this.container.children;let e=0;for(let t=0;t<i.length;t++)e+=i[t].offsetWidth;return e>t}renderText(){return e("div",{id:"text",ref:t=>this.toastText=t},e("span",{class:"title"},this.heading),e("span",{class:"message"},this.message))}renderButton(){return e("div",{id:"button"},e("slot",{name:"button"}))}renderCloseIcon(){return this.closebutton&&e("div",{id:"icon"},e("z-icon",{tabIndex:0,name:"multiply-circled",width:15,height:15,onClick:()=>this.emitToastClose(this.mapSlideOutClass()),onKeyPress:t=>{32!=t.keyCode&&13!=t.keyCode||(t.preventDefault(),this.emitToastClose(this.mapSlideOutClass()))}}))}renderContainer(){return e("div",{tabIndex:0,id:"external-container",class:{[this.type]:!!this.type,"several-lines-padding":this.isTextLong},ref:t=>this.container=t},this.renderText(),this.renderButton(),this.renderCloseIcon())}renderMobileContainer(){return e("div",{id:"external-container",class:{[this.type]:!!this.type,"several-lines-padding":this.isTextLong,"mobile-wrapped":this.isTextLong}},e("div",{id:"flex-container",ref:t=>this.container=t},this.renderText(),this.renderButton()),this.renderCloseIcon())}render(){return e(s,{style:{"--percentuale":`${this.percentage}%`},class:this.transition?this.transition:n.slideInDown,onAnimationEnd:t=>{this.autoclose&&t.animationName.includes("slidein")&&this.startClosingTimeout(this.autoclose),t.animationName.includes("slideout")&&this.hostElement.parentNode.removeChild(this.hostElement)}},this.isMobile?this.renderMobileContainer():this.renderContainer())}get hostElement(){return a(this)}static get watchers(){return{isdraggable:["watchPropIsdraggable"],autoclose:["watchPropAutoclose"],pauseonfocusloss:["watchPropPauseonfocusloss"]}}};l.style=":host{display:inline-block;min-width:200px;width:100vw}:host(.slide-in-left){animation:slideinleft 1s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-in-right){animation:slideinright 1s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-in-down){animation:slideindown 1s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-in-up){animation:slideinup 1s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-out-left){animation:slideoutleft 0.5s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-out-right){animation:slideoutright 0.5s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-out-down){animation:slideoutdown 0.5s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-out-up){animation:slideoutup 0.5s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}@keyframes slideinleft{0%{transform:translateX(100%)}100%{transform:translateX(0)}}@keyframes slideinright{0%{transform:translateX(-100%)}100%{transform:translateX(0)}}@keyframes slideinup{0%{transform:translateY(100%);opacity:0}100%{transform:translateY(0);opacity:100%}}@keyframes slideindown{0%{transform:translateY(-100%);opacity:0}100%{transform:translateY(0);opacity:100%}}@keyframes slideoutleft{0%{transform:translateX(var(--percentuale));opacity:calc(100-var(--percentuale))}100%{transform:translateX(-100%);opacity:0%}}@keyframes slideoutright{0%{transform:translateX(var(--percentuale));opacity:calc(100-var(--percentuale))}100%{transform:translateX(100%);opacity:0%}}@keyframes slideoutup{0%{transform:translateY(var(--percentuale));opacity:100%}100%{transform:translateY(-100%);opacity:0}}@keyframes slideoutdown{0%{transform:translateY(var(--percentuale));opacity:100%}100%{transform:translateY(100%);opacity:0}}:host>#external-container{font-family:var(--font-family-sans);font-weight:var(--font-rg);border-radius:4px;font-size:14px;letter-spacing:0.16px;box-sizing:border-box;min-height:52px;padding:calc(var(--space-unit) * 1) calc(var(--space-unit) * 2);display:flex;align-items:center;justify-content:space-between;box-shadow:var(--shadow-3)}:host>#external-container.mobile-wrapped>#icon{align-self:flex-start}:host>#external-container.several-lines-padding{padding:calc(var(--space-unit) * 2)}:host>#external-container>#flex-container{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;width:100%}:host>#external-container #text{color:var(--color-white);line-height:20px;margin-right:calc(var(--space-unit) * 2);letter-spacing:0.16px;text-align:left}:host>#external-container #text>.title{margin-right:4px;font-weight:600}:host>#external-container.mobile-wrapped #button ::slotted(z-button){margin-top:calc(var(--space-unit) * 2)}:host>#external-container #icon{cursor:pointer;fill:var(--color-white);margin-left:calc(var(--space-unit) * 2)}:host>#external-container.dark{background:var(--gray800)}:host>#external-container.light{background:var(--color-background)}:host>#external-container.light #icon,:host>#external-container.warning #text,:host>#external-container.warning #icon{fill:var(--color-icon01)}:host>#external-container.light #text,:host>#external-container.warning #text{color:var(--grey800)}:host>#external-container.accent{background:var(--color-primary01)}:host>#external-container.error{background:var(--color-error-default)}:host>#external-container.success{background:var(--color-success-default)}:host>#external-container.warning{background:var(--color-warning-default)}@media only screen and (min-width: 768px){:host{width:unset;max-width:50vw}:host>#external-container>#flex-container{flex-wrap:nowrap}:host>#external-container #text{width:100%}}@media only screen and (min-width: 1366px){:host{width:unset;max-width:33vw}}";export{l as z_toast_notification}
@@ -1 +0,0 @@
1
- import{r,c as a,h as o}from"./p-1acbd992.js";const e=class{constructor(o){r(this,o),this.fileDropped=a(this,"fileDropped",7)}fileDroppedHandler(r){this.fileDropped.emit(r)}renderOnDragOverMessage(){return o("div",{class:"dragover-container"},o("div",{class:"dragover-message"},o("z-body",{variant:"semibold",level:2},"Rilascia i file in questa area per allegarli.")))}render(){return o("div",{tabIndex:0,ref:r=>this.dragDropContainer=r,class:"dragdrop",onDragOver:r=>{console.log(r),r.preventDefault(),this.dragDropContainer.classList.add("dragover")},onDragLeave:()=>{this.dragDropContainer.classList.remove("dragover")},onDragEnd:()=>{},onDrop:r=>{r.preventDefault(),r.dataTransfer.files.length&&(this.dragDropContainer.classList.remove("dragover"),this.fileDroppedHandler(r.dataTransfer.files))}},this.renderOnDragOverMessage(),o("slot",null))}};e.style=".sc-z-dragdrop-area-h{font-family:var(--font-family-sans);font-weight:var(--font-rg);margin-top:calc(var(--space-unit) * 3)}.sc-z-dragdrop-area-h>.dragdrop.sc-z-dragdrop-area{display:flex;color:var(--color-text01);flex-direction:column;position:relative;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\");border-radius:2px;border-color:var(--color-surface04);height:228px;background-color:var(--color-surface02)}.sc-z-dragdrop-area-h>.dragdrop.dragover.sc-z-dragdrop-area *.sc-z-dragdrop-area{pointer-events:none}.sc-z-dragdrop-area-h>.dragdrop.sc-z-dragdrop-area .dragover-container.sc-z-dragdrop-area{position:absolute;top:0;left:0;width:100%;height:100%;z-index:10;display:none;background-color:var(--color-primary03);box-shadow:var(--shadow-focus-primary)}.sc-z-dragdrop-area-h>.dragdrop.sc-z-dragdrop-area .dragover-container.sc-z-dragdrop-area .dragover-message.sc-z-dragdrop-area{background-color:var(--color-link-primary);color:var(--color-text04);padding:10px 28px}.sc-z-dragdrop-area-h>.dragdrop.dragover.sc-z-dragdrop-area .dragover-container.sc-z-dragdrop-area{display:flex;justify-content:center;align-items:center}";const d=class{constructor(a){r(this,a),this.variant="regular"}render(){return o("z-typography",{tabIndex:0,component:this.component||`h${this.level}`,level:`h${this.level}`,variant:this.variant},o("slot",null))}};export{e as z_dragdrop_area,d as z_heading}
@@ -1 +0,0 @@
1
- import{r as i,h as r,H as d}from"./p-1acbd992.js";import{e,a as s}from"./p-0e7fe7c1.js";const a=class{constructor(r){i(this,r),this.size=e.small,this.color="gray200",this.orientation=s.horizontal}render(){return r(d,{class:`divider-${this.size} divider-${this.orientation}`,style:{backgroundColor:`var(--${this.color})`}})}};a.style=".sc-z-divider-h{display:block;padding:0;margin:0}.divider-horizontal.sc-z-divider-h{width:100%}.divider-vertical.sc-z-divider-h{height:100%}.divider-small.divider-horizontal.sc-z-divider-h{height:var(--border-size-small)}.divider-medium.divider-horizontal.sc-z-divider-h{height:var(--border-size-medium)}.divider-large.divider-horizontal.sc-z-divider-h{height:var(--border-size-large)}.divider-small.divider-vertical.sc-z-divider-h{width:var(--border-size-small)}.divider-medium.divider-vertical.sc-z-divider-h{width:var(--border-size-medium)}.divider-large.divider-vertical.sc-z-divider-h{width:var(--border-size-large)}";export{a as z_divider}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as i}from"./p-1acbd992.js";import{r as e}from"./p-42d64757.js";import{p as c}from"./p-0e7fe7c1.js";import"./p-d69e14fb.js";const a=class{constructor(i){t(this,i),this.toggleClick=s(this,"toggleClick",7),this.disabled=!1,this.labelPosition=c.left,this.checked=!1,this.htmlid=`id-${e()}`}emitToggleClick(t){this.toggleClick.emit({id:this.htmlid,checked:t})}handleClick(t){this.disabled||(this.checked=t.target.checked,this.emitToggleClick(this.checked))}render(){return[i("input",{id:this.htmlid,type:"checkbox",checked:this.checked,disabled:this.disabled,onChange:this.handleClick.bind(this)}),i("label",{htmlFor:this.htmlid,class:this.labelPosition},i("span",{class:this.labelPosition},i("slot",null)),i("span",{class:`container ${this.disabled&&"disabled"} ${this.checked&&"active"}`},i("span",{class:`circle ${this.disabled&&"disabled"} ${this.checked&&"checked"}`},this.checked&&i("z-icon",{width:12,height:12,name:"checkmark"}))))]}};a.style='.sc-z-toggle-switch-h{font-family:var(--font-family-sans);font-weight:var(--font-rg);display:inline-flex;position:relative}label.sc-z-toggle-switch{display:flex;align-items:center;flex-direction:row}label.left.sc-z-toggle-switch{margin:0 var(--space-unit) 0 0}label.right.sc-z-toggle-switch{margin:0 var(--space-unit) 0 0;flex-direction:row-reverse}label.sc-z-toggle-switch>span.sc-z-toggle-switch{letter-spacing:0;color:var(--text-grey-800)}label.sc-z-toggle-switch>span.left.sc-z-toggle-switch{margin-right:var(--space-unit)}label.sc-z-toggle-switch>span.right.sc-z-toggle-switch{margin-left:var(--space-unit)}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch{display:flex;align-items:center}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch{height:18px;width:calc(var(--space-unit) * 4);border-radius:var(--space-unit);color:var(--gray500);background-color:var(--gray500);position:relative;cursor:pointer}label.sc-z-toggle-switch>span.container.disabled.sc-z-toggle-switch,label.sc-z-toggle-switch>span.container.active.disabled.sc-z-toggle-switch{background-color:var(--bg-grey-200);cursor:default}label.sc-z-toggle-switch>span.container.active.disabled.sc-z-toggle-switch>span.circle.checked.disabled.sc-z-toggle-switch>z-icon.sc-z-toggle-switch{fill:var(--gray200)}label.sc-z-toggle-switch>span.container.active.sc-z-toggle-switch{background-color:var(--color-primary01);fill:var(--color-primary01)}input.sc-z-toggle-switch:focus:focus-visible+label.sc-z-toggle-switch>span.container.sc-z-toggle-switch:not(.disabled){outline:none;box-shadow:var(--shadow-focus-primary)}input.sc-z-toggle-switch:focus:focus-visible+label.sc-z-toggle-switch>span.container.disabled.sc-z-toggle-switch{outline:none}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch:not(.disabled):hover{background-color:var(--color-hover-primary);fill:var(--color-hover-primary)}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch>span.circle.sc-z-toggle-switch{position:absolute;display:flex;align-items:center;justify-content:center;margin:0;height:calc(var(--space-unit) * 2);width:calc(var(--space-unit) * 2);border-radius:7px;background-color:var(--bg-white);box-shadow:var(--shadow-2);transition:transform 0.3s ease}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch>span.circle.checked.sc-z-toggle-switch{transform:translateX(100%)}input[type="checkbox"].sc-z-toggle-switch{position:absolute;opacity:0;z-index:-1;pointer-events:none}';export{a as z_toggle_switch}
@@ -1 +0,0 @@
1
- import{r,h as a,H as t}from"./p-1acbd992.js";import{Z as s}from"./p-0e7fe7c1.js";const i=class{constructor(a){r(this,a),this.mode=s.polite}render(){return a(t,{"aria-live":this.mode,"aria-atomic":"true","aria-relevant":"additions"},a("slot",null))}};export{i as z_aria_alert}