@zanichelli/albe-web-components 2.40.0 → 2.41.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (411) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/dist/cjs/{index-25206491.js → index-15dc9f49.js} +10 -5
  3. package/dist/cjs/{index-e826b4ad.js → index-ec1433b8.js} +179 -91
  4. package/dist/cjs/index.cjs.js +2 -2
  5. package/dist/cjs/loader.cjs.js +3 -3
  6. package/dist/cjs/{utils-6410fc7d.js → utils-50477402.js} +3 -3
  7. package/dist/cjs/web-components-library.cjs.js +3 -3
  8. package/dist/cjs/z-alert.cjs.entry.js +1 -1
  9. package/dist/cjs/z-app-header.cjs.entry.js +1 -1
  10. package/dist/cjs/z-app-switcher_10.cjs.entry.js +353 -0
  11. package/dist/cjs/z-aria-alert.cjs.entry.js +2 -2
  12. package/dist/cjs/z-avatar.cjs.entry.js +2 -2
  13. package/dist/cjs/z-body_2.cjs.entry.js +1 -1
  14. package/dist/cjs/z-button-filter_5.cjs.entry.js +3 -3
  15. package/dist/cjs/z-button-sort.cjs.entry.js +1 -1
  16. package/dist/cjs/z-candybar.cjs.entry.js +1 -1
  17. package/dist/cjs/z-chip.cjs.entry.js +2 -2
  18. package/dist/cjs/z-combobox.cjs.entry.js +3 -3
  19. package/dist/cjs/z-contextual-menu.cjs.entry.js +2 -2
  20. package/dist/cjs/z-cookiebar.cjs.entry.js +2 -2
  21. package/dist/cjs/z-footer-link_3.cjs.entry.js +1 -1
  22. package/dist/cjs/z-footer.cjs.entry.js +2 -2
  23. package/dist/cjs/z-ghost-loading.cjs.entry.js +1 -1
  24. package/dist/cjs/z-heading.cjs.entry.js +17 -0
  25. package/dist/cjs/z-icon-package.cjs.entry.js +1 -1
  26. package/dist/cjs/z-info-box.cjs.entry.js +1 -1
  27. package/dist/cjs/z-list_3.cjs.entry.js +2 -2
  28. package/dist/cjs/z-menu-dropdown_2.cjs.entry.js +3 -3
  29. package/dist/cjs/z-menu-section.cjs.entry.js +1 -1
  30. package/dist/cjs/z-menu.cjs.entry.js +1 -1
  31. package/dist/cjs/z-messages-pocket.cjs.entry.js +2 -2
  32. package/dist/cjs/z-modal-login.cjs.entry.js +2 -2
  33. package/dist/cjs/z-modal.cjs.entry.js +1 -1
  34. package/dist/cjs/z-myz-card-alert.cjs.entry.js +2 -2
  35. package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +2 -2
  36. package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +1 -1
  37. package/dist/cjs/z-myz-card-footer.cjs.entry.js +2 -2
  38. package/dist/cjs/z-myz-card-icon.cjs.entry.js +1 -1
  39. package/dist/cjs/z-myz-card-info.cjs.entry.js +3 -3
  40. package/dist/cjs/z-myz-card-list.cjs.entry.js +1 -1
  41. package/dist/cjs/z-myz-card_4.cjs.entry.js +2 -2
  42. package/dist/cjs/z-myz-list-item.cjs.entry.js +3 -3
  43. package/dist/cjs/z-myz-topbar.cjs.entry.js +2 -2
  44. package/dist/cjs/z-navigation-tab.cjs.entry.js +1 -1
  45. package/dist/cjs/z-navigation-tabs.cjs.entry.js +2 -2
  46. package/dist/cjs/z-notification.cjs.entry.js +2 -2
  47. package/dist/cjs/z-otp.cjs.entry.js +2 -2
  48. package/dist/cjs/z-pagination-bar.cjs.entry.js +3 -3
  49. package/dist/cjs/z-pagination-page.cjs.entry.js +1 -1
  50. package/dist/cjs/z-panel-elem.cjs.entry.js +1 -1
  51. package/dist/cjs/z-pocket-message.cjs.entry.js +1 -1
  52. package/dist/cjs/z-pocket_3.cjs.entry.js +3 -3
  53. package/dist/cjs/z-popover.cjs.entry.js +3 -3
  54. package/dist/cjs/z-slideshow.cjs.entry.js +3 -3
  55. package/dist/cjs/z-status-tag.cjs.entry.js +2 -2
  56. package/dist/cjs/z-stepper-item.cjs.entry.js +1 -1
  57. package/dist/cjs/z-stepper.cjs.entry.js +1 -1
  58. package/dist/cjs/z-table-body.cjs.entry.js +1 -1
  59. package/dist/cjs/z-table-cell.cjs.entry.js +2 -2
  60. package/dist/cjs/z-table-empty-box.cjs.entry.js +1 -1
  61. package/dist/cjs/z-table-expanded-row.cjs.entry.js +1 -1
  62. package/dist/cjs/z-table-footer.cjs.entry.js +1 -1
  63. package/dist/cjs/z-table-head.cjs.entry.js +1 -1
  64. package/dist/cjs/z-table-header-row.cjs.entry.js +1 -1
  65. package/dist/cjs/z-table-header.cjs.entry.js +3 -3
  66. package/dist/cjs/z-table-row.cjs.entry.js +2 -2
  67. package/dist/cjs/z-table-sticky-footer.cjs.entry.js +1 -1
  68. package/dist/cjs/z-table.cjs.entry.js +2 -2
  69. package/dist/cjs/z-toast-notification-list.cjs.entry.js +2 -2
  70. package/dist/cjs/z-toast-notification.cjs.entry.js +2 -2
  71. package/dist/cjs/z-toggle-button.cjs.entry.js +1 -1
  72. package/dist/cjs/z-toggle-switch.cjs.entry.js +13 -12
  73. package/dist/cjs/z-tooltip.cjs.entry.js +2 -2
  74. package/dist/cjs/z-user-dropdown.cjs.entry.js +1 -1
  75. package/dist/cjs/z-visually-hidden.cjs.entry.js +1 -1
  76. package/dist/collection/beans/index.js +10 -5
  77. package/dist/collection/collection-manifest.json +3 -5
  78. package/dist/collection/components/buttons/z-button/index.js +3 -4
  79. package/dist/collection/components/buttons/z-toggle-switch/index.js +14 -11
  80. package/dist/collection/components/buttons/z-toggle-switch/styles.css +19 -32
  81. package/dist/collection/components/navigation/z-menu/index.js +4 -4
  82. package/dist/collection/components/notification/z-tooltip/index.js +2 -2
  83. package/dist/collection/components/z-offcanvas/index.js +147 -0
  84. package/dist/collection/components/z-offcanvas/styles.css +163 -0
  85. package/dist/collection/utils/utils.js +2 -2
  86. package/dist/esm/{index-8782dff4.js → index-1877eca4.js} +179 -91
  87. package/dist/esm/{index-cca2b0d2.js → index-672bd95c.js} +11 -6
  88. package/dist/esm/index.js +2 -2
  89. package/dist/esm/loader.js +3 -3
  90. package/dist/esm/polyfills/css-shim.js +1 -1
  91. package/dist/esm/{utils-cdd5a909.js → utils-c01fe130.js} +3 -3
  92. package/dist/esm/web-components-library.js +3 -3
  93. package/dist/esm/z-alert.entry.js +1 -1
  94. package/dist/esm/z-app-header.entry.js +1 -1
  95. package/dist/esm/z-app-switcher_10.entry.js +340 -0
  96. package/dist/esm/z-aria-alert.entry.js +2 -2
  97. package/dist/esm/z-avatar.entry.js +2 -2
  98. package/dist/esm/z-body_2.entry.js +1 -1
  99. package/dist/esm/z-button-filter_5.entry.js +3 -3
  100. package/dist/esm/z-button-sort.entry.js +1 -1
  101. package/dist/esm/z-candybar.entry.js +1 -1
  102. package/dist/esm/z-chip.entry.js +2 -2
  103. package/dist/esm/z-combobox.entry.js +3 -3
  104. package/dist/esm/z-contextual-menu.entry.js +2 -2
  105. package/dist/esm/z-cookiebar.entry.js +2 -2
  106. package/dist/esm/z-footer-link_3.entry.js +1 -1
  107. package/dist/esm/z-footer.entry.js +2 -2
  108. package/dist/esm/z-ghost-loading.entry.js +1 -1
  109. package/dist/esm/z-heading.entry.js +13 -0
  110. package/dist/esm/z-icon-package.entry.js +1 -1
  111. package/dist/esm/z-info-box.entry.js +1 -1
  112. package/dist/esm/z-list_3.entry.js +2 -2
  113. package/dist/esm/z-menu-dropdown_2.entry.js +3 -3
  114. package/dist/esm/z-menu-section.entry.js +1 -1
  115. package/dist/esm/z-menu.entry.js +1 -1
  116. package/dist/esm/z-messages-pocket.entry.js +2 -2
  117. package/dist/esm/z-modal-login.entry.js +2 -2
  118. package/dist/esm/z-modal.entry.js +1 -1
  119. package/dist/esm/z-myz-card-alert.entry.js +2 -2
  120. package/dist/esm/z-myz-card-dictionary.entry.js +2 -2
  121. package/dist/esm/z-myz-card-footer-sections.entry.js +1 -1
  122. package/dist/esm/z-myz-card-footer.entry.js +2 -2
  123. package/dist/esm/z-myz-card-icon.entry.js +1 -1
  124. package/dist/esm/z-myz-card-info.entry.js +3 -3
  125. package/dist/esm/z-myz-card-list.entry.js +1 -1
  126. package/dist/esm/z-myz-card_4.entry.js +2 -2
  127. package/dist/esm/z-myz-list-item.entry.js +3 -3
  128. package/dist/esm/z-myz-topbar.entry.js +2 -2
  129. package/dist/esm/z-navigation-tab.entry.js +1 -1
  130. package/dist/esm/z-navigation-tabs.entry.js +2 -2
  131. package/dist/esm/z-notification.entry.js +2 -2
  132. package/dist/esm/z-otp.entry.js +2 -2
  133. package/dist/esm/z-pagination-bar.entry.js +3 -3
  134. package/dist/esm/z-pagination-page.entry.js +1 -1
  135. package/dist/esm/z-panel-elem.entry.js +1 -1
  136. package/dist/esm/z-pocket-message.entry.js +1 -1
  137. package/dist/esm/z-pocket_3.entry.js +3 -3
  138. package/dist/esm/z-popover.entry.js +3 -3
  139. package/dist/esm/z-slideshow.entry.js +3 -3
  140. package/dist/esm/z-status-tag.entry.js +2 -2
  141. package/dist/esm/z-stepper-item.entry.js +1 -1
  142. package/dist/esm/z-stepper.entry.js +1 -1
  143. package/dist/esm/z-table-body.entry.js +1 -1
  144. package/dist/esm/z-table-cell.entry.js +2 -2
  145. package/dist/esm/z-table-empty-box.entry.js +1 -1
  146. package/dist/esm/z-table-expanded-row.entry.js +1 -1
  147. package/dist/esm/z-table-footer.entry.js +1 -1
  148. package/dist/esm/z-table-head.entry.js +1 -1
  149. package/dist/esm/z-table-header-row.entry.js +1 -1
  150. package/dist/esm/z-table-header.entry.js +3 -3
  151. package/dist/esm/z-table-row.entry.js +2 -2
  152. package/dist/esm/z-table-sticky-footer.entry.js +1 -1
  153. package/dist/esm/z-table.entry.js +2 -2
  154. package/dist/esm/z-toast-notification-list.entry.js +2 -2
  155. package/dist/esm/z-toast-notification.entry.js +2 -2
  156. package/dist/esm/z-toggle-button.entry.js +1 -1
  157. package/dist/esm/z-toggle-switch.entry.js +13 -12
  158. package/dist/esm/z-tooltip.entry.js +2 -2
  159. package/dist/esm/z-user-dropdown.entry.js +1 -1
  160. package/dist/esm/z-visually-hidden.entry.js +1 -1
  161. package/dist/types/beans/index.d.ts +8 -4
  162. package/dist/types/components/buttons/z-button/index.d.ts +1 -2
  163. package/dist/types/components/buttons/z-toggle-switch/index.d.ts +2 -2
  164. package/dist/types/components/z-offcanvas/index.d.ts +25 -0
  165. package/dist/types/components.d.ts +42 -102
  166. package/dist/types/stencil-public-runtime.d.ts +189 -186
  167. package/dist/web-components-library/index.esm.js +1 -1
  168. package/dist/web-components-library/{p-d9a14771.entry.js → p-0084ea9f.entry.js} +1 -1
  169. package/dist/web-components-library/{p-18d36e2e.entry.js → p-0293d6c6.entry.js} +1 -1
  170. package/dist/web-components-library/{p-6a4dfee8.entry.js → p-02fa9e81.entry.js} +1 -1
  171. package/dist/web-components-library/{p-daec8d7f.entry.js → p-032bfb5c.entry.js} +1 -1
  172. package/dist/web-components-library/{p-c277d035.entry.js → p-04daa863.entry.js} +1 -1
  173. package/dist/web-components-library/{p-006a91ce.entry.js → p-07938fc2.entry.js} +1 -1
  174. package/dist/web-components-library/{p-db1508ed.entry.js → p-0948e843.entry.js} +1 -1
  175. package/dist/web-components-library/{p-b1e6a2ae.entry.js → p-09ded8b4.entry.js} +1 -1
  176. package/dist/web-components-library/{p-431d0295.entry.js → p-0b6bd214.entry.js} +1 -1
  177. package/dist/web-components-library/{p-824875b4.entry.js → p-1584dfb4.entry.js} +1 -1
  178. package/dist/web-components-library/{p-3830db49.entry.js → p-1bd60c44.entry.js} +1 -1
  179. package/dist/web-components-library/{p-031de7f3.entry.js → p-23c46ff2.entry.js} +1 -1
  180. package/{www/build/p-1c7ed895.entry.js → dist/web-components-library/p-24a2ecc0.entry.js} +1 -1
  181. package/dist/web-components-library/{p-7f866d57.entry.js → p-2c120632.entry.js} +1 -1
  182. package/dist/web-components-library/{p-68fab13e.entry.js → p-2cc0c93f.entry.js} +1 -1
  183. package/dist/web-components-library/p-3bbf16c8.entry.js +1 -0
  184. package/dist/web-components-library/{p-277f19e8.entry.js → p-3ea930a5.entry.js} +1 -1
  185. package/dist/web-components-library/{p-e8305a91.entry.js → p-40e6d79d.entry.js} +1 -1
  186. package/dist/web-components-library/{p-d1432a24.entry.js → p-45cbf885.entry.js} +1 -1
  187. package/{www/build/p-8fe1b60c.entry.js → dist/web-components-library/p-4b756d6a.entry.js} +1 -1
  188. package/dist/web-components-library/{p-1c66e50c.entry.js → p-4c7189d2.entry.js} +1 -1
  189. package/dist/web-components-library/{p-d950fcf8.entry.js → p-4e2763b2.entry.js} +1 -1
  190. package/dist/web-components-library/p-56640ea6.js +1 -0
  191. package/dist/web-components-library/{p-a5460f1e.entry.js → p-56fe8986.entry.js} +1 -1
  192. package/dist/web-components-library/{p-3504da90.entry.js → p-57aaa3d2.entry.js} +1 -1
  193. package/{www/build/p-99f59836.entry.js → dist/web-components-library/p-5fb435ca.entry.js} +1 -1
  194. package/dist/web-components-library/{p-42d64757.js → p-5ff60fcd.js} +1 -1
  195. package/dist/web-components-library/{p-8c298051.entry.js → p-61d066ee.entry.js} +1 -1
  196. package/dist/web-components-library/{p-d943ee16.entry.js → p-706eb92e.entry.js} +1 -1
  197. package/dist/web-components-library/{p-621a7fac.entry.js → p-732213f9.entry.js} +1 -1
  198. package/dist/web-components-library/{p-99f91860.entry.js → p-761eb0ec.entry.js} +1 -1
  199. package/dist/web-components-library/{p-ee432245.entry.js → p-77610e66.entry.js} +1 -1
  200. package/dist/web-components-library/{p-1a6b8d43.entry.js → p-779bc51a.entry.js} +1 -1
  201. package/dist/web-components-library/{p-a0fef4f3.entry.js → p-7bbf377b.entry.js} +1 -1
  202. package/dist/web-components-library/{p-7dcda694.entry.js → p-7d57c388.entry.js} +1 -1
  203. package/dist/web-components-library/{p-8497f556.entry.js → p-7e13c57d.entry.js} +1 -1
  204. package/dist/web-components-library/{p-95b95a4c.entry.js → p-82b2c47c.entry.js} +1 -1
  205. package/{www/build/p-823cbb37.entry.js → dist/web-components-library/p-8680baaf.entry.js} +1 -1
  206. package/dist/web-components-library/{p-a3820e7d.entry.js → p-8788a24f.entry.js} +1 -1
  207. package/dist/web-components-library/{p-d338e5a9.entry.js → p-8aa42057.entry.js} +1 -1
  208. package/dist/web-components-library/{p-6043d78f.entry.js → p-8b780334.entry.js} +1 -1
  209. package/dist/web-components-library/p-8b806916.entry.js +1 -0
  210. package/dist/web-components-library/{p-ee19d602.entry.js → p-915f59a5.entry.js} +1 -1
  211. package/dist/web-components-library/{p-d1a0cb4c.entry.js → p-979882a5.entry.js} +1 -1
  212. package/dist/web-components-library/{p-a73f0693.entry.js → p-9a764099.entry.js} +1 -1
  213. package/dist/web-components-library/p-a321fe03.js +1 -0
  214. package/dist/web-components-library/{p-836d2cb2.entry.js → p-a56f935f.entry.js} +1 -1
  215. package/dist/web-components-library/{p-f6bfde21.entry.js → p-a61ea96d.entry.js} +1 -1
  216. package/{www/build/p-8741a278.entry.js → dist/web-components-library/p-ad105cb1.entry.js} +1 -1
  217. package/dist/web-components-library/{p-b1e3a655.entry.js → p-af9c81d0.entry.js} +1 -1
  218. package/dist/web-components-library/{p-13a0a93a.entry.js → p-b33f83f6.entry.js} +1 -1
  219. package/dist/web-components-library/p-b4981c43.entry.js +1 -0
  220. package/dist/web-components-library/{p-2d45e45e.entry.js → p-b4bc83ea.entry.js} +1 -1
  221. package/dist/web-components-library/{p-39a787af.entry.js → p-b87c4984.entry.js} +1 -1
  222. package/dist/web-components-library/{p-97c04e0c.entry.js → p-bbc60b23.entry.js} +1 -1
  223. package/dist/web-components-library/{p-cddc1de0.entry.js → p-bd8a9e22.entry.js} +1 -1
  224. package/dist/web-components-library/p-c273c377.entry.js +1 -0
  225. package/{www/build/p-51957070.entry.js → dist/web-components-library/p-c932e698.entry.js} +1 -1
  226. package/dist/web-components-library/{p-016c1fd4.entry.js → p-cdf09ad7.entry.js} +1 -1
  227. package/dist/web-components-library/p-d0de0319.entry.js +1 -0
  228. package/dist/web-components-library/{p-335768cc.entry.js → p-d1d26026.entry.js} +1 -1
  229. package/dist/web-components-library/{p-f4062940.entry.js → p-d2848d7c.entry.js} +1 -1
  230. package/dist/web-components-library/{p-b0027b69.entry.js → p-dbbae18b.entry.js} +1 -1
  231. package/dist/web-components-library/p-df58b251.entry.js +1 -0
  232. package/dist/web-components-library/{p-e4739505.entry.js → p-e697181c.entry.js} +1 -1
  233. package/dist/web-components-library/{p-84f934a8.entry.js → p-e776d206.entry.js} +1 -1
  234. package/{www/build/p-70c7f657.entry.js → dist/web-components-library/p-f0913e02.entry.js} +1 -1
  235. package/dist/web-components-library/p-f52fb47b.entry.js +1 -0
  236. package/dist/web-components-library/{p-22e61c79.entry.js → p-f78ddbf1.entry.js} +1 -1
  237. package/dist/web-components-library/{p-152f95de.entry.js → p-f9a31c55.entry.js} +1 -1
  238. package/dist/web-components-library/p-f9e401fa.entry.js +1 -0
  239. package/dist/web-components-library/web-components-library.css +1 -1
  240. package/dist/web-components-library/web-components-library.esm.js +1 -1
  241. package/loader/index.d.ts +0 -1
  242. package/package.json +1 -1
  243. package/react/components.d.ts +1 -3
  244. package/react/components.js +3 -5
  245. package/react/components.js.map +1 -1
  246. package/react/react-component-lib/createComponent.d.ts +1 -1
  247. package/react/react-component-lib/createComponent.js +42 -10
  248. package/react/react-component-lib/createComponent.js.map +1 -1
  249. package/react/react-component-lib/createOverlayComponent.d.ts +5 -4
  250. package/react/react-component-lib/createOverlayComponent.js +28 -8
  251. package/react/react-component-lib/createOverlayComponent.js.map +1 -1
  252. package/react/react-component-lib/utils/attachProps.d.ts +1 -1
  253. package/react/react-component-lib/utils/attachProps.js +14 -12
  254. package/react/react-component-lib/utils/attachProps.js.map +1 -1
  255. package/react/react-component-lib/utils/index.d.ts +4 -1
  256. package/react/react-component-lib/utils/index.js +20 -5
  257. package/react/react-component-lib/utils/index.js.map +1 -1
  258. package/www/assets/favicon.png +0 -0
  259. package/www/build/index.esm.js +1 -1
  260. package/www/build/{p-d9a14771.entry.js → p-0084ea9f.entry.js} +1 -1
  261. package/www/build/{p-18d36e2e.entry.js → p-0293d6c6.entry.js} +1 -1
  262. package/www/build/{p-6a4dfee8.entry.js → p-02fa9e81.entry.js} +1 -1
  263. package/www/build/{p-daec8d7f.entry.js → p-032bfb5c.entry.js} +1 -1
  264. package/www/build/{p-c277d035.entry.js → p-04daa863.entry.js} +1 -1
  265. package/www/build/{p-006a91ce.entry.js → p-07938fc2.entry.js} +1 -1
  266. package/www/build/{p-db1508ed.entry.js → p-0948e843.entry.js} +1 -1
  267. package/www/build/{p-b1e6a2ae.entry.js → p-09ded8b4.entry.js} +1 -1
  268. package/www/build/{p-431d0295.entry.js → p-0b6bd214.entry.js} +1 -1
  269. package/www/build/{p-824875b4.entry.js → p-1584dfb4.entry.js} +1 -1
  270. package/www/build/{p-3830db49.entry.js → p-1bd60c44.entry.js} +1 -1
  271. package/www/build/p-1ef0dee5.js +129 -0
  272. package/www/build/{p-031de7f3.entry.js → p-23c46ff2.entry.js} +1 -1
  273. package/{dist/web-components-library/p-1c7ed895.entry.js → www/build/p-24a2ecc0.entry.js} +1 -1
  274. package/www/build/{p-7f866d57.entry.js → p-2c120632.entry.js} +1 -1
  275. package/www/build/{p-68fab13e.entry.js → p-2cc0c93f.entry.js} +1 -1
  276. package/www/build/p-3bbf16c8.entry.js +1 -0
  277. package/www/build/{p-277f19e8.entry.js → p-3ea930a5.entry.js} +1 -1
  278. package/www/build/{p-e8305a91.entry.js → p-40e6d79d.entry.js} +1 -1
  279. package/www/build/{p-d1432a24.entry.js → p-45cbf885.entry.js} +1 -1
  280. package/{dist/web-components-library/p-8fe1b60c.entry.js → www/build/p-4b756d6a.entry.js} +1 -1
  281. package/www/build/{p-1c66e50c.entry.js → p-4c7189d2.entry.js} +1 -1
  282. package/www/build/{p-d950fcf8.entry.js → p-4e2763b2.entry.js} +1 -1
  283. package/www/build/p-56640ea6.js +1 -0
  284. package/www/build/{p-a5460f1e.entry.js → p-56fe8986.entry.js} +1 -1
  285. package/www/build/{p-3504da90.entry.js → p-57aaa3d2.entry.js} +1 -1
  286. package/{dist/web-components-library/p-99f59836.entry.js → www/build/p-5fb435ca.entry.js} +1 -1
  287. package/www/build/{p-42d64757.js → p-5ff60fcd.js} +1 -1
  288. package/www/build/{p-8c298051.entry.js → p-61d066ee.entry.js} +1 -1
  289. package/www/build/{p-d943ee16.entry.js → p-706eb92e.entry.js} +1 -1
  290. package/www/build/{p-621a7fac.entry.js → p-732213f9.entry.js} +1 -1
  291. package/www/build/{p-99f91860.entry.js → p-761eb0ec.entry.js} +1 -1
  292. package/www/build/{p-ee432245.entry.js → p-77610e66.entry.js} +1 -1
  293. package/www/build/{p-1a6b8d43.entry.js → p-779bc51a.entry.js} +1 -1
  294. package/www/build/{p-a0fef4f3.entry.js → p-7bbf377b.entry.js} +1 -1
  295. package/www/build/{p-7dcda694.entry.js → p-7d57c388.entry.js} +1 -1
  296. package/www/build/{p-8497f556.entry.js → p-7e13c57d.entry.js} +1 -1
  297. package/www/build/{p-95b95a4c.entry.js → p-82b2c47c.entry.js} +1 -1
  298. package/{dist/web-components-library/p-823cbb37.entry.js → www/build/p-8680baaf.entry.js} +1 -1
  299. package/www/build/{p-a3820e7d.entry.js → p-8788a24f.entry.js} +1 -1
  300. package/www/build/{p-d338e5a9.entry.js → p-8aa42057.entry.js} +1 -1
  301. package/www/build/{p-6043d78f.entry.js → p-8b780334.entry.js} +1 -1
  302. package/www/build/p-8b806916.entry.js +1 -0
  303. package/www/build/{p-ee19d602.entry.js → p-915f59a5.entry.js} +1 -1
  304. package/www/build/{p-d1a0cb4c.entry.js → p-979882a5.entry.js} +1 -1
  305. package/www/build/{p-a73f0693.entry.js → p-9a764099.entry.js} +1 -1
  306. package/www/build/p-a321fe03.js +1 -0
  307. package/www/build/{p-836d2cb2.entry.js → p-a56f935f.entry.js} +1 -1
  308. package/www/build/{p-f6bfde21.entry.js → p-a61ea96d.entry.js} +1 -1
  309. package/{dist/web-components-library/p-8741a278.entry.js → www/build/p-ad105cb1.entry.js} +1 -1
  310. package/www/build/{p-b1e3a655.entry.js → p-af9c81d0.entry.js} +1 -1
  311. package/www/build/{p-13a0a93a.entry.js → p-b33f83f6.entry.js} +1 -1
  312. package/www/build/p-b4981c43.entry.js +1 -0
  313. package/www/build/{p-2d45e45e.entry.js → p-b4bc83ea.entry.js} +1 -1
  314. package/www/build/{p-39a787af.entry.js → p-b87c4984.entry.js} +1 -1
  315. package/www/build/{p-97c04e0c.entry.js → p-bbc60b23.entry.js} +1 -1
  316. package/www/build/{p-cddc1de0.entry.js → p-bd8a9e22.entry.js} +1 -1
  317. package/www/build/p-c273c377.entry.js +1 -0
  318. package/{dist/web-components-library/p-51957070.entry.js → www/build/p-c932e698.entry.js} +1 -1
  319. package/www/build/{p-016c1fd4.entry.js → p-cdf09ad7.entry.js} +1 -1
  320. package/www/build/p-d0de0319.entry.js +1 -0
  321. package/www/build/{p-335768cc.entry.js → p-d1d26026.entry.js} +1 -1
  322. package/www/build/{p-f4062940.entry.js → p-d2848d7c.entry.js} +1 -1
  323. package/www/build/{p-b0027b69.entry.js → p-dbbae18b.entry.js} +1 -1
  324. package/www/build/p-df58b251.entry.js +1 -0
  325. package/www/build/{p-e4739505.entry.js → p-e697181c.entry.js} +1 -1
  326. package/www/build/{p-84f934a8.entry.js → p-e776d206.entry.js} +1 -1
  327. package/{dist/web-components-library/p-70c7f657.entry.js → www/build/p-f0913e02.entry.js} +1 -1
  328. package/www/build/p-f52fb47b.entry.js +1 -0
  329. package/www/build/{p-22e61c79.entry.js → p-f78ddbf1.entry.js} +1 -1
  330. package/www/build/{p-152f95de.entry.js → p-f9a31c55.entry.js} +1 -1
  331. package/www/build/p-f9e401fa.entry.js +1 -0
  332. package/www/build/{p-97a11655.css → p-fcff1237.css} +24 -1
  333. package/www/build/web-components-library.css +1 -1
  334. package/www/build/web-components-library.esm.js +1 -1
  335. package/www/build/web-components-library.js +1 -1
  336. package/www/index.html +32 -8
  337. package/dist/cjs/z-app-switcher.cjs.entry.js +0 -29
  338. package/dist/cjs/z-app-topbar.cjs.entry.js +0 -41
  339. package/dist/cjs/z-button.cjs.entry.js +0 -39
  340. package/dist/cjs/z-card.cjs.entry.js +0 -69
  341. package/dist/cjs/z-carousel.cjs.entry.js +0 -19
  342. package/dist/cjs/z-divider.cjs.entry.js +0 -26
  343. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +0 -49
  344. package/dist/cjs/z-file-upload.cjs.entry.js +0 -169
  345. package/dist/cjs/z-file.cjs.entry.js +0 -53
  346. package/dist/cjs/z-icon.cjs.entry.js +0 -28
  347. package/dist/cjs/z-link.cjs.entry.js +0 -71
  348. package/dist/cjs/z-logo.cjs.entry.js +0 -28
  349. package/dist/collection/components/file-upload/z-dragdrop-area/index.js +0 -52
  350. package/dist/collection/components/file-upload/z-dragdrop-area/styles.css +0 -62
  351. package/dist/collection/components/file-upload/z-file/index.js +0 -108
  352. package/dist/collection/components/file-upload/z-file/styles.css +0 -61
  353. package/dist/collection/components/file-upload/z-file-upload/index.js +0 -329
  354. package/dist/collection/components/file-upload/z-file-upload/styles.css +0 -87
  355. package/dist/esm/z-app-switcher.entry.js +0 -25
  356. package/dist/esm/z-app-topbar.entry.js +0 -37
  357. package/dist/esm/z-button.entry.js +0 -35
  358. package/dist/esm/z-card.entry.js +0 -65
  359. package/dist/esm/z-carousel.entry.js +0 -15
  360. package/dist/esm/z-divider.entry.js +0 -22
  361. package/dist/esm/z-dragdrop-area_2.entry.js +0 -44
  362. package/dist/esm/z-file-upload.entry.js +0 -165
  363. package/dist/esm/z-file.entry.js +0 -49
  364. package/dist/esm/z-icon.entry.js +0 -24
  365. package/dist/esm/z-link.entry.js +0 -67
  366. package/dist/esm/z-logo.entry.js +0 -24
  367. package/dist/types/components/file-upload/z-dragdrop-area/index.d.ts +0 -9
  368. package/dist/types/components/file-upload/z-file/index.d.ts +0 -17
  369. package/dist/types/components/file-upload/z-file-upload/index.d.ts +0 -49
  370. package/dist/web-components-library/p-0e7fe7c1.js +0 -1
  371. package/dist/web-components-library/p-117c6e89.entry.js +0 -1
  372. package/dist/web-components-library/p-11d4e9b7.entry.js +0 -1
  373. package/dist/web-components-library/p-13abb76e.entry.js +0 -1
  374. package/dist/web-components-library/p-1acbd992.js +0 -1
  375. package/dist/web-components-library/p-1f439216.entry.js +0 -1
  376. package/dist/web-components-library/p-4ce434aa.entry.js +0 -1
  377. package/dist/web-components-library/p-5ff0b130.entry.js +0 -1
  378. package/dist/web-components-library/p-7076e9fd.entry.js +0 -1
  379. package/dist/web-components-library/p-73e8c323.entry.js +0 -1
  380. package/dist/web-components-library/p-8ed29309.entry.js +0 -1
  381. package/dist/web-components-library/p-9b4f979f.entry.js +0 -1
  382. package/dist/web-components-library/p-a3792cf0.entry.js +0 -1
  383. package/dist/web-components-library/p-a4b2df38.entry.js +0 -1
  384. package/dist/web-components-library/p-b10f1aaa.entry.js +0 -1
  385. package/dist/web-components-library/p-c1a7b740.entry.js +0 -1
  386. package/dist/web-components-library/p-db38494e.entry.js +0 -1
  387. package/dist/web-components-library/p-e5c89d9f.entry.js +0 -1
  388. package/dist/web-components-library/p-e88726bc.entry.js +0 -1
  389. package/dist/web-components-library/p-fc23b15f.entry.js +0 -1
  390. package/www/build/p-0e7fe7c1.js +0 -1
  391. package/www/build/p-117c6e89.entry.js +0 -1
  392. package/www/build/p-11d4e9b7.entry.js +0 -1
  393. package/www/build/p-13abb76e.entry.js +0 -1
  394. package/www/build/p-1acbd992.js +0 -1
  395. package/www/build/p-1f439216.entry.js +0 -1
  396. package/www/build/p-4ce434aa.entry.js +0 -1
  397. package/www/build/p-5ff0b130.entry.js +0 -1
  398. package/www/build/p-7076e9fd.entry.js +0 -1
  399. package/www/build/p-73e8c323.entry.js +0 -1
  400. package/www/build/p-7fab4941.js +0 -122
  401. package/www/build/p-8ed29309.entry.js +0 -1
  402. package/www/build/p-9b4f979f.entry.js +0 -1
  403. package/www/build/p-a3792cf0.entry.js +0 -1
  404. package/www/build/p-a4b2df38.entry.js +0 -1
  405. package/www/build/p-b10f1aaa.entry.js +0 -1
  406. package/www/build/p-c1a7b740.entry.js +0 -1
  407. package/www/build/p-db38494e.entry.js +0 -1
  408. package/www/build/p-e5c89d9f.entry.js +0 -1
  409. package/www/build/p-e88726bc.entry.js +0 -1
  410. package/www/build/p-fc23b15f.entry.js +0 -1
  411. package/www/pages/file-upload.html +0 -236
