@zanichelli/delta_share 3.1.0 → 3.2.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 (392) hide show
  1. package/dist/wc/cjs/{breakpoints-a55736d0.js → breakpoints-e7c8838e.js} +3 -1
  2. package/dist/wc/cjs/delta_share.cjs.js +2 -2
  3. package/dist/wc/cjs/{icons-9d7fe21e.js → icons-6d7ce4fc.js} +111 -0
  4. package/dist/wc/cjs/{index-1112cdb1.js → index-029f1a7e.js} +43 -10
  5. package/dist/wc/cjs/index-0c6fe5a8.js +34 -0
  6. package/dist/wc/cjs/index-1a5d1f46.js +67 -0
  7. package/dist/wc/cjs/index-2bd3ba9a.js +74 -0
  8. package/dist/wc/cjs/index-2cac2542.js +79 -0
  9. package/dist/wc/cjs/index-32a6c022.js +21 -0
  10. package/dist/wc/cjs/index-42c0b32c.js +20 -0
  11. package/dist/wc/cjs/index-5da586ad.js +41 -0
  12. package/dist/wc/cjs/index-6d707e7c.js +21 -0
  13. package/dist/wc/cjs/index-77820e6c.js +17 -0
  14. package/dist/wc/cjs/index-7b42e7ce.js +21 -0
  15. package/dist/wc/cjs/index-903cb132.js +17 -0
  16. package/dist/wc/cjs/index-9ad9039f.js +22 -0
  17. package/dist/wc/cjs/index-a8dfd3f3.js +53 -0
  18. package/dist/wc/cjs/index-d6d2e8ac.js +21 -0
  19. package/dist/wc/cjs/index-e5699190.js +17 -0
  20. package/dist/wc/cjs/index-ef01acde.js +29 -0
  21. package/dist/wc/cjs/{index-9ca7d5e5.js → index-fd6e6c28.js} +8 -0
  22. package/dist/wc/cjs/{license-activation_11.cjs.entry.js → license-activation_10.cjs.entry.js} +966 -129
  23. package/dist/wc/cjs/loader.cjs.js +2 -2
  24. package/dist/wc/cjs/{utils-2bfaab77.js → utils-1ed1ec98.js} +1 -1
  25. package/dist/wc/cjs/{utils-3ac19501.js → utils-43a3deb6.js} +13 -3
  26. package/dist/wc/cjs/z-accordion.cjs.entry.js +67 -0
  27. package/dist/wc/cjs/z-alert.cjs.entry.js +1 -1
  28. package/dist/wc/cjs/z-anchor-navigation.cjs.entry.js +2 -2
  29. package/dist/wc/cjs/z-app-header.cjs.entry.js +92 -40
  30. package/dist/wc/cjs/z-aria-alert.cjs.entry.js +2 -2
  31. package/dist/wc/cjs/z-avatar.cjs.entry.js +5 -5
  32. package/dist/wc/cjs/z-book-card.cjs.entry.js +126 -0
  33. package/dist/wc/cjs/z-breadcrumb.cjs.entry.js +232 -0
  34. package/dist/wc/cjs/z-button-sort.cjs.entry.js +4 -4
  35. package/dist/wc/cjs/z-card.cjs.entry.js +6 -19
  36. package/dist/wc/cjs/z-carousel.cjs.entry.js +8 -4
  37. package/dist/wc/cjs/z-chip.cjs.entry.js +11 -16
  38. package/dist/wc/cjs/z-combobox.cjs.entry.js +12 -10
  39. package/dist/wc/cjs/z-contextual-menu.cjs.entry.js +6 -6
  40. package/dist/wc/cjs/z-cover-hero.cjs.entry.js +25 -8
  41. package/dist/wc/cjs/z-date-picker.cjs.entry.js +3 -3
  42. package/dist/wc/cjs/z-divider.cjs.entry.js +2 -2
  43. package/dist/wc/cjs/z-dragdrop-area.cjs.entry.js +1 -1
  44. package/dist/wc/cjs/z-file-upload.cjs.entry.js +5 -5
  45. package/dist/wc/cjs/z-file.cjs.entry.js +3 -3
  46. package/dist/wc/cjs/z-ghost-loading.cjs.entry.js +2 -2
  47. package/dist/wc/cjs/z-info-reveal.cjs.entry.js +2 -2
  48. package/dist/wc/cjs/z-link.cjs.entry.js +74 -0
  49. package/dist/wc/cjs/z-list_3.cjs.entry.js +4 -4
  50. package/dist/wc/cjs/z-logo.cjs.entry.js +1 -1
  51. package/dist/wc/cjs/z-menu-section.cjs.entry.js +12 -4
  52. package/dist/wc/cjs/z-menu.cjs.entry.js +27 -15
  53. package/dist/wc/cjs/z-messages-pocket.cjs.entry.js +3 -3
  54. package/dist/wc/cjs/z-myz-card-alert.cjs.entry.js +2 -2
  55. package/dist/wc/cjs/z-myz-card-dictionary.cjs.entry.js +2 -2
  56. package/dist/wc/cjs/z-myz-card-footer-sections.cjs.entry.js +2 -2
  57. package/dist/wc/cjs/z-myz-card-footer.cjs.entry.js +16 -4
  58. package/dist/wc/cjs/z-myz-card-icon.cjs.entry.js +2 -2
  59. package/dist/wc/cjs/z-myz-card-info.cjs.entry.js +4 -4
  60. package/dist/wc/cjs/z-myz-card-list.cjs.entry.js +2 -2
  61. package/dist/wc/cjs/z-myz-card_4.cjs.entry.js +5 -5
  62. package/dist/wc/cjs/z-myz-list-item.cjs.entry.js +5 -5
  63. package/dist/wc/cjs/z-myz-list.cjs.entry.js +1 -1
  64. package/dist/wc/cjs/z-navigation-tab-link.cjs.entry.js +10 -7
  65. package/dist/wc/cjs/z-navigation-tab.cjs.entry.js +7 -7
  66. package/dist/wc/cjs/z-navigation-tabs.cjs.entry.js +152 -49
  67. package/dist/wc/cjs/z-notification.cjs.entry.js +1 -1
  68. package/dist/wc/cjs/z-offcanvas_2.cjs.entry.js +281 -0
  69. package/dist/wc/cjs/z-otp.cjs.entry.js +2 -2
  70. package/dist/wc/cjs/z-pagination.cjs.entry.js +3 -3
  71. package/dist/wc/cjs/z-panel-elem.cjs.entry.js +7 -3
  72. package/dist/wc/cjs/z-pocket-message.cjs.entry.js +1 -1
  73. package/dist/wc/cjs/z-pocket_3.cjs.entry.js +4 -4
  74. package/dist/wc/cjs/z-popover.cjs.entry.js +6 -5
  75. package/dist/wc/cjs/z-range-picker.cjs.entry.js +25 -7
  76. package/dist/wc/cjs/z-section-title.cjs.entry.js +3 -3
  77. package/dist/wc/cjs/z-select.cjs.entry.js +20 -13
  78. package/dist/wc/cjs/z-skip-to-content.cjs.entry.js +14 -6
  79. package/dist/wc/cjs/z-slideshow.cjs.entry.js +5 -5
  80. package/dist/wc/cjs/z-stepper-item.cjs.entry.js +2 -2
  81. package/dist/wc/cjs/z-stepper.cjs.entry.js +2 -2
  82. package/dist/wc/cjs/z-table-body.cjs.entry.js +3 -17
  83. package/dist/wc/cjs/z-table-cell.cjs.entry.js +4 -29
  84. package/dist/wc/cjs/z-table-deprecated.cjs.entry.js +91 -0
  85. package/dist/wc/cjs/z-table-empty-box.cjs.entry.js +3 -24
  86. package/dist/wc/cjs/z-table-expanded-row.cjs.entry.js +3 -12
  87. package/dist/wc/cjs/z-table-footer.cjs.entry.js +3 -16
  88. package/dist/wc/cjs/z-table-head.cjs.entry.js +3 -16
  89. package/dist/wc/cjs/z-table-header-row.cjs.entry.js +3 -15
  90. package/dist/wc/cjs/z-table-header.cjs.entry.js +6 -75
  91. package/dist/wc/cjs/z-table-row.cjs.entry.js +4 -36
  92. package/dist/wc/cjs/z-table-sticky-footer.cjs.entry.js +3 -12
  93. package/dist/wc/cjs/z-table.cjs.entry.js +37 -59
  94. package/dist/wc/cjs/z-tag.cjs.entry.js +1 -1
  95. package/dist/wc/cjs/z-tbody.cjs.entry.js +10 -0
  96. package/dist/wc/cjs/z-td.cjs.entry.js +11 -0
  97. package/dist/wc/cjs/z-tfoot.cjs.entry.js +10 -0
  98. package/dist/wc/cjs/z-th.cjs.entry.js +11 -0
  99. package/dist/wc/cjs/z-thead.cjs.entry.js +10 -0
  100. package/dist/wc/cjs/z-toast-notification-list.cjs.entry.js +2 -2
  101. package/dist/wc/cjs/z-toast-notification.cjs.entry.js +3 -3
  102. package/dist/wc/cjs/z-toggle-button.cjs.entry.js +5 -3
  103. package/dist/wc/cjs/z-toggle-switch.cjs.entry.js +4 -4
  104. package/dist/wc/cjs/z-tooltip.cjs.entry.js +11 -5
  105. package/dist/wc/cjs/z-tr.cjs.entry.js +15 -0
  106. package/dist/wc/cjs/z-visually-hidden.cjs.entry.js +1 -1
  107. package/dist/wc/collection/collection-manifest.json +10 -4
  108. package/dist/wc/collection/components/license-activation/license-activation.js +23 -19
  109. package/dist/wc/collection/components/license-activation-form/license-activation-form.css +15 -8
  110. package/dist/wc/collection/components/license-activation-form/license-activation-form.js +13 -37
  111. package/dist/wc/custom-elements/index.js +2737 -840
  112. package/dist/wc/delta_share/delta_share.esm.js +1 -1
  113. package/dist/wc/delta_share/p-0365fad8.entry.js +1 -0
  114. package/dist/wc/delta_share/p-042bd3f6.js +1 -0
  115. package/dist/wc/delta_share/{p-9ad5616e.entry.js → p-059e9ee0.entry.js} +1 -1
  116. package/dist/wc/delta_share/p-05c9d96f.entry.js +1 -0
  117. package/dist/wc/delta_share/{p-578f4d61.entry.js → p-065a8ef6.entry.js} +1 -1
  118. package/dist/wc/delta_share/{p-5e503d5f.entry.js → p-08af13db.entry.js} +1 -1
  119. package/dist/wc/delta_share/{p-c31b160e.entry.js → p-09de99b2.entry.js} +1 -1
  120. package/dist/wc/delta_share/p-0e74cc07.entry.js +1 -0
  121. package/dist/wc/delta_share/{p-9e5596cd.entry.js → p-105ddd7d.entry.js} +1 -1
  122. package/dist/wc/delta_share/p-112478b5.js +1 -0
  123. package/dist/wc/delta_share/p-1553bc63.entry.js +1 -0
  124. package/dist/wc/delta_share/{p-0aa553ea.entry.js → p-16e61c27.entry.js} +1 -1
  125. package/dist/wc/delta_share/p-172a32d0.entry.js +1 -0
  126. package/dist/wc/delta_share/p-18ac49f8.entry.js +1 -0
  127. package/dist/wc/delta_share/p-18fcc8c7.js +1 -0
  128. package/dist/wc/delta_share/p-1c37c8f2.js +1 -0
  129. package/dist/wc/delta_share/{p-3cf0c6a5.entry.js → p-1e9b4693.entry.js} +1 -1
  130. package/dist/wc/delta_share/{p-bc10cf1a.entry.js → p-2439bd5d.entry.js} +1 -1
  131. package/dist/wc/delta_share/p-293a7ee2.entry.js +1 -0
  132. package/dist/wc/delta_share/{p-bcb29c7a.entry.js → p-2a4fe864.entry.js} +1 -1
  133. package/dist/wc/delta_share/p-2b4c3aab.js +1 -0
  134. package/dist/wc/delta_share/{p-6c54d53f.entry.js → p-2ca8ccb2.entry.js} +1 -1
  135. package/dist/wc/delta_share/p-2ed166b8.entry.js +1 -0
  136. package/dist/wc/delta_share/p-319c1a3e.entry.js +1 -0
  137. package/dist/wc/delta_share/p-37c5c92e.js +1 -0
  138. package/dist/wc/delta_share/p-3984a6c2.entry.js +1 -0
  139. package/dist/wc/delta_share/p-3b3f83a6.entry.js +1 -0
  140. package/dist/wc/delta_share/p-3f4dbb4f.entry.js +3 -0
  141. package/dist/wc/delta_share/{p-a815651c.entry.js → p-3fac6e84.entry.js} +1 -1
  142. package/dist/wc/delta_share/p-4018719d.entry.js +1 -0
  143. package/dist/wc/delta_share/{p-57f2b8d8.entry.js → p-44d6f07c.entry.js} +1 -1
  144. package/dist/wc/delta_share/{p-8d532866.entry.js → p-47ec520c.js} +1 -1
  145. package/dist/wc/delta_share/p-47f3e677.js +1 -0
  146. package/dist/wc/delta_share/{p-42dd4f36.entry.js → p-4a51a3c6.entry.js} +1 -1
  147. package/dist/wc/delta_share/p-4b2719fc.entry.js +1 -0
  148. package/dist/wc/delta_share/p-4c9ec16c.entry.js +1 -0
  149. package/dist/wc/delta_share/p-4ff6d958.entry.js +1 -0
  150. package/dist/wc/delta_share/p-536412c7.entry.js +1 -0
  151. package/dist/wc/delta_share/p-551bf917.js +1 -0
  152. package/dist/wc/delta_share/{p-8876b438.entry.js → p-57a1a7a3.entry.js} +1 -1
  153. package/dist/wc/delta_share/p-58991db7.js +1 -0
  154. package/dist/wc/delta_share/p-595c8d39.entry.js +1 -0
  155. package/dist/wc/delta_share/p-5989869c.js +1 -0
  156. package/dist/wc/delta_share/p-5f97902c.entry.js +1 -0
  157. package/dist/wc/delta_share/{p-950aa417.entry.js → p-6658206d.entry.js} +1 -1
  158. package/dist/wc/delta_share/p-67f03907.entry.js +1 -0
  159. package/dist/wc/delta_share/{p-d8e80ee8.entry.js → p-69d9835f.js} +1 -1
  160. package/dist/wc/delta_share/p-6bd46452.entry.js +1 -0
  161. package/dist/wc/delta_share/p-6be926f4.js +1 -0
  162. package/dist/wc/delta_share/p-6cb698e0.entry.js +1 -0
  163. package/dist/wc/delta_share/p-6e8df0ae.entry.js +1 -0
  164. package/dist/wc/delta_share/p-6f95cb22.entry.js +1 -0
  165. package/dist/wc/delta_share/p-7142f1dc.entry.js +1 -0
  166. package/dist/wc/delta_share/p-7b00c3b1.entry.js +1 -0
  167. package/dist/wc/delta_share/{p-963999a8.entry.js → p-7b668937.entry.js} +1 -1
  168. package/dist/wc/delta_share/p-7cb2f788.entry.js +1 -0
  169. package/dist/wc/delta_share/{p-8710e686.entry.js → p-82630451.entry.js} +1 -1
  170. package/dist/wc/delta_share/p-84a8b959.entry.js +1 -0
  171. package/dist/wc/delta_share/p-84e4e924.entry.js +1 -0
  172. package/dist/wc/delta_share/{p-829539a5.entry.js → p-8650dcb7.entry.js} +1 -1
  173. package/dist/wc/delta_share/p-8a0d51f7.entry.js +1 -0
  174. package/dist/wc/delta_share/{p-2f289949.entry.js → p-8f286d70.entry.js} +1 -1
  175. package/dist/wc/delta_share/p-8f38cd92.entry.js +1 -0
  176. package/dist/wc/delta_share/{p-81ddcb87.entry.js → p-8f6424ca.entry.js} +1 -1
  177. package/dist/wc/delta_share/p-96f53236.entry.js +1 -0
  178. package/dist/wc/delta_share/p-9ef9046f.entry.js +1 -0
  179. package/dist/wc/delta_share/p-9faa9434.entry.js +1 -0
  180. package/dist/wc/delta_share/{p-b38b27f2.entry.js → p-a051e83a.entry.js} +1 -1
  181. package/dist/wc/delta_share/{p-45dcece4.entry.js → p-a14153cc.entry.js} +1 -1
  182. package/dist/wc/delta_share/p-a3dc62bb.js +1 -0
  183. package/dist/wc/delta_share/p-aa8f533e.entry.js +1 -0
  184. package/dist/wc/delta_share/p-ab6dbdae.entry.js +1 -0
  185. package/dist/wc/delta_share/p-aeec6792.entry.js +1 -0
  186. package/dist/wc/delta_share/p-af60173c.entry.js +1 -0
  187. package/dist/wc/delta_share/p-bb15cf8b.entry.js +1 -0
  188. package/dist/wc/delta_share/p-c0ccd95c.entry.js +1 -0
  189. package/dist/wc/delta_share/p-c1b16c6e.entry.js +1 -0
  190. package/dist/wc/delta_share/p-c5f5fb78.entry.js +1 -0
  191. package/dist/wc/delta_share/p-c64950a2.entry.js +1 -0
  192. package/dist/wc/delta_share/p-c7678d37.js +1 -0
  193. package/dist/wc/delta_share/{p-1009b417.entry.js → p-ce115f77.entry.js} +1 -1
  194. package/dist/wc/delta_share/{p-7546c464.entry.js → p-d1062520.js} +1 -1
  195. package/dist/wc/delta_share/p-d231964b.entry.js +1 -0
  196. package/dist/wc/delta_share/p-d4fbf66b.entry.js +1 -0
  197. package/dist/wc/delta_share/{p-0bb97b61.js → p-d50ea6ea.js} +1 -1
  198. package/dist/wc/delta_share/p-d52d3e5c.js +1 -0
  199. package/dist/wc/delta_share/p-d6eef1ed.entry.js +1 -0
  200. package/dist/wc/delta_share/p-d8592d42.js +1 -0
  201. package/dist/wc/delta_share/p-d888ec2a.entry.js +1 -0
  202. package/dist/wc/delta_share/p-db7371fa.entry.js +1 -0
  203. package/dist/wc/delta_share/p-dd409bfb.js +1 -0
  204. package/dist/wc/delta_share/p-df6ae14f.js +1 -0
  205. package/dist/wc/delta_share/{p-4eb940ca.entry.js → p-e182b6dc.entry.js} +1 -1
  206. package/dist/wc/delta_share/p-e7f23a1e.entry.js +1 -0
  207. package/dist/wc/delta_share/p-ebd0e41d.entry.js +1 -0
  208. package/dist/wc/delta_share/{p-0bff6d57.entry.js → p-eddfcccc.entry.js} +1 -1
  209. package/dist/wc/delta_share/p-f77ae63f.entry.js +1 -0
  210. package/dist/wc/delta_share/p-f8091230.entry.js +1 -0
  211. package/dist/wc/delta_share/p-f894f849.entry.js +1 -0
  212. package/dist/wc/delta_share/p-f903c87f.entry.js +1 -0
  213. package/dist/wc/delta_share/p-fe486d84.entry.js +1 -0
  214. package/dist/wc/delta_share/p-fe53cbde.entry.js +1 -0
  215. package/dist/wc/delta_share/p-ff24a080.js +1 -0
  216. package/dist/wc/delta_share/p-ff98ef8e.entry.js +1 -0
  217. package/dist/wc/esm/breakpoints-3c3dbb8c.js +5 -0
  218. package/dist/wc/esm/delta_share.js +2 -2
  219. package/dist/wc/esm/{icons-7a34b033.js → icons-6196a79a.js} +111 -0
  220. package/dist/wc/esm/index-0cf1e7ae.js +19 -0
  221. package/dist/wc/esm/index-2a8923e8.js +18 -0
  222. package/dist/wc/esm/index-2ae14d02.js +65 -0
  223. package/dist/wc/esm/{index-b3a91e19.js → index-396432db.js} +8 -0
  224. package/dist/wc/esm/index-48b6c0e6.js +15 -0
  225. package/dist/wc/esm/index-5445c84d.js +19 -0
  226. package/dist/wc/esm/index-6642fa3a.js +15 -0
  227. package/dist/wc/esm/index-81516a9a.js +19 -0
  228. package/dist/wc/esm/{index-4f1e2705.js → index-9d240d39.js} +44 -11
  229. package/dist/wc/esm/index-b6d67648.js +39 -0
  230. package/dist/wc/esm/index-be084691.js +77 -0
  231. package/dist/wc/esm/index-c3e3c74b.js +51 -0
  232. package/dist/wc/esm/index-c74188e2.js +19 -0
  233. package/dist/wc/esm/index-c8e57c08.js +20 -0
  234. package/dist/wc/esm/index-cbe7ef0a.js +27 -0
  235. package/dist/wc/esm/index-df217b14.js +32 -0
  236. package/dist/wc/esm/index-e14dd015.js +15 -0
  237. package/dist/wc/esm/index-ea60f2c2.js +72 -0
  238. package/dist/wc/esm/{license-activation_11.entry.js → license-activation_10.entry.js} +967 -129
  239. package/dist/wc/esm/loader.js +2 -2
  240. package/dist/wc/esm/{utils-711517a4.js → utils-5e6dc3fe.js} +1 -1
  241. package/dist/wc/esm/{utils-5a24a17b.js → utils-bc5ea6f7.js} +13 -4
  242. package/dist/wc/esm/z-accordion.entry.js +63 -0
  243. package/dist/wc/esm/z-alert.entry.js +1 -1
  244. package/dist/wc/esm/z-anchor-navigation.entry.js +2 -2
  245. package/dist/wc/esm/z-app-header.entry.js +92 -40
  246. package/dist/wc/esm/z-aria-alert.entry.js +2 -2
  247. package/dist/wc/esm/z-avatar.entry.js +5 -5
  248. package/dist/wc/esm/z-book-card.entry.js +122 -0
  249. package/dist/wc/esm/z-breadcrumb.entry.js +228 -0
  250. package/dist/wc/esm/z-button-sort.entry.js +4 -4
  251. package/dist/wc/esm/z-card.entry.js +6 -19
  252. package/dist/wc/esm/z-carousel.entry.js +8 -4
  253. package/dist/wc/esm/z-chip.entry.js +11 -16
  254. package/dist/wc/esm/z-combobox.entry.js +12 -10
  255. package/dist/wc/esm/z-contextual-menu.entry.js +6 -6
  256. package/dist/wc/esm/z-cover-hero.entry.js +25 -8
  257. package/dist/wc/esm/z-date-picker.entry.js +3 -3
  258. package/dist/wc/esm/z-divider.entry.js +2 -2
  259. package/dist/wc/esm/z-dragdrop-area.entry.js +1 -1
  260. package/dist/wc/esm/z-file-upload.entry.js +5 -5
  261. package/dist/wc/esm/z-file.entry.js +3 -3
  262. package/dist/wc/esm/z-ghost-loading.entry.js +2 -2
  263. package/dist/wc/esm/z-info-reveal.entry.js +2 -2
  264. package/dist/wc/esm/z-link.entry.js +70 -0
  265. package/dist/wc/esm/z-list_3.entry.js +4 -4
  266. package/dist/wc/esm/z-logo.entry.js +1 -1
  267. package/dist/wc/esm/z-menu-section.entry.js +12 -4
  268. package/dist/wc/esm/z-menu.entry.js +27 -15
  269. package/dist/wc/esm/z-messages-pocket.entry.js +3 -3
  270. package/dist/wc/esm/z-myz-card-alert.entry.js +2 -2
  271. package/dist/wc/esm/z-myz-card-dictionary.entry.js +2 -2
  272. package/dist/wc/esm/z-myz-card-footer-sections.entry.js +2 -2
  273. package/dist/wc/esm/z-myz-card-footer.entry.js +16 -4
  274. package/dist/wc/esm/z-myz-card-icon.entry.js +2 -2
  275. package/dist/wc/esm/z-myz-card-info.entry.js +4 -4
  276. package/dist/wc/esm/z-myz-card-list.entry.js +2 -2
  277. package/dist/wc/esm/z-myz-card_4.entry.js +5 -5
  278. package/dist/wc/esm/z-myz-list-item.entry.js +5 -5
  279. package/dist/wc/esm/z-myz-list.entry.js +1 -1
  280. package/dist/wc/esm/z-navigation-tab-link.entry.js +10 -7
  281. package/dist/wc/esm/z-navigation-tab.entry.js +7 -7
  282. package/dist/wc/esm/z-navigation-tabs.entry.js +152 -49
  283. package/dist/wc/esm/z-notification.entry.js +1 -1
  284. package/dist/wc/esm/z-offcanvas_2.entry.js +276 -0
  285. package/dist/wc/esm/z-otp.entry.js +2 -2
  286. package/dist/wc/esm/z-pagination.entry.js +3 -3
  287. package/dist/wc/esm/z-panel-elem.entry.js +7 -3
  288. package/dist/wc/esm/z-pocket-message.entry.js +1 -1
  289. package/dist/wc/esm/z-pocket_3.entry.js +4 -4
  290. package/dist/wc/esm/z-popover.entry.js +6 -5
  291. package/dist/wc/esm/z-range-picker.entry.js +25 -7
  292. package/dist/wc/esm/z-section-title.entry.js +3 -3
  293. package/dist/wc/esm/z-select.entry.js +20 -13
  294. package/dist/wc/esm/z-skip-to-content.entry.js +14 -6
  295. package/dist/wc/esm/z-slideshow.entry.js +5 -5
  296. package/dist/wc/esm/z-stepper-item.entry.js +2 -2
  297. package/dist/wc/esm/z-stepper.entry.js +2 -2
  298. package/dist/wc/esm/z-table-body.entry.js +2 -20
  299. package/dist/wc/esm/z-table-cell.entry.js +3 -32
  300. package/dist/wc/esm/z-table-deprecated.entry.js +87 -0
  301. package/dist/wc/esm/z-table-empty-box.entry.js +2 -27
  302. package/dist/wc/esm/z-table-expanded-row.entry.js +2 -15
  303. package/dist/wc/esm/z-table-footer.entry.js +2 -19
  304. package/dist/wc/esm/z-table-head.entry.js +2 -19
  305. package/dist/wc/esm/z-table-header-row.entry.js +2 -18
  306. package/dist/wc/esm/z-table-header.entry.js +5 -78
  307. package/dist/wc/esm/z-table-row.entry.js +3 -39
  308. package/dist/wc/esm/z-table-sticky-footer.entry.js +2 -15
  309. package/dist/wc/esm/z-table.entry.js +37 -59
  310. package/dist/wc/esm/z-tag.entry.js +1 -1
  311. package/dist/wc/esm/z-tbody.entry.js +2 -0
  312. package/dist/wc/esm/z-td.entry.js +3 -0
  313. package/dist/wc/esm/z-tfoot.entry.js +2 -0
  314. package/dist/wc/esm/z-th.entry.js +3 -0
  315. package/dist/wc/esm/z-thead.entry.js +2 -0
  316. package/dist/wc/esm/z-toast-notification-list.entry.js +2 -2
  317. package/dist/wc/esm/z-toast-notification.entry.js +3 -3
  318. package/dist/wc/esm/z-toggle-button.entry.js +5 -3
  319. package/dist/wc/esm/z-toggle-switch.entry.js +4 -4
  320. package/dist/wc/esm/z-tooltip.entry.js +11 -5
  321. package/dist/wc/esm/z-tr.entry.js +7 -0
  322. package/dist/wc/esm/z-visually-hidden.entry.js +1 -1
  323. package/dist/wc/types/components/license-activation/license-activation.d.ts +2 -3
  324. package/dist/wc/types/components/license-activation-form/license-activation-form.d.ts +2 -5
  325. package/dist/wc/types/components.d.ts +0 -2
  326. package/package.json +1 -1
  327. package/dist/wc/cjs/z-app-switcher.cjs.entry.js +0 -29
  328. package/dist/wc/cjs/z-body.cjs.entry.js +0 -18
  329. package/dist/wc/cjs/z-heading.cjs.entry.js +0 -18
  330. package/dist/wc/cjs/z-offcanvas.cjs.entry.js +0 -70
  331. package/dist/wc/cjs/z-searchbar.cjs.entry.js +0 -235
  332. package/dist/wc/cjs/z-typography.cjs.entry.js +0 -30
  333. package/dist/wc/delta_share/p-0434c900.entry.js +0 -1
  334. package/dist/wc/delta_share/p-063881e2.entry.js +0 -1
  335. package/dist/wc/delta_share/p-0667e9cd.entry.js +0 -1
  336. package/dist/wc/delta_share/p-0f55558e.js +0 -1
  337. package/dist/wc/delta_share/p-1c2d7c30.entry.js +0 -1
  338. package/dist/wc/delta_share/p-1d2cb6f9.entry.js +0 -1
  339. package/dist/wc/delta_share/p-23905d08.entry.js +0 -1
  340. package/dist/wc/delta_share/p-29310a24.entry.js +0 -1
  341. package/dist/wc/delta_share/p-3fa29874.entry.js +0 -1
  342. package/dist/wc/delta_share/p-42e9c740.entry.js +0 -1
  343. package/dist/wc/delta_share/p-500ff0dd.entry.js +0 -1
  344. package/dist/wc/delta_share/p-51431ace.js +0 -1
  345. package/dist/wc/delta_share/p-5530ca81.entry.js +0 -1
  346. package/dist/wc/delta_share/p-5d88112c.entry.js +0 -1
  347. package/dist/wc/delta_share/p-61264c72.entry.js +0 -1
  348. package/dist/wc/delta_share/p-64decd7d.entry.js +0 -1
  349. package/dist/wc/delta_share/p-65be6de6.entry.js +0 -1
  350. package/dist/wc/delta_share/p-6cb8def6.entry.js +0 -1
  351. package/dist/wc/delta_share/p-6d853df0.entry.js +0 -1
  352. package/dist/wc/delta_share/p-702dd7b4.entry.js +0 -1
  353. package/dist/wc/delta_share/p-74b71f61.entry.js +0 -1
  354. package/dist/wc/delta_share/p-78d71789.js +0 -1
  355. package/dist/wc/delta_share/p-7ae0c21f.js +0 -1
  356. package/dist/wc/delta_share/p-86a8888e.entry.js +0 -3
  357. package/dist/wc/delta_share/p-8794c0c7.entry.js +0 -1
  358. package/dist/wc/delta_share/p-8825d8e4.entry.js +0 -1
  359. package/dist/wc/delta_share/p-8cc7c2c7.entry.js +0 -1
  360. package/dist/wc/delta_share/p-8d91a5b7.entry.js +0 -1
  361. package/dist/wc/delta_share/p-90fdd23f.entry.js +0 -1
  362. package/dist/wc/delta_share/p-925fc6c3.entry.js +0 -1
  363. package/dist/wc/delta_share/p-963f64a8.entry.js +0 -1
  364. package/dist/wc/delta_share/p-99ffd017.entry.js +0 -1
  365. package/dist/wc/delta_share/p-a150a778.entry.js +0 -1
  366. package/dist/wc/delta_share/p-a2b564ef.entry.js +0 -1
  367. package/dist/wc/delta_share/p-a64544de.entry.js +0 -1
  368. package/dist/wc/delta_share/p-a6b403f9.entry.js +0 -1
  369. package/dist/wc/delta_share/p-afb5bfe5.entry.js +0 -1
  370. package/dist/wc/delta_share/p-b16fd965.entry.js +0 -1
  371. package/dist/wc/delta_share/p-badf3f24.entry.js +0 -1
  372. package/dist/wc/delta_share/p-be7f8da0.entry.js +0 -1
  373. package/dist/wc/delta_share/p-c229c90e.entry.js +0 -1
  374. package/dist/wc/delta_share/p-c436e1af.entry.js +0 -1
  375. package/dist/wc/delta_share/p-c51ebb01.entry.js +0 -1
  376. package/dist/wc/delta_share/p-c885d25c.entry.js +0 -1
  377. package/dist/wc/delta_share/p-c9df8e5d.entry.js +0 -1
  378. package/dist/wc/delta_share/p-cb16715b.entry.js +0 -1
  379. package/dist/wc/delta_share/p-cf58d833.js +0 -1
  380. package/dist/wc/delta_share/p-d586adfc.entry.js +0 -1
  381. package/dist/wc/delta_share/p-d69c3b08.entry.js +0 -1
  382. package/dist/wc/delta_share/p-ddab353c.entry.js +0 -1
  383. package/dist/wc/delta_share/p-ea6c67f2.entry.js +0 -1
  384. package/dist/wc/delta_share/p-ee0a8f1f.entry.js +0 -1
  385. package/dist/wc/delta_share/p-fc49c455.entry.js +0 -1
  386. package/dist/wc/esm/breakpoints-e07f80e7.js +0 -4
  387. package/dist/wc/esm/z-app-switcher.entry.js +0 -25
  388. package/dist/wc/esm/z-body.entry.js +0 -14
  389. package/dist/wc/esm/z-heading.entry.js +0 -14
  390. package/dist/wc/esm/z-offcanvas.entry.js +0 -66
  391. package/dist/wc/esm/z-searchbar.entry.js +0 -231
  392. package/dist/wc/esm/z-typography.entry.js +0 -26
