@zanichelli/albe-web-components 16.3.4-RC → 16.3.5

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 (589) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/cjs/{index-041b41e6.js → index-01778132.js} +2 -2
  3. package/dist/cjs/{index-041b41e6.js.map → index-01778132.js.map} +1 -1
  4. package/dist/cjs/index-0335126f.js +67 -0
  5. package/dist/cjs/index-0335126f.js.map +1 -0
  6. package/dist/cjs/index-30387c1f.js +59 -0
  7. package/dist/cjs/index-30387c1f.js.map +1 -0
  8. package/dist/cjs/{index-b7759a0d.js → index-b26fbd76.js} +2 -2
  9. package/dist/cjs/{index-b7759a0d.js.map → index-b26fbd76.js.map} +1 -1
  10. package/dist/cjs/index-b504fdc8.js +47 -0
  11. package/dist/cjs/index-b504fdc8.js.map +1 -0
  12. package/dist/cjs/{index-25ded558.js → index-ef486baa.js} +2 -2
  13. package/dist/cjs/{index-25ded558.js.map → index-ef486baa.js.map} +1 -1
  14. package/dist/cjs/loader.cjs.js +1 -1
  15. package/dist/cjs/web-components-library.cjs.js +1 -1
  16. package/dist/cjs/z-accordion.cjs.entry.js +1 -1
  17. package/dist/cjs/z-alert.cjs.entry.js +1 -1
  18. package/dist/cjs/z-anchor-navigation.cjs.entry.js +1 -1
  19. package/dist/cjs/z-app-header_12.cjs.entry.js +9 -9
  20. package/dist/cjs/z-app-header_12.cjs.entry.js.map +1 -1
  21. package/dist/cjs/z-aria-alert.cjs.entry.js +1 -1
  22. package/dist/cjs/z-avatar.cjs.entry.js +2 -2
  23. package/dist/cjs/z-book-card.cjs.entry.js +1 -1
  24. package/dist/cjs/z-breadcrumb.cjs.entry.js +2 -2
  25. package/dist/cjs/z-button-sort.cjs.entry.js +1 -1
  26. package/dist/cjs/z-carousel.cjs.entry.js +1 -2
  27. package/dist/cjs/z-carousel.cjs.entry.js.map +1 -1
  28. package/dist/cjs/z-chip.cjs.entry.js +2 -2
  29. package/dist/cjs/z-combobox.cjs.entry.js +1 -1
  30. package/dist/cjs/z-cover-hero.cjs.entry.js +2 -2
  31. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +4 -4
  32. package/dist/cjs/z-ghost-loading.cjs.entry.js +1 -1
  33. package/dist/cjs/z-info-box.cjs.entry.js +1 -1
  34. package/dist/cjs/z-info-reveal.cjs.entry.js +1 -1
  35. package/dist/cjs/z-logo.cjs.entry.js +1 -1
  36. package/dist/cjs/z-menu-section.cjs.entry.js +1 -1
  37. package/dist/cjs/z-menu-section.cjs.entry.js.map +1 -1
  38. package/dist/cjs/z-myz-card-alert.cjs.entry.js +1 -1
  39. package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +1 -1
  40. package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +1 -1
  41. package/dist/cjs/z-myz-card-footer.cjs.entry.js +1 -1
  42. package/dist/cjs/z-myz-card-icon.cjs.entry.js +1 -1
  43. package/dist/cjs/z-myz-card-info.cjs.entry.js +1 -1
  44. package/dist/cjs/z-myz-card-list.cjs.entry.js +1 -1
  45. package/dist/cjs/z-myz-card_4.cjs.entry.js +4 -4
  46. package/dist/cjs/z-myz-list-item.cjs.entry.js +1 -1
  47. package/dist/cjs/z-myz-list.cjs.entry.js +1 -1
  48. package/dist/cjs/z-navigation-tabs.cjs.entry.js +2 -2
  49. package/dist/cjs/z-notification.cjs.entry.js +1 -1
  50. package/dist/cjs/z-otp.cjs.entry.js +2 -2
  51. package/dist/cjs/z-panel-elem.cjs.entry.js +2 -2
  52. package/dist/cjs/z-popover.cjs.entry.js +1 -1
  53. package/dist/cjs/z-section-title.cjs.entry.js +1 -1
  54. package/dist/cjs/z-select.cjs.entry.js +1 -1
  55. package/dist/cjs/z-skip-to-content.cjs.entry.js +1 -1
  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.cjs.entry.js +8 -8
  59. package/dist/cjs/z-table.cjs.entry.js.map +1 -1
  60. package/dist/cjs/z-tbody.cjs.entry.js +1 -1
  61. package/dist/cjs/z-td.cjs.entry.js +1 -1
  62. package/dist/cjs/z-tfoot.cjs.entry.js +1 -1
  63. package/dist/cjs/z-th.cjs.entry.js +1 -1
  64. package/dist/cjs/z-thead.cjs.entry.js +1 -1
  65. package/dist/cjs/z-toast-notification-list.cjs.entry.js +1 -1
  66. package/dist/cjs/z-toast-notification.cjs.entry.js +1 -1
  67. package/dist/cjs/z-toggle-button.cjs.entry.js +2 -2
  68. package/dist/cjs/z-toggle-switch.cjs.entry.js +3 -3
  69. package/dist/cjs/z-tooltip.cjs.entry.js +1 -1
  70. package/dist/cjs/z-tr.cjs.entry.js +3 -3
  71. package/dist/cjs/z-visually-hidden.cjs.entry.js +1 -1
  72. package/dist/collection/components/table/cells/z-td/index.js +1 -1
  73. package/dist/collection/components/table/cells/z-td/index.js.map +1 -1
  74. package/dist/collection/components/table/cells/z-td/styles.css +21 -13
  75. package/dist/collection/components/table/cells/z-th/index.js +49 -5
  76. package/dist/collection/components/table/cells/z-th/index.js.map +1 -1
  77. package/dist/collection/components/table/cells/z-th/styles.css +59 -24
  78. package/dist/collection/components/table/z-table/index.js +1 -1
  79. package/dist/collection/components/table/z-table/index.stories.js +19 -3
  80. package/dist/collection/components/table/z-table/index.stories.js.map +1 -1
  81. package/dist/collection/components/table/z-table/styles.css +0 -4
  82. package/dist/collection/components/table/z-tbody/index.js +1 -1
  83. package/dist/collection/components/table/z-tfoot/index.js +1 -1
  84. package/dist/collection/components/table/z-thead/index.js +1 -1
  85. package/dist/collection/components/table/z-tr/index.js +1 -1
  86. package/dist/collection/components/table/z-tr/styles.css +0 -1
  87. package/dist/collection/components/z-accordion/index.js +1 -1
  88. package/dist/collection/components/z-anchor-navigation/index.js +1 -1
  89. package/dist/collection/components/z-app-header/index.js +1 -1
  90. package/dist/collection/components/z-aria-alert/index.js +1 -1
  91. package/dist/collection/components/z-avatar/index.js +2 -2
  92. package/dist/collection/components/z-book-card/index.js +1 -1
  93. package/dist/collection/components/z-breadcrumb/index.js +2 -2
  94. package/dist/collection/components/z-button-sort/index.js +1 -1
  95. package/dist/collection/components/z-carousel/index.js +1 -2
  96. package/dist/collection/components/z-carousel/index.js.map +1 -1
  97. package/dist/collection/components/z-chip/index.js +2 -2
  98. package/dist/collection/components/z-combobox/index.js +1 -1
  99. package/dist/collection/components/z-cover-hero/index.js +2 -2
  100. package/dist/collection/components/z-divider/index.js +1 -1
  101. package/dist/collection/components/z-ghost-loading/index.js +1 -1
  102. package/dist/collection/components/z-info-box/index.js +1 -1
  103. package/dist/collection/components/z-info-reveal/index.js +1 -1
  104. package/dist/collection/components/z-input/index.js +1 -1
  105. package/dist/collection/components/z-input-message/index.js +1 -1
  106. package/dist/collection/components/z-logo/index.js +1 -1
  107. package/dist/collection/components/z-menu-section/index.js +2 -2
  108. package/dist/collection/components/z-menu-section/index.js.map +1 -1
  109. package/dist/collection/components/z-modal/index.js +4 -4
  110. package/dist/collection/components/z-navigation-tabs/index.js +2 -2
  111. package/dist/collection/components/z-notification/index.js +1 -1
  112. package/dist/collection/components/z-offcanvas/index.js +1 -3
  113. package/dist/collection/components/z-offcanvas/index.js.map +1 -1
  114. package/dist/collection/components/z-offcanvas/styles.css +4 -12
  115. package/dist/collection/components/z-panel-elem/index.js +2 -2
  116. package/dist/collection/components/z-popover/index.js +1 -1
  117. package/dist/collection/components/z-searchbar/index.js +1 -1
  118. package/dist/collection/components/z-section-title/index.js +1 -1
  119. package/dist/collection/components/z-select/index.js +1 -1
  120. package/dist/collection/components/z-skip-to-content/index.js +1 -1
  121. package/dist/collection/components/z-stepper/index.js +1 -1
  122. package/dist/collection/components/z-stepper-item/index.js +1 -1
  123. package/dist/collection/components/z-tag/index.js +2 -2
  124. package/dist/collection/components/z-toast-notification/index.js +1 -1
  125. package/dist/collection/components/z-toast-notification-list/index.js +1 -1
  126. package/dist/collection/components/z-toggle-button/index.js +2 -2
  127. package/dist/collection/components/z-toggle-switch/index.js +3 -3
  128. package/dist/collection/components/z-tooltip/index.js +1 -1
  129. package/dist/collection/components/z-visually-hidden/index.js +1 -1
  130. package/dist/collection/snowflakes/myz/card/z-myz-card/index.js +1 -1
  131. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js +1 -1
  132. package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js +1 -1
  133. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js +1 -1
  134. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js +1 -1
  135. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js +1 -1
  136. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js +1 -1
  137. package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js +1 -1
  138. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js +1 -1
  139. package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +1 -1
  140. package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js +1 -1
  141. package/dist/collection/snowflakes/myz/list/z-myz-list/index.js +1 -1
  142. package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js +1 -1
  143. package/dist/collection/snowflakes/myz/z-alert/index.js +1 -1
  144. package/dist/collection/snowflakes/myz/z-otp/index.js +2 -2
  145. package/dist/components/index10.js +1 -1
  146. package/dist/components/index11.js +1 -1
  147. package/dist/components/index15.js +4 -4
  148. package/dist/components/index16.js +1 -1
  149. package/dist/components/index17.js +1 -1
  150. package/dist/components/index18.js +1 -1
  151. package/dist/components/index19.js +1 -1
  152. package/dist/components/index20.js +1 -1
  153. package/dist/components/index21.js +2 -2
  154. package/dist/components/index21.js.map +1 -1
  155. package/dist/components/index22.js +1 -1
  156. package/dist/components/index23.js +1 -1
  157. package/dist/components/index24.js +2 -2
  158. package/dist/components/index3.js +1 -1
  159. package/dist/components/index5.js +2 -2
  160. package/dist/components/index6.js +1 -1
  161. package/dist/components/index8.js +1 -1
  162. package/dist/components/z-accordion.js +1 -1
  163. package/dist/components/z-anchor-navigation.js +1 -1
  164. package/dist/components/z-app-header.js +1 -1
  165. package/dist/components/z-aria-alert.js +1 -1
  166. package/dist/components/z-avatar.js +2 -2
  167. package/dist/components/z-book-card.js +1 -1
  168. package/dist/components/z-breadcrumb.js +2 -2
  169. package/dist/components/z-button-sort.js +1 -1
  170. package/dist/components/z-carousel.js +1 -2
  171. package/dist/components/z-carousel.js.map +1 -1
  172. package/dist/components/z-combobox.js +1 -1
  173. package/dist/components/z-cover-hero.js +2 -2
  174. package/dist/components/z-info-box.js +1 -1
  175. package/dist/components/z-info-reveal.js +1 -1
  176. package/dist/components/z-logo.js +1 -1
  177. package/dist/components/z-menu-section.js +1 -1
  178. package/dist/components/z-menu-section.js.map +1 -1
  179. package/dist/components/z-myz-card-alert.js +1 -1
  180. package/dist/components/z-myz-card-dictionary.js +1 -1
  181. package/dist/components/z-myz-card-footer-sections.js +1 -1
  182. package/dist/components/z-myz-card-footer.js +1 -1
  183. package/dist/components/z-myz-card-icon.js +1 -1
  184. package/dist/components/z-myz-card-info.js +1 -1
  185. package/dist/components/z-myz-card-list.js +1 -1
  186. package/dist/components/z-myz-list.js +1 -1
  187. package/dist/components/z-navigation-tabs.js +2 -2
  188. package/dist/components/z-notification.js +1 -1
  189. package/dist/components/z-otp.js +2 -2
  190. package/dist/components/z-panel-elem.js +2 -2
  191. package/dist/components/z-section-title.js +1 -1
  192. package/dist/components/z-select.js +1 -1
  193. package/dist/components/z-skip-to-content.js +1 -1
  194. package/dist/components/z-stepper-item.js +1 -1
  195. package/dist/components/z-stepper.js +1 -1
  196. package/dist/components/z-table.js +2 -2
  197. package/dist/components/z-table.js.map +1 -1
  198. package/dist/components/z-tbody.js +1 -1
  199. package/dist/components/z-td.js +2 -2
  200. package/dist/components/z-td.js.map +1 -1
  201. package/dist/components/z-tfoot.js +1 -1
  202. package/dist/components/z-th.js +9 -5
  203. package/dist/components/z-th.js.map +1 -1
  204. package/dist/components/z-thead.js +1 -1
  205. package/dist/components/z-toast-notification-list.js +1 -1
  206. package/dist/components/z-toast-notification.js +1 -1
  207. package/dist/components/z-toggle-button.js +2 -2
  208. package/dist/components/z-toggle-switch.js +3 -3
  209. package/dist/components/z-tooltip.js +1 -1
  210. package/dist/components/z-tr.js +2 -2
  211. package/dist/components/z-tr.js.map +1 -1
  212. package/dist/components/z-visually-hidden.js +1 -1
  213. package/dist/esm/{index-e70be23f.js → index-09ff70db.js} +2 -2
  214. package/dist/esm/{index-e70be23f.js.map → index-09ff70db.js.map} +1 -1
  215. package/dist/esm/index-7a486f3d.js +65 -0
  216. package/dist/esm/index-7a486f3d.js.map +1 -0
  217. package/dist/esm/index-81b223e5.js +45 -0
  218. package/dist/esm/index-81b223e5.js.map +1 -0
  219. package/dist/esm/{index-36f0f6c0.js → index-8e5c830a.js} +2 -2
  220. package/dist/esm/{index-36f0f6c0.js.map → index-8e5c830a.js.map} +1 -1
  221. package/dist/esm/index-ea820724.js +57 -0
  222. package/dist/esm/index-ea820724.js.map +1 -0
  223. package/dist/esm/{index-dfddeb25.js → index-fe4fc8da.js} +2 -2
  224. package/dist/esm/{index-dfddeb25.js.map → index-fe4fc8da.js.map} +1 -1
  225. package/dist/esm/loader.js +1 -1
  226. package/dist/esm/web-components-library.js +1 -1
  227. package/dist/esm/z-accordion.entry.js +1 -1
  228. package/dist/esm/z-alert.entry.js +1 -1
  229. package/dist/esm/z-anchor-navigation.entry.js +1 -1
  230. package/dist/esm/z-app-header_12.entry.js +9 -9
  231. package/dist/esm/z-app-header_12.entry.js.map +1 -1
  232. package/dist/esm/z-aria-alert.entry.js +1 -1
  233. package/dist/esm/z-avatar.entry.js +2 -2
  234. package/dist/esm/z-book-card.entry.js +1 -1
  235. package/dist/esm/z-breadcrumb.entry.js +2 -2
  236. package/dist/esm/z-button-sort.entry.js +1 -1
  237. package/dist/esm/z-carousel.entry.js +1 -2
  238. package/dist/esm/z-carousel.entry.js.map +1 -1
  239. package/dist/esm/z-chip.entry.js +2 -2
  240. package/dist/esm/z-combobox.entry.js +1 -1
  241. package/dist/esm/z-cover-hero.entry.js +2 -2
  242. package/dist/esm/z-dragdrop-area_2.entry.js +4 -4
  243. package/dist/esm/z-ghost-loading.entry.js +1 -1
  244. package/dist/esm/z-info-box.entry.js +1 -1
  245. package/dist/esm/z-info-reveal.entry.js +1 -1
  246. package/dist/esm/z-logo.entry.js +1 -1
  247. package/dist/esm/z-menu-section.entry.js +1 -1
  248. package/dist/esm/z-menu-section.entry.js.map +1 -1
  249. package/dist/esm/z-myz-card-alert.entry.js +1 -1
  250. package/dist/esm/z-myz-card-dictionary.entry.js +1 -1
  251. package/dist/esm/z-myz-card-footer-sections.entry.js +1 -1
  252. package/dist/esm/z-myz-card-footer.entry.js +1 -1
  253. package/dist/esm/z-myz-card-icon.entry.js +1 -1
  254. package/dist/esm/z-myz-card-info.entry.js +1 -1
  255. package/dist/esm/z-myz-card-list.entry.js +1 -1
  256. package/dist/esm/z-myz-card_4.entry.js +4 -4
  257. package/dist/esm/z-myz-list-item.entry.js +1 -1
  258. package/dist/esm/z-myz-list.entry.js +1 -1
  259. package/dist/esm/z-navigation-tabs.entry.js +2 -2
  260. package/dist/esm/z-notification.entry.js +1 -1
  261. package/dist/esm/z-otp.entry.js +2 -2
  262. package/dist/esm/z-panel-elem.entry.js +2 -2
  263. package/dist/esm/z-popover.entry.js +1 -1
  264. package/dist/esm/z-section-title.entry.js +1 -1
  265. package/dist/esm/z-select.entry.js +1 -1
  266. package/dist/esm/z-skip-to-content.entry.js +1 -1
  267. package/dist/esm/z-stepper-item.entry.js +1 -1
  268. package/dist/esm/z-stepper.entry.js +1 -1
  269. package/dist/esm/z-table.entry.js +8 -8
  270. package/dist/esm/z-table.entry.js.map +1 -1
  271. package/dist/esm/z-tbody.entry.js +1 -1
  272. package/dist/esm/z-td.entry.js +1 -1
  273. package/dist/esm/z-tfoot.entry.js +1 -1
  274. package/dist/esm/z-th.entry.js +1 -1
  275. package/dist/esm/z-thead.entry.js +1 -1
  276. package/dist/esm/z-toast-notification-list.entry.js +1 -1
  277. package/dist/esm/z-toast-notification.entry.js +1 -1
  278. package/dist/esm/z-toggle-button.entry.js +2 -2
  279. package/dist/esm/z-toggle-switch.entry.js +3 -3
  280. package/dist/esm/z-tooltip.entry.js +1 -1
  281. package/dist/esm/z-tr.entry.js +3 -3
  282. package/dist/esm/z-visually-hidden.entry.js +1 -1
  283. package/dist/types/components/table/cells/z-th/index.d.ts +10 -1
  284. package/dist/types/components/table/z-table/index.stories.d.ts +11 -0
  285. package/dist/types/components/z-menu-section/index.d.ts +1 -1
  286. package/dist/types/components/z-offcanvas/index.d.ts +0 -2
  287. package/dist/types/components.d.ts +18 -18
  288. package/dist/web-components-library/{p-f15d0a00.entry.js → p-00f7e0da.entry.js} +2 -2
  289. package/dist/web-components-library/{p-5a0f0978.entry.js → p-0b100bd7.entry.js} +2 -2
  290. package/dist/web-components-library/{p-707e5f91.entry.js → p-0ca0265f.entry.js} +2 -2
  291. package/dist/web-components-library/{p-9b9a04ad.entry.js → p-140b5d8f.entry.js} +2 -2
  292. package/dist/web-components-library/p-155c52f7.js +2 -0
  293. package/{www/build/p-4a2e0034.js.map → dist/web-components-library/p-155c52f7.js.map} +1 -1
  294. package/dist/web-components-library/p-16719dff.entry.js +2 -0
  295. package/dist/web-components-library/{p-45dc157c.entry.js → p-17d2d60b.entry.js} +2 -2
  296. package/dist/web-components-library/p-17fea974.js +2 -0
  297. package/dist/web-components-library/p-17fea974.js.map +1 -0
  298. package/dist/web-components-library/p-27bfe123.js +2 -0
  299. package/dist/web-components-library/p-27bfe123.js.map +1 -0
  300. package/dist/web-components-library/{p-100c6243.entry.js → p-291319ed.entry.js} +2 -2
  301. package/dist/web-components-library/p-2b15df8e.entry.js +2 -0
  302. package/dist/web-components-library/p-2cab65f7.entry.js +2 -0
  303. package/dist/web-components-library/{p-f8bbca6e.entry.js → p-30f09188.entry.js} +2 -2
  304. package/dist/web-components-library/p-32d603b8.js +2 -0
  305. package/dist/web-components-library/p-3b26bd7b.entry.js +2 -0
  306. package/dist/web-components-library/p-3d97dedf.entry.js +2 -0
  307. package/{www/build/p-9a1b51ed.entry.js → dist/web-components-library/p-4704cece.entry.js} +2 -2
  308. package/dist/web-components-library/{p-d5f5e107.entry.js → p-48b2e967.entry.js} +2 -2
  309. package/dist/web-components-library/p-6297dfaa.entry.js +2 -0
  310. package/{www/build/p-ad97fdc4.entry.js → dist/web-components-library/p-62b75a18.entry.js} +2 -2
  311. package/{www/build/p-a64a1bf0.entry.js → dist/web-components-library/p-64ba80da.entry.js} +2 -2
  312. package/dist/web-components-library/{p-f9aa2d11.entry.js → p-67e48546.entry.js} +2 -2
  313. package/dist/web-components-library/{p-2f662fea.entry.js → p-6e92df75.entry.js} +2 -2
  314. package/{www/build/p-820b48f6.entry.js → dist/web-components-library/p-6f9fc850.entry.js} +2 -2
  315. package/dist/web-components-library/p-73a58288.entry.js +2 -0
  316. package/dist/web-components-library/p-73a58288.entry.js.map +1 -0
  317. package/dist/web-components-library/p-7a674e6c.entry.js +2 -0
  318. package/dist/web-components-library/p-8855aef4.js +2 -0
  319. package/{www/build/p-777ad335.entry.js → dist/web-components-library/p-89b1e0ce.entry.js} +2 -2
  320. package/{www/build/p-51f1c9c0.entry.js → dist/web-components-library/p-956ece11.entry.js} +2 -2
  321. package/dist/web-components-library/{p-f06ad42c.entry.js → p-9a48e70b.entry.js} +2 -2
  322. package/dist/web-components-library/p-9bf06eb5.entry.js +2 -0
  323. package/dist/web-components-library/{p-c679277c.entry.js.map → p-9bf06eb5.entry.js.map} +1 -1
  324. package/dist/web-components-library/p-9c36d574.entry.js +2 -0
  325. package/{www/build/p-8d56e74b.entry.js → dist/web-components-library/p-9fc6961e.entry.js} +2 -2
  326. package/dist/web-components-library/p-a167bdd5.js +2 -0
  327. package/dist/web-components-library/{p-4537f922.entry.js → p-a16ed530.entry.js} +2 -2
  328. package/{www/build/p-e4d97fbf.entry.js → dist/web-components-library/p-a45e72f0.entry.js} +2 -2
  329. package/dist/web-components-library/{p-df9c3674.entry.js → p-a56fa2f2.entry.js} +2 -2
  330. package/dist/web-components-library/p-a56fa2f2.entry.js.map +1 -0
  331. package/dist/web-components-library/p-af7e5773.entry.js +2 -0
  332. package/{www/build/p-6a1b3e86.entry.js → dist/web-components-library/p-b387e877.entry.js} +2 -2
  333. package/dist/web-components-library/{p-46d98609.entry.js → p-b6ea478b.entry.js} +2 -2
  334. package/{www/build/p-b2356bc7.entry.js → dist/web-components-library/p-b7af7424.entry.js} +2 -2
  335. package/dist/web-components-library/{p-7db99885.entry.js → p-bec56aa3.entry.js} +2 -2
  336. package/dist/web-components-library/{p-7db99885.entry.js.map → p-bec56aa3.entry.js.map} +1 -1
  337. package/{www/build/p-f425c6f2.entry.js → dist/web-components-library/p-c38833ea.entry.js} +2 -2
  338. package/dist/web-components-library/p-c39ca8e7.entry.js +2 -0
  339. package/dist/web-components-library/{p-e529a714.entry.js → p-c451b4d7.entry.js} +2 -2
  340. package/{www/build/p-e25d7f0a.entry.js → dist/web-components-library/p-ca7634bf.entry.js} +2 -2
  341. package/dist/web-components-library/{p-855334f4.entry.js → p-d847bfcd.entry.js} +2 -2
  342. package/dist/web-components-library/{p-ab7f129e.entry.js → p-d94c5857.entry.js} +2 -2
  343. package/dist/web-components-library/{p-aaae6b16.entry.js → p-e770ed95.entry.js} +2 -2
  344. package/dist/web-components-library/{p-7aba5af3.entry.js → p-eb93aa0b.entry.js} +2 -2
  345. package/dist/web-components-library/{p-ea9c0ff3.entry.js → p-ecae1a7a.entry.js} +2 -2
  346. package/dist/web-components-library/{p-5a178c69.entry.js → p-ee430669.entry.js} +2 -2
  347. package/dist/web-components-library/{p-a0fd1323.entry.js → p-ef8a7250.entry.js} +2 -2
  348. package/dist/web-components-library/{p-cd0219b4.entry.js → p-f26b2e47.entry.js} +2 -2
  349. package/dist/web-components-library/{p-df8c381a.entry.js → p-f410f295.entry.js} +2 -2
  350. package/dist/web-components-library/p-f87bcdc3.entry.js +2 -0
  351. package/{www/build/p-68f4fbc8.entry.js.map → dist/web-components-library/p-f87bcdc3.entry.js.map} +1 -1
  352. package/dist/web-components-library/p-febc4982.entry.js +2 -0
  353. package/{www/build/p-8e5f1ae0.entry.js → dist/web-components-library/p-ffccfe63.entry.js} +2 -2
  354. package/dist/web-components-library/p-ffccfe63.entry.js.map +1 -0
  355. package/dist/web-components-library/web-components-library.esm.js +1 -1
  356. package/dist/web-components-library/web-components-library.esm.js.map +1 -1
  357. package/package.json +1 -1
  358. package/readme.md +5 -9
  359. package/www/build/{p-f15d0a00.entry.js → p-00f7e0da.entry.js} +2 -2
  360. package/www/build/{p-5a0f0978.entry.js → p-0b100bd7.entry.js} +2 -2
  361. package/www/build/{p-707e5f91.entry.js → p-0ca0265f.entry.js} +2 -2
  362. package/www/build/{p-9b9a04ad.entry.js → p-140b5d8f.entry.js} +2 -2
  363. package/www/build/p-155c52f7.js +2 -0
  364. package/{dist/web-components-library/p-4a2e0034.js.map → www/build/p-155c52f7.js.map} +1 -1
  365. package/www/build/p-16719dff.entry.js +2 -0
  366. package/www/build/{p-45dc157c.entry.js → p-17d2d60b.entry.js} +2 -2
  367. package/www/build/p-17fea974.js +2 -0
  368. package/www/build/p-17fea974.js.map +1 -0
  369. package/www/build/p-27bfe123.js +2 -0
  370. package/www/build/p-27bfe123.js.map +1 -0
  371. package/www/build/{p-100c6243.entry.js → p-291319ed.entry.js} +2 -2
  372. package/www/build/p-2b15df8e.entry.js +2 -0
  373. package/www/build/p-2cab65f7.entry.js +2 -0
  374. package/www/build/{p-f8bbca6e.entry.js → p-30f09188.entry.js} +2 -2
  375. package/www/build/p-32d603b8.js +2 -0
  376. package/www/build/p-3b26bd7b.entry.js +2 -0
  377. package/www/build/p-3d97dedf.entry.js +2 -0
  378. package/{dist/web-components-library/p-9a1b51ed.entry.js → www/build/p-4704cece.entry.js} +2 -2
  379. package/www/build/{p-d5f5e107.entry.js → p-48b2e967.entry.js} +2 -2
  380. package/www/build/p-6297dfaa.entry.js +2 -0
  381. package/{dist/web-components-library/p-ad97fdc4.entry.js → www/build/p-62b75a18.entry.js} +2 -2
  382. package/{dist/web-components-library/p-a64a1bf0.entry.js → www/build/p-64ba80da.entry.js} +2 -2
  383. package/www/build/{p-f9aa2d11.entry.js → p-67e48546.entry.js} +2 -2
  384. package/www/build/{p-2f662fea.entry.js → p-6e92df75.entry.js} +2 -2
  385. package/{dist/web-components-library/p-820b48f6.entry.js → www/build/p-6f9fc850.entry.js} +2 -2
  386. package/www/build/p-73a58288.entry.js +2 -0
  387. package/www/build/p-73a58288.entry.js.map +1 -0
  388. package/www/build/p-7a674e6c.entry.js +2 -0
  389. package/www/build/p-8855aef4.js +2 -0
  390. package/{dist/web-components-library/p-777ad335.entry.js → www/build/p-89b1e0ce.entry.js} +2 -2
  391. package/{dist/web-components-library/p-51f1c9c0.entry.js → www/build/p-956ece11.entry.js} +2 -2
  392. package/www/build/{p-f06ad42c.entry.js → p-9a48e70b.entry.js} +2 -2
  393. package/www/build/p-9bf06eb5.entry.js +2 -0
  394. package/www/build/{p-c679277c.entry.js.map → p-9bf06eb5.entry.js.map} +1 -1
  395. package/www/build/p-9c36d574.entry.js +2 -0
  396. package/{dist/web-components-library/p-8d56e74b.entry.js → www/build/p-9fc6961e.entry.js} +2 -2
  397. package/www/build/p-a167bdd5.js +2 -0
  398. package/www/build/{p-4537f922.entry.js → p-a16ed530.entry.js} +2 -2
  399. package/{dist/web-components-library/p-e4d97fbf.entry.js → www/build/p-a45e72f0.entry.js} +2 -2
  400. package/www/build/{p-64006dfc.js → p-a4a71ee5.js} +1 -1
  401. package/www/build/{p-df9c3674.entry.js → p-a56fa2f2.entry.js} +2 -2
  402. package/www/build/p-a56fa2f2.entry.js.map +1 -0
  403. package/www/build/p-af7e5773.entry.js +2 -0
  404. package/{dist/web-components-library/p-6a1b3e86.entry.js → www/build/p-b387e877.entry.js} +2 -2
  405. package/www/build/{p-46d98609.entry.js → p-b6ea478b.entry.js} +2 -2
  406. package/{dist/web-components-library/p-b2356bc7.entry.js → www/build/p-b7af7424.entry.js} +2 -2
  407. package/www/build/{p-7db99885.entry.js → p-bec56aa3.entry.js} +2 -2
  408. package/www/build/{p-7db99885.entry.js.map → p-bec56aa3.entry.js.map} +1 -1
  409. package/{dist/web-components-library/p-f425c6f2.entry.js → www/build/p-c38833ea.entry.js} +2 -2
  410. package/www/build/p-c39ca8e7.entry.js +2 -0
  411. package/www/build/{p-e529a714.entry.js → p-c451b4d7.entry.js} +2 -2
  412. package/{dist/web-components-library/p-e25d7f0a.entry.js → www/build/p-ca7634bf.entry.js} +2 -2
  413. package/www/build/{p-855334f4.entry.js → p-d847bfcd.entry.js} +2 -2
  414. package/www/build/{p-ab7f129e.entry.js → p-d94c5857.entry.js} +2 -2
  415. package/www/build/{p-aaae6b16.entry.js → p-e770ed95.entry.js} +2 -2
  416. package/www/build/{p-7aba5af3.entry.js → p-eb93aa0b.entry.js} +2 -2
  417. package/www/build/{p-ea9c0ff3.entry.js → p-ecae1a7a.entry.js} +2 -2
  418. package/www/build/{p-5a178c69.entry.js → p-ee430669.entry.js} +2 -2
  419. package/www/build/{p-a0fd1323.entry.js → p-ef8a7250.entry.js} +2 -2
  420. package/www/build/{p-cd0219b4.entry.js → p-f26b2e47.entry.js} +2 -2
  421. package/www/build/{p-df8c381a.entry.js → p-f410f295.entry.js} +2 -2
  422. package/www/build/p-f87bcdc3.entry.js +2 -0
  423. package/{dist/web-components-library/p-68f4fbc8.entry.js.map → www/build/p-f87bcdc3.entry.js.map} +1 -1
  424. package/www/build/p-febc4982.entry.js +2 -0
  425. package/{dist/web-components-library/p-8e5f1ae0.entry.js → www/build/p-ffccfe63.entry.js} +2 -2
  426. package/www/build/p-ffccfe63.entry.js.map +1 -0
  427. package/www/build/web-components-library.esm.js +1 -1
  428. package/www/build/web-components-library.esm.js.map +1 -1
  429. package/www/index.html +1 -1
  430. package/dist/cjs/index-1dfb8b3c.js +0 -47
  431. package/dist/cjs/index-1dfb8b3c.js.map +0 -1
  432. package/dist/cjs/index-4bce26ea.js +0 -59
  433. package/dist/cjs/index-4bce26ea.js.map +0 -1
  434. package/dist/cjs/index-d4272b0e.js +0 -65
  435. package/dist/cjs/index-d4272b0e.js.map +0 -1
  436. package/dist/esm/index-66bd56db.js +0 -57
  437. package/dist/esm/index-66bd56db.js.map +0 -1
  438. package/dist/esm/index-89520805.js +0 -63
  439. package/dist/esm/index-89520805.js.map +0 -1
  440. package/dist/esm/index-cddfba10.js +0 -45
  441. package/dist/esm/index-cddfba10.js.map +0 -1
  442. package/dist/web-components-library/p-06d98334.entry.js +0 -2
  443. package/dist/web-components-library/p-28018cd3.entry.js +0 -2
  444. package/dist/web-components-library/p-28018cd3.entry.js.map +0 -1
  445. package/dist/web-components-library/p-2b1fd95a.entry.js +0 -2
  446. package/dist/web-components-library/p-3ae8fb1a.entry.js +0 -2
  447. package/dist/web-components-library/p-3dbad75e.js +0 -2
  448. package/dist/web-components-library/p-4a2e0034.js +0 -2
  449. package/dist/web-components-library/p-4f3f8578.entry.js +0 -2
  450. package/dist/web-components-library/p-60f410df.js +0 -2
  451. package/dist/web-components-library/p-60f410df.js.map +0 -1
  452. package/dist/web-components-library/p-63ec7bad.entry.js +0 -2
  453. package/dist/web-components-library/p-64aab82f.js +0 -2
  454. package/dist/web-components-library/p-68f4fbc8.entry.js +0 -2
  455. package/dist/web-components-library/p-7d5bf905.entry.js +0 -2
  456. package/dist/web-components-library/p-823c45d4.entry.js +0 -2
  457. package/dist/web-components-library/p-8a6a4d22.js +0 -2
  458. package/dist/web-components-library/p-8a6a4d22.js.map +0 -1
  459. package/dist/web-components-library/p-8e5f1ae0.entry.js.map +0 -1
  460. package/dist/web-components-library/p-95cb8701.js +0 -2
  461. package/dist/web-components-library/p-c1e498ac.entry.js +0 -2
  462. package/dist/web-components-library/p-c54d0925.entry.js +0 -2
  463. package/dist/web-components-library/p-c679277c.entry.js +0 -2
  464. package/dist/web-components-library/p-cc71a90c.entry.js +0 -2
  465. package/dist/web-components-library/p-df9c3674.entry.js.map +0 -1
  466. package/dist/web-components-library/p-f703660d.entry.js +0 -2
  467. package/www/build/p-06d98334.entry.js +0 -2
  468. package/www/build/p-28018cd3.entry.js +0 -2
  469. package/www/build/p-28018cd3.entry.js.map +0 -1
  470. package/www/build/p-2b1fd95a.entry.js +0 -2
  471. package/www/build/p-3ae8fb1a.entry.js +0 -2
  472. package/www/build/p-3dbad75e.js +0 -2
  473. package/www/build/p-4a2e0034.js +0 -2
  474. package/www/build/p-4f3f8578.entry.js +0 -2
  475. package/www/build/p-60f410df.js +0 -2
  476. package/www/build/p-60f410df.js.map +0 -1
  477. package/www/build/p-63ec7bad.entry.js +0 -2
  478. package/www/build/p-64aab82f.js +0 -2
  479. package/www/build/p-68f4fbc8.entry.js +0 -2
  480. package/www/build/p-7d5bf905.entry.js +0 -2
  481. package/www/build/p-823c45d4.entry.js +0 -2
  482. package/www/build/p-8a6a4d22.js +0 -2
  483. package/www/build/p-8a6a4d22.js.map +0 -1
  484. package/www/build/p-8e5f1ae0.entry.js.map +0 -1
  485. package/www/build/p-95cb8701.js +0 -2
  486. package/www/build/p-c1e498ac.entry.js +0 -2
  487. package/www/build/p-c54d0925.entry.js +0 -2
  488. package/www/build/p-c679277c.entry.js +0 -2
  489. package/www/build/p-cc71a90c.entry.js +0 -2
  490. package/www/build/p-df9c3674.entry.js.map +0 -1
  491. package/www/build/p-f703660d.entry.js +0 -2
  492. /package/dist/web-components-library/{p-f15d0a00.entry.js.map → p-00f7e0da.entry.js.map} +0 -0
  493. /package/dist/web-components-library/{p-5a0f0978.entry.js.map → p-0b100bd7.entry.js.map} +0 -0
  494. /package/dist/web-components-library/{p-707e5f91.entry.js.map → p-0ca0265f.entry.js.map} +0 -0
  495. /package/dist/web-components-library/{p-9b9a04ad.entry.js.map → p-140b5d8f.entry.js.map} +0 -0
  496. /package/dist/web-components-library/{p-2b1fd95a.entry.js.map → p-16719dff.entry.js.map} +0 -0
  497. /package/dist/web-components-library/{p-45dc157c.entry.js.map → p-17d2d60b.entry.js.map} +0 -0
  498. /package/dist/web-components-library/{p-100c6243.entry.js.map → p-291319ed.entry.js.map} +0 -0
  499. /package/dist/web-components-library/{p-4f3f8578.entry.js.map → p-2b15df8e.entry.js.map} +0 -0
  500. /package/dist/web-components-library/{p-c54d0925.entry.js.map → p-2cab65f7.entry.js.map} +0 -0
  501. /package/dist/web-components-library/{p-f8bbca6e.entry.js.map → p-30f09188.entry.js.map} +0 -0
  502. /package/dist/web-components-library/{p-95cb8701.js.map → p-32d603b8.js.map} +0 -0
  503. /package/dist/web-components-library/{p-63ec7bad.entry.js.map → p-3b26bd7b.entry.js.map} +0 -0
  504. /package/dist/web-components-library/{p-c1e498ac.entry.js.map → p-3d97dedf.entry.js.map} +0 -0
  505. /package/dist/web-components-library/{p-9a1b51ed.entry.js.map → p-4704cece.entry.js.map} +0 -0
  506. /package/dist/web-components-library/{p-d5f5e107.entry.js.map → p-48b2e967.entry.js.map} +0 -0
  507. /package/dist/web-components-library/{p-7d5bf905.entry.js.map → p-6297dfaa.entry.js.map} +0 -0
  508. /package/dist/web-components-library/{p-ad97fdc4.entry.js.map → p-62b75a18.entry.js.map} +0 -0
  509. /package/dist/web-components-library/{p-a64a1bf0.entry.js.map → p-64ba80da.entry.js.map} +0 -0
  510. /package/dist/web-components-library/{p-f9aa2d11.entry.js.map → p-67e48546.entry.js.map} +0 -0
  511. /package/dist/web-components-library/{p-2f662fea.entry.js.map → p-6e92df75.entry.js.map} +0 -0
  512. /package/dist/web-components-library/{p-820b48f6.entry.js.map → p-6f9fc850.entry.js.map} +0 -0
  513. /package/dist/web-components-library/{p-823c45d4.entry.js.map → p-7a674e6c.entry.js.map} +0 -0
  514. /package/dist/web-components-library/{p-64aab82f.js.map → p-8855aef4.js.map} +0 -0
  515. /package/dist/web-components-library/{p-777ad335.entry.js.map → p-89b1e0ce.entry.js.map} +0 -0
  516. /package/dist/web-components-library/{p-51f1c9c0.entry.js.map → p-956ece11.entry.js.map} +0 -0
  517. /package/dist/web-components-library/{p-f06ad42c.entry.js.map → p-9a48e70b.entry.js.map} +0 -0
  518. /package/dist/web-components-library/{p-06d98334.entry.js.map → p-9c36d574.entry.js.map} +0 -0
  519. /package/dist/web-components-library/{p-8d56e74b.entry.js.map → p-9fc6961e.entry.js.map} +0 -0
  520. /package/dist/web-components-library/{p-3dbad75e.js.map → p-a167bdd5.js.map} +0 -0
  521. /package/dist/web-components-library/{p-4537f922.entry.js.map → p-a16ed530.entry.js.map} +0 -0
  522. /package/dist/web-components-library/{p-e4d97fbf.entry.js.map → p-a45e72f0.entry.js.map} +0 -0
  523. /package/dist/web-components-library/{p-3ae8fb1a.entry.js.map → p-af7e5773.entry.js.map} +0 -0
  524. /package/dist/web-components-library/{p-6a1b3e86.entry.js.map → p-b387e877.entry.js.map} +0 -0
  525. /package/dist/web-components-library/{p-46d98609.entry.js.map → p-b6ea478b.entry.js.map} +0 -0
  526. /package/dist/web-components-library/{p-b2356bc7.entry.js.map → p-b7af7424.entry.js.map} +0 -0
  527. /package/dist/web-components-library/{p-f425c6f2.entry.js.map → p-c38833ea.entry.js.map} +0 -0
  528. /package/dist/web-components-library/{p-cc71a90c.entry.js.map → p-c39ca8e7.entry.js.map} +0 -0
  529. /package/dist/web-components-library/{p-e529a714.entry.js.map → p-c451b4d7.entry.js.map} +0 -0
  530. /package/dist/web-components-library/{p-e25d7f0a.entry.js.map → p-ca7634bf.entry.js.map} +0 -0
  531. /package/dist/web-components-library/{p-855334f4.entry.js.map → p-d847bfcd.entry.js.map} +0 -0
  532. /package/dist/web-components-library/{p-ab7f129e.entry.js.map → p-d94c5857.entry.js.map} +0 -0
  533. /package/dist/web-components-library/{p-aaae6b16.entry.js.map → p-e770ed95.entry.js.map} +0 -0
  534. /package/dist/web-components-library/{p-7aba5af3.entry.js.map → p-eb93aa0b.entry.js.map} +0 -0
  535. /package/dist/web-components-library/{p-ea9c0ff3.entry.js.map → p-ecae1a7a.entry.js.map} +0 -0
  536. /package/dist/web-components-library/{p-5a178c69.entry.js.map → p-ee430669.entry.js.map} +0 -0
  537. /package/dist/web-components-library/{p-a0fd1323.entry.js.map → p-ef8a7250.entry.js.map} +0 -0
  538. /package/dist/web-components-library/{p-cd0219b4.entry.js.map → p-f26b2e47.entry.js.map} +0 -0
  539. /package/dist/web-components-library/{p-df8c381a.entry.js.map → p-f410f295.entry.js.map} +0 -0
  540. /package/dist/web-components-library/{p-f703660d.entry.js.map → p-febc4982.entry.js.map} +0 -0
  541. /package/www/build/{p-f15d0a00.entry.js.map → p-00f7e0da.entry.js.map} +0 -0
  542. /package/www/build/{p-5a0f0978.entry.js.map → p-0b100bd7.entry.js.map} +0 -0
  543. /package/www/build/{p-707e5f91.entry.js.map → p-0ca0265f.entry.js.map} +0 -0
  544. /package/www/build/{p-9b9a04ad.entry.js.map → p-140b5d8f.entry.js.map} +0 -0
  545. /package/www/build/{p-2b1fd95a.entry.js.map → p-16719dff.entry.js.map} +0 -0
  546. /package/www/build/{p-45dc157c.entry.js.map → p-17d2d60b.entry.js.map} +0 -0
  547. /package/www/build/{p-100c6243.entry.js.map → p-291319ed.entry.js.map} +0 -0
  548. /package/www/build/{p-4f3f8578.entry.js.map → p-2b15df8e.entry.js.map} +0 -0
  549. /package/www/build/{p-c54d0925.entry.js.map → p-2cab65f7.entry.js.map} +0 -0
  550. /package/www/build/{p-f8bbca6e.entry.js.map → p-30f09188.entry.js.map} +0 -0
  551. /package/www/build/{p-95cb8701.js.map → p-32d603b8.js.map} +0 -0
  552. /package/www/build/{p-63ec7bad.entry.js.map → p-3b26bd7b.entry.js.map} +0 -0
  553. /package/www/build/{p-c1e498ac.entry.js.map → p-3d97dedf.entry.js.map} +0 -0
  554. /package/www/build/{p-9a1b51ed.entry.js.map → p-4704cece.entry.js.map} +0 -0
  555. /package/www/build/{p-d5f5e107.entry.js.map → p-48b2e967.entry.js.map} +0 -0
  556. /package/www/build/{p-7d5bf905.entry.js.map → p-6297dfaa.entry.js.map} +0 -0
  557. /package/www/build/{p-ad97fdc4.entry.js.map → p-62b75a18.entry.js.map} +0 -0
  558. /package/www/build/{p-a64a1bf0.entry.js.map → p-64ba80da.entry.js.map} +0 -0
  559. /package/www/build/{p-f9aa2d11.entry.js.map → p-67e48546.entry.js.map} +0 -0
  560. /package/www/build/{p-2f662fea.entry.js.map → p-6e92df75.entry.js.map} +0 -0
  561. /package/www/build/{p-820b48f6.entry.js.map → p-6f9fc850.entry.js.map} +0 -0
  562. /package/www/build/{p-823c45d4.entry.js.map → p-7a674e6c.entry.js.map} +0 -0
  563. /package/www/build/{p-64aab82f.js.map → p-8855aef4.js.map} +0 -0
  564. /package/www/build/{p-777ad335.entry.js.map → p-89b1e0ce.entry.js.map} +0 -0
  565. /package/www/build/{p-51f1c9c0.entry.js.map → p-956ece11.entry.js.map} +0 -0
  566. /package/www/build/{p-f06ad42c.entry.js.map → p-9a48e70b.entry.js.map} +0 -0
  567. /package/www/build/{p-06d98334.entry.js.map → p-9c36d574.entry.js.map} +0 -0
  568. /package/www/build/{p-8d56e74b.entry.js.map → p-9fc6961e.entry.js.map} +0 -0
  569. /package/www/build/{p-3dbad75e.js.map → p-a167bdd5.js.map} +0 -0
  570. /package/www/build/{p-4537f922.entry.js.map → p-a16ed530.entry.js.map} +0 -0
  571. /package/www/build/{p-e4d97fbf.entry.js.map → p-a45e72f0.entry.js.map} +0 -0
  572. /package/www/build/{p-3ae8fb1a.entry.js.map → p-af7e5773.entry.js.map} +0 -0
  573. /package/www/build/{p-6a1b3e86.entry.js.map → p-b387e877.entry.js.map} +0 -0
  574. /package/www/build/{p-46d98609.entry.js.map → p-b6ea478b.entry.js.map} +0 -0
  575. /package/www/build/{p-b2356bc7.entry.js.map → p-b7af7424.entry.js.map} +0 -0
  576. /package/www/build/{p-f425c6f2.entry.js.map → p-c38833ea.entry.js.map} +0 -0
  577. /package/www/build/{p-cc71a90c.entry.js.map → p-c39ca8e7.entry.js.map} +0 -0
  578. /package/www/build/{p-e529a714.entry.js.map → p-c451b4d7.entry.js.map} +0 -0
  579. /package/www/build/{p-e25d7f0a.entry.js.map → p-ca7634bf.entry.js.map} +0 -0
  580. /package/www/build/{p-855334f4.entry.js.map → p-d847bfcd.entry.js.map} +0 -0
  581. /package/www/build/{p-ab7f129e.entry.js.map → p-d94c5857.entry.js.map} +0 -0
  582. /package/www/build/{p-aaae6b16.entry.js.map → p-e770ed95.entry.js.map} +0 -0
  583. /package/www/build/{p-7aba5af3.entry.js.map → p-eb93aa0b.entry.js.map} +0 -0
  584. /package/www/build/{p-ea9c0ff3.entry.js.map → p-ecae1a7a.entry.js.map} +0 -0
  585. /package/www/build/{p-5a178c69.entry.js.map → p-ee430669.entry.js.map} +0 -0
  586. /package/www/build/{p-a0fd1323.entry.js.map → p-ef8a7250.entry.js.map} +0 -0
  587. /package/www/build/{p-cd0219b4.entry.js.map → p-f26b2e47.entry.js.map} +0 -0
  588. /package/www/build/{p-df8c381a.entry.js.map → p-f410f295.entry.js.map} +0 -0
  589. /package/www/build/{p-f703660d.entry.js.map → p-febc4982.entry.js.map} +0 -0
