@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,329 +0,0 @@
1
- import { Component, Prop, h, Event, State, Listen, Element, } from "@stencil/core";
2
- import { DeviceEnum, DividerSize, ZFileUploadTypeEnum, } from "../../../beans";
3
- import { getDevice } from "../../../utils/utils";
4
- export class ZFileUpload {
5
- constructor() {
6
- /** Prop indicating the file upload type - can be default or dragdrop */
7
- this.type = ZFileUploadTypeEnum.default;
8
- /** Number of files added by the user */
9
- this.filesNumber = 0;
10
- this.inputAttributes = {
11
- type: "file",
12
- id: "fileElem",
13
- multiple: true,
14
- };
15
- }
16
- /** Listen removeFile event sent from z-file component */
17
- removeFileListener() {
18
- this.filesNumber--;
19
- }
20
- /** Listen fileDropped event sent from z-dragdrop-area component */
21
- fileDroppedListener(e) {
22
- this.input.files = e.detail;
23
- this.fileInputHandler();
24
- }
25
- componentDidUpdate() {
26
- this.handleAccessibility();
27
- this.invalidFiles.size && this.errorModal.focus();
28
- }
29
- componentWillLoad() {
30
- this.invalidFiles = new Map();
31
- if (this.type === ZFileUploadTypeEnum.dragdrop &&
32
- getDevice() !== DeviceEnum.desktop)
33
- this.type = ZFileUploadTypeEnum.default;
34
- }
35
- fileInputHandler() {
36
- if (this.input.files.length) {
37
- this.invalidFiles = this.checkFiles(Array.from(this.input.files));
38
- }
39
- }
40
- handleAccessibility() {
41
- if (this.filesNumber > 0) {
42
- this.el.querySelector('z-file:last-child > z-chip').shadowRoot.querySelector('button').focus();
43
- }
44
- else {
45
- this.type === ZFileUploadTypeEnum.default ? this.button.shadowRoot.querySelector('button').focus() : this.uploadLink.focus();
46
- }
47
- }
48
- checkFiles(files) {
49
- let errors = new Map();
50
- const sizeErrorString = `supera i ${this.fileMaxSize}MB`;
51
- const formatErrorString = " ha un'estensione non prevista";
52
- files.forEach((file) => {
53
- const fileSize = file.size / 1024 / 1024;
54
- const fileFormatOk = this.acceptedFormat
55
- .split(",")
56
- .some((ext) => file.name.toLowerCase().endsWith(ext.trim()));
57
- const fileSizeOk = fileSize <= this.fileMaxSize;
58
- if (fileSizeOk && fileFormatOk) {
59
- this.fileInput.emit(file);
60
- this.filesNumber++;
61
- this.input.value = "";
62
- return;
63
- }
64
- errors.set(file.name, []);
65
- if (!fileSizeOk) {
66
- errors.get(file.name).push(sizeErrorString);
67
- }
68
- if (!fileFormatOk) {
69
- errors.get(file.name).push(formatErrorString);
70
- }
71
- });
72
- return errors;
73
- }
74
- renderTitle() {
75
- return (h("z-heading", { id: "title", variant: "semibold", level: 2 }, this.mainTitle));
76
- }
77
- renderDescription(variant, level) {
78
- return (h("z-body", { variant: variant, level: level }, this.description));
79
- }
80
- renderAllowedFileExtensions() {
81
- let fileFormatString = "";
82
- let fileWeightString = "";
83
- if (this.acceptedFormat) {
84
- const fileFormat = this.acceptedFormat.split(', ')
85
- .map((string) => string.substring(1).toUpperCase())
86
- .join(', ');
87
- fileFormatString = ` nei formati ${fileFormat}`;
88
- }
89
- if (this.fileMaxSize) {
90
- fileWeightString = ` per un massimo di ${this.fileMaxSize}MB di peso`;
91
- }
92
- const finalString = `Puoi allegare file${fileFormatString}${fileWeightString}.`;
93
- return (h("z-body", { level: 3 }, fileFormatString || fileWeightString ? finalString : null));
94
- }
95
- renderFileSection() {
96
- return (this.filesNumber > 0 && (h("section", { class: "files-container" },
97
- h("z-heading", { variant: "semibold", level: 4 }, "File appena caricati"),
98
- h("div", { class: "files" },
99
- h("slot", { name: "files" })),
100
- h("z-divider", { size: DividerSize.medium }))));
101
- }
102
- renderInput() {
103
- return (h("input", Object.assign({}, this.inputAttributes, { onChange: () => this.fileInputHandler(), accept: this.acceptedFormat, ref: (val) => (this.input = val) })));
104
- }
105
- renderUploadButton() {
106
- return [
107
- this.renderInput(),
108
- h("z-button", { onClick: () => this.input.click(), onKeyPress: (e) => {
109
- if (e.code == 'Space' || e.code == 'Enter') {
110
- e.preventDefault();
111
- this.input.click();
112
- }
113
- }, id: "fileSelect", variant: this.buttonVariant, icon: "plus", ref: (val) => this.button = val }, "Allega"),
114
- ];
115
- }
116
- renderUploadLink() {
117
- return [
118
- this.renderInput(),
119
- h("z-body", { class: "upload-link-text", variant: "regular", level: 1 },
120
- "Trascinalo qui o",
121
- " ",
122
- h("z-body", { tabIndex: 0, class: "upload-link", onClick: () => this.input.click(), onKeyPress: (e) => {
123
- if (e.code == 'Space' || e.code == 'Enter') {
124
- e.preventDefault();
125
- this.input.click();
126
- }
127
- }, variant: "semibold", level: 1, ref: (val) => this.uploadLink = val }, "caricalo"),
128
- " ",
129
- "dal tuo computer"),
130
- ];
131
- }
132
- renderDefaultMode() {
133
- return [
134
- this.renderDescription("semibold", 3),
135
- this.renderAllowedFileExtensions(),
136
- this.renderFileSection(),
137
- this.renderUploadButton(),
138
- ];
139
- }
140
- renderDragDropMode() {
141
- return [
142
- this.renderFileSection(),
143
- h("z-dragdrop-area", null,
144
- h("div", { class: "text-container" },
145
- this.renderDescription("regular", 1),
146
- this.renderUploadLink(),
147
- this.renderAllowedFileExtensions())),
148
- ];
149
- }
150
- formatErrorString(key, value) {
151
- var _a, _b;
152
- const bothErrors = value[0] && value[1] ? ", " : "";
153
- 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.`;
154
- }
155
- handleErrorModalContent() {
156
- return (h("div", { slot: "modalContent" },
157
- h("div", { class: "modalWrapper" },
158
- h("div", { class: "files" }, Array.from(this.invalidFiles).map(([key, value]) => {
159
- return (h("z-body", { variant: "regular", level: 3 }, this.formatErrorString(key, value)));
160
- })))));
161
- }
162
- render() {
163
- return [
164
- h("div", { tabIndex: 0, class: `container ${this.type}` },
165
- this.renderTitle(),
166
- this.type == ZFileUploadTypeEnum.default
167
- ? this.renderDefaultMode()
168
- : this.renderDragDropMode()),
169
- !!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()))
170
- ];
171
- }
172
- static get is() { return "z-file-upload"; }
173
- static get encapsulation() { return "scoped"; }
174
- static get originalStyleUrls() { return {
175
- "$": ["styles.css"]
176
- }; }
177
- static get styleUrls() { return {
178
- "$": ["styles.css"]
179
- }; }
180
- static get properties() { return {
181
- "type": {
182
- "type": "string",
183
- "mutable": true,
184
- "complexType": {
185
- "original": "ZFileUploadTypeEnum",
186
- "resolved": "ZFileUploadTypeEnum.default | ZFileUploadTypeEnum.dragdrop",
187
- "references": {
188
- "ZFileUploadTypeEnum": {
189
- "location": "import",
190
- "path": "../../../beans"
191
- }
192
- }
193
- },
194
- "required": false,
195
- "optional": false,
196
- "docs": {
197
- "tags": [],
198
- "text": "Prop indicating the file upload type - can be default or dragdrop"
199
- },
200
- "attribute": "type",
201
- "reflect": true,
202
- "defaultValue": "ZFileUploadTypeEnum.default"
203
- },
204
- "buttonVariant": {
205
- "type": "string",
206
- "mutable": false,
207
- "complexType": {
208
- "original": "ButtonVariantEnum",
209
- "resolved": "ButtonVariantEnum.primary | ButtonVariantEnum.secondary | ButtonVariantEnum.tertiary | typeof ButtonVariantEnum[\"dark-bg\"]",
210
- "references": {
211
- "ButtonVariantEnum": {
212
- "location": "import",
213
- "path": "../../../beans"
214
- }
215
- }
216
- },
217
- "required": false,
218
- "optional": true,
219
- "docs": {
220
- "tags": [],
221
- "text": "Prop indicating the button variant"
222
- },
223
- "attribute": "button-variant",
224
- "reflect": false
225
- },
226
- "acceptedFormat": {
227
- "type": "string",
228
- "mutable": false,
229
- "complexType": {
230
- "original": "string",
231
- "resolved": "string",
232
- "references": {}
233
- },
234
- "required": false,
235
- "optional": true,
236
- "docs": {
237
- "tags": [],
238
- "text": "Prop indicating the accepted file type: ex \".pdf, .doc, .jpg\""
239
- },
240
- "attribute": "accepted-format",
241
- "reflect": false
242
- },
243
- "fileMaxSize": {
244
- "type": "number",
245
- "mutable": false,
246
- "complexType": {
247
- "original": "number",
248
- "resolved": "number",
249
- "references": {}
250
- },
251
- "required": false,
252
- "optional": true,
253
- "docs": {
254
- "tags": [],
255
- "text": "Max file dimension in Megabyte"
256
- },
257
- "attribute": "file-max-size",
258
- "reflect": false
259
- },
260
- "mainTitle": {
261
- "type": "string",
262
- "mutable": false,
263
- "complexType": {
264
- "original": "string",
265
- "resolved": "string",
266
- "references": {}
267
- },
268
- "required": false,
269
- "optional": true,
270
- "docs": {
271
- "tags": [],
272
- "text": "Title"
273
- },
274
- "attribute": "main-title",
275
- "reflect": false
276
- },
277
- "description": {
278
- "type": "string",
279
- "mutable": false,
280
- "complexType": {
281
- "original": "string",
282
- "resolved": "string",
283
- "references": {}
284
- },
285
- "required": false,
286
- "optional": true,
287
- "docs": {
288
- "tags": [],
289
- "text": "Description"
290
- },
291
- "attribute": "description",
292
- "reflect": false
293
- }
294
- }; }
295
- static get states() { return {
296
- "filesNumber": {},
297
- "invalidFiles": {}
298
- }; }
299
- static get events() { return [{
300
- "method": "fileInput",
301
- "name": "fileInput",
302
- "bubbles": true,
303
- "cancelable": true,
304
- "composed": true,
305
- "docs": {
306
- "tags": [],
307
- "text": "Emitted when user select one or more files"
308
- },
309
- "complexType": {
310
- "original": "any",
311
- "resolved": "any",
312
- "references": {}
313
- }
314
- }]; }
315
- static get elementRef() { return "el"; }
316
- static get listeners() { return [{
317
- "name": "removeFile",
318
- "method": "removeFileListener",
319
- "target": undefined,
320
- "capture": false,
321
- "passive": false
322
- }, {
323
- "name": "fileDropped",
324
- "method": "fileDroppedListener",
325
- "target": undefined,
326
- "capture": false,
327
- "passive": false
328
- }]; }
329
- }
@@ -1,87 +0,0 @@
1
- :host {
2
- font-family: var(--font-family-sans);
3
- font-weight: var(--font-rg);
4
- color: var(--color-text01);
5
- }
6
-
7
- :host > .container {
8
- display: flex;
9
- flex-direction: column;
10
- }
11
-
12
- :host .modalWrapper {
13
- display: flex;
14
- justify-content: center;
15
- align-items: center;
16
- }
17
-
18
- :host .modalWrapper > .files {
19
- margin: calc(var(--space-unit) * 4);
20
- display: flex;
21
- flex-direction: column;
22
- gap: var(--space-unit);
23
- }
24
-
25
- :host .text-container {
26
- display: flex;
27
- flex-direction: column;
28
- margin: auto;
29
- }
30
-
31
- :host .text-container z-body {
32
- text-align: center;
33
- }
34
-
35
- :host .text-container .upload-link {
36
- color: var(--color-link-primary);
37
- cursor: pointer;
38
- }
39
-
40
- :host .text-container .upload-link-text {
41
- margin-bottom: var(--space-unit);
42
- }
43
-
44
- input#fileElem {
45
- display: none;
46
- }
47
-
48
- #title {
49
- display: inline-block;
50
- margin-bottom: var(--space-unit);
51
- }
52
-
53
- :host > .container > z-button {
54
- display: inline-block;
55
- margin-top: calc(var(--space-unit) * 3);
56
- }
57
-
58
- :host > .container > .files-container > z-heading {
59
- display: inline-block;
60
- margin: calc(var(--space-unit) * 3) 0;
61
- }
62
-
63
- :host > .container > .files-container > .files {
64
- display: flex;
65
- flex-wrap: wrap;
66
- row-gap: calc(var(--space-unit) * 2);
67
- column-gap: calc(var(--space-unit) * 2);
68
- }
69
- :host > .container > .files-container > z-divider {
70
- margin-top: calc(var(--space-unit) * 3);
71
- margin-bottom: 0;
72
- }
73
-
74
- /* Tablet breakpoint */
75
- @media only screen and (min-width: 768px) {
76
- :host > .container > z-button {
77
- align-self: flex-start;
78
- }
79
- }
80
-
81
- /* Desktop breakpoint */
82
- @media only screen and (min-width: 1152px) {
83
- }
84
-
85
- /* Wide breakpoint */
86
- @media only screen and (min-width: 1366px) {
87
- }
@@ -1,25 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h } from './index-8782dff4.js';
2
- import { T as ThemeVariant } from './index-cca2b0d2.js';
3
-
4
- const stylesCss = ":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}";
5
-
6
- const ZAppSwitcher = class {
7
- constructor(hostRef) {
8
- registerInstance(this, hostRef);
9
- this.appButtonClick = createEvent(this, "appButtonClick", 7);
10
- /** theme variant, default 'dark' */
11
- this.theme = ThemeVariant.dark;
12
- this.isopen = false;
13
- this.emitAppButtonClick = this.emitAppButtonClick.bind(this);
14
- }
15
- emitAppButtonClick() {
16
- this.isopen = !this.isopen;
17
- this.appButtonClick.emit({ isopen: this.isopen });
18
- }
19
- render() {
20
- return (h("button", { title: "app-switcher", onClick: () => this.emitAppButtonClick() }, h("z-icon", { name: "app-switcher", class: this.theme })));
21
- }
22
- };
23
- ZAppSwitcher.style = stylesCss;
24
-
25
- export { ZAppSwitcher as z_app_switcher };
@@ -1,37 +0,0 @@
1
- import { r as registerInstance, h, H as Host } from './index-8782dff4.js';
2
- import { T as ThemeVariant, a as DividerOrientation } from './index-cca2b0d2.js';
3
- import { m as mobileBreakpoint } from './breakpoints-c386984e.js';
4
-
5
- const stylesCss = ":host{display:block;position:sticky;box-sizing:border-box;top:0;height:calc(var(--space-unit) * 6);padding:calc(var(--space-unit) / 2) calc(var(--space-unit) * 2);border-radius:var(--border-no-radius);background-color:var(--gray900);z-index:99}:host(.light){background-color:var(--color-white)}:host>div{display:flex;justify-content:space-between;align-items:center}:host(.limited-width) #content-container{margin:auto;max-width:var(--mw)}.content-panel{display:flex;align-items:center}.content-panel>:not(:last-child){margin-right:calc(var(--space-unit) * 2)}#divider-container{display:none}z-link{font-family:var(--font-family-sans);font-weight:var(--font-sb);font-size:14px;line-height:20px;letter-spacing:0.3px}@media only screen and (min-width: 768px){:host{padding:var(--space-unit) calc(var(--space-unit) * 2) var(--space-unit) var(--space-unit)}:host(.limited-width){padding:var(--space-unit)}#divider-container{display:block;height:calc(var(--space-unit) * 3)}}";
6
-
7
- const ZAppTopbar = class {
8
- constructor(hostRef) {
9
- registerInstance(this, hostRef);
10
- /** theme variant, default 'dark' */
11
- this.theme = ThemeVariant.dark;
12
- this.topbarLinks = [];
13
- }
14
- handleResize() {
15
- this.isMobile = window.innerWidth <= mobileBreakpoint;
16
- }
17
- componentWillLoad() {
18
- this.isMobile = window.screen.width <= mobileBreakpoint || window.innerWidth <= mobileBreakpoint;
19
- }
20
- componentWillRender() {
21
- if (this.topbarContent) {
22
- this.topbarLinks = typeof this.topbarContent === "string" ? JSON.parse(this.topbarContent) : this.topbarContent;
23
- }
24
- }
25
- renderTopbarLinks() {
26
- return this.topbarLinks.map((link) => h("z-link", { htmlid: link.id, textcolor: this.theme === ThemeVariant.light ? "black" : "white", href: link.link, target: link.target, icon: this.isMobile ? link.icon : undefined }, !this.isMobile && link.label));
27
- }
28
- render() {
29
- return (h(Host, { class: {
30
- [this.theme]: true,
31
- "limited-width": !!this.contentMaxWidth
32
- } }, h("div", { id: "content-container", style: this.contentMaxWidth ? { "--mw": `${this.contentMaxWidth}px` } : {} }, h("div", { id: "left-panel", class: "content-panel" }, h("z-logo", { mobileLogo: this.isMobile, width: this.isMobile ? 32 : 128, height: this.isMobile ? 40 : 32, imageAlt: "zanichelli-logo", link: this.logoLink, targetBlank: true }), this.isMobile && this.renderTopbarLinks()), h("div", { id: "right-panel", class: "content-panel" }, !this.isMobile && this.renderTopbarLinks(), this.showAppSwitcher && h("z-app-switcher", { theme: this.theme }), h("div", { id: "divider-container" }, h("z-divider", { orientation: DividerOrientation.vertical, color: this.theme === ThemeVariant.light ? "gray800" : "color-white" })), h("slot", { name: "login" })))));
33
- }
34
- };
35
- ZAppTopbar.style = stylesCss;
36
-
37
- export { ZAppTopbar as z_app_topbar };
@@ -1,35 +0,0 @@
1
- import { r as registerInstance, h, g as getElement } from './index-8782dff4.js';
2
- import { c as classnames } from './index-aa3a4feb.js';
3
- import { x as ButtonTypeEnum, B as ButtonVariantEnum, f as ButtonSizeEnum } from './index-cca2b0d2.js';
4
- import './_commonjsHelpers-8b28c6fa.js';
5
-
6
- const stylesCss = ":host{display:inline-block;--z-icon-width:16px;--z-icon-height:16px;--z-icon-right-margin:var(--space-unit);--rgb-white:240, 240, 240}button:disabled,::slotted(button:disabled){pointer-events:none}button,::slotted(button),::slotted(a){box-sizing:border-box;display:inline-flex;flex-direction:row;align-items:center;justify-content:center;width:100%;font-family:var(--dashboard-font);font-weight:var(--font-sb);font-size:14px;line-height:1;letter-spacing:0.3px;border-width:var(--border-size-medium);border-style:solid;border-radius:var(--border-radius);vertical-align:middle;text-transform:uppercase;text-decoration:none;cursor:pointer;white-space:nowrap;outline:none;fill:currentColor}button.big,:host([size=\"big\"]) ::slotted(button),:host([size=\"big\"]) ::slotted(a){height:44px;min-width:44px}button.small,:host([size=\"small\"]) ::slotted(button),:host([size=\"small\"]) ::slotted(a){height:36px;min-width:36px}button.issmall,:host([issmall]) ::slotted(button),:host([issmall]) ::slotted(a){height:36px;min-width:36px}button.x-small,:host([size=\"x-small\"]) ::slotted(button),:host([size=\"x-small\"]) ::slotted(a){height:32px;min-width:32px}button:not(.square),:host(:not([square])) ::slotted(button),:host(:not([square])) ::slotted(a){min-width:calc(var(--space-unit) * 8);padding:0 calc(var(--space-unit) * 2)}button.square,:host([square]){--z-icon-right-margin:0}button.primary,:host([variant=\"primary\"]) ::slotted(button),:host([variant=\"primary\"]) ::slotted(a){background-color:var(--color-primary01);border-color:var(--color-primary01);color:var(--color-text-inverse)}@media (hover: hover){button.primary:hover,:host([variant=\"primary\"]) ::slotted(button:hover),:host([variant=\"primary\"]) ::slotted(a:hover){background-color:var(--color-hover-primary);border-color:var(--color-hover-primary);color:var(--color-text-inverse)}}button:focus:focus-visible,::slotted(button:focus:focus-visible),::slotted(a:focus:focus-visible){box-shadow:var(--shadow-focus-primary)}button.primary:active,:host([variant=\"primary\"]) ::slotted(button:active),:host([variant=\"primary\"]) ::slotted(a:active){background-color:var(--color-pressed-primary);border-color:var(--color-pressed-primary);color:var(--color-text-inverse);box-shadow:var(--shadow-2)}button.primary:disabled,:host([variant=\"primary\"]) ::slotted(button:disabled){background-color:var(--color-disabled01);border-color:var(--color-disabled01);color:var(--color-disabled02)}button.secondary,:host([variant=\"secondary\"]) ::slotted(button),:host([variant=\"secondary\"]) ::slotted(a){background-color:var(--color-surface01);border-color:var(--color-primary01);color:var(--color-primary01)}@media (hover: hover){button.secondary:hover,:host([variant=\"secondary\"]) ::slotted(button:hover),:host([variant=\"secondary\"]) ::slotted(a:hover){background-color:var(--color-surface01);border-color:var(--color-hover-primary);color:var(--color-hover-primary)}}button.secondary:active,:host([variant=\"secondary\"]) ::slotted(button:active),:host([variant=\"secondary\"]) ::slotted(a:active){background-color:var(--color-surface01);border-color:var(--color-pressed-primary);color:var(--color-pressed-primary);box-shadow:var(--shadow-2)}button.secondary:disabled,:host([variant=\"secondary\"]) ::slotted(button:disabled){background-color:var(--color-surface01);border-color:var(--color-disabled01);color:var(--color-disabled02)}button.tertiary,:host([variant=\"tertiary\"]) ::slotted(button),:host([variant=\"tertiary\"]) ::slotted(a){background-color:transparent;border-color:transparent;color:var(--color-primary01)}button.tertiary.hasContent{padding:0 var(--space-unit)}@media (hover: hover){button.tertiary:hover,:host([variant=\"tertiary\"]) ::slotted(button:hover),:host([variant=\"tertiary\"]) ::slotted(a:hover){background-color:var(--color-primary03);border-color:var(--color-primary03);color:var(--color-hover-primary)}}button.tertiary:focus:focus-visible,:host([variant=\"tertiary\"]) ::slotted(button:focus:focus-visible),:host([variant=\"tertiary\"]) ::slotted(a:focus:focus-visible){background-color:var(--color-surface01);border-color:var(--color-surface01);color:var(--color-primary01)}button.tertiary:active,:host([variant=\"tertiary\"]) ::slotted(button:active),:host([variant=\"tertiary\"]) ::slotted(a:active){background-color:var(--color-surface01);border-color:var(--color-surface01);color:var(--color-primary01);box-shadow:var(--shadow-2)}button.tertiary:disabled,:host([variant=\"tertiary\"]) ::slotted(button:disabled){background-color:transparent;border-color:transparent;color:var(--color-disabled02)}button.dark-bg,:host([variant=\"dark-bg\"]) ::slotted(button),:host([variant=\"dark-bg\"]) ::slotted(a){background-color:rgba(var(--rgb-white), 0.2);border-color:transparent;color:var(--color-text04)}button.dark-bg.hasContent{padding:0 var(--space-unit)}@media (hover: hover){button.dark-bg:hover,:host([variant=\"dark-bg\"]) ::slotted(button:hover),:host([variant=\"dark-bg\"]) ::slotted(a:hover){background-color:rgba(var(--rgb-white), 0.1)}}button.dark-bg:active,:host([variant=\"dark-bg\"]) ::slotted(button:active),:host([variant=\"dark-bg\"]) ::slotted(a:active){background-color:rgba(var(--rgb-white), 0.3)}button.dark-bg:disabled,:host([variant=\"dark-bg\"]) ::slotted(button:disabled){color:var(--color-disabled03);background-color:rgba(var(--rgb-white), 0.05)}";
7
-
8
- const ZButton = class {
9
- constructor(hostRef) {
10
- registerInstance(this, hostRef);
11
- /** HTML button disabled attribute. */
12
- this.disabled = false;
13
- /** HTML button type attribute. */
14
- this.type = ButtonTypeEnum.button;
15
- /** Graphical variant: `primary`, `secondary`, `tertiary`, `dark-bg`. Defaults to `primary`. */
16
- this.variant = ButtonVariantEnum.primary;
17
- /** Available sizes: `big`, `small` and `x-small`. Defaults to `big`. */
18
- this.size = ButtonSizeEnum.big;
19
- /** Reduce button size (deprecated).
20
- *
21
- * @deprecated Use `size` prop.
22
- * */
23
- this.issmall = false;
24
- /** Spy to render square button. */
25
- this.square = false;
26
- }
27
- render() {
28
- this.hostElement.style.pointerEvents = this.disabled ? "none" : "auto";
29
- return (h("slot", { name: "element" }, h("button", { id: this.htmlid, name: this.name, type: this.type, disabled: this.disabled, class: classnames(this.variant, this.size, { issmall: this.issmall }, { square: this.square }) }, this.icon && h("z-icon", { name: this.icon, width: 16, height: 16 }), h("slot", null))));
30
- }
31
- get hostElement() { return getElement(this); }
32
- };
33
- ZButton.style = stylesCss;
34
-
35
- export { ZButton as z_button };
@@ -1,65 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h, g as getElement } from './index-8782dff4.js';
2
- import { C as CardVariants } from './index-cca2b0d2.js';
3
-
4
- const stylesCss = ":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)}";
5
-
6
- const ZCard = class {
7
- constructor(hostRef) {
8
- registerInstance(this, hostRef);
9
- this.cardClicked = createEvent(this, "cardClicked", 7);
10
- /** Enable click interactions on the card. Default: false */
11
- this.clickable = false;
12
- /** Enable shadow. Default: false. */
13
- this.showshadow = false;
14
- }
15
- onClick(ev) {
16
- // Do nothing for clicks on actions.
17
- if (ev.target.getAttribute('slot') === 'action') {
18
- return;
19
- }
20
- if (!this.clickable) {
21
- ev.preventDefault();
22
- ev.stopPropagation();
23
- return;
24
- }
25
- this.cardClicked.emit();
26
- }
27
- componentWillLoad() {
28
- this.hasCoverImage = !!this.host.querySelector('[slot="cover"]');
29
- }
30
- /**
31
- * Template for a card without image cover.
32
- * A colored background replaces the image and some data is moved over it.
33
- */
34
- renderColorCoverCard() {
35
- return [
36
- h("div", { class: "cover-container" }, h("div", { class: "color-cover" }, h("div", { class: "cover-content" }, h("slot", { name: "metadata" }), h("slot", { name: "title" })))),
37
- h("div", { class: "content" }, h("slot", { name: "text" }), h("div", { class: "actions" }, h("slot", { name: "action" })))
38
- ];
39
- }
40
- /**
41
- * Template for the content div.
42
- */
43
- renderContentDiv() {
44
- return (h("div", { class: "content" }, h("slot", { name: "metadata" }), h("slot", { name: "title" }), h("slot", { name: "text" }), h("div", { class: "actions" }, h("slot", { name: "action" }))));
45
- }
46
- render() {
47
- if (this.variant === CardVariants.text) {
48
- return this.renderContentDiv();
49
- }
50
- if (this.variant === CardVariants.overlay || this.hasCoverImage) {
51
- return [
52
- h("div", { class: "cover-container" }, this.hasCoverImage && [
53
- h("slot", { name: "cover" }),
54
- (this.variant !== CardVariants.overlay) && this.coverIcon && h("z-icon", { name: this.coverIcon })
55
- ], !this.hasCoverImage && h("div", { class: "color-cover" })),
56
- this.renderContentDiv()
57
- ];
58
- }
59
- return this.renderColorCoverCard();
60
- }
61
- get host() { return getElement(this); }
62
- };
63
- ZCard.style = stylesCss;
64
-
65
- export { ZCard as z_card };
@@ -1,15 +0,0 @@
1
- import { r as registerInstance, h } from './index-8782dff4.js';
2
-
3
- const stylesCss = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg);--z-carousel-gutter:0}.z-carousel-items-container{display:flex;overflow-x:scroll;padding-inline-start:0;margin:0;list-style:none;-ms-overflow-style:none;scrollbar-width:none;}.z-carousel-items-container::-webkit-scrollbar{display:none}.z-carousel-items-container>*:not(:last-child){margin-right:var(--z-carousel-gutter)}";
4
-
5
- const ZCarousel = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- }
9
- render() {
10
- return (h("ul", { class: "z-carousel-items-container" }, h("slot", null)));
11
- }
12
- };
13
- ZCarousel.style = stylesCss;
14
-
15
- export { ZCarousel as z_carousel };
@@ -1,22 +0,0 @@
1
- import { r as registerInstance, h, H as Host } from './index-8782dff4.js';
2
- import { e as DividerSize, a as DividerOrientation } from './index-cca2b0d2.js';
3
-
4
- const stylesCss = ".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)}";
5
-
6
- const ZDivider = class {
7
- constructor(hostRef) {
8
- registerInstance(this, hostRef);
9
- /** [optional] Divider size */
10
- this.size = DividerSize.small;
11
- /** [optional] Divider color */
12
- this.color = "gray200";
13
- /** [optional] Divider orintation */
14
- this.orientation = DividerOrientation.horizontal;
15
- }
16
- render() {
17
- return (h(Host, { class: `divider-${this.size} divider-${this.orientation}`, style: { backgroundColor: `var(--${this.color})` } }));
18
- }
19
- };
20
- ZDivider.style = stylesCss;
21
-
22
- export { ZDivider as z_divider };