package/www/index.html CHANGED
@@ -1,11 +1,31 @@
1
- <!doctype html><html dir="ltr" lang="en"><head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0"> <title>Stencil Component Starter</title> <link rel="stylesheet" type="text/css" href="/build/p-97a11655.css"> <link rel="modulepreload" href="/build/p-7fab4941.js"><script type="module" src="/build/p-7fab4941.js" data-stencil data-resources-url="/build/" data-stencil-namespace="web-components-library"></script> <script nomodule="" src="/build/web-components-library.js" data-stencil></script> </head> <body style="width: 100%; margin: 0; background-color: #f9f9f9;"> <div style="width: 800px; border: 2px solid black; padding: 20px; margin: 50px;"> <z-carousel style="--z-carousel-gutter: 24px;"> <li> <div style="width: 200px; height: 200px; background-color: red;"></div> </li> <li> <div style="width: 200px; height: 200px; background-color: yellow;"></div> </li> <li> <div style="width: 200px; height: 200px; background-color: blue;"></div> </li> <li> <div style="width: 200px; height: 200px; background-color: green;"></div> </li> <li> <div style="width: 200px; height: 200px; background-color: purple;"></div> </li> <li> <div style="width: 200px; height: 200px; background-color: orange;"></div> </li> <li> <div style="width: 200px; height: 200px; background-color: grey;"></div> </li> <li> <div style="width: 200px; height: 200px; background-color: black;"></div> </li> <li> <div style="width: 200px; height: 200px; background-color: pink;"></div> </li></z-carousel> </div> <script>
2
-
3
- const mycard = document.getElementById("mycard");
4
- console.log(mycard)
5
- mycard.addEventListener("cardClicked", () =>
6
- console.log("mycard was clicked ")
7
- );
8
- </script> <style>.z-cards {
1
+ <!doctype html><html dir="ltr" lang="en"><head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0"> <title>Stencil Component Starter</title> <link rel="stylesheet" type="text/css" href="/build/p-fcff1237.css"> <link rel="modulepreload" href="/build/p-1ef0dee5.js"><script type="module" src="/build/p-1ef0dee5.js" data-stencil data-resources-url="/build/" data-stencil-namespace="web-components-library"></script> <script nomodule="" src="/build/web-components-library.js" data-stencil></script> </head> <body style="width: 100%; margin: 0; background-color: #f9f9f9;"> <header> <z-app-topbar show-app-switcher="true" topbar-content="[{&quot;label&quot;: &quot;Assistenza&quot;, &quot;link&quot;: &quot;./pages/notification.html&quot;, &quot;icon&quot;: &quot;support&quot;}, {&quot;label&quot;: &quot;Contattaci&quot;, &quot;link&quot;: &quot;./pages/notification.html&quot;, &quot;icon&quot;: &quot;question-mark-circle&quot;}, {&quot;label&quot;: &quot;Carrello&quot;, &quot;link&quot;: &quot;./pages/notification.html&quot;, &quot;icon&quot;: &quot;shopping-cart&quot;}]" content-max-width="800"> <z-app-switcher id="myappswitcher" slot="login"></z-app-switcher></z-app-topbar> </header> <div class="body" style="display: flex; height: calc(100vh - 48px);"> <z-offcanvas id="mycanvas" transitiondirection="right" variant="overlay"> <div slot="canvasContent"> <div> <z-button id="canvas-button">chiudi</z-button> </div> <span> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam non urna ac urna aliquet lacinia eu ac augue. Nullam consectetur rutrum ultrices. Cras eros ex, cursus nec nisi sed, porttitor fringilla metus. Etiam eleifend fringilla quam et tincidunt. Cras gravida, tortor at consectetur iaculis, lacus eros sagittis magna, ac iaculis orci augue in dolor. Nullam nibh orci, maximus vel tempor sit amet, scelerisque eget velit. Quisque dignissim non dolor iaculis scelerisque. Cras at lectus arcu. Morbi dignissim fermentum magna, sed interdum leo condimentum et. Sed vitae consectetur leo, vel placerat turpis. Donec sagittis rutrum felis, eu consequat tortor efficitur in. Vivamus non nunc vehicula, laoreet lorem id, molestie eros. Etiam ornare at turpis ut suscipit. Nulla non diam eget lorem hendrerit imperdiet. Integer maximus quam non ligula lacinia pharetra. Mauris ullamcorper ligula nec elit pellentesque, a pellentesque mauris tristique.
2
+ Maecenas tortor enim, rutrum ornare tincidunt sed, tempor vitae urna. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Fusce feugiat egestas mollis. In eleifend neque quis tellus bibendum sodales. Curabitur mattis, magna maximus volutpat dapibus, velit nibh dictum elit, eu sodales leo elit vel odio. Quisque sit amet lorem molestie sapien interdum faucibus. Nunc in ex nisi. In hac habitasse platea dictumst. Maecenas dictum, nunc at finibus dapibus, nunc ligula congue odio, in hendrerit dui mauris vel magna. Vivamus sapien dui, eleifend auctor ornare vitae, aliquet in mi. Ut eget risus ex. Vivamus pharetra tellus in volutpat faucibus. Suspendisse interdum sapien ut dui molestie ullamcorper. Ut iaculis, nunc tincidunt posuere convallis, metus lorem mattis mi, nec ullamcorper mi ligula sit amet leo.
3
+ Fusce at lectus risus. Aliquam tempor sollicitudin ullamcorper. Quisque eget dignissim purus. Nullam convallis purus a sem varius tincidunt ut in dui. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Curabitur fermentum rutrum nibh, nec vulputate nisi mollis in. Nullam venenatis metus nulla, at rhoncus neque gravida non. Nam vehicula mollis nunc nec faucibus. Phasellus eu turpis purus. Proin aliquam, ipsum non rutrum tincidunt, erat metus laoreet augue, facilisis ultricies magna tellus sed neque. Suspendisse quis tristique lorem. Pellentesque diam urna, congue et massa in, laoreet aliquet nibh.mybutton
4
+ Ut vitae ligula eu elit ornare gravida. Vivamus ultricies, augue in fermentum tempus, purus ligula aliquet sapien, viverra condimentum tortor ante et est. Vivamus ex urna, gravida a enim auctor, ultrices ornare turpis. Quisque at lacus massa. Nulla facilisi. Ut id quam at ante sagittis posuere vitae sit amet sem. Fusce suscipit ante pellentesque felis facilisis tincidunt. </span> </div> </z-offcanvas> <div class="content" style="height: 100%; overflow-y: scroll; flex: 1;"> <section> <h4>z-card default variant</h4> <div class="z-cards"> <z-card clickable=""> <img slot="cover" src="https://i.pinimg.com/originals/b9/fc/7e/b9fc7e6b2dd2ca128bcc3412e68994f0.jpg"> <h2 class="body-5" slot="metadata">metadata</h2> <h3 slot="title">Card title</h3> <p class="body-3" slot="text">Some description for the content of the card.</p> <z-icon name="share" slot="action"></z-icon> <z-icon name="delete" slot="action"></z-icon> </z-card> <z-card clickable="" cover-icon="play-filled"> <img slot="cover" src="https://i.pinimg.com/originals/b9/fc/7e/b9fc7e6b2dd2ca128bcc3412e68994f0.jpg"> <h2 class="body-5" slot="metadata">metadata</h2> <h3 slot="title">Card title</h3> <p class="body-3" slot="text">Some description for the content of the card.</p> <z-icon name="share" slot="action"></z-icon> <z-icon name="delete" slot="action"></z-icon> </z-card> <z-card clickable="" showshadow="" style="--z-card--color-cover-background: orange;"> <h2 class="body-5" slot="metadata">metadata</h2> <h3 slot="title">Card title</h3> <p class="body-3" slot="text">Some description for the content of the card.</p> <z-icon name="share" slot="action"></z-icon> <z-icon name="delete" slot="action"></z-icon> </z-card> </div> </section> <section> <h4>z-card border variant</h4> <div class="z-cards"> <z-card clickable="" variant="border"> <img slot="cover" src="https://i.pinimg.com/originals/b9/fc/7e/b9fc7e6b2dd2ca128bcc3412e68994f0.jpg"> <h2 class="body-5" slot="metadata">metadata</h2> <h3 slot="title">Card title</h3> <p class="body-3" slot="text">Some description for the content of the card.</p> <z-icon name="share" slot="action"></z-icon> <z-icon name="delete" slot="action"></z-icon> </z-card> <z-card clickable="" variant="border" cover-icon="play-filled" showshadow=""> <img slot="cover" src="https://i.pinimg.com/originals/b9/fc/7e/b9fc7e6b2dd2ca128bcc3412e68994f0.jpg"> <h2 class="body-5" slot="metadata">metadata</h2> <h3 slot="title">Card title</h3> <p class="body-3" slot="text">Some description for the content of the card.</p> <z-icon name="share" slot="action"></z-icon> <z-icon name="delete" slot="action"></z-icon> </z-card> <z-card clickable="" variant="border" style="--z-card--color-cover-background: orange;"> <h2 class="body-5" slot="metadata">metadata</h2> <h3 slot="title">Card title</h3> <p class="body-3" slot="text">Some description for the content of the card.</p> <z-icon name="share" slot="action" fill="color-text-inverse"></z-icon> <z-icon name="delete" slot="action"></z-icon> </z-card> </div> </section> <section> <h4>z-card shadow variant</h4> <div class="z-cards"> <z-card clickable="" variant="shadow"> <img slot="cover" src="https://i.pinimg.com/originals/b9/fc/7e/b9fc7e6b2dd2ca128bcc3412e68994f0.jpg"> <h2 class="body-5" slot="metadata">metadata</h2> <h3 slot="title">Card title</h3> <p class="body-3" slot="text">Some description for the content of the card.</p> <z-icon name="share" slot="action"></z-icon> <z-icon name="delete" slot="action"></z-icon> </z-card> <z-card clickable="" variant="shadow" cover-icon="play-filled"> <img slot="cover" src="https://i.pinimg.com/originals/b9/fc/7e/b9fc7e6b2dd2ca128bcc3412e68994f0.jpg"> <h2 class="body-5" slot="metadata">metadata</h2> <h3 slot="title">Card title</h3> <p class="body-3" slot="text">Some description for the content of the card.</p> <z-icon name="share" slot="action"></z-icon> <z-icon name="delete" slot="action"></z-icon> </z-card> <z-card clickable="" variant="shadow" style="--z-card--color-cover-background: orange;"> <h2 class="body-5" slot="metadata">metadata</h2> <h3 slot="title">Card title</h3> <p class="body-3" slot="text">Some description for the content of the card.</p> <z-icon name="share" slot="action"></z-icon> <z-icon name="delete" slot="action"></z-icon> </z-card> </div> </section> <section> <h4>z-card overlay variant</h4> <div class="z-cards"> <z-card clickable="" variant="overlay"> <img slot="cover" src="https://i.pinimg.com/originals/b9/fc/7e/b9fc7e6b2dd2ca128bcc3412e68994f0.jpg"> <h2 class="body-5" slot="metadata">metadata</h2> <h3 slot="title">Card title</h3> <p class="body-3" slot="text">Some description for the content of the card.</p> <z-icon name="share" slot="action"></z-icon> <z-icon name="delete" slot="action"></z-icon> </z-card> <z-card clickable="" variant="overlay" showshadow="" style="--z-card--color-cover-background: orange;"> <h2 class="body-5" slot="metadata">metadata</h2> <h3 slot="title">Card title</h3> <p class="body-3" slot="text">Some description for the content of the card.Some description for the content of
5
+ the card.Some description for the content of the card.Some description for the content of the card.Some
6
+ description for the content of the card.Some description for the content of the card.</p> <z-icon name="share" slot="action"></z-icon> <z-icon name="delete" slot="action"></z-icon> </z-card> </div> </section> <section> <h4>Text</h4> <div class="z-cards"> <z-card variant="text" showshadow="" style="--z-card--text-background: var(--color-secondary02); color: white;"> <h2 class="body-5" slot="metadata">metadata</h2> <h3 slot="title">Card title</h3> <p class="body-3" slot="text">Some description for the content of the card. </p> <z-icon name="share" slot="action" fill="color-surface01"></z-icon> <z-icon name="delete" slot="action" fill="color-surface01"></z-icon> </z-card> <z-card clickable="" id="mycard" variant="text" style="--z-card--text-background: var(--color-primary01); color: white; --z-card--text-border-radius: 4px;"> <h2 class="body-5" slot="metadata">metadata</h2> <h3 slot="title">Card title</h3> <p class="body-3" slot="text">Some description for the content of the card. </p> <z-icon name="share" slot="action" fill="color-surface01"></z-icon> <z-icon name="delete" slot="action" fill="color-surface01"></z-icon> </z-card> <z-card clickable="" variant="text" style="--z-card--text-border: 2px solid black; --z-card--text-border-radius: 4px;"> <h2 class="body-5" slot="metadata">metadata</h2> <h3 slot="title">Card title</h3> <p class="body-3" slot="text">Some description for the content of the card. </p> <z-icon name="share" slot="action" fill="color-primary01"></z-icon> <z-icon name="delete" slot="action" fill="color-primary01"></z-icon> </z-card> <z-card clickable="" variant="text" showshadow="" style="--z-card--text-border: 1px solid black;"> <h2 class="body-5" slot="metadata">metadata</h2> <h3 slot="title">Card title</h3> <p class="body-3" slot="text">Some description for the content of the card. </p> <z-icon name="share" slot="action" fill="color-primary01"></z-icon> <z-icon name="delete" slot="action" fill="color-primary01"></z-icon> </z-card> </div> <div class="z-cards"> <z-card clickable="" variant="text" style="--z-card--text-border: 1px solid var(--z-card--border-color); --z-card--text-border-radius: 4px;"> <h3 slot="title">Aula di lettere</h3> <p class="body-3" slot="text">Descrizione breve dell'applicazione </p> <z-icon name="chevron-right-filled" slot="action" fill="color-primary01"></z-icon> </z-card> </div> </section> </div> </div> <div style="width: 800px; border: 2px solid black; padding: 20px; margin: 50px;"> <z-carousel style="--z-carousel-gutter: 24px;"> <li> <div style="width: 200px; height: 200px; background-color: red;"></div> </li> <li> <div style="width: 200px; height: 200px; background-color: yellow;"></div> </li> <li> <div style="width: 200px; height: 200px; background-color: blue;"></div> </li> <li> <div style="width: 200px; height: 200px; background-color: green;"></div> </li> <li> <div style="width: 200px; height: 200px; background-color: purple;"></div> </li> <li> <div style="width: 200px; height: 200px; background-color: orange;"></div> </li> <li> <div style="width: 200px; height: 200px; background-color: grey;"></div> </li> <li> <div style="width: 200px; height: 200px; background-color: black;"></div> </li> <li> <div style="width: 200px; height: 200px; background-color: pink;"></div> </li></z-carousel> </div> <script>
7
+
8
+ const mycard = document.getElementById("mycard");
9
+ console.log(mycard)
10
+ mycard.addEventListener("cardClicked", () =>
11
+ console.log("mycard was clicked ")
12
+ );
13
+
14
+ const canvasbutton = document.getElementById("canvas-button");
15
+ canvasbutton.addEventListener("click", () => {
16
+ console.log("canvasbutton button clicked ")
17
+ const canvas = document.getElementById("mycanvas")
18
+ canvas.removeAttribute("open")
19
+ });
20
+
21
+ window.addEventListener("appButtonClick", () => {
22
+ console.log("appswitcher button clicked ")
23
+ const canvas = document.getElementById("mycanvas")
24
+ canvas.setAttribute("open", "")
25
+ });
26
+
27
+
28
+ </script> <style>.z-cards {
9
29
  display: flex;
10
30
  padding: 24px;
11
31
  }
@@ -16,4 +36,8 @@
16
36
 
17
37
  .z-cards z-card+z-card {
18
38
  margin-left: 24px;
39
+ }
40
+
41
+ #mycanvas {
42
+ --z-offcanvas--top-space: 48px;
19
43
  }</style></body></html>
