@wirabyte/ui 2.0.0-beta.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1686) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/README.md +6 -6
  3. package/fesm2022/wirabyte-ui-accordion.mjs +49 -49
  4. package/fesm2022/wirabyte-ui-accordion.mjs.map +1 -1
  5. package/fesm2022/wirabyte-ui-alert.mjs +14 -14
  6. package/fesm2022/wirabyte-ui-alert.mjs.map +1 -1
  7. package/fesm2022/wirabyte-ui-animate.mjs +10 -10
  8. package/fesm2022/wirabyte-ui-animate.mjs.map +1 -1
  9. package/fesm2022/wirabyte-ui-api.mjs +4 -4
  10. package/fesm2022/wirabyte-ui-asidemenu.mjs +8 -8
  11. package/fesm2022/wirabyte-ui-asidemenu.mjs.map +1 -1
  12. package/fesm2022/wirabyte-ui-autocomplete.mjs +10 -10
  13. package/fesm2022/wirabyte-ui-autocomplete.mjs.map +1 -1
  14. package/fesm2022/wirabyte-ui-avatar.mjs +34 -27
  15. package/fesm2022/wirabyte-ui-avatar.mjs.map +1 -1
  16. package/fesm2022/wirabyte-ui-badge.mjs +20 -20
  17. package/fesm2022/wirabyte-ui-badge.mjs.map +1 -1
  18. package/fesm2022/wirabyte-ui-blockui.mjs +8 -8
  19. package/fesm2022/wirabyte-ui-blockui.mjs.map +1 -1
  20. package/fesm2022/wirabyte-ui-bottombar.mjs +8 -8
  21. package/fesm2022/wirabyte-ui-bottombar.mjs.map +1 -1
  22. package/fesm2022/wirabyte-ui-breadcrumb.mjs +10 -8
  23. package/fesm2022/wirabyte-ui-breadcrumb.mjs.map +1 -1
  24. package/fesm2022/wirabyte-ui-button.mjs +39 -39
  25. package/fesm2022/wirabyte-ui-button.mjs.map +1 -1
  26. package/fesm2022/wirabyte-ui-card.mjs +34 -34
  27. package/fesm2022/wirabyte-ui-card.mjs.map +1 -1
  28. package/fesm2022/wirabyte-ui-carousel.mjs +8 -8
  29. package/fesm2022/wirabyte-ui-carousel.mjs.map +1 -1
  30. package/fesm2022/wirabyte-ui-chart.mjs +1243 -40
  31. package/fesm2022/wirabyte-ui-chart.mjs.map +1 -1
  32. package/fesm2022/wirabyte-ui-chartjs.mjs +10 -10
  33. package/fesm2022/wirabyte-ui-chartjs.mjs.map +1 -1
  34. package/fesm2022/wirabyte-ui-chat.mjs +391 -0
  35. package/fesm2022/wirabyte-ui-chat.mjs.map +1 -0
  36. package/fesm2022/wirabyte-ui-checkbox.mjs +29 -29
  37. package/fesm2022/wirabyte-ui-checkbox.mjs.map +1 -1
  38. package/fesm2022/wirabyte-ui-chip.mjs +20 -20
  39. package/fesm2022/wirabyte-ui-chip.mjs.map +1 -1
  40. package/fesm2022/wirabyte-ui-colorpicker.mjs +8 -8
  41. package/fesm2022/wirabyte-ui-colorpicker.mjs.map +1 -1
  42. package/fesm2022/wirabyte-ui-config.mjs +62 -22
  43. package/fesm2022/wirabyte-ui-config.mjs.map +1 -1
  44. package/fesm2022/wirabyte-ui-confirmdialog.mjs +14 -14
  45. package/fesm2022/wirabyte-ui-confirmdialog.mjs.map +1 -1
  46. package/fesm2022/wirabyte-ui-contextmenu.mjs +7 -7
  47. package/fesm2022/wirabyte-ui-contextmenu.mjs.map +1 -1
  48. package/fesm2022/wirabyte-ui-core.mjs +155 -2
  49. package/fesm2022/wirabyte-ui-core.mjs.map +1 -1
  50. package/fesm2022/wirabyte-ui-datepicker.mjs +85 -85
  51. package/fesm2022/wirabyte-ui-datepicker.mjs.map +1 -1
  52. package/fesm2022/wirabyte-ui-descriptions.mjs +133 -0
  53. package/fesm2022/wirabyte-ui-descriptions.mjs.map +1 -0
  54. package/fesm2022/wirabyte-ui-dialog.mjs +21 -21
  55. package/fesm2022/wirabyte-ui-dialog.mjs.map +1 -1
  56. package/fesm2022/wirabyte-ui-divider.mjs +16 -16
  57. package/fesm2022/wirabyte-ui-divider.mjs.map +1 -1
  58. package/fesm2022/wirabyte-ui-dock.mjs +8 -8
  59. package/fesm2022/wirabyte-ui-dock.mjs.map +1 -1
  60. package/fesm2022/wirabyte-ui-dragdrop.mjs +10 -10
  61. package/fesm2022/wirabyte-ui-dragdrop.mjs.map +1 -1
  62. package/fesm2022/wirabyte-ui-drawer.mjs +8 -8
  63. package/fesm2022/wirabyte-ui-drawer.mjs.map +1 -1
  64. package/fesm2022/wirabyte-ui-editor.mjs +17 -17
  65. package/fesm2022/wirabyte-ui-editor.mjs.map +1 -1
  66. package/fesm2022/wirabyte-ui-emptystate.mjs +8 -8
  67. package/fesm2022/wirabyte-ui-emptystate.mjs.map +1 -1
  68. package/fesm2022/wirabyte-ui-errorpage.mjs +8 -8
  69. package/fesm2022/wirabyte-ui-errorpage.mjs.map +1 -1
  70. package/fesm2022/wirabyte-ui-fieldset.mjs +21 -21
  71. package/fesm2022/wirabyte-ui-fieldset.mjs.map +1 -1
  72. package/fesm2022/wirabyte-ui-fileupload.mjs +11 -11
  73. package/fesm2022/wirabyte-ui-fileupload.mjs.map +1 -1
  74. package/fesm2022/wirabyte-ui-floatlabel.mjs +7 -7
  75. package/fesm2022/wirabyte-ui-floatlabel.mjs.map +1 -1
  76. package/fesm2022/wirabyte-ui-flow.mjs +51 -51
  77. package/fesm2022/wirabyte-ui-flow.mjs.map +1 -1
  78. package/fesm2022/wirabyte-ui-galleria.mjs +8 -8
  79. package/fesm2022/wirabyte-ui-galleria.mjs.map +1 -1
  80. package/fesm2022/wirabyte-ui-i18n.mjs +17 -17
  81. package/fesm2022/wirabyte-ui-i18n.mjs.map +1 -1
  82. package/fesm2022/wirabyte-ui-iconfield.mjs +10 -10
  83. package/fesm2022/wirabyte-ui-iconfield.mjs.map +1 -1
  84. package/fesm2022/wirabyte-ui-image.mjs +11 -11
  85. package/fesm2022/wirabyte-ui-image.mjs.map +1 -1
  86. package/fesm2022/wirabyte-ui-imagecompare.mjs +8 -8
  87. package/fesm2022/wirabyte-ui-imagecompare.mjs.map +1 -1
  88. package/fesm2022/wirabyte-ui-imagecropper.mjs +8 -8
  89. package/fesm2022/wirabyte-ui-imagecropper.mjs.map +1 -1
  90. package/fesm2022/wirabyte-ui-inplace.mjs +7 -7
  91. package/fesm2022/wirabyte-ui-inplace.mjs.map +1 -1
  92. package/fesm2022/wirabyte-ui-inputgroup.mjs +10 -10
  93. package/fesm2022/wirabyte-ui-inputgroup.mjs.map +1 -1
  94. package/fesm2022/wirabyte-ui-inputmask.mjs +10 -10
  95. package/fesm2022/wirabyte-ui-inputmask.mjs.map +1 -1
  96. package/fesm2022/wirabyte-ui-inputnumber.mjs +60 -60
  97. package/fesm2022/wirabyte-ui-inputnumber.mjs.map +1 -1
  98. package/fesm2022/wirabyte-ui-inputotp.mjs +7 -7
  99. package/fesm2022/wirabyte-ui-inputotp.mjs.map +1 -1
  100. package/fesm2022/wirabyte-ui-inputtext.mjs +12 -12
  101. package/fesm2022/wirabyte-ui-inputtext.mjs.map +1 -1
  102. package/fesm2022/wirabyte-ui-keyfilter.mjs +7 -7
  103. package/fesm2022/wirabyte-ui-keyfilter.mjs.map +1 -1
  104. package/fesm2022/wirabyte-ui-knob.mjs +8 -8
  105. package/fesm2022/wirabyte-ui-knob.mjs.map +1 -1
  106. package/fesm2022/wirabyte-ui-listbox.mjs +8 -8
  107. package/fesm2022/wirabyte-ui-listbox.mjs.map +1 -1
  108. package/fesm2022/wirabyte-ui-menu.mjs +11 -11
  109. package/fesm2022/wirabyte-ui-menu.mjs.map +1 -1
  110. package/fesm2022/wirabyte-ui-menubar.mjs +11 -11
  111. package/fesm2022/wirabyte-ui-menubar.mjs.map +1 -1
  112. package/fesm2022/wirabyte-ui-message.mjs +30 -30
  113. package/fesm2022/wirabyte-ui-message.mjs.map +1 -1
  114. package/fesm2022/wirabyte-ui-metergroup.mjs +51 -37
  115. package/fesm2022/wirabyte-ui-metergroup.mjs.map +1 -1
  116. package/fesm2022/wirabyte-ui-multiselect.mjs +11 -11
  117. package/fesm2022/wirabyte-ui-multiselect.mjs.map +1 -1
  118. package/fesm2022/wirabyte-ui-navbar.mjs +8 -8
  119. package/fesm2022/wirabyte-ui-navbar.mjs.map +1 -1
  120. package/fesm2022/wirabyte-ui-orderlist.mjs +10 -10
  121. package/fesm2022/wirabyte-ui-orderlist.mjs.map +1 -1
  122. package/fesm2022/wirabyte-ui-organizationchart.mjs +8 -8
  123. package/fesm2022/wirabyte-ui-organizationchart.mjs.map +1 -1
  124. package/fesm2022/wirabyte-ui-paginator.mjs +11 -11
  125. package/fesm2022/wirabyte-ui-paginator.mjs.map +1 -1
  126. package/fesm2022/wirabyte-ui-panel.mjs +26 -26
  127. package/fesm2022/wirabyte-ui-panel.mjs.map +1 -1
  128. package/fesm2022/wirabyte-ui-panelmenu.mjs +11 -11
  129. package/fesm2022/wirabyte-ui-panelmenu.mjs.map +1 -1
  130. package/fesm2022/wirabyte-ui-password.mjs +48 -48
  131. package/fesm2022/wirabyte-ui-password.mjs.map +1 -1
  132. package/fesm2022/wirabyte-ui-picklist.mjs +11 -11
  133. package/fesm2022/wirabyte-ui-picklist.mjs.map +1 -1
  134. package/fesm2022/wirabyte-ui-popover.mjs +12 -12
  135. package/fesm2022/wirabyte-ui-popover.mjs.map +1 -1
  136. package/fesm2022/wirabyte-ui-presets.mjs +2 -2
  137. package/fesm2022/wirabyte-ui-presets.mjs.map +1 -1
  138. package/fesm2022/wirabyte-ui-progressbar.mjs +32 -32
  139. package/fesm2022/wirabyte-ui-progressbar.mjs.map +1 -1
  140. package/fesm2022/wirabyte-ui-progressspinner.mjs +28 -28
  141. package/fesm2022/wirabyte-ui-progressspinner.mjs.map +1 -1
  142. package/fesm2022/wirabyte-ui-radiobutton.mjs +28 -28
  143. package/fesm2022/wirabyte-ui-radiobutton.mjs.map +1 -1
  144. package/fesm2022/wirabyte-ui-rating.mjs +25 -25
  145. package/fesm2022/wirabyte-ui-rating.mjs.map +1 -1
  146. package/fesm2022/wirabyte-ui-result.mjs +8 -8
  147. package/fesm2022/wirabyte-ui-result.mjs.map +1 -1
  148. package/fesm2022/wirabyte-ui-ripple.mjs +7 -7
  149. package/fesm2022/wirabyte-ui-ripple.mjs.map +1 -1
  150. package/fesm2022/wirabyte-ui-scheduler.mjs +504 -0
  151. package/fesm2022/wirabyte-ui-scheduler.mjs.map +1 -0
  152. package/fesm2022/wirabyte-ui-scroller.mjs +8 -8
  153. package/fesm2022/wirabyte-ui-scroller.mjs.map +1 -1
  154. package/fesm2022/wirabyte-ui-scrollpanel.mjs +7 -7
  155. package/fesm2022/wirabyte-ui-scrollpanel.mjs.map +1 -1
  156. package/fesm2022/wirabyte-ui-select.mjs +11 -11
  157. package/fesm2022/wirabyte-ui-select.mjs.map +1 -1
  158. package/fesm2022/wirabyte-ui-selectbutton.mjs +55 -34
  159. package/fesm2022/wirabyte-ui-selectbutton.mjs.map +1 -1
  160. package/fesm2022/wirabyte-ui-signaturepad.mjs +310 -0
  161. package/fesm2022/wirabyte-ui-signaturepad.mjs.map +1 -0
  162. package/fesm2022/wirabyte-ui-sitefooter.mjs +7 -7
  163. package/fesm2022/wirabyte-ui-sitefooter.mjs.map +1 -1
  164. package/fesm2022/wirabyte-ui-skeleton.mjs +19 -19
  165. package/fesm2022/wirabyte-ui-skeleton.mjs.map +1 -1
  166. package/fesm2022/wirabyte-ui-slider.mjs +8 -8
  167. package/fesm2022/wirabyte-ui-slider.mjs.map +1 -1
  168. package/fesm2022/wirabyte-ui-splitbutton.mjs +7 -7
  169. package/fesm2022/wirabyte-ui-splitbutton.mjs.map +1 -1
  170. package/fesm2022/wirabyte-ui-splitter.mjs +11 -11
  171. package/fesm2022/wirabyte-ui-splitter.mjs.map +1 -1
  172. package/fesm2022/wirabyte-ui-stat.mjs +149 -0
  173. package/fesm2022/wirabyte-ui-stat.mjs.map +1 -0
  174. package/fesm2022/wirabyte-ui-stepper.mjs +42 -42
  175. package/fesm2022/wirabyte-ui-stepper.mjs.map +1 -1
  176. package/fesm2022/wirabyte-ui-steps.mjs +11 -11
  177. package/fesm2022/wirabyte-ui-steps.mjs.map +1 -1
  178. package/fesm2022/wirabyte-ui-table.mjs +88 -88
  179. package/fesm2022/wirabyte-ui-table.mjs.map +1 -1
  180. package/fesm2022/wirabyte-ui-tabs.mjs +74 -74
  181. package/fesm2022/wirabyte-ui-tabs.mjs.map +1 -1
  182. package/fesm2022/wirabyte-ui-tag.mjs +18 -18
  183. package/fesm2022/wirabyte-ui-tag.mjs.map +1 -1
  184. package/fesm2022/wirabyte-ui-terminal.mjs +10 -10
  185. package/fesm2022/wirabyte-ui-terminal.mjs.map +1 -1
  186. package/fesm2022/wirabyte-ui-textarea.mjs +31 -13
  187. package/fesm2022/wirabyte-ui-textarea.mjs.map +1 -1
  188. package/fesm2022/wirabyte-ui-thai.mjs +23 -23
  189. package/fesm2022/wirabyte-ui-thai.mjs.map +1 -1
  190. package/fesm2022/wirabyte-ui-tieredmenu.mjs +8 -8
  191. package/fesm2022/wirabyte-ui-tieredmenu.mjs.map +1 -1
  192. package/fesm2022/wirabyte-ui-timeline.mjs +10 -10
  193. package/fesm2022/wirabyte-ui-timeline.mjs.map +1 -1
  194. package/fesm2022/wirabyte-ui-toast.mjs +14 -14
  195. package/fesm2022/wirabyte-ui-toast.mjs.map +1 -1
  196. package/fesm2022/wirabyte-ui-togglebutton.mjs +30 -30
  197. package/fesm2022/wirabyte-ui-togglebutton.mjs.map +1 -1
  198. package/fesm2022/wirabyte-ui-toggleswitch.mjs +27 -27
  199. package/fesm2022/wirabyte-ui-toggleswitch.mjs.map +1 -1
  200. package/fesm2022/wirabyte-ui-toolbar.mjs +12 -12
  201. package/fesm2022/wirabyte-ui-toolbar.mjs.map +1 -1
  202. package/fesm2022/wirabyte-ui-tooltip.mjs +7 -7
  203. package/fesm2022/wirabyte-ui-tooltip.mjs.map +1 -1
  204. package/fesm2022/wirabyte-ui-tree.mjs +8 -8
  205. package/fesm2022/wirabyte-ui-tree.mjs.map +1 -1
  206. package/fesm2022/wirabyte-ui-treeselect.mjs +7 -7
  207. package/fesm2022/wirabyte-ui-treeselect.mjs.map +1 -1
  208. package/fesm2022/wirabyte-ui-validation.mjs +16 -16
  209. package/fesm2022/wirabyte-ui-validation.mjs.map +1 -1
  210. package/fesm2022/wirabyte-ui.mjs +2 -2
  211. package/fesm2022/wirabyte-ui.mjs.map +1 -1
  212. package/package.json +142 -325
  213. package/schematics/core/catalog.cjs +22 -1
  214. package/schematics/core/families.cjs +42 -0
  215. package/schematics/core/overrides.cjs +25 -0
  216. package/schematics/core/thai/locale.cjs +66 -0
  217. package/schematics/ng-add/index.cjs +3 -1
  218. package/schematics/ng-add/schema.json +27 -2
  219. package/theme/_data.scss +239 -7
  220. package/theme/_index.scss +29 -0
  221. package/theme/_version.scss +1 -1
  222. package/themes/glass/amber.css +1210 -0
  223. package/themes/glass/blue.css +1210 -0
  224. package/themes/glass/cyan.css +1210 -0
  225. package/themes/glass/emerald.css +1210 -0
  226. package/themes/glass/fuchsia.css +1210 -0
  227. package/themes/glass/green.css +1210 -0
  228. package/themes/glass/indigo.css +1210 -0
  229. package/themes/glass/lime.css +1210 -0
  230. package/themes/glass/orange.css +1210 -0
  231. package/themes/glass/pink.css +1210 -0
  232. package/themes/glass/purple.css +1210 -0
  233. package/themes/glass/red.css +1210 -0
  234. package/themes/glass/rose.css +1210 -0
  235. package/themes/glass/sky.css +1210 -0
  236. package/themes/glass/teal.css +1210 -0
  237. package/themes/glass/theme.css +1210 -0
  238. package/themes/glass/violet.css +1210 -0
  239. package/themes/glass/wira.css +1210 -0
  240. package/themes/glass/yellow.css +1210 -0
  241. package/themes/lanna/amber.css +1204 -0
  242. package/themes/lanna/blue.css +1204 -0
  243. package/themes/lanna/cyan.css +1204 -0
  244. package/themes/lanna/emerald.css +1204 -0
  245. package/themes/lanna/fuchsia.css +1204 -0
  246. package/themes/lanna/green.css +1204 -0
  247. package/themes/lanna/indigo.css +1204 -0
  248. package/themes/lanna/lime.css +1204 -0
  249. package/themes/lanna/orange.css +1204 -0
  250. package/themes/lanna/pink.css +1204 -0
  251. package/themes/lanna/purple.css +1204 -0
  252. package/themes/lanna/red.css +1204 -0
  253. package/themes/lanna/rose.css +1204 -0
  254. package/themes/lanna/sky.css +1204 -0
  255. package/themes/lanna/teal.css +1204 -0
  256. package/themes/lanna/theme.css +1204 -0
  257. package/themes/lanna/violet.css +1204 -0
  258. package/themes/lanna/wira.css +1204 -0
  259. package/themes/lanna/yellow.css +1204 -0
  260. package/themes/mali/amber.css +30 -1
  261. package/themes/mali/blue.css +30 -1
  262. package/themes/mali/cyan.css +30 -1
  263. package/themes/mali/emerald.css +30 -1
  264. package/themes/mali/fuchsia.css +30 -1
  265. package/themes/mali/green.css +30 -1
  266. package/themes/mali/indigo.css +30 -1
  267. package/themes/mali/lime.css +30 -1
  268. package/themes/mali/orange.css +30 -1
  269. package/themes/mali/pink.css +30 -1
  270. package/themes/mali/purple.css +30 -1
  271. package/themes/mali/red.css +30 -1
  272. package/themes/mali/rose.css +30 -1
  273. package/themes/mali/sky.css +30 -1
  274. package/themes/mali/teal.css +30 -1
  275. package/themes/mali/theme.css +30 -1
  276. package/themes/mali/violet.css +30 -1
  277. package/themes/mali/wira.css +30 -1
  278. package/themes/mali/yellow.css +30 -1
  279. package/themes/material/amber.css +30 -1
  280. package/themes/material/blue.css +30 -1
  281. package/themes/material/cyan.css +30 -1
  282. package/themes/material/emerald.css +30 -1
  283. package/themes/material/fuchsia.css +30 -1
  284. package/themes/material/green.css +30 -1
  285. package/themes/material/indigo.css +30 -1
  286. package/themes/material/lime.css +30 -1
  287. package/themes/material/orange.css +30 -1
  288. package/themes/material/pink.css +30 -1
  289. package/themes/material/purple.css +30 -1
  290. package/themes/material/red.css +30 -1
  291. package/themes/material/rose.css +30 -1
  292. package/themes/material/sky.css +30 -1
  293. package/themes/material/teal.css +30 -1
  294. package/themes/material/theme.css +30 -1
  295. package/themes/material/violet.css +30 -1
  296. package/themes/material/wira.css +30 -1
  297. package/themes/material/yellow.css +30 -1
  298. package/themes/nakhon/amber.css +1204 -0
  299. package/themes/nakhon/blue.css +1204 -0
  300. package/themes/nakhon/cyan.css +1204 -0
  301. package/themes/nakhon/emerald.css +1204 -0
  302. package/themes/nakhon/fuchsia.css +1204 -0
  303. package/themes/nakhon/green.css +1204 -0
  304. package/themes/nakhon/indigo.css +1204 -0
  305. package/themes/nakhon/lime.css +1204 -0
  306. package/themes/nakhon/orange.css +1204 -0
  307. package/themes/nakhon/pink.css +1204 -0
  308. package/themes/nakhon/purple.css +1204 -0
  309. package/themes/nakhon/red.css +1204 -0
  310. package/themes/nakhon/rose.css +1204 -0
  311. package/themes/nakhon/sky.css +1204 -0
  312. package/themes/nakhon/teal.css +1204 -0
  313. package/themes/nakhon/theme.css +1204 -0
  314. package/themes/nakhon/violet.css +1204 -0
  315. package/themes/nakhon/wira.css +1204 -0
  316. package/themes/nakhon/yellow.css +1204 -0
  317. package/themes/phet/amber.css +30 -1
  318. package/themes/phet/blue.css +30 -1
  319. package/themes/phet/cyan.css +30 -1
  320. package/themes/phet/emerald.css +30 -1
  321. package/themes/phet/fuchsia.css +30 -1
  322. package/themes/phet/green.css +30 -1
  323. package/themes/phet/indigo.css +30 -1
  324. package/themes/phet/lime.css +30 -1
  325. package/themes/phet/orange.css +30 -1
  326. package/themes/phet/pink.css +30 -1
  327. package/themes/phet/purple.css +30 -1
  328. package/themes/phet/red.css +30 -1
  329. package/themes/phet/rose.css +30 -1
  330. package/themes/phet/sky.css +30 -1
  331. package/themes/phet/teal.css +30 -1
  332. package/themes/phet/theme.css +30 -1
  333. package/themes/phet/violet.css +30 -1
  334. package/themes/phet/wira.css +30 -1
  335. package/themes/phet/yellow.css +30 -1
  336. package/themes/siam/amber.css +1204 -0
  337. package/themes/siam/blue.css +1204 -0
  338. package/themes/siam/cyan.css +1204 -0
  339. package/themes/siam/emerald.css +1204 -0
  340. package/themes/siam/fuchsia.css +1204 -0
  341. package/themes/siam/green.css +1204 -0
  342. package/themes/siam/indigo.css +1204 -0
  343. package/themes/siam/lime.css +1204 -0
  344. package/themes/siam/orange.css +1204 -0
  345. package/themes/siam/pink.css +1204 -0
  346. package/themes/siam/purple.css +1204 -0
  347. package/themes/siam/red.css +1204 -0
  348. package/themes/siam/rose.css +1204 -0
  349. package/themes/siam/sky.css +1204 -0
  350. package/themes/siam/teal.css +1204 -0
  351. package/themes/siam/theme.css +1204 -0
  352. package/themes/siam/violet.css +1204 -0
  353. package/themes/siam/wira.css +1204 -0
  354. package/themes/siam/yellow.css +1204 -0
  355. package/themes/sila/amber.css +30 -1
  356. package/themes/sila/blue.css +30 -1
  357. package/themes/sila/cyan.css +30 -1
  358. package/themes/sila/emerald.css +30 -1
  359. package/themes/sila/fuchsia.css +30 -1
  360. package/themes/sila/green.css +30 -1
  361. package/themes/sila/indigo.css +30 -1
  362. package/themes/sila/lime.css +30 -1
  363. package/themes/sila/orange.css +30 -1
  364. package/themes/sila/pink.css +30 -1
  365. package/themes/sila/purple.css +30 -1
  366. package/themes/sila/red.css +30 -1
  367. package/themes/sila/rose.css +30 -1
  368. package/themes/sila/sky.css +30 -1
  369. package/themes/sila/teal.css +30 -1
  370. package/themes/sila/theme.css +30 -1
  371. package/themes/sila/violet.css +30 -1
  372. package/themes/sila/wira.css +30 -1
  373. package/themes/sila/yellow.css +30 -1
  374. package/themes/wira/amber.css +1204 -0
  375. package/themes/wira/blue.css +1204 -0
  376. package/themes/wira/cyan.css +1204 -0
  377. package/themes/wira/emerald.css +1204 -0
  378. package/themes/wira/fuchsia.css +1204 -0
  379. package/themes/wira/green.css +1204 -0
  380. package/themes/wira/indigo.css +1204 -0
  381. package/themes/wira/lime.css +1204 -0
  382. package/themes/wira/orange.css +1204 -0
  383. package/themes/wira/pink.css +1204 -0
  384. package/themes/wira/purple.css +1204 -0
  385. package/themes/wira/red.css +1204 -0
  386. package/themes/wira/rose.css +1204 -0
  387. package/themes/wira/sky.css +1204 -0
  388. package/themes/wira/teal.css +1204 -0
  389. package/themes/wira/theme.css +1204 -0
  390. package/themes/wira/violet.css +1204 -0
  391. package/themes/wira/wira.css +1204 -0
  392. package/themes/wira/yellow.css +1204 -0
  393. package/types/wirabyte-ui-accordion.d.ts +124 -0
  394. package/types/wirabyte-ui-alert.d.ts +254 -0
  395. package/types/wirabyte-ui-animate.d.ts +100 -0
  396. package/types/wirabyte-ui-api.d.ts +16 -0
  397. package/types/wirabyte-ui-asidemenu.d.ts +233 -0
  398. package/types/wirabyte-ui-autocomplete.d.ts +212 -0
  399. package/types/wirabyte-ui-avatar.d.ts +54 -0
  400. package/types/wirabyte-ui-badge.d.ts +66 -0
  401. package/types/wirabyte-ui-blockui.d.ts +51 -0
  402. package/types/wirabyte-ui-bottombar.d.ts +91 -0
  403. package/types/wirabyte-ui-breadcrumb.d.ts +54 -0
  404. package/types/wirabyte-ui-button.d.ts +132 -0
  405. package/types/wirabyte-ui-card.d.ts +66 -0
  406. package/types/wirabyte-ui-carousel.d.ts +202 -0
  407. package/types/wirabyte-ui-chart.d.ts +412 -0
  408. package/types/wirabyte-ui-chartjs.d.ts +98 -0
  409. package/types/wirabyte-ui-chat.d.ts +192 -0
  410. package/types/wirabyte-ui-checkbox.d.ts +65 -0
  411. package/types/wirabyte-ui-chip.d.ts +40 -0
  412. package/types/wirabyte-ui-colorpicker.d.ts +98 -0
  413. package/types/wirabyte-ui-config.d.ts +347 -0
  414. package/types/wirabyte-ui-confirmdialog.d.ts +193 -0
  415. package/types/wirabyte-ui-contextmenu.d.ts +57 -0
  416. package/types/wirabyte-ui-core.d.ts +4355 -0
  417. package/types/wirabyte-ui-datepicker.d.ts +251 -0
  418. package/types/wirabyte-ui-descriptions.d.ts +67 -0
  419. package/types/wirabyte-ui-dialog.d.ts +273 -0
  420. package/types/wirabyte-ui-divider.d.ts +34 -0
  421. package/types/wirabyte-ui-dock.d.ts +100 -0
  422. package/types/wirabyte-ui-dragdrop.d.ts +74 -0
  423. package/types/wirabyte-ui-drawer.d.ts +113 -0
  424. package/types/wirabyte-ui-editor.d.ts +500 -0
  425. package/types/wirabyte-ui-emptystate.d.ts +55 -0
  426. package/types/wirabyte-ui-errorpage.d.ts +84 -0
  427. package/types/wirabyte-ui-excel.d.ts +29 -0
  428. package/types/wirabyte-ui-fieldset.d.ts +40 -0
  429. package/types/wirabyte-ui-fileupload.d.ts +251 -0
  430. package/types/wirabyte-ui-floatlabel.d.ts +33 -0
  431. package/types/wirabyte-ui-flow.d.ts +1343 -0
  432. package/types/wirabyte-ui-galleria.d.ts +173 -0
  433. package/types/wirabyte-ui-i18n.d.ts +179 -0
  434. package/types/wirabyte-ui-iconfield.d.ts +40 -0
  435. package/types/wirabyte-ui-image.d.ts +100 -0
  436. package/types/wirabyte-ui-imagecompare.d.ts +78 -0
  437. package/types/wirabyte-ui-imagecropper.d.ts +396 -0
  438. package/types/wirabyte-ui-inplace.d.ts +69 -0
  439. package/types/wirabyte-ui-inputgroup.d.ts +36 -0
  440. package/types/wirabyte-ui-inputmask.d.ts +134 -0
  441. package/types/wirabyte-ui-inputnumber.d.ts +126 -0
  442. package/types/wirabyte-ui-inputotp.d.ts +139 -0
  443. package/types/wirabyte-ui-inputtext.d.ts +38 -0
  444. package/types/wirabyte-ui-keyfilter.d.ts +40 -0
  445. package/types/wirabyte-ui-knob.d.ts +104 -0
  446. package/types/wirabyte-ui-listbox.d.ts +197 -0
  447. package/types/wirabyte-ui-menu.d.ts +116 -0
  448. package/types/wirabyte-ui-menubar.d.ts +158 -0
  449. package/types/wirabyte-ui-message.d.ts +110 -0
  450. package/types/wirabyte-ui-metergroup.d.ts +122 -0
  451. package/types/wirabyte-ui-multiselect.d.ts +267 -0
  452. package/types/wirabyte-ui-navbar.d.ts +184 -0
  453. package/types/wirabyte-ui-orderlist.d.ts +166 -0
  454. package/types/wirabyte-ui-organizationchart.d.ts +98 -0
  455. package/types/wirabyte-ui-paginator.d.ts +122 -0
  456. package/types/wirabyte-ui-panel.d.ts +57 -0
  457. package/types/wirabyte-ui-panelmenu.d.ts +70 -0
  458. package/types/wirabyte-ui-password.d.ts +98 -0
  459. package/types/wirabyte-ui-picklist.d.ts +309 -0
  460. package/types/wirabyte-ui-popover.d.ts +81 -0
  461. package/types/wirabyte-ui-presets.d.ts +1 -0
  462. package/types/wirabyte-ui-progressbar.d.ts +75 -0
  463. package/types/wirabyte-ui-progressspinner.d.ts +65 -0
  464. package/types/wirabyte-ui-radiobutton.d.ts +89 -0
  465. package/types/wirabyte-ui-rating.d.ts +54 -0
  466. package/types/wirabyte-ui-result.d.ts +49 -0
  467. package/types/wirabyte-ui-ripple.d.ts +25 -0
  468. package/types/wirabyte-ui-scheduler.d.ts +199 -0
  469. package/types/wirabyte-ui-scroller.d.ts +145 -0
  470. package/types/wirabyte-ui-scrollpanel.d.ts +37 -0
  471. package/types/wirabyte-ui-select.d.ts +250 -0
  472. package/types/wirabyte-ui-selectbutton.d.ts +91 -0
  473. package/types/wirabyte-ui-signaturepad.d.ts +108 -0
  474. package/types/wirabyte-ui-sitefooter.d.ts +81 -0
  475. package/types/wirabyte-ui-skeleton.d.ts +35 -0
  476. package/types/wirabyte-ui-slider.d.ts +90 -0
  477. package/types/wirabyte-ui-splitbutton.d.ts +85 -0
  478. package/types/wirabyte-ui-splitter.d.ts +146 -0
  479. package/types/wirabyte-ui-stat.d.ts +72 -0
  480. package/types/wirabyte-ui-stepper.d.ts +251 -0
  481. package/types/wirabyte-ui-steps.d.ts +68 -0
  482. package/types/wirabyte-ui-table.d.ts +1108 -0
  483. package/types/wirabyte-ui-tabmenu.d.ts +1 -0
  484. package/types/wirabyte-ui-tabs.d.ts +229 -0
  485. package/types/wirabyte-ui-tag.d.ts +35 -0
  486. package/types/wirabyte-ui-terminal.d.ts +89 -0
  487. package/types/wirabyte-ui-textarea.d.ts +39 -0
  488. package/types/wirabyte-ui-thai.d.ts +67 -0
  489. package/types/wirabyte-ui-tieredmenu.d.ts +100 -0
  490. package/types/wirabyte-ui-timeline.d.ts +54 -0
  491. package/types/wirabyte-ui-toast.d.ts +151 -0
  492. package/types/wirabyte-ui-togglebutton.d.ts +62 -0
  493. package/types/wirabyte-ui-toggleswitch.d.ts +57 -0
  494. package/types/wirabyte-ui-toolbar.d.ts +40 -0
  495. package/types/wirabyte-ui-tooltip.d.ts +112 -0
  496. package/types/wirabyte-ui-tree.d.ts +160 -0
  497. package/types/wirabyte-ui-treeselect.d.ts +150 -0
  498. package/types/wirabyte-ui-validation.d.ts +81 -0
  499. package/types/wirabyte-ui.d.ts +4 -0
  500. package/accordion/accordion.component.d.ts +0 -102
  501. package/accordion/accordion.module.d.ts +0 -9
  502. package/accordion/accordion.types.d.ts +0 -10
  503. package/accordion/index.d.ts +0 -5
  504. package/accordion/public-api.d.ts +0 -3
  505. package/alert/alert-dialog.base.d.ts +0 -79
  506. package/alert/alert-dialog.component.d.ts +0 -8
  507. package/alert/alert.module.d.ts +0 -8
  508. package/alert/alert.service.d.ts +0 -73
  509. package/alert/alert.types.d.ts +0 -87
  510. package/alert/index.d.ts +0 -5
  511. package/alert/public-api.d.ts +0 -5
  512. package/animate/animate.directive.d.ts +0 -34
  513. package/animate/animate.module.d.ts +0 -11
  514. package/animate/animate.service.d.ts +0 -36
  515. package/animate/animate.styles.d.ts +0 -2
  516. package/animate/animate.types.d.ts +0 -20
  517. package/animate/index.d.ts +0 -5
  518. package/animate/public-api.d.ts +0 -4
  519. package/api/index.d.ts +0 -5
  520. package/api/public-api.d.ts +0 -15
  521. package/api/shared.module.d.ts +0 -8
  522. package/asidemenu/asidemenu.component.d.ts +0 -221
  523. package/asidemenu/asidemenu.module.d.ts +0 -9
  524. package/asidemenu/index.d.ts +0 -5
  525. package/asidemenu/public-api.d.ts +0 -2
  526. package/autocomplete/autocomplete.base.d.ts +0 -181
  527. package/autocomplete/autocomplete.component.d.ts +0 -10
  528. package/autocomplete/autocomplete.module.d.ts +0 -9
  529. package/autocomplete/autocomplete.types.d.ts +0 -10
  530. package/autocomplete/index.d.ts +0 -5
  531. package/autocomplete/public-api.d.ts +0 -4
  532. package/avatar/avatar.component.d.ts +0 -36
  533. package/avatar/avatar.module.d.ts +0 -8
  534. package/avatar/avatar.types.d.ts +0 -2
  535. package/avatar/index.d.ts +0 -5
  536. package/avatar/public-api.d.ts +0 -3
  537. package/badge/badge.component.d.ts +0 -20
  538. package/badge/badge.directive.d.ts +0 -32
  539. package/badge/badge.module.d.ts +0 -9
  540. package/badge/badge.styles.d.ts +0 -2
  541. package/badge/badge.types.d.ts +0 -3
  542. package/badge/index.d.ts +0 -5
  543. package/badge/public-api.d.ts +0 -4
  544. package/blockui/blockui.component.d.ts +0 -41
  545. package/blockui/blockui.module.d.ts +0 -8
  546. package/blockui/index.d.ts +0 -5
  547. package/blockui/public-api.d.ts +0 -2
  548. package/bottombar/bottombar.component.d.ts +0 -79
  549. package/bottombar/bottombar.module.d.ts +0 -9
  550. package/bottombar/index.d.ts +0 -5
  551. package/bottombar/public-api.d.ts +0 -2
  552. package/breadcrumb/breadcrumb.component.d.ts +0 -41
  553. package/breadcrumb/breadcrumb.module.d.ts +0 -8
  554. package/breadcrumb/index.d.ts +0 -5
  555. package/breadcrumb/public-api.d.ts +0 -2
  556. package/button/button-class.d.ts +0 -8
  557. package/button/button.component.d.ts +0 -49
  558. package/button/button.directive.d.ts +0 -53
  559. package/button/button.module.d.ts +0 -9
  560. package/button/button.styles.d.ts +0 -2
  561. package/button/button.types.d.ts +0 -8
  562. package/button/index.d.ts +0 -5
  563. package/button/public-api.d.ts +0 -7
  564. package/card/card-slots.d.ts +0 -11
  565. package/card/card.component.d.ts +0 -38
  566. package/card/card.module.d.ts +0 -10
  567. package/card/card.types.d.ts +0 -5
  568. package/card/index.d.ts +0 -5
  569. package/card/public-api.d.ts +0 -4
  570. package/carousel/carousel.component.d.ts +0 -169
  571. package/carousel/carousel.module.d.ts +0 -10
  572. package/carousel/carousel.types.d.ts +0 -21
  573. package/carousel/index.d.ts +0 -5
  574. package/carousel/public-api.d.ts +0 -3
  575. package/chart/chart.component.d.ts +0 -11
  576. package/chart/chart.module.d.ts +0 -8
  577. package/chart/index.d.ts +0 -5
  578. package/chart/public-api.d.ts +0 -3
  579. package/chartjs/chartjs.base.d.ts +0 -70
  580. package/chartjs/chartjs.component.d.ts +0 -10
  581. package/chartjs/chartjs.module.d.ts +0 -8
  582. package/chartjs/chartjs.types.d.ts +0 -8
  583. package/chartjs/index.d.ts +0 -5
  584. package/chartjs/public-api.d.ts +0 -4
  585. package/checkbox/checkbox.component.d.ts +0 -47
  586. package/checkbox/checkbox.module.d.ts +0 -8
  587. package/checkbox/checkbox.styles.d.ts +0 -2
  588. package/checkbox/checkbox.types.d.ts +0 -4
  589. package/checkbox/index.d.ts +0 -5
  590. package/checkbox/public-api.d.ts +0 -5
  591. package/chip/chip.component.d.ts +0 -30
  592. package/chip/chip.module.d.ts +0 -8
  593. package/chip/index.d.ts +0 -5
  594. package/chip/public-api.d.ts +0 -2
  595. package/colorpicker/colorpicker.component.d.ts +0 -87
  596. package/colorpicker/colorpicker.module.d.ts +0 -8
  597. package/colorpicker/index.d.ts +0 -5
  598. package/colorpicker/public-api.d.ts +0 -2
  599. package/config/forms.d.ts +0 -17
  600. package/config/index.d.ts +0 -5
  601. package/config/initializer.d.ts +0 -3
  602. package/config/menu-item.d.ts +0 -52
  603. package/config/options.d.ts +0 -48
  604. package/config/popup.d.ts +0 -48
  605. package/config/provide.d.ts +0 -23
  606. package/config/public-api.d.ts +0 -17
  607. package/config/ripple.d.ts +0 -2
  608. package/config/scroll-lock.d.ts +0 -5
  609. package/config/severity.d.ts +0 -5
  610. package/config/style-loader.d.ts +0 -12
  611. package/config/template.d.ts +0 -19
  612. package/config/theme.service.d.ts +0 -46
  613. package/config/version-guard.d.ts +0 -14
  614. package/config/version.d.ts +0 -6
  615. package/config/wu-config.service.d.ts +0 -24
  616. package/confirmdialog/confirmation.service.d.ts +0 -25
  617. package/confirmdialog/confirmdialog.base.d.ts +0 -110
  618. package/confirmdialog/confirmdialog.component.d.ts +0 -11
  619. package/confirmdialog/confirmdialog.module.d.ts +0 -9
  620. package/confirmdialog/confirmdialog.types.d.ts +0 -37
  621. package/confirmdialog/index.d.ts +0 -5
  622. package/confirmdialog/public-api.d.ts +0 -5
  623. package/contextmenu/contextmenu.component.d.ts +0 -47
  624. package/contextmenu/contextmenu.module.d.ts +0 -8
  625. package/contextmenu/index.d.ts +0 -5
  626. package/contextmenu/public-api.d.ts +0 -2
  627. package/core/carousel.d.ts +0 -27
  628. package/core/catalog.d.ts +0 -446
  629. package/core/chart/format.d.ts +0 -19
  630. package/core/chart/index.d.ts +0 -6
  631. package/core/chart/kinds.d.ts +0 -78
  632. package/core/chart/model.d.ts +0 -500
  633. package/core/chart/more.d.ts +0 -33
  634. package/core/chart/paths.d.ts +0 -41
  635. package/core/chart/scale.d.ts +0 -22
  636. package/core/color.d.ts +0 -31
  637. package/core/colorpicker.d.ts +0 -23
  638. package/core/compat.d.ts +0 -11
  639. package/core/config.d.ts +0 -64
  640. package/core/date.d.ts +0 -130
  641. package/core/datepicker.d.ts +0 -184
  642. package/core/dock.d.ts +0 -6
  643. package/core/editor.d.ts +0 -117
  644. package/core/errorpage.d.ts +0 -15
  645. package/core/excel.d.ts +0 -239
  646. package/core/exporters.d.ts +0 -18
  647. package/core/families.d.ts +0 -13
  648. package/core/fileupload.d.ts +0 -24
  649. package/core/flow/changes.d.ts +0 -63
  650. package/core/flow/edges.d.ts +0 -52
  651. package/core/flow/export.d.ts +0 -56
  652. package/core/flow/geometry.d.ts +0 -117
  653. package/core/flow/graph.d.ts +0 -104
  654. package/core/flow/history.d.ts +0 -54
  655. package/core/flow/index.d.ts +0 -13
  656. package/core/flow/interaction.d.ts +0 -140
  657. package/core/flow/layout.d.ts +0 -57
  658. package/core/flow/paths.d.ts +0 -76
  659. package/core/flow/text.d.ts +0 -18
  660. package/core/flow/types.d.ts +0 -217
  661. package/core/flow/viewport.d.ts +0 -48
  662. package/core/i18n.d.ts +0 -24
  663. package/core/imagecompare.d.ts +0 -12
  664. package/core/imagecropper.d.ts +0 -183
  665. package/core/index.d.ts +0 -39
  666. package/core/inputotp.d.ts +0 -20
  667. package/core/knob.d.ts +0 -28
  668. package/core/mask.d.ts +0 -43
  669. package/core/menu.d.ts +0 -29
  670. package/core/number.d.ts +0 -66
  671. package/core/organizationchart.d.ts +0 -39
  672. package/core/overrides.d.ts +0 -109
  673. package/core/picklist.d.ts +0 -81
  674. package/core/select.d.ts +0 -44
  675. package/core/splitter.d.ts +0 -17
  676. package/core/table.d.ts +0 -48
  677. package/core/terminal.d.ts +0 -12
  678. package/core/thai/buddhist.d.ts +0 -22
  679. package/core/thai/locale.d.ts +0 -358
  680. package/core/thai/text.d.ts +0 -32
  681. package/core/thai/thai-id.d.ts +0 -6
  682. package/core/tokens.d.ts +0 -69
  683. package/core/tree.d.ts +0 -50
  684. package/core/validation.d.ts +0 -18
  685. package/datepicker/datepicker.component.d.ts +0 -230
  686. package/datepicker/datepicker.module.d.ts +0 -8
  687. package/datepicker/datepicker.types.d.ts +0 -10
  688. package/datepicker/index.d.ts +0 -5
  689. package/datepicker/public-api.d.ts +0 -3
  690. package/dialog/dialog.base.d.ts +0 -147
  691. package/dialog/dialog.component.d.ts +0 -11
  692. package/dialog/dialog.module.d.ts +0 -10
  693. package/dialog/dialog.service.d.ts +0 -104
  694. package/dialog/dialog.types.d.ts +0 -3
  695. package/dialog/index.d.ts +0 -5
  696. package/dialog/public-api.d.ts +0 -5
  697. package/divider/divider.component.d.ts +0 -19
  698. package/divider/divider.module.d.ts +0 -8
  699. package/divider/divider.types.d.ts +0 -4
  700. package/divider/index.d.ts +0 -5
  701. package/divider/public-api.d.ts +0 -3
  702. package/dock/dock.component.d.ts +0 -88
  703. package/dock/dock.module.d.ts +0 -9
  704. package/dock/index.d.ts +0 -5
  705. package/dock/public-api.d.ts +0 -2
  706. package/dragdrop/dragdrop.directive.d.ts +0 -65
  707. package/dragdrop/dragdrop.module.d.ts +0 -8
  708. package/dragdrop/dragdrop.styles.d.ts +0 -2
  709. package/dragdrop/index.d.ts +0 -5
  710. package/dragdrop/public-api.d.ts +0 -2
  711. package/drawer/drawer.component.d.ts +0 -102
  712. package/drawer/drawer.module.d.ts +0 -8
  713. package/drawer/index.d.ts +0 -5
  714. package/drawer/public-api.d.ts +0 -5
  715. package/editor/editor-content.directive.d.ts +0 -10
  716. package/editor/editor-icon.directive.d.ts +0 -8
  717. package/editor/editor.base.d.ts +0 -367
  718. package/editor/editor.component.d.ts +0 -11
  719. package/editor/editor.dom.d.ts +0 -91
  720. package/editor/editor.icons.d.ts +0 -13
  721. package/editor/editor.module.d.ts +0 -10
  722. package/editor/editor.styles.d.ts +0 -2
  723. package/editor/editor.types.d.ts +0 -92
  724. package/editor/index.d.ts +0 -5
  725. package/editor/public-api.d.ts +0 -6
  726. package/emptystate/emptystate.component.d.ts +0 -44
  727. package/emptystate/emptystate.module.d.ts +0 -8
  728. package/emptystate/index.d.ts +0 -5
  729. package/emptystate/public-api.d.ts +0 -2
  730. package/errorpage/errorpage.component.d.ts +0 -73
  731. package/errorpage/errorpage.module.d.ts +0 -8
  732. package/errorpage/index.d.ts +0 -5
  733. package/errorpage/public-api.d.ts +0 -2
  734. package/esm2022/accordion/accordion.component.mjs +0 -285
  735. package/esm2022/accordion/accordion.module.mjs +0 -19
  736. package/esm2022/accordion/accordion.types.mjs +0 -17
  737. package/esm2022/accordion/public-api.mjs +0 -4
  738. package/esm2022/accordion/wirabyte-ui-accordion.mjs +0 -5
  739. package/esm2022/alert/alert-dialog.base.mjs +0 -355
  740. package/esm2022/alert/alert-dialog.component.mjs +0 -21
  741. package/esm2022/alert/alert.module.mjs +0 -17
  742. package/esm2022/alert/alert.service.mjs +0 -142
  743. package/esm2022/alert/alert.types.mjs +0 -2
  744. package/esm2022/alert/public-api.mjs +0 -6
  745. package/esm2022/alert/wirabyte-ui-alert.mjs +0 -5
  746. package/esm2022/animate/animate.directive.mjs +0 -71
  747. package/esm2022/animate/animate.module.mjs +0 -21
  748. package/esm2022/animate/animate.service.mjs +0 -183
  749. package/esm2022/animate/animate.styles.mjs +0 -3
  750. package/esm2022/animate/animate.types.mjs +0 -2
  751. package/esm2022/animate/public-api.mjs +0 -5
  752. package/esm2022/animate/wirabyte-ui-animate.mjs +0 -5
  753. package/esm2022/api/public-api.mjs +0 -11
  754. package/esm2022/api/shared.module.mjs +0 -17
  755. package/esm2022/api/wirabyte-ui-api.mjs +0 -5
  756. package/esm2022/asidemenu/asidemenu.component.mjs +0 -811
  757. package/esm2022/asidemenu/asidemenu.module.mjs +0 -18
  758. package/esm2022/asidemenu/public-api.mjs +0 -3
  759. package/esm2022/asidemenu/wirabyte-ui-asidemenu.mjs +0 -5
  760. package/esm2022/autocomplete/autocomplete.base.mjs +0 -567
  761. package/esm2022/autocomplete/autocomplete.component.mjs +0 -24
  762. package/esm2022/autocomplete/autocomplete.module.mjs +0 -18
  763. package/esm2022/autocomplete/autocomplete.types.mjs +0 -2
  764. package/esm2022/autocomplete/public-api.mjs +0 -5
  765. package/esm2022/autocomplete/wirabyte-ui-autocomplete.mjs +0 -5
  766. package/esm2022/avatar/avatar.component.mjs +0 -68
  767. package/esm2022/avatar/avatar.module.mjs +0 -17
  768. package/esm2022/avatar/avatar.types.mjs +0 -2
  769. package/esm2022/avatar/public-api.mjs +0 -4
  770. package/esm2022/avatar/wirabyte-ui-avatar.mjs +0 -5
  771. package/esm2022/badge/badge.component.mjs +0 -49
  772. package/esm2022/badge/badge.directive.mjs +0 -111
  773. package/esm2022/badge/badge.module.mjs +0 -18
  774. package/esm2022/badge/badge.styles.mjs +0 -3
  775. package/esm2022/badge/badge.types.mjs +0 -2
  776. package/esm2022/badge/public-api.mjs +0 -5
  777. package/esm2022/badge/wirabyte-ui-badge.mjs +0 -5
  778. package/esm2022/blockui/blockui.component.mjs +0 -152
  779. package/esm2022/blockui/blockui.module.mjs +0 -17
  780. package/esm2022/blockui/public-api.mjs +0 -3
  781. package/esm2022/blockui/wirabyte-ui-blockui.mjs +0 -5
  782. package/esm2022/bottombar/bottombar.component.mjs +0 -209
  783. package/esm2022/bottombar/bottombar.module.mjs +0 -18
  784. package/esm2022/bottombar/public-api.mjs +0 -3
  785. package/esm2022/bottombar/wirabyte-ui-bottombar.mjs +0 -5
  786. package/esm2022/breadcrumb/breadcrumb.component.mjs +0 -86
  787. package/esm2022/breadcrumb/breadcrumb.module.mjs +0 -17
  788. package/esm2022/breadcrumb/public-api.mjs +0 -3
  789. package/esm2022/breadcrumb/wirabyte-ui-breadcrumb.mjs +0 -5
  790. package/esm2022/button/button-class.mjs +0 -26
  791. package/esm2022/button/button.component.mjs +0 -110
  792. package/esm2022/button/button.directive.mjs +0 -193
  793. package/esm2022/button/button.module.mjs +0 -18
  794. package/esm2022/button/button.styles.mjs +0 -3
  795. package/esm2022/button/button.types.mjs +0 -2
  796. package/esm2022/button/public-api.mjs +0 -8
  797. package/esm2022/button/wirabyte-ui-button.mjs +0 -5
  798. package/esm2022/card/card-slots.mjs +0 -27
  799. package/esm2022/card/card.component.mjs +0 -65
  800. package/esm2022/card/card.module.mjs +0 -19
  801. package/esm2022/card/card.types.mjs +0 -2
  802. package/esm2022/card/public-api.mjs +0 -5
  803. package/esm2022/card/wirabyte-ui-card.mjs +0 -5
  804. package/esm2022/carousel/carousel.component.mjs +0 -617
  805. package/esm2022/carousel/carousel.module.mjs +0 -19
  806. package/esm2022/carousel/carousel.types.mjs +0 -2
  807. package/esm2022/carousel/public-api.mjs +0 -4
  808. package/esm2022/carousel/wirabyte-ui-carousel.mjs +0 -5
  809. package/esm2022/chart/chart.component.mjs +0 -42
  810. package/esm2022/chart/chart.module.mjs +0 -17
  811. package/esm2022/chart/public-api.mjs +0 -3
  812. package/esm2022/chart/wirabyte-ui-chart.mjs +0 -5
  813. package/esm2022/chartjs/chartjs.base.mjs +0 -204
  814. package/esm2022/chartjs/chartjs.component.mjs +0 -41
  815. package/esm2022/chartjs/chartjs.module.mjs +0 -17
  816. package/esm2022/chartjs/chartjs.types.mjs +0 -2
  817. package/esm2022/chartjs/public-api.mjs +0 -5
  818. package/esm2022/chartjs/wirabyte-ui-chartjs.mjs +0 -5
  819. package/esm2022/checkbox/checkbox.component.mjs +0 -93
  820. package/esm2022/checkbox/checkbox.module.mjs +0 -17
  821. package/esm2022/checkbox/checkbox.styles.mjs +0 -3
  822. package/esm2022/checkbox/checkbox.types.mjs +0 -2
  823. package/esm2022/checkbox/public-api.mjs +0 -6
  824. package/esm2022/checkbox/wirabyte-ui-checkbox.mjs +0 -5
  825. package/esm2022/chip/chip.component.mjs +0 -59
  826. package/esm2022/chip/chip.module.mjs +0 -17
  827. package/esm2022/chip/public-api.mjs +0 -3
  828. package/esm2022/chip/wirabyte-ui-chip.mjs +0 -5
  829. package/esm2022/colorpicker/colorpicker.component.mjs +0 -308
  830. package/esm2022/colorpicker/colorpicker.module.mjs +0 -17
  831. package/esm2022/colorpicker/public-api.mjs +0 -3
  832. package/esm2022/colorpicker/wirabyte-ui-colorpicker.mjs +0 -5
  833. package/esm2022/config/forms.mjs +0 -38
  834. package/esm2022/config/initializer.mjs +0 -6
  835. package/esm2022/config/menu-item.mjs +0 -2
  836. package/esm2022/config/options.mjs +0 -3
  837. package/esm2022/config/popup.mjs +0 -153
  838. package/esm2022/config/provide.mjs +0 -45
  839. package/esm2022/config/public-api.mjs +0 -17
  840. package/esm2022/config/ripple.mjs +0 -13
  841. package/esm2022/config/scroll-lock.mjs +0 -31
  842. package/esm2022/config/severity.mjs +0 -9
  843. package/esm2022/config/style-loader.mjs +0 -32
  844. package/esm2022/config/template.mjs +0 -46
  845. package/esm2022/config/theme.service.mjs +0 -161
  846. package/esm2022/config/version-guard.mjs +0 -43
  847. package/esm2022/config/version.mjs +0 -3
  848. package/esm2022/config/wirabyte-ui-config.mjs +0 -5
  849. package/esm2022/config/wu-config.service.mjs +0 -50
  850. package/esm2022/confirmdialog/confirmation.service.mjs +0 -78
  851. package/esm2022/confirmdialog/confirmdialog.base.mjs +0 -274
  852. package/esm2022/confirmdialog/confirmdialog.component.mjs +0 -22
  853. package/esm2022/confirmdialog/confirmdialog.module.mjs +0 -18
  854. package/esm2022/confirmdialog/confirmdialog.types.mjs +0 -8
  855. package/esm2022/confirmdialog/public-api.mjs +0 -6
  856. package/esm2022/confirmdialog/wirabyte-ui-confirmdialog.mjs +0 -5
  857. package/esm2022/contextmenu/contextmenu.component.mjs +0 -159
  858. package/esm2022/contextmenu/contextmenu.module.mjs +0 -17
  859. package/esm2022/contextmenu/public-api.mjs +0 -3
  860. package/esm2022/contextmenu/wirabyte-ui-contextmenu.mjs +0 -5
  861. package/esm2022/core/carousel.mjs +0 -62
  862. package/esm2022/core/catalog.mjs +0 -203
  863. package/esm2022/core/chart/format.mjs +0 -66
  864. package/esm2022/core/chart/index.mjs +0 -7
  865. package/esm2022/core/chart/kinds.mjs +0 -1336
  866. package/esm2022/core/chart/model.mjs +0 -713
  867. package/esm2022/core/chart/more.mjs +0 -311
  868. package/esm2022/core/chart/paths.mjs +0 -160
  869. package/esm2022/core/chart/scale.mjs +0 -58
  870. package/esm2022/core/color.mjs +0 -94
  871. package/esm2022/core/colorpicker.mjs +0 -73
  872. package/esm2022/core/compat.mjs +0 -149
  873. package/esm2022/core/config.mjs +0 -163
  874. package/esm2022/core/date.mjs +0 -317
  875. package/esm2022/core/datepicker.mjs +0 -526
  876. package/esm2022/core/dock.mjs +0 -14
  877. package/esm2022/core/editor.mjs +0 -271
  878. package/esm2022/core/errorpage.mjs +0 -47
  879. package/esm2022/core/excel.mjs +0 -809
  880. package/esm2022/core/exporters.mjs +0 -241
  881. package/esm2022/core/families.mjs +0 -1756
  882. package/esm2022/core/fileupload.mjs +0 -48
  883. package/esm2022/core/flow/changes.mjs +0 -205
  884. package/esm2022/core/flow/edges.mjs +0 -87
  885. package/esm2022/core/flow/export.mjs +0 -231
  886. package/esm2022/core/flow/geometry.mjs +0 -309
  887. package/esm2022/core/flow/graph.mjs +0 -314
  888. package/esm2022/core/flow/history.mjs +0 -105
  889. package/esm2022/core/flow/index.mjs +0 -14
  890. package/esm2022/core/flow/interaction.mjs +0 -246
  891. package/esm2022/core/flow/layout.mjs +0 -586
  892. package/esm2022/core/flow/paths.mjs +0 -252
  893. package/esm2022/core/flow/text.mjs +0 -68
  894. package/esm2022/core/flow/types.mjs +0 -7
  895. package/esm2022/core/flow/viewport.mjs +0 -133
  896. package/esm2022/core/i18n.mjs +0 -78
  897. package/esm2022/core/imagecompare.mjs +0 -28
  898. package/esm2022/core/imagecropper.mjs +0 -483
  899. package/esm2022/core/index.mjs +0 -40
  900. package/esm2022/core/inputotp.mjs +0 -50
  901. package/esm2022/core/knob.mjs +0 -106
  902. package/esm2022/core/mask.mjs +0 -112
  903. package/esm2022/core/menu.mjs +0 -77
  904. package/esm2022/core/number.mjs +0 -131
  905. package/esm2022/core/organizationchart.mjs +0 -84
  906. package/esm2022/core/overrides.mjs +0 -169
  907. package/esm2022/core/picklist.mjs +0 -248
  908. package/esm2022/core/select.mjs +0 -161
  909. package/esm2022/core/splitter.mjs +0 -63
  910. package/esm2022/core/table.mjs +0 -174
  911. package/esm2022/core/terminal.mjs +0 -29
  912. package/esm2022/core/thai/buddhist.mjs +0 -129
  913. package/esm2022/core/thai/locale.mjs +0 -652
  914. package/esm2022/core/thai/text.mjs +0 -164
  915. package/esm2022/core/thai/thai-id.mjs +0 -22
  916. package/esm2022/core/tokens.mjs +0 -314
  917. package/esm2022/core/tree.mjs +0 -137
  918. package/esm2022/core/validation.mjs +0 -43
  919. package/esm2022/core/wirabyte-ui-core.mjs +0 -5
  920. package/esm2022/datepicker/datepicker.component.mjs +0 -715
  921. package/esm2022/datepicker/datepicker.module.mjs +0 -17
  922. package/esm2022/datepicker/datepicker.types.mjs +0 -2
  923. package/esm2022/datepicker/public-api.mjs +0 -4
  924. package/esm2022/datepicker/wirabyte-ui-datepicker.mjs +0 -5
  925. package/esm2022/dialog/dialog.base.mjs +0 -433
  926. package/esm2022/dialog/dialog.component.mjs +0 -18
  927. package/esm2022/dialog/dialog.module.mjs +0 -19
  928. package/esm2022/dialog/dialog.service.mjs +0 -237
  929. package/esm2022/dialog/dialog.types.mjs +0 -2
  930. package/esm2022/dialog/public-api.mjs +0 -6
  931. package/esm2022/dialog/wirabyte-ui-dialog.mjs +0 -5
  932. package/esm2022/divider/divider.component.mjs +0 -47
  933. package/esm2022/divider/divider.module.mjs +0 -17
  934. package/esm2022/divider/divider.types.mjs +0 -2
  935. package/esm2022/divider/public-api.mjs +0 -4
  936. package/esm2022/divider/wirabyte-ui-divider.mjs +0 -5
  937. package/esm2022/dock/dock.component.mjs +0 -287
  938. package/esm2022/dock/dock.module.mjs +0 -18
  939. package/esm2022/dock/public-api.mjs +0 -3
  940. package/esm2022/dock/wirabyte-ui-dock.mjs +0 -5
  941. package/esm2022/dragdrop/dragdrop.directive.mjs +0 -206
  942. package/esm2022/dragdrop/dragdrop.module.mjs +0 -17
  943. package/esm2022/dragdrop/dragdrop.styles.mjs +0 -3
  944. package/esm2022/dragdrop/public-api.mjs +0 -3
  945. package/esm2022/dragdrop/wirabyte-ui-dragdrop.mjs +0 -5
  946. package/esm2022/drawer/drawer.component.mjs +0 -300
  947. package/esm2022/drawer/drawer.module.mjs +0 -17
  948. package/esm2022/drawer/public-api.mjs +0 -6
  949. package/esm2022/drawer/wirabyte-ui-drawer.mjs +0 -5
  950. package/esm2022/editor/editor-content.directive.mjs +0 -24
  951. package/esm2022/editor/editor-icon.directive.mjs +0 -24
  952. package/esm2022/editor/editor.base.mjs +0 -2082
  953. package/esm2022/editor/editor.component.mjs +0 -20
  954. package/esm2022/editor/editor.dom.mjs +0 -787
  955. package/esm2022/editor/editor.icons.mjs +0 -106
  956. package/esm2022/editor/editor.module.mjs +0 -19
  957. package/esm2022/editor/editor.styles.mjs +0 -3
  958. package/esm2022/editor/editor.types.mjs +0 -6
  959. package/esm2022/editor/public-api.mjs +0 -7
  960. package/esm2022/editor/wirabyte-ui-editor.mjs +0 -5
  961. package/esm2022/emptystate/emptystate.component.mjs +0 -78
  962. package/esm2022/emptystate/emptystate.module.mjs +0 -17
  963. package/esm2022/emptystate/public-api.mjs +0 -3
  964. package/esm2022/emptystate/wirabyte-ui-emptystate.mjs +0 -5
  965. package/esm2022/errorpage/errorpage.component.mjs +0 -163
  966. package/esm2022/errorpage/errorpage.module.mjs +0 -17
  967. package/esm2022/errorpage/public-api.mjs +0 -3
  968. package/esm2022/errorpage/wirabyte-ui-errorpage.mjs +0 -5
  969. package/esm2022/excel/excel.mjs +0 -35
  970. package/esm2022/excel/public-api.mjs +0 -3
  971. package/esm2022/excel/wirabyte-ui-excel.mjs +0 -5
  972. package/esm2022/fieldset/fieldset.component.mjs +0 -53
  973. package/esm2022/fieldset/fieldset.module.mjs +0 -18
  974. package/esm2022/fieldset/public-api.mjs +0 -3
  975. package/esm2022/fieldset/wirabyte-ui-fieldset.mjs +0 -5
  976. package/esm2022/fileupload/fileupload.base.mjs +0 -563
  977. package/esm2022/fileupload/fileupload.component.mjs +0 -19
  978. package/esm2022/fileupload/fileupload.module.mjs +0 -18
  979. package/esm2022/fileupload/fileupload.types.mjs +0 -2
  980. package/esm2022/fileupload/public-api.mjs +0 -5
  981. package/esm2022/fileupload/wirabyte-ui-fileupload.mjs +0 -5
  982. package/esm2022/floatlabel/floatlabel.component.mjs +0 -53
  983. package/esm2022/floatlabel/floatlabel.module.mjs +0 -17
  984. package/esm2022/floatlabel/floatlabel.types.mjs +0 -2
  985. package/esm2022/floatlabel/public-api.mjs +0 -4
  986. package/esm2022/floatlabel/wirabyte-ui-floatlabel.mjs +0 -5
  987. package/esm2022/flow/flow-background.component.mjs +0 -183
  988. package/esm2022/flow/flow-controls.component.mjs +0 -267
  989. package/esm2022/flow/flow-handle.component.mjs +0 -130
  990. package/esm2022/flow/flow-history.directive.mjs +0 -129
  991. package/esm2022/flow/flow-host.mjs +0 -7
  992. package/esm2022/flow/flow-minimap.component.mjs +0 -322
  993. package/esm2022/flow/flow-node-outlet.mjs +0 -148
  994. package/esm2022/flow/flow-node-resizer.component.mjs +0 -208
  995. package/esm2022/flow/flow-node-toolbar.component.mjs +0 -119
  996. package/esm2022/flow/flow-panel.component.mjs +0 -37
  997. package/esm2022/flow/flow-templates.mjs +0 -100
  998. package/esm2022/flow/flow.component.mjs +0 -3245
  999. package/esm2022/flow/flow.module.mjs +0 -69
  1000. package/esm2022/flow/flow.types.mjs +0 -7
  1001. package/esm2022/flow/public-api.mjs +0 -17
  1002. package/esm2022/flow/wirabyte-ui-flow.mjs +0 -5
  1003. package/esm2022/galleria/galleria.component.mjs +0 -480
  1004. package/esm2022/galleria/galleria.module.mjs +0 -17
  1005. package/esm2022/galleria/public-api.mjs +0 -3
  1006. package/esm2022/galleria/wirabyte-ui-galleria.mjs +0 -5
  1007. package/esm2022/i18n/i18n.module.mjs +0 -37
  1008. package/esm2022/i18n/i18n.service.mjs +0 -148
  1009. package/esm2022/i18n/i18n.types.mjs +0 -3
  1010. package/esm2022/i18n/language-switch.component.mjs +0 -91
  1011. package/esm2022/i18n/public-api.mjs +0 -7
  1012. package/esm2022/i18n/translate.pipe.mjs +0 -52
  1013. package/esm2022/i18n/wirabyte-ui-i18n.mjs +0 -5
  1014. package/esm2022/iconfield/iconfield.component.mjs +0 -73
  1015. package/esm2022/iconfield/iconfield.module.mjs +0 -17
  1016. package/esm2022/iconfield/public-api.mjs +0 -3
  1017. package/esm2022/iconfield/wirabyte-ui-iconfield.mjs +0 -5
  1018. package/esm2022/image/image.base.mjs +0 -183
  1019. package/esm2022/image/image.component.mjs +0 -14
  1020. package/esm2022/image/image.module.mjs +0 -18
  1021. package/esm2022/image/public-api.mjs +0 -4
  1022. package/esm2022/image/wirabyte-ui-image.mjs +0 -5
  1023. package/esm2022/imagecompare/imagecompare.component.mjs +0 -200
  1024. package/esm2022/imagecompare/imagecompare.module.mjs +0 -18
  1025. package/esm2022/imagecompare/public-api.mjs +0 -3
  1026. package/esm2022/imagecompare/wirabyte-ui-imagecompare.mjs +0 -5
  1027. package/esm2022/imagecropper/imagecropper.component.mjs +0 -1253
  1028. package/esm2022/imagecropper/imagecropper.module.mjs +0 -17
  1029. package/esm2022/imagecropper/imagecropper.types.mjs +0 -6
  1030. package/esm2022/imagecropper/public-api.mjs +0 -5
  1031. package/esm2022/imagecropper/wirabyte-ui-imagecropper.mjs +0 -5
  1032. package/esm2022/inplace/inplace.component.mjs +0 -145
  1033. package/esm2022/inplace/inplace.module.mjs +0 -17
  1034. package/esm2022/inplace/public-api.mjs +0 -3
  1035. package/esm2022/inplace/wirabyte-ui-inplace.mjs +0 -5
  1036. package/esm2022/inputgroup/inputgroup.component.mjs +0 -61
  1037. package/esm2022/inputgroup/inputgroup.module.mjs +0 -17
  1038. package/esm2022/inputgroup/public-api.mjs +0 -3
  1039. package/esm2022/inputgroup/wirabyte-ui-inputgroup.mjs +0 -5
  1040. package/esm2022/inputmask/inputmask.base.mjs +0 -319
  1041. package/esm2022/inputmask/inputmask.component.mjs +0 -23
  1042. package/esm2022/inputmask/inputmask.module.mjs +0 -17
  1043. package/esm2022/inputmask/public-api.mjs +0 -4
  1044. package/esm2022/inputmask/wirabyte-ui-inputmask.mjs +0 -5
  1045. package/esm2022/inputnumber/inputnumber.component.mjs +0 -255
  1046. package/esm2022/inputnumber/inputnumber.module.mjs +0 -17
  1047. package/esm2022/inputnumber/inputnumber.types.mjs +0 -2
  1048. package/esm2022/inputnumber/public-api.mjs +0 -4
  1049. package/esm2022/inputnumber/wirabyte-ui-inputnumber.mjs +0 -5
  1050. package/esm2022/inputotp/inputotp.component.mjs +0 -344
  1051. package/esm2022/inputotp/inputotp.module.mjs +0 -18
  1052. package/esm2022/inputotp/inputotp.types.mjs +0 -2
  1053. package/esm2022/inputotp/public-api.mjs +0 -4
  1054. package/esm2022/inputotp/wirabyte-ui-inputotp.mjs +0 -5
  1055. package/esm2022/inputtext/inputtext.directive.mjs +0 -54
  1056. package/esm2022/inputtext/inputtext.module.mjs +0 -17
  1057. package/esm2022/inputtext/inputtext.styles.mjs +0 -3
  1058. package/esm2022/inputtext/inputtext.types.mjs +0 -2
  1059. package/esm2022/inputtext/public-api.mjs +0 -6
  1060. package/esm2022/inputtext/wirabyte-ui-inputtext.mjs +0 -5
  1061. package/esm2022/keyfilter/keyfilter.directive.mjs +0 -131
  1062. package/esm2022/keyfilter/keyfilter.module.mjs +0 -17
  1063. package/esm2022/keyfilter/public-api.mjs +0 -3
  1064. package/esm2022/keyfilter/wirabyte-ui-keyfilter.mjs +0 -5
  1065. package/esm2022/knob/knob.component.mjs +0 -207
  1066. package/esm2022/knob/knob.module.mjs +0 -17
  1067. package/esm2022/knob/public-api.mjs +0 -3
  1068. package/esm2022/knob/wirabyte-ui-knob.mjs +0 -5
  1069. package/esm2022/listbox/listbox.component.mjs +0 -520
  1070. package/esm2022/listbox/listbox.module.mjs +0 -17
  1071. package/esm2022/listbox/public-api.mjs +0 -3
  1072. package/esm2022/listbox/wirabyte-ui-listbox.mjs +0 -5
  1073. package/esm2022/menu/menu.base.mjs +0 -320
  1074. package/esm2022/menu/menu.component.mjs +0 -19
  1075. package/esm2022/menu/menu.module.mjs +0 -18
  1076. package/esm2022/menu/public-api.mjs +0 -4
  1077. package/esm2022/menu/wirabyte-ui-menu.mjs +0 -5
  1078. package/esm2022/menubar/menubar.base.mjs +0 -568
  1079. package/esm2022/menubar/menubar.component.mjs +0 -19
  1080. package/esm2022/menubar/menubar.module.mjs +0 -18
  1081. package/esm2022/menubar/public-api.mjs +0 -4
  1082. package/esm2022/menubar/wirabyte-ui-menubar.mjs +0 -5
  1083. package/esm2022/message/message.component.mjs +0 -78
  1084. package/esm2022/message/message.module.mjs +0 -20
  1085. package/esm2022/message/message.types.mjs +0 -2
  1086. package/esm2022/message/messages.base.mjs +0 -109
  1087. package/esm2022/message/messages.component.mjs +0 -66
  1088. package/esm2022/message/public-api.mjs +0 -6
  1089. package/esm2022/message/wirabyte-ui-message.mjs +0 -5
  1090. package/esm2022/metergroup/metergroup.component.mjs +0 -87
  1091. package/esm2022/metergroup/metergroup.module.mjs +0 -17
  1092. package/esm2022/metergroup/metergroup.types.mjs +0 -26
  1093. package/esm2022/metergroup/public-api.mjs +0 -4
  1094. package/esm2022/metergroup/wirabyte-ui-metergroup.mjs +0 -5
  1095. package/esm2022/multiselect/multiselect.base.mjs +0 -732
  1096. package/esm2022/multiselect/multiselect.component.mjs +0 -26
  1097. package/esm2022/multiselect/multiselect.module.mjs +0 -18
  1098. package/esm2022/multiselect/multiselect.styles.mjs +0 -3
  1099. package/esm2022/multiselect/multiselect.types.mjs +0 -2
  1100. package/esm2022/multiselect/public-api.mjs +0 -6
  1101. package/esm2022/multiselect/wirabyte-ui-multiselect.mjs +0 -5
  1102. package/esm2022/navbar/navbar.component.mjs +0 -460
  1103. package/esm2022/navbar/navbar.module.mjs +0 -18
  1104. package/esm2022/navbar/public-api.mjs +0 -3
  1105. package/esm2022/navbar/wirabyte-ui-navbar.mjs +0 -5
  1106. package/esm2022/orderlist/orderlist.base.mjs +0 -411
  1107. package/esm2022/orderlist/orderlist.component.mjs +0 -17
  1108. package/esm2022/orderlist/orderlist.module.mjs +0 -18
  1109. package/esm2022/orderlist/orderlist.types.mjs +0 -2
  1110. package/esm2022/orderlist/public-api.mjs +0 -5
  1111. package/esm2022/orderlist/wirabyte-ui-orderlist.mjs +0 -5
  1112. package/esm2022/organizationchart/organizationchart.component.mjs +0 -200
  1113. package/esm2022/organizationchart/organizationchart.module.mjs +0 -18
  1114. package/esm2022/organizationchart/organizationchart.types.mjs +0 -2
  1115. package/esm2022/organizationchart/public-api.mjs +0 -4
  1116. package/esm2022/organizationchart/wirabyte-ui-organizationchart.mjs +0 -5
  1117. package/esm2022/paginator/paginator.base.mjs +0 -188
  1118. package/esm2022/paginator/paginator.component.mjs +0 -20
  1119. package/esm2022/paginator/paginator.module.mjs +0 -17
  1120. package/esm2022/paginator/paginator.types.mjs +0 -2
  1121. package/esm2022/paginator/public-api.mjs +0 -5
  1122. package/esm2022/paginator/wirabyte-ui-paginator.mjs +0 -5
  1123. package/esm2022/panel/panel.component.mjs +0 -75
  1124. package/esm2022/panel/panel.module.mjs +0 -19
  1125. package/esm2022/panel/panel.types.mjs +0 -2
  1126. package/esm2022/panel/public-api.mjs +0 -4
  1127. package/esm2022/panel/wirabyte-ui-panel.mjs +0 -5
  1128. package/esm2022/panelmenu/panelmenu.base.mjs +0 -181
  1129. package/esm2022/panelmenu/panelmenu.component.mjs +0 -15
  1130. package/esm2022/panelmenu/panelmenu.module.mjs +0 -18
  1131. package/esm2022/panelmenu/public-api.mjs +0 -4
  1132. package/esm2022/panelmenu/wirabyte-ui-panelmenu.mjs +0 -5
  1133. package/esm2022/password/password.component.mjs +0 -171
  1134. package/esm2022/password/password.module.mjs +0 -17
  1135. package/esm2022/password/password.types.mjs +0 -14
  1136. package/esm2022/password/public-api.mjs +0 -4
  1137. package/esm2022/password/wirabyte-ui-password.mjs +0 -5
  1138. package/esm2022/picklist/list-drag.mjs +0 -259
  1139. package/esm2022/picklist/picklist.base.mjs +0 -649
  1140. package/esm2022/picklist/picklist.component.mjs +0 -17
  1141. package/esm2022/picklist/picklist.module.mjs +0 -18
  1142. package/esm2022/picklist/picklist.styles.mjs +0 -3
  1143. package/esm2022/picklist/picklist.types.mjs +0 -2
  1144. package/esm2022/picklist/public-api.mjs +0 -8
  1145. package/esm2022/picklist/wirabyte-ui-picklist.mjs +0 -5
  1146. package/esm2022/popover/popover.base.mjs +0 -171
  1147. package/esm2022/popover/popover.component.mjs +0 -17
  1148. package/esm2022/popover/popover.module.mjs +0 -18
  1149. package/esm2022/popover/public-api.mjs +0 -4
  1150. package/esm2022/popover/wirabyte-ui-popover.mjs +0 -5
  1151. package/esm2022/presets/public-api.mjs +0 -5
  1152. package/esm2022/presets/wirabyte-ui-presets.mjs +0 -5
  1153. package/esm2022/progressbar/progressbar.component.mjs +0 -75
  1154. package/esm2022/progressbar/progressbar.module.mjs +0 -17
  1155. package/esm2022/progressbar/progressbar.types.mjs +0 -19
  1156. package/esm2022/progressbar/public-api.mjs +0 -4
  1157. package/esm2022/progressbar/wirabyte-ui-progressbar.mjs +0 -5
  1158. package/esm2022/progressspinner/progressspinner.component.mjs +0 -78
  1159. package/esm2022/progressspinner/progressspinner.module.mjs +0 -17
  1160. package/esm2022/progressspinner/progressspinner.types.mjs +0 -27
  1161. package/esm2022/progressspinner/public-api.mjs +0 -4
  1162. package/esm2022/progressspinner/wirabyte-ui-progressspinner.mjs +0 -5
  1163. package/esm2022/public-api.mjs +0 -3
  1164. package/esm2022/radiobutton/public-api.mjs +0 -7
  1165. package/esm2022/radiobutton/radio-registry.mjs +0 -40
  1166. package/esm2022/radiobutton/radiobutton.component.mjs +0 -88
  1167. package/esm2022/radiobutton/radiobutton.module.mjs +0 -17
  1168. package/esm2022/radiobutton/radiobutton.styles.mjs +0 -3
  1169. package/esm2022/radiobutton/radiobutton.types.mjs +0 -2
  1170. package/esm2022/radiobutton/wirabyte-ui-radiobutton.mjs +0 -5
  1171. package/esm2022/rating/public-api.mjs +0 -4
  1172. package/esm2022/rating/rating.component.mjs +0 -80
  1173. package/esm2022/rating/rating.module.mjs +0 -17
  1174. package/esm2022/rating/rating.types.mjs +0 -2
  1175. package/esm2022/rating/wirabyte-ui-rating.mjs +0 -5
  1176. package/esm2022/result/public-api.mjs +0 -3
  1177. package/esm2022/result/result.component.mjs +0 -72
  1178. package/esm2022/result/result.module.mjs +0 -17
  1179. package/esm2022/result/wirabyte-ui-result.mjs +0 -5
  1180. package/esm2022/ripple/public-api.mjs +0 -3
  1181. package/esm2022/ripple/ripple.directive.mjs +0 -43
  1182. package/esm2022/ripple/ripple.module.mjs +0 -17
  1183. package/esm2022/ripple/ripple.styles.mjs +0 -3
  1184. package/esm2022/ripple/wirabyte-ui-ripple.mjs +0 -5
  1185. package/esm2022/scroller/public-api.mjs +0 -6
  1186. package/esm2022/scroller/scroller.component.mjs +0 -305
  1187. package/esm2022/scroller/scroller.module.mjs +0 -17
  1188. package/esm2022/scroller/wirabyte-ui-scroller.mjs +0 -5
  1189. package/esm2022/scrollpanel/public-api.mjs +0 -3
  1190. package/esm2022/scrollpanel/scrollpanel.component.mjs +0 -67
  1191. package/esm2022/scrollpanel/scrollpanel.module.mjs +0 -17
  1192. package/esm2022/scrollpanel/wirabyte-ui-scrollpanel.mjs +0 -5
  1193. package/esm2022/select/public-api.mjs +0 -7
  1194. package/esm2022/select/select.base.mjs +0 -667
  1195. package/esm2022/select/select.component.mjs +0 -26
  1196. package/esm2022/select/select.module.mjs +0 -17
  1197. package/esm2022/select/select.styles.mjs +0 -3
  1198. package/esm2022/select/select.types.mjs +0 -2
  1199. package/esm2022/select/wirabyte-ui-select.mjs +0 -5
  1200. package/esm2022/selectbutton/public-api.mjs +0 -4
  1201. package/esm2022/selectbutton/selectbutton.component.mjs +0 -125
  1202. package/esm2022/selectbutton/selectbutton.module.mjs +0 -18
  1203. package/esm2022/selectbutton/selectbutton.types.mjs +0 -2
  1204. package/esm2022/selectbutton/wirabyte-ui-selectbutton.mjs +0 -5
  1205. package/esm2022/sitefooter/public-api.mjs +0 -3
  1206. package/esm2022/sitefooter/sitefooter.component.mjs +0 -139
  1207. package/esm2022/sitefooter/sitefooter.module.mjs +0 -18
  1208. package/esm2022/sitefooter/wirabyte-ui-sitefooter.mjs +0 -5
  1209. package/esm2022/skeleton/public-api.mjs +0 -4
  1210. package/esm2022/skeleton/skeleton.component.mjs +0 -42
  1211. package/esm2022/skeleton/skeleton.module.mjs +0 -17
  1212. package/esm2022/skeleton/skeleton.types.mjs +0 -2
  1213. package/esm2022/skeleton/wirabyte-ui-skeleton.mjs +0 -5
  1214. package/esm2022/slider/public-api.mjs +0 -3
  1215. package/esm2022/slider/slider.component.mjs +0 -247
  1216. package/esm2022/slider/slider.module.mjs +0 -17
  1217. package/esm2022/slider/wirabyte-ui-slider.mjs +0 -5
  1218. package/esm2022/splitbutton/public-api.mjs +0 -3
  1219. package/esm2022/splitbutton/splitbutton.component.mjs +0 -180
  1220. package/esm2022/splitbutton/splitbutton.module.mjs +0 -17
  1221. package/esm2022/splitbutton/wirabyte-ui-splitbutton.mjs +0 -5
  1222. package/esm2022/splitter/public-api.mjs +0 -5
  1223. package/esm2022/splitter/splitter-panel.component.mjs +0 -32
  1224. package/esm2022/splitter/splitter.component.mjs +0 -372
  1225. package/esm2022/splitter/splitter.module.mjs +0 -19
  1226. package/esm2022/splitter/splitter.types.mjs +0 -2
  1227. package/esm2022/splitter/wirabyte-ui-splitter.mjs +0 -5
  1228. package/esm2022/stepper/public-api.mjs +0 -4
  1229. package/esm2022/stepper/stepper.base.mjs +0 -392
  1230. package/esm2022/stepper/stepper.component.mjs +0 -209
  1231. package/esm2022/stepper/stepper.module.mjs +0 -19
  1232. package/esm2022/stepper/wirabyte-ui-stepper.mjs +0 -5
  1233. package/esm2022/steps/public-api.mjs +0 -4
  1234. package/esm2022/steps/steps.base.mjs +0 -148
  1235. package/esm2022/steps/steps.component.mjs +0 -15
  1236. package/esm2022/steps/steps.module.mjs +0 -17
  1237. package/esm2022/steps/wirabyte-ui-steps.mjs +0 -5
  1238. package/esm2022/table/public-api.mjs +0 -10
  1239. package/esm2022/table/table-celleditor.component.mjs +0 -48
  1240. package/esm2022/table/table-filter.component.mjs +0 -144
  1241. package/esm2022/table/table.base.mjs +0 -1443
  1242. package/esm2022/table/table.celleditor.mjs +0 -42
  1243. package/esm2022/table/table.component.mjs +0 -21
  1244. package/esm2022/table/table.directives.mjs +0 -1117
  1245. package/esm2022/table/table.filter.mjs +0 -346
  1246. package/esm2022/table/table.module.mjs +0 -93
  1247. package/esm2022/table/table.types.mjs +0 -3
  1248. package/esm2022/table/wirabyte-ui-table.mjs +0 -5
  1249. package/esm2022/tabmenu/public-api.mjs +0 -3
  1250. package/esm2022/tabmenu/wirabyte-ui-tabmenu.mjs +0 -5
  1251. package/esm2022/tabs/public-api.mjs +0 -9
  1252. package/esm2022/tabs/tabmenu.base.mjs +0 -196
  1253. package/esm2022/tabs/tabmenu.component.mjs +0 -18
  1254. package/esm2022/tabs/tabmenu.module.mjs +0 -18
  1255. package/esm2022/tabs/tabs.component.mjs +0 -352
  1256. package/esm2022/tabs/tabs.module.mjs +0 -20
  1257. package/esm2022/tabs/tabs.styles.mjs +0 -3
  1258. package/esm2022/tabs/tabs.types.mjs +0 -50
  1259. package/esm2022/tabs/wirabyte-ui-tabs.mjs +0 -5
  1260. package/esm2022/tag/public-api.mjs +0 -4
  1261. package/esm2022/tag/tag.component.mjs +0 -42
  1262. package/esm2022/tag/tag.module.mjs +0 -17
  1263. package/esm2022/tag/tag.types.mjs +0 -2
  1264. package/esm2022/tag/wirabyte-ui-tag.mjs +0 -5
  1265. package/esm2022/terminal/public-api.mjs +0 -6
  1266. package/esm2022/terminal/terminal.component.mjs +0 -150
  1267. package/esm2022/terminal/terminal.module.mjs +0 -17
  1268. package/esm2022/terminal/terminal.service.mjs +0 -35
  1269. package/esm2022/terminal/wirabyte-ui-terminal.mjs +0 -5
  1270. package/esm2022/textarea/public-api.mjs +0 -3
  1271. package/esm2022/textarea/textarea.directive.mjs +0 -75
  1272. package/esm2022/textarea/textarea.module.mjs +0 -17
  1273. package/esm2022/textarea/wirabyte-ui-textarea.mjs +0 -5
  1274. package/esm2022/thai/public-api.mjs +0 -4
  1275. package/esm2022/thai/thai.module.mjs +0 -18
  1276. package/esm2022/thai/thai.pipes.mjs +0 -115
  1277. package/esm2022/thai/wirabyte-ui-thai.mjs +0 -5
  1278. package/esm2022/tieredmenu/public-api.mjs +0 -3
  1279. package/esm2022/tieredmenu/tieredmenu.component.mjs +0 -385
  1280. package/esm2022/tieredmenu/tieredmenu.module.mjs +0 -17
  1281. package/esm2022/tieredmenu/wirabyte-ui-tieredmenu.mjs +0 -5
  1282. package/esm2022/timeline/public-api.mjs +0 -4
  1283. package/esm2022/timeline/timeline.base.mjs +0 -66
  1284. package/esm2022/timeline/timeline.component.mjs +0 -68
  1285. package/esm2022/timeline/timeline.module.mjs +0 -18
  1286. package/esm2022/timeline/wirabyte-ui-timeline.mjs +0 -5
  1287. package/esm2022/toast/message.service.mjs +0 -34
  1288. package/esm2022/toast/public-api.mjs +0 -6
  1289. package/esm2022/toast/toast.base.mjs +0 -227
  1290. package/esm2022/toast/toast.component.mjs +0 -17
  1291. package/esm2022/toast/toast.module.mjs +0 -18
  1292. package/esm2022/toast/toast.types.mjs +0 -2
  1293. package/esm2022/toast/wirabyte-ui-toast.mjs +0 -5
  1294. package/esm2022/togglebutton/public-api.mjs +0 -4
  1295. package/esm2022/togglebutton/togglebutton.component.mjs +0 -93
  1296. package/esm2022/togglebutton/togglebutton.module.mjs +0 -17
  1297. package/esm2022/togglebutton/togglebutton.types.mjs +0 -2
  1298. package/esm2022/togglebutton/wirabyte-ui-togglebutton.mjs +0 -5
  1299. package/esm2022/toggleswitch/public-api.mjs +0 -4
  1300. package/esm2022/toggleswitch/toggleswitch.component.mjs +0 -78
  1301. package/esm2022/toggleswitch/toggleswitch.module.mjs +0 -17
  1302. package/esm2022/toggleswitch/toggleswitch.types.mjs +0 -2
  1303. package/esm2022/toggleswitch/wirabyte-ui-toggleswitch.mjs +0 -5
  1304. package/esm2022/toolbar/public-api.mjs +0 -3
  1305. package/esm2022/toolbar/toolbar.component.mjs +0 -67
  1306. package/esm2022/toolbar/toolbar.module.mjs +0 -18
  1307. package/esm2022/toolbar/wirabyte-ui-toolbar.mjs +0 -5
  1308. package/esm2022/tooltip/public-api.mjs +0 -4
  1309. package/esm2022/tooltip/tooltip.directive.mjs +0 -370
  1310. package/esm2022/tooltip/tooltip.module.mjs +0 -17
  1311. package/esm2022/tooltip/tooltip.styles.mjs +0 -3
  1312. package/esm2022/tooltip/tooltip.types.mjs +0 -2
  1313. package/esm2022/tooltip/wirabyte-ui-tooltip.mjs +0 -5
  1314. package/esm2022/tree/public-api.mjs +0 -3
  1315. package/esm2022/tree/tree.component.mjs +0 -453
  1316. package/esm2022/tree/tree.module.mjs +0 -17
  1317. package/esm2022/tree/wirabyte-ui-tree.mjs +0 -5
  1318. package/esm2022/treeselect/public-api.mjs +0 -3
  1319. package/esm2022/treeselect/treeselect.component.mjs +0 -410
  1320. package/esm2022/treeselect/treeselect.module.mjs +0 -17
  1321. package/esm2022/treeselect/wirabyte-ui-treeselect.mjs +0 -5
  1322. package/esm2022/validation/field-error.component.mjs +0 -84
  1323. package/esm2022/validation/public-api.mjs +0 -4
  1324. package/esm2022/validation/validation.module.mjs +0 -19
  1325. package/esm2022/validation/validators.mjs +0 -84
  1326. package/esm2022/validation/wirabyte-ui-validation.mjs +0 -5
  1327. package/esm2022/wirabyte-ui.mjs +0 -5
  1328. package/excel/excel.d.ts +0 -24
  1329. package/excel/index.d.ts +0 -5
  1330. package/excel/public-api.d.ts +0 -3
  1331. package/fieldset/fieldset.component.d.ts +0 -29
  1332. package/fieldset/fieldset.module.d.ts +0 -9
  1333. package/fieldset/index.d.ts +0 -5
  1334. package/fieldset/public-api.d.ts +0 -2
  1335. package/fileupload/fileupload.base.d.ts +0 -175
  1336. package/fileupload/fileupload.component.d.ts +0 -11
  1337. package/fileupload/fileupload.module.d.ts +0 -9
  1338. package/fileupload/fileupload.types.d.ts +0 -54
  1339. package/fileupload/index.d.ts +0 -5
  1340. package/fileupload/public-api.d.ts +0 -4
  1341. package/floatlabel/floatlabel.component.d.ts +0 -21
  1342. package/floatlabel/floatlabel.module.d.ts +0 -8
  1343. package/floatlabel/floatlabel.types.d.ts +0 -1
  1344. package/floatlabel/index.d.ts +0 -5
  1345. package/floatlabel/public-api.d.ts +0 -3
  1346. package/flow/flow-background.component.d.ts +0 -49
  1347. package/flow/flow-controls.component.d.ts +0 -47
  1348. package/flow/flow-handle.component.d.ts +0 -48
  1349. package/flow/flow-history.directive.d.ts +0 -42
  1350. package/flow/flow-host.d.ts +0 -48
  1351. package/flow/flow-minimap.component.d.ts +0 -79
  1352. package/flow/flow-node-outlet.d.ts +0 -46
  1353. package/flow/flow-node-resizer.component.d.ts +0 -57
  1354. package/flow/flow-node-toolbar.component.d.ts +0 -38
  1355. package/flow/flow-panel.component.d.ts +0 -11
  1356. package/flow/flow-templates.d.ts +0 -47
  1357. package/flow/flow.component.d.ts +0 -633
  1358. package/flow/flow.module.d.ts +0 -21
  1359. package/flow/flow.types.d.ts +0 -210
  1360. package/flow/index.d.ts +0 -5
  1361. package/flow/public-api.d.ts +0 -16
  1362. package/galleria/galleria.component.d.ts +0 -163
  1363. package/galleria/galleria.module.d.ts +0 -8
  1364. package/galleria/index.d.ts +0 -5
  1365. package/galleria/public-api.d.ts +0 -2
  1366. package/i18n/i18n.module.d.ts +0 -22
  1367. package/i18n/i18n.service.d.ts +0 -54
  1368. package/i18n/i18n.types.d.ts +0 -33
  1369. package/i18n/index.d.ts +0 -5
  1370. package/i18n/language-switch.component.d.ts +0 -50
  1371. package/i18n/public-api.d.ts +0 -6
  1372. package/i18n/translate.pipe.d.ts +0 -25
  1373. package/iconfield/iconfield.component.d.ts +0 -30
  1374. package/iconfield/iconfield.module.d.ts +0 -8
  1375. package/iconfield/index.d.ts +0 -5
  1376. package/iconfield/public-api.d.ts +0 -2
  1377. package/image/image.base.d.ts +0 -83
  1378. package/image/image.component.d.ts +0 -7
  1379. package/image/image.module.d.ts +0 -9
  1380. package/image/index.d.ts +0 -5
  1381. package/image/public-api.d.ts +0 -3
  1382. package/imagecompare/imagecompare.component.d.ts +0 -67
  1383. package/imagecompare/imagecompare.module.d.ts +0 -9
  1384. package/imagecompare/index.d.ts +0 -5
  1385. package/imagecompare/public-api.d.ts +0 -2
  1386. package/imagecropper/imagecropper.component.d.ts +0 -309
  1387. package/imagecropper/imagecropper.module.d.ts +0 -8
  1388. package/imagecropper/imagecropper.types.d.ts +0 -79
  1389. package/imagecropper/index.d.ts +0 -5
  1390. package/imagecropper/public-api.d.ts +0 -4
  1391. package/index.d.ts +0 -5
  1392. package/inplace/index.d.ts +0 -5
  1393. package/inplace/inplace.component.d.ts +0 -59
  1394. package/inplace/inplace.module.d.ts +0 -8
  1395. package/inplace/public-api.d.ts +0 -2
  1396. package/inputgroup/index.d.ts +0 -5
  1397. package/inputgroup/inputgroup.component.d.ts +0 -26
  1398. package/inputgroup/inputgroup.module.d.ts +0 -8
  1399. package/inputgroup/public-api.d.ts +0 -2
  1400. package/inputmask/index.d.ts +0 -5
  1401. package/inputmask/inputmask.base.d.ts +0 -115
  1402. package/inputmask/inputmask.component.d.ts +0 -10
  1403. package/inputmask/inputmask.module.d.ts +0 -8
  1404. package/inputmask/public-api.d.ts +0 -3
  1405. package/inputnumber/index.d.ts +0 -5
  1406. package/inputnumber/inputnumber.component.d.ts +0 -108
  1407. package/inputnumber/inputnumber.module.d.ts +0 -8
  1408. package/inputnumber/inputnumber.types.d.ts +0 -7
  1409. package/inputnumber/public-api.d.ts +0 -3
  1410. package/inputotp/index.d.ts +0 -5
  1411. package/inputotp/inputotp.component.d.ts +0 -105
  1412. package/inputotp/inputotp.module.d.ts +0 -9
  1413. package/inputotp/inputotp.types.d.ts +0 -22
  1414. package/inputotp/public-api.d.ts +0 -3
  1415. package/inputtext/index.d.ts +0 -5
  1416. package/inputtext/inputtext.directive.d.ts +0 -21
  1417. package/inputtext/inputtext.module.d.ts +0 -8
  1418. package/inputtext/inputtext.styles.d.ts +0 -2
  1419. package/inputtext/inputtext.types.d.ts +0 -3
  1420. package/inputtext/public-api.d.ts +0 -5
  1421. package/keyfilter/index.d.ts +0 -5
  1422. package/keyfilter/keyfilter.directive.d.ts +0 -29
  1423. package/keyfilter/keyfilter.module.d.ts +0 -8
  1424. package/keyfilter/public-api.d.ts +0 -2
  1425. package/knob/index.d.ts +0 -5
  1426. package/knob/knob.component.d.ts +0 -94
  1427. package/knob/knob.module.d.ts +0 -8
  1428. package/knob/public-api.d.ts +0 -2
  1429. package/listbox/index.d.ts +0 -5
  1430. package/listbox/listbox.component.d.ts +0 -186
  1431. package/listbox/listbox.module.d.ts +0 -8
  1432. package/listbox/public-api.d.ts +0 -2
  1433. package/menu/index.d.ts +0 -5
  1434. package/menu/menu.base.d.ts +0 -95
  1435. package/menu/menu.component.d.ts +0 -11
  1436. package/menu/menu.module.d.ts +0 -9
  1437. package/menu/public-api.d.ts +0 -4
  1438. package/menubar/index.d.ts +0 -5
  1439. package/menubar/menubar.base.d.ts +0 -135
  1440. package/menubar/menubar.component.d.ts +0 -11
  1441. package/menubar/menubar.module.d.ts +0 -9
  1442. package/menubar/public-api.d.ts +0 -4
  1443. package/message/index.d.ts +0 -5
  1444. package/message/message.component.d.ts +0 -39
  1445. package/message/message.module.d.ts +0 -11
  1446. package/message/message.types.d.ts +0 -5
  1447. package/message/messages.base.d.ts +0 -50
  1448. package/message/messages.component.d.ts +0 -7
  1449. package/message/public-api.d.ts +0 -5
  1450. package/metergroup/index.d.ts +0 -5
  1451. package/metergroup/metergroup.component.d.ts +0 -54
  1452. package/metergroup/metergroup.module.d.ts +0 -8
  1453. package/metergroup/metergroup.types.d.ts +0 -42
  1454. package/metergroup/public-api.d.ts +0 -3
  1455. package/multiselect/index.d.ts +0 -5
  1456. package/multiselect/multiselect.base.d.ts +0 -222
  1457. package/multiselect/multiselect.component.d.ts +0 -11
  1458. package/multiselect/multiselect.module.d.ts +0 -9
  1459. package/multiselect/multiselect.styles.d.ts +0 -2
  1460. package/multiselect/multiselect.types.d.ts +0 -20
  1461. package/multiselect/public-api.d.ts +0 -5
  1462. package/navbar/index.d.ts +0 -5
  1463. package/navbar/navbar.component.d.ts +0 -172
  1464. package/navbar/navbar.module.d.ts +0 -9
  1465. package/navbar/public-api.d.ts +0 -2
  1466. package/orderlist/index.d.ts +0 -5
  1467. package/orderlist/orderlist.base.d.ts +0 -136
  1468. package/orderlist/orderlist.component.d.ts +0 -10
  1469. package/orderlist/orderlist.module.d.ts +0 -9
  1470. package/orderlist/orderlist.types.d.ts +0 -10
  1471. package/orderlist/public-api.d.ts +0 -4
  1472. package/organizationchart/index.d.ts +0 -5
  1473. package/organizationchart/organizationchart.component.d.ts +0 -76
  1474. package/organizationchart/organizationchart.module.d.ts +0 -9
  1475. package/organizationchart/organizationchart.types.d.ts +0 -10
  1476. package/organizationchart/public-api.d.ts +0 -4
  1477. package/paginator/index.d.ts +0 -5
  1478. package/paginator/paginator.base.d.ts +0 -95
  1479. package/paginator/paginator.component.d.ts +0 -10
  1480. package/paginator/paginator.module.d.ts +0 -8
  1481. package/paginator/paginator.types.d.ts +0 -7
  1482. package/paginator/public-api.d.ts +0 -4
  1483. package/panel/index.d.ts +0 -5
  1484. package/panel/panel.component.d.ts +0 -42
  1485. package/panel/panel.module.d.ts +0 -10
  1486. package/panel/panel.types.d.ts +0 -2
  1487. package/panel/public-api.d.ts +0 -3
  1488. package/panelmenu/index.d.ts +0 -5
  1489. package/panelmenu/panelmenu.base.d.ts +0 -53
  1490. package/panelmenu/panelmenu.component.d.ts +0 -7
  1491. package/panelmenu/panelmenu.module.d.ts +0 -9
  1492. package/panelmenu/public-api.d.ts +0 -3
  1493. package/password/index.d.ts +0 -5
  1494. package/password/password.component.d.ts +0 -79
  1495. package/password/password.module.d.ts +0 -8
  1496. package/password/password.types.d.ts +0 -6
  1497. package/password/public-api.d.ts +0 -3
  1498. package/picklist/index.d.ts +0 -5
  1499. package/picklist/list-drag.d.ts +0 -49
  1500. package/picklist/picklist.base.d.ts +0 -217
  1501. package/picklist/picklist.component.d.ts +0 -10
  1502. package/picklist/picklist.module.d.ts +0 -9
  1503. package/picklist/picklist.styles.d.ts +0 -2
  1504. package/picklist/picklist.types.d.ts +0 -21
  1505. package/picklist/public-api.d.ts +0 -7
  1506. package/popover/index.d.ts +0 -5
  1507. package/popover/popover.base.d.ts +0 -61
  1508. package/popover/popover.component.d.ts +0 -10
  1509. package/popover/popover.module.d.ts +0 -9
  1510. package/popover/public-api.d.ts +0 -3
  1511. package/presets/index.d.ts +0 -5
  1512. package/presets/public-api.d.ts +0 -2
  1513. package/progressbar/index.d.ts +0 -5
  1514. package/progressbar/progressbar.component.d.ts +0 -48
  1515. package/progressbar/progressbar.module.d.ts +0 -8
  1516. package/progressbar/progressbar.types.d.ts +0 -16
  1517. package/progressbar/public-api.d.ts +0 -3
  1518. package/progressspinner/index.d.ts +0 -5
  1519. package/progressspinner/progressspinner.component.d.ts +0 -44
  1520. package/progressspinner/progressspinner.module.d.ts +0 -8
  1521. package/progressspinner/progressspinner.types.d.ts +0 -9
  1522. package/progressspinner/public-api.d.ts +0 -3
  1523. package/public-api.d.ts +0 -2
  1524. package/radiobutton/index.d.ts +0 -5
  1525. package/radiobutton/public-api.d.ts +0 -6
  1526. package/radiobutton/radio-registry.d.ts +0 -23
  1527. package/radiobutton/radiobutton.component.d.ts +0 -50
  1528. package/radiobutton/radiobutton.module.d.ts +0 -8
  1529. package/radiobutton/radiobutton.styles.d.ts +0 -2
  1530. package/radiobutton/radiobutton.types.d.ts +0 -4
  1531. package/rating/index.d.ts +0 -5
  1532. package/rating/public-api.d.ts +0 -3
  1533. package/rating/rating.component.d.ts +0 -39
  1534. package/rating/rating.module.d.ts +0 -8
  1535. package/rating/rating.types.d.ts +0 -4
  1536. package/result/index.d.ts +0 -5
  1537. package/result/public-api.d.ts +0 -2
  1538. package/result/result.component.d.ts +0 -39
  1539. package/result/result.module.d.ts +0 -8
  1540. package/ripple/index.d.ts +0 -5
  1541. package/ripple/public-api.d.ts +0 -2
  1542. package/ripple/ripple.directive.d.ts +0 -15
  1543. package/ripple/ripple.module.d.ts +0 -8
  1544. package/ripple/ripple.styles.d.ts +0 -2
  1545. package/scroller/index.d.ts +0 -5
  1546. package/scroller/public-api.d.ts +0 -5
  1547. package/scroller/scroller.component.d.ts +0 -135
  1548. package/scroller/scroller.module.d.ts +0 -8
  1549. package/scrollpanel/index.d.ts +0 -5
  1550. package/scrollpanel/public-api.d.ts +0 -2
  1551. package/scrollpanel/scrollpanel.component.d.ts +0 -27
  1552. package/scrollpanel/scrollpanel.module.d.ts +0 -8
  1553. package/select/index.d.ts +0 -5
  1554. package/select/public-api.d.ts +0 -6
  1555. package/select/select.base.d.ts +0 -217
  1556. package/select/select.component.d.ts +0 -11
  1557. package/select/select.module.d.ts +0 -8
  1558. package/select/select.styles.d.ts +0 -2
  1559. package/select/select.types.d.ts +0 -9
  1560. package/selectbutton/index.d.ts +0 -5
  1561. package/selectbutton/public-api.d.ts +0 -3
  1562. package/selectbutton/selectbutton.component.d.ts +0 -59
  1563. package/selectbutton/selectbutton.module.d.ts +0 -9
  1564. package/selectbutton/selectbutton.types.d.ts +0 -9
  1565. package/sitefooter/index.d.ts +0 -5
  1566. package/sitefooter/public-api.d.ts +0 -2
  1567. package/sitefooter/sitefooter.component.d.ts +0 -69
  1568. package/sitefooter/sitefooter.module.d.ts +0 -9
  1569. package/skeleton/index.d.ts +0 -5
  1570. package/skeleton/public-api.d.ts +0 -3
  1571. package/skeleton/skeleton.component.d.ts +0 -22
  1572. package/skeleton/skeleton.module.d.ts +0 -8
  1573. package/skeleton/skeleton.types.d.ts +0 -2
  1574. package/slider/index.d.ts +0 -5
  1575. package/slider/public-api.d.ts +0 -2
  1576. package/slider/slider.component.d.ts +0 -79
  1577. package/slider/slider.module.d.ts +0 -8
  1578. package/splitbutton/index.d.ts +0 -5
  1579. package/splitbutton/public-api.d.ts +0 -2
  1580. package/splitbutton/splitbutton.component.d.ts +0 -75
  1581. package/splitbutton/splitbutton.module.d.ts +0 -8
  1582. package/splitter/index.d.ts +0 -5
  1583. package/splitter/public-api.d.ts +0 -4
  1584. package/splitter/splitter-panel.component.d.ts +0 -20
  1585. package/splitter/splitter.component.d.ts +0 -109
  1586. package/splitter/splitter.module.d.ts +0 -10
  1587. package/splitter/splitter.types.d.ts +0 -8
  1588. package/stepper/index.d.ts +0 -5
  1589. package/stepper/public-api.d.ts +0 -3
  1590. package/stepper/stepper.base.d.ts +0 -200
  1591. package/stepper/stepper.component.d.ts +0 -41
  1592. package/stepper/stepper.module.d.ts +0 -9
  1593. package/steps/index.d.ts +0 -5
  1594. package/steps/public-api.d.ts +0 -3
  1595. package/steps/steps.base.d.ts +0 -52
  1596. package/steps/steps.component.d.ts +0 -7
  1597. package/steps/steps.module.d.ts +0 -8
  1598. package/table/index.d.ts +0 -5
  1599. package/table/public-api.d.ts +0 -9
  1600. package/table/table-celleditor.component.d.ts +0 -14
  1601. package/table/table-filter.component.d.ts +0 -11
  1602. package/table/table.base.d.ts +0 -410
  1603. package/table/table.celleditor.d.ts +0 -20
  1604. package/table/table.component.d.ts +0 -12
  1605. package/table/table.directives.d.ts +0 -330
  1606. package/table/table.filter.d.ts +0 -131
  1607. package/table/table.module.d.ts +0 -12
  1608. package/table/table.types.d.ts +0 -180
  1609. package/tabmenu/index.d.ts +0 -5
  1610. package/tabmenu/public-api.d.ts +0 -2
  1611. package/tabs/index.d.ts +0 -5
  1612. package/tabs/public-api.d.ts +0 -8
  1613. package/tabs/tabmenu.base.d.ts +0 -59
  1614. package/tabs/tabmenu.component.d.ts +0 -10
  1615. package/tabs/tabmenu.module.d.ts +0 -9
  1616. package/tabs/tabs.component.d.ts +0 -120
  1617. package/tabs/tabs.module.d.ts +0 -10
  1618. package/tabs/tabs.styles.d.ts +0 -2
  1619. package/tabs/tabs.types.d.ts +0 -21
  1620. package/tag/index.d.ts +0 -5
  1621. package/tag/public-api.d.ts +0 -3
  1622. package/tag/tag.component.d.ts +0 -20
  1623. package/tag/tag.module.d.ts +0 -8
  1624. package/tag/tag.types.d.ts +0 -2
  1625. package/terminal/index.d.ts +0 -5
  1626. package/terminal/public-api.d.ts +0 -5
  1627. package/terminal/terminal.component.d.ts +0 -58
  1628. package/terminal/terminal.module.d.ts +0 -8
  1629. package/terminal/terminal.service.d.ts +0 -20
  1630. package/textarea/index.d.ts +0 -5
  1631. package/textarea/public-api.d.ts +0 -2
  1632. package/textarea/textarea.directive.d.ts +0 -27
  1633. package/textarea/textarea.module.d.ts +0 -8
  1634. package/thai/index.d.ts +0 -5
  1635. package/thai/public-api.d.ts +0 -3
  1636. package/thai/thai.module.d.ts +0 -8
  1637. package/thai/thai.pipes.d.ts +0 -57
  1638. package/tieredmenu/index.d.ts +0 -5
  1639. package/tieredmenu/public-api.d.ts +0 -2
  1640. package/tieredmenu/tieredmenu.component.d.ts +0 -90
  1641. package/tieredmenu/tieredmenu.module.d.ts +0 -8
  1642. package/timeline/index.d.ts +0 -5
  1643. package/timeline/public-api.d.ts +0 -3
  1644. package/timeline/timeline.base.d.ts +0 -36
  1645. package/timeline/timeline.component.d.ts +0 -7
  1646. package/timeline/timeline.module.d.ts +0 -9
  1647. package/toast/index.d.ts +0 -5
  1648. package/toast/message.service.d.ts +0 -19
  1649. package/toast/public-api.d.ts +0 -5
  1650. package/toast/toast.base.d.ts +0 -84
  1651. package/toast/toast.component.d.ts +0 -10
  1652. package/toast/toast.module.d.ts +0 -9
  1653. package/toast/toast.types.d.ts +0 -28
  1654. package/togglebutton/index.d.ts +0 -5
  1655. package/togglebutton/public-api.d.ts +0 -3
  1656. package/togglebutton/togglebutton.component.d.ts +0 -47
  1657. package/togglebutton/togglebutton.module.d.ts +0 -8
  1658. package/togglebutton/togglebutton.types.d.ts +0 -4
  1659. package/toggleswitch/index.d.ts +0 -5
  1660. package/toggleswitch/public-api.d.ts +0 -3
  1661. package/toggleswitch/toggleswitch.component.d.ts +0 -42
  1662. package/toggleswitch/toggleswitch.module.d.ts +0 -8
  1663. package/toggleswitch/toggleswitch.types.d.ts +0 -4
  1664. package/toolbar/index.d.ts +0 -5
  1665. package/toolbar/public-api.d.ts +0 -2
  1666. package/toolbar/toolbar.component.d.ts +0 -29
  1667. package/toolbar/toolbar.module.d.ts +0 -9
  1668. package/tooltip/index.d.ts +0 -5
  1669. package/tooltip/public-api.d.ts +0 -3
  1670. package/tooltip/tooltip.directive.d.ts +0 -87
  1671. package/tooltip/tooltip.module.d.ts +0 -8
  1672. package/tooltip/tooltip.styles.d.ts +0 -2
  1673. package/tooltip/tooltip.types.d.ts +0 -14
  1674. package/tree/index.d.ts +0 -5
  1675. package/tree/public-api.d.ts +0 -2
  1676. package/tree/tree.component.d.ts +0 -149
  1677. package/tree/tree.module.d.ts +0 -8
  1678. package/treeselect/index.d.ts +0 -5
  1679. package/treeselect/public-api.d.ts +0 -2
  1680. package/treeselect/treeselect.component.d.ts +0 -140
  1681. package/treeselect/treeselect.module.d.ts +0 -8
  1682. package/validation/field-error.component.d.ts +0 -39
  1683. package/validation/index.d.ts +0 -5
  1684. package/validation/public-api.d.ts +0 -3
  1685. package/validation/validation.module.d.ts +0 -9
  1686. package/validation/validators.d.ts +0 -33
