@semcore/d3-chart 3.61.0-prerelease.1 → 3.61.0-prerelease.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (579) hide show
  1. package/lib/cjs/AnimatedClipPath.js +11 -15
  2. package/lib/cjs/AnimatedClipPath.js.map +1 -1
  3. package/lib/cjs/Area.js +71 -48
  4. package/lib/cjs/Area.js.map +1 -1
  5. package/lib/cjs/Axis.js +170 -108
  6. package/lib/cjs/Axis.js.map +1 -1
  7. package/lib/cjs/Bar.js +29 -34
  8. package/lib/cjs/Bar.js.map +1 -1
  9. package/lib/cjs/Bubble.js +211 -137
  10. package/lib/cjs/Bubble.js.map +1 -1
  11. package/lib/cjs/CompactHorizontalBar.js +92 -82
  12. package/lib/cjs/CompactHorizontalBar.js.map +1 -1
  13. package/lib/cjs/Donut.js +154 -139
  14. package/lib/cjs/Donut.js.map +1 -1
  15. package/lib/cjs/Dots.js +55 -38
  16. package/lib/cjs/Dots.js.map +1 -1
  17. package/lib/cjs/GroupBar.js +15 -18
  18. package/lib/cjs/GroupBar.js.map +1 -1
  19. package/lib/cjs/HorizontalBar.js +29 -34
  20. package/lib/cjs/HorizontalBar.js.map +1 -1
  21. package/lib/cjs/Hover.js +52 -45
  22. package/lib/cjs/Hover.js.map +1 -1
  23. package/lib/cjs/Line.js +63 -41
  24. package/lib/cjs/Line.js.map +1 -1
  25. package/lib/cjs/Pattern.js +16 -12
  26. package/lib/cjs/Pattern.js.map +1 -1
  27. package/lib/cjs/Plot.js +29 -36
  28. package/lib/cjs/Plot.js.map +1 -1
  29. package/lib/cjs/Radar.js +281 -261
  30. package/lib/cjs/Radar.js.map +1 -1
  31. package/lib/cjs/RadialTree.js +169 -154
  32. package/lib/cjs/RadialTree.js.map +1 -1
  33. package/lib/cjs/Reference.js +45 -51
  34. package/lib/cjs/Reference.js.map +1 -1
  35. package/lib/cjs/ResponsiveContainer.js +20 -25
  36. package/lib/cjs/ResponsiveContainer.js.map +1 -1
  37. package/lib/cjs/ScatterPlot.js +71 -61
  38. package/lib/cjs/ScatterPlot.js.map +1 -1
  39. package/lib/cjs/StackBar.js +20 -31
  40. package/lib/cjs/StackBar.js.map +1 -1
  41. package/lib/cjs/StackedArea.js +12 -16
  42. package/lib/cjs/StackedArea.js.map +1 -1
  43. package/lib/cjs/Tooltip.js +73 -73
  44. package/lib/cjs/Tooltip.js.map +1 -1
  45. package/lib/cjs/Venn.js +77 -52
  46. package/lib/cjs/Venn.js.map +1 -1
  47. package/lib/cjs/a11y/DataAccessibilityTable.js +2 -3
  48. package/lib/cjs/a11y/DataAccessibilityTable.js.map +1 -1
  49. package/lib/cjs/a11y/PlotA11yModule.js +43 -86
  50. package/lib/cjs/a11y/PlotA11yModule.js.map +1 -1
  51. package/lib/cjs/a11y/PlotA11yView.js +44 -19
  52. package/lib/cjs/a11y/PlotA11yView.js.map +1 -1
  53. package/lib/cjs/a11y/bezier.js +1 -2
  54. package/lib/cjs/a11y/bezier.js.map +1 -1
  55. package/lib/cjs/a11y/focus.js +5 -6
  56. package/lib/cjs/a11y/focus.js.map +1 -1
  57. package/lib/cjs/a11y/hints.js +6 -9
  58. package/lib/cjs/a11y/hints.js.map +1 -1
  59. package/lib/cjs/a11y/insights.js +63 -64
  60. package/lib/cjs/a11y/insights.js.map +1 -1
  61. package/lib/cjs/a11y/intl.js +1 -2
  62. package/lib/cjs/a11y/intl.js.map +1 -1
  63. package/lib/cjs/a11y/locale.js +5 -5
  64. package/lib/cjs/a11y/locale.js.map +1 -1
  65. package/lib/cjs/a11y/serialize.js +15 -17
  66. package/lib/cjs/a11y/serialize.js.map +1 -1
  67. package/lib/cjs/a11y/summarize.js +1 -2
  68. package/lib/cjs/a11y/summarize.js.map +1 -1
  69. package/lib/cjs/a11y/translations/module/__intergalactic-dynamic-locales.js +4 -5
  70. package/lib/cjs/a11y/translations/module/__intergalactic-dynamic-locales.js.map +1 -1
  71. package/lib/cjs/a11y/translations/module/de.json +2 -2
  72. package/lib/cjs/a11y/translations/module/en.json +2 -2
  73. package/lib/cjs/a11y/translations/module/es.json +2 -2
  74. package/lib/cjs/a11y/translations/module/fr.json +2 -2
  75. package/lib/cjs/a11y/translations/module/it.json +2 -2
  76. package/lib/cjs/a11y/translations/module/ja.json +2 -2
  77. package/lib/cjs/a11y/translations/module/ko.json +2 -2
  78. package/lib/cjs/a11y/translations/module/nl.json +2 -2
  79. package/lib/cjs/a11y/translations/module/pl.json +2 -2
  80. package/lib/cjs/a11y/translations/module/pt.json +2 -2
  81. package/lib/cjs/a11y/translations/module/sv.json +2 -2
  82. package/lib/cjs/a11y/translations/module/tr.json +2 -2
  83. package/lib/cjs/a11y/translations/module/vi.json +2 -2
  84. package/lib/cjs/a11y/translations/module/zh.json +2 -2
  85. package/lib/cjs/a11y/translations/view/__intergalactic-dynamic-locales.js +4 -5
  86. package/lib/cjs/a11y/translations/view/__intergalactic-dynamic-locales.js.map +1 -1
  87. package/lib/cjs/color.js +2 -3
  88. package/lib/cjs/color.js.map +1 -1
  89. package/lib/cjs/component/Chart/AbstractChart.js +157 -83
  90. package/lib/cjs/component/Chart/AbstractChart.js.map +1 -1
  91. package/lib/cjs/component/Chart/AbstractChart.type.js.map +1 -1
  92. package/lib/cjs/component/Chart/AreaChart.js +24 -51
  93. package/lib/cjs/component/Chart/AreaChart.js.map +1 -1
  94. package/lib/cjs/component/Chart/AreaChart.type.js.map +1 -1
  95. package/lib/cjs/component/Chart/BarChart.js +85 -69
  96. package/lib/cjs/component/Chart/BarChart.js.map +1 -1
  97. package/lib/cjs/component/Chart/BarChart.type.js.map +1 -1
  98. package/lib/cjs/component/Chart/BubbleChart.js +31 -27
  99. package/lib/cjs/component/Chart/BubbleChart.js.map +1 -1
  100. package/lib/cjs/component/Chart/BubbleChart.type.js.map +1 -1
  101. package/lib/cjs/component/Chart/CigaretteChart.js +340 -147
  102. package/lib/cjs/component/Chart/CigaretteChart.js.map +1 -1
  103. package/lib/cjs/component/Chart/CigaretteChart.type.js.map +1 -1
  104. package/lib/cjs/component/Chart/CompactHorizontalBarChart.js +11 -15
  105. package/lib/cjs/component/Chart/CompactHorizontalBarChart.js.map +1 -1
  106. package/lib/cjs/component/Chart/CompactHorizontalBarChart.type.js.map +1 -1
  107. package/lib/cjs/component/Chart/DonutChart.js +16 -22
  108. package/lib/cjs/component/Chart/DonutChart.js.map +1 -1
  109. package/lib/cjs/component/Chart/DonutChart.type.js.map +1 -1
  110. package/lib/cjs/component/Chart/HistogramChart.js +16 -44
  111. package/lib/cjs/component/Chart/HistogramChart.js.map +1 -1
  112. package/lib/cjs/component/Chart/HistogramChart.type.js.map +1 -1
  113. package/lib/cjs/component/Chart/LineChart.js +22 -48
  114. package/lib/cjs/component/Chart/LineChart.js.map +1 -1
  115. package/lib/cjs/component/Chart/LineChart.type.js.map +1 -1
  116. package/lib/cjs/component/Chart/RadarChart.js +15 -19
  117. package/lib/cjs/component/Chart/RadarChart.js.map +1 -1
  118. package/lib/cjs/component/Chart/RadarChart.type.js.map +1 -1
  119. package/lib/cjs/component/Chart/ScatterPlotChart.js +16 -21
  120. package/lib/cjs/component/Chart/ScatterPlotChart.js.map +1 -1
  121. package/lib/cjs/component/Chart/ScatterPlotChart.type.js.map +1 -1
  122. package/lib/cjs/component/Chart/VennChart.js +16 -19
  123. package/lib/cjs/component/Chart/VennChart.js.map +1 -1
  124. package/lib/cjs/component/Chart/VennChart.type.js.map +1 -1
  125. package/lib/cjs/component/Chart/index.js +7 -8
  126. package/lib/cjs/component/Chart/index.js.map +1 -1
  127. package/lib/cjs/component/ChartLegend/BaseLegend.js +45 -23
  128. package/lib/cjs/component/ChartLegend/BaseLegend.js.map +1 -1
  129. package/lib/cjs/component/ChartLegend/BaseLegend.type.js.map +1 -1
  130. package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js +19 -24
  131. package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js.map +1 -1
  132. package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.type.js.map +1 -1
  133. package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js +108 -83
  134. package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
  135. package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.type.js +1 -2
  136. package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.type.js.map +1 -1
  137. package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +18 -23
  138. package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js.map +1 -1
  139. package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.type.js.map +1 -1
  140. package/lib/cjs/component/ChartLegend/index.js +1 -2
  141. package/lib/cjs/component/ChartLegend/index.js.map +1 -1
  142. package/lib/cjs/component/Cigarette/Cigarette.js +16 -20
  143. package/lib/cjs/component/Cigarette/Cigarette.js.map +1 -1
  144. package/lib/cjs/component/StackGroupBar/StackGroupBar.js +19 -24
  145. package/lib/cjs/component/StackGroupBar/StackGroupBar.js.map +1 -1
  146. package/lib/cjs/component/StackGroupBar/StackGroupBar.type.js.map +1 -1
  147. package/lib/cjs/component/SvgElement.js +21 -0
  148. package/lib/cjs/component/SvgElement.js.map +1 -0
  149. package/lib/cjs/createElement.d.js.map +1 -1
  150. package/lib/cjs/createElement.js +10 -12
  151. package/lib/cjs/createElement.js.map +1 -1
  152. package/lib/cjs/index.js +9 -2
  153. package/lib/cjs/index.js.map +1 -1
  154. package/lib/cjs/style/abstract-chart.shadow.css +12 -0
  155. package/lib/cjs/style/area.shadow.css +2 -2
  156. package/lib/cjs/style/axis.shadow.css +39 -1
  157. package/lib/cjs/style/bar.shadow.css +1 -1
  158. package/lib/cjs/style/bubble.shadow.css +11 -3
  159. package/lib/cjs/style/donut.shadow.css +1 -1
  160. package/lib/cjs/style/dot.shadow.css +1 -1
  161. package/lib/cjs/style/hover.shadow.css +2 -2
  162. package/lib/cjs/style/line.shadow.css +2 -2
  163. package/lib/cjs/style/plot.shadow.css +8 -6
  164. package/lib/cjs/style/plotA11yModule.shadow.css +10 -11
  165. package/lib/cjs/style/plotA11yView.shadow.css +13 -26
  166. package/lib/cjs/style/radar.shadow.css +3 -3
  167. package/lib/cjs/style/radial-tree.shadow.css +2 -2
  168. package/lib/cjs/style/scatterplot.shadow.css +2 -2
  169. package/lib/cjs/translations/__intergalactic-dynamic-locales.js +4 -5
  170. package/lib/cjs/translations/__intergalactic-dynamic-locales.js.map +1 -1
  171. package/lib/cjs/translations/de.json +1 -0
  172. package/lib/cjs/translations/es.json +1 -0
  173. package/lib/cjs/translations/fr.json +1 -0
  174. package/lib/cjs/translations/it.json +1 -0
  175. package/lib/cjs/translations/ja.json +1 -0
  176. package/lib/cjs/translations/ko.json +1 -0
  177. package/lib/cjs/translations/nl.json +1 -0
  178. package/lib/cjs/translations/pl.json +1 -0
  179. package/lib/cjs/translations/pt.json +1 -0
  180. package/lib/cjs/translations/sv.json +1 -0
  181. package/lib/cjs/translations/tr.json +2 -1
  182. package/lib/cjs/translations/vi.json +1 -0
  183. package/lib/cjs/translations/zh.json +1 -0
  184. package/lib/cjs/types/Area.d.js.map +1 -1
  185. package/lib/cjs/types/Axis.d.js.map +1 -1
  186. package/lib/cjs/types/Bar.d.js.map +1 -1
  187. package/lib/cjs/types/Bubble.d.js.map +1 -1
  188. package/lib/cjs/types/ClipPath.d.js.map +1 -1
  189. package/lib/cjs/types/CompactHorizontalBar.d.js.map +1 -1
  190. package/lib/cjs/types/Donut.d.js.map +1 -1
  191. package/lib/cjs/types/GroupBar.d.js.map +1 -1
  192. package/lib/cjs/types/HorizontalBar.d.js.map +1 -1
  193. package/lib/cjs/types/Hover.d.js.map +1 -1
  194. package/lib/cjs/types/Line.d.js.map +1 -1
  195. package/lib/cjs/types/Plot.d.js.map +1 -1
  196. package/lib/cjs/types/Radar.d.js.map +1 -1
  197. package/lib/cjs/types/Reference.d.js.map +1 -1
  198. package/lib/cjs/types/ResponsiveContainer.d.js.map +1 -1
  199. package/lib/cjs/types/ScatterPlot.d.js.map +1 -1
  200. package/lib/cjs/types/StackBar.d.js.map +1 -1
  201. package/lib/cjs/types/StackedArea.d.js.map +1 -1
  202. package/lib/cjs/types/Tooltip.d.js.map +1 -1
  203. package/lib/cjs/types/Venn.d.js.map +1 -1
  204. package/lib/cjs/types/context.d.js.map +1 -1
  205. package/lib/cjs/types/index.d.js +14 -2
  206. package/lib/cjs/types/index.d.js.map +1 -1
  207. package/lib/cjs/utils.js +36 -55
  208. package/lib/cjs/utils.js.map +1 -1
  209. package/lib/es6/AnimatedClipPath.js +9 -11
  210. package/lib/es6/AnimatedClipPath.js.map +1 -1
  211. package/lib/es6/Area.js +70 -45
  212. package/lib/es6/Area.js.map +1 -1
  213. package/lib/es6/Axis.js +168 -104
  214. package/lib/es6/Axis.js.map +1 -1
  215. package/lib/es6/Bar.js +27 -29
  216. package/lib/es6/Bar.js.map +1 -1
  217. package/lib/es6/Bubble.js +211 -135
  218. package/lib/es6/Bubble.js.map +1 -1
  219. package/lib/es6/CompactHorizontalBar.js +89 -77
  220. package/lib/es6/CompactHorizontalBar.js.map +1 -1
  221. package/lib/es6/Donut.js +154 -137
  222. package/lib/es6/Donut.js.map +1 -1
  223. package/lib/es6/Dots.js +55 -36
  224. package/lib/es6/Dots.js.map +1 -1
  225. package/lib/es6/GroupBar.js +13 -15
  226. package/lib/es6/GroupBar.js.map +1 -1
  227. package/lib/es6/HorizontalBar.js +27 -29
  228. package/lib/es6/HorizontalBar.js.map +1 -1
  229. package/lib/es6/Hover.js +51 -41
  230. package/lib/es6/Hover.js.map +1 -1
  231. package/lib/es6/Line.js +61 -37
  232. package/lib/es6/Line.js.map +1 -1
  233. package/lib/es6/Pattern.js +7 -3
  234. package/lib/es6/Pattern.js.map +1 -1
  235. package/lib/es6/Plot.js +28 -32
  236. package/lib/es6/Plot.js.map +1 -1
  237. package/lib/es6/Radar.js +279 -257
  238. package/lib/es6/Radar.js.map +1 -1
  239. package/lib/es6/RadialTree.js +168 -151
  240. package/lib/es6/RadialTree.js.map +1 -1
  241. package/lib/es6/Reference.js +43 -45
  242. package/lib/es6/Reference.js.map +1 -1
  243. package/lib/es6/ResponsiveContainer.js +16 -19
  244. package/lib/es6/ResponsiveContainer.js.map +1 -1
  245. package/lib/es6/ScatterPlot.js +71 -59
  246. package/lib/es6/ScatterPlot.js.map +1 -1
  247. package/lib/es6/StackBar.js +17 -27
  248. package/lib/es6/StackBar.js.map +1 -1
  249. package/lib/es6/StackedArea.js +10 -13
  250. package/lib/es6/StackedArea.js.map +1 -1
  251. package/lib/es6/Tooltip.js +68 -65
  252. package/lib/es6/Tooltip.js.map +1 -1
  253. package/lib/es6/Venn.js +75 -48
  254. package/lib/es6/Venn.js.map +1 -1
  255. package/lib/es6/a11y/DataAccessibilityTable.js.map +1 -1
  256. package/lib/es6/a11y/PlotA11yModule.js +43 -86
  257. package/lib/es6/a11y/PlotA11yModule.js.map +1 -1
  258. package/lib/es6/a11y/PlotA11yView.js +43 -16
  259. package/lib/es6/a11y/PlotA11yView.js.map +1 -1
  260. package/lib/es6/a11y/bezier.js.map +1 -1
  261. package/lib/es6/a11y/focus.js +4 -4
  262. package/lib/es6/a11y/focus.js.map +1 -1
  263. package/lib/es6/a11y/hints.js +2 -2
  264. package/lib/es6/a11y/hints.js.map +1 -1
  265. package/lib/es6/a11y/insights.js +61 -61
  266. package/lib/es6/a11y/insights.js.map +1 -1
  267. package/lib/es6/a11y/intl.js.map +1 -1
  268. package/lib/es6/a11y/locale.js +3 -2
  269. package/lib/es6/a11y/locale.js.map +1 -1
  270. package/lib/es6/a11y/serialize.js +14 -13
  271. package/lib/es6/a11y/serialize.js.map +1 -1
  272. package/lib/es6/a11y/summarize.js.map +1 -1
  273. package/lib/es6/a11y/translations/module/__intergalactic-dynamic-locales.js +2 -2
  274. package/lib/es6/a11y/translations/module/__intergalactic-dynamic-locales.js.map +1 -1
  275. package/lib/es6/a11y/translations/module/de.json +2 -2
  276. package/lib/es6/a11y/translations/module/en.json +2 -2
  277. package/lib/es6/a11y/translations/module/es.json +2 -2
  278. package/lib/es6/a11y/translations/module/fr.json +2 -2
  279. package/lib/es6/a11y/translations/module/it.json +2 -2
  280. package/lib/es6/a11y/translations/module/ja.json +2 -2
  281. package/lib/es6/a11y/translations/module/ko.json +2 -2
  282. package/lib/es6/a11y/translations/module/nl.json +2 -2
  283. package/lib/es6/a11y/translations/module/pl.json +2 -2
  284. package/lib/es6/a11y/translations/module/pt.json +2 -2
  285. package/lib/es6/a11y/translations/module/sv.json +2 -2
  286. package/lib/es6/a11y/translations/module/tr.json +2 -2
  287. package/lib/es6/a11y/translations/module/vi.json +2 -2
  288. package/lib/es6/a11y/translations/module/zh.json +2 -2
  289. package/lib/es6/a11y/translations/view/__intergalactic-dynamic-locales.js +2 -2
  290. package/lib/es6/a11y/translations/view/__intergalactic-dynamic-locales.js.map +1 -1
  291. package/lib/es6/color.js +1 -1
  292. package/lib/es6/color.js.map +1 -1
  293. package/lib/es6/component/Chart/AbstractChart.js +159 -80
  294. package/lib/es6/component/Chart/AbstractChart.js.map +1 -1
  295. package/lib/es6/component/Chart/AbstractChart.type.js.map +1 -1
  296. package/lib/es6/component/Chart/AreaChart.js +23 -48
  297. package/lib/es6/component/Chart/AreaChart.js.map +1 -1
  298. package/lib/es6/component/Chart/AreaChart.type.js.map +1 -1
  299. package/lib/es6/component/Chart/BarChart.js +84 -67
  300. package/lib/es6/component/Chart/BarChart.js.map +1 -1
  301. package/lib/es6/component/Chart/BarChart.type.js.map +1 -1
  302. package/lib/es6/component/Chart/BubbleChart.js +30 -24
  303. package/lib/es6/component/Chart/BubbleChart.js.map +1 -1
  304. package/lib/es6/component/Chart/BubbleChart.type.js.map +1 -1
  305. package/lib/es6/component/Chart/CigaretteChart.js +341 -144
  306. package/lib/es6/component/Chart/CigaretteChart.js.map +1 -1
  307. package/lib/es6/component/Chart/CigaretteChart.type.js.map +1 -1
  308. package/lib/es6/component/Chart/CompactHorizontalBarChart.js +9 -12
  309. package/lib/es6/component/Chart/CompactHorizontalBarChart.js.map +1 -1
  310. package/lib/es6/component/Chart/CompactHorizontalBarChart.type.js.map +1 -1
  311. package/lib/es6/component/Chart/DonutChart.js +14 -18
  312. package/lib/es6/component/Chart/DonutChart.js.map +1 -1
  313. package/lib/es6/component/Chart/DonutChart.type.js.map +1 -1
  314. package/lib/es6/component/Chart/HistogramChart.js +15 -41
  315. package/lib/es6/component/Chart/HistogramChart.js.map +1 -1
  316. package/lib/es6/component/Chart/HistogramChart.type.js.map +1 -1
  317. package/lib/es6/component/Chart/LineChart.js +20 -45
  318. package/lib/es6/component/Chart/LineChart.js.map +1 -1
  319. package/lib/es6/component/Chart/LineChart.type.js.map +1 -1
  320. package/lib/es6/component/Chart/RadarChart.js +13 -16
  321. package/lib/es6/component/Chart/RadarChart.js.map +1 -1
  322. package/lib/es6/component/Chart/RadarChart.type.js.map +1 -1
  323. package/lib/es6/component/Chart/ScatterPlotChart.js +15 -18
  324. package/lib/es6/component/Chart/ScatterPlotChart.js.map +1 -1
  325. package/lib/es6/component/Chart/ScatterPlotChart.type.js.map +1 -1
  326. package/lib/es6/component/Chart/VennChart.js +14 -16
  327. package/lib/es6/component/Chart/VennChart.js.map +1 -1
  328. package/lib/es6/component/Chart/VennChart.type.js.map +1 -1
  329. package/lib/es6/component/Chart/index.js +6 -6
  330. package/lib/es6/component/Chart/index.js.map +1 -1
  331. package/lib/es6/component/ChartLegend/BaseLegend.js +43 -20
  332. package/lib/es6/component/ChartLegend/BaseLegend.js.map +1 -1
  333. package/lib/es6/component/ChartLegend/BaseLegend.type.js.map +1 -1
  334. package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js +17 -19
  335. package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js.map +1 -1
  336. package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.type.js.map +1 -1
  337. package/lib/es6/component/ChartLegend/LegendItem/LegendItem.js +102 -74
  338. package/lib/es6/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
  339. package/lib/es6/component/ChartLegend/LegendItem/LegendItem.type.js.map +1 -1
  340. package/lib/es6/component/ChartLegend/LegendTable/LegendTable.js +15 -17
  341. package/lib/es6/component/ChartLegend/LegendTable/LegendTable.js.map +1 -1
  342. package/lib/es6/component/ChartLegend/LegendTable/LegendTable.type.js.map +1 -1
  343. package/lib/es6/component/ChartLegend/index.js.map +1 -1
  344. package/lib/es6/component/Cigarette/Cigarette.js +14 -17
  345. package/lib/es6/component/Cigarette/Cigarette.js.map +1 -1
  346. package/lib/es6/component/StackGroupBar/StackGroupBar.js +17 -21
  347. package/lib/es6/component/StackGroupBar/StackGroupBar.js.map +1 -1
  348. package/lib/es6/component/StackGroupBar/StackGroupBar.type.js.map +1 -1
  349. package/lib/es6/component/SvgElement.js +14 -0
  350. package/lib/es6/component/SvgElement.js.map +1 -0
  351. package/lib/es6/createElement.d.js.map +1 -1
  352. package/lib/es6/createElement.js +7 -7
  353. package/lib/es6/createElement.js.map +1 -1
  354. package/lib/es6/index.js +1 -0
  355. package/lib/es6/index.js.map +1 -1
  356. package/lib/es6/style/abstract-chart.shadow.css +12 -0
  357. package/lib/es6/style/area.shadow.css +2 -2
  358. package/lib/es6/style/axis.shadow.css +39 -1
  359. package/lib/es6/style/bar.shadow.css +1 -1
  360. package/lib/es6/style/bubble.shadow.css +11 -3
  361. package/lib/es6/style/donut.shadow.css +1 -1
  362. package/lib/es6/style/dot.shadow.css +1 -1
  363. package/lib/es6/style/hover.shadow.css +2 -2
  364. package/lib/es6/style/line.shadow.css +2 -2
  365. package/lib/es6/style/plot.shadow.css +8 -6
  366. package/lib/es6/style/plotA11yModule.shadow.css +10 -11
  367. package/lib/es6/style/plotA11yView.shadow.css +13 -26
  368. package/lib/es6/style/radar.shadow.css +3 -3
  369. package/lib/es6/style/radial-tree.shadow.css +2 -2
  370. package/lib/es6/style/scatterplot.shadow.css +2 -2
  371. package/lib/es6/translations/__intergalactic-dynamic-locales.js +2 -2
  372. package/lib/es6/translations/__intergalactic-dynamic-locales.js.map +1 -1
  373. package/lib/es6/translations/de.json +1 -0
  374. package/lib/es6/translations/es.json +1 -0
  375. package/lib/es6/translations/fr.json +1 -0
  376. package/lib/es6/translations/it.json +1 -0
  377. package/lib/es6/translations/ja.json +1 -0
  378. package/lib/es6/translations/ko.json +1 -0
  379. package/lib/es6/translations/nl.json +1 -0
  380. package/lib/es6/translations/pl.json +1 -0
  381. package/lib/es6/translations/pt.json +1 -0
  382. package/lib/es6/translations/sv.json +1 -0
  383. package/lib/es6/translations/tr.json +2 -1
  384. package/lib/es6/translations/vi.json +1 -0
  385. package/lib/es6/translations/zh.json +1 -0
  386. package/lib/es6/types/Area.d.js.map +1 -1
  387. package/lib/es6/types/Axis.d.js.map +1 -1
  388. package/lib/es6/types/Bar.d.js.map +1 -1
  389. package/lib/es6/types/Bubble.d.js.map +1 -1
  390. package/lib/es6/types/ClipPath.d.js.map +1 -1
  391. package/lib/es6/types/CompactHorizontalBar.d.js.map +1 -1
  392. package/lib/es6/types/Donut.d.js.map +1 -1
  393. package/lib/es6/types/GroupBar.d.js.map +1 -1
  394. package/lib/es6/types/HorizontalBar.d.js.map +1 -1
  395. package/lib/es6/types/Hover.d.js.map +1 -1
  396. package/lib/es6/types/Line.d.js.map +1 -1
  397. package/lib/es6/types/Plot.d.js.map +1 -1
  398. package/lib/es6/types/Radar.d.js.map +1 -1
  399. package/lib/es6/types/Reference.d.js.map +1 -1
  400. package/lib/es6/types/ResponsiveContainer.d.js.map +1 -1
  401. package/lib/es6/types/ScatterPlot.d.js.map +1 -1
  402. package/lib/es6/types/StackBar.d.js.map +1 -1
  403. package/lib/es6/types/StackedArea.d.js.map +1 -1
  404. package/lib/es6/types/Tooltip.d.js.map +1 -1
  405. package/lib/es6/types/Venn.d.js.map +1 -1
  406. package/lib/es6/types/context.d.js.map +1 -1
  407. package/lib/es6/types/index.d.js +2 -0
  408. package/lib/es6/types/index.d.js.map +1 -1
  409. package/lib/es6/utils.js +16 -16
  410. package/lib/es6/utils.js.map +1 -1
  411. package/lib/esm/AnimatedClipPath.mjs +9 -16
  412. package/lib/esm/Area.mjs +51 -36
  413. package/lib/esm/Axis.mjs +143 -86
  414. package/lib/esm/Bar.mjs +31 -34
  415. package/lib/esm/Bubble.mjs +154 -106
  416. package/lib/esm/CompactHorizontalBar.mjs +88 -80
  417. package/lib/esm/Donut.mjs +87 -75
  418. package/lib/esm/Dots.mjs +50 -34
  419. package/lib/esm/GroupBar.mjs +12 -14
  420. package/lib/esm/HorizontalBar.mjs +31 -34
  421. package/lib/esm/Hover.mjs +53 -50
  422. package/lib/esm/Line.mjs +45 -31
  423. package/lib/esm/Pattern.mjs +4 -2
  424. package/lib/esm/Plot.mjs +30 -35
  425. package/lib/esm/Radar.mjs +188 -175
  426. package/lib/esm/RadialTree.mjs +105 -111
  427. package/lib/esm/Reference.mjs +37 -40
  428. package/lib/esm/ResponsiveContainer.mjs +18 -21
  429. package/lib/esm/ScatterPlot.mjs +49 -40
  430. package/lib/esm/StackBar.mjs +18 -28
  431. package/lib/esm/StackedArea.mjs +13 -16
  432. package/lib/esm/Tooltip.mjs +56 -59
  433. package/lib/esm/Venn.mjs +67 -47
  434. package/lib/esm/a11y/DataAccessibilityTable.mjs +2 -2
  435. package/lib/esm/a11y/PlotA11yModule.mjs +35 -74
  436. package/lib/esm/a11y/PlotA11yView.mjs +41 -17
  437. package/lib/esm/a11y/focus.mjs +4 -4
  438. package/lib/esm/a11y/hints.mjs +2 -2
  439. package/lib/esm/a11y/insights.mjs +76 -76
  440. package/lib/esm/a11y/locale.mjs +2 -2
  441. package/lib/esm/a11y/serialize.mjs +12 -12
  442. package/lib/esm/a11y/translations/module/__intergalactic-dynamic-locales.mjs +2 -2
  443. package/lib/esm/a11y/translations/module/de.json.mjs +2 -4
  444. package/lib/esm/a11y/translations/module/en.json.mjs +2 -4
  445. package/lib/esm/a11y/translations/module/es.json.mjs +2 -4
  446. package/lib/esm/a11y/translations/module/fr.json.mjs +2 -4
  447. package/lib/esm/a11y/translations/module/it.json.mjs +2 -4
  448. package/lib/esm/a11y/translations/module/ja.json.mjs +2 -4
  449. package/lib/esm/a11y/translations/module/ko.json.mjs +2 -4
  450. package/lib/esm/a11y/translations/module/nl.json.mjs +2 -4
  451. package/lib/esm/a11y/translations/module/pl.json.mjs +2 -4
  452. package/lib/esm/a11y/translations/module/pt.json.mjs +2 -4
  453. package/lib/esm/a11y/translations/module/sv.json.mjs +2 -4
  454. package/lib/esm/a11y/translations/module/tr.json.mjs +2 -4
  455. package/lib/esm/a11y/translations/module/vi.json.mjs +2 -4
  456. package/lib/esm/a11y/translations/module/zh.json.mjs +2 -4
  457. package/lib/esm/a11y/translations/view/__intergalactic-dynamic-locales.mjs +2 -2
  458. package/lib/esm/component/Chart/AbstractChart.mjs +141 -65
  459. package/lib/esm/component/Chart/AreaChart.mjs +27 -51
  460. package/lib/esm/component/Chart/BarChart.mjs +64 -51
  461. package/lib/esm/component/Chart/BubbleChart.mjs +30 -25
  462. package/lib/esm/component/Chart/CigaretteChart.mjs +298 -119
  463. package/lib/esm/component/Chart/CompactHorizontalBarChart.mjs +13 -15
  464. package/lib/esm/component/Chart/DonutChart.mjs +16 -19
  465. package/lib/esm/component/Chart/HistogramChart.mjs +22 -46
  466. package/lib/esm/component/Chart/LineChart.mjs +23 -46
  467. package/lib/esm/component/Chart/RadarChart.mjs +16 -18
  468. package/lib/esm/component/Chart/ScatterPlotChart.mjs +18 -21
  469. package/lib/esm/component/Chart/VennChart.mjs +16 -19
  470. package/lib/esm/component/Chart/index.mjs +6 -6
  471. package/lib/esm/component/ChartLegend/BaseLegend.mjs +45 -22
  472. package/lib/esm/component/ChartLegend/LegendFlex/LegendFlex.mjs +19 -22
  473. package/lib/esm/component/ChartLegend/LegendItem/LegendItem.mjs +88 -75
  474. package/lib/esm/component/ChartLegend/LegendTable/LegendTable.mjs +22 -25
  475. package/lib/esm/component/ChartLegend/index.mjs +2 -0
  476. package/lib/esm/component/Cigarette/Cigarette.mjs +16 -19
  477. package/lib/esm/component/StackGroupBar/StackGroupBar.mjs +18 -22
  478. package/lib/esm/component/SvgElement.mjs +14 -0
  479. package/lib/esm/createElement.mjs +8 -10
  480. package/lib/esm/index.mjs +3 -0
  481. package/lib/esm/style/abstract-chart.shadow.css +12 -0
  482. package/lib/esm/style/area.shadow.css +2 -2
  483. package/lib/esm/style/axis.shadow.css +39 -1
  484. package/lib/esm/style/bar.shadow.css +1 -1
  485. package/lib/esm/style/bubble.shadow.css +11 -3
  486. package/lib/esm/style/donut.shadow.css +1 -1
  487. package/lib/esm/style/dot.shadow.css +1 -1
  488. package/lib/esm/style/hover.shadow.css +2 -2
  489. package/lib/esm/style/line.shadow.css +2 -2
  490. package/lib/esm/style/plot.shadow.css +8 -6
  491. package/lib/esm/style/plotA11yModule.shadow.css +10 -11
  492. package/lib/esm/style/plotA11yView.shadow.css +13 -26
  493. package/lib/esm/style/radar.shadow.css +3 -3
  494. package/lib/esm/style/radial-tree.shadow.css +2 -2
  495. package/lib/esm/style/scatterplot.shadow.css +2 -2
  496. package/lib/esm/translations/__intergalactic-dynamic-locales.mjs +2 -2
  497. package/lib/esm/translations/es.json.mjs +1 -0
  498. package/lib/esm/translations/fr.json.mjs +1 -0
  499. package/lib/esm/translations/it.json.mjs +1 -0
  500. package/lib/esm/translations/ja.json.mjs +1 -0
  501. package/lib/esm/translations/ko.json.mjs +1 -0
  502. package/lib/esm/translations/nl.json.mjs +1 -0
  503. package/lib/esm/translations/pl.json.mjs +1 -0
  504. package/lib/esm/translations/pt.json.mjs +1 -0
  505. package/lib/esm/translations/sv.json.mjs +1 -0
  506. package/lib/esm/translations/tr.json.mjs +2 -1
  507. package/lib/esm/translations/vi.json.mjs +1 -0
  508. package/lib/esm/translations/zh.json.mjs +1 -0
  509. package/lib/esm/utils.mjs +11 -11
  510. package/lib/types/Area.d.ts +9 -6
  511. package/lib/types/Axis.d.ts +10 -3
  512. package/lib/types/Bar.d.ts +7 -6
  513. package/lib/types/Bubble.d.ts +21 -5
  514. package/lib/types/ClipPath.d.ts +4 -3
  515. package/lib/types/CompactHorizontalBar.d.ts +7 -8
  516. package/lib/types/Donut.d.ts +8 -5
  517. package/lib/types/GroupBar.d.ts +6 -6
  518. package/lib/types/HorizontalBar.d.ts +7 -6
  519. package/lib/types/Hover.d.ts +8 -8
  520. package/lib/types/Line.d.ts +9 -6
  521. package/lib/types/Pattern.d.ts +51 -51
  522. package/lib/types/Plot.d.ts +11 -9
  523. package/lib/types/Radar.d.ts +10 -7
  524. package/lib/types/RadialTree.d.ts +10 -54
  525. package/lib/types/Reference.d.ts +6 -5
  526. package/lib/types/ResponsiveContainer.d.ts +5 -4
  527. package/lib/types/ScatterPlot.d.ts +8 -5
  528. package/lib/types/StackBar.d.ts +7 -6
  529. package/lib/types/StackedArea.d.ts +6 -5
  530. package/lib/types/Tooltip.d.ts +12 -12
  531. package/lib/types/Venn.d.ts +7 -6
  532. package/lib/types/a11y/DataAccessibilityTable.d.ts +2 -2
  533. package/lib/types/a11y/PlotA11yModule.d.ts +4 -11
  534. package/lib/types/a11y/PlotA11yView.d.ts +13 -2
  535. package/lib/types/a11y/hints.d.ts +5 -5
  536. package/lib/types/a11y/insights.d.ts +1 -1
  537. package/lib/types/a11y/intl.d.ts +1 -1
  538. package/lib/types/a11y/serialize.d.ts +7 -7
  539. package/lib/types/a11y/summarize.d.ts +2 -2
  540. package/lib/types/a11y/translations/module/__intergalactic-dynamic-locales.d.ts +14 -14
  541. package/lib/types/component/Chart/AbstractChart.d.ts +20 -13
  542. package/lib/types/component/Chart/AbstractChart.type.d.ts +39 -25
  543. package/lib/types/component/Chart/AreaChart.d.ts +1 -1
  544. package/lib/types/component/Chart/AreaChart.type.d.ts +17 -7
  545. package/lib/types/component/Chart/BarChart.d.ts +1 -1
  546. package/lib/types/component/Chart/BarChart.type.d.ts +14 -9
  547. package/lib/types/component/Chart/BubbleChart.d.ts +1 -1
  548. package/lib/types/component/Chart/BubbleChart.type.d.ts +10 -5
  549. package/lib/types/component/Chart/CigaretteChart.d.ts +1 -1
  550. package/lib/types/component/Chart/CigaretteChart.type.d.ts +18 -8
  551. package/lib/types/component/Chart/CompactHorizontalBarChart.d.ts +1 -1
  552. package/lib/types/component/Chart/CompactHorizontalBarChart.type.d.ts +10 -6
  553. package/lib/types/component/Chart/DonutChart.d.ts +1 -1
  554. package/lib/types/component/Chart/DonutChart.type.d.ts +16 -7
  555. package/lib/types/component/Chart/HistogramChart.d.ts +1 -1
  556. package/lib/types/component/Chart/HistogramChart.type.d.ts +7 -4
  557. package/lib/types/component/Chart/LineChart.d.ts +1 -1
  558. package/lib/types/component/Chart/LineChart.type.d.ts +16 -7
  559. package/lib/types/component/Chart/RadarChart.d.ts +1 -1
  560. package/lib/types/component/Chart/RadarChart.type.d.ts +7 -5
  561. package/lib/types/component/Chart/ScatterPlotChart.d.ts +1 -1
  562. package/lib/types/component/Chart/ScatterPlotChart.type.d.ts +12 -6
  563. package/lib/types/component/Chart/VennChart.d.ts +1 -1
  564. package/lib/types/component/Chart/VennChart.type.d.ts +12 -6
  565. package/lib/types/component/ChartLegend/BaseLegend.d.ts +8 -6
  566. package/lib/types/component/ChartLegend/BaseLegend.type.d.ts +4 -5
  567. package/lib/types/component/ChartLegend/LegendFlex/LegendFlex.d.ts +1 -1
  568. package/lib/types/component/ChartLegend/LegendFlex/LegendFlex.type.d.ts +4 -5
  569. package/lib/types/component/ChartLegend/LegendItem/LegendItem.d.ts +1 -1
  570. package/lib/types/component/ChartLegend/LegendItem/LegendItem.type.d.ts +17 -10
  571. package/lib/types/component/ChartLegend/LegendTable/LegendTable.d.ts +1 -1
  572. package/lib/types/component/ChartLegend/LegendTable/LegendTable.type.d.ts +5 -5
  573. package/lib/types/component/StackGroupBar/StackGroupBar.d.ts +1 -1
  574. package/lib/types/component/StackGroupBar/StackGroupBar.type.d.ts +3 -4
  575. package/lib/types/component/SvgElement.d.ts +10 -0
  576. package/lib/types/index.d.ts +3 -1
  577. package/lib/types/translations/__intergalactic-dynamic-locales.d.ts +12 -0
  578. package/lib/types/utils.d.ts +17 -17
  579. package/package.json +13 -13
