@zanichelli/albe-web-components 17.0.0 → 17.0.2

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 (695) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/cjs/{index-a42ab7c9.js → index-2a9a328d.js} +2 -2
  3. package/dist/cjs/{index-a42ab7c9.js.map → index-2a9a328d.js.map} +1 -1
  4. package/dist/cjs/{index-4b1d6599.js → index-4e2d222e.js} +2 -2
  5. package/dist/cjs/{index-4b1d6599.js.map → index-4e2d222e.js.map} +1 -1
  6. package/dist/cjs/{index-816614ee.js → index-7191c0cc.js} +2 -2
  7. package/dist/cjs/{index-816614ee.js.map → index-7191c0cc.js.map} +1 -1
  8. package/dist/cjs/{index-3b95f98f.js → index-a6593d82.js} +2 -2
  9. package/dist/cjs/{index-3b95f98f.js.map → index-a6593d82.js.map} +1 -1
  10. package/dist/cjs/{index-e2718c94.js → index-aa56c709.js} +4 -4
  11. package/dist/cjs/{index-e2718c94.js.map → index-aa56c709.js.map} +1 -1
  12. package/dist/cjs/{index-141d598e.js → index-b2f35532.js} +2 -2
  13. package/dist/cjs/{index-141d598e.js.map → index-b2f35532.js.map} +1 -1
  14. package/dist/cjs/loader.cjs.js +1 -1
  15. package/dist/cjs/web-components-library.cjs.js +1 -1
  16. package/dist/cjs/z-accordion.cjs.entry.js +2 -2
  17. package/dist/cjs/z-accordion.cjs.entry.js.map +1 -1
  18. package/dist/cjs/z-alert.cjs.entry.js +1 -1
  19. package/dist/cjs/z-anchor-navigation.cjs.entry.js +2 -2
  20. package/dist/cjs/z-anchor-navigation.cjs.entry.js.map +1 -1
  21. package/dist/cjs/z-app-header-deprecated.cjs.entry.js +1 -1
  22. package/dist/cjs/z-app-header_12.cjs.entry.js +13 -13
  23. package/dist/cjs/z-aria-alert.cjs.entry.js +1 -1
  24. package/dist/cjs/z-avatar.cjs.entry.js +2 -2
  25. package/dist/cjs/z-book-card-app.cjs.entry.js +1 -1
  26. package/dist/cjs/z-book-card-deprecated.cjs.entry.js +1 -1
  27. package/dist/cjs/z-book-card.cjs.entry.js +2 -2
  28. package/dist/cjs/z-breadcrumb.cjs.entry.js +2 -2
  29. package/dist/cjs/z-button-sort.cjs.entry.js +1 -1
  30. package/dist/cjs/z-chip.cjs.entry.js +2 -2
  31. package/dist/cjs/z-combobox.cjs.entry.js +1 -1
  32. package/dist/cjs/z-cover-hero.cjs.entry.js +2 -2
  33. package/dist/cjs/z-date-picker.cjs.entry.js +1 -1
  34. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +16 -20
  35. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js.map +1 -1
  36. package/dist/cjs/z-file-upload.cjs.entry.js +77 -101
  37. package/dist/cjs/z-file-upload.cjs.entry.js.map +1 -1
  38. package/dist/cjs/z-file.cjs.entry.js +1 -1
  39. package/dist/cjs/z-ghost-loading.cjs.entry.js +1 -1
  40. package/dist/cjs/z-info-box.cjs.entry.js +1 -1
  41. package/dist/cjs/z-info-reveal.cjs.entry.js +1 -1
  42. package/dist/cjs/z-logo.cjs.entry.js +1 -1
  43. package/dist/cjs/z-menu-deprecated.cjs.entry.js +2 -2
  44. package/dist/cjs/z-menu-deprecated.cjs.entry.js.map +1 -1
  45. package/dist/cjs/z-menu-section-deprecated.cjs.entry.js +2 -2
  46. package/dist/cjs/z-menu-section-deprecated.cjs.entry.js.map +1 -1
  47. package/dist/cjs/z-menu-section.cjs.entry.js +2 -2
  48. package/dist/cjs/z-menu-section.cjs.entry.js.map +1 -1
  49. package/dist/cjs/z-menu.cjs.entry.js +1 -1
  50. package/dist/cjs/z-menu.cjs.entry.js.map +1 -1
  51. package/dist/cjs/z-myz-card-alert.cjs.entry.js +1 -1
  52. package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +1 -1
  53. package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +1 -1
  54. package/dist/cjs/z-myz-card-footer.cjs.entry.js +1 -1
  55. package/dist/cjs/z-myz-card-icon.cjs.entry.js +1 -1
  56. package/dist/cjs/z-myz-card-info.cjs.entry.js +2 -2
  57. package/dist/cjs/z-myz-card-info.cjs.entry.js.map +1 -1
  58. package/dist/cjs/z-myz-card-list.cjs.entry.js +1 -1
  59. package/dist/cjs/z-myz-card_4.cjs.entry.js +4 -4
  60. package/dist/cjs/z-myz-list-item.cjs.entry.js +1 -1
  61. package/dist/cjs/z-myz-list.cjs.entry.js +1 -1
  62. package/dist/cjs/z-navigation-tabs.cjs.entry.js +3 -3
  63. package/dist/cjs/z-navigation-tabs.cjs.entry.js.map +1 -1
  64. package/dist/cjs/z-notification.cjs.entry.js +1 -1
  65. package/dist/cjs/z-otp.cjs.entry.js +2 -2
  66. package/dist/cjs/z-panel-elem.cjs.entry.js +2 -2
  67. package/dist/cjs/z-popover.cjs.entry.js +1 -1
  68. package/dist/cjs/z-range-picker.cjs.entry.js +3 -3
  69. package/dist/cjs/z-section-title.cjs.entry.js +1 -1
  70. package/dist/cjs/z-select.cjs.entry.js +1 -1
  71. package/dist/cjs/z-skip-to-content.cjs.entry.js +1 -1
  72. package/dist/cjs/z-stepper-item.cjs.entry.js +1 -1
  73. package/dist/cjs/z-stepper.cjs.entry.js +1 -1
  74. package/dist/cjs/z-table.cjs.entry.js +7 -7
  75. package/dist/cjs/z-tbody.cjs.entry.js +1 -1
  76. package/dist/cjs/z-td.cjs.entry.js +1 -1
  77. package/dist/cjs/z-tfoot.cjs.entry.js +1 -1
  78. package/dist/cjs/z-th.cjs.entry.js +1 -1
  79. package/dist/cjs/z-thead.cjs.entry.js +1 -1
  80. package/dist/cjs/z-toast-notification-list.cjs.entry.js +1 -1
  81. package/dist/cjs/z-toast-notification.cjs.entry.js +1 -1
  82. package/dist/cjs/z-toggle-button.cjs.entry.js +2 -2
  83. package/dist/cjs/z-toggle-switch.cjs.entry.js +3 -3
  84. package/dist/cjs/z-tooltip.cjs.entry.js +1 -1
  85. package/dist/cjs/z-tr.cjs.entry.js +3 -3
  86. package/dist/cjs/z-visually-hidden.cjs.entry.js +1 -1
  87. package/dist/collection/collection-manifest.json +1 -1
  88. package/dist/collection/components/book-card/z-book-card/index.js +2 -2
  89. package/dist/collection/components/book-card/z-book-card-app/index.js +1 -1
  90. package/dist/collection/components/date-picker/z-date-picker/index.js +1 -1
  91. package/dist/collection/components/date-picker/z-range-picker/index.js +3 -3
  92. package/dist/collection/components/deprecated/z-app-header-deprecated/index.js +1 -1
  93. package/dist/collection/components/deprecated/z-book-card-deprecated/index.js +1 -1
  94. package/dist/collection/components/deprecated/z-menu-deprecated/index.js +1 -1
  95. package/dist/collection/components/deprecated/z-menu-deprecated/styles.css +2 -2
  96. package/dist/collection/components/deprecated/z-menu-section-deprecated/index.js +1 -1
  97. package/dist/collection/components/deprecated/z-menu-section-deprecated/styles.css +3 -3
  98. package/dist/collection/components/file-upload/z-dragdrop-area/index.js +17 -16
  99. package/dist/collection/components/file-upload/z-dragdrop-area/index.js.map +1 -1
  100. package/dist/collection/components/file-upload/z-dragdrop-area/styles.css +55 -29
  101. package/dist/collection/components/file-upload/z-file/index.js +1 -1
  102. package/dist/collection/components/file-upload/z-file-upload/index.js +146 -107
  103. package/dist/collection/components/file-upload/z-file-upload/index.js.map +1 -1
  104. package/dist/collection/components/file-upload/z-file-upload/index.stories.js +11 -13
  105. package/dist/collection/components/file-upload/z-file-upload/index.stories.js.map +1 -1
  106. package/dist/collection/components/file-upload/z-file-upload/styles.css +18 -52
  107. package/dist/collection/components/list/z-list/index.js +1 -1
  108. package/dist/collection/components/list/z-list-element/index.js +1 -1
  109. package/dist/collection/components/list/z-list-group/index.js +2 -2
  110. package/dist/collection/components/table/cells/z-td/index.js +1 -1
  111. package/dist/collection/components/table/cells/z-th/index.js +1 -1
  112. package/dist/collection/components/table/z-table/index.js +1 -1
  113. package/dist/collection/components/table/z-tbody/index.js +1 -1
  114. package/dist/collection/components/table/z-tfoot/index.js +1 -1
  115. package/dist/collection/components/table/z-thead/index.js +1 -1
  116. package/dist/collection/components/table/z-tr/index.js +1 -1
  117. package/dist/collection/components/z-accordion/index.js +1 -1
  118. package/dist/collection/components/z-accordion/styles.css +6 -1
  119. package/dist/collection/components/z-anchor-navigation/index.js +1 -1
  120. package/dist/collection/components/z-anchor-navigation/styles.css +4 -2
  121. package/dist/collection/components/z-app-header/index.js +1 -1
  122. package/dist/collection/components/z-aria-alert/index.js +1 -1
  123. package/dist/collection/components/z-avatar/index.js +2 -2
  124. package/dist/collection/components/z-breadcrumb/index.js +2 -2
  125. package/dist/collection/components/z-button-sort/index.js +1 -1
  126. package/dist/collection/components/z-chip/index.js +2 -2
  127. package/dist/collection/components/z-combobox/index.js +1 -1
  128. package/dist/collection/components/z-cover-hero/index.js +2 -2
  129. package/dist/collection/components/z-divider/index.js +1 -1
  130. package/dist/collection/components/z-ghost-loading/index.js +1 -1
  131. package/dist/collection/components/z-icon/index.js +1 -1
  132. package/dist/collection/components/z-info-box/index.js +1 -1
  133. package/dist/collection/components/z-info-reveal/index.js +1 -1
  134. package/dist/collection/components/z-input/index.js +1 -1
  135. package/dist/collection/components/z-input-message/index.js +1 -1
  136. package/dist/collection/components/z-logo/index.js +1 -1
  137. package/dist/collection/components/z-menu/styles.css +3 -3
  138. package/dist/collection/components/z-menu-section/index.js +1 -1
  139. package/dist/collection/components/z-menu-section/styles.css +3 -3
  140. package/dist/collection/components/z-modal/index.js +4 -4
  141. package/dist/collection/components/z-navigation-tabs/index.js +2 -2
  142. package/dist/collection/components/z-navigation-tabs/styles.css +2 -2
  143. package/dist/collection/components/z-notification/index.js +1 -1
  144. package/dist/collection/components/z-offcanvas/index.js +1 -1
  145. package/dist/collection/components/z-panel-elem/index.js +2 -2
  146. package/dist/collection/components/z-popover/index.js +1 -1
  147. package/dist/collection/components/z-searchbar/index.js +1 -1
  148. package/dist/collection/components/z-section-title/index.js +1 -1
  149. package/dist/collection/components/z-select/index.js +1 -1
  150. package/dist/collection/components/z-skip-to-content/index.js +1 -1
  151. package/dist/collection/components/z-stepper/index.js +1 -1
  152. package/dist/collection/components/z-stepper-item/index.js +1 -1
  153. package/dist/collection/components/z-tag/index.js +2 -2
  154. package/dist/collection/components/z-toast-notification/index.js +1 -1
  155. package/dist/collection/components/z-toast-notification-list/index.js +1 -1
  156. package/dist/collection/components/z-toggle-button/index.js +2 -2
  157. package/dist/collection/components/z-toggle-switch/index.js +3 -3
  158. package/dist/collection/components/z-tooltip/index.js +1 -1
  159. package/dist/collection/components/z-visually-hidden/index.js +1 -1
  160. package/dist/collection/snowflakes/myz/card/z-myz-card/index.js +1 -1
  161. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js +1 -1
  162. package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js +1 -1
  163. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js +1 -1
  164. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js +1 -1
  165. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js +1 -1
  166. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js +1 -1
  167. package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js +1 -1
  168. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js +1 -1
  169. package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +1 -1
  170. package/dist/collection/snowflakes/myz/card/z-myz-card-info/styles.css +1 -1
  171. package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js +1 -1
  172. package/dist/collection/snowflakes/myz/list/z-myz-list/index.js +1 -1
  173. package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js +1 -1
  174. package/dist/collection/snowflakes/myz/z-alert/index.js +1 -1
  175. package/dist/collection/snowflakes/myz/z-otp/index.js +2 -2
  176. package/dist/components/index10.js +1 -1
  177. package/dist/components/index11.js +1 -1
  178. package/dist/components/index12.js +1 -1
  179. package/dist/components/index13.js +1 -1
  180. package/dist/components/index14.js +1 -1
  181. package/dist/components/index15.js +2 -2
  182. package/dist/components/index16.js +4 -4
  183. package/dist/components/index17.js +1 -1
  184. package/dist/components/index18.js +1 -1
  185. package/dist/components/index19.js +1 -1
  186. package/dist/components/index20.js +1 -1
  187. package/dist/components/index21.js +1 -1
  188. package/dist/components/index22.js +1 -1
  189. package/dist/components/index23.js +1 -1
  190. package/dist/components/index24.js +1 -1
  191. package/dist/components/index25.js +2 -2
  192. package/dist/components/index3.js +1 -1
  193. package/dist/components/index5.js +2 -2
  194. package/dist/components/index6.js +1 -1
  195. package/dist/components/index7.js +28 -19
  196. package/dist/components/index7.js.map +1 -1
  197. package/dist/components/index8.js +1 -1
  198. package/dist/components/index9.js +1 -1
  199. package/dist/components/z-accordion.js +2 -2
  200. package/dist/components/z-accordion.js.map +1 -1
  201. package/dist/components/z-anchor-navigation.js +2 -2
  202. package/dist/components/z-anchor-navigation.js.map +1 -1
  203. package/dist/components/z-app-header-deprecated.js +1 -1
  204. package/dist/components/z-app-header.js +1 -1
  205. package/dist/components/z-aria-alert.js +1 -1
  206. package/dist/components/z-avatar.js +2 -2
  207. package/dist/components/z-book-card-app.js +1 -1
  208. package/dist/components/z-book-card-deprecated.js +1 -1
  209. package/dist/components/z-book-card.js +2 -2
  210. package/dist/components/z-breadcrumb.js +2 -2
  211. package/dist/components/z-button-sort.js +1 -1
  212. package/dist/components/z-combobox.js +1 -1
  213. package/dist/components/z-cover-hero.js +2 -2
  214. package/dist/components/z-date-picker.js +1 -1
  215. package/dist/components/z-file-upload.js +85 -112
  216. package/dist/components/z-file-upload.js.map +1 -1
  217. package/dist/components/z-file.js +1 -1
  218. package/dist/components/z-info-box.js +1 -1
  219. package/dist/components/z-logo.js +1 -1
  220. package/dist/components/z-menu-deprecated.js +2 -2
  221. package/dist/components/z-menu-deprecated.js.map +1 -1
  222. package/dist/components/z-menu-section-deprecated.js +2 -2
  223. package/dist/components/z-menu-section-deprecated.js.map +1 -1
  224. package/dist/components/z-menu-section.js +2 -2
  225. package/dist/components/z-menu-section.js.map +1 -1
  226. package/dist/components/z-menu.js +1 -1
  227. package/dist/components/z-menu.js.map +1 -1
  228. package/dist/components/z-myz-card-alert.js +1 -1
  229. package/dist/components/z-myz-card-dictionary.js +1 -1
  230. package/dist/components/z-myz-card-footer-sections.js +1 -1
  231. package/dist/components/z-myz-card-footer.js +1 -1
  232. package/dist/components/z-myz-card-icon.js +1 -1
  233. package/dist/components/z-myz-card-info.js +2 -2
  234. package/dist/components/z-myz-card-info.js.map +1 -1
  235. package/dist/components/z-myz-card-list.js +1 -1
  236. package/dist/components/z-myz-list.js +1 -1
  237. package/dist/components/z-navigation-tabs.js +3 -3
  238. package/dist/components/z-navigation-tabs.js.map +1 -1
  239. package/dist/components/z-notification.js +1 -1
  240. package/dist/components/z-otp.js +2 -2
  241. package/dist/components/z-panel-elem.js +2 -2
  242. package/dist/components/z-range-picker.js +3 -3
  243. package/dist/components/z-section-title.js +1 -1
  244. package/dist/components/z-select.js +1 -1
  245. package/dist/components/z-skip-to-content.js +1 -1
  246. package/dist/components/z-stepper-item.js +1 -1
  247. package/dist/components/z-stepper.js +1 -1
  248. package/dist/components/z-table.js +1 -1
  249. package/dist/components/z-tbody.js +1 -1
  250. package/dist/components/z-td.js +1 -1
  251. package/dist/components/z-tfoot.js +1 -1
  252. package/dist/components/z-th.js +1 -1
  253. package/dist/components/z-thead.js +1 -1
  254. package/dist/components/z-toast-notification-list.js +1 -1
  255. package/dist/components/z-toast-notification.js +1 -1
  256. package/dist/components/z-toggle-button.js +2 -2
  257. package/dist/components/z-toggle-switch.js +3 -3
  258. package/dist/components/z-tooltip.js +1 -1
  259. package/dist/components/z-tr.js +1 -1
  260. package/dist/components/z-visually-hidden.js +1 -1
  261. package/dist/esm/{index-daf6dc52.js → index-04335eea.js} +2 -2
  262. package/dist/esm/{index-daf6dc52.js.map → index-04335eea.js.map} +1 -1
  263. package/dist/esm/{index-bcd128c9.js → index-5dff449e.js} +2 -2
  264. package/dist/esm/{index-bcd128c9.js.map → index-5dff449e.js.map} +1 -1
  265. package/dist/esm/{index-bf3d3447.js → index-735d4f23.js} +2 -2
  266. package/dist/esm/{index-bf3d3447.js.map → index-735d4f23.js.map} +1 -1
  267. package/dist/esm/{index-03fd6621.js → index-8df19678.js} +4 -4
  268. package/dist/esm/{index-03fd6621.js.map → index-8df19678.js.map} +1 -1
  269. package/dist/esm/{index-2e00cecb.js → index-90f624c1.js} +2 -2
  270. package/dist/esm/{index-2e00cecb.js.map → index-90f624c1.js.map} +1 -1
  271. package/dist/esm/{index-358dea59.js → index-9adfcd0d.js} +2 -2
  272. package/dist/esm/{index-358dea59.js.map → index-9adfcd0d.js.map} +1 -1
  273. package/dist/esm/loader.js +1 -1
  274. package/dist/esm/web-components-library.js +1 -1
  275. package/dist/esm/z-accordion.entry.js +2 -2
  276. package/dist/esm/z-accordion.entry.js.map +1 -1
  277. package/dist/esm/z-alert.entry.js +1 -1
  278. package/dist/esm/z-anchor-navigation.entry.js +2 -2
  279. package/dist/esm/z-anchor-navigation.entry.js.map +1 -1
  280. package/dist/esm/z-app-header-deprecated.entry.js +1 -1
  281. package/dist/esm/z-app-header_12.entry.js +13 -13
  282. package/dist/esm/z-aria-alert.entry.js +1 -1
  283. package/dist/esm/z-avatar.entry.js +2 -2
  284. package/dist/esm/z-book-card-app.entry.js +1 -1
  285. package/dist/esm/z-book-card-deprecated.entry.js +1 -1
  286. package/dist/esm/z-book-card.entry.js +2 -2
  287. package/dist/esm/z-breadcrumb.entry.js +2 -2
  288. package/dist/esm/z-button-sort.entry.js +1 -1
  289. package/dist/esm/z-chip.entry.js +2 -2
  290. package/dist/esm/z-combobox.entry.js +1 -1
  291. package/dist/esm/z-cover-hero.entry.js +2 -2
  292. package/dist/esm/z-date-picker.entry.js +1 -1
  293. package/dist/esm/z-dragdrop-area_2.entry.js +17 -21
  294. package/dist/esm/z-dragdrop-area_2.entry.js.map +1 -1
  295. package/dist/esm/z-file-upload.entry.js +78 -102
  296. package/dist/esm/z-file-upload.entry.js.map +1 -1
  297. package/dist/esm/z-file.entry.js +1 -1
  298. package/dist/esm/z-ghost-loading.entry.js +1 -1
  299. package/dist/esm/z-info-box.entry.js +1 -1
  300. package/dist/esm/z-info-reveal.entry.js +1 -1
  301. package/dist/esm/z-logo.entry.js +1 -1
  302. package/dist/esm/z-menu-deprecated.entry.js +2 -2
  303. package/dist/esm/z-menu-deprecated.entry.js.map +1 -1
  304. package/dist/esm/z-menu-section-deprecated.entry.js +2 -2
  305. package/dist/esm/z-menu-section-deprecated.entry.js.map +1 -1
  306. package/dist/esm/z-menu-section.entry.js +2 -2
  307. package/dist/esm/z-menu-section.entry.js.map +1 -1
  308. package/dist/esm/z-menu.entry.js +1 -1
  309. package/dist/esm/z-menu.entry.js.map +1 -1
  310. package/dist/esm/z-myz-card-alert.entry.js +1 -1
  311. package/dist/esm/z-myz-card-dictionary.entry.js +1 -1
  312. package/dist/esm/z-myz-card-footer-sections.entry.js +1 -1
  313. package/dist/esm/z-myz-card-footer.entry.js +1 -1
  314. package/dist/esm/z-myz-card-icon.entry.js +1 -1
  315. package/dist/esm/z-myz-card-info.entry.js +2 -2
  316. package/dist/esm/z-myz-card-info.entry.js.map +1 -1
  317. package/dist/esm/z-myz-card-list.entry.js +1 -1
  318. package/dist/esm/z-myz-card_4.entry.js +4 -4
  319. package/dist/esm/z-myz-list-item.entry.js +1 -1
  320. package/dist/esm/z-myz-list.entry.js +1 -1
  321. package/dist/esm/z-navigation-tabs.entry.js +3 -3
  322. package/dist/esm/z-navigation-tabs.entry.js.map +1 -1
  323. package/dist/esm/z-notification.entry.js +1 -1
  324. package/dist/esm/z-otp.entry.js +2 -2
  325. package/dist/esm/z-panel-elem.entry.js +2 -2
  326. package/dist/esm/z-popover.entry.js +1 -1
  327. package/dist/esm/z-range-picker.entry.js +3 -3
  328. package/dist/esm/z-section-title.entry.js +1 -1
  329. package/dist/esm/z-select.entry.js +1 -1
  330. package/dist/esm/z-skip-to-content.entry.js +1 -1
  331. package/dist/esm/z-stepper-item.entry.js +1 -1
  332. package/dist/esm/z-stepper.entry.js +1 -1
  333. package/dist/esm/z-table.entry.js +7 -7
  334. package/dist/esm/z-tbody.entry.js +1 -1
  335. package/dist/esm/z-td.entry.js +1 -1
  336. package/dist/esm/z-tfoot.entry.js +1 -1
  337. package/dist/esm/z-th.entry.js +1 -1
  338. package/dist/esm/z-thead.entry.js +1 -1
  339. package/dist/esm/z-toast-notification-list.entry.js +1 -1
  340. package/dist/esm/z-toast-notification.entry.js +1 -1
  341. package/dist/esm/z-toggle-button.entry.js +2 -2
  342. package/dist/esm/z-toggle-switch.entry.js +3 -3
  343. package/dist/esm/z-tooltip.entry.js +1 -1
  344. package/dist/esm/z-tr.entry.js +3 -3
  345. package/dist/esm/z-visually-hidden.entry.js +1 -1
  346. package/dist/types/components/file-upload/z-dragdrop-area/index.d.ts +4 -4
  347. package/dist/types/components/file-upload/z-file-upload/index.d.ts +39 -25
  348. package/dist/types/components/file-upload/z-file-upload/index.stories.d.ts +1 -0
  349. package/dist/types/components.d.ts +27 -4
  350. package/{www/build/p-a707640a.entry.js → dist/web-components-library/p-015621c8.entry.js} +2 -2
  351. package/dist/web-components-library/p-035807e3.entry.js +2 -0
  352. package/{www/build/p-cd55204b.js → dist/web-components-library/p-037c59b3.js} +2 -2
  353. package/dist/web-components-library/{p-479b13ae.entry.js → p-0565f1b2.entry.js} +2 -2
  354. package/dist/web-components-library/p-08d8f935.entry.js +2 -0
  355. package/{www/build/p-95795174.entry.js → dist/web-components-library/p-0df6b405.entry.js} +2 -2
  356. package/dist/web-components-library/p-11216ee8.entry.js +2 -0
  357. package/{www/build/p-5ccbdfbe.entry.js.map → dist/web-components-library/p-11216ee8.entry.js.map} +1 -1
  358. package/dist/web-components-library/p-115fab3e.entry.js +2 -0
  359. package/dist/web-components-library/p-115fab3e.entry.js.map +1 -0
  360. package/dist/web-components-library/{p-914e20e9.entry.js → p-11629dd3.entry.js} +2 -2
  361. package/dist/web-components-library/{p-90d54c40.js → p-123739cb.js} +2 -2
  362. package/{www/build/p-7c6dad4b.js → dist/web-components-library/p-14e61df6.js} +2 -2
  363. package/dist/web-components-library/{p-2e48ff6b.entry.js → p-18d63f0c.entry.js} +2 -2
  364. package/{www/build/p-8b627bff.entry.js → dist/web-components-library/p-20b628e7.entry.js} +2 -2
  365. package/dist/web-components-library/{p-cc87d814.entry.js → p-22d56699.entry.js} +2 -2
  366. package/dist/web-components-library/p-2798c0b2.entry.js +2 -0
  367. package/dist/web-components-library/{p-83cd8d7c.entry.js → p-2a0d8ebe.entry.js} +2 -2
  368. package/dist/web-components-library/p-2aeb2a94.entry.js +2 -0
  369. package/dist/web-components-library/{p-34d82be5.entry.js → p-2c450113.entry.js} +2 -2
  370. package/dist/web-components-library/{p-c57bb632.entry.js → p-2dcf53b3.entry.js} +2 -2
  371. package/dist/web-components-library/p-30170218.entry.js +2 -0
  372. package/dist/web-components-library/{p-e9149664.entry.js → p-34f4f441.entry.js} +2 -2
  373. package/dist/web-components-library/{p-73d089fe.entry.js → p-384baa02.entry.js} +2 -2
  374. package/dist/web-components-library/{p-46ce378d.entry.js → p-395b261e.entry.js} +2 -2
  375. package/dist/web-components-library/p-3bf02cab.entry.js +2 -0
  376. package/dist/web-components-library/p-3bf02cab.entry.js.map +1 -0
  377. package/dist/web-components-library/{p-4a058a26.entry.js → p-42559870.entry.js} +2 -2
  378. package/dist/web-components-library/{p-92da97fb.entry.js → p-4374d3f3.entry.js} +2 -2
  379. package/dist/web-components-library/{p-ec4d7f60.js → p-4c462e7f.js} +2 -2
  380. package/dist/web-components-library/{p-c0588dbe.entry.js → p-4fedcbc2.entry.js} +2 -2
  381. package/{www/build/p-7db32c12.entry.js → dist/web-components-library/p-50bf57b4.entry.js} +2 -2
  382. package/{www/build/p-8f47b574.entry.js → dist/web-components-library/p-52be7378.entry.js} +2 -2
  383. package/{www/build/p-9e183204.entry.js → dist/web-components-library/p-54a70792.entry.js} +2 -2
  384. package/{www/build/p-c9913f1e.entry.js → dist/web-components-library/p-5f04d9eb.entry.js} +2 -2
  385. package/dist/web-components-library/p-605f6780.entry.js +2 -0
  386. package/dist/web-components-library/p-605f6780.entry.js.map +1 -0
  387. package/dist/web-components-library/{p-7d844bac.entry.js → p-60a9cb8b.entry.js} +2 -2
  388. package/{www/build/p-ddae9016.entry.js → dist/web-components-library/p-6230c432.entry.js} +2 -2
  389. package/dist/web-components-library/p-6e1ba2f0.entry.js +2 -0
  390. package/dist/web-components-library/{p-3ce0d28c.entry.js → p-7095262b.entry.js} +2 -2
  391. package/dist/web-components-library/{p-af4b759a.entry.js → p-72dae90b.entry.js} +2 -2
  392. package/dist/web-components-library/p-73d686e0.entry.js +2 -0
  393. package/dist/web-components-library/p-73d686e0.entry.js.map +1 -0
  394. package/dist/web-components-library/p-75808b47.entry.js +2 -0
  395. package/dist/web-components-library/p-75808b47.entry.js.map +1 -0
  396. package/dist/web-components-library/{p-0d1dbe04.entry.js → p-8c952964.entry.js} +2 -2
  397. package/dist/web-components-library/{p-18fbbf63.entry.js → p-9187ce36.entry.js} +2 -2
  398. package/dist/web-components-library/{p-08691c77.entry.js → p-9218da42.entry.js} +2 -2
  399. package/dist/web-components-library/{p-2cc8c5a5.entry.js → p-972098a5.entry.js} +2 -2
  400. package/dist/web-components-library/{p-ecaca2df.entry.js → p-9f0a3d88.entry.js} +2 -2
  401. package/dist/web-components-library/p-a90027c2.entry.js +2 -0
  402. package/dist/web-components-library/p-a90027c2.entry.js.map +1 -0
  403. package/dist/web-components-library/p-aa0b3e7a.entry.js +2 -0
  404. package/dist/web-components-library/p-aa0b3e7a.entry.js.map +1 -0
  405. package/{www/build/p-65c59027.entry.js → dist/web-components-library/p-aa42f01d.entry.js} +2 -2
  406. package/dist/web-components-library/p-ad825740.entry.js +2 -0
  407. package/dist/web-components-library/{p-76d8d404.entry.js → p-b309bd71.entry.js} +2 -2
  408. package/dist/web-components-library/p-b38be247.entry.js +2 -0
  409. package/{www/build/p-ac03a6cc.entry.js → dist/web-components-library/p-bbd492d3.entry.js} +2 -2
  410. package/dist/web-components-library/p-c13ef624.js +2 -0
  411. package/dist/web-components-library/p-c2af9a71.entry.js +2 -0
  412. package/dist/web-components-library/p-c2af9a71.entry.js.map +1 -0
  413. package/dist/web-components-library/p-c7df6a63.entry.js +2 -0
  414. package/dist/web-components-library/p-c7df6a63.entry.js.map +1 -0
  415. package/dist/web-components-library/{p-0eab0213.entry.js → p-caccf490.entry.js} +2 -2
  416. package/dist/web-components-library/p-cb8aec27.entry.js +2 -0
  417. package/dist/web-components-library/p-cc8186a9.entry.js +2 -0
  418. package/{www/build/p-d972d6aa.entry.js.map → dist/web-components-library/p-cc8186a9.entry.js.map} +1 -1
  419. package/dist/web-components-library/p-d65aba93.entry.js +2 -0
  420. package/dist/web-components-library/{p-386e385c.entry.js.map → p-d65aba93.entry.js.map} +1 -1
  421. package/dist/web-components-library/p-db0a5f51.entry.js +2 -0
  422. package/dist/web-components-library/p-db0a5f51.entry.js.map +1 -0
  423. package/dist/web-components-library/p-deb86b5c.entry.js +2 -0
  424. package/dist/web-components-library/{p-efe1de34.entry.js → p-ea36d666.entry.js} +2 -2
  425. package/dist/web-components-library/{p-9078dfd7.entry.js → p-f06bd257.entry.js} +2 -2
  426. package/dist/web-components-library/{p-2f486acc.entry.js → p-f075ec62.entry.js} +2 -2
  427. package/dist/web-components-library/{p-27a59513.entry.js → p-f8915e2e.entry.js} +2 -2
  428. package/dist/web-components-library/{p-068b15fc.entry.js → p-fb06a5d8.entry.js} +2 -2
  429. package/dist/web-components-library/p-feb84d36.js +2 -0
  430. package/dist/web-components-library/web-components-library.esm.js +1 -1
  431. package/dist/web-components-library/web-components-library.esm.js.map +1 -1
  432. package/package.json +1 -1
  433. package/{dist/web-components-library/p-a707640a.entry.js → www/build/p-015621c8.entry.js} +2 -2
  434. package/www/build/p-035807e3.entry.js +2 -0
  435. package/{dist/web-components-library/p-cd55204b.js → www/build/p-037c59b3.js} +2 -2
  436. package/www/build/{p-479b13ae.entry.js → p-0565f1b2.entry.js} +2 -2
  437. package/www/build/p-08d8f935.entry.js +2 -0
  438. package/{dist/web-components-library/p-95795174.entry.js → www/build/p-0df6b405.entry.js} +2 -2
  439. package/www/build/p-11216ee8.entry.js +2 -0
  440. package/{dist/web-components-library/p-5ccbdfbe.entry.js.map → www/build/p-11216ee8.entry.js.map} +1 -1
  441. package/www/build/p-115fab3e.entry.js +2 -0
  442. package/www/build/p-115fab3e.entry.js.map +1 -0
  443. package/www/build/{p-914e20e9.entry.js → p-11629dd3.entry.js} +2 -2
  444. package/www/build/{p-90d54c40.js → p-123739cb.js} +2 -2
  445. package/{dist/web-components-library/p-7c6dad4b.js → www/build/p-14e61df6.js} +2 -2
  446. package/www/build/{p-2e48ff6b.entry.js → p-18d63f0c.entry.js} +2 -2
  447. package/{dist/web-components-library/p-8b627bff.entry.js → www/build/p-20b628e7.entry.js} +2 -2
  448. package/www/build/{p-cc87d814.entry.js → p-22d56699.entry.js} +2 -2
  449. package/www/build/p-2798c0b2.entry.js +2 -0
  450. package/www/build/{p-83cd8d7c.entry.js → p-2a0d8ebe.entry.js} +2 -2
  451. package/www/build/p-2aeb2a94.entry.js +2 -0
  452. package/www/build/{p-34d82be5.entry.js → p-2c450113.entry.js} +2 -2
  453. package/www/build/{p-c57bb632.entry.js → p-2dcf53b3.entry.js} +2 -2
  454. package/www/build/p-30170218.entry.js +2 -0
  455. package/www/build/{p-e9149664.entry.js → p-34f4f441.entry.js} +2 -2
  456. package/www/build/{p-73d089fe.entry.js → p-384baa02.entry.js} +2 -2
  457. package/www/build/{p-46ce378d.entry.js → p-395b261e.entry.js} +2 -2
  458. package/www/build/p-3bf02cab.entry.js +2 -0
  459. package/www/build/p-3bf02cab.entry.js.map +1 -0
  460. package/www/build/{p-4a058a26.entry.js → p-42559870.entry.js} +2 -2
  461. package/www/build/{p-92da97fb.entry.js → p-4374d3f3.entry.js} +2 -2
  462. package/www/build/p-45f04bb4.js +2 -0
  463. package/www/build/{p-ec4d7f60.js → p-4c462e7f.js} +2 -2
  464. package/www/build/{p-c0588dbe.entry.js → p-4fedcbc2.entry.js} +2 -2
  465. package/{dist/web-components-library/p-7db32c12.entry.js → www/build/p-50bf57b4.entry.js} +2 -2
  466. package/{dist/web-components-library/p-8f47b574.entry.js → www/build/p-52be7378.entry.js} +2 -2
  467. package/{dist/web-components-library/p-9e183204.entry.js → www/build/p-54a70792.entry.js} +2 -2
  468. package/{dist/web-components-library/p-c9913f1e.entry.js → www/build/p-5f04d9eb.entry.js} +2 -2
  469. package/www/build/p-605f6780.entry.js +2 -0
  470. package/www/build/p-605f6780.entry.js.map +1 -0
  471. package/www/build/{p-7d844bac.entry.js → p-60a9cb8b.entry.js} +2 -2
  472. package/{dist/web-components-library/p-ddae9016.entry.js → www/build/p-6230c432.entry.js} +2 -2
  473. package/www/build/p-6e1ba2f0.entry.js +2 -0
  474. package/www/build/{p-3ce0d28c.entry.js → p-7095262b.entry.js} +2 -2
  475. package/www/build/{p-af4b759a.entry.js → p-72dae90b.entry.js} +2 -2
  476. package/www/build/p-73d686e0.entry.js +2 -0
  477. package/www/build/p-73d686e0.entry.js.map +1 -0
  478. package/www/build/p-75808b47.entry.js +2 -0
  479. package/www/build/p-75808b47.entry.js.map +1 -0
  480. package/www/build/{p-0d1dbe04.entry.js → p-8c952964.entry.js} +2 -2
  481. package/www/build/{p-18fbbf63.entry.js → p-9187ce36.entry.js} +2 -2
  482. package/www/build/{p-08691c77.entry.js → p-9218da42.entry.js} +2 -2
  483. package/www/build/{p-2cc8c5a5.entry.js → p-972098a5.entry.js} +2 -2
  484. package/www/build/{p-ecaca2df.entry.js → p-9f0a3d88.entry.js} +2 -2
  485. package/www/build/p-a90027c2.entry.js +2 -0
  486. package/www/build/p-a90027c2.entry.js.map +1 -0
  487. package/www/build/p-aa0b3e7a.entry.js +2 -0
  488. package/www/build/p-aa0b3e7a.entry.js.map +1 -0
  489. package/{dist/web-components-library/p-65c59027.entry.js → www/build/p-aa42f01d.entry.js} +2 -2
  490. package/www/build/p-ad825740.entry.js +2 -0
  491. package/www/build/{p-76d8d404.entry.js → p-b309bd71.entry.js} +2 -2
  492. package/www/build/p-b38be247.entry.js +2 -0
  493. package/{dist/web-components-library/p-ac03a6cc.entry.js → www/build/p-bbd492d3.entry.js} +2 -2
  494. package/www/build/p-c13ef624.js +2 -0
  495. package/www/build/p-c2af9a71.entry.js +2 -0
  496. package/www/build/p-c2af9a71.entry.js.map +1 -0
  497. package/www/build/p-c7df6a63.entry.js +2 -0
  498. package/www/build/p-c7df6a63.entry.js.map +1 -0
  499. package/www/build/{p-0eab0213.entry.js → p-caccf490.entry.js} +2 -2
  500. package/www/build/p-cb8aec27.entry.js +2 -0
  501. package/www/build/p-cc8186a9.entry.js +2 -0
  502. package/{dist/web-components-library/p-d972d6aa.entry.js.map → www/build/p-cc8186a9.entry.js.map} +1 -1
  503. package/www/build/p-d65aba93.entry.js +2 -0
  504. package/www/build/{p-386e385c.entry.js.map → p-d65aba93.entry.js.map} +1 -1
  505. package/www/build/p-db0a5f51.entry.js +2 -0
  506. package/www/build/p-db0a5f51.entry.js.map +1 -0
  507. package/www/build/p-deb86b5c.entry.js +2 -0
  508. package/www/build/{p-efe1de34.entry.js → p-ea36d666.entry.js} +2 -2
  509. package/www/build/{p-9078dfd7.entry.js → p-f06bd257.entry.js} +2 -2
  510. package/www/build/{p-2f486acc.entry.js → p-f075ec62.entry.js} +2 -2
  511. package/www/build/{p-27a59513.entry.js → p-f8915e2e.entry.js} +2 -2
  512. package/www/build/{p-068b15fc.entry.js → p-fb06a5d8.entry.js} +2 -2
  513. package/www/build/p-feb84d36.js +2 -0
  514. package/www/build/web-components-library.esm.js +1 -1
  515. package/www/build/web-components-library.esm.js.map +1 -1
  516. package/www/index.html +1 -1
  517. package/dist/web-components-library/p-2c6519dc.entry.js +0 -2
  518. package/dist/web-components-library/p-2dbbc58f.entry.js +0 -2
  519. package/dist/web-components-library/p-2dbbc58f.entry.js.map +0 -1
  520. package/dist/web-components-library/p-2f3732d9.entry.js +0 -2
  521. package/dist/web-components-library/p-382e2939.entry.js +0 -2
  522. package/dist/web-components-library/p-386e385c.entry.js +0 -2
  523. package/dist/web-components-library/p-3f8725c1.entry.js +0 -2
  524. package/dist/web-components-library/p-40280990.entry.js +0 -2
  525. package/dist/web-components-library/p-4629a66a.entry.js +0 -2
  526. package/dist/web-components-library/p-4629a66a.entry.js.map +0 -1
  527. package/dist/web-components-library/p-563e86c0.entry.js +0 -2
  528. package/dist/web-components-library/p-563e86c0.entry.js.map +0 -1
  529. package/dist/web-components-library/p-5ccbdfbe.entry.js +0 -2
  530. package/dist/web-components-library/p-612da2d0.entry.js +0 -2
  531. package/dist/web-components-library/p-612da2d0.entry.js.map +0 -1
  532. package/dist/web-components-library/p-65f993a4.entry.js +0 -2
  533. package/dist/web-components-library/p-6f69c2b6.js +0 -2
  534. package/dist/web-components-library/p-72618fde.entry.js +0 -2
  535. package/dist/web-components-library/p-72618fde.entry.js.map +0 -1
  536. package/dist/web-components-library/p-8d79971b.entry.js +0 -2
  537. package/dist/web-components-library/p-8d79971b.entry.js.map +0 -1
  538. package/dist/web-components-library/p-93069a90.entry.js +0 -2
  539. package/dist/web-components-library/p-a7bcb93d.entry.js +0 -2
  540. package/dist/web-components-library/p-a7bcb93d.entry.js.map +0 -1
  541. package/dist/web-components-library/p-add2b5e8.entry.js +0 -2
  542. package/dist/web-components-library/p-b896dcf7.entry.js +0 -2
  543. package/dist/web-components-library/p-cc6406ab.entry.js +0 -2
  544. package/dist/web-components-library/p-d34a177a.entry.js +0 -2
  545. package/dist/web-components-library/p-d34a177a.entry.js.map +0 -1
  546. package/dist/web-components-library/p-d972d6aa.entry.js +0 -2
  547. package/dist/web-components-library/p-e4e0d271.entry.js +0 -2
  548. package/dist/web-components-library/p-e4e0d271.entry.js.map +0 -1
  549. package/dist/web-components-library/p-f400cf1b.js +0 -2
  550. package/dist/web-components-library/p-f413c03c.entry.js +0 -2
  551. package/dist/web-components-library/p-f413c03c.entry.js.map +0 -1
  552. package/www/build/p-2c6519dc.entry.js +0 -2
  553. package/www/build/p-2dbbc58f.entry.js +0 -2
  554. package/www/build/p-2dbbc58f.entry.js.map +0 -1
  555. package/www/build/p-2f3732d9.entry.js +0 -2
  556. package/www/build/p-382e2939.entry.js +0 -2
  557. package/www/build/p-386e385c.entry.js +0 -2
  558. package/www/build/p-3f8725c1.entry.js +0 -2
  559. package/www/build/p-40280990.entry.js +0 -2
  560. package/www/build/p-4629a66a.entry.js +0 -2
  561. package/www/build/p-4629a66a.entry.js.map +0 -1
  562. package/www/build/p-563e86c0.entry.js +0 -2
  563. package/www/build/p-563e86c0.entry.js.map +0 -1
  564. package/www/build/p-5ccbdfbe.entry.js +0 -2
  565. package/www/build/p-612da2d0.entry.js +0 -2
  566. package/www/build/p-612da2d0.entry.js.map +0 -1
  567. package/www/build/p-65f993a4.entry.js +0 -2
  568. package/www/build/p-6f69c2b6.js +0 -2
  569. package/www/build/p-72618fde.entry.js +0 -2
  570. package/www/build/p-72618fde.entry.js.map +0 -1
  571. package/www/build/p-8d79971b.entry.js +0 -2
  572. package/www/build/p-8d79971b.entry.js.map +0 -1
  573. package/www/build/p-93069a90.entry.js +0 -2
  574. package/www/build/p-a7bcb93d.entry.js +0 -2
  575. package/www/build/p-a7bcb93d.entry.js.map +0 -1
  576. package/www/build/p-add2b5e8.entry.js +0 -2
  577. package/www/build/p-b896dcf7.entry.js +0 -2
  578. package/www/build/p-c9e50d51.js +0 -2
  579. package/www/build/p-cc6406ab.entry.js +0 -2
  580. package/www/build/p-d34a177a.entry.js +0 -2
  581. package/www/build/p-d34a177a.entry.js.map +0 -1
  582. package/www/build/p-d972d6aa.entry.js +0 -2
  583. package/www/build/p-e4e0d271.entry.js +0 -2
  584. package/www/build/p-e4e0d271.entry.js.map +0 -1
  585. package/www/build/p-f400cf1b.js +0 -2
  586. package/www/build/p-f413c03c.entry.js +0 -2
  587. package/www/build/p-f413c03c.entry.js.map +0 -1
  588. /package/dist/web-components-library/{p-a707640a.entry.js.map → p-015621c8.entry.js.map} +0 -0
  589. /package/dist/web-components-library/{p-93069a90.entry.js.map → p-035807e3.entry.js.map} +0 -0
  590. /package/dist/web-components-library/{p-cd55204b.js.map → p-037c59b3.js.map} +0 -0
  591. /package/dist/web-components-library/{p-479b13ae.entry.js.map → p-0565f1b2.entry.js.map} +0 -0
  592. /package/dist/web-components-library/{p-65f993a4.entry.js.map → p-08d8f935.entry.js.map} +0 -0
  593. /package/dist/web-components-library/{p-95795174.entry.js.map → p-0df6b405.entry.js.map} +0 -0
  594. /package/dist/web-components-library/{p-914e20e9.entry.js.map → p-11629dd3.entry.js.map} +0 -0
  595. /package/dist/web-components-library/{p-90d54c40.js.map → p-123739cb.js.map} +0 -0
  596. /package/dist/web-components-library/{p-7c6dad4b.js.map → p-14e61df6.js.map} +0 -0
  597. /package/dist/web-components-library/{p-2e48ff6b.entry.js.map → p-18d63f0c.entry.js.map} +0 -0
  598. /package/dist/web-components-library/{p-8b627bff.entry.js.map → p-20b628e7.entry.js.map} +0 -0
  599. /package/dist/web-components-library/{p-cc87d814.entry.js.map → p-22d56699.entry.js.map} +0 -0
  600. /package/dist/web-components-library/{p-2c6519dc.entry.js.map → p-2798c0b2.entry.js.map} +0 -0
  601. /package/dist/web-components-library/{p-83cd8d7c.entry.js.map → p-2a0d8ebe.entry.js.map} +0 -0
  602. /package/dist/web-components-library/{p-2f3732d9.entry.js.map → p-2aeb2a94.entry.js.map} +0 -0
  603. /package/dist/web-components-library/{p-34d82be5.entry.js.map → p-2c450113.entry.js.map} +0 -0
  604. /package/dist/web-components-library/{p-c57bb632.entry.js.map → p-2dcf53b3.entry.js.map} +0 -0
  605. /package/dist/web-components-library/{p-40280990.entry.js.map → p-30170218.entry.js.map} +0 -0
  606. /package/dist/web-components-library/{p-e9149664.entry.js.map → p-34f4f441.entry.js.map} +0 -0
  607. /package/dist/web-components-library/{p-73d089fe.entry.js.map → p-384baa02.entry.js.map} +0 -0
  608. /package/dist/web-components-library/{p-46ce378d.entry.js.map → p-395b261e.entry.js.map} +0 -0
  609. /package/dist/web-components-library/{p-4a058a26.entry.js.map → p-42559870.entry.js.map} +0 -0
  610. /package/dist/web-components-library/{p-92da97fb.entry.js.map → p-4374d3f3.entry.js.map} +0 -0
  611. /package/dist/web-components-library/{p-ec4d7f60.js.map → p-4c462e7f.js.map} +0 -0
  612. /package/dist/web-components-library/{p-c0588dbe.entry.js.map → p-4fedcbc2.entry.js.map} +0 -0
  613. /package/dist/web-components-library/{p-7db32c12.entry.js.map → p-50bf57b4.entry.js.map} +0 -0
  614. /package/dist/web-components-library/{p-8f47b574.entry.js.map → p-52be7378.entry.js.map} +0 -0
  615. /package/dist/web-components-library/{p-9e183204.entry.js.map → p-54a70792.entry.js.map} +0 -0
  616. /package/dist/web-components-library/{p-c9913f1e.entry.js.map → p-5f04d9eb.entry.js.map} +0 -0
  617. /package/dist/web-components-library/{p-7d844bac.entry.js.map → p-60a9cb8b.entry.js.map} +0 -0
  618. /package/dist/web-components-library/{p-ddae9016.entry.js.map → p-6230c432.entry.js.map} +0 -0
  619. /package/dist/web-components-library/{p-382e2939.entry.js.map → p-6e1ba2f0.entry.js.map} +0 -0
  620. /package/dist/web-components-library/{p-3ce0d28c.entry.js.map → p-7095262b.entry.js.map} +0 -0
  621. /package/dist/web-components-library/{p-af4b759a.entry.js.map → p-72dae90b.entry.js.map} +0 -0
  622. /package/dist/web-components-library/{p-0d1dbe04.entry.js.map → p-8c952964.entry.js.map} +0 -0
  623. /package/dist/web-components-library/{p-18fbbf63.entry.js.map → p-9187ce36.entry.js.map} +0 -0
  624. /package/dist/web-components-library/{p-08691c77.entry.js.map → p-9218da42.entry.js.map} +0 -0
  625. /package/dist/web-components-library/{p-2cc8c5a5.entry.js.map → p-972098a5.entry.js.map} +0 -0
  626. /package/dist/web-components-library/{p-ecaca2df.entry.js.map → p-9f0a3d88.entry.js.map} +0 -0
  627. /package/dist/web-components-library/{p-65c59027.entry.js.map → p-aa42f01d.entry.js.map} +0 -0
  628. /package/dist/web-components-library/{p-add2b5e8.entry.js.map → p-ad825740.entry.js.map} +0 -0
  629. /package/dist/web-components-library/{p-76d8d404.entry.js.map → p-b309bd71.entry.js.map} +0 -0
  630. /package/dist/web-components-library/{p-b896dcf7.entry.js.map → p-b38be247.entry.js.map} +0 -0
  631. /package/dist/web-components-library/{p-ac03a6cc.entry.js.map → p-bbd492d3.entry.js.map} +0 -0
  632. /package/dist/web-components-library/{p-6f69c2b6.js.map → p-c13ef624.js.map} +0 -0
  633. /package/dist/web-components-library/{p-0eab0213.entry.js.map → p-caccf490.entry.js.map} +0 -0
  634. /package/dist/web-components-library/{p-3f8725c1.entry.js.map → p-cb8aec27.entry.js.map} +0 -0
  635. /package/dist/web-components-library/{p-cc6406ab.entry.js.map → p-deb86b5c.entry.js.map} +0 -0
  636. /package/dist/web-components-library/{p-efe1de34.entry.js.map → p-ea36d666.entry.js.map} +0 -0
  637. /package/dist/web-components-library/{p-9078dfd7.entry.js.map → p-f06bd257.entry.js.map} +0 -0
  638. /package/dist/web-components-library/{p-2f486acc.entry.js.map → p-f075ec62.entry.js.map} +0 -0
  639. /package/dist/web-components-library/{p-27a59513.entry.js.map → p-f8915e2e.entry.js.map} +0 -0
  640. /package/dist/web-components-library/{p-068b15fc.entry.js.map → p-fb06a5d8.entry.js.map} +0 -0
  641. /package/dist/web-components-library/{p-f400cf1b.js.map → p-feb84d36.js.map} +0 -0
  642. /package/www/build/{p-a707640a.entry.js.map → p-015621c8.entry.js.map} +0 -0
  643. /package/www/build/{p-93069a90.entry.js.map → p-035807e3.entry.js.map} +0 -0
  644. /package/www/build/{p-cd55204b.js.map → p-037c59b3.js.map} +0 -0
  645. /package/www/build/{p-479b13ae.entry.js.map → p-0565f1b2.entry.js.map} +0 -0
  646. /package/www/build/{p-65f993a4.entry.js.map → p-08d8f935.entry.js.map} +0 -0
  647. /package/www/build/{p-95795174.entry.js.map → p-0df6b405.entry.js.map} +0 -0
  648. /package/www/build/{p-914e20e9.entry.js.map → p-11629dd3.entry.js.map} +0 -0
  649. /package/www/build/{p-90d54c40.js.map → p-123739cb.js.map} +0 -0
  650. /package/www/build/{p-7c6dad4b.js.map → p-14e61df6.js.map} +0 -0
  651. /package/www/build/{p-2e48ff6b.entry.js.map → p-18d63f0c.entry.js.map} +0 -0
  652. /package/www/build/{p-8b627bff.entry.js.map → p-20b628e7.entry.js.map} +0 -0
  653. /package/www/build/{p-cc87d814.entry.js.map → p-22d56699.entry.js.map} +0 -0
  654. /package/www/build/{p-2c6519dc.entry.js.map → p-2798c0b2.entry.js.map} +0 -0
  655. /package/www/build/{p-83cd8d7c.entry.js.map → p-2a0d8ebe.entry.js.map} +0 -0
  656. /package/www/build/{p-2f3732d9.entry.js.map → p-2aeb2a94.entry.js.map} +0 -0
  657. /package/www/build/{p-34d82be5.entry.js.map → p-2c450113.entry.js.map} +0 -0
  658. /package/www/build/{p-c57bb632.entry.js.map → p-2dcf53b3.entry.js.map} +0 -0
  659. /package/www/build/{p-40280990.entry.js.map → p-30170218.entry.js.map} +0 -0
  660. /package/www/build/{p-e9149664.entry.js.map → p-34f4f441.entry.js.map} +0 -0
  661. /package/www/build/{p-73d089fe.entry.js.map → p-384baa02.entry.js.map} +0 -0
  662. /package/www/build/{p-46ce378d.entry.js.map → p-395b261e.entry.js.map} +0 -0
  663. /package/www/build/{p-4a058a26.entry.js.map → p-42559870.entry.js.map} +0 -0
  664. /package/www/build/{p-92da97fb.entry.js.map → p-4374d3f3.entry.js.map} +0 -0
  665. /package/www/build/{p-ec4d7f60.js.map → p-4c462e7f.js.map} +0 -0
  666. /package/www/build/{p-c0588dbe.entry.js.map → p-4fedcbc2.entry.js.map} +0 -0
  667. /package/www/build/{p-7db32c12.entry.js.map → p-50bf57b4.entry.js.map} +0 -0
  668. /package/www/build/{p-8f47b574.entry.js.map → p-52be7378.entry.js.map} +0 -0
  669. /package/www/build/{p-9e183204.entry.js.map → p-54a70792.entry.js.map} +0 -0
  670. /package/www/build/{p-c9913f1e.entry.js.map → p-5f04d9eb.entry.js.map} +0 -0
  671. /package/www/build/{p-7d844bac.entry.js.map → p-60a9cb8b.entry.js.map} +0 -0
  672. /package/www/build/{p-ddae9016.entry.js.map → p-6230c432.entry.js.map} +0 -0
  673. /package/www/build/{p-382e2939.entry.js.map → p-6e1ba2f0.entry.js.map} +0 -0
  674. /package/www/build/{p-3ce0d28c.entry.js.map → p-7095262b.entry.js.map} +0 -0
  675. /package/www/build/{p-af4b759a.entry.js.map → p-72dae90b.entry.js.map} +0 -0
  676. /package/www/build/{p-0d1dbe04.entry.js.map → p-8c952964.entry.js.map} +0 -0
  677. /package/www/build/{p-18fbbf63.entry.js.map → p-9187ce36.entry.js.map} +0 -0
  678. /package/www/build/{p-08691c77.entry.js.map → p-9218da42.entry.js.map} +0 -0
  679. /package/www/build/{p-2cc8c5a5.entry.js.map → p-972098a5.entry.js.map} +0 -0
  680. /package/www/build/{p-ecaca2df.entry.js.map → p-9f0a3d88.entry.js.map} +0 -0
  681. /package/www/build/{p-65c59027.entry.js.map → p-aa42f01d.entry.js.map} +0 -0
  682. /package/www/build/{p-add2b5e8.entry.js.map → p-ad825740.entry.js.map} +0 -0
  683. /package/www/build/{p-76d8d404.entry.js.map → p-b309bd71.entry.js.map} +0 -0
  684. /package/www/build/{p-b896dcf7.entry.js.map → p-b38be247.entry.js.map} +0 -0
  685. /package/www/build/{p-ac03a6cc.entry.js.map → p-bbd492d3.entry.js.map} +0 -0
  686. /package/www/build/{p-6f69c2b6.js.map → p-c13ef624.js.map} +0 -0
  687. /package/www/build/{p-0eab0213.entry.js.map → p-caccf490.entry.js.map} +0 -0
  688. /package/www/build/{p-3f8725c1.entry.js.map → p-cb8aec27.entry.js.map} +0 -0
  689. /package/www/build/{p-cc6406ab.entry.js.map → p-deb86b5c.entry.js.map} +0 -0
  690. /package/www/build/{p-efe1de34.entry.js.map → p-ea36d666.entry.js.map} +0 -0
  691. /package/www/build/{p-9078dfd7.entry.js.map → p-f06bd257.entry.js.map} +0 -0
  692. /package/www/build/{p-2f486acc.entry.js.map → p-f075ec62.entry.js.map} +0 -0
  693. /package/www/build/{p-27a59513.entry.js.map → p-f8915e2e.entry.js.map} +0 -0
  694. /package/www/build/{p-068b15fc.entry.js.map → p-fb06a5d8.entry.js.map} +0 -0
  695. /package/www/build/{p-f400cf1b.js.map → p-feb84d36.js.map} +0 -0