@@ -1,53 +1,1256 @@
1
- import { NgClass, NgStyle } from '@angular/common';
1
+ import { isPlatformBrowser } from '@angular/common';
2
2
  import * as i0 from '@angular/core';
3
- import { ChangeDetectionStrategy, ViewEncapsulation, Component, NgModule } from '@angular/core';
4
- import { ɵWuChartJsBase as _WuChartJsBase } from '@wirabyte/ui/chartjs';
3
+ import { input, booleanAttribute, numberAttribute, output, linkedSignal, signal, inject, NgZone, ElementRef, PLATFORM_ID, viewChild, computed, DestroyRef, afterNextRender, effect, untracked, ChangeDetectionStrategy, ViewEncapsulation, Component, NgModule } from '@angular/core';
4
+ import { WuConfig, ɵrefreshOnTranslation as _refreshOnTranslation, ɵassertSupportedAngular as _assertSupportedAngular, ɵWU_SKIP_VERSION_CHECK as _WU_SKIP_VERSION_CHECK } from '@wirabyte/ui/config';
5
+ import { chartSeriesFrom, chartSwapTypes, chartVariants, chartModel, formatChartValue, chartHit, chartMovesValues } from '@wirabyte/ui/core';
6
+ export { CHART_PALETTE, chartSeriesFrom, formatChartValue } from '@wirabyte/ui/core';
5
7
 
