@zanichelli/albe-web-components 16.0.0-rc2 → 16.0.0

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 (764) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/dist/cjs/{index-7ce01c0e.js → index-066b8da0.js} +5 -5
  3. package/dist/cjs/{index-7ce01c0e.js.map → index-066b8da0.js.map} +1 -1
  4. package/dist/cjs/{index-f31d0e66.js → index-1890445d.js} +3 -3
  5. package/dist/cjs/{index-f31d0e66.js.map → index-1890445d.js.map} +1 -1
  6. package/dist/cjs/{index-19279b08.js → index-1f9f28df.js} +3 -3
  7. package/dist/cjs/{index-19279b08.js.map → index-1f9f28df.js.map} +1 -1
  8. package/dist/cjs/{index-a83e999c.js → index-5cc0f0ca.js} +5 -6
  9. package/dist/cjs/index-5cc0f0ca.js.map +1 -0
  10. package/dist/cjs/{index-48cf79d4.js → index-98822eac.js} +6 -6
  11. package/dist/cjs/{index-48cf79d4.js.map → index-98822eac.js.map} +1 -1
  12. package/dist/cjs/{index-94f7957c.js → index-b361709b.js} +3 -3
  13. package/dist/cjs/{index-94f7957c.js.map → index-b361709b.js.map} +1 -1
  14. package/dist/cjs/{index-e3835c94.js → index-bab7a651.js} +3 -1
  15. package/dist/cjs/index-bab7a651.js.map +1 -0
  16. package/dist/cjs/{index-5dc4a8de.js → index-e801ae96.js} +55 -2
  17. package/dist/cjs/index-e801ae96.js.map +1 -0
  18. package/dist/cjs/index.cjs.js +2 -2
  19. package/dist/cjs/loader.cjs.js +2 -2
  20. package/dist/cjs/{utils-0d3ac1c1.js → utils-311316ce.js} +2 -2
  21. package/dist/cjs/{utils-0d3ac1c1.js.map → utils-311316ce.js.map} +1 -1
  22. package/dist/cjs/{utils-1a8655c7.js → utils-6bd8c55e.js} +2 -2
  23. package/dist/cjs/{utils-1a8655c7.js.map → utils-6bd8c55e.js.map} +1 -1
  24. package/dist/cjs/web-components-library.cjs.js +2 -2
  25. package/dist/cjs/z-accordion.cjs.entry.js +3 -3
  26. package/dist/cjs/z-alert.cjs.entry.js +2 -2
  27. package/dist/cjs/z-anchor-navigation.cjs.entry.js +3 -3
  28. package/dist/cjs/z-app-header-deprecated.cjs.entry.js +158 -0
  29. package/dist/cjs/z-app-header-deprecated.cjs.entry.js.map +1 -0
  30. package/dist/cjs/z-app-header_12.cjs.entry.js +197 -67
  31. package/dist/cjs/z-app-header_12.cjs.entry.js.map +1 -1
  32. package/dist/cjs/z-aria-alert.cjs.entry.js +3 -3
  33. package/dist/cjs/z-avatar.cjs.entry.js +4 -4
  34. package/dist/cjs/z-book-card.cjs.entry.js +4 -4
  35. package/dist/cjs/z-breadcrumb.cjs.entry.js +5 -5
  36. package/dist/cjs/z-button-sort.cjs.entry.js +2 -2
  37. package/dist/cjs/z-card.cjs.entry.js +2 -2
  38. package/dist/cjs/z-carousel.cjs.entry.js +2 -2
  39. package/dist/cjs/z-chip.cjs.entry.js +4 -4
  40. package/dist/cjs/z-combobox.cjs.entry.js +4 -4
  41. package/dist/cjs/z-cover-hero.cjs.entry.js +4 -4
  42. package/dist/cjs/z-date-picker.cjs.entry.js +3 -3
  43. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +8 -8
  44. package/dist/cjs/z-file-upload.cjs.entry.js +4 -4
  45. package/dist/cjs/z-file.cjs.entry.js +3 -3
  46. package/dist/cjs/z-ghost-loading.cjs.entry.js +2 -2
  47. package/dist/cjs/z-info-box.cjs.entry.js +2 -2
  48. package/dist/cjs/z-info-reveal.cjs.entry.js +3 -3
  49. package/dist/cjs/z-logo.cjs.entry.js +2 -2
  50. package/dist/cjs/z-menu-deprecated.cjs.entry.js +115 -0
  51. package/dist/cjs/z-menu-deprecated.cjs.entry.js.map +1 -0
  52. package/dist/cjs/z-menu-section-deprecated.cjs.entry.js +60 -0
  53. package/dist/cjs/z-menu-section-deprecated.cjs.entry.js.map +1 -0
  54. package/dist/cjs/z-menu-section.cjs.entry.js +92 -4
  55. package/dist/cjs/z-menu-section.cjs.entry.js.map +1 -1
  56. package/dist/cjs/z-menu.cjs.entry.js +121 -10
  57. package/dist/cjs/z-menu.cjs.entry.js.map +1 -1
  58. package/dist/cjs/z-myz-card-alert.cjs.entry.js +3 -3
  59. package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +3 -3
  60. package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +2 -2
  61. package/dist/cjs/z-myz-card-footer.cjs.entry.js +3 -3
  62. package/dist/cjs/z-myz-card-icon.cjs.entry.js +2 -2
  63. package/dist/cjs/z-myz-card-info.cjs.entry.js +4 -4
  64. package/dist/cjs/z-myz-card-list.cjs.entry.js +2 -2
  65. package/dist/cjs/z-myz-card_4.cjs.entry.js +6 -6
  66. package/dist/cjs/z-myz-list-item.cjs.entry.js +4 -4
  67. package/dist/cjs/z-myz-list.cjs.entry.js +2 -2
  68. package/dist/cjs/z-navigation-tabs.cjs.entry.js +4 -4
  69. package/dist/cjs/z-notification.cjs.entry.js +2 -2
  70. package/dist/cjs/z-otp.cjs.entry.js +4 -4
  71. package/dist/cjs/z-pagination.cjs.entry.js +2 -2
  72. package/dist/cjs/z-panel-elem.cjs.entry.js +3 -3
  73. package/dist/cjs/z-popover.cjs.entry.js +3 -3
  74. package/dist/cjs/z-range-picker.cjs.entry.js +3 -3
  75. package/dist/cjs/z-section-title.cjs.entry.js +3 -3
  76. package/dist/cjs/z-select.cjs.entry.js +4 -4
  77. package/dist/cjs/z-skip-to-content.cjs.entry.js +4 -4
  78. package/dist/cjs/z-slideshow.cjs.entry.js +3 -3
  79. package/dist/cjs/z-stepper-item.cjs.entry.js +2 -2
  80. package/dist/cjs/z-stepper.cjs.entry.js +2 -2
  81. package/dist/cjs/z-table.cjs.entry.js +10 -10
  82. package/dist/cjs/z-tbody.cjs.entry.js +2 -2
  83. package/dist/cjs/z-td.cjs.entry.js +3 -3
  84. package/dist/cjs/z-tfoot.cjs.entry.js +2 -2
  85. package/dist/cjs/z-th.cjs.entry.js +3 -3
  86. package/dist/cjs/z-thead.cjs.entry.js +2 -2
  87. package/dist/cjs/z-toast-notification-list.cjs.entry.js +3 -3
  88. package/dist/cjs/z-toast-notification.cjs.entry.js +3 -3
  89. package/dist/cjs/z-toggle-button.cjs.entry.js +3 -3
  90. package/dist/cjs/z-toggle-switch.cjs.entry.js +6 -6
  91. package/dist/cjs/z-tooltip.cjs.entry.js +3 -3
  92. package/dist/cjs/z-tr.cjs.entry.js +6 -6
  93. package/dist/cjs/z-visually-hidden.cjs.entry.js +2 -2
  94. package/dist/collection/assets/orientamento.svg +14 -0
  95. package/dist/collection/beans/index.js +2 -0
  96. package/dist/collection/beans/index.js.map +1 -1
  97. package/dist/collection/collection-manifest.json +3 -0
  98. package/dist/collection/components/deprecated/z-app-header-deprecated/index.js +420 -0
  99. package/dist/collection/components/deprecated/z-app-header-deprecated/index.js.map +1 -0
  100. package/dist/collection/components/deprecated/z-app-header-deprecated/index.spec.js +203 -0
  101. package/dist/collection/components/deprecated/z-app-header-deprecated/index.spec.js.map +1 -0
  102. package/dist/collection/components/deprecated/z-app-header-deprecated/index.stories.js +635 -0
  103. package/dist/collection/components/deprecated/z-app-header-deprecated/index.stories.js.map +1 -0
  104. package/dist/collection/components/deprecated/z-app-header-deprecated/styles.css +441 -0
  105. package/dist/collection/components/deprecated/z-menu-deprecated/index.js +244 -0
  106. package/dist/collection/components/deprecated/z-menu-deprecated/index.js.map +1 -0
  107. package/dist/collection/components/deprecated/z-menu-deprecated/index.spec.js +120 -0
  108. package/dist/collection/components/deprecated/z-menu-deprecated/index.spec.js.map +1 -0
  109. package/dist/collection/components/deprecated/z-menu-deprecated/index.stories.js +129 -0
  110. package/dist/collection/components/deprecated/z-menu-deprecated/index.stories.js.map +1 -0
  111. package/dist/collection/components/deprecated/z-menu-deprecated/styles.css +217 -0
  112. package/dist/collection/components/deprecated/z-menu-section-deprecated/index.js +131 -0
  113. package/dist/collection/components/deprecated/z-menu-section-deprecated/index.js.map +1 -0
  114. package/dist/collection/components/deprecated/z-menu-section-deprecated/index.spec.js +50 -0
  115. package/dist/collection/components/deprecated/z-menu-section-deprecated/index.spec.js.map +1 -0
  116. package/dist/collection/components/deprecated/z-menu-section-deprecated/index.stories.js +41 -0
  117. package/dist/collection/components/deprecated/z-menu-section-deprecated/index.stories.js.map +1 -0
  118. package/dist/collection/components/deprecated/z-menu-section-deprecated/styles.css +123 -0
  119. package/dist/collection/components/file-upload/z-dragdrop-area/index.js +2 -2
  120. package/dist/collection/components/file-upload/z-file/index.js +1 -1
  121. package/dist/collection/components/file-upload/z-file-upload/index.js +1 -1
  122. package/dist/collection/components/list/z-list/index.js +1 -1
  123. package/dist/collection/components/list/z-list-element/index.js +1 -1
  124. package/dist/collection/components/list/z-list-group/index.js +2 -2
  125. package/dist/collection/components/table/cells/z-td/index.js +2 -27
  126. package/dist/collection/components/table/cells/z-td/index.js.map +1 -1
  127. package/dist/collection/components/table/cells/z-td/styles.css +0 -4
  128. package/dist/collection/components/table/cells/z-th/index.js +1 -1
  129. package/dist/collection/components/table/cells/z-th/styles.css +0 -4
  130. package/dist/collection/components/table/z-table/index.js +1 -1
  131. package/dist/collection/components/table/z-tbody/index.js +1 -1
  132. package/dist/collection/components/table/z-tfoot/index.js +1 -1
  133. package/dist/collection/components/table/z-thead/index.js +1 -1
  134. package/dist/collection/components/table/z-tr/index.js +1 -1
  135. package/dist/collection/components/z-accordion/index.js +1 -1
  136. package/dist/collection/components/z-anchor-navigation/index.js +1 -1
  137. package/dist/collection/components/z-app-header/index.js +215 -159
  138. package/dist/collection/components/z-app-header/index.js.map +1 -1
  139. package/dist/collection/components/z-app-header/index.spec.js +493 -79
  140. package/dist/collection/components/z-app-header/index.spec.js.map +1 -1
  141. package/dist/collection/components/z-app-header/index.stories.js +59 -369
  142. package/dist/collection/components/z-app-header/index.stories.js.map +1 -1
  143. package/dist/collection/components/z-app-header/styles.css +147 -183
  144. package/dist/collection/components/z-aria-alert/index.js +1 -1
  145. package/dist/collection/components/z-avatar/index.js +2 -2
  146. package/dist/collection/components/z-book-card/index.js +1 -1
  147. package/dist/collection/components/z-breadcrumb/index.js +2 -2
  148. package/dist/collection/components/z-button-sort/index.js +1 -1
  149. package/dist/collection/components/z-chip/index.js +2 -2
  150. package/dist/collection/components/z-combobox/index.js +1 -1
  151. package/dist/collection/components/z-cover-hero/index.js +2 -2
  152. package/dist/collection/components/z-divider/index.js +1 -1
  153. package/dist/collection/components/z-ghost-loading/index.js +1 -1
  154. package/dist/collection/components/z-info-box/index.js +1 -1
  155. package/dist/collection/components/z-info-reveal/index.js +1 -1
  156. package/dist/collection/components/z-input/index.js +1 -1
  157. package/dist/collection/components/z-input-message/index.js +1 -1
  158. package/dist/collection/components/z-logo/index.js +1 -1
  159. package/dist/collection/components/z-menu/index.js +128 -5
  160. package/dist/collection/components/z-menu/index.js.map +1 -1
  161. package/dist/collection/components/z-menu/index.spec.js +49 -33
  162. package/dist/collection/components/z-menu/index.spec.js.map +1 -1
  163. package/dist/collection/components/z-menu/index.stories.js +7 -7
  164. package/dist/collection/components/z-menu/index.stories.js.map +1 -1
  165. package/dist/collection/components/z-menu/styles.css +21 -8
  166. package/dist/collection/components/z-menu-section/index.js +102 -2
  167. package/dist/collection/components/z-menu-section/index.js.map +1 -1
  168. package/dist/collection/components/z-menu-section/index.spec.js +7 -7
  169. package/dist/collection/components/z-menu-section/index.spec.js.map +1 -1
  170. package/dist/collection/components/z-menu-section/index.stories.js +3 -3
  171. package/dist/collection/components/z-menu-section/index.stories.js.map +1 -1
  172. package/dist/collection/components/z-menu-section/styles.css +5 -5
  173. package/dist/collection/components/z-modal/index.js +4 -4
  174. package/dist/collection/components/z-navigation-tabs/index.js +2 -2
  175. package/dist/collection/components/z-notification/index.js +1 -1
  176. package/dist/collection/components/z-offcanvas/index.js +1 -1
  177. package/dist/collection/components/z-panel-elem/index.js +2 -2
  178. package/dist/collection/components/z-popover/index.js +1 -1
  179. package/dist/collection/components/z-searchbar/index.js +1 -1
  180. package/dist/collection/components/z-section-title/index.js +1 -1
  181. package/dist/collection/components/z-select/index.js +1 -1
  182. package/dist/collection/components/z-skip-to-content/index.js +1 -1
  183. package/dist/collection/components/z-stepper/index.js +1 -1
  184. package/dist/collection/components/z-stepper-item/index.js +1 -1
  185. package/dist/collection/components/z-tag/index.js +2 -2
  186. package/dist/collection/components/z-toast-notification/index.js +1 -1
  187. package/dist/collection/components/z-toast-notification-list/index.js +1 -1
  188. package/dist/collection/components/z-toggle-button/index.js +2 -2
  189. package/dist/collection/components/z-toggle-switch/index.js +3 -3
  190. package/dist/collection/components/z-tooltip/index.js +1 -1
  191. package/dist/collection/components/z-visually-hidden/index.js +1 -1
  192. package/dist/collection/snowflakes/myz/card/z-myz-card/index.js +1 -1
  193. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js +1 -1
  194. package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js +1 -1
  195. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js +1 -1
  196. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js +1 -1
  197. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js +1 -1
  198. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js +1 -1
  199. package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js +1 -1
  200. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js +1 -1
  201. package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +1 -1
  202. package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js +1 -1
  203. package/dist/collection/snowflakes/myz/list/z-myz-list/index.js +1 -1
  204. package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js +1 -1
  205. package/dist/collection/snowflakes/myz/z-alert/index.js +1 -1
  206. package/dist/collection/snowflakes/myz/z-otp/index.js +2 -2
  207. package/dist/components/index.d.ts +6 -0
  208. package/dist/components/index.js +3 -0
  209. package/dist/components/index.js.map +1 -1
  210. package/dist/components/index10.js +1 -1
  211. package/dist/components/index11.js +1 -1
  212. package/dist/components/index12.js +1 -1
  213. package/dist/components/index13.js +1 -1
  214. package/dist/components/index14.js +2 -2
  215. package/dist/components/index15.js +4 -4
  216. package/dist/components/index16.js +1 -1
  217. package/dist/components/index17.js +1 -1
  218. package/dist/components/index18.js +1 -1
  219. package/dist/components/index19.js +1 -1
  220. package/dist/components/index2.js +2 -0
  221. package/dist/components/index2.js.map +1 -1
  222. package/dist/components/index20.js +1 -1
  223. package/dist/components/index21.js +1 -1
  224. package/dist/components/index22.js +1 -1
  225. package/dist/components/index23.js +1 -1
  226. package/dist/components/index24.js +2 -2
  227. package/dist/components/index3.js +1 -1
  228. package/dist/components/index5.js +2 -2
  229. package/dist/components/index6.js +1 -1
  230. package/dist/components/index7.js +2 -2
  231. package/dist/components/index8.js +1 -1
  232. package/dist/components/z-accordion.js +1 -1
  233. package/dist/components/z-anchor-navigation.js +1 -1
  234. package/dist/components/z-app-header-deprecated.d.ts +11 -0
  235. package/dist/components/z-app-header-deprecated.js +255 -0
  236. package/dist/components/z-app-header-deprecated.js.map +1 -0
  237. package/dist/components/z-app-header.js +190 -60
  238. package/dist/components/z-app-header.js.map +1 -1
  239. package/dist/components/z-aria-alert.js +1 -1
  240. package/dist/components/z-avatar.js +2 -2
  241. package/dist/components/z-book-card.js +1 -1
  242. package/dist/components/z-breadcrumb.js +2 -2
  243. package/dist/components/z-button-sort.js +1 -1
  244. package/dist/components/z-combobox.js +1 -1
  245. package/dist/components/z-cover-hero.js +2 -2
  246. package/dist/components/z-file-upload.js +1 -1
  247. package/dist/components/z-file.js +1 -1
  248. package/dist/components/z-info-box.js +1 -1
  249. package/dist/components/z-info-reveal.js +1 -1
  250. package/dist/components/z-logo.js +1 -1
  251. package/dist/components/z-menu-deprecated.d.ts +11 -0
  252. package/dist/components/z-menu-deprecated.js +144 -0
  253. package/dist/components/z-menu-deprecated.js.map +1 -0
  254. package/dist/components/z-menu-section-deprecated.d.ts +11 -0
  255. package/dist/components/z-menu-section-deprecated.js +84 -0
  256. package/dist/components/z-menu-section-deprecated.js.map +1 -0
  257. package/dist/components/z-menu-section.js +92 -4
  258. package/dist/components/z-menu-section.js.map +1 -1
  259. package/dist/components/z-menu.js +117 -6
  260. package/dist/components/z-menu.js.map +1 -1
  261. package/dist/components/z-myz-card-alert.js +1 -1
  262. package/dist/components/z-myz-card-dictionary.js +1 -1
  263. package/dist/components/z-myz-card-footer-sections.js +1 -1
  264. package/dist/components/z-myz-card-footer.js +1 -1
  265. package/dist/components/z-myz-card-icon.js +1 -1
  266. package/dist/components/z-myz-card-info.js +1 -1
  267. package/dist/components/z-myz-card-list.js +1 -1
  268. package/dist/components/z-myz-list.js +1 -1
  269. package/dist/components/z-navigation-tabs.js +2 -2
  270. package/dist/components/z-notification.js +1 -1
  271. package/dist/components/z-otp.js +2 -2
  272. package/dist/components/z-panel-elem.js +2 -2
  273. package/dist/components/z-section-title.js +1 -1
  274. package/dist/components/z-select.js +1 -1
  275. package/dist/components/z-skip-to-content.js +1 -1
  276. package/dist/components/z-stepper-item.js +1 -1
  277. package/dist/components/z-stepper.js +1 -1
  278. package/dist/components/z-table.js +1 -1
  279. package/dist/components/z-tbody.js +1 -1
  280. package/dist/components/z-td.js +3 -5
  281. package/dist/components/z-td.js.map +1 -1
  282. package/dist/components/z-tfoot.js +1 -1
  283. package/dist/components/z-th.js +2 -2
  284. package/dist/components/z-th.js.map +1 -1
  285. package/dist/components/z-thead.js +1 -1
  286. package/dist/components/z-toast-notification-list.js +1 -1
  287. package/dist/components/z-toast-notification.js +1 -1
  288. package/dist/components/z-toggle-button.js +2 -2
  289. package/dist/components/z-toggle-switch.js +3 -3
  290. package/dist/components/z-tooltip.js +1 -1
  291. package/dist/components/z-tr.js +1 -1
  292. package/dist/components/z-visually-hidden.js +1 -1
  293. package/dist/esm/index-175661e6.js +18 -0
  294. package/dist/esm/{index-41ee4016.js.map → index-175661e6.js.map} +1 -1
  295. package/dist/esm/{index-aa07660e.js → index-18018bb5.js} +5 -5
  296. package/dist/esm/{index-aa07660e.js.map → index-18018bb5.js.map} +1 -1
  297. package/dist/esm/{index-497d9441.js → index-292b4dd2.js} +5 -6
  298. package/dist/esm/index-292b4dd2.js.map +1 -0
  299. package/dist/esm/{index-437f0b00.js → index-50bbb22e.js} +6 -6
  300. package/dist/esm/{index-437f0b00.js.map → index-50bbb22e.js.map} +1 -1
  301. package/dist/esm/{index-ab5f1eaa.js → index-a2130b6a.js} +55 -3
  302. package/dist/esm/index-a2130b6a.js.map +1 -0
  303. package/dist/esm/{index-ea49e441.js → index-a81f1558.js} +3 -3
  304. package/dist/esm/{index-ea49e441.js.map → index-a81f1558.js.map} +1 -1
  305. package/dist/esm/{index-cfde9cec.js → index-b556b384.js} +3 -3
  306. package/dist/esm/{index-cfde9cec.js.map → index-b556b384.js.map} +1 -1
  307. package/dist/esm/{index-a7f69d42.js → index-b7dbacb4.js} +3 -1
  308. package/dist/esm/index-b7dbacb4.js.map +1 -0
  309. package/dist/esm/index.js +2 -2
  310. package/dist/esm/loader.js +3 -3
  311. package/dist/esm/{utils-f7da2c5f.js → utils-54e02183.js} +2 -2
  312. package/dist/esm/{utils-f7da2c5f.js.map → utils-54e02183.js.map} +1 -1
  313. package/dist/esm/{utils-0ce33738.js → utils-8ade9e2d.js} +2 -2
  314. package/dist/esm/{utils-0ce33738.js.map → utils-8ade9e2d.js.map} +1 -1
  315. package/dist/esm/web-components-library.js +3 -3
  316. package/dist/esm/z-accordion.entry.js +3 -3
  317. package/dist/esm/z-alert.entry.js +2 -2
  318. package/dist/esm/z-anchor-navigation.entry.js +3 -3
  319. package/dist/esm/z-app-header-deprecated.entry.js +154 -0
  320. package/dist/esm/z-app-header-deprecated.entry.js.map +1 -0
  321. package/dist/esm/z-app-header_12.entry.js +197 -67
  322. package/dist/esm/z-app-header_12.entry.js.map +1 -1
  323. package/dist/esm/z-aria-alert.entry.js +3 -3
  324. package/dist/esm/z-avatar.entry.js +4 -4
  325. package/dist/esm/z-book-card.entry.js +4 -4
  326. package/dist/esm/z-breadcrumb.entry.js +5 -5
  327. package/dist/esm/z-button-sort.entry.js +2 -2
  328. package/dist/esm/z-card.entry.js +2 -2
  329. package/dist/esm/z-carousel.entry.js +2 -2
  330. package/dist/esm/z-chip.entry.js +4 -4
  331. package/dist/esm/z-combobox.entry.js +4 -4
  332. package/dist/esm/z-cover-hero.entry.js +4 -4
  333. package/dist/esm/z-date-picker.entry.js +3 -3
  334. package/dist/esm/z-dragdrop-area_2.entry.js +8 -8
  335. package/dist/esm/z-file-upload.entry.js +4 -4
  336. package/dist/esm/z-file.entry.js +3 -3
  337. package/dist/esm/z-ghost-loading.entry.js +2 -2
  338. package/dist/esm/z-info-box.entry.js +2 -2
  339. package/dist/esm/z-info-reveal.entry.js +3 -3
  340. package/dist/esm/z-logo.entry.js +2 -2
  341. package/dist/esm/z-menu-deprecated.entry.js +111 -0
  342. package/dist/esm/z-menu-deprecated.entry.js.map +1 -0
  343. package/dist/esm/z-menu-section-deprecated.entry.js +56 -0
  344. package/dist/esm/z-menu-section-deprecated.entry.js.map +1 -0
  345. package/dist/esm/z-menu-section.entry.js +92 -4
  346. package/dist/esm/z-menu-section.entry.js.map +1 -1
  347. package/dist/esm/z-menu.entry.js +117 -6
  348. package/dist/esm/z-menu.entry.js.map +1 -1
  349. package/dist/esm/z-myz-card-alert.entry.js +3 -3
  350. package/dist/esm/z-myz-card-dictionary.entry.js +3 -3
  351. package/dist/esm/z-myz-card-footer-sections.entry.js +2 -2
  352. package/dist/esm/z-myz-card-footer.entry.js +3 -3
  353. package/dist/esm/z-myz-card-icon.entry.js +2 -2
  354. package/dist/esm/z-myz-card-info.entry.js +4 -4
  355. package/dist/esm/z-myz-card-list.entry.js +2 -2
  356. package/dist/esm/z-myz-card_4.entry.js +6 -6
  357. package/dist/esm/z-myz-list-item.entry.js +4 -4
  358. package/dist/esm/z-myz-list.entry.js +2 -2
  359. package/dist/esm/z-navigation-tabs.entry.js +4 -4
  360. package/dist/esm/z-notification.entry.js +2 -2
  361. package/dist/esm/z-otp.entry.js +4 -4
  362. package/dist/esm/z-pagination.entry.js +2 -2
  363. package/dist/esm/z-panel-elem.entry.js +3 -3
  364. package/dist/esm/z-popover.entry.js +3 -3
  365. package/dist/esm/z-range-picker.entry.js +3 -3
  366. package/dist/esm/z-section-title.entry.js +3 -3
  367. package/dist/esm/z-select.entry.js +4 -4
  368. package/dist/esm/z-skip-to-content.entry.js +4 -4
  369. package/dist/esm/z-slideshow.entry.js +3 -3
  370. package/dist/esm/z-stepper-item.entry.js +2 -2
  371. package/dist/esm/z-stepper.entry.js +2 -2
  372. package/dist/esm/z-table.entry.js +10 -10
  373. package/dist/esm/z-tbody.entry.js +2 -2
  374. package/dist/esm/z-td.entry.js +3 -3
  375. package/dist/esm/z-tfoot.entry.js +2 -2
  376. package/dist/esm/z-th.entry.js +3 -3
  377. package/dist/esm/z-thead.entry.js +2 -2
  378. package/dist/esm/z-toast-notification-list.entry.js +3 -3
  379. package/dist/esm/z-toast-notification.entry.js +3 -3
  380. package/dist/esm/z-toggle-button.entry.js +3 -3
  381. package/dist/esm/z-toggle-switch.entry.js +6 -6
  382. package/dist/esm/z-tooltip.entry.js +3 -3
  383. package/dist/esm/z-tr.entry.js +6 -6
  384. package/dist/esm/z-visually-hidden.entry.js +2 -2
  385. package/dist/types/beans/index.d.ts +3 -1
  386. package/dist/types/components/deprecated/z-app-header-deprecated/index.d.ts +149 -0
  387. package/dist/types/components/deprecated/z-app-header-deprecated/index.stories.d.ts +118 -0
  388. package/dist/types/components/deprecated/z-menu-deprecated/index.d.ts +61 -0
  389. package/dist/types/components/deprecated/z-menu-deprecated/index.stories.d.ts +27 -0
  390. package/dist/types/components/deprecated/z-menu-section-deprecated/index.d.ts +31 -0
  391. package/dist/types/components/deprecated/z-menu-section-deprecated/index.stories.d.ts +16 -0
  392. package/dist/types/components/table/cells/z-td/index.d.ts +1 -5
  393. package/dist/types/components/z-app-header/index.d.ts +33 -76
  394. package/dist/types/components/z-app-header/index.stories.d.ts +20 -40
  395. package/dist/types/components/z-menu/index.d.ts +11 -0
  396. package/dist/types/components/z-menu-section/index.d.ts +9 -0
  397. package/dist/types/components.d.ts +268 -18
  398. package/dist/web-components-library/index.esm.js +1 -1
  399. package/dist/web-components-library/{p-5e0acf57.entry.js → p-054484d4.entry.js} +2 -2
  400. package/dist/web-components-library/{p-bd75bef4.entry.js → p-05e9ae1e.entry.js} +2 -2
  401. package/dist/web-components-library/{p-6c5a8061.entry.js → p-12d62027.entry.js} +2 -2
  402. package/{www/build/p-726e1059.entry.js → dist/web-components-library/p-18690383.entry.js} +2 -2
  403. package/dist/web-components-library/{p-a36045c2.entry.js → p-19f8c3d2.entry.js} +2 -2
  404. package/dist/web-components-library/p-1edbac5f.entry.js +2 -0
  405. package/dist/web-components-library/{p-9ddfcfd4.entry.js → p-21b85c7f.entry.js} +2 -2
  406. package/dist/web-components-library/{p-f7180c65.entry.js → p-2672e36f.entry.js} +2 -2
  407. package/{www/build/p-4a2b4ad1.entry.js → dist/web-components-library/p-28928bb6.entry.js} +2 -2
  408. package/dist/web-components-library/{p-a0231723.entry.js → p-2a7e4988.entry.js} +2 -2
  409. package/dist/web-components-library/{p-66d70fb4.js → p-2c184714.js} +2 -2
  410. package/dist/web-components-library/p-304eeab0.js +2 -0
  411. package/dist/web-components-library/{p-09897132.entry.js → p-324ef970.entry.js} +2 -2
  412. package/{www/build/p-90b4d340.entry.js → dist/web-components-library/p-33eea921.entry.js} +2 -2
  413. package/dist/web-components-library/p-385bf4ca.entry.js +2 -0
  414. package/dist/web-components-library/{p-411d929f.entry.js → p-3b266de4.entry.js} +2 -2
  415. package/dist/web-components-library/{p-2ed68ac5.entry.js → p-4552744b.entry.js} +2 -2
  416. package/dist/web-components-library/{p-ebdfd7e5.entry.js → p-49e4ce84.entry.js} +2 -2
  417. package/dist/web-components-library/p-57eee056.entry.js +2 -0
  418. package/dist/web-components-library/{p-e2997191.entry.js.map → p-57eee056.entry.js.map} +1 -1
  419. package/{www/build/p-1efacf4c.entry.js → dist/web-components-library/p-5a5481be.entry.js} +2 -2
  420. package/dist/web-components-library/p-6037cdf3.js +2 -0
  421. package/{www/build/p-3de034cf.js.map → dist/web-components-library/p-6037cdf3.js.map} +1 -1
  422. package/{www/build/p-65df3290.entry.js → dist/web-components-library/p-609c11d6.entry.js} +2 -2
  423. package/dist/web-components-library/p-6319b5e2.entry.js +2 -0
  424. package/{www/build/p-467d8a16.entry.js → dist/web-components-library/p-63e970ee.entry.js} +2 -2
  425. package/{www/build/p-7693ae18.entry.js → dist/web-components-library/p-6586441a.entry.js} +3 -3
  426. package/dist/web-components-library/p-68822fbc.entry.js +2 -0
  427. package/dist/web-components-library/{p-493c652a.entry.js → p-6a664748.entry.js} +2 -2
  428. package/dist/web-components-library/p-6b2cd695.entry.js +2 -0
  429. package/dist/web-components-library/p-6f4dd02b.entry.js +2 -0
  430. package/dist/web-components-library/{p-5e45636a.entry.js.map → p-6f4dd02b.entry.js.map} +1 -1
  431. package/dist/web-components-library/p-74a65c6f.entry.js +2 -0
  432. package/{www/build/p-dde9f76d.entry.js → dist/web-components-library/p-77d8ad7e.entry.js} +2 -2
  433. package/{www/build/p-2190352b.js → dist/web-components-library/p-78e52a02.js} +2 -2
  434. package/dist/web-components-library/p-7d827c11.js +2 -0
  435. package/dist/web-components-library/{p-5bbb5599.entry.js → p-83350b5f.entry.js} +2 -2
  436. package/dist/web-components-library/p-83eff308.entry.js +2 -0
  437. package/dist/web-components-library/p-83eff308.entry.js.map +1 -0
  438. package/dist/web-components-library/{p-8df46096.entry.js → p-8499a29d.entry.js} +2 -2
  439. package/{www/build/p-1501c221.entry.js → dist/web-components-library/p-85f84e55.entry.js} +2 -2
  440. package/dist/web-components-library/{p-376208ab.entry.js → p-88e756cd.entry.js} +2 -2
  441. package/dist/web-components-library/p-89584f19.entry.js +2 -0
  442. package/dist/web-components-library/{p-b6e14c6b.entry.js.map → p-89584f19.entry.js.map} +1 -1
  443. package/dist/web-components-library/{p-7ce64686.entry.js → p-8a10fec5.entry.js} +2 -2
  444. package/dist/web-components-library/p-8a10fec5.entry.js.map +1 -0
  445. package/dist/web-components-library/{p-214bc293.entry.js → p-8b309268.entry.js} +2 -2
  446. package/dist/web-components-library/p-8c517cd7.entry.js +2 -0
  447. package/dist/web-components-library/p-8c517cd7.entry.js.map +1 -0
  448. package/dist/web-components-library/{p-0c2fdbe5.entry.js → p-8c9f7cef.entry.js} +2 -2
  449. package/dist/web-components-library/p-8d7323f7.entry.js +2 -0
  450. package/dist/web-components-library/p-8d7323f7.entry.js.map +1 -0
  451. package/dist/web-components-library/p-8de7ea6e.js +2 -0
  452. package/dist/web-components-library/{p-82dc715b.js.map → p-8de7ea6e.js.map} +1 -1
  453. package/dist/web-components-library/{p-f3272ec6.entry.js → p-91c04edc.entry.js} +2 -2
  454. package/dist/web-components-library/{p-80359658.entry.js → p-97b0c3b3.entry.js} +2 -2
  455. package/dist/web-components-library/{p-74e134e6.entry.js → p-99b791d1.entry.js} +2 -2
  456. package/dist/web-components-library/p-9f2a7cf0.js +2 -0
  457. package/dist/web-components-library/p-9f2a7cf0.js.map +1 -0
  458. package/{www/build/p-63337e8b.entry.js → dist/web-components-library/p-a4ada10b.entry.js} +2 -2
  459. package/dist/web-components-library/p-a5781264.entry.js +2 -0
  460. package/{www/build/p-14bf4619.entry.js → dist/web-components-library/p-ad76b8ff.entry.js} +2 -2
  461. package/dist/web-components-library/p-ae94e377.js +2 -0
  462. package/{www/build/p-40e4e3af.js.map → dist/web-components-library/p-ae94e377.js.map} +1 -1
  463. package/dist/web-components-library/{p-2c81acaa.entry.js → p-ae96bc09.entry.js} +2 -2
  464. package/dist/web-components-library/{p-09a9e2ca.entry.js → p-af856537.entry.js} +2 -2
  465. package/{www/build/p-7d5983f6.entry.js → dist/web-components-library/p-b84fa3b6.entry.js} +2 -2
  466. package/dist/web-components-library/{p-ff4aa84a.entry.js → p-be4878f2.entry.js} +2 -2
  467. package/dist/web-components-library/p-bf2a057d.entry.js +2 -0
  468. package/dist/web-components-library/{p-82b845c3.entry.js → p-c0bdbfb5.entry.js} +2 -2
  469. package/dist/web-components-library/p-c0bdbfb5.entry.js.map +1 -0
  470. package/dist/web-components-library/{p-464e5886.entry.js → p-c6b269ce.entry.js} +2 -2
  471. package/dist/web-components-library/{p-1064cb1a.entry.js → p-c90249e5.entry.js} +2 -2
  472. package/dist/web-components-library/p-cf2640b0.entry.js +2 -0
  473. package/dist/web-components-library/p-cf2640b0.entry.js.map +1 -0
  474. package/dist/web-components-library/p-cfa39bd3.js +3 -0
  475. package/dist/web-components-library/p-cfa39bd3.js.map +1 -0
  476. package/dist/web-components-library/p-d9e1d8c7.js +2 -0
  477. package/dist/web-components-library/{p-60dfcfaa.entry.js → p-df05727f.entry.js} +2 -2
  478. package/dist/web-components-library/p-e0323da3.entry.js +2 -0
  479. package/dist/web-components-library/{p-810433b1.entry.js → p-e1852de3.entry.js} +2 -2
  480. package/dist/web-components-library/{p-2010d544.entry.js → p-e366782c.entry.js} +2 -2
  481. package/dist/web-components-library/{p-f323cc0b.entry.js → p-e5dc0719.entry.js} +2 -2
  482. package/dist/web-components-library/{p-ea9aa3bb.entry.js → p-f21bc3a9.entry.js} +2 -2
  483. package/{www/build/p-a11e1d48.entry.js → dist/web-components-library/p-f74f9f3c.entry.js} +2 -2
  484. package/dist/web-components-library/p-f8d45aa4.entry.js +2 -0
  485. package/dist/web-components-library/{p-c3809d39.entry.js → p-fe87b081.entry.js} +2 -2
  486. package/dist/web-components-library/web-components-library.esm.js +1 -1
  487. package/dist/web-components-library/web-components-library.esm.js.map +1 -1
  488. package/package.json +1 -1
  489. package/react/components.d.ts +3 -0
  490. package/react/components.js +5 -2
  491. package/react/components.js.map +1 -1
  492. package/www/assets/orientamento.svg +14 -0
  493. package/www/build/index.esm.js +1 -1
  494. package/www/build/{p-5e0acf57.entry.js → p-054484d4.entry.js} +2 -2
  495. package/www/build/{p-bd75bef4.entry.js → p-05e9ae1e.entry.js} +2 -2
  496. package/www/build/{p-6c5a8061.entry.js → p-12d62027.entry.js} +2 -2
  497. package/{dist/web-components-library/p-726e1059.entry.js → www/build/p-18690383.entry.js} +2 -2
  498. package/www/build/{p-a36045c2.entry.js → p-19f8c3d2.entry.js} +2 -2
  499. package/www/build/p-1edbac5f.entry.js +2 -0
  500. package/www/build/{p-9ddfcfd4.entry.js → p-21b85c7f.entry.js} +2 -2
  501. package/www/build/{p-f7180c65.entry.js → p-2672e36f.entry.js} +2 -2
  502. package/{dist/web-components-library/p-4a2b4ad1.entry.js → www/build/p-28928bb6.entry.js} +2 -2
  503. package/www/build/{p-a0231723.entry.js → p-2a7e4988.entry.js} +2 -2
  504. package/www/build/{p-66d70fb4.js → p-2c184714.js} +2 -2
  505. package/www/build/p-304eeab0.js +2 -0
  506. package/www/build/{p-09897132.entry.js → p-324ef970.entry.js} +2 -2
  507. package/{dist/web-components-library/p-90b4d340.entry.js → www/build/p-33eea921.entry.js} +2 -2
  508. package/www/build/p-385bf4ca.entry.js +2 -0
  509. package/www/build/{p-411d929f.entry.js → p-3b266de4.entry.js} +2 -2
  510. package/www/build/{p-2ed68ac5.entry.js → p-4552744b.entry.js} +2 -2
  511. package/www/build/{p-ebdfd7e5.entry.js → p-49e4ce84.entry.js} +2 -2
  512. package/www/build/p-57eee056.entry.js +2 -0
  513. package/www/build/{p-e2997191.entry.js.map → p-57eee056.entry.js.map} +1 -1
  514. package/{dist/web-components-library/p-1efacf4c.entry.js → www/build/p-5a5481be.entry.js} +2 -2
  515. package/www/build/p-6037cdf3.js +2 -0
  516. package/{dist/web-components-library/p-3de034cf.js.map → www/build/p-6037cdf3.js.map} +1 -1
  517. package/{dist/web-components-library/p-65df3290.entry.js → www/build/p-609c11d6.entry.js} +2 -2
  518. package/www/build/p-6319b5e2.entry.js +2 -0
  519. package/{dist/web-components-library/p-467d8a16.entry.js → www/build/p-63e970ee.entry.js} +2 -2
  520. package/{dist/web-components-library/p-7693ae18.entry.js → www/build/p-6586441a.entry.js} +3 -3
  521. package/www/build/p-68822fbc.entry.js +2 -0
  522. package/www/build/{p-493c652a.entry.js → p-6a664748.entry.js} +2 -2
  523. package/www/build/p-6b2cd695.entry.js +2 -0
  524. package/www/build/p-6f4dd02b.entry.js +2 -0
  525. package/www/build/{p-5e45636a.entry.js.map → p-6f4dd02b.entry.js.map} +1 -1
  526. package/www/build/p-74a65c6f.entry.js +2 -0
  527. package/www/build/p-774b449d.js +2 -0
  528. package/{dist/web-components-library/p-dde9f76d.entry.js → www/build/p-77d8ad7e.entry.js} +2 -2
  529. package/{dist/web-components-library/p-2190352b.js → www/build/p-78e52a02.js} +2 -2
  530. package/www/build/p-7d827c11.js +2 -0
  531. package/www/build/{p-5bbb5599.entry.js → p-83350b5f.entry.js} +2 -2
  532. package/www/build/p-83eff308.entry.js +2 -0
  533. package/www/build/p-83eff308.entry.js.map +1 -0
  534. package/www/build/{p-8df46096.entry.js → p-8499a29d.entry.js} +2 -2
  535. package/{dist/web-components-library/p-1501c221.entry.js → www/build/p-85f84e55.entry.js} +2 -2
  536. package/www/build/{p-376208ab.entry.js → p-88e756cd.entry.js} +2 -2
  537. package/www/build/p-89584f19.entry.js +2 -0
  538. package/www/build/{p-b6e14c6b.entry.js.map → p-89584f19.entry.js.map} +1 -1
  539. package/www/build/{p-7ce64686.entry.js → p-8a10fec5.entry.js} +2 -2
  540. package/www/build/p-8a10fec5.entry.js.map +1 -0
  541. package/www/build/{p-214bc293.entry.js → p-8b309268.entry.js} +2 -2
  542. package/www/build/p-8c517cd7.entry.js +2 -0
  543. package/www/build/p-8c517cd7.entry.js.map +1 -0
  544. package/www/build/{p-0c2fdbe5.entry.js → p-8c9f7cef.entry.js} +2 -2
  545. package/www/build/p-8d7323f7.entry.js +2 -0
  546. package/www/build/p-8d7323f7.entry.js.map +1 -0
  547. package/www/build/p-8de7ea6e.js +2 -0
  548. package/www/build/{p-82dc715b.js.map → p-8de7ea6e.js.map} +1 -1
  549. package/www/build/{p-f3272ec6.entry.js → p-91c04edc.entry.js} +2 -2
  550. package/www/build/{p-80359658.entry.js → p-97b0c3b3.entry.js} +2 -2
  551. package/www/build/{p-74e134e6.entry.js → p-99b791d1.entry.js} +2 -2
  552. package/www/build/p-9f2a7cf0.js +2 -0
  553. package/www/build/p-9f2a7cf0.js.map +1 -0
  554. package/{dist/web-components-library/p-63337e8b.entry.js → www/build/p-a4ada10b.entry.js} +2 -2
  555. package/www/build/p-a5781264.entry.js +2 -0
  556. package/{dist/web-components-library/p-14bf4619.entry.js → www/build/p-ad76b8ff.entry.js} +2 -2
  557. package/www/build/p-ae94e377.js +2 -0
  558. package/{dist/web-components-library/p-40e4e3af.js.map → www/build/p-ae94e377.js.map} +1 -1
  559. package/www/build/{p-2c81acaa.entry.js → p-ae96bc09.entry.js} +2 -2
  560. package/www/build/{p-09a9e2ca.entry.js → p-af856537.entry.js} +2 -2
  561. package/{dist/web-components-library/p-7d5983f6.entry.js → www/build/p-b84fa3b6.entry.js} +2 -2
  562. package/www/build/{p-ff4aa84a.entry.js → p-be4878f2.entry.js} +2 -2
  563. package/www/build/p-bf2a057d.entry.js +2 -0
  564. package/www/build/{p-82b845c3.entry.js → p-c0bdbfb5.entry.js} +2 -2
  565. package/www/build/p-c0bdbfb5.entry.js.map +1 -0
  566. package/www/build/{p-464e5886.entry.js → p-c6b269ce.entry.js} +2 -2
  567. package/www/build/{p-1064cb1a.entry.js → p-c90249e5.entry.js} +2 -2
  568. package/www/build/p-cf2640b0.entry.js +2 -0
  569. package/www/build/p-cf2640b0.entry.js.map +1 -0
  570. package/www/build/p-cfa39bd3.js +3 -0
  571. package/www/build/p-cfa39bd3.js.map +1 -0
  572. package/www/build/p-d9e1d8c7.js +2 -0
  573. package/www/build/{p-60dfcfaa.entry.js → p-df05727f.entry.js} +2 -2
  574. package/www/build/p-e0323da3.entry.js +2 -0
  575. package/www/build/{p-810433b1.entry.js → p-e1852de3.entry.js} +2 -2
  576. package/www/build/{p-2010d544.entry.js → p-e366782c.entry.js} +2 -2
  577. package/www/build/{p-f323cc0b.entry.js → p-e5dc0719.entry.js} +2 -2
  578. package/www/build/{p-ea9aa3bb.entry.js → p-f21bc3a9.entry.js} +2 -2
  579. package/{dist/web-components-library/p-a11e1d48.entry.js → www/build/p-f74f9f3c.entry.js} +2 -2
  580. package/www/build/p-f8d45aa4.entry.js +2 -0
  581. package/www/build/{p-c3809d39.entry.js → p-fe87b081.entry.js} +2 -2
  582. package/www/build/web-components-library.esm.js +1 -1
  583. package/www/build/web-components-library.esm.js.map +1 -1
  584. package/www/index.html +1 -1
  585. package/dist/cjs/index-5dc4a8de.js.map +0 -1
  586. package/dist/cjs/index-a83e999c.js.map +0 -1
  587. package/dist/cjs/index-e3835c94.js.map +0 -1
  588. package/dist/esm/index-41ee4016.js +0 -18
  589. package/dist/esm/index-497d9441.js.map +0 -1
  590. package/dist/esm/index-a7f69d42.js.map +0 -1
  591. package/dist/esm/index-ab5f1eaa.js.map +0 -1
  592. package/dist/web-components-library/p-3de034cf.js +0 -2
  593. package/dist/web-components-library/p-40e4e3af.js +0 -2
  594. package/dist/web-components-library/p-4b27ccf0.entry.js +0 -2
  595. package/dist/web-components-library/p-4d1a8ee8.entry.js +0 -2
  596. package/dist/web-components-library/p-4d1a8ee8.entry.js.map +0 -1
  597. package/dist/web-components-library/p-5214f770.entry.js +0 -2
  598. package/dist/web-components-library/p-550b4473.entry.js +0 -2
  599. package/dist/web-components-library/p-5e45636a.entry.js +0 -2
  600. package/dist/web-components-library/p-5e734fd3.entry.js +0 -2
  601. package/dist/web-components-library/p-6f5b7f16.js +0 -2
  602. package/dist/web-components-library/p-6f5b7f16.js.map +0 -1
  603. package/dist/web-components-library/p-737293b2.js +0 -2
  604. package/dist/web-components-library/p-79766609.entry.js +0 -2
  605. package/dist/web-components-library/p-7cba8558.entry.js +0 -2
  606. package/dist/web-components-library/p-7ce64686.entry.js.map +0 -1
  607. package/dist/web-components-library/p-82b845c3.entry.js.map +0 -1
  608. package/dist/web-components-library/p-82dc715b.js +0 -2
  609. package/dist/web-components-library/p-93d39e70.entry.js +0 -2
  610. package/dist/web-components-library/p-b6e14c6b.entry.js +0 -2
  611. package/dist/web-components-library/p-b9078348.js +0 -2
  612. package/dist/web-components-library/p-cc3c02fe.js +0 -3
  613. package/dist/web-components-library/p-cc3c02fe.js.map +0 -1
  614. package/dist/web-components-library/p-e2997191.entry.js +0 -2
  615. package/dist/web-components-library/p-ee290d4c.entry.js +0 -2
  616. package/dist/web-components-library/p-f978d22d.entry.js +0 -2
  617. package/dist/web-components-library/p-fdd176e2.entry.js +0 -2
  618. package/dist/web-components-library/p-feca4075.js +0 -2
  619. package/www/build/p-3de034cf.js +0 -2
  620. package/www/build/p-40e4e3af.js +0 -2
  621. package/www/build/p-4b27ccf0.entry.js +0 -2
  622. package/www/build/p-4d1a8ee8.entry.js +0 -2
  623. package/www/build/p-4d1a8ee8.entry.js.map +0 -1
  624. package/www/build/p-5214f770.entry.js +0 -2
  625. package/www/build/p-550b4473.entry.js +0 -2
  626. package/www/build/p-5e45636a.entry.js +0 -2
  627. package/www/build/p-5e734fd3.entry.js +0 -2
  628. package/www/build/p-6f5b7f16.js +0 -2
  629. package/www/build/p-6f5b7f16.js.map +0 -1
  630. package/www/build/p-737293b2.js +0 -2
  631. package/www/build/p-79766609.entry.js +0 -2
  632. package/www/build/p-7cba8558.entry.js +0 -2
  633. package/www/build/p-7ce64686.entry.js.map +0 -1
  634. package/www/build/p-82b845c3.entry.js.map +0 -1
  635. package/www/build/p-82dc715b.js +0 -2
  636. package/www/build/p-93d39e70.entry.js +0 -2
  637. package/www/build/p-9bd47256.js +0 -2
  638. package/www/build/p-b6e14c6b.entry.js +0 -2
  639. package/www/build/p-b9078348.js +0 -2
  640. package/www/build/p-cc3c02fe.js +0 -3
  641. package/www/build/p-cc3c02fe.js.map +0 -1
  642. package/www/build/p-e2997191.entry.js +0 -2
  643. package/www/build/p-ee290d4c.entry.js +0 -2
  644. package/www/build/p-f978d22d.entry.js +0 -2
  645. package/www/build/p-fdd176e2.entry.js +0 -2
  646. package/www/build/p-feca4075.js +0 -2
  647. /package/dist/web-components-library/{p-5e0acf57.entry.js.map → p-054484d4.entry.js.map} +0 -0
  648. /package/dist/web-components-library/{p-bd75bef4.entry.js.map → p-05e9ae1e.entry.js.map} +0 -0
  649. /package/dist/web-components-library/{p-6c5a8061.entry.js.map → p-12d62027.entry.js.map} +0 -0
  650. /package/dist/web-components-library/{p-726e1059.entry.js.map → p-18690383.entry.js.map} +0 -0
  651. /package/dist/web-components-library/{p-a36045c2.entry.js.map → p-19f8c3d2.entry.js.map} +0 -0
  652. /package/dist/web-components-library/{p-4b27ccf0.entry.js.map → p-1edbac5f.entry.js.map} +0 -0
  653. /package/dist/web-components-library/{p-9ddfcfd4.entry.js.map → p-21b85c7f.entry.js.map} +0 -0
  654. /package/dist/web-components-library/{p-f7180c65.entry.js.map → p-2672e36f.entry.js.map} +0 -0
  655. /package/dist/web-components-library/{p-4a2b4ad1.entry.js.map → p-28928bb6.entry.js.map} +0 -0
  656. /package/dist/web-components-library/{p-a0231723.entry.js.map → p-2a7e4988.entry.js.map} +0 -0
  657. /package/dist/web-components-library/{p-66d70fb4.js.map → p-2c184714.js.map} +0 -0
  658. /package/dist/web-components-library/{p-737293b2.js.map → p-304eeab0.js.map} +0 -0
  659. /package/dist/web-components-library/{p-09897132.entry.js.map → p-324ef970.entry.js.map} +0 -0
  660. /package/dist/web-components-library/{p-90b4d340.entry.js.map → p-33eea921.entry.js.map} +0 -0
  661. /package/dist/web-components-library/{p-7cba8558.entry.js.map → p-385bf4ca.entry.js.map} +0 -0
  662. /package/dist/web-components-library/{p-411d929f.entry.js.map → p-3b266de4.entry.js.map} +0 -0
  663. /package/dist/web-components-library/{p-2ed68ac5.entry.js.map → p-4552744b.entry.js.map} +0 -0
  664. /package/dist/web-components-library/{p-ebdfd7e5.entry.js.map → p-49e4ce84.entry.js.map} +0 -0
  665. /package/dist/web-components-library/{p-1efacf4c.entry.js.map → p-5a5481be.entry.js.map} +0 -0
  666. /package/dist/web-components-library/{p-65df3290.entry.js.map → p-609c11d6.entry.js.map} +0 -0
  667. /package/dist/web-components-library/{p-ee290d4c.entry.js.map → p-6319b5e2.entry.js.map} +0 -0
  668. /package/dist/web-components-library/{p-467d8a16.entry.js.map → p-63e970ee.entry.js.map} +0 -0
  669. /package/dist/web-components-library/{p-7693ae18.entry.js.map → p-6586441a.entry.js.map} +0 -0
  670. /package/dist/web-components-library/{p-5214f770.entry.js.map → p-68822fbc.entry.js.map} +0 -0
  671. /package/dist/web-components-library/{p-493c652a.entry.js.map → p-6a664748.entry.js.map} +0 -0
  672. /package/dist/web-components-library/{p-93d39e70.entry.js.map → p-6b2cd695.entry.js.map} +0 -0
  673. /package/dist/web-components-library/{p-5e734fd3.entry.js.map → p-74a65c6f.entry.js.map} +0 -0
  674. /package/dist/web-components-library/{p-dde9f76d.entry.js.map → p-77d8ad7e.entry.js.map} +0 -0
  675. /package/dist/web-components-library/{p-2190352b.js.map → p-78e52a02.js.map} +0 -0
  676. /package/dist/web-components-library/{p-feca4075.js.map → p-7d827c11.js.map} +0 -0
  677. /package/dist/web-components-library/{p-5bbb5599.entry.js.map → p-83350b5f.entry.js.map} +0 -0
  678. /package/dist/web-components-library/{p-8df46096.entry.js.map → p-8499a29d.entry.js.map} +0 -0
  679. /package/dist/web-components-library/{p-1501c221.entry.js.map → p-85f84e55.entry.js.map} +0 -0
  680. /package/dist/web-components-library/{p-376208ab.entry.js.map → p-88e756cd.entry.js.map} +0 -0
  681. /package/dist/web-components-library/{p-214bc293.entry.js.map → p-8b309268.entry.js.map} +0 -0
  682. /package/dist/web-components-library/{p-0c2fdbe5.entry.js.map → p-8c9f7cef.entry.js.map} +0 -0
  683. /package/dist/web-components-library/{p-f3272ec6.entry.js.map → p-91c04edc.entry.js.map} +0 -0
  684. /package/dist/web-components-library/{p-80359658.entry.js.map → p-97b0c3b3.entry.js.map} +0 -0
  685. /package/dist/web-components-library/{p-74e134e6.entry.js.map → p-99b791d1.entry.js.map} +0 -0
  686. /package/dist/web-components-library/{p-63337e8b.entry.js.map → p-a4ada10b.entry.js.map} +0 -0
  687. /package/dist/web-components-library/{p-550b4473.entry.js.map → p-a5781264.entry.js.map} +0 -0
  688. /package/dist/web-components-library/{p-14bf4619.entry.js.map → p-ad76b8ff.entry.js.map} +0 -0
  689. /package/dist/web-components-library/{p-2c81acaa.entry.js.map → p-ae96bc09.entry.js.map} +0 -0
  690. /package/dist/web-components-library/{p-09a9e2ca.entry.js.map → p-af856537.entry.js.map} +0 -0
  691. /package/dist/web-components-library/{p-7d5983f6.entry.js.map → p-b84fa3b6.entry.js.map} +0 -0
  692. /package/dist/web-components-library/{p-ff4aa84a.entry.js.map → p-be4878f2.entry.js.map} +0 -0
  693. /package/dist/web-components-library/{p-79766609.entry.js.map → p-bf2a057d.entry.js.map} +0 -0
  694. /package/dist/web-components-library/{p-464e5886.entry.js.map → p-c6b269ce.entry.js.map} +0 -0
  695. /package/dist/web-components-library/{p-1064cb1a.entry.js.map → p-c90249e5.entry.js.map} +0 -0
  696. /package/dist/web-components-library/{p-b9078348.js.map → p-d9e1d8c7.js.map} +0 -0
  697. /package/dist/web-components-library/{p-60dfcfaa.entry.js.map → p-df05727f.entry.js.map} +0 -0
  698. /package/dist/web-components-library/{p-f978d22d.entry.js.map → p-e0323da3.entry.js.map} +0 -0
  699. /package/dist/web-components-library/{p-810433b1.entry.js.map → p-e1852de3.entry.js.map} +0 -0
  700. /package/dist/web-components-library/{p-2010d544.entry.js.map → p-e366782c.entry.js.map} +0 -0
  701. /package/dist/web-components-library/{p-f323cc0b.entry.js.map → p-e5dc0719.entry.js.map} +0 -0
  702. /package/dist/web-components-library/{p-ea9aa3bb.entry.js.map → p-f21bc3a9.entry.js.map} +0 -0
  703. /package/dist/web-components-library/{p-a11e1d48.entry.js.map → p-f74f9f3c.entry.js.map} +0 -0
  704. /package/dist/web-components-library/{p-fdd176e2.entry.js.map → p-f8d45aa4.entry.js.map} +0 -0
  705. /package/dist/web-components-library/{p-c3809d39.entry.js.map → p-fe87b081.entry.js.map} +0 -0
  706. /package/www/build/{p-5e0acf57.entry.js.map → p-054484d4.entry.js.map} +0 -0
  707. /package/www/build/{p-bd75bef4.entry.js.map → p-05e9ae1e.entry.js.map} +0 -0
  708. /package/www/build/{p-6c5a8061.entry.js.map → p-12d62027.entry.js.map} +0 -0
  709. /package/www/build/{p-726e1059.entry.js.map → p-18690383.entry.js.map} +0 -0
  710. /package/www/build/{p-a36045c2.entry.js.map → p-19f8c3d2.entry.js.map} +0 -0
  711. /package/www/build/{p-4b27ccf0.entry.js.map → p-1edbac5f.entry.js.map} +0 -0
  712. /package/www/build/{p-9ddfcfd4.entry.js.map → p-21b85c7f.entry.js.map} +0 -0
  713. /package/www/build/{p-f7180c65.entry.js.map → p-2672e36f.entry.js.map} +0 -0
  714. /package/www/build/{p-4a2b4ad1.entry.js.map → p-28928bb6.entry.js.map} +0 -0
  715. /package/www/build/{p-a0231723.entry.js.map → p-2a7e4988.entry.js.map} +0 -0
  716. /package/www/build/{p-66d70fb4.js.map → p-2c184714.js.map} +0 -0
  717. /package/www/build/{p-737293b2.js.map → p-304eeab0.js.map} +0 -0
  718. /package/www/build/{p-09897132.entry.js.map → p-324ef970.entry.js.map} +0 -0
  719. /package/www/build/{p-90b4d340.entry.js.map → p-33eea921.entry.js.map} +0 -0
  720. /package/www/build/{p-7cba8558.entry.js.map → p-385bf4ca.entry.js.map} +0 -0
  721. /package/www/build/{p-411d929f.entry.js.map → p-3b266de4.entry.js.map} +0 -0
  722. /package/www/build/{p-2ed68ac5.entry.js.map → p-4552744b.entry.js.map} +0 -0
  723. /package/www/build/{p-ebdfd7e5.entry.js.map → p-49e4ce84.entry.js.map} +0 -0
  724. /package/www/build/{p-1efacf4c.entry.js.map → p-5a5481be.entry.js.map} +0 -0
  725. /package/www/build/{p-65df3290.entry.js.map → p-609c11d6.entry.js.map} +0 -0
  726. /package/www/build/{p-ee290d4c.entry.js.map → p-6319b5e2.entry.js.map} +0 -0
  727. /package/www/build/{p-467d8a16.entry.js.map → p-63e970ee.entry.js.map} +0 -0
  728. /package/www/build/{p-7693ae18.entry.js.map → p-6586441a.entry.js.map} +0 -0
  729. /package/www/build/{p-5214f770.entry.js.map → p-68822fbc.entry.js.map} +0 -0
  730. /package/www/build/{p-493c652a.entry.js.map → p-6a664748.entry.js.map} +0 -0
  731. /package/www/build/{p-93d39e70.entry.js.map → p-6b2cd695.entry.js.map} +0 -0
  732. /package/www/build/{p-5e734fd3.entry.js.map → p-74a65c6f.entry.js.map} +0 -0
  733. /package/www/build/{p-dde9f76d.entry.js.map → p-77d8ad7e.entry.js.map} +0 -0
  734. /package/www/build/{p-2190352b.js.map → p-78e52a02.js.map} +0 -0
  735. /package/www/build/{p-feca4075.js.map → p-7d827c11.js.map} +0 -0
  736. /package/www/build/{p-5bbb5599.entry.js.map → p-83350b5f.entry.js.map} +0 -0
  737. /package/www/build/{p-8df46096.entry.js.map → p-8499a29d.entry.js.map} +0 -0
  738. /package/www/build/{p-1501c221.entry.js.map → p-85f84e55.entry.js.map} +0 -0
  739. /package/www/build/{p-376208ab.entry.js.map → p-88e756cd.entry.js.map} +0 -0
  740. /package/www/build/{p-214bc293.entry.js.map → p-8b309268.entry.js.map} +0 -0
  741. /package/www/build/{p-0c2fdbe5.entry.js.map → p-8c9f7cef.entry.js.map} +0 -0
  742. /package/www/build/{p-f3272ec6.entry.js.map → p-91c04edc.entry.js.map} +0 -0
  743. /package/www/build/{p-80359658.entry.js.map → p-97b0c3b3.entry.js.map} +0 -0
  744. /package/www/build/{p-74e134e6.entry.js.map → p-99b791d1.entry.js.map} +0 -0
  745. /package/www/build/{p-63337e8b.entry.js.map → p-a4ada10b.entry.js.map} +0 -0
  746. /package/www/build/{p-550b4473.entry.js.map → p-a5781264.entry.js.map} +0 -0
  747. /package/www/build/{p-14bf4619.entry.js.map → p-ad76b8ff.entry.js.map} +0 -0
  748. /package/www/build/{p-2c81acaa.entry.js.map → p-ae96bc09.entry.js.map} +0 -0
  749. /package/www/build/{p-09a9e2ca.entry.js.map → p-af856537.entry.js.map} +0 -0
  750. /package/www/build/{p-7d5983f6.entry.js.map → p-b84fa3b6.entry.js.map} +0 -0
  751. /package/www/build/{p-ff4aa84a.entry.js.map → p-be4878f2.entry.js.map} +0 -0
  752. /package/www/build/{p-79766609.entry.js.map → p-bf2a057d.entry.js.map} +0 -0
  753. /package/www/build/{p-464e5886.entry.js.map → p-c6b269ce.entry.js.map} +0 -0
  754. /package/www/build/{p-1064cb1a.entry.js.map → p-c90249e5.entry.js.map} +0 -0
  755. /package/www/build/{p-b9078348.js.map → p-d9e1d8c7.js.map} +0 -0
  756. /package/www/build/{p-60dfcfaa.entry.js.map → p-df05727f.entry.js.map} +0 -0
  757. /package/www/build/{p-f978d22d.entry.js.map → p-e0323da3.entry.js.map} +0 -0
  758. /package/www/build/{p-810433b1.entry.js.map → p-e1852de3.entry.js.map} +0 -0
  759. /package/www/build/{p-2010d544.entry.js.map → p-e366782c.entry.js.map} +0 -0
  760. /package/www/build/{p-f323cc0b.entry.js.map → p-e5dc0719.entry.js.map} +0 -0
  761. /package/www/build/{p-ea9aa3bb.entry.js.map → p-f21bc3a9.entry.js.map} +0 -0
  762. /package/www/build/{p-a11e1d48.entry.js.map → p-f74f9f3c.entry.js.map} +0 -0
  763. /package/www/build/{p-fdd176e2.entry.js.map → p-f8d45aa4.entry.js.map} +0 -0
  764. /package/www/build/{p-c3809d39.entry.js.map → p-fe87b081.entry.js.map} +0 -0