@@ -123,7 +123,7 @@ const ZBookCardDeprecated$1 = /*@__PURE__*/ proxyCustomElement(class ZBookCardDe
123
123
  return (h("div", { class: "action-container" }, h("slot", { name: "footer-cta" })));
124
124
  }
125
125
  render() {
126
- return (h("article", { key: '3f1180dbc4753548ce11a6827a9c4c0d5080ec71', class: {
126
+ return (h("article", { key: 'a2248d9206aec07d317dddb8cb8d6061eccc7a53', class: {
127
127
  [this.variant]: true,
128
128
  borderless: !!this.borderless,
129
129
  } }, this.renderCard()));
@@ -113,9 +113,9 @@ const ZBookCard$1 = /*@__PURE__*/ proxyCustomElement(class ZBookCard extends HTM
113
113
  }, "aria-hidden": "true" })));
114
114
  }
115
115
  render() {
116
- return (h("article", { key: '995a31329fdf85453bb26cbb42be924fba6c28bb', class: {
116
+ return (h("article", { key: 'a2b8d8a72f3868b6e846e552aa6b48012334b15b', class: {
117
117
  [this.variant]: true,
118
- } }, h("div", { key: 'd3bd68272b601c8e40e82da7f676900ff695b0ce', class: "main-content" }, this.renderCover(), h("div", { key: '7912fe6ec4b4b5b5bdf7594c6458841d5162c21d', class: "card-info" }, h("div", { key: '06bd27cc9a9a570232fa2e57b6a0616f82e072ac', class: "book-data" }, h("div", { key: '86042f5bc869d7da2bbc85ddf6b5ae8ec5392f94', class: "authors-title-cta-section" }, h("div", { key: 'e24123d9ef8631156c08b61c39729cc2fddfa44e', class: "authors body-4", "aria-description": "autori" }, this.authors), this.renderOperaTitle(), h("slot", { key: 'a441440afe2f15ffd43dcd7ac9dc307c54565f3f', name: "cta" })), h("div", { key: 'fb61ed950c98f1a8c76fe93f1ead60a2e6ecc6ad', class: "isbn-tags-link-section" }, h("div", { key: '5039b8f43161542692ed6004516159ebf36b31ef', class: "isbn-tags-section" }, h("div", { key: 'd8a79f00867e0eff27677accee806d0c14063fc4', class: "volume-title body-4" }, this.volumeTitle), h("div", { key: 'e28692cc30512b64fa6f7a4aebc38d26f84fb4de', class: "isbn body-4-sb", "aria-description": `isbn ${this.isbnLabel}` }, this.isbn, " ", this.renderIsbnLabel()), h("div", { key: '0bba463af67af4e6f45188a89673cf57a4ca84db', class: "tags" }, this.renderTags())), h("div", { key: 'a62fdf6c196fa5d658c1c71046297251b43a9cce', class: "link-section" }, h("div", { key: '62c16d7975cc5f99aaaf8f188bcbce7cd15fd34f', class: "catalog-link" }, this.catalogUrl && (h("a", { key: '51f9b145b1fcab1f68626bbd00202a1d897631d6', href: this.catalogUrl, target: "_blank", class: "z-link z-link-icon body-4-sb", onClick: () => this.emitCatalogClick() }, "Scheda catalogo", h("z-icon", { key: 'a1335bf42f6cc13014605679229f6c8702152562', name: "arrow-quad-north-east", height: 16, width: 16, fill: "color-primary01-icon" })))), this.adoption && h("div", { key: '51fbbef3b775af8920708c39d2389c05524fe550', class: "adoption-tag body-5-sb" }, "adottato")))), h("div", { key: 'fd73faa9f38d4a6642884bf04ae9f8e1c076e8b2', class: "ebook-container" }, h("slot", { key: 'dd6f6234eb44670fd33d8f4d4791beca5c58ba9d', name: "ebook" }, this.ebookUrl && (h("div", { key: '355d4c5ad17493694f7b7f28391919aa5534f2a6', class: "ebook" }, h("div", { key: 'd8309fa1e2ca8d75ae09956c911e09b6afec0b9a' }, h("div", { key: '31bfc193df2a7f54618db398a505b031aca2ba69', class: "app-name" }, h("img", { key: 'a76eafe70da54bb4b98c9933595174d1cac5ead8', class: "ebook-logo", "aria-hidden": "true" }), h("div", { key: '9eb1125a6dfd19ed330bb42a22ea0339c339dff8', class: "body-4-sb" }, h("span", { key: '2a5ee331b79a69bbbaa2e900954535dace718c8a', class: "laz" }, "laZ"), " Ebook")), this.variant === BookCardVariant.LANDSCAPE && (h("div", { key: '188812b860af28a7f3cc3dbb98e38c5d8c1c93e2', class: "body-5" }, "Anche nella versione libro liquido con", " ", h("button", { key: 'ccd26e5735e8ca5d201b2c790aa4e91372552644', class: "body-5-sb immersive-reader z-link", onClick: () => this.emitImmersiveReaderClick(), tabIndex: 0 }, "strumento di lettura immersiva")))), h("z-button", { key: 'fc84714fb404ec40f98a340ec2689d054f325bdb', size: ControlSize.X_SMALL, href: this.ebookUrl, target: "_blank", onClick: () => this.emitEbookClick(), role: "link", "aria-description": `leggi l'ebook ${this.operaTitle} su laZ Ebook` }, "leggi ebook"))))))), h("slot", { key: '213b1e5f32fe308b29f307815e8b9eb597182c45', name: "apps" })));
118
+ } }, h("div", { key: '24c08d9d84dc669395b1c255f6730a7a9d536886', class: "main-content" }, this.renderCover(), h("div", { key: '91389d7afb5971377c098cf8fb2dee3c870e870c', class: "card-info" }, h("div", { key: '3802460d92d4324c032ec3de0b978ce346b46827', class: "book-data" }, h("div", { key: 'e901801f93e778721b5def9c2cea89e4ae86a500', class: "authors-title-cta-section" }, h("div", { key: '44367ab6d0cdbe447133018b5dc3a6b77c6a6a51', class: "authors body-4", "aria-description": "autori" }, this.authors), this.renderOperaTitle(), h("slot", { key: '50b0ac7e8dfbc13601e9e89077b8f42345af6633', name: "cta" })), h("div", { key: '8a537e6ceb34a39ff9b0c2402e0d0a8ca09fda36', class: "isbn-tags-link-section" }, h("div", { key: '8fe9ab44fe6023b1c4239a0df7af05b93d9e6684', class: "isbn-tags-section" }, h("div", { key: '718d0984d6b8b856e784ba910327a91b160b915e', class: "volume-title body-4" }, this.volumeTitle), h("div", { key: 'db66e0b7d648cae395ed29eb010d568a181f5544', class: "isbn body-4-sb", "aria-description": `isbn ${this.isbnLabel}` }, this.isbn, " ", this.renderIsbnLabel()), h("div", { key: '70aeccbe9e186547b4b750a99e5509c2efa927d4', class: "tags" }, this.renderTags())), h("div", { key: '6764f5d95bf2ebf570087bb625bbda046578549a', class: "link-section" }, h("div", { key: '07bca683d50d1c8982b1904f856b37acbb2a94bd', class: "catalog-link" }, this.catalogUrl && (h("a", { key: '01bc30aa009c61f2a0e337683273a0dc1bcf86e6', href: this.catalogUrl, target: "_blank", class: "z-link z-link-icon body-4-sb", onClick: () => this.emitCatalogClick() }, "Scheda catalogo", h("z-icon", { key: '575ac4f528c9f6ecdd9a0f99b6b451fd6c75030c', name: "arrow-quad-north-east", height: 16, width: 16, fill: "color-primary01-icon" })))), this.adoption && h("div", { key: '5f381db04e1398792697415abdb25f57bc448899', class: "adoption-tag body-5-sb" }, "adottato")))), h("div", { key: '515817df1083eed2331f7fb5a51224f1ae5e0b64', class: "ebook-container" }, h("slot", { key: 'c684f825978bf2eab57d248cbc8a272db93c18b7', name: "ebook" }, this.ebookUrl && (h("div", { key: '0fb20bf6c1f9bf7a5d64d7cc8a8e143e467612fa', class: "ebook" }, h("div", { key: '53586381ba841fc773fff4918032968950d390e9' }, h("div", { key: '377fa3bbfa6c215cf1f341bf83ba2524253ba2e6', class: "app-name" }, h("img", { key: 'f78e924f246524c9a6d676d72b49d336c0c56ede', class: "ebook-logo", "aria-hidden": "true" }), h("div", { key: '3790c83efb86debff6283fbb75b5b56ee6875e68', class: "body-4-sb" }, h("span", { key: 'd080a30fcc3249e2532305e9470e53dc8f77ce2b', class: "laz" }, "laZ"), " Ebook")), this.variant === BookCardVariant.LANDSCAPE && (h("div", { key: '081ec1e670240b675be096c5274e9d80995c760a', class: "body-5" }, "Anche nella versione libro liquido con", " ", h("button", { key: 'a89d47b79ebb44549a64dcda3dd8798b7420b241', class: "body-5-sb immersive-reader z-link", onClick: () => this.emitImmersiveReaderClick(), tabIndex: 0 }, "strumento di lettura immersiva")))), h("z-button", { key: 'd3be56ff617467506e86f6a4b471fea124c009e1', size: ControlSize.X_SMALL, href: this.ebookUrl, target: "_blank", onClick: () => this.emitEbookClick(), role: "link", "aria-description": `leggi l'ebook ${this.operaTitle} su laZ Ebook` }, "leggi ebook"))))))), h("slot", { key: 'fda1bd7c66a38d1ac63fa37c2601975a8c780819', name: "apps" })));
119
119
  }