@@ -1,29 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-e826b4ad.js');
6
- const index$1 = require('./index-25206491.js');
7
-
8
- const stylesCss = ":host{font-family:var(--dashboard-font);font-weight:var(--font-rg)}button{display:flex;justify-content:center;align-content:center;background-color:transparent;border:none;padding:0}button>z-icon{color:var(--bg-white);fill:currentColor}button>z-icon.light{color:var(--bg-grey-900);fill:currentColor}";
9
-
10
- const ZAppSwitcher = class {
11
- constructor(hostRef) {
12
- index.registerInstance(this, hostRef);
13
- this.appButtonClick = index.createEvent(this, "appButtonClick", 7);
14
- /** theme variant, default 'dark' */
15
- this.theme = index$1.ThemeVariant.dark;
16
- this.isopen = false;
17
- this.emitAppButtonClick = this.emitAppButtonClick.bind(this);
18
- }
19
- emitAppButtonClick() {
20
- this.isopen = !this.isopen;
21
- this.appButtonClick.emit({ isopen: this.isopen });
22
- }
23
- render() {
24
- return (index.h("button", { title: "app-switcher", onClick: () => this.emitAppButtonClick() }, index.h("z-icon", { name: "app-switcher", class: this.theme })));
25
- }
26
- };
27
- ZAppSwitcher.style = stylesCss;
28
-
29
- exports.z_app_switcher = ZAppSwitcher;
@@ -1,41 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-e826b4ad.js');
6
- const index$1 = require('./index-25206491.js');
7
- const breakpoints = require('./breakpoints-88c4fd6c.js');
8
-
9
- const stylesCss = ":host{display:block;position:sticky;box-sizing:border-box;top:0;height:calc(var(--space-unit) * 6);padding:calc(var(--space-unit) / 2) calc(var(--space-unit) * 2);border-radius:var(--border-no-radius);background-color:var(--gray900);z-index:99}:host(.light){background-color:var(--color-white)}:host>div{display:flex;justify-content:space-between;align-items:center}:host(.limited-width) #content-container{margin:auto;max-width:var(--mw)}.content-panel{display:flex;align-items:center}.content-panel>:not(:last-child){margin-right:calc(var(--space-unit) * 2)}#divider-container{display:none}z-link{font-family:var(--font-family-sans);font-weight:var(--font-sb);font-size:14px;line-height:20px;letter-spacing:0.3px}@media only screen and (min-width: 768px){:host{padding:var(--space-unit) calc(var(--space-unit) * 2) var(--space-unit) var(--space-unit)}:host(.limited-width){padding:var(--space-unit)}#divider-container{display:block;height:calc(var(--space-unit) * 3)}}";
10
-
11
- const ZAppTopbar = class {
12
- constructor(hostRef) {
13
- index.registerInstance(this, hostRef);
14
- /** theme variant, default 'dark' */
15
- this.theme = index$1.ThemeVariant.dark;
16
- this.topbarLinks = [];
17
- }
18
- handleResize() {
19
- this.isMobile = window.innerWidth <= breakpoints.mobileBreakpoint;
20
- }
21
- componentWillLoad() {
22
- this.isMobile = window.screen.width <= breakpoints.mobileBreakpoint || window.innerWidth <= breakpoints.mobileBreakpoint;
23
- }
24
- componentWillRender() {
25
- if (this.topbarContent) {
26
- this.topbarLinks = typeof this.topbarContent === "string" ? JSON.parse(this.topbarContent) : this.topbarContent;
27
- }
28
- }
29
- renderTopbarLinks() {
30
- return this.topbarLinks.map((link) => index.h("z-link", { htmlid: link.id, textcolor: this.theme === index$1.ThemeVariant.light ? "black" : "white", href: link.link, target: link.target, icon: this.isMobile ? link.icon : undefined }, !this.isMobile && link.label));
31
- }
32
- render() {
33
- return (index.h(index.Host, { class: {
34
- [this.theme]: true,
35
- "limited-width": !!this.contentMaxWidth
36
- } }, index.h("div", { id: "content-container", style: this.contentMaxWidth ? { "--mw": `${this.contentMaxWidth}px` } : {} }, index.h("div", { id: "left-panel", class: "content-panel" }, index.h("z-logo", { mobileLogo: this.isMobile, width: this.isMobile ? 32 : 128, height: this.isMobile ? 40 : 32, imageAlt: "zanichelli-logo", link: this.logoLink, targetBlank: true }), this.isMobile && this.renderTopbarLinks()), index.h("div", { id: "right-panel", class: "content-panel" }, !this.isMobile && this.renderTopbarLinks(), this.showAppSwitcher && index.h("z-app-switcher", { theme: this.theme }), index.h("div", { id: "divider-container" }, index.h("z-divider", { orientation: index$1.DividerOrientation.vertical, color: this.theme === index$1.ThemeVariant.light ? "gray800" : "color-white" })), index.h("slot", { name: "login" })))));
37
- }
38
- };
39
- ZAppTopbar.style = stylesCss;
40
-
41
- exports.z_app_topbar = ZAppTopbar;
@@ -1,39 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-e826b4ad.js');
6
- const index$2 = require('./index-9651dba8.js');
7
- const index$1 = require('./index-25206491.js');
8
- require('./_commonjsHelpers-119ffc74.js');
9
-
10
- const stylesCss = ":host{display:inline-block;--z-icon-width:16px;--z-icon-height:16px;--z-icon-right-margin:var(--space-unit);--rgb-white:240, 240, 240}button:disabled,::slotted(button:disabled){pointer-events:none}button,::slotted(button),::slotted(a){box-sizing:border-box;display:inline-flex;flex-direction:row;align-items:center;justify-content:center;width:100%;font-family:var(--dashboard-font);font-weight:var(--font-sb);font-size:14px;line-height:1;letter-spacing:0.3px;border-width:var(--border-size-medium);border-style:solid;border-radius:var(--border-radius);vertical-align:middle;text-transform:uppercase;text-decoration:none;cursor:pointer;white-space:nowrap;outline:none;fill:currentColor}button.big,:host([size=\"big\"]) ::slotted(button),:host([size=\"big\"]) ::slotted(a){height:44px;min-width:44px}button.small,:host([size=\"small\"]) ::slotted(button),:host([size=\"small\"]) ::slotted(a){height:36px;min-width:36px}button.issmall,:host([issmall]) ::slotted(button),:host([issmall]) ::slotted(a){height:36px;min-width:36px}button.x-small,:host([size=\"x-small\"]) ::slotted(button),:host([size=\"x-small\"]) ::slotted(a){height:32px;min-width:32px}button:not(.square),:host(:not([square])) ::slotted(button),:host(:not([square])) ::slotted(a){min-width:calc(var(--space-unit) * 8);padding:0 calc(var(--space-unit) * 2)}button.square,:host([square]){--z-icon-right-margin:0}button.primary,:host([variant=\"primary\"]) ::slotted(button),:host([variant=\"primary\"]) ::slotted(a){background-color:var(--color-primary01);border-color:var(--color-primary01);color:var(--color-text-inverse)}@media (hover: hover){button.primary:hover,:host([variant=\"primary\"]) ::slotted(button:hover),:host([variant=\"primary\"]) ::slotted(a:hover){background-color:var(--color-hover-primary);border-color:var(--color-hover-primary);color:var(--color-text-inverse)}}button:focus:focus-visible,::slotted(button:focus:focus-visible),::slotted(a:focus:focus-visible){box-shadow:var(--shadow-focus-primary)}button.primary:active,:host([variant=\"primary\"]) ::slotted(button:active),:host([variant=\"primary\"]) ::slotted(a:active){background-color:var(--color-pressed-primary);border-color:var(--color-pressed-primary);color:var(--color-text-inverse);box-shadow:var(--shadow-2)}button.primary:disabled,:host([variant=\"primary\"]) ::slotted(button:disabled){background-color:var(--color-disabled01);border-color:var(--color-disabled01);color:var(--color-disabled02)}button.secondary,:host([variant=\"secondary\"]) ::slotted(button),:host([variant=\"secondary\"]) ::slotted(a){background-color:var(--color-surface01);border-color:var(--color-primary01);color:var(--color-primary01)}@media (hover: hover){button.secondary:hover,:host([variant=\"secondary\"]) ::slotted(button:hover),:host([variant=\"secondary\"]) ::slotted(a:hover){background-color:var(--color-surface01);border-color:var(--color-hover-primary);color:var(--color-hover-primary)}}button.secondary:active,:host([variant=\"secondary\"]) ::slotted(button:active),:host([variant=\"secondary\"]) ::slotted(a:active){background-color:var(--color-surface01);border-color:var(--color-pressed-primary);color:var(--color-pressed-primary);box-shadow:var(--shadow-2)}button.secondary:disabled,:host([variant=\"secondary\"]) ::slotted(button:disabled){background-color:var(--color-surface01);border-color:var(--color-disabled01);color:var(--color-disabled02)}button.tertiary,:host([variant=\"tertiary\"]) ::slotted(button),:host([variant=\"tertiary\"]) ::slotted(a){background-color:transparent;border-color:transparent;color:var(--color-primary01)}button.tertiary.hasContent{padding:0 var(--space-unit)}@media (hover: hover){button.tertiary:hover,:host([variant=\"tertiary\"]) ::slotted(button:hover),:host([variant=\"tertiary\"]) ::slotted(a:hover){background-color:var(--color-primary03);border-color:var(--color-primary03);color:var(--color-hover-primary)}}button.tertiary:focus:focus-visible,:host([variant=\"tertiary\"]) ::slotted(button:focus:focus-visible),:host([variant=\"tertiary\"]) ::slotted(a:focus:focus-visible){background-color:var(--color-surface01);border-color:var(--color-surface01);color:var(--color-primary01)}button.tertiary:active,:host([variant=\"tertiary\"]) ::slotted(button:active),:host([variant=\"tertiary\"]) ::slotted(a:active){background-color:var(--color-surface01);border-color:var(--color-surface01);color:var(--color-primary01);box-shadow:var(--shadow-2)}button.tertiary:disabled,:host([variant=\"tertiary\"]) ::slotted(button:disabled){background-color:transparent;border-color:transparent;color:var(--color-disabled02)}button.dark-bg,:host([variant=\"dark-bg\"]) ::slotted(button),:host([variant=\"dark-bg\"]) ::slotted(a){background-color:rgba(var(--rgb-white), 0.2);border-color:transparent;color:var(--color-text04)}button.dark-bg.hasContent{padding:0 var(--space-unit)}@media (hover: hover){button.dark-bg:hover,:host([variant=\"dark-bg\"]) ::slotted(button:hover),:host([variant=\"dark-bg\"]) ::slotted(a:hover){background-color:rgba(var(--rgb-white), 0.1)}}button.dark-bg:active,:host([variant=\"dark-bg\"]) ::slotted(button:active),:host([variant=\"dark-bg\"]) ::slotted(a:active){background-color:rgba(var(--rgb-white), 0.3)}button.dark-bg:disabled,:host([variant=\"dark-bg\"]) ::slotted(button:disabled){color:var(--color-disabled03);background-color:rgba(var(--rgb-white), 0.05)}";
11
-
12
- const ZButton = class {
13
- constructor(hostRef) {
14
- index.registerInstance(this, hostRef);
15
- /** HTML button disabled attribute. */
16
- this.disabled = false;
17
- /** HTML button type attribute. */
18
- this.type = index$1.ButtonTypeEnum.button;
19
- /** Graphical variant: `primary`, `secondary`, `tertiary`, `dark-bg`. Defaults to `primary`. */
20
- this.variant = index$1.ButtonVariantEnum.primary;
21
- /** Available sizes: `big`, `small` and `x-small`. Defaults to `big`. */
22
- this.size = index$1.ButtonSizeEnum.big;
23
- /** Reduce button size (deprecated).
24
- *
25
- * @deprecated Use `size` prop.
26
- * */
27
- this.issmall = false;
28
- /** Spy to render square button. */
29
- this.square = false;
30
- }
31
- render() {
32
- this.hostElement.style.pointerEvents = this.disabled ? "none" : "auto";
33
- return (index.h("slot", { name: "element" }, index.h("button", { id: this.htmlid, name: this.name, type: this.type, disabled: this.disabled, class: index$2.classnames(this.variant, this.size, { issmall: this.issmall }, { square: this.square }) }, this.icon && index.h("z-icon", { name: this.icon, width: 16, height: 16 }), index.h("slot", null))));
34
- }
35
- get hostElement() { return index.getElement(this); }
36
- };
37
- ZButton.style = stylesCss;
38
-
39
- exports.z_button = ZButton;
@@ -1,69 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-e826b4ad.js');
6
- const index$1 = require('./index-25206491.js');
7
-
8
- const stylesCss = ":host{--aspect-ratio:1.62;--z-card--border-color:var(--gray200);--z-card--color-cover-background:var(--color-surface01);--z-card--text-background:var(--color-surface01);--z-card--text-border-radius:none;--z-card--text-border:none;position:relative;display:flex;flex-direction:column;font-family:var(--font-family-sans);font-weight:var(--font-rg)}*,::slotted(*){box-sizing:border-box}:host(:not([variant='overlay'])) .cover-container{position:relative;width:100%}.cover-container{padding-bottom:calc(100% / var(--aspect-ratio))}::slotted([slot='cover']),.color-cover{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:center}.cover-container>z-icon{--z-icon-width:calc(var(--space-unit) * 11);--z-icon-height:var(--z-icon-width);position:absolute;top:calc(50% - calc(var(--z-icon-height) / 2));left:calc(50% - calc(var(--z-icon-width) / 2));fill:var(--color-primary01)}.color-cover{background-color:var(--z-card--color-cover-background)}.content{display:flex;flex-direction:column;padding-top:var(--space-unit)}.color-cover .cover-content{display:flex;flex-direction:column;justify-content:flex-end;height:100%;padding:var(--space-unit)}::slotted([slot='metadata']),::slotted([slot='title']),::slotted([slot='text']){display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}::slotted([slot='title']:not(:last-child)),::slotted([slot='text']:not(:last-child)){margin-bottom:var(--space-unit)}::slotted([slot='text']),::slotted([slot='actions']){margin:0}::slotted([slot='metadata']:not(:last-child)){margin:0 0 calc(var(--space-unit) * 0.25);-webkit-line-clamp:1;text-transform:uppercase}::slotted([slot='title']){margin:0;font-weight:var(--font-sb);-webkit-line-clamp:2}::slotted([slot='text']){-webkit-line-clamp:3}.actions{display:flex;flex-direction:row;align-items:center}::slotted([slot='action']:not(:last-child)){margin-right:calc(var(--space-unit) * 1.5)}:host([clickable]){cursor:pointer}:host([clickable]:focus:focus-visible){outline:none}:host(:not([variant])[clickable]:focus:focus-visible){padding:calc(var(--space-unit) * 0.5);box-shadow:var(--shadow-focus-primary)}:host([variant='text']){background-color:var(--z-card--text-background);border:var(--z-card--text-border);border-radius:var(--z-card--text-border-radius)}:host([showshadow])>.content,:host([variant='border'])>.content,:host([variant='shadow'])>.content{height:100%;padding:var(--space-unit) var(--space-unit) calc(var(--space-unit) * 2)}:host([variant='text'])>.content{padding:calc(var(--space-unit) * 2) var(--space-unit)}:host([variant='border']) .actions,:host([variant='shadow']) .actions{margin-top:auto}:host([variant='border']){border:var(--border-size-small) solid var(--z-card--border-color)}:host([variant='border'][clickable]:hover)>.content{background:var(--color-background)}:host([variant='border'][clickable]:focus:focus-visible){box-shadow:var(--shadow-focus-primary)}:host([variant='border'][clickable]:active){border-color:transparent}:host([variant='shadow']),:host([showshadow]){box-shadow:var(--shadow-2)}:host([variant='shadow'][clickable]:hover),:host([clickable][showshadow]:hover){box-shadow:var(--shadow-4)}:host([variant='shadow'][clickable]:focus:focus-visible),:host([clickable][showshadow]:focus:focus-visible){box-shadow:var(--shadow-4)}:host([variant='shadow'][clickable]:active),:host([clickable][showshadow]:active){box-shadow:none}:host([variant='overlay']) .content{position:absolute;top:0;right:0;bottom:0;left:0;justify-content:flex-end;padding:var(--space-unit);background-image:linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));color:var(--color-text-inverse);fill:var(--color-text-inverse)}";
9
-
10
- const ZCard = class {
11
- constructor(hostRef) {
12
- index.registerInstance(this, hostRef);
13
- this.cardClicked = index.createEvent(this, "cardClicked", 7);
14
- /** Enable click interactions on the card. Default: false */
15
- this.clickable = false;
16
- /** Enable shadow. Default: false. */
17
- this.showshadow = false;
18
- }
19
- onClick(ev) {
20
- // Do nothing for clicks on actions.
21
- if (ev.target.getAttribute('slot') === 'action') {
22
- return;
23
- }
24
- if (!this.clickable) {
25
- ev.preventDefault();
26
- ev.stopPropagation();
27
- return;
28
- }
29
- this.cardClicked.emit();
30
- }
31
- componentWillLoad() {
32
- this.hasCoverImage = !!this.host.querySelector('[slot="cover"]');
33
- }
34
- /**
35
- * Template for a card without image cover.
36
- * A colored background replaces the image and some data is moved over it.
37
- */
38
- renderColorCoverCard() {
39
- return [
40
- index.h("div", { class: "cover-container" }, index.h("div", { class: "color-cover" }, index.h("div", { class: "cover-content" }, index.h("slot", { name: "metadata" }), index.h("slot", { name: "title" })))),
41
- index.h("div", { class: "content" }, index.h("slot", { name: "text" }), index.h("div", { class: "actions" }, index.h("slot", { name: "action" })))
42
- ];
43
- }
44
- /**
45
- * Template for the content div.
46
- */
47
- renderContentDiv() {
48
- return (index.h("div", { class: "content" }, index.h("slot", { name: "metadata" }), index.h("slot", { name: "title" }), index.h("slot", { name: "text" }), index.h("div", { class: "actions" }, index.h("slot", { name: "action" }))));
49
- }
50
- render() {
51
- if (this.variant === index$1.CardVariants.text) {
52
- return this.renderContentDiv();
53
- }
54
- if (this.variant === index$1.CardVariants.overlay || this.hasCoverImage) {
55
- return [
56
- index.h("div", { class: "cover-container" }, this.hasCoverImage && [
57
- index.h("slot", { name: "cover" }),
58
- (this.variant !== index$1.CardVariants.overlay) && this.coverIcon && index.h("z-icon", { name: this.coverIcon })
59
- ], !this.hasCoverImage && index.h("div", { class: "color-cover" })),
60
- this.renderContentDiv()
61
- ];
62
- }
63
- return this.renderColorCoverCard();
64
- }
65
- get host() { return index.getElement(this); }
66
- };
67
- ZCard.style = stylesCss;
68
-
69
- exports.z_card = ZCard;
@@ -1,19 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-e826b4ad.js');
6
-
7
- const stylesCss = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg);--z-carousel-gutter:0}.z-carousel-items-container{display:flex;overflow-x:scroll;padding-inline-start:0;margin:0;list-style:none;-ms-overflow-style:none;scrollbar-width:none;}.z-carousel-items-container::-webkit-scrollbar{display:none}.z-carousel-items-container>*:not(:last-child){margin-right:var(--z-carousel-gutter)}";
8
-
9
- const ZCarousel = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- }
13
- render() {
14
- return (index.h("ul", { class: "z-carousel-items-container" }, index.h("slot", null)));
15
- }
16
- };
17
- ZCarousel.style = stylesCss;
18
-
19
- exports.z_carousel = ZCarousel;
@@ -1,26 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-e826b4ad.js');
6
- const index$1 = require('./index-25206491.js');
7
-
8
- const stylesCss = ".sc-z-divider-h{display:block;padding:0;margin:0}.divider-horizontal.sc-z-divider-h{width:100%}.divider-vertical.sc-z-divider-h{height:100%}.divider-small.divider-horizontal.sc-z-divider-h{height:var(--border-size-small)}.divider-medium.divider-horizontal.sc-z-divider-h{height:var(--border-size-medium)}.divider-large.divider-horizontal.sc-z-divider-h{height:var(--border-size-large)}.divider-small.divider-vertical.sc-z-divider-h{width:var(--border-size-small)}.divider-medium.divider-vertical.sc-z-divider-h{width:var(--border-size-medium)}.divider-large.divider-vertical.sc-z-divider-h{width:var(--border-size-large)}";
9
-
10
- const ZDivider = class {
11
- constructor(hostRef) {
12
- index.registerInstance(this, hostRef);
13
- /** [optional] Divider size */
14
- this.size = index$1.DividerSize.small;
15
- /** [optional] Divider color */
16
- this.color = "gray200";
17
- /** [optional] Divider orintation */
18
- this.orientation = index$1.DividerOrientation.horizontal;
19
- }
20
- render() {
21
- return (index.h(index.Host, { class: `divider-${this.size} divider-${this.orientation}`, style: { backgroundColor: `var(--${this.color})` } }));
22
- }
23
- };
24
- ZDivider.style = stylesCss;
25
-
26
- exports.z_divider = ZDivider;
@@ -1,49 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-e826b4ad.js');
6
-
7
- const stylesCss = ".sc-z-dragdrop-area-h{font-family:var(--font-family-sans);font-weight:var(--font-rg);margin-top:calc(var(--space-unit) * 3)}.sc-z-dragdrop-area-h>.dragdrop.sc-z-dragdrop-area{display:flex;color:var(--color-text01);flex-direction:column;position:relative;background-image:url(\"data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='2' ry='2' stroke='%23CACCCEFF' stroke-width='2' stroke-dasharray='15%2c 10%2c 14%2c 11' stroke-dashoffset='3' stroke-linecap='square'/%3e%3c/svg%3e\");border-radius:2px;border-color:var(--color-surface04);height:228px;background-color:var(--color-surface02)}.sc-z-dragdrop-area-h>.dragdrop.dragover.sc-z-dragdrop-area *.sc-z-dragdrop-area{pointer-events:none}.sc-z-dragdrop-area-h>.dragdrop.sc-z-dragdrop-area .dragover-container.sc-z-dragdrop-area{position:absolute;top:0;left:0;width:100%;height:100%;z-index:10;display:none;background-color:var(--color-primary03);box-shadow:var(--shadow-focus-primary)}.sc-z-dragdrop-area-h>.dragdrop.sc-z-dragdrop-area .dragover-container.sc-z-dragdrop-area .dragover-message.sc-z-dragdrop-area{background-color:var(--color-link-primary);color:var(--color-text04);padding:10px 28px}.sc-z-dragdrop-area-h>.dragdrop.dragover.sc-z-dragdrop-area .dragover-container.sc-z-dragdrop-area{display:flex;justify-content:center;align-items:center}";
8
-
9
- const ZDragdropArea = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- this.fileDropped = index.createEvent(this, "fileDropped", 7);
13
- }
14
- fileDroppedHandler(files) {
15
- this.fileDropped.emit(files);
16
- }
17
- renderOnDragOverMessage() {
18
- return (index.h("div", { class: "dragover-container" }, index.h("div", { class: "dragover-message" }, index.h("z-body", { variant: "semibold", level: 2 }, "Rilascia i file in questa area per allegarli."))));
19
- }
20
- render() {
21
- return (index.h("div", { tabIndex: 0, ref: (val) => (this.dragDropContainer = val), class: "dragdrop", onDragOver: (e) => {
22
- console.log(e);
23
- e.preventDefault();
24
- this.dragDropContainer.classList.add("dragover");
25
- }, onDragLeave: () => {
26
- this.dragDropContainer.classList.remove("dragover");
27
- }, onDragEnd: () => { }, onDrop: (e) => {
28
- e.preventDefault();
29
- if (e.dataTransfer.files.length) {
30
- this.dragDropContainer.classList.remove("dragover");
31
- this.fileDroppedHandler(e.dataTransfer.files);
32
- }
33
- } }, this.renderOnDragOverMessage(), index.h("slot", null)));
34
- }
35
- };
36
- ZDragdropArea.style = stylesCss;
37
-
38
- const ZHeading = class {
39
- constructor(hostRef) {
40
- index.registerInstance(this, hostRef);
41
- this.variant = "regular";
42
- }
43
- render() {
44
- return (index.h("z-typography", { tabIndex: 0, component: this.component || `h${this.level}`, level: `h${this.level}`, variant: this.variant }, index.h("slot", null)));
45
- }
46
- };
47
-
48
- exports.z_dragdrop_area = ZDragdropArea;
49
- exports.z_heading = ZHeading;
@@ -1,169 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-e826b4ad.js');
6
- const index$1 = require('./index-25206491.js');
7
- const utils = require('./utils-6410fc7d.js');
8
- require('./breakpoints-88c4fd6c.js');
9
-
10
- const stylesCss = ".sc-z-file-upload-h{font-family:var(--font-family-sans);font-weight:var(--font-rg);color:var(--color-text01)}.sc-z-file-upload-h>.container.sc-z-file-upload{display:flex;flex-direction:column}.sc-z-file-upload-h .modalWrapper.sc-z-file-upload{display:flex;justify-content:center;align-items:center}.sc-z-file-upload-h .modalWrapper.sc-z-file-upload>.files.sc-z-file-upload{margin:calc(var(--space-unit) * 4);display:flex;flex-direction:column;gap:var(--space-unit)}.sc-z-file-upload-h .text-container.sc-z-file-upload{display:flex;flex-direction:column;margin:auto}.sc-z-file-upload-h .text-container.sc-z-file-upload z-body.sc-z-file-upload{text-align:center}.sc-z-file-upload-h .text-container.sc-z-file-upload .upload-link.sc-z-file-upload{color:var(--color-link-primary);cursor:pointer}.sc-z-file-upload-h .text-container.sc-z-file-upload .upload-link-text.sc-z-file-upload{margin-bottom:var(--space-unit)}input#fileElem.sc-z-file-upload{display:none}#title.sc-z-file-upload{display:inline-block;margin-bottom:var(--space-unit)}.sc-z-file-upload-h>.container.sc-z-file-upload>z-button.sc-z-file-upload{display:inline-block;margin-top:calc(var(--space-unit) * 3)}.sc-z-file-upload-h>.container.sc-z-file-upload>.files-container.sc-z-file-upload>z-heading.sc-z-file-upload{display:inline-block;margin:calc(var(--space-unit) * 3) 0}.sc-z-file-upload-h>.container.sc-z-file-upload>.files-container.sc-z-file-upload>.files.sc-z-file-upload{display:flex;flex-wrap:wrap;row-gap:calc(var(--space-unit) * 2);column-gap:calc(var(--space-unit) * 2)}.sc-z-file-upload-h>.container.sc-z-file-upload>.files-container.sc-z-file-upload>z-divider.sc-z-file-upload{margin-top:calc(var(--space-unit) * 3);margin-bottom:0}@media only screen and (min-width: 768px){.sc-z-file-upload-h>.container.sc-z-file-upload>z-button.sc-z-file-upload{align-self:flex-start}}";
11
-
12
- const ZFileUpload = class {
13
- constructor(hostRef) {
14
- index.registerInstance(this, hostRef);
15
- this.fileInput = index.createEvent(this, "fileInput", 7);
16
- /** Prop indicating the file upload type - can be default or dragdrop */
17
- this.type = index$1.ZFileUploadTypeEnum.default;
18
- /** Number of files added by the user */
19
- this.filesNumber = 0;
20
- this.inputAttributes = {
21
- type: "file",
22
- id: "fileElem",
23
- multiple: true,
24
- };
25
- }
26
- /** Listen removeFile event sent from z-file component */
27
- removeFileListener() {
28
- this.filesNumber--;
29
- }
30
- /** Listen fileDropped event sent from z-dragdrop-area component */
31
- fileDroppedListener(e) {
32
- this.input.files = e.detail;
33
- this.fileInputHandler();
34
- }
35
- componentDidUpdate() {
36
- this.handleAccessibility();
37
- this.invalidFiles.size && this.errorModal.focus();
38
- }
39
- componentWillLoad() {
40
- this.invalidFiles = new Map();
41
- if (this.type === index$1.ZFileUploadTypeEnum.dragdrop &&
42
- utils.getDevice() !== index$1.DeviceEnum.desktop)
43
- this.type = index$1.ZFileUploadTypeEnum.default;
44
- }
45
- fileInputHandler() {
46
- if (this.input.files.length) {
47
- this.invalidFiles = this.checkFiles(Array.from(this.input.files));
48
- }
49
- }
50
- handleAccessibility() {
51
- if (this.filesNumber > 0) {
52
- this.el.querySelector('z-file:last-child > z-chip').shadowRoot.querySelector('button').focus();
53
- }
54
- else {
55
- this.type === index$1.ZFileUploadTypeEnum.default ? this.button.shadowRoot.querySelector('button').focus() : this.uploadLink.focus();
56
- }
57
- }
58
- checkFiles(files) {
59
- let errors = new Map();
60
- const sizeErrorString = `supera i ${this.fileMaxSize}MB`;
61
- const formatErrorString = " ha un'estensione non prevista";
62
- files.forEach((file) => {
63
- const fileSize = file.size / 1024 / 1024;
64
- const fileFormatOk = this.acceptedFormat
65
- .split(",")
66
- .some((ext) => file.name.toLowerCase().endsWith(ext.trim()));
67
- const fileSizeOk = fileSize <= this.fileMaxSize;
68
- if (fileSizeOk && fileFormatOk) {
69
- this.fileInput.emit(file);
70
- this.filesNumber++;
71
- this.input.value = "";
72
- return;
73
- }
74
- errors.set(file.name, []);
75
- if (!fileSizeOk) {
76
- errors.get(file.name).push(sizeErrorString);
77
- }
78
- if (!fileFormatOk) {
79
- errors.get(file.name).push(formatErrorString);
80
- }
81
- });
82
- return errors;
83
- }
84
- renderTitle() {
85
- return (index.h("z-heading", { id: "title", variant: "semibold", level: 2 }, this.mainTitle));
86
- }
87
- renderDescription(variant, level) {
88
- return (index.h("z-body", { variant: variant, level: level }, this.description));
89
- }
90
- renderAllowedFileExtensions() {
91
- let fileFormatString = "";
92
- let fileWeightString = "";
93
- if (this.acceptedFormat) {
94
- const fileFormat = this.acceptedFormat.split(', ')
95
- .map((string) => string.substring(1).toUpperCase())
96
- .join(', ');
97
- fileFormatString = ` nei formati ${fileFormat}`;
98
- }
99
- if (this.fileMaxSize) {
100
- fileWeightString = ` per un massimo di ${this.fileMaxSize}MB di peso`;
101
- }
102
- const finalString = `Puoi allegare file${fileFormatString}${fileWeightString}.`;
103
- return (index.h("z-body", { level: 3 }, fileFormatString || fileWeightString ? finalString : null));
104
- }
105
- renderFileSection() {
106
- return (this.filesNumber > 0 && (index.h("section", { class: "files-container" }, index.h("z-heading", { variant: "semibold", level: 4 }, "File appena caricati"), index.h("div", { class: "files" }, index.h("slot", { name: "files" })), index.h("z-divider", { size: index$1.DividerSize.medium }))));
107
- }
108
- renderInput() {
109
- return (index.h("input", Object.assign({}, this.inputAttributes, { onChange: () => this.fileInputHandler(), accept: this.acceptedFormat, ref: (val) => (this.input = val) })));
110
- }
111
- renderUploadButton() {
112
- return [
113
- this.renderInput(),
114
- index.h("z-button", { onClick: () => this.input.click(), onKeyPress: (e) => {
115
- if (e.code == 'Space' || e.code == 'Enter') {
116
- e.preventDefault();
117
- this.input.click();
118
- }
119
- }, id: "fileSelect", variant: this.buttonVariant, icon: "plus", ref: (val) => this.button = val }, "Allega"),
120
- ];
121
- }
122
- renderUploadLink() {
123
- return [
124
- this.renderInput(),
125
- index.h("z-body", { class: "upload-link-text", variant: "regular", level: 1 }, "Trascinalo qui o", " ", index.h("z-body", { tabIndex: 0, class: "upload-link", onClick: () => this.input.click(), onKeyPress: (e) => {
126
- if (e.code == 'Space' || e.code == 'Enter') {
127
- e.preventDefault();
128
- this.input.click();
129
- }
130
- }, variant: "semibold", level: 1, ref: (val) => this.uploadLink = val }, "caricalo"), " ", "dal tuo computer"),
131
- ];
132
- }
133
- renderDefaultMode() {
134
- return [
135
- this.renderDescription("semibold", 3),
136
- this.renderAllowedFileExtensions(),
137
- this.renderFileSection(),
138
- this.renderUploadButton(),
139
- ];
140
- }
141
- renderDragDropMode() {
142
- return [
143
- this.renderFileSection(),
144
- index.h("z-dragdrop-area", null, index.h("div", { class: "text-container" }, this.renderDescription("regular", 1), this.renderUploadLink(), this.renderAllowedFileExtensions())),
145
- ];
146
- }
147
- formatErrorString(key, value) {
148
- var _a, _b;
149
- const bothErrors = value[0] && value[1] ? ", " : "";
150
- return `Il file ${key} ${(_a = value[0]) !== null && _a !== void 0 ? _a : ""}${bothErrors} ${(_b = value[1]) !== null && _b !== void 0 ? _b : ""} e non può quindi essere caricato.`;
151
- }
152
- handleErrorModalContent() {
153
- return (index.h("div", { slot: "modalContent" }, index.h("div", { class: "modalWrapper" }, index.h("div", { class: "files" }, Array.from(this.invalidFiles).map(([key, value]) => {
154
- return (index.h("z-body", { variant: "regular", level: 3 }, this.formatErrorString(key, value)));
155
- })))));
156
- }
157
- render() {
158
- return [
159
- index.h("div", { tabIndex: 0, class: `container ${this.type}` }, this.renderTitle(), this.type == index$1.ZFileUploadTypeEnum.default
160
- ? this.renderDefaultMode()
161
- : this.renderDragDropMode()),
162
- !!this.invalidFiles.size && (index.h("z-modal", { tabIndex: 0, ref: (val) => this.errorModal = val, modaltitle: "Attenzione", onModalClose: () => this.invalidFiles = new Map(), onModalBackgroundClick: () => this.invalidFiles = new Map() }, this.handleErrorModalContent()))
163
- ];
164
- }
165
- get el() { return index.getElement(this); }
166
- };
167
- ZFileUpload.style = stylesCss;
168
-
169
- exports.z_file_upload = ZFileUpload;
@@ -1,53 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-e826b4ad.js');
6
- const index$1 = require('./index-25206491.js');
7
- const breakpoints = require('./breakpoints-88c4fd6c.js');
8
- const utils = require('./utils-6410fc7d.js');
9
-
10
- const stylesCss = ".sc-z-file-h{font-family:var(--font-family-sans);font-weight:var(--font-rg);position:relative}.sc-z-file-h .chip-content.sc-z-file{display:flex;align-items:center}.sc-z-file-h>z-tooltip.sc-z-file{z-index:10}.sc-z-file-h>z-tooltip.sc-z-file>.tootip-content.sc-z-file{white-space:nowrap}.sc-z-file-h>z-chip.sc-z-file>.chip-content.sc-z-file>span.sc-z-file{max-width:250px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;line-height:1.33;letter-spacing:0.32px}.sc-z-file-h>z-chip.sc-z-file>.chip-content.sc-z-file>span.regular.sc-z-file{font-weight:var(--font-rg)}.sc-z-file-h>z-chip.sc-z-file>.chip-content.sc-z-file>span.bold.sc-z-file{font-weight:var(--font-sb)}.sc-z-file-h .chip-content.sc-z-file>z-icon.sc-z-file:last-child{margin-left:var(--space-unit);cursor:pointer;fill:var(--color-icon01)}@media only screen and (min-width: 1152px){.sc-z-file-h{border-radius:16px}.sc-z-file-h>z-chip.sc-z-file>.chip-content.sc-z-file>span.sc-z-file{font-size:12px}}";
11
-
12
- const ZFile = class {
13
- constructor(hostRef) {
14
- index.registerInstance(this, hostRef);
15
- this.removeFile = index.createEvent(this, "removeFile", 7);
16
- this.allowTooltip = false;
17
- this.tooltipVisible = false;
18
- }
19
- removeFileHandler() {
20
- this.removeFile.emit();
21
- this.el.remove();
22
- }
23
- onMouseOver() {
24
- this.tooltipVisible = true;
25
- }
26
- onMouseLeave() {
27
- this.tooltipVisible = false;
28
- }
29
- componentDidLoad() {
30
- var _a, _b;
31
- if (this.elementHasEllipsis() && window.innerWidth > breakpoints.tabletBreakpoint)
32
- this.allowTooltip = true;
33
- (_b = (_a = this.icon) === null || _a === void 0 ? void 0 : _a.focus) === null || _b === void 0 ? void 0 : _b.call(_a);
34
- }
35
- elementHasEllipsis() {
36
- return this.ellipsis.offsetWidth < this.ellipsis.scrollWidth;
37
- }
38
- render() {
39
- return (index.h(index.Host, null, this.allowTooltip && (index.h("z-tooltip", { open: this.tooltipVisible, type: index$1.TooltipPosition.AUTO, "bind-to": `#chip-${this.fileNumber}` }, index.h("span", { class: "body-5 tootip-content" }, this.ellipsis.innerText))), index.h("z-chip", { id: `chip-${this.fileNumber}`, filter: true, type: index$1.ZChipType.default }, index.h("div", { class: "chip-content" }, index.h("span", { ref: (el) => (this.ellipsis = el), tabIndex: -1, class: {
40
- "body-3-sb": utils.getDevice() == index$1.DeviceEnum.desktop,
41
- "body-2-sb": utils.getDevice() !== index$1.DeviceEnum.desktop,
42
- } }, index.h("slot", null)), index.h("z-icon", { "aria-label": "Elimina file", tabIndex: 0, onClick: () => this.removeFileHandler(), onKeyPress: (e) => {
43
- if (e.code == "Space" || e.code == "Enter") {
44
- e.preventDefault();
45
- this.removeFileHandler();
46
- }
47
- }, name: "multiply-circled", height: utils.getDevice() !== index$1.DeviceEnum.desktop ? 20 : 15, width: utils.getDevice() !== index$1.DeviceEnum.desktop ? 20 : 15, ref: (val) => (this.icon = val) })))));
48
- }
49
- get el() { return index.getElement(this); }
50
- };
51
- ZFile.style = stylesCss;
52
-
53
- exports.z_file = ZFile;