@zanichelli/albe-web-components 16.3.1-rc1 → 16.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (605) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/dist/cjs/{index-01778132.js → index-041b41e6.js} +2 -2
  3. package/dist/cjs/{index-01778132.js.map → index-041b41e6.js.map} +1 -1
  4. package/dist/cjs/index-1dfb8b3c.js +47 -0
  5. package/dist/cjs/index-1dfb8b3c.js.map +1 -0
  6. package/dist/cjs/{index-ef486baa.js → index-25ded558.js} +2 -2
  7. package/dist/cjs/{index-ef486baa.js.map → index-25ded558.js.map} +1 -1
  8. package/dist/cjs/index-4bce26ea.js +59 -0
  9. package/dist/cjs/index-4bce26ea.js.map +1 -0
  10. package/dist/cjs/{index-b26fbd76.js → index-b7759a0d.js} +2 -2
  11. package/dist/cjs/{index-b26fbd76.js.map → index-b7759a0d.js.map} +1 -1
  12. package/dist/cjs/index-d4272b0e.js +65 -0
  13. package/dist/cjs/index-d4272b0e.js.map +1 -0
  14. package/dist/cjs/loader.cjs.js +1 -1
  15. package/dist/cjs/web-components-library.cjs.js +1 -1
  16. package/dist/cjs/z-accordion.cjs.entry.js +1 -1
  17. package/dist/cjs/z-alert.cjs.entry.js +1 -1
  18. package/dist/cjs/z-anchor-navigation.cjs.entry.js +1 -1
  19. package/dist/cjs/z-app-header_12.cjs.entry.js +73 -23
  20. package/dist/cjs/z-app-header_12.cjs.entry.js.map +1 -1
  21. package/dist/cjs/z-aria-alert.cjs.entry.js +1 -1
  22. package/dist/cjs/z-avatar.cjs.entry.js +2 -2
  23. package/dist/cjs/z-book-card.cjs.entry.js +1 -1
  24. package/dist/cjs/z-breadcrumb.cjs.entry.js +2 -2
  25. package/dist/cjs/z-button-sort.cjs.entry.js +1 -1
  26. package/dist/cjs/z-chip.cjs.entry.js +2 -2
  27. package/dist/cjs/z-combobox.cjs.entry.js +1 -1
  28. package/dist/cjs/z-cover-hero.cjs.entry.js +2 -2
  29. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +4 -4
  30. package/dist/cjs/z-ghost-loading.cjs.entry.js +1 -1
  31. package/dist/cjs/z-info-box.cjs.entry.js +1 -1
  32. package/dist/cjs/z-info-reveal.cjs.entry.js +1 -1
  33. package/dist/cjs/z-logo.cjs.entry.js +1 -1
  34. package/dist/cjs/z-menu-section.cjs.entry.js +28 -13
  35. package/dist/cjs/z-menu-section.cjs.entry.js.map +1 -1
  36. package/dist/cjs/z-menu.cjs.entry.js +89 -43
  37. package/dist/cjs/z-menu.cjs.entry.js.map +1 -1
  38. package/dist/cjs/z-myz-card-alert.cjs.entry.js +1 -1
  39. package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +1 -1
  40. package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +1 -1
  41. package/dist/cjs/z-myz-card-footer.cjs.entry.js +1 -1
  42. package/dist/cjs/z-myz-card-icon.cjs.entry.js +1 -1
  43. package/dist/cjs/z-myz-card-info.cjs.entry.js +1 -1
  44. package/dist/cjs/z-myz-card-list.cjs.entry.js +1 -1
  45. package/dist/cjs/z-myz-card_4.cjs.entry.js +4 -4
  46. package/dist/cjs/z-myz-list-item.cjs.entry.js +1 -1
  47. package/dist/cjs/z-myz-list.cjs.entry.js +1 -1
  48. package/dist/cjs/z-navigation-tabs.cjs.entry.js +2 -2
  49. package/dist/cjs/z-notification.cjs.entry.js +1 -1
  50. package/dist/cjs/z-otp.cjs.entry.js +2 -2
  51. package/dist/cjs/z-panel-elem.cjs.entry.js +2 -2
  52. package/dist/cjs/z-popover.cjs.entry.js +1 -1
  53. package/dist/cjs/z-section-title.cjs.entry.js +1 -1
  54. package/dist/cjs/z-select.cjs.entry.js +1 -1
  55. package/dist/cjs/z-skip-to-content.cjs.entry.js +1 -1
  56. package/dist/cjs/z-stepper-item.cjs.entry.js +1 -1
  57. package/dist/cjs/z-stepper.cjs.entry.js +1 -1
  58. package/dist/cjs/z-table.cjs.entry.js +8 -8
  59. package/dist/cjs/z-table.cjs.entry.js.map +1 -1
  60. package/dist/cjs/z-tbody.cjs.entry.js +1 -1
  61. package/dist/cjs/z-td.cjs.entry.js +1 -1
  62. package/dist/cjs/z-tfoot.cjs.entry.js +1 -1
  63. package/dist/cjs/z-th.cjs.entry.js +1 -1
  64. package/dist/cjs/z-thead.cjs.entry.js +1 -1
  65. package/dist/cjs/z-toast-notification-list.cjs.entry.js +1 -1
  66. package/dist/cjs/z-toast-notification.cjs.entry.js +1 -1
  67. package/dist/cjs/z-toggle-button.cjs.entry.js +2 -2
  68. package/dist/cjs/z-toggle-switch.cjs.entry.js +3 -3
  69. package/dist/cjs/z-tooltip.cjs.entry.js +1 -1
  70. package/dist/cjs/z-tr.cjs.entry.js +3 -3
  71. package/dist/cjs/z-visually-hidden.cjs.entry.js +1 -1
  72. package/dist/collection/components/table/cells/z-td/index.js +1 -1
  73. package/dist/collection/components/table/cells/z-td/index.js.map +1 -1
  74. package/dist/collection/components/table/cells/z-td/styles.css +13 -21
  75. package/dist/collection/components/table/cells/z-th/index.js +5 -36
  76. package/dist/collection/components/table/cells/z-th/index.js.map +1 -1
  77. package/dist/collection/components/table/cells/z-th/styles.css +24 -57
  78. package/dist/collection/components/table/z-table/index.js +1 -1
  79. package/dist/collection/components/table/z-table/index.stories.js +3 -19
  80. package/dist/collection/components/table/z-table/index.stories.js.map +1 -1
  81. package/dist/collection/components/table/z-table/styles.css +4 -0
  82. package/dist/collection/components/table/z-tbody/index.js +1 -1
  83. package/dist/collection/components/table/z-tfoot/index.js +1 -1
  84. package/dist/collection/components/table/z-thead/index.js +1 -1
  85. package/dist/collection/components/table/z-tr/index.js +1 -1
  86. package/dist/collection/components/table/z-tr/styles.css +1 -0
  87. package/dist/collection/components/z-accordion/index.js +1 -1
  88. package/dist/collection/components/z-anchor-navigation/index.js +1 -1
  89. package/dist/collection/components/z-app-header/index.js +55 -13
  90. package/dist/collection/components/z-app-header/index.js.map +1 -1
  91. package/dist/collection/components/z-app-header/index.stories.js +50 -116
  92. package/dist/collection/components/z-app-header/index.stories.js.map +1 -1
  93. package/dist/collection/components/z-app-header/styles.css +34 -25
  94. package/dist/collection/components/z-aria-alert/index.js +1 -1
  95. package/dist/collection/components/z-avatar/index.js +2 -2
  96. package/dist/collection/components/z-book-card/index.js +1 -1
  97. package/dist/collection/components/z-breadcrumb/index.js +2 -2
  98. package/dist/collection/components/z-button-sort/index.js +1 -1
  99. package/dist/collection/components/z-chip/index.js +2 -2
  100. package/dist/collection/components/z-combobox/index.js +1 -1
  101. package/dist/collection/components/z-cover-hero/index.js +2 -2
  102. package/dist/collection/components/z-divider/index.js +1 -1
  103. package/dist/collection/components/z-ghost-loading/index.js +1 -1
  104. package/dist/collection/components/z-info-box/index.js +1 -1
  105. package/dist/collection/components/z-info-reveal/index.js +1 -1
  106. package/dist/collection/components/z-input/index.js +1 -1
  107. package/dist/collection/components/z-input-message/index.js +1 -1
  108. package/dist/collection/components/z-logo/index.js +1 -1
  109. package/dist/collection/components/z-menu/index.js +93 -42
  110. package/dist/collection/components/z-menu/index.js.map +1 -1
  111. package/dist/collection/components/z-menu/styles.css +40 -52
  112. package/dist/collection/components/z-menu-section/index.js +31 -16
  113. package/dist/collection/components/z-menu-section/index.js.map +1 -1
  114. package/dist/collection/components/z-menu-section/styles.css +8 -0
  115. package/dist/collection/components/z-modal/index.js +4 -4
  116. package/dist/collection/components/z-navigation-tabs/index.js +2 -2
  117. package/dist/collection/components/z-notification/index.js +1 -1
  118. package/dist/collection/components/z-offcanvas/index.js +1 -1
  119. package/dist/collection/components/z-panel-elem/index.js +2 -2
  120. package/dist/collection/components/z-popover/index.js +1 -1
  121. package/dist/collection/components/z-searchbar/index.js +14 -5
  122. package/dist/collection/components/z-searchbar/index.js.map +1 -1
  123. package/dist/collection/components/z-section-title/index.js +1 -1
  124. package/dist/collection/components/z-select/index.js +1 -1
  125. package/dist/collection/components/z-skip-to-content/index.js +1 -1
  126. package/dist/collection/components/z-stepper/index.js +1 -1
  127. package/dist/collection/components/z-stepper-item/index.js +1 -1
  128. package/dist/collection/components/z-tag/index.js +2 -2
  129. package/dist/collection/components/z-toast-notification/index.js +1 -1
  130. package/dist/collection/components/z-toast-notification-list/index.js +1 -1
  131. package/dist/collection/components/z-toggle-button/index.js +2 -2
  132. package/dist/collection/components/z-toggle-switch/index.js +3 -3
  133. package/dist/collection/components/z-tooltip/index.js +1 -1
  134. package/dist/collection/components/z-visually-hidden/index.js +1 -1
  135. package/dist/collection/snowflakes/myz/card/z-myz-card/index.js +1 -1
  136. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js +1 -1
  137. package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js +1 -1
  138. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js +1 -1
  139. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js +1 -1
  140. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js +1 -1
  141. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js +1 -1
  142. package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js +1 -1
  143. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js +1 -1
  144. package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +1 -1
  145. package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js +1 -1
  146. package/dist/collection/snowflakes/myz/list/z-myz-list/index.js +1 -1
  147. package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js +1 -1
  148. package/dist/collection/snowflakes/myz/z-alert/index.js +1 -1
  149. package/dist/collection/snowflakes/myz/z-otp/index.js +2 -2
  150. package/dist/components/index10.js +1 -1
  151. package/dist/components/index11.js +1 -1
  152. package/dist/components/index15.js +4 -4
  153. package/dist/components/index16.js +1 -1
  154. package/dist/components/index17.js +1 -1
  155. package/dist/components/index18.js +1 -1
  156. package/dist/components/index19.js +1 -1
  157. package/dist/components/index20.js +1 -1
  158. package/dist/components/index21.js +1 -1
  159. package/dist/components/index22.js +1 -1
  160. package/dist/components/index23.js +14 -5
  161. package/dist/components/index23.js.map +1 -1
  162. package/dist/components/index24.js +2 -2
  163. package/dist/components/index3.js +1 -1
  164. package/dist/components/index5.js +2 -2
  165. package/dist/components/index6.js +1 -1
  166. package/dist/components/index8.js +1 -1
  167. package/dist/components/z-accordion.js +1 -1
  168. package/dist/components/z-anchor-navigation.js +1 -1
  169. package/dist/components/z-app-header.js +56 -14
  170. package/dist/components/z-app-header.js.map +1 -1
  171. package/dist/components/z-aria-alert.js +1 -1
  172. package/dist/components/z-avatar.js +2 -2
  173. package/dist/components/z-book-card.js +1 -1
  174. package/dist/components/z-breadcrumb.js +2 -2
  175. package/dist/components/z-button-sort.js +1 -1
  176. package/dist/components/z-combobox.js +1 -1
  177. package/dist/components/z-cover-hero.js +2 -2
  178. package/dist/components/z-info-box.js +1 -1
  179. package/dist/components/z-info-reveal.js +1 -1
  180. package/dist/components/z-logo.js +1 -1
  181. package/dist/components/z-menu-section.js +30 -15
  182. package/dist/components/z-menu-section.js.map +1 -1
  183. package/dist/components/z-menu.js +89 -44
  184. package/dist/components/z-menu.js.map +1 -1
  185. package/dist/components/z-myz-card-alert.js +1 -1
  186. package/dist/components/z-myz-card-dictionary.js +1 -1
  187. package/dist/components/z-myz-card-footer-sections.js +1 -1
  188. package/dist/components/z-myz-card-footer.js +1 -1
  189. package/dist/components/z-myz-card-icon.js +1 -1
  190. package/dist/components/z-myz-card-info.js +1 -1
  191. package/dist/components/z-myz-card-list.js +1 -1
  192. package/dist/components/z-myz-list.js +1 -1
  193. package/dist/components/z-navigation-tabs.js +2 -2
  194. package/dist/components/z-notification.js +1 -1
  195. package/dist/components/z-otp.js +2 -2
  196. package/dist/components/z-panel-elem.js +2 -2
  197. package/dist/components/z-section-title.js +1 -1
  198. package/dist/components/z-select.js +1 -1
  199. package/dist/components/z-skip-to-content.js +1 -1
  200. package/dist/components/z-stepper-item.js +1 -1
  201. package/dist/components/z-stepper.js +1 -1
  202. package/dist/components/z-table.js +2 -2
  203. package/dist/components/z-table.js.map +1 -1
  204. package/dist/components/z-tbody.js +1 -1
  205. package/dist/components/z-td.js +2 -2
  206. package/dist/components/z-td.js.map +1 -1
  207. package/dist/components/z-tfoot.js +1 -1
  208. package/dist/components/z-th.js +6 -14
  209. package/dist/components/z-th.js.map +1 -1
  210. package/dist/components/z-thead.js +1 -1
  211. package/dist/components/z-toast-notification-list.js +1 -1
  212. package/dist/components/z-toast-notification.js +1 -1
  213. package/dist/components/z-toggle-button.js +2 -2
  214. package/dist/components/z-toggle-switch.js +3 -3
  215. package/dist/components/z-tooltip.js +1 -1
  216. package/dist/components/z-tr.js +2 -2
  217. package/dist/components/z-tr.js.map +1 -1
  218. package/dist/components/z-visually-hidden.js +1 -1
  219. package/dist/esm/{index-8e5c830a.js → index-36f0f6c0.js} +2 -2
  220. package/dist/esm/{index-8e5c830a.js.map → index-36f0f6c0.js.map} +1 -1
  221. package/dist/esm/index-66bd56db.js +57 -0
  222. package/dist/esm/index-66bd56db.js.map +1 -0
  223. package/dist/esm/index-89520805.js +63 -0
  224. package/dist/esm/index-89520805.js.map +1 -0
  225. package/dist/esm/index-cddfba10.js +45 -0
  226. package/dist/esm/index-cddfba10.js.map +1 -0
  227. package/dist/esm/{index-fe4fc8da.js → index-dfddeb25.js} +2 -2
  228. package/dist/esm/{index-fe4fc8da.js.map → index-dfddeb25.js.map} +1 -1
  229. package/dist/esm/{index-09ff70db.js → index-e70be23f.js} +2 -2
  230. package/dist/esm/{index-09ff70db.js.map → index-e70be23f.js.map} +1 -1
  231. package/dist/esm/loader.js +1 -1
  232. package/dist/esm/web-components-library.js +1 -1
  233. package/dist/esm/z-accordion.entry.js +1 -1
  234. package/dist/esm/z-alert.entry.js +1 -1
  235. package/dist/esm/z-anchor-navigation.entry.js +1 -1
  236. package/dist/esm/z-app-header_12.entry.js +73 -23
  237. package/dist/esm/z-app-header_12.entry.js.map +1 -1
  238. package/dist/esm/z-aria-alert.entry.js +1 -1
  239. package/dist/esm/z-avatar.entry.js +2 -2
  240. package/dist/esm/z-book-card.entry.js +1 -1
  241. package/dist/esm/z-breadcrumb.entry.js +2 -2
  242. package/dist/esm/z-button-sort.entry.js +1 -1
  243. package/dist/esm/z-chip.entry.js +2 -2
  244. package/dist/esm/z-combobox.entry.js +1 -1
  245. package/dist/esm/z-cover-hero.entry.js +2 -2
  246. package/dist/esm/z-dragdrop-area_2.entry.js +4 -4
  247. package/dist/esm/z-ghost-loading.entry.js +1 -1
  248. package/dist/esm/z-info-box.entry.js +1 -1
  249. package/dist/esm/z-info-reveal.entry.js +1 -1
  250. package/dist/esm/z-logo.entry.js +1 -1
  251. package/dist/esm/z-menu-section.entry.js +28 -13
  252. package/dist/esm/z-menu-section.entry.js.map +1 -1
  253. package/dist/esm/z-menu.entry.js +89 -43
  254. package/dist/esm/z-menu.entry.js.map +1 -1
  255. package/dist/esm/z-myz-card-alert.entry.js +1 -1
  256. package/dist/esm/z-myz-card-dictionary.entry.js +1 -1
  257. package/dist/esm/z-myz-card-footer-sections.entry.js +1 -1
  258. package/dist/esm/z-myz-card-footer.entry.js +1 -1
  259. package/dist/esm/z-myz-card-icon.entry.js +1 -1
  260. package/dist/esm/z-myz-card-info.entry.js +1 -1
  261. package/dist/esm/z-myz-card-list.entry.js +1 -1
  262. package/dist/esm/z-myz-card_4.entry.js +4 -4
  263. package/dist/esm/z-myz-list-item.entry.js +1 -1
  264. package/dist/esm/z-myz-list.entry.js +1 -1
  265. package/dist/esm/z-navigation-tabs.entry.js +2 -2
  266. package/dist/esm/z-notification.entry.js +1 -1
  267. package/dist/esm/z-otp.entry.js +2 -2
  268. package/dist/esm/z-panel-elem.entry.js +2 -2
  269. package/dist/esm/z-popover.entry.js +1 -1
  270. package/dist/esm/z-section-title.entry.js +1 -1
  271. package/dist/esm/z-select.entry.js +1 -1
  272. package/dist/esm/z-skip-to-content.entry.js +1 -1
  273. package/dist/esm/z-stepper-item.entry.js +1 -1
  274. package/dist/esm/z-stepper.entry.js +1 -1
  275. package/dist/esm/z-table.entry.js +8 -8
  276. package/dist/esm/z-table.entry.js.map +1 -1
  277. package/dist/esm/z-tbody.entry.js +1 -1
  278. package/dist/esm/z-td.entry.js +1 -1
  279. package/dist/esm/z-tfoot.entry.js +1 -1
  280. package/dist/esm/z-th.entry.js +1 -1
  281. package/dist/esm/z-thead.entry.js +1 -1
  282. package/dist/esm/z-toast-notification-list.entry.js +1 -1
  283. package/dist/esm/z-toast-notification.entry.js +1 -1
  284. package/dist/esm/z-toggle-button.entry.js +2 -2
  285. package/dist/esm/z-toggle-switch.entry.js +3 -3
  286. package/dist/esm/z-tooltip.entry.js +1 -1
  287. package/dist/esm/z-tr.entry.js +3 -3
  288. package/dist/esm/z-visually-hidden.entry.js +1 -1
  289. package/dist/types/components/table/cells/z-th/index.d.ts +0 -11
  290. package/dist/types/components/table/z-table/index.stories.d.ts +0 -11
  291. package/dist/types/components/z-app-header/index.d.ts +4 -3
  292. package/dist/types/components/z-menu/index.d.ts +9 -1
  293. package/dist/types/components/z-menu-section/index.d.ts +4 -2
  294. package/dist/types/components/z-searchbar/index.d.ts +1 -0
  295. package/dist/types/components.d.ts +0 -8
  296. package/dist/web-components-library/p-06d98334.entry.js +2 -0
  297. package/dist/web-components-library/{p-291319ed.entry.js → p-100c6243.entry.js} +2 -2
  298. package/dist/web-components-library/p-28018cd3.entry.js +2 -0
  299. package/dist/web-components-library/p-28018cd3.entry.js.map +1 -0
  300. package/dist/web-components-library/p-2b1fd95a.entry.js +2 -0
  301. package/dist/web-components-library/{p-6e92df75.entry.js → p-2f662fea.entry.js} +2 -2
  302. package/dist/web-components-library/p-3ae8fb1a.entry.js +2 -0
  303. package/dist/web-components-library/p-3dbad75e.js +2 -0
  304. package/dist/web-components-library/{p-a16ed530.entry.js → p-4537f922.entry.js} +2 -2
  305. package/dist/web-components-library/{p-17d2d60b.entry.js → p-45dc157c.entry.js} +2 -2
  306. package/dist/web-components-library/{p-b6ea478b.entry.js → p-46d98609.entry.js} +2 -2
  307. package/dist/web-components-library/p-4a2e0034.js +2 -0
  308. package/dist/web-components-library/{p-155c52f7.js.map → p-4a2e0034.js.map} +1 -1
  309. package/dist/web-components-library/p-4f3f8578.entry.js +2 -0
  310. package/dist/web-components-library/{p-956ece11.entry.js → p-51f1c9c0.entry.js} +2 -2
  311. package/dist/web-components-library/{p-0b100bd7.entry.js → p-5a0f0978.entry.js} +2 -2
  312. package/dist/web-components-library/{p-ee430669.entry.js → p-5a178c69.entry.js} +2 -2
  313. package/dist/web-components-library/p-60f410df.js +2 -0
  314. package/dist/web-components-library/p-60f410df.js.map +1 -0
  315. package/dist/web-components-library/p-63ec7bad.entry.js +2 -0
  316. package/dist/web-components-library/p-64aab82f.js +2 -0
  317. package/dist/web-components-library/p-68f4fbc8.entry.js +2 -0
  318. package/dist/web-components-library/{p-f87bcdc3.entry.js.map → p-68f4fbc8.entry.js.map} +1 -1
  319. package/{www/build/p-b387e877.entry.js → dist/web-components-library/p-6a1b3e86.entry.js} +2 -2
  320. package/{www/build/p-1320c34d.entry.js → dist/web-components-library/p-6db2fd46.entry.js} +2 -2
  321. package/{www/build/p-0ca0265f.entry.js → dist/web-components-library/p-707e5f91.entry.js} +2 -2
  322. package/dist/web-components-library/{p-89b1e0ce.entry.js → p-777ad335.entry.js} +2 -2
  323. package/{www/build/p-eb93aa0b.entry.js → dist/web-components-library/p-7aba5af3.entry.js} +2 -2
  324. package/dist/web-components-library/p-7d5bf905.entry.js +2 -0
  325. package/dist/web-components-library/{p-6f9fc850.entry.js → p-820b48f6.entry.js} +2 -2
  326. package/dist/web-components-library/p-823c45d4.entry.js +2 -0
  327. package/dist/web-components-library/{p-d847bfcd.entry.js → p-855334f4.entry.js} +2 -2
  328. package/dist/web-components-library/p-8a6a4d22.js +2 -0
  329. package/dist/web-components-library/p-8a6a4d22.js.map +1 -0
  330. package/{www/build/p-9fc6961e.entry.js → dist/web-components-library/p-8d56e74b.entry.js} +2 -2
  331. package/dist/web-components-library/p-8e5f1ae0.entry.js +2 -0
  332. package/dist/web-components-library/p-8e5f1ae0.entry.js.map +1 -0
  333. package/dist/web-components-library/p-95cb8701.js +2 -0
  334. package/{www/build/p-4704cece.entry.js → dist/web-components-library/p-9a1b51ed.entry.js} +2 -2
  335. package/dist/web-components-library/{p-140b5d8f.entry.js → p-9b9a04ad.entry.js} +2 -2
  336. package/dist/web-components-library/{p-ef8a7250.entry.js → p-a0fd1323.entry.js} +2 -2
  337. package/dist/web-components-library/{p-64ba80da.entry.js → p-a64a1bf0.entry.js} +2 -2
  338. package/dist/web-components-library/{p-e770ed95.entry.js → p-aaae6b16.entry.js} +2 -2
  339. package/dist/web-components-library/{p-d94c5857.entry.js → p-ab7f129e.entry.js} +2 -2
  340. package/{www/build/p-62b75a18.entry.js → dist/web-components-library/p-ad97fdc4.entry.js} +2 -2
  341. package/dist/web-components-library/{p-b7af7424.entry.js → p-b2356bc7.entry.js} +2 -2
  342. package/dist/web-components-library/p-b6e7866f.entry.js +2 -0
  343. package/dist/web-components-library/p-b6e7866f.entry.js.map +1 -0
  344. package/dist/web-components-library/p-c1e498ac.entry.js +2 -0
  345. package/dist/web-components-library/p-c54d0925.entry.js +2 -0
  346. package/dist/web-components-library/p-c679277c.entry.js +2 -0
  347. package/{www/build/p-9bf06eb5.entry.js.map → dist/web-components-library/p-c679277c.entry.js.map} +1 -1
  348. package/dist/web-components-library/p-cc71a90c.entry.js +2 -0
  349. package/dist/web-components-library/{p-f26b2e47.entry.js → p-cd0219b4.entry.js} +2 -2
  350. package/dist/web-components-library/{p-48b2e967.entry.js → p-d5f5e107.entry.js} +2 -2
  351. package/dist/web-components-library/{p-f410f295.entry.js → p-df8c381a.entry.js} +2 -2
  352. package/dist/web-components-library/{p-ca7634bf.entry.js → p-e25d7f0a.entry.js} +2 -2
  353. package/dist/web-components-library/{p-a45e72f0.entry.js → p-e4d97fbf.entry.js} +2 -2
  354. package/dist/web-components-library/{p-c451b4d7.entry.js → p-e529a714.entry.js} +2 -2
  355. package/dist/web-components-library/{p-ecae1a7a.entry.js → p-ea9c0ff3.entry.js} +2 -2
  356. package/dist/web-components-library/{p-9a48e70b.entry.js → p-f06ad42c.entry.js} +2 -2
  357. package/dist/web-components-library/{p-00f7e0da.entry.js → p-f15d0a00.entry.js} +2 -2
  358. package/{www/build/p-c38833ea.entry.js → dist/web-components-library/p-f425c6f2.entry.js} +2 -2
  359. package/dist/web-components-library/p-f703660d.entry.js +2 -0
  360. package/{www/build/p-30f09188.entry.js → dist/web-components-library/p-f8bbca6e.entry.js} +2 -2
  361. package/dist/web-components-library/p-fb0b11cd.entry.js +2 -0
  362. package/dist/web-components-library/p-fb0b11cd.entry.js.map +1 -0
  363. package/dist/web-components-library/web-components-library.esm.js +1 -1
  364. package/dist/web-components-library/web-components-library.esm.js.map +1 -1
  365. package/package.json +1 -1
  366. package/www/build/p-06d98334.entry.js +2 -0
  367. package/www/build/{p-291319ed.entry.js → p-100c6243.entry.js} +2 -2
  368. package/www/build/p-28018cd3.entry.js +2 -0
  369. package/www/build/p-28018cd3.entry.js.map +1 -0
  370. package/www/build/p-2b1fd95a.entry.js +2 -0
  371. package/www/build/{p-6e92df75.entry.js → p-2f662fea.entry.js} +2 -2
  372. package/www/build/p-38bf2bfc.js +2 -0
  373. package/www/build/p-3ae8fb1a.entry.js +2 -0
  374. package/www/build/p-3dbad75e.js +2 -0
  375. package/www/build/{p-a16ed530.entry.js → p-4537f922.entry.js} +2 -2
  376. package/www/build/{p-17d2d60b.entry.js → p-45dc157c.entry.js} +2 -2
  377. package/www/build/{p-b6ea478b.entry.js → p-46d98609.entry.js} +2 -2
  378. package/www/build/p-4a2e0034.js +2 -0
  379. package/www/build/{p-155c52f7.js.map → p-4a2e0034.js.map} +1 -1
  380. package/www/build/p-4f3f8578.entry.js +2 -0
  381. package/www/build/{p-956ece11.entry.js → p-51f1c9c0.entry.js} +2 -2
  382. package/www/build/{p-0b100bd7.entry.js → p-5a0f0978.entry.js} +2 -2
  383. package/www/build/{p-ee430669.entry.js → p-5a178c69.entry.js} +2 -2
  384. package/www/build/p-60f410df.js +2 -0
  385. package/www/build/p-60f410df.js.map +1 -0
  386. package/www/build/p-63ec7bad.entry.js +2 -0
  387. package/www/build/p-64aab82f.js +2 -0
  388. package/www/build/p-68f4fbc8.entry.js +2 -0
  389. package/www/build/{p-f87bcdc3.entry.js.map → p-68f4fbc8.entry.js.map} +1 -1
  390. package/{dist/web-components-library/p-b387e877.entry.js → www/build/p-6a1b3e86.entry.js} +2 -2
  391. package/{dist/web-components-library/p-1320c34d.entry.js → www/build/p-6db2fd46.entry.js} +2 -2
  392. package/{dist/web-components-library/p-0ca0265f.entry.js → www/build/p-707e5f91.entry.js} +2 -2
  393. package/www/build/{p-89b1e0ce.entry.js → p-777ad335.entry.js} +2 -2
  394. package/{dist/web-components-library/p-eb93aa0b.entry.js → www/build/p-7aba5af3.entry.js} +2 -2
  395. package/www/build/p-7d5bf905.entry.js +2 -0
  396. package/www/build/{p-6f9fc850.entry.js → p-820b48f6.entry.js} +2 -2
  397. package/www/build/p-823c45d4.entry.js +2 -0
  398. package/www/build/{p-d847bfcd.entry.js → p-855334f4.entry.js} +2 -2
  399. package/www/build/p-8a6a4d22.js +2 -0
  400. package/www/build/p-8a6a4d22.js.map +1 -0
  401. package/{dist/web-components-library/p-9fc6961e.entry.js → www/build/p-8d56e74b.entry.js} +2 -2
  402. package/www/build/p-8e5f1ae0.entry.js +2 -0
  403. package/www/build/p-8e5f1ae0.entry.js.map +1 -0
  404. package/www/build/p-95cb8701.js +2 -0
  405. package/{dist/web-components-library/p-4704cece.entry.js → www/build/p-9a1b51ed.entry.js} +2 -2
  406. package/www/build/{p-140b5d8f.entry.js → p-9b9a04ad.entry.js} +2 -2
  407. package/www/build/{p-ef8a7250.entry.js → p-a0fd1323.entry.js} +2 -2
  408. package/www/build/{p-64ba80da.entry.js → p-a64a1bf0.entry.js} +2 -2
  409. package/www/build/{p-e770ed95.entry.js → p-aaae6b16.entry.js} +2 -2
  410. package/www/build/{p-d94c5857.entry.js → p-ab7f129e.entry.js} +2 -2
  411. package/{dist/web-components-library/p-62b75a18.entry.js → www/build/p-ad97fdc4.entry.js} +2 -2
  412. package/www/build/{p-b7af7424.entry.js → p-b2356bc7.entry.js} +2 -2
  413. package/www/build/p-b6e7866f.entry.js +2 -0
  414. package/www/build/p-b6e7866f.entry.js.map +1 -0
  415. package/www/build/p-c1e498ac.entry.js +2 -0
  416. package/www/build/p-c54d0925.entry.js +2 -0
  417. package/www/build/p-c679277c.entry.js +2 -0
  418. package/{dist/web-components-library/p-9bf06eb5.entry.js.map → www/build/p-c679277c.entry.js.map} +1 -1
  419. package/www/build/p-cc71a90c.entry.js +2 -0
  420. package/www/build/{p-f26b2e47.entry.js → p-cd0219b4.entry.js} +2 -2
  421. package/www/build/{p-48b2e967.entry.js → p-d5f5e107.entry.js} +2 -2
  422. package/www/build/{p-f410f295.entry.js → p-df8c381a.entry.js} +2 -2
  423. package/www/build/{p-ca7634bf.entry.js → p-e25d7f0a.entry.js} +2 -2
  424. package/www/build/{p-a45e72f0.entry.js → p-e4d97fbf.entry.js} +2 -2
  425. package/www/build/{p-c451b4d7.entry.js → p-e529a714.entry.js} +2 -2
  426. package/www/build/{p-ecae1a7a.entry.js → p-ea9c0ff3.entry.js} +2 -2
  427. package/www/build/{p-9a48e70b.entry.js → p-f06ad42c.entry.js} +2 -2
  428. package/www/build/{p-00f7e0da.entry.js → p-f15d0a00.entry.js} +2 -2
  429. package/{dist/web-components-library/p-c38833ea.entry.js → www/build/p-f425c6f2.entry.js} +2 -2
  430. package/www/build/p-f703660d.entry.js +2 -0
  431. package/{dist/web-components-library/p-30f09188.entry.js → www/build/p-f8bbca6e.entry.js} +2 -2
  432. package/www/build/p-fb0b11cd.entry.js +2 -0
  433. package/www/build/p-fb0b11cd.entry.js.map +1 -0
  434. package/www/build/web-components-library.esm.js +1 -1
  435. package/www/build/web-components-library.esm.js.map +1 -1
  436. package/www/index.html +1 -1
  437. package/dist/cjs/index-9963e4d6.js +0 -71
  438. package/dist/cjs/index-9963e4d6.js.map +0 -1
  439. package/dist/cjs/index-b504fdc8.js +0 -47
  440. package/dist/cjs/index-b504fdc8.js.map +0 -1
  441. package/dist/cjs/index-ec5b8c02.js +0 -59
  442. package/dist/cjs/index-ec5b8c02.js.map +0 -1
  443. package/dist/esm/index-81b223e5.js +0 -45
  444. package/dist/esm/index-81b223e5.js.map +0 -1
  445. package/dist/esm/index-96faeb1f.js +0 -57
  446. package/dist/esm/index-96faeb1f.js.map +0 -1
  447. package/dist/esm/index-ee04c4d5.js +0 -69
  448. package/dist/esm/index-ee04c4d5.js.map +0 -1
  449. package/dist/web-components-library/p-04c39e8a.entry.js +0 -2
  450. package/dist/web-components-library/p-04c39e8a.entry.js.map +0 -1
  451. package/dist/web-components-library/p-155c52f7.js +0 -2
  452. package/dist/web-components-library/p-16719dff.entry.js +0 -2
  453. package/dist/web-components-library/p-2a83f280.entry.js +0 -2
  454. package/dist/web-components-library/p-2cab65f7.entry.js +0 -2
  455. package/dist/web-components-library/p-32d603b8.js +0 -2
  456. package/dist/web-components-library/p-37019125.js +0 -2
  457. package/dist/web-components-library/p-37019125.js.map +0 -1
  458. package/dist/web-components-library/p-3b26bd7b.entry.js +0 -2
  459. package/dist/web-components-library/p-3d97dedf.entry.js +0 -2
  460. package/dist/web-components-library/p-5b2b0988.entry.js +0 -2
  461. package/dist/web-components-library/p-5b2b0988.entry.js.map +0 -1
  462. package/dist/web-components-library/p-6297dfaa.entry.js +0 -2
  463. package/dist/web-components-library/p-6d2fb9f2.entry.js +0 -2
  464. package/dist/web-components-library/p-6d2fb9f2.entry.js.map +0 -1
  465. package/dist/web-components-library/p-8855aef4.js +0 -2
  466. package/dist/web-components-library/p-9bf06eb5.entry.js +0 -2
  467. package/dist/web-components-library/p-9c36d574.entry.js +0 -2
  468. package/dist/web-components-library/p-a167bdd5.js +0 -2
  469. package/dist/web-components-library/p-af7e5773.entry.js +0 -2
  470. package/dist/web-components-library/p-c39ca8e7.entry.js +0 -2
  471. package/dist/web-components-library/p-c6867a3b.js +0 -2
  472. package/dist/web-components-library/p-c6867a3b.js.map +0 -1
  473. package/dist/web-components-library/p-c923360b.entry.js +0 -2
  474. package/dist/web-components-library/p-c923360b.entry.js.map +0 -1
  475. package/dist/web-components-library/p-cfe336c9.entry.js +0 -2
  476. package/dist/web-components-library/p-f87bcdc3.entry.js +0 -2
  477. package/dist/web-components-library/p-febc4982.entry.js +0 -2
  478. package/www/build/p-04c39e8a.entry.js +0 -2
  479. package/www/build/p-04c39e8a.entry.js.map +0 -1
  480. package/www/build/p-155c52f7.js +0 -2
  481. package/www/build/p-16719dff.entry.js +0 -2
  482. package/www/build/p-2a83f280.entry.js +0 -2
  483. package/www/build/p-2cab65f7.entry.js +0 -2
  484. package/www/build/p-32d603b8.js +0 -2
  485. package/www/build/p-37019125.js +0 -2
  486. package/www/build/p-37019125.js.map +0 -1
  487. package/www/build/p-3b26bd7b.entry.js +0 -2
  488. package/www/build/p-3d97dedf.entry.js +0 -2
  489. package/www/build/p-5b2b0988.entry.js +0 -2
  490. package/www/build/p-5b2b0988.entry.js.map +0 -1
  491. package/www/build/p-6297dfaa.entry.js +0 -2
  492. package/www/build/p-6d2fb9f2.entry.js +0 -2
  493. package/www/build/p-6d2fb9f2.entry.js.map +0 -1
  494. package/www/build/p-8855aef4.js +0 -2
  495. package/www/build/p-8e25517b.js +0 -2
  496. package/www/build/p-9bf06eb5.entry.js +0 -2
  497. package/www/build/p-9c36d574.entry.js +0 -2
  498. package/www/build/p-a167bdd5.js +0 -2
  499. package/www/build/p-af7e5773.entry.js +0 -2
  500. package/www/build/p-c39ca8e7.entry.js +0 -2
  501. package/www/build/p-c6867a3b.js +0 -2
  502. package/www/build/p-c6867a3b.js.map +0 -1
  503. package/www/build/p-c923360b.entry.js +0 -2
  504. package/www/build/p-c923360b.entry.js.map +0 -1
  505. package/www/build/p-cfe336c9.entry.js +0 -2
  506. package/www/build/p-f87bcdc3.entry.js +0 -2
  507. package/www/build/p-febc4982.entry.js +0 -2
  508. /package/dist/web-components-library/{p-9c36d574.entry.js.map → p-06d98334.entry.js.map} +0 -0
  509. /package/dist/web-components-library/{p-291319ed.entry.js.map → p-100c6243.entry.js.map} +0 -0
  510. /package/dist/web-components-library/{p-16719dff.entry.js.map → p-2b1fd95a.entry.js.map} +0 -0
  511. /package/dist/web-components-library/{p-6e92df75.entry.js.map → p-2f662fea.entry.js.map} +0 -0
  512. /package/dist/web-components-library/{p-af7e5773.entry.js.map → p-3ae8fb1a.entry.js.map} +0 -0
  513. /package/dist/web-components-library/{p-a167bdd5.js.map → p-3dbad75e.js.map} +0 -0
  514. /package/dist/web-components-library/{p-a16ed530.entry.js.map → p-4537f922.entry.js.map} +0 -0
  515. /package/dist/web-components-library/{p-17d2d60b.entry.js.map → p-45dc157c.entry.js.map} +0 -0
  516. /package/dist/web-components-library/{p-b6ea478b.entry.js.map → p-46d98609.entry.js.map} +0 -0
  517. /package/dist/web-components-library/{p-2a83f280.entry.js.map → p-4f3f8578.entry.js.map} +0 -0
  518. /package/dist/web-components-library/{p-956ece11.entry.js.map → p-51f1c9c0.entry.js.map} +0 -0
  519. /package/dist/web-components-library/{p-0b100bd7.entry.js.map → p-5a0f0978.entry.js.map} +0 -0
  520. /package/dist/web-components-library/{p-ee430669.entry.js.map → p-5a178c69.entry.js.map} +0 -0
  521. /package/dist/web-components-library/{p-3b26bd7b.entry.js.map → p-63ec7bad.entry.js.map} +0 -0
  522. /package/dist/web-components-library/{p-8855aef4.js.map → p-64aab82f.js.map} +0 -0
  523. /package/dist/web-components-library/{p-b387e877.entry.js.map → p-6a1b3e86.entry.js.map} +0 -0
  524. /package/dist/web-components-library/{p-1320c34d.entry.js.map → p-6db2fd46.entry.js.map} +0 -0
  525. /package/dist/web-components-library/{p-0ca0265f.entry.js.map → p-707e5f91.entry.js.map} +0 -0
  526. /package/dist/web-components-library/{p-89b1e0ce.entry.js.map → p-777ad335.entry.js.map} +0 -0
  527. /package/dist/web-components-library/{p-eb93aa0b.entry.js.map → p-7aba5af3.entry.js.map} +0 -0
  528. /package/dist/web-components-library/{p-6297dfaa.entry.js.map → p-7d5bf905.entry.js.map} +0 -0
  529. /package/dist/web-components-library/{p-6f9fc850.entry.js.map → p-820b48f6.entry.js.map} +0 -0
  530. /package/dist/web-components-library/{p-cfe336c9.entry.js.map → p-823c45d4.entry.js.map} +0 -0
  531. /package/dist/web-components-library/{p-d847bfcd.entry.js.map → p-855334f4.entry.js.map} +0 -0
  532. /package/dist/web-components-library/{p-9fc6961e.entry.js.map → p-8d56e74b.entry.js.map} +0 -0
  533. /package/dist/web-components-library/{p-32d603b8.js.map → p-95cb8701.js.map} +0 -0
  534. /package/dist/web-components-library/{p-4704cece.entry.js.map → p-9a1b51ed.entry.js.map} +0 -0
  535. /package/dist/web-components-library/{p-140b5d8f.entry.js.map → p-9b9a04ad.entry.js.map} +0 -0
  536. /package/dist/web-components-library/{p-ef8a7250.entry.js.map → p-a0fd1323.entry.js.map} +0 -0
  537. /package/dist/web-components-library/{p-64ba80da.entry.js.map → p-a64a1bf0.entry.js.map} +0 -0
  538. /package/dist/web-components-library/{p-e770ed95.entry.js.map → p-aaae6b16.entry.js.map} +0 -0
  539. /package/dist/web-components-library/{p-d94c5857.entry.js.map → p-ab7f129e.entry.js.map} +0 -0
  540. /package/dist/web-components-library/{p-62b75a18.entry.js.map → p-ad97fdc4.entry.js.map} +0 -0
  541. /package/dist/web-components-library/{p-b7af7424.entry.js.map → p-b2356bc7.entry.js.map} +0 -0
  542. /package/dist/web-components-library/{p-3d97dedf.entry.js.map → p-c1e498ac.entry.js.map} +0 -0
  543. /package/dist/web-components-library/{p-2cab65f7.entry.js.map → p-c54d0925.entry.js.map} +0 -0
  544. /package/dist/web-components-library/{p-c39ca8e7.entry.js.map → p-cc71a90c.entry.js.map} +0 -0
  545. /package/dist/web-components-library/{p-f26b2e47.entry.js.map → p-cd0219b4.entry.js.map} +0 -0
  546. /package/dist/web-components-library/{p-48b2e967.entry.js.map → p-d5f5e107.entry.js.map} +0 -0
  547. /package/dist/web-components-library/{p-f410f295.entry.js.map → p-df8c381a.entry.js.map} +0 -0
  548. /package/dist/web-components-library/{p-ca7634bf.entry.js.map → p-e25d7f0a.entry.js.map} +0 -0
  549. /package/dist/web-components-library/{p-a45e72f0.entry.js.map → p-e4d97fbf.entry.js.map} +0 -0
  550. /package/dist/web-components-library/{p-c451b4d7.entry.js.map → p-e529a714.entry.js.map} +0 -0
  551. /package/dist/web-components-library/{p-ecae1a7a.entry.js.map → p-ea9c0ff3.entry.js.map} +0 -0
  552. /package/dist/web-components-library/{p-9a48e70b.entry.js.map → p-f06ad42c.entry.js.map} +0 -0
  553. /package/dist/web-components-library/{p-00f7e0da.entry.js.map → p-f15d0a00.entry.js.map} +0 -0
  554. /package/dist/web-components-library/{p-c38833ea.entry.js.map → p-f425c6f2.entry.js.map} +0 -0
  555. /package/dist/web-components-library/{p-febc4982.entry.js.map → p-f703660d.entry.js.map} +0 -0
  556. /package/dist/web-components-library/{p-30f09188.entry.js.map → p-f8bbca6e.entry.js.map} +0 -0
  557. /package/www/build/{p-9c36d574.entry.js.map → p-06d98334.entry.js.map} +0 -0
  558. /package/www/build/{p-291319ed.entry.js.map → p-100c6243.entry.js.map} +0 -0
  559. /package/www/build/{p-16719dff.entry.js.map → p-2b1fd95a.entry.js.map} +0 -0
  560. /package/www/build/{p-6e92df75.entry.js.map → p-2f662fea.entry.js.map} +0 -0
  561. /package/www/build/{p-af7e5773.entry.js.map → p-3ae8fb1a.entry.js.map} +0 -0
  562. /package/www/build/{p-a167bdd5.js.map → p-3dbad75e.js.map} +0 -0
  563. /package/www/build/{p-a16ed530.entry.js.map → p-4537f922.entry.js.map} +0 -0
  564. /package/www/build/{p-17d2d60b.entry.js.map → p-45dc157c.entry.js.map} +0 -0
  565. /package/www/build/{p-b6ea478b.entry.js.map → p-46d98609.entry.js.map} +0 -0
  566. /package/www/build/{p-2a83f280.entry.js.map → p-4f3f8578.entry.js.map} +0 -0
  567. /package/www/build/{p-956ece11.entry.js.map → p-51f1c9c0.entry.js.map} +0 -0
  568. /package/www/build/{p-0b100bd7.entry.js.map → p-5a0f0978.entry.js.map} +0 -0
  569. /package/www/build/{p-ee430669.entry.js.map → p-5a178c69.entry.js.map} +0 -0
  570. /package/www/build/{p-3b26bd7b.entry.js.map → p-63ec7bad.entry.js.map} +0 -0
  571. /package/www/build/{p-8855aef4.js.map → p-64aab82f.js.map} +0 -0
  572. /package/www/build/{p-b387e877.entry.js.map → p-6a1b3e86.entry.js.map} +0 -0
  573. /package/www/build/{p-1320c34d.entry.js.map → p-6db2fd46.entry.js.map} +0 -0
  574. /package/www/build/{p-0ca0265f.entry.js.map → p-707e5f91.entry.js.map} +0 -0
  575. /package/www/build/{p-89b1e0ce.entry.js.map → p-777ad335.entry.js.map} +0 -0
  576. /package/www/build/{p-eb93aa0b.entry.js.map → p-7aba5af3.entry.js.map} +0 -0
  577. /package/www/build/{p-6297dfaa.entry.js.map → p-7d5bf905.entry.js.map} +0 -0
  578. /package/www/build/{p-6f9fc850.entry.js.map → p-820b48f6.entry.js.map} +0 -0
  579. /package/www/build/{p-cfe336c9.entry.js.map → p-823c45d4.entry.js.map} +0 -0
  580. /package/www/build/{p-d847bfcd.entry.js.map → p-855334f4.entry.js.map} +0 -0
  581. /package/www/build/{p-9fc6961e.entry.js.map → p-8d56e74b.entry.js.map} +0 -0
  582. /package/www/build/{p-32d603b8.js.map → p-95cb8701.js.map} +0 -0
  583. /package/www/build/{p-4704cece.entry.js.map → p-9a1b51ed.entry.js.map} +0 -0
  584. /package/www/build/{p-140b5d8f.entry.js.map → p-9b9a04ad.entry.js.map} +0 -0
  585. /package/www/build/{p-ef8a7250.entry.js.map → p-a0fd1323.entry.js.map} +0 -0
  586. /package/www/build/{p-64ba80da.entry.js.map → p-a64a1bf0.entry.js.map} +0 -0
  587. /package/www/build/{p-e770ed95.entry.js.map → p-aaae6b16.entry.js.map} +0 -0
  588. /package/www/build/{p-d94c5857.entry.js.map → p-ab7f129e.entry.js.map} +0 -0
  589. /package/www/build/{p-62b75a18.entry.js.map → p-ad97fdc4.entry.js.map} +0 -0
  590. /package/www/build/{p-b7af7424.entry.js.map → p-b2356bc7.entry.js.map} +0 -0
  591. /package/www/build/{p-3d97dedf.entry.js.map → p-c1e498ac.entry.js.map} +0 -0
  592. /package/www/build/{p-2cab65f7.entry.js.map → p-c54d0925.entry.js.map} +0 -0
  593. /package/www/build/{p-c39ca8e7.entry.js.map → p-cc71a90c.entry.js.map} +0 -0
  594. /package/www/build/{p-f26b2e47.entry.js.map → p-cd0219b4.entry.js.map} +0 -0
  595. /package/www/build/{p-48b2e967.entry.js.map → p-d5f5e107.entry.js.map} +0 -0
  596. /package/www/build/{p-f410f295.entry.js.map → p-df8c381a.entry.js.map} +0 -0
  597. /package/www/build/{p-ca7634bf.entry.js.map → p-e25d7f0a.entry.js.map} +0 -0
  598. /package/www/build/{p-a45e72f0.entry.js.map → p-e4d97fbf.entry.js.map} +0 -0
  599. /package/www/build/{p-c451b4d7.entry.js.map → p-e529a714.entry.js.map} +0 -0
  600. /package/www/build/{p-ecae1a7a.entry.js.map → p-ea9c0ff3.entry.js.map} +0 -0
  601. /package/www/build/{p-9a48e70b.entry.js.map → p-f06ad42c.entry.js.map} +0 -0
  602. /package/www/build/{p-00f7e0da.entry.js.map → p-f15d0a00.entry.js.map} +0 -0
  603. /package/www/build/{p-c38833ea.entry.js.map → p-f425c6f2.entry.js.map} +0 -0
  604. /package/www/build/{p-febc4982.entry.js.map → p-f703660d.entry.js.map} +0 -0
  605. /package/www/build/{p-30f09188.entry.js.map → p-f8bbca6e.entry.js.map} +0 -0