120
120
  get hostElement() { return this; }
121
121
  static get watchers() { return {
@@ -207,10 +207,10 @@ const ZBreadcrumb$1 = /*@__PURE__*/ proxyCustomElement(class ZBreadcrumb extends
207
207
  ];
208
208
  }
209
209
  render() {
210
- return (h(Host, { key: '541f493c93ddcdd7c7df9184e467bfb1f7def53d', style: { "--line-clamp-popover": `${this.overflowMenuItemRows}` } }, h("nav", { key: 'c7a56dbddef89e934a255921d4aacd645974f1b7', ref: (val) => (this.wrapElement = val), "aria-label": "Breadcrumb", class: {
210
+ return (h(Host, { key: '3d0996a611fe483de9a015c3ac5b25b06d5e302c', style: { "--line-clamp-popover": `${this.overflowMenuItemRows}` } }, h("nav", { key: '8c45a561fcdebb6c7685010dc7105b6c756025e1', ref: (val) => (this.wrapElement = val), "aria-label": "Breadcrumb", class: {
211
211
  semibold: this.pathStyle === BreadcrumbPathStyle.SEMIBOLD,
212
212
  underlined: this.pathStyle === BreadcrumbPathStyle.UNDERLINED,
213
- } }, h("ol", { key: 'a1f4c39fa8afd87d307746b66a942a1f2029cb1a' }, this.viewPortWidth === Device.MOBILE ? this.renderMobileItems() : this.renderItems()))));
213
+ } }, h("ol", { key: '5cbdbcb8a14a471ae6dbad1d5d7eeb4ca3c8482b' }, this.viewPortWidth === Device.MOBILE ? this.renderMobileItems() : this.renderItems()))));
214
214
  }
215
215
  get hostElement() { return this; }
216
216
  static get watchers() { return {
@@ -45,7 +45,7 @@ const ZButtonSort$1 = /*@__PURE__*/ proxyCustomElement(class ZButtonSort extends
45
45
  return this.ellipsis.offsetWidth < this.ellipsis.scrollWidth;
46
46
  }
47
47
  render() {
48
- return (h("button", { key: '6a27bbc29c4feedda219d3c48351e98e5424fc35', title: this.setButtonTitle(), id: this.buttonid, class: { selected: this.isselected }, onClick: () => this.emitButtonSortClick() }, h("span", { key: '415ed91622a75e04dae5df0112d892f14015af61', ref: (el) => (this.ellipsis = el), class: "ellipsis" }, !this.sortasc && this.desclabel ? this.desclabel : this.label), h("span", { key: '58bd9c2614021ee41fcd4f0f27ef3fa41771c7b8', class: "counter" }, this.counter && ` (${this.counter})`), h("span", { key: '66689c59c79cf1d6ad15640d424fbb3ac14edde2', class: "sort" }, this.sortasc ? this.sortlabelasc : this.sortlabeldesc), h("z-icon", { key: 'c6638b7e129f261bbcc9a7c79f02080accb6eed6', name: "caret-up-down", width: 16, height: 16 })));
48
+ return (h("button", { key: '6f2fdeea8f8d8c233d6b06ce6a77a550ca003c43', title: this.setButtonTitle(), id: this.buttonid, class: { selected: this.isselected }, onClick: () => this.emitButtonSortClick() }, h("span", { key: '2b73a9480490742c954d9f9319a035092e857313', ref: (el) => (this.ellipsis = el), class: "ellipsis" }, !this.sortasc && this.desclabel ? this.desclabel : this.label), h("span", { key: 'ffabdef711dfc8489d816c34fd7c52254ac8c89f', class: "counter" }, this.counter && ` (${this.counter})`), h("span", { key: '7086a8caa5146d54b93affa0d901dbb60248d64b', class: "sort" }, this.sortasc ? this.sortlabelasc : this.sortlabeldesc), h("z-icon", { key: '17d0cce1ca76cc916bf8ff2af67570b755d5a12d', name: "caret-up-down", width: 16, height: 16 })));
49
49
  }
50
50
  static get style() { return ZButtonSortStyle0; }
51
51
  }, [1, "z-button-sort", {
@@ -266,7 +266,7 @@ const ZCombobox$1 = /*@__PURE__*/ proxyCustomElement(class ZCombobox extends HTM
266
266
  return (h("div", { class: "check-all-wrapper" }, h("z-input", { type: InputType.CHECKBOX, checked: allChecked, htmlid: checkAllId, class: this.getCheckboxClass(), label: allChecked ? this.uncheckalltext : this.checkalltext, disabled: this.maxcheckableitems && this.maxcheckableitems < this.itemsList.length, size: this.size === ControlSize.X_SMALL ? ControlSize.SMALL : this.size, role: "option", "aria-selected": allChecked ? "true" : "false", onKeyDown: (e) => this.handleSelectArrowsNavigation(e, checkAllId), onInputCheck: (e) => this.checkAll(e.detail.checked), onInputFocus: (e) => this.handleCheckboxFocus(e.detail.id) })));
267
267
  }
268
268
  render() {
269
- return (h("div", { key: '66f1ab362f8b85bbea1887f0b20408704983b505', "data-action": `combo-${this.inputid}`, class: { open: this.isopen, fixed: this.isfixed, disabled: this.disabled }, id: this.inputid }, this.renderHeader(), !this.disabled && this.renderContent()));
269
+ return (h("div", { key: '69b13355a675561cb0748a743e7509f8b944615e', "data-action": `combo-${this.inputid}`, class: { open: this.isopen, fixed: this.isfixed, disabled: this.disabled }, id: this.inputid }, this.renderHeader(), !this.disabled && this.renderContent()));
270
270
  }
271
271
  get element() { return this; }
272
272
  static get watchers() { return {
@@ -31,9 +31,9 @@ const ZCoverHero$1 = /*@__PURE__*/ proxyCustomElement(class ZCoverHero extends H
31
31
  return (h("div", { class: "content-container" }, h("slot", { name: "content" })));
32
32
  }
33
33
  render() {
34
- return (h(Host, { key: 'b10d16e5490c00d087ec8677e5453a989aca05cd' }, this.variant === CoverHeroVariant.STACKED &&
34
+ return (h(Host, { key: '15c2c9a401700c3503e74f74637c2cbf3b474805' }, this.variant === CoverHeroVariant.STACKED &&
35
35
  this.contentPosition === CoverHeroContentPosition.TOP &&
36
- this.renderContent(), h("div", { key: 'c920eda8a79cd4b7f70f3cdc7e3690b57a117bd9', class: "main-container" }, h("div", { key: '4b74fde8b3d196a772489f381e46ef5690f1d9cf', class: "cover-container" }, h("slot", { key: '4a67176c23dd62d34bc69a0c236bf9adc3b5088c', name: "cover" })), h("slot", { key: 'e71151ae06cc7c30436af153d6192fc2faf4f6ba', name: "info-reveal" }), this.variant === CoverHeroVariant.OVERLAY && this.renderContent()), this.variant === CoverHeroVariant.STACKED &&
36
+ this.renderContent(), h("div", { key: '269c88ee41679ea7730c202f4ca927a1868c5506', class: "main-container" }, h("div", { key: '67b039d0ba87fdb8a3520035104d9c6263ca5dc1', class: "cover-container" }, h("slot", { key: '3c330cafa143f57e9b4d6615d966c4d62cedd9c8', name: "cover" })), h("slot", { key: 'c092503e4d24f52535182e570edb67428d7a8aa9', name: "info-reveal" }), this.variant === CoverHeroVariant.OVERLAY && this.renderContent()), this.variant === CoverHeroVariant.STACKED &&
37
37
  this.contentPosition === CoverHeroContentPosition.BOTTOM &&
38
38
  this.renderContent()));
39
39
  }
@@ -465,7 +465,7 @@ const ZDatePicker$1 = /*@__PURE__*/ proxyCustomElement(class ZDatePicker extends
465
465
  } })));
466
466
  }
467
467
  render() {
468
- return (h("div", { key: '4f525de164851c67135fc6b4ea7789f9b671d74c', class: {
468
+ return (h("div", { key: '5008fbf943acb8f5ad3575646938266579d59e90', class: {
469
469
  "flatpickr-toggle-container": true,
470
470
  [this.flatpickrPosition]: true,
471
471
  [this.mode]: true,
@@ -1,33 +1,25 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
- import { v as ZFileUploadType, p as Device, D as DividerSize } from './index2.js';
3
- import { g as getDevice } from './utils.js';
4
- import { d as defineCustomElement$6 } from './index4.js';
5
- import { d as defineCustomElement$5 } from './index6.js';
2
+ import { v as ZFileUploadType } from './index2.js';
3
+ import { d as defineCustomElement$5 } from './index4.js';
6
4
  import { d as defineCustomElement$4 } from './index7.js';
7
5
  import { d as defineCustomElement$3 } from './index9.js';
8
6
  import { d as defineCustomElement$2 } from './index16.js';
9
7
 
10
- const stylesCss = ":host{color:var(--color-default-text);font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>.container{display:flex;flex-direction:column}:host .modal-wrapper{display:flex;align-items:center;justify-content:center;padding:calc(var(--space-unit) * 2)}:host .modal-wrapper>.files-wrapper{display:flex;flex-direction:column;margin:calc(var(--space-unit) * 4);gap:var(--space-unit)}:host .text-container{display:flex;flex-direction:column;margin:auto}:host .text-container .body-1{text-align:center}:host .text-container .upload-link{color:var(--color-text-link-blue);cursor:pointer}:host .text-container .upload-link:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none !important}:host .text-container .upload-link-text{margin-bottom:var(--space-unit)}input#file-elem{display:none}#title{display:inline-block;margin:calc(var(--space-unit) * 2.5) 0 calc(var(--space-unit) * 4);font-size:calc(var(--space-unit) * 3);font-weight:var(--font-sb)}:host>.container>z-button{display:inline-block;margin-top:calc(var(--space-unit) * 3)}:host>.container>.files-container.hidden{display:none}:host>.container>.files-container>.heading-4-sb{display:inline-block;margin:calc(var(--space-unit) * 3) 0;font-size:calc(var(--space-unit) * 2);font-weight:var(--font-sb)}:host([type=\"dragdrop\"])>.container>.files-container>.heading-4-sb{margin-top:0;margin-bottom:calc(var(--space-unit) * 3)}:host>.container>.files-container>.files-wrapper{display:flex;flex-wrap:wrap;column-gap:calc(var(--space-unit) * 2);row-gap:calc(var(--space-unit) * 2)}:host>.container>.files-container>z-divider{margin-top:calc(var(--space-unit) * 3);margin-bottom:0}:host([type=\"dragdrop\"])>.container>.files-container>z-divider{margin:calc(var(--space-unit) * 3) 0}:host .error-message{font-size:14px;font-weight:400;letter-spacing:0.16%;line-height:20px;text-align:left}:host .error-message>.file-name{font-weight:600}@media only screen and (min-width: 768px){:host>.container>z-button{align-self:flex-start}:host .modal-wrapper{padding:calc(var(--space-unit) * 3)}}@media only screen and (min-width: 1152px){:host .modal-wrapper{padding:calc(var(--space-unit) * 4)}}";
8
+ const stylesCss = ".sc-z-file-upload-h{display:flex;flex-direction:column;align-items:flex-start;color:var(--color-default-text);font-family:var(--font-family-sans);font-weight:var(--font-rg)}.sc-z-file-upload-h .modal-wrapper.sc-z-file-upload{display:flex;flex-direction:column;justify-content:center;padding:calc(var(--space-unit) * 2);row-gap:calc(var(--space-unit) * 2)}.sc-z-file-upload-h .modal-wrapper.sc-z-file-upload>.files-wrapper.sc-z-file-upload{display:flex;flex-direction:column;margin:calc(var(--space-unit) * 4);gap:var(--space-unit)}.sc-z-file-upload-h .text-container.sc-z-file-upload{display:flex;flex-direction:column;margin:auto;text-align:center}.sc-z-file-upload-h .text-container.sc-z-file-upload .upload-link.sc-z-file-upload{color:var(--color-text-link-blue);cursor:pointer;text-decoration:underline}.sc-z-file-upload-h .text-container.sc-z-file-upload .upload-link.sc-z-file-upload:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none !important}.sc-z-file-upload-h .text-container.sc-z-file-upload .upload-link-text.sc-z-file-upload{margin-bottom:var(--space-unit)}.sc-z-file-upload-h input[type=\"file\"].sc-z-file-upload{display:none}.sc-z-file-upload-h #title.sc-z-file-upload+#description.sc-z-file-upload{margin-top:var(--space-unit)}.sc-z-file-upload-h>*.sc-z-file-upload+z-button.sc-z-file-upload,.sc-z-file-upload-h>.files-container.sc-z-file-upload+*.sc-z-file-upload,.sc-z-file-upload-h>.files-container.sc-z-file-upload:not(:first-child){margin-top:calc(var(--space-unit) * 3)}.sc-z-file-upload-h>.files-container.hidden.sc-z-file-upload{display:none}.sc-z-file-upload-h>.files-container.sc-z-file-upload>.uploaded-files-label.sc-z-file-upload{margin-bottom:calc(var(--space-unit) * 2)}.sc-z-file-upload-h>.files-container.sc-z-file-upload>.files-wrapper.sc-z-file-upload{display:flex;flex-wrap:wrap;column-gap:calc(var(--space-unit) * 2);row-gap:calc(var(--space-unit) * 2)}@media (min-width: 768px){.sc-z-file-upload-h>.container.sc-z-file-upload>z-button.sc-z-file-upload{align-self:flex-start}.sc-z-file-upload-h .modal-wrapper.sc-z-file-upload{padding:calc(var(--space-unit) * 3)}}@media (min-width: 1152px){.sc-z-file-upload-h .modal-wrapper.sc-z-file-upload{padding:calc(var(--space-unit) * 4)}}";
11
9
  const ZFileUploadStyle0 = stylesCss;
12
10
 
13
11
  const ZFileUpload$1 = /*@__PURE__*/ proxyCustomElement(class ZFileUpload extends HTMLElement {
14
12
  constructor() {
15
13
  super();
16
14
  this.__registerHost();
17
- this.__attachShadow();
18
15
  this.fileInput = createEvent(this, "fileInput", 7);
19
- this.inputAttributes = {
20
- type: "file",
21
- id: "file-elem",
22
- multiple: true,
23
- };
16
+ this.fileError = createEvent(this, "fileError", 7);
24
17
  this.type = ZFileUploadType.DEFAULT;
25
18
  this.buttonVariant = undefined;
26
19
  this.acceptedFormat = undefined;
27
20
  this.fileMaxSize = undefined;
28
21
  this.mainTitle = undefined;
29
22
  this.description = undefined;
30
- this.files = [];
31
23
  this.uploadBtnLabel = "allega";
32
24
  this.dragAndDropLabel = "Rilascia i file in questa area per allegarli.";
33
25
  this.allowedFilesMessage = undefined;
@@ -37,100 +29,88 @@ const ZFileUpload$1 = /*@__PURE__*/ proxyCustomElement(class ZFileUpload extends
37
29
  this.errorModalMessage = undefined;
38
30
  this.uploadedFilesLabel = "File appena caricati";
39
31
  this.hasFileSection = true;
40
- this.invalidFiles = undefined;
32
+ this.inputName = "z-file-upload";
33
+ this.showErrors = true;
34
+ this._type = this.type;
35
+ this.files = [];
36
+ this.invalidFiles = new Map();
41
37
  }
42
- /** Listen removeFile event sent from z-file component */
43
- removeFileListener(e) {
44
- this.removeFileHandler(e.detail);
38
+ /** Listen `removeFile` event sent from z-file component */
39
+ onFileRemoved(e) {
40
+ this.removeFile(e.detail);
45
41
  }
46
42
  /** Listen fileDropped event sent from z-dragdrop-area component */
47
43
  fileDroppedListener(e) {
48
44
  this.input.files = e.detail;
49
- this.fileInputHandler();
50
- }
51
- componentDidUpdate() {
52
- this.handleAccessibility();
53
- this.invalidFiles.size && this.errorModal.focus();
54
- }
55
- componentWillLoad() {
56
- this.invalidFiles = new Map();
57
- }
58
- fileInputHandler() {
59
- if (this.input.files.length) {
60
- this.invalidFiles = this.checkFiles(Array.from(this.input.files));
61
- }
45
+ this.checkFilesValidity(this.input.files);
62
46
  }
63
- /** get array of uploaded files */
47
+ /** Get the list of uploaded files */
64
48
  async getFiles() {
65
49
  return this.files;
66
50
  }
67
- /** remove file from the array */
51
+ /** Remove a previously uploaded file */
68
52
  async removeFile(fileName) {
69
- this.removeFileHandler(fileName);
70
- }
71
- removeFileHandler(fileName) {
72
53
  const files = this.files;
73
- const file = files.find((file) => file.name === fileName);
74
- if (file) {
75
- const index = files.indexOf(file);
76
- if (index >= 0) {
77
- files.splice(index, 1);
78
- this.files = [...files];
79
- }
54
+ const index = files.findIndex((file) => file.name === fileName);
55
+ if (index >= 0) {
56
+ files.splice(index, 1);
57
+ this.files = [...files];
80
58
  }
81
59
  }
82
- getType() {
83
- if (getDevice() !== Device.DESKTOP && getDevice() !== Device.DESKTOP_WIDE) {
84
- return ZFileUploadType.DEFAULT;
85
- }
86
- return this.type;
87
- }
88
- handleAccessibility() {
89
- const lastFile = this.el.querySelector("z-file:last-child z-chip button");
90
- if (this.files.length > 0 && lastFile) {
91
- lastFile.focus();
92
- }
93
- else {
94
- this.getType() === ZFileUploadType.DEFAULT
95
- ? this.button.querySelector("button").focus()
96
- : this.uploadLink.focus();
60
+ checkFilesValidity(files) {
61
+ if (!files.length) {
62
+ return;
97
63
  }
98
- }
99
- checkFiles(files) {
100
- const errors = new Map();
101
- const sizeErrorString = `supera il limite di ${this.fileMaxSize}MB`;
102
- const formatErrorString = " ha un formato non supportato";
103
- files.forEach((file) => {
64
+ Array.from(files).forEach((file) => {
104
65
  const fileSize = file.size / 1024 / 1024;
105
66
  const fileFormatOk = this.acceptedFormat
106
67
  .split(",")
107
68
  .some((ext) => file.name.toLowerCase().endsWith(ext.trim()));
108
69
  const fileSizeOk = fileSize <= this.fileMaxSize;
109
- if (fileSizeOk && fileFormatOk) {
110
- if (!this.files.find((f) => f.name === file.name)) {
111
- this.files.push(file);
112
- this.fileInput.emit(file);
113
- this.input.value = "";
114
- }
70
+ if (fileSizeOk && fileFormatOk && !this.files.find((f) => f.name === file.name)) {
71
+ this.files = [...this.files, file];
72
+ this.fileInput.emit(file);
73
+ this.input.value = "";
115
74
  return;
116
75
  }
117
- errors.set(file.name, []);
118
- if (!fileSizeOk) {
119
- errors.get(file.name).push(sizeErrorString);
120
- }
121
- if (!fileFormatOk) {
122
- errors.get(file.name).push(formatErrorString);
123
- }
76
+ const sizeError = `Il file ${file.name} supera il limite di ${this.fileMaxSize}MB`;
77
+ const formatError = `Il file ${file.name} ha un formato non supportato`;
78
+ const errors = [
79
+ !fileSizeOk && { cause: "size", message: sizeError },
80
+ !fileFormatOk && { cause: "format", message: formatError },
81
+ ].filter(Boolean);
82
+ this.invalidFiles.set(file.name, errors);
83
+ this.invalidFiles = new Map(this.invalidFiles); // trigger state update
84
+ this.fileError.emit({ file: file.name, errors });
124
85
  });
125
- return errors;
126
86
  }
127
- renderTitle() {
128
- return h("span", { id: "title" }, this.mainTitle);
87
+ resetErrors() {
88
+ this.invalidFiles = new Map();
89
+ }
90
+ onFilesChange(e) {
91
+ this.checkFilesValidity(e.target.files);
92
+ }
93
+ componentWillLoad() {
94
+ // force default type on mobile and tablet viewport
95
+ const mql = window.matchMedia("(max-width: 1151px)");
96
+ this._type = mql.matches ? ZFileUploadType.DEFAULT : this.type;
97
+ mql.addEventListener("change", (e) => {
98
+ this._type = e.matches ? ZFileUploadType.DEFAULT : this.type;
99
+ });
100
+ }
101
+ componentDidUpdate() {
102
+ if (!this.showErrors || !this.invalidFiles.size) {
103
+ return;
104
+ }
105
+ this.errorModal.open();
129
106
  }
130
107
  renderDescription(cssClass) {
131
- return h("span", { class: cssClass }, this.description);
108
+ if (!this.description) {
109
+ return;
110
+ }
111
+ return (h("span", { id: "description", class: cssClass }, this.description));
132
112
  }
133
- renderAllowedFileExtensions() {
113
+ renderAllowedFilesMessage() {
134
114
  let fileFormatString = "";
135
115
  let fileWeightString = "";
136
116
  if (this.acceptedFormat) {
@@ -143,31 +123,30 @@ const ZFileUpload$1 = /*@__PURE__*/ proxyCustomElement(class ZFileUpload extends
143
123
  if (this.fileMaxSize) {
144
124
  fileWeightString = ` per un massimo di ${this.fileMaxSize}MB di peso`;
145
125
  }
146
- const finalString = `Puoi allegare file${fileFormatString}${fileWeightString}.`;
147
- return (h("span", { class: "body-3" }, this.allowedFilesMessage
148
- ? this.allowedFilesMessage
149
- : fileFormatString || fileWeightString
150
- ? finalString
151
- : null));
126
+ const defaultMessage = fileFormatString || fileWeightString ? `Puoi allegare file${fileFormatString}${fileWeightString}.` : undefined;
127
+ if (!this.allowedFilesMessage && !defaultMessage) {
128
+ return;
129
+ }
130
+ return h("span", { class: "allowed-files-message body-3" }, this.allowedFilesMessage || defaultMessage);
152
131
  }
153
132
  renderFileSection() {
154
133
  if (!this.hasFileSection) {
155
134
  return;
156
135
  }
157
- return (h("section", { class: `files-container ${!this.files.length ? "hidden" : ""}` }, h("span", { class: "heading-4-sb" }, this.uploadedFilesLabel), h("div", { class: "files-wrapper" }, h("slot", { name: "files" })), h("z-divider", { size: DividerSize.MEDIUM })));
136
+ return (h("section", { class: { "files-container": true, "hidden": !this.files.length } }, h("div", { class: "uploaded-files-label heading-3-sb" }, this.uploadedFilesLabel), h("div", { class: "files-wrapper" }, h("slot", { name: "files" }))));
158
137
  }
159
138
  renderInput() {
160
- return (h("input", Object.assign({}, this.inputAttributes, { onChange: () => this.fileInputHandler(), accept: this.acceptedFormat, ref: (val) => (this.input = val) })));
139
+ return (h("input", { type: "file", name: this.inputName, multiple: true, onChange: (e) => this.onFilesChange(e), accept: this.acceptedFormat, ref: (val) => (this.input = val) }));
161
140
  }
162
141
  renderUploadButton() {
163
142
  return [
164
- this.renderInput(),
165
143
  h("z-button", { onClick: () => this.input.click(), onKeyPress: (e) => {
166
144
  if (e.code == "Space" || e.code == "Enter") {
167
145
  e.preventDefault();
168
146
  this.input.click();
169
147
  }
170
- }, id: "fileSelect", variant: this.buttonVariant, icon: "upload", ref: (val) => (this.button = val) }, this.uploadBtnLabel),
148
+ }, id: "fileSelect", variant: this.buttonVariant, icon: "upload" }, this.uploadBtnLabel),
149
+ this.renderInput(),
171
150
  ];
172
151
  }
173
152
  renderUploadLink() {
@@ -178,13 +157,13 @@ const ZFileUpload$1 = /*@__PURE__*/ proxyCustomElement(class ZFileUpload extends
178
157
  e.preventDefault();
179
158
  this.input.click();
180
159
  }
181
- }, ref: (val) => (this.uploadLink = val) }, this.uploadClickableMessage), " ", this.uploadMessage),
160
+ } }, this.uploadClickableMessage), " ", this.uploadMessage),
182
161
  ];
183
162
  }
184
163
  renderDefaultMode() {
185
164
  return [
186
165
  this.renderDescription("body-3-sb"),
187
- this.renderAllowedFileExtensions(),
166
+ this.renderAllowedFilesMessage(),
188
167
  this.renderFileSection(),
189
168
  this.renderUploadButton(),
190
169
  ];
@@ -192,25 +171,21 @@ const ZFileUpload$1 = /*@__PURE__*/ proxyCustomElement(class ZFileUpload extends
192
171
  renderDragDropMode() {
193
172
  return [
194
173
  this.renderFileSection(),
195
- h("z-dragdrop-area", { "drag-and-drop-label": this.dragAndDropLabel }, h("div", { class: "text-container" }, this.renderDescription("body-1"), this.renderUploadLink(), this.renderAllowedFileExtensions())),
174
+ h("z-dragdrop-area", { "drag-and-drop-label": this.dragAndDropLabel }, h("div", { class: "text-container" }, this.renderDescription("body-1"), this.renderUploadLink(), this.renderAllowedFilesMessage())),
196
175
  ];
197
176
  }
198
- formatErrorString(key, value) {
199
- var _a, _b;
200
- const bothErrors = value[0] && value[1] ? " e " : "";
201
- return (h("span", { class: "error-message" }, "Il file ", h("span", { class: "file-name" }, key), " ", (_a = value[1]) !== null && _a !== void 0 ? _a : "", bothErrors, (_b = value[0]) !== null && _b !== void 0 ? _b : "", "."));
202
- }
203
- handleErrorModalContent() {
204
- return (h("div", { slot: "modalContent" }, h("div", { class: "modal-wrapper" }, h("div", { class: "files" }, this.errorModalMessage ? (h("span", { class: "body-3" }, this.errorModalMessage)) : (Array.from(this.invalidFiles).map(([key, value]) => {
205
- return h("span", { class: "body-3" }, this.formatErrorString(key, value));
206
- }))))));
177
+ renderFileErrors() {
178
+ return Array.from(this.invalidFiles).map(([fileName, errors]) => {
179
+ const prefix = `Il file ${fileName}`;
180
+ return (h("span", { class: "error-message" }, "Il file ", h("span", { class: "body-3-sb" }, fileName), errors.map(({ message }) => message.replace(prefix, "")).join(" e "), "."));
181
+ });
207
182
  }
208
183
  render() {
209
- return (h(Host, { key: '516d51d19835f55e0a5696d3f3b847f2f253e915' }, h("div", { key: '41a4196b48636cf761673ce0672bd3c5246ba8f8', class: `container ${this.getType()}` }, this.mainTitle && this.renderTitle(), this.getType() == ZFileUploadType.DEFAULT ? this.renderDefaultMode() : this.renderDragDropMode()), !!this.invalidFiles.size && (h("z-modal", { key: '8c790bf5dd9b70557b4479bae9ef3a949d9bb4c3', modalid: `file-upload-${this.type}-error-modal`, tabIndex: 0, ref: (val) => (this.errorModal = val), modaltitle: this.errorModalTitle, onModalClose: () => (this.invalidFiles = new Map()), onModalBackgroundClick: () => (this.invalidFiles = new Map()) }, this.handleErrorModalContent()))));
184
+ return (h(Host, { key: 'ea57cc0462e4358d04bfc8f5709b61be50947e7a' }, this.mainTitle && (h("div", { key: '59e23f66172333b963922832782a8ac89611acb9', id: "title", class: "heading-3-sb" }, this.mainTitle)), this._type == ZFileUploadType.DEFAULT ? this.renderDefaultMode() : this.renderDragDropMode(), !!this.invalidFiles.size && this.showErrors && (h("z-modal", { key: '64cb55a1c0fb491a9dd5b414a309b284e4f2d24e', modalid: `file-upload-${this.type}-error-modal`, ref: (val) => (this.errorModal = val), modaltitle: this.errorModalTitle, onModalClose: () => this.resetErrors(), onModalBackgroundClick: () => this.resetErrors() }, h("div", { key: '255cf2140f1ca881f90df6952965abc8f364f4d0', slot: "modalContent" }, h("div", { key: '03638b6b970c72c73ac7014f0c7848a032029963', class: "modal-wrapper body-3" }, this.errorModalMessage ? this.errorModalMessage : this.renderFileErrors()))))));
210
185
  }
211
- get el() { return this; }
186
+ get host() { return this; }
212
187
  static get style() { return ZFileUploadStyle0; }
213
- }, [1, "z-file-upload", {
188
+ }, [6, "z-file-upload", {
214
189
  "type": [513],
215
190
  "buttonVariant": [1, "button-variant"],
216
191
  "acceptedFormat": [1, "accepted-format"],
@@ -226,16 +201,19 @@ const ZFileUpload$1 = /*@__PURE__*/ proxyCustomElement(class ZFileUpload extends
226
201
  "errorModalMessage": [1, "error-modal-message"],
227
202
  "uploadedFilesLabel": [1, "uploaded-files-label"],
228
203
  "hasFileSection": [4, "has-file-section"],
204
+ "inputName": [1, "input-name"],
205
+ "showErrors": [4, "show-errors"],
206
+ "_type": [32],
229
207
  "files": [32],
230
208
  "invalidFiles": [32],
231
209
  "getFiles": [64],
232
210
  "removeFile": [64]
233
- }, [[0, "removeFile", "removeFileListener"], [0, "fileDropped", "fileDroppedListener"]]]);
211
+ }, [[0, "removeFile", "onFileRemoved"], [0, "fileDropped", "fileDroppedListener"]]]);
234
212
  function defineCustomElement$1() {
235
213
  if (typeof customElements === "undefined") {
236
214
  return;
237
215
  }
238
- const components = ["z-file-upload", "z-button", "z-divider", "z-dragdrop-area", "z-icon", "z-modal"];
216
+ const components = ["z-file-upload", "z-button", "z-dragdrop-area", "z-icon", "z-modal"];
239
217
  components.forEach(tagName => { switch (tagName) {
240
218
  case "z-file-upload":
241
219
  if (!customElements.get(tagName)) {
@@ -243,11 +221,6 @@ function defineCustomElement$1() {
243
221
  }
244
222
  break;
245
223
  case "z-button":
246
- if (!customElements.get(tagName)) {
247
- defineCustomElement$6();
248
- }
249
- break;
250
- case "z-divider":
251
224
  if (!customElements.get(tagName)) {
252
225
  defineCustomElement$5();
253
226
  }
@@ -1 +1 @@
1
- {"file":"z-file-upload.js","mappings":";;;;;;;;;AAAA,MAAM,SAAS,GAAG,gnEAAgnE,CAAC;AACnoE,0BAAe,SAAS;;MCQXA,aAAW;;;;;;QA+Ed,oBAAe,GAAG;YACxB,IAAI,EAAE,MAAM;YACZ,EAAE,EAAE,WAAW;YACf,QAAQ,EAAE,IAAI;SACf,CAAC;oBAhFsB,eAAe,CAAC,OAAO;;;;;;qBAwB/B,EAAE;8BAIQ,QAAQ;gCAIN,+CAA+C;;sCAQzC,QAAQ;6BAIjB,6BAA6B;+BAI3B,uBAAuB;;kCAQpB,sBAAsB;8BAIzB,IAAI;;;;IAwB/B,kBAAkB,CAAC,CAAc;QAC/B,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;KAClC;;IAID,mBAAmB,CAAC,CAAc;QAChC,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;QAC5B,IAAI,CAAC,gBAAgB,EAAE,CAAC;KACzB;IAED,kBAAkB;QAChB,IAAI,CAAC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AAC,EACrE,sBAAsB,EAAE,OAAO,IAAI,CAAC,YAAY,GAAG,IAAI,GAAG,EAAoB,CAAC,IAE9E,IAAI,CAAC,uBAAuB,EAAE,CACvB,CACX,CACI,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["ZFileUpload"],"sources":["src/components/file-upload/z-file-upload/styles.css?tag=z-file-upload&encapsulation=shadow","src/components/file-upload/z-file-upload/index.tsx"],"sourcesContent":[":host {\n color: var(--color-default-text);\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n}\n\n:host > .container {\n display: flex;\n flex-direction: column;\n}\n\n:host .modal-wrapper {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: calc(var(--space-unit) * 2);\n}\n\n:host .modal-wrapper > .files-wrapper {\n display: flex;\n flex-direction: column;\n margin: calc(var(--space-unit) * 4);\n gap: var(--space-unit);\n}\n\n:host .text-container {\n display: flex;\n flex-direction: column;\n margin: auto;\n}\n\n:host .text-container .body-1 {\n text-align: center;\n}\n\n:host .text-container .upload-link {\n color: var(--color-text-link-blue);\n cursor: pointer;\n}\n\n:host .text-container .upload-link:focus-visible {\n box-shadow: var(--shadow-focus-primary);\n outline: none !important;\n}\n\n:host .text-container .upload-link-text {\n margin-bottom: var(--space-unit);\n}\n\ninput#file-elem {\n display: none;\n}\n\n#title {\n display: inline-block;\n margin: calc(var(--space-unit) * 2.5) 0 calc(var(--space-unit) * 4);\n font-size: calc(var(--space-unit) * 3);\n font-weight: var(--font-sb);\n}\n\n:host > .container > z-button {\n display: inline-block;\n margin-top: calc(var(--space-unit) * 3);\n}\n\n:host > .container > .files-container.hidden {\n display: none;\n}\n\n:host > .container > .files-container > .heading-4-sb {\n display: inline-block;\n margin: calc(var(--space-unit) * 3) 0;\n font-size: calc(var(--space-unit) * 2);\n font-weight: var(--font-sb);\n}\n\n:host([type=\"dragdrop\"]) > .container > .files-container > .heading-4-sb {\n margin-top: 0;\n margin-bottom: calc(var(--space-unit) * 3);\n}\n\n:host > .container > .files-container > .files-wrapper {\n display: flex;\n flex-wrap: wrap;\n column-gap: calc(var(--space-unit) * 2);\n row-gap: calc(var(--space-unit) * 2);\n}\n\n:host > .container > .files-container > z-divider {\n margin-top: calc(var(--space-unit) * 3);\n margin-bottom: 0;\n}\n\n:host([type=\"dragdrop\"]) > .container > .files-container > z-divider {\n margin: calc(var(--space-unit) * 3) 0;\n}\n\n:host .error-message {\n font-size: 14px;\n font-weight: 400;\n letter-spacing: 0.16%;\n line-height: 20px;\n text-align: left;\n}\n\n:host .error-message > .file-name {\n font-weight: 600;\n}\n\n/* Tablet breakpoint */\n@media only screen and (min-width: 768px) {\n :host > .container > z-button {\n align-self: flex-start;\n }\n\n :host .modal-wrapper {\n padding: calc(var(--space-unit) * 3);\n }\n}\n\n@media only screen and (min-width: 1152px) {\n :host .modal-wrapper {\n padding: calc(var(--space-unit) * 4);\n }\n}\n","import {Component, Element, Event, EventEmitter, Host, Listen, Method, Prop, State, h} from \"@stencil/core\";\nimport {ButtonVariant, Device, DividerSize, ZFileUploadType} from \"../../../beans\";\nimport {getDevice} from \"../../../utils/utils\";\n\n@Component({\n tag: \"z-file-upload\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZFileUpload {\n /** Prop indicating the file upload type - can be default or dragdrop */\n @Prop({reflect: true})\n type: ZFileUploadType = ZFileUploadType.DEFAULT;\n\n /** Prop indicating the button variant*/\n @Prop()\n buttonVariant?: ButtonVariant;\n\n /** Prop indicating the accepted file type: ex \".pdf, .doc, .jpg\" */\n @Prop()\n acceptedFormat?: string;\n\n /** Max file dimension in Megabyte */\n @Prop()\n fileMaxSize?: number;\n\n /** Title */\n @Prop()\n mainTitle?: string;\n\n /** Description */\n @Prop()\n description?: string;\n\n /** Files added by the user */\n @State()\n files: File[] = [];\n\n /** upoload button label */\n @Prop()\n uploadBtnLabel?: string = \"allega\";\n\n /** drag & drop button label */\n @Prop()\n dragAndDropLabel?: string = \"Rilascia i file in questa area per allegarli.\";\n\n /** allowed file message */\n @Prop()\n allowedFilesMessage?: string;\n\n /** upload clickable message */\n @Prop()\n uploadClickableMessage?: string = \"Carica\";\n\n /** upload message */\n @Prop()\n uploadMessage?: string = \"o trascina dal tuo computer\";\n\n /** error modal title */\n @Prop()\n errorModalTitle?: string = \"Errore di caricamento\";\n\n /** error modal message */\n @Prop()\n errorModalMessage?: string;\n\n /** loaded files label */\n @Prop()\n uploadedFilesLabel?: string = \"File appena caricati\";\n\n /** uploaded files history rendering */\n @Prop()\n hasFileSection?: boolean = true;\n\n /** List of files not allowed to be uploaded */\n @State()\n invalidFiles: Map<string, string[]>;\n\n @Element() el: HTMLZFileUploadElement;\n\n private input: HTMLInputElement;\n\n private button: HTMLZButtonElement;\n\n private errorModal: HTMLZModalElement;\n\n private uploadLink: HTMLSpanElement;\n\n private inputAttributes = {\n type: \"file\",\n id: \"file-elem\",\n multiple: true,\n };\n\n /** Listen removeFile event sent from z-file component */\n @Listen(\"removeFile\")\n removeFileListener(e: CustomEvent): void {\n this.removeFileHandler(e.detail);\n }\n\n /** Listen fileDropped event sent from z-dragdrop-area component */\n @Listen(\"fileDropped\")\n fileDroppedListener(e: CustomEvent): void {\n this.input.files = e.detail;\n this.fileInputHandler();\n }\n\n componentDidUpdate(): void {\n this.handleAccessibility();\n this.invalidFiles.size && this.errorModal.focus();\n }\n\n componentWillLoad(): void {\n this.invalidFiles = new Map<string, string[]>();\n }\n\n /** Emitted when user select one or more files */\n @Event()\n fileInput: EventEmitter;\n\n private fileInputHandler(): void {\n if (this.input.files.length) {\n this.invalidFiles = this.checkFiles(Array.from(this.input.files));\n }\n }\n\n /** get array of uploaded files */\n @Method()\n async getFiles(): Promise<File[]> {\n return this.files;\n }\n\n /** remove file from the array */\n @Method()\n async removeFile(fileName: string): Promise<void> {\n this.removeFileHandler(fileName);\n }\n\n private removeFileHandler(fileName: string): void {\n const files = this.files;\n const file = files.find((file) => file.name === fileName);\n if (file) {\n const index = files.indexOf(file);\n if (index >= 0) {\n files.splice(index, 1);\n this.files = [...files];\n }\n }\n }\n\n private getType(): ZFileUploadType {\n if (getDevice() !== Device.DESKTOP && getDevice() !== Device.DESKTOP_WIDE) {\n return ZFileUploadType.DEFAULT;\n }\n\n return this.type;\n }\n\n private handleAccessibility(): void {\n const lastFile = this.el.querySelector(\"z-file:last-child z-chip button\");\n if (this.files.length > 0 && lastFile) {\n (lastFile as HTMLElement).focus();\n } else {\n this.getType() === ZFileUploadType.DEFAULT\n ? this.button.querySelector(\"button\").focus()\n : this.uploadLink.focus();\n }\n }\n\n private checkFiles(files: File[]): Map<string, string[]> {\n const errors = new Map<string, string[]>();\n const sizeErrorString = `supera il limite di ${this.fileMaxSize}MB`;\n const formatErrorString = \" ha un formato non supportato\";\n files.forEach((file: File) => {\n const fileSize = file.size / 1024 / 1024;\n const fileFormatOk = this.acceptedFormat\n .split(\",\")\n .some((ext: string) => file.name.toLowerCase().endsWith(ext.trim()));\n const fileSizeOk = fileSize <= this.fileMaxSize;\n if (fileSizeOk && fileFormatOk) {\n if (!this.files.find((f) => f.name === file.name)) {\n this.files.push(file);\n this.fileInput.emit(file);\n this.input.value = \"\";\n }\n\n return;\n }\n errors.set(file.name, []);\n if (!fileSizeOk) {\n errors.get(file.name).push(sizeErrorString);\n }\n if (!fileFormatOk) {\n errors.get(file.name).push(formatErrorString);\n }\n });\n\n return errors;\n }\n\n private renderTitle(): HTMLElement {\n return <span id=\"title\">{this.mainTitle}</span>;\n }\n\n private renderDescription(cssClass): HTMLElement {\n return <span class={cssClass}>{this.description}</span>;\n }\n\n private renderAllowedFileExtensions(): HTMLElement {\n let fileFormatString = \"\";\n let fileWeightString = \"\";\n\n if (this.acceptedFormat) {\n const fileFormat = this.acceptedFormat\n .split(\", \")\n .map((string) => string.substring(1).toUpperCase())\n .join(\", \");\n fileFormatString = ` nei formati ${fileFormat}`;\n }\n\n if (this.fileMaxSize) {\n fileWeightString = ` per un massimo di ${this.fileMaxSize}MB di peso`;\n }\n\n const finalString = `Puoi allegare file${fileFormatString}${fileWeightString}.`;\n\n return (\n <span class=\"body-3\">\n {this.allowedFilesMessage\n ? this.allowedFilesMessage\n : fileFormatString || fileWeightString\n ? finalString\n : null}\n </span>\n );\n }\n\n private renderFileSection(): HTMLElement {\n if (!this.hasFileSection) {\n return;\n }\n\n return (\n <section class={`files-container ${!this.files.length ? \"hidden\" : \"\"}`}>\n <span class=\"heading-4-sb\">{this.uploadedFilesLabel}</span>\n <div class=\"files-wrapper\">\n <slot name=\"files\" />\n </div>\n <z-divider size={DividerSize.MEDIUM} />\n </section>\n );\n }\n\n private renderInput(): HTMLInputElement {\n return (\n <input\n {...this.inputAttributes}\n onChange={() => this.fileInputHandler()}\n accept={this.acceptedFormat}\n ref={(val) => (this.input = val)}\n />\n );\n }\n\n private renderUploadButton(): unknown[] {\n return [\n this.renderInput(),\n <z-button\n onClick={() => this.input.click()}\n onKeyPress={(e) => {\n if (e.code == \"Space\" || e.code == \"Enter\") {\n e.preventDefault();\n this.input.click();\n }\n }}\n id=\"fileSelect\"\n variant={this.buttonVariant}\n icon=\"upload\"\n ref={(val) => (this.button = val)}\n >\n {this.uploadBtnLabel}\n </z-button>,\n ];\n }\n\n private renderUploadLink(): unknown[] {\n return [\n this.renderInput(),\n <span class=\"body-1 upload-link-text\">\n <span\n tabIndex={0}\n class=\"body-1-sb upload-link\"\n onClick={() => this.input.click()}\n onKeyPress={(e) => {\n if (e.code == \"Space\" || e.code == \"Enter\") {\n e.preventDefault();\n this.input.click();\n }\n }}\n ref={(val) => (this.uploadLink = val)}\n >\n {this.uploadClickableMessage}\n </span>{\" \"}\n {this.uploadMessage}\n </span>,\n ];\n }\n\n private renderDefaultMode(): unknown[] {\n return [\n this.renderDescription(\"body-3-sb\"),\n this.renderAllowedFileExtensions(),\n this.renderFileSection(),\n this.renderUploadButton(),\n ];\n }\n\n private renderDragDropMode(): unknown[] {\n return [\n this.renderFileSection(),\n <z-dragdrop-area drag-and-drop-label={this.dragAndDropLabel}>\n <div class=\"text-container\">\n {this.renderDescription(\"body-1\")}\n {this.renderUploadLink()}\n {this.renderAllowedFileExtensions()}\n </div>\n </z-dragdrop-area>,\n ];\n }\n\n private formatErrorString(key, value): string {\n const bothErrors = value[0] && value[1] ? \" e \" : \"\";\n\n return (\n <span class=\"error-message\">\n Il file <span class=\"file-name\">{key}</span> {value[1] ?? \"\"}\n {bothErrors}\n {value[0] ?? \"\"}.\n </span>\n );\n }\n\n private handleErrorModalContent(): HTMLDivElement {\n return (\n <div slot=\"modalContent\">\n <div class=\"modal-wrapper\">\n <div class=\"files\">\n {this.errorModalMessage ? (\n <span class=\"body-3\">{this.errorModalMessage}</span>\n ) : (\n Array.from(this.invalidFiles).map(([key, value]) => {\n return <span class=\"body-3\">{this.formatErrorString(key, value)}</span>;\n })\n )}\n </div>\n </div>\n </div>\n );\n }\n\n render(): HTMLZFileUploadElement {\n return (\n <Host>\n <div class={`container ${this.getType()}`}>\n {this.mainTitle && this.renderTitle()}\n {this.getType() == ZFileUploadType.DEFAULT ? this.renderDefaultMode() : this.renderDragDropMode()}\n </div>\n {!!this.invalidFiles.size && (\n <z-modal\n modalid={`file-upload-${this.type}-error-modal`}\n tabIndex={0}\n ref={(val) => (this.errorModal = val)}\n modaltitle={this.errorModalTitle}\n onModalClose={() => (this.invalidFiles = new Map<string, string[]>())}\n onModalBackgroundClick={() => (this.invalidFiles = new Map<string, string[]>())}\n >\n {this.handleErrorModalContent()}\n </z-modal>\n )}\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"z-file-upload.js","mappings":";;;;;;;AAAA,MAAM,SAAS,GAAG,6rEAA6rE,CAAC;AAChtE,0BAAe,SAAS;;MCUXA,aAAW;;;;;;oBAGE,eAAe,CAAC,OAAO;;;;;;8BAwBrB,QAAQ;gCAIN,+CAA+C;;sCAQzC,QAAQ;6BAIjB,6BAA6B;+BAI3B,uBAAuB;;kCAQpB,sBAAsB;8BAIzB,I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pload"],"sources":["src/components/file-upload/z-file-upload/styles.css?tag=z-file-upload&encapsulation=scoped","src/components/file-upload/z-file-upload/index.tsx"],"sourcesContent":[":host {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n color: var(--color-default-text);\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n}\n\n:host .modal-wrapper {\n display: flex;\n flex-direction: column;\n justify-content: center;\n padding: calc(var(--space-unit) * 2);\n row-gap: calc(var(--space-unit) * 2);\n}\n\n:host .modal-wrapper > .files-wrapper {\n display: flex;\n flex-direction: column;\n margin: calc(var(--space-unit) * 4);\n gap: var(--space-unit);\n}\n\n:host .text-container {\n display: flex;\n flex-direction: column;\n margin: auto;\n text-align: center;\n}\n\n:host .text-container .upload-link {\n color: var(--color-text-link-blue);\n cursor: pointer;\n text-decoration: underline;\n}\n\n:host .text-container .upload-link:focus-visible {\n box-shadow: var(--shadow-focus-primary);\n outline: none !important;\n}\n\n:host .text-container .upload-link-text {\n margin-bottom: var(--space-unit);\n}\n\n:host input[type=\"file\"] {\n display: none;\n}\n\n:host #title + #description {\n margin-top: var(--space-unit);\n}\n\n:host > * + z-button,\n:host > .files-container + *,\n:host > .files-container:not(:first-child) {\n margin-top: calc(var(--space-unit) * 3);\n}\n\n:host > .files-container.hidden {\n display: none;\n}\n\n:host > .files-container > .uploaded-files-label {\n margin-bottom: calc(var(--space-unit) * 2);\n}\n\n:host > .files-container > .files-wrapper {\n display: flex;\n flex-wrap: wrap;\n column-gap: calc(var(--space-unit) * 2);\n row-gap: calc(var(--space-unit) * 2);\n}\n\n/* Tablet breakpoint */\n@media (min-width: 768px) {\n :host > .container > z-button {\n align-self: flex-start;\n }\n\n :host .modal-wrapper {\n padding: calc(var(--space-unit) * 3);\n }\n}\n\n@media (min-width: 1152px) {\n :host .modal-wrapper {\n padding: calc(var(--space-unit) * 4);\n }\n}\n","import {Component, Element, Event, EventEmitter, Host, Listen, Method, Prop, State, h} from \"@stencil/core\";\nimport {ButtonVariant, ZFileUploadType} from \"../../../beans\";\n\nexport type ZFileUploadError = {cause: \"format\" | \"size\"; message: string};\n\n@Component({\n tag: \"z-file-upload\",\n styleUrl: \"styles.css\",\n shadow: false,\n scoped: true,\n})\nexport class ZFileUpload {\n /** Prop indicating the file upload type - can be default or dragdrop */\n @Prop({reflect: true})\n type: ZFileUploadType = ZFileUploadType.DEFAULT;\n\n /** Prop indicating the button variant*/\n @Prop()\n buttonVariant?: ButtonVariant;\n\n /** Prop indicating the accepted file type: ex \".pdf, .doc, .jpg\" */\n @Prop()\n acceptedFormat?: string;\n\n /** Max file dimension in Megabyte */\n @Prop()\n fileMaxSize?: number;\n\n /** Title */\n @Prop()\n mainTitle?: string;\n\n /** Description */\n @Prop()\n description?: string;\n\n /** upoload button label */\n @Prop()\n uploadBtnLabel?: string = \"allega\";\n\n /** drag & drop button label */\n @Prop()\n dragAndDropLabel?: string = \"Rilascia i file in questa area per allegarli.\";\n\n /** allowed file message */\n @Prop()\n allowedFilesMessage?: string;\n\n /** upload clickable message */\n @Prop()\n uploadClickableMessage?: string = \"Carica\";\n\n /** upload message */\n @Prop()\n uploadMessage?: string = \"o trascina dal tuo computer\";\n\n /** error modal title */\n @Prop()\n errorModalTitle?: string = \"Errore di caricamento\";\n\n /** error modal message */\n @Prop()\n errorModalMessage?: string;\n\n /** loaded files label */\n @Prop()\n uploadedFilesLabel?: string = \"File appena caricati\";\n\n /** uploaded files history rendering */\n @Prop()\n hasFileSection?: boolean = true;\n\n /** Value to set on the file input's `name` attribute (for use with forms) */\n @Prop()\n inputName? = \"z-file-upload\";\n\n /**\n * Whether to show errors in the internal modal or leave the handling to the app.\n * Errors will still be emitted.\n */\n @Prop()\n showErrors = true;\n\n /** Internal store of the component type. It will change when viewport goes from desktop to tablet/mobile and vice versa */\n @State()\n private _type: ZFileUploadType = this.type;\n\n /** Files added by the user */\n @State()\n files: File[] = [];\n\n /** Map of files whose upload caused an error and the relative errors, with the cause and a message */\n @State()\n invalidFiles: Map<string, ZFileUploadError[]> = new Map<string, ZFileUploadError[]>();\n\n /** Emitted when user select one or more files */\n @Event()\n fileInput: EventEmitter<File>;\n\n /**\n * Emits an array of error messages related to one or more files not allowed.\n * Emitted when some file is dropped or selected.\n */\n @Event()\n fileError: EventEmitter<{file: string; errors: ZFileUploadError[]}>;\n\n @Element() host: HTMLZFileUploadElement;\n\n private input: HTMLInputElement;\n\n private errorModal: HTMLZModalElement;\n\n /** Listen `removeFile` event sent from z-file component */\n @Listen(\"removeFile\")\n onFileRemoved(e: CustomEvent): void {\n this.removeFile(e.detail);\n }\n\n /** Listen fileDropped event sent from z-dragdrop-area component */\n @Listen(\"fileDropped\")\n fileDroppedListener(e: CustomEvent): void {\n this.input.files = e.detail;\n this.checkFilesValidity(this.input.files);\n }\n\n /** Get the list of uploaded files */\n @Method()\n async getFiles(): Promise<File[]> {\n return this.files;\n }\n\n /** Remove a previously uploaded file */\n @Method()\n async removeFile(fileName: string): Promise<void> {\n const files = this.files;\n const index = files.findIndex((file) => file.name === fileName);\n if (index >= 0) {\n files.splice(index, 1);\n this.files = [...files];\n }\n }\n\n private checkFilesValidity(files: FileList): Map<string, string[]> {\n if (!files.length) {\n return;\n }\n\n Array.from(files).forEach((file: File) => {\n const fileSize = file.size / 1024 / 1024;\n const fileFormatOk = this.acceptedFormat\n .split(\",\")\n .some((ext: string) => file.name.toLowerCase().endsWith(ext.trim()));\n const fileSizeOk = fileSize <= this.fileMaxSize;\n if (fileSizeOk && fileFormatOk && !this.files.find((f) => f.name === file.name)) {\n this.files = [...this.files, file];\n this.fileInput.emit(file);\n this.input.value = \"\";\n\n return;\n }\n\n const sizeError = `Il file ${file.name} supera il limite di ${this.fileMaxSize}MB`;\n const formatError = `Il file ${file.name} ha un formato non supportato`;\n const errors = [\n !fileSizeOk && {cause: \"size\" as const, message: sizeError},\n !fileFormatOk && {cause: \"format\" as const, message: formatError},\n ].filter(Boolean);\n this.invalidFiles.set(file.name, errors);\n this.invalidFiles = new Map(this.invalidFiles); // trigger state update\n this.fileError.emit({file: file.name, errors});\n });\n }\n\n private resetErrors(): void {\n this.invalidFiles = new Map<string, ZFileUploadError[]>();\n }\n\n private onFilesChange(e: Event): void {\n this.checkFilesValidity((e.target as HTMLInputElement).files);\n }\n\n componentWillLoad(): void {\n // force default type on mobile and tablet viewport\n const mql = window.matchMedia(\"(max-width: 1151px)\");\n this._type = mql.matches ? ZFileUploadType.DEFAULT : this.type;\n mql.addEventListener(\"change\", (e) => {\n this._type = e.matches ? ZFileUploadType.DEFAULT : this.type;\n });\n }\n\n componentDidUpdate(): void {\n if (!this.showErrors || !this.invalidFiles.size) {\n return;\n }\n\n this.errorModal.open();\n }\n\n private renderDescription(cssClass): HTMLElement | undefined {\n if (!this.description) {\n return;\n }\n\n return (\n <span\n id=\"description\"\n class={cssClass}\n >\n {this.description}\n </span>\n );\n }\n\n private renderAllowedFilesMessage(): HTMLElement {\n let fileFormatString = \"\";\n let fileWeightString = \"\";\n\n if (this.acceptedFormat) {\n const fileFormat = this.acceptedFormat\n .split(\", \")\n .map((string) => string.substring(1).toUpperCase())\n .join(\", \");\n fileFormatString = ` nei formati ${fileFormat}`;\n }\n\n if (this.fileMaxSize) {\n fileWeightString = ` per un massimo di ${this.fileMaxSize}MB di peso`;\n }\n\n const defaultMessage =\n fileFormatString || fileWeightString ? `Puoi allegare file${fileFormatString}${fileWeightString}.` : undefined;\n\n if (!this.allowedFilesMessage && !defaultMessage) {\n return;\n }\n\n return <span class=\"allowed-files-message body-3\">{this.allowedFilesMessage || defaultMessage}</span>;\n }\n\n private renderFileSection(): HTMLElement {\n if (!this.hasFileSection) {\n return;\n }\n\n return (\n <section class={{\"files-container\": true, \"hidden\": !this.files.length}}>\n <div class=\"uploaded-files-label heading-3-sb\">{this.uploadedFilesLabel}</div>\n <div class=\"files-wrapper\">\n <slot name=\"files\" />\n </div>\n </section>\n );\n }\n\n private renderInput(): HTMLInputElement {\n return (\n <input\n type=\"file\"\n name={this.inputName}\n multiple\n onChange={(e) => this.onFilesChange(e)}\n accept={this.acceptedFormat}\n ref={(val) => (this.input = val)}\n />\n );\n }\n\n private renderUploadButton(): unknown[] {\n return [\n <z-button\n onClick={() => this.input.click()}\n onKeyPress={(e) => {\n if (e.code == \"Space\" || e.code == \"Enter\") {\n e.preventDefault();\n this.input.click();\n }\n }}\n id=\"fileSelect\"\n variant={this.buttonVariant}\n icon=\"upload\"\n >\n {this.uploadBtnLabel}\n </z-button>,\n this.renderInput(),\n ];\n }\n\n private renderUploadLink(): unknown[] {\n return [\n this.renderInput(),\n <span class=\"body-1 upload-link-text\">\n <span\n tabIndex={0}\n class=\"body-1-sb upload-link\"\n onClick={() => this.input.click()}\n onKeyPress={(e) => {\n if (e.code == \"Space\" || e.code == \"Enter\") {\n e.preventDefault();\n this.input.click();\n }\n }}\n >\n {this.uploadClickableMessage}\n </span>{\" \"}\n {this.uploadMessage}\n </span>,\n ];\n }\n\n private renderDefaultMode(): unknown[] {\n return [\n this.renderDescription(\"body-3-sb\"),\n this.renderAllowedFilesMessage(),\n this.renderFileSection(),\n this.renderUploadButton(),\n ];\n }\n\n private renderDragDropMode(): unknown[] {\n return [\n this.renderFileSection(),\n <z-dragdrop-area drag-and-drop-label={this.dragAndDropLabel}>\n <div class=\"text-container\">\n {this.renderDescription(\"body-1\")}\n {this.renderUploadLink()}\n {this.renderAllowedFilesMessage()}\n </div>\n </z-dragdrop-area>,\n ];\n }\n\n private renderFileErrors(): HTMLElement[] {\n return Array.from(this.invalidFiles).map(([fileName, errors]) => {\n const prefix = `Il file ${fileName}`;\n\n return (\n <span class=\"error-message\">\n Il file <span class=\"body-3-sb\">{fileName}</span>\n {errors.map(({message}) => message.replace(prefix, \"\")).join(\" e \")}.\n </span>\n );\n });\n }\n\n render(): HTMLZFileUploadElement {\n return (\n <Host>\n {this.mainTitle && (\n <div\n id=\"title\"\n class=\"heading-3-sb\"\n >\n {this.mainTitle}\n </div>\n )}\n {this._type == ZFileUploadType.DEFAULT ? this.renderDefaultMode() : this.renderDragDropMode()}\n {!!this.invalidFiles.size && this.showErrors && (\n <z-modal\n modalid={`file-upload-${this.type}-error-modal`}\n ref={(val) => (this.errorModal = val)}\n modaltitle={this.errorModalTitle}\n onModalClose={() => this.resetErrors()}\n onModalBackgroundClick={() => this.resetErrors()}\n >\n <div slot=\"modalContent\">\n <div class=\"modal-wrapper body-3\">\n {this.errorModalMessage ? this.errorModalMessage : this.renderFileErrors()}\n </div>\n </div>\n </z-modal>\n )}\n </Host>\n );\n }\n}\n"],"version":3}
@@ -42,7 +42,7 @@ const ZFile$1 = /*@__PURE__*/ proxyCustomElement(class ZFile extends HTMLElement
42
42
  return this.ellipsis.offsetWidth < this.ellipsis.scrollWidth;
43
43
  }
44
44
  render() {
45
- return (h(Host, { key: 'b99ff5a4dd4faa2f964189e52264b8f5af79b61c' }, this.allowPopover && (h("z-popover", { key: '41b672aeaf252c2eb231371c622b3632bc8f5046', open: this.popoverVisible, position: PopoverPosition.AUTO, bindTo: this.chip }, h("span", { key: '1c9b014b23e9e40c282e9044484a77bb966251c9', class: "body-5 tooltip-content" }, this.ellipsis.innerText))), h("z-chip", { key: 'dd727841dc90cb19abf85156cdacb83632528e18', ref: (el) => (this.chip = el), id: `chip-${this.fileNumber}`, interactiveIcon: "multiply-circled", type: ZChipType.DEFAULT }, h("span", { key: 'f4d54ff1d4930793da78b03098ccacfa8ca94d37', ref: (el) => (this.ellipsis = el), tabIndex: -1 }, this.fileName))));
45
+ return (h(Host, { key: '9a670c454baa87afc7d1c9e47a744eecaa074c68' }, this.allowPopover && (h("z-popover", { key: '8d5d38d65a09aee75d56b888b9828a3f8a9e1626', open: this.popoverVisible, position: PopoverPosition.AUTO, bindTo: this.chip }, h("span", { key: 'c24e0d8afecbe3fdfb6370c76ddc0db54f597497', class: "body-5 tooltip-content" }, this.ellipsis.innerText))), h("z-chip", { key: 'a5c4ff0f9366bb59d581c9d48606d8989bbed678', ref: (el) => (this.chip = el), id: `chip-${this.fileNumber}`, interactiveIcon: "multiply-circled", type: ZChipType.DEFAULT }, h("span", { key: 'eed1a949170a44f7ff618ec3e363923aea656742', ref: (el) => (this.ellipsis = el), tabIndex: -1 }, this.fileName))));
46
46
  }
47
47
  get el() { return this; }
48
48
  static get style() { return ZFileStyle0; }
@@ -17,7 +17,7 @@ const ZInfoBox$1 = /*@__PURE__*/ proxyCustomElement(class ZInfoBox extends HTMLE
17
17
  this.infoBoxClose.emit({ boxid: this.boxid });
18
18
  }
19
19
  render() {
20
- return (h("div", { key: '770d8904081080758219f87d24f5a56846f1fad1', id: this.boxid }, h("slot", { key: 'a6fa079647709fc3c8326c2d73cdd1da884c4b58', name: "content" }), this.isclosable && (h("z-icon", { key: '63de143e010971175608c651d2d2f0c87ee98797', name: "multiply", "data-action": "infoBoxClose", onClick: () => this.emitInfoBoxClose() }))));
20
+ return (h("div", { key: 'bff4d7fdd01fae2697f23b03515d9cb93a53127d', id: this.boxid }, h("slot", { key: 'a2d80c39c0cc7c115974a4d5da52c2189ab830c9', name: "content" }), this.isclosable && (h("z-icon", { key: '555579d0bf7c1e654055fe4c552c4e89af0fb513', name: "multiply", "data-action": "infoBoxClose", onClick: () => this.emitInfoBoxClose() }))));
21
21
  }
22
22
  static get style() { return ZInfoBoxStyle0; }
23
23
  }, [1, "z-info-box", {
@@ -23,7 +23,7 @@ const ZLogo$1 = /*@__PURE__*/ proxyCustomElement(class ZLogo extends HTMLElement
23
23
  if (this.height) {
24
24
  style["height"] = style["max-height"] = `${this.height}px`;
25
25
  }
26
- return (h(Host, { key: '7e752127614823afe2441a9d3d316d9974f593d1', style: style, class: { mobile: !!this.mobileLogo } }, this.link ? (h("a", { href: this.link, target: this.targetBlank ? "_blank" : "_self" }, h("img", { alt: this.imageAlt }))) : (h("img", { alt: this.imageAlt }))));
26
+ return (h(Host, { key: '43def5f659303a7fa03bdf8a48bf03dacc379dde', style: style, class: { mobile: !!this.mobileLogo } }, this.link ? (h("a", { href: this.link, target: this.targetBlank ? "_blank" : "_self" }, h("img", { alt: this.imageAlt }))) : (h("img", { alt: this.imageAlt }))));
27
27
  }
28
28
  static get style() { return ZLogoStyle0; }
29
29
  }, [1, "z-logo", {