@zanichelli/albe-web-components 19.1.4-RC1 → 19.3.0-RC1

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 (877) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist/cjs/iconset-5d47610c.js +1016 -0
  3. package/dist/cjs/iconset-5d47610c.js.map +1 -0
  4. package/dist/cjs/{index-f011b2e3.js → index-1ee051ca.js} +2 -2
  5. package/dist/cjs/{index-f011b2e3.js.map → index-1ee051ca.js.map} +1 -1
  6. package/dist/cjs/{index-09238e31.js → index-43dfc8b2.js} +3 -3
  7. package/dist/cjs/{index-09238e31.js.map → index-43dfc8b2.js.map} +1 -1
  8. package/dist/cjs/{index-805390c8.js → index-44e3cf31.js} +5 -5
  9. package/dist/cjs/{index-805390c8.js.map → index-44e3cf31.js.map} +1 -1
  10. package/dist/cjs/{index-1c7cd5df.js → index-5eb95b44.js} +2 -2
  11. package/dist/cjs/{index-1c7cd5df.js.map → index-5eb95b44.js.map} +1 -1
  12. package/dist/cjs/{index-62712250.js → index-8770e71a.js} +2 -2
  13. package/dist/cjs/{index-62712250.js.map → index-8770e71a.js.map} +1 -1
  14. package/dist/cjs/index-96af6326.js +8 -4
  15. package/dist/cjs/{index-66928615.js → index-d214a119.js} +3 -3
  16. package/dist/cjs/{index-66928615.js.map → index-d214a119.js.map} +1 -1
  17. package/dist/cjs/{index-97a4c18d.js → index-e30d0503.js} +51 -1
  18. package/dist/cjs/index-e30d0503.js.map +1 -0
  19. package/dist/cjs/index.cjs.js +5 -2
  20. package/dist/cjs/index.cjs.js.map +1 -1
  21. package/dist/cjs/loader.cjs.js +1 -1
  22. package/dist/cjs/{utils-7f9d5a78.js → utils-4f7b4830.js} +2 -2
  23. package/dist/cjs/{utils-7f9d5a78.js.map → utils-4f7b4830.js.map} +1 -1
  24. package/dist/cjs/{utils-5148245a.js → utils-b1859d65.js} +41 -6
  25. package/dist/cjs/utils-b1859d65.js.map +1 -0
  26. package/dist/cjs/web-components-library.cjs.js +1 -1
  27. package/dist/cjs/z-accordion.cjs.entry.js +2 -2
  28. package/dist/cjs/z-alert.cjs.entry.js +1 -1
  29. package/dist/cjs/z-anchor-navigation.cjs.entry.js +2 -2
  30. package/dist/cjs/z-app-header-deprecated.cjs.entry.js +2 -2
  31. package/dist/cjs/z-app-header_12.cjs.entry.js +114 -1029
  32. package/dist/cjs/z-app-header_12.cjs.entry.js.map +1 -1
  33. package/dist/cjs/z-aria-alert.cjs.entry.js +2 -2
  34. package/dist/cjs/z-avatar.cjs.entry.js +3 -3
  35. package/dist/cjs/z-book-card-app.cjs.entry.js +2 -2
  36. package/dist/cjs/z-book-card-deprecated.cjs.entry.js +3 -3
  37. package/dist/cjs/z-book-card.cjs.entry.js +2 -2
  38. package/dist/cjs/z-book-card.cjs.entry.js.map +1 -1
  39. package/dist/cjs/z-book-cover.cjs.entry.js +1 -1
  40. package/dist/cjs/z-breadcrumb.cjs.entry.js +4 -4
  41. package/dist/cjs/z-button-sort.cjs.entry.js +1 -1
  42. package/dist/cjs/z-card.cjs.entry.js +1 -1
  43. package/dist/cjs/z-carousel.cjs.entry.js +1 -1
  44. package/dist/cjs/z-chip.cjs.entry.js +3 -3
  45. package/dist/cjs/z-color-picker.cjs.entry.js +212 -0
  46. package/dist/cjs/z-color-picker.cjs.entry.js.map +1 -0
  47. package/dist/cjs/z-combobox.cjs.entry.js +127 -96
  48. package/dist/cjs/z-combobox.cjs.entry.js.map +1 -1
  49. package/dist/cjs/z-cover-hero.cjs.entry.js +3 -3
  50. package/dist/cjs/z-date-picker.cjs.entry.js +3 -3
  51. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +7 -7
  52. package/dist/cjs/z-file-upload.cjs.entry.js +1 -1
  53. package/dist/cjs/z-file.cjs.entry.js +2 -2
  54. package/dist/cjs/z-ghost-loading.cjs.entry.js +1 -1
  55. package/dist/cjs/z-info-box.cjs.entry.js +1 -1
  56. package/dist/cjs/z-info-reveal.cjs.entry.js +2 -2
  57. package/dist/cjs/z-logo.cjs.entry.js +1 -1
  58. package/dist/cjs/z-menu-deprecated.cjs.entry.js +1 -1
  59. package/dist/cjs/z-menu-section-deprecated.cjs.entry.js +1 -1
  60. package/dist/cjs/z-menu-section.cjs.entry.js +2 -2
  61. package/dist/cjs/z-menu.cjs.entry.js +2 -2
  62. package/dist/cjs/z-menu.cjs.entry.js.map +1 -1
  63. package/dist/cjs/z-myz-card-alert.cjs.entry.js +2 -2
  64. package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +2 -2
  65. package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +1 -1
  66. package/dist/cjs/z-myz-card-footer.cjs.entry.js +2 -2
  67. package/dist/cjs/z-myz-card-icon.cjs.entry.js +1 -1
  68. package/dist/cjs/z-myz-card-info.cjs.entry.js +3 -3
  69. package/dist/cjs/z-myz-card-list.cjs.entry.js +1 -1
  70. package/dist/cjs/z-myz-card_4.cjs.entry.js +5 -5
  71. package/dist/cjs/z-myz-list-item.cjs.entry.js +3 -3
  72. package/dist/cjs/z-myz-list.cjs.entry.js +1 -1
  73. package/dist/cjs/z-navigation-tabs.cjs.entry.js +3 -3
  74. package/dist/cjs/z-notification.cjs.entry.js +2 -2
  75. package/dist/cjs/z-notification.cjs.entry.js.map +1 -1
  76. package/dist/cjs/z-otp.cjs.entry.js +3 -3
  77. package/dist/cjs/z-pagination.cjs.entry.js +1 -1
  78. package/dist/cjs/z-panel-elem.cjs.entry.js +2 -2
  79. package/dist/cjs/z-popover.cjs.entry.js +20 -16
  80. package/dist/cjs/z-popover.cjs.entry.js.map +1 -1
  81. package/dist/cjs/z-range-picker.cjs.entry.js +5 -5
  82. package/dist/cjs/z-section-title.cjs.entry.js +2 -2
  83. package/dist/cjs/z-select.cjs.entry.js +99 -134
  84. package/dist/cjs/z-select.cjs.entry.js.map +1 -1
  85. package/dist/cjs/z-skip-to-content.cjs.entry.js +3 -3
  86. package/dist/cjs/z-slideshow.cjs.entry.js +2 -2
  87. package/dist/cjs/z-stepper-item.cjs.entry.js +1 -1
  88. package/dist/cjs/z-stepper.cjs.entry.js +1 -1
  89. package/dist/cjs/z-table.cjs.entry.js +9 -9
  90. package/dist/cjs/z-tbody.cjs.entry.js +1 -1
  91. package/dist/cjs/z-td.cjs.entry.js +2 -2
  92. package/dist/cjs/z-tfoot.cjs.entry.js +1 -1
  93. package/dist/cjs/z-th.cjs.entry.js +2 -2
  94. package/dist/cjs/z-thead.cjs.entry.js +1 -1
  95. package/dist/cjs/z-toast-notification-list.cjs.entry.js +3 -2
  96. package/dist/cjs/z-toast-notification-list.cjs.entry.js.map +1 -1
  97. package/dist/cjs/z-toast-notification.cjs.entry.js +2 -2
  98. package/dist/cjs/z-toggle-button.cjs.entry.js +2 -2
  99. package/dist/cjs/z-toggle-switch.cjs.entry.js +5 -5
  100. package/dist/cjs/z-tool.cjs.entry.js +147 -42
  101. package/dist/cjs/z-tool.cjs.entry.js.map +1 -1
  102. package/dist/cjs/z-toolbar.cjs.entry.js +64 -66
  103. package/dist/cjs/z-toolbar.cjs.entry.js.map +1 -1
  104. package/dist/cjs/z-tooltip.cjs.entry.js +3 -2
  105. package/dist/cjs/z-tooltip.cjs.entry.js.map +1 -1
  106. package/dist/cjs/z-tr.cjs.entry.js +5 -5
  107. package/dist/cjs/z-tree-list.cjs.entry.js +2 -2
  108. package/dist/cjs/z-visually-hidden.cjs.entry.js +1 -1
  109. package/dist/collection/beans/index.js +48 -0
  110. package/dist/collection/beans/index.js.map +1 -1
  111. package/dist/collection/collection-manifest.json +1 -0
  112. package/dist/collection/components/book-card/z-book-card/styles.css +2 -1
  113. package/dist/collection/components/book-card/z-book-card-app/index.js +1 -1
  114. package/dist/collection/components/date-picker/z-date-picker/index.js +1 -1
  115. package/dist/collection/components/date-picker/z-range-picker/index.js +3 -3
  116. package/dist/collection/components/deprecated/z-app-header-deprecated/index.js +1 -1
  117. package/dist/collection/components/deprecated/z-book-card-deprecated/index.js +1 -1
  118. package/dist/collection/components/deprecated/z-menu-deprecated/index.js +1 -1
  119. package/dist/collection/components/deprecated/z-menu-section-deprecated/index.js +1 -1
  120. package/dist/collection/components/deprecated/z-section-title/index.js +1 -1
  121. package/dist/collection/components/file-upload/z-dragdrop-area/index.js +2 -2
  122. package/dist/collection/components/file-upload/z-file/index.js +1 -1
  123. package/dist/collection/components/list/z-list/index.js +1 -1
  124. package/dist/collection/components/list/z-list-element/index.js +1 -1
  125. package/dist/collection/components/list/z-list-group/index.js +39 -2
  126. package/dist/collection/components/list/z-list-group/index.js.map +1 -1
  127. package/dist/collection/components/list/z-tree-list/index.js +1 -1
  128. package/dist/collection/components/table/cells/z-td/index.js +1 -1
  129. package/dist/collection/components/table/cells/z-th/index.js +1 -1
  130. package/dist/collection/components/table/z-table/index.js +1 -1
  131. package/dist/collection/components/table/z-tbody/index.js +1 -1
  132. package/dist/collection/components/table/z-tfoot/index.js +1 -1
  133. package/dist/collection/components/table/z-thead/index.js +1 -1
  134. package/dist/collection/components/table/z-tr/index.js +1 -1
  135. package/dist/collection/components/z-accordion/index.js +1 -1
  136. package/dist/collection/components/z-anchor-navigation/index.js +1 -1
  137. package/dist/collection/components/z-app-header/index.js +1 -1
  138. package/dist/collection/components/z-app-header/index.js.map +1 -1
  139. package/dist/collection/components/z-app-header/index.stories.js +42 -0
  140. package/dist/collection/components/z-app-header/index.stories.js.map +1 -1
  141. package/dist/collection/components/z-app-header/styles.css +8 -0
  142. package/dist/collection/components/z-aria-alert/index.js +1 -1
  143. package/dist/collection/components/z-avatar/index.js +2 -2
  144. package/dist/collection/components/z-book-cover/index.js +1 -1
  145. package/dist/collection/components/z-breadcrumb/index.js +2 -2
  146. package/dist/collection/components/z-button-sort/index.js +1 -1
  147. package/dist/collection/components/z-chip/index.js +2 -2
  148. package/dist/collection/components/z-color-picker/index.js +367 -0
  149. package/dist/collection/components/z-color-picker/index.js.map +1 -0
  150. package/dist/collection/components/z-color-picker/index.stories.js +34 -0
  151. package/dist/collection/components/z-color-picker/index.stories.js.map +1 -0
  152. package/dist/collection/components/z-color-picker/styles.css +74 -0
  153. package/dist/collection/components/z-combobox/index.js +142 -97
  154. package/dist/collection/components/z-combobox/index.js.map +1 -1
  155. package/dist/collection/components/z-combobox/styles.css +41 -0
  156. package/dist/collection/components/z-cover-hero/index.js +2 -2
  157. package/dist/collection/components/z-divider/index.js +1 -1
  158. package/dist/collection/components/z-ghost-loading/index.js +1 -1
  159. package/dist/collection/components/z-icon/index.js +40 -9
  160. package/dist/collection/components/z-icon/index.js.map +1 -1
  161. package/dist/collection/components/z-icon/index.stories.js +34 -18
  162. package/dist/collection/components/z-icon/index.stories.js.map +1 -1
  163. package/dist/collection/components/z-icon/styles.css +15 -2
  164. package/dist/collection/components/z-info-box/index.js +1 -1
  165. package/dist/collection/components/z-info-reveal/index.js +1 -1
  166. package/dist/collection/components/z-input/index.js +1 -1
  167. package/dist/collection/components/z-input-message/index.js +1 -1
  168. package/dist/collection/components/z-logo/index.js +1 -1
  169. package/dist/collection/components/z-menu/index.js +1 -1
  170. package/dist/collection/components/z-menu/index.js.map +1 -1
  171. package/dist/collection/components/z-menu-section/index.js +1 -1
  172. package/dist/collection/components/z-modal/index.js +4 -4
  173. package/dist/collection/components/z-navigation-tabs/index.js +2 -2
  174. package/dist/collection/components/z-notification/index.js +1 -1
  175. package/dist/collection/components/z-notification/styles.css +2 -2
  176. package/dist/collection/components/z-offcanvas/index.js +89 -10
  177. package/dist/collection/components/z-offcanvas/index.js.map +1 -1
  178. package/dist/collection/components/z-panel-elem/index.js +2 -2
  179. package/dist/collection/components/z-popover/index.js +31 -21
  180. package/dist/collection/components/z-popover/index.js.map +1 -1
  181. package/dist/collection/components/z-popover/styles.css +18 -3
  182. package/dist/collection/components/z-searchbar/index.js +1 -1
  183. package/dist/collection/components/z-searchbar/styles.css +1 -1
  184. package/dist/collection/components/z-select/index.js +97 -141
  185. package/dist/collection/components/z-select/index.js.map +1 -1
  186. package/dist/collection/components/z-select/styles.css +9 -2
  187. package/dist/collection/components/z-skip-to-content/index.js +1 -1
  188. package/dist/collection/components/z-stepper/index.js +1 -1
  189. package/dist/collection/components/z-stepper-item/index.js +1 -1
  190. package/dist/collection/components/z-tag/index.js +2 -2
  191. package/dist/collection/components/z-toast-notification/index.js +1 -1
  192. package/dist/collection/components/z-toast-notification-list/index.js +2 -1
  193. package/dist/collection/components/z-toast-notification-list/index.js.map +1 -1
  194. package/dist/collection/components/z-toggle-button/index.js +2 -2
  195. package/dist/collection/components/z-toggle-switch/index.js +3 -3
  196. package/dist/collection/components/z-tool/index.js +281 -48
  197. package/dist/collection/components/z-tool/index.js.map +1 -1
  198. package/dist/collection/components/z-tool/index.stories.js +89 -12
  199. package/dist/collection/components/z-tool/index.stories.js.map +1 -1
  200. package/dist/collection/components/z-tool/styles.css +30 -31
  201. package/dist/collection/components/z-toolbar/index.js +72 -91
  202. package/dist/collection/components/z-toolbar/index.js.map +1 -1
  203. package/dist/collection/components/z-toolbar/index.stories.js +190 -309
  204. package/dist/collection/components/z-toolbar/index.stories.js.map +1 -1
  205. package/dist/collection/components/z-toolbar/styles.css +10 -19
  206. package/dist/collection/components/z-tooltip/index.js +19 -1
  207. package/dist/collection/components/z-tooltip/index.js.map +1 -1
  208. package/dist/collection/components/z-visually-hidden/index.js +1 -1
  209. package/dist/collection/constants/iconset.js +152 -142
  210. package/dist/collection/constants/iconset.js.map +1 -1
  211. package/dist/collection/index.js +1 -0
  212. package/dist/collection/index.js.map +1 -1
  213. package/dist/collection/snowflakes/myz/card/z-myz-card/index.js +1 -1
  214. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js +1 -1
  215. package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js +1 -1
  216. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js +1 -1
  217. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js +1 -1
  218. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js +1 -1
  219. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js +1 -1
  220. package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js +1 -1
  221. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js +1 -1
  222. package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +1 -1
  223. package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js +1 -1
  224. package/dist/collection/snowflakes/myz/list/z-myz-list/index.js +1 -1
  225. package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js +1 -1
  226. package/dist/collection/snowflakes/myz/z-alert/index.js +1 -1
  227. package/dist/collection/snowflakes/myz/z-otp/index.js +2 -2
  228. package/dist/collection/utils/utils.js +38 -4
  229. package/dist/collection/utils/utils.js.map +1 -1
  230. package/dist/components/iconset.js +152 -143
  231. package/dist/components/iconset.js.map +1 -1
  232. package/dist/components/index.d.ts +2 -0
  233. package/dist/components/index.js +3 -1
  234. package/dist/components/index.js.map +1 -1
  235. package/dist/components/index10.js +17 -6
  236. package/dist/components/index10.js.map +1 -1
  237. package/dist/components/index11.js +1 -1
  238. package/dist/components/index12.js +2 -2
  239. package/dist/components/index13.js +1 -1
  240. package/dist/components/index14.js +1 -1
  241. package/dist/components/index15.js +1 -1
  242. package/dist/components/index16.js +7 -3
  243. package/dist/components/index16.js.map +1 -1
  244. package/dist/components/index17.js +4 -4
  245. package/dist/components/index18.js +1 -1
  246. package/dist/components/index19.js +1 -1
  247. package/dist/components/index2.js +49 -1
  248. package/dist/components/index2.js.map +1 -1
  249. package/dist/components/index20.js +1 -1
  250. package/dist/components/index21.js +1 -1
  251. package/dist/components/index22.js +1 -1
  252. package/dist/components/index23.js +84 -11
  253. package/dist/components/index23.js.map +1 -1
  254. package/dist/components/index24.js +20 -16
  255. package/dist/components/index24.js.map +1 -1
  256. package/dist/components/index25.js +3 -3
  257. package/dist/components/index25.js.map +1 -1
  258. package/dist/components/index26.js +2 -2
  259. package/dist/components/index27.js +55 -0
  260. package/dist/components/index27.js.map +1 -0
  261. package/dist/components/index3.js +1 -1
  262. package/dist/components/index4.js +1 -1
  263. package/dist/components/index6.js +2 -2
  264. package/dist/components/index7.js +1 -1
  265. package/dist/components/index8.js +2 -2
  266. package/dist/components/index9.js +1 -1
  267. package/dist/components/utils.js +39 -5
  268. package/dist/components/utils.js.map +1 -1
  269. package/dist/components/z-accordion.js +1 -1
  270. package/dist/components/z-anchor-navigation.js +1 -1
  271. package/dist/components/z-app-header-deprecated.js +1 -1
  272. package/dist/components/z-app-header.js +2 -2
  273. package/dist/components/z-app-header.js.map +1 -1
  274. package/dist/components/z-aria-alert.js +1 -1
  275. package/dist/components/z-avatar.js +2 -2
  276. package/dist/components/z-book-card-app.js +1 -1
  277. package/dist/components/z-book-card-deprecated.js +1 -1
  278. package/dist/components/z-book-card.js +1 -1
  279. package/dist/components/z-book-card.js.map +1 -1
  280. package/dist/components/z-breadcrumb.js +2 -2
  281. package/dist/components/z-button-sort.js +1 -1
  282. package/dist/components/z-color-picker.d.ts +11 -0
  283. package/dist/components/z-color-picker.js +234 -0
  284. package/dist/components/z-color-picker.js.map +1 -0
  285. package/dist/components/z-combobox.js +129 -99
  286. package/dist/components/z-combobox.js.map +1 -1
  287. package/dist/components/z-cover-hero.js +2 -2
  288. package/dist/components/z-date-picker.js +1 -1
  289. package/dist/components/z-file.js +1 -1
  290. package/dist/components/z-info-box.js +1 -1
  291. package/dist/components/z-logo.js +1 -1
  292. package/dist/components/z-menu-deprecated.js +1 -1
  293. package/dist/components/z-menu-section-deprecated.js +1 -1
  294. package/dist/components/z-menu-section.js +1 -1
  295. package/dist/components/z-menu.js +1 -1
  296. package/dist/components/z-menu.js.map +1 -1
  297. package/dist/components/z-myz-card-alert.js +1 -1
  298. package/dist/components/z-myz-card-dictionary.js +1 -1
  299. package/dist/components/z-myz-card-footer-sections.js +1 -1
  300. package/dist/components/z-myz-card-footer.js +1 -1
  301. package/dist/components/z-myz-card-icon.js +1 -1
  302. package/dist/components/z-myz-card-info.js +1 -1
  303. package/dist/components/z-myz-card-list.js +1 -1
  304. package/dist/components/z-myz-list.js +1 -1
  305. package/dist/components/z-navigation-tabs.js +2 -2
  306. package/dist/components/z-notification.js +2 -2
  307. package/dist/components/z-notification.js.map +1 -1
  308. package/dist/components/z-otp.js +2 -2
  309. package/dist/components/z-panel-elem.js +2 -2
  310. package/dist/components/z-range-picker.js +3 -3
  311. package/dist/components/z-section-title.js +1 -1
  312. package/dist/components/z-select.js +99 -134
  313. package/dist/components/z-select.js.map +1 -1
  314. package/dist/components/z-skip-to-content.js +2 -2
  315. package/dist/components/z-slideshow.js +1 -1
  316. package/dist/components/z-stepper-item.js +1 -1
  317. package/dist/components/z-stepper.js +1 -1
  318. package/dist/components/z-table.js +1 -1
  319. package/dist/components/z-tbody.js +1 -1
  320. package/dist/components/z-td.js +1 -1
  321. package/dist/components/z-tfoot.js +1 -1
  322. package/dist/components/z-th.js +1 -1
  323. package/dist/components/z-thead.js +1 -1
  324. package/dist/components/z-toast-notification-list.js +2 -1
  325. package/dist/components/z-toast-notification-list.js.map +1 -1
  326. package/dist/components/z-toast-notification.js +1 -1
  327. package/dist/components/z-toggle-button.js +2 -2
  328. package/dist/components/z-toggle-switch.js +3 -3
  329. package/dist/components/z-tool.js +165 -49
  330. package/dist/components/z-tool.js.map +1 -1
  331. package/dist/components/z-toolbar.js +65 -68
  332. package/dist/components/z-toolbar.js.map +1 -1
  333. package/dist/components/z-tooltip.js +1 -50
  334. package/dist/components/z-tooltip.js.map +1 -1
  335. package/dist/components/z-tr.js +1 -1
  336. package/dist/components/z-tree-list.js +1 -1
  337. package/dist/components/z-visually-hidden.js +1 -1
  338. package/dist/esm/iconset-d7823b13.js +1013 -0
  339. package/dist/esm/iconset-d7823b13.js.map +1 -0
  340. package/dist/esm/{index-2a6324f8.js → index-106473a8.js} +50 -2
  341. package/dist/esm/index-106473a8.js.map +1 -0
  342. package/dist/esm/{index-8a9f6d27.js → index-167f46ad.js} +5 -5
  343. package/dist/esm/{index-8a9f6d27.js.map → index-167f46ad.js.map} +1 -1
  344. package/dist/esm/{index-0bcacbd3.js → index-21176e80.js} +2 -2
  345. package/dist/esm/{index-0bcacbd3.js.map → index-21176e80.js.map} +1 -1
  346. package/dist/esm/{index-b64ced16.js → index-39a920c4.js} +3 -3
  347. package/dist/esm/{index-b64ced16.js.map → index-39a920c4.js.map} +1 -1
  348. package/dist/esm/{index-36122d8f.js → index-41934729.js} +2 -2
  349. package/dist/esm/{index-36122d8f.js.map → index-41934729.js.map} +1 -1
  350. package/dist/esm/{index-f20179ad.js → index-4845b32f.js} +3 -3
  351. package/dist/esm/{index-f20179ad.js.map → index-4845b32f.js.map} +1 -1
  352. package/dist/esm/{index-0ea3c7c8.js → index-599cd05a.js} +2 -2
  353. package/dist/esm/{index-0ea3c7c8.js.map → index-599cd05a.js.map} +1 -1
  354. package/dist/esm/index-c8ceadeb.js +8 -4
  355. package/dist/esm/index.js +3 -2
  356. package/dist/esm/index.js.map +1 -1
  357. package/dist/esm/loader.js +1 -1
  358. package/dist/esm/{utils-e66d94c3.js → utils-8d6ca808.js} +41 -7
  359. package/dist/esm/utils-8d6ca808.js.map +1 -0
  360. package/dist/esm/{utils-227ef1c0.js → utils-93ac0e6c.js} +2 -2
  361. package/dist/esm/{utils-227ef1c0.js.map → utils-93ac0e6c.js.map} +1 -1
  362. package/dist/esm/web-components-library.js +1 -1
  363. package/dist/esm/z-accordion.entry.js +2 -2
  364. package/dist/esm/z-alert.entry.js +1 -1
  365. package/dist/esm/z-anchor-navigation.entry.js +2 -2
  366. package/dist/esm/z-app-header-deprecated.entry.js +2 -2
  367. package/dist/esm/z-app-header_12.entry.js +114 -1029
  368. package/dist/esm/z-app-header_12.entry.js.map +1 -1
  369. package/dist/esm/z-aria-alert.entry.js +2 -2
  370. package/dist/esm/z-avatar.entry.js +3 -3
  371. package/dist/esm/z-book-card-app.entry.js +2 -2
  372. package/dist/esm/z-book-card-deprecated.entry.js +3 -3
  373. package/dist/esm/z-book-card.entry.js +2 -2
  374. package/dist/esm/z-book-card.entry.js.map +1 -1
  375. package/dist/esm/z-book-cover.entry.js +1 -1
  376. package/dist/esm/z-breadcrumb.entry.js +4 -4
  377. package/dist/esm/z-button-sort.entry.js +1 -1
  378. package/dist/esm/z-card.entry.js +1 -1
  379. package/dist/esm/z-carousel.entry.js +1 -1
  380. package/dist/esm/z-chip.entry.js +3 -3
  381. package/dist/esm/z-color-picker.entry.js +208 -0
  382. package/dist/esm/z-color-picker.entry.js.map +1 -0
  383. package/dist/esm/z-combobox.entry.js +127 -96
  384. package/dist/esm/z-combobox.entry.js.map +1 -1
  385. package/dist/esm/z-cover-hero.entry.js +3 -3
  386. package/dist/esm/z-date-picker.entry.js +3 -3
  387. package/dist/esm/z-dragdrop-area_2.entry.js +7 -7
  388. package/dist/esm/z-file-upload.entry.js +1 -1
  389. package/dist/esm/z-file.entry.js +2 -2
  390. package/dist/esm/z-ghost-loading.entry.js +1 -1
  391. package/dist/esm/z-info-box.entry.js +1 -1
  392. package/dist/esm/z-info-reveal.entry.js +2 -2
  393. package/dist/esm/z-logo.entry.js +1 -1
  394. package/dist/esm/z-menu-deprecated.entry.js +1 -1
  395. package/dist/esm/z-menu-section-deprecated.entry.js +1 -1
  396. package/dist/esm/z-menu-section.entry.js +2 -2
  397. package/dist/esm/z-menu.entry.js +2 -2
  398. package/dist/esm/z-menu.entry.js.map +1 -1
  399. package/dist/esm/z-myz-card-alert.entry.js +2 -2
  400. package/dist/esm/z-myz-card-dictionary.entry.js +2 -2
  401. package/dist/esm/z-myz-card-footer-sections.entry.js +1 -1
  402. package/dist/esm/z-myz-card-footer.entry.js +2 -2
  403. package/dist/esm/z-myz-card-icon.entry.js +1 -1
  404. package/dist/esm/z-myz-card-info.entry.js +3 -3
  405. package/dist/esm/z-myz-card-list.entry.js +1 -1
  406. package/dist/esm/z-myz-card_4.entry.js +5 -5
  407. package/dist/esm/z-myz-list-item.entry.js +3 -3
  408. package/dist/esm/z-myz-list.entry.js +1 -1
  409. package/dist/esm/z-navigation-tabs.entry.js +3 -3
  410. package/dist/esm/z-notification.entry.js +2 -2
  411. package/dist/esm/z-notification.entry.js.map +1 -1
  412. package/dist/esm/z-otp.entry.js +3 -3
  413. package/dist/esm/z-pagination.entry.js +1 -1
  414. package/dist/esm/z-panel-elem.entry.js +2 -2
  415. package/dist/esm/z-popover.entry.js +20 -16
  416. package/dist/esm/z-popover.entry.js.map +1 -1
  417. package/dist/esm/z-range-picker.entry.js +5 -5
  418. package/dist/esm/z-section-title.entry.js +2 -2
  419. package/dist/esm/z-select.entry.js +99 -134
  420. package/dist/esm/z-select.entry.js.map +1 -1
  421. package/dist/esm/z-skip-to-content.entry.js +3 -3
  422. package/dist/esm/z-slideshow.entry.js +2 -2
  423. package/dist/esm/z-stepper-item.entry.js +1 -1
  424. package/dist/esm/z-stepper.entry.js +1 -1
  425. package/dist/esm/z-table.entry.js +9 -9
  426. package/dist/esm/z-tbody.entry.js +1 -1
  427. package/dist/esm/z-td.entry.js +2 -2
  428. package/dist/esm/z-tfoot.entry.js +1 -1
  429. package/dist/esm/z-th.entry.js +2 -2
  430. package/dist/esm/z-thead.entry.js +1 -1
  431. package/dist/esm/z-toast-notification-list.entry.js +3 -2
  432. package/dist/esm/z-toast-notification-list.entry.js.map +1 -1
  433. package/dist/esm/z-toast-notification.entry.js +2 -2
  434. package/dist/esm/z-toggle-button.entry.js +2 -2
  435. package/dist/esm/z-toggle-switch.entry.js +5 -5
  436. package/dist/esm/z-tool.entry.js +147 -42
  437. package/dist/esm/z-tool.entry.js.map +1 -1
  438. package/dist/esm/z-toolbar.entry.js +64 -66
  439. package/dist/esm/z-toolbar.entry.js.map +1 -1
  440. package/dist/esm/z-tooltip.entry.js +4 -3
  441. package/dist/esm/z-tooltip.entry.js.map +1 -1
  442. package/dist/esm/z-tr.entry.js +5 -5
  443. package/dist/esm/z-tree-list.entry.js +2 -2
  444. package/dist/esm/z-visually-hidden.entry.js +1 -1
  445. package/dist/types/beans/index.d.ts +184 -0
  446. package/dist/types/components/list/z-list-group/index.d.ts +8 -0
  447. package/dist/types/components/z-app-header/index.stories.d.ts +16 -0
  448. package/dist/types/components/z-color-picker/index.d.ts +64 -0
  449. package/dist/types/components/z-color-picker/index.stories.d.ts +33 -0
  450. package/dist/types/components/z-combobox/index.d.ts +10 -11
  451. package/dist/types/components/z-icon/index.d.ts +19 -5
  452. package/dist/types/components/z-icon/index.stories.d.ts +23 -10
  453. package/dist/types/components/z-offcanvas/index.d.ts +24 -0
  454. package/dist/types/components/z-popover/index.d.ts +9 -4
  455. package/dist/types/components/z-select/index.d.ts +5 -7
  456. package/dist/types/components/z-tool/index.d.ts +73 -9
  457. package/dist/types/components/z-tool/index.stories.d.ts +38 -12
  458. package/dist/types/components/z-toolbar/index.d.ts +23 -6
  459. package/dist/types/components/z-toolbar/index.stories.d.ts +23 -20
  460. package/dist/types/components/z-tooltip/index.d.ts +8 -0
  461. package/dist/types/components.d.ts +213 -35
  462. package/dist/types/constants/iconset.d.ts +281 -141
  463. package/dist/types/index.d.ts +1 -0
  464. package/dist/types/utils/utils.d.ts +5 -2
  465. package/dist/web-components-library/index.esm.js +1 -1
  466. package/dist/web-components-library/index.esm.js.map +1 -1
  467. package/{www/build/p-5a24e268.entry.js → dist/web-components-library/p-03a558ef.entry.js} +2 -2
  468. package/dist/web-components-library/p-061e28d6.js +2 -0
  469. package/dist/web-components-library/p-061e28d6.js.map +1 -0
  470. package/dist/web-components-library/p-0989655c.entry.js +2 -0
  471. package/dist/web-components-library/p-0989655c.entry.js.map +1 -0
  472. package/dist/web-components-library/p-102f6e37.entry.js +2 -0
  473. package/dist/web-components-library/p-102f6e37.entry.js.map +1 -0
  474. package/dist/web-components-library/{p-d9c9de15.entry.js → p-15951fc6.entry.js} +2 -2
  475. package/dist/web-components-library/p-17e2fed2.entry.js +2 -0
  476. package/dist/web-components-library/{p-b7ec2cc4.entry.js → p-19172b2c.entry.js} +2 -2
  477. package/{www/build/p-94916bdf.entry.js → dist/web-components-library/p-1939116a.entry.js} +2 -2
  478. package/dist/web-components-library/{p-b71a3f69.entry.js → p-1e0d85d5.entry.js} +2 -2
  479. package/dist/web-components-library/{p-bdbcf353.entry.js → p-215b1fa5.entry.js} +2 -2
  480. package/dist/web-components-library/p-22b683a3.entry.js +2 -0
  481. package/dist/web-components-library/p-22b683a3.entry.js.map +1 -0
  482. package/dist/web-components-library/p-2a04c00e.entry.js +2 -0
  483. package/dist/web-components-library/{p-816fd6dc.entry.js.map → p-2a04c00e.entry.js.map} +1 -1
  484. package/{www/build/p-1fd1cf02.entry.js → dist/web-components-library/p-2bba665d.entry.js} +2 -2
  485. package/dist/web-components-library/{p-5a1f98a2.entry.js → p-2f45f1ff.entry.js} +2 -2
  486. package/dist/web-components-library/{p-86160fe3.entry.js → p-332e0361.entry.js} +2 -2
  487. package/{www/build/p-4cec3345.entry.js → dist/web-components-library/p-3d02ad75.entry.js} +2 -2
  488. package/dist/web-components-library/{p-240de9aa.entry.js → p-3f66654f.entry.js} +2 -2
  489. package/{www/build/p-8c164e0d.entry.js → dist/web-components-library/p-41891d34.entry.js} +2 -2
  490. package/{www/build/p-19f5b6a9.entry.js → dist/web-components-library/p-47b7bc63.entry.js} +2 -2
  491. package/dist/web-components-library/{p-ceeb3e2a.entry.js → p-4df66afe.entry.js} +2 -2
  492. package/{www/build/p-748fa3ae.js → dist/web-components-library/p-54cd104c.js} +2 -2
  493. package/dist/web-components-library/p-577c224d.entry.js +2 -0
  494. package/dist/web-components-library/p-577c224d.entry.js.map +1 -0
  495. package/dist/web-components-library/{p-01f941c2.entry.js → p-57dcff49.entry.js} +2 -2
  496. package/{www/build/p-2aeffcf9.entry.js → dist/web-components-library/p-5838b77c.entry.js} +2 -2
  497. package/dist/web-components-library/{p-4551b0df.entry.js → p-5cdd431e.entry.js} +2 -2
  498. package/dist/web-components-library/{p-f19f12b1.js → p-5f1e17cb.js} +2 -2
  499. package/{www/build/p-c778bf87.entry.js → dist/web-components-library/p-5fda8769.entry.js} +3 -3
  500. package/dist/web-components-library/{p-4affbb99.entry.js → p-661bce1c.entry.js} +2 -2
  501. package/dist/web-components-library/{p-ee695830.entry.js → p-66c0f993.entry.js} +2 -2
  502. package/dist/web-components-library/p-6c3d141b.entry.js +2 -0
  503. package/{www/build/p-b7b972c0.entry.js → dist/web-components-library/p-6d61933f.entry.js} +2 -2
  504. package/dist/web-components-library/{p-44459393.entry.js → p-6ef58a14.entry.js} +2 -2
  505. package/dist/web-components-library/{p-a905df88.entry.js → p-71f62226.entry.js} +2 -2
  506. package/dist/web-components-library/p-76003048.entry.js +2 -0
  507. package/dist/web-components-library/p-76003048.entry.js.map +1 -0
  508. package/dist/web-components-library/{p-d7f12672.js → p-80285500.js} +2 -2
  509. package/dist/web-components-library/p-80ddecaf.entry.js +2 -0
  510. package/dist/web-components-library/p-83a26e88.entry.js +2 -0
  511. package/{www/build/p-99210133.entry.js.map → dist/web-components-library/p-83a26e88.entry.js.map} +1 -1
  512. package/dist/web-components-library/p-8503c87a.entry.js +2 -0
  513. package/dist/web-components-library/p-8503c87a.entry.js.map +1 -0
  514. package/dist/web-components-library/p-86618221.js +2 -0
  515. package/dist/web-components-library/p-86618221.js.map +1 -0
  516. package/{www/build/p-b96900bb.entry.js → dist/web-components-library/p-87edcc75.entry.js} +2 -2
  517. package/dist/web-components-library/{p-757415e9.entry.js → p-88a9865c.entry.js} +2 -2
  518. package/dist/web-components-library/p-8aaceeed.entry.js +2 -0
  519. package/dist/web-components-library/p-8aaceeed.entry.js.map +1 -0
  520. package/dist/web-components-library/{p-d6a7b7f3.entry.js → p-8b562dca.entry.js} +2 -2
  521. package/dist/web-components-library/p-901518b8.entry.js +2 -0
  522. package/dist/web-components-library/{p-2f948bac.entry.js → p-90690d4d.entry.js} +2 -2
  523. package/dist/web-components-library/{p-0a49dd1c.entry.js → p-90babaaa.entry.js} +2 -2
  524. package/{www/build/p-0a49dd1c.entry.js.map → dist/web-components-library/p-90babaaa.entry.js.map} +1 -1
  525. package/dist/web-components-library/p-9af837bb.entry.js +2 -0
  526. package/dist/web-components-library/{p-04f80811.entry.js → p-9eba4a37.entry.js} +2 -2
  527. package/dist/web-components-library/p-a32ebcc3.entry.js +2 -0
  528. package/dist/web-components-library/{p-3f5aa623.entry.js → p-a3f9a5da.entry.js} +2 -2
  529. package/dist/web-components-library/p-a3f9a5da.entry.js.map +1 -0
  530. package/{www/build/p-1844a4f4.entry.js → dist/web-components-library/p-b0324c7d.entry.js} +2 -2
  531. package/dist/web-components-library/p-b06af2fc.js +2 -0
  532. package/{www/build/p-817689d5.entry.js → dist/web-components-library/p-b1f2388a.entry.js} +3 -3
  533. package/dist/web-components-library/{p-342b0eb0.entry.js → p-b421424f.entry.js} +2 -2
  534. package/dist/web-components-library/{p-fb232d07.entry.js → p-b4b264b1.entry.js} +2 -2
  535. package/dist/web-components-library/{p-1c7550f9.entry.js → p-b70ff542.entry.js} +2 -2
  536. package/{www/build/p-b63c8e8b.entry.js → dist/web-components-library/p-b854cc3d.entry.js} +2 -2
  537. package/dist/web-components-library/{p-e9e2ceb4.entry.js → p-bc15e1dc.entry.js} +2 -2
  538. package/dist/web-components-library/{p-4a257653.entry.js → p-c03767a4.entry.js} +2 -2
  539. package/dist/web-components-library/{p-2bdac94e.entry.js → p-c0b4f29d.entry.js} +2 -2
  540. package/dist/web-components-library/{p-7a4f6a5b.entry.js → p-c57bb632.entry.js} +2 -2
  541. package/dist/web-components-library/p-c5e032de.entry.js +2 -0
  542. package/dist/web-components-library/p-c5e032de.entry.js.map +1 -0
  543. package/{www/build/p-34975328.entry.js → dist/web-components-library/p-c645dc11.entry.js} +2 -2
  544. package/dist/web-components-library/p-c93c6135.entry.js +2 -0
  545. package/dist/web-components-library/{p-deb7f8d7.entry.js.map → p-c93c6135.entry.js.map} +1 -1
  546. package/dist/web-components-library/{p-30e42fb1.js → p-cb395500.js} +2 -2
  547. package/dist/web-components-library/{p-5989465b.entry.js → p-cc87d814.entry.js} +2 -2
  548. package/{www/build/p-e3b82454.entry.js → dist/web-components-library/p-d1fe7960.entry.js} +2 -2
  549. package/dist/web-components-library/{p-5159edb1.entry.js → p-d5ebbfdf.entry.js} +2 -2
  550. package/dist/web-components-library/p-d65aeb54.entry.js +2 -0
  551. package/dist/web-components-library/{p-e0b88075.entry.js → p-dba260f2.entry.js} +2 -2
  552. package/dist/web-components-library/{p-943db3a8.entry.js → p-ddae9016.entry.js} +2 -2
  553. package/dist/web-components-library/p-de313d96.entry.js +2 -0
  554. package/dist/web-components-library/{p-375f8542.entry.js → p-e38a5dd2.entry.js} +2 -2
  555. package/dist/web-components-library/p-eb15536d.js +2 -0
  556. package/dist/web-components-library/p-eb15536d.js.map +1 -0
  557. package/{www/build/p-f4bac89b.entry.js → dist/web-components-library/p-eb9161bc.entry.js} +2 -2
  558. package/dist/web-components-library/p-ec2a0b31.js +2 -0
  559. package/{www/build/p-030257b3.js.map → dist/web-components-library/p-ec2a0b31.js.map} +1 -1
  560. package/dist/web-components-library/p-f0022852.entry.js +2 -0
  561. package/dist/web-components-library/p-f0022852.entry.js.map +1 -0
  562. package/dist/web-components-library/{p-8687691b.entry.js → p-f0f53bb2.entry.js} +2 -2
  563. package/dist/web-components-library/p-f79010de.js +2 -0
  564. package/dist/web-components-library/p-f8e95a75.entry.js +2 -0
  565. package/dist/web-components-library/p-f8e95a75.entry.js.map +1 -0
  566. package/dist/web-components-library/web-components-library.esm.js +1 -1
  567. package/dist/web-components-library/web-components-library.esm.js.map +1 -1
  568. package/package.json +3 -3
  569. package/react/components.d.ts +1 -0
  570. package/react/components.js +3 -2
  571. package/react/components.js.map +1 -1
  572. package/www/build/index.esm.js +1 -1
  573. package/www/build/index.esm.js.map +1 -1
  574. package/{dist/web-components-library/p-5a24e268.entry.js → www/build/p-03a558ef.entry.js} +2 -2
  575. package/www/build/p-061e28d6.js +2 -0
  576. package/www/build/p-061e28d6.js.map +1 -0
  577. package/www/build/p-0989655c.entry.js +2 -0
  578. package/www/build/p-0989655c.entry.js.map +1 -0
  579. package/www/build/p-102f6e37.entry.js +2 -0
  580. package/www/build/p-102f6e37.entry.js.map +1 -0
  581. package/www/build/{p-d9c9de15.entry.js → p-15951fc6.entry.js} +2 -2
  582. package/www/build/p-17e2fed2.entry.js +2 -0
  583. package/www/build/{p-b7ec2cc4.entry.js → p-19172b2c.entry.js} +2 -2
  584. package/{dist/web-components-library/p-94916bdf.entry.js → www/build/p-1939116a.entry.js} +2 -2
  585. package/www/build/{p-b71a3f69.entry.js → p-1e0d85d5.entry.js} +2 -2
  586. package/www/build/{p-bdbcf353.entry.js → p-215b1fa5.entry.js} +2 -2
  587. package/www/build/p-22b683a3.entry.js +2 -0
  588. package/www/build/p-22b683a3.entry.js.map +1 -0
  589. package/www/build/p-2a04c00e.entry.js +2 -0
  590. package/www/build/{p-816fd6dc.entry.js.map → p-2a04c00e.entry.js.map} +1 -1
  591. package/{dist/web-components-library/p-1fd1cf02.entry.js → www/build/p-2bba665d.entry.js} +2 -2
  592. package/www/build/{p-5a1f98a2.entry.js → p-2f45f1ff.entry.js} +2 -2
  593. package/www/build/{p-86160fe3.entry.js → p-332e0361.entry.js} +2 -2
  594. package/{dist/web-components-library/p-4cec3345.entry.js → www/build/p-3d02ad75.entry.js} +2 -2
  595. package/www/build/{p-240de9aa.entry.js → p-3f66654f.entry.js} +2 -2
  596. package/{dist/web-components-library/p-8c164e0d.entry.js → www/build/p-41891d34.entry.js} +2 -2
  597. package/{dist/web-components-library/p-19f5b6a9.entry.js → www/build/p-47b7bc63.entry.js} +2 -2
  598. package/www/build/{p-ceeb3e2a.entry.js → p-4df66afe.entry.js} +2 -2
  599. package/{dist/web-components-library/p-748fa3ae.js → www/build/p-54cd104c.js} +2 -2
  600. package/www/build/p-577c224d.entry.js +2 -0
  601. package/www/build/p-577c224d.entry.js.map +1 -0
  602. package/www/build/{p-01f941c2.entry.js → p-57dcff49.entry.js} +2 -2
  603. package/{dist/web-components-library/p-2aeffcf9.entry.js → www/build/p-5838b77c.entry.js} +2 -2
  604. package/www/build/{p-4551b0df.entry.js → p-5cdd431e.entry.js} +2 -2
  605. package/www/build/{p-f19f12b1.js → p-5f1e17cb.js} +2 -2
  606. package/{dist/web-components-library/p-c778bf87.entry.js → www/build/p-5fda8769.entry.js} +3 -3
  607. package/www/build/{p-4affbb99.entry.js → p-661bce1c.entry.js} +2 -2
  608. package/www/build/{p-ee695830.entry.js → p-66c0f993.entry.js} +2 -2
  609. package/www/build/p-6c3d141b.entry.js +2 -0
  610. package/{dist/web-components-library/p-b7b972c0.entry.js → www/build/p-6d61933f.entry.js} +2 -2
  611. package/www/build/{p-44459393.entry.js → p-6ef58a14.entry.js} +2 -2
  612. package/www/build/{p-a905df88.entry.js → p-71f62226.entry.js} +2 -2
  613. package/www/build/p-76003048.entry.js +2 -0
  614. package/www/build/p-76003048.entry.js.map +1 -0
  615. package/www/build/{p-d7f12672.js → p-80285500.js} +2 -2
  616. package/www/build/p-80ddecaf.entry.js +2 -0
  617. package/www/build/p-83a26e88.entry.js +2 -0
  618. package/{dist/web-components-library/p-99210133.entry.js.map → www/build/p-83a26e88.entry.js.map} +1 -1
  619. package/www/build/p-8503c87a.entry.js +2 -0
  620. package/www/build/p-8503c87a.entry.js.map +1 -0
  621. package/www/build/p-86618221.js +2 -0
  622. package/www/build/p-86618221.js.map +1 -0
  623. package/{dist/web-components-library/p-b96900bb.entry.js → www/build/p-87edcc75.entry.js} +2 -2
  624. package/www/build/{p-757415e9.entry.js → p-88a9865c.entry.js} +2 -2
  625. package/www/build/p-8a9e2264.js +2 -0
  626. package/www/build/p-8aaceeed.entry.js +2 -0
  627. package/www/build/p-8aaceeed.entry.js.map +1 -0
  628. package/www/build/{p-d6a7b7f3.entry.js → p-8b562dca.entry.js} +2 -2
  629. package/www/build/p-901518b8.entry.js +2 -0
  630. package/www/build/{p-2f948bac.entry.js → p-90690d4d.entry.js} +2 -2
  631. package/www/build/{p-0a49dd1c.entry.js → p-90babaaa.entry.js} +2 -2
  632. package/{dist/web-components-library/p-0a49dd1c.entry.js.map → www/build/p-90babaaa.entry.js.map} +1 -1
  633. package/www/build/p-9af837bb.entry.js +2 -0
  634. package/www/build/{p-04f80811.entry.js → p-9eba4a37.entry.js} +2 -2
  635. package/www/build/p-a32ebcc3.entry.js +2 -0
  636. package/www/build/{p-3f5aa623.entry.js → p-a3f9a5da.entry.js} +2 -2
  637. package/www/build/p-a3f9a5da.entry.js.map +1 -0
  638. package/{dist/web-components-library/p-1844a4f4.entry.js → www/build/p-b0324c7d.entry.js} +2 -2
  639. package/www/build/p-b06af2fc.js +2 -0
  640. package/{dist/web-components-library/p-817689d5.entry.js → www/build/p-b1f2388a.entry.js} +3 -3
  641. package/www/build/{p-342b0eb0.entry.js → p-b421424f.entry.js} +2 -2
  642. package/www/build/{p-fb232d07.entry.js → p-b4b264b1.entry.js} +2 -2
  643. package/www/build/{p-1c7550f9.entry.js → p-b70ff542.entry.js} +2 -2
  644. package/{dist/web-components-library/p-b63c8e8b.entry.js → www/build/p-b854cc3d.entry.js} +2 -2
  645. package/www/build/{p-e9e2ceb4.entry.js → p-bc15e1dc.entry.js} +2 -2
  646. package/www/build/{p-4a257653.entry.js → p-c03767a4.entry.js} +2 -2
  647. package/www/build/{p-2bdac94e.entry.js → p-c0b4f29d.entry.js} +2 -2
  648. package/www/build/{p-7a4f6a5b.entry.js → p-c57bb632.entry.js} +2 -2
  649. package/www/build/p-c5e032de.entry.js +2 -0
  650. package/www/build/p-c5e032de.entry.js.map +1 -0
  651. package/{dist/web-components-library/p-34975328.entry.js → www/build/p-c645dc11.entry.js} +2 -2
  652. package/www/build/p-c93c6135.entry.js +2 -0
  653. package/www/build/{p-deb7f8d7.entry.js.map → p-c93c6135.entry.js.map} +1 -1
  654. package/www/build/{p-30e42fb1.js → p-cb395500.js} +2 -2
  655. package/www/build/{p-5989465b.entry.js → p-cc87d814.entry.js} +2 -2
  656. package/{dist/web-components-library/p-e3b82454.entry.js → www/build/p-d1fe7960.entry.js} +2 -2
  657. package/www/build/{p-5159edb1.entry.js → p-d5ebbfdf.entry.js} +2 -2
  658. package/www/build/p-d65aeb54.entry.js +2 -0
  659. package/www/build/{p-e0b88075.entry.js → p-dba260f2.entry.js} +2 -2
  660. package/www/build/{p-943db3a8.entry.js → p-ddae9016.entry.js} +2 -2
  661. package/www/build/p-de313d96.entry.js +2 -0
  662. package/www/build/{p-375f8542.entry.js → p-e38a5dd2.entry.js} +2 -2
  663. package/www/build/p-eb15536d.js +2 -0
  664. package/www/build/p-eb15536d.js.map +1 -0
  665. package/{dist/web-components-library/p-f4bac89b.entry.js → www/build/p-eb9161bc.entry.js} +2 -2
  666. package/www/build/p-ec2a0b31.js +2 -0
  667. package/{dist/web-components-library/p-030257b3.js.map → www/build/p-ec2a0b31.js.map} +1 -1
  668. package/www/build/p-f0022852.entry.js +2 -0
  669. package/www/build/p-f0022852.entry.js.map +1 -0
  670. package/www/build/{p-8687691b.entry.js → p-f0f53bb2.entry.js} +2 -2
  671. package/www/build/p-f79010de.js +2 -0
  672. package/www/build/p-f8e95a75.entry.js +2 -0
  673. package/www/build/p-f8e95a75.entry.js.map +1 -0
  674. package/www/build/web-components-library.esm.js +1 -1
  675. package/www/build/web-components-library.esm.js.map +1 -1
  676. package/www/index.html +1 -1
  677. package/dist/cjs/index-97a4c18d.js.map +0 -1
  678. package/dist/cjs/utils-5148245a.js.map +0 -1
  679. package/dist/esm/index-2a6324f8.js.map +0 -1
  680. package/dist/esm/utils-e66d94c3.js.map +0 -1
  681. package/dist/web-components-library/p-030257b3.js +0 -2
  682. package/dist/web-components-library/p-1170826b.js +0 -2
  683. package/dist/web-components-library/p-17af7fb2.js +0 -2
  684. package/dist/web-components-library/p-17af7fb2.js.map +0 -1
  685. package/dist/web-components-library/p-17e1abca.entry.js +0 -2
  686. package/dist/web-components-library/p-17e1abca.entry.js.map +0 -1
  687. package/dist/web-components-library/p-198b1692.entry.js +0 -2
  688. package/dist/web-components-library/p-22128478.entry.js +0 -2
  689. package/dist/web-components-library/p-22128478.entry.js.map +0 -1
  690. package/dist/web-components-library/p-22ba2a17.entry.js +0 -2
  691. package/dist/web-components-library/p-22ba2a17.entry.js.map +0 -1
  692. package/dist/web-components-library/p-237fcaa9.entry.js +0 -2
  693. package/dist/web-components-library/p-2612e3a2.entry.js +0 -2
  694. package/dist/web-components-library/p-2612e3a2.entry.js.map +0 -1
  695. package/dist/web-components-library/p-334cba5d.entry.js +0 -2
  696. package/dist/web-components-library/p-334cba5d.entry.js.map +0 -1
  697. package/dist/web-components-library/p-3f5aa623.entry.js.map +0 -1
  698. package/dist/web-components-library/p-4c9bf42d.js +0 -2
  699. package/dist/web-components-library/p-60e3fa30.entry.js +0 -2
  700. package/dist/web-components-library/p-6cffbabc.entry.js +0 -2
  701. package/dist/web-components-library/p-6cffbabc.entry.js.map +0 -1
  702. package/dist/web-components-library/p-816fd6dc.entry.js +0 -2
  703. package/dist/web-components-library/p-99210133.entry.js +0 -2
  704. package/dist/web-components-library/p-9e3da0b7.entry.js +0 -2
  705. package/dist/web-components-library/p-bc7fd8af.entry.js +0 -2
  706. package/dist/web-components-library/p-bc7fd8af.entry.js.map +0 -1
  707. package/dist/web-components-library/p-cc18a2b7.entry.js +0 -2
  708. package/dist/web-components-library/p-cc18a2b7.entry.js.map +0 -1
  709. package/dist/web-components-library/p-d2035d26.entry.js +0 -2
  710. package/dist/web-components-library/p-d75f8bbb.entry.js +0 -2
  711. package/dist/web-components-library/p-d90d2698.entry.js +0 -2
  712. package/dist/web-components-library/p-deb7f8d7.entry.js +0 -2
  713. package/dist/web-components-library/p-e5407cc1.entry.js +0 -2
  714. package/dist/web-components-library/p-e6778114.js +0 -2
  715. package/dist/web-components-library/p-e6778114.js.map +0 -1
  716. package/dist/web-components-library/p-f5dfd04d.entry.js +0 -2
  717. package/dist/web-components-library/p-f5dfd04d.entry.js.map +0 -1
  718. package/www/build/p-030257b3.js +0 -2
  719. package/www/build/p-0aba9c42.js +0 -2
  720. package/www/build/p-1170826b.js +0 -2
  721. package/www/build/p-17af7fb2.js +0 -2
  722. package/www/build/p-17af7fb2.js.map +0 -1
  723. package/www/build/p-17e1abca.entry.js +0 -2
  724. package/www/build/p-17e1abca.entry.js.map +0 -1
  725. package/www/build/p-198b1692.entry.js +0 -2
  726. package/www/build/p-22128478.entry.js +0 -2
  727. package/www/build/p-22128478.entry.js.map +0 -1
  728. package/www/build/p-22ba2a17.entry.js +0 -2
  729. package/www/build/p-22ba2a17.entry.js.map +0 -1
  730. package/www/build/p-237fcaa9.entry.js +0 -2
  731. package/www/build/p-2612e3a2.entry.js +0 -2
  732. package/www/build/p-2612e3a2.entry.js.map +0 -1
  733. package/www/build/p-334cba5d.entry.js +0 -2
  734. package/www/build/p-334cba5d.entry.js.map +0 -1
  735. package/www/build/p-3f5aa623.entry.js.map +0 -1
  736. package/www/build/p-4c9bf42d.js +0 -2
  737. package/www/build/p-60e3fa30.entry.js +0 -2
  738. package/www/build/p-6cffbabc.entry.js +0 -2
  739. package/www/build/p-6cffbabc.entry.js.map +0 -1
  740. package/www/build/p-816fd6dc.entry.js +0 -2
  741. package/www/build/p-99210133.entry.js +0 -2
  742. package/www/build/p-9e3da0b7.entry.js +0 -2
  743. package/www/build/p-bc7fd8af.entry.js +0 -2
  744. package/www/build/p-bc7fd8af.entry.js.map +0 -1
  745. package/www/build/p-cc18a2b7.entry.js +0 -2
  746. package/www/build/p-cc18a2b7.entry.js.map +0 -1
  747. package/www/build/p-d2035d26.entry.js +0 -2
  748. package/www/build/p-d75f8bbb.entry.js +0 -2
  749. package/www/build/p-d90d2698.entry.js +0 -2
  750. package/www/build/p-deb7f8d7.entry.js +0 -2
  751. package/www/build/p-e5407cc1.entry.js +0 -2
  752. package/www/build/p-e6778114.js +0 -2
  753. package/www/build/p-e6778114.js.map +0 -1
  754. package/www/build/p-f5dfd04d.entry.js +0 -2
  755. package/www/build/p-f5dfd04d.entry.js.map +0 -1
  756. /package/dist/web-components-library/{p-5a24e268.entry.js.map → p-03a558ef.entry.js.map} +0 -0
  757. /package/dist/web-components-library/{p-d9c9de15.entry.js.map → p-15951fc6.entry.js.map} +0 -0
  758. /package/dist/web-components-library/{p-237fcaa9.entry.js.map → p-17e2fed2.entry.js.map} +0 -0
  759. /package/dist/web-components-library/{p-b7ec2cc4.entry.js.map → p-19172b2c.entry.js.map} +0 -0
  760. /package/dist/web-components-library/{p-94916bdf.entry.js.map → p-1939116a.entry.js.map} +0 -0
  761. /package/dist/web-components-library/{p-b71a3f69.entry.js.map → p-1e0d85d5.entry.js.map} +0 -0
  762. /package/dist/web-components-library/{p-bdbcf353.entry.js.map → p-215b1fa5.entry.js.map} +0 -0
  763. /package/dist/web-components-library/{p-1fd1cf02.entry.js.map → p-2bba665d.entry.js.map} +0 -0
  764. /package/dist/web-components-library/{p-5a1f98a2.entry.js.map → p-2f45f1ff.entry.js.map} +0 -0
  765. /package/dist/web-components-library/{p-86160fe3.entry.js.map → p-332e0361.entry.js.map} +0 -0
  766. /package/dist/web-components-library/{p-4cec3345.entry.js.map → p-3d02ad75.entry.js.map} +0 -0
  767. /package/dist/web-components-library/{p-240de9aa.entry.js.map → p-3f66654f.entry.js.map} +0 -0
  768. /package/dist/web-components-library/{p-8c164e0d.entry.js.map → p-41891d34.entry.js.map} +0 -0
  769. /package/dist/web-components-library/{p-19f5b6a9.entry.js.map → p-47b7bc63.entry.js.map} +0 -0
  770. /package/dist/web-components-library/{p-ceeb3e2a.entry.js.map → p-4df66afe.entry.js.map} +0 -0
  771. /package/dist/web-components-library/{p-748fa3ae.js.map → p-54cd104c.js.map} +0 -0
  772. /package/dist/web-components-library/{p-01f941c2.entry.js.map → p-57dcff49.entry.js.map} +0 -0
  773. /package/dist/web-components-library/{p-2aeffcf9.entry.js.map → p-5838b77c.entry.js.map} +0 -0
  774. /package/dist/web-components-library/{p-4551b0df.entry.js.map → p-5cdd431e.entry.js.map} +0 -0
  775. /package/dist/web-components-library/{p-f19f12b1.js.map → p-5f1e17cb.js.map} +0 -0
  776. /package/dist/web-components-library/{p-c778bf87.entry.js.map → p-5fda8769.entry.js.map} +0 -0
  777. /package/dist/web-components-library/{p-4affbb99.entry.js.map → p-661bce1c.entry.js.map} +0 -0
  778. /package/dist/web-components-library/{p-ee695830.entry.js.map → p-66c0f993.entry.js.map} +0 -0
  779. /package/dist/web-components-library/{p-9e3da0b7.entry.js.map → p-6c3d141b.entry.js.map} +0 -0
  780. /package/dist/web-components-library/{p-b7b972c0.entry.js.map → p-6d61933f.entry.js.map} +0 -0
  781. /package/dist/web-components-library/{p-44459393.entry.js.map → p-6ef58a14.entry.js.map} +0 -0
  782. /package/dist/web-components-library/{p-a905df88.entry.js.map → p-71f62226.entry.js.map} +0 -0
  783. /package/dist/web-components-library/{p-d7f12672.js.map → p-80285500.js.map} +0 -0
  784. /package/dist/web-components-library/{p-198b1692.entry.js.map → p-80ddecaf.entry.js.map} +0 -0
  785. /package/dist/web-components-library/{p-b96900bb.entry.js.map → p-87edcc75.entry.js.map} +0 -0
  786. /package/dist/web-components-library/{p-757415e9.entry.js.map → p-88a9865c.entry.js.map} +0 -0
  787. /package/dist/web-components-library/{p-d6a7b7f3.entry.js.map → p-8b562dca.entry.js.map} +0 -0
  788. /package/dist/web-components-library/{p-d2035d26.entry.js.map → p-901518b8.entry.js.map} +0 -0
  789. /package/dist/web-components-library/{p-2f948bac.entry.js.map → p-90690d4d.entry.js.map} +0 -0
  790. /package/dist/web-components-library/{p-d75f8bbb.entry.js.map → p-9af837bb.entry.js.map} +0 -0
  791. /package/dist/web-components-library/{p-04f80811.entry.js.map → p-9eba4a37.entry.js.map} +0 -0
  792. /package/dist/web-components-library/{p-d90d2698.entry.js.map → p-a32ebcc3.entry.js.map} +0 -0
  793. /package/dist/web-components-library/{p-1844a4f4.entry.js.map → p-b0324c7d.entry.js.map} +0 -0
  794. /package/dist/web-components-library/{p-4c9bf42d.js.map → p-b06af2fc.js.map} +0 -0
  795. /package/dist/web-components-library/{p-817689d5.entry.js.map → p-b1f2388a.entry.js.map} +0 -0
  796. /package/dist/web-components-library/{p-342b0eb0.entry.js.map → p-b421424f.entry.js.map} +0 -0
  797. /package/dist/web-components-library/{p-fb232d07.entry.js.map → p-b4b264b1.entry.js.map} +0 -0
  798. /package/dist/web-components-library/{p-1c7550f9.entry.js.map → p-b70ff542.entry.js.map} +0 -0
  799. /package/dist/web-components-library/{p-b63c8e8b.entry.js.map → p-b854cc3d.entry.js.map} +0 -0
  800. /package/dist/web-components-library/{p-e9e2ceb4.entry.js.map → p-bc15e1dc.entry.js.map} +0 -0
  801. /package/dist/web-components-library/{p-4a257653.entry.js.map → p-c03767a4.entry.js.map} +0 -0
  802. /package/dist/web-components-library/{p-2bdac94e.entry.js.map → p-c0b4f29d.entry.js.map} +0 -0
  803. /package/dist/web-components-library/{p-7a4f6a5b.entry.js.map → p-c57bb632.entry.js.map} +0 -0
  804. /package/dist/web-components-library/{p-34975328.entry.js.map → p-c645dc11.entry.js.map} +0 -0
  805. /package/dist/web-components-library/{p-30e42fb1.js.map → p-cb395500.js.map} +0 -0
  806. /package/dist/web-components-library/{p-5989465b.entry.js.map → p-cc87d814.entry.js.map} +0 -0
  807. /package/dist/web-components-library/{p-e3b82454.entry.js.map → p-d1fe7960.entry.js.map} +0 -0
  808. /package/dist/web-components-library/{p-5159edb1.entry.js.map → p-d5ebbfdf.entry.js.map} +0 -0
  809. /package/dist/web-components-library/{p-e5407cc1.entry.js.map → p-d65aeb54.entry.js.map} +0 -0
  810. /package/dist/web-components-library/{p-e0b88075.entry.js.map → p-dba260f2.entry.js.map} +0 -0
  811. /package/dist/web-components-library/{p-943db3a8.entry.js.map → p-ddae9016.entry.js.map} +0 -0
  812. /package/dist/web-components-library/{p-60e3fa30.entry.js.map → p-de313d96.entry.js.map} +0 -0
  813. /package/dist/web-components-library/{p-375f8542.entry.js.map → p-e38a5dd2.entry.js.map} +0 -0
  814. /package/dist/web-components-library/{p-f4bac89b.entry.js.map → p-eb9161bc.entry.js.map} +0 -0
  815. /package/dist/web-components-library/{p-8687691b.entry.js.map → p-f0f53bb2.entry.js.map} +0 -0
  816. /package/dist/web-components-library/{p-1170826b.js.map → p-f79010de.js.map} +0 -0
  817. /package/www/build/{p-5a24e268.entry.js.map → p-03a558ef.entry.js.map} +0 -0
  818. /package/www/build/{p-d9c9de15.entry.js.map → p-15951fc6.entry.js.map} +0 -0
  819. /package/www/build/{p-237fcaa9.entry.js.map → p-17e2fed2.entry.js.map} +0 -0
  820. /package/www/build/{p-b7ec2cc4.entry.js.map → p-19172b2c.entry.js.map} +0 -0
  821. /package/www/build/{p-94916bdf.entry.js.map → p-1939116a.entry.js.map} +0 -0
  822. /package/www/build/{p-b71a3f69.entry.js.map → p-1e0d85d5.entry.js.map} +0 -0
  823. /package/www/build/{p-bdbcf353.entry.js.map → p-215b1fa5.entry.js.map} +0 -0
  824. /package/www/build/{p-1fd1cf02.entry.js.map → p-2bba665d.entry.js.map} +0 -0
  825. /package/www/build/{p-5a1f98a2.entry.js.map → p-2f45f1ff.entry.js.map} +0 -0
  826. /package/www/build/{p-86160fe3.entry.js.map → p-332e0361.entry.js.map} +0 -0
  827. /package/www/build/{p-4cec3345.entry.js.map → p-3d02ad75.entry.js.map} +0 -0
  828. /package/www/build/{p-240de9aa.entry.js.map → p-3f66654f.entry.js.map} +0 -0
  829. /package/www/build/{p-8c164e0d.entry.js.map → p-41891d34.entry.js.map} +0 -0
  830. /package/www/build/{p-19f5b6a9.entry.js.map → p-47b7bc63.entry.js.map} +0 -0
  831. /package/www/build/{p-ceeb3e2a.entry.js.map → p-4df66afe.entry.js.map} +0 -0
  832. /package/www/build/{p-748fa3ae.js.map → p-54cd104c.js.map} +0 -0
  833. /package/www/build/{p-01f941c2.entry.js.map → p-57dcff49.entry.js.map} +0 -0
  834. /package/www/build/{p-2aeffcf9.entry.js.map → p-5838b77c.entry.js.map} +0 -0
  835. /package/www/build/{p-4551b0df.entry.js.map → p-5cdd431e.entry.js.map} +0 -0
  836. /package/www/build/{p-f19f12b1.js.map → p-5f1e17cb.js.map} +0 -0
  837. /package/www/build/{p-c778bf87.entry.js.map → p-5fda8769.entry.js.map} +0 -0
  838. /package/www/build/{p-4affbb99.entry.js.map → p-661bce1c.entry.js.map} +0 -0
  839. /package/www/build/{p-ee695830.entry.js.map → p-66c0f993.entry.js.map} +0 -0
  840. /package/www/build/{p-9e3da0b7.entry.js.map → p-6c3d141b.entry.js.map} +0 -0
  841. /package/www/build/{p-b7b972c0.entry.js.map → p-6d61933f.entry.js.map} +0 -0
  842. /package/www/build/{p-44459393.entry.js.map → p-6ef58a14.entry.js.map} +0 -0
  843. /package/www/build/{p-a905df88.entry.js.map → p-71f62226.entry.js.map} +0 -0
  844. /package/www/build/{p-d7f12672.js.map → p-80285500.js.map} +0 -0
  845. /package/www/build/{p-198b1692.entry.js.map → p-80ddecaf.entry.js.map} +0 -0
  846. /package/www/build/{p-b96900bb.entry.js.map → p-87edcc75.entry.js.map} +0 -0
  847. /package/www/build/{p-757415e9.entry.js.map → p-88a9865c.entry.js.map} +0 -0
  848. /package/www/build/{p-d6a7b7f3.entry.js.map → p-8b562dca.entry.js.map} +0 -0
  849. /package/www/build/{p-d2035d26.entry.js.map → p-901518b8.entry.js.map} +0 -0
  850. /package/www/build/{p-2f948bac.entry.js.map → p-90690d4d.entry.js.map} +0 -0
  851. /package/www/build/{p-d75f8bbb.entry.js.map → p-9af837bb.entry.js.map} +0 -0
  852. /package/www/build/{p-04f80811.entry.js.map → p-9eba4a37.entry.js.map} +0 -0
  853. /package/www/build/{p-d90d2698.entry.js.map → p-a32ebcc3.entry.js.map} +0 -0
  854. /package/www/build/{p-1844a4f4.entry.js.map → p-b0324c7d.entry.js.map} +0 -0
  855. /package/www/build/{p-4c9bf42d.js.map → p-b06af2fc.js.map} +0 -0
  856. /package/www/build/{p-817689d5.entry.js.map → p-b1f2388a.entry.js.map} +0 -0
  857. /package/www/build/{p-342b0eb0.entry.js.map → p-b421424f.entry.js.map} +0 -0
  858. /package/www/build/{p-fb232d07.entry.js.map → p-b4b264b1.entry.js.map} +0 -0
  859. /package/www/build/{p-1c7550f9.entry.js.map → p-b70ff542.entry.js.map} +0 -0
  860. /package/www/build/{p-b63c8e8b.entry.js.map → p-b854cc3d.entry.js.map} +0 -0
  861. /package/www/build/{p-e9e2ceb4.entry.js.map → p-bc15e1dc.entry.js.map} +0 -0
  862. /package/www/build/{p-4a257653.entry.js.map → p-c03767a4.entry.js.map} +0 -0
  863. /package/www/build/{p-2bdac94e.entry.js.map → p-c0b4f29d.entry.js.map} +0 -0
  864. /package/www/build/{p-7a4f6a5b.entry.js.map → p-c57bb632.entry.js.map} +0 -0
  865. /package/www/build/{p-34975328.entry.js.map → p-c645dc11.entry.js.map} +0 -0
  866. /package/www/build/{p-30e42fb1.js.map → p-cb395500.js.map} +0 -0
  867. /package/www/build/{p-5989465b.entry.js.map → p-cc87d814.entry.js.map} +0 -0
  868. /package/www/build/{p-e3b82454.entry.js.map → p-d1fe7960.entry.js.map} +0 -0
  869. /package/www/build/{p-5159edb1.entry.js.map → p-d5ebbfdf.entry.js.map} +0 -0
  870. /package/www/build/{p-e5407cc1.entry.js.map → p-d65aeb54.entry.js.map} +0 -0
  871. /package/www/build/{p-e0b88075.entry.js.map → p-dba260f2.entry.js.map} +0 -0
  872. /package/www/build/{p-943db3a8.entry.js.map → p-ddae9016.entry.js.map} +0 -0
  873. /package/www/build/{p-60e3fa30.entry.js.map → p-de313d96.entry.js.map} +0 -0
  874. /package/www/build/{p-375f8542.entry.js.map → p-e38a5dd2.entry.js.map} +0 -0
  875. /package/www/build/{p-f4bac89b.entry.js.map → p-eb9161bc.entry.js.map} +0 -0
  876. /package/www/build/{p-8687691b.entry.js.map → p-f0f53bb2.entry.js.map} +0 -0
  877. /package/www/build/{p-1170826b.js.map → p-f79010de.js.map} +0 -0