@@ -11,7 +11,7 @@ const ZAriaAlert = class {
11
11
  this.mode = index$1.ZAriaAlertMode.POLITE;
12
12
  }
13
13
  render() {
14
- return (index.h(index.Host, { key: '351d44f3f64362a97cac21201f8cfa5311158870', "aria-live": this.mode, "aria-atomic": "true", "aria-relevant": "additions" }, index.h("slot", { key: '456a2c0bb53f74d74b84a90c027dbf94249fbab9' })));
14
+ return (index.h(index.Host, { key: 'fe408ff28d71e45649f8881b395da6b0c1fd3e96', "aria-live": this.mode, "aria-atomic": "true", "aria-relevant": "additions" }, index.h("slot", { key: '2999a9a7cd442b5d9c4a74e0c68418497335045e' })));
15
15
  }
16
16
  };
17
17
 
@@ -33,10 +33,10 @@ const ZAvatar = class {
33
33
  }
34
34
  }
35
35
  render() {
36
- return (index.h(index.Host, { key: '8e7d78169cfb0f1705bc91c8db649a7d500290a6', class: { [this.size]: true, [`body-${this.getTextSize()}-sb`]: true }, style: {
36
+ return (index.h(index.Host, { key: '17a097738ce186c791794f5f8192cd46845df2a6', class: { [this.size]: true, [`body-${this.getTextSize()}-sb`]: true }, style: {
37
37
  color: `var(--${this.textColor})`,
38
38
  backgroundColor: `var(--${this.backgroundColor})`,
39
- } }, this.text && !this.image && index.h("span", { key: '096abc1df006eea6430564aaf999c22a18b60682' }, this.text.substring(0, 2)), this.image && (index.h("img", { key: '68d28c12bc007a0575e6797987501a1851ae8b3a', src: this.image, onError: () => (this.image = "") }))));
39
+ } }, this.text && !this.image && index.h("span", { key: '178497c915f987e2f2daff1e17282062dfac9110' }, this.text.substring(0, 2)), this.image && (index.h("img", { key: '57221f7fca8e9dae9afeea77de4db247d3ad3174', src: this.image, onError: () => (this.image = "") }))));
40
40
  }
