@zanichelli/albe-web-components 17.0.5-RC2 → 17.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1437) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/dist/cjs/index-2a9a328d.js +47 -0
  3. package/dist/cjs/index-2a9a328d.js.map +1 -0
  4. package/dist/cjs/index-4e2d222e.js +21 -0
  5. package/dist/cjs/index-4e2d222e.js.map +1 -0
  6. package/dist/cjs/index-7191c0cc.js +21 -0
  7. package/dist/cjs/index-7191c0cc.js.map +1 -0
  8. package/dist/cjs/index-a6593d82.js +20 -0
  9. package/dist/cjs/index-a6593d82.js.map +1 -0
  10. package/dist/cjs/index-aa56c709.js +59 -0
  11. package/dist/cjs/index-aa56c709.js.map +1 -0
  12. package/dist/cjs/index-b2f35532.js +67 -0
  13. package/dist/cjs/index-b2f35532.js.map +1 -0
  14. package/dist/cjs/z-accordion.cjs.entry.js +1 -1
  15. package/dist/cjs/z-accordion.cjs.entry.js.map +1 -1
  16. package/dist/cjs/z-alert.cjs.entry.js +1 -1
  17. package/dist/cjs/z-alert.cjs.entry.js.map +1 -1
  18. package/dist/cjs/z-anchor-navigation.cjs.entry.js +1 -1
  19. package/dist/cjs/z-anchor-navigation.cjs.entry.js.map +1 -1
  20. package/dist/cjs/z-app-header-deprecated.cjs.entry.js +1 -1
  21. package/dist/cjs/z-app-header-deprecated.cjs.entry.js.map +1 -1
  22. package/dist/cjs/z-app-header_12.cjs.entry.js +9 -9
  23. package/dist/cjs/z-app-header_12.cjs.entry.js.map +1 -1
  24. package/dist/cjs/z-avatar.cjs.entry.js +1 -1
  25. package/dist/cjs/z-avatar.cjs.entry.js.map +1 -1
  26. package/dist/cjs/z-book-card-app.cjs.entry.js +2 -2
  27. package/dist/cjs/z-book-card-app.cjs.entry.js.map +1 -1
  28. package/dist/cjs/z-book-card-deprecated.cjs.entry.js +1 -1
  29. package/dist/cjs/z-book-card-deprecated.cjs.entry.js.map +1 -1
  30. package/dist/cjs/z-book-card.cjs.entry.js +2 -2
  31. package/dist/cjs/z-book-card.cjs.entry.js.map +1 -1
  32. package/dist/cjs/z-breadcrumb.cjs.entry.js +1 -1
  33. package/dist/cjs/z-breadcrumb.cjs.entry.js.map +1 -1
  34. package/dist/cjs/z-button-sort.cjs.entry.js +1 -1
  35. package/dist/cjs/z-button-sort.cjs.entry.js.map +1 -1
  36. package/dist/cjs/z-card.cjs.entry.js +1 -1
  37. package/dist/cjs/z-card.cjs.entry.js.map +1 -1
  38. package/dist/cjs/z-carousel.cjs.entry.js +1 -1
  39. package/dist/cjs/z-carousel.cjs.entry.js.map +1 -1
  40. package/dist/cjs/z-chip.cjs.entry.js +1 -1
  41. package/dist/cjs/z-chip.cjs.entry.js.map +1 -1
  42. package/dist/cjs/z-combobox.cjs.entry.js +1 -1
  43. package/dist/cjs/z-combobox.cjs.entry.js.map +1 -1
  44. package/dist/cjs/z-cover-hero.cjs.entry.js +1 -1
  45. package/dist/cjs/z-cover-hero.cjs.entry.js.map +1 -1
  46. package/dist/cjs/z-date-picker.cjs.entry.js +1 -1
  47. package/dist/cjs/z-date-picker.cjs.entry.js.map +1 -1
  48. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +2 -2
  49. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js.map +1 -1
  50. package/dist/cjs/z-file-upload.cjs.entry.js +1 -1
  51. package/dist/cjs/z-file-upload.cjs.entry.js.map +1 -1
  52. package/dist/cjs/z-ghost-loading.cjs.entry.js +1 -1
  53. package/dist/cjs/z-ghost-loading.cjs.entry.js.map +1 -1
  54. package/dist/cjs/z-info-box.cjs.entry.js +1 -1
  55. package/dist/cjs/z-info-box.cjs.entry.js.map +1 -1
  56. package/dist/cjs/z-info-reveal.cjs.entry.js +1 -1
  57. package/dist/cjs/z-info-reveal.cjs.entry.js.map +1 -1
  58. package/dist/cjs/z-menu-deprecated.cjs.entry.js +1 -1
  59. package/dist/cjs/z-menu-deprecated.cjs.entry.js.map +1 -1
  60. package/dist/cjs/z-menu-section-deprecated.cjs.entry.js +1 -1
  61. package/dist/cjs/z-menu-section-deprecated.cjs.entry.js.map +1 -1
  62. package/dist/cjs/z-menu-section.cjs.entry.js +1 -1
  63. package/dist/cjs/z-menu-section.cjs.entry.js.map +1 -1
  64. package/dist/cjs/z-menu.cjs.entry.js +1 -1
  65. package/dist/cjs/z-menu.cjs.entry.js.map +1 -1
  66. package/dist/cjs/z-myz-card-alert.cjs.entry.js +1 -1
  67. package/dist/cjs/z-myz-card-alert.cjs.entry.js.map +1 -1
  68. package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +1 -1
  69. package/dist/cjs/z-myz-card-dictionary.cjs.entry.js.map +1 -1
  70. package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +1 -1
  71. package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js.map +1 -1
  72. package/dist/cjs/z-myz-card-footer.cjs.entry.js +1 -1
  73. package/dist/cjs/z-myz-card-footer.cjs.entry.js.map +1 -1
  74. package/dist/cjs/z-myz-card-icon.cjs.entry.js +1 -1
  75. package/dist/cjs/z-myz-card-icon.cjs.entry.js.map +1 -1
  76. package/dist/cjs/z-myz-card-info.cjs.entry.js +1 -1
  77. package/dist/cjs/z-myz-card-info.cjs.entry.js.map +1 -1
  78. package/dist/cjs/z-myz-card-list.cjs.entry.js +1 -1
  79. package/dist/cjs/z-myz-card-list.cjs.entry.js.map +1 -1
  80. package/dist/cjs/z-myz-card_4.cjs.entry.js +4 -4
  81. package/dist/cjs/z-myz-card_4.cjs.entry.js.map +1 -1
  82. package/dist/cjs/z-myz-list-item.cjs.entry.js +1 -1
  83. package/dist/cjs/z-myz-list-item.cjs.entry.js.map +1 -1
  84. package/dist/cjs/z-navigation-tabs.cjs.entry.js +1 -1
  85. package/dist/cjs/z-navigation-tabs.cjs.entry.js.map +1 -1
  86. package/dist/cjs/z-notification.cjs.entry.js +1 -1
  87. package/dist/cjs/z-notification.cjs.entry.js.map +1 -1
  88. package/dist/cjs/z-otp.cjs.entry.js +1 -1
  89. package/dist/cjs/z-otp.cjs.entry.js.map +1 -1
  90. package/dist/cjs/z-pagination.cjs.entry.js +1 -1
  91. package/dist/cjs/z-pagination.cjs.entry.js.map +1 -1
  92. package/dist/cjs/z-panel-elem.cjs.entry.js +1 -1
  93. package/dist/cjs/z-panel-elem.cjs.entry.js.map +1 -1
  94. package/dist/cjs/z-popover.cjs.entry.js +1 -1
  95. package/dist/cjs/z-popover.cjs.entry.js.map +1 -1
  96. package/dist/cjs/z-range-picker.cjs.entry.js +1 -1
  97. package/dist/cjs/z-range-picker.cjs.entry.js.map +1 -1
  98. package/dist/cjs/z-section-title.cjs.entry.js +1 -1
  99. package/dist/cjs/z-section-title.cjs.entry.js.map +1 -1
  100. package/dist/cjs/z-select.cjs.entry.js +1 -1
  101. package/dist/cjs/z-select.cjs.entry.js.map +1 -1
  102. package/dist/cjs/z-skip-to-content.cjs.entry.js +1 -1
  103. package/dist/cjs/z-skip-to-content.cjs.entry.js.map +1 -1
  104. package/dist/cjs/z-slideshow.cjs.entry.js +1 -1
  105. package/dist/cjs/z-slideshow.cjs.entry.js.map +1 -1
  106. package/dist/cjs/z-stepper-item.cjs.entry.js +1 -1
  107. package/dist/cjs/z-stepper-item.cjs.entry.js.map +1 -1
  108. package/dist/cjs/z-stepper.cjs.entry.js +1 -1
  109. package/dist/cjs/z-stepper.cjs.entry.js.map +1 -1
  110. package/dist/cjs/z-table.cjs.entry.js +7 -7
  111. package/dist/cjs/z-table.cjs.entry.js.map +1 -1
  112. package/dist/cjs/z-tbody.cjs.entry.js +1 -1
  113. package/dist/cjs/z-td.cjs.entry.js +1 -1
  114. package/dist/cjs/z-tfoot.cjs.entry.js +1 -1
  115. package/dist/cjs/z-th.cjs.entry.js +1 -1
  116. package/dist/cjs/z-thead.cjs.entry.js +1 -1
  117. package/dist/cjs/z-toast-notification-list.cjs.entry.js +1 -1
  118. package/dist/cjs/z-toast-notification-list.cjs.entry.js.map +1 -1
  119. package/dist/cjs/z-toast-notification.cjs.entry.js +1 -1
  120. package/dist/cjs/z-toast-notification.cjs.entry.js.map +1 -1
  121. package/dist/cjs/z-toggle-button.cjs.entry.js +1 -1
  122. package/dist/cjs/z-toggle-button.cjs.entry.js.map +1 -1
  123. package/dist/cjs/z-toggle-switch.cjs.entry.js +1 -1
  124. package/dist/cjs/z-toggle-switch.cjs.entry.js.map +1 -1
  125. package/dist/cjs/z-tr.cjs.entry.js +3 -3
  126. package/dist/cjs/z-visually-hidden.cjs.entry.js +1 -1
  127. package/dist/cjs/z-visually-hidden.cjs.entry.js.map +1 -1
  128. package/dist/collection/components/file-upload/z-dragdrop-area/styles.css +1 -2
  129. package/dist/collection/components/z-input/styles.css +1 -0
  130. package/dist/components/index10.js +1 -1
  131. package/dist/components/index10.js.map +1 -1
  132. package/dist/components/index11.js +1 -1
  133. package/dist/components/index11.js.map +1 -1
  134. package/dist/components/index12.js +1 -1
  135. package/dist/components/index12.js.map +1 -1
  136. package/dist/components/index13.js +1 -1
  137. package/dist/components/index13.js.map +1 -1
  138. package/dist/components/index14.js +1 -1
  139. package/dist/components/index14.js.map +1 -1
  140. package/dist/components/index16.js +1 -1
  141. package/dist/components/index16.js.map +1 -1
  142. package/dist/components/index17.js +1 -1
  143. package/dist/components/index17.js.map +1 -1
  144. package/dist/components/index18.js +1 -1
  145. package/dist/components/index18.js.map +1 -1
  146. package/dist/components/index19.js +1 -1
  147. package/dist/components/index19.js.map +1 -1
  148. package/dist/components/index20.js +1 -1
  149. package/dist/components/index20.js.map +1 -1
  150. package/dist/components/index21.js +1 -1
  151. package/dist/components/index21.js.map +1 -1
  152. package/dist/components/index22.js +1 -1
  153. package/dist/components/index22.js.map +1 -1
  154. package/dist/components/index23.js +1 -1
  155. package/dist/components/index23.js.map +1 -1
  156. package/dist/components/index24.js +1 -1
  157. package/dist/components/index24.js.map +1 -1
  158. package/dist/components/index25.js +1 -1
  159. package/dist/components/index25.js.map +1 -1
  160. package/dist/components/index3.js +1 -1
  161. package/dist/components/index3.js.map +1 -1
  162. package/dist/components/index4.js +1 -1
  163. package/dist/components/index4.js.map +1 -1
  164. package/dist/components/index5.js +1 -1
  165. package/dist/components/index5.js.map +1 -1
  166. package/dist/components/index7.js +1 -1
  167. package/dist/components/index7.js.map +1 -1
  168. package/dist/components/index8.js +1 -1
  169. package/dist/components/index8.js.map +1 -1
  170. package/dist/components/z-accordion.js +1 -1
  171. package/dist/components/z-accordion.js.map +1 -1
  172. package/dist/components/z-anchor-navigation.js +1 -1
  173. package/dist/components/z-anchor-navigation.js.map +1 -1
  174. package/dist/components/z-app-header-deprecated.js +1 -1
  175. package/dist/components/z-app-header-deprecated.js.map +1 -1
  176. package/dist/components/z-app-header.js +1 -1
  177. package/dist/components/z-app-header.js.map +1 -1
  178. package/dist/components/z-avatar.js +1 -1
  179. package/dist/components/z-avatar.js.map +1 -1
  180. package/dist/components/z-book-card-app.js +2 -2
  181. package/dist/components/z-book-card-app.js.map +1 -1
  182. package/dist/components/z-book-card-deprecated.js +1 -1
  183. package/dist/components/z-book-card-deprecated.js.map +1 -1
  184. package/dist/components/z-book-card.js +2 -2
  185. package/dist/components/z-book-card.js.map +1 -1
  186. package/dist/components/z-breadcrumb.js +1 -1
  187. package/dist/components/z-breadcrumb.js.map +1 -1
  188. package/dist/components/z-button-sort.js +1 -1
  189. package/dist/components/z-button-sort.js.map +1 -1
  190. package/dist/components/z-card.js +1 -1
  191. package/dist/components/z-card.js.map +1 -1
  192. package/dist/components/z-carousel.js +1 -1
  193. package/dist/components/z-carousel.js.map +1 -1
  194. package/dist/components/z-combobox.js +1 -1
  195. package/dist/components/z-combobox.js.map +1 -1
  196. package/dist/components/z-cover-hero.js +1 -1
  197. package/dist/components/z-cover-hero.js.map +1 -1
  198. package/dist/components/z-date-picker.js +1 -1
  199. package/dist/components/z-date-picker.js.map +1 -1
  200. package/dist/components/z-file-upload.js +1 -1
  201. package/dist/components/z-file-upload.js.map +1 -1
  202. package/dist/components/z-info-box.js +1 -1
  203. package/dist/components/z-info-box.js.map +1 -1
  204. package/dist/components/z-menu-deprecated.js +1 -1
  205. package/dist/components/z-menu-deprecated.js.map +1 -1
  206. package/dist/components/z-menu-section-deprecated.js +1 -1
  207. package/dist/components/z-menu-section-deprecated.js.map +1 -1
  208. package/dist/components/z-menu-section.js +1 -1
  209. package/dist/components/z-menu-section.js.map +1 -1
  210. package/dist/components/z-menu.js +1 -1
  211. package/dist/components/z-menu.js.map +1 -1
  212. package/dist/components/z-myz-card-alert.js +1 -1
  213. package/dist/components/z-myz-card-alert.js.map +1 -1
  214. package/dist/components/z-myz-card-dictionary.js +1 -1
  215. package/dist/components/z-myz-card-dictionary.js.map +1 -1
  216. package/dist/components/z-myz-card-footer-sections.js +1 -1
  217. package/dist/components/z-myz-card-footer-sections.js.map +1 -1
  218. package/dist/components/z-myz-card-footer.js +1 -1
  219. package/dist/components/z-myz-card-footer.js.map +1 -1
  220. package/dist/components/z-myz-card-icon.js +1 -1
  221. package/dist/components/z-myz-card-icon.js.map +1 -1
  222. package/dist/components/z-myz-card-info.js +1 -1
  223. package/dist/components/z-myz-card-info.js.map +1 -1
  224. package/dist/components/z-myz-card-list.js +1 -1
  225. package/dist/components/z-myz-card-list.js.map +1 -1
  226. package/dist/components/z-navigation-tabs.js +1 -1
  227. package/dist/components/z-navigation-tabs.js.map +1 -1
  228. package/dist/components/z-notification.js +1 -1
  229. package/dist/components/z-notification.js.map +1 -1
  230. package/dist/components/z-otp.js +1 -1
  231. package/dist/components/z-otp.js.map +1 -1
  232. package/dist/components/z-pagination.js +1 -1
  233. package/dist/components/z-pagination.js.map +1 -1
  234. package/dist/components/z-panel-elem.js +1 -1
  235. package/dist/components/z-panel-elem.js.map +1 -1
  236. package/dist/components/z-range-picker.js +1 -1
  237. package/dist/components/z-range-picker.js.map +1 -1
  238. package/dist/components/z-section-title.js +1 -1
  239. package/dist/components/z-section-title.js.map +1 -1
  240. package/dist/components/z-select.js +1 -1
  241. package/dist/components/z-select.js.map +1 -1
  242. package/dist/components/z-skip-to-content.js +1 -1
  243. package/dist/components/z-skip-to-content.js.map +1 -1
  244. package/dist/components/z-slideshow.js +1 -1
  245. package/dist/components/z-slideshow.js.map +1 -1
  246. package/dist/components/z-stepper-item.js +1 -1
  247. package/dist/components/z-stepper-item.js.map +1 -1
  248. package/dist/components/z-stepper.js +1 -1
  249. package/dist/components/z-stepper.js.map +1 -1
  250. package/dist/components/z-table.js +1 -1
  251. package/dist/components/z-table.js.map +1 -1
  252. package/dist/components/z-tbody.js +1 -1
  253. package/dist/components/z-tbody.js.map +1 -1
  254. package/dist/components/z-td.js +1 -1
  255. package/dist/components/z-td.js.map +1 -1
  256. package/dist/components/z-tfoot.js +1 -1
  257. package/dist/components/z-tfoot.js.map +1 -1
  258. package/dist/components/z-th.js +1 -1
  259. package/dist/components/z-th.js.map +1 -1
  260. package/dist/components/z-thead.js +1 -1
  261. package/dist/components/z-thead.js.map +1 -1
  262. package/dist/components/z-toast-notification-list.js +1 -1
  263. package/dist/components/z-toast-notification-list.js.map +1 -1
  264. package/dist/components/z-toast-notification.js +1 -1
  265. package/dist/components/z-toast-notification.js.map +1 -1
  266. package/dist/components/z-toggle-button.js +1 -1
  267. package/dist/components/z-toggle-button.js.map +1 -1
  268. package/dist/components/z-toggle-switch.js +1 -1
  269. package/dist/components/z-toggle-switch.js.map +1 -1
  270. package/dist/components/z-tr.js +1 -1
  271. package/dist/components/z-tr.js.map +1 -1
  272. package/dist/components/z-visually-hidden.js +1 -1
  273. package/dist/components/z-visually-hidden.js.map +1 -1
  274. package/dist/esm/index-04335eea.js +19 -0
  275. package/dist/esm/index-04335eea.js.map +1 -0
  276. package/dist/esm/index-092fc7cc.js +57 -0
  277. package/dist/esm/index-092fc7cc.js.map +1 -0
  278. package/dist/esm/index-5dff449e.js +19 -0
  279. package/dist/esm/index-5dff449e.js.map +1 -0
  280. package/dist/esm/index-735d4f23.js +45 -0
  281. package/dist/esm/index-735d4f23.js.map +1 -0
  282. package/dist/esm/index-90f624c1.js +65 -0
  283. package/dist/esm/index-90f624c1.js.map +1 -0
  284. package/dist/esm/index-9adfcd0d.js +18 -0
  285. package/dist/esm/index-9adfcd0d.js.map +1 -0
  286. package/dist/esm/z-accordion.entry.js +1 -1
  287. package/dist/esm/z-accordion.entry.js.map +1 -1
  288. package/dist/esm/z-alert.entry.js +1 -1
  289. package/dist/esm/z-alert.entry.js.map +1 -1
  290. package/dist/esm/z-anchor-navigation.entry.js +1 -1
  291. package/dist/esm/z-anchor-navigation.entry.js.map +1 -1
  292. package/dist/esm/z-app-header-deprecated.entry.js +1 -1
  293. package/dist/esm/z-app-header-deprecated.entry.js.map +1 -1
  294. package/dist/esm/z-app-header_12.entry.js +9 -9
  295. package/dist/esm/z-app-header_12.entry.js.map +1 -1
  296. package/dist/esm/z-avatar.entry.js +1 -1
  297. package/dist/esm/z-avatar.entry.js.map +1 -1
  298. package/dist/esm/z-book-card-app.entry.js +2 -2
  299. package/dist/esm/z-book-card-app.entry.js.map +1 -1
  300. package/dist/esm/z-book-card-deprecated.entry.js +1 -1
  301. package/dist/esm/z-book-card-deprecated.entry.js.map +1 -1
  302. package/dist/esm/z-book-card.entry.js +2 -2
  303. package/dist/esm/z-book-card.entry.js.map +1 -1
  304. package/dist/esm/z-breadcrumb.entry.js +1 -1
  305. package/dist/esm/z-breadcrumb.entry.js.map +1 -1
  306. package/dist/esm/z-button-sort.entry.js +1 -1
  307. package/dist/esm/z-button-sort.entry.js.map +1 -1
  308. package/dist/esm/z-card.entry.js +1 -1
  309. package/dist/esm/z-card.entry.js.map +1 -1
  310. package/dist/esm/z-carousel.entry.js +1 -1
  311. package/dist/esm/z-carousel.entry.js.map +1 -1
  312. package/dist/esm/z-chip.entry.js +1 -1
  313. package/dist/esm/z-chip.entry.js.map +1 -1
  314. package/dist/esm/z-combobox.entry.js +1 -1
  315. package/dist/esm/z-combobox.entry.js.map +1 -1
  316. package/dist/esm/z-cover-hero.entry.js +1 -1
  317. package/dist/esm/z-cover-hero.entry.js.map +1 -1
  318. package/dist/esm/z-date-picker.entry.js +1 -1
  319. package/dist/esm/z-date-picker.entry.js.map +1 -1
  320. package/dist/esm/z-dragdrop-area_2.entry.js +2 -2
  321. package/dist/esm/z-dragdrop-area_2.entry.js.map +1 -1
  322. package/dist/esm/z-file-upload.entry.js +1 -1
  323. package/dist/esm/z-file-upload.entry.js.map +1 -1
  324. package/dist/esm/z-ghost-loading.entry.js +1 -1
  325. package/dist/esm/z-ghost-loading.entry.js.map +1 -1
  326. package/dist/esm/z-info-box.entry.js +1 -1
  327. package/dist/esm/z-info-box.entry.js.map +1 -1
  328. package/dist/esm/z-info-reveal.entry.js +1 -1
  329. package/dist/esm/z-info-reveal.entry.js.map +1 -1
  330. package/dist/esm/z-menu-deprecated.entry.js +1 -1
  331. package/dist/esm/z-menu-deprecated.entry.js.map +1 -1
  332. package/dist/esm/z-menu-section-deprecated.entry.js +1 -1
  333. package/dist/esm/z-menu-section-deprecated.entry.js.map +1 -1
  334. package/dist/esm/z-menu-section.entry.js +1 -1
  335. package/dist/esm/z-menu-section.entry.js.map +1 -1
  336. package/dist/esm/z-menu.entry.js +1 -1
  337. package/dist/esm/z-menu.entry.js.map +1 -1
  338. package/dist/esm/z-myz-card-alert.entry.js +1 -1
  339. package/dist/esm/z-myz-card-alert.entry.js.map +1 -1
  340. package/dist/esm/z-myz-card-dictionary.entry.js +1 -1
  341. package/dist/esm/z-myz-card-dictionary.entry.js.map +1 -1
  342. package/dist/esm/z-myz-card-footer-sections.entry.js +1 -1
  343. package/dist/esm/z-myz-card-footer-sections.entry.js.map +1 -1
  344. package/dist/esm/z-myz-card-footer.entry.js +1 -1
  345. package/dist/esm/z-myz-card-footer.entry.js.map +1 -1
  346. package/dist/esm/z-myz-card-icon.entry.js +1 -1
  347. package/dist/esm/z-myz-card-icon.entry.js.map +1 -1
  348. package/dist/esm/z-myz-card-info.entry.js +1 -1
  349. package/dist/esm/z-myz-card-info.entry.js.map +1 -1
  350. package/dist/esm/z-myz-card-list.entry.js +1 -1
  351. package/dist/esm/z-myz-card-list.entry.js.map +1 -1
  352. package/dist/esm/z-myz-card_4.entry.js +4 -4
  353. package/dist/esm/z-myz-card_4.entry.js.map +1 -1
  354. package/dist/esm/z-myz-list-item.entry.js +1 -1
  355. package/dist/esm/z-myz-list-item.entry.js.map +1 -1
  356. package/dist/esm/z-navigation-tabs.entry.js +1 -1
  357. package/dist/esm/z-navigation-tabs.entry.js.map +1 -1
  358. package/dist/esm/z-notification.entry.js +1 -1
  359. package/dist/esm/z-notification.entry.js.map +1 -1
  360. package/dist/esm/z-otp.entry.js +1 -1
  361. package/dist/esm/z-otp.entry.js.map +1 -1
  362. package/dist/esm/z-pagination.entry.js +1 -1
  363. package/dist/esm/z-pagination.entry.js.map +1 -1
  364. package/dist/esm/z-panel-elem.entry.js +1 -1
  365. package/dist/esm/z-panel-elem.entry.js.map +1 -1
  366. package/dist/esm/z-popover.entry.js +1 -1
  367. package/dist/esm/z-popover.entry.js.map +1 -1
  368. package/dist/esm/z-range-picker.entry.js +1 -1
  369. package/dist/esm/z-range-picker.entry.js.map +1 -1
  370. package/dist/esm/z-section-title.entry.js +1 -1
  371. package/dist/esm/z-section-title.entry.js.map +1 -1
  372. package/dist/esm/z-select.entry.js +1 -1
  373. package/dist/esm/z-select.entry.js.map +1 -1
  374. package/dist/esm/z-skip-to-content.entry.js +1 -1
  375. package/dist/esm/z-skip-to-content.entry.js.map +1 -1
  376. package/dist/esm/z-slideshow.entry.js +1 -1
  377. package/dist/esm/z-slideshow.entry.js.map +1 -1
  378. package/dist/esm/z-stepper-item.entry.js +1 -1
  379. package/dist/esm/z-stepper-item.entry.js.map +1 -1
  380. package/dist/esm/z-stepper.entry.js +1 -1
  381. package/dist/esm/z-stepper.entry.js.map +1 -1
  382. package/dist/esm/z-table.entry.js +7 -7
  383. package/dist/esm/z-table.entry.js.map +1 -1
  384. package/dist/esm/z-tbody.entry.js +1 -1
  385. package/dist/esm/z-td.entry.js +1 -1
  386. package/dist/esm/z-tfoot.entry.js +1 -1
  387. package/dist/esm/z-th.entry.js +1 -1
  388. package/dist/esm/z-thead.entry.js +1 -1
  389. package/dist/esm/z-toast-notification-list.entry.js +1 -1
  390. package/dist/esm/z-toast-notification-list.entry.js.map +1 -1
  391. package/dist/esm/z-toast-notification.entry.js +1 -1
  392. package/dist/esm/z-toast-notification.entry.js.map +1 -1
  393. package/dist/esm/z-toggle-button.entry.js +1 -1
  394. package/dist/esm/z-toggle-button.entry.js.map +1 -1
  395. package/dist/esm/z-toggle-switch.entry.js +1 -1
  396. package/dist/esm/z-toggle-switch.entry.js.map +1 -1
  397. package/dist/esm/z-tr.entry.js +3 -3
  398. package/dist/esm/z-visually-hidden.entry.js +1 -1
  399. package/dist/esm/z-visually-hidden.entry.js.map +1 -1
  400. package/dist/index.js +1 -1
  401. package/dist/web-components-library/p-035807e3.entry.js +2 -0
  402. package/dist/web-components-library/p-035807e3.entry.js.map +1 -0
  403. package/dist/web-components-library/p-0378c12a.entry.js +2 -0
  404. package/dist/web-components-library/p-0378c12a.entry.js.map +1 -0
  405. package/dist/web-components-library/p-08d8f935.entry.js +2 -0
  406. package/dist/web-components-library/p-08d8f935.entry.js.map +1 -0
  407. package/dist/web-components-library/p-0df6b405.entry.js +2 -0
  408. package/dist/web-components-library/p-0df6b405.entry.js.map +1 -0
  409. package/dist/web-components-library/p-11216ee8.entry.js +2 -0
  410. package/dist/web-components-library/p-11216ee8.entry.js.map +1 -0
  411. package/dist/web-components-library/p-115fab3e.entry.js +2 -0
  412. package/dist/web-components-library/p-115fab3e.entry.js.map +1 -0
  413. package/dist/web-components-library/p-11629dd3.entry.js +2 -0
  414. package/dist/web-components-library/p-11629dd3.entry.js.map +1 -0
  415. package/dist/web-components-library/p-123739cb.js +2 -0
  416. package/dist/web-components-library/p-123739cb.js.map +1 -0
  417. package/dist/web-components-library/p-14e61df6.js +2 -0
  418. package/dist/web-components-library/p-14e61df6.js.map +1 -0
  419. package/dist/web-components-library/p-1630e240.entry.js +2 -0
  420. package/dist/web-components-library/p-1630e240.entry.js.map +1 -0
  421. package/dist/web-components-library/p-18d63f0c.entry.js +2 -0
  422. package/dist/web-components-library/p-18d63f0c.entry.js.map +1 -0
  423. package/dist/web-components-library/p-1e3ff105.entry.js +2 -0
  424. package/dist/web-components-library/p-1e3ff105.entry.js.map +1 -0
  425. package/dist/web-components-library/p-22d56699.entry.js +2 -0
  426. package/dist/web-components-library/p-22d56699.entry.js.map +1 -0
  427. package/dist/web-components-library/p-22e32e11.entry.js +17 -0
  428. package/dist/web-components-library/p-22e32e11.entry.js.map +1 -0
  429. package/dist/web-components-library/p-2798c0b2.entry.js +2 -0
  430. package/dist/web-components-library/p-2a0d8ebe.entry.js +2 -0
  431. package/dist/web-components-library/p-2a0d8ebe.entry.js.map +1 -0
  432. package/dist/web-components-library/p-2aeb2a94.entry.js +2 -0
  433. package/dist/web-components-library/p-2c450113.entry.js +2 -0
  434. package/dist/web-components-library/p-2c450113.entry.js.map +1 -0
  435. package/dist/web-components-library/p-2dcf53b3.entry.js +2 -0
  436. package/dist/web-components-library/p-2dcf53b3.entry.js.map +1 -0
  437. package/dist/web-components-library/p-2fa0042e.entry.js +2 -0
  438. package/dist/web-components-library/p-2fa0042e.entry.js.map +1 -0
  439. package/dist/web-components-library/p-30170218.entry.js +2 -0
  440. package/dist/web-components-library/p-30170218.entry.js.map +1 -0
  441. package/dist/web-components-library/p-384baa02.entry.js +2 -0
  442. package/dist/web-components-library/p-384baa02.entry.js.map +1 -0
  443. package/dist/web-components-library/p-395b261e.entry.js +2 -0
  444. package/dist/web-components-library/p-395b261e.entry.js.map +1 -0
  445. package/dist/web-components-library/p-4374d3f3.entry.js +2 -0
  446. package/dist/web-components-library/p-4374d3f3.entry.js.map +1 -0
  447. package/dist/web-components-library/p-4c462e7f.js +2 -0
  448. package/dist/web-components-library/p-4c462e7f.js.map +1 -0
  449. package/dist/web-components-library/p-50bf57b4.entry.js +2 -0
  450. package/dist/web-components-library/p-50bf57b4.entry.js.map +1 -0
  451. package/dist/web-components-library/p-52be7378.entry.js +2 -0
  452. package/dist/web-components-library/p-52be7378.entry.js.map +1 -0
  453. package/dist/web-components-library/p-5387e6f3.entry.js +2 -0
  454. package/dist/web-components-library/p-5387e6f3.entry.js.map +1 -0
  455. package/dist/web-components-library/p-57452dac.entry.js +2 -0
  456. package/dist/web-components-library/p-57452dac.entry.js.map +1 -0
  457. package/dist/web-components-library/p-5f04d9eb.entry.js +2 -0
  458. package/dist/web-components-library/p-5f04d9eb.entry.js.map +1 -0
  459. package/dist/web-components-library/p-6e1ba2f0.entry.js +2 -0
  460. package/dist/web-components-library/p-7095262b.entry.js +2 -0
  461. package/dist/web-components-library/p-7095262b.entry.js.map +1 -0
  462. package/dist/web-components-library/p-72dae90b.entry.js +2 -0
  463. package/dist/web-components-library/p-72dae90b.entry.js.map +1 -0
  464. package/dist/web-components-library/p-73d686e0.entry.js +2 -0
  465. package/dist/web-components-library/p-73d686e0.entry.js.map +1 -0
  466. package/dist/web-components-library/p-75808b47.entry.js +2 -0
  467. package/dist/web-components-library/p-75808b47.entry.js.map +1 -0
  468. package/dist/web-components-library/p-758333dc.entry.js +2 -0
  469. package/dist/web-components-library/p-758333dc.entry.js.map +1 -0
  470. package/dist/web-components-library/p-7af33b00.entry.js +2 -0
  471. package/dist/web-components-library/p-7af33b00.entry.js.map +1 -0
  472. package/dist/web-components-library/p-7f370d17.entry.js +2 -0
  473. package/dist/web-components-library/p-7f370d17.entry.js.map +1 -0
  474. package/dist/web-components-library/p-9187ce36.entry.js +2 -0
  475. package/dist/web-components-library/p-9187ce36.entry.js.map +1 -0
  476. package/dist/web-components-library/p-9c4b7a51.entry.js +2 -0
  477. package/dist/web-components-library/p-9c4b7a51.entry.js.map +1 -0
  478. package/dist/web-components-library/p-aa0b3e7a.entry.js +2 -0
  479. package/dist/web-components-library/p-aa0b3e7a.entry.js.map +1 -0
  480. package/dist/web-components-library/p-aa42f01d.entry.js +2 -0
  481. package/dist/web-components-library/p-aa42f01d.entry.js.map +1 -0
  482. package/dist/web-components-library/p-ad825740.entry.js +2 -0
  483. package/dist/web-components-library/p-b38be247.entry.js +2 -0
  484. package/dist/web-components-library/p-bba6129f.js +2 -0
  485. package/dist/web-components-library/p-bba6129f.js.map +1 -0
  486. package/dist/web-components-library/p-bbd492d3.entry.js +2 -0
  487. package/dist/web-components-library/p-bbd492d3.entry.js.map +1 -0
  488. package/dist/web-components-library/p-bd571858.entry.js +2 -0
  489. package/dist/web-components-library/p-bd571858.entry.js.map +1 -0
  490. package/dist/web-components-library/p-c13ef624.js +2 -0
  491. package/dist/web-components-library/p-c13ef624.js.map +1 -0
  492. package/dist/web-components-library/p-c29a520b.entry.js +2 -0
  493. package/dist/web-components-library/p-c29a520b.entry.js.map +1 -0
  494. package/dist/web-components-library/p-c2af9a71.entry.js +2 -0
  495. package/dist/web-components-library/p-c2af9a71.entry.js.map +1 -0
  496. package/dist/web-components-library/p-c7df6a63.entry.js +2 -0
  497. package/dist/web-components-library/p-c7df6a63.entry.js.map +1 -0
  498. package/dist/web-components-library/p-cb8aec27.entry.js +2 -0
  499. package/dist/web-components-library/p-cb8aec27.entry.js.map +1 -0
  500. package/dist/web-components-library/p-ce0d5448.entry.js +2 -0
  501. package/dist/web-components-library/p-ce0d5448.entry.js.map +1 -0
  502. package/dist/web-components-library/p-cf7b7e73.entry.js +2 -0
  503. package/dist/web-components-library/p-cf7b7e73.entry.js.map +1 -0
  504. package/dist/web-components-library/p-d1cca5ea.entry.js +2 -0
  505. package/dist/web-components-library/p-d1cca5ea.entry.js.map +1 -0
  506. package/dist/web-components-library/p-d6a2b1c6.entry.js +2 -0
  507. package/dist/web-components-library/p-d6a2b1c6.entry.js.map +1 -0
  508. package/dist/web-components-library/p-e185545c.entry.js +2 -0
  509. package/dist/web-components-library/p-e2044c36.entry.js +2 -0
  510. package/dist/web-components-library/p-e2044c36.entry.js.map +1 -0
  511. package/dist/web-components-library/p-e78353d6.entry.js +2 -0
  512. package/dist/web-components-library/p-e78353d6.entry.js.map +1 -0
  513. package/dist/web-components-library/p-ea36d666.entry.js +2 -0
  514. package/dist/web-components-library/p-ea36d666.entry.js.map +1 -0
  515. package/dist/web-components-library/p-ed091723.entry.js +2 -0
  516. package/dist/web-components-library/p-ed091723.entry.js.map +1 -0
  517. package/dist/web-components-library/p-f06bd257.entry.js +2 -0
  518. package/dist/web-components-library/p-f06bd257.entry.js.map +1 -0
  519. package/dist/web-components-library/p-f075ec62.entry.js +2 -0
  520. package/dist/web-components-library/p-f075ec62.entry.js.map +1 -0
  521. package/dist/web-components-library/p-f8915e2e.entry.js +7 -0
  522. package/dist/web-components-library/p-f8915e2e.entry.js.map +1 -0
  523. package/dist/web-components-library/p-fb06a5d8.entry.js +2 -0
  524. package/dist/web-components-library/p-fb06a5d8.entry.js.map +1 -0
  525. package/dist/web-components-library/p-feb84d36.js +2 -0
  526. package/dist/web-components-library/p-feb84d36.js.map +1 -0
  527. package/dist/web-components-library/web-components-library.css +0 -26
  528. package/dist/web-components-library/web-components-library.esm.js +1 -1
  529. package/loader/cdn.js +1 -2
  530. package/loader/index.cjs.js +1 -2
  531. package/loader/index.es2017.js +0 -1
  532. package/loader/index.js +1 -2
  533. package/package.json +1 -1
  534. package/www/build/p-035807e3.entry.js +2 -0
  535. package/www/build/p-035807e3.entry.js.map +1 -0
  536. package/www/build/p-0378c12a.entry.js +2 -0
  537. package/www/build/p-0378c12a.entry.js.map +1 -0
  538. package/www/build/p-08d8f935.entry.js +2 -0
  539. package/www/build/p-08d8f935.entry.js.map +1 -0
  540. package/www/build/p-0df6b405.entry.js +2 -0
  541. package/www/build/p-0df6b405.entry.js.map +1 -0
  542. package/www/build/p-11216ee8.entry.js +2 -0
  543. package/www/build/p-11216ee8.entry.js.map +1 -0
  544. package/www/build/p-115fab3e.entry.js +2 -0
  545. package/www/build/p-115fab3e.entry.js.map +1 -0
  546. package/www/build/p-11629dd3.entry.js +2 -0
  547. package/www/build/p-11629dd3.entry.js.map +1 -0
  548. package/www/build/p-123739cb.js +2 -0
  549. package/www/build/p-123739cb.js.map +1 -0
  550. package/www/build/p-14e61df6.js +2 -0
  551. package/www/build/p-14e61df6.js.map +1 -0
  552. package/www/build/p-1630e240.entry.js +2 -0
  553. package/www/build/p-1630e240.entry.js.map +1 -0
  554. package/www/build/p-18d63f0c.entry.js +2 -0
  555. package/www/build/p-18d63f0c.entry.js.map +1 -0
  556. package/www/build/p-1e3ff105.entry.js +2 -0
  557. package/www/build/p-1e3ff105.entry.js.map +1 -0
  558. package/www/build/p-22d56699.entry.js +2 -0
  559. package/www/build/p-22d56699.entry.js.map +1 -0
  560. package/www/build/p-22e32e11.entry.js +17 -0
  561. package/www/build/p-22e32e11.entry.js.map +1 -0
  562. package/www/build/p-2798c0b2.entry.js +2 -0
  563. package/www/build/p-2a0d8ebe.entry.js +2 -0
  564. package/www/build/p-2a0d8ebe.entry.js.map +1 -0
  565. package/www/build/p-2aeb2a94.entry.js +2 -0
  566. package/www/build/p-2c450113.entry.js +2 -0
  567. package/www/build/p-2c450113.entry.js.map +1 -0
  568. package/www/build/p-2dcf53b3.entry.js +2 -0
  569. package/www/build/p-2dcf53b3.entry.js.map +1 -0
  570. package/www/build/p-2fa0042e.entry.js +2 -0
  571. package/www/build/p-2fa0042e.entry.js.map +1 -0
  572. package/www/build/p-30170218.entry.js +2 -0
  573. package/www/build/p-30170218.entry.js.map +1 -0
  574. package/www/build/p-384baa02.entry.js +2 -0
  575. package/www/build/p-384baa02.entry.js.map +1 -0
  576. package/www/build/p-395b261e.entry.js +2 -0
  577. package/www/build/p-395b261e.entry.js.map +1 -0
  578. package/www/build/p-4374d3f3.entry.js +2 -0
  579. package/www/build/p-4374d3f3.entry.js.map +1 -0
  580. package/www/build/p-44929c67.js +2 -0
  581. package/www/build/p-4c462e7f.js +2 -0
  582. package/www/build/p-4c462e7f.js.map +1 -0
  583. package/www/build/p-50bf57b4.entry.js +2 -0
  584. package/www/build/p-50bf57b4.entry.js.map +1 -0
  585. package/www/build/p-52be7378.entry.js +2 -0
  586. package/www/build/p-52be7378.entry.js.map +1 -0
  587. package/www/build/p-5387e6f3.entry.js +2 -0
  588. package/www/build/p-5387e6f3.entry.js.map +1 -0
  589. package/www/build/p-57452dac.entry.js +2 -0
  590. package/www/build/p-57452dac.entry.js.map +1 -0
  591. package/www/build/p-5f04d9eb.entry.js +2 -0
  592. package/www/build/p-5f04d9eb.entry.js.map +1 -0
  593. package/www/build/p-6e1ba2f0.entry.js +2 -0
  594. package/www/build/p-7095262b.entry.js +2 -0
  595. package/www/build/p-7095262b.entry.js.map +1 -0
  596. package/www/build/p-72dae90b.entry.js +2 -0
  597. package/www/build/p-72dae90b.entry.js.map +1 -0
  598. package/www/build/p-73d686e0.entry.js +2 -0
  599. package/www/build/p-73d686e0.entry.js.map +1 -0
  600. package/www/build/p-75808b47.entry.js +2 -0
  601. package/www/build/p-75808b47.entry.js.map +1 -0
  602. package/www/build/p-758333dc.entry.js +2 -0
  603. package/www/build/p-758333dc.entry.js.map +1 -0
  604. package/www/build/p-7af33b00.entry.js +2 -0
  605. package/www/build/p-7af33b00.entry.js.map +1 -0
  606. package/www/build/p-7f370d17.entry.js +2 -0
  607. package/www/build/p-7f370d17.entry.js.map +1 -0
  608. package/www/build/p-9187ce36.entry.js +2 -0
  609. package/www/build/p-9187ce36.entry.js.map +1 -0
  610. package/www/build/p-9c4b7a51.entry.js +2 -0
  611. package/www/build/p-9c4b7a51.entry.js.map +1 -0
  612. package/www/build/p-a35437c8.css +2508 -0
  613. package/www/build/p-aa0b3e7a.entry.js +2 -0
  614. package/www/build/p-aa0b3e7a.entry.js.map +1 -0
  615. package/www/build/p-aa42f01d.entry.js +2 -0
  616. package/www/build/p-aa42f01d.entry.js.map +1 -0
  617. package/www/build/p-ad825740.entry.js +2 -0
  618. package/www/build/p-b38be247.entry.js +2 -0
  619. package/www/build/p-bba6129f.js +2 -0
  620. package/www/build/p-bba6129f.js.map +1 -0
  621. package/www/build/p-bbd492d3.entry.js +2 -0
  622. package/www/build/p-bbd492d3.entry.js.map +1 -0
  623. package/www/build/p-bd571858.entry.js +2 -0
  624. package/www/build/p-bd571858.entry.js.map +1 -0
  625. package/www/build/p-c13ef624.js +2 -0
  626. package/www/build/p-c13ef624.js.map +1 -0
  627. package/www/build/p-c29a520b.entry.js +2 -0
  628. package/www/build/p-c29a520b.entry.js.map +1 -0
  629. package/www/build/p-c2af9a71.entry.js +2 -0
  630. package/www/build/p-c2af9a71.entry.js.map +1 -0
  631. package/www/build/p-c7df6a63.entry.js +2 -0
  632. package/www/build/p-c7df6a63.entry.js.map +1 -0
  633. package/www/build/p-cb8aec27.entry.js +2 -0
  634. package/www/build/p-cb8aec27.entry.js.map +1 -0
  635. package/www/build/p-ce0d5448.entry.js +2 -0
  636. package/www/build/p-ce0d5448.entry.js.map +1 -0
  637. package/www/build/p-cf7b7e73.entry.js +2 -0
  638. package/www/build/p-cf7b7e73.entry.js.map +1 -0
  639. package/www/build/p-d1cca5ea.entry.js +2 -0
  640. package/www/build/p-d1cca5ea.entry.js.map +1 -0
  641. package/www/build/p-d6a2b1c6.entry.js +2 -0
  642. package/www/build/p-d6a2b1c6.entry.js.map +1 -0
  643. package/www/build/p-e185545c.entry.js +2 -0
  644. package/www/build/p-e2044c36.entry.js +2 -0
  645. package/www/build/p-e2044c36.entry.js.map +1 -0
  646. package/www/build/p-e78353d6.entry.js +2 -0
  647. package/www/build/p-e78353d6.entry.js.map +1 -0
  648. package/www/build/p-ea36d666.entry.js +2 -0
  649. package/www/build/p-ea36d666.entry.js.map +1 -0
  650. package/www/build/p-ed091723.entry.js +2 -0
  651. package/www/build/p-ed091723.entry.js.map +1 -0
  652. package/www/build/p-f06bd257.entry.js +2 -0
  653. package/www/build/p-f06bd257.entry.js.map +1 -0
  654. package/www/build/p-f075ec62.entry.js +2 -0
  655. package/www/build/p-f075ec62.entry.js.map +1 -0
  656. package/www/build/p-f8915e2e.entry.js +7 -0
  657. package/www/build/p-f8915e2e.entry.js.map +1 -0
  658. package/www/build/p-fb06a5d8.entry.js +2 -0
  659. package/www/build/p-fb06a5d8.entry.js.map +1 -0
  660. package/www/build/p-feb84d36.js +2 -0
  661. package/www/build/p-feb84d36.js.map +1 -0
  662. package/www/build/web-components-library.css +0 -26
  663. package/www/build/web-components-library.esm.js +1 -1
  664. package/www/build/web-components-library.js +31 -125
  665. package/www/index.html +1 -1
  666. package/dist/cjs/index-0b836780.js +0 -21
  667. package/dist/cjs/index-0b836780.js.map +0 -1
  668. package/dist/cjs/index-32d5273a.js +0 -21
  669. package/dist/cjs/index-32d5273a.js.map +0 -1
  670. package/dist/cjs/index-6c84c7e8.js +0 -47
  671. package/dist/cjs/index-6c84c7e8.js.map +0 -1
  672. package/dist/cjs/index-72dcc0c1.js +0 -67
  673. package/dist/cjs/index-72dcc0c1.js.map +0 -1
  674. package/dist/cjs/index-b69475c3.js +0 -20
  675. package/dist/cjs/index-b69475c3.js.map +0 -1
  676. package/dist/cjs/index-c286015f.js +0 -59
  677. package/dist/cjs/index-c286015f.js.map +0 -1
  678. package/dist/esm/index-08bf4c13.js +0 -18
  679. package/dist/esm/index-08bf4c13.js.map +0 -1
  680. package/dist/esm/index-2a6f56f8.js +0 -65
  681. package/dist/esm/index-2a6f56f8.js.map +0 -1
  682. package/dist/esm/index-2d88cd2a.js +0 -19
  683. package/dist/esm/index-2d88cd2a.js.map +0 -1
  684. package/dist/esm/index-72c3946c.js +0 -19
  685. package/dist/esm/index-72c3946c.js.map +0 -1
  686. package/dist/esm/index-821e1d1c.js +0 -57
  687. package/dist/esm/index-821e1d1c.js.map +0 -1
  688. package/dist/esm/index-fd99721b.js +0 -45
  689. package/dist/esm/index-fd99721b.js.map +0 -1
  690. package/dist/esm/polyfills/core-js.js +0 -11
  691. package/dist/esm/polyfills/dom.js +0 -79
  692. package/dist/esm/polyfills/es5-html-element.js +0 -1
  693. package/dist/esm/polyfills/index.js +0 -34
  694. package/dist/esm/polyfills/system.js +0 -6
  695. package/dist/esm-es5/app-globals-0f993ce5.js +0 -2
  696. package/dist/esm-es5/app-globals-0f993ce5.js.map +0 -1
  697. package/dist/esm-es5/breakpoints-d148bfde.js +0 -2
  698. package/dist/esm-es5/breakpoints-d148bfde.js.map +0 -1
  699. package/dist/esm-es5/index-08bf4c13.js +0 -2
  700. package/dist/esm-es5/index-08bf4c13.js.map +0 -1
  701. package/dist/esm-es5/index-2a6f56f8.js +0 -2
  702. package/dist/esm-es5/index-2a6f56f8.js.map +0 -1
  703. package/dist/esm-es5/index-2d88cd2a.js +0 -2
  704. package/dist/esm-es5/index-2d88cd2a.js.map +0 -1
  705. package/dist/esm-es5/index-72c3946c.js +0 -2
  706. package/dist/esm-es5/index-72c3946c.js.map +0 -1
  707. package/dist/esm-es5/index-821e1d1c.js +0 -2
  708. package/dist/esm-es5/index-821e1d1c.js.map +0 -1
  709. package/dist/esm-es5/index-c8ceadeb.js +0 -2
  710. package/dist/esm-es5/index-c8ceadeb.js.map +0 -1
  711. package/dist/esm-es5/index-ee40e66b.js +0 -2
  712. package/dist/esm-es5/index-ee40e66b.js.map +0 -1
  713. package/dist/esm-es5/index-fd99721b.js +0 -2
  714. package/dist/esm-es5/index-fd99721b.js.map +0 -1
  715. package/dist/esm-es5/index.js +0 -2
  716. package/dist/esm-es5/index.js.map +0 -1
  717. package/dist/esm-es5/loader.js +0 -2
  718. package/dist/esm-es5/loader.js.map +0 -1
  719. package/dist/esm-es5/utils-a31c16d9.js +0 -2
  720. package/dist/esm-es5/utils-a31c16d9.js.map +0 -1
  721. package/dist/esm-es5/utils-b924649f.js +0 -2
  722. package/dist/esm-es5/utils-b924649f.js.map +0 -1
  723. package/dist/esm-es5/web-components-library.js +0 -2
  724. package/dist/esm-es5/web-components-library.js.map +0 -1
  725. package/dist/esm-es5/z-accordion.entry.js +0 -2
  726. package/dist/esm-es5/z-accordion.entry.js.map +0 -1
  727. package/dist/esm-es5/z-alert.entry.js +0 -2
  728. package/dist/esm-es5/z-alert.entry.js.map +0 -1
  729. package/dist/esm-es5/z-anchor-navigation.entry.js +0 -2
  730. package/dist/esm-es5/z-anchor-navigation.entry.js.map +0 -1
  731. package/dist/esm-es5/z-app-header-deprecated.entry.js +0 -2
  732. package/dist/esm-es5/z-app-header-deprecated.entry.js.map +0 -1
  733. package/dist/esm-es5/z-app-header_12.entry.js +0 -2
  734. package/dist/esm-es5/z-app-header_12.entry.js.map +0 -1
  735. package/dist/esm-es5/z-aria-alert.entry.js +0 -2
  736. package/dist/esm-es5/z-aria-alert.entry.js.map +0 -1
  737. package/dist/esm-es5/z-avatar.entry.js +0 -2
  738. package/dist/esm-es5/z-avatar.entry.js.map +0 -1
  739. package/dist/esm-es5/z-book-card-app.entry.js +0 -2
  740. package/dist/esm-es5/z-book-card-app.entry.js.map +0 -1
  741. package/dist/esm-es5/z-book-card-deprecated.entry.js +0 -2
  742. package/dist/esm-es5/z-book-card-deprecated.entry.js.map +0 -1
  743. package/dist/esm-es5/z-book-card.entry.js +0 -2
  744. package/dist/esm-es5/z-book-card.entry.js.map +0 -1
  745. package/dist/esm-es5/z-breadcrumb.entry.js +0 -2
  746. package/dist/esm-es5/z-breadcrumb.entry.js.map +0 -1
  747. package/dist/esm-es5/z-button-sort.entry.js +0 -2
  748. package/dist/esm-es5/z-button-sort.entry.js.map +0 -1
  749. package/dist/esm-es5/z-card.entry.js +0 -2
  750. package/dist/esm-es5/z-card.entry.js.map +0 -1
  751. package/dist/esm-es5/z-carousel.entry.js +0 -2
  752. package/dist/esm-es5/z-carousel.entry.js.map +0 -1
  753. package/dist/esm-es5/z-chip.entry.js +0 -2
  754. package/dist/esm-es5/z-chip.entry.js.map +0 -1
  755. package/dist/esm-es5/z-combobox.entry.js +0 -2
  756. package/dist/esm-es5/z-combobox.entry.js.map +0 -1
  757. package/dist/esm-es5/z-cover-hero.entry.js +0 -2
  758. package/dist/esm-es5/z-cover-hero.entry.js.map +0 -1
  759. package/dist/esm-es5/z-date-picker.entry.js +0 -17
  760. package/dist/esm-es5/z-date-picker.entry.js.map +0 -1
  761. package/dist/esm-es5/z-dragdrop-area_2.entry.js +0 -2
  762. package/dist/esm-es5/z-dragdrop-area_2.entry.js.map +0 -1
  763. package/dist/esm-es5/z-file-upload.entry.js +0 -2
  764. package/dist/esm-es5/z-file-upload.entry.js.map +0 -1
  765. package/dist/esm-es5/z-file.entry.js +0 -2
  766. package/dist/esm-es5/z-file.entry.js.map +0 -1
  767. package/dist/esm-es5/z-ghost-loading.entry.js +0 -2
  768. package/dist/esm-es5/z-ghost-loading.entry.js.map +0 -1
  769. package/dist/esm-es5/z-info-box.entry.js +0 -2
  770. package/dist/esm-es5/z-info-box.entry.js.map +0 -1
  771. package/dist/esm-es5/z-info-reveal.entry.js +0 -2
  772. package/dist/esm-es5/z-info-reveal.entry.js.map +0 -1
  773. package/dist/esm-es5/z-logo.entry.js +0 -2
  774. package/dist/esm-es5/z-logo.entry.js.map +0 -1
  775. package/dist/esm-es5/z-menu-deprecated.entry.js +0 -2
  776. package/dist/esm-es5/z-menu-deprecated.entry.js.map +0 -1
  777. package/dist/esm-es5/z-menu-section-deprecated.entry.js +0 -2
  778. package/dist/esm-es5/z-menu-section-deprecated.entry.js.map +0 -1
  779. package/dist/esm-es5/z-menu-section.entry.js +0 -2
  780. package/dist/esm-es5/z-menu-section.entry.js.map +0 -1
  781. package/dist/esm-es5/z-menu.entry.js +0 -2
  782. package/dist/esm-es5/z-menu.entry.js.map +0 -1
  783. package/dist/esm-es5/z-myz-card-alert.entry.js +0 -2
  784. package/dist/esm-es5/z-myz-card-alert.entry.js.map +0 -1
  785. package/dist/esm-es5/z-myz-card-dictionary.entry.js +0 -2
  786. package/dist/esm-es5/z-myz-card-dictionary.entry.js.map +0 -1
  787. package/dist/esm-es5/z-myz-card-footer-sections.entry.js +0 -2
  788. package/dist/esm-es5/z-myz-card-footer-sections.entry.js.map +0 -1
  789. package/dist/esm-es5/z-myz-card-footer.entry.js +0 -2
  790. package/dist/esm-es5/z-myz-card-footer.entry.js.map +0 -1
  791. package/dist/esm-es5/z-myz-card-icon.entry.js +0 -2
  792. package/dist/esm-es5/z-myz-card-icon.entry.js.map +0 -1
  793. package/dist/esm-es5/z-myz-card-info.entry.js +0 -2
  794. package/dist/esm-es5/z-myz-card-info.entry.js.map +0 -1
  795. package/dist/esm-es5/z-myz-card-list.entry.js +0 -2
  796. package/dist/esm-es5/z-myz-card-list.entry.js.map +0 -1
  797. package/dist/esm-es5/z-myz-card_4.entry.js +0 -2
  798. package/dist/esm-es5/z-myz-card_4.entry.js.map +0 -1
  799. package/dist/esm-es5/z-myz-list-item.entry.js +0 -2
  800. package/dist/esm-es5/z-myz-list-item.entry.js.map +0 -1
  801. package/dist/esm-es5/z-myz-list.entry.js +0 -2
  802. package/dist/esm-es5/z-myz-list.entry.js.map +0 -1
  803. package/dist/esm-es5/z-navigation-tabs.entry.js +0 -2
  804. package/dist/esm-es5/z-navigation-tabs.entry.js.map +0 -1
  805. package/dist/esm-es5/z-notification.entry.js +0 -2
  806. package/dist/esm-es5/z-notification.entry.js.map +0 -1
  807. package/dist/esm-es5/z-otp.entry.js +0 -2
  808. package/dist/esm-es5/z-otp.entry.js.map +0 -1
  809. package/dist/esm-es5/z-pagination.entry.js +0 -2
  810. package/dist/esm-es5/z-pagination.entry.js.map +0 -1
  811. package/dist/esm-es5/z-panel-elem.entry.js +0 -2
  812. package/dist/esm-es5/z-panel-elem.entry.js.map +0 -1
  813. package/dist/esm-es5/z-popover.entry.js +0 -2
  814. package/dist/esm-es5/z-popover.entry.js.map +0 -1
  815. package/dist/esm-es5/z-range-picker.entry.js +0 -2
  816. package/dist/esm-es5/z-range-picker.entry.js.map +0 -1
  817. package/dist/esm-es5/z-section-title.entry.js +0 -2
  818. package/dist/esm-es5/z-section-title.entry.js.map +0 -1
  819. package/dist/esm-es5/z-select.entry.js +0 -2
  820. package/dist/esm-es5/z-select.entry.js.map +0 -1
  821. package/dist/esm-es5/z-skip-to-content.entry.js +0 -2
  822. package/dist/esm-es5/z-skip-to-content.entry.js.map +0 -1
  823. package/dist/esm-es5/z-slideshow.entry.js +0 -2
  824. package/dist/esm-es5/z-slideshow.entry.js.map +0 -1
  825. package/dist/esm-es5/z-stepper-item.entry.js +0 -2
  826. package/dist/esm-es5/z-stepper-item.entry.js.map +0 -1
  827. package/dist/esm-es5/z-stepper.entry.js +0 -2
  828. package/dist/esm-es5/z-stepper.entry.js.map +0 -1
  829. package/dist/esm-es5/z-table.entry.js +0 -2
  830. package/dist/esm-es5/z-table.entry.js.map +0 -1
  831. package/dist/esm-es5/z-tbody.entry.js +0 -2
  832. package/dist/esm-es5/z-td.entry.js +0 -2
  833. package/dist/esm-es5/z-tfoot.entry.js +0 -2
  834. package/dist/esm-es5/z-th.entry.js +0 -2
  835. package/dist/esm-es5/z-thead.entry.js +0 -2
  836. package/dist/esm-es5/z-toast-notification-list.entry.js +0 -2
  837. package/dist/esm-es5/z-toast-notification-list.entry.js.map +0 -1
  838. package/dist/esm-es5/z-toast-notification.entry.js +0 -7
  839. package/dist/esm-es5/z-toast-notification.entry.js.map +0 -1
  840. package/dist/esm-es5/z-toggle-button.entry.js +0 -2
  841. package/dist/esm-es5/z-toggle-button.entry.js.map +0 -1
  842. package/dist/esm-es5/z-toggle-switch.entry.js +0 -2
  843. package/dist/esm-es5/z-toggle-switch.entry.js.map +0 -1
  844. package/dist/esm-es5/z-tooltip.entry.js +0 -2
  845. package/dist/esm-es5/z-tooltip.entry.js.map +0 -1
  846. package/dist/esm-es5/z-tr.entry.js +0 -2
  847. package/dist/esm-es5/z-visually-hidden.entry.js +0 -2
  848. package/dist/esm-es5/z-visually-hidden.entry.js.map +0 -1
  849. package/dist/web-components-library/p-01faaaa7.system.entry.js +0 -17
  850. package/dist/web-components-library/p-01faaaa7.system.entry.js.map +0 -1
  851. package/dist/web-components-library/p-05a8064b.entry.js +0 -2
  852. package/dist/web-components-library/p-05a8064b.entry.js.map +0 -1
  853. package/dist/web-components-library/p-063aebfd.entry.js +0 -2
  854. package/dist/web-components-library/p-063aebfd.entry.js.map +0 -1
  855. package/dist/web-components-library/p-0a70ea7f.system.entry.js +0 -2
  856. package/dist/web-components-library/p-0a70ea7f.system.entry.js.map +0 -1
  857. package/dist/web-components-library/p-0a83d2cf.system.entry.js +0 -2
  858. package/dist/web-components-library/p-0a83d2cf.system.entry.js.map +0 -1
  859. package/dist/web-components-library/p-0aa064b4.entry.js +0 -2
  860. package/dist/web-components-library/p-0aa064b4.entry.js.map +0 -1
  861. package/dist/web-components-library/p-0ace83e2.entry.js +0 -2
  862. package/dist/web-components-library/p-0ace83e2.entry.js.map +0 -1
  863. package/dist/web-components-library/p-0acf5b47.entry.js +0 -2
  864. package/dist/web-components-library/p-0d6659f0.system.entry.js +0 -2
  865. package/dist/web-components-library/p-0d6659f0.system.entry.js.map +0 -1
  866. package/dist/web-components-library/p-0dcf996a.system.entry.js +0 -2
  867. package/dist/web-components-library/p-0dcf996a.system.entry.js.map +0 -1
  868. package/dist/web-components-library/p-13eadea8.entry.js +0 -2
  869. package/dist/web-components-library/p-13eadea8.entry.js.map +0 -1
  870. package/dist/web-components-library/p-1504b323.system.entry.js +0 -7
  871. package/dist/web-components-library/p-1504b323.system.entry.js.map +0 -1
  872. package/dist/web-components-library/p-15b6e0ab.system.entry.js +0 -2
  873. package/dist/web-components-library/p-15b6e0ab.system.entry.js.map +0 -1
  874. package/dist/web-components-library/p-1756ee1f.system.js +0 -2
  875. package/dist/web-components-library/p-1756ee1f.system.js.map +0 -1
  876. package/dist/web-components-library/p-18451749.entry.js +0 -2
  877. package/dist/web-components-library/p-1d8d2a3a.entry.js +0 -2
  878. package/dist/web-components-library/p-1d8d2a3a.entry.js.map +0 -1
  879. package/dist/web-components-library/p-1dbff73f.system.entry.js +0 -2
  880. package/dist/web-components-library/p-1dbff73f.system.entry.js.map +0 -1
  881. package/dist/web-components-library/p-1edba67a.entry.js +0 -2
  882. package/dist/web-components-library/p-1f9c2ffe.entry.js +0 -2
  883. package/dist/web-components-library/p-1f9c2ffe.entry.js.map +0 -1
  884. package/dist/web-components-library/p-1fbedccf.entry.js +0 -2
  885. package/dist/web-components-library/p-1fbedccf.entry.js.map +0 -1
  886. package/dist/web-components-library/p-2070676f.system.js +0 -2
  887. package/dist/web-components-library/p-2070676f.system.js.map +0 -1
  888. package/dist/web-components-library/p-23845bda.js +0 -2
  889. package/dist/web-components-library/p-23845bda.js.map +0 -1
  890. package/dist/web-components-library/p-263656b9.entry.js +0 -2
  891. package/dist/web-components-library/p-263656b9.entry.js.map +0 -1
  892. package/dist/web-components-library/p-26f0caa2.entry.js +0 -2
  893. package/dist/web-components-library/p-26f0caa2.entry.js.map +0 -1
  894. package/dist/web-components-library/p-2738b33e.system.entry.js +0 -2
  895. package/dist/web-components-library/p-2738b33e.system.entry.js.map +0 -1
  896. package/dist/web-components-library/p-290e0806.system.entry.js +0 -2
  897. package/dist/web-components-library/p-290e0806.system.entry.js.map +0 -1
  898. package/dist/web-components-library/p-29735d58.system.entry.js +0 -2
  899. package/dist/web-components-library/p-29735d58.system.entry.js.map +0 -1
  900. package/dist/web-components-library/p-2e0c2a2e.system.entry.js +0 -2
  901. package/dist/web-components-library/p-2e0c2a2e.system.entry.js.map +0 -1
  902. package/dist/web-components-library/p-328b5a16.system.entry.js +0 -2
  903. package/dist/web-components-library/p-328b5a16.system.entry.js.map +0 -1
  904. package/dist/web-components-library/p-33650038.system.entry.js +0 -2
  905. package/dist/web-components-library/p-33650038.system.entry.js.map +0 -1
  906. package/dist/web-components-library/p-338d42fa.system.entry.js +0 -2
  907. package/dist/web-components-library/p-338d42fa.system.entry.js.map +0 -1
  908. package/dist/web-components-library/p-343f5b87.system.entry.js +0 -2
  909. package/dist/web-components-library/p-343f5b87.system.entry.js.map +0 -1
  910. package/dist/web-components-library/p-34e6e101.entry.js +0 -2
  911. package/dist/web-components-library/p-34e6e101.entry.js.map +0 -1
  912. package/dist/web-components-library/p-3a17cca0.entry.js +0 -2
  913. package/dist/web-components-library/p-3a17cca0.entry.js.map +0 -1
  914. package/dist/web-components-library/p-3a9cd12d.system.entry.js +0 -2
  915. package/dist/web-components-library/p-3b1f8c43.system.entry.js +0 -2
  916. package/dist/web-components-library/p-3b1f8c43.system.entry.js.map +0 -1
  917. package/dist/web-components-library/p-3b4f4d89.entry.js +0 -2
  918. package/dist/web-components-library/p-3b4f4d89.entry.js.map +0 -1
  919. package/dist/web-components-library/p-3ea11fb6.entry.js +0 -2
  920. package/dist/web-components-library/p-3ea11fb6.entry.js.map +0 -1
  921. package/dist/web-components-library/p-3f28e4b3.entry.js +0 -2
  922. package/dist/web-components-library/p-3f28e4b3.entry.js.map +0 -1
  923. package/dist/web-components-library/p-40f7fb7f.system.entry.js +0 -2
  924. package/dist/web-components-library/p-40f7fb7f.system.entry.js.map +0 -1
  925. package/dist/web-components-library/p-41c7a946.entry.js +0 -2
  926. package/dist/web-components-library/p-41c7a946.entry.js.map +0 -1
  927. package/dist/web-components-library/p-430213e0.system.entry.js +0 -2
  928. package/dist/web-components-library/p-430213e0.system.entry.js.map +0 -1
  929. package/dist/web-components-library/p-48690a96.system.entry.js +0 -2
  930. package/dist/web-components-library/p-48690a96.system.entry.js.map +0 -1
  931. package/dist/web-components-library/p-4c168e46.system.entry.js +0 -2
  932. package/dist/web-components-library/p-4c168e46.system.entry.js.map +0 -1
  933. package/dist/web-components-library/p-4e93c427.system.js +0 -2
  934. package/dist/web-components-library/p-4e93c427.system.js.map +0 -1
  935. package/dist/web-components-library/p-501d2d46.entry.js +0 -2
  936. package/dist/web-components-library/p-501d2d46.entry.js.map +0 -1
  937. package/dist/web-components-library/p-53385a6e.system.entry.js +0 -2
  938. package/dist/web-components-library/p-53385a6e.system.entry.js.map +0 -1
  939. package/dist/web-components-library/p-56ba5cbf.system.js +0 -2
  940. package/dist/web-components-library/p-56ba5cbf.system.js.map +0 -1
  941. package/dist/web-components-library/p-56ec1eba.entry.js +0 -17
  942. package/dist/web-components-library/p-56ec1eba.entry.js.map +0 -1
  943. package/dist/web-components-library/p-598b3b9b.js +0 -2
  944. package/dist/web-components-library/p-598b3b9b.js.map +0 -1
  945. package/dist/web-components-library/p-5d3f0716.system.entry.js +0 -2
  946. package/dist/web-components-library/p-5d3f0716.system.entry.js.map +0 -1
  947. package/dist/web-components-library/p-5f8bc3bf.entry.js +0 -2
  948. package/dist/web-components-library/p-5f8bc3bf.entry.js.map +0 -1
  949. package/dist/web-components-library/p-5fd6c3e8.entry.js +0 -2
  950. package/dist/web-components-library/p-5fd6c3e8.entry.js.map +0 -1
  951. package/dist/web-components-library/p-6091d82b.entry.js +0 -2
  952. package/dist/web-components-library/p-6091d82b.entry.js.map +0 -1
  953. package/dist/web-components-library/p-61ac7fad.entry.js +0 -2
  954. package/dist/web-components-library/p-626dceda.system.entry.js +0 -2
  955. package/dist/web-components-library/p-626dceda.system.entry.js.map +0 -1
  956. package/dist/web-components-library/p-672b4e09.system.js +0 -2
  957. package/dist/web-components-library/p-672b4e09.system.js.map +0 -1
  958. package/dist/web-components-library/p-67dc61ac.entry.js +0 -2
  959. package/dist/web-components-library/p-67dc61ac.entry.js.map +0 -1
  960. package/dist/web-components-library/p-6a5bd1ca.system.entry.js +0 -2
  961. package/dist/web-components-library/p-6b7ad4a6.system.entry.js +0 -2
  962. package/dist/web-components-library/p-6b7ad4a6.system.entry.js.map +0 -1
  963. package/dist/web-components-library/p-6c8761c6.system.js +0 -2
  964. package/dist/web-components-library/p-6c8761c6.system.js.map +0 -1
  965. package/dist/web-components-library/p-6cb70123.js +0 -2
  966. package/dist/web-components-library/p-6cb70123.js.map +0 -1
  967. package/dist/web-components-library/p-6ec93872.system.entry.js +0 -2
  968. package/dist/web-components-library/p-6ec93872.system.entry.js.map +0 -1
  969. package/dist/web-components-library/p-6f00cc14.entry.js +0 -2
  970. package/dist/web-components-library/p-6f00cc14.entry.js.map +0 -1
  971. package/dist/web-components-library/p-6f87ae17.system.entry.js +0 -2
  972. package/dist/web-components-library/p-6f87ae17.system.entry.js.map +0 -1
  973. package/dist/web-components-library/p-70270f39.entry.js +0 -2
  974. package/dist/web-components-library/p-70270f39.entry.js.map +0 -1
  975. package/dist/web-components-library/p-73a45e23.system.entry.js +0 -2
  976. package/dist/web-components-library/p-73a45e23.system.entry.js.map +0 -1
  977. package/dist/web-components-library/p-77630f04.entry.js +0 -2
  978. package/dist/web-components-library/p-77630f04.entry.js.map +0 -1
  979. package/dist/web-components-library/p-78e06322.system.entry.js +0 -2
  980. package/dist/web-components-library/p-78e06322.system.entry.js.map +0 -1
  981. package/dist/web-components-library/p-7a0bf87b.system.entry.js +0 -2
  982. package/dist/web-components-library/p-7a0bf87b.system.entry.js.map +0 -1
  983. package/dist/web-components-library/p-7b170476.system.entry.js +0 -2
  984. package/dist/web-components-library/p-7b170476.system.entry.js.map +0 -1
  985. package/dist/web-components-library/p-7d3cc549.entry.js +0 -2
  986. package/dist/web-components-library/p-7d3cc549.entry.js.map +0 -1
  987. package/dist/web-components-library/p-7e3c133b.entry.js +0 -2
  988. package/dist/web-components-library/p-7e3c133b.entry.js.map +0 -1
  989. package/dist/web-components-library/p-7ecc7bd5.system.entry.js +0 -2
  990. package/dist/web-components-library/p-7ecc7bd5.system.entry.js.map +0 -1
  991. package/dist/web-components-library/p-7ef7fe98.system.js +0 -2
  992. package/dist/web-components-library/p-7ef7fe98.system.js.map +0 -1
  993. package/dist/web-components-library/p-832bd78d.system.entry.js +0 -2
  994. package/dist/web-components-library/p-832bd78d.system.entry.js.map +0 -1
  995. package/dist/web-components-library/p-897d7c3a.system.entry.js +0 -2
  996. package/dist/web-components-library/p-897d7c3a.system.entry.js.map +0 -1
  997. package/dist/web-components-library/p-8ad7f11d.system.entry.js +0 -2
  998. package/dist/web-components-library/p-8ad7f11d.system.entry.js.map +0 -1
  999. package/dist/web-components-library/p-8c14e5ba.system.entry.js +0 -2
  1000. package/dist/web-components-library/p-8c14e5ba.system.entry.js.map +0 -1
  1001. package/dist/web-components-library/p-8d0d1234.entry.js +0 -2
  1002. package/dist/web-components-library/p-8d0d1234.entry.js.map +0 -1
  1003. package/dist/web-components-library/p-8e8c7916.system.entry.js +0 -2
  1004. package/dist/web-components-library/p-8e8c7916.system.entry.js.map +0 -1
  1005. package/dist/web-components-library/p-8efb3264.entry.js +0 -2
  1006. package/dist/web-components-library/p-8efb3264.entry.js.map +0 -1
  1007. package/dist/web-components-library/p-8fb9599b.system.entry.js +0 -2
  1008. package/dist/web-components-library/p-8fb9599b.system.entry.js.map +0 -1
  1009. package/dist/web-components-library/p-902d6ead.js +0 -2
  1010. package/dist/web-components-library/p-902d6ead.js.map +0 -1
  1011. package/dist/web-components-library/p-9109c157.system.entry.js +0 -2
  1012. package/dist/web-components-library/p-9109c157.system.entry.js.map +0 -1
  1013. package/dist/web-components-library/p-910a5027.entry.js +0 -2
  1014. package/dist/web-components-library/p-910a5027.entry.js.map +0 -1
  1015. package/dist/web-components-library/p-9249ffcb.system.entry.js +0 -2
  1016. package/dist/web-components-library/p-9249ffcb.system.entry.js.map +0 -1
  1017. package/dist/web-components-library/p-9681e90f.system.entry.js +0 -2
  1018. package/dist/web-components-library/p-9681e90f.system.entry.js.map +0 -1
  1019. package/dist/web-components-library/p-983b47eb.entry.js +0 -2
  1020. package/dist/web-components-library/p-983b47eb.entry.js.map +0 -1
  1021. package/dist/web-components-library/p-9908464a.entry.js +0 -2
  1022. package/dist/web-components-library/p-9908464a.entry.js.map +0 -1
  1023. package/dist/web-components-library/p-9967c6f5.system.entry.js +0 -2
  1024. package/dist/web-components-library/p-9967c6f5.system.entry.js.map +0 -1
  1025. package/dist/web-components-library/p-9a116bc8.system.entry.js +0 -2
  1026. package/dist/web-components-library/p-9a116bc8.system.entry.js.map +0 -1
  1027. package/dist/web-components-library/p-9b5108d9.entry.js +0 -2
  1028. package/dist/web-components-library/p-9b5108d9.entry.js.map +0 -1
  1029. package/dist/web-components-library/p-9ca6b55e.system.entry.js +0 -2
  1030. package/dist/web-components-library/p-9ca6b55e.system.entry.js.map +0 -1
  1031. package/dist/web-components-library/p-9def2eb3.entry.js +0 -2
  1032. package/dist/web-components-library/p-9def2eb3.entry.js.map +0 -1
  1033. package/dist/web-components-library/p-9eeb8788.system.entry.js +0 -2
  1034. package/dist/web-components-library/p-9eeb8788.system.entry.js.map +0 -1
  1035. package/dist/web-components-library/p-9ff4bf4e.entry.js +0 -2
  1036. package/dist/web-components-library/p-9ff4bf4e.entry.js.map +0 -1
  1037. package/dist/web-components-library/p-a0fb12bf.entry.js +0 -2
  1038. package/dist/web-components-library/p-a0fb12bf.entry.js.map +0 -1
  1039. package/dist/web-components-library/p-a10e0cb5.entry.js +0 -2
  1040. package/dist/web-components-library/p-a10e0cb5.entry.js.map +0 -1
  1041. package/dist/web-components-library/p-a12bd05d.system.entry.js +0 -2
  1042. package/dist/web-components-library/p-a12bd05d.system.entry.js.map +0 -1
  1043. package/dist/web-components-library/p-a1f945ac.system.entry.js +0 -2
  1044. package/dist/web-components-library/p-a1f945ac.system.entry.js.map +0 -1
  1045. package/dist/web-components-library/p-a7b5bca5.system.entry.js +0 -2
  1046. package/dist/web-components-library/p-a7b5bca5.system.entry.js.map +0 -1
  1047. package/dist/web-components-library/p-aa0b992c.system.entry.js +0 -2
  1048. package/dist/web-components-library/p-aa0b992c.system.entry.js.map +0 -1
  1049. package/dist/web-components-library/p-b3ea380b.system.js +0 -3
  1050. package/dist/web-components-library/p-b3ea380b.system.js.map +0 -1
  1051. package/dist/web-components-library/p-b5751929.entry.js +0 -2
  1052. package/dist/web-components-library/p-b5751929.entry.js.map +0 -1
  1053. package/dist/web-components-library/p-b7c10157.system.js +0 -2
  1054. package/dist/web-components-library/p-b7c10157.system.js.map +0 -1
  1055. package/dist/web-components-library/p-b8d8a6c5.entry.js +0 -2
  1056. package/dist/web-components-library/p-b8d8a6c5.entry.js.map +0 -1
  1057. package/dist/web-components-library/p-b8fa33e7.entry.js +0 -2
  1058. package/dist/web-components-library/p-b8fa33e7.entry.js.map +0 -1
  1059. package/dist/web-components-library/p-c01ba02c.entry.js +0 -2
  1060. package/dist/web-components-library/p-c01ba02c.entry.js.map +0 -1
  1061. package/dist/web-components-library/p-c276bd00.entry.js +0 -2
  1062. package/dist/web-components-library/p-c276bd00.entry.js.map +0 -1
  1063. package/dist/web-components-library/p-c3663cf8.system.entry.js +0 -2
  1064. package/dist/web-components-library/p-c3663cf8.system.entry.js.map +0 -1
  1065. package/dist/web-components-library/p-c4c0b36f.entry.js +0 -2
  1066. package/dist/web-components-library/p-c4c0b36f.entry.js.map +0 -1
  1067. package/dist/web-components-library/p-ca2e78a1.system.entry.js +0 -2
  1068. package/dist/web-components-library/p-ca2e78a1.system.entry.js.map +0 -1
  1069. package/dist/web-components-library/p-ca4d6aff.js +0 -2
  1070. package/dist/web-components-library/p-ca4d6aff.js.map +0 -1
  1071. package/dist/web-components-library/p-cad14780.system.entry.js +0 -2
  1072. package/dist/web-components-library/p-cad14780.system.entry.js.map +0 -1
  1073. package/dist/web-components-library/p-cd54d9f1.entry.js +0 -2
  1074. package/dist/web-components-library/p-cd54d9f1.entry.js.map +0 -1
  1075. package/dist/web-components-library/p-cfa332f9.system.entry.js +0 -2
  1076. package/dist/web-components-library/p-cfa332f9.system.entry.js.map +0 -1
  1077. package/dist/web-components-library/p-d30a546b.entry.js +0 -2
  1078. package/dist/web-components-library/p-d30a546b.entry.js.map +0 -1
  1079. package/dist/web-components-library/p-d484cdd5.entry.js +0 -2
  1080. package/dist/web-components-library/p-d484cdd5.entry.js.map +0 -1
  1081. package/dist/web-components-library/p-d91b26d9.system.js +0 -2
  1082. package/dist/web-components-library/p-d91b26d9.system.js.map +0 -1
  1083. package/dist/web-components-library/p-da3e9cc5.entry.js +0 -2
  1084. package/dist/web-components-library/p-da3e9cc5.entry.js.map +0 -1
  1085. package/dist/web-components-library/p-daa3d9e5.system.js +0 -2
  1086. package/dist/web-components-library/p-daa3d9e5.system.js.map +0 -1
  1087. package/dist/web-components-library/p-dbfecfaa.system.entry.js +0 -2
  1088. package/dist/web-components-library/p-dbfecfaa.system.entry.js.map +0 -1
  1089. package/dist/web-components-library/p-dc225ede.entry.js +0 -2
  1090. package/dist/web-components-library/p-dc225ede.entry.js.map +0 -1
  1091. package/dist/web-components-library/p-dd2c6f2d.entry.js +0 -2
  1092. package/dist/web-components-library/p-dd2c6f2d.entry.js.map +0 -1
  1093. package/dist/web-components-library/p-de4606c5.system.entry.js +0 -2
  1094. package/dist/web-components-library/p-de4606c5.system.entry.js.map +0 -1
  1095. package/dist/web-components-library/p-dfe7cb73.entry.js +0 -2
  1096. package/dist/web-components-library/p-dfe7cb73.entry.js.map +0 -1
  1097. package/dist/web-components-library/p-e03e6a78.system.entry.js +0 -2
  1098. package/dist/web-components-library/p-e03e6a78.system.entry.js.map +0 -1
  1099. package/dist/web-components-library/p-e2088242.entry.js +0 -2
  1100. package/dist/web-components-library/p-e2088242.entry.js.map +0 -1
  1101. package/dist/web-components-library/p-e37f51fe.entry.js +0 -2
  1102. package/dist/web-components-library/p-e37f51fe.entry.js.map +0 -1
  1103. package/dist/web-components-library/p-e429e855.system.entry.js +0 -2
  1104. package/dist/web-components-library/p-e429e855.system.entry.js.map +0 -1
  1105. package/dist/web-components-library/p-e616adb1.system.entry.js +0 -2
  1106. package/dist/web-components-library/p-e616adb1.system.entry.js.map +0 -1
  1107. package/dist/web-components-library/p-e7dbba78.system.js +0 -2
  1108. package/dist/web-components-library/p-e7dbba78.system.js.map +0 -1
  1109. package/dist/web-components-library/p-ebbe994e.system.entry.js +0 -2
  1110. package/dist/web-components-library/p-ebbe994e.system.entry.js.map +0 -1
  1111. package/dist/web-components-library/p-ed4197a3.entry.js +0 -2
  1112. package/dist/web-components-library/p-ed4197a3.entry.js.map +0 -1
  1113. package/dist/web-components-library/p-edda3257.entry.js +0 -7
  1114. package/dist/web-components-library/p-edda3257.entry.js.map +0 -1
  1115. package/dist/web-components-library/p-ef09664f.system.js +0 -2
  1116. package/dist/web-components-library/p-ef09664f.system.js.map +0 -1
  1117. package/dist/web-components-library/p-f1c506f4.system.entry.js +0 -2
  1118. package/dist/web-components-library/p-f1c506f4.system.entry.js.map +0 -1
  1119. package/dist/web-components-library/p-f2374b3f.system.entry.js +0 -2
  1120. package/dist/web-components-library/p-f2374b3f.system.entry.js.map +0 -1
  1121. package/dist/web-components-library/p-f675808e.system.js +0 -2
  1122. package/dist/web-components-library/p-f675808e.system.js.map +0 -1
  1123. package/dist/web-components-library/p-f7448d81.system.entry.js +0 -2
  1124. package/dist/web-components-library/p-f7448d81.system.entry.js.map +0 -1
  1125. package/dist/web-components-library/p-f777c4d3.entry.js +0 -2
  1126. package/dist/web-components-library/p-f777c4d3.entry.js.map +0 -1
  1127. package/dist/web-components-library/p-f88ada7f.js +0 -2
  1128. package/dist/web-components-library/p-f88ada7f.js.map +0 -1
  1129. package/dist/web-components-library/p-fc346ca5.entry.js +0 -2
  1130. package/dist/web-components-library/p-fc346ca5.entry.js.map +0 -1
  1131. package/dist/web-components-library/p-ff686d23.system.entry.js +0 -2
  1132. package/dist/web-components-library/p-ff686d23.system.entry.js.map +0 -1
  1133. package/dist/web-components-library/web-components-library.js +0 -127
  1134. package/www/build/p-01faaaa7.system.entry.js +0 -17
  1135. package/www/build/p-01faaaa7.system.entry.js.map +0 -1
  1136. package/www/build/p-05a8064b.entry.js +0 -2
  1137. package/www/build/p-05a8064b.entry.js.map +0 -1
  1138. package/www/build/p-063aebfd.entry.js +0 -2
  1139. package/www/build/p-063aebfd.entry.js.map +0 -1
  1140. package/www/build/p-0a70ea7f.system.entry.js +0 -2
  1141. package/www/build/p-0a70ea7f.system.entry.js.map +0 -1
  1142. package/www/build/p-0a83d2cf.system.entry.js +0 -2
  1143. package/www/build/p-0a83d2cf.system.entry.js.map +0 -1
  1144. package/www/build/p-0aa064b4.entry.js +0 -2
  1145. package/www/build/p-0aa064b4.entry.js.map +0 -1
  1146. package/www/build/p-0ace83e2.entry.js +0 -2
  1147. package/www/build/p-0ace83e2.entry.js.map +0 -1
  1148. package/www/build/p-0acf5b47.entry.js +0 -2
  1149. package/www/build/p-0acf5b47.entry.js.map +0 -1
  1150. package/www/build/p-0c3d324c.css +0 -2534
  1151. package/www/build/p-0d6659f0.system.entry.js +0 -2
  1152. package/www/build/p-0d6659f0.system.entry.js.map +0 -1
  1153. package/www/build/p-0dcf996a.system.entry.js +0 -2
  1154. package/www/build/p-0dcf996a.system.entry.js.map +0 -1
  1155. package/www/build/p-13eadea8.entry.js +0 -2
  1156. package/www/build/p-13eadea8.entry.js.map +0 -1
  1157. package/www/build/p-1504b323.system.entry.js +0 -7
  1158. package/www/build/p-1504b323.system.entry.js.map +0 -1
  1159. package/www/build/p-15b6e0ab.system.entry.js +0 -2
  1160. package/www/build/p-15b6e0ab.system.entry.js.map +0 -1
  1161. package/www/build/p-1756ee1f.system.js +0 -2
  1162. package/www/build/p-1756ee1f.system.js.map +0 -1
  1163. package/www/build/p-18451749.entry.js +0 -2
  1164. package/www/build/p-18451749.entry.js.map +0 -1
  1165. package/www/build/p-1d8d2a3a.entry.js +0 -2
  1166. package/www/build/p-1d8d2a3a.entry.js.map +0 -1
  1167. package/www/build/p-1dbff73f.system.entry.js +0 -2
  1168. package/www/build/p-1dbff73f.system.entry.js.map +0 -1
  1169. package/www/build/p-1edba67a.entry.js +0 -2
  1170. package/www/build/p-1edba67a.entry.js.map +0 -1
  1171. package/www/build/p-1f9c2ffe.entry.js +0 -2
  1172. package/www/build/p-1f9c2ffe.entry.js.map +0 -1
  1173. package/www/build/p-1fbedccf.entry.js +0 -2
  1174. package/www/build/p-1fbedccf.entry.js.map +0 -1
  1175. package/www/build/p-2070676f.system.js +0 -2
  1176. package/www/build/p-2070676f.system.js.map +0 -1
  1177. package/www/build/p-23845bda.js +0 -2
  1178. package/www/build/p-23845bda.js.map +0 -1
  1179. package/www/build/p-263656b9.entry.js +0 -2
  1180. package/www/build/p-263656b9.entry.js.map +0 -1
  1181. package/www/build/p-26f0caa2.entry.js +0 -2
  1182. package/www/build/p-26f0caa2.entry.js.map +0 -1
  1183. package/www/build/p-2738b33e.system.entry.js +0 -2
  1184. package/www/build/p-2738b33e.system.entry.js.map +0 -1
  1185. package/www/build/p-290e0806.system.entry.js +0 -2
  1186. package/www/build/p-290e0806.system.entry.js.map +0 -1
  1187. package/www/build/p-29735d58.system.entry.js +0 -2
  1188. package/www/build/p-29735d58.system.entry.js.map +0 -1
  1189. package/www/build/p-2e0c2a2e.system.entry.js +0 -2
  1190. package/www/build/p-2e0c2a2e.system.entry.js.map +0 -1
  1191. package/www/build/p-328b5a16.system.entry.js +0 -2
  1192. package/www/build/p-328b5a16.system.entry.js.map +0 -1
  1193. package/www/build/p-33650038.system.entry.js +0 -2
  1194. package/www/build/p-33650038.system.entry.js.map +0 -1
  1195. package/www/build/p-338d42fa.system.entry.js +0 -2
  1196. package/www/build/p-338d42fa.system.entry.js.map +0 -1
  1197. package/www/build/p-343f5b87.system.entry.js +0 -2
  1198. package/www/build/p-343f5b87.system.entry.js.map +0 -1
  1199. package/www/build/p-34e6e101.entry.js +0 -2
  1200. package/www/build/p-34e6e101.entry.js.map +0 -1
  1201. package/www/build/p-3a17cca0.entry.js +0 -2
  1202. package/www/build/p-3a17cca0.entry.js.map +0 -1
  1203. package/www/build/p-3a9cd12d.system.entry.js +0 -2
  1204. package/www/build/p-3a9cd12d.system.entry.js.map +0 -1
  1205. package/www/build/p-3b1f8c43.system.entry.js +0 -2
  1206. package/www/build/p-3b1f8c43.system.entry.js.map +0 -1
  1207. package/www/build/p-3b4f4d89.entry.js +0 -2
  1208. package/www/build/p-3b4f4d89.entry.js.map +0 -1
  1209. package/www/build/p-3ea11fb6.entry.js +0 -2
  1210. package/www/build/p-3ea11fb6.entry.js.map +0 -1
  1211. package/www/build/p-3f28e4b3.entry.js +0 -2
  1212. package/www/build/p-3f28e4b3.entry.js.map +0 -1
  1213. package/www/build/p-40f7fb7f.system.entry.js +0 -2
  1214. package/www/build/p-40f7fb7f.system.entry.js.map +0 -1
  1215. package/www/build/p-41c7a946.entry.js +0 -2
  1216. package/www/build/p-41c7a946.entry.js.map +0 -1
  1217. package/www/build/p-430213e0.system.entry.js +0 -2
  1218. package/www/build/p-430213e0.system.entry.js.map +0 -1
  1219. package/www/build/p-48690a96.system.entry.js +0 -2
  1220. package/www/build/p-48690a96.system.entry.js.map +0 -1
  1221. package/www/build/p-4c168e46.system.entry.js +0 -2
  1222. package/www/build/p-4c168e46.system.entry.js.map +0 -1
  1223. package/www/build/p-4e93c427.system.js +0 -2
  1224. package/www/build/p-4e93c427.system.js.map +0 -1
  1225. package/www/build/p-501d2d46.entry.js +0 -2
  1226. package/www/build/p-501d2d46.entry.js.map +0 -1
  1227. package/www/build/p-53385a6e.system.entry.js +0 -2
  1228. package/www/build/p-53385a6e.system.entry.js.map +0 -1
  1229. package/www/build/p-56ba5cbf.system.js +0 -2
  1230. package/www/build/p-56ba5cbf.system.js.map +0 -1
  1231. package/www/build/p-56ec1eba.entry.js +0 -17
  1232. package/www/build/p-56ec1eba.entry.js.map +0 -1
  1233. package/www/build/p-598b3b9b.js +0 -2
  1234. package/www/build/p-598b3b9b.js.map +0 -1
  1235. package/www/build/p-5d3f0716.system.entry.js +0 -2
  1236. package/www/build/p-5d3f0716.system.entry.js.map +0 -1
  1237. package/www/build/p-5f8bc3bf.entry.js +0 -2
  1238. package/www/build/p-5f8bc3bf.entry.js.map +0 -1
  1239. package/www/build/p-5fd6c3e8.entry.js +0 -2
  1240. package/www/build/p-5fd6c3e8.entry.js.map +0 -1
  1241. package/www/build/p-6091d82b.entry.js +0 -2
  1242. package/www/build/p-6091d82b.entry.js.map +0 -1
  1243. package/www/build/p-61ac7fad.entry.js +0 -2
  1244. package/www/build/p-61ac7fad.entry.js.map +0 -1
  1245. package/www/build/p-626dceda.system.entry.js +0 -2
  1246. package/www/build/p-626dceda.system.entry.js.map +0 -1
  1247. package/www/build/p-672b4e09.system.js +0 -2
  1248. package/www/build/p-672b4e09.system.js.map +0 -1
  1249. package/www/build/p-67dc61ac.entry.js +0 -2
  1250. package/www/build/p-67dc61ac.entry.js.map +0 -1
  1251. package/www/build/p-6a5bd1ca.system.entry.js +0 -2
  1252. package/www/build/p-6a5bd1ca.system.entry.js.map +0 -1
  1253. package/www/build/p-6b7ad4a6.system.entry.js +0 -2
  1254. package/www/build/p-6b7ad4a6.system.entry.js.map +0 -1
  1255. package/www/build/p-6c8761c6.system.js +0 -2
  1256. package/www/build/p-6c8761c6.system.js.map +0 -1
  1257. package/www/build/p-6cb70123.js +0 -2
  1258. package/www/build/p-6cb70123.js.map +0 -1
  1259. package/www/build/p-6ec93872.system.entry.js +0 -2
  1260. package/www/build/p-6ec93872.system.entry.js.map +0 -1
  1261. package/www/build/p-6f00cc14.entry.js +0 -2
  1262. package/www/build/p-6f00cc14.entry.js.map +0 -1
  1263. package/www/build/p-6f87ae17.system.entry.js +0 -2
  1264. package/www/build/p-6f87ae17.system.entry.js.map +0 -1
  1265. package/www/build/p-70270f39.entry.js +0 -2
  1266. package/www/build/p-70270f39.entry.js.map +0 -1
  1267. package/www/build/p-73a45e23.system.entry.js +0 -2
  1268. package/www/build/p-73a45e23.system.entry.js.map +0 -1
  1269. package/www/build/p-77630f04.entry.js +0 -2
  1270. package/www/build/p-77630f04.entry.js.map +0 -1
  1271. package/www/build/p-78e06322.system.entry.js +0 -2
  1272. package/www/build/p-78e06322.system.entry.js.map +0 -1
  1273. package/www/build/p-7a0bf87b.system.entry.js +0 -2
  1274. package/www/build/p-7a0bf87b.system.entry.js.map +0 -1
  1275. package/www/build/p-7b170476.system.entry.js +0 -2
  1276. package/www/build/p-7b170476.system.entry.js.map +0 -1
  1277. package/www/build/p-7d3cc549.entry.js +0 -2
  1278. package/www/build/p-7d3cc549.entry.js.map +0 -1
  1279. package/www/build/p-7e3c133b.entry.js +0 -2
  1280. package/www/build/p-7e3c133b.entry.js.map +0 -1
  1281. package/www/build/p-7ecc7bd5.system.entry.js +0 -2
  1282. package/www/build/p-7ecc7bd5.system.entry.js.map +0 -1
  1283. package/www/build/p-7ef7fe98.system.js +0 -2
  1284. package/www/build/p-7ef7fe98.system.js.map +0 -1
  1285. package/www/build/p-832bd78d.system.entry.js +0 -2
  1286. package/www/build/p-832bd78d.system.entry.js.map +0 -1
  1287. package/www/build/p-897d7c3a.system.entry.js +0 -2
  1288. package/www/build/p-897d7c3a.system.entry.js.map +0 -1
  1289. package/www/build/p-8ad7f11d.system.entry.js +0 -2
  1290. package/www/build/p-8ad7f11d.system.entry.js.map +0 -1
  1291. package/www/build/p-8c14e5ba.system.entry.js +0 -2
  1292. package/www/build/p-8c14e5ba.system.entry.js.map +0 -1
  1293. package/www/build/p-8d0d1234.entry.js +0 -2
  1294. package/www/build/p-8d0d1234.entry.js.map +0 -1
  1295. package/www/build/p-8e8c7916.system.entry.js +0 -2
  1296. package/www/build/p-8e8c7916.system.entry.js.map +0 -1
  1297. package/www/build/p-8efb3264.entry.js +0 -2
  1298. package/www/build/p-8efb3264.entry.js.map +0 -1
  1299. package/www/build/p-8fb9599b.system.entry.js +0 -2
  1300. package/www/build/p-8fb9599b.system.entry.js.map +0 -1
  1301. package/www/build/p-902d6ead.js +0 -2
  1302. package/www/build/p-902d6ead.js.map +0 -1
  1303. package/www/build/p-9109c157.system.entry.js +0 -2
  1304. package/www/build/p-9109c157.system.entry.js.map +0 -1
  1305. package/www/build/p-910a5027.entry.js +0 -2
  1306. package/www/build/p-910a5027.entry.js.map +0 -1
  1307. package/www/build/p-9249ffcb.system.entry.js +0 -2
  1308. package/www/build/p-9249ffcb.system.entry.js.map +0 -1
  1309. package/www/build/p-9681e90f.system.entry.js +0 -2
  1310. package/www/build/p-9681e90f.system.entry.js.map +0 -1
  1311. package/www/build/p-983b47eb.entry.js +0 -2
  1312. package/www/build/p-983b47eb.entry.js.map +0 -1
  1313. package/www/build/p-9908464a.entry.js +0 -2
  1314. package/www/build/p-9908464a.entry.js.map +0 -1
  1315. package/www/build/p-9967c6f5.system.entry.js +0 -2
  1316. package/www/build/p-9967c6f5.system.entry.js.map +0 -1
  1317. package/www/build/p-9a116bc8.system.entry.js +0 -2
  1318. package/www/build/p-9a116bc8.system.entry.js.map +0 -1
  1319. package/www/build/p-9b5108d9.entry.js +0 -2
  1320. package/www/build/p-9b5108d9.entry.js.map +0 -1
  1321. package/www/build/p-9ca6b55e.system.entry.js +0 -2
  1322. package/www/build/p-9ca6b55e.system.entry.js.map +0 -1
  1323. package/www/build/p-9def2eb3.entry.js +0 -2
  1324. package/www/build/p-9def2eb3.entry.js.map +0 -1
  1325. package/www/build/p-9eeb8788.system.entry.js +0 -2
  1326. package/www/build/p-9eeb8788.system.entry.js.map +0 -1
  1327. package/www/build/p-9fe1e807.js +0 -2
  1328. package/www/build/p-9ff4bf4e.entry.js +0 -2
  1329. package/www/build/p-9ff4bf4e.entry.js.map +0 -1
  1330. package/www/build/p-a0fb12bf.entry.js +0 -2
  1331. package/www/build/p-a0fb12bf.entry.js.map +0 -1
  1332. package/www/build/p-a10e0cb5.entry.js +0 -2
  1333. package/www/build/p-a10e0cb5.entry.js.map +0 -1
  1334. package/www/build/p-a12bd05d.system.entry.js +0 -2
  1335. package/www/build/p-a12bd05d.system.entry.js.map +0 -1
  1336. package/www/build/p-a1f945ac.system.entry.js +0 -2
  1337. package/www/build/p-a1f945ac.system.entry.js.map +0 -1
  1338. package/www/build/p-a7b5bca5.system.entry.js +0 -2
  1339. package/www/build/p-a7b5bca5.system.entry.js.map +0 -1
  1340. package/www/build/p-aa0b992c.system.entry.js +0 -2
  1341. package/www/build/p-aa0b992c.system.entry.js.map +0 -1
  1342. package/www/build/p-b3ea380b.system.js +0 -3
  1343. package/www/build/p-b3ea380b.system.js.map +0 -1
  1344. package/www/build/p-b5751929.entry.js +0 -2
  1345. package/www/build/p-b5751929.entry.js.map +0 -1
  1346. package/www/build/p-b7c10157.system.js +0 -2
  1347. package/www/build/p-b7c10157.system.js.map +0 -1
  1348. package/www/build/p-b8d8a6c5.entry.js +0 -2
  1349. package/www/build/p-b8d8a6c5.entry.js.map +0 -1
  1350. package/www/build/p-b8fa33e7.entry.js +0 -2
  1351. package/www/build/p-b8fa33e7.entry.js.map +0 -1
  1352. package/www/build/p-c01ba02c.entry.js +0 -2
  1353. package/www/build/p-c01ba02c.entry.js.map +0 -1
  1354. package/www/build/p-c276bd00.entry.js +0 -2
  1355. package/www/build/p-c276bd00.entry.js.map +0 -1
  1356. package/www/build/p-c3663cf8.system.entry.js +0 -2
  1357. package/www/build/p-c3663cf8.system.entry.js.map +0 -1
  1358. package/www/build/p-c4c0b36f.entry.js +0 -2
  1359. package/www/build/p-c4c0b36f.entry.js.map +0 -1
  1360. package/www/build/p-ca2e78a1.system.entry.js +0 -2
  1361. package/www/build/p-ca2e78a1.system.entry.js.map +0 -1
  1362. package/www/build/p-ca4d6aff.js +0 -2
  1363. package/www/build/p-ca4d6aff.js.map +0 -1
  1364. package/www/build/p-cad14780.system.entry.js +0 -2
  1365. package/www/build/p-cad14780.system.entry.js.map +0 -1
  1366. package/www/build/p-cd54d9f1.entry.js +0 -2
  1367. package/www/build/p-cd54d9f1.entry.js.map +0 -1
  1368. package/www/build/p-cfa332f9.system.entry.js +0 -2
  1369. package/www/build/p-cfa332f9.system.entry.js.map +0 -1
  1370. package/www/build/p-d30a546b.entry.js +0 -2
  1371. package/www/build/p-d30a546b.entry.js.map +0 -1
  1372. package/www/build/p-d484cdd5.entry.js +0 -2
  1373. package/www/build/p-d484cdd5.entry.js.map +0 -1
  1374. package/www/build/p-d91b26d9.system.js +0 -2
  1375. package/www/build/p-d91b26d9.system.js.map +0 -1
  1376. package/www/build/p-da3e9cc5.entry.js +0 -2
  1377. package/www/build/p-da3e9cc5.entry.js.map +0 -1
  1378. package/www/build/p-daa3d9e5.system.js +0 -2
  1379. package/www/build/p-daa3d9e5.system.js.map +0 -1
  1380. package/www/build/p-dbfecfaa.system.entry.js +0 -2
  1381. package/www/build/p-dbfecfaa.system.entry.js.map +0 -1
  1382. package/www/build/p-dc225ede.entry.js +0 -2
  1383. package/www/build/p-dc225ede.entry.js.map +0 -1
  1384. package/www/build/p-dd2c6f2d.entry.js +0 -2
  1385. package/www/build/p-dd2c6f2d.entry.js.map +0 -1
  1386. package/www/build/p-de4606c5.system.entry.js +0 -2
  1387. package/www/build/p-de4606c5.system.entry.js.map +0 -1
  1388. package/www/build/p-dfe7cb73.entry.js +0 -2
  1389. package/www/build/p-dfe7cb73.entry.js.map +0 -1
  1390. package/www/build/p-e03e6a78.system.entry.js +0 -2
  1391. package/www/build/p-e03e6a78.system.entry.js.map +0 -1
  1392. package/www/build/p-e2088242.entry.js +0 -2
  1393. package/www/build/p-e2088242.entry.js.map +0 -1
  1394. package/www/build/p-e37f51fe.entry.js +0 -2
  1395. package/www/build/p-e37f51fe.entry.js.map +0 -1
  1396. package/www/build/p-e429e855.system.entry.js +0 -2
  1397. package/www/build/p-e429e855.system.entry.js.map +0 -1
  1398. package/www/build/p-e616adb1.system.entry.js +0 -2
  1399. package/www/build/p-e616adb1.system.entry.js.map +0 -1
  1400. package/www/build/p-e7dbba78.system.js +0 -2
  1401. package/www/build/p-e7dbba78.system.js.map +0 -1
  1402. package/www/build/p-ebbe994e.system.entry.js +0 -2
  1403. package/www/build/p-ebbe994e.system.entry.js.map +0 -1
  1404. package/www/build/p-ed4197a3.entry.js +0 -2
  1405. package/www/build/p-ed4197a3.entry.js.map +0 -1
  1406. package/www/build/p-edda3257.entry.js +0 -7
  1407. package/www/build/p-edda3257.entry.js.map +0 -1
  1408. package/www/build/p-ef09664f.system.js +0 -2
  1409. package/www/build/p-ef09664f.system.js.map +0 -1
  1410. package/www/build/p-f1c506f4.system.entry.js +0 -2
  1411. package/www/build/p-f1c506f4.system.entry.js.map +0 -1
  1412. package/www/build/p-f2374b3f.system.entry.js +0 -2
  1413. package/www/build/p-f2374b3f.system.entry.js.map +0 -1
  1414. package/www/build/p-f675808e.system.js +0 -2
  1415. package/www/build/p-f675808e.system.js.map +0 -1
  1416. package/www/build/p-f7448d81.system.entry.js +0 -2
  1417. package/www/build/p-f7448d81.system.entry.js.map +0 -1
  1418. package/www/build/p-f777c4d3.entry.js +0 -2
  1419. package/www/build/p-f777c4d3.entry.js.map +0 -1
  1420. package/www/build/p-f88ada7f.js +0 -2
  1421. package/www/build/p-f88ada7f.js.map +0 -1
  1422. package/www/build/p-fc346ca5.entry.js +0 -2
  1423. package/www/build/p-fc346ca5.entry.js.map +0 -1
  1424. package/www/build/p-ff686d23.system.entry.js +0 -2
  1425. package/www/build/p-ff686d23.system.entry.js.map +0 -1
  1426. /package/dist/{esm-es5/z-tbody.entry.js.map → web-components-library/p-2798c0b2.entry.js.map} +0 -0
  1427. /package/dist/{esm-es5/z-td.entry.js.map → web-components-library/p-2aeb2a94.entry.js.map} +0 -0
  1428. /package/dist/{esm-es5/z-tfoot.entry.js.map → web-components-library/p-6e1ba2f0.entry.js.map} +0 -0
  1429. /package/dist/{esm-es5/z-th.entry.js.map → web-components-library/p-ad825740.entry.js.map} +0 -0
  1430. /package/dist/{esm-es5/z-thead.entry.js.map → web-components-library/p-b38be247.entry.js.map} +0 -0
  1431. /package/dist/{esm-es5/z-tr.entry.js.map → web-components-library/p-e185545c.entry.js.map} +0 -0
  1432. /package/{dist/web-components-library/p-0acf5b47.entry.js.map → www/build/p-2798c0b2.entry.js.map} +0 -0
  1433. /package/{dist/web-components-library/p-18451749.entry.js.map → www/build/p-2aeb2a94.entry.js.map} +0 -0
  1434. /package/{dist/web-components-library/p-1edba67a.entry.js.map → www/build/p-6e1ba2f0.entry.js.map} +0 -0
  1435. /package/{dist/web-components-library/p-3a9cd12d.system.entry.js.map → www/build/p-ad825740.entry.js.map} +0 -0
  1436. /package/{dist/web-components-library/p-61ac7fad.entry.js.map → www/build/p-b38be247.entry.js.map} +0 -0
  1437. /package/{dist/web-components-library/p-6a5bd1ca.system.entry.js.map → www/build/p-e185545c.entry.js.map} +0 -0