@@ -1,48 +1,93 @@
1
- import _objectSpread from "@babel/runtime/helpers/objectSpread2";
1
+ import _createForOfIteratorHelper from "@babel/runtime/helpers/createForOfIteratorHelper";
2
2
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
3
+ import _objectSpread from "@babel/runtime/helpers/objectSpread2";
4
+ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
5
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
4
6
  import _createClass from "@babel/runtime/helpers/createClass";
5
- import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
6
- import _get from "@babel/runtime/helpers/get";
7
- import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
7
+ import _callSuper from "@babel/runtime/helpers/callSuper";
8
+ import _superPropGet from "@babel/runtime/helpers/superPropGet";
8
9
  import _inherits from "@babel/runtime/helpers/inherits";
9
- import _createSuper from "@babel/runtime/helpers/createSuper";
10
10
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
11
+ import { assignProps as _assignProps4 } from "@semcore/core";
12
+ import { assignProps as _assignProps3 } from "@semcore/core";
11
13
  import { assignProps as _assignProps2 } from "@semcore/core";
12
14
  import { assignProps as _assignProps } from "@semcore/core";
13
- import React from 'react';
14
- import createComponent, { Root, sstyled } from '@semcore/core';
15
+ import { Box, Flex } from '@semcore/base-components';
16
+ import { createComponent, Root, sstyled } from '@semcore/core';
17
+ import i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';
18
+ import resolveColorEnhance from '@semcore/core/lib/utils/enhances/resolveColorEnhance';
19
+ import trottle from '@semcore/core/lib/utils/rafTrottle';
20
+ import uniqueIDEnhancement from '@semcore/core/lib/utils/uniqueID';
15
21
  import Divider from '@semcore/divider';