8
+ /** The look picker's names. */
9
+ const WU_CHART_LOOKS = {
10
+ square: { th: 'สี่เหลี่ยม', en: 'Squares' },
11
+ circle: { th: 'วงกลม', en: 'Circles' },
12
+ hex: { th: 'รังผึ้ง', en: 'Honeycomb' },
13
+ silhouette: { th: 'สมมาตร', en: 'Silhouette' },
14
+ wiggle: { th: 'ลื่นไหล', en: 'Wiggle' },
15
+ expand: { th: 'สัดส่วน', en: 'Shares' },
16
+ bars: { th: 'แท่ง', en: 'Bars' },
17
+ steps: { th: 'ขั้นบันได', en: 'Steps' },
18
+ dots: { th: 'จุด', en: 'Dots' },
19
+ arrow: { th: 'ลูกศร', en: 'Arrows' },
20
+ range: { th: 'ช่วง', en: 'Range' },
21
+ thin: { th: 'เส้นบาง', en: 'Thin' },
22
+ funnel: { th: 'กรวย', en: 'Funnel' },
23
+ pyramid: { th: 'พีระมิด', en: 'Pyramid' },
24
+ box: { th: 'กล่อง', en: 'Box' },
25
+ violin: { th: 'ไวโอลิน', en: 'Violin' },
26
+ points: { th: 'จุดข้อมูล', en: 'Points' },
27
+ density: { th: 'ความหนาแน่น', en: 'Density' },
28
+ sunburst: { th: 'ซันเบิร์สต์', en: 'Sunburst' },
29
+ icicle: { th: 'ไอซิเคิล', en: 'Icicle' },
30
+ waffle: { th: 'วาฟเฟิล', en: 'Waffle' },
31
+ people: { th: 'รูปคน', en: 'People' },
32
+ lines: { th: 'เส้น', en: 'Lines' },
33
+ highlight: { th: 'เน้นขึ้นลง', en: 'Up and down' },
34
+ };
35
+ /** The type switcher's buttons: a 24 × 24 stroked icon and a name per kind. */
36
+ const WU_CHART_KINDS = {
37
+ bar: { icon: 'M5 20V11M10 20V5M15 20v-7M20 20V8', th: 'แท่ง', en: 'Bar' },
38
+ line: { icon: 'M3 17l5-6 4 3 8-9', th: 'เส้น', en: 'Line' },
39
+ area: { icon: 'M3 18l5-7 4 3 8-8v12H3Z', th: 'พื้นที่', en: 'Area' },
40
+ pie: { icon: 'M12 3a9 9 0 1 0 9 9h-9ZM15 2.6A8 8 0 0 1 21.4 9H15Z', th: 'วงกลม', en: 'Pie' },
41
+ doughnut: { icon: 'M12 3a9 9 0 1 1 0 18 9 9 0 0 1 0-18Zm0 5a4 4 0 1 0 0 8 4 4 0 0 0 0-8Z', th: 'โดนัท', en: 'Doughnut' },
42
+ polarArea: { icon: 'M12 12V3a9 9 0 0 1 8 5ZM12 12l6 6a8.5 8.5 0 0 1-12 0ZM12 12H5a7 7 0 0 1 7-7', th: 'วงกลมรัศมี', en: 'Polar area' },
43
+ radialBar: { icon: 'M12 3a9 9 0 1 1-9 9M12 7a5 5 0 1 1-5 5', th: 'วงแหวน', en: 'Radial bar' },
44
+ radar: { icon: 'M12 3l8.5 6.2-3.2 10H6.7l-3.2-10ZM12 8l4 3-1.5 5h-5L8 11Z', th: 'เรดาร์', en: 'Radar' },
45
+ scatter: { icon: 'M7 16h.01M11 11h.01M16 13h.01M14 7h.01M19 6h.01M5 20V4M5 20h15', th: 'จุด', en: 'Scatter' },
46
+ heatmap: { icon: 'M4 4h4v4H4ZM10 4h4v4h-4ZM16 4h4v4h-4ZM4 10h4v4H4ZM10 10h4v4h-4ZM16 10h4v4h-4ZM4 16h4v4H4ZM10 16h4v4h-4ZM16 16h4v4h-4Z', th: 'ตารางสี', en: 'Heatmap' },
47
+ treemap: { icon: 'M3 4h10v16H3ZM15 4h6v7h-6ZM15 13h6v7h-6Z', th: 'Treemap', en: 'Treemap' },
48
+ stream: { icon: 'M3 8c3-3 6 1 9-1s6-3 9-2M3 12c3-4 6 2 9-1s6-5 9-2M3 16c3-2 6 2 9 0s6-3 9-1', th: 'สตรีม', en: 'Stream' },
49
+ waterfall: { icon: 'M4 20V8h3v12M9 8V5h3v5M14 10v4h3v-4M19 20V14', th: 'น้ำตก', en: 'Waterfall' },
50
+ dumbbell: { icon: 'M4 7a2 2 0 1 0 4 0 2 2 0 0 0-4 0M16 7a2 2 0 1 0 4 0 2 2 0 0 0-4 0M8 7h8M4 17a2 2 0 1 0 4 0 2 2 0 0 0-4 0M12 17a2 2 0 1 0 4 0 2 2 0 0 0-4 0M8 17h4', th: 'ดัมเบล', en: 'Dumbbell' },
51
+ timeline: { icon: 'M4 6h9M8 12h11M6 18h7M4 3v18', th: 'ไทม์ไลน์', en: 'Timeline' },
52
+ funnel: { icon: 'M3 4h18l-6 8v6l-6 3v-9Z', th: 'กรวย', en: 'Funnel' },
53
+ boxplot: { icon: 'M12 3v4M12 17v4M9 3h6M9 21h6M7 7h10v10H7ZM7 12h10', th: 'กล่อง', en: 'Box plot' },
54
+ histogram: { icon: 'M4 20V13h4v7M8 20V7h4v13M12 20V10h4v10M16 20v-5h4v5', th: 'ฮิสโตแกรม', en: 'Histogram' },
55
+ sunburst: { icon: 'M12 3a9 9 0 1 1 0 18 9 9 0 0 1 0-18ZM12 8a4 4 0 1 0 0 8 4 4 0 0 0 0-8ZM12 3v5M21 12h-5M12 16v5', th: 'ซันเบิร์สต์', en: 'Sunburst' },
56
+ unit: { icon: 'M5 5h3v3H5ZM10.5 5h3v3h-3ZM16 5h3v3h-3ZM5 10.5h3v3H5ZM10.5 10.5h3v3h-3ZM16 10.5h3v3h-3ZM5 16h3v3H5Z', th: 'หน่วย', en: 'Units' },
57
+ slope: { icon: 'M5 4v16M19 4v16M5 7l14 6M5 15l14-8', th: 'ความชัน', en: 'Slope' },
58
+ };
59
+
60
+ /** The theme's chart colours (`--wu-chart-1` … `-10`), so charts follow the preset and dark mode. */
61
+ const PALETTE = Array.from({ length: 10 }, (_, i) => `var(--wu-chart-${i + 1})`);
62
+ const ANIMATION_MS = 650;
63
+ let uid = 0;
64
+ const ease = (t) => 1 - Math.pow(1 - t, 3);
65
+ const TYPES = Object.keys(WU_CHART_KINDS);
66
+ /** Kinds that hide labels from the legend (not series), without zeroing data that is not numbers. */
67
+ const BY_LABELS = ['funnel', 'unit', 'sunburst'];
68
+ const GHOST_MS = 480;
69
+ const ALIASES = { donut: 'doughnut', bubble: 'scatter', radialbar: 'radialBar', polararea: 'polarArea', gauge: 'radialBar' };
70
+ const WORDS = {
71
+ th: { toolbar: 'เครื่องมือของกราฟ', zoomIn: 'ซูมเข้า', zoomOut: 'ซูมออก', reset: 'ดูทั้งหมด', download: 'ดาวน์โหลด', kinds: 'แบบของกราฟ', looks: 'ลักษณะ', back: 'ย้อนกลับ' },
72
+ en: { toolbar: 'Chart tools', zoomIn: 'Zoom in', zoomOut: 'Zoom out', reset: 'Show all', download: 'Download', kinds: 'Chart type', looks: 'Look', back: 'Back' },
73
+ };
74
+ /** Charts that share a `group`, to show the tooltip at the same label together. */
75
+ const GROUPS = new Map();
6
76
  /**
7
- * The Chart.js chart under the name older code uses: `<wu-chart type="bar" [data]="data" [options]="options">`, the
8
- * same component as `<wu-chartjs>` (@wirabyte/ui/chartjs). The app installs chart.js 3 or 4. In wiraui v3 `wu-chart`
9
- * is WiraUI's own chart, which takes the same data and options.
77
+ * WiraUI's own chart, drawn in SVG with no chart library: `<wu-chart type="bar" [labels]="months" [series]="[{ name: 'รายรับ', data: income }]">`.
78
+ * Bar (grouped, stacked, across), line (smooth, dashed, a second axis), area, pie, doughnut, radar and scatter / bubble,
79
+ * mixed per series. Text is real text in the page's font (Thai shapes properly); `font` and `fontSize` change it for
80
+ * one chart. Values read as numbers, percents, baht or Thai compact units (`format`). The legend shows and hides
81
+ * series, the tooltip follows the pointer or the arrow keys, values grow in when shown and move when they change, and
82
+ * a hidden table gives screen readers the numbers. Chart.js-shaped `[data]` / `[options]` work too, so Chart.js code
83
+ * (`<wu-chartjs>`, `<p-chart>`) moves over as it is; for Chart.js plugins keep `<wu-chartjs>`. Export with `toSVG()`, `toPNG()` or `download()`.
10
84
  */