@@ -1,4 +1,5 @@
1
1
  import { Host, h } from "@stencil/core";
2
+ import { KeyboardCode } from "../../beans";
2
3
  /**
3
4
  * A component to create submenus inside the ZMenu.
4
5
  * @slot - Label of the menu section.
@@ -6,10 +7,90 @@ import { Host, h } from "@stencil/core";
6
7
  */
7
8
  export class ZMenuSection {
8
9
  constructor() {
10
+ this.currentIndex = -1;
11
+ this.currentCanvasOpenStatus = false;
9
12
  this.active = undefined;
10
13
  this.open = undefined;
11
14
  this.hasContent = undefined;
12
15
  }
16
+ canvasOpenStatusChanged(e) {
17
+ this.currentCanvasOpenStatus = e.detail;
18
+ }
19
+ handleKeyDown(e) {
20
+ if (e.code === KeyboardCode.ENTER) {
21
+ return;
22
+ }
23
+ if (this.open && !this.currentCanvasOpenStatus) {
24
+ this.handleNavigationSideArrow(e);
25
+ }
26
+ this.handleArrowsNav(e);
27
+ }
28
+ handleNavigationSideArrow(e) {
29
+ if (e.code !== KeyboardCode.ARROW_RIGHT && e.code !== KeyboardCode.ARROW_LEFT) {
30
+ return;
31
+ }
32
+ if (e.code === KeyboardCode.ARROW_RIGHT) {
33
+ const nextElement = this.hostElement.parentElement.nextElementSibling;
34
+ if (nextElement) {
35
+ const menuButton = nextElement.shadowRoot.querySelector(".menu-label");
36
+ console.log(this.hostElement.parentElement);
37
+ menuButton.focus();
38
+ }
39
+ this.open = false;
40
+ nextElement.setAttribute("open", "true");
41
+ }
42
+ else if (e.code === KeyboardCode.ARROW_LEFT) {
43
+ const prevElement = this.hostElement.parentElement.previousElementSibling;
44
+ if (prevElement) {
45
+ const menuButton = prevElement.shadowRoot.querySelector(".menu-label");
46
+ menuButton.focus();
47
+ }
48
+ prevElement.setAttribute("open", "true");
49
+ this.open = false;
50
+ }
51
+ }
52
+ handleArrowsNav(e) {
53
+ const menuItems = Array.from(this.hostElement.querySelectorAll('[slot="section"]'));
54
+ if (this.open) {
55
+ e.preventDefault();
56
+ e.stopPropagation();
57
+ if (e.code === KeyboardCode.ARROW_DOWN || e.code === KeyboardCode.ARROW_UP) {
58
+ let nextFocusableItem;
59
+ // INFO: reset focus on all menu items
60
+ menuItems.forEach((item) => item.setAttribute("tabindex", "-1"));
61
+ if (e.code === KeyboardCode.ARROW_DOWN) {
62
+ nextFocusableItem = this.getNextItem(menuItems, 1);
63
+ }
64
+ else if (e.code === KeyboardCode.ARROW_UP) {
65
+ nextFocusableItem = this.getNextItem(menuItems, -1);
66
+ }
67
+ if (nextFocusableItem) {
68
+ nextFocusableItem.setAttribute("tabindex", "0");
69
+ nextFocusableItem.focus();
70
+ }
71
+ }
72
+ else if (e.code === KeyboardCode.ESC) {
73
+ this.focusToParentAndCloseMenu();
74
+ }
75
+ else if (e.shiftKey && e.code === KeyboardCode.TAB) {
76
+ this.focusToParentAndCloseMenu();
77
+ }
78
+ }
79
+ }
80
+ getNextItem(menuItems, direction) {
81
+ if (this.currentIndex === -1) {
82
+ this.currentIndex = direction === 1 ? 0 : menuItems.length - 1;
83
+ return menuItems[this.currentIndex];
84
+ }
85
+ this.currentIndex = (this.currentIndex + direction + menuItems.length) % menuItems.length;
86
+ return menuItems[this.currentIndex];
87
+ }
88
+ focusToParentAndCloseMenu() {
89
+ const menuButton = this.hostElement.shadowRoot.querySelector("button");
90
+ menuButton.focus();
91
+ this.currentIndex = -1;
92
+ this.open = false;
93
+ }
13
94
  toggle() {
14
95
  if (!this.hasContent) {
15
96
  return;
@@ -29,7 +110,7 @@ export class ZMenuSection {
29
110
  * Check if some content slot is set.
30
111
  */
31
112
  checkContent() {
32
- this.hasContent = this.hostElement.querySelectorAll('[slot="item"]').length > 0;
113
+ this.hasContent = this.hostElement.querySelectorAll('[slot="section"]').length > 0;
33
114
  }
34
115
  /**
35
116
  * Sets slotted item text as `data-text` attribute value, to let CSS use it through `attr()`.
@@ -39,11 +120,18 @@ export class ZMenuSection {
39
120
  const labelElement = ev.target.assignedElements()[0];
40
121
  labelElement.dataset.text = (labelElement === null || labelElement === void 0 ? void 0 : labelElement.innerText) || null;
41
122
  }
123
+ focusFirstSectionItemOnKeyUp() {
124
+ const firstElement = this.hostElement.querySelectorAll('[slot="section"]')[0];
125
+ if (firstElement) {
126
+ firstElement.focus();
127
+ this.currentIndex = 0;
128
+ }
129
+ }
42
130
  componentWillLoad() {
43
131
  this.checkContent();
44
132
  }
45
133
  render() {
46
- return (h(Host, { key: '7261f7c68d7e097fe0a70e6f8c0b513958605dbd', role: "menu", open: this.open }, h("button", { key: '74fd64a789a7f9ea93ec118dc2978809e70c5312', class: "label", "aria-pressed": this.open ? "true" : "false", onClick: this.toggle.bind(this) }, h("slot", { key: 'b8e32ae6fc27571d5318eb71ceddea6d87ca3ffa', onSlotchange: this.onLabelSlotChange.bind(this) }), this.hasContent && h("z-icon", { key: '5500c12ff4f374564c03e887a69ceba287a8d577', name: this.open ? "chevron-up" : "chevron-down" })), this.open && (h("div", { key: 'ff66588a6fa8fe8968ec9d7e12d6fac3bb1bb45f', class: "items" }, h("slot", { key: 'de19fdba5a89f0a048b6f8e824feacaa80bbe3fc', name: "item", onSlotchange: this.checkContent.bind(this) })))));
134
+ return (h(Host, { key: '1370ec8c9379a204ed8bfb387ef53f6ad976ce0f', role: "menu", open: this.open }, h("button", { key: '4a474f4f47b9f72f3621a4c1f043f287ebf98d66', class: "label", "aria-pressed": this.open ? "true" : "false", onClick: this.toggle.bind(this), onKeyUp: this.focusFirstSectionItemOnKeyUp.bind(this) }, h("slot", { key: '1332d96212421fd936b1ee1e295c856219bfb1cc', onSlotchange: this.onLabelSlotChange.bind(this) }), this.hasContent && h("z-icon", { key: '04b94f8f22bd56d16f7cdb3f394024c5726435e5', name: this.open ? "chevron-up" : "chevron-down" })), this.open && (h("div", { key: '01353c9f9b57cce04361849e79c3264f5f106472', class: "items" }, h("slot", { key: '29379c69dff6189d4226246eb859dad6c67ca0ec', name: "section", onSlotchange: this.checkContent.bind(this) })))));
47
135
  }
48
136
  static get is() { return "z-menu-section"; }
49
137
  static get encapsulation() { return "shadow"; }
@@ -120,6 +208,18 @@ export class ZMenuSection {
120
208
  static get elementRef() { return "hostElement"; }
121
209
  static get listeners() {
122
210
  return [{
211
+ "name": "canvasOpenStatusChanged",
212
+ "method": "canvasOpenStatusChanged",
213
+ "target": "document",
214
+ "capture": false,
215
+ "passive": false
216
+ }, {
217
+ "name": "keydown",
218
+ "method": "handleKeyDown",
219
+ "target": undefined,
220
+ "capture": false,
221
+ "passive": false
222
+ }, {
123
223
  "name": "click",
124
224
  "method": "handleClick",
125
225
  "target": "document",
@@ -1 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;IAED,iBAAiB;QACf,IAAI,CAAC,YAAY,EAAE,CAAC;IACtB,CAAC;IAED,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDACH,IAAI,EAAC,MAAM,EACX,IAAI,EAAE,IAAI,CAAC,IAAI;YAEf,+DACE,KAAK,EAAC,OAAO,kBACC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,EAC1C,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC;gBAE/B,6DAAM,YAAY,EAAE,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,GAAS;gBAC7D,IAAI,CAAC,UAAU,IAAI,+DAAQ,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,cAAc,GAAI,CACxE;YACR,IAAI,CAAC,IAAI,IAAI,CACZ,4DAAK,KAAK,EAAC,OAAO;gBAChB,6DACE,IAAI,EAAC,MAAM,EACX,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,GACpC,CACJ,CACP,CACI,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {Component, Element, Event, EventEmitter, Host, Listen, Prop, State, h} from \"@stencil/core\";\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() hostElement: HTMLZMenuSectionElement;\n\n /** Active state */\n @Prop({reflect: true})\n active?: boolean;\n\n @State()\n open: boolean;\n\n @State()\n hasContent: boolean;\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 toggle(): void {\n if (!this.hasContent) {\n return;\n }\n\n this.open = !this.open;\n this.open ? this.opened.emit() : this.closed.emit();\n }\n\n /** Close the list when a click is performed outside of this Element. */\n @Listen(\"click\", {target: \"document\"})\n handleClick(ev: MouseEvent): void {\n if (!this.open || this.hostElement.contains(ev.target as Node)) {\n return;\n }\n\n this.open = false;\n this.closed.emit();\n }\n\n /**\n * Check if some content slot is set.\n */\n private checkContent(): void {\n this.hasContent = this.hostElement.querySelectorAll('[slot=\"item\"]').length > 0;\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?.innerText || null;\n }\n\n componentWillLoad(): void {\n this.checkContent();\n }\n\n render(): HTMLZMenuSectionElement {\n return (\n <Host\n role=\"menu\"\n open={this.open}\n >\n <button\n class=\"label\"\n aria-pressed={this.open ? \"true\" : \"false\"}\n onClick={this.toggle.bind(this)}\n >\n <slot onSlotchange={this.onLabelSlotChange.bind(this)}></slot>\n {this.hasContent && <z-icon name={this.open ? \"chevron-up\" : \"chevron-down\"} />}\n </button>\n {this.open && (\n <div class=\"items\">\n <slot\n name=\"item\"\n onSlotchange={this.checkContent.bind(this)}\n ></slot>\n </div>\n )}\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/z-menu-section/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAC,MAAM,eAAe,CAAC;AACpG,OAAO,EAAC,YAAY,EAAC,MAAM,aAAa,CAAC;AAEzC;;;;GAIG;AAMH,MAAM,OAAO,YAAY;;QAqBf,iBA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AAC,MAAM,EACX,IAAI,EAAE,IAAI,CAAC,IAAI;YAEf,+DACE,KAAK,EAAC,OAAO,kBACC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,EAC1C,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EAC/B,OAAO,EAAE,IAAI,CAAC,4BAA4B,CAAC,IAAI,CAAC,IAAI,CAAC;gBAErD,6DAAM,YAAY,EAAE,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,GAAS;gBAC7D,IAAI,CAAC,UAAU,IAAI,+DAAQ,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,cAAc,GAAI,CACxE;YACR,IAAI,CAAC,IAAI,IAAI,CACZ,4DAAK,KAAK,EAAC,OAAO;gBAChB,6DACE,IAAI,EAAC,SAAS,EACd,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,GACpC,CACJ,CACP,CACI,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {Component, Element, Event, EventEmitter, Host, Listen, Prop, State, 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() hostElement: HTMLZMenuSectionElement;\n\n /** Active state */\n @Prop({reflect: true})\n active?: boolean;\n\n @State()\n open: boolean;\n\n @State()\n hasContent: boolean;\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 currentIndex = -1;\n\n private currentCanvasOpenStatus = false;\n\n @Listen(\"canvasOpenStatusChanged\", {target: \"document\"})\n canvasOpenStatusChanged(e: CustomEvent): void {\n this.currentCanvasOpenStatus = e.detail;\n }\n\n @Listen(\"keydown\")\n handleKeyDown(e: KeyboardEvent): void {\n if (e.code === KeyboardCode.ENTER) {\n return;\n }\n\n if (this.open && !this.currentCanvasOpenStatus) {\n this.handleNavigationSideArrow(e);\n }\n\n this.handleArrowsNav(e);\n }\n\n private handleNavigationSideArrow(e: KeyboardEvent): void {\n if (e.code !== KeyboardCode.ARROW_RIGHT && e.code !== KeyboardCode.ARROW_LEFT) {\n return;\n }\n if (e.code === KeyboardCode.ARROW_RIGHT) {\n const nextElement = this.hostElement.parentElement.nextElementSibling;\n if (nextElement) {\n const menuButton = nextElement.shadowRoot.querySelector(\".menu-label\") as HTMLElement;\n console.log(this.hostElement.parentElement);\n menuButton.focus();\n }\n this.open = false;\n nextElement.setAttribute(\"open\", \"true\");\n } else if (e.code === KeyboardCode.ARROW_LEFT) {\n const prevElement = this.hostElement.parentElement.previousElementSibling;\n if (prevElement) {\n const menuButton = prevElement.shadowRoot.querySelector(\".menu-label\") as HTMLElement;\n menuButton.focus();\n }\n prevElement.setAttribute(\"open\", \"true\");\n this.open = false;\n }\n }\n\n private handleArrowsNav(e: KeyboardEvent): void {\n const menuItems = Array.from(this.hostElement.querySelectorAll('[slot=\"section\"]')) as HTMLElement[];\n if (this.open) {\n e.preventDefault();\n e.stopPropagation();\n if (e.code === KeyboardCode.ARROW_DOWN || e.code === KeyboardCode.ARROW_UP) {\n let nextFocusableItem: HTMLElement;\n // INFO: reset focus on all menu items\n menuItems.forEach((item: HTMLElement) => item.setAttribute(\"tabindex\", \"-1\"));\n\n if (e.code === KeyboardCode.ARROW_DOWN) {\n nextFocusableItem = this.getNextItem(menuItems, 1);\n } else if (e.code === KeyboardCode.ARROW_UP) {\n nextFocusableItem = this.getNextItem(menuItems, -1);\n }\n\n if (nextFocusableItem) {\n nextFocusableItem.setAttribute(\"tabindex\", \"0\");\n nextFocusableItem.focus();\n }\n } else if (e.code === KeyboardCode.ESC) {\n this.focusToParentAndCloseMenu();\n } else if (e.shiftKey && e.code === KeyboardCode.TAB) {\n this.focusToParentAndCloseMenu();\n }\n }\n }\n\n private getNextItem(menuItems: HTMLElement[], direction: number): HTMLElement {\n if (this.currentIndex === -1) {\n this.currentIndex = direction === 1 ? 0 : menuItems.length - 1;\n\n return menuItems[this.currentIndex];\n }\n\n this.currentIndex = (this.currentIndex + direction + menuItems.length) % menuItems.length;\n\n return menuItems[this.currentIndex];\n }\n\n private focusToParentAndCloseMenu(): void {\n const menuButton = this.hostElement.shadowRoot.querySelector(\"button\") as HTMLElement;\n menuButton.focus();\n this.currentIndex = -1;\n this.open = false;\n }\n\n private toggle(): void {\n if (!this.hasContent) {\n return;\n }\n\n this.open = !this.open;\n this.open ? this.opened.emit() : this.closed.emit();\n }\n\n /** Close the list when a click is performed outside of this Element. */\n @Listen(\"click\", {target: \"document\"})\n handleClick(ev: MouseEvent): void {\n if (!this.open || this.hostElement.contains(ev.target as Node)) {\n return;\n }\n\n this.open = false;\n this.closed.emit();\n }\n\n /**\n * Check if some content slot is set.\n */\n private checkContent(): void {\n this.hasContent = this.hostElement.querySelectorAll('[slot=\"section\"]').length > 0;\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?.innerText || null;\n }\n\n private focusFirstSectionItemOnKeyUp(): void {\n const firstElement = this.hostElement.querySelectorAll('[slot=\"section\"]')[0] as HTMLElement;\n if (firstElement) {\n firstElement.focus();\n this.currentIndex = 0;\n }\n }\n\n componentWillLoad(): void {\n this.checkContent();\n }\n\n render(): HTMLZMenuSectionElement {\n return (\n <Host\n role=\"menu\"\n open={this.open}\n >\n <button\n class=\"label\"\n aria-pressed={this.open ? \"true\" : \"false\"}\n onClick={this.toggle.bind(this)}\n onKeyUp={this.focusFirstSectionItemOnKeyUp.bind(this)}\n >\n <slot onSlotchange={this.onLabelSlotChange.bind(this)}></slot>\n {this.hasContent && <z-icon name={this.open ? \"chevron-up\" : \"chevron-down\"} />}\n </button>\n {this.open && (\n <div class=\"items\">\n <slot\n name=\"section\"\n onSlotchange={this.checkContent.bind(this)}\n ></slot>\n </div>\n )}\n </Host>\n );\n }\n}\n"]}
@@ -6,9 +6,9 @@ describe("Suite test ZMenuSection", () => {
6
6
  components: [ZMenuSection],
7
7
  html: `<z-menu-section>
8
8
  <h3>Menu section label</h3>
9
- <a href="#" slot="item">Item 1</a>
10
- <a href="#" slot="item">Item 2</a>
11
- <a href="#" slot="item">Item 3</a>
9
+ <a href="#" slot="section">Item 1</a>
10
+ <a href="#" slot="section">Item 2</a>
11
+ <a href="#" slot="section">Item 3</a>
12
12
  </z-menu-section>`,
13
13
  });
14
14
  expect(page.root).toEqualHtml(`
@@ -20,16 +20,16 @@ describe("Suite test ZMenuSection", () => {
20
20
  </button>
21
21
  </mock:shadow-root>
22
22
  <h3>Menu section label</h3>
23
- <a href="#" slot="item">Item 1</a>
24
- <a href="#" slot="item">Item 2</a>
25
- <a href="#" slot="item">Item 3</a>
23
+ <a href="#" slot="section">Item 1</a>
24
+ <a href="#" slot="section">Item 2</a>
25
+ <a href="#" slot="section">Item 3</a>
26
26
  </z-menu-section>`);
27
27
  });
28
28
  it("Test ZMenuSection toggle events", async () => {
29
29
  const page = await newSpecPage({
30
30
  components: [ZMenuSection],
31
31
  html: `<z-menu-section>
32
- <div slot="item">item</div>
32
+ <div slot="section">item</div>
33
33
  </z-menu-section>`,
34
34
  });
35
35
  const menu = page.rootInstance;
@@ -1 +1 @@
1
- {"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../../../../src/components/z-menu-section/index.spec.ts"],"names":[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AC;IAC5C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import {newSpecPage} from \"@stencil/core/testing\";\n\nimport {ZMenuSection} from \"./index\";\n\ndescribe(\"Suite test ZMenuSection\", () => {\n it(\"Test render ZMenu with items\", async () => {\n const page = await newSpecPage({\n components: [ZMenuSection],\n html: `<z-menu-section>\n <h3>Menu section label</h3>\n <a href=\"#\" slot=\"item\">Item 1</a>\n <a href=\"#\" slot=\"item\">Item 2</a>\n <a href=\"#\" slot=\"item\">Item 3</a>\n </z-menu-section>`,\n });\n\n expect(page.root).toEqualHtml(`\n <z-menu-section role=\"menu\">\n <mock:shadow-root>\n <button aria-pressed=\"false\" class=\"label\">\n <slot></slot>\n <z-icon name=\"chevron-down\"></z-icon>\n </button>\n </mock:shadow-root>\n <h3>Menu section label</h3>\n <a href=\"#\" slot=\"item\">Item 1</a>\n <a href=\"#\" slot=\"item\">Item 2</a>\n <a href=\"#\" slot=\"item\">Item 3</a>\n </z-menu-section>`);\n });\n\n it(\"Test ZMenuSection toggle events\", async () => {\n const page = await newSpecPage({\n components: [ZMenuSection],\n html: `<z-menu-section>\n <div slot=\"item\">item</div>\n </z-menu-section>`,\n });\n const menu = page.rootInstance;\n\n const openedCallback = jest.fn();\n page.doc.addEventListener(\"opened\", openedCallback);\n await page.waitForChanges();\n // call `toggle` to open the menu\n menu.toggle();\n expect(openedCallback).toHaveBeenCalled();\n\n const closedCallback = jest.fn();\n page.doc.addEventListener(\"closed\", closedCallback);\n await page.waitForChanges();\n // the menu is already open, this call will close it\n menu.toggle();\n expect(closedCallback).toHaveBeenCalled();\n });\n});\n"]}
1
+ {"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../../../../src/components/z-menu-section/index.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,uBAAuB,CAAC;AAElD,OAAO,EAAC,YAAY,EAAC,MAAM,SAAS,CAAC;AAErC,QAAQ,CAAC,yBAAyB,EAAE,G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\", () => {\n it(\"Test render ZMenu with items\", async () => {\n const page = await newSpecPage({\n components: [ZMenuSection],\n html: `<z-menu-section>\n <h3>Menu section label</h3>\n <a href=\"#\" slot=\"section\">Item 1</a>\n <a href=\"#\" slot=\"section\">Item 2</a>\n <a href=\"#\" slot=\"section\">Item 3</a>\n </z-menu-section>`,\n });\n\n expect(page.root).toEqualHtml(`\n <z-menu-section role=\"menu\">\n <mock:shadow-root>\n <button aria-pressed=\"false\" class=\"label\">\n <slot></slot>\n <z-icon name=\"chevron-down\"></z-icon>\n </button>\n </mock:shadow-root>\n <h3>Menu section label</h3>\n <a href=\"#\" slot=\"section\">Item 1</a>\n <a href=\"#\" slot=\"section\">Item 2</a>\n <a href=\"#\" slot=\"section\">Item 3</a>\n </z-menu-section>`);\n });\n\n it(\"Test ZMenuSection toggle events\", async () => {\n const page = await newSpecPage({\n components: [ZMenuSection],\n html: `<z-menu-section>\n <div slot=\"section\">item</div>\n </z-menu-section>`,\n });\n const menu = page.rootInstance;\n\n const openedCallback = jest.fn();\n page.doc.addEventListener(\"opened\", openedCallback);\n await page.waitForChanges();\n // call `toggle` to open the menu\n menu.toggle();\n expect(openedCallback).toHaveBeenCalled();\n\n const closedCallback = jest.fn();\n page.doc.addEventListener(\"closed\", closedCallback);\n await page.waitForChanges();\n // the menu is already open, this call will close it\n menu.toggle();\n expect(closedCallback).toHaveBeenCalled();\n });\n});\n"]}
@@ -14,17 +14,17 @@ export const WithItems = {
14
14
  <h3>Label</h3>
15
15
  <a
16
16
  href=""
17
- slot="item"
17
+ slot="section"
18
18
  >Item 1</a
19
19
  >
20
20
  <a
21
21
  href=""
22
- slot="item"
22
+ slot="section"
23
23
  >Item 2</a
24
24
  >
25
25
  <a
26
26
  href=""
27
- slot="item"
27
+ slot="seection"
28
28
  active
29
29
  >Item 3 - active</a
30
30
  >
@@ -1 +1 @@
1
- {"version":3,"file":"index.stories.js","sourceRoot":"","sources":["../../../../src/components/z-menu-section/index.stories.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,IAAI,EAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,SAAS,CAAC;AAEjB,MAAM,SAAS,GAAG;IAChB,KAAK,EAAE,oBAAoB;IAC3B,SAAS,EAAE,gBAAgB;IAC3B,IAAI,EAAE;QACJ,MAAM,EAAE,KAAK;KACd;CAC2B,CAAC;AAE/B,eAAe,SAAS,CAAC;AAIzB,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAA;8BACM,IAAI,CAAC,MAAM;;;;;;;;;;;;;;;;;;;GAmBtC;CACc,CAAC;AAElB,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAA;8BACM,IAAI,CAAC,MAAM;;;GAGtC;CACc,CAAC","sourcesContent":["import {Meta, StoryObj} from \"@storybook/web-components\";\nimport {html} from \"lit\";\nimport {type ZMenuSection} from \".\";\nimport \"./index\";\n\nconst StoryMeta = {\n title: \"ZMenu/ZMenuSection\",\n component: \"z-menu-section\",\n args: {\n active: false,\n },\n} satisfies Meta<ZMenuSection>;\n\nexport default StoryMeta;\n\ntype Story = StoryObj<ZMenuSection>;\n\nexport const WithItems = {\n render: (args) => html`\n <z-menu-section .active=${args.active}>\n <h3>Label</h3>\n <a\n href=\"\"\n slot=\"item\"\n >Item 1</a\n >\n <a\n href=\"\"\n slot=\"item\"\n >Item 2</a\n >\n <a\n href=\"\"\n slot=\"item\"\n active\n >Item 3 - active</a\n >\n </z-menu-section>\n `,\n} satisfies Story;\n\nexport const WithoutItems = {\n render: (args) => html`\n <z-menu-section .active=${args.active}>\n <h3>Label</h3>\n </z-menu-section>\n `,\n} satisfies Story;\n"]}
1
+ {"version":3,"file":"index.stories.js","sourceRoot":"","sources":["../../../../src/components/z-menu-section/index.stories.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,IAAI,EAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,SAAS,CAAC;AAEjB,MAAM,SAAS,GAAG;IAChB,KAAK,EAAE,oBAAoB;IAC3B,SAAS,EAAE,gBAAgB;IAC3B,IAAI,EAAE;QACJ,MAAM,EAAE,KAAK;KACd;CAC2B,CAAC;AAE/B,eAAe,SAAS,CAAC;AAIzB,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAA;8BACM,IAAI,CAAC,MAAM;;;;;;;;;;;;;;;;;;;GAmBtC;CACc,CAAC;AAElB,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAA;8BACM,IAAI,CAAC,MAAM;;;GAGtC;CACc,CAAC","sourcesContent":["import {Meta, StoryObj} from \"@storybook/web-components\";\nimport {html} from \"lit\";\nimport {type ZMenuSection} from \".\";\nimport \"./index\";\n\nconst StoryMeta = {\n title: \"ZMenu/ZMenuSection\",\n component: \"z-menu-section\",\n args: {\n active: false,\n },\n} satisfies Meta<ZMenuSection>;\n\nexport default StoryMeta;\n\ntype Story = StoryObj<ZMenuSection>;\n\nexport const WithItems = {\n render: (args) => html`\n <z-menu-section .active=${args.active}>\n <h3>Label</h3>\n <a\n href=\"\"\n slot=\"section\"\n >Item 1</a\n >\n <a\n href=\"\"\n slot=\"section\"\n >Item 2</a\n >\n <a\n href=\"\"\n slot=\"seection\"\n active\n >Item 3 - active</a\n >\n </z-menu-section>\n `,\n} satisfies Story;\n\nexport const WithoutItems = {\n render: (args) => html`\n <z-menu-section .active=${args.active}>\n <h3>Label</h3>\n </z-menu-section>\n `,\n} satisfies Story;\n"]}
@@ -101,7 +101,7 @@ when placed below the real text using `flex-direction: column`. */
101
101
  padding-bottom: calc(var(--space-unit) * 1.5);
102
102
  }
103
103
 
104
- .items > ::slotted([slot="item"]) {
104
+ .items > ::slotted([slot="section"]) {
105
105
  display: inline-flex;
106
106
  padding: calc(var(--space-unit) / 2);
107
107
  margin: 0;
@@ -110,14 +110,14 @@ when placed below the real text using `flex-direction: column`. */
110
110
  outline: none;
111
111
  }
112
112
 
113
- .items > ::slotted([slot="item"]:focus:focus-visible) {
113
+ .items > ::slotted([slot="section"]:focus:focus-visible) {
114
114
  box-shadow: var(--shadow-focus-primary);
115
115
  color: var(--color-secondary01);
116
116
  }
117
117
 
118
- .items > ::slotted([slot="item"]:hover),
119
- .items > ::slotted([slot="item"]:focus:focus-visible),
120
- .items > ::slotted([slot="item"][active]) {
118
+ .items > ::slotted([slot="section"]:hover),
119
+ .items > ::slotted([slot="section"]:focus:focus-visible),
120
+ .items > ::slotted([slot="section"][active]) {
121
121
  color: var(--color-secondary01);
122
122
  font-weight: var(--font-bd);
123
123
  }
@@ -111,16 +111,16 @@ export class ZModal {
111
111
  e.preventDefault();
112
112
  }
113
113
  render() {
114
- return (h("dialog", { key: '15eba99f071f5b0b57743e44b916c4ea6970f07a', class: {
114
+ return (h("dialog", { key: 'a1e93e72fa4aa80d94192e1fb18bca7a50ad0aa3', class: {
115
115
  "modal-dialog": !this.scrollInside,
116
- }, "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: '82ac5037fd70c3661dce7bd34300dd249aa1e052', class: {
116
+ }, "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: '5346f87a3812911b434a2b9b95691e86ecaeb853', class: {
117
117
  "modal-container": true,
118
118
  "modal-container-scroll-inside": this.scrollInside,
119
119
  "modal-container-scroll-outside": !this.scrollInside,
120
- }, id: this.modalid }, h("header", { key: '4885ed46b798305fc01456487c500aa89fbced3e', onClick: this.emitModalHeaderActive.bind(this) }, h("div", { key: '87d47369f0bb766cead5aee4889b0f7fbf96ded3' }, this.modaltitle && h("h1", { key: '79974d32cd15dc7c423f7cdd570f7eeb88c66b3f', id: "modal-title" }, this.modaltitle), this.closeButtonSlot()), this.modalsubtitle && (h("div", { key: 'da3e80cba34e51cf4c635839e7e989872144625f', class: "subtitle", id: "modal-subtitle" }, this.modalsubtitle))), h("div", { key: 'a4fea6c1784848e10390553f879873a7140d87d3', class: {
120
+ }, id: this.modalid }, h("header", { key: 'ae7f3aa101e7a55276c4a07a58fd126da494ba83', onClick: this.emitModalHeaderActive.bind(this) }, h("div", { key: '6938cbb56171186773c6b2d14323bde7d2f40761' }, this.modaltitle && h("h1", { key: '0cc3ee46b3598ec91465c1f8668b399c0c32034f', id: "modal-title" }, this.modaltitle), this.closeButtonSlot()), this.modalsubtitle && (h("div", { key: '453e07da973d95eed5e66c4768c86cfe47cadbf3', class: "subtitle", id: "modal-subtitle" }, this.modalsubtitle))), h("div", { key: 'bb5a5facd7b854e172a4f0502f97a6fffc03552a', class: {
121
121
  "modal-content-scroll-inside": this.scrollInside,
122
122
  "modal-content-scroll-outside": !this.scrollInside,
123
- }, id: "modal-content" }, h("slot", { key: '2ff2465682aeb86fac11b7dd3edd788946295bc7', name: "modalContent" }))), h("div", { key: '1ad45c5b879fd7ae2d3d3560e7ad4199e8c0268d', class: {
123
+ }, id: "modal-content" }, h("slot", { key: '3c2b58be34c464e06065258e710853e716d415df', name: "modalContent" }))), h("div", { key: '2b0e3e016ba08aeb65307ead19d9ca2ca408a85d', class: {
124
124
  "modal-background": true,
125
125
  "modal-background-scroll-outside": !this.scrollInside,
126
126
  }, "data-action": "modalBackground", "data-modal": this.modalid, onClick: () => {
@@ -204,10 +204,10 @@ export class ZNavigationTabs {
204
204
  (_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
205
205
  }
206
206
  render() {
207
- return (h(Host, { key: '0dfbe739542add5d05e82462f9ca115734f75ab7', class: {
207
+ return (h(Host, { key: '16294d384c48cb2380178445630240fcc6f085cc', class: {
208
208
  "interactive-2": this.size === NavigationTabsSize.SMALL,
209
209
  "interactive-1": this.size !== NavigationTabsSize.SMALL,
210
- }, scrollable: this.canNavigate }, h("button", { key: 'a679c4104ef79c5245a205e634872992ad6b7702', class: "navigation-button", onClick: this.navigateBackwards.bind(this), tabIndex: -1, disabled: !this.canNavigatePrev, "aria-label": "Mostra elementi precedenti", hidden: !this.canNavigate }, h("z-icon", { key: '13b64410e78d66d28b9a2a870535a393b5361f06', name: this.orientation === NavigationTabsOrientation.HORIZONTAL ? "chevron-left" : "chevron-up", width: 16, height: 16 })), h("nav", { key: 'ae01aa47ea6620209017d612b3b6e1b0664efcba', role: "tablist", "aria-label": this.ariaLabel, ref: (el) => (this.nav = el !== null && el !== void 0 ? el : this.nav), onScroll: this.checkScrollEnabled.bind(this), "aria-orientation": this.orientation }, h("slot", { key: 'bd1f92fef8fde67a415964efd61b89d9895192a7' })), h("button", { key: '0b7a9b4ecf5773f576f25468a8f64118b57c4480', class: "navigation-button", onClick: this.navigateForward.bind(this), tabIndex: -1, disabled: !this.canNavigateNext, "aria-label": "Mostra elementi successivi", hidden: !this.canNavigate }, h("z-icon", { key: '91686040ca32ff9136c6a96ce70ed3ca20a6b753', name: this.orientation === NavigationTabsOrientation.HORIZONTAL ? "chevron-right" : "chevron-down", width: 16, height: 16 }))));
210
+ }, scrollable: this.canNavigate }, h("button", { key: '98eae832700569a7f2539aa51cee7c07ac2f3815', class: "navigation-button", onClick: this.navigateBackwards.bind(this), tabIndex: -1, disabled: !this.canNavigatePrev, "aria-label": "Mostra elementi precedenti", hidden: !this.canNavigate }, h("z-icon", { key: '21ddd942ac5c9a7cfdf53e1c31788268b7932f03', name: this.orientation === NavigationTabsOrientation.HORIZONTAL ? "chevron-left" : "chevron-up", width: 16, height: 16 })), h("nav", { key: 'd2582f956ec466d672bdf43494f96d1b2ee73485', role: "tablist", "aria-label": this.ariaLabel, ref: (el) => (this.nav = el !== null && el !== void 0 ? el : this.nav), onScroll: this.checkScrollEnabled.bind(this), "aria-orientation": this.orientation }, h("slot", { key: '3cfbaf5ef02b8964b1b497deef2b8e95b6ef94e0' })), h("button", { key: '6cc204b98252d19cdd79bdf2f9f1824c2f69d559', class: "navigation-button", onClick: this.navigateForward.bind(this), tabIndex: -1, disabled: !this.canNavigateNext, "aria-label": "Mostra elementi successivi", hidden: !this.canNavigate }, h("z-icon", { key: '7bc36b5cdb865c759e0bb37362a820557e079be4', name: this.orientation === NavigationTabsOrientation.HORIZONTAL ? "chevron-right" : "chevron-down", width: 16, height: 16 }))));
211
211
  }
212
212
  static get is() { return "z-navigation-tabs"; }
213
213
  static get originalStyleUrls() {
@@ -25,7 +25,7 @@ export class ZNotification {
25
25
  }
26
26
  render() {
27
27
  var _a;
28
- return (h(Host, { key: '49e877c8628f367adc596b40d5f12d5e66f78ed0' }, this.contenticonname && (h("z-icon", { key: '56257c6011f6b5b17c8bbd6250ec99b8d1e41ee2', class: "status-icon", name: this.contenticonname, width: 16, height: 16 })), h("div", { key: 'dc56b45ea4f7d52bb193f8d3c22bb5910be9eeea', class: "content-container" }, h("div", { key: '2637553cf2f72a948014110e96559d15c45513fa', class: "content-text" }, h("slot", { key: '1e60cbb429a9620b88d7cb90df90874d3e454f48' })), !!((_a = this.actiontext) === null || _a === void 0 ? void 0 : _a.trim()) && (h("button", { key: '844e0ba5cef8b13f9d91d5c09472893de5127cc4', class: "action-button", type: "button", onClick: this.handleActionButtonClick }, this.actiontext))), this.showclose && (h("button", { key: '8761fc65bd1b44b38a219e80d8f12b10a898cefe', class: "close-button", type: "button", onClick: this.handleCloseButtonClick }, h("z-icon", { key: '7bd949a2c0abf7431765f28542443c9110097ab3', name: "multiply-circle", width: 16, height: 16 })))));
28
+ return (h(Host, { key: 'bf9ead754226002371eb0669770d24c0230bcf92' }, this.contenticonname && (h("z-icon", { key: '322709ad12acd8a885214809012178649b172bd8', class: "status-icon", name: this.contenticonname, width: 16, height: 16 })), h("div", { key: 'd68ea8f5984fee4d906a05f93f9cf3ef4dae932c', class: "content-container" }, h("div", { key: 'd67f12dcbcf7075cbc0e111db260dce207e3411a', class: "content-text" }, h("slot", { key: '6e23a5b287e328657e1848dc1944b3a1ddc065be' })), !!((_a = this.actiontext) === null || _a === void 0 ? void 0 : _a.trim()) && (h("button", { key: '68da7a70a5dec9113c021c915594c2e8424c21be', class: "action-button", type: "button", onClick: this.handleActionButtonClick }, this.actiontext))), this.showclose && (h("button", { key: '342853024b8a9bfce814282471d8d8e9e9f6b522', class: "close-button", type: "button", onClick: this.handleCloseButtonClick }, h("z-icon", { key: 'ce20a4b279bc3cb3d4b0dd7bf4c61fe9b3837556', name: "multiply-circle", width: 16, height: 16 })))));
29
29
  }
30
30
  static get is() { return "z-notification"; }
31
31
  static get encapsulation() { return "shadow"; }
@@ -25,7 +25,7 @@ export class ZOffcanvas {
25
25
  this.open = false;
26
26
  }
27
27
  render() {
28
- return (h(Host, { key: '69d5f44707b4971fd19969ed8ff8b44cc5e8dad2', class: { "skip-animation": this.skipLoadAnimation } }, h("div", { key: '7b4045fe3c4bbc5dcd298683d445aa4800825fd7', role: "presentation", class: "canvas-container", onTransitionEnd: () => this.handlePageOverflow() }, h("div", { key: '90f6a83e5710059f24a4f99aea8e2f48786fb74f', role: "presentation", class: "canvas-content" }, h("slot", { key: 'ae14e2f2ea5771bb97dd58a986cde3b31e07c77f', name: "canvasContent" }))), this.variant == OffCanvasVariant.OVERLAY && (h("div", { key: 'd9bc6afc4d788a7b0011494b5951294a08ab8812', class: "canvas-background", "data-action": "canvasBackground", onClick: () => (this.open = false) }))));
28
+ return (h(Host, { key: '44382bb203dff02051742ab75321405ea88a40ce', class: { "skip-animation": this.skipLoadAnimation } }, h("div", { key: 'a3e8b0892f68a7123535e7a15f56909e7e2fc971', role: "presentation", class: "canvas-container", onTransitionEnd: () => this.handlePageOverflow() }, h("div", { key: '5ccd9e46853a37b08f1ba3f6e8350037777eb9d2', role: "presentation", class: "canvas-content" }, h("slot", { key: '033b592b1d74f97fc46e7f93ae7e1a88e44f328d', name: "canvasContent" }))), this.variant == OffCanvasVariant.OVERLAY && (h("div", { key: '30719eb0832c6dd4f8d49bae817514414a64f794', class: "canvas-background", "data-action": "canvasBackground", onClick: () => (this.open = false) }))));
29
29
  }
30
30
  static get is() { return "z-offcanvas"; }
31
31
  static get encapsulation() { return "scoped"; }
@@ -16,11 +16,11 @@ export class ZPanelElem {
16
16
  }
17
17
  render() {
18
18
  const elemId = this.elemid ? this.elemid : "";
19
- return (h("div", { key: 'bbae0bd29656529b2019a66668d6dfbf66b9b0a1', class: "panel-elem-container" }, (this.imgurl || this.imgalt) && (h("div", { key: '620411ca326a5975d3cc21549cfc51a7d7eea519', "aria-hidden": "true", class: "panel-elem-icon" }, h("img", { key: '79a77af32280e5f1e58f794f07c1365da1fa30a7', src: this.imgurl, alt: this.imgalt }))), h("div", { key: '67ad3e575caab6d93bf8d0a17de138ae59fffb35', class: "panel-elem-link" }, h("a", { key: 'f79f44642cbceefd484bbe63e4af6ea03d197fec', class: {
19
+ return (h("div", { key: '7364ce8b1efc2b30e792693a93f41834a65dd7c6', class: "panel-elem-container" }, (this.imgurl || this.imgalt) && (h("div", { key: '815580b59284ea71764fd9f18b98be4ab69ff1e5', "aria-hidden": "true", class: "panel-elem-icon" }, h("img", { key: 'a736866758f35a8284310a5bc81d08f166aec78c', src: this.imgurl, alt: this.imgalt }))), h("div", { key: '1d154781e2bf59a9a6b1c8ddff324e035095c5ec', class: "panel-elem-link" }, h("a", { key: '3531d557c2145fa3fb96f13c2952d4c2c6e366b8', class: {
20
20
  "z-link": true,
21
21
  "z-link-disabled": this.isdisabled,
22
22
  "z-link-icon": true,
23
- }, id: elemId + "link_id", href: this.url, target: this.target }, h("z-icon", { key: '0f112223c94273b9baa33da513c60a51dba33e7b', height: 14, width: 14, name: this.linkicon }), this.linklabel)), this.descrSlotName && (h("div", { key: '4ae5da7e8a2a92be4c801790a90b6907e7ffe6b3', class: "panel-elem-desc" }, h("slot", { key: '4c4e6872a2fe1cb443002a004b5aa1ce18a8f96f', name: this.descrSlotName })))));
23
+ }, id: elemId + "link_id", href: this.url, target: this.target }, h("z-icon", { key: 'dd6a4750589fe913eeb211025beebb3da7cfc8fd', height: 14, width: 14, name: this.linkicon }), this.linklabel)), this.descrSlotName && (h("div", { key: 'b2cbea114008c9f5c6a560c0e52f60ff9e6f7722', class: "panel-elem-desc" }, h("slot", { key: '73a350ea0ca8bc51e56a5a2879651883669a79b4', name: this.descrSlotName })))));
24
24
  }
25
25
  static get is() { return "z-panel-elem"; }
26
26
  static get encapsulation() { return "scoped"; }
@@ -301,7 +301,7 @@ export class ZPopover {
301
301
  this.onOpen();
302
302
  }
303
303
  render() {
304
- return h("slot", { key: '06ccad911be5d149ace59bb4cd239648a9eeb5da' });
304
+ return h("slot", { key: '3c34ab8733a93885e6e2a9fd8b0f3607cafca402' });
305
305
  }
306
306
  static get is() { return "z-popover"; }
307
307
  static get encapsulation() { return "shadow"; }
@@ -223,7 +223,7 @@ export class ZSearchbar {
223
223
  return (h("z-list-element", { role: "option", tabindex: 0, clickable: true, id: `list-item-${this.htmlid}-show-all`, onClickItem: () => (this.currResultsCount = 0), color: "color-primary01" }, h("div", { class: "item-show-all" }, "Vedi tutti i risultati")));
224
224
  }
225
225
  render() {
226
- return (h(Host, { key: '9b84ef94161485bb7213116bbab6273d33e8e5cd', onFocus: () => (this.showResults = true), onClick: (e) => this.handleOutsideClick(e), class: { "has-submit": this.showSearchButton, "has-results": this.autocomplete } }, h("div", { key: '59f83333716c7914ad437f0c494916f8ba8c0240', class: "input-container" }, this.renderInput(), this.renderResults()), this.renderButton()));
226
+ return (h(Host, { key: 'af318a5b693c0048c368776744d9090bdebe6c8c', onFocus: () => (this.showResults = true), onClick: (e) => this.handleOutsideClick(e), class: { "has-submit": this.showSearchButton, "has-results": this.autocomplete } }, h("div", { key: 'aba6d0bd87ba308a8f664ca5f86e5d0b96c734af', class: "input-container" }, this.renderInput(), this.renderResults()), this.renderButton()));
227
227
  }
228
228
  static get is() { return "z-searchbar"; }
229
229
  static get encapsulation() { return "shadow"; }
@@ -18,7 +18,7 @@ export class ZSectionTitle {
18
18
  this.hasSecondaryTitle = !!this.host.querySelector("[slot=secondary-title]");
19
19
  }
20
20
  render() {
21
- return (h(Host, { key: 'aae886e9941d8767af39a351671a7aaaf844176a' }, h("slot", { key: '08a1466c1d96e8f2dc754d3566bc2567bfd26dfd', name: "secondary-title" }), !this.hasSecondaryTitle && this.dividerPosition === ZSectionTitleDividerPosition.BEFORE && (h("z-divider", { key: 'ab9e30f7c179c37482d84db65729a3fa78fd9e06', size: DividerSize.LARGE, color: "z-section-title--divider-color" })), h("slot", { key: '4cad003315cf3df2e0dd6a7391035fd8e056e8b0', name: "primary-title" }), !this.hasSecondaryTitle && this.dividerPosition === ZSectionTitleDividerPosition.AFTER && (h("z-divider", { key: '6e99ca4877aba8c76e4484be6fced23aa5b8e165', size: DividerSize.LARGE, color: "z-section-title--divider-color" }))));
21
+ return (h(Host, { key: '5718215a4b4b42735d8045c3de73998189f38bf7' }, h("slot", { key: '99e51ba27a27a3100ae7fc88df7537624f8682bb', name: "secondary-title" }), !this.hasSecondaryTitle && this.dividerPosition === ZSectionTitleDividerPosition.BEFORE && (h("z-divider", { key: 'd62ca69ea2ecdbb75ef8c034ca6beffc6041ede0', size: DividerSize.LARGE, color: "z-section-title--divider-color" })), h("slot", { key: 'cb8a5a51554a90e8749d664f3d6d19af67e5afeb', name: "primary-title" }), !this.hasSecondaryTitle && this.dividerPosition === ZSectionTitleDividerPosition.AFTER && (h("z-divider", { key: 'bdf9d80c19154f8f89947d277f6a7234986b605e', size: DividerSize.LARGE, color: "z-section-title--divider-color" }))));
22
22
  }
23
23
  static get is() { return "z-section-title"; }
24
24
  static get encapsulation() { return "shadow"; }
@@ -314,7 +314,7 @@ export class ZSelect {
314
314
  return (h("z-input-message", { message: boolean(this.message) === true ? undefined : this.message, status: this.status, class: this.size }));
315
315
  }
316
316
  render() {
317
- return (h("div", { key: '9746ad38f69cb9f568cd1ef2e36937ae0f13bfed', class: "select-wrapper" }, this.renderInput(), this.renderSelectUl(), this.renderMessage()));
317
+ return (h("div", { key: '7cff5f68badfbedf3c8f6e9a5d8bbdaa89ed8a98', class: "select-wrapper" }, this.renderInput(), this.renderSelectUl(), this.renderMessage()));
318
318
  }
319
319
  static get is() { return "z-select"; }
320
320
  static get encapsulation() { return "scoped"; }
@@ -45,7 +45,7 @@ export class ZSkipToContent {
45
45
  this.visible = false;
46
46
  }
47
47
  render() {
48
- return (h(Host, { key: 'ae03554e1bb63eebca8f51d3cae23b885ee79428', class: {
48
+ return (h(Host, { key: '06ee6c9f26ddc014c08c34bb81ddd990aa7c0282', class: {
49
49
  [this.variant]: true,
50
50
  "skip-to-content-visible": this.visible,
51
51
  } }, this.links.map((link, i) => {
@@ -4,7 +4,7 @@ import { Host, h } from "@stencil/core";
4
4
  */
5
5
  export class ZStepper {
6
6
  render() {
7
- return (h(Host, { key: '80b89caa35e9adb82ad413783b16eae491a26f48', role: "list" }, h("slot", { key: '140e35a55637873b1eee70d5a7a8c2b03af3eed7' })));
7
+ return (h(Host, { key: '5fbfa9cc1b0e6f672f054427828d56560059c160', role: "list" }, h("slot", { key: 'd2c5abd53c5c9e8569696aafb6101b7878e1a10c' })));
8
8
  }
9
9
  static get is() { return "z-stepper"; }
10
10
  static get encapsulation() { return "shadow"; }
@@ -15,7 +15,7 @@ export class ZStepperItem {
15
15
  return Object.assign(Object.assign(Object.assign(Object.assign({}, href), role), current), tabindex);
16
16
  }
17
17
  render() {
18
- return (h(Host, { key: 'd760ab7aef2991d5ffc8754e4e03263c4c476a6d', role: "listitem" }, h("button", Object.assign({ key: '7fca3fa04459cdea8813db6382726cc601e4e3f8', class: "stepper-item", disabled: this.disabled }, this.getAttributes()), h("div", { key: 'c727b40105af8807c1b7fddf19243147bc2acdab', class: "indicator" }, this.checked ? h("z-icon", { name: "checkmark" }) : this.index), h("span", { key: 'f8d063aeeac60eb9adeaf65774b60ff07bb1c9ba' }, h("slot", { key: 'b0bd5470c318acc8037abb11b974a4cc1f057fd8' })))));
18
+ return (h(Host, { key: '0994d3d3a8e89f1a93f17cb71baff1c1581bf7e4', role: "listitem" }, h("button", Object.assign({ key: '14becf7e97de2bd909f61cc3aa09b64b45f7ab30', class: "stepper-item", disabled: this.disabled }, this.getAttributes()), h("div", { key: '69f3cd00d2eeaafa65037d939218b2665d34b62b', class: "indicator" }, this.checked ? h("z-icon", { name: "checkmark" }) : this.index), h("span", { key: '8d2ed47daa09ae26562bac42d262ba7c4c5320a4' }, h("slot", { key: '48004d92935fa78bd48df08a9eb3db11662a171b' })))));
19
19
  }
20
20
  static get is() { return "z-stepper-item"; }
21
21
  static get encapsulation() { return "shadow"; }
@@ -11,9 +11,9 @@ export class ZTag {
11
11
  this.expandable = undefined;
12
12
  }
13
13
  render() {
14
- return (h(Host, { key: '2b457c2a7462afa36499c0991a32436751b2b6d1', class: {
14
+ return (h(Host, { key: 'dab9210f7c3cfc75d0c009f4bc8a1841bdbc371b', class: {
15
15
  expandable: this.expandable && !!this.icon,
16
- } }, this.icon && h("z-icon", { key: '3f6b461a15c9221c658221894f62895bdbd8e108', name: this.icon }), h("div", { key: '0bb11571e1f99587a62e9d345fc731bf795656e5' }, h("slot", { key: '46ccbc8282a3611e7a3188651bbe96df1aacb5b2' }))));
16
+ } }, this.icon && h("z-icon", { key: 'e7dc02062a4c525977b3734540dd1c2f4b5375a3', name: this.icon }), h("div", { key: '9b72b749cddf039f2c92345e9b02061c322c3e58' }, h("slot", { key: 'df6fe3eaea544ad012168bce4049d0d7fa239944' }))));
17
17
  }
18
18
  static get is() { return "z-tag"; }
19
19
  static get encapsulation() { return "scoped"; }
@@ -171,7 +171,7 @@ export class ZToastNotification {
171
171
  } }, h("div", { id: "flex-container", ref: (el) => (this.container = el) }, this.renderText(), this.renderButton()), this.renderCloseIcon()));
172
172
  }
173
173
  render() {
174
- return (h(Host, { key: 'bf20c69f253b702092fe078443eedb9e86fe223a', style: {
174
+ return (h(Host, { key: '3553c94f59787f1fdbb0ea349578c61ebbda1c21', style: {
175
175
  "--percentuale": `${this.percentage}%`,
176
176
  }, class: this.transition ? this.transition : ToastNotificationTransition.SLIDE_IN_DOWN, onAnimationEnd: (e) => {
177
177
  if (this.autoclose && e.animationName.includes("slidein")) {
@@ -36,7 +36,7 @@ export class ZToastNotificationList {
36
36
  }
37
37
  }
38
38
  render() {
39
- return h("slot", { key: 'ead27e0dd8742e6008aa4fc6ffa4129cae868af8', name: "toasts" });
39
+ return h("slot", { key: 'c358a615637656bb5b4cd475af919c495a278da5', name: "toasts" });
40
40
  }
41
41
  static get is() { return "z-toast-notification-list"; }
42
42
  static get encapsulation() { return "shadow"; }
@@ -15,10 +15,10 @@ export class ZToggleButton {
15
15
  this.toggleClick.emit(this.opened);
16
16
  }
17
17
  render() {
18
- return (h("button", { key: '809ca74c63187ce21d411516d595bda6ed5b082b', tabindex: this.avoidclick ? "-1" : "0", class: {
18
+ return (h("button", { key: 'a0335db670898e98b232857bd9f878f9f6bceaa0', tabindex: this.avoidclick ? "-1" : "0", class: {
19
19
  "isopen": this.opened,
20
20
  "avoid-clicks": this.avoidclick,
21
- }, disabled: this.isdisabled, "aria-expanded": this.opened ? "true" : "false", "aria-label": this.ariaLabel, onClick: () => this.emitToggleClick() }, h("z-icon", { key: '66af2faa257599724f2506230eae3c0c612c0700', name: this.opened ? "chevron-down" : "chevron-up", width: 16, height: 16 }), this.label));
21
+ }, disabled: this.isdisabled, "aria-expanded": this.opened ? "true" : "false", "aria-label": this.ariaLabel, onClick: () => this.emitToggleClick() }, h("z-icon", { key: '353df156fc85eb6824152ec2a5578426263627b7', name: this.opened ? "chevron-down" : "chevron-up", width: 16, height: 16 }), this.label));
22
22
  }
23
23
  static get is() { return "z-toggle-button"; }
24
24
  static get encapsulation() { return "shadow"; }
@@ -22,14 +22,14 @@ export class ZToggleSwitch {
22
22
  this.emitToggleClick();
23
23
  }
24
24
  render() {
25
- return (h(Host, { key: '1435f2d332c0a6ba1845640836e129eee281f1b0' }, h("input", { key: 'baea7ca82f300316bd418cadfc82718da7dc2f18', id: this.htmlid, type: "checkbox", checked: this.checked, disabled: this.disabled, onChange: this.handleClick.bind(this) }), h("label", { key: '510a2f196cd5f67af2602c5c6e948e2f63395f6f', htmlFor: this.htmlid, class: {
25
+ return (h(Host, { key: 'cd90ad41b289f192e485c0cce90ae2a8057ddd7d' }, h("input", { key: '5cc5e59f8cc0cc0548b072e41149cf7dc31bbcd8', id: this.htmlid, type: "checkbox", checked: this.checked, disabled: this.disabled, onChange: this.handleClick.bind(this) }), h("label", { key: '9774cc39f7ebe6bd02c5ce0e05d1b53075f4e426', htmlFor: this.htmlid, class: {
26
26
  [this.labelPosition]: true,
27
27
  disabled: this.disabled,
28
- } }, h("span", { key: 'e32ef84026463fb9a99bcb303d0097ffed6ee994' }, h("slot", { key: '07344703d351893b5ab39e4e4a617e4038f1042a' })), h("span", { key: 'cec720a047a8fbc016048e9139639e04233f8f24', class: {
28
+ } }, h("span", { key: '074941585b8a5862f04bd2d404ab74c86bcaa250' }, h("slot", { key: '7fe6486df9479e76a7783646aed3e620f7f1d0f2' })), h("span", { key: 'd4bf4b3febdab1bf8e88c12e1c7aa421b020997c', class: {
29
29
  container: true,
30
30
  disabled: this.disabled,
31
31
  checked: this.checked,
32
- } }, h("span", { key: '4639384b98d6de8009678681d71d1097b2c687e6', class: "circle" }, this.checked && (h("z-icon", { key: 'd34f45d60cece7a6969be1a03ad51be4ab0b0f04', width: 12, height: 12, name: "checkmark" })))))));
32
+ } }, h("span", { key: 'c46c06ff10a35060945b9298a551cf66508a5450', class: "circle" }, this.checked && (h("z-icon", { key: '7ed667dc510d42e3e001ad8cb82b5c5f9d012583', width: 12, height: 12, name: "checkmark" })))))));
33
33
  }
34
34
  static get is() { return "z-toggle-switch"; }
35
35
  static get encapsulation() { return "scoped"; }
@@ -20,7 +20,7 @@ export class ZTooltip {
20
20
  this.open = this.popoverEl.open;
21
21
  }
22
22
  render() {
23
- return (h("z-popover", { key: 'ed88c22d97e3e84963b0d3b7c6ee03d401aa5ce8', ref: (el) => (this.popoverEl = el), bindTo: this.bindTo, open: this.open, position: this.position, closable: this.closable, center: true, showArrow: true }, h("slot", { key: '6b3cd438f4ab6cfb3459f67f9e8ea81b554a3ccb' })));
23
+ return (h("z-popover", { key: '2df25a3fa481ccc045d4a49f464c06d9d9c3e555', ref: (el) => (this.popoverEl = el), bindTo: this.bindTo, open: this.open, position: this.position, closable: this.closable, center: true, showArrow: true }, h("slot", { key: '136991637393809eba3d6c6fad0f44209b8c8960' })));
24
24
  }
25
25
  static get is() { return "z-tooltip"; }
26
26
  static get encapsulation() { return "shadow"; }
@@ -1,7 +1,7 @@
1
1
  import { h } from "@stencil/core";
2
2
  export class ZVisuallyHidden {
3
3
  render() {
4
- return h("slot", { key: 'ae350dcba13aae6abc2f746555896c973baea496' });
4
+ return h("slot", { key: 'a99984e228cda9c10f7f96987a24ea9e1d695951' });
5
5
  }
6
6
  static get is() { return "z-visually-hidden"; }
7
7
  static get encapsulation() { return "shadow"; }
@@ -33,7 +33,7 @@ export class ZMyzCardComponent {
33
33
  return elemClasses;
34
34
  }
35
35
  render() {
36
- return (h("div", { key: '254e3f158fbaa9eae4c801cd491abe9227fdd1fb', class: this.retrieveClass(), tabindex: "0" }, h("slot", { key: '52145b4e99ae3616f767760faf97433d1e3047d8' })));
36
+ return (h("div", { key: '0513da0ab64e0db2c6f075c435ef3a9249501609', class: this.retrieveClass(), tabindex: "0" }, h("slot", { key: '3b208fff53e518e4e291e2aa3c0b70d939419690' })));
37
37
  }
38
38
  static get is() { return "z-myz-card"; }
39
39
  static get encapsulation() { return "shadow"; }
@@ -46,7 +46,7 @@ export class ZMyzCardAlert {
46
46
  }
47
47
  }
48
48
  render() {
49
- return (h("div", { key: 'ee3f657b10628aa1d8b655fbad1f7f2d55d0cfcc', class: "alert-external-wrapper " + this.retrieveClass() }, h("z-alert", { key: 'f90c4944719e9d9842a159727be73e7d877aca9a', type: this.getAlertType() }, h("div", { key: '414b27076e7e807f79987b8d1bf57724ff7aba21', class: "relative-container" }, h("z-icon", { key: '4a17b0046552751eb1b4f78b666038a34950f669', name: this.iconname, width: 18, height: 18, class: this.retrieveClass() }), h("span", { key: 'dc7059e99b1cb56c47f0ce112f2dcabf0cdafb47', class: "content-text" }, this.contenttext), this.actiontext && !!this.actiontext.trim().length && (h("span", { key: 'fe84b58a497310f2936b14fd06808717a572feb5', role: "button", tabindex: "0", class: "content-action", onClick: (e) => {
49
+ return (h("div", { key: 'e488b304fcdd145b3ce0ba375d36a997a646eec9', class: "alert-external-wrapper " + this.retrieveClass() }, h("z-alert", { key: '256f5d68375a9c8c187785cfdbd6272b8cc449f9', type: this.getAlertType() }, h("div", { key: '9f3d7e43b28f3fc92bf1e627475af9a9f0464799', class: "relative-container" }, h("z-icon", { key: '6c9e26abc686e0d6020d7c6398a8575e6e8ac543', name: this.iconname, width: 18, height: 18, class: this.retrieveClass() }), h("span", { key: 'b4b997286c4e5250c5b856f0d375ad49162c92df', class: "content-text" }, this.contenttext), this.actiontext && !!this.actiontext.trim().length && (h("span", { key: '18020fe9e8180577a168a25c0ba17464cedf70c0', role: "button", tabindex: "0", class: "content-action", onClick: (e) => {
50
50
  this.handleActionButtonClick(e);
51
51
  }, onKeyPress: (e) => {
52
52
  this.handleSpaceKeyPress(e);
@@ -5,7 +5,7 @@ import { h } from "@stencil/core";
5
5
  */
6
6
  export class ZMyzCardBody {
7
7
  render() {
8
- return (h("div", { key: '6eaaf5ff0351e8844d3aa616e473712dafcff7fd' }, h("slot", { key: '2984020a0568593cf9dd47aac83c4890c53d7460', name: "alert" }), h("slot", { key: '85e70e9dcd8068d00bdb40e71acaffae88326225', name: "cover" })));
8
+ return (h("div", { key: 'dccc73da3128968555dc65848994a4f11ee6cea4' }, h("slot", { key: 'bc8948b5bd03b6c49db50a8aa0d46b1078ca328e', name: "alert" }), h("slot", { key: '747327ca24dba0f35ec49d1f85600a5eada44c9e', name: "cover" })));
9
9
  }
10
10
  static get is() { return "z-myz-card-body"; }
11
11
  static get encapsulation() { return "shadow"; }