16
- import { Box, Flex } from '@semcore/flex-box';
17
22
  import { Text } from '@semcore/typography';
18
- import resolveColorEnhance from '@semcore/utils/lib/enhances/resolveColorEnhance';
19
- import uniqueIDEnhancement from '@semcore/utils/lib/uniqueID';
20
- import { scaleBand, scaleLinear } from 'd3-scale';
23
+ import { scaleThreshold, scaleLinear } from 'd3-scale';
24
+ import React from 'react';
21
25
  // @ts-ignore
22
26
  import { HoverRect, Plot } from '../..';
27
+ import { AbstractChart, NOT_A_VALUE } from './AbstractChart';
23
28
  // @ts-ignore
24
29
  import AnimatedClipPath from '../../AnimatedClipPath';
25
- import { AbstractChart } from './AbstractChart';
26
- import { interpolateValue, scaleToBand } from '../../utils';
27
- import Cigarette from '../Cigarette/Cigarette';
28
30
  import { localizedMessages } from '../../translations/__intergalactic-dynamic-locales';
29
- import i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';
30
- var wMin = 2;
31
+ import { eventToPoint, interpolateValue } from '../../utils';
32
+ import Cigarette from '../Cigarette/Cigarette';
33
+ var DEFAULT_MINIMAL_BAR_WIDTH = 2;
34
+ var DEFAULT_GAP = 2;
31
35
  var CigaretteChartComponent = /*#__PURE__*/function (_AbstractChart) {
32
- _inherits(CigaretteChartComponent, _AbstractChart);
33
- var _super = _createSuper(CigaretteChartComponent);
34
- function CigaretteChartComponent() {
36
+ function CigaretteChartComponent(props) {
35
37
  var _this;
36
38
  _classCallCheck(this, CigaretteChartComponent);
37
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
38
- args[_key] = arguments[_key];
39
- }
40
- _this = _super.call.apply(_super, [this].concat(args));
41
- _defineProperty(_assertThisInitialized(_this), "plotPadding", 0);
42
- _defineProperty(_assertThisInitialized(_this), "offset", 0);
39
+ _this = _callSuper(this, CigaretteChartComponent, [props]);
40
+ _defineProperty(_this, "plotRef", /*#__PURE__*/React.createRef());
41
+ _defineProperty(_this, "plotPadding", 0);
42
+ _defineProperty(_this, "offset", 0);
43
+ _defineProperty(_this, "onPlotMouseMove", trottle(function (event) {
44
+ if (!_this.plotRef.current) return;
45
+ var _eventToPoint = eventToPoint(event, _this.plotRef.current),
46
+ _eventToPoint2 = _slicedToArray(_eventToPoint, 2),
47
+ pX = _eventToPoint2[0],
48
+ pY = _eventToPoint2[1];
49
+ _this.setState(function (prevState) {
50
+ return {
51
+ pX: pX,
52
+ pY: pY
53
+ };
54
+ });
55
+ }));
56
+ _defineProperty(_this, "onPlotMouseLeave", trottle(function () {
57
+ _this.setState(function (prevState) {
58
+ return {
59
+ pX: null,
60
+ pY: null
61
+ };
62
+ });
63
+ }));
64
+ _this.state = _objectSpread(_objectSpread({}, _this.state), {}, {
65
+ pX: null,
66
+ pY: null
67
+ });
43
68
  return _this;
44
69
  }
45
- _createClass(CigaretteChartComponent, [{
70
+ _inherits(CigaretteChartComponent, _AbstractChart);
71
+ return _createClass(CigaretteChartComponent, [{
72
+ key: "activeDataDefinitions",
73
+ get: function get() {
74
+ var dataDefinitions = this.state.dataDefinitions;
75
+ return dataDefinitions.filter(function (_ref7) {
76
+ var checked = _ref7.checked;
77
+ return checked;
78
+ });
79
+ }
80
+ }, {
81
+ key: "activePositiveDataDefinitions",
82
+ get: function get() {
83
+ var data = this.asProps.data;
84
+ return this.activeDataDefinitions.filter(function (_ref8) {
85
+ var id = _ref8.id;
86
+ var itemValue = data[id];
87
+ return typeof itemValue === 'number' && itemValue > 0;
88
+ });
89
+ }
90
+ }, {
46
91
  key: "resolveColor",
47
92
  value: function resolveColor(id, index) {
48
93
  var _this$props$colorMap$, _this$props$colorMap;
@@ -51,7 +96,7 @@ var CigaretteChartComponent = /*#__PURE__*/function (_AbstractChart) {
51
96
  }, {
52
97
  key: "getDefaultDataDefinitions",
53
98
  value: function getDefaultDataDefinitions() {
54
- var dataDefinitions = _get(_getPrototypeOf(CigaretteChartComponent.prototype), "getDefaultDataDefinitions", this).call(this);
99
+ var dataDefinitions = _superPropGet(CigaretteChartComponent, "getDefaultDataDefinitions", this, 3)([]);
55
100
  return dataDefinitions.map(function (dataDef) {
56
101
  dataDef.columns = dataDef.columns.slice(1);
57
102
  return dataDef;
@@ -65,47 +110,141 @@ var CigaretteChartComponent = /*#__PURE__*/function (_AbstractChart) {
65
110
  w: 'fit-content'
66
111
  };
67
112
  }
113
+ }, {
114
+ key: "totalValue",
115
+ value: function totalValue() {
116
+ var data = this.asProps.data;
117
+ return this.activeDataDefinitions.reduce(function (acc, _ref9) {
118
+ var id = _ref9.id;
119
+ var itemValue = data[id];
120
+ if (typeof itemValue === 'number') {
121
+ acc += itemValue;
122
+ }
123
+ return acc;
124
+ }, 0);
125
+ }
126
+ }, {
127
+ key: "computeCigaretteItems",
128
+ value: function computeCigaretteItems() {
129
+ var _this$asProps = this.asProps,
130
+ plotWidth = _this$asProps.plotWidth,
131
+ plotHeight = _this$asProps.plotHeight,
132
+ data = _this$asProps.data,
133
+ invertAxis = _this$asProps.invertAxis,
134
+ minimalBarWidth = _this$asProps.minimalBarWidth;
135
+ var dataDefinitions = invertAxis ? this.activeDataDefinitions : _toConsumableArray(this.activeDataDefinitions).reverse();
136
+ var count = this.activePositiveDataDefinitions.length;
137
+ var totalGapWidth = DEFAULT_GAP * Math.max(0, count - 1);
138
+ var availableSpace = Math.max(0, (invertAxis ? plotWidth : plotHeight) - totalGapWidth);
139
+ var totalValue = this.totalValue();
140
+ var dataDefinitionsItemSize = dataDefinitions.map(function (_ref0) {
141
+ var id = _ref0.id;
142
+ if (totalValue === 0) {
143
+ return 0;
144
+ }
145
+ var itemValue = data[id];
146
+ if (typeof itemValue !== 'number') return 0;
147
+ return itemValue / totalValue * availableSpace;
148
+ });
149
+ var result = dataDefinitions.map(function (dd, index) {
150
+ return _objectSpread(_objectSpread({}, dd), {}, {
151
+ value: data[dd.id],
152
+ dataWidth: dataDefinitionsItemSize[index],
153
+ visualWidth: dataDefinitionsItemSize[index],
154
+ isMinVisible: false
155
+ });
156
+ });
157
+ var smallItems = result.filter(function (r) {
158
+ var value = r.value,
159
+ dataWidth = r.dataWidth;
160
+ if (typeof value !== 'number') return false;
161
+ return value > 0 && dataWidth < minimalBarWidth;
162
+ });
163
+ if (smallItems.length === 0) return result;
164
+ var extraNeeded = 0;
165
+ var _iterator = _createForOfIteratorHelper(smallItems),
166
+ _step;
167
+ try {
168
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
169
+ var smallItem = _step.value;
170
+ extraNeeded += minimalBarWidth - smallItem.dataWidth;
171
+ smallItem.visualWidth = minimalBarWidth;
172
+ smallItem.isMinVisible = true;
173
+ }
174
+ } catch (err) {
175
+ _iterator.e(err);
176
+ } finally {
177
+ _iterator.f();
178
+ }
179
+ var donors = result.filter(function (r) {
180
+ return !r.isMinVisible && r.dataWidth > minimalBarWidth;
181
+ });
182
+ var donorCapacity = donors.reduce(function (s, d) {
183
+ return s + (d.dataWidth - minimalBarWidth);
184
+ }, 0);
185
+ var _iterator2 = _createForOfIteratorHelper(donors),
186
+ _step2;
187
+ try {
188
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
189
+ var donor = _step2.value;
190
+ var available = donor.dataWidth - minimalBarWidth;
191
+ var share = available / donorCapacity;
192
+ var taken = share * extraNeeded;
193
+ donor.visualWidth = donor.dataWidth - taken;
194
+ }
195
+ } catch (err) {
196
+ _iterator2.e(err);
197
+ } finally {
198
+ _iterator2.f();
199
+ }
200
+ return result;
201
+ }
68
202
  }, {
69
203
  key: "xScale",
70
204
  get: function get() {
71
- var invertAxis = this.asProps.invertAxis;
72
- return invertAxis ? this.valueScale : this.categoryScale;
205
+ var plotWidth = this.asProps.plotWidth;
206
+ return scaleLinear([0, plotWidth]);
73
207
  }
74
208
  }, {
75
209
  key: "yScale",
76
210
  get: function get() {
77
- var invertAxis = this.asProps.invertAxis;
78
- return invertAxis ? this.categoryScale : this.valueScale;
211
+ var plotHeight = this.asProps.plotHeight;
212
+ return scaleLinear([plotHeight, 0]);
79
213
  }
80
214
  }, {
81
215
  key: "renderChart",
82
216
  value: function renderChart() {
83
217
  var _this2 = this;
84
- var _this$asProps = this.asProps,
85
- invertAxis = _this$asProps.invertAxis,
86
- data = _this$asProps.data,
87
- uid = _this$asProps.uid,
88
- duration = _this$asProps.duration,
89
- patterns = _this$asProps.patterns,
90
- plotHeight = _this$asProps.plotHeight,
91
- plotWidth = _this$asProps.plotWidth,
92
- onClick = _this$asProps.onClick;
218
+ var _this$asProps2 = this.asProps,
219
+ invertAxis = _this$asProps2.invertAxis,
220
+ data = _this$asProps2.data,
221
+ uid = _this$asProps2.uid,
222
+ duration = _this$asProps2.duration,
223
+ patterns = _this$asProps2.patterns,
224
+ plotHeight = _this$asProps2.plotHeight,
225
+ plotWidth = _this$asProps2.plotWidth,
226
+ onClick = _this$asProps2.onClick;
93
227
  var _this$state = this.state,
94
228
  dataDefinitions = _this$state.dataDefinitions,
95
229
  highlightedLine = _this$state.highlightedLine;
96
230
  this.offset = 0;
97
- return /*#__PURE__*/React.createElement(React.Fragment, null, (invertAxis ? dataDefinitions : _toConsumableArray(dataDefinitions).reverse()).map(function (item, index) {
98
- var value = data[item.id];
99
- if (!item.checked || value === interpolateValue || value === null) {
231
+ var items = this.computeCigaretteItems();
232
+ return /*#__PURE__*/React.createElement(React.Fragment, null, items.map(function (item, index) {
233
+ var visualWidth = item.visualWidth,
234
+ id = item.id;
235
+ var value = data[id];
236
+ if (value === interpolateValue || value === null) {
100
237
  return null;
101
238
  }
102
- var absWidth = Math.abs(_this2.valueScale(value) - Math.max(_this2.valueScale(_this2.valueScale.domain()[0]), _this2.valueScale(0)));
103
- var height = scaleToBand(_this2.categoryScale).bandwidth() - 4;
104
- var width = value === 0 ? 0 : Math.max(absWidth, wMin * 2) - wMin;
105
- var y = 2;
106
- var x = index === 0 ? 0 : _this2.offset;
239
+ var height = invertAxis ? plotHeight - DEFAULT_GAP * 2 : plotWidth - DEFAULT_GAP * 2;
240
+ var width = visualWidth;
241
+ var y = DEFAULT_GAP;
242
+ var x = _this2.offset;
107
243
  var r = height < 28 ? 2 : 4;
108
- _this2.offset = _this2.offset + width + wMin;
244
+ _this2.offset += visualWidth;
245
+ if (index < items.length - 1) {
246
+ _this2.offset += DEFAULT_GAP;
247
+ }
109
248
  return /*#__PURE__*/React.createElement(Cigarette, {
110
249
  key: item.id,
111
250
  dataKey: item.id,
@@ -137,15 +276,21 @@ var CigaretteChartComponent = /*#__PURE__*/function (_AbstractChart) {
137
276
  }, {
138
277
  key: "renderTooltip",
139
278
  value: function renderTooltip() {
140
- var _this3 = this;
141
- var _this$asProps2 = this.asProps,
142
- data = _this$asProps2.data,
143
- showTotalInTooltip = _this$asProps2.showTotalInTooltip,
144
- showTooltip = _this$asProps2.showTooltip,
145
- invertAxis = _this$asProps2.invertAxis,
146
- tooltipTitle = _this$asProps2.tooltipTitle,
147
- tooltipViewType = _this$asProps2.tooltipViewType;
148
- var dataDefinitions = this.state.dataDefinitions;
279
+ var _ref = this.asProps,
280
+ _this3 = this;
281
+ var _this$asProps3 = this.asProps,
282
+ data = _this$asProps3.data,
283
+ invertAxis = _this$asProps3.invertAxis,
284
+ tooltipTitle = _this$asProps3.tooltipTitle,
285
+ tooltipViewType = _this$asProps3.tooltipViewType,
286
+ showPercentValueInTooltip = _this$asProps3.showPercentValueInTooltip,
287
+ styles = _this$asProps3.styles,
288
+ showTooltip = _this$asProps3.showTooltip;
289
+ var _this$state2 = this.state,
290
+ dataDefinitions = _this$state2.dataDefinitions,
291
+ pX = _this$state2.pX,
292
+ pY = _this$state2.pY;
293
+ var STooltipChildrenWrapper = Box;
149
294
  if (!showTooltip) {
150
295
  return null;
151
296
  }
@@ -153,54 +298,107 @@ var CigaretteChartComponent = /*#__PURE__*/function (_AbstractChart) {
153
298
  x: invertAxis ? '' : undefined,
154
299
  y: invertAxis ? undefined : '',
155
300
  wMin: 100,
156
- hideHoverLine: true
301
+ hideHoverLine: true,
302
+ xIndex: pX !== null ? this.visualScale(pX) : undefined,
303
+ yIndex: pY !== null ? this.visualScale(pY) : undefined
157
304
  }, function (tooltipProps) {
305
+ var _ref4;
158
306
  var dataKey = invertAxis ? tooltipProps.xIndex : tooltipProps.yIndex;
159
- var total = _this3.totalValue(data);
307
+ var showPercentColumn = showPercentValueInTooltip && _this3.totalValue() !== 0;
160
308
  if (tooltipViewType === 'single') {
309
+ var _ref3;
161
310
  var item = dataDefinitions.find(function (dataDefItem) {
162
311
  return dataDefItem.id === dataKey;
163
312
  });
164
313
  if (!item) {
165
- return null;
314
+ return {
315
+ children: null
316
+ };
166
317
  }
167
318
  return {
168
- children: /*#__PURE__*/React.createElement(Flex, {
169
- justifyContent: "space-between",
170
- key: dataKey
171
- }, /*#__PURE__*/React.createElement(HoverRect.Tooltip.Dot, {
172
- mr: 4,
319
+ children: (_ref3 = sstyled(styles), /*#__PURE__*/React.createElement(STooltipChildrenWrapper, _ref3.cn("STooltipChildrenWrapper", _objectSpread({}, _assignProps({
320
+ "columnsCount": showPercentColumn ? '3' : '2',
321
+ "__excludeProps": ['data']
322
+ }, _ref))), /*#__PURE__*/React.createElement(HoverRect.Tooltip.Dot, {
323
+ mr: 2,
173
324
  color: item.color
174
- }, item.label), /*#__PURE__*/React.createElement(Text, {
175
- bold: true
176
- }, _this3.tooltipValueFormatter(data[dataKey])))
325
+ }, item.label), showPercentColumn && /*#__PURE__*/React.createElement(Text, _ref3.cn("Text", {
326
+ "textAlign": 'end',
327
+ "color": 'text-secondary'
328
+ }), _this3.percentValue(data, item.id)), /*#__PURE__*/React.createElement(Text, _ref3.cn("Text", {
329
+ "textAlign": 'end',
330
+ "bold": true
331
+ }), _this3.tooltipValueFormatter(data[item.id]))))
177
332
  };
178
333
  }
179
334
  return {
180
- children: /*#__PURE__*/React.createElement(React.Fragment, null, tooltipTitle && /*#__PURE__*/React.createElement(HoverRect.Tooltip.Title, null, "Some tooltip title"), dataDefinitions.map(function (item) {
181
- return item.checked && /*#__PURE__*/React.createElement(Flex, {
182
- justifyContent: "space-between",
183
- key: item.id,
184
- style: {
185
- opacity: item.id === dataKey ? 1 : 0.3
186
- }
335
+ children: (_ref4 = sstyled(styles), /*#__PURE__*/React.createElement(Flex, _ref4.cn("Flex", {
336
+ "direction": 'column'
337
+ }), tooltipTitle && /*#__PURE__*/React.createElement(HoverRect.Tooltip.Title, null, "Some tooltip title"), /*#__PURE__*/React.createElement(STooltipChildrenWrapper, _ref4.cn("STooltipChildrenWrapper", _objectSpread({}, _assignProps2({
338
+ "columnsCount": showPercentColumn ? '3' : '2',
339
+ "__excludeProps": ['data']
340
+ }, _ref))), dataDefinitions.map(function (item) {
341
+ var style = {
342
+ opacity: item.id === dataKey ? 1 : 0.3
343
+ };
344
+ return item.checked && /*#__PURE__*/React.createElement(React.Fragment, {
345
+ key: item.id
187
346
  }, /*#__PURE__*/React.createElement(HoverRect.Tooltip.Dot, {
188
- mr: 4,
189
- color: item.color
190
- }, item.label), /*#__PURE__*/React.createElement(Text, {
191
- bold: true
347
+ mr: 2,
348
+ color: item.color,
349
+ style: style
350
+ }, item.label), showPercentColumn && /*#__PURE__*/React.createElement(Text, {
351
+ textAlign: "end",
352
+ color: "text-secondary",
353
+ style: style
354
+ }, _this3.percentValue(data, item.id)), /*#__PURE__*/React.createElement(Text, {
355
+ textAlign: "end",
356
+ bold: true,
357
+ style: style
192
358
  }, _this3.tooltipValueFormatter(data[item.id])));
193
- }), showTotalInTooltip === true && /*#__PURE__*/React.createElement(Flex, {
194
- mt: 2,
195
- justifyContent: "space-between"
196
- }, /*#__PURE__*/React.createElement(Box, {
197
- mr: 4
198
- }, "Total"), /*#__PURE__*/React.createElement(Text, {
199
- bold: true
200
- }, total)))
359
+ }), _this3.renderTooltipTotalLine(data))))
201
360
  };
202
361
  });
203
362
  }
363
+ }, {
364
+ key: "percentValue",
365
+ value: function percentValue(data, key) {
366
+ var percentFormatter = this.asProps.percentFormatter;
367
+ var total = this.totalValue();
368
+ var value = data[key];
369
+ if (typeof value === 'number' && total !== 0) {
370
+ var rawPercent = 100 * value / total;
371
+ var formattedPercent = percentFormatter ? percentFormatter(rawPercent) : Math.round(rawPercent);
372
+ return "".concat(formattedPercent, "%");
373
+ }
374
+ if (value === null) {
375
+ return "0%";
376
+ }
377
+ return NOT_A_VALUE;
378
+ }
379
+ }, {
380
+ key: "renderTooltipTotalLine",
381
+ value: function renderTooltipTotalLine(dataItem) {
382
+ var _this$asProps4 = this.asProps,
383
+ showTotalInTooltip = _this$asProps4.showTotalInTooltip,
384
+ showPercentValueInTooltip = _this$asProps4.showPercentValueInTooltip;
385
+ if (!showTotalInTooltip) {
386
+ return null;
387
+ }
388
+ var total = this.totalValue();
389
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
390
+ mt: 2,
391
+ mr: 2
392
+ }, "Total"), showPercentValueInTooltip && total !== 0 && /*#__PURE__*/React.createElement(Text, {
393
+ mt: 2,
394
+ textAlign: "end",
395
+ color: "text-secondary"
396
+ }, Number.isNaN(total) ? NOT_A_VALUE : '100%'), /*#__PURE__*/React.createElement(Text, {
397
+ mt: 2,
398
+ textAlign: "end",
399
+ bold: true
400
+ }, Number.isNaN(total) ? NOT_A_VALUE : total));
401
+ }
204
402
  }, {
205
403
  key: "renderHeader",
206
404
  value: function renderHeader() {
@@ -210,51 +408,57 @@ var CigaretteChartComponent = /*#__PURE__*/function (_AbstractChart) {
210
408
  }, {
211
409
  key: "render",
212
410
  value: function render() {
213
- var _ref = this.asProps,
214
- _ref3;
411
+ var _ref2 = this.asProps,
412
+ _ref6;
215
413
  var SChart = Flex;
216
- var _this$asProps3 = this.asProps,
217
- styles = _this$asProps3.styles,
218
- plotWidth = _this$asProps3.plotWidth,
219
- plotHeight = _this$asProps3.plotHeight,
220
- data = _this$asProps3.data,
221
- patterns = _this$asProps3.patterns,
222
- invertAxis = _this$asProps3.invertAxis,
223
- a11yAltTextConfig = _this$asProps3.a11yAltTextConfig;
414
+ var _this$asProps5 = this.asProps,
415
+ styles = _this$asProps5.styles,
416
+ plotWidth = _this$asProps5.plotWidth,
417
+ plotHeight = _this$asProps5.plotHeight,
418
+ data = _this$asProps5.data,
419
+ patterns = _this$asProps5.patterns,
420
+ invertAxis = _this$asProps5.invertAxis,
421
+ a11yAltTextConfig = _this$asProps5.a11yAltTextConfig;
224
422
  var header = this.renderHeader();
225
423
  if (invertAxis) {
226
- var _ref2;
227
- return _ref2 = sstyled(styles), /*#__PURE__*/React.createElement(SChart, _ref2.cn("SChart", _objectSpread({}, _assignProps({
424
+ var _ref5;
425
+ return _ref5 = sstyled(styles), /*#__PURE__*/React.createElement(SChart, _ref5.cn("SChart", _objectSpread({}, _assignProps3({
228
426
  "gap": 6,
229
427
  "direction": 'column',
230
428
  "__excludeProps": ['onClick', 'data']
231
- }, _ref))), /*#__PURE__*/React.createElement(Flex, _ref2.cn("Flex", {
429
+ }, _ref2))), /*#__PURE__*/React.createElement(Flex, _ref5.cn("Flex", {
232
430
  "direction": 'column'
233
- }), header, /*#__PURE__*/React.createElement(Plot, _ref2.cn("Plot", {
431
+ }), header, /*#__PURE__*/React.createElement(Plot, _ref5.cn("Plot", {
432
+ "ref": this.plotRef,
234
433
  "data": data,
235
434
  "scale": [this.xScale, this.yScale],
236
435
  "width": plotWidth,
237
436
  "height": plotHeight,
238
437
  "dataHints": this.dataHints,
239
438
  "patterns": patterns,
240
- "a11yAltTextConfig": a11yAltTextConfig
439
+ "a11yAltTextConfig": a11yAltTextConfig,
440
+ "onMouseMove": this.onPlotMouseMove,
441
+ "onMouseLeave": this.onPlotMouseLeave
241
442
  }), this.renderTooltip(), this.renderChart())), this.renderLegend());
242
443
  }
243
- return _ref3 = sstyled(styles), /*#__PURE__*/React.createElement(SChart, _ref3.cn("SChart", _objectSpread({}, _assignProps2({
444
+ return _ref6 = sstyled(styles), /*#__PURE__*/React.createElement(SChart, _ref6.cn("SChart", _objectSpread({}, _assignProps4({
244
445
  "gap": 6,
245
446
  "__excludeProps": ['onClick', 'data']
246
- }, _ref))), /*#__PURE__*/React.createElement(Plot, _ref3.cn("Plot", {
447
+ }, _ref2))), /*#__PURE__*/React.createElement(Plot, _ref6.cn("Plot", {
448
+ "ref": this.plotRef,
247
449
  "data": data,
248
450
  "scale": [this.xScale, this.yScale],
249
451
  "width": plotWidth,
250
452
  "height": plotHeight,
251
453
  "dataHints": this.dataHints,
252
454
  "patterns": patterns,
253
- "a11yAltTextConfig": a11yAltTextConfig
254
- }), this.renderTooltip(), this.renderChart()), /*#__PURE__*/React.createElement(Flex, _ref3.cn("Flex", {
455
+ "a11yAltTextConfig": a11yAltTextConfig,
456
+ "onMouseMove": this.onPlotMouseMove,
457
+ "onMouseLeave": this.onPlotMouseLeave
458
+ }), this.renderTooltip(), this.renderChart()), /*#__PURE__*/React.createElement(Flex, _ref6.cn("Flex", {
255
459
  "direction": 'column',
256
460
  "gap": 2
257
- }), header && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, _ref3.cn("Box", {}), header), /*#__PURE__*/React.createElement(Divider, _ref3.cn("Divider", {}))), this.renderLegend()));
461
+ }), header && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, _ref6.cn("Box", {}), header), /*#__PURE__*/React.createElement(Divider, _ref6.cn("Divider", {}))), this.renderLegend()));
258
462
  }
259
463
  }, {
260
464
  key: "getLegendAriaLabel",
@@ -264,44 +468,35 @@ var CigaretteChartComponent = /*#__PURE__*/function (_AbstractChart) {
264
468
  });
265
469
  }
266
470
  }, {
267
- key: "selectedData",
471
+ key: "visualScale",
268
472
  get: function get() {
269
- var data = this.asProps.data;
270
- var dataDefinitions = this.state.dataDefinitions;
271
- var result = new Map();
272
- dataDefinitions.forEach(function (dataDefItem) {
273
- var value = data[dataDefItem.id];
274
- if (dataDefItem.checked && value !== interpolateValue) {
275
- result.set(dataDefItem.id, value);
276
- }
277
- });
278
- return result;
279
- }
280
- }, {
281
- key: "categoryScale",
282
- get: function get() {
283
- var _this$asProps4 = this.asProps,
284
- plotWidth = _this$asProps4.plotWidth,
285
- plotHeight = _this$asProps4.plotHeight,
286
- invertAxis = _this$asProps4.invertAxis;
287
- var range = invertAxis ? [plotHeight, 0] : [0, plotWidth];
288
- return scaleBand([0], range);
289
- }
290
- }, {
291
- key: "valueScale",
292
- get: function get() {
293
- var _this$asProps5 = this.asProps,
294
- plotWidth = _this$asProps5.plotWidth,
295
- plotHeight = _this$asProps5.plotHeight,
296
- invertAxis = _this$asProps5.invertAxis;
297
- var max = 0;
298
- this.selectedData.forEach(function (value) {
299
- max = max + value;
300
- });
301
- return scaleLinear().range(invertAxis ? [0, plotWidth] : [plotHeight, 0]).domain([0, max]);
473
+ var cigaretteItems = this.computeCigaretteItems();
474
+ var _cigaretteItems$reduc = cigaretteItems.reduce(function (acc, _ref1, index) {
475
+ var id = _ref1.id,
476
+ visualWidth = _ref1.visualWidth;
477
+ var range = acc.range,
478
+ domain = acc.domain;
479
+ if (visualWidth) {
480
+ range.push(id);
481
+ if (domain.length === 0) {
482
+ domain.push(visualWidth + DEFAULT_GAP);
483
+ return acc;
484
+ }
485
+ if (index !== cigaretteItems.length - 1) {
486
+ var lastAddedDomain = domain[domain.length - 1];
487
+ domain.push(lastAddedDomain + visualWidth + DEFAULT_GAP);
488
+ }
489
+ }
490
+ return acc;
491
+ }, {
492
+ range: [],
493
+ domain: []
494
+ }),
495
+ range = _cigaretteItems$reduc.range,
496
+ domain = _cigaretteItems$reduc.domain;
497
+ return scaleThreshold(domain, range);
302
498
  }
303
499
  }]);
304
- return CigaretteChartComponent;
305
500
  }(AbstractChart);
306
501
  _defineProperty(CigaretteChartComponent, "displayName", 'Cigarette.Bar');
307
502
  _defineProperty(CigaretteChartComponent, "defaultProps", function (props) {
@@ -317,7 +512,9 @@ _defineProperty(CigaretteChartComponent, "defaultProps", function (props) {
317
512
  marginY: 0,
318
513
  duration: 500,
319
514
  plotWidth: !invertAxis && !props.plotWidth ? 44 : props.plotWidth,
320
- plotHeight: invertAxis && !props.plotHeight ? 28 : props.plotHeight
515
+ plotHeight: invertAxis && !props.plotHeight ? 28 : props.plotHeight,
516
+ showPercentValueInTooltip: false,
517
+ minimalBarWidth: DEFAULT_MINIMAL_BAR_WIDTH
321
518
  };
322
519
  });
323
520
  _defineProperty(CigaretteChartComponent, "enhance", [resolveColorEnhance(), uniqueIDEnhancement(), i18nEnhance(localizedMessages)]);