11
- class WuChart extends _WuChartJsBase {
12
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: WuChart, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
13
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: WuChart, isStandalone: true, selector: "wu-chart", exportAs: ["wuChart"], usesInheritance: true, ngImport: i0, template: `
14
- <div class="wu-chartjs p-chart" [ngClass]="styleClass || ''" [ngStyle]="style || null" [style.width]="fixedWidth" [style.height]="fixedHeight">
15
- <canvas
16
- #canvas
17
- role="img"
18
- [attr.aria-label]="ariaLabel || null"
19
- [attr.aria-labelledby]="ariaLabelledBy || null"
20
- [attr.width]="fixedWidth"
21
- [attr.height]="fixedHeight"
22
- (click)="onCanvasClick($event)"
23
- ></canvas>
24
- </div>
25
- `, isInline: true, styles: ["@layer wiraui.components{:is(wu-chartjs,wu-chartJs,wu-chart){display:block}.wu-chartjs{position:relative;max-width:100%}.wu-chartjs>canvas{max-width:100%}}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
85
+ class WuChart {
86
+ constructor() {
87
+ /**
88
+ * `bar` (default), `line`, `area`, `pie`, `doughnut`, `polarArea`, `radialBar`, `radar`, `scatter`, `heatmap`, `treemap`,
89
+ * `stream`, `waterfall`, `dumbbell`, `timeline`, `funnel`, `boxplot`, `histogram`, `sunburst`, `unit`, `slope`.
90
+ */
91
+ this.type = input('bar', { ...(ngDevMode ? { debugName: "type" } : /* istanbul ignore next */ {}), transform: (v) => (TYPES.includes(v) ? v : ALIASES[String(v).toLowerCase()] || 'bar') });
92
+ /** Category labels (the x axis; slices of a pie). */
93
+ this.labels = input(...(ngDevMode ? [undefined, { debugName: "labels" }] : /* istanbul ignore next */ []));
94
+ /** `[{ name, data, type?, color?, axis?, stack?, smooth?, dashed?, hidden? }]`. */
95
+ this.series = input(...(ngDevMode ? [undefined, { debugName: "series" }] : /* istanbul ignore next */ []));
96
+ /** Chart.js-shaped data instead: `{ labels, datasets }`. */
97
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
98
+ this.data = input(...(ngDevMode ? [undefined, { debugName: "data" }] : /* istanbul ignore next */ []));
99
+ /** Chart.js-shaped options it understands (indexAxis, stacked scales, min / max, legend, title, cutout). */
100
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
101
+ this.options = input(...(ngDevMode ? [undefined, { debugName: "options" }] : /* istanbul ignore next */ []));
102
+ this.title = input(...(ngDevMode ? [undefined, { debugName: "title" }] : /* istanbul ignore next */ []));
103
+ this.subtitle = input(...(ngDevMode ? [undefined, { debugName: "subtitle" }] : /* istanbul ignore next */ []));
104
+ /** Height of the drawing: px or any CSS length. Default 320px (pie and doughnut 280px). */
105
+ this.height = input(...(ngDevMode ? [undefined, { debugName: "height" }] : /* istanbul ignore next */ []));
106
+ this.legend = input(...(ngDevMode ? [undefined, { debugName: "legend" }] : /* istanbul ignore next */ []));
107
+ /** Font family of every text in the chart. Default: the theme's. */
108
+ this.font = input(...(ngDevMode ? [undefined, { debugName: "font" }] : /* istanbul ignore next */ []));
109
+ /** Size of axis and label text, px. Default 12. */
110
+ this.fontSize = input(12, { ...(ngDevMode ? { debugName: "fontSize" } : /* istanbul ignore next */ {}), transform: (v) => (Number(v) > 0 ? Number(v) : 12) });
111
+ this.horizontal = input(false, { ...(ngDevMode ? { debugName: "horizontal" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
112
+ this.stacked = input(false, { ...(ngDevMode ? { debugName: "stacked" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
113
+ this.smooth = input(false, { ...(ngDevMode ? { debugName: "smooth" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
114
+ /** `'straight'`, `'smooth'` or `'step'` lines (wins over `smooth`). */
115
+ this.curve = input(...(ngDevMode ? [undefined, { debugName: "curve" }] : /* istanbul ignore next */ []));
116
+ /** Areas fade down from the line's colour; false fills them flat. */
117
+ this.gradient = input(true, { ...(ngDevMode ? { debugName: "gradient" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
118
+ /** A small chart with no axes, grid, legend or text: a trend beside a number. */
119
+ this.sparkline = input(false, { ...(ngDevMode ? { debugName: "sparkline" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
120
+ /** Values on the bars, points and slices. Default off (heatmap and waterfall: on). */
121
+ this.showValues = input(undefined, { ...(ngDevMode ? { debugName: "showValues" } : /* istanbul ignore next */ {}), transform: (v) => (v === undefined || v === null ? undefined : booleanAttribute(v)) });
122
+ /** The look of a kind, e.g. heatmap `'hex'`, funnel `'pyramid'`, box plot `'violin'`, unit `'people'` (see the docs). */
123
+ this.variant = input(...(ngDevMode ? [undefined, { debugName: "variant" }] : /* istanbul ignore next */ []));
124
+ /** Histogram bins. Default from the number of values. */
125
+ this.bins = input(undefined, { ...(ngDevMode ? { debugName: "bins" } : /* istanbul ignore next */ {}), transform: optionalNumber });
126
+ /**
127
+ * (Beta) A type switcher over the chart: `true` offers every kind the same data can be shown as, or name them
128
+ * (`['bar', 'line', 'area']`). The chart moves to the new kind with a cross-fade.
129
+ */
130
+ this.swap = input(...(ngDevMode ? [undefined, { debugName: "swap" }] : /* istanbul ignore next */ []));
131
+ /** A look picker over the chart for kinds with several looks (heatmap, stream, funnel, box plot, …). */
132
+ this.looks = input(false, { ...(ngDevMode ? { debugName: "looks" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
133
+ /** Dots on line points; default when there are 40 or fewer. */
134
+ this.points = input(undefined, { ...(ngDevMode ? { debugName: "points" } : /* istanbul ignore next */ {}), transform: (v) => (v === undefined || v === null ? undefined : booleanAttribute(v)) });
135
+ this.grid = input(true, { ...(ngDevMode ? { debugName: "grid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
136
+ this.tooltip = input(true, { ...(ngDevMode ? { debugName: "tooltip" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
137
+ this.animate = input(true, { ...(ngDevMode ? { debugName: "animate" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
138
+ /** How values read: `'number'`, `'integer'`, `'percent'`, `'currency'`, `'compact'` or a function. */
139
+ this.format = input('number', ...(ngDevMode ? [{ debugName: "format" }] : /* istanbul ignore next */ []));
140
+ /** Format of the right-hand axis. Default `format`. */
141
+ this.rightFormat = input(...(ngDevMode ? [undefined, { debugName: "rightFormat" }] : /* istanbul ignore next */ []));
142
+ this.currency = input('THB', ...(ngDevMode ? [{ debugName: "currency" }] : /* istanbul ignore next */ []));
143
+ this.decimals = input(undefined, { ...(ngDevMode ? { debugName: "decimals" } : /* istanbul ignore next */ {}), transform: (v) => (v === null || v === undefined || v === '' ? undefined : numberAttribute(v)) });
144
+ this.prefix = input(...(ngDevMode ? [undefined, { debugName: "prefix" }] : /* istanbul ignore next */ []));
145
+ this.suffix = input(...(ngDevMode ? [undefined, { debugName: "suffix" }] : /* istanbul ignore next */ []));
146
+ /** Language of numbers and built-in text. Default: the app's. */
147
+ this.lang = input(...(ngDevMode ? [undefined, { debugName: "lang" }] : /* istanbul ignore next */ []));
148
+ this.min = input(undefined, { ...(ngDevMode ? { debugName: "min" } : /* istanbul ignore next */ {}), transform: optionalNumber });
149
+ this.max = input(undefined, { ...(ngDevMode ? { debugName: "max" } : /* istanbul ignore next */ {}), transform: optionalNumber });
150
+ this.beginAtZero = input(undefined, { ...(ngDevMode ? { debugName: "beginAtZero" } : /* istanbul ignore next */ {}), transform: (v) => (v === undefined || v === null ? undefined : booleanAttribute(v)) });
151
+ this.rightMin = input(undefined, { ...(ngDevMode ? { debugName: "rightMin" } : /* istanbul ignore next */ {}), transform: optionalNumber });
152
+ this.rightMax = input(undefined, { ...(ngDevMode ? { debugName: "rightMax" } : /* istanbul ignore next */ {}), transform: optionalNumber });
153
+ this.xTitle = input(...(ngDevMode ? [undefined, { debugName: "xTitle" }] : /* istanbul ignore next */ []));
154
+ this.yTitle = input(...(ngDevMode ? [undefined, { debugName: "yTitle" }] : /* istanbul ignore next */ []));
155
+ this.y2Title = input(...(ngDevMode ? [undefined, { debugName: "y2Title" }] : /* istanbul ignore next */ []));
156
+ /** Horizontal lines at values: `[{ value: 80, label: 'เป้าหมาย' }]` (`to` shades a band). */
157
+ this.referenceLines = input(...(ngDevMode ? [undefined, { debugName: "referenceLines" }] : /* istanbul ignore next */ []));
158
+ /** Notes on bar, line and area charts: `{ y: [{ value, to?, label }], x: [{ at, to?, label }], points: [{ at, value, label }] }`. */
159
+ this.annotations = input(...(ngDevMode ? [undefined, { debugName: "annotations" }] : /* istanbul ignore next */ []));
160
+ /** Heatmap colours by value: `[{ from: 0, to: 10, color: '#…', name: 'ต่ำ' }]`. */
161
+ this.colorRanges = input(...(ngDevMode ? [undefined, { debugName: "colorRanges" }] : /* istanbul ignore next */ []));
162
+ /** Where pie, doughnut and radial bars start and end, degrees clockwise from 12 o'clock: -90 and 90 make a half circle (a gauge). */
163
+ this.startAngle = input(undefined, { ...(ngDevMode ? { debugName: "startAngle" } : /* istanbul ignore next */ {}), transform: optionalNumber });
164
+ this.endAngle = input(undefined, { ...(ngDevMode ? { debugName: "endAngle" } : /* istanbul ignore next */ {}), transform: optionalNumber });
165
+ /** Buttons over the chart: zoom (bar, line and area) and download as PNG, SVG or CSV. */
166
+ this.toolbar = input(false, { ...(ngDevMode ? { debugName: "toolbar" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
167
+ /** Drag across labels to zoom into them (bar, line and area). Default: on with the toolbar. */
168
+ this.zoom = input(undefined, { ...(ngDevMode ? { debugName: "zoom" } : /* istanbul ignore next */ {}), transform: (v) => (v === undefined || v === null ? undefined : booleanAttribute(v)) });
169
+ /** Charts with the same group show the tooltip at the same label together. */
170
+ this.group = input(...(ngDevMode ? [undefined, { debugName: "group" }] : /* istanbul ignore next */ []));
171
+ /** Name of the toolbar's downloads, without the extension. */
172
+ this.fileName = input('chart', ...(ngDevMode ? [{ debugName: "fileName" }] : /* istanbul ignore next */ []));
173
+ /** Colours for series (or slices) without their own, instead of the theme's. */
174
+ this.colors = input(...(ngDevMode ? [undefined, { debugName: "colors" }] : /* istanbul ignore next */ []));
175
+ this.barRadius = input(undefined, { ...(ngDevMode ? { debugName: "barRadius" } : /* istanbul ignore next */ {}), transform: optionalNumber });
176
+ /** Doughnut hole, 0–1 of the radius. Default 0.62. */
177
+ this.cutout = input(undefined, { ...(ngDevMode ? { debugName: "cutout" } : /* istanbul ignore next */ {}), transform: optionalNumber });
178
+ /** Doughnut middle: big text and the line under it. Default: the total and "รวม". */
179
+ this.centerValue = input(...(ngDevMode ? [undefined, { debugName: "centerValue" }] : /* istanbul ignore next */ []));
180
+ this.centerLabel = input(...(ngDevMode ? [undefined, { debugName: "centerLabel" }] : /* istanbul ignore next */ []));
181
+ /** Shown when there is nothing to draw. Default: the locale's "no data". */
182
+ this.emptyMessage = input(...(ngDevMode ? [undefined, { debugName: "emptyMessage" }] : /* istanbul ignore next */ []));
183
+ this.ariaLabel = input(...(ngDevMode ? [undefined, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
184
+ this.styleClass = input(...(ngDevMode ? [undefined, { debugName: "styleClass" }] : /* istanbul ignore next */ []));
185
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
186
+ this.style = input(...(ngDevMode ? [undefined, { debugName: "style" }] : /* istanbul ignore next */ []));
187
+ /** A bar, point or slice was clicked (or chosen with Enter). */
188
+ this.pointClick = output();
189
+ /** The legend showed or hid a series (pie: a slice). */
190
+ this.seriesToggle = output();
191
+ /** Zoomed into labels `from` … `to` (indexes), or back to all of them (null). */
192
+ this.zoomChange = output();
193
+ /** The type switcher picked another kind. */
194
+ this.typeChange = output();
195
+ /** The look picker picked another look. */
196
+ this.variantChange = output();
197
+ /** The kind drawn: `type`, or what the switcher picked. */
198
+ this.kind = linkedSignal(() => this.type(), ...(ngDevMode ? [{ debugName: "kind" }] : /* istanbul ignore next */ []));
199
+ /** The look drawn: `variant`, or what the picker picked. */
200
+ this.chosenLook = linkedSignal(() => this.variant() || undefined, ...(ngDevMode ? [{ debugName: "chosenLook" }] : /* istanbul ignore next */ []));
201
+ this.id = `wu-chart-${++uid}`;
202
+ /** Series (pie: slices) hidden from the legend. */
203
+ this.hidden = signal(new Set(), ...(ngDevMode ? [{ debugName: "hidden" }] : /* istanbul ignore next */ []));
204
+ /** The label (or slice) under the pointer or keyboard. */
205
+ this.hovered = signal(null, ...(ngDevMode ? [{ debugName: "hovered" }] : /* istanbul ignore next */ []));
206
+ /** The newer kinds: the hover target under the pointer or keyboard (its key). */
207
+ this.hoverKey = signal(null, ...(ngDevMode ? [{ debugName: "hoverKey" }] : /* istanbul ignore next */ []));
208
+ /** Sunburst: the node drilled into (a path of names). */
209
+ this.focus = signal(null, ...(ngDevMode ? [{ debugName: "focus" }] : /* istanbul ignore next */ []));
210
+ /** The series whose legend item is under the pointer: the others fade. */
211
+ this.focusSeries = signal(null, ...(ngDevMode ? [{ debugName: "focusSeries" }] : /* istanbul ignore next */ []));
212
+ /** Pointer position in the drawing, for the tooltip. */
213
+ this.pointer = signal(null, ...(ngDevMode ? [{ debugName: "pointer" }] : /* istanbul ignore next */ []));
214
+ this.liveText = signal('', ...(ngDevMode ? [{ debugName: "liveText" }] : /* istanbul ignore next */ []));
215
+ /** The labels zoomed into (indexes, both included), or null for all. */
216
+ this.zoomed = signal(null, ...(ngDevMode ? [{ debugName: "zoomed" }] : /* istanbul ignore next */ []));
217
+ /** Labels being dragged across to zoom. */
218
+ this.selecting = signal(null, ...(ngDevMode ? [{ debugName: "selecting" }] : /* istanbul ignore next */ []));
219
+ /** The toolbar's download menu is open. */
220
+ this.menu = signal(false, ...(ngDevMode ? [{ debugName: "menu" }] : /* istanbul ignore next */ []));
221
+ this.config = inject(WuConfig);
222
+ this.zone = inject(NgZone);
223
+ this.host = inject(ElementRef).nativeElement;
224
+ this.browser = isPlatformBrowser(inject(PLATFORM_ID));
225
+ this.body = viewChild('body', ...(ngDevMode ? [{ debugName: "body" }] : /* istanbul ignore next */ []));
226
+ this.svgRef = viewChild('svg', ...(ngDevMode ? [{ debugName: "svgRef" }] : /* istanbul ignore next */ []));
227
+ this.size = signal({ width: 0, height: 0 }, ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
228
+ this.frame = signal(null, ...(ngDevMode ? [{ debugName: "frame" }] : /* istanbul ignore next */ []));
229
+ this.i18n = _refreshOnTranslation();
230
+ this.lang$ = signal(this.config.translation.code || 'th', ...(ngDevMode ? [{ debugName: "lang$" }] : /* istanbul ignore next */ []));
231
+ this.canvas = null;
232
+ this.fontFamily = '';
233
+ this.raf = 0;
234
+ /** The next frame shows without animating (zooming). */
235
+ this.instant = false;
236
+ /** The frame last animated to, so the data effect does not start it again. */
237
+ this.lastTarget = null;
238
+ /** The pointer dragged (a zoom), so the click that follows is not a click on data. */
239
+ this.dragged = false;
240
+ // ---------- inputs, read together ----------
241
+ /** Labels and series from whichever inputs were given, with Chart.js options folded in. */
242
+ this.source = computed(() => {
243
+ const series = this.series();
244
+ if (series)
245
+ return { labels: (this.labels() || []).map(String), series };
246
+ const from = chartSeriesFrom(this.data(), this.kind());
247
+ return { labels: (this.labels() || from.labels).map(String), series: from.series };
248
+ }, ...(ngDevMode ? [{ debugName: "source" }] : /* istanbul ignore next */ []));
249
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
250
+ this.opt = computed(() => this.options() || {}, ...(ngDevMode ? [{ debugName: "opt" }] : /* istanbul ignore next */ []));
251
+ this.isPie = computed(() => this.kind() === 'pie' || this.kind() === 'doughnut', ...(ngDevMode ? [{ debugName: "isPie" }] : /* istanbul ignore next */ []));
252
+ /** One series, a value per label (pie, doughnut, polar area, radial bar): the legend shows and hides labels. */
253
+ this.isRound = computed(() => this.isPie() || this.kind() === 'polarArea' || this.kind() === 'radialBar', ...(ngDevMode ? [{ debugName: "isRound" }] : /* istanbul ignore next */ []));
254
+ /** Heatmap and treemap: the pointer and the keys go cell by cell. */
255
+ this.isCells = computed(() => this.kind() === 'heatmap' || this.kind() === 'treemap', ...(ngDevMode ? [{ debugName: "isCells" }] : /* istanbul ignore next */ []));
256
+ /** A heatmap coloured by `colorRanges`: the legend shows and hides ranges. */
257
+ this.byRanges = computed(() => this.kind() === 'heatmap' && !!this.colorRanges()?.length, ...(ngDevMode ? [{ debugName: "byRanges" }] : /* istanbul ignore next */ []));
258
+ this.zoomable = computed(() => (this.zoom() ?? this.toolbar()) && ['bar', 'line', 'area'].includes(this.kind()) && !this.isHorizontal() && !this.sparkline(), ...(ngDevMode ? [{ debugName: "zoomable" }] : /* istanbul ignore next */ []));
259
+ /** Kinds the switcher offers (none: no switcher). */
260
+ this.swapKinds = computed(() => {
261
+ const own = this.swap();
262
+ if (!own)
263
+ return [];
264
+ const { labels, series } = this.source();
265
+ const list = Array.isArray(own) ? own.filter((t) => TYPES.includes(t)) : chartSwapTypes(this.type(), series, labels);
266
+ return list.length > 1 ? list : [];
267
+ }, ...(ngDevMode ? [{ debugName: "swapKinds" }] : /* istanbul ignore next */ []));
268
+ this.kindsInfo = WU_CHART_KINDS;
269
+ /** Looks the picker offers for the kind drawn (none: no picker), and the one drawn. */
270
+ this.lookList = computed(() => (this.looks() ? chartVariants(this.kind()) : []), ...(ngDevMode ? [{ debugName: "lookList" }] : /* istanbul ignore next */ []));
271
+ this.activeLook = computed(() => {
272
+ const list = chartVariants(this.kind());
273
+ const now = this.chosenLook();
274
+ return now && list.includes(now) ? now : list[0];
275
+ }, ...(ngDevMode ? [{ debugName: "activeLook" }] : /* istanbul ignore next */ []));
276
+ this.words = computed(() => (this.language().toLowerCase().startsWith('th') ? WORDS.th : WORDS.en), ...(ngDevMode ? [{ debugName: "words" }] : /* istanbul ignore next */ []));
277
+ this.isHorizontal = computed(() => this.horizontal() || this.opt().indexAxis === 'y', ...(ngDevMode ? [{ debugName: "isHorizontal" }] : /* istanbul ignore next */ []));
278
+ this.isStacked = computed(() => this.stacked() || !!this.opt().scales?.x?.stacked || !!this.opt().scales?.y?.stacked, ...(ngDevMode ? [{ debugName: "isStacked" }] : /* istanbul ignore next */ []));
279
+ this.legendPos = computed(() => {
280
+ const own = this.legend();
281
+ if (own)
282
+ return own;
283
+ if (this.sparkline())
284
+ return 'none';
285
+ // One ring names itself in the middle.
286
+ if (this.kind() === 'radialBar' && this.source().labels.length < 2)
287
+ return 'none';
288
+ const l = this.opt().plugins?.legend;
289
+ if (l?.display === false)
290
+ return 'none';
291
+ if (l?.position === 'top' || l?.position === 'right' || l?.position === 'bottom')
292
+ return l.position;
293
+ if (l?.position === 'left')
294
+ return 'right';
295
+ return this.isRound() && this.kind() !== 'radialBar' ? 'right' : 'bottom';
296
+ }, ...(ngDevMode ? [{ debugName: "legendPos" }] : /* istanbul ignore next */ []));
297
+ this.heading = computed(() => this.title() || (typeof this.opt().plugins?.title?.text === 'string' ? this.opt().plugins.title.text : ''), ...(ngDevMode ? [{ debugName: "heading" }] : /* istanbul ignore next */ []));
298
+ this.heightCss = computed(() => {
299
+ const h = this.height() ?? this.opt().height;
300
+ if (typeof h === 'number' || (typeof h === 'string' && /^\d+(\.\d+)?$/.test(h)))
301
+ return `${h}px`;
302
+ return h || (this.sparkline() ? '48px' : this.isRound() ? '280px' : '320px');
303
+ }, ...(ngDevMode ? [{ debugName: "heightCss" }] : /* istanbul ignore next */ []));
304
+ this.language = computed(() => this.lang() || this.lang$(), ...(ngDevMode ? [{ debugName: "language" }] : /* istanbul ignore next */ []));
305
+ /** The source, cut to the labels zoomed into. */
306
+ this.view = computed(() => {
307
+ const src = this.source();
308
+ const z = this.zoomable() ? this.zoomed() : null;
309
+ if (!z)
310
+ return src;
311
+ const [a, b] = z;
312
+ return { labels: src.labels.slice(a, b + 1), series: src.series.map((s) => ({ ...s, data: s.data.slice(a, b + 1) })) };
313
+ }, ...(ngDevMode ? [{ debugName: "view" }] : /* istanbul ignore next */ []));
314
+ /** What the chart should show now: the source with the legend's hidden series applied. */
315
+ this.target = computed(() => {
316
+ const { labels, series } = this.view();
317
+ const hidden = this.hidden();
318
+ if (this.byRanges() || BY_LABELS.includes(this.kind()))
319
+ return { labels, series, hiddenSlices: [...hidden] };
320
+ if (this.isRound()) {
321
+ const s = series[0];
322
+ const data = s ? s.data.map((v, k) => (hidden.has(k) ? 0 : Number(v) || 0)) : [];
323
+ return { labels, series: s ? [{ ...s, data }] : [], hiddenSlices: [...hidden] };
324
+ }
325
+ return { labels, series: series.map((s, i) => ({ ...s, hidden: !!s.hidden || hidden.has(i) })), hiddenSlices: [] };
326
+ }, ...(ngDevMode ? [{ debugName: "target" }] : /* istanbul ignore next */ []));
327
+ this.palette = computed(() => (this.colors()?.length ? this.colors() : PALETTE), ...(ngDevMode ? [{ debugName: "palette" }] : /* istanbul ignore next */ []));
328
+ /** Everything the drawing takes except the data and its size. */
329
+ this.look = computed(() => {
330
+ const o = this.opt();
331
+ const y = o.scales?.y || o.scales?.x || {};
332
+ return {
333
+ type: this.kind(),
334
+ measure: (t, size) => this.measure(t, size),
335
+ fontSize: this.fontSize(),
336
+ palette: this.palette(),
337
+ horizontal: this.isHorizontal(),
338
+ stacked: this.isStacked(),
339
+ smooth: this.smooth(),
340
+ min: this.min() ?? optionalNumber(y.min),
341
+ max: this.max() ?? optionalNumber(y.max),
342
+ beginAtZero: this.beginAtZero() ?? (typeof y.beginAtZero === 'boolean' ? y.beginAtZero : undefined),
343
+ rightMin: this.rightMin(),
344
+ rightMax: this.rightMax(),
345
+ showValues: this.showValues(),
346
+ points: this.points(),
347
+ grid: this.grid(),
348
+ xTitle: this.xTitle() || undefined,
349
+ yTitle: this.yTitle() || undefined,
350
+ y2Title: this.y2Title() || undefined,
351
+ referenceLines: this.referenceLines() || undefined,
352
+ format: this.format(),
353
+ rightFormat: this.rightFormat() || undefined,
354
+ formatOptions: this.formatOptions(),
355
+ barRadius: this.barRadius(),
356
+ cutout: this.cutout() ?? cutoutOf(o.cutout),
357
+ curve: this.curve() || undefined,
358
+ gradient: this.gradient(),
359
+ sparkline: this.sparkline(),
360
+ startAngle: this.startAngle() ?? optionalNumber(o.rotation),
361
+ // Chart.js: rotation (start) and circumference (how far), in degrees.
362
+ endAngle: this.endAngle() ?? (optionalNumber(o.circumference) !== undefined ? (this.startAngle() ?? optionalNumber(o.rotation) ?? 0) + Number(o.circumference) : undefined),
363
+ annotations: this.shiftedNotes(),
364
+ colorRanges: this.colorRanges() || undefined,
365
+ variant: this.chosenLook() || undefined,
366
+ bins: this.bins(),
367
+ focus: this.focus() || undefined,
368
+ };
369
+ }, ...(ngDevMode ? [{ debugName: "look" }] : /* istanbul ignore next */ []));
370
+ /** Annotations that name a label by its index, moved with the zoom. */
371
+ this.shiftedNotes = computed(() => {
372
+ const a = this.annotations();
373
+ const z = this.zoomable() ? this.zoomed() : null;
374
+ if (!a || !z)
375
+ return a || undefined;
376
+ const at = (v) => (typeof v === 'number' ? (v - z[0]) : v);
377
+ return { y: a.y, x: a.x?.map((n) => ({ ...n, at: at(n.at), to: at(n.to) })), points: a.points?.map((n) => ({ ...n, at: at(n.at) })) };
378
+ }, ...(ngDevMode ? [{ debugName: "shiftedNotes" }] : /* istanbul ignore next */ []));
379
+ /** The drawing at the end of the animation: its axes stay put while the marks move. */
380
+ this.finalModel = computed(() => {
381
+ const { width, height } = this.size();
382
+ if (!width || !height)
383
+ return null;
384
+ const f = this.target();
385
+ return chartModel({ ...this.look(), labels: f.labels, series: f.series, hiddenSlices: f.hiddenSlices, width, height });
386
+ }, ...(ngDevMode ? [{ debugName: "finalModel" }] : /* istanbul ignore next */ []));
387
+ this.model = computed(() => {
388
+ const frame = this.frame();
389
+ const { width, height } = this.size();
390
+ if (!frame || !width || !height)
391
+ return null;
392
+ if (!this.animating() && frame === this.target())
393
+ return this.finalModel();
394
+ // Growing in: the final axes from the start. Changing: the axes slide from the old to the new.
395
+ const t = this.progress();
396
+ const end = this.finalModel()?.scales;
397
+ const from = this.scalesFrom();
398
+ const scales = end ? { left: slide(from?.left, end.left, t), right: slide(from?.right, end.right, t) } : undefined;
399
+ return chartModel({
400
+ ...this.look(),
401
+ labels: frame.labels,
402
+ series: frame.series,
403
+ hiddenSlices: frame.hiddenSlices,
404
+ width,
405
+ height,
406
+ scales,
407
+ sweep: this.entering() ? t : 1,
408
+ });
409
+ }, ...(ngDevMode ? [{ debugName: "model" }] : /* istanbul ignore next */ []));
410
+ this.formatOptions = computed(() => ({
411
+ lang: this.language(),
412
+ currency: this.currency(),
413
+ decimals: this.decimals(),
414
+ prefix: this.prefix() || undefined,
415
+ suffix: this.suffix() || undefined,
416
+ }), ...(ngDevMode ? [{ debugName: "formatOptions" }] : /* istanbul ignore next */ []));
417
+ // ---------- what the template reads ----------
418
+ /** Legend items, with the hidden state the legend set (slices shrink before they go). */
419
+ this.legendItems = computed(() => {
420
+ const m = this.model();
421
+ const hidden = this.hidden();
422
+ return (m?.legend || []).map((item) => ({ ...item, hidden: item.hidden || hidden.has(item.index) }));
423
+ }, ...(ngDevMode ? [{ debugName: "legendItems" }] : /* istanbul ignore next */ []));
424
+ this.classes = computed(() => [
425
+ 'wu-chart',
426
+ `wu-chart-type-${this.kind()}`,
427
+ `wu-chart-legend-${this.legendPos()}`,
428
+ this.sparkline() ? 'wu-chart-sparkline' : '',
429
+ this.focusSeries() !== null ? 'wu-chart-focusing' : '',
430
+ this.entering() ? 'wu-chart-entering' : '',
431
+ this.styleClass() || '',
432
+ ]
433
+ .filter(Boolean)
434
+ .join(' '), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
435
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
436
+ this.rootStyle = computed(() => {
437
+ const s = this.style();
438
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
439
+ return s && typeof s === 'object' ? s : null;
440
+ }, ...(ngDevMode ? [{ debugName: "rootStyle" }] : /* istanbul ignore next */ []));
441
+ this.empty = computed(() => {
442
+ const m = this.model();
443
+ return !!m && m.empty && !this.animating();
444
+ }, ...(ngDevMode ? [{ debugName: "empty" }] : /* istanbul ignore next */ []));
445
+ this.emptyText = computed(() => this.emptyMessage() || this.config.translation.emptyMessage, ...(ngDevMode ? [{ debugName: "emptyText" }] : /* istanbul ignore next */ []));
446
+ this.animating = signal(false, ...(ngDevMode ? [{ debugName: "animating" }] : /* istanbul ignore next */ []));
447
+ /** How far the animation is, 0–1 (eased). */
448
+ this.progress = signal(1, ...(ngDevMode ? [{ debugName: "progress" }] : /* istanbul ignore next */ []));
449
+ /** The axes shown when the animation began (null: growing in). */
450
+ this.scalesFrom = signal(null, ...(ngDevMode ? [{ debugName: "scalesFrom" }] : /* istanbul ignore next */ []));
451
+ /** Growing in the first time: the axes are final, pies fan out, values wait until the end. */
452
+ this.entering = signal(false, ...(ngDevMode ? [{ debugName: "entering" }] : /* istanbul ignore next */ []));
453
+ /** The doughnut's middle text (radial bars: the ring under the pointer, else the first). */
454
+ this.center = computed(() => {
455
+ const m = this.model();
456
+ if (!m?.center || m.empty)
457
+ return null;
458
+ const own = this.centerValue();
459
+ if (m.centerText) {
460
+ const band = this.hoverBand();
461
+ // The node pointed at, else the node drilled into (or the total).
462
+ const value = band ? formatChartValue(band.value ?? 0, this.format(), this.formatOptions()) : own !== undefined && own !== null ? String(own) : m.centerText.value;
463
+ const label = band ? band.label ?? '' : this.centerLabel() ?? m.centerText.label;
464
+ return { ...m.center, value, label, back: !!this.focus() && !band };
465
+ }
466
+ if (this.kind() === 'radialBar') {
467
+ const ring = m.rings.find((r) => r.index === this.hovered()) || m.rings[0];
468
+ if (!ring)
469
+ return null;
470
+ const value = own !== undefined && own !== null ? String(own) : formatChartValue(ring.percent, 'percent', { lang: this.language() });
471
+ return { ...m.center, value, label: this.centerLabel() ?? ring.label };
472
+ }
473
+ const total = this.target().series[0] ? this.target().series[0].data.reduce((sum, v) => sum + (Number(v) || 0), 0) : 0;
474
+ const value = own !== undefined && own !== null ? String(own) : formatChartValue(total, this.format(), this.formatOptions());
475
+ return { ...m.center, value, label: this.centerLabel() ?? this.config.translation.total };
476
+ }, ...(ngDevMode ? [{ debugName: "center" }] : /* istanbul ignore next */ []));
477
+ /** The tooltip: title, a row per series (or the slice) and where it goes. */
478
+ this.tip = computed(() => {
479
+ const m = this.model();
480
+ const i = this.hovered();
481
+ const at = this.pointer();
482
+ if (m?.generic) {
483
+ const band = this.hoverBand();
484
+ if (!band?.tip || !this.tooltip() || m.empty)
485
+ return null;
486
+ const x = at ? at.x : band.cx;
487
+ const y = at ? at.y : band.cy + band.h / 2;
488
+ return { title: band.tip.title, rows: band.tip.rows, x, y, flip: x > m.width / 2 };
489
+ }
490
+ if (!m || i === null || !this.tooltip() || m.empty)
491
+ return null;
492
+ const { labels, series } = this.target();
493
+ const fmt = (v, right) => formatChartValue(v, right ? this.rightFormat() || this.format() : this.format(), this.formatOptions());
494
+ let title = labels[i] ?? '';
495
+ const rows = [];
496
+ if (this.kind() === 'radialBar') {
497
+ const ring = m.rings.find((r) => r.index === i);
498
+ if (!ring)
499
+ return null;
500
+ title = '';
501
+ rows.push({ color: ring.color, name: ring.label, value: fmt(ring.value, false) });
502
+ }
503
+ else if (this.isRound()) {
504
+ const slice = m.slices.find((s) => s.index === i);
505
+ if (!slice)
506
+ return null;
507
+ rows.push({ color: slice.color, name: formatChartValue(slice.percent, 'percent', { lang: this.language() }), value: fmt(slice.value, false) });
508
+ }
509
+ else if (this.isCells()) {
510
+ const cell = m.cells.find((c) => c.index === i && c.series === this.hoveredSeries());
511
+ if (!cell)
512
+ return null;
513
+ const name = series[cell.series]?.name ?? '';
514
+ title = this.kind() === 'heatmap' || series.length > 1 ? name : '';
515
+ rows.push({ color: cell.color, name: cell.label, value: fmt(cell.value, false) });
516
+ }
517
+ else if (this.kind() === 'scatter') {
518
+ const dot = m.dots.find((d) => d.index === i && this.hoveredSeries() === d.series) || m.dots.find((d) => d.index === i);
519
+ if (!dot)
520
+ return null;
521
+ title = series[dot.series]?.name ?? '';
522
+ rows.push({ color: dot.color, name: 'x', value: fmt(dot.x ?? 0, false) }, { color: dot.color, name: 'y', value: fmt(dot.value, false) });
523
+ }
524
+ else {
525
+ series.forEach((s, k) => {
526
+ if (s.hidden)
527
+ return;
528
+ const v = s.data[i];
529
+ if (typeof v !== 'number' || !Number.isFinite(v))
530
+ return;
531
+ rows.push({ color: m.legend[k]?.color || this.palette()[k % this.palette().length], name: s.name ?? '', value: fmt(v, s.axis === 'right') });
532
+ });
533
+ }
534
+ if (!rows.length)
535
+ return null;
536
+ const band = m.hover.find((h) => h.index === i && (h.series === undefined || h.series === this.hoveredSeries()));
537
+ const x = at ? at.x : band?.cx ?? 0;
538
+ const y = at ? at.y : band ? band.cy + (this.isRound() ? 0 : band.h / 2) : 0;
539
+ return { title, rows, x, y, flip: x > m.width / 2 };
540
+ }, ...(ngDevMode ? [{ debugName: "tip" }] : /* istanbul ignore next */ []));
541
+ /** The series of the hovered scatter dot, heatmap cell or treemap tile. */
542
+ this.hoveredSeries = signal(null, ...(ngDevMode ? [{ debugName: "hoveredSeries" }] : /* istanbul ignore next */ []));
543
+ /** The newer kinds: the hover target pointed at. */
544
+ this.hoverBand = computed(() => {
545
+ const m = this.model();
546
+ const key = this.hoverKey();
547
+ return m?.generic && key !== null ? m.hover.find((h) => h.key === key) ?? null : null;
548
+ }, ...(ngDevMode ? [{ debugName: "hoverBand" }] : /* istanbul ignore next */ []));
549
+ /** The vertical (or horizontal) line through the hovered category. */
550
+ this.crosshair = computed(() => {
551
+ const m = this.model();
552
+ const i = this.hovered();
553
+ if (m?.generic) {
554
+ const band = this.hoverBand();
555
+ return band?.cross ? { x1: band.cx, y1: m.plot.y, x2: band.cx, y2: m.plot.y + m.plot.h } : null;
556
+ }
557
+ if (!m || i === null || this.isRound() || this.isCells() || this.kind() === 'radar' || this.kind() === 'scatter' || m.bars.length)
558
+ return null;
559
+ const band = m.hover.find((h) => h.index === i);
560
+ return band ? { x1: band.cx, y1: m.plot.y, x2: band.cx, y2: m.plot.y + m.plot.h } : null;
561
+ }, ...(ngDevMode ? [{ debugName: "crosshair" }] : /* istanbul ignore next */ []));
562
+ /** The box being dragged across to zoom. */
563
+ this.selection = computed(() => {
564
+ const m = this.model();
565
+ const sel = this.selecting();
566
+ if (!m || !sel)
567
+ return null;
568
+ const [a, b] = [Math.min(sel.from, sel.to), Math.max(sel.from, sel.to)];
569
+ const first = m.hover.find((h) => h.index === a);
570
+ const last = m.hover.find((h) => h.index === b);
571
+ return first && last ? { x: first.x, y: m.plot.y, w: last.x + last.w - first.x, h: m.plot.h } : null;
572
+ }, ...(ngDevMode ? [{ debugName: "selection" }] : /* istanbul ignore next */ []));
573
+ /** Rows of the screen-reader table. */
574
+ this.table = computed(() => {
575
+ const { labels, series } = this.source();
576
+ const fmt = (v) => (typeof v === 'number' ? formatChartValue(v, this.format(), this.formatOptions()) : '');
577
+ if (this.kind() === 'scatter')
578
+ return { head: ['x', 'y'], rows: series.flatMap((s) => s.data.map((p) => [s.name ?? '', fmt(p?.x), fmt(p?.y)])) };
579
+ const count = Math.max(labels.length, ...series.map((s) => s.data.length), 0);
580
+ return {
581
+ head: series.map((s) => s.name ?? ''),
582
+ rows: Array.from({ length: count }, (_, k) => [labels[k] ?? '', ...series.map((s) => fmt(s.data[k]))]),
583
+ };
584
+ }, ...(ngDevMode ? [{ debugName: "table" }] : /* istanbul ignore next */ []));
585
+ this.summary = computed(() => {
586
+ const own = this.ariaLabel() || this.heading();
587
+ const names = this.source().series.map((s) => s.name).filter(Boolean);
588
+ return [own, names.join(', ')].filter(Boolean).join(': ');
589
+ }, ...(ngDevMode ? [{ debugName: "summary" }] : /* istanbul ignore next */ []));
590
+ _assertSupportedAngular(inject(_WU_SKIP_VERSION_CHECK, { optional: true }));
591
+ const destroy = inject(DestroyRef);
592
+ const sub = this.config.translationChange.subscribe((t) => this.lang$.set(t.code || 'th'));
593
+ destroy.onDestroy(() => {
594
+ sub.unsubscribe();
595
+ this.i18n.unsubscribe();
596
+ if (this.raf)
597
+ cancelAnimationFrame(this.raf);
598
+ });
599
+ // Watch the drawing area's size.
600
+ afterNextRender(() => {
601
+ const el = this.body()?.nativeElement;
602
+ if (!el)
603
+ return;
604
+ const read = () => {
605
+ this.fontFamily = getComputedStyle(this.svgRef()?.nativeElement || el).fontFamily;
606
+ this.size.set({ width: Math.floor(el.clientWidth), height: Math.floor(el.clientHeight) });
607
+ };
608
+ read();
609
+ const doc = this.host.ownerDocument;
610
+ // Web fonts change text widths once they arrive.
611
+ doc.fonts?.ready?.then(() => read()).catch(() => undefined);
612
+ if (typeof ResizeObserver === 'undefined')
613
+ return;
614
+ const observer = new ResizeObserver(() => this.zone.run(read));
615
+ observer.observe(el);
616
+ destroy.onDestroy(() => observer.disconnect());
617
+ });
618
+ // Join the group, to show the tooltip together.
619
+ effect((onCleanup) => {
620
+ const name = this.group();
621
+ if (!name)
622
+ return;
623
+ let set = GROUPS.get(name);
624
+ if (!set)
625
+ GROUPS.set(name, (set = new Set()));
626
+ set.add(this);
627
+ onCleanup(() => {
628
+ set.delete(this);
629
+ if (!set.size)
630
+ GROUPS.delete(name);
631
+ });
632
+ });
633
+ // The app changed [type] or [variant]: move over the way the switcher does.
634
+ let seen = null;
635
+ effect(() => {
636
+ const now = [this.type(), this.variant()];
637
+ const before = seen;
638
+ seen = now;
639
+ if (!before || (before[0] === now[0] && before[1] === now[1]))
640
+ return;
641
+ untracked(() => this.transition(() => undefined, before[0] !== now[0]));
642
+ });
643
+ // Move to new data (or grow in the first time) over a few frames.
644
+ effect(() => {
645
+ const target = this.target();
646
+ if (target === this.lastTarget)
647
+ return;
648
+ untracked(() => this.animateTo(target));
649
+ });
650
+ }
651
+ lookName(look) {
652
+ const name = WU_CHART_LOOKS[look];
653
+ return name ? (this.language().toLowerCase().startsWith('th') ? name.th : name.en) : look;
654
+ }
655
+ dim(series) {
656
+ const f = this.focusSeries();
657
+ return f !== null && f !== series;
658
+ }
659
+ dimSlice(index) {
660
+ const f = this.focusSeries();
661
+ const h = this.hovered();
662
+ return (f !== null && f !== index) || (f === null && h !== null && h !== index);
663
+ }
664
+ dotR(d) {
665
+ return this.hovered() === d.index ? Math.max(d.r, 3.5) + 1.5 : d.r;
666
+ }
667
+ dy(t) {
668
+ return t.baseline === 'hanging' ? '0.9em' : t.baseline === 'middle' ? '0.35em' : null;
669
+ }
670
+ rotate(t) {
671
+ return t.rotate ? `rotate(${t.rotate} ${t.x} ${t.y})` : null;
672
+ }
673
+ sliceShift(s) {
674
+ return this.hovered() === s.index ? `translate(${s.dx}px, ${s.dy}px)` : null;
675
+ }
676
+ // ---------- pointer and keyboard ----------
677
+ move(event) {
678
+ const m = this.model();
679
+ const svg = this.svgRef()?.nativeElement;
680
+ if (!m || !svg || m.empty)
681
+ return;
682
+ const r = svg.getBoundingClientRect();
683
+ const x = event.clientX - r.left;
684
+ const y = event.clientY - r.top;
685
+ this.pointer.set({ x, y });
686
+ if (m.generic) {
687
+ this.hoverKey.set(chartHit(m, x, y)?.key ?? null);
688
+ return;
689
+ }
690
+ if (this.isRound()) {
691
+ // Slices and rings light up as the pointer enters them; empty space around them lets go.
692
+ if (!event.target?.closest?.('.wu-chart-slice, .wu-chart-ring, .wu-chart-track'))
693
+ this.hovered.set(null);
694
+ return;
695
+ }
696
+ if (this.isCells()) {
697
+ const cell = m.hover.find((h) => x >= h.x && x <= h.x + h.w && y >= h.y && y <= h.y + h.h);
698
+ this.hoveredSeries.set(cell?.series ?? null);
699
+ this.hovered.set(cell ? cell.index : null);
700
+ return;
701
+ }
702
+ if (this.kind() === 'scatter') {
703
+ let best = null;
704
+ for (const d of m.dots) {
705
+ const dist = Math.hypot(d.cx - x, d.cy - y) - d.r;
706
+ if (dist < 16 && (!best || dist < best.d))
707
+ best = { index: d.index, series: d.series, d: dist };
708
+ }
709
+ this.hoveredSeries.set(best?.series ?? null);
710
+ this.hovered.set(best?.index ?? null);
711
+ return;
712
+ }
713
+ if (this.kind() === 'radar') {
714
+ const cx = m.plot.x + m.plot.w / 2;
715
+ const cy = m.plot.y + m.plot.h / 2;
716
+ const count = m.hover.length;
717
+ const angle = (Math.atan2(x - cx, cy - y) + Math.PI * 2) % (Math.PI * 2);
718
+ this.hovered.set(count ? Math.round(angle / ((Math.PI * 2) / count)) % count : null);
719
+ return;
720
+ }
721
+ const sel = this.selecting();
722
+ if (sel) {
723
+ const k = m.hover.find((h) => x >= h.x && x <= h.x + h.w)?.index;
724
+ if (k !== undefined && k !== sel.to) {
725
+ this.selecting.set({ from: sel.from, to: k });
726
+ this.dragged = true;
727
+ }
728
+ }
729
+ const band = m.hover.find((h) => x >= h.x && x <= h.x + h.w && y >= h.y && y <= h.y + h.h);
730
+ this.hovered.set(band ? band.index : null);
731
+ this.share(band ? band.index : null);
732
+ }
733
+ hoverSlice(index) {
734
+ this.hovered.set(index);
735
+ }
736
+ leave() {
737
+ this.hoverKey.set(null);
738
+ this.hovered.set(null);
739
+ this.pointer.set(null);
740
+ this.hoveredSeries.set(null);
741
+ this.share(null);
742
+ }
743
+ /** Pointer down: start dragging across labels to zoom. */
744
+ down(event) {
745
+ const m = this.model();
746
+ const svg = this.svgRef()?.nativeElement;
747
+ if (!m || !svg || !this.zoomable() || event.button !== 0 || m.empty)
748
+ return;
749
+ const x = event.clientX - svg.getBoundingClientRect().left;
750
+ const k = m.hover.find((h) => x >= h.x && x <= h.x + h.w)?.index;
751
+ if (k === undefined)
752
+ return;
753
+ this.dragged = false;
754
+ this.selecting.set({ from: k, to: k });
755
+ svg.setPointerCapture?.(event.pointerId);
756
+ }
757
+ /** Pointer up: zoom into the labels dragged across. */
758
+ up() {
759
+ const sel = this.selecting();
760
+ this.selecting.set(null);
761
+ if (!sel || sel.from === sel.to)
762
+ return;
763
+ const offset = this.zoomed()?.[0] ?? 0;
764
+ this.setZoom(offset + Math.min(sel.from, sel.to), offset + Math.max(sel.from, sel.to));
765
+ }
766
+ click(event) {
767
+ if (this.dragged) {
768
+ this.dragged = false;
769
+ return;
770
+ }
771
+ const m = this.model();
772
+ if (m?.generic) {
773
+ this.pick(event);
774
+ return;
775
+ }
776
+ const target = event.target?.closest?.('[data-series]');
777
+ const series = target ? Number(target.getAttribute('data-series')) : this.firstShownSeries();
778
+ const index = target ? Number(target.getAttribute('data-index')) : this.hovered();
779
+ if (index === null || index === undefined || !Number.isFinite(index))
780
+ return;
781
+ this.emitClick(series, index, event);
782
+ }
783
+ /** ← → (↑ ↓ across) move between labels, Home / End, Enter or Space picks, Escape leaves. */
784
+ key(event) {
785
+ const m = this.model();
786
+ if (!m || m.empty)
787
+ return;
788
+ if (m.generic) {
789
+ this.keyGeneric(event, m);
790
+ return;
791
+ }
792
+ // The stops the keys go through: labels, slices, rings, dots or cells.
793
+ const stops = this.isRound()
794
+ ? (m.slices.length ? m.slices : m.rings).map((s) => ({ index: s.index }))
795
+ : this.kind() === 'scatter'
796
+ ? m.dots.map((d) => ({ index: d.index, series: d.series }))
797
+ : m.hover.map((h) => ({ index: h.index, series: h.series }));
798
+ if (!stops.length)
799
+ return;
800
+ const now = this.hovered();
801
+ const at = now === null ? -1 : stops.findIndex((s) => s.index === now && (s.series === undefined || s.series === this.hoveredSeries()));
802
+ let next = null;
803
+ const back = this.isHorizontal() ? 'ArrowUp' : 'ArrowLeft';
804
+ const fwd = this.isHorizontal() ? 'ArrowDown' : 'ArrowRight';
805
+ if (event.key === fwd || (event.key === 'ArrowRight' && this.isHorizontal()) || (event.key === 'ArrowDown' && !this.isHorizontal()))
806
+ next = stops[Math.min(stops.length - 1, at + 1)];
807
+ else if (event.key === back || (event.key === 'ArrowLeft' && this.isHorizontal()) || (event.key === 'ArrowUp' && !this.isHorizontal()))
808
+ next = stops[Math.max(0, at <= 0 ? 0 : at - 1)];
809
+ else if (event.key === 'Home')
810
+ next = stops[0];
811
+ else if (event.key === 'End')
812
+ next = stops[stops.length - 1];
813
+ else if ((event.key === 'Enter' || event.key === ' ') && now !== null) {
814
+ event.preventDefault();
815
+ this.emitClick(this.isCells() ? this.hoveredSeries() ?? 0 : this.firstShownSeries(), now, event);
816
+ return;
817
+ }
818
+ else if (event.key === 'Escape') {
819
+ this.leave();
820
+ return;
821
+ }
822
+ else
823
+ return;
824
+ event.preventDefault();
825
+ this.pointer.set(null);
826
+ if (next.series !== undefined)
827
+ this.hoveredSeries.set(next.series);
828
+ this.hovered.set(next.index);
829
+ this.share(next.index);
830
+ const tip = this.tip();
831
+ this.liveText.set(tip ? [tip.title, ...tip.rows.map((r) => `${r.name} ${r.value}`)].filter(Boolean).join(', ') : '');
832
+ }
833
+ /** Legend click: show or hide a series (pie: a slice). */
834
+ toggle(index) {
835
+ const next = new Set(this.hidden());
836
+ if (next.has(index))
837
+ next.delete(index);
838
+ else
839
+ next.add(index);
840
+ this.hidden.set(next);
841
+ const item = this.model()?.legend.find((l) => l.index === index);
842
+ this.seriesToggle.emit({ index, name: item?.name ?? '', hidden: next.has(index) });
843
+ }
844
+ /** The newer kinds: ← → ↑ ↓ go target by target, Enter picks (a sunburst goes in), Escape leaves (and comes back out). */
845
+ keyGeneric(event, m) {
846
+ const keys = [...new Set(m.hover.map((h) => h.key).filter((k) => !!k))];
847
+ if (!keys.length)
848
+ return;
849
+ const at = keys.indexOf(this.hoverKey() ?? '');
850
+ let next = null;
851
+ if (event.key === 'ArrowRight' || event.key === 'ArrowDown')
852
+ next = keys[Math.min(keys.length - 1, at + 1)];
853
+ else if (event.key === 'ArrowLeft' || event.key === 'ArrowUp')
854
+ next = keys[Math.max(0, at - 1)];
855
+ else if (event.key === 'Home')
856
+ next = keys[0];
857
+ else if (event.key === 'End')
858
+ next = keys[keys.length - 1];
859
+ else if ((event.key === 'Enter' || event.key === ' ') && at >= 0) {
860
+ event.preventDefault();
861
+ this.pick(event);
862
+ return;
863
+ }
864
+ else if (event.key === 'Escape') {
865
+ if (this.focus())
866
+ this.drillOut();
867
+ this.leave();
868
+ return;
869
+ }
870
+ else
871
+ return;
872
+ event.preventDefault();
873
+ this.pointer.set(null);
874
+ this.hoverKey.set(next);
875
+ const tip = this.tip();
876
+ this.liveText.set(tip ? [tip.title, ...tip.rows.map((r) => `${r.name} ${r.value}`)].filter(Boolean).join(', ') : '');
877
+ }
878
+ /** A click (or Enter) on a newer kind: a sunburst node with children goes in, the middle comes back out; else `(pointClick)`. */
879
+ pick(event) {
880
+ const m = this.model();
881
+ const band = this.hoverBand();
882
+ const at = this.pointer();
883
+ if (m?.center && m.centerText && at && !band && Math.hypot(at.x - m.center.x, at.y - m.center.y) <= m.center.r) {
884
+ this.drillOut();
885
+ return;
886
+ }
887
+ if (!band)
888
+ return;
889
+ if (band.drill && band.key) {
890
+ this.drillTo(band.key);
891
+ this.liveText.set(band.label ?? '');
892
+ return;
893
+ }
894
+ this.pointClick.emit({ series: band.series ?? 0, seriesName: '', index: band.index, label: band.label ?? band.tip?.title ?? '', value: band.value ?? NaN, originalEvent: event });
895
+ }
896
+ /** Sunburst: one level back out. */
897
+ drillOut() {
898
+ const path = (this.focus() || '').split('/').filter(Boolean);
899
+ path.pop();
900
+ this.drillTo(path.length ? path.join('/') : null);
901
+ }
902
+ /** Sunburst: show `key` in the middle, its rings fanning out again. */
903
+ drillTo(key) {
904
+ this.hoverKey.set(null);
905
+ this.focus.set(key);
906
+ this.frame.set(null);
907
+ this.animateTo(this.target());
908
+ }
909
+ /** Shape classes: its own, how it comes in, and lit or faded by the pointer. */
910
+ shapeClass(s, dimOthers) {
911
+ const key = this.hoverKey();
912
+ const lit = !!key && !!s.hover && (key === s.hover || key.startsWith(s.hover + '/'));
913
+ return [
914
+ 'wu-chart-shape',
915
+ s.className || '',
916
+ s.enter ? `wu-chart-in-${s.enter}` : '',
917
+ s.dashed ? 'wu-chart-dashed' : '',
918
+ lit ? 'wu-chart-lit' : '',
919
+ dimOthers && key && s.hover && !lit ? 'wu-chart-dim' : '',
920
+ ]
921
+ .filter(Boolean)
922
+ .join(' ');
923
+ }
924
+ /** The type switcher: draw the same data as another kind, cross-fading from the old drawing. */
925
+ setKind(next) {
926
+ if (next === this.kind())
927
+ return;
928
+ this.transition(() => {
929
+ this.kind.set(next);
930
+ this.typeChange.emit(next);
931
+ });
932
+ }
933
+ /** The look picker: draw the same kind another way, cross-fading. */
934
+ setLook(next) {
935
+ if (next === this.activeLook())
936
+ return;
937
+ this.transition(() => {
938
+ this.chosenLook.set(next);
939
+ this.variantChange.emit(next);
940
+ }, false);
941
+ }
942
+ /**
943
+ * A new kind or look: the old drawing stays on top a moment, fading out, while the new one comes in under it as the
944
+ * first time. `fresh` also forgets what the legend hid, the zoom and a sunburst's drill (they belong to the old kind).
945
+ */
946
+ transition(apply, fresh = true) {
947
+ const svg = this.svgRef()?.nativeElement;
948
+ const body = this.body()?.nativeElement;
949
+ const motion = this.browser && this.animate() && !this.host.ownerDocument.defaultView?.matchMedia?.('(prefers-reduced-motion: reduce)').matches;
950
+ if (motion && svg && body) {
951
+ // The old drawing stays on top a moment, fading out, while the new one comes in under it.
952
+ const ghost = svg.cloneNode(true);
953
+ ghost.removeAttribute('tabindex');
954
+ ghost.removeAttribute('role');
955
+ ghost.removeAttribute('aria-label');
956
+ ghost.removeAttribute('aria-labelledby');
957
+ ghost.setAttribute('aria-hidden', 'true');
958
+ ghost.classList.add('wu-chart-ghost');
959
+ body.appendChild(ghost);
960
+ setTimeout(() => ghost.remove(), GHOST_MS);
961
+ }
962
+ this.leave();
963
+ if (fresh) {
964
+ this.hidden.set(new Set());
965
+ this.focus.set(null);
966
+ this.zoomed.set(null);
967
+ }
968
+ apply();
969
+ // Come in as the first time.
970
+ this.frame.set(null);
971
+ this.animateTo(this.target());
972
+ }
973
+ // ---------- toolbar ----------
974
+ zoomIn() {
975
+ const [a, b] = this.zoomed() || [0, this.labelCount() - 1];
976
+ const cut = Math.max(1, Math.floor((b - a) / 4));
977
+ if (b - cut > a + cut)
978
+ this.setZoom(a + cut, b - cut);
979
+ }
980
+ zoomOut() {
981
+ const z = this.zoomed();
982
+ if (!z)
983
+ return;
984
+ const grow = Math.max(1, Math.ceil((z[1] - z[0]) / 2));
985
+ this.setZoom(z[0] - grow, z[1] + grow);
986
+ }
987
+ resetZoom() {
988
+ if (this.zoomed())
989
+ this.setZoom(0, this.labelCount() - 1);
990
+ }
991
+ /** The toolbar's download menu: save as PNG, SVG or CSV. */
992
+ save(format) {
993
+ this.menu.set(false);
994
+ void this.download(this.fileName() || 'chart', format);
995
+ }
996
+ /** Focus left the toolbar: close its menu. */
997
+ toolbarOut(event) {
998
+ const into = event.relatedTarget;
999
+ if (!into || !event.currentTarget.contains(into))
1000
+ this.menu.set(false);
1001
+ }
1002
+ /** Another chart of the group points at `index`: show the same label here. */
1003
+ ɵfollow(index) {
1004
+ if (this.isRound() || this.isCells())
1005
+ return;
1006
+ this.pointer.set(null);
1007
+ this.hovered.set(index);
1008
+ }
1009
+ // ---------- public ----------
1010
+ /** The chart as an SVG document, colours and fonts written in (for files and e-mail). */
1011
+ toSVG() {
1012
+ const svg = this.svgRef()?.nativeElement;
1013
+ if (!svg)
1014
+ return '';
1015
+ const clone = svg.cloneNode(true);
1016
+ const live = [svg, ...Array.from(svg.querySelectorAll('*'))];
1017
+ const copies = [clone, ...Array.from(clone.querySelectorAll('*'))];
1018
+ const props = ['fill', 'fill-opacity', 'stroke', 'stroke-width', 'stroke-dasharray', 'stroke-opacity', 'stroke-linecap', 'stop-color', 'stop-opacity', 'opacity', 'font-family', 'font-size', 'font-weight', 'transform'];
1019
+ live.forEach((el, i) => {
1020
+ const css = getComputedStyle(el);
1021
+ const copy = copies[i];
1022
+ for (const p of props) {
1023
+ const v = css.getPropertyValue(p);
1024
+ if (v && !(p === 'transform' && v === 'none'))
1025
+ copy.style.setProperty(p, v);
1026
+ }
1027
+ copy.removeAttribute('class');
1028
+ copy.removeAttribute('tabindex');
1029
+ });
1030
+ clone.setAttribute('xmlns', 'http://www.w3.org/2000/svg');
1031
+ return new XMLSerializer().serializeToString(clone);
1032
+ }
1033
+ /** The chart as a PNG data URL, `scale` times the size on screen, on `background` (default: the theme's card colour). */
1034
+ async toPNG(scale = 2, background) {
1035
+ const m = this.model();
1036
+ const svg = this.toSVG();
1037
+ if (!m || !svg)
1038
+ return '';
1039
+ const img = new Image();
1040
+ img.src = 'data:image/svg+xml;charset=utf-8,' + encodeURIComponent(svg);
1041
+ await img.decode();
1042
+ const canvas = this.host.ownerDocument.createElement('canvas');
1043
+ canvas.width = Math.round(m.width * scale);
1044
+ canvas.height = Math.round(m.height * scale);
1045
+ const ctx = canvas.getContext('2d');
1046
+ if (!ctx)
1047
+ return '';
1048
+ ctx.fillStyle = background || getComputedStyle(this.host).getPropertyValue('--wu-card-bg').trim() || '#ffffff';
1049
+ ctx.fillRect(0, 0, canvas.width, canvas.height);
1050
+ ctx.drawImage(img, 0, 0, canvas.width, canvas.height);
1051
+ return canvas.toDataURL('image/png');
1052
+ }
1053
+ /** The numbers as CSV: a row per label, a column per series (scatter: series, x, y). Excel opens it with Thai intact. */
1054
+ toCSV() {
1055
+ const { labels, series } = this.source();
1056
+ const cell = (v) => {
1057
+ const t = v === null || v === undefined ? '' : String(v);
1058
+ return /[",\r\n]/.test(t) ? `"${t.replace(/"/g, '""')}"` : t;
1059
+ };
1060
+ let rows;
1061
+ if (this.kind() === 'scatter') {
1062
+ rows = [['', 'x', 'y'], ...series.flatMap((s) => s.data.map((p) => [s.name ?? '', p?.x, p?.y]))];
1063
+ }
1064
+ else {
1065
+ const count = Math.max(labels.length, ...series.map((s) => s.data.length), 0);
1066
+ rows = [['', ...series.map((s) => s.name ?? '')], ...Array.from({ length: count }, (_, k) => [labels[k] ?? '', ...series.map((s) => s.data[k])])];
1067
+ }
1068
+ return rows.map((r) => r.map(cell).join(',')).join('\r\n');
1069
+ }
1070
+ /** Saves the chart as `<fileName>.png`, `.svg` or `.csv` (the numbers). */
1071
+ async download(fileName = 'chart', format = 'png') {
1072
+ const doc = this.host.ownerDocument;
1073
+ const url = format === 'csv'
1074
+ ? 'data:text/csv;charset=utf-8,' + encodeURIComponent('\ufeff' + this.toCSV())
1075
+ : format === 'svg'
1076
+ ? 'data:image/svg+xml;charset=utf-8,' + encodeURIComponent(this.toSVG())
1077
+ : await this.toPNG();
1078
+ if (!url)
1079
+ return;
1080
+ const a = doc.createElement('a');
1081
+ a.href = url;
1082
+ a.download = `${fileName}.${format}`;
1083
+ a.style.display = 'none';
1084
+ doc.body.appendChild(a);
1085
+ a.click();
1086
+ a.remove();
1087
+ }
1088
+ /** Draws again (after changing `series` in place). */
1089
+ refresh() {
1090
+ this.lastTarget = this.target();
1091
+ this.frame.set(this.lastTarget);
1092
+ }
1093
+ // ---------- internals ----------
1094
+ labelCount() {
1095
+ const { labels, series } = this.source();
1096
+ return Math.max(labels.length, ...series.map((s) => s.data.length), 0);
1097
+ }
1098
+ /** Zoom into labels `a` … `b` (all of them: back out), at once. */
1099
+ setZoom(a, b) {
1100
+ const last = this.labelCount() - 1;
1101
+ const from = Math.max(0, Math.min(a, b));
1102
+ const to = Math.min(last, Math.max(a, b));
1103
+ const all = from <= 0 && to >= last;
1104
+ if (to <= from && !all)
1105
+ return;
1106
+ this.instant = true;
1107
+ this.leave();
1108
+ this.zoomed.set(all ? null : [from, to]);
1109
+ this.zoomChange.emit(all ? null : { from, to });
1110
+ }
1111
+ /** Point the group's other charts at `index`. */
1112
+ share(index) {
1113
+ const name = this.group();
1114
+ if (!name)
1115
+ return;
1116
+ for (const other of GROUPS.get(name) || [])
1117
+ if (other !== this)
1118
+ other.ɵfollow(index);
1119
+ }
1120
+ firstShownSeries() {
1121
+ const i = this.source().series.findIndex((s, k) => !s.hidden && !this.hidden().has(k));
1122
+ return Math.max(0, i);
1123
+ }
1124
+ emitClick(series, index, event) {
1125
+ const { labels, series: all } = this.target();
1126
+ const s = all[series];
1127
+ if (!s)
1128
+ return;
1129
+ const raw = s.data[index];
1130
+ const value = typeof raw === 'number' ? raw : raw && typeof raw === 'object' ? Number(raw.y) : NaN;
1131
+ if (!Number.isFinite(value))
1132
+ return;
1133
+ // The index in the whole data, not in the zoomed part.
1134
+ const offset = this.zoomable() ? this.zoomed()?.[0] ?? 0 : 0;
1135
+ this.pointClick.emit({ series, seriesName: s.name ?? '', index: index + offset, label: labels[index] ?? '', value, originalEvent: event });
1136
+ }
1137
+ measure(text, size) {
1138
+ if (!this.browser)
1139
+ return text.length * size * 0.56;
1140
+ if (!this.canvas)
1141
+ this.canvas = this.host.ownerDocument.createElement('canvas').getContext('2d');
1142
+ if (!this.canvas)
1143
+ return text.length * size * 0.56;
1144
+ this.canvas.font = `${size}px ${this.font() || this.fontFamily || 'sans-serif'}`;
1145
+ return this.canvas.measureText(text).width;
1146
+ }
1147
+ animateTo(target) {
1148
+ this.lastTarget = target;
1149
+ if (this.raf)
1150
+ cancelAnimationFrame(this.raf);
1151
+ const from = this.frame();
1152
+ const instant = this.instant;
1153
+ this.instant = false;
1154
+ const still = instant ||
1155
+ !this.browser ||
1156
+ !this.animate() ||
1157
+ typeof requestAnimationFrame === 'undefined' ||
1158
+ !!this.host.ownerDocument.defaultView?.matchMedia?.('(prefers-reduced-motion: reduce)').matches;
1159
+ // Raw values, ranges, nodes and units do not move value by value: their shapes come in on their own, and the
1160
+ // sunburst fans out.
1161
+ const moves = chartMovesValues(this.kind());
1162
+ if (still || (!moves && this.kind() !== 'sunburst')) {
1163
+ this.raf = 0;
1164
+ this.animating.set(false);
1165
+ this.entering.set(false);
1166
+ this.progress.set(1);
1167
+ this.frame.set(target);
1168
+ return;
1169
+ }
1170
+ // New labels start from nothing; the same labels move from where they are.
1171
+ const start = from && from.labels.length === target.labels.length ? from : null;
1172
+ // A pie fans out with its final slices, cells and tiles come in as they are; everything else moves its values.
1173
+ const fan = !moves || (!start && ((this.isRound() && this.kind() !== 'radialBar') || this.isCells()));
1174
+ const at = (t) => (t >= 1 || fan ? target : between(start, target, t));
1175
+ this.scalesFrom.set(start ? this.model()?.scales ?? null : null);
1176
+ this.entering.set(!start);
1177
+ this.progress.set(0);
1178
+ this.animating.set(true);
1179
+ const t0 = performance.now();
1180
+ const step = () => {
1181
+ const t = Math.min(1, (performance.now() - t0) / ANIMATION_MS);
1182
+ this.progress.set(ease(t));
1183
+ this.frame.set(at(ease(t)));
1184
+ if (t < 1) {
1185
+ this.raf = requestAnimationFrame(step);
1186
+ }
1187
+ else {
1188
+ this.raf = 0;
1189
+ this.animating.set(false);
1190
+ this.entering.set(false);
1191
+ this.scalesFrom.set(null);
1192
+ }
1193
+ };
1194
+ this.frame.set(at(0));
1195
+ this.raf = requestAnimationFrame(step);
1196
+ }
1197
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: WuChart, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1198
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: WuChart, isStandalone: true, selector: "wu-chart", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, labels: { classPropertyName: "labels", publicName: "labels", isSignal: true, isRequired: false, transformFunction: null }, series: { classPropertyName: "series", publicName: "series", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, legend: { classPropertyName: "legend", publicName: "legend", isSignal: true, isRequired: false, transformFunction: null }, font: { classPropertyName: "font", publicName: "font", isSignal: true, isRequired: false, transformFunction: null }, fontSize: { classPropertyName: "fontSize", publicName: "fontSize", isSignal: true, isRequired: false, transformFunction: null }, horizontal: { classPropertyName: "horizontal", publicName: "horizontal", isSignal: true, isRequired: false, transformFunction: null }, stacked: { classPropertyName: "stacked", publicName: "stacked", isSignal: true, isRequired: false, transformFunction: null }, smooth: { classPropertyName: "smooth", publicName: "smooth", isSignal: true, isRequired: false, transformFunction: null }, curve: { classPropertyName: "curve", publicName: "curve", isSignal: true, isRequired: false, transformFunction: null }, gradient: { classPropertyName: "gradient", publicName: "gradient", isSignal: true, isRequired: false, transformFunction: null }, sparkline: { classPropertyName: "sparkline", publicName: "sparkline", isSignal: true, isRequired: false, transformFunction: null }, showValues: { classPropertyName: "showValues", publicName: "showValues", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, bins: { classPropertyName: "bins", publicName: "bins", isSignal: true, isRequired: false, transformFunction: null }, swap: { classPropertyName: "swap", publicName: "swap", isSignal: true, isRequired: false, transformFunction: null }, looks: { classPropertyName: "looks", publicName: "looks", isSignal: true, isRequired: false, transformFunction: null }, points: { classPropertyName: "points", publicName: "points", isSignal: true, isRequired: false, transformFunction: null }, grid: { classPropertyName: "grid", publicName: "grid", isSignal: true, isRequired: false, transformFunction: null }, tooltip: { classPropertyName: "tooltip", publicName: "tooltip", isSignal: true, isRequired: false, transformFunction: null }, animate: { classPropertyName: "animate", publicName: "animate", isSignal: true, isRequired: false, transformFunction: null }, format: { classPropertyName: "format", publicName: "format", isSignal: true, isRequired: false, transformFunction: null }, rightFormat: { classPropertyName: "rightFormat", publicName: "rightFormat", isSignal: true, isRequired: false, transformFunction: null }, currency: { classPropertyName: "currency", publicName: "currency", isSignal: true, isRequired: false, transformFunction: null }, decimals: { classPropertyName: "decimals", publicName: "decimals", isSignal: true, isRequired: false, transformFunction: null }, prefix: { classPropertyName: "prefix", publicName: "prefix", isSignal: true, isRequired: false, transformFunction: null }, suffix: { classPropertyName: "suffix", publicName: "suffix", isSignal: true, isRequired: false, transformFunction: null }, lang: { classPropertyName: "lang", publicName: "lang", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, beginAtZero: { classPropertyName: "beginAtZero", publicName: "beginAtZero", isSignal: true, isRequired: false, transformFunction: null }, rightMin: { classPropertyName: "rightMin", publicName: "rightMin", isSignal: true, isRequired: false, transformFunction: null }, rightMax: { classPropertyName: "rightMax", publicName: "rightMax", isSignal: true, isRequired: false, transformFunction: null }, xTitle: { classPropertyName: "xTitle", publicName: "xTitle", isSignal: true, isRequired: false, transformFunction: null }, yTitle: { classPropertyName: "yTitle", publicName: "yTitle", isSignal: true, isRequired: false, transformFunction: null }, y2Title: { classPropertyName: "y2Title", publicName: "y2Title", isSignal: true, isRequired: false, transformFunction: null }, referenceLines: { classPropertyName: "referenceLines", publicName: "referenceLines", isSignal: true, isRequired: false, transformFunction: null }, annotations: { classPropertyName: "annotations", publicName: "annotations", isSignal: true, isRequired: false, transformFunction: null }, colorRanges: { classPropertyName: "colorRanges", publicName: "colorRanges", isSignal: true, isRequired: false, transformFunction: null }, startAngle: { classPropertyName: "startAngle", publicName: "startAngle", isSignal: true, isRequired: false, transformFunction: null }, endAngle: { classPropertyName: "endAngle", publicName: "endAngle", isSignal: true, isRequired: false, transformFunction: null }, toolbar: { classPropertyName: "toolbar", publicName: "toolbar", isSignal: true, isRequired: false, transformFunction: null }, zoom: { classPropertyName: "zoom", publicName: "zoom", isSignal: true, isRequired: false, transformFunction: null }, group: { classPropertyName: "group", publicName: "group", isSignal: true, isRequired: false, transformFunction: null }, fileName: { classPropertyName: "fileName", publicName: "fileName", isSignal: true, isRequired: false, transformFunction: null }, colors: { classPropertyName: "colors", publicName: "colors", isSignal: true, isRequired: false, transformFunction: null }, barRadius: { classPropertyName: "barRadius", publicName: "barRadius", isSignal: true, isRequired: false, transformFunction: null }, cutout: { classPropertyName: "cutout", publicName: "cutout", isSignal: true, isRequired: false, transformFunction: null }, centerValue: { classPropertyName: "centerValue", publicName: "centerValue", isSignal: true, isRequired: false, transformFunction: null }, centerLabel: { classPropertyName: "centerLabel", publicName: "centerLabel", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, style: { classPropertyName: "style", publicName: "style", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pointClick: "pointClick", seriesToggle: "seriesToggle", zoomChange: "zoomChange", typeChange: "typeChange", variantChange: "variantChange" }, host: { properties: { "attr.title": "null" }, classAttribute: "wu-chart-host" }, viewQueries: [{ propertyName: "body", first: true, predicate: ["body"], descendants: true, isSignal: true }, { propertyName: "svgRef", first: true, predicate: ["svg"], descendants: true, isSignal: true }], exportAs: ["wuChart"], ngImport: i0, template: "<div [class]=\"classes()\" [style]=\"rootStyle()\" [style.font-family]=\"font() || null\" [style.--wu-chart-font-size]=\"fontSize() + 'px'\">\n @if (heading() || subtitle() || toolbar() || swapKinds().length || lookList().length) {\n <div class=\"wu-chart-head\">\n <div class=\"wu-chart-heading\">\n @if (heading()) {\n <div class=\"wu-chart-title\" [id]=\"id + '-title'\">{{ heading() }}</div>\n }\n @if (subtitle()) {\n <div class=\"wu-chart-subtitle\">{{ subtitle() }}</div>\n }\n </div>\n @if (lookList().length) {\n <div class=\"wu-chart-looks\" role=\"radiogroup\" [attr.aria-label]=\"words().looks\">\n @for (l of lookList(); track l) {\n <button\n type=\"button\"\n role=\"radio\"\n class=\"wu-chart-look-item\"\n [class.wu-chart-look-on]=\"activeLook() === l\"\n [attr.aria-checked]=\"activeLook() === l\"\n [attr.data-look]=\"l\"\n (click)=\"setLook(l)\"\n >{{ lookName(l) }}</button>\n }\n </div>\n }\n @if (swapKinds().length) {\n <div class=\"wu-chart-swap\" role=\"radiogroup\" [attr.aria-label]=\"words().kinds\">\n @for (t of swapKinds(); track t) {\n <button\n type=\"button\"\n role=\"radio\"\n class=\"wu-chart-swap-item\"\n [class.wu-chart-swap-on]=\"kind() === t\"\n [attr.aria-checked]=\"kind() === t\"\n [attr.aria-label]=\"language().startsWith('th') ? kindsInfo[t].th : kindsInfo[t].en\"\n [attr.title]=\"language().startsWith('th') ? kindsInfo[t].th : kindsInfo[t].en\"\n [attr.data-kind]=\"t\"\n (click)=\"setKind(t)\"\n >\n <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path [attr.d]=\"kindsInfo[t].icon\"></path></svg>\n </button>\n }\n </div>\n }\n @if (toolbar()) {\n <div class=\"wu-chart-toolbar\" role=\"toolbar\" [attr.aria-label]=\"words().toolbar\" (focusout)=\"toolbarOut($event)\" (keydown.escape)=\"menu.set(false)\">\n @if (zoomable()) {\n <button type=\"button\" class=\"wu-chart-tool\" [attr.aria-label]=\"words().zoomIn\" [attr.title]=\"words().zoomIn\" (click)=\"zoomIn()\">\n <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M11 4a7 7 0 1 0 0 14 7 7 0 1 0 0-14ZM20 20l-4.2-4.2M11 8v6M8 11h6\"></path></svg>\n </button>\n <button type=\"button\" class=\"wu-chart-tool\" [attr.aria-label]=\"words().zoomOut\" [attr.title]=\"words().zoomOut\" [disabled]=\"!zoomed()\" (click)=\"zoomOut()\">\n <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M11 4a7 7 0 1 0 0 14 7 7 0 1 0 0-14ZM20 20l-4.2-4.2M8 11h6\"></path></svg>\n </button>\n <button type=\"button\" class=\"wu-chart-tool\" [attr.aria-label]=\"words().reset\" [attr.title]=\"words().reset\" [disabled]=\"!zoomed()\" (click)=\"resetZoom()\">\n <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M4.5 12a7.5 7.5 0 1 0 2.2-5.3M4.5 4.5v4h4\"></path></svg>\n </button>\n }\n <span class=\"wu-chart-tool-wrap\">\n <button\n type=\"button\"\n class=\"wu-chart-tool\"\n [attr.aria-label]=\"words().download\"\n [attr.title]=\"words().download\"\n aria-haspopup=\"menu\"\n [attr.aria-expanded]=\"menu()\"\n (click)=\"menu.set(!menu())\"\n >\n <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M12 4v11M7 10l5 5 5-5M5 19.5h14\"></path></svg>\n </button>\n @if (menu()) {\n <span class=\"wu-chart-menu\" role=\"menu\">\n <button type=\"button\" role=\"menuitem\" (click)=\"save('png')\">PNG</button>\n <button type=\"button\" role=\"menuitem\" (click)=\"save('svg')\">SVG</button>\n <button type=\"button\" role=\"menuitem\" (click)=\"save('csv')\">CSV</button>\n </span>\n }\n </span>\n </div>\n }\n </div>\n }\n\n <div class=\"wu-chart-main\">\n <div #body class=\"wu-chart-body\" [style.height]=\"heightCss()\">\n @if (model(); as m) {\n <svg\n #svg\n class=\"wu-chart-svg\"\n [attr.width]=\"m.width\"\n [attr.height]=\"m.height\"\n [attr.viewBox]=\"'0 0 ' + m.width + ' ' + m.height\"\n role=\"img\"\n tabindex=\"0\"\n [class.wu-chart-zoomable]=\"zoomable()\"\n [attr.aria-label]=\"summary() || null\"\n [attr.aria-labelledby]=\"!ariaLabel() && heading() ? id + '-title' : null\"\n (pointermove)=\"move($event)\"\n (pointerdown)=\"down($event)\"\n (pointerup)=\"up()\"\n (pointercancel)=\"up()\"\n (pointerleave)=\"leave()\"\n (click)=\"click($event)\"\n (keydown)=\"key($event)\"\n (blur)=\"leave()\"\n >\n <defs>\n @for (s of m.shapes; track s.key) {\n @if (s.gradient; as g) {\n <linearGradient [attr.id]=\"id + '-' + s.key\" gradientUnits=\"userSpaceOnUse\" [attr.x1]=\"g.x1\" [attr.y1]=\"g.y1\" [attr.x2]=\"g.x2\" [attr.y2]=\"g.y2\">\n <stop offset=\"0\" [style.stop-color]=\"g.from\"></stop>\n <stop offset=\"1\" [style.stop-color]=\"g.to\"></stop>\n </linearGradient>\n } @else if (s.fade) {\n <linearGradient [attr.id]=\"id + '-' + s.key\" x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\">\n <stop offset=\"0\" class=\"wu-chart-fade-from\" [style.stop-color]=\"s.fill\"></stop>\n <stop offset=\"1\" class=\"wu-chart-fade-to\" [style.stop-color]=\"s.fill\"></stop>\n </linearGradient>\n }\n }\n @for (l of m.lines; track l.key) {\n @if (l.gradient) {\n <linearGradient [attr.id]=\"id + '-' + l.key\" x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\">\n <stop offset=\"0\" class=\"wu-chart-fade-from\" [style.stop-color]=\"l.color\"></stop>\n <stop offset=\"1\" class=\"wu-chart-fade-to\" [style.stop-color]=\"l.color\"></stop>\n </linearGradient>\n }\n }\n </defs>\n @for (b of m.bands; track $index) {\n <rect class=\"wu-chart-band\" [attr.x]=\"b.x\" [attr.y]=\"b.y\" [attr.width]=\"b.w\" [attr.height]=\"b.h\" [style.fill]=\"b.color\"></rect>\n }\n <g class=\"wu-chart-grid\">\n @for (g of m.grid; track $index) {\n <line [attr.x1]=\"g.x1\" [attr.y1]=\"g.y1\" [attr.x2]=\"g.x2\" [attr.y2]=\"g.y2\"></line>\n }\n </g>\n @if (m.zero; as z) {\n <line class=\"wu-chart-zero\" [attr.x1]=\"z.x1\" [attr.y1]=\"z.y1\" [attr.x2]=\"z.x2\" [attr.y2]=\"z.y2\"></line>\n }\n\n @if (m.radar; as r) {\n <g class=\"wu-chart-web\">\n @for (d of r.rings; track $index) {\n <path [attr.d]=\"d\"></path>\n }\n @for (s of r.spokes; track $index) {\n <line [attr.x1]=\"s.x1\" [attr.y1]=\"s.y1\" [attr.x2]=\"s.x2\" [attr.y2]=\"s.y2\"></line>\n }\n </g>\n @for (s of r.shapes; track s.key) {\n <path class=\"wu-chart-radar\" [attr.d]=\"s.d\" [style.fill]=\"s.color\" [style.stroke]=\"s.color\" [class.wu-chart-dim]=\"dim(s.series)\"></path>\n }\n }\n\n @for (l of m.lines; track l.key) {\n @if (l.area) {\n <path\n class=\"wu-chart-area\"\n [class.wu-chart-area-fade]=\"l.gradient\"\n [attr.d]=\"l.area\"\n [style.fill]=\"l.gradient ? 'url(#' + id + '-' + l.key + ')' : l.color\"\n [class.wu-chart-dim]=\"dim(l.series)\"\n ></path>\n }\n }\n @for (b of m.bars; track b.key) {\n <path\n class=\"wu-chart-bar\"\n [attr.d]=\"b.d\"\n [style.fill]=\"b.color\"\n [attr.data-series]=\"b.series\"\n [attr.data-index]=\"b.index\"\n [class.wu-chart-dim]=\"dim(b.series) || (hovered() !== null && hovered() !== b.index)\"\n ></path>\n }\n @for (c of m.cells; track c.key) {\n @if (c.d) {\n <path\n class=\"wu-chart-cell\"\n [attr.d]=\"c.d\"\n [style.fill]=\"c.color\"\n [style.fill-opacity]=\"c.opacity\"\n [attr.data-series]=\"c.series\"\n [attr.data-index]=\"c.index\"\n [class.wu-chart-cell-active]=\"hovered() === c.index && hoveredSeries() === c.series\"\n ></path>\n } @else {\n <rect\n class=\"wu-chart-cell\"\n rx=\"4\"\n [attr.x]=\"c.x\"\n [attr.y]=\"c.y\"\n [attr.width]=\"c.w\"\n [attr.height]=\"c.h\"\n [style.fill]=\"c.color\"\n [style.fill-opacity]=\"c.opacity\"\n [attr.data-series]=\"c.series\"\n [attr.data-index]=\"c.index\"\n [class.wu-chart-cell-active]=\"hovered() === c.index && hoveredSeries() === c.series\"\n [class.wu-chart-dim]=\"!colorRanges()?.length && dim(c.series)\"\n ></rect>\n }\n }\n @for (s of m.shapes; track s.key) {\n @switch (s.kind) {\n @case ('rect') {\n <rect\n [attr.class]=\"shapeClass(s, m.dimOthers)\"\n [attr.x]=\"s.x\"\n [attr.y]=\"s.y\"\n [attr.width]=\"s.w\"\n [attr.height]=\"s.h\"\n [attr.rx]=\"s.rx ?? null\"\n [style.fill]=\"s.fade ? 'url(#' + id + '-' + s.key + ')' : s.fill ?? null\"\n [style.fill-opacity]=\"s.opacity ?? null\"\n [style.stroke]=\"s.stroke ?? null\"\n [style.stroke-width]=\"s.strokeWidth ?? null\"\n [style.animation-delay.ms]=\"s.delay ?? null\"\n ></rect>\n }\n @case ('circle') {\n <circle\n [attr.class]=\"shapeClass(s, m.dimOthers)\"\n [attr.cx]=\"s.x\"\n [attr.cy]=\"s.y\"\n [attr.r]=\"s.r\"\n [style.fill]=\"s.fill ?? null\"\n [style.fill-opacity]=\"s.opacity ?? null\"\n [style.stroke]=\"s.stroke ?? null\"\n [style.stroke-width]=\"s.strokeWidth ?? null\"\n [style.animation-delay.ms]=\"s.delay ?? null\"\n ></circle>\n }\n @case ('line') {\n <line\n [attr.class]=\"shapeClass(s, m.dimOthers)\"\n [attr.x1]=\"s.x\"\n [attr.y1]=\"s.y\"\n [attr.x2]=\"s.x2\"\n [attr.y2]=\"s.y2\"\n [style.stroke]=\"s.gradient ? 'url(#' + id + '-' + s.key + ')' : s.stroke ?? null\"\n [style.stroke-width]=\"s.strokeWidth ?? null\"\n [style.animation-delay.ms]=\"s.delay ?? null\"\n ></line>\n }\n @default {\n <path\n [attr.class]=\"shapeClass(s, m.dimOthers)\"\n [attr.d]=\"s.d\"\n [attr.pathLength]=\"s.enter === 'draw' ? 1 : null\"\n [style.fill]=\"s.fade ? 'url(#' + id + '-' + s.key + ')' : s.fill ?? 'none'\"\n [style.fill-opacity]=\"s.opacity ?? null\"\n [style.stroke]=\"s.stroke ?? null\"\n [style.stroke-width]=\"s.strokeWidth ?? null\"\n [style.animation-delay.ms]=\"s.delay ?? null\"\n ></path>\n }\n }\n }\n @for (c of m.cells; track c.key) {\n @for (t of c.texts; track $index) {\n <text\n class=\"wu-chart-cell-text\"\n [class.wu-chart-cell-text-inside]=\"t.tone === 'inside'\"\n [class.wu-chart-cell-name]=\"t.strong\"\n [attr.x]=\"t.x\"\n [attr.y]=\"t.y\"\n [attr.dy]=\"dy(t)\"\n [attr.text-anchor]=\"t.anchor\"\n >{{ t.text }}</text>\n }\n }\n @for (g of m.rings; track g.key) {\n <path class=\"wu-chart-track\" [class.wu-chart-round]=\"g.round\" [attr.d]=\"g.track\" [style.stroke-width]=\"g.width\" (pointerenter)=\"hoverSlice(g.index)\"></path>\n @if (g.d) {\n <path\n class=\"wu-chart-ring\"\n [class.wu-chart-round]=\"g.round\"\n [attr.d]=\"g.d\"\n [style.stroke]=\"g.color\"\n [style.stroke-width]=\"g.width\"\n [attr.data-series]=\"0\"\n [attr.data-index]=\"g.index\"\n [class.wu-chart-dim]=\"dimSlice(g.index)\"\n (pointerenter)=\"hoverSlice(g.index)\"\n ></path>\n }\n }\n @if (crosshair(); as c) {\n <line class=\"wu-chart-crosshair\" [attr.x1]=\"c.x1\" [attr.y1]=\"c.y1\" [attr.x2]=\"c.x2\" [attr.y2]=\"c.y2\"></line>\n }\n @for (l of m.lines; track l.key) {\n <path class=\"wu-chart-line\" [attr.d]=\"l.d\" [style.stroke]=\"l.color\" [class.wu-chart-dashed]=\"l.dashed\" [class.wu-chart-dim]=\"dim(l.series)\"></path>\n }\n @for (s of m.slices; track s.key) {\n <path\n class=\"wu-chart-slice\"\n [attr.d]=\"s.d\"\n [style.fill]=\"s.color\"\n [style.transform]=\"sliceShift(s)\"\n [attr.data-series]=\"0\"\n [attr.data-index]=\"s.index\"\n [class.wu-chart-dim]=\"dimSlice(s.index)\"\n (pointerenter)=\"hoverSlice(s.index)\"\n ></path>\n }\n @for (d of m.dots; track d.key) {\n @if (d.r > 0 || hovered() === d.index) {\n <circle\n class=\"wu-chart-dot\"\n [class.wu-chart-bubble]=\"kind() === 'scatter'\"\n [attr.cx]=\"d.cx\"\n [attr.cy]=\"d.cy\"\n [attr.r]=\"dotR(d)\"\n [style.stroke]=\"d.color\"\n [style.fill]=\"kind() === 'scatter' ? d.color : null\"\n [attr.data-series]=\"d.series\"\n [attr.data-index]=\"d.index\"\n [class.wu-chart-dim]=\"dim(d.series)\"\n ></circle>\n }\n }\n\n @if (m.radar; as r) {\n @for (t of r.ringLabels; track $index) {\n <text class=\"wu-chart-tick wu-chart-ring-label\" [attr.x]=\"t.x\" [attr.y]=\"t.y\" [attr.dy]=\"dy(t)\" [attr.text-anchor]=\"t.anchor\">{{ t.text }}</text>\n }\n }\n @for (k of m.marks; track $index) {\n <circle class=\"wu-chart-mark\" [attr.cx]=\"k.x\" [attr.cy]=\"k.y\" r=\"5\" [style.stroke]=\"k.color\"></circle>\n @if (k.box; as b) {\n <rect class=\"wu-chart-mark-box\" rx=\"6\" [attr.x]=\"b.x\" [attr.y]=\"b.y\" [attr.width]=\"b.w\" [attr.height]=\"b.h\" [style.fill]=\"k.color\"></rect>\n }\n @if (k.label; as t) {\n <text class=\"wu-chart-mark-label\" [attr.x]=\"t.x\" [attr.y]=\"t.y\" [attr.dy]=\"dy(t)\" [attr.text-anchor]=\"t.anchor\">{{ t.text }}</text>\n }\n }\n @for (b of m.bands; track $index) {\n @if (b.label; as t) {\n <text class=\"wu-chart-reference-label\" [attr.x]=\"t.x\" [attr.y]=\"t.y\" [attr.dy]=\"dy(t)\" [attr.text-anchor]=\"t.anchor\" [style.fill]=\"b.color\">{{ t.text }}</text>\n }\n }\n @for (r of m.references; track $index) {\n <line class=\"wu-chart-reference\" [class.wu-chart-dashed]=\"r.dashed\" [attr.x1]=\"r.x1\" [attr.y1]=\"r.y1\" [attr.x2]=\"r.x2\" [attr.y2]=\"r.y2\" [style.stroke]=\"r.color\"></line>\n @if (r.label; as t) {\n <text class=\"wu-chart-reference-label\" [attr.x]=\"t.x\" [attr.y]=\"t.y\" [attr.dy]=\"dy(t)\" [attr.text-anchor]=\"t.anchor\" [style.fill]=\"r.color\">{{ t.text }}</text>\n }\n }\n\n @for (t of m.texts; track $index) {\n <text\n class=\"wu-chart-text\"\n [class.wu-chart-text-inside]=\"t.tone === 'inside'\"\n [class.wu-chart-text-muted]=\"t.tone === 'muted'\"\n [class.wu-chart-text-strong]=\"t.strong\"\n [class.wu-chart-dim]=\"m.dimOthers && hoverKey() && t.hover && hoverKey() !== t.hover && !hoverKey()!.startsWith(t.hover + '/')\"\n [attr.x]=\"t.x\"\n [attr.y]=\"t.y\"\n [attr.dy]=\"dy(t)\"\n [attr.text-anchor]=\"t.anchor\"\n [attr.transform]=\"rotate(t)\"\n [style.fill]=\"t.color ?? null\"\n >{{ t.text }}</text>\n }\n @for (t of m.valueLabels; track $index) {\n <text class=\"wu-chart-value\" [class.wu-chart-value-inside]=\"t.tone === 'inside'\" [attr.x]=\"t.x\" [attr.y]=\"t.y\" [attr.dy]=\"dy(t)\" [attr.text-anchor]=\"t.anchor\">{{ t.text }}</text>\n }\n @for (t of m.xTicks; track $index) {\n <text class=\"wu-chart-tick\" [class.wu-chart-tick-active]=\"kind() === 'radar' && hovered() === $index\" [attr.x]=\"t.x\" [attr.y]=\"t.y\" [attr.dy]=\"dy(t)\" [attr.text-anchor]=\"t.anchor\">{{ t.text }}</text>\n }\n @for (t of m.yTicks; track $index) {\n <text class=\"wu-chart-tick\" [attr.x]=\"t.x\" [attr.y]=\"t.y\" [attr.dy]=\"dy(t)\" [attr.text-anchor]=\"t.anchor\">{{ t.text }}</text>\n }\n @for (t of m.y2Ticks; track $index) {\n <text class=\"wu-chart-tick\" [attr.x]=\"t.x\" [attr.y]=\"t.y\" [attr.dy]=\"dy(t)\" [attr.text-anchor]=\"t.anchor\">{{ t.text }}</text>\n }\n @for (t of m.titles; track $index) {\n <text class=\"wu-chart-axis-title\" [attr.x]=\"t.x\" [attr.y]=\"t.y\" [attr.dy]=\"dy(t)\" [attr.text-anchor]=\"t.anchor\" [attr.transform]=\"rotate(t)\">{{ t.text }}</text>\n }\n @if (selection(); as s) {\n <rect class=\"wu-chart-selection\" [attr.x]=\"s.x\" [attr.y]=\"s.y\" [attr.width]=\"s.w\" [attr.height]=\"s.h\"></rect>\n }\n </svg>\n\n @if (center(); as c) {\n <div class=\"wu-chart-center\" [class.wu-chart-center-lift]=\"c.lift\" [style.left.px]=\"c.x\" [style.top.px]=\"c.y\" [style.width.px]=\"c.r * 1.5\" aria-hidden=\"true\">\n <span class=\"wu-chart-center-value\">{{ c.value }}</span>\n <span class=\"wu-chart-center-label\">{{ c.label }}</span>\n @if ($any(c).back) {\n <span class=\"wu-chart-center-back\">\u2190 {{ words().back }}</span>\n }\n </div>\n }\n @if (tip(); as t) {\n <div class=\"wu-chart-tooltip\" [class.wu-chart-tooltip-flip]=\"t.flip\" [style.left.px]=\"t.x\" [style.top.px]=\"t.y\" aria-hidden=\"true\">\n @if (t.title) {\n <div class=\"wu-chart-tooltip-title\">{{ t.title }}</div>\n }\n @for (row of t.rows; track $index) {\n <div class=\"wu-chart-tooltip-row\">\n <span class=\"wu-chart-swatch\" [style.background]=\"row.color\"></span>\n <span class=\"wu-chart-tooltip-name\">{{ row.name }}</span>\n <span class=\"wu-chart-tooltip-value\">{{ row.value }}</span>\n </div>\n }\n </div>\n }\n @if (empty()) {\n <div class=\"wu-chart-empty\">{{ emptyText() }}</div>\n }\n }\n </div>\n\n @if (legendPos() !== 'none' && legendItems().length) {\n <ul class=\"wu-chart-legend\">\n @for (item of legendItems(); track item.index) {\n <li>\n <button\n type=\"button\"\n class=\"wu-chart-legend-item\"\n [class.wu-chart-legend-off]=\"item.hidden\"\n [attr.aria-pressed]=\"!item.hidden\"\n (click)=\"toggle(item.index)\"\n (pointerenter)=\"focusSeries.set(item.index)\"\n (pointerleave)=\"focusSeries.set(null)\"\n (focus)=\"focusSeries.set(item.index)\"\n (blur)=\"focusSeries.set(null)\"\n >\n <span class=\"wu-chart-swatch\" [class.wu-chart-swatch-line]=\"item.shape === 'line'\" [class.wu-chart-swatch-dot]=\"item.shape === 'dot'\" [style.background]=\"item.color\"></span>\n <span class=\"wu-chart-legend-name\">{{ item.name }}</span>\n </button>\n </li>\n }\n </ul>\n }\n </div>\n\n <div class=\"wu-chart-sr\">\n <table [id]=\"id + '-table'\">\n @if (heading()) {\n <caption>{{ heading() }}</caption>\n }\n <thead>\n <tr>\n <th></th>\n @for (h of table().head; track $index) {\n <th scope=\"col\">{{ h }}</th>\n }\n </tr>\n </thead>\n <tbody>\n @for (row of table().rows; track $index) {\n <tr>\n @for (cell of row; track $index; let first = $first) {\n @if (first) {\n <th scope=\"row\">{{ cell }}</th>\n } @else {\n <td>{{ cell }}</td>\n }\n }\n </tr>\n }\n </tbody>\n </table>\n </div>\n <div class=\"wu-chart-sr\" aria-live=\"polite\">{{ liveText() }}</div>\n</div>\n", styles: ["@layer wiraui.components{wu-chart{display:block;min-width:0}.wu-chart{position:relative;display:flex;flex-direction:column;gap:var(--wu-chart-gap);color:var(--wu-chart-text);font-family:var(--wu-chart-font-family);font-size:var(--wu-chart-font-size);line-height:var(--wu-line-height)}.wu-chart-title{color:var(--wu-chart-title-color);font-size:var(--wu-chart-title-size);font-weight:var(--wu-chart-title-weight)}.wu-chart-subtitle{color:var(--wu-chart-text)}.wu-chart-head{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:var(--wu-chart-gap)}.wu-chart-heading{min-width:0}.wu-chart-toolbar{display:flex;flex:none;gap:.125rem;margin-left:auto}.wu-chart-tool-wrap{position:relative;display:inline-flex}.wu-chart-tool{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;padding:0;border:0;border-radius:var(--wu-radius-sm);background:transparent;color:var(--wu-chart-toolbar-color);cursor:pointer;transition:background var(--wu-transition),color var(--wu-transition)}.wu-chart-tool svg{width:1.125rem;height:1.125rem;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.wu-chart-tool:hover:not(:disabled){background:var(--wu-hover-bg);color:var(--wu-chart-title-color)}.wu-chart-tool:disabled{opacity:.4;cursor:default}.wu-chart-tool:focus-visible,.wu-chart-menu button:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:0;box-shadow:var(--wu-control-focus-shadow)}.wu-chart-menu{position:absolute;top:calc(100% + .25rem);right:0;z-index:2;display:flex;flex-direction:column;min-width:6rem;padding:.25rem;border:1px solid var(--wu-chart-tooltip-border);border-radius:var(--wu-chart-tooltip-radius);background:var(--wu-chart-tooltip-bg);box-shadow:var(--wu-chart-tooltip-shadow)}.wu-chart-menu button{padding:.375rem .625rem;border:0;border-radius:var(--wu-radius-sm);background:transparent;color:var(--wu-chart-tooltip-color);font:inherit;text-align:left;cursor:pointer}.wu-chart-menu button:hover{background:var(--wu-hover-bg)}.wu-chart-main{display:flex;flex-direction:column;gap:var(--wu-chart-gap);min-width:0}.wu-chart-legend-top .wu-chart-legend{order:-1}.wu-chart-legend-right .wu-chart-main{flex-direction:row;flex-wrap:wrap;align-items:center}.wu-chart-legend-right .wu-chart-body{flex:1 1 16rem}.wu-chart-legend-right .wu-chart-legend{flex:0 1 auto;flex-direction:column;align-items:flex-start}.wu-chart-body{position:relative;min-width:0;width:100%}.wu-chart-svg{display:block;max-width:100%;overflow:visible;font-family:inherit;border-radius:var(--wu-radius-sm);outline-color:transparent;-webkit-user-select:none;user-select:none}.wu-chart-zoomable{cursor:crosshair;touch-action:pan-y}.wu-chart-selection{fill:var(--wu-chart-selection);stroke:var(--wu-chart-mark-color);stroke-width:1;stroke-dasharray:4 3;pointer-events:none}.wu-chart-svg:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:var(--wu-control-focus-offset);box-shadow:var(--wu-control-focus-shadow)}.wu-chart-grid line,.wu-chart-web path,.wu-chart-web line{fill:none;stroke:var(--wu-chart-grid);stroke-width:1;shape-rendering:crispEdges}.wu-chart-web path,.wu-chart-web line{shape-rendering:auto}.wu-chart-zero{stroke:var(--wu-chart-axis);stroke-width:1;shape-rendering:crispEdges}.wu-chart-tick,.wu-chart-axis-title,.wu-chart-value,.wu-chart-reference-label{fill:var(--wu-chart-text);font-size:var(--wu-chart-font-size)}.wu-chart-axis-title{font-weight:600}.wu-chart-ring-label{paint-order:stroke;stroke:var(--wu-chart-dot-fill);stroke-width:3px;stroke-linejoin:round;pointer-events:none}.wu-chart-tick-active{fill:var(--wu-chart-title-color);font-weight:600}.wu-chart-value{fill:var(--wu-chart-value-color);font-weight:600;pointer-events:none;transition:opacity var(--wu-transition)}.wu-chart-entering .wu-chart-value{opacity:0}.wu-chart-value-inside{fill:var(--wu-chart-value-inside-color);paint-order:stroke;stroke:#00000040;stroke-width:2px}.wu-chart-bar,.wu-chart-slice,.wu-chart-area,.wu-chart-line,.wu-chart-radar,.wu-chart-dot{transition:opacity var(--wu-transition),transform var(--wu-transition)}.wu-chart-bar{cursor:pointer}.wu-chart-slice{cursor:pointer;stroke:var(--wu-chart-slice-border);stroke-width:1.5}.wu-chart-area{opacity:var(--wu-chart-area-opacity)}.wu-chart-area-fade{opacity:1}.wu-chart-fade-from{stop-opacity:var(--wu-chart-gradient-from)}.wu-chart-fade-to{stop-opacity:var(--wu-chart-gradient-to)}.wu-chart-area-fade.wu-chart-dim{opacity:var(--wu-chart-dim-opacity)}.wu-chart-track,.wu-chart-ring{fill:none}.wu-chart-track{stroke:var(--wu-chart-track)}.wu-chart-ring{cursor:pointer;transition:opacity var(--wu-transition)}.wu-chart-round{stroke-linecap:round}.wu-chart-cell{cursor:pointer;transform-box:fill-box;transform-origin:center;animation:wu-chart-cell-in .45s ease-out backwards;transition:opacity var(--wu-transition),fill-opacity var(--wu-transition)}.wu-chart-cell-active{stroke:var(--wu-chart-title-color);stroke-width:2}.wu-chart-cell-text{fill:var(--wu-chart-value-color);font-size:var(--wu-chart-font-size);font-weight:600;pointer-events:none;animation:wu-chart-fade-in .45s ease-out backwards}.wu-chart-cell-text-inside{fill:var(--wu-chart-value-inside-color)}.wu-chart-cell-name{font-weight:700}@keyframes wu-chart-cell-in{0%{opacity:0;transform:scale(.85)}}@keyframes wu-chart-fade-in{0%{opacity:0}}.wu-chart-shape{transition:opacity var(--wu-transition),filter var(--wu-transition)}.wu-chart-lit{filter:brightness(1.08) saturate(1.1)}.wu-chart-stream{stroke:var(--wu-chart-slice-border);stroke-width:1}.wu-chart-sun{stroke:var(--wu-chart-slice-border);stroke-width:1;cursor:pointer}.wu-chart-line-shape{fill:none;stroke-linecap:round;stroke-linejoin:round}.wu-chart-connector,.wu-chart-whisker,.wu-chart-median{stroke-linecap:round}line.wu-chart-shape{stroke-linecap:round}.wu-chart-text{fill:var(--wu-chart-text);font-size:var(--wu-chart-font-size);pointer-events:none;transition:opacity var(--wu-transition)}.wu-chart-text-strong{fill:var(--wu-chart-title-color);font-weight:600}.wu-chart-text-inside{fill:var(--wu-chart-value-inside-color)}.wu-chart-text-muted{fill:var(--wu-chart-muted);font-weight:600}.wu-chart-in-grow,.wu-chart-in-grow-x,.wu-chart-in-pop{transform-box:fill-box}.wu-chart-in-grow{transform-origin:center bottom;animation:wu-chart-grow .6s cubic-bezier(.2,.8,.2,1) backwards}.wu-chart-in-grow-x{transform-origin:left center;animation:wu-chart-grow-x .6s cubic-bezier(.2,.8,.2,1) backwards}.wu-chart-in-pop{transform-origin:center;animation:wu-chart-pop .45s cubic-bezier(.3,1.5,.6,1) backwards}.wu-chart-in-fade{animation:wu-chart-fade-in .5s ease-out backwards}.wu-chart-in-draw{stroke-dasharray:1;animation:wu-chart-draw .9s ease-out backwards}@keyframes wu-chart-grow{0%{transform:scaleY(0)}}@keyframes wu-chart-grow-x{0%{transform:scaleX(0)}}@keyframes wu-chart-pop{0%{opacity:0;transform:scale(.4)}}@keyframes wu-chart-draw{0%{stroke-dashoffset:1}}.wu-chart-swap{display:inline-flex;flex:0 1 auto;flex-wrap:wrap;min-width:0;gap:.125rem;margin-left:auto;padding:.1875rem;border-radius:var(--wu-radius-md);background:var(--wu-chart-track)}.wu-chart-swap+.wu-chart-toolbar,.wu-chart-looks+.wu-chart-swap,.wu-chart-looks+.wu-chart-toolbar{margin-left:0}.wu-chart-looks{display:inline-flex;flex:0 1 auto;flex-wrap:wrap;gap:.125rem;min-width:0;margin-left:auto;padding:.1875rem;border-radius:var(--wu-radius-md);background:var(--wu-chart-track)}.wu-chart-look-item{min-height:1.75rem;padding:.125rem .625rem;border:0;border-radius:var(--wu-radius-sm);background:transparent;color:var(--wu-chart-toolbar-color);font:inherit;font-size:.8125rem;font-weight:600;cursor:pointer;transition:background var(--wu-transition),color var(--wu-transition),box-shadow var(--wu-transition)}.wu-chart-look-item:hover{color:var(--wu-chart-title-color)}.wu-chart-look-on{background:var(--wu-chart-tooltip-bg);box-shadow:var(--wu-chart-tooltip-shadow);color:var(--wu-chart-mark-color)}.wu-chart-look-item:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:0;box-shadow:var(--wu-control-focus-shadow)}.wu-chart-swap-item{display:inline-flex;align-items:center;justify-content:center;width:1.875rem;height:1.75rem;padding:0;border:0;border-radius:var(--wu-radius-sm);background:transparent;color:var(--wu-chart-toolbar-color);cursor:pointer;transition:background var(--wu-transition),color var(--wu-transition),box-shadow var(--wu-transition)}.wu-chart-swap-item svg{width:1.0625rem;height:1.0625rem;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.wu-chart-swap-item:hover{color:var(--wu-chart-title-color)}.wu-chart-swap-on{background:var(--wu-chart-tooltip-bg);box-shadow:var(--wu-chart-tooltip-shadow);color:var(--wu-chart-mark-color)}.wu-chart-swap-item:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:0;box-shadow:var(--wu-control-focus-shadow)}.wu-chart-ghost{position:absolute;top:0;left:0;pointer-events:none;animation:wu-chart-ghost-out .48s ease-in forwards}@keyframes wu-chart-ghost-out{to{opacity:0;filter:blur(2px);transform:scale(.97)}}.wu-chart-center-back{margin-top:.125rem;color:var(--wu-chart-mark-color);font-size:.75em;font-weight:600}.wu-chart-band{fill-opacity:var(--wu-chart-band-opacity);pointer-events:none}.wu-chart-mark{fill:var(--wu-chart-dot-fill);stroke-width:2.5;pointer-events:none}.wu-chart-mark-box{pointer-events:none}.wu-chart-mark-label{fill:var(--wu-chart-value-inside-color);font-size:var(--wu-chart-font-size);font-weight:600;pointer-events:none}.wu-chart-line{fill:none;stroke-width:var(--wu-chart-line-width);stroke-linecap:round;stroke-linejoin:round}.wu-chart-dashed{stroke-dasharray:6 5}.wu-chart-radar{fill-opacity:var(--wu-chart-area-opacity);stroke-width:var(--wu-chart-line-width);stroke-linejoin:round}.wu-chart-dot{fill:var(--wu-chart-dot-fill);stroke-width:2;cursor:pointer}.wu-chart-bubble{fill-opacity:.7;stroke-width:1.5}.wu-chart-dim{opacity:var(--wu-chart-dim-opacity)}.wu-chart-area.wu-chart-dim{opacity:calc(var(--wu-chart-area-opacity) * var(--wu-chart-dim-opacity))}.wu-chart-crosshair{stroke:var(--wu-chart-crosshair);stroke-width:1;stroke-dasharray:3 3;pointer-events:none}.wu-chart-reference{stroke-width:1.5}.wu-chart-reference-label{font-weight:600}.wu-chart-center{position:absolute;display:flex;flex-direction:column;align-items:center;transform:translate(-50%,-50%);text-align:center;pointer-events:none}.wu-chart-center-value{color:var(--wu-chart-title-color);font-size:var(--wu-chart-center-size);font-weight:700;line-height:1.2;overflow-wrap:anywhere}.wu-chart-center-label{color:var(--wu-chart-text)}.wu-chart-center-lift{transform:translate(-50%,calc(-100% - .25rem))}.wu-chart-sparkline{gap:0}.wu-chart-tooltip{position:absolute;z-index:1;min-width:8rem;max-width:18rem;padding:var(--wu-chart-tooltip-padding);border:1px solid var(--wu-chart-tooltip-border);border-radius:var(--wu-chart-tooltip-radius);background:var(--wu-chart-tooltip-bg);box-shadow:var(--wu-chart-tooltip-shadow);color:var(--wu-chart-tooltip-color);transform:translate(14px,-50%);pointer-events:none;white-space:nowrap}.wu-chart-tooltip-flip{transform:translate(calc(-100% - 14px),-50%)}.wu-chart-tooltip-title{margin-bottom:.25rem;font-weight:600}.wu-chart-tooltip-row{display:flex;align-items:center;gap:.5rem}.wu-chart-tooltip-name{flex:1;overflow:hidden;text-overflow:ellipsis}.wu-chart-tooltip-value{font-weight:600;font-variant-numeric:tabular-nums}.wu-chart-legend{display:flex;flex-wrap:wrap;justify-content:center;gap:.25rem .75rem;margin:0;padding:0;list-style:none}.wu-chart-legend-item{display:inline-flex;align-items:center;gap:.4rem;min-height:1.75rem;padding:.125rem .375rem;border:0;border-radius:var(--wu-radius-sm);background:transparent;color:var(--wu-chart-legend-color);font:inherit;cursor:pointer;transition:opacity var(--wu-transition),background var(--wu-transition)}.wu-chart-legend-item:hover{background:var(--wu-hover-bg)}.wu-chart-legend-item:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:0;box-shadow:var(--wu-control-focus-shadow)}.wu-chart-legend-off{opacity:.45}.wu-chart-legend-off .wu-chart-legend-name{text-decoration:line-through}.wu-chart-swatch{flex:none;width:.75rem;height:.75rem;border-radius:3px}.wu-chart-swatch-line{height:3px;border-radius:2px}.wu-chart-swatch-dot{border-radius:50%}.wu-chart-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:var(--wu-chart-text)}.wu-chart-sr{position:absolute!important;top:0;left:0;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}@media(prefers-reduced-motion:reduce){.wu-chart-bar,.wu-chart-slice,.wu-chart-area,.wu-chart-line,.wu-chart-radar,.wu-chart-dot,.wu-chart-ring,.wu-chart-legend-item{transition:none}.wu-chart-cell,.wu-chart-cell-text,.wu-chart-shape,.wu-chart-ghost{animation:none}}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
26
1199
  }
27
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: WuChart, decorators: [{
1200
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: WuChart, decorators: [{
28
1201
  type: Component,
29
- args: [{ selector: 'wu-chart', standalone: true, exportAs: 'wuChart', imports: [NgClass, NgStyle], template: `
30
- <div class="wu-chartjs p-chart" [ngClass]="styleClass || ''" [ngStyle]="style || null" [style.width]="fixedWidth" [style.height]="fixedHeight">
31
- <canvas
32
- #canvas
33
- role="img"
34
- [attr.aria-label]="ariaLabel || null"
35
- [attr.aria-labelledby]="ariaLabelledBy || null"
36
- [attr.width]="fixedWidth"
37
- [attr.height]="fixedHeight"
38
- (click)="onCanvasClick($event)"
39
- ></canvas>
40
- </div>
41
- `, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, styles: ["@layer wiraui.components{:is(wu-chartjs,wu-chartJs,wu-chart){display:block}.wu-chartjs{position:relative;max-width:100%}.wu-chartjs>canvas{max-width:100%}}\n"] }]
42
- }] });
1202
+ args: [{ selector: 'wu-chart', standalone: true, exportAs: 'wuChart', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'wu-chart-host', '[attr.title]': 'null' }, template: "<div [class]=\"classes()\" [style]=\"rootStyle()\" [style.font-family]=\"font() || null\" [style.--wu-chart-font-size]=\"fontSize() + 'px'\">\n @if (heading() || subtitle() || toolbar() || swapKinds().length || lookList().length) {\n <div class=\"wu-chart-head\">\n <div class=\"wu-chart-heading\">\n @if (heading()) {\n <div class=\"wu-chart-title\" [id]=\"id + '-title'\">{{ heading() }}</div>\n }\n @if (subtitle()) {\n <div class=\"wu-chart-subtitle\">{{ subtitle() }}</div>\n }\n </div>\n @if (lookList().length) {\n <div class=\"wu-chart-looks\" role=\"radiogroup\" [attr.aria-label]=\"words().looks\">\n @for (l of lookList(); track l) {\n <button\n type=\"button\"\n role=\"radio\"\n class=\"wu-chart-look-item\"\n [class.wu-chart-look-on]=\"activeLook() === l\"\n [attr.aria-checked]=\"activeLook() === l\"\n [attr.data-look]=\"l\"\n (click)=\"setLook(l)\"\n >{{ lookName(l) }}</button>\n }\n </div>\n }\n @if (swapKinds().length) {\n <div class=\"wu-chart-swap\" role=\"radiogroup\" [attr.aria-label]=\"words().kinds\">\n @for (t of swapKinds(); track t) {\n <button\n type=\"button\"\n role=\"radio\"\n class=\"wu-chart-swap-item\"\n [class.wu-chart-swap-on]=\"kind() === t\"\n [attr.aria-checked]=\"kind() === t\"\n [attr.aria-label]=\"language().startsWith('th') ? kindsInfo[t].th : kindsInfo[t].en\"\n [attr.title]=\"language().startsWith('th') ? kindsInfo[t].th : kindsInfo[t].en\"\n [attr.data-kind]=\"t\"\n (click)=\"setKind(t)\"\n >\n <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path [attr.d]=\"kindsInfo[t].icon\"></path></svg>\n </button>\n }\n </div>\n }\n @if (toolbar()) {\n <div class=\"wu-chart-toolbar\" role=\"toolbar\" [attr.aria-label]=\"words().toolbar\" (focusout)=\"toolbarOut($event)\" (keydown.escape)=\"menu.set(false)\">\n @if (zoomable()) {\n <button type=\"button\" class=\"wu-chart-tool\" [attr.aria-label]=\"words().zoomIn\" [attr.title]=\"words().zoomIn\" (click)=\"zoomIn()\">\n <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M11 4a7 7 0 1 0 0 14 7 7 0 1 0 0-14ZM20 20l-4.2-4.2M11 8v6M8 11h6\"></path></svg>\n </button>\n <button type=\"button\" class=\"wu-chart-tool\" [attr.aria-label]=\"words().zoomOut\" [attr.title]=\"words().zoomOut\" [disabled]=\"!zoomed()\" (click)=\"zoomOut()\">\n <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M11 4a7 7 0 1 0 0 14 7 7 0 1 0 0-14ZM20 20l-4.2-4.2M8 11h6\"></path></svg>\n </button>\n <button type=\"button\" class=\"wu-chart-tool\" [attr.aria-label]=\"words().reset\" [attr.title]=\"words().reset\" [disabled]=\"!zoomed()\" (click)=\"resetZoom()\">\n <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M4.5 12a7.5 7.5 0 1 0 2.2-5.3M4.5 4.5v4h4\"></path></svg>\n </button>\n }\n <span class=\"wu-chart-tool-wrap\">\n <button\n type=\"button\"\n class=\"wu-chart-tool\"\n [attr.aria-label]=\"words().download\"\n [attr.title]=\"words().download\"\n aria-haspopup=\"menu\"\n [attr.aria-expanded]=\"menu()\"\n (click)=\"menu.set(!menu())\"\n >\n <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M12 4v11M7 10l5 5 5-5M5 19.5h14\"></path></svg>\n </button>\n @if (menu()) {\n <span class=\"wu-chart-menu\" role=\"menu\">\n <button type=\"button\" role=\"menuitem\" (click)=\"save('png')\">PNG</button>\n <button type=\"button\" role=\"menuitem\" (click)=\"save('svg')\">SVG</button>\n <button type=\"button\" role=\"menuitem\" (click)=\"save('csv')\">CSV</button>\n </span>\n }\n </span>\n </div>\n }\n </div>\n }\n\n <div class=\"wu-chart-main\">\n <div #body class=\"wu-chart-body\" [style.height]=\"heightCss()\">\n @if (model(); as m) {\n <svg\n #svg\n class=\"wu-chart-svg\"\n [attr.width]=\"m.width\"\n [attr.height]=\"m.height\"\n [attr.viewBox]=\"'0 0 ' + m.width + ' ' + m.height\"\n role=\"img\"\n tabindex=\"0\"\n [class.wu-chart-zoomable]=\"zoomable()\"\n [attr.aria-label]=\"summary() || null\"\n [attr.aria-labelledby]=\"!ariaLabel() && heading() ? id + '-title' : null\"\n (pointermove)=\"move($event)\"\n (pointerdown)=\"down($event)\"\n (pointerup)=\"up()\"\n (pointercancel)=\"up()\"\n (pointerleave)=\"leave()\"\n (click)=\"click($event)\"\n (keydown)=\"key($event)\"\n (blur)=\"leave()\"\n >\n <defs>\n @for (s of m.shapes; track s.key) {\n @if (s.gradient; as g) {\n <linearGradient [attr.id]=\"id + '-' + s.key\" gradientUnits=\"userSpaceOnUse\" [attr.x1]=\"g.x1\" [attr.y1]=\"g.y1\" [attr.x2]=\"g.x2\" [attr.y2]=\"g.y2\">\n <stop offset=\"0\" [style.stop-color]=\"g.from\"></stop>\n <stop offset=\"1\" [style.stop-color]=\"g.to\"></stop>\n </linearGradient>\n } @else if (s.fade) {\n <linearGradient [attr.id]=\"id + '-' + s.key\" x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\">\n <stop offset=\"0\" class=\"wu-chart-fade-from\" [style.stop-color]=\"s.fill\"></stop>\n <stop offset=\"1\" class=\"wu-chart-fade-to\" [style.stop-color]=\"s.fill\"></stop>\n </linearGradient>\n }\n }\n @for (l of m.lines; track l.key) {\n @if (l.gradient) {\n <linearGradient [attr.id]=\"id + '-' + l.key\" x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\">\n <stop offset=\"0\" class=\"wu-chart-fade-from\" [style.stop-color]=\"l.color\"></stop>\n <stop offset=\"1\" class=\"wu-chart-fade-to\" [style.stop-color]=\"l.color\"></stop>\n </linearGradient>\n }\n }\n </defs>\n @for (b of m.bands; track $index) {\n <rect class=\"wu-chart-band\" [attr.x]=\"b.x\" [attr.y]=\"b.y\" [attr.width]=\"b.w\" [attr.height]=\"b.h\" [style.fill]=\"b.color\"></rect>\n }\n <g class=\"wu-chart-grid\">\n @for (g of m.grid; track $index) {\n <line [attr.x1]=\"g.x1\" [attr.y1]=\"g.y1\" [attr.x2]=\"g.x2\" [attr.y2]=\"g.y2\"></line>\n }\n </g>\n @if (m.zero; as z) {\n <line class=\"wu-chart-zero\" [attr.x1]=\"z.x1\" [attr.y1]=\"z.y1\" [attr.x2]=\"z.x2\" [attr.y2]=\"z.y2\"></line>\n }\n\n @if (m.radar; as r) {\n <g class=\"wu-chart-web\">\n @for (d of r.rings; track $index) {\n <path [attr.d]=\"d\"></path>\n }\n @for (s of r.spokes; track $index) {\n <line [attr.x1]=\"s.x1\" [attr.y1]=\"s.y1\" [attr.x2]=\"s.x2\" [attr.y2]=\"s.y2\"></line>\n }\n </g>\n @for (s of r.shapes; track s.key) {\n <path class=\"wu-chart-radar\" [attr.d]=\"s.d\" [style.fill]=\"s.color\" [style.stroke]=\"s.color\" [class.wu-chart-dim]=\"dim(s.series)\"></path>\n }\n }\n\n @for (l of m.lines; track l.key) {\n @if (l.area) {\n <path\n class=\"wu-chart-area\"\n [class.wu-chart-area-fade]=\"l.gradient\"\n [attr.d]=\"l.area\"\n [style.fill]=\"l.gradient ? 'url(#' + id + '-' + l.key + ')' : l.color\"\n [class.wu-chart-dim]=\"dim(l.series)\"\n ></path>\n }\n }\n @for (b of m.bars; track b.key) {\n <path\n class=\"wu-chart-bar\"\n [attr.d]=\"b.d\"\n [style.fill]=\"b.color\"\n [attr.data-series]=\"b.series\"\n [attr.data-index]=\"b.index\"\n [class.wu-chart-dim]=\"dim(b.series) || (hovered() !== null && hovered() !== b.index)\"\n ></path>\n }\n @for (c of m.cells; track c.key) {\n @if (c.d) {\n <path\n class=\"wu-chart-cell\"\n [attr.d]=\"c.d\"\n [style.fill]=\"c.color\"\n [style.fill-opacity]=\"c.opacity\"\n [attr.data-series]=\"c.series\"\n [attr.data-index]=\"c.index\"\n [class.wu-chart-cell-active]=\"hovered() === c.index && hoveredSeries() === c.series\"\n ></path>\n } @else {\n <rect\n class=\"wu-chart-cell\"\n rx=\"4\"\n [attr.x]=\"c.x\"\n [attr.y]=\"c.y\"\n [attr.width]=\"c.w\"\n [attr.height]=\"c.h\"\n [style.fill]=\"c.color\"\n [style.fill-opacity]=\"c.opacity\"\n [attr.data-series]=\"c.series\"\n [attr.data-index]=\"c.index\"\n [class.wu-chart-cell-active]=\"hovered() === c.index && hoveredSeries() === c.series\"\n [class.wu-chart-dim]=\"!colorRanges()?.length && dim(c.series)\"\n ></rect>\n }\n }\n @for (s of m.shapes; track s.key) {\n @switch (s.kind) {\n @case ('rect') {\n <rect\n [attr.class]=\"shapeClass(s, m.dimOthers)\"\n [attr.x]=\"s.x\"\n [attr.y]=\"s.y\"\n [attr.width]=\"s.w\"\n [attr.height]=\"s.h\"\n [attr.rx]=\"s.rx ?? null\"\n [style.fill]=\"s.fade ? 'url(#' + id + '-' + s.key + ')' : s.fill ?? null\"\n [style.fill-opacity]=\"s.opacity ?? null\"\n [style.stroke]=\"s.stroke ?? null\"\n [style.stroke-width]=\"s.strokeWidth ?? null\"\n [style.animation-delay.ms]=\"s.delay ?? null\"\n ></rect>\n }\n @case ('circle') {\n <circle\n [attr.class]=\"shapeClass(s, m.dimOthers)\"\n [attr.cx]=\"s.x\"\n [attr.cy]=\"s.y\"\n [attr.r]=\"s.r\"\n [style.fill]=\"s.fill ?? null\"\n [style.fill-opacity]=\"s.opacity ?? null\"\n [style.stroke]=\"s.stroke ?? null\"\n [style.stroke-width]=\"s.strokeWidth ?? null\"\n [style.animation-delay.ms]=\"s.delay ?? null\"\n ></circle>\n }\n @case ('line') {\n <line\n [attr.class]=\"shapeClass(s, m.dimOthers)\"\n [attr.x1]=\"s.x\"\n [attr.y1]=\"s.y\"\n [attr.x2]=\"s.x2\"\n [attr.y2]=\"s.y2\"\n [style.stroke]=\"s.gradient ? 'url(#' + id + '-' + s.key + ')' : s.stroke ?? null\"\n [style.stroke-width]=\"s.strokeWidth ?? null\"\n [style.animation-delay.ms]=\"s.delay ?? null\"\n ></line>\n }\n @default {\n <path\n [attr.class]=\"shapeClass(s, m.dimOthers)\"\n [attr.d]=\"s.d\"\n [attr.pathLength]=\"s.enter === 'draw' ? 1 : null\"\n [style.fill]=\"s.fade ? 'url(#' + id + '-' + s.key + ')' : s.fill ?? 'none'\"\n [style.fill-opacity]=\"s.opacity ?? null\"\n [style.stroke]=\"s.stroke ?? null\"\n [style.stroke-width]=\"s.strokeWidth ?? null\"\n [style.animation-delay.ms]=\"s.delay ?? null\"\n ></path>\n }\n }\n }\n @for (c of m.cells; track c.key) {\n @for (t of c.texts; track $index) {\n <text\n class=\"wu-chart-cell-text\"\n [class.wu-chart-cell-text-inside]=\"t.tone === 'inside'\"\n [class.wu-chart-cell-name]=\"t.strong\"\n [attr.x]=\"t.x\"\n [attr.y]=\"t.y\"\n [attr.dy]=\"dy(t)\"\n [attr.text-anchor]=\"t.anchor\"\n >{{ t.text }}</text>\n }\n }\n @for (g of m.rings; track g.key) {\n <path class=\"wu-chart-track\" [class.wu-chart-round]=\"g.round\" [attr.d]=\"g.track\" [style.stroke-width]=\"g.width\" (pointerenter)=\"hoverSlice(g.index)\"></path>\n @if (g.d) {\n <path\n class=\"wu-chart-ring\"\n [class.wu-chart-round]=\"g.round\"\n [attr.d]=\"g.d\"\n [style.stroke]=\"g.color\"\n [style.stroke-width]=\"g.width\"\n [attr.data-series]=\"0\"\n [attr.data-index]=\"g.index\"\n [class.wu-chart-dim]=\"dimSlice(g.index)\"\n (pointerenter)=\"hoverSlice(g.index)\"\n ></path>\n }\n }\n @if (crosshair(); as c) {\n <line class=\"wu-chart-crosshair\" [attr.x1]=\"c.x1\" [attr.y1]=\"c.y1\" [attr.x2]=\"c.x2\" [attr.y2]=\"c.y2\"></line>\n }\n @for (l of m.lines; track l.key) {\n <path class=\"wu-chart-line\" [attr.d]=\"l.d\" [style.stroke]=\"l.color\" [class.wu-chart-dashed]=\"l.dashed\" [class.wu-chart-dim]=\"dim(l.series)\"></path>\n }\n @for (s of m.slices; track s.key) {\n <path\n class=\"wu-chart-slice\"\n [attr.d]=\"s.d\"\n [style.fill]=\"s.color\"\n [style.transform]=\"sliceShift(s)\"\n [attr.data-series]=\"0\"\n [attr.data-index]=\"s.index\"\n [class.wu-chart-dim]=\"dimSlice(s.index)\"\n (pointerenter)=\"hoverSlice(s.index)\"\n ></path>\n }\n @for (d of m.dots; track d.key) {\n @if (d.r > 0 || hovered() === d.index) {\n <circle\n class=\"wu-chart-dot\"\n [class.wu-chart-bubble]=\"kind() === 'scatter'\"\n [attr.cx]=\"d.cx\"\n [attr.cy]=\"d.cy\"\n [attr.r]=\"dotR(d)\"\n [style.stroke]=\"d.color\"\n [style.fill]=\"kind() === 'scatter' ? d.color : null\"\n [attr.data-series]=\"d.series\"\n [attr.data-index]=\"d.index\"\n [class.wu-chart-dim]=\"dim(d.series)\"\n ></circle>\n }\n }\n\n @if (m.radar; as r) {\n @for (t of r.ringLabels; track $index) {\n <text class=\"wu-chart-tick wu-chart-ring-label\" [attr.x]=\"t.x\" [attr.y]=\"t.y\" [attr.dy]=\"dy(t)\" [attr.text-anchor]=\"t.anchor\">{{ t.text }}</text>\n }\n }\n @for (k of m.marks; track $index) {\n <circle class=\"wu-chart-mark\" [attr.cx]=\"k.x\" [attr.cy]=\"k.y\" r=\"5\" [style.stroke]=\"k.color\"></circle>\n @if (k.box; as b) {\n <rect class=\"wu-chart-mark-box\" rx=\"6\" [attr.x]=\"b.x\" [attr.y]=\"b.y\" [attr.width]=\"b.w\" [attr.height]=\"b.h\" [style.fill]=\"k.color\"></rect>\n }\n @if (k.label; as t) {\n <text class=\"wu-chart-mark-label\" [attr.x]=\"t.x\" [attr.y]=\"t.y\" [attr.dy]=\"dy(t)\" [attr.text-anchor]=\"t.anchor\">{{ t.text }}</text>\n }\n }\n @for (b of m.bands; track $index) {\n @if (b.label; as t) {\n <text class=\"wu-chart-reference-label\" [attr.x]=\"t.x\" [attr.y]=\"t.y\" [attr.dy]=\"dy(t)\" [attr.text-anchor]=\"t.anchor\" [style.fill]=\"b.color\">{{ t.text }}</text>\n }\n }\n @for (r of m.references; track $index) {\n <line class=\"wu-chart-reference\" [class.wu-chart-dashed]=\"r.dashed\" [attr.x1]=\"r.x1\" [attr.y1]=\"r.y1\" [attr.x2]=\"r.x2\" [attr.y2]=\"r.y2\" [style.stroke]=\"r.color\"></line>\n @if (r.label; as t) {\n <text class=\"wu-chart-reference-label\" [attr.x]=\"t.x\" [attr.y]=\"t.y\" [attr.dy]=\"dy(t)\" [attr.text-anchor]=\"t.anchor\" [style.fill]=\"r.color\">{{ t.text }}</text>\n }\n }\n\n @for (t of m.texts; track $index) {\n <text\n class=\"wu-chart-text\"\n [class.wu-chart-text-inside]=\"t.tone === 'inside'\"\n [class.wu-chart-text-muted]=\"t.tone === 'muted'\"\n [class.wu-chart-text-strong]=\"t.strong\"\n [class.wu-chart-dim]=\"m.dimOthers && hoverKey() && t.hover && hoverKey() !== t.hover && !hoverKey()!.startsWith(t.hover + '/')\"\n [attr.x]=\"t.x\"\n [attr.y]=\"t.y\"\n [attr.dy]=\"dy(t)\"\n [attr.text-anchor]=\"t.anchor\"\n [attr.transform]=\"rotate(t)\"\n [style.fill]=\"t.color ?? null\"\n >{{ t.text }}</text>\n }\n @for (t of m.valueLabels; track $index) {\n <text class=\"wu-chart-value\" [class.wu-chart-value-inside]=\"t.tone === 'inside'\" [attr.x]=\"t.x\" [attr.y]=\"t.y\" [attr.dy]=\"dy(t)\" [attr.text-anchor]=\"t.anchor\">{{ t.text }}</text>\n }\n @for (t of m.xTicks; track $index) {\n <text class=\"wu-chart-tick\" [class.wu-chart-tick-active]=\"kind() === 'radar' && hovered() === $index\" [attr.x]=\"t.x\" [attr.y]=\"t.y\" [attr.dy]=\"dy(t)\" [attr.text-anchor]=\"t.anchor\">{{ t.text }}</text>\n }\n @for (t of m.yTicks; track $index) {\n <text class=\"wu-chart-tick\" [attr.x]=\"t.x\" [attr.y]=\"t.y\" [attr.dy]=\"dy(t)\" [attr.text-anchor]=\"t.anchor\">{{ t.text }}</text>\n }\n @for (t of m.y2Ticks; track $index) {\n <text class=\"wu-chart-tick\" [attr.x]=\"t.x\" [attr.y]=\"t.y\" [attr.dy]=\"dy(t)\" [attr.text-anchor]=\"t.anchor\">{{ t.text }}</text>\n }\n @for (t of m.titles; track $index) {\n <text class=\"wu-chart-axis-title\" [attr.x]=\"t.x\" [attr.y]=\"t.y\" [attr.dy]=\"dy(t)\" [attr.text-anchor]=\"t.anchor\" [attr.transform]=\"rotate(t)\">{{ t.text }}</text>\n }\n @if (selection(); as s) {\n <rect class=\"wu-chart-selection\" [attr.x]=\"s.x\" [attr.y]=\"s.y\" [attr.width]=\"s.w\" [attr.height]=\"s.h\"></rect>\n }\n </svg>\n\n @if (center(); as c) {\n <div class=\"wu-chart-center\" [class.wu-chart-center-lift]=\"c.lift\" [style.left.px]=\"c.x\" [style.top.px]=\"c.y\" [style.width.px]=\"c.r * 1.5\" aria-hidden=\"true\">\n <span class=\"wu-chart-center-value\">{{ c.value }}</span>\n <span class=\"wu-chart-center-label\">{{ c.label }}</span>\n @if ($any(c).back) {\n <span class=\"wu-chart-center-back\">\u2190 {{ words().back }}</span>\n }\n </div>\n }\n @if (tip(); as t) {\n <div class=\"wu-chart-tooltip\" [class.wu-chart-tooltip-flip]=\"t.flip\" [style.left.px]=\"t.x\" [style.top.px]=\"t.y\" aria-hidden=\"true\">\n @if (t.title) {\n <div class=\"wu-chart-tooltip-title\">{{ t.title }}</div>\n }\n @for (row of t.rows; track $index) {\n <div class=\"wu-chart-tooltip-row\">\n <span class=\"wu-chart-swatch\" [style.background]=\"row.color\"></span>\n <span class=\"wu-chart-tooltip-name\">{{ row.name }}</span>\n <span class=\"wu-chart-tooltip-value\">{{ row.value }}</span>\n </div>\n }\n </div>\n }\n @if (empty()) {\n <div class=\"wu-chart-empty\">{{ emptyText() }}</div>\n }\n }\n </div>\n\n @if (legendPos() !== 'none' && legendItems().length) {\n <ul class=\"wu-chart-legend\">\n @for (item of legendItems(); track item.index) {\n <li>\n <button\n type=\"button\"\n class=\"wu-chart-legend-item\"\n [class.wu-chart-legend-off]=\"item.hidden\"\n [attr.aria-pressed]=\"!item.hidden\"\n (click)=\"toggle(item.index)\"\n (pointerenter)=\"focusSeries.set(item.index)\"\n (pointerleave)=\"focusSeries.set(null)\"\n (focus)=\"focusSeries.set(item.index)\"\n (blur)=\"focusSeries.set(null)\"\n >\n <span class=\"wu-chart-swatch\" [class.wu-chart-swatch-line]=\"item.shape === 'line'\" [class.wu-chart-swatch-dot]=\"item.shape === 'dot'\" [style.background]=\"item.color\"></span>\n <span class=\"wu-chart-legend-name\">{{ item.name }}</span>\n </button>\n </li>\n }\n </ul>\n }\n </div>\n\n <div class=\"wu-chart-sr\">\n <table [id]=\"id + '-table'\">\n @if (heading()) {\n <caption>{{ heading() }}</caption>\n }\n <thead>\n <tr>\n <th></th>\n @for (h of table().head; track $index) {\n <th scope=\"col\">{{ h }}</th>\n }\n </tr>\n </thead>\n <tbody>\n @for (row of table().rows; track $index) {\n <tr>\n @for (cell of row; track $index; let first = $first) {\n @if (first) {\n <th scope=\"row\">{{ cell }}</th>\n } @else {\n <td>{{ cell }}</td>\n }\n }\n </tr>\n }\n </tbody>\n </table>\n </div>\n <div class=\"wu-chart-sr\" aria-live=\"polite\">{{ liveText() }}</div>\n</div>\n", styles: ["@layer wiraui.components{wu-chart{display:block;min-width:0}.wu-chart{position:relative;display:flex;flex-direction:column;gap:var(--wu-chart-gap);color:var(--wu-chart-text);font-family:var(--wu-chart-font-family);font-size:var(--wu-chart-font-size);line-height:var(--wu-line-height)}.wu-chart-title{color:var(--wu-chart-title-color);font-size:var(--wu-chart-title-size);font-weight:var(--wu-chart-title-weight)}.wu-chart-subtitle{color:var(--wu-chart-text)}.wu-chart-head{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:var(--wu-chart-gap)}.wu-chart-heading{min-width:0}.wu-chart-toolbar{display:flex;flex:none;gap:.125rem;margin-left:auto}.wu-chart-tool-wrap{position:relative;display:inline-flex}.wu-chart-tool{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;padding:0;border:0;border-radius:var(--wu-radius-sm);background:transparent;color:var(--wu-chart-toolbar-color);cursor:pointer;transition:background var(--wu-transition),color var(--wu-transition)}.wu-chart-tool svg{width:1.125rem;height:1.125rem;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.wu-chart-tool:hover:not(:disabled){background:var(--wu-hover-bg);color:var(--wu-chart-title-color)}.wu-chart-tool:disabled{opacity:.4;cursor:default}.wu-chart-tool:focus-visible,.wu-chart-menu button:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:0;box-shadow:var(--wu-control-focus-shadow)}.wu-chart-menu{position:absolute;top:calc(100% + .25rem);right:0;z-index:2;display:flex;flex-direction:column;min-width:6rem;padding:.25rem;border:1px solid var(--wu-chart-tooltip-border);border-radius:var(--wu-chart-tooltip-radius);background:var(--wu-chart-tooltip-bg);box-shadow:var(--wu-chart-tooltip-shadow)}.wu-chart-menu button{padding:.375rem .625rem;border:0;border-radius:var(--wu-radius-sm);background:transparent;color:var(--wu-chart-tooltip-color);font:inherit;text-align:left;cursor:pointer}.wu-chart-menu button:hover{background:var(--wu-hover-bg)}.wu-chart-main{display:flex;flex-direction:column;gap:var(--wu-chart-gap);min-width:0}.wu-chart-legend-top .wu-chart-legend{order:-1}.wu-chart-legend-right .wu-chart-main{flex-direction:row;flex-wrap:wrap;align-items:center}.wu-chart-legend-right .wu-chart-body{flex:1 1 16rem}.wu-chart-legend-right .wu-chart-legend{flex:0 1 auto;flex-direction:column;align-items:flex-start}.wu-chart-body{position:relative;min-width:0;width:100%}.wu-chart-svg{display:block;max-width:100%;overflow:visible;font-family:inherit;border-radius:var(--wu-radius-sm);outline-color:transparent;-webkit-user-select:none;user-select:none}.wu-chart-zoomable{cursor:crosshair;touch-action:pan-y}.wu-chart-selection{fill:var(--wu-chart-selection);stroke:var(--wu-chart-mark-color);stroke-width:1;stroke-dasharray:4 3;pointer-events:none}.wu-chart-svg:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:var(--wu-control-focus-offset);box-shadow:var(--wu-control-focus-shadow)}.wu-chart-grid line,.wu-chart-web path,.wu-chart-web line{fill:none;stroke:var(--wu-chart-grid);stroke-width:1;shape-rendering:crispEdges}.wu-chart-web path,.wu-chart-web line{shape-rendering:auto}.wu-chart-zero{stroke:var(--wu-chart-axis);stroke-width:1;shape-rendering:crispEdges}.wu-chart-tick,.wu-chart-axis-title,.wu-chart-value,.wu-chart-reference-label{fill:var(--wu-chart-text);font-size:var(--wu-chart-font-size)}.wu-chart-axis-title{font-weight:600}.wu-chart-ring-label{paint-order:stroke;stroke:var(--wu-chart-dot-fill);stroke-width:3px;stroke-linejoin:round;pointer-events:none}.wu-chart-tick-active{fill:var(--wu-chart-title-color);font-weight:600}.wu-chart-value{fill:var(--wu-chart-value-color);font-weight:600;pointer-events:none;transition:opacity var(--wu-transition)}.wu-chart-entering .wu-chart-value{opacity:0}.wu-chart-value-inside{fill:var(--wu-chart-value-inside-color);paint-order:stroke;stroke:#00000040;stroke-width:2px}.wu-chart-bar,.wu-chart-slice,.wu-chart-area,.wu-chart-line,.wu-chart-radar,.wu-chart-dot{transition:opacity var(--wu-transition),transform var(--wu-transition)}.wu-chart-bar{cursor:pointer}.wu-chart-slice{cursor:pointer;stroke:var(--wu-chart-slice-border);stroke-width:1.5}.wu-chart-area{opacity:var(--wu-chart-area-opacity)}.wu-chart-area-fade{opacity:1}.wu-chart-fade-from{stop-opacity:var(--wu-chart-gradient-from)}.wu-chart-fade-to{stop-opacity:var(--wu-chart-gradient-to)}.wu-chart-area-fade.wu-chart-dim{opacity:var(--wu-chart-dim-opacity)}.wu-chart-track,.wu-chart-ring{fill:none}.wu-chart-track{stroke:var(--wu-chart-track)}.wu-chart-ring{cursor:pointer;transition:opacity var(--wu-transition)}.wu-chart-round{stroke-linecap:round}.wu-chart-cell{cursor:pointer;transform-box:fill-box;transform-origin:center;animation:wu-chart-cell-in .45s ease-out backwards;transition:opacity var(--wu-transition),fill-opacity var(--wu-transition)}.wu-chart-cell-active{stroke:var(--wu-chart-title-color);stroke-width:2}.wu-chart-cell-text{fill:var(--wu-chart-value-color);font-size:var(--wu-chart-font-size);font-weight:600;pointer-events:none;animation:wu-chart-fade-in .45s ease-out backwards}.wu-chart-cell-text-inside{fill:var(--wu-chart-value-inside-color)}.wu-chart-cell-name{font-weight:700}@keyframes wu-chart-cell-in{0%{opacity:0;transform:scale(.85)}}@keyframes wu-chart-fade-in{0%{opacity:0}}.wu-chart-shape{transition:opacity var(--wu-transition),filter var(--wu-transition)}.wu-chart-lit{filter:brightness(1.08) saturate(1.1)}.wu-chart-stream{stroke:var(--wu-chart-slice-border);stroke-width:1}.wu-chart-sun{stroke:var(--wu-chart-slice-border);stroke-width:1;cursor:pointer}.wu-chart-line-shape{fill:none;stroke-linecap:round;stroke-linejoin:round}.wu-chart-connector,.wu-chart-whisker,.wu-chart-median{stroke-linecap:round}line.wu-chart-shape{stroke-linecap:round}.wu-chart-text{fill:var(--wu-chart-text);font-size:var(--wu-chart-font-size);pointer-events:none;transition:opacity var(--wu-transition)}.wu-chart-text-strong{fill:var(--wu-chart-title-color);font-weight:600}.wu-chart-text-inside{fill:var(--wu-chart-value-inside-color)}.wu-chart-text-muted{fill:var(--wu-chart-muted);font-weight:600}.wu-chart-in-grow,.wu-chart-in-grow-x,.wu-chart-in-pop{transform-box:fill-box}.wu-chart-in-grow{transform-origin:center bottom;animation:wu-chart-grow .6s cubic-bezier(.2,.8,.2,1) backwards}.wu-chart-in-grow-x{transform-origin:left center;animation:wu-chart-grow-x .6s cubic-bezier(.2,.8,.2,1) backwards}.wu-chart-in-pop{transform-origin:center;animation:wu-chart-pop .45s cubic-bezier(.3,1.5,.6,1) backwards}.wu-chart-in-fade{animation:wu-chart-fade-in .5s ease-out backwards}.wu-chart-in-draw{stroke-dasharray:1;animation:wu-chart-draw .9s ease-out backwards}@keyframes wu-chart-grow{0%{transform:scaleY(0)}}@keyframes wu-chart-grow-x{0%{transform:scaleX(0)}}@keyframes wu-chart-pop{0%{opacity:0;transform:scale(.4)}}@keyframes wu-chart-draw{0%{stroke-dashoffset:1}}.wu-chart-swap{display:inline-flex;flex:0 1 auto;flex-wrap:wrap;min-width:0;gap:.125rem;margin-left:auto;padding:.1875rem;border-radius:var(--wu-radius-md);background:var(--wu-chart-track)}.wu-chart-swap+.wu-chart-toolbar,.wu-chart-looks+.wu-chart-swap,.wu-chart-looks+.wu-chart-toolbar{margin-left:0}.wu-chart-looks{display:inline-flex;flex:0 1 auto;flex-wrap:wrap;gap:.125rem;min-width:0;margin-left:auto;padding:.1875rem;border-radius:var(--wu-radius-md);background:var(--wu-chart-track)}.wu-chart-look-item{min-height:1.75rem;padding:.125rem .625rem;border:0;border-radius:var(--wu-radius-sm);background:transparent;color:var(--wu-chart-toolbar-color);font:inherit;font-size:.8125rem;font-weight:600;cursor:pointer;transition:background var(--wu-transition),color var(--wu-transition),box-shadow var(--wu-transition)}.wu-chart-look-item:hover{color:var(--wu-chart-title-color)}.wu-chart-look-on{background:var(--wu-chart-tooltip-bg);box-shadow:var(--wu-chart-tooltip-shadow);color:var(--wu-chart-mark-color)}.wu-chart-look-item:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:0;box-shadow:var(--wu-control-focus-shadow)}.wu-chart-swap-item{display:inline-flex;align-items:center;justify-content:center;width:1.875rem;height:1.75rem;padding:0;border:0;border-radius:var(--wu-radius-sm);background:transparent;color:var(--wu-chart-toolbar-color);cursor:pointer;transition:background var(--wu-transition),color var(--wu-transition),box-shadow var(--wu-transition)}.wu-chart-swap-item svg{width:1.0625rem;height:1.0625rem;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.wu-chart-swap-item:hover{color:var(--wu-chart-title-color)}.wu-chart-swap-on{background:var(--wu-chart-tooltip-bg);box-shadow:var(--wu-chart-tooltip-shadow);color:var(--wu-chart-mark-color)}.wu-chart-swap-item:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:0;box-shadow:var(--wu-control-focus-shadow)}.wu-chart-ghost{position:absolute;top:0;left:0;pointer-events:none;animation:wu-chart-ghost-out .48s ease-in forwards}@keyframes wu-chart-ghost-out{to{opacity:0;filter:blur(2px);transform:scale(.97)}}.wu-chart-center-back{margin-top:.125rem;color:var(--wu-chart-mark-color);font-size:.75em;font-weight:600}.wu-chart-band{fill-opacity:var(--wu-chart-band-opacity);pointer-events:none}.wu-chart-mark{fill:var(--wu-chart-dot-fill);stroke-width:2.5;pointer-events:none}.wu-chart-mark-box{pointer-events:none}.wu-chart-mark-label{fill:var(--wu-chart-value-inside-color);font-size:var(--wu-chart-font-size);font-weight:600;pointer-events:none}.wu-chart-line{fill:none;stroke-width:var(--wu-chart-line-width);stroke-linecap:round;stroke-linejoin:round}.wu-chart-dashed{stroke-dasharray:6 5}.wu-chart-radar{fill-opacity:var(--wu-chart-area-opacity);stroke-width:var(--wu-chart-line-width);stroke-linejoin:round}.wu-chart-dot{fill:var(--wu-chart-dot-fill);stroke-width:2;cursor:pointer}.wu-chart-bubble{fill-opacity:.7;stroke-width:1.5}.wu-chart-dim{opacity:var(--wu-chart-dim-opacity)}.wu-chart-area.wu-chart-dim{opacity:calc(var(--wu-chart-area-opacity) * var(--wu-chart-dim-opacity))}.wu-chart-crosshair{stroke:var(--wu-chart-crosshair);stroke-width:1;stroke-dasharray:3 3;pointer-events:none}.wu-chart-reference{stroke-width:1.5}.wu-chart-reference-label{font-weight:600}.wu-chart-center{position:absolute;display:flex;flex-direction:column;align-items:center;transform:translate(-50%,-50%);text-align:center;pointer-events:none}.wu-chart-center-value{color:var(--wu-chart-title-color);font-size:var(--wu-chart-center-size);font-weight:700;line-height:1.2;overflow-wrap:anywhere}.wu-chart-center-label{color:var(--wu-chart-text)}.wu-chart-center-lift{transform:translate(-50%,calc(-100% - .25rem))}.wu-chart-sparkline{gap:0}.wu-chart-tooltip{position:absolute;z-index:1;min-width:8rem;max-width:18rem;padding:var(--wu-chart-tooltip-padding);border:1px solid var(--wu-chart-tooltip-border);border-radius:var(--wu-chart-tooltip-radius);background:var(--wu-chart-tooltip-bg);box-shadow:var(--wu-chart-tooltip-shadow);color:var(--wu-chart-tooltip-color);transform:translate(14px,-50%);pointer-events:none;white-space:nowrap}.wu-chart-tooltip-flip{transform:translate(calc(-100% - 14px),-50%)}.wu-chart-tooltip-title{margin-bottom:.25rem;font-weight:600}.wu-chart-tooltip-row{display:flex;align-items:center;gap:.5rem}.wu-chart-tooltip-name{flex:1;overflow:hidden;text-overflow:ellipsis}.wu-chart-tooltip-value{font-weight:600;font-variant-numeric:tabular-nums}.wu-chart-legend{display:flex;flex-wrap:wrap;justify-content:center;gap:.25rem .75rem;margin:0;padding:0;list-style:none}.wu-chart-legend-item{display:inline-flex;align-items:center;gap:.4rem;min-height:1.75rem;padding:.125rem .375rem;border:0;border-radius:var(--wu-radius-sm);background:transparent;color:var(--wu-chart-legend-color);font:inherit;cursor:pointer;transition:opacity var(--wu-transition),background var(--wu-transition)}.wu-chart-legend-item:hover{background:var(--wu-hover-bg)}.wu-chart-legend-item:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:0;box-shadow:var(--wu-control-focus-shadow)}.wu-chart-legend-off{opacity:.45}.wu-chart-legend-off .wu-chart-legend-name{text-decoration:line-through}.wu-chart-swatch{flex:none;width:.75rem;height:.75rem;border-radius:3px}.wu-chart-swatch-line{height:3px;border-radius:2px}.wu-chart-swatch-dot{border-radius:50%}.wu-chart-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:var(--wu-chart-text)}.wu-chart-sr{position:absolute!important;top:0;left:0;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}@media(prefers-reduced-motion:reduce){.wu-chart-bar,.wu-chart-slice,.wu-chart-area,.wu-chart-line,.wu-chart-radar,.wu-chart-dot,.wu-chart-ring,.wu-chart-legend-item{transition:none}.wu-chart-cell,.wu-chart-cell-text,.wu-chart-shape,.wu-chart-ghost{animation:none}}}\n"] }]
1203
+ }], ctorParameters: () => [], propDecorators: { type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], labels: [{ type: i0.Input, args: [{ isSignal: true, alias: "labels", required: false }] }], series: [{ type: i0.Input, args: [{ isSignal: true, alias: "series", required: false }] }], data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], subtitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "subtitle", required: false }] }], height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }], legend: [{ type: i0.Input, args: [{ isSignal: true, alias: "legend", required: false }] }], font: [{ type: i0.Input, args: [{ isSignal: true, alias: "font", required: false }] }], fontSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "fontSize", required: false }] }], horizontal: [{ type: i0.Input, args: [{ isSignal: true, alias: "horizontal", required: false }] }], stacked: [{ type: i0.Input, args: [{ isSignal: true, alias: "stacked", required: false }] }], smooth: [{ type: i0.Input, args: [{ isSignal: true, alias: "smooth", required: false }] }], curve: [{ type: i0.Input, args: [{ isSignal: true, alias: "curve", required: false }] }], gradient: [{ type: i0.Input, args: [{ isSignal: true, alias: "gradient", required: false }] }], sparkline: [{ type: i0.Input, args: [{ isSignal: true, alias: "sparkline", required: false }] }], showValues: [{ type: i0.Input, args: [{ isSignal: true, alias: "showValues", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], bins: [{ type: i0.Input, args: [{ isSignal: true, alias: "bins", required: false }] }], swap: [{ type: i0.Input, args: [{ isSignal: true, alias: "swap", required: false }] }], looks: [{ type: i0.Input, args: [{ isSignal: true, alias: "looks", required: false }] }], points: [{ type: i0.Input, args: [{ isSignal: true, alias: "points", required: false }] }], grid: [{ type: i0.Input, args: [{ isSignal: true, alias: "grid", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }], animate: [{ type: i0.Input, args: [{ isSignal: true, alias: "animate", required: false }] }], format: [{ type: i0.Input, args: [{ isSignal: true, alias: "format", required: false }] }], rightFormat: [{ type: i0.Input, args: [{ isSignal: true, alias: "rightFormat", required: false }] }], currency: [{ type: i0.Input, args: [{ isSignal: true, alias: "currency", required: false }] }], decimals: [{ type: i0.Input, args: [{ isSignal: true, alias: "decimals", required: false }] }], prefix: [{ type: i0.Input, args: [{ isSignal: true, alias: "prefix", required: false }] }], suffix: [{ type: i0.Input, args: [{ isSignal: true, alias: "suffix", required: false }] }], lang: [{ type: i0.Input, args: [{ isSignal: true, alias: "lang", required: false }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], beginAtZero: [{ type: i0.Input, args: [{ isSignal: true, alias: "beginAtZero", required: false }] }], rightMin: [{ type: i0.Input, args: [{ isSignal: true, alias: "rightMin", required: false }] }], rightMax: [{ type: i0.Input, args: [{ isSignal: true, alias: "rightMax", required: false }] }], xTitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "xTitle", required: false }] }], yTitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "yTitle", required: false }] }], y2Title: [{ type: i0.Input, args: [{ isSignal: true, alias: "y2Title", required: false }] }], referenceLines: [{ type: i0.Input, args: [{ isSignal: true, alias: "referenceLines", required: false }] }], annotations: [{ type: i0.Input, args: [{ isSignal: true, alias: "annotations", required: false }] }], colorRanges: [{ type: i0.Input, args: [{ isSignal: true, alias: "colorRanges", required: false }] }], startAngle: [{ type: i0.Input, args: [{ isSignal: true, alias: "startAngle", required: false }] }], endAngle: [{ type: i0.Input, args: [{ isSignal: true, alias: "endAngle", required: false }] }], toolbar: [{ type: i0.Input, args: [{ isSignal: true, alias: "toolbar", required: false }] }], zoom: [{ type: i0.Input, args: [{ isSignal: true, alias: "zoom", required: false }] }], group: [{ type: i0.Input, args: [{ isSignal: true, alias: "group", required: false }] }], fileName: [{ type: i0.Input, args: [{ isSignal: true, alias: "fileName", required: false }] }], colors: [{ type: i0.Input, args: [{ isSignal: true, alias: "colors", required: false }] }], barRadius: [{ type: i0.Input, args: [{ isSignal: true, alias: "barRadius", required: false }] }], cutout: [{ type: i0.Input, args: [{ isSignal: true, alias: "cutout", required: false }] }], centerValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "centerValue", required: false }] }], centerLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "centerLabel", required: false }] }], emptyMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyMessage", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], style: [{ type: i0.Input, args: [{ isSignal: true, alias: "style", required: false }] }], pointClick: [{ type: i0.Output, args: ["pointClick"] }], seriesToggle: [{ type: i0.Output, args: ["seriesToggle"] }], zoomChange: [{ type: i0.Output, args: ["zoomChange"] }], typeChange: [{ type: i0.Output, args: ["typeChange"] }], variantChange: [{ type: i0.Output, args: ["variantChange"] }], body: [{ type: i0.ViewChild, args: ['body', { isSignal: true }] }], svgRef: [{ type: i0.ViewChild, args: ['svg', { isSignal: true }] }] } });
1204
+ /** An axis part-way (`t` 0–1) from `from` to `to`; the ticks are the final ones, moving into place. */
1205
+ function slide(from, to, t) {
1206
+ if (!to)
1207
+ return undefined;
1208
+ if (!from)
1209
+ return to;
1210
+ return { min: from.min + (to.min - from.min) * t, max: from.max + (to.max - from.max) * t, ticks: to.ticks };
1211
+ }
1212
+ function optionalNumber(v) {
1213
+ return v === null || v === undefined || v === '' || !Number.isFinite(Number(v)) ? undefined : Number(v);
1214
+ }
1215
+ /** Chart.js `cutout: '60%'` → 0.6. */
1216
+ function cutoutOf(v) {
1217
+ if (typeof v === 'number')
1218
+ return v > 1 ? undefined : v;
1219
+ if (typeof v === 'string' && /%$/.test(v))
1220
+ return Number(v.slice(0, -1)) / 100;
1221
+ return undefined;
1222
+ }
1223
+ /**
1224
+ * The frame part-way (`t` 0–1) from `from` to `to`: shown values move from where they were (or from 0), a series being
1225
+ * hidden shrinks to nothing before it goes, and pie slices being hidden shrink the same way (their value is 0 in `to`).
1226
+ */
1227
+ function between(from, to, t) {
1228
+ const series = to.series.map((s, i) => {
1229
+ const prev = from?.series[i];
1230
+ const wasShown = !!prev && !prev.hidden;
1231
+ if (s.hidden && !wasShown)
1232
+ return s;
1233
+ const data = s.data.map((v, k) => {
1234
+ const p = wasShown ? prev.data[k] : 0;
1235
+ const a = typeof p === 'number' && Number.isFinite(p) ? p : 0;
1236
+ if (s.hidden)
1237
+ return a * (1 - t);
1238
+ return typeof v === 'number' ? a + (v - a) * t : v;
1239
+ });
1240
+ return { ...s, data, hidden: false };
1241
+ });
1242
+ // Slices hidden before and after stay hidden; ones on their way out shrink first.
1243
+ const hiddenSlices = from ? from.hiddenSlices.filter((k) => to.hiddenSlices.includes(k)) : to.hiddenSlices;
1244
+ return { labels: to.labels, series, hiddenSlices };
1245
+ }
43
1246
 
44
1247
  /** For NgModule apps. Standalone apps can import `WuChart` directly. */
45
1248
  class WuChartModule {
46
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: WuChartModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
47
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: WuChartModule, imports: [WuChart], exports: [WuChart] }); }
48
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: WuChartModule }); }
1249
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: WuChartModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1250
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.25", ngImport: i0, type: WuChartModule, imports: [WuChart], exports: [WuChart] }); }
1251
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: WuChartModule }); }
49
1252
  }
50
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: WuChartModule, decorators: [{
1253
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: WuChartModule, decorators: [{
51
1254
  type: NgModule,
52
1255
  args: [{
53
1256
  imports: [WuChart],