@@ -0,0 +1,208 @@
1
+ import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-c8ceadeb.js';
2
+ import { a0 as ColorPickerPalette } from './index-106473a8.js';
3
+ import { a as containsElement } from './utils-8d6ca808.js';
4
+ import './breakpoints-d148bfde.js';
5
+
6
+ const stylesCss = ":host{display:grid;width:fit-content;padding:calc(var(--space-unit) * 2);background:var(--color-surface01);gap:var(--space-unit);grid-template-columns:repeat(9, calc(var(--space-unit) * 3));grid-template-rows:repeat(5, calc(var(--space-unit) * 3))}:host,*{box-sizing:border-box}button{--border-color:var(--color-surface05);padding:0;border:none;appearance:none;background:none;border-radius:var(--border-radius);cursor:pointer}button[data-color=\"#FFFFFF00\"]{position:relative}button[data-color=\"#FFFFFF00\"]::after{position:absolute;top:0;right:0;width:100%;height:100%;background:linear-gradient(\n -45deg,\n transparent 48%,\n var(--border-color) 48%,\n var(--border-color) 52%,\n transparent 52%\n );border-radius:var(--border-radius);content:\"\"}button[aria-selected=\"true\"]{box-shadow:0 0 0 1px var(--color-white),\n 0 0 0 3px var(--color-active-primary)}button:focus-visible{box-shadow:var(--shadow-focus-primary)}button .color-swatch{width:calc(var(--space-unit) * 3);height:calc(var(--space-unit) * 3);border:var(--border-size-small) solid var(--border-color);border-radius:var(--border-radius)}button[data-color=\"#FFFFFF00\"]:disabled{--border-color:var(--color-disabled01-icon);cursor:not-allowed}button[data-color=\"#FFFFFF00\"]:disabled .color-swatch{background-color:var(--color-disabled02)}";
7
+ const ZColorPickerStyle0 = stylesCss;
8
+
9
+ const LOCALES = {
10
+ it: {
11
+ "Select a color": "Seleziona un colore",
12
+ "Color swatch": "Campione di colore",
13
+ },
14
+ en: {
15
+ "Select a color": "Select a color",
16
+ "Color swatch": "Color swatch",
17
+ },
18
+ };
19
+ /** Number of colors in each group (column) of the grid. */
20
+ const COLOR_GROUP_SIZE = 5;
21
+ /** Number of color groups (columns) in the grid. */
22
+ const COLOR_GROUPS = 9;
23
+ const ZColorPicker = class {
24
+ constructor(hostRef) {
25
+ registerInstance(this, hostRef);
26
+ this.colorSelected = createEvent(this, "colorSelected", 7);
27
+ /**
28
+ * The color keys arranged in row-major order for rendering and navigation.
29
+ */
30
+ this.colorKeysByRow = [];
31
+ this._colorButtons = [];
32
+ this.selectedColor = undefined;
33
+ this.lng = "it";
34
+ this.htmlAriaLabel = undefined;
35
+ this.disableTransparent = false;
36
+ }
37
+ get colorButtons() {
38
+ if (!this._colorButtons.length) {
39
+ this._colorButtons = Array.from(this.host.shadowRoot.querySelectorAll("button"));
40
+ }
41
+ return this._colorButtons;
42
+ }
43
+ /**
44
+ * Reorders color keys from column-major (the format of the `ColorPickerPalette` object) to row-major (visual/navigation order).
45
+ * This ensures button indices in the DOM match their visual position in the grid.
46
+ */
47
+ sortColorKeysByRow() {
48
+ const allKeys = Object.keys(ColorPickerPalette);
49
+ const ordered = [];
50
+ // Iterate through visual positions (row by row, left to right)
51
+ for (let row = 0; row < COLOR_GROUP_SIZE; row++) {
52
+ for (let col = 0; col < COLOR_GROUPS; col++) {
53
+ const columnMajorIndex = col * COLOR_GROUP_SIZE + row;
54
+ if (columnMajorIndex < allKeys.length) {
55
+ ordered.push(allKeys[columnMajorIndex]);
56
+ }
57
+ }
58
+ }
59
+ return ordered;
60
+ }
61
+ /** Move focus to the specified color button by index. */
62
+ moveFocusTo(index) {
63
+ // Reset tabindex of other buttons and set tabindex to 0 on selected button
64
+ this.colorButtons.forEach((btn, i) => (btn.tabIndex = i === index ? 0 : -1));
65
+ this.colorButtons[index].focus();
66
+ }
67
+ validateTransparentSelection() {
68
+ if (this.disableTransparent && this.selectedColor === "#FFFFFF00") {
69
+ this.selectedColor = "#333333"; // Default to dark gray 2 if transparent is disabled and currently selected
70
+ }
71
+ }
72
+ emitColorSelected() {
73
+ this.colorSelected.emit(this.selectedColor);
74
+ }
75
+ /**
76
+ * Focuses the selected or first enabled color button and makes the container non-tabbable.
77
+ */
78
+ async setFocus() {
79
+ // Reset tabindex of all buttons
80
+ this.colorButtons.forEach((btn) => (btn.tabIndex = -1));
81
+ const firstSelectedOrEnabled = this.colorButtons.find((btn) => btn.ariaSelected === "true") || this.colorButtons.find((btn) => !btn.disabled);
82
+ if (!firstSelectedOrEnabled) {
83
+ return;
84
+ }
85
+ firstSelectedOrEnabled.tabIndex = 0;
86
+ setTimeout(() => {
87
+ firstSelectedOrEnabled.focus();
88
+ }, 50);
89
+ // Set container as non-tabbable
90
+ this.host.tabIndex = -1;
91
+ }
92
+ /**
93
+ * Compute next index in row-major grid according to keyboard direction.
94
+ */
95
+ getNextIndexByKey(currentIndex, key, totalColors) {
96
+ const row = Math.floor(currentIndex / COLOR_GROUPS);
97
+ const col = currentIndex % COLOR_GROUPS;
98
+ let newIndex = currentIndex;
99
+ switch (key) {
100
+ case "ArrowRight": {
101
+ const newCol = col + 1;
102
+ const newRow = newCol >= COLOR_GROUPS ? (row + 1) % COLOR_GROUP_SIZE : row;
103
+ newIndex = newRow * COLOR_GROUPS + (newCol % COLOR_GROUPS);
104
+ if (newIndex >= totalColors) {
105
+ newIndex = 0; // Wrap to first item
106
+ }
107
+ break;
108
+ }
109
+ case "ArrowLeft": {
110
+ const newCol = col - 1;
111
+ const newRow = newCol < 0 ? (row - 1 + COLOR_GROUP_SIZE) % COLOR_GROUP_SIZE : row;
112
+ newIndex = newRow * COLOR_GROUPS + ((newCol + COLOR_GROUPS) % COLOR_GROUPS);
113
+ if (newIndex >= totalColors) {
114
+ newIndex = totalColors - 1; // Wrap to last item
115
+ }
116
+ break;
117
+ }
118
+ case "ArrowDown": {
119
+ let newRow = row + 1;
120
+ let newCol = col;
121
+ if (newRow >= COLOR_GROUP_SIZE) {
122
+ // Wrap to first item of next column
123
+ newRow = 0;
124
+ newCol = (col + 1) % COLOR_GROUPS;
125
+ }
126
+ newIndex = newRow * COLOR_GROUPS + newCol;
127
+ if (newIndex >= totalColors) {
128
+ newIndex = 0; // Wrap to first item
129
+ }
130
+ break;
131
+ }
132
+ case "ArrowUp": {
133
+ let newRow = row - 1;
134
+ let newCol = col;
135
+ if (newRow < 0) {
136
+ // Wrap to last item of previous column
137
+ newRow = COLOR_GROUP_SIZE - 1;
138
+ newCol = (col - 1 + COLOR_GROUPS) % COLOR_GROUPS;
139
+ }
140
+ newIndex = newRow * COLOR_GROUPS + newCol;
141
+ if (newIndex >= totalColors) {
142
+ newIndex = totalColors - 1; // Wrap to last item
143
+ }
144
+ break;
145
+ }
146
+ }
147
+ return newIndex;
148
+ }
149
+ /**
150
+ * Handle keyboard navigation within the color picker.
151
+ * Arrow keys move focus in the expected direction, wrapping around edges. The grid is navigated in row-major order.
152
+ */
153
+ handleKeyDown(event) {
154
+ var _a, _b;
155
+ const target = event.composedPath()[0];
156
+ if (!target.dataset.color) {
157
+ return;
158
+ }
159
+ const currentIndex = this.colorButtons.indexOf(target);
160
+ const totalColors = this.colorButtons.length;
161
+ if (currentIndex < 0 || !["ArrowRight", "ArrowLeft", "ArrowDown", "ArrowUp"].includes(event.key)) {
162
+ return;
163
+ }
164
+ let newIndex = currentIndex;
165
+ let attempts = 0;
166
+ do {
167
+ newIndex = this.getNextIndexByKey(newIndex, event.key, totalColors);
168
+ attempts++;
169
+ } while (attempts < totalColors && ((_a = this.colorButtons[newIndex]) === null || _a === void 0 ? void 0 : _a.disabled));
170
+ if (newIndex !== currentIndex &&
171
+ newIndex >= 0 &&
172
+ newIndex < totalColors &&
173
+ !((_b = this.colorButtons[newIndex]) === null || _b === void 0 ? void 0 : _b.disabled)) {
174
+ this.moveFocusTo(newIndex);
175
+ event.preventDefault();
176
+ event.stopPropagation();
177
+ }
178
+ }
179
+ /**
180
+ * When focus leaves the color picker (e.g. user tabs away), reset all buttons to non-tabbable and make the container tabbable again.
181
+ */
182
+ handleBlur(event) {
183
+ const relatedTarget = event.relatedTarget;
184
+ if (!containsElement(this.host, relatedTarget)) {
185
+ this.host.tabIndex = 0;
186
+ this.colorButtons.forEach((btn) => (btn.tabIndex = -1));
187
+ }
188
+ }
189
+ componentWillLoad() {
190
+ this.colorKeysByRow = this.sortColorKeysByRow();
191
+ }
192
+ render() {
193
+ return (h(Host, { key: '4fabea9e988ceec44c05e5885aa4ad0eb0ad5076', role: "listbox", "aria-label": this.htmlAriaLabel || LOCALES[this.lng]["Select a color"], tabIndex: 0 }, this.colorKeysByRow.map((colorKey) => {
194
+ var _a;
195
+ return (h("button", { class: "color-swatch", "data-color": colorKey, role: "option", "aria-selected": ((_a = this.selectedColor) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === colorKey.toUpperCase() ? "true" : "false", tabIndex: -1, onClick: () => (this.selectedColor = colorKey), disabled: this.disableTransparent && colorKey === "#FFFFFF00" }, h("div", { class: "color-swatch", role: "img", "aria-roledescription": LOCALES[this.lng]["Color swatch"], "aria-label": ColorPickerPalette[colorKey][this.lng], title: ColorPickerPalette[colorKey][this.lng], style: { backgroundColor: colorKey } })));
196
+ })));
197
+ }
198
+ get host() { return getElement(this); }
199
+ static get watchers() { return {
200
+ "disableTransparent": ["validateTransparentSelection"],
201
+ "selectedColor": ["validateTransparentSelection", "emitColorSelected"]
202
+ }; }
203
+ };
204
+ ZColorPicker.style = ZColorPickerStyle0;
205
+
206
+ export { ZColorPicker as z_color_picker };
207
+
208
+ //# sourceMappingURL=z-color-picker.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"z-color-picker.entry.js","mappings":";;;;;AAAA,MAAM,SAAS,GAAG,ozCAAozC,CAAC;AACv0C,2BAAe,SAAS;;ACGxB,MAAM,OAAO,GAAG;IACd,EAAE,EAAE;QACF,gBAAgB,EAAE,qBAAqB;QACvC,cAAc,EAAE,oBAAoB;KACrC;IACD,EAAE,EAAE;QACF,gBAAgB,EAAE,gBAAgB;QAClC,cAAc,EAAE,cAAc;KAC/B;CACO,CAAC;AAEX;AACA,MAAM,gBAAgB,GAAG,CAAC,CAAC;AAE3B;AACA,MAAM,YAAY,GAAG,CAAC,CAAC;MAWV,YAAY;;;;;;;QAqCf,mBAAc,GAAyB,EAAE,CAAC;QAE1C,kBAAa,GAAwB,EAAE,CAAC;;mBA1B7B,IAAI;;kCAaF,KAAK;;IAe1B,IAAY,YAAY;QACtB,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,MAAM,EAAE;YAC9B,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAwB,CAAC;SACzG;QAED,OAAO,IAAI,CAAC,aAAa,CAAC;KAC3B;;;;;IAMO,kBAAkB;QACxB,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,kBAAkB,CAAyB,CAAC;QACxE,MAAM,OAAO,GAAyB,EAAE,CAAC;;QAGzC,KAAK,IAAI,GAAG,GAAG,CAAC,EAAE,GAAG,GAAG,gBAAgB,EAAE,GAAG,EAAE,EAAE;YAC/C,KAAK,IAAI,GAAG,GAAG,CAAC,EAAE,GAAG,GAAG,YAAY,EAAE,GAAG,EAAE,EAAE;gBAC3C,MAAM,gBAAgB,GAAG,GAAG,GAAG,gBAAgB,GAAG,GAAG,CAAC;gBACtD,IAAI,gBAAgB,GAAG,OAAO,CAAC,MAAM,EAAE;oBACrC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC;iBACzC;aACF;SACF;QAED,OAAO,OAAO,CAAC;KAChB;;IAGO,WAAW,CAAC,KAAa;;QAE/B,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,CAAC,MAAM,GAAG,CAAC,QAAQ,GAAG,CAAC,KAAK,KAAK,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;QAC7E,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,CAAC;KAClC;IAID,4BAA4B;QAC1B,IAAI,IAAI,CAAC,kBAAkB,IAAI,IAAI,CAAC,aAAa,KAAK,WAAW,EAAE;YACjE,IAAI,CAAC,aAAa,GAAG,SAAS,CAAC;SAChC;KACF;IAGD,iBAAiB;QACf,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;KAC7C;;;;IAOD,MAAM,QAAQ;;QAEZ,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,GAAG,MAAM,GAAG,CAAC,QAAQ,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;QACxD,MAAM,sBAAsB,GAC1B,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,GAAG,KAAK,GAAG,CAAC,YAAY,KAAK,MAAM,CAAC,IAAI,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QACjH,IAAI,CAAC,sBAAsB,EAAE;YAC3B,OAAO;SACR;QAED,sBAAsB,CAAC,QAAQ,GAAG,CAAC,CAAC;QACpC,UAAU,CAAC;YACT,sBAAsB,CAAC,KAAK,EAAE,CAAC;SAChC,EAAE,EAAE,CAAC,CAAC;;QAEP,IAAI,CAAC,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC,CAAC;KACzB;;;;IAKO,iBAAiB,CAAC,YAAoB,EAAE,GAAW,EAAE,WAAmB;QAC9E,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,GAAG,YAAY,CAAC,CAAC;QACpD,MAAM,GAAG,GAAG,YAAY,GAAG,YAAY,CAAC;QACxC,IAAI,QAAQ,GAAG,YAAY,CAAC;QAE5B,QAAQ,GAAG;YACT,KAAK,YAAY,EAAE;gBACjB,MAAM,MAAM,GAAG,GAAG,GAAG,CAAC,CAAC;gBACvB,MAAM,MAAM,GAAG,MAAM,IAAI,YAAY,GAAG,CAAC,GAAG,GAAG,CAAC,IAAI,gBAAgB,GAAG,GAAG,CAAC;gBAC3E,QAAQ,GAAG,MAAM,GAAG,YAAY,IAAI,MAAM,GAAG,YAAY,CAAC,CAAC;gBAC3D,IAAI,QAAQ,IAAI,WAAW,EAAE;oBAC3B,QAAQ,GAAG,CAAC,CAAC;iBACd;gBAED,MAAM;aACP;YACD,KAAK,WAAW,EAAE;gBAChB,MAAM,MAAM,GAAG,GAAG,GAAG,CAAC,CAAC;gBACvB,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,GAAG,gBAAgB,IAAI,gBAAgB,GAAG,GAAG,CAAC;gBAClF,QAAQ,GAAG,MAAM,GAAG,YAAY,IAAI,CAAC,MAAM,GAAG,YAAY,IAAI,YAAY,CAAC,CAAC;gBAC5E,IAAI,QAAQ,IAAI,WAAW,EAAE;oBAC3B,QAAQ,GAAG,WAAW,GAAG,CAAC,CAAC;iBAC5B;gBAED,MAAM;aACP;YACD,KAAK,WAAW,EAAE;gBAChB,IAAI,MAAM,GAAG,GAAG,GAAG,CAAC,CAAC;gBACrB,IAAI,MAAM,GAAG,GAAG,CAAC;gBACjB,IAAI,MAAM,IAAI,gBAAgB,EAAE;;oBAE9B,MAAM,GAAG,CAAC,CAAC;oBACX,MAAM,GAAG,CAAC,GAAG,GAAG,CAAC,IAAI,YAAY,CAAC;iBACnC;gBACD,QAAQ,GAAG,MAAM,GAAG,YAAY,GAAG,MAAM,CAAC;gBAC1C,IAAI,QAAQ,IAAI,WAAW,EAAE;oBAC3B,QAAQ,GAAG,CAAC,CAAC;iBACd;gBAED,MAAM;aACP;YACD,KAAK,SAAS,EAAE;gBACd,IAAI,MAAM,GAAG,GAAG,GAAG,CAAC,CAAC;gBACrB,IAAI,MAAM,GAAG,GAAG,CAAC;gBACjB,IAAI,MAAM,GAAG,CAAC,EAAE;;oBAEd,MAAM,GAAG,gBAAgB,GAAG,CAAC,CAAC;oBAC9B,MAAM,GAAG,CAAC,GAAG,GAAG,CAAC,GAAG,YAAY,IAAI,YAAY,CAAC;iBAClD;gBACD,QAAQ,GAAG,MAAM,GAAG,YAAY,GAAG,MAAM,CAAC;gBAC1C,IAAI,QAAQ,IAAI,WAAW,EAAE;oBAC3B,QAAQ,GAAG,WAAW,GAAG,CAAC,CAAC;iBAC5B;gBAED,MAAM;aACP;SACF;QAED,OAAO,QAAQ,CAAC;KACjB;;;;;IAOD,aAAa,CAAC,KAAoB;;QAChC,MAAM,MAAM,GAAG,KAAK,CAAC,YAAY,EAAE,CAAC,CAAC,CAAgB,CAAC;QACtD,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE;YACzB,OAAO;SACR;QAED,MAAM,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,MAA2B,CAAC,CAAC;QAC5E,MAAM,WAAW,GAAG,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC;QAC7C,IAAI,YAAY,GAAG,CAAC,IAAI,CAAC,CAAC,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,SAAS,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE;YAChG,OAAO;SACR;QAED,IAAI,QAAQ,GAAG,YAAY,CAAC;QAC5B,IAAI,QAAQ,GAAG,CAAC,CAAC;QAEjB,GAAG;YACD,QAAQ,GAAG,IAAI,CAAC,iBAAiB,CAAC,QAAQ,EAAE,KAAK,CAAC,GAAG,EAAE,WAAW,CAAC,CAAC;YACpE,QAAQ,EAAE,CAAC;SACZ,QAAQ,QAAQ,GAAG,WAAW,KAAI,MAAA,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,0CAAE,QAAQ,CAAA,EAAE;QAE1E,IACE,QAAQ,KAAK,YAAY;YACzB,QAAQ,IAAI,CAAC;YACb,QAAQ,GAAG,WAAW;YACtB,EAAC,MAAA,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,0CAAE,QAAQ,CAAA,EACtC;YACA,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;YAC3B,KAAK,CAAC,cAAc,EAAE,CAAC;YACvB,KAAK,CAAC,eAAe,EAAE,CAAC;SACzB;KACF;;;;IAMD,UAAU,CAAC,KAAiB;QAC1B,MAAM,aAAa,GAAG,KAAK,CAAC,aAA4B,CAAC;QACzD,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,aAAa,CAAC,EAAE;YAC9C,IAAI,CAAC,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC;YACvB,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,GAAG,MAAM,GAAG,CAAC,QAAQ,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;SACzD;KACF;IAED,iBAAiB;QACf,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,kBAAkB,EAAE,CAAC;KACjD;IAED,MAAM;QACJ,QACE,EAAC,IAAI,qDACH,IAAI,EAAC,SAAS,gBACF,IAAI,CAAC,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,gBAAgB,CAAC,EACrE,QAAQ,EAAE,CAAC,IAEV,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,QAA4B;;YAAK,QACzD,cACE,KAAK,EAAC,cAAc,gBACR,QAAQ,EACpB,IAAI,EAAC,QAAQ,mBACE,CAAA,MAAA,IAAI,CAAC,aAAa,0CAAE,WAAW,EAAE,MAAK,QAAQ,CAAC,WAAW,EAAE,GAAG,MAAM,GAAG,OAAO,EAC9F,QAAQ,EAAE,CAAC,CAAC,EACZ,OAAO,EAAE,OAAO,IAAI,CAAC,aAAa,GAAG,QAAQ,CAAC,EAC9C,QAAQ,EAAE,IAAI,CAAC,kBAAkB,IAAI,QAAQ,KAAK,WAAW,IAE7D,WACE,KAAK,EAAC,cAAc,EACpB,IAAI,EAAC,KAAK,0BACY,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,cAAc,CAAC,gBAC3C,kBAAkB,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAClD,KAAK,EAAE,kBAAkB,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAC7C,KAAK,EAAE,EAAC,eAAe,EAAE,QAAQ,EAAC,GAC7B,CACA,EACV;SAAA,CAAC,CACG,EACP;KACH;;;;;;;;;;;","names":[],"sources":["src/components/z-color-picker/styles.css?tag=z-color-picker&encapsulation=shadow","src/components/z-color-picker/index.tsx"],"sourcesContent":[":host {\n display: grid;\n width: fit-content;\n padding: calc(var(--space-unit) * 2);\n background: var(--color-surface01);\n gap: var(--space-unit);\n grid-template-columns: repeat(9, calc(var(--space-unit) * 3));\n grid-template-rows: repeat(5, calc(var(--space-unit) * 3));\n}\n\n:host,\n* {\n box-sizing: border-box;\n}\n\nbutton {\n --border-color: var(--color-surface05);\n\n padding: 0;\n border: none;\n appearance: none;\n background: none;\n border-radius: var(--border-radius);\n cursor: pointer;\n}\n\nbutton[data-color=\"#FFFFFF00\"] {\n position: relative;\n}\n\n/* draw a diagonal line from top right corner */\nbutton[data-color=\"#FFFFFF00\"]::after {\n position: absolute;\n top: 0;\n right: 0;\n width: 100%;\n height: 100%;\n background: linear-gradient(\n -45deg,\n transparent 48%,\n var(--border-color) 48%,\n var(--border-color) 52%,\n transparent 52%\n );\n border-radius: var(--border-radius);\n content: \"\";\n}\n\nbutton[aria-selected=\"true\"] {\n box-shadow:\n 0 0 0 1px var(--color-white),\n 0 0 0 3px var(--color-active-primary);\n}\n\nbutton:focus-visible {\n box-shadow: var(--shadow-focus-primary);\n}\n\nbutton .color-swatch {\n width: calc(var(--space-unit) * 3);\n height: calc(var(--space-unit) * 3);\n border: var(--border-size-small) solid var(--border-color);\n border-radius: var(--border-radius);\n}\n\nbutton[data-color=\"#FFFFFF00\"]:disabled {\n --border-color: var(--color-disabled01-icon);\n\n cursor: not-allowed;\n}\n\nbutton[data-color=\"#FFFFFF00\"]:disabled .color-swatch {\n background-color: var(--color-disabled02);\n}\n","import {Component, Element, Event, EventEmitter, Host, Listen, Method, Prop, Watch, h} from \"@stencil/core\";\nimport {ColorPickerPalette} from \"../../beans\";\nimport {containsElement} from \"../../utils/utils\";\n\nconst LOCALES = {\n it: {\n \"Select a color\": \"Seleziona un colore\",\n \"Color swatch\": \"Campione di colore\",\n },\n en: {\n \"Select a color\": \"Select a color\",\n \"Color swatch\": \"Color swatch\",\n },\n} as const;\n\n/** Number of colors in each group (column) of the grid. */\nconst COLOR_GROUP_SIZE = 5;\n\n/** Number of color groups (columns) in the grid. */\nconst COLOR_GROUPS = 9;\n\n/**\n * Color picker component.\n * This component allows the user to pick a color from a predefined set.\n */\n@Component({\n tag: \"z-color-picker\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZColorPicker {\n @Element() host: HTMLZColorPickerElement;\n\n /**\n * The selected color to highlight.\n */\n @Prop({mutable: true})\n selectedColor: ColorPickerPalette;\n\n /**\n * The language for the aria labels inside the color picker.\n */\n @Prop()\n lng: \"it\" | \"en\" = \"it\";\n\n /**\n * The aria-label for the color picker, e.g. \"Select a background color for the label\".\n */\n @Prop()\n htmlAriaLabel: string;\n\n /**\n * Disables the transparent color option.\n * Setting `selectedColor` prop to `#FFFFFF00` while `disableTransparent` is true will default to `#333333` (\"dark gray 2\").\n */\n @Prop()\n disableTransparent = false;\n\n /**\n * Event emitted when a color is selected.\n */\n @Event()\n colorSelected: EventEmitter<ColorPickerPalette>;\n\n /**\n * The color keys arranged in row-major order for rendering and navigation.\n */\n private colorKeysByRow: ColorPickerPalette[] = [];\n\n private _colorButtons: HTMLButtonElement[] = [];\n\n private get colorButtons(): HTMLButtonElement[] {\n if (!this._colorButtons.length) {\n this._colorButtons = Array.from(this.host.shadowRoot.querySelectorAll(\"button\")) as HTMLButtonElement[];\n }\n\n return this._colorButtons;\n }\n\n /**\n * Reorders color keys from column-major (the format of the `ColorPickerPalette` object) to row-major (visual/navigation order).\n * This ensures button indices in the DOM match their visual position in the grid.\n */\n private sortColorKeysByRow(): ColorPickerPalette[] {\n const allKeys = Object.keys(ColorPickerPalette) as ColorPickerPalette[];\n const ordered: ColorPickerPalette[] = [];\n\n // Iterate through visual positions (row by row, left to right)\n for (let row = 0; row < COLOR_GROUP_SIZE; row++) {\n for (let col = 0; col < COLOR_GROUPS; col++) {\n const columnMajorIndex = col * COLOR_GROUP_SIZE + row;\n if (columnMajorIndex < allKeys.length) {\n ordered.push(allKeys[columnMajorIndex]);\n }\n }\n }\n\n return ordered;\n }\n\n /** Move focus to the specified color button by index. */\n private moveFocusTo(index: number): void {\n // Reset tabindex of other buttons and set tabindex to 0 on selected button\n this.colorButtons.forEach((btn, i) => (btn.tabIndex = i === index ? 0 : -1));\n this.colorButtons[index].focus();\n }\n\n @Watch(\"disableTransparent\")\n @Watch(\"selectedColor\")\n validateTransparentSelection(): void {\n if (this.disableTransparent && this.selectedColor === \"#FFFFFF00\") {\n this.selectedColor = \"#333333\"; // Default to dark gray 2 if transparent is disabled and currently selected\n }\n }\n\n @Watch(\"selectedColor\")\n emitColorSelected(): void {\n this.colorSelected.emit(this.selectedColor);\n }\n\n /**\n * Focuses the selected or first enabled color button and makes the container non-tabbable.\n */\n @Listen(\"focus\")\n @Method()\n async setFocus(): Promise<void> {\n // Reset tabindex of all buttons\n this.colorButtons.forEach((btn) => (btn.tabIndex = -1));\n const firstSelectedOrEnabled =\n this.colorButtons.find((btn) => btn.ariaSelected === \"true\") || this.colorButtons.find((btn) => !btn.disabled);\n if (!firstSelectedOrEnabled) {\n return;\n }\n\n firstSelectedOrEnabled.tabIndex = 0;\n setTimeout(() => {\n firstSelectedOrEnabled.focus();\n }, 50);\n // Set container as non-tabbable\n this.host.tabIndex = -1;\n }\n\n /**\n * Compute next index in row-major grid according to keyboard direction.\n */\n private getNextIndexByKey(currentIndex: number, key: string, totalColors: number): number {\n const row = Math.floor(currentIndex / COLOR_GROUPS);\n const col = currentIndex % COLOR_GROUPS;\n let newIndex = currentIndex;\n\n switch (key) {\n case \"ArrowRight\": {\n const newCol = col + 1;\n const newRow = newCol >= COLOR_GROUPS ? (row + 1) % COLOR_GROUP_SIZE : row;\n newIndex = newRow * COLOR_GROUPS + (newCol % COLOR_GROUPS);\n if (newIndex >= totalColors) {\n newIndex = 0; // Wrap to first item\n }\n\n break;\n }\n case \"ArrowLeft\": {\n const newCol = col - 1;\n const newRow = newCol < 0 ? (row - 1 + COLOR_GROUP_SIZE) % COLOR_GROUP_SIZE : row;\n newIndex = newRow * COLOR_GROUPS + ((newCol + COLOR_GROUPS) % COLOR_GROUPS);\n if (newIndex >= totalColors) {\n newIndex = totalColors - 1; // Wrap to last item\n }\n\n break;\n }\n case \"ArrowDown\": {\n let newRow = row + 1;\n let newCol = col;\n if (newRow >= COLOR_GROUP_SIZE) {\n // Wrap to first item of next column\n newRow = 0;\n newCol = (col + 1) % COLOR_GROUPS;\n }\n newIndex = newRow * COLOR_GROUPS + newCol;\n if (newIndex >= totalColors) {\n newIndex = 0; // Wrap to first item\n }\n\n break;\n }\n case \"ArrowUp\": {\n let newRow = row - 1;\n let newCol = col;\n if (newRow < 0) {\n // Wrap to last item of previous column\n newRow = COLOR_GROUP_SIZE - 1;\n newCol = (col - 1 + COLOR_GROUPS) % COLOR_GROUPS;\n }\n newIndex = newRow * COLOR_GROUPS + newCol;\n if (newIndex >= totalColors) {\n newIndex = totalColors - 1; // Wrap to last item\n }\n\n break;\n }\n }\n\n return newIndex;\n }\n\n /**\n * Handle keyboard navigation within the color picker.\n * Arrow keys move focus in the expected direction, wrapping around edges. The grid is navigated in row-major order.\n */\n @Listen(\"keydown\")\n handleKeyDown(event: KeyboardEvent): void {\n const target = event.composedPath()[0] as HTMLElement;\n if (!target.dataset.color) {\n return;\n }\n\n const currentIndex = this.colorButtons.indexOf(target as HTMLButtonElement);\n const totalColors = this.colorButtons.length;\n if (currentIndex < 0 || ![\"ArrowRight\", \"ArrowLeft\", \"ArrowDown\", \"ArrowUp\"].includes(event.key)) {\n return;\n }\n\n let newIndex = currentIndex;\n let attempts = 0;\n\n do {\n newIndex = this.getNextIndexByKey(newIndex, event.key, totalColors);\n attempts++;\n } while (attempts < totalColors && this.colorButtons[newIndex]?.disabled);\n\n if (\n newIndex !== currentIndex &&\n newIndex >= 0 &&\n newIndex < totalColors &&\n !this.colorButtons[newIndex]?.disabled\n ) {\n this.moveFocusTo(newIndex);\n event.preventDefault();\n event.stopPropagation();\n }\n }\n\n /**\n * When focus leaves the color picker (e.g. user tabs away), reset all buttons to non-tabbable and make the container tabbable again.\n */\n @Listen(\"blur\")\n handleBlur(event: FocusEvent): void {\n const relatedTarget = event.relatedTarget as HTMLElement;\n if (!containsElement(this.host, relatedTarget)) {\n this.host.tabIndex = 0;\n this.colorButtons.forEach((btn) => (btn.tabIndex = -1));\n }\n }\n\n componentWillLoad(): void {\n this.colorKeysByRow = this.sortColorKeysByRow();\n }\n\n render(): HTMLZColorPickerElement {\n return (\n <Host\n role=\"listbox\"\n aria-label={this.htmlAriaLabel || LOCALES[this.lng][\"Select a color\"]}\n tabIndex={0}\n >\n {this.colorKeysByRow.map((colorKey: ColorPickerPalette) => (\n <button\n class=\"color-swatch\"\n data-color={colorKey}\n role=\"option\"\n aria-selected={this.selectedColor?.toUpperCase() === colorKey.toUpperCase() ? \"true\" : \"false\"}\n tabIndex={-1}\n onClick={() => (this.selectedColor = colorKey)}\n disabled={this.disableTransparent && colorKey === \"#FFFFFF00\"}\n >\n <div\n class=\"color-swatch\"\n role=\"img\"\n aria-roledescription={LOCALES[this.lng][\"Color swatch\"]}\n aria-label={ColorPickerPalette[colorKey][this.lng]}\n title={ColorPickerPalette[colorKey][this.lng]}\n style={{backgroundColor: colorKey}}\n ></div>\n </button>\n ))}\n </Host>\n );\n }\n}\n"],"version":3}
@@ -1,9 +1,9 @@
1
1
  import { r as registerInstance, c as createEvent, h, g as getElement } from './index-c8ceadeb.js';
2
- import { I as InputType, e as ControlSize, i as ListSize, g as KeyboardCode, l as ListDividerType } from './index-2a6324f8.js';
3
- import { r as randomId, d as handleKeyboardSubmit } from './utils-e66d94c3.js';
2
+ import { I as InputType, e as ControlSize, i as ListSize, g as KeyboardCode, l as ListDividerType } from './index-106473a8.js';
3
+ import { r as randomId, e as getPlainText } from './utils-8d6ca808.js';
4
4
  import './breakpoints-d148bfde.js';
5
5
 
6
- const stylesCss = ".z-label{display:block;padding-bottom:var(--space-unit);color:var(--color-default-text);font-family:var(--font-family-sans);font-size:var(--font-size-1);font-weight:var(--font-sb);text-align:left;text-transform:uppercase}:host{display:block;color:var(--color-form-default-text);fill:var(--color-form-default-icon);font-family:var(--font-family-sans)}:host>div.fixed{position:relative}:host>div>.header{position:relative;z-index:10;display:flex;min-height:42px;align-items:center;justify-content:space-between;padding:0 calc(var(--space-unit) * 1.5);border:var(--border-size-small) solid var(--color-form-surface04);margin:0;background-color:var(--color-form-background);border-radius:var(--border-radius-small);cursor:pointer}:host([size=\"small\"])>div>.header{min-height:34px;font-size:var(--font-size-2)}:host([size=\"x-small\"])>div>.header{min-height:30px;font-size:var(--font-size-2)}:host>div>.header:hover{outline:var(--border-size-medium) solid var(--color-form-surface04);outline-offset:-2px}:host>div>div.header:focus:focus-visible{z-index:16;box-shadow:var(--shadow-focus-primary);outline:none}:host>div>.header>span.body-3>span{font-weight:var(--font-sb)}:host>div>.header>z-icon{fill:var(--color-form-default-icon);transform:rotate(360deg);transition:all 200ms linear}:host>div>.header>z-icon.small,:host>div>.header>z-icon.x-small{--z-icon-width:16px;--z-icon-height:16px}:host>div.open>.header{border:var(--border-size-small) solid var(--color-form-active-primary);border-radius:var(--border-radius-small) var(--border-radius-small) 0 0}:host>div.disabled{pointer-events:none}:host>div.disabled .header{border-color:var(--color-form-disabled03);fill:var(--color-form-disabled01-icon)}:host>div.disabled .header>span.body-3{color:var(--color-form-disabled03)}:host>div.disabled .header>z-icon:last-child{fill:var(--color-form-disabled01-icon)}:host>div.open>.header>z-icon{fill:var(--color-form-default-icon);transform:rotate(180deg);transition:all 200ms linear}:host>div>div.open-combo-data{display:none}:host>div.open>div.open-combo-data{position:relative;z-index:12;display:block;padding:var(--space-unit) calc(var(--space-unit) * 2);border:var(--border-size-small) solid var(--color-form-surface03);border-top:0;background-color:var(--color-form-background);border-radius:0;box-shadow:var(--shadow-2)}:host .open .open-combo-data z-input .z-label{color:var(--color-form-default-text)}:host>div.open>div.open-combo-data>div>div{overflow:auto;max-height:235px;padding:0;padding-left:var(--space-unit);margin-left:calc(var(--space-unit) * -1);}:host>div.open>div.open-combo-data>z-input{width:100%;margin-bottom:calc(var(--space-unit) * 2)}:host>div.open>div.open-combo-data>div>div>ul{max-height:235px;padding:0 calc(var(--space-unit) * 0.5);margin:0}:host .open-combo-data z-list-element{--background-color-list-element:var(--color-form-background);--background-hover-color-list-element:var(--color-form-surface03);--background-active-color-list-element:var(--color-form-surface03)}::-webkit-scrollbar{width:6px;background:linear-gradient(to right, transparent 0 1px, var(--gray200) 1px 5px, transparent 5px 6px)}::-webkit-scrollbar-thumb{background-color:var(--color-primary01)}::-webkit-scrollbar-thumb:hover{background-color:var(--color-hover-primary)}@supports not selector(::-webkit-scrollbar-track){:host{scrollbar-color:var(--color-primary01) transparent}}:host>div.open>z-input{position:relative;z-index:1;width:238px;margin:0 calc(var(--space-unit) * 2);color:var(--color-form-active-primary)}:host>div.open>div.open-combo-data>div>div.search{overflow:hidden;max-height:none;margin-top:0}:host>div.open>div.open-combo-data>div>div.search>ul{overflow:auto;max-height:180px;padding:var(--space-unit) calc(var(--space-unit) * 2)}:host .open .open-combo-data .search .no-results{display:flex;align-items:center;column-gap:var(--space-unit)}:host>.open>.open-combo-data .search .close-search{display:flex;justify-content:center}:host>div.open>div.open-combo-data>div>div.search .close-search>a{display:inline-block;height:44px;color:var(--color-form-active-primary);cursor:pointer;font-size:14px;font-weight:var(--font-sb);line-height:44px;text-align:center;text-transform:uppercase}:host>div.open>div.open-combo-data>div>div.search .close-search>a:focus:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none}:host>div.open>div.open-combo-data>div>div.check-all-wrapper{padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 0.5) calc(var(--space-unit) * 2)\n calc(var(--space-unit) * 1.5);border-bottom:var(--border-size-small) solid var(--gray800);margin-bottom:var(--space-unit);margin-left:calc(var(--space-unit) * -1);text-align:left}:host([size=\"small\"])>div.open>div.open-combo-data>div>div.check-all-wrapper{padding:calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 0.5)}:host([size=\"x-small\"])>div.open>div.open-combo-data>div>div.check-all-wrapper{padding:var(--space-unit) calc(var(--space-unit) * 0.5)}";
6
+ const stylesCss = ".z-label{display:block;padding-bottom:var(--space-unit);color:var(--color-default-text);font-family:var(--font-family-sans);font-size:var(--font-size-1);font-weight:var(--font-sb);text-align:left;text-transform:uppercase}:host{display:block;min-width:290px;color:var(--color-form-default-text);fill:var(--color-form-default-icon);font-family:var(--font-family-sans)}:host>div.fixed{position:relative}:host>div>.header{position:relative;z-index:10;display:flex;min-height:42px;align-items:center;justify-content:space-between;padding:0 calc(var(--space-unit) * 1.5);border:var(--border-size-small) solid var(--color-form-surface04);margin:0;background-color:var(--color-form-background);border-radius:var(--border-radius-small);cursor:pointer}:host([size=\"small\"])>div>.header{min-height:34px;font-size:var(--font-size-2)}:host([size=\"x-small\"])>div>.header{min-height:30px;font-size:var(--font-size-2)}:host>div>.header:hover{outline:var(--border-size-medium) solid var(--color-form-surface04);outline-offset:-2px}:host>div>div.header:focus:focus-visible{z-index:16;box-shadow:var(--shadow-focus-primary);outline:none}:host>div>.header>span.body-3>span{font-weight:var(--font-sb)}:host>div>.header>z-icon{fill:var(--color-form-default-icon);transform:rotate(360deg);transition:all 200ms linear}:host>div>.header>z-icon.small,:host>div>.header>z-icon.x-small{--z-icon-width:16px;--z-icon-height:16px}:host>div.open>.header{border:var(--border-size-small) solid var(--color-form-active-primary);border-radius:var(--border-radius-small) var(--border-radius-small) 0 0}:host>div.disabled{pointer-events:none}:host>div.disabled .header{border-color:var(--color-form-disabled03);fill:var(--color-form-disabled01-icon)}:host>div.disabled .header>span.body-3{color:var(--color-form-disabled03)}:host>div.disabled .header>z-icon:last-child{fill:var(--color-form-disabled01-icon)}:host>div.open>.header>z-icon{fill:var(--color-form-default-icon);transform:rotate(180deg);transition:all 200ms linear}:host>div>div.open-combo-data{display:none}:host>div.open>div.open-combo-data{position:relative;z-index:12;display:block;padding:var(--space-unit) calc(var(--space-unit) * 2);border:var(--border-size-small) solid var(--color-form-surface03);border-top:0;background-color:var(--color-form-background);border-radius:0;box-shadow:var(--shadow-2)}:host .open .open-combo-data z-input .z-label{color:var(--color-form-default-text)}:host>div.open>div.open-combo-data>div>div{overflow:auto;max-height:235px;padding:0;padding-left:var(--space-unit);margin-left:calc(var(--space-unit) * -1);}:host>div.open>div.open-combo-data>z-input{width:100%;margin-bottom:calc(var(--space-unit) * 2)}:host>div.open>div.open-combo-data>div>div>ul{max-height:235px;padding:0 calc(var(--space-unit) * 0.5);margin:0}:host .open-combo-data z-list-element{--background-color-list-element:var(--color-form-background);--background-hover-color-list-element:var(--color-form-surface03);--background-active-color-list-element:var(--color-form-surface03)}:host .open-combo-data z-list-element[disabled]{pointer-events:none}:host .open-combo-data z-list-element .option-wrap{display:flex;flex-direction:row;align-items:center;cursor:pointer;gap:var(--space-unit)}:host .open-combo-data z-list-element[size=\"medium\"] .option-wrap,:host .open-combo-data z-list-element[size=\"small\"] .option-wrap{--z-icon-width:16px;--z-icon-height:16px;font-size:var(--font-size-2);gap:calc(var(--space-unit) / 2)}:host .open-combo-data z-list-element .option-wrap>z-icon{fill:var(--color-primary01)}:host .open-combo-data z-list-element[disabled] .option-wrap>z-icon{fill:var(--color-disabled01)}:host .open-combo-data z-list-element .option-wrap>z-icon.focused{border-radius:var(--border-radius-small);box-shadow:var(--shadow-focus-primary);outline:none}:host .open-combo-data z-list-element .option-wrap>[role=\"option\"]:focus,:host .open-combo-data z-list-element .option-wrap>[role=\"option\"]:focus-visible{outline:none}::-webkit-scrollbar{width:6px;background:linear-gradient(to right, transparent 0 1px, var(--gray200) 1px 5px, transparent 5px 6px)}::-webkit-scrollbar-thumb{background-color:var(--color-primary01)}::-webkit-scrollbar-thumb:hover{background-color:var(--color-hover-primary)}@supports not selector(::-webkit-scrollbar-track){:host{scrollbar-color:var(--color-primary01) transparent}}:host>div.open>z-input{position:relative;z-index:1;width:238px;margin:0 calc(var(--space-unit) * 2);color:var(--color-form-active-primary)}:host>div.open>div.open-combo-data>div>div.search{overflow:hidden;max-height:none;margin-top:0}:host>div.open>div.open-combo-data>div>div.search>ul{overflow:auto;max-height:180px;padding:var(--space-unit) calc(var(--space-unit) * 2)}:host .open .open-combo-data .search .no-results{display:flex;align-items:center;column-gap:var(--space-unit)}:host>.open>.open-combo-data .search .close-search{display:flex;justify-content:center}:host>div.open>div.open-combo-data>div>div.search .close-search>a{display:inline-block;height:44px;color:var(--color-form-active-primary);cursor:pointer;font-size:14px;font-weight:var(--font-sb);line-height:44px;text-align:center;text-transform:uppercase}:host>div.open>div.open-combo-data>div>div.search .close-search>a:focus:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none}:host>div.open>div.open-combo-data>div>div.check-all-wrapper{padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 0.5) calc(var(--space-unit) * 2)\n calc(var(--space-unit) * 1.5);border-bottom:var(--border-size-small) solid var(--gray800);margin-bottom:var(--space-unit);margin-left:calc(var(--space-unit) * -1);text-align:left}:host([size=\"small\"])>div.open>div.open-combo-data>div>div.check-all-wrapper{padding:calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 0.5)}:host([size=\"x-small\"])>div.open>div.open-combo-data>div>div.check-all-wrapper{padding:var(--space-unit) calc(var(--space-unit) * 0.5)}";
7
7
  const ZComboboxStyle0 = stylesCss;
8
8
 
9
9
  const ZCombobox = class {
@@ -15,9 +15,6 @@ const ZCombobox = class {
15
15
  watchSearchValue() {
16
16
  this.filterItems(this.searchValue);
17
17
  }
18
- watchCheckboxes() {
19
- this.checkboxes.forEach((item, index) => item.setAttribute("tabindex", index === 0 ? "0" : "-1"));
20
- }
21
18
  emitComboboxChange() {
22
19
  this.comboboxChange.emit({ id: this.inputid, items: this.itemsList });
23
20
  }
@@ -43,11 +40,11 @@ const ZCombobox = class {
43
40
  this.maxcheckableitems = 0;
44
41
  this.hasgroupitems = undefined;
45
42
  this.size = ControlSize.BIG;
43
+ this.htmlAriaLabel = undefined;
46
44
  this.searchValue = undefined;
47
45
  this.selectedCounter = undefined;
48
46
  this.renderItemsList = [];
49
- this.focusedItemId = undefined;
50
- this.checkboxes = [];
47
+ this.focusedItemId = "";
51
48
  this.toggleComboBox = this.toggleComboBox.bind(this);
52
49
  this.closeFilterItems = this.closeFilterItems.bind(this);
53
50
  }
@@ -57,21 +54,6 @@ const ZCombobox = class {
57
54
  componentWillRender() {
58
55
  this.selectedCounter = this.itemsList.filter((item) => item.checked).length;
59
56
  }
60
- componentDidRender() {
61
- const checkboxes = this.getAllCheckboxes();
62
- if (JSON.stringify(checkboxes) !== JSON.stringify(this.checkboxes)) {
63
- this.checkboxes = checkboxes;
64
- }
65
- }
66
- getItemId(item) {
67
- return `combo-checkbox-${this.inputid}-${item.id}`;
68
- }
69
- getCheckboxClass() {
70
- return `combo-item-checkbox-input-${this.inputid}`;
71
- }
72
- getAllCheckboxes() {
73
- return Array.from(this.element.shadowRoot.querySelectorAll(`.${this.getCheckboxClass()} input:not([disabled])`));
74
- }
75
57
  getControlToListSize() {
76
58
  switch (this.size) {
77
59
  case ControlSize.X_SMALL:
@@ -82,52 +64,111 @@ const ZCombobox = class {
82
64
  return ListSize.LARGE;
83
65
  }
84
66
  }
85
- handleSelectArrowsNavigation(e, currId) {
86
- if (![KeyboardCode.ARROW_DOWN, KeyboardCode.ARROW_UP].includes(e.key) || !this.isopen) {
67
+ getOptionId(itemId) {
68
+ return `${this.inputid}-option-${itemId}`;
69
+ }
70
+ getCheckAllOptionId() {
71
+ return `${this.inputid}-check-all`;
72
+ }
73
+ allOptionsSelected() {
74
+ return this.selectedCounter === this.itemsList.length;
75
+ }
76
+ hasReachedMaxSelections() {
77
+ return !!(this.maxcheckableitems && this.selectedCounter >= this.maxcheckableitems);
78
+ }
79
+ handleHeaderKeyDown(e) {
80
+ if (e.code === KeyboardCode.ENTER && !this.focusedItemId) {
81
+ this.toggleComboBox();
82
+ }
83
+ if (!this.isopen || this.hassearch) {
84
+ return;
85
+ }
86
+ switch (e.code) {
87
+ case KeyboardCode.SPACE:
88
+ case KeyboardCode.ENTER:
89
+ if (this.focusedItemId) {
90
+ e.preventDefault();
91
+ this.checkOption(this.focusedItemId);
92
+ }
93
+ break;
94
+ case KeyboardCode.ESC:
95
+ if (this.focusedItemId) {
96
+ this.focusedItemId = "";
97
+ }
98
+ break;
99
+ case KeyboardCode.ARROW_DOWN:
100
+ case KeyboardCode.ARROW_UP:
101
+ this.handleArrowsNavigation(e);
102
+ break;
103
+ }
104
+ }
105
+ handleInputKeyDown(e) {
106
+ switch (e.code) {
107
+ case KeyboardCode.ENTER:
108
+ case KeyboardCode.SPACE:
109
+ if (this.focusedItemId) {
110
+ e.preventDefault();
111
+ this.checkOption(this.focusedItemId);
112
+ break;
113
+ }
114
+ break;
115
+ case KeyboardCode.ARROW_DOWN:
116
+ case KeyboardCode.ARROW_UP:
117
+ this.handleArrowsNavigation(e);
118
+ break;
119
+ case KeyboardCode.ESC:
120
+ if (this.focusedItemId) {
121
+ this.focusedItemId = "";
122
+ break;
123
+ }
124
+ this.closeFilterItems();
125
+ break;
126
+ case KeyboardCode.TAB:
127
+ this.focusedItemId = "";
128
+ break;
129
+ }
130
+ }
131
+ checkOption(optionId) {
132
+ if (optionId === this.getCheckAllOptionId()) {
133
+ this.itemsList = this.itemsList.map((item) => (Object.assign(Object.assign({}, item), { checked: !this.allOptionsSelected() })));
134
+ this.focusedItemId = this.getCheckAllOptionId();
135
+ }
136
+ else {
137
+ this.itemsList = this.itemsList.map((i) => {
138
+ if (optionId === this.getOptionId(i.id)) {
139
+ i.checked = !i.checked;
140
+ }
141
+ return i;
142
+ });
143
+ }
144
+ this.updateRenderItemsList();
145
+ this.emitComboboxChange();
146
+ }
147
+ handleArrowsNavigation(e) {
148
+ if (![KeyboardCode.ARROW_DOWN, KeyboardCode.ARROW_UP].includes(e.code) || !this.isopen) {
87
149
  return;
88
150
  }
89
151
  e.preventDefault();
90
152
  e.stopPropagation();
91
- const currElem = this.element.shadowRoot.querySelector(`#${currId}`);
92
- const checkboxes = this.checkboxes;
93
- if (!checkboxes.length) {
153
+ const currElem = this.focusedItemId ? this.element.shadowRoot.querySelector(`#${this.focusedItemId}`) : null;
154
+ const options = Array.from(this.element.shadowRoot.querySelectorAll('[role="option"]'));
155
+ if (!options.length) {
94
156
  return;
95
157
  }
96
- const currElemIndex = currElem ? checkboxes.indexOf(currElem) : null;
158
+ const currElemIndex = currElem ? options.indexOf(currElem) : null;
97
159
  const firstElemIndex = 0;
98
- const lastElemIndex = checkboxes.length - 1;
160
+ const lastElemIndex = options.length - 1;
99
161
  let nextElem = null;
100
- if (e.key === KeyboardCode.ARROW_DOWN) {
162
+ if (e.code === KeyboardCode.ARROW_DOWN) {
101
163
  nextElem =
102
- currElemIndex === null || currElemIndex === lastElemIndex
103
- ? checkboxes[firstElemIndex]
104
- : checkboxes[currElemIndex + 1];
164
+ currElemIndex === null ? options[firstElemIndex] : options[currElemIndex + 1] || options[lastElemIndex];
105
165
  }
106
- else if (e.key === KeyboardCode.ARROW_UP) {
166
+ else if (e.code === KeyboardCode.ARROW_UP) {
107
167
  nextElem =
108
- currElemIndex === null || currElemIndex === firstElemIndex
109
- ? checkboxes[lastElemIndex]
110
- : checkboxes[currElemIndex - 1];
111
- }
112
- this.focusComboboxItem(nextElem);
113
- }
114
- handleHeaderKeyboardEvent(ev) {
115
- if (ev.key === KeyboardCode.SPACE) {
116
- ev.preventDefault();
168
+ currElemIndex === null ? options[lastElemIndex] : options[currElemIndex - 1] || options[firstElemIndex];
117
169
  }
118
- if ((ev.key === KeyboardCode.ARROW_DOWN && !this.isopen) || (ev.key === KeyboardCode.ARROW_UP && this.isopen)) {
119
- this.toggleComboBox();
120
- }
121
- }
122
- handleCheckboxFocus(id) {
123
- this.focusedItemId = id;
124
- }
125
- focusComboboxItem(elem) {
126
- this.checkboxes.forEach(function (item) {
127
- item.setAttribute("tabindex", "-1");
128
- });
129
- elem.setAttribute("tabindex", "0");
130
- elem.focus();
170
+ this.focusedItemId = nextElem.id;
171
+ nextElem.scrollIntoView({ block: "center" });
131
172
  }
132
173
  updateRenderItemsList() {
133
174
  if (this.searchValue) {
@@ -161,11 +202,6 @@ const ZCombobox = class {
161
202
  return start >= 0;
162
203
  });
163
204
  }
164
- checkAll(checked = true) {
165
- this.itemsList = this.itemsList.map((item) => (Object.assign(Object.assign({}, item), { checked: checked })));
166
- this.resetRenderItemsList();
167
- this.emitComboboxChange();
168
- }
169
205
  closeFilterItems() {
170
206
  this.searchValue = "";
171
207
  this.resetRenderItemsList();
@@ -175,12 +211,14 @@ const ZCombobox = class {
175
211
  }
176
212
  getComboboxA11yAttributes(isZInput) {
177
213
  const role = "combobox";
214
+ const ariaLabel = this.htmlAriaLabel;
178
215
  const ariaExpanded = this.isopen ? "true" : "false";
179
216
  const ariaActivedescendant = this.isopen ? this.focusedItemId : "";
180
217
  const ariaControls = `${this.inputid}_list`;
181
218
  if (isZInput) {
182
219
  return {
183
220
  "role": role,
221
+ "aria-label": ariaLabel,
184
222
  "html-aria-expanded": ariaExpanded,
185
223
  "html-aria-activedescendant": ariaActivedescendant,
186
224
  "html-aria-controls": ariaControls,
@@ -188,36 +226,33 @@ const ZCombobox = class {
188
226
  }
189
227
  return {
190
228
  "role": role,
229
+ "aria-label": ariaLabel,
191
230
  "aria-expanded": ariaExpanded,
192
231
  "aria-activedescendant": ariaActivedescendant,
193
232
  "aria-controls": ariaControls,
194
233
  };
195
234
  }
196
235
  renderHeader() {
197
- return (h("div", { class: "header", onClick: () => this.toggleComboBox(), onKeyDown: (ev) => {
198
- this.handleHeaderKeyboardEvent(ev);
199
- }, onKeyUp: (ev) => handleKeyboardSubmit(ev, this.toggleComboBox), role: "button", tabindex: 0, "aria-controls": "open-combo-data", "aria-expanded": this.isopen ? "true" : "false" }, h("span", { class: "body-3" }, this.label, h("span", null, this.selectedCounter > 0 && ` (${this.selectedCounter})`)), h("z-icon", { name: "caret-down", class: this.size })));
236
+ const comboboxA11yAttributes = !this.hassearch ? this.getComboboxA11yAttributes(false) : {};
237
+ return (h("div", Object.assign({ class: "header", onClick: () => this.toggleComboBox(), onKeyDown: (e) => this.handleHeaderKeyDown(e), role: "button", tabindex: 0, "aria-controls": "open-combo-data", "aria-expanded": this.isopen ? "true" : "false" }, comboboxA11yAttributes), h("span", { class: "body-3", "aria-label": this.label
238
+ ? `${this.label}${this.selectedCounter > 0 ? ` - ${this.selectedCounter} selezionati` : ``}`
239
+ : undefined }, this.label, h("span", null, this.selectedCounter > 0 && ` (${this.selectedCounter})`)), h("z-icon", { name: "caret-down", class: this.size })));
200
240
  }
201
241
  renderContent() {
202
- return (h("div", { id: "open-combo-data", class: "open-combo-data" }, this.hassearch && this.renderSearchInput(), !this.hassearch ? h("span", Object.assign({}, this.getComboboxA11yAttributes(false))) : null, h("div", { role: "listbox", "aria-label": this.label, "aria-multiselectable": "true", id: `${this.inputid}_list`, "aria-owns": Array.from(this.element.shadowRoot.querySelectorAll("[role='option']"))
242
+ return (h("div", { id: "open-combo-data", class: "open-combo-data" }, this.hassearch && this.renderSearchInput(), h("div", { role: "listbox", "aria-label": this.label, "aria-multiselectable": "true", id: `${this.inputid}_list`, "aria-owns": Array.from(this.element.shadowRoot.querySelectorAll("[role='option']"))
203
243
  .map((item) => item.id)
204
- .join(" ") }, this.hascheckall && this.renderCheckAll(), this.renderItems())));
244
+ .join(" ") }, this.renderItems())));
205
245
  }
206
246
  renderItems() {
207
247
  return (h("div", { class: this.searchValue && "search", tabIndex: -1, role: "presentation" }, this.renderList(this.renderItemsList)));
208
248
  }
209
249
  renderItem(item, index, length) {
210
- const isDisabled = !item.checked && this.maxcheckableitems && this.selectedCounter >= this.maxcheckableitems;
211
- return (h("z-list-element", { id: `option-${item.id}`, htmlTabindex: null, dividerType: index !== length - 1 ? ListDividerType.ELEMENT : ListDividerType.NONE, size: this.getControlToListSize(), role: isDisabled ? "presentation" : "option", "aria-selected": item.checked ? "true" : "false" }, h("z-input", { type: InputType.CHECKBOX, checked: item.checked, htmlid: this.getItemId(item), label: item.name, class: this.getCheckboxClass(), disabled: isDisabled, size: this.size === ControlSize.X_SMALL ? ControlSize.SMALL : this.size, onKeyDown: (e) => this.handleSelectArrowsNavigation(e, this.getItemId(item)), onInputCheck: (e) => {
212
- this.itemsList = this.itemsList.map((i) => {
213
- if (item.id === i.id) {
214
- i.checked = e.detail.checked;
215
- }
216
- return i;
217
- });
218
- this.updateRenderItemsList();
219
- this.emitComboboxChange();
220
- }, onInputFocus: (e) => this.handleCheckboxFocus(e.detail.id) })));
250
+ const optionId = this.getOptionId(item.id);
251
+ const isDisabled = !item.checked && this.hasReachedMaxSelections();
252
+ return (h("z-list-element", { htmlTabindex: -1, dividerType: index !== length - 1 ? ListDividerType.ELEMENT : ListDividerType.NONE, size: this.getControlToListSize(), role: "presentation", disabled: !!isDisabled }, h("span", { class: "option-wrap", role: "presentation", onClick: () => {
253
+ this.focusedItemId = "";
254
+ this.checkOption(optionId);
255
+ } }, h("z-icon", { name: item.checked ? "checkbox-checked" : "checkbox", class: this.focusedItemId === optionId ? "focused" : "" }), h("span", { id: optionId, role: isDisabled ? "presentation" : "option", "aria-selected": item.checked ? "true" : "false", "aria-label": getPlainText(item.name), innerHTML: item.name }))));
221
256
  }
222
257
  renderList(items) {
223
258
  if (!items) {
@@ -229,53 +264,49 @@ const ZCombobox = class {
229
264
  if (this.hasgroupitems) {
230
265
  return this.renderGroups(items);
231
266
  }
232
- return (h("ul", { role: "presentation" }, items.map((item, i) => {
267
+ return (h("ul", { role: "presentation" }, this.renderCheckAll(), items.map((item, i) => {
233
268
  return this.renderItem(item, i, items.length);
234
269
  })));
235
270
  }
236
271
  renderGroups(items) {
237
272
  const newData = items.reduce((group, item, index) => {
238
273
  var _a;
239
- const { category } = item;
274
+ const category = item.category || "Altra categoria";
240
275
  const zListItem = this.renderItem(item, index, items.length);
241
276
  group[category] = (_a = group[category]) !== null && _a !== void 0 ? _a : [];
242
277
  group[category].push(zListItem);
243
278
  return group;
244
279
  }, {});
245
- const listGroups = Object.entries(newData).map(([key, value]) => {
246
- return (h("z-list-group", { "divider-type": ListDividerType.ELEMENT }, h("span", { class: "body-3-sb z-list-group-title", slot: "header-title" }, key), value.map((item) => item)));
280
+ const listGroups = Object.entries(newData).map(([key, value], index) => {
281
+ return (h("z-list-group", { size: this.getControlToListSize(), "divider-type": ListDividerType.ELEMENT, ariaLabelledby: `${this.inputid}_list_group_${index}` }, h("span", { class: "body-3-sb z-list-group-title", slot: "header-title", id: `${this.inputid}_list_group_${index}`, "aria-hidden": "true" }, key), value.map((item) => item)));
247
282
  });
248
- return h("ul", { role: "presentation" }, listGroups);
283
+ return (h("ul", { role: "presentation" }, this.renderCheckAll(), listGroups));
249
284
  }
250
285
  renderNoSearchResults() {
251
286
  return (h("div", { class: "no-results" }, h("span", null, this.noresultslabel)));
252
287
  }
253
288
  renderSearchInput() {
254
- return (h("z-input", Object.assign({ htmlid: `${this.inputid}_search`, label: this.searchlabel, placeholder: this.searchplaceholder, htmltitle: this.searchtitle, type: this.inputType, value: this.searchValue, message: false, size: this.size, "html-aria-autocomplete": "list" }, this.getComboboxA11yAttributes(true), { onKeyUp: (e) => {
255
- if (e.key === KeyboardCode.ESC) {
256
- this.closeFilterItems();
257
- }
258
- this.handleSelectArrowsNavigation(e);
259
- }, onInputChange: (e) => {
289
+ return (h("z-input", Object.assign({ htmlid: `${this.inputid}_search`, label: this.searchlabel, placeholder: this.searchplaceholder, htmltitle: this.searchtitle, type: this.inputType, value: this.searchValue, message: false, size: this.size, "html-aria-autocomplete": "list" }, this.getComboboxA11yAttributes(true), { onKeyDown: (e) => this.handleInputKeyDown(e), onInputChange: (e) => {
260
290
  this.searchValue = e.detail.value;
291
+ this.focusedItemId = "";
261
292
  } })));
262
293
  }
263
294
  renderCheckAll() {
264
- if (this.searchValue) {
295
+ if (!this.hascheckall || this.searchValue) {
265
296
  return;
266
297
  }
267
- const checkAllId = `combo-checkbox-${this.inputid}-check-all`;
268
- const allChecked = this.selectedCounter === this.itemsList.length;
269
- return (h("div", { class: "check-all-wrapper", id: "option-check-all", role: "option" }, h("z-input", { type: InputType.CHECKBOX, checked: allChecked, htmlid: checkAllId, class: this.getCheckboxClass(), label: allChecked ? this.uncheckalltext : this.checkalltext, disabled: this.maxcheckableitems && this.maxcheckableitems < this.itemsList.length, size: this.size === ControlSize.X_SMALL ? ControlSize.SMALL : this.size, onKeyDown: (e) => this.handleSelectArrowsNavigation(e, checkAllId), onInputCheck: (e) => this.checkAll(e.detail.checked), onInputFocus: (e) => this.handleCheckboxFocus(e.detail.id) })));
298
+ const optionId = this.getCheckAllOptionId();
299
+ const allChecked = this.allOptionsSelected();
300
+ const isDisabled = this.hasReachedMaxSelections() || (this.maxcheckableitems && this.maxcheckableitems < this.itemsList.length);
301
+ return (h("z-list-element", { class: "check-all-wrapper", role: "presentation", htmlTabindex: -1, dividerType: ListDividerType.ELEMENT, dividerColor: "gray800", size: this.getControlToListSize(), disabled: !!isDisabled }, h("span", { class: "option-wrap", role: "presentation", onClick: () => this.checkOption(optionId) }, h("z-icon", { name: allChecked ? "checkbox-checked" : "checkbox", class: this.focusedItemId === optionId ? "focused" : "" }), h("span", { id: optionId, role: isDisabled ? "presentation" : "option", "aria-selected": allChecked ? "true" : "false" }, allChecked ? this.uncheckalltext : this.checkalltext))));
270
302
  }
271
303
  render() {
272
- return (h("div", { key: '6cb14e4919c53bae374f2c9441b0524a06a4233d', "data-action": `combo-${this.inputid}`, class: { open: this.isopen, fixed: this.isfixed, disabled: this.disabled }, id: this.inputid }, this.renderHeader(), !this.disabled && this.renderContent()));
304
+ return (h("div", { key: '00adbeec7501f6c4fcdb56c4ac7bd3ab911d97cb', "data-action": `combo-${this.inputid}`, class: { open: this.isopen, fixed: this.isfixed, disabled: this.disabled }, id: this.inputid }, this.renderHeader(), !this.disabled && this.renderContent()));
273
305
  }
274
306
  get element() { return getElement(this); }
275
307
  static get watchers() { return {
276
308
  "items": ["watchItems"],
277
- "searchValue": ["watchSearchValue"],
278
- "checkboxes": ["watchCheckboxes"]
309
+ "searchValue": ["watchSearchValue"]
279
310
  }; }
280
311
  };
281
312
  ZCombobox.style = ZComboboxStyle0;