41
41
  };
42
42
  ZAvatar.style = ZAvatarStyle0;
@@ -124,7 +124,7 @@ const ZBookCard = class {
124
124
  return (index.h("div", { class: "action-container" }, index.h("slot", { name: "footer-cta" })));
125
125
  }
126
126
  render() {
127
- return (index.h("article", { key: '4d781e135d7b5838443817e70df1cfdc3d597adc', class: {
127
+ return (index.h("article", { key: 'e114133d50e62f5d94d15c3529efa7700a3cd4c3', class: {
128
128
  [this.variant]: true,
129
129
  borderless: !!this.borderless,
130
130
  } }, this.renderCard()));
@@ -204,10 +204,10 @@ const ZBreadcrumb = class {
204
204
  ];
205
205
  }
206
206
  render() {
207
- return (index.h(index.Host, { key: 'ec59a3c1afe2d946df4b5ef8dae569b40e20e083', style: { "--line-clamp-popover": `${this.overflowMenuItemRows}` } }, index.h("nav", { key: '9b1668c981c22cd2d52f31f58e2ac38a18f574fb', ref: (val) => (this.wrapElement = val), "aria-label": "Breadcrumb", class: {
207
+ return (index.h(index.Host, { key: '582cae1fd6a48626be9e602dfeb565e7a592f786', style: { "--line-clamp-popover": `${this.overflowMenuItemRows}` } }, index.h("nav", { key: 'b029e4b1206b9ef6235d2c4995bd90a7ff05ffdf', ref: (val) => (this.wrapElement = val), "aria-label": "Breadcrumb", class: {
208
208
  semibold: this.pathStyle === index$1.BreadcrumbPathStyle.SEMIBOLD,
209
209
  underlined: this.pathStyle === index$1.BreadcrumbPathStyle.UNDERLINED,
210
- } }, index.h("ol", { key: 'fedac8ea463ba9b20784d20cf50f9f8526055d3b' }, this.viewPortWidth === index$1.Device.MOBILE ? this.renderMobileItems() : this.renderItems()))));
210
+ } }, index.h("ol", { key: '738872ff5e7edc74ea1dc1f0b2b29379412f02f1' }, this.viewPortWidth === index$1.Device.MOBILE ? this.renderMobileItems() : this.renderItems()))));
211
211
  }
212
212
  get hostElement() { return index.getElement(this); }
213
213
  static get watchers() { return {
@@ -46,7 +46,7 @@ const ZButtonSort = class {
46
46
  return this.ellipsis.offsetWidth < this.ellipsis.scrollWidth;
47
47
  }
48
48
  render() {
49
- return (index.h("button", { key: '0cb1fb4cd3661deb66e79e85bcc87657691af1a9', title: this.setButtonTitle(), id: this.buttonid, class: { selected: this.isselected }, onClick: () => this.emitButtonSortClick() }, index.h("span", { key: '24c3b8e7b8c6acc83f55cbf7bc0233382a3a2738', ref: (el) => (this.ellipsis = el), class: "ellipsis" }, !this.sortasc && this.desclabel ? this.desclabel : this.label), index.h("span", { key: 'a9ae20d5e3926dc6b6cd3d54757a9c829c15c823', class: "counter" }, this.counter && ` (${this.counter})`), index.h("span", { key: 'd3d3aa5e07074dfd72da40f8059f70e25d1a1f58', class: "sort" }, this.sortasc ? this.sortlabelasc : this.sortlabeldesc), index.h("z-icon", { key: 'e0003ebe4688bf0af648aa9b7eb01c446460f069', name: "caret-up-down", width: 16, height: 16 })));
49
+ return (index.h("button", { key: 'aa62d28a065254d872620c3deb96125c2cbbee86', title: this.setButtonTitle(), id: this.buttonid, class: { selected: this.isselected }, onClick: () => this.emitButtonSortClick() }, index.h("span", { key: 'f4ffc37957555118ff4984aa4a02619ff43a3187', ref: (el) => (this.ellipsis = el), class: "ellipsis" }, !this.sortasc && this.desclabel ? this.desclabel : this.label), index.h("span", { key: 'fded8bf8fd6ccc4c18181c7707bda4fe1bb6c8d7', class: "counter" }, this.counter && ` (${this.counter})`), index.h("span", { key: '01352602fc60865ed02b3032d1a734a2ab3fd0fc', class: "sort" }, this.sortasc ? this.sortlabelasc : this.sortlabeldesc), index.h("z-icon", { key: '086d4a4f9f5b06b6e81009b9f344347b979a69ec', name: "caret-up-down", width: 16, height: 16 })));
50
50
  }
51
51
  };
52
52
  ZButtonSort.style = ZButtonSortStyle0;
@@ -19,11 +19,11 @@ const ZChip = class {
19
19
  this.ariaLabel = "";
20
20
  }
21
21
  render() {
22
- return (index.h("div", { key: 'fe1e1ba8b794a0e67a04236808573c3ae9bcc4ce', class: {
22
+ return (index.h("div", { key: '6e341c6b23f7ec91070af8e6790832baa2065338', class: {
23
23
  "z-chip-container": true,
24
24
  "z-chip-interactive": !!this.interactiveIcon,
25
25
  [this.type]: true,
26
- }, "aria-disabled": this.disabled }, this.icon && index.h("z-icon", { key: 'a1ee44f219dd0b451851aadd081d29d8a03fbeaf', name: this.icon }), index.h("slot", { key: '126b3211e329d893d6b5b3f567cc20630dd02534' }), this.interactiveIcon && (index.h("button", { key: '059813ec42ff86dff2ce9fb96650ad35b38e5622', type: "button", onClick: () => this.interactiveIconClick.emit(), "aria-label": this.ariaLabel, disabled: this.disabled }, index.h("z-icon", { key: '3fb748bef5acea52a4d4cd565b1da11ae777e784', class: "interactive-icon", name: this.interactiveIcon })))));
26
+ }, "aria-disabled": this.disabled }, this.icon && index.h("z-icon", { key: '8340f5866aa0b7ae4eefe07fd528d93be8fe6a53', name: this.icon }), index.h("slot", { key: '36b769d7fd5e8485d4583b094bb6f7d28362a503' }), this.interactiveIcon && (index.h("button", { key: '1859652a7c22fa0449f6f246d83b20ca3b063aa8', type: "button", onClick: () => this.interactiveIconClick.emit(), "aria-label": this.ariaLabel, disabled: this.disabled }, index.h("z-icon", { key: '1f21cc01c122a3d605b038cbc12d43294cac838b', class: "interactive-icon", name: this.interactiveIcon })))));
27
27
  }
28
28
  get el() { return index.getElement(this); }
29
29
  };
@@ -262,7 +262,7 @@ const ZCombobox = class {
262
262
  return (index.h("div", { class: "check-all-wrapper" }, index.h("z-input", { type: index$1.InputType.CHECKBOX, checked: allChecked, htmlid: checkAllId, class: this.getCheckboxClass(), label: allChecked ? this.uncheckalltext : this.checkalltext, disabled: this.maxcheckableitems && this.maxcheckableitems < this.itemsList.length, size: this.size === index$1.ControlSize.X_SMALL ? index$1.ControlSize.SMALL : this.size, role: "option", "aria-selected": allChecked ? "true" : "false", onKeyDown: (e) => this.handleSelectArrowsNavigation(e, checkAllId), onInputCheck: (e) => this.checkAll(e.detail.checked), onInputFocus: (e) => this.handleCheckboxFocus(e.detail.id) })));
263
263
  }
264
264
  render() {
265
- return (index.h("div", { key: '303335d1978e653877985ff2435f836bca278400', "data-action": `combo-${this.inputid}`, class: { open: this.isopen, fixed: this.isfixed, disabled: this.disabled }, id: this.inputid }, this.renderHeader(), !this.disabled && this.renderContent()));
265
+ return (index.h("div", { key: '75e48688980a202cd06c3613cd337264f4b42496', "data-action": `combo-${this.inputid}`, class: { open: this.isopen, fixed: this.isfixed, disabled: this.disabled }, id: this.inputid }, this.renderHeader(), !this.disabled && this.renderContent()));
266
266
  }
267
267
  get element() { return index.getElement(this); }
268
268
  static get watchers() { return {
@@ -33,9 +33,9 @@ const ZCoverHero = class {
33
33
  return (index.h("div", { class: "content-container" }, index.h("slot", { name: "content" })));
34
34
  }
35
35
  render() {
36
- return (index.h(index.Host, { key: '1a87367d3abb5790f0ea6cacf7d3e75eacbff59d' }, this.variant === index$1.CoverHeroVariant.STACKED &&
36
+ return (index.h(index.Host, { key: 'b8db9df129ba92efc6c254a1058a9b89186fc6ca' }, this.variant === index$1.CoverHeroVariant.STACKED &&
37
37
  this.contentPosition === index$1.CoverHeroContentPosition.TOP &&
38
- this.renderContent(), index.h("div", { key: 'b84e940db5381001045b9ebe7dfec5069ab27694', class: "main-container" }, index.h("div", { key: 'f46b165bd73a5eca477cd43164999ad5517b821c', class: "cover-container" }, index.h("slot", { key: 'cf61e486fd79bbbf38aa788f33dbd857dba86109', name: "cover" })), index.h("slot", { key: 'd0a748e763dde074c1c25c9aacf84d7357c17f14', name: "info-reveal" }), this.variant === index$1.CoverHeroVariant.OVERLAY && this.renderContent()), this.variant === index$1.CoverHeroVariant.STACKED &&
38
+ this.renderContent(), index.h("div", { key: '8b959ffe0c0c4fbddacb20ced4401234a8482ba3', class: "main-container" }, index.h("div", { key: '87918b02dc80974fb17400a64ffc3fdd277d8a14', class: "cover-container" }, index.h("slot", { key: '311401325e923d2f944b2f2989b2f2dc95971413', name: "cover" })), index.h("slot", { key: '7137546741734ea302b8fb00eea39f334c6780d2', name: "info-reveal" }), this.variant === index$1.CoverHeroVariant.OVERLAY && this.renderContent()), this.variant === index$1.CoverHeroVariant.STACKED &&
39
39
  this.contentPosition === index$1.CoverHeroContentPosition.BOTTOM &&
40
40
  this.renderContent()));
41
41
  }
@@ -1006,16 +1006,16 @@ const ZModal = class {
1006
1006
  e.preventDefault();
1007
1007
  }
1008
1008
  render() {
1009
- return (index.h("dialog", { key: '503ac50f3dc7be8877138ac79cf6ced2e980d5ba', class: {
1009
+ return (index.h("dialog", { key: '879616ceb0fe8efdc260faf34308b8abde70a9dc', class: {
1010
1010
  "modal-dialog": !this.scrollInside,
1011
- }, "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) }, index.h("div", { key: '465d23e5c49aa84569d9da23f8147ea4623c2ebe', class: {
1011
+ }, "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) }, index.h("div", { key: 'cbb8ef7c9ddabbdfddf1abd92a95ffb78109f3ba', class: {
1012
1012
  "modal-container": true,
1013
1013
  "modal-container-scroll-inside": this.scrollInside,
1014
1014
  "modal-container-scroll-outside": !this.scrollInside,
1015
- }, id: this.modalid }, index.h("header", { key: '3fc4ed74ba4a9d12603721ab6ae30f0ae2cc4873', onClick: this.emitModalHeaderActive.bind(this) }, index.h("div", { key: '03a4a96b10ddbd58a1c2232ce951910fff75d9a9' }, this.modaltitle && index.h("h1", { key: 'cd3477f565c3f9ff1da20ec2d3984275156fc429', id: "modal-title" }, this.modaltitle), this.closeButtonSlot()), this.modalsubtitle && (index.h("div", { key: '28aa28df2002147057dce0bb1ea62541cfcc4d2b', class: "subtitle", id: "modal-subtitle" }, this.modalsubtitle))), index.h("div", { key: '02d3b8ac1fa32e84ff837f6937065c81ec03f047', class: {
1015
+ }, id: this.modalid }, index.h("header", { key: 'fa1811f7d3ac5a58163acc6e9292fa0cbf899b6f', onClick: this.emitModalHeaderActive.bind(this) }, index.h("div", { key: 'ded46a7e313929991a9740c7f1baf3885b85ce15' }, this.modaltitle && index.h("h1", { key: 'd127c62752ed24c849fb1de7e3e44e3ef72ea564', id: "modal-title" }, this.modaltitle), this.closeButtonSlot()), this.modalsubtitle && (index.h("div", { key: '7055e46bc31534ef074246aaf95158b1cd9b4078', class: "subtitle", id: "modal-subtitle" }, this.modalsubtitle))), index.h("div", { key: 'fec1db797c7cd9ed298c62da41327f07547375d4', class: {
1016
1016
  "modal-content-scroll-inside": this.scrollInside,
1017
1017
  "modal-content-scroll-outside": !this.scrollInside,
1018
- }, id: "modal-content" }, index.h("slot", { key: '01f16e6a6c9b1caa16271ddd28a01ac0c3ae5e5f', name: "modalContent" }))), index.h("div", { key: '7cb7575c0f661982ed7853ca3df904331fea6c57', class: {
1018
+ }, id: "modal-content" }, index.h("slot", { key: 'fead24447d41a1eaf4972d9c65bdc42b1937988f', name: "modalContent" }))), index.h("div", { key: '322c011045b5ed86aabc924217e142a7233f1eeb', class: {
1019
1019
  "modal-background": true,
1020
1020
  "modal-background-scroll-outside": !this.scrollInside,
1021
1021
  }, "data-action": "modalBackground", "data-modal": this.modalid, onClick: () => {
@@ -12,7 +12,7 @@ const ZGhostLoading = class {
12
12
  index.registerInstance(this, hostRef);
13
13
  }
14
14
  render() {
15
- return index.h(index.Host, { key: '1b6194b00f5be2533e18e4c6a914f4e51bf7e7bd' });
15
+ return index.h(index.Host, { key: '2881f3b25dedc311f34cd76911ff96f2fdfc0c41' });
16
16
  }
17
17
  };
18
18
  ZGhostLoading.style = ZGhostLoadingStyle0;
@@ -18,7 +18,7 @@ const ZInfoBox = class {
18
18
  this.infoBoxClose.emit({ boxid: this.boxid });
19
19
  }
20
20
  render() {
21
- return (index.h("div", { key: '4e08c5c0d3c070db1944b3ab5745d192fd4e8013', id: this.boxid }, index.h("slot", { key: 'f94d50c3fd311445d4abb7e3f12c387c3be4724d', name: "content" }), this.isclosable && (index.h("z-icon", { key: '165b638f14604a45a798210ea2de1c9f59bb3612', name: "multiply", "data-action": "infoBoxClose", onClick: () => this.emitInfoBoxClose() }))));
21
+ return (index.h("div", { key: '2f83796cb61288f4250b00847fe63005e9d62f5c', id: this.boxid }, index.h("slot", { key: '7531c58a7563a6e30f68df36a0a92650ee19b3b5', name: "content" }), this.isclosable && (index.h("z-icon", { key: 'ac0ae6e8195f62c776b2ee7da5dac09a0f17b703', name: "multiply", "data-action": "infoBoxClose", onClick: () => this.emitInfoBoxClose() }))));
22
22
  }
23
23
  };
24
24
  ZInfoBox.style = ZInfoBoxStyle0;
@@ -50,7 +50,7 @@ const ZInfoReveal = class {
50
50
  }
51
51
  }
52
52
  render() {
53
- return (index.h(index.Host, { key: '0cd6457cdde5047f859f7e11feee92fb9dd0eb31', open: this.open }, index.h("button", { key: '63fd527be4c6d7de36aa8546dc47874ad571de01', class: "z-info-reveal-trigger", type: "button", onClick: this.togglePanel.bind(this), "aria-label": !this.label ? this.ariaLabel : undefined, "aria-expanded": this.open ? "true" : "false", "aria-controls": "z-info-reveal-panel" }, this.icon && index.h("z-icon", { key: '0297eed1694a18d08b9290568a503afb441127ea', name: this.icon }), this.label && index.h("span", { key: '0fa5ff78efe186486b6991fec0edbcd560a2f302', class: "z-info-reveal-label" }, this.label)), index.h("div", { key: '6d1125e73e361aee556994e3e311196dfa288dee', class: "z-info-reveal-panel", id: "z-info-reveal-panel", ref: (el) => (this.panel = el), hidden: !this.open }, index.h("slot", { key: 'fe7b4a62cb6306418f935254139cfc4b0048a821' }), index.h("button", { key: '789d137466ede751579c4c64eddd04269eda3c12', class: "z-info-reveal-close", type: "button", onClick: this.closePanel.bind(this), "aria-label": "Chiudi pannello informazioni" }, index.h("z-icon", { key: '267e312def7799ab52a9fac1923d33538c8e9218', name: "multiply" })))));
53
+ return (index.h(index.Host, { key: '26f1289a1592702b470934f4d9fe38c34039a013', open: this.open }, index.h("button", { key: '970af3aaf1e9460ee380249de460389f1bdfdfda', class: "z-info-reveal-trigger", type: "button", onClick: this.togglePanel.bind(this), "aria-label": !this.label ? this.ariaLabel : undefined, "aria-expanded": this.open ? "true" : "false", "aria-controls": "z-info-reveal-panel" }, this.icon && index.h("z-icon", { key: '396653feab94053d64b2157d4a79699d54cf5cf5', name: this.icon }), this.label && index.h("span", { key: '785319a805aecdf9f8c2ffa5f451c0f2868c5df3', class: "z-info-reveal-label" }, this.label)), index.h("div", { key: '729762b03fd3d2fb73914ed9a46d2634ff6b8d0b', class: "z-info-reveal-panel", id: "z-info-reveal-panel", ref: (el) => (this.panel = el), hidden: !this.open }, index.h("slot", { key: 'a16a68e1e7c4b1bcb10e69d1fe48fbe5f8dfda26' }), index.h("button", { key: 'e91b170b87e62dab979876413aad47bdb5e9d758', class: "z-info-reveal-close", type: "button", onClick: this.closePanel.bind(this), "aria-label": "Chiudi pannello informazioni" }, index.h("z-icon", { key: '772445e4bc3895c5c0328a5e7adca8994324c471', name: "multiply" })))));
54
54
  }
55
55
  get host() { return index.getElement(this); }
56
56
  static get watchers() { return {
@@ -25,7 +25,7 @@ const ZLogo = class {
25
25
  if (this.height) {
26
26
  style["height"] = style["max-height"] = `${this.height}px`;
27
27
  }
28
- return (index.h(index.Host, { key: 'b7aef0e1a12aefa4609fc698ac287245d93144f0', style: style, class: { mobile: !!this.mobileLogo } }, this.link ? (index.h("a", { href: this.link, target: this.targetBlank ? "_blank" : "_self" }, index.h("img", { alt: this.imageAlt }))) : (index.h("img", { alt: this.imageAlt }))));
28
+ return (index.h(index.Host, { key: '62a2be82e036760d34d812904b967ac96a22604a', style: style, class: { mobile: !!this.mobileLogo } }, this.link ? (index.h("a", { href: this.link, target: this.targetBlank ? "_blank" : "_self" }, index.h("img", { alt: this.imageAlt }))) : (index.h("img", { alt: this.imageAlt }))));
29
29
  }
30
30
  };
31
31
  ZLogo.style = ZLogoStyle0;
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index$1 = require('./index-96af6326.js');
6
6
  const index = require('./index-bab7a651.js');
7
7
 
8
- const stylesCss = ":host{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:0;font-family:var(--font-family-sans)}:host,::slotted(*),*{box-sizing:border-box}::slotted(a){text-decoration:none}::slotted(*){color:var(--color-default-text);font-family:var(--font-family-sans);font-weight:var(--font-rg)}.label{display:flex;width:100%;align-items:center;padding:var(--space-unit) 0;border:0;border-bottom:var(--border-size-small) solid var(--color-surface03);margin:0;background:transparent;border-radius:0;cursor:pointer;text-align:left}:host(:is([active],[open])) .label,.label:focus:focus-visible,.label:hover{border-color:var(--color-secondary01)}.label:focus:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none}:host(:is([active],[open])) .label ::slotted(*),.label:focus:focus-visible ::slotted(*),.label:hover ::slotted(*){font-weight:var(--font-bd)}::slotted([data-text]){display:inline-flex;flex-direction:column}::slotted([data-text])::after{overflow:hidden;height:0;content:attr(data-text);content:attr(data-text) / \"\";font-weight:var(--font-bd);pointer-events:none;user-select:none;visibility:hidden}@media speech{::slotted([data-text])::after{display:none}}.label ::slotted(*){width:100%;margin:0;font-size:var(--font-size-3);line-height:1.5}.label z-icon{margin-left:calc(var(--space-unit) * 4);fill:var(--color-default-icon)}.items{display:flex;width:100%;flex-direction:column;padding:calc(var(--space-unit) / 2);padding-bottom:calc(var(--space-unit) * 1.5)}::slotted([slot=\"section\"]){display:inline-flex;padding:calc(var(--space-unit) / 2);margin:0;font-size:var(--font-size-1);line-height:1.333;outline:none}::slotted([slot=\"section\"]:last-of-type){border:none}::slotted([slot=\"section\"]:focus:focus-visible){box-shadow:var(--shadow-focus-primary);color:var(--color-secondary01)}::slotted([slot=\"section\"]:hover),::slotted([slot=\"section\"]:focus:focus-visible),::slotted([slot=\"section\"][active]){color:var(--color-secondary01);font-weight:var(--font-bd)}";
8
+ const stylesCss = ":host{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:0;font-family:var(--font-family-sans)}:host,::slotted(*),*{box-sizing:border-box}::slotted(a){text-decoration:none}::slotted(*){color:var(--color-default-text);font-family:var(--font-family-sans);font-weight:var(--font-rg)}.label{display:flex;width:100%;align-items:center;padding:var(--space-unit) 0;border:0;border-bottom:var(--border-size-small) solid var(--color-surface03);margin:0;background:transparent;border-radius:0;cursor:pointer;text-align:left}:host(:last-child:not([open])) .label{border-bottom:none}:host(:is([active],[open])) .label,.label:focus:focus-visible,.label:hover{border-color:var(--color-secondary01)}.label:focus:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none}:host(:is([active],[open])) .label ::slotted(*),.label:focus:focus-visible ::slotted(*),.label:hover ::slotted(*){font-weight:var(--font-bd)}::slotted([data-text]){display:inline-flex;flex-direction:column}::slotted([data-text])::after{overflow:hidden;height:0;content:attr(data-text);content:attr(data-text) / \"\";font-weight:var(--font-bd);pointer-events:none;user-select:none;visibility:hidden}@media speech{::slotted([data-text])::after{display:none}}.label ::slotted(*){width:100%;margin:0;font-size:var(--font-size-3);line-height:1.5}.label z-icon{margin-left:calc(var(--space-unit) * 4);fill:var(--color-default-icon)}.items{display:flex;width:100%;flex-direction:column;padding:calc(var(--space-unit) / 2);padding-bottom:calc(var(--space-unit) * 1.5)}.items[hidden]{display:none}::slotted([slot=\"section\"]){display:inline-flex;padding:calc(var(--space-unit) / 2);margin:0;font-size:var(--font-size-1);line-height:1.333;outline:none}::slotted([slot=\"section\"]:last-of-type){border:none}::slotted([slot=\"section\"]:focus:focus-visible){box-shadow:var(--shadow-focus-primary);color:var(--color-secondary01)}::slotted([slot=\"section\"]:hover),::slotted([slot=\"section\"]:focus:focus-visible),::slotted([slot=\"section\"][active]){color:var(--color-secondary01);font-weight:var(--font-bd)}";
9
9
  const ZMenuSectionStyle0 = stylesCss;
10
10
 
11
11
  const ZMenuSection = class {
@@ -17,15 +17,14 @@ const ZMenuSection = class {
17
17
  return;
18
18
  }
19
19
  this.open = !this.open;
20
- this.setFocus();
21
20
  }
22
21
  setItemsA11yAttrs() {
23
22
  if (!this.hasItems) {
24
23
  return;
25
24
  }
26
- this.items.forEach((item, index) => {
25
+ this.items.forEach((item) => {
27
26
  item.setAttribute("role", "menuitem");
28
- item.setAttribute("tabindex", index === 0 ? "0" : "-1");
27
+ item.tabIndex = -1;
29
28
  });
30
29
  }
31
30
  onItemsChange() {
@@ -41,11 +40,18 @@ const ZMenuSection = class {
41
40
  const labelElement = ev.target.assignedElements()[0];
42
41
  labelElement.dataset.text = labelElement === null || labelElement === void 0 ? void 0 : labelElement.textContent;
43
42
  }
43
+ onLabelClick() {
44
+ this.toggle();
45
+ this.setFocus();
46
+ }
44
47
  onLabelKeydown(ev) {
45
48
  if (ev.key === index.KeyboardCode.ENTER || ev.key === index.KeyboardCode.SPACE) {
46
49
  ev.preventDefault();
47
50
  ev.stopPropagation();
48
51
  this.toggle();
52
+ if (this.open) {
53
+ this.focustFirstItem();
54
+ }
49
55
  }
50
56
  }
51
57
  /**
@@ -61,6 +67,13 @@ const ZMenuSection = class {
61
67
  current.tabIndex = -1;
62
68
  }
63
69
  }
70
+ focustFirstItem() {
71
+ this.moveFocus(this.items[0]);
72
+ }
73
+ /** Focus the last item. */
74
+ async focusLastItem() {
75
+ this.moveFocus(this.items[this.items.length - 1]);
76
+ }
64
77
  /** Set tabindex of the label to 0, then focus it. */
65
78
  async setFocus() {
66
79
  this.htmlTabindex = 0;
@@ -68,15 +81,10 @@ const ZMenuSection = class {
68
81
  this.label.focus();
69
82
  }, 100);
70
83
  }
71
- /** Focus the last item. */
72
- async focusLastItem() {
73
- this.htmlTabindex = 0;
74
- this.moveFocus(this.items[this.items.length - 1]);
75
- }
76
84
  onOpenChange() {
77
85
  if (!this.open) {
78
- this.closed.emit();
79
86
  this.setItemsA11yAttrs();
87
+ this.closed.emit();
80
88
  }
81
89
  else {
82
90
  this.opened.emit();
@@ -94,7 +102,7 @@ const ZMenuSection = class {
94
102
  }
95
103
  ev.preventDefault();
96
104
  ev.stopPropagation();
97
- this.label.focus();
105
+ this.moveFocus(this.label, this.focusableItem);
98
106
  this.open = false;
99
107
  break;
100
108
  case index.KeyboardCode.ARROW_RIGHT:
@@ -104,6 +112,7 @@ const ZMenuSection = class {
104
112
  ev.preventDefault();
105
113
  ev.stopPropagation();
106
114
  this.open = true;
115
+ this.focustFirstItem();
107
116
  break;
108
117
  case index.KeyboardCode.ARROW_DOWN: {
109
118
  if (!this.open) {
@@ -112,7 +121,7 @@ const ZMenuSection = class {
112
121
  if (document.activeElement === this.host) {
113
122
  ev.preventDefault();
114
123
  ev.stopPropagation();
115
- this.moveFocus(this.items[0]);
124
+ this.focustFirstItem();
116
125
  break;
117
126
  }
118
127
  const currentIndex = this.items.indexOf(this.focusableItem);
@@ -122,6 +131,10 @@ const ZMenuSection = class {
122
131
  ev.stopPropagation();
123
132
  this.moveFocus(receiver, this.focusableItem);
124
133
  }
134
+ else {
135
+ this.htmlTabindex = 0;
136
+ this.focusableItem.tabIndex = -1;
137
+ }
125
138
  break;
126
139
  }
127
140
  case index.KeyboardCode.ARROW_UP: {
@@ -137,6 +150,7 @@ const ZMenuSection = class {
137
150
  }
138
151
  else {
139
152
  // since there isn't a previous item to focus, give the focus to the label element
153
+ this.focusableItem.tabIndex = -1;
140
154
  this.setFocus();
141
155
  }
142
156
  break;
@@ -155,6 +169,7 @@ const ZMenuSection = class {
155
169
  this.toggle = this.toggle.bind(this);
156
170
  this.onItemsChange = this.onItemsChange.bind(this);
157
171
  this.onLabelSlotChange = this.onLabelSlotChange.bind(this);
172
+ this.onLabelClick = this.onLabelClick.bind(this);
158
173
  this.onLabelKeydown = this.onLabelKeydown.bind(this);
159
174
  this.onItemsKeydown = this.onItemsKeydown.bind(this);
160
175
  }
@@ -162,7 +177,7 @@ const ZMenuSection = class {
162
177
  this.onItemsChange();
163
178
  }
164
179
  render() {
165
- return (index$1.h(index$1.Host, { key: 'a58fd957918eab0f454db204a6eac3110210f0f2', open: this.open }, index$1.h("button", { key: '6aae1a09645e5ade59d9dd981c48918807aa64a8', ref: (el) => (this.label = el), class: "label", "aria-haspopup": `${this.hasItems}`, "aria-expanded": `${!!this.open}`, role: "menuitem", tabindex: this.htmlTabindex, onClick: this.toggle, onKeyDown: this.onLabelKeydown }, index$1.h("slot", { key: '5bbc844689cc49456cdcd391c7c402894d261fe9', onSlotchange: this.onLabelSlotChange }), this.hasItems && index$1.h("z-icon", { key: '24be441cdef80f2fb7545d7a9e061dd62966b201', name: this.open ? "chevron-up" : "chevron-down" })), this.open && (index$1.h("div", { key: '4f9fcbc713d8b21f64d0899e47fbd6eb22728eec', class: "items", role: "menu" }, index$1.h("slot", { key: '2095cae82e0315848efd06f4136d0be7ca5a0f37', name: "section", onSlotchange: this.onItemsChange })))));
180
+ return (index$1.h(index$1.Host, { key: '4d9223bebf25df5eb224a7674c920ebc17470826', open: this.open }, index$1.h("button", { key: '2f75c046ad4519df706283d3b37c2d9feb8734d3', ref: (el) => (this.label = el), class: "label", "aria-haspopup": `${!!this.hasItems}`, "aria-expanded": `${!!this.open}`, role: "menuitem", tabindex: this.htmlTabindex, onClick: this.onLabelClick, onKeyDown: this.onLabelKeydown }, index$1.h("slot", { key: '0a3b20723371deac12792436d977c343c237720b', onSlotchange: this.onLabelSlotChange }), this.hasItems && index$1.h("z-icon", { key: '7fe5e9dc4a9eac28f0f3a381fedbe0ec3e7ca99d', name: this.open ? "chevron-up" : "chevron-down" })), index$1.h("div", { key: '80e167ce90df12c27eddc1e28b6bf6dd3b5d0dd7', class: "items", role: "menu", hidden: !this.open }, index$1.h("slot", { key: 'a0e88a56848abf198ced22e4fc390267aea6114e', name: "section", onSlotchange: this.onItemsChange }))));
166
181
  }
167
182
  get host() { return index$1.getElement(this); }
168
183
  static get watchers() { return {
@@ -1 +1 @@
1
- {"file":"z-menu-section.entry.cjs.js","mappings":";;;;;;;AAAA,MAAM,SAAS,GAAG,k+DAAk+D,CAAC;AACr/D,2BAAe,SAAS;;MCYX,YAAY;IAkCvB,IAAY,aAAa;QACvB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,EAAC,QAAQ,EAAC,KAAK,QAAQ,KAAK,CAAC,CAAC,CAAC;KACxD;IAEO,MAAM;QACZ,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;YAClB,OAAO;SACR;QAED,IAAI,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC;QACvB,IAAI,CAAC,QAAQ,EAAE,CAAC;KACjB;IAEO,iBAAiB;QACvB,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;YAClB,OAAO;SACR;QAED,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,KAAK;YAC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,CACP,CACI,EACP;KACH;;;;;;;;;;;","names":["KeyboardCode","h","Host"],"sources":["src/components/z-menu-section/styles.css?tag=z-menu-section&encapsulation=shadow","src/components/z-menu-section/index.tsx"],"sourcesContent":[":host {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: center;\n padding: 0;\n font-family: var(--font-family-sans);\n}\n\n:host,\n::slotted(*),\n* {\n box-sizing: border-box;\n}\n\n::slotted(a) {\n text-decoration: none;\n}\n\n::slotted(*) {\n color: var(--color-default-text);\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n}\n\n.label {\n display: flex;\n width: 100%;\n align-items: center;\n padding: var(--space-unit) 0;\n border: 0;\n border-bottom: var(--border-size-small) solid var(--color-surface03);\n margin: 0;\n background: transparent;\n border-radius: 0;\n cursor: pointer;\n text-align: left;\n}\n\n:host(:is([active], [open])) .label,\n.label:focus:focus-visible,\n.label:hover {\n border-color: var(--color-secondary01);\n}\n\n.label:focus:focus-visible {\n box-shadow: var(--shadow-focus-primary);\n outline: none;\n}\n\n:host(:is([active], [open])) .label ::slotted(*),\n.label:focus:focus-visible ::slotted(*),\n.label:hover ::slotted(*) {\n font-weight: var(--font-bd);\n}\n\n::slotted([data-text]) {\n display: inline-flex;\n flex-direction: column;\n}\n\n/* Trick to prevent layout shifts on font-weight changes.\nThe trick is to put an hidden copy of the text already set to bold,\nso the needed space is correctly calculated before any hover/active state changes the\nfont-weight of the real text.\nThe hidden text has an height of 0px so it can expand the width without changing the height\nwhen placed below the real text using `flex-direction: column`. */\n::slotted([data-text])::after {\n overflow: hidden;\n height: 0;\n content: attr(data-text);\n content: attr(data-text) / \"\";\n font-weight: var(--font-bd);\n pointer-events: none;\n user-select: none;\n visibility: hidden;\n}\n\n@media speech {\n ::slotted([data-text])::after {\n display: none;\n }\n}\n\n.label ::slotted(*) {\n width: 100%;\n margin: 0;\n font-size: var(--font-size-3);\n line-height: 1.5;\n}\n\n.label z-icon {\n margin-left: calc(var(--space-unit) * 4);\n fill: var(--color-default-icon);\n}\n\n.items {\n display: flex;\n width: 100%;\n flex-direction: column;\n padding: calc(var(--space-unit) / 2);\n padding-bottom: calc(var(--space-unit) * 1.5);\n}\n\n::slotted([slot=\"section\"]) {\n display: inline-flex;\n padding: calc(var(--space-unit) / 2);\n margin: 0;\n font-size: var(--font-size-1);\n line-height: 1.333;\n outline: none;\n}\n\n::slotted([slot=\"section\"]:last-of-type) {\n border: none;\n}\n\n::slotted([slot=\"section\"]:focus:focus-visible) {\n box-shadow: var(--shadow-focus-primary);\n color: var(--color-secondary01);\n}\n\n::slotted([slot=\"section\"]:hover),\n::slotted([slot=\"section\"]:focus:focus-visible),\n::slotted([slot=\"section\"][active]) {\n color: var(--color-secondary01);\n font-weight: var(--font-bd);\n}\n","import {Component, Element, Event, EventEmitter, Host, Listen, Method, Prop, State, Watch, h} from \"@stencil/core\";\nimport {KeyboardCode} from \"../../beans\";\n\n/**\n * A component to create submenus inside the ZMenu.\n * @slot - Label of the menu section.\n * @slot item - Single entry of the section. Set the same slot name to different items to put many of them. Add the `active` attribute to a slotted item to highlight it.\n */\n@Component({\n tag: \"z-menu-section\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZMenuSection {\n @Element() host: HTMLZMenuSectionElement;\n\n /** Active state */\n @Prop({reflect: true})\n active?: boolean;\n\n /**\n * Tabindex value to set on the label button.\n * Useful to manage keyboard navigation focus with roving tabindex handled by this component's parent (usually ZMenu).\n */\n @Prop()\n htmlTabindex = -1;\n\n /** The opening state of the section. */\n @Prop({mutable: true})\n open: boolean;\n\n @State()\n hasItems: boolean;\n\n @State()\n items: HTMLElement[];\n\n /** The section has been opened. */\n @Event()\n opened: EventEmitter;\n\n /** The section has been closed. */\n @Event()\n closed: EventEmitter;\n\n private label: HTMLButtonElement;\n\n private get focusableItem(): HTMLElement {\n return this.items.find(({tabIndex}) => tabIndex === 0);\n }\n\n private toggle(): void {\n if (!this.hasItems) {\n return;\n }\n\n this.open = !this.open;\n this.setFocus();\n }\n\n private setItemsA11yAttrs(): void {\n if (!this.hasItems) {\n return;\n }\n\n this.items.forEach((item, index) => {\n item.setAttribute(\"role\", \"menuitem\");\n item.setAttribute(\"tabindex\", index === 0 ? \"0\" : \"-1\");\n });\n }\n\n private onItemsChange(): void {\n this.items = Array.from(this.host.querySelectorAll('[slot=\"section\"]')) as HTMLElement[];\n this.hasItems = this.items.length > 0;\n this.setItemsA11yAttrs();\n }\n\n /**\n * Sets slotted item text as `data-text` attribute value, to let CSS use it through `attr()`.\n * @param ev Slotchange event\n */\n private onLabelSlotChange(ev: Event): void {\n const labelElement = (ev.target as HTMLSlotElement).assignedElements()[0] as HTMLElement;\n labelElement.dataset.text = labelElement?.textContent;\n }\n\n private onLabelKeydown(ev: KeyboardEvent): void {\n if (ev.key === KeyboardCode.ENTER || ev.key === KeyboardCode.SPACE) {\n ev.preventDefault();\n ev.stopPropagation();\n this.toggle();\n }\n }\n\n /**\n * Move focus and adjust the tabindex value of `receiver` and `current` elements,\n * setting -1 to the `current` and 0 to the `receiver`, then focus the `receiver` element.\n */\n private moveFocus(receiver: HTMLElement, current?: HTMLElement): void {\n receiver.tabIndex = 0;\n setTimeout(() => {\n receiver.focus();\n }, 100);\n if (current) {\n current.tabIndex = -1;\n }\n }\n\n /** Set tabindex of the label to 0, then focus it. */\n @Method()\n async setFocus(): Promise<void> {\n this.htmlTabindex = 0;\n setTimeout(() => {\n this.label.focus();\n }, 100);\n }\n\n /** Focus the last item. */\n @Method()\n async focusLastItem(): Promise<void> {\n this.htmlTabindex = 0;\n this.moveFocus(this.items[this.items.length - 1]);\n }\n\n @Watch(\"open\")\n onOpenChange(): void {\n if (!this.open) {\n this.closed.emit();\n this.setItemsA11yAttrs();\n } else {\n this.opened.emit();\n }\n }\n\n @Watch(\"htmlTabindex\")\n onTabindexChange(): void {\n this.label.tabIndex = this.htmlTabindex;\n }\n\n @Listen(\"keydown\")\n private onItemsKeydown(ev: KeyboardEvent): void {\n switch (ev.key) {\n case KeyboardCode.ESC:\n case KeyboardCode.ARROW_LEFT:\n if (!this.open) {\n break;\n }\n ev.preventDefault();\n ev.stopPropagation();\n this.label.focus();\n this.open = false;\n break;\n case KeyboardCode.ARROW_RIGHT:\n if (this.open) {\n break;\n }\n ev.preventDefault();\n ev.stopPropagation();\n this.open = true;\n break;\n case KeyboardCode.ARROW_DOWN: {\n if (!this.open) {\n break;\n }\n if (document.activeElement === this.host) {\n ev.preventDefault();\n ev.stopPropagation();\n this.moveFocus(this.items[0]);\n break;\n }\n const currentIndex = this.items.indexOf(this.focusableItem);\n const receiver = this.items[currentIndex + 1];\n if (receiver) {\n ev.preventDefault();\n ev.stopPropagation();\n this.moveFocus(receiver, this.focusableItem);\n }\n break;\n }\n case KeyboardCode.ARROW_UP: {\n if (!this.open || document.activeElement === this.host) {\n break;\n }\n const currentIndex = this.items.indexOf(this.focusableItem);\n const receiver = this.items[currentIndex - 1];\n ev.preventDefault();\n ev.stopPropagation();\n if (receiver) {\n this.moveFocus(receiver, this.focusableItem);\n } else {\n // since there isn't a previous item to focus, give the focus to the label element\n this.setFocus();\n }\n break;\n }\n }\n }\n\n constructor() {\n this.toggle = this.toggle.bind(this);\n this.onItemsChange = this.onItemsChange.bind(this);\n this.onLabelSlotChange = this.onLabelSlotChange.bind(this);\n this.onLabelKeydown = this.onLabelKeydown.bind(this);\n this.onItemsKeydown = this.onItemsKeydown.bind(this);\n }\n\n connectedCallback(): void {\n this.onItemsChange();\n }\n\n render(): HTMLZMenuSectionElement {\n return (\n <Host open={this.open}>\n <button\n ref={(el) => (this.label = el)}\n class=\"label\"\n aria-haspopup={`${this.hasItems}`}\n aria-expanded={`${!!this.open}`}\n role=\"menuitem\"\n tabindex={this.htmlTabindex}\n onClick={this.toggle}\n onKeyDown={this.onLabelKeydown}\n >\n <slot onSlotchange={this.onLabelSlotChange} />\n {this.hasItems && <z-icon name={this.open ? \"chevron-up\" : \"chevron-down\"} />}\n </button>\n {this.open && (\n <div\n class=\"items\"\n role=\"menu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AAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC3D,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACjD,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrD,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KACtD;IAED,iBAAiB;QACf,IAAI,CAAC,aAAa,EAAE,CAAC;KACtB;IAED,MAAM;QACJ,QACEC,UAACC,YAAI,qDAAC,IAAI,EAAE,IAAI,CAAC,IAAI,IACnBD,uEACE,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC,EAC9B,KAAK,EAAC,OAAO,mBACE,GAAG,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,mBACpB,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,EAC/B,IAAI,EAAC,UAAU,EACf,QAAQ,EAAE,IAAI,CAAC,YAAY,EAC3B,OAAO,EAAE,IAAI,CAAC,YAAY,EAC1B,SAAS,EAAE,IAAI,CAAC,cAAc,IAE9BA,qEAAM,YAAY,EAAE,IAAI,CAAC,iBAAiB,GAAI,EAC7C,IAAI,CAAC,QAAQ,IAAIA,uEAAQ,IAAI,EAAE,IAAI,CAAC,IAAI,GAAG,YAAY,GAAG,cAAc,GAAI,CACtE,EACTA,oEACE,KAAK,EAAC,OAAO,EACb,IAAI,EAAC,MAAM,EACX,MAAM,EAAE,CAAC,IAAI,CAAC,IAAI,IAElBA,qEACE,IAAI,EAAC,SAAS,EACd,YAAY,EAAE,IAAI,CAAC,aAAa,GAChC,CACE,CACD,EACP;KACH;;;;;;;;;;;","names":["KeyboardCode","h","Host"],"sources":["src/components/z-menu-section/styles.css?tag=z-menu-section&encapsulation=shadow","src/components/z-menu-section/index.tsx"],"sourcesContent":[":host {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: center;\n padding: 0;\n font-family: var(--font-family-sans);\n}\n\n:host,\n::slotted(*),\n* {\n box-sizing: border-box;\n}\n\n::slotted(a) {\n text-decoration: none;\n}\n\n::slotted(*) {\n color: var(--color-default-text);\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n}\n\n.label {\n display: flex;\n width: 100%;\n align-items: center;\n padding: var(--space-unit) 0;\n border: 0;\n border-bottom: var(--border-size-small) solid var(--color-surface03);\n margin: 0;\n background: transparent;\n border-radius: 0;\n cursor: pointer;\n text-align: left;\n}\n\n:host(:last-child:not([open])) .label {\n border-bottom: none;\n}\n\n:host(:is([active], [open])) .label,\n.label:focus:focus-visible,\n.label:hover {\n border-color: var(--color-secondary01);\n}\n\n.label:focus:focus-visible {\n box-shadow: var(--shadow-focus-primary);\n outline: none;\n}\n\n:host(:is([active], [open])) .label ::slotted(*),\n.label:focus:focus-visible ::slotted(*),\n.label:hover ::slotted(*) {\n font-weight: var(--font-bd);\n}\n\n::slotted([data-text]) {\n display: inline-flex;\n flex-direction: column;\n}\n\n/* Trick to prevent layout shifts on font-weight changes.\nThe trick is to put an hidden copy of the text already set to bold,\nso the needed space is correctly calculated before any hover/active state changes the\nfont-weight of the real text.\nThe hidden text has an height of 0px so it can expand the width without changing the height\nwhen placed below the real text using `flex-direction: column`. */\n::slotted([data-text])::after {\n overflow: hidden;\n height: 0;\n content: attr(data-text);\n content: attr(data-text) / \"\";\n font-weight: var(--font-bd);\n pointer-events: none;\n user-select: none;\n visibility: hidden;\n}\n\n@media speech {\n ::slotted([data-text])::after {\n display: none;\n }\n}\n\n.label ::slotted(*) {\n width: 100%;\n margin: 0;\n font-size: var(--font-size-3);\n line-height: 1.5;\n}\n\n.label z-icon {\n margin-left: calc(var(--space-unit) * 4);\n fill: var(--color-default-icon);\n}\n\n.items {\n display: flex;\n width: 100%;\n flex-direction: column;\n padding: calc(var(--space-unit) / 2);\n padding-bottom: calc(var(--space-unit) * 1.5);\n}\n\n.items[hidden] {\n display: none;\n}\n\n::slotted([slot=\"section\"]) {\n display: inline-flex;\n padding: calc(var(--space-unit) / 2);\n margin: 0;\n font-size: var(--font-size-1);\n line-height: 1.333;\n outline: none;\n}\n\n::slotted([slot=\"section\"]:last-of-type) {\n border: none;\n}\n\n::slotted([slot=\"section\"]:focus:focus-visible) {\n box-shadow: var(--shadow-focus-primary);\n color: var(--color-secondary01);\n}\n\n::slotted([slot=\"section\"]:hover),\n::slotted([slot=\"section\"]:focus:focus-visible),\n::slotted([slot=\"section\"][active]) {\n color: var(--color-secondary01);\n font-weight: var(--font-bd);\n}\n","import {Component, Element, Event, EventEmitter, Host, Listen, Method, Prop, State, Watch, h} from \"@stencil/core\";\nimport {KeyboardCode} from \"../../beans\";\n\n/**\n * A component to create submenus inside the ZMenu.\n * @slot - Label of the menu section.\n * @slot item - Single entry of the section. Set the same slot name to different items to put many of them. Add the `active` attribute to a slotted item to highlight it.\n */\n@Component({\n tag: \"z-menu-section\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZMenuSection {\n @Element() host: HTMLZMenuSectionElement;\n\n /** Active state */\n @Prop({reflect: true})\n active?: boolean;\n\n /**\n * Tabindex value to set on the label button.\n * Useful to manage keyboard navigation focus with roving tabindex handled by this component's parent (usually ZMenu).\n */\n @Prop()\n htmlTabindex = -1;\n\n /** The opening state of the section. */\n @Prop({mutable: true})\n open: boolean;\n\n @State()\n hasItems: boolean;\n\n @State()\n items: HTMLElement[];\n\n /** The section has been opened. */\n @Event()\n opened: EventEmitter;\n\n /** The section has been closed. */\n @Event()\n closed: EventEmitter;\n\n private label: HTMLButtonElement;\n\n private get focusableItem(): HTMLElement {\n return this.items.find(({tabIndex}) => tabIndex === 0);\n }\n\n private toggle(): void {\n if (!this.hasItems) {\n return;\n }\n\n this.open = !this.open;\n }\n\n private setItemsA11yAttrs(): void {\n if (!this.hasItems) {\n return;\n }\n\n this.items.forEach((item) => {\n item.setAttribute(\"role\", \"menuitem\");\n item.tabIndex = -1;\n });\n }\n\n private onItemsChange(): void {\n this.items = Array.from(this.host.querySelectorAll('[slot=\"section\"]')) as HTMLElement[];\n this.hasItems = this.items.length > 0;\n this.setItemsA11yAttrs();\n }\n\n /**\n * Sets slotted item text as `data-text` attribute value, to let CSS use it through `attr()`.\n * @param ev Slotchange event\n */\n private onLabelSlotChange(ev: Event): void {\n const labelElement = (ev.target as HTMLSlotElement).assignedElements()[0] as HTMLElement;\n labelElement.dataset.text = labelElement?.textContent;\n }\n\n private onLabelClick(): void {\n this.toggle();\n this.setFocus();\n }\n\n private onLabelKeydown(ev: KeyboardEvent): void {\n if (ev.key === KeyboardCode.ENTER || ev.key === KeyboardCode.SPACE) {\n ev.preventDefault();\n ev.stopPropagation();\n this.toggle();\n if (this.open) {\n this.focustFirstItem();\n }\n }\n }\n\n /**\n * Move focus and adjust the tabindex value of `receiver` and `current` elements,\n * setting -1 to the `current` and 0 to the `receiver`, then focus the `receiver` element.\n */\n private moveFocus(receiver: HTMLElement, current?: HTMLElement): void {\n receiver.tabIndex = 0;\n setTimeout(() => {\n receiver.focus();\n }, 100);\n if (current) {\n current.tabIndex = -1;\n }\n }\n\n private focustFirstItem(): void {\n this.moveFocus(this.items[0]);\n }\n\n /** Focus the last item. */\n @Method()\n async focusLastItem(): Promise<void> {\n this.moveFocus(this.items[this.items.length - 1]);\n }\n\n /** Set tabindex of the label to 0, then focus it. */\n @Method()\n async setFocus(): Promise<void> {\n this.htmlTabindex = 0;\n setTimeout(() => {\n this.label.focus();\n }, 100);\n }\n\n @Watch(\"open\")\n onOpenChange(): void {\n if (!this.open) {\n this.setItemsA11yAttrs();\n this.closed.emit();\n } else {\n this.opened.emit();\n }\n }\n\n @Watch(\"htmlTabindex\")\n onTabindexChange(): void {\n this.label.tabIndex = this.htmlTabindex;\n }\n\n @Listen(\"keydown\")\n private onItemsKeydown(ev: KeyboardEvent): void {\n switch (ev.key) {\n case KeyboardCode.ESC:\n case KeyboardCode.ARROW_LEFT:\n if (!this.open) {\n break;\n }\n ev.preventDefault();\n ev.stopPropagation();\n this.moveFocus(this.label, this.focusableItem);\n this.open = false;\n break;\n case KeyboardCode.ARROW_RIGHT:\n if (this.open) {\n break;\n }\n ev.preventDefault();\n ev.stopPropagation();\n this.open = true;\n this.focustFirstItem();\n break;\n case KeyboardCode.ARROW_DOWN: {\n if (!this.open) {\n break;\n }\n if (document.activeElement === this.host) {\n ev.preventDefault();\n ev.stopPropagation();\n this.focustFirstItem();\n break;\n }\n const currentIndex = this.items.indexOf(this.focusableItem);\n const receiver = this.items[currentIndex + 1];\n if (receiver) {\n ev.preventDefault();\n ev.stopPropagation();\n this.moveFocus(receiver, this.focusableItem);\n } else {\n this.htmlTabindex = 0;\n this.focusableItem.tabIndex = -1;\n }\n break;\n }\n case KeyboardCode.ARROW_UP: {\n if (!this.open || document.activeElement === this.host) {\n break;\n }\n const currentIndex = this.items.indexOf(this.focusableItem);\n const receiver = this.items[currentIndex - 1];\n ev.preventDefault();\n ev.stopPropagation();\n if (receiver) {\n this.moveFocus(receiver, this.focusableItem);\n } else {\n // since there isn't a previous item to focus, give the focus to the label element\n this.focusableItem.tabIndex = -1;\n this.setFocus();\n }\n break;\n }\n }\n }\n\n constructor() {\n this.toggle = this.toggle.bind(this);\n this.onItemsChange = this.onItemsChange.bind(this);\n this.onLabelSlotChange = this.onLabelSlotChange.bind(this);\n this.onLabelClick = this.onLabelClick.bind(this);\n this.onLabelKeydown = this.onLabelKeydown.bind(this);\n this.onItemsKeydown = this.onItemsKeydown.bind(this);\n }\n\n connectedCallback(): void {\n this.onItemsChange();\n }\n\n render(): HTMLZMenuSectionElement {\n return (\n <Host open={this.open}>\n <button\n ref={(el) => (this.label = el)}\n class=\"label\"\n aria-haspopup={`${!!this.hasItems}`}\n aria-expanded={`${!!this.open}`}\n role=\"menuitem\"\n tabindex={this.htmlTabindex}\n onClick={this.onLabelClick}\n onKeyDown={this.onLabelKeydown}\n >\n <slot onSlotchange={this.onLabelSlotChange} />\n {this.hasItems && <z-icon name={this.open ? \"chevron-up\" : \"chevron-down\"} />}\n </button>\n <div\n class=\"items\"\n role=\"menu\"\n hidden={!this.open}\n >\n <slot\n name=\"section\"\n onSlotchange={this.onItemsChange}\n />\n </div>\n </Host>\n );\n }\n}\n"],"version":3}