@@ -1 +1 @@
1
- {"file":"z-info-reveal.entry.cjs.js","mappings":";;;;;;;AAAA,MAAM,SAAS,GAAG,o8FAAo8F,CAAC;AACv9F,0BAAe,SAAS;;MCaX,WAAW;;;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,IAAI,CAAC,gBACxB,CAAC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,SAAS,GAAG,SAAS,mBACrC,IAAI,CAAC,IAAI,GAAG,MAAM,GAAG,OAAO,mBAC7B,qBAAqB,IAElC,IAAI,CAAC,IAAI,IAAIA,qEAAQ,IAAI,EAAE,IAAI,CAAC,IAAI,GAAI,EACxC,IAAI,CAAC,KAAK,IAAIA,mEAAM,KAAK,EAAC,qBAAqB,IAAE,IAAI,CAAC,KAAK,CAAQ,CAC7D,EACTA,kEACE,KAAK,EAAC,qBAAqB,EAC3B,EAAE,EAAC,qBAAqB,EACxB,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC,EAC9B,MAAM,EAAE,CAAC,IAAI,CAAC,IAAI,IAElBA,oEAAa,EACbA,qEACE,KAAK,EAAC,qBAAqB,EAC3B,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,gBACxB,8BAA8B,IAEzCA,qEAAQ,IAAI,EAAC,UAAU,GAAG,CACnB,CACL,CACD,EACP;KACH;;;;;;;;;;;","names":["InfoRevealPosition","ControlSize","h","Host"],"sources":["src/components/z-info-reveal/styles.css?tag=z-info-reveal&encapsulation=shadow","src/components/z-info-reveal/index.tsx"],"sourcesContent":[":host {\n --z-info-reveal-panel-width: 384px; /* defaults half the size of the mobile breakpoint */\n --trigger-size: 44px;\n\n position: relative;\n}\n\n:host * {\n box-sizing: border-box;\n}\n\nbutton {\n --trigger-icon-size: calc(var(--trigger-size) / 2);\n\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n border: none;\n background-color: transparent;\n cursor: pointer;\n font-family: inherit;\n letter-spacing: inherit;\n}\n\nbutton:focus:focus-visible {\n box-shadow: var(--shadow-focus-primary);\n outline: none;\n}\n\n.z-info-reveal-trigger {\n min-width: var(--trigger-size);\n height: var(--trigger-size);\n padding: calc((var(--trigger-size) - var(--trigger-icon-size)) / 2);\n background-color: var(--color-surface05);\n border-radius: var(--border-radius);\n color: var(--color-text-inverse);\n column-gap: var(--space-unit);\n font-weight: var(--font-sb);\n line-height: 1rem;\n}\n\n:host([size=\"big\"]) .z-info-reveal-trigger {\n font-size: var(--font-size-2);\n}\n\n:host([size=\"small\"]) .z-info-reveal-trigger {\n --trigger-size: 36px;\n\n font-size: var(--font-size-2);\n}\n\n:host([size=\"x-small\"]) .z-info-reveal-trigger {\n --trigger-size: 32px;\n\n padding: var(--space-unit);\n font-size: var(--font-size-1);\n}\n\n:host > .z-info-reveal-trigger z-icon {\n --z-icon-width: var(--trigger-icon-size);\n --z-icon-height: var(--trigger-icon-size);\n\n display: flex;\n fill: var(--color-inverse-icon);\n}\n\n:host([size=\"small\"]) > .z-info-reveal-trigger z-icon {\n --trigger-icon-size: 18px;\n}\n\n:host([size=\"x-small\"]) > .z-info-reveal-trigger z-icon {\n --trigger-icon-size: 16px;\n}\n\n.z-info-reveal-panel {\n position: absolute;\n z-index: 99;\n display: flex;\n width: var(--z-info-reveal-panel-width);\n height: fit-content;\n align-items: flex-start;\n padding: calc(var(--space-unit) * 1.5);\n background-color: var(--color-surface05);\n border-radius: var(--border-radius);\n box-shadow: var(--shadow-4);\n color: var(--color-text-inverse);\n column-gap: var(--space-unit);\n}\n\n.z-info-reveal-panel[hidden] {\n display: none;\n}\n\n:host([position=\"top_left\"]) .z-info-reveal-panel,\n:host([position=\"top_right\"]) .z-info-reveal-panel {\n top: 0;\n}\n\n:host([position=\"bottom_left\"]) .z-info-reveal-panel,\n:host([position=\"bottom_right\"]) .z-info-reveal-panel {\n bottom: 0;\n}\n\n:host([position=\"top_right\"]) .z-info-reveal-panel,\n:host([position=\"bottom_right\"]) .z-info-reveal-panel {\n right: 0;\n}\n\n:host([position=\"top_left\"]) .z-info-reveal-panel,\n:host([position=\"bottom_left\"]) .z-info-reveal-panel {\n left: 0;\n}\n\n.z-info-reveal-panel .z-info-reveal-close {\n margin-left: auto;\n}\n\n.z-info-reveal-panel z-icon {\n fill: var(--color-inverse-icon);\n}\n\n@media (max-width: 767px) {\n .z-info-reveal-panel {\n position: fixed;\n top: auto !important;\n bottom: auto !important;\n left: var(--grid-margin) !important;\n width: calc(100% - (var(--grid-margin) * 2)) !important;\n max-width: none !important;\n margin-top: calc(var(--trigger-size) * -1);\n }\n}\n","import {Component, Element, Host, Listen, Prop, State, Watch, h} from \"@stencil/core\";\nimport {ControlSize, InfoRevealPosition} from \"../../beans\";\n\n/**\n * Info reveal component.\n *\n * @slot - content of the info panel.\n * @cssprop --z-info-reveal-panel-width - Width of the info panel.\n */\n@Component({\n tag: \"z-info-reveal\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZInfoReveal {\n /** Name of the icon for the trigger button */\n @Prop()\n icon? = \"informationsource\";\n\n /**\n * The position of the z-info-reveal in the page. This helps to correctly place the info panel.\n * The panel will grow in the opposite direction of the position.\n * For example, with the default position `BOTTOM_RIGHT`, the panel will grow vertically upwards and horizontally to the left.\n */\n @Prop({reflect: true})\n position?: InfoRevealPosition = InfoRevealPosition.BOTTOM_RIGHT;\n\n /** Label of the trigger button. */\n @Prop()\n label?: string;\n\n /** Aria label of the trigger button. It will be only used when `label` prop is empty. */\n @Prop()\n ariaLabel = \"Apri pannello informazioni\";\n\n /** Size of the trigger button */\n @Prop({reflect: true})\n size?: ControlSize = ControlSize.BIG;\n\n /** Whether the info panel is open. */\n @State()\n open = false;\n\n @Element() host: HTMLZInfoRevealElement;\n\n private panel: HTMLDivElement;\n\n /**\n * Adjust the position of the info panel to prevent exiting the viewport.\n */\n @Watch(\"position\")\n @Watch(\"open\")\n @Listen(\"resize\", {target: \"window\", passive: true})\n adjustPanelPosition(): void {\n if (!this.open || !this.panel) {\n return;\n }\n\n const rect = this.host.getBoundingClientRect();\n const gridMargin = parseInt(getComputedStyle(document.documentElement).getPropertyValue(\"--grid-margin\"), 10);\n const pageWidth = document.documentElement.offsetWidth;\n // Available space for the info panel to grow towards the edge of the page, based on the `position` prop.\n const availableSpace = Math.round(\n (this.position.includes(\"left\") ? pageWidth - rect.left : rect.right) - gridMargin\n );\n this.panel.style.maxWidth = `${availableSpace}px`;\n }\n\n /**\n * Toggle the open state of the info panel.\n */\n private togglePanel(): void {\n this.open = !this.open;\n }\n\n /**\n * Close the info panel.\n */\n private closePanel(): void {\n this.open = false;\n }\n\n @Listen(\"keydown\", {target: \"window\", capture: true})\n handleEscapeKey(event: KeyboardEvent): void {\n if (event.key === \"Escape\" && this.open) {\n this.closePanel();\n }\n }\n\n render(): HTMLZInfoRevealElement {\n return (\n <Host open={this.open}>\n <button\n class=\"z-info-reveal-trigger\"\n type=\"button\"\n onClick={this.togglePanel.bind(this)}\n aria-label={!this.label ? this.ariaLabel : undefined}\n aria-expanded={this.open ? \"true\" : \"false\"}\n aria-controls=\"z-info-reveal-panel\"\n >\n {this.icon && <z-icon name={this.icon} />}\n {this.label && <span class=\"z-info-reveal-label\">{this.label}</span>}\n </button>\n <div\n class=\"z-info-reveal-panel\"\n id=\"z-info-reveal-panel\"\n ref={(el) => (this.panel = el)}\n hidden={!this.open}\n >\n <slot></slot>\n <button\n class=\"z-info-reveal-close\"\n type=\"button\"\n onClick={this.closePanel.bind(this)}\n aria-label=\"Chiudi pannello informazioni\"\n >\n <z-icon name=\"multiply\" />\n </button>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"z-info-reveal.entry.cjs.js","mappings":";;;;;;;AAAA,MAAM,SAAS,GAAG,uhFAAuhF,CAAC;AAC1iF,0BAAe,SAAS;;MCaX,WAAW;;;oBAGd,mBAAmB;wBAQKA,0BAAkB,CAAC,YAAY;;yBAQnD,4BAA4B;oBAInBC,mBAAW,CAAC,GAAG;oBAI7B,KAAK;;;;;IAYZ,mBAAmB;QACjB,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE;YAC7B,OAAO;SACR;QAED,MAAM,IAAI,GAAG,IAA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AAK,IAAIA,mEAAM,KAAK,EAAC,qBAAqB,IAAE,IAAI,CAAC,KAAK,CAAQ,CAC7D,EACTA,kEACE,KAAK,EAAC,qBAAqB,EAC3B,EAAE,EAAC,qBAAqB,EACxB,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC,EAC9B,MAAM,EAAE,CAAC,IAAI,CAAC,IAAI,IAElBA,oEAAa,EACbA,qEACE,KAAK,EAAC,qBAAqB,EAC3B,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,gBACxB,8BAA8B,IAEzCA,qEAAQ,IAAI,EAAC,UAAU,GAAG,CACnB,CACL,CACD,EACP;KACH;;;;;;;;;;;","names":["InfoRevealPosition","ControlSize","h","Host"],"sources":["src/components/z-info-reveal/styles.css?tag=z-info-reveal&encapsulation=shadow","src/components/z-info-reveal/index.tsx"],"sourcesContent":[":host {\n --z-info-reveal-panel-width: 384px; /* defaults half the size of the mobile breakpoint */\n --trigger-size: 44px;\n\n position: relative;\n}\n\n:host * {\n box-sizing: border-box;\n}\n\nbutton {\n --trigger-icon-size: calc(var(--trigger-size) / 2);\n\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n border: none;\n background-color: transparent;\n cursor: pointer;\n font-family: inherit;\n letter-spacing: inherit;\n}\n\nbutton:focus:focus-visible {\n box-shadow: var(--shadow-focus-primary);\n outline: none;\n}\n\n.z-info-reveal-trigger {\n min-width: var(--trigger-size);\n height: var(--trigger-size);\n padding: calc((var(--trigger-size) - var(--trigger-icon-size)) / 2);\n background-color: var(--color-surface05);\n border-radius: var(--border-radius);\n color: var(--color-text-inverse);\n column-gap: var(--space-unit);\n font-weight: var(--font-sb);\n line-height: 1rem;\n}\n\n:host([size=\"big\"]) .z-info-reveal-trigger {\n font-size: var(--font-size-2);\n}\n\n:host([size=\"small\"]) .z-info-reveal-trigger {\n --trigger-size: 36px;\n\n font-size: var(--font-size-2);\n}\n\n:host([size=\"x-small\"]) .z-info-reveal-trigger {\n --trigger-size: 32px;\n\n padding: var(--space-unit);\n font-size: var(--font-size-1);\n}\n\n:host > .z-info-reveal-trigger z-icon {\n --z-icon-width: var(--trigger-icon-size);\n --z-icon-height: var(--trigger-icon-size);\n\n display: flex;\n fill: var(--color-inverse-icon);\n}\n\n:host([size=\"small\"]) > .z-info-reveal-trigger z-icon {\n --trigger-icon-size: 18px;\n}\n\n:host([size=\"x-small\"]) > .z-info-reveal-trigger z-icon {\n --trigger-icon-size: 16px;\n}\n\n.z-info-reveal-panel {\n position: absolute;\n z-index: 99;\n display: flex;\n width: var(--z-info-reveal-panel-width);\n height: fit-content;\n align-items: flex-start;\n padding: calc(var(--space-unit) * 1.5);\n background-color: var(--color-surface05);\n border-radius: var(--border-radius);\n box-shadow: var(--shadow-4);\n color: var(--color-text-inverse);\n column-gap: var(--space-unit);\n}\n\n.z-info-reveal-panel[hidden] {\n display: none;\n}\n\n:host([position=\"top_left\"]) .z-info-reveal-panel,\n:host([position=\"top_right\"]) .z-info-reveal-panel {\n top: 0;\n}\n\n:host([position=\"bottom_left\"]) .z-info-reveal-panel,\n:host([position=\"bottom_right\"]) .z-info-reveal-panel {\n bottom: 0;\n}\n\n:host([position=\"top_right\"]) .z-info-reveal-panel,\n:host([position=\"bottom_right\"]) .z-info-reveal-panel {\n right: 0;\n}\n\n:host([position=\"top_left\"]) .z-info-reveal-panel,\n:host([position=\"bottom_left\"]) .z-info-reveal-panel {\n left: 0;\n}\n\n.z-info-reveal-panel .z-info-reveal-close {\n margin-left: auto;\n}\n\n.z-info-reveal-panel z-icon {\n fill: var(--color-inverse-icon);\n}\n\n@media (max-width: 767px) {\n .z-info-reveal-panel {\n position: fixed;\n top: auto !important;\n bottom: auto !important;\n left: var(--grid-margin) !important;\n width: calc(100% - (var(--grid-margin) * 2)) !important;\n max-width: none !important;\n margin-top: calc(var(--trigger-size) * -1);\n }\n}\n","import {Component, Element, Host, Listen, Prop, State, Watch, h} from \"@stencil/core\";\nimport {ControlSize, InfoRevealPosition} from \"../../beans\";\n\n/**\n * Info reveal component.\n *\n * @slot - content of the info panel.\n * @cssprop --z-info-reveal-panel-width - Width of the info panel.\n */\n@Component({\n tag: \"z-info-reveal\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZInfoReveal {\n /** Name of the icon for the trigger button */\n @Prop()\n icon? = \"informationsource\";\n\n /**\n * The position of the z-info-reveal in the page. This helps to correctly place the info panel.\n * The panel will grow in the opposite direction of the position.\n * For example, with the default position `BOTTOM_RIGHT`, the panel will grow vertically upwards and horizontally to the left.\n */\n @Prop({reflect: true})\n position?: InfoRevealPosition = InfoRevealPosition.BOTTOM_RIGHT;\n\n /** Label of the trigger button. */\n @Prop()\n label?: string;\n\n /** Aria label of the trigger button. It will be only used when `label` prop is empty. */\n @Prop()\n ariaLabel = \"Apri pannello informazioni\";\n\n /** Size of the trigger button */\n @Prop({reflect: true})\n size?: ControlSize = ControlSize.BIG;\n\n /** Whether the info panel is open. */\n @State()\n open = false;\n\n @Element() host: HTMLZInfoRevealElement;\n\n private panel: HTMLDivElement;\n\n /**\n * Adjust the position of the info panel to prevent exiting the viewport.\n */\n @Watch(\"position\")\n @Watch(\"open\")\n @Listen(\"resize\", {target: \"window\", passive: true})\n adjustPanelPosition(): void {\n if (!this.open || !this.panel) {\n return;\n }\n\n const rect = this.host.getBoundingClientRect();\n const gridMargin = parseInt(getComputedStyle(document.documentElement).getPropertyValue(\"--grid-margin\"), 10);\n const pageWidth = document.documentElement.offsetWidth;\n // Available space for the info panel to grow towards the edge of the page, based on the `position` prop.\n const availableSpace = Math.round(\n (this.position.includes(\"left\") ? pageWidth - rect.left : rect.right) - gridMargin\n );\n this.panel.style.maxWidth = `${availableSpace}px`;\n }\n\n /**\n * Toggle the open state of the info panel.\n */\n private togglePanel(): void {\n this.open = !this.open;\n }\n\n /**\n * Close the info panel.\n */\n private closePanel(): void {\n this.open = false;\n }\n\n @Listen(\"keydown\", {target: \"window\", capture: true})\n handleEscapeKey(event: KeyboardEvent): void {\n if (event.key === \"Escape\" && this.open) {\n this.closePanel();\n }\n }\n\n render(): HTMLZInfoRevealElement {\n return (\n <Host open={this.open}>\n <button\n class=\"z-info-reveal-trigger\"\n type=\"button\"\n onClick={this.togglePanel.bind(this)}\n aria-label={!this.label ? this.ariaLabel : undefined}\n aria-expanded={this.open ? \"true\" : \"false\"}\n aria-controls=\"z-info-reveal-panel\"\n >\n {this.icon && <z-icon name={this.icon} />}\n {this.label && <span class=\"z-info-reveal-label\">{this.label}</span>}\n </button>\n <div\n class=\"z-info-reveal-panel\"\n id=\"z-info-reveal-panel\"\n ref={(el) => (this.panel = el)}\n hidden={!this.open}\n >\n <slot></slot>\n <button\n class=\"z-info-reveal-close\"\n type=\"button\"\n onClick={this.closePanel.bind(this)}\n aria-label=\"Chiudi pannello informazioni\"\n >\n <z-icon name=\"multiply\" />\n </button>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-96af6326.js');
6
6
 
7
- const stylesCss = ":host,::slotted(*),*{-webkit-box-sizing:border-box;box-sizing:border-box}:host{position:relative;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column;--z-menu-label-color:var(--color-default-text)}::slotted(a){text-decoration:none}::slotted(*){color:var(--color-default-text);font-family:var(--font-family-sans);font-weight:var(--font-rg)}.menu-label{padding:0;border:0;margin:0;background:transparent;border-radius:0;color:inherit;outline:none;text-align:left}button.menu-label{cursor:pointer}.menu-label:focus-within{z-index:1;padding-right:calc(var(--space-unit) * 0.5);padding-left:calc(var(--space-unit) * 0.5);margin-right:calc(var(--space-unit) * -0.5);margin-left:calc(var(--space-unit) * -0.5);-webkit-box-shadow:var(--shadow-focus-primary);box-shadow:var(--shadow-focus-primary)}.menu-label .menu-label-content{position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host(:is([active],[open])) .menu-label-content,.menu-label:focus-within .menu-label-content{font-weight:var(--font-bd)}:host(:is([active],[open])) .menu-label-content ::slotted(*),.menu-label:focus-within .menu-label-content ::slotted(*){letter-spacing:normal}:host .menu-label .menu-label-content ::slotted(*:not([slot]):focus:focus-visible){-webkit-box-shadow:none !important;box-shadow:none !important}:host(:is([active],[open],[vertical-context])) .menu-label .menu-label-content::after,.menu-label .menu-label-content:hover::after,.menu-label:focus-within .menu-label-content::after{position:absolute;bottom:0;left:0;width:100%;content:\"\";pointer-events:none}:host([vertical-context]) .menu-label-content::after{height:var(--border-size-small);background-color:var(--color-surface03)}:host(:is([active],[open])) .menu-label .menu-label-content::after,.menu-label .menu-label-content:hover::after,.menu-label:focus-within .menu-label-content::after{height:var(--border-size-large);background-color:var(--color-primary01)}::slotted([data-text])::after{height:0;content:attr(data-text);content:attr(data-text) / \"\";font-weight:var(--font-bd);letter-spacing:normal;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;visibility:hidden}@media speech{::slotted([data-text])::after{display:none}}::slotted([data-text]){display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column}.menu-label .menu-label-content ::slotted(*){display:-ms-inline-flexbox;display:inline-flex;width:100%;margin:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;color:var(--z-menu-label-color);font-family:var(--font-family-sans);font-size:var(--font-size-5);font-weight:inherit;letter-spacing:0.36px;line-height:1.2;outline:none}.menu-label .menu-label-content ::slotted(*),.menu-label .menu-label-content z-icon{padding:var(--space-unit) 0}.menu-label .menu-label-content z-icon{margin-left:calc(var(--space-unit) * 1.5);fill:currentcolor}.content{background:var(--color-surface01)}:host(:not([open])) .content{display:none}:host([floating]) .content{position:absolute;top:100%;left:0;width:375px;min-width:100%;max-width:100vw;padding:var(--space-unit) var(--space-unit) calc(var(--space-unit) * 2);-webkit-box-shadow:var(--shadow-2);box-shadow:var(--shadow-2)}:host(:not([floating])) .content{width:100%}.header{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:var(--space-unit) 0 calc(var(--space-unit) * 2)}.header ::slotted(img[slot=\"header\"]){width:calc(var(--space-unit) * 11.25);height:auto;-o-object-fit:contain;object-fit:contain}.header ::slotted([slot=\"header\"]:not(:first-child)){margin:auto 0;margin-left:calc(var(--space-unit) * 2.5);font-size:var(--font-size-3);font-weight:var(--font-sb);line-height:1.5}.items{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start;background:inherit}.items>::slotted([slot=\"item\"]){width:100%;margin:0;font-size:var(--font-size-3);line-height:1.25;outline:none}.items>::slotted([slot=\"item\"]:focus:focus-visible){-webkit-box-shadow:var(--shadow-focus-primary);box-shadow:var(--shadow-focus-primary)}.items>::slotted([slot=\"item\"]:not(z-menu-section)){padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 0.5);border-bottom:var(--border-size-small) solid var(--color-surface05)}.items>::slotted([slot=\"item\"]:hover),.items>::slotted([slot=\"item\"]:focus:focus-visible),.items>::slotted([slot=\"item\"]:active){border-color:var(--color-primary01);font-weight:var(--font-bd)}";
7
+ const stylesCss = ":host,::slotted(*),*{box-sizing:border-box}:host{position:relative;display:inline-flex;flex-direction:column;--z-menu-label-color:var(--color-default-text)}::slotted(a){text-decoration:none}::slotted(*){color:var(--color-default-text);font-family:var(--font-family-sans);font-weight:var(--font-rg)}.menu-label{padding:0;border:0;margin:0;background:transparent;border-radius:0;color:inherit;outline:none;text-align:left}button.menu-label{cursor:pointer}.menu-label:focus-within{z-index:1;padding-right:calc(var(--space-unit) * 0.5);padding-left:calc(var(--space-unit) * 0.5);margin-right:calc(var(--space-unit) * -0.5);margin-left:calc(var(--space-unit) * -0.5);box-shadow:var(--shadow-focus-primary)}.menu-label .menu-label-content{position:relative;display:flex;align-items:center}:host(:is([active],[open])) .menu-label-content,.menu-label:focus-within .menu-label-content{font-weight:var(--font-bd)}:host(:is([active],[open])) .menu-label-content ::slotted(*),.menu-label:focus-within .menu-label-content ::slotted(*){letter-spacing:normal}:host .menu-label .menu-label-content ::slotted(*:not([slot]):focus:focus-visible){box-shadow:none !important}:host(:is([active],[open],[vertical-context])) .menu-label .menu-label-content::after,.menu-label .menu-label-content:hover::after,.menu-label:focus-within .menu-label-content::after{position:absolute;bottom:0;left:0;width:100%;content:\"\";pointer-events:none}:host([vertical-context]) .menu-label-content::after{height:var(--border-size-small);background-color:var(--color-surface03)}:host(:is([active],[open])) .menu-label .menu-label-content::after,.menu-label .menu-label-content:hover::after,.menu-label:focus-within .menu-label-content::after{height:var(--border-size-large);background-color:var(--color-primary01)}::slotted([data-text])::after{height:0;content:attr(data-text);content:attr(data-text) / \"\";font-weight:var(--font-bd);letter-spacing:normal;pointer-events:none;user-select:none;visibility:hidden}@media speech{::slotted([data-text])::after{display:none}}::slotted([data-text]){display:inline-flex;flex-direction:column}.menu-label .menu-label-content ::slotted(*){display:inline-flex;width:100%;margin:0;appearance:none;color:var(--z-menu-label-color);font-family:var(--font-family-sans);font-size:var(--font-size-5);font-weight:inherit;letter-spacing:0.36px;line-height:1.2;outline:none}.menu-label .menu-label-content ::slotted(*),.menu-label .menu-label-content z-icon{padding:var(--space-unit) 0}.menu-label .menu-label-content z-icon{margin-left:calc(var(--space-unit) * 1.5);fill:currentcolor}.content{background:var(--color-surface01)}:host(:not([open])) .content{display:none}:host([floating]) .content{position:absolute;top:100%;left:0;width:375px;min-width:100%;max-width:100vw;padding:var(--space-unit) var(--space-unit) calc(var(--space-unit) * 2);box-shadow:var(--shadow-2)}:host(:not([floating])) .content{width:100%}.header{display:flex;align-items:center;padding:var(--space-unit) 0 calc(var(--space-unit) * 2)}.header ::slotted(img[slot=\"header\"]){width:calc(var(--space-unit) * 11.25);height:auto;object-fit:contain}.header ::slotted([slot=\"header\"]:not(:first-child)){margin:auto 0;margin-left:calc(var(--space-unit) * 2.5);font-size:var(--font-size-3);font-weight:var(--font-sb);line-height:1.5}.items{display:flex;flex-direction:column;align-items:flex-start;background:inherit}.items>::slotted([slot=\"item\"]){width:100%;margin:0;font-size:var(--font-size-3);line-height:1.25;outline:none}.items>::slotted([slot=\"item\"]:focus:focus-visible){box-shadow:var(--shadow-focus-primary)}.items>::slotted([slot=\"item\"]:not(z-menu-section)){padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 0.5);border-bottom:var(--border-size-small) solid var(--color-surface05)}.items>::slotted([slot=\"item\"]:hover),.items>::slotted([slot=\"item\"]:focus:focus-visible),.items>::slotted([slot=\"item\"]:active){border-color:var(--color-primary01);font-weight:var(--font-bd)}";
8
8
  const ZMenuDeprecatedStyle0 = stylesCss;
9
9
 
10
10
  const ZMenuDeprecated = class {
@@ -1 +1 @@
1
- {"file":"z-menu-deprecated.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,SAAS,GAAG,4+IAA4+I,CAAC;AAC//I,8BAAe,SAAS;;MCYX,eAAe;IA6ClB,MAAM;QACZ,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE;YACpB,OAAO;SACR;QAED,IAAI,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC;QACvB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;KACrD;;IAID,WAAW,CAAC,EAAc;QACxB,IAAI,CAAC,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,EAAE,CAAC,MAAiB,CAAC,EAAE;YACnF,OAAO;SACR;QAED,IAAI,CAAC,MAAM,EAAE,CAAC;QACd,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC;QAClB,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;KACpB;IAGD,aAAa;QACX,IAAI,IAAI,CAAC,IAAI,EAAE;YACb,IAAI,CAAC,MAAM,CAAC,IAA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I,CAAC,IAAI,GAAG,YAAY,GAAG,cAAc,GAAI,CACvD,CACC,EACT;SACH;QAED,QACEA,iBAAK,KAAK,EAAC,YAAY,IACrBA,iBAAK,KAAK,EAAC,oBAAoB,IAC7BA,kBAAM,YAAY,EAAE,IAAI,CAAC,iBAAiB,GAAS,CAC/C,CACF,EACN;KACH;IAED,MAAM;QACJ,QACEA,QAACC,UAAI,uDACF,IAAI,CAAC,eAAe,EAAE,EAEtB,IAAI,CAAC,UAAU,KACdD,kEACE,KAAK,EAAC,SAAS,EACf,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC,IAE/B,IAAI,CAAC,SAAS,KACbA,qEAAQ,KAAK,EAAC,QAAQ,IACpBA,mEACE,IAAI,EAAC,QAAQ,EACb,YAAY,EAAE,IAAI,CAAC,YAAY,GACzB,CACD,CACV,EAEDA,kEACE,KAAK,EAAC,OAAO,EACb,IAAI,EAAC,MAAM,IAEXA,mEACE,IAAI,EAAC,MAAM,EACX,YAAY,EAAE,IAAI,CAAC,aAAa,GAC1B,CACJ,CACF,CACP,CACI,EACP;KACH;;;;;;;;;;","names":["h","Host"],"sources":["src/components/deprecated/z-menu-deprecated/styles.css?tag=z-menu-deprecated&encapsulation=shadow","src/components/deprecated/z-menu-deprecated/index.tsx"],"sourcesContent":[":host,\n::slotted(*),\n* {\n box-sizing: border-box;\n}\n\n:host {\n position: relative;\n display: inline-flex;\n flex-direction: column;\n\n --z-menu-label-color: var(--color-default-text);\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.menu-label {\n padding: 0;\n border: 0;\n margin: 0;\n background: transparent;\n border-radius: 0;\n color: inherit;\n outline: none;\n text-align: left;\n}\n\nbutton.menu-label {\n cursor: pointer;\n}\n\n.menu-label:focus-within {\n z-index: 1;\n padding-right: calc(var(--space-unit) * 0.5);\n padding-left: calc(var(--space-unit) * 0.5);\n margin-right: calc(var(--space-unit) * -0.5);\n margin-left: calc(var(--space-unit) * -0.5);\n box-shadow: var(--shadow-focus-primary);\n}\n\n.menu-label .menu-label-content {\n position: relative;\n display: flex;\n align-items: center;\n}\n\n:host(:is([active], [open])) .menu-label-content,\n.menu-label:focus-within .menu-label-content {\n font-weight: var(--font-bd);\n}\n\n:host(:is([active], [open])) .menu-label-content ::slotted(*),\n.menu-label:focus-within .menu-label-content ::slotted(*) {\n letter-spacing: normal;\n}\n\n:host .menu-label .menu-label-content ::slotted(*:not([slot]):focus:focus-visible) {\n box-shadow: none !important;\n}\n\n/* border */\n:host(:is([active], [open], [vertical-context])) .menu-label .menu-label-content::after,\n.menu-label .menu-label-content:hover::after,\n.menu-label:focus-within .menu-label-content::after {\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n content: \"\";\n pointer-events: none;\n}\n\n:host([vertical-context]) .menu-label-content::after {\n height: var(--border-size-small);\n background-color: var(--color-surface03);\n}\n\n:host(:is([active], [open])) .menu-label .menu-label-content::after,\n.menu-label .menu-label-content:hover::after,\n.menu-label:focus-within .menu-label-content::after {\n height: var(--border-size-large);\n background-color: var(--color-primary01);\n}\n\n/* Prevents 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 height: 0;\n content: attr(data-text);\n content: attr(data-text) / \"\";\n font-weight: var(--font-bd);\n letter-spacing: normal;\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::slotted([data-text]) {\n display: inline-flex;\n flex-direction: column;\n}\n\n.menu-label .menu-label-content ::slotted(*) {\n display: inline-flex;\n width: 100%;\n margin: 0;\n appearance: none;\n color: var(--z-menu-label-color);\n font-family: var(--font-family-sans);\n font-size: var(--font-size-5);\n font-weight: inherit;\n letter-spacing: 0.36px; /* increasing the letter spacing of the regular text helps reduce the size difference between regular and bold text */\n line-height: 1.2;\n outline: none;\n}\n\n.menu-label .menu-label-content ::slotted(*),\n.menu-label .menu-label-content z-icon {\n padding: var(--space-unit) 0;\n}\n\n.menu-label .menu-label-content z-icon {\n margin-left: calc(var(--space-unit) * 1.5);\n fill: currentcolor;\n}\n\n.content {\n background: var(--color-surface01);\n}\n\n:host(:not([open])) .content {\n display: none;\n}\n\n:host([floating]) .content {\n position: absolute;\n top: 100%;\n left: 0;\n width: 375px;\n min-width: 100%;\n max-width: 100vw;\n padding: var(--space-unit) var(--space-unit) calc(var(--space-unit) * 2);\n box-shadow: var(--shadow-2);\n}\n\n:host(:not([floating])) .content {\n width: 100%;\n}\n\n.header {\n display: flex;\n align-items: center;\n padding: var(--space-unit) 0 calc(var(--space-unit) * 2);\n}\n\n.header ::slotted(img[slot=\"header\"]) {\n width: calc(var(--space-unit) * 11.25);\n height: auto;\n object-fit: contain;\n}\n\n.header ::slotted([slot=\"header\"]:not(:first-child)) {\n margin: auto 0;\n margin-left: calc(var(--space-unit) * 2.5);\n font-size: var(--font-size-3);\n font-weight: var(--font-sb);\n line-height: 1.5;\n}\n\n.items {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n background: inherit;\n}\n\n.items > ::slotted([slot=\"item\"]) {\n width: 100%;\n margin: 0;\n font-size: var(--font-size-3);\n line-height: 1.25;\n outline: none;\n}\n\n.items > ::slotted([slot=\"item\"]:focus:focus-visible) {\n box-shadow: var(--shadow-focus-primary);\n}\n\n.items > ::slotted([slot=\"item\"]:not(z-menu-section)) {\n padding: calc(var(--space-unit) * 2) calc(var(--space-unit) * 0.5);\n border-bottom: var(--border-size-small) solid var(--color-surface05);\n}\n\n.items > ::slotted([slot=\"item\"]:hover),\n.items > ::slotted([slot=\"item\"]:focus:focus-visible),\n.items > ::slotted([slot=\"item\"]:active) {\n border-color: var(--color-primary01);\n font-weight: var(--font-bd);\n}\n","import {Component, Element, Event, EventEmitter, Host, Listen, Prop, State, Watch, h} from \"@stencil/core\";\n\n/**\n * @slot - Menu label\n * @slot header - Header to display as the first entry of the open menu.\n * @slot item - Single entry of the section. Can be slotted multiple times to insert items onto the menu. Use `z-menu-section` for submenus.\n * @cssprop --z-menu-label-color - Color of the label's text.\n */\n@Component({\n tag: \"z-menu-deprecated\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZMenuDeprecated {\n @Element() hostElement: HTMLZMenuDeprecatedElement;\n\n /** Flag to set the active status of the menu. */\n @Prop({reflect: true})\n active?: boolean;\n\n /**\n * Flag to set the display mode of the list.\n * If true, the list will be absolutely positioned under the menu label,\n * stacked beneath it otherwise.\n */\n @Prop({reflect: true})\n floating? = false;\n\n /** The opening state of the menu. */\n @Prop({mutable: true, reflect: true})\n open = false;\n\n /**\n * Tells the component that it's placed in a vertical context with other `ZMenu`s (e.g. in the ZAppHeader's offcanvas).\n * A small border is placed under it as a separator from other elements.\n */\n @Prop({reflect: true})\n verticalContext = false;\n\n @State()\n hasHeader: boolean;\n\n @State()\n hasContent: boolean;\n\n private content: HTMLElement;\n\n /** Animation frame request id. */\n private raf: number;\n\n /** The menu has been opened. */\n @Event()\n opened: EventEmitter;\n\n /** The menu 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 floating list when a click is performed outside of this Element. */\n @Listen(\"click\", {target: \"document\"})\n handleClick(ev: MouseEvent): void {\n if (!this.floating || !this.open || this.hostElement.contains(ev.target as Element)) {\n return;\n }\n\n this.reflow();\n this.open = false;\n this.closed.emit();\n }\n\n @Watch(\"open\")\n onOpenChanged(): void {\n if (this.open) {\n this.reflow(true);\n } else {\n cancelAnimationFrame(this.raf);\n }\n }\n\n constructor() {\n this.toggle = this.toggle.bind(this);\n this.checkContent = this.checkContent.bind(this);\n this.onLabelSlotChange = this.onLabelSlotChange.bind(this);\n this.onItemsChange = this.onItemsChange.bind(this);\n }\n\n componentWillLoad(): void {\n this.checkContent();\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 /**\n * Correctly set position of the floating menu in order to prevent overflow.\n * @param live Should run the method on every refresh frame.\n */\n private reflow(live = false): void {\n if (this.content) {\n const {style} = this.content;\n const {left} = this.hostElement.getBoundingClientRect();\n const widthPx = getComputedStyle(this.content).width;\n const width = widthPx ? parseFloat(widthPx.replace(\"px\", \"\")) : 375;\n const safeScrollbarSpace = 30;\n style.left = `${Math.min(window.innerWidth - left - width - safeScrollbarSpace, 0)}px`;\n }\n if (live) {\n this.raf = requestAnimationFrame(this.reflow.bind(this, live));\n }\n }\n\n /**\n * Check if some content slot is set.\n */\n private checkContent(): void {\n this.hasHeader = !!this.hostElement.querySelectorAll(\"[slot=header]\").length;\n this.hasContent = !!this.hostElement.querySelectorAll(\"[slot=item]\").length || this.hasHeader;\n }\n\n /**\n * Set `menuitem` role to all menu items.\n * Set the item's inner text to the `data-text` attribute (this is for using bold text avoiding layout shifts).\n */\n private onItemsChange(): void {\n this.checkContent();\n const items = this.hostElement.querySelectorAll<HTMLElement>(\"[slot=item]\");\n items.forEach((item) => {\n item.setAttribute(\"role\", \"menuitem\");\n item.dataset.text = item.textContent;\n });\n }\n\n private renderMenuLabel(): HTMLButtonElement | HTMLDivElement {\n if (this.hasContent) {\n return (\n <button\n class=\"menu-label\"\n aria-expanded={this.open ? \"true\" : \"false\"}\n aria-label={this.open ? \"Chiudi menù\" : \"Apri menù\"}\n onClick={this.toggle}\n >\n <div class=\"menu-label-content\">\n <slot onSlotchange={this.onLabelSlotChange}></slot>\n <z-icon name={this.open ? \"chevron-up\" : \"chevron-down\"} />\n </div>\n </button>\n );\n }\n\n return (\n <div class=\"menu-label\">\n <div class=\"menu-label-content\">\n <slot onSlotchange={this.onLabelSlotChange}></slot>\n </div>\n </div>\n );\n }\n\n render(): HTMLZMenuElement {\n return (\n <Host>\n {this.renderMenuLabel()}\n\n {this.hasContent && (\n <div\n class=\"content\"\n ref={(el) => (this.content = el)}\n >\n {this.hasHeader && (\n <header class=\"header\">\n <slot\n name=\"header\"\n onSlotchange={this.checkContent}\n ></slot>\n </header>\n )}\n\n <div\n class=\"items\"\n role=\"menu\"\n >\n <slot\n name=\"item\"\n onSlotchange={this.onItemsChange}\n ></slot>\n </div>\n </div>\n )}\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"z-menu-deprecated.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,SAAS,GAAG,u4HAAu4H,CAAC;AAC15H,8BAAe,SAAS;;MCYX,eAAe;IA6ClB,MAAM;QACZ,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE;YACpB,OAAO;SACR;QAED,IAAI,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC;QACvB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;KACrD;;IAID,WAAW,CAAC,EAAc;QACxB,IAAI,CAAC,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,EAAE,CAAC,MAAiB,CAAC,EAAE;YACnF,OAAO;SACR;QAED,IAAI,CAAC,MAAM,EAAE,CAAC;QACd,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC;QAClB,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;KACpB;IAGD,aAAa;QACX,IAAI,IAAI,CAAC,IAAI,EAAE;YACb,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;SACnB;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YAAY,GAAG,cAAc,GAAI,CACvD,CACC,EACT;SACH;QAED,QACEA,iBAAK,KAAK,EAAC,YAAY,IACrBA,iBAAK,KAAK,EAAC,oBAAoB,IAC7BA,kBAAM,YAAY,EAAE,IAAI,CAAC,iBAAiB,GAAS,CAC/C,CACF,EACN;KACH;IAED,MAAM;QACJ,QACEA,QAACC,UAAI,uDACF,IAAI,CAAC,eAAe,EAAE,EAEtB,IAAI,CAAC,UAAU,KACdD,kEACE,KAAK,EAAC,SAAS,EACf,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC,IAE/B,IAAI,CAAC,SAAS,KACbA,qEAAQ,KAAK,EAAC,QAAQ,IACpBA,mEACE,IAAI,EAAC,QAAQ,EACb,YAAY,EAAE,IAAI,CAAC,YAAY,GACzB,CACD,CACV,EAEDA,kEACE,KAAK,EAAC,OAAO,EACb,IAAI,EAAC,MAAM,IAEXA,mEACE,IAAI,EAAC,MAAM,EACX,YAAY,EAAE,IAAI,CAAC,aAAa,GAC1B,CACJ,CACF,CACP,CACI,EACP;KACH;;;;;;;;;;","names":["h","Host"],"sources":["src/components/deprecated/z-menu-deprecated/styles.css?tag=z-menu-deprecated&encapsulation=shadow","src/components/deprecated/z-menu-deprecated/index.tsx"],"sourcesContent":[":host,\n::slotted(*),\n* {\n box-sizing: border-box;\n}\n\n:host {\n position: relative;\n display: inline-flex;\n flex-direction: column;\n\n --z-menu-label-color: var(--color-default-text);\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.menu-label {\n padding: 0;\n border: 0;\n margin: 0;\n background: transparent;\n border-radius: 0;\n color: inherit;\n outline: none;\n text-align: left;\n}\n\nbutton.menu-label {\n cursor: pointer;\n}\n\n.menu-label:focus-within {\n z-index: 1;\n padding-right: calc(var(--space-unit) * 0.5);\n padding-left: calc(var(--space-unit) * 0.5);\n margin-right: calc(var(--space-unit) * -0.5);\n margin-left: calc(var(--space-unit) * -0.5);\n box-shadow: var(--shadow-focus-primary);\n}\n\n.menu-label .menu-label-content {\n position: relative;\n display: flex;\n align-items: center;\n}\n\n:host(:is([active], [open])) .menu-label-content,\n.menu-label:focus-within .menu-label-content {\n font-weight: var(--font-bd);\n}\n\n:host(:is([active], [open])) .menu-label-content ::slotted(*),\n.menu-label:focus-within .menu-label-content ::slotted(*) {\n letter-spacing: normal;\n}\n\n:host .menu-label .menu-label-content ::slotted(*:not([slot]):focus:focus-visible) {\n box-shadow: none !important;\n}\n\n/* border */\n:host(:is([active], [open], [vertical-context])) .menu-label .menu-label-content::after,\n.menu-label .menu-label-content:hover::after,\n.menu-label:focus-within .menu-label-content::after {\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n content: \"\";\n pointer-events: none;\n}\n\n:host([vertical-context]) .menu-label-content::after {\n height: var(--border-size-small);\n background-color: var(--color-surface03);\n}\n\n:host(:is([active], [open])) .menu-label .menu-label-content::after,\n.menu-label .menu-label-content:hover::after,\n.menu-label:focus-within .menu-label-content::after {\n height: var(--border-size-large);\n background-color: var(--color-primary01);\n}\n\n/* Prevents 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 height: 0;\n content: attr(data-text);\n content: attr(data-text) / \"\";\n font-weight: var(--font-bd);\n letter-spacing: normal;\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::slotted([data-text]) {\n display: inline-flex;\n flex-direction: column;\n}\n\n.menu-label .menu-label-content ::slotted(*) {\n display: inline-flex;\n width: 100%;\n margin: 0;\n appearance: none;\n color: var(--z-menu-label-color);\n font-family: var(--font-family-sans);\n font-size: var(--font-size-5);\n font-weight: inherit;\n letter-spacing: 0.36px; /* increasing the letter spacing of the regular text helps reduce the size difference between regular and bold text */\n line-height: 1.2;\n outline: none;\n}\n\n.menu-label .menu-label-content ::slotted(*),\n.menu-label .menu-label-content z-icon {\n padding: var(--space-unit) 0;\n}\n\n.menu-label .menu-label-content z-icon {\n margin-left: calc(var(--space-unit) * 1.5);\n fill: currentcolor;\n}\n\n.content {\n background: var(--color-surface01);\n}\n\n:host(:not([open])) .content {\n display: none;\n}\n\n:host([floating]) .content {\n position: absolute;\n top: 100%;\n left: 0;\n width: 375px;\n min-width: 100%;\n max-width: 100vw;\n padding: var(--space-unit) var(--space-unit) calc(var(--space-unit) * 2);\n box-shadow: var(--shadow-2);\n}\n\n:host(:not([floating])) .content {\n width: 100%;\n}\n\n.header {\n display: flex;\n align-items: center;\n padding: var(--space-unit) 0 calc(var(--space-unit) * 2);\n}\n\n.header ::slotted(img[slot=\"header\"]) {\n width: calc(var(--space-unit) * 11.25);\n height: auto;\n object-fit: contain;\n}\n\n.header ::slotted([slot=\"header\"]:not(:first-child)) {\n margin: auto 0;\n margin-left: calc(var(--space-unit) * 2.5);\n font-size: var(--font-size-3);\n font-weight: var(--font-sb);\n line-height: 1.5;\n}\n\n.items {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n background: inherit;\n}\n\n.items > ::slotted([slot=\"item\"]) {\n width: 100%;\n margin: 0;\n font-size: var(--font-size-3);\n line-height: 1.25;\n outline: none;\n}\n\n.items > ::slotted([slot=\"item\"]:focus:focus-visible) {\n box-shadow: var(--shadow-focus-primary);\n}\n\n.items > ::slotted([slot=\"item\"]:not(z-menu-section)) {\n padding: calc(var(--space-unit) * 2) calc(var(--space-unit) * 0.5);\n border-bottom: var(--border-size-small) solid var(--color-surface05);\n}\n\n.items > ::slotted([slot=\"item\"]:hover),\n.items > ::slotted([slot=\"item\"]:focus:focus-visible),\n.items > ::slotted([slot=\"item\"]:active) {\n border-color: var(--color-primary01);\n font-weight: var(--font-bd);\n}\n","import {Component, Element, Event, EventEmitter, Host, Listen, Prop, State, Watch, h} from \"@stencil/core\";\n\n/**\n * @slot - Menu label\n * @slot header - Header to display as the first entry of the open menu.\n * @slot item - Single entry of the section. Can be slotted multiple times to insert items onto the menu. Use `z-menu-section` for submenus.\n * @cssprop --z-menu-label-color - Color of the label's text.\n */\n@Component({\n tag: \"z-menu-deprecated\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZMenuDeprecated {\n @Element() hostElement: HTMLZMenuDeprecatedElement;\n\n /** Flag to set the active status of the menu. */\n @Prop({reflect: true})\n active?: boolean;\n\n /**\n * Flag to set the display mode of the list.\n * If true, the list will be absolutely positioned under the menu label,\n * stacked beneath it otherwise.\n */\n @Prop({reflect: true})\n floating? = false;\n\n /** The opening state of the menu. */\n @Prop({mutable: true, reflect: true})\n open = false;\n\n /**\n * Tells the component that it's placed in a vertical context with other `ZMenu`s (e.g. in the ZAppHeader's offcanvas).\n * A small border is placed under it as a separator from other elements.\n */\n @Prop({reflect: true})\n verticalContext = false;\n\n @State()\n hasHeader: boolean;\n\n @State()\n hasContent: boolean;\n\n private content: HTMLElement;\n\n /** Animation frame request id. */\n private raf: number;\n\n /** The menu has been opened. */\n @Event()\n opened: EventEmitter;\n\n /** The menu 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 floating list when a click is performed outside of this Element. */\n @Listen(\"click\", {target: \"document\"})\n handleClick(ev: MouseEvent): void {\n if (!this.floating || !this.open || this.hostElement.contains(ev.target as Element)) {\n return;\n }\n\n this.reflow();\n this.open = false;\n this.closed.emit();\n }\n\n @Watch(\"open\")\n onOpenChanged(): void {\n if (this.open) {\n this.reflow(true);\n } else {\n cancelAnimationFrame(this.raf);\n }\n }\n\n constructor() {\n this.toggle = this.toggle.bind(this);\n this.checkContent = this.checkContent.bind(this);\n this.onLabelSlotChange = this.onLabelSlotChange.bind(this);\n this.onItemsChange = this.onItemsChange.bind(this);\n }\n\n componentWillLoad(): void {\n this.checkContent();\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 /**\n * Correctly set position of the floating menu in order to prevent overflow.\n * @param live Should run the method on every refresh frame.\n */\n private reflow(live = false): void {\n if (this.content) {\n const {style} = this.content;\n const {left} = this.hostElement.getBoundingClientRect();\n const widthPx = getComputedStyle(this.content).width;\n const width = widthPx ? parseFloat(widthPx.replace(\"px\", \"\")) : 375;\n const safeScrollbarSpace = 30;\n style.left = `${Math.min(window.innerWidth - left - width - safeScrollbarSpace, 0)}px`;\n }\n if (live) {\n this.raf = requestAnimationFrame(this.reflow.bind(this, live));\n }\n }\n\n /**\n * Check if some content slot is set.\n */\n private checkContent(): void {\n this.hasHeader = !!this.hostElement.querySelectorAll(\"[slot=header]\").length;\n this.hasContent = !!this.hostElement.querySelectorAll(\"[slot=item]\").length || this.hasHeader;\n }\n\n /**\n * Set `menuitem` role to all menu items.\n * Set the item's inner text to the `data-text` attribute (this is for using bold text avoiding layout shifts).\n */\n private onItemsChange(): void {\n this.checkContent();\n const items = this.hostElement.querySelectorAll<HTMLElement>(\"[slot=item]\");\n items.forEach((item) => {\n item.setAttribute(\"role\", \"menuitem\");\n item.dataset.text = item.textContent;\n });\n }\n\n private renderMenuLabel(): HTMLButtonElement | HTMLDivElement {\n if (this.hasContent) {\n return (\n <button\n class=\"menu-label\"\n aria-expanded={this.open ? \"true\" : \"false\"}\n aria-label={this.open ? \"Chiudi menù\" : \"Apri menù\"}\n onClick={this.toggle}\n >\n <div class=\"menu-label-content\">\n <slot onSlotchange={this.onLabelSlotChange}></slot>\n <z-icon name={this.open ? \"chevron-up\" : \"chevron-down\"} />\n </div>\n </button>\n );\n }\n\n return (\n <div class=\"menu-label\">\n <div class=\"menu-label-content\">\n <slot onSlotchange={this.onLabelSlotChange}></slot>\n </div>\n </div>\n );\n }\n\n render(): HTMLZMenuElement {\n return (\n <Host>\n {this.renderMenuLabel()}\n\n {this.hasContent && (\n <div\n class=\"content\"\n ref={(el) => (this.content = el)}\n >\n {this.hasHeader && (\n <header class=\"header\">\n <slot\n name=\"header\"\n onSlotchange={this.checkContent}\n ></slot>\n </header>\n )}\n\n <div\n class=\"items\"\n role=\"menu\"\n >\n <slot\n name=\"item\"\n onSlotchange={this.onItemsChange}\n ></slot>\n </div>\n </div>\n )}\n </Host>\n );\n }\n}\n"],"version":3}
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-96af6326.js');
6
6
 
7
- const stylesCss = ":host{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start;-ms-flex-pack:center;justify-content:center;padding:0;font-family:var(--font-family-sans)}:host,::slotted(*),*{-webkit-box-sizing:border-box;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)}:host(:is([active],[open])) .label,.label:hover{border-color:var(--color-primary01)}:host(:is([active],[open])) .label ::slotted(*),.label:focus:focus-visible ::slotted(*),.label:hover ::slotted(*){font-weight:var(--font-bd)}.label{display:-ms-flexbox;display:flex;width:100%;-ms-flex-align:center;align-items:center;padding:calc(var(--space-unit) * 2) calc(var(--space-unit) / 2);border:0;border-bottom:var(--border-size-small) solid var(--color-surface05);margin:0;background:transparent;border-radius:0;cursor:pointer;text-align:left}::slotted([data-text]){display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;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;-webkit-user-select:none;-moz-user-select:none;-ms-user-select: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.25}.label:focus:focus-visible{-webkit-box-shadow:var(--shadow-focus-primary);box-shadow:var(--shadow-focus-primary);outline:none}.label z-icon{margin-left:calc(var(--space-unit) * 4);fill:var(--color-default-icon)}.items{display:-ms-flexbox;display:flex;width:100%;-ms-flex-direction:column;flex-direction:column;padding:calc(var(--space-unit) / 2);padding-bottom:calc(var(--space-unit) * 1.5)}.items>::slotted([slot=\"item\"]){display:-ms-inline-flexbox;display:inline-flex;padding:calc(var(--space-unit) / 2);margin:0;font-size:var(--font-size-2);line-height:1.4;outline:none}.items>::slotted([slot=\"item\"]:focus:focus-visible){-webkit-box-shadow:var(--shadow-focus-primary);box-shadow:var(--shadow-focus-primary);color:var(--color-primary01)}.items>::slotted([slot=\"item\"]:hover),.items>::slotted([slot=\"item\"]:focus:focus-visible),.items>::slotted([slot=\"item\"][active]){color:var(--color-primary01);font-weight:var(--font-bd)}";
7
+ const stylesCss = ":host{display:inline-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)}:host(:is([active],[open])) .label,.label:hover{border-color:var(--color-primary01)}:host(:is([active],[open])) .label ::slotted(*),.label:focus:focus-visible ::slotted(*),.label:hover ::slotted(*){font-weight:var(--font-bd)}.label{display:flex;width:100%;align-items:center;padding:calc(var(--space-unit) * 2) calc(var(--space-unit) / 2);border:0;border-bottom:var(--border-size-small) solid var(--color-surface05);margin:0;background:transparent;border-radius:0;cursor:pointer;text-align:left}::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.25}.label:focus:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none}.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>::slotted([slot=\"item\"]){display:inline-flex;padding:calc(var(--space-unit) / 2);margin:0;font-size:var(--font-size-2);line-height:1.4;outline:none}.items>::slotted([slot=\"item\"]:focus:focus-visible){box-shadow:var(--shadow-focus-primary);color:var(--color-primary01)}.items>::slotted([slot=\"item\"]:hover),.items>::slotted([slot=\"item\"]:focus:focus-visible),.items>::slotted([slot=\"item\"][active]){color:var(--color-primary01);font-weight:var(--font-bd)}";
8
8
  const ZMenuSectionDeprecatedStyle0 = stylesCss;
9
9
 
10
10
  const ZMenuSectionDeprecated = class {
@@ -1 +1 @@
1
- {"file":"z-menu-section-deprecated.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,SAAS,GAAG,+4EAA+4E,CAAC;AACl6E,qCAAe,SAAS;;MCWX,sBAAsB;;;;;;;;;IAqBzB,MAAM;QACZ,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE;YACpB,OAAO;SACR;QAED,IAAI,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC;QACvB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;KACrD;;IAID,WAAW,CAAC,EAAc;QACxB,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,EAAE,CAAC,MAAc,CAAC,EAAE;YAC9D,OAAO;SACR;QAED,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC;QAClB,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;KACpB;;;;IAKO,YAAY;QAClB,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,eAAe,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC;KACjF;;;;;IAMO,iBAAiB,CAAC,EAAS;QACjC,MAAM,YAAY,GAAI,EAAE,CAAC,MAA0B,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAgB,CAAC;QACzF,YAAY,CAAC,OAAO,CAAC,IAAI,GAAG,CAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,SAAS,KAAI,IAAI,CAAC;KAC7D;IAED,iBAAiB;QACf,IAAI,CAAC,YAAY,EAAE,CAAC;KACrB;IAED,MAAM;QACJ,QACEA,QAACC,UAAI,qDACH,IAAI,EAAC,MAAM,EACX,IAAI,EAAE,IAAI,CAAC,IAAI,IAEfD,qEACE,KAAK,EAAC,OAAO,kBACC,IAAI,CAAC,IAAI,GAAG,MAAM,GAAG,OAAO,EAC1C,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAE/BA,mEAAM,YAAY,EAAE,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,GAAS,EAC7D,IAAI,CAAC,UAAU,IAAIA,qEAAQ,IAAI,EAAE,IAAI,CAAC,IAAI,GAAG,YAAY,GAAG,cAAc,GAAI,CACxE,EACR,IAAI,CAAC,IAAI,KACRA,kEAAK,KAAK,EAAC,OAAO,IAChBA,mEACE,IAAI,EAAC,MAAM,EACX,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,GACpC,CACJ,CACP,CACI,EACP;KACH;;;;;;;","names":["h","Host"],"sources":["src/components/deprecated/z-menu-section-deprecated/styles.css?tag=z-menu-section-deprecated&encapsulation=shadow","src/components/deprecated/z-menu-section-deprecated/index.tsx"],"sourcesContent":[":host {\n display: inline-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:host(:is([active], [open])) .label,\n.label:hover {\n border-color: var(--color-primary01);\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.label {\n display: flex;\n width: 100%;\n align-items: center;\n padding: calc(var(--space-unit) * 2) calc(var(--space-unit) / 2);\n border: 0;\n border-bottom: var(--border-size-small) solid var(--color-surface05);\n margin: 0;\n background: transparent;\n border-radius: 0;\n cursor: pointer;\n text-align: left;\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.25;\n}\n\n.label:focus:focus-visible {\n box-shadow: var(--shadow-focus-primary);\n outline: none;\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 > ::slotted([slot=\"item\"]) {\n display: inline-flex;\n padding: calc(var(--space-unit) / 2);\n margin: 0;\n font-size: var(--font-size-2);\n line-height: 1.4;\n outline: none;\n}\n\n.items > ::slotted([slot=\"item\"]:focus:focus-visible) {\n box-shadow: var(--shadow-focus-primary);\n color: var(--color-primary01);\n}\n\n.items > ::slotted([slot=\"item\"]:hover),\n.items > ::slotted([slot=\"item\"]:focus:focus-visible),\n.items > ::slotted([slot=\"item\"][active]) {\n color: var(--color-primary01);\n font-weight: var(--font-bd);\n}\n","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-deprecated\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZMenuSectionDeprecated {\n @Element() hostElement: HTMLZMenuSectionDeprecatedElement;\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"],"version":3}
1
+ {"file":"z-menu-section-deprecated.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,SAAS,GAAG,w8DAAw8D,CAAC;AAC39D,qCAAe,SAAS;;MCWX,sBAAsB;;;;;;;;;IAqBzB,MAAM;QACZ,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE;YACpB,OAAO;SACR;QAED,IAAI,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC;QACvB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;KACrD;;IAID,WAAW,CAAC,EAAc;QACxB,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,EAAE,CAAC,MAAc,CAAC,EAAE;YAC9D,OAAO;SACR;QAED,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC;QAClB,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;KACpB;;;;IAKO,YAAY;QAClB,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,eAAe,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC;KACjF;;;;;IAMO,iBAAiB,CAAC,EAAS;QACjC,MAAM,YAAY,GAAI,EAAE,CAAC,MAA0B,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAgB,CAAC;QACzF,YAAY,CAAC,OAAO,CAAC,IAAI,GAAG,CAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,SAAS,KAAI,IAAI,CAAC;KAC7D;IAED,iBAAiB;QACf,IAAI,CAAC,YAAY,EAAE,CAAC;KACrB;IAED,MAAM;QACJ,QACEA,QAACC,UAAI,qDACH,IAAI,EAAC,MAAM,EACX,IAAI,EAAE,IAAI,CAAC,IAAI,IAEfD,qEACE,KAAK,EAAC,OAAO,kBACC,IAAI,CAAC,IAAI,GAAG,MAAM,GAAG,OAAO,EAC1C,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAE/BA,mEAAM,YAAY,EAAE,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,GAAS,EAC7D,IAAI,CAAC,UAAU,IAAIA,qEAAQ,IAAI,EAAE,IAAI,CAAC,IAAI,GAAG,YAAY,GAAG,cAAc,GAAI,CACxE,EACR,IAAI,CAAC,IAAI,KACRA,kEAAK,KAAK,EAAC,OAAO,IAChBA,mEACE,IAAI,EAAC,MAAM,EACX,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,GACpC,CACJ,CACP,CACI,EACP;KACH;;;;;;;","names":["h","Host"],"sources":["src/components/deprecated/z-menu-section-deprecated/styles.css?tag=z-menu-section-deprecated&encapsulation=shadow","src/components/deprecated/z-menu-section-deprecated/index.tsx"],"sourcesContent":[":host {\n display: inline-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:host(:is([active], [open])) .label,\n.label:hover {\n border-color: var(--color-primary01);\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.label {\n display: flex;\n width: 100%;\n align-items: center;\n padding: calc(var(--space-unit) * 2) calc(var(--space-unit) / 2);\n border: 0;\n border-bottom: var(--border-size-small) solid var(--color-surface05);\n margin: 0;\n background: transparent;\n border-radius: 0;\n cursor: pointer;\n text-align: left;\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.25;\n}\n\n.label:focus:focus-visible {\n box-shadow: var(--shadow-focus-primary);\n outline: none;\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 > ::slotted([slot=\"item\"]) {\n display: inline-flex;\n padding: calc(var(--space-unit) / 2);\n margin: 0;\n font-size: var(--font-size-2);\n line-height: 1.4;\n outline: none;\n}\n\n.items > ::slotted([slot=\"item\"]:focus:focus-visible) {\n box-shadow: var(--shadow-focus-primary);\n color: var(--color-primary01);\n}\n\n.items > ::slotted([slot=\"item\"]:hover),\n.items > ::slotted([slot=\"item\"]:focus:focus-visible),\n.items > ::slotted([slot=\"item\"][active]) {\n color: var(--color-primary01);\n font-weight: var(--font-bd);\n}\n","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-deprecated\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZMenuSectionDeprecated {\n @Element() hostElement: HTMLZMenuSectionDeprecatedElement;\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"],"version":3}
@@ -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-f5ebcaa2.js');
7
7
 
8
- const stylesCss = ":host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start;-ms-flex-pack:center;justify-content:center;padding:0;font-family:var(--font-family-sans)}:host,::slotted(*),*{-webkit-box-sizing:border-box;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:-ms-flexbox;display:flex;width:100%;-ms-flex-align:center;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-primary01)}.label:focus:focus-visible{-webkit-box-shadow:var(--shadow-focus-primary);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:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;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;-webkit-user-select:none;-moz-user-select:none;-ms-user-select: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:-ms-flexbox;display:flex;width:100%;-ms-flex-direction:column;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:-ms-inline-flexbox;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){-webkit-box-shadow:var(--shadow-focus-primary);box-shadow:var(--shadow-focus-primary);color:var(--color-primary01)}::slotted([slot=\"section\"]:hover),::slotted([slot=\"section\"]:focus:focus-visible),::slotted([slot=\"section\"][active]){color:var(--color-primary01);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-primary01)}.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-primary01)}::slotted([slot=\"section\"]:hover),::slotted([slot=\"section\"]:focus:focus-visible),::slotted([slot=\"section\"][active]){color:var(--color-primary01);font-weight:var(--font-bd)}";
9
9
  const ZMenuSectionStyle0 = stylesCss;
10
10
 
11
11
  const ZMenuSection = class {
@@ -1 +1 @@
1
- {"file":"z-menu-section.entry.cjs.js","mappings":";;;;;;;AAAA,MAAM,SAAS,GAAG,i/EAAi/E,CAAC;AACpgF,2BAAe,SAAS;;MCYX,YAAY;IAkCvB,IAAY,aAAa;QACvB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,EAAC,QAAQ,EAAC,KAAK,QAAQ,KAAK,CAAC,CAAC,CAAC;KACxD;IAEO,MAAM;QACZ,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;YAClB,OAAO;SACR;QAED,IAAI,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC;KACxB;IAEO,iBAAiB;QACvB,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;YAClB,OAAO;SACR;QAED,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI;YACtB,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;YACtC,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC,CAAC;SACpB,CAAC,CAAC;KACJ;IAEO,aAAa;QACnB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,CAAkB,CAAC;QACzF,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,KAAK,C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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-primary01);\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-primary01);\n}\n\n::slotted([slot=\"section\"]:hover),\n::slotted([slot=\"section\"]:focus:focus-visible),\n::slotted([slot=\"section\"][active]) {\n color: var(--color-primary01);\n font-weight: var(--font-bd);\n}\n","import {Component, Element, Event, EventEmitter, Host, Listen, Method, Prop, State, Watch, h} from \"@stencil/core\";\nimport {KeyboardCode} from \"../../beans\";\n\n/**\n * A component to create submenus inside the ZMenu.\n * @slot - Label of the menu section.\n * @slot section - Single entry of the menu section. Set the same slot name to different elements to put many of them. Add the `active` attribute to a slotted element to highlight it.\n */\n@Component({\n tag: \"z-menu-section\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZMenuSection {\n @Element() host: HTMLZMenuSectionElement;\n\n /** Active state */\n @Prop({reflect: true})\n active?: boolean;\n\n /**\n * Tabindex value to set on the label button.\n * Useful to manage keyboard navigation focus with roving tabindex handled by this component's parent (usually ZMenu).\n */\n @Prop()\n htmlTabindex = -1;\n\n /** The opening state of the section. */\n @Prop({mutable: true})\n open: boolean;\n\n @State()\n hasItems: boolean;\n\n @State()\n items: HTMLElement[];\n\n /** The section has been opened. */\n @Event()\n opened: EventEmitter;\n\n /** The section has been closed. */\n @Event()\n closed: EventEmitter;\n\n private label: HTMLButtonElement;\n\n private get focusableItem(): HTMLElement {\n return this.items.find(({tabIndex}) => tabIndex === 0);\n }\n\n private toggle(): void {\n if (!this.hasItems) {\n return;\n }\n\n this.open = !this.open;\n }\n\n private setItemsA11yAttrs(): void {\n if (!this.hasItems) {\n return;\n }\n\n this.items.forEach((item) => {\n item.setAttribute(\"role\", \"menuitem\");\n item.tabIndex = -1;\n });\n }\n\n private onItemsChange(): void {\n this.items = Array.from(this.host.querySelectorAll('[slot=\"section\"]')) as HTMLElement[];\n this.hasItems = this.items.length > 0;\n this.setItemsA11yAttrs();\n }\n\n /**\n * Sets slotted item text as `data-text` attribute value, to let CSS use it through `attr()`.\n * @param ev Slotchange event\n */\n private onLabelSlotChange(ev: Event): void {\n const labelElement = (ev.target as HTMLSlotElement).assignedElements()[0] as HTMLElement;\n labelElement.dataset.text = labelElement?.textContent;\n }\n\n private onLabelClick(): void {\n this.toggle();\n this.setFocus();\n }\n\n private onLabelKeydown(ev: KeyboardEvent): void {\n if (ev.key === KeyboardCode.ENTER || ev.key === KeyboardCode.SPACE) {\n ev.preventDefault();\n ev.stopPropagation();\n this.toggle();\n if (this.open) {\n this.focustFirstItem();\n }\n }\n }\n\n /**\n * Move focus and adjust the tabindex value of `receiver` and `current` elements,\n * setting -1 to the `current` and 0 to the `receiver`, then focus the `receiver` element.\n */\n private moveFocus(receiver: HTMLElement, current?: HTMLElement): void {\n receiver.tabIndex = 0;\n setTimeout(() => {\n receiver.focus();\n }, 100);\n if (current) {\n current.tabIndex = -1;\n }\n }\n\n private focustFirstItem(): void {\n this.moveFocus(this.items[0]);\n }\n\n /** Focus the last item. */\n @Method()\n async focusLastItem(): Promise<void> {\n this.moveFocus(this.items[this.items.length - 1]);\n }\n\n /** Set tabindex of the label to 0, then focus it. */\n @Method()\n async setFocus(): Promise<void> {\n this.htmlTabindex = 0;\n setTimeout(() => {\n this.label.focus();\n }, 100);\n }\n\n @Watch(\"open\")\n onOpenChange(): void {\n if (!this.open) {\n this.setItemsA11yAttrs();\n this.closed.emit();\n } else {\n this.opened.emit();\n }\n }\n\n @Watch(\"htmlTabindex\")\n onTabindexChange(): void {\n this.label.tabIndex = this.htmlTabindex;\n }\n\n @Listen(\"keydown\")\n private onItemsKeydown(ev: KeyboardEvent): void {\n switch (ev.key) {\n case KeyboardCode.ESC:\n case KeyboardCode.ARROW_LEFT:\n if (!this.open) {\n break;\n }\n ev.preventDefault();\n ev.stopPropagation();\n this.moveFocus(this.label, this.focusableItem);\n this.open = false;\n break;\n case KeyboardCode.ARROW_RIGHT:\n if (this.open) {\n break;\n }\n ev.preventDefault();\n ev.stopPropagation();\n this.open = true;\n this.focustFirstItem();\n break;\n case KeyboardCode.ARROW_DOWN: {\n if (!this.open) {\n break;\n }\n if (document.activeElement === this.host) {\n ev.preventDefault();\n ev.stopPropagation();\n this.focustFirstItem();\n break;\n }\n const currentIndex = this.items.indexOf(this.focusableItem);\n const receiver = this.items[currentIndex + 1];\n if (receiver) {\n ev.preventDefault();\n ev.stopPropagation();\n this.moveFocus(receiver, this.focusableItem);\n } else {\n this.htmlTabindex = 0;\n this.focusableItem.tabIndex = -1;\n }\n break;\n }\n case KeyboardCode.ARROW_UP: {\n if (!this.open || document.activeElement === this.host) {\n break;\n }\n const currentIndex = this.items.indexOf(this.focusableItem);\n const receiver = this.items[currentIndex - 1];\n ev.preventDefault();\n ev.stopPropagation();\n if (receiver) {\n this.moveFocus(receiver, this.focusableItem);\n } else {\n // since there isn't a previous item to focus, give the focus to the label element\n this.focusableItem.tabIndex = -1;\n this.setFocus();\n }\n break;\n }\n }\n }\n\n constructor() {\n this.toggle = this.toggle.bind(this);\n this.onItemsChange = this.onItemsChange.bind(this);\n this.onLabelSlotChange = this.onLabelSlotChange.bind(this);\n this.onLabelClick = this.onLabelClick.bind(this);\n this.onLabelKeydown = this.onLabelKeydown.bind(this);\n this.onItemsKeydown = this.onItemsKeydown.bind(this);\n }\n\n connectedCallback(): void {\n this.onItemsChange();\n }\n\n render(): HTMLZMenuSectionElement {\n return (\n <Host open={this.open}>\n <button\n ref={(el) => (this.label = el)}\n class=\"label\"\n aria-haspopup={`${!!this.hasItems}`}\n aria-expanded={`${!!this.open}`}\n role=\"menuitem\"\n tabindex={this.htmlTabindex}\n onClick={this.onLabelClick}\n onKeyDown={this.onLabelKeydown}\n >\n <slot onSlotchange={this.onLabelSlotChange} />\n {this.hasItems && <z-icon name={this.open ? \"chevron-up\" : \"chevron-down\"} />}\n </button>\n <div\n class=\"items\"\n role=\"menu\"\n hidden={!this.open}\n >\n <slot\n name=\"section\"\n onSlotchange={this.onItemsChange}\n />\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"z-menu-section.entry.cjs.js","mappings":";;;;;;;AAAA,MAAM,SAAS,GAAG,ijEAAijE,CAAC;AACpkE,2BAAe,SAAS;;MCYX,YAAY;IAkCvB,IAAY,aAAa;QACvB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,EAAC,QAAQ,EAAC,KAAK,QAAQ,KAAK,CAAC,CAAC,CAAC;KACxD;IAEO,MAAM;QACZ,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;YAClB,OAAO;SACR;QAED,IAAI,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC;KACxB;IAEO,iBAAiB;QACvB,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;YAClB,OAAO;SACR;QAED,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI;YACtB,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;YACtC,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC,CAAC;SACpB,CAAC,CAAC;KACJ;IAEO,aAAa;QACnB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,IAAI,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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-primary01);\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-primary01);\n}\n\n::slotted([slot=\"section\"]:hover),\n::slotted([slot=\"section\"]:focus:focus-visible),\n::slotted([slot=\"section\"][active]) {\n color: var(--color-primary01);\n font-weight: var(--font-bd);\n}\n","import {Component, Element, Event, EventEmitter, Host, Listen, Method, Prop, State, Watch, h} from \"@stencil/core\";\nimport {KeyboardCode} from \"../../beans\";\n\n/**\n * A component to create submenus inside the ZMenu.\n * @slot - Label of the menu section.\n * @slot section - Single entry of the menu section. Set the same slot name to different elements to put many of them. Add the `active` attribute to a slotted element to highlight it.\n */\n@Component({\n tag: \"z-menu-section\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZMenuSection {\n @Element() host: HTMLZMenuSectionElement;\n\n /** Active state */\n @Prop({reflect: true})\n active?: boolean;\n\n /**\n * Tabindex value to set on the label button.\n * Useful to manage keyboard navigation focus with roving tabindex handled by this component's parent (usually ZMenu).\n */\n @Prop()\n htmlTabindex = -1;\n\n /** The opening state of the section. */\n @Prop({mutable: true})\n open: boolean;\n\n @State()\n hasItems: boolean;\n\n @State()\n items: HTMLElement[];\n\n /** The section has been opened. */\n @Event()\n opened: EventEmitter;\n\n /** The section has been closed. */\n @Event()\n closed: EventEmitter;\n\n private label: HTMLButtonElement;\n\n private get focusableItem(): HTMLElement {\n return this.items.find(({tabIndex}) => tabIndex === 0);\n }\n\n private toggle(): void {\n if (!this.hasItems) {\n return;\n }\n\n this.open = !this.open;\n }\n\n private setItemsA11yAttrs(): void {\n if (!this.hasItems) {\n return;\n }\n\n this.items.forEach((item) => {\n item.setAttribute(\"role\", \"menuitem\");\n item.tabIndex = -1;\n });\n }\n\n private onItemsChange(): void {\n this.items = Array.from(this.host.querySelectorAll('[slot=\"section\"]')) as HTMLElement[];\n this.hasItems = this.items.length > 0;\n this.setItemsA11yAttrs();\n }\n\n /**\n * Sets slotted item text as `data-text` attribute value, to let CSS use it through `attr()`.\n * @param ev Slotchange event\n */\n private onLabelSlotChange(ev: Event): void {\n const labelElement = (ev.target as HTMLSlotElement).assignedElements()[0] as HTMLElement;\n labelElement.dataset.text = labelElement?.textContent;\n }\n\n private onLabelClick(): void {\n this.toggle();\n this.setFocus();\n }\n\n private onLabelKeydown(ev: KeyboardEvent): void {\n if (ev.key === KeyboardCode.ENTER || ev.key === KeyboardCode.SPACE) {\n ev.preventDefault();\n ev.stopPropagation();\n this.toggle();\n if (this.open) {\n this.focustFirstItem();\n }\n }\n }\n\n /**\n * Move focus and adjust the tabindex value of `receiver` and `current` elements,\n * setting -1 to the `current` and 0 to the `receiver`, then focus the `receiver` element.\n */\n private moveFocus(receiver: HTMLElement, current?: HTMLElement): void {\n receiver.tabIndex = 0;\n setTimeout(() => {\n receiver.focus();\n }, 100);\n if (current) {\n current.tabIndex = -1;\n }\n }\n\n private focustFirstItem(): void {\n this.moveFocus(this.items[0]);\n }\n\n /** Focus the last item. */\n @Method()\n async focusLastItem(): Promise<void> {\n this.moveFocus(this.items[this.items.length - 1]);\n }\n\n /** Set tabindex of the label to 0, then focus it. */\n @Method()\n async setFocus(): Promise<void> {\n this.htmlTabindex = 0;\n setTimeout(() => {\n this.label.focus();\n }, 100);\n }\n\n @Watch(\"open\")\n onOpenChange(): void {\n if (!this.open) {\n this.setItemsA11yAttrs();\n this.closed.emit();\n } else {\n this.opened.emit();\n }\n }\n\n @Watch(\"htmlTabindex\")\n onTabindexChange(): void {\n this.label.tabIndex = this.htmlTabindex;\n }\n\n @Listen(\"keydown\")\n private onItemsKeydown(ev: KeyboardEvent): void {\n switch (ev.key) {\n case KeyboardCode.ESC:\n case KeyboardCode.ARROW_LEFT:\n if (!this.open) {\n break;\n }\n ev.preventDefault();\n ev.stopPropagation();\n this.moveFocus(this.label, this.focusableItem);\n this.open = false;\n break;\n case KeyboardCode.ARROW_RIGHT:\n if (this.open) {\n break;\n }\n ev.preventDefault();\n ev.stopPropagation();\n this.open = true;\n this.focustFirstItem();\n break;\n case KeyboardCode.ARROW_DOWN: {\n if (!this.open) {\n break;\n }\n if (document.activeElement === this.host) {\n ev.preventDefault();\n ev.stopPropagation();\n this.focustFirstItem();\n break;\n }\n const currentIndex = this.items.indexOf(this.focusableItem);\n const receiver = this.items[currentIndex + 1];\n if (receiver) {\n ev.preventDefault();\n ev.stopPropagation();\n this.moveFocus(receiver, this.focusableItem);\n } else {\n this.htmlTabindex = 0;\n this.focusableItem.tabIndex = -1;\n }\n break;\n }\n case KeyboardCode.ARROW_UP: {\n if (!this.open || document.activeElement === this.host) {\n break;\n }\n const currentIndex = this.items.indexOf(this.focusableItem);\n const receiver = this.items[currentIndex - 1];\n ev.preventDefault();\n ev.stopPropagation();\n if (receiver) {\n this.moveFocus(receiver, this.focusableItem);\n } else {\n // since there isn't a previous item to focus, give the focus to the label element\n this.focusableItem.tabIndex = -1;\n this.setFocus();\n }\n break;\n }\n }\n }\n\n constructor() {\n this.toggle = this.toggle.bind(this);\n this.onItemsChange = this.onItemsChange.bind(this);\n this.onLabelSlotChange = this.onLabelSlotChange.bind(this);\n this.onLabelClick = this.onLabelClick.bind(this);\n this.onLabelKeydown = this.onLabelKeydown.bind(this);\n this.onItemsKeydown = this.onItemsKeydown.bind(this);\n }\n\n connectedCallback(): void {\n this.onItemsChange();\n }\n\n render(): HTMLZMenuSectionElement {\n return (\n <Host open={this.open}>\n <button\n ref={(el) => (this.label = el)}\n class=\"label\"\n aria-haspopup={`${!!this.hasItems}`}\n aria-expanded={`${!!this.open}`}\n role=\"menuitem\"\n tabindex={this.htmlTabindex}\n onClick={this.onLabelClick}\n onKeyDown={this.onLabelKeydown}\n >\n <slot onSlotchange={this.onLabelSlotChange} />\n {this.hasItems && <z-icon name={this.open ? \"chevron-up\" : \"chevron-down\"} />}\n </button>\n <div\n class=\"items\"\n role=\"menu\"\n hidden={!this.open}\n >\n <slot\n name=\"section\"\n onSlotchange={this.onItemsChange}\n />\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -7,7 +7,7 @@ const index = require('./index-f5ebcaa2.js');
7
7
  const utils = require('./utils-d08d4b80.js');
8
8
  require('./breakpoints-8a1e87e0.js');
9
9
 
10
- const stylesCss = ":host,::slotted(*),*{-webkit-box-sizing:border-box;box-sizing:border-box;outline:none}:host{position:relative;display:-ms-inline-flexbox;display:inline-flex;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;-ms-flex-direction:column;flex-direction:column}::slotted(a){text-decoration:none}::slotted(*){color:var(--color-default-text);font-family:var(--font-family-sans);font-weight:var(--font-rg)}.menu-label{position:relative;display:-ms-flexbox;display:flex;width:100%;-ms-flex-align:center;align-items:center;padding:0;border:0;border-bottom:var(--border-size-large) solid transparent;margin:0;background:transparent;border-radius:0;color:inherit;text-align:left}button.menu-label{cursor:pointer}.menu-label:focus-visible,div.menu-label:focus-within{-webkit-box-shadow:var(--shadow-focus-primary);box-shadow:var(--shadow-focus-primary)}:host(:is([active],[open])) .menu-label ::slotted(*),.menu-label:focus-visible ::slotted(*),div.menu-label:focus-within ::slotted(*){color:var(--color-primary01);font-weight:var(--font-bd)}:host([vertical-context]) .menu-label{padding:var(--space-unit) 0;border-width:var(--border-size-small);border-color:var(--color-surface03)}:host(:is([active],[open])) .menu-label,.menu-label:hover,.menu-label:focus-visible,div.menu-label:focus-within{border-color:var(--color-primary01)}:host([vertical-context]:is([active],[open])) .menu-label::after,:host([vertical-context]) .menu-label:hover::after,:host([vertical-context]) .menu-label:focus-visible::after,:host([vertical-context]) div.menu-label:focus-within::after{position:absolute;bottom:0;left:0;width:100%;height:var(--border-size-large);background-color:var(--color-primary01);content:\"\"}:host([vertical-context]) .menu-label ::slotted(*){padding:0}.menu-label ::slotted(*){display:-ms-inline-flexbox;display:inline-flex;width:100%;min-width:-webkit-fit-content;min-width:-moz-fit-content;min-width:fit-content;padding-bottom:2px;margin:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;color:var(--z-menu-label-color, var(--color-default-text));font-family:var(--font-family-sans);font-size:var(--font-size-3);font-weight:inherit;line-height:1.5;white-space:nowrap}.menu-label z-icon{margin-left:calc(var(--space-unit) * 1.5);fill:var(--color-default-icon)}::slotted([data-text]:not([slot]))::after{height:0;content:attr(data-text);content:attr(data-text) / \"\";font-weight:var(--font-bd);letter-spacing:normal;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;visibility:hidden}@media speech{::slotted([data-text]:not([slot]))::after{display:none}}::slotted([data-text]:not([slot])){display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column}.content{background:var(--color-surface01)}:host(:not([open])) .content{display:none}:host([floating]:not([vertical-context])) .content{position:absolute;top:100%;left:0;width:375px;min-width:100%;max-width:100vw;padding:0 calc(var(--space-unit) * 2);-webkit-box-shadow:var(--shadow-2);box-shadow:var(--shadow-2)}:host(:not([floating])) .content{width:100%}.header{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:var(--space-unit) 0 calc(var(--space-unit) * 2)}.header ::slotted(img[slot=\"header\"]){width:calc(var(--space-unit) * 11.25);height:auto;-o-object-fit:contain;object-fit:contain}.header ::slotted([slot=\"header\"]:not(:first-child)){margin:auto 0;margin-left:calc(var(--space-unit) * 2.5);font-size:var(--font-size-3);font-weight:var(--font-sb);line-height:1.5}.items{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start;background:inherit}.items>::slotted([slot=\"item\"]){width:100%;margin:0;font-size:var(--font-size-3);line-height:1.5}.items>::slotted([slot=\"item\"]:focus:focus-visible){-webkit-box-shadow:var(--shadow-focus-primary);box-shadow:var(--shadow-focus-primary)}.items>::slotted([slot=\"item\"]:not(z-menu-section)){padding:var(--space-unit) 0;border-bottom:var(--border-size-small) solid var(--color-surface03)}:host(:not([vertical-context])) .items>::slotted([slot=\"item\"]:last-child){border-bottom:0}.items>::slotted([slot=\"item\"]:hover),.items>::slotted([slot=\"item\"]:focus:focus-visible),.items>::slotted([slot=\"item\"]:active){border-color:var(--color-primary01);font-weight:var(--font-bd)}";
10
+ const stylesCss = ":host,::slotted(*),*{box-sizing:border-box;outline:none}:host{position:relative;display:inline-flex;height:fit-content;flex-direction:column}::slotted(a){text-decoration:none}::slotted(*){color:var(--color-default-text);font-family:var(--font-family-sans);font-weight:var(--font-rg)}.menu-label{position:relative;display:flex;width:100%;align-items:center;padding:0;border:0;border-bottom:var(--border-size-large) solid transparent;margin:0;background:transparent;border-radius:0;color:inherit;text-align:left}button.menu-label{cursor:pointer}.menu-label:focus-visible,div.menu-label:focus-within{box-shadow:var(--shadow-focus-primary)}:host(:is([active],[open])) .menu-label ::slotted(*),.menu-label:focus-visible ::slotted(*),div.menu-label:focus-within ::slotted(*){color:var(--color-primary01);font-weight:var(--font-bd)}:host([vertical-context]) .menu-label{padding:var(--space-unit) 0;border-width:var(--border-size-small);border-color:var(--color-surface03)}:host(:is([active],[open])) .menu-label,.menu-label:hover,.menu-label:focus-visible,div.menu-label:focus-within{border-color:var(--color-primary01)}:host([vertical-context]:is([active],[open])) .menu-label::after,:host([vertical-context]) .menu-label:hover::after,:host([vertical-context]) .menu-label:focus-visible::after,:host([vertical-context]) div.menu-label:focus-within::after{position:absolute;bottom:0;left:0;width:100%;height:var(--border-size-large);background-color:var(--color-primary01);content:\"\"}:host([vertical-context]) .menu-label ::slotted(*){padding:0}.menu-label ::slotted(*){display:inline-flex;width:100%;min-width:fit-content;padding-bottom:2px;margin:0;appearance:none;color:var(--z-menu-label-color, var(--color-default-text));font-family:var(--font-family-sans);font-size:var(--font-size-3);font-weight:inherit;line-height:1.5;white-space:nowrap}.menu-label z-icon{margin-left:calc(var(--space-unit) * 1.5);fill:var(--color-default-icon)}::slotted([data-text]:not([slot]))::after{height:0;content:attr(data-text);content:attr(data-text) / \"\";font-weight:var(--font-bd);letter-spacing:normal;pointer-events:none;user-select:none;visibility:hidden}@media speech{::slotted([data-text]:not([slot]))::after{display:none}}::slotted([data-text]:not([slot])){display:inline-flex;flex-direction:column}.content{background:var(--color-surface01)}:host(:not([open])) .content{display:none}:host([floating]:not([vertical-context])) .content{position:absolute;top:100%;left:0;width:375px;min-width:100%;max-width:100vw;padding:0 calc(var(--space-unit) * 2);box-shadow:var(--shadow-2)}:host(:not([floating])) .content{width:100%}.header{display:flex;align-items:center;padding:var(--space-unit) 0 calc(var(--space-unit) * 2)}.header ::slotted(img[slot=\"header\"]){width:calc(var(--space-unit) * 11.25);height:auto;object-fit:contain}.header ::slotted([slot=\"header\"]:not(:first-child)){margin:auto 0;margin-left:calc(var(--space-unit) * 2.5);font-size:var(--font-size-3);font-weight:var(--font-sb);line-height:1.5}.items{display:flex;flex-direction:column;align-items:flex-start;background:inherit}.items>::slotted([slot=\"item\"]){width:100%;margin:0;font-size:var(--font-size-3);line-height:1.5}.items>::slotted([slot=\"item\"]:focus:focus-visible){box-shadow:var(--shadow-focus-primary)}.items>::slotted([slot=\"item\"]:not(z-menu-section)){padding:var(--space-unit) 0;border-bottom:var(--border-size-small) solid var(--color-surface03)}:host(:not([vertical-context])) .items>::slotted([slot=\"item\"]:last-child){border-bottom:0}.items>::slotted([slot=\"item\"]:hover),.items>::slotted([slot=\"item\"]:focus:focus-visible),.items>::slotted([slot=\"item\"]:active){border-color:var(--color-primary01);font-weight:var(--font-bd)}";
11
11
  const ZMenuStyle0 = stylesCss;
12
12
 
13
13
  const isZMenuSection = (el) => (el === null || el === void 0 ? void 0 : el.tagName) === "Z-MENU-SECTION";
@@ -1 +1 @@
1
- {"file":"z-menu.entry.cjs.js","mappings":";;;;;;;;;AAAA,MAAM,SAAS,GAAG,qzIAAqzI,CAAC;AACx0I,oBAAe,SAAS;;ACGxB,MAAM,cAAc,GAAG,CAAC,EAAyC,KAC/D,CAAA,EAAE,aAAF,EAAE,uBAAF,EAAE,CAAE,OAAO,MAAK,gBAAgB,CAAC;MAatB,KAAK;IAwDhB,IAAY,aAAa;QACvB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,MAAM,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,YAAY,KAAK,CAAC,GAAG,IAAI,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,CAAC;KAC1G;IAEO,MAAM;QACZ,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE;YACpB,OAAO;SACR;QAED,IAAI,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC;KACxB;;;;;IAMO,iBAAiB,CAAC,EAAS;QACjC,MAAM,YAAY,GAAI,EAAE,CAAC,MAA0B,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAgB,CAAC;QACzF,YAAY,CAAC,OAAO,CAAC,IAAI,GAAG,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,WAAW,CAAC;QACtD,IAAI,CAAC,iBAAiB,EAAE,CAAC;KAC1B;;;;;IAMO,MAAM,CAAC,IAAI,GAAG,KAAK;QACzB,IAAI,CAAC,IAAI,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I,EAAC,QAAQ,EACb,YAAY,EAAE,IAAI,CAAC,YAAY,GAC/B,CACK,CACV,EAEDA,mBACE,KAAK,EAAC,OAAO,EACb,IAAI,EAAC,MAAM,IAEXA,oBACE,IAAI,EAAC,MAAM,EACX,YAAY,EAAE,IAAI,CAAC,aAAa,GAChC,CACE,CACF,CACD,EACP;KACH;;;;;;;;;;;","names":["KeyboardCode","containsElement","h","Host"],"sources":["src/components/z-menu/styles.css?tag=z-menu&encapsulation=shadow","src/components/z-menu/index.tsx"],"sourcesContent":[":host,\n::slotted(*),\n* {\n box-sizing: border-box;\n outline: none;\n}\n\n:host {\n --z-menu-label-color: ;\n\n position: relative;\n display: inline-flex;\n height: fit-content;\n flex-direction: column;\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.menu-label {\n position: relative;\n display: flex;\n width: 100%;\n align-items: center;\n padding: 0;\n border: 0;\n border-bottom: var(--border-size-large) solid transparent;\n margin: 0;\n background: transparent;\n border-radius: 0;\n color: inherit;\n text-align: left;\n}\n\nbutton.menu-label {\n cursor: pointer;\n}\n\n.menu-label:focus-visible,\ndiv.menu-label:focus-within {\n box-shadow: var(--shadow-focus-primary);\n}\n\n:host(:is([active], [open])) .menu-label ::slotted(*),\n.menu-label:focus-visible ::slotted(*),\ndiv.menu-label:focus-within ::slotted(*) {\n color: var(--color-primary01);\n font-weight: var(--font-bd);\n}\n\n:host([vertical-context]) .menu-label {\n padding: var(--space-unit) 0;\n border-width: var(--border-size-small);\n border-color: var(--color-surface03);\n}\n\n:host(:is([active], [open])) .menu-label,\n.menu-label:hover,\n.menu-label:focus-visible,\ndiv.menu-label:focus-within {\n border-color: var(--color-primary01);\n}\n\n:host([vertical-context]:is([active], [open])) .menu-label::after,\n:host([vertical-context]) .menu-label:hover::after,\n:host([vertical-context]) .menu-label:focus-visible::after,\n:host([vertical-context]) div.menu-label:focus-within::after {\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n height: var(--border-size-large);\n background-color: var(--color-primary01);\n content: \"\";\n}\n\n:host([vertical-context]) .menu-label ::slotted(*) {\n padding: 0;\n}\n\n.menu-label ::slotted(*) {\n display: inline-flex;\n width: 100%;\n min-width: fit-content;\n padding-bottom: 2px;\n margin: 0;\n appearance: none;\n color: var(--z-menu-label-color, var(--color-default-text));\n font-family: var(--font-family-sans);\n font-size: var(--font-size-3);\n font-weight: inherit;\n line-height: 1.5;\n white-space: nowrap;\n}\n\n.menu-label z-icon {\n margin-left: calc(var(--space-unit) * 1.5);\n fill: var(--color-default-icon);\n}\n\n/* Prevents 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]:not([slot]))::after {\n height: 0;\n content: attr(data-text);\n content: attr(data-text) / \"\";\n font-weight: var(--font-bd);\n letter-spacing: normal;\n pointer-events: none;\n user-select: none;\n visibility: hidden;\n}\n\n@media speech {\n ::slotted([data-text]:not([slot]))::after {\n display: none;\n }\n}\n\n::slotted([data-text]:not([slot])) {\n display: inline-flex;\n flex-direction: column;\n}\n\n.content {\n background: var(--color-surface01);\n}\n\n:host(:not([open])) .content {\n display: none;\n}\n\n:host([floating]:not([vertical-context])) .content {\n position: absolute;\n top: 100%;\n left: 0;\n width: 375px;\n min-width: 100%;\n max-width: 100vw;\n padding: 0 calc(var(--space-unit) * 2);\n box-shadow: var(--shadow-2);\n}\n\n:host(:not([floating])) .content {\n width: 100%;\n}\n\n.header {\n display: flex;\n align-items: center;\n padding: var(--space-unit) 0 calc(var(--space-unit) * 2);\n}\n\n.header ::slotted(img[slot=\"header\"]) {\n width: calc(var(--space-unit) * 11.25);\n height: auto;\n object-fit: contain;\n}\n\n.header ::slotted([slot=\"header\"]:not(:first-child)) {\n margin: auto 0;\n margin-left: calc(var(--space-unit) * 2.5);\n font-size: var(--font-size-3);\n font-weight: var(--font-sb);\n line-height: 1.5;\n}\n\n.items {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n background: inherit;\n}\n\n.items > ::slotted([slot=\"item\"]) {\n width: 100%;\n margin: 0;\n font-size: var(--font-size-3);\n line-height: 1.5;\n}\n\n.items > ::slotted([slot=\"item\"]:focus:focus-visible) {\n box-shadow: var(--shadow-focus-primary);\n}\n\n.items > ::slotted([slot=\"item\"]:not(z-menu-section)) {\n padding: var(--space-unit) 0;\n border-bottom: var(--border-size-small) solid var(--color-surface03);\n}\n\n:host(:not([vertical-context])) .items > ::slotted([slot=\"item\"]:last-child) {\n border-bottom: 0;\n}\n\n.items > ::slotted([slot=\"item\"]:hover),\n.items > ::slotted([slot=\"item\"]:focus:focus-visible),\n.items > ::slotted([slot=\"item\"]:active) {\n border-color: var(--color-primary01);\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\";\nimport {containsElement} from \"../../utils/utils\";\n\nconst isZMenuSection = (el: HTMLElement | HTMLZMenuSectionElement): el is HTMLZMenuSectionElement =>\n el?.tagName === \"Z-MENU-SECTION\";\n\n/**\n * @slot - Menu label\n * @slot header - Header to display as the first entry of the open menu.\n * @slot item - Single entry of the section. Can be slotted multiple times to insert items onto the menu. Set the `active` HTML attribute on the element to highlight it. Use `z-menu-section` for submenus.\n * @cssprop --z-menu-label-color - Color of the label's text.\n */\n@Component({\n tag: \"z-menu\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZMenu {\n @Element() host: HTMLZMenuElement;\n\n /** Flag to set the active status of the menu. */\n @Prop({reflect: true})\n active?: boolean;\n\n /**\n * Flag to set the display mode of the list.\n * If true, the list will be absolutely positioned under the menu label,\n * stacked beneath it otherwise.\n */\n @Prop({reflect: true})\n floating? = true;\n\n /** The opening state of the menu. */\n @Prop({mutable: true, reflect: true})\n open = false;\n\n /**\n * Tells the component that it's placed in a vertical context with other `ZMenu`s (usually in the ZAppHeader's offcanvas).\n * A small border is placed under it as a separator from other elements.\n */\n @Prop({reflect: true})\n verticalContext = false;\n\n /**\n * Tabindex value to set on the menu label.\n * Useful to manage keyboard navigation focus with roving tabindex handled by this component's parent (usually ZAppHeader).\n */\n @Prop()\n htmlTabindex = -1;\n\n @State()\n hasHeader: boolean;\n\n @State()\n hasContent: boolean;\n\n /** The menu has been opened. */\n @Event()\n opened: EventEmitter;\n\n /** The menu has been closed. */\n @Event()\n closed: EventEmitter;\n\n private labelButton: HTMLButtonElement;\n\n private content: HTMLElement;\n\n private items: (HTMLElement | HTMLZMenuSectionElement)[] = [];\n\n /** Animation frame request id. */\n private raf: number;\n\n private get focusableItem(): HTMLZMenuSectionElement | HTMLElement | null {\n return this.items.find((item) => (isZMenuSection(item) ? item.htmlTabindex === 0 : item.tabIndex === 0));\n }\n\n private toggle(): void {\n if (!this.hasContent) {\n return;\n }\n\n this.open = !this.open;\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 this.setLabelA11yAttrs();\n }\n\n /**\n * Correctly set position of the floating menu in order to prevent overflow.\n * @param live Should run the method on every refresh frame.\n */\n private reflow(live = false): void {\n if (!this.floating) {\n return;\n }\n\n if (this.content && this.hasContent) {\n const {style} = this.content;\n const {left} = this.host.getBoundingClientRect();\n const widthPx = getComputedStyle(this.content).width;\n const width = widthPx ? parseFloat(widthPx.replace(\"px\", \"\")) : 375;\n const safeScrollbarSpace = 30;\n style.left = `${Math.min(window.innerWidth - left - width - safeScrollbarSpace, 0)}px`;\n }\n if (live) {\n this.raf = requestAnimationFrame(this.reflow.bind(this, live));\n }\n }\n\n /**\n * Check if some content slot is set.\n */\n private checkContent(): void {\n this.hasHeader = !!this.host.querySelectorAll(\"[slot=header]\").length;\n this.hasContent = !!this.host.querySelectorAll(\"[slot=item]\").length || this.hasHeader;\n }\n\n private setItemTabindex(item: HTMLElement | HTMLZMenuSectionElement, tabIndex: number): void {\n if (isZMenuSection(item)) {\n item.htmlTabindex = tabIndex;\n } else {\n item.tabIndex = tabIndex;\n }\n }\n\n /**\n * Set `menuitem` role to all menu items (ZMenuSection items already have it).\n * Set -1 to the tabindex of the items and 0 to the first one.\n */\n private setItemsA11yAttrs(): void {\n this.items.forEach((item, index) => {\n const tabindex = index === 0 ? 0 : -1;\n this.setItemTabindex(item, tabindex);\n if (!isZMenuSection(item)) {\n item.setAttribute(\"role\", \"menuitem\");\n }\n });\n }\n\n private onItemsChange(): void {\n this.checkContent();\n this.items = Array.from(this.host.children).filter(({slot}) => slot === \"item\") as HTMLElement[];\n this.setItemsA11yAttrs();\n this.items.forEach((item) => {\n if (!isZMenuSection(item)) {\n item.dataset.text = item.textContent;\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 * If the receiver is a ZMenuSection and it's open, focus its first focusable item.\n */\n private moveFocus(\n receiver: HTMLElement | HTMLZMenuSectionElement,\n current?: HTMLElement | HTMLZMenuSectionElement\n ): void {\n if (isZMenuSection(receiver)) {\n receiver.setFocus();\n } else {\n receiver.tabIndex = 0;\n setTimeout(() => {\n receiver.focus();\n }, 100);\n }\n if (!current) {\n return;\n }\n\n this.setItemTabindex(current, -1);\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.moveFocus(this.items[0]);\n }\n\n return;\n }\n\n if (!this.verticalContext) {\n return;\n }\n\n if (ev.key === KeyboardCode.ARROW_RIGHT && !this.open) {\n ev.preventDefault();\n ev.stopPropagation();\n this.open = true;\n this.moveFocus(this.items[0]);\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 const label = this.hasContent ? this.labelButton : (this.host.firstElementChild as HTMLElement);\n label.focus();\n }\n\n /**\n * Focus the last item.\n */\n @Method()\n async focusLastItem(): Promise<void> {\n const lastItem = this.items[this.items.length - 1];\n if (isZMenuSection(lastItem) && lastItem.open) {\n lastItem.focusLastItem();\n\n return;\n }\n\n this.moveFocus(lastItem);\n }\n\n @Watch(\"open\")\n onOpenChanged(): void {\n if (!this.open) {\n cancelAnimationFrame(this.raf);\n this.closed.emit();\n this.items.forEach((item) => {\n if (isZMenuSection(item) && item.open) {\n item.open = false;\n }\n });\n\n return;\n }\n\n this.setItemsA11yAttrs();\n this.opened.emit();\n if (this.floating) {\n this.reflow(true);\n }\n }\n\n @Watch(\"htmlTabindex\")\n setLabelA11yAttrs(): void {\n if (this.hasContent && this.labelButton) {\n this.labelButton.tabIndex = this.htmlTabindex;\n\n return;\n }\n\n const slottedLabel = this.host.firstElementChild as HTMLElement;\n slottedLabel.role = \"menuitem\";\n slottedLabel.tabIndex = this.htmlTabindex;\n }\n\n /**\n * Set tabindex to -1 to all siblings of the clicked item.\n */\n @Listen(\"click\", {target: \"document\"})\n onItemClick(ev: MouseEvent): void {\n const clickedItem = this.items.find((item) => containsElement(item, ev.target as HTMLElement));\n if (clickedItem) {\n this.items.forEach((item) => {\n if (item === clickedItem) {\n return;\n }\n\n if (isZMenuSection(item)) {\n item.htmlTabindex = -1;\n } else {\n item.tabIndex = -1;\n }\n });\n }\n }\n\n @Listen(\"keydown\")\n onKeyDown(ev: KeyboardEvent): void {\n if (!this.hasContent) {\n return;\n }\n\n switch (ev.key) {\n case KeyboardCode.ESC:\n if (!this.open) {\n break;\n }\n ev.stopPropagation();\n ev.preventDefault();\n this.open = false;\n this.setFocus();\n break;\n case KeyboardCode.ARROW_DOWN: {\n if (document.activeElement === this.host) {\n if (this.verticalContext && !this.open) {\n break;\n }\n\n ev.stopPropagation();\n ev.preventDefault();\n if (!this.open) {\n this.open = true;\n }\n this.moveFocus(this.items[0]);\n break;\n }\n\n const currentIndex = this.items.indexOf(this.focusableItem);\n if (this.verticalContext && currentIndex === this.items.length - 1) {\n // navigation is going to leave this menu. restore tabindex to the label and let the parent handle it\n this.setItemTabindex(this.items[currentIndex], -1);\n this.htmlTabindex = 0;\n break;\n }\n\n ev.stopPropagation();\n ev.preventDefault();\n const receiver = this.items[currentIndex + 1];\n // if the last item is already focused, navigate to the first one\n this.moveFocus(receiver ?? this.items[0], this.focusableItem);\n break;\n }\n case KeyboardCode.ARROW_UP: {\n if (document.activeElement === this.host) {\n if (this.verticalContext) {\n break;\n }\n\n ev.stopPropagation();\n ev.preventDefault();\n // open the menu and focus the last item\n if (!this.open) {\n this.open = true;\n }\n this.moveFocus(this.items[this.items.length - 1], this.focusableItem);\n break;\n }\n\n ev.stopPropagation();\n ev.preventDefault();\n const currentIndex = this.items.indexOf(this.focusableItem);\n if (currentIndex === 0 && this.verticalContext) {\n this.setItemTabindex(this.focusableItem, -1);\n this.setFocus();\n break;\n }\n\n const receiver = this.items[currentIndex - 1] ?? this.items[this.items.length - 1];\n // if the receiver is a ZMenuSection and it's open, focus its last item\n if (isZMenuSection(receiver) && receiver.open) {\n this.setItemTabindex(this.focusableItem, -1);\n receiver.focusLastItem();\n break;\n }\n\n this.moveFocus(receiver, this.focusableItem);\n break;\n }\n case KeyboardCode.ARROW_LEFT:\n if (!this.open || !this.verticalContext) {\n break;\n }\n\n // close the menu and focus the label\n ev.preventDefault();\n ev.stopPropagation();\n this.open = false;\n this.setFocus();\n }\n }\n\n constructor() {\n this.toggle = this.toggle.bind(this);\n this.checkContent = this.checkContent.bind(this);\n this.onLabelSlotChange = this.onLabelSlotChange.bind(this);\n this.onLabelClick = this.onLabelClick.bind(this);\n this.onItemsChange = this.onItemsChange.bind(this);\n this.onLabelKeydown = this.onLabelKeydown.bind(this);\n }\n\n componentWillLoad(): void {\n this.setLabelA11yAttrs();\n this.onItemsChange();\n }\n\n render(): HTMLDivElement | HTMLZMenuElement {\n if (!this.hasContent) {\n return (\n <div class=\"menu-label\">\n <slot onSlotchange={this.onLabelSlotChange} />\n </div>\n );\n }\n\n return (\n <Host>\n <button\n ref={(el) => (this.labelButton = el)}\n class=\"menu-label\"\n aria-expanded={`${!!this.open}`}\n aria-haspopup={`${this.hasContent}`}\n aria-label={this.open ? \"Chiudi menù\" : \"Apri menù\"}\n role=\"menuitem\"\n tabIndex={this.htmlTabindex}\n onClick={this.onLabelClick}\n onKeyDown={this.onLabelKeydown}\n >\n <slot onSlotchange={this.onLabelSlotChange} />\n <z-icon name={this.open ? \"chevron-up\" : \"chevron-down\"} />\n </button>\n\n <div\n class=\"content\"\n ref={(el) => (this.content = el)}\n >\n {this.hasHeader && (\n <header class=\"header\">\n <slot\n name=\"header\"\n onSlotchange={this.checkContent}\n />\n </header>\n )}\n\n <div\n class=\"items\"\n role=\"menu\"\n >\n <slot\n name=\"item\"\n onSlotchange={this.onItemsChange}\n />\n </div>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"z-menu.entry.cjs.js","mappings":";;;;;;;;;AAAA,MAAM,SAAS,GAAG,uoHAAuoH,CAAC;AAC1pH,oBAAe,SAAS;;ACGxB,MAAM,cAAc,GAAG,CAAC,EAAyC,KAC/D,CAAA,EAAE,aAAF,EAAE,uBAAF,EAAE,CAAE,OAAO,MAAK,gBAAgB,CAAC;MAatB,KAAK;IAwDhB,IAAY,aAAa;QACvB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,MAAM,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,YAAY,KAAK,CAAC,GAAG,IAAI,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,CAAC;KAC1G;I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AAG,WAAW,EACnD,IAAI,EAAC,UAAU,EACf,QAAQ,EAAE,IAAI,CAAC,YAAY,EAC3B,OAAO,EAAE,IAAI,CAAC,YAAY,EAC1B,SAAS,EAAE,IAAI,CAAC,cAAc,IAE9BA,oBAAM,YAAY,EAAE,IAAI,CAAC,iBAAiB,GAAI,EAC9CA,sBAAQ,IAAI,EAAE,IAAI,CAAC,IAAI,GAAG,YAAY,GAAG,cAAc,GAAI,CACpD,EAETA,mBACE,KAAK,EAAC,SAAS,EACf,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC,IAE/B,IAAI,CAAC,SAAS,KACbA,sBAAQ,KAAK,EAAC,QAAQ,IACpBA,oBACE,IAAI,EAAC,QAAQ,EACb,YAAY,EAAE,IAAI,CAAC,YAAY,GAC/B,CACK,CACV,EAEDA,mBACE,KAAK,EAAC,OAAO,EACb,IAAI,EAAC,MAAM,IAEXA,oBACE,IAAI,EAAC,MAAM,EACX,YAAY,EAAE,IAAI,CAAC,aAAa,GAChC,CACE,CACF,CACD,EACP;KACH;;;;;;;;;;;","names":["KeyboardCode","containsElement","h","Host"],"sources":["src/components/z-menu/styles.css?tag=z-menu&encapsulation=shadow","src/components/z-menu/index.tsx"],"sourcesContent":[":host,\n::slotted(*),\n* {\n box-sizing: border-box;\n outline: none;\n}\n\n:host {\n --z-menu-label-color: ;\n\n position: relative;\n display: inline-flex;\n height: fit-content;\n flex-direction: column;\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.menu-label {\n position: relative;\n display: flex;\n width: 100%;\n align-items: center;\n padding: 0;\n border: 0;\n border-bottom: var(--border-size-large) solid transparent;\n margin: 0;\n background: transparent;\n border-radius: 0;\n color: inherit;\n text-align: left;\n}\n\nbutton.menu-label {\n cursor: pointer;\n}\n\n.menu-label:focus-visible,\ndiv.menu-label:focus-within {\n box-shadow: var(--shadow-focus-primary);\n}\n\n:host(:is([active], [open])) .menu-label ::slotted(*),\n.menu-label:focus-visible ::slotted(*),\ndiv.menu-label:focus-within ::slotted(*) {\n color: var(--color-primary01);\n font-weight: var(--font-bd);\n}\n\n:host([vertical-context]) .menu-label {\n padding: var(--space-unit) 0;\n border-width: var(--border-size-small);\n border-color: var(--color-surface03);\n}\n\n:host(:is([active], [open])) .menu-label,\n.menu-label:hover,\n.menu-label:focus-visible,\ndiv.menu-label:focus-within {\n border-color: var(--color-primary01);\n}\n\n:host([vertical-context]:is([active], [open])) .menu-label::after,\n:host([vertical-context]) .menu-label:hover::after,\n:host([vertical-context]) .menu-label:focus-visible::after,\n:host([vertical-context]) div.menu-label:focus-within::after {\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n height: var(--border-size-large);\n background-color: var(--color-primary01);\n content: \"\";\n}\n\n:host([vertical-context]) .menu-label ::slotted(*) {\n padding: 0;\n}\n\n.menu-label ::slotted(*) {\n display: inline-flex;\n width: 100%;\n min-width: fit-content;\n padding-bottom: 2px;\n margin: 0;\n appearance: none;\n color: var(--z-menu-label-color, var(--color-default-text));\n font-family: var(--font-family-sans);\n font-size: var(--font-size-3);\n font-weight: inherit;\n line-height: 1.5;\n white-space: nowrap;\n}\n\n.menu-label z-icon {\n margin-left: calc(var(--space-unit) * 1.5);\n fill: var(--color-default-icon);\n}\n\n/* Prevents 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]:not([slot]))::after {\n height: 0;\n content: attr(data-text);\n content: attr(data-text) / \"\";\n font-weight: var(--font-bd);\n letter-spacing: normal;\n pointer-events: none;\n user-select: none;\n visibility: hidden;\n}\n\n@media speech {\n ::slotted([data-text]:not([slot]))::after {\n display: none;\n }\n}\n\n::slotted([data-text]:not([slot])) {\n display: inline-flex;\n flex-direction: column;\n}\n\n.content {\n background: var(--color-surface01);\n}\n\n:host(:not([open])) .content {\n display: none;\n}\n\n:host([floating]:not([vertical-context])) .content {\n position: absolute;\n top: 100%;\n left: 0;\n width: 375px;\n min-width: 100%;\n max-width: 100vw;\n padding: 0 calc(var(--space-unit) * 2);\n box-shadow: var(--shadow-2);\n}\n\n:host(:not([floating])) .content {\n width: 100%;\n}\n\n.header {\n display: flex;\n align-items: center;\n padding: var(--space-unit) 0 calc(var(--space-unit) * 2);\n}\n\n.header ::slotted(img[slot=\"header\"]) {\n width: calc(var(--space-unit) * 11.25);\n height: auto;\n object-fit: contain;\n}\n\n.header ::slotted([slot=\"header\"]:not(:first-child)) {\n margin: auto 0;\n margin-left: calc(var(--space-unit) * 2.5);\n font-size: var(--font-size-3);\n font-weight: var(--font-sb);\n line-height: 1.5;\n}\n\n.items {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n background: inherit;\n}\n\n.items > ::slotted([slot=\"item\"]) {\n width: 100%;\n margin: 0;\n font-size: var(--font-size-3);\n line-height: 1.5;\n}\n\n.items > ::slotted([slot=\"item\"]:focus:focus-visible) {\n box-shadow: var(--shadow-focus-primary);\n}\n\n.items > ::slotted([slot=\"item\"]:not(z-menu-section)) {\n padding: var(--space-unit) 0;\n border-bottom: var(--border-size-small) solid var(--color-surface03);\n}\n\n:host(:not([vertical-context])) .items > ::slotted([slot=\"item\"]:last-child) {\n border-bottom: 0;\n}\n\n.items > ::slotted([slot=\"item\"]:hover),\n.items > ::slotted([slot=\"item\"]:focus:focus-visible),\n.items > ::slotted([slot=\"item\"]:active) {\n border-color: var(--color-primary01);\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\";\nimport {containsElement} from \"../../utils/utils\";\n\nconst isZMenuSection = (el: HTMLElement | HTMLZMenuSectionElement): el is HTMLZMenuSectionElement =>\n el?.tagName === \"Z-MENU-SECTION\";\n\n/**\n * @slot - Menu label\n * @slot header - Header to display as the first entry of the open menu.\n * @slot item - Single entry of the section. Can be slotted multiple times to insert items onto the menu. Set the `active` HTML attribute on the element to highlight it. Use `z-menu-section` for submenus.\n * @cssprop --z-menu-label-color - Color of the label's text.\n */\n@Component({\n tag: \"z-menu\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZMenu {\n @Element() host: HTMLZMenuElement;\n\n /** Flag to set the active status of the menu. */\n @Prop({reflect: true})\n active?: boolean;\n\n /**\n * Flag to set the display mode of the list.\n * If true, the list will be absolutely positioned under the menu label,\n * stacked beneath it otherwise.\n */\n @Prop({reflect: true})\n floating? = true;\n\n /** The opening state of the menu. */\n @Prop({mutable: true, reflect: true})\n open = false;\n\n /**\n * Tells the component that it's placed in a vertical context with other `ZMenu`s (usually in the ZAppHeader's offcanvas).\n * A small border is placed under it as a separator from other elements.\n */\n @Prop({reflect: true})\n verticalContext = false;\n\n /**\n * Tabindex value to set on the menu label.\n * Useful to manage keyboard navigation focus with roving tabindex handled by this component's parent (usually ZAppHeader).\n */\n @Prop()\n htmlTabindex = -1;\n\n @State()\n hasHeader: boolean;\n\n @State()\n hasContent: boolean;\n\n /** The menu has been opened. */\n @Event()\n opened: EventEmitter;\n\n /** The menu has been closed. */\n @Event()\n closed: EventEmitter;\n\n private labelButton: HTMLButtonElement;\n\n private content: HTMLElement;\n\n private items: (HTMLElement | HTMLZMenuSectionElement)[] = [];\n\n /** Animation frame request id. */\n private raf: number;\n\n private get focusableItem(): HTMLZMenuSectionElement | HTMLElement | null {\n return this.items.find((item) => (isZMenuSection(item) ? item.htmlTabindex === 0 : item.tabIndex === 0));\n }\n\n private toggle(): void {\n if (!this.hasContent) {\n return;\n }\n\n this.open = !this.open;\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 this.setLabelA11yAttrs();\n }\n\n /**\n * Correctly set position of the floating menu in order to prevent overflow.\n * @param live Should run the method on every refresh frame.\n */\n private reflow(live = false): void {\n if (!this.floating) {\n return;\n }\n\n if (this.content && this.hasContent) {\n const {style} = this.content;\n const {left} = this.host.getBoundingClientRect();\n const widthPx = getComputedStyle(this.content).width;\n const width = widthPx ? parseFloat(widthPx.replace(\"px\", \"\")) : 375;\n const safeScrollbarSpace = 30;\n style.left = `${Math.min(window.innerWidth - left - width - safeScrollbarSpace, 0)}px`;\n }\n if (live) {\n this.raf = requestAnimationFrame(this.reflow.bind(this, live));\n }\n }\n\n /**\n * Check if some content slot is set.\n */\n private checkContent(): void {\n this.hasHeader = !!this.host.querySelectorAll(\"[slot=header]\").length;\n this.hasContent = !!this.host.querySelectorAll(\"[slot=item]\").length || this.hasHeader;\n }\n\n private setItemTabindex(item: HTMLElement | HTMLZMenuSectionElement, tabIndex: number): void {\n if (isZMenuSection(item)) {\n item.htmlTabindex = tabIndex;\n } else {\n item.tabIndex = tabIndex;\n }\n }\n\n /**\n * Set `menuitem` role to all menu items (ZMenuSection items already have it).\n * Set -1 to the tabindex of the items and 0 to the first one.\n */\n private setItemsA11yAttrs(): void {\n this.items.forEach((item, index) => {\n const tabindex = index === 0 ? 0 : -1;\n this.setItemTabindex(item, tabindex);\n if (!isZMenuSection(item)) {\n item.setAttribute(\"role\", \"menuitem\");\n }\n });\n }\n\n private onItemsChange(): void {\n this.checkContent();\n this.items = Array.from(this.host.children).filter(({slot}) => slot === \"item\") as HTMLElement[];\n this.setItemsA11yAttrs();\n this.items.forEach((item) => {\n if (!isZMenuSection(item)) {\n item.dataset.text = item.textContent;\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 * If the receiver is a ZMenuSection and it's open, focus its first focusable item.\n */\n private moveFocus(\n receiver: HTMLElement | HTMLZMenuSectionElement,\n current?: HTMLElement | HTMLZMenuSectionElement\n ): void {\n if (isZMenuSection(receiver)) {\n receiver.setFocus();\n } else {\n receiver.tabIndex = 0;\n setTimeout(() => {\n receiver.focus();\n }, 100);\n }\n if (!current) {\n return;\n }\n\n this.setItemTabindex(current, -1);\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.moveFocus(this.items[0]);\n }\n\n return;\n }\n\n if (!this.verticalContext) {\n return;\n }\n\n if (ev.key === KeyboardCode.ARROW_RIGHT && !this.open) {\n ev.preventDefault();\n ev.stopPropagation();\n this.open = true;\n this.moveFocus(this.items[0]);\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 const label = this.hasContent ? this.labelButton : (this.host.firstElementChild as HTMLElement);\n label.focus();\n }\n\n /**\n * Focus the last item.\n */\n @Method()\n async focusLastItem(): Promise<void> {\n const lastItem = this.items[this.items.length - 1];\n if (isZMenuSection(lastItem) && lastItem.open) {\n lastItem.focusLastItem();\n\n return;\n }\n\n this.moveFocus(lastItem);\n }\n\n @Watch(\"open\")\n onOpenChanged(): void {\n if (!this.open) {\n cancelAnimationFrame(this.raf);\n this.closed.emit();\n this.items.forEach((item) => {\n if (isZMenuSection(item) && item.open) {\n item.open = false;\n }\n });\n\n return;\n }\n\n this.setItemsA11yAttrs();\n this.opened.emit();\n if (this.floating) {\n this.reflow(true);\n }\n }\n\n @Watch(\"htmlTabindex\")\n setLabelA11yAttrs(): void {\n if (this.hasContent && this.labelButton) {\n this.labelButton.tabIndex = this.htmlTabindex;\n\n return;\n }\n\n const slottedLabel = this.host.firstElementChild as HTMLElement;\n slottedLabel.role = \"menuitem\";\n slottedLabel.tabIndex = this.htmlTabindex;\n }\n\n /**\n * Set tabindex to -1 to all siblings of the clicked item.\n */\n @Listen(\"click\", {target: \"document\"})\n onItemClick(ev: MouseEvent): void {\n const clickedItem = this.items.find((item) => containsElement(item, ev.target as HTMLElement));\n if (clickedItem) {\n this.items.forEach((item) => {\n if (item === clickedItem) {\n return;\n }\n\n if (isZMenuSection(item)) {\n item.htmlTabindex = -1;\n } else {\n item.tabIndex = -1;\n }\n });\n }\n }\n\n @Listen(\"keydown\")\n onKeyDown(ev: KeyboardEvent): void {\n if (!this.hasContent) {\n return;\n }\n\n switch (ev.key) {\n case KeyboardCode.ESC:\n if (!this.open) {\n break;\n }\n ev.stopPropagation();\n ev.preventDefault();\n this.open = false;\n this.setFocus();\n break;\n case KeyboardCode.ARROW_DOWN: {\n if (document.activeElement === this.host) {\n if (this.verticalContext && !this.open) {\n break;\n }\n\n ev.stopPropagation();\n ev.preventDefault();\n if (!this.open) {\n this.open = true;\n }\n this.moveFocus(this.items[0]);\n break;\n }\n\n const currentIndex = this.items.indexOf(this.focusableItem);\n if (this.verticalContext && currentIndex === this.items.length - 1) {\n // navigation is going to leave this menu. restore tabindex to the label and let the parent handle it\n this.setItemTabindex(this.items[currentIndex], -1);\n this.htmlTabindex = 0;\n break;\n }\n\n ev.stopPropagation();\n ev.preventDefault();\n const receiver = this.items[currentIndex + 1];\n // if the last item is already focused, navigate to the first one\n this.moveFocus(receiver ?? this.items[0], this.focusableItem);\n break;\n }\n case KeyboardCode.ARROW_UP: {\n if (document.activeElement === this.host) {\n if (this.verticalContext) {\n break;\n }\n\n ev.stopPropagation();\n ev.preventDefault();\n // open the menu and focus the last item\n if (!this.open) {\n this.open = true;\n }\n this.moveFocus(this.items[this.items.length - 1], this.focusableItem);\n break;\n }\n\n ev.stopPropagation();\n ev.preventDefault();\n const currentIndex = this.items.indexOf(this.focusableItem);\n if (currentIndex === 0 && this.verticalContext) {\n this.setItemTabindex(this.focusableItem, -1);\n this.setFocus();\n break;\n }\n\n const receiver = this.items[currentIndex - 1] ?? this.items[this.items.length - 1];\n // if the receiver is a ZMenuSection and it's open, focus its last item\n if (isZMenuSection(receiver) && receiver.open) {\n this.setItemTabindex(this.focusableItem, -1);\n receiver.focusLastItem();\n break;\n }\n\n this.moveFocus(receiver, this.focusableItem);\n break;\n }\n case KeyboardCode.ARROW_LEFT:\n if (!this.open || !this.verticalContext) {\n break;\n }\n\n // close the menu and focus the label\n ev.preventDefault();\n ev.stopPropagation();\n this.open = false;\n this.setFocus();\n }\n }\n\n constructor() {\n this.toggle = this.toggle.bind(this);\n this.checkContent = this.checkContent.bind(this);\n this.onLabelSlotChange = this.onLabelSlotChange.bind(this);\n this.onLabelClick = this.onLabelClick.bind(this);\n this.onItemsChange = this.onItemsChange.bind(this);\n this.onLabelKeydown = this.onLabelKeydown.bind(this);\n }\n\n componentWillLoad(): void {\n this.setLabelA11yAttrs();\n this.onItemsChange();\n }\n\n render(): HTMLDivElement | HTMLZMenuElement {\n if (!this.hasContent) {\n return (\n <div class=\"menu-label\">\n <slot onSlotchange={this.onLabelSlotChange} />\n </div>\n );\n }\n\n return (\n <Host>\n <button\n ref={(el) => (this.labelButton = el)}\n class=\"menu-label\"\n aria-expanded={`${!!this.open}`}\n aria-haspopup={`${this.hasContent}`}\n aria-label={this.open ? \"Chiudi menù\" : \"Apri menù\"}\n role=\"menuitem\"\n tabIndex={this.htmlTabindex}\n onClick={this.onLabelClick}\n onKeyDown={this.onLabelKeydown}\n >\n <slot onSlotchange={this.onLabelSlotChange} />\n <z-icon name={this.open ? \"chevron-up\" : \"chevron-down\"} />\n </button>\n\n <div\n class=\"content\"\n ref={(el) => (this.content = el)}\n >\n {this.hasHeader && (\n <header class=\"header\">\n <slot\n name=\"header\"\n onSlotchange={this.checkContent}\n />\n </header>\n )}\n\n <div\n class=\"items\"\n role=\"menu\"\n >\n <slot\n name=\"item\"\n onSlotchange={this.onItemsChange}\n />\n </div>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-96af6326.js');
6
6
  const index$1 = require('./index-f5ebcaa2.js');
7
7
 
8
- const stylesCss = ":host{position:absolute;z-index:2;top:0;left:0;width:100%;font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>z-alert{height:calc(var(--space-unit) * 6)}.relative-container{position:relative;display:grid;-ms-flex-align:center;align-items:center;padding:0;grid-column-gap:var(--space-unit);grid-template-columns:18px auto 46px;grid-template-rows:1fr;outline:none}.relative-container::-moz-focus-inner{border:0}.alert-external-wrapper.remove-alert{border:var(--border-size-medium) solid var(--color-background);border-top:none}:host div.add-alert{background:var(--color-success-inverse)}:host div.remove-alert{background:var(--color-warning-inverse)}:host div>.content-text{color:var(--color-surface05);font-size:14px;letter-spacing:0.16px;line-height:20px}:host div>.content-action{height:20px;color:var(--color-primary01);cursor:pointer;font-size:12px;font-weight:var(--font-sb);letter-spacing:0.32px;line-height:20px}:host div>z-icon{justify-self:center}";
8
+ const stylesCss = ":host{position:absolute;z-index:2;top:0;left:0;width:100%;font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>z-alert{height:calc(var(--space-unit) * 6)}.relative-container{position:relative;display:grid;align-items:center;padding:0;grid-column-gap:var(--space-unit);grid-template-columns:18px auto 46px;grid-template-rows:1fr;outline:none}.relative-container::-moz-focus-inner{border:0}.alert-external-wrapper.remove-alert{border:var(--border-size-medium) solid var(--color-background);border-top:none}:host div.add-alert{background:var(--color-success-inverse)}:host div.remove-alert{background:var(--color-warning-inverse)}:host div>.content-text{color:var(--color-surface05);font-size:14px;letter-spacing:0.16px;line-height:20px}:host div>.content-action{height:20px;color:var(--color-primary01);cursor:pointer;font-size:12px;font-weight:var(--font-sb);letter-spacing:0.32px;line-height:20px}:host div>z-icon{justify-self:center}";
9
9
  const ZMyzCardAlertStyle0 = stylesCss;
10
10
 
11
11
  const ZMyzCardAlert = class {
@@ -1 +1 @@
1
- {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AQ,EACnB,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,EACV,KAAK,EAAE,IAAI,CAAC,aAAa,EAAE,GACnB,EACVA,mEAAM,KAAK,EAAC,cAAc,IAAE,IAAI,CAAC,WAAW,CAAQ,EACnD,IAAI,CAAC,UAAU,IAAI,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC,MAAM,KACjDA,mEACE,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAC,GAAG,EACZ,KAAK,EAAC,gBAAgB,EACtB,OAAO,EAAE,CAAC,CAAa;gBACrB,IAAI,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC;aACjC,EACD,UAAU,EAAE,CAAC,CAAgB;gBAC3B,IAAI,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC;aAC7B,IAEA,IAAI,CAAC,UAAU,CACX,CACR,CACG,CACE,CACN,EACN;KACH;;;;;;","names":["AlertType","h"],"sources":["src/snowflakes/myz/card/z-myz-card-alert/styles.css?tag=z-myz-card-alert&encapsulation=shadow","src/snowflakes/myz/card/z-myz-card-alert/index.tsx"],"sourcesContent":[":host {\n position: absolute;\n z-index: 2;\n top: 0;\n left: 0;\n width: 100%;\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n}\n\n:host > z-alert {\n height: calc(var(--space-unit) * 6);\n}\n\n.relative-container {\n position: relative;\n display: grid;\n align-items: center;\n padding: 0;\n grid-column-gap: var(--space-unit);\n grid-template-columns: 18px auto 46px;\n grid-template-rows: 1fr;\n outline: none;\n}\n\n.relative-container::-moz-focus-inner {\n border: 0;\n}\n\n.alert-external-wrapper.remove-alert {\n border: var(--border-size-medium) solid var(--color-background);\n border-top: none;\n}\n\n:host div.add-alert {\n background: var(--color-success-inverse);\n}\n\n:host div.remove-alert {\n background: var(--color-warning-inverse);\n}\n\n:host div > .content-text {\n color: var(--color-surface05);\n font-size: 14px;\n letter-spacing: 0.16px;\n line-height: 20px;\n}\n\n:host div > .content-action {\n height: 20px;\n color: var(--color-primary01);\n cursor: pointer;\n font-size: 12px;\n font-weight: var(--font-sb);\n letter-spacing: 0.32px;\n line-height: 20px;\n}\n\n:host div > z-icon {\n justify-self: center;\n}\n","import {Component, Event, EventEmitter, Prop, h} from \"@stencil/core\";\nimport {AlertType} from \"../../../../beans\";\n\n@Component({\n tag: \"z-myz-card-alert\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZMyzCardAlert {\n /** icon name */\n @Prop()\n iconname: string;\n\n /** content text */\n @Prop()\n contenttext: string;\n\n /** action button text */\n @Prop()\n actiontext?: string;\n\n /** alert variant type */\n @Prop()\n type: string;\n\n /** undo action click/keyboard event, returns actionType */\n @Event()\n undoAction: EventEmitter;\n\n private emitUndoAction(): void {\n this.undoAction.emit({actionType: this.type});\n }\n\n private handleSpaceKeyPress(e: KeyboardEvent): void {\n if (e.keyCode == 32 || e.keyCode == 13) {\n e.preventDefault();\n this.emitUndoAction();\n }\n }\n\n private handleActionButtonClick(e: MouseEvent): void {\n e.preventDefault();\n this.emitUndoAction();\n }\n\n private retrieveClass(): string {\n let className = \"\";\n switch (this.type) {\n case \"add\":\n className = \"add-alert\";\n break;\n case \"remove\":\n className = \"remove-alert\";\n break;\n default:\n className = \"\";\n break;\n }\n\n return className;\n }\n\n private getAlertType(): AlertType {\n switch (this.type) {\n case \"add\":\n return AlertType.SUCCESS;\n case \"remove\":\n return AlertType.WARNING;\n default:\n return null;\n }\n }\n\n render(): HTMLDivElement {\n return (\n <div class={\"alert-external-wrapper \" + this.retrieveClass()}>\n <z-alert type={this.getAlertType()}>\n <div class=\"relative-container\">\n <z-icon\n name={this.iconname}\n width={18}\n height={18}\n class={this.retrieveClass()}\n ></z-icon>\n <span class=\"content-text\">{this.contenttext}</span>\n {this.actiontext && !!this.actiontext.trim().length && (\n <span\n role=\"button\"\n tabindex=\"0\"\n class=\"content-action\"\n onClick={(e: MouseEvent) => {\n this.handleActionButtonClick(e);\n }}\n onKeyPress={(e: KeyboardEvent) => {\n this.handleSpaceKeyPress(e);\n }}\n >\n {this.actiontext}\n </span>\n )}\n </div>\n </z-alert>\n </div>\n );\n }\n}\n"],"version":3}
1
+ {"file":"z-myz-card-alert.entry.cjs.js","mappings":";;;;;;;AAAA,MAAM,SAAS,GAAG,w7BAAw7B,CAAC;AAC38B,4BAAe,SAAS;;MCOX,aAAa;;;;;;;;;IAqBhB,cAAc;QACpB,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,EAAC,UAAU,EAAE,IAAI,CAAC,IAAI,EAAC,CAAC,CAAC;KAC/C;IAEO,mBAAmB,CAAC,CAAgB;QAC1C,IAAI,CAAC,CAAC,OAAO,IAAI,EAAE,IAAI,CAAC,CAAC,OAAO,IAAI,EAAE,EAAE;YACtC,CAAC,CAAC,cAAc,EAAE,CAAC;YACnB,IAAI,CAAC,cAAc,EAAE,CAAC;SACvB;KACF;IAEO,uBAAuB,CAAC,CAAa;QAC3C,CAAC,CAAC,cAAc,EAAE,CAAC;QACnB,IAAI,CAAC,cAAc,EAAE,CAAC;KACvB;IAEO,aAAa;QACnB,IAAI,SAAS,GAAG,EAAE,CAAC;QACnB,QAAQ,IAAI,CAAC,IAAI;YACf,KAAK,KAAK;gBACR,SAAS,GAAG,WAAW,CAAC;gBACxB,MAAM;YACR,KAAK,QAAQ;gBACX,SAAS,GAAG,cAAc,CAAC;gBAC3B,MAAM;YACR;gBACE,SAAS,GAAG,EAAE,CAAC;gBACf,MAAM;SACT;QAED,OAAO,SAAS,CAAC;KAClB;IAEO,YAAY;QAClB,QAAQ,IAAI,CAAC,IAAI;YACf,KAAK,KAAK;gBACR,OAAOA,iBAAS,CAAC,OAAO,CAAC;YAC3B,KAAK,QAAQ;gBACX,OAAOA,iBAAS,CAAC,OAAO,CAAC;YAC3B;gBACE,OAAO,IAAI,CAAC;SACf;KACF;IAED,MAAM;QACJ,QACEC,kEAAK,KAAK,EAAE,yBAAyB,GAAG,IAAI,CAAC,aAAa,EAAE,IAC1DA,sEAAS,IAAI,EAAE,IAAI,CAAC,YAAY,EAAE,IAChCA,kEAAK,KAAK,EAAC,oBAAoB,IAC7BA,qEACE,IAAI,EAAE,IAAI,CAAC,QAAQ,EACnB,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,EACV,KAAK,EAAE,IAAI,CAAC,aAAa,EAAE,GACnB,EACVA,mEAAM,KAAK,EAAC,cAAc,IAAE,IAAI,CAAC,WAAW,CAAQ,EACnD,IAAI,CAAC,UAAU,IAAI,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC,MAAM,KACjDA,mEACE,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAC,GAAG,EACZ,KAAK,EAAC,gBAAgB,EACtB,OAAO,EAAE,CAAC,CAAa;gBACrB,IAAI,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC;aACjC,EACD,UAAU,EAAE,CAAC,CAAgB;gBAC3B,IAAI,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC;aAC7B,IAEA,IAAI,CAAC,UAAU,CACX,CACR,CACG,CACE,CACN,EACN;KACH;;;;;;","names":["AlertType","h"],"sources":["src/snowflakes/myz/card/z-myz-card-alert/styles.css?tag=z-myz-card-alert&encapsulation=shadow","src/snowflakes/myz/card/z-myz-card-alert/index.tsx"],"sourcesContent":[":host {\n position: absolute;\n z-index: 2;\n top: 0;\n left: 0;\n width: 100%;\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n}\n\n:host > z-alert {\n height: calc(var(--space-unit) * 6);\n}\n\n.relative-container {\n position: relative;\n display: grid;\n align-items: center;\n padding: 0;\n grid-column-gap: var(--space-unit);\n grid-template-columns: 18px auto 46px;\n grid-template-rows: 1fr;\n outline: none;\n}\n\n.relative-container::-moz-focus-inner {\n border: 0;\n}\n\n.alert-external-wrapper.remove-alert {\n border: var(--border-size-medium) solid var(--color-background);\n border-top: none;\n}\n\n:host div.add-alert {\n background: var(--color-success-inverse);\n}\n\n:host div.remove-alert {\n background: var(--color-warning-inverse);\n}\n\n:host div > .content-text {\n color: var(--color-surface05);\n font-size: 14px;\n letter-spacing: 0.16px;\n line-height: 20px;\n}\n\n:host div > .content-action {\n height: 20px;\n color: var(--color-primary01);\n cursor: pointer;\n font-size: 12px;\n font-weight: var(--font-sb);\n letter-spacing: 0.32px;\n line-height: 20px;\n}\n\n:host div > z-icon {\n justify-self: center;\n}\n","import {Component, Event, EventEmitter, Prop, h} from \"@stencil/core\";\nimport {AlertType} from \"../../../../beans\";\n\n@Component({\n tag: \"z-myz-card-alert\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZMyzCardAlert {\n /** icon name */\n @Prop()\n iconname: string;\n\n /** content text */\n @Prop()\n contenttext: string;\n\n /** action button text */\n @Prop()\n actiontext?: string;\n\n /** alert variant type */\n @Prop()\n type: string;\n\n /** undo action click/keyboard event, returns actionType */\n @Event()\n undoAction: EventEmitter;\n\n private emitUndoAction(): void {\n this.undoAction.emit({actionType: this.type});\n }\n\n private handleSpaceKeyPress(e: KeyboardEvent): void {\n if (e.keyCode == 32 || e.keyCode == 13) {\n e.preventDefault();\n this.emitUndoAction();\n }\n }\n\n private handleActionButtonClick(e: MouseEvent): void {\n e.preventDefault();\n this.emitUndoAction();\n }\n\n private retrieveClass(): string {\n let className = \"\";\n switch (this.type) {\n case \"add\":\n className = \"add-alert\";\n break;\n case \"remove\":\n className = \"remove-alert\";\n break;\n default:\n className = \"\";\n break;\n }\n\n return className;\n }\n\n private getAlertType(): AlertType {\n switch (this.type) {\n case \"add\":\n return AlertType.SUCCESS;\n case \"remove\":\n return AlertType.WARNING;\n default:\n return null;\n }\n }\n\n render(): HTMLDivElement {\n return (\n <div class={\"alert-external-wrapper \" + this.retrieveClass()}>\n <z-alert type={this.getAlertType()}>\n <div class=\"relative-container\">\n <z-icon\n name={this.iconname}\n width={18}\n height={18}\n class={this.retrieveClass()}\n ></z-icon>\n <span class=\"content-text\">{this.contenttext}</span>\n {this.actiontext && !!this.actiontext.trim().length && (\n <span\n role=\"button\"\n tabindex=\"0\"\n class=\"content-action\"\n onClick={(e: MouseEvent) => {\n this.handleActionButtonClick(e);\n }}\n onKeyPress={(e: KeyboardEvent) => {\n this.handleSpaceKeyPress(e);\n }}\n >\n {this.actiontext}\n </span>\n )}\n </div>\n </z-alert>\n </div>\n );\n }\n}\n"],"version":3}
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-96af6326.js');
6
6
  const index$1 = require('./index-f5ebcaa2.js');
7
7
 
8
- const stylesCss = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host z-myz-card{--card-overflow:visible}:host>div{position:relative;width:100%;height:522px;transition:-webkit-transform 0.5s ease-out;-webkit-transition:-webkit-transform 0.5s ease-out;transition:transform 0.5s ease-out;transition:transform 0.5s ease-out, -webkit-transform 0.5s ease-out;transition:transform 0.5s ease-out,\n -webkit-transform 0.5s ease-out}:host>div .content{position:relative;z-index:2;width:100%;height:522px;-webkit-transform-style:preserve-3d;transform-style:preserve-3d;transition:-webkit-transform 0.5s ease-out;-webkit-transition:-webkit-transform 0.5s ease-out;transition:transform 0.5s ease-out;transition:transform 0.5s ease-out, -webkit-transform 0.5s ease-out;transition:transform 0.5s ease-out,\n -webkit-transform 0.5s ease-out}:host>div .content.flipped{margin-top:-2px;-webkit-transform:rotateY(180deg);transform:rotateY(180deg)}:host>div .front,:host>div .back{position:absolute;top:0;left:0;width:100%;height:100%;-webkit-backface-visibility:hidden;backface-visibility:hidden}:host>div .front{z-index:2;top:0;left:0;-webkit-transform:rotateY(0deg);transform:rotateY(0deg)}:host>div .front z-button{position:absolute;z-index:3;top:calc(var(--space-unit) * 0.5);left:calc(-1 * var(--space-unit))}:host>div .back{z-index:1;top:0;left:0;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;padding:0 var(--space-unit);margin-left:calc(-1 * var(--space-unit));-webkit-transform:rotateY(180deg);transform:rotateY(180deg)}.hide-info{display:none}";
8
+ const stylesCss = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host z-myz-card{--card-overflow:visible}:host>div{position:relative;width:100%;height:522px;transition:-webkit-transform 0.5s ease-out;transition:transform 0.5s ease-out;transition:transform 0.5s ease-out,\n -webkit-transform 0.5s ease-out}:host>div .content{position:relative;z-index:2;width:100%;height:522px;transform-style:preserve-3d;transition:-webkit-transform 0.5s ease-out;transition:transform 0.5s ease-out;transition:transform 0.5s ease-out,\n -webkit-transform 0.5s ease-out}:host>div .content.flipped{margin-top:-2px;transform:rotateY(180deg)}:host>div .front,:host>div .back{position:absolute;top:0;left:0;width:100%;height:100%;backface-visibility:hidden}:host>div .front{z-index:2;top:0;left:0;transform:rotateY(0deg)}:host>div .front z-button{position:absolute;z-index:3;top:calc(var(--space-unit) * 0.5);left:calc(-1 * var(--space-unit))}:host>div .back{z-index:1;top:0;left:0;display:flex;justify-content:center;padding:0 var(--space-unit);margin-left:calc(-1 * var(--space-unit));transform:rotateY(180deg)}.hide-info{display:none}";
9
9
  const ZMyzCardDictionaryStyle0 = stylesCss;
10
10
 
11
11
  const ZMyzCardDictionary = class {
@@ -1 +1 @@
1
- {"file":"z-myz-card-dictionary.entry.cjs.js","mappings":";;;;;;;AAAA,MAAM,SAAS,GAAG,0iDAA0iD,CAAC;AAC7jD,iCAAe,SAAS;;MCWX,kBAAkB;;;;;;wBAWlB,KAAK;uBAIN,KAAK;+BAIG,MAAM;2BAIV,KAAK;;IAGnB,cAAc,CAAC,CAAc;QAC3B,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;KACzB;IAMO,QAAQ,CAAC,QAAQ,GAAG,IAAI;QAC9B,IAAI,CAAC,OAAO,GAAG,QAAQ,CAAC;QACxB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;KACjC;IAED,MAAM;QACJ,QACEA,oEACEA,2EACEA,gFAAmB,MAAM,EAAE,IAAI,CAAC,IAAI,GAAsB,EAC1DA,kEAAK,KAAK,EAAE,WAAW,IAAI,CAAC,OAAO,GAAG,SAAS,GAAG,EAAE,EAAE,IACpDA,kEAAK,KAAK,EAAC,OAAO,IAChBA,gFACEA,+EACE,IAAI,EAAC,OAAO,EACZ,MAAM,EAAE,IAAI,CAAC,IAAI,EACjB,GAAG,EAAE,IAAI,CAAC,KAAK,EACf,KAAK,EAAE,IAAI,CAAC,QAAQ,GACpB,CACc,EAClBA,uEACE,KAAK,EAAE,EAAC,WAAW,EAAE,IAAI,CAAC,WAAW,EAAC,EACtC,OAAO,EAAEC,qBAAa,CAAC,SAAS,EAChC,IAAI,EAAC,mBAAmB,EACxB,IAAI,EAAEC,kBAAU,CAAC,OAAO,EACxB,OAAO,EAAE,MAAM,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAClC,QAAQ,EAAE,IAAI,CAAC,OAAO,IAErB,IAAI,CAAC,eAAe,CACZ,CACP,EACNF,kEAAK,KAAK,EAAC,MAAM,IACfA,mEAAM,IAAI,EAAC,MAAM,GAAG,CAChB,CACF,EACNA,oEAAQ,CACG,CACT,EACN;KACH;;;;;;","names":["h","ButtonVariant","ButtonSize"],"sources":["src/snowflakes/myz/card/z-myz-card-dictionary/styles.css?tag=z-myz-card-dictionary&encapsulation=shadow","src/snowflakes/myz/card/z-myz-card-dictionary/index.tsx"],"sourcesContent":[":host {\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n}\n\n:host z-myz-card {\n --card-overflow: visible;\n}\n\n:host > div {\n position: relative;\n width: 100%;\n height: 522px;\n transition: -webkit-transform 0.5s ease-out;\n transition: transform 0.5s ease-out;\n transition:\n transform 0.5s ease-out,\n -webkit-transform 0.5s ease-out;\n}\n\n:host > div .content {\n position: relative;\n z-index: 2;\n width: 100%;\n height: 522px;\n transform-style: preserve-3d;\n transition: -webkit-transform 0.5s ease-out;\n transition: transform 0.5s ease-out;\n transition:\n transform 0.5s ease-out,\n -webkit-transform 0.5s ease-out;\n}\n\n:host > div .content.flipped {\n margin-top: -2px;\n transform: rotateY(180deg);\n}\n\n:host > div .front,\n:host > div .back {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n backface-visibility: hidden;\n}\n\n:host > div .front {\n z-index: 2;\n top: 0;\n left: 0;\n transform: rotateY(0deg);\n}\n\n:host > div .front z-button {\n position: absolute;\n z-index: 3;\n top: calc(var(--space-unit) * 0.5);\n left: calc(-1 * var(--space-unit));\n}\n\n:host > div .back {\n z-index: 1;\n top: 0;\n left: 0;\n display: flex;\n justify-content: center;\n padding: 0 var(--space-unit);\n margin-left: calc(-1 * var(--space-unit));\n transform: rotateY(180deg);\n}\n\n.hide-info {\n display: none;\n}\n","import {Component, Event, EventEmitter, Listen, Prop, h} from \"@stencil/core\";\nimport {ButtonSize, ButtonVariant} from \"../../../../beans\";\n\n/**\n * @slot - generic card slot\n * @slot info - flipped card info\n */\n@Component({\n tag: \"z-myz-card-dictionary\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZMyzCardDictionary {\n /** card title */\n @Prop()\n name: string;\n\n /** card cover */\n @Prop()\n cover: string;\n\n /** card is disabled */\n @Prop()\n disabled = false;\n\n /** card is flipped */\n @Prop({mutable: true})\n flipped = false;\n\n /** flip button label */\n @Prop()\n flipbuttonlabel = \"INFO\";\n\n /** hide info button */\n @Prop()\n hideinfobtn = false;\n\n @Listen(\"flipCard\")\n handleFlipCard(e: CustomEvent): void {\n this.flipCard(e.detail);\n }\n\n /** when card is flipped */\n @Event()\n cardFlipped: EventEmitter;\n\n private flipCard(showBack = true): void {\n this.flipped = showBack;\n this.cardFlipped.emit(showBack);\n }\n\n render(): HTMLDivElement {\n return (\n <div>\n <z-myz-card>\n <z-myz-card-header titolo={this.name}></z-myz-card-header>\n <div class={`content ${this.flipped ? \"flipped\" : \"\"}`}>\n <div class=\"front\">\n <z-myz-card-body>\n <z-myz-card-cover\n slot=\"cover\"\n titolo={this.name}\n img={this.cover}\n faded={this.disabled}\n />\n </z-myz-card-body>\n <z-button\n class={{\"hide-info\": this.hideinfobtn}}\n variant={ButtonVariant.SECONDARY}\n icon=\"informationsource\"\n size={ButtonSize.X_SMALL}\n onClick={() => this.flipCard(true)}\n disabled={this.flipped}\n >\n {this.flipbuttonlabel}\n </z-button>\n </div>\n <div class=\"back\">\n <slot name=\"info\" />\n </div>\n </div>\n <slot />\n </z-myz-card>\n </div>\n );\n }\n}\n"],"version":3}
1
+ {"file":"z-myz-card-dictionary.entry.cjs.js","mappings":";;;;;;;AAAA,MAAM,SAAS,GAAG,wmCAAwmC,CAAC;AAC3nC,iCAAe,SAAS;;MCWX,kBAAkB;;;;;;wBAWlB,KAAK;uBAIN,KAAK;+BAIG,MAAM;2BAIV,KAAK;;IAGnB,cAAc,CAAC,CAAc;QAC3B,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;KACzB;IAMO,QAAQ,CAAC,QAAQ,GAAG,IAAI;QAC9B,IAAI,CAAC,OAAO,GAAG,QAAQ,CAAC;QACxB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;KACjC;IAED,MAAM;QACJ,QACEA,oEACEA,2EACEA,gFAAmB,MAAM,EAAE,IAAI,CAAC,IAAI,GAAsB,EAC1DA,kEAAK,KAAK,EAAE,WAAW,IAAI,CAAC,OAAO,GAAG,SAAS,GAAG,EAAE,EAAE,IACpDA,kEAAK,KAAK,EAAC,OAAO,IAChBA,gFACEA,+EACE,IAAI,EAAC,OAAO,EACZ,MAAM,EAAE,IAAI,CAAC,IAAI,EACjB,GAAG,EAAE,IAAI,CAAC,KAAK,EACf,KAAK,EAAE,IAAI,CAAC,QAAQ,GACpB,CACc,EAClBA,uEACE,KAAK,EAAE,EAAC,WAAW,EAAE,IAAI,CAAC,WAAW,EAAC,EACtC,OAAO,EAAEC,qBAAa,CAAC,SAAS,EAChC,IAAI,EAAC,mBAAmB,EACxB,IAAI,EAAEC,kBAAU,CAAC,OAAO,EACxB,OAAO,EAAE,MAAM,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAClC,QAAQ,EAAE,IAAI,CAAC,OAAO,IAErB,IAAI,CAAC,eAAe,CACZ,CACP,EACNF,kEAAK,KAAK,EAAC,MAAM,IACfA,mEAAM,IAAI,EAAC,MAAM,GAAG,CAChB,CACF,EACNA,oEAAQ,CACG,CACT,EACN;KACH;;;;;;","names":["h","ButtonVariant","ButtonSize"],"sources":["src/snowflakes/myz/card/z-myz-card-dictionary/styles.css?tag=z-myz-card-dictionary&encapsulation=shadow","src/snowflakes/myz/card/z-myz-card-dictionary/index.tsx"],"sourcesContent":[":host {\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n}\n\n:host z-myz-card {\n --card-overflow: visible;\n}\n\n:host > div {\n position: relative;\n width: 100%;\n height: 522px;\n transition: -webkit-transform 0.5s ease-out;\n transition: transform 0.5s ease-out;\n transition:\n transform 0.5s ease-out,\n -webkit-transform 0.5s ease-out;\n}\n\n:host > div .content {\n position: relative;\n z-index: 2;\n width: 100%;\n height: 522px;\n transform-style: preserve-3d;\n transition: -webkit-transform 0.5s ease-out;\n transition: transform 0.5s ease-out;\n transition:\n transform 0.5s ease-out,\n -webkit-transform 0.5s ease-out;\n}\n\n:host > div .content.flipped {\n margin-top: -2px;\n transform: rotateY(180deg);\n}\n\n:host > div .front,\n:host > div .back {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n backface-visibility: hidden;\n}\n\n:host > div .front {\n z-index: 2;\n top: 0;\n left: 0;\n transform: rotateY(0deg);\n}\n\n:host > div .front z-button {\n position: absolute;\n z-index: 3;\n top: calc(var(--space-unit) * 0.5);\n left: calc(-1 * var(--space-unit));\n}\n\n:host > div .back {\n z-index: 1;\n top: 0;\n left: 0;\n display: flex;\n justify-content: center;\n padding: 0 var(--space-unit);\n margin-left: calc(-1 * var(--space-unit));\n transform: rotateY(180deg);\n}\n\n.hide-info {\n display: none;\n}\n","import {Component, Event, EventEmitter, Listen, Prop, h} from \"@stencil/core\";\nimport {ButtonSize, ButtonVariant} from \"../../../../beans\";\n\n/**\n * @slot - generic card slot\n * @slot info - flipped card info\n */\n@Component({\n tag: \"z-myz-card-dictionary\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZMyzCardDictionary {\n /** card title */\n @Prop()\n name: string;\n\n /** card cover */\n @Prop()\n cover: string;\n\n /** card is disabled */\n @Prop()\n disabled = false;\n\n /** card is flipped */\n @Prop({mutable: true})\n flipped = false;\n\n /** flip button label */\n @Prop()\n flipbuttonlabel = \"INFO\";\n\n /** hide info button */\n @Prop()\n hideinfobtn = false;\n\n @Listen(\"flipCard\")\n handleFlipCard(e: CustomEvent): void {\n this.flipCard(e.detail);\n }\n\n /** when card is flipped */\n @Event()\n cardFlipped: EventEmitter;\n\n private flipCard(showBack = true): void {\n this.flipped = showBack;\n this.cardFlipped.emit(showBack);\n }\n\n render(): HTMLDivElement {\n return (\n <div>\n <z-myz-card>\n <z-myz-card-header titolo={this.name}></z-myz-card-header>\n <div class={`content ${this.flipped ? \"flipped\" : \"\"}`}>\n <div class=\"front\">\n <z-myz-card-body>\n <z-myz-card-cover\n slot=\"cover\"\n titolo={this.name}\n img={this.cover}\n faded={this.disabled}\n />\n </z-myz-card-body>\n <z-button\n class={{\"hide-info\": this.hideinfobtn}}\n variant={ButtonVariant.SECONDARY}\n icon=\"informationsource\"\n size={ButtonSize.X_SMALL}\n onClick={() => this.flipCard(true)}\n disabled={this.flipped}\n >\n {this.flipbuttonlabel}\n </z-button>\n </div>\n <div class=\"back\">\n <slot name=\"info\" />\n </div>\n </div>\n <slot />\n </z-myz-card>\n </div>\n );\n }\n}\n"],"version":3}
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-96af6326.js');
6
6
 
7
- const stylesCss = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>div>footer{height:128px;-webkit-box-sizing:border-box;box-sizing:border-box;padding:var(--space-unit) calc(var(--space-unit) * 2) 0;border-top:var(--border-size-medium) solid var(--color-surface03);border-radius:0 0 var(--border-radius) var(--border-radius);color:var(--color-surface05);font-size:16px;line-height:24px}:host>div>footer>div.top,:host>div>footer>div.bottom{height:60px}";
7
+ const stylesCss = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>div>footer{height:128px;box-sizing:border-box;padding:var(--space-unit) calc(var(--space-unit) * 2) 0;border-top:var(--border-size-medium) solid var(--color-surface03);border-radius:0 0 var(--border-radius) var(--border-radius);color:var(--color-surface05);font-size:16px;line-height:24px}:host>div>footer>div.top,:host>div>footer>div.bottom{height:60px}";
8
8
  const ZMyzCardFooterSectionsStyle0 = stylesCss;
9
9
 
10
10
  const ZMyzCardFooterSections = class {