@@ -7,7 +7,7 @@ const ZAriaAlert = class {
7
7
  this.mode = ZAriaAlertMode.POLITE;
8
8
  }
9
9
  render() {
10
- return (h(Host, { key: 'fe408ff28d71e45649f8881b395da6b0c1fd3e96', "aria-live": this.mode, "aria-atomic": "true", "aria-relevant": "additions" }, h("slot", { key: '2999a9a7cd442b5d9c4a74e0c68418497335045e' })));
10
+ return (h(Host, { key: '351d44f3f64362a97cac21201f8cfa5311158870', "aria-live": this.mode, "aria-atomic": "true", "aria-relevant": "additions" }, h("slot", { key: '456a2c0bb53f74d74b84a90c027dbf94249fbab9' })));
11
11
  }
12
12
  };
13
13
 
@@ -29,10 +29,10 @@ const ZAvatar = class {
29
29
  }
30
30
  }
31
31
  render() {
32
- return (h(Host, { key: '17a097738ce186c791794f5f8192cd46845df2a6', class: { [this.size]: true, [`body-${this.getTextSize()}-sb`]: true }, style: {
32
+ return (h(Host, { key: '8e7d78169cfb0f1705bc91c8db649a7d500290a6', class: { [this.size]: true, [`body-${this.getTextSize()}-sb`]: true }, style: {
33
33
  color: `var(--${this.textColor})`,
34
34
  backgroundColor: `var(--${this.backgroundColor})`,
35
- } }, this.text && !this.image && h("span", { key: '178497c915f987e2f2daff1e17282062dfac9110' }, this.text.substring(0, 2)), this.image && (h("img", { key: '57221f7fca8e9dae9afeea77de4db247d3ad3174', src: this.image, onError: () => (this.image = "") }))));
35
+ } }, this.text && !this.image && h("span", { key: '096abc1df006eea6430564aaf999c22a18b60682' }, this.text.substring(0, 2)), this.image && (h("img", { key: '68d28c12bc007a0575e6797987501a1851ae8b3a', src: this.image, onError: () => (this.image = "") }))));
36
36
  }