@@ -0,0 +1,122 @@
1
+ import { r as registerInstance, c as createEvent, h, a as getElement } from './index-396432db.js';
2
+ import { c as BookCardVariant } from './index-9d240d39.js';
3
+ import { m as mobileBreakpoint } from './breakpoints-3c3dbb8c.js';
4
+ import { r as randomId } from './utils-bc5ea6f7.js';
5
+
6
+ const stylesCss = ":host{--z-book-card-ribbon-background-color:var(--avatar-C08);--z-book-card-ribbon-shadow-color:var(--green950);--z-book-card-compact-width:262px;--z-book-card-compact-height:568px}:host>article{display:block;width:100%;max-width:360px;box-sizing:border-box;border:var(--border-size-medium) solid var(--color-surface03);background-color:var(--color-surface01);border-radius:var(--border-radius);font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>article div.cover{position:relative}:host>article div.cover div.img-wrapper{display:flex;overflow:hidden;border:var(--border-size-small) solid var(--color-surface03);line-height:0}:host>article div.cover div.img-wrapper img{width:auto;max-width:100%;height:auto;max-height:100%;align-self:flex-end}:host>article div.cover .ribbon{position:absolute;z-index:10;top:calc(var(--space-unit) * 2);left:calc(var(--space-unit) * -2);display:flex;max-width:100%;height:calc(var(--space-unit) * 4);box-sizing:border-box;align-items:center;padding:0 calc(var(--space-unit) * 2);border:var(--border-size-medium) solid var(--color-surface01);background:var(--z-book-card-ribbon-background-color);border-radius:0 var(--border-radius) var(--border-radius) 0;box-shadow:var(--shadow-2);color:var(--color-text04);font-family:var(--font-family-sans);font-size:var(--font-size-2);font-weight:var(--font-sb);line-height:initial}:host>article div.cover .ribbon.interactive:hover{cursor:pointer}:host>article div.cover .ribbon span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:nowrap}:host>article div.cover .ribbon::before{position:absolute;bottom:-12px;left:-2px;width:0;height:0;border-top:10px solid var(--z-book-card-ribbon-shadow-color);border-left:16px solid transparent;content:\"\"}:host>article div.cover .ribbon z-icon{margin-right:var(--space-unit)}:host>article div.content{margin:var(--space-unit) 0;border-radius:var(--border-radius)}:host>article .title{display:flex;height:100%;align-self:center;color:var(--color-text02);font-size:var(--font-size-4);font-weight:var(--font-sb);line-height:1.5}:host>article .title *{all:unset}:host>article div.subtitle{color:var(--color-text02);font-size:var(--font-size-2);font-weight:var(--font-rg);line-height:1.4}:host>article div.authors{color:var(--color-text02);font-size:var(--font-size-1);font-weight:var(--font-rg);line-height:1.33}:host>article div.isbn{overflow:hidden;color:var(--color-text02);font-size:var(--font-size-2);line-height:1.33;text-overflow:ellipsis;white-space:nowrap;word-wrap:nowrap}:host>article div.isbn>.code{font-weight:var(--font-sb)}:host>article div.tags{display:flex;overflow:hidden;max-height:32px;flex-flow:row wrap;align-content:stretch;align-items:stretch;justify-content:flex-start;gap:calc(var(--space-unit) / 2)}:host>article ::slotted([slot=\"tags\"]){margin-bottom:var(--space-unit)}:host>article ::slotted([slot=\"header-cta\"]){--z-icon-width:20px;--z-icon-height:20px;padding:var(--space-unit);cursor:pointer;fill:var(--color-icon01)}:host>article.expanded{width:100%;min-width:328px;padding:calc(var(--space-unit) * 2);padding-bottom:0}:host>article.expanded div.header{display:flex;flex-flow:row nowrap;align-content:stretch;align-items:top;justify-content:space-between;margin-bottom:var(--space-unit);white-space:nowrap}:host>article.expanded div.cover div.img-wrapper{border-radius:var(--border-radius)}:host>article.expanded div.cover div.img-wrapper img{width:100%}:host>article.expanded .title,:host>article.expanded .subtitle,:host>article.expanded .authors{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:initial}:host>article.expanded div.footer{border-top:var(--border-size-small) solid var(--color-surface03);margin-bottom:calc(var(--space-unit) * 1.5)}:host>article.expanded div.footer.open{padding-top:calc(var(--space-unit) * 1.5)}:host>article.expanded div.footer.open div.resources{display:initial}:host>article.expanded div.footer.close div.resources{display:none}:host>article.expanded button.show-resources{--z-icon-height:16px;--z-icon-width:16px;all:unset;display:flex;width:100%;flex-flow:row nowrap;align-content:center;align-items:center;justify-content:center;padding:calc(var(--space-unit) * 1) 0;color:var(--color-link-primary);cursor:pointer;fill:var(--color-link-primary);font-size:var(--font-size-2);font-weight:var(--font-sb);gap:var(--space-unit)}:host>article.expanded button.show-resources:focus{box-shadow:var(--shadow-focus-primary)}:host>article.search{width:262px;height:616px;padding:calc(var(--space-unit) * 2);padding-bottom:0}:host>article.search .wrapper-container{display:flex;height:100%;flex-direction:column;justify-content:space-between}:host>article.search .wrapper-container .wrapper{height:451px}:host>article.search .wrapper-container .action-container{padding-bottom:calc(var(--space-unit) * 2)}:host>article.search div.header{display:flex;height:24px;flex-flow:row nowrap;align-content:stretch;align-items:center;justify-content:space-between;margin-bottom:calc(var(--space-unit) * 1.5);white-space:nowrap}:host>article.search div.cover div.img-wrapper{height:314px;border-radius:var(--border-radius)}:host>article.search .title{display:block;height:initial;align-self:unset;font-size:var(--font-size-3)}:host>article.search .title,:host>article.search .subtitle,:host>article.search .authors{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host>article.compact{width:var(--z-book-card-compact-width);height:var(--z-book-card-compact-height)}:host>article.compact.borderless{border:none}:host>article.compact div.cover div.img-wrapper{width:100%;height:calc(var(--z-book-card-compact-width) * 1.36);box-sizing:border-box;border:none;background:var(--color-white);border-radius:var(--border-radius) var(--border-radius) 0 0;box-shadow:var(--shadow-2)}:host>article.compact div.wrapper{display:flex;height:100%;flex-flow:column nowrap;align-content:stretch;align-items:stretch;justify-content:flex-start}:host>article.compact div.content{display:flex;box-sizing:border-box;flex-flow:column nowrap;align-content:stretch;align-items:stretch;justify-content:space-between;padding:calc(var(--space-unit) * 2);padding-top:var(--space-unit);margin:0}:host>article.compact div.action-container{padding:calc(var(--space-unit) * 2);padding-top:0;margin-top:auto}:host>article.compact.borderless div.cover div.img-wrapper{width:var(--z-book-card-compact-width)}:host>article.compact.borderless div.content{padding:0;padding-top:var(--space-unit)}:host>article.compact.borderless div.action-container{padding:0;padding-bottom:calc(var(--space-unit) * 2)}:host>article.compact .title{display:block;height:initial;align-self:unset}:host>article.compact .title,:host>article.compact .subtitle,:host>article.compact .authors{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:initial}@media (min-width: 768px){:host>article{width:100%;max-width:initial}:host>article .title{display:block;height:initial;align-self:unset}:host>article.expanded{width:100%;min-width:initial;max-width:initial;height:360px;padding:0;border:0}:host>article.expanded div.wrapper{display:flex;flex-flow:row nowrap;align-content:stretch;align-items:stretch;justify-content:flex-start}:host>article.expanded div.cover div.img-wrapper{width:262px;height:356px;border:0;border:var(--border-size-medium) solid var(--color-surface03);border-right:none;background:var(--color-surface01);border-radius:var(--border-radius) 0 0 var(--border-radius)}:host>article.expanded div.cover div.img-wrapper img{width:auto;border-radius:0}:host>article.expanded div.content{display:flex;overflow:hidden;width:100%;height:356px;flex-flow:column nowrap;align-content:stretch;align-items:stretch;justify-content:space-between;border:var(--border-size-medium) solid var(--color-surface03);border-left:none;margin:0;background:var(--color-surface01);border-radius:0 var(--border-radius) var(--border-radius) 0}:host>article.expanded div.content div.top{padding:calc(var(--space-unit) * 2);padding-bottom:0}:host>article.expanded div.content div.top div.info{display:flex;flex-flow:row nowrap;align-content:stretch;align-items:stretch;justify-content:space-between;margin-bottom:calc(var(--space-unit) / 2)}:host>article.expanded div.content div.top div.info>div.left{width:100%}:host>article.expanded div.content div.bottom{padding:calc(var(--space-unit) * 2);padding-bottom:0}}@media (min-width: 1152px){:host>article{width:fit-content;max-width:initial}}@media (min-width: 1366px){:host>article.expanded{width:635px}:host>article.expanded div.content{width:369px}}";
7
+
8
+ const ZBookCard = class {
9
+ constructor(hostRef) {
10
+ registerInstance(this, hostRef);
11
+ this.ribbonClick = createEvent(this, "ribbonClick", 7);
12
+ /**
13
+ * [optional] ISBN label
14
+ */
15
+ this.isbnLabel = "";
16
+ this.isMobile = false;
17
+ this.hasResources = false;
18
+ this.showResources = false;
19
+ }
20
+ emitRibbonClick() {
21
+ this.ribbonClick.emit();
22
+ }
23
+ componentWillLoad() {
24
+ this.id = `id-${randomId()}`;
25
+ const mobileMediaQuery = window.matchMedia(`(max-width: ${mobileBreakpoint}px)`);
26
+ this.isMobile = mobileMediaQuery.matches;
27
+ mobileMediaQuery.onchange = (mql) => (this.isMobile = mql.matches);
28
+ }
29
+ componentDidLoad() {
30
+ this.handleResources();
31
+ }
32
+ handleResources() {
33
+ var _a;
34
+ if (this.variant !== BookCardVariant.EXPANDED || !this.isMobile) {
35
+ return;
36
+ }
37
+ this.hasResources = ((_a = this.hostElement.querySelectorAll("[slot=resources]")) === null || _a === void 0 ? void 0 : _a.length) > 0;
38
+ }
39
+ toggleResources() {
40
+ this.showResources = !this.showResources;
41
+ }
42
+ renderCard() {
43
+ switch (this.variant) {
44
+ case BookCardVariant.EXPANDED:
45
+ return this.isMobile ? this.renderMobileExpandedCard() : this.renderExpandedCard();
46
+ case BookCardVariant.COMPACT:
47
+ return this.renderCompactCard();
48
+ case BookCardVariant.SEARCH:
49
+ return this.renderSearchCard();
50
+ }
51
+ }
52
+ renderExpandedCard() {
53
+ return (h("div", { class: "wrapper" }, this.renderCover(), h("div", { class: "content" }, h("div", { class: "top" }, h("div", { class: "info" }, h("div", { class: "left" }, this.renderAuthors(), this.renderOperaTitle(), this.renderVolumeTitle(), this.renderIsbn()), h("div", { class: "right" }, this.renderHeaderCtaSlot())), this.renderTagsSlot()), h("div", { class: "bottom" }, this.renderResourcesSlot()))));
54
+ }
55
+ renderMobileExpandedCard() {
56
+ return (h("div", { class: "wrapper" }, h("div", { class: "header" }, this.renderOperaTitle(), this.renderHeaderCtaSlot()), this.renderCover(), h("div", { class: "content" }, this.renderTagsSlot(), this.renderAuthors(), this.renderVolumeTitle(), this.renderIsbn()), this.hasResources && (h("div", { class: {
57
+ footer: true,
58
+ open: this.showResources,
59
+ close: !this.showResources,
60
+ } }, !this.showResources && this.renderShowResources(), this.renderResourcesSlot(), this.showResources && this.renderShowResources()))));
61
+ }
62
+ renderSearchCard() {
63
+ return (h("div", { class: "wrapper-container" }, h("div", { class: "wrapper" }, h("div", { class: "header" }, this.renderOperaTitle(), this.renderHeaderCtaSlot()), this.renderCover(), h("div", { class: "content" }, this.renderTagsSlot(), this.renderAuthors(), this.renderVolumeTitle(), this.renderIsbn())), this.renderFooterCtaSlot()));
64
+ }
65
+ renderCompactCard() {
66
+ return (h("div", { class: "wrapper" }, this.renderCover(), h("div", { class: "content" }, this.renderAuthors(), this.renderOperaTitle(), this.renderVolumeTitle(), this.renderIsbn()), this.renderFooterCtaSlot()));
67
+ }
68
+ renderCover() {
69
+ return (h("div", { class: "cover" }, this.ribbon && this.variant !== BookCardVariant.COMPACT && this.renderRibbon(), h("div", { class: "img-wrapper" }, h("img", { src: this.cover, onError: () => {
70
+ if (this.fallbackCover) {
71
+ this.cover = this.fallbackCover;
72
+ }
73
+ }, "aria-hidden": "true" }))));
74
+ }
75
+ renderRibbon() {
76
+ const content = [
77
+ this.ribbonIcon && (h("z-icon", { name: this.ribbonIcon, width: 16, height: 16, fill: "color-icon03" })),
78
+ h("span", null, this.ribbon),
79
+ ];
80
+ return this.ribbonInteractive ? (h("button", { class: "ribbon interactive", onClick: () => this.emitRibbonClick() }, content)) : (h("div", { class: "ribbon" }, content));
81
+ }
82
+ renderOperaTitle() {
83
+ const title = this.operaTitleTag
84
+ ? `<${this.operaTitleTag}>${this.operaTitle}</${this.operaTitleTag}>`
85
+ : this.operaTitle;
86
+ return (h("div", { class: "title", innerHTML: title }));
87
+ }
88
+ renderVolumeTitle() {
89
+ return this.volumeTitle ? h("div", { class: "subtitle" }, this.volumeTitle) : null;
90
+ }
91
+ renderAuthors() {
92
+ return this.authors ? (h("div", { class: "authors", "aria-description": "Autori" }, this.authors)) : null;
93
+ }
94
+ renderIsbn() {
95
+ return this.isbn ? (h("div", { class: "isbn" }, h("span", { class: "code", "aria-description": `ISBN ${this.isbnLabel}` }, this.isbn), this.isbnLabel ? h("span", { class: "label" }, " ", this.isbnLabel) : null)) : null;
96
+ }
97
+ renderShowResources() {
98
+ return (h("button", { class: "show-resources", "aria-label": `Risorse del libro ${this.operaTitle}`, "aria-expanded": this.showResources.toString(), "aria-controls": `resources-${this.id}`, onClick: () => this.toggleResources() }, this.showResources ? "Chiudi" : "Vedi tutto", h("z-icon", { name: this.showResources ? "chevron-up" : "chevron-down" })));
99
+ }
100
+ renderTagsSlot() {
101
+ return (h("div", { class: "tags" }, h("slot", { name: "tags" })));
102
+ }
103
+ renderHeaderCtaSlot() {
104
+ return h("slot", { name: "header-cta" });
105
+ }
106
+ renderResourcesSlot() {
107
+ return (h("div", { id: `resources-${this.id}`, class: "resources" }, h("slot", { name: "resources", onSlotchange: () => this.handleResources() })));
108
+ }
109
+ renderFooterCtaSlot() {
110
+ return (h("div", { class: "action-container" }, h("slot", { name: "footer-cta" })));
111
+ }
112
+ render() {
113
+ return (h("article", { class: {
114
+ [this.variant]: true,
115
+ borderless: !!this.borderless,
116
+ } }, this.renderCard()));
117
+ }
118
+ get hostElement() { return getElement(this); }
119
+ };
120
+ ZBookCard.style = stylesCss;
121
+
122
+ export { ZBookCard as z_book_card };
@@ -0,0 +1,228 @@
1
+ import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-396432db.js';
2
+ import { d as BreadcrumbPathStyle, e as BreadcrumbHomepageVariant, D as Device, P as PopoverPosition, K as KeyboardCode, f as ListSize } from './index-9d240d39.js';
3
+ import { g as getDevice, h as handleKeyboardSubmit } from './utils-bc5ea6f7.js';
4
+ import './breakpoints-3c3dbb8c.js';
5
+
6
+ const stylesCss = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg);--line-clamp-popover:0;--line-clamp-mobile:1}button{padding:0;border:none;margin:0;background-color:transparent}nav{display:flex;height:30px;align-items:center;padding-left:calc(var(--space-unit) / 2);overflow-x:hidden}li{display:flex;align-items:baseline}:host a:focus,:host button:focus{box-shadow:var(--shadow-focus-primary);outline:0}:host a{color:var(--color-link-primary);font-size:var(--font-size-2);text-decoration:none;white-space:nowrap}:host a.homepage-icon{display:list-item}:host a.homepage-text{display:initial;margin-top:calc(var(--space-unit) / 4);margin-right:var(--space-unit)}:host a.missing-path{color:var(--color-text01)}:host a.text-ellipsis{display:-webkit-box !important;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:var(--line-clamp-mobile);text-overflow:ellipsis;white-space:normal}:host ol{display:flex;padding:0;margin:0;list-style-type:none}:host ol>li:not(:first-child,:last-child){margin-right:var(--space-unit)}nav.underlined>ol>li a:not(.missing-path),nav.underlined>ol>li button{text-decoration:underline}nav.semibold>ol>li a:not(.missing-path),nav.semibold>ol>li button{font-weight:var(--font-sb)}:host z-icon{margin-right:var(--space-unit);--z-icon-width:12px;--z-icon-height:12px}:host button.dots{display:inline-block;color:var(--color-link-primary);cursor:pointer}:host .hidden-paths-popover .popover-content{max-width:302px;padding:calc(var(--space-unit) / 2) var(--space-unit);text-align:left}:host .hidden-paths-popover .popover-content a{font-weight:var(--font-rg);text-decoration:none}:host .hidden-paths-popover{--z-popover-theme--surface:var(--color-surface02);--z-popover-padding:0}:host .hidden-paths-popover::before,.full-path-tooltip::before{--arrow-edge-offset:calc(100% - (var(--space-unit) * 2.55))}:host .full-path-tooltip{--z-popover-theme--surface:var(--color-surface05);--z-popover-theme--text:var(--color-text-inverse);--z-popover-padding:0}:host .tooltip-content{padding:0 var(--space-unit);font-size:var(--font-size-2)}@media (min-width: 768px){:host ol>li+li::before{display:inline-block;width:10px;height:10px;flex:1;margin-right:2px;color:var(--color-disabled03);content:\"\\203A\"}:host a.text-ellipsis{-webkit-line-clamp:var(--line-clamp-popover)}}";
7
+
8
+ const ZBreadcrumb = class {
9
+ constructor(hostRef) {
10
+ registerInstance(this, hostRef);
11
+ this.clickOnNode = createEvent(this, "clickOnNode", 7);
12
+ /** [optional] Sets the path style */
13
+ this.pathStyle = BreadcrumbPathStyle.UNDERLINED;
14
+ /** [optional] Variant of first node */
15
+ this.homepageVariant = BreadcrumbHomepageVariant.ICON;
16
+ /** [optional] Sets max number of element to show */
17
+ this.maxNodesToShow = 5;
18
+ /** [optional] Controls the behaviour on <a> tag click/enter */
19
+ this.preventFollowUrl = false;
20
+ /** [optional] Sets max number of row for each path inside the popover. Zero equals unlimited */
21
+ this.overflowMenuItemRows = 0;
22
+ /** [optional] Sets the maximun number of chars per single node */
23
+ this.truncateChar = 30;
24
+ /** Detect whether the length of the nodes shown exceeds the container length */
25
+ this.hasOverflow = false;
26
+ this.popoverEllipsisOpen = false;
27
+ this.collapsedElements = [];
28
+ this.currentIndex = 0;
29
+ this.truncatePosition = null;
30
+ }
31
+ handleResize() {
32
+ this.viewPortWidth = getDevice();
33
+ if (this.viewPortWidth !== Device.MOBILE &&
34
+ this.wrapElement &&
35
+ this.wrapElement.scrollWidth > this.wrapElement.clientWidth) {
36
+ this.hasOverflow = true;
37
+ }
38
+ }
39
+ // eslint-disable-next-line lines-between-class-members
40
+ handlePropChange() {
41
+ this.initializeBreadcrumb(this.viewPortWidth === Device.MOBILE);
42
+ }
43
+ handleResizeUp(newValue, oldValue) {
44
+ if (newValue === Device.MOBILE ||
45
+ (oldValue === Device.MOBILE && newValue === Device.TABLET) ||
46
+ (oldValue === Device.MOBILE && newValue === Device.DESKTOP) ||
47
+ (oldValue === Device.MOBILE && newValue === Device.DESKTOP_WIDE) ||
48
+ (oldValue === Device.TABLET && newValue === Device.DESKTOP) ||
49
+ (oldValue === Device.TABLET && newValue === Device.DESKTOP_WIDE) ||
50
+ (oldValue === Device.DESKTOP && newValue === Device.DESKTOP_WIDE)) {
51
+ this.initializeBreadcrumb(this.viewPortWidth === Device.MOBILE);
52
+ }
53
+ }
54
+ componentWillLoad() {
55
+ this.viewPortWidth = getDevice();
56
+ this.initializeBreadcrumb(this.viewPortWidth === Device.MOBILE);
57
+ }
58
+ componentWillRender() {
59
+ if (this.viewPortWidth !== Device.MOBILE && this.hasOverflow) {
60
+ this.checkEllipsisOrOverflowMenu();
61
+ this.hasOverflow = false;
62
+ }
63
+ }
64
+ componentDidRender() {
65
+ if (this.collapsedElementsRef) {
66
+ this.anchorElements = Array.from(this.hostElement.shadowRoot.querySelectorAll("z-list-group a"));
67
+ }
68
+ if (this.viewPortWidth !== Device.MOBILE && this.wrapElement.scrollWidth > this.wrapElement.clientWidth) {
69
+ this.hasOverflow = true;
70
+ }
71
+ }
72
+ initializeBreadcrumb(isMobile) {
73
+ if (isMobile) {
74
+ this.pathsList = this.getPathsItemsList().filter((item) => !!item.path);
75
+ }
76
+ else {
77
+ this.pathsList = this.getPathsItemsList();
78
+ }
79
+ this.totalLenght = this.pathsList.length;
80
+ this.homepageNode = this.pathsList.shift();
81
+ this.pathListCopy = JSON.parse(JSON.stringify(this.pathsList));
82
+ this.collapsedElements = [];
83
+ if (this.totalLenght > this.maxNodesToShow) {
84
+ this.collapsedElements = this.pathsList.splice(0, this.pathsList.length - 2);
85
+ }
86
+ }
87
+ checkEllipsisOrOverflowMenu() {
88
+ if (this.pathListCopy.length > 0) {
89
+ for (let i = 0; i < this.pathsList.length; i++) {
90
+ if (this.pathsList[i].text.length > this.truncateChar) {
91
+ if (this.truncatePosition !== null) {
92
+ if (this.truncatePosition > 0) {
93
+ const arrayToPush = this.pathListCopy.splice(0, this.truncatePosition);
94
+ arrayToPush.forEach((item) => {
95
+ this.collapsedElements.push(item);
96
+ });
97
+ this.pathsList.splice(0, this.truncatePosition);
98
+ this.truncatePosition = 0;
99
+ return;
100
+ }
101
+ if (this.truncatePosition === 0) {
102
+ const arrayToPush = this.pathListCopy.splice(0, this.truncatePosition + 1);
103
+ this.collapsedElements.push(...arrayToPush);
104
+ this.pathsList.splice(0, this.truncatePosition + 1);
105
+ this.truncatePosition = null;
106
+ return;
107
+ }
108
+ }
109
+ if (i !== this.pathsList.length - 1) {
110
+ const truncatedString = this.truncateWithEllipsis(this.pathsList[i].text, this.truncateChar);
111
+ this.currentEllipsisText = this.pathsList[i].text;
112
+ this.pathsList[i].text = truncatedString;
113
+ this.pathsList[i].hasTooltip = true;
114
+ this.truncatePosition = i;
115
+ return;
116
+ }
117
+ }
118
+ }
119
+ }
120
+ }
121
+ truncateWithEllipsis(str, length) {
122
+ const ending = "&mldr;";
123
+ if (str.length > length) {
124
+ return str.substring(0, length - 1) + ending;
125
+ }
126
+ return str;
127
+ }
128
+ getPathsItemsList() {
129
+ return Array.from(this.hostElement.children).map((item) => {
130
+ return {
131
+ text: item.textContent,
132
+ path: item.href,
133
+ hasTooltip: false,
134
+ };
135
+ });
136
+ }
137
+ renderMobileBreadcrumb() {
138
+ const lastPath = this.pathsList[this.pathsList.length - 1];
139
+ return (h("nav", { "aria-label": "Breadcrumb", class: {
140
+ underlined: this.pathStyle === BreadcrumbPathStyle.UNDERLINED,
141
+ semibold: this.pathStyle === BreadcrumbPathStyle.SEMIBOLD,
142
+ } }, h("ol", null, this.renderNode(lastPath, true))));
143
+ }
144
+ renderHomepageNode(item) {
145
+ return (h("li", null, h("a", { class: {
146
+ "homepage-icon": this.homepageVariant === BreadcrumbHomepageVariant.ICON,
147
+ "homepage-text": this.homepageVariant === BreadcrumbHomepageVariant.TEXT,
148
+ }, href: item.path, onClick: (e) => this.handlePreventFollowUrl(e, item) }, this.homepageVariant === BreadcrumbHomepageVariant.ICON ? (h("z-icon", { name: "home", fill: "color-link-primary", height: 16, width: 16 })) : ("Home"))));
149
+ }
150
+ renderNode(item, mobile) {
151
+ return (h("li", null, item.hasTooltip && (h("z-popover", { class: "full-path-tooltip", "bind-to": this.triggerEllipsis, open: this.popoverEllipsisOpen, position: PopoverPosition.BOTTOM_RIGHT, closable: false, showArrow: true }, h("span", { class: "tooltip-content" }, this.currentEllipsisText))), h("a", { class: {
152
+ "missing-path": !item.path,
153
+ "text-ellipsis": mobile,
154
+ }, ref: (val) => (this.triggerEllipsis = val), "aria-current": item.path ? undefined : "page", href: item.path, onClick: (e) => this.handlePreventFollowUrl(e, item), onMouseOver: () => {
155
+ if (item.hasTooltip) {
156
+ this.popoverEllipsisOpen = true;
157
+ }
158
+ }, onMouseLeave: () => {
159
+ if (item.hasTooltip) {
160
+ this.popoverEllipsisOpen = false;
161
+ }
162
+ }, innerHTML: mobile ? `<z-icon fill="color-link-primary" name="chevron-left"></z-icon>${item.text}` : item.text })));
163
+ }
164
+ renderBreadcrumb() {
165
+ return (h("nav", { ref: (val) => (this.wrapElement = val), "aria-label": "Breadcrumb", class: {
166
+ underlined: this.pathStyle === BreadcrumbPathStyle.UNDERLINED,
167
+ semibold: this.pathStyle === BreadcrumbPathStyle.SEMIBOLD,
168
+ } }, h("ol", null, this.renderHomepageNode(this.homepageNode), this.collapsedElements.length ? this.renderOverflowMenu() : "", this.pathsList.map((item) => this.renderNode(item, false)))));
169
+ }
170
+ togglePopover() {
171
+ if (!this.collapsedElementsRef.open) {
172
+ this.collapsedElementsRef.open = true;
173
+ }
174
+ }
175
+ handlePreventFollowUrl(e, item) {
176
+ if (this.preventFollowUrl) {
177
+ e.preventDefault();
178
+ this.clickOnNode.emit(item.path);
179
+ }
180
+ }
181
+ handleOverflowMenuAccessibility(e) {
182
+ const anchorElementsLenght = this.anchorElements.length;
183
+ if (e.key === KeyboardCode.TAB) {
184
+ e.preventDefault();
185
+ return;
186
+ }
187
+ e.stopPropagation();
188
+ const arrows = [KeyboardCode.ARROW_DOWN, KeyboardCode.ARROW_UP];
189
+ if (arrows.includes(e.key)) {
190
+ e.preventDefault();
191
+ if (e.key === KeyboardCode.ARROW_DOWN) {
192
+ this.currentIndex = anchorElementsLenght === this.currentIndex + 1 ? 0 : this.currentIndex + 1;
193
+ }
194
+ if (e.key === KeyboardCode.ARROW_UP) {
195
+ this.currentIndex = this.currentIndex <= 0 ? anchorElementsLenght - 1 : this.currentIndex - 1;
196
+ }
197
+ this.anchorElements[this.currentIndex].focus();
198
+ }
199
+ if (e.key === KeyboardCode.ESC) {
200
+ this.triggerButton.focus();
201
+ }
202
+ }
203
+ renderOverflowMenu() {
204
+ if (this.collapsedElements.length) {
205
+ return (h("li", null, h("z-popover", { class: "hidden-paths-popover", ref: (val) => (this.collapsedElementsRef = val), "bind-to": this.triggerButton, position: PopoverPosition.BOTTOM_RIGHT, closable: true, showArrow: true }, h("div", { class: "popover-content" }, h("z-list", null, h("z-list-group", { size: ListSize.SMALL }, this.collapsedElements.map((item, index, array) => {
206
+ return (h("div", null, h("z-list-element", { clickable: true }, h("a", { class: "text-ellipsis", href: item.path, onClick: (e) => this.handlePreventFollowUrl(e, item), onKeyDown: (e) => this.handleOverflowMenuAccessibility(e) }, item.text)), index < array.length - 1 && h("z-divider", { color: "color-surface03" })));
207
+ }))))), h("button", { "aria-label": "Mostra pi\u00F9 breadcrumb", "aria-haspopup": "true", ref: (el) => (this.triggerButton = el), class: "dots", onClick: () => {
208
+ this.togglePopover();
209
+ }, onKeyDown: (e) => {
210
+ handleKeyboardSubmit(e, this.togglePopover.bind(this));
211
+ setTimeout(() => {
212
+ this.anchorElements[0].focus();
213
+ }, 100);
214
+ } }, "...")));
215
+ }
216
+ }
217
+ render() {
218
+ return (h(Host, { style: { "--line-clamp-popover": `${this.overflowMenuItemRows}` } }, this.viewPortWidth === Device.MOBILE ? this.renderMobileBreadcrumb() : this.renderBreadcrumb()));
219
+ }
220
+ get hostElement() { return getElement(this); }
221
+ static get watchers() { return {
222
+ "maxNodesToShow": ["handlePropChange"],
223
+ "viewPortWidth": ["handleResizeUp"]
224
+ }; }
225
+ };
226
+ ZBreadcrumb.style = stylesCss;
227
+
228
+ export { ZBreadcrumb as z_breadcrumb };
@@ -1,7 +1,7 @@
1
- import { r as registerInstance, c as createEvent, h } from './index-b3a91e19.js';
2
- import { t as tabletBreakpoint } from './breakpoints-e07f80e7.js';
1
+ import { r as registerInstance, c as createEvent, h } from './index-396432db.js';
2
+ import { t as tabletBreakpoint } from './breakpoints-3c3dbb8c.js';
3
3
 
4
- const stylesCss = ":host,button{max-width:100%}button{height:36px;padding:0 var(--space-unit);border:var(--border-size-medium) solid var(--myz-blue);background-color:var(--bg-white);border-radius:var(--border-radius);color:var(--myz-blue);cursor:pointer;fill:var(--myz-blue);outline:none}button::-moz-focus-inner{border:0}button:hover{border-color:var(--myz-blue-dark);color:var(--myz-blue-dark);fill:var(--myz-blue-dark)}button:focus{border-color:var(--myz-blue);box-shadow:0 0 2px 2px var(--accent-dark);color:var(--myz-blue);fill:var(--myz-blue)}button:active{border-color:var(--myz-blue-light);box-shadow:0 2px 4px 0 rgb(0 0 0 / 40%);color:var(--myz-blue-light);fill:var(--myz-blue-light)}button.selected{border-color:var(--myz-blue-dark);background-color:var(--myz-blue-dark);color:var(--bg-white);fill:var(--bg-white)}button>label{display:flex;align-items:center;cursor:pointer;font-family:var(--dashboard-font);font-size:14px;font-weight:var(--font-sb)}button>label>span.ellipsis{overflow:hidden;padding:0;margin:0;text-overflow:ellipsis;white-space:nowrap}button>label>span.counter{margin-right:calc(var(--space-unit) * 2);margin-left:calc(var(--space-unit) / 2)}button>label>span.sort{margin-right:var(--half-x1);white-space:nowrap}button>span{margin-right:calc(var(--space-unit) * 0.5);font-family:var(--dashboard-font);font-size:14px;font-weight:var(--font-rg)}button>z-icon{padding-top:calc(var(--space-unit) * 0.5)}@media only screen and (min-width: 768px){:host,button{max-width:325px}}@media only screen and (min-width: 1025px){:host,button{max-width:490px}}";
4
+ const stylesCss = "button{display:flex;max-width:100%;height:36px;align-items:center;padding:0 var(--space-unit);border:var(--border-size-medium) solid var(--color-primary01);background-color:var(--color-surface01);border-radius:var(--border-radius);color:var(--color-primary01);cursor:pointer;fill:var(--color-primary01);font-family:var(--font-family-sans);font-size:14px;font-weight:var(--font-sb);outline:none}button::-moz-focus-inner{border:0}button:hover{border-color:var(--color-hover-primary);color:var(--color-hover-primary);fill:var(--color-hover-primary)}button:focus{border-color:var(--color-primary01);box-shadow:var(--shadow-focus-primary);color:var(--color-primary01);fill:var(--color-primary01)}button:active{border-color:var(--color-pressed-primary);box-shadow:var(--shadow-2);color:var(--color-pressed-primary);fill:var(--color-pressed-primary)}button.selected{border-color:var(--color-active-primary);background-color:var(--color-active-primary);color:var(--color-text-inverse);fill:var(--color-text-inverse)}button>span.ellipsis{overflow:hidden;padding:0;margin:0;text-overflow:ellipsis;white-space:nowrap}button>span.counter{margin-right:calc(var(--space-unit) * 2);margin-left:calc(var(--space-unit) / 2)}button>span.sort{margin-right:calc(var(--space-unit) / 2);white-space:nowrap}button>span{margin-right:calc(var(--space-unit) / 2)}@media (min-width: 768px){button{max-width:325px}}@media (min-width: 1152px){button{max-width:490px}}";
5
5
 
6
6
  const ZButtonSort = class {
7
7
  constructor(hostRef) {
@@ -41,7 +41,7 @@ const ZButtonSort = class {
41
41
  return this.ellipsis.offsetWidth < this.ellipsis.scrollWidth;
42
42
  }
43
43
  render() {
44
- return (h("button", { title: this.setButtonTitle(), id: this.buttonid, class: this.isselected && "selected", onClick: () => this.emitButtonSortClick() }, h("label", null, h("span", { ref: (el) => (this.ellipsis = el), class: "ellipsis" }, !this.sortasc && this.desclabel ? this.desclabel : this.label), h("span", { class: "counter" }, this.counter && ` (${this.counter})`), h("span", { class: "sort" }, this.sortasc ? this.sortlabelasc : this.sortlabeldesc), h("z-icon", { name: "caret-up-down", width: 16, height: 16 }))));
44
+ return (h("button", { title: this.setButtonTitle(), id: this.buttonid, class: this.isselected && "selected", onClick: () => this.emitButtonSortClick() }, h("span", { ref: (el) => (this.ellipsis = el), class: "ellipsis" }, !this.sortasc && this.desclabel ? this.desclabel : this.label), h("span", { class: "counter" }, this.counter && ` (${this.counter})`), h("span", { class: "sort" }, this.sortasc ? this.sortlabelasc : this.sortlabeldesc), h("z-icon", { name: "caret-up-down", width: 16, height: 16 })));
45
45
  }
46
46
  };
47
47
  ZButtonSort.style = stylesCss;
@@ -1,28 +1,15 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-b3a91e19.js';
2
- import { C as CardVariant } from './index-4f1e2705.js';
1
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-396432db.js';
2
+ import { g as CardVariant } from './index-9d240d39.js';
3
3
 
4
- const stylesCss = ":host{--aspect-ratio:1.62;--z-card--border-color:var(--gray200);--z-card--color-cover-background:var(--color-surface01);--z-card--text-background:var(--color-surface01);--z-card--text-border-radius:none;--z-card--text-border:none;position:relative;display:flex;flex-direction:column;font-family:var(--font-family-sans);font-weight:var(--font-rg)}*,::slotted(*){box-sizing:border-box}:host(:not([variant=\"overlay\"])) .cover-container{position:relative;width:100%}.cover-container{padding-bottom:calc(100% / var(--aspect-ratio))}::slotted([slot=\"cover\"]),.color-cover{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:center}.cover-container>z-icon{--z-icon-width:calc(var(--space-unit) * 11);--z-icon-height:var(--z-icon-width);position:absolute;top:calc(50% - calc(var(--z-icon-height) / 2));left:calc(50% - calc(var(--z-icon-width) / 2));fill:var(--color-primary01)}.color-cover{background-color:var(--z-card--color-cover-background)}.content{display:flex;flex-direction:column;padding-top:var(--space-unit)}.color-cover .cover-content{display:flex;height:100%;flex-direction:column;justify-content:flex-end;padding:var(--space-unit)}::slotted([slot=\"metadata\"]),::slotted([slot=\"title\"]),::slotted([slot=\"text\"]){display:box;overflow:hidden;-webkit-box-orient:vertical}::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\"]){border:var(--z-card--text-border);background-color:var(--z-card--text-background);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, rgb(0 0 0 / 100%), rgb(0 0 0 / 0%));color:var(--color-text-inverse);fill:var(--color-text-inverse)}";
4
+ const stylesCss = ":host{--aspect-ratio:1.62;--z-card--border-color:var(--gray200);--z-card--color-cover-background:var(--color-surface01);--z-card--text-background:var(--color-surface01);--z-card--text-border-radius:none;--z-card--text-border:none;--z-card--text-padding:calc(var(--space-unit) * 2) var(--space-unit);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;height:100%;flex-direction:column;justify-content:flex-end;padding:var(--space-unit)}::slotted([slot=\"metadata\"]),::slotted([slot=\"title\"]),::slotted([slot=\"text\"]){display:box;overflow:hidden;-webkit-box-orient:vertical}::slotted([slot=\"title\"]:not(:last-child)),::slotted([slot=\"text\"]:not(:last-child)){margin-bottom:var(--space-unit)}::slotted([slot=\"title\"])::before{position:absolute;z-index:1;top:0;right:0;bottom:0;left:0;content:\"\"}::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;color:inherit;font-size:inherit;font-weight:var(--font-sb);-webkit-line-clamp:2;text-decoration:none}::slotted([slot=\"text\"]){margin:0;-webkit-line-clamp:3}.actions{position:relative;z-index:2;display:flex;flex-direction:row;align-items:center}::slotted([slot=\"action\"]:not(:last-child)){margin-right:calc(var(--space-unit) * 2)}:host([clickable]) ::slotted([slot=\"title\"]:focus:focus-visible)::before{box-shadow:var(--shadow-focus-primary)}:host([clickable]) ::slotted([slot=\"title\"]:focus:focus-visible){box-shadow:none !important;outline:none !important}:host([variant=\"text\"]){border:var(--z-card--text-border);background-color:var(--z-card--text-background);border-radius:var(--z-card--text-border-radius)}:host([show-shadow])>.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:var(--z-card--text-padding)}: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([show-shadow]){box-shadow:var(--shadow-2)}:host([variant=\"shadow\"][clickable]:hover),:host([clickable][show-shadow]:hover){box-shadow:var(--shadow-4)}:host([variant=\"shadow\"][clickable]:focus:focus-visible),:host([clickable][show-shadow]:focus:focus-visible){box-shadow:var(--shadow-focus-primary)}:host([variant=\"shadow\"][clickable]:active),:host([clickable][show-shadow]: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, rgb(0 0 0 / 100%), rgb(0 0 0 / 0%));color:var(--color-text-inverse);fill:var(--color-text-inverse)}";
5
5
 
6
6
  const ZCard = class {
7
7
  constructor(hostRef) {
8
8
  registerInstance(this, hostRef);
9
- this.cardClicked = createEvent(this, "cardClicked", 7);
10
- /** Enable click interactions on the card. Default: false */
11
- this.clickable = false;
12
9
  /** Enable shadow. Default: false. */
13
- this.showshadow = false;
14
- }
15
- onClick(ev) {
16
- // Do nothing for clicks on actions.
17
- if (ev.target.getAttribute("slot") === "action") {
18
- return;
19
- }
20
- if (!this.clickable) {
21
- ev.preventDefault();
22
- ev.stopPropagation();
23
- return;
24
- }
25
- this.cardClicked.emit();
10
+ this.showShadow = false;
11
+ /** Enable 'clickable' style like hover and focus style. */
12
+ this.clickable = false;
26
13
  }
27
14
  componentWillLoad() {
28
15
  this.hasCoverImage = this.host.querySelector('[slot="cover"]') !== null;
@@ -1,5 +1,5 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-b3a91e19.js';
2
- import { c as CarouselArrowsPosition, d as CarouselProgressMode, b as ButtonSize, B as ButtonVariant } from './index-4f1e2705.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-396432db.js';
2
+ import { h as CarouselArrowsPosition, i as CarouselProgressMode, C as ControlSize, B as ButtonVariant } from './index-9d240d39.js';
3
3
 
4
4
  const stylesCss = "z-carousel{font-family:var(--font-family-sans);font-weight:var(--font-rg);--z-carousel-gutter:0}z-carousel[single],z-carousel[single=\"true\"]{display:flex;flex-direction:column;align-items:center;justify-content:center}z-carousel[single=\"true\"] .z-carousel-container,z-carousel[single] .z-carousel-container{width:fit-content;max-width:100%}z-carousel .loading-items-container{display:none}z-carousel .z-carousel-container{display:flex;flex-direction:column}z-carousel .z-carousel-wrapper{position:relative}z-carousel .z-carousel-title{margin-bottom:var(--space-unit);color:var(--gray800)}z-carousel .z-carousel-items-container{display:flex;max-width:100%;flex-direction:row;margin:0;list-style:none;-ms-overflow-style:none;overflow-x:scroll;padding-inline-start:0;scroll-snap-type:x mandatory;scrollbar-width:none;}z-carousel .z-carousel-items-container::-webkit-scrollbar{display:none}z-carousel .z-carousel-items-container>*:not(:last-child){margin-right:var(--z-carousel-gutter)}z-carousel[single=\"true\"] .z-carousel-items-container>*:not(:last-child),z-carousel[single] .z-carousel-items-container>*:not(:last-child){margin-right:0}z-carousel .z-carousel-items-container>li{scroll-snap-align:center}z-button[data-direction]{--z-icon-width:32px;--z-icon-height:32px;position:absolute;bottom:50%;transform:translateY(50%)}z-button[data-direction=\"next\"]{right:0}z-carousel .z-carousel-footer{display:flex;flex-direction:row;align-items:center;justify-content:center;margin-top:var(--space-unit)}z-carousel .z-carousel-footer .numbers-progress,z-carousel .z-carousel-footer .dots-progress{display:flex;align-items:center;justify-content:center}z-carousel .z-carousel-footer .dots-progress button{display:flex;align-items:center;padding:0;border:none;margin:0;background-color:transparent}z-carousel .z-carousel-footer .dots-progress button:not(.current){cursor:pointer}z-carousel .z-carousel-footer .numbers-progress{margin:0 calc(var(--space-unit) / 2);column-gap:calc(var(--space-unit) / 2)}z-carousel .z-carousel-footer .numbers-progress .current{font-weight:var(--font-sb)}z-carousel .z-carousel-footer .dots-progress button.current z-icon{fill:var(--gray800)}z-carousel .z-carousel-footer .dots-progress button:not(.current) z-icon{fill:var(--gray200)}";
5
5
 
@@ -118,18 +118,22 @@ const ZCarousel = class {
118
118
  if (!this.itemsContainer) {
119
119
  return;
120
120
  }
121
- this.items = Array.from(this.itemsContainer.querySelectorAll("li"));
121
+ this.items = Array.from(this.itemsContainer.querySelectorAll(":scope > li"));
122
122
  if (this.single) {
123
123
  this.setIntersectionObserver();
124
124
  }
125
125
  this.itemsContainer.addEventListener("scroll", this.checkNavigationValidity.bind(this), { passive: true });
126
126
  this.checkNavigationValidity();
127
+ this.items.forEach((item) => {
128
+ item.setAttribute("role", "group");
129
+ item.setAttribute("aria-roledescription", "slide");
130
+ });
127
131
  }
128
132
  render() {
129
133
  if (this.isLoading) {
130
134
  return (h(Host, null, this.label && h("div", { class: "heading-4 z-carousel-title" }, this.label), h("div", { style: { height: `${this.ghostLoadingHeight}px` } }, h("z-ghost-loading", null), h("div", { class: "loading-items-container" }, h("slot", null)))));
131
135
  }
132
- return (h(Host, null, h("div", { class: "z-carousel-container" }, this.label && h("div", { class: "heading-4 z-carousel-title" }, this.label), h("div", { class: "z-carousel-wrapper" }, this.arrowsPosition === CarouselArrowsPosition.OVER && (h("z-button", { size: ButtonSize.SMALL, "data-direction": "prev", icon: "chevron-left", onClick: this.onPrev.bind(this), disabled: !this.canNavigatePrev })), h("ul", { class: "z-carousel-items-container" }, h("slot", null)), this.arrowsPosition === CarouselArrowsPosition.OVER && (h("z-button", { size: ButtonSize.SMALL, "data-direction": "next", icon: "chevron-right", onClick: this.onNext.bind(this), disabled: !this.canNavigateNext })))), this.canShowFooter() && (h("div", { class: "z-carousel-footer" }, this.arrowsPosition === CarouselArrowsPosition.BOTTOM && (h("z-button", { size: ButtonSize.SMALL, variant: ButtonVariant.TERTIARY, icon: "arrow-simple-left-filled", onClick: this.onPrev.bind(this), disabled: !this.canNavigatePrev })), this.progressMode === CarouselProgressMode.DOTS && this.single && this.items && (h("div", { class: "dots-progress" }, this.items.map((_item, key) => (h("button", { type: "button", class: { current: this.highlightedIndicator === key }, onClick: () => this.goTo(key) }, h("z-icon", { name: this.highlightedIndicator === key ? "white-circle-filled" : "black-circle-filled" })))))), this.progressMode === CarouselProgressMode.NUMBERS && this.single && this.items && (h("div", { class: "numbers-progress interactive-3" }, h("span", { class: "current" }, this.current + 1), h("span", null, "di"), h("span", null, this.items.length))), this.arrowsPosition === CarouselArrowsPosition.BOTTOM && (h("z-button", { size: ButtonSize.SMALL, variant: ButtonVariant.TERTIARY, icon: "arrow-simple-right-filled", onClick: this.onNext.bind(this), disabled: !this.canNavigateNext }))))));
136
+ return (h(Host, null, h("div", { class: "z-carousel-container", role: "group", "aria-roledescription": "carousel", "aria-label": this.label || "Carousel" }, this.label && h("div", { class: "heading-4 z-carousel-title" }, this.label), h("div", { class: "z-carousel-wrapper" }, this.arrowsPosition === CarouselArrowsPosition.OVER && (h("z-button", { size: ControlSize.SMALL, "data-direction": "prev", icon: "chevron-left", onClick: this.onPrev.bind(this), disabled: !this.canNavigatePrev, ariaLabel: this.single ? "Mostra l'elemento precedente" : "Mostra gli elementi precedenti" })), h("ul", { class: "z-carousel-items-container", "aria-atomic": "false", "aria-live": "polite" }, h("slot", null)), this.arrowsPosition === CarouselArrowsPosition.OVER && (h("z-button", { size: ControlSize.SMALL, "data-direction": "next", icon: "chevron-right", onClick: this.onNext.bind(this), disabled: !this.canNavigateNext, ariaLabel: this.single ? "Mostra l'elemento successivo" : "Mostra gli elementi successivi" })))), this.canShowFooter() && (h("div", { class: "z-carousel-footer" }, this.arrowsPosition === CarouselArrowsPosition.BOTTOM && (h("z-button", { size: ControlSize.SMALL, variant: ButtonVariant.TERTIARY, icon: "arrow-simple-left-filled", onClick: this.onPrev.bind(this), disabled: !this.canNavigatePrev, ariaLabel: this.single ? "Mostra l'elemento precedente" : "Mostra gli elementi precedenti" })), this.progressMode === CarouselProgressMode.DOTS && this.single && this.items && (h("div", { class: "dots-progress" }, this.items.map((_item, key) => (h("button", { type: "button", class: { current: this.highlightedIndicator === key }, "aria-label": this.highlightedIndicator === key ? "Elemento corrente" : `Spostati all'elemento ${key + 1}`, onClick: () => this.goTo(key) }, h("z-icon", { name: this.highlightedIndicator === key ? "white-circle-filled" : "black-circle-filled" })))))), this.progressMode === CarouselProgressMode.NUMBERS && this.single && this.items && (h("div", { class: "numbers-progress interactive-3" }, h("span", { class: "current" }, this.current + 1), h("span", null, "di"), h("span", null, this.items.length))), this.arrowsPosition === CarouselArrowsPosition.BOTTOM && (h("z-button", { size: ControlSize.SMALL, variant: ButtonVariant.TERTIARY, icon: "arrow-simple-right-filled", onClick: this.onNext.bind(this), disabled: !this.canNavigateNext, ariaLabel: this.single ? "Mostra l'elemento successivo" : "Mostra gli elementi successivi" }))))));
133
137
  }
134
138
  get hostElement() { return getElement(this); }
135
139
  static get watchers() { return {
@@ -1,9 +1,7 @@
1
- import { r as registerInstance, c as createEvent, h, a as getElement } from './index-b3a91e19.js';
2
- import { l as ZChipType, D as Device } from './index-4f1e2705.js';
3
- import { g as getDevice, h as handleKeyboardSubmit } from './utils-5a24a17b.js';
4
- import './breakpoints-e07f80e7.js';
1
+ import { r as registerInstance, c as createEvent, h, a as getElement } from './index-396432db.js';
2
+ import { q as ZChipType } from './index-9d240d39.js';
5
3
 
6
- const stylesCss = ".sc-z-chip-h>button.sc-z-chip{display:inline-flex;align-items:center;padding:0 calc(var(--space-unit) * 1.5);border:var(--border-size-small) solid var(--gray400);background-color:var(--bg-white);border-radius:14px;color:var(--text-grey-800);fill:var(--text-grey-800);font-family:var(--dashboard-font);font-size:14px;font-weight:var(--font-sb)}.sc-z-chip-h>button.sc-z-chip:not(:disabled)>z-icon.sc-z-chip:last-child:hover{color:var(--color-hover-primary);fill:var(--color-hover-primary)}.sc-z-chip-h>button.sc-z-chip:hover:not(:disabled)>z-icon.sc-z-chip:first-child{fill:var(--color-icon02)}.sc-z-chip-h>button.sc-z-chip>z-icon.icon-sx.sc-z-chip{margin-right:calc(var(--space-unit) / 2)}.sc-z-chip-h>button.sc-z-chip>z-icon.sc-z-chip:last-child{margin-left:var(--space-unit);cursor:pointer;fill:var(--color-primary01)}.sc-z-chip-h>button.sc-z-chip:disabled,.sc-z-chip-h>button.sc-z-chip:disabled>z-icon.sc-z-chip{color:var(--color-disabled03);fill:var(--color-disabled03)}.sc-z-chip-h>button.sc-z-chip:disabled>z-icon.sc-z-chip{cursor:auto}.sc-z-chip-h>button.sc-z-chip:disabled{border:var(--border-size-small) solid var(--color-disabled01)}.sc-z-chip-h>button.sc-z-chip:focus:focus-visible,.sc-z-chip-h>div.sc-z-chip:focus:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none}.sc-z-chip-h>button.sc-z-chip:hover:not(:disabled):active:hover>z-icon.sc-z-chip:last-child{color:var(--color-primary01);fill:var(--color-primary01)}.sc-z-chip-h>div.sc-z-chip{display:inline-flex;min-height:28px;align-items:center;padding:0 calc(var(--space-unit) * 1.5);border:var(--border-size-small) solid var(--bg-grey-200);background-color:var(--bg-white);border-radius:14px;color:var(--text-grey-800);fill:var(--text-grey-800);font-family:var(--dashboard-font);font-size:14px;line-height:28px}.sc-z-chip-h>div.sc-z-chip>z-icon.sc-z-chip{margin-right:calc(var(--space-unit) / 2)}.sc-z-chip-h>button.default.sc-z-chip,.sc-z-chip-h>div.default.sc-z-chip{min-height:44px;border-radius:22px;line-height:44px}.sc-z-chip-h>button.medium.sc-z-chip,.sc-z-chip-h>div.medium.sc-z-chip{min-height:40px;border-radius:22px;line-height:40px}.sc-z-chip-h>button.small.sc-z-chip,.sc-z-chip-h>div.small.sc-z-chip{min-height:36px;border-radius:22px;line-height:36px}@media only screen and (min-width: 1152px){.sc-z-chip-h>button.sc-z-chip{font-size:12px}.sc-z-chip-h>div.sc-z-chip{font-size:12px}.sc-z-chip-h>button.default.sc-z-chip,.sc-z-chip-h>div.default.sc-z-chip{min-height:32px;border-radius:16px;line-height:32px}.sc-z-chip-h>button.medium.sc-z-chip,.sc-z-chip-h>div.medium.sc-z-chip{min-height:28px;border-radius:16px;line-height:28px}.sc-z-chip-h>button.small.sc-z-chip,.sc-z-chip-h>div.small.sc-z-chip{min-height:24px;border-radius:16px;line-height:24px}}";
4
+ const stylesCss = ".sc-z-chip-h>.z-chip-container.sc-z-chip{display:inline-flex;min-height:28px;align-items:center;padding:0 calc(var(--space-unit) * 1.5);border:var(--border-size-small) solid var(--gray400);background-color:var(--color-surface01);border-radius:14px;color:var(--color-text01);fill:var(--color-text01);font-family:var(--font-family-sans);font-size:14px;line-height:28px}.sc-z-chip-h>.z-chip-interactive.sc-z-chip{font-weight:var(--font-sb)}.sc-z-chip-h>.z-chip-container.sc-z-chip>button.sc-z-chip{padding:0;border:none;margin-left:var(--space-unit);background-color:transparent;cursor:pointer}.sc-z-chip-h>.z-chip-container.sc-z-chip>z-icon.sc-z-chip:first-child{margin-right:calc(var(--space-unit) / 2)}.sc-z-chip-h>.z-chip-container.sc-z-chip:not([aria-disabled]):hover>z-icon.sc-z-chip:first-child{fill:var(--color-icon02)}.sc-z-chip-h>.z-chip-container.sc-z-chip .interactive-icon.sc-z-chip{fill:var(--color-primary01)}.sc-z-chip-h>.z-chip-container.sc-z-chip:not([aria-disabled]) .interactive-icon.sc-z-chip:hover{color:var(--color-hover-primary);fill:var(--color-hover-primary)}.sc-z-chip-h>.z-chip-container[aria-disabled].sc-z-chip,.sc-z-chip-h>.z-chip-container[aria-disabled].sc-z-chip z-icon.sc-z-chip{color:var(--color-disabled03);cursor:auto;fill:var(--color-disabled03)}.sc-z-chip-h>.z-chip-container[aria-disabled].sc-z-chip{border:var(--border-size-small) solid var(--color-disabled01)}.sc-z-chip-h>.z-chip-container.sc-z-chip>button.sc-z-chip:focus:focus-visible{border-radius:100%;box-shadow:var(--shadow-focus-primary);outline:none}.sc-z-chip-h>button.sc-z-chip:not([disabled]):active:hover .interactive-icon.sc-z-chip{color:var(--color-primary01);fill:var(--color-primary01)}.sc-z-chip-h>.z-chip-container.sc-z-chip>z-icon.sc-z-chip,.sc-z-chip-h>.z-chip-container.sc-z-chip .interactive-icon.sc-z-chip{--z-icon-width:22px;--z-icon-height:22px}.sc-z-chip-h>.z-chip-container.default.sc-z-chip{min-height:44px;border-radius:22px;line-height:44px}.sc-z-chip-h>.z-chip-container.medium.sc-z-chip{min-height:40px;border-radius:22px;line-height:40px}.sc-z-chip-h>.z-chip-container.small.sc-z-chip{min-height:36px;border-radius:22px;line-height:36px}@media (min-width: 1152px){.sc-z-chip-h>.z-chip-container.sc-z-chip{font-size:12px}.sc-z-chip-h>.z-chip-container.default.sc-z-chip{min-height:32px;border-radius:16px;line-height:32px}.sc-z-chip-h>.z-chip-container.medium.sc-z-chip{min-height:28px;border-radius:16px;line-height:28px}.sc-z-chip-h>.z-chip-container.small.sc-z-chip{min-height:24px;border-radius:16px;line-height:24px}.sc-z-chip-h>.z-chip-container.sc-z-chip>z-icon.sc-z-chip,.sc-z-chip-h>.z-chip-container.sc-z-chip .interactive-icon.sc-z-chip{--z-icon-width:14px;--z-icon-height:14px}}";
7
5
 
8
6
  const ZChip = class {
9
7
  constructor(hostRef) {
@@ -11,20 +9,17 @@ const ZChip = class {
11
9
  this.interactiveIconClick = createEvent(this, "interactiveIconClick", 7);
12
10
  /** z-chip size type, can be default, medium or small */
13
11
  this.type = ZChipType.DEFAULT;
14
- /** set z-chip as disabled */
12
+ /** set z-chip as disabled */
15
13
  this.disabled = false;
16
- }
17
- emitinteractiveIconClick() {
18
- this.interactiveIconClick.emit();
19
- }
20
- getIconSize() {
21
- return getDevice() !== Device.DESKTOP ? 22 : 14;
14
+ /** z-chip aria-label string */
15
+ this.ariaLabel = "";
22
16
  }
23
17
  render() {
24
- if (this.interactiveIcon) {
25
- return (h("button", { class: this.type, disabled: this.disabled, tabindex: "0", type: "button" }, this.icon && (h("z-icon", { class: "icon-sx", name: this.icon, width: this.getIconSize(), height: this.getIconSize() })), h("slot", null), h("z-icon", { tabIndex: this.disabled ? -1 : 0, onClick: () => this.emitinteractiveIconClick(), onKeyUp: (e) => handleKeyboardSubmit(e, this.emitinteractiveIconClick.bind(this)), name: this.interactiveIcon, width: this.getIconSize(), height: this.getIconSize() })));
26
- }
27
- return (h("div", { class: `${this.type}`, tabindex: "0" }, this.icon && (h("z-icon", { name: this.icon, width: this.getIconSize(), height: this.getIconSize() })), h("slot", null)));
18
+ return (h("div", { class: {
19
+ "z-chip-container": true,
20
+ "z-chip-interactive": !!this.interactiveIcon,
21
+ [this.type]: true,
22
+ }, "aria-disabled": this.disabled }, this.icon && h("z-icon", { name: this.icon }), h("slot", null), this.interactiveIcon && (h("button", { type: "button", onClick: () => this.interactiveIconClick.emit(), onKeyUp: () => this.interactiveIconClick.emit(), "aria-label": this.ariaLabel, disabled: this.disabled }, h("z-icon", { class: "interactive-icon", name: this.interactiveIcon })))));
28
23
  }
29
24
  get el() { return getElement(this); }
30
25
  };