37
37
  };
38
38
  ZAvatar.style = ZAvatarStyle0;
@@ -120,7 +120,7 @@ const ZBookCard = class {
120
120
  return (h("div", { class: "action-container" }, h("slot", { name: "footer-cta" })));
121
121
  }
122
122
  render() {
123
- return (h("article", { key: 'e114133d50e62f5d94d15c3529efa7700a3cd4c3', class: {
123
+ return (h("article", { key: '4d781e135d7b5838443817e70df1cfdc3d597adc', class: {
124
124
  [this.variant]: true,
125
125
  borderless: !!this.borderless,
126
126
  } }, this.renderCard()));
@@ -200,10 +200,10 @@ const ZBreadcrumb = class {
200
200
  ];
201
201
  }
202
202
  render() {
203
- return (h(Host, { key: '582cae1fd6a48626be9e602dfeb565e7a592f786', style: { "--line-clamp-popover": `${this.overflowMenuItemRows}` } }, h("nav", { key: 'b029e4b1206b9ef6235d2c4995bd90a7ff05ffdf', ref: (val) => (this.wrapElement = val), "aria-label": "Breadcrumb", class: {
203
+ return (h(Host, { key: 'ec59a3c1afe2d946df4b5ef8dae569b40e20e083', style: { "--line-clamp-popover": `${this.overflowMenuItemRows}` } }, h("nav", { key: '9b1668c981c22cd2d52f31f58e2ac38a18f574fb', ref: (val) => (this.wrapElement = val), "aria-label": "Breadcrumb", class: {
204
204
  semibold: this.pathStyle === BreadcrumbPathStyle.SEMIBOLD,
205
205
  underlined: this.pathStyle === BreadcrumbPathStyle.UNDERLINED,
206
- } }, h("ol", { key: '738872ff5e7edc74ea1dc1f0b2b29379412f02f1' }, this.viewPortWidth === Device.MOBILE ? this.renderMobileItems() : this.renderItems()))));
206
+ } }, h("ol", { key: 'fedac8ea463ba9b20784d20cf50f9f8526055d3b' }, this.viewPortWidth === Device.MOBILE ? this.renderMobileItems() : this.renderItems()))));
207
207
  }
208
208
  get hostElement() { return getElement(this); }
209
209
  static get watchers() { return {
@@ -42,7 +42,7 @@ const ZButtonSort = class {
42
42
  return this.ellipsis.offsetWidth < this.ellipsis.scrollWidth;
43
43
  }
44
44
  render() {
45
- return (h("button", { key: 'aa62d28a065254d872620c3deb96125c2cbbee86', title: this.setButtonTitle(), id: this.buttonid, class: { selected: this.isselected }, onClick: () => this.emitButtonSortClick() }, h("span", { key: 'f4ffc37957555118ff4984aa4a02619ff43a3187', ref: (el) => (this.ellipsis = el), class: "ellipsis" }, !this.sortasc && this.desclabel ? this.desclabel : this.label), h("span", { key: 'fded8bf8fd6ccc4c18181c7707bda4fe1bb6c8d7', class: "counter" }, this.counter && ` (${this.counter})`), h("span", { key: '01352602fc60865ed02b3032d1a734a2ab3fd0fc', class: "sort" }, this.sortasc ? this.sortlabelasc : this.sortlabeldesc), h("z-icon", { key: '086d4a4f9f5b06b6e81009b9f344347b979a69ec', name: "caret-up-down", width: 16, height: 16 })));
45
+ return (h("button", { key: '0cb1fb4cd3661deb66e79e85bcc87657691af1a9', title: this.setButtonTitle(), id: this.buttonid, class: { selected: this.isselected }, onClick: () => this.emitButtonSortClick() }, h("span", { key: '24c3b8e7b8c6acc83f55cbf7bc0233382a3a2738', ref: (el) => (this.ellipsis = el), class: "ellipsis" }, !this.sortasc && this.desclabel ? this.desclabel : this.label), h("span", { key: 'a9ae20d5e3926dc6b6cd3d54757a9c829c15c823', class: "counter" }, this.counter && ` (${this.counter})`), h("span", { key: 'd3d3aa5e07074dfd72da40f8059f70e25d1a1f58', class: "sort" }, this.sortasc ? this.sortlabelasc : this.sortlabeldesc), h("z-icon", { key: 'e0003ebe4688bf0af648aa9b7eb01c446460f069', name: "caret-up-down", width: 16, height: 16 })));
46
46
  }
47
47
  };
48
48
  ZButtonSort.style = ZButtonSortStyle0;
@@ -142,7 +142,6 @@ const ZCarousel = class {
142
142
  setupItems() {
143
143
  this.items = Array.from(this.host.children);
144
144
  this.items.forEach((item) => {
145
- item.setAttribute("role", "group");
146
145
  item.setAttribute("aria-roledescription", "slide");
147
146
  });
148
147
  }
@@ -165,7 +164,7 @@ const ZCarousel = class {
165
164
  if (this.isLoading) {
166
165
  return (h("div", { class: "z-carousel-container" }, this.label && h("div", { class: "heading-3-sb z-carousel-title" }, this.label), h("div", { style: { height: `${this.ghostLoadingHeight}px` } }, h("z-ghost-loading", null))));
167
166
  }
168
- 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: "z-carousel-title heading-3-sb" }, this.label), h("div", { class: "z-carousel-wrapper" }, h("z-button", { class: "z-carousel-navigation-arrow", variant: ButtonVariant.SECONDARY, "data-direction": "prev", icon: "arrow-left", onClick: this.onPrev.bind(this), disabled: !this.infinite && !this.canNavigatePrev, hidden: this.arrowsPosition !== CarouselArrowsPosition.OVER || !this.canNavigate, ariaLabel: this.single ? "Mostra l'elemento precedente" : "Mostra gli elementi precedenti" }), h("ul", { class: "z-carousel-items-container", "aria-atomic": "false", "aria-live": "polite", ref: (el) => (this.itemsContainer = el) }, h("slot", { onSlotchange: this.onSlotChange.bind(this) })), h("z-button", { class: "z-carousel-navigation-arrow", variant: ButtonVariant.SECONDARY, "data-direction": "next", icon: "arrow-right", onClick: this.onNext.bind(this), disabled: !this.infinite && !this.canNavigateNext, hidden: this.arrowsPosition !== CarouselArrowsPosition.OVER || !this.canNavigate, 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", { class: "z-carousel-navigation-arrow", variant: ButtonVariant.TERTIARY, icon: "arrow-left", onClick: this.onPrev.bind(this), disabled: !this.infinite && !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((_, index) => (h("button", { type: "button", class: { current: this.highlightedIndicator === index }, "aria-label": this.highlightedIndicator === index ? "Elemento corrente" : `Spostati all'elemento ${index + 1}`, onClick: () => this.goTo(index) }))))), this.progressMode === CarouselProgressMode.NUMBERS && this.single && this.items && (h("div", { class: "numbers-progress interactive-1" }, h("span", { class: "current" }, this.current + 1), h("span", null, "di"), h("span", null, this.items.length))), this.arrowsPosition === CarouselArrowsPosition.BOTTOM && (h("z-button", { class: "z-carousel-navigation-arrow", variant: ButtonVariant.TERTIARY, icon: "arrow-right", onClick: this.onNext.bind(this), disabled: !this.infinite && !this.canNavigateNext, ariaLabel: this.single ? "Mostra l'elemento successivo" : "Mostra gli elementi successivi" }))))));
167
+ return (h(Host, null, h("div", { class: "z-carousel-container", "aria-roledescription": "carousel", "aria-label": this.label || "Carousel" }, this.label && h("div", { class: "z-carousel-title heading-3-sb" }, this.label), h("div", { class: "z-carousel-wrapper" }, h("z-button", { class: "z-carousel-navigation-arrow", variant: ButtonVariant.SECONDARY, "data-direction": "prev", icon: "arrow-left", onClick: this.onPrev.bind(this), disabled: !this.infinite && !this.canNavigatePrev, hidden: this.arrowsPosition !== CarouselArrowsPosition.OVER || !this.canNavigate, ariaLabel: this.single ? "Mostra l'elemento precedente" : "Mostra gli elementi precedenti" }), h("ul", { class: "z-carousel-items-container", "aria-atomic": "false", "aria-live": "polite", ref: (el) => (this.itemsContainer = el) }, h("slot", { onSlotchange: this.onSlotChange.bind(this) })), h("z-button", { class: "z-carousel-navigation-arrow", variant: ButtonVariant.SECONDARY, "data-direction": "next", icon: "arrow-right", onClick: this.onNext.bind(this), disabled: !this.infinite && !this.canNavigateNext, hidden: this.arrowsPosition !== CarouselArrowsPosition.OVER || !this.canNavigate, 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", { class: "z-carousel-navigation-arrow", variant: ButtonVariant.TERTIARY, icon: "arrow-left", onClick: this.onPrev.bind(this), disabled: !this.infinite && !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((_, index) => (h("button", { type: "button", class: { current: this.highlightedIndicator === index }, "aria-label": this.highlightedIndicator === index ? "Elemento corrente" : `Spostati all'elemento ${index + 1}`, onClick: () => this.goTo(index) }))))), this.progressMode === CarouselProgressMode.NUMBERS && this.single && this.items && (h("div", { class: "numbers-progress interactive-1" }, h("span", { class: "current" }, this.current + 1), h("span", null, "di"), h("span", null, this.items.length))), this.arrowsPosition === CarouselArrowsPosition.BOTTOM && (h("z-button", { class: "z-carousel-navigation-arrow", variant: ButtonVariant.TERTIARY, icon: "arrow-right", onClick: this.onNext.bind(this), disabled: !this.infinite && !this.canNavigateNext, ariaLabel: this.single ? "Mostra l'elemento successivo" : "Mostra gli elementi successivi" }))))));
169
168
  }
170
169
  get host() { return getElement(this); }
171
170
  static get watchers() { return {
@@ -1 +1 @@
1
- {"file":"z-carousel.entry.js","mappings":";;;AAAA,MAAM,SAAS,GAAG,8kFAA8kF,CAAC;AACjmF,wBAAe,SAAS;;MCaX,SAAS;;;;;QAmEZ,gBAAW,GAAW,IAAI,CAAC;;;sBAtD1B,KAAK;;;2BAgBA,IAAI;kCAIG,GAAG;wBAIb,KAAK;uBAIN,CAAC;;;;;;IAiCX,aAAa;QACX,IAAI,CAAC,WAAW,CA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C,KAAK,KAC9E,WAAK,KAAK,EAAC,gCAAgC,IACzC,YAAM,KAAK,EAAC,SAAS,IAAE,IAAI,CAAC,OAAO,GAAG,CAAC,CAAQ,EAC/C,qBAAe,EACf,gBAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAQ,CAC5B,CACP,EACA,IAAI,CAAC,cAAc,KAAK,sBAAsB,CAAC,MAAM,KACpD,gBACE,KAAK,EAAC,6BAA6B,EACnC,OAAO,EAAE,aAAa,CAAC,QAAQ,EAC/B,IAAI,EAAC,aAAa,EAClB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EAC/B,QAAQ,EAAE,CAAC,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,eAAe,EACjD,SAAS,EAAE,IAAI,CAAC,MAAM,GAAG,8BAA8B,GAAG,gCAAgC,GAC1F,CACH,CACG,CACP,CACI,EACP;KACH;;;;;;;;;;;;","names":[],"sources":["src/components/z-carousel/styles.css?tag=z-carousel&encapsulation=shadow","src/components/z-carousel/index.tsx"],"sourcesContent":[":host {\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n\n --z-carousel-gutter: 0;\n --z-carousel-items-shadow: ;\n}\n\n:host([single]) {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n}\n\n:host([single]) .z-carousel-container {\n width: fit-content;\n max-width: 100%;\n}\n\n.z-carousel-container {\n display: flex;\n flex-direction: column;\n}\n\n.z-carousel-title {\n margin-bottom: calc(var(--space-unit) * 2);\n}\n\n.z-carousel-wrapper {\n position: relative;\n}\n\n.z-carousel-items-container {\n display: flex;\n max-width: 100%;\n flex-direction: row;\n margin: 0;\n box-shadow: var(--z-carousel-items-shadow, none);\n column-gap: var(--z-carousel-gutter);\n list-style: none;\n -ms-overflow-style: none; /* IE and Edge */\n overflow-x: scroll;\n padding-inline-start: 0;\n scroll-behavior: smooth;\n scroll-snap-type: x mandatory;\n\n /* Hide scrollbar for IE, Edge and Firefox */\n scrollbar-width: none; /* Firefox */\n}\n\n/* Hide scrollbar for Chrome, Safari and Opera */\n.z-carousel-items-container::-webkit-scrollbar {\n display: none;\n}\n\n.z-carousel-items-container ::slotted(*) {\n scroll-snap-align: center;\n}\n\n.z-carousel-navigation-arrow[hidden] {\n display: none;\n}\n\n.z-carousel-navigation-arrow[data-direction] {\n position: absolute;\n z-index: 1;\n bottom: 50%;\n transform: translateY(50%);\n}\n\n.z-carousel-navigation-arrow[data-direction=\"next\"] {\n right: 0;\n}\n\n:host(:not([fixed-arrows])) .z-carousel-wrapper .z-carousel-navigation-arrow {\n display: none;\n}\n\n.z-carousel-footer {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n column-gap: calc(var(--space-unit) * 3);\n}\n\n:host([arrows-position=\"bottom\"]) .z-carousel-footer {\n margin-top: calc(var(--space-unit) * 0.75);\n}\n\n.z-carousel-footer .numbers-progress,\n.z-carousel-footer .dots-progress {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.z-carousel-footer .dots-progress {\n column-gap: calc(var(--space-unit) * 3);\n}\n\n:host(:not([arrows-position=\"bottom\"])) .z-carousel-footer .dots-progress {\n margin-top: calc(var(--space-unit) * 2);\n}\n\n.z-carousel-footer .dots-progress button {\n display: flex;\n width: calc(var(--space-unit) * 3);\n height: calc(var(--space-unit) * 3);\n align-items: center;\n padding: 0;\n border: none;\n margin: 0;\n background-color: var(--color-surface03);\n border-radius: calc(var(--space-unit) * 3);\n}\n\n.z-carousel-footer .dots-progress button.current {\n background-color: var(--color-primary01);\n}\n\n.z-carousel-footer .dots-progress button:focus:focus-visible {\n box-shadow: var(--shadow-focus-primary);\n outline: none;\n}\n\n.z-carousel-footer .dots-progress button:not(.current) {\n cursor: pointer;\n}\n\n.z-carousel-footer .numbers-progress {\n column-gap: calc(var(--space-unit) / 2);\n}\n\n:host(:not([arrows-position=\"bottom\"])) .z-carousel-footer .numbers-progress {\n margin-top: var(--space-unit);\n}\n\n.z-carousel-footer .numbers-progress .current {\n font-weight: var(--font-sb);\n}\n\n@media (min-width: 768px) {\n :host(:not([fixed-arrows])) .z-carousel-wrapper:hover .z-carousel-navigation-arrow:not([hidden]) {\n display: flex;\n }\n}\n","import {Component, Element, Event, EventEmitter, Host, Prop, State, Watch, h} from \"@stencil/core\";\nimport {ButtonVariant, CarouselArrowsPosition, CarouselProgressMode} from \"../../beans\";\n\n/**\n * ZCarousel component.\n * @cssprop --z-carousel-gutter - The gutter between items.\n * @cssprop --z-carousel-items-shadow - The shadow around the items.\n * @slot - Carousel items. Use `<li>` elements inside this slot.\n */\n@Component({\n tag: \"z-carousel\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZCarousel {\n @Element() host: HTMLZCarouselElement;\n\n /** The z-carousel is on loading state */\n @Prop()\n isLoading: boolean;\n\n /** The z-carousel title */\n @Prop()\n label?: string;\n\n /** Shows only one content at a time */\n @Prop({reflect: true})\n single = false;\n\n /** Arrow buttons position */\n @Prop({reflect: true})\n arrowsPosition?: CarouselArrowsPosition;\n\n /** Progress indicator type. Only available for `single` mode */\n @Prop()\n progressMode?: CarouselProgressMode;\n\n /**\n * Whether the navigation arrow buttons over the items are always visible or only on mouse hover.\n * If set to `false`, the arrows will not be visible on mobile.\n * Only meaningful with `arrowsPosition` set to `OVER`.\n */\n @Prop({reflect: true})\n fixedArrows = true;\n\n /** The height of the ghost loader (only visible when `isLoading` is set to `true`) */\n @Prop()\n ghostLoadingHeight = 100;\n\n /** When enabled, navigating next the last item will go back to the first item and vice versa. */\n @Prop()\n infinite = false;\n\n /** Current item index for single mode. */\n @State()\n current = 0;\n\n /** Items on the slider. */\n @State()\n items: HTMLLIElement[];\n\n /** Index of the indicator to highlight. */\n @State()\n highlightedIndicator: number;\n\n @State()\n canNavigatePrev: boolean;\n\n @State()\n canNavigateNext: boolean;\n\n /** Reference for the items container element. */\n protected itemsContainer: HTMLUListElement;\n\n /** Observer that handles current index change when scrolling on single mode. */\n private intersectionObserver: IntersectionObserver;\n\n /** Observer to check if navigation can still be enabled/showed when the size of the items' container changes */\n private resizeObserver: ResizeObserver;\n\n /** Flag indicating the items container is about to scroll programmatically towards the stored index. */\n private scrollingTo: number = null;\n\n /** Emitted on index change and only in `single` mode. */\n @Event()\n indexChange: EventEmitter<{currentItem: number}>;\n\n @Watch(\"current\")\n onIndexChange(): void {\n this.indexChange.emit({currentItem: this.current});\n }\n\n @Watch(\"single\")\n onSingleModeChange(): void {\n if (this.single && !this.intersectionObserver) {\n this.setIntersectionObserver();\n }\n }\n\n @Watch(\"infinite\")\n onInfiniteModeChange(): void {\n this.checkNavigationValidity();\n }\n\n /**\n * Set an intersection observer to:\n * - highlight the indicator of the intersecting item during scroll\n * - set the current item to the last intersecting item\n */\n private setIntersectionObserver(): void {\n this.intersectionObserver = new IntersectionObserver(\n (entries) => {\n const entry = entries.find(({isIntersecting}) => isIntersecting);\n if (!entry) {\n return;\n }\n\n const entryIndex = this.items.findIndex((item) => item === entry.target);\n this.highlightedIndicator = entryIndex;\n\n /* skip setting the current item if intersection has been triggered by a programmatic scroll\n (@see `goTo` function) and the final index has not been reached */\n if (this.scrollingTo !== null && entryIndex !== this.scrollingTo) {\n return;\n }\n\n this.scrollingTo = null;\n this.current = entryIndex;\n },\n {\n root: this.itemsContainer,\n threshold: 0.5,\n }\n );\n\n this.items.forEach((element) => this.intersectionObserver.observe(element));\n }\n\n /** Update items' list and check conditions to allow navigation */\n private onSlotChange(): void {\n this.items = Array.from(this.host.children) as HTMLLIElement[];\n this.checkNavigationValidity();\n this.setIntersectionObserver();\n this.goTo(this.current);\n }\n\n private onPrev(): void {\n if (this.single) {\n this.goTo(this.infinite && this.current - 1 < 0 ? this.items.length - 1 : Math.max(0, this.current - 1));\n\n return;\n }\n\n this.itemsContainer.scrollBy({\n left:\n this.infinite && this.itemsContainer.scrollLeft == 0\n ? this.itemsContainer.scrollWidth - this.itemsContainer.clientWidth\n : -this.itemsContainer.clientWidth / 2,\n behavior: \"smooth\",\n });\n }\n\n private onNext(): void {\n if (this.single) {\n const next =\n this.infinite && this.current + 1 > this.items.length - 1\n ? 0\n : Math.min(this.current + 1, this.items.length - 1);\n\n return this.goTo(next);\n }\n\n this.itemsContainer.scrollBy({\n left:\n this.infinite &&\n this.itemsContainer.scrollLeft == this.itemsContainer.scrollWidth - this.itemsContainer.clientWidth\n ? -this.itemsContainer.scrollWidth\n : this.itemsContainer.clientWidth / 2,\n behavior: \"smooth\",\n });\n }\n\n /**\n * Check if navigation buttons can be enabled and set the related local states.\n */\n private checkNavigationValidity(): void {\n if (this.single) {\n this.canNavigatePrev = this.current > 0;\n this.canNavigateNext = this.current < this.items.length - 1;\n\n return;\n }\n\n this.canNavigatePrev = this.itemsContainer.scrollLeft > 0;\n this.canNavigateNext =\n this.itemsContainer.scrollLeft < this.itemsContainer.scrollWidth - this.itemsContainer.clientWidth;\n }\n\n /**\n * Check if footer has to be rendered.\n */\n private canShowFooter(): boolean {\n if (!this.canNavigatePrev && !this.canNavigateNext) {\n return false;\n }\n\n return (\n this.arrowsPosition === CarouselArrowsPosition.BOTTOM ||\n this.progressMode === CarouselProgressMode.DOTS ||\n this.progressMode === CarouselProgressMode.NUMBERS\n );\n }\n\n /**\n * Set current item to passed index.\n * @param index Index to set\n */\n private goTo(index: number): void {\n if (this.current === index) {\n return;\n }\n\n this.scrollingTo = index;\n const left = this.items.slice(0, index).reduce((acc, item) => (acc += item.clientWidth), 0);\n // the scroll will trigger the IntersectionObserver and set the current item\n this.itemsContainer.scroll({\n left,\n behavior: \"smooth\",\n });\n }\n\n /** Check if navigation of at least one direction is enabled */\n private get canNavigate(): boolean {\n return this.canNavigatePrev || this.canNavigateNext;\n }\n\n private setupItems(): void {\n this.items = Array.from(this.host.children) as HTMLLIElement[];\n this.items.forEach((item) => {\n item.setAttribute(\"role\", \"group\");\n item.setAttribute(\"aria-roledescription\", \"slide\");\n });\n }\n\n componentDidLoad(): void {\n this.itemsContainer?.addEventListener(\"scroll\", this.checkNavigationValidity.bind(this), {passive: true});\n this.resizeObserver = new ResizeObserver(this.checkNavigationValidity.bind(this));\n this.resizeObserver.observe(this.itemsContainer);\n this.setupItems();\n if (this.single) {\n this.setIntersectionObserver();\n }\n this.checkNavigationValidity();\n }\n\n disconnectedCallback(): void {\n this.resizeObserver?.disconnect();\n }\n\n render(): HTMLDivElement | HTMLZCarouselElement {\n if (this.isLoading) {\n return (\n <div class=\"z-carousel-container\">\n {this.label && <div class=\"heading-3-sb z-carousel-title\">{this.label}</div>}\n <div style={{height: `${this.ghostLoadingHeight}px`}}>\n <z-ghost-loading></z-ghost-loading>\n </div>\n </div>\n );\n }\n\n return (\n <Host>\n <div\n class=\"z-carousel-container\"\n role=\"group\"\n aria-roledescription=\"carousel\"\n aria-label={this.label || \"Carousel\"}\n >\n {this.label && <div class=\"z-carousel-title heading-3-sb\">{this.label}</div>}\n <div class=\"z-carousel-wrapper\">\n <z-button\n class=\"z-carousel-navigation-arrow\"\n variant={ButtonVariant.SECONDARY}\n data-direction=\"prev\"\n icon=\"arrow-left\"\n onClick={this.onPrev.bind(this)}\n disabled={!this.infinite && !this.canNavigatePrev}\n hidden={this.arrowsPosition !== CarouselArrowsPosition.OVER || !this.canNavigate}\n ariaLabel={this.single ? \"Mostra l'elemento precedente\" : \"Mostra gli elementi precedenti\"}\n />\n <ul\n class=\"z-carousel-items-container\"\n aria-atomic=\"false\"\n aria-live=\"polite\"\n ref={(el) => (this.itemsContainer = el)}\n >\n <slot onSlotchange={this.onSlotChange.bind(this)} />\n </ul>\n <z-button\n class=\"z-carousel-navigation-arrow\"\n variant={ButtonVariant.SECONDARY}\n data-direction=\"next\"\n icon=\"arrow-right\"\n onClick={this.onNext.bind(this)}\n disabled={!this.infinite && !this.canNavigateNext}\n hidden={this.arrowsPosition !== CarouselArrowsPosition.OVER || !this.canNavigate}\n ariaLabel={this.single ? \"Mostra l'elemento successivo\" : \"Mostra gli elementi successivi\"}\n />\n </div>\n </div>\n\n {this.canShowFooter() && (\n <div class=\"z-carousel-footer\">\n {this.arrowsPosition === CarouselArrowsPosition.BOTTOM && (\n <z-button\n class=\"z-carousel-navigation-arrow\"\n variant={ButtonVariant.TERTIARY}\n icon=\"arrow-left\"\n onClick={this.onPrev.bind(this)}\n disabled={!this.infinite && !this.canNavigatePrev}\n ariaLabel={this.single ? \"Mostra l'elemento precedente\" : \"Mostra gli elementi precedenti\"}\n />\n )}\n {this.progressMode === CarouselProgressMode.DOTS && this.single && this.items && (\n <div class=\"dots-progress\">\n {this.items.map((_, index) => (\n <button\n type=\"button\"\n class={{current: this.highlightedIndicator === index}}\n aria-label={\n this.highlightedIndicator === index ? \"Elemento corrente\" : `Spostati all'elemento ${index + 1}`\n }\n onClick={() => this.goTo(index)}\n />\n ))}\n </div>\n )}\n {this.progressMode === CarouselProgressMode.NUMBERS && this.single && this.items && (\n <div class=\"numbers-progress interactive-1\">\n <span class=\"current\">{this.current + 1}</span>\n <span>di</span>\n <span>{this.items.length}</span>\n </div>\n )}\n {this.arrowsPosition === CarouselArrowsPosition.BOTTOM && (\n <z-button\n class=\"z-carousel-navigation-arrow\"\n variant={ButtonVariant.TERTIARY}\n icon=\"arrow-right\"\n onClick={this.onNext.bind(this)}\n disabled={!this.infinite && !this.canNavigateNext}\n ariaLabel={this.single ? \"Mostra l'elemento successivo\" : \"Mostra gli elementi successivi\"}\n />\n )}\n </div>\n )}\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"z-carousel.entry.js","mappings":";;;AAAA,MAAM,SAAS,GAAG,8kFAA8kF,CAAC;AACjmF,wBAAe,SAAS;;MCaX,SAAS;;;;;QAmEZ,gBAAW,GAAW,IAAI,CAAC;;;sBAtD1B,KAAK;;;2BAgBA,IAAI;kCAIG,GAAG;wBAIb,KAAK;uBAIN,CAAC;;;;;;IAiCX,aAAa;QACX,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,EAAC,WAAW,EAAE,IAAI,CAAC,OAAO,EAAC,CAAC,CAAC;KACpD;IAGD,kBAAk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AAQ,CAC5B,CACP,EACA,IAAI,CAAC,cAAc,KAAK,sBAAsB,CAAC,MAAM,KACpD,gBACE,KAAK,EAAC,6BAA6B,EACnC,OAAO,EAAE,aAAa,CAAC,QAAQ,EAC/B,IAAI,EAAC,aAAa,EAClB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EAC/B,QAAQ,EAAE,CAAC,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,eAAe,EACjD,SAAS,EAAE,IAAI,CAAC,MAAM,GAAG,8BAA8B,GAAG,gCAAgC,GAC1F,CACH,CACG,CACP,CACI,EACP;KACH;;;;;;;;;;;;","names":[],"sources":["src/components/z-carousel/styles.css?tag=z-carousel&encapsulation=shadow","src/components/z-carousel/index.tsx"],"sourcesContent":[":host {\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n\n --z-carousel-gutter: 0;\n --z-carousel-items-shadow: ;\n}\n\n:host([single]) {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n}\n\n:host([single]) .z-carousel-container {\n width: fit-content;\n max-width: 100%;\n}\n\n.z-carousel-container {\n display: flex;\n flex-direction: column;\n}\n\n.z-carousel-title {\n margin-bottom: calc(var(--space-unit) * 2);\n}\n\n.z-carousel-wrapper {\n position: relative;\n}\n\n.z-carousel-items-container {\n display: flex;\n max-width: 100%;\n flex-direction: row;\n margin: 0;\n box-shadow: var(--z-carousel-items-shadow, none);\n column-gap: var(--z-carousel-gutter);\n list-style: none;\n -ms-overflow-style: none; /* IE and Edge */\n overflow-x: scroll;\n padding-inline-start: 0;\n scroll-behavior: smooth;\n scroll-snap-type: x mandatory;\n\n /* Hide scrollbar for IE, Edge and Firefox */\n scrollbar-width: none; /* Firefox */\n}\n\n/* Hide scrollbar for Chrome, Safari and Opera */\n.z-carousel-items-container::-webkit-scrollbar {\n display: none;\n}\n\n.z-carousel-items-container ::slotted(*) {\n scroll-snap-align: center;\n}\n\n.z-carousel-navigation-arrow[hidden] {\n display: none;\n}\n\n.z-carousel-navigation-arrow[data-direction] {\n position: absolute;\n z-index: 1;\n bottom: 50%;\n transform: translateY(50%);\n}\n\n.z-carousel-navigation-arrow[data-direction=\"next\"] {\n right: 0;\n}\n\n:host(:not([fixed-arrows])) .z-carousel-wrapper .z-carousel-navigation-arrow {\n display: none;\n}\n\n.z-carousel-footer {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n column-gap: calc(var(--space-unit) * 3);\n}\n\n:host([arrows-position=\"bottom\"]) .z-carousel-footer {\n margin-top: calc(var(--space-unit) * 0.75);\n}\n\n.z-carousel-footer .numbers-progress,\n.z-carousel-footer .dots-progress {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.z-carousel-footer .dots-progress {\n column-gap: calc(var(--space-unit) * 3);\n}\n\n:host(:not([arrows-position=\"bottom\"])) .z-carousel-footer .dots-progress {\n margin-top: calc(var(--space-unit) * 2);\n}\n\n.z-carousel-footer .dots-progress button {\n display: flex;\n width: calc(var(--space-unit) * 3);\n height: calc(var(--space-unit) * 3);\n align-items: center;\n padding: 0;\n border: none;\n margin: 0;\n background-color: var(--color-surface03);\n border-radius: calc(var(--space-unit) * 3);\n}\n\n.z-carousel-footer .dots-progress button.current {\n background-color: var(--color-primary01);\n}\n\n.z-carousel-footer .dots-progress button:focus:focus-visible {\n box-shadow: var(--shadow-focus-primary);\n outline: none;\n}\n\n.z-carousel-footer .dots-progress button:not(.current) {\n cursor: pointer;\n}\n\n.z-carousel-footer .numbers-progress {\n column-gap: calc(var(--space-unit) / 2);\n}\n\n:host(:not([arrows-position=\"bottom\"])) .z-carousel-footer .numbers-progress {\n margin-top: var(--space-unit);\n}\n\n.z-carousel-footer .numbers-progress .current {\n font-weight: var(--font-sb);\n}\n\n@media (min-width: 768px) {\n :host(:not([fixed-arrows])) .z-carousel-wrapper:hover .z-carousel-navigation-arrow:not([hidden]) {\n display: flex;\n }\n}\n","import {Component, Element, Event, EventEmitter, Host, Prop, State, Watch, h} from \"@stencil/core\";\nimport {ButtonVariant, CarouselArrowsPosition, CarouselProgressMode} from \"../../beans\";\n\n/**\n * ZCarousel component.\n * @cssprop --z-carousel-gutter - The gutter between items.\n * @cssprop --z-carousel-items-shadow - The shadow around the items.\n * @slot - Carousel items. Use `<li>` elements inside this slot.\n */\n@Component({\n tag: \"z-carousel\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZCarousel {\n @Element() host: HTMLZCarouselElement;\n\n /** The z-carousel is on loading state */\n @Prop()\n isLoading: boolean;\n\n /** The z-carousel title */\n @Prop()\n label?: string;\n\n /** Shows only one content at a time */\n @Prop({reflect: true})\n single = false;\n\n /** Arrow buttons position */\n @Prop({reflect: true})\n arrowsPosition?: CarouselArrowsPosition;\n\n /** Progress indicator type. Only available for `single` mode */\n @Prop()\n progressMode?: CarouselProgressMode;\n\n /**\n * Whether the navigation arrow buttons over the items are always visible or only on mouse hover.\n * If set to `false`, the arrows will not be visible on mobile.\n * Only meaningful with `arrowsPosition` set to `OVER`.\n */\n @Prop({reflect: true})\n fixedArrows = true;\n\n /** The height of the ghost loader (only visible when `isLoading` is set to `true`) */\n @Prop()\n ghostLoadingHeight = 100;\n\n /** When enabled, navigating next the last item will go back to the first item and vice versa. */\n @Prop()\n infinite = false;\n\n /** Current item index for single mode. */\n @State()\n current = 0;\n\n /** Items on the slider. */\n @State()\n items: HTMLLIElement[];\n\n /** Index of the indicator to highlight. */\n @State()\n highlightedIndicator: number;\n\n @State()\n canNavigatePrev: boolean;\n\n @State()\n canNavigateNext: boolean;\n\n /** Reference for the items container element. */\n protected itemsContainer: HTMLUListElement;\n\n /** Observer that handles current index change when scrolling on single mode. */\n private intersectionObserver: IntersectionObserver;\n\n /** Observer to check if navigation can still be enabled/showed when the size of the items' container changes */\n private resizeObserver: ResizeObserver;\n\n /** Flag indicating the items container is about to scroll programmatically towards the stored index. */\n private scrollingTo: number = null;\n\n /** Emitted on index change and only in `single` mode. */\n @Event()\n indexChange: EventEmitter<{currentItem: number}>;\n\n @Watch(\"current\")\n onIndexChange(): void {\n this.indexChange.emit({currentItem: this.current});\n }\n\n @Watch(\"single\")\n onSingleModeChange(): void {\n if (this.single && !this.intersectionObserver) {\n this.setIntersectionObserver();\n }\n }\n\n @Watch(\"infinite\")\n onInfiniteModeChange(): void {\n this.checkNavigationValidity();\n }\n\n /**\n * Set an intersection observer to:\n * - highlight the indicator of the intersecting item during scroll\n * - set the current item to the last intersecting item\n */\n private setIntersectionObserver(): void {\n this.intersectionObserver = new IntersectionObserver(\n (entries) => {\n const entry = entries.find(({isIntersecting}) => isIntersecting);\n if (!entry) {\n return;\n }\n\n const entryIndex = this.items.findIndex((item) => item === entry.target);\n this.highlightedIndicator = entryIndex;\n\n /* skip setting the current item if intersection has been triggered by a programmatic scroll\n (@see `goTo` function) and the final index has not been reached */\n if (this.scrollingTo !== null && entryIndex !== this.scrollingTo) {\n return;\n }\n\n this.scrollingTo = null;\n this.current = entryIndex;\n },\n {\n root: this.itemsContainer,\n threshold: 0.5,\n }\n );\n\n this.items.forEach((element) => this.intersectionObserver.observe(element));\n }\n\n /** Update items' list and check conditions to allow navigation */\n private onSlotChange(): void {\n this.items = Array.from(this.host.children) as HTMLLIElement[];\n this.checkNavigationValidity();\n this.setIntersectionObserver();\n this.goTo(this.current);\n }\n\n private onPrev(): void {\n if (this.single) {\n this.goTo(this.infinite && this.current - 1 < 0 ? this.items.length - 1 : Math.max(0, this.current - 1));\n\n return;\n }\n\n this.itemsContainer.scrollBy({\n left:\n this.infinite && this.itemsContainer.scrollLeft == 0\n ? this.itemsContainer.scrollWidth - this.itemsContainer.clientWidth\n : -this.itemsContainer.clientWidth / 2,\n behavior: \"smooth\",\n });\n }\n\n private onNext(): void {\n if (this.single) {\n const next =\n this.infinite && this.current + 1 > this.items.length - 1\n ? 0\n : Math.min(this.current + 1, this.items.length - 1);\n\n return this.goTo(next);\n }\n\n this.itemsContainer.scrollBy({\n left:\n this.infinite &&\n this.itemsContainer.scrollLeft == this.itemsContainer.scrollWidth - this.itemsContainer.clientWidth\n ? -this.itemsContainer.scrollWidth\n : this.itemsContainer.clientWidth / 2,\n behavior: \"smooth\",\n });\n }\n\n /**\n * Check if navigation buttons can be enabled and set the related local states.\n */\n private checkNavigationValidity(): void {\n if (this.single) {\n this.canNavigatePrev = this.current > 0;\n this.canNavigateNext = this.current < this.items.length - 1;\n\n return;\n }\n\n this.canNavigatePrev = this.itemsContainer.scrollLeft > 0;\n this.canNavigateNext =\n this.itemsContainer.scrollLeft < this.itemsContainer.scrollWidth - this.itemsContainer.clientWidth;\n }\n\n /**\n * Check if footer has to be rendered.\n */\n private canShowFooter(): boolean {\n if (!this.canNavigatePrev && !this.canNavigateNext) {\n return false;\n }\n\n return (\n this.arrowsPosition === CarouselArrowsPosition.BOTTOM ||\n this.progressMode === CarouselProgressMode.DOTS ||\n this.progressMode === CarouselProgressMode.NUMBERS\n );\n }\n\n /**\n * Set current item to passed index.\n * @param index Index to set\n */\n private goTo(index: number): void {\n if (this.current === index) {\n return;\n }\n\n this.scrollingTo = index;\n const left = this.items.slice(0, index).reduce((acc, item) => (acc += item.clientWidth), 0);\n // the scroll will trigger the IntersectionObserver and set the current item\n this.itemsContainer.scroll({\n left,\n behavior: \"smooth\",\n });\n }\n\n /** Check if navigation of at least one direction is enabled */\n private get canNavigate(): boolean {\n return this.canNavigatePrev || this.canNavigateNext;\n }\n\n private setupItems(): void {\n this.items = Array.from(this.host.children) as HTMLLIElement[];\n this.items.forEach((item) => {\n item.setAttribute(\"aria-roledescription\", \"slide\");\n });\n }\n\n componentDidLoad(): void {\n this.itemsContainer?.addEventListener(\"scroll\", this.checkNavigationValidity.bind(this), {passive: true});\n this.resizeObserver = new ResizeObserver(this.checkNavigationValidity.bind(this));\n this.resizeObserver.observe(this.itemsContainer);\n this.setupItems();\n if (this.single) {\n this.setIntersectionObserver();\n }\n this.checkNavigationValidity();\n }\n\n disconnectedCallback(): void {\n this.resizeObserver?.disconnect();\n }\n\n render(): HTMLDivElement | HTMLZCarouselElement {\n if (this.isLoading) {\n return (\n <div class=\"z-carousel-container\">\n {this.label && <div class=\"heading-3-sb z-carousel-title\">{this.label}</div>}\n <div style={{height: `${this.ghostLoadingHeight}px`}}>\n <z-ghost-loading></z-ghost-loading>\n </div>\n </div>\n );\n }\n\n return (\n <Host>\n <div\n class=\"z-carousel-container\"\n aria-roledescription=\"carousel\"\n aria-label={this.label || \"Carousel\"}\n >\n {this.label && <div class=\"z-carousel-title heading-3-sb\">{this.label}</div>}\n <div class=\"z-carousel-wrapper\">\n <z-button\n class=\"z-carousel-navigation-arrow\"\n variant={ButtonVariant.SECONDARY}\n data-direction=\"prev\"\n icon=\"arrow-left\"\n onClick={this.onPrev.bind(this)}\n disabled={!this.infinite && !this.canNavigatePrev}\n hidden={this.arrowsPosition !== CarouselArrowsPosition.OVER || !this.canNavigate}\n ariaLabel={this.single ? \"Mostra l'elemento precedente\" : \"Mostra gli elementi precedenti\"}\n />\n <ul\n class=\"z-carousel-items-container\"\n aria-atomic=\"false\"\n aria-live=\"polite\"\n ref={(el) => (this.itemsContainer = el)}\n >\n <slot onSlotchange={this.onSlotChange.bind(this)} />\n </ul>\n <z-button\n class=\"z-carousel-navigation-arrow\"\n variant={ButtonVariant.SECONDARY}\n data-direction=\"next\"\n icon=\"arrow-right\"\n onClick={this.onNext.bind(this)}\n disabled={!this.infinite && !this.canNavigateNext}\n hidden={this.arrowsPosition !== CarouselArrowsPosition.OVER || !this.canNavigate}\n ariaLabel={this.single ? \"Mostra l'elemento successivo\" : \"Mostra gli elementi successivi\"}\n />\n </div>\n </div>\n\n {this.canShowFooter() && (\n <div class=\"z-carousel-footer\">\n {this.arrowsPosition === CarouselArrowsPosition.BOTTOM && (\n <z-button\n class=\"z-carousel-navigation-arrow\"\n variant={ButtonVariant.TERTIARY}\n icon=\"arrow-left\"\n onClick={this.onPrev.bind(this)}\n disabled={!this.infinite && !this.canNavigatePrev}\n ariaLabel={this.single ? \"Mostra l'elemento precedente\" : \"Mostra gli elementi precedenti\"}\n />\n )}\n {this.progressMode === CarouselProgressMode.DOTS && this.single && this.items && (\n <div class=\"dots-progress\">\n {this.items.map((_, index) => (\n <button\n type=\"button\"\n class={{current: this.highlightedIndicator === index}}\n aria-label={\n this.highlightedIndicator === index ? \"Elemento corrente\" : `Spostati all'elemento ${index + 1}`\n }\n onClick={() => this.goTo(index)}\n />\n ))}\n </div>\n )}\n {this.progressMode === CarouselProgressMode.NUMBERS && this.single && this.items && (\n <div class=\"numbers-progress interactive-1\">\n <span class=\"current\">{this.current + 1}</span>\n <span>di</span>\n <span>{this.items.length}</span>\n </div>\n )}\n {this.arrowsPosition === CarouselArrowsPosition.BOTTOM && (\n <z-button\n class=\"z-carousel-navigation-arrow\"\n variant={ButtonVariant.TERTIARY}\n icon=\"arrow-right\"\n onClick={this.onNext.bind(this)}\n disabled={!this.infinite && !this.canNavigateNext}\n ariaLabel={this.single ? \"Mostra l'elemento successivo\" : \"Mostra gli elementi successivi\"}\n />\n )}\n </div>\n )}\n </Host>\n );\n }\n}\n"],"version":3}
@@ -15,11 +15,11 @@ const ZChip = class {
15
15
  this.ariaLabel = "";
16
16
  }
17
17
  render() {
18
- return (h("div", { key: '6e341c6b23f7ec91070af8e6790832baa2065338', class: {
18
+ return (h("div", { key: 'fe1e1ba8b794a0e67a04236808573c3ae9bcc4ce', class: {
19
19
  "z-chip-container": true,
20
20
  "z-chip-interactive": !!this.interactiveIcon,
21
21
  [this.type]: true,
22
- }, "aria-disabled": this.disabled }, this.icon && h("z-icon", { key: '8340f5866aa0b7ae4eefe07fd528d93be8fe6a53', name: this.icon }), h("slot", { key: '36b769d7fd5e8485d4583b094bb6f7d28362a503' }), this.interactiveIcon && (h("button", { key: '1859652a7c22fa0449f6f246d83b20ca3b063aa8', type: "button", onClick: () => this.interactiveIconClick.emit(), "aria-label": this.ariaLabel, disabled: this.disabled }, h("z-icon", { key: '1f21cc01c122a3d605b038cbc12d43294cac838b', class: "interactive-icon", name: this.interactiveIcon })))));
22
+ }, "aria-disabled": this.disabled }, this.icon && h("z-icon", { key: 'a1ee44f219dd0b451851aadd081d29d8a03fbeaf', name: this.icon }), h("slot", { key: '126b3211e329d893d6b5b3f567cc20630dd02534' }), this.interactiveIcon && (h("button", { key: '059813ec42ff86dff2ce9fb96650ad35b38e5622', type: "button", onClick: () => this.interactiveIconClick.emit(), "aria-label": this.ariaLabel, disabled: this.disabled }, h("z-icon", { key: '3fb748bef5acea52a4d4cd565b1da11ae777e784', class: "interactive-icon", name: this.interactiveIcon })))));
23
23
  }
24
24
  get el() { return getElement(this); }
25
25
  };
@@ -258,7 +258,7 @@ const ZCombobox = class {
258
258
  return (h("div", { class: "check-all-wrapper" }, h("z-input", { type: InputType.CHECKBOX, checked: allChecked, htmlid: checkAllId, class: this.getCheckboxClass(), label: allChecked ? this.uncheckalltext : this.checkalltext, disabled: this.maxcheckableitems && this.maxcheckableitems < this.itemsList.length, size: this.size === ControlSize.X_SMALL ? ControlSize.SMALL : this.size, role: "option", "aria-selected": allChecked ? "true" : "false", onKeyDown: (e) => this.handleSelectArrowsNavigation(e, checkAllId), onInputCheck: (e) => this.checkAll(e.detail.checked), onInputFocus: (e) => this.handleCheckboxFocus(e.detail.id) })));
259
259
  }
260
260
  render() {
261
- return (h("div", { key: '75e48688980a202cd06c3613cd337264f4b42496', "data-action": `combo-${this.inputid}`, class: { open: this.isopen, fixed: this.isfixed, disabled: this.disabled }, id: this.inputid }, this.renderHeader(), !this.disabled && this.renderContent()));
261
+ return (h("div", { key: '303335d1978e653877985ff2435f836bca278400', "data-action": `combo-${this.inputid}`, class: { open: this.isopen, fixed: this.isfixed, disabled: this.disabled }, id: this.inputid }, this.renderHeader(), !this.disabled && this.renderContent()));
262
262
  }
263
263
  get element() { return getElement(this); }
264
264
  static get watchers() { return {
@@ -29,9 +29,9 @@ const ZCoverHero = class {
29
29
  return (h("div", { class: "content-container" }, h("slot", { name: "content" })));
30
30
  }
31
31
  render() {
32
- return (h(Host, { key: 'b8db9df129ba92efc6c254a1058a9b89186fc6ca' }, this.variant === CoverHeroVariant.STACKED &&
32
+ return (h(Host, { key: '1a87367d3abb5790f0ea6cacf7d3e75eacbff59d' }, this.variant === CoverHeroVariant.STACKED &&
33
33
  this.contentPosition === CoverHeroContentPosition.TOP &&
34
- this.renderContent(), h("div", { key: '8b959ffe0c0c4fbddacb20ced4401234a8482ba3', class: "main-container" }, h("div", { key: '87918b02dc80974fb17400a64ffc3fdd277d8a14', class: "cover-container" }, h("slot", { key: '311401325e923d2f944b2f2989b2f2dc95971413', name: "cover" })), h("slot", { key: '7137546741734ea302b8fb00eea39f334c6780d2', name: "info-reveal" }), this.variant === CoverHeroVariant.OVERLAY && this.renderContent()), this.variant === CoverHeroVariant.STACKED &&
34
+ this.renderContent(), h("div", { key: 'b84e940db5381001045b9ebe7dfec5069ab27694', class: "main-container" }, h("div", { key: 'f46b165bd73a5eca477cd43164999ad5517b821c', class: "cover-container" }, h("slot", { key: 'cf61e486fd79bbbf38aa788f33dbd857dba86109', name: "cover" })), h("slot", { key: 'd0a748e763dde074c1c25c9aacf84d7357c17f14', name: "info-reveal" }), this.variant === CoverHeroVariant.OVERLAY && this.renderContent()), this.variant === CoverHeroVariant.STACKED &&
35
35
  this.contentPosition === CoverHeroContentPosition.BOTTOM &&
36
36
  this.renderContent()));
37
37
  }
@@ -1002,16 +1002,16 @@ const ZModal = class {
1002
1002
  e.preventDefault();
1003
1003
  }
1004
1004
  render() {
1005
- return (h("dialog", { key: '879616ceb0fe8efdc260faf34308b8abde70a9dc', class: {
1005
+ return (h("dialog", { key: '503ac50f3dc7be8877138ac79cf6ced2e980d5ba', class: {
1006
1006
  "modal-dialog": !this.scrollInside,
1007
- }, "aria-labelledby": "modal-title", "aria-describedby": "modal-content", role: this.alertdialog ? "alertdialog" : undefined, ref: (el) => (this.dialog = el), onClose: () => this.emitModalClose(), onCancel: (e) => this.handleEscape(e) }, h("div", { key: 'cbb8ef7c9ddabbdfddf1abd92a95ffb78109f3ba', class: {
1007
+ }, "aria-labelledby": "modal-title", "aria-describedby": "modal-content", role: this.alertdialog ? "alertdialog" : undefined, ref: (el) => (this.dialog = el), onClose: () => this.emitModalClose(), onCancel: (e) => this.handleEscape(e) }, h("div", { key: '465d23e5c49aa84569d9da23f8147ea4623c2ebe', class: {
1008
1008
  "modal-container": true,
1009
1009
  "modal-container-scroll-inside": this.scrollInside,
1010
1010
  "modal-container-scroll-outside": !this.scrollInside,
1011
- }, id: this.modalid }, h("header", { key: 'fa1811f7d3ac5a58163acc6e9292fa0cbf899b6f', onClick: this.emitModalHeaderActive.bind(this) }, h("div", { key: 'ded46a7e313929991a9740c7f1baf3885b85ce15' }, this.modaltitle && h("h1", { key: 'd127c62752ed24c849fb1de7e3e44e3ef72ea564', id: "modal-title" }, this.modaltitle), this.closeButtonSlot()), this.modalsubtitle && (h("div", { key: '7055e46bc31534ef074246aaf95158b1cd9b4078', class: "subtitle", id: "modal-subtitle" }, this.modalsubtitle))), h("div", { key: 'fec1db797c7cd9ed298c62da41327f07547375d4', class: {
1011
+ }, id: this.modalid }, h("header", { key: '3fc4ed74ba4a9d12603721ab6ae30f0ae2cc4873', onClick: this.emitModalHeaderActive.bind(this) }, h("div", { key: '03a4a96b10ddbd58a1c2232ce951910fff75d9a9' }, this.modaltitle && h("h1", { key: 'cd3477f565c3f9ff1da20ec2d3984275156fc429', id: "modal-title" }, this.modaltitle), this.closeButtonSlot()), this.modalsubtitle && (h("div", { key: '28aa28df2002147057dce0bb1ea62541cfcc4d2b', class: "subtitle", id: "modal-subtitle" }, this.modalsubtitle))), h("div", { key: '02d3b8ac1fa32e84ff837f6937065c81ec03f047', class: {
1012
1012
  "modal-content-scroll-inside": this.scrollInside,
1013
1013
  "modal-content-scroll-outside": !this.scrollInside,
1014
- }, id: "modal-content" }, h("slot", { key: 'fead24447d41a1eaf4972d9c65bdc42b1937988f', name: "modalContent" }))), h("div", { key: '322c011045b5ed86aabc924217e142a7233f1eeb', class: {
1014
+ }, id: "modal-content" }, h("slot", { key: '01f16e6a6c9b1caa16271ddd28a01ac0c3ae5e5f', name: "modalContent" }))), h("div", { key: '7cb7575c0f661982ed7853ca3df904331fea6c57', class: {
1015
1015
  "modal-background": true,
1016
1016
  "modal-background-scroll-outside": !this.scrollInside,
1017
1017
  }, "data-action": "modalBackground", "data-modal": this.modalid, onClick: () => {
@@ -8,7 +8,7 @@ const ZGhostLoading = class {
8
8
  registerInstance(this, hostRef);
9
9
  }
10
10
  render() {
11
- return h(Host, { key: '2881f3b25dedc311f34cd76911ff96f2fdfc0c41' });
11
+ return h(Host, { key: '1b6194b00f5be2533e18e4c6a914f4e51bf7e7bd' });
12
12
  }
13
13
  };
14
14
  ZGhostLoading.style = ZGhostLoadingStyle0;
@@ -14,7 +14,7 @@ const ZInfoBox = class {
14
14
  this.infoBoxClose.emit({ boxid: this.boxid });
15
15
  }
16
16
  render() {
17
- return (h("div", { key: '2f83796cb61288f4250b00847fe63005e9d62f5c', id: this.boxid }, h("slot", { key: '7531c58a7563a6e30f68df36a0a92650ee19b3b5', name: "content" }), this.isclosable && (h("z-icon", { key: 'ac0ae6e8195f62c776b2ee7da5dac09a0f17b703', name: "multiply", "data-action": "infoBoxClose", onClick: () => this.emitInfoBoxClose() }))));
17
+ return (h("div", { key: '4e08c5c0d3c070db1944b3ab5745d192fd4e8013', id: this.boxid }, h("slot", { key: 'f94d50c3fd311445d4abb7e3f12c387c3be4724d', name: "content" }), this.isclosable && (h("z-icon", { key: '165b638f14604a45a798210ea2de1c9f59bb3612', name: "multiply", "data-action": "infoBoxClose", onClick: () => this.emitInfoBoxClose() }))));
18
18
  }
19
19
  };
20
20
  ZInfoBox.style = ZInfoBoxStyle0;
@@ -46,7 +46,7 @@ const ZInfoReveal = class {
46
46
  }
47
47
  }
48
48
  render() {
49
- return (h(Host, { key: '26f1289a1592702b470934f4d9fe38c34039a013', open: this.open }, h("button", { key: '970af3aaf1e9460ee380249de460389f1bdfdfda', class: "z-info-reveal-trigger", type: "button", onClick: this.togglePanel.bind(this), "aria-label": !this.label ? this.ariaLabel : undefined, "aria-expanded": this.open ? "true" : "false", "aria-controls": "z-info-reveal-panel" }, this.icon && h("z-icon", { key: '396653feab94053d64b2157d4a79699d54cf5cf5', name: this.icon }), this.label && h("span", { key: '785319a805aecdf9f8c2ffa5f451c0f2868c5df3', class: "z-info-reveal-label" }, this.label)), h("div", { key: '729762b03fd3d2fb73914ed9a46d2634ff6b8d0b', class: "z-info-reveal-panel", id: "z-info-reveal-panel", ref: (el) => (this.panel = el), hidden: !this.open }, h("slot", { key: 'a16a68e1e7c4b1bcb10e69d1fe48fbe5f8dfda26' }), h("button", { key: 'e91b170b87e62dab979876413aad47bdb5e9d758', class: "z-info-reveal-close", type: "button", onClick: this.closePanel.bind(this), "aria-label": "Chiudi pannello informazioni" }, h("z-icon", { key: '772445e4bc3895c5c0328a5e7adca8994324c471', name: "multiply" })))));
49
+ return (h(Host, { key: '0cd6457cdde5047f859f7e11feee92fb9dd0eb31', open: this.open }, h("button", { key: '63fd527be4c6d7de36aa8546dc47874ad571de01', class: "z-info-reveal-trigger", type: "button", onClick: this.togglePanel.bind(this), "aria-label": !this.label ? this.ariaLabel : undefined, "aria-expanded": this.open ? "true" : "false", "aria-controls": "z-info-reveal-panel" }, this.icon && h("z-icon", { key: '0297eed1694a18d08b9290568a503afb441127ea', name: this.icon }), this.label && h("span", { key: '0fa5ff78efe186486b6991fec0edbcd560a2f302', class: "z-info-reveal-label" }, this.label)), h("div", { key: '6d1125e73e361aee556994e3e311196dfa288dee', class: "z-info-reveal-panel", id: "z-info-reveal-panel", ref: (el) => (this.panel = el), hidden: !this.open }, h("slot", { key: 'fe7b4a62cb6306418f935254139cfc4b0048a821' }), h("button", { key: '789d137466ede751579c4c64eddd04269eda3c12', class: "z-info-reveal-close", type: "button", onClick: this.closePanel.bind(this), "aria-label": "Chiudi pannello informazioni" }, h("z-icon", { key: '267e312def7799ab52a9fac1923d33538c8e9218', name: "multiply" })))));
50
50
  }
51
51
  get host() { return getElement(this); }
52
52
  static get watchers() { return {
@@ -21,7 +21,7 @@ const ZLogo = class {
21
21
  if (this.height) {
22
22
  style["height"] = style["max-height"] = `${this.height}px`;
23
23
  }
24
- return (h(Host, { key: '62a2be82e036760d34d812904b967ac96a22604a', style: style, class: { mobile: !!this.mobileLogo } }, this.link ? (h("a", { href: this.link, target: this.targetBlank ? "_blank" : "_self" }, h("img", { alt: this.imageAlt }))) : (h("img", { alt: this.imageAlt }))));
24
+ return (h(Host, { key: 'b7aef0e1a12aefa4609fc698ac287245d93144f0', style: style, class: { mobile: !!this.mobileLogo } }, this.link ? (h("a", { href: this.link, target: this.targetBlank ? "_blank" : "_self" }, h("img", { alt: this.imageAlt }))) : (h("img", { alt: this.imageAlt }))));
25
25
  }
26
26
  };
27
27
  ZLogo.style = ZLogoStyle0;
@@ -173,7 +173,7 @@ const ZMenuSection = class {
173
173
  this.onItemsChange();
174
174
  }
175
175
  render() {
176
- return (h(Host, { key: '4d9223bebf25df5eb224a7674c920ebc17470826', open: this.open }, h("button", { key: '2f75c046ad4519df706283d3b37c2d9feb8734d3', ref: (el) => (this.label = el), class: "label", "aria-haspopup": `${!!this.hasItems}`, "aria-expanded": `${!!this.open}`, role: "menuitem", tabindex: this.htmlTabindex, onClick: this.onLabelClick, onKeyDown: this.onLabelKeydown }, h("slot", { key: '0a3b20723371deac12792436d977c343c237720b', onSlotchange: this.onLabelSlotChange }), this.hasItems && h("z-icon", { key: '7fe5e9dc4a9eac28f0f3a381fedbe0ec3e7ca99d', name: this.open ? "chevron-up" : "chevron-down" })), h("div", { key: '80e167ce90df12c27eddc1e28b6bf6dd3b5d0dd7', class: "items", role: "menu", hidden: !this.open }, h("slot", { key: 'a0e88a56848abf198ced22e4fc390267aea6114e', name: "section", onSlotchange: this.onItemsChange }))));
176
+ return (h(Host, { key: '8055d8257a832f25940c0a754bd58497fa4bd0a0', open: this.open }, h("button", { key: '311bb43cd08cb379973701c416744ee27e3747f8', ref: (el) => (this.label = el), class: "label", "aria-haspopup": `${!!this.hasItems}`, "aria-expanded": `${!!this.open}`, role: "menuitem", tabindex: this.htmlTabindex, onClick: this.onLabelClick, onKeyDown: this.onLabelKeydown }, h("slot", { key: 'd6a00928ca6a80ccdec98164979ccb2681c130c5', onSlotchange: this.onLabelSlotChange }), this.hasItems && h("z-icon", { key: '976be6f35df99772aa82d82a60c86f3c09ca585a', name: this.open ? "chevron-up" : "chevron-down" })), h("div", { key: 'd963f28d3d70563f01b9995194c941de9197cc1f', class: "items", role: "menu", hidden: !this.open }, h("slot", { key: 'b42437ebb6c0c0373e4773f1930e527ed3a4697e', name: "section", onSlotchange: this.onItemsChange }))));
177
177
  }
178
178
  get host() { return getElement(this); }
179
179
  static get watchers() { return {
@@ -1 +1 @@
1
- {"file":"z-menu-section.entry.js","mappings":";;;AAAA,MAAM,SAAS,GAAG,ujEAAujE,CAAC;AAC1kE,2BAAe,SAAS;;MCYX,YAAY;IAkCvB,IAAY,aAAa;QACvB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,EAAC,QAAQ,EAAC,KAAK,QAAQ,KAAK,CAAC,CAAC,CAAC;KACxD;IAEO,MAAM;QACZ,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;YAClB,OAAO;SACR;QAED,IAAI,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC;KACxB;IAEO,iBAAiB;QACvB,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;YAClB,OAAO;SACR;QAED,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI;YACtB,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;YACtC,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC,CAAC;SACpB,CAAC,CAAC;KACJ;IAEO,aAAa;QACnB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,C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AAI,+DAAQ,IAAI,EAAE,IAAI,CAAC,IAAI,GAAG,YAAY,GAAG,cAAc,GAAI,CACtE,EACT,4DACE,KAAK,EAAC,OAAO,EACb,IAAI,EAAC,MAAM,EACX,MAAM,EAAE,CAAC,IAAI,CAAC,IAAI,IAElB,6DACE,IAAI,EAAC,SAAS,EACd,YAAY,EAAE,IAAI,CAAC,aAAa,GAChC,CACE,CACD,EACP;KACH;;;;;;;;;;;","names":[],"sources":["src/components/z-menu-section/styles.css?tag=z-menu-section&encapsulation=shadow","src/components/z-menu-section/index.tsx"],"sourcesContent":[":host {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: center;\n padding: 0;\n font-family: var(--font-family-sans);\n}\n\n:host,\n::slotted(*),\n* {\n box-sizing: border-box;\n}\n\n::slotted(a) {\n text-decoration: none;\n}\n\n::slotted(*) {\n color: var(--color-default-text);\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n}\n\n.label {\n display: flex;\n width: 100%;\n align-items: center;\n padding: var(--space-unit) 0;\n border: 0;\n border-bottom: var(--border-size-small) solid var(--color-surface03);\n margin: 0;\n background: transparent;\n border-radius: 0;\n cursor: pointer;\n text-align: left;\n}\n\n:host(:last-child:not([open])) .label {\n border-bottom: none;\n}\n\n:host(:is([active], [open])) .label,\n.label:focus:focus-visible,\n.label:hover {\n border-color: var(--color-secondary01);\n}\n\n.label:focus:focus-visible {\n box-shadow: var(--shadow-focus-primary);\n outline: none;\n}\n\n:host(:is([active], [open])) .label ::slotted(*),\n.label:focus:focus-visible ::slotted(*),\n.label:hover ::slotted(*) {\n font-weight: var(--font-bd);\n}\n\n::slotted([data-text]) {\n display: inline-flex;\n flex-direction: column;\n}\n\n/* Trick to prevent layout shifts on font-weight changes.\nThe trick is to put an hidden copy of the text already set to bold,\nso the needed space is correctly calculated before any hover/active state changes the\nfont-weight of the real text.\nThe hidden text has an height of 0px so it can expand the width without changing the height\nwhen placed below the real text using `flex-direction: column`. */\n::slotted([data-text])::after {\n overflow: hidden;\n height: 0;\n content: attr(data-text);\n content: attr(data-text) / \"\";\n font-weight: var(--font-bd);\n pointer-events: none;\n user-select: none;\n visibility: hidden;\n}\n\n@media speech {\n ::slotted([data-text])::after {\n display: none;\n }\n}\n\n.label ::slotted(*) {\n width: 100%;\n margin: 0;\n font-size: var(--font-size-3);\n line-height: 1.5;\n}\n\n.label z-icon {\n margin-left: calc(var(--space-unit) * 4);\n fill: var(--color-default-icon);\n}\n\n.items {\n display: flex;\n width: 100%;\n flex-direction: column;\n padding: calc(var(--space-unit) / 2);\n padding-bottom: calc(var(--space-unit) * 1.5);\n}\n\n.items[hidden] {\n display: none;\n}\n\n::slotted([slot=\"section\"]) {\n display: inline-flex;\n padding: calc(var(--space-unit) / 2);\n margin: 0;\n font-size: var(--font-size-1);\n line-height: 1.333;\n outline: none;\n}\n\n::slotted([slot=\"section\"]:last-of-type) {\n border: none;\n}\n\n::slotted([slot=\"section\"]:focus:focus-visible) {\n box-shadow: var(--shadow-focus-primary);\n color: var(--color-secondary01);\n}\n\n::slotted([slot=\"section\"]:hover),\n::slotted([slot=\"section\"]:focus:focus-visible),\n::slotted([slot=\"section\"][active]) {\n color: var(--color-secondary01);\n font-weight: var(--font-bd);\n}\n","import {Component, Element, Event, EventEmitter, Host, Listen, Method, Prop, State, Watch, h} from \"@stencil/core\";\nimport {KeyboardCode} from \"../../beans\";\n\n/**\n * A component to create submenus inside the ZMenu.\n * @slot - Label of the menu section.\n * @slot item - Single entry of the section. Set the same slot name to different items to put many of them. Add the `active` attribute to a slotted item to highlight it.\n */\n@Component({\n tag: \"z-menu-section\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZMenuSection {\n @Element() host: HTMLZMenuSectionElement;\n\n /** Active state */\n @Prop({reflect: true})\n active?: boolean;\n\n /**\n * Tabindex value to set on the label button.\n * Useful to manage keyboard navigation focus with roving tabindex handled by this component's parent (usually ZMenu).\n */\n @Prop()\n htmlTabindex = -1;\n\n /** The opening state of the section. */\n @Prop({mutable: true})\n open: boolean;\n\n @State()\n hasItems: boolean;\n\n @State()\n items: HTMLElement[];\n\n /** The section has been opened. */\n @Event()\n opened: EventEmitter;\n\n /** The section has been closed. */\n @Event()\n closed: EventEmitter;\n\n private label: HTMLButtonElement;\n\n private get focusableItem(): HTMLElement {\n return this.items.find(({tabIndex}) => tabIndex === 0);\n }\n\n private toggle(): void {\n if (!this.hasItems) {\n return;\n }\n\n this.open = !this.open;\n }\n\n private setItemsA11yAttrs(): void {\n if (!this.hasItems) {\n return;\n }\n\n this.items.forEach((item) => {\n item.setAttribute(\"role\", \"menuitem\");\n item.tabIndex = -1;\n });\n }\n\n private onItemsChange(): void {\n this.items = Array.from(this.host.querySelectorAll('[slot=\"section\"]')) as HTMLElement[];\n this.hasItems = this.items.length > 0;\n this.setItemsA11yAttrs();\n }\n\n /**\n * Sets slotted item text as `data-text` attribute value, to let CSS use it through `attr()`.\n * @param ev Slotchange event\n */\n private onLabelSlotChange(ev: Event): void {\n const labelElement = (ev.target as HTMLSlotElement).assignedElements()[0] as HTMLElement;\n labelElement.dataset.text = labelElement?.textContent;\n }\n\n private onLabelClick(): void {\n this.toggle();\n this.setFocus();\n }\n\n private onLabelKeydown(ev: KeyboardEvent): void {\n if (ev.key === KeyboardCode.ENTER || ev.key === KeyboardCode.SPACE) {\n ev.preventDefault();\n ev.stopPropagation();\n this.toggle();\n if (this.open) {\n this.focustFirstItem();\n }\n }\n }\n\n /**\n * Move focus and adjust the tabindex value of `receiver` and `current` elements,\n * setting -1 to the `current` and 0 to the `receiver`, then focus the `receiver` element.\n */\n private moveFocus(receiver: HTMLElement, current?: HTMLElement): void {\n receiver.tabIndex = 0;\n setTimeout(() => {\n receiver.focus();\n }, 100);\n if (current) {\n current.tabIndex = -1;\n }\n }\n\n private focustFirstItem(): void {\n this.moveFocus(this.items[0]);\n }\n\n /** Focus the last item. */\n @Method()\n async focusLastItem(): Promise<void> {\n this.moveFocus(this.items[this.items.length - 1]);\n }\n\n /** Set tabindex of the label to 0, then focus it. */\n @Method()\n async setFocus(): Promise<void> {\n this.htmlTabindex = 0;\n setTimeout(() => {\n this.label.focus();\n }, 100);\n }\n\n @Watch(\"open\")\n onOpenChange(): void {\n if (!this.open) {\n this.setItemsA11yAttrs();\n this.closed.emit();\n } else {\n this.opened.emit();\n }\n }\n\n @Watch(\"htmlTabindex\")\n onTabindexChange(): void {\n this.label.tabIndex = this.htmlTabindex;\n }\n\n @Listen(\"keydown\")\n private onItemsKeydown(ev: KeyboardEvent): void {\n switch (ev.key) {\n case KeyboardCode.ESC:\n case KeyboardCode.ARROW_LEFT:\n if (!this.open) {\n break;\n }\n ev.preventDefault();\n ev.stopPropagation();\n this.moveFocus(this.label, this.focusableItem);\n this.open = false;\n break;\n case KeyboardCode.ARROW_RIGHT:\n if (this.open) {\n break;\n }\n ev.preventDefault();\n ev.stopPropagation();\n this.open = true;\n this.focustFirstItem();\n break;\n case KeyboardCode.ARROW_DOWN: {\n if (!this.open) {\n break;\n }\n if (document.activeElement === this.host) {\n ev.preventDefault();\n ev.stopPropagation();\n this.focustFirstItem();\n break;\n }\n const currentIndex = this.items.indexOf(this.focusableItem);\n const receiver = this.items[currentIndex + 1];\n if (receiver) {\n ev.preventDefault();\n ev.stopPropagation();\n this.moveFocus(receiver, this.focusableItem);\n } else {\n this.htmlTabindex = 0;\n this.focusableItem.tabIndex = -1;\n }\n break;\n }\n case KeyboardCode.ARROW_UP: {\n if (!this.open || document.activeElement === this.host) {\n break;\n }\n const currentIndex = this.items.indexOf(this.focusableItem);\n const receiver = this.items[currentIndex - 1];\n ev.preventDefault();\n ev.stopPropagation();\n if (receiver) {\n this.moveFocus(receiver, this.focusableItem);\n } else {\n // since there isn't a previous item to focus, give the focus to the label element\n this.focusableItem.tabIndex = -1;\n this.setFocus();\n }\n break;\n }\n }\n }\n\n constructor() {\n this.toggle = this.toggle.bind(this);\n this.onItemsChange = this.onItemsChange.bind(this);\n this.onLabelSlotChange = this.onLabelSlotChange.bind(this);\n this.onLabelClick = this.onLabelClick.bind(this);\n this.onLabelKeydown = this.onLabelKeydown.bind(this);\n this.onItemsKeydown = this.onItemsKeydown.bind(this);\n }\n\n connectedCallback(): void {\n this.onItemsChange();\n }\n\n render(): HTMLZMenuSectionElement {\n return (\n <Host open={this.open}>\n <button\n ref={(el) => (this.label = el)}\n class=\"label\"\n aria-haspopup={`${!!this.hasItems}`}\n aria-expanded={`${!!this.open}`}\n role=\"menuitem\"\n tabindex={this.htmlTabindex}\n onClick={this.onLabelClick}\n onKeyDown={this.onLabelKeydown}\n >\n <slot onSlotchange={this.onLabelSlotChange} />\n {this.hasItems && <z-icon name={this.open ? \"chevron-up\" : \"chevron-down\"} />}\n </button>\n <div\n class=\"items\"\n role=\"menu\"\n hidden={!this.open}\n >\n <slot\n name=\"section\"\n onSlotchange={this.onItemsChange}\n />\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"z-menu-section.entry.js","mappings":";;;AAAA,MAAM,SAAS,GAAG,ujEAAujE,CAAC;AAC1kE,2BAAe,SAAS;;MCYX,YAAY;IAkCvB,IAAY,aAAa;QACvB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,EAAC,QAAQ,EAAC,KAAK,QAAQ,KAAK,CAAC,CAAC,CAAC;KACxD;IAEO,MAAM;QACZ,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;YAClB,OAAO;SACR;QAED,IAAI,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC;KACxB;IAEO,iBAAiB;QACvB,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;YAClB,OAAO;SACR;QAED,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI;YACtB,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;YACtC,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC,CAAC;SACpB,CAAC,CAAC;KACJ;IAEO,aAAa;QACnB,IAAI,C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,6DAAM,YAAY,EAAE,IAAI,CAAC,iBAAiB,GAAI,EAC7C,IAAI,CAAC,QAAQ,IAAI,+DAAQ,IAAI,EAAE,IAAI,CAAC,IAAI,GAAG,YAAY,GAAG,cAAc,GAAI,CACtE,EACT,4DACE,KAAK,EAAC,OAAO,EACb,IAAI,EAAC,MAAM,EACX,MAAM,EAAE,CAAC,IAAI,CAAC,IAAI,IAElB,6DACE,IAAI,EAAC,SAAS,EACd,YAAY,EAAE,IAAI,CAAC,aAAa,GAChC,CACE,CACD,EACP;KACH;;;;;;;;;;;","names":[],"sources":["src/components/z-menu-section/styles.css?tag=z-menu-section&encapsulation=shadow","src/components/z-menu-section/index.tsx"],"sourcesContent":[":host {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: center;\n padding: 0;\n font-family: var(--font-family-sans);\n}\n\n:host,\n::slotted(*),\n* {\n box-sizing: border-box;\n}\n\n::slotted(a) {\n text-decoration: none;\n}\n\n::slotted(*) {\n color: var(--color-default-text);\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n}\n\n.label {\n display: flex;\n width: 100%;\n align-items: center;\n padding: var(--space-unit) 0;\n border: 0;\n border-bottom: var(--border-size-small) solid var(--color-surface03);\n margin: 0;\n background: transparent;\n border-radius: 0;\n cursor: pointer;\n text-align: left;\n}\n\n:host(:last-child:not([open])) .label {\n border-bottom: none;\n}\n\n:host(:is([active], [open])) .label,\n.label:focus:focus-visible,\n.label:hover {\n border-color: var(--color-secondary01);\n}\n\n.label:focus:focus-visible {\n box-shadow: var(--shadow-focus-primary);\n outline: none;\n}\n\n:host(:is([active], [open])) .label ::slotted(*),\n.label:focus:focus-visible ::slotted(*),\n.label:hover ::slotted(*) {\n font-weight: var(--font-bd);\n}\n\n::slotted([data-text]) {\n display: inline-flex;\n flex-direction: column;\n}\n\n/* Trick to prevent layout shifts on font-weight changes.\nThe trick is to put an hidden copy of the text already set to bold,\nso the needed space is correctly calculated before any hover/active state changes the\nfont-weight of the real text.\nThe hidden text has an height of 0px so it can expand the width without changing the height\nwhen placed below the real text using `flex-direction: column`. */\n::slotted([data-text])::after {\n overflow: hidden;\n height: 0;\n content: attr(data-text);\n content: attr(data-text) / \"\";\n font-weight: var(--font-bd);\n pointer-events: none;\n user-select: none;\n visibility: hidden;\n}\n\n@media speech {\n ::slotted([data-text])::after {\n display: none;\n }\n}\n\n.label ::slotted(*) {\n width: 100%;\n margin: 0;\n font-size: var(--font-size-3);\n line-height: 1.5;\n}\n\n.label z-icon {\n margin-left: calc(var(--space-unit) * 4);\n fill: var(--color-default-icon);\n}\n\n.items {\n display: flex;\n width: 100%;\n flex-direction: column;\n padding: calc(var(--space-unit) / 2);\n padding-bottom: calc(var(--space-unit) * 1.5);\n}\n\n.items[hidden] {\n display: none;\n}\n\n::slotted([slot=\"section\"]) {\n display: inline-flex;\n padding: calc(var(--space-unit) / 2);\n margin: 0;\n font-size: var(--font-size-1);\n line-height: 1.333;\n outline: none;\n}\n\n::slotted([slot=\"section\"]:last-of-type) {\n border: none;\n}\n\n::slotted([slot=\"section\"]:focus:focus-visible) {\n box-shadow: var(--shadow-focus-primary);\n color: var(--color-secondary01);\n}\n\n::slotted([slot=\"section\"]:hover),\n::slotted([slot=\"section\"]:focus:focus-visible),\n::slotted([slot=\"section\"][active]) {\n color: var(--color-secondary01);\n font-weight: var(--font-bd);\n}\n","import {Component, Element, Event, EventEmitter, Host, Listen, Method, Prop, State, Watch, h} from \"@stencil/core\";\nimport {KeyboardCode} from \"../../beans\";\n\n/**\n * A component to create submenus inside the ZMenu.\n * @slot - Label of the menu section.\n * @slot section - Single entry of the menu section. Set the same slot name to different elements to put many of them. Add the `active` attribute to a slotted element to highlight it.\n */\n@Component({\n tag: \"z-menu-section\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZMenuSection {\n @Element() host: HTMLZMenuSectionElement;\n\n /** Active state */\n @Prop({reflect: true})\n active?: boolean;\n\n /**\n * Tabindex value to set on the label button.\n * Useful to manage keyboard navigation focus with roving tabindex handled by this component's parent (usually ZMenu).\n */\n @Prop()\n htmlTabindex = -1;\n\n /** The opening state of the section. */\n @Prop({mutable: true})\n open: boolean;\n\n @State()\n hasItems: boolean;\n\n @State()\n items: HTMLElement[];\n\n /** The section has been opened. */\n @Event()\n opened: EventEmitter;\n\n /** The section has been closed. */\n @Event()\n closed: EventEmitter;\n\n private label: HTMLButtonElement;\n\n private get focusableItem(): HTMLElement {\n return this.items.find(({tabIndex}) => tabIndex === 0);\n }\n\n private toggle(): void {\n if (!this.hasItems) {\n return;\n }\n\n this.open = !this.open;\n }\n\n private setItemsA11yAttrs(): void {\n if (!this.hasItems) {\n return;\n }\n\n this.items.forEach((item) => {\n item.setAttribute(\"role\", \"menuitem\");\n item.tabIndex = -1;\n });\n }\n\n private onItemsChange(): void {\n this.items = Array.from(this.host.querySelectorAll('[slot=\"section\"]')) as HTMLElement[];\n this.hasItems = this.items.length > 0;\n this.setItemsA11yAttrs();\n }\n\n /**\n * Sets slotted item text as `data-text` attribute value, to let CSS use it through `attr()`.\n * @param ev Slotchange event\n */\n private onLabelSlotChange(ev: Event): void {\n const labelElement = (ev.target as HTMLSlotElement).assignedElements()[0] as HTMLElement;\n labelElement.dataset.text = labelElement?.textContent;\n }\n\n private onLabelClick(): void {\n this.toggle();\n this.setFocus();\n }\n\n private onLabelKeydown(ev: KeyboardEvent): void {\n if (ev.key === KeyboardCode.ENTER || ev.key === KeyboardCode.SPACE) {\n ev.preventDefault();\n ev.stopPropagation();\n this.toggle();\n if (this.open) {\n this.focustFirstItem();\n }\n }\n }\n\n /**\n * Move focus and adjust the tabindex value of `receiver` and `current` elements,\n * setting -1 to the `current` and 0 to the `receiver`, then focus the `receiver` element.\n */\n private moveFocus(receiver: HTMLElement, current?: HTMLElement): void {\n receiver.tabIndex = 0;\n setTimeout(() => {\n receiver.focus();\n }, 100);\n if (current) {\n current.tabIndex = -1;\n }\n }\n\n private focustFirstItem(): void {\n this.moveFocus(this.items[0]);\n }\n\n /** Focus the last item. */\n @Method()\n async focusLastItem(): Promise<void> {\n this.moveFocus(this.items[this.items.length - 1]);\n }\n\n /** Set tabindex of the label to 0, then focus it. */\n @Method()\n async setFocus(): Promise<void> {\n this.htmlTabindex = 0;\n setTimeout(() => {\n this.label.focus();\n }, 100);\n }\n\n @Watch(\"open\")\n onOpenChange(): void {\n if (!this.open) {\n this.setItemsA11yAttrs();\n this.closed.emit();\n } else {\n this.opened.emit();\n }\n }\n\n @Watch(\"htmlTabindex\")\n onTabindexChange(): void {\n this.label.tabIndex = this.htmlTabindex;\n }\n\n @Listen(\"keydown\")\n private onItemsKeydown(ev: KeyboardEvent): void {\n switch (ev.key) {\n case KeyboardCode.ESC:\n case KeyboardCode.ARROW_LEFT:\n if (!this.open) {\n break;\n }\n ev.preventDefault();\n ev.stopPropagation();\n this.moveFocus(this.label, this.focusableItem);\n this.open = false;\n break;\n case KeyboardCode.ARROW_RIGHT:\n if (this.open) {\n break;\n }\n ev.preventDefault();\n ev.stopPropagation();\n this.open = true;\n this.focustFirstItem();\n break;\n case KeyboardCode.ARROW_DOWN: {\n if (!this.open) {\n break;\n }\n if (document.activeElement === this.host) {\n ev.preventDefault();\n ev.stopPropagation();\n this.focustFirstItem();\n break;\n }\n const currentIndex = this.items.indexOf(this.focusableItem);\n const receiver = this.items[currentIndex + 1];\n if (receiver) {\n ev.preventDefault();\n ev.stopPropagation();\n this.moveFocus(receiver, this.focusableItem);\n } else {\n this.htmlTabindex = 0;\n this.focusableItem.tabIndex = -1;\n }\n break;\n }\n case KeyboardCode.ARROW_UP: {\n if (!this.open || document.activeElement === this.host) {\n break;\n }\n const currentIndex = this.items.indexOf(this.focusableItem);\n const receiver = this.items[currentIndex - 1];\n ev.preventDefault();\n ev.stopPropagation();\n if (receiver) {\n this.moveFocus(receiver, this.focusableItem);\n } else {\n // since there isn't a previous item to focus, give the focus to the label element\n this.focusableItem.tabIndex = -1;\n this.setFocus();\n }\n break;\n }\n }\n }\n\n constructor() {\n this.toggle = this.toggle.bind(this);\n this.onItemsChange = this.onItemsChange.bind(this);\n this.onLabelSlotChange = this.onLabelSlotChange.bind(this);\n this.onLabelClick = this.onLabelClick.bind(this);\n this.onLabelKeydown = this.onLabelKeydown.bind(this);\n this.onItemsKeydown = this.onItemsKeydown.bind(this);\n }\n\n connectedCallback(): void {\n this.onItemsChange();\n }\n\n render(): HTMLZMenuSectionElement {\n return (\n <Host open={this.open}>\n <button\n ref={(el) => (this.label = el)}\n class=\"label\"\n aria-haspopup={`${!!this.hasItems}`}\n aria-expanded={`${!!this.open}`}\n role=\"menuitem\"\n tabindex={this.htmlTabindex}\n onClick={this.onLabelClick}\n onKeyDown={this.onLabelKeydown}\n >\n <slot onSlotchange={this.onLabelSlotChange} />\n {this.hasItems && <z-icon name={this.open ? \"chevron-up\" : \"chevron-down\"} />}\n </button>\n <div\n class=\"items\"\n role=\"menu\"\n hidden={!this.open}\n >\n <slot\n name=\"section\"\n onSlotchange={this.onItemsChange}\n />\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -52,7 +52,7 @@ const ZMyzCardAlert = class {
52
52
  }
53
53
  }
54
54
  render() {
55
- return (h("div", { key: 'fdf3b3e5397d3dd7efc7d97473a4cc62f9a02d44', class: "alert-external-wrapper " + this.retrieveClass() }, h("z-alert", { key: 'ffa276128f4f85801b8c6595edafa793e62c09bf', type: this.getAlertType() }, h("div", { key: 'f1f95d118588729d146322f9c223f53b4a0804e9', class: "relative-container" }, h("z-icon", { key: 'd9169d7b7f5542ec967993850503a2834d18cb37', name: this.iconname, width: 18, height: 18, class: this.retrieveClass() }), h("span", { key: 'd9fe4a9a0c925e5cf2dce5cc50974c02d63c497b', class: "content-text" }, this.contenttext), this.actiontext && !!this.actiontext.trim().length && (h("span", { key: '4e537fe8adb30714f0cb27a96ad99a6cf49f2acc', role: "button", tabindex: "0", class: "content-action", onClick: (e) => {
55
+ return (h("div", { key: '4887349f74dcbeb07e6c8785481f717a4892238c', class: "alert-external-wrapper " + this.retrieveClass() }, h("z-alert", { key: '64b1aab8757cbeb05ca5e52ca000058d5341770a', type: this.getAlertType() }, h("div", { key: 'a8004837dc3f11c1b156736171dd2b738ea4cede', class: "relative-container" }, h("z-icon", { key: '5784ab77dd50bbc1c38d65fd7f6109846a83a06c', name: this.iconname, width: 18, height: 18, class: this.retrieveClass() }), h("span", { key: '089042e66c5388d887d7d428ffbd49124a31c6dd', class: "content-text" }, this.contenttext), this.actiontext && !!this.actiontext.trim().length && (h("span", { key: '1ffc68e30d2038b49ce31f35b8b08778f16841da', role: "button", tabindex: "0", class: "content-action", onClick: (e) => {
56
56
  this.handleActionButtonClick(e);
57
57
  }, onKeyPress: (e) => {
58
58
  this.handleSpaceKeyPress(e);
@@ -23,7 +23,7 @@ const ZMyzCardDictionary = class {
23
23
  this.cardFlipped.emit(showBack);
24
24
  }
25
25
  render() {
26
- return (h("div", { key: '5f4b35325a1b33b49f10e1c0009ba0aef368bda3' }, h("z-myz-card", { key: '25c1f34f2ebe744132822f8637a54feaeff0fa7a' }, h("z-myz-card-header", { key: '0b0b1144271c7f5b75bc05bd7fd6e80d9f20244e', titolo: this.name }), h("div", { key: '508459cbf9949b90b7266be3b2d42a3474a05882', class: `content ${this.flipped ? "flipped" : ""}` }, h("div", { key: '4416070294cbee0ecb0751afa54943a58fdb2816', class: "front" }, h("z-myz-card-body", { key: 'cef16ad669fcc00368191d71aae674210ec96781' }, h("z-myz-card-cover", { key: '559ae7ae9c8473b70793e086731e95bd93017989', slot: "cover", titolo: this.name, img: this.cover, faded: this.disabled })), h("z-button", { key: '31808feee0e2aaa301f654d710eeb02bebc31c55', class: { "hide-info": this.hideinfobtn }, variant: ButtonVariant.SECONDARY, icon: "informationsource", size: ButtonSize.X_SMALL, onClick: () => this.flipCard(true), disabled: this.flipped }, this.flipbuttonlabel)), h("div", { key: 'e4086e4ac6cc3d81505174eb274a4057aee9e462', class: "back" }, h("slot", { key: '670b96387b02d5a9b2d4c23512cb57a0301e4bc6', name: "info" }))), h("slot", { key: 'e1fc9e4977bfb1668fbb51ad54e49d5e0f26749c' }))));
26
+ return (h("div", { key: 'f7c5b89a84036db946702fc8990564d3fcbf7cfb' }, h("z-myz-card", { key: 'd7972b3c72daff0a4167ef83e20a47593092ac10' }, h("z-myz-card-header", { key: '355e3a181cfccbcfda8eaeb57fbb1a345121f21a', titolo: this.name }), h("div", { key: '250d86cfd9f076fc6a361d7be559d9d63dd7d908', class: `content ${this.flipped ? "flipped" : ""}` }, h("div", { key: 'ff6975119b9bf212ee499d2bef026c4d9b87a5ce', class: "front" }, h("z-myz-card-body", { key: '40a8fea2e369b69f8e71d26d3e6a36e96981c0c4' }, h("z-myz-card-cover", { key: '2d99c3bc655c8b40177401f6ff4a8502a23c30dc', slot: "cover", titolo: this.name, img: this.cover, faded: this.disabled })), h("z-button", { key: 'd49203bc96cd283cabe29e0e5c37c8a0928dea4e', class: { "hide-info": this.hideinfobtn }, variant: ButtonVariant.SECONDARY, icon: "informationsource", size: ButtonSize.X_SMALL, onClick: () => this.flipCard(true), disabled: this.flipped }, this.flipbuttonlabel)), h("div", { key: '0c547edaf0d97c2d983350446fe5a5fab8c764d5', class: "back" }, h("slot", { key: 'af3acf86431069cff1e7aff7b7011e903b5d10a2', name: "info" }))), h("slot", { key: '660c2827003495015ca697cfae2b0b185436f9a9' }))));
27
27
  }
28
28
  };
29
29
  ZMyzCardDictionary.style = ZMyzCardDictionaryStyle0;
@@ -8,7 +8,7 @@ const ZMyzCardFooterSections = class {
8
8
  registerInstance(this, hostRef);
9
9
  }
10
10
  render() {
11
- return (h("div", { key: '0344c4e070449ed8a08e4dded7a71e6ac4911928' }, h("footer", { key: '96a2a91d1471369f14930a65a30cd7e2a1cefe89' }, h("div", { key: 'e5a888a9b4b7f7304180d312180f1f9b21b8c815', class: "top" }, h("slot", { key: 'e58c11948649ca7810f507bbddf84dd37bb631df', name: "top" })), h("div", { key: '2167d5af09430d8c3dbf018aabd8d610274e9615', class: "bottom" }, h("slot", { key: 'd3e0867c0d92f240d83954e127a5c2342139d8d0', name: "bottom" })))));
11
+ return (h("div", { key: '360208c758c0173bd270a796f5537c12ca3a6025' }, h("footer", { key: '2cc4273bc39b575eb1c2adbb8c32f261efbc6eaa' }, h("div", { key: 'd8f3dccf2e3db8245281ba76b8643f147b0fe6e0', class: "top" }, h("slot", { key: '8552908078ded7a827b7c6c3fa53c73ae3a2f64d', name: "top" })), h("div", { key: 'd416449033db5c2b5d1e5d5db24067a71e10d9bc', class: "bottom" }, h("slot", { key: 'a3404835e90df89465f0e6317d4f71f879a6cff0', name: "bottom" })))));
12
12
  }
13
13
  };
14
14
  ZMyzCardFooterSections.style = ZMyzCardFooterSectionsStyle0;
@@ -60,7 +60,7 @@ const ZMyzCardFooter = class {
60
60
  return this.host.querySelector("[slot=list] > li a");
61
61
  }
62
62
  render() {
63
- return (h("div", { key: 'f73773764a1386454f6178fc5509c5b21f8bfd18', class: Object.assign(Object.assign({}, this.retrieveClass()), { wrapper: true }) }, h("footer", { key: '2a1b0b0a7f79b1ce3df317f9bae029ab906f8b65', class: this.retrieveClass(), onTransitionEnd: (e) => this.footerTransitionHandler(e) }, h("span", { key: 'f2d5ca8af14e8e9867636ef600b3227ef8c8da5d', class: "toggle" }, h("slot", { key: 'bb21f81c068753465ef813b69f1746ed0ffe5f27', name: "toggle" })), this.titolo && h("p", { key: '21985736b6a2ded998967a7f26404a78bae5588f', class: { "custom-content": this.customContent } }, this.titolo), h("div", { key: '1da4887c06761a20e1530dcdff33667ec2b675f6', class: { "content": true, "custom-content": this.customContent } }, h("div", { key: '4eb92e5a2dc0fd6e2bf644170055cfcd086451cb' }, h("p", { key: 'ffe43ce26641fe2fb1d8a4fc5f5651cd9b22a9cf', class: "authors", ref: (el) => (this.ellipsisAuthors = el) }, h("span", { key: '3c4bca4611ad4d5442c4ead8ce21c7f837f788a9', title: this.getTitleAuthors() }, h("span", { key: '8d3cd889fdc5cf445cdf3c781f09b5104728fab6', "aria-description": "Autori", class: "bold" }, this.autori))), h("p", { key: 'e344133a7710094e474f125d1cd41a1a4de6787a', class: "year-isbn" }, h("span", { key: 'f122a9be8bde9df100e872be3533c85a66e0671f', class: "isbn" }, h("span", { key: '7b50957552fa95f6831c1004fc239ed28665eebd' }, h("span", { key: '0034102e13771426f3ae4feba28ff4b726055e22', "aria-description": "ISBN edizione cartacea", class: "bold" }, this.isbn), " ", "(ed. cartacea)")))), h("div", { key: 'd31dbee5a60238c90b450619e0102d68c510bf47', class: `slot-handler ${this.isOpen ? "visible" : "hidden"}` }, h("slot", { key: '6a757acf102ecb223c7bd1f9f8320fb8436fa8cd', name: "list" })))), this.customContent && h("slot", { key: '41c1bf974a47b8037d571e67cb1aa422c63d444c', name: "content" })));
63
+ return (h("div", { key: '95471e9b224ae123dbee86149a8ad1bb2d8cbaaf', class: Object.assign(Object.assign({}, this.retrieveClass()), { wrapper: true }) }, h("footer", { key: 'b9df9be334a121be3c84f40ac31dc00359e42b85', class: this.retrieveClass(), onTransitionEnd: (e) => this.footerTransitionHandler(e) }, h("span", { key: '48f1b9befd8700ce2b1fd503e146e0f4890b642e', class: "toggle" }, h("slot", { key: '780b4ebc07c7571dc1e5a29bfd42fe913b16e1c4', name: "toggle" })), this.titolo && h("p", { key: '8b7491fc25b5242d5227de74e49b2bfa4ed1b94d', class: { "custom-content": this.customContent } }, this.titolo), h("div", { key: '3d2ffb755ab4bc961f690dce39e69a64bbd1b386', class: { "content": true, "custom-content": this.customContent } }, h("div", { key: 'e19edaab5eccfba65a5f7cf43a1955200a33e590' }, h("p", { key: '134507d968cf847976e1a3fa57c0a2ad5d8c448a', class: "authors", ref: (el) => (this.ellipsisAuthors = el) }, h("span", { key: '0def6b25daa09188958accdfa2e4f96cd52e6ab0', title: this.getTitleAuthors() }, h("span", { key: '32c27603fd64494fe660d7b4cb31687bb8efc974', "aria-description": "Autori", class: "bold" }, this.autori))), h("p", { key: 'd4f81349f5e4cb36711fca0ebb42aafe8843efca', class: "year-isbn" }, h("span", { key: 'd6a1ff032454ece5bb485bcf3462d24a3005396e', class: "isbn" }, h("span", { key: '860b6c3c876d1e02015f86b93fd9cad1eac7f0ba' }, h("span", { key: '3f3656a7b6bba750d1e7522bad1f2a875aff9b52', "aria-description": "ISBN edizione cartacea", class: "bold" }, this.isbn), " ", "(ed. cartacea)")))), h("div", { key: '4af2ea2d2684984f328bea6cf50d13524036772c', class: `slot-handler ${this.isOpen ? "visible" : "hidden"}` }, h("slot", { key: '89d9b0d155e93a03c557ebdccc77d256145a4558', name: "list" })))), this.customContent && h("slot", { key: '9a1aa30dd1df23d4ab8c6d5138d731f17cdf2ff6', name: "content" })));
64
64
  }
65
65
  get host() { return getElement(this); }
66
66
  };
@@ -11,7 +11,7 @@ const ZMyzCardIcon = class {
11
11
  this.ariaLabel = "";
12
12
  }
13
13
  render() {
14
- return (h("button", { key: '8bb6a4fe4b3923048ab90bfaa78852777692b33c', disabled: this.isdisabled, "aria-label": this.ariaLabel }, h("span", { key: '37723cd27adeda77455a24f9c5dd6a688737106d' }, h("z-icon", { key: '972caeff592a906837ffb190c8139424e0c2a2ca', name: this.icon, width: 16, height: 16 }))));
14
+ return (h("button", { key: 'dce263721e9c0483d2715776decad8392c9d083f', disabled: this.isdisabled, "aria-label": this.ariaLabel }, h("span", { key: 'cd20d6f9c83b394cd651bcf8b92626daa04e9c16' }, h("z-icon", { key: 'ecdad1d4dc3b39826f0a4cb51e3cb0b97fe5f3f0', name: this.icon, width: 16, height: 16 }))));
15
15
  }
16
16
  };
17
17
  ZMyzCardIcon.style = ZMyzCardIconStyle0;
@@ -118,7 +118,7 @@ const ZMyzCardInfo = class {
118
118
  return (h("section", { ref: (el) => (this.offlineLicenseWrapper = el) }, h("span", { class: "license-heading" }, h("span", null, "Licenza offline"), this.setExpirationLicenseMessage("offline")), "Scadenza il ", h("b", null, this.cardData.offlineLicense.expiration), h("br", null), "Installazioni disponibili: ", h("b", null, this.cardData.offlineLicense.installations)));
119
119
  }
120
120
  render() {
121
- return (h("div", { key: '2a05ddeb716ce41cc96f39719f485fcf717f52e6' }, this.renderCloseIcon(), h("div", { key: 'd657573cb16fc4f79a7803a78f24ab5bd398d4c9', class: "content-wrapper", ref: (el) => (this.contentWrapper = el) }, this.renderGeneralSection(), this.renderTooltip(), this.renderOnlineLicenseSection(), this.renderOfflineLicenseSection()), h("div", { key: '30c4c278f935dee8e281a357ac292962cdaa71c3', class: "cta-wrapper" }, h("slot", { key: 'af3c4fd43855806fe5a018eb02beec2493f9743f' }))));
121
+ return (h("div", { key: 'caf12cdfa9cea6d882b85dfb809e55036449bf19' }, this.renderCloseIcon(), h("div", { key: '7b01593abc3b658a08faad90c18f040284006ecd', class: "content-wrapper", ref: (el) => (this.contentWrapper = el) }, this.renderGeneralSection(), this.renderTooltip(), this.renderOnlineLicenseSection(), this.renderOfflineLicenseSection()), h("div", { key: 'def1beafdcd5c7a42fea42fa70976a7eeca1dbad', class: "cta-wrapper" }, h("slot", { key: '514e3cab754ccffe63c867b1fa2b41e0de27b3ea' }))));
122
122
  }
123
123
  };
124
124
  ZMyzCardInfo.style = ZMyzCardInfoStyle0;
@@ -28,7 +28,7 @@ const ZMyzCardList = class {
28
28
  });
29
29
  }
30
30
  render() {
31
- return h("ul", { key: '940d7610b69261b22535eabeb94fbc305b21b448' }, this.renderList(JSON.parse(this.listdata)));
31
+ return h("ul", { key: '4b0208d11f8bf0bce26d4f2613546485c603c4df' }, this.renderList(JSON.parse(this.listdata)));
32
32
  }
33
33
  };
34
34
  ZMyzCardList.style = ZMyzCardListStyle0;
@@ -35,7 +35,7 @@ const ZMyzCardComponent = class {
35
35
  return elemClasses;
36
36
  }
37
37
  render() {
38
- return (h("div", { key: 'e5fa71bf451dc94d61625859c0488167dfe55aa5', class: this.retrieveClass(), tabindex: "0" }, h("slot", { key: '030c0293e15a3e8dfb6597a11d185c77485da769' })));
38
+ return (h("div", { key: '1b155ce79b5ab224a7dd7e6c7573b44de344abb8', class: this.retrieveClass(), tabindex: "0" }, h("slot", { key: '02f31434fd697c81d7907fba3ed2fc236a596acb' })));
39
39
  }
40
40
  };
41
41
  ZMyzCardComponent.style = ZMyzCardStyle0;
@@ -48,7 +48,7 @@ const ZMyzCardBody = class {
48
48
  registerInstance(this, hostRef);
49
49
  }
50
50
  render() {
51
- return (h("div", { key: 'f2c7eef553e44b57356f4c2986b087fca59a79c3' }, h("slot", { key: '418008cdfd439cd25985b1ccdf711306330f2ab5', name: "alert" }), h("slot", { key: '47ba0ba8eb92dd2f963069f2a8f66ccf9910514d', name: "cover" })));
51
+ return (h("div", { key: 'ae770cc2c13b9f3ce5a83376db41393bc1ce8c61' }, h("slot", { key: '4c968dfe99e888a6d81d1cc0f63bd06ef2d401ae', name: "alert" }), h("slot", { key: '09640a5b36e95c15ddd7c30979468ed513285523', name: "cover" })));
52
52
  }
53
53
  };
54
54
  ZMyzCardBody.style = ZMyzCardBodyStyle0;
@@ -68,7 +68,7 @@ const ZMyzCardCover = class {
68
68
  this.img = this.defaultimg;
69
69
  }
70
70
  render() {
71
- return (h("img", { key: '85d94f2601a6d08fcb17c791bf888ac45850e19c', class: this.faded && "faded", onError: this.hadleOnImageError.bind(this), alt: this.titolo, src: this.img }));
71
+ return (h("img", { key: '9555b697e00b73e9dcc0333159479cd0c905b1fc', class: this.faded && "faded", onError: this.hadleOnImageError.bind(this), alt: this.titolo, src: this.img }));
72
72
  }
73
73
  };
74
74
  ZMyzCardCover.style = ZMyzCardCoverStyle0;
@@ -104,7 +104,7 @@ const ZMyzCardHeader = class {
104
104
  };
105
105
  }
106
106
  render() {
107
- return (h("header", { key: '988344ef2432437b6fdba8698f4851815c07e4cb', class: this.retrieveClass() }, h("slot", { key: '193d1d64b6b996d78c14a9440fd211bc5933b68b', name: "aria-heading" }), h("span", { key: '41a8a3536e113a2c1dfab62bd4c79280b7cc7688', class: "card-title", ref: (el) => (this.ellipsis = el), title: this.getTitle() }, this.titolo), h("slot", { key: '3115ff7d2ca8cd33cd83864e438eef44e34112ba', name: "icon" })));
107
+ return (h("header", { key: 'cd975d148914a4d2b4e95ac321ac492d0fc7475d', class: this.retrieveClass() }, h("slot", { key: '078a31629ae0d7df1284e031ba5dd010c3e43a53', name: "aria-heading" }), h("span", { key: '16ad3c56cd8c1bfeb1bce22a78d3b4019f0298f9', class: "card-title", ref: (el) => (this.ellipsis = el), title: this.getTitle() }, this.titolo), h("slot", { key: '6ef1e3e9d12d292e12a7300cdb36b3a06af3787c', name: "icon" })));
108
108
  }
109
109
  };
110
110
  ZMyzCardHeader.style = ZMyzCardHeaderStyle0;
@@ -29,7 +29,7 @@ const ZMyzListItem = class {
29
29
  }
30
30
  render() {
31
31
  const linkId = this.listitemid ? `link_${this.listitemid}` : "";
32
- return (h("li", { key: '9599d4c9dd36685154e7360e2c0335cc7b827810', role: "button", id: this.listitemid, "data-action": this.action, onClick: (e) => this.emitZListItemClick(e, this.listitemid), onKeyPress: (ev) => handleKeyboardSubmit(ev, this.emitZListItemClick, this.listitemid) }, h("span", { key: '025c3c3590efa91daa471f56bdd547199339b3fb', class: this.underlined && "border" }, this.icon && h("z-icon", { key: '521004dadf11d99a62146e7fc668360fc3e4a920', name: this.icon }), this.link ? (h("a", { href: this.link ? this.link : null, target: this.linktarget, id: linkId, onClick: (e) => this.emitZListItemLinkClick(e, linkId), onKeyPress: (ev) => handleKeyboardSubmit(ev, this.emitZListItemLinkClick, linkId), role: this.link ? "link" : "button", tabindex: "0" }, this.text)) : (h("span", { innerHTML: this.text })), h("slot", { key: 'fbad1c17763a42f99c57f466c1413822e2911781' }))));
32
+ return (h("li", { key: '724946d19b711854f81ba9ea9aa30e931c35ac3b', role: "button", id: this.listitemid, "data-action": this.action, onClick: (e) => this.emitZListItemClick(e, this.listitemid), onKeyPress: (ev) => handleKeyboardSubmit(ev, this.emitZListItemClick, this.listitemid) }, h("span", { key: 'f10d3d95d9e36acb282c7d17beb5af69aa71bb4c', class: this.underlined && "border" }, this.icon && h("z-icon", { key: '4aee715f8daab185a502e446cdfc1c3e51e549b9', name: this.icon }), this.link ? (h("a", { href: this.link ? this.link : null, target: this.linktarget, id: linkId, onClick: (e) => this.emitZListItemLinkClick(e, linkId), onKeyPress: (ev) => handleKeyboardSubmit(ev, this.emitZListItemLinkClick, linkId), role: this.link ? "link" : "button", tabindex: "0" }, this.text)) : (h("span", { innerHTML: this.text })), h("slot", { key: '8347ee62c05d2262ea4df2efb8cbef29254b0759' }))));
33
33
  }
34
34
  };
35
35
  ZMyzListItem.style = ZMyzListItemStyle0;
@@ -22,7 +22,7 @@ const ZMyzList = class {
22
22
  }
23
23
  render() {
24
24
  const lastElem = this.list ? this.list.length - 1 : -1;
25
- return (h("ul", { key: 'f9ab893ced59fa7364b54575686431e0ee26398e' }, this.list &&
25
+ return (h("ul", { key: '5cb2ef9c27694d786b4163e2ee6a006b3cbc8f72' }, this.list &&
26
26
  this.list.map((bean, i) => (h("z-myz-list-item", { listitemid: bean.listitemid, text: bean.text, link: bean.link, linktarget: bean.linktarget, icon: bean.icon, underlined: lastElem != i })))));
27
27
  }
28
28
  static